mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 07:56:50 +08:00
24 lines
1.5 MiB
24 lines
1.5 MiB
(self["webpackChunkGPM"]=self["webpackChunkGPM"]||[]).push([[504],{81656:function(e,t,i){"use strict";function n(e,t,i,n,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}i.d(t,{A:function(){return n}})},7609:function(e,t,i){var n=i(89231);(function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}})();var r=i(93607);(function(){for(var e in r){if(null==r||!r.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=r[e]}})(),i(613),i(1906),i(53571),i(26804),i(15980),i(47342),i(25120),i(75868),i(12268),i(29202),i(34853),i(83296),i(19771),i(83761),i(46848),i(41913),i(86795),i(44561),i(39982),i(89878),i(77249),i(17164),i(16983),i(61029),i(63389),i(61232),i(27220),i(14102),i(36275),i(21393),i(63886),i(67770),i(76683),i(98733),i(56315),i(47226),i(87976),i(47106),i(54281),i(84069),i(59608),i(39554),i(95978),i(42623),i(24823),i(43416),i(84845),i(80630),i(39590)},50294:function(e,t,i){var n=i(95289),r={};function o(){this._coordinateSystems=[]}o.prototype={constructor:o,create:function(e,t){var i=[];n.each(r,(function(n,r){var o=n.create(e,t);i=i.concat(o||[])})),this._coordinateSystems=i},update:function(e,t){n.each(this._coordinateSystems,(function(i){i.update&&i.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},o.register=function(e,t){r[e]=t},o.get=function(e){return r[e]};var s=o;e.exports=s},69498:function(e,t,i){var n=i(95289),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function o(e){n.each(r,(function(t){this[t]=n.bind(e[t],e)}),this)}var s=o;e.exports=s},40428:function(e,t,i){var n=i(89231),r=i(95289);function o(e,t){r.each(t,(function(t){t.update="updateView",n.registerAction(t,(function(i,n){var r={};return n.eachComponent({mainType:"series",subType:e,query:i},(function(e){e[t.method]&&e[t.method](i.name,i.dataIndex);var n=e.getData();n.each((function(t){var i=n.getName(t);r[i]=e.isSelected(i)||!1}))})),{name:i.name,selected:r,seriesId:i.seriesId}}))}))}e.exports=o},50704:function(e,t,i){var n=i(89231),r=i(95289),o=i(54407),s=o.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var n=t.coordinateSystem;if("geo"===n.type){var o=s(n,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&r.each(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))},54407:function(e,t){function i(e,t,i){var n=e.getZoom(),r=e.getCenter(),o=t.zoom,s=e.dataToPoint(r);if(null!=t.dx&&null!=t.dy){s[0]-=t.dx,s[1]-=t.dy;r=e.pointToData(s);e.setCenter(r)}if(null!=o){if(i){var a=i.min||0,l=i.max||1/0;o=Math.max(Math.min(n*o,l),a)/n}e.scale[0]*=o,e.scale[1]*=o;var c=e.position,u=(t.originX-c[0])*(o-1),h=(t.originY-c[1])*(o-1);c[0]-=u,c[1]-=h,e.updateTransform();r=e.pointToData(s);e.setCenter(r),e.setZoom(o*n)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=i},53571:function(e,t,i){var n=i(89231),r=i(95289),o=i(11041),s=o.layout,a=o.largeLayout;i(31020),i(88004),i(35572),i(48807),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,r.curry(s,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,a),n.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},88004:function(e,t,i){var n=i(29299),r=n.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},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}}});e.exports=r},35572:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(76442),a=i(26746),l=a.setLabel,c=i(40590),u=i(3425),h=i(66343),d=i(75738),f=i(88336),p=f.throttle,g=i(99988),v=g.createClipPath,m=i(83759),y=["itemStyle","barBorderWidth"],_=[0,0];function x(e,t){var i=e.getArea&&e.getArea();if("cartesian2d"===e.type){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var r=t.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}o.extend(c.prototype,u);var b=r.extendChartView({type:"bar",render:function(e,t,i){this._updateDrawMode(e);var n=e.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(e,t,i):this._renderNormal(e,t,i)),this.group},incrementalPrepareRender:function(e,t,i){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,i,n){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,i){var n,r=this.group,o=e.getData(),a=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?n=c.isHorizontal():"polar"===l.type&&(n="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=e.get("clip",!0),f=x(l,o);r.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),m=v.get("barBorderRadius")||0,y=[],_=this._backgroundEls||[],b=function(e){var t=T[l.type](o,e),i=H(l,n,t);return i.useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&i.setShape("r",m),y[e]=i,i};o.diff(a).add((function(t){var i=o.getItemModel(t),s=T[l.type](o,t,i);if(g&&b(t),o.hasValue(t)){if(h){var a=C[l.type](f,s);if(a)return void r.remove(c)}var c=A[l.type](t,s,n,u,!1,p);o.setItemGraphicEl(t,c),r.add(c),L(c,o,t,i,s,e,n,"polar"===l.type)}})).update((function(t,i){var c=o.getItemModel(t),d=T[l.type](o,t,c);if(g){var x;0===_.length?x=b(i):(x=_[i],x.useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&x.setShape("r",m),y[t]=x);var w=T[l.type](o,t),S=z(n,w,l);s.updateProps(x,{shape:S},u,t)}var M=a.getItemGraphicEl(i);if(o.hasValue(t)){if(h){var k=C[l.type](f,d);if(k)return void r.remove(M)}M?s.updateProps(M,{shape:d},u,t):M=A[l.type](t,d,n,u,!0,p),o.setItemGraphicEl(t,M),r.add(M),L(M,o,t,c,d,e,n,"polar"===l.type)}else r.remove(M)})).remove((function(e){var t=a.getItemGraphicEl(e);"cartesian2d"===l.type?t&&M(e,u,t):t&&k(e,u,t)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new d);w.removeAll();for(var S=0;S<y.length;++S)w.add(y[S]);r.add(w),this._backgroundEls=y,this._data=o},_renderLarge:function(e,t,i){this._clear(),O(e,this.group);var n=e.get("clip",!0)?v(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){this._removeBackground(),O(t,this.group,!0)},dispose:o.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,i=this._data;e&&e.get("animation")&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl((function(t){"sector"===t.type?k(t.dataIndex,e,t):M(t.dataIndex,e,t)}))):t.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),w=Math.max,S=Math.min,C={cartesian2d:function(e,t){var i=t.width<0?-1:1,n=t.height<0?-1:1;i<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var r=w(t.x,e.x),o=S(t.x+t.width,e.x+e.width),s=w(t.y,e.y),a=S(t.y+t.height,e.y+e.height);t.x=r,t.y=s,t.width=o-r,t.height=a-s;var l=t.width<0||t.height<0;return i<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),l},polar:function(e,t){var i=t.r0<=t.r?1:-1;if(i<0){var n=t.r;t.r=t.r0,t.r0=n}n=S(t.r,e.r);var r=w(t.r0,e.r0);t.r=n,t.r0=r;var o=n-r<0;if(i<0){n=t.r;t.r=t.r0,t.r0=n}return o}},A={cartesian2d:function(e,t,i,n,r){var a=new s.Rect({shape:o.extend({},t),z2:1});if(a.name="item",n){var l=a.shape,c=i?"height":"width",u={};l[c]=0,u[c]=t[c],s[r?"updateProps":"initProps"](a,{shape:u},n,e)}return a},polar:function(e,t,i,n,r,a){var l=t.startAngle<t.endAngle,c=!i&&a?m:s.Sector,u=new c({shape:o.defaults({clockwise:l},t),z2:1});if(u.name="item",n){var h=u.shape,d=i?"r":"endAngle",f={};h[d]=i?0:t.startAngle,f[d]=t[d],s[r?"updateProps":"initProps"](u,{shape:f},n,e)}return u}};function M(e,t,i){i.style.text=null,s.updateProps(i,{shape:{width:0}},t,e,(function(){i.parent&&i.parent.remove(i)}))}function k(e,t,i){i.style.text=null,s.updateProps(i,{shape:{r:i.shape.r0}},t,e,(function(){i.parent&&i.parent.remove(i)}))}var T={cartesian2d:function(e,t,i){var n=e.getItemLayout(t),r=i?E(i,n):0,o=n.width>0?1:-1,s=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+s*r/2,width:n.width-o*r,height:n.height-s*r}},polar:function(e,t,i){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function I(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function L(e,t,i,n,r,a,c,u){var h=t.getItemVisual(i,"color"),d=t.getItemVisual(i,"opacity"),f=t.getVisual("borderColor"),p=n.getModel("itemStyle"),g=n.getModel("emphasis.itemStyle").getBarItemStyle();u||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(o.defaults({stroke:I(r)?"none":f,fill:I(r)?"none":h,opacity:d},p.getBarItemStyle()));var v=n.getShallow("cursor");v&&e.attr("cursor",v);var m=c?r.height>0?"bottom":"top":r.width>0?"left":"right";u||l(e.style,g,n,h,a,i,m),I(r)&&(g.fill=g.stroke="none"),s.setHoverStyle(e,g)}function E(e,t){var i=e.get(y)||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,r)}var D=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var i=t.points,n=this.__startPoint,r=this.__baseDimIdx,o=0;o<i.length;o+=2)n[r]=i[o+r],e.moveTo(n[0],n[1]),e.lineTo(i[o],i[o+1])}});function O(e,t,i){var n=e.getData(),r=[],o=n.getLayout("valueAxisHorizontal")?1:0;r[1-o]=n.getLayout("valueAxisStart");var s=n.getLayout("largeDataIndices"),a=n.getLayout("barWidth"),l=e.getModel("backgroundStyle"),c=e.get("showBackground",!0);if(c){var u=n.getLayout("largeBackgroundPoints"),h=[];h[1-o]=n.getLayout("backgroundStart");var d=new D({shape:{points:u},incremental:!!i,__startPoint:h,__baseDimIdx:o,__largeDataIndices:s,__barWidth:a,silent:!0,z2:0});N(d,l,n),t.add(d)}var f=new D({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:r,__baseDimIdx:o,__largeDataIndices:s,__barWidth:a});t.add(f),B(f,e,n),f.seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",P),f.on("mousemove",P))}var P=p((function(e){var t=this,i=R(t,e.offsetX,e.offsetY);t.dataIndex=i>=0?i:null}),30,!1);function R(e,t,i){var n=e.__baseDimIdx,r=1-n,o=e.shape.points,s=e.__largeDataIndices,a=Math.abs(e.__barWidth/2),l=e.__startPoint[r];_[0]=t,_[1]=i;for(var c=_[n],u=_[1-n],h=c-a,d=c+a,f=0,p=o.length/2;f<p;f++){var g=2*f,v=o[g+n],m=o[g+r];if(v>=h&&v<=d&&(l<=m?u>=l&&u<=m:u>=m&&u<=l))return s[f]}return-1}function B(e,t,i){var n=i.getVisual("borderColor")||i.getVisual("color"),r=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=n,e.style.lineWidth=i.getLayout("barWidth")}function N(e,t,i){var n=t.get("borderColor")||t.get("color"),r=t.getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=n,e.style.lineWidth=i.getLayout("barWidth")}function z(e,t,i){var n,r="polar"===i.type;return n=r?i.getArea():i.grid.getRect(),r?{cx:n.cx,cy:n.cy,r0:e?n.r0:t.r0,r:e?n.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:n.x,y:e?n.y:t.y,width:e?t.width:n.width,height:e?n.height:t.height}}function H(e,t,i){var n="polar"===e.type?s.Sector:s.Rect;return new n({shape:z(t,i,e),silent:!0,z2:0})}e.exports=b},29299:function(e,t,i){var n=i(33358),r=i(19554),o=n.extend({type:"series.__base_bar__",getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var i=t.dataToPoint(t.clampData(e)),n=this.getData(),r=n.getLayout("offset"),o=n.getLayout("size"),s=t.getBaseAxis().isHorizontal()?0:1;return i[s]+=r+o/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=o},92865:function(e,t,i){var n=i(29299),r=n.extend({type:"series.pictorialBar",dependencies:["grid"],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,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,r.superApply(this,"getInitialData",arguments)}}),o=r;e.exports=o},82917:function(e,t,i){var n=i(89231),r=i(95289),o=i(76442),s=i(22864),a=s.createSymbol,l=i(44261),c=l.parsePercent,u=l.isNumeric,h=i(26746),d=h.setLabel,f=["itemStyle","borderWidth"],p=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],g=new o.Circle,v=n.extendChartView({type:"pictorialBar",render:function(e,t,i){var n=this.group,r=e.getData(),o=this._data,s=e.coordinateSystem,a=s.getBaseAxis(),l=!!a.isHorizontal(),c=s.grid.getRect(),u={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:p[+l],categoryDim:p[1-l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=T(r,e),i=m(r,e,t,u),o=D(r,u,i);r.setItemGraphicEl(e,o),n.add(o),z(o,u,i)}})).update((function(e,t){var i=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=T(r,e),a=m(r,e,s,u),l=R(r,a);i&&l!==i.__pictorialShapeStr&&(n.remove(i),r.setItemGraphicEl(e,null),i=null),i?O(i,u,a):i=D(r,u,a,!0),r.setItemGraphicEl(e,i),i.__pictorialSymbolMeta=a,n.add(i),z(i,u,a)}else n.remove(i)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&P(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},dispose:r.noop,remove:function(e,t){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl((function(t){P(n,t.dataIndex,e,t)})):i.removeAll()}});function m(e,t,i,n){var o=e.getItemLayout(t),s=i.get("symbolRepeat"),a=i.get("symbolClip"),l=i.get("symbolPosition")||"start",u=i.get("symbolRotate"),h=(u||0)*Math.PI/180||0,d=i.get("symbolPatternSize")||2,f=i.isAnimationEnabled(),p={dataIndex:t,layout:o,itemModel:i,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:a,symbolRepeat:s,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:d,rotation:h,animationModel:f?i:null,hoverAnimation:f&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};y(i,s,o,n,p),x(e,t,o,s,a,p.boundingLength,p.pxSign,d,n,p),b(i,p.symbolScale,h,n,p);var g=p.symbolSize,v=i.get("symbolOffset");return r.isArray(v)&&(v=[c(v[0],g[0]),c(v[1],g[1])]),w(i,g,o,s,a,v,l,p.valueLineWidth,p.boundingLength,p.repeatCutLength,n,p),p}function y(e,t,i,n,o){var s,a=n.valueDim,l=e.get("symbolBoundingData"),c=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),h=1-+(i[a.wh]<=0);if(r.isArray(l)){var d=[_(c,l[0])-u,_(c,l[1])-u];d[1]<d[0]&&d.reverse(),s=d[h]}else s=null!=l?_(c,l)-u:t?n.coordSysExtent[a.index][h]-u:i[a.wh];o.boundingLength=s,t&&(o.repeatCutLength=i[a.wh]),o.pxSign=s>0?1:s<0?-1:0}function _(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function x(e,t,i,n,o,s,a,l,u,h){var d=u.valueDim,f=u.categoryDim,p=Math.abs(i[f.wh]),g=e.getItemVisual(t,"symbolSize");r.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[f.index]=c(g[f.index],p),g[d.index]=c(g[d.index],n?p:Math.abs(s)),h.symbolSize=g;var v=h.symbolScale=[g[0]/l,g[1]/l];v[d.index]*=(u.isHorizontal?-1:1)*a}function b(e,t,i,n,r){var o=e.get(f)||0;o&&(g.attr({scale:t.slice(),rotation:i}),g.updateTransform(),o/=g.getLineScale(),o*=t[n.valueDim.index]),r.valueLineWidth=o}function w(e,t,i,n,o,s,a,l,h,d,f,p){var g=f.categoryDim,v=f.valueDim,m=p.pxSign,y=Math.max(t[v.index]+l,0),_=y;if(n){var x=Math.abs(h),b=r.retrieve(e.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=c(b,t[v.index]);var S=Math.max(y+2*b,0),C=w?0:2*b,A=u(n),M=A?n:H((x+C)/S),k=x-M*y;b=k/2/(w?M:M-1),S=y+2*b,C=w?0:2*b,A||"fixed"===n||(M=d?H((Math.abs(d)+C)/S):0),_=M*S-C,p.repeatTimes=M,p.symbolMargin=b}var T=m*(_/2),I=p.pathPosition=[];I[g.index]=i[g.wh]/2,I[v.index]="start"===a?T:"end"===a?h-T:h/2,s&&(I[0]+=s[0],I[1]+=s[1]);var L=p.bundlePosition=[];L[g.index]=i[g.xy],L[v.index]=i[v.xy];var E=p.barRectShape=r.extend({},i);E[v.wh]=m*Math.max(Math.abs(i[v.wh]),Math.abs(I[v.index]+T)),E[g.wh]=i[g.wh];var D=p.clipShape={};D[g.xy]=-i[g.xy],D[g.wh]=f.ecSize[g.wh],D[v.xy]=0,D[v.wh]=i[v.wh]}function S(e){var t=e.symbolPatternSize,i=a(e.symbolType,-t/2,-t/2,t,t,e.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function C(e,t,i,n){var r=e.__pictorialBundle,o=i.symbolSize,s=i.valueLineWidth,a=i.pathPosition,l=t.valueDim,c=i.repeatTimes||0,u=0,h=o[t.valueDim.index]+s+2*i.symbolMargin;for(B(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?N(e,null,p(u),i,n):N(e,null,{scale:[0,0]},i,n,(function(){r.remove(e)})),E(e,i),u++}));u<c;u++){var d=S(i);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,r.add(d);var f=p(u);N(d,{position:f.position,scale:[0,0]},{scale:f.scale,rotation:f.rotation},i,n),d.on("mouseover",g).on("mouseout",v),E(d,i)}function p(e){var t=a.slice(),n=i.pxSign,r=e;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(r=c-1-e),t[l.index]=h*(r-c/2+.5)+a[l.index],{position:t,scale:i.symbolScale.slice(),rotation:i.rotation}}function g(){B(e,(function(e){e.trigger("emphasis")}))}function v(){B(e,(function(e){e.trigger("normal")}))}}function A(e,t,i,n){var r=e.__pictorialBundle,o=e.__pictorialMainPath;function s(){this.trigger("emphasis")}function a(){this.trigger("normal")}o?N(o,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(o=e.__pictorialMainPath=S(i),r.add(o),N(o,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),o.on("mouseover",s).on("mouseout",a)),E(o,i)}function M(e,t,i){var n=r.extend({},t.barRectShape),s=e.__pictorialBarRect;s?N(s,null,{shape:n},t,i):(s=e.__pictorialBarRect=new o.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(s))}function k(e,t,i,n){if(i.symbolClip){var s=e.__pictorialClipPath,a=r.extend({},i.clipShape),l=t.valueDim,c=i.animationModel,u=i.dataIndex;if(s)o.updateProps(s,{shape:a},c,u);else{a[l.wh]=0,s=new o.Rect({shape:a}),e.__pictorialBundle.setClipPath(s),e.__pictorialClipPath=s;var h={};h[l.wh]=i.clipShape[l.wh],o[n?"updateProps":"initProps"](s,{shape:h},c,u)}}}function T(e,t){var i=e.getItemModel(t);return i.getAnimationDelayParams=I,i.isAnimationEnabled=L,i}function I(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function L(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function E(e,t){e.off("emphasis").off("normal");var i=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function D(e,t,i,n){var r=new o.Group,s=new o.Group;return r.add(s),r.__pictorialBundle=s,s.attr("position",i.bundlePosition.slice()),i.symbolRepeat?C(r,t,i):A(r,t,i),M(r,i,n),k(r,t,i,n),r.__pictorialShapeStr=R(e,i),r.__pictorialSymbolMeta=i,r}function O(e,t,i){var n=i.animationModel,r=i.dataIndex,s=e.__pictorialBundle;o.updateProps(s,{position:i.bundlePosition.slice()},n,r),i.symbolRepeat?C(e,t,i,!0):A(e,t,i,!0),M(e,i,!0),k(e,t,i,!0)}function P(e,t,i,n){var s=n.__pictorialBarRect;s&&(s.style.text=null);var a=[];B(n,(function(e){a.push(e)})),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),r.each(a,(function(e){o.updateProps(e,{scale:[0,0]},i,t,(function(){n.parent&&n.parent.remove(n)}))})),e.setItemGraphicEl(t,null)}function R(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function B(e,t,i){r.each(e.__pictorialBundle.children(),(function(n){n!==e.__pictorialBarRect&&t.call(i,n)}))}function N(e,t,i,n,r,s){t&&e.attr(t),n.symbolClip&&!r?i&&e.attr(i):i&&o[r?"updateProps":"initProps"](e,i,n.animationModel,n.dataIndex,s)}function z(e,t,i){var n=i.color,s=i.dataIndex,a=i.itemModel,l=a.getModel("itemStyle").getItemStyle(["color"]),c=a.getModel("emphasis.itemStyle").getItemStyle(),u=a.getShallow("cursor");B(e,(function(e){e.setColor(n),e.setStyle(r.defaults({fill:n,opacity:i.opacity},l)),o.setHoverStyle(e,c),u&&(e.cursor=u),e.z2=i.z2}));var h={},f=t.valueDim.posDesc[+(i.boundingLength>0)],p=e.__pictorialBarRect;d(p.style,h,a,n,t.seriesModel,s,f),o.setHoverStyle(p,h)}function H(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var F=v;e.exports=F},3425:function(e,t,i){var n=i(81935),r=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getBarItemStyle:function(e){var t=r(this,e);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(t.lineDash=i)}return t}};e.exports=o},26746:function(e,t,i){var n=i(76442),r=i(10589),o=r.getDefaultLabel;function s(e,t,i,r,s,l,c){var u=i.getModel("label"),h=i.getModel("emphasis.label");n.setLabelStyle(e,t,u,h,{labelFetcher:s,labelDataIndex:l,defaultText:o(s.getData(),l),isRectText:!0,autoColor:r}),a(e),a(t)}function a(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=s},46848:function(e,t,i){var n=i(89231);i(2568),i(89056);var r=i(61913),o=i(94843);n.registerVisual(r),n.registerLayout(o)},2568:function(e,t,i){var n=i(95289),r=i(33358),o=i(74370),s=o.seriesModelMixin,a=r.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});n.mixin(a,s,!0);var l=a;e.exports=l},89056:function(e,t,i){var n=i(95289),r=i(67955),o=i(76442),s=i(66343),a=["itemStyle"],l=["emphasis","itemStyle"],c=r.extend({type:"boxplot",render:function(e,t,i){var n=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var s="horizontal"===e.get("layout")?1:0;n.diff(o).add((function(e){if(n.hasValue(e)){var t=n.getItemLayout(e),i=h(t,n,e,s,!0);n.setItemGraphicEl(e,i),r.add(i)}})).update((function(e,t){var i=o.getItemGraphicEl(t);if(n.hasValue(e)){var a=n.getItemLayout(e);i?d(a,i,n,e):i=h(a,n,e,s),r.add(i),n.setItemGraphicEl(e,i)}else r.remove(i)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=n},remove:function(e){var t=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:n.noop}),u=s.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var i=t.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n<i.length;n++)e.moveTo(i[n][0],i[n][1]),n++,e.lineTo(i[n][0],i[n][1])}});function h(e,t,i,n,r){var o=e.ends,s=new u({shape:{points:r?f(o,n,e):o}});return d(e,s,t,i,r),s}function d(e,t,i,n,r){var s=i.hostModel,c=o[r?"initProps":"updateProps"];c(t,{shape:{points:e.ends}},s,n);var u=i.getItemModel(n),h=u.getModel(a),d=i.getItemVisual(n,"color"),f=h.getItemStyle(["borderColor"]);f.stroke=d,f.strokeNoScale=!0,t.useStyle(f),t.z2=100;var p=u.getModel(l).getItemStyle();o.setHoverStyle(t,p)}function f(e,t,i){return n.map(e,(function(e){return e=e.slice(),e[t]=i.initBaseline,e}))}var p=c;e.exports=p},94843:function(e,t,i){var n=i(95289),r=i(44261),o=r.parsePercent,s=n.each;function a(e){var t=l(e);s(t,(function(e){var t=e.seriesModels;t.length&&(c(e),s(t,(function(t,i){u(t,e.boxOffsetList[i],e.boxWidthList[i])})))}))}function l(e){var t=[],i=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),o=n.indexOf(i,r);o<0&&(o=i.length,i[o]=r,t[o]={axis:r,seriesModels:[]}),t[o].seriesModels.push(e)})),t}function c(e){var t,i,r=e.axis,a=e.seriesModels,l=a.length,c=e.boxWidthList=[],u=e.boxOffsetList=[],h=[];if("category"===r.type)i=r.getBandWidth();else{var d=0;s(a,(function(e){d=Math.max(d,e.getData().count())})),t=r.getExtent(),Math.abs(t[1]-t[0])}s(a,(function(e){var t=e.get("boxWidth");n.isArray(t)||(t=[t,t]),h.push([o(t[0],i)||0,o(t[1],i)||0])}));var f=.8*i-2,p=f/l*.3,g=(f-p*(l-1))/l,v=g/2-f/2;s(a,(function(e,t){u.push(v),v+=p+g,c.push(Math.min(Math.max(g,h[t][0]),h[t][1]))}))}function u(e,t,i){var n=e.coordinateSystem,r=e.getData(),o=i/2,s="horizontal"===e.get("layout")?0:1,a=1-s,l=["x","y"],c=r.mapDimension(l[s]),u=r.mapDimension(l[a],!0);if(!(null==c||u.length<5))for(var h=0;h<r.count();h++){var d=r.get(c,h),f=_(d,u[2],h),p=_(d,u[0],h),g=_(d,u[1],h),v=_(d,u[3],h),m=_(d,u[4],h),y=[];x(y,g,0),x(y,v,1),y.push(p,g,m,v),b(y,p),b(y,m),b(y,f),r.setItemLayout(h,{initBaseline:f[a],ends:y})}function _(e,i,o){var l,c=r.get(i,o),u=[];return u[s]=e,u[a]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=n.dataToPoint(u),l[s]+=t),l}function x(e,t,i){var n=t.slice(),r=t.slice();n[s]+=o,r[s]-=o,i?e.push(n,r):e.push(r,n)}function b(e,t){var i=t.slice(),n=t.slice();i[s]-=o,n[s]+=o,e.push(i,n)}}e.exports=a},61913:function(e){var t=["itemStyle","borderColor"];function i(e,i){var n=e.get("color");e.eachRawSeriesByType("boxplot",(function(i){var r=n[i.seriesIndex%n.length],o=i.getData();o.setVisual({legendSymbol:"roundRect",color:i.get(t)||r}),e.isSeriesFiltered(i)||o.each((function(e){var i=o.getItemModel(e);o.setItemVisual(e,{color:i.get(t,!0)})}))}))}e.exports=i},41913:function(e,t,i){var n=i(89231);i(37967),i(72940);var r=i(50871),o=i(33957),s=i(28719);n.registerPreprocessor(r),n.registerVisual(o),n.registerLayout(s)},37967:function(e,t,i){var n=i(95289),r=i(33358),o=i(74370),s=o.seriesModelMixin,a=r.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,i){var n=t.getItemLayout(e);return n&&i.rect(n.brushRect)}});n.mixin(a,s,!0);var l=a;e.exports=l},72940:function(e,t,i){var n=i(95289),r=i(67955),o=i(76442),s=i(66343),a=i(99988),l=a.createClipPath,c=["itemStyle"],u=["emphasis","itemStyle"],h=["color","color0","borderColor","borderColor0"],d=r.extend({type:"candlestick",render:function(e,t,i){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,i){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,i,n){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),i=this._data,n=this.group,r=t.getLayout("isSimpleBox"),s=e.get("clip",!0),a=e.coordinateSystem,l=a.getArea&&a.getArea();this._data||n.removeAll(),t.diff(i).add((function(i){if(t.hasValue(i)){var a,c=t.getItemLayout(i);if(s&&g(l,c))return;a=p(c,i,!0),o.initProps(a,{shape:{points:c.ends}},e,i),v(a,t,i,r),n.add(a),t.setItemGraphicEl(i,a)}})).update((function(a,c){var u=i.getItemGraphicEl(c);if(t.hasValue(a)){var h=t.getItemLayout(a);s&&g(l,h)?n.remove(u):(u?o.updateProps(u,{shape:{points:h.ends}},e,a):u=p(h,a),v(u,t,a,r),n.add(u),t.setItemGraphicEl(a,u))}else n.remove(u)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&n.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),_(e,this.group);var t=e.get("clip",!0)?l(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){var i,n=t.getData(),r=n.getLayout("isSimpleBox");while(null!=(i=e.next())){var o,s=n.getItemLayout(i);o=p(s,i),v(o,n,i,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(e,t){_(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:n.noop}),f=s.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){var i=t.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))}});function p(e,t,i){var n=e.ends;return new f({shape:{points:i?m(n,e):n},z2:100})}function g(e,t){for(var i=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){i=!1;break}return i}function v(e,t,i,n){var r=t.getItemModel(i),s=r.getModel(c),a=t.getItemVisual(i,"color"),l=t.getItemVisual(i,"borderColor")||a,d=s.getItemStyle(h);e.useStyle(d),e.style.strokeNoScale=!0,e.style.fill=a,e.style.stroke=l,e.__simpleBox=n;var f=r.getModel(u).getItemStyle();o.setHoverStyle(e,f)}function m(e,t){return n.map(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var y=s.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var i=t.points,n=0;n<i.length;)if(this.__sign===i[n++]){var r=i[n++];e.moveTo(r,i[n++]),e.lineTo(r,i[n++])}else n+=3}});function _(e,t,i){var n=e.getData(),r=n.getLayout("largePoints"),o=new y({shape:{points:r},__sign:1});t.add(o);var s=new y({shape:{points:r},__sign:-1});t.add(s),x(1,o,e,n),x(-1,s,e,n),i&&(o.incremental=!0,s.incremental=!0)}function x(e,t,i,n){var r=e>0?"P":"N",o=n.getVisual("borderColor"+r)||n.getVisual("color"+r),s=i.getModel(c).getItemStyle(h);t.useStyle(s),t.style.fill=null,t.style.stroke=o}var b=d;e.exports=b},28719:function(e,t,i){var n=i(76442),r=n.subPixelOptimize,o=i(59039),s=i(44261),a=s.parsePercent,l=i(95289),c=l.retrieve2,u="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:o(),reset:function(e){var t=e.coordinateSystem,i=e.getData(),n=f(e,i),o=0,s=1,a=["x","y"],l=i.mapDimension(a[o]),c=i.mapDimension(a[s],!0),h=c[0],p=c[1],g=c[2],v=c[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==l||c.length<4))return{progress:e.pipelineContext.large?y:m};function m(e,i){var a;while(null!=(a=e.next())){var c=i.get(l,a),u=i.get(h,a),f=i.get(p,a),m=i.get(g,a),y=i.get(v,a),_=Math.min(u,f),x=Math.max(u,f),b=M(_,c),w=M(x,c),S=M(m,c),C=M(y,c),A=[];k(A,w,0),k(A,b,1),A.push(I(C),I(w),I(S),I(b)),i.setItemLayout(a,{sign:d(i,a,u,f,p),initBaseline:u>f?w[s]:b[s],ends:A,brushRect:T(m,y,c)})}function M(e,i){var n=[];return n[o]=i,n[s]=e,isNaN(i)||isNaN(e)?[NaN,NaN]:t.dataToPoint(n)}function k(e,t,i){var s=t.slice(),a=t.slice();s[o]=r(s[o]+n/2,1,!1),a[o]=r(a[o]-n/2,1,!0),i?e.push(s,a):e.push(a,s)}function T(e,t,i){var r=M(e,i),a=M(t,i);return r[o]-=n/2,a[o]-=n/2,{x:r[0],y:r[1],width:s?n:a[0]-r[0],height:s?a[1]-r[1]:n}}function I(e){return e[o]=r(e[o],1),e}}function y(e,i){var n,r,a=new u(4*e.count),c=0,f=[],m=[];while(null!=(r=e.next())){var y=i.get(l,r),_=i.get(h,r),x=i.get(p,r),b=i.get(g,r),w=i.get(v,r);isNaN(y)||isNaN(b)||isNaN(w)?(a[c++]=NaN,c+=3):(a[c++]=d(i,r,_,x,p),f[o]=y,f[s]=b,n=t.dataToPoint(f,null,m),a[c++]=n?n[0]:NaN,a[c++]=n?n[1]:NaN,f[s]=w,n=t.dataToPoint(f,null,m),a[c++]=n?n[1]:NaN)}i.setLayout("largePoints",a)}}};function d(e,t,i,n,r){var o;return o=i>n?-1:i<n?1:t>0?e.get(r,t-1)<=n?1:-1:1,o}function f(e,t){var i,n=e.getBaseAxis(),r="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/t.count()),o=a(c(e.get("barMaxWidth"),r),r),s=a(c(e.get("barMinWidth"),1),r),l=e.get("barWidth");return null!=l?a(l,r):Math.max(Math.min(r/2,o),s)}e.exports=h},33957:function(e,t,i){var n=i(59039),r=["itemStyle","borderColor"],o=["itemStyle","borderColor0"],s=["itemStyle","color"],a=["itemStyle","color0"],l={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(e,t){var i=e.getData();if(i.setVisual({legendSymbol:"roundRect",colorP:c(1,e),colorN:c(-1,e),borderColorP:u(1,e),borderColorN:u(-1,e)}),!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:l}}function l(e,t){var i;while(null!=(i=e.next())){var n=t.getItemModel(i),r=t.getItemLayout(i).sign;t.setItemVisual(i,{color:c(r,n),borderColor:u(r,n)})}}function c(e,t){return t.get(e>0?s:a)}function u(e,t){return t.get(e>0?r:o)}}};e.exports=l},50871:function(e,t,i){var n=i(95289);function r(e){e&&n.isArray(e.series)&&n.each(e.series,(function(e){n.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}e.exports=r},16983:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(76442),s=i(10589),a=s.getDefaultLabel,l=i(19554),c=i(11041),u=c.getLayoutOnAxis,h=i(1032),d=i(33358),f=i(40590),p=i(67955),g=i(99988),v=g.createClipPath,m=i(88190),y=i(89993),_=i(58568),x=i(12976),b=i(14774),w=o.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],C=["emphasis","itemStyle"],A=["label"],M=["emphasis","label"],k="e\0\0",T={cartesian2d:m,geo:y,singleAxis:_,polar:x,calendar:b};function I(e){var t,i=e.type;if("path"===i){var n=e.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,s=$(n);t=o.makePath(s,null,r,n.layout||"center"),t.__customPathData=s}else if("image"===i)t=new o.Image({}),t.__customImagePath=e.style.image;else if("text"===i)t=new o.Text({}),t.__customText=e.style.text;else if("group"===i)t=new o.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');var a=o.getShapeClass(i);t=new a}return t.__customGraphicType=i,t.name=e.name,t}function L(e,t,i,n,s,a,l){var c={},u=i.style||{};if(i.shape&&(c.shape=r.clone(i.shape)),i.position&&(c.position=i.position.slice()),i.scale&&(c.scale=i.scale.slice()),i.origin&&(c.origin=i.origin.slice()),i.rotation&&(c.rotation=i.rotation),"image"===e.type&&i.style){var h=c.style={};r.each(["x","y","width","height"],(function(t){E(t,h,u,e.style,a)}))}if("text"===e.type&&i.style){h=c.style={};r.each(["x","y"],(function(t){E(t,h,u,e.style,a)})),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==e.type&&(e.useStyle(u),a)){e.style.opacity=0;var d=u.opacity;null==d&&(d=1),o.initProps(e,{style:{opacity:d}},n,t)}a?e.attr(c):o.updateProps(e,c,n,t),i.hasOwnProperty("z2")&&e.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&e.attr("silent",i.silent),i.hasOwnProperty("invisible")&&e.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&e.attr("ignore",i.ignore),i.hasOwnProperty("info")&&e.attr("info",i.info);var f=i.styleEmphasis;o.setElementHoverStyle(e,f),l&&o.setAsHighDownDispatcher(e,!1!==f)}function E(e,t,i,n,r){null==i[e]||r||(t[e]=i[e],i[e]=n[e])}function D(e,t,i,n){var s=e.get("renderItem"),l=e.coordinateSystem,c={};l&&(c=l.prepareCustoms?l.prepareCustoms():T[l.type](l));var h,d,f,p,g,v=r.defaults({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:x,style:b,styleEmphasis:w,visual:k,barLayout:I,currentSeriesIndices:L,font:E},c.api||{}),m={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:c.coordSys,dataInsideLength:t.count(),encode:O(e.getData())},y=!0;return function(e,i){return h=e,y=!0,s&&s(r.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:i?i.type:null},m),v)};function _(e){null==e&&(e=h),y&&(d=t.getItemModel(e),f=d.getModel(A),p=d.getModel(M),g=t.getItemVisual(e,"color"),y=!1)}function x(e,i){return null==i&&(i=h),t.get(t.getDimension(e||0),i)}function b(i,n){null==n&&(n=h),_(n);var s=d.getModel(S).getItemStyle();null!=g&&(s.fill=g);var l=t.getItemVisual(n,"opacity");null!=l&&(s.opacity=l);var c=i?F(i,f):f;return o.setTextStyle(s,c,null,{autoColor:g,isRectText:!0}),s.text=c.getShallow("show")?r.retrieve2(e.getFormattedLabel(n,"normal"),a(t,n)):null,i&&V(s,i),s}function w(i,n){null==n&&(n=h),_(n);var s=d.getModel(C).getItemStyle(),l=i?F(i,p):p;return o.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?r.retrieve3(e.getFormattedLabel(n,"emphasis"),e.getFormattedLabel(n,"normal"),a(t,n)):null,i&&V(s,i),s}function k(e,i){return null==i&&(i=h),t.getItemVisual(i,e)}function I(e){if(l.getBaseAxis){var t=l.getBaseAxis();return u(r.defaults({axis:t},e),n)}}function L(){return i.getCurrentSeriesIndices()}function E(e){return o.getFont(e,i)}}function O(e){var t={};return r.each(e.dimensions,(function(i,n){var r=e.getDimensionInfo(i);if(!r.isExtraCoord){var o=r.coordDim,s=t[o]=t[o]||[];s[r.coordDimIndex]=n}})),t}function P(e,t,i,n,r,o){return e=R(e,t,i,n,r,o,!0),e&&o.setItemGraphicEl(t,e),e}function R(e,t,i,n,r,o,s){var a=!i;i=i||{};var l=i.type,c=i.shape,u=i.style;if(e&&(a||null!=l&&l!==e.__customGraphicType||"path"===l&&W(c)&&$(c)!==e.__customPathData||"image"===l&&G(u,"image")&&u.image!==e.__customImagePath||"text"===l&&G(c,"text")&&u.text!==e.__customText)&&(r.remove(e),e=null),!a){var h=!e;return!e&&(e=I(i)),L(e,t,i,n,o,h,s),"group"===l&&B(e,t,i,n,o),r.add(e),e}}function B(e,t,i,n,r){var o=i.children,s=o?o.length:0,a=i.$mergeChildren,l="byName"===a||i.diffChildrenByName,c=!1===a;if(s||l||c)if(l)N({oldChildren:e.children()||[],newChildren:o||[],dataIndex:t,animatableModel:n,group:e,data:r});else{c&&e.removeAll();for(var u=0;u<s;u++)o[u]&&R(e.childAt(u),t,o[u],n,e,r)}}function N(e){new h(e.oldChildren,e.newChildren,z,z,e).add(H).update(H).remove(j).execute()}function z(e,t){var i=e&&e.name;return null!=i?i:k+t}function H(e,t){var i=this.context,n=null!=e?i.newChildren[e]:null,r=null!=t?i.oldChildren[t]:null;R(r,i.dataIndex,n,i.animatableModel,i.group,i.data)}function F(e,t){var i=new f({},t);return r.each(w,(function(t,n){e.hasOwnProperty(t)&&(i.option[n]=e[t])})),i}function V(e,t){for(var i in t)!t.hasOwnProperty(i)&&w.hasOwnProperty(i)||(e[i]=t[i])}function j(e){var t=this.context,i=t.oldChildren[e];i&&t.group.remove(i)}function $(e){return e&&(e.pathData||e.d)}function W(e){return e&&(e.hasOwnProperty("pathData")||e.hasOwnProperty("d"))}function G(e,t){return e&&e.hasOwnProperty(t)}d.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(e,t){return l(this.getSource(),this)},getDataParams:function(e,t,i){var n=d.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),p.extend({type:"custom",_data:null,render:function(e,t,i,n){var r=this._data,o=e.getData(),s=this.group,a=D(e,o,t,i);o.diff(r).add((function(t){P(null,t,a(t,n),e,s,o)})).update((function(t,i){var l=r.getItemGraphicEl(i);P(l,t,a(t,n),e,s,o)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&s.remove(t)})).execute();var l=e.get("clip",!0)?v(e.coordinateSystem,!1,e):null;l?s.setClipPath(l):s.removeClipPath(),this._data=o},incrementalPrepareRender:function(e,t,i){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,i,n,r){var o=t.getData(),s=D(t,o,i,n);function a(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var l=e.start;l<e.end;l++){var c=P(null,l,s(l,r),t,this.group,o);c.traverse(a)}},dispose:r.noop,filterForExposedEvent:function(e,t,i,n){var r=t.element;if(null==r||i.name===r)return!0;while((i=i.parent)&&i!==this.group)if(i.name===r)return!0;return!1}})},86795:function(e,t,i){var n=i(89231);i(63428),i(8852);var r=i(39784),o=i(32493);n.registerVisual(r("effectScatter","circle")),n.registerLayout(o("effectScatter"))},63428:function(e,t,i){var n=i(19554),r=i(33358),o=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=o},8852:function(e,t,i){var n=i(89231),r=i(52033),o=i(78766),s=i(13388),a=i(32493),l=n.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(o)},render:function(e,t,i){var n=e.getData(),r=this._symbolDraw;r.updateData(n),this.group.add(r.group)},updateTransform:function(e,t,i){var n=e.getData();this.group.dirty();var r=a().reset(e);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=s.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},83296:function(e,t,i){var n=i(89231);i(28246),i(41114);var r=i(5045),o=i(10441),s=i(18014);n.registerVisual(r("funnel")),n.registerLayout(o),n.registerProcessor(s("funnel"))},28246:function(e,t,i){var n=i(89231),r=i(95289),o=i(80565),s=i(63199),a=s.defaultEmphasis,l=i(49442),c=l.makeSeriesEncodeForNameBased,u=i(65840),h=n.extendSeriesModel({type:"series.funnel",init:function(e){h.superApply(this,"init",arguments),this.legendVisualProvider=new u(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return o(this,{coordDimensions:["value"],encodeDefaulter:r.curry(c,this)})},_defaultLabelLine:function(e){a(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),i=h.superCall(this,"getDataParams",e),n=t.mapDimension("value"),r=t.getSum(n);return i.percent=r?+(t.get(n,e)/r*100).toFixed(2):0,i.$vars.push("percent"),i},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,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),d=h;e.exports=d},41114:function(e,t,i){var n=i(76442),r=i(95289),o=i(67955);function s(e,t){n.Group.call(this);var i=new n.Polygon,r=new n.Polyline,o=new n.Text;this.add(i),this.add(r),this.add(o),this.highDownOnUpdate=function(e,t){"emphasis"===t?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,t,!0)}var a=s.prototype,l=["itemStyle","opacity"];a.updateData=function(e,t,i){var o=this.childAt(0),s=e.hostModel,a=e.getItemModel(t),c=e.getItemLayout(t),u=e.getItemModel(t).get(l);u=null==u?1:u,o.useStyle({}),i?(o.setShape({points:c.points}),o.setStyle({opacity:0}),n.initProps(o,{style:{opacity:u}},s,t)):n.updateProps(o,{style:{opacity:u},shape:{points:c.points}},s,t);var h=a.getModel("itemStyle"),d=e.getItemVisual(t,"color");o.setStyle(r.defaults({lineJoin:"round",fill:d},h.getItemStyle(["opacity"]))),o.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),n.setHoverStyle(this)},a._updateLabel=function(e,t){var i=this.childAt(1),r=this.childAt(2),o=e.hostModel,s=e.getItemModel(t),a=e.getItemLayout(t),l=a.label,c=e.getItemVisual(t,"color");n.updateProps(i,{shape:{points:l.linePoints||l.linePoints}},o,t),n.updateProps(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=s.getModel("label"),h=s.getModel("emphasis.label"),d=s.getModel("labelLine"),f=s.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");n.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!d.get("show"),i.hoverIgnore=!f.get("show"),i.setStyle({stroke:c}),i.setStyle(d.getModel("lineStyle").getLineStyle()),i.hoverStyle=f.getModel("lineStyle").getLineStyle()},r.inherits(s,n.Group);var c=o.extend({type:"funnel",render:function(e,t,i){var n=e.getData(),r=this._data,o=this.group;n.diff(r).add((function(e){var t=new s(n,e);n.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var i=r.getItemGraphicEl(t);i.updateData(n,e),o.add(i),n.setItemGraphicEl(e,i)})).remove((function(e){var t=r.getItemGraphicEl(e);o.remove(t)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;e.exports=u},10441:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(61570)),o=i(44261),s=o.parsePercent,a=o.linearMap;function l(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t){for(var i=e.mapDimension("value"),n=e.mapArray(i,(function(e){return e})),r=[],o="ascending"===t,s=0,a=e.count();s<a;s++)r[s]=s;return"function"===typeof t?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?n[e]-n[t]:n[t]-n[e]})),r}function u(e){e.each((function(t){var i,n,r,o,s=e.getItemModel(t),a=s.getModel("label"),l=a.get("position"),c=s.get("orient"),u=s.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,f="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(f)"insideLeft"===l?(n=(d[0][0]+d[3][0])/2+5,r=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===l?(n=(d[1][0]+d[2][0])/2-5,r=(d[1][1]+d[2][1])/2,i="right"):(n=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,r=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),o=[[n,r],[n,r]];else{var p,g,v,m,y=u.get("length");"left"===l?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=p-y,n=v-5,i="right"):"right"===l?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=p+y,n=v+5,i="left"):"top"===l?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=g-y,r=m-5,i="center"):"bottom"===l?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=g+y,r=m+5,i="center"):"rightTop"===l?(p="horizontal"===c?d[3][0]:d[1][0],g="horizontal"===c?d[3][1]:d[1][1],"horizontal"===c?(m=g-y,r=m-5,i="center"):(v=p+y,n=v+5,i="top")):"rightBottom"===l?(p=d[2][0],g=d[2][1],"horizontal"===c?(m=g+y,r=m+5,i="center"):(v=p+y,n=v+5,i="bottom")):"leftTop"===l?(p=d[0][0],g="horizontal"===c?d[0][1]:d[1][1],"horizontal"===c?(m=g-y,r=m-5,i="center"):(v=p-y,n=v-5,i="right")):"leftBottom"===l?(p="horizontal"===c?d[1][0]:d[3][0],g="horizontal"===c?d[1][1]:d[2][1],"horizontal"===c?(m=g+y,r=m+5,i="center"):(v=p-y,n=v-5,i="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===c?(m=g+y,r=m+5,i="center"):(v=p+y,n=v+5,i="left")),"horizontal"===c?(v=p,n=v):(m=g,r=m),o=[[p,g],[v,m]]}h.label={linePoints:o,x:n,y:r,verticalAlign:"middle",textAlign:i,inside:f}}))}function h(e,t,i){e.eachSeriesByType("funnel",(function(e){var i=e.getData(),n=i.mapDimension("value"),r=e.get("sort"),o=l(e,t),h=c(i,r),d=e.get("orient"),f=o.width,p=o.height,g=o.x,v=o.y,m="horizontal"===d?[s(e.get("minSize"),p),s(e.get("maxSize"),p)]:[s(e.get("minSize"),f),s(e.get("maxSize"),f)],y=i.getDataExtent(n),_=e.get("min"),x=e.get("max");null==_&&(_=Math.min(y[0],0)),null==x&&(x=y[1]);var b=e.get("funnelAlign"),w=e.get("gap"),S="horizontal"===d?f:p,C=(S-w*(i.count()-1))/i.count(),A=function(e,t){if("horizontal"===d){var r,o=i.get(n,e)||0,s=a(o,[_,x],m,!0);switch(b){case"top":r=v;break;case"center":r=v+(p-s)/2;break;case"bottom":r=v+(p-s);break}return[[t,r],[t,r+s]]}o=i.get(n,e)||0;var l,c=a(o,[_,x],m,!0);switch(b){case"left":l=g;break;case"center":l=g+(f-c)/2;break;case"right":l=g+f-c;break}return[[l,t],[l+c,t]]};"ascending"===r&&(C=-C,w=-w,"horizontal"===d?g+=f:v+=p,h=h.reverse());for(var M=0;M<h.length;M++){var k=h[M],T=h[M+1],I=i.getItemModel(k);if("horizontal"===d){var L=I.get("itemStyle.width");null==L?L=C:(L=s(L,f),"ascending"===r&&(L=-L));var E=A(k,g),D=A(T,g+L);g+=L+w,i.setItemLayout(k,{points:E.concat(D.slice().reverse())})}else{var O=I.get("itemStyle.height");null==O?O=C:(O=s(O,p),"ascending"===r&&(O=-O));E=A(k,"horizontal"===d?g:v),D=A(T,"horizontal"===d?g+L:v+O);v+=O+w,i.setItemLayout(k,{points:E.concat(D.slice().reverse())})}}u(i)}))}e.exports=h},34853:function(e,t,i){i(59596),i(34460)},59596:function(e,t,i){var n=i(80565),r=i(33358),o=r.extend({type:"series.gauge",getInitialData:function(e,t){return n(this,["value"])},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,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),s=o;e.exports=s},34460:function(e,t,i){var n=i(92184),r=i(76442),o=i(67955),s=i(44261),a=s.parsePercent,l=s.round,c=s.linearMap;function u(e,t){var i=e.get("center"),n=t.getWidth(),r=t.getHeight(),o=Math.min(n,r),s=a(i[0],t.getWidth()),l=a(i[1],t.getHeight()),c=a(e.get("radius"),o/2);return{cx:s,cy:l,r:c}}function h(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var d=2*Math.PI,f=o.extend({type:"gauge",render:function(e,t,i){this.group.removeAll();var n=e.get("axisLine.lineStyle.color"),r=u(e,i);this._renderMain(e,t,i,n,r)},dispose:function(){},_renderMain:function(e,t,i,n,o){for(var s=this.group,a=e.getModel("axisLine"),l=a.getModel("lineStyle"),c=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,h=-e.get("endAngle")/180*Math.PI,f=(h-u)%d,p=u,g=l.get("width"),v=a.get("show"),m=0;v&&m<n.length;m++){var y=Math.min(Math.max(n[m][0],0),1),_=(h=u+f*y,new r.Sector({shape:{startAngle:p,endAngle:h,cx:o.cx,cy:o.cy,clockwise:c,r0:o.r-g,r:o.r},silent:!0}));_.setStyle({fill:n[m][1]}),_.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),s.add(_),p=h}var x=function(e){if(e<=0)return n[0][1];for(var t=0;t<n.length;t++)if(n[t][0]>=e&&(0===t?0:n[t-1][0])<e)return n[t][1];return n[t-1][1]};if(!c){var b=u;u=h,h=b}this._renderTicks(e,t,i,x,o,u,h,c),this._renderPointer(e,t,i,x,o,u,h,c),this._renderTitle(e,t,i,x,o),this._renderDetail(e,t,i,x,o)},_renderTicks:function(e,t,i,n,o,s,c,u){for(var d=this.group,f=o.cx,p=o.cy,g=o.r,v=+e.get("min"),m=+e.get("max"),y=e.getModel("splitLine"),_=e.getModel("axisTick"),x=e.getModel("axisLabel"),b=e.get("splitNumber"),w=_.get("splitNumber"),S=a(y.get("length"),g),C=a(_.get("length"),g),A=s,M=(c-s)/b,k=M/w,T=y.getModel("lineStyle").getLineStyle(),I=_.getModel("lineStyle").getLineStyle(),L=0;L<=b;L++){var E=Math.cos(A),D=Math.sin(A);if(y.get("show")){var O=new r.Line({shape:{x1:E*g+f,y1:D*g+p,x2:E*(g-S)+f,y2:D*(g-S)+p},style:T,silent:!0});"auto"===T.stroke&&O.setStyle({stroke:n(L/b)}),d.add(O)}if(x.get("show")){var P=h(l(L/b*(m-v)+v),x.get("formatter")),R=x.get("distance"),B=n(L/b);d.add(new r.Text({style:r.setTextStyle({},x,{text:P,x:E*(g-S-R)+f,y:D*(g-S-R)+p,textVerticalAlign:D<-.4?"top":D>.4?"bottom":"middle",textAlign:E<-.4?"left":E>.4?"right":"center"},{autoColor:B}),silent:!0}))}if(_.get("show")&&L!==b){for(var N=0;N<=w;N++){E=Math.cos(A),D=Math.sin(A);var z=new r.Line({shape:{x1:E*g+f,y1:D*g+p,x2:E*(g-C)+f,y2:D*(g-C)+p},silent:!0,style:I});"auto"===I.stroke&&z.setStyle({stroke:n((L+N/w)/b)}),d.add(z),A+=k}A-=k}else A+=M}},_renderPointer:function(e,t,i,o,s,l,u,h){var d=this.group,f=this._data;if(e.get("pointer.show")){var p=[+e.get("min"),+e.get("max")],g=[l,u],v=e.getData(),m=v.mapDimension("value");v.diff(f).add((function(t){var i=new n({shape:{angle:l}});r.initProps(i,{shape:{angle:c(v.get(m,t),p,g,!0)}},e),d.add(i),v.setItemGraphicEl(t,i)})).update((function(t,i){var n=f.getItemGraphicEl(i);r.updateProps(n,{shape:{angle:c(v.get(m,t),p,g,!0)}},e),d.add(n),v.setItemGraphicEl(t,n)})).remove((function(e){var t=f.getItemGraphicEl(e);d.remove(t)})).execute(),v.eachItemGraphicEl((function(e,t){var i=v.getItemModel(t),n=i.getModel("pointer");e.setShape({x:s.cx,y:s.cy,width:a(n.get("width"),s.r),r:a(n.get("length"),s.r)}),e.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",o(c(v.get(m,t),p,[0,1],!0))),r.setHoverStyle(e,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=v}else f&&f.eachItemGraphicEl((function(e){d.remove(e)}))},_renderTitle:function(e,t,i,n,o){var s=e.getData(),l=s.mapDimension("value"),u=e.getModel("title");if(u.get("show")){var h=u.get("offsetCenter"),d=o.cx+a(h[0],o.r),f=o.cy+a(h[1],o.r),p=+e.get("min"),g=+e.get("max"),v=e.getData().get(l,0),m=n(c(v,[p,g],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},u,{x:d,y:f,text:s.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(e,t,i,n,o){var s=e.getModel("detail"),l=+e.get("min"),u=+e.get("max");if(s.get("show")){var d=s.get("offsetCenter"),f=o.cx+a(d[0],o.r),p=o.cy+a(d[1],o.r),g=a(s.get("width"),o.r),v=a(s.get("height"),o.r),m=e.getData(),y=m.get(m.mapDimension("value"),0),_=n(c(y,[l,u],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},s,{x:f,y:p,text:h(y,s.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),p=f;e.exports=p},92184:function(e,t,i){var n=i(66343),r=n.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var i=Math.cos,n=Math.sin,r=t.r,o=t.width,s=t.angle,a=t.x-i(s)*o*(o>=r/3?1:2),l=t.y-n(s)*o*(o>=r/3?1:2);s=t.angle-Math.PI/2,e.moveTo(a,l),e.lineTo(t.x+i(s)*o,t.y+n(s)*o),e.lineTo(t.x+i(t.angle)*r,t.y+n(t.angle)*r),e.lineTo(t.x-i(s)*o,t.y-n(s)*o),e.lineTo(a,l)}});e.exports=r},29202:function(e,t,i){var n=i(89231);i(70216),i(83552),i(33695);var r=i(22443),o=i(39784),s=i(39433),a=i(26140),l=i(25529),c=i(73630),u=i(71336),h=i(56724);n.registerProcessor(r),n.registerVisual(o("graph","circle",null)),n.registerVisual(s),n.registerVisual(a),n.registerLayout(l),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,c),n.registerLayout(u),n.registerCoordinateSystem("graphView",{create:h})},70216:function(e,t,i){var n=i(89231),r=i(5628),o=i(95289),s=i(63199),a=s.defaultEmphasis,l=i(40590),c=i(8595),u=c.encodeHTML,h=i(65354),d=i(65840),f=i(35238),p=f.initCurvenessList,g=f.createEdgeMapForCurveness,v=n.extendSeriesModel({type:"series.graph",init:function(e){v.superApply(this,"init",arguments);var t=this;function i(){return t._categoriesData}this.legendVisualProvider=new d(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){v.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){v.superApply(this,"mergeDefaultAndTheme",arguments),a(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var i=e.edges||e.links||[],n=e.data||e.nodes||[],r=this;if(n&&i){p(this);var s=h(n,i,this,!0,a);return o.each(s.edges,(function(e){g(e.node1,e.node2,this,e.dataIndex)}),this),s.data}function a(e,i){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,i=e.getShallow("category"),n=t[i];return n&&(n.parentModel=e.parentModel,e.parentModel=n),e}));var n=r.getModel("edgeLabel"),o=new l({label:n.option},n.parentModel,t),s=r.getModel("emphasis.edgeLabel"),a=new l({emphasis:{label:s.option}},s.parentModel,t);function c(e){return e=this.parsePath(e),e&&"label"===e[0]?o:e&&"emphasis"===e[0]&&"label"===e[1]?a:this.parentModel}i.wrapMethod("getItemModel",(function(e){return e.customizeGetParent(c),e}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,i){if("edge"===i){var n=this.getData(),r=this.getDataParams(e,i),o=n.graph.getEdgeByIndex(e),s=n.getName(o.node1.dataIndex),a=n.getName(o.node2.dataIndex),l=[];return null!=s&&l.push(s),null!=a&&l.push(a),l=u(l.join(" > ")),r.value&&(l+=" : "+u(r.value)),l}return v.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=o.map(this.option.categories||[],(function(e){return null!=e.value?e:o.extend({value:0},e)})),t=new r(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return v.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,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:{label:{show:!0}}}}),m=v;e.exports=m},83552:function(e,t,i){var n=i(89231),r=i(95289),o=i(52033),s=i(73643),a=i(95441),l=i(43173),c=i(47114),u=c.onIrrelevantElement,h=i(76442),d=i(97615),f=i(62129),p=f.getNodeGlobalScale,g="__focusNodeAdjacency",v="__unfocusNodeAdjacency",m=["itemStyle","opacity"],y=["lineStyle","opacity"];function _(e,t){var i=e.getVisual("opacity");return null!=i?i:e.getModel().get(t)}function x(e,t,i){var n=e.getGraphicEl(),r=_(e,t);null!=i&&(null==r&&(r=1),r*=i),n.downplay&&n.downplay(),n.traverse((function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;null!=t&&null==i||(t=r),e.setStyle("opacity",t)}}))}function b(e,t){var i=_(e,t),n=e.getGraphicEl();n.traverse((function(e){!e.isGroup&&e.setStyle("opacity",i)})),n.highlight&&n.highlight()}var w=n.extendChartView({type:"graph",init:function(e,t){var i=new o,n=new s,r=this.group;this._controller=new a(t.getZr()),this._controllerHost={target:r},r.add(i.group),r.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(e,t,i){var n=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,a=this.group;if("view"===r.type){var l={position:r.position,scale:r.scale};this._firstRender?a.attr(l):h.updateProps(a,l,e)}d(e.getGraph(),p(e));var c=e.getData();o.updateData(c);var u=e.getEdgeData();s.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,i),clearTimeout(this._layoutTimeout);var f=e.forceLayout,m=e.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,m),c.eachItemGraphicEl((function(t,r){var o=c.getItemModel(r);t.off("drag").off("dragend");var s=o.get("draggable");s&&t.on("drag",(function(){f&&(f.warmUp(),!this._layouting&&this._startForceLayoutIteration(f,m),f.setFixed(r),c.setItemLayout(r,t.position))}),this).on("dragend",(function(){f&&f.setUnfixed(r)}),this),t.setDraggable(s&&f),t[g]&&t.off("mouseover",t[g]),t[v]&&t.off("mouseout",t[v]),o.get("focusNodeAdjacency")&&(t.on("mouseover",t[g]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[v]=function(){n._dispatchUnfocus(i)}))}),this),c.graph.eachEdge((function(t){var r=t.getGraphicEl();r[g]&&r.off("mouseover",r[g]),r[v]&&r.off("mouseout",r[v]),t.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[g]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),r.on("mouseout",r[v]=function(){n._dispatchUnfocus(i)}))}));var y="circular"===e.get("layout")&&e.get("circular.rotateLabel"),_=c.getLayout("cx"),x=c.getLayout("cy");c.eachItemGraphicEl((function(e,t){var i=c.getItemModel(t),n=i.get("label.rotate")||0,r=e.getSymbolPath();if(y){var o=c.getItemLayout(t),s=Math.atan2(o[1]-x,o[0]-_);s<0&&(s=2*Math.PI+s);var a=o[0]<_;a&&(s-=Math.PI);var l=a?"left":"right";h.modifyLabelStyle(r,{textRotation:-s,textPosition:l,textOrigin:"center"},{textPosition:l})}else h.modifyLabelStyle(r,{textRotation:n*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(e,t){var i=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){i._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:i._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,i,n){var o=e.getData(),s=o.graph,a=n.dataIndex,l=n.edgeDataIndex,c=s.getNodeByIndex(a),u=s.getEdgeByIndex(l);(c||u)&&(s.eachNode((function(e){x(e,m,.1)})),s.eachEdge((function(e){x(e,y,.1)})),c&&(b(c,m),r.each(c.edges,(function(e){e.dataIndex<0||(b(e,y),b(e.node1,m),b(e.node2,m))}))),u&&(b(u,y),b(u.node1,m),b(u.node2,m)))},unfocusNodeAdjacency:function(e,t,i,n){var r=e.getData().graph;r.eachNode((function(e){x(e,m)})),r.eachEdge((function(e){x(e,y)}))},_startForceLayoutIteration:function(e,t){var i=this;(function n(){e.step((function(e){i.updateLayout(i._model),(i._layouting=!e)&&(t?i._layoutTimeout=setTimeout(n,16):n())}))})()},_updateController:function(e,t,i){var n=this._controller,r=this._controllerHost,o=this.group;n.setPointerChecker((function(t,n,r){var s=o.getBoundingRect();return s.applyTransform(o.transform),s.contain(n,r)&&!u(t,i,e)})),"view"===e.coordinateSystem.type?(n.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(t){l.updateViewOnPan(r,t.dx,t.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){l.updateViewOnZoom(r,t.scale,t.originX,t.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(),d(e.getGraph(),p(e)),this._lineDraw.updateLayout()}),this)):n.disable()},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),i=p(e),n=[i,i];t.eachItemGraphicEl((function(e,t){e.attr("scale",n)}))},updateLayout:function(e){d(e.getGraph(),p(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});e.exports=w},97615:function(e,t,i){var n=i(35574),r=i(31138),o=i(62129),s=o.getSymbolSize,a=[],l=[],c=[],u=n.quadraticAt,h=r.distSquare,d=Math.abs;function f(e,t,i){for(var n,r=e[0],o=e[1],s=e[2],f=1/0,p=i*i,g=.1,v=.1;v<=.9;v+=.1){a[0]=u(r[0],o[0],s[0],v),a[1]=u(r[1],o[1],s[1],v);var m=d(h(a,t)-p);m<f&&(f=m,n=v)}for(var y=0;y<32;y++){var _=n+g;l[0]=u(r[0],o[0],s[0],n),l[1]=u(r[1],o[1],s[1],n),c[0]=u(r[0],o[0],s[0],_),c[1]=u(r[1],o[1],s[1],_);m=h(l,t)-p;if(d(m)<.01)break;var x=h(c,t)-p;g/=2,m<0?x>=0?n+=g:n-=g:x>=0?n-=g:n+=g}return n}function p(e,t){var i=[],o=n.quadraticSubdivide,a=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,n){var u=e.getLayout(),h=e.getVisual("fromSymbol"),d=e.getVisual("toSymbol");u.__original||(u.__original=[r.clone(u[0]),r.clone(u[1])],u[2]&&u.__original.push(r.clone(u[2])));var p=u.__original;if(null!=u[2]){if(r.copy(a[0],p[0]),r.copy(a[1],p[2]),r.copy(a[2],p[1]),h&&"none"!==h){var g=s(e.node1),v=f(a,p[0],g*t);o(a[0][0],a[1][0],a[2][0],v,i),a[0][0]=i[3],a[1][0]=i[4],o(a[0][1],a[1][1],a[2][1],v,i),a[0][1]=i[3],a[1][1]=i[4]}if(d&&"none"!==d){g=s(e.node2),v=f(a,p[1],g*t);o(a[0][0],a[1][0],a[2][0],v,i),a[1][0]=i[1],a[2][0]=i[2],o(a[0][1],a[1][1],a[2][1],v,i),a[1][1]=i[1],a[2][1]=i[2]}r.copy(u[0],a[0]),r.copy(u[1],a[2]),r.copy(u[2],a[1])}else{if(r.copy(l[0],p[0]),r.copy(l[1],p[1]),r.sub(c,l[1],l[0]),r.normalize(c,c),h&&"none"!==h){g=s(e.node1);r.scaleAndAdd(l[0],l[0],c,g*t)}if(d&&"none"!==d){g=s(e.node2);r.scaleAndAdd(l[1],l[1],c,-g*t)}r.copy(u[0],l[0]),r.copy(u[1],l[1])}}))}e.exports=p},22443:function(e){function t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var i=e.getCategoriesData(),n=e.getGraph(),r=n.data,o=i.mapArray(i.getName);r.filterSelf((function(e){var i=r.getItemModel(e),n=i.getShallow("category");if(null!=n){"number"===typeof n&&(n=o[n]);for(var s=0;s<t.length;s++)if(!t[s].isSelected(n))return!1}return!0}))}),this)}e.exports=t},39433:function(e){function t(e){var t={};e.eachSeriesByType("graph",(function(e){var i=e.getCategoriesData(),n=e.getData(),r={};i.each((function(n){var o=i.getName(n);r["ec-"+o]=n;var s=i.getItemModel(n),a=s.get("itemStyle.color")||e.getColorFromPalette(o,t);i.setItemVisual(n,"color",a);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=s.getShallow(l[c],!0);null!=u&&i.setItemVisual(n,l[c],u)}})),i.count()&&n.each((function(e){var t=n.getItemModel(e),o=t.getShallow("category");if(null!=o){"string"===typeof o&&(o=r["ec-"+o]);for(var s=["color","opacity","symbol","symbolSize","symbolKeepAspect"],a=0;a<s.length;a++)null==n.getItemVisual(e,s[a],!0)&&n.setItemVisual(e,s[a],i.getItemVisual(o,s[a]))}}))}))}e.exports=t},73630:function(e,t,i){var n=i(29358),r=n.circularLayout;function o(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&r(e,"symbolSize")}))}e.exports=o},29358:function(e,t,i){var n=i(31138),r=i(62129),o=r.getSymbolSize,s=r.getNodeGlobalScale,a=i(95289),l=i(35238),c=l.getCurvenessForEdge,u=Math.PI,h=[];function d(e,t){var i=e.coordinateSystem;if(!i||"view"===i.type){var r=i.getBoundingRect(),o=e.getData(),s=o.graph,l=r.width/2+r.x,u=r.height/2+r.y,h=Math.min(r.width,r.height)/2,d=o.count();o.setLayout({cx:l,cy:u}),d&&(f[t](e,i,s,o,h,l,u,d),s.eachEdge((function(t,i){var r,o=a.retrieve3(t.getModel().get("lineStyle.curveness"),c(t,e,i),0),s=n.clone(t.node1.getLayout()),h=n.clone(t.node2.getLayout()),d=(s[0]+h[0])/2,f=(s[1]+h[1])/2;+o&&(o*=3,r=[l*o+d*(1-o),u*o+f*(1-o)]),t.setLayout([s,h,r])})))}}var f={value:function(e,t,i,n,r,o,s,a){var l=0,c=n.getSum("value"),u=2*Math.PI/(c||a);i.eachNode((function(e){var t=e.getValue("value"),i=u*(c?t:1)/2;l+=i,e.setLayout([r*Math.cos(l)+o,r*Math.sin(l)+s]),l+=i}))},symbolSize:function(e,t,i,n,r,a,l,c){var d=0;h.length=c;var f=s(e);i.eachNode((function(e){var t=o(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=f;var i=Math.asin(t/2/r);isNaN(i)&&(i=u/2),h[e.dataIndex]=i,d+=2*i}));var p=(2*u-d)/c/2,g=0;i.eachNode((function(e){var t=p+h[e.dataIndex];g+=t,e.setLayout([r*Math.cos(g)+a,r*Math.sin(g)+l]),g+=t}))}};t.circularLayout=d},56724:function(e,t,i){var n=i(92394),r=i(61570),o=r.getLayoutRect,s=i(66346);function a(e,t,i){var n=e.getBoxLayoutParams();return n.aspect=i,o(n,{width:t.getWidth(),height:t.getHeight()})}function l(e,t){var i=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var o=e.getData(),l=o.mapArray((function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]})),c=[],u=[];s.fromPoints(l,c,u),u[0]-c[0]===0&&(u[0]+=1,c[0]-=1),u[1]-c[1]===0&&(u[1]+=1,c[1]-=1);var h=(u[0]-c[0])/(u[1]-c[1]),d=a(e,t,h);isNaN(h)&&(c=[d.x,d.y],u=[d.x+d.width,d.y+d.height]);var f=u[0]-c[0],p=u[1]-c[1],g=d.width,v=d.height,m=e.coordinateSystem=new n;m.zoomLimit=e.get("scaleLimit"),m.setBoundingRect(c[0],c[1],f,p),m.setViewRect(d.x,d.y,g,v),m.setCenter(e.get("center")),m.setZoom(e.get("zoom")),i.push(m)}})),i}e.exports=l},26140:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}function i(e){e.eachSeriesByType("graph",(function(e){var i=e.getGraph(),n=e.getEdgeData(),r=t(e.get("edgeSymbol")),o=t(e.get("edgeSymbolSize")),s="lineStyle.color".split("."),a="lineStyle.opacity".split(".");n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("color",e.get(s)),n.setVisual("opacity",e.get(a)),n.each((function(e){var r=n.getItemModel(e),o=i.getEdgeByIndex(e),l=t(r.getShallow("symbol",!0)),c=t(r.getShallow("symbolSize",!0)),u=r.get(s),h=r.get(a);switch(u){case"source":u=o.node1.getVisual("color");break;case"target":u=o.node2.getVisual("color");break}l[0]&&o.setVisual("fromSymbol",l[0]),l[1]&&o.setVisual("toSymbol",l[1]),c[0]&&o.setVisual("fromSymbolSize",c[0]),c[1]&&o.setVisual("toSymbolSize",c[1]),o.setVisual("color",u),o.setVisual("opacity",h)}))}))}e.exports=i},2458:function(e,t,i){var n=i(31138),r=n.scaleAndAdd;function o(e,t,i){for(var o=i.rect,s=o.width,a=o.height,l=[o.x+s/2,o.y+a/2],c=null==i.gravity?.1:i.gravity,u=0;u<e.length;u++){var h=e[u];h.p||(h.p=n.create(s*(Math.random()-.5)+l[0],a*(Math.random()-.5)+l[1])),h.pp=n.clone(h.p),h.edges=null}var d=null==i.friction?.6:i.friction,f=d;return{warmUp:function(){f=.8*d},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(i){for(var o=[],s=e.length,a=0;a<t.length;a++){var u=t[a];if(!u.ignoreForceLayout){var h=u.n1,d=u.n2;n.sub(o,d.p,h.p);var p=n.len(o)-u.d,g=d.w/(h.w+d.w);isNaN(g)&&(g=0),n.normalize(o,o),!h.fixed&&r(h.p,h.p,o,g*p*f),!d.fixed&&r(d.p,d.p,o,-(1-g)*p*f)}}for(a=0;a<s;a++){var v=e[a];v.fixed||(n.sub(o,l,v.p),r(v.p,v.p,o,c*f))}for(a=0;a<s;a++){h=e[a];for(var m=a+1;m<s;m++){d=e[m];n.sub(o,d.p,h.p);p=n.len(o);0===p&&(n.set(o,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+d.rep)/p/p;!h.fixed&&r(h.pp,h.pp,o,y),!d.fixed&&r(d.pp,d.pp,o,-y)}}var _=[];for(a=0;a<s;a++){v=e[a];v.fixed||(n.sub(_,v.p,v.pp),r(v.p,v.p,_,f),n.copy(v.pp,v.p))}f*=.992,i&&i(e,t,f<.01)}}}t.forceLayout=o},71336:function(e,t,i){var n=i(2458),r=n.forceLayout,o=i(56501),s=o.simpleLayout,a=i(29358),l=a.circularLayout,c=i(44261),u=c.linearMap,h=i(31138),d=i(95289),f=i(35238),p=f.getCurvenessForEdge;function g(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var i=e.preservedPoints||{},n=e.getGraph(),o=n.data,a=n.edgeData,c=e.getModel("force"),f=c.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,i[t]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&l(e,"value"):s(e);var g=o.getDataExtent("value"),v=a.getDataExtent("value"),m=c.get("repulsion"),y=c.get("edgeLength");d.isArray(m)||(m=[m,m]),d.isArray(y)||(y=[y,y]),y=[y[1],y[0]];var _=o.mapArray("value",(function(e,t){var i=o.getItemLayout(t),n=u(e,g,m);return isNaN(n)&&(n=(m[0]+m[1])/2),{w:n,rep:n,fixed:o.getItemModel(t).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}})),x=a.mapArray("value",(function(t,i){var r=n.getEdgeByIndex(i),o=u(t,v,y);isNaN(o)&&(o=(y[0]+y[1])/2);var s=r.getModel(),a=d.retrieve3(s.get("lineStyle.curveness"),-p(r,e,i,!0),0);return{n1:_[r.node1.dataIndex],n2:_[r.node2.dataIndex],d:o,curveness:a,ignoreForceLayout:s.get("ignoreForceLayout")}})),b=(t=e.coordinateSystem,t.getBoundingRect()),w=r(_,x,{rect:b,gravity:c.get("gravity"),friction:c.get("friction")}),S=w.step;w.step=function(e){for(var t=0,r=_.length;t<r;t++)_[t].fixed&&h.copy(_[t].p,n.getNodeByIndex(t).getLayout());S((function(t,r,s){for(var a=0,l=t.length;a<l;a++)t[a].fixed||n.getNodeByIndex(a).setLayout(t[a].p),i[o.getId(a)]=t[a].p;for(a=0,l=r.length;a<l;a++){var c=r[a],u=n.getEdgeByIndex(a),d=c.n1.p,f=c.n2.p,p=u.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],h.copy(p[0],d),h.copy(p[1],f),+c.curveness&&(p[2]=[(d[0]+f[0])/2-(d[1]-f[1])*c.curveness,(d[1]+f[1])/2-(f[0]-d[0])*c.curveness]),u.setLayout(p)}e&&e(s)}))},e.forceLayout=w,e.preservedPoints=i,w.step()}else e.forceLayout=null}))}e.exports=g},33695:function(e,t,i){var n=i(89231),r=i(54407),o=r.updateCenterAndZoom;i(38615);var s={type:"graphRoam",event:"graphRoam",update:"none"};n.registerAction(s,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,n=o(i,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))},62129:function(e,t){function i(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var i=e.option.nodeScaleRatio,n=t.scale,r=n&&n[0]||1,o=t.getZoom(),s=(o-1)*i+1;return s/r}function n(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=i,t.getSymbolSize=n},25529:function(e,t,i){var n=i(95289),r=n.each,o=i(56501),s=o.simpleLayout,a=o.simpleLayoutEdge;function l(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),i=e.coordinateSystem;if(i&&"view"!==i.type){var n=e.getData(),o=[];r(i.dimensions,(function(e){o=o.concat(n.mapDimension(e,!0))}));for(var l=0;l<n.count();l++){for(var c=[],u=!1,h=0;h<o.length;h++){var d=n.get(o[h],l);isNaN(d)||(u=!0),c.push(d)}u?n.setItemLayout(l,i.dataToPoint(c)):n.setItemLayout(l,[NaN,NaN])}a(n.graph,e)}else t&&"none"!==t||s(e)}))}e.exports=l},56501:function(e,t,i){var n=i(31138),r=i(95289),o=i(35238),s=o.getCurvenessForEdge;function a(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=e.getGraph();i.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),l(i,e)}}function l(e,t){e.eachEdge((function(e,i){var o=r.retrieve3(e.getModel().get("lineStyle.curveness"),-s(e,t,i,!0),0),a=n.clone(e.node1.getLayout()),l=n.clone(e.node2.getLayout()),c=[a,l];+o&&c.push([(a[0]+l[0])/2-(a[1]-l[1])*o,(a[1]+l[1])/2-(l[0]-a[0])*o]),e.setLayout(c)}))}t.simpleLayout=a,t.simpleLayoutEdge=l},39982:function(e,t,i){i(71724),i(3196)},27016:function(e,t,i){var n=i(95289),r=256;function o(){var e=n.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}o.prototype={update:function(e,t,i,n,o,s){var a=this._getBrush(),l=this._getGradient(e,o,"inRange"),c=this._getGradient(e,o,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),f=e.length;h.width=t,h.height=i;for(var p=0;p<f;++p){var g=e[p],v=g[0],m=g[1],y=g[2],_=n(y);d.globalAlpha=_,d.drawImage(a,v-u,m-u)}if(!h.width||!h.height)return h;var x=d.getImageData(0,0,h.width,h.height),b=x.data,w=0,S=b.length,C=this.minOpacity,A=this.maxOpacity,M=A-C;while(w<S){_=b[w+3]/256;var k=4*Math.floor(_*(r-1));if(_>0){var T=s(_)?l:c;_>0&&(_=_*M+C),b[w++]=T[k],b[w++]=T[k+1],b[w++]=T[k+2],b[w++]=T[k+3]*_*256}else w+=4}return d.putImageData(x,0,0),h},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=n.createCanvas()),t=this.pointSize+this.blurSize,i=2*t;e.width=i,e.height=i;var r=e.getContext("2d");return r.clearRect(0,0,i,i),r.shadowOffsetX=i,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},_getGradient:function(e,t,i){for(var n=this._gradientPixels,r=n[i]||(n[i]=new Uint8ClampedArray(1024)),o=[0,0,0,0],s=0,a=0;a<256;a++)t[i](a/255,!0,o),r[s++]=o[0],r[s++]=o[1],r[s++]=o[2],r[s++]=o[3];return r}};var s=o;e.exports=s},71724:function(e,t,i){var n=i(33358),r=i(19554),o=i(50294),s=n.extend({type:"series.heatmap",getInitialData:function(e,t){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=o.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=s},3196:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(76442),s=i(27016),a=i(95289);function l(e,t,i){var n=e[1]-e[0];t=a.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/n,(t.interval[1]-e[0])/n]}}));var r=t.length,o=0;return function(e){for(var n=o;n<r;n++){var s=t[n].interval;if(s[0]<=e&&e<=s[1]){o=n;break}}if(n===r)for(n=o-1;n>=0;n--){s=t[n].interval;if(s[0]<=e&&e<=s[1]){o=n;break}}return n>=0&&n<r&&i[n]}}function c(e,t){var i=e[1]-e[0];return t=[(t[0]-e[0])/i,(t[1]-e[0])/i],function(e){return e>=t[0]&&e<=t[1]}}function u(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var h=r.extendChartView({type:"heatmap",render:function(e,t,i){var n;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(i){i===e&&(n=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):u(r)&&this._renderOnGeo(r,e,n,i)},incrementalPrepareRender:function(e,t,i){this.group.removeAll()},incrementalRender:function(e,t,i,n){var r=t.coordinateSystem;r&&this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,i,n,r){var s,l,c=e.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),h=c.getAxis("y");s=u.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,f=e.getData(),p="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=e.getModel(p).getItemStyle(["color"]),_=e.getModel(g).getItemStyle(),x=e.getModel(v),b=e.getModel(m),w=c.type,S="cartesian2d"===w?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=i;C<n;C++){var A;if("cartesian2d"===w){if(isNaN(f.get(S[2],C)))continue;var M=c.dataToPoint([f.get(S[0],C),f.get(S[1],C)]);A=new o.Rect({shape:{x:Math.floor(Math.round(M[0])-s/2),y:Math.floor(Math.round(M[1])-l/2),width:Math.ceil(s),height:Math.ceil(l)},style:{fill:f.getItemVisual(C,"color"),opacity:f.getItemVisual(C,"opacity")}})}else{if(isNaN(f.get(S[1],C)))continue;A=new o.Rect({z2:1,shape:c.dataToRect([f.get(S[0],C)]).contentShape,style:{fill:f.getItemVisual(C,"color"),opacity:f.getItemVisual(C,"opacity")}})}var k=f.getItemModel(C);f.hasItemOption&&(y=k.getModel(p).getItemStyle(["color"]),_=k.getModel(g).getItemStyle(),x=k.getModel(v),b=k.getModel(m));var T=e.getRawValue(C),I="-";T&&null!=T[2]&&(I=T[2]),o.setLabelStyle(y,_,x,b,{labelFetcher:e,labelDataIndex:C,defaultText:I,isRectText:!0}),A.setStyle(y),o.setHoverStyle(A,f.hasItemOption?_:a.extend({},_)),A.incremental=r,r&&(A.useHoverLayer=!0),d.add(A),f.setItemGraphicEl(C,A)}},_renderOnGeo:function(e,t,i,n){var r=i.targetVisuals.inRange,a=i.targetVisuals.outOfRange,u=t.getData(),h=this._hmLayer||this._hmLayer||new s;h.blurSize=t.get("blurSize"),h.pointSize=t.get("pointSize"),h.minOpacity=t.get("minOpacity"),h.maxOpacity=t.get("maxOpacity");var d=e.getViewRect().clone(),f=e.getRoamTransform();d.applyTransform(f);var p=Math.max(d.x,0),g=Math.max(d.y,0),v=Math.min(d.width+d.x,n.getWidth()),m=Math.min(d.height+d.y,n.getHeight()),y=v-p,_=m-g,x=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],b=u.mapArray(x,(function(t,i,n){var r=e.dataToPoint([t,i]);return r[0]-=p,r[1]-=g,r.push(n),r})),w=i.getExtent(),S="visualMap.continuous"===i.type?c(w,i.option.range):l(w,i.getPieceList(),i.option.selected);h.update(b,y,_,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:a.color.getColorMapper()},S);var C=new o.Image({style:{width:y,height:_,x:p,y:g,image:h.canvas},silent:!0});this.group.add(C)},dispose:function(){}});e.exports=h},99768:function(e,t,i){var n=i(76442),r=i(51261),o=i(95289),s=i(22864),a=s.createSymbol,l=i(31138),c=i(35574);function u(e,t,i){n.Group.call(this),this.add(this.createLine(e,t,i)),this._updateEffectSymbol(e,t)}var h=u.prototype;h.createLine=function(e,t,i){return new r(e,t,i)},h._updateEffectSymbol=function(e,t){var i=e.getItemModel(t),n=i.getModel("effect"),r=n.get("symbolSize"),s=n.get("symbol");o.isArray(r)||(r=[r,r]);var l=n.get("color")||e.getItemVisual(t,"color"),c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=a(s,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(n.getItemStyle(["color"])),c.attr("scale",r),c.setColor(l),c.attr("scale",r),this._symbolType=s,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},h._updateEffectAnimation=function(e,t,i){var n=this.childAt(1);if(n){var r=this,s=e.getItemLayout(i),a=1e3*t.get("period"),l=t.get("loop"),c=t.get("constantSpeed"),u=o.retrieve(t.get("delay"),(function(t){return t/e.count()*a/3})),h="function"===typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,s),c>0&&(a=this.getLineLength(n)/c*1e3),a!==this._period||l!==this._loop){n.stopAnimation();var d=u;h&&(d=u(i)),n.__t>0&&(d=-a*n.__t),n.__t=0;var f=n.animate("",l).when(a,{__t:1}).delay(d).during((function(){r.updateSymbolPosition(n)}));l||f.done((function(){r.remove(n)})),f.start()}this._period=a,this._loop=l}},h.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},h.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},h.updateData=function(e,t,i){this.childAt(0).updateData(e,t,i),this._updateEffectSymbol(e,t)},h.updateSymbolPosition=function(e){var t=e.__p1,i=e.__p2,n=e.__cp1,r=e.__t,o=e.position,s=[o[0],o[1]],a=c.quadraticAt,u=c.quadraticDerivativeAt;o[0]=a(t[0],n[0],i[0],r),o[1]=a(t[1],n[1],i[1],r);var h=u(t[0],n[0],i[0],r),d=u(t[1],n[1],i[1],r);if(e.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastT<e.__t){var f=1.05*l.dist(s,o);e.attr("scale",[e.scale[0],f]),1===r&&(o[0]=s[0]+(o[0]-s[0])/2,o[1]=s[1]+(o[1]-s[1])/2)}else if(1===e.__lastT){f=2*l.dist(t,o);e.attr("scale",[e.scale[0],f])}else e.attr("scale",this._symbolScale);e.__lastT=e.__t,e.ignore=!1},h.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var i=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,i,t)},o.inherits(u,n.Group);var d=u;e.exports=d},83994:function(e,t,i){var n=i(80171),r=i(95289),o=i(99768),s=i(31138);function a(e,t,i){o.call(this,e,t,i),this._lastFrame=0,this._lastFramePercent=0}var l=a.prototype;l.createLine=function(e,t,i){return new n(e,t,i)},l.updateAnimationPoints=function(e,t){this._points=t;for(var i=[0],n=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];n+=s.dist(o,a),i.push(n)}if(0!==n){for(r=0;r<i.length;r++)i[r]/=n;this._offsets=i,this._length=n}},l.getLineLength=function(e){return this._length},l.updateSymbolPosition=function(e){var t=e.__t,i=this._points,n=this._offsets,r=i.length;if(n){var o=this._lastFrame;if(t<this._lastFramePercent){var a=Math.min(o+1,r-1);for(l=a;l>=0;l--)if(n[l]<=t)break;l=Math.min(l,r-2)}else{for(var l=o;l<r;l++)if(n[l]>t)break;l=Math.min(l-1,r-2)}s.lerp(e.position,i[l],i[l+1],(t-n[l])/(n[l+1]-n[l]));var c=i[l+1][0]-i[l][0],u=i[l+1][1]-i[l][1];e.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,e.ignore=!1}},r.inherits(a,o);var c=a;e.exports=c},78766:function(e,t,i){var n=i(95289),r=i(22864),o=r.createSymbol,s=i(76442),a=s.Group,l=i(44261),c=l.parsePercent,u=i(88747),h=3;function d(e){return n.isArray(e)||(e=[+e,+e]),e}function f(e,t){var i=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?i:null,fill:"fill"===t.brushType?i:null}})}))}function p(e,t){a.call(this);var i=new u(e,t),n=new a;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(e,t)}var g=p.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(e){for(var t=e.symbolType,i=e.color,n=this.childAt(1),r=0;r<h;r++){var s=o(t,-1,-1,2,2,i);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/h*e.period+e.effectOffset;s.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(a).start(),s.animateStyle(!0).when(e.period,{opacity:0}).delay(a).start(),n.add(s)}f(n,e)},g.updateEffectAnimation=function(e){for(var t=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],r=0;r<n.length;r++){var o=n[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}f(i,e)},g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.updateData=function(e,t){var i=e.hostModel;this.childAt(0).updateData(e,t);var n=this.childAt(1),r=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=d(e.getItemVisual(t,"symbolSize")),a=e.getItemVisual(t,"color");n.attr("scale",s),n.traverse((function(e){e.attr({fill:a})}));var l=r.getShallow("symbolOffset");if(l){var u=n.position;u[0]=c(l[0],s[0]),u[1]=c(l[1],s[1])}var h=e.getItemVisual(t,"symbolRotate");n.rotation=(h||0)*Math.PI/180||0;var f={};if(f.showEffectOn=i.get("showEffectOn"),f.rippleScale=r.get("rippleEffect.scale"),f.brushType=r.get("rippleEffect.brushType"),f.period=1e3*r.get("rippleEffect.period"),f.effectOffset=t/e.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=o,f.color=a,f.rippleEffectColor=r.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===f.showEffectOn)this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),g=function(){p.highlight(),"render"!==f.showEffectOn&&this.startEffectAnimation(f)},v=function(){p.downplay(),"render"!==f.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",g,this).on("mouseout",v,this).on("emphasis",g,this).on("normal",v,this)}this._effectCfg=f},g.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},n.inherits(p,a);var v=p;e.exports=v},90176:function(e,t,i){var n=i(76442),r=i(48458),o=i(52998),s=i(78788),a=n.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var i=t.segs,n=t.curveness;if(t.polyline)for(var r=0;r<i.length;){var o=i[r++];if(o>0){e.moveTo(i[r++],i[r++]);for(var s=1;s<o;s++)e.lineTo(i[r++],i[r++])}}else for(r=0;r<i.length;){var a=i[r++],l=i[r++],c=i[r++],u=i[r++];if(e.moveTo(a,l),n>0){var h=(a+c)/2-(l-u)*n,d=(l+u)/2-(c-a)*n;e.quadraticCurveTo(h,d,c,u)}else e.lineTo(c,u)}},findDataIndex:function(e,t){var i=this.shape,n=i.segs,r=i.curveness;if(i.polyline)for(var a=0,l=0;l<n.length;){var c=n[l++];if(c>0)for(var u=n[l++],h=n[l++],d=1;d<c;d++){var f=n[l++],p=n[l++];if(o.containStroke(u,h,f,p))return a}a++}else for(a=0,l=0;l<n.length;){u=n[l++],h=n[l++],f=n[l++],p=n[l++];if(r>0){var g=(u+f)/2-(h-p)*r,v=(h+p)/2-(f-u)*r;if(s.containStroke(u,h,g,v,f,p))return a}else if(o.containStroke(u,h,f,p))return a;a++}return-1}});function l(){this.group=new n.Group}var c=l.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(e){this.group.removeAll();var t=new a({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},c.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(e,t){var i=new a;i.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(i,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=e.start,this.group.add(i))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._setCommon=function(e,t,i){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("color");r&&e.setStyle("stroke",r),e.setStyle("fill"),i||(e.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i+e.__startIndex)})))},c._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var u=l;e.exports=u},18790:function(e,t,i){var n=i(76442),r=i(22864),o=r.createSymbol,s=i(48458),a=4,l=n.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(e,t){var i=t.points,n=t.size,r=this.symbolProxy,o=r.shape,s=e.getContext?e.getContext():e,l=s&&n[0]<a;if(!l)for(var c=0;c<i.length;){var u=i[c++],h=i[c++];isNaN(u)||isNaN(h)||(this.softClipShape&&!this.softClipShape.contain(u,h)||(o.x=u-n[0]/2,o.y=h-n[1]/2,o.width=n[0],o.height=n[1],r.buildPath(e,o,!0)))}},afterBrush:function(e){var t=this.shape,i=t.points,n=t.size,r=n[0]<a;if(r){this.setTransform(e);for(var o=0;o<i.length;){var s=i[o++],l=i[o++];isNaN(s)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(s,l)||e.fillRect(s-n[0]/2,l-n[1]/2,n[0],n[1]))}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var i=this.shape,n=i.points,r=i.size,o=Math.max(r[0],4),s=Math.max(r[1],4),a=n.length/2-1;a>=0;a--){var l=2*a,c=n[l]-o/2,u=n[l+1]-s/2;if(e>=c&&t>=u&&e<=c+o&&t<=u+s)return a}return-1}});function c(){this.group=new n.Group}var u=c.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e,t){this.group.removeAll();var i=new l({rectHover:!0,cursor:"default"});i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!1,t),this.group.add(i),this._incremental=null},u.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var i=2*(e.endIndex-e.startIndex),n=4*e.startIndex*2;t=new Float32Array(t.buffer,n,i)}e.setShape("points",t)}))}},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new s({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t,i){var n;this._incremental?(n=new l,this._incremental.addDisplayable(n,!0)):(n=new l({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),n.incremental=!0,this.group.add(n)),n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!!this._incremental,i)},u._setCommon=function(e,t,i,n){var r=t.hostModel;n=n||{};var s=t.getVisual("symbolSize");e.setShape("size",s instanceof Array?s:[s,s]),e.softClipShape=n.clipShape||null,e.symbolProxy=o(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var l=e.shape.size[0]<a;e.useStyle(r.getModel("itemStyle").getItemStyle(l?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&e.setColor(c),i||(e.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>=0&&(e.dataIndex=i+(e.startIndex||0))})))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var h=c;e.exports=h},51261:function(e,t,i){var n=i(95289),r=i(31138),o=i(22864),s=i(4154),a=i(76442),l=i(44261),c=l.round,u=["fromSymbol","toSymbol"];function h(e){return"_"+e+"Type"}function d(e,t,i){var r=t.getItemVisual(i,e);if(r&&"none"!==r){var s=t.getItemVisual(i,"color"),a=t.getItemVisual(i,e+"Size"),l=t.getItemVisual(i,e+"Rotate");n.isArray(a)||(a=[a,a]);var c=o.createSymbol(r,-a[0]/2,-a[1]/2,a[0],a[1],s);return c.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,c.name=e,c}}function f(e){var t=new s({name:"line",subPixelOptimize:!0});return p(t.shape,e),t}function p(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var i=t[2];i?(e.cpx1=i[0],e.cpy1=i[1]):(e.cpx1=NaN,e.cpy1=NaN)}function g(){var e=this,t=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),n=e.childOfName("label");if(t||i||!n.ignore){var o=1,s=this.parent;while(s)s.scale&&(o/=s.scale[0]),s=s.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var l=a.shape.percent,c=a.pointAt(0),u=a.pointAt(l),h=r.sub([],u,c);if(r.normalize(h,h),t){t.attr("position",c);var d=t.__specifiedRotation;if(null==d){var f=a.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(f[1],f[0]))}else t.attr("rotation",d);t.attr("scale",[o*l,o*l])}if(i){i.attr("position",u);d=i.__specifiedRotation;if(null==d){f=a.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(f[1],f[0]))}else i.attr("rotation",d);i.attr("scale",[o*l,o*l])}if(!n.ignore){var p,g,v,m;n.attr("position",u);var y=n.__labelDistance,_=y[0]*o,x=y[1]*o,b=l/2,w=(f=a.tangentAt(b),[f[1],-f[0]]),S=a.pointAt(b);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var C,A=f[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var M=-Math.atan2(f[1],f[0]);u[0]<c[0]&&(M=Math.PI+M),n.attr("rotation",M)}switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-x,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=x,v="top";break;default:C=0,v="middle"}switch(n.__position){case"end":p=[h[0]*_+u[0],h[1]*x+u[1]],g=h[0]>.8?"left":h[0]<-.8?"right":"center",v=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":p=[-h[0]*_+c[0],-h[1]*x+c[1]],g=h[0]>.8?"right":h[0]<-.8?"left":"center",v=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[_*A+c[0],c[1]+C],g=f[0]<0?"right":"left",m=[-_*A,-C];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[S[0],S[1]+C],g="center",m=[0,-C];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-_*A+u[0],u[1]+C],g=f[0]>=0?"right":"left",m=[_*A,-C];break}n.attr({style:{textVerticalAlign:n.__verticalAlign||v,textAlign:n.__textAlign||g},position:p,scale:[o,o],origin:m})}}}}function v(e,t,i){a.Group.call(this),this._createLine(e,t,i)}var m=v.prototype;m.beforeUpdate=g,m._createLine=function(e,t,i){var r=e.hostModel,o=e.getItemLayout(t),s=f(o);s.shape.percent=0,a.initProps(s,{shape:{percent:1}},r,t),this.add(s);var l=new a.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),n.each(u,(function(i){var n=d(i,e,t);this.add(n),this[h(i)]=e.getItemVisual(t,i)}),this),this._updateCommonStl(e,t,i)},m.updateData=function(e,t,i){var r=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(t),l={shape:{}};p(l.shape,s),a.updateProps(o,l,r,t),n.each(u,(function(i){var n=e.getItemVisual(t,i),r=h(i);if(this[r]!==n){this.remove(this.childOfName(i));var o=d(i,e,t);this.add(o)}this[r]=n}),this),this._updateCommonStl(e,t,i)},m._updateCommonStl=function(e,t,i){var r=e.hostModel,o=this.childOfName("line"),s=i&&i.lineStyle,l=i&&i.hoverLineStyle,h=i&&i.labelModel,d=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var f=e.getItemModel(t);s=f.getModel("lineStyle").getLineStyle(),l=f.getModel("emphasis.lineStyle").getLineStyle(),h=f.getModel("label"),d=f.getModel("emphasis.label")}var p=e.getItemVisual(t,"color"),g=n.retrieve3(e.getItemVisual(t,"opacity"),s.opacity,1);o.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:g},s)),o.hoverStyle=l,n.each(u,(function(e){var t=this.childOfName(e);t&&(t.setColor(p),t.setStyle({opacity:g}))}),this);var v,m,y=h.getShallow("show"),_=d.getShallow("show"),x=this.childOfName("label");if((y||_)&&(v=p||"#000",m=r.getFormattedLabel(t,"normal",e.dataType),null==m)){var b=r.getRawValue(t);m=null==b?e.getName(t):isFinite(b)?c(b):b}var w=y?m:null,S=_?n.retrieve2(r.getFormattedLabel(t,"emphasis",e.dataType),m):null,C=x.style;if(null!=w||null!=S){a.setTextStyle(x.style,h,{text:w},{autoColor:v}),x.__textAlign=C.textAlign,x.__verticalAlign=C.textVerticalAlign,x.__position=h.get("position")||"middle";var A=h.get("distance");n.isArray(A)||(A=[A,A]),x.__labelDistance=A}x.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},x.ignore=!y&&!_,a.setHoverStyle(this)},m.highlight=function(){this.trigger("emphasis")},m.downplay=function(){this.trigger("normal")},m.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},m.setLinePoints=function(e){var t=this.childOfName("line");p(t.shape,e),t.dirty()},n.inherits(v,a.Group);var y=v;e.exports=y},73643:function(e,t,i){var n=i(76442),r=i(51261);function o(e){this._ctor=e||r,this.group=new n.Group}var s=o.prototype;function a(e,t,i,n){var r=t.getItemLayout(i);if(d(r)){var o=new e._ctor(t,i,n);t.setItemGraphicEl(i,o),e.group.add(o)}}function l(e,t,i,n,r,o){var s=t.getItemGraphicEl(n);d(i.getItemLayout(r))?(s?s.updateData(i,r,o):s=new e._ctor(i,r,o),i.setItemGraphicEl(r,s),e.group.add(s)):e.group.remove(s)}function c(e){return e.animators&&e.animators.length>0}function u(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function h(e){return isNaN(e[0])||isNaN(e[1])}function d(e){return!h(e[0])&&!h(e[1])}s.isPersistent=function(){return!0},s.updateData=function(e){var t=this,i=t.group,n=t._lineData;t._lineData=e,n||i.removeAll();var r=u(e);e.diff(n).add((function(i){a(t,e,i,r)})).update((function(i,o){l(t,n,e,o,i,r)})).remove((function(e){i.remove(n.getItemGraphicEl(e))})).execute()},s.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,i){t.updateLayout(e,i)}),this)},s.incrementalPrepareUpdate=function(e){this._seriesScope=u(e),this._lineData=null,this.group.removeAll()},s.incrementalUpdate=function(e,t){function i(e){e.isGroup||c(e)||(e.incremental=e.useHoverLayer=!0)}for(var n=e.start;n<e.end;n++){var r=t.getItemLayout(n);if(d(r)){var o=new this._ctor(t,n,this._seriesScope);o.traverse(i),this.group.add(o),t.setItemGraphicEl(n,o)}}},s.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},s._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var f=o;e.exports=f},4154:function(e,t,i){var n=i(76442),r=i(31138),o=n.Line.prototype,s=n.BezierCurve.prototype;function a(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var l=n.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[a(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:o.buildPath,_buildPathCurve:s.buildPath,pointAt:function(e){return this[a(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:o.pointAt,_pointAtCurve:s.pointAt,tangentAt:function(e){var t=this.shape,i=a(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return r.normalize(i,i)},_tangentAtCurve:s.tangentAt});e.exports=l},80171:function(e,t,i){var n=i(76442),r=i(95289);function o(e,t,i){n.Group.call(this),this._createPolyline(e,t,i)}var s=o.prototype;s._createPolyline=function(e,t,i){var r=e.getItemLayout(t),o=new n.Polyline({shape:{points:r}});this.add(o),this._updateCommonStl(e,t,i)},s.updateData=function(e,t,i){var r=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(t)}};n.updateProps(o,s,r,t),this._updateCommonStl(e,t,i)},s._updateCommonStl=function(e,t,i){var o=this.childAt(0),s=e.getItemModel(t),a=e.getItemVisual(t,"color"),l=i&&i.lineStyle,c=i&&i.hoverLineStyle;i&&!e.hasItemOption||(l=s.getModel("lineStyle").getLineStyle(),c=s.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:a},l)),o.hoverStyle=c,n.setHoverStyle(this)},s.updateLayout=function(e,t){var i=this.childAt(0);i.setShape("points",e.getItemLayout(t))},r.inherits(o,n.Group);var a=o;e.exports=a},88747:function(e,t,i){var n=i(95289),r=i(22864),o=r.createSymbol,s=i(76442),a=i(44261),l=a.parsePercent,c=i(10589),u=c.getDefaultLabel;function h(e,t,i){s.Group.call(this),this.updateData(e,t,i)}var d=h.prototype,f=h.getSymbolSize=function(e,t){var i=e.getItemVisual(t,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};function p(e){return[e[0]/2,e[1]/2]}function g(e,t){this.parent.drift(e,t)}d._createSymbol=function(e,t,i,n,r){this.removeAll();var s=t.getItemVisual(i,"color"),a=o(e,-1,-1,2,2,s,r);a.attr({z2:100,culling:!0,scale:p(n)}),a.drift=g,this._symbolType=e,this.add(a)},d.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},d.getSymbolPath=function(){return this.childAt(0)},d.getScale=function(){return this.childAt(0).scale},d.highlight=function(){this.childAt(0).trigger("emphasis")},d.downplay=function(){this.childAt(0).trigger("normal")},d.setZ=function(e,t){var i=this.childAt(0);i.zlevel=e,i.z=t},d.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},d.updateData=function(e,t,i){this.silent=!1;var n=e.getItemVisual(t,"symbol")||"circle",r=e.hostModel,o=f(e,t),a=n!==this._symbolType;if(a){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(n,e,t,o,l)}else{var c=this.childAt(0);c.silent=!1,s.updateProps(c,{scale:p(o)},r,t)}if(this._updateCommon(e,t,o,i),a){c=this.childAt(0);var u=i&&i.fadeIn,h={scale:c.scale.slice()};u&&(h.style={opacity:c.style.opacity}),c.scale=[0,0],u&&(c.style.opacity=0),s.initProps(c,h,r,t)}this._seriesModel=r};var v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],_=["emphasis","label"];function x(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var i=this.__symbolOriginalScale,n=i[1]/i[0],r={scale:[Math.max(1.1*i[0],i[0]+3),Math.max(1.1*i[1],i[1]+3*n)]};this.animateTo(r,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}d._updateCommon=function(e,t,i,r){var o=this.childAt(0),a=e.hostModel,c=e.getItemVisual(t,"color");"image"!==o.type?o.useStyle({strokeNoScale:!0}):o.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var h=r&&r.itemStyle,d=r&&r.hoverItemStyle,f=r&&r.symbolOffset,g=r&&r.labelModel,b=r&&r.hoverLabelModel,w=r&&r.hoverAnimation,S=r&&r.cursorStyle;if(!r||e.hasItemOption){var C=r&&r.itemModel?r.itemModel:e.getItemModel(t);h=C.getModel(v).getItemStyle(["color"]),d=C.getModel(m).getItemStyle(),f=C.getShallow("symbolOffset"),g=C.getModel(y),b=C.getModel(_),w=C.getShallow("hoverAnimation"),S=C.getShallow("cursor")}else d=n.extend({},d);var A=o.style,M=e.getItemVisual(t,"symbolRotate");o.attr("rotation",(M||0)*Math.PI/180||0),f&&o.attr("position",[l(f[0],i[0]),l(f[1],i[1])]),S&&o.attr("cursor",S),o.setColor(c,r&&r.symbolInnerColor),o.setStyle(h);var k=e.getItemVisual(t,"opacity");null!=k&&(A.opacity=k);var T=e.getItemVisual(t,"liftZ"),I=o.__z2Origin;null!=T?null==I&&(o.__z2Origin=o.z2,o.z2+=T):null!=I&&(o.z2=I,o.__z2Origin=null);var L=r&&r.useNameLabel;function E(t,i){return L?e.getName(t):u(e,t)}s.setLabelStyle(A,d,g,b,{labelFetcher:a,labelDataIndex:t,defaultText:E,isRectText:!0,autoColor:c}),o.__symbolOriginalScale=p(i),o.hoverStyle=d,o.highDownOnUpdate=w&&a.isAnimationEnabled()?x:null,s.setHoverStyle(o)},d.fadeOut=function(e,t){var i=this.childAt(0);this.silent=i.silent=!0,(!t||!t.keepLabel)&&(i.style.text=null),s.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},n.inherits(h,s.Group);var b=h;e.exports=b},52033:function(e,t,i){var n=i(76442),r=i(88747),o=i(95289),s=o.isObject;function a(e){this.group=new n.Group,this._symbolCtor=e||r}var l=a.prototype;function c(e,t,i,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(i,"symbol")}function u(e){return null==e||s(e)||(e={isIgnore:e}),e||{}}function h(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}l.updateData=function(e,t){t=u(t);var i=this.group,r=e.hostModel,o=this._data,s=this._symbolCtor,a=h(e);o||i.removeAll(),e.diff(o).add((function(n){var r=e.getItemLayout(n);if(c(e,r,n,t)){var o=new s(e,n,a);o.attr("position",r),e.setItemGraphicEl(n,o),i.add(o)}})).update((function(l,u){var h=o.getItemGraphicEl(u),d=e.getItemLayout(l);c(e,d,l,t)?(h?(h.updateData(e,l,a),n.updateProps(h,{position:d},r)):(h=new s(e,l),h.attr("position",d)),i.add(h),e.setItemGraphicEl(l,h)):i.remove(h)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut((function(){i.remove(t)}))})).execute(),this._data=e},l.isPersistent=function(){return!0},l.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl((function(t,i){var n=e.getItemLayout(i);t.attr("position",n)}))},l.incrementalPrepareUpdate=function(e){this._seriesScope=h(e),this._data=null,this.group.removeAll()},l.incrementalUpdate=function(e,t,i){function n(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}i=u(i);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(c(t,o,r,i)){var s=new this._symbolCtor(t,r,this._seriesScope);s.traverse(n),s.attr("position",o),this.group.add(s),t.setItemGraphicEl(r,s)}}},l.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()};var d=a;e.exports=d},99988:function(e,t,i){var n=i(76442),r=i(44261),o=r.round;function s(e,t,i){var r=e.getArea(),o=e.getBaseAxis().isHorizontal(),s=r.x,a=r.y,l=r.width,c=r.height,u=i.get("lineStyle.width")||2;s-=u/2,a-=u/2,l+=u,c+=u,s=Math.floor(s),l=Math.round(l);var h=new n.Rect({shape:{x:s,y:a,width:l,height:c}});return t&&(h.shape[o?"width":"height"]=0,n.initProps(h,{shape:{width:l,height:c}},i)),h}function a(e,t,i){var r=e.getArea(),s=new n.Sector({shape:{cx:o(e.cx,1),cy:o(e.cy,1),r0:o(r.r0,1),r:o(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(s.shape.endAngle=r.startAngle,n.initProps(s,{shape:{endAngle:r.endAngle}},i)),s}function l(e,t,i){return e?"polar"===e.type?a(e,t,i):"cartesian2d"===e.type?s(e,t,i):null:null}t.createGridClipPath=s,t.createPolarClipPath=a,t.createClipPath=l},65354:function(e,t,i){var n=i(95289),r=i(5628),o=i(50950),s=i(75403),a=i(29966),l=i(50294),c=i(19554);function u(e,t,i,u,h){for(var d=new o(u),f=0;f<e.length;f++)d.addNode(n.retrieve(e[f].id,e[f].name,f),f);var p=[],g=[],v=0;for(f=0;f<t.length;f++){var m=t[f],y=m.source,_=m.target;d.addEdge(y,_,v)&&(g.push(m),p.push(n.retrieve(m.id,y+" > "+_)),v++)}var x,b=i.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)x=c(e,i);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];n.indexOf(S,"value")<0&&S.concat(["value"]);var C=a(e,{coordDimensions:S});x=new r(C,i),x.initData(e)}var A=new r(["value"],i);return A.initData(g,p),h&&h(x,A),s({mainData:x,struct:d,structAttr:"graph",datas:{node:x,edge:A},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}e.exports=u},19554:function(e,t,i){var n=i(95289),r=i(5628),o=i(29966),s=i(90642),a=s.SOURCE_FORMAT_ORIGINAL,l=i(99535),c=l.getDimensionTypeByAxis,u=i(63199),h=u.getDataItemValue,d=i(50294),f=i(87749),p=f.getCoordSysInfoBySeries,g=i(3325),v=i(74051),m=v.enableDataStack,y=i(49442),_=y.makeSeriesEncodeForAxisCoordSys;function x(e,t,i){i=i||{},g.isInstance(e)||(e=g.seriesDataToSource(e));var s,a=t.get("coordinateSystem"),l=d.get(a),u=p(t);u&&(s=n.map(u.coordSysDims,(function(e){var t={name:e},i=u.axisMap.get(e);if(i){var n=i.get("type");t.type=c(n)}return t}))),s||(s=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var h,f,v=o(e,{coordDimensions:s,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?n.curry(_,s,t):null});u&&n.each(v,(function(e,t){var i=e.coordDim,n=u.categoryAxisMap.get(i);n&&(null==h&&(h=t),e.ordinalMeta=n.getOrdinalMeta()),null!=e.otherDims.itemName&&(f=!0)})),f||null==h||(v[h].otherDims.itemName=0);var y=m(t,v),x=new r(v,t);x.setCalculationInfo(y);var w=null!=h&&b(e)?function(e,t,i,n){return n===h?i:this.defaultDimValueGetter(e,t,i,n)}:null;return x.hasItemOption=!1,x.initData(e,null,w),x}function b(e){if(e.sourceFormat===a){var t=w(e.data||[]);return null!=t&&!n.isArray(h(t))}}function w(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var S=x;e.exports=S},80565:function(e,t,i){var n=i(29966),r=i(5628),o=i(95289),s=o.extend,a=o.isArray;function l(e,t,i){t=a(t)&&{coordDimensions:t}||s({},t);var o=e.getSource(),l=n(o,t),c=new r(l,e);return c.initData(o,i),c}e.exports=l},59039:function(e,t,i){var n=i(63199),r=n.makeInner;function o(){var e=r();return function(t){var i=e(t),n=t.pipelineContext,r=i.large,o=i.progressiveRender,s=i.large=n&&n.large,a=i.progressiveRender=n&&n.progressiveRender;return!!(r^s||o^a)&&"reset"}}e.exports=o},38615:function(e,t,i){var n=i(89231);n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},10589:function(e,t,i){var n=i(41834),r=n.retrieveRawValue;function o(e,t){var i=e.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return r(e,t,i[0]);if(n){for(var o=[],s=0;s<i.length;s++){var a=r(e,t,i[s]);o.push(a)}return o.join(" ")}}t.getDefaultLabel=o},35238:function(e,t,i){var n=i(95289),r="--\x3e",o=function(e){return e.get("autoCurveness")||null},s=function(e,t){var i=o(e),r=20,s=[];if("number"===typeof i)r=i;else if(n.isArray(i))return void(e.__curvenessList=i);t>r&&(r=t);var a=r%2?r+2:r+3;s=[];for(var l=0;l<a;l++)s.push((l%2?l+1:l)/10*(l%2?-1:1));e.__curvenessList=s},a=function(e,t,i){var n=[e.id,e.dataIndex].join("."),o=[t.id,t.dataIndex].join(".");return[i.uid,n,o].join(r)},l=function(e){var t=e.split(r);return[t[0],t[2],t[1]].join(r)},c=function(e,t){var i=a(e.node1,e.node2,t);return t.__edgeMap[i]},u=function(e,t){var i=h(a(e.node1,e.node2,t),t),n=h(a(e.node2,e.node1,t),t);return i+n},h=function(e,t){var i=t.__edgeMap;return i[e]?i[e].length:0};function d(e){o(e)&&(e.__curvenessList=[],e.__edgeMap={},s(e))}function f(e,t,i,n){if(o(i)){var r=a(e,t,i),s=i.__edgeMap,c=s[l(r)];s[r]&&!c?s[r].isForward=!0:c&&s[r]&&(c.isForward=!0,s[r].isForward=!1),s[r]=s[r]||[],s[r].push(n)}}function p(e,t,i,r){var d=o(t),f=n.isArray(d);if(!d)return null;var p=c(e,t);if(!p)return null;for(var g=-1,v=0;v<p.length;v++)if(p[v]===i){g=v;break}var m=u(e,t);s(t,m),e.lineStyle=e.lineStyle||{};var y=a(e.node1,e.node2,t),_=t.__curvenessList,x=f||m%2?0:1;if(p.isForward)return _[x+g];var b=l(y),w=h(b,t),S=_[g+w+x];return r?f?d&&0===d[0]?(w+x)%2?S:-S:((w%2?0:1)+x)%2?S:-S:(w+x)%2?S:-S:_[g+w+x]}t.initCurvenessList=d,t.createEdgeMapForCurveness=f,t.getCurvenessForEdge=p},80047:function(e,t,i){var n=i(95289);function r(e,t,i){if(e&&n.indexOf(t,e.type)>=0){var r=i.getData().tree.root,o=e.targetNode;if("string"===typeof o&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var s=e.targetNodeId;if(null!=s&&(o=r.getNodeById(s)))return{node:o}}}function o(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function s(e,t){var i=o(e);return n.indexOf(i,t)>=0}function a(e,t){var i=[];while(e){var n=e.dataIndex;i.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return i.reverse(),i}t.retrieveTargetInfo=r,t.getPathToRoot=o,t.aboveViewRoot=s,t.wrapTreePathInfo=a},74370:function(e,t,i){var n=i(80565),r=i(95289),o=i(99535),s=o.getDimensionTypeByAxis,a=i(49442),l=a.makeSeriesEncodeForAxisCoordSys,c={_baseAxisDim:null,getInitialData:function(e,t){var i,o,a=t.getComponent("xAxis",this.get("xAxisIndex")),c=t.getComponent("yAxis",this.get("yAxisIndex")),u=a.get("type"),h=c.get("type");"category"===u?(e.layout="horizontal",i=a.getOrdinalMeta(),o=!0):"category"===h?(e.layout="vertical",i=c.getOrdinalMeta(),o=!0):e.layout=e.layout||"horizontal";var d=["x","y"],f="horizontal"===e.layout?0:1,p=this._baseAxisDim=d[f],g=d[1-f],v=[a,c],m=v[f].get("type"),y=v[1-f].get("type"),_=e.data;if(_&&o){var x=[];r.each(_,(function(e,t){var i;e.value&&r.isArray(e.value)?(i=e.value.slice(),e.value.unshift(t)):r.isArray(e)?(i=e.slice(),e.unshift(t)):i=e,x.push(i)})),e.data=x}var b=this.defaultValueDimensions,w=[{name:p,type:s(m),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:s(y),dimsDef:b.slice()}];return n(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:r.curry(l,w,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}};t.seriesModelMixin=c},1906:function(e,t,i){var n=i(89231);i(59350),i(44026);var r=i(39784),o=i(32493),s=i(99610);i(48807),n.registerVisual(r("line","circle","line")),n.registerLayout(o("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,s("line"))},59350:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(19554)),o=i(33358),s=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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.exports=s},44026:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(66346),s=o.fromPoints,a=i(52033),l=i(88747),c=i(64158),u=i(76442),h=i(63199),d=i(6667),f=d.Polyline,p=d.Polygon,g=i(67955),v=i(81961),m=v.prepareDataCoordInfo,y=v.getStackedOnPoint,_=i(99988),x=_.createGridClipPath,b=_.createPolarClipPath;function w(e,t){if(e.length===t.length){for(var i=0;i<e.length;i++){var n=e[i],r=t[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function S(e,t){var i=[],n=[],r=[],o=[];return s(e,i,n),s(t,r,o),Math.max(Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]),Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]))}function C(e){return"number"===typeof e?e:e?.5:0}function A(e,t,i){if(!i.valueDim)return[];for(var n=[],r=0,o=t.count();r<o;r++)n.push(y(i,e,t,r));return n}function M(e,t,i){for(var n=t.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,o=[],s=0;s<e.length-1;s++){var a=e[s+1],l=e[s];o.push(l);var c=[];switch(i){case"end":c[r]=a[r],c[1-r]=l[1-r],o.push(c);break;case"middle":var u=(l[r]+a[r])/2,h=[];c[r]=h[r]=u,c[1-r]=l[1-r],h[1-r]=a[1-r],o.push(c),o.push(h);break;default:c[r]=l[r],c[1-r]=a[1-r],o.push(c)}}return e[s]&&o.push(e[s]),o}function k(e,t){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var n,o,s=i.length-1;s>=0;s--){var a=i[s].dimension,l=e.dimensions[a],c=e.getDimensionInfo(l);if(n=c&&c.coordDim,"x"===n||"y"===n){o=i[s];break}}if(o){var h=t.getAxis(n),d=r.map(o.stops,(function(e){return{coord:h.toGlobalCoord(h.dataToCoord(e.value)),color:e.color}})),f=d.length,p=o.outerColors.slice();f&&d[0].coord>d[f-1].coord&&(d.reverse(),p.reverse());var g=10,v=d[0].coord-g,m=d[f-1].coord+g,y=m-v;if(y<.001)return"transparent";r.each(d,(function(e){e.offset=(e.coord-v)/y})),d.push({offset:f?d[f-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:p[0]||"transparent"});var _=new u.LinearGradient(0,0,0,0,d,!0);return _[n]=v,_[n+"2"]=m,_}}}function T(e,t,i){var n=e.get("showAllSymbol"),o="auto"===n;if(!n||o){var s=i.getAxesByScale("ordinal")[0];if(s&&(!o||!I(s,t))){var a=t.mapDimension(s.dim),l={};return r.each(s.getViewLabels(),(function(e){l[e.tickValue]=1})),function(e){return!l.hasOwnProperty(t.get(a,e))}}}}function I(e,t){var i=e.getExtent(),n=Math.abs(i[1]-i[0])/e.scale.count();isNaN(n)&&(n=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),s=0;s<r;s+=o)if(1.5*l.getSymbolSize(t,s)[e.isHorizontal()?1:0]>n)return!1;return!0}function L(e,t,i){if("cartesian2d"===e.type){var n=e.getBaseAxis().isHorizontal(),r=x(e,t,i);if(!i.get("clip",!0)){var o=r.shape,s=Math.max(o.width,o.height);n?(o.y-=s,o.height+=2*s):(o.x-=s,o.width+=2*s)}return r}return b(e,t,i)}var E=g.extend({type:"line",init:function(){var e=new u.Group,t=new a;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,i){var n=e.coordinateSystem,o=this.group,s=e.getData(),a=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=s.mapArray(s.getItemLayout),u="polar"===n.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=e.get("animation"),y=!l.isEmpty(),_=l.get("origin"),x=m(n,s,_),b=A(n,s,x),S=e.get("showSymbol"),I=S&&!u&&T(e,s,n),E=this._data;E&&E.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),E.setItemGraphicEl(t,null))})),S||d.remove(),o.add(g);var D,O=!u&&e.get("step");n&&n.getArea&&e.get("clip",!0)&&(D=n.getArea(),null!=D.width?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r1+=.5)),this._clipShapeForSymbol=D,f&&h.type===n.type&&O===this._step?(y&&!p?p=this._newPolygon(c,b,n,v):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(L(n,!1,e)),S&&d.updateData(s,{isIgnore:I,clipShape:D}),s.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),w(this._stackedOnPoints,b)&&w(this._points,c)||(v?this._updateAnimation(s,b,n,i,O,_):(O&&(c=M(c,n,O),b=M(b,n,O)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))):(S&&d.updateData(s,{isIgnore:I,clipShape:D}),O&&(c=M(c,n,O),b=M(b,n,O)),f=this._newPolyline(c,n,v),y&&(p=this._newPolygon(c,b,n,v)),g.setClipPath(L(n,!0,e)));var P=k(s,n)||s.getVisual("color");f.useStyle(r.defaults(a.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"}));var R=e.get("smooth");if(R=C(e.get("smooth")),f.setShape({smooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),p){var B=s.getCalculationInfo("stackedOnSeries"),N=0;p.useStyle(r.defaults(l.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel"})),B&&(N=C(B.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:N,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=s,this._coordSys=n,this._stackedOnPoints=b,this._points=c,this._step=O,this._valueOrigin=_},dispose:function(){},highlight:function(e,t,i,n){var r=e.getData(),o=h.queryDataIndex(r,n);if(!(o instanceof Array)&&null!=o&&o>=0){var s=r.getItemGraphicEl(o);if(!s){var a=r.getItemLayout(o);if(!a)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(a[0],a[1]))return;s=new l(r,o),s.position=a,s.setZ(e.get("zlevel"),e.get("z")),s.ignore=isNaN(a[0])||isNaN(a[1]),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else g.prototype.highlight.call(this,e,t,i,n)},downplay:function(e,t,i,n){var r=e.getData(),o=h.queryDataIndex(r,n);if(null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else g.prototype.downplay.call(this,e,t,i,n)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new f({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new p({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(e,t,i,n,r,o){var s=this._polyline,a=this._polygon,l=e.hostModel,h=c(this._data,e,this._stackedOnPoints,t,this._coordSys,i,this._valueOrigin,o),d=h.current,f=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(r&&(d=M(h.current,i,r),f=M(h.stackedOnCurrent,i,r),p=M(h.next,i,r),g=M(h.stackedOnNext,i,r)),S(d,p)>3e3||a&&S(f,g)>3e3)return s.setShape({points:p}),void(a&&a.setShape({points:p,stackedOnPoints:g}));s.shape.__points=h.current,s.shape.points=d,u.updateProps(s,{shape:{points:p}},l),a&&(a.setShape({points:d,stackedOnPoints:f}),u.updateProps(a,{shape:{points:p,stackedOnPoints:g}},l));for(var v=[],m=h.status,y=0;y<m.length;y++){var _=m[y].cmd;if("="===_){var x=e.getItemGraphicEl(m[y].idx1);x&&v.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){for(var e=0;e<v.length;e++){var t=v[e].el;t.attr("position",s.shape.__points[v[e].ptIdx])}}))},remove:function(e){var t=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl((function(e,n){e.__temp&&(t.remove(e),i.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});e.exports=E},81961:function(e,t,i){var n=i(74051),r=n.isDimensionStacked,o=i(95289),s=o.map;function a(e,t,i){var n,o=e.getBaseAxis(),a=e.getOtherAxis(o),c=l(a,i),u=o.dim,h=a.dim,d=t.mapDimension(h),f=t.mapDimension(u),p="x"===h||"radius"===h?1:0,g=s(e.dimensions,(function(e){return t.mapDimension(e)})),v=t.getCalculationInfo("stackResultDimension");return(n|=r(t,g[0]))&&(g[0]=v),(n|=r(t,g[1]))&&(g[1]=v),{dataDimsForPoint:g,valueStart:c,valueAxisDim:h,baseAxisDim:u,stacked:!!n,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function l(e,t){var i=0,n=e.scale.getExtent();return"start"===t?i=n[0]:"end"===t?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function c(e,t,i,n){var r=NaN;e.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,s=[];return s[o]=i.get(e.baseDim,n),s[1-o]=r,t.dataToPoint(s)}t.prepareDataCoordInfo=a,t.getStackedOnPoint=c},64158:function(e,t,i){var n=i(81961),r=n.prepareDataCoordInfo,o=n.getStackedOnPoint;function s(e,t){var i=[];return t.diff(e).add((function(e){i.push({cmd:"+",idx:e})})).update((function(e,t){i.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){i.push({cmd:"-",idx:e})})).execute(),i}function a(e,t,i,n,a,l,c,u){for(var h=s(e,t),d=[],f=[],p=[],g=[],v=[],m=[],y=[],_=r(a,t,c),x=r(l,e,u),b=0;b<h.length;b++){var w=h[b],S=!0;switch(w.cmd){case"=":var C=e.getItemLayout(w.idx),A=t.getItemLayout(w.idx1);(isNaN(C[0])||isNaN(C[1]))&&(C=A.slice()),d.push(C),f.push(A),p.push(i[w.idx]),g.push(n[w.idx1]),y.push(t.getRawIndex(w.idx1));break;case"+":var M=w.idx;d.push(a.dataToPoint([t.get(_.dataDimsForPoint[0],M),t.get(_.dataDimsForPoint[1],M)])),f.push(t.getItemLayout(M).slice()),p.push(o(_,a,t,M)),g.push(n[M]),y.push(t.getRawIndex(M));break;case"-":M=w.idx;var k=e.getRawIndex(M);k!==M?(d.push(e.getItemLayout(M)),f.push(l.dataToPoint([e.get(x.dataDimsForPoint[0],M),e.get(x.dataDimsForPoint[1],M)])),p.push(i[M]),g.push(o(x,l,e,M)),y.push(k)):S=!1}S&&(v.push(w),m.push(m.length))}m.sort((function(e,t){return y[e]-y[t]}));var T=[],I=[],L=[],E=[],D=[];for(b=0;b<m.length;b++){M=m[b];T[b]=d[M],I[b]=f[M],L[b]=p[M],E[b]=g[M],D[b]=v[M]}return{current:T,next:I,stackedOnCurrent:L,stackedOnNext:E,status:D}}e.exports=a},6667:function(e,t,i){var n=i(66343),r=i(31138),o=i(58458),s=r.min,a=r.max,l=r.scaleAndAdd,c=r.copy,u=[],h=[],d=[];function f(e){return isNaN(e[0])||isNaN(e[1])}function p(e,t,i,n,r,o,s,a,l,c,u){return"none"!==c&&c?g.apply(this,arguments):v.apply(this,arguments)}function g(e,t,i,n,r,o,s,a,l,u,p){for(var g=0,v=i,m=0;m<n;m++){var y=t[v];if(v>=r||v<0)break;if(f(y)){if(p){v+=o;continue}break}if(v===i)e[o>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var _=t[g],x="y"===u?1:0,b=(y[x]-_[x])*l;c(h,_),h[x]=_[x]+b,c(d,y),d[x]=y[x]-b,e.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else e.lineTo(y[0],y[1]);g=v,v+=o}return m}function v(e,t,i,n,o,p,g,v,m,y,_){for(var x=0,b=i,w=0;w<n;w++){var S=t[b];if(b>=o||b<0)break;if(f(S)){if(_){b+=p;continue}break}if(b===i)e[p>0?"moveTo":"lineTo"](S[0],S[1]),c(h,S);else if(m>0){var C=b+p,A=t[C];if(_)while(A&&f(t[C]))C+=p,A=t[C];var M=.5,k=t[x];A=t[C];if(!A||f(A))c(d,S);else{var T,I;if(f(A)&&!_&&(A=S),r.sub(u,A,k),"x"===y||"y"===y){var L="x"===y?0:1;T=Math.abs(S[L]-k[L]),I=Math.abs(S[L]-A[L])}else T=r.dist(S,k),I=r.dist(S,A);M=I/(I+T),l(d,S,u,-m*(1-M))}s(h,h,v),a(h,h,g),s(d,d,v),a(d,d,g),e.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,u,m*M)}else e.lineTo(S[0],S[1]);x=b,b+=p}return w}function m(e,t){var i=[1/0,1/0],n=[-1/0,-1/0];if(t)for(var r=0;r<e.length;r++){var o=e[r];o[0]<i[0]&&(i[0]=o[0]),o[1]<i[1]&&(i[1]=o[1]),o[0]>n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:t?i:n,max:t?n:i}}var y=n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:o(n.prototype.brush),buildPath:function(e,t){var i=t.points,n=0,r=i.length,o=m(i,t.smoothConstraint);if(t.connectNulls){for(;r>0;r--)if(!f(i[r-1]))break;for(;n<r;n++)if(!f(i[n]))break}while(n<r)n+=p(e,i,n,r,r,1,o.min,o.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),_=n.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:o(n.prototype.brush),buildPath:function(e,t){var i=t.points,n=t.stackedOnPoints,r=0,o=i.length,s=t.smoothMonotone,a=m(i,t.smoothConstraint),l=m(n,t.smoothConstraint);if(t.connectNulls){for(;o>0;o--)if(!f(i[o-1]))break;for(;r<o;r++)if(!f(i[r]))break}while(r<o){var c=p(e,i,r,o,o,1,a.min,a.max,t.smooth,s,t.connectNulls);p(e,n,r+c-1,c,o,-1,l.min,l.max,t.stackedOnSmooth,s,t.connectNulls),r+=c+1,e.closePath()}}});t.Polyline=y,t.Polygon=_},44561:function(e,t,i){var n=i(89231);i(5436),i(94156);var r=i(76623),o=i(39205);n.registerLayout(r),n.registerVisual(o)},5436:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(33358)),o=i(5628),s=i(95289),a=s.concatArray,l=s.mergeAll,c=s.map,u=i(8595),h=u.encodeHTML,d=(i(50294),"undefined"===typeof Uint32Array?Array:Uint32Array),f="undefined"===typeof Float64Array?Array:Float64Array;function p(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=c(t,(function(e){var t=[e[0].coord,e[1].coord],i={coords:t};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),l([i,e[0],e[1]])})))}var g=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],p(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),g.superApply(this,"init",arguments)},mergeOption:function(e){if(p(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=a(this._flatCoords,t.flatCoords),this._flatCoordsOffset=a(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),i=t.option instanceof Array?t.option:t.getShallow("coords");return i},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*e],n=this._flatCoordsOffset[2*e+1],r=0;r<n;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[i+2*r],t[r][1]=this._flatCoords[i+2*r+1];return n}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var i=e.length,n=new d(i),r=new f(i),o=0,s=0,a=0,l=0;l<i;){a++;var c=e[l++];n[s++]=o+t,n[s++]=c;for(var u=0;u<c;u++){var h=e[l++],p=e[l++];r[o++]=h,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,s),flatCoords:r,count:a}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var i=new o(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],(function(e,t,n,r){if(e instanceof Array)return NaN;i.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),i},formatTooltip:function(e){var t=this.getData(),i=t.getItemModel(e),n=i.get("name");if(n)return n;var r=i.get("fromName"),o=i.get("toName"),s=[];return null!=r&&s.push(r),null!=o&&s.push(o),h(s.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!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}}}),v=g;e.exports=v},94156:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(73643),s=i(99768),a=i(51261),l=i(80171),c=i(83994),u=i(90176),h=i(76623),d=i(99988),f=d.createClipPath,p=r.extendChartView({type:"lines",init:function(){},render:function(e,t,i){var n=e.getData(),r=this._updateLineDraw(n,e),o=e.get("zlevel"),s=e.get("effect.trailLength"),a=i.getZr(),l="svg"===a.painter.getType();l||a.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||a.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&s&&(l||a.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),r.updateData(n);var c=e.get("clip",!0)&&f(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(e,t,i){var n=e.getData(),r=this._updateLineDraw(n,e);r.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(e,t,i){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,i){var n=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=h.reset(e);o.progress&&o.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(e,t){var i=this._lineDraw,n=this._showEffect(t),r=!!t.get("polyline"),h=t.pipelineContext,d=h.large;return i&&n===this._hasEffet&&r===this._isPolyline&&d===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=d?new u:new o(r?n?c:l:n?s:a),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=d,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr(),i="svg"===t.painter.getType();i||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=p},76623:function(e,t,i){var n=i(59039),r={seriesType:"lines",plan:n(),reset:function(e){var t=e.coordinateSystem,i=e.get("polyline"),n=e.pipelineContext.large;function r(r,o){var s=[];if(n){var a,l=r.end-r.start;if(i){for(var c=0,u=r.start;u<r.end;u++)c+=e.getLineCoordsCount(u);a=new Float32Array(l+2*c)}else a=new Float32Array(4*l);var h=0,d=[];for(u=r.start;u<r.end;u++){var f=e.getLineCoords(u,s);i&&(a[h++]=f);for(var p=0;p<f;p++)d=t.dataToPoint(s[p],!1,d),a[h++]=d[0],a[h++]=d[1]}o.setLayout("linesPoints",a)}else for(u=r.start;u<r.end;u++){var g=o.getItemModel(u),v=(f=e.getLineCoords(u,s),[]);if(i)for(var m=0;m<f;m++)v.push(t.dataToPoint(s[m]));else{v[0]=t.dataToPoint(s[0]),v[1]=t.dataToPoint(s[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(u,v)}}return{progress:r}}};e.exports=r},39205:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}var i="lineStyle.opacity".split("."),n={seriesType:"lines",reset:function(e,n,r){var o=t(e.get("symbol")),s=t(e.get("symbolSize")),a=e.getData();function l(e,n){var r=e.getItemModel(n),o=t(r.getShallow("symbol",!0)),s=t(r.getShallow("symbolSize",!0)),a=r.get(i);o[0]&&e.setItemVisual(n,"fromSymbol",o[0]),o[1]&&e.setItemVisual(n,"toSymbol",o[1]),s[0]&&e.setItemVisual(n,"fromSymbolSize",s[0]),s[1]&&e.setItemVisual(n,"toSymbolSize",s[1]),e.setItemVisual(n,"opacity",a)}return a.setVisual("fromSymbol",o&&o[0]),a.setVisual("toSymbol",o&&o[1]),a.setVisual("fromSymbolSize",s&&s[0]),a.setVisual("toSymbolSize",s&&s[1]),a.setVisual("opacity",e.get(i)),{dataEach:a.hasItemOption?l:null}}};e.exports=n},25120:function(e,t,i){var n=i(89231);i(28528),i(35784),i(50704),i(98870);var r=i(34123),o=i(93233),s=i(55547),a=i(15492),l=i(40428);n.registerLayout(r),n.registerVisual(o),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,s),n.registerPreprocessor(a),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},28528:function(e,t,i){var n=i(95289),r=i(80565),o=i(33358),s=i(8595),a=s.encodeHTML,l=s.addCommas,c=i(18171),u=i(41834),h=u.retrieveRawAttr,d=i(80218),f=i(49442),p=f.makeSeriesEncodeForNameBased,g=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=r(this,{coordDimensions:["value"],encodeDefaulter:n.curry(p,this)}),i=t.mapDimension("value"),o=n.createHashMap(),s=[],a=[],l=0,c=t.count();l<c;l++){var u=t.getName(l);o.set(u,!0),s.push({name:u,value:t.get(i,l),selected:h(t,l,"selected")})}var f=d.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return n.each(f.regions,(function(e){var t=e.name;o.get(t)||(s.push({name:t}),a.push(t))})),this.updateSelectedMap(s),t.appendValues([],a),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e,t,i,n){for(var r=this.getData(),o=l(this.getRawValue(e)),s=r.getName(e),c=this.seriesGroup,u=[],h=0;h<c.length;h++){var d=c[h].originalData.indexOfName(s),f=r.mapDimension("value");isNaN(c[h].originalData.get(f,d))||u.push(a(c[h].name))}var p="html"===n?"<br/>":"\n";return u.join(", ")+p+a(s+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),i=this.coordinateSystem,n=i.getRegion(t);return n&&i.dataToPoint(n.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,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)"}},nameProperty:"name"}});n.mixin(g,c);var v=g;e.exports=v},35784:function(e,t,i){var n=i(89231),r=i(95289),o=i(76442),s=i(75730),a="__seriesMapHighDown",l="__seriesMapCallKey",c=n.extendChartView({type:"map",render:function(e,t,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===e.id){o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new s(i,!0);r.add(o.group),o.draw(e,t,i,this,n),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,i){var n=e.originalData,s=this.group;n.each(n.mapDimension("value"),(function(t,i){if(!isNaN(t)){var c=n.getItemLayout(i);if(c&&c.point){var d=c.point,f=c.offset,p=new o.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:d[0]+9*f,cy:d[1],r:3},silent:!0,z2:8+(f?0:o.Z2_EMPHASIS_LIFT+1)});if(!f){var g=e.mainSeries.getData(),v=n.getName(i),m=g.indexOfName(v),y=n.getItemModel(i),_=y.getModel("label"),x=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),w=r.retrieve2(e.getFormattedLabel(m,"normal"),v),S=r.retrieve2(e.getFormattedLabel(m,"emphasis"),w),C=b[a],A=Math.random();if(!C){C=b[a]={};var M=r.curry(u,!0),k=r.curry(u,!1);b.on("mouseover",M).on("mouseout",k).on("emphasis",M).on("normal",k)}b[l]=A,r.extend(C,{recordVersion:A,circle:p,labelModel:_,hoverLabelModel:x,emphasisText:S,normalText:w}),h(C,!1)}s.add(p)}}}))}});function u(e){var t=this[a];t&&t.recordVersion===this[l]&&h(t,e)}function h(e,t){var i=e.circle,n=e.labelModel,r=e.hoverLabelModel,s=e.emphasisText,a=e.normalText;t?(i.style.extendFrom(o.setTextStyle({},r,{text:r.get("show")?s:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=o.Z2_EMPHASIS_LIFT):(o.setTextStyle(i.style,n,{text:n.get("show")?a:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}e.exports=c},15492:function(e,t,i){var n=i(95289);function r(e){var t=[];n.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,n.defaults(e,e.mapLocation))}))}e.exports=r},55547:function(e,t,i){var n=i(95289);function r(e,t){var i={};return n.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,n){var r="ec-"+e.getName(n);i[r]=i[r]||[],isNaN(t)||i[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(n,r){for(var o,s="ec-"+e[0].getName(r),a=0,l=1/0,c=-1/0,u=i[s].length,h=0;h<u;h++)l=Math.min(l,i[s][h]),c=Math.max(c,i[s][h]),a+=i[s][h];return o="min"===t?l:"max"===t?c:"average"===t?a/u:a,0===u?NaN:o}))}function o(e){var t={};e.eachSeriesByType("map",(function(e){var i=e.getHostGeoModel(),n=i?"o"+i.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)})),n.each(t,(function(e,t){for(var i=r(n.map(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),o=0;o<e.length;o++)e[o].originalData=e[o].getData();for(o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(i.cloneShallow()),e[o].mainSeries=e[0]}))}e.exports=o},34123:function(e,t,i){var n=i(95289);function r(e){var t={};e.eachSeriesByType("map",(function(i){var r=i.getMapType();if(!i.getHostGeoModel()&&!t[r]){var o={};n.each(i.seriesGroup,(function(t){var i=t.coordinateSystem,n=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&n.each(n.mapDimension("value"),(function(e,t){var r=n.getName(t),s=i.getRegion(r);if(s&&!isNaN(e)){var a=o[r]||0,l=i.dataToPoint(s.center);o[r]=a+1,n.setItemLayout(t,{point:l,offset:a})}}))}));var s=i.getData();s.each((function(e){var t=s.getName(e),i=s.getItemLayout(e)||{};i.showLabel=!o[t],s.setItemLayout(e,i)})),t[r]=!0}}))}e.exports=r},93233:function(e){function t(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),i=e.getModel("itemStyle"),n=i.get("areaColor"),r=i.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:n,color:r})}))}e.exports=t},19771:function(e,t,i){var n=i(89231);i(14102),i(87172),i(73556);var r=i(90461);n.registerVisual(r)},87172:function(e,t,i){var n=i(95289),r=n.each,o=n.createHashMap,s=i(33358),a=i(19554),l=s.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var i=this.getSource();return c(i,this),a(i,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,i=this.getData(),n=[];return t.eachActiveState(i,(function(t,r){e===t&&n.push(i.getRawIndex(r))})),n},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"}});function c(e,t){if(!e.encodeDefine){var i=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(i){var n=e.encodeDefine=o();r(i.dimensions,(function(e){var t=u(e);n.set(e,t)}))}}}function u(e){return+e.replace("dim","")}e.exports=l},73556:function(e,t,i){var n=i(76442),r=i(67955),o=.3,s=r.extend({type:"parallel",init:function(){this._dataGroup=new n.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,i,r){var o=this._dataGroup,s=e.getData(),d=this._data,f=e.coordinateSystem,p=f.dimensions,g=u(e);function v(e){var t=c(s,o,e,p,f);h(t,s,e,g)}function m(t,i){var o=d.getItemGraphicEl(i),a=l(s,t,p,f);s.setItemGraphicEl(t,o);var c=r&&!1===r.animation?null:e;n.updateProps(o,{shape:{points:a}},c,t),h(o,s,t,g)}function y(e){var t=d.getItemGraphicEl(e);o.remove(t)}if(s.diff(d).add(v).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var _=a(f,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(_)}this._data=s},incrementalPrepareRender:function(e,t,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,i){for(var n=t.getData(),r=t.coordinateSystem,o=r.dimensions,s=u(t),a=e.start;a<e.end;a++){var l=c(n,this._dataGroup,a,o,r);l.incremental=!0,h(l,n,a,s)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function a(e,t,i){var r=e.model,o=e.getRect(),s=new n.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===r.get("layout")?"width":"height";return s.setShape(a,0),n.initProps(s,{shape:{width:o.width,height:o.height}},t,i),s}function l(e,t,i,n){for(var r=[],o=0;o<i.length;o++){var s=i[o],a=e.get(e.mapDimension(s),t);d(a,n.getAxis(s).type)||r.push(n.dataToPoint(a,s))}return r}function c(e,t,i,r,o){var s=l(e,i,r,o),a=new n.Polyline({shape:{points:s},silent:!0,z2:10});return t.add(a),e.setItemGraphicEl(i,a),a}function u(e){var t=e.get("smooth",!0);return!0===t&&(t=o),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:o}}function h(e,t,i,n){var r=n.lineStyle;if(t.hasItemOption){var o=t.getItemModel(i).getModel("lineStyle");r=o.getLineStyle()}e.useStyle(r);var s=e.style;s.fill=null,s.stroke=t.getItemVisual(i,"color"),s.opacity=t.getItemVisual(i,"opacity"),n.smooth&&(e.shape.smooth=n.smooth)}function d(e,t){return"category"===t?null==e:null==e||isNaN(e)}var f=s;e.exports=f},90461:function(e){var t=["lineStyle","normal","opacity"],i={seriesType:"parallel",reset:function(e,i,n){var r=e.getModel("itemStyle"),o=e.getModel("lineStyle"),s=i.get("color"),a=o.get("color")||r.get("color")||s[e.seriesIndex%s.length],l=e.get("inactiveOpacity"),c=e.get("activeOpacity"),u=e.getModel("lineStyle").getLineStyle(),h=e.coordinateSystem,d=e.getData(),f={normal:u.opacity,active:c,inactive:l};function p(e,i){h.eachActiveState(i,(function(e,n){var r=f[e];if("normal"===e&&i.hasItemOption){var o=i.getItemModel(n).get(t,!0);null!=o&&(r=o)}i.setItemVisual(n,"opacity",r)}),e.start,e.end)}return d.setVisual("color",a),{progress:p}}};e.exports=i},89878:function(e,t,i){var n=i(89231),r=i(95289);i(31020),i(92865),i(82917);var o=i(11041),s=o.layout,a=i(39784);i(48807),n.registerLayout(r.curry(s,"pictorialBar")),n.registerVisual(a("pictorialBar","roundRect"))},26804:function(e,t,i){var n=i(89231),r=i(95289);i(4160),i(65720);var o=i(40428),s=i(5045),a=i(23219),l=i(18014);o("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(s("pie")),n.registerLayout(r.curry(a,"pie")),n.registerProcessor(l("pie"))},4160:function(e,t,i){var n=i(89231),r=i(80565),o=i(95289),s=i(63199),a=i(44261),l=a.getPercentWithPrecision,c=i(18171),u=i(41834),h=u.retrieveRawAttr,d=i(49442),f=d.makeSeriesEncodeForNameBased,p=i(65840),g=n.extendSeriesModel({type:"series.pie",init:function(e){g.superApply(this,"init",arguments),this.legendVisualProvider=new p(o.bind(this.getData,this),o.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){g.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return r(this,{coordDimensions:["value"],encodeDefaulter:o.curry(f,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),i=[],n=0,r=e.count();n<r;n++)i.push({name:e.getName(n),value:e.get(t,n),selected:h(e,n,"selected")});return i},getDataParams:function(e){var t=this.getData(),i=g.superCall(this,"getDataParams",e),n=[];return t.each(t.mapDimension("value"),(function(e){n.push(e)})),i.percent=l(n,e,t.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(e){s.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});o.mixin(g,c);var v=g;e.exports=v},65720:function(e,t,i){var n=i(95289),r=i(76442),o=i(67955);function s(e,t,i,n){var r=t.getData(),o=this.dataIndex,s=r.getName(o),l=t.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:e,name:s,seriesId:t.id}),r.each((function(e){a(r.getItemGraphicEl(e),r.getItemLayout(e),t.isSelected(r.getName(e)),l,i)}))}function a(e,t,i,n,r){var o=(t.startAngle+t.endAngle)/2,s=Math.cos(o),a=Math.sin(o),l=i?n:0,c=[s*l,a*l];r?e.animate().when(200,{position:c}).start("bounceOut"):e.attr("position",c)}function l(e,t){r.Group.call(this);var i=new r.Sector({z2:2}),n=new r.Polyline,o=new r.Text;this.add(i),this.add(n),this.add(o),this.updateData(e,t,!0)}var c=l.prototype;c.updateData=function(e,t,i){var o=this.childAt(0),s=this.childAt(1),l=this.childAt(2),c=e.hostModel,u=e.getItemModel(t),h=e.getItemLayout(t),d=n.extend({},h);d.label=null;var f=c.getShallow("animationTypeUpdate");if(i){o.setShape(d);var p=c.getShallow("animationType");"scale"===p?(o.shape.r=h.r0,r.initProps(o,{shape:{r:h.r}},c,t)):(o.shape.endAngle=h.startAngle,r.updateProps(o,{shape:{endAngle:h.endAngle}},c,t))}else"expansion"===f?o.setShape(d):r.updateProps(o,{shape:d},c,t);var g=e.getItemVisual(t,"color");o.useStyle(n.defaults({lineJoin:"bevel",fill:g},u.getModel("itemStyle").getItemStyle())),o.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var v=u.getShallow("cursor");v&&o.attr("cursor",v),a(this,e.getItemLayout(t),c.isSelected(e.getName(t)),c.get("selectedOffset"),c.get("animation"));var m=!i&&"transition"===f;this._updateLabel(e,t,m),this.highDownOnUpdate=c.get("silent")?null:function(e,t){var i=c.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===t?(s.ignore=s.hoverIgnore,l.ignore=l.hoverIgnore,i&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r+c.get("hoverOffset")}},300,"elasticOut"))):(s.ignore=s.normalIgnore,l.ignore=l.normalIgnore,i&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r}},300,"elasticOut")))},r.setHoverStyle(this)},c._updateLabel=function(e,t,i){var n=this.childAt(1),o=this.childAt(2),s=e.hostModel,a=e.getItemModel(t),l=e.getItemLayout(t),c=l.label,u=e.getItemVisual(t,"color");if(!c||isNaN(c.x)||isNaN(c.y))o.ignore=o.normalIgnore=o.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0;else{var h={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},d={x:c.x,y:c.y};i?(r.updateProps(n,{shape:h},s,t),r.updateProps(o,{style:d},s,t)):(n.attr({shape:h}),o.attr({style:d})),o.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var f=a.getModel("label"),p=a.getModel("emphasis.label"),g=a.getModel("labelLine"),v=a.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");r.setLabelStyle(o.style,o.hoverStyle={},f,p,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:c.text,autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!f.get("show"),o.hoverIgnore=!p.get("show"),n.ignore=n.normalIgnore=!g.get("show"),n.hoverIgnore=!v.get("show"),n.setStyle({stroke:u,opacity:e.getItemVisual(t,"opacity")}),n.setStyle(g.getModel("lineStyle").getLineStyle()),n.hoverStyle=v.getModel("lineStyle").getLineStyle();var m=g.get("smooth");m&&!0===m&&(m=.4),n.setShape({smooth:m})}},n.inherits(l,r.Group);var u=o.extend({type:"pie",init:function(){var e=new r.Group;this._sectorGroup=e},render:function(e,t,i,r){if(!r||r.from!==this.uid){var o=e.getData(),a=this._data,c=this.group,u=t.get("animation"),h=!a,d=e.get("animationType"),f=e.get("animationTypeUpdate"),p=n.curry(s,this.uid,e,u,i),g=e.get("selectedMode");if(o.diff(a).add((function(e){var t=new l(o,e);h&&"scale"!==d&&t.eachChild((function(e){e.stopAnimation(!0)})),g&&t.on("click",p),o.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var i=a.getItemGraphicEl(t);h||"transition"===f||i.eachChild((function(e){e.stopAnimation(!0)})),i.updateData(o,e),i.off("click"),g&&i.on("click",p),c.add(i),o.setItemGraphicEl(e,i)})).remove((function(e){var t=a.getItemGraphicEl(e);c.remove(t)})).execute(),u&&o.count()>0&&(h?"scale"!==d:"transition"!==f)){for(var v=o.getItemLayout(0),m=1;isNaN(v.startAngle)&&m<o.count();++m)v=o.getItemLayout(m);var y=Math.max(i.getWidth(),i.getHeight())/2,_=n.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(v.cx,v.cy,y,v.startAngle,v.clockwise,_,e,h))}else c.removeClipPath();this._data=o}},dispose:function(){},_createClipPath:function(e,t,i,n,o,s,a,l){var c=new r.Sector({shape:{cx:e,cy:t,r0:0,r:i,startAngle:n,endAngle:n,clockwise:o}}),u=l?r.initProps:r.updateProps;return u(c,{shape:{endAngle:n+(o?1:-1)*Math.PI*2}},a,s),c},containPoint:function(e,t){var i=t.getData(),n=i.getItemLayout(0);if(n){var r=e[0]-n.cx,o=e[1]-n.cy,s=Math.sqrt(r*r+o*o);return s<=n.r&&s>=n.r0}}}),h=u;e.exports=h},69503:function(e,t,i){var n=i(43407),r=i(44261),o=r.parsePercent,s=Math.PI/180;function a(e,t,i,n,r,o,s,a,l,c){function u(t,i,n,r){for(var o=t;o<i;o++){if(e[o].y+n>l+s)break;if(e[o].y+=n,o>t&&o+1<i&&e[o+1].y>e[o].y+e[o].height)return void h(o,n/2)}h(i-1,n/2)}function h(t,i){for(var n=t;n>=0;n--){if(e[n].y-i<l)break;if(e[n].y-=i,n>0&&e[n].y>e[n-1].y+e[n-1].height)break}}function d(e,t,i,n,r,o){for(var s=t?Number.MAX_VALUE:0,a=0,l=e.length;a<l;a++)if("none"===e[a].labelAlignTo){var c=Math.abs(e[a].y-n),u=e[a].len,h=e[a].len2,d=c<r+u?Math.sqrt((r+u+h)*(r+u+h)-c*c):Math.abs(e[a].x-i);t&&d>=s&&(d=s-10),!t&&d<=s&&(d=s+10),e[a].x=i+d*o,s=d}}e.sort((function(e,t){return e.y-t.y}));for(var f,p=0,g=e.length,v=[],m=[],y=0;y<g;y++){if("outer"===e[y].position&&"labelLine"===e[y].labelAlignTo){var _=e[y].x-c;e[y].linePoints[1][0]+=_,e[y].x=c}f=e[y].y-p,f<0&&u(y,g,-f,r),p=e[y].y+e[y].height}s-p<0&&h(g-1,p-s);for(y=0;y<g;y++)e[y].y>=i?m.push(e[y]):v.push(e[y]);d(v,!1,t,i,n,r),d(m,!0,t,i,n,r)}function l(e,t,i,r,o,s,l,u){for(var h=[],d=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<e.length;g++)c(e[g])||(e[g].x<t?(f=Math.min(f,e[g].x),h.push(e[g])):(p=Math.max(p,e[g].x),d.push(e[g])));a(d,t,i,r,1,o,s,l,u,p),a(h,t,i,r,-1,o,s,l,u,f);for(g=0;g<e.length;g++){var v=e[g];if(!c(v)){var m=v.linePoints;if(m){var y,_="edge"===v.labelAlignTo,x=v.textRect.width;y=_?v.x<t?m[2][0]-v.labelDistance-l-v.labelMargin:l+o-v.labelMargin-m[2][0]-v.labelDistance:v.x<t?v.x-l-v.bleedMargin:l+o-v.x-v.bleedMargin,y<v.textRect.width&&(v.text=n.truncateText(v.text,y,v.font),"edge"===v.labelAlignTo&&(x=n.getWidth(v.text,v.font)));var b=m[1][0]-m[2][0];_?v.x<t?m[2][0]=l+v.labelMargin+x+v.labelDistance:m[2][0]=l+o-v.labelMargin-x-v.labelDistance:(v.x<t?m[2][0]=v.x+v.labelDistance:m[2][0]=v.x-v.labelDistance,m[1][0]=m[2][0]+b),m[1][1]=m[2][1]=v.y}}}}function c(e){return"center"===e.position}function u(e,t,i,r,a,c){var u,h,d=e.getData(),f=[],p=!1,g=(e.get("minShowLabelAngle")||0)*s;d.each((function(r){var s=d.getItemLayout(r),l=d.getItemModel(r),c=l.getModel("label"),v=c.get("position")||l.get("emphasis.label.position"),m=c.get("distanceToLabelLine"),y=c.get("alignTo"),_=o(c.get("margin"),i),x=c.get("bleedMargin"),b=c.getFont(),w=l.getModel("labelLine"),S=w.get("length");S=o(S,i);var C=w.get("length2");if(C=o(C,i),!(s.angle<g)){var A,M,k,T,I=(s.startAngle+s.endAngle)/2,L=Math.cos(I),E=Math.sin(I);u=s.cx,h=s.cy;var D,O=e.getFormattedLabel(r,"normal")||d.getName(r),P=n.getBoundingRect(O,b,T,"top"),R="inside"===v||"inner"===v;if("center"===v)A=s.cx,M=s.cy,T="center";else{var B=(R?(s.r+s.r0)/2*L:s.r*L)+u,N=(R?(s.r+s.r0)/2*E:s.r*E)+h;if(A=B+3*L,M=N+3*E,!R){var z=B+L*(S+t-s.r),H=N+E*(S+t-s.r),F=z+(L<0?-1:1)*C,V=H;A="edge"===y?L<0?a+_:a+i-_:F+(L<0?-m:m),M=V,k=[[B,N],[z,H],[F,V]]}T=R?"center":"edge"===y?L>0?"right":"left":L>0?"left":"right"}var j=c.get("rotate");D="number"===typeof j?j*(Math.PI/180):j?L<0?-I+Math.PI:-I:0,p=!!D,s.label={x:A,y:M,position:v,height:P.height,len:S,len2:C,linePoints:k,textAlign:T,verticalAlign:"middle",rotation:D,inside:R,labelDistance:m,labelAlignTo:y,labelMargin:_,bleedMargin:x,textRect:P,text:O,font:b},R||f.push(s.label)}})),!p&&e.get("avoidLabelOverlap")&&l(f,u,h,t,i,r,a,c)}e.exports=u},23219:function(e,t,i){var n=i(44261),r=n.parsePercent,o=n.linearMap,s=i(61570),a=i(69503),l=i(95289),c=2*Math.PI,u=Math.PI/180;function h(e,t){return s.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function d(e,t,i,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),n=t.mapDimension("value"),s=h(e,i),d=e.get("center"),f=e.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(d)||(d=[d,d]);var p=r(s.width,i.getWidth()),g=r(s.height,i.getHeight()),v=Math.min(p,g),m=r(d[0],p)+s.x,y=r(d[1],g)+s.y,_=r(f[0],v/2),x=r(f[1],v/2),b=-e.get("startAngle")*u,w=e.get("minAngle")*u,S=0;t.each(n,(function(e){!isNaN(e)&&S++}));var C=t.getSum(n),A=Math.PI/(C||S)*2,M=e.get("clockwise"),k=e.get("roseType"),T=e.get("stillShowZeroSum"),I=t.getDataExtent(n);I[0]=0;var L=c,E=0,D=b,O=M?1:-1;if(t.each(n,(function(e,i){var n;if(isNaN(e))t.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:m,cy:y,r0:_,r:k?NaN:x,viewRect:s});else{n="area"!==k?0===C&&T?A:e*A:c/S,n<w?(n=w,L-=w):E+=e;var r=D+O*n;t.setItemLayout(i,{angle:n,startAngle:D,endAngle:r,clockwise:M,cx:m,cy:y,r0:_,r:k?o(e,I,[_,x]):x,viewRect:s}),D=r}})),L<c&&S)if(L<=.001){var P=c/S;t.each(n,(function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i);n.angle=P,n.startAngle=b+O*i*P,n.endAngle=b+O*(i+1)*P}}))}else A=L/E,D=b,t.each(n,(function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i),r=n.angle===w?w:e*A;n.startAngle=D,n.endAngle=D+O*r,D+=O*r}}));a(e,x,s.width,s.height,s.x,s.y)}))}e.exports=d},47342:function(e,t,i){var n=i(89231);i(39253),i(820),i(84260);var r=i(5045),o=i(39784),s=i(43079),a=i(18014),l=i(7982);n.registerVisual(r("radar")),n.registerVisual(o("radar","circle")),n.registerLayout(s),n.registerProcessor(a("radar")),n.registerPreprocessor(l)},820:function(e,t,i){var n=i(33358),r=i(80565),o=i(95289),s=i(8595),a=s.encodeHTML,l=i(65840),c=n.extend({type:"series.radar",dependencies:["radar"],init:function(e){c.superApply(this,"init",arguments),this.legendVisualProvider=new l(o.bind(this.getData,this),o.bind(this.getRawData,this))},getInitialData:function(e,t){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,i,n){var r=this.getData(),s=this.coordinateSystem,l=s.getIndicatorAxes(),c=this.getData().getName(e),u="html"===n?"<br/>":"\n";return a(""===c?this.name:c)+u+o.map(l,(function(t,i){var n=r.get(r.mapDimension(t.dim),e);return a(t.name+" : "+n)})).join(u)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),i=this.coordinateSystem,n=t.getValues(o.map(i.dimensions,(function(e){return t.mapDimension(e)})),e,!0),r=0,s=n.length;r<s;r++)if(!isNaN(n[r])){var a=i.getIndicatorAxes();return i.coordToPoint(a[r].dataToCoord(n[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=c;e.exports=u},84260:function(e,t,i){var n=i(89231),r=i(76442),o=i(95289),s=i(22864);function a(e){return o.isArray(e)||(e=[+e,+e]),e}var l=n.extendChartView({type:"radar",render:function(e,t,i){var n=e.coordinateSystem,l=this.group,c=e.getData(),u=this._data;function h(e,t){var i=e.getItemVisual(t,"symbol")||"circle",n=e.getItemVisual(t,"color");if("none"!==i){var r=a(e.getItemVisual(t,"symbolSize")),o=s.createSymbol(i,-1,-1,2,2,n),l=e.getItemVisual(t,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2],rotation:l*Math.PI/180||0}),o}}function d(t,i,n,o,s,a){n.removeAll();for(var l=0;l<i.length-1;l++){var c=h(o,s);c&&(c.__dimIdx=l,t[l]?(c.attr("position",t[l]),r[a?"initProps":"updateProps"](c,{position:i[l]},e,s)):c.attr("position",i[l]),n.add(c))}}function f(e){return o.map(e,(function(e){return[n.cx,n.cy]}))}c.diff(u).add((function(t){var i=c.getItemLayout(t);if(i){var n=new r.Polygon,o=new r.Polyline,s={shape:{points:i}};n.shape.points=f(i),o.shape.points=f(i),r.initProps(n,s,e,t),r.initProps(o,s,e,t);var a=new r.Group,l=new r.Group;a.add(o),a.add(n),a.add(l),d(o.shape.points,i,l,c,t,!0),c.setItemGraphicEl(t,a)}})).update((function(t,i){var n=u.getItemGraphicEl(i),o=n.childAt(0),s=n.childAt(1),a=n.childAt(2),l={shape:{points:c.getItemLayout(t)}};l.shape.points&&(d(o.shape.points,l.shape.points,a,c,t,!1),r.updateProps(o,l,e),r.updateProps(s,l,e),c.setItemGraphicEl(t,n))})).remove((function(e){l.remove(u.getItemGraphicEl(e))})).execute(),c.eachItemGraphicEl((function(e,t){var i=c.getItemModel(t),n=e.childAt(0),s=e.childAt(1),a=e.childAt(2),u=c.getItemVisual(t,"color");l.add(e),n.useStyle(o.defaults(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),n.hoverStyle=i.getModel("emphasis.lineStyle").getLineStyle();var h=i.getModel("areaStyle"),d=i.getModel("emphasis.areaStyle"),f=h.isEmpty()&&h.parentModel.isEmpty(),p=d.isEmpty()&&d.parentModel.isEmpty();p=p&&f,s.ignore=f,s.useStyle(o.defaults(h.getAreaStyle(),{fill:u,opacity:.7})),s.hoverStyle=d.getAreaStyle();var g=i.getModel("itemStyle").getItemStyle(["color"]),v=i.getModel("emphasis.itemStyle").getItemStyle(),m=i.getModel("label"),y=i.getModel("emphasis.label");a.eachChild((function(e){e.setStyle(g),e.hoverStyle=o.clone(v);var i=c.get(c.dimensions[e.__dimIdx],t);(null==i||isNaN(i))&&(i=""),r.setLabelStyle(e.style,e.hoverStyle,m,y,{labelFetcher:c.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,autoColor:u,isRectText:!0})})),e.highDownOnUpdate=function(e,t){s.attr("ignore","emphasis"===t?p:f)},r.setHoverStyle(e)})),this._data=c},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=l},7982:function(e,t,i){var n=i(95289);function r(e){var t=e.polar;if(t){n.isArray(t)||(t=[t]);var i=[];n.each(t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],n.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):i.push(t)})),e.polar=i}n.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}e.exports=r},43079:function(e,t,i){var n=i(95289);function r(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),i=[],r=e.coordinateSystem;if(r){var a=r.getIndicatorAxes();n.each(a,(function(e,n){t.each(t.mapDimension(a[n].dim),(function(e,t){i[t]=i[t]||[];var a=r.dataToPoint(e,n);i[t][n]=o(a)?a:s(r)}))})),t.each((function(e){var a=n.find(i[e],(function(e){return o(e)}))||s(r);i[e].push(a.slice()),t.setItemLayout(e,i[e])}))}}))}function o(e){return!isNaN(e[0])&&!isNaN(e[1])}function s(e){return[e.cx,e.cy]}e.exports=r},83761:function(e,t,i){var n=i(89231);i(26588),i(21932),i(56267);var r=i(42639),o=i(5221);n.registerLayout(r),n.registerVisual(o)},26588:function(e,t,i){var n=i(33358),r=i(65354),o=i(8595),s=o.encodeHTML,a=i(40590),l=i(65523),c=(l.__DEV__,n.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var i=e.edges||e.links,n=e.data||e.nodes,o=e.levels,s=this.levelModels={},l=0;l<o.length;l++)null!=o[l].depth&&o[l].depth>=0&&(s[o[l].depth]=new a(o[l],this,t));if(n&&i){var c=r(n,i,this,!0,u);return c.data}function u(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var i=this.parentModel,n=i.getData().getItemLayout(t).depth,r=i.levelModels[n];return r||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var i=this.parentModel,n=i.getGraph().getEdgeByIndex(t),r=n.node1.getLayout().depth,o=i.levelModels[r];return o||this.parentModel})),e}))}},setNodePosition:function(e,t){var i=this.option.data[e];i.localX=t[0],i.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,i){if("edge"===i){var n=this.getDataParams(e,i),r=n.data,o=r.source+" -- "+r.target;return n.value&&(o+=" : "+n.value),s(o)}if("node"===i){var a=this.getGraph().getNodeByIndex(e),l=a.getLayout().value,u=this.getDataParams(e,i).data.name;if(l)o=u+" : "+l;return s(o)}return c.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var i=c.superCall(this,"getDataParams",e,t);if(null==i.value&&"node"===t){var n=this.getGraph().getNodeByIndex(e),r=n.getLayout().value;i.value=r}return i},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),u=c;e.exports=u},21932:function(e,t,i){var n=i(76442),r=i(89231),o=i(95289),s=["itemStyle","opacity"],a=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function u(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function h(e,t,i){var n=e.getGraphicEl(),r=u(e,t);null!=i&&(null==r&&(r=1),r*=i),n.downplay&&n.downplay(),n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",r)}))}function d(e,t){var i=u(e,t),n=e.getGraphicEl();n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",i)})),n.highlight&&n.highlight()}var f=n.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var i=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+i,t.y2),e.bezierCurveTo(t.cpx2+i,t.cpy2,t.cpx1+i,t.cpy1,t.x1+i,t.y1)):(e.lineTo(t.x2,t.y2+i),e.bezierCurveTo(t.cpx2,t.cpy2+i,t.cpx1,t.cpy1+i,t.x1,t.y1+i)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=r.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,i){var r=this,o=e.getGraph(),s=this.group,a=e.layoutInfo,l=a.width,c=a.height,u=e.getData(),h=e.getData("edge"),d=e.get("orient");this._model=e,s.removeAll(),s.attr("position",[a.x,a.y]),o.eachEdge((function(t){var i=new f;i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,o,a,u,p,g,v,m,y=t.getModel("lineStyle"),_=y.get("curveness"),x=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),C=t.node2.getLayout(),A=t.node2.getModel(),M=A.get("localX"),k=A.get("localY"),T=t.getLayout();switch(i.shape.extent=Math.max(1,T.dy),i.shape.orient=d,"vertical"===d?(r=(null!=w?w*l:x.x)+T.sy,o=(null!=S?S*c:x.y)+x.dy,a=(null!=M?M*l:C.x)+T.ty,u=null!=k?k*c:C.y,p=r,g=o*(1-_)+u*_,v=a,m=o*_+u*(1-_)):(r=(null!=w?w*l:x.x)+x.dx,o=(null!=S?S*c:x.y)+T.sy,a=null!=M?M*l:C.x,u=(null!=k?k*c:C.y)+T.ty,p=r*(1-_)+a*_,g=o,v=r*_+a*(1-_),m=u),i.setShape({x1:r,y1:o,x2:a,y2:u,cpx1:p,cpy1:g,cpx2:v,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=t.node1.getVisual("color");break;case"target":i.style.fill=t.node2.getVisual("color");break}n.setHoverStyle(i,t.getModel("emphasis.lineStyle").getItemStyle()),s.add(i),h.setItemGraphicEl(t.dataIndex,i)})),o.eachNode((function(t){var i=t.getLayout(),r=t.getModel(),o=r.get("localX"),a=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),f=new n.Rect({shape:{x:null!=o?o*l:i.x,y:null!=a?a*c:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),p=t.getModel("emphasis.itemStyle").getItemStyle();n.setLabelStyle(f.style,p,h,d,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),f.setStyle("fill",t.getVisual("color")),n.setHoverStyle(f,p),s.add(f),u.setItemGraphicEl(t.dataIndex,f),f.dataType="node"})),u.eachItemGraphicEl((function(t,n){var o=u.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),h.eachItemGraphicEl((function(t,n){var o=h.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&s.setClipPath(g(s.getBoundingRect(),e,(function(){s.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,i,n){var r=e.getData(),u=r.graph,f=n.dataIndex,p=r.getItemModel(f),g=n.edgeDataIndex;if(null!=f||null!=g){var v=u.getNodeByIndex(f),m=u.getEdgeByIndex(g);if(u.eachNode((function(e){h(e,s,.1)})),u.eachEdge((function(e){h(e,l,.1)})),v){d(v,a);var y=p.get("focusNodeAdjacency");"outEdges"===y?o.each(v.outEdges,(function(e){e.dataIndex<0||(d(e,c),d(e.node2,a))})):"inEdges"===y?o.each(v.inEdges,(function(e){e.dataIndex<0||(d(e,c),d(e.node1,a))})):"allEdges"===y&&o.each(v.edges,(function(e){e.dataIndex<0||(d(e,c),e.node1!==v&&d(e.node1,a),e.node2!==v&&d(e.node2,a))}))}m&&(d(m,c),d(m.node1,a),d(m.node2,a))}},unfocusNodeAdjacency:function(e,t,i,n){var r=e.getGraph();r.eachNode((function(e){h(e,s)})),r.eachEdge((function(e){h(e,l)}))}});function g(e,t,i){var r=new n.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return n.initProps(r,{shape:{width:e.width+20}},t,i),r}e.exports=p},56267:function(e,t,i){var n=i(89231);i(38615),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},42639:function(e,t,i){var n=i(61570),r=i(95289),o=i(63199),s=o.groupData;function a(e,t,i){e.eachSeriesByType("sankey",(function(e){var i=e.get("nodeWidth"),n=e.get("nodeGap"),o=l(e,t);e.layoutInfo=o;var s=o.width,a=o.height,h=e.getGraph(),d=h.nodes,f=h.edges;u(d);var p=r.filter(d,(function(e){return 0===e.getLayout().value})),g=0!==p.length?0:e.get("layoutIterations"),v=e.get("orient"),m=e.get("nodeAlign");c(d,f,i,n,s,a,g,v,m)}))}function l(e,t){return n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t,i,n,r,o,s,a,l){h(e,t,i,r,o,a,l),v(e,t,o,r,n,s,a),I(e,a)}function u(e){r.each(e,(function(e){var t=k(e.outEdges,M),i=k(e.inEdges,M),n=e.getValue()||0,r=Math.max(t,i,n);e.setLayout({value:r},!0)}))}function h(e,t,i,n,r,o,s){for(var a=[],l=[],c=[],u=[],h=0,d=0,p=0;p<t.length;p++)a[p]=1;for(p=0;p<e.length;p++)l[p]=e[p].inEdges.length,0===l[p]&&c.push(e[p]);var v=-1;while(c.length){for(var m=0;m<c.length;m++){var y=c[m],_=y.hostGraph.data.getRawDataItem(y.dataIndex),x=null!=_.depth&&_.depth>=0;x&&_.depth>v&&(v=_.depth),y.setLayout({depth:x?_.depth:h},!0),"vertical"===o?y.setLayout({dy:i},!0):y.setLayout({dx:i},!0);for(var b=0;b<y.outEdges.length;b++){var w=y.outEdges[b],S=t.indexOf(w);a[S]=0;var C=w.node2,A=e.indexOf(C);0===--l[A]&&u.indexOf(C)<0&&u.push(C)}}++h,c=u,u=[]}for(p=0;p<a.length;p++)if(1===a[p])throw new Error("Sankey is a DAG, the original data has cycle!");var M=v>h-1?v:h-1;s&&"left"!==s&&f(e,s,o,M);d="vertical"===o?(r-i)/M:(n-i)/M;g(e,d,o)}function d(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function f(e,t,i,n){if("right"===t){var o=[],s=e,a=0;while(s.length){for(var l=0;l<s.length;l++){var c=s[l];c.setLayout({skNodeHeight:a},!0);for(var u=0;u<c.inEdges.length;u++){var h=c.inEdges[u];o.indexOf(h.node1)<0&&o.push(h.node1)}}s=o,o=[],++a}r.each(e,(function(e){d(e)||e.setLayout({depth:Math.max(0,n-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&p(e,n)}function p(e,t){r.each(e,(function(e){d(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function g(e,t,i){r.each(e,(function(e){var n=e.getLayout().depth*t;"vertical"===i?e.setLayout({y:n},!0):e.setLayout({x:n},!0)}))}function v(e,t,i,n,r,o,s){var a=m(e,s);y(a,t,i,n,r,s),_(a,r,i,n,s);for(var l=1;o>0;o--)l*=.99,x(a,l,s),_(a,r,i,n,s),T(a,l,s),_(a,r,i,n,s)}function m(e,t){var i=[],n="vertical"===t?"y":"x",o=s(e,(function(e){return e.getLayout()[n]}));return o.keys.sort((function(e,t){return e-t})),r.each(o.keys,(function(e){i.push(o.buckets.get(e))})),i}function y(e,t,i,n,o,s){var a=1/0;r.each(e,(function(e){var t=e.length,l=0;r.each(e,(function(e){l+=e.getLayout().value}));var c="vertical"===s?(n-(t-1)*o)/l:(i-(t-1)*o)/l;c<a&&(a=c)})),r.each(e,(function(e){r.each(e,(function(e,t){var i=e.getLayout().value*a;"vertical"===s?(e.setLayout({x:t},!0),e.setLayout({dx:i},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:i},!0))}))})),r.each(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function _(e,t,i,n,o){var s="vertical"===o?"x":"y";r.each(e,(function(e){var r,a,l;e.sort((function(e,t){return e.getLayout()[s]-t.getLayout()[s]}));for(var c=0,u=e.length,h="vertical"===o?"dx":"dy",d=0;d<u;d++)a=e[d],l=c-a.getLayout()[s],l>0&&(r=a.getLayout()[s]+l,"vertical"===o?a.setLayout({x:r},!0):a.setLayout({y:r},!0)),c=a.getLayout()[s]+a.getLayout()[h]+t;var f="vertical"===o?n:i;if(l=c-t-f,l>0)for(r=a.getLayout()[s]-l,"vertical"===o?a.setLayout({x:r},!0):a.setLayout({y:r},!0),c=r,d=u-2;d>=0;--d)a=e[d],l=a.getLayout()[s]+a.getLayout()[h]+t-c,l>0&&(r=a.getLayout()[s]-l,"vertical"===o?a.setLayout({x:r},!0):a.setLayout({y:r},!0)),c=a.getLayout()[s]}))}function x(e,t,i){r.each(e.slice().reverse(),(function(e){r.each(e,(function(e){if(e.outEdges.length){var n=k(e.outEdges,b,i)/k(e.outEdges,M,i);if(isNaN(n)){var r=e.outEdges.length;n=r?k(e.outEdges,w,i)/r:0}if("vertical"===i){var o=e.getLayout().x+(n-A(e,i))*t;e.setLayout({x:o},!0)}else{var s=e.getLayout().y+(n-A(e,i))*t;e.setLayout({y:s},!0)}}}))}))}function b(e,t){return A(e.node2,t)*e.getValue()}function w(e,t){return A(e.node2,t)}function S(e,t){return A(e.node1,t)*e.getValue()}function C(e,t){return A(e.node1,t)}function A(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function M(e){return e.getValue()}function k(e,t,i){var n=0,r=e.length,o=-1;while(++o<r){var s=+t.call(e,e[o],i);isNaN(s)||(n+=s)}return n}function T(e,t,i){r.each(e,(function(e){r.each(e,(function(e){if(e.inEdges.length){var n=k(e.inEdges,S,i)/k(e.inEdges,M,i);if(isNaN(n)){var r=e.inEdges.length;n=r?k(e.inEdges,C,i)/r:0}if("vertical"===i){var o=e.getLayout().x+(n-A(e,i))*t;e.setLayout({x:o},!0)}else{var s=e.getLayout().y+(n-A(e,i))*t;e.setLayout({y:s},!0)}}}))}))}function I(e,t){var i="vertical"===t?"x":"y";r.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[i]-t.node2.getLayout()[i]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[i]-t.node1.getLayout()[i]}))})),r.each(e,(function(e){var t=0,i=0;r.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),r.each(e.inEdges,(function(e){e.setLayout({ty:i},!0),i+=e.getLayout().dy}))}))}e.exports=a},5221:function(e,t,i){var n=i(71576),r=i(95289);function o(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),i=t.nodes;if(i.length){var o=1/0,s=-1/0;r.each(i,(function(e){var t=e.getLayout().value;t<o&&(o=t),t>s&&(s=t)})),r.each(i,(function(t){var i=new n({type:"color",mappingMethod:"linear",dataExtent:[o,s],visual:e.get("color")}),r=i.mapValueToVisual(t.getLayout().value),a=t.getModel().get("itemStyle.color");null!=a?t.setVisual("color",a):t.setVisual("color",r)}))}}))}e.exports=o},15980:function(e,t,i){var n=i(89231);i(21620),i(8452);var r=i(39784),o=i(32493);i(48807),n.registerVisual(r("scatter","circle")),n.registerLayout(o("scatter"))},21620:function(e,t,i){var n=i(19554),r=i(33358),o=r.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=o},8452:function(e,t,i){var n=i(89231),r=i(52033),o=i(18790),s=i(32493);n.extendChartView({type:"scatter",render:function(e,t,i){var n=e.getData(),r=this._updateSymbolDraw(n,e);r.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,i){var n=e.getData(),r=this._updateSymbolDraw(n,e);r.incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(e,t,i){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=s().reset(e);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_getClipShape:function(e){var t=e.coordinateSystem,i=t&&t.getArea&&t.getArea();return e.get("clip",!0)?i:null},_updateSymbolDraw:function(e,t){var i=this._symbolDraw,n=t.pipelineContext,s=n.large;return i&&s===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=s?new o:new r,this._isLargeDraw=s,this.group.removeAll()),this.group.add(i.group),i},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},17164:function(e,t,i){var n=i(89231),r=i(95289);i(13762),i(93102),i(21665);var o=i(5045),s=i(56437),a=i(18014);n.registerVisual(r.curry(o,"sunburst")),n.registerLayout(r.curry(s,"sunburst")),n.registerProcessor(r.curry(a,"sunburst"))},86129:function(e,t,i){var n=i(95289),r=i(76442),o={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},s=2,a=4;function l(e,t,i){r.Group.call(this);var n=new r.Sector({z2:s});n.seriesIndex=t.seriesIndex;var o=new r.Text({z2:a,silent:e.getModel("label").get("silent")});function l(){o.ignore=o.hoverIgnore}function c(){o.ignore=o.normalIgnore}this.add(n),this.add(o),this.updateData(!0,e,"normal",t,i),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(e,t,i,o,s){this.node=t,t.piece=this,o=o||this._seriesModel,s=s||this._ecModel;var a=this.childAt(0);a.dataIndex=t.dataIndex;var l=t.getModel(),c=t.getLayout(),u=n.extend({},c);u.label=null;var d=h(t,o,s);p(t,o,d);var f,g=l.getModel("itemStyle").getItemStyle();if("normal"===i)f=g;else{var v=l.getModel(i+".itemStyle").getItemStyle();f=n.merge(v,g)}f=n.defaults({lineJoin:"bevel",fill:f.fill||d},f),e?(a.setShape(u),a.shape.r=c.r0,r.updateProps(a,{shape:{r:c.r}},o,t.dataIndex),a.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof a.style.fill&&a.style.fill.type?(r.updateProps(a,{shape:u},o),a.useStyle(f)):r.updateProps(a,{shape:u,style:f},o),this._updateLabel(o,d,i);var m=l.getShallow("cursor");if(m&&a.attr("cursor",m),e){var y=o.getShallow("highlightPolicy");this._initEvents(a,t,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=s||this._ecModel,r.setHoverStyle(this)},c.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(t.node===i?i.piece.updateData(!1,i,"emphasis"):f(i,t.node,e)?i.piece.childAt(0).trigger("highlight"):e!==o.NONE&&i.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(e,t,i){var o=this.node.getModel(),s=o.getModel("label"),a="normal"===i||"emphasis"===i?s:o.getModel(i+".label"),l=o.getModel("emphasis.label"),c=a.get("formatter"),u=c?i:"normal",h=n.retrieve(e.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===k("show")&&(h="");var d=this.node.getLayout(),f=a.get("minAngle");null==f&&(f=s.get("minAngle")),f=f/180*Math.PI;var p=d.endAngle-d.startAngle;null!=f&&Math.abs(p)<f&&(h="");var g=this.childAt(1);r.setLabelStyle(g.style,g.hoverStyle||{},s,l,{defaultText:a.getShallow("show")?h:null,autoColor:t,useInsideStyle:!0});var v,m=(d.startAngle+d.endAngle)/2,y=Math.cos(m),_=Math.sin(m),x=k("position"),b=k("distance")||0,w=k("align");"outside"===x?(v=d.r+b,w=m>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(v=d.r0+b,m>Math.PI/2&&(w="right")):"right"===w&&(v=d.r-b,m>Math.PI/2&&(w="left")):(v=(d.r+d.r0)/2,w="center"),g.attr("style",{text:h,textAlign:w,textVerticalAlign:k("verticalAlign")||"middle",opacity:k("opacity")});var S=v*y+d.cx,C=v*_+d.cy;g.attr("position",[S,C]);var A=k("rotate"),M=0;function k(e){var t=a.get(e);return null==t?s.get(e):t}"radial"===A?(M=-m,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===A?(M=Math.PI/2-m,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):"number"===typeof A&&(M=A*Math.PI/180),g.attr("rotation",M)},c._initEvents=function(e,t,i,n){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(n)},s=function(){r.onNormal()},a=function(){r.onDownplay()},l=function(){r.onHighlight()};i.isAnimationEnabled()&&e.on("mouseover",o).on("mouseout",s).on("emphasis",o).on("normal",s).on("downplay",a).on("highlight",l)},n.inherits(l,r.Group);var u=l;function h(e,t,i){var n=e.getVisual("color"),r=e.getVisual("visualMeta");r&&0!==r.length||(n=null);var o=e.getModel("itemStyle").get("color");if(o)return o;if(n)return n;if(0===e.depth)return i.option.color[0];var s=i.option.color.length;return o=i.option.color[d(e)%s],o}function d(e){var t=e;while(t.depth>1)t=t.parentNode;var i=e.getAncestors()[0];return n.indexOf(i.children,t)}function f(e,t,i){return i!==o.NONE&&(i===o.SELF?e===t:i===o.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function p(e,t,i){var n=t.getData();n.setItemVisual(e.dataIndex,"color",i)}e.exports=u},13762:function(e,t,i){var n=i(95289),r=i(33358),o=i(35288),s=i(40590),a=i(80047),l=a.wrapTreePathInfo,c=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var i={name:e.name,children:e.data};u(i);var r=n.map(e.levels||[],(function(e){return new s(e,this,t)}),this),a=o.createTree(i,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var i=a.getNodeByDataIndex(t),n=r[i.depth];return n&&(e.parentModel=n),e}))}return a.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(i,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",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},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function u(e){var t=0;n.each(e.children,(function(e){u(e);var i=e.value;n.isArray(i)&&(i=i[0]),t+=i}));var i=e.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=t),i<0&&(i=0),n.isArray(e.value)?e.value[0]=i:e.value=i}e.exports=c},93102:function(e,t,i){var n=i(95289),r=i(67955),o=i(86129),s=i(1032),a=i(8595),l=a.windowOpen,c="sunburstRootToNode",u=r.extend({type:"sunburst",init:function(){},render:function(e,t,i,r){var a=this;this.seriesModel=e,this.api=i,this.ecModel=t;var l=e.getData(),c=l.tree.root,u=e.getViewRoot(),h=this.group,d=e.get("renderLabelForZeroData"),f=[];u.eachNode((function(e){f.push(e)}));var p=this._oldChildren||[];if(m(f,p),x(c,u),r&&r.highlight&&r.highlight.piece){var g=e.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(g)}else if(r&&r.unhighlight){var v=this.virtualPiece;!v&&c.children.length&&(v=c.children[0].piece),v&&v.onNormal()}function m(e,t){function i(e){return e.getId()}function r(i,n){var r=null==i?null:e[i],o=null==n?null:t[n];y(r,o)}0===e.length&&0===t.length||new s(t,e,i,i).add(r).update(r).remove(n.curry(r,null)).execute()}function y(i,n){if(d||!i||i.getValue()||(i=null),i!==c&&n!==c)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",e,t),l.setItemGraphicEl(i.dataIndex,n.piece)):_(n);else if(i){var r=new o(i,e,t);h.add(r),l.setItemGraphicEl(i.dataIndex,r)}}function _(e){e&&e.piece&&(h.remove(e.piece),e.piece=null)}function x(i,n){if(n.depth>0){a.virtualPiece?a.virtualPiece.updateData(!1,i,"normal",e,t):(a.virtualPiece=new o(i,e,t),h.add(a.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var r=function(e){a._rootToNode(n.parentNode)};n.piece._onclickEvent=r,a.virtualPiece.on("click",r)}else a.virtualPiece&&(h.remove(a.virtualPiece),a.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var i=!1,n=e.seriesModel.getViewRoot();n.eachNode((function(n){if(!i&&n.piece&&n.piece.childAt(0)===t.target){var r=n.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(n);else if("link"===r){var o=n.getModel(),s=o.get("link");if(s){var a=o.get("target",!0)||"_blank";l(s,a)}}i=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:c,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var i=t.getData(),n=i.getItemLayout(0);if(n){var r=e[0]-n.cx,o=e[1]-n.cy,s=Math.sqrt(r*r+o*o);return s<=n.r&&s>=n.r0}}}),h=u;e.exports=h},21665:function(e,t,i){var n=i(89231),r=i(80047),o="sunburstRootToNode";n.registerAction({type:o,update:"updateView"},(function(e,t){function i(t,i){var n=r.retrieveTargetInfo(e,[o],t);if(n){var s=t.getViewRoot();s&&(e.direction=r.aboveViewRoot(s,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},i)}));var s="sunburstHighlight";n.registerAction({type:s,update:"updateView"},(function(e,t){function i(t,i){var n=r.retrieveTargetInfo(e,[s],t);n&&(e.highlight=n.node)}t.eachComponent({mainType:"series",subType:"sunburst",query:e},i)}));var a="sunburstUnhighlight";n.registerAction({type:a,update:"updateView"},(function(e,t){function i(t,i){e.unhighlight=!0}t.eachComponent({mainType:"series",subType:"sunburst",query:e},i)}))},56437:function(e,t,i){var n=i(44261),r=n.parsePercent,o=i(95289),s=Math.PI/180;function a(e,t,i,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),n=e.get("radius");o.isArray(n)||(n=[0,n]),o.isArray(t)||(t=[t,t]);var a=i.getWidth(),c=i.getHeight(),u=Math.min(a,c),h=r(t[0],a),d=r(t[1],c),f=r(n[0],u/2),p=r(n[1],u/2),g=-e.get("startAngle")*s,v=e.get("minAngle")*s,m=e.getData().tree.root,y=e.getViewRoot(),_=y.depth,x=e.get("sort");null!=x&&l(y,x);var b=0;o.each(y.children,(function(e){!isNaN(e.getValue())&&b++}));var w=y.getValue(),S=Math.PI/(w||b)*2,C=y.depth>0,A=y.height-(C?-1:1),M=(p-f)/(A||1),k=e.get("clockwise"),T=e.get("stillShowZeroSum"),I=k?1:-1,L=function(e,t){if(e){var i=t;if(e!==m){var n=e.getValue(),s=0===w&&T?S:n*S;s<v&&(s=v),i=t+I*s;var a=e.depth-_-(C?-1:1),l=f+M*a,c=f+M*(a+1),p=e.getModel();null!=p.get("r0")&&(l=r(p.get("r0"),u/2)),null!=p.get("r")&&(c=r(p.get("r"),u/2)),e.setLayout({angle:s,startAngle:t,endAngle:i,clockwise:k,cx:h,cy:d,r0:l,r:c})}if(e.children&&e.children.length){var g=0;o.each(e.children,(function(e){g+=L(e,t+g)}))}return i-t}};if(C){var E=f,D=f+M,O=2*Math.PI;m.setLayout({angle:O,startAngle:g,endAngle:g+O,clockwise:k,cx:h,cy:d,r0:E,r:D})}L(y,g)}))}function l(e,t){var i=e.children||[];e.children=c(i,t),i.length&&o.each(e.children,(function(e){l(e,t)}))}function c(e,t){if("function"===typeof t)return e.sort(t);var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}e.exports=a},77249:function(e,t,i){var n=i(89231);i(27220),i(75772),i(29388);var r=i(61615),o=i(50501),s=i(18014);n.registerLayout(r),n.registerVisual(o),n.registerProcessor(s("themeRiver"))},75772:function(e,t,i){var n=i(33358),r=i(29966),o=i(99535),s=o.getDimensionTypeByAxis,a=i(5628),l=i(95289),c=i(63199),u=c.groupData,h=i(8595),d=h.encodeHTML,f=i(65840),p=2,g=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){g.superApply(this,"init",arguments),this.legendVisualProvider=new f(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(e){var t=e.length,i={},n=u(e,(function(e){return i.hasOwnProperty(e[0])||(i[e[0]]=-1),e[2]})),r=[];n.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,s=0;s<o;++s){for(var a=r[s].name,l=0;l<r[s].dataList.length;++l){var c=r[s].dataList[l][0];i[c]=s}for(var c in i)i.hasOwnProperty(c)&&i[c]!==s&&(i[c]=s,e[t]=[],e[t][0]=c,e[t][1]=0,e[t][2]=a,t++)}return e},getInitialData:function(e,t){for(var i=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],n=i.get("type"),o=l.filter(e.data,(function(e){return void 0!==e[2]})),c=this.fixData(o||[]),u=[],h=this.nameMap=l.createHashMap(),d=0,f=0;f<c.length;++f)u.push(c[f][p]),h.get(c[f][p])||(h.set(c[f][p],d),d++);var g=r(c,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:s(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),v=new a(g,this);return v.initData(c),v},getLayerSeries:function(){for(var e=this.getData(),t=e.count(),i=[],n=0;n<t;++n)i[n]=n;var r=e.mapDimension("single"),o=u(i,(function(t){return e.get("name",t)})),s=[];return o.buckets.each((function(t,i){t.sort((function(t,i){return e.get(r,t)-e.get(r,i)})),s.push({name:i,indices:t})})),s},getAxisTooltipData:function(e,t,i){l.isArray(e)||(e=e?[e]:[]);for(var n,r=this.getData(),o=this.getLayerSeries(),s=[],a=o.length,c=0;c<a;++c){for(var u=Number.MAX_VALUE,h=-1,d=o[c].indices.length,f=0;f<d;++f){var p=r.get(e[0],o[c].indices[f]),g=Math.abs(p-t);g<=u&&(n=p,u=g,h=o[c].indices[f])}s.push(h)}return{dataIndices:s,nestestValue:n}},formatTooltip:function(e){var t=this.getData(),i=t.getName(e),n=t.get(t.mapDimension("value"),e);return(isNaN(n)||null==n)&&(n="-"),d(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),v=g;e.exports=v},29388:function(e,t,i){var n=i(89231),r=i(6667),o=r.Polygon,s=i(76442),a=i(95289),l=a.bind,c=a.extend,u=i(1032),h=n.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,i){var n=e.getData(),r=this.group,a=e.getLayerSeries(),h=n.getLayout("layoutInfo"),f=h.rect,p=h.boundaryGap;function g(e){return e.name}r.attr("position",[0,f.y+p[0]]);var v=new u(this._layersSeries||[],a,g,g),m={};function y(t,i,l){var u=this._layers;if("remove"!==t){for(var h,f,p,g=[],v=[],y=a[i].indices,_=0;_<y.length;_++){var x=n.getItemLayout(y[_]),b=x.x,w=x.y0,S=x.y;g.push([b,w]),v.push([b,w+S]),h=n.getItemVisual(y[_],"color")}var C=n.getItemLayout(y[0]),A=n.getItemModel(y[_-1]),M=A.getModel("label"),k=M.get("margin");if("add"===t){var T=m[i]=new s.Group;f=new o({shape:{points:g,stackedOnPoints:v,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new s.Text({style:{x:C.x-k,y:C.y0+C.y/2}}),T.add(f),T.add(p),r.add(T),f.setClipPath(d(f.getBoundingRect(),e,(function(){f.removeClipPath()})))}else{T=u[l];f=T.childAt(0),p=T.childAt(1),r.add(T),m[i]=T,s.updateProps(f,{shape:{points:g,stackedOnPoints:v}},e),s.updateProps(p,{style:{x:C.x-k,y:C.y0+C.y/2}},e)}var I=A.getModel("emphasis.itemStyle"),L=A.getModel("itemStyle");s.setTextStyle(p.style,M,{text:M.get("show")?e.getFormattedLabel(y[_-1],"normal")||n.getName(y[_-1]):null,textVerticalAlign:"middle"}),f.setStyle(c({fill:h},L.getItemStyle(["color"]))),s.setHoverStyle(f,I.getItemStyle())}else r.remove(u[i])}v.add(l(y,this,"add")).update(l(y,this,"update")).remove(l(y,this,"remove")).execute(),this._layersSeries=a,this._layers=m},dispose:function(){}});function d(e,t,i){var n=new s.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return s.initProps(n,{shape:{width:e.width+20,height:e.height+20}},t,i),n}e.exports=h},61615:function(e,t,i){var n=i(95289),r=i(44261);function o(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),i=e.coordinateSystem,n={},o=i.getRect();n.rect=o;var a=e.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=a,"horizontal"===l.orient){a[0]=r.parsePercent(a[0],o.height),a[1]=r.parsePercent(a[1],o.height);var c=o.height-a[0]-a[1];s(t,e,c)}else{a[0]=r.parsePercent(a[0],o.width),a[1]=r.parsePercent(a[1],o.width);var u=o.width-a[0]-a[1];s(t,e,u)}t.setLayout("layoutInfo",n)}))}function s(e,t,i){if(e.count())for(var r,o=t.coordinateSystem,s=t.getLayerSeries(),l=e.mapDimension("single"),c=e.mapDimension("value"),u=n.map(s,(function(t){return n.map(t.indices,(function(t){var i=o.dataToPoint(e.get(l,t));return i[1]=e.get(c,t),i}))})),h=a(u),d=h.y0,f=i/h.max,p=s.length,g=s[0].indices.length,v=0;v<g;++v){r=d[v]*f,e.setItemLayout(s[0].indices[v],{layerIndex:0,x:u[0][v][0],y0:r,y:u[0][v][1]*f});for(var m=1;m<p;++m)r+=u[m-1][v][1]*f,e.setItemLayout(s[m].indices[v],{layerIndex:m,x:u[m][v][0],y0:r,y:u[m][v][1]*f})}}function a(e){for(var t=e.length,i=e[0].length,n=[],r=[],o=0,s={},a=0;a<i;++a){for(var l=0,c=0;l<t;++l)c+=e[l][a][1];c>o&&(o=c),n.push(c)}for(var u=0;u<i;++u)r[u]=(o-n[u])/2;o=0;for(var h=0;h<i;++h){var d=n[h]+r[h];d>o&&(o=d)}return s.y0=r,s.max=o,s}e.exports=o},50501:function(e,t,i){var n=i(95289),r=n.createHashMap;function o(e){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),i=e.getRawData(),n=e.get("color"),o=r();t.each((function(e){o.set(t.getRawIndex(e),e)})),i.each((function(r){var s=i.getName(r),a=n[(e.nameMap.get(s)-1)%n.length];i.setItemVisual(r,"color",a);var l=o.get(r);null!=l&&t.setItemVisual(l,"color",a)}))}))}e.exports=o},75868:function(e,t,i){var n=i(89231);i(46526),i(80898),i(68309);var r=i(39784),o=i(3153);n.registerVisual(r("tree","circle")),n.registerLayout(o)},46526:function(e,t,i){var n=i(33358),r=i(35288),o=i(8595),s=o.encodeHTML,a=i(40590),l=n.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},i=e.leaves||{},n=new a(i,this,this.ecModel),o=r.createTree(t,this,s);function s(e){e.wrapMethod("getItemModel",(function(e,t){var i=o.getNodeByDataIndex(t);return i.children.length&&i.isExpand||(e.parentModel=n),e}))}var l=0;o.eachNode("preorder",(function(e){e.depth>l&&(l=e.depth)}));var c=e.expandAndCollapse,u=c&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=u})),o.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,i=t.root.children[0],n=t.getNodeByDataIndex(e),r=n.getValue(),o=n.name;while(n&&n!==i)o=n.parentNode.name+"."+o,n=n.parentNode;return s(o+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},80898:function(e,t,i){var n=i(95289),r=i(76442),o=i(88747),s=i(73917),a=s.radialCoordinate,l=i(89231),c=i(66346),u=i(92394),h=i(43173),d=i(95441),f=i(47114),p=f.onIrrelevantElement,g=i(65523),v=(g.__DEV__,i(44261)),m=v.parsePercent,y=r.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.childPoints,n=i.length,r=t.parentPoint,o=i[0],s=i[n-1];if(1===n)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var a=t.orient,l="TB"===a||"BT"===a?0:1,c=1-l,u=m(t.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(s[c]-r[c])*u,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=s[l],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var d=1;d<n-1;d++){var f=i[d];e.moveTo(f[0],f[1]),h[l]=f[l],e.lineTo(h[0],h[1])}}}),_=l.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new r.Group,this._controller=new d(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,i,n){var r=e.getData(),o=e.layoutInfo,s=this._mainGroup,a=e.get("layout");"radial"===a?s.attr("position",[o.x+o.width/2,o.y+o.height/2]):s.attr("position",[o.x,o.y]),this._updateViewCoordSys(e,o,a),this._updateController(e,t,i);var l=this._data,c={expandAndCollapse:e.get("expandAndCollapse"),layout:a,edgeShape:e.get("edgeShape"),edgeForkPosition:e.get("edgeForkPosition"),orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add((function(t){x(r,t)&&w(r,t,null,s,e,c)})).update((function(t,i){var n=l.getItemGraphicEl(i);x(r,t)?w(r,t,n,s,e,c):n&&C(l,i,n,s,e,c)})).remove((function(t){var i=l.getItemGraphicEl(t);i&&C(l,t,i,s,e,c)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===c.expandAndCollapse&&r.eachItemGraphicEl((function(t,n){t.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:n})}))})),this._data=r},_updateViewCoordSys:function(e){var t=e.getData(),i=[];t.each((function(e){var n=t.getItemLayout(e);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])}));var n=[],r=[];c.fromPoints(i,n,r);var o=this._min,s=this._max;r[0]-n[0]===0&&(n[0]=o?o[0]:n[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-n[1]===0&&(n[1]=o?o[1]:n[1]-1,r[1]=s?s[1]:r[1]+1);var a=e.coordinateSystem=new u;a.zoomLimit=e.get("scaleLimit"),a.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1]),a.setCenter(e.get("center")),a.setZoom(e.get("zoom")),this.group.attr({position:a.position,scale:a.scale}),this._viewCoordSys=a,this._min=n,this._max=r},_updateController:function(e,t,i){var n=this._controller,r=this._controllerHost,o=this.group;n.setPointerChecker((function(t,n,r){var s=o.getBoundingRect();return s.applyTransform(o.transform),s.contain(n,r)&&!p(t,i,e)})),n.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(t){h.updateViewOnPan(r,t.dx,t.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}),this).on("zoom",(function(t){h.updateViewOnZoom(r,t.scale,t.originX,t.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)}),this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),i=this._getNodeGlobalScale(e),n=[i,i];t.eachItemGraphicEl((function(e,t){e.attr("scale",n)}))},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var i=this._nodeScaleRatio,n=t.scale,r=n&&n[0]||1,o=t.getZoom(),s=(o-1)*i+1;return s/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function x(e,t){var i=e.getItemLayout(t);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==e.getItemVisual(t,"symbol")}function b(e,t,i){return i.itemModel=t,i.itemStyle=t.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=t.getModel("lineStyle").getLineStyle(),i.labelModel=t.getModel("label"),i.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function w(e,t,i,n,s,a){var l=!i,c=e.tree.getNodeByDataIndex(t),u=c.getModel(),h=(a=b(c,u,a),e.tree.root),d=c.parentNode===h?c:c.parentNode||c,f=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),g=f?{x:f.position[0],y:f.position[1],rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,v=c.getLayout();l?(i=new o(e,t,a),i.attr("position",[g.x,g.y])):i.updateData(e,t,a),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=v.rawX,i.__radialRawY=v.rawY,n.add(i),e.setItemGraphicEl(t,i),r.updateProps(i,{position:[v.x,v.y]},s);var m=i.getSymbolPath();if("radial"===a.layout){var y,_,x=h.children[0],w=x.getLayout(),C=x.children.length;if(v.x===w.x&&!0===c.isExpand){var A={};A.x=(x.children[0].getLayout().x+x.children[C-1].getLayout().x)/2,A.y=(x.children[0].getLayout().y+x.children[C-1].getLayout().y)/2,y=Math.atan2(A.y-w.y,A.x-w.x),y<0&&(y=2*Math.PI+y),_=A.x<w.x,_&&(y-=Math.PI)}else y=Math.atan2(v.y-w.y,v.x-w.x),y<0&&(y=2*Math.PI+y),0===c.children.length||0!==c.children.length&&!1===c.isExpand?(_=v.x<w.x,_&&(y-=Math.PI)):(_=v.x>w.x,_||(y-=Math.PI));var M=_?"left":"right",k=a.labelModel.get("rotate"),T=k*(Math.PI/180);m.setStyle({textPosition:a.labelModel.get("position")||M,textRotation:null==k?-y:T,textOrigin:"center",verticalAlign:"middle"})}S(s,c,h,i,g,p,v,n,a)}function S(e,t,i,o,s,a,l,c,u){var h=u.edgeShape,d=o.__edge;if("curve"===h)t.parentNode&&t.parentNode!==i&&(d||(d=o.__edge=new r.BezierCurve({shape:A(u,s,s),style:n.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),r.updateProps(d,{shape:A(u,a,l),style:n.defaults({opacity:1},u.lineStyle)},e));else if("polyline"===h&&"orthogonal"===u.layout&&t!==i&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var f=t.children,p=[],g=0;g<f.length;g++){var v=f[g].getLayout();p.push([v.x,v.y])}d||(d=o.__edge=new y({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:u.orient,forkPosition:u.edgeForkPosition},style:n.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),r.updateProps(d,{shape:{parentPoint:[l.x,l.y],childPoints:p},style:n.defaults({opacity:1},u.lineStyle)},e)}c.add(d)}function C(e,t,i,n,o,s){var a,l=e.tree.getNodeByDataIndex(t),c=e.tree.root,u=l.getModel(),h=(s=b(l,u,s),l.parentNode===c?l:l.parentNode||l),d=s.edgeShape;while(a=h.getLayout(),null==a)h=h.parentNode===c?h:h.parentNode||h;r.updateProps(i,{position:[a.x+1,a.y+1]},o,(function(){n.remove(i),e.setItemGraphicEl(t,null)})),i.fadeOut(null,{keepLabel:!0});var f=e.getItemGraphicEl(h.dataIndex),p=f.__edge,g=i.__edge||(!1===h.isExpand||1===h.children.length?p:void 0);d=s.edgeShape;g&&("curve"===d?r.updateProps(g,{shape:A(s,a,a),style:{opacity:0}},o,(function(){n.remove(g)})):"polyline"===d&&"orthogonal"===s.layout&&r.updateProps(g,{shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]]},style:{opacity:0}},o,(function(){n.remove(g)})))}function A(e,t,i){var n,r,o,s,l,c,u,h,d=e.orient;if("radial"===e.layout){l=t.rawX,u=t.rawY,c=i.rawX,h=i.rawY;var f=a(l,u),p=a(l,u+(h-u)*e.curvature),g=a(c,h+(u-h)*e.curvature),v=a(c,h);return{x1:f.x,y1:f.y,x2:v.x,y2:v.y,cpx1:p.x,cpy1:p.y,cpx2:g.x,cpy2:g.y}}return l=t.x,u=t.y,c=i.x,h=i.y,"LR"!==d&&"RL"!==d||(n=l+(c-l)*e.curvature,r=u,o=c+(l-c)*e.curvature,s=h),"TB"!==d&&"BT"!==d||(n=l,r=u+(h-u)*e.curvature,o=c,s=h+(u-h)*e.curvature),{x1:l,y1:u,x2:c,y2:h,cpx1:n,cpy1:r,cpx2:o,cpy2:s}}e.exports=_},73917:function(e,t,i){var n=i(61570);function r(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,i,n=[e];while(t=n.pop())if(i=t.children,t.isExpand&&i.length)for(var r=i.length,o=r-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function o(e,t){var i=e.isExpand?e.children:[],n=e.parentNode.children,r=e.hierNode.i?n[e.hierNode.i-1]:null;if(i.length){u(e);var o=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=h(e,r,e.parentNode.hierNode.defaultAncestor||n[0],t)}function s(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function a(e){return arguments.length?e:v}function l(e,t){var i={};return e-=Math.PI/2,i.x=t*Math.cos(e),i.y=t*Math.sin(e),i}function c(e,t){return n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e){var t=e.children,i=t.length,n=0,r=0;while(--i>=0){var o=t[i];o.hierNode.prelim+=n,o.hierNode.modifier+=n,r+=o.hierNode.change,n+=o.hierNode.shift+r}}function h(e,t,i,n){if(t){var r=e,o=e,s=o.parentNode.children[0],a=t,l=r.hierNode.modifier,c=o.hierNode.modifier,u=s.hierNode.modifier,h=a.hierNode.modifier;while(a=d(a),o=f(o),a&&o){r=d(r),s=f(s),r.hierNode.ancestor=e;var v=a.hierNode.prelim+h-o.hierNode.prelim-c+n(a,o);v>0&&(g(p(a,e,i),e,v),c+=v,l+=v),h+=a.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=s.hierNode.modifier}a&&!d(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=h-l),o&&!f(s)&&(s.hierNode.thread=o,s.hierNode.modifier+=c-u,i=e)}return i}function d(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function f(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function p(e,t,i){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:i}function g(e,t,i){var n=i/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=i,t.hierNode.modifier+=i,t.hierNode.prelim+=i,e.hierNode.change+=n}function v(e,t){return e.parentNode===t.parentNode?1:2}t.init=r,t.firstWalk=o,t.secondWalk=s,t.separation=a,t.radialCoordinate=l,t.getViewRect=c},19969:function(e,t){function i(e,t,i){var n,r=[e],o=[];while(n=r.pop())if(o.push(n),n.isExpand){var s=n.children;if(s.length)for(var a=0;a<s.length;a++)r.push(s[a])}while(n=o.pop())t(n,i)}function n(e,t){var i,n=[e];while(i=n.pop())if(t(i),i.isExpand){var r=i.children;if(r.length)for(var o=r.length-1;o>=0;o--)n.push(r[o])}}t.eachAfter=i,t.eachBefore=n},68309:function(e,t,i){var n=i(89231),r=i(54407),o=r.updateCenterAndZoom;n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=e.dataIndex,n=t.getData().tree,r=n.getNodeByDataIndex(i);r.isExpand=!r.isExpand}))})),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,n=o(i,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))},3153:function(e,t,i){var n=i(19969),r=n.eachAfter,o=n.eachBefore,s=i(73917),a=s.init,l=s.firstWalk,c=s.secondWalk,u=s.separation,h=s.radialCoordinate,d=s.getViewRect;function f(e,t){e.eachSeriesByType("tree",(function(e){p(e,t)}))}function p(e,t){var i=d(e,t);e.layoutInfo=i;var n=e.get("layout"),s=0,f=0,p=null;"radial"===n?(s=2*Math.PI,f=Math.min(i.height,i.width)/2,p=u((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(s=i.width,f=i.height,p=u());var g=e.getData().tree.root,v=g.children[0];if(v){a(g),r(v,l,p),g.hierNode.modifier=-v.hierNode.prelim,o(v,c);var m=v,y=v,_=v;o(v,(function(e){var t=e.getLayout().x;t<m.getLayout().x&&(m=e),t>y.getLayout().x&&(y=e),e.depth>_.depth&&(_=e)}));var x=m===y?1:p(m,y)/2,b=x-m.getLayout().x,w=0,S=0,C=0,A=0;if("radial"===n)w=s/(y.getLayout().x+x+b),S=f/(_.depth-1||1),o(v,(function(e){C=(e.getLayout().x+b)*w,A=(e.depth-1)*S;var t=h(C,A);e.setLayout({x:t.x,y:t.y,rawX:C,rawY:A},!0)}));else{var M=e.getOrient();"RL"===M||"LR"===M?(S=f/(y.getLayout().x+x+b),w=s/(_.depth-1||1),o(v,(function(e){A=(e.getLayout().x+b)*S,C="LR"===M?(e.depth-1)*w:s-(e.depth-1)*w,e.setLayout({x:C,y:A},!0)}))):"TB"!==M&&"BT"!==M||(w=s/(y.getLayout().x+x+b),S=f/(_.depth-1||1),o(v,(function(e){C=(e.getLayout().x+b)*w,A="TB"===M?(e.depth-1)*S:f-(e.depth-1)*S,e.setLayout({x:C,y:A},!0)})))}}}e.exports=f},12268:function(e,t,i){var n=i(89231);i(59772),i(90060),i(54155);var r=i(3109),o=i(40527);n.registerVisual(r),n.registerLayout(o)},8858:function(e,t,i){var n=i(76442),r=i(61570),o=i(95289),s=i(80047),a=s.wrapTreePathInfo,l=8,c=8,u=5;function h(e){this.group=new n.Group,e.add(this.group)}function d(e,t,i,n,r,o){var s=[[r?e:e-u,t],[e+i,t],[e+i,t+n],[r?e:e-u,t+n]];return!o&&s.splice(2,0,[e+i+u,t+n/2]),!r&&s.push([e,t+n/2]),s}function f(e,t,i){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&a(i,t)}}h.prototype={constructor:h,render:function(e,t,i,n){var o=e.getModel("breadcrumb"),s=this.group;if(s.removeAll(),o.get("show")&&i){var a=o.getModel("itemStyle"),l=a.getModel("textStyle"),c={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,c,l),this._renderContent(e,c,a,l,n),r.positionElement(s,c.pos,c.box)}},_prepare:function(e,t,i){for(var n=e;n;n=n.parentNode){var r=n.getModel().get("name"),o=i.getTextRect(r),s=Math.max(o.width+2*l,t.emptyItemWidth);t.totalWidth+=s+c,t.renderList.push({node:n,text:r,width:s})}},_renderContent:function(e,t,i,s,a){for(var l=0,u=t.emptyItemWidth,h=e.get("breadcrumb.height"),p=r.getAvailableSize(t.pos,t.box),g=t.totalWidth,v=t.renderList,m=v.length-1;m>=0;m--){var y=v[m],_=y.node,x=y.width,b=y.text;g>p.width&&(g-=x-u,x=u,b=null);var w=new n.Polygon({shape:{points:d(l,0,x,h,m===v.length-1,0===m)},style:o.defaults(i.getItemStyle(),{lineJoin:"bevel",text:b,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:o.curry(a,_)});this.group.add(w),f(w,e,_),l+=x+c}},remove:function(){this.group.removeAll()}};var p=h;e.exports=p},59772:function(e,t,i){var n=i(95289),r=i(33358),o=i(35288),s=i(40590),a=i(8595),l=a.encodeHTML,c=a.addCommas,u=i(80047),h=u.wrapTreePathInfo,d=r.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,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)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var i={name:e.name,children:e.data};f(i);var r=e.levels||[],a=this.designatedVisualItemStyle={},l=new s({itemStyle:a},this,t);r=e.levels=p(r,t);var c=n.map(r||[],(function(e){return new s(e,l,t)}),this),u=o.createTree(i,this,h);function h(e){e.wrapMethod("getItemModel",(function(e,t){var i=u.getNodeByDataIndex(t),n=c[i.depth];return e.parentModel=n||l,e}))}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),i=this.getRawValue(e),r=n.isArray(i)?c(i[0]):c(i),o=t.getName(e);return l(o+": "+r)},getDataParams:function(e){var t=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=h(i,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},n.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=n.createHashMap(),this._idIndexMapCount=0);var i=t.get(e);return null==i&&t.set(e,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function f(e){var t=0;n.each(e.children,(function(e){f(e);var i=e.value;n.isArray(i)&&(i=i[0]),t+=i}));var i=e.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=t),i<0&&(i=0),n.isArray(e.value)?e.value[0]=i:e.value=i}function p(e,t){var i=t.get("color");if(i){var r;if(e=e||[],n.each(e,(function(e){var t=new s(e),i=t.get("color");(t.get("itemStyle.color")||i&&"none"!==i)&&(r=!0)})),!r){var o=e[0]||(e[0]={});o.color=i.slice()}return e}}e.exports=d},90060:function(e,t,i){var n=i(89231),r=i(95289),o=i(76442),s=i(1032),a=i(80047),l=i(8858),c=i(95441),u=i(39587),h=i(13388),d=i(3568),f=i(81935),p=i(8595),g=p.windowOpen,v=r.bind,m=o.Group,y=o.Rect,_=r.each,x=3,b=["label"],w=["emphasis","label"],S=["upperLabel"],C=["emphasis","upperLabel"],A=10,M=1,k=2,T=f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),I=function(e){var t=T(e);return t.stroke=t.fill=t.lineWidth=null,t},L=n.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=E(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,i,n){var o=t.findComponents({mainType:"series",subType:"treemap",query:n});if(!(r.indexOf(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=t;var s=["treemapZoomToNode","treemapRootToNode"],l=a.retrieveTargetInfo(n,s,e),c=n&&n.type,u=e.layoutInfo,h=!this._oldTree,d=this._storage,f="treemapRootToNode"===c&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(u),g=this._doRender(p,e,f);h||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?g.renderFinally():this._doAnimation(p,g,e,f),this._resetController(i),this._renderBreadcrumb(e,i,l)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new m,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,i){var n=t.getData().tree,o=this._oldTree,a=E(),l=E(),c=this._storage,u=[],h=r.curry(D,t,l,c,i,a,u);f(n.root?[n.root]:[],o&&o.root?[o.root]:[],e,n===o||!o,0);var d=p(c);return this._oldTree=n,this._storage=l,{lastsForAnimation:a,willDeleteEls:d,renderFinally:g};function f(e,t,i,n,o){function a(e){return e.getId()}function l(r,s){var a=null!=r?e[r]:null,l=null!=s?t[s]:null,c=h(a,l,i,o);c&&f(a&&a.viewChildren||[],l&&l.viewChildren||[],c,n,o+1)}n?(t=e,_(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new s(t,e,a,a).add(l).update(l).remove(r.curry(l,null)).execute()}function p(e){var t=E();return e&&_(e,(function(e,i){var n=t[i];_(e,(function(e){e&&(n.push(e),e.__tmWillDelete=1)}))})),t}function g(){_(d,(function(e){_(e,(function(e){e.parent&&e.parent.remove(e)}))})),_(u,(function(e){e.invisible=!0,e.dirty()}))}},_doAnimation:function(e,t,i,n){if(i.get("animation")){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),a=d.createWrap();_(t.willDeleteEls,(function(e,t){_(e,(function(e,i){if(!e.invisible){var r,l=e.parent;if(n&&"drillDown"===n.direction)r=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;l.__tmWillDelete||(c=l.__tmNodeWidth/2,u=l.__tmNodeHeight/2),r="nodeGroup"===t?{position:[c,u],style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}r&&a.add(e,r,o,s)}}))})),_(this._storage,(function(e,i){_(e,(function(e,n){var l=t.lastsForAnimation[i][n],c={};l&&("nodeGroup"===i?l.old&&(c.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(c.shape=r.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),c.style={opacity:1}):1!==e.style.opacity&&(c.style={opacity:1})),a.add(e,c,o,s))}))}),this),this._state="animating",a.done(v((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new c(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",v(this._onPan,this)),t.on("zoom",v(this._onZoom,this)));var i=new u(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>x||Math.abs(e.dy)>x)){var t=this.seriesModel.getData().tree.root;if(!t)return;var i=t.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},_onZoom:function(e){var t=e.originX,i=e.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var r=n.getLayout();if(!r)return;var o=new u(r.x,r.y,r.width,r.height),s=this.seriesModel.layoutInfo;t-=s.x,i-=s.y;var a=h.create();h.translate(a,a,[-t,-i]),h.scale(a,a,[e.scale,e.scale]),h.translate(a,a,[t,i]),o.applyTransform(a),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}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var i=this.findTarget(e.offsetX,e.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===t)this._zoomToNode(i);else if("link"===t){var r=n.hostTree.data.getItemModel(n.dataIndex),o=r.get("link",!0),s=r.get("target",!0)||"blank";o&&g(o,s)}}}}}),this)},_renderBreadcrumb:function(e,t,i){function n(t){"animating"!==this._state&&(a.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}i||(i=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,i.node,v(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=E(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var r=this._storage.background[n.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),s=r.shape;if(!(s.x<=o[0]&&o[0]<=s.x+s.width&&s.y<=o[1]&&o[1]<=s.y+s.height))return!1;i={node:n,offsetX:o[0],offsetY:o[1]}}}),this),i}});function E(){return{nodeGroup:[],background:[],content:[]}}function D(e,t,i,n,s,a,l,c,u,h){if(l){var d=l.getLayout(),f=e.getData();if(f.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var p=d.width,g=d.height,v=d.borderWidth,_=d.invisible,x=l.getRawIndex(),A=c&&c.getRawIndex(),L=l.viewChildren,E=d.upperHeight,D=L&&L.length,P=l.getModel("itemStyle"),R=l.getModel("emphasis.itemStyle"),B=G("nodeGroup",m);if(B){if(u.add(B),B.attr("position",[d.x||0,d.y||0]),B.__tmNodeWidth=p,B.__tmNodeHeight=g,d.isAboveViewRoot)return B;var N=l.getModel(),z=G("background",y,h,M);if(z&&F(B,z,D&&d.upperLabelHeight),D)o.isHighDownDispatcher(B)&&o.setAsHighDownDispatcher(B,!1),z&&(o.setAsHighDownDispatcher(z,!0),f.setItemGraphicEl(l.dataIndex,z));else{var H=G("content",y,h,k);H&&V(B,H),z&&o.isHighDownDispatcher(z)&&o.setAsHighDownDispatcher(z,!1),o.setAsHighDownDispatcher(B,!0),f.setItemGraphicEl(l.dataIndex,B)}return B}}}function F(t,i,n){if(i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex,i.setShape({x:0,y:0,width:p,height:g}),_)j(i);else{i.invisible=!1;var r=l.getVisual("borderColor",!0),s=R.get("borderColor"),a=I(P);a.fill=r;var c=T(R);if(c.fill=s,n){var u=p-2*v;$(a,c,r,u,E,{x:v,y:0,width:u,height:E})}else a.text=c.text=null;i.setStyle(a),o.setElementHoverStyle(i,c)}t.add(i)}function V(t,i){i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex;var n=Math.max(p-2*v,0),r=Math.max(g-2*v,0);if(i.culling=!0,i.setShape({x:v,y:v,width:n,height:r}),_)j(i);else{i.invisible=!1;var s=l.getVisual("color",!0),a=I(P);a.fill=s;var c=T(R);$(a,c,s,n,r),i.setStyle(a),o.setElementHoverStyle(i,c)}t.add(i)}function j(e){!e.invisible&&a.push(e)}function $(t,i,n,s,a,c){var u=N.get("name"),h=N.getModel(c?S:b),f=N.getModel(c?C:w),p=h.getShallow("show");o.setLabelStyle(t,i,h,f,{defaultText:p?u:null,autoColor:n,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:c?"upperLabel":"label"}),W(t,c,d),W(i,c,d),c&&(t.textRect=r.clone(c)),t.truncate=p&&h.get("ellipsis")?{outerWidth:s,outerHeight:a,minChar:2}:null}function W(t,i,n){var r=t.text;if(!i&&n.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function G(e,n,r,o){var a=null!=A&&i[e][A],l=s[e];return a?(i[e][A]=null,U(l,a,e)):_||(a=new n({z:O(r,o)}),a.__tmDepth=r,a.__tmStorageName=e,q(l,a,e)),t[e][x]=a}function U(e,t,i){var n=e[x]={};n.old="nodeGroup"===i?t.position.slice():r.extend({},t.shape)}function q(e,t,i){var r=e[x]={},o=l.parentNode;if(o&&(!n||"drillDown"===n.direction)){var a=0,c=0,u=s.background[o.getRawIndex()];!n&&u&&u.old&&(a=u.old.width,c=u.old.height),r.old="nodeGroup"===i?[0,c]:{x:a,y:c,width:0,height:0}}r.fadein="nodeGroup"!==i}}function O(e,t){var i=e*A+t;return(i-1)/i}e.exports=L},54155:function(e,t,i){for(var n=i(89231),r=i(80047),o=function(){},s=["treemapZoomToNode","treemapRender","treemapMove"],a=0;a<s.length;a++)n.registerAction({type:s[a],update:"updateView"},o);n.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function i(t,i){var n=["treemapZoomToNode","treemapRootToNode"],o=r.retrieveTargetInfo(e,n,t);if(o){var s=t.getViewRoot();s&&(e.direction=r.aboveViewRoot(s,o.node)?"rollUp":"drillDown"),t.resetViewRoot(o.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},i)}))},40527:function(e,t,i){var n=i(95289),r=i(39587),o=i(44261),s=o.parsePercent,a=o.MAX_SAFE_INTEGER,l=i(61570),c=i(80047),u=Math.max,h=Math.min,d=n.retrieve,f=n.each,p=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],v=["upperLabel","show"],m=["upperLabel","height"],y={seriesType:"treemap",reset:function(e,t,i,o){var a=i.getWidth(),u=i.getHeight(),h=e.option,p=l.getLayoutRect(e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),g=h.size||[],v=s(d(p.width,g[0]),a),m=s(d(p.height,g[1]),u),y=o&&o.type,x=["treemapZoomToNode","treemapRootToNode"],b=c.retrieveTargetInfo(o,x,e),w="treemapRender"===y||"treemapMove"===y?o.rootRect:null,S=e.getViewRoot(),C=c.getPathToRoot(S);if("treemapMove"!==y){var A="treemapZoomToNode"===y?M(e,b,S,v,m):w?[w.width,w.height]:[v,m],I=h.sort;I&&"asc"!==I&&"desc"!==I&&(I="desc");var L={squareRatio:h.squareRatio,sort:I,leafDepth:h.leafDepth};S.hostTree.clearLayouts();var E={x:0,y:0,width:A[0],height:A[1],area:A[0]*A[1]};S.setLayout(E),_(S,L,!1,0);E=S.getLayout();f(C,(function(e,t){var i=(C[t+1]||S).getValue();e.setLayout(n.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},E))}))}var D=e.getData().tree.root;D.setLayout(k(p,w,b),!0),e.setLayoutInfo(p),T(D,new r(-p.x,-p.y,a,u),C,S,0)}};function _(e,t,i,n){var r,o;if(!e.isRemoved()){var s=e.getLayout();r=s.width,o=s.height;var a=e.getModel(),l=a.get(p),c=a.get(g)/2,d=I(a),f=Math.max(l,d),v=l-c,m=f-c;a=e.getModel();e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:d},!0),r=u(r-2*v,0),o=u(o-v-m,0);var y=r*o,b=x(e,a,y,t,i,n);if(b.length){var w={x:v,y:m,width:r,height:o},S=h(r,o),M=1/0,k=[];k.area=0;for(var T=0,L=b.length;T<L;){var E=b[T];k.push(E),k.area+=E.getLayout().area;var D=C(k,S,t.squareRatio);D<=M?(T++,M=D):(k.area-=k.pop().getLayout().area,A(k,S,w,c,!1),S=h(w.width,w.height),k.length=k.area=0,M=1/0)}if(k.length&&A(k,S,w,c,!0),!i){var O=a.get("childrenVisibleMin");null!=O&&y<O&&(i=!0)}for(T=0,L=b.length;T<L;T++)_(b[T],t,i,n+1)}}}function x(e,t,i,r,o,s){var a=e.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var c=null!=r.leafDepth&&r.leafDepth<=s;if(o&&!c)return e.viewChildren=[];a=n.filter(a,(function(e){return!e.isRemoved()})),w(a,l);var u=S(t,a,l);if(0===u.sum)return e.viewChildren=[];if(u.sum=b(t,i,u.sum,l,a),0===u.sum)return e.viewChildren=[];for(var h=0,d=a.length;h<d;h++){var f=a[h].getValue()/u.sum*i;a[h].setLayout({area:f})}return c&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function b(e,t,i,n,r){if(!n)return i;for(var o=e.get("visibleMin"),s=r.length,a=s,l=s-1;l>=0;l--){var c=r["asc"===n?s-l-1:l].getValue();c/i*t<o&&(a=l,i-=c)}return"asc"===n?r.splice(0,s-a):r.splice(a,s-a),i}function w(e,t){return t&&e.sort((function(e,i){var n="asc"===t?e.getValue()-i.getValue():i.getValue()-e.getValue();return 0===n?"asc"===t?e.dataIndex-i.dataIndex:i.dataIndex-e.dataIndex:n})),e}function S(e,t,i){for(var n=0,r=0,o=t.length;r<o;r++)n+=t[r].getValue();var s=e.get("visualDimension");if(t&&t.length)if("value"===s&&i)a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===i&&a.reverse();else{var a=[1/0,-1/0];f(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))}else a=[NaN,NaN];return{sum:n,dataExtent:a}}function C(e,t,i){for(var n,r=0,o=1/0,s=0,a=e.length;s<a;s++)n=e[s].getLayout().area,n&&(n<o&&(o=n),n>r&&(r=n));var l=e.area*e.area,c=t*t*i;return l?u(c*r/l,l/(c*o)):1/0}function A(e,t,i,n,r){var o=t===i.width?0:1,s=1-o,a=["x","y"],l=["width","height"],c=i[a[o]],d=t?e.area/t:0;(r||d>i[l[s]])&&(d=i[l[s]]);for(var f=0,p=e.length;f<p;f++){var g=e[f],v={},m=d?g.getLayout().area/d:0,y=v[l[s]]=u(d-2*n,0),_=i[a[o]]+i[l[o]]-c,x=f===p-1||_<m?_:m,b=v[l[o]]=u(x-2*n,0);v[a[s]]=i[a[s]]+h(n,y/2),v[a[o]]=c+h(n,b/2),c+=x,g.setLayout(v,!0)}i[a[s]]+=d,i[l[s]]-=d}function M(e,t,i,n,r){var o,s=(t||{}).node,l=[n,r];if(!s||s===i)return l;var c=n*r,u=c*e.option.zoomToNodeRatio;while(o=s.parentNode){for(var h=0,d=o.children,f=0,g=d.length;f<g;f++)h+=d[f].getValue();var v=s.getValue();if(0===v)return l;u*=h/v;var m=o.getModel(),y=m.get(p),_=Math.max(y,I(m,y));u+=4*y*y+(3*y+_)*Math.pow(u,.5),u>a&&(u=a),s=o}u<c&&(u=c);var x=Math.pow(u/c,.5);return[n*x,r*x]}function k(e,t,i){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!i)return n;var r=i.node,o=r.getLayout();if(!o)return n;var s=[o.width/2,o.height/2],a=r;while(a){var l=a.getLayout();s[0]+=l.x,s[1]+=l.y,a=a.parentNode}return{x:e.width/2-s[0],y:e.height/2-s[1]}}function T(e,t,i,n,o){var s=e.getLayout(),a=i[o],l=a&&a===e;if(!(a&&!l||o===i.length&&e!==n)){e.setLayout({isInView:!0,invisible:!l&&!t.intersect(s),isAboveViewRoot:l},!0);var c=new r(t.x-s.x,t.y-s.y,t.width,t.height);f(e.viewChildren||[],(function(e){T(e,c,i,n,o+1)}))}}function I(e){return e.get(v)?e.get(m):0}e.exports=y},3109:function(e,t,i){var n=i(71576),r=i(56607),o=i(95289),s=o.isArray,a="itemStyle",l={seriesType:"treemap",reset:function(e,t,i,n){var r=e.getData().tree,o=r.root;o.isRemoved()||c(o,{},e.getViewRoot().getAncestors(),e)}};function c(e,t,i,n){var r=e.getModel(),s=e.getLayout();if(s&&!s.invisible&&s.isInView){var l,f=e.getModel(a),g=u(f,t,n),m=f.get("borderColor"),y=f.get("borderColorSaturation");null!=y&&(l=h(g,e),m=d(y,l)),e.setVisual("borderColor",m);var _=e.viewChildren;if(_&&_.length){var x=p(e,r,s,f,g,_);o.each(_,(function(e,t){if(e.depth>=i.length||e===i[e.depth]){var o=v(r,g,e,t,x,n);c(e,o,i,n)}}))}else l=h(g,e),e.setVisual("color",l)}}function u(e,t,i){var n=o.extend({},t),r=i.designatedVisualItemStyle;return o.each(["color","colorAlpha","colorSaturation"],(function(i){r[i]=t[i];var o=e.get(i);r[i]=null,null!=o&&(n[i]=o)})),n}function h(e){var t=f(e,"color");if(t){var i=f(e,"colorAlpha"),n=f(e,"colorSaturation");return n&&(t=r.modifyHSL(t,null,null,n)),i&&(t=r.modifyAlpha(t,i)),t}}function d(e,t){return null!=t?r.modifyHSL(t,null,null,e):null}function f(e,t){var i=e[t];if(null!=i&&"none"!==i)return i}function p(e,t,i,r,o,s){if(s&&s.length){var a=g(t,"color")||null!=o.color&&"none"!==o.color&&(g(t,"colorAlpha")||g(t,"colorSaturation"));if(a){var l=t.get("visualMin"),c=t.get("visualMax"),u=i.dataExtent.slice();null!=l&&l<u[0]&&(u[0]=l),null!=c&&c>u[1]&&(u[1]=c);var h=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==h&&"id"!==h?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new n(d);return f.__drColorMappingBy=h,f}}}function g(e,t){var i=e.get(t);return s(i)&&i.length?{name:t,range:i}:null}function v(e,t,i,n,r,s){var a=o.extend({},t);if(r){var l=r.type,c="color"===l&&r.__drColorMappingBy,u="index"===c?n:"id"===c?s.mapIdToIndex(i.getId()):i.getValue(e.get("visualDimension"));a[l]=r.mapValueToVisual(u)}return a}e.exports=l},87759:function(e,t,i){i(35866),i(23212)},49548:function(e,t,i){i(67384),i(83657)},76683:function(e,t,i){var n=i(89231),r=i(95289),o=i(47181),s=i(38363);i(7401),i(74067),i(25178),n.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!r.isArray(t)&&(e.axisPointer.link=[t])}})),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=o.collect(e,t)})),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},s)},7401:function(e,t,i){var n=i(89231),r=n.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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}}}),o=r;e.exports=o},74067:function(e,t,i){var n=i(89231),r=i(22921),o=n.extendComponentView({type:"axisPointer",render:function(e,t,i){var n=t.getComponent("tooltip"),o=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";r.register("axisPointer",i,(function(e,t,i){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&i({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){r.unregister(t.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(e,t){r.unregister("axisPointer",t),o.superApply(this._model,"dispose",arguments)}}),s=o;e.exports=s},42533:function(e,t,i){var n=i(95289),r=i(11724),o=i(76442),s=i(47181),a=i(88665),l=i(88336),c=i(63199),u=c.makeInner,h=u(),d=n.clone,f=n.bind;function p(){}function g(e,t,i,n){v(h(i).lastProp,n)||(h(i).lastProp=n,t?o.updateProps(i,n,e):(i.stopAnimation(),i.attr(n)))}function v(e,t){if(n.isObject(e)&&n.isObject(t)){var i=!0;return n.each(t,(function(t,n){i=i&&v(e[n],t)})),!!i}return e===t}function m(e,t){e[t.get("label.show")?"show":"hide"]()}function y(e){return{position:e.position.slice(),rotation:e.rotation||0}}function _(e,t,i){var n=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=r&&(e.zlevel=r),e.silent=i)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,i,r){var s=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,r||this._lastValue!==s||this._lastStatus!==a){this._lastValue=s,this._lastStatus=a;var l=this._group,c=this._handle;if(!a||"hide"===a)return l&&l.hide(),void(c&&c.hide());l&&l.show(),c&&c.show();var u={};this.makeElOption(u,s,e,t,i);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(e,t);if(l){var f=n.curry(g,t,d);this.updatePointerEl(l,u,f,t),this.updateLabelEl(l,u,f,t)}else l=this._group=new o.Group,this.createPointerEl(l,u,e,t),this.createLabelEl(l,u,e,t),i.getZr().add(l);_(l,t,!0),this._renderHandle(s)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var i=t.get("animation"),n=e.axis,r="category"===n.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var l=s.getAxisInfo(e).seriesDataCount,c=n.getExtent();return Math.abs(c[0]-c[1])/l>a}return!1}return!0===i},makeElOption:function(e,t,i,n,r){},createPointerEl:function(e,t,i,n){var r=t.pointer;if(r){var s=h(e).pointerEl=new o[r.type](d(t.pointer));e.add(s)}},createLabelEl:function(e,t,i,n){if(t.label){var r=h(e).labelEl=new o.Rect(d(t.label));e.add(r),m(r,n)}},updatePointerEl:function(e,t,i){var n=h(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var r=h(e).labelEl;r&&(r.setStyle(t.label.style),i(r,{shape:t.label.shape,position:t.label.position}),m(r,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,i=this._axisPointerModel,r=this._api.getZr(),s=this._handle,c=i.getModel("handle"),u=i.get("status");if(!c.get("show")||!u||"hide"===u)return s&&r.remove(s),void(this._handle=null);this._handle||(t=!0,s=this._handle=o.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){a.stop(e.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),r.add(s)),_(s,i,!1);var h=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];s.setStyle(c.getItemStyle(null,h));var d=c.get("size");n.isArray(d)||(d=[d,d]),s.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){g(this._axisPointerModel,!t&&this._moveAnimation,this._handle,y(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(y(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(y(n)),h(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}},p.prototype.constructor=p,r.enableClassExtend(p);var x=p;e.exports=x},25178:function(e,t,i){var n=i(42533),r=i(67419),o=i(30625),s=i(27963),a=n.extend({makeElOption:function(e,t,i,n,s){var a=i.axis,u=a.grid,h=n.get("type"),d=l(u,a).getOtherAxis(a).getGlobalExtent(),f=a.toGlobalCoord(a.dataToCoord(t,!0));if(h&&"none"!==h){var p=r.buildElStyle(n),g=c[h](a,f,d);g.style=p,e.graphicKey=g.type,e.pointer=g}var v=o.layout(u.model,i);r.buildCartesianSingleLabelElOption(t,e,v,i,n,s)},getHandleTransform:function(e,t,i){var n=o.layout(t.axis.grid.model,t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var r=i.axis,o=r.grid,s=r.getGlobalExtent(!0),a=l(o,r).getOtherAxis(r).getGlobalExtent(),c="x"===r.dim?0:1,u=e.position;u[c]+=t[c],u[c]=Math.min(s[1],u[c]),u[c]=Math.max(s[0],u[c]);var h=(a[1]+a[0])/2,d=[h,h];d[c]=u[c];var f=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:e.rotation,cursorPoint:d,tooltipOption:f[c]}}});function l(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}var c={line:function(e,t,i){var n=r.makeLineShape([t,i[0]],[t,i[1]],u(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,i){var n=Math.max(1,e.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([t-n/2,i[0]],[n,o],u(e))}}};function u(e){return"x"===e.dim?0:1}s.registerAxisPointerClass("CartesianAxisPointer",a);var h=a;e.exports=h},26012:function(e,t,i){var n=i(8595),r=i(42533),o=i(76442),s=i(67419),a=i(13388),l=i(11011),c=i(27963),u=r.extend({makeElOption:function(e,t,i,r,o){var a=i.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var l,c=a.polar,u=c.getOtherAxis(a),f=u.getExtent();l=a["dataTo"+n.capitalFirst(a.dim)](t);var p=r.get("type");if(p&&"none"!==p){var g=s.buildElStyle(r),v=d[p](a,c,l,f,g);v.style=g,e.graphicKey=v.type,e.pointer=v}var m=r.get("label.margin"),y=h(t,i,r,c,m);s.buildLabelElOption(e,i,r,o,y)}});function h(e,t,i,n,r){var s=t.axis,c=s.dataToCoord(e),u=n.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var h,d,f,p=n.getRadiusAxis().getExtent();if("radius"===s.dim){var g=a.create();a.rotate(g,g,u),a.translate(g,g,[n.cx,n.cy]),h=o.applyTransform([c,-r],g);var v=t.getModel("axisLabel").get("rotate")||0,m=l.innerTextLayout(u,v*Math.PI/180,-1);d=m.textAlign,f=m.textVerticalAlign}else{var y=p[1];h=n.coordToPoint([y+r,c]);var _=n.cx,x=n.cy;d=Math.abs(h[0]-_)/y<.3?"center":h[0]>_?"left":"right",f=Math.abs(h[1]-x)/y<.3?"middle":h[1]>x?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}var d={line:function(e,t,i,n,r){return"angle"===e.dim?{type:"Line",shape:s.makeLineShape(t.coordToPoint([n[0],i]),t.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:i}}},shadow:function(e,t,i,n,r){var o=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:s.makeSectorShape(t.cx,t.cy,n[0],n[1],(-i-o/2)*a,(o/2-i)*a)}:{type:"Sector",shape:s.makeSectorShape(t.cx,t.cy,i-o/2,i+o/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",u);var f=u;e.exports=f},86022:function(e,t,i){var n=i(42533),r=i(67419),o=i(71099),s=i(27963),a=["x","y"],l=["width","height"],c=n.extend({makeElOption:function(e,t,i,n,s){var a=i.axis,l=a.coordinateSystem,c=d(l,1-h(a)),f=l.dataToPoint(t)[0],p=n.get("type");if(p&&"none"!==p){var g=r.buildElStyle(n),v=u[p](a,f,c);v.style=g,e.graphicKey=v.type,e.pointer=v}var m=o.layout(i);r.buildCartesianSingleLabelElOption(t,e,m,i,n,s)},getHandleTransform:function(e,t,i){var n=o.layout(t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var r=i.axis,o=r.coordinateSystem,s=h(r),a=d(o,s),l=e.position;l[s]+=t[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var c=d(o,1-s),u=(c[1]+c[0])/2,f=[u,u];return f[s]=l[s],{position:l,rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(e,t,i){var n=r.makeLineShape([t,i[0]],[t,i[1]],h(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,i){var n=e.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([t-n/2,i[0]],[n,o],h(e))}}};function h(e){return e.isHorizontal()?0:1}function d(e,t){var i=e.getRect();return[i[a[t]],i[a[t]]+i[l[t]]]}s.registerAxisPointerClass("SingleAxisPointer",c);var f=c;e.exports=f},38363:function(e,t,i){var n=i(95289),r=i(63199),o=r.makeInner,s=i(47181),a=i(13390),l=n.each,c=n.curry,u=o();function h(e,t,i){var r=e.currTrigger,o=[e.x,e.y],s=e,u=e.dispatchAction||n.bind(i.dispatchAction,i),h=t.getComponent("axisPointer").coordSysAxesInfo;if(h){b(o)&&(o=a({seriesIndex:s.seriesIndex,dataIndex:s.dataIndex},t).point);var f=b(o),w=s.axesInfo,S=h.axesInfo,C="leave"===r||b(o),A={},M={},k={list:[],map:{}},T={showPointer:c(p,M),showTooltip:c(g,k)};l(h.coordSysMap,(function(e,t){var i=f||e.containPoint(o);l(h.coordSysAxesInfo[t],(function(e,t){var n=e.axis,r=_(w,e);if(!C&&i&&(!w||r)){var s=r&&r.value;null!=s||f||(s=n.pointToData(o)),null!=s&&d(e,s,T,!1,A)}}))}));var I={};return l(S,(function(e,t){var i=e.linkGroup;i&&!M[t]&&l(i.axesInfo,(function(t,n){var r=M[n];if(t!==e&&r){var o=r.value;i.mapper&&(o=e.axis.scale.parse(i.mapper(o,x(t),x(e)))),I[e.key]=o}}))})),l(I,(function(e,t){d(S[t],e,T,!0,A)})),v(M,S,A),m(k,o,e,u),y(S,u,i),A}}function d(e,t,i,r,o){var s=e.axis;if(!s.scale.isBlank()&&s.containData(t))if(e.involveSeries){var a=f(t,e),l=a.payloadBatch,c=a.snapToValue;l[0]&&null==o.seriesIndex&&n.extend(o,l[0]),!r&&e.snap&&s.containData(c)&&null!=c&&(t=c),i.showPointer(e,t,l,o),i.showTooltip(e,a,c)}else i.showPointer(e,t)}function f(e,t){var i=t.axis,n=i.dim,r=e,o=[],s=Number.MAX_VALUE,a=-1;return l(t.seriesModels,(function(t,c){var u,h,d=t.getData().mapDimension(n,!0);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,i);h=f.dataIndices,u=f.nestestValue}else{if(h=t.getData().indicesOfNearest(d[0],e,"category"===i.type?.5:null),!h.length)return;u=t.getData().get(d[0],h[0])}if(null!=u&&isFinite(u)){var p=e-u,g=Math.abs(p);g<=s&&((g<s||p>=0&&a<0)&&(s=g,a=p,r=u,o.length=0),l(h,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function p(e,t,i,n){e[t.key]={value:i,payloadBatch:n}}function g(e,t,i,n){var r=i.payloadBatch,o=t.axis,a=o.model,l=t.axisPointerModel;if(t.triggerTooltip&&r.length){var c=t.coordSys.model,u=s.makeKey(c),h=e.map[u];h||(h=e.map[u]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function v(e,t,i){var n=i.axesInfo=[];l(t,(function(t,i){var r=t.axisPointerModel.option,o=e[i];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function m(e,t,i,n){if(!b(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else n({type:"hideTip"})}function y(e,t,i){var r=i.getZr(),o="axisPointerLastHighlights",s=u(r)[o]||{},a=u(r)[o]={};l(e,(function(e,t){var i=e.axisPointerModel.option;"show"===i.status&&l(i.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var c=[],h=[];n.each(s,(function(e,t){!a[t]&&h.push(e)})),n.each(a,(function(e,t){!s[t]&&c.push(e)})),h.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),c.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}function _(e,t){for(var i=0;i<(e||[]).length;i++){var n=e[i];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function x(e){var t=e.axis.model,i={},n=i.axisDim=e.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=t.componentIndex,i.axisName=i[n+"AxisName"]=t.name,i.axisId=i[n+"AxisId"]=t.id,i}function b(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=h},13390:function(e,t,i){var n=i(95289),r=i(63199);function o(e,t){var i,o=[],s=e.seriesIndex;if(null==s||!(i=t.getSeriesByIndex(s)))return{point:[]};var a=i.getData(),l=r.queryDataIndex(a,e);if(null==l||l<0||n.isArray(l))return{point:[]};var c=a.getItemGraphicEl(l),u=i.coordinateSystem;if(i.getTooltipPosition)o=i.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)o=u.dataToPoint(a.getValues(n.map(u.dimensions,(function(e){return a.mapDimension(e)})),l,!0))||[];else if(c){var h=c.getBoundingRect().clone();h.applyTransform(c.transform),o=[h.x+h.width/2,h.y+h.height/2]}return{point:o,el:c}}e.exports=o},22921:function(e,t,i){var n=i(95289),r=i(87190),o=i(63199),s=o.makeInner,a=s(),l=n.each;function c(e,t,i){if(!r.node){var n=t.getZr();a(n).records||(a(n).records={}),u(n,t);var o=a(n).records[e]||(a(n).records[e]={});o.handler=i}}function u(e,t){function i(i,n){e.on(i,(function(i){var r=p(t);l(a(e).records,(function(e){e&&n(e,i,r.dispatchAction)})),h(r.pendings,t)}))}a(e).initialized||(a(e).initialized=!0,i("click",n.curry(f,"click")),i("mousemove",n.curry(f,"mousemove")),i("globalout",d))}function h(e,t){var i,n=e.showTip.length,r=e.hideTip.length;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function d(e,t,i){e.handler("leave",null,i)}function f(e,t,i,n){t.handler(e,i,n)}function p(e){var t={showTip:[],hideTip:[]},i=function(n){var r=t[n.type];r?r.push(n):(n.dispatchAction=i,e.dispatchAction(n))};return{dispatchAction:i,pendings:t}}function g(e,t){if(!r.node){var i=t.getZr(),n=(a(i).records||{})[e];n&&(a(i).records[e]=null)}}t.register=c,t.unregister=g},47181:function(e,t,i){var n=i(95289),r=i(40590),o=n.each,s=n.curry;function a(e,t){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(i,e,t),i.seriesInvolved&&u(i,e),i}function l(e,t,i){var n=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),a=r.get("link",!0)||[],l=[];o(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var u=m(i.model),d=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=i;var f=i.model,p=f.getModel("tooltip",n);if(o(i.getAxes(),s(x,!1,null)),i.getTooltipAxes&&n&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),_=i.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&o(_.baseAxes,s(x,!y||"cross",g)),y&&o(_.otherAxes,s(x,"cross",!1))}}function x(n,o,s){var u=s.model.getModel("axisPointer",r),f=u.get("show");if(f&&("auto"!==f||n||v(u))){null==o&&(o=u.get("triggerTooltip")),u=n?c(s,p,r,t,n,o):u;var g=u.get("snap"),y=m(s.model),_=o||g||"category"===s.type,x=e.axesInfo[y]={key:y,axis:s,coordSys:i,axisPointerModel:u,triggerTooltip:o,involveSeries:_,snap:g,useHandle:v(u),seriesModels:[]};d[y]=x,e.seriesInvolved|=_;var b=h(a,s);if(null!=b){var w=l[b]||(l[b]={axesInfo:{}});w.axesInfo[y]=x,w.mapper=a[b].mapper,x.linkGroup=w}}}}))}function c(e,t,i,s,a,l){var c=t.getModel("axisPointer"),u={};o(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){u[e]=n.clone(c.get(e))})),u.snap="category"!==e.type&&!!l,"cross"===c.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===a){var d=c.get("label.show");if(h.show=null==d||d,!l){var f=u.lineStyle=c.get("crossStyle");f&&n.defaults(h,f.textStyle)}}return e.model.getModel("axisPointer",new r(u,i,s))}function u(e,t){t.eachSeries((function(t){var i=t.coordinateSystem,n=t.get("tooltip.trigger",!0),r=t.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==t.get("axisPointer.show",!0)&&o(e.coordSysAxesInfo[m(i.model)],(function(e){var n=e.axis;i.getAxis(n.dim)===n&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}function h(e,t){for(var i=t.model,n=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(d(o[n+"AxisId"],i.id)||d(o[n+"AxisIndex"],i.componentIndex)||d(o[n+"AxisName"],i.name))return r}}function d(e,t){return"all"===e||n.isArray(e)&&n.indexOf(e,t)>=0||e===t}function f(e){var t=p(e);if(t){var i=t.axisPointerModel,n=t.axis.scale,r=i.option,o=i.get("status"),s=i.get("value");null!=s&&(s=n.parse(s));var a=v(i);null==o&&(r.status=a?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==s||s>l[1])&&(s=l[1]),s<l[0]&&(s=l[0]),r.value=s,a&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function p(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[m(e)]}function g(e){var t=p(e);return t&&t.axisPointerModel}function v(e){return!!e.get("handle.show")}function m(e){return e.type+"||"+e.id}t.collect=a,t.fixValue=f,t.getAxisInfo=p,t.getAxisPointerModel=g,t.makeKey=m},67419:function(e,t,i){var n=i(95289),r=i(76442),o=i(43407),s=i(8595),a=i(13388),l=i(8426),c=i(11011);function u(e){var t,i=e.get("type"),n=e.getModel(i+"Style");return"line"===i?(t=n.getLineStyle(),t.fill=null):"shadow"===i&&(t=n.getAreaStyle(),t.stroke=null),t}function h(e,t,i,n,r){var a=i.get("value"),l=f(a,t.axis,t.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),c=i.getModel("label"),u=s.normalizeCssArray(c.get("padding")||0),h=c.getFont(),p=o.getBoundingRect(l,h),g=r.position,v=p.width+u[1]+u[3],m=p.height+u[0]+u[2],y=r.align;"right"===y&&(g[0]-=v),"center"===y&&(g[0]-=v/2);var _=r.verticalAlign;"bottom"===_&&(g[1]-=m),"middle"===_&&(g[1]-=m/2),d(g,v,m,n);var x=c.get("backgroundColor");x&&"auto"!==x||(x=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:v,height:m,r:c.get("borderRadius")},position:g.slice(),style:{text:l,textFont:h,textFill:c.getTextColor(),textPosition:"inside",textPadding:u,fill:x,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}}function d(e,t,i,n){var r=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+i,o)-i,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function f(e,t,i,r,o){e=t.scale.parse(e);var s=t.scale.getLabel(e,{precision:o.precision}),a=o.formatter;if(a){var c={value:l.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};n.each(r,(function(e){var t=i.getSeriesByIndex(e.seriesIndex),n=e.dataIndexInside,r=t&&t.getDataParams(n);r&&c.seriesData.push(r)})),n.isString(a)?s=a.replace("{value}",s):n.isFunction(a)&&(s=a(c))}return s}function p(e,t,i){var n=a.create();return a.rotate(n,n,i.rotation),a.translate(n,n,i.position),r.applyTransform([e.dataToCoord(t),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function g(e,t,i,n,r,o){var s=c.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get("label.margin"),h(t,n,r,o,{position:p(n.axis,e,i),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function v(e,t,i){return i=i||0,{x1:e[i],y1:e[1-i],x2:t[i],y2:t[1-i]}}function m(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}function y(e,t,i,n,r,o){return{cx:e,cy:t,r0:i,r:n,startAngle:r,endAngle:o,clockwise:!0}}t.buildElStyle=u,t.buildLabelElOption=h,t.getValueLabel=f,t.getTransformedPosition=p,t.buildCartesianSingleLabelElOption=g,t.makeLineShape=v,t.makeRectShape=m,t.makeSectorShape=y},23212:function(e,t,i){var n=i(95289),r=i(76442),o=i(40590),s=i(27963),a=i(11011),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function c(e,t,i){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],i]),r=e.coordToPoint([t[1],i]);return{x1:n[0],y1:n[1],x2:r[0],y2:r[1]}}function u(e){var t=e.getRadiusAxis();return t.inverse?0:1}function h(e){var t=e[0],i=e[e.length-1];t&&i&&Math.abs(Math.abs(t.coord-i.coord)-360)<1e-4&&e.pop()}var d=s.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,o=r.getRadiusAxis().getExtent(),s=i.getTicksCoords(),a=i.getMinorTicksCoords(),c=n.map(i.getViewLabels(),(function(e){e=n.clone(e);return e.coord=i.dataToCoord(e.tickValue),e}));h(c),h(s),n.each(l,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,s,a,o,c)}),this)}},_axisLine:function(e,t,i,n,o){var s,a=e.getModel("axisLine.lineStyle"),l=u(t),c=l?0:1;s=0===o[c]?new r.Circle({shape:{cx:t.cx,cy:t.cy,r:o[l]},style:a.getLineStyle(),z2:1,silent:!0}):new r.Ring({shape:{cx:t.cx,cy:t.cy,r:o[l],r0:o[c]},style:a.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,this.group.add(s)},_axisTick:function(e,t,i,o,s){var a=e.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),h=s[u(t)],d=n.map(i,(function(e){return new r.Line({shape:c(t,[h,h+l],e.coord)})}));this.group.add(r.mergePath(d,{style:n.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,i,o,s){if(o.length){for(var a=e.getModel("axisTick"),l=e.getModel("minorTick"),h=(a.get("inside")?-1:1)*l.get("length"),d=s[u(t)],f=[],p=0;p<o.length;p++)for(var g=0;g<o[p].length;g++)f.push(new r.Line({shape:c(t,[d,d+h],o[p][g].coord)}));this.group.add(r.mergePath(f,{style:n.defaults(l.getModel("lineStyle").getLineStyle(),n.defaults(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(e,t,i,s,l,c){var h=e.getCategories(!0),d=e.getModel("axisLabel"),f=d.get("margin"),p=e.get("triggerEvent");n.each(c,(function(i,n){var s=d,c=i.tickValue,g=l[u(t)],v=t.coordToPoint([g+f,i.coord]),m=t.cx,y=t.cy,_=Math.abs(v[0]-m)/g<.3?"center":v[0]>m?"left":"right",x=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";h&&h[c]&&h[c].textStyle&&(s=new o(h[c].textStyle,d,d.ecModel));var b=new r.Text({silent:a.isLabelSilent(e)});this.group.add(b),r.setTextStyle(b.style,s,{x:v[0],y:v[1],textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:_,textVerticalAlign:x}),p&&(b.eventData=a.makeAxisEventDataBase(e),b.eventData.targetType="axisLabel",b.eventData.value=i.rawLabel)}),this)},_splitLine:function(e,t,i,o,s){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var d=[],f=0;f<i.length;f++){var p=h++%u.length;d[p]=d[p]||[],d[p].push(new r.Line({shape:c(t,s,i[f].coord)}))}for(f=0;f<d.length;f++)this.group.add(r.mergePath(d[f],{style:n.defaults({stroke:u[f%u.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,i,n,o){if(n.length){for(var s=e.getModel("minorSplitLine"),a=s.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var h=0;h<n[u].length;h++)l.push(new r.Line({shape:c(t,o,n[u][h].coord)}));this.group.add(r.mergePath(l,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,i,o,s){if(i.length){var a=e.getModel("splitArea"),l=a.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=Math.PI/180,f=-i[0].coord*d,p=Math.min(s[0],s[1]),g=Math.max(s[0],s[1]),v=e.get("clockwise"),m=1;m<i.length;m++){var y=u++%c.length;h[y]=h[y]||[],h[y].push(new r.Sector({shape:{cx:t.cx,cy:t.cy,r0:p,r:g,startAngle:f,endAngle:-i[m].coord*d,clockwise:v},silent:!0})),f=-i[m].coord*d}for(m=0;m<h.length;m++)this.group.add(r.mergePath(h[m],{style:n.defaults({fill:c[m%c.length]},l.getAreaStyle()),silent:!0}))}}});e.exports=d},11011:function(e,t,i){var n=i(95289),r=n.retrieve,o=n.defaults,s=n.extend,a=n.each,l=i(8595),c=i(76442),u=i(40590),h=i(44261),d=h.isRadianAroundZero,f=h.remRadian,p=i(22864),g=p.createSymbol,v=i(13388),m=i(31138),y=m.applyTransform,_=i(8426),x=_.shouldShowAllLabels,b=Math.PI,w=function(e,t){this.opt=t,this.axisModel=e,o(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var i=new c.Group({position:t.position.slice(),rotation:t.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};w.prototype={constructor:w,hasBuilder:function(e){return!!S[e]},add:function(e){S[e].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,r=[i[0],0],o=[i[1],0];n&&(y(r,r,n),y(o,o,n));var l=s({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var u=t.get("axisLine.symbol"),h=t.get("axisLine.symbolSize"),d=t.get("axisLine.symbolOffset")||0;if("number"===typeof d&&(d=[d,d]),null!=u){"string"===typeof u&&(u=[u,u]),"string"!==typeof h&&"number"!==typeof h||(h=[h,h]);var f=h[0],p=h[1];a([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[1]))}],(function(t,i){if("none"!==u[i]&&null!=u[i]){var n=g(u[i],-f/2,-p/2,f,p,l.stroke,!0),o=t.r+t.offset,s=[r[0]+o*Math.cos(e.rotation),r[1]-o*Math.sin(e.rotation)];n.attr({rotation:t.rotate,position:s,silent:!0,z2:11}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,i=O(this,e,t),n=R(this,e,t);T(e,n,i),P(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,i=r(e.axisName,t.get("name"));if(i){var n,o,a=t.get("nameLocation"),u=e.nameDirection,h=t.getModel("nameTextStyle"),d=t.get("nameGap")||0,f=this.axisModel.axis.getExtent(),p=f[0]>f[1]?-1:1,g=["start"===a?f[0]-p*d:"end"===a?f[1]+p*d:(f[0]+f[1])/2,E(a)?e.labelOffset+u*d:0],v=t.get("nameRotate");null!=v&&(v=v*b/180),E(a)?n=A(e.rotation,null!=v?v:e.rotation,u):(n=M(e,a,v||0,f),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(n.rotation)),!isFinite(o)&&(o=null)));var m=h.getFont(),y=t.get("nameTruncate",!0)||{},_=y.ellipsis,x=r(e.nameTruncateMaxWidth,y.maxWidth,o),w=null!=_&&null!=x?l.truncateText(i,x,m,_,{minChar:2,placeholder:y.placeholder}):i,S=t.get("tooltip",!0),T=t.mainType,I={componentType:T,name:i,$vars:["name"]};I[T+"Index"]=t.componentIndex;var L=new c.Text({anid:"name",__fullText:i,__truncatedText:w,position:g,rotation:n.rotation,silent:k(t),z2:1,tooltip:S&&S.show?s({content:i,formatter:function(){return i},formatterParams:I},S):null});c.setTextStyle(L.style,h,{text:w,textFont:m,textFill:h.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:h.get("align")||n.textAlign,textVerticalAlign:h.get("verticalAlign")||n.textVerticalAlign}),t.get("triggerEvent")&&(L.eventData=C(t),L.eventData.targetType="axisName",L.eventData.name=i),this._dumbGroup.add(L),L.updateTransform(),this.group.add(L),L.decomposeTransform()}}},C=w.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},A=w.innerTextLayout=function(e,t,i){var n,r,o=f(t-e);return d(o)?(r=i>0?"top":"bottom",n="center"):d(o-b)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&o<b?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}};function M(e,t,i,n){var r,o,s=f(i-e.rotation),a=n[0]>n[1],l="start"===t&&!a||"start"!==t&&a;return d(s-b/2)?(o=l?"bottom":"top",r="center"):d(s-1.5*b)?(o=l?"top":"bottom",r="center"):(o="middle",r=s<1.5*b&&s>b/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:r,textVerticalAlign:o}}var k=w.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function T(e,t,i){if(!x(e.axis)){var n=e.get("axisLabel.showMinLabel"),r=e.get("axisLabel.showMaxLabel");t=t||[],i=i||[];var o=t[0],s=t[1],a=t[t.length-1],l=t[t.length-2],c=i[0],u=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(I(o),I(c)):L(o,s)&&(n?(I(s),I(u)):(I(o),I(c))),!1===r?(I(a),I(h)):L(l,a)&&(r?(I(l),I(d)):(I(a),I(h)))}}function I(e){e&&(e.ignore=!0)}function L(e,t,i){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var o=v.identity([]);return v.rotate(o,o,-e.rotation),n.applyTransform(v.mul([],o,e.getLocalTransform())),r.applyTransform(v.mul([],o,t.getLocalTransform())),n.intersect(r)}}function E(e){return"middle"===e||"center"===e}function D(e,t,i,n,r){for(var o=[],s=[],a=[],l=0;l<e.length;l++){var u=e[l].coord;s[0]=u,s[1]=0,a[0]=u,a[1]=i,t&&(y(s,s,t),y(a,a,t));var h=new c.Line({anid:r+"_"+e[l].tickValue,subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:a[0],y2:a[1]},style:n,z2:2,silent:!0});o.push(h)}return o}function O(e,t,i){var n=t.axis,r=t.getModel("axisTick");if(r.get("show")&&!n.scale.isBlank()){for(var s=r.getModel("lineStyle"),a=i.tickDirection*r.get("length"),l=n.getTicksCoords(),c=D(l,e._transform,a,o(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),u=0;u<c.length;u++)e.group.add(c[u]);return c}}function P(e,t,i){var n=t.axis,r=t.getModel("minorTick");if(r.get("show")&&!n.scale.isBlank()){var s=n.getMinorTicksCoords();if(s.length)for(var a=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),c=o(a.getLineStyle(),o(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),u=0;u<s.length;u++)for(var h=D(s[u],e._transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)e.group.add(h[d])}}function R(e,t,i){var n=t.axis,o=r(i.axisLabelShow,t.get("axisLabel.show"));if(o&&!n.scale.isBlank()){var s=t.getModel("axisLabel"),l=s.get("margin"),h=n.getViewLabels(),d=(r(i.labelRotate,s.get("rotate"))||0)*b/180,f=A(i.rotation,d,i.labelDirection),p=t.getCategories&&t.getCategories(!0),g=[],v=k(t),m=t.get("triggerEvent");return a(h,(function(r,o){var a=r.tickValue,h=r.formattedLabel,d=r.rawLabel,y=s;p&&p[a]&&p[a].textStyle&&(y=new u(p[a].textStyle,s,t.ecModel));var _=y.getTextColor()||t.get("axisLine.lineStyle.color"),x=n.dataToCoord(a),b=[x,i.labelOffset+i.labelDirection*l],w=new c.Text({anid:"label_"+a,position:b,rotation:f.rotation,silent:v,z2:10});c.setTextStyle(w.style,y,{text:h,textAlign:y.getShallow("align",!0)||f.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||f.textVerticalAlign,textFill:"function"===typeof _?_("category"===n.type?d:"value"===n.type?a+"":a,o):_}),m&&(w.eventData=C(t),w.eventData.targetType="axisLabel",w.eventData.value=d),e._dumbGroup.add(w),w.updateTransform(),g.push(w),e.group.add(w),w.decomposeTransform()})),g}}var B=w;e.exports=B},27963:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(47181),s=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,i,n){this.axisPointerClass&&o.fixValue(e),s.superApply(this,"render",arguments),a(this,e,t,i,n,!0)},updateAxisPointer:function(e,t,i,n,r){a(this,e,t,i,n,!1)},remove:function(e,t){var i=this._axisPointer;i&&i.remove(t),s.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),s.superApply(this,"dispose",arguments)}});function a(e,t,i,n,r,a){var c=s.getAxisPointerClass(e.axisPointerClass);if(c){var u=o.getAxisPointerModel(t);u?(e._axisPointer||(e._axisPointer=new c)).render(t,u,n,a):l(e,n)}}function l(e,t,i){var n=e._axisPointer;n&&n.dispose(t,i),e._axisPointer=null}var c=[];s.registerAxisPointerClass=function(e,t){c[e]=t},s.getAxisPointerClass=function(e){return e&&c[e]};var u=s;e.exports=u},83657:function(e,t,i){var n=i(95289),r=i(76442),o=i(11011),s=i(27963),a=i(30625),l=i(20168),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine","minorSplitLine"],f=s.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,i,s){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),e.get("show")){var c=e.getCoordSysModel(),u=a.layout(c,e),p=new o(e,u);n.each(h,p.add,p),this._axisGroup.add(p.getGroup()),n.each(d,(function(t){e.get(t+".show")&&this["_"+t](e,c)}),this),r.groupTransition(l,this._axisGroup,e),f.superCall(this,"render",e,t,i,s)}},remove:function(){u(this)},_splitLine:function(e,t){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),a=s.get("color");a=n.isArray(a)?a:[a];for(var l=t.coordinateSystem.getRect(),c=i.isHorizontal(),u=0,h=i.getTicksCoords({tickModel:o}),d=[],f=[],p=s.getLineStyle(),g=0;g<h.length;g++){var v=i.toGlobalCoord(h[g].coord);c?(d[0]=v,d[1]=l.y,f[0]=v,f[1]=l.y+l.height):(d[0]=l.x,d[1]=v,f[0]=l.x+l.width,f[1]=v);var m=u++%a.length,y=h[g].tickValue;this._axisGroup.add(new r.Line({anid:null!=y?"line_"+h[g].tickValue:null,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:n.defaults({stroke:a[m]},p),silent:!0}))}}},_minorSplitLine:function(e,t){var i=e.axis,n=e.getModel("minorSplitLine"),o=n.getModel("lineStyle"),s=t.coordinateSystem.getRect(),a=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var c=[],u=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var f=0;f<l[d].length;f++){var p=i.toGlobalCoord(l[d][f].coord);a?(c[0]=p,c[1]=s.y,u[0]=p,u[1]=s.y+s.height):(c[0]=s.x,c[1]=p,u[0]=s.x+s.width,u[1]=p),this._axisGroup.add(new r.Line({anid:"minor_line_"+l[d][f].tickValue,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},_splitArea:function(e,t){c(this,this._axisGroup,e,t)}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},93296:function(e,t,i){var n=i(89231),r=i(95289),o=i(11011),s=i(33478),a=i(54266),l=i(76442),c=["axisLine","axisTickLabel","axisName"],u=n.extendComponentView({type:"parallelAxis",init:function(e,t){u.superApply(this,"init",arguments),(this._brushController=new s(t.getZr())).on("brush",r.bind(this._onBrush,this))},render:function(e,t,i,n){if(!h(e,t,n)){this.axisModel=e,this.api=i,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var a=f(e,t),u=a.coordinateSystem,d=e.getAreaSelectStyle(),p=d.width,g=e.axis.dim,v=u.getAxisLayout(g),m=r.extend({strokeContainThreshold:p},v),y=new o(e,m);r.each(c,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(m,d,e,a,p,i);var _=n&&!1===n.animation?null:e;l.groupTransition(s,this._axisGroup,_)}}},_refreshBrushController:function(e,t,i,n,r,o){var s=i.axis.getExtent(),c=s[1]-s[0],u=Math.min(30,.1*Math.abs(c)),h=l.BoundingRect.create({x:s[0],y:-r/2,width:c,height:r});h.x-=u,h.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:a.makeRectPanelClipPath(h),isTargetByCursor:a.makeRectIsTargetByCursor(h,o,n),getLinearBrushOtherExtent:a.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(d(i))},_onBrush:function(e,t){var i=this.axisModel,n=i.axis,o=r.map(e,(function(e){return[n.coordToData(e.range[0],!0),n.coordToData(e.range[1],!0)]}));(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},dispose:function(){this._brushController.dispose()}});function h(e,t,i){return i&&"axisAreaSelect"===i.type&&t.findComponents({mainType:"parallelAxis",query:i})[0]===e}function d(e){var t=e.axis;return r.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function f(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var p=u;e.exports=p},11681:function(e,t,i){var n=i(95289),r=i(76442),o=i(11011),s=i(27963),a=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],c=s.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,s=r.getAngleAxis(),c=i.getTicksCoords(),h=i.getMinorTicksCoords(),d=s.getExtent()[0],f=i.getExtent(),p=u(r,e,d),g=new o(e,p);n.each(a,g.add,g),this.group.add(g.getGroup()),n.each(l,(function(t){e.get(t+".show")&&!i.scale.isBlank()&&this["_"+t](e,r,d,f,c,h)}),this)}},_splitLine:function(e,t,i,o,s){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d<s.length;d++){var f=u++%c.length;h[f]=h[f]||[],h[f].push(new r.Circle({shape:{cx:t.cx,cy:t.cy,r:s[d].coord}}))}for(d=0;d<h.length;d++)this.group.add(r.mergePath(h[d],{style:n.defaults({stroke:c[d%c.length],fill:null},l.getLineStyle()),silent:!0}))},_minorSplitLine:function(e,t,i,o,s,a){if(a.length){for(var l=e.getModel("minorSplitLine"),c=l.getModel("lineStyle"),u=[],h=0;h<a.length;h++)for(var d=0;d<a[h].length;d++)u.push(new r.Circle({shape:{cx:t.cx,cy:t.cy,r:a[h][d].coord}}));this.group.add(r.mergePath(u,{style:n.defaults({fill:null},c.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,i,o,s){if(s.length){var a=e.getModel("splitArea"),l=a.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=s[0].coord,f=1;f<s.length;f++){var p=u++%c.length;h[p]=h[p]||[],h[p].push(new r.Sector({shape:{cx:t.cx,cy:t.cy,r0:d,r:s[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=s[f].coord}for(f=0;f<h.length;f++)this.group.add(r.mergePath(h[f],{style:n.defaults({fill:c[f%c.length]},l.getAreaStyle()),silent:!0}))}}});function u(e,t,i){return{position:[e.cx,e.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}e.exports=c},26007:function(e,t,i){var n=i(95289),r=i(11011),o=i(76442),s=i(71099),a=i(27963),l=i(20168),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine"],f=a.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,i,a){var l=this.group;l.removeAll();var c=this._axisGroup;this._axisGroup=new o.Group;var u=s.layout(e),p=new r(e,u);n.each(h,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),n.each(d,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),o.groupTransition(c,this._axisGroup,e),f.superCall(this,"render",e,t,i,a)},remove:function(){u(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var i=e.getModel("splitLine"),n=i.getModel("lineStyle"),r=n.get("width"),s=n.get("color");s=s instanceof Array?s:[s];for(var a=e.coordinateSystem.getRect(),l=t.isHorizontal(),c=[],u=0,h=t.getTicksCoords({tickModel:i}),d=[],f=[],p=0;p<h.length;++p){var g=t.toGlobalCoord(h[p].coord);l?(d[0]=g,d[1]=a.y,f[0]=g,f[1]=a.y+a.height):(d[0]=a.x,d[1]=g,f[0]=a.x+a.width,f[1]=g);var v=u++%s.length;c[v]=c[v]||[],c[v].push(new o.Line({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:{lineWidth:r},silent:!0}))}for(p=0;p<c.length;++p)this.group.add(o.mergePath(c[p],{style:{stroke:s[p%s.length],lineDash:n.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(e){c(this,this._axisGroup,e,e)}}),p=f;e.exports=p},20168:function(e,t,i){var n=i(95289),r=i(76442);function o(e,t,i,o){var s=i.axis;if(!s.scale.isBlank()){var a=i.getModel("splitArea"),l=a.getModel("areaStyle"),c=l.get("color"),u=o.coordinateSystem.getRect(),h=s.getTicksCoords({tickModel:a,clamp:!0});if(h.length){var d=c.length,f=e.__splitAreaColors,p=n.createHashMap(),g=0;if(f)for(var v=0;v<h.length;v++){var m=f.get(h[v].tickValue);if(null!=m){g=(m+(d-1)*v)%d;break}}var y=s.toGlobalCoord(h[0].coord),_=l.getAreaStyle();c=n.isArray(c)?c:[c];for(v=1;v<h.length;v++){var x,b,w,S,C=s.toGlobalCoord(h[v].coord);s.isHorizontal()?(x=y,b=u.y,w=C-x,S=u.height,y=x+w):(x=u.x,b=y,w=u.width,S=C-b,y=b+S);var A=h[v-1].tickValue;null!=A&&p.set(A,g),t.add(new r.Rect({anid:null!=A?"area_"+A:null,shape:{x:x,y:b,width:w,height:S},style:n.defaults({fill:c[g]},_),silent:!0})),g=(g+1)%d}e.__splitAreaColors=p}}}function s(e){e.__splitAreaColors=null}t.rectCoordAxisBuildSplitArea=o,t.rectCoordAxisHandleRemove=s},49007:function(e,t,i){var n=i(89231),r={type:"axisAreaSelect",event:"axisAreaSelected"};n.registerAction(r,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),n.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))},98733:function(e,t,i){var n=i(89231),r=i(72603);i(48989),i(23909),i(31063),i(85084),i(81496),n.registerPreprocessor(r)},23909:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(63479),a=i(40590),l=["#ddd"],c=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var i=this.option;!t&&s.replaceVisualOption(i,e,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:l},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(e){e&&(this.areas=o.map(e,(function(e){return u(this.option,e)}),this))},setBrushOption:function(e){this.brushOption=u(this.option,e),this.brushType=this.brushOption.brushType}});function u(e,t){return o.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new a(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var h=c;e.exports=h},31063:function(e,t,i){var n=i(89231),r=i(95289),o=i(33478),s=i(48989),a=s.layoutCovers,l=n.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new o(t.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,c.apply(this,arguments)},updateTransform:function(e,t){return a(t),c.apply(this,arguments)},updateView:c,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:r.clone(e),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:r.clone(e),$from:i})}});function c(e,t,i,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=l},85084:function(e,t,i){var n=i(89231);n.registerAction({type:"brush",event:"brush"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},72603:function(e,t,i){var n=i(95289),r=["rect","polygon","keep","clear"];function o(e,t){var i=e&&e.brush;if(n.isArray(i)||(i=i?[i]:[]),i.length){var o=[];n.each(i,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(o=o.concat(t))}));var a=e&&e.toolbox;n.isArray(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var l=a.feature||(a.feature={}),c=l.brush||(l.brush={}),u=c.type||(c.type=[]);u.push.apply(u,o),s(u),t&&!u.length&&u.push.apply(u,r)}}function s(e){var t={};n.each(e,(function(e){t[e]=1})),e.length=0,n.each(t,(function(t,i){e.push(i)}))}e.exports=o},99033:function(e,t,i){var n=i(91068),r=i(39587),o=i(76442),s=o.linePolygonIntersect,a={lineX:l(0),lineY:l(1),rect:{point:function(e,t,i){return e&&i.boundingRect.contain(e[0],e[1])},rect:function(e,t,i){return e&&i.boundingRect.intersect(e)}},polygon:{point:function(e,t,i){return e&&i.boundingRect.contain(e[0],e[1])&&n.contain(i.range,e[0],e[1])},rect:function(e,t,i){var o=i.range;if(!e||o.length<=1)return!1;var a=e.x,l=e.y,c=e.width,u=e.height,h=o[0];return!!(n.contain(o,a,l)||n.contain(o,a+c,l)||n.contain(o,a,l+u)||n.contain(o,a+c,l+u)||r.create(e).contain(h[0],h[1])||s(a,l,a+c,l,o)||s(a,l,a,l+u,o)||s(a+c,l,a+c,l+u,o)||s(a,l+u,a+c,l+u,o))||void 0}}};function l(e){var t=["x","y"],i=["width","height"];return{point:function(t,i,n){if(t){var r=n.range,o=t[e];return c(o,r)}},rect:function(n,r,o){if(n){var s=o.range,a=[n[t[e]],n[t[e]]+n[i[e]]];return a[1]<a[0]&&a.reverse(),c(a[0],s)||c(a[1],s)||c(s[0],a)||c(s[1],a)}}}}function c(e,t){return t[0]<=e&&e<=t[1]}var u=a;e.exports=u},48989:function(e,t,i){var n=i(89231),r=i(95289),o=i(39587),s=i(63479),a=i(99033),l=i(88336),c=i(74080),u=["inBrush","outOfBrush"],h="__ecBrushSelect",d="__ecInBrushSelectEvent",f=n.PRIORITY.VISUAL.BRUSH;function p(e){e.eachComponent({mainType:"brush"},(function(t){var i=t.brushTargetManager=new c(t.option,e);i.setInputRanges(t.areas,e)}))}function g(e,t,i,n,r){if(r){var o=e.getZr();if(!o[d]){o[h]||(o[h]=v);var s=l.createOrUpdate(o,h,i,t);s(e,n)}}}function v(e,t){if(!e.isDisposed()){var i=e.getZr();i[d]=!0,e.dispatchAction({type:"brushSelect",batch:t}),i[d]=!1}}function m(e,t,i,n){for(var r=0,o=t.length;r<o;r++){var s=t[r];if(e[s.brushType](n,i,s.selectors,s))return!0}}function y(e){var t=e.brushSelector;if(r.isString(t)){var i=[];return r.each(a,(function(e,n){i[n]=function(i,n,r,o){var s=n.getItemLayout(i);return e[t](s,r,o)}})),i}if(r.isFunction(t)){var n={};return r.each(a,(function(e,i){n[i]=t})),n}return t}function _(e,t){var i=e.option.seriesIndex;return null!=i&&"all"!==i&&(r.isArray(i)?r.indexOf(i,t)<0:t!==i)}function x(e){var t=e.selectors={};return r.each(a[e.brushType],(function(i,n){t[n]=function(n){return i(n,t,e)}})),e}n.registerLayout(f,(function(e,t,i){e.eachComponent({mainType:"brush"},(function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1})})),p(e)})),n.registerVisual(f,(function(e,t,i){var n,o,a=[];e.eachComponent({mainType:"brush"},(function(t,i){var l={brushId:t.id,brushIndex:i,brushName:t.name,areas:r.clone(t.areas),selected:[]};a.push(l);var c=t.option,h=c.brushLink,d=[],f=[],p=[],g=0;i||(n=c.throttleType,o=c.throttleDelay);var v=r.map(t.areas,(function(e){return x(r.defaults({boundingRect:b[e.brushType](e)},e))})),w=s.createVisualMappings(t.option,u,(function(e){e.mappingMethod="fixed"}));function S(e){return"all"===h||d[e]}function C(e){return!!e.length}function A(e,t){var i=e.coordinateSystem;g|=i.hasAxisBrushed(),S(t)&&i.eachActiveState(e.getData(),(function(e,t){"active"===e&&(f[t]=1)}))}function M(i,n,o){var s=y(i);if(s&&!_(t,n)&&(r.each(v,(function(n){s[n.brushType]&&t.brushTargetManager.controlSeries(n,i,e)&&o.push(n),g|=C(o)})),S(n)&&C(o))){var a=i.getData();a.each((function(e){m(s,o,a,e)&&(f[e]=1)}))}}r.isArray(h)&&r.each(h,(function(e){d[e]=1})),e.eachSeries((function(e,t){var i=p[t]=[];"parallel"===e.subType?A(e,t,i):M(e,t,i)})),e.eachSeries((function(e,t){var i={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};l.selected.push(i);var n=y(e),r=p[t],o=e.getData(),a=S(t)?function(e){return f[e]?(i.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return m(n,r,o,e)?(i.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"};(S(t)?g:C(r))&&s.applyVisual(u,w,o,a)}))})),g(t,n,o,a,i)}));var b={lineX:r.noop,lineY:r.noop,rect:function(e){return w(e.range)},polygon:function(e){for(var t,i=e.range,n=0,r=i.length;n<r;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=i[n];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&w(t)}};function w(e){return new o(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=p},36275:function(e,t,i){i(17354),i(89025),i(67209)},67209:function(e,t,i){var n=i(89231),r=i(95289),o=i(76442),s=i(8595),a=i(44261),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},u=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,i){var n=this.group;n.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),s=r.getOrient();this._renderDayRect(e,o,n),this._renderLines(e,o,s,n),this._renderYearText(e,o,s,n),this._renderMonthText(e,s,n),this._renderWeekText(e,o,s,n)},_renderDayRect:function(e,t,i){for(var n=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),a=n.getCellHeight(),l=t.start.time;l<=t.end.time;l=n.getNextNDay(l,1).time){var c=n.dataToRect([l],!1).tl,u=new o.Rect({shape:{x:c[0],y:c[1],width:s,height:a},cursor:"default",style:r});i.add(u)}},_renderLines:function(e,t,i,n){var r=this,o=e.coordinateSystem,s=e.getModel("splitLine.lineStyle").getLineStyle(),a=e.get("splitLine.show"),l=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,i);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),a&&r._drawSplitline(l,s,n)}d(o.getNextNDay(t.end.time,1).formatedDate),a&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,i),s,n),a&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,i),s,n)},_getEdgesPoints:function(e,t,i){var n=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-t/2,n[1][r]=n[1][r]+t/2,n},_drawSplitline:function(e,t,i){var n=new o.Polyline({z2:20,shape:{points:e},style:t});i.add(n)},_getLinePointsOfOneWeek:function(e,t,i){var n=e.coordinateSystem;t=n.getDateInfo(t);for(var r=[],o=0;o<7;o++){var s=n.getNextNDay(t.time,o),a=n.dataToRect([s.time],!1);r[2*s.day]=a.tl,r[2*s.day+1]=a["horizontal"===i?"bl":"tr"]}return r},_formatterLabel:function(e,t){return"string"===typeof e&&e?s.formatTplSimple(e,t):"function"===typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,i,n,r){t=t.slice();var o=["center","bottom"];"bottom"===n?(t[1]+=r,o=["center","top"]):"left"===n?t[0]-=r:"right"===n?(t[0]+=r,o=["center","top"]):t[1]-=r;var s=0;return"left"!==n&&"right"!==n||(s=Math.PI/2),{rotation:s,position:t,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(e,t,i,n){var r=e.getModel("yearLabel");if(r.get("show")){var s=r.get("margin"),a=r.get("position");a||(a="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(l[0][0]+l[1][0])/2,u=(l[0][1]+l[1][1])/2,h="horizontal"===i?0:1,d={top:[c,l[h][1]],bottom:[c,l[1-h][1]],left:[l[1-h][0],u],right:[l[h][0],u]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var p=r.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:f},v=this._formatterLabel(p,g),m=new o.Text({z2:30});o.setTextStyle(m.style,r,{text:v}),m.attr(this._yearTextPositionControl(m,d[a],i,a,s)),n.add(m)}},_monthTextPositionControl:function(e,t,i,n,r){var o="left",s="top",a=e[0],l=e[1];return"horizontal"===i?(l+=r,t&&(o="center"),"start"===n&&(s="bottom")):(a+=r,t&&(s="middle"),"start"===n&&(o="right")),{x:a,y:l,textAlign:o,textVerticalAlign:s}},_renderMonthText:function(e,t,i){var n=e.getModel("monthLabel");if(n.get("show")){var s=n.get("nameMap"),a=n.get("margin"),c=n.get("position"),u=n.get("align"),h=[this._tlpoints,this._blpoints];r.isString(s)&&(s=l[s.toUpperCase()]||[]);var d="start"===c?0:1,f="horizontal"===t?0:1;a="start"===c?-a:a;for(var p="center"===u,g=0;g<h[d].length-1;g++){var v=h[d][g].slice(),m=this._firstDayOfMonth[g];if(p){var y=this._firstDayPoints[g];v[f]=(y[f]+h[0][g+1][f])/2}var _=n.get("formatter"),x=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},w=this._formatterLabel(_,b),S=new o.Text({z2:30});r.extend(o.setTextStyle(S.style,n,{text:w}),this._monthTextPositionControl(v,p,t,c,a)),i.add(S)}}},_weekTextPositionControl:function(e,t,i,n,r){var o="center",s="middle",a=e[0],l=e[1],c="start"===i;return"horizontal"===t?(a=a+n+(c?1:-1)*r[0]/2,o=c?"right":"left"):(l=l+n+(c?1:-1)*r[1]/2,s=c?"bottom":"top"),{x:a,y:l,textAlign:o,textVerticalAlign:s}},_renderWeekText:function(e,t,i,n){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),h=s.get("nameMap"),d=s.get("margin"),f=l.getFirstDayOfWeek();r.isString(h)&&(h=c[h.toUpperCase()]||[]);var p=l.getNextNDay(t.end.time,7-t.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];d=a.parsePercent(d,g["horizontal"===i?0:1]),"start"===u&&(p=l.getNextNDay(t.start.time,-(7+t.fweek)).time,d=-d);for(var v=0;v<7;v++){var m=l.getNextNDay(p,v),y=l.dataToRect([m.time],!1).center,_=v;_=Math.abs((v+f)%7);var x=new o.Text({z2:30});r.extend(o.setTextStyle(x.style,s,{text:h[_]}),this._weekTextPositionControl(y,i,u,d,g)),n.add(x)}}}});e.exports=u},39554:function(e,t,i){i(42623),i(95978)},95978:function(e,t,i){i(21963),i(30865),i(63243),i(18733),i(83631),i(37384),i(56928)},21354:function(e,t,i){i(21963),i(30865),i(63243),i(35321),i(50563),i(37384),i(56928)},42623:function(e,t,i){i(21963),i(30865),i(63243),i(19918),i(27538),i(37384),i(56928)},778:function(e,t,i){var n=i(95289),r=i(44261),o=i(64601),s=i(96748),a=n.each,l=r.asc,c=function(e,t,i,n){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function u(e,t,i){var n=[1/0,-1/0];return a(i,(function(e){var i=e.getData();i&&a(i.mapDimension(t,!0),(function(e){var t=i.getApproximateExtent(e);t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])}))})),n[1]<n[0]&&(n=[NaN,NaN]),h(e,n),n}function h(e,t){var i=e.getAxisModel(),n=i.getMin(!0),r="category"===i.get("type"),o=r&&i.getCategories().length;null!=n&&"dataMin"!==n&&"function"!==typeof n?t[0]=n:r&&(t[0]=o>0?0:NaN);var s=i.getMax(!0);return null!=s&&"dataMax"!==s&&"function"!==typeof s?t[1]=s:r&&(t[1]=o>0?o-1:NaN),i.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function d(e,t){var i=e.getAxisModel(),n=e._percentWindow,o=e._valueWindow;if(n){var s=r.getPixelPrecision(o,[0,500]);s=Math.min(s,20);var a=t||0===n[0]&&100===n[1];i.setRange(a?null:+o[0].toFixed(s),a?null:+o[1].toFixed(s))}}function f(e){var t=e._minMaxSpan={},i=e._dataZoomModel,n=e._dataExtent;a(["min","max"],(function(o){var s=i.get(o+"Span"),a=i.get(o+"ValueSpan");null!=a&&(a=e.getAxisModel().axis.scale.parse(a)),null!=a?s=r.linearMap(n[0]+a,n,[0,100],!0):null!=s&&(a=r.linearMap(s,[0,100],n,!0)-n[0]),t[o+"Span"]=s,t[o+"ValueSpan"]=a}))}c.prototype={constructor:c,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries((function(i){if(o.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,r=t.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&e.push(i)}}),this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,i,n=this._dimName,r=this.ecModel,o=this.getAxisModel(),s="x"===n||"y"===n;return s?(t="gridIndex",e="x"===n?"y":"x"):(t="polarIndex",e="angle"===n?"radius":"angle"),r.eachComponent(e+"Axis",(function(e){(e.get(t)||0)===(o.get(t)||0)&&(i=e)})),i},getMinMaxSpan:function(){return n.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t,i=this._dataExtent,n=this.getAxisModel(),o=n.axis.scale,c=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],d=[];a(["start","end"],(function(n,s){var a=e[n],l=e[n+"Value"];"percent"===c[s]?(null==a&&(a=u[s]),l=o.parse(r.linearMap(a,u,i))):(t=!0,l=null==l?i[s]:o.parse(l),a=r.linearMap(l,i,u)),d[s]=l,h[s]=a})),l(d),l(h);var f=this._minMaxSpan;function p(e,t,i,n,a){var l=a?"Span":"ValueSpan";s(0,e,i,"all",f["min"+l],f["max"+l]);for(var c=0;c<2;c++)t[c]=r.linearMap(e[c],i,n,!0),a&&(t[c]=o.parse(t[c]))}return t?p(d,h,i,u,!1):p(h,d,u,i,!0),{valueWindow:d,percentWindow:h}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,t),f(this);var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,d(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,d(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&a(n,(function(e){var t=e.getData(),n=t.mapDimension(i,!0);n.length&&("weakFilter"===r?t.filterSelf((function(e){for(var i,r,s,a=0;a<n.length;a++){var l=t.get(n[a],e),c=!isNaN(l),u=l<o[0],h=l>o[1];if(c&&!u&&!h)return!0;c&&(s=!0),u&&(i=!0),h&&(r=!0)}return s&&i&&r})):a(n,(function(i){if("empty"===r)e.setData(t=t.map(i,(function(e){return s(e)?e:NaN})));else{var n={};n[i]=o,t.selectRange(n)}})),a(n,(function(e){t.setApproximateExtent(o,e)})))}))}function s(e){return e>=o[0]&&e<=o[1]}}};var p=c;e.exports=p},30865:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(87190),a=i(63199),l=i(64601),c=i(778),u=o.each,h=l.eachAxisDim,d=r.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=f(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this.doInit(n)},mergeOption:function(e){var t=f(e);o.merge(this.option,e,!0),o.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;s.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),p(this,e);var i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=i[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,i,n,r){var o=this.dependentModels[t.axis][i],s=o.__dzAxisProxy||(o.__dzAxisProxy=new c(t.name,i,this,r));e[t.name+"_"+i]=s}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();h((function(t){var i=t.axisIndex;e[i]=a.normalizeToArray(e[i])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;h((function(i){null!=e[i.axisIndex]&&(t=!0)}),this);var i=e.orient;return null==i&&t?"orient":t?void 0:(null==i&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),i=this.option,n=this.dependentModels;if(e){var r="vertical"===t?"y":"x";n[r+"Axis"].length?(i[r+"AxisIndex"]=[0],e=!1):u(n.singleAxis,(function(n){e&&n.get("orient",!0)===t&&(i.singleAxisIndex=[n.componentIndex],e=!1)}))}e&&h((function(t){if(e){var n=[],r=this.dependentModels[t.axis];if(r.length&&!n.length)for(var o=0,s=r.length;o<s;o++)"category"===r[o].get("type")&&n.push(o);i[t.axisIndex]=n,n.length&&(e=!1)}}),this),e&&this.ecModel.eachSeries((function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&h((function(t){var n=i[t.axisIndex],r=e.get(t.axisIndex),s=e.get(t.axisId),a=e.ecModel.queryComponents({mainType:t.axis,index:r,id:s})[0];r=a.componentIndex,o.indexOf(n,r)<0&&n.push(r)}))}),this)},_autoSetOrient:function(){var e;this.eachTargetAxis((function(t){!e&&(e=t.name)}),this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var i=!0;return h((function(n){var r=e.get(n.axisIndex),o=this.dependentModels[n.axis][r];o&&o.get("type")===t||(i=!1)}),this),i},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return h((function(t){if(null==e){var i=this.get(t.axisIndex);i.length&&(e=this.dependentModels[t.axis][i[0]])}}),this),e},eachTargetAxis:function(e,t){var i=this.ecModel;h((function(n){u(this.get(n.axisIndex),(function(r){e.call(t,n,r,this,i)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var i=this.getAxisProxy(e,t);return i&&i.getAxisModel()},setRawRange:function(e){var t=this.option,i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(n){null==e[n[0]]&&null==e[n[1]]||(t[n[0]]=i[n[0]]=e[n[0]],t[n[1]]=i[n[1]]=e[n[1]])}),this),p(this,e)},setCalculatedRange:function(e){var t=this.option;u(["start","startValue","end","endValue"],(function(i){t[i]=e[i]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var i in t)if(t.hasOwnProperty(i)&&t[i].hostedBy(this))return t[i];for(var i in t)if(t.hasOwnProperty(i)&&!t[i].hostedBy(this))return t[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(e){var t={};return u(["start","end","startValue","endValue","throttle"],(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}function p(e,t){var i=e._rangePropMode,n=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(e,r){var o=null!=t[e[0]],s=null!=t[e[1]];o&&!s?i[r]="percent":!o&&s?i[r]="value":n?i[r]=n[r]:o&&(i[r]="percent")}))}var g=d;e.exports=g},63243:function(e,t,i){var n=i(18328),r=n.extend({type:"dataZoom",render:function(e,t,i,n){this.dataZoomModel=e,this.ecModel=t,this.api=i},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,i={};function n(e,t,i,n){for(var r,o=0;o<i.length;o++)if(i[o].model===e){r=i[o];break}r||i.push(r={model:e,axisModels:[],coordIndex:n}),r.axisModels.push(t)}return e.eachTargetAxis((function(e,r){var o=t.getComponent(e.axis,r);if(o){var s=o.getCoordSysModel();s&&n(s,o,i[s.mainType]||(i[s.mainType]=[]),s.componentIndex)}}),this),i}});e.exports=r},18733:function(e,t,i){var n=i(30865),r=n.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=r},83631:function(e,t,i){var n=i(95289),r=i(63243),o=i(96748),s=i(87103),a=n.bind,l=r.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,i,r){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),n.each(this.getTargetCoordInfo(),(function(t,r){var o=n.map(t,(function(e){return s.generateCoordId(e.model)}));n.each(t,(function(t){var l=t.model,u={};n.each(["pan","zoom","scrollMove"],(function(e){u[e]=a(c[e],this,t,r)}),this),s.register(i,{coordId:s.generateCoordId(l),allCoordIds:o,containsPoint:function(e,t,i){return l.coordinateSystem.containPoint([t,i])},dataZoomId:e.id,dataZoomModel:e,getRange:u})}),this)}),this)},dispose:function(){s.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),c={zoom:function(e,t,i,n){var r=this._range,s=r.slice(),a=e.axisModels[0];if(a){var l=h[t](null,[n.originX,n.originY],a,i,e),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(s[1]-s[0])+s[0],u=Math.max(1/n.scale,0);s[0]=(s[0]-c)*u+c,s[1]=(s[1]-c)*u+c;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,s,[0,100],0,d.minSpan,d.maxSpan),this._range=s,r[0]!==s[0]||r[1]!==s[1]?s:void 0}},pan:u((function(e,t,i,n,r,o){var s=h[n]([o.oldX,o.oldY],[o.newX,o.newY],t,r,i);return s.signal*(e[1]-e[0])*s.pixel/s.pixelLength})),scrollMove:u((function(e,t,i,n,r,o){var s=h[n]([0,0],[o.scrollDelta,o.scrollDelta],t,r,i);return s.signal*(e[1]-e[0])*o.scrollDelta}))};function u(e){return function(t,i,n,r){var s=this._range,a=s.slice(),l=t.axisModels[0];if(l){var c=e(a,l,t,i,n,r);return o(c,a,[0,100],"all"),this._range=a,s[0]!==a[0]||s[1]!==a[1]?a:void 0}}}var h={grid:function(e,t,i,n,r){var o=i.axis,s={},a=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s},polar:function(e,t,i,n,r){var o=i.axis,s={},a=r.model.coordinateSystem,l=a.getRadiusAxis().getExtent(),c=a.getAngleAxis().getExtent();return e=e?a.pointToCoord(e):[0,0],t=a.pointToCoord(t),"radiusAxis"===i.mainType?(s.pixel=t[0]-e[0],s.pixelLength=l[1]-l[0],s.pixelStart=l[0],s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=c[1]-c[0],s.pixelStart=c[0],s.signal=o.inverse?-1:1),s},singleAxis:function(e,t,i,n,r){var o=i.axis,s=r.model.coordinateSystem.getRect(),a={};return e=e||[0,0],"horizontal"===o.orient?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a}},d=l;e.exports=d},35321:function(e,t,i){var n=i(30865),r=n.extend({type:"dataZoom.select"});e.exports=r},50563:function(e,t,i){var n=i(63243),r=n.extend({type:"dataZoom.select"});e.exports=r},19918:function(e,t,i){var n=i(30865),r=n.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),o=r;e.exports=o},27538:function(e,t,i){var n=i(95289),r=i(88665),o=i(76442),s=i(88336),a=i(63243),l=i(44261),c=i(61570),u=i(96748),h=o.Rect,d=l.linearMap,f=l.asc,p=n.bind,g=n.each,v=7,m=1,y=30,_="horizontal",x="vertical",b=5,w=["line","bar","candlestick","scatter"],S=a.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,i,n){S.superApply(this,"render",arguments),s.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){S.superApply(this,"remove",arguments),s.clear(this,"_dispatchZoomAction")},dispose:function(){S.superApply(this,"dispose",arguments),s.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,i=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===_?{right:r.width-i.x-i.width,top:r.height-y-v,width:i.width,height:y}:{right:v,top:i.y,width:y,height:i.height},s=c.getLayoutParams(e.option);n.each(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=o[e])}));var a=c.getLayoutRect(s,r,e.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],this._orient===x&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.barGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==_||r?i===_&&r?{scale:s?[-1,1]:[-1,-1]}:i!==x||r?{scale:s?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:s?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:s?[1,1]:[1,-1]});var a=e.getBoundingRect([o]);e.attr("position",[t.x-a.x,t.y-a.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,i=this._displayables.barGroup;i.add(new h({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),i.add(new h({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,i=e.series,r=i.getRawData(),s=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=s){var a=r.getDataExtent(s),l=.3*(a[1]-a[0]);a=[a[0]-l,a[1]+l];var c,u=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],p=[],g=h[1]/(r.count()-1),v=0,m=Math.round(r.count()/t[0]);r.each([s],(function(e,t){if(m>0&&t%m)v+=g;else{var i=null==e||isNaN(e)||""===e,n=i?0:d(e,a,u,!0);i&&!c&&t?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!i&&c&&(f.push([v,0]),p.push([v,0])),f.push([v,n]),p.push([v,n]),v+=g,c=i}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:f},style:n.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var i,r=this.ecModel;return e.eachTargetAxis((function(o,s){var a=e.getAxisProxy(o.name,s).getTargetSeriesModels();n.each(a,(function(e){if(!i&&!(!0!==t&&n.indexOf(w,e.get("type"))<0)){var a,l=r.getComponent(o.axis,s).axis,c=C(o.name),u=e.coordinateSystem;null!=c&&u.getOtherAxis&&(a=u.getOtherAxis(l).inverse),c=e.getData().mapDimension(c),i={thisAxis:l,series:e,thisDim:o.name,otherDim:c,otherAxisInverse:a}}}),this)}),this),i}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],i=e.handleLabels=[],n=this._displayables.barGroup,r=this._size,s=this.dataZoomModel;n.add(e.filler=new h({draggable:!0,cursor:A(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:s.get("fillerColor"),textPosition:"inside"}})),n.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:m,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(e){var r=o.createIcon(s.get("handleIcon"),{cursor:A(this._orient),draggable:!0,drift:p(this._onDragMove,this,e),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),a=r.getBoundingRect();this._handleHeight=l.parsePercent(s.get("handleSize"),this._size[1]),this._handleWidth=a.width/a.height*this._handleHeight,r.setStyle(s.getModel("handleStyle").getItemStyle());var c=s.get("handleColor");null!=c&&(r.style.fill=c),n.add(t[e]=r);var u=s.textStyleModel;this.group.add(i[e]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[d(e[0],[0,100],t,!0),d(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];u(t,n,r,i.get("zoomLock")?"all":e,null!=o.minSpan?d(o.minSpan,s,r,!0):null,null!=o.maxSpan?d(o.maxSpan,s,r,!0):null);var a=this._range,l=this._range=f([d(n[0],r,s,!0),d(n[1],r,s,!0)]);return!a||a[0]!==l[0]||a[1]!==l[1]},_updateView:function(e){var t=this._displayables,i=this._handleEnds,n=f(i.slice()),r=this._size;g([0,1],(function(e){var n=t.handles[e],o=this._handleHeight;n.attr({scale:[o/2,o/2],position:[i[e],r[1]/2-o/2]})}),this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,i=this._displayables,n=i.handleLabels,r=this._orient,s=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var l=a.getAxisModel().axis,c=this._range,u=e?a.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:a.getDataValueWindow();s=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var h=f(this._handleEnds.slice());function d(e){var t=o.getTransform(i.handles[e].parent,this.group),a=o.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+b,c=o.applyTransform([h[e]+(0===e?-l:l),this._size[1]/2],t);n[e].setStyle({x:c[0],y:c[1],textVerticalAlign:r===_?"middle":a,textAlign:r===_?a:"center",text:s[e]})}d.call(this,0),d.call(this,1)},_formatLabel:function(e,t){var i=this.dataZoomModel,r=i.get("labelFormatter"),o=i.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var s=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(o,20));return n.isFunction(r)?r(e,s):n.isString(r)?r.replace("{value}",s):s},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,i,n){this._dragging=!0,r.stop(n.event);var s=this._displayables.barGroup.getLocalTransform(),a=o.applyTransform([t,i],s,!0),l=this._updateInterval(e,a[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,i=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>t[0]||i[1]<0||i[1]>t[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(g(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}})),!e){var t=this.api.getWidth(),i=this.api.getHeight();e={x:.2*t,y:.2*i,width:.6*t,height:.6*i}}return e}});function C(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function A(e){return"vertical"===e?"ns-resize":"ew-resize"}var M=S;e.exports=M},56928:function(e,t,i){var n=i(89231),r=i(95289),o=i(64601);n.registerAction("dataZoom",(function(e,t){var i=o.createLinkedNodesFinder(r.bind(t.eachComponent,t,"dataZoom"),o.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),n=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){n.push.apply(n,i(e).nodes)})),r.each(n,(function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},37384:function(e,t,i){var n=i(89231),r=i(95289),o=r.createHashMap,s=r.each;n.registerProcessor({getTargetSeries:function(e){var t=o();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){var r=n.getAxisProxy(e.name,i);s(r.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).reset(n,t)})),e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).filterData(n,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}))}})},64601:function(e,t,i){var n=i(95289),r=i(8595),o=["x","y","z","radius","angle","single"],s=["cartesian2d","polar","singleAxis"];function a(e){return n.indexOf(s,e)>=0}function l(e,t){e=e.slice();var i=n.map(e,r.capitalFirst);t=(t||[]).slice();var o=n.map(t,r.capitalFirst);return function(r,s){n.each(e,(function(e,n){for(var a={name:e,capital:i[n]},l=0;l<t.length;l++)a[t[l]]=e+o[l];r.call(s,a)}))}}var c=l(o,["axisIndex","axis","index","id"]);function u(e,t,i){return function(i){var n,a={nodes:[],records:{}};if(t((function(e){a.records[e.name]={}})),!i)return a;s(i,a);do{n=!1,e(l)}while(n);function l(e){!r(e,a)&&o(e,a)&&(s(e,a),n=!0)}return a};function r(e,t){return n.indexOf(t.nodes,e)>=0}function o(e,r){var o=!1;return t((function(t){n.each(i(e,t)||[],(function(e){r.records[t.name][e]&&(o=!0)}))})),o}function s(e,r){r.nodes.push(e),t((function(t){n.each(i(e,t)||[],(function(e){r.records[t.name][e]=!0}))}))}}t.isCoordSupported=a,t.createNameEach=l,t.eachAxisDim=c,t.createLinkedNodesFinder=u},5693:function(e,t,i){var n=i(95289),r=n.each,o="\0_ec_hist_store";function s(e,t){var i=u(e);r(t,(function(t,n){for(var r=i.length-1;r>=0;r--){var o=i[r];if(o[n])break}if(r<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var a=s.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}})),i.push(t)}function a(e){var t=u(e),i=t[t.length-1];t.length>1&&t.pop();var n={};return r(i,(function(e,i){for(var r=t.length-1;r>=0;r--){e=t[r][i];if(e){n[i]=e;break}}})),n}function l(e){e[o]=null}function c(e){return u(e).length}function u(e){var t=e[o];return t||(t=e[o]=[{}]),t}t.push=s,t.pop=a,t.clear=l,t.count=c},87103:function(e,t,i){var n=i(95289),r=i(95441),o=i(88336),s="\0_ec_dataZoom_roams";function a(e,t){var i=u(e),r=t.dataZoomId,s=t.coordId;n.each(i,(function(e,i){var o=e.dataZoomInfos;o[r]&&n.indexOf(t.allCoordIds,s)<0&&(delete o[r],e.count--)})),d(i);var a=i[s];a||(a=i[s]={coordId:s,dataZoomInfos:{},count:0},a.controller=h(e,a),a.dispatchAction=n.curry(f,e)),!a.dataZoomInfos[r]&&a.count++,a.dataZoomInfos[r]=t;var l=p(a.dataZoomInfos);a.controller.enable(l.controlType,l.opt),a.controller.setPointerChecker(t.containsPoint),o.createOrUpdate(a,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function l(e,t){var i=u(e);n.each(i,(function(e){e.controller.dispose();var i=e.dataZoomInfos;i[t]&&(delete i[t],e.count--)})),d(i)}function c(e){return e.type+"\0_"+e.id}function u(e){var t=e.getZr();return t[s]||(t[s]={})}function h(e,t){var i=new r(e.getZr());return n.each(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(i){var r=[];n.each(t.dataZoomInfos,(function(n){if(i.isAvailableBehavior(n.dataZoomModel.option)){var o=(n.getRange||{})[e],s=o&&o(t.controller,i);!n.dataZoomModel.get("disabled",!0)&&s&&r.push({dataZoomId:n.dataZoomId,start:s[0],end:s[1]})}})),r.length&&t.dispatchAction(r)}))})),i}function d(e){n.each(e,(function(t,i){t.count||(t.controller.dispose(),delete e[i])}))}function f(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function p(e){var t,i="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return n.each(e,(function(e){var n=e.dataZoomModel,s=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");r[i+s]>r[i+t]&&(t=s),o&=n.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}t.register=a,t.unregister=l,t.generateCoordId=c},21963:function(e,t,i){var n=i(85532);n.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},613:function(e,t,i){var n=i(85532),r=i(18328),o=i(49442),s=o.detectSourceFormat,a=i(90642),l=a.SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){s(this)}}),r.extend({type:"dataset"})},61232:function(e,t,i){var n=i(89231),r=i(95289);function o(e,t){t.update="updateView",n.registerAction(t,(function(t,i){var n={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[e](t.name);var o=i.coordinateSystem;r.each(o.regions,(function(e){n[e.name]=i.isSelected(e.name)||!1}))})),{selected:n,name:t.name}}))}i(86867),i(98870),i(73315),i(50704),o("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),o("select",{type:"geoSelect",event:"geoselected"}),o("unSelect",{type:"geoUnSelect",event:"geounselected"})},73315:function(e,t,i){var n=i(75730),r=i(89231),o=r.extendComponentView({type:"geo",init:function(e,t){var i=new n(t,!0);this._mapDraw=i,this.group.add(i.group)},render:function(e,t,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var r=this._mapDraw;e.get("show")?r.draw(e,t,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=o},21393:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(63199),a=i(76442),l=i(61570),c=i(44261),u=c.parsePercent,h={path:null,compoundPath:null,group:a.Group,image:a.Image,text:a.Text};r.registerPreprocessor((function(e){var t=e.graphic;o.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var d=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,d.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var i=this.option,n=(t?i:e).elements,r=i.elements=t?[]:i.elements,a=[];this._flatten(n,a);var l=s.mappingToExists(r,a);s.makeIdAndName(l);var c=this._elOptionsToUpdate=[];o.each(l,(function(e,t){var i=e.option;i&&(c.push(i),m(e,i),y(r,t,i),_(r[t],i))}),this);for(var u=r.length-1;u>=0;u--)null==r[u]?r.splice(u,1):delete r[u].$action},_flatten:function(e,t,i){o.each(e,(function(e){if(e){i&&(e.parentOption=i),t.push(e);var n=e.children;"group"===e.type&&n&&this._flatten(n,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function f(e,t,i,n){var r=i.type,o=h.hasOwnProperty(r)?h[r]:a.getShapeClass(r),s=new o(i);t.add(s),n.set(e,s),s.__ecGraphicId=e}function p(e,t){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){p(e,t)})),t.removeKey(e.__ecGraphicId),i.remove(e))}function g(e){return e=o.extend({},e),o.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(t){delete e[t]})),e}function v(e,t){var i;return o.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(i=!0)})),i}function m(e,t){var i=e.exist;if(t.id=e.keyInfo.id,!t.type&&i&&(t.type=i.type),null==t.parentId){var n=t.parentOption;n?t.parentId=n.id:i&&(t.parentId=i.parentId)}t.parentOption=null}function y(e,t,i){var n=o.extend({},i),r=e[t],s=i.$action||"merge";"merge"===s?r?(o.merge(r,n,!0),l.mergeLayoutParam(r,n,{ignoreSize:!0}),l.copyLayoutParams(i,r)):e[t]=n:"replace"===s?e[t]=n:"remove"===s&&r&&(e[t]=null)}function _(e,t){e&&(e.hv=t.hv=[v(t,["left","right"]),v(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}function x(e,t,i){var n=e.eventData;e.silent||e.ignore||n||(n=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=e.info)}r.extendComponentView({type:"graphic",init:function(e,t){this._elMap=o.createHashMap(),this._lastGraphicModel},render:function(e,t,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var i=this._elMap,n=this.group;o.each(t,(function(t){var r=t.$action,o=t.id,s=i.get(o),a=t.parentId,l=null!=a?i.get(a):n,c=t.style;"text"===t.type&&c&&(t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=null),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke));var u=g(t);r&&"merge"!==r?"replace"===r?(p(s,i),f(o,l,u,i)):"remove"===r&&p(s,i):s?s.attr(u):f(o,l,u,i);var h=i.get(o);h&&(h.__ecGraphicWidthOption=t.width,h.__ecGraphicHeightOption=t.height,x(h,e,t))}))}},_relocate:function(e,t){for(var i=e.option.elements,n=this.group,r=this._elMap,o=t.getWidth(),s=t.getHeight(),a=0;a<i.length;a++){var c=i[a],h=r.get(c.id);if(h&&h.isGroup){var d=h.parent,f=d===n;h.__ecGraphicWidth=u(h.__ecGraphicWidthOption,f?o:d.__ecGraphicWidth)||0,h.__ecGraphicHeight=u(h.__ecGraphicHeightOption,f?s:d.__ecGraphicHeight)||0}}for(a=i.length-1;a>=0;a--){c=i[a],h=r.get(c.id);if(h){d=h.parent;var p=d===n?{width:o,height:s}:{width:d.__ecGraphicWidth,height:d.__ecGraphicHeight};l.positionElement(h,c,p,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){p(t,e)})),this._elMap=o.createHashMap()},dispose:function(){this._clear()}})},61029:function(e,t,i){i(48807),i(25178),i(76683)},48807:function(e,t,i){var n=i(89231),r=i(95289),o=i(76442);i(31020),i(49548),n.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new o.Rect({shape:e.coordinateSystem.getRect(),style:r.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))},33478:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(36112),s=i(76442),a=i(58391),l=i(1032),c=r.curry,u=r.each,h=r.map,d=Math.min,f=Math.max,p=Math.pow,g=1e4,v=6,m=6,y="globalPan",_={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},x={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},b={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},w=0;function S(e){o.call(this),this._zr=e,this.group=new s.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+w++,this._handlers={},u(re,(function(e,t){this._handlers[t]=r.bind(e,this)}),this)}function C(e,t){var i=e._zr;e._enableGlobalPan||a.take(i,y,e._uid),M(i,e._handlers),e._brushType=t.brushType,e._brushOption=r.merge(r.clone(b),t,!0)}function A(e){var t=e._zr;a.release(t,y,e._uid),k(t,e._handlers),e._brushType=e._brushOption=null}function M(e,t){u(t,(function(t,i){e.on(i,t)}))}function k(e,t){u(t,(function(t,i){e.off(i,t)}))}function T(e,t){var i=ae[t.brushType].createCover(e,t);return i.__brushOption=t,E(i,t),e.group.add(i),i}function I(e,t){var i=O(t);return i.endCreating&&(i.endCreating(e,t),E(t,t.__brushOption)),t}function L(e,t){var i=t.__brushOption;O(t).updateCoverShape(e,t,i.range,i)}function E(e,t){var i=t.z;null==i&&(i=g),e.traverse((function(e){e.z=i,e.z2=i}))}function D(e,t){O(t).updateCommon(e,t),L(e,t)}function O(e){return ae[e.__brushOption.brushType]}function P(e,t,i){var n,r=e._panels;if(!r)return!0;var o=e._transform;return u(r,(function(e){e.isTargetByCursor(t,i,o)&&(n=e)})),n}function R(e,t){var i=e._panels;if(!i)return!0;var n=t.__brushOption.panelId;return null==n||i[n]}function B(e){var t=e._covers,i=t.length;return u(t,(function(t){e.group.remove(t)}),e),t.length=0,!!i}function N(e,t){var i=h(e._covers,(function(e){var t=e.__brushOption,i=r.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:i}}));e.trigger("brush",i,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function z(e){var t=e._track;if(!t.length)return!1;var i=t[t.length-1],n=t[0],r=i[0]-n[0],o=i[1]-n[1],s=p(r*r+o*o,.5);return s>v}function H(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function F(e,t,i,n){var r=new s.Group;return r.add(new s.Rect({name:"main",style:W(i),silent:!0,draggable:!0,cursor:"move",drift:c(e,t,r,"nswe"),ondragend:c(N,t,{isEnd:!0})})),u(n,(function(i){r.add(new s.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(e,t,r,i),ondragend:c(N,t,{isEnd:!0})}))})),r}function V(e,t,i,n){var r=n.brushStyle.lineWidth||0,o=f(r,m),s=i[0][0],a=i[1][0],l=s-r/2,c=a-r/2,u=i[0][1],h=i[1][1],d=u-o+r/2,p=h-o+r/2,g=u-s,v=h-a,y=g+r,_=v+r;$(e,t,"main",s,a,g,v),n.transformable&&($(e,t,"w",l,c,o,_),$(e,t,"e",d,c,o,_),$(e,t,"n",l,c,y,o),$(e,t,"s",l,p,y,o),$(e,t,"nw",l,c,o,o),$(e,t,"ne",d,c,o,o),$(e,t,"sw",l,p,o,o),$(e,t,"se",d,p,o,o))}function j(e,t){var i=t.__brushOption,n=i.transformable,r=t.childAt(0);r.useStyle(W(i)),r.attr({silent:!n,cursor:n?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(i){var r=t.childOfName(i),o=q(e,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?x[o]+"-resize":null})}))}function $(e,t,i,n,r,o,s){var a=t.childOfName(i);a&&a.setShape(J(K(e,t,[[n,r],[n+o,r+s]])))}function W(e){return r.defaults({strokeNoScale:!0},e.brushStyle)}function G(e,t,i,n){var r=[d(e,i),d(t,n)],o=[f(e,i),f(t,n)];return[[r[0],o[0]],[r[1],o[1]]]}function U(e){return s.getTransform(e.group)}function q(e,t){if(t.length>1){t=t.split("");var i=[q(e,t[0]),q(e,t[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"};i=s.transformDirection(n[t],U(e));return r[i]}function Z(e,t,i,n,r,o,s,a){var l=n.__brushOption,c=e(l.range),h=Y(i,o,s);u(r.split(""),(function(e){var t=_[e];c[t[0]][t[1]]+=h[t[0]]})),l.range=t(G(c[0][0],c[1][0],c[0][1],c[1][1])),D(i,n),N(i,{isEnd:!1})}function X(e,t,i,n,r){var o=t.__brushOption.range,s=Y(e,i,n);u(o,(function(e){e[0]+=s[0],e[1]+=s[1]})),D(e,t),N(e,{isEnd:!1})}function Y(e,t,i){var n=e.group,r=n.transformCoordToLocal(t,i),o=n.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function K(e,t,i){var n=R(e,t);return n&&!0!==n?n.clipPath(i,e._transform):r.clone(i)}function J(e){var t=d(e[0][0],e[1][0]),i=d(e[0][1],e[1][1]),n=f(e[0][0],e[1][0]),r=f(e[0][1],e[1][1]);return{x:t,y:i,width:n-t,height:r-i}}function Q(e,t,i){if(e._brushType&&!se(e,t)){var n=e._zr,r=e._covers,o=P(e,t,i);if(!e._dragging)for(var s=0;s<r.length;s++){var a=r[s].__brushOption;if(o&&(!0===o||a.panelId===o.panelId)&&ae[a.brushType].contain(r[s],i[0],i[1]))return}o&&n.setCursorStyle("crosshair")}}function ee(e){var t=e.event;t.preventDefault&&t.preventDefault()}function te(e,t,i){return e.childOfName("main").contain(t,i)}function ie(e,t,i,n){var o,s=e._creatingCover,a=e._creatingPanel,l=e._brushOption;if(e._track.push(i.slice()),z(e)||s){if(a&&!s){"single"===l.brushMode&&B(e);var c=r.clone(l);c.brushType=ne(c.brushType,a),c.panelId=!0===a?null:a.panelId,s=e._creatingCover=T(e,c),e._covers.push(s)}if(s){var u=ae[ne(e._brushType,a)],h=s.__brushOption;h.range=u.getCreatingRange(K(e,s,e._track)),n&&(I(e,s),u.updateCommon(e,s)),L(e,s),o={isEnd:n}}}else n&&"single"===l.brushMode&&l.removeOnClick&&P(e,t,i)&&B(e)&&(o={isEnd:n,removeOnClick:!0});return o}function ne(e,t){return"auto"===e?t.defaultBrushType:e}S.prototype={constructor:S,enableBrush:function(e){return this._brushType&&A(this),e.brushType&&C(this,e),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};r.each(e,(function(e){t[e.panelId]=r.clone(e)}))}else this._panels=null;return this},mount:function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){u(this._covers,e,t)},updateCovers:function(e){e=r.map(e,(function(e){return r.merge(r.clone(b),e,!0)}));var t="\0-brush-index-",i=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new l(i,e,c,a).add(u).update(u).remove(h).execute(),this;function a(e,i){return(null!=e.id?e.id:t+i)+"-"+e.brushType}function c(e,t){return a(e.__brushOption,t)}function u(t,r){var a=e[t];if(null!=r&&i[r]===s)n[t]=i[r];else{var l=n[t]=null!=r?(i[r].__brushOption=a,i[r]):I(o,T(o,a));D(o,l)}}function h(e){i[e]!==s&&o.group.remove(i[e])}},unmount:function(){return this.enableBrush(!1),B(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},r.mixin(S,o);var re={mousedown:function(e){if(this._dragging)oe(this,e);else if(!e.target||!e.target.draggable){ee(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var i=this._creatingPanel=P(this,e,t);i&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,i=e.offsetY,n=this.group.transformCoordToLocal(t,i);if(Q(this,e,n),this._dragging){ee(e);var r=ie(this,e,n,!1);r&&N(this,r)}},mouseup:function(e){oe(this,e)}};function oe(e,t){if(e._dragging){ee(t);var i=t.offsetX,n=t.offsetY,r=e.group.transformCoordToLocal(i,n),o=ie(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&N(e,o)}}function se(e,t,i){var n=e._zr;return t<0||t>n.getWidth()||i<0||i>n.getHeight()}var ae={lineX:le(0),lineY:le(1),rect:{createCover:function(e,t){return F(c(Z,(function(e){return e}),(function(e){return e})),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=H(e);return G(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,i,n){V(e,t,i,n)},updateCommon:j,contain:te},polygon:{createCover:function(e,t){var i=new s.Group;return i.add(new s.Polyline({name:"main",style:W(t),silent:!0})),i},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new s.Polygon({name:"main",draggable:!0,drift:c(X,e,t),ondragend:c(N,e,{isEnd:!0})}))},updateCoverShape:function(e,t,i,n){t.childAt(0).setShape({points:K(e,t,i)})},updateCommon:j,contain:te}};function le(e){return{createCover:function(t,i){return F(c(Z,(function(t){var i=[t,[0,100]];return e&&i.reverse(),i}),(function(t){return t[e]})),t,i,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var i=H(t),n=d(i[0][e],i[1][e]),r=f(i[0][e],i[1][e]);return[n,r]},updateCoverShape:function(t,i,n,r){var o,s=R(t,i);if(!0!==s&&s.getLinearBrushOtherExtent)o=s.getLinearBrushOtherExtent(e,t._transform);else{var a=t._zr;o=[0,[a.getWidth(),a.getHeight()][1-e]]}var l=[n,o];e&&l.reverse(),V(t,i,l,r)},updateCommon:j,contain:te}}var ce=S;e.exports=ce},74080:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(76442),s=i(63199),a=i(54266),l=r.each,c=r.indexOf,u=r.curry,h=["dataToPoint","pointToData"],d=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function f(e,t,i){var n=this._targetInfoList=[],r={},o=v(t,e);l(m,(function(e,t){(!i||!i.include||c(i.include,t)>=0)&&e(o,n,r)}))}var p=f.prototype;function g(e){return e[0]>e[1]&&e.reverse(),e}function v(e,t){return s.parseFinder(e,t,{includeMainTypes:d})}p.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,(function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=x[e.brushType](0,i,t);e.__rangeOffset={offset:w[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}}))},p.matchOutputRanges=function(e,t,i){l(e,(function(e){var n=this.findTargetInfo(e,t);n&&!0!==n&&r.each(n.coordSyses,(function(n){var r=x[e.brushType](1,n,e.range);i(e,r.values,n,t)}))}),this)},p.setInputRanges=function(e,t){l(e,(function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n=x[e.brushType](0,i.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?w[e.brushType](n.values,r.offset,C(n.xyMinMax,r.xyMinMax)):n.values}}),this)},p.makePanelOpts=function(e,t){return r.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t&&t(i),clipPath:a.makeRectPanelClipPath(n),isTargetByCursor:a.makeRectIsTargetByCursor(n,e,i.coordSysModel),getLinearBrushOtherExtent:a.makeLinearBrushOtherExtent(n)}}))},p.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return!0===n||n&&c(n.coordSyses,t.coordinateSystem)>=0},p.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=v(t,e),r=0;r<i.length;r++){var o=i[r],s=e.panelId;if(s){if(o.panelId===s)return o}else for(r=0;r<y.length;r++)if(y[r](n,o))return o}return!0};var m={grid:function(e,t){var i=e.xAxisModels,n=e.yAxisModels,o=e.gridModels,s=r.createHashMap(),a={},u={};(i||n||o)&&(l(i,(function(e){var t=e.axis.grid.model;s.set(t.id,t),a[t.id]=!0})),l(n,(function(e){var t=e.axis.grid.model;s.set(t.id,t),u[t.id]=!0})),l(o,(function(e){s.set(e.id,e),a[e.id]=!0,u[e.id]=!0})),s.each((function(e){var r=e.coordinateSystem,o=[];l(r.getCartesians(),(function(e,t){(c(i,e.getAxis("x").model)>=0||c(n,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:_.grid,xAxisDeclared:a[e.id],yAxisDeclared:u[e.id]})})))},geo:function(e,t){l(e.geoModels,(function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:_.geo})}))}},y=[function(e,t){var i=e.xAxisModel,n=e.yAxisModel,r=e.gridModel;return!r&&i&&(r=i.axis.grid.model),!r&&n&&(r=n.axis.grid.model),r&&r===t.gridModel},function(e,t){var i=e.geoModel;return i&&i===t.geoModel}],_={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(o.getTransform(e)),t}},x={lineX:u(b,0),lineY:u(b,1),rect:function(e,t,i){var n=t[h[e]]([i[0][0],i[1][0]]),r=t[h[e]]([i[0][1],i[1][1]]),o=[g([n[0],r[0]]),g([n[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,i){var n=[[1/0,-1/0],[1/0,-1/0]],o=r.map(i,(function(i){var r=t[h[e]](i);return n[0][0]=Math.min(n[0][0],r[0]),n[1][0]=Math.min(n[1][0],r[1]),n[0][1]=Math.max(n[0][1],r[0]),n[1][1]=Math.max(n[1][1],r[1]),r}));return{values:o,xyMinMax:n}}};function b(e,t,i,n){var o=i.getAxis(["x","y"][e]),s=g(r.map([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(n[e])):o.toGlobalCoord(o.dataToCoord(n[e]))}))),a=[];return a[e]=s,a[1-e]=[NaN,NaN],{values:s,xyMinMax:a}}var w={lineX:u(S,0),lineY:u(S,1),rect:function(e,t,i){return[[e[0][0]-i[0]*t[0][0],e[0][1]-i[0]*t[0][1]],[e[1][0]-i[1]*t[1][0],e[1][1]-i[1]*t[1][1]]]},polygon:function(e,t,i){return r.map(e,(function(e,n){return[e[0]-i[0]*t[n][0],e[1]-i[1]*t[n][1]]}))}};function S(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function C(e,t){var i=A(e),n=A(t),r=[i[0]/n[0],i[1]/n[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function A(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var M=f;e.exports=M},75730:function(e,t,i){var n=i(95289),r=i(95441),o=i(43173),s=i(47114),a=s.onIrrelevantElement,l=i(76442),c=i(80218),u=i(79865),h=u.getUID,d=i(38051);function f(e){var t=e.getItemStyle(),i=e.get("areaColor");return null!=i&&(t.fill=i),t}function p(e,t,i,r,o){i.off("click"),i.off("mousedown"),t.get("selectedMode")&&(i.on("mousedown",(function(){e._mouseDownFlag=!0})),i.on("click",(function(s){if(e._mouseDownFlag){e._mouseDownFlag=!1;var a=s.target;while(!a.__regions)a=a.parent;if(a){var l={type:("geo"===t.mainType?"geo":"map")+"ToggleSelect",batch:n.map(a.__regions,(function(e){return{name:e.name,from:o.uid}}))};l[t.mainType+"Id"]=t.id,r.dispatchAction(l),g(t,i)}}})))}function g(e,t){t.eachChild((function(t){n.each(t.__regions,(function(i){t.trigger(e.isSelected(i.name)?"emphasis":"normal")}))}))}function v(e,t){var i=new l.Group;this.uid=h("ec_map_draw"),this._controller=new r(e.getZr()),this._controllerHost={target:t?i:null},this.group=i,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new l.Group),i.add(this._backgroundGroup=new l.Group)}v.prototype={constructor:v,draw:function(e,t,i,r,o){var s="geo"===e.mainType,a=e.getData&&e.getData();s&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var c=e.coordinateSystem;this._updateBackground(c);var u,h=this._regionsGroup,v=this.group,m=c.getTransformInfo(),y=!h.childAt(0)||o;if(y)v.transform=m.roamTransform,v.decomposeTransform(),v.dirty();else{var _=new d;_.transform=m.roamTransform,_.decomposeTransform();var x={scale:_.scale,position:_.position};u=_.scale,l.updateProps(v,x,e)}var b=m.rawScale,w=m.rawPosition;h.removeAll();var S=["itemStyle"],C=["emphasis","itemStyle"],A=["label"],M=["emphasis","label"],k=n.createHashMap();n.each(c.regions,(function(t){var i=k.get(t.name)||k.set(t.name,new l.Group),r=new l.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(r);var o,c=e.getRegionModel(t.name)||e,d=c.getModel(S),p=c.getModel(C),g=f(d),m=f(p),_=c.getModel(A),x=c.getModel(M);if(a){o=a.indexOfName(t.name);var T=a.getItemVisual(o,"color",!0);T&&(g.fill=T)}var I=function(e){return[e[0]*b[0]+w[0],e[1]*b[1]+w[1]]};n.each(t.geometries,(function(e){if("polygon"===e.type){for(var t=[],i=0;i<e.exterior.length;++i)t.push(I(e.exterior[i]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}));for(i=0;i<(e.interiors?e.interiors.length:0);++i){for(var n=e.interiors[i],o=(t=[],0);o<n.length;++o)t.push(I(n[o]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}))}}})),r.setStyle(g),r.style.strokeNoScale=!0,r.culling=!0;var L=_.get("show"),E=x.get("show"),D=a&&isNaN(a.get(a.mapDimension("value"),o)),O=a&&a.getItemLayout(o);if(s||D&&(L||E)||O&&O.showLabel){var P,R=s?t.name:o;(!a||o>=0)&&(P=e);var B=new l.Text({position:I(t.center.slice()),scale:[1/v.scale[0],1/v.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(B.style,B.hoverStyle={},_,x,{labelFetcher:P,labelDataIndex:R,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var N=[1/u[0],1/u[1]];l.updateProps(B,{scale:N},e)}i.add(B)}if(a)a.setItemGraphicEl(o,i);else{c=e.getRegionModel(t.name);r.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:c&&c.option||{}}}var z=i.__regions||(i.__regions=[]);z.push(t),i.highDownSilentOnTouch=!!e.get("selectedMode"),l.setHoverStyle(i,m),h.add(i)})),this._updateController(e,t,i),p(this,e,h,i,r),g(e,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&c.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&n.each(c.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,i){var r=e.coordinateSystem,s=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=r.getZoom(),s.enable(e.get("roam")||!1);var c=e.mainType;function u(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}s.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,o.updateViewOnPan(l,e.dx,e.dy),i.dispatchAction(n.extend(u(),{dx:e.dx,dy:e.dy}))}),this),s.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,o.updateViewOnZoom(l,e.scale,e.originX,e.originY),i.dispatchAction(n.extend(u(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),s.setPointerChecker((function(t,n,o){return r.getViewRectAfterRoam().contain(n,o)&&!a(t,i,e)}))}};var m=v;e.exports=m},95441:function(e,t,i){var n=i(95289),r=i(36112),o=i(88665),s=i(58391);function a(e){this.pointerChecker,this._zr=e,this._opt={};var t=n.bind,i=t(l,this),o=t(c,this),s=t(u,this),a=t(h,this),f=t(d,this);r.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,r){this.disable(),this._opt=n.defaults(n.clone(r)||{},{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",o),e.on("mouseup",s)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",f))},this.disable=function(){e.off("mousedown",i),e.off("mousemove",o),e.off("mouseup",s),e.off("mousewheel",a),e.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(e){if(!(o.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var t=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,i)&&(this._x=t,this._y=i,this._dragging=!0)}}function c(e){if(this._dragging&&g("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!s.isTaken(this._zr,"globalPan")){var t=e.offsetX,i=e.offsetY,n=this._x,r=this._y,a=t-n,l=i-r;this._x=t,this._y=i,this._opt.preventDefaultMouseMove&&o.stop(e.event),p(this,"pan","moveOnMouseMove",e,{dx:a,dy:l,oldX:n,oldY:r,newX:t,newY:i})}}function u(e){o.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function h(e){var t=g("zoomOnMouseWheel",e,this._opt),i=g("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,r=Math.abs(n),o=e.offsetX,s=e.offsetY;if(0!==n&&(t||i)){if(t){var a=r>3?1.4:r>1?1.2:1.1,l=n>0?a:1/a;f(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:s})}if(i){var c=Math.abs(n),u=(n>0?1:-1)*(c>3?.4:c>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:s})}}}function d(e){if(!s.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function f(e,t,i,n,r){e.pointerChecker&&e.pointerChecker(n,r.originX,r.originY)&&(o.stop(n.event),p(e,t,i,n,r))}function p(e,t,i,r,o){o.isAvailableBehavior=n.bind(g,null,i,r),e.trigger(t,o)}function g(e,t,i){var r=i[e];return!e||r&&(!n.isString(r)||t.event[r+"Key"])}n.mixin(a,r);var v=a;e.exports=v},54266:function(e,t,i){var n=i(39587),r=i(47114),o=r.onIrrelevantElement,s=i(76442);function a(e){return e=u(e),function(t,i){return s.clipPointsByRect(t,e)}}function l(e,t){return e=u(e),function(i){var n=null!=t?t:i,r=n?e.width:e.height,o=n?e.x:e.y;return[o,o+(r||0)]}}function c(e,t,i){return e=u(e),function(n,r,s){return e.contain(r[0],r[1])&&!o(n,t,i)}}function u(e){return n.create(e)}t.makeRectPanelClipPath=a,t.makeLinearBrushOtherExtent=l,t.makeRectIsTargetByCursor=c},47114:function(e,t){var i={axisPointer:1,tooltip:1,brush:1};function n(e,t,n){var r=t.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==n&&!i[r.mainType]&&o&&o.model!==n}t.onIrrelevantElement=n},58391:function(e,t,i){var n=i(89231),r="\0_ec_interaction_mutex";function o(e,t,i){var n=l(e);n[t]=i}function s(e,t,i){var n=l(e),r=n[t];r===i&&(n[t]=null)}function a(e,t){return!!l(e)[t]}function l(e){return e[r]||(e[r]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=o,t.release=s,t.isTaken=a},13785:function(e,t,i){var n=i(61570),r=n.getLayoutRect,o=n.box,s=n.positionElement,a=i(8595),l=i(76442);function c(e,t,i){var n=t.getBoxLayoutParams(),a=t.get("padding"),l={width:i.getWidth(),height:i.getHeight()},c=r(n,l,a);o(t.get("orient"),e,t.get("itemGap"),c.width,c.height),s(e,n,l,a)}function u(e,t){var i=a.normalizeCssArray(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");e=new l.Rect({shape:{x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return e}t.layout=c,t.makeBackground=u},43173:function(e,t){function i(e,t,i){var n=e.target,r=n.position;r[0]+=t,r[1]+=i,n.dirty()}function n(e,t,i,n){var r=e.target,o=e.zoomLimit,s=r.position,a=r.scale,l=e.zoom=e.zoom||1;if(l*=t,o){var c=o.min||0,u=o.max||1/0;l=Math.max(Math.min(u,l),c)}var h=l/e.zoom;e.zoom=l,s[0]-=(i-s[0])*(h-1),s[1]-=(n-s[1])*(h-1),a[0]*=h,a[1]*=h,r.dirty()}t.updateViewOnPan=i,t.updateViewOnZoom=n},18171:function(e,t,i){var n=i(95289),r={updateSelectedMap:function(e){this._targetList=n.isArray(e)?e.slice():[],this._selectTargetMap=n.reduce(e||[],(function(e,t){return e.set(t.name,t),e}),n.createHashMap())},select:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each((function(e){e.selected=!1})),i&&(i.selected=!0)},unSelect:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);i&&(i.selected=!1)},toggleSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=i)return this[i.selected?"unSelect":"select"](e,t),i.selected},isSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return i&&i.selected}};e.exports=r},96748:function(e){function t(e,t,r,o,s,a){e=e||0;var l=r[1]-r[0];if(null!=s&&(s=n(s,[0,l])),null!=a&&(a=Math.max(a,null!=s?s:0)),"all"===o){var c=Math.abs(t[1]-t[0]);c=n(c,[0,l]),s=a=n(c,[s,a]),o=0}t[0]=n(t[0],r),t[1]=n(t[1],r);var u=i(t,o);t[o]+=e;var h=s||0,d=r.slice();u.sign<0?d[0]+=h:d[1]-=h,t[o]=n(t[o],d);var f=i(t,o);null!=s&&(f.sign!==u.sign||f.span<s)&&(t[1-o]=t[o]+u.sign*s);f=i(t,o);return null!=a&&f.span>a&&(t[1-o]=t[o]+f.sign*a),t}function i(e,t){var i=e[t]-e[1-t];return{span:Math.abs(i),sign:i>0?-1:i<0?1:t?-1:1}}function n(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=t},59608:function(e,t,i){var n=i(89231);i(29629),i(82180),i(76575);var r=i(99268),o=i(85532);n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,r),o.registerSubTypeDefaulter("legend",(function(){return"plain"}))},84069:function(e,t,i){i(59608),i(51866),i(30422),i(25257)},29629:function(e,t,i){var n=i(89231),r=i(95289),o=i(40590),s=i(63199),a=s.isNameSpecified,l=i(49777),c=l.legend.selector,u={all:{type:"all",title:r.clone(c.all)},inverse:{type:"inverse",title:r.clone(c.inverse)}},h=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){h.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),r.isArray(t)&&r.each(t,(function(e,i){r.isString(e)&&(e={type:e}),t[i]=r.merge(e,u[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],i=[];e.eachRawSeries((function(n){var r,o=n.name;if(i.push(o),n.legendVisualProvider){var s=n.legendVisualProvider,l=s.getAllNames();e.isSeriesFiltered(n)||(i=i.concat(l)),l.length?t=t.concat(l):r=!0}else r=!0;r&&a(n)&&t.push(n.name)})),this._availableNames=i;var n=this.get("data")||t,s=r.map(n,(function(e){return"string"!==typeof e&&"number"!==typeof e||(e={name:e}),new o(e,this,this.ecModel)}),this);this._data=s},getData:function(){return this._data},select:function(e){var t=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;r.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;r.each(e,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var e=this._data,t=this.option.selected;r.each(e,(function(e){var i=e.get("name",!0);t.hasOwnProperty(i)||(t[i]=!0),t[i]=!t[i]}))},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&r.indexOf(this._availableNames,e)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),d=h;e.exports=d},76575:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(22864),a=s.createSymbol,l=i(76442),c=i(13785),u=c.makeBackground,h=i(61570),d=o.curry,f=o.each,p=l.Group,g=r.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new p),this._backgroundEl,this.group.add(this._selectorGroup=new p),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),s=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===s?"right":"left");var a=e.get("selector",!0),l=e.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===s?"end":"start"),this.renderInner(r,e,t,i,a,s,l);var c=e.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},f=e.get("padding"),p=h.getLayoutRect(c,d,f),g=this.layoutInner(e,r,p,n,a,l),v=h.getLayoutRect(o.defaults({width:g.width,height:g.height},c),d,f);this.group.attr("position",[v.x-g.x,v.y-g.y]),this.group.add(this._backgroundEl=u(g,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(e,t,i,n,r,s,a){var l=this.getContentGroup(),c=o.createHashMap(),u=t.get("selectedMode"),h=[];i.eachRawSeries((function(e){!e.get("legendHoverLink")&&h.push(e.id)})),f(t.getData(),(function(r,o){var s=r.get("name");if(this.newlineDisabled||""!==s&&"\n"!==s){var a=i.getSeriesByName(s)[0];if(!c.get(s))if(a){var f=a.getData(),g=f.getVisual("color"),v=f.getVisual("borderColor");"function"===typeof g&&(g=g(a.getDataParams(0))),"function"===typeof v&&(v=v(a.getDataParams(0)));var x=f.getVisual("legendSymbol")||"roundRect",b=f.getVisual("symbol"),w=this._createItem(s,o,r,t,x,b,e,g,v,u);w.on("click",d(m,s,null,n,h)).on("mouseover",d(y,a.name,null,n,h)).on("mouseout",d(_,a.name,null,n,h)),c.set(s,!0)}else i.eachRawSeries((function(i){if(!c.get(s)&&i.legendVisualProvider){var a=i.legendVisualProvider;if(!a.containName(s))return;var l=a.indexOfName(s),f=a.getItemVisual(l,"color"),p=a.getItemVisual(l,"borderColor"),g="roundRect",v=this._createItem(s,o,r,t,g,null,e,f,p,u);v.on("click",d(m,null,s,n,h)).on("mouseover",d(y,null,s,n,h)).on("mouseout",d(_,null,s,n,h)),c.set(s,!0)}}),this)}else l.add(new p({newline:!0}))}),this),r&&this._createSelector(r,t,n,s,a)},_createSelector:function(e,t,i,n,r){var o=this.getSelectorGroup();function s(e){var n=e.type,r=new l.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var s=t.getModel("selectorLabel"),a=t.getModel("emphasis.selectorLabel");l.setLabelStyle(r.style,r.hoverStyle={},s,a,{defaultText:e.title,isRectText:!1}),l.setHoverStyle(r)}f(e,(function(e){s(e)}))},_createItem:function(e,t,i,n,r,s,c,u,h,d){var f=n.get("itemWidth"),g=n.get("itemHeight"),m=n.get("inactiveColor"),y=n.get("inactiveBorderColor"),_=n.get("symbolKeepAspect"),x=n.getModel("itemStyle"),b=n.isSelected(e),w=new p,S=i.getModel("textStyle"),C=i.get("icon"),A=i.getModel("tooltip"),M=A.parentModel;r=C||r;var k=a(r,0,0,f,g,b?u:m,null==_||_);if(w.add(v(k,r,x,h,y,b)),!C&&s&&(s!==r||"none"===s)){var T=.8*g;"none"===s&&(s="circle");var I=a(s,(f-T)/2,(g-T)/2,T,T,b?u:m,null==_||_);w.add(v(I,s,x,h,y,b))}var L="left"===c?f+5:-5,E=c,D=n.get("formatter"),O=e;"string"===typeof D&&D?O=D.replace("{name}",null!=e?e:""):"function"===typeof D&&(O=D(e)),w.add(new l.Text({style:l.setTextStyle({},S,{text:O,x:L,y:g/2,textFill:b?S.getTextColor():m,textAlign:E,textVerticalAlign:"middle"})}));var P=new l.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:A.get("show")?o.extend({content:e,formatter:M.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:e,$vars:["name"]}},A.option):null});return w.add(P),w.eachChild((function(e){e.silent=!0})),P.silent=!d,this.getContentGroup().add(w),l.setHoverStyle(w),w.__legendDataIndex=t,w},layoutInner:function(e,t,i,n,r,o){var s=this.getContentGroup(),a=this.getSelectorGroup();h.box(e.get("orient"),s,e.get("itemGap"),i.width,i.height);var l=s.getBoundingRect(),c=[-l.x,-l.y];if(r){h.box("horizontal",a,e.get("selectorItemGap",!0));var u=a.getBoundingRect(),d=[-u.x,-u.y],f=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===o?d[p]+=l[g]+f:c[p]+=u[g]+f,d[1-p]+=l[v]/2-u[v]/2,a.attr("position",d),s.attr("position",c);var y={x:0,y:0};return y[g]=l[g]+f+u[g],y[v]=Math.max(l[v],u[v]),y[m]=Math.min(0,u[m]+d[1-p]),y}return s.attr("position",c),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function v(e,t,i,n,r,o){var s;return"line"!==t&&t.indexOf("empty")<0?(s=i.getItemStyle(),e.style.stroke=n,o||(s.stroke=r)):s=i.getItemStyle(["borderWidth","borderColor"]),e.setStyle(s)}function m(e,t,i,n){_(e,t,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),y(e,t,i,n)}function y(e,t,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function _(e,t,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}e.exports=g},51866:function(e,t,i){var n=i(29629),r=i(61570),o=r.mergeLayoutParam,s=r.getLayoutParams,a=n.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},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},init:function(e,t,i,n){var r=s(e);a.superCall(this,"init",e,t,i,n),l(this,e,r)},mergeOption:function(e,t){a.superCall(this,"mergeOption",e,t),l(this,this.option,e)}});function l(e,t,i){var n=e.getOrient(),r=[1,1];r[n.index]=0,o(t,i,{type:"box",ignoreSize:r})}var c=a;e.exports=c},30422:function(e,t,i){var n=i(95289),r=i(76442),o=i(61570),s=i(76575),a=r.Group,l=["width","height"],c=["x","y"],u=s.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new a),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new a),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,i,o,s,a,l){var c=this;u.superCall(this,"renderInner",e,t,i,o,s,a,l);var h=this._controllerGroup,d=t.get("pageIconSize",!0);n.isArray(d)||(d=[d,d]),p("pagePrev",0);var f=t.getModel("pageTextStyle");function p(e,i){var s=e+"DataIndex",a=r.createIcon(t.get("pageIcons",!0)[t.getOrient().name][i],{onclick:n.bind(c._pageGo,c,s,t,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,h.add(a)}h.add(new r.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(e,t,i,r,s,a){var u=this.getSelectorGroup(),h=e.getOrient().index,d=l[h],f=c[h],p=l[1-h],g=c[1-h];s&&o.box("horizontal",u,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=u.getBoundingRect(),y=[-m.x,-m.y],_=n.clone(i);s&&(_[d]=i[d]-m[d]-v);var x=this._layoutContentAndController(e,r,_,h,d,p,g);if(s){if("end"===a)y[h]+=x[d]+v;else{var b=m[d]+v;y[h]-=b,x[f]-=b}x[d]+=m[d]+v,y[1-h]+=x[g]+x[p]/2-m[p]/2,x[p]=Math.max(x[p],m[p]),x[g]=Math.min(x[g],m[g]+y[1-h]),u.attr("position",y)}return x},_layoutContentAndController:function(e,t,i,s,a,l,c){var u=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;o.box(e.get("orient"),u,e.get("itemGap"),s?i.width:null,s?null:i.height),o.box("horizontal",d,e.get("pageButtonItemGap",!0));var f=u.getBoundingRect(),p=d.getBoundingRect(),g=this._showController=f[a]>i[a],v=[-f.x,-f.y];t||(v[s]=u.position[s]);var m=[0,0],y=[-p.x,-p.y],_=n.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var x=e.get("pageButtonPosition",!0);"end"===x?y[s]+=i[a]-p[a]:m[s]+=p[a]+_}y[1-s]+=f[l]/2-p[l]/2,u.attr("position",v),h.attr("position",m),d.attr("position",y);var b={x:0,y:0};if(b[a]=g?i[a]:f[a],b[l]=Math.max(f[l],p[l]),b[c]=Math.min(0,p[c]+y[1-s]),h.__rectSize=i[a],g){var w={x:0,y:0};w[a]=Math.max(i[a]-p[a]-_,0),w[l]=b[l],h.setClipPath(new r.Rect({shape:w})),h.__rectSize=w[a]}else d.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(e);return null!=S.pageIndex&&r.updateProps(u,{position:S.contentPosition},!!g&&e),this._updatePageInfoView(e,S),b},_pageGo:function(e,t,i){var n=this._getPageInfo(t)[e];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},_updatePageInfoView:function(e,t){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],(function(n){var r=null!=t[n+"DataIndex"],o=i.childOfName(n);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=i.childOfName("pageText"),o=e.get("pageFormatter"),s=t.pageIndex,a=null!=s?s+1:0,l=t.pageCount;r&&o&&r.setStyle("text",n.isString(o)?o.replace("{current}",a).replace("{total}",l):o({current:a,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=e.getOrient().index,o=l[r],s=c[r],a=this._findTargetItemIndex(t),u=i.children(),h=u[a],d=u.length,f=d?1:0,p={contentPosition:i.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var g=x(h);p.contentPosition[r]=-g.s;for(var v=a+1,m=g,y=g,_=null;v<=d;++v)_=x(u[v]),(!_&&y.e>m.s+n||_&&!b(_,m.s))&&(m=y.i>m.i?y:_,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=_;for(v=a-1,m=g,y=g,_=null;v>=-1;--v)_=x(u[v]),_&&b(y,_.s)||!(m.i<y.i)||(y=m,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=_;return p;function x(e){if(e){var t=e.getBoundingRect(),i=t[s]+e.position[r];return{s:i,e:i+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+n}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,i,n=this.getContentGroup();return n.eachChild((function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===e&&(t=r)})),null!=t?t:i}}),h=u;e.exports=h},82180:function(e,t,i){var n=i(89231),r=i(95289);function o(e,t,i){var n,o={},s="toggleSelected"===e;return i.eachComponent("legend",(function(i){s&&null!=n?i[n?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?i[e]():(i[e](t.name),n=i.isSelected(t.name));var a=i.getData();r.each(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var n=i.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&n:o[t]=n}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}n.registerAction("legendToggleSelect","legendselectchanged",r.curry(o,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",r.curry(o,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",r.curry(o,"inverseSelect")),n.registerAction("legendSelect","legendselected",r.curry(o,"select")),n.registerAction("legendUnSelect","legendunselected",r.curry(o,"unSelect"))},99268:function(e){function t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0}))}e.exports=t},25257:function(e,t,i){var n=i(89231);n.registerAction("legendScroll","legendscroll",(function(e,t){var i=e.scrollDataIndex;null!=i&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(i)}))}))},54281:function(e,t,i){var n=i(89231);i(30225),i(17483),n.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))},47106:function(e,t,i){var n=i(89231);i(14124),i(58120),n.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},87976:function(e,t,i){var n=i(89231);i(85304),i(16796),n.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},30225:function(e,t,i){var n=i(89955),r=n.extend({type:"markArea",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.exports=r},17483:function(e,t,i){var n=i(95289),r=i(56607),o=i(5628),s=i(44261),a=i(76442),l=i(18312),c=i(47381),u=function(e,t,i,r){var o=l.dataTransform(e,r[0]),s=l.dataTransform(e,r[1]),a=n.retrieve,c=o.coord,u=s.coord;c[0]=a(c[0],-1/0),c[1]=a(c[1],-1/0),u[0]=a(u[0],1/0),u[1]=a(u[1],1/0);var h=n.mergeAll([{},o,s]);return h.coord=[o.coord,s.coord],h.x0=o.x,h.y0=o.y,h.x1=s.x,h.y1=s.y,h};function h(e){return!isNaN(e)&&!isFinite(e)}function d(e,t,i,n){var r=1-e;return h(t[r])&&h(i[r])}function f(e,t){var i=t.coord[0],n=t.coord[1];return!("cartesian2d"!==e.type||!i||!n||!d(1,i,n,e)&&!d(0,i,n,e))||(l.dataFilter(e,{coord:i,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:n,x:t.x1,y:t.y1}))}function p(e,t,i,n,r){var o,a=n.coordinateSystem,l=e.getItemModel(t),c=s.parsePercent(l.get(i[0]),r.getWidth()),u=s.parsePercent(l.get(i[1]),r.getHeight());if(isNaN(c)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(e.getValues(i,t));else{var d=e.get(i[0],t),f=e.get(i[1],t),p=[d,f];a.clampData&&a.clampData(p,p),o=a.dataToPoint(p,!0)}if("cartesian2d"===a.type){var g=a.getAxis("x"),v=a.getAxis("y");d=e.get(i[0],t),f=e.get(i[1],t);h(d)?o[0]=g.toGlobalCoord(g.getExtent()["x0"===i[0]?0:1]):h(f)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===i[1]?0:1]))}isNaN(c)||(o[0]=c),isNaN(u)||(o[1]=u)}else o=[c,u];return o}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function v(e,t,i){var r,s,a=["x0","y0","x1","y1"];e?(r=n.map(e&&e.dimensions,(function(e){var i=t.getData(),r=i.getDimensionInfo(i.mapDimension(e))||{};return n.defaults({name:e},r)})),s=new o(n.map(a,(function(e,t){return{name:e,type:r[t%2].type}})),i)):(r=[{name:"value",type:"float"}],s=new o(r,i));var l=n.map(i.get("data"),n.curry(u,t,e,i));e&&(l=n.filter(l,n.curry(f,e)));var c=e?function(e,t,i,n){return e.coord[Math.floor(n/2)][n%2]}:function(e){return e.value};return s.initData(l,null,c),s.hasItemOption=!0,s}c.extend({type:"markArea",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var r=t.getData();r.each((function(t){var o=n.map(g,(function(n){return p(r,t,n,e,i)}));r.setItemLayout(t,o);var s=r.getItemGraphicEl(t);s.setShape("points",o)}))}}),this)},renderSeries:function(e,t,i,o){var s=e.coordinateSystem,l=e.id,c=e.getData(),u=this.markerGroupMap,d=u.get(l)||u.set(l,{group:new a.Group});this.group.add(d.group),d.__keep=!0;var f=v(s,e,t);t.setData(f),f.each((function(t){var i=n.map(g,(function(i){return p(f,t,i,e,o)})),r=!0;n.each(g,(function(e){if(r){var i=f.get(e[0],t),n=f.get(e[1],t);(h(i)||s.getAxis("x").containData(i))&&(h(n)||s.getAxis("y").containData(n))&&(r=!1)}})),f.setItemLayout(t,{points:i,allClipped:r}),f.setItemVisual(t,{color:c.getVisual("color")})})),f.diff(d.__data).add((function(e){var t=f.getItemLayout(e);if(!t.allClipped){var i=new a.Polygon({shape:{points:t.points}});f.setItemGraphicEl(e,i),d.group.add(i)}})).update((function(e,i){var n=d.__data.getItemGraphicEl(i),r=f.getItemLayout(e);r.allClipped?n&&d.group.remove(n):(n?a.updateProps(n,{shape:{points:r.points}},t,e):n=new a.Polygon({shape:{points:r.points}}),f.setItemGraphicEl(e,n),d.group.add(n))})).remove((function(e){var t=d.__data.getItemGraphicEl(e);d.group.remove(t)})).execute(),f.eachItemGraphicEl((function(e,i){var o=f.getItemModel(i),s=o.getModel("label"),l=o.getModel("emphasis.label"),c=f.getItemVisual(i,"color");e.useStyle(n.defaults(o.getModel("itemStyle").getItemStyle(),{fill:r.modifyAlpha(c,.4),stroke:c})),e.hoverStyle=o.getModel("emphasis.itemStyle").getItemStyle(),a.setLabelStyle(e.style,e.hoverStyle,s,l,{labelFetcher:t,labelDataIndex:i,defaultText:f.getName(i)||"",isRectText:!0,autoColor:c}),a.setHoverStyle(e,{}),e.dataModel=t})),d.__data=f,d.group.silent=t.get("silent")||e.get("silent")}})},14124:function(e,t,i){var n=i(89955),r=n.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=r},58120:function(e,t,i){var n=i(95289),r=i(5628),o=i(44261),s=i(18312),a=i(73643),l=i(47381),c=i(74051),u=c.getStackedDimension,h=function(e,t,i,r){var o=e.getData(),a=r.type;if(!n.isArray(r)&&("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis)){var l,c;if(null!=r.yAxis||null!=r.xAxis)l=t.getAxis(null!=r.yAxis?"y":"x"),c=n.retrieve(r.yAxis,r.xAxis);else{var h=s.getAxisInfo(r,o,t,e);l=h.valueAxis;var d=u(o,h.valueDataDim);c=s.numCalculate(o,d,a)}var f="x"===l.dim?0:1,p=1-f,g=n.clone(r),v={};g.type=null,g.coord=[],v.coord=[],g.coord[p]=-1/0,v.coord[p]=1/0;var m=i.get("precision");m>=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(m,20))),g.coord[f]=v.coord[f]=c,r=[g,v,{type:a,valueIndex:r.valueIndex,value:c}]}return r=[s.dataTransform(e,r[0]),s.dataTransform(e,r[1]),n.extend({},r[2])],r[2].type=r[2].type||"",n.merge(r[2],r[0]),n.merge(r[2],r[1]),r};function d(e){return!isNaN(e)&&!isFinite(e)}function f(e,t,i,n){var r=1-e,o=n.dimensions[e];return d(t[r])&&d(i[r])&&t[e]===i[e]&&n.getAxis(o).containData(t[e])}function p(e,t){if("cartesian2d"===e.type){var i=t[0].coord,n=t[1].coord;if(i&&n&&(f(1,i,n,e)||f(0,i,n,e)))return!0}return s.dataFilter(e,t[0])&&s.dataFilter(e,t[1])}function g(e,t,i,n,r){var s,a=n.coordinateSystem,l=e.getItemModel(t),c=o.parsePercent(l.get("x"),r.getWidth()),u=o.parsePercent(l.get("y"),r.getHeight());if(isNaN(c)||isNaN(u)){if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=a.dimensions,f=e.get(h[0],t),p=e.get(h[1],t);s=a.dataToPoint([f,p])}if("cartesian2d"===a.type){var g=a.getAxis("x"),v=a.getAxis("y");h=a.dimensions;d(e.get(h[0],t))?s[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):d(e.get(h[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[i?0:1]))}isNaN(c)||(s[0]=c),isNaN(u)||(s[1]=u)}else s=[c,u];e.setItemLayout(t,s)}var v=l.extend({type:"markLine",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markLineModel;if(t){var n=t.getData(),r=t.__from,o=t.__to;r.each((function(t){g(r,t,!0,e,i),g(o,t,!1,e,i)})),n.each((function(e){n.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,i,r){var o=e.coordinateSystem,s=e.id,l=e.getData(),c=this.markerGroupMap,u=c.get(s)||c.set(s,new a);this.group.add(u.group);var h=m(o,e,t),d=h.from,f=h.to,p=h.line;t.__from=d,t.__to=f,t.setData(p);var v=t.get("symbol"),y=t.get("symbolSize");function _(t,i,n){var o=t.getItemModel(i);g(t,i,n,e,r),t.setItemVisual(i,{symbolRotate:o.get("symbolRotate"),symbolSize:o.get("symbolSize")||y[n?0:1],symbol:o.get("symbol",!0)||v[n?0:1],color:o.get("itemStyle.color")||l.getVisual("color")})}n.isArray(v)||(v=[v,v]),"number"===typeof y&&(y=[y,y]),h.from.each((function(e){_(d,e,!0),_(f,e,!1)})),p.each((function(e){var t=p.getItemModel(e).get("lineStyle.color");p.setItemVisual(e,{color:t||d.getItemVisual(e,"color")}),p.setItemLayout(e,[d.getItemLayout(e),f.getItemLayout(e)]),p.setItemVisual(e,{fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolRotate:f.getItemVisual(e,"symbolRotate"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol")})})),u.updateData(p),h.line.eachItemGraphicEl((function(e,i){e.traverse((function(e){e.dataModel=t}))})),u.__keep=!0,u.group.silent=t.get("silent")||e.get("silent")}});function m(e,t,i){var o;o=e?n.map(e&&e.dimensions,(function(e){var i=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return n.defaults({name:e},i)})):[{name:"value",type:"float"}];var a=new r(o,i),l=new r(o,i),c=new r([],i),u=n.map(i.get("data"),n.curry(h,t,e,i));e&&(u=n.filter(u,n.curry(p,e)));var d=e?s.dimValueGetter:function(e){return e.value};return a.initData(n.map(u,(function(e){return e[0]})),null,d),l.initData(n.map(u,(function(e){return e[1]})),null,d),c.initData(n.map(u,(function(e){return e[2]}))),c.hasItemOption=!0,{from:a,to:l,line:c}}e.exports=v},85304:function(e,t,i){var n=i(89955),r=n.extend({type:"markPoint",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.exports=r},16796:function(e,t,i){var n=i(95289),r=i(52033),o=i(44261),s=i(5628),a=i(18312),l=i(47381);function c(e,t,i){var n=t.coordinateSystem;e.each((function(r){var s,a=e.getItemModel(r),l=o.parsePercent(a.get("x"),i.getWidth()),c=o.parsePercent(a.get("y"),i.getHeight());if(isNaN(l)||isNaN(c)){if(t.getMarkerPosition)s=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(n){var u=e.get(n.dimensions[0],r),h=e.get(n.dimensions[1],r);s=n.dataToPoint([u,h])}}else s=[l,c];isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c),e.setItemLayout(r,s)}))}var u=l.extend({type:"markPoint",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markPointModel;t&&(c(t.getData(),e,i),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,i,o){var s=e.coordinateSystem,a=e.id,l=e.getData(),u=this.markerGroupMap,d=u.get(a)||u.set(a,new r),f=h(s,e,t);t.setData(f),c(t.getData(),e,o),f.each((function(e){var i=f.getItemModel(e),r=i.getShallow("symbol"),o=i.getShallow("symbolSize"),s=i.getShallow("symbolRotate"),a=n.isFunction(r),c=n.isFunction(o),u=n.isFunction(s);if(a||c||u){var h=t.getRawValue(e),d=t.getDataParams(e);a&&(r=r(h,d)),c&&(o=o(h,d)),u&&(s=s(h,d))}f.setItemVisual(e,{symbol:r,symbolSize:o,symbolRotate:s,color:i.get("itemStyle.color")||l.getVisual("color")})})),d.updateData(f),this.group.add(d.group),f.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),d.__keep=!0,d.group.silent=t.get("silent")||e.get("silent")}});function h(e,t,i){var r;r=e?n.map(e&&e.dimensions,(function(e){var i=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return n.defaults({name:e},i)})):[{name:"value",type:"float"}];var o=new s(r,i),l=n.map(i.get("data"),n.curry(a.dataTransform,t));return e&&(l=n.filter(l,n.curry(a.dataFilter,e))),o.initData(l,null,e?a.dimValueGetter:function(e){return e.value}),o}e.exports=u},89955:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(87190),a=i(63199),l=i(8595),c=i(38738),u=l.addCommas,h=l.encodeHTML;function d(e){a.defaultEmphasis(e,"label",["show"])}var f=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},isAnimationEnabled:function(){if(s.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,i,n){var r=this.constructor,s=this.mainType+"Model";i||t.eachSeries((function(e){var i=e.get(this.mainType,!0),a=e[s];i&&i.data?(a?a._mergeOption(i,t,!0):(n&&d(i),o.each(i.data,(function(e){e instanceof Array?(d(e[0]),d(e[1])):d(e)})),a=new r(i,this,t),o.extend(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),e[s]=a):e[s]=null}),this)},formatTooltip:function(e,t,i,n){var r=this.getData(),s=this.getRawValue(e),a=o.isArray(s)?o.map(s,u).join(", "):u(s),l=r.getName(e),c=h(this.name),d="html"===n?"<br/>":"\n";return(null!=s||l)&&(c+=d),l&&(c+=h(l),null!=s&&(c+=" : ")),null!=s&&(c+=h(a)),c},getData:function(){return this._data},setData:function(e){this._data=e}});o.mixin(f,c);var p=f;e.exports=p},47381:function(e,t,i){var n=i(89231),r=i(95289),o=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(e,t,i){var n=this.markerGroupMap;n.each((function(e){e.__keep=!1}));var r=this.type+"Model";t.eachSeries((function(e){var n=e[r];n&&this.renderSeries(e,n,t,i)}),this),n.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=o},18312:function(e,t,i){var n=i(95289),r=i(44261),o=i(74051),s=o.isDimensionStacked,a=n.indexOf;function l(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function c(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function u(e,t,i,n,o,a){var l=[],c=s(t,n),u=c?t.getCalculationInfo("stackResultDimension"):n,h=y(t,u,e),d=t.indicesOfNearest(u,h)[0];l[o]=t.get(i,d),l[a]=t.get(u,d);var f=t.get(n,d),p=r.getPrecision(t.get(n,d));return p=Math.min(p,20),p>=0&&(l[a]=+l[a].toFixed(p)),[l,f]}var h=n.curry,d={min:h(u,"min"),max:h(u,"max"),average:h(u,"average")};function f(e,t){var i=e.getData(),r=e.coordinateSystem;if(t&&!c(t)&&!n.isArray(t.coord)&&r){var o=r.dimensions,s=p(t,i,r,e);if(t=n.clone(t),t.type&&d[t.type]&&s.baseAxis&&s.valueAxis){var l=a(o,s.baseAxis.dim),u=a(o,s.valueAxis.dim),h=d[t.type](i,s.baseDataDim,s.valueDataDim,l,u);t.coord=h[0],t.value=h[1]}else{for(var f=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],g=0;g<2;g++)d[f[g]]&&(f[g]=y(i,i.mapDimension(o[g]),f[g]));t.coord=f}}return t}function p(e,t,i,n){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=i.getAxis(g(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function g(e,t){var i=e.getData(),n=i.dimensions;t=i.getDimension(t);for(var r=0;r<n.length;r++){var o=i.getDimensionInfo(n[r]);if(o.name===t)return o.coordDim}}function v(e,t){return!(e&&e.containData&&t.coord&&!l(t))||e.containData(t.coord)}function m(e,t,i,n){return n<2?e.coord&&e.coord[n]:e.value}function y(e,t,i){if("average"===i){var n=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(n+=e,r++)})),n/r}return"median"===i?e.getMedian(t):e.getDataExtent(t,!0)["max"===i?1:0]}t.dataTransform=f,t.getAxisInfo=p,t.dataFilter=v,t.dimValueGetter=m,t.numCalculate=y},14102:function(e,t,i){var n=i(89231),r=i(95289),o=i(88336),s=i(44259);i(9278),i(69531),i(18251);var a=5;n.extendComponentView({type:"parallel",render:function(e,t,i){this._model=e,this._api=i,this._handlers||(this._handlers={},r.each(l,(function(e,t){i.getZr().on(t,this._handlers[t]=r.bind(e,this))}),this)),o.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){r.each(this._handlers,(function(e,i){t.getZr().off(i,e)})),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(r.extend({type:"parallelAxisExpand"},e))}});var l={mousedown:function(e){c(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(c(this,"click")&&t){var i=[e.offsetX,e.offsetY],n=Math.pow(t[0]-i[0],2)+Math.pow(t[1]-i[1],2);if(n>a)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&c(this,"mousemove")){var t=this._model,i=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function c(e,t){var i=e._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===t}n.registerPreprocessor(s)},18251:function(e,t,i){i(9278),i(49007),i(93296)},63389:function(e,t,i){var n=i(89231),r=i(95289),o=i(80241);i(35866),i(87759),i(51410),i(76683),i(26012),n.registerLayout(r.curry(o,"bar")),n.extendComponentView({type:"polar"})},39253:function(e,t,i){i(12228),i(45371),i(26563)},26563:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(11011),a=i(76442),l=["axisLine","axisTickLabel","axisName"],c=r.extendComponentView({type:"radar",render:function(e,t,i){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes(),n=o.map(i,(function(e){var i=new s(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));o.each(n,(function(e){o.each(l,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes();if(i.length){var n=e.get("shape"),r=e.getModel("splitLine"),s=e.getModel("splitArea"),l=r.getModel("lineStyle"),c=s.getModel("areaStyle"),u=r.get("show"),h=s.get("show"),d=l.get("color"),f=c.get("color");d=o.isArray(d)?d:[d],f=o.isArray(f)?f:[f];var p=[],g=[];if("circle"===n)for(var v=i[0].getTicksCoords(),m=t.cx,y=t.cy,_=0;_<v.length;_++){if(u){var x=T(p,d,_);p[x].push(new a.Circle({shape:{cx:m,cy:y,r:v[_].coord}}))}if(h&&_<v.length-1){x=T(g,f,_);g[x].push(new a.Ring({shape:{cx:m,cy:y,r0:v[_].coord,r:v[_+1].coord}}))}}else{var b,w=o.map(i,(function(e,i){var n=e.getTicksCoords();return b=null==b?n.length-1:Math.min(n.length-1,b),o.map(n,(function(e){return t.coordToPoint(e.coord,i)}))})),S=[];for(_=0;_<=b;_++){for(var C=[],A=0;A<i.length;A++)C.push(w[A][_]);if(C[0]&&C.push(C[0].slice()),u){x=T(p,d,_);p[x].push(new a.Polyline({shape:{points:C}}))}if(h&&S){x=T(g,f,_-1);g[x].push(new a.Polygon({shape:{points:C.concat(S)}}))}S=C.slice().reverse()}}var M=l.getLineStyle(),k=c.getAreaStyle();o.each(g,(function(e,t){this.group.add(a.mergePath(e,{style:o.defaults({stroke:"none",fill:f[t%f.length]},k),silent:!0}))}),this),o.each(p,(function(e,t){this.group.add(a.mergePath(e,{style:o.defaults({fill:"none",stroke:d[t%d.length]},M),silent:!0}))}),this)}function T(e,t,i){var n=i%t.length;return e[n]=e[n]||[],n}}});e.exports=c},51410:function(e,t,i){i(35866),i(11681)},27220:function(e,t,i){var n=i(89231);i(8644),i(26007),i(51102),i(76683),i(86022),n.extendComponentView({type:"single"})},47226:function(e,t,i){var n=i(89231),r=i(41030);i(68851),i(86544),i(12650),i(18150),n.registerPreprocessor(r)},12650:function(e,t,i){var n=i(95289),r=i(61569),o=i(38738),s=r.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});n.mixin(s,o);var a=s;e.exports=a},18150:function(e,t,i){var n=i(95289),r=i(39587),o=i(13388),s=i(76442),a=i(61570),l=i(93915),c=i(8671),u=i(22864),h=u.createSymbol,d=i(8426),f=i(44261),p=i(8595),g=p.encodeHTML,v=n.bind,m=n.each,y=Math.PI,_=l.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,i,n){if(this.model=e,this.api=i,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,i),o=this._createGroup("mainGroup"),s=this._createGroup("labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return g(a.scale.getLabel(e))},m(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,o,a,e)}),this),this._renderAxisLabel(r,s,a,e),this._position(r,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var i=e.get("label.position"),n=e.get("orient"),r=x(e,t);null==i||"auto"===i?i="horizontal"===n?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":isNaN(i)&&(i={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]);var o,s,a,l,c={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},u={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:y/2},d="vertical"===n?r.height:r.width,f=e.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,v=p?f.get("itemGap"):0,m=g+v,_=e.get("label.rotate")||0;_=_*y/180;var b=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),S=p&&f.get("showPrevBtn",!0),C=p&&f.get("showNextBtn",!0),A=0,M=d;return"left"===b||"bottom"===b?(w&&(o=[0,0],A+=m),S&&(s=[A,0],A+=m),C&&(a=[M-g,0],M-=m)):(w&&(o=[M-g,0],M-=m),S&&(s=[0,0],A+=m),C&&(a=[M-g,0],M-=m)),l=[A,M],e.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:n,rotation:h[n],labelRotation:_,labelPosOpt:i,labelAlign:e.get("label.align")||c[n],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||u[n],playPosition:o,prevBtnPosition:s,nextBtnPosition:a,axisExtent:l,controlSize:g,controlGap:v}},_position:function(e,t){var i=this._mainGroup,n=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var s=o.create(),a=r.x,l=r.y+r.height;o.translate(s,s,[-a,-l]),o.rotate(s,s,-y/2),o.translate(s,s,[a,l]),r=r.clone(),r.applyTransform(s)}var c=m(r),u=m(i.getBoundingRect()),h=m(n.getBoundingRect()),d=i.position,f=n.position;f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(isNaN(p)){var g="+"===p?0:1;_(d,u,c,1,g),_(f,h,c,1,1-g)}else{g=p>=0?0:1;_(d,u,c,1,g),f[1]=d[1]+p}function v(e){var t=e.position;e.origin=[c[0][0]-t[0],c[1][0]-t[1]]}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,i,n,r){e[n]+=i[n][r]-t[n][r]}i.attr("position",d),n.attr("position",f),i.rotation=n.rotation=e.rotation,v(i),v(n)},_createAxis:function(e,t){var i=t.getData(),n=t.get("axisType"),r=d.createScaleByModel(t,n);r.getTicks=function(){return i.mapArray(["value"],(function(e){return e}))};var o=i.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var s=new c("value",r,e.axisExtent,n);return s.model=t,s},_createGroup:function(e){var t=this["_"+e]=new s.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,i,r){var o=i.getExtent();r.get("lineStyle.show")&&t.add(new s.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:n.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,i,n){var r=n.getData(),o=i.scale.getTicks();m(o,(function(e){var o=i.dataToCoord(e),a=r.getItemModel(e),l=a.getModel("itemStyle"),c=a.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:v(this._changeTimeline,this,e)},h=w(a,l,t,u);s.setHoverStyle(h,c.getItemStyle()),a.get("tooltip")?(h.dataIndex=e,h.dataModel=n):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(e,t,i,n){var r=i.getLabelModel();if(r.get("show")){var o=n.getData(),a=i.getViewLabels();m(a,(function(n){var r=n.tickValue,a=o.getItemModel(r),l=a.getModel("label"),c=a.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),h=new s.Text({position:[u,0],rotation:e.labelRotation-e.rotation,onclick:v(this._changeTimeline,this,r),silent:!1});s.setTextStyle(h.style,l,{text:n.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(h),s.setHoverStyle(h,s.setTextStyle({},c))}),this)}},_renderControl:function(e,t,i,n){var r=e.controlSize,o=e.rotation,a=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-r/2,r,r],u=n.getPlayState(),h=n.get("inverse",!0);function d(e,i,u,h){if(e){var d={position:e,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:a,onclick:u},f=b(n,i,c,d);t.add(f),s.setHoverStyle(f,l)}}d(e.nextBtnPosition,"controlStyle.nextIcon",v(this._changeTimeline,this,h?"-":"+")),d(e.prevBtnPosition,"controlStyle.prevIcon",v(this._changeTimeline,this,h?"+":"-")),d(e.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),v(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(e,t,i,n){var r=n.getData(),o=n.getCurrentIndex(),s=r.getItemModel(o).getModel("checkpointStyle"),a=this,l={onCreate:function(e){e.draggable=!0,e.drift=v(a._handlePointerDrag,a),e.ondragend=v(a._handlePointerDragend,a),S(e,o,i,n,!0)},onUpdate:function(e){S(e,o,i,n)}};this._currentPointer=w(s,s,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var i=this._toAxisCoord(e)[0],n=this._axis,r=f.asc(n.getExtent().slice());i>r[1]&&(i=r[1]),i<r[0]&&(i=r[0]),this._currentPointer.position[0]=i,this._currentPointer.dirty();var o=this._findNearestTick(i),s=this.model;(t||o!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(o)},_doPlayStop:function(){function e(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(v(e,this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return s.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,i=this.model.getData(),n=1/0,r=this._axis;return i.each(["value"],(function(i,o){var s=r.dataToCoord(i),a=Math.abs(s-e);a<n&&(n=a,t=o)})),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}});function x(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function b(e,t,i,n){var o=n.style,a=s.createIcon(e.get(t),n||{},new r(i[0],i[1],i[2],i[3]));return o&&a.setStyle(o),a}function w(e,t,i,r,o,s){var a=t.get("color");if(o)o.setColor(a),i.add(o),s&&s.onUpdate(o);else{var l=e.get("symbol");o=h(l,-1,-1,2,2,a),o.setStyle("strokeNoScale",!0),i.add(o),s&&s.onCreate(o)}var c=t.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(c),r=n.merge({rectHover:!0,z2:100},r,!0);var u=e.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],u[0]/=2,u[1]/=2,r.scale=u;var d=e.get("symbolOffset");if(d){var p=r.position=r.position||[0,0];p[0]+=f.parsePercent(d[0],u[0]),p[1]+=f.parsePercent(d[1],u[1])}var g=e.get("symbolRotate");return r.rotation=(g||0)*Math.PI/180||0,o.attr(r),o.updateTransform(),o}function S(e,t,i,n,r){if(!e.dragging){var o=n.getModel("checkpointStyle"),s=i.dataToCoord(n.getData().get(["value"],t));r||!o.get("animation",!0)?e.attr({position:[s,0]}):(e.stopAnimation(!0),e.animateTo({position:[s,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}e.exports=_},8671:function(e,t,i){var n=i(95289),r=i(31490),o=function(e,t,i,n){r.call(this,e,t,i),this.type=n||"value",this.model=null};o.prototype={constructor:o,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},n.inherits(o,r);var s=o;e.exports=s},61569:function(e,t,i){var n=i(95289),r=i(85532),o=i(5628),s=i(63199),a=r.extend({type:"timeline",layoutMode:"box",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:[]},init:function(e,t,i){this._data,this._names,this.mergeDefaultAndTheme(e,i),this._initData()},mergeOption:function(e){a.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],i=e.axisType,r=this._names=[];if("category"===i){var a=[];n.each(t,(function(e,t){var i,o=s.getDataItemValue(e);n.isObject(e)?(i=n.clone(e),i.value=t):i=t,a.push(i),n.isString(o)||null!=o&&!isNaN(o)||(o=""),r.push(o+"")})),t=a}var l={category:"ordinal",time:"time"}[i]||"number",c=this._data=new o([{name:"value",type:l}],this);c.initData(t,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=a;e.exports=l},93915:function(e,t,i){var n=i(18328),r=n.extend({type:"timeline"});e.exports=r},41030:function(e,t,i){var n=i(95289);function r(e){var t=e&&e.timeline;n.isArray(t)||(t=t?[t]:[]),n.each(t,(function(e){e&&o(e)}))}function o(e){var t=e.type,i={number:"value",time:"time"};if(i[t]&&(e.axisType=i[t],delete e.type),s(e),a(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});a(r,"position")||(r.position=e.controlPosition),"none"!==r.position||a(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}n.each(e.data||[],(function(e){n.isObject(e)&&!n.isArray(e)&&(!a(e,"value")&&a(e,"name")&&(e.value=e.name),s(e))}))}function s(e){var t=e.itemStyle||(e.itemStyle={}),i=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},o=r.normal||(r.normal={}),s={normal:1,emphasis:1};n.each(r,(function(e,t){s[t]||a(o,t)||(o[t]=e)})),i.label&&!a(r,"emphasis")&&(r.emphasis=i.label,delete i.label)}function a(e,t){return e.hasOwnProperty(t)}e.exports=r},86544:function(e,t,i){var n=i(89231),r=i(95289);n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),t.resetOption("timeline"),r.defaults({currentIndex:i.option.currentIndex},e)})),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var i=t.getComponent("timeline");i&&null!=e.playState&&i.setPlayState(e.playState)}))},68851:function(e,t,i){var n=i(85532);n.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},56315:function(e,t,i){var n=i(95289),r=i(89231),o=i(76442),s=i(61570),a=s.getLayoutRect,l=i(8595),c=l.windowOpen;r.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),r.extendComponentView({type:"title",render:function(e,t,i){if(this.group.removeAll(),e.get("show")){var r=this.group,s=e.getModel("textStyle"),l=e.getModel("subtextStyle"),u=e.get("textAlign"),h=n.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),d=new o.Text({style:o.setTextStyle({},s,{text:e.get("text"),textFill:s.getTextColor()},{disableBox:!0}),z2:10}),f=d.getBoundingRect(),p=e.get("subtext"),g=new o.Text({style:o.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:f.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);d.silent=!v&&!y,g.silent=!m&&!y,v&&d.on("click",(function(){c(v,"_"+e.get("target"))})),m&&g.on("click",(function(){c(m,"_"+e.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(d),p&&r.add(g);var _=r.getBoundingRect(),x=e.getBoxLayoutParams();x.width=_.width,x.height=_.height;var b=a(x,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?b.x+=b.width:"center"===u&&(b.x+=b.width/2)),h||(h=e.get("top")||e.get("bottom"),"center"===h&&(h="middle"),"bottom"===h?b.y+=b.height:"middle"===h&&(b.y+=b.height/2),h=h||"top"),r.attr("position",[b.x,b.y]);var w={textAlign:u,textVerticalAlign:h};d.setStyle(w),g.setStyle(w),_=r.getBoundingRect();var S=b.margin,C=e.getItemStyle(["color","opacity"]);C.fill=e.get("backgroundColor");var A=new o.Rect({shape:{x:_.x-S[3],y:_.y-S[0],width:_.width+S[1]+S[3],height:_.height+S[0]+S[2],r:e.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});r.add(A)}}})},63886:function(e,t,i){i(70265),i(28419),i(80374),i(14723),i(16911),i(34765),i(24658)},70265:function(e,t,i){var n=i(89231),r=i(95289),o=i(23932),s=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){s.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,(function(e,t){var i=o.get(t);i&&r.merge(e,i.defaultOption)}))},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}}}),a=s;e.exports=a},28419:function(e,t,i){var n=i(89231),r=i(95289),o=i(43407),s=i(23932),a=i(76442),l=i(40590),c=i(1032),u=i(13785),h=n.extendComponentView({type:"toolbox",render:function(e,t,i,n){var h=this.group;if(h.removeAll(),e.get("show")){var f=+e.get("itemSize"),p=e.get("feature")||{},g=this._features||(this._features={}),v=[];r.each(p,(function(e,t){v.push(t)})),new c(this._featureNames||[],v).add(m).update(m).remove(r.curry(m,null)).execute(),this._featureNames=v,u.layout(h,e,i),h.add(u.makeBackground(h.getBoundingRect(),e)),h.eachChild((function(e){var t=e.__title,n=e.hoverStyle;if(n&&t){var r=o.getBoundingRect(t,o.makeFont(n)),s=e.position[0]+h.position[0],a=e.position[1]+h.position[1]+f,l=!1;a+r.height>i.getHeight()&&(n.textPosition="top",l=!0);var c=l?-5-r.height:f+8;s+r.width/2>i.getWidth()?(n.textPosition=["100%",c],n.textAlign="right"):s-r.width/2<0&&(n.textPosition=[0,c],n.textAlign="left")}}))}function m(r,o){var a,c=v[r],u=v[o],h=p[c],f=new l(h,e,e.ecModel);if(n&&null!=n.newTitle&&n.featureName===c&&(h.title=n.newTitle),c&&!u){if(d(c))a={model:f,onclick:f.option.onclick,featureName:c};else{var m=s.get(c);if(!m)return;a=new m(f,t,i)}g[c]=a}else{if(a=g[u],!a)return;a.model=f,a.ecModel=t,a.api=i}c||!u?f.get("show")&&!a.unusable?(y(f,a,c),f.setIconStatus=function(e,t){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[e]=t,n[e]&&n[e].trigger(t)},a.render&&a.render(f,t,i,n)):a.remove&&a.remove(t,i):a.dispose&&a.dispose(t,i)}function y(n,o,s){var l=n.getModel("iconStyle"),c=n.getModel("emphasis.iconStyle"),u=o.getIcons?o.getIcons():n.get("icon"),d=n.get("title")||{};if("string"===typeof u){var p=u,g=d;u={},d={},u[s]=p,d[s]=g}var v=n.iconPaths={};r.each(u,(function(s,u){var p=a.createIcon(s,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(l.getItemStyle()),p.hoverStyle=c.getItemStyle(),p.setStyle({text:d[u],textAlign:c.get("textAlign"),textBorderRadius:c.get("textBorderRadius"),textPadding:c.get("textPadding"),textFill:null});var g=e.getModel("tooltip");g&&g.get("show")&&p.attr("tooltip",r.extend({content:d[u],formatter:g.get("formatter",!0)||function(){return d[u]},formatterParams:{componentType:"toolbox",name:u,title:d[u],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),a.setHoverStyle(p),e.get("showTitle")&&(p.__title=d[u],p.on("mouseover",(function(){var t=c.getItemStyle(),i="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";p.setStyle({textFill:c.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:c.get("textBackgroundColor"),textPosition:c.get("textPosition")||i})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(n.get("iconStatus."+u)||"normal"),h.add(p),p.on("click",r.bind(o.onclick,o,t,i,u)),v[u]=p}))}},updateView:function(e,t,i,n){r.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,i,n)}))},remove:function(e,t){r.each(this._features,(function(i){i.remove&&i.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){r.each(this._features,(function(i){i.dispose&&i.dispose(e,t)}))}});function d(e){return 0===e.indexOf("my")}e.exports=h},23932:function(e,t){var i={};function n(e,t){i[e]=t}function r(e){return i[e]}t.register=n,t.get=r},81496:function(e,t,i){var n=i(95289),r=i(23932),o=i(49777),s=o.toolbox.brush;function a(e,t,i){this.model=e,this.ecModel=t,this.api=i,this._brushType,this._brushMode}a.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:n.clone(s.title)};var l=a.prototype;l.render=l.updateView=function(e,t,i){var r,o,s;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,o=e.brushOption.brushMode||"single",s|=e.areas.length})),this._brushType=r,this._brushMode=o,n.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?s:t===r)?"emphasis":"normal")}))},l.getIcons=function(){var e=this.model,t=e.get("icon",!0),i={};return n.each(e.get("type",!0),(function(e){t[e]&&(i[e]=t[e])})),i},l.onclick=function(e,t,i){var n=this._brushType,r=this._brushMode;"clear"===i?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===r?"single":"multiple":r}})},r.register("brush",a);var c=a;e.exports=c},16911:function(e,t,i){var n=i(89231),r=i(95289),o=i(88665),s=i(49777),a=i(23932),l=s.toolbox.dataView,c=new Array(60).join("-"),u="\t";function h(e){var t={},i=[],n=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(e)}else i.push(e)}})),{seriesGroupByCategoryAxis:t,other:i,meta:n}}function d(e){var t=[];return r.each(e,(function(e,i){var n=e.categoryAxis,o=e.valueAxis,s=o.dim,a=[" "].concat(r.map(e.series,(function(e){return e.name}))),l=[n.model.getCategories()];r.each(e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(s),(function(e){return e})))}));for(var c=[a.join(u)],h=0;h<l[0].length;h++){for(var d=[],f=0;f<l.length;f++)d.push(l[f][h]);c.push(d.join(u))}t.push(c.join("\n"))})),t.join("\n\n"+c+"\n\n")}function f(e){return r.map(e,(function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),s=0;s<e-1;s++)n[s]=arguments[s];i.push((o?o+u:"")+n.join(u))})),i.join("\n")})).join("\n\n"+c+"\n\n")}function p(e){var t=h(e);return{value:r.filter([d(t.seriesGroupByCategoryAxis),f(t.other)],(function(e){return e.replace(/[\n\t\s]/g,"")})).join("\n\n"+c+"\n\n"),meta:t.meta}}function g(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function v(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(u)>=0)return!0}var m=new RegExp("["+u+"]+","g");function y(e){for(var t=e.split(/\n+/g),i=g(t.shift()).split(m),n=[],o=r.map(i,(function(e){return{name:e,data:[]}})),s=0;s<t.length;s++){var a=g(t[s]).split(m);n.push(a.shift());for(var l=0;l<a.length;l++)o[l]&&(o[l].data[s]=a[l])}return{series:o,categories:n}}function _(e){for(var t=e.split(/\n+/g),i=g(t.shift()),n=[],r=0;r<t.length;r++){var o=g(t[r]);if(o){var s,a=o.split(m),l="",c=!1;isNaN(a[0])?(c=!0,l=a[0],a=a.slice(1),n[r]={name:l,value:[]},s=n[r].value):s=n[r]=[];for(var u=0;u<a.length;u++)s.push(+a[u]);1===s.length&&(c?n[r].value=s[0]:n[r]=s[0])}}return{name:i,data:n}}function x(e,t){var i=e.split(new RegExp("\n*"+c+"\n*","g")),n={series:[]};return r.each(i,(function(e,i){if(v(e)){var r=y(e),o=t[i],s=o.axisDim+"Axis";o&&(n[s]=n[s]||[],n[s][o.axisIndex]={data:r.categories},n.series=n.series.concat(r.series))}else{r=_(e);n.series.push(r)}})),n}function b(e){this._dom=null,this.model=e}function w(e,t){return r.map(e,(function(e,i){var n=t&&t[i];if(r.isObject(n)&&!r.isArray(n)){var o=r.isObject(e)&&!r.isArray(e);o||(e={value:e});var s=null!=n.name&&null==e.name;return e=r.defaults(e,n),s&&delete e.name,e}return e}))}b.defaultOption={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:r.clone(l.title),lang:r.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},b.prototype.onclick=function(e,t){var i=t.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var s=document.createElement("div");s.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",s.style.backgroundColor=n.get("backgroundColor")||"#fff";var a=document.createElement("h4"),l=n.get("lang")||[];a.innerHTML=l[0]||n.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=n.get("textColor");var c=document.createElement("div"),u=document.createElement("textarea");c.style.cssText="display:block;width:100%;overflow:auto;";var h=n.get("optionToContent"),d=n.get("contentToOption"),f=p(e);if("function"===typeof h){var g=h(t.getOption());"string"===typeof g?c.innerHTML=g:r.isDom(g)&&c.appendChild(g)}else c.appendChild(u),u.readOnly=n.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=n.get("textColor"),u.style.borderColor=n.get("textareaBorderColor"),u.style.backgroundColor=n.get("textareaColor"),u.value=f.value;var v=f.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var w=this;function S(){i.removeChild(s),w._dom=null}o.addEventListener(_,"click",S),o.addEventListener(b,"click",(function(){var e;try{e="function"===typeof d?d(c,t.getOption()):x(u.value,v)}catch(i){throw S(),new Error("Data view format error "+i)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),S()})),_.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y,_.style.cssText=y,!n.get("readOnly")&&m.appendChild(b),m.appendChild(_),s.appendChild(a),s.appendChild(c),s.appendChild(m),c.style.height=i.clientHeight-80+"px",i.appendChild(s),this._dom=s},b.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},b.prototype.dispose=function(e,t){this.remove(e,t)},a.register("dataView",b),n.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var i=[];r.each(e.newOption.series,(function(e){var n=t.getSeriesByName(e.name)[0];if(n){var o=n.get("data");i.push({name:e.name,data:w(e.data,o)})}else i.push(r.extend({type:"scatter"},e))})),t.mergeOption(r.defaults({series:i},e.newOption))}));var S=b;e.exports=S},34765:function(e,t,i){var n=i(89231),r=i(95289),o=i(33478),s=i(74080),a=i(5693),l=i(96748),c=i(49777),u=i(23932);i(21354);var h=c.toolbox.dataZoom,d=r.each,f="\0_ec_\0toolbox-dataZoom_";function p(e,t,i){(this._brushController=new o(i.getZr())).on("brush",r.bind(this._onBrush,this)).mount(),this._isZoomActive}p.defaultOption={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:r.clone(h.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var g=p.prototype;g.render=function(e,t,i,n){this.model=e,this.ecModel=t,this.api=i,_(e,t,this,n,i),y(e,t)},g.onclick=function(e,t,i){v[i].call(this)},g.remove=function(e,t){this._brushController.unmount()},g.dispose=function(e,t){this._brushController.dispose()};var v={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(a.pop(this.ecModel))}};function m(e){var t={};return r.each(["xAxisIndex","yAxisIndex"],(function(i){t[i]=e[i],null==t[i]&&(t[i]="all"),(!1===t[i]||"none"===t[i])&&(t[i]=[])})),t}function y(e,t){e.setIconStatus("back",a.count(t)>1?"emphasis":"normal")}function _(e,t,i,n,r){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new s(m(e.option),t,{include:["grid"]});i._brushController.setPanels(a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!o&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}g._onBrush=function(e,t){if(t.isEnd&&e.length){var i={},n=this.ecModel;this._brushController.updateCovers([]);var r=new s(m(this.model.option),n,{include:["grid"]});r.matchOutputRanges(e,n,(function(e,t,i){if("cartesian2d"===i.type){var n=e.brushType;"rect"===n?(o("x",i,t[0]),o("y",i,t[1])):o({lineX:"x",lineY:"y"}[n],i,t)}})),a.push(n,i),this._dispatchZoomAction(i)}function o(e,t,r){var o=t.getAxis(e),s=o.model,a=c(e,s,n),u=a.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=l(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),a&&(i[a.id]={dataZoomId:a.id,startValue:r[0],endValue:r[1]})}function c(e,t,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){var r=i.getAxisModel(e,t.componentIndex);r&&(n=i)})),n}},g._dispatchZoomAction=function(e){var t=[];d(e,(function(e,i){t.push(r.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},u.register("dataZoom",p),n.registerPreprocessor((function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);r.isArray(t)||(e.dataZoom=t=[t]);var i=e.toolbox;if(i&&(r.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;o("xAxis",n),o("yAxis",n)}}function o(e,i){if(i){var n=e+"Index",o=i[n];null==o||"all"===o||r.isArray(o)||(o=!1===o||"none"===o?[]:[o]),s(e,(function(s,a){if(null==o||"all"===o||-1!==r.indexOf(o,a)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:f+e+a};l[n]=a,t.push(l)}}))}}function s(t,i){var n=e[t];r.isArray(n)||(n=n?[n]:[]),d(n,i)}}));var x=p;e.exports=x},14723:function(e,t,i){var n=i(89231),r=i(95289),o=i(49777),s=i(23932),a=o.toolbox.magicType,l="__ec_magicType_stack__";function c(e){this.model=e}c.defaultOption={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:r.clone(a.title),option:{},seriesIndex:{}};var u=c.prototype;u.getIcons=function(){var e=this.model,t=e.get("icon"),i={};return r.each(e.get("type"),(function(e){t[e]&&(i[e]=t[e])})),i};var h={line:function(e,t,i,n){if("bar"===e)return r.merge({id:t,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(e,t,i,n){if("line"===e)return r.merge({id:t,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(e,t,i,n){var o=i.get("stack")===l;if("line"===e||"bar"===e)return n.setIconStatus("stack",o?"normal":"emphasis"),r.merge({id:t,stack:o?"":l},n.get("option.stack")||{},!0)}},d=[["line","bar"],["stack"]];u.onclick=function(e,t,i){var n=this.model,o=n.get("seriesIndex."+i);if(h[i]){var s,c={series:[]},u=function(t){var o=t.subType,s=t.id,a=h[i](o,s,t,n);a&&(r.defaults(a,t.option),c.series.push(a));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var d=u.dim,f=d+"Axis",p=e.queryComponents({mainType:f,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],g=p.componentIndex;c[f]=c[f]||[];for(var v=0;v<=g;v++)c[f][g]=c[f][g]||{};c[f][g].boundaryGap="bar"===i}}};if(r.each(d,(function(e){r.indexOf(e,i)>=0&&r.each(e,(function(e){n.setIconStatus(e,"normal")}))})),n.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},u),"stack"===i){var f=c.series&&c.series[0]&&c.series[0].stack===l;s=f?r.merge({stack:a.title.tiled},a.title):r.clone(a.title)}t.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:s,featureName:"magicType"})}},n.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),s.register("magicType",c);var f=c;e.exports=f},24658:function(e,t,i){var n=i(89231),r=i(5693),o=i(49777),s=i(23932),a=o.toolbox.restore;function l(e){this.model=e}l.defaultOption={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:a.title};var c=l.prototype;c.onclick=function(e,t,i){r.clear(e),t.dispatchAction({type:"restore",from:this.uid})},s.register("restore",l),n.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var u=l;e.exports=u},80374:function(e,t,i){var n=i(87190),r=i(49777),o=i(23932),s=r.toolbox.saveAsImage;function a(e){this.model=e}a.defaultOption={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:s.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:s.lang.slice()},a.prototype.unusable=!n.canvasSupported;var l=a.prototype;l.onclick=function(e,t){var i=this.model,r=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),s=o?"svg":i.get("type",!0)||"png",a=t.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!==typeof MouseEvent||n.browser.ie||n.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(a.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+s)}else{var d=i.get("lang"),f='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(d&&d[0]||"")+'" /></body>',p=window.open();p.document.write(f)}else{var g=document.createElement("a");g.download=r+"."+s,g.target="_blank",g.href=a;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(v)}},o.register("saveAsImage",a);var c=a;e.exports=c},67770:function(e,t,i){var n=i(89231);i(76683),i(13281),i(97371),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},47561:function(e,t,i){var n=i(95289),r=i(56607),o=i(88665),s=i(105),a=i(87190),l=i(8595),c=n.each,u=l.toCamelCase,h=["","-webkit-","-moz-","-o-"],d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function f(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+t+",top "+e+"s "+t;return n.map(h,(function(e){return e+"transition:"+i})).join(";")}function p(e){var t=[],i=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var r=e.get("lineHeight");null==r&&(r=Math.round(3*i/2)),i&&t.push("line-height:"+r+"px");var o=e.get("textShadowColor"),s=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return s&&t.push("text-shadow:"+a+"px "+l+"px "+s+"px "+o),c(["decoration","align"],(function(i){var n=e.get(i);n&&t.push("text-"+i+":"+n)})),t.join(";")}function g(e){var t=[],i=e.get("transitionDuration"),n=e.get("backgroundColor"),o=e.getModel("textStyle"),s=e.get("padding");return i&&t.push(f(i)),n&&(a.canvasSupported?t.push("background-Color:"+n):(t.push("background-Color:#"+r.toHex(n)),t.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],(function(i){var n="border-"+i,r=u(n),o=e.get(r);null!=o&&t.push(n+":"+o+("color"===i?"":"px"))})),t.push(p(o)),null!=s&&t.push("padding:"+l.normalizeCssArray(s).join("px ")+"px"),t.join(";")+";"}function v(e,t,i,n,r){var o=t&&t.painter;if(i){var a=o&&o.getViewportRoot();a&&s.transformLocalCoord(e,a,document.body,n,r)}else{e[0]=n,e[1]=r;var l=o&&o.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function m(e,t,i){if(a.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),s=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],v(this._styleCoord,r,s,t.getWidth()/2,t.getHeight()/2),s?document.body.appendChild(n):e.appendChild(n),this._container=e,this._show=!1,this._hideTimeout;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=r.handler,i=r.painter.getViewportRoot();o.normalizeEvent(i,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}m.prototype={constructor:m,_enterable:!0,update:function(e){var t=this._container,i=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative");var r=e.get("alwaysShowContent");r&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],i=e*this._zr.getWidth(),n=t*this._zr.getHeight();this.moveTo(i,n)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,i=this._styleCoord;t.style.cssText=d+g(e)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var i=this._styleCoord;v(i,this._zr,this._appendToBody,e,t);var n=this.el.style;n.left=i[0]+"px",n.top=i[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(e+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),t+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:e,height:t}}};var y=m;e.exports=y},13281:function(e,t,i){var n=i(89231),r=n.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=r},52739:function(e,t,i){var n=i(95289),r=i(21927),o=i(76442);function s(e,t,i,n){e[0]=i,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function a(e){var t=this._zr=e.getZr();this._styleCoord=[0,0,0,0],s(this._styleCoord,t,e.getWidth()/2,e.getHeight()/2),this._show=!1,this._hideTimeout}a.prototype={constructor:a,_enterable:!0,update:function(e){var t=e.get("alwaysShowContent");t&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],i=e*this._zr.getWidth(),n=t*this._zr.getHeight();this.moveTo(i,n)},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,i){this.el&&this._zr.remove(this.el);var n={},s=e,a="{marker",l="|}",c=s.indexOf(a);while(c>=0){var u=s.indexOf(l),h=s.substr(c+a.length,u-c-a.length);h.indexOf("sub")>-1?n["marker"+h]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[h],textOffset:[3,0]}:n["marker"+h]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[h]},s=s.substr(u+1),c=s.indexOf("{marker")}var d=i.getModel("textStyle"),f=d.get("fontSize"),p=i.get("textLineHeight");null==p&&(p=Math.round(3*f/2)),this.el=new r({style:o.setTextStyle({},d,{rich:n,text:e,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding"),textLineHeight:p}),z:i.get("z")}),this._zr.add(this.el);var g=this;this.el.on("mouseover",(function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0})),this.el.on("mouseout",(function(){g._enterable&&g._show&&g.hideLater(g._hideDelay),g._inContent=!1}))},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){if(this.el){var i=this._styleCoord;s(i,this._zr,e,t),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var l=a;e.exports=l},97371:function(e,t,i){var n=i(89231),r=i(95289),o=i(87190),s=i(47561),a=i(52739),l=i(8595),c=i(44261),u=i(76442),h=i(13390),d=i(61570),f=i(40590),p=i(22921),g=i(8426),v=i(67419),m=i(63199),y=m.getTooltipRenderMode,_=r.bind,x=r.each,b=c.parsePercent,w=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),S=n.extendComponentView({type:"tooltip",init:function(e,t){if(!o.node){var i,n=e.getComponent("tooltip"),r=n.get("renderMode");this._renderMode=y(r),"html"===this._renderMode?(i=new s(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)}),this._newLine="<br/>"):(i=new a(t),this._newLine="\n"),this._tooltipContent=i}},render:function(e,t,i){if(!o.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");p.register("itemTooltip",this._api,_((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(e,t,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(e,t,i,n){if(n.from!==this.uid&&!o.node){var r=A(n,i);this._ticket="";var s=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var a=w;a.position=[n.x,n.y],a.update(),a.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:a},r)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(e,t,i,n))return;var l=h(n,t),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:n.position,target:l.el},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},manuallyHideTip:function(e,t,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(A(n,i))},_manuallyAxisShowTip:function(e,t,i,n){var r=n.seriesIndex,o=n.dataIndex,s=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=s){var a=t.getSeriesByIndex(r);if(a){var l=a.getData();e=C([l.getItemModel(o),a,(a.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},_tryShow:function(e,t){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,e):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,i,t)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,i,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var i=e.get("showDelay");t=r.bind(t,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(t,i):t()},_showAxisTooltip:function(e,t){var i=this._ecModel,n=this._tooltipModel,o=[t.offsetX,t.offsetY],s=[],a=[],c=C([t.tooltipOption,n]),u=this._renderMode,h=this._newLine,d={};x(e,(function(e){x(e.dataByAxis,(function(e){var t=i.getComponent(e.axisDim+"Axis",e.axisIndex),n=e.value,o=[];if(t&&null!=n){var c=v.getValueLabel(n,t.axis,i,e.seriesDataIndices,e.valueLabelOpt);r.each(e.seriesDataIndices,(function(s){var l=i.getSeriesByIndex(s.seriesIndex),h=s.dataIndexInside,f=l&&l.getDataParams(h);if(f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=g.getAxisRawValue(t.axis,n),f.axisValueLabel=c,f){a.push(f);var p,v=l.formatTooltip(h,!0,null,u);if(r.isObject(v)){p=v.html;var m=v.markers;r.merge(d,m)}else p=v;o.push(p)}}));var f=c;"html"!==u?s.push(o.join(h)):s.push((f?l.encodeHTML(f)+h:"")+o.join(h))}}))}),this),s.reverse(),s=s.join(this._newLine+this._newLine);var f=t.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,f,o[0],o[1],this._tooltipContent,a):this._showTooltipContent(c,s,a,Math.random(),o[0],o[1],f,void 0,d)}))},_showSeriesItemTooltip:function(e,t,i){var n=this._ecModel,o=t.seriesIndex,s=n.getSeriesByIndex(o),a=t.dataModel||s,l=t.dataIndex,c=t.dataType,u=a.getData(c),h=C([u.getItemModel(l),a,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var f,p,g=a.getDataParams(l,c),v=a.formatTooltip(l,!1,c,this._renderMode);r.isObject(v)?(f=v.html,p=v.markers):(f=v,p=null);var m="item_"+a.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,f,g,m,e.offsetX,e.offsetY,e.position,e.target,p)})),i({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(e,t,i){var n=t.tooltip;if("string"===typeof n){var r=n;n={content:r,formatter:r}}var o=new f(n,this._tooltipModel,this._ecModel),s=o.get("content"),a=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,s,o.get("formatterParams")||{},a,e.offsetX,e.offsetY,e.position,t)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,i,n,r,o,s,a,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,h=e.get("formatter");s=s||e.get("position");var d=t;if(h&&"string"===typeof h)d=l.formatTpl(h,i,!0);else if("function"===typeof h){var f=_((function(t,n){t===this._ticket&&(u.setContent(n,c,e),this._updatePosition(e,s,r,o,u,i,a))}),this);this._ticket=n,d=h(i,n,f)}u.setContent(d,c,e),u.show(e),this._updatePosition(e,s,r,o,u,i,a)}},_updatePosition:function(e,t,i,n,o,s,a){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=o.getSize(),h=e.get("align"),f=e.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),"function"===typeof t&&(t=t([i,n],s,o.el,p,{viewSize:[l,c],contentSize:u.slice()})),r.isArray(t))i=b(t[0],l),n=b(t[1],c);else if(r.isObject(t)){t.width=u[0],t.height=u[1];var g=d.getLayoutRect(t,{width:l,height:c});i=g.x,n=g.y,h=null,f=null}else if("string"===typeof t&&a){var v=T(t,p,u);i=v[0],n=v[1]}else{v=M(i,n,o,l,c,h?null:20,f?null:20);i=v[0],n=v[1]}if(h&&(i-=I(h)?u[0]/2:"right"===h?u[0]:0),f&&(n-=I(f)?u[1]/2:"bottom"===f?u[1]:0),e.get("confine")){v=k(i,n,o,l,c);i=v[0],n=v[1]}o.moveTo(i,n)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,i=!!t&&t.length===e.length;return i&&x(t,(function(t,n){var r=t.dataByAxis||{},o=e[n]||{},s=o.dataByAxis||[];i&=r.length===s.length,i&&x(r,(function(e,t){var n=s[t]||{},r=e.seriesDataIndices||[],o=n.seriesDataIndices||[];i&=e.value===n.value&&e.axisType===n.axisType&&e.axisId===n.axisId&&r.length===o.length,i&&x(r,(function(e,t){var n=o[t];i&=e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=e,!!i},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){o.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",t))}});function C(e){var t=e.pop();while(e.length){var i=e.pop();i&&(f.isInstance(i)&&(i=i.get("tooltip",!0)),"string"===typeof i&&(i={formatter:i}),t=new f(i,t,t.ecModel))}return t}function A(e,t){return e.dispatchAction||r.bind(t.dispatchAction,t)}function M(e,t,i,n,r,o,s){var a=i.getOuterSize(),l=a.width,c=a.height;return null!=o&&(e+l+o>n?e-=l+o:e+=o),null!=s&&(t+c+s>r?t-=c+s:t+=s),[e,t]}function k(e,t,i,n,r){var o=i.getOuterSize(),s=o.width,a=o.height;return e=Math.min(e+s,n)-s,t=Math.min(t+a,r)-a,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function T(e,t,i){var n=i[0],r=i[1],o=5,s=0,a=0,l=t.width,c=t.height;switch(e){case"inside":s=t.x+l/2-n/2,a=t.y+c/2-r/2;break;case"top":s=t.x+l/2-n/2,a=t.y-r-o;break;case"bottom":s=t.x+l/2-n/2,a=t.y+c+o;break;case"left":s=t.x-n-o,a=t.y+c/2-r/2;break;case"right":s=t.x+l+o,a=t.y+c/2-r/2}return[s,a]}function I(e){return"center"===e||"middle"===e}e.exports=S},24823:function(e,t,i){i(43416),i(84845)},43416:function(e,t,i){var n=i(89231),r=i(2925);i(89514),i(61043),i(74660),i(49040),i(12028),n.registerPreprocessor(r)},84845:function(e,t,i){var n=i(89231),r=i(2925);i(89514),i(61043),i(84893),i(94719),i(12028),n.registerPreprocessor(r)},74660:function(e,t,i){var n=i(95289),r=i(96517),o=i(44261),s=[20,140],a=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){a.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){a.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=s[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=s[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):n.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),n.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=o.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,i=this.getExtent();return(t[0]<=i[0]||t[0]<=e)&&(t[1]>=i[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),(function(t,i){e[0]<=t&&t<=e[1]&&n.push(i)}),this),t.push({seriesId:i.id,dataIndex:n})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),i=l(this,"inRange",this.option.range.slice()),n=[];function r(t,i){n.push({value:t,color:e(t,i)})}for(var o=0,s=0,a=i.length,c=t.length;s<c&&(!i.length||t[s]<=i[0]);s++)t[s]<i[o]&&r(t[s],"outOfRange");for(var u=1;o<a;o++,u=0)u&&n.length&&r(i[o],"outOfRange"),r(i[o],"inRange");for(u=1;s<c;s++)(!i.length||i[i.length-1]<t[s])&&(u&&(n.length&&r(n[n.length-1].value,"outOfRange"),u=0),r(t[s],"outOfRange"));var h=n.length;return{stops:n,outerColors:[h?n[0].color:"transparent",h?n[h-1].color:"transparent"]}}});function l(e,t,i){if(i[0]===i[1])return i.slice();for(var n=200,r=(i[1]-i[0])/n,o=i[0],s=[],a=0;a<=n&&o<i[1];a++)s.push(o),o+=r;return s.push(i[1]),s}var c=a;e.exports=c},49040:function(e,t,i){var n=i(95289),r=i(25113),o=i(88665),s=i(30071),a=i(76442),l=i(44261),c=i(96748),u=i(2054),h=i(63199),d=l.linearMap,f=n.each,p=Math.min,g=Math.max,v=12,m=6,y=s.extend({type:"visualMap.continuous",init:function(){y.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var i=e.get("text");this._renderEndsText(t,i,0),this._renderEndsText(t,i,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,i){if(t){var n=t[1-i];n=null!=n?n+"":"";var r=this.visualMapModel,o=r.get("textGap"),s=r.itemSize,l=this._shapes.barGroup,c=this._applyTransform([s[0]/2,0===i?-o:s[1]+o],l),u=this._applyTransform(0===i?"bottom":"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new a.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===h?"middle":u,textAlign:"horizontal"===h?u:"center",text:n,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,i=this._shapes,r=t.itemSize,o=this._orient,s=this._useHandle,a=u.getItemAlign(t,this.api,r),l=i.barGroup=this._createBarGroup(a);l.add(i.outOfRange=_()),l.add(i.inRange=_(null,s?C(this._orient):null,n.bind(this._dragHandle,this,"all",!1),n.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("国"),h=g(c.width,c.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(l,0,r,h,o,a),this._createHandle(l,1,r,h,o,a)),this._createIndicator(l,r,h,o),e.add(l)},_createHandle:function(e,t,i,r,s){var l=n.bind(this._dragHandle,this,t,!1),c=n.bind(this._dragHandle,this,t,!0),u=_(x(t,r),C(this._orient),l,c);u.position[0]=i[0],e.add(u);var h=this.visualMapModel.textStyleModel,d=new a.Text({draggable:!0,drift:l,onmousemove:function(e){o.stop(e.event)},ondragend:c,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(d);var f=["horizontal"===s?r/2:1.5*r,"horizontal"===s?0===t?-1.5*r:1.5*r:0===t?-r/2:r/2],p=this._shapes;p.handleThumbs[t]=u,p.handleLabelPoints[t]=f,p.handleLabels[t]=d},_createIndicator:function(e,t,i,n){var r=_([[0,0]],"move");r.position[0]=t[0],r.attr({invisible:!0,silent:!0}),e.add(r);var o=this.visualMapModel.textStyleModel,s=new a.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(s);var l=["horizontal"===n?i/2:m+3,0],c=this._shapes;c.indicator=r,c.indicatorLabel=s,c.indicatorLabelPoint=l},_dragHandle:function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(e,r[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():S(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[d(t[0],i,n,!0),d(t[1],i,n,!0)]},_updateInterval:function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];c(t,n,r,e,0);var o=i.getExtent();this._dataInterval=[d(n[0],r,o,!0),d(n[1],r,o,!0)]},_updateView:function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,s=this._createBarVisual(this._dataInterval,i,o,"inRange"),a=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),n.outOfRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),this._updateHandle(o,s)},_createBarVisual:function(e,t,i,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),a=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],l=this._createBarPoints(i,a);return{barColor:new r(0,0,0,1,s),barPoints:l,handlesColor:[s[0].color,s[s.length-1].color]}},_makeColorGradient:function(e,t){var i=100,n=[],r=(e[1]-e[0])/i;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<i;o++){var s=e[0]+r*o;if(s>e[1])break;n.push({color:this.getControllerVisual(s,"color",t),offset:o/i})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},_createBarPoints:function(e,t){var i=this.visualMapModel.itemSize;return[[i[0]-t[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,i=this.visualMapModel.get("inverse");return new a.Group("horizontal"!==t||i?"horizontal"===t&&i?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||i?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,o=i.handleLabels;f([0,1],(function(s){var l=r[s];l.setStyle("fill",t.handlesColor[s]),l.position[1]=e[s];var c=a.applyTransform(i.handleLabelPoints[s],a.getTransform(l,this.group));o[s].setStyle({x:c[0],y:c[1],text:n.formatValueText(this._dataInterval[s]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===s?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(e,t,i,n){var r=this.visualMapModel,o=r.getExtent(),s=r.itemSize,l=[0,s[1]],c=d(e,o,l,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=c,h.attr("invisible",!1),h.setShape("points",b(!!i,n,c,s[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",f);h.setStyle("fill",p);var g=a.applyTransform(u.indicatorLabelPoint,a.getTransform(h,this.group)),v=u.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",u.barGroup),y=this._orient;v.setStyle({text:(i||"")+r.formatValueText(t),textVerticalAlign:"horizontal"===y?m:"middle",textAlign:"horizontal"===y?"center":m,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);n[1]=p(g(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var r=[0,n[1]],o=i.getExtent();e=p(g(r[0],e),r[1]);var s=w(i,o,r),a=[e-s,e+s],l=d(e,r,o,!0),c=[d(a[0],r,o,!0),d(a[1],r,o,!0)];a[0]<r[0]&&(c[0]=-1/0),a[1]>r[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",s):c[1]===1/0?this._showIndicator(l,c[0],"> ",s):this._showIndicator(l,l,"≈ ",s));var f=this._hoverLinkDataIndices,v=[];(t||S(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var m=h.compressBatches(f,v);this._dispatchHighDown("downplay",u.makeHighDownBatch(m[0],i)),this._dispatchHighDown("highlight",u.makeHighDownBatch(m[1],i))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,i=this.visualMapModel;if(t&&null!=t.dataIndex){var n=this.ecModel.getSeriesByIndex(t.seriesIndex);if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.get(i.getDataDimension(r),t.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,i,r){var o=a.getTransform(t,r?null:this.group);return a[n.isArray(e)?"applyTransform":"transformDirection"](e,o,i)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function _(e,t,i,n){return new a.Polygon({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){o.stop(e.event)},ondragend:n})}function x(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function b(e,t,i,n){return e?[[0,-p(t,g(i,0))],[m,0],[0,p(t,g(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function w(e,t,i){var n=v/2,r=e.get("hoverLinkDataSize");return r&&(n=d(r,t,i,!0)/2),n}function S(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function C(e){return"vertical"===e?"ns-resize":"ew-resize"}var A=y;e.exports=A},84893:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(96517),s=i(71576),a=i(67759),l=i(44261),c=l.reformIntervals,u=o.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();h[this._mode].call(this),this._resetSelected(e,t);var n=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=r.clone(n)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=r.map(this._pieceList,(function(e){e=r.clone(e);return"inRange"!==t&&(e.visual=null),e})))}))},completeVisualOption:function(){var e=this.option,t={},i=s.listVisualTypes(),n=this.isCategory();function l(e,t,i){return e&&e[t]&&(r.isObject(e[t])?e[t].hasOwnProperty(i):e[t]===i)}r.each(e.pieces,(function(e){r.each(i,(function(i){e.hasOwnProperty(i)&&(t[i]=1)}))})),r.each(t,(function(t,i){var o=0;r.each(this.stateList,(function(t){o|=l(e,t,i)||l(e.target,t,i)}),this),!o&&r.each(this.stateList,(function(t){(e[t]||(e[t]={}))[i]=a.get(i,"inRange"===t?"active":"inactive",n)}))}),this),o.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var i=this.option,n=this._pieceList,o=(t?i:e).selected||{};if(i.selected=o,r.each(n,(function(e,t){var i=this.getSelectedMapKey(e);o.hasOwnProperty(i)||(o[i]=!0)}),this),"single"===i.selectedMode){var s=!1;r.each(n,(function(e,t){var i=this.getSelectedMapKey(e);o[i]&&(s?o[i]=!1:s=!0)}),this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=r.clone(e)},getValueState:function(e){var t=s.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),(function(t,i){var r=s.findPieceIndex(t,this._pieceList);r===e&&n.push(i)}),this),t.push({seriesId:i.id,dataIndex:n})}),this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],i=[],n=this,o=this._pieceList.slice();if(o.length){var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}else o.push({interval:[-1/0,1/0]});var a=-1/0;return r.each(o,(function(e){var t=e.interval;t&&(t[0]>a&&l([a,t[0]],"outOfRange"),l(t.slice()),a=t[1])}),this),{stops:t,outerColors:i}}function l(r,o){var s=n.getRepresentValue({interval:r});o||(o=n.getValueState(s));var a=e(s,o);r[0]===-1/0?i[0]=a:r[1]===1/0?i[1]=a:t.push({value:r[0],color:a},{value:r[1],color:a})}}}),h={splitNumber:function(){var e=this.option,t=this._pieceList,i=Math.min(e.precision,20),n=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;var s=(n[1]-n[0])/o;while(+s.toFixed(i)!==s&&i<5)i++;e.precision=i,s=+s.toFixed(i),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var a=0,l=n[0];a<o;l+=s,a++){var u=a===o-1?n[1]:l+s;t.push({interval:[l,u],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),c(t),r.each(t,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(){var e=this.option;r.each(e.categories,(function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})}),this),d(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;r.each(e.pieces,(function(e,i){r.isObject(e)||(e={value:e});var n={text:"",index:i};if(null!=e.label&&(n.text=e.label),e.hasOwnProperty("value")){var o=n.value=e.value;n.interval=[o,o],n.close=[1,1]}else{for(var a=n.interval=[],l=n.close=[0,0],c=[1,0,1],u=[-1/0,1/0],h=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],p=0;p<3&&null==a[d];p++)a[d]=e[f[p]],l[d]=c[p],h[d]=2===p;null==a[d]&&(a[d]=u[d])}h[0]&&a[1]===1/0&&(l[0]=0),h[1]&&a[0]===-1/0&&(l[1]=0),a[0]===a[1]&&l[0]&&l[1]&&(n.value=a[0])}n.visual=s.retrieveVisuals(e),t.push(n)}),this),d(e,t),c(t),r.each(t,(function(e){var t=e.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)}),this)}};function d(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var f=u;e.exports=f},94719:function(e,t,i){var n=i(95289),r=i(30071),o=i(76442),s=i(22864),a=s.createSymbol,l=i(61570),c=i(2054),u=r.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),r=t.textStyleModel,s=r.getFont(),a=r.getTextColor(),c=this._getItemAlign(),u=t.itemSize,h=this._getViewData(),d=h.endsText,f=n.retrieve(t.get("showLabel",!0),!d);function p(r){var l=r.piece,h=new o.Group;h.onclick=n.bind(this._onItemClick,this,l),this._enableHoverLink(h,r.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(h,d,[0,0,u[0],u[1]]),f){var p=this.visualMapModel.getValueState(d);h.add(new o.Text({style:{x:"right"===c?-i:u[0]+i,y:u[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:c,textFont:s,textFill:a,opacity:"outOfRange"===p?.5:1}}))}e.add(h)}d&&this._renderEndsText(e,d[0],u,f,c),n.each(h.viewPieceList,p,this),d&&this._renderEndsText(e,d[1],u,f,c),l.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function i(e){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:e,batch:c.makeHighDownBatch(i.findTargetDataIndices(t),i)})}e.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return c.getItemAlign(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(e,t,i,n,r){if(t){var s=new o.Group,a=this.visualMapModel.textStyleModel;s.add(new o.Text({style:{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?r:"center",text:t,textFont:a.getFont(),textFill:a.getTextColor()}})),e.add(s)}},_getViewData:function(){var e=this.visualMapModel,t=n.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),i=e.get("text"),r=e.get("orient"),o=e.get("inverse");return("horizontal"===r?o:!o)?t.reverse():i&&(i=i.slice().reverse()),{viewPieceList:t,endsText:i}},_createItemSymbol:function(e,t,i){e.add(a(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,i=t.option,r=n.clone(i.selected),o=t.getSelectedMapKey(e);"single"===i.selectedMode?(r[o]=!0,n.each(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),h=u;e.exports=h},96517:function(e,t,i){var n=i(89231),r=i(95289),o=i(87190),s=i(67759),a=i(71576),l=i(63479),c=i(63199),u=i(44261),h=a.mapVisual,d=a.eachVisual,f=r.isArray,p=r.each,g=u.asc,v=u.linearMap,m=r.noop,y=n.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,i)},optionUpdated:function(e,t){var i=this.option;o.canvasSupported||(i.realtime=!1),!t&&l.replaceVisualOption(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=r.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,i){t.push(i)})):t=c.normalizeToArray(e),t},eachTargetSeries:function(e,t){r.each(this.getTargetSeriesIndices(),(function(i){e.call(t,this.ecModel.getSeriesByIndex(i))}),this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries((function(i){i===e&&(t=!0)})),t},formatValueText:function(e,t,i){var n,o,s=this.option,a=s.precision,l=this.dataBound,c=s.formatter;return i=i||["<",">"],r.isArray(e)&&(e=e.slice(),n=!0),o=t?e:n?[u(e[0]),u(e[1])]:u(e),r.isString(c)?c.replace("{value}",n?o[0]:o).replace("{value2}",n?o[1]:o):r.isFunction(c)?n?c(e[0],e[1]):c(e):n?e[0]===l[0]?i[0]+" "+o[1]:e[1]===l[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o;function u(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(a,20))}},resetExtent:function(){var e=this.option,t=g([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,i=e.dimensions;if(null!=t||i.length){if(null!=t)return e.getDimension(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var o=n[r],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,i={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),o=t.controller||(t.controller={});r.merge(n,i),r.merge(o,i);var l=this.isCategory();function c(i){f(t.color)&&!i.inRange&&(i.inRange={color:t.color.slice().reverse()}),i.inRange=i.inRange||{color:e.get("gradientColor")},p(this.stateList,(function(e){var t=i[e];if(r.isString(t)){var n=s.get(t,"active",l);n?(i[e]={},i[e][t]=n):delete i[e]}}),this)}function u(e,t,i){var n=e[t],r=e[i];n&&!r&&(r=e[i]={},p(n,(function(e,t){if(a.isValidType(t)){var i=s.get(t,"inactive",l);null!=i&&(r[t]=i,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function g(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,i=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,n=this.get("inactiveColor");p(this.stateList,(function(o){var s=this.itemSize,a=e[o];a||(a=e[o]={color:l?n:[n]}),null==a.symbol&&(a.symbol=t&&r.clone(t)||(l?"roundRect":["roundRect"])),null==a.symbolSize&&(a.symbolSize=i&&r.clone(i)||(l?s[0]:[s[0],s[0]])),a.symbol=h(a.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var c=a.symbolSize;if(null!=c){var u=-1/0;d(c,(function(e){e>u&&(u=e)})),a.symbolSize=h(c,(function(e){return v(e,[0,u],[0,s[0]],!0)}))}}),this)}c.call(this,n),c.call(this,o),u.call(this,n,"inRange","outOfRange"),g.call(this,o)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m}),_=y;e.exports=_},30071:function(e,t,i){var n=i(89231),r=i(95289),o=i(76442),s=i(8595),a=i(61570),l=i(71576),c=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,i,n){this.visualMapModel=e,!1!==e.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,i=s.normalizeCssArray(t.get("padding")||0),n=e.getBoundingRect();e.add(new o.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,i){i=i||{};var n=i.forceState,o=this.visualMapModel,s={};if("symbol"===t&&(s.symbol=o.get("itemSymbol")),"color"===t){var a=o.get("contentColor");s.color=a}function c(e){return s[e]}function u(e,t){s[e]=t}var h=o.controllerVisuals[n||o.getValueState(e)],d=l.prepareVisualTypes(h);return r.each(d,(function(n){var r=h[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",r=h.__alphaForOpacity),l.dependsOn(n,t)&&r&&r.applyVisual(e,c,u)})),s[t]},positionGroup:function(e){var t=this.visualMapModel,i=this.api;a.positionElement(e,t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:r.noop});e.exports=c},2054:function(e,t,i){var n=i(95289),r=i(61570),o=r.getLayoutRect;function s(e,t,i){var n=e.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var s={width:t.getWidth(),height:t.getHeight()},a="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],c=l[a],u=[0,null,10],h={},d=0;d<3;d++)h[l[1-a][d]]=u[d],h[c[d]]=2===d?i[0]:n[c[d]];var f=[["x","width",3],["y","height",0]][a],p=o(h,s,n.padding);return c[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*s[f[1]]?0:1]}function a(e,t){return n.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}t.getItemAlign=s,t.makeHighDownBatch=a},2925:function(e,t,i){var n=i(95289),r=n.each;function o(e){var t=e&&e.visualMap;n.isArray(t)||(t=t?[t]:[]),r(t,(function(e){if(e){s(e,"splitList")&&!s(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&n.isArray(t)&&r(t,(function(e){n.isObject(e)&&(s(e,"start")&&!s(e,"min")&&(e.min=e.start),s(e,"end")&&!s(e,"max")&&(e.max=e.end))}))}}))}function s(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=o},89514:function(e,t,i){var n=i(85532);n.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}))},61043:function(e,t,i){var n=i(89231),r=i(95289),o=i(63479),s=i(71576),a=n.PRIORITY.VISUAL.COMPONENT;function l(e,t,i,n){for(var r=t.targetVisuals[n],o=s.prepareVisualTypes(r),a={color:e.getData().getVisual("color")},l=0,c=o.length;l<c;l++){var u=o[l],h=r["opacity"===u?"__alphaForOpacity":u];h&&h.applyVisual(i,d,f)}return a.color;function d(e){return a[e]}function f(e,t){a[e]=t}}n.registerVisual(a,{createOnAllSeries:!0,reset:function(e,t){var i=[];return t.eachComponent("visualMap",(function(t){var n=e.pipelineContext;!t.isTargetSeries(e)||n&&n.large||i.push(o.incrementalApplyVisual(t.stateList,t.targetVisuals,r.bind(t.getValueState,t),t.getDataDimension(e.getData())))})),i}}),n.registerVisual(a,{createOnAllSeries:!0,reset:function(e,t){var i=e.getData(),n=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(r.bind(l,null,e,t))||{stops:[],outerColors:[]},s=t.getDataDimension(i),a=i.getDimensionInfo(s);null!=a&&(o.dimension=a.index,n.push(o))}})),e.getData().setVisual("visualMeta",n)}})},12028:function(e,t,i){var n=i(89231),r={type:"selectDataRange",event:"dataRangeSelected",update:"update"};n.registerAction(r,(function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))}))},65523:function(e,t,i){var n;"undefined"!==typeof window?n=window.__DEV__:"undefined"!==typeof i.g&&(n=i.g.__DEV__),"undefined"===typeof n&&(n=!0);var r=n;t.__DEV__=r},31490:function(e,t,i){var n=i(95289),r=n.each,o=n.map,s=i(44261),a=s.linearMap,l=s.getPixelPrecision,c=s.round,u=i(38858),h=u.createAxisTicks,d=u.createAxisLabels,f=u.calculateCategoryInterval,p=[0,1],g=function(e,t,i){this.dim=e,this.scale=t,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};function v(e,t){var i=e[1]-e[0],n=t,r=i/n/2;e[0]+=r,e[1]-=r}function m(e,t,i,n){var o=t.length;if(e.onBand&&!i&&o){var s,a,l=e.getExtent();if(1===o)t[0].coord=l[0],s=t[1]={coord:l[0]};else{var u=t[o-1].tickValue-t[0].tickValue,h=(t[o-1].coord-t[0].coord)/u;r(t,(function(e){e.coord-=h/2}));var d=e.scale.getExtent();a=1+d[1]-t[o-1].tickValue,s={coord:t[o-1].coord+h*a},t.push(s)}var f=l[0]>l[1];p(t[0].coord,l[0])&&(n?t[0].coord=l[0]:t.shift()),n&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]}),p(l[1],s.coord)&&(n?s.coord=l[1]:t.pop()),n&&p(s.coord,l[1])&&t.push({coord:l[1]})}function p(e,t){return e=c(e),t=c(t),f?e>t:e<t}}g.prototype={constructor:g,contain:function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return l(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var i=this._extent;i[0]=e,i[1]=t},dataToCoord:function(e,t){var i=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&"ordinal"===n.type&&(i=i.slice(),v(i,n.count())),a(e,p,i,t)},coordToData:function(e,t){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),v(i,n.count()));var r=a(e,i,p,t);return this.scale.scale(r)},pointToData:function(e,t){},getTicksCoords:function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=h(this,t),n=i.ticks,r=o(n,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this),s=t.get("alignWithLabel");return m(this,r,s,e.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),n=o(i,(function(e){return o(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return n},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var y=g;e.exports=y},92394:function(e,t,i){var n=i(95289),r=i(31138),o=i(13388),s=i(39587),a=i(38051),l=r.applyTransform;function c(){a.call(this)}function u(e){this.name=e,this.zoomLimit,a.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}function h(e,t,i,n){var r=i.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[e](n):null}n.mixin(c,a),u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,i,n){return this._rect=new s(e,t,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,i,n){this.transformTo(e,t,i,n),this._viewRect=new s(e,t,i,n)},transformTo:function(e,t,i,n){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new s(e,t,i,n)),o.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,i=e.y+e.height/2;return[t,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=r.applyTransform([],n,e),i=r.applyTransform([],i,e),t.origin=n,t.position=[i[0]-n[0],i[1]-n[1]],t.scale=[o,o],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),o.copy(this.transform||(this.transform=[]),t.transform||o.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?n.slice(e):o.create(),rawScale:n.slice(t.scale),rawPosition:n.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,i){var n=t?this._rawTransform:this.transform;return i=i||[],n?l(i,e,n):r.copy(i,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:n.curry(h,"dataToPoint"),convertFromPixel:n.curry(h,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},n.mixin(u,a);var d=u;e.exports=d},15429:function(e,t,i){var n=i(95289),r={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:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o={};o.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),o.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),o.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},o.valueAxis),o.logAxis=n.defaults({scale:!0,logBase:10},o.valueAxis);var s=o;e.exports=s},8426:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(37221),s=i(21607),a=i(96506),l=i(44261),c=i(11041),u=c.prepareLayoutBarSeries,h=c.makeColumnLayout,d=c.retrieveColumnLayout,f=i(39587);function p(e,t){var i,n,o,s=e.type,a=t.getMin(),c=t.getMax(),d=e.getExtent();"ordinal"===s?i=t.getCategories().length:(n=t.get("boundaryGap"),r.isArray(n)||(n=[n||0,n||0]),"boolean"===typeof n[0]&&(n=[0,0]),n[0]=l.parsePercent(n[0],1),n[1]=l.parsePercent(n[1],1),o=d[1]-d[0]||Math.abs(d[0])),"dataMin"===a?a=d[0]:"function"===typeof a&&(a=a({min:d[0],max:d[1]})),"dataMax"===c?c=d[1]:"function"===typeof c&&(c=c({min:d[0],max:d[1]}));var f=null!=a,p=null!=c;null==a&&(a="ordinal"===s?i?0:NaN:d[0]-n[0]*o),null==c&&(c="ordinal"===s?i?i-1:NaN:d[1]+n[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==c||!isFinite(c))&&(c=NaN),e.setBlank(r.eqNaN(a)||r.eqNaN(c)||"ordinal"===s&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(a>0&&c>0&&!f&&(a=0),a<0&&c<0&&!p&&(c=0));var v=t.ecModel;if(v&&"time"===s){var m,y=u("bar",v);if(r.each(y,(function(e){m|=e.getBaseAxis()===t.axis})),m){var _=h(y),x=g(a,c,t,_);a=x.min,c=x.max}}return{extent:[a,c],fixMin:f,fixMax:p}}function g(e,t,i,n){var o=i.axis.getExtent(),s=o[1]-o[0],a=d(n,i.axis);if(void 0===a)return{min:e,max:t};var l=1/0;r.each(a,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;r.each(a,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,h=t-e,f=1-(l+c)/s,p=h/f-h;return t+=p*(c/u),e-=p*(l/u),{min:e,max:t}}function v(e,t){var i=p(e,t),n=i.extent,r=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(n[0],n[1]),e.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var s=t.get("interval");null!=s&&e.setInterval&&e.setInterval(s)}function m(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new o(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new s;default:return(a.getClass(t)||s).create(e)}}function y(e){var t=e.scale.getExtent(),i=t[0],n=t[1];return!(i>0&&n>0||i<0&&n<0)}function _(e){var t=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(i){return i=e.scale.getLabel(i),t.replace("{value}",null!=i?i:"")}}(t),t):"function"===typeof t?function(n,r){return null!=i&&(r=n-i),t(x(e,n),r)}:function(t){return e.scale.getLabel(t)}}function x(e,t){return"category"===e.type?e.scale.getLabel(t):t}function b(e){var t=e.model,i=e.scale;if(t.get("axisLabel.show")&&!i.isBlank()){var n,r,o="category"===e.type,s=i.getExtent();o?r=i.count():(n=i.getTicks(),r=n.length);var a,l=e.getLabelModel(),c=_(e),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h<r;h+=u){var d=n?n[h]:s[0]+h,f=c(d),p=l.getTextRect(f),g=w(p,l.get("rotate")||0);a?a.union(g):a=g}return a}}function w(e,t){var i=t*Math.PI/180,n=e.plain(),r=n.width,o=n.height,s=r*Math.abs(Math.cos(i))+Math.abs(o*Math.sin(i)),a=r*Math.abs(Math.sin(i))+Math.abs(o*Math.cos(i)),l=new f(n.x,n.y,s,a);return l}function S(e){var t=e.get("interval");return null==t?"auto":t}function C(e){return"category"===e.type&&0===S(e.getLabelModel())}i(12683),i(94034),t.getScaleExtent=p,t.niceScaleExtent=v,t.createScaleByModel=m,t.ifAxisCrossZero=y,t.makeLabelFormatter=_,t.getAxisRawValue=x,t.estimateLabelUnionRect=b,t.getOptionCategoryInterval=S,t.shouldShowAllLabels=C},48267:function(e,t,i){var n=i(95289),r={getMin:function(e){var t=this.option,i=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(e){var t=this.option,i=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:n.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=r},98541:function(e,t,i){var n=i(95289),r=i(15429),o=i(85532),s=i(61570),a=s.getLayoutParams,l=s.mergeLayoutParam,c=i(54874),u=["value","category","time","log"];function h(e,t,i,s){n.each(u,(function(o){t.extend({type:e+"Axis."+o,mergeDefaultAndTheme:function(t,r){var s=this.layoutMode,c=s?a(t):{},u=r.getTheme();n.merge(t,u.get(o+"Axis")),n.merge(t,this.getDefaultOption()),t.type=i(e,t),s&&l(t,c,s)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},r[o+"Axis"],s],!0)})})),o.registerSubTypeDefaulter(e+"Axis",n.curry(i,e))}e.exports=h},38858:function(e,t,i){var n=i(95289),r=i(43407),o=i(63199),s=o.makeInner,a=i(8426),l=a.makeLabelFormatter,c=a.getOptionCategoryInterval,u=a.shouldShowAllLabels,h=s();function d(e){return"category"===e.type?p(e):m(e)}function f(e,t){return"category"===e.type?v(e,t):{ticks:e.scale.getTicks()}}function p(e){var t=e.getLabelModel(),i=g(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function g(e,t){var i,r,o=y(e,"labels"),s=c(t),a=_(o,s);return a||(n.isFunction(s)?i=A(e,s):(r="auto"===s?b(e):s,i=C(e,r)),x(o,s,{labels:i,labelCategoryInterval:r}))}function v(e,t){var i,r,o=y(e,"ticks"),s=c(t),a=_(o,s);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(i=[]),n.isFunction(s))i=A(e,s,!0);else if("auto"===s){var l=g(e,e.getLabelModel());r=l.labelCategoryInterval,i=n.map(l.labels,(function(e){return e.tickValue}))}else r=s,i=C(e,r,!0);return x(o,s,{ticks:i,tickCategoryInterval:r})}function m(e){var t=e.scale.getTicks(),i=l(e);return{labels:n.map(t,(function(t,n){return{formattedLabel:i(t,n),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}function y(e,t){return h(e)[t]||(h(e)[t]=[])}function _(e,t){for(var i=0;i<e.length;i++)if(e[i].key===t)return e[i].value}function x(e,t,i){return e.push({key:t,value:i}),i}function b(e){var t=h(e).autoInterval;return null!=t?t:h(e).autoInterval=e.calculateCategoryInterval()}function w(e){var t=S(e),i=l(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),a=o.count();if(s[1]-s[0]<1)return 0;var c=1;a>40&&(c=Math.max(1,Math.floor(a/40)));for(var u=s[0],d=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(d*Math.cos(n)),p=Math.abs(d*Math.sin(n)),g=0,v=0;u<=s[1];u+=c){var m=0,y=0,_=r.getBoundingRect(i(u),t.font,"center","top");m=1.3*_.width,y=1.3*_.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var x=g/f,b=v/p;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),C=h(e.model),A=e.getExtent(),M=C.lastAutoInterval,k=C.lastTickCount;return null!=M&&null!=k&&Math.abs(M-w)<=1&&Math.abs(k-a)<=1&&M>w&&C.axisExtend0===A[0]&&C.axisExtend1===A[1]?w=M:(C.lastTickCount=a,C.lastAutoInterval=w,C.axisExtend0=A[0],C.axisExtend1=A[1]),w}function S(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function C(e,t,i){var n=l(e),r=e.scale,o=r.getExtent(),s=e.getLabelModel(),a=[],c=Math.max((t||0)+1,1),h=o[0],d=r.count();0!==h&&c>1&&d/c>2&&(h=Math.round(Math.ceil(h/c)*c));var f=u(e),p=s.get("showMinLabel")||f,g=s.get("showMaxLabel")||f;p&&h!==o[0]&&m(o[0]);for(var v=h;v<=o[1];v+=c)m(v);function m(e){a.push(i?e:{formattedLabel:n(e),rawLabel:r.getLabel(e),tickValue:e})}return g&&v-c!==o[1]&&m(o[1]),a}function A(e,t,i){var r=e.scale,o=l(e),s=[];return n.each(r.getTicks(),(function(e){var n=r.getLabel(e);t(e,n)&&s.push(i?e:{formattedLabel:o(e),rawLabel:n,tickValue:e})})),s}t.createAxisLabels=d,t.createAxisTicks=f,t.calculateCategoryInterval=w},17354:function(e,t,i){var n=i(95289),r=i(61570),o=i(44261),s=i(50294),a=864e5;function l(e,t,i){this._model=e}function c(e,t,i,n){var r=i.calendarModel,o=i.seriesModel,s=r?r.coordinateSystem:o?o.coordinateSystem:null;return s===this?s[e](n):null}l.prototype={constructor:l,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=o.parseDate(e);var t=e.getFullYear(),i=e.getMonth()+1;i=i<10?"0"+i:i;var n=e.getDate();n=n<10?"0"+n:n;var r=e.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:t,m:i,d:n,day:r,time:e.getTime(),formatedDate:t+"-"+i+"-"+n,date:e}},getNextNDay:function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,o=["width","height"],s=this._model.get("cellSize").slice(),a=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[i,7]:[7,i];n.each([0,1],(function(e){h(s,e)&&(a[o[e]]=s[e]*l[e])}));var c={width:t.getWidth(),height:t.getHeight()},u=this._rect=r.getLayoutRect(a,c);function h(e,t){return null!=e[t]&&"auto"!==e[t]}n.each([0,1],(function(e){h(s,e)||(s[e]=u[o[e]]/l[e])})),this._sw=s[0],this._sh=s[1]},dataToPoint:function(e,t){n.isArray(e)&&(e=e[0]),null==t&&(t=!0);var i=this.getDateInfo(e),r=this._rangeInfo,o=i.formatedDate;if(t&&!(i.time>=r.start.time&&i.time<r.end.time+a))return[NaN,NaN];var s=i.day,l=this._getRangeInfo([r.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+s*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,t-1,n):this._getDateByWeeksAndDay(t,i-1,n)},convertToPixel:n.curry(c,"dataToPoint"),convertFromPixel:n.curry(c,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(n.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var i=this.getDateInfo(t),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],e[0].time>e[1].time&&(t=!0,e.reverse());var i=Math.floor(e[1].time/a)-Math.floor(e[0].time/a)+1,n=new Date(e[0].time),r=n.getDate(),o=e[1].date.getDate();n.setDate(r+i-1);var s=n.getDate();if(s!==o){var l=n.getTime()-e[1].time>0?1:-1;while((s=n.getDate())!==o&&(n.getTime()-e[1].time)*l>0)i-=l,n.setDate(s-l)}var c=Math.floor((i+e[0].day+6)/7),u=t?1-c:c-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:c,nthWeek:u,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,i){var n=this._getRangeInfo(i);if(e>n.weeks||0===e&&t<n.fweek||e===n.weeks&&t>n.lweek)return!1;var r=7*(e-1)-n.fweek+t,o=new Date(n.start.time);return o.setDate(n.start.d+r),this.getDateInfo(o)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(e,t){var i=[];return e.eachComponent("calendar",(function(n){var r=new l(n,e,t);i.push(r),n.coordinateSystem=r})),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},s.register("calendar",l);var u=l;e.exports=u},89025:function(e,t,i){var n=i(95289),r=i(85532),o=i(61570),s=o.getLayoutParams,a=o.sizeCalculable,l=o.mergeLayoutParam,c=r.extend({type:"calendar",coordinateSystem:null,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}},init:function(e,t,i,n){var r=s(e);c.superApply(this,"init",arguments),u(e,r)},mergeOption:function(e,t){c.superApply(this,"mergeOption",arguments),u(this.option,e)}});function u(e,t){var i=e.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var r=n.map([0,1],(function(e){return a(t,e)&&(i[e]="auto"),null!=i[e]&&"auto"!==i[e]}));l(e,t,{type:"box",ignoreSize:r})}var h=c;e.exports=h},14774:function(e){function t(e){var t=e.getRect(),i=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(t,i){return e.dataToPoint(t,i)}}}}e.exports=t},81663:function(e,t,i){var n=i(95289),r=i(31490),o=function(e,t,i,n,o){r.call(this,e,t,i),this.type=n||"value",this.position=o||"bottom"};o.prototype={constructor:o,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},n.inherits(o,r);var s=o;e.exports=s},67384:function(e,t,i){var n=i(95289),r=i(85532),o=i(98541),s=i(48267),a=r.extend({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}n.merge(a.prototype,s);var c={offset:0};o("x",a,l,c),o("y",a,l,c);var u=a;e.exports=u},37548:function(e,t,i){var n=i(95289);function r(e){return this._axes[e]}var o=function(e){this._axes={},this._dimList=[],this.name=e||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return n.map(this._dimList,r,this)},getAxesByScale:function(e){return e=e.toLowerCase(),n.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var i=this._dimList,n=e instanceof Array?[]:{},r=0;r<i.length;r++){var o=i[r],s=this._axes[o];n[o]=s[t](e[o])}return n}};var s=o;e.exports=s},32474:function(e,t,i){var n=i(95289),r=i(39587),o=i(37548);function s(e){o.call(this,e)}s.prototype={constructor:s,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),i=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,i){var n=this.getAxis("x"),r=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(e[0])),i[1]=r.toGlobalCoord(r.dataToCoord(e[1])),i},clampData:function(e,t){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),s=i.parse(e[0]),a=n.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t},pointToData:function(e,t){var i=this.getAxis("x"),n=this.getAxis("y");return t=t||[],t[0]=i.coordToData(i.toLocalCoord(e[0])),t[1]=n.coordToData(n.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),n=Math.min(t[0],t[1]),o=Math.max(e[0],e[1])-i,s=Math.max(t[0],t[1])-n,a=new r(i,n,o,s);return a}},n.inherits(s,o);var a=s;e.exports=a},31020:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=r.isObject,s=r.each,a=r.map,l=r.indexOf,c=(r.retrieve,i(61570)),u=c.getLayoutRect,h=i(8426),d=h.createScaleByModel,f=h.ifAxisCrossZero,p=h.niceScaleExtent,g=h.estimateLabelUnionRect,v=i(32474),m=i(81663),y=i(50294),_=i(74051),x=_.getStackedDimension;function b(e,t,i){return e.getCoordSysModel()===t}function w(e,t,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,i),this.model=e}i(34499);var S=w.prototype;function C(e,t,i,n){i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],s=i.model,a=s.get("axisLine.onZero"),l=s.get("axisLine.onZeroAxisIndex");if(a){if(null!=l)A(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&A(o[c])&&!n[u(o[c])]){r=o[c];break}r&&(n[u(r)]=!0)}function u(e){return e.dim+"_"+e.index}}function A(e){return e&&"category"!==e.type&&"time"!==e.type&&f(e)}function M(e,t){var i=e.getExtent(),n=i[0]+i[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return n-e+t}}S.type="grid",S.axisPointerEnabled=!0,S.getRect=function(){return this._rect},S.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model),s(i.x,(function(e){p(e.scale,e.model)})),s(i.y,(function(e){p(e.scale,e.model)}));var n={};s(i.x,(function(e){C(i,"y",e,n)})),s(i.y,(function(e){C(i,"x",e,n)})),this.resize(this.model,t)},S.resize=function(e,t,i){var n=u(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=n;var r=this._axesList;function o(){s(r,(function(e){var t=e.isHorizontal(),i=t?[0,n.width]:[0,n.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),M(e,t?n.x:n.y)}))}o(),!i&&e.get("containLabel")&&(s(r,(function(e){if(!e.model.get("axisLabel.inside")){var t=g(e);if(t){var i=e.isHorizontal()?"height":"width",r=e.model.get("axisLabel.margin");n[i]-=t[i]+r,"top"===e.position?n.y+=t.height+r:"left"===e.position&&(n.x+=t.width+r)}}})),o())},S.getAxis=function(e,t){var i=this._axesMap[e];if(null!=i){if(null==t)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[t]}},S.getAxes=function(){return this._axesList.slice()},S.getCartesian=function(e,t){if(null!=e&&null!=t){var i="x"+e+"y"+t;return this._coordsMap[i]}o(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===e||r[n].getAxis("y").index===t)return r[n]},S.getCartesians=function(){return this._coordsList.slice()},S.convertToPixel=function(e,t,i){var n=this._findConvertTarget(e,t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},S.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(e,t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},S._findConvertTarget=function(e,t){var i,n,r=t.seriesModel,o=t.xAxisModel||r&&r.getReferringComponents("xAxis")[0],s=t.yAxisModel||r&&r.getReferringComponents("yAxis")[0],a=t.gridModel,c=this._coordsList;if(r)i=r.coordinateSystem,l(c,i)<0&&(i=null);else if(o&&s)i=this.getCartesian(o.componentIndex,s.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(s)n=this.getAxis("y",s.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},S.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},S._initCartesian=function(e,t,i){var n={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},o={x:0,y:0};if(t.eachComponent("xAxis",a("x"),this),t.eachComponent("yAxis",a("y"),this),!o.x||!o.y)return this._axesMap={},void(this._axesList=[]);function a(i){return function(s,a){if(b(s,e,t)){var l=s.get("position");"x"===i?"top"!==l&&"bottom"!==l&&(l=n.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=n.left?"right":"left"),n[l]=!0;var c=new m(i,d(s),[0,0],s.get("type"),l),u="category"===c.type;c.onBand=u&&s.get("boundaryGap"),c.inverse=s.get("inverse"),s.axis=c,c.model=s,c.grid=this,c.index=a,this._axesList.push(c),r[i][a]=c,o[i]++}}}this._axesMap=r,s(r.x,(function(t,i){s(r.y,(function(n,r){var o="x"+i+"y"+r,s=new v(o);s.grid=this,s.model=e,this._coordsMap[o]=s,this._coordsList.push(s),s.addAxis(t),s.addAxis(n)}),this)}),this)},S._updateScale=function(e,t){function i(e,t,i){s(e.mapDimension(t.dim,!0),(function(i){t.scale.unionExtentFromData(e,x(e,i))}))}s(this._axesList,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeries((function(n){if(I(n)){var r=T(n,e),o=r[0],s=r[1];if(!b(o,t,e)||!b(s,t,e))return;var a=this.getCartesian(o.componentIndex,s.componentIndex),l=n.getData(),c=a.getAxis("x"),u=a.getAxis("y");"list"===l.type&&(i(l,c,n),i(l,u,n))}}),this)},S.getTooltipAxes=function(e){var t=[],i=[];return s(this.getCartesians(),(function(n){var r=null!=e&&"auto"!==e?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(r);l(t,r)<0&&t.push(r),l(i,o)<0&&i.push(o)})),{baseAxes:t,otherAxes:i}};var k=["xAxis","yAxis"];function T(e,t){return a(k,(function(t){var i=e.getReferringComponents(t)[0];return i}))}function I(e){return"cartesian2d"===e.get("coordinateSystem")}w.create=function(e,t){var i=[];return e.eachComponent("grid",(function(n,r){var o=new w(n,e,t);o.name="grid_"+r,o.resize(n,t,!0),n.coordinateSystem=o,i.push(o)})),e.eachSeries((function(t){if(I(t)){var i=T(t,e),n=i[0],r=i[1],o=n.getCoordSysModel(),s=o.coordinateSystem;t.coordinateSystem=s.getCartesian(n.componentIndex,r.componentIndex)}})),i},w.dimensions=w.prototype.dimensions=v.prototype.dimensions,y.register("cartesian2d",w);var L=w;e.exports=L},34499:function(e,t,i){i(67384);var n=i(85532),r=n.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=r},30625:function(e,t,i){var n=i(95289);function r(e,t,i){i=i||{};var r=e.coordinateSystem,o=t.axis,s={},a=o.getAxesOnZeroOf()[0],l=o.position,c=a?"onZero":l,u=o.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,g="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}s.position=["y"===u?g[f[c]]:d[0],"x"===u?g[f[c]]:d[3]],s.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=m[l],s.labelOffset=a?g[f[l]]-g[f.onZero]:0,t.get("axisTick.inside")&&(s.tickDirection=-s.tickDirection),n.retrieve(i.labelInside,t.get("axisLabel.inside"))&&(s.labelDirection=-s.labelDirection);var y=t.get("axisLabel.rotate");return s.labelRotate="top"===c?-y:y,s.z2=1,s}t.layout=r},88190:function(e,t,i){var n=i(95289);function r(e,t){return t=t||[0,0],n.map(["x","y"],(function(i,n){var r=this.getAxis(i),o=t[n],s=e[n]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-s)-r.dataToCoord(o+s))}),this)}function o(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(r,e)}}}e.exports=o},30140:function(e,t,i){var n=i(95289),r=i(39587),o=i(92394),s=i(80218);function a(e,t,i,n){o.call(this,e),this.map=t;var r=s.load(t,i);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==n||n,this.regions=r.regions,this._rect=r.boundingRect}function l(e,t,i,n){var r=i.geoModel,o=i.seriesModel,s=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return s===this?s[e](n):null}a.prototype={constructor:a,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,i=0;i<t.length;i++)if(t[i].contain(e))return!0;return!1},transformTo:function(e,t,i,n){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var a=this._rawTransformable;if(a.transform=o.calculateTransform(new r(e,t,i,n)),a.decomposeTransform(),s){var l=a.scale;l[1]=-l[1]}a.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,i=0;i<t.length;i++)if(t[i].contain(e))return t[i]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,i){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return o.prototype.dataToPoint.call(this,e,t,i)},convertToPixel:n.curry(l,"dataToPoint"),convertFromPixel:n.curry(l,"pointToData")},n.mixin(a,o);var c=a;e.exports=c},86867:function(e,t,i){var n=i(95289),r=i(63199),o=i(85532),s=i(40590),a=i(18171),l=i(98870),c=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){o.prototype.init.apply(this,arguments),r.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=n.reduce(e.regions||[],(function(e,i){return i.name&&e.set(i.name,new s(i,t)),e}),n.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new s(null,this,this.ecModel)},getFormattedLabel:function(e,t){t=t||"normal";var i=this.getRegionModel(e),n=i.get(("normal"===t?"":t+".")+"label.formatter"),r={name:e};return"function"===typeof n?(r.status=t,n(r)):"string"===typeof n?n.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});n.mixin(c,a);var u=c;e.exports=u},55021:function(e,t,i){var n=i(39587),r=i(66346),o=i(31138),s=i(91068);function a(e,t,i){if(this.name=e,this.geometries=t,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}a.prototype={constructor:a,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,i=[t,t],s=[-t,-t],a=[],l=[],c=this.geometries,u=0;u<c.length;u++)if("polygon"===c[u].type){var h=c[u].exterior;r.fromPoints(h,a,l),o.min(i,i,a),o.max(s,s,l)}return 0===u&&(i[0]=i[1]=s[0]=s[1]=0),this._rect=new n(i[0],i[1],s[0]-i[0],s[1]-i[1])},contain:function(e){var t=this.getBoundingRect(),i=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var n=0,r=i.length;n<r;n++)if("polygon"===i[n].type){var o=i[n].exterior,a=i[n].interiors;if(s.contain(o,e[0],e[1])){for(var l=0;l<(a?a.length:0);l++)if(s.contain(a[l]))continue e;return!0}}return!1},transformTo:function(e,t,i,r){var s=this.getBoundingRect(),a=s.width/s.height;i?r||(r=i/a):i=a*r;for(var l=new n(e,t,i,r),c=s.calculateTransform(l),u=this.geometries,h=0;h<u.length;h++)if("polygon"===u[h].type){for(var d=u[h].exterior,f=u[h].interiors,p=0;p<d.length;p++)o.applyTransform(d[p],d[p],c);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)o.applyTransform(f[g][p],f[g][p],c)}s=this._rect,s.copy(l),this.center=[s.x+s.width/2,s.y+s.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new a(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var l=a;e.exports=l},93949:function(e){var t=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function i(e,i){"china"===e&&"台湾"===i.name&&i.geometries.push({type:"polygon",exterior:t[0]})}e.exports=i},9519:function(e){var t={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function i(e,i){if("world"===e){var n=t[i.name];if(n){var r=i.center;r[0]=n[0],r[1]=n[1]}}}e.exports=i},82424:function(e,t,i){for(var n=i(95289),r=i(55021),o=[126,25],s=[[[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]]],a=0;a<s.length;a++)for(var l=0;l<s[a].length;l++)s[a][l][0]/=10.5,s[a][l][1]/=-14,s[a][l][0]+=o[0],s[a][l][1]+=o[1];function c(e,t){"china"===e&&t.push(new r("南海诸岛",n.map(s,(function(e){return{type:"polygon",exterior:e}})),o))}e.exports=c},21605:function(e){var t={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function i(e,i){if("china"===e){var n=t[i.name];if(n){var r=i.center;r[0]+=n[0]/10.5,r[1]+=-n[1]/14}}}e.exports=i},98870:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(89231)),o=i(95289),s=i(30140),a=i(61570),l=i(44261),c=i(80218),u=i(45986);function h(e,t){var i=e.get("boundingCoords");if(null!=i){var n=i[0],r=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1])}var o,s=this.getBoundingRect(),c=e.get("layoutCenter"),u=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),f=s.width/s.height*this.aspectScale,p=!1;if(c&&u&&(c=[l.parsePercent(c[0],h),l.parsePercent(c[1],d)],u=l.parsePercent(u,Math.min(h,d)),isNaN(c[0])||isNaN(c[1])||isNaN(u)||(p=!0)),p){var g={};f>1?(g.width=u,g.height=u/f):(g.height=u,g.width=u*f),g.y=c[1]-g.height/2,g.x=c[0]-g.width/2}else o=e.getBoxLayoutParams(),o.aspect=f,g=a.getLayoutRect(o,{width:h,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function d(e,t){o.each(t.get("geoCoord"),(function(t,i){e.addGeoCoord(i,t)}))}var f={dimensions:s.prototype.dimensions,create:function(e,t){var i=[];e.eachComponent("geo",(function(e,n){var r=e.get("map"),o=e.get("aspectScale"),a=!0,l=u.retrieveMap(r);l&&l[0]&&"svg"===l[0].type?(null==o&&(o=1),a=!1):null==o&&(o=.75);var c=new s(r+n,r,e.get("nameMap"),a);c.aspectScale=o,c.zoomLimit=e.get("scaleLimit"),i.push(c),d(c,e),e.coordinateSystem=c,c.model=e,c.resize=h,c.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var n=e.get("geoIndex")||0;e.coordinateSystem=i[n]}}));var n={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();n[t]=n[t]||[],n[t].push(e)}})),o.each(n,(function(e,n){var r=o.map(e,(function(e){return e.get("nameMap")})),a=new s(n,n,o.mergeAll(r));a.zoomLimit=o.retrieve.apply(null,o.map(e,(function(e){return e.get("scaleLimit")}))),i.push(a),a.resize=h,a.aspectScale=e[0].get("aspectScale"),a.resize(e[0],t),o.each(e,(function(e){e.coordinateSystem=a,d(a,e)}))})),i},getFilledRegions:function(e,t,i){for(var n=(e||[]).slice(),r=o.createHashMap(),s=0;s<n.length;s++)r.set(n[s].name,n[s]);var a=c.load(t,i);return o.each(a.regions,(function(e){var t=e.name;!r.get(t)&&n.push({name:t})})),n}};r.registerCoordinateSystem("geo",f);var p=f;e.exports=p},10205:function(e,t,i){var n=i(95289),r=n.each,o=i(46135),s=i(63199),a=s.makeInner,l=i(82424),c=i(21605),u=i(9519),h=i(93949),d=a(),f={load:function(e,t,i){var n=d(t).parsed;if(n)return n;var s,a=t.specialAreas||{},f=t.geoJSON;try{s=f?o(f,i):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return l(e,s),r(s,(function(t){var i=t.name;c(e,t),u(e,t),h(e,t);var n=a[i];n&&t.transformTo(n.left,n.top,n.width,n.height)})),d(t).parsed={regions:s,boundingRect:p(s)}}};function p(e){for(var t,i=0;i<e.length;i++){var n=e[i].getBoundingRect();t=t||n.clone(),t.union(n)}return t}e.exports=f},64663:function(e,t,i){var n=i(9717),r=n.parseSVG,o=n.makeViewBoxTransform,s=i(75738),a=i(15404),l=i(95289),c=l.assert,u=l.createHashMap,h=i(39587),d=i(63199),f=d.makeInner,p=f(),g={load:function(e,t){var i=p(t).originRoot;if(i)return{root:i,boundingRect:p(t).boundingRect};var n=v(t);return p(t).originRoot=n.root,p(t).boundingRect=n.boundingRect,n},makeGraphic:function(e,t,i){var n=p(t),r=n.rootMap||(n.rootMap=u()),o=r.get(i);if(o)return o;var s=n.originRoot,a=n.boundingRect;return n.originRootHostKey?o=v(t,a).root:(n.originRootHostKey=i,o=s),r.set(i,o)},removeGraphic:function(e,t,i){var n=p(t),r=n.rootMap;r&&r.removeKey(i),i===n.originRootHostKey&&(n.originRootHostKey=null)}};function v(e,t){var i,n,l=e.svgXML;try{i=l&&r(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=i.root,c(null!=n)}catch(v){throw new Error("Invalid svg format\n"+v.message)}var u=i.width,d=i.height,f=i.viewBoxRect;if(t||(t=null==u||null==d?n.getBoundingRect():new h(0,0,0,0),null!=u&&(t.width=u),null!=d&&(t.height=d)),f){var p=o(f,t.width,t.height),g=n;n=new s,n.add(g),g.scale=p.scale,g.position=p.position}return n.setClipPath(new a({shape:t.plain()})),{root:n,boundingRect:t}}e.exports=g},80218:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=r.each,s=r.createHashMap,a=i(45986),l=i(10205),c=i(64663),u=i(39587),h={geoJSON:l,svg:c},d={load:function(e,t,i){var n,r=[],a=s(),l=s(),c=p(e);return o(c,(function(s){var c=h[s.type].load(e,s,i);o(c.regions,(function(e){var i=e.name;t&&t.hasOwnProperty(i)&&(e=e.cloneShallow(i=t[i])),r.push(e),a.set(i,e),l.set(i,e.center)}));var u=c.boundingRect;u&&(n?n.union(u):n=u.clone())})),{regions:r,regionsMap:a,nameCoordMap:l,boundingRect:n||new u(0,0,0,0)}},makeGraphic:f("makeGraphic"),removeGraphic:f("removeGraphic")};function f(e){return function(t,i){var n=p(t),r=[];return o(n,(function(n){var o=h[n.type][e];o&&r.push(o(t,n,i))})),r}}function p(e){var t=a.retrieveMap(e)||[];return t}e.exports=d},45986:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=r.createHashMap,s=r.isString,a=r.isArray,l=r.each,c=(r.assert,i(9717)),u=c.parseXML,h=o(),d={registerMap:function(e,t,i){var n;return a(t)?n=t:t.svg?n=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(i=t.specialAreas,t=t.geoJson),n=[{type:"geoJSON",source:t,specialAreas:i}]),l(n,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var i=f[t];i(e)})),h.set(e,n)},retrieveMap:function(e){return h.get(e)}},f={geoJSON:function(e){var t=e.source;e.geoJSON=s(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=u(e.source)}};e.exports=d},46135:function(e,t,i){var n=i(95289),r=i(55021);function o(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var i=e.features,n=0;n<i.length;n++)for(var r=i[n],o=r.geometry,a=o.coordinates,l=o.encodeOffsets,c=0;c<a.length;c++){var u=a[c];if("Polygon"===o.type)a[c]=s(u,l[c],t);else if("MultiPolygon"===o.type)for(var h=0;h<u.length;h++){var d=u[h];u[h]=s(d,l[c][h],t)}}return e.UTF8Encoding=!1,e}function s(e,t,i){for(var n=[],r=t[0],o=t[1],s=0;s<e.length;s+=2){var a=e.charCodeAt(s)-64,l=e.charCodeAt(s+1)-64;a=a>>1^-(1&a),l=l>>1^-(1&l),a+=r,l+=o,r=a,o=l,n.push([a/i,l/i])}return n}function a(e,t){return o(e),n.map(n.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var i=e.properties,o=e.geometry,s=o.coordinates,a=[];"Polygon"===o.type&&a.push({type:"polygon",exterior:s[0],interiors:s.slice(1)}),"MultiPolygon"===o.type&&n.each(s,(function(e){e[0]&&a.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var l=new r(i[t||"name"],a,i.cp);return l.properties=i,l}))}e.exports=a},89993:function(e,t,i){var n=i(95289);function r(e,t){return t=t||[0,0],n.map([0,1],(function(i){var n=t[i],r=e[i]/2,o=[],s=[];return o[i]=n-r,s[i]=n+r,o[1-i]=s[1-i]=t[1-i],Math.abs(this.dataToPoint(o)[i]-this.dataToPoint(s)[i])}),this)}function o(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(r,e)}}}e.exports=o},52841:function(e,t,i){var n=i(95289),r=i(85532),o=i(81935),s=i(98541),a=i(44261),l=i(48267),c=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=n.clone(e);if(t)for(var i=t.length-1;i>=0;i--)a.asc(t[i])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var i=t[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,r=t.length;n<r;n++)if(t[n][0]<=e&&e<=t[n][1])return"active";return"inactive"}}),u={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function h(e,t){return t.type||(t.data?"category":"value")}n.merge(c.prototype,l),s("parallel",c,h,u);var d=c;e.exports=d},46052:function(e,t,i){var n=i(95289),r=i(13388),o=i(61570),s=i(8426),a=i(81477),l=i(76442),c=i(44261),u=i(96748),h=n.each,d=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,v=c.round,m=Math.PI;function y(e,t,i){this._axesMap=n.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,i)}function _(e,t){return d(f(e,t[0]),t[1])}function x(e,t){var i=t.layoutLength/(t.axisCount-1);return{position:i*e,axisNameAvailableWidth:i,axisLabelShow:!0}}function b(e,t){var i,n,r=t.layoutLength,o=t.axisExpandWidth,s=t.axisCount,a=t.axisCollapseWidth,l=t.winInnerIndices,c=a,u=!1;return e<l[0]?(i=e*a,n=a):e<=l[1]?(i=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],c=o,u=!0):(i=r-(s-1-e)*a,n=a),{position:i,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:n}}y.prototype={type:"parallel",constructor:y,_init:function(e,t,i){var n=e.dimensions,r=e.parallelAxisIndex;h(n,(function(e,i){var n=r[i],o=t.getComponent("parallelAxis",n),l=this._axesMap.set(e,new a(e,s.createScaleByModel(o),[0,0],o.get("type"),n)),c="category"===l.type;l.onBand=c&&o.get("boundaryGap"),l.inverse=o.get("inverse"),o.axis=l,l.model=o,l.coordinateSystem=o.coordinateSystem=this}),this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),i=t.axisBase,n=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],s=e[r];return o>=i&&o<=i+t.axisLength&&s>=n&&s<=n+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(i){if(e.contains(i,t)){var n=i.getData();h(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(n,n.mapDimension(e)),s.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,i=this._rect,n=["x","y"],r=["width","height"],o=t.get("layout"),s="horizontal"===o?0:1,a=i[r[s]],l=[0,a],c=this.dimensions.length,u=_(t.get("axisExpandWidth"),l),h=_(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&a>0,f=t.get("axisExpandWindow");if(f)e=_(f[1]-f[0],l),f[1]=f[0]+e;else{e=_(u*(h-1),l);var m=t.get("axisExpandCenter")||p(c/2);f=[u*m-e/2],f[1]=f[0]+e}var y=(a-e)/(c-h);y<3&&(y=0);var x=[p(v(f[0]/u,1))+1,g(v(f[1]/u,1))-1],b=y/u*f[0];return{layout:o,pixelDimIndex:s,layoutBase:i[n[s]],layoutLength:a,axisBase:i[n[1-s]],axisLength:i[r[1-s]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:y,axisExpandWindow:f,axisCount:c,winInnerIndices:x,axisExpandWindow0Pos:b}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),o=n.layout;t.each((function(e){var t=[0,n.axisLength],i=e.inverse?1:0;e.setExtent(t[i],t[1-i])})),h(i,(function(t,i){var s=(n.axisExpandable?b:x)(i,n),a={horizontal:{x:s.position,y:n.axisLength},vertical:{x:0,y:s.position}},l={horizontal:m/2,vertical:0},c=[a[o].x+e.x,a[o].y+e.y],u=l[o],h=r.create();r.rotate(h,h,u),r.translate(h,h,c),this._axesLayout[t]={position:c,rotation:u,transform:h,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,i,r){null==i&&(i=0),null==r&&(r=e.count());var o=this._axesMap,s=this.dimensions,a=[],l=[];n.each(s,(function(t){a.push(e.mapDimension(t)),l.push(o.get(t).model)}));for(var c=this.hasAxisBrushed(),u=i;u<r;u++){var h;if(c){h="active";for(var d=e.getValues(a,u),f=0,p=s.length;f<p;f++){var g=l[f].getActiveState(d[f]);if("inactive"===g){h="inactive";break}}}else h="normal";t(h,u)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,i=!1,n=0,r=e.length;n<r;n++)"normal"!==t.get(e[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(e,t){var i=this._axesLayout[t];return l.applyTransform([e,0],i.transform)},getAxisLayout:function(e){return n.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,n=t.axisExpandWindow.slice(),r=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s,a=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=null!=h[0];if(c)p&&c&&a<r*h[0]?(l="jump",s=a-r*h[2]):p&&c&&a>r*(1-h[0])?(l="jump",s=a-r*(1-h[2])):(s=a-r*h[1])>=0&&(s=a-r*(1-h[1]))<=0&&(s=0),s*=t.axisExpandWidth/c,s?u(s,n,o,"all"):l="none";else{r=n[1]-n[0];var g=o[1]*a/r;n=[f(0,g-r/2)],n[1]=d(o[1],n[0]+r),n[0]=n[1]-r}return{axisExpandWindow:n,behavior:l}}};var w=y;e.exports=w},81477:function(e,t,i){var n=i(95289),r=i(31490),o=function(e,t,i,n,o){r.call(this,e,t,i),this.type=n||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},n.inherits(o,r);var s=o;e.exports=s},69531:function(e,t,i){var n=i(95289),r=i(85532);i(52841);var o=r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",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},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&n.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var i=e.get("parallelIndex");return null!=i&&t.getComponent("parallel",i)===this},setAxisExpand:function(e){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);n.each(i,(function(i){e.push("dim"+i.get("dim")),t.push(i.componentIndex)}))}});e.exports=o},9278:function(e,t,i){var n=i(46052),r=i(50294);function o(e,t){var i=[];return e.eachComponent("parallel",(function(r,o){var s=new n(r,e,t);s.name="parallel_"+o,s.resize(r,t),r.coordinateSystem=s,s.model=r,i.push(s)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=i.coordinateSystem}})),i}r.register("parallel",{create:o})},44259:function(e,t,i){var n=i(95289),r=i(63199);function o(e){s(e),a(e)}function s(e){if(!e.parallel){var t=!1;n.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function a(e){var t=r.normalizeToArray(e.parallelAxis);n.each(t,(function(t){if(n.isObject(t)){var i=t.parallelIndex||0,o=r.normalizeToArray(e.parallel)[i];o&&o.parallelAxisDefault&&n.merge(t,o.parallelAxisDefault,!1)}}))}e.exports=o},10318:function(e,t,i){var n=i(95289),r=i(43407),o=i(31490),s=i(63199),a=s.makeInner,l=a();function c(e,t){t=t||[0,360],o.call(this,"angle",e,t),this.type="category"}c.prototype={constructor:c,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData,calculateCategoryInterval:function(){var e=this,t=e.getLabelModel(),i=e.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],a=e.dataToCoord(s+1)-e.dataToCoord(s),c=Math.abs(a),u=r.getBoundingRect(s,t.getFont(),"center","top"),h=Math.max(u.height,7),d=h/c;isNaN(d)&&(d=1/0);var f=Math.max(0,Math.floor(d)),p=l(e.model),g=p.lastAutoInterval,v=p.lastTickCount;return null!=g&&null!=v&&Math.abs(g-f)<=1&&Math.abs(v-o)<=1&&g>f?f=g:(p.lastTickCount=o,p.lastAutoInterval=f),f}},n.inherits(c,o);var u=c;e.exports=u},77814:function(e,t,i){var n=i(95289),r=i(85532),o=i(98541),s=i(48267),a=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n.merge(a.prototype,s);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function c(e,t){return t.type||(t.data?"category":"value")}o("angle",a,c,l.angle),o("radius",a,c,l.radius)},4432:function(e,t,i){var n=i(95845),r=i(10318),o=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};o.prototype={type:"polar",axisPointerEnabled:!0,constructor:o,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===e&&t.push(i),n.scale.type===e&&t.push(n),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=this.getAngleAxis(),r=n.getExtent(),o=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);n.inverse?o=s-360:s=o+360;var a=Math.sqrt(t*t+i*i);t/=a,i/=a;var l=Math.atan2(-i,t)/Math.PI*180,c=l<o?1:-1;while(l<o||l>s)l+=360*c;return[a,l]},coordToPoint:function(e){var t=e[0],i=e[1]/180*Math.PI,n=Math.cos(i)*t+this.cx,r=-Math.sin(i)*t+this.cy;return[n,r]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var n=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var i=e-this.cx,n=t-this.cy,r=i*i+n*n,o=this.r,s=this.r0;return r<=o*o&&r>=s*s}}}};var s=o;e.exports=s},23607:function(e,t,i){var n=i(89231);i(77814);var r=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,i=this.ecModel;return i.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=r},95845:function(e,t,i){var n=i(95289),r=i(31490);function o(e,t){r.call(this,"radius",e,t),this.type="category"}o.prototype={constructor:o,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},n.inherits(o,r);var s=o;e.exports=s},35866:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(4432),s=i(44261),a=s.parsePercent,l=i(8426),c=l.createScaleByModel,u=l.niceScaleExtent,h=i(50294),d=i(74051),f=d.getStackedDimension;function p(e,t,i){var n=t.get("center"),o=i.getWidth(),s=i.getHeight();e.cx=a(n[0],o),e.cy=a(n[1],s);var l=e.getRadiusAxis(),c=Math.min(o,s)/2,u=t.get("radius");null==u?u=[0,"100%"]:r.isArray(u)||(u=[0,u]),u=[a(u[0],c),a(u[1],c)],l.inverse?l.setExtent(u[1],u[0]):l.setExtent(u[0],u[1])}function g(e,t){var i=this,n=i.getAngleAxis(),o=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===i){var t=e.getData();r.each(t.mapDimension("radius",!0),(function(e){o.scale.unionExtentFromData(t,f(t,e))})),r.each(t.mapDimension("angle",!0),(function(e){n.scale.unionExtentFromData(t,f(t,e))}))}})),u(n.scale,n.model),u(o.scale,o.model),"category"===n.type&&!n.onBand){var s=n.getExtent(),a=360/n.scale.count();n.inverse?s[1]+=a:s[1]-=a,n.setExtent(s[0],s[1])}}function v(e,t){if(e.type=t.get("type"),e.scale=c(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var i=t.get("startAngle");e.setExtent(i,i+(e.inverse?-360:360))}t.axis=e,e.model=t}i(23607);var m={dimensions:o.prototype.dimensions,create:function(e,t){var i=[];return e.eachComponent("polar",(function(e,n){var r=new o(n);r.update=g;var s=r.getRadiusAxis(),a=r.getAngleAxis(),l=e.findAxisModel("radiusAxis"),c=e.findAxisModel("angleAxis");v(s,l),v(a,c),p(r,e,t),i.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=i.coordinateSystem}})),i}};h.register("polar",m)},12976:function(e,t,i){var n=i(95289);function r(e,t){return n.map(["Radius","Angle"],(function(i,n){var r=this["get"+i+"Axis"](),o=t[n],s=e[n]/2,a="dataTo"+i,l="category"===r.type?r.getBandWidth():Math.abs(r[a](o-s)-r[a](o+s));return"Angle"===i&&(l=l*Math.PI/180),l}),this)}function o(e){var t=e.getRadiusAxis(),i=e.getAngleAxis(),o=t.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:o[1],r0:o[0]},api:{coord:n.bind((function(n){var r=t.dataToRadius(n[0]),o=i.dataToAngle(n[1]),s=e.coordToPoint([r,o]);return s.push(r,o*Math.PI/180),s})),size:n.bind(r,e)}}}e.exports=o},64156:function(e,t,i){var n=i(95289),r=i(31490);function o(e,t,i){r.call(this,e,t,i),this.type="value",this.angle=0,this.name="",this.model}n.inherits(o,r);var s=o;e.exports=s},12228:function(e,t,i){var n=i(95289),r=i(64156),o=i(21607),s=i(44261),a=i(8426),l=a.getScaleExtent,c=a.niceScaleExtent,u=i(50294),h=i(94034);function d(e,t,i){this._model=e,this.dimensions=[],this._indicatorAxes=n.map(e.getIndicatorModels(),(function(e,t){var i="indicator_"+t,n=new r(i,"log"===e.get("axisType")?new h:new o);return n.name=e.get("name"),n.model=e,e.axis=n,this.dimensions.push(i),n}),this),this.resize(e,i),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},d.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],n=i.angle,r=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[r,o]},d.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=Math.sqrt(t*t+i*i);t/=n,i/=n;for(var r,o=Math.atan2(-i,t),s=1/0,a=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(o-c.angle);u<s&&(r=c,a=l,s=u)}return[a,+(r&&r.coordToData(n))]},d.prototype.resize=function(e,t){var i=e.get("center"),r=t.getWidth(),o=t.getHeight(),a=Math.min(r,o)/2;this.cx=s.parsePercent(i[0],r),this.cy=s.parsePercent(i[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");"string"!==typeof l&&"number"!==typeof l||(l=[0,l]),this.r0=s.parsePercent(l[0],a),this.r=s.parsePercent(l[1],a),n.each(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var i=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),e.angle=i}),this)},d.prototype.update=function(e,t){var i=this._indicatorAxes,r=this._model;n.each(i,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var s=t.getData();n.each(i,(function(e){e.scale.unionExtentFromData(s,s.mapDimension(e.dim))}))}}),this);var o=r.get("splitNumber");function a(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),i=e/t;return 2===i?i=5:i*=2,i*t}n.each(i,(function(e,t){var i=l(e.scale,e.model).extent;c(e.scale,e.model);var n=e.model,r=e.scale,u=n.getMin(),h=n.getMax(),d=r.getInterval();if(null!=u&&null!=h)r.setExtent(+u,+h),r.setInterval((h-u)/o);else if(null!=u){do{p=u+d*o,r.setExtent(+u,p),r.setInterval(d),d=a(d)}while(p<i[1]&&isFinite(p)&&isFinite(i[1]))}else if(null!=h){do{g=h-d*o,r.setExtent(g,+h),r.setInterval(d),d=a(d)}while(g>i[0]&&isFinite(g)&&isFinite(i[0]))}else{var f=r.getTicks().length-1;f>o&&(d=a(d));var p=Math.ceil(i[1]/d)*d,g=s.round(p-d*o);r.setExtent(g,p),r.setInterval(d)}}))},d.dimensions=[],d.create=function(e,t){var i=[];return e.eachComponent("radar",(function(n){var r=new d(n,e,t);i.push(r),n.coordinateSystem=r})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},u.register("radar",d);var f=d;e.exports=f},45371:function(e,t,i){var n=i(89231),r=i(95289),o=i(15429),s=i(40590),a=i(48267),l=o.valueAxis;function c(e,t){return r.defaults({show:t},e)}var u=n.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),l=this.get("axisType"),c=this.get("axisLabel"),u=this.get("name"),h=this.get("name.show"),d=this.get("name.formatter"),f=this.get("nameGap"),p=this.get("triggerEvent"),g=r.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=u;if(null!=g.color&&(v=r.defaults({color:g.color},u)),g=r.merge(r.clone(g),{boundaryGap:e,splitNumber:t,scale:i,axisLine:n,axisTick:o,axisType:l,axisLabel:c,name:g.text,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:p},!1),h||(g.name=""),"string"===typeof d){var m=g.name;g.name=d.replace("{value}",null!=m?m:"")}else"function"===typeof d&&(g.name=d(g.name,g));var y=r.extend(new s(g,null,this.ecModel),a);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:r.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),axisType:"interval",splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}}),h=u;e.exports=h},51102:function(e,t,i){var n=i(95289),r=i(85532),o=i(98541),s=i(48267),a=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={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}}};function c(e,t){return t.type||(t.data?"category":"value")}n.merge(a.prototype,s),o("single",a,c,l);var u=a;e.exports=u},75766:function(e,t,i){var n=i(25515),r=i(8426),o=i(61570),s=o.getLayoutRect,a=i(95289),l=a.each;function c(e,t,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,i),this.model=e}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(e,t,i){var o=this.dimension,s=new n(o,r.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),a="category"===s.type;s.onBand=a&&e.get("boundaryGap"),s.inverse=e.get("inverse"),s.orient=e.get("orient"),e.axis=s,s.model=e,s.coordinateSystem=this,this._axis=s},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=s({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),n=i?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(n[r],n[1-r]),this._updateAxisTransform(t,i?e.x:e.y)},_updateAxisTransform:function(e,t){var i=e.getExtent(),n=i[0]+i[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return n-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),i=this.getRect(),n=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),n[r]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-r]=0===r?i.y+i.height/2:i.x+i.width/2,n}};var u=c;e.exports=u},25515:function(e,t,i){var n=i(95289),r=i(31490),o=function(e,t,i,n,o){r.call(this,e,t,i),this.type=n||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(o,r);var s=o;e.exports=s},58568:function(e,t,i){var n=i(95289);function r(e,t){var i=this.getAxis(),n=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function o(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(r,e)}}}e.exports=o},71099:function(e,t,i){var n=i(95289);function r(e,t){t=t||{};var i=e.coordinateSystem,r=e.axis,o={},s=r.position,a=r.orient,l=i.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};o.position=["vertical"===a?u.vertical[s]:c[0],"horizontal"===a?u.horizontal[s]:c[3]];var h={horizontal:0,vertical:1};o.rotation=Math.PI/2*h[a];var d={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=d[s],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),n.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var f=t.rotate;return null==f&&(f=e.get("axisLabel.rotate")),o.labelRotation="top"===s?-f:f,o.z2=1,o}t.layout=r},8644:function(e,t,i){var n=i(75766),r=i(50294);function o(e,t){var i=[];return e.eachComponent("singleAxis",(function(r,o){var s=new n(r,e,t);s.name="single_"+o,s.resize(r,t),r.coordinateSystem=s,i.push(s)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=i&&i.coordinateSystem}})),i}r.register("single",{create:o,dimensions:n.prototype.dimensions})},1032:function(e){function t(e){return e}function i(e,i,n,r,o){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t,this.context=o}function n(e,t,i,n,r){for(var o=0;o<e.length;o++){var s="_ec_"+r[n](e[o],o),a=t[s];null==a?(i.push(s),t[s]=o):(a.length||(t[s]=a=[a]),a.push(o))}}i.prototype={constructor:i,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,i={},r={},o=[],s=[];for(n(e,i,o,"_oldKeyGetter",this),n(t,r,s,"_newKeyGetter",this),u=0;u<e.length;u++){var a=o[u],l=r[a];if(null!=l){var c=l.length;c?(1===c&&(r[a]=null),l=l.shift()):r[a]=null,this._update&&this._update(l,u)}else this._remove&&this._remove(u)}for(var u=0;u<s.length;u++){a=s[u];if(r.hasOwnProperty(a)){l=r[a];if(null==l)continue;if(l.length){var h=0;for(c=l.length;h<c;h++)this._add&&this._add(l[h])}else this._add&&this._add(l)}}}};var r=i;e.exports=r},70362:function(e,t,i){var n=i(95289);function r(e){null!=e&&n.extend(this,e),this.otherDims={}}var o=r;e.exports=o},50950:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(11724),s=o.enableClassCheck;function a(e){return"_EC_"+e}var l=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=l.prototype;function u(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function h(e,t,i){this.node1=e,this.node2=t,this.dataIndex=null==i?-1:i}c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,t){e=null==e?""+t:""+e;var i=this._nodesMap;if(!i[a(e)]){var n=new u(e,t);return n.hostGraph=this,this.nodes.push(n),i[a(e)]=n,n}},c.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},c.getNodeById=function(e){return this._nodesMap[a(e)]},c.addEdge=function(e,t,i){var n=this._nodesMap,r=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),u.isInstance(e)||(e=n[a(e)]),u.isInstance(t)||(t=n[a(t)]),e&&t){var o=e.id+"-"+t.id,s=new h(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),r[o]=s,s}},c.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},c.getEdge=function(e,t){u.isInstance(e)&&(e=e.id),u.isInstance(t)&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},c.eachNode=function(e,t){for(var i=this.nodes,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&e.call(t,i[r],r)},c.eachEdge=function(e,t){for(var i=this.edges,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&e.call(t,i[r],r)},c.breadthFirstTraverse=function(e,t,i,n){if(u.isInstance(t)||(t=this._nodesMap[a(t)]),t){for(var r="out"===i?"outEdges":"in"===i?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null)){var s=[t];while(s.length){var l=s.shift(),c=l[r];for(o=0;o<c.length;o++){var h=c[o],d=h.node1===l?h.node2:h.node1;if(!d.__visited){if(e.call(n,d,l))return;s.push(d),d.__visited=!0}}}}}},c.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,n=this.edges,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.filterSelf((function(e){var i=n[t.getRawIndex(e)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0}));for(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},c.clone=function(){for(var e=new l(this._directed),t=this.nodes,i=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(n=0;n<i.length;n++){var r=i[n];e.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return e},u.prototype={constructor:u,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}}},h.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}};var d=function(e,t){return{getValue:function(i){var n=this[e][t];return n.get(n.getDimension(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[e][t].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};r.mixin(u,d("hostGraph","data")),r.mixin(h,d("hostGraph","edgeData")),l.Node=u,l.Edge=h,s(u),s(h);var f=l;e.exports=f},5628:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(40590),s=i(1032),a=i(3325),l=i(41834),c=l.defaultDimValueGetters,u=l.DefaultDataProvider,h=i(99535),d=h.summarizeDimensions,f=i(70362),p=r.isObject,g="undefined",v=-1,m="e\0\0",y={float:typeof Float64Array===g?Array:Float64Array,int:typeof Int32Array===g?Array:Int32Array,ordinal:Array,number:Array,time:Array},_=typeof Uint32Array===g?Array:Uint32Array,x=typeof Int32Array===g?Array:Int32Array,b=typeof Uint16Array===g?Array:Uint16Array;function w(e){return e._rawCount>65535?_:b}function S(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],A=["_extent","_approximateExtent","_rawExtent"];function M(e,t){r.each(C.concat(t.__wrappedMethods||[]),(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e.__wrappedMethods=t.__wrappedMethods,r.each(A,(function(i){e[i]=r.clone(t[i])})),e._calculationInfo=r.extend(t._calculationInfo)}var k=function(e,t){e=e||["x","y"];for(var i={},n=[],o={},s=0;s<e.length;s++){var a=e[s];r.isString(a)?a=new f({name:a}):a instanceof f||(a=new f(a));var l=a.name;a.type=a.type||"float",a.coordDim||(a.coordDim=l,a.coordDimIndex=0),a.otherDims=a.otherDims||{},n.push(l),i[l]=a,a.index=s,a.createInvertedIndices&&(o[l]=[])}this.dimensions=n,this._dimensionInfos=i,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=d(this),this._invertedIndicesMap=o,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},T=k.prototype;function I(e,t,i,n,r){var o=y[t.type],s=n-1,a=t.name,l=e[a][s];if(l&&l.length<i){for(var c=new o(Math.min(r-s*i,i)),u=0;u<l.length;u++)c[u]=l[u];e[a][s]=c}for(var h=n*i;h<r;h+=i)e[a].push(new o(Math.min(r-h,i)))}function L(e){var t=e._invertedIndicesMap;r.each(t,(function(i,n){var r=e._dimensionInfos[n],o=r.ordinalMeta;if(o){i=t[n]=new x(o.categories.length);for(var s=0;s<i.length;s++)i[s]=v;for(s=0;s<e._count;s++)i[e.get(n,s)]=s}}))}function E(e,t,i){var n;if(null!=t){var r=e._chunkSize,o=Math.floor(i/r),s=i%r,a=e.dimensions[t],l=e._storage[a][o];if(l){n=l[s];var c=e._dimensionInfos[a].ordinalMeta;c&&c.categories.length&&(n=c.categories[n])}}return n}function D(e){return e}function O(e){return e<this._count&&e>=0?this._indices[e]:-1}function P(e,t){var i=e._idList[t];return null==i&&(i=E(e,e._idDimIdx,t)),null==i&&(i=m+t),i}function R(e){return r.isArray(e)||(e=[e]),e}function B(e,t){var i=e.dimensions,n=new k(r.map(i,e.getDimensionInfo,e),e.hostModel);M(n,e);for(var o=n._storage={},s=e._storage,a=0;a<i.length;a++){var l=i[a];s[l]&&(r.indexOf(t,l)>=0?(o[l]=N(s[l]),n._rawExtent[l]=z(),n._extent[l]=null):o[l]=s[l])}return n}function N(e){for(var t=new Array(e.length),i=0;i<e.length;i++)t[i]=S(e[i]);return t}function z(){return[1/0,-1/0]}T.type="list",T.hasItemOption=!0,T.getDimension=function(e){return"number"!==typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},T.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},T.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},T.mapDimension=function(e,t){var i=this._dimensionsSummary;if(null==t)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return!0===t?(n||[]).slice():n&&n[t]},T.initData=function(e,t,i){var n=a.isInstance(e)||r.isArrayLike(e);n&&(e=new u(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},T.getProvider=function(){return this._rawData},T.appendData=function(e){var t=this._rawData,i=this.count();t.appendData(e);var n=t.count();t.persistent||(n+=i),this._initDataFromProvider(i,n)},T.appendValues=function(e,t){for(var i=this._chunkSize,n=this._storage,r=this.dimensions,o=r.length,s=this._rawExtent,a=this.count(),l=a+Math.max(e.length,t?t.length:0),c=this._chunkCount,u=0;u<o;u++){var h=r[u];s[h]||(s[h]=z()),n[h]||(n[h]=[]),I(n,this._dimensionInfos[h],i,c,l),this._chunkCount=n[h].length}for(var d=new Array(o),f=a;f<l;f++){for(var p=f-a,g=Math.floor(f/i),v=f%i,m=0;m<o;m++){h=r[m];var y=this._dimValueGetterArrayRows(e[p]||d,h,p,m);n[h][g][v]=y;var _=s[h];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}t&&(this._nameList[f]=t[p])}this._rawCount=this._count=l,this._extent={},L(this)},T._initDataFromProvider=function(e,t){if(!(e>=t)){for(var i,n=this._chunkSize,r=this._rawData,o=this._storage,s=this.dimensions,a=s.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;p<a;p++){var g=s[p];h[g]||(h[g]=z());var v=l[g];0===v.otherDims.itemName&&(i=this._nameDimIdx=p),0===v.otherDims.itemId&&(this._idDimIdx=p),o[g]||(o[g]=[]),I(o,v,n,f,t),this._chunkCount=o[g].length}for(var m=new Array(a),y=e;y<t;y++){m=r.getItem(y,m);for(var _=Math.floor(y/n),x=y%n,b=0;b<a;b++){g=s[b];var w=o[g][_],S=this._dimValueGetter(m,g,y,b);w[x]=S;var C=h[g];S<C[0]&&(C[0]=S),S>C[1]&&(C[1]=S)}if(!r.pure){var A=c[y];if(m&&null==A)if(null!=m.name)c[y]=A=m.name;else if(null!=i){var M=s[i],k=o[M][_];if(k){A=k[x];var T=l[M].ordinalMeta;T&&T.categories.length&&(A=T.categories[A])}}var E=null==m?null:m.id;null==E&&null!=A&&(d[A]=d[A]||0,E=A,d[A]>0&&(E+="__ec__"+d[A]),d[A]++),null!=E&&(u[y]=E)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},L(this)}},T.count=function(){return this._count},T.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,i=this._count;if(t===Array){r=new t(i);for(var n=0;n<i;n++)r[n]=e[n]}else r=new t(e.buffer,0,i)}else{t=w(this);var r=new t(this.count());for(n=0;n<r.length;n++)r[n]=n}return r},T.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._storage;if(!i[e])return NaN;t=this.getRawIndex(t);var n=Math.floor(t/this._chunkSize),r=t%this._chunkSize,o=i[e][n],s=o[r];return s},T.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._storage[e];if(!i)return NaN;var n=Math.floor(t/this._chunkSize),r=t%this._chunkSize,o=i[n];return o[r]},T._getFast=function(e,t){var i=Math.floor(t/this._chunkSize),n=t%this._chunkSize,r=this._storage[e][i];return r[n]},T.getValues=function(e,t){var i=[];r.isArray(e)||(t=e,e=this.dimensions);for(var n=0,o=e.length;n<o;n++)i.push(this.get(e[n],t));return i},T.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,i=0,n=t.length;i<n;i++)if(isNaN(this.get(t[i],e)))return!1;return!0},T.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],i=z();if(!t)return i;var n,r=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(n=this._extent[e],n)return n.slice();n=i;for(var s=n[0],a=n[1],l=0;l<r;l++){var c=this._getFast(e,this.getRawIndex(l));c<s&&(s=c),c>a&&(a=c)}return n=[s,a],this._extent[e]=n,n},T.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},T.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},T.getCalculationInfo=function(e){return this._calculationInfo[e]},T.setCalculationInfo=function(e,t){p(e)?r.extend(this._calculationInfo,e):this._calculationInfo[e]=t},T.getSum=function(e){var t=this._storage[e],i=0;if(t)for(var n=0,r=this.count();n<r;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},T.getMedian=function(e){var t=[];this.each(e,(function(e,i){isNaN(e)||t.push(e)}));var i=[].concat(t).sort((function(e,t){return e-t})),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},T.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],n=i[t];return null==n||isNaN(n)?v:n},T.indexOfName=function(e){for(var t=0,i=this.count();t<i;t++)if(this.getName(t)===e)return t;return-1},T.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(null!=i&&i<this._count&&i===e)return e;var n=0,r=this._count-1;while(n<=r){var o=(n+r)/2|0;if(t[o]<e)n=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},T.indicesOfNearest=function(e,t,i){var n=this._storage,r=n[e],o=[];if(!r)return o;null==i&&(i=1/0);for(var s=1/0,a=-1,l=0,c=0,u=this.count();c<u;c++){var h=t-this.get(e,c),d=Math.abs(h);d<=i&&((d<s||d===s&&h>=0&&a<0)&&(s=d,a=h,l=0),h===a&&(o[l++]=c))}return o.length=l,o},T.getRawIndex=D,T.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];t.push(this.get(n,e))}return t},T.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||E(this,this._nameDimIdx,t)||""},T.getId=function(e){return P(this,this.getRawIndex(e))},T.each=function(e,t,i,n){"use strict";if(this._count){"function"===typeof e&&(n=i,i=t,t=e,e=[]),i=i||n||this,e=r.map(R(e),this.getDimension,this);for(var o=e.length,s=0;s<this.count();s++)switch(o){case 0:t.call(i,s);break;case 1:t.call(i,this.get(e[0],s),s);break;case 2:t.call(i,this.get(e[0],s),this.get(e[1],s),s);break;default:for(var a=0,l=[];a<o;a++)l[a]=this.get(e[a],s);l[a]=s,t.apply(i,l)}}},T.filterSelf=function(e,t,i,n){"use strict";if(this._count){"function"===typeof e&&(n=i,i=t,t=e,e=[]),i=i||n||this,e=r.map(R(e),this.getDimension,this);for(var o=this.count(),s=w(this),a=new s(o),l=[],c=e.length,u=0,h=e[0],d=0;d<o;d++){var f,p=this.getRawIndex(d);if(0===c)f=t.call(i,d);else if(1===c){var g=this._getFast(h,p);f=t.call(i,g,d)}else{for(var v=0;v<c;v++)l[v]=this._getFast(h,p);l[v]=d,f=t.apply(i,l)}f&&(a[u++]=p)}return u<o&&(this._indices=a),this._count=u,this._extent={},this.getRawIndex=this._indices?O:D,this}},T.selectRange=function(e){"use strict";if(this._count){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);var n=t.length;if(n){var r=this.count(),o=w(this),s=new o(r),a=0,l=t[0],c=e[l][0],u=e[l][1],h=!1;if(!this._indices){var d=0;if(1===n){for(var f=this._storage[t[0]],p=0;p<this._chunkCount;p++)for(var g=f[p],v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<v;m++){var y=g[m];(y>=c&&y<=u||isNaN(y))&&(s[a++]=d),d++}h=!0}else if(2===n){f=this._storage[l];var _=this._storage[t[1]],x=e[t[1]][0],b=e[t[1]][1];for(p=0;p<this._chunkCount;p++){g=f[p];var S=_[p];for(v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<v;m++){y=g[m];var C=S[m];(y>=c&&y<=u||isNaN(y))&&(C>=x&&C<=b||isNaN(C))&&(s[a++]=d),d++}}h=!0}}if(!h)if(1===n)for(m=0;m<r;m++){var A=this.getRawIndex(m);y=this._getFast(l,A);(y>=c&&y<=u||isNaN(y))&&(s[a++]=A)}else for(m=0;m<r;m++){var M=!0;for(A=this.getRawIndex(m),p=0;p<n;p++){var k=t[p];y=this._getFast(i,A);(y<e[k][0]||y>e[k][1])&&(M=!1)}M&&(s[a++]=this.getRawIndex(m))}return a<r&&(this._indices=s),this._count=a,this._extent={},this.getRawIndex=this._indices?O:D,this}}},T.mapArray=function(e,t,i,n){"use strict";"function"===typeof e&&(n=i,i=t,t=e,e=[]),i=i||n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),i),r},T.map=function(e,t,i,n){"use strict";i=i||n||this,e=r.map(R(e),this.getDimension,this);var o=B(this,e);o._indices=this._indices,o.getRawIndex=o._indices?O:D;for(var s=o._storage,a=[],l=this._chunkSize,c=e.length,u=this.count(),h=[],d=o._rawExtent,f=0;f<u;f++){for(var p=0;p<c;p++)h[p]=this.get(e[p],f);h[c]=f;var g=t&&t.apply(i,h);if(null!=g){"object"!==typeof g&&(a[0]=g,g=a);for(var v=this.getRawIndex(f),m=Math.floor(v/l),y=v%l,_=0;_<g.length;_++){var x=e[_],b=g[_],w=d[x],S=s[x];S&&(S[m][y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return o},T.downSample=function(e,t,i,n){for(var r=B(this,[e]),o=r._storage,s=[],a=Math.floor(1/t),l=o[e],c=this.count(),u=this._chunkSize,h=r._rawExtent[e],d=new(w(this))(c),f=0,p=0;p<c;p+=a){a>c-p&&(a=c-p,s.length=a);for(var g=0;g<a;g++){var v=this.getRawIndex(p+g),m=Math.floor(v/u),y=v%u;s[g]=l[m][y]}var _=i(s),x=this.getRawIndex(Math.min(p+n(s,_)||0,c-1)),b=Math.floor(x/u),S=x%u;l[b][S]=_,_<h[0]&&(h[0]=_),_>h[1]&&(h[1]=_),d[f++]=x}return r._count=f,r._indices=d,r.getRawIndex=O,r},T.getItemModel=function(e){var t=this.hostModel;return new o(this.getRawDataItem(e),t,t&&t.ecModel)},T.diff=function(e){var t=this;return new s(e?e.getIndices():[],this.getIndices(),(function(t){return P(e,t)}),(function(e){return P(t,e)}))},T.getVisual=function(e){var t=this._visual;return t&&t[e]},T.setVisual=function(e,t){if(p(e))for(var i in e)e.hasOwnProperty(i)&&this.setVisual(i,e[i]);else this._visual=this._visual||{},this._visual[e]=t},T.setLayout=function(e,t){if(p(e))for(var i in e)e.hasOwnProperty(i)&&this.setLayout(i,e[i]);else this._layout[e]=t},T.getLayout=function(e){return this._layout[e]},T.getItemLayout=function(e){return this._itemLayouts[e]},T.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?r.extend(this._itemLayouts[e]||{},t):t},T.clearItemLayouts=function(){this._itemLayouts.length=0},T.getItemVisual=function(e,t,i){var n=this._itemVisuals[e],r=n&&n[t];return null!=r||i?r:this.getVisual(t)},T.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{},r=this.hasItemVisual;if(this._itemVisuals[e]=n,p(t))for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o],r[o]=!0);else n[t]=i,r[t]=!0},T.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var H=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};T.setItemGraphicEl=function(e,t){var i=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=i&&i.seriesIndex,"group"===t.type&&t.traverse(H,t)),this._graphicEls[e]=t},T.getItemGraphicEl=function(e){return this._graphicEls[e]},T.eachItemGraphicEl=function(e,t){r.each(this._graphicEls,(function(i,n){i&&e&&e.call(t,i,n)}))},T.cloneShallow=function(e){if(!e){var t=r.map(this.dimensions,this.getDimensionInfo,this);e=new k(t,this.hostModel)}if(e._storage=this._storage,M(e,this),this._indices){var i=this._indices.constructor;e._indices=new i(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?O:D,e},T.wrapMethod=function(e,t){var i=this[e];"function"===typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=i.apply(this,arguments);return t.apply(this,[e].concat(r.slice(arguments)))})},T.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],T.CHANGABLE_METHODS=["filterSelf","selectRange"];var F=k;e.exports=F},54874:function(e,t,i){var n=i(95289),r=n.createHashMap,o=n.isObject,s=n.map;function a(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}a.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&s(i,u);return new a({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})};var l=a.prototype;function c(e){return e._map||(e._map=r(e.categories))}function u(e){return o(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return c(this).get(e)},l.parseAndCollect=function(e){var t,i=this._needCollect;if("string"!==typeof e&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=c(this);return t=n.get(e),null==t&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t};var h=a;e.exports=h},3325:function(e,t,i){var n=i(95289),r=n.createHashMap,o=n.isTypedArray,s=i(11724),a=s.enableClassCheck,l=i(90642),c=l.SOURCE_FORMAT_ORIGINAL,u=l.SERIES_LAYOUT_BY_COLUMN,h=l.SOURCE_FORMAT_UNKNOWN,d=l.SOURCE_FORMAT_TYPED_ARRAY,f=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===f?{}:[]),this.sourceFormat=e.sourceFormat||h,this.seriesLayoutBy=e.seriesLayoutBy||u,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&r(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}p.seriesDataToSource=function(e){return new p({data:e,sourceFormat:o(e)?d:c,fromDataset:!1})},a(p);var g=p;e.exports=g},35288:function(e,t,i){var n=i(95289),r=i(75403),o=i(5628),s=i(29966),a=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function l(e){this.root,this.data,this._nodes=[],this.hostModel=e}function c(e,t){var i=t.children;e.parentNode!==t&&(i.push(e),e.parentNode=t)}a.prototype={constructor:a,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,i){"function"===typeof e&&(i=t,t=e,e=null),e=e||{},n.isString(e)&&(e={order:e});var r,o=e.order||"preorder",s=this[e.attr||"children"];"preorder"===o&&(r=t.call(i,this));for(var a=0;!r&&a<s.length;a++)s[a].eachNode(e,t,i);"postorder"===o&&t.call(i,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,n=i.length;t<n;t++){var r=i[t].getNodeById(e);if(r)return r}},contains:function(e){if(e===this)return!0;for(var t=0,i=this.children,n=i.length;t<n;t++){var r=i[t].contains(e);if(r)return r}},getAncestors:function(e){var t=[],i=e?this:this.parentNode;while(i)t.push(i),i=i.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(e,t,i){this.root.eachNode(e,t,i)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,i=0,n=t.length;i<n;i++)t[i].dataIndex=-1;for(i=0,n=e.count();i<n;i++)t[e.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},l.createTree=function(e,t,i){var u=new l(t),h=[],d=1;function f(e,t){var i=e.value;d=Math.max(d,n.isArray(i)?i.length:1),h.push(e);var r=new a(e.name,u);t?c(r,t):u.root=r,u._nodes.push(r);var o=e.children;if(o)for(var s=0;s<o.length;s++)f(o[s],r)}f(e),u.root.updateDepthAndHeight(0);var p=s(h,{coordDimensions:["value"],dimensionsCount:d}),g=new o(p,t);return g.initData(h),i&&i(g),r({mainData:g,struct:u,structAttr:"tree"}),u.update(),u};var u=l;e.exports=u},21685:function(e,t,i){var n=i(95289),r=n.createHashMap,o=n.each,s=n.isString,a=n.defaults,l=n.extend,c=n.isObject,u=n.clone,h=i(63199),d=h.normalizeToArray,f=i(49442),p=f.guessOrdinal,g=f.BE_ORDINAL,v=i(3325),m=i(99535),y=m.OTHER_DIMENSIONS,_=i(70362);function x(e,t,i){v.isInstance(t)||(t=v.seriesDataToSource(t)),i=i||{},e=(e||[]).slice();for(var n=(i.dimsDef||[]).slice(),h=r(),f=r(),m=[],x=b(t,e,n,i.dimCount),S=0;S<x;S++){var C=n[S]=l({},c(n[S])?n[S]:{name:n[S]}),A=C.name,M=m[S]=new _;null!=A&&null==h.get(A)&&(M.name=M.displayName=A,h.set(A,S)),null!=C.type&&(M.type=C.type),null!=C.displayName&&(M.displayName=C.displayName)}var k=i.encodeDef;!k&&i.encodeDefaulter&&(k=i.encodeDefaulter(t,x)),k=r(k),k.each((function(e,t){if(e=d(e).slice(),1===e.length&&!s(e[0])&&e[0]<0)k.set(t,!1);else{var i=k.set(t,[]);o(e,(function(e,n){s(e)&&(e=h.get(e)),null!=e&&e<x&&(i[n]=e,I(m[e],t,n))}))}}));var T=0;function I(e,t,i){null!=y.get(t)?e.otherDims[t]=i:(e.coordDim=t,e.coordDimIndex=i,f.set(t,!0))}o(e,(function(e,t){var i,n,r;if(s(e))i=e,e={};else{i=e.name;var l=e.ordinalMeta;e.ordinalMeta=null,e=u(e),e.ordinalMeta=l,n=e.dimsDef,r=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}var h=k.get(i);if(!1!==h){h=d(h);if(!h.length)for(var f=0;f<(n&&n.length||1);f++){while(T<m.length&&null!=m[T].coordDim)T++;T<m.length&&h.push(T++)}o(h,(function(t,o){var s=m[t];if(I(a(s,e),i,o),null==s.name&&n){var l=n[o];!c(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}r&&a(s.otherDims,r)}))}}));var L=i.generateCoord,E=i.generateCoordCount,D=null!=E;E=L?E||1:0;for(var O=L||"value",P=0;P<x;P++){M=m[P]=m[P]||new _;var R=M.coordDim;null==R&&(M.coordDim=w(O,f,D),M.coordDimIndex=0,(!L||E<=0)&&(M.isExtraCoord=!0),E--),null==M.name&&(M.name=w(M.coordDim,h)),null!=M.type||p(t,P,M.name)!==g.Must&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}return m}function b(e,t,i,n){var r=Math.max(e.dimensionsDetectCount||1,t.length,i.length,n||0);return o(t,(function(e){var t=e.dimsDef;t&&(r=Math.max(r,t.length))})),r}function w(e,t,i){if(i||null!=t.get(e)){var n=0;while(null!=t.get(e+n))n++;e+=n}return t.set(e,!0),e}var S=x;e.exports=S},29966:function(e,t,i){var n=i(21685);function r(e,t){return t=t||{},n(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}e.exports=r},41834:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=(r.isTypedArray,r.extend),s=(r.assert,r.each),a=r.isObject,l=i(63199),c=l.getDataItemValue,u=l.isDataItemOption,h=i(44261),d=h.parseDate,f=i(3325),p=i(90642),g=p.SOURCE_FORMAT_TYPED_ARRAY,v=p.SOURCE_FORMAT_ARRAY_ROWS,m=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_OBJECT_ROWS;function _(e,t){f.isInstance(e)||(e=f.seriesDataToSource(e)),this._source=e;var i=this._data=e.data,n=e.sourceFormat;n===g&&(this._offset=0,this._dimSize=t,this._data=i);var r=b[n===v?n+"_"+e.seriesLayoutBy:n];o(this,r)}var x=_.prototype;x.pure=!1,x.persistent=!0,x.getSource=function(){return this._source};var b={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:C},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],i=this._data,n=0;n<i.length;n++){var r=i[n];t.push(r?r[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:w,getItem:S,appendData:C},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var r=this._data[i[n].name];t.push(r?r[e]:null)}return t},appendData:function(e){var t=this._data;s(e,(function(e,i){for(var n=t[i]||(t[i]=[]),r=0;r<(e||[]).length;r++)n.push(e[r])}))}},original:{count:w,getItem:S,appendData:C},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var i=this._dimSize*e,n=0;n<this._dimSize;n++)t[n]=this._data[i+n];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function w(){return this._data.length}function S(e){return this._data[e]}function C(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var A={arrayRows:M,objectRows:function(e,t,i,n){return null!=i?e[n]:e},keyedColumns:M,original:function(e,t,i,n){var r=c(e);return null!=i&&r instanceof Array?r[i]:r},typedArray:M};function M(e,t,i,n){return null!=i?e[i]:e}var k={arrayRows:T,objectRows:function(e,t,i,n){return I(e[t],this._dimensionInfos[t])},keyedColumns:T,original:function(e,t,i,n){var r=e&&(null==e.value?e:e.value);return!this._rawData.pure&&u(e)&&(this.hasItemOption=!0),I(r instanceof Array?r[n]:r,this._dimensionInfos[t])},typedArray:function(e,t,i,n){return e[n]}};function T(e,t,i,n){return I(e[n],this._dimensionInfos[t])}function I(e,t){var i=t&&t.type;if("ordinal"===i){var n=t&&t.ordinalMeta;return n?n.parseAndCollect(e):e}return"time"===i&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+d(e)),null==e||""===e?NaN:+e}function L(e,t,i){if(e){var n=e.getRawDataItem(t);if(null!=n){var r,o,s=e.getProvider().getSource().sourceFormat,a=e.getDimensionInfo(i);return a&&(r=a.name,o=a.index),A[s](n,t,o,r)}}}function E(e,t,i){if(e){var n=e.getProvider().getSource().sourceFormat;if(n===m||n===y){var r=e.getRawDataItem(t);return n!==m||a(r)||(r=null),r?r[i]:void 0}}}t.DefaultDataProvider=_,t.defaultDimValueGetters=k,t.retrieveRawValue=L,t.retrieveRawAttr=E},74051:function(e,t,i){var n=i(95289),r=n.each,o=n.isString;function s(e,t,i){i=i||{};var n,s,a,l,c=i.byIndex,u=i.stackedCoordDimension,h=!(!e||!e.get("stack"));if(r(t,(function(e,i){o(e)&&(t[i]=e={name:e}),h&&!e.isExtraCoord&&(c||n||!e.ordinalMeta||(n=e),s||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(s=e))})),!s||c||n||(c=!0),s){a="__\0ecstackresult",l="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var d=s.coordDim,f=s.type,p=0;r(t,(function(e){e.coordDim===d&&p++})),t.push({name:a,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,t.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:s&&s.name,stackedByDimension:n&&n.name,isStackedByIndex:c,stackedOverDimension:l,stackResultDimension:a}}function a(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function l(e,t){return a(e,t)?e.getCalculationInfo("stackResultDimension"):t}t.enableDataStack=s,t.isDimensionStacked=a,t.getStackedDimension=l},99535:function(e,t,i){var n=i(95289),r=n.each,o=n.createHashMap,s=(n.assert,i(65523)),a=(s.__DEV__,o(["tooltip","label","itemName","itemId","seriesName"]));function l(e){var t={},i=t.encode={},n=o(),s=[],l=[],u=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};r(e.dimensions,(function(t){var r=e.getDimensionInfo(t),o=r.coordDim;if(o){var d=r.coordDimIndex;c(i,o)[d]=t,r.isExtraCoord||(n.set(o,1),h(r.type)&&(s[0]=t),c(u.encode,o)[d]=r.index),r.defaultTooltip&&l.push(t)}a.each((function(e,t){var n=c(i,t),o=r.otherDims[t];null!=o&&!1!==o&&(n[o]=r.name)}))}));var d=[],f={};n.each((function(e,t){var n=i[t];f[t]=n[0],d=d.concat(n)})),t.dataDimsOnCoord=d,t.encodeFirstDimNotExtra=f;var p=i.label;p&&p.length&&(s=p.slice());var g=i.tooltip;return g&&g.length?l=g.slice():l.length||(l=s.slice()),i.defaultedLabel=s,i.defaultedTooltip=l,t}function c(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function u(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function h(e){return!("ordinal"===e||"time"===e)}t.OTHER_DIMENSIONS=a,t.summarizeDimensions=l,t.getDimensionTypeByAxis=u},75403:function(e,t,i){var n=i(95289),r=n.each,o="\0__link_datas",s="\0__link_mainData";function a(e){var t=e.mainData,i=e.datas;i||(i={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,f(t,i,e),r(i,(function(i){r(t.TRANSFERABLE_METHODS,(function(t){i.wrapMethod(t,n.curry(l,e))}))})),t.wrapMethod("cloneShallow",n.curry(u,e)),r(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,n.curry(c,e))})),n.assert(i[t.dataType]===t)}function l(e,t){if(d(this)){var i=n.extend({},this[o]);i[this.dataType]=t,f(t,i,e)}else p(t,this.dataType,this[s],e);return t}function c(e,t){return e.struct&&e.struct.update(this),t}function u(e,t){return r(t[o],(function(i,n){i!==t&&p(i.cloneShallow(),n,t,e)})),t}function h(e){var t=this[s];return null==e||null==t?t:t[o][e]}function d(e){return e[s]===e}function f(e,t,i){e[o]={},r(t,(function(t,n){p(t,n,e,i)}))}function p(e,t,i,n){i[o][t]=e,e[s]=i,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=h}var g=a;e.exports=g},49442:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(63199)),o=r.makeInner,s=r.getDataItemValue,a=i(95289),l=a.createHashMap,c=a.each,u=a.map,h=a.isArray,d=a.isString,f=a.isObject,p=a.isTypedArray,g=a.isArrayLike,v=a.extend,m=(a.assert,i(3325)),y=i(90642),_=y.SOURCE_FORMAT_ORIGINAL,x=y.SOURCE_FORMAT_ARRAY_ROWS,b=y.SOURCE_FORMAT_OBJECT_ROWS,w=y.SOURCE_FORMAT_KEYED_COLUMNS,S=y.SOURCE_FORMAT_UNKNOWN,C=y.SOURCE_FORMAT_TYPED_ARRAY,A=y.SERIES_LAYOUT_BY_ROW,M={Must:1,Might:2,Not:3},k=o();function T(e){var t=e.option.source,i=S;if(p(t))i=C;else if(h(t)){0===t.length&&(i=x);for(var n=0,r=t.length;n<r;n++){var o=t[n];if(null!=o){if(h(o)){i=x;break}if(f(o)){i=b;break}}}}else if(f(t)){for(var s in t)if(t.hasOwnProperty(s)&&g(t[s])){i=w;break}}else if(null!=t)throw new Error("Invalid data");k(e).sourceFormat=i}function I(e){return k(e).source}function L(e){k(e).datasetMap=l()}function E(e){var t=e.option,i=t.data,n=p(i)?C:_,r=!1,o=t.seriesLayoutBy,s=t.sourceHeader,a=t.dimensions,l=z(e);if(l){var c=l.option;i=c.source,n=k(l).sourceFormat,r=!0,o=o||c.seriesLayoutBy,null==s&&(s=c.sourceHeader),a=a||c.dimensions}var u=D(i,n,o,s,a);k(e).source=new m({data:i,fromDataset:r,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:t.encode})}function D(e,t,i,n,r){if(!e)return{dimensionsDefine:O(r)};var o,a;if(t===x)"auto"===n||null==n?P((function(e){null!=e&&"-"!==e&&(d(e)?null==a&&(a=1):a=0)}),i,e,10):a=n?1:0,r||1!==a||(r=[],P((function(e,t){r[t]=null!=e?e:""}),i,e)),o=r?r.length:i===A?e.length:e[0]?e[0].length:null;else if(t===b)r||(r=R(e));else if(t===w)r||(r=[],c(e,(function(e,t){r.push(t)})));else if(t===_){var l=s(e[0]);o=h(l)&&l.length||1}return{startIndex:a,dimensionsDefine:O(r),dimensionsDetectCount:o}}function O(e){if(e){var t=l();return u(e,(function(e,i){if(e=v({},f(e)?e:{name:e}),null==e.name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var n=t.get(e.name);return n?e.name+="-"+n.count++:t.set(e.name,{count:1}),e}))}}function P(e,t,i,n){if(null==n&&(n=1/0),t===A)for(var r=0;r<i.length&&r<n;r++)e(i[r]?i[r][0]:null,r);else{var o=i[0]||[];for(r=0;r<o.length&&r<n;r++)e(o[r],r)}}function R(e){var t,i=0;while(i<e.length&&!(t=e[i++]));if(t){var n=[];return c(t,(function(e,t){n.push(t)})),n}}function B(e,t,i){var n={},r=z(t);if(!r||!e)return n;var o,s,a=[],l=[],u=t.ecModel,h=k(u).datasetMap,d=r.uid+"_"+i.seriesLayoutBy;e=e.slice(),c(e,(function(t,i){!f(t)&&(e[i]={name:t}),"ordinal"===t.type&&null==o&&(o=i,s=v(e[i])),n[t.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:s,valueWayDim:0});function g(e,t,i){for(var n=0;n<i;n++)e.push(t+n)}function v(e){var t=e.dimsDef;return t?t.length:1}return c(e,(function(e,t){var i=e.name,r=v(e);if(null==o){var s=p.valueWayDim;g(n[i],s,r),g(l,s,r),p.valueWayDim+=r}else if(o===t)g(n[i],0,r),g(a,0,r);else{s=p.categoryWayDim;g(n[i],s,r),g(l,s,r),p.categoryWayDim+=r}})),a.length&&(n.itemName=a),l.length&&(n.seriesName=l),n}function N(e,t,i){var n={},r=z(e);if(!r)return n;var o,s=t.sourceFormat,a=t.dimensionsDefine;s!==b&&s!==w||c(a,(function(e,t){"name"===(f(e)?e.name:e)&&(o=t)}));var l=function(){for(var e={},n={},r=[],l=0,c=Math.min(5,i);l<c;l++){var u=F(t.data,s,t.seriesLayoutBy,a,t.startIndex,l);r.push(u);var h=u===M.Not;if(h&&null==e.v&&l!==o&&(e.v=l),(null==e.n||e.n===e.v||!h&&r[e.n]===M.Not)&&(e.n=l),d(e)&&r[e.n]!==M.Not)return e;h||(u===M.Might&&null==n.v&&l!==o&&(n.v=l),null!=n.n&&n.n!==n.v||(n.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(n)?n:null}();if(l){n.value=l.v;var u=null!=o?o:l.n;n.itemName=[u],n.seriesName=[u]}return n}function z(e){var t=e.option,i=t.data;if(!i)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function H(e,t){return F(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function F(e,t,i,n,r,o){var a,l,c,u=5;if(p(e))return M.Not;if(n){var g=n[o];f(g)?(l=g.name,c=g.type):d(g)&&(l=g)}if(null!=c)return"ordinal"===c?M.Must:M.Not;if(t===x)if(i===A){for(var v=e[o],m=0;m<(v||[]).length&&m<u;m++)if(null!=(a=k(v[r+m])))return a}else for(m=0;m<e.length&&m<u;m++){var y=e[r+m];if(y&&null!=(a=k(y[o])))return a}else if(t===b){if(!l)return M.Not;for(m=0;m<e.length&&m<u;m++){var S=e[m];if(S&&null!=(a=k(S[l])))return a}}else if(t===w){if(!l)return M.Not;v=e[l];if(!v||p(v))return M.Not;for(m=0;m<v.length&&m<u;m++)if(null!=(a=k(v[m])))return a}else if(t===_)for(m=0;m<e.length&&m<u;m++){S=e[m];var C=s(S);if(!h(C))return M.Not;if(null!=(a=k(C[o])))return a}function k(e){var t=d(e);return null!=e&&isFinite(e)&&""!==e?t?M.Might:M.Not:t&&"-"!==e?M.Must:void 0}return M.Not}t.BE_ORDINAL=M,t.detectSourceFormat=T,t.getSource=I,t.resetSourceDefaulter=L,t.prepareSource=E,t.makeSeriesEncodeForAxisCoordSys=B,t.makeSeriesEncodeForNameBased=N,t.guessOrdinal=H},90642:function(e,t){var i="original",n="arrayRows",r="objectRows",o="keyedColumns",s="unknown",a="typedArray",l="column",c="row";t.SOURCE_FORMAT_ORIGINAL=i,t.SOURCE_FORMAT_ARRAY_ROWS=n,t.SOURCE_FORMAT_OBJECT_ROWS=r,t.SOURCE_FORMAT_KEYED_COLUMNS=o,t.SOURCE_FORMAT_UNKNOWN=s,t.SOURCE_FORMAT_TYPED_ARRAY=a,t.SERIES_LAYOUT_BY_COLUMN=l,t.SERIES_LAYOUT_BY_ROW=c},89231:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(97683)),o=i(95289),s=i(56607),a=i(87190),l=i(33863),c=i(36112),u=i(87380),h=i(69498),d=i(50294),f=i(27711),p=i(5518),g=i(54326),v=i(85532),m=i(33358),y=i(18328),_=i(67955),x=i(76442),b=i(63199),w=i(88336),S=w.throttle,C=i(89414),A=i(40949),M=i(75003),k=i(3379),T=i(27663),I=i(95239);i(613);var L=i(45986),E=o.assert,D=o.each,O=o.isFunction,P=o.isObject,R=v.parseClassType,B="4.9.0",N={zrender:"4.3.2"},z=1,H=1e3,F=800,V=900,j=5e3,$=1e3,W=1100,G=2e3,U=3e3,q=3500,Z=4e3,X=5e3,Y={PROCESSOR:{FILTER:H,SERIES_FILTER:F,STATISTIC:j},VISUAL:{LAYOUT:$,PROGRESSIVE_LAYOUT:W,GLOBAL:G,CHART:U,POST_CHART_LAYOUT:q,COMPONENT:Z,BRUSH:X}},K="__flagInMainProcess",J="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(i,n,r){t||!this._disposed?(i=i&&i.toLowerCase(),c.prototype[e].call(this,i,n,r)):xe(this.id)}}function te(){c.call(this)}function ie(e,t,i){i=i||{},"string"===typeof t&&(t=De[t]),this.id,this.group,this._dom=e;var n="canvas",s=this._zr=r.init(e,{renderer:i.renderer||n,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=S(o.bind(s.flush,s),17);t=o.clone(t);t&&p(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new d;var a=this._api=Ce(this);function u(e,t){return e.__prio-t.__prio}l(Ee,u),l(Te,u),this._scheduler=new k(this,a,Te,Ee),c.call(this,this._ecEventProcessor=new Ae),this._messageCenter=new te,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],s.animation.on("frame",this._onframe,this),de(s,this),o.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),o.mixin(te,c);var ne=ie.prototype;function re(e,t,i){if(this._disposed)xe(this.id);else{var n,r=this._model,o=this._coordSysMgr.getCoordinateSystems();t=b.parseFinder(r,t);for(var s=0;s<o.length;s++){var a=o[s];if(a[e]&&null!=(n=a[e](r,t,i)))return n}}}ne._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[J]){var t=this[J].silent;this[K]=!0,se(this),oe.update.call(this),this[K]=!1,this[J]=!1,ue.call(this,t),he.call(this,t)}else if(e.unfinished){var i=z,n=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(n),e.performDataProcessorTasks(n),le(this,n),e.performVisualTasks(n),me(this,this._model,r,"remain"),i-=+new Date-o}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},ne.getDom=function(){return this._dom},ne.getZr=function(){return this._zr},ne.setOption=function(e,t,i){if(this._disposed)xe(this.id);else{var n;if(P(t)&&(i=t.lazyUpdate,n=t.silent,t=t.notMerge),this[K]=!0,!this._model||t){var r=new f(this._api),o=this._theme,s=this._model=new u;s.scheduler=this._scheduler,s.init(null,null,o,r)}this._model.setOption(e,Ie),i?(this[J]={silent:n},this[K]=!1):(se(this),oe.update.call(this),this._zr.flush(),this[J]=!1,this[K]=!1,ue.call(this,n),he.call(this,n))}},ne.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ne.getModel=function(){return this._model},ne.getOption=function(){return this._model&&this._model.getOption()},ne.getWidth=function(){return this._zr.getWidth()},ne.getHeight=function(){return this._zr.getHeight()},ne.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},ne.getRenderedCanvas=function(e){if(a.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},ne.getSvgDataURL=function(){if(a.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return o.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},ne.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,i=this._model,n=[],r=this;D(t,(function(e){i.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return D(n,(function(e){e.group.ignore=!1})),o}xe(this.id)},ne.getConnectedDataURL=function(e){if(this._disposed)xe(this.id);else if(a.canvasSupported){var t="svg"===e.type,i=this.group,n=Math.min,s=Math.max,l=1/0;if(Re[i]){var c=l,u=l,h=-l,d=-l,f=[],p=e&&e.pixelRatio||1;o.each(Pe,(function(r,a){if(r.group===i){var l=t?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(o.clone(e)),p=r.getDom().getBoundingClientRect();c=n(p.left,c),u=n(p.top,u),h=s(p.right,h),d=s(p.bottom,d),f.push({dom:l,left:p.left,top:p.top})}})),c*=p,u*=p,h*=p,d*=p;var g=h-c,v=d-u,m=o.createCanvas(),y=r.init(m,{renderer:t?"svg":"canvas"});if(y.resize({width:g,height:v}),t){var _="";return D(f,(function(e){var t=e.left-c,i=e.top-u;_+='<g transform="translate('+t+","+i+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new x.Rect({shape:{x:0,y:0,width:g,height:v},style:{fill:e.connectedBackgroundColor}})),D(f,(function(e){var t=new x.Image({style:{x:e.left*p-c,y:e.top*p-u,image:e.dom}});y.add(t)})),y.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},ne.convertToPixel=o.curry(re,"convertToPixel"),ne.convertFromPixel=o.curry(re,"convertFromPixel"),ne.containPixel=function(e,t){if(!this._disposed){var i,n=this._model;return e=b.parseFinder(n,e),o.each(e,(function(e,n){n.indexOf("Models")>=0&&o.each(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)i|=!!r.containPoint(t);else if("seriesModels"===n){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(i|=o.containPoint(t,e))}}),this)}),this),!!i}xe(this.id)},ne.getVisual=function(e,t){var i=this._model;e=b.parseFinder(i,e,{defaultMainType:"series"});var n=e.seriesModel,r=n.getData(),o=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?r.indexOfRawIndex(e.dataIndex):null;return null!=o?r.getItemVisual(o,t):r.getVisual(t)},ne.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},ne.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var oe={prepareAndUpdate:function(e){se(this),oe.update.call(this,e)},update:function(e){var t=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,o=this._scheduler;if(t){o.restoreData(t,e),o.performSeriesTasks(t),r.create(t,i),o.performDataProcessorTasks(t,e),le(this,t),r.update(t,i),pe(t),o.performVisualTasks(t,e),ge(this,t,i,e);var l=t.get("backgroundColor")||"transparent";if(a.canvasSupported)n.setBackgroundColor(l);else{var c=s.parse(l);l=s.stringify(c,"rgb"),0===c[3]&&(l="transparent")}ye(t,i)}},updateTransform:function(e){var t=this._model,i=this,n=this._api;if(t){var r=[];t.eachComponent((function(o,s){var a=i.getViewOfComponentModel(s);if(a&&a.__alive)if(a.updateTransform){var l=a.updateTransform(s,t,n,e);l&&l.update&&r.push(a)}else r.push(a)}));var s=o.createHashMap();t.eachSeries((function(r){var o=i._chartsMap[r.__viewId];if(o.updateTransform){var a=o.updateTransform(r,t,n,e);a&&a.update&&s.set(r.uid,1)}else s.set(r.uid,1)})),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:s}),me(i,t,n,e,s),ye(t,this._api)}},updateView:function(e){var t=this._model;t&&(_.markUpdateMethod(e,"updateView"),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),ge(this,this._model,this._api,e),ye(t,this._api))},updateVisual:function(e){oe.update.call(this,e)},updateLayout:function(e){oe.update.call(this,e)}};function se(e){var t=e._model,i=e._scheduler;i.restorePipelines(t),i.prepareStageTasks(),fe(e,"component",t,i),fe(e,"chart",t,i),i.plan()}function ae(e,t,i,n,r){var s=e._model;if(n){var a={};a[n+"Id"]=i[n+"Id"],a[n+"Index"]=i[n+"Index"],a[n+"Name"]=i[n+"Name"];var l={mainType:n,query:a};r&&(l.subType=r);var c=i.excludeSeriesId;null!=c&&(c=o.createHashMap(b.normalizeToArray(c))),s&&s.eachComponent(l,(function(t){c&&null!=c.get(t.id)||u(e["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else D(e._componentsViews.concat(e._chartsViews),u);function u(n){n&&n.__alive&&n[t]&&n[t](n.__model,s,e._api,i)}}function le(e,t){var i=e._chartsMap,n=e._scheduler;t.eachSeries((function(e){n.updateStreamModes(e,i[e.__viewId])}))}function ce(e,t){var i=e.type,n=e.escapeConnect,r=Me[i],s=r.actionInfo,a=(s.update||"update").split(":"),l=a.pop();a=null!=a[0]&&R(a[0]),this[K]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=o.map(e.batch,(function(t){return t=o.defaults(o.extend({},t),e),t.batch=null,t})));var h,d=[],f="highlight"===i||"downplay"===i;D(c,(function(e){h=r.action(e,this._model,this._api),h=h||o.extend({},e),h.type=s.event||h.type,d.push(h),f?ae(this,l,e,"series"):a&&ae(this,l,e,a.main,a.sub)}),this),"none"===l||f||a||(this[J]?(se(this),oe.update.call(this,e),this[J]=!1):oe[l].call(this,e)),h=u?{type:s.event||i,escapeConnect:n,batch:d}:d[0],this[K]=!1,!t&&this._messageCenter.trigger(h.type,h)}function ue(e){var t=this._pendingActions;while(t.length){var i=t.shift();ce.call(this,i,e)}}function he(e){!e&&this.trigger("updated")}function de(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[J]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function fe(e,t,i,n){for(var r="component"===t,o=r?e._componentsViews:e._chartsViews,s=r?e._componentsMap:e._chartsMap,a=e._zr,l=e._api,c=0;c<o.length;c++)o[c].__alive=!1;function u(e){var t="_ec_"+e.id+"_"+e.type,c=s[t];if(!c){var u=R(e.type),h=r?y.getClass(u.main,u.sub):_.getClass(u.sub);c=new h,c.init(i,l),s[t]=c,o.push(c),a.add(c.group)}e.__viewId=c.__id=t,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!r&&n.prepareView(c,e,i,l)}r?i.eachComponent((function(e,t){"series"!==e&&u(t)})):i.eachSeries(u);for(c=0;c<o.length;){var h=o[c];h.__alive?c++:(!r&&h.renderTask.dispose(),a.remove(h.group),h.dispose(i,l),o.splice(c,1),delete s[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function pe(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function ge(e,t,i,n){ve(e,t,i,n),D(e._chartsViews,(function(e){e.__alive=!1})),me(e,t,i,n),D(e._chartsViews,(function(e){e.__alive||e.remove(t,i)}))}function ve(e,t,i,n,r){D(r||e._componentsViews,(function(e){var r=e.__model;e.render(r,t,i,n),Se(r,e)}))}function me(e,t,i,n,r){var o,s=e._scheduler;t.eachSeries((function(t){var i=e._chartsMap[t.__viewId];i.__alive=!0;var a=i.renderTask;s.updatePayload(a,n),r&&r.get(t.uid)&&a.dirty(),o|=a.perform(s.getPerformArgs(a)),i.group.silent=!!t.get("silent"),Se(t,i),we(t,i)})),s.unfinished|=o,be(e,t),A(e._zr.dom,t)}function ye(e,t){D(Le,(function(i){i(e,t)}))}ne.resize=function(e){if(this._disposed)xe(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var i=t.resetOption("media"),n=e&&e.silent;this[K]=!0,i&&se(this),oe.update.call(this),this[K]=!1,ue.call(this,n),he.call(this,n)}}},ne.showLoading=function(e,t){if(this._disposed)xe(this.id);else if(P(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Oe[e]){var i=Oe[e](this._api,t),n=this._zr;this._loadingFX=i,n.add(i)}},ne.hideLoading=function(){this._disposed?xe(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ne.makeActionFromEvent=function(e){var t=o.extend({},e);return t.type=ke[e.type],t},ne.dispatchAction=function(e,t){this._disposed?xe(this.id):(P(t)||(t={silent:!!t}),Me[e.type]&&this._model&&(this[K]?this._pendingActions.push(e):(ce.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&a.browser.weChat&&this._throttledZrFlush(),ue.call(this,t.silent),he.call(this,t.silent))))},ne.appendData=function(e){if(this._disposed)xe(this.id);else{var t=e.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(t);n.appendData(e),this._scheduler.unfinished=!0}},ne.on=ee("on",!1),ne.off=ee("off",!1),ne.one=ee("one",!1);var _e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xe(e){}function be(e,t){var i=e._zr,n=i.storage,r=0;n.traverse((function(e){r++})),r>t.get("hoverLayerThreshold")&&!a.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var i=e._chartsMap[t.__viewId];i.__alive&&i.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function we(e,t){var i=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==i&&e.setStyle("blend",i),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",i)}))}))}function Se(e,t){var i=e.get("z"),n=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=n&&(e.zlevel=n))}))}function Ce(e){var t=e._coordSysMgr;return o.extend(new h(e),{getCoordinateSystems:o.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var i=t.__ecComponentInfo;if(null!=i)return e._model.getComponent(i.mainType,i.index);t=t.parent}}})}function Ae(){this.eventInfo}ne._initEvents=function(){D(_e,(function(e){var t=function(t){var i,n=this.getModel(),r=t.target,s="globalout"===e;if(s)i={};else if(r&&null!=r.dataIndex){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(i=o.extend({},r.eventData));if(i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&n.getComponent(l,c),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=t,i.type=e,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:i,model:u,view:h},this.trigger(e,i)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),D(ke,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},ne.isDisposed=function(){return this._disposed},ne.clear=function(){this._disposed?xe(this.id):this.setOption({series:[]},!0)},ne.dispose=function(){if(this._disposed)xe(this.id);else{this._disposed=!0,b.setAttribute(this.getDom(),ze,"");var e=this._api,t=this._model;D(this._componentsViews,(function(i){i.dispose(t,e)})),D(this._chartsViews,(function(i){i.dispose(t,e)})),this._zr.dispose(),delete Pe[this.id]}},o.mixin(ie,c),Ae.prototype={constructor:Ae,normalizeQuery:function(e){var t={},i={},n={};if(o.isString(e)){var r=R(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var s=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,r){for(var o=!1,l=0;l<s.length;l++){var c=s[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(t.mainType=h,t[c.toLowerCase()]=e,o=!0)}}a.hasOwnProperty(r)&&(i[r]=e,o=!0),o||(n[r]=e)}))}return{cptQuery:t,dataQuery:i,otherQuery:n}},filter:function(e,t,i){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,s=n.model,a=n.view;if(!s||!a)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,s,"mainType")&&u(l,s,"subType")&&u(l,s,"index","componentIndex")&&u(l,s,"name")&&u(l,s,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,o));function u(e,t,i,n){return null==e[i]||t[n||i]===e[i]}},afterTrigger:function(){this.eventInfo=null}};var Me={},ke={},Te=[],Ie=[],Le=[],Ee=[],De={},Oe={},Pe={},Re={},Be=new Date-0,Ne=new Date-0,ze="_echarts_instance_";function He(e){var t=0,i=1,n=2,r="__connectUpdateStatus";function o(e,t){for(var i=0;i<e.length;i++){var n=e[i];n[r]=t}}D(ke,(function(s,a){e._messageCenter.on(a,(function(s){if(Re[e.group]&&e[r]!==t){if(s&&s.escapeConnect)return;var a=e.makeActionFromEvent(s),l=[];D(Pe,(function(t){t!==e&&t.group===e.group&&l.push(t)})),o(l,t),D(l,(function(e){e[r]!==i&&e.dispatchAction(a)})),o(l,n)}}))}))}function Fe(e,t,i){var n=Ge(e);if(n)return n;var r=new ie(e,t,i);return r.id="ec_"+Be++,Pe[r.id]=r,b.setAttribute(e,ze,r.id),He(r),r}function Ve(e){if(o.isArray(e)){var t=e;e=null,D(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Ne++,D(t,(function(t){t.group=e}))}return Re[e]=!0,e}function je(e){Re[e]=!1}var $e=je;function We(e){"string"===typeof e?e=Pe[e]:e instanceof ie||(e=Ge(e)),e instanceof ie&&!e.isDisposed()&&e.dispose()}function Ge(e){return Pe[b.getAttribute(e,ze)]}function Ue(e){return Pe[e]}function qe(e,t){De[e]=t}function Ze(e){Ie.push(e)}function Xe(e,t){it(Te,e,t,H)}function Ye(e){Le.push(e)}function Ke(e,t,i){"function"===typeof t&&(i=t,t="");var n=P(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,E(Q.test(n)&&Q.test(t)),Me[n]||(Me[n]={action:i,actionInfo:e}),ke[t]=n}function Je(e,t){d.register(e,t)}function Qe(e){var t=d.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function et(e,t){it(Ee,e,t,$,"layout")}function tt(e,t){it(Ee,e,t,U,"visual")}function it(e,t,i,n,r){(O(t)||P(t))&&(i=t,t=n);var o=k.wrapStageHandler(i,r);return o.__prio=t,o.__raw=i,e.push(o),o}function nt(e,t){Oe[e]=t}function rt(e){return v.extend(e)}function ot(e){return y.extend(e)}function st(e){return m.extend(e)}function at(e){return _.extend(e)}function lt(e){o.$override("createCanvas",e)}function ct(e,t,i){L.registerMap(e,t,i)}function ut(e){var t=L.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}tt(G,C),Ze(p),Xe(V,g),nt("default",M),Ke({type:"highlight",event:"highlight",update:"highlight"},o.noop),Ke({type:"downplay",event:"downplay",update:"downplay"},o.noop),qe("light",T),qe("dark",I);var ht={};t.version=B,t.dependencies=N,t.PRIORITY=Y,t.init=Fe,t.connect=Ve,t.disConnect=je,t.disconnect=$e,t.dispose=We,t.getInstanceByDom=Ge,t.getInstanceById=Ue,t.registerTheme=qe,t.registerPreprocessor=Ze,t.registerProcessor=Xe,t.registerPostUpdate=Ye,t.registerAction=Ke,t.registerCoordinateSystem=Je,t.getCoordinateSystemDimensions=Qe,t.registerLayout=et,t.registerVisual=tt,t.registerLoading=nt,t.extendComponentModel=rt,t.extendComponentView=ot,t.extendSeriesModel=st,t.extendChartView=at,t.setCanvasCreator=lt,t.registerMap=ct,t.getMap=ut,t.dataTool=ht;var dt=i(93607);(function(){for(var e in dt)dt.hasOwnProperty(e)&&(t[e]=dt[e])})()},93607:function(e,t,i){var n=i(97683);t.zrender=n;var r=i(13388);t.matrix=r;var o=i(31138);t.vector=o;var s=i(95289),a=i(56607);t.color=a;var l=i(76442),c=i(44261);t.number=c;var u=i(8595);t.format=u;var h=i(88336);h.throttle;t.throttle=h.throttle;var d=i(91897);t.helper=d;var f=i(46135);t.parseGeoJSON=f;var p=i(5628);t.List=p;var g=i(40590);t.Model=g;var v=i(31490);t.Axis=v;var m=i(87190);t.env=m;var y=f,_={};s.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){_[e]=s[e]}));var x={};s.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){x[e]=l[e]})),t.parseGeoJson=y,t.util=_,t.graphic=x},91897:function(e,t,i){var n=i(95289),r=i(19554),o=i(8426),s=i(48267),a=i(40590),l=i(61570);l.getLayoutRect;t.getLayoutRect=l.getLayoutRect;var c=i(74051),u=c.enableDataStack,h=c.isDimensionStacked,d=c.getStackedDimension,f=i(21685);t.completeDimensions=f;var p=i(29966);t.createDimensions=p;var g=i(22864);function v(e){return r(e.getSource(),e)}t.createSymbol=g.createSymbol;var m={isDimensionStacked:h,enableDataStack:u,getStackedDimension:d};function y(e,t){var i=t;a.isInstance(t)||(i=new a(t),n.mixin(i,s));var r=o.createScaleByModel(i);return r.setExtent(e[0],e[1]),o.niceScaleExtent(r,i),r}function _(e){n.mixin(e,s)}t.createList=v,t.dataStack=m,t.createScale=y,t.mixinAxisModelCommonMethods=_},49777:function(e){var t={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:""}}}};e.exports=t},11041:function(e,t,i){var n=i(95289),r=i(44261),o=r.parsePercent,s=i(74051),a=s.isDimensionStacked,l=i(59039),c="__ec_stack_",u=.5,h="undefined"!==typeof Float32Array?Float32Array:Array;function d(e){return e.get("stack")||c+e.seriesIndex}function f(e){return e.dim+e.index}function p(e){var t=[],i=e.axis,r="axis0";if("category"===i.type){for(var o=i.getBandWidth(),s=0;s<e.count;s++)t.push(n.defaults({bandWidth:o,axisKey:r,stackId:c+s},e));var a=y(t),l=[];for(s=0;s<e.count;s++){var u=a[r][c+s];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function g(e,t){var i=[];return t.eachSeriesByType(e,(function(e){w(e)&&!S(e)&&i.push(e)})),i}function v(e){var t={};n.each(e,(function(e){var i=e.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),o=n.dim+"_"+n.index,s=r.mapDimension(n.dim),a=0,l=r.count();a<l;++a){var c=r.get(s,a);t[o]?t[o].push(c):t[o]=[c]}}));var i=[];for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(o){o.sort((function(e,t){return e-t}));for(var s=null,a=1;a<o.length;++a){var l=o[a]-o[a-1];l>0&&(s=null===s?l:Math.min(s,l))}i[r]=s}}return i}function m(e){var t=v(e),i=[];return n.each(e,(function(e){var n,r=e.coordinateSystem,s=r.getBaseAxis(),a=s.getExtent();if("category"===s.type)n=s.getBandWidth();else if("value"===s.type||"time"===s.type){var l=s.dim+"_"+s.index,c=t[l],u=Math.abs(a[1]-a[0]),h=s.scale.getExtent(),p=Math.abs(h[1]-h[0]);n=c?u/p*c:u}else{var g=e.getData();n=Math.abs(a[1]-a[0])/g.count()}var v=o(e.get("barWidth"),n),m=o(e.get("barMaxWidth"),n),y=o(e.get("barMinWidth")||1,n),_=e.get("barGap"),x=e.get("barCategoryGap");i.push({bandWidth:n,barWidth:v,barMaxWidth:m,barMinWidth:y,barGap:_,barCategoryGap:x,axisKey:f(s),stackId:d(e)})})),y(i)}function y(e){var t={};n.each(e,(function(e,i){var n=e.axisKey,r=e.bandWidth,o=t[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},s=o.stacks;t[n]=o;var a=e.stackId;s[a]||o.autoWidthCount++,s[a]=s[a]||{width:0,maxWidth:0};var l=e.barWidth;l&&!s[a].width&&(s[a].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=e.barMaxWidth;c&&(s[a].maxWidth=c);var u=e.barMinWidth;u&&(s[a].minWidth=u);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var i={};return n.each(t,(function(e,t){i[t]={};var r=e.stacks,s=e.bandWidth,a=o(e.categoryGap,s),l=o(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,h=(c-a)/(u+(u-1)*l);h=Math.max(h,0),n.each(r,(function(e){var t=e.maxWidth,i=e.minWidth;if(e.width){n=e.width;t&&(n=Math.min(n,t)),i&&(n=Math.max(n,i)),e.width=n,c-=n+l*n,u--}else{var n=h;t&&t<n&&(n=Math.min(t,c)),i&&i>n&&(n=i),n!==h&&(e.width=n,c-=n+l*n,u--)}})),h=(c-a)/(u+(u-1)*l),h=Math.max(h,0);var d,f=0;n.each(r,(function(e,t){e.width||(e.width=h),d=e,f+=e.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(r,(function(e,n){i[t][n]=i[t][n]||{bandWidth:s,offset:p,width:e.width},p+=e.width*(1+l)}))})),i}function _(e,t,i){if(e&&t){var n=e[f(t)];return null!=n&&null!=i&&(n=n[d(i)]),n}}function x(e,t){var i=g(e,t),r=m(i),o={},s={};n.each(i,(function(e){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),l=d(e),c=r[f(n)][l],u=c.offset,h=c.width,p=i.getOtherAxis(n),g=e.get("barMinHeight")||0;o[l]=o[l]||[],s[l]=s[l]||[],t.setLayout({bandWidth:c.bandWidth,offset:u,size:h});for(var v=t.mapDimension(p.dim),m=t.mapDimension(n.dim),y=a(t,v),_=p.isHorizontal(),x=C(n,p,y),b=0,w=t.count();b<w;b++){var S,A,M,k,T=t.get(v,b),I=t.get(m,b),L=T>=0?"p":"n",E=x;if(y&&(o[l][I]||(o[l][I]={p:x,n:x}),E=o[l][I][L]),_){var D=i.dataToPoint([T,I]);S=E,A=D[1]+u,M=D[0]-x,k=h,Math.abs(M)<g&&(M=(M<0?-1:1)*g),isNaN(M)||y&&(o[l][I][L]+=M)}else{D=i.dataToPoint([I,T]);S=D[0]+u,A=E,M=h,k=D[1]-x,Math.abs(k)<g&&(k=(k<=0?-1:1)*g),isNaN(k)||y&&(o[l][I][L]+=k)}t.setItemLayout(b,{x:S,y:A,width:M,height:k})}}),this)}var b={seriesType:"bar",plan:l(),reset:function(e){if(w(e)&&S(e)){var t=e.getData(),i=e.coordinateSystem,n=i.grid.getRect(),r=i.getBaseAxis(),o=i.getOtherAxis(r),s=t.mapDimension(o.dim),a=t.mapDimension(r.dim),l=o.isHorizontal(),c=l?0:1,d=_(m([e]),r,e).width;return d>u||(d=u),{progress:f}}function f(e,t){var u,f=e.count,p=new h(2*f),g=new h(2*f),v=new h(f),m=[],y=[],_=0,x=0;while(null!=(u=e.next()))y[c]=t.get(s,u),y[1-c]=t.get(a,u),m=i.dataToPoint(y,null,m),g[_]=l?n.x+n.width:m[0],p[_++]=m[0],g[_]=l?m[1]:n.y+n.height,p[_++]=m[1],v[x++]=u;t.setLayout({largePoints:p,largeDataIndices:v,largeBackgroundPoints:g,barWidth:d,valueAxisStart:C(r,o,!1),backgroundStart:l?n.x:n.y,valueAxisHorizontal:l})}}};function w(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function S(e){return e.pipelineContext&&e.pipelineContext.large}function C(e,t,i){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=p,t.prepareLayoutBarSeries=g,t.makeColumnLayout=m,t.retrieveColumnLayout=_,t.layout=x,t.largeLayout=b},80241:function(e,t,i){var n=i(95289),r=i(44261),o=r.parsePercent,s=i(74051),a=s.isDimensionStacked;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function c(e,t){return t.dim+e.model.componentIndex}function u(e,t,i){var r={},o=h(n.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),s=c(i,n),u=l(e),h=o[s][u],d=h.offset,f=h.width,p=i.getOtherAxis(n),g=e.coordinateSystem.cx,v=e.coordinateSystem.cy,m=e.get("barMinHeight")||0,y=e.get("barMinAngle")||0;r[u]=r[u]||[];for(var _=t.mapDimension(p.dim),x=t.mapDimension(n.dim),b=a(t,_),w="radius"!==n.dim||!e.get("roundCap",!0),S="radius"===p.dim?p.dataToRadius(0):p.dataToAngle(0),C=0,A=t.count();C<A;C++){var M,k,T,I,L=t.get(_,C),E=t.get(x,C),D=L>=0?"p":"n",O=S;if(b&&(r[u][E]||(r[u][E]={p:S,n:S}),O=r[u][E][D]),"radius"===p.dim){var P=p.dataToRadius(L)-S,R=n.dataToAngle(E);Math.abs(P)<m&&(P=(P<0?-1:1)*m),M=O,k=O+P,T=R-d,I=T-f,b&&(r[u][E][D]=k)}else{var B=p.dataToAngle(L,w)-S,N=n.dataToRadius(E);Math.abs(B)<y&&(B=(B<0?-1:1)*y),M=N+d,k=M+f,T=O,I=O+B,b&&(r[u][E][D]=I)}t.setItemLayout(C,{cx:g,cy:v,r0:M,r:k,startAngle:-T*Math.PI/180,endAngle:-I*Math.PI/180})}}}),this)}function h(e,t){var i={};n.each(e,(function(e,t){var n=e.getData(),r=e.coordinateSystem,s=r.getBaseAxis(),a=c(r,s),u=s.getExtent(),h="category"===s.type?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),d=i[a]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;i[a]=d;var p=l(e);f[p]||d.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var g=o(e.get("barWidth"),h),v=o(e.get("barMaxWidth"),h),m=e.get("barGap"),y=e.get("barCategoryGap");g&&!f[p].width&&(g=Math.min(d.remainedWidth,g),f[p].width=g,d.remainedWidth-=g),v&&(f[p].maxWidth=v),null!=m&&(d.gap=m),null!=y&&(d.categoryGap=y)}));var r={};return n.each(i,(function(e,t){r[t]={};var i=e.stacks,s=e.bandWidth,a=o(e.categoryGap,s),l=o(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,h=(c-a)/(u+(u-1)*l);h=Math.max(h,0),n.each(i,(function(e,t){var i=e.maxWidth;i&&i<h&&(i=Math.min(i,c),e.width&&(i=Math.min(i,e.width)),c-=i,e.width=i,u--)})),h=(c-a)/(u+(u-1)*l),h=Math.max(h,0);var d,f=0;n.each(i,(function(e,t){e.width||(e.width=h),d=e,f+=e.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(i,(function(e,i){r[t][i]=r[t][i]||{offset:p,width:e.width},p+=e.width*(1+l)}))})),r}var d=u;e.exports=d},32493:function(e,t,i){var n=i(95289),r=n.map,o=i(59039),s=i(74051),a=s.isDimensionStacked;function l(e){return{seriesType:e,plan:o(),reset:function(e){var t=e.getData(),i=e.coordinateSystem,n=e.pipelineContext,o=n.large;if(i){var s=r(i.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),l=s.length,c=t.getCalculationInfo("stackResultDimension");return a(t,s[0])&&(s[0]=c),a(t,s[1])&&(s[1]=c),l&&{progress:u}}function u(e,t){for(var n=e.end-e.start,r=o&&new Float32Array(n*l),a=e.start,c=0,u=[],h=[];a<e.end;a++){var d;if(1===l){var f=t.get(s[0],a);d=!isNaN(f)&&i.dataToPoint(f,null,h)}else{f=u[0]=t.get(s[0],a);var p=u[1]=t.get(s[1],a);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(u,null,h)}o?(r[c++]=d?d[0]:NaN,r[c++]=d?d[1]:NaN):t.setItemLayout(a,d&&d.slice()||[NaN,NaN])}o&&t.setLayout("symbolPoints",r)}}}}e.exports=l},75003:function(e,t,i){var n=i(95289),r=i(76442),o=i(43407),s=Math.PI;function a(e,t){t=t||{},n.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new r.Group,a=new r.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});i.add(a);var l=t.fontSize+" sans-serif",c=new r.Rect({style:{fill:"none",text:t.text,font:l,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(i.add(c),t.showSpinner){var u=new r.Arc({shape:{startAngle:-s/2,endAngle:-s/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});u.animateShape(!0).when(1e3,{endAngle:3*s/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:3*s/2}).delay(300).start("circularInOut"),i.add(u)}return i.resize=function(){var i=o.getWidth(t.text,l),n=t.showSpinner?t.spinnerRadius:0,r=(e.getWidth()-2*n-(t.showSpinner&&i?10:0)-i)/2-(t.showSpinner?0:i/2),s=e.getHeight()/2;t.showSpinner&&u.setShape({cx:r,cy:s}),c.setShape({x:r-n,y:s-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},i.resize(),i}e.exports=a},85532:function(e,t,i){var n=i(95289),r=i(40590),o=i(79865),s=i(11724),a=s.enableClassManagement,l=s.parseClassType,c=i(63199),u=c.makeInner,h=i(61570),d=i(54350),f=u(),p=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,i,n){r.call(this,e,t,i,n),this.uid=o.getUID("ec_cpt_model")},init:function(e,t,i,n){this.mergeDefaultAndTheme(e,i)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,r=i?h.getLayoutParams(e):{},o=t.getTheme();n.merge(e,o.get(this.mainType)),n.merge(e,this.getDefaultOption()),i&&h.mergeLayoutParam(e,r,i)},mergeOption:function(e,t){n.merge(this.option,e,!0);var i=this.layoutMode;i&&h.mergeLayoutParam(this.option,e,i)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=f(this);if(!e.defaultOption){var t=[],i=this.constructor;while(i){var r=i.prototype.defaultOption;r&&t.push(r),i=i.superClass}for(var o={},s=t.length-1;s>=0;s--)o=n.merge(o,t[s],!0);e.defaultOption=o}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function g(e){var t=[];return n.each(p.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=n.map(t,(function(e){return l(e).main})),"dataset"!==e&&n.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}a(p,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(p),o.enableTopologicalTravel(p,g),n.mixin(p,d);var v=p;e.exports=v},87380:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=r.each,s=r.filter,a=r.map,l=r.isArray,c=r.indexOf,u=r.isObject,h=r.isString,d=r.createHashMap,f=r.assert,p=r.clone,g=r.merge,v=r.extend,m=r.mixin,y=i(63199),_=i(40590),x=i(85532),b=i(20183),w=i(18167),S=i(49442),C=S.resetSourceDefaulter,A="\0_ec_inner",M=_.extend({init:function(e,t,i,n){i=i||{},this.option=null,this._theme=new _(i),this._optionManager=n},setOption:function(e,t){f(!(A in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,i=this._optionManager;if(!e||"recreate"===e){var n=i.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(n)):I.call(this,n),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),t=!0)}if(!e||"recreate"===e||"media"===e){var s=i.getMediaOption(this,this._api);s.length&&o(s,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,i=this._componentsMap,n=[];function r(n,r){var s=y.normalizeToArray(e[n]),a=y.mappingToExists(i.get(n),s);y.makeIdAndName(a),o(a,(function(e,t){var i=e.option;u(i)&&(e.keyInfo.mainType=n,e.keyInfo.subType=E(n,i,e.exist))}));var l=L(i,r);t[n]=[],i.set(n,[]),o(a,(function(e,r){var o=e.exist,s=e.option;if(f(u(s)||o,"Empty component definition"),s){var a=x.getClass(n,e.keyInfo.subType,!0);if(o&&o.constructor===a)o.name=e.keyInfo.name,o.mergeOption(s,this),o.optionUpdated(s,!1);else{var c=v({dependentModels:l,componentIndex:r},e.keyInfo);o=new a(s,this,this,c),v(o,c),o.init(s,this,this,c),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);i.get(n)[r]=o,t[n][r]=o.option}),this),"series"===n&&D(this,i.get("series"))}C(this),o(e,(function(e,i){null!=e&&(x.hasClass(i)?i&&n.push(i):t[i]=null==t[i]?p(e):g(t[i],e,!0))})),x.topologicalTravel(n,x.getAllClassMainTypes(),r,this),this._seriesIndicesMap=d(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=p(this.option);return o(e,(function(t,i){if(x.hasClass(i)){t=y.normalizeToArray(t);for(var n=t.length-1;n>=0;n--)y.isIdInner(t[n])&&t.splice(n,1);e[i]=t}})),delete e[A],e},getTheme:function(){return this._theme},getComponent:function(e,t){var i=this._componentsMap.get(e);if(i)return i[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var i,n=e.index,r=e.id,o=e.name,u=this._componentsMap.get(t);if(!u||!u.length)return[];if(null!=n)l(n)||(n=[n]),i=s(a(n,(function(e){return u[e]})),(function(e){return!!e}));else if(null!=r){var h=l(r);i=s(u,(function(e){return h&&c(r,e.id)>=0||!h&&e.id===r}))}else if(null!=o){var d=l(o);i=s(u,(function(e){return d&&c(o,e.name)>=0||!d&&e.name===o}))}else i=u.slice();return O(i,e)},findComponents:function(e){var t=e.query,i=e.mainType,n=o(t),r=n?this.queryComponents(n):this._componentsMap.get(i);return a(O(r,e));function o(e){var t=i+"Index",n=i+"Id",r=i+"Name";return!e||null==e[t]&&null==e[n]&&null==e[r]?null:{mainType:i,index:e[t],id:e[n],name:e[r]}}function a(t){return e.filter?s(t,e.filter):t}},eachComponent:function(e,t,i){var n=this._componentsMap;if("function"===typeof e)i=t,t=e,n.each((function(e,n){o(e,(function(e,r){t.call(i,n,e,r)}))}));else if(h(e))o(n.get(e),t,i);else if(u(e)){var r=this.findComponents(e);o(r,t,i)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return s(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return s(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){P(this),o(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];e.call(t,n,i)}),this)},eachRawSeries:function(e,t){o(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,i){P(this),o(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];r.subType===e&&t.call(i,r,n)}),this)},eachRawSeriesByType:function(e,t,i){return o(this.getSeriesByType(e),t,i)},isSeriesFiltered:function(e){return P(this),null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){P(this);var i=s(this._componentsMap.get("series"),e,t);D(this,i)},restoreData:function(e){var t=this._componentsMap;D(this,t.get("series"));var i=[];t.each((function(e,t){i.push(t)})),x.topologicalTravel(i,x.getAllClassMainTypes(),(function(i,n){o(t.get(i),(function(t){("series"!==i||!k(t,e))&&t.restoreData()}))}))}});function k(e,t){if(t){var i=t.seiresIndex,n=t.seriesId,r=t.seriesName;return null!=i&&e.componentIndex!==i||null!=n&&e.id!==n||null!=r&&e.name!==r}}function T(e,t){var i=e.color&&!e.colorLayer;o(t,(function(t,n){"colorLayer"===n&&i||x.hasClass(n)||("object"===typeof t?e[n]=e[n]?g(e[n],t,!1):p(t):null==e[n]&&(e[n]=t))}))}function I(e){this.option={},this.option[A]=1,this._componentsMap=d({series:[]}),this._seriesIndices,this._seriesIndicesMap,T(e,this._theme.option),g(e,b,!1),this.mergeOption(e)}function L(e,t){l(t)||(t=t?[t]:[]);var i={};return o(t,(function(t){i[t]=(e.get(t)||[]).slice()})),i}function E(e,t,i){var n=t.type?t.type:i?i.subType:x.determineSubType(e,t);return n}function D(e,t){e._seriesIndicesMap=d(e._seriesIndices=a(t,(function(e){return e.componentIndex}))||[])}function O(e,t){return t.hasOwnProperty("subType")?s(e,(function(e){return e.subType===t.subType})):e}function P(e){}m(M,w);var R=M;e.exports=R},40590:function(e,t,i){var n=i(95289),r=i(87190),o=i(63199),s=o.makeInner,a=i(11724),l=a.enableClassExtend,c=a.enableClassCheck,u=i(52342),h=i(27671),d=i(28301),f=i(62429),p=n.mixin,g=s();function v(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}function m(e,t,i){for(var n=0;n<t.length;n++)if(t[n]&&(e=e&&"object"===typeof e?e[t[n]]:null,null==e))break;return null==e&&i&&(e=i.get(t)),e}function y(e,t){var i=g(e).getParent;return i?i.call(e,t):e.parentModel}v.prototype={constructor:v,init:null,mergeOption:function(e){n.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:m(this.option,this.parsePath(e),!t&&y(this,e))},getShallow:function(e,t){var i=this.option,n=null==i?i:i[e],r=!t&&y(this,e);return null==n&&r&&(n=r.getShallow(e)),n},getModel:function(e,t){var i,n=null==e?this.option:m(this.option,e=this.parsePath(e));return t=t||(i=y(this,e))&&i.getModel(e),new v(n,t,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var e=this.constructor;return new e(n.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"===typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){g(this).getParent=e},isAnimationEnabled:function(){if(!r.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},l(v),c(v),p(v,u),p(v,h),p(v,d),p(v,f);var _=v;e.exports=_},27711:function(e,t,i){var n=i(95289),r=i(63199),o=i(85532),s=n.each,a=n.clone,l=n.map,c=n.merge,u=/^(min|max)?(.+)$/;function h(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function d(e,t,i){var r,o,a=[],l=[],c=e.timeline;if(e.baseOption&&(o=e.baseOption),(c||e.options)&&(o=o||{},a=(e.options||[]).slice()),e.media){o=o||{};var u=e.media;s(u,(function(e){e&&e.option&&(e.query?l.push(e):r||(r=e))}))}return o||(o=e),o.timeline||(o.timeline=c),s([o].concat(a).concat(n.map(l,(function(e){return e.option}))),(function(e){s(t,(function(t){t(e,i)}))})),{baseOption:o,timelineOptions:a,mediaDefault:r,mediaList:l}}function f(e,t,i){var r={width:t,height:i,aspectratio:t/i},o=!0;return n.each(e,(function(e,t){var i=t.match(u);if(i&&i[1]&&i[2]){var n=i[1],s=i[2].toLowerCase();p(r[s],e,n)||(o=!1)}})),o}function p(e,t,i){return"min"===i?e>=t:"max"===i?e<=t:e===t}function g(e,t){return e.join(",")===t.join(",")}function v(e,t){t=t||{},s(t,(function(t,i){if(null!=t){var n=e[i];if(o.hasClass(i)){t=r.normalizeToArray(t),n=r.normalizeToArray(n);var s=r.mappingToExists(n,t);e[i]=l(s,(function(e){return e.option&&e.exist?c(e.exist,e.option,!0):e.exist||e.option}))}else e[i]=c(n,t,!0)}}))}h.prototype={constructor:h,setOption:function(e,t){e&&n.each(r.normalizeToArray(e.series),(function(e){e&&e.data&&n.isTypedArray(e.data)&&n.setAsPrimitive(e.data)})),e=a(e);var i=this._optionBackup,o=d.call(this,e,t,!i);this._newBaseOption=o.baseOption,i?(v(i.baseOption,o.baseOption),o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=l(t.timelineOptions,a),this._mediaList=l(t.mediaList,a),this._mediaDefault=a(t.mediaDefault),this._currentMediaIndices=[],a(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=a(i[n.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!n.length&&!r)return s;for(var c=0,u=n.length;c<u;c++)f(n[c].query,t,i)&&o.push(c);return!o.length&&r&&(o=[-1]),o.length&&!g(o,this._currentMediaIndices)&&(s=l(o,(function(e){return a(-1===e?r.option:n[e].option)}))),this._currentMediaIndices=o,s}};var m=h;e.exports=m},33358:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=i(87190),s=i(8595),a=s.formatTime,l=s.encodeHTML,c=s.addCommas,u=s.getTooltipMarker,h=i(63199),d=i(85532),f=i(18167),p=i(38738),g=i(61570),v=g.getLayoutParams,m=g.mergeLayoutParam,y=i(88545),_=y.createTask,x=i(49442),b=x.prepareSource,w=x.getSource,S=i(41834),C=S.retrieveRawValue,A=h.makeInner(),M=d.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=_({count:I,reset:L}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i),b(this);var r=this.getInitialData(e,i);D(r,this),this.dataTask.context.data=r,A(this).dataBeforeProcessed=r,k(this)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,n=i?v(e):{},o=this.subType;d.hasClass(o)&&(o+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),h.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&m(e,n,i)},mergeOption:function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var i=this.layoutMode;i&&m(this.option,e,i),b(this);var n=this.getInitialData(e,t);D(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,A(this).dataBeforeProcessed=n,k(this)},fillDataTextStyle:function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&h.defaultEmphasis(e[i],"label",t)},getInitialData:function(){},appendData:function(e){var t=this.getRawData();t.appendData(e.data)},getData:function(e){var t=P(this);if(t){var i=t.context.data;return null==e?i:i.getLinkedData(e)}return A(this).data},setData:function(e){var t=P(this);if(t){var i=t.context;i.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),i.outputData=e,t!==this.dataTask&&(i.data=e)}A(this).data=e},getSource:function(){return w(this)},getRawData:function(){return A(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,i,n){var o=this;n=n||"html";var s="html"===n?"<br/>":"\n",d="richText"===n,f={},p=0;function g(i){var s=r.reduce(i,(function(e,t,i){var n=m.getDimensionInfo(i);return e|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),h=[];function g(e,i){var r=m.getDimensionInfo(i);if(r&&!1!==r.otherDims.tooltip){var g=r.type,v="sub"+o.seriesIndex+"at"+p,y=u({color:w,type:"subItem",renderMode:n,markerId:v}),_="string"===typeof y?y:y.content,x=(s?_+l(r.displayName||"-")+": ":"")+l("ordinal"===g?e+"":"time"===g?t?"":a("yyyy/MM/dd hh:mm:ss",e):c(e));x&&h.push(x),d&&(f[v]=w,++p)}}y.length?r.each(y,(function(t){g(C(m,e,t),t)})):r.each(i,g);var v=s?d?"\n":"<br/>":"",_=v+h.join(v||", ");return{renderMode:n,content:_,style:f}}function v(e){return{renderMode:n,content:l(c(e)),style:f}}var m=this.getData(),y=m.mapDimension("defaultedTooltip",!0),_=y.length,x=this.getRawValue(e),b=r.isArray(x),w=m.getItemVisual(e,"color");r.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=_>1||b&&!_?g(x):v(_?C(m,e,y[0]):b?x[0]:x),A=S.content,M=o.seriesIndex+"at"+p,k=u({color:w,type:"item",renderMode:n,markerId:M});f[M]=w,++p;var T=m.getName(e),I=this.name;h.isNameSpecified(this)||(I=""),I=I?l(I)+(t?": ":s):"";var L="string"===typeof k?k:k.content,E=t?L+I+A:I+L+(T?l(T)+": "+A:A);return{html:E,markers:f}},isAnimationEnabled:function(){if(o.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,i){var n=this.ecModel,r=f.getColorFromPalette.call(this,e,t,i);return r||(r=n.getColorFromPalette(e,t,i)),r},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function k(e){var t=e.name;h.isNameSpecified(e)||(e.name=T(e)||t)}function T(e){var t=e.getRawData(),i=t.mapDimension("seriesName",!0),n=[];return r.each(i,(function(e){var i=t.getDimensionInfo(e);i.displayName&&n.push(i.displayName)})),n.join(" ")}function I(e){return e.model.getRawData().count()}function L(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),E}function E(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function D(e,t){r.each(e.CHANGABLE_METHODS,(function(i){e.wrapMethod(i,r.curry(O,t))}))}function O(e){var t=P(e);t&&t.setOutputEnd(this.count())}function P(e){var t=(e.ecModel||{}).scheduler,i=t&&t.getPipeline(e.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(e.uid))}return n}}r.mixin(M,p),r.mixin(M,f);var R=M;e.exports=R},20183:function(e){var t="";"undefined"!==typeof navigator&&(t=navigator.platform||"");var i={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=i},27671:function(e,t,i){var n=i(81935),r=n([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o={getAreaStyle:function(e,t){return r(this,e,t)}};e.exports=o},54350:function(e){var t={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};e.exports=t},18167:function(e,t,i){var n=i(63199),r=n.makeInner,o=n.normalizeToArray,s=r();function a(e,t){for(var i=e.length,n=0;n<i;n++)if(e[n].length>t)return e[n];return e[i-1]}var l={clearColorPalette:function(){s(this).colorIdx=0,s(this).colorNameMap={}},getColorFromPalette:function(e,t,i){t=t||this;var n=s(t),r=n.colorIdx||0,l=n.colorNameMap=n.colorNameMap||{};if(l.hasOwnProperty(e))return l[e];var c=o(this.get("color",!0)),u=this.get("colorLayer",!0),h=null!=i&&u?a(u,i):c;if(h=h||c,h&&h.length){var d=h[r];return e&&(l[e]=d),n.colorIdx=(r+1)%h.length,d}}};e.exports=l},38738:function(e,t,i){var n=i(41834),r=n.retrieveRawValue,o=i(8595),s=o.getTooltipMarker,a=o.formatTpl,l=i(63199),c=l.getTooltipRenderMode,u=/\{@(.+?)\}/g,h={getDataParams:function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),r=i.getRawIndex(e),o=i.getName(e),a=i.getRawDataItem(e),l=i.getItemVisual(e,"color"),u=i.getItemVisual(e,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),f=c(d),p=this.mainType,g="series"===p,v=i.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:n,color:l,borderColor:u,dimensionNames:v?v.dimensionNames:null,encode:v?v.encode:null,marker:s({color:l,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,i,n,o){t=t||"normal";var s=this.getData(i),l=s.getItemModel(e),c=this.getDataParams(e,i);null!=n&&c.value instanceof Array&&(c.value=c.value[n]);var h=l.get("normal"===t?[o||"label","formatter"]:[t,o||"label","formatter"]);if("function"===typeof h)return c.status=t,c.dimensionIndex=n,h(c);if("string"===typeof h){var d=a(h,c);return d.replace(u,(function(t,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),r(s,e,i)}))}},getRawValue:function(e,t){return r(this.getData(t),e)},formatTooltip:function(){}};e.exports=h},62429:function(e,t,i){var n=i(81935),r=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),o={getItemStyle:function(e,t){var i=r(this,e,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=o},52342:function(e,t,i){var n=i(81935),r=n([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getLineStyle:function(e){var t=r(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),i=Math.max(e,2),n=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[n,n]:[i,i])}};e.exports=o},81935:function(e,t,i){var n=i(95289);function r(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,i,r){for(var o={},s=0;s<e.length;s++){var a=e[s][1];if(!(i&&n.indexOf(i,a)>=0||r&&n.indexOf(r,a)<0)){var l=t.getShallow(a);null!=l&&(o[e[s][0]]=l)}}return o}}e.exports=r},28301:function(e,t,i){var n=i(43407),r=i(76442),o=["textStyle","color"],s={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(o):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return n.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};e.exports=s},87749:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=r.createHashMap,s=(r.retrieve,r.each);function a(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=o(),this.categoryAxisMap=o(),this.firstCategoryDimIndex=null}function l(e){var t=e.get("coordinateSystem"),i=new a(t),n=c[t];if(n)return n(e,i,i.axisMap,i.categoryAxisMap),i}var c={cartesian2d:function(e,t,i,n){var r=e.getReferringComponents("xAxis")[0],o=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),u(r)&&(n.set("x",r),t.firstCategoryDimIndex=0),u(o)&&(n.set("y",o),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,i,n){var r=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],i.set("single",r),u(r)&&(n.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,i,n){var r=e.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),s=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",s),u(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),u(s)&&(n.set("angle",s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,i,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,i,n){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();s(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];i.set(l,s),u(s)&&null==t.firstCategoryDimIndex&&(n.set(l,s),t.firstCategoryDimIndex=o)}))}};function u(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=l},5518:function(e,t,i){var n=i(95289),r=n.each,o=n.isArray,s=n.isObject,a=i(22341),l=i(63199),c=l.normalizeToArray;function u(e,t){t=t.split(",");for(var i=e,n=0;n<t.length;n++)if(i=i&&i[t[n]],null==i)break;return i}function h(e,t,i,n){t=t.split(",");for(var r,o=e,s=0;s<t.length-1;s++)r=t[s],null==o[r]&&(o[r]={}),o=o[r];(n||null==o[t[s]])&&(o[t[s]]=i)}function d(e){r(f,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function g(e,t){a(e,t),e.series=c(e.series),r(e.series,(function(e){if(s(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t)null!=e.clockWise&&(e.clockwise=e.clockWise);else if("gauge"===t){var i=u(e,"pointer.color");null!=i&&h(e,"itemStyle.color",i)}d(e)}})),e.dataRange&&(e.visualMap=e.dataRange),r(p,(function(t){var i=e[t];i&&(o(i)||(i=[i]),r(i,(function(e){d(e)})))}))}e.exports=g},22341:function(e,t,i){var n=i(95289),r=i(63199),o=n.each,s=n.isObject,a=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var i=0,r=a.length;i<r;i++){var o=a[i],s=t.normal,l=t.emphasis;s&&s[o]&&(e[o]=e[o]||{},e[o].normal?n.merge(e[o].normal,s[o]):e[o].normal=s[o],s[o]=null),l&&l[o]&&(e[o]=e[o]||{},e[o].emphasis?n.merge(e[o].emphasis,l[o]):e[o].emphasis=l[o],l[o]=null)}}function c(e,t,i){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,o=e[t].emphasis;r&&(i?(e[t].normal=e[t].emphasis=null,n.defaults(e[t],r)):e[t]=r),o&&(e.emphasis=e.emphasis||{},e.emphasis[t]=o)}}function u(e){c(e,"itemStyle"),c(e,"lineStyle"),c(e,"areaStyle"),c(e,"label"),c(e,"labelLine"),c(e,"upperLabel"),c(e,"edgeLabel")}function h(e,t){var i=s(e)&&e[t],n=s(i)&&i.textStyle;if(n)for(var o=0,a=r.TEXT_STYLE_OPTIONS.length;o<a;o++){t=r.TEXT_STYLE_OPTIONS[o];n.hasOwnProperty(t)&&(i[t]=n[t])}}function d(e){e&&(u(e),h(e,"label"),e.emphasis&&h(e.emphasis,"label"))}function f(e){if(s(e)){l(e),u(e),h(e,"label"),h(e,"upperLabel"),h(e,"edgeLabel"),e.emphasis&&(h(e.emphasis,"label"),h(e.emphasis,"upperLabel"),h(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(l(t),d(t));var i=e.markLine;i&&(l(i),d(i));var r=e.markArea;r&&d(r);var o=e.data;if("graph"===e.type){o=o||e.nodes;var a=e.links||e.edges;if(a&&!n.isTypedArray(a))for(var f=0;f<a.length;f++)d(a[f]);n.each(e.categories,(function(e){u(e)}))}if(o&&!n.isTypedArray(o))for(f=0;f<o.length;f++)d(o[f]);t=e.markPoint;if(t&&t.data){var p=t.data;for(f=0;f<p.length;f++)d(p[f])}i=e.markLine;if(i&&i.data){var g=i.data;for(f=0;f<g.length;f++)n.isArray(g[f])?(d(g[f][0]),d(g[f][1])):d(g[f])}"gauge"===e.type?(h(e,"axisLabel"),h(e,"title"),h(e,"detail")):"treemap"===e.type?(c(e.breadcrumb,"itemStyle"),n.each(e.levels,(function(e){u(e)}))):"tree"===e.type&&u(e.leaves)}}function p(e){return n.isArray(e)?e:e?[e]:[]}function g(e){return(n.isArray(e)?e[0]:e)||{}}function v(e,t){o(p(e.series),(function(e){s(e)&&f(e)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),o(i,(function(t){o(p(e[t]),(function(e){e&&(h(e,"axisLabel"),h(e.axisPointer,"label"))}))})),o(p(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;h(t,"axisLabel"),h(t&&t.axisPointer,"label")})),o(p(e.calendar),(function(e){c(e,"itemStyle"),h(e,"dayLabel"),h(e,"monthLabel"),h(e,"yearLabel")})),o(p(e.radar),(function(e){h(e,"name")})),o(p(e.geo),(function(e){s(e)&&(d(e),o(p(e.regions),(function(e){d(e)})))})),o(p(e.timeline),(function(e){d(e),c(e,"label"),c(e,"itemStyle"),c(e,"controlStyle",!0);var t=e.data;n.isArray(t)&&n.each(t,(function(e){n.isObject(e)&&(c(e,"label"),c(e,"itemStyle"))}))})),o(p(e.toolbox),(function(e){c(e,"iconStyle"),o(e.feature,(function(e){c(e,"iconStyle")}))})),h(g(e.axisPointer),"label"),h(g(e.tooltip).axisPointer,"label")}e.exports=v},18014:function(e){function t(e){return{seriesType:e,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(i&&i.length){var n=e.getData();n.filterSelf((function(e){for(var t=n.getName(e),r=0;r<i.length;r++)if(!i[r].isSelected(t))return!1;return!0}))}}}}e.exports=t},99610:function(e){var t={average:function(e){for(var t=0,i=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],i++);return 0===i?NaN:t/i},sum:function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i]||0;return t},max:function(e){for(var t=-1/0,i=0;i<e.length;i++)e[i]>t&&(t=e[i]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,i=0;i<e.length;i++)e[i]<t&&(t=e[i]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},i=function(e,t){return Math.round(e.length/2)};function n(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,n,r){var o=e.getData(),s=e.get("sampling"),a=e.coordinateSystem;if("cartesian2d"===a.type&&s){var l,c=a.getBaseAxis(),u=a.getOtherAxis(c),h=c.getExtent(),d=Math.abs(h[1]-h[0]),f=Math.round(o.count()/d);if(f>1)"string"===typeof s?l=t[s]:"function"===typeof s&&(l=s),l&&e.setData(o.downSample(o.mapDimension(u.dim),1/f,l,i))}}}}e.exports=n},54326:function(e,t,i){var n=i(95289),r=n.createHashMap,o=n.each;function s(e){var t=r();e.eachSeries((function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),r=e.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:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}})),t.each(a)}function a(e){o(e,(function(t,i){var n=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],s=t.data,a=t.isStackedByIndex,l=s.map(o,(function(o,l,c){var u,h,d=s.get(t.stackedDimension,c);if(isNaN(d))return r;a?h=s.getRawIndex(c):u=s.get(t.stackedByDimension,c);for(var f=NaN,p=i-1;p>=0;p--){var g=e[p];if(a||(h=g.data.rawIndexOf(g.stackedByDimension,u)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&v>0||d<=0&&v<0){d+=v,f=v;break}}}return n[0]=d,n[1]=f,n}));s.hostModel.setData(l),t.data=l}))}e.exports=s},21607:function(e,t,i){var n=i(44261),r=i(8595),o=i(96506),s=i(23534),a=n.round,l=o.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(t)||(i[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var s=1e4;i[0]<n[0]&&(e?o.push(a(n[0]-t,r)):o.push(i[0]));var l=n[0];while(l<=n[1]){if(o.push(l),l=a(l+t,r),l===o[o.length-1])break;if(o.length>s)return[]}var c=o.length?o[o.length-1]:n[1];return i[1]>c&&(e?o.push(a(c+t,r)):o.push(i[1])),o},getMinorTicks:function(e){for(var t=this.getTicks(!0),i=[],r=this.getExtent(),o=1;o<t.length;o++){var s=t[o],a=t[o-1],l=0,c=[],u=s-a,h=u/e;while(l<e-1){var d=n.round(a+(l+1)*h);d>r[0]&&d<r[1]&&c.push(d),l++}i.push(c)}return i},getLabel:function(e,t){if(null==e)return"";var i=t&&t.precision;return null==i?i=n.getPrecisionSafe(e)||0:"auto"===i&&(i=this._intervalPrecision),e=a(e,i,!0),r.addCommas(e)},niceTicks:function(e,t,i){e=e||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){r<0&&(r=-r,n.reverse());var o=s.intervalScaleNiceTicks(n,e,t,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var i=t[0];e.fixMax||(t[1]+=i/2),t[0]-=i/2}else t[1]=1;var n=t[1]-t[0];isFinite(n)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=a(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=a(Math.ceil(t[1]/r)*r))}});l.create=function(){return new l};var c=l;e.exports=c},94034:function(e,t,i){var n=i(95289),r=i(96506),o=i(44261),s=i(21607),a=r.prototype,l=s.prototype,c=o.getPrecisionSafe,u=o.round,h=Math.floor,d=Math.ceil,f=Math.pow,p=Math.log,g=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new s},getTicks:function(e){var t=this._originalScale,i=this._extent,r=t.getExtent();return n.map(l.getTicks.call(this,e),(function(e){var n=o.round(f(this.base,e));return n=e===i[0]&&t.__fixMin?v(n,r[0]):n,n=e===i[1]&&t.__fixMax?v(n,r[1]):n,n}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(e){return e=a.scale.call(this,e),f(this.base,e)},setExtent:function(e,t){var i=this.base;e=p(e)/p(i),t=p(t)/p(i),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=a.getExtent.call(this);t[0]=f(e,t[0]),t[1]=f(e,t[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(t[0]=v(t[0],n[0])),i.__fixMax&&(t[1]=v(t[1],n[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=p(e[0])/p(t),e[1]=p(e[1])/p(t),a.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,i=t[1]-t[0];if(!(i===1/0||i<=0)){var n=o.quantity(i),r=e/i*n;r<=.5&&(n*=10);while(!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0)n*=10;var s=[o.round(d(t[0]/n)*n),o.round(h(t[1]/n)*n)];this._interval=n,this._niceExtent=s}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function v(e,t){return u(e,c(t))}n.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return t=p(t)/p(this.base),a[e].call(this,t)}})),g.create=function(){return new g};var m=g;e.exports=m},37221:function(e,t,i){var n=i(95289),r=i(96506),o=i(54874),s=r.prototype,a=r.extend({type:"ordinal",init:function(e,t){e&&!n.isArray(e)||(e=new o({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),s.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return s.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(s.scale.call(this,e))},getTicks:function(){var e=[],t=this._extent,i=t[0];while(i<=t[1])e.push(i),i++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});a.create=function(){return new a};var l=a;e.exports=l},96506:function(e,t,i){var n=i(11724);function r(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(e){return e},r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},r.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},r.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r.prototype.getLabel=null,n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0});var o=r;e.exports=o},12683:function(e,t,i){var n=i(95289),r=i(44261),o=i(8595),s=i(23534),a=i(21607),l=a.prototype,c=Math.ceil,u=Math.floor,h=1e3,d=60*h,f=60*d,p=24*f,g=function(e,t,i,n){while(i<n){var r=i+n>>>1;e[r][1]<t?i=r+1:n=r}return i},v=a.extend({type:"time",getLabel:function(e){var t=this._stepLvl,i=new Date(e);return o.formatTime(t[0],i,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=p,t[1]+=p),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-p}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var n=this._interval;e.fixMin||(t[0]=r.round(u(t[0]/n)*n)),e.fixMax||(t[1]=r.round(c(t[1]/n)*n))},niceTicks:function(e,t,i){e=e||10;var n=this._extent,o=n[1]-n[0],a=o/e;null!=t&&a<t&&(a=t),null!=i&&a>i&&(a=i);var l=m.length,h=g(m,a,0,l),d=m[Math.min(h,l-1)],f=d[1];if("year"===d[0]){var p=o/f,v=r.nice(p/e,!0);f*=v}var y=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,_=[Math.round(c((n[0]-y)/f)*f+y),Math.round(u((n[1]-y)/f)*f+y)];s.fixExtent(_,n),this._stepLvl=d,this._interval=f,this._niceExtent=_},parse:function(e){return+r.parseDate(e)}});n.each(["contain","normalize"],(function(e){v.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var m=[["hh:mm:ss",h],["hh:mm:ss",5*h],["hh:mm:ss",10*h],["hh:mm:ss",15*h],["hh:mm:ss",30*h],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];v.create=function(e){return new v({useUTC:e.ecModel.get("useUTC")})};var y=v;e.exports=y},23534:function(e,t,i){var n=i(44261),r=n.round;function o(e,t,i,o){var a={},c=e[1]-e[0],u=a.interval=n.nice(c/t,!0);null!=i&&u<i&&(u=a.interval=i),null!=o&&u>o&&(u=a.interval=o);var h=a.intervalPrecision=s(u),d=a.niceTickExtent=[r(Math.ceil(e[0]/u)*u,h),r(Math.floor(e[1]/u)*u,h)];return l(d,e),a}function s(e){return n.getPrecisionSafe(e)+2}function a(e,t,i){e[t]=Math.max(Math.min(e[t],i[1]),i[0])}function l(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),a(e,0,t),a(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=o,t.getIntervalPrecision=s,t.fixExtent=l},3379:function(e,t,i){var n=i(95289),r=n.each,o=n.map,s=n.isFunction,a=n.createHashMap,l=n.noop,c=i(88545),u=c.createTask,h=i(79865),d=h.getUID,f=i(87380),p=i(69498),g=i(63199),v=g.normalizeToArray;function m(e,t,i,n){this.ecInstance=e,this.api=t,this.unfinished;i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=a()}var y=m.prototype;function _(e,t,i,n,o){var s;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}o=o||{},r(t,(function(t,r){if(!o.visualType||o.visualType===t.visualType){var l=e._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(e){a(o,e)&&(e.dirty(),h=!0)})),h&&u.dirty(),x(u,n);var f=e.getPerformArgs(u,o.block);d.each((function(e){e.perform(f)})),s|=u.perform(f)}else c&&c.each((function(r,l){a(o,r)&&r.dirty();var c=e.getPerformArgs(r,o.block);c.skip=!t.performRawSeries&&i.isSeriesFiltered(r.context.model),x(r,n),s|=r.perform(c)}))}})),e.unfinished|=s}y.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},y.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,r=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=r?i.step:null,s=n&&n.modDataCount,a=null!=s?Math.ceil(s/o):null;return{step:o,modBy:a,modDataCount:s}}},y.getPipeline=function(e){return this._pipelineMap.get(e)},y.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.getData(),r=n.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&r>=i.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:a,large:s}},y.restorePipelines=function(e){var t=this,i=t._pipelineMap=a();e.eachSeries((function(e){var n=e.getProgressive(),r=e.uid;i.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:n&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),D(t,e,e.dataTask)}))},y.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),i=this.api;r(this._allHandlers,(function(n){var r=e.get(n.uid)||e.set(n.uid,[]);n.reset&&b(this,n,r,t,i),n.overallReset&&w(this,n,r,t,i)}),this)},y.prepareView=function(e,t,i,n){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=i,o.api=n,r.__block=!e.incrementalPrepareRender,D(this,t,r)},y.performDataProcessorTasks=function(e,t){_(this,this._dataProcessorHandlers,e,t,{block:!0})},y.performVisualTasks=function(e,t,i){_(this,this._visualHandlers,e,t,i)},y.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},y.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var x=y.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function b(e,t,i,n,r){var o=i.seriesTaskMap||(i.seriesTaskMap=a()),s=t.seriesType,l=t.getTargetSeries;function c(i){var s=i.uid,a=o.get(s)||o.set(s,u({plan:k,reset:T,count:E}));a.context={model:i,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},D(e,i,a)}t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,r).each(c);var h=e._pipelineMap;o.each((function(e,t){h.get(t)||(e.dispose(),o.removeKey(t))}))}function w(e,t,i,n,o){var s=i.overallTask=i.overallTask||u({reset:S});s.context={ecModel:n,api:o,overallReset:t.overallReset,scheduler:e};var l=s.agentStubMap=s.agentStubMap||a(),c=t.seriesType,h=t.getTargetSeries,d=!0,f=t.modifyOutputEnd;function p(t){var i=t.uid,n=l.get(i);n||(n=l.set(i,u({reset:C,onDirty:M})),s.dirty()),n.context={model:t,overallProgress:d,modifyOutputEnd:f},n.agent=s,n.__block=d,D(e,t,n)}c?n.eachRawSeriesByType(c,p):h?h(n,o).each(p):(d=!1,r(n.getSeries(),p));var g=e._pipelineMap;l.each((function(e,t){g.get(t)||(e.dispose(),s.dirty(),l.removeKey(t))}))}function S(e){e.overallReset(e.ecModel,e.api,e.payload)}function C(e,t){return e.overallProgress&&A}function A(){this.agent.dirty(),this.getDownstream().dirty()}function M(){this.agent&&this.agent.dirty()}function k(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function T(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=v(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?o(t,(function(e,t){return L(t)})):I}var I=L(0);function L(e){return function(t,i){var n=i.data,r=i.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(t,n)}}function E(e){return e.data.count()}function D(e,t,i){var n=t.uid,r=e._pipelineMap.get(n);!r.head&&(r.head=i),r.tail&&r.tail.pipe(i),r.tail=i,i.__idxInPipeline=r.count++,i.__pipeline=r}function O(e){P=null;try{e(R,B)}catch(t){}return P}m.wrapStageHandler=function(e,t){return s(e)&&(e={overallReset:e,seriesType:O(e)}),e.uid=d("stageHandler"),t&&(e.visualType=t),e};var P,R={},B={};function N(e,t){for(var i in t.prototype)e[i]=l}N(R,f),N(B,p),R.eachSeriesByType=R.eachRawSeriesByType=function(e){P=e},R.eachComponent=function(e){"series"===e.mainType&&e.subType&&(P=e.subType)};var z=m;e.exports=z},88545:function(e,t,i){var n=i(95289),r=(n.assert,n.isArray),o=i(65523);o.__DEV__;function s(e){return new a(e)}function a(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}var l=a.prototype;l.perform=function(e){var t,i=this._upstream,n=e&&e.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(t=this._plan(this.context));var s,a=f(this._modBy),l=this._modDataCount||0,c=f(e&&e.modBy),d=e&&e.modDataCount||0;function f(e){return!(e>=1)&&(e=1),e}a===c&&l===d||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,s=h(this,n)),this._modBy=c,this._modDataCount=d;var p=e&&e.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,v=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(s||g<v)){var m=this._progress;if(r(m))for(var y=0;y<m.length;y++)u(this,m[y],g,v,c,d);else u(this,m,g,v,c,d)}this._dueIndex=v;var _=null!=this._settedOutputEnd?this._settedOutputEnd:v;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var c=function(){var e,t,i,n,r,o={reset:function(l,c,u,h){t=l,e=c,i=u,n=h,r=Math.ceil(n/i),o.next=i>1&&n>0?a:s}};return o;function s(){return t<e?t++:null}function a(){var o=t%r*i+Math.ceil(t/r),s=t>=e?null:o<n?o:t;return t++,s}}();function u(e,t,i,n,r,o){c.reset(i,n,r,o),e._callingProgress=t,e._callingProgress({start:i,end:n,count:n-i,next:c.next},e.context)}function h(e,t){var i,n;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&(i=e._reset(e.context),i&&i.progress&&(n=i.forceFirstProgress,i=i.progress),r(i)&&!i.length&&(i=null)),e._progress=i,e._modBy=e._modDataCount=null;var o=e._downstream;return o&&o.dirty(),n}l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},l.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},l.getUpstream=function(){return this._upstream},l.getDownstream=function(){return this._downstream},l.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=s},95239:function(e){var t="#eee",i=function(){return{axisLine:{lineStyle:{color:t}},axisTick:{lineStyle:{color:t}},axisLabel:{textStyle:{color:t}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:t}}}},n=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:n,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:t},crossStyle:{color:t},label:{color:"#000"}}},legend:{textStyle:{color:t}},textStyle:{color:t},title:{textStyle:{color:t}},toolbox:{iconStyle:{normal:{borderColor:t}}},dataZoom:{textStyle:{color:t}},visualMap:{textStyle:{color:t}},timeline:{lineStyle:{color:t},itemStyle:{normal:{color:n[1]}},label:{normal:{textStyle:{color:t}}},controlStyle:{normal:{color:t,borderColor:t}}},timeAxis:i(),logAxis:i(),valueAxis:i(),categoryAxis:i(),line:{symbol:"circle"},graph:{color:n},gauge:{title:{textStyle:{color:t}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var o=r;e.exports=o},27663:function(e){var t=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],i={color:t,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],t]};e.exports=i},3568:function(e,t,i){var n=i(95289);function r(){var e,t=[],i={};return{add:function(e,r,o,s,a){return n.isString(s)&&(a=s,s=0),!i[e.id]&&(i[e.id]=1,t.push({el:e,target:r,time:o,delay:s,easing:a}),!0)},done:function(t){return e=t,this},start:function(){for(var n=t.length,r=0,o=t.length;r<o;r++){var s=t[r];s.el.animateTo(s.target,s.time,s.delay,s.easing,a)}return this;function a(){n--,n||(t.length=0,i={},e&&e())}}}}t.createWrap=r},11724:function(e,t,i){var n=i(65523),r=(n.__DEV__,i(95289)),o=".",s="___EC__COMPONENT__CONTAINER___";function a(e){var t={main:"",sub:""};return e&&(e=e.split(o),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,t){e.$constructor=e,e.extend=function(e){var t=this,i=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return r.extend(i.prototype,e),i.extend=this.extend,i.superCall=d,i.superApply=f,r.inherits(i,this),i.superClass=t,i}}var u=0;function h(e){var t=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function d(e,t){var i=r.slice(arguments,2);return this.superClass.prototype[t].apply(e,i)}function f(e,t,i){return this.superClass.prototype[t].apply(e,i)}function p(e,t){t=t||{};var i={};function n(e){var t=i[e.main];return t&&t[s]||(t=i[e.main]={},t[s]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=a(t),t.sub){if(t.sub!==s){var r=n(t);r[t.sub]=e}}else i[t.main]=e;return e},e.getClass=function(e,t,n){var r=i[e];if(r&&r[s]&&(r=t?r[t]:null),n&&!r)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){e=a(e);var t=[],n=i[e.main];return n&&n[s]?r.each(n,(function(e,i){i!==s&&t.push(e)})):t.push(n),t},e.hasClass=function(e){return e=a(e),!!i[e.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(i,(function(t,i){e.push(i)})),e},e.hasSubTypes=function(e){e=a(e);var t=i[e.main];return t&&t[s]},e.parseClassType=a,t.registerWhenExtend){var o=e.extend;o&&(e.extend=function(t){var i=o.call(this,t);return e.registerClass(i,t.type)})}return e}function g(e,t){}t.parseClassType=a,t.enableClassExtend=c,t.enableClassCheck=h,t.enableClassManagement=p,t.setReadOnly=g},79865:function(e,t,i){var n=i(95289),r=i(11724),o=r.parseClassType,s=0;function a(e){return[e||"",s++,Math.random().toFixed(5)].join("_")}function l(e){var t={};return e.registerSubTypeDefaulter=function(e,i){e=o(e),t[e.main]=i},e.determineSubType=function(i,n){var r=n.type;if(!r){var s=o(i).main;e.hasSubTypes(i)&&t[s]&&(r=t[s](n))}return r},e}function c(e,t){function i(e){var i={},s=[];return n.each(e,(function(a){var l=r(i,a),c=l.originalDeps=t(a),u=o(c,e);l.entryCount=u.length,0===l.entryCount&&s.push(a),n.each(u,(function(e){n.indexOf(l.predecessor,e)<0&&l.predecessor.push(e);var t=r(i,e);n.indexOf(t.successor,e)<0&&t.successor.push(a)}))})),{graph:i,noEntryList:s}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function o(e,t){var i=[];return n.each(e,(function(e){n.indexOf(t,e)>=0&&i.push(e)})),i}e.topologicalTravel=function(e,t,r,o){if(e.length){var s=i(t),a=s.graph,l=s.noEntryList,c={};n.each(e,(function(e){c[e]=!0}));while(l.length){var u=l.pop(),h=a[u],d=!!c[u];d&&(r.call(o,u,h.originalDeps.slice()),delete c[u]),n.each(h.successor,d?p:f)}n.each(c,(function(){throw new Error("Circle dependency may exists")}))}function f(e){a[e].entryCount--,0===a[e].entryCount&&l.push(e)}function p(e){c[e]=!0,f(e)}}}t.getUID=a,t.enableSubTypeDefaulter=l,t.enableTopologicalTravel=c},8595:function(e,t,i){var n=i(95289),r=i(43407),o=i(44261);function s(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function a(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var l=n.normalizeCssArray,c=/([&<>"'])/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(e){return null==e?"":(e+"").replace(c,(function(e,t){return u[t]}))}var d=["a","b","c","d","e","f","g"],f=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t,i){n.isArray(t)||(t=[t]);var r=t.length;if(!r)return"";for(var o=t[0].$vars||[],s=0;s<o.length;s++){var a=d[s];e=e.replace(f(a),f(a,0))}for(var l=0;l<r;l++)for(var c=0;c<o.length;c++){var u=t[l][o[c]];e=e.replace(f(d[c],l),i?h(u):u)}return e}function g(e,t,i){return n.each(t,(function(t,n){e=e.replace("{"+n+"}",i?h(t):t)})),e}function v(e,t){e=n.isString(e)?{color:e,extraCssText:t}:e||{};var i=e.color,r=e.type,o=(t=e.extraCssText,e.renderMode||"html"),s=e.markerId||"X";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(i)+";"+(t||"")+'"></span>':{renderMode:o,content:"{marker"+s+"|} ",style:{color:i}}:""}function m(e,t){return e+="","0000".substr(0,t-e.length)+e}function y(e,t,i){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var n=o.parseDate(t),r=i?"UTC":"",s=n["get"+r+"FullYear"](),a=n["get"+r+"Month"]()+1,l=n["get"+r+"Date"](),c=n["get"+r+"Hours"](),u=n["get"+r+"Minutes"](),h=n["get"+r+"Seconds"](),d=n["get"+r+"Milliseconds"]();return e=e.replace("MM",m(a,2)).replace("M",a).replace("yyyy",s).replace("yy",s%100).replace("dd",m(l,2)).replace("d",l).replace("hh",m(c,2)).replace("h",c).replace("mm",m(u,2)).replace("m",u).replace("ss",m(h,2)).replace("s",h).replace("SSS",m(d,3)),e}function _(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}var x=r.truncateText;function b(e){return r.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function w(e,t,i,n,o,s,a,l){return r.getBoundingRect(e,t,i,n,o,l,s,a)}function S(e,t){if("_blank"===t||"blank"===t){var i=window.open();i.opener=null,i.location=e}else window.open(e,t)}t.addCommas=s,t.toCamelCase=a,t.normalizeCssArray=l,t.encodeHTML=h,t.formatTpl=p,t.formatTplSimple=g,t.getTooltipMarker=v,t.formatTime=y,t.capitalFirst=_,t.truncateText=x,t.getTextBoundingRect=b,t.getTextRect=w,t.windowOpen=S},76442:function(e,t,i){var n=i(95289),r=i(15009),o=i(56607),s=i(13388),a=i(31138),l=i(66343),c=i(38051),u=i(1635);t.Image=u;var h=i(75738);t.Group=h;var d=i(21927);t.Text=d;var f=i(30074);t.Circle=f;var p=i(91036);t.Sector=p;var g=i(39496);t.Ring=g;var v=i(24570);t.Polygon=v;var m=i(65542);t.Polyline=m;var y=i(15404);t.Rect=y;var _=i(91636);t.Line=_;var x=i(77402);t.BezierCurve=x;var b=i(64336);t.Arc=b;var w=i(24582);t.CompoundPath=w;var S=i(25113);t.LinearGradient=S;var C=i(78051);t.RadialGradient=C;var A=i(39587);t.BoundingRect=A;var M=i(48458);t.IncrementalDisplayable=M;var k=i(32250),T=Math.max,I=Math.min,L={},E=1,D={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},O="emphasis",P="normal",R=1,B={},N={};function z(e){return l.extend(e)}function H(e,t){return r.extendFromString(e,t)}function F(e,t){N[e]=t}function V(e){if(N.hasOwnProperty(e))return N[e]}function j(e,t,i,n){var o=r.createFromString(e,t);return i&&("center"===n&&(i=W(i,o.getBoundingRect())),U(o,i)),o}function $(e,t,i){var n=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===i){var r={width:e.width,height:e.height};n.setStyle(W(t,r))}}});return n}function W(e,t){var i,n=t.width/t.height,r=e.height*n;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,s=e.y+e.height/2;return{x:o-r/2,y:s-i/2,width:r,height:i}}var G=r.mergePath;function U(e,t){if(e.applyTransform){var i=e.getBoundingRect(),n=i.calculateTransform(t);e.applyTransform(n)}}function q(e){return k.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function Z(e){return k.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var X=k.subPixelOptimize;function Y(e){return null!=e&&"none"!==e}var K=n.createHashMap(),J=0;function Q(e){if("string"!==typeof e)return e;var t=K.get(e);return t||(t=o.lift(e,-.1),J<1e4&&(K.set(e,t),J++)),t}function ee(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var i=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var n=e.style;for(var r in t)null!=t[r]&&(i[r]=n[r]);i.fill=n.fill,i.stroke=n.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var i=e.__zr,n=e.useHoverLayer&&i&&"canvas"===i.painter.type;if(e.__highlighted=n?"layer":"plain",!(e.isGroup||!i&&e.useHoverLayer)){var r=e,o=e.style;n&&(r=i.addHover(e),o=r.style),Ce(o),n||ee(r),o.extendFrom(t),ie(o,t,"fill"),ie(o,t,"stroke"),Se(o),n||(e.dirty(!1),e.z2+=E)}}}function ie(e,t,i){!Y(t[i])&&Y(e[i])&&(e[i]=Q(e[i]))}function ne(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var i=e.style,n=e.__cachedNormalStl;n&&(Ce(i),e.setStyle(n),Se(i));var r=e.__cachedNormalZ2;null!=r&&e.z2-r===E&&(e.z2=r)}}function re(e,t,i){var n,r=P,o=P;e.__highlighted&&(r=O,n=!0),t(e,i),e.__highlighted&&(o=O,n=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,i)})),n&&e.__highDownOnUpdate&&e.__highDownOnUpdate(r,o)}function oe(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,ne(e),te(e))}function se(e){!ue(this,e)&&!this.__highByOuter&&re(this,te)}function ae(e){!ue(this,e)&&!this.__highByOuter&&re(this,ne)}function le(e){this.__highByOuter|=1<<(e||0),re(this,te)}function ce(e){!(this.__highByOuter&=~(1<<(e||0)))&&re(this,ne)}function ue(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function he(e,t){de(e,!0),re(e,oe,t)}function de(e,t){var i=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!i||e.__highDownDispatcher){var n=i?"off":"on";e[n]("mouseover",se)[n]("mouseout",ae),e[n]("emphasis",le)[n]("normal",ce),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!i}}function fe(e){return!(!e||!e.__highDownDispatcher)}function pe(e){var t=B[e];return null==t&&R<=32&&(t=B[e]=R++),t}function ge(e,t,i,r,o,s,a){o=o||L;var l,c=o.labelFetcher,u=o.labelDataIndex,h=o.labelDimIndex,d=o.labelProp,f=i.getShallow("show"),p=r.getShallow("show");(f||p)&&(c&&(l=c.getFormattedLabel(u,"normal",null,h,d)),null==l&&(l=n.isFunction(o.defaultText)?o.defaultText(u,o):o.defaultText));var g=f?l:null,v=p?n.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,h,d):null,l):null;null==g&&null==v||(me(e,i,s,o),me(t,r,a,o,!0)),e.text=g,t.text=v}function ve(e,t,i){var r=e.style;t&&(Ce(r),e.setStyle(t),Se(r)),r=e.__hoverStl,i&&r&&(Ce(r),n.extend(r,i),Se(r))}function me(e,t,i,r,o){return _e(e,t,r,o),i&&n.extend(e,i),e}function ye(e,t,i){var n,r={isRectText:!0};!1===i?n=!0:r.autoColor=i,_e(e,t,r,n)}function _e(e,t,i,r){if(i=i||L,i.isRectText){var o;i.getTextPosition?o=i.getTextPosition(t,r):(o=t.getShallow("position")||(r?null:"inside"),"outside"===o&&(o="top")),e.textPosition=o,e.textOffset=t.getShallow("offset");var s=t.getShallow("rotate");null!=s&&(s*=Math.PI/180),e.textRotation=s,e.textDistance=n.retrieve2(t.getShallow("distance"),r?null:5)}var a,l=t.ecModel,c=l&&l.option.textStyle,u=xe(t);if(u)for(var h in a={},u)if(u.hasOwnProperty(h)){var d=t.getModel(["rich",h]);be(a[h]={},d,c,i,r)}return e.rich=a,be(e,t,c,i,r,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),e}function xe(e){var t;while(e&&e!==e.ecModel){var i=(e.option||L).rich;if(i)for(var n in t=t||{},i)i.hasOwnProperty(n)&&(t[n]=1);e=e.parentModel}return t}function be(e,t,i,r,o,s){i=!o&&i||L,e.textFill=we(t.getShallow("color"),r)||i.color,e.textStroke=we(t.getShallow("textBorderColor"),r)||i.textBorderColor,e.textStrokeWidth=n.retrieve2(t.getShallow("textBorderWidth"),i.textBorderWidth),o||(s&&(e.insideRollbackOpt=r,Se(e)),null==e.textFill&&(e.textFill=r.autoColor)),e.fontStyle=t.getShallow("fontStyle")||i.fontStyle,e.fontWeight=t.getShallow("fontWeight")||i.fontWeight,e.fontSize=t.getShallow("fontSize")||i.fontSize,e.fontFamily=t.getShallow("fontFamily")||i.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),s&&r.disableBox||(e.textBackgroundColor=we(t.getShallow("backgroundColor"),r),e.textPadding=t.getShallow("padding"),e.textBorderColor=we(t.getShallow("borderColor"),r),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||i.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||i.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||i.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function we(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function Se(e){var t,i=e.textPosition,n=e.insideRollbackOpt;if(n&&null==e.textFill){var r=n.autoColor,o=n.isRectText,s=n.useInsideStyle,a=!1!==s&&(!0===s||o&&i&&"string"===typeof i&&i.indexOf("inside")>=0),l=!a&&null!=r;(a||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),a&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=r,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=r)}e.insideRollback=t}function Ce(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Ae(e,t){var i=t&&t.getModel("textStyle");return n.trim([e.fontStyle||i&&i.getShallow("fontStyle")||"",e.fontWeight||i&&i.getShallow("fontWeight")||"",(e.fontSize||i&&i.getShallow("fontSize")||12)+"px",e.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Me(e,t,i,n,r,o){"function"===typeof r&&(o=r,r=null);var s=n&&n.isAnimationEnabled();if(s){var a=e?"Update":"",l=n.getShallow("animationDuration"+a),c=n.getShallow("animationEasing"+a),u=n.getShallow("animationDelay"+a);"function"===typeof u&&(u=u(r,n.getAnimationDelayParams?n.getAnimationDelayParams(t,r):null)),"function"===typeof l&&(l=l(r)),l>0?t.animateTo(i,l,u||0,c,o,!!o):(t.stopAnimation(),t.attr(i),o&&o())}else t.stopAnimation(),t.attr(i),o&&o()}function ke(e,t,i,n,r){Me(!0,e,t,i,n,r)}function Te(e,t,i,n,r){Me(!1,e,t,i,n,r)}function Ie(e,t){var i=s.identity([]);while(e&&e!==t)s.mul(i,e.getLocalTransform(),i),e=e.parent;return i}function Le(e,t,i){return t&&!n.isArrayLike(t)&&(t=c.getLocalTransform(t)),i&&(t=s.invert([],t)),a.applyTransform([],e,t)}function Ee(e,t,i){var n=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-n:"right"===e?n:0,"top"===e?-r:"bottom"===e?r:0];return o=Le(o,t,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function De(e,t,i,r){if(e&&t){var o=s(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=o[e.anid];if(t){var n=l(e);e.attr(l(t)),ke(e,n,i,e.dataIndex)}}}))}function s(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function l(e){var t={position:a.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=n.extend({},e.shape)),t}}function Oe(e,t){return n.map(e,(function(e){var i=e[0];i=T(i,t.x),i=I(i,t.x+t.width);var n=e[1];return n=T(n,t.y),n=I(n,t.y+t.height),[i,n]}))}function Pe(e,t){var i=T(e.x,t.x),n=I(e.x+e.width,t.x+t.width),r=T(e.y,t.y),o=I(e.y+e.height,t.y+t.height);if(n>=i&&o>=r)return{x:i,y:r,width:n-i,height:o-r}}function Re(e,t,i){t=n.extend({rectHover:!0},t);var r=t.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),n.defaults(r,i),new u(t)):j(e.replace("path://",""),t,i,"center")}function Be(e,t,i,n,r){for(var o=0,s=r[r.length-1];o<r.length;o++){var a=r[o];if(Ne(e,t,i,n,a[0],a[1],s[0],s[1]))return!0;s=a}}function Ne(e,t,i,n,r,o,s,a){var l=i-e,c=n-t,u=s-r,h=a-o,d=ze(u,h,l,c);if(He(d))return!1;var f=e-r,p=t-o,g=ze(f,p,l,c)/d;if(g<0||g>1)return!1;var v=ze(f,p,u,h)/d;return!(v<0||v>1)}function ze(e,t,i,n){return e*n-i*t}function He(e){return e<=1e-6&&e>=-1e-6}F("circle",f),F("sector",p),F("ring",g),F("polygon",v),F("polyline",m),F("rect",y),F("line",_),F("bezierCurve",x),F("arc",b),t.Z2_EMPHASIS_LIFT=E,t.CACHED_LABEL_STYLE_PROPERTIES=D,t.extendShape=z,t.extendPath=H,t.registerShape=F,t.getShapeClass=V,t.makePath=j,t.makeImage=$,t.mergePath=G,t.resizePath=U,t.subPixelOptimizeLine=q,t.subPixelOptimizeRect=Z,t.subPixelOptimize=X,t.setElementHoverStyle=oe,t.setHoverStyle=he,t.setAsHighDownDispatcher=de,t.isHighDownDispatcher=fe,t.getHighlightDigit=pe,t.setLabelStyle=ge,t.modifyLabelStyle=ve,t.setTextStyle=me,t.setText=ye,t.getFont=Ae,t.updateProps=ke,t.initProps=Te,t.getTransform=Ie,t.applyTransform=Le,t.transformDirection=Ee,t.groupTransition=De,t.clipPointsByRect=Oe,t.clipRectByRect=Pe,t.createIcon=Re,t.linePolygonIntersect=Be,t.lineLineIntersect=Ne},61570:function(e,t,i){var n=i(95289),r=i(39587),o=i(44261),s=o.parsePercent,a=i(8595),l=n.each,c=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(e,t,i,n,r){var o=0,s=0;null==n&&(n=1/0),null==r&&(r=1/0);var a=0;t.eachChild((function(l,c){var u,h,d=l.position,f=l.getBoundingRect(),p=t.childAt(c+1),g=p&&p.getBoundingRect();if("horizontal"===e){var v=f.width+(g?-g.x+f.x:0);u=o+v,u>n||l.newline?(o=0,u=v,s+=a+i,a=f.height):a=Math.max(a,f.height)}else{var m=f.height+(g?-g.y+f.y:0);h=s+m,h>r||l.newline?(o+=a+i,s=0,h=m,a=f.width):a=Math.max(a,f.width)}l.newline||(d[0]=o,d[1]=s,"horizontal"===e?o=u+i:s=h+i)}))}var d=h,f=n.curry(h,"vertical"),p=n.curry(h,"horizontal");function g(e,t,i){var n=t.width,r=t.height,o=s(e.x,n),l=s(e.y,r),c=s(e.x2,n),u=s(e.y2,r);return(isNaN(o)||isNaN(parseFloat(e.x)))&&(o=0),(isNaN(c)||isNaN(parseFloat(e.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(e.y2)))&&(u=r),i=a.normalizeCssArray(i||0),{width:Math.max(c-o-i[1]-i[3],0),height:Math.max(u-l-i[0]-i[2],0)}}function v(e,t,i){i=a.normalizeCssArray(i||0);var n=t.width,o=t.height,l=s(e.left,n),c=s(e.top,o),u=s(e.right,n),h=s(e.bottom,o),d=s(e.width,n),f=s(e.height,o),p=i[2]+i[0],g=i[1]+i[3],v=e.aspect;switch(isNaN(d)&&(d=n-u-g-l),isNaN(f)&&(f=o-h-p-c),null!=v&&(isNaN(d)&&isNaN(f)&&(v>n/o?d=.8*n:f=.8*o),isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=n-u-d-g),isNaN(c)&&(c=o-h-f-p),e.left||e.right){case"center":l=n/2-d/2-i[3];break;case"right":l=n-d-g;break}switch(e.top||e.bottom){case"middle":case"center":c=o/2-f/2-i[0];break;case"bottom":c=o-f-p;break}l=l||0,c=c||0,isNaN(d)&&(d=n-g-l-(u||0)),isNaN(f)&&(f=o-p-c-(h||0));var m=new r(l+i[3],c+i[0],d,f);return m.margin=i,m}function m(e,t,i,o,s){var a=!s||!s.hv||s.hv[0],l=!s||!s.hv||s.hv[1],c=s&&s.boundingMode||"all";if(a||l){var u;if("raw"===c)u="group"===e.type?new r(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var h=e.getLocalTransform();u=u.clone(),u.applyTransform(h)}t=v(n.defaults({width:u.width,height:u.height},t),i,o);var d=e.position,f=a?t.x-u.x:0,p=l?t.y-u.y:0;e.attr("position","raw"===c?[f,p]:[d[0]+f,d[1]+p])}}function y(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function _(e,t,i){!n.isObject(i)&&(i={});var r=i.ignoreSize;!n.isArray(r)&&(r=[r,r]);var o=a(u[0],0),s=a(u[1],1);function a(i,n){var o={},s=0,a={},u=0,d=2;if(l(i,(function(t){a[t]=e[t]})),l(i,(function(e){c(t,e)&&(o[e]=a[e]=t[e]),h(o,e)&&s++,h(a,e)&&u++})),r[n])return h(t,i[1])?a[i[2]]=null:h(t,i[2])&&(a[i[1]]=null),a;if(u!==d&&s){if(s>=d)return o;for(var f=0;f<i.length;f++){var p=i[f];if(!c(o,p)&&c(e,p)){o[p]=e[p];break}}return o}return a}function c(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function d(e,t,i){l(e,(function(e){t[e]=i[e]}))}d(u[0],e,o),d(u[1],e,s)}function x(e){return b({},e)}function b(e,t){return t&&e&&l(c,(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}t.LOCATION_PARAMS=c,t.HV_NAMES=u,t.box=d,t.vbox=f,t.hbox=p,t.getAvailableSize=g,t.getLayoutRect=v,t.positionElement=m,t.sizeCalculable=y,t.mergeLayoutParam=_,t.getLayoutParams=x,t.copyLayoutParams=b},63199:function(e,t,i){var n=i(95289),r=i(87190),o=n.each,s=n.isObject,a=n.isArray,l="series\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function u(e,t,i){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,r=i.length;n<r;n++){var o=i[n];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(e){return!s(e)||a(e)||e instanceof Date?e:e.value}function f(e){return s(e)&&!(e instanceof Array)}function p(e,t){t=(t||[]).slice();var i=n.map(e||[],(function(e,t){return{exist:e}}));return o(t,(function(e,n){if(s(e)){for(var r=0;r<i.length;r++)if(!i[r].option&&null!=e.id&&i[r].exist.id===e.id+"")return i[r].option=e,void(t[n]=null);for(r=0;r<i.length;r++){var o=i[r].exist;if(!i[r].option&&(null==o.id||null==e.id)&&null!=e.name&&!m(e)&&!m(o)&&o.name===e.name+"")return i[r].option=e,void(t[n]=null)}}})),o(t,(function(e,t){if(s(e)){for(var n=0;n<i.length;n++){var r=i[n].exist;if(!i[n].option&&!m(r)&&null==e.id){i[n].option=e;break}}n>=i.length&&i.push({option:e})}})),i}function g(e){var t=n.createHashMap();o(e,(function(e,i){var n=e.exist;n&&t.set(n.id,e)})),o(e,(function(e,i){var r=e.option;n.assert(!r||null==r.id||!t.get(r.id)||t.get(r.id)===e,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&t.set(r.id,e),!e.keyInfo&&(e.keyInfo={})})),o(e,(function(e,i){var n=e.exist,r=e.option,o=e.keyInfo;if(s(r)){if(o.name=null!=r.name?r.name+"":n?n.name:l+i,n)o.id=n.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(t.get(o.id))}t.set(o.id,e)}}))}function v(e){var t=e.name;return!(!t||!t.indexOf(l))}function m(e){return s(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}function y(e,t){var i={},n={};return r(e||[],i),r(t||[],n,i),[o(i),o(n)];function r(e,t,i){for(var n=0,r=e.length;n<r;n++)for(var o=e[n].seriesId,s=c(e[n].dataIndex),a=i&&i[o],l=0,u=s.length;l<u;l++){var h=s[l];a&&a[h]?a[h]=null:(t[o]||(t[o]={}))[h]=1}}function o(e,t){var i=[];for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n])if(t)i.push(+n);else{var r=o(e[n],!0);r.length&&i.push({seriesId:n,dataIndex:r})}return i}}function _(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?n.isArray(t.dataIndex)?n.map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?n.isArray(t.name)?n.map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function x(){var e="__\0ec_inner_"+b+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}var b=0;function w(e,t,i){if(n.isString(t)){var r={};r[t+"Index"]=0,t=r}var s=i&&i.defaultMainType;!s||S(t,s+"Index")||S(t,s+"Id")||S(t,s+"Name")||(t[s+"Index"]=0);var a={};return o(t,(function(r,o){r=t[o];if("dataIndex"!==o&&"dataIndexInside"!==o){var s=o.match(/^(\w+)(Index|Id|Name)$/)||[],l=s[1],c=(s[2]||"").toLowerCase();if(!(!l||!c||null==r||"index"===c&&"none"===r||i&&i.includeMainTypes&&n.indexOf(i.includeMainTypes,l)<0)){var u={mainType:l};"index"===c&&"all"===r||(u[c]=r);var h=e.queryComponents(u);a[l+"Models"]=h,a[l+"Model"]=h[0]}}else a[o]=r})),a}function S(e,t){return e&&e.hasOwnProperty(t)}function C(e,t,i){e.setAttribute?e.setAttribute(t,i):e[t]=i}function A(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function M(e){return"auto"===e?r.domSupported?"html":"richText":e||"html"}function k(e,t){var i=n.createHashMap(),r=[];return n.each(e,(function(e){var n=t(e);(i.get(n)||(r.push(n),i.set(n,[]))).push(e)})),{keys:r,buckets:i}}t.normalizeToArray=c,t.defaultEmphasis=u,t.TEXT_STYLE_OPTIONS=h,t.getDataItemValue=d,t.isDataItemOption=f,t.mappingToExists=p,t.makeIdAndName=g,t.isNameSpecified=v,t.isIdInner=m,t.compressBatches=y,t.queryDataIndex=_,t.makeInner=x,t.parseFinder=w,t.setAttribute=C,t.getAttribute=A,t.getTooltipRenderMode=M,t.groupData=k},44261:function(e,t,i){var n=i(95289),r=1e-4;function o(e){return e.replace(/^\s+|\s+$/g,"")}function s(e,t,i,n){var r=t[1]-t[0],o=i[1]-i[0];if(0===r)return 0===o?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(e<=t[0])return i[0];if(e>=t[1])return i[1]}else{if(e>=t[0])return i[0];if(e<=t[1])return i[1]}else{if(e===t[0])return i[0];if(e===t[1])return i[1]}return(e-t[0])/r*o+i[0]}function a(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?o(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,i){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),i?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function u(e){if(e=+e,isNaN(e))return 0;var t=1,i=0;while(Math.round(e*t)/t!==e)t*=10,i++;return i}function h(e){var t=e.toString(),i=t.indexOf("e");if(i>0){var n=+t.slice(i+1);return n<0?-n:0}var r=t.indexOf(".");return r<0?0:t.length-1-r}function d(e,t){var i=Math.log,n=Math.LN10,r=Math.floor(i(e[1]-e[0])/n),o=Math.round(i(Math.abs(t[1]-t[0]))/n),s=Math.min(Math.max(-r+o,0),20);return isFinite(s)?s:20}function f(e,t,i){if(!e[t])return 0;var r=n.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return 0;var o=Math.pow(10,i),s=n.map(e,(function(e){return(isNaN(e)?0:e)/r*o*100})),a=100*o,l=n.map(s,(function(e){return Math.floor(e)})),c=n.reduce(l,(function(e,t){return e+t}),0),u=n.map(s,(function(e,t){return e-l[t]}));while(c<a){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=u.length;f<p;++f)u[f]>h&&(h=u[f],d=f);++l[d],u[d]=0,++c}return l[t]/o}var p=9007199254740991;function g(e){var t=2*Math.PI;return(e%t+t)%t}function v(e){return e>-r&&e<r}var m=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(e){if(e instanceof Date)return e;if("string"===typeof e){var t=m.exec(e);if(!t)return new Date(NaN);if(t[8]){var i=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(i-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,i,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function _(e){return Math.pow(10,x(e))}function x(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function b(e,t){var i,n=x(e),r=Math.pow(10,n),o=e/r;return i=t?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,e=i*r,n>=-20?+e.toFixed(n<0?-n:0):e}function w(e,t){var i=(e.length-1)*t+1,n=Math.floor(i),r=+e[n-1],o=i-n;return o?r+o*(e[n]-r):r}function S(e){e.sort((function(e,t){return a(e,t,0)?-1:1}));for(var t=-1/0,i=1,n=0;n<e.length;){for(var r=e[n].interval,o=e[n].close,s=0;s<2;s++)r[s]<=t&&(r[s]=t,o[s]=s?1:1-i),t=r[s],i=o[s];r[0]===r[1]&&o[0]*o[1]!==1?e.splice(n,1):n++}return e;function a(e,t,i){return e.interval[i]<t.interval[i]||e.interval[i]===t.interval[i]&&(e.close[i]-t.close[i]===(i?-1:1)||!i&&a(e,t,1))}}function C(e){return e-parseFloat(e)>=0}t.linearMap=s,t.parsePercent=a,t.round=l,t.asc=c,t.getPrecision=u,t.getPrecisionSafe=h,t.getPixelPrecision=d,t.getPercentWithPrecision=f,t.MAX_SAFE_INTEGER=p,t.remRadian=g,t.isRadianAroundZero=v,t.parseDate=y,t.quantity=_,t.quantityExponent=x,t.nice=b,t.quantile=w,t.reformIntervals=S,t.isNumeric=C},83759:function(e,t,i){var n=i(76442),r=n.extendShape,o=r({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var i=t.cx,n=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),s=.5*(o-r),a=r+s,l=t.startAngle,c=t.endAngle,u=t.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(c),p=Math.sin(c),g=u?c-l<2*Math.PI:l-c<2*Math.PI;g&&(e.moveTo(h*r+i,d*r+n),e.arc(h*a+i,d*a+n,s,-Math.PI+l,l,!u)),e.arc(i,n,o,l,c,!u),e.moveTo(f*o+i,p*o+n),e.arc(f*a+i,p*a+n,s,c-2*Math.PI,c-Math.PI,!u),0!==r&&(e.arc(i,n,r,c,l,u),e.moveTo(h*r+i,p*r+n)),e.closePath()}});e.exports=o},22864:function(e,t,i){var n=i(95289),r=i(76442),o=i(39587),s=i(43407),a=s.calculateTextPosition,l=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,r=t.width/2,o=t.height/2;e.moveTo(i,n-o),e.lineTo(i+r,n+o),e.lineTo(i-r,n+o),e.closePath()}}),c=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,r=t.width/2,o=t.height/2;e.moveTo(i,n-o),e.lineTo(i+r,n),e.lineTo(i,n+o),e.lineTo(i-r,n),e.closePath()}}),u=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.x,n=t.y,r=t.width/5*3,o=Math.max(r,t.height),s=r/2,a=s*s/(o-s),l=n-o+s+a,c=Math.asin(a/s),u=Math.cos(c)*s,h=Math.sin(c),d=Math.cos(c),f=.6*s,p=.7*s;e.moveTo(i-u,l+a),e.arc(i,l,s,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(i+u-h*f,l+a+d*f,i,n-p,i,n),e.bezierCurveTo(i,n-p,i-u+h*f,l+a+d*f,i-u,l+a),e.closePath()}}),h=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.height,n=t.width,r=t.x,o=t.y,s=n/3*2;e.moveTo(r,o),e.lineTo(r+s,o+i),e.lineTo(r,o+i/4*3),e.lineTo(r-s,o+i),e.lineTo(r,o),e.closePath()}}),d={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:c,pin:u,arrow:h,triangle:l},f={line:function(e,t,i,n,r){r.x1=e,r.y1=t+n/2,r.x2=e+i,r.y2=t+n/2},rect:function(e,t,i,n,r){r.x=e,r.y=t,r.width=i,r.height=n},roundRect:function(e,t,i,n,r){r.x=e,r.y=t,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(e,t,i,n,r){var o=Math.min(i,n);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,i,n,r){r.cx=e+i/2,r.cy=t+n/2,r.r=Math.min(i,n)/2},diamond:function(e,t,i,n,r){r.cx=e+i/2,r.cy=t+n/2,r.width=i,r.height=n},pin:function(e,t,i,n,r){r.x=e+i/2,r.y=t+n/2,r.width=i,r.height=n},arrow:function(e,t,i,n,r){r.x=e+i/2,r.y=t+n/2,r.width=i,r.height=n},triangle:function(e,t,i,n,r){r.cx=e+i/2,r.cy=t+n/2,r.width=i,r.height=n}},p={};n.each(d,(function(e,t){p[t]=new e}));var g=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,i){var n=a(e,t,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(e,t,i){var n=t.symbolType;if("none"!==n){var r=p[n];r||(n="rect",r=p[n]),f[n](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,i)}}});function v(e,t){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=e:this.__isEmptyBrush?(i.stroke=e,i.fill=t||"#fff"):(i.fill&&(i.fill=e),i.stroke&&(i.stroke=e)),this.dirty(!1)}}function m(e,t,i,n,s,a,l){var c,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),c=0===e.indexOf("image://")?r.makeImage(e.slice(8),new o(t,i,n,s),l?"center":"cover"):0===e.indexOf("path://")?r.makePath(e.slice(7),{},new o(t,i,n,s),l?"center":"cover"):new g({shape:{symbolType:e,x:t,y:i,width:n,height:s}}),c.__isEmptyBrush=u,c.setColor=v,c.setColor(a),c}t.createSymbol=m},88336:function(e,t){var i="\0__throttleOriginMethod",n="\0__throttleRate",r="\0__throttleType";function o(e,t,i){var n,r,o,s,a,l=0,c=0,u=null;function h(){c=(new Date).getTime(),u=null,e.apply(o,s||[])}t=t||0;var d=function(){n=(new Date).getTime(),o=this,s=arguments;var e=a||t,d=a||i;a=null,r=n-(d?l:c)-e,clearTimeout(u),d?u=setTimeout(h,e):r>=0?h():u=setTimeout(h,-r),l=n};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(e){a=e},d}function s(e,t,s,a){var l=e[t];if(l){var c=l[i]||l,u=l[r],h=l[n];if(h!==s||u!==a){if(null==s||!a)return e[t]=c;l=e[t]=o(c,s,"debounce"===a),l[i]=c,l[r]=a,l[n]=s}return l}}function a(e,t){var n=e[t];n&&n[i]&&(e[t]=n[i])}t.throttle=o,t.createOrUpdate=s,t.clear=a},67955:function(e,t,i){var n=i(95289),r=n.each,o=i(75738),s=i(79865),a=i(11724),l=i(63199),c=i(76442),u=i(88545),h=u.createTask,d=i(59039),f=l.makeInner(),p=d();function g(){this.group=new o,this.uid=s.getUID("viewChart"),this.renderTask=h({plan:_,reset:x}),this.renderTask.context={view:this}}g.prototype={type:"chart",init:function(e,t){},render:function(e,t,i,n){},highlight:function(e,t,i,n){y(e.getData(),n,"emphasis")},downplay:function(e,t,i,n){y(e.getData(),n,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var v=g.prototype;function m(e,t,i){if(e&&(e.trigger(t,i),e.isGroup&&!c.isHighDownDispatcher(e)))for(var n=0,r=e.childCount();n<r;n++)m(e.childAt(n),t,i)}function y(e,t,i){var n=l.queryDataIndex(e,t),o=t&&null!=t.highlightKey?c.getHighlightDigit(t.highlightKey):null;null!=n?r(l.normalizeToArray(n),(function(t){m(e.getItemGraphicEl(t),i,o)})):e.eachItemGraphicEl((function(e){m(e,i,o)}))}function _(e){return p(e.model)}function x(e){var t=e.model,i=e.ecModel,n=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,s=e.view,a=r&&f(r).updateMethod,l=o?"incrementalPrepareRender":a&&s[a]?a:"render";return"render"!==l&&s[l](t,i,n,r),b[l]}v.updateView=v.updateLayout=v.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},a.enableClassExtend(g,["dispose"]),a.enableClassManagement(g,{registerWhenExtend:!0}),g.markUpdateMethod=function(e,t){f(e).updateMethod=t};var b={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},w=g;e.exports=w},18328:function(e,t,i){var n=i(75738),r=i(79865),o=i(11724),s=function(){this.group=new n,this.uid=r.getUID("viewComponent")};s.prototype={constructor:s,init:function(e,t){},render:function(e,t,i,n){},dispose:function(){},filterForExposedEvent:null};var a=s.prototype;a.updateView=a.updateLayout=a.updateVisual=function(e,t,i,n){},o.enableClassExtend(s),o.enableClassManagement(s,{registerWhenExtend:!0});var l=s;e.exports=l},65840:function(e){function t(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){var i=t();return i.indexOfName(e)>=0},this.indexOfName=function(t){var i=e();return i.indexOfName(t)},this.getItemVisual=function(t,i){var n=e();return n.getItemVisual(t,i)}}var i=t;e.exports=i},71576:function(e,t,i){var n=i(95289),r=i(56607),o=i(44261),s=o.linearMap,a=n.each,l=n.isObject,c=-1,u=function(e){var t=e.mappingMethod,i=e.type,r=this.option=n.clone(e);this.type=i,this.mappingMethod=t,this._normalizeData=S[t];var o=h[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._doMap=o._doMap[t],"piecewise"===t?(p(r),d(r)):"category"===t?r.categories?f(r):p(r,!0):(n.assert("linear"!==t||r.dataExtent),p(r))};u.prototype={constructor:u,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return n.bind(this._normalizeData,this)}};var h=u.visualHandlers={color:{applyVisual:m("color"),getColorMapper:function(){var e=this.option;return n.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),y.call(this,e)}:function(t,i,n){var o=!!n;return!i&&(t=this._normalizeData(t)),n=r.fastLerp(t,e.parsedVisual,n),o?n:r.stringify(n,"rgba")},this)},_doMap:{linear:function(e){return r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")},category:y,piecewise:function(e,t){var i=b.call(this,t);return null==i&&(i=r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")),i},fixed:_}},colorHue:g((function(e,t){return r.modifyHSL(e,t)})),colorSaturation:g((function(e,t){return r.modifyHSL(e,null,t)})),colorLightness:g((function(e,t){return r.modifyHSL(e,null,null,t)})),colorAlpha:g((function(e,t){return r.modifyAlpha(e,t)})),opacity:{applyVisual:m("opacity"),_doMap:x([0,1])},liftZ:{applyVisual:m("liftZ"),_doMap:{linear:_,category:_,piecewise:_,fixed:_}},symbol:{applyVisual:function(e,t,i){var r=this.mapValueToVisual(e);if(n.isString(r))i("symbol",r);else if(l(r))for(var o in r)r.hasOwnProperty(o)&&i(o,r[o])},_doMap:{linear:v,category:y,piecewise:function(e,t){var i=b.call(this,t);return null==i&&(i=v.call(this,e)),i},fixed:_}},symbolSize:{applyVisual:m("symbolSize"),_doMap:x([0,1])}};function d(e){var t=e.pieceList;e.hasSpecialVisual=!1,n.each(t,(function(t,i){t.originIndex=i,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function f(e){var t=e.categories,i=e.visual,r=e.categoryMap={};if(a(t,(function(e,t){r[e]=t})),!n.isArray(i)){var o=[];n.isObject(i)?a(i,(function(e,t){var i=r[t];o[null!=i?i:c]=e})):o[c]=i,i=w(e,o)}for(var s=t.length-1;s>=0;s--)null==i[s]&&(delete r[t[s]],t.pop())}function p(e,t){var i=e.visual,r=[];n.isObject(i)?a(i,(function(e){r.push(e)})):null!=i&&r.push(i);var o={color:1,symbol:1};t||1!==r.length||o.hasOwnProperty(e.type)||(r[1]=r[0]),w(e,r)}function g(e){return{applyVisual:function(t,i,n){t=this.mapValueToVisual(t),n("color",e(i("color"),t))},_doMap:x([0,1])}}function v(e){var t=this.option.visual;return t[Math.round(s(e,[0,1],[0,t.length-1],!0))]||{}}function m(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function y(e){var t=this.option.visual;return t[this.option.loop&&e!==c?e%t.length:e]}function _(){return this.option.visual[0]}function x(e){return{linear:function(t){return s(t,e,this.option.visual,!0)},category:y,piecewise:function(t,i){var n=b.call(this,i);return null==n&&(n=s(t,e,this.option.visual,!0)),n},fixed:_}}function b(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=u.findPieceIndex(e,i),r=i[n];if(r&&r.visual)return r.visual[this.type]}}function w(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,(function(e){return r.parse(e)}))),t}var S={linear:function(e){return s(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=u.findPieceIndex(e,t,!0);if(null!=i)return s(i,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?c:t},fixed:n.noop};function C(e,t,i){return e?t<=i:t<i}u.listVisualTypes=function(){var e=[];return n.each(h,(function(t,i){e.push(i)})),e},u.addVisualHandler=function(e,t){h[e]=t},u.isValidType=function(e){return h.hasOwnProperty(e)},u.eachVisual=function(e,t,i){n.isObject(e)?n.each(e,t,i):t.call(i,e)},u.mapVisual=function(e,t,i){var r,o=n.isArray(e)?[]:n.isObject(e)?{}:(r=!0,null);return u.eachVisual(e,(function(e,n){var s=t.call(i,e,n);r?o=s:o[n]=s})),o},u.retrieveVisuals=function(e){var t,i={};return e&&a(h,(function(n,r){e.hasOwnProperty(r)&&(i[r]=e[r],t=!0)})),t?i:null},u.prepareVisualTypes=function(e){if(l(e)){var t=[];a(e,(function(e,i){t.push(i)})),e=t}else{if(!n.isArray(e))return[];e=e.slice()}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},u.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},u.findPieceIndex=function(e,t,i){for(var n,r=1/0,o=0,s=t.length;o<s;o++){var a=t[o].value;if(null!=a){if(a===e||"string"===typeof a&&a===e+"")return o;i&&h(a,o)}}for(o=0,s=t.length;o<s;o++){var l=t[o],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(C(u[1],e,c[1]))return o}else if(c[1]===1/0){if(C(u[0],c[0],e))return o}else if(C(u[0],c[0],e)&&C(u[1],e,c[1]))return o;i&&h(c[0],o),i&&h(c[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:n;function h(t,i){var o=Math.abs(t-e);o<r&&(r=o,n=i)}};var A=u;e.exports=A},40949:function(e,t,i){var n=i(95289),r=i(49777),o=i(41834),s=o.retrieveRawValue;function a(e,t){var i=t.getModel("aria");if(i.get("show"))if(i.get("description"))e.setAttribute("aria-label",i.get("description"));else{var o=0;t.eachSeries((function(e,t){++o}),this);var a,l=i.get("data.maxCount")||10,c=i.get("series.maxCount")||10,u=Math.min(o,c);if(!(o<1)){var h=v();a=h?p(g("general.withTitle"),{title:h}):g("general.withoutTitle");var d=[],f=o>1?"series.multiple.prefix":"series.single.prefix";a+=p(g(f),{seriesCount:o}),t.eachSeries((function(e,t){if(t<u){var i,n=e.get("name"),r="series."+(o>1?"multiple":"single")+".";i=g(n?r+"withName":r+"withoutName"),i=p(i,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:m(e.subType)});var a=e.getData();window.data=a,a.count()>l?i+=p(g("data.partialData"),{displayCnt:l}):i+=g("data.allData");for(var c=[],h=0;h<a.count();h++)if(h<l){var f=a.getName(h),v=s(a,h);c.push(p(g(f?"data.withName":"data.withoutName"),{name:f,value:v}))}i+=c.join(g("data.separator.middle"))+g("data.separator.end"),d.push(i)}})),a+=d.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),e.setAttribute("aria-label",a)}}function p(e,t){if("string"!==typeof e)return e;var i=e;return n.each(t,(function(e,t){i=i.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),i}function g(e){var t=i.get(e);if(null==t){for(var n=e.split("."),o=r.aria,s=0;s<n.length;++s)o=o[n[s]];return o}return t}function v(){var e=t.getModel("title").option;return e&&e.length&&(e=e[0]),e&&e.text}function m(e){return r.series.typeNames[e]||"自定义图"}}e.exports=a},5045:function(e,t,i){var n=i(95289),r=n.createHashMap;function o(e){return{getTargetSeries:function(t){var i={},n=r();return t.eachSeriesByType(e,(function(e){e.__paletteScope=i,n.set(e.uid,e)})),n},reset:function(e,t){var i=e.getRawData(),n={},r=e.getData();r.each((function(e){var t=r.getRawIndex(e);n[t]=e})),i.each((function(t){var o,s=n[t],a=null!=s&&r.getItemVisual(s,"color",!0),l=null!=s&&r.getItemVisual(s,"borderColor",!0);if(a&&l||(o=i.getItemModel(t)),!a){var c=o.get("itemStyle.color")||e.getColorFromPalette(i.getName(t)||t+"",e.__paletteScope,i.count());null!=s&&r.setItemVisual(s,"color",c)}if(!l){var u=o.get("itemStyle.borderColor");null!=s&&r.setItemVisual(s,"borderColor",u)}}))}}}e.exports=o},89414:function(e,t,i){var n=i(44696),r=i(95289),o=r.isFunction,s={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var i=e.getData(),r=(e.visualColorAccessPath||"itemStyle.color").split("."),s=e.get(r),a=!o(s)||s instanceof n?null:s;s&&!a||(s=e.getColorFromPalette(e.name,null,t.getSeriesCount())),i.setVisual("color",s);var l=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),c=e.get(l);if(i.setVisual("borderColor",c),!t.isSeriesFiltered(e)){a&&i.each((function(t){i.setItemVisual(t,"color",a(e.getDataParams(t)))}));var u=function(e,t){var i=e.getItemModel(t),n=i.get(r,!0),o=i.get(l,!0);null!=n&&e.setItemVisual(t,"color",n),null!=o&&e.setItemVisual(t,"borderColor",o)};return{dataEach:i.hasItemOption?u:null}}}};e.exports=s},39784:function(e,t,i){var n=i(95289),r=n.isFunction;function o(e,t,i){return{seriesType:e,performRawSeries:!0,reset:function(e,n,o){var s=e.getData(),a=e.get("symbol"),l=e.get("symbolSize"),c=e.get("symbolKeepAspect"),u=e.get("symbolRotate"),h=r(a),d=r(l),f=r(u),p=h||d||f,g=!h&&a?a:t,v=d?null:l;if(s.setVisual({legendSymbol:i||g,symbol:g,symbolSize:v,symbolKeepAspect:c,symbolRotate:u}),!n.isSeriesFiltered(e))return{dataEach:s.hasItemOption||p?m:null};function m(t,i){if(p){var n=e.getRawValue(i),r=e.getDataParams(i);h&&t.setItemVisual(i,"symbol",a(n,r)),d&&t.setItemVisual(i,"symbolSize",l(n,r)),f&&t.setItemVisual(i,"symbolRotate",u(n,r))}if(t.hasItemOption){var o=t.getItemModel(i),s=o.getShallow("symbol",!0),c=o.getShallow("symbolSize",!0),g=o.getShallow("symbolRotate",!0),v=o.getShallow("symbolKeepAspect",!0);null!=s&&t.setItemVisual(i,"symbol",s),null!=c&&t.setItemVisual(i,"symbolSize",c),null!=g&&t.setItemVisual(i,"symbolRotate",g),null!=v&&t.setItemVisual(i,"symbolKeepAspect",v)}}}}}e.exports=o},67759:function(e,t,i){var n=i(95289),r={get:function(e,t,i){var r=n.clone((o[e]||{})[t]);return i&&n.isArray(r)?r[r.length-1]:r}},o={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]}},s=r;e.exports=s},63479:function(e,t,i){var n=i(95289),r=i(71576),o=n.each;function s(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function a(e,t,i){var s={};return o(t,(function(t){var l=s[t]=a();o(e[t],(function(e,o){if(r.isValidType(o)){var s={type:o,visual:e};i&&i(s,t),l[o]=new r(s),"opacity"===o&&(s=n.clone(s),s.type="colorAlpha",l.__hidden.__alphaForOpacity=new r(s))}}))})),s;function a(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function l(e,t,i){var r;n.each(i,(function(e){t.hasOwnProperty(e)&&s(t[e])&&(r=!0)})),r&&n.each(i,(function(i){t.hasOwnProperty(i)&&s(t[i])?e[i]=n.clone(t[i]):delete e[i]}))}function c(e,t,i,o,s,a){var l,c={};function u(e){return i.getItemVisual(l,e)}function h(e,t){i.setItemVisual(l,e,t)}function d(e,n){l=null==a?e:n;var r=i.getRawDataItem(l);if(!r||!1!==r.visualMap)for(var d=o.call(s,e),f=t[d],p=c[d],g=0,v=p.length;g<v;g++){var m=p[g];f[m]&&f[m].applyVisual(e,u,h)}}n.each(e,(function(e){var i=r.prepareVisualTypes(t[e]);c[e]=i})),null==a?i.each(d):i.each([a],d)}function u(e,t,i,o){var s={};function a(e,n){function r(e){return n.getItemVisual(l,e)}function a(e,t){n.setItemVisual(l,e,t)}var l;null!=o&&(o=n.getDimension(o));while(null!=(l=e.next())){var c=n.getRawDataItem(l);if(!c||!1!==c.visualMap)for(var u=null!=o?n.get(o,l,!0):l,h=i(u),d=t[h],f=s[h],p=0,g=f.length;p<g;p++){var v=f[p];d[v]&&d[v].applyVisual(u,r,a)}}}return n.each(e,(function(e){var i=r.prepareVisualTypes(t[e]);s[e]=i})),{progress:a}}t.createVisualMappings=a,t.replaceVisualOption=l,t.applyVisual=c,t.incrementalApplyVisual=u},56001:function(){},40125:function(){},158:function(){},8245:function(){},78505:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});var n=i(53661),r=i(3507),o=i(66960),s=(0,r.A)(n.A).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark(){return this.$vuetify.theme.dark}},beforeCreate(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://v2.vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render(e){const t=e("div",{staticClass:"v-application--wrap"},(0,o.$c)(this));return e("div",{staticClass:"v-application",class:{"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl,...this.themeClasses},attrs:{"data-app":!0},domProps:{id:this.id}},[t])}})},21823:function(e,t,i){"use strict";i.d(t,{A:function(){return c}});var n=i(68767),r=i(21325),o=i(6256),s=i(66960),a=i(3507),l=(0,a.A)(n.A,r.A,o.A).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:(0,s.Dg)(this.size),minWidth:(0,s.Dg)(this.size),width:(0,s.Dg)(this.size),...this.measurableStyles}}},render(e){const t={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return e("div",this.setBackgroundColor(this.color,t),(0,s.$c)(this))}}),c=l},375:function(e,t,i){"use strict";i.d(t,{A:function(){return v}});var n=i(27495),r=i(12585),o=r.A,s=i(74387),a=i(39748),l=i(45083),c=i(49923),u=i(78010),h=i(21713),d=i(3507),f=i(65604),p=i(66960);const g=(0,d.A)(n.A,u.A,c.A,h.A,(0,s.P)("btnToggle"),(0,a.P)("inputValue"));var v=g.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,plain: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,...u.A.options.computed.classes.call(this),"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"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}},computedElevation(){if(!this.disabled)return l.A.options.computed.computedElevation.call(this)},computedRipple(){var e;const t=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!==(e=this.ripple)&&void 0!==e?e:t)},hasBg(){return!this.text&&!this.plain&&!this.outlined&&!this.icon},isElevated(){return Boolean(!this.icon&&!this.text&&!this.outlined&&!this.depressed&&!this.disabled&&!this.plain&&(null==this.elevation||Number(this.elevation)>0))},isRound(){return Boolean(this.icon||this.fab)},styles(){return{...this.measurableStyles}}},created(){const e=[["flat","text"],["outline","outlined"],["round","rounded"]];e.forEach((([e,t])=>{this.$attrs.hasOwnProperty(e)&&(0,f.q4)(e,t,this)}))},methods:{click(e){!this.retainFocusOnClick&&!this.fab&&e.detail&&this.$el.blur(),this.$emit("click",e),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},(0,p.$c)(this))},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},(0,p.$c)(this,"loader")||[this.$createElement(o,{props:{indeterminate:!0,size:23,width:2}})])}},render(e){const t=[this.genContent(),this.loading&&this.genLoader()],{tag:i,data:n}=this.generateRouteLink(),r=this.hasBg?this.setBackgroundColor:this.setTextColor;return"button"===i&&(n.attrs.type=this.type,n.attrs.disabled=this.disabled),n.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),e(i,this.disabled?n:r(this.color,n),t)}})},47210:function(e,t,i){"use strict";i(56001);var n=i(27495),r=i(37930),o=i(78010),s=i(3507),a=i(66960);t.A=(0,s.A)(r.A,o.A,n.A).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,...o.A.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,...n.A.options.computed.classes.call(this)}},styles(){const e={...n.A.options.computed.styles.call(this)};return this.img&&(e.background=`url("${this.img}") center center / cover no-repeat`),e}},methods:{genProgress(){const e=r.A.options.methods.genProgress.call(this);return e?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[e]):null}},render(e){const{tag:t,data:i}=this.generateRouteLink();return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),e(t,this.setBackgroundColor(this.color,i),[this.genProgress(),(0,a.$c)(this)])}})},98834:function(e,t,i){"use strict";i.d(t,{OQ:function(){return a},SL:function(){return o},ri:function(){return l}});var n=i(47210),r=i(66960);const o=(0,r.Gn)("v-card__actions"),s=(0,r.Gn)("v-card__subtitle"),a=(0,r.Gn)("v-card__text"),l=(0,r.Gn)("v-card__title");n.A},1770:function(e,t,i){"use strict";i.d(t,{A:function(){return r}});var n=i(53661),r=n.A.extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(e){let t;return this.$attrs.role&&"separator"!==this.$attrs.role||(t=this.vertical?"vertical":"horizontal"),e("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":t,...this.$attrs},on:this.$listeners})}})},58230:function(e,t,i){"use strict";var n=i(3507),r=i(54765),o=i(98652),s=i(66960);t.A=(0,n.A)(r.A,(0,o.G)("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(e){const t=Object.values(e).includes(!0);this.$emit("input",!t)},deep:!0,immediate:!0}},methods:{watchInput(e){const t=e=>e.$watch("hasError",(t=>{this.$set(this.errorBag,e._uid,t)}),{immediate:!0}),i={_uid:e._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?i.shouldValidate=e.$watch("shouldValidate",(n=>{n&&(this.errorBag.hasOwnProperty(e._uid)||(i.valid=t(e)))})):i.valid=t(e),i},validate(){return 0===this.inputs.filter((e=>!e.validate(!0))).length},reset(){this.inputs.forEach((e=>e.reset())),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout((()=>{this.errorBag={}}),0)},resetValidation(){this.inputs.forEach((e=>e.resetValidation())),this.resetErrorBag()},register(e){this.inputs.push(e),this.watchers.push(this.watchInput(e))},unregister(e){const t=this.inputs.find((t=>t._uid===e._uid));if(!t)return;const i=this.watchers.find((e=>e._uid===t._uid));i&&(i.valid(),i.shouldValidate()),this.watchers=this.watchers.filter((e=>e._uid!==t._uid)),this.inputs=this.inputs.filter((e=>e._uid!==t._uid)),this.$delete(this.errorBag,t._uid)}},render(e){return e("form",{staticClass:"v-form",attrs:{novalidate:!0,...this.attrs$},on:{submit:e=>this.$emit("submit",e)}},(0,s.$c)(this))}})},51526:function(e,t,i){"use strict";i(40125);var n=i(85471),r=i(64961),o=i(66960);const s=["sm","md","lg","xl"],a=(()=>s.reduce(((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e)),{}))(),l=(()=>s.reduce(((e,t)=>(e["offset"+(0,o.Zb)(t)]={type:[String,Number],default:null},e)),{}))(),c=(()=>s.reduce(((e,t)=>(e["order"+(0,o.Zb)(t)]={type:[String,Number],default:null},e)),{}))(),u={col:Object.keys(a),offset:Object.keys(l),order:Object.keys(c)};function h(e,t,i){let n=e;if(null!=i&&!1!==i){if(t){const i=t.replace(e,"");n+=`-${i}`}return"col"!==e||""!==i&&!0!==i?(n+=`-${i}`,n.toLowerCase()):n.toLowerCase()}}const d=new Map;t.A=n["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...a,offset:{type:[String,Number],default:null},...l,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:e=>["auto","start","end","center","baseline","stretch"].includes(e)},tag:{type:String,default:"div"}},render(e,{props:t,data:i,children:n,parent:o}){let s="";for(const r in t)s+=String(t[r]);let a=d.get(s);if(!a){let e;for(e in a=[],u)u[e].forEach((i=>{const n=t[i],r=h(e,i,n);r&&a.push(r)}));const i=a.some((e=>e.startsWith("col-")));a.push({col:!i||!t.cols,[`col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),d.set(s,a)}return e(t.tag,(0,r.Ay)(i,{class:a}),n)}})},4739:function(e,t,i){"use strict";i(158),i(40125);var n=i(2186),r=i(64961);t.A=(0,n.A)("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render(e,{props:t,data:i,children:n}){let o;const{attrs:s}=i;return s&&(i.attrs={},o=Object.keys(s).filter((e=>{if("slot"===e)return!1;const t=s[e];return e.startsWith("data-")?(i.attrs[e]=t,!1):t||"string"===typeof t}))),t.id&&(i.domProps=i.domProps||{},i.domProps.id=t.id),e(t.tag,(0,r.Ay)(i,{staticClass:"container",class:Array({"container--fluid":t.fluid}).concat(o||[])}),n)}})},23224:function(e,t,i){"use strict";i(158);var n=i(2186);t.A=(0,n.A)("layout")},18412:function(e,t,i){"use strict";i(40125);var n=i(85471),r=i(64961),o=i(66960);const s=["sm","md","lg","xl"],a=["start","end","center"];function l(e,t){return s.reduce(((i,n)=>(i[e+(0,o.Zb)(n)]=t(),i)),{})}const c=e=>[...a,"baseline","stretch"].includes(e),u=l("align",(()=>({type:String,default:null,validator:c}))),h=e=>[...a,"space-between","space-around"].includes(e),d=l("justify",(()=>({type:String,default:null,validator:h}))),f=e=>[...a,"space-between","space-around","stretch"].includes(e),p=l("alignContent",(()=>({type:String,default:null,validator:f}))),g={align:Object.keys(u),justify:Object.keys(d),alignContent:Object.keys(p)},v={align:"align",justify:"justify",alignContent:"align-content"};function m(e,t,i){let n=v[e];if(null!=i){if(t){const i=t.replace(e,"");n+=`-${i}`}return n+=`-${i}`,n.toLowerCase()}}const y=new Map;t.A=n["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...u,justify:{type:String,default:null,validator:h},...d,alignContent:{type:String,default:null,validator:f},...p},render(e,{props:t,data:i,children:n}){let o="";for(const r in t)o+=String(t[r]);let s=y.get(o);if(!s){let e;for(e in s=[],g)g[e].forEach((i=>{const n=t[i],r=m(e,i,n);r&&s.push(r)}));s.push({"no-gutters":t.noGutters,"row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),y.set(o,s)}return e(t.tag,(0,r.Ay)(i,{staticClass:"row",class:s}),n)}})},67410:function(e,t,i){"use strict";i(158);var n=i(66960);t.A=(0,n.Gn)("spacer","div","v-spacer")},2186:function(e,t,i){"use strict";i.d(t,{A:function(){return r}});var n=i(85471);function r(e){return n["default"].extend({name:`v-${e}`,functional:!0,props:{id:String,tag:{type:String,default:"div"}},render(t,{props:i,data:n,children:r}){n.staticClass=`${e} ${n.staticClass||""}`.trim();const{attrs:o}=n;if(o){n.attrs={};const e=Object.keys(o).filter((e=>{if("slot"===e)return!1;const t=o[e];return e.startsWith("data-")?(n.attrs[e]=t,!1):t||"string"===typeof t}));e.length&&(n.staticClass+=` ${e.join(" ")}`)}return i.id&&(n.domProps=n.domProps||{},n.domProps.id=i.id),t(i.tag,n,r)}})}},69456:function(e,t,i){"use strict";i.d(t,{A:function(){return p}});var n,r=i(54765),o=i(68767),s=i(21713),a=i(53661),l=i(66960),c=i(85471),u=i(3507);function h(e){return["fas","far","fal","fab","fad","fak"].some((t=>e.includes(t)))}function d(e){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4}(function(e){e["xSmall"]="12px",e["small"]="16px",e["default"]="24px",e["medium"]="28px",e["large"]="36px",e["xLarge"]="40px"})(n||(n={}));const f=(0,u.A)(r.A,o.A,s.A,a.A).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 e="";return this.$slots.default&&(e=this.$slots.default[0].text.trim()),(0,l.g8)(this,e)},getSize(){const e={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},t=(0,l.HP)(e).find((t=>e[t]));return t&&n[t]||(0,l.Dg)(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 e=this.getSize(),t={...this.getDefaultData(),style:e?{fontSize:e,height:e,width:e}:void 0};return this.applyColors(t),t},applyColors(e){e.class={...e.class,...this.themeClasses},this.setTextColor(this.color,e)},renderFontIcon(e,t){const i=[],n=this.getDefaultData();let r="material-icons";const o=e.indexOf("-"),s=o<=-1;s?i.push(e):(r=e.slice(0,o),h(r)&&(r="")),n.class[r]=!0,n.class[e]=!s;const a=this.getSize();return a&&(n.style={fontSize:a}),this.applyColors(n),t(this.hasClickListener?"button":this.tag,n,i)},renderSvgIcon(e,t){const i={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},n=this.getSize();return n&&(i.style={fontSize:n,height:n,width:n}),t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t("svg",i,[t("path",{attrs:{d:e}})])])},renderSvgIconComponent(e,t){const i={class:{"v-icon__component":!0}},n=this.getSize();n&&(i.style={fontSize:n,height:n,width:n}),this.applyColors(i);const r=e.component;return i.props=e.props,i.nativeOn=i.on,t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t(r,i)])}},render(e){const t=this.getIcon();return"string"===typeof t?d(t)?this.renderSvgIcon(t,e):this.renderFontIcon(t,e):this.renderSvgIconComponent(t,e)}});var p=c["default"].extend({name:"v-icon",$_wrapperFor:f,functional:!0,render(e,{data:t,children:i}){let n="";return t.domProps&&(n=t.domProps.textContent||t.domProps.innerHTML||n,delete t.domProps.textContent,delete t.domProps.innerHTML),e(f,t,n?[n]:i)}})},57889:function(e,t,i){"use strict";var n=i(69456);t.A=n.A},60980:function(e,t,i){"use strict";i.d(t,{A:function(){return f}});var n=i(46965),r=i(21325),o=i(3507),s=i(66960),a=(0,o.A)(r.A).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},(0,s.$c)(this))}},render(e){return e("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),l=a,c=i(53661),u=i(64961),h=i(65604);const d="undefined"!==typeof window&&"IntersectionObserver"in window;var f=(0,o.A)(l,c.A).extend({name:"v-img",directives:{intersect:n.A},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const e=[],t=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&e.push(`linear-gradient(${this.gradient})`),t&&e.push(`url("${t}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:e.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(e,t,i){if(!d||i||this.eager){if(this.normalisedSrc.lazySrc){const e=new Image;e.src=this.normalisedSrc.lazySrc,this.pollForSize(e,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const e=new Image;this.image=e,e.onload=()=>{e.decode?e.decode().catch((e=>{(0,h.OP)(`Failed to decode image, trying to render anyway\n\nsrc: ${this.normalisedSrc.src}`+(e.message?`\nOriginal error: ${e.message}`:""),this)})).then(this.onLoad):this.onLoad()},e.onerror=this.onError,this.hasError=!1,this.sizes&&(e.sizes=this.sizes),this.normalisedSrc.srcset&&(e.srcset=this.normalisedSrc.srcset),e.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(e),this.getSrc()},pollForSize(e,t=100){const i=()=>{const{naturalHeight:n,naturalWidth:r}=e;n||r?(this.naturalWidth=r,this.calculatedAspectRatio=r/n):e.complete||!this.isLoading||this.hasError||null==t||setTimeout(i,t)};i()},genContent(){const e=l.options.methods.genContent.call(this);return this.naturalWidth&&this._b(e.data,"div",{style:{width:`${this.naturalWidth}px`}}),e},__genPlaceholder(){const e=(0,s.$c)(this,"placeholder");if(e){const t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},e)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render(e){const t=l.options.render.call(this,e),i=(0,u.Ay)(t.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:d?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return t.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],e(t.tag,i,t.children)}})},73960:function(e,t,i){"use strict";i.d(t,{A:function(){return v}});var n=i(57889),r=i(97184),o=i(68767),s=i(53661),a=i(3507),l=i(66960),c=(0,a.A)(o.A,s.A).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(e,t){return this.$createElement("div",{staticClass:"v-messages__message",key:t},(0,l.$c)(this,"default",{message:e,key:t})||[e])}},render(e){return e("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),u=c,h=i(54765),d=i(37863),f=i(64961);const p=(0,a.A)(h.A,d.A);var g=p.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hideSpinButtons:Boolean,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,"v-input--hide-spin-buttons":this.hideSpinButtons,...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(e){this.lazyValue=e,this.$emit(this.$_modelEvent,e)}},isDirty(){return!!this.lazyValue},isLabelActive(){return this.isDirty},messagesToDisplay(){return this.hasHint?[this.hint]:this.hasMessages?this.validations.map((e=>{if("string"===typeof e)return e;const t=e(this.internalValue);return"string"===typeof t?t:""})).filter((e=>""!==e)):[]},showDetails(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value(e){this.lazyValue=e}},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",attrs:{title:this.attrs$.title}},[this.genInputSlot(),this.genMessages()])},genDefaultSlot(){return[this.genLabel(),(0,l.$c)(this)]},genIcon(e,t,i={}){var r;const o=this[`${e}Icon`],s=`click:${(0,l.kW)(e)}`,a=!(!this.listeners$[s]&&!t),c={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendOuter:"appendAction",clear:"clear"}[e],u=a&&c?this.$vuetify.lang.t(`$vuetify.input.${c}`,null!==(r=this.label)&&void 0!==r?r:""):void 0,h=(0,f.Ay)({attrs:{"aria-label":u,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light,tabindex:"clear"===e?-1:void 0},on:a?{click:e=>{e.preventDefault(),e.stopPropagation(),this.$emit(s,e),t&&t(e)},mouseup:e=>{e.preventDefault(),e.stopPropagation()}}:void 0},i);return this.$createElement("div",{staticClass:"v-input__icon",class:e?`v-input__icon--${(0,l.kW)(e)}`:void 0},[this.$createElement(n.A,h,o)])},genInputSlot(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:(0,l.Dg)(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel(){return this.hasLabel?this.$createElement(r.A,{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},(0,l.$c)(this,"label")||this.label):null},genMessages(){return this.showDetails?this.$createElement(u,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:e=>(0,l.$c)(this,"message",e)}}):null},genSlot(e,t,i){if(!i.length)return null;const n=`${e}-${t}`;return this.$createElement("div",{staticClass:`v-input__${n}`,ref:n},i)},genPrependSlot(){const e=[];return this.$slots.prepend?e.push(this.$slots.prepend):this.prependIcon&&e.push(this.genIcon("prepend")),this.genSlot("prepend","outer",e)},genAppendSlot(){const e=[];return this.$slots.append?e.push(this.$slots.append):this.appendIcon&&e.push(this.genIcon("append")),this.genSlot("append","outer",e)},onClick(e){this.$emit("click",e)},onMouseDown(e){this.hasMouseDown=!0,this.$emit("mousedown",e)},onMouseUp(e){this.hasMouseDown=!1,this.$emit("mouseup",e)}},render(e){return e("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}}),v=g},97184:function(e,t,i){"use strict";i.d(t,{A:function(){return c}});var n=i(68767),r=i(53661),o=i(3507),s=i(66960),a=i(64961),l=(0,o.A)(r.A).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(e,t){const{children:i,listeners:o,props:l,data:c}=t,u=(0,a.Ay)({staticClass:"v-label",class:{"v-label--active":l.value,"v-label--is-disabled":l.disabled,...(0,r.H)(t)},attrs:{for:l.for,"aria-hidden":!l.for},on:o,style:{left:(0,s.Dg)(l.left),right:(0,s.Dg)(l.right),position:l.absolute?"absolute":"relative"},ref:"label"},c);return e("label",n.A.options.methods.setTextColor(l.focused&&l.color,u),i)}}),c=l},72987:function(e,t,i){"use strict";i.d(t,{A:function(){return o}});var n=i(13858),r=i(66960),o=n.A.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{...n.A.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(e){this.groups.push(e)},unregister(e){const t=this.groups.findIndex((t=>t._uid===e._uid));t>-1&&this.groups.splice(t,1)},listClick(e){if(!this.expand)for(const t of this.groups)t.toggle(e)}},render(e){const t={staticClass:"v-list",class:this.classes,style:this.styles,attrs:{role:this.isInNav||this.isInMenu?void 0:"list",...this.attrs$},on:this.listeners$};return e(this.tag,this.setBackgroundColor(this.color,t),(0,r.$c)(this))}})},81075:function(e,t,i){"use strict";i.d(t,{A:function(){return f}});var n=i(68767),r=i(78010),o=i(74387),s=i(53661),a=i(39748),l=i(91723),c=i(66960),u=i(65604),h=i(3507);const d=(0,h.A)(n.A,r.A,s.A,(0,o.P)("listItemGroup"),(0,a.P)("inputValue"));var f=d.extend().extend({name:"v-list-item",directives:{Ripple:l.A},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,...r.A.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(r.A.options.computed.isClickable.call(this)||this.listItemGroup)}},created(){this.$attrs.hasOwnProperty("avatar")&&(0,u.rq)("avatar",this)},methods:{click(e){e.detail&&this.$el.blur(),this.$emit("click",e),this.to||this.toggle()},genAttrs(){const e={"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1,...this.$attrs};return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(e.role="option",e["aria-selected"]=String(this.isActive)):this.isInMenu?(e.role=this.isClickable?"menuitem":void 0,e.id=e.id||`list-item-${this._uid}`):this.isInList&&(e.role="listitem")),e},toggle(){this.to&&void 0===this.inputValue&&(this.isActive=!this.isActive),this.$emit("change")}},render(e){let{tag:t,data:i}=this.generateRouteLink();i.attrs={...i.attrs,...this.genAttrs()},i[this.to?"nativeOn":"on"]={...i[this.to?"nativeOn":"on"],keydown:e=>{this.disabled||(e.keyCode===c.uP.enter&&this.click(e),this.$emit("keydown",e))}},this.inactive&&(t="div"),this.inactive&&this.to&&(i.on=i.nativeOn,delete i.nativeOn);const n=(0,c.$c)(this,"default",{active:this.isActive,toggle:this.toggle});return e(t,this.isActive?this.setTextColor(this.color,i):i,n)}})},66315:function(e,t,i){"use strict";var n=i(85471);t.A=n["default"].extend({name:"v-list-item-action",functional:!0,render(e,{data:t,children:i=[]}){t.staticClass=t.staticClass?`v-list-item__action ${t.staticClass}`:"v-list-item__action";const n=i.filter((e=>!1===e.isComment&&" "!==e.text));return n.length>1&&(t.staticClass+=" v-list-item__action--stack"),e("div",t,i)}})},62100:function(e,t,i){"use strict";var n=i(21823);t.A=n.A.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,...n.A.options.computed.classes.call(this),"v-avatar--tile":this.tile||this.horizontal}}},render(e){const t=n.A.options.render.call(this,e);return t.data=t.data||{},t.data.staticClass+=" v-list-item__avatar",t}})},60024:function(e,t,i){"use strict";var n=i(85471);t.A=n["default"].extend({name:"v-list-item-icon",functional:!0,render(e,{data:t,children:i}){return t.staticClass=`v-list-item__icon ${t.staticClass||""}`.trim(),e("div",t,i)}})},17537:function(e,t,i){"use strict";i.d(t,{pr:function(){return k},UZ:function(){return T}});var n=i(66960),r=i(72987),o=i(57889),s=i(81075),a=i(60024),l=i(54765),c=i(42e3),u=i(68767),h=i(39748),d=i(98652),f=i(91723),p=i(21906),g=i(3507);const v=(0,g.A)(l.A,c.A,u.A,(0,d.W)("list"),h.A);var m=v.extend().extend({name:"v-list-group",directives:{ripple:f.A},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],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(e){!this.subGroup&&e&&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(e){this.disabled||(this.isBooted=!0,this.$emit("click",e),this.$nextTick((()=>this.isActive=!this.isActive)))},genIcon(e){return this.$createElement(o.A,e)},genAppendIcon(){const e=!this.subGroup&&this.appendIcon,t=(0,n.$c)(this,"appendIcon");return e||t?this.$createElement(a.A,{staticClass:"v-list-group__header__append-icon"},[t||this.genIcon(e)]):null},genHeader(){return this.$createElement(s.A,{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(),(0,n.$c)(this,"activator"),this.genAppendIcon()])},genItems(){return this.showLazyContent((()=>[this.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:this.isActive}]},(0,n.$c)(this))]))},genPrependIcon(){const e=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon,t=(0,n.$c)(this,"prependIcon");return e||t?this.$createElement(a.A,{staticClass:"v-list-group__header__prepend-icon"},[t||this.genIcon(e)]):null},onRouteChange(e){if(!this.group)return;const t=this.matchRoute(e.path);t&&this.isActive!==t&&this.list&&this.list.listClick(this._uid),this.isActive=t},toggle(e){const t=this._uid===e;t&&(this.isBooted=!0),this.$nextTick((()=>this.isActive=t))},matchRoute(e){return null!==e.match(this.group)}},render(e){return e("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),e(p.Qo,this.genItems())])}}),y=i(45088),_=i(34464),x=i(53661),b=i(65604);const w=(0,g.A)(y.A,_.A,x.A).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},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(((e,t)=>this.toggleMethod(this.getValue(e,t))))},selectedValues(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return e=>this.valueComparator(this.internalValue,e);const e=this.internalValue;return Array.isArray(e)?t=>e.some((e=>this.valueComparator(e,t))):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&(0,b.OP)("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(e,t){return void 0===e.value?t:e.value},onClick(e){this.updateInternalValue(this.getValue(e,this.items.indexOf(e)))},register(e){const t=this.items.push(e)-1;e.$on("change",(()=>this.onClick(e))),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(e,t)},unregister(e){if(this._isDestroyed)return;const t=this.items.indexOf(e),i=this.getValue(e,t);this.items.splice(t,1);const n=this.selectedValues.indexOf(i);if(!(n<0)){if(!this.mandatory)return this.updateInternalValue(i);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter((e=>e!==i)):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(e,t){const i=this.getValue(e,t);e.isActive=this.toggleMethod(i)},updateItemsState(){this.$nextTick((()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)}))},updateInternalValue(e){this.multiple?this.updateMultiple(e):this.updateSingle(e)},updateMandatory(e){if(!this.items.length)return;const t=this.items.slice();e&&t.reverse();const i=t.find((e=>!e.disabled));if(!i)return;const n=this.items.indexOf(i);this.updateInternalValue(this.getValue(i,n))},updateMultiple(e){const t=Array.isArray(this.internalValue)?this.internalValue:[],i=t.slice(),n=i.findIndex((t=>this.valueComparator(t,e)));this.mandatory&&n>-1&&i.length-1<1||null!=this.max&&n<0&&i.length+1>this.max||(n>-1?i.splice(n,1):i.push(e),this.internalValue=i)},updateSingle(e){const t=this.valueComparator(this.internalValue,e);this.mandatory&&t||(this.internalValue=t?void 0:e)}},render(e){return e(this.tag,this.genData(),(0,n.$c)(this))}});w.extend({name:"v-item-group",provide(){return{itemGroup:this}}});var S=(0,g.A)(w,u.A).extend({name:"v-list-item-group",provide(){return{isInGroup:!0,listItemGroup:this}},computed:{classes(){return{...w.options.computed.classes.call(this),"v-list-item-group":!0}}},methods:{genData(){return this.setTextColor(this.color,{...w.options.methods.genData.call(this),attrs:{role:"listbox"}})}}}),C=i(66315),A=i(62100);const M=(0,n.Gn)("v-list-item__action-text","span"),k=(0,n.Gn)("v-list-item__content","div"),T=(0,n.Gn)("v-list-item__title","div"),I=(0,n.Gn)("v-list-item__subtitle","div");r.A,s.A,C.A,A.A,a.A},17954:function(e,t,i){"use strict";i.d(t,{A:function(){return o}});var n=i(86543),r=i(66960),o=n.A.extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles(){const{bar:e,top:t,right:i,footer:n,insetFooter:r,bottom:o,left:s}=this.$vuetify.application;return{paddingTop:`${t+e}px`,paddingRight:`${i}px`,paddingBottom:`${n+r+o}px`,paddingLeft:`${s}px`}}},render(e){const t={staticClass:"v-main",style:this.styles,ref:"main"};return e(this.tag,t,[e("div",{staticClass:"v-main__wrap"},(0,r.$c)(this))])}})},95464:function(e,t,i){"use strict";i.d(t,{A:function(){return y}});var n=i(60980),r=i(49923),o=i(3507);function s(e,t=[]){return(0,o.A)((0,r.P)(["absolute","fixed"])).extend({name:"applicationable",props:{app:Boolean},computed:{applicationProperty(){return e}},watch:{app(e,t){t?this.removeApplication(!0):this.callUpdate()},applicationProperty(e,t){this.$vuetify.application.unregister(this._uid,t)}},activated(){this.callUpdate()},created(){for(let e=0,i=t.length;e<i;e++)this.$watch(t[e],this.callUpdate);this.callUpdate()},mounted(){this.callUpdate()},deactivated(){this.removeApplication()},destroyed(){this.removeApplication()},methods:{callUpdate(){this.app&&this.$vuetify.application.register(this._uid,this.applicationProperty,this.updateApplication())},removeApplication(e=!1){(e||this.app)&&this.$vuetify.application.unregister(this._uid,this.applicationProperty)},updateApplication:()=>0}})}var a=i(68767),l=i(79623),c=i(90806),u=i(9499),h=i(86543),d=i(53661),f=i(48734),p=i(42136),g=i(70499),v=i(66960);const m=(0,o.A)(s("left",["isActive","isMobile","miniVariant","expandOnHover","permanent","right","temporary","width"]),a.A,l.A,c.A,u.A,h.A,d.A);var y=m.extend({name:"v-navigation-drawer",directives:{ClickOutside:f.A,Resize:p.A,Touch:g.A},provide(){return{isInNav:"nav"===this.tag}},props:{bottom:Boolean,clipped:Boolean,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,height:{type:[Number,String],default(){return this.app?"100vh":"100%"}},miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:56},permanent:Boolean,right:Boolean,src:{type:[String,Object],default:""},stateless:Boolean,tag:{type:String,default(){return this.app?"nav":"aside"}},temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},value:null},data:()=>({isMouseover:!1,touchArea:{left:0,right:0},stackMinZIndex:6}),computed:{applicationProperty(){return this.right?"right":"left"},classes(){return{"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--bottom":this.bottom,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--is-mouseover":this.isMouseover,"v-navigation-drawer--mini-variant":this.isMiniVariant,"v-navigation-drawer--custom-mini-variant":56!==Number(this.miniVariantWidth),"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--open-on-hover":this.expandOnHover,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary,...this.themeClasses}},computedMaxHeight(){if(!this.hasApp)return null;const e=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?e+this.$vuetify.application.top:e},computedTop(){if(!this.hasApp)return 0;let e=this.$vuetify.application.bar;return e+=this.clipped?this.$vuetify.application.top:0,e},computedTransform(){return this.isActive?0:this.isBottom||this.right?100:-100},computedWidth(){return this.isMiniVariant?this.miniVariantWidth:this.width},hasApp(){return this.app&&!this.isMobile&&!this.temporary},isBottom(){return this.bottom&&this.isMobile},isMiniVariant(){return!this.expandOnHover&&this.miniVariant||this.expandOnHover&&!this.isMouseover},isMobile(){return!this.stateless&&!this.permanent&&c.A.options.computed.isMobile.call(this)},reactsToClick(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile(){return this.app&&!this.disableResizeWatcher&&!this.permanent&&!this.stateless&&!this.temporary},reactsToResize(){return!this.disableResizeWatcher&&!this.stateless},reactsToRoute(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},showOverlay(){return!this.hideOverlay&&this.isActive&&(this.isMobile||this.temporary)},styles(){const e=this.isBottom?"translateY":"translateX";return{height:(0,v.Dg)(this.height),top:this.isBottom?"auto":(0,v.Dg)(this.computedTop),maxHeight:null!=this.computedMaxHeight?`calc(100% - ${(0,v.Dg)(this.computedMaxHeight)})`:void 0,transform:`${e}(${(0,v.Dg)(this.computedTransform,"%")})`,width:(0,v.Dg)(this.computedWidth)}}},watch:{$route:"onRouteChange",isActive(e){this.$emit("input",e)},isMobile(e,t){!e&&this.isActive&&!this.temporary&&this.removeOverlay(),null!=t&&this.reactsToResize&&this.reactsToMobile&&(this.isActive=!e)},permanent(e){e&&(this.isActive=!0)},showOverlay(e){e?this.genOverlay():this.removeOverlay()},value(e){this.permanent||(null!=e?e!==this.isActive&&(this.isActive=e):this.init())},expandOnHover:"updateMiniVariant",isMouseover(e){this.updateMiniVariant(!e)}},beforeMount(){this.init()},methods:{calculateTouchArea(){const e=this.$el.parentNode;if(!e)return;const t=e.getBoundingClientRect();this.touchArea={left:t.left+50,right:t.right-50}},closeConditional(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genAppend(){return this.genPosition("append")},genBackground(){const e={height:"100%",width:"100%",src:this.src},t=this.$scopedSlots.img?this.$scopedSlots.img(e):this.$createElement(n.A,{props:e});return this.$createElement("div",{staticClass:"v-navigation-drawer__image"},[t])},genDirectives(){const e=[{name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return this.touchless||this.stateless||e.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),e},genListeners(){const e={mouseenter:()=>this.isMouseover=!0,mouseleave:()=>this.isMouseover=!1,transitionend:e=>{if(e.target!==e.currentTarget)return;this.$emit("transitionend",e);const t=document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}};return this.miniVariant&&(e.click=()=>this.$emit("update:mini-variant",!1)),e},genPosition(e){const t=(0,v.$c)(this,e);return t?this.$createElement("div",{staticClass:`v-navigation-drawer__${e}`},t):t},genPrepend(){return this.genPosition("prepend")},genContent(){return this.$createElement("div",{staticClass:"v-navigation-drawer__content"},(0,v.$c)(this))},genBorder(){return this.$createElement("div",{staticClass:"v-navigation-drawer__border"})},init(){this.permanent?this.isActive=!0:this.stateless||null!=this.value?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},onRouteChange(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},swipeLeft(e){this.isActive&&this.right||(this.calculateTouchArea(),Math.abs(e.touchendX-e.touchstartX)<100||(this.right&&e.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight(e){this.isActive&&!this.right||(this.calculateTouchArea(),Math.abs(e.touchendX-e.touchstartX)<100||(!this.right&&e.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;const e=Number(this.miniVariant?this.miniVariantWidth:this.width);return isNaN(e)?this.$el.clientWidth:e},updateMiniVariant(e){this.expandOnHover&&this.miniVariant!==e&&this.$emit("update:mini-variant",e)}},render(e){const t=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||(0,v.$c)(this,"img"))&&t.unshift(this.genBackground()),e(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),t)}})},12585:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});var n=i(46965),r=i(68767),o=i(66960),s=r.A.extend({name:"v-progress-circular",directives:{intersect:n.A},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,isVisible:!0}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--visible":this.isVisible,"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:(0,o.Dg)(this.calculatedSize),width:(0,o.Dg)(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(e,t){return this.$createElement("circle",{class:`v-progress-circular__${e}`,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":t}})},genSvg(){const e=[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}`}},e)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},(0,o.$c)(this))},onObserve(e,t,i){this.isVisible=i}},render(e){return e("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,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})},13858:function(e,t,i){"use strict";i.d(t,{A:function(){return u}});var n=i(54765),r=i(68767),o=i(45083),s=i(21325),a=i(6256),l=i(53661),c=i(3507),u=(0,c.A)(n.A,r.A,o.A,s.A,a.A,l.A).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(e){const t={class:this.classes,style:this.styles,on:this.listeners$};return e(this.tag,this.setBackgroundColor(this.color,t),this.$slots.default)}})},27495:function(e,t,i){"use strict";var n=i(13858);t.A=n.A},83406:function(e,t,i){"use strict";i.d(t,{A:function(){return _}});i(8245);var n=i(73960),r=i(53661),o=i(3507),s=(0,o.A)(r.A).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render(e,t){const{props:i}=t,n=parseInt(i.max,10),o=parseInt(i.value,10),s=n?`${o} / ${n}`:String(i.value),a=n&&o>n;return e("div",{staticClass:"v-counter",class:{"error--text":a,...(0,r.H)(t)}},s)}}),a=s,l=i(97184),c=i(65533),u=i(37930),h=i(37863),d=i(42136),f=i(91723),p=i(94845),g=i(66960),v=i(65604);const m=(0,o.A)(n.A,(0,c.A)({onVisible:["onResize","tryAutofocus"]}),u.A),y=["color","file","time","date","datetime-local","week","month"];var _=m.extend().extend({name:"v-text-field",directives:{resize:d.A,ripple:f.A},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,persistentPlaceholder:Boolean,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{...n.A.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 e=h.A.options.computed.computedColor.call(this);return this.soloInverted&&this.isFocused?this.color||"primary":e},computedCounterValue(){return"function"===typeof this.counterValue?this.counterValue(this.internalValue):[...(this.internalValue||"").toString()].length},hasCounter(){return!1!==this.counter&&null!=this.counter},hasDetails(){return n.A.options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get(){return this.lazyValue},set(e){this.lazyValue=e,this.$emit("input",this.lazyValue)}},isDirty(){var e;return(null===(e=this.lazyValue)||void 0===e?void 0:e.toString().length)>0||this.badInput},isEnclosed(){return this.filled||this.isSolo||this.outlined},isLabelActive(){return this.isDirty||y.includes(this.type)},isSingle(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo(){return this.solo||this.soloInverted},labelPosition(){let e=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(e-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:e,right:"auto"}:{left:"auto",right:e}},showLabel(){return this.hasLabel&&!(this.isSingle&&this.labelValue)},labelValue(){return this.isFocused||this.isLabelActive||this.persistentPlaceholder}},watch:{outlined:"setLabelWidth",label(){this.$nextTick(this.setLabelWidth)},prefix(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value(e){this.lazyValue=e}},created(){this.$attrs.hasOwnProperty("box")&&(0,v.q4)("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&(0,v.q4)("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&(0,v.OP)("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,requestAnimationFrame((()=>{this.isIntersecting||this.onResize()}))}))},methods:{focus(){this.onFocus()},blur(e){window.requestAnimationFrame((()=>{this.$refs.input&&this.$refs.input.blur()}))},clearableCallback(){this.$refs.input&&this.$refs.input.focus(),this.$nextTick((()=>this.internalValue=null))},genAppendSlot(){const e=[];return this.$slots["append-outer"]?e.push(this.$slots["append-outer"]):this.appendOuterIcon&&e.push(this.genIcon("appendOuter")),this.genSlot("append","outer",e)},genPrependInnerSlot(){const e=[];return this.$slots["prepend-inner"]?e.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&e.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",e)},genIconSlot(){const e=[];return this.$slots.append?e.push(this.$slots.append):this.appendIcon&&e.push(this.genIcon("append")),this.genSlot("append","inner",e)},genInputSlot(){const e=n.A.options.methods.genInputSlot.call(this),t=this.genPrependInnerSlot();return t&&(e.children=e.children||[],e.children.unshift(t)),e},genClearIcon(){return this.clearable?this.isDirty?this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback)]):this.genSlot("append","inner",[this.$createElement("div")]):null},genCounter(){var e,t,i;if(!this.hasCounter)return null;const n=!0===this.counter?this.attrs$.maxlength:this.counter,r={dark:this.dark,light:this.light,max:n,value:this.computedCounterValue};return null!==(i=null===(t=(e=this.$scopedSlots).counter)||void 0===t?void 0:t.call(e,{props:r}))&&void 0!==i?i:this.$createElement(a,{props:r})},genControl(){return n.A.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 e={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(l.A,e,(0,g.$c)(this,"label")||this.label)},genLegend(){const e=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,t=this.$createElement("span",{domProps:{innerHTML:"​"},staticClass:"notranslate"});return this.$createElement("legend",{style:{width:this.isSingle?void 0:(0,g.Dg)(e)}},[t])},genInput(){const e=Object.assign({},this.listeners$);delete e.change;const{title:t,...i}=this.attrs$;return this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:{...i,autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.persistentPlaceholder||this.isFocused||!this.hasLabel?this.placeholder:void 0,readonly:this.isReadonly,type:this.type},on:Object.assign(e,{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 e=n.A.options.methods.genMessages.call(this),t=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[e,t])},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(e){return this.$createElement("div",{class:`v-text-field__${e}`,ref:e},this[e])},onBlur(e){this.isFocused=!1,e&&this.$nextTick((()=>this.$emit("blur",e)))},onClick(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus(e){if(!this.$refs.input)return;const t=(0,p.b)(this.$el);return t?t.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,e&&this.$emit("focus",e))):void 0},onInput(e){const t=e.target;this.internalValue=t.value,this.badInput=t.validity&&t.validity.badInput},onKeyDown(e){e.keyCode===g.uP.enter&&this.lazyValue!==this.initialValue&&(this.initialValue=this.lazyValue,this.$emit("change",this.initialValue)),this.$emit("keydown",e)},onMouseDown(e){e.target!==this.$refs.input&&(e.preventDefault(),e.stopPropagation()),n.A.options.methods.onMouseDown.call(this,e)},onMouseUp(e){this.hasMouseDown&&this.focus(),n.A.options.methods.onMouseUp.call(this,e)},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(){if(!this.autofocus||"undefined"===typeof document||!this.$refs.input)return!1;const e=(0,p.b)(this.$el);return!(!e||e.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue(e){this.hasColor=e,e?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}})},97043:function(e,t,i){"use strict";i.d(t,{A:function(){return a}});var n=i(13858),r=i(60980),o=i(66960),s=i(65604),a=n.A.extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:()=>({isExtended:!1}),computed:{computedHeight(){const e=this.computedContentHeight;if(!this.isExtended)return e;const t=parseInt(this.extensionHeight);return this.isCollapsed?e:e+(isNaN(t)?0:t)},computedContentHeight(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes(){return{...n.A.options.computed.classes.call(this),"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent}},isCollapsed(){return this.collapse},isProminent(){return this.prominent},styles(){return{...this.measurableStyles,height:(0,o.Dg)(this.computedHeight)}}},created(){const e=[["app","<v-app-bar app>"],["manual-scroll",'<v-app-bar :value="false">'],["clipped-left","<v-app-bar clipped-left>"],["clipped-right","<v-app-bar clipped-right>"],["inverted-scroll","<v-app-bar inverted-scroll>"],["scroll-off-screen","<v-app-bar scroll-off-screen>"],["scroll-target","<v-app-bar scroll-target>"],["scroll-threshold","<v-app-bar scroll-threshold>"],["card","<v-app-bar flat>"]];e.forEach((([e,t])=>{this.$attrs.hasOwnProperty(e)&&(0,s.q4)(e,t,this)}))},methods:{genBackground(){const e={height:(0,o.Dg)(this.computedHeight),src:this.src},t=this.$scopedSlots.img?this.$scopedSlots.img({props:e}):this.$createElement(r.A,{props:e});return this.$createElement("div",{staticClass:"v-toolbar__image"},[t])},genContent(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:(0,o.Dg)(this.computedContentHeight)}},(0,o.$c)(this))},genExtension(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:(0,o.Dg)(this.extensionHeight)}},(0,o.$c)(this,"extension"))}},render(e){this.isExtended=this.extended||!!this.$scopedSlots.extension;const t=[this.genContent()],i=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&t.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&t.unshift(this.genBackground()),e(this.tag,i,t)}})},71735:function(e,t,i){"use strict";i.d(t,{MZ:function(){return s},sw:function(){return o}});var n=i(97043),r=i(66960);const o=(0,r.Gn)("v-toolbar__title"),s=(0,r.Gn)("v-toolbar__items");n.A},21906:function(e,t,i){"use strict";i.d(t,{Qo:function(){return p},SM:function(){return g},Z:function(){return h},mM:function(){return d},vt:function(){return f},P1:function(){return u},Dk:function(){return c}});var n=i(64961);function r(e=[],...t){return Array().concat(e,...t)}function o(e,t="top center 0",i){return{name:e,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:i},origin:{type:String,default:t}},render(t,i){const o="transition"+(i.props.group?"-group":""),s={props:{name:e,mode:i.props.mode},on:{beforeEnter(e){e.style.transformOrigin=i.props.origin,e.style.webkitTransformOrigin=i.props.origin}}};return i.props.leaveAbsolute&&(s.on.leave=r(s.on.leave,(e=>{const{offsetTop:t,offsetLeft:i,offsetWidth:n,offsetHeight:r}=e;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=t+"px",e.style.left=i+"px",e.style.width=n+"px",e.style.height=r+"px"})),s.on.afterLeave=r(s.on.afterLeave,(e=>{if(e&&e._transitionInitialStyles){const{position:t,top:i,left:n,width:r,height:o}=e._transitionInitialStyles;delete e._transitionInitialStyles,e.style.position=t||"",e.style.top=i||"",e.style.left=n||"",e.style.width=r||"",e.style.height=o||""}}))),i.props.hideOnLeave&&(s.on.leave=r(s.on.leave,(e=>{e.style.setProperty("display","none","important")}))),t(o,(0,n.Ay)(i.data,s),i.children)}}}function s(e,t,i="in-out"){return{name:e,functional:!0,props:{mode:{type:String,default:i}},render(i,r){return i("transition",(0,n.Ay)(r.data,{props:{name:e},on:t}),r.children)}}}var a=i(66960);function l(e="",t=!1){const i=t?"width":"height",n=`offset${(0,a.Zb)(i)}`;return{beforeEnter(e){e._parent=e.parentNode,e._initialStyle={transition:e.style.transition,overflow:e.style.overflow,[i]:e.style[i]}},enter(t){const r=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";const o=`${t[n]}px`;t.style[i]="0",t.offsetHeight,t.style.transition=r.transition,e&&t._parent&&t._parent.classList.add(e),requestAnimationFrame((()=>{t.style[i]=o}))},afterEnter:o,enterCancelled:o,leave(e){e._initialStyle={transition:"",overflow:e.style.overflow,[i]:e.style[i]},e.style.overflow="hidden",e.style[i]=`${e[n]}px`,e.offsetHeight,requestAnimationFrame((()=>e.style[i]="0"))},afterLeave:r,leaveCancelled:r};function r(t){e&&t._parent&&t._parent.classList.remove(e),o(t)}function o(e){const t=e._initialStyle[i];e.style.overflow=e._initialStyle.overflow,null!=t&&(e.style[i]=t),delete e._initialStyle}}o("carousel-transition"),o("carousel-reverse-transition");const c=o("tab-transition"),u=o("tab-reverse-transition"),h=(o("menu-transition"),o("fab-transition","center center","out-in")),d=(o("dialog-transition"),o("dialog-bottom-transition"),o("dialog-top-transition"),o("fade-transition")),f=(o("scale-transition"),o("scroll-x-transition"),o("scroll-x-reverse-transition"),o("scroll-y-transition"),o("scroll-y-reverse-transition"),o("slide-x-transition")),p=(o("slide-x-reverse-transition"),o("slide-y-transition"),o("slide-y-reverse-transition"),s("expand-transition",l())),g=s("expand-x-transition",l("",!0))},48734:function(e,t,i){"use strict";var n=i(94845);function r(){return!0}function o(e,t,i){if(!e||!1===s(e,i))return!1;const r=(0,n.b)(t);if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&r.host===e.target)return!1;const o=("object"===typeof i.value&&i.value.include||(()=>[]))();return o.push(t),!o.some((t=>t.contains(e.target)))}function s(e,t){const i="object"===typeof t.value&&t.value.closeConditional||r;return i(e)}function a(e,t,i){const n="function"===typeof i.value?i.value:i.value.handler;t._clickOutside.lastMousedownWasOutside&&o(e,t,i)&&setTimeout((()=>{s(e,i)&&n&&n(e)}),0)}function l(e,t){const i=(0,n.b)(e);t(document),"undefined"!==typeof ShadowRoot&&i instanceof ShadowRoot&&t(i)}const c={inserted(e,t,i){const n=i=>a(i,e,t),r=i=>{e._clickOutside.lastMousedownWasOutside=o(i,e,t)};l(e,(e=>{e.addEventListener("click",n,!0),e.addEventListener("mousedown",r,!0)})),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!0}),e._clickOutside[i.context._uid]={onClick:n,onMousedown:r}},unbind(e,t,i){e._clickOutside&&(l(e,(t=>{var n;if(!t||!(null===(n=e._clickOutside)||void 0===n?void 0:n[i.context._uid]))return;const{onClick:r,onMousedown:o}=e._clickOutside[i.context._uid];t.removeEventListener("click",r,!0),t.removeEventListener("mousedown",o,!0)})),delete e._clickOutside[i.context._uid])}};t.A=c},46965:function(e,t,i){"use strict";function n(e,t,i){if("undefined"===typeof window||!("IntersectionObserver"in window))return;const n=t.modifiers||{},o=t.value,{handler:s,options:a}="object"===typeof o?o:{handler:o,options:{}},l=new IntersectionObserver(((o=[],a)=>{var l;const c=null===(l=e._observe)||void 0===l?void 0:l[i.context._uid];if(!c)return;const u=o.some((e=>e.isIntersecting));!s||n.quiet&&!c.init||n.once&&!u&&!c.init||s(o,a,u),u&&n.once?r(e,t,i):c.init=!0}),a);e._observe=Object(e._observe),e._observe[i.context._uid]={init:!1,observer:l},l.observe(e)}function r(e,t,i){var n;const r=null===(n=e._observe)||void 0===n?void 0:n[i.context._uid];r&&(r.observer.unobserve(e),delete e._observe[i.context._uid])}const o={inserted:n,unbind:r};t.A=o},42136:function(e,t,i){"use strict";function n(e,t,i){const n=t.value,r=t.options||{passive:!0};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[i.context._uid]={callback:n,options:r},t.modifiers&&t.modifiers.quiet||n()}function r(e,t,i){var n;if(!(null===(n=e._onResize)||void 0===n?void 0:n[i.context._uid]))return;const{callback:r,options:o}=e._onResize[i.context._uid];window.removeEventListener("resize",r,o),delete e._onResize[i.context._uid]}const o={inserted:n,unbind:r};t.A=o},91723:function(e,t,i){"use strict";i.d(t,{A:function(){return C}});var n=i(66960);const r=80;function o(e,t){e.style.transform=t,e.style.webkitTransform=t}function s(e){return"TouchEvent"===e.constructor.name}function a(e){return"KeyboardEvent"===e.constructor.name}const l=(e,t,i={})=>{let n=0,r=0;if(!a(e)){const i=t.getBoundingClientRect(),o=s(e)?e.touches[e.touches.length-1]:e;n=o.clientX-i.left,r=o.clientY-i.top}let o=0,l=.3;t._ripple&&t._ripple.circle?(l=.15,o=t.clientWidth/2,o=i.center?o:o+Math.sqrt((n-o)**2+(r-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const c=(t.clientWidth-2*o)/2+"px",u=(t.clientHeight-2*o)/2+"px",h=i.center?c:n-o+"px",d=i.center?u:r-o+"px";return{radius:o,scale:l,x:h,y:d,centerX:c,centerY:u}},c={show(e,t,i={}){if(!t._ripple||!t._ripple.enabled)return;const n=document.createElement("span"),r=document.createElement("span");n.appendChild(r),n.className="v-ripple__container",i.class&&(n.className+=` ${i.class}`);const{radius:s,scale:a,x:c,y:u,centerX:h,centerY:d}=l(e,t,i),f=2*s+"px";r.className="v-ripple__animation",r.style.width=f,r.style.height=f,t.appendChild(n);const p=window.getComputedStyle(t);p&&"static"===p.position&&(t.style.position="relative",t.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),o(r,`translate(${c}, ${u}) scale3d(${a},${a},${a})`),r.dataset.activated=String(performance.now()),setTimeout((()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),o(r,`translate(${h}, ${d}) scale3d(1,1,1)`)}),0)},hide(e){if(!e||!e._ripple||!e._ripple.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(0===t.length)return;const i=t[t.length-1];if(i.dataset.isHiding)return;i.dataset.isHiding="true";const n=performance.now()-Number(i.dataset.activated),r=Math.max(250-n,0);setTimeout((()=>{i.classList.remove("v-ripple__animation--in"),i.classList.add("v-ripple__animation--out"),setTimeout((()=>{var t;const n=e.getElementsByClassName("v-ripple__animation");1===n.length&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),(null===(t=i.parentNode)||void 0===t?void 0:t.parentNode)===e&&e.removeChild(i.parentNode)}),300)}),r)}};function u(e){return"undefined"===typeof e||!!e}function h(e){const t={},i=e.currentTarget;if(i&&i._ripple&&!i._ripple.touched&&!e.rippleStop){if(e.rippleStop=!0,s(e))i._ripple.touched=!0,i._ripple.isTouch=!0;else if(i._ripple.isTouch)return;if(t.center=i._ripple.centered||a(e),i._ripple.class&&(t.class=i._ripple.class),s(e)){if(i._ripple.showTimerCommit)return;i._ripple.showTimerCommit=()=>{c.show(e,i,t)},i._ripple.showTimer=window.setTimeout((()=>{i&&i._ripple&&i._ripple.showTimerCommit&&(i._ripple.showTimerCommit(),i._ripple.showTimerCommit=null)}),r)}else c.show(e,i,t)}}function d(e){const t=e.currentTarget;if(t&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),"touchend"===e.type&&t._ripple.showTimerCommit)return t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,void(t._ripple.showTimer=setTimeout((()=>{d(e)})));window.setTimeout((()=>{t._ripple&&(t._ripple.touched=!1)})),c.hide(t)}}function f(e){const t=e.currentTarget;t&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let p=!1;function g(e){p||e.keyCode!==n.uP.enter&&e.keyCode!==n.uP.space||(p=!0,h(e))}function v(e){p=!1,d(e)}function m(e){!0===p&&(p=!1,d(e))}function y(e,t,i){const n=u(t.value);n||c.hide(e),e._ripple=e._ripple||{},e._ripple.enabled=n;const r=t.value||{};r.center&&(e._ripple.centered=!0),r.class&&(e._ripple.class=t.value.class),r.circle&&(e._ripple.circle=r.circle),n&&!i?(e.addEventListener("touchstart",h,{passive:!0}),e.addEventListener("touchend",d,{passive:!0}),e.addEventListener("touchmove",f,{passive:!0}),e.addEventListener("touchcancel",d),e.addEventListener("mousedown",h),e.addEventListener("mouseup",d),e.addEventListener("mouseleave",d),e.addEventListener("keydown",g),e.addEventListener("keyup",v),e.addEventListener("blur",m),e.addEventListener("dragstart",d,{passive:!0})):!n&&i&&_(e)}function _(e){e.removeEventListener("mousedown",h),e.removeEventListener("touchstart",h),e.removeEventListener("touchend",d),e.removeEventListener("touchmove",f),e.removeEventListener("touchcancel",d),e.removeEventListener("mouseup",d),e.removeEventListener("mouseleave",d),e.removeEventListener("keydown",g),e.removeEventListener("keyup",v),e.removeEventListener("dragstart",d),e.removeEventListener("blur",m)}function x(e,t,i){y(e,t,!1)}function b(e){delete e._ripple,_(e)}function w(e,t){if(t.value===t.oldValue)return;const i=u(t.oldValue);y(e,t,i)}const S={bind:x,unbind:b,update:w};var C=S},70499:function(e,t,i){"use strict";var n=i(66960);const r=e=>{const{touchstartX:t,touchendX:i,touchstartY:n,touchendY:r}=e,o=.5,s=16;e.offsetX=i-t,e.offsetY=r-n,Math.abs(e.offsetY)<o*Math.abs(e.offsetX)&&(e.left&&i<t-s&&e.left(e),e.right&&i>t+s&&e.right(e)),Math.abs(e.offsetX)<o*Math.abs(e.offsetY)&&(e.up&&r<n-s&&e.up(e),e.down&&r>n+s&&e.down(e))};function o(e,t){const i=e.changedTouches[0];t.touchstartX=i.clientX,t.touchstartY=i.clientY,t.start&&t.start(Object.assign(e,t))}function s(e,t){const i=e.changedTouches[0];t.touchendX=i.clientX,t.touchendY=i.clientY,t.end&&t.end(Object.assign(e,t)),r(t)}function a(e,t){const i=e.changedTouches[0];t.touchmoveX=i.clientX,t.touchmoveY=i.clientY,t.move&&t.move(Object.assign(e,t))}function l(e){const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:e=>o(e,t),touchend:e=>s(e,t),touchmove:e=>a(e,t)}}function c(e,t,i){const r=t.value,o=r.parent?e.parentElement:e,s=r.options||{passive:!0};if(!o)return;const a=l(t.value);o._touchHandlers=Object(o._touchHandlers),o._touchHandlers[i.context._uid]=a,(0,n.HP)(a).forEach((e=>{o.addEventListener(e,a[e],s)}))}function u(e,t,i){const r=t.value.parent?e.parentElement:e;if(!r||!r._touchHandlers)return;const o=r._touchHandlers[i.context._uid];(0,n.HP)(o).forEach((e=>{r.removeEventListener(e,o[e])})),delete r._touchHandlers[i.context._uid]}const h={inserted:c,unbind:u};t.A=h},5453:function(e,t,i){"use strict";i.d(t,{A:function(){return ee}});var n=i(85471),r=i(65604);function o(e,t={}){if(o.installed)return;o.installed=!0,n["default"]!==e&&(0,r.yA)("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 i=t.components||{},s=t.directives||{};for(const n in s){const t=s[n];e.directive(n,t)}(function t(i){if(i){for(const n in i){const r=i[n];r&&!t(r.$_vuetify_subcomponents)&&e.component(n,r)}return!0}return!1})(i),e.$_vuetify_installed||(e.$_vuetify_installed=!0,e.mixin({beforeCreate(){const t=this.$options;t.vuetify?(t.vuetify.init(this,this.$ssrContext),this.$vuetify=e.observable(t.vuetify.framework)):this.$vuetify=t.parent&&t.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())}}))}var s={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"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},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}"}},loading:"Loading..."};const a={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:s},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"}}}};var l=i(66960),c=i(61609);class u extends c.k{constructor(e,t){super();const i=(0,l.D9)({},a),{userPreset:n}=t,{preset:o={},...s}=n;null!=o.preset&&(0,r.OP)("Global presets do not support the **preset** option, it can be safely omitted"),t.preset=(0,l.D9)((0,l.D9)(i,o),s)}}u.property="presets";class h extends c.k{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(e,t,i){this.application[t][e]=i,this.update(t)}unregister(e,t){null!=this.application[t][e]&&(delete this.application[t][e],this.update(t))}update(e){this[e]=Object.values(this.application[e]).reduce(((e,t)=>e+t),0)}}h.property="application";class d extends c.k{constructor(e){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:t,scrollBarWidth:i,thresholds:n}=e[d.property];this.mobileBreakpoint=t,this.scrollBarWidth=i,this.thresholds=n}init(){this.update(),"undefined"!==typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(e=!1){const t=e?0:this.getClientHeight(),i=e?0:this.getClientWidth(),n=i<this.thresholds.xs,r=i<this.thresholds.sm&&!n,o=i<this.thresholds.md-this.scrollBarWidth&&!(r||n),s=i<this.thresholds.lg-this.scrollBarWidth&&!(o||r||n),a=i>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=i,this.xs=n,this.sm=r,this.md=o,this.lg=s,this.xl=a,this.xsOnly=n,this.smOnly=r,this.smAndDown=(n||r)&&!(o||s||a),this.smAndUp=!n&&(r||o||s||a),this.mdOnly=o,this.mdAndDown=(n||r||o)&&!(s||a),this.mdAndUp=!(n||r)&&(o||s||a),this.lgOnly=s,this.lgAndDown=(n||r||o||s)&&!a,this.lgAndUp=!(n||r||o)&&(s||a),this.xlOnly=a,!0){case n:this.name="xs";break;case r:this.name="sm";break;case o:this.name="md";break;case s:this.name="lg";break;default:this.name="xl";break}if("number"===typeof this.mobileBreakpoint)return void(this.mobile=i<parseInt(this.mobileBreakpoint,10));const l={xs:0,sm:1,md:2,lg:3,xl:4},c=l[this.name],u=l[this.mobileBreakpoint];this.mobile=c<=u}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)}}d.property="breakpoint";var f=i(29683);const p={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:"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",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",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,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",warning:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"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",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 g=p;const v={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 m=v;const y={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 _=y;const x={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-circle",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 b=x;const w={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 S=w;function C(e,t){const i={};for(const n in t)i[n]={component:e,props:{icon:t[n].split(" fa-")}};return i}var A=C("font-awesome-icon",b),M=Object.freeze({mdiSvg:g,md:m,mdi:_,fa:b,fa4:S,faSvg:A});class k extends c.k{constructor(e){super();const{iconfont:t,values:i,component:n}=e[k.property];this.component=n,this.iconfont=t,this.values=(0,l.D9)(M[t],i)}}k.property="icons";const T="$vuetify.",I=Symbol("Lang fallback");function L(e,t,i=!1,n){const o=t.replace(T,"");let s=(0,l.no)(e,o,I);return s===I&&(i?((0,r.yA)(`Translation key "${o}" not found in fallback`),s=t):((0,r.OP)(`Translation key "${o}" not found, falling back to default`),s=L(n,t,!0,n))),s}class E extends c.k{constructor(e){super(),this.defaultLocale="en";const{current:t,locales:i,t:n}=e[E.property];this.current=t,this.locales=i,this.translator=n||this.defaultTranslator}currentLocale(e){const t=this.locales[this.current],i=this.locales[this.defaultLocale];return L(t,e,!1,i)}t(e,...t){return e.startsWith(T)?this.translator(e,...t):this.replace(e,t)}defaultTranslator(e,...t){return this.replace(this.currentLocale(e),t)}replace(e,t){return e.replace(/\{(\d+)\}/g,((e,i)=>String(t[+i])))}}E.property="lang";var D=i(63805);const O=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],P=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,R=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],B=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function N(e){const t=Array(3),i=P,n=O;for(let r=0;r<3;++r)t[r]=Math.round(255*(0,l.qE)(i(n[r][0]*e[0]+n[r][1]*e[1]+n[r][2]*e[2])));return(t[0]<<16)+(t[1]<<8)+(t[2]|0)}function z(e){const t=[0,0,0],i=B,n=R,r=i((e>>16&255)/255),o=i((e>>8&255)/255),s=i((255&e)/255);for(let a=0;a<3;++a)t[a]=n[a][0]*r+n[a][1]*o+n[a][2]*s;return t}const H=.20689655172413793,F=e=>e>H**3?Math.cbrt(e):e/(3*H**2)+4/29,V=e=>e>H?e**3:3*H**2*(e-4/29);function j(e){const t=F,i=t(e[1]);return[116*i-16,500*(t(e[0]/.95047)-i),200*(i-t(e[2]/1.08883))]}function $(e){const t=V,i=(e[0]+16)/116;return[.95047*t(i+e[1]/500),t(i),1.08883*t(i-e[2]/200)]}function W(e,t=!1,i=!0){const{anchor:n,...r}=e,o=Object.keys(r),s={};for(let a=0;a<o.length;++a){const n=o[a],r=e[n];null!=r&&(i?t?("base"===n||n.startsWith("lighten")||n.startsWith("darken"))&&(s[n]=(0,D.si)(r)):s[n]="object"===typeof r?W(r,!0,i):Y(n,(0,D.E8)(r)):s[n]={base:(0,D.y6)((0,D.E8)(r))})}return t||(s.anchor=n||s.base||s.primary.base),s}const G=(e,t)=>`\n.v-application .${e} {\n background-color: ${t} !important;\n border-color: ${t} !important;\n}\n.v-application .${e}--text {\n color: ${t} !important;\n caret-color: ${t} !important;\n}`,U=(e,t,i)=>{const[n,r]=t.split(/(\d)/,2);return`\n.v-application .${e}.${n}-${r} {\n background-color: ${i} !important;\n border-color: ${i} !important;\n}\n.v-application .${e}--text.text--${n}-${r} {\n color: ${i} !important;\n caret-color: ${i} !important;\n}`},q=(e,t="base")=>`--v-${e}-${t}`,Z=(e,t="base")=>`var(${q(e,t)})`;function X(e,t=!1){const{anchor:i,...n}=e,r=Object.keys(n);if(!r.length)return"";let o="",s="";const a=t?Z("anchor"):i;s+=`.v-application a { color: ${a}; }`,t&&(o+=` ${q("anchor")}: ${i};\n`);for(let c=0;c<r.length;++c){const i=r[c],n=e[i];s+=G(i,t?Z(i):n.base),t&&(o+=` ${q(i)}: ${n.base};\n`);const a=(0,l.HP)(n);for(let e=0;e<a.length;++e){const r=a[e],l=n[r];"base"!==r&&(s+=U(i,r,t?Z(i,r):l),t&&(o+=` ${q(i,r)}: ${l};\n`))}}return t&&(o=`:root {\n${o}}\n\n`),o+s}function Y(e,t){const i={base:(0,D.y6)(t)};for(let n=5;n>0;--n)i[`lighten${n}`]=(0,D.y6)(K(t,n));for(let n=1;n<=4;++n)i[`darken${n}`]=(0,D.y6)(J(t,n));return i}function K(e,t){const i=j(z(e));return i[0]=i[0]+10*t,N($(i))}function J(e,t){const i=j(z(e));return i[0]=i[0]-10*t,N($(i))}class Q extends c.k{constructor(e){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;const{dark:t,disable:i,options:n,themes:r}=e[Q.property];this.dark=Boolean(t),this.defaults=this.themes=r,this.options=n,i?this.disabled=!0:this.themes={dark:this.fillVariant(r.dark,!0),light:this.fillVariant(r.light,!1)}}set css(e){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=e)}set dark(e){const t=this.isDark;this.isDark=e,null!=t&&this.applyTheme()}get dark(){return Boolean(this.isDark)}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}setTheme(e,t){this.themes[e]=Object.assign(this.themes[e],t),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(e={},t){const i=this.themes[t?"dark":"light"];return Object.assign({},i,e)}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(e){if(this.vueMeta=e.$meta(),this.isVueMeta23)return void e.$nextTick((()=>{this.applyVueMeta23()}));const t="function"===typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",i=e.$options[t]||{};e.$options[t]=()=>{i.style=i.style||[];const e=i.style.find((e=>"vuetify-theme-stylesheet"===e.id));return e?e.cssText=this.generatedStyles:i.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),i}}applyVueMeta23(){const{set:e}=this.vueMeta.addApp("vuetify");e({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(e){const t=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";e.head=e.head||"",e.head+=`<style type="text/css" id="vuetify-theme-stylesheet"${t}>${this.generatedStyles}</style>`}initTheme(e){"undefined"!==typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",(()=>{const t=n["default"].observable({themes:this.themes});this.unwatch=e.$watch((()=>t.themes),(()=>this.applyTheme()),{deep:!0})})),this.applyTheme())}get currentTheme(){const e=this.dark?"dark":"light";return this.themes[e]}get generatedStyles(){const e=this.parsedTheme,t=this.options||{};let i;return null!=t.themeCache&&(i=t.themeCache.get(e),null!=i)||(i=X(e,t.customProperties),null!=t.minifyTheme&&(i=t.minifyTheme(i)),null!=t.themeCache&&t.themeCache.set(e,i)),i}get parsedTheme(){return W(this.currentTheme||{},void 0,(0,l.LJ)(this.options,["variations"],!0))}get isVueMeta23(){return"function"===typeof this.vueMeta.addApp}}Q.property="theme";class ee{constructor(e={}){this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=e,this.use(u),this.use(h),this.use(d),this.use(f.I),this.use(k),this.use(E),this.use(Q)}init(e,t){this.installed.forEach((i=>{const n=this.framework[i];n.framework=this.framework,n.init(e,t)})),this.framework.rtl=Boolean(this.preset.rtl)}use(e){const t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}ee.install=o,ee.installed=!1,ee.version="2.7.2",ee.config={silent:!1}},54765:function(e,t,i){"use strict";var n=i(85471);function r(e){return function(t,i){for(const n in i)Object.prototype.hasOwnProperty.call(t,n)||this.$delete(this.$data[e],n);for(const n in t)this.$set(this.$data[e],n,t[n])}}t.A=n["default"].extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",r("attrs$"),{immediate:!0}),this.$watch("$listeners",r("listeners$"),{immediate:!0})}})},42e3:function(e,t,i){"use strict";var n=i(65604),r=i(85471);t.A=r["default"].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&&(0,n.rq)("lazy",this)},methods:{showLazyContent(e){return this.hasContent&&e?e():[this.$createElement()]}}})},68767:function(e,t,i){"use strict";var n=i(85471),r=i(65604),o=i(63805);t.A=n["default"].extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(e,t={}){return"string"===typeof t.style?((0,r.yA)("style must be an object",this),t):"string"===typeof t.class?((0,r.yA)("class must be an object",this),t):((0,o.VP)(e)?t.style={...t.style,"background-color":`${e}`,"border-color":`${e}`}:e&&(t.class={...t.class,[e]:!0}),t)},setTextColor(e,t={}){if("string"===typeof t.style)return(0,r.yA)("style must be an object",this),t;if("string"===typeof t.class)return(0,r.yA)("class must be an object",this),t;if((0,o.VP)(e))t.style={...t.style,color:`${e}`,"caret-color":`${e}`};else if(e){const[i,n]=e.toString().trim().split(" ",2);t.class={...t.class,[i+"--text"]:!0},n&&(t.class["text--"+n]=!0)}return t}}})},45088:function(e,t,i){"use strict";var n=i(85471),r=i(66960);t.A=n["default"].extend({name:"comparable",props:{valueComparator:{type:Function,default:r.bD}}})},79623:function(e,t,i){"use strict";var n=i(3507);function r(e){const t=[];for(let i=0;i<e.length;i++){const n=e[i];n.isActive&&n.isDependent?t.push(n):t.push(...r(n.$children))}return t}t.A=(0,n.A)().extend({name:"dependent",data(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive(e){if(e)return;const t=this.getOpenDependents();for(let i=0;i<t.length;i++)t[i].isActive=!1}},methods:{getOpenDependents(){return this.closeDependents?r(this.$children):[]},getOpenDependentElements(){const e=[],t=this.getOpenDependents();for(let i=0;i<t.length;i++)e.push(...t[i].getClickableDependentElements());return e},getClickableDependentElements(){const e=[this.$el];return this.$refs.content&&e.push(this.$refs.content),this.overlay&&e.push(this.overlay.$el),e.push(...this.getOpenDependentElements()),e}}})},45083:function(e,t,i){"use strict";var n=i(85471);t.A=n["default"].extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){const e=this.computedElevation;return null==e||isNaN(parseInt(e))?{}:{[`elevation-${this.elevation}`]:!0}}}})},74387:function(e,t,i){"use strict";i.d(t,{P:function(){return r}});var n=i(98652);function r(e,t,i){return(0,n.W)(e,t,i).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[e])return this[e].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[e]&&this[e].register(this)},beforeDestroy(){this[e]&&this[e].unregister(this)},methods:{toggle(e){this.disabled&&e?e.preventDefault():this.$emit("change")}}})}r("itemGroup")},65533:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});var n=i(46965),r=i(65604),o=i(85471);function s(e){return o["default"].extend({name:"intersectable",data:()=>({isIntersecting:!1}),mounted(){n.A.inserted(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},destroyed(){n.A.unbind(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},methods:{onObserve(t,i,n){if(this.isIntersecting=n,n)for(let o=0,s=e.onVisible.length;o<s;o++){const t=this[e.onVisible[o]];"function"!==typeof t?(0,r.OP)(e.onVisible[o]+" method is not available on the instance but referenced in intersectable mixin options"):t()}}}})}},37930:function(e,t,i){"use strict";i.d(t,{A:function(){return g}});var n=i(85471),r=i(21906),o=i(46965),s=i(68767),a=i(49923),l=i(34464),c=i(53661),u=i(66960),h=i(3507);const d=(0,h.A)(s.A,(0,a.P)(["absolute","fixed","top","bottom"]),l.A,c.A);var f=d.extend({name:"v-progress-linear",directives:{intersect:o.A},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,isVisible:!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:(0,u.Dg)(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:(0,u.Dg)(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){const e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return{opacity:e,[this.isReversed?"right":"left"]:(0,u.Dg)(this.normalizedValue,"%"),width:(0,u.Dg)(Math.max(0,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,"v-progress-linear--visible":this.isVisible,...this.themeClasses}},computedTransition(){return this.indeterminate?r.mM:r.vt},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 e={};return this.active||(e.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(e.width=(0,u.Dg)(this.normalizedBuffer,"%")),e}},methods:{genContent(){const e=(0,u.$c)(this,"default",{value:this.internalLazyValue});return e?this.$createElement("div",{staticClass:"v-progress-linear__content"},e):null},genListeners(){const e=this.$listeners;return this.reactive&&(e.click=this.onClick),e},genProgressBar(e){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[e]:!0}}))},onClick(e){if(!this.reactive)return;const{width:t}=this.$el.getBoundingClientRect();this.internalValue=e.offsetX/t*100},onObserve(e,t,i){this.isVisible=i},normalize(e){return e<0?0:e>100?100:parseFloat(e)}},render(e){const t={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,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?(0,u.Dg)(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return e("div",t,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}}),p=f,g=n["default"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return!1===this.loading?null:(0,u.$c)(this,"progress")||this.$createElement(p,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},21325:function(e,t,i){"use strict";var n=i(66960),r=i(85471);t.A=r["default"].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 e={},t=(0,n.Dg)(this.height),i=(0,n.Dg)(this.minHeight),r=(0,n.Dg)(this.minWidth),o=(0,n.Dg)(this.maxHeight),s=(0,n.Dg)(this.maxWidth),a=(0,n.Dg)(this.width);return t&&(e.height=t),i&&(e.minHeight=i),r&&(e.minWidth=r),o&&(e.maxHeight=o),s&&(e.maxWidth=s),a&&(e.width=a),e}}})},90806:function(e,t,i){"use strict";var n=i(65604),r=i(85471);t.A=r["default"].extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:e=>!isNaN(Number(e))||["xs","sm","md","lg","xl"].includes(String(e))}},computed:{isMobile(){const{mobile:e,width:t,name:i,mobileBreakpoint:n}=this.$vuetify.breakpoint;if(n===this.mobileBreakpoint)return e;const r=parseInt(this.mobileBreakpoint,10),o=!isNaN(r);return o?t<r:i===this.mobileBreakpoint}},created(){this.$attrs.hasOwnProperty("mobile-break-point")&&(0,n.CI)("mobile-break-point","mobile-breakpoint",this)}})},9499:function(e,t,i){"use strict";i.d(t,{A:function(){return h}});var n=i(68767),r=i(53661),o=i(39748),s=i(3507),a=i(66960),l=(0,s.A)(n.A,r.A,o.A).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){const e=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",e)},classes(){return{"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive,...this.themeClasses}},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},(0,a.$c)(this))}},render(e){const t=[this.__scrim];return this.isActive&&t.push(this.genContent()),e("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},t)}}),c=l,u=i(85471),h=u["default"].extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(e){this.isActive&&(e?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){const e=new c({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});e.$mount();const t=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");t&&t.insertBefore(e.$el,t.firstChild),this.overlay=e},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame((()=>{this.overlay&&(void 0!==this.activeZIndex?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=(0,a.fl)(this.$el)),this.overlay.value=!0)})),!0},removeOverlay(e=!0){this.overlay&&((0,a.d7)(this.overlay.$el,"transitionend",(()=>{this.overlay&&this.overlay.$el&&this.overlay.$el.parentNode&&!this.overlay.value&&!this.isActive&&(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)})),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),e&&this.showScroll()},scrollListener(e){if("key"in e){if(["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)||e.target.isContentEditable)return;const t=[a.uP.up,a.uP.pageup],i=[a.uP.down,a.uP.pagedown];if(t.includes(e.keyCode))e.deltaY=-1;else{if(!i.includes(e.keyCode))return;e.deltaY=1}}(e.target===this.overlay||"keydown"!==e.type&&e.target===document.body||this.checkPath(e))&&e.preventDefault()},hasScrollbar(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return(["auto","scroll"].includes(t.overflowY)||"SELECT"===e.tagName)&&e.scrollHeight>e.clientHeight||["auto","scroll"].includes(t.overflowX)&&e.scrollWidth>e.clientWidth},shouldScroll(e,t){if(e.hasAttribute("data-app"))return!1;const i=t.shiftKey||t.deltaX?"x":"y",n="y"===i?t.deltaY:t.deltaX||t.deltaY;let r,o;"y"===i?(r=0===e.scrollTop,o=e.scrollTop+e.clientHeight===e.scrollHeight):(r=0===e.scrollLeft,o=e.scrollLeft+e.clientWidth===e.scrollWidth);const s=n<0,a=n>0;return!(r||!s)||(!(o||!a)||!(!r&&!o||!e.parentNode)&&this.shouldScroll(e.parentNode,t))},isInside(e,t){return e===t||null!==e&&e!==document.body&&this.isInside(e.parentNode,t)},checkPath(e){const t=(0,a.K9)(e);if("keydown"===e.type&&t[0]===document.body){const t=this.$refs.dialog,i=window.getSelection().anchorNode;return!(t&&this.hasScrollbar(t)&&this.isInside(i,t))||!this.shouldScroll(t,e)}for(let i=0;i<t.length;i++){const n=t[i];if(n===document)return!0;if(n===document.documentElement)return!0;if(n===this.$refs.content)return!0;if(this.hasScrollbar(n))return!this.shouldScroll(n,e)}return!0},hideScroll(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):((0,a.P4)(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}})},49923:function(e,t,i){"use strict";i.d(t,{P:function(){return s}});var n=i(85471),r=i(66960);const o={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function s(e=[]){return n["default"].extend({name:"positionable",props:e.length?(0,r.fF)(o,e):o})}t.A=s()},34464:function(e,t,i){"use strict";var n=i(85471);function r(e="value",t="change"){return n["default"].extend({name:"proxyable",model:{prop:e,event:t},props:{[e]:{required:!1}},data(){return{internalLazyValue:this[e]}},computed:{internalValue:{get(){return this.internalLazyValue},set(e){e!==this.internalLazyValue&&(this.internalLazyValue=e,this.$emit(t,e))}}},watch:{[e](e){this.internalLazyValue=e}}})}const o=r();t.A=o},98652:function(e,t,i){"use strict";i.d(t,{G:function(){return a},W:function(){return s}});var n=i(85471),r=i(65604);function o(e,t){return()=>(0,r.OP)(`The ${e} component must be used inside a ${t}`)}function s(e,t,i){const r=t&&i?{register:o(t,i),unregister:o(t,i)}:null;return n["default"].extend({name:"registrable-inject",inject:{[e]:{default:r}}})}function a(e,t=!1){return n["default"].extend({name:"registrable-provide",provide(){return{[e]:t?this:{register:this.register,unregister:this.unregister}}}})}},6256:function(e,t,i){"use strict";var n=i(85471);t.A=n["default"].extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){const e=[],t="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)e.push("rounded-0");else if("string"===typeof t){const i=t.split(" ");for(const t of i)e.push(`rounded-${t}`)}else t&&e.push("rounded");return e.length>0?{[e.join(" ")]:!0}:{}}}})},78010:function(e,t,i){"use strict";var n=i(85471),r=i(91723),o=i(66960);t.A=n["default"].extend({name:"routable",directives:{Ripple:r.A},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,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 e={};return this.to||(this.activeClass&&(e[this.activeClass]=this.isActive),this.proxyClass&&(e[this.proxyClass]=this.isActive)),e},computedRipple(){var e;return null!==(e=this.ripple)&&void 0!==e?e:!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"},mounted(){this.onRouteChange()},methods:{generateRouteLink(){let e,t=this.exact;const i={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"in this?{click:this.click}:void 0},ref:"link"};if("undefined"===typeof this.exact&&(t="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){let n=this.activeClass,r=this.exactActiveClass||n;this.proxyClass&&(n=`${n} ${this.proxyClass}`.trim(),r=`${r} ${this.proxyClass}`.trim()),e=this.nuxt?"nuxt-link":"router-link",Object.assign(i.props,{to:this.to,exact:t,exactPath:this.exactPath,activeClass:n,exactActiveClass:r,append:this.append,replace:this.replace})}else e=(this.href?"a":this.tag)||"div","a"===e&&this.href&&(i.attrs.href=this.href);return this.target&&(i.attrs.target=this.target),{tag:e,data:i}},onRouteChange(){if(!this.to||!this.$refs.link||!this.$route)return;const e=`${this.activeClass||""} ${this.proxyClass||""}`.trim(),t=`${this.exactActiveClass||""} ${this.proxyClass||""}`.trim()||e,i="_vnode.data.class."+(this.exact?t:e);this.$nextTick((()=>{!(0,o.no)(this.$refs.link,i)===this.isActive&&this.toggle()}))},toggle(){this.isActive=!this.isActive}}})},21713:function(e,t,i){"use strict";var n=i(85471);t.A=n["default"].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}}}})},86543:function(e,t,i){"use strict";var n=i(85471);t.A=n["default"].extend({name:"ssr-bootable",data:()=>({isBooted:!1}),mounted(){window.requestAnimationFrame((()=>{this.$el.setAttribute("data-booted","true"),this.isBooted=!0}))}})},53661:function(e,t,i){"use strict";i.d(t,{H:function(){return o}});var n=i(85471);const r=n["default"].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(e,t){e!==t&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});function o(e){const t={...e.props,...e.injections},i=r.options.computed.isDark.call(t);return r.options.computed.themeClasses.call({isDark:i})}t.A=r},39748:function(e,t,i){"use strict";i.d(t,{P:function(){return r}});var n=i(85471);function r(e="value",t="input"){return n["default"].extend({name:"toggleable",model:{prop:e,event:t},props:{[e]:{required:!1}},data(){return{isActive:!!this[e]}},watch:{[e](e){this.isActive=!!e},isActive(i){!!i!==this[e]&&this.$emit(t,i)}}})}const o=r();t.A=o},37863:function(e,t,i){"use strict";var n=i(68767),r=i(53661),o=i(98652),s=i(66960),a=i(65604),l=i(3507);const c=(0,l.A)(n.A,(0,o.W)("form"),r.A);t.A=c.extend({name:"validatable",props:{disabled:{type:Boolean,default:null},error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:()=>[]},messages:{type:[String,Array],default:()=>[]},readonly:{type:Boolean,default:null},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(e){this.lazyValue=e,this.$emit("input",e)}},isDisabled(){var e;return null!==(e=this.disabled)&&void 0!==e?e:!!this.form&&this.form.disabled},isInteractive(){return!this.isDisabled&&!this.isReadonly},isReadonly(){var e;return null!==(e=this.readonly)&&void 0!==e?e:!!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(e,t){(0,s.bD)(e,t)||this.validate()},deep:!0},internalValue(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused(e){e||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(e){this.shouldValidate&&this.$emit("update:error",e)},value(e){this.lazyValue=e}},beforeMount(){this.validate()},created(){this.form&&this.form.register(this)},beforeDestroy(){this.form&&this.form.unregister(this)},methods:{genInternalMessages(e){return e?Array.isArray(e)?e:[e]:[]},reset(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation(){this.isResetting=!0},validate(e=!1,t){const i=[];t=t||this.internalValue,e&&(this.hasInput=this.hasFocused=!0);for(let n=0;n<this.rules.length;n++){const e=this.rules[n],r="function"===typeof e?e(t):e;!1===r||"string"===typeof r?i.push(r||""):"boolean"!==typeof r&&(0,a.yA)(`Rules should return a string or boolean, received '${typeof r}' instead`,this)}return this.errorBucket=i,this.valid=0===i.length,this.valid}}})},29683:function(e,t,i){"use strict";i.d(t,{I:function(){return S},A:function(){return w}});var n={};i.r(n),i.d(n,{easeInCubic:function(){return c},easeInOutCubic:function(){return h},easeInOutQuad:function(){return l},easeInOutQuart:function(){return p},easeInOutQuint:function(){return m},easeInQuad:function(){return s},easeInQuart:function(){return d},easeInQuint:function(){return g},easeOutCubic:function(){return u},easeOutQuad:function(){return a},easeOutQuart:function(){return f},easeOutQuint:function(){return v},linear:function(){return o}});var r=i(61609);const o=e=>e,s=e=>e**2,a=e=>e*(2-e),l=e=>e<.5?2*e**2:(4-2*e)*e-1,c=e=>e**3,u=e=>--e**3+1,h=e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,d=e=>e**4,f=e=>1- --e**4,p=e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,g=e=>e**5,v=e=>1+--e**5,m=e=>e<.5?16*e**5:1+16*--e**5;function y(e){if("number"===typeof e)return e;let t=b(e);if(!t)throw"string"===typeof e?new Error(`Target element "${e}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${x(e)} instead.`);let i=0;while(t)i+=t.offsetTop,t=t.offsetParent;return i}function _(e){const t=b(e);if(t)return t;throw"string"===typeof e?new Error(`Container element "${e}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${x(e)} instead.`)}function x(e){return null==e?e:e.constructor.name}function b(e){return"string"===typeof e?document.querySelector(e):e&&e._isVue?e.$el:e instanceof HTMLElement?e:null}function w(e,t={}){const i={container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0,...t},r=_(i.container);if(i.appOffset&&w.framework.application){const e=r.classList.contains("v-navigation-drawer"),t=r.classList.contains("v-navigation-drawer--clipped"),{bar:n,top:o}=w.framework.application;i.offset+=n,e&&!t||(i.offset+=o)}const o=performance.now();let s;s="number"===typeof e?y(e)-i.offset:y(e)-y(r)-i.offset;const a=r.scrollTop;if(s===a)return Promise.resolve(s);const l="function"===typeof i.easing?i.easing:n[i.easing];if(!l)throw new TypeError(`Easing function "${i.easing}" not found.`);return new Promise((e=>requestAnimationFrame((function t(n){const c=n-o,u=Math.abs(i.duration?Math.min(c/i.duration,1):1);r.scrollTop=Math.floor(a+(s-a)*l(u));const h=r===document.body?document.documentElement.clientHeight:r.clientHeight,d=h+r.scrollTop>=r.scrollHeight;if(1===u||s>r.scrollTop&&d)return e(s);requestAnimationFrame(t)}))))}w.framework={},w.init=()=>{};class S extends r.k{constructor(){return super(),w}}S.property="goTo"},61609:function(e,t,i){"use strict";i.d(t,{k:function(){return n}});class n{constructor(){this.framework={}}init(e,t){}}},63805:function(e,t,i){"use strict";i.d(t,{E8:function(){return o},VP:function(){return r},si:function(){return a},y6:function(){return s}});var n=i(65604);function r(e){return!!e&&!!e.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function o(e){let t;if("number"===typeof e)t=e;else{if("string"!==typeof e)throw new TypeError(`Colors can only be numbers or strings, recieved ${null==e?e:e.constructor.name} instead`);{let i="#"===e[0]?e.substring(1):e;3===i.length&&(i=i.split("").map((e=>e+e)).join("")),6!==i.length&&(0,n.OP)(`'${e}' is not a valid rgb color`),t=parseInt(i,16)}}return t<0?((0,n.OP)(`Colors cannot be negative: '${e}'`),t=0):(t>16777215||isNaN(t))&&((0,n.OP)(`'${e}' is not a valid rgb color`),t=16777215),t}function s(e){let t=e.toString(16);return t.length<6&&(t="0".repeat(6-t.length)+t),"#"+t}function a(e){return s(o(e))}},65604:function(e,t,i){"use strict";i.d(t,{CI:function(){return a},OP:function(){return o},q4:function(){return l},rq:function(){return c},yA:function(){return s}});var n=i(5453);function r(e,t,i){if(!n.A.config.silent){if(i&&(t={_isVue:!0,$parent:i,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return`[Vuetify] ${e}`+(t?f(t):"")}}function o(e,t,i){const n=r(e,t,i);null!=n&&console.warn(n)}function s(e,t,i){const n=r(e,t,i);null!=n&&console.error(n)}function a(e,t,i,n){o(`[UPGRADE] '${e}' is deprecated, use '${t}' instead.`,i,n)}function l(e,t,i,n){s(`[BREAKING] '${e}' has been removed, use '${t}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`,i,n)}function c(e,t,i){o(`[REMOVED] '${e}' has been removed. You can safely omit it.`,t,i)}const u=/(?:^|[-_])(\w)/g,h=e=>e.replace(u,(e=>e.toUpperCase())).replace(/[-_]/g,"");function d(e,t){if(e.$root===e)return"<Root>";const i="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{};let n=i.name||i._componentTag;const r=i.__file;if(!n&&r){const e=r.match(/([^/\\]+)\.vue$/);n=e&&e[1]}return(n?`<${h(n)}>`:"<Anonymous>")+(r&&!1!==t?` at ${r}`:"")}function f(e){if(e._isVue&&e.$parent){const t=[];let i=0;while(e){if(t.length>0){const n=t[t.length-1];if(n.constructor===e.constructor){i++,e=e.$parent;continue}i>0&&(t[t.length-1]=[n,i],i=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map(((e,t)=>`${0===t?"---\x3e ":" ".repeat(5+2*t)}${Array.isArray(e)?`${d(e[0])}... (${e[1]} recursive calls)`:d(e)}`)).join("\n")}return`\n\n(found in ${d(e)})`}},94845:function(e,t,i){"use strict";function n(e){if("function"!==typeof e.getRootNode){while(e.parentNode)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}i.d(t,{b:function(){return n}})},66960:function(e,t,i){"use strict";i.d(t,{$c:function(){return D},Az:function(){return C},BN:function(){return A},CD:function(){return P},D9:function(){return R},Dg:function(){return g},Ds:function(){return T},Gn:function(){return r},HP:function(){return x},JL:function(){return E},K9:function(){return N},LJ:function(){return l},Ls:function(){return M},P4:function(){return a},PT:function(){return w},R2:function(){return B},Sd:function(){return d},TD:function(){return h},Zb:function(){return S},bD:function(){return c},d7:function(){return o},fF:function(){return p},fl:function(){return f},fo:function(){return I},g8:function(){return _},kW:function(){return v},kv:function(){return k},nF:function(){return L},no:function(){return u},qE:function(){return O},uP:function(){return y}});var n=i(85471);function r(e,t="div",i){return n["default"].extend({name:i||e.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:t}},render(t,{data:i,props:n,children:r}){return i.staticClass=`${e} ${i.staticClass||""}`.trim(),t(n.tag,i,r)}})}function o(e,t,i,n=!1){const r=o=>{i(o),e.removeEventListener(t,r,n)};e.addEventListener(t,r,n)}let s=!1;try{if("undefined"!==typeof window){const e=Object.defineProperty({},"passive",{get:()=>{s=!0}});window.addEventListener("testListener",e,e),window.removeEventListener("testListener",e,e)}}catch(z){console.warn(z)}function a(e,t,i,n){e.addEventListener(t,i,!!s&&n)}function l(e,t,i){const n=t.length-1;if(n<0)return void 0===e?i:e;for(let r=0;r<n;r++){if(null==e)return i;e=e[t[r]]}return null==e||void 0===e[t[n]]?i:e[t[n]]}function c(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime())return!1;if(e!==Object(e)||t!==Object(t))return!1;const i=Object.keys(e);return i.length===Object.keys(t).length&&i.every((i=>c(e[i],t[i])))}function u(e,t,i){return null!=e&&t&&"string"===typeof t?void 0!==e[t]?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),l(e,t.split("."),i)):i}function h(e,t,i){if(null==t)return void 0===e?i:e;if(e!==Object(e))return void 0===i?e:i;if("string"===typeof t)return u(e,t,i);if(Array.isArray(t))return l(e,t,i);if("function"!==typeof t)return i;const n=t(e,i);return"undefined"===typeof n?i:n}function d(e){return Array.from({length:e},((e,t)=>t))}function f(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return 0;const t=+window.getComputedStyle(e).getPropertyValue("z-index");return t||f(e.parentNode)}function p(e,t){const i={};for(let n=0;n<t.length;n++){const r=t[n];"undefined"!==typeof e[r]&&(i[r]=e[r])}return i}function g(e,t="px"){return null==e||""===e?void 0:isNaN(+e)?String(e):`${Number(e)}${t}`}function v(e){return(e||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function m(e){return null!==e&&"object"===typeof e}const y=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,shift:16});function _(e,t){const i=e.$vuetify.icons.component;if(t.startsWith("$")){const i=`$vuetify.icons.values.${t.split("$").pop().split(".").pop()}`,n=u(e,i,t);if("string"!==typeof n)return n;t=n}return null==i?t:{component:i,props:{icon:t}}}function x(e){return Object.keys(e)}const b=/-(\w)/g,w=e=>e.replace(b,((e,t)=>t?t.toUpperCase():""));function S(e){return e.charAt(0).toUpperCase()+e.slice(1)}function C(e,t,i){const n=t[0],r=[];let o;for(let s=0;s<e.length;s++){const t=e[s],i=u(t,n,null);o!==i&&(o=i,r.push({name:null!==i&&void 0!==i?i:"",items:[]})),r[r.length-1].items.push(t)}return r}function A(e){return null!=e?Array.isArray(e)?e:[e]:[]}function M(e,t,i,n,r){if(null===t||!t.length)return e;const o=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.sort(((e,n)=>{for(let s=0;s<t.length;s++){const a=t[s];let l=u(e,a),c=u(n,a);if(i[s]&&([l,c]=[c,l]),r&&r[a]){const e=r[a](l,c);if(!e)continue;return e}if(null!==l||null!==c){if(l instanceof Date&&c instanceof Date)return l.getTime()-c.getTime();if([l,c]=[l,c].map((e=>(e||"").toString().toLocaleLowerCase())),l!==c)return isNaN(l)||isNaN(c)?o.compare(l,c):Number(l)-Number(c)}}return 0}))}function k(e,t,i){return null!=e&&null!=t&&"boolean"!==typeof e&&-1!==e.toString().toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}function T(e,t){return t?(t=t.toString().toLowerCase(),""===t.trim()?e:e.filter((e=>Object.keys(e).some((i=>k(u(e,i),t,e)))))):e}function I(e,t,i){return e.$slots.hasOwnProperty(t)&&e.$scopedSlots.hasOwnProperty(t)&&e.$scopedSlots[t].name?i?"v-slot":"scoped":e.$slots.hasOwnProperty(t)?"normal":e.$scopedSlots.hasOwnProperty(t)?"scoped":void 0}function L(e,t){let i=!1;return(...n)=>{if(!i)return i=!0,setTimeout((()=>i=!1),t),e(...n)}}function E(e,t){return Object.keys(t).filter((t=>t.startsWith(e))).reduce(((i,n)=>(i[n.replace(e,"")]=t[n],i)),{})}function D(e,t="default",i,n=!1){const r=v(t);return e.$scopedSlots.hasOwnProperty(t)?e.$scopedSlots[t](i instanceof Function?i():i):e.$scopedSlots.hasOwnProperty(r)?e.$scopedSlots[r](i instanceof Function?i():i):!e.$slots.hasOwnProperty(t)||i&&!n?!e.$slots.hasOwnProperty(r)||i&&!n?void 0:e.$slots[r]:e.$slots[t]}function O(e,t=0,i=1){return Math.max(t,Math.min(i,e))}function P(e){return e?Object.keys(e).reduce(((t,i)=>(t[w(i)]=e[i],t)),{}):{}}function R(e={},t={}){for(const i in t){const n=e[i],r=t[i];m(n)&&m(r)?e[i]=R(n,r):e[i]=r}return e}function B(e,t){return Array(e).fill(t)}function N(e){if(e.composedPath)return e.composedPath();const t=[];let i=e.target;while(i){if(t.push(i),"HTML"===i.tagName)return t.push(document),t.push(window),t;i=i.parentElement}return t}},64961:function(e,t,i){"use strict";i.d(t,{Ay:function(){return s},Zq:function(){return a},wf:function(){return c},zP:function(){return l}});var n=i(66960);const r={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function o(e){const t={};for(const i of e.split(r.styleList)){let[e,o]=i.split(r.styleProp);e=e.trim(),e&&("string"===typeof o&&(o=o.trim()),t[(0,n.PT)(e)]=o)}return t}function s(){const e={};let t,i=arguments.length;while(i--)for(t of Object.keys(arguments[i]))switch(t){case"class":case"directives":arguments[i][t]&&(e[t]=l(e[t],arguments[i][t]));break;case"style":arguments[i][t]&&(e[t]=a(e[t],arguments[i][t]));break;case"staticClass":if(!arguments[i][t])break;void 0===e[t]&&(e[t]=""),e[t]&&(e[t]+=" "),e[t]+=arguments[i][t].trim();break;case"on":case"nativeOn":arguments[i][t]&&(e[t]=c(e[t],arguments[i][t]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[i][t])break;e[t]||(e[t]={}),e[t]={...arguments[i][t],...e[t]};break;default:e[t]||(e[t]=arguments[i][t])}return e}function a(e,t){return e?t?(e=(0,n.BN)("string"===typeof e?o(e):e),e.concat("string"===typeof t?o(t):t)):e:t}function l(e,t){return t?e&&e?(0,n.BN)(e).concat(t):t:e}function c(...e){if(!e[0])return e[1];if(!e[1])return e[0];const t={};for(let i=2;i--;){const n=e[i];for(const e in n)n[e]&&(t[e]?t[e]=[].concat(n[e],t[e]):t[e]=n[e])}return t}},3507:function(e,t,i){"use strict";i.d(t,{A:function(){return r}});var n=i(85471);function r(...e){return n["default"].extend({mixins:e})}},40173:function(e,t){"use strict";
|
||
/*!
|
||
* vue-router v3.5.2
|
||
* (c) 2021 Evan You
|
||
* @license MIT
|
||
*/function i(e,t){0}function n(e,t){for(var i in t)e[i]=t[i];return e}var r=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,a=function(e){return encodeURIComponent(e).replace(r,o).replace(s,",")};function l(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,i){void 0===t&&(t={});var n,r=i||h;try{n=r(e||"")}catch(a){n={}}for(var o in t){var s=t[o];n[o]=Array.isArray(s)?s.map(u):u(s)}return n}var u=function(e){return null==e||"object"===typeof e?e:String(e)};function h(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var i=e.replace(/\+/g," ").split("="),n=l(i.shift()),r=i.length>0?l(i.join("=")):null;void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]})),t):t}function d(e){var t=e?Object.keys(e).map((function(t){var i=e[t];if(void 0===i)return"";if(null===i)return a(t);if(Array.isArray(i)){var n=[];return i.forEach((function(e){void 0!==e&&(null===e?n.push(a(t)):n.push(a(t)+"="+a(e)))})),n.join("&")}return a(t)+"="+a(i)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function p(e,t,i,n){var r=n&&n.options.stringifyQuery,o=t.query||{};try{o=g(o)}catch(a){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:y(t,r),matched:e?m(e):[]};return i&&(s.redirectedFrom=y(i,r)),Object.freeze(s)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var i in e)t[i]=g(e[i]);return t}return e}var v=p(null,{path:"/"});function m(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function y(e,t){var i=e.path,n=e.query;void 0===n&&(n={});var r=e.hash;void 0===r&&(r="");var o=t||d;return(i||"/")+o(n)+r}function _(e,t,i){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(i||e.hash===t.hash&&x(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(i||e.hash===t.hash&&x(e.query,t.query)&&x(e.params,t.params))))}function x(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var i=Object.keys(e).sort(),n=Object.keys(t).sort();return i.length===n.length&&i.every((function(i,r){var o=e[i],s=n[r];if(s!==i)return!1;var a=t[i];return null==o||null==a?o===a:"object"===typeof o&&"object"===typeof a?x(o,a):String(o)===String(a)}))}function b(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!t.hash||e.hash===t.hash)&&w(e.query,t.query)}function w(e,t){for(var i in t)if(!(i in e))return!1;return!0}function S(e){for(var t=0;t<e.matched.length;t++){var i=e.matched[t];for(var n in i.instances){var r=i.instances[n],o=i.enteredCbs[n];if(r&&o){delete i.enteredCbs[n];for(var s=0;s<o.length;s++)r._isBeingDestroyed||o[s](r)}}}}var C={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var i=t.props,r=t.children,o=t.parent,s=t.data;s.routerView=!0;var a=o.$createElement,l=i.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;while(o&&o._routerRoot!==o){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=h,d){var p=u[l],g=p&&p.component;return g?(p.configProps&&A(g,s,p.route,p.configProps),a(g,s,r)):a()}var v=c.matched[h],m=v&&v.components[l];if(!v||!m)return u[l]=null,a();u[l]={component:m},s.registerRouteInstance=function(e,t){var i=v.instances[l];(t&&i!==e||!t&&i===e)&&(v.instances[l]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){v.instances[l]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==v.instances[l]&&(v.instances[l]=e.componentInstance),S(c)};var y=v.props&&v.props[l];return y&&(n(u[l],{route:c,configProps:y}),A(m,s,c,y)),a(m,s,r)}};function A(e,t,i,r){var o=t.props=M(i,r);if(o){o=t.props=n({},o);var s=t.attrs=t.attrs||{};for(var a in o)e.props&&a in e.props||(s[a]=o[a],delete o[a])}}function M(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function k(e,t,i){var n=e.charAt(0);if("/"===n)return e;if("?"===n||"#"===n)return t+e;var r=t.split("/");i&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?r.pop():"."!==a&&r.push(a)}return""!==r[0]&&r.unshift(""),r.join("/")}function T(e){var t="",i="",n=e.indexOf("#");n>=0&&(t=e.slice(n),e=e.slice(0,n));var r=e.indexOf("?");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{path:e,query:i,hash:t}}function I(e){return e.replace(/\/\//g,"/")}var L=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},E=Y,D=N,O=z,P=V,R=X,B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function N(e,t){var i,n=[],r=0,o=0,s="",a=t&&t.delimiter||"/";while(null!=(i=B.exec(e))){var l=i[0],c=i[1],u=i.index;if(s+=e.slice(o,u),o=u+l.length,c)s+=c[1];else{var h=e[o],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7];s&&(n.push(s),s="");var y=null!=d&&null!=h&&h!==d,_="+"===v||"*"===v,x="?"===v||"*"===v,b=i[2]||a,w=p||g;n.push({name:f||r++,prefix:d||"",delimiter:b,optional:x,repeat:_,partial:y,asterisk:!!m,pattern:w?$(w):m?".*":"[^"+j(b)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&n.push(s),n}function z(e,t){return V(N(e,t),t)}function H(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function F(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function V(e,t){for(var i=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(i[n]=new RegExp("^(?:"+e[n].pattern+")$",G(t)));return function(t,n){for(var r="",o=t||{},s=n||{},a=s.pretty?H:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var u,h=o[c.name];if(null==h){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(L(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(u=a(h[d]),!i[l].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===d?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?F(h):a(h),!i[l].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');r+=c.prefix+u}}else r+=c}return r}}function j(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function $(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function W(e,t){return e.keys=t,e}function G(e){return e&&e.sensitive?"":"i"}function U(e,t){var i=e.source.match(/\((?!\?)/g);if(i)for(var n=0;n<i.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return W(e,t)}function q(e,t,i){for(var n=[],r=0;r<e.length;r++)n.push(Y(e[r],t,i).source);var o=new RegExp("(?:"+n.join("|")+")",G(i));return W(o,t)}function Z(e,t,i){return X(N(e,i),t,i)}function X(e,t,i){L(t)||(i=t||i,t=[]),i=i||{};for(var n=i.strict,r=!1!==i.end,o="",s=0;s<e.length;s++){var a=e[s];if("string"===typeof a)o+=j(a);else{var l=j(a.prefix),c="(?:"+a.pattern+")";t.push(a),a.repeat&&(c+="(?:"+l+c+")*"),c=a.optional?a.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")",o+=c}}var u=j(i.delimiter||"/"),h=o.slice(-u.length)===u;return n||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=r?"$":n&&h?"":"(?="+u+"|$)",W(new RegExp("^"+o,G(i)),t)}function Y(e,t,i){return L(t)||(i=t||i,t=[]),i=i||{},e instanceof RegExp?U(e,t):L(e)?q(e,t,i):Z(e,t,i)}E.parse=D,E.compile=O,E.tokensToFunction=P,E.tokensToRegExp=R;var K=Object.create(null);function J(e,t,i){t=t||{};try{var n=K[e]||(K[e]=E.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),n(t,{pretty:!0})}catch(r){return""}finally{delete t[0]}}function Q(e,t,i,r){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=n({},e);var s=o.params;return s&&"object"===typeof s&&(o.params=n({},s)),o}if(!o.path&&o.params&&t){o=n({},o),o._normalized=!0;var a=n(n({},t.params),o.params);if(t.name)o.name=t.name,o.params=a;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;o.path=J(l,a,"path "+t.path)}else 0;return o}var u=T(o.path||""),h=t&&t.path||"/",d=u.path?k(u.path,h,i||o.append):h,f=c(u.query,o.query,r&&r.options.parseQuery),p=o.hash||u.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:f,hash:p}}var ee,te=[String,Object],ie=[String,Array],ne=function(){},re={name:"RouterLink",props:{to:{type:te,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ie,default:"click"}},render:function(e){var t=this,i=this.$router,r=this.$route,o=i.resolve(this.to,r,this.append),s=o.location,a=o.route,l=o.href,c={},u=i.options.linkActiveClass,h=i.options.linkExactActiveClass,d=null==u?"router-link-active":u,f=null==h?"router-link-exact-active":h,g=null==this.activeClass?d:this.activeClass,v=null==this.exactActiveClass?f:this.exactActiveClass,m=a.redirectedFrom?p(null,Q(a.redirectedFrom),null,i):a;c[v]=_(r,m,this.exactPath),c[g]=this.exact||this.exactPath?c[v]:b(r,m);var y=c[v]?this.ariaCurrentValue:null,x=function(e){oe(e)&&(t.replace?i.replace(s,ne):i.push(s,ne))},w={click:oe};Array.isArray(this.event)?this.event.forEach((function(e){w[e]=x})):w[this.event]=x;var S={class:c},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:a,navigate:x,isActive:c[g],isExactActive:c[v]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?e():e("span",{},C)}if("a"===this.tag)S.on=w,S.attrs={href:l,"aria-current":y};else{var A=se(this.$slots.default);if(A){A.isStatic=!1;var M=A.data=n({},A.data);for(var k in M.on=M.on||{},M.on){var T=M.on[k];k in w&&(M.on[k]=Array.isArray(T)?T:[T])}for(var I in w)I in M.on?M.on[I].push(w[I]):M.on[I]=x;var L=A.data.attrs=n({},A.data.attrs);L.href=l,L["aria-current"]=y}else S.on=w}return e(this.tag,S,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function se(e){if(e)for(var t,i=0;i<e.length;i++){if(t=e[i],"a"===t.tag)return t;if(t.children&&(t=se(t.children)))return t}}function ae(e){if(!ae.installed||ee!==e){ae.installed=!0,ee=e;var t=function(e){return void 0!==e},i=function(e,i){var n=e.$options._parentVnode;t(n)&&t(n=n.data)&&t(n=n.registerRouteInstance)&&n(e,i)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",C),e.component("RouterLink",re);var n=e.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}}var le="undefined"!==typeof window;function ce(e,t,i,n,r){var o=t||[],s=i||Object.create(null),a=n||Object.create(null);e.forEach((function(e){ue(o,s,a,e,r)}));for(var l=0,c=o.length;l<c;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),c--,l--);return{pathList:o,pathMap:s,nameMap:a}}function ue(e,t,i,n,r,o){var s=n.path,a=n.name;var l=n.pathToRegexpOptions||{},c=de(s,r,l.strict);"boolean"===typeof n.caseSensitive&&(l.sensitive=n.caseSensitive);var u={path:c,regex:he(c,l),components:n.components||{default:n.component},alias:n.alias?"string"===typeof n.alias?[n.alias]:n.alias:[],instances:{},enteredCbs:{},name:a,parent:r,matchAs:o,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach((function(n){var r=o?I(o+"/"+n.path):void 0;ue(e,t,i,n,u,r)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==n.alias)for(var h=Array.isArray(n.alias)?n.alias:[n.alias],d=0;d<h.length;++d){var f=h[d];0;var p={path:f,children:n.children};ue(e,t,i,p,r,u.path||"/")}a&&(i[a]||(i[a]=u))}function he(e,t){var i=E(e,[],t);return i}function de(e,t,i){return i||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:I(t.path+"/"+e)}function fe(e,t){var i=ce(e),n=i.pathList,r=i.pathMap,o=i.nameMap;function s(e){ce(e,n,r,o)}function a(e,t){var i="object"!==typeof e?o[e]:void 0;ce([t||e],n,r,o,i),i&&i.alias.length&&ce(i.alias.map((function(e){return{path:e,children:[t]}})),n,r,o,i)}function l(){return n.map((function(e){return r[e]}))}function c(e,i,s){var a=Q(e,i,!1,t),l=a.name;if(l){var c=o[l];if(!c)return d(null,a);var u=c.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof a.params&&(a.params={}),i&&"object"===typeof i.params)for(var h in i.params)!(h in a.params)&&u.indexOf(h)>-1&&(a.params[h]=i.params[h]);return a.path=J(c.path,a.params,'named route "'+l+'"'),d(c,a,s)}if(a.path){a.params={};for(var f=0;f<n.length;f++){var p=n[f],g=r[p];if(pe(g.regex,a.path,a.params))return d(g,a,s)}}return d(null,a)}function u(e,i){var n=e.redirect,r="function"===typeof n?n(p(e,i,null,t)):n;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return d(null,i);var s=r,a=s.name,l=s.path,u=i.query,h=i.hash,f=i.params;if(u=s.hasOwnProperty("query")?s.query:u,h=s.hasOwnProperty("hash")?s.hash:h,f=s.hasOwnProperty("params")?s.params:f,a){o[a];return c({_normalized:!0,name:a,query:u,hash:h,params:f},void 0,i)}if(l){var g=ge(l,e),v=J(g,f,'redirect route with path "'+g+'"');return c({_normalized:!0,path:v,query:u,hash:h},void 0,i)}return d(null,i)}function h(e,t,i){var n=J(i,t.params,'aliased route with path "'+i+'"'),r=c({_normalized:!0,path:n});if(r){var o=r.matched,s=o[o.length-1];return t.params=r.params,d(s,t)}return d(null,t)}function d(e,i,n){return e&&e.redirect?u(e,n||i):e&&e.matchAs?h(e,i,e.matchAs):p(e,i,n,t)}return{match:c,addRoute:a,getRoutes:l,addRoutes:s}}function pe(e,t,i){var n=t.match(e);if(!n)return!1;if(!i)return!0;for(var r=1,o=n.length;r<o;++r){var s=e.keys[r-1];s&&(i[s.name||"pathMatch"]="string"===typeof n[r]?l(n[r]):n[r])}return!0}function ge(e,t){return k(e,t.parent?t.parent.path:"/",!0)}var ve=le&&window.performance&&window.performance.now?window.performance:Date;function me(){return ve.now().toFixed(3)}var ye=me();function _e(){return ye}function xe(e){return ye=e}var be=Object.create(null);function we(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),i=n({},window.history.state);return i.key=_e(),window.history.replaceState(i,"",t),window.addEventListener("popstate",Ae),function(){window.removeEventListener("popstate",Ae)}}function Se(e,t,i,n){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var o=Me(),s=r.call(e,t,i,n?o:null);s&&("function"===typeof s.then?s.then((function(e){Oe(e,o)})).catch((function(e){0})):Oe(s,o))}))}}function Ce(){var e=_e();e&&(be[e]={x:window.pageXOffset,y:window.pageYOffset})}function Ae(e){Ce(),e.state&&e.state.key&&xe(e.state.key)}function Me(){var e=_e();if(e)return be[e]}function ke(e,t){var i=document.documentElement,n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}function Te(e){return Ee(e.x)||Ee(e.y)}function Ie(e){return{x:Ee(e.x)?e.x:window.pageXOffset,y:Ee(e.y)?e.y:window.pageYOffset}}function Le(e){return{x:Ee(e.x)?e.x:0,y:Ee(e.y)?e.y:0}}function Ee(e){return"number"===typeof e}var De=/^#\d/;function Oe(e,t){var i="object"===typeof e;if(i&&"string"===typeof e.selector){var n=De.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(n){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=Le(r),t=ke(n,r)}else Te(e)&&(t=Ie(e))}else i&&Te(e)&&(t=Ie(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Pe=le&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Re(e,t){Ce();var i=window.history;try{if(t){var r=n({},i.state);r.key=_e(),i.replaceState(r,"",e)}else i.pushState({key:xe(me())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function Be(e){Re(e,!0)}function Ne(e,t,i){var n=function(r){r>=e.length?i():e[r]?t(e[r],(function(){n(r+1)})):n(r+1)};n(0)}var ze={redirected:2,aborted:4,cancelled:8,duplicated:16};function He(e,t){return $e(e,t,ze.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Ge(t)+'" via a navigation guard.')}function Fe(e,t){var i=$e(e,t,ze.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return i.name="NavigationDuplicated",i}function Ve(e,t){return $e(e,t,ze.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function je(e,t){return $e(e,t,ze.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function $e(e,t,i,n){var r=new Error(n);return r._isRouter=!0,r.from=e,r.to=t,r.type=i,r}var We=["params","query","hash"];function Ge(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return We.forEach((function(i){i in e&&(t[i]=e[i])})),JSON.stringify(t,null,2)}function Ue(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function qe(e,t){return Ue(e)&&e._isRouter&&(null==t||e.type===t)}function Ze(e){return function(t,i,n){var r=!1,o=0,s=null;Xe(e,(function(e,t,i,a){if("function"===typeof e&&void 0===e.cid){r=!0,o++;var l,c=Qe((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),i.components[a]=t,o--,o<=0&&n()})),u=Qe((function(e){var t="Failed to resolve async component "+a+": "+e;s||(s=Ue(e)?e:new Error(t),n(s))}));try{l=e(c,u)}catch(d){u(d)}if(l)if("function"===typeof l.then)l.then(c,u);else{var h=l.component;h&&"function"===typeof h.then&&h.then(c,u)}}})),r||n()}}function Xe(e,t){return Ye(e.map((function(e){return Object.keys(e.components).map((function(i){return t(e.components[i],e.instances[i],e,i)}))})))}function Ye(e){return Array.prototype.concat.apply([],e)}var Ke="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Ke&&"Module"===e[Symbol.toStringTag]}function Qe(e){var t=!1;return function(){var i=[],n=arguments.length;while(n--)i[n]=arguments[n];if(!t)return t=!0,e.apply(this,i)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function it(e,t){var i,n=Math.max(e.length,t.length);for(i=0;i<n;i++)if(e[i]!==t[i])break;return{updated:t.slice(0,i),activated:t.slice(i),deactivated:e.slice(i)}}function nt(e,t,i,n){var r=Xe(e,(function(e,n,r,o){var s=rt(e,t);if(s)return Array.isArray(s)?s.map((function(e){return i(e,n,r,o)})):i(s,n,r,o)}));return Ye(n?r.reverse():r)}function rt(e,t){return"function"!==typeof e&&(e=ee.extend(e)),e.options[t]}function ot(e){return nt(e,"beforeRouteLeave",at,!0)}function st(e){return nt(e,"beforeRouteUpdate",at)}function at(e,t){if(t)return function(){return e.apply(t,arguments)}}function lt(e){return nt(e,"beforeRouteEnter",(function(e,t,i,n){return ct(e,i,n)}))}function ct(e,t,i){return function(n,r,o){return e(n,r,(function(e){"function"===typeof e&&(t.enteredCbs[i]||(t.enteredCbs[i]=[]),t.enteredCbs[i].push(e)),o(e)}))}}et.prototype.listen=function(e){this.cb=e},et.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},et.prototype.onError=function(e){this.errorCbs.push(e)},et.prototype.transitionTo=function(e,t,i){var n,r=this;try{n=this.router.match(e,this.current)}catch(s){throw this.errorCbs.forEach((function(e){e(s)})),s}var o=this.current;this.confirmTransition(n,(function(){r.updateRoute(n),t&&t(n),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(n,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(n)})))}),(function(e){i&&i(e),e&&!r.ready&&(qe(e,ze.redirected)&&o===v||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},et.prototype.confirmTransition=function(e,t,n){var r=this,o=this.current;this.pending=e;var s=function(e){!qe(e)&&Ue(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):(i(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)},a=e.matched.length-1,l=o.matched.length-1;if(_(e,o)&&a===l&&e.matched[a]===o.matched[l])return this.ensureURL(),s(Fe(o,e));var c=it(this.current.matched,e.matched),u=c.updated,h=c.deactivated,d=c.activated,f=[].concat(ot(h),this.router.beforeHooks,st(u),d.map((function(e){return e.beforeEnter})),Ze(d)),p=function(t,i){if(r.pending!==e)return s(Ve(o,e));try{t(e,o,(function(t){!1===t?(r.ensureURL(!0),s(je(o,e))):Ue(t)?(r.ensureURL(!0),s(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(s(He(o,e)),"object"===typeof t&&t.replace?r.replace(t):r.push(t)):i(t)}))}catch(n){s(n)}};Ne(f,p,(function(){var i=lt(d),n=i.concat(r.router.resolveHooks);Ne(n,p,(function(){if(r.pending!==e)return s(Ve(o,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){S(e)}))}))}))},et.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},et.prototype.setupListeners=function(){},et.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=v,this.pending=null};var ut=function(e){function t(t,i){e.call(this,t,i),this._startLocation=ht(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,i=t.options.scrollBehavior,n=Pe&&i;n&&this.listeners.push(we());var r=function(){var i=e.current,r=ht(e.base);e.current===v&&r===e._startLocation||e.transitionTo(r,(function(e){n&&Se(t,e,i,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,i){var n=this,r=this,o=r.current;this.transitionTo(e,(function(e){Re(I(n.base+e.fullPath)),Se(n.router,e,o,!1),t&&t(e)}),i)},t.prototype.replace=function(e,t,i){var n=this,r=this,o=r.current;this.transitionTo(e,(function(e){Be(I(n.base+e.fullPath)),Se(n.router,e,o,!1),t&&t(e)}),i)},t.prototype.ensureURL=function(e){if(ht(this.base)!==this.current.fullPath){var t=I(this.base+this.current.fullPath);e?Re(t):Be(t)}},t.prototype.getCurrentLocation=function(){return ht(this.base)},t}(et);function ht(e){var t=window.location.pathname,i=t.toLowerCase(),n=e.toLowerCase();return!e||i!==n&&0!==i.indexOf(I(n+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var dt=function(e){function t(t,i,n){e.call(this,t,i),n&&ft(this.base)||pt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,i=t.options.scrollBehavior,n=Pe&&i;n&&this.listeners.push(we());var r=function(){var t=e.current;pt()&&e.transitionTo(gt(),(function(i){n&&Se(e.router,i,t,!0),Pe||yt(i.fullPath)}))},o=Pe?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,i){var n=this,r=this,o=r.current;this.transitionTo(e,(function(e){mt(e.fullPath),Se(n.router,e,o,!1),t&&t(e)}),i)},t.prototype.replace=function(e,t,i){var n=this,r=this,o=r.current;this.transitionTo(e,(function(e){yt(e.fullPath),Se(n.router,e,o,!1),t&&t(e)}),i)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;gt()!==t&&(e?mt(t):yt(t))},t.prototype.getCurrentLocation=function(){return gt()},t}(et);function ft(e){var t=ht(e);if(!/^\/#/.test(t))return window.location.replace(I(e+"/#"+t)),!0}function pt(){var e=gt();return"/"===e.charAt(0)||(yt("/"+e),!1)}function gt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function vt(e){var t=window.location.href,i=t.indexOf("#"),n=i>=0?t.slice(0,i):t;return n+"#"+e}function mt(e){Pe?Re(vt(e)):window.location.hash=e}function yt(e){Pe?Be(vt(e)):window.location.replace(vt(e))}var _t=function(e){function t(t,i){e.call(this,t,i),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,i){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index+1).concat(e),n.index++,t&&t(e)}),i)},t.prototype.replace=function(e,t,i){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index).concat(e),t&&t(e)}),i)},t.prototype.go=function(e){var t=this,i=this.index+e;if(!(i<0||i>=this.stack.length)){var n=this.stack[i];this.confirmTransition(n,(function(){var e=t.current;t.index=i,t.updateRoute(n),t.router.afterHooks.forEach((function(t){t&&t(n,e)}))}),(function(e){qe(e,ze.duplicated)&&(t.index=i)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),xt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Pe&&!1!==e.fallback,this.fallback&&(t="hash"),le||(t="abstract"),this.mode=t,t){case"history":this.history=new ut(this,e.base);break;case"hash":this.history=new dt(this,e.base,this.fallback);break;case"abstract":this.history=new _t(this,e.base);break;default:0}},bt={currentRoute:{configurable:!0}};function wt(e,t){return e.push(t),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function St(e,t,i){var n="hash"===i?"#"+t:t;return e?I(e+"/"+n):n}xt.prototype.match=function(e,t,i){return this.matcher.match(e,t,i)},bt.currentRoute.get=function(){return this.history&&this.history.current},xt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var i=t.apps.indexOf(e);i>-1&&t.apps.splice(i,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var i=this.history;if(i instanceof ut||i instanceof dt){var n=function(e){var n=i.current,r=t.options.scrollBehavior,o=Pe&&r;o&&"fullPath"in e&&Se(t,e,n,!1)},r=function(e){i.setupListeners(),n(e)};i.transitionTo(i.getCurrentLocation(),r,r)}i.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},xt.prototype.beforeEach=function(e){return wt(this.beforeHooks,e)},xt.prototype.beforeResolve=function(e){return wt(this.resolveHooks,e)},xt.prototype.afterEach=function(e){return wt(this.afterHooks,e)},xt.prototype.onReady=function(e,t){this.history.onReady(e,t)},xt.prototype.onError=function(e){this.history.onError(e)},xt.prototype.push=function(e,t,i){var n=this;if(!t&&!i&&"undefined"!==typeof Promise)return new Promise((function(t,i){n.history.push(e,t,i)}));this.history.push(e,t,i)},xt.prototype.replace=function(e,t,i){var n=this;if(!t&&!i&&"undefined"!==typeof Promise)return new Promise((function(t,i){n.history.replace(e,t,i)}));this.history.replace(e,t,i)},xt.prototype.go=function(e){this.history.go(e)},xt.prototype.back=function(){this.go(-1)},xt.prototype.forward=function(){this.go(1)},xt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},xt.prototype.resolve=function(e,t,i){t=t||this.history.current;var n=Q(e,t,i,this),r=this.match(n,t),o=r.redirectedFrom||r.fullPath,s=this.history.base,a=St(s,o,this.mode);return{location:n,route:r,href:a,normalizedTo:n,resolved:r}},xt.prototype.getRoutes=function(){return this.matcher.getRoutes()},xt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},xt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xt.prototype,bt),xt.install=ae,xt.version="3.5.2",xt.isNavigationFailure=qe,xt.NavigationFailureType=ze,xt.START_LOCATION=v,le&&window.Vue&&window.Vue.use(xt),t.A=xt},28721:function(e,t,i){(function(t,n){e.exports=n(i(85471))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="fb15")}({"00b4":function(e,t,i){"use strict";i("ac1f");var n=i("23e7"),r=i("da84"),o=i("c65b"),s=i("e330"),a=i("1626"),l=i("861d"),c=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),u=r.Error,h=s(/./.test);n({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=this.exec;if(!a(t))return h(this,e);var i=o(t,this,e);if(null!==i&&!l(i))throw new u("RegExp exec method returned something other than an Object or null");return!!i}})},"00ee":function(e,t,i){var n=i("b622"),r=n("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"01b4":function(e,t){var i=function(){this.head=null,this.tail=null};i.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=i},"0366":function(e,t,i){var n=i("e330"),r=i("59ed"),o=i("40d5"),s=n(n.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},"04d1":function(e,t,i){var n=i("342f"),r=n.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"0538":function(e,t,i){"use strict";var n=i("da84"),r=i("e330"),o=i("59ed"),s=i("861d"),a=i("1a2d"),l=i("f36a"),c=i("40d5"),u=n.Function,h=r([].concat),d=r([].join),f={},p=function(e,t,i){if(!a(f,t)){for(var n=[],r=0;r<t;r++)n[r]="a["+r+"]";f[t]=u("C,a","return new C("+d(n,",")+")")}return f[t](e,i)};e.exports=c?u.bind:function(e){var t=o(this),i=t.prototype,n=l(arguments,1),r=function(){var i=h(n,l(arguments));return this instanceof r?p(t,i.length,i):t.apply(e,i)};return s(i)&&(r.prototype=i),r}},"057f":function(e,t,i){var n=i("c6b6"),r=i("fc6a"),o=i("241c").f,s=i("4dae"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return s(a)}};e.exports.f=function(e){return a&&"Window"==n(e)?l(e):o(r(e))}},"06cf":function(e,t,i){var n=i("83ab"),r=i("c65b"),o=i("d1e7"),s=i("5c6c"),a=i("fc6a"),l=i("a04b"),c=i("1a2d"),u=i("0cfb"),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(i){}if(c(e,t))return s(!r(o.f,e,t),e[t])}},"07fa":function(e,t,i){var n=i("50c4");e.exports=function(e){return n(e.length)}},"0b22":function(e,t,i){var n=i("c4f4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("499e").default;r("205d1806",n,!0,{sourceMap:!1,shadowMode:!1})},"0b42":function(e,t,i){var n=i("da84"),r=i("e8b5"),o=i("68ee"),s=i("861d"),a=i("b622"),l=a("species"),c=n.Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,o(t)&&(t===c||r(t.prototype))?t=void 0:s(t)&&(t=t[l],null===t&&(t=void 0))),void 0===t?c:t}},"0cb2":function(e,t,i){var n=i("e330"),r=i("7b0b"),o=Math.floor,s=n("".charAt),a=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,i,n,h,d){var f=i+e.length,p=n.length,g=u;return void 0!==h&&(h=r(h),g=c),a(d,g,(function(r,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,i);case"'":return l(t,f);case"<":c=h[l(a,1,-1)];break;default:var u=+a;if(0===u)return r;if(u>p){var d=o(u/10);return 0===d?r:d<=p?void 0===n[d-1]?s(a,1):n[d-1]+s(a,1):r}c=n[u-1]}return void 0===c?"":c}))}},"0cfb":function(e,t,i){var n=i("83ab"),r=i("d039"),o=i("cc12");e.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,i){var n=i("da84"),r=n.String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"107c":function(e,t,i){var n=i("d039"),r=i("da84"),o=r.RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1148:function(e,t,i){"use strict";var n=i("da84"),r=i("5926"),o=i("577e"),s=i("1d80"),a=n.RangeError;e.exports=function(e){var t=o(s(this)),i="",n=r(e);if(n<0||n==1/0)throw a("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(i+=t);return i}},1276:function(e,t,i){"use strict";var n=i("2ba4"),r=i("c65b"),o=i("e330"),s=i("d784"),a=i("44e7"),l=i("825a"),c=i("1d80"),u=i("4840"),h=i("8aa5"),d=i("50c4"),f=i("577e"),p=i("dc4a"),g=i("4dae"),v=i("14c3"),m=i("9263"),y=i("9f7f"),_=i("d039"),x=y.UNSUPPORTED_Y,b=4294967295,w=Math.min,S=[].push,C=o(/./.exec),A=o(S),M=o("".slice),k=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));s("split",(function(e,t,i){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var o=f(c(this)),s=void 0===i?b:i>>>0;if(0===s)return[];if(void 0===e)return[o];if(!a(e))return r(t,o,e,s);var l,u,h,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,y=new RegExp(e.source,p+"g");while(l=r(m,y,o)){if(u=y.lastIndex,u>v&&(A(d,M(o,v,l.index)),l.length>1&&l.index<o.length&&n(S,d,g(l,1)),h=l[0].length,v=u,d.length>=s))break;y.lastIndex===l.index&&y.lastIndex++}return v===o.length?!h&&C(y,"")||A(d,""):A(d,M(o,v)),d.length>s?g(d,0,s):d}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:r(t,this,e,i)}:t,[function(t,i){var n=c(this),s=void 0==t?void 0:p(t,e);return s?r(s,t,n,i):r(o,f(n),t,i)},function(e,n){var r=l(this),s=f(e),a=i(o,r,s,n,o!==t);if(a.done)return a.value;var c=u(r,RegExp),p=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(x?"g":"y"),m=new c(x?"^(?:"+r.source+")":r,g),y=void 0===n?b:n>>>0;if(0===y)return[];if(0===s.length)return null===v(m,s)?[s]:[];var _=0,S=0,C=[];while(S<s.length){m.lastIndex=x?0:S;var k,T=v(m,x?M(s,S):s);if(null===T||(k=w(d(m.lastIndex+(x?S:0)),s.length))===_)S=h(s,S,p);else{if(A(C,M(s,_,S)),C.length===y)return C;for(var I=1;I<=T.length-1;I++)if(A(C,T[I]),C.length===y)return C;S=_=k}}return A(C,M(s,_)),C}]}),!k,x)},"14c3":function(e,t,i){var n=i("da84"),r=i("c65b"),o=i("825a"),s=i("1626"),a=i("c6b6"),l=i("9263"),c=n.TypeError;e.exports=function(e,t){var i=e.exec;if(s(i)){var n=r(i,e,t);return null!==n&&o(n),n}if("RegExp"===a(e))return r(l,e,t);throw c("RegExp#exec called on incompatible receiver")}},"159b":function(e,t,i){var n=i("da84"),r=i("fdbc"),o=i("785a"),s=i("17c2"),a=i("9112"),l=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in r)r[c]&&l(n[c]&&n[c].prototype);l(o)},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},"17c2":function(e,t,i){"use strict";var n=i("b727").forEach,r=i("a640"),o=r("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},"19aa":function(e,t,i){var n=i("da84"),r=i("3a9b"),o=n.TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},"1a2d":function(e,t,i){var n=i("e330"),r=i("7b0b"),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},"1be4":function(e,t,i){var n=i("d066");e.exports=n("document","documentElement")},"1c7e":function(e,t,i){var n=i("b622"),r=n("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(l){}return i}},"1cdc":function(e,t,i){var n=i("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},"1d80":function(e,t,i){var n=i("da84"),r=n.TypeError;e.exports=function(e){if(void 0==e)throw r("Can't call method on "+e);return e}},"1dde":function(e,t,i){var n=i("d039"),r=i("b622"),o=i("2d00"),s=r("species");e.exports=function(e){return o>=51||!n((function(){var t=[],i=t.constructor={};return i[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2266:function(e,t,i){var n=i("da84"),r=i("0366"),o=i("c65b"),s=i("825a"),a=i("0d51"),l=i("e95a"),c=i("07fa"),u=i("3a9b"),h=i("9a1f"),d=i("35a1"),f=i("2a62"),p=n.TypeError,g=function(e,t){this.stopped=e,this.result=t},v=g.prototype;e.exports=function(e,t,i){var n,m,y,_,x,b,w,S=i&&i.that,C=!(!i||!i.AS_ENTRIES),A=!(!i||!i.IS_ITERATOR),M=!(!i||!i.INTERRUPTED),k=r(t,S),T=function(e){return n&&f(n,"normal",e),new g(!0,e)},I=function(e){return C?(s(e),M?k(e[0],e[1],T):k(e[0],e[1])):M?k(e,T):k(e)};if(A)n=e;else{if(m=d(e),!m)throw p(a(e)+" is not iterable");if(l(m)){for(y=0,_=c(e);_>y;y++)if(x=I(e[y]),x&&u(v,x))return x;return new g(!1)}n=h(e,m)}b=n.next;while(!(w=o(b,n)).done){try{x=I(w.value)}catch(L){f(n,"throw",L)}if("object"==typeof x&&x&&u(v,x))return x}return new g(!1)}},"23cb":function(e,t,i){var n=i("5926"),r=Math.max,o=Math.min;e.exports=function(e,t){var i=n(e);return i<0?r(i+t,0):o(i,t)}},"23e7":function(e,t,i){var n=i("da84"),r=i("06cf").f,o=i("9112"),s=i("6eeb"),a=i("ce4e"),l=i("e893"),c=i("94ca");e.exports=function(e,t){var i,u,h,d,f,p,g=e.target,v=e.global,m=e.stat;if(u=v?n:m?n[g]||a(g,{}):(n[g]||{}).prototype,u)for(h in t){if(f=t[h],e.noTargetGet?(p=r(u,h),d=p&&p.value):d=u[h],i=c(v?h:g+(m?".":"#")+h,e.forced),!i&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),s(u,h,f,e)}}},"241c":function(e,t,i){var n=i("ca84"),r=i("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"25f0":function(e,t,i){"use strict";var n=i("e330"),r=i("5e77").PROPER,o=i("6eeb"),s=i("825a"),a=i("3a9b"),l=i("577e"),c=i("d039"),u=i("ad6d"),h="toString",d=RegExp.prototype,f=d[h],p=n(u),g=c((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),v=r&&f.name!=h;(g||v)&&o(RegExp.prototype,h,(function(){var e=s(this),t=l(e.source),i=e.flags,n=l(void 0===i&&a(d,e)&&!("flags"in d)?p(e):i);return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,i){"use strict";var n=i("d066"),r=i("9bf2"),o=i("b622"),s=i("83ab"),a=o("species");e.exports=function(e){var t=n(e),i=r.f;s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},"2a62":function(e,t,i){var n=i("c65b"),r=i("825a"),o=i("dc4a");e.exports=function(e,t,i){var s,a;r(e);try{if(s=o(e,"return"),!s){if("throw"===t)throw i;return i}s=n(s,e)}catch(l){a=!0,s=l}if("throw"===t)throw i;if(a)throw s;return r(s),i}},"2ba4":function(e,t,i){var n=i("40d5"),r=Function.prototype,o=r.apply,s=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},"2c3e":function(e,t,i){var n=i("da84"),r=i("83ab"),o=i("9f7f").MISSED_STICKY,s=i("c6b6"),a=i("9bf2").f,l=i("69f3").get,c=RegExp.prototype,u=n.TypeError;r&&o&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"2ca0":function(e,t,i){"use strict";var n=i("23e7"),r=i("e330"),o=i("06cf").f,s=i("50c4"),a=i("577e"),l=i("5a34"),c=i("1d80"),u=i("ab13"),h=i("c430"),d=r("".startsWith),f=r("".slice),p=Math.min,g=u("startsWith"),v=!h&&!g&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!v&&!g},{startsWith:function(e){var t=a(c(this));l(e);var i=s(p(arguments.length>1?arguments[1]:void 0,t.length)),n=a(e);return d?d(t,n,i):f(t,i,i+n.length)===n}})},"2cf4":function(e,t,i){var n,r,o,s,a=i("da84"),l=i("2ba4"),c=i("0366"),u=i("1626"),h=i("1a2d"),d=i("d039"),f=i("1be4"),p=i("f36a"),g=i("cc12"),v=i("d6d6"),m=i("1cdc"),y=i("605d"),_=a.setImmediate,x=a.clearImmediate,b=a.process,w=a.Dispatch,S=a.Function,C=a.MessageChannel,A=a.String,M=0,k={},T="onreadystatechange";try{n=a.location}catch(O){}var I=function(e){if(h(k,e)){var t=k[e];delete k[e],t()}},L=function(e){return function(){I(e)}},E=function(e){I(e.data)},D=function(e){a.postMessage(A(e),n.protocol+"//"+n.host)};_&&x||(_=function(e){v(arguments.length,1);var t=u(e)?e:S(e),i=p(arguments,1);return k[++M]=function(){l(t,void 0,i)},r(M),M},x=function(e){delete k[e]},y?r=function(e){b.nextTick(L(e))}:w&&w.now?r=function(e){w.now(L(e))}:C&&!m?(o=new C,s=o.port2,o.port1.onmessage=E,r=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(D)?(r=D,a.addEventListener("message",E,!1)):r=T in g("script")?function(e){f.appendChild(g("script"))[T]=function(){f.removeChild(this),I(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:_,clear:x}},"2d00":function(e,t,i){var n,r,o=i("da84"),s=i("342f"),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(n=u.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),e.exports=r},"2d99":function(e,t,i){var n=i("6ad6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("499e").default;r("4821b87a",n,!0,{sourceMap:!1,shadowMode:!1})},3410:function(e,t,i){var n=i("23e7"),r=i("d039"),o=i("7b0b"),s=i("e163"),a=i("e177"),l=r((function(){s(1)}));n({target:"Object",stat:!0,forced:l,sham:!a},{getPrototypeOf:function(e){return s(o(e))}})},"342f":function(e,t,i){var n=i("d066");e.exports=n("navigator","userAgent")||""},"349e":function(e,t,i){!function(t,n){e.exports=n(i("8bbf"),i("b311"))}(0,(function(e,t){return r={},i.m=n=[function(e,t,i){"use strict";function n(e,t,i,n,r,o,s,a){var l,c,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l&&(u.functional?(u._injectStyles=l,c=u.render,u.render=function(e,t){return l.call(t),c(e,t)}):(a=u.beforeCreate,u.beforeCreate=a?[].concat(a,l):[l])),{exports:e,options:u}}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.r(t);var n,r=i(2),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),s(i(29));var n=s(i(21)),r=s(i(41)),o=i(42);function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"JsonViewer",components:{JsonBox:n.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(e){return e.toLocaleString()}},previewMode:{type:Boolean,default:!1},showArrayIndex:{type:Boolean,default:!0},showDoubleQuotes:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat,onKeyclick:this.onKeyclick}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var e=this.copyable;return{copyText:e.copyText||"copy",copiedText:e.copiedText||"copied!",timeout:e.timeout||2e3,align:e.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var e=this;this.debounceResized=(0,o.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new r.default(this.$refs.clip,{container:this.$refs.viewer,text:function(){return JSON.stringify(e.value,null,2)}}).on("success",(function(t){e.onCopied(t)}))},methods:{onResized:function(){this.debounceResized()},debResized:function(){var e=this;this.$nextTick((function(){e.$refs.jsonBox&&(250<=e.$refs.jsonBox.$el.clientHeight?e.expandableCode=!0:e.expandableCode=!1)}))},onCopied:function(e){var t=this;this.copied||(this.copied=!0,setTimeout((function(){t.copied=!1}),this.copyText.timeout),this.$emit("copied",e))},toggleExpandCode:function(){this.expandCode=!this.expandCode},onKeyclick:function(e){this.$emit("keyclick",e)}}}},function(e,t,i){"use strict";i.r(t);var n,r=i(4),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=d(i(30)),o=d(i(31)),s=d(i(32)),a=d(i(33)),l=d(i(34)),c=d(i(35)),u=d(i(36)),h=d(i(37));function d(e){return e&&e.__esModule?e:{default:e}}t.default={name:"JsonBox",inject:["expandDepth","onKeyclick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean,forceExpand:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:{type:String,default:"$"}},data:function(){return{expand:!0,forceExpandMe:this.forceExpand}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)||this.forceExpandMe},methods:{toggle:function(){this.expand=!this.expand,this.dispatchEvent()},toggleAll:function(){this.expand=!this.expand,this.forceExpandMe=this.expand,this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}},getPath:function(){for(var e=[this.keyName],t=this.$parent;t.depth;)t.$el.classList.contains("jv-node")&&e.push(t.keyName),t=t.$parent;return e.reverse()}},render:function(e){var t=this,i=[],d=void 0;null===this.value||void 0===this.value?d=o.default:Array.isArray(this.value)?d=c.default:"[object Date]"===Object.prototype.toString.call(this.value)?d=h.default:"object"===n(this.value)?d=l.default:"number"==typeof this.value?d=s.default:"string"==typeof this.value?d=r.default:"boolean"==typeof this.value?d=a.default:"function"==typeof this.value&&(d=u.default);var f=this.keyName&&this.value&&(Array.isArray(this.value)||"object"===n(this.value)&&"[object Date]"!==Object.prototype.toString.call(this.value));return!this.previewMode&&f&&i.push(e("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(e){e.altKey?t.toggleAll():t.toggle()}}})),this.keyName&&i.push(e("span",{class:{"jv-key":!0},domProps:{innerText:this.showDoubleQuotes?'"'+this.keyName+'":':this.keyName+":"},on:{click:function(){t.onKeyclick(t.path)}}})),i.push(e(d,{class:{"jv-push":!0},props:{jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,forceExpand:this.forceExpandMe,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path},on:{"update:expand":function(e){t.expand=e},"update:expandAll":function(e){t.expand=e,t.forceExpandMe=t.expand}}})),e("div",{class:{"jv-node":!0,"jv-key-node":Boolean(this.keyName)&&!f,toggle:!this.previewMode&&f}},i)}}},function(e,t,i){"use strict";i.r(t);var n,r=i(6),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/^\w+:\/\//;t.default={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(e){var t=this.jsonValue,i=n.test(t),r=void 0;return this.expand?(r={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"}).domProps=i?{innerHTML:'"'+(t='<a href="'+t+'" target="_blank" class="jv-link">'+t+"</a>").toString()+'"'}:{innerText:'"'+t.toString()+'"'}:r={class:{"jv-ellipsis":!0},on:{click:this.toggle},domProps:{innerText:"..."}},e("span",{},[this.canExtend&&e("span",{class:{"jv-toggle":!0,open:this.expand},on:{click:this.toggle}}),e("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),e("span",r)])}}},function(e,t,i){"use strict";i.r(t);var n,r=i(8),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(e,t){return e("span",{class:{"jv-item":!0,"jv-undefined":!0},domProps:{innerText:null===t.props.jsonValue?"null":"undefined"}})}}},function(e,t,i){"use strict";i.r(t);var n,r=i(10),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(e,t){var i=t.props;t=Number.isInteger(i.jsonValue);return e("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},domProps:{innerText:i.jsonValue.toString()}})}}},function(e,t,i){"use strict";i.r(t);var n,r=i(12),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(e,t){return e("span",{class:{"jv-item":!0,"jv-boolean":!0},domProps:{innerText:t.props.jsonValue.toString()}})}}},function(e,t,i){"use strict";i.r(t);var n,r=i(14),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(21);var n=i&&i.__esModule?i:{default:i};t.default={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,forceExpand:Boolean,sort:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:{}}},computed:{ordered:function(){var e=this;if(!this.sort)return this.value;var t={};return Object.keys(this.value).sort().forEach((function(i){t[i]=e.value[i]})),t}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this;setTimeout((function(){t.value=e}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(e){var t,i=this,r=[];if(this.previewMode||this.keyName||r.push(e("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(e){e.altKey?i.toggleAll():i.toggle()}}})),r.push(e("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"{"}})),this.expand)for(var o in this.ordered)this.ordered.hasOwnProperty(o)&&(t=this.ordered[o],r.push(e(n.default,{key:o,props:{sort:this.sort,keyName:o,depth:this.depth+1,value:t,previewMode:this.previewMode,forceExpand:this.forceExpand,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path+"."+o}})));return!this.expand&&Object.keys(this.value).length&&r.push(e("span",{class:{"jv-ellipsis":!0},on:{click:function(e){e.altKey?i.toggleAll():i.toggle()}},attrs:{title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")"},domProps:{innerText:"..."}})),r.push(e("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"}"}})),e("span",r)}}},function(e,t,i){"use strict";i.r(t);var n,r=i(16),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(21);var n=i&&i.__esModule?i:{default:i};t.default={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,forceExpand:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:[]}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;0===i&&(this.value=[]),setTimeout((function(){e.length>i&&(t.value.push(e[i]),t.setValue(e,i+1))}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(e){var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(e){var t=this,i=[];return this.previewMode||this.keyName||i.push(e("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(e){e.altKey?t.toggleAll():t.toggle()}}})),i.push(e("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"["}})),this.expand&&this.value.forEach((function(r,o){i.push(e(n.default,{key:o,props:{sort:t.sort,keyName:t.showArrayIndex?""+o:"",depth:t.depth+1,value:r,previewMode:t.previewMode,forceExpand:t.forceExpand,showArrayIndex:t.showArrayIndex,showDoubleQuotes:t.showDoubleQuotes,path:t.path+"."+o}}))})),!this.expand&&this.value.length&&i.push(e("span",{class:{"jv-ellipsis":!0},on:{click:function(e){e.altKey?t.toggleAll():t.toggle()}},attrs:{title:"click to reveal "+this.value.length+" hidden items"},domProps:{innerText:"..."}})),i.push(e("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"]"}})),e("span",i)}}},function(e,t,i){"use strict";i.r(t);var n,r=i(18),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(e,t){return e("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:t.props.jsonValue.toString()},domProps:{innerHTML:"<function>"}})}}},function(e,t,i){"use strict";i.r(t);var n,r=i(20),o=i.n(r);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t.default=o.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(e,t){var i=t.props;t=t.injections,i=i.jsonValue;return e("span",{class:{"jv-item":!0,"jv-string":!0},domProps:{innerText:'"'+(0,t.timeformat)(i)+'"'}})}}},function(e,t,i){"use strict";i.r(t);var n,r=i(3);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);i(38);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/json-box.vue",t.default=o.exports},function(e,t,i){"use strict";function n(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{ref:"viewer",class:e.jvClass},[e.copyable?t("div",{class:"jv-tooltip "+(e.copyText.align||"right")},[t("span",{ref:"clip",staticClass:"jv-button",class:{copied:e.copied}},[e._t("copy",(function(){return[e._v("\n "+e._s(e.copied?e.copyText.copiedText:e.copyText.copyText)+"\n ")]}),{copied:e.copied})],2)]):e._e(),e._v(" "),t("div",{staticClass:"jv-code",class:{open:e.expandCode,boxed:e.boxed}},[t("json-box",{ref:"jsonBox",attrs:{value:e.value,sort:e.sort,"preview-mode":e.previewMode,"show-array-index":e.showArrayIndex,"show-double-quotes":e.showDoubleQuotes},on:{keyclick:e.onKeyclick}})],1),e._v(" "),e.expandableCode&&e.boxed?t("div",{staticClass:"jv-more",on:{click:e.toggleExpandCode}},[t("span",{staticClass:"jv-toggle",class:{open:!!e.expandCode}})]):e._e()])}var r=[];n._withStripped=!0,i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return r}))},function(e,t,i){var n=i(39);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0};i(25)(n,r),n.locals&&(e.exports=n.locals)},function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",n=e[3];return n?t&&"function"==typeof btoa?(e=function(e){return e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e),"/*# ".concat(e," */")}(n),t=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")})),[i].concat(t).concat([e]).join("\n")):[i].join("\n"):i}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);n&&r[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},function(e,t,i){var n,r,o,s={},a=(n=function(){return window&&document&&document.all&&!window.atob},function(){return r=void 0===r?n.apply(this,arguments):r}),l=(o={},function(e){if(void 0===o[e]){var t=function(e){return document.querySelector(e)}.call(this,e);if(t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}o[e]=t}return o[e]}),c=null,u=0,h=[],d=i(40);function f(e,t){for(var i=0;i<e.length;i++){var n=e[i],r=s[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(_(n.parts[o],t))}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(_(n.parts[o],t));s[n.id]={id:n.id,refs:1,parts:a}}}}function p(e,t){for(var i=[],n={},r=0;r<e.length;r++){var o=e[r],s=t.base?o[0]+t.base:o[0];o={css:o[1],media:o[2],sourceMap:o[3]};n[s]?n[s].parts.push(o):i.push(n[s]={id:s,parts:[o]})}return i}function g(e,t){var i=l(e.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=h[h.length-1];if("top"===e.insertAt)n?n.nextSibling?i.insertBefore(t,n.nextSibling):i.appendChild(t):i.insertBefore(t,i.firstChild),h.push(t);else if("bottom"===e.insertAt)i.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");e=l(e.insertInto+" "+e.insertAt.before),i.insertBefore(t,e)}}function v(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=h.indexOf(e))&&h.splice(e,1))}function m(e){var t=document.createElement("style");return e.attrs.type="text/css",y(t,e.attrs),g(e,t),t}function y(e,t){Object.keys(t).forEach((function(i){e.setAttribute(i,t[i])}))}function _(e,t){var i,n,r,o,s;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}return r=t.singleton?(s=u++,i=c=c||m(t),n=w.bind(null,i,s,!1),w.bind(null,i,s,!0)):e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=t,s=document.createElement("link"),o.attrs.type="text/css",o.attrs.rel="stylesheet",y(s,o.attrs),g(o,s),i=s,n=function(e,t,i){var n=i.css,r=i.sourceMap;i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(n=d(n)),r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),r=new Blob([n],{type:"text/css"}),n=e.href,e.href=URL.createObjectURL(r),n&&URL.revokeObjectURL(n)}.bind(null,i,t),function(){v(i),i.href&&URL.revokeObjectURL(i.href)}):(i=m(t),n=function(e,t){var i=t.css;t=t.media;if(t&&e.setAttribute("media",t),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,i),function(){v(i)}),n(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||n(e=t):r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var i=p(e,t);return f(i,t),function(e){for(var n=[],r=0;r<i.length;r++){var o=i[r];(a=s[o.id]).refs--,n.push(a)}e&&f(p(e,t),t);var a;for(r=0;r<n.length;r++)if(0===(a=n[r]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete s[a.id]}}};var x,b=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("\n")});function w(e,t,i,n){i=i?"":n.css;e.styleSheet?e.styleSheet.cssText=b(t,i):(n=document.createTextNode(i),(i=e.childNodes)[t]&&e.removeChild(i[t]),i.length?e.insertBefore(n,i[t]):e.appendChild(n))}},function(e,t,i){var n=i(44);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0};i(25)(n,r),n.locals&&(e.exports=n.locals)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(28);var n=i&&i.__esModule?i:{default:i};t.default=Object.assign(n.default,{install:function(e){e.component("JsonViewer",n.default)}})},function(e,t,i){"use strict";i.r(t);var n,r=i(22),o=i(1);for(n in o)"default"!==n&&function(e){i.d(t,e,(function(){return o[e]}))}(n);i(43);var s=i(0);r=Object(s.a)(o.default,r.a,r.b,!1,null,null,null);r.options.__file="lib/json-viewer.vue",t.default=r.exports},function(t,i){t.exports=e},function(e,t,i){"use strict";i.r(t);var n,r=i(5);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-string.vue",t.default=o.exports},function(e,t,i){"use strict";i.r(t);var n,r=i(7);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-undefined.vue",t.default=o.exports},function(e,t,i){"use strict";i.r(t);var n,r=i(9);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-number.vue",t.default=o.exports},function(e,t,i){"use strict";i.r(t);var n,r=i(11);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-boolean.vue",t.default=o.exports},function(e,t,i){"use strict";i.r(t);var n,r=i(13);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-object.vue",t.default=o.exports},function(e,t,i){"use strict";i.r(t);var n,r=i(15);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-array.vue",t.default=o.exports},function(e,t,i){"use strict";i.r(t);var n,r=i(17);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-function.vue",t.default=o.exports},function(e,t,i){"use strict";i.r(t);var n,r=i(19);for(n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);var o=i(0);o=Object(o.a)(r.default,void 0,void 0,!1,null,null,null);o.options.__file="lib/types/json-date.vue",t.default=o.exports},function(e,t,i){"use strict";i(23)},function(e,t,i){(t=i(24)(!1)).push([e.i,".jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}\n",""]),e.exports=t},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var i=t.protocol+"//"+t.host,n=i+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){t=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(t)?e:(t=0===t.indexOf("//")?t:0===t.indexOf("/")?i+t:n+t.replace(/^\.\//,""),"url("+JSON.stringify(t)+")")}))}},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=function(e,t){var i=Date.now(),n=void 0;return function(){for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];Date.now()-i<t&&n&&clearTimeout(n),n=setTimeout((function(){e.apply(void 0,o)}),t),i=Date.now()}}},function(e,t,i){"use strict";i(26)},function(e,t,i){var n=i(24),r=i(45);i=i(46);t=n(!1),i=r(i),t.push([e.i,".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url("+i+');background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}\n',""]),e.exports=t},function(e,t,i){"use strict";e.exports=function(e,t){return t=t||{},"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4="}],i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=27);function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,r}))},"35a1":function(e,t,i){var n=i("f5df"),r=i("dc4a"),o=i("3f8c"),s=i("b622"),a=s("iterator");e.exports=function(e){if(void 0!=e)return r(e,a)||r(e,"@@iterator")||o[n(e)]}},3767:function(e,t,i){var n=i("ca25");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("499e").default;r("34443de6",n,!0,{sourceMap:!1,shadowMode:!1})},"37e8":function(e,t,i){var n=i("83ab"),r=i("aed9"),o=i("9bf2"),s=i("825a"),a=i("fc6a"),l=i("df75");t.f=n&&!r?Object.defineProperties:function(e,t){s(e);var i,n=a(t),r=l(t),c=r.length,u=0;while(c>u)o.f(e,i=r[u++],n[i]);return e}},"38cf":function(e,t,i){var n=i("23e7"),r=i("1148");n({target:"String",proto:!0},{repeat:r})},"3a9b":function(e,t,i){var n=i("e330");e.exports=n({}.isPrototypeOf)},"3bbe":function(e,t,i){var n=i("da84"),r=i("1626"),o=n.String,s=n.TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},"3ca3":function(e,t,i){"use strict";var n=i("6547").charAt,r=i("577e"),o=i("69f3"),s=i("7dd0"),a="String Iterator",l=o.set,c=o.getterFor(a);s(String,"String",(function(e){l(this,{type:a,string:r(e),index:0})}),(function(){var e,t=c(this),i=t.string,r=t.index;return r>=i.length?{value:void 0,done:!0}:(e=n(i,r),t.index+=e.length,{value:e,done:!1})}))},"3f6f":function(e,t,i){var n=i("4bad");t=n(!1),t.push([e.i,".t-header-pin[data-v-d87614ca]{display:inline-block;position:absolute;z-index:100;right:13px;top:7px;cursor:pointer}",""]),e.exports=t},"3f8c":function(e,t){e.exports={}},"408a":function(e,t,i){var n=i("e330");e.exports=n(1..valueOf)},"40d5":function(e,t,i){var n=i("d039");e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"428f":function(e,t,i){var n=i("da84");e.exports=n},"44ad":function(e,t,i){var n=i("da84"),r=i("e330"),o=i("d039"),s=i("c6b6"),a=n.Object,l=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?l(e,""):a(e)}:a},"44d2":function(e,t,i){var n=i("b622"),r=i("7c73"),o=i("9bf2"),s=n("unscopables"),a=Array.prototype;void 0==a[s]&&o.f(a,s,{configurable:!0,value:r(null)}),e.exports=function(e){a[s][e]=!0}},"44de":function(e,t,i){var n=i("da84");e.exports=function(e,t){var i=n.console;i&&i.error&&(1==arguments.length?i.error(e):i.error(e,t))}},"44e7":function(e,t,i){var n=i("861d"),r=i("c6b6"),o=i("b622"),s=o("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},"466d":function(e,t,i){"use strict";var n=i("c65b"),r=i("d784"),o=i("825a"),s=i("50c4"),a=i("577e"),l=i("1d80"),c=i("dc4a"),u=i("8aa5"),h=i("14c3");r("match",(function(e,t,i){return[function(t){var i=l(this),r=void 0==t?void 0:c(t,e);return r?n(r,t,i):new RegExp(t)[e](a(i))},function(e){var n=o(this),r=a(e),l=i(t,n,r);if(l.done)return l.value;if(!n.global)return h(n,r);var c=n.unicode;n.lastIndex=0;var d,f=[],p=0;while(null!==(d=h(n,r))){var g=a(d[0]);f[p]=g,""===g&&(n.lastIndex=u(r,s(n.lastIndex),c)),p++}return 0===p?null:f}]}))},4840:function(e,t,i){var n=i("825a"),r=i("5087"),o=i("b622"),s=o("species");e.exports=function(e,t){var i,o=n(e).constructor;return void 0===o||void 0==(i=n(o)[s])?t:r(i)}},"485a":function(e,t,i){var n=i("da84"),r=i("c65b"),o=i("1626"),s=i("861d"),a=n.TypeError;e.exports=function(e,t){var i,n;if("string"===t&&o(i=e.toString)&&!s(n=r(i,e)))return n;if(o(i=e.valueOf)&&!s(n=r(i,e)))return n;if("string"!==t&&o(i=e.toString)&&!s(n=r(i,e)))return n;throw a("Can't convert object to primitive value")}},4930:function(e,t,i){var n=i("2d00"),r=i("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"498a":function(e,t,i){"use strict";var n=i("23e7"),r=i("58a8").trim,o=i("c8d2");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return r(this)}})},"499e":function(e,t,i){"use strict";function n(e,t){for(var i=[],n={},r=0;r<t.length;r++){var o=t[r],s=o[0],a=o[1],l=o[2],c=o[3],u={id:e+":"+r,css:a,media:l,sourceMap:c};n[s]?n[s].parts.push(u):i.push(n[s]={id:s,parts:[u]})}return i}i.r(t),i.d(t,"default",(function(){return p}));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={},s=r&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,i,r){c=i,h=r||{};var s=n(e,t);return g(s),function(t){for(var i=[],r=0;r<s.length;r++){var a=s[r],l=o[a.id];l.refs--,i.push(l)}t?(s=n(e,t),g(s)):s=[];for(r=0;r<i.length;r++){l=i[r];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function g(e){for(var t=0;t<e.length;t++){var i=e[t],n=o[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(m(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{var s=[];for(r=0;r<i.parts.length;r++)s.push(m(i.parts[r]));o[i.id]={id:i.id,refs:1,parts:s}}}}function v(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function m(e){var t,i,n=document.querySelector("style["+d+'~="'+e.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n)}if(f){var r=l++;n=a||(a=v()),t=_.bind(null,n,r,!1),i=_.bind(null,n,r,!0)}else n=v(),t=x.bind(null,n),i=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else i()}}var y=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}();function _(e,t,i,n){var r=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function x(e,t){var i=t.css,n=t.media,r=t.sourceMap;if(n&&e.setAttribute("media",n),h.ssrId&&e.setAttribute(d,t.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}},"4ae1":function(e,t,i){var n=i("23e7"),r=i("d066"),o=i("2ba4"),s=i("0538"),a=i("5087"),l=i("825a"),c=i("861d"),u=i("7c73"),h=i("d039"),d=r("Reflect","construct"),f=Object.prototype,p=[].push,g=h((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),v=!h((function(){d((function(){}))})),m=g||v;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){a(e),l(t);var i=arguments.length<3?e:a(arguments[2]);if(v&&!g)return d(e,t,i);if(e==i){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return o(p,n,t),new(o(s,e,n))}var r=i.prototype,h=u(c(r)?r:f),m=o(e,h,t);return c(m)?m:h}})},"4bad":function(e,t,i){"use strict";function n(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"===typeof btoa){var o=r(n),s=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(s).concat([o]).join("\n")}return[i].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(i," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=n(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"===typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);n&&r[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},"4d63":function(e,t,i){var n=i("83ab"),r=i("da84"),o=i("e330"),s=i("94ca"),a=i("7156"),l=i("9112"),c=i("9bf2").f,u=i("241c").f,h=i("3a9b"),d=i("44e7"),f=i("577e"),p=i("ad6d"),g=i("9f7f"),v=i("6eeb"),m=i("d039"),y=i("1a2d"),_=i("69f3").enforce,x=i("2626"),b=i("b622"),w=i("fce3"),S=i("107c"),C=b("match"),A=r.RegExp,M=A.prototype,k=r.SyntaxError,T=o(p),I=o(M.exec),L=o("".charAt),E=o("".replace),D=o("".indexOf),O=o("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,B=/a/g,N=new A(R)!==R,z=g.MISSED_STICKY,H=g.UNSUPPORTED_Y,F=n&&(!N||z||w||S||m((function(){return B[C]=!1,A(R)!=R||A(B)==B||"/a/i"!=A(R,"i")}))),V=function(e){for(var t,i=e.length,n=0,r="",o=!1;n<=i;n++)t=L(e,n),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),r+=t):r+="[\\s\\S]":r+=t+L(e,++n);return r},j=function(e){for(var t,i=e.length,n=0,r="",o=[],s={},a=!1,l=!1,c=0,u="";n<=i;n++){if(t=L(e,n),"\\"===t)t+=L(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:I(P,O(e,n+1))&&(n+=2,l=!0),r+=t,c++;continue;case">"===t&&l:if(""===u||y(s,u))throw new k("Invalid capture group name");s[u]=!0,o[o.length]=[u,c],l=!1,u="";continue}l?u+=t:r+=t}return[r,o]};if(s("RegExp",F)){for(var $=function(e,t){var i,n,r,o,s,c,u=h(M,this),p=d(e),g=void 0===t,v=[],m=e;if(!u&&p&&g&&e.constructor===$)return e;if((p||h(M,e))&&(e=e.source,g&&(t="flags"in m?m.flags:T(m))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),m=e,w&&"dotAll"in R&&(n=!!t&&D(t,"s")>-1,n&&(t=E(t,/s/g,""))),i=t,z&&"sticky"in R&&(r=!!t&&D(t,"y")>-1,r&&H&&(t=E(t,/y/g,""))),S&&(o=j(e),e=o[0],v=o[1]),s=a(A(e,t),u?this:M,$),(n||r||v.length)&&(c=_(s),n&&(c.dotAll=!0,c.raw=$(V(e),i)),r&&(c.sticky=!0),v.length&&(c.groups=v)),e!==m)try{l(s,"source",""===m?"(?:)":m)}catch(y){}return s},W=function(e){e in $||c($,e,{configurable:!0,get:function(){return A[e]},set:function(t){A[e]=t}})},G=u(A),U=0;G.length>U;)W(G[U++]);M.constructor=$,$.prototype=M,v(r,"RegExp",$)}x("RegExp")},"4d64":function(e,t,i){var n=i("fc6a"),r=i("23cb"),o=i("07fa"),s=function(e){return function(t,i,s){var a,l=n(t),c=o(l),u=r(s,c);if(e&&i!=i){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4dae":function(e,t,i){var n=i("da84"),r=i("23cb"),o=i("07fa"),s=i("8418"),a=n.Array,l=Math.max;e.exports=function(e,t,i){for(var n=o(e),c=r(t,n),u=r(void 0===i?n:i,n),h=a(l(u-c,0)),d=0;c<u;c++,d++)s(h,d,e[c]);return h.length=d,h}},"4de4":function(e,t,i){"use strict";var n=i("23e7"),r=i("b727").filter,o=i("1dde"),s=o("filter");n({target:"Array",proto:!0,forced:!s},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,i){"use strict";var n=i("da84"),r=i("0366"),o=i("c65b"),s=i("7b0b"),a=i("9bdd"),l=i("e95a"),c=i("68ee"),u=i("07fa"),h=i("8418"),d=i("9a1f"),f=i("35a1"),p=n.Array;e.exports=function(e){var t=s(e),i=c(this),n=arguments.length,g=n>1?arguments[1]:void 0,v=void 0!==g;v&&(g=r(g,n>2?arguments[2]:void 0));var m,y,_,x,b,w,S=f(t),C=0;if(!S||this==p&&l(S))for(m=u(t),y=i?new this(m):p(m);m>C;C++)w=v?g(t[C],C):t[C],h(y,C,w);else for(x=d(t,S),b=x.next,y=i?new this:[];!(_=o(b,x)).done;C++)w=v?a(x,g,[_.value,C],!0):_.value,h(y,C,w);return y.length=C,y}},"4e82":function(e,t,i){"use strict";var n=i("23e7"),r=i("e330"),o=i("59ed"),s=i("7b0b"),a=i("07fa"),l=i("577e"),c=i("d039"),u=i("addb"),h=i("a640"),d=i("04d1"),f=i("d998"),p=i("2d00"),g=i("512c"),v=[],m=r(v.sort),y=r(v.push),_=c((function(){v.sort(void 0)})),x=c((function(){v.sort(null)})),b=h("sort"),w=!c((function(){if(p)return p<70;if(!(d&&d>3)){if(f)return!0;if(g)return g<603;var e,t,i,n,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)v.push({k:t+n,v:i})}for(v.sort((function(e,t){return t.v-e.v})),n=0;n<v.length;n++)t=v[n].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}})),S=_||!x||!b||!w,C=function(e){return function(t,i){return void 0===i?-1:void 0===t?1:void 0!==e?+e(t,i)||0:l(t)>l(i)?1:-1}};n({target:"Array",proto:!0,forced:S},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(w)return void 0===e?m(t):m(t,e);var i,n,r=[],l=a(t);for(n=0;n<l;n++)n in t&&y(r,t[n]);u(r,C(e)),i=r.length,n=0;while(n<i)t[n]=r[n++];while(n<l)delete t[n++];return t}})},5087:function(e,t,i){var n=i("da84"),r=i("68ee"),o=i("0d51"),s=n.TypeError;e.exports=function(e){if(r(e))return e;throw s(o(e)+" is not a constructor")}},"50c4":function(e,t,i){var n=i("5926"),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},"512c":function(e,t,i){var n=i("342f"),r=n.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},"525b":function(e){e.exports=JSON.parse('{"c0":"rgb(0,0,0)","c1":"rgb(128,0,0)","c2":"rgb(0,128,0)","c3":"rgb(128,128,0)","c4":"rgb(0,0,128)","c5":"rgb(128,0,128)","c6":"rgb(0,128,128)","c7":"rgb(192,192,192)","c8":"rgb(128,128,128)","c9":"rgb(255,0,0)","c10":"rgb(0,255,0)","c11":"rgb(255,255,0)","c12":"rgb(0,0,255)","c13":"rgb(255,0,255)","c14":"rgb(0,255,255)","c15":"rgb(255,255,255)","c16":"rgb(0,0,0)","c17":"rgb(0,0,95)","c18":"rgb(0,0,135)","c19":"rgb(0,0,175)","c20":"rgb(0,0,215)","c21":"rgb(0,0,255)","c22":"rgb(0,95,0)","c23":"rgb(0,95,95)","c24":"rgb(0,95,135)","c25":"rgb(0,95,175)","c26":"rgb(0,95,215)","c27":"rgb(0,95,255)","c28":"rgb(0,135,0)","c29":"rgb(0,135,95)","c30":"rgb(0,135,135)","c31":"rgb(0,135,175)","c32":"rgb(0,135,215)","c33":"rgb(0,135,255)","c34":"rgb(0,175,0)","c35":"rgb(0,175,95)","c36":"rgb(0,175,135)","c37":"rgb(0,175,175)","c38":"rgb(0,175,215)","c39":"rgb(0,175,255)","c40":"rgb(0,215,0)","c41":"rgb(0,215,95)","c42":"rgb(0,215,135)","c43":"rgb(0,215,175)","c44":"rgb(0,215,215)","c45":"rgb(0,215,255)","c46":"rgb(0,255,0)","c47":"rgb(0,255,95)","c48":"rgb(0,255,135)","c49":"rgb(0,255,175)","c50":"rgb(0,255,215)","c51":"rgb(0,255,255)","c52":"rgb(95,0,0)","c53":"rgb(95,0,95)","c54":"rgb(95,0,135)","c55":"rgb(95,0,175)","c56":"rgb(95,0,215)","c57":"rgb(95,0,255)","c58":"rgb(95,95,0)","c59":"rgb(95,95,95)","c60":"rgb(95,95,135)","c61":"rgb(95,95,175)","c62":"rgb(95,95,215)","c63":"rgb(95,95,255)","c64":"rgb(95,135,0)","c65":"rgb(95,135,95)","c66":"rgb(95,135,135)","c67":"rgb(95,135,175)","c68":"rgb(95,135,215)","c69":"rgb(95,135,255)","c70":"rgb(95,175,0)","c71":"rgb(95,175,95)","c72":"rgb(95,175,135)","c73":"rgb(95,175,175)","c74":"rgb(95,175,215)","c75":"rgb(95,175,255)","c76":"rgb(95,215,0)","c77":"rgb(95,215,95)","c78":"rgb(95,215,135)","c79":"rgb(95,215,175)","c80":"rgb(95,215,215)","c81":"rgb(95,215,255)","c82":"rgb(95,255,0)","c83":"rgb(95,255,95)","c84":"rgb(95,255,135)","c85":"rgb(95,255,175)","c86":"rgb(95,255,215)","c87":"rgb(95,255,255)","c88":"rgb(135,0,0)","c89":"rgb(135,0,95)","c90":"rgb(135,0,135)","c91":"rgb(135,0,175)","c92":"rgb(135,0,215)","c93":"rgb(135,0,255)","c94":"rgb(135,95,0)","c95":"rgb(135,95,95)","c96":"rgb(135,95,135)","c97":"rgb(135,95,175)","c98":"rgb(135,95,215)","c99":"rgb(135,95,255)","c100":"rgb(135,135,0)","c101":"rgb(135,135,95)","c102":"rgb(135,135,135)","c103":"rgb(135,135,175)","c104":"rgb(135,135,215)","c105":"rgb(135,135,255)","c106":"rgb(135,175,0)","c107":"rgb(135,175,95)","c108":"rgb(135,175,135)","c109":"rgb(135,175,175)","c110":"rgb(135,175,215)","c111":"rgb(135,175,255)","c112":"rgb(135,215,0)","c113":"rgb(135,215,95)","c114":"rgb(135,215,135)","c115":"rgb(135,215,175)","c116":"rgb(135,215,215)","c117":"rgb(135,215,255)","c118":"rgb(135,255,0)","c119":"rgb(135,255,95)","c120":"rgb(135,255,135)","c121":"rgb(135,255,175)","c122":"rgb(135,255,215)","c123":"rgb(135,255,255)","c124":"rgb(175,0,0)","c125":"rgb(175,0,95)","c126":"rgb(175,0,135)","c127":"rgb(175,0,175)","c128":"rgb(175,0,215)","c129":"rgb(175,0,255)","c130":"rgb(175,95,0)","c131":"rgb(175,95,95)","c132":"rgb(175,95,135)","c133":"rgb(175,95,175)","c134":"rgb(175,95,215)","c135":"rgb(175,95,255)","c136":"rgb(175,135,0)","c137":"rgb(175,135,95)","c138":"rgb(175,135,135)","c139":"rgb(175,135,175)","c140":"rgb(175,135,215)","c141":"rgb(175,135,255)","c142":"rgb(175,175,0)","c143":"rgb(175,175,95)","c144":"rgb(175,175,135)","c145":"rgb(175,175,175)","c146":"rgb(175,175,215)","c147":"rgb(175,175,255)","c148":"rgb(175,215,0)","c149":"rgb(175,215,95)","c150":"rgb(175,215,135)","c151":"rgb(175,215,175)","c152":"rgb(175,215,215)","c153":"rgb(175,215,255)","c154":"rgb(175,255,0)","c155":"rgb(175,255,95)","c156":"rgb(175,255,135)","c157":"rgb(175,255,175)","c158":"rgb(175,255,215)","c159":"rgb(175,255,255)","c160":"rgb(215,0,0)","c161":"rgb(215,0,95)","c162":"rgb(215,0,135)","c163":"rgb(215,0,175)","c164":"rgb(215,0,215)","c165":"rgb(215,0,255)","c166":"rgb(215,95,0)","c167":"rgb(215,95,95)","c168":"rgb(215,95,135)","c169":"rgb(215,95,175)","c170":"rgb(215,95,215)","c171":"rgb(215,95,255)","c172":"rgb(215,135,0)","c173":"rgb(215,135,95)","c174":"rgb(215,135,135)","c175":"rgb(215,135,175)","c176":"rgb(215,135,215)","c177":"rgb(215,135,255)","c178":"rgb(215,175,0)","c179":"rgb(215,175,95)","c180":"rgb(215,175,135)","c181":"rgb(215,175,175)","c182":"rgb(215,175,215)","c183":"rgb(215,175,255)","c184":"rgb(215,215,0)","c185":"rgb(215,215,95)","c186":"rgb(215,215,135)","c187":"rgb(215,215,175)","c188":"rgb(215,215,215)","c189":"rgb(215,215,255)","c190":"rgb(215,255,0)","c191":"rgb(215,255,95)","c192":"rgb(215,255,135)","c193":"rgb(215,255,175)","c194":"rgb(215,255,215)","c195":"rgb(215,255,255)","c196":"rgb(255,0,0)","c197":"rgb(255,0,95)","c198":"rgb(255,0,135)","c199":"rgb(255,0,175)","c200":"rgb(255,0,215)","c201":"rgb(255,0,255)","c202":"rgb(255,95,0)","c203":"rgb(255,95,95)","c204":"rgb(255,95,135)","c205":"rgb(255,95,175)","c206":"rgb(255,95,215)","c207":"rgb(255,95,255)","c208":"rgb(255,135,0)","c209":"rgb(255,135,95)","c210":"rgb(255,135,135)","c211":"rgb(255,135,175)","c212":"rgb(255,135,215)","c213":"rgb(255,135,255)","c214":"rgb(255,175,0)","c215":"rgb(255,175,95)","c216":"rgb(255,175,135)","c217":"rgb(255,175,175)","c218":"rgb(255,175,215)","c219":"rgb(255,175,255)","c220":"rgb(255,215,0)","c221":"rgb(255,215,95)","c222":"rgb(255,215,135)","c223":"rgb(255,215,175)","c224":"rgb(255,215,215)","c225":"rgb(255,215,255)","c226":"rgb(255,255,0)","c227":"rgb(255,255,95)","c228":"rgb(255,255,135)","c229":"rgb(255,255,175)","c230":"rgb(255,255,215)","c231":"rgb(255,255,255)","c232":"rgb(8,8,8)","c233":"rgb(18,18,18)","c234":"rgb(28,28,28)","c235":"rgb(38,38,38)","c236":"rgb(48,48,48)","c237":"rgb(58,58,58)","c238":"rgb(68,68,68)","c239":"rgb(78,78,78)","c240":"rgb(88,88,88)","c241":"rgb(98,98,98)","c242":"rgb(108,108,108)","c243":"rgb(118,118,118)","c244":"rgb(128,128,128)","c245":"rgb(138,138,138)","c246":"rgb(148,148,148)","c247":"rgb(158,158,158)","c248":"rgb(168,168,168)","c249":"rgb(178,178,178)","c250":"rgb(188,188,188)","c251":"rgb(198,198,198)","c252":"rgb(208,208,208)","c253":"rgb(218,218,218)","c254":"rgb(228,228,228)","c255":"rgb(238,238,238)"}')},5319:function(e,t,i){"use strict";var n=i("2ba4"),r=i("c65b"),o=i("e330"),s=i("d784"),a=i("d039"),l=i("825a"),c=i("1626"),u=i("5926"),h=i("50c4"),d=i("577e"),f=i("1d80"),p=i("8aa5"),g=i("dc4a"),v=i("0cb2"),m=i("14c3"),y=i("b622"),_=y("replace"),x=Math.max,b=Math.min,w=o([].concat),S=o([].push),C=o("".indexOf),A=o("".slice),M=function(e){return void 0===e?e:String(e)},k=function(){return"$0"==="a".replace(/./,"$0")}(),T=function(){return!!/./[_]&&""===/./[_]("a","$0")}(),I=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,i){var o=T?"$":"$0";return[function(e,i){var n=f(this),o=void 0==e?void 0:g(e,_);return o?r(o,e,n,i):r(t,d(n),e,i)},function(e,r){var s=l(this),a=d(e);if("string"==typeof r&&-1===C(r,o)&&-1===C(r,"$<")){var f=i(t,s,a,r);if(f.done)return f.value}var g=c(r);g||(r=d(r));var y=s.global;if(y){var _=s.unicode;s.lastIndex=0}var k=[];while(1){var T=m(s,a);if(null===T)break;if(S(k,T),!y)break;var I=d(T[0]);""===I&&(s.lastIndex=p(a,h(s.lastIndex),_))}for(var L="",E=0,D=0;D<k.length;D++){T=k[D];for(var O=d(T[0]),P=x(b(u(T.index),a.length),0),R=[],B=1;B<T.length;B++)S(R,M(T[B]));var N=T.groups;if(g){var z=w([O],R,P,a);void 0!==N&&S(z,N);var H=d(n(r,void 0,z))}else H=v(O,a,P,R,N,r);P>=E&&(L+=A(a,E,P)+H,E=P+O.length)}return L+A(a,E)}]}),!I||!k||T)},5628:function(e,t,i){var n=i("4bad");t=n(!1),t.push([e.i,':root{--t-point-size:15px}.t-log-box{display:block;-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0}.t-shell-dot{opacity:0;transition:opacity .2s ease;-moz-transition:opacity .2s ease;-ms-transition:opacity .2s ease;-webkit-transition:opacity .2s ease;-o-transition:opacity .2s ease;margin-bottom:0}.t-shell-dots:hover .t-shell-dot{opacity:1}.t-container{position:relative;margin:0;padding:0;border-radius:15px;background-color:var(--t-main-background-color);box-shadow:var(--t-window-box-shadow);-moz-box-shadow:var(--t-window-box-shadow);-webkit-box-shadow:var(--t-window-box-shadow);-o-box-shadow:var(--t-window-box-shadow)}.t-header-container{position:relative;z-index:2;top:0;right:0;left:0}.t-header{text-align:center;padding:2px;background-color:var(--t-header-background-color)}.t-header h4{font-size:14px;margin:5px;letter-spacing:1px;color:var(--t-header-font-color)}.t-header ul.t-shell-dots{position:absolute;top:3px;left:8px;padding-left:0;margin:0}.t-header ul.t-shell-dots li{display:inline-block;width:16px;height:16px;border-radius:10px;margin-left:6px;margin-top:4px;line-height:16px;cursor:pointer}.t-header ul .t-shell-dots-red{background-color:#c83030}.t-header ul .t-shell-dots-yellow{background-color:#f7db60}.t-header ul .t-shell-dots-green{background-color:#2ec971}.t-ask-input,.t-crude-font,.t-window,.t-window div,.t-window p{font-size:13px;font-family:Monaco,Menlo,Consolas,monospace}.t-window{position:absolute;top:0;left:0;right:0;overflow:auto;z-index:1;max-height:none;min-height:140px;padding:0 20px 0 20px;font-weight:400;line-height:20px;cursor:text;background-color:var(--t-main-background-color);color:var(--t-main-font-color)}.t-window .prompt:before{content:"$";margin-right:10px;word-wrap:break-word}.t-window p{overflow-wrap:break-word;word-break:break-all}.t-window p .cmd{line-height:24px}@-webkit-keyframes cursor-flash{0%,to{opacity:0}50%{opacity:1}}@keyframes cursor-flash{0%,to{opacity:0}50%{opacity:1}}.t-window .cursor{animation:cursor-flash 1s infinite;-webkit-animation:cursor-flash 1s infinite;-o-animation:cursor-flash 1s infinite;-moz-animation:cursor-flash 1s infinite;position:absolute;height:16px;margin-top:1px;background-color:var(--t-cursor-color)}.t-a{color:var(--t-link-color)}.t-a:hover{color:var(--t-link-hover-color)}.t-ask-input{max-width:300px;background:none;padding:0;display:inline-block;color:var(--t-main-font-color)}.t-ask-input,.t-ask-input:focus,.t-ask-input:focus-visible{border:none;outline:none}.t-cmd-input{position:relative;border:none;width:1px;opacity:0;cursor:text;padding:1px 2px;-webkit-writing-mode:horizontal-tb!important;text-rendering:auto;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-shadow:none;display:inline-block;text-align:start;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;-webkit-rtl-ordering:logical;-o-border-image:initial;border-image:initial;word-wrap:break-word;margin:0;background-color:var(--t-main-background-color)}.t-content-normal .error,.t-content-normal .info,.t-content-normal .success,.t-content-normal .system,.t-content-normal .warning{padding:2px 3px;color:var(--t-tag-font-color)}.t-content-normal .success{background-color:#27ae60}.t-content-normal .error{background-color:#c0392b}.t-content-normal .warning{background-color:#f39c12}.t-content-normal .info{background-color:#2980b9}.t-content-normal .system{background-color:#8697a2}.t-crude-font{font-weight:600}.t-flag{opacity:0}.t-last-line{font-size:0;word-spacing:0;letter-spacing:0;position:relative}.t-help-msg{min-height:20px;margin:-8px 0 10px 0;color:var(--t-cmd-help-msg-color)}@media screen and (max-width:768px){.t-window{padding:0 15px 0 15px}}.t-cmd-line{font-size:0}.t-cmd-line-content{font-size:13px;word-break:break-all}.t-cmd-key{font-weight:700;color:var(--t-cmd-key-color)}.t-cmd-arg{color:var(--t-cmd-arg-color)}.t-cmd-splitter{color:var(--t-cmd-splitter-color)}.t-help-list{margin:0;list-style:none;padding-left:0;display:inline-grid;display:-moz-inline-grid;display:-ms-inline-grid}.t-help-list li{margin:3px 0}.t-cmd-help{position:absolute;top:15px;right:15px;z-index:99;max-width:50%;padding:5px;overflow:auto;max-height:calc(100% - 60px);background-color:var(--t-cmd-help-background-color);color:var(--t-main-font-color);box-shadow:var(--t-cmd-help-box-shadow)}.t-cmd-help code{border:none;padding:2px 5px 2px 5px;border-radius:3px;color:var(--t-cmd-help-code-font-color);background-color:var(--t-cmd-help-code-background-color)!important}.t-cmd-help-eg{float:left;width:30px;display:flex;font-size:13px;line-height:26px}.t-cmd-help-example{float:left;width:calc(100% - 30px);display:flex}.t-cmd-help-des{font-size:13px}.t-pre-numbering{margin-top:0;position:absolute;top:0;left:-30px;width:30px;text-align:center;padding:1em 0}.t-pre-numbering li{list-style:none;font-size:1em}pre{position:relative;margin:0}.t-example-ul{padding:0 0 0 10px;margin:0;list-style:none}.t-table{max-width:100%;overflow:auto;padding:0;margin:0}.t-border-dashed{border-collapse:collapse;border:var(--t-table-border)}.t-table thead{font-weight:600}.t-table,.t-table tbody,.t-table td,.t-table thead,.t-table tr{margin:0;padding:15px}.t-code{position:relative;max-height:500px;overflow:auto}.t-vue-codemirror div,.t-vue-highlight div{font-size:14px}.t-code .t-vue-codemirror .vue-codemirror .CodeMirror{height:unset;border:none}.t-text-editor-container{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1}.t-text-editor{width:calc(100% - 10px);height:calc(100% - 35px);overflow:auto;resize:none;margin:0;padding:0 5px;border:none;font-size:15px;color:var(--t-main-font-color);background-color:var(--t-main-background-color)}.t-text-editor:focus,.t-text-editor:focus-visible{outline:none;outline-offset:unset}.t-text-editor-floor{position:absolute;height:35px;width:100%;bottom:0;left:0;background-color:var(--t-text-editor-floor-background-color)}.t-text-editor-floor-btn{border:none;outline:none;margin-top:10px;cursor:pointer;background-color:transparent}.t-close-btn{color:var(--t-text-editor-floor-close-btn-color)}.t-save-btn{color:var(--t-text-editor-floor-save-btn-color)}.t-text-editor-floor-btn:hover{color:var(--t-text-editor-floor-btn-hover-color)}.t-disable-select{user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-selece:none}.t-point{width:var(--t-point-size);height:var(--t-point-size);background-color:transparent;position:absolute;z-index:100}.t-point-lt{left:calc(0px - var(--t-point-size)/2);cursor:nwse-resize}.t-point-lt,.t-point-rt{top:calc(0px - var(--t-point-size)/2)}.t-point-rt{left:calc(100% - var(--t-point-size)/2);cursor:nesw-resize}.t-point-lb{left:calc(0px - var(--t-point-size)/2);cursor:nesw-resize}.t-point-lb,.t-point-rb{top:calc(100% - var(--t-point-size)/2)}.t-point-rb{left:calc(100% - var(--t-point-size)/2);cursor:nwse-resize}.t-code-default{background-color:var(--t-code-default-background-color)}.t-json-container .jv-container.jv-light{border:none;background-color:var(--t-json-background-color);color:var(--t-main-font-color)}.t-json-container .jv-container .jv-code,.t-json-container .jv-container .jv-code.open{padding-bottom:0}.t-json-container .jv-container{display:inline-block;min-width:300px}.t-json-container .jv-container.jv-light .jv-item.jv-array,.t-json-container .jv-container.jv-light .jv-item.jv-object{color:var(--t-json-value-obj-color)}.t-json-container .jv-container.jv-light .jv-key{color:var(--t-main-font-color)}.t-json-container .jv-container.jv-light .jv-item.jv-boolean{color:var(--t-json-value-bool-color)}.t-json-container .jv-container.jv-light .jv-item.jv-number{color:var(--t-json-value-number-color)}.t-json-container .jv-container.jv-light .jv-ellipsis{color:var(--t-main-font-color);background-color:var(--t-json-ellipsis-background-color)}.t-json-container .jv-container .jv-more:after{background:var(--t-json-more-background-webkit);background:var(--t-json-more-background)}.t-json-deep-selector{margin-top:8px;width:75px;position:absolute;margin-left:-150px;font-size:10px;border-radius:2px;cursor:pointer;border:1px solid var(--t-json-deep-selector-border-color)}.t-json-deep-selector:focus,.t-json-deep-selector:focus-visible{outline:none}.t-window a::-moz-selection,.t-window br::-moz-selection,.t-window code::-moz-selection,.t-window div::-moz-selection,.t-window li::-moz-selection,.t-window p::-moz-selection,.t-window span::-moz-selection,.t-window td::-moz-selection,.t-window th::-moz-selection{color:var(--t-selection-font-color);background-color:var(--t-selection-background-color)}.t-window a::selection,.t-window br::selection,.t-window code::selection,.t-window div::selection,.t-window li::selection,.t-window p::selection,.t-window span::selection,.t-window td::selection,.t-window th::selection{color:var(--t-selection-font-color);background-color:var(--t-selection-background-color)}',""]),e.exports=t},5692:function(e,t,i){var n=i("c430"),r=i("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,i){var n=i("d066"),r=i("e330"),o=i("241c"),s=i("7418"),a=i("825a"),l=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),i=s.f;return i?l(t,i(e)):t}},"577e":function(e,t,i){var n=i("da84"),r=i("f5df"),o=n.String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,i){var n=i("e330"),r=i("1d80"),o=i("577e"),s=i("5899"),a=n("".replace),l="["+s+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),h=function(e){return function(t){var i=o(r(t));return 1&e&&(i=a(i,c,"")),2&e&&(i=a(i,u,"")),i}};e.exports={start:h(1),end:h(2),trim:h(3)}},5926:function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?n:i)(t)}},"59ed":function(e,t,i){var n=i("da84"),r=i("1626"),o=i("0d51"),s=n.TypeError;e.exports=function(e){if(r(e))return e;throw s(o(e)+" is not a function")}},"5a34":function(e,t,i){var n=i("da84"),r=i("44e7"),o=n.TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e77":function(e,t,i){var n=i("83ab"),r=i("1a2d"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},"5f39":function(e,t,i){var n=i("3f6f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("499e").default;r("335912d8",n,!0,{sourceMap:!1,shadowMode:!1})},"605d":function(e,t,i){var n=i("c6b6"),r=i("da84");e.exports="process"==n(r.process)},6069:function(e,t){e.exports="object"==typeof window},6547:function(e,t,i){var n=i("e330"),r=i("5926"),o=i("577e"),s=i("1d80"),a=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,i){var n,u,h=o(s(t)),d=r(i),f=h.length;return d<0||d>=f?e?"":void 0:(n=l(h,d),n<55296||n>56319||d+1===f||(u=l(h,d+1))<56320||u>57343?e?a(h,d):n:e?c(h,d,d+2):u-56320+(n-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(e,t,i){var n=i("0b42");e.exports=function(e,t){return new(n(e))(0===t?0:t)}},"68ee":function(e,t,i){var n=i("e330"),r=i("d039"),o=i("1626"),s=i("f5df"),a=i("d066"),l=i("8925"),c=function(){},u=[],h=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),p=!d.exec(c),g=function(e){if(!o(e))return!1;try{return h(c,u,e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(t){return!0}};v.sham=!0,e.exports=!h||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g},"69f3":function(e,t,i){var n,r,o,s=i("7f9a"),a=i("da84"),l=i("e330"),c=i("861d"),u=i("9112"),h=i("1a2d"),d=i("c6cd"),f=i("f772"),p=i("d012"),g="Object already initialized",v=a.TypeError,m=a.WeakMap,y=function(e){return o(e)?r(e):n(e,{})},_=function(e){return function(t){var i;if(!c(t)||(i=r(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return i}};if(s||d.state){var x=d.state||(d.state=new m),b=l(x.get),w=l(x.has),S=l(x.set);n=function(e,t){if(w(x,e))throw new v(g);return t.facade=e,S(x,e,t),t},r=function(e){return b(x,e)||{}},o=function(e){return w(x,e)}}else{var C=f("state");p[C]=!0,n=function(e,t){if(h(e,C))throw new v(g);return t.facade=e,u(e,C,t),t},r=function(e){return h(e,C)?e[C]:{}},o=function(e){return h(e,C)}}e.exports={set:n,get:r,has:o,enforce:y,getterFor:_}},"6ad6":function(e,t,i){var n=i("4bad");t=n(!1),t.push([e.i,".t-editor[data-v-7bf1e77a]{width:100%;height:100%}",""]),e.exports=t},"6eeb":function(e,t,i){var n=i("da84"),r=i("1626"),o=i("1a2d"),s=i("9112"),a=i("ce4e"),l=i("8925"),c=i("69f3"),u=i("5e77").CONFIGURABLE,h=c.get,d=c.enforce,f=String(String).split("String");(e.exports=function(e,t,i,l){var c,h=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:t;r(i)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(i,"name")||u&&i.name!==v)&&s(i,"name",v),c=d(i),c.source||(c.source=f.join("string"==typeof v?v:""))),e!==n?(h?!g&&e[t]&&(p=!0):delete e[t],p?e[t]=i:s(e,t,i)):p?e[t]=i:a(t,i)})(Function.prototype,"toString",(function(){return r(this)&&h(this).source||l(this)}))},7156:function(e,t,i){var n=i("1626"),r=i("861d"),o=i("d2bb");e.exports=function(e,t,i){var s,a;return o&&n(s=t.constructor)&&s!==i&&r(a=s.prototype)&&a!==i.prototype&&o(e,a),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,i){var n=i("428f"),r=i("1a2d"),o=i("e538"),s=i("9bf2").f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});r(t,e)||s(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,i){var n=i("cc12"),r=n("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"7b0b":function(e,t,i){var n=i("da84"),r=i("1d80"),o=n.Object;e.exports=function(e){return o(r(e))}},"7c73":function(e,t,i){var n,r=i("825a"),o=i("37e8"),s=i("7839"),a=i("d012"),l=i("1be4"),c=i("cc12"),u=i("f772"),h=">",d="<",f="prototype",p="script",g=u("IE_PROTO"),v=function(){},m=function(e){return d+p+h+e+d+"/"+p+h},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=c("iframe"),i="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},x=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}x="undefined"!=typeof document?document.domain&&n?y(n):_():y(n);var e=s.length;while(e--)delete x[f][s[e]];return x()};a[g]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(v[f]=r(e),i=new v,v[f]=null,i[g]=e):i=x(),void 0===t?i:o.f(i,t)}},"7dd0":function(e,t,i){"use strict";var n=i("23e7"),r=i("c65b"),o=i("c430"),s=i("5e77"),a=i("1626"),l=i("9ed3"),c=i("e163"),u=i("d2bb"),h=i("d44e"),d=i("9112"),f=i("6eeb"),p=i("b622"),g=i("3f8c"),v=i("ae93"),m=s.PROPER,y=s.CONFIGURABLE,_=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,b=p("iterator"),w="keys",S="values",C="entries",A=function(){return this};e.exports=function(e,t,i,s,p,v,M){l(i,t,s);var k,T,I,L=function(e){if(e===p&&R)return R;if(!x&&e in O)return O[e];switch(e){case w:return function(){return new i(this,e)};case S:return function(){return new i(this,e)};case C:return function(){return new i(this,e)}}return function(){return new i(this)}},E=t+" Iterator",D=!1,O=e.prototype,P=O[b]||O["@@iterator"]||p&&O[p],R=!x&&P||L(p),B="Array"==t&&O.entries||P;if(B&&(k=c(B.call(new e)),k!==Object.prototype&&k.next&&(o||c(k)===_||(u?u(k,_):a(k[b])||f(k,b,A)),h(k,E,!0,!0),o&&(g[E]=A))),m&&p==S&&P&&P.name!==S&&(!o&&y?d(O,"name",S):(D=!0,R=function(){return r(P,this)})),p)if(T={values:L(S),keys:v?R:L(w),entries:L(C)},M)for(I in T)(x||D||!(I in O))&&f(O,I,T[I]);else n({target:t,proto:!0,forced:x||D},T);return o&&!M||O[b]===R||f(O,b,R,{name:p}),g[t]=R,T}},"7f9a":function(e,t,i){var n=i("da84"),r=i("1626"),o=i("8925"),s=n.WeakMap;e.exports=r(s)&&/native code/.test(o(s))},"825a":function(e,t,i){var n=i("da84"),r=i("861d"),o=n.String,s=n.TypeError;e.exports=function(e){if(r(e))return e;throw s(o(e)+" is not an object")}},"83ab":function(e,t,i){var n=i("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,i){"use strict";var n=i("a04b"),r=i("9bf2"),o=i("5c6c");e.exports=function(e,t,i){var s=n(t);s in e?r.f(e,s,o(0,i)):e[s]=i}},8508:function(e,t,i){"use strict";i("2d99")},"861d":function(e,t,i){var n=i("1626");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},8875:function(e,t,i){var n,r,o;(function(i,s){r=[],n=s,o="function"===typeof n?n.apply(t,r):n,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var i,n,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,a=o.exec(f.stack)||s.exec(f.stack),l=a&&a[1]||!1,c=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");l===u&&(i=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=i.replace(n,"$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===u&&h[d].innerHTML&&h[d].innerHTML.trim()===r)return h[d]}return null}}return e}))},8925:function(e,t,i){var n=i("e330"),r=i("1626"),o=i("c6cd"),s=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},"8a79":function(e,t,i){"use strict";var n=i("23e7"),r=i("e330"),o=i("06cf").f,s=i("50c4"),a=i("577e"),l=i("5a34"),c=i("1d80"),u=i("ab13"),h=i("c430"),d=r("".endsWith),f=r("".slice),p=Math.min,g=u("endsWith"),v=!h&&!g&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!v&&!g},{endsWith:function(e){var t=a(c(this));l(e);var i=arguments.length>1?arguments[1]:void 0,n=t.length,r=void 0===i?n:p(s(i),n),o=a(e);return d?d(t,o,r):f(t,r-o.length,r)===o}})},"8aa5":function(e,t,i){"use strict";var n=i("6547").charAt;e.exports=function(e,t,i){return t+(i?n(e,t).length:1)}},"8bbf":function(t,i){t.exports=e},"90e3":function(e,t,i){var n=i("e330"),r=0,o=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+o,36)}},9112:function(e,t,i){var n=i("83ab"),r=i("9bf2"),o=i("5c6c");e.exports=n?function(e,t,i){return r.f(e,t,o(1,i))}:function(e,t,i){return e[t]=i,e}},9263:function(e,t,i){"use strict";var n=i("c65b"),r=i("e330"),o=i("577e"),s=i("ad6d"),a=i("9f7f"),l=i("5692"),c=i("7c73"),u=i("69f3").get,h=i("fce3"),d=i("107c"),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,v=r("".charAt),m=r("".indexOf),y=r("".replace),_=r("".slice),x=function(){var e=/a/,t=/b*/g;return n(p,e,"a"),n(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),b=a.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=x||w||b||h||d;S&&(g=function(e){var t,i,r,a,l,h,d,S=this,C=u(S),A=o(e),M=C.raw;if(M)return M.lastIndex=S.lastIndex,t=n(g,M,A),S.lastIndex=M.lastIndex,t;var k=C.groups,T=b&&S.sticky,I=n(s,S),L=S.source,E=0,D=A;if(T&&(I=y(I,"y",""),-1===m(I,"g")&&(I+="g"),D=_(A,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(A,S.lastIndex-1))&&(L="(?: "+L+")",D=" "+D,E++),i=new RegExp("^(?:"+L+")",I)),w&&(i=new RegExp("^"+L+"$(?!\\s)",I)),x&&(r=S.lastIndex),a=n(p,T?i:S,D),T?a?(a.input=_(a.input,E),a[0]=_(a[0],E),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:x&&a&&(S.lastIndex=S.global?a.index+a[0].length:r),w&&a&&a.length>1&&n(f,a[0],i,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a&&k)for(a.groups=h=c(null),l=0;l<k.length;l++)d=k[l],h[d[0]]=a[d[1]];return a}),e.exports=g},"94ca":function(e,t,i){var n=i("d039"),r=i("1626"),o=/#|\.prototype\./,s=function(e,t){var i=l[a(e)];return i==u||i!=c&&(r(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},"989b":function(e,t,i){var n=i("aa9e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("499e").default;r("5a06100a",n,!0,{sourceMap:!1,shadowMode:!1})},"99af":function(e,t,i){"use strict";var n=i("23e7"),r=i("da84"),o=i("d039"),s=i("e8b5"),a=i("861d"),l=i("7b0b"),c=i("07fa"),u=i("8418"),h=i("65f0"),d=i("1dde"),f=i("b622"),p=i("2d00"),g=f("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",y=r.TypeError,_=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),x=d("concat"),b=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:s(e)},w=!_||!x;n({target:"Array",proto:!0,forced:w},{concat:function(e){var t,i,n,r,o,s=l(this),a=h(s,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(o=-1===t?s:arguments[t],b(o)){if(r=c(o),d+r>v)throw y(m);for(i=0;i<r;i++,d++)i in o&&u(a,d,o[i])}else{if(d>=v)throw y(m);u(a,d++,o)}return a.length=d,a}})},"9a1f":function(e,t,i){var n=i("da84"),r=i("c65b"),o=i("59ed"),s=i("825a"),a=i("0d51"),l=i("35a1"),c=n.TypeError;e.exports=function(e,t){var i=arguments.length<2?l(e):t;if(o(i))return s(r(i,e));throw c(a(e)+" is not iterable")}},"9bdd":function(e,t,i){var n=i("825a"),r=i("2a62");e.exports=function(e,t,i,o){try{return o?t(n(i)[0],i[1]):t(i)}catch(s){r(e,"throw",s)}}},"9bf2":function(e,t,i){var n=i("da84"),r=i("83ab"),o=i("0cfb"),s=i("aed9"),a=i("825a"),l=i("a04b"),c=n.TypeError,u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=r?s?function(e,t,i){if(a(e),t=l(t),a(i),"function"===typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var n=h(e,t);n&&n[p]&&(e[t]=i.value,i={configurable:f in i?i[f]:n[f],enumerable:d in i?i[d]:n[d],writable:!1})}return u(e,t,i)}:u:function(e,t,i){if(a(e),t=l(t),a(i),o)try{return u(e,t,i)}catch(n){}if("get"in i||"set"in i)throw c("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},"9ed3":function(e,t,i){"use strict";var n=i("ae93").IteratorPrototype,r=i("7c73"),o=i("5c6c"),s=i("d44e"),a=i("3f8c"),l=function(){return this};e.exports=function(e,t,i,c){var u=t+" Iterator";return e.prototype=r(n,{next:o(+!c,i)}),s(e,u,!1,!0),a[u]=l,e}},"9f7f":function(e,t,i){var n=i("d039"),r=i("da84"),o=r.RegExp,s=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=s||n((function(){return!o("a","y").sticky})),l=s||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:s}},a04b:function(e,t,i){var n=i("c04e"),r=i("d9b5");e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}},a15b:function(e,t,i){"use strict";var n=i("23e7"),r=i("e330"),o=i("44ad"),s=i("fc6a"),a=i("a640"),l=r([].join),c=o!=Object,u=a("join",",");n({target:"Array",proto:!0,forced:c||!u},{join:function(e){return l(s(this),void 0===e?",":e)}})},a434:function(e,t,i){"use strict";var n=i("23e7"),r=i("da84"),o=i("23cb"),s=i("5926"),a=i("07fa"),l=i("7b0b"),c=i("65f0"),u=i("8418"),h=i("1dde"),d=h("splice"),f=r.TypeError,p=Math.max,g=Math.min,v=9007199254740991,m="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var i,n,r,h,d,y,_=l(this),x=a(_),b=o(e,x),w=arguments.length;if(0===w?i=n=0:1===w?(i=0,n=x-b):(i=w-2,n=g(p(s(t),0),x-b)),x+i-n>v)throw f(m);for(r=c(_,n),h=0;h<n;h++)d=b+h,d in _&&u(r,h,_[d]);if(r.length=n,i<n){for(h=b;h<x-n;h++)d=h+n,y=h+i,d in _?_[y]=_[d]:delete _[y];for(h=x;h>x-n+i;h--)delete _[h-1]}else if(i>n)for(h=x-n;h>b;h--)d=h+n-1,y=h+i-1,d in _?_[y]=_[d]:delete _[y];for(h=0;h<i;h++)_[h+b]=arguments[h+2];return _.length=x-n+i,r}})},a4b4:function(e,t,i){var n=i("342f");e.exports=/web0s(?!.*chrome)/i.test(n)},a4d3:function(e,t,i){"use strict";var n=i("23e7"),r=i("da84"),o=i("d066"),s=i("2ba4"),a=i("c65b"),l=i("e330"),c=i("c430"),u=i("83ab"),h=i("4930"),d=i("d039"),f=i("1a2d"),p=i("e8b5"),g=i("1626"),v=i("861d"),m=i("3a9b"),y=i("d9b5"),_=i("825a"),x=i("7b0b"),b=i("fc6a"),w=i("a04b"),S=i("577e"),C=i("5c6c"),A=i("7c73"),M=i("df75"),k=i("241c"),T=i("057f"),I=i("7418"),L=i("06cf"),E=i("9bf2"),D=i("37e8"),O=i("d1e7"),P=i("f36a"),R=i("6eeb"),B=i("5692"),N=i("f772"),z=i("d012"),H=i("90e3"),F=i("b622"),V=i("e538"),j=i("746f"),$=i("d44e"),W=i("69f3"),G=i("b727").forEach,U=N("hidden"),q="Symbol",Z="prototype",X=F("toPrimitive"),Y=W.set,K=W.getterFor(q),J=Object[Z],Q=r.Symbol,ee=Q&&Q[Z],te=r.TypeError,ie=r.QObject,ne=o("JSON","stringify"),re=L.f,oe=E.f,se=T.f,ae=O.f,le=l([].push),ce=B("symbols"),ue=B("op-symbols"),he=B("string-to-symbol-registry"),de=B("symbol-to-string-registry"),fe=B("wks"),pe=!ie||!ie[Z]||!ie[Z].findChild,ge=u&&d((function(){return 7!=A(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a}))?function(e,t,i){var n=re(J,t);n&&delete J[t],oe(e,t,i),n&&e!==J&&oe(J,t,n)}:oe,ve=function(e,t){var i=ce[e]=A(ee);return Y(i,{type:q,tag:e,description:t}),u||(i.description=t),i},me=function(e,t,i){e===J&&me(ue,t,i),_(e);var n=w(t);return _(i),f(ce,n)?(i.enumerable?(f(e,U)&&e[U][n]&&(e[U][n]=!1),i=A(i,{enumerable:C(0,!1)})):(f(e,U)||oe(e,U,C(1,{})),e[U][n]=!0),ge(e,n,i)):oe(e,n,i)},ye=function(e,t){_(e);var i=b(t),n=M(i).concat(Se(i));return G(n,(function(t){u&&!a(xe,i,t)||me(e,t,i[t])})),e},_e=function(e,t){return void 0===t?A(e):ye(A(e),t)},xe=function(e){var t=w(e),i=a(ae,this,t);return!(this===J&&f(ce,t)&&!f(ue,t))&&(!(i||!f(this,t)||!f(ce,t)||f(this,U)&&this[U][t])||i)},be=function(e,t){var i=b(e),n=w(t);if(i!==J||!f(ce,n)||f(ue,n)){var r=re(i,n);return!r||!f(ce,n)||f(i,U)&&i[U][n]||(r.enumerable=!0),r}},we=function(e){var t=se(b(e)),i=[];return G(t,(function(e){f(ce,e)||f(z,e)||le(i,e)})),i},Se=function(e){var t=e===J,i=se(t?ue:b(e)),n=[];return G(i,(function(e){!f(ce,e)||t&&!f(J,e)||le(n,ce[e])})),n};if(h||(Q=function(){if(m(ee,this))throw te("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,t=H(e),i=function(e){this===J&&a(i,ue,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),ge(this,t,C(1,e))};return u&&pe&&ge(J,t,{configurable:!0,set:i}),ve(t,e)},ee=Q[Z],R(ee,"toString",(function(){return K(this).tag})),R(Q,"withoutSetter",(function(e){return ve(H(e),e)})),O.f=xe,E.f=me,D.f=ye,L.f=be,k.f=T.f=we,I.f=Se,V.f=function(e){return ve(F(e),e)},u&&(oe(ee,"description",{configurable:!0,get:function(){return K(this).description}}),c||R(J,"propertyIsEnumerable",xe,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Q}),G(M(fe),(function(e){j(e)})),n({target:q,stat:!0,forced:!h},{for:function(e){var t=S(e);if(f(he,t))return he[t];var i=Q(t);return he[t]=i,de[i]=t,i},keyFor:function(e){if(!y(e))throw te(e+" is not a symbol");if(f(de,e))return de[e]},useSetter:function(){pe=!0},useSimple:function(){pe=!1}}),n({target:"Object",stat:!0,forced:!h,sham:!u},{create:_e,defineProperty:me,defineProperties:ye,getOwnPropertyDescriptor:be}),n({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:we,getOwnPropertySymbols:Se}),n({target:"Object",stat:!0,forced:d((function(){I.f(1)}))},{getOwnPropertySymbols:function(e){return I.f(x(e))}}),ne){var Ce=!h||d((function(){var e=Q();return"[null]"!=ne([e])||"{}"!=ne({a:e})||"{}"!=ne(Object(e))}));n({target:"JSON",stat:!0,forced:Ce},{stringify:function(e,t,i){var n=P(arguments),r=t;if((v(t)||void 0!==e)&&!y(e))return p(t)||(t=function(e,t){if(g(r)&&(t=a(r,this,e,t)),!y(t))return t}),n[1]=t,s(ne,null,n)}})}if(!ee[X]){var Ae=ee.valueOf;R(ee,X,(function(e){return a(Ae,this)}))}$(Q,q),z[U]=!0},a630:function(e,t,i){var n=i("23e7"),r=i("4df4"),o=i("1c7e"),s=!o((function(e){Array.from(e)}));n({target:"Array",stat:!0,forced:s},{from:r})},a640:function(e,t,i){"use strict";var n=i("d039");e.exports=function(e,t){var i=[][e];return!!i&&n((function(){i.call(null,t||function(){throw 1},1)}))}},a9e3:function(e,t,i){"use strict";var n=i("83ab"),r=i("da84"),o=i("e330"),s=i("94ca"),a=i("6eeb"),l=i("1a2d"),c=i("7156"),u=i("3a9b"),h=i("d9b5"),d=i("c04e"),f=i("d039"),p=i("241c").f,g=i("06cf").f,v=i("9bf2").f,m=i("408a"),y=i("58a8").trim,_="Number",x=r[_],b=x.prototype,w=r.TypeError,S=o("".slice),C=o("".charCodeAt),A=function(e){var t=d(e,"number");return"bigint"==typeof t?t:M(t)},M=function(e){var t,i,n,r,o,s,a,l,c=d(e,"number");if(h(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),t=C(c,0),43===t||45===t){if(i=C(c,2),88===i||120===i)return NaN}else if(48===t){switch(C(c,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(o=S(c,2),s=o.length,a=0;a<s;a++)if(l=C(o,a),l<48||l>r)return NaN;return parseInt(o,n)}return+c};if(s(_,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var k,T=function(e){var t=arguments.length<1?0:x(A(e)),i=this;return u(b,i)&&f((function(){m(i)}))?c(Object(t),i,T):t},I=n?p(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),L=0;I.length>L;L++)l(x,k=I[L])&&!l(T,k)&&v(T,k,g(x,k));T.prototype=b,b.constructor=T,a(r,_,T)}},aa9e:function(e,t,i){var n=i("4bad");t=n(!1),t.push([e.i,".t-code::-webkit-scrollbar,.t-text-editor::-webkit-scrollbar,.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar,.t-window::-webkit-scrollbar{width:8px;height:8px}.t-code::-webkit-scrollbar-button,.t-text-editor::-webkit-scrollbar-button,.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-button,.t-window::-webkit-scrollbar-button{width:0;height:0;display:none}.t-code::-webkit-scrollbar-thumb,.t-text-editor::-webkit-scrollbar-thumb,.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-thumb,.t-window::-webkit-scrollbar-thumb{border-radius:6px;border-style:dashed;border-color:transparent;border-width:2px;background-color:rgba(157,165,183,.4);background-clip:padding-box}.t-code::-webkit-scrollbar-thumb:hover,.t-text-editor::-webkit-scrollbar-thumb:hover,.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover,.t-window::-webkit-scrollbar-thumb:hover{background:rgba(157,165,183,.7)}.t-code::-webkit-scrollbar-track,.t-text-editor::-webkit-scrollbar-track,.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-track,.t-window::-webkit-scrollbar-track{border-radius:6px}",""]),e.exports=t},ab13:function(e,t,i){var n=i("b622"),r=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[r]=!1,"/./"[e](t)}catch(n){}}return!1}},ab36:function(e,t,i){var n=i("861d"),r=i("9112");e.exports=function(e,t){n(t)&&"cause"in t&&r(e,"cause",t.cause)}},ac1f:function(e,t,i){"use strict";var n=i("23e7"),r=i("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,i){"use strict";var n=i("825a");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},addb:function(e,t,i){var n=i("4dae"),r=Math.floor,o=function(e,t){var i=e.length,l=r(i/2);return i<8?s(e,t):a(e,o(n(e,0,l),t),o(n(e,l),t),t)},s=function(e,t){var i,n,r=e.length,o=1;while(o<r){n=o,i=e[o];while(n&&t(e[n-1],i)>0)e[n]=e[--n];n!==o++&&(e[n]=i)}return e},a=function(e,t,i,n){var r=t.length,o=i.length,s=0,a=0;while(s<r||a<o)e[s+a]=s<r&&a<o?n(t[s],i[a])<=0?t[s++]:i[a++]:s<r?t[s++]:i[a++];return e};e.exports=o},ae93:function(e,t,i){"use strict";var n,r,o,s=i("d039"),a=i("1626"),l=i("7c73"),c=i("e163"),u=i("6eeb"),h=i("b622"),d=i("c430"),f=h("iterator"),p=!1;[].keys&&(o=[].keys(),"next"in o?(r=c(c(o)),r!==Object.prototype&&(n=r)):p=!0);var g=void 0==n||s((function(){var e={};return n[f].call(e)!==e}));g?n={}:d&&(n=l(n)),a(n[f])||u(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},aed9:function(e,t,i){var n=i("83ab"),r=i("d039");e.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b041:function(e,t,i){"use strict";var n=i("00ee"),r=i("f5df");e.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(e,t,i){var n=i("83ab"),r=i("5e77").EXISTS,o=i("e330"),s=i("9bf2").f,a=Function.prototype,l=o(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec),h="name";n&&!r&&s(a,h,{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},b311:function(e,t,i){
|
||
/*!
|
||
* clipboard.js v2.0.10
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
(function(t,i){e.exports=i()})(0,(function(){return function(){var e={686:function(e,t,i){"use strict";i.d(t,{default:function(){return E}});var n=i(279),r=i.n(n),o=i(370),s=i.n(o),a=i(817),l=i.n(a);function c(e){try{return document.execCommand(e)}catch(t){return!1}}var u=function(e){var t=l()(e);return c("cut"),t},h=u;function d(e){var t="rtl"===document.documentElement.getAttribute("dir"),i=document.createElement("textarea");i.style.fontSize="12pt",i.style.border="0",i.style.padding="0",i.style.margin="0",i.style.position="absolute",i.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;return i.style.top="".concat(n,"px"),i.setAttribute("readonly",""),i.value=e,i}var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},i="";if("string"===typeof e){var n=d(e);t.container.appendChild(n),i=l()(n),c("copy"),n.remove()}else i=l()(e),c("copy");return i},p=f;function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,i=void 0===t?"copy":t,n=e.container,r=e.target,o=e.text;if("copy"!==i&&"cut"!==i)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==g(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===i&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===i&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?p(o,{container:n}):r?"cut"===i?h(r):p(r,{container:n}):void 0},m=v;function y(e){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,i){return t&&x(e.prototype,t),i&&x(e,i),e}function w(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e){var t=k();return function(){var i,n=T(e);if(t){var r=T(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return A(this,i)}}function A(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function I(e,t){var i="data-clipboard-".concat(e);if(t.hasAttribute(i))return t.getAttribute(i)}var L=function(e){w(i,e);var t=C(i);function i(e,n){var r;return _(this,i),r=t.call(this),r.resolveOptions(n),r.listenClick(e),r}return b(i,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===y(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,i=this.action(t)||"copy",n=m({action:i,container:this.container,target:this.target(t),text:this.text(t)});this.emit(n?"success":"error",{action:i,text:n,trigger:t,clearSelection:function(){t&&t.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return I("action",e)}},{key:"defaultTarget",value:function(e){var t=I("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return I("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(e,t)}},{key:"cut",value:function(e){return h(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,i=!!document.queryCommandSupported;return t.forEach((function(e){i=i&&!!document.queryCommandSupported(e)})),i}}]),i}(r()),E=L},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function n(e,i){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(i))return e;e=e.parentNode}}e.exports=n},438:function(e,t,i){var n=i(828);function r(e,t,i,n,r){var o=s.apply(this,arguments);return e.addEventListener(i,o,r),{destroy:function(){e.removeEventListener(i,o,r)}}}function o(e,t,i,n,o){return"function"===typeof e.addEventListener?r.apply(null,arguments):"function"===typeof i?r.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,i,n,o)})))}function s(e,t,i,r){return function(i){i.delegateTarget=n(i.target,t),i.delegateTarget&&r.call(e,i)}}e.exports=o},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var i=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,i){var n=i(879),r=i(438);function o(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(i))throw new TypeError("Third argument must be a Function");if(n.node(e))return s(e,t,i);if(n.nodeList(e))return a(e,t,i);if(n.string(e))return l(e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function s(e,t,i){return e.addEventListener(t,i),{destroy:function(){e.removeEventListener(t,i)}}}function a(e,t,i){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,i)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,i)}))}}}function l(e,t,i){return r(document.body,e,t,i)}e.exports=o},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var i=e.hasAttribute("readonly");i||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),i||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r),t=n.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,i){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var n=this;function r(){n.off(e,r),t.apply(i,arguments)}return r._=t,this.on(e,r,i)},emit:function(e){var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),n=0,r=i.length;for(n;n<r;n++)i[n].fn.apply(i[n].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),n=i[e],r=[];if(n&&t)for(var o=0,s=n.length;o<s;o++)n[o].fn!==t&&n[o].fn._!==t&&r.push(n[o]);return r.length?i[e]=r:delete i[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={exports:{}};return e[n](r,r.exports,i),r.exports}return function(){i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),i(686)}().default}))},b575:function(e,t,i){var n,r,o,s,a,l,c,u,h=i("da84"),d=i("0366"),f=i("06cf").f,p=i("2cf4").set,g=i("1cdc"),v=i("d4c3"),m=i("a4b4"),y=i("605d"),_=h.MutationObserver||h.WebKitMutationObserver,x=h.document,b=h.process,w=h.Promise,S=f(h,"queueMicrotask"),C=S&&S.value;C||(n=function(){var e,t;y&&(e=b.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(i){throw r?s():o=void 0,i}}o=void 0,e&&e.enter()},g||y||m||!_||!x?!v&&w&&w.resolve?(c=w.resolve(void 0),c.constructor=w,u=d(c.then,c),s=function(){u(n)}):y?s=function(){b.nextTick(n)}:(p=d(p,h),s=function(){p(n)}):(a=!0,l=x.createTextNode(""),new _(n).observe(l,{characterData:!0}),s=function(){l.data=a=!a})),e.exports=C||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,s()),o=t}},b622:function(e,t,i){var n=i("da84"),r=i("5692"),o=i("1a2d"),s=i("90e3"),a=i("4930"),l=i("fdbf"),c=r("wks"),u=n.Symbol,h=u&&u["for"],d=l?u:u&&u.withoutSetter||s;e.exports=function(e){if(!o(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&o(u,e)?c[e]=u[e]:c[e]=l&&h?h(t):d(t)}return c[e]}},b64b:function(e,t,i){var n=i("23e7"),r=i("7b0b"),o=i("df75"),s=i("d039"),a=s((function(){o(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(e){return o(r(e))}})},b727:function(e,t,i){var n=i("0366"),r=i("e330"),o=i("44ad"),s=i("7b0b"),a=i("07fa"),l=i("65f0"),c=r([].push),u=function(e){var t=1==e,i=2==e,r=3==e,u=4==e,h=6==e,d=7==e,f=5==e||h;return function(p,g,v,m){for(var y,_,x=s(p),b=o(x),w=n(g,v),S=a(b),C=0,A=m||l,M=t?A(p,S):i||d?A(p,0):void 0;S>C;C++)if((f||C in b)&&(y=b[C],_=w(y,C,x),e))if(t)M[C]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return C;case 2:c(M,y)}else switch(e){case 4:return!1;case 7:c(M,y)}return h?-1:r||u?u:M}};e.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)}},b980:function(e,t,i){var n=i("d039"),r=i("5c6c");e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},c04e:function(e,t,i){var n=i("da84"),r=i("c65b"),o=i("861d"),s=i("d9b5"),a=i("dc4a"),l=i("485a"),c=i("b622"),u=n.TypeError,h=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var i,n=a(e,h);if(n){if(void 0===t&&(t="default"),i=r(n,e,t),!o(i)||s(i))return i;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},c430:function(e,t){e.exports=!1},c4f4:function(e,t,i){var n=i("4bad");t=n(!1),t.push([e.i,'.jv-node{position:relative}.jv-node:after{content:","}.jv-node:last-of-type:after{content:""}.jv-node.toggle{margin-left:13px!important}.jv-node .jv-node{margin-left:25px}.jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:.9;font-size:.9em;padding:0 4px 2px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:none!important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjNjY2IiBkPSJNMCAwbDggOC04IDh6Ii8+PC9zdmc+);background-repeat:no-repeat;background-size:contain;background-position:50%;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;transition:transform .1s}.jv-container .jv-toggle.open{transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;transition:all .1s;transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:linear-gradient(180deg,transparent 20%,hsla(0,0%,90.2%,.3));transition:all .1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:linear-gradient(180deg,transparent 20%,hsla(0,0%,90.2%,.3))}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}',""]),e.exports=t},c5ca:function(e,t,i){"use strict";i("5f39")},c607:function(e,t,i){var n=i("da84"),r=i("83ab"),o=i("fce3"),s=i("c6b6"),a=i("9bf2").f,l=i("69f3").get,c=RegExp.prototype,u=n.TypeError;r&&o&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},c65b:function(e,t,i){var n=i("40d5"),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(e,t,i){var n=i("e330"),r=n({}.toString),o=n("".slice);e.exports=function(e){return o(r(e),8,-1)}},c6cd:function(e,t,i){var n=i("da84"),r=i("ce4e"),o="__core-js_shared__",s=n[o]||r(o,{});e.exports=s},c770:function(e,t,i){var n=i("e330"),r=n("".replace),o=function(e){return String(Error(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,a=s.test(o);e.exports=function(e,t){if(a&&"string"==typeof e)while(t--)e=r(e,s,"");return e}},c8ba:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}e.exports=i},c8d2:function(e,t,i){var n=i("5e77").PROPER,r=i("d039"),o=i("5899"),s="
";e.exports=function(e){return r((function(){return!!o[e]()||s[e]()!==s||n&&o[e].name!==e}))}},ca25:function(e,t,i){var n=i("4bad");t=n(!1),t.push([e.i,".t-ansi-1{font-weight:700}.t-ansi-2{font-weight:200}.t-ansi-3{font-style:oblique}.t-ansi-4{text-decoration:underline}@-webkit-keyframes t-blink{0%{opacity:1}50%{opacity:1}50.01%{opacity:0}to{opacity:0}}.t-ansi-5,.t-ansi-6{animation:t-blink 1s linear infinite;-webkit-animation:t-blink 1s linear infinite;-moz-animation:t-blink 1s linear infinite;-ms-animation:t-blink 1s linear infinite;-o-animation:t-blink 1s linear infinite}.t-ansi-7{background-color:#fff;color:#1c1d21}.t-ansi-8{visibility:hidden}.t-ansi-9{text-decoration:line-through}.t-ansi-21,.t-ansi-22{font-weight:unset}.t-ansi-23{font-style:unset}.t-ansi-24,.t-ansi-29{text-decoration:none}.t-ansi-25,.t-ansi-26{animation:none;-webkit-animation:none;-moz-animation:none;-ms-animation:none;-o-animation:none}.t-ansi-27{background-color:inherit;color:inherit}.t-ansi-28{visibility:unset}.t-ansi-30{color:#000}.t-ansi-31{color:#f10606}.t-ansi-32{color:#14cb14}.t-ansi-33{color:#ff0}.t-ansi-34{color:#3993d4}.t-ansi-35{color:#bd12bd}.t-ansi-36{color:#0eb4b4}.t-ansi-37{color:#fff}.t-ansi-90{color:#585859}.t-ansi-91{color:#ef353a}.t-ansi-92{color:#4ec215}.t-ansi-93{color:#e3bd01}.t-ansi-94{color:#1faffe}.t-ansi-95{color:#eb7dec}.t-ansi-96{color:#00e3e4}.t-ansi-97{color:#fdfdfe}.t-ansi-40{background-color:#000}.t-ansi-41{background-color:#f10606}.t-ansi-42{background-color:#14cb14}.t-ansi-43{background-color:#ff0}.t-ansi-44{background-color:#3993d4}.t-ansi-45{background-color:#bd12bd}.t-ansi-46{background-color:#0eb4b4}.t-ansi-47{background-color:#fff}.t-ansi-100{background-color:#585859}.t-ansi-101{background-color:#ef353a}.t-ansi-102{background-color:#4ec215}.t-ansi-103{background-color:#e3bd01}.t-ansi-104{background-color:#1faffe}.t-ansi-105{background-color:#eb7dec}.t-ansi-106{background-color:#00e3e4}.t-ansi-107{background-color:#fdfdfe}.t-ansi-char,.t-ansi-line{min-height:20px}.t-ansi-char{min-width:7px;font-size:inherit;display:inline-block;height:100%;vertical-align:top;font-weight:700}",""]),e.exports=t},ca84:function(e,t,i){var n=i("e330"),r=i("1a2d"),o=i("fc6a"),s=i("4d64").indexOf,a=i("d012"),l=n([].push);e.exports=function(e,t){var i,n=o(e),c=0,u=[];for(i in n)!r(a,i)&&r(n,i)&&l(u,i);while(t.length>c)r(n,i=t[c++])&&(~s(u,i)||l(u,i));return u}},cc12:function(e,t,i){var n=i("da84"),r=i("861d"),o=n.document,s=r(o)&&r(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},cdf9:function(e,t,i){var n=i("825a"),r=i("861d"),o=i("f069");e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var i=o.f(e),s=i.resolve;return s(t),i.promise}},ce4e:function(e,t,i){var n=i("da84"),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,i){var n=i("da84"),r=i("1626"),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},d1e7:function(e,t,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},d28b:function(e,t,i){var n=i("746f");n("iterator")},d2bb:function(e,t,i){var n=i("e330"),r=i("825a"),o=i("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(i,[]),t=i instanceof Array}catch(s){}return function(i,n){return r(i),o(n),t?e(i,n):i.__proto__=n,i}}():void 0)},d3b7:function(e,t,i){var n=i("00ee"),r=i("6eeb"),o=i("b041");n||r(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,i){var n=i("9bf2").f,r=i("1a2d"),o=i("b622"),s=o("toStringTag");e.exports=function(e,t,i){e&&!i&&(e=e.prototype),e&&!r(e,s)&&n(e,s,{configurable:!0,value:t})}},d4c3:function(e,t,i){var n=i("342f"),r=i("da84");e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},d6d6:function(e,t,i){var n=i("da84"),r=n.TypeError;e.exports=function(e,t){if(e<t)throw r("Not enough arguments");return e}},d784:function(e,t,i){"use strict";i("ac1f");var n=i("e330"),r=i("6eeb"),o=i("9263"),s=i("d039"),a=i("b622"),l=i("9112"),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,i,h){var d=a(e),f=!s((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=f&&!s((function(){var t=!1,i=/a/;return"split"===e&&(i={},i.constructor={},i.constructor[c]=function(){return i},i.flags="",i[d]=/./[d]),i.exec=function(){return t=!0,null},i[d](""),!t}));if(!f||!p||i){var g=n(/./[d]),v=t(d,""[e],(function(e,t,i,r,s){var a=n(e),l=t.exec;return l===o||l===u.exec?f&&!s?{done:!0,value:g(t,i,r)}:{done:!0,value:a(i,t,r)}:{done:!1}}));r(String.prototype,e,v[0]),r(u,d,v[1])}h&&l(u[d],"sham",!0)}},d998:function(e,t,i){var n=i("342f");e.exports=/MSIE|Trident/.test(n)},d9b5:function(e,t,i){var n=i("da84"),r=i("d066"),o=i("1626"),s=i("3a9b"),a=i("fdbf"),l=n.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&s(t.prototype,l(e))}},d9e2:function(e,t,i){var n=i("23e7"),r=i("da84"),o=i("2ba4"),s=i("e5cb"),a="WebAssembly",l=r[a],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var i={};i[e]=s(e,t,c),n({global:!0,forced:c},i)},h=function(e,t){if(l&&l[e]){var i={};i[e]=s(a+"."+e,t,c),n({target:a,stat:!0,forced:c},i)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},da84:function(e,t,i){(function(t){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(e,t,i){var n=i("23e7"),r=i("83ab"),o=i("56ef"),s=i("fc6a"),a=i("06cf"),l=i("8418");n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,i,n=s(e),r=a.f,c=o(n),u={},h=0;while(c.length>h)i=r(n,t=c[h++]),void 0!==i&&l(u,t,i);return u}})},dc4a:function(e,t,i){var n=i("59ed");e.exports=function(e,t){var i=e[t];return null==i?void 0:n(i)}},ddb0:function(e,t,i){var n=i("da84"),r=i("fdbc"),o=i("785a"),s=i("e260"),a=i("9112"),l=i("b622"),c=l("iterator"),u=l("toStringTag"),h=s.values,d=function(e,t){if(e){if(e[c]!==h)try{a(e,c,h)}catch(n){e[c]=h}if(e[u]||a(e,u,t),r[t])for(var i in s)if(e[i]!==s[i])try{a(e,i,s[i])}catch(n){e[i]=s[i]}}};for(var f in r)d(n[f]&&n[f].prototype,f);d(o,"DOMTokenList")},df75:function(e,t,i){var n=i("ca84"),r=i("7839");e.exports=Object.keys||function(e){return n(e,r)}},e01a:function(e,t,i){"use strict";var n=i("23e7"),r=i("83ab"),o=i("da84"),s=i("e330"),a=i("1a2d"),l=i("1626"),c=i("3a9b"),u=i("577e"),h=i("9bf2").f,d=i("e893"),f=o.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};d(v,f),v.prototype=p,p.constructor=v;var m="Symbol(test)"==String(f("test")),y=s(p.toString),_=s(p.valueOf),x=/^Symbol\((.*)\)[^)]+$/,b=s("".replace),w=s("".slice);h(p,"description",{configurable:!0,get:function(){var e=_(this),t=y(e);if(a(g,e))return"";var i=m?w(t,7,-1):b(t,x,"$1");return""===i?void 0:i}}),n({global:!0,forced:!0},{Symbol:v})}},e163:function(e,t,i){var n=i("da84"),r=i("1a2d"),o=i("1626"),s=i("7b0b"),a=i("f772"),l=i("e177"),c=a("IE_PROTO"),u=n.Object,h=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=s(e);if(r(t,c))return t[c];var i=t.constructor;return o(i)&&t instanceof i?i.prototype:t instanceof u?h:null}},e177:function(e,t,i){var n=i("d039");e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,i){"use strict";var n=i("fc6a"),r=i("44d2"),o=i("3f8c"),s=i("69f3"),a=i("9bf2").f,l=i("7dd0"),c=i("c430"),u=i("83ab"),h="Array Iterator",d=s.set,f=s.getterFor(h);e.exports=l(Array,"Array",(function(e,t){d(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var p=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!c&&u&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(g){}},e2cc:function(e,t,i){var n=i("6eeb");e.exports=function(e,t,i){for(var r in t)n(e,r,t[r],i);return e}},e330:function(e,t,i){var n=i("40d5"),r=Function.prototype,o=r.bind,s=r.call,a=n&&o.bind(s,s);e.exports=n?function(e){return e&&a(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},e391:function(e,t,i){var n=i("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},e439:function(e,t,i){var n=i("23e7"),r=i("d039"),o=i("fc6a"),s=i("06cf").f,a=i("83ab"),l=r((function(){s(1)})),c=!a||l;n({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(o(e),t)}})},e538:function(e,t,i){var n=i("b622");t.f=n},e5cb:function(e,t,i){"use strict";var n=i("d066"),r=i("1a2d"),o=i("9112"),s=i("3a9b"),a=i("d2bb"),l=i("e893"),c=i("7156"),u=i("e391"),h=i("ab36"),d=i("c770"),f=i("b980"),p=i("c430");e.exports=function(e,t,i,g){var v=g?2:1,m=e.split("."),y=m[m.length-1],_=n.apply(null,m);if(_){var x=_.prototype;if(!p&&r(x,"cause")&&delete x.cause,!i)return _;var b=n("Error"),w=t((function(e,t){var i=u(g?t:e,void 0),n=g?new _(e):new _;return void 0!==i&&o(n,"message",i),f&&o(n,"stack",d(n.stack,2)),this&&s(x,this)&&c(n,this,w),arguments.length>v&&h(n,arguments[v]),n}));if(w.prototype=x,"Error"!==y&&(a?a(w,b):l(w,b,{name:!0})),l(w,_),!p)try{x.name!==y&&o(x,"name",y),x.constructor=w}catch(S){}return w}}},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,i){"use strict";var n,r,o,s,a=i("23e7"),l=i("c430"),c=i("da84"),u=i("d066"),h=i("c65b"),d=i("fea9"),f=i("6eeb"),p=i("e2cc"),g=i("d2bb"),v=i("d44e"),m=i("2626"),y=i("59ed"),_=i("1626"),x=i("861d"),b=i("19aa"),w=i("8925"),S=i("2266"),C=i("1c7e"),A=i("4840"),M=i("2cf4").set,k=i("b575"),T=i("cdf9"),I=i("44de"),L=i("f069"),E=i("e667"),D=i("01b4"),O=i("69f3"),P=i("94ca"),R=i("b622"),B=i("6069"),N=i("605d"),z=i("2d00"),H=R("species"),F="Promise",V=O.getterFor(F),j=O.set,$=O.getterFor(F),W=d&&d.prototype,G=d,U=W,q=c.TypeError,Z=c.document,X=c.process,Y=L.f,K=Y,J=!!(Z&&Z.createEvent&&c.dispatchEvent),Q=_(c.PromiseRejectionEvent),ee="unhandledrejection",te="rejectionhandled",ie=0,ne=1,re=2,oe=1,se=2,ae=!1,le=P(F,(function(){var e=w(G),t=e!==String(G);if(!t&&66===z)return!0;if(l&&!U["finally"])return!0;if(z>=51&&/native code/.test(e))return!1;var i=new G((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))},r=i.constructor={};return r[H]=n,ae=i.then((function(){}))instanceof n,!ae||!t&&B&&!Q})),ce=le||!C((function(e){G.all(e)["catch"]((function(){}))})),ue=function(e){var t;return!(!x(e)||!_(t=e.then))&&t},he=function(e,t){var i,n,r,o=t.value,s=t.state==ne,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(t.rejection===se&&ve(t),t.rejection=oe),!0===a?i=o:(u&&u.enter(),i=a(o),u&&(u.exit(),r=!0)),i===e.promise?c(q("Promise-chain cycle")):(n=ue(i))?h(n,i,l,c):l(i)):c(o)}catch(d){u&&!r&&u.exit(),c(d)}},de=function(e,t){e.notified||(e.notified=!0,k((function(){var i,n=e.reactions;while(i=n.get())he(i,e);e.notified=!1,t&&!e.rejection&&pe(e)})))},fe=function(e,t,i){var n,r;J?(n=Z.createEvent("Event"),n.promise=t,n.reason=i,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:i},!Q&&(r=c["on"+e])?r(n):e===ee&&I("Unhandled promise rejection",i)},pe=function(e){h(M,c,(function(){var t,i=e.facade,n=e.value,r=ge(e);if(r&&(t=E((function(){N?X.emit("unhandledRejection",n,i):fe(ee,i,n)})),e.rejection=N||ge(e)?se:oe,t.error))throw t.value}))},ge=function(e){return e.rejection!==oe&&!e.parent},ve=function(e){h(M,c,(function(){var t=e.facade;N?X.emit("rejectionHandled",t):fe(te,t,e.value)}))},me=function(e,t,i){return function(n){e(t,n,i)}},ye=function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=re,de(e,!0))},_e=function(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw q("Promise can't be resolved itself");var n=ue(t);n?k((function(){var i={done:!1};try{h(n,t,me(_e,i,e),me(ye,i,e))}catch(r){ye(i,r,e)}})):(e.value=t,e.state=ne,de(e,!1))}catch(r){ye({done:!1},r,e)}}};if(le&&(G=function(e){b(this,U),y(e),h(n,this);var t=V(this);try{e(me(_e,t),me(ye,t))}catch(i){ye(t,i)}},U=G.prototype,n=function(e){j(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new D,rejection:!1,state:ie,value:void 0})},n.prototype=p(U,{then:function(e,t){var i=$(this),n=Y(A(this,G));return i.parent=!0,n.ok=!_(e)||e,n.fail=_(t)&&t,n.domain=N?X.domain:void 0,i.state==ie?i.reactions.add(n):k((function(){he(n,i)})),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new n,t=V(e);this.promise=e,this.resolve=me(_e,t),this.reject=me(ye,t)},L.f=Y=function(e){return e===G||e===o?new r(e):K(e)},!l&&_(d)&&W!==Object.prototype)){s=W.then,ae||(f(W,"then",(function(e,t){var i=this;return new G((function(e,t){h(s,i,e,t)})).then(e,t)}),{unsafe:!0}),f(W,"catch",U["catch"],{unsafe:!0}));try{delete W.constructor}catch(xe){}g&&g(W,U)}a({global:!0,wrap:!0,forced:le},{Promise:G}),v(G,F,!1,!0),m(F),o=u(F),a({target:F,stat:!0,forced:le},{reject:function(e){var t=Y(this);return h(t.reject,void 0,e),t.promise}}),a({target:F,stat:!0,forced:l||le},{resolve:function(e){return T(l&&this===o?G:this,e)}}),a({target:F,stat:!0,forced:ce},{all:function(e){var t=this,i=Y(t),n=i.resolve,r=i.reject,o=E((function(){var i=y(t.resolve),o=[],s=0,a=1;S(e,(function(e){var l=s++,c=!1;a++,h(i,t,e).then((function(e){c||(c=!0,o[l]=e,--a||n(o))}),r)})),--a||n(o)}));return o.error&&r(o.value),i.promise},race:function(e){var t=this,i=Y(t),n=i.reject,r=E((function(){var r=y(t.resolve);S(e,(function(e){h(r,t,e).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}})},e893:function(e,t,i){var n=i("1a2d"),r=i("56ef"),o=i("06cf"),s=i("9bf2");e.exports=function(e,t,i){for(var a=r(t),l=s.f,c=o.f,u=0;u<a.length;u++){var h=a[u];n(e,h)||i&&n(i,h)||l(e,h,c(t,h))}}},e8b5:function(e,t,i){var n=i("c6b6");e.exports=Array.isArray||function(e){return"Array"==n(e)}},e95a:function(e,t,i){var n=i("b622"),r=i("3f8c"),o=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[o]===e)}},e9c4:function(e,t,i){var n=i("23e7"),r=i("da84"),o=i("d066"),s=i("2ba4"),a=i("e330"),l=i("d039"),c=r.Array,u=o("JSON","stringify"),h=a(/./.exec),d=a("".charAt),f=a("".charCodeAt),p=a("".replace),g=a(1..toString),v=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,_=function(e,t,i){var n=d(i,t-1),r=d(i,t+1);return h(m,e)&&!h(y,r)||h(y,e)&&!h(m,n)?"\\u"+g(f(e,0),16):e},x=l((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&n({target:"JSON",stat:!0,forced:x},{stringify:function(e,t,i){for(var n=0,r=arguments.length,o=c(r);n<r;n++)o[n]=arguments[n];var a=s(u,null,o);return"string"==typeof a?p(a,v,_):a}})},f069:function(e,t,i){"use strict";var n=i("59ed"),r=function(e){var t,i;this.promise=new e((function(e,n){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=n})),this.resolve=n(t),this.reject=n(i)};e.exports.f=function(e){return new r(e)}},f33e:function(e,t,i){var n=i("5628");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("499e").default;r("e40b3dc0",n,!0,{sourceMap:!1,shadowMode:!1})},f36a:function(e,t,i){var n=i("e330");e.exports=n([].slice)},f5df:function(e,t,i){var n=i("da84"),r=i("00ee"),o=i("1626"),s=i("c6b6"),a=i("b622"),l=a("toStringTag"),c=n.Object,u="Arguments"==s(function(){return arguments}()),h=function(e,t){try{return e[t]}catch(i){}};e.exports=r?s:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=h(t=c(e),l))?i:u?s(t):"Object"==(n=s(t))&&o(t.callee)?"Arguments":n}},f772:function(e,t,i){var n=i("5692"),r=i("90e3"),o=n("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},f8c9:function(e,t,i){var n=i("23e7"),r=i("da84"),o=i("d44e");n({global:!0},{Reflect:{}}),o(r.Reflect,"Reflect",!0)},fb15:function(e,t,i){"use strict";if(i.r(t),i.d(t,"Terminal",(function(){return Nt})),i.d(t,"TerminalStore",(function(){return N})),i.d(t,"TerminalApi",(function(){return fe})),i.d(t,"TerminalAsk",(function(){return Q})),i.d(t,"TerminalFlash",(function(){return K})),i.d(t,"configCodemirror",(function(){return ce})),i.d(t,"configHighlight",(function(){return le})),i.d(t,"rename",(function(){return ae})),i.d(t,"api",(function(){return Vt})),i.d(t,"Flash",(function(){return jt})),i.d(t,"Ask",(function(){return $t})),"undefined"!==typeof window){var n=window.document.currentScript,r=i("8875");n=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(i.p=o[1])}i("b0c0");var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"terminalContainer",class:"t-container "+(e.isActive()?"":"t-disable-select"),style:e._getContainerStyle()},[e.isDraggable()?i("div",[i("div",{ref:"resizeLT",staticClass:"t-point t-point-lt"}),i("div",{ref:"resizeRT",staticClass:"t-point t-point-rt"}),i("div",{ref:"resizeLB",staticClass:"t-point t-point-lb"}),i("div",{ref:"resizeRB",staticClass:"t-point t-point-rb"})]):e._e(),i("div",{staticClass:"terminal"},[e.showHeader?i("div",{ref:"terminalHeader",staticClass:"t-header-container",style:e.isDraggable()?"cursor: move;":"",on:{dblclick:e._fullscreen}},[e._t("header",(function(){return[i("t-header",{attrs:{title:e.title,pinned:e.isPinned(),draggable:e.isDraggable()},on:{"on-click":e._triggerClick}})]}))],2):e._e(),i("div",{ref:"terminalWindow",staticClass:"t-window",style:e.showHeader?"height:calc(100% - "+e.headerHeight+"px);margin-top: "+e.headerHeight+"px;":"height:100%",on:{click:e._focus,dblclick:function(t){return e._focus(!0)}}},[e._l(e.terminalLog,(function(t,n){return i("div",{key:n,staticClass:"t-log-box"},["cmdLine"===t.type?i("span",{staticClass:"t-crude-font t-cmd-line"},[i("span",{staticClass:"prompt t-cmd-line-content"},[i("span",{domProps:{innerHTML:e._s(t.content)}})])]):i("div",["normal"===t.type?i("span",[e._t("normal",(function(){return[i("t-view-normal",{attrs:{item:t}})]}),{message:t})],2):"json"===t.type?i("div",[e._t("json",(function(){return[i("t-view-json",{attrs:{item:t,idx:n}})]}),{message:t})],2):"code"===t.type?i("div",[e._t("code",(function(){return[i("t-view-code",{attrs:{item:t,idx:n}})]}),{message:t})],2):"table"===t.type?i("div",[e._t("table",(function(){return[i("t-view-table",{attrs:{item:t,idx:n}})]}),{message:t})],2):"html"===t.type?i("div",[e._t("html",(function(){return[i("div",{domProps:{innerHTML:e._s(t.content)}})]}),{message:t})],2):e._e()])])})),e.flash.open&&e.flash.content?i("div",[e._t("flash",(function(){return[i("div",{domProps:{innerHTML:e._s(e.flash.content)}})]}),{content:e.flash.content})],2):e._e(),e.ask.open&&e.ask.question?i("div",[i("div",{staticStyle:{display:"inline-block"},domProps:{innerHTML:e._s(e.ask.question)}}),"checkbox"===(e.ask.isPassword?"password":"text")?i("input",{directives:[{name:"model",rawName:"v-model",value:e.ask.input,expression:"ask.input"}],ref:"terminalAskInput",staticClass:"t-ask-input",attrs:{autocomplete:"off","auto-complete":"new-password",type:"checkbox"},domProps:{checked:Array.isArray(e.ask.input)?e._i(e.ask.input,null)>-1:e.ask.input},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onAskInput.apply(null,arguments)},change:function(t){var i=e.ask.input,n=t.target,r=!!n.checked;if(Array.isArray(i)){var o=null,s=e._i(i,o);n.checked?s<0&&e.$set(e.ask,"input",i.concat([o])):s>-1&&e.$set(e.ask,"input",i.slice(0,s).concat(i.slice(s+1)))}else e.$set(e.ask,"input",r)}}}):"radio"===(e.ask.isPassword?"password":"text")?i("input",{directives:[{name:"model",rawName:"v-model",value:e.ask.input,expression:"ask.input"}],ref:"terminalAskInput",staticClass:"t-ask-input",attrs:{autocomplete:"off","auto-complete":"new-password",type:"radio"},domProps:{checked:e._q(e.ask.input,null)},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onAskInput.apply(null,arguments)},change:function(t){return e.$set(e.ask,"input",null)}}}):i("input",{directives:[{name:"model",rawName:"v-model",value:e.ask.input,expression:"ask.input"}],ref:"terminalAskInput",staticClass:"t-ask-input",attrs:{autocomplete:"off","auto-complete":"new-password",type:e.ask.isPassword?"password":"text"},domProps:{value:e.ask.input},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onAskInput.apply(null,arguments)},input:function(t){t.target.composing||e.$set(e.ask,"input",t.target.value)}}})]):e._e(),i("p",{directives:[{name:"show",rawName:"v-show",value:e.showInputLine,expression:"showInputLine"}],ref:"terminalInputBox",staticClass:"t-last-line t-crude-font t-cmd-line"},[i("span",{ref:"terminalInputPrompt",staticClass:"prompt t-cmd-line-content t-disable-select"},[i("span",[e._v(e._s(e.context))]),i("span",[e._v(e._s(e.contextSuffix))])]),i("span",{staticClass:"t-cmd-line-content",domProps:{innerHTML:e._s(e._commandFormatter(e.command))}}),i("span",{directives:[{name:"show",rawName:"v-show",value:e.cursorConf.show,expression:"cursorConf.show"}],ref:"terminalCursor",staticClass:"cursor t-disable-select",style:"width:"+e.cursorConf.width+"px;left:"+e.cursorConf.left+";top:"+e.cursorConf.top+";"},[e._v(" ")]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.command,expression:"command"}],ref:"terminalCmdInput",staticClass:"t-cmd-input t-disable-select",attrs:{type:"text",autofocus:"autofocus",autocomplete:"off","auto-complete":"new-password"},domProps:{value:e.command},on:{keydown:e._onInputKeydown,keyup:[e._onInputKeyup,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e._switchPreCmd.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e._switchNextCmd.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._execute.apply(null,arguments)}],input:[function(t){t.target.composing||(e.command=t.target.value)},e._onInput],focusin:function(t){e.cursorConf.show=!0}}})]),e._t("helpCmd",(function(){return[i("p",{staticClass:"t-help-msg"},[e._v(" "+e._s(e.searchCmdResult.item?e.searchCmdResult.item.usage:"")+" ")])]}),{item:e.searchCmdResult.item})],2)]),e.enableExampleHint?i("div",[e._t("helpBox",(function(){return[i("t-help-box",{directives:[{name:"show",rawName:"v-show",value:e.searchCmdResult.show,expression:"searchCmdResult.show"}],ref:"terminalHelpBox",attrs:{top:e.headerHeight+10,result:e.searchCmdResult}})]}),{showHeader:e.showHeader,item:e.searchCmdResult.item})],2):e._e(),e.textEditor.open?i("div",{staticClass:"t-text-editor-container",style:e.showHeader?"height:calc(100% - "+e.headerHeight+"px);margin-top: "+e.headerHeight+"px;":"height:100%"},[e._t("textEditor",(function(){return[i("t-editor",{ref:"terminalTextEditor",attrs:{config:e.textEditor},on:{close:e._textEditorClose}})]}),{data:e.textEditor})],2):e._e(),i("span",{staticClass:"t-flag t-crude-font t-cmd-line t-disable-select"},[i("span",{ref:"terminalEnFlag",staticClass:"t-cmd-line-content"},[e._v("a")]),i("span",{ref:"terminalCnFlag",staticClass:"t-cmd-line-content"},[e._v("你")])])])},a=[];i("989b"),i("3767"),i("f33e"),i("0b22"),i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("e260"),i("3ca3"),i("ddb0"),i("d9e2"),i("fb6a"),i("a630"),i("ac1f"),i("00b4");function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){if(e){if("string"===typeof e)return l(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(e,t):void 0}}function u(e,t){var i="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=c(e))||t&&e&&"number"===typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(a)throw o}}}}i("99af"),i("4e82"),i("466d"),i("498a"),i("25f0"),i("e9c4"),i("1276"),i("4d63"),i("c607"),i("2c3e"),i("5319"),i("2ca0"),i("159b"),i("a434"),i("8a79"),i("a15b"),i("38cf");function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}i("b64b"),i("e6cf");var d=[{key:"help",title:"Help",group:"local",usage:"help [pattern]",description:"Show command document.",example:[{des:"Get all commands.",cmd:"help"},{des:"Get help documentation for exact match commands.",cmd:"help refresh"},{des:"Get help documentation for fuzzy matching commands.",cmd:"help *e*"},{des:"Get help documentation for specified group, match key must start with ':'.",cmd:"help :groupA"}]},{key:"clear",title:"Clear screen or history logs",group:"local",usage:"clear [history]",description:"Clear screen or history.",example:[{cmd:"clear",des:"Clear all records on the current screen."},{cmd:"clear history",des:"Clear command history"}]},{key:"open",title:"Open page",group:"local",usage:"open <url>",description:"Open a specified page.",example:[{cmd:"open blog.beifengtz.com"}]}],f={CMD_LINE:"cmdLine",NORMAL:"normal",JSON:"json",CODE:"code",TABLE:"table",HTML:"html",ANSI:"ansi"},p={SUCCESS:"success",ERROR:"error",INFO:"info",WARN:"warning",SYSTEM:"system"};function g(e){return String(e).replace(/&(?!\w+;)/g,"&").replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\n/g,"<br>").replace(/\t/g," ")}function v(e){return void 0===e||null===e||"string"===typeof e&&0===e.trim().length||"object"===h(e)&&0===Object.keys(e).length}function m(e){return!v(e)}function y(e){return e?e.replace(/[<">']/g,(function(e){return{"<":"<",'"':""",">":">","'":"'"}[e]})):""}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body.clientWidth,t={};return e<600?t.xs=!0:e>=600&&e<960?t.sm=!0:e>=960&&e<1264?t.md=!0:e>=1264&&e<1904?t.lg=!0:t.xl=!0,t}function x(){return/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)}function b(e){for(var t=0,i=0;i<e.length;i++)null!=e[i].match(/[^\x00-\xff]/gi)?t+=2:t+=1;return t}function w(e,t,i){e&&e.addEventListener&&e.addEventListener(t,i)}function S(e,t,i){e&&e.removeEventListener&&e.removeEventListener(t,i)}function C(){if(navigator&&navigator.clipboard)return navigator.clipboard.readText();var e=document.createElement("div");e.contentEditable=!0;var t=document.activeElement.appendChild(e).parentNode;e.focus(),document.execCommand("paste");var i=e.innerText;return t.removeChild(e),i}function A(e){if(e)if(e=e.replace(/nbsp;/g," "),navigator&&navigator.clipboard)navigator.clipboard.writeText(e).then((function(){}));else{var t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.opacity=0,t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),t.remove()}}function M(e,t){var i=e.x,n=e.y,r=t.x,o=t.y,s=t.width,a=t.height;return i>=r&&i<=r+s&&n>=o&&n<=o+a}function k(){return window.getSelection?window.getSelection():document.getSelection()}function T(e){if("object"===h(e)&&e)return e;if("string"===typeof e)try{return JSON.parse(e)}catch(t){return e}}function I(e){var t=/^((http|https):\/\/)?(([A-Za-z0-9]+-[A-Za-z0-9]+|[A-Za-z0-9]+)\.)+([A-Za-z]+)[/?:]?.*$/;t.test(e)?e.startsWith("http")||e.startsWith("https")?window.open(e):window.open("http://".concat(e)):this._pushMessage({class:p.ERROR,type:f.NORMAL,content:"Invalid website url"})}function L(e){if(v(e))return"";for(var t=e.replace(/\xA0/g," ").split(" "),i="",n=!0,r=0;r<t.length;r++){var o=g(t[r]);if(n)i+="<span class='t-cmd-key'>".concat(o,"</span>"),n=!1;else if(o.startsWith("-"))i+='<span class="t-cmd-arg">'.concat(o,"</span>");else if(o.length>0)if("|"===o)n=!0,i+="<span>".concat(o,"</span>");else{i+="<span>";var s=!1;for(var a in o)","===o[a]?i+='<span class="t-cmd-splitter">'.concat(o[a],"</span>"):"|"===o[a]?(i+=o[a],n=!0,a<o.length-1&&(i+="<span class='t-cmd-key'>",s=!0)):i+=o[a],a===o.length-1&&"|"!==o[a]&&(n=!1);i+="</span>",s&&(i+="</span>")}r<t.length-1&&(i+="<span> </span>")}return i}function E(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;while(e){if(e===t)return!0;if(i&&e.classList.contains(i))break;e=e.parentElement}return!1}function D(){var e=navigator.userAgent;if(e)return/mobile/i.test(e);var t=_();return t.xs||t.sm}function O(){var e=navigator.userAgent;return e?/pad/i.test(e):_().sm}var P=new B,R=100;function B(){var e="terminal",t=window.localStorage.getItem(e);t=null==t?{}:JSON.parse(t);var i=function(e,t){var i=r(e);null==i.cmdLog&&(i.cmdLog=[]),0!==i.cmdLog.length&&i.cmdLog[i.cmdLog.length-1]===t||(i.cmdLog.push(t),i.cmdLog.length>R&&i.cmdLog.splice(0,i.cmdLog.length-R)),i.cmdIdx=i.cmdLog.length,n()},n=function(){window.localStorage.setItem(e,JSON.stringify(t))},r=function(e){var i=t[e];return null==i&&(i={},t[e]=i),i},o=function(e){var t=r(e);return null==t.cmdLog&&(t.cmdLog=[]),t.cmdLog},s=function(e){var t=r(e);t.cmdLog=[],t.cmdIdx=0,n()},a=function(e){var t=r(e);return 0|t.cmdIdx},l=function(e,t){var i=r(e);i.cmdIdx=t};return{pushCmd:i,getLog:o,clearLog:s,getIdx:a,setIdx:l}}var N=P;function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function F(e,t,i){return t&&H(e.prototype,t),i&&H(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e,t){return V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},V(e,t)}function j(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}i("4ae1"),i("f8c9"),i("3410");function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}function W(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e,t){if(t&&("object"===h(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return G(e)}function q(e){var t=W();return function(){var i,n=$(e);if(t){var r=$(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return U(this,i)}}var Z=function(){function e(){z(this,e)}return F(e,[{key:"finish",value:function(){null!=this.onFinishListener&&this.onFinishListener()}},{key:"onFinish",value:function(e){this.onFinishListener=e}}]),e}(),X=Z,Y=function(e){j(i,e);var t=q(i);function i(){return z(this,i),t.apply(this,arguments)}return F(i,[{key:"flush",value:function(e){null!=this.handler&&this.handler(e)}},{key:"onFlush",value:function(e){this.handler=e}}]),i}(X),K=Y,J=function(e){j(i,e);var t=q(i);function i(){return z(this,i),t.apply(this,arguments)}return F(i,[{key:"ask",value:function(e){null!=this.handler&&this.handler(e)}},{key:"onAsk",value:function(e){this.handler=e}}]),i}(X),Q=J;i("4de4"),i("e439"),i("dbb4");function ee(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function te(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ie(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?te(Object(i),!0).forEach((function(t){ee(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):te(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var ne={},re={};function oe(e,t){if(null!=ne[e])throw Error("Unable to register an existing terminal: ".concat(e));ne[e]=t}function se(e){delete ne[e]}function ae(e,t,i){se(t),oe(e,i)}function le(e){re.highlight=e}function ce(e){re.codemirror=e}function ue(){return re}function he(e){re=ie({},e)}var de={post:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"terminal",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=ne[e];if(null!=n)return n(t,i)},pushMessage:function(e,t){return de.post(e,"pushMessage",t)},fullscreen:function(e){return de.post(e,"fullscreen")},isFullscreen:function(e){return de.post(e,"isFullscreen")},dragging:function(e,t){return de.post(e,"dragging",t)},execute:function(e,t){return de.post(e,"execute",t)},focus:function(e,t){return de.post(e,"focus",t)},elementInfo:function(e,t){return de.post(e,"elementInfo",t)},textEditorOpen:function(e,t){return de.post(e,"textEditorOpen",t)},textEditorClose:function(e,t){return de.post(e,"textEditorClose",t)},clearLog:function(e,t){return de.post(e,"clearLog",t)}},fe=de,pe=de.pushMessage,ge=de.fullscreen,ve=de.isFullscreen,me=de.dragging,ye=de.execute,_e=de.focus,xe=de.elementInfo,be=de.textEditorClose,we=de.textEditorOpen;de.clearLog,i("a9e3");function Se(){return{title:{type:String,default:"vue-web-terminal"}}}function Ce(){return{item:{type:Object,default:function(){return{class:null,type:"normal",content:null,tag:null}}},idx:Number|String}}function Ae(){return ie(ie({},Se()),{},{name:{type:String,default:""},initLog:{type:Array,default:function(){return[{type:"normal",content:"Terminal Initializing ..."},{type:"normal",content:"Current login time: "+(new Date).toLocaleString()},{type:"normal",content:"Welcome to vue web terminal! If you are using for the first time, you can use the <span class='t-cmd-key'>help</span> command to learn.Thanks for your star support: <a class='t-a' target='_blank' href='https://github.com/tzfun/vue-web-terminal'>https://github.com/tzfun/vue-web-terminal</a>"}]}},context:{type:String,default:"/vue-web-terminal"},contextSuffix:{type:String,default:" > "},commandStore:{type:Array},commandStoreSort:{type:Function},autoHelp:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},enableExampleHint:{type:Boolean,default:!0},inputFilter:{type:Function},dragConf:{type:Object},commandFormatter:{type:Function},tabKeyHandler:{type:Function},searchHandler:{type:Function},scrollMode:{type:String,default:"smooth"},pushMessageBefore:Function,logSizeLimit:{type:Number,default:200},enableDefaultCommand:{type:Boolean,default:!0}})}var Me=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"t-header"},[i("h4",{staticStyle:{display:"inline-block"}},[i("span",{staticClass:"t-disable-select",staticStyle:{cursor:"pointer"},on:{click:function(t){return e._triggerClick("title")}}},[e._v(" "+e._s(e.title)+" ")])]),i("ul",{staticClass:"t-shell-dots"},[i("li",{staticClass:"shell-dot-item t-shell-dots-red",on:{click:function(t){return e._triggerClick("close")}}},[i("svg",{staticClass:"t-shell-dot",attrs:{t:"1645078279626",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1864",width:"10",height:"10"}},[i("path",{attrs:{d:"M544.448 499.2l284.576-284.576a32 32 0 0 0-45.248-45.248L499.2 453.952 214.624 169.376a32 32 0 0 0-45.248 45.248l284.576 284.576-284.576 284.576a32 32 0 0 0 45.248 45.248l284.576-284.576 284.576 284.576a31.904 31.904 0 0 0 45.248 0 32 32 0 0 0 0-45.248L544.448 499.2z","p-id":"1865",fill:"#1413139c"}})])]),i("li",{staticClass:"shell-dot-item t-shell-dots-yellow",on:{click:function(t){return e._triggerClick("minScreen")}}},[i("svg",{staticClass:"t-shell-dot",attrs:{t:"1645078503601",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2762",width:"10",height:"10"}},[i("path",{attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z","p-id":"2763",fill:"#1413139c"}})])]),i("li",{staticClass:"shell-dot-item t-shell-dots-green",on:{click:function(t){return e._triggerClick("fullScreen")}}},[i("svg",{staticClass:"t-shell-dot",attrs:{t:"1645078604258",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9907",width:"10",height:"10"}},[i("path",{attrs:{d:"M188.373333 128H384c23.573333 0 42.666667-19.093333 42.666667-42.666667s-19.093333-42.666667-42.666667-42.666666H85.333333C61.76 42.666667 42.666667 61.76 42.666667 85.333333v298.666667c0 23.573333 19.093333 42.666667 42.666666 42.666667s42.666667-19.093333 42.666667-42.666667V188.373333L396.170667 456.533333a42.730667 42.730667 0 0 0 60.362666 0 42.741333 42.741333 0 0 0 0-60.362666L188.373333 128zM938.666667 597.002667c-23.573333 0-42.666667 19.093333-42.666667 42.666666v195.626667l-268.309333-268.16c-16.746667-16.64-43.893333-16.64-60.544 0s-16.650667 43.893333 0 60.533333L835.317333 896h-195.626666c-23.584 0-42.666667 19.093333-42.666667 42.666667s19.082667 42.666667 42.666667 42.666666h298.666666C961.92 981.333333 981.333333 961.92 981.333333 938.336v-298.666667c0-23.573333-19.093333-42.666667-42.666666-42.666666z","p-id":"9908",fill:"#1413139c"}})])])]),e.draggable?i("div",{staticClass:"t-header-pin",on:{click:function(t){return e._triggerClick("pin")}}},[e.pinned?i("svg",{staticClass:"icon",attrs:{t:"1683254395548",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4113",width:"18",height:"18"}},[i("path",{attrs:{d:"M320 839.68l-238.592 174.08c-8.704 6.656-19.456 9.728-29.696 9.728-12.8 0-26.112-5.12-35.84-14.848-17.92-17.92-20.48-46.08-5.12-66.56l212.992-288.256L56.32 487.424C39.936 471.04 36.864 445.44 48.128 425.472c8.192-12.8 76.8-112.64 229.376-75.264 2.56 0.512 5.12 0.512 8.192 1.024 6.144 0.512 13.312 1.024 20.992 2.56 32.256 5.12 89.6-20.48 139.264-62.976 47.616-40.448 78.336-87.552 78.336-120.32 0-7.68 0-15.872-0.512-23.552-1.024-30.72-3.072-77.824 31.744-112.64 41.472-41.472 107.52-45.056 153.088-7.68 1.024 0.512 1.536 1.536 2.56 2.56 24.576 24.064 276.48 275.968 279.04 278.528 21.504 21.504 33.792 50.688 33.792 81.408s-11.776 59.392-33.792 80.896c-34.816 34.816-82.432 33.28-113.664 31.744-7.168 0-15.36-0.512-23.04-0.512-30.72 0-67.584 21.504-103.936 60.928-50.688 55.296-81.92 126.464-79.36 158.72 1.024 10.24 3.072 28.16 3.584 30.72 36.864 149.504-62.976 217.6-74.752 225.28-20.48 12.288-46.592 9.216-62.976-7.168l-165.376-165.376-50.688 35.328z",fill:"#daf3ef","p-id":"4114"}})]):i("svg",{staticClass:"icon",attrs:{t:"1683166931100",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2638",width:"18",height:"18"}},[i("path",{attrs:{d:"M51.196068 1024c-13.021992 0-26.0184-5.091113-36.021541-15.094254-18.113104-18.164271-20.262117-46.050265-5.091113-66.337966l213.059228-288.325828-166.983379-166.983379C39.862586 470.961896 36.639068 445.48075 48.305135 425.2698c7.982046-12.612656 76.699275-112.82315 229.483822-75.010766 2.532765 0.307002 5.270197 0.537253 8.212297 0.793088 6.267953 0.537253 13.277827 1.17684 20.87612 2.404847 32.33752 5.244614 89.516599-20.722619 139.148552-63.037697 47.559691-40.49865 78.285451-87.751339 78.285451-120.344693 0-7.57271-0.179084-15.631507-0.358169-23.536802-1.279174-30.623426-3.223519-77.697031 31.979351-112.874317 41.649907-41.701074 107.552953-45.05251 153.270633-7.854129 0.921005 0.741921 1.76526 1.535009 2.583932 2.379264l-0.025583 0c24.585725 24.048472 276.608594 275.815506 279.243692 278.476188 21.694792 21.694792 33.642277 50.527374 33.693444 81.176384 0.025583 30.674593-11.896319 59.456009-33.539943 81.099634-35.023785 35.049369-82.353225 33.053857-113.565071 31.723516-7.393626-0.153501-15.478006-0.332585-23.025133-0.332585-30.828094 0-67.69389 21.592458-103.715431 60.760767-50.808793 55.260318-82.09739 126.63823-79.411124 158.617581 1.125673 10.258976 3.223519 28.37208 3.607271 30.930428 36.891379 149.612195-63.114447 217.843339-74.627013 225.109047-20.697036 12.484739-46.357267 9.389137-63.012113-7.240125l-178.393611-178.393611c-10.003141-10.003141-10.003141-26.171901 0-36.175042s26.171901-10.003141 36.175042 0l178.393611 178.393611c7.854129-5.091113 80.101878-54.646315 51.320462-171.76749-0.51167-2.35368-3.044434-23.562386-4.374775-35.970374-4.298025-51.115795 35.586622-136.027367 92.688951-198.118475 32.439854-35.254036 83.27423-77.287695 141.348731-77.287695 7.905296 0 16.399011 0.179084 24.662475 0.358169 32.41427 1.355924 58.048918 0.972172 75.77827-16.782763 11.973069-11.973069 18.548024-27.885994 18.548024-44.847842-0.025583-17.013015-6.677288-33.00269-18.701524-45.05251C952.220677 340.23031 683.849964 72.243349 675.944668 64.645055c-24.278723-19.724864-60.7096-17.882853-83.785899 5.21903-17.908437 17.908437-18.317772 43.491917-17.013015 75.087516 0.204668 8.800717 0.383752 17.243266 0.383752 25.148562 0 48.378362-35.995957 107.936705-96.270638 159.282751-49.478452 42.135993-122.979792 83.811483-180.491457 74.60143-6.293536-1.023339-12.049819-1.509425-17.192099-1.944345-3.325852-0.281418-6.421454-0.562837-9.312387-0.921005-2.456014-0.07675-4.860861-0.537253-7.188958-1.304758-117.760762-29.037251-167.597382 43.44075-172.893163 51.806549l182.742803 182.026466c8.954218 8.954218 10.028724 23.101883 2.481598 33.309692L51.170485 973.114457l238.617125-174.530506c11.435816-8.365798 27.425491-5.80745 35.740123 5.602782s5.80745 27.399908-5.602782 35.714539l-238.821793 174.12117C72.148939 1020.699731 61.685295 1024 51.196068 1024z",fill:"#e6e6e6","p-id":"2639"}})])]):e._e()])},ke=[],Te={name:"THeader",props:ie(ie({},Se()),{},{pinned:Boolean,draggable:Boolean}),methods:{_triggerClick:function(e){this.$emit("on-click",e)}}},Ie=Te;i("c5ca");function Le(e,t,i,n,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}var Ee=Le(Ie,Me,ke,!1,null,"d87614ca",null),De=Ee.exports,Oe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"t-json-container",staticStyle:{position:"relative"}},[i("json-viewer",{key:e.idx+"_"+e.item.depth,attrs:{"expand-depth":e.item.depth,sort:"",copyable:"",expanded:"",value:e._parseToJson(e.item.content)}}),i("select",{directives:[{name:"model",rawName:"v-model",value:e.item.depth,expression:"item.depth"}],staticClass:"t-json-deep-selector",on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.item,"depth",t.target.multiple?i:i[0])}}},[i("option",{attrs:{value:"",disabled:"",selected:"",hidden:"",label:"Choose a display deep"}}),e._l(e.jsonViewDepth,(function(e){return i("option",{key:e,attrs:{label:"Deep "+e},domProps:{value:e}})}))],2)],1)},Pe=[],Re={name:"TViewJson",data:function(){return{jsonViewDepth:[1,2,3,4,5,6,7,8,9,10]}},props:Ce(),methods:{_parseToJson:function(e){return T(e)}}},Be=Re,Ne=Le(Be,Oe,Pe,!1,null,"7066d520",null),ze=Ne.exports,He=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"t-content-normal"},[e._nonEmpty(null==e.item.tag?e.item.class:e.item.tag)?i("span",{class:e.item.class,staticStyle:{"margin-right":"10px"}},[e._v(e._s(null==e.item.tag?e.item.class:e.item.tag))]):e._e(),i("span",{domProps:{innerHTML:e._s(e.item.content)}})])},Fe=[],Ve={name:"TViewNormal",props:Ce(),methods:{_nonEmpty:function(e){return m(e)}}},je=Ve,$e=Le(je,He,Fe,!1,null,"4e6b5f67",null),We=$e.exports,Ge=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"t-code"},[e.highlightjsConf()?i("div",{staticClass:"t-vue-highlight"},[i("highlightjs",{ref:"highlightjs",attrs:{autodetect:"",code:e.item.content}})],1):e.codemirrorConf()?i("div",{staticClass:"t-vue-codemirror"},[i("codemirror",{ref:"codemirror",attrs:{options:e.codemirrorConf()},model:{value:e.item.content,callback:function(t){e.$set(e.item,"content",t)},expression:"item.content"}})],1):i("div",{staticClass:"t-code-default"},[i("pre",{staticStyle:{padding:"1em",margin:"0"}},[i("code",{staticStyle:{"font-size":"15px"}},[e._v(e._s(e.item.content))])])])])},Ue=[],qe={name:"TViewCode",props:Ce(),methods:{highlightjsConf:function(){return ue().highlight},codemirrorConf:function(){return ue().codemirror}}},Ze=qe,Xe=Le(Ze,Ge,Ue,!1,null,"b22fbab2",null),Ye=Xe.exports,Ke=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("table",{staticClass:"t-table t-border-dashed"},[i("thead",[i("tr",{staticClass:"t-border-dashed"},e._l(e.item.content.head,(function(t){return i("td",{key:t,staticClass:"t-border-dashed"},[e._v(e._s(t))])})),0)]),i("tbody",e._l(e.item.content.rows,(function(t,n){return i("tr",{key:n,staticClass:"t-border-dashed"},e._l(t,(function(t,n){return i("td",{key:n,staticClass:"t-border-dashed"},[i("div",{domProps:{innerHTML:e._s(t)}})])})),0)})),0)])},Je=[],Qe={name:"TViewTable",props:Ce()},et=Qe,tt=Le(et,Ke,Je,!1,null,"59a5f122",null),it=tt.exports,nt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.result&&e.result.item&&!e._screenType().xs?i("div",{ref:"terminalHelpBox",staticClass:"t-cmd-help",style:"top: "+e.top+"px;max-height: calc(100% - "+e.top+"px);"},[null!=e.result.item.description?i("p",{staticClass:"text",staticStyle:{margin:"15px 0"},domProps:{innerHTML:e._s(e.result.item.description)}}):e._e(),null!=e.result.item.example&&e.result.item.example.length>0?i("div",e._l(e.result.item.example,(function(t,n){return i("div",{key:n,staticClass:"text"},[1===e.result.item.example.length?i("div",[i("span",[e._v("Example: "),i("code",[e._v(e._s(t.cmd))]),e._v(" "+e._s(t.des))])]):i("div",[i("div",{staticClass:"t-cmd-help-eg"},[e._v(" eg"+e._s(e.result.item.example.length>1?n+1:"")+": ")]),i("div",{staticClass:"t-cmd-help-example"},[i("ul",{staticClass:"t-example-ul"},[i("li",{staticClass:"t-example-li"},[i("code",[e._v(e._s(t.cmd))])]),i("li",{staticClass:"t-example-li"},[null!=t.des?i("span",{staticClass:"t-cmd-help-des"},[e._v(e._s(t.des))]):e._e()])])])])])})),0):e._e()]):e._e()},rt=[],ot={name:"THelpBox",props:{top:Number,result:Object},methods:{_screenType:function(){return _()},getBoundingClientRect:function(){var e=this.$refs.terminalHelpBox;if(e)return e.getBoundingClientRect()}}},st=ot,at=Le(st,nt,rt,!1,null,"af37e0f8",null),lt=at.exports,ct=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"t-editor"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.config.value,expression:"config.value"}],ref:"textEditor",staticClass:"t-text-editor",attrs:{name:"editor"},domProps:{value:e.config.value},on:{focus:e.config.onFocus,blur:e.config.onBlur,input:function(t){t.target.composing||e.$set(e.config,"value",t.target.value)}}}),i("div",{staticClass:"t-text-editor-floor",attrs:{align:"center"}},[i("button",{staticClass:"t-text-editor-floor-btn t-close-btn",attrs:{title:"Cancel Edit"},on:{click:function(t){return e.$emit("close",!1)}}},[e._v("Cancel")]),i("button",{staticClass:"t-text-editor-floor-btn t-save-btn",attrs:{title:"Save And Close"},on:{click:function(t){return e.$emit("close",!0)}}},[e._v("Save & Close")])])])},ut=[],ht={name:"TEditor",props:{config:Object},methods:{focus:function(){this.$refs.textEditor.focus()}}},dt=ht,ft=(i("8508"),Le(dt,ct,ut,!1,null,"7bf1e77a",null)),pt=ft.exports,gt=i("525b"),vt="\0",mt="",yt="",_t=yt+"[",xt=yt+"]",bt=yt+"^",wt=yt+"=",St=yt+">",Ct=yt+"(",At=yt+")",Mt=yt+"*",kt=yt+"+",Tt=yt+"%",It=yt+"#";function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"windows",i=[""],n={attachStyle:"",styleFlag:{}};function r(){i[i.length-1]='<div class="t-ansi-line">'+i[i.length-1]+"</div>",i.push("")}function o(e){try{var t,r=e.split(""),o=u(r);try{for(o.s();!(t=o.n()).done;){var s=t.value,a=void 0,l="t-ansi-char";n.styleFlag.length>0?(n.styleFlag.forEach((function(e){return l+=" t-ansi-"+parseInt(e)})),a='<span class="'.concat(l,'" style="').concat(n.attachStyle,'">').concat(s,"</span>")):a='<span class="'.concat(l,'" style="').concat(n.attachStyle,'">').concat(s,"</span>"),i[i.length-1]=i[i.length-1]+a}}catch(c){o.e(c)}finally{o.f()}}catch(h){console.error("Can not fill char: "+e.toString(),h)}}for(var s=Array.from(e),a=0;a<s.length;a++){var l=s[a];if(l!==vt)if(l!==yt)"\r"!==l?"\n"!==l?"\b"!==l&&("\t"!==l?l>="\0"&&l<=""||o(l):o(" ".repeat(4))):r():"windows"===t?a+1<s.length&&"\n"===s[a+1]?(r(),a++):r():"mac"===t&&r();else{var c=e.substring(a,a+2),h=a;if(c===_t){var d=/[@ABCDEFGHIJKLMPSTXZ`"bcdfghilmnpqrstwxz]/,f=void 0;h=a+1;while(h<s.length-1){var p=s[++h];if(d.test(p.toString())){if("`"===p&&h+1<s.length){var g=s[h+1];if(/[wz{|]/.test(g.toString())){f=p+g,h++;break}}else if('"'===p&&h+1<s.length){var v=s[h+1];if(/[pq]/.test(v.toString())){f=p+v,h++;break}}else if("&"===p&&h+1<s.length){var m=s[h+1];if("w"===m){f=p+m,h++;break}}f=p;break}}var y=e.substring(a,h+1);if("m"===f){var _=y.substring(2,y.length-1);0===_.length&&(_="0"),n.styleFlag=[];var x,b=u(_.split(";"));try{for(b.s();!(x=b.n()).done;){var w=x.value,S=parseInt(w);0===S?(n.attachStyle="",n.styleFlag=[]):n.styleFlag.push(S)}}catch(M){b.e(M)}finally{b.f()}3===n.styleFlag.length&&(38===n.styleFlag[0]&&5===n.styleFlag[1]?(n.attachStyle+="color:".concat(gt["c"+n.styleFlag[2]],";"),n.styleFlag=[]):48===n.styleFlag[0]&&5===n.styleFlag[1]?(n.attachStyle+="background-color:".concat(gt["c"+n.styleFlag[2]],";"),n.styleFlag=[]):n.attachStyle="")}}else if(c===xt){var C=a+1;while(C<=s.length){if(C++,s[C]===mt){h=C;break}if(s[C]===yt&&"\\"===s[C]){h=C+1;break}}}else if(c===bt){var A=a+1;while(A<s.length)if(++A,"\\"===s[A])break;h=A}else c===wt||c===St?h=a+1:(c===Ct||c===At||Mt||kt||c===Tt||c===It)&&(h=a+2);a=h}}return i.join("")}var Et=0;function Dt(){return Et++,"terminal_".concat(Et)}var Ot={name:"Terminal",components:{THelpBox:lt,TViewNormal:We,THeader:De,TViewJson:ze,TViewCode:Ye,TViewTable:it,TEditor:pt},data:function(){var e=this;return{command:"",commandLog:[],cursorConf:{defaultWidth:7,width:7,left:"unset",top:"unset",idx:0,show:!1},byteLen:{init:!1,en:8,cn:13},showInputLine:!0,terminalLog:[],searchCmdResult:{show:!1,defaultBoxRect:null,item:null},allCommandStore:[],fullscreenState:!1,inputBoxParam:{boxWidth:0,boxHeight:0,promptWidth:0,promptHeight:0},flash:{open:!1,content:null},ask:{open:!1,question:null,isPassword:!1,callback:null,autoReview:!1,input:""},textEditor:{open:!1,focus:!1,value:"",onClose:null,onFocus:function(){e.textEditor.focus=!0},onBlur:function(){e.textEditor.focus=!1}},containerStyleStore:null,headerHeight:0,resizeObserver:null}},props:Ae(),mounted:function(){var e=this;this.$emit("init-before",this.getName()),this._initContainerStyle(),this.initLog&&this._pushMessage(this.initLog);var t=[];this.enableDefaultCommand&&(t=t.concat(d)),this.commandStore&&(this.commandStoreSort&&this.commandStore.sort(this.commandStoreSort),t=t.concat(this.commandStore)),this.allCommandStore=t;var i=this.$refs.terminalWindow;i.scrollTop=i.offsetHeight;var n=null;w(window,"click",this.clickListener=function(t){var i=!1,n=e.$refs.terminalContainer;n&&n.getBoundingClientRect&&M(t,n.getBoundingClientRect())&&(i=E(t.target,n,"t-container")||t.target&&t.target.classList.contains("t-text-editor-floor-btn")),e.isBlockCommandFocus()?e.cursorConf.show=!1:e.cursorConf.show=i,i?e._onActive():e._onInactive()}),w(window,"keydown",this.keydownListener=function(t){if(e.isActive())try{var i=t.key.toLowerCase();if(i.match(/c|control|meta/g)){if(t.metaKey||t.ctrlKey)return;if("c"===i&&(t.metaKey||t.ctrlKey))return}e.cursorConf.show&&("tab"===i?(e.tabKeyHandler?e.tabKeyHandler(t,(function(t){e.command=t?t.trim():""})):e._fillCmd(),t.preventDefault()):document.activeElement!==e.$refs.terminalCmdInput&&(e.$refs.terminalCmdInput.focus(),e._onInputKeydown(t)))}finally{e.$emit("on-keydown",t,e.getName())}}),w(i,"mousedown",(function(){var e=k(),t="";(!e.isCollapsed||(t=e.toString()).length>0)&&(n=t.length>0?t:e.toString())})),w(i,"contextmenu",this.contextMenuClick=function(t){if(t.preventDefault(),n)return A(n),void(n=null);var i=C();i?i.then((function(t){if(t){t=t.trim();var i=e.command;e.command=i&&i.length?"".concat(i).concat(t):t,e._focus()}})).catch((function(e){console.error(e)})):e._focus()});var r=null;if(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach((function(t){w(window,t,(function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.fullscreenElement;t?(r=JSON.parse(JSON.stringify(e.containerStyleStore)),x()&&(e.containerStyleStore.width="100%",e.containerStyleStore.height="100%",e.containerStyleStore.left="0",e.containerStyleStore.top="0")):(e.fullscreenState=!1,r&&(e.containerStyleStore=r))}))})),D()||O()){var o=0;i.addEventListener("touchend",(function(){var t=(new Date).getTime();0===o?o=t:(new Date).getTime()-o<600?e._focus(!0):o=t}))}this.resizeObserver=new ResizeObserver((function(t){var i,n=u(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;r.target===e.$refs.terminalHeader&&e._updateHeaderHeight()}}catch(o){n.e(o)}finally{n.f()}})),this.$refs.terminalHeader&&this.resizeObserver.observe(this.$refs.terminalHeader),this._initDrag(),oe(this.getName(),this.terminalListener=function(t,i){if("pushMessage"===t)e._pushMessage(i);else if("appendMessage"===t)e._appendMessage(i);else if("fullscreen"===t)e._fullscreen();else{if("isFullscreen"===t)return e.fullscreenState;if("dragging"===t)e.isDraggable()?e._dragging(i.x,i.y):console.warn("Terminal is not draggable: "+e.getName());else if("execute"===t)!e.isBlockCommandFocus()&&m(i)&&(e.command=i.trim(),e._execute());else if("focus"===t)e._focus(i);else{if("elementInfo"===t){var n=e.$refs.terminalWindow,r=n.getBoundingClientRect(),o=e.$refs.terminalContainer.getBoundingClientRect(),s=n.scrollHeight>n.clientHeight||n.offsetHeight>n.clientHeight;return{pos:e._getPosition(),screenWidth:o.width,screenHeight:o.height,clientWidth:s?r.width-48:r.width-40,clientHeight:r.height,charWidth:{en:e.byteLen.en,cn:e.byteLen.cn}}}if("textEditorOpen"===t){var a=i||{};e.textEditor.value=a.content,e.textEditor.open=!0,e.textEditor.onClose=a.onClose,e._focus()}else{if("textEditorClose"===t)return e._textEditorClose(i);if("clearLog"===t)return e.clearLog(i);console.error("Unsupported event type ".concat(t," in instance ").concat(e.getName()))}}}}),this.$emit("init-complete",this.getName())},destroyed:function(){this.$emit("destroyed",this.getName()),S(window,"keydown",this.keydownListener),S(window,"click",this.clickListener),this.resizeObserver&&this.$refs.terminalHeader&&(this.resizeObserver.unobserve(this.$refs.terminalHeader),this.resizeObserver=null),se(this.getName())},watch:{terminalLog:function(){this._jumpToBottom()},context:{handler:function(){var e=this;this.$nextTick((function(){e._calculatePromptLen()}))}},name:{handler:function(e,t){ae(e||this.getName(),t||this._name,this.terminalListener)}},"dragConf.zIndex":function(e){this.containerStyleStore["z-index"]=e},showHeader:function(){this._updateHeaderHeight()}},methods:{pushMessage:function(e){pe(this.getName(),e)},fullscreen:function(){return ge(this.getName())},isFullscreen:function(){return ve(this.getName())},dragging:function(e){return me(this.getName(),e)},execute:function(e){return ye(this.getName(),e)},focus:function(){return _e(this.getName())},elementInfo:function(){return xe(this.getName())},textEditorClose:function(e){return be(this.getName(),e)},textEditorOpen:function(e){return we(this.getName(),e)},clearLog:function(e){e?N.clearLog(this.getName()):this.terminalLog=[]},getName:function(){return this.name?this.name:(this._name||(this._name=Dt()),this._name)},isPinned:function(){return this.dragConf&&this.dragConf.pinned},isDraggable:function(){return this.showHeader&&null!=this.dragConf},isActive:function(){return this.cursorConf.show||this.ask.open&&this.$refs.terminalAskInput===document.activeElement||this.textEditor.open&&this.textEditor.focus},isBlockCommandFocus:function(){return this.textEditor.open||this.flash.open||this.ask.open},_triggerClick:function(e){if("fullScreen"!==e||this.fullscreenState){if("minScreen"===e&&this.fullscreenState)this._fullscreen();else if("pin"===e&&this.showHeader){var t=this.dragConf.pinned||!1;this.dragConf.pinned=!t}}else this._fullscreen();this.$emit("on-click",e,this.getName())},_updateHeaderHeight:function(){var e=this;this.$nextTick((function(){var t=e.$refs.terminalHeader;if(t&&t.getBoundingClientRect){var i=t.getBoundingClientRect();e.headerHeight=i.height}else e.headerHeight=0}))},_calculateByteLen:function(){if(!this.byteLen.init){var e=this.$refs.terminalEnFlag;if(e){var t=e.getBoundingClientRect();t&&t.width>0&&(this.byteLen={init:!0,en:t.width,cn:this.$refs.terminalCnFlag.getBoundingClientRect().width},this.cursorConf.defaultWidth=this.byteLen.en)}}},_calculatePromptLen:function(){var e=this.$refs.terminalInputPrompt;if(e){var t=e.getBoundingClientRect();t.width>0&&(this.inputBoxParam.promptWidth=t.width,this.inputBoxParam.promptHeight=t.height)}},_resetSearchKey:function(){this.searchCmdResult.item=null},_searchCmd:function(e){var t=this;if(this.autoHelp)if(this.searchHandler)this.searchHandler(this.allCommandStore,e,(function(e){t.searchCmdResult.item=e,t._jumpToBottom()}));else{var i=e;if(null==i&&(i=this.command.split(" ")[0]),v(i))this._resetSearchKey();else if(i.trim().indexOf(" ")<0){var n=new RegExp(i.trim().replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i"),r=[],o=null;for(var s in this.allCommandStore){var a=this.allCommandStore[s];if(m(a.key)){var l=a.key.match(n);if(null!=l){var c=1e3*l.index+(i.length-l[0].length)+(a.key.length-l[0].length);if(0===c){o=a;break}r.push({item:a,score:c})}}}if(null==o){if(!(r.length>0))return void(this.searchCmdResult.item=null);r.sort((function(e,t){return e.score-t.score})),o=r[0].item}this.searchCmdResult.item=o,this._jumpToBottom()}}},_fillCmd:function(){this.searchCmdResult.item&&(this.command=this.searchCmdResult.item.key)},_focus:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$nextTick((function(){var t;this.ask.open?(t=this.$refs.terminalAskInput,this.cursorConf.show=!1):this.textEditor.open?(t=this.$refs.terminalTextEditor,this.cursorConf.show=!1):(!0===e&&(t=this.$refs.terminalCmdInput),this.cursorConf.show=!0),t&&t.focus(),this._onActive()}))},_printHelp:function(e,t){var i={head:["KEY","GROUP","DETAIL"],rows:[]},n=t&&t.length>1&&t.startsWith(":")?t.substring(1).toLowerCase():null;this.allCommandStore.forEach((function(t){if(n){if(v(t.group)||n!==t.group.toLowerCase())return}else if(!e.test(t.key))return;var r=[];r.push("<span class='t-cmd-key'>".concat(t.key,"</span>")),r.push(t.group);var o="";if(m(t.description)&&(o+="Description: ".concat(t.description,"<br>")),m(t.usage)&&(o+="Usage: <code>".concat(y(t.usage),"</code><br>")),null!=t.example)for(var s in t.example.length>0&&(o+="<br>"),t.example){var a=t.example[s];o+='\n <div>\n <div style="float:left;width: 30px;display:flex;font-size: 12px;line-height: 18px;">\n eg'.concat(parseInt(s)+1,':\n </div>\n <div class="t-cmd-help-example">\n <ul class="t-example-ul">\n <li class="t-example-li"><code>').concat(a.cmd,'</code></li>\n <li class="t-example-li"><span></span></li>\n '),m(a.des)&&(o+='<li class="t-example-li"><span>'.concat(a.des,"</span></li>")),o+="\n </ul>\n </div>\n </div>\n "}r.push(o),i.rows.push(r)})),this._pushMessage({type:f.TABLE,content:i})},_execute:function(){var e=this;if(this._resetSearchKey(),this._saveCurCommand(),m(this.command))try{var t=this.command.split(" "),i=t[0];this.$emit("before-exec-cmd",i,this.command,this.getName());var n=function(){e.showInputLine=!1;var t=function(t){var i=function(){e.showInputLine=!0,e._endExecCallBack()};if(null!=t){if(t instanceof K)return t.onFlush((function(t){e.flash.content=t})),t.onFinish((function(){e.flash.open=!1,i()})),void(e.flash.open=!0);if(t instanceof Q)return t.onAsk((function(t){e.ask.input="",e.ask.isPassword=t.isPassword,e.ask.question=g(t.question),e.ask.callback=t.callback,e.ask.autoReview=t.autoReview,e._focus()})),t.onFinish((function(){e.ask.open=!1,i(),e._focus(!0)})),void(e.ask.open=!0);e._pushMessage(t)}i()},n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Failed to execute.";null!=t&&e._pushMessage({type:f.NORMAL,class:p.ERROR,content:t}),e.showInputLine=!0,e._endExecCallBack()};e.$emit("exec-cmd",i,e.command,t,n,e.getName())};if(!this.enableDefaultCommand)return void n();switch(i){case"help":var r="^".concat(t.length>1&&m(t[1])?t[1]:"*","$");r=r.replace(/\*/g,".*"),this._printHelp(new RegExp(r,"i"),t[1]);break;case"clear":this.clearLog(2===t.length&&"history"===t[1]);break;case"open":I(t[1]);break;default:return void n()}}catch(o){console.error(o),this._pushMessage({type:f.NORMAL,class:p.ERROR,content:g(y(o.stack)),tag:"error"})}this._endExecCallBack()},_endExecCallBack:function(){this.command="",this._resetCursorPos(),this.isActive()?(this._focus(),this.cursorConf.show=!0):this.cursorConf.show=!1,this.searchCmdResult.show=!0,this.searchCmdResult.defaultBoxRect=null},_filterMessageType:function(e){var t=e.type&&/^(normal|html|code|table|json)$/.test(e.type);return t?e.type===f.JSON&&(e.depth||(e.depth=1)):(console.debug("Invalid terminal message type: ".concat(e.type,", the default type normal will be used")),e.type=f.NORMAL),t},_pushMessage:function(e){var t=this;if(e)if(e instanceof Array){var i,n=u(e);try{for(n.s();!(i=n.n()).done;){var r=i.value;this._pushMessage0(r)}}catch(o){n.e(o)}finally{n.f()}}else"string"===typeof e&&(e={type:f.NORMAL,content:e}),e.type===f.ANSI&&(e.type=f.HTML,e.content=Lt(e.content)),this._pushMessage0(e),e.type===f.JSON&&setTimeout((function(){t._jumpToBottom()}),80)},_pushMessage0:function(e){this._filterMessageType(e),e.type!==f.CMD_LINE&&this.pushMessageBefore&&this.pushMessageBefore(e,this.getName()),this.terminalLog.push(e);var t=Math.floor(1.1*this.logSizeLimit);if(t>0&&this.terminalLog.length>t){var i=this.terminalLog.length-this.logSizeLimit;this.terminalLog.splice(0,i)}},_appendMessage:function(e){for(var t,i=this.terminalLog.length-1;i>=0;i--){var n=this.terminalLog[i];if("cmdLine"!==n.type){t=n;break}}t?"normal"===t.type||"ansi"===t.type||"code"===t.type||"html"===t.type?t.content+=e:(console.warn("The last message type is ".concat(t.type,", can not append it and then push it.")),this._pushMessage(e)):this._pushMessage(e)},_jumpToBottom:function(){var e=this;this.$nextTick((function(){var t=e.$refs.terminalWindow;null!=t&&t.scrollTo({top:t.scrollHeight,behavior:e.scrollMode})}))},_saveCurCommand:function(){m(this.command)&&N.pushCmd(this.getName(),this.command),this.terminalLog.push({type:"cmdLine",content:"".concat(y(this.context)).concat(this.contextSuffix).concat(this._commandFormatter(this.command))})},_resetCursorPos:function(e){this._calculateByteLen(),this.cursorConf.idx=(null==e?this.command:e).length,this.cursorConf.left="unset",this.cursorConf.top="unset",this.cursorConf.width=this.cursorConf.defaultWidth},_calculateCursorPos:function(e){var t=this.cursorConf.idx,i=null==e?this.command:e;if(this._calculateByteLen(),t<0||t>=i.length)this._resetCursorPos();else{0===this.inputBoxParam.promptWidth&&this._calculatePromptLen();for(var n=this.$refs.terminalInputBox.getBoundingClientRect().width,r={left:0,top:0},o=this.cursorConf.defaultWidth,s=this.inputBoxParam.promptWidth,a=0;a<=t;a++)o=this._calculateStringWidth(i[a]),r.left+=s,s=o,r.left>n&&(r.top+=20,r.left=o);this.cursorConf.left=r.left+"px",this.cursorConf.top=r.top+"px",this.cursorConf.width=o}},_cursorGoLeft:function(){this.cursorConf.idx>0&&this.cursorConf.idx--,this._calculateCursorPos()},_cursorGoRight:function(){this.cursorConf.idx<this.command.length&&this.cursorConf.idx++,this._calculateCursorPos()},_switchPreCmd:function(){var e=N.getLog(this.getName()),t=N.getIdx(this.getName());0!==e.length&&t>0&&(t-=1,this.command=null==e[t]?[]:e[t]),this._resetCursorPos(),N.setIdx(this.getName(),t),this._searchCmd(this.command.trim().split(" ")[0])},_switchNextCmd:function(){var e=N.getLog(this.getName()),t=N.getIdx(this.getName());0!==e.length&&t<e.length-1?(t+=1,this.command=null==e[t]?[]:e[t]):(t=e.length,this.command=""),this._resetCursorPos(),N.setIdx(this.getName(),t),this._searchCmd(this.command.trim().split(" ")[0])},_calculateStringWidth:function(e){var t,i=0,n=u(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;i+=1===b(r)?this.byteLen.en:this.byteLen.cn}}catch(o){n.e(o)}finally{n.f()}return i},_onInput:function(e){var t=this;if(null!=this.inputFilter){var i=e.target.value,n=this.inputFilter(e.data,i,e);null==n&&(n=i),this.command=n}v(this.command)?this._resetSearchKey():this._searchCmd(),this.$nextTick((function(){t._checkInputCursor(),t._calculateCursorPos();var e=t.$refs.terminalCursor.getBoundingClientRect(),i=t.searchCmdResult.defaultBoxRect||t.$refs.terminalHelpBox.getBoundingClientRect();e&&i&&M(e,i)?(t.searchCmdResult.show=!1,t.searchCmdResult.defaultBoxRect=i):(t.searchCmdResult.show=!0,t.searchCmdResult.defaultBoxRect=null)}))},_checkInputCursor:function(){var e=this.$refs.terminalCmdInput;e.selectionStart!==this.cursorConf.idx&&(this.cursorConf.idx=e.selectionStart)},_onInputKeydown:function(e){var t=e.key.toLowerCase();"arrowleft"===t?(this._checkInputCursor(),this._cursorGoLeft()):"arrowright"===t&&(this._checkInputCursor(),this._cursorGoRight())},_onInputKeyup:function(e){var t=e.key.toLowerCase(),i=e.code.toLowerCase();("home"===t||"end"===t||"altleft"===i||"metaleft"===i||"controlleft"===i||(e.ctrlKey||e.metaKey||e.altKey)&&("arrowright"===t||"arrowleft"===t))&&(this._checkInputCursor(),this._calculateCursorPos())},_fullscreen:function(){var e=this.$refs.terminalContainer;this.fullscreenState?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.fullscreenState=!this.fullscreenState},_initContainerStyle:function(){var e={};if(this.isDraggable()){var t=document.body.clientWidth,i=document.body.clientHeight,n=this.dragConf.width,r=null==n?700:n;n&&"string"===typeof n&&n.endsWith("%")&&(r=t*(parseInt(n)/100));var o=this.dragConf.height,s=null==o?500:o;o&&"string"===typeof o&&o.endsWith("%")&&(s=i*(parseInt(o)/100));var a,l,c=this.dragConf.zIndex?this.dragConf.zIndex:100,u=this.dragConf.init;u&&u.x&&u.y?(a=u.x,l=u.y):(a=(t-r)/2,l=(i-s)/2),e.position="fixed",e.width=r+"px",e.height=s+"px",e.left=a+"px",e.top=l+"px",e["z-index"]=c}else e.width="100%",e.height="100%";this.containerStyleStore=e},_getContainerStyle:function(){if(this.containerStyleStore){var e=[];for(var t in this.containerStyleStore)e.push("".concat(t,":").concat(this.containerStyleStore[t]));return e.join(";")}return""},_initDrag:function(){var e=this;if(this.isDraggable()){var t=0,i=0,n=this.$refs.terminalHeader,r=this.$refs.terminalContainer,o=this.$refs.terminalWindow,s=!1,a=!1,l={minWidth:270,minHeight:180,type:"",boxX:0,boxY:0,boxWidth:0,boxHeight:0,cursorX:0,cursorY:0},c=function(e,t){a=!0,o.style["user-select"]="none",l.type=e,l.cursorX=t.clientX,l.cursorY=t.clientY,l.boxX=r.offsetLeft,l.boxY=r.offsetTop,l.boxWidth=r.clientWidth,l.boxHeight=r.clientHeight};w(n,"mousedown",(function(n){e.fullscreenState||(e._onActive(),t=n.clientX-r.offsetLeft,i=n.clientY-r.offsetTop,s=!0,o.style["user-select"]="none")})),w(this.$refs.resizeLT,"mousedown",(function(e){c("lt",e)})),w(this.$refs.resizeRT,"mousedown",(function(e){c("rt",e)})),w(this.$refs.resizeLB,"mousedown",(function(e){c("lb",e)})),w(this.$refs.resizeRB,"mousedown",(function(e){c("rb",e)})),w(document,"mousemove",(function(n){if(!e.isPinned()&&!e.fullscreenState)if(s){var r=n.clientX-t,o=n.clientY-i;e._dragging(r,o)}else if(a){var c=n.clientX-l.cursorX,u=n.clientY-l.cursorY;"rb"===l.type?(c=c<0?-Math.min(l.boxWidth-l.minWidth,-c):c,u=u<0?-Math.min(l.boxHeight-l.minHeight,-u):u,e.containerStyleStore.width=l.boxWidth+c+"px",e.containerStyleStore.height=l.boxHeight+u+"px"):"rt"===l.type?(c=c<0?-Math.min(l.boxWidth-l.minWidth,-c):c,u=u>0?Math.min(l.boxHeight-l.minHeight,u):u,e.containerStyleStore.width=l.boxWidth+c+"px",e.containerStyleStore.height=l.boxHeight-u+"px",e.containerStyleStore.top=Math.max(0,l.boxY+u)+"px"):"lb"===l.type?(c=c>0?Math.min(l.boxWidth-l.minWidth,c):c,u=u<0?-Math.min(l.boxHeight-l.minHeight,-u):u,e.containerStyleStore.width=l.boxWidth-c+"px",e.containerStyleStore.height=l.boxHeight+u+"px",e.containerStyleStore.left=Math.max(0,l.boxX+c)+"px"):"lt"===l.type&&(c=c>0?Math.min(l.boxWidth-l.minWidth,c):c,u=u>0?Math.min(l.boxHeight-l.minHeight,u):u,e.containerStyleStore.width=l.boxWidth-c+"px",e.containerStyleStore.height=l.boxHeight-u+"px",e.containerStyleStore.left=Math.max(0,l.boxX+c)+"px",e.containerStyleStore.top=Math.max(0,l.boxY+u)+"px")}})),w(document,"mouseup",(function(){(s||a)&&e._onActive(),s=!1,a=!1,o.style["user-select"]="unset"}))}},_dragging:function(e,t){if(!this.isPinned()){var i,n,r=document.body.clientWidth,o=document.body.clientHeight,s=this.$refs.terminalContainer;i=e>r-s.clientWidth?r-s.clientWidth:Math.max(0,e),n=t>o-s.clientHeight?o-s.clientHeight:Math.max(0,t),this.dragConf&&(this.dragConf.init={x:i,y:n}),this.containerStyleStore.left=i+"px",this.containerStyleStore.top=n+"px"}},_nonEmpty:function(e){return m(e)},_commandFormatter:function(e){return null!=this.commandFormatter?this.commandFormatter(e):L(e)},_getPosition:function(){if(this.isDraggable()){var e=this.$refs.terminalContainer;return{x:parseInt(e.style.left),y:parseInt(e.style.top)}}return{x:0,y:0}},_onAskInput:function(){this.ask.autoReview&&this._pushMessage({content:this.ask.question+(this.ask.isPassword?"*".repeat(this.ask.input.length):this.ask.input)}),this.ask.question=null,this.ask.callback&&this.ask.callback(this.ask.input)},_textEditorClose:function(e){if(this.textEditor.open){this.textEditor.open=!1;var t=this.textEditor.value;return this.textEditor.value="",this.textEditor.onClose&&(this.textEditor.onClose(t,e),this.textEditor.onClose=null),this._focus(!0),t}},_onActive:function(){this.$emit("on-active",this.getName())},_onInactive:function(){this.$emit("on-inactive",this.getName())}}},Pt=Ot,Rt=Pt,Bt=Le(Rt,s,a,!1,null,"dd06a458",null),Nt=Bt.exports,zt=i("349e"),Ht=i.n(zt);Nt.install=function(e,t){e.use(Ht.a),null!=t&&he(t),Nt.$api=fe,Nt.$Flash=K,Nt.$Ask=Q,e.component(this.name,this)};var Ft=Nt,Vt=fe,jt=K,$t=Q;t["default"]=Ft},fb6a:function(e,t,i){"use strict";var n=i("23e7"),r=i("da84"),o=i("e8b5"),s=i("68ee"),a=i("861d"),l=i("23cb"),c=i("07fa"),u=i("fc6a"),h=i("8418"),d=i("b622"),f=i("1dde"),p=i("f36a"),g=f("slice"),v=d("species"),m=r.Array,y=Math.max;n({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var i,n,r,d=u(this),f=c(d),g=l(e,f),_=l(void 0===t?f:t,f);if(o(d)&&(i=d.constructor,s(i)&&(i===m||o(i.prototype))?i=void 0:a(i)&&(i=i[v],null===i&&(i=void 0)),i===m||void 0===i))return p(d,g,_);for(n=new(void 0===i?m:i)(y(_-g,0)),r=0;g<_;g++,r++)g in d&&h(n,r,d[g]);return n.length=r,n}})},fc6a:function(e,t,i){var n=i("44ad"),r=i("1d80");e.exports=function(e){return n(r(e))}},fce3:function(e,t,i){var n=i("d039"),r=i("da84"),o=r.RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,i){var n=i("4930");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,i){var n=i("da84");e.exports=n.Promise}})}))},85471:function(e,t,i){"use strict";i.r(t);
|
||
/*!
|
||
* Vue.js v2.6.14
|
||
* (c) 2014-2021 Evan You
|
||
* Released under the MIT License.
|
||
*/
|
||
var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function s(e){return!0===e}function a(e){return!1===e}function l(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function h(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||h(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var i=Object.create(null),n=e.split(","),r=0;r<n.length;r++)i[n[r]]=!0;return t?function(e){return i[e.toLowerCase()]}:function(e){return i[e]}}m("slot,component",!0);var y=m("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){var i=e.indexOf(t);if(i>-1)return e.splice(i,1)}}var x=Object.prototype.hasOwnProperty;function b(e,t){return x.call(e,t)}function w(e){var t=Object.create(null);return function(i){var n=t[i];return n||(t[i]=e(i))}}var S=/-(\w)/g,C=w((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),A=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),M=/\B([A-Z])/g,k=w((function(e){return e.replace(M,"-$1").toLowerCase()}));function T(e,t){function i(i){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,i):e.call(t)}return i._length=e.length,i}function I(e,t){return e.bind(t)}var L=Function.prototype.bind?I:T;function E(e,t){t=t||0;var i=e.length-t,n=new Array(i);while(i--)n[i]=e[i+t];return n}function D(e,t){for(var i in t)e[i]=t[i];return e}function O(e){for(var t={},i=0;i<e.length;i++)e[i]&&D(t,e[i]);return t}function P(e,t,i){}var R=function(e,t,i){return!1},B=function(e){return e};function N(e,t){if(e===t)return!0;var i=c(e),n=c(t);if(!i||!n)return!i&&!n&&String(e)===String(t);try{var r=Array.isArray(e),o=Array.isArray(t);if(r&&o)return e.length===t.length&&e.every((function(e,i){return N(e,t[i])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||o)return!1;var s=Object.keys(e),a=Object.keys(t);return s.length===a.length&&s.every((function(i){return N(e[i],t[i])}))}catch(l){return!1}}function z(e,t){for(var i=0;i<e.length;i++)if(N(e[i],t))return i;return-1}function H(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var F="data-server-rendered",V=["component","directive","filter"],j=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:P,parsePlatformTagName:B,mustUseProp:R,async:!0,_lifecycleHooks:j},W=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function G(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function U(e,t,i,n){Object.defineProperty(e,t,{value:i,enumerable:!!n,writable:!0,configurable:!0})}var q=new RegExp("[^"+W.source+".$_\\d]");function Z(e){if(!q.test(e)){var t=e.split(".");return function(e){for(var i=0;i<t.length;i++){if(!e)return;e=e[t[i]]}return e}}}var X,Y="__proto__"in{},K="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),ee=K&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ie=ee&&ee.indexOf("msie 9.0")>0,ne=ee&&ee.indexOf("edge/")>0,re=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Q),oe=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/)),se={}.watch,ae=!1;if(K)try{var le={};Object.defineProperty(le,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,le)}catch(As){}var ce=function(){return void 0===X&&(X=!K&&!J&&"undefined"!==typeof i.g&&(i.g["process"]&&"server"===i.g["process"].env.VUE_ENV)),X},ue=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,fe="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);de="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var pe=P,ge=0,ve=function(){this.id=ge++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){_(this.subs,e)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var t=0,i=e.length;t<i;t++)e[t].update()},ve.target=null;var me=[];function ye(e){me.push(e),ve.target=e}function _e(){me.pop(),ve.target=me[me.length-1]}var xe=function(e,t,i,n,r,o,s,a){this.tag=e,this.data=t,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},be={child:{configurable:!0}};be.child.get=function(){return this.componentInstance},Object.defineProperties(xe.prototype,be);var we=function(e){void 0===e&&(e="");var t=new xe;return t.text=e,t.isComment=!0,t};function Se(e){return new xe(void 0,void 0,void 0,String(e))}function Ce(e){var t=new xe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ae=Array.prototype,Me=Object.create(Ae),ke=["push","pop","shift","unshift","splice","sort","reverse"];ke.forEach((function(e){var t=Ae[e];U(Me,e,(function(){var i=[],n=arguments.length;while(n--)i[n]=arguments[n];var r,o=t.apply(this,i),s=this.__ob__;switch(e){case"push":case"unshift":r=i;break;case"splice":r=i.slice(2);break}return r&&s.observeArray(r),s.dep.notify(),o}))}));var Te=Object.getOwnPropertyNames(Me),Ie=!0;function Le(e){Ie=e}var Ee=function(e){this.value=e,this.dep=new ve,this.vmCount=0,U(e,"__ob__",this),Array.isArray(e)?(Y?De(e,Me):Oe(e,Me,Te),this.observeArray(e)):this.walk(e)};function De(e,t){e.__proto__=t}function Oe(e,t,i){for(var n=0,r=i.length;n<r;n++){var o=i[n];U(e,o,t[o])}}function Pe(e,t){var i;if(c(e)&&!(e instanceof xe))return b(e,"__ob__")&&e.__ob__ instanceof Ee?i=e.__ob__:Ie&&!ce()&&(Array.isArray(e)||h(e))&&Object.isExtensible(e)&&!e._isVue&&(i=new Ee(e)),t&&i&&i.vmCount++,i}function Re(e,t,i,n,r){var o=new ve,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(i=e[t]);var c=!r&&Pe(i);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):i;return ve.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(t)&&ze(t))),t},set:function(t){var n=a?a.call(e):i;t===n||t!==t&&n!==n||a&&!l||(l?l.call(e,t):i=t,c=!r&&Pe(t),o.notify())}})}}function Be(e,t,i){if(Array.isArray(e)&&f(t))return e.length=Math.max(e.length,t),e.splice(t,1,i),i;if(t in e&&!(t in Object.prototype))return e[t]=i,i;var n=e.__ob__;return e._isVue||n&&n.vmCount?i:n?(Re(n.value,t,i),n.dep.notify(),i):(e[t]=i,i)}function Ne(e,t){if(Array.isArray(e)&&f(t))e.splice(t,1);else{var i=e.__ob__;e._isVue||i&&i.vmCount||b(e,t)&&(delete e[t],i&&i.dep.notify())}}function ze(e){for(var t=void 0,i=0,n=e.length;i<n;i++)t=e[i],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&ze(t)}Ee.prototype.walk=function(e){for(var t=Object.keys(e),i=0;i<t.length;i++)Re(e,t[i])},Ee.prototype.observeArray=function(e){for(var t=0,i=e.length;t<i;t++)Pe(e[t])};var He=$.optionMergeStrategies;function Fe(e,t){if(!t)return e;for(var i,n,r,o=fe?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)i=o[s],"__ob__"!==i&&(n=e[i],r=t[i],b(e,i)?n!==r&&h(n)&&h(r)&&Fe(n,r):Be(e,i,r));return e}function Ve(e,t,i){return i?function(){var n="function"===typeof t?t.call(i,i):t,r="function"===typeof e?e.call(i,i):e;return n?Fe(n,r):r}:t?e?function(){return Fe("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function je(e,t){var i=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return i?$e(i):i}function $e(e){for(var t=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function We(e,t,i,n){var r=Object.create(e||null);return t?D(r,t):r}He.data=function(e,t,i){return i?Ve(e,t,i):t&&"function"!==typeof t?e:Ve(e,t)},j.forEach((function(e){He[e]=je})),V.forEach((function(e){He[e+"s"]=We})),He.watch=function(e,t,i,n){if(e===se&&(e=void 0),t===se&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var o in D(r,e),t){var s=r[o],a=t[o];s&&!Array.isArray(s)&&(s=[s]),r[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return r},He.props=He.methods=He.inject=He.computed=function(e,t,i,n){if(!e)return t;var r=Object.create(null);return D(r,e),t&&D(r,t),r},He.provide=Ve;var Ge=function(e,t){return void 0===t?e:t};function Ue(e,t){var i=e.props;if(i){var n,r,o,s={};if(Array.isArray(i)){n=i.length;while(n--)r=i[n],"string"===typeof r&&(o=C(r),s[o]={type:null})}else if(h(i))for(var a in i)r=i[a],o=C(a),s[o]=h(r)?r:{type:r};else 0;e.props=s}}function qe(e,t){var i=e.inject;if(i){var n=e.inject={};if(Array.isArray(i))for(var r=0;r<i.length;r++)n[i[r]]={from:i[r]};else if(h(i))for(var o in i){var s=i[o];n[o]=h(s)?D({from:o},s):{from:s}}else 0}}function Ze(e){var t=e.directives;if(t)for(var i in t){var n=t[i];"function"===typeof n&&(t[i]={bind:n,update:n})}}function Xe(e,t,i){if("function"===typeof t&&(t=t.options),Ue(t,i),qe(t,i),Ze(t),!t._base&&(t.extends&&(e=Xe(e,t.extends,i)),t.mixins))for(var n=0,r=t.mixins.length;n<r;n++)e=Xe(e,t.mixins[n],i);var o,s={};for(o in e)a(o);for(o in t)b(e,o)||a(o);function a(n){var r=He[n]||Ge;s[n]=r(e[n],t[n],i,n)}return s}function Ye(e,t,i,n){if("string"===typeof i){var r=e[t];if(b(r,i))return r[i];var o=C(i);if(b(r,o))return r[o];var s=A(o);if(b(r,s))return r[s];var a=r[i]||r[o]||r[s];return a}}function Ke(e,t,i,n){var r=t[e],o=!b(i,e),s=i[e],a=it(Boolean,r.type);if(a>-1)if(o&&!b(r,"default"))s=!1;else if(""===s||s===k(e)){var l=it(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=Je(n,r,e);var c=Ie;Le(!0),Pe(s),Le(c)}return s}function Je(e,t,i){if(b(t,"default")){var n=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[i]&&void 0!==e._props[i]?e._props[i]:"function"===typeof n&&"Function"!==et(t.type)?n.call(e):n}}var Qe=/^\s*function (\w+)/;function et(e){var t=e&&e.toString().match(Qe);return t?t[1]:""}function tt(e,t){return et(e)===et(t)}function it(e,t){if(!Array.isArray(t))return tt(t,e)?0:-1;for(var i=0,n=t.length;i<n;i++)if(tt(t[i],e))return i;return-1}function nt(e,t,i){ye();try{if(t){var n=t;while(n=n.$parent){var r=n.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var s=!1===r[o].call(n,e,t,i);if(s)return}catch(As){ot(As,n,"errorCaptured hook")}}}ot(e,t,i)}finally{_e()}}function rt(e,t,i,n,r){var o;try{o=i?e.apply(t,i):e.call(t),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(e){return nt(e,n,r+" (Promise/async)")})),o._handled=!0)}catch(As){nt(As,n,r)}return o}function ot(e,t,i){if($.errorHandler)try{return $.errorHandler.call(null,e,t,i)}catch(As){As!==e&&st(As,null,"config.errorHandler")}st(e,t,i)}function st(e,t,i){if(!K&&!J||"undefined"===typeof console)throw e;console.error(e)}var at,lt=!1,ct=[],ut=!1;function ht(){ut=!1;var e=ct.slice(0);ct.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&he(Promise)){var dt=Promise.resolve();at=function(){dt.then(ht),re&&setTimeout(P)},lt=!0}else if(te||"undefined"===typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())at="undefined"!==typeof setImmediate&&he(setImmediate)?function(){setImmediate(ht)}:function(){setTimeout(ht,0)};else{var ft=1,pt=new MutationObserver(ht),gt=document.createTextNode(String(ft));pt.observe(gt,{characterData:!0}),at=function(){ft=(ft+1)%2,gt.data=String(ft)},lt=!0}function vt(e,t){var i;if(ct.push((function(){if(e)try{e.call(t)}catch(As){nt(As,t,"nextTick")}else i&&i(t)})),ut||(ut=!0,at()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){i=e}))}var mt=new de;function yt(e){_t(e,mt),mt.clear()}function _t(e,t){var i,n,r=Array.isArray(e);if(!(!r&&!c(e)||Object.isFrozen(e)||e instanceof xe)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(r){i=e.length;while(i--)_t(e[i],t)}else{n=Object.keys(e),i=n.length;while(i--)_t(e[n[i]],t)}}}var xt=w((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var i="~"===e.charAt(0);e=i?e.slice(1):e;var n="!"===e.charAt(0);return e=n?e.slice(1):e,{name:e,once:i,capture:n,passive:t}}));function bt(e,t){function i(){var e=arguments,n=i.fns;if(!Array.isArray(n))return rt(n,null,arguments,t,"v-on handler");for(var r=n.slice(),o=0;o<r.length;o++)rt(r[o],null,e,t,"v-on handler")}return i.fns=e,i}function wt(e,t,i,n,o,a){var l,c,u,h;for(l in e)c=e[l],u=t[l],h=xt(l),r(c)||(r(u)?(r(c.fns)&&(c=e[l]=bt(c,a)),s(h.once)&&(c=e[l]=o(h.name,c,h.capture)),i(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)r(e[l])&&(h=xt(l),n(h.name,t[l],h.capture))}function St(e,t,i){var n;e instanceof xe&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function l(){i.apply(this,arguments),_(n.fns,l)}r(a)?n=bt([l]):o(a.fns)&&s(a.merged)?(n=a,n.fns.push(l)):n=bt([a,l]),n.merged=!0,e[t]=n}function Ct(e,t,i){var n=t.options.props;if(!r(n)){var s={},a=e.attrs,l=e.props;if(o(a)||o(l))for(var c in n){var u=k(c);At(s,l,c,u,!0)||At(s,a,c,u,!1)}return s}}function At(e,t,i,n,r){if(o(t)){if(b(t,i))return e[i]=t[i],r||delete t[i],!0;if(b(t,n))return e[i]=t[n],r||delete t[n],!0}return!1}function Mt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function kt(e){return l(e)?[Se(e)]:Array.isArray(e)?It(e):void 0}function Tt(e){return o(e)&&o(e.text)&&a(e.isComment)}function It(e,t){var i,n,a,c,u=[];for(i=0;i<e.length;i++)n=e[i],r(n)||"boolean"===typeof n||(a=u.length-1,c=u[a],Array.isArray(n)?n.length>0&&(n=It(n,(t||"")+"_"+i),Tt(n[0])&&Tt(c)&&(u[a]=Se(c.text+n[0].text),n.shift()),u.push.apply(u,n)):l(n)?Tt(c)?u[a]=Se(c.text+n):""!==n&&u.push(Se(n)):Tt(n)&&Tt(c)?u[a]=Se(c.text+n.text):(s(e._isVList)&&o(n.tag)&&r(n.key)&&o(t)&&(n.key="__vlist"+t+"_"+i+"__"),u.push(n)));return u}function Lt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Et(e){var t=Dt(e.$options.inject,e);t&&(Le(!1),Object.keys(t).forEach((function(i){Re(e,i,t[i])})),Le(!0))}function Dt(e,t){if(e){for(var i=Object.create(null),n=fe?Reflect.ownKeys(e):Object.keys(e),r=0;r<n.length;r++){var o=n[r];if("__ob__"!==o){var s=e[o].from,a=t;while(a){if(a._provided&&b(a._provided,s)){i[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in e[o]){var l=e[o].default;i[o]="function"===typeof l?l.call(t):l}else 0}}return i}}function Ot(e,t){if(!e||!e.length)return{};for(var i={},n=0,r=e.length;n<r;n++){var o=e[n],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==t&&o.fnContext!==t||!s||null==s.slot)(i.default||(i.default=[])).push(o);else{var a=s.slot,l=i[a]||(i[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in i)i[c].every(Pt)&&delete i[c];return i}function Pt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Rt(e){return e.isComment&&e.asyncFactory}function Bt(e,t,i){var r,o=Object.keys(t).length>0,s=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&i&&i!==n&&a===i.$key&&!o&&!i.$hasNormal)return i;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=Nt(t,l,e[l]))}else r={};for(var c in t)c in r||(r[c]=zt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),U(r,"$stable",s),U(r,"$key",a),U(r,"$hasNormal",o),r}function Nt(e,t,i){var n=function(){var e=arguments.length?i.apply(null,arguments):i({});e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:kt(e);var t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Rt(t))?void 0:e};return i.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function zt(e,t){return function(){return e[t]}}function Ht(e,t){var i,n,r,s,a;if(Array.isArray(e)||"string"===typeof e)for(i=new Array(e.length),n=0,r=e.length;n<r;n++)i[n]=t(e[n],n);else if("number"===typeof e)for(i=new Array(e),n=0;n<e;n++)i[n]=t(n+1,n);else if(c(e))if(fe&&e[Symbol.iterator]){i=[];var l=e[Symbol.iterator](),u=l.next();while(!u.done)i.push(t(u.value,i.length)),u=l.next()}else for(s=Object.keys(e),i=new Array(s.length),n=0,r=s.length;n<r;n++)a=s[n],i[n]=t(e[a],a,n);return o(i)||(i=[]),i._isVList=!0,i}function Ft(e,t,i,n){var r,o=this.$scopedSlots[e];o?(i=i||{},n&&(i=D(D({},n),i)),r=o(i)||("function"===typeof t?t():t)):r=this.$slots[e]||("function"===typeof t?t():t);var s=i&&i.slot;return s?this.$createElement("template",{slot:s},r):r}function Vt(e){return Ye(this.$options,"filters",e,!0)||B}function jt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function $t(e,t,i,n,r){var o=$.keyCodes[t]||i;return r&&n&&!$.keyCodes[t]?jt(r,n):o?jt(o,e):n?k(n)!==t:void 0===e}function Wt(e,t,i,n,r){if(i)if(c(i)){var o;Array.isArray(i)&&(i=O(i));var s=function(s){if("class"===s||"style"===s||y(s))o=e;else{var a=e.attrs&&e.attrs.type;o=n||$.mustUseProp(t,a,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=C(s),c=k(s);if(!(l in o)&&!(c in o)&&(o[s]=i[s],r)){var u=e.on||(e.on={});u["update:"+s]=function(e){i[s]=e}}};for(var a in i)s(a)}else;return e}function Gt(e,t){var i=this._staticTrees||(this._staticTrees=[]),n=i[e];return n&&!t||(n=i[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),qt(n,"__static__"+e,!1)),n}function Ut(e,t,i){return qt(e,"__once__"+t+(i?"_"+i:""),!0),e}function qt(e,t,i){if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]&&"string"!==typeof e[n]&&Zt(e[n],t+"_"+n,i);else Zt(e,t,i)}function Zt(e,t,i){e.isStatic=!0,e.key=t,e.isOnce=i}function Xt(e,t){if(t)if(h(t)){var i=e.on=e.on?D({},e.on):{};for(var n in t){var r=i[n],o=t[n];i[n]=r?[].concat(r,o):o}}else;return e}function Yt(e,t,i,n){t=t||{$stable:!i};for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?Yt(o,t,i):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return n&&(t.$key=n),t}function Kt(e,t){for(var i=0;i<t.length;i+=2){var n=t[i];"string"===typeof n&&n&&(e[t[i]]=t[i+1])}return e}function Jt(e,t){return"string"===typeof e?t+e:e}function Qt(e){e._o=Ut,e._n=v,e._s=g,e._l=Ht,e._t=Ft,e._q=N,e._i=z,e._m=Gt,e._f=Vt,e._k=$t,e._b=Wt,e._v=Se,e._e=we,e._u=Yt,e._g=Xt,e._d=Kt,e._p=Jt}function ei(e,t,i,r,o){var a,l=this,c=o.options;b(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var u=s(c._compiled),h=!u;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=Dt(c.inject,r),this.slots=function(){return l.$slots||Bt(e.scopedSlots,l.$slots=Ot(i,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Bt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Bt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,i,n){var o=fi(a,e,t,i,n,h);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=r),o}:this._c=function(e,t,i,n){return fi(a,e,t,i,n,h)}}function ti(e,t,i,r,s){var a=e.options,l={},c=a.props;if(o(c))for(var u in c)l[u]=Ke(u,c,t||n);else o(i.attrs)&&ni(l,i.attrs),o(i.props)&&ni(l,i.props);var h=new ei(i,l,s,r,e),d=a.render.call(null,h._c,h);if(d instanceof xe)return ii(d,i,h.parent,a,h);if(Array.isArray(d)){for(var f=kt(d)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=ii(f[g],i,h.parent,a,h);return p}}function ii(e,t,i,n,r){var o=Ce(e);return o.fnContext=i,o.fnOptions=n,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function ni(e,t){for(var i in t)e[C(i)]=t[i]}Qt(ei.prototype);var ri={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;ri.prepatch(i,i)}else{var n=e.componentInstance=ai(e,Ei);n.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var i=t.componentOptions,n=t.componentInstance=e.componentInstance;Bi(n,i.propsData,i.listeners,t,i.children)},insert:function(e){var t=e.context,i=e.componentInstance;i._isMounted||(i._isMounted=!0,Fi(i,"mounted")),e.data.keepAlive&&(t._isMounted?Qi(i):zi(i,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Hi(t,!0):t.$destroy())}},oi=Object.keys(ri);function si(e,t,i,n,a){if(!r(e)){var l=i.$options._base;if(c(e)&&(e=l.extend(e)),"function"===typeof e){var u;if(r(e.cid)&&(u=e,e=Si(u,l),void 0===e))return wi(u,t,i,n,a);t=t||{},Sn(e),o(t.model)&&ui(e.options,t);var h=Ct(t,e,a);if(s(e.options.functional))return ti(e,h,t,i,n);var d=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}li(t);var p=e.options.name||a,g=new xe("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,i,{Ctor:e,propsData:h,listeners:d,tag:a,children:n},u);return g}}}function ai(e,t){var i={_isComponent:!0,_parentVnode:e,parent:t},n=e.data.inlineTemplate;return o(n)&&(i.render=n.render,i.staticRenderFns=n.staticRenderFns),new e.componentOptions.Ctor(i)}function li(e){for(var t=e.hook||(e.hook={}),i=0;i<oi.length;i++){var n=oi[i],r=t[n],o=ri[n];r===o||r&&r._merged||(t[n]=r?ci(o,r):o)}}function ci(e,t){var i=function(i,n){e(i,n),t(i,n)};return i._merged=!0,i}function ui(e,t){var i=e.model&&e.model.prop||"value",n=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[i]=t.model.value;var r=t.on||(t.on={}),s=r[n],a=t.model.callback;o(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(r[n]=[a].concat(s)):r[n]=a}var hi=1,di=2;function fi(e,t,i,n,r,o){return(Array.isArray(i)||l(i))&&(r=n,n=i,i=void 0),s(o)&&(r=di),pi(e,t,i,n,r)}function pi(e,t,i,n,r){if(o(i)&&o(i.__ob__))return we();if(o(i)&&o(i.is)&&(t=i.is),!t)return we();var s,a,l;(Array.isArray(n)&&"function"===typeof n[0]&&(i=i||{},i.scopedSlots={default:n[0]},n.length=0),r===di?n=kt(n):r===hi&&(n=Mt(n)),"string"===typeof t)?(a=e.$vnode&&e.$vnode.ns||$.getTagNamespace(t),s=$.isReservedTag(t)?new xe($.parsePlatformTagName(t),i,n,void 0,void 0,e):i&&i.pre||!o(l=Ye(e.$options,"components",t))?new xe(t,i,n,void 0,void 0,e):si(l,i,e,n,t)):s=si(t,i,e,n);return Array.isArray(s)?s:o(s)?(o(a)&&gi(s,a),o(i)&&vi(i),s):we()}function gi(e,t,i){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,i=!0),o(e.children))for(var n=0,a=e.children.length;n<a;n++){var l=e.children[n];o(l.tag)&&(r(l.ns)||s(i)&&"svg"!==l.tag)&&gi(l,t,i)}}function vi(e){c(e.style)&&yt(e.style),c(e.class)&&yt(e.class)}function mi(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=Ot(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,i,n,r){return fi(e,t,i,n,r,!1)},e.$createElement=function(t,i,n,r){return fi(e,t,i,n,r,!0)};var o=i&&i.data;Re(e,"$attrs",o&&o.attrs||n,null,!0),Re(e,"$listeners",t._parentListeners||n,null,!0)}var yi,_i=null;function xi(e){Qt(e.prototype),e.prototype.$nextTick=function(e){return vt(e,this)},e.prototype._render=function(){var e,t=this,i=t.$options,n=i.render,r=i._parentVnode;r&&(t.$scopedSlots=Bt(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{_i=t,e=n.call(t._renderProxy,t.$createElement)}catch(As){nt(As,t,"render"),e=t._vnode}finally{_i=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof xe||(e=we()),e.parent=r,e}}function bi(e,t){return(e.__esModule||fe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function wi(e,t,i,n,r){var o=we();return o.asyncFactory=e,o.asyncMeta={data:t,context:i,children:n,tag:r},o}function Si(e,t){if(s(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var i=_i;if(i&&o(e.owners)&&-1===e.owners.indexOf(i)&&e.owners.push(i),s(e.loading)&&o(e.loadingComp))return e.loadingComp;if(i&&!o(e.owners)){var n=e.owners=[i],a=!0,l=null,u=null;i.$on("hook:destroyed",(function(){return _(n,i)}));var h=function(e){for(var t=0,i=n.length;t<i;t++)n[t].$forceUpdate();e&&(n.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},d=H((function(i){e.resolved=bi(i,t),a?n.length=0:h(!0)})),f=H((function(t){o(e.errorComp)&&(e.error=!0,h(!0))})),g=e(d,f);return c(g)&&(p(g)?r(e.resolved)&&g.then(d,f):p(g.component)&&(g.component.then(d,f),o(g.error)&&(e.errorComp=bi(g.error,t)),o(g.loading)&&(e.loadingComp=bi(g.loading,t),0===g.delay?e.loading=!0:l=setTimeout((function(){l=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,h(!1))}),g.delay||200)),o(g.timeout)&&(u=setTimeout((function(){u=null,r(e.resolved)&&f(null)}),g.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}function Ci(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var i=e[t];if(o(i)&&(o(i.componentOptions)||Rt(i)))return i}}function Ai(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ii(e,t)}function Mi(e,t){yi.$on(e,t)}function ki(e,t){yi.$off(e,t)}function Ti(e,t){var i=yi;return function n(){var r=t.apply(null,arguments);null!==r&&i.$off(e,n)}}function Ii(e,t,i){yi=e,wt(t,i||{},Mi,ki,Ti,e),yi=void 0}function Li(e){var t=/^hook:/;e.prototype.$on=function(e,i){var n=this;if(Array.isArray(e))for(var r=0,o=e.length;r<o;r++)n.$on(e[r],i);else(n._events[e]||(n._events[e]=[])).push(i),t.test(e)&&(n._hasHookEvent=!0);return n},e.prototype.$once=function(e,t){var i=this;function n(){i.$off(e,n),t.apply(i,arguments)}return n.fn=t,i.$on(e,n),i},e.prototype.$off=function(e,t){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)i.$off(e[n],t);return i}var o,s=i._events[e];if(!s)return i;if(!t)return i._events[e]=null,i;var a=s.length;while(a--)if(o=s[a],o===t||o.fn===t){s.splice(a,1);break}return i},e.prototype.$emit=function(e){var t=this,i=t._events[e];if(i){i=i.length>1?E(i):i;for(var n=E(arguments,1),r='event handler for "'+e+'"',o=0,s=i.length;o<s;o++)rt(i[o],t,n,t,r)}return t}}var Ei=null;function Di(e){var t=Ei;return Ei=e,function(){Ei=t}}function Oi(e){var t=e.$options,i=t.parent;if(i&&!t.abstract){while(i.$options.abstract&&i.$parent)i=i.$parent;i.$children.push(e)}e.$parent=i,e.$root=i?i.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Pi(e){e.prototype._update=function(e,t){var i=this,n=i.$el,r=i._vnode,o=Di(i);i._vnode=e,i.$el=r?i.__patch__(r,e):i.__patch__(i.$el,e,t,!1),o(),n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Fi(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(t.$children,e),e._watcher&&e._watcher.teardown();var i=e._watchers.length;while(i--)e._watchers[i].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Fi(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Ri(e,t,i){var n;return e.$el=t,e.$options.render||(e.$options.render=we),Fi(e,"beforeMount"),n=function(){e._update(e._render(),i)},new rn(e,n,P,{before:function(){e._isMounted&&!e._isDestroyed&&Fi(e,"beforeUpdate")}},!0),i=!1,null==e.$vnode&&(e._isMounted=!0,Fi(e,"mounted")),e}function Bi(e,t,i,r,o){var s=r.data.scopedSlots,a=e.$scopedSlots,l=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key),c=!!(o||e.$options._renderChildren||l);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){Le(!1);for(var u=e._props,h=e.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=e.$options.props;u[f]=Ke(f,p,t,e)}Le(!0),e.$options.propsData=t}i=i||n;var g=e.$options._parentListeners;e.$options._parentListeners=i,Ii(e,i,g),c&&(e.$slots=Ot(o,r.context),e.$forceUpdate())}function Ni(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function zi(e,t){if(t){if(e._directInactive=!1,Ni(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var i=0;i<e.$children.length;i++)zi(e.$children[i]);Fi(e,"activated")}}function Hi(e,t){if((!t||(e._directInactive=!0,!Ni(e)))&&!e._inactive){e._inactive=!0;for(var i=0;i<e.$children.length;i++)Hi(e.$children[i]);Fi(e,"deactivated")}}function Fi(e,t){ye();var i=e.$options[t],n=t+" hook";if(i)for(var r=0,o=i.length;r<o;r++)rt(i[r],e,null,e,n);e._hasHookEvent&&e.$emit("hook:"+t),_e()}var Vi=[],ji=[],$i={},Wi=!1,Gi=!1,Ui=0;function qi(){Ui=Vi.length=ji.length=0,$i={},Wi=Gi=!1}var Zi=0,Xi=Date.now;if(K&&!te){var Yi=window.performance;Yi&&"function"===typeof Yi.now&&Xi()>document.createEvent("Event").timeStamp&&(Xi=function(){return Yi.now()})}function Ki(){var e,t;for(Zi=Xi(),Gi=!0,Vi.sort((function(e,t){return e.id-t.id})),Ui=0;Ui<Vi.length;Ui++)e=Vi[Ui],e.before&&e.before(),t=e.id,$i[t]=null,e.run();var i=ji.slice(),n=Vi.slice();qi(),en(i),Ji(n),ue&&$.devtools&&ue.emit("flush")}function Ji(e){var t=e.length;while(t--){var i=e[t],n=i.vm;n._watcher===i&&n._isMounted&&!n._isDestroyed&&Fi(n,"updated")}}function Qi(e){e._inactive=!1,ji.push(e)}function en(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,zi(e[t],!0)}function tn(e){var t=e.id;if(null==$i[t]){if($i[t]=!0,Gi){var i=Vi.length-1;while(i>Ui&&Vi[i].id>e.id)i--;Vi.splice(i+1,0,e)}else Vi.push(e);Wi||(Wi=!0,vt(Ki))}}var nn=0,rn=function(e,t,i,n,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++nn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=Z(t),this.getter||(this.getter=P)),this.value=this.lazy?void 0:this.get()};rn.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(As){if(!this.user)throw As;nt(As,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&yt(e),_e(),this.cleanupDeps()}return e},rn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},rn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},rn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tn(this)},rn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user){var i='callback for watcher "'+this.expression+'"';rt(this.cb,this.vm,[e,t],this.vm,i)}else this.cb.call(this.vm,e,t)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var on={enumerable:!0,configurable:!0,get:P,set:P};function sn(e,t,i){on.get=function(){return this[t][i]},on.set=function(e){this[t][i]=e},Object.defineProperty(e,i,on)}function an(e){e._watchers=[];var t=e.$options;t.props&&ln(e,t.props),t.methods&&vn(e,t.methods),t.data?cn(e):Pe(e._data={},!0),t.computed&&dn(e,t.computed),t.watch&&t.watch!==se&&mn(e,t.watch)}function ln(e,t){var i=e.$options.propsData||{},n=e._props={},r=e.$options._propKeys=[],o=!e.$parent;o||Le(!1);var s=function(o){r.push(o);var s=Ke(o,t,i,e);Re(n,o,s),o in e||sn(e,"_props",o)};for(var a in t)s(a);Le(!0)}function cn(e){var t=e.$options.data;t=e._data="function"===typeof t?un(t,e):t||{},h(t)||(t={});var i=Object.keys(t),n=e.$options.props,r=(e.$options.methods,i.length);while(r--){var o=i[r];0,n&&b(n,o)||G(o)||sn(e,"_data",o)}Pe(t,!0)}function un(e,t){ye();try{return e.call(t,t)}catch(As){return nt(As,t,"data()"),{}}finally{_e()}}var hn={lazy:!0};function dn(e,t){var i=e._computedWatchers=Object.create(null),n=ce();for(var r in t){var o=t[r],s="function"===typeof o?o:o.get;0,n||(i[r]=new rn(e,s||P,P,hn)),r in e||fn(e,r,o)}}function fn(e,t,i){var n=!ce();"function"===typeof i?(on.get=n?pn(t):gn(i),on.set=P):(on.get=i.get?n&&!1!==i.cache?pn(t):gn(i.get):P,on.set=i.set||P),Object.defineProperty(e,t,on)}function pn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function gn(e){return function(){return e.call(this,this)}}function vn(e,t){e.$options.props;for(var i in t)e[i]="function"!==typeof t[i]?P:L(t[i],e)}function mn(e,t){for(var i in t){var n=t[i];if(Array.isArray(n))for(var r=0;r<n.length;r++)yn(e,i,n[r]);else yn(e,i,n)}}function yn(e,t,i,n){return h(i)&&(n=i,i=i.handler),"string"===typeof i&&(i=e[i]),e.$watch(t,i,n)}function _n(e){var t={get:function(){return this._data}},i={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",i),e.prototype.$set=Be,e.prototype.$delete=Ne,e.prototype.$watch=function(e,t,i){var n=this;if(h(t))return yn(n,e,t,i);i=i||{},i.user=!0;var r=new rn(n,e,t,i);if(i.immediate){var o='callback for immediate watcher "'+r.expression+'"';ye(),rt(t,n,[r.value],n,o),_e()}return function(){r.teardown()}}}var xn=0;function bn(e){e.prototype._init=function(e){var t=this;t._uid=xn++,t._isVue=!0,e&&e._isComponent?wn(t,e):t.$options=Xe(Sn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Oi(t),Ai(t),mi(t),Fi(t,"beforeCreate"),Et(t),an(t),Lt(t),Fi(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function wn(e,t){var i=e.$options=Object.create(e.constructor.options),n=t._parentVnode;i.parent=t.parent,i._parentVnode=n;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,t.render&&(i.render=t.render,i.staticRenderFns=t.staticRenderFns)}function Sn(e){var t=e.options;if(e.super){var i=Sn(e.super),n=e.superOptions;if(i!==n){e.superOptions=i;var r=Cn(e);r&&D(e.extendOptions,r),t=e.options=Xe(i,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Cn(e){var t,i=e.options,n=e.sealedOptions;for(var r in i)i[r]!==n[r]&&(t||(t={}),t[r]=i[r]);return t}function An(e){this._init(e)}function Mn(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var i=E(arguments,1);return i.unshift(this),"function"===typeof e.install?e.install.apply(e,i):"function"===typeof e&&e.apply(null,i),t.push(e),this}}function kn(e){e.mixin=function(e){return this.options=Xe(this.options,e),this}}function Tn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var i=this,n=i.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var o=e.name||i.options.name;var s=function(e){this._init(e)};return s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Xe(i.options,e),s["super"]=i,s.options.props&&In(s),s.options.computed&&Ln(s),s.extend=i.extend,s.mixin=i.mixin,s.use=i.use,V.forEach((function(e){s[e]=i[e]})),o&&(s.options.components[o]=s),s.superOptions=i.options,s.extendOptions=e,s.sealedOptions=D({},s.options),r[n]=s,s}}function In(e){var t=e.options.props;for(var i in t)sn(e.prototype,"_props",i)}function Ln(e){var t=e.options.computed;for(var i in t)fn(e.prototype,i,t[i])}function En(e){V.forEach((function(t){e[t]=function(e,i){return i?("component"===t&&h(i)&&(i.name=i.name||e,i=this.options._base.extend(i)),"directive"===t&&"function"===typeof i&&(i={bind:i,update:i}),this.options[t+"s"][e]=i,i):this.options[t+"s"][e]}}))}function Dn(e){return e&&(e.Ctor.options.name||e.tag)}function On(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Pn(e,t){var i=e.cache,n=e.keys,r=e._vnode;for(var o in i){var s=i[o];if(s){var a=s.name;a&&!t(a)&&Rn(i,o,n,r)}}}function Rn(e,t,i,n){var r=e[t];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),e[t]=null,_(i,t)}bn(An),_n(An),Li(An),Pi(An),xi(An);var Bn=[String,RegExp,Array],Nn={name:"keep-alive",abstract:!0,props:{include:Bn,exclude:Bn,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,i=e.keys,n=e.vnodeToCache,r=e.keyToCache;if(n){var o=n.tag,s=n.componentInstance,a=n.componentOptions;t[r]={name:Dn(a),tag:o,componentInstance:s},i.push(r),this.max&&i.length>parseInt(this.max)&&Rn(t,i[0],i,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Rn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Pn(e,(function(e){return On(t,e)}))})),this.$watch("exclude",(function(t){Pn(e,(function(e){return!On(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Ci(e),i=t&&t.componentOptions;if(i){var n=Dn(i),r=this,o=r.include,s=r.exclude;if(o&&(!n||!On(o,n))||s&&n&&On(s,n))return t;var a=this,l=a.cache,c=a.keys,u=null==t.key?i.Ctor.cid+(i.tag?"::"+i.tag:""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,_(c,u),c.push(u)):(this.vnodeToCache=t,this.keyToCache=u),t.data.keepAlive=!0}return t||e&&e[0]}},zn={KeepAlive:Nn};function Hn(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:pe,extend:D,mergeOptions:Xe,defineReactive:Re},e.set=Be,e.delete=Ne,e.nextTick=vt,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),V.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,zn),Mn(e),kn(e),Tn(e),En(e)}Hn(An),Object.defineProperty(An.prototype,"$isServer",{get:ce}),Object.defineProperty(An.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(An,"FunctionalRenderContext",{value:ei}),An.version="2.6.14";var Fn=m("style,class"),Vn=m("input,textarea,option,select,progress"),jn=function(e,t,i){return"value"===i&&Vn(e)&&"button"!==t||"selected"===i&&"option"===e||"checked"===i&&"input"===e||"muted"===i&&"video"===e},$n=m("contenteditable,draggable,spellcheck"),Wn=m("events,caret,typing,plaintext-only"),Gn=function(e,t){return Yn(t)||"false"===t?"false":"contenteditable"===e&&Wn(t)?t:"true"},Un=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),qn="http://www.w3.org/1999/xlink",Zn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Xn=function(e){return Zn(e)?e.slice(6,e.length):""},Yn=function(e){return null==e||!1===e};function Kn(e){var t=e.data,i=e,n=e;while(o(n.componentInstance))n=n.componentInstance._vnode,n&&n.data&&(t=Jn(n.data,t));while(o(i=i.parent))i&&i.data&&(t=Jn(t,i.data));return Qn(t.staticClass,t.class)}function Jn(e,t){return{staticClass:er(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Qn(e,t){return o(e)||o(t)?er(e,tr(t)):""}function er(e,t){return e?t?e+" "+t:e:t||""}function tr(e){return Array.isArray(e)?ir(e):c(e)?nr(e):"string"===typeof e?e:""}function ir(e){for(var t,i="",n=0,r=e.length;n<r;n++)o(t=tr(e[n]))&&""!==t&&(i&&(i+=" "),i+=t);return i}function nr(e){var t="";for(var i in e)e[i]&&(t&&(t+=" "),t+=i);return t}var rr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},or=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),sr=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ar=function(e){return or(e)||sr(e)};function lr(e){return sr(e)?"svg":"math"===e?"math":void 0}var cr=Object.create(null);function ur(e){if(!K)return!0;if(ar(e))return!1;if(e=e.toLowerCase(),null!=cr[e])return cr[e];var t=document.createElement(e);return e.indexOf("-")>-1?cr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:cr[e]=/HTMLUnknownElement/.test(t.toString())}var hr=m("text,number,password,search,email,tel,url");function dr(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function fr(e,t){var i=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i}function pr(e,t){return document.createElementNS(rr[e],t)}function gr(e){return document.createTextNode(e)}function vr(e){return document.createComment(e)}function mr(e,t,i){e.insertBefore(t,i)}function yr(e,t){e.removeChild(t)}function _r(e,t){e.appendChild(t)}function xr(e){return e.parentNode}function br(e){return e.nextSibling}function wr(e){return e.tagName}function Sr(e,t){e.textContent=t}function Cr(e,t){e.setAttribute(t,"")}var Ar=Object.freeze({createElement:fr,createElementNS:pr,createTextNode:gr,createComment:vr,insertBefore:mr,removeChild:yr,appendChild:_r,parentNode:xr,nextSibling:br,tagName:wr,setTextContent:Sr,setStyleScope:Cr}),Mr={create:function(e,t){kr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(kr(e,!0),kr(t))},destroy:function(e){kr(e,!0)}};function kr(e,t){var i=e.data.ref;if(o(i)){var n=e.context,r=e.componentInstance||e.elm,s=n.$refs;t?Array.isArray(s[i])?_(s[i],r):s[i]===r&&(s[i]=void 0):e.data.refInFor?Array.isArray(s[i])?s[i].indexOf(r)<0&&s[i].push(r):s[i]=[r]:s[i]=r}}var Tr=new xe("",{},[]),Ir=["create","activate","update","remove","destroy"];function Lr(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&Er(e,t)||s(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function Er(e,t){if("input"!==e.tag)return!0;var i,n=o(i=e.data)&&o(i=i.attrs)&&i.type,r=o(i=t.data)&&o(i=i.attrs)&&i.type;return n===r||hr(n)&&hr(r)}function Dr(e,t,i){var n,r,s={};for(n=t;n<=i;++n)r=e[n].key,o(r)&&(s[r]=n);return s}function Or(e){var t,i,n={},a=e.modules,c=e.nodeOps;for(t=0;t<Ir.length;++t)for(n[Ir[t]]=[],i=0;i<a.length;++i)o(a[i][Ir[t]])&&n[Ir[t]].push(a[i][Ir[t]]);function u(e){return new xe(c.tagName(e).toLowerCase(),{},[],void 0,e)}function h(e,t){function i(){0===--i.listeners&&d(e)}return i.listeners=t,i}function d(e){var t=c.parentNode(e);o(t)&&c.removeChild(t,e)}function f(e,t,i,n,r,a,l){if(o(e.elm)&&o(a)&&(e=a[l]=Ce(e)),e.isRootInsert=!r,!p(e,t,i,n)){var u=e.data,h=e.children,d=e.tag;o(d)?(e.elm=e.ns?c.createElementNS(e.ns,d):c.createElement(d,e),w(e),_(e,h,t),o(u)&&b(e,t),y(i,e.elm,n)):s(e.isComment)?(e.elm=c.createComment(e.text),y(i,e.elm,n)):(e.elm=c.createTextNode(e.text),y(i,e.elm,n))}}function p(e,t,i,n){var r=e.data;if(o(r)){var a=o(e.componentInstance)&&r.keepAlive;if(o(r=r.hook)&&o(r=r.init)&&r(e,!1),o(e.componentInstance))return g(e,t),y(i,e.elm,n),s(a)&&v(e,t,i,n),!0}}function g(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,x(e)?(b(e,t),w(e)):(kr(e),t.push(e))}function v(e,t,i,r){var s,a=e;while(a.componentInstance)if(a=a.componentInstance._vnode,o(s=a.data)&&o(s=s.transition)){for(s=0;s<n.activate.length;++s)n.activate[s](Tr,a);t.push(a);break}y(i,e.elm,r)}function y(e,t,i){o(e)&&(o(i)?c.parentNode(i)===e&&c.insertBefore(e,t,i):c.appendChild(e,t))}function _(e,t,i){if(Array.isArray(t)){0;for(var n=0;n<t.length;++n)f(t[n],i,e.elm,null,!0,t,n)}else l(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function x(e){while(e.componentInstance)e=e.componentInstance._vnode;return o(e.tag)}function b(e,i){for(var r=0;r<n.create.length;++r)n.create[r](Tr,e);t=e.data.hook,o(t)&&(o(t.create)&&t.create(Tr,e),o(t.insert)&&i.push(e))}function w(e){var t;if(o(t=e.fnScopeId))c.setStyleScope(e.elm,t);else{var i=e;while(i)o(t=i.context)&&o(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),i=i.parent}o(t=Ei)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function S(e,t,i,n,r,o){for(;n<=r;++n)f(i[n],o,e,t,!1,i,n)}function C(e){var t,i,r=e.data;if(o(r))for(o(t=r.hook)&&o(t=t.destroy)&&t(e),t=0;t<n.destroy.length;++t)n.destroy[t](e);if(o(t=e.children))for(i=0;i<e.children.length;++i)C(e.children[i])}function A(e,t,i){for(;t<=i;++t){var n=e[t];o(n)&&(o(n.tag)?(M(n),C(n)):d(n.elm))}}function M(e,t){if(o(t)||o(e.data)){var i,r=n.remove.length+1;for(o(t)?t.listeners+=r:t=h(e.elm,r),o(i=e.componentInstance)&&o(i=i._vnode)&&o(i.data)&&M(i,t),i=0;i<n.remove.length;++i)n.remove[i](e,t);o(i=e.data.hook)&&o(i=i.remove)?i(e,t):t()}else d(e.elm)}function k(e,t,i,n,s){var a,l,u,h,d=0,p=0,g=t.length-1,v=t[0],m=t[g],y=i.length-1,_=i[0],x=i[y],b=!s;while(d<=g&&p<=y)r(v)?v=t[++d]:r(m)?m=t[--g]:Lr(v,_)?(I(v,_,n,i,p),v=t[++d],_=i[++p]):Lr(m,x)?(I(m,x,n,i,y),m=t[--g],x=i[--y]):Lr(v,x)?(I(v,x,n,i,y),b&&c.insertBefore(e,v.elm,c.nextSibling(m.elm)),v=t[++d],x=i[--y]):Lr(m,_)?(I(m,_,n,i,p),b&&c.insertBefore(e,m.elm,v.elm),m=t[--g],_=i[++p]):(r(a)&&(a=Dr(t,d,g)),l=o(_.key)?a[_.key]:T(_,t,d,g),r(l)?f(_,n,e,v.elm,!1,i,p):(u=t[l],Lr(u,_)?(I(u,_,n,i,p),t[l]=void 0,b&&c.insertBefore(e,u.elm,v.elm)):f(_,n,e,v.elm,!1,i,p)),_=i[++p]);d>g?(h=r(i[y+1])?null:i[y+1].elm,S(e,h,i,p,y,n)):p>y&&A(t,d,g)}function T(e,t,i,n){for(var r=i;r<n;r++){var s=t[r];if(o(s)&&Lr(e,s))return r}}function I(e,t,i,a,l,u){if(e!==t){o(t.elm)&&o(a)&&(t=a[l]=Ce(t));var h=t.elm=e.elm;if(s(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?D(e.elm,t,i):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,f=t.data;o(f)&&o(d=f.hook)&&o(d=d.prepatch)&&d(e,t);var p=e.children,g=t.children;if(o(f)&&x(t)){for(d=0;d<n.update.length;++d)n.update[d](e,t);o(d=f.hook)&&o(d=d.update)&&d(e,t)}r(t.text)?o(p)&&o(g)?p!==g&&k(h,p,g,i,u):o(g)?(o(e.text)&&c.setTextContent(h,""),S(h,null,g,0,g.length-1,i)):o(p)?A(p,0,p.length-1):o(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),o(f)&&o(d=f.hook)&&o(d=d.postpatch)&&d(e,t)}}}function L(e,t,i){if(s(i)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var n=0;n<t.length;++n)t[n].data.hook.insert(t[n])}var E=m("attrs,class,staticClass,staticStyle,key");function D(e,t,i,n){var r,a=t.tag,l=t.data,c=t.children;if(n=n||l&&l.pre,t.elm=e,s(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(l)&&(o(r=l.hook)&&o(r=r.init)&&r(t,!0),o(r=t.componentInstance)))return g(t,i),!0;if(o(a)){if(o(c))if(e.hasChildNodes())if(o(r=l)&&o(r=r.domProps)&&o(r=r.innerHTML)){if(r!==e.innerHTML)return!1}else{for(var u=!0,h=e.firstChild,d=0;d<c.length;d++){if(!h||!D(h,c[d],i,n)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else _(t,c,i);if(o(l)){var f=!1;for(var p in l)if(!E(p)){f=!0,b(t,i);break}!f&&l["class"]&&yt(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,i,a){if(!r(t)){var l=!1,h=[];if(r(e))l=!0,f(t,h);else{var d=o(e.nodeType);if(!d&&Lr(e,t))I(e,t,h,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(F)&&(e.removeAttribute(F),i=!0),s(i)&&D(e,t,h))return L(t,h,!0),e;e=u(e)}var p=e.elm,g=c.parentNode(p);if(f(t,h,p._leaveCb?null:g,c.nextSibling(p)),o(t.parent)){var v=t.parent,m=x(t);while(v){for(var y=0;y<n.destroy.length;++y)n.destroy[y](v);if(v.elm=t.elm,m){for(var _=0;_<n.create.length;++_)n.create[_](Tr,v);var b=v.data.hook.insert;if(b.merged)for(var w=1;w<b.fns.length;w++)b.fns[w]()}else kr(v);v=v.parent}}o(g)?A([e],0,0):o(e.tag)&&C(e)}}return L(t,h,l),t.elm}o(e)&&C(e)}}var Pr={create:Rr,update:Rr,destroy:function(e){Rr(e,Tr)}};function Rr(e,t){(e.data.directives||t.data.directives)&&Br(e,t)}function Br(e,t){var i,n,r,o=e===Tr,s=t===Tr,a=zr(e.data.directives,e.context),l=zr(t.data.directives,t.context),c=[],u=[];for(i in l)n=a[i],r=l[i],n?(r.oldValue=n.value,r.oldArg=n.arg,Fr(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(Fr(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var h=function(){for(var i=0;i<c.length;i++)Fr(c[i],"inserted",t,e)};o?St(t,"insert",h):h()}if(u.length&&St(t,"postpatch",(function(){for(var i=0;i<u.length;i++)Fr(u[i],"componentUpdated",t,e)})),!o)for(i in a)l[i]||Fr(a[i],"unbind",e,e,s)}var Nr=Object.create(null);function zr(e,t){var i,n,r=Object.create(null);if(!e)return r;for(i=0;i<e.length;i++)n=e[i],n.modifiers||(n.modifiers=Nr),r[Hr(n)]=n,n.def=Ye(t.$options,"directives",n.name,!0);return r}function Hr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Fr(e,t,i,n,r){var o=e.def&&e.def[t];if(o)try{o(i.elm,e,i,n,r)}catch(As){nt(As,i.context,"directive "+e.name+" "+t+" hook")}}var Vr=[Mr,Pr];function jr(e,t){var i=t.componentOptions;if((!o(i)||!1!==i.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var n,s,a,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(n in o(u.__ob__)&&(u=t.data.attrs=D({},u)),u)s=u[n],a=c[n],a!==s&&$r(l,n,s,t.data.pre);for(n in(te||ne)&&u.value!==c.value&&$r(l,"value",u.value),c)r(u[n])&&(Zn(n)?l.removeAttributeNS(qn,Xn(n)):$n(n)||l.removeAttribute(n))}}function $r(e,t,i,n){n||e.tagName.indexOf("-")>-1?Wr(e,t,i):Un(t)?Yn(i)?e.removeAttribute(t):(i="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,i)):$n(t)?e.setAttribute(t,Gn(t,i)):Zn(t)?Yn(i)?e.removeAttributeNS(qn,Xn(t)):e.setAttributeNS(qn,t,i):Wr(e,t,i)}function Wr(e,t,i){if(Yn(i))e.removeAttribute(t);else{if(te&&!ie&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==i&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,i)}}var Gr={create:jr,update:jr};function Ur(e,t){var i=t.elm,n=t.data,s=e.data;if(!(r(n.staticClass)&&r(n.class)&&(r(s)||r(s.staticClass)&&r(s.class)))){var a=Kn(t),l=i._transitionClasses;o(l)&&(a=er(a,tr(l))),a!==i._prevClass&&(i.setAttribute("class",a),i._prevClass=a)}}var qr,Zr={create:Ur,update:Ur},Xr="__r",Yr="__c";function Kr(e){if(o(e[Xr])){var t=te?"change":"input";e[t]=[].concat(e[Xr],e[t]||[]),delete e[Xr]}o(e[Yr])&&(e.change=[].concat(e[Yr],e.change||[]),delete e[Yr])}function Jr(e,t,i){var n=qr;return function r(){var o=t.apply(null,arguments);null!==o&&to(e,r,i,n)}}var Qr=lt&&!(oe&&Number(oe[1])<=53);function eo(e,t,i,n){if(Qr){var r=Zi,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qr.addEventListener(e,t,ae?{capture:i,passive:n}:i)}function to(e,t,i,n){(n||qr).removeEventListener(e,t._wrapper||t,i)}function io(e,t){if(!r(e.data.on)||!r(t.data.on)){var i=t.data.on||{},n=e.data.on||{};qr=t.elm,Kr(i),wt(i,n,eo,to,Jr,t.context),qr=void 0}}var no,ro={create:io,update:io};function oo(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var i,n,s=t.elm,a=e.data.domProps||{},l=t.data.domProps||{};for(i in o(l.__ob__)&&(l=t.data.domProps=D({},l)),a)i in l||(s[i]="");for(i in l){if(n=l[i],"textContent"===i||"innerHTML"===i){if(t.children&&(t.children.length=0),n===a[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=n;var c=r(n)?"":String(n);so(s,c)&&(s.value=c)}else if("innerHTML"===i&&sr(s.tagName)&&r(s.innerHTML)){no=no||document.createElement("div"),no.innerHTML="<svg>"+n+"</svg>";var u=no.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(u.firstChild)s.appendChild(u.firstChild)}else if(n!==a[i])try{s[i]=n}catch(As){}}}}function so(e,t){return!e.composing&&("OPTION"===e.tagName||ao(e,t)||lo(e,t))}function ao(e,t){var i=!0;try{i=document.activeElement!==e}catch(As){}return i&&e.value!==t}function lo(e,t){var i=e.value,n=e._vModifiers;if(o(n)){if(n.number)return v(i)!==v(t);if(n.trim)return i.trim()!==t.trim()}return i!==t}var co={create:oo,update:oo},uo=w((function(e){var t={},i=/;(?![^(]*\))/g,n=/:(.+)/;return e.split(i).forEach((function(e){if(e){var i=e.split(n);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}));function ho(e){var t=fo(e.style);return e.staticStyle?D(e.staticStyle,t):t}function fo(e){return Array.isArray(e)?O(e):"string"===typeof e?uo(e):e}function po(e,t){var i,n={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(i=ho(r.data))&&D(n,i)}(i=ho(e.data))&&D(n,i);var o=e;while(o=o.parent)o.data&&(i=ho(o.data))&&D(n,i);return n}var go,vo=/^--/,mo=/\s*!important$/,yo=function(e,t,i){if(vo.test(t))e.style.setProperty(t,i);else if(mo.test(i))e.style.setProperty(k(t),i.replace(mo,""),"important");else{var n=xo(t);if(Array.isArray(i))for(var r=0,o=i.length;r<o;r++)e.style[n]=i[r];else e.style[n]=i}},_o=["Webkit","Moz","ms"],xo=w((function(e){if(go=go||document.createElement("div").style,e=C(e),"filter"!==e&&e in go)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<_o.length;i++){var n=_o[i]+t;if(n in go)return n}}));function bo(e,t){var i=t.data,n=e.data;if(!(r(i.staticStyle)&&r(i.style)&&r(n.staticStyle)&&r(n.style))){var s,a,l=t.elm,c=n.staticStyle,u=n.normalizedStyle||n.style||{},h=c||u,d=fo(t.data.style)||{};t.data.normalizedStyle=o(d.__ob__)?D({},d):d;var f=po(t,!0);for(a in h)r(f[a])&&yo(l,a,"");for(a in f)s=f[a],s!==h[a]&&yo(l,a,null==s?"":s)}}var wo={create:bo,update:bo},So=/\s+/;function Co(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(So).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var i=" "+(e.getAttribute("class")||"")+" ";i.indexOf(" "+t+" ")<0&&e.setAttribute("class",(i+t).trim())}}function Ao(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(So).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var i=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";while(i.indexOf(n)>=0)i=i.replace(n," ");i=i.trim(),i?e.setAttribute("class",i):e.removeAttribute("class")}}function Mo(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,ko(e.name||"v")),D(t,e),t}return"string"===typeof e?ko(e):void 0}}var ko=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),To=K&&!ie,Io="transition",Lo="animation",Eo="transition",Do="transitionend",Oo="animation",Po="animationend";To&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Eo="WebkitTransition",Do="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oo="WebkitAnimation",Po="webkitAnimationEnd"));var Ro=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Bo(e){Ro((function(){Ro(e)}))}function No(e,t){var i=e._transitionClasses||(e._transitionClasses=[]);i.indexOf(t)<0&&(i.push(t),Co(e,t))}function zo(e,t){e._transitionClasses&&_(e._transitionClasses,t),Ao(e,t)}function Ho(e,t,i){var n=Vo(e,t),r=n.type,o=n.timeout,s=n.propCount;if(!r)return i();var a=r===Io?Do:Po,l=0,c=function(){e.removeEventListener(a,u),i()},u=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l<s&&c()}),o+1),e.addEventListener(a,u)}var Fo=/\b(transform|all)(,|$)/;function Vo(e,t){var i,n=window.getComputedStyle(e),r=(n[Eo+"Delay"]||"").split(", "),o=(n[Eo+"Duration"]||"").split(", "),s=jo(r,o),a=(n[Oo+"Delay"]||"").split(", "),l=(n[Oo+"Duration"]||"").split(", "),c=jo(a,l),u=0,h=0;t===Io?s>0&&(i=Io,u=s,h=o.length):t===Lo?c>0&&(i=Lo,u=c,h=l.length):(u=Math.max(s,c),i=u>0?s>c?Io:Lo:null,h=i?i===Io?o.length:l.length:0);var d=i===Io&&Fo.test(n[Eo+"Property"]);return{type:i,timeout:u,propCount:h,hasTransform:d}}function jo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,i){return $o(t)+$o(e[i])})))}function $o(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Wo(e,t){var i=e.elm;o(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var n=Mo(e.data.transition);if(!r(n)&&!o(i._enterCb)&&1===i.nodeType){var s=n.css,a=n.type,l=n.enterClass,u=n.enterToClass,h=n.enterActiveClass,d=n.appearClass,f=n.appearToClass,p=n.appearActiveClass,g=n.beforeEnter,m=n.enter,y=n.afterEnter,_=n.enterCancelled,x=n.beforeAppear,b=n.appear,w=n.afterAppear,S=n.appearCancelled,C=n.duration,A=Ei,M=Ei.$vnode;while(M&&M.parent)A=M.context,M=M.parent;var k=!A._isMounted||!e.isRootInsert;if(!k||b||""===b){var T=k&&d?d:l,I=k&&p?p:h,L=k&&f?f:u,E=k&&x||g,D=k&&"function"===typeof b?b:m,O=k&&w||y,P=k&&S||_,R=v(c(C)?C.enter:C);0;var B=!1!==s&&!ie,N=qo(D),z=i._enterCb=H((function(){B&&(zo(i,L),zo(i,I)),z.cancelled?(B&&zo(i,T),P&&P(i)):O&&O(i),i._enterCb=null}));e.data.show||St(e,"insert",(function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),D&&D(i,z)})),E&&E(i),B&&(No(i,T),No(i,I),Bo((function(){zo(i,T),z.cancelled||(No(i,L),N||(Uo(R)?setTimeout(z,R):Ho(i,a,z)))}))),e.data.show&&(t&&t(),D&&D(i,z)),B||N||z()}}}function Go(e,t){var i=e.elm;o(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var n=Mo(e.data.transition);if(r(n)||1!==i.nodeType)return t();if(!o(i._leaveCb)){var s=n.css,a=n.type,l=n.leaveClass,u=n.leaveToClass,h=n.leaveActiveClass,d=n.beforeLeave,f=n.leave,p=n.afterLeave,g=n.leaveCancelled,m=n.delayLeave,y=n.duration,_=!1!==s&&!ie,x=qo(f),b=v(c(y)?y.leave:y);0;var w=i._leaveCb=H((function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(zo(i,u),zo(i,h)),w.cancelled?(_&&zo(i,l),g&&g(i)):(t(),p&&p(i)),i._leaveCb=null}));m?m(S):S()}function S(){w.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),d&&d(i),_&&(No(i,l),No(i,h),Bo((function(){zo(i,l),w.cancelled||(No(i,u),x||(Uo(b)?setTimeout(w,b):Ho(i,a,w)))}))),f&&f(i,w),_||x||w())}}function Uo(e){return"number"===typeof e&&!isNaN(e)}function qo(e){if(r(e))return!1;var t=e.fns;return o(t)?qo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Zo(e,t){!0!==t.data.show&&Wo(t)}var Xo=K?{create:Zo,activate:Zo,remove:function(e,t){!0!==e.data.show?Go(e,t):t()}}:{},Yo=[Gr,Zr,ro,co,wo,Xo],Ko=Yo.concat(Vr),Jo=Or({nodeOps:Ar,modules:Ko});ie&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ss(e,"input")}));var Qo={inserted:function(e,t,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?St(i,"postpatch",(function(){Qo.componentUpdated(e,t,i)})):es(e,t,i.context),e._vOptions=[].map.call(e.options,ns)):("textarea"===i.tag||hr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",rs),e.addEventListener("compositionend",os),e.addEventListener("change",os),ie&&(e.vmodel=!0)))},componentUpdated:function(e,t,i){if("select"===i.tag){es(e,t,i.context);var n=e._vOptions,r=e._vOptions=[].map.call(e.options,ns);if(r.some((function(e,t){return!N(e,n[t])}))){var o=e.multiple?t.value.some((function(e){return is(e,r)})):t.value!==t.oldValue&&is(t.value,r);o&&ss(e,"change")}}}};function es(e,t,i){ts(e,t,i),(te||ne)&&setTimeout((function(){ts(e,t,i)}),0)}function ts(e,t,i){var n=t.value,r=e.multiple;if(!r||Array.isArray(n)){for(var o,s,a=0,l=e.options.length;a<l;a++)if(s=e.options[a],r)o=z(n,ns(s))>-1,s.selected!==o&&(s.selected=o);else if(N(ns(s),n))return void(e.selectedIndex!==a&&(e.selectedIndex=a));r||(e.selectedIndex=-1)}}function is(e,t){return t.every((function(t){return!N(t,e)}))}function ns(e){return"_value"in e?e._value:e.value}function rs(e){e.target.composing=!0}function os(e){e.target.composing&&(e.target.composing=!1,ss(e.target,"input"))}function ss(e,t){var i=document.createEvent("HTMLEvents");i.initEvent(t,!0,!0),e.dispatchEvent(i)}function as(e){return!e.componentInstance||e.data&&e.data.transition?e:as(e.componentInstance._vnode)}var ls={bind:function(e,t,i){var n=t.value;i=as(i);var r=i.data&&i.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&r?(i.data.show=!0,Wo(i,(function(){e.style.display=o}))):e.style.display=n?o:"none"},update:function(e,t,i){var n=t.value,r=t.oldValue;if(!n!==!r){i=as(i);var o=i.data&&i.data.transition;o?(i.data.show=!0,n?Wo(i,(function(){e.style.display=e.__vOriginalDisplay})):Go(i,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none"}},unbind:function(e,t,i,n,r){r||(e.style.display=e.__vOriginalDisplay)}},cs={model:Qo,show:ls},us={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function hs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?hs(Ci(t.children)):e}function ds(e){var t={},i=e.$options;for(var n in i.propsData)t[n]=e[n];var r=i._parentListeners;for(var o in r)t[C(o)]=r[o];return t}function fs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function ps(e){while(e=e.parent)if(e.data.transition)return!0}function gs(e,t){return t.key===e.key&&t.tag===e.tag}var vs=function(e){return e.tag||Rt(e)},ms=function(e){return"show"===e.name},ys={name:"transition",props:us,abstract:!0,render:function(e){var t=this,i=this.$slots.default;if(i&&(i=i.filter(vs),i.length)){0;var n=this.mode;0;var r=i[0];if(ps(this.$vnode))return r;var o=hs(r);if(!o)return r;if(this._leaving)return fs(e,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:l(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var a=(o.data||(o.data={})).transition=ds(this),c=this._vnode,u=hs(c);if(o.data.directives&&o.data.directives.some(ms)&&(o.data.show=!0),u&&u.data&&!gs(o,u)&&!Rt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=D({},a);if("out-in"===n)return this._leaving=!0,St(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fs(e,r);if("in-out"===n){if(Rt(o))return c;var d,f=function(){d()};St(a,"afterEnter",f),St(a,"enterCancelled",f),St(h,"delayLeave",(function(e){d=e}))}}return r}}},_s=D({tag:String,moveClass:String},us);delete _s.mode;var xs={props:_s,beforeMount:function(){var e=this,t=this._update;this._update=function(i,n){var r=Di(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,i,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=ds(this),a=0;a<r.length;a++){var l=r[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),i[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(n){for(var c=[],u=[],h=0;h<n.length;h++){var d=n[h];d.data.transition=s,d.data.pos=d.elm.getBoundingClientRect(),i[d.key]?c.push(d):u.push(d)}this.kept=e(t,null,c),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(bs),e.forEach(ws),e.forEach(Ss),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var i=e.elm,n=i.style;No(i,t),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(Do,i._moveCb=function e(n){n&&n.target!==i||n&&!/transform$/.test(n.propertyName)||(i.removeEventListener(Do,e),i._moveCb=null,zo(i,t))})}})))},methods:{hasMove:function(e,t){if(!To)return!1;if(this._hasMove)return this._hasMove;var i=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Ao(i,e)})),Co(i,t),i.style.display="none",this.$el.appendChild(i);var n=Vo(i);return this.$el.removeChild(i),this._hasMove=n.hasTransform}}};function bs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ws(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ss(e){var t=e.data.pos,i=e.data.newPos,n=t.left-i.left,r=t.top-i.top;if(n||r){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+r+"px)",o.transitionDuration="0s"}}var Cs={Transition:ys,TransitionGroup:xs};An.config.mustUseProp=jn,An.config.isReservedTag=ar,An.config.isReservedAttr=Fn,An.config.getTagNamespace=lr,An.config.isUnknownElement=ur,D(An.options.directives,cs),D(An.options.components,Cs),An.prototype.__patch__=K?Jo:P,An.prototype.$mount=function(e,t){return e=e&&K?dr(e):void 0,Ri(this,e,t)},K&&setTimeout((function(){$.devtools&&ue&&ue.emit("init",An)}),0),t["default"]=An},9963:function(e){e.exports=function(e,t){var i="function"===typeof e.exports?e.exports.extendOptions:e.options;for(var n in"function"===typeof e.exports&&(i.components=e.exports.options.components),i.components=i.components||{},t)i.components[n]=i.components[n]||t[n]}},95353:function(e,t,i){"use strict";
|
||
/*!
|
||
* vuex v3.6.2
|
||
* (c) 2021 Evan You
|
||
* @license MIT
|
||
*/function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:n});else{var i=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,i.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var i=a(t,(function(t){return t.original===e}));if(i)return i.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(i){n[i]=l(e[i],t)})),n}function c(e,t){Object.keys(e).forEach((function(i){return t(e[i],i)}))}function u(e){return null!==e&&"object"===typeof e}function h(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var f=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=("function"===typeof i?i():i)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(e,t){this._children[e]=t},f.prototype.removeChild=function(e){delete this._children[e]},f.prototype.getChild=function(e){return this._children[e]},f.prototype.hasChild=function(e){return e in this._children},f.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},f.prototype.forEachChild=function(e){c(this._children,e)},f.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},f.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},f.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(f.prototype,p);var g=function(e){this.register([],e,!1)};function v(e,t,i){if(t.update(i),i.modules)for(var n in i.modules){if(!t.getChild(n))return void 0;v(e.concat(n),t.getChild(n),i.modules[n])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,i){return t=t.getChild(i),e+(t.namespaced?i+"/":"")}),"")},g.prototype.update=function(e){v([],this.root,e)},g.prototype.register=function(e,t,i){var n=this;void 0===i&&(i=!0);var r=new f(t,i);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&c(t.modules,(function(t,r){n.register(e.concat(r),t,i)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1],n=t.getChild(i);n&&n.runtime&&t.removeChild(i)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1];return!!t&&t.hasChild(i)};var m;var y=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&D(window.Vue);var i=e.plugins;void 0===i&&(i=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,a=o.dispatch,l=o.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,i){return l.call(r,e,t,i)},this.strict=n;var c=this._modules.root.state;S(this,c,[],this._modules.root),w(this,c),i.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:m.config.devtools;u&&s(this)},_={state:{configurable:!0}};function x(e,t,i){return t.indexOf(e)<0&&(i&&i.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function b(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;S(e,i,[],e._modules.root,!0),w(e,i,t)}function w(e,t,i){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};c(r,(function(t,i){o[i]=d(t,e),Object.defineProperty(e.getters,i,{get:function(){return e._vm[i]},enumerable:!0})}));var s=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:o}),m.config.silent=s,e.strict&&I(e),n&&(i&&e._withCommit((function(){n._data.$$state=null})),m.nextTick((function(){return n.$destroy()})))}function S(e,t,i,n,r){var o=!i.length,s=e._modules.getNamespace(i);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!o&&!r){var a=L(t,i.slice(0,-1)),l=i[i.length-1];e._withCommit((function(){m.set(a,l,n.state)}))}var c=n.context=C(e,s,i);n.forEachMutation((function(t,i){var n=s+i;M(e,n,t,c)})),n.forEachAction((function(t,i){var n=t.root?i:s+i,r=t.handler||t;k(e,n,r,c)})),n.forEachGetter((function(t,i){var n=s+i;T(e,n,t,c)})),n.forEachChild((function(n,o){S(e,t,i.concat(o),n,r)}))}function C(e,t,i){var n=""===t,r={dispatch:n?e.dispatch:function(i,n,r){var o=E(i,n,r),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=t+l),e.dispatch(l,s)},commit:n?e.commit:function(i,n,r){var o=E(i,n,r),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=t+l),e.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:n?function(){return e.getters}:function(){return A(e,t)}},state:{get:function(){return L(e.state,i)}}}),r}function A(e,t){if(!e._makeLocalGettersCache[t]){var i={},n=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,n)===t){var o=r.slice(n);Object.defineProperty(i,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=i}return e._makeLocalGettersCache[t]}function M(e,t,i,n){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){i.call(e,n.state,t)}))}function k(e,t,i,n){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=i.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return h(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function T(e,t,i,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return i(n.state,n.getters,e.state,e.getters)})}function I(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function L(e,t){return t.reduce((function(e,t){return e[t]}),e)}function E(e,t,i){return u(e)&&e.type&&(i=t,t=e,e=e.type),{type:e,payload:t,options:i}}function D(e){m&&e===m||(m=e,n(m))}_.state.get=function(){return this._vm._data.$$state},_.state.set=function(e){0},y.prototype.commit=function(e,t,i){var n=this,r=E(e,t,i),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,n.state)})))},y.prototype.dispatch=function(e,t){var i=this,n=E(e,t),r=n.type,o=n.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,i.state)}))}catch(c){0}var l=a.length>1?Promise.all(a.map((function(e){return e(o)}))):a[0](o);return new Promise((function(e,t){l.then((function(t){try{i._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,i.state)}))}catch(c){0}e(t)}),(function(e){try{i._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,i.state,e)}))}catch(c){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return x(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var i="function"===typeof e?{before:e}:e;return x(i,this._actionSubscribers,t)},y.prototype.watch=function(e,t,i){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,i)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,i){void 0===i&&(i={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),i.preserveState),w(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var i=L(t.state,e.slice(0,-1));m.delete(i,e[e.length-1])})),b(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),b(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,_);var O=F((function(e,t){var i={};return z(t).forEach((function(t){var n=t.key,r=t.val;i[n]=function(){var t=this.$store.state,i=this.$store.getters;if(e){var n=V(this.$store,"mapState",e);if(!n)return;t=n.context.state,i=n.context.getters}return"function"===typeof r?r.call(this,t,i):t[r]},i[n].vuex=!0})),i})),P=F((function(e,t){var i={};return z(t).forEach((function(t){var n=t.key,r=t.val;i[n]=function(){var t=[],i=arguments.length;while(i--)t[i]=arguments[i];var n=this.$store.commit;if(e){var o=V(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"===typeof r?r.apply(this,[n].concat(t)):n.apply(this.$store,[r].concat(t))}})),i})),R=F((function(e,t){var i={};return z(t).forEach((function(t){var n=t.key,r=t.val;r=e+r,i[n]=function(){if(!e||V(this.$store,"mapGetters",e))return this.$store.getters[r]},i[n].vuex=!0})),i})),B=F((function(e,t){var i={};return z(t).forEach((function(t){var n=t.key,r=t.val;i[n]=function(){var t=[],i=arguments.length;while(i--)t[i]=arguments[i];var n=this.$store.dispatch;if(e){var o=V(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"===typeof r?r.apply(this,[n].concat(t)):n.apply(this.$store,[r].concat(t))}})),i})),N=function(e){return{mapState:O.bind(null,e),mapGetters:R.bind(null,e),mapMutations:P.bind(null,e),mapActions:B.bind(null,e)}};function z(e){return H(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function H(e){return Array.isArray(e)||u(e)}function F(e){return function(t,i){return"string"!==typeof t?(i=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,i)}}function V(e,t,i){var n=e._modulesNamespaceMap[i];return n}function j(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var i=e.filter;void 0===i&&(i=function(e,t,i){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var a=e.logMutations;void 0===a&&(a=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=l(e.state);"undefined"!==typeof u&&(a&&e.subscribe((function(e,o){var s=l(o);if(i(e,h,s)){var a=G(),c=r(e),d="mutation "+e.type+a;$(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",n(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),W(u)}h=s})),c&&e.subscribeAction((function(e,i){if(o(e,i)){var n=G(),r=s(e),a="action "+e.type+n;$(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),W(u)}})))}}function $(e,t,i){var n=i?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function W(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function G(){var e=new Date;return" @ "+q(e.getHours(),2)+":"+q(e.getMinutes(),2)+":"+q(e.getSeconds(),2)+"."+q(e.getMilliseconds(),3)}function U(e,t){return new Array(t+1).join(e)}function q(e,t){return U("0",t-e.toString().length)+e}var Z={Store:y,install:D,version:"3.6.2",mapState:O,mapMutations:P,mapGetters:R,mapActions:B,createNamespacedHelpers:N,createLogger:j};t.Ay=Z},93875:function(e){!function(t,i){e.exports=i()}(self,(()=>(()=>{"use strict";var e={};return(()=>{var t=e;function i(e,t,i){return e.addEventListener(t,i),{dispose:()=>{i&&e.removeEventListener(t,i)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.AttachAddon=void 0,t.AttachAddon=class{constructor(e,t){this._disposables=[],this._socket=e,this._socket.binaryType="arraybuffer",this._bidirectional=!(t&&!1===t.bidirectional)}activate(e){this._disposables.push(i(this._socket,"message",(t=>{const i=t.data;e.write("string"==typeof i?i:new Uint8Array(i))}))),this._bidirectional&&(this._disposables.push(e.onData((e=>this._sendData(e)))),this._disposables.push(e.onBinary((e=>this._sendBinary(e))))),this._disposables.push(i(this._socket,"close",(()=>this.dispose()))),this._disposables.push(i(this._socket,"error",(()=>this.dispose())))}dispose(){for(const e of this._disposables)e.dispose()}_sendData(e){this._checkOpenSocket()&&this._socket.send(e)}_sendBinary(e){if(!this._checkOpenSocket())return;const t=new Uint8Array(e.length);for(let i=0;i<e.length;++i)t[i]=255&e.charCodeAt(i);this._socket.send(t)}_checkOpenSocket(){switch(this._socket.readyState){case WebSocket.OPEN:return!0;case WebSocket.CONNECTING:throw new Error("Attach addon was loaded before socket was open");case WebSocket.CLOSING:return console.warn("Attach addon socket is closing"),!1;case WebSocket.CLOSED:throw new Error("Attach addon socket is closed");default:throw new Error("Unexpected socket state")}}}})(),e})()))},29195:function(e){!function(t,i){e.exports=i()}(self,(()=>(()=>{"use strict";var e={};return(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core,t=e._renderService.dimensions;if(0===t.css.cell.width||0===t.css.cell.height)return;const i=0===this._terminal.options.scrollback?0:e.viewport.scrollBarWidth,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue("height")),o=Math.max(0,parseInt(n.getPropertyValue("width"))),s=window.getComputedStyle(this._terminal.element),a=r-(parseInt(s.getPropertyValue("padding-top"))+parseInt(s.getPropertyValue("padding-bottom"))),l=o-(parseInt(s.getPropertyValue("padding-right"))+parseInt(s.getPropertyValue("padding-left")))-i;return{cols:Math.max(2,Math.floor(l/t.css.cell.width)),rows:Math.max(1,Math.floor(a/t.css.cell.height))}}}})(),e})()))},62975:function(e){!function(t,i){e.exports=i()}(self,(()=>(()=>{"use strict";var e={4567:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;const o=i(9042),s=i(6114),a=i(9924),l=i(844),c=i(5596),u=i(4725),h=i(3656);let d=t.AccessibilityManager=class extends l.Disposable{constructor(e,t){super(),this._terminal=e,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let i=0;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);if(this._topBoundaryFocusListener=e=>this._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new a.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((e=>this._handleResize(e.rows)))),this.register(this._terminal.onRender((e=>this._refreshRows(e.start,e.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((e=>this._handleChar(e)))),this.register(this._terminal.onLineFeed((()=>this._handleChar("\n")))),this.register(this._terminal.onA11yTab((e=>this._handleTab(e)))),this.register(this._terminal.onKey((e=>this._handleKey(e.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this._screenDprMonitor=new c.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener((()=>this._refreshRowsDimensions())),this.register((0,h.addDisposableDomListener)(window,"resize",(()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,l.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),s.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((()=>{this._accessibilityContainer.appendChild(this._liveRegion)}),0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,s.isMac&&this._liveRegion.remove()}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){const i=this._terminal.buffer,n=i.lines.length.toString();for(let r=e;r<=t;r++){const e=i.translateBufferLineToString(i.ydisp+r,!0),t=(i.ydisp+r+1).toString(),o=this._rowElements[r];o&&(0===e.length?o.innerText=" ":o.textContent=e,o.setAttribute("aria-posinset",t),o.setAttribute("aria-setsize",n))}this._announceCharacters()}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){const i=e.target,n=this._rowElements[0===t?1:this._rowElements.length-2];if(i.getAttribute("aria-posinset")===(0===t?"1":`${this._terminal.buffer.lines.length}`))return;if(e.relatedTarget!==n)return;let r,o;if(0===t?(r=i,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(r=this._rowElements.shift(),o=i,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){const e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement("afterbegin",e)}else{const e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};t.AccessibilityManager=d=n([r(1,u.IRenderService)],d)},3614:(e,t)=>{function i(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"[200~"+e+"[201~":e}function r(e,t,r,o){e=n(e=i(e),r.decPrivateModes.bracketedPasteMode&&!0!==o.rawOptions.ignoreBracketedPasteMode),r.triggerDataEvent(e,!0),t.value=""}function o(e,t,i){const n=i.getBoundingClientRect(),r=e.clientX-n.left-10,o=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${o}px`,t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=i,t.bracketTextForPaste=n,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i,n){e.stopPropagation(),e.clipboardData&&r(e.clipboardData.getData("text/plain"),t,i,n)},t.paste=r,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,i,n,r){o(e,t,i),r&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const n=i(1505);t.ColorContrastCache=class{constructor(){this._color=new n.TwoKeyMap,this._css=new n.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,n){e.addEventListener(t,i,n);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,n))}}}},6465:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;const o=i(3656),s=i(8460),a=i(844),l=i(2585);let c=t.Linkifier2=class extends a.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new s.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new s.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,a.toDisposable)((()=>{this._lastMouseEvent=void 0}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0})))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const t=this._linkProviders.indexOf(e);-1!==t&&this._linkProviders.splice(t,1)}}}attachToDom(e,t,i){this._element=e,this._mouseService=t,this._renderService=i,this.register((0,o.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,o.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,o.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,o.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;const i=e.composedPath();for(let n=0;n<i.length;n++){const e=i[n];if(e.classList.contains("xterm"))break;if(e.classList.contains("xterm-hover"))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){var i,n;this._activeProviderReplies&&t||(null===(i=this._activeProviderReplies)||void 0===i||i.forEach((e=>{null==e||e.forEach((e=>{e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(const[o,s]of this._linkProviders.entries())t?(null===(n=this._activeProviderReplies)||void 0===n?void 0:n.get(o))&&(r=this._checkLinkProviderResult(o,e,r)):s.provideLinks(e.y,(t=>{var i,n;if(this._isMouseOut)return;const s=null==t?void 0:t.map((e=>({link:e})));null===(i=this._activeProviderReplies)||void 0===i||i.set(o,s),r=this._checkLinkProviderResult(o,e,r),(null===(n=this._activeProviderReplies)||void 0===n?void 0:n.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)}))}_removeIntersectingLinks(e,t){const i=new Set;for(let n=0;n<t.size;n++){const r=t.get(n);if(r)for(let t=0;t<r.length;t++){const n=r[t],o=n.link.range.start.y<e?0:n.link.range.start.x,s=n.link.range.end.y>e?this._bufferService.cols:n.link.range.end.x;for(let e=o;e<=s;e++){if(i.has(e)){r.splice(t--,1);break}i.add(e)}}}}_checkLinkProviderResult(e,t,i){var n;if(!this._activeProviderReplies)return i;const r=this._activeProviderReplies.get(e);let o=!1;for(let s=0;s<e;s++)this._activeProviderReplies.has(s)&&!this._activeProviderReplies.get(s)||(o=!0);if(!o&&r){const e=r.find((e=>this._linkAtPosition(e.link,t)));e&&(i=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let s=0;s<this._activeProviderReplies.size;s++){const e=null===(n=this._activeProviderReplies.get(s))||void 0===n?void 0:n.find((e=>this._linkAtPosition(e.link,t)));if(e){i=!0,this._handleNewLink(e);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.pointerCursor},set:e=>{var t,i;(null===(t=this._currentLink)||void 0===t?void 0:t.state)&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&(null===(i=this._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.underline},set:t=>{var i,n,r;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(null===(r=null===(n=this._currentLink)||void 0===n?void 0:n.state)||void 0===r?void 0:r.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((e=>{if(!this._currentLink)return;const t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+e.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(t,i),this._lastMouseEvent&&this._element)){const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._askForLink(e,!1)}}))))}_linkHover(e,t,i){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){const i=e.range,n=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-n-1,i.end.x,i.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,t,i){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,n=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return i<=r&&r<=n}_positionFromMouseEvent(e,t,i){const n=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,n,r){return{x1:e,y1:t,x2:i,y2:n,cols:this._bufferService.cols,fg:r}}};t.Linkifier2=c=n([r(0,l.IBufferService)],c)},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;const o=i(511),s=i(2585);let a=t.OscLinkProvider=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){var i;const n=this._bufferService.buffer.lines.get(e-1);if(!n)return void t(void 0);const r=[],s=this._optionsService.rawOptions.linkHandler,a=new o.CellData,c=n.getTrimmedLength();let u=-1,h=-1,d=!1;for(let o=0;o<c;o++)if(-1!==h||n.hasContent(o)){if(n.loadCell(o,a),a.hasExtendedAttrs()&&a.extended.urlId){if(-1===h){h=o,u=a.extended.urlId;continue}d=a.extended.urlId!==u}else-1!==h&&(d=!0);if(d||-1!==h&&o===c-1){const t=null===(i=this._oscLinkService.getLinkData(u))||void 0===i?void 0:i.uri;if(t){const i={start:{x:h+1,y:e},end:{x:o+(d||o!==c-1?0:1),y:e}};let n=!1;if(!(null==s?void 0:s.allowNonHttpProtocols))try{const e=new URL(t);["http:","https:"].includes(e.protocol)||(n=!0)}catch(e){n=!0}n||r.push({text:t,range:i,activate:(e,t)=>s?s.activate(e,t,i):l(0,t),hover:(e,t)=>{var n;return null===(n=null==s?void 0:s.hover)||void 0===n?void 0:n.call(s,e,t,i)},leave:(e,t)=>{var n;return null===(n=null==s?void 0:s.leave)||void 0===n?void 0:n.call(s,e,t,i)}})}d=!1,a.hasExtendedAttrs()&&a.extended.urlId?(h=o,u=a.extended.urlId):(h=-1,u=-1)}}t(r)}};function l(e,t){if(confirm(`Do you want to navigate to ${t}?\n\nWARNING: This link could potentially be dangerous`)){const i=window.open();if(i){try{i.opener=null}catch(e){}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}t.OscLinkProvider=a=n([r(0,s.IBufferService),r(1,s.IOptionsService),r(2,s.IOscLinkService)],a)},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._parentWindow=e,this._renderCallback=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},5596:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;const n=i(844);class r extends n.Disposable{constructor(e){super(),this._parentWindow=e,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,n.toDisposable)((()=>{this.clearListener()})))}setListener(e){this._listener&&this.clearListener(),this._listener=e,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}t.ScreenDprMonitor=r},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const n=i(3614),r=i(3656),o=i(6465),s=i(9042),a=i(3730),l=i(1680),c=i(3107),u=i(5744),h=i(2950),d=i(1296),f=i(428),p=i(4269),g=i(5114),v=i(8934),m=i(3230),y=i(9312),_=i(4725),x=i(6731),b=i(8055),w=i(8969),S=i(8460),C=i(844),A=i(6114),M=i(8437),k=i(2584),T=i(7399),I=i(5941),L=i(9074),E=i(2585),D=i(5435),O=i(4567),P="undefined"!=typeof window?window.document:null;class R extends w.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(e={}){super(e),this.browser=A,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new C.MutableDisposable),this._onCursorMove=this.register(new S.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new S.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new S.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new S.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new S.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new S.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new S.EventEmitter),this._onBlur=this.register(new S.EventEmitter),this._onA11yCharEmitter=this.register(new S.EventEmitter),this._onA11yTabEmitter=this.register(new S.EventEmitter),this._onWillOpen=this.register(new S.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(o.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(a.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(L.DecorationService),this._instantiationService.setService(E.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((e,t)=>this.refresh(e,t)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((e=>this._reportWindowsOptions(e)))),this.register(this._inputHandler.onColor((e=>this._handleColorEvent(e)))),this.register((0,S.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,S.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,S.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,S.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((e=>this._afterResize(e.cols,e.rows)))),this.register((0,C.toDisposable)((()=>{var e,t;this._customKeyEventHandler=void 0,null===(t=null===(e=this.element)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(this.element)})))}_handleColorEvent(e){if(this._themeService)for(const t of e){let e,i="";switch(t.index){case 256:e="foreground",i="10";break;case 257:e="background",i="11";break;case 258:e="cursor",i="12";break;default:e="ansi",i="4;"+t.index}switch(t.type){case 0:const n=b.color.toColorRGB("ansi"===e?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${k.C0.ESC}]${i};${(0,I.toRgbString)(n)}${k.C1_ESCAPED.ST}`);break;case 1:if("ansi"===e)this._themeService.modifyColors((e=>e.ansi[t.index]=b.rgba.toColor(...t.color)));else{const i=e;this._themeService.modifyColors((e=>e[i]=b.rgba.toColor(...t.color)))}break;case 2:this._themeService.restoreColor(t.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(O.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(k.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(k.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;const i=Math.min(this.buffer.x,this.cols-1),n=this._renderService.dimensions.css.cell.height,r=t.getWidth(i),o=this._renderService.dimensions.css.cell.width*r,s=this.buffer.y*this._renderService.dimensions.css.cell.height,a=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=s+"px",this.textarea.style.width=o+"px",this.textarea.style.height=n+"px",this.textarea.style.lineHeight=n+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,r.addDisposableDomListener)(this.element,"copy",(e=>{this.hasSelection()&&(0,n.copyHandler)(e,this._selectionService)})));const e=e=>(0,n.handlePasteEvent)(e,this.textarea,this.coreService,this.optionsService);this.register((0,r.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,r.addDisposableDomListener)(this.element,"paste",e)),A.isFirefox?this.register((0,r.addDisposableDomListener)(this.element,"mousedown",(e=>{2===e.button&&(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,r.addDisposableDomListener)(this.element,"contextmenu",(e=>{(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),A.isLinux&&this.register((0,r.addDisposableDomListener)(this.element,"auxclick",(e=>{1===e.button&&(0,n.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,r.addDisposableDomListener)(this.textarea,"keyup",(e=>this._keyUp(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keydown",(e=>this._keyDown(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keypress",(e=>this._keyPress(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionupdate",(e=>this._compositionHelper.compositionupdate(e)))),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,r.addDisposableDomListener)(this.textarea,"input",(e=>this._inputEvent(e)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(e){var t;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);const i=P.createDocumentFragment();this._viewportElement=P.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=P.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=P.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=P.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this.textarea=P.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",s.promptLabel),A.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(g.CoreBrowserService,this.textarea,null!==(t=this._document.defaultView)&&void 0!==t?t:window),this._instantiationService.setService(_.ICoreBrowserService,this._coreBrowserService),this.register((0,r.addDisposableDomListener)(this.textarea,"focus",(e=>this._handleTextAreaFocus(e)))),this.register((0,r.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(f.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(_.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(x.ThemeService),this._instantiationService.setService(_.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(p.CharacterJoinerService),this._instantiationService.setService(_.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(m.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(_.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((e=>this._onRender.fire(e)))),this.onResize((e=>this._renderService.resize(e.cols,e.rows))),this._compositionView=P.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(h.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(i);try{this._onWillOpen.fire(this.element)}catch(e){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(v.MouseService),this._instantiationService.setService(_.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(l.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((e=>this.scrollLines(e.amount,e.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(y.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(_.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((e=>this.scrollLines(e.amount,e.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,r.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(c.BufferDecorationRenderer,this.screenElement)),this.register((0,r.addDisposableDomListener)(this.element,"mousedown",(e=>this._selectionService.handleMouseDown(e)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(O.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(e=>this._handleScreenReaderModeOptionChange(e)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(u.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(u.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(d.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const e=this,t=this.element;function i(t){const i=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!i)return!1;let n,r;switch(t.overrideType||t.type){case"mousemove":r=32,void 0===t.buttons?(n=3,void 0!==t.button&&(n=t.button<3?t.button:3)):n=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":r=0,n=t.button<3?t.button:3;break;case"mousedown":r=1,n=t.button<3?t.button:3;break;case"wheel":if(0===e.viewport.getLinesScrolled(t))return!1;r=t.deltaY<0?0:1,n=4;break;default:return!1}return!(void 0===r||void 0===n||n>4)&&e.coreMouseService.triggerMouseEvent({col:i.col,row:i.row,x:i.x,y:i.y,button:n,action:r,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}const n={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.removeEventListener("mousemove",n.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange((e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?n.mousemove||(t.addEventListener("mousemove",o.mousemove),n.mousemove=o.mousemove):(t.removeEventListener("mousemove",n.mousemove),n.mousemove=null),16&e?n.wheel||(t.addEventListener("wheel",o.wheel,{passive:!1}),n.wheel=o.wheel):(t.removeEventListener("wheel",n.wheel),n.wheel=null),2&e?n.mouseup||(t.addEventListener("mouseup",o.mouseup),n.mouseup=o.mouseup):(this._document.removeEventListener("mouseup",n.mouseup),t.removeEventListener("mouseup",n.mouseup),n.mouseup=null),4&e?n.mousedrag||(n.mousedrag=o.mousedrag):(this._document.removeEventListener("mousemove",n.mousedrag),n.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,r.addDisposableDomListener)(t,"mousedown",(e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),n.mouseup&&this._document.addEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.addEventListener("mousemove",n.mousedrag),this.cancel(e)}))),this.register((0,r.addDisposableDomListener)(t,"wheel",(e=>{if(!n.wheel){if(!this.buffer.hasScrollback){const t=this.viewport.getLinesScrolled(e);if(0===t)return;const i=k.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B");let n="";for(let e=0;e<Math.abs(t);e++)n+=i;return this.coreService.triggerDataEvent(n,!0),this.cancel(e,!0)}return this.viewport.handleWheel(e)?this.cancel(e):void 0}}),{passive:!1})),this.register((0,r.addDisposableDomListener)(t,"touchstart",(e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(e),this.cancel(e)}),{passive:!0})),this.register((0,r.addDisposableDomListener)(t,"touchmove",(e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(e)?void 0:this.cancel(e)}),{passive:!1}))}refresh(e,t){var i;null===(i=this._renderService)||void 0===i||i.refreshRows(e,t)}updateCursorStyle(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){var n;1===i?(super.scrollLines(e,t,i),this.refresh(0,this.rows-1)):null===(n=this.viewport)||void 0===n||n.scrollLines(e)}paste(e){(0,n.paste)(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}registerLinkProvider(e){return this.linkifier2.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()}selectAll(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()}selectLines(e,t){var i;null===(i=this._selectionService)||void 0===i||i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;const t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);const i=(0,T.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===i.type||2===i.type){const t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(i.key!==k.C0.ETX&&i.key!==k.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(e,t){const i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){var i,n;null===(i=this._charSizeService)||void 0===i||i.measure(),null===(n=this.viewport)||void 0===n||n.syncScrollArea(!0)}clear(){var e;if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(M.DEFAULT_ATTR_DATA));this._onScroll.fire({position:this.buffer.ydisp,source:0}),null===(e=this.viewport)||void 0===e||e.reset(),this.refresh(0,this.rows-1)}}reset(){var e,t;this.options.rows=this.rows,this.options.cols=this.cols;const i=this._customKeyEventHandler;this._setup(),super.reset(),null===(e=this._selectionService)||void 0===e||e.reset(),this._decorationService.reset(),null===(t=this.viewport)||void 0===t||t.reset(),this._customKeyEventHandler=i,this.refresh(0,this.rows-1)}clearTextureAtlas(){var e;null===(e=this._renderService)||void 0===e||e.clearTextureAtlas()}_reportFocus(){var e;(null===(e=this.element)||void 0===e?void 0:e.classList.contains("focus"))?this.coreService.triggerDataEvent(k.C0.ESC+"[I"):this.coreService.triggerDataEvent(k.C0.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case D.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const e=this._renderService.dimensions.css.canvas.width.toFixed(0),t=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${k.C0.ESC}[4;${t};${e}t`);break;case D.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const i=this._renderService.dimensions.css.cell.width.toFixed(0),n=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${k.C0.ESC}[6;${n};${i}t`)}}cancel(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1}}t.Terminal=R},9924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;const n=Date.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){const e=n-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),t)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}},1680:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;const o=i(3656),s=i(4725),a=i(8460),l=i(844),c=i(2585);let u=t.Viewport=class extends l.Disposable{constructor(e,t,i,n,r,s,l,c){super(),this._viewportElement=e,this._scrollArea=t,this._bufferService=i,this._optionsService=n,this._charSizeService=r,this._renderService=s,this._coreBrowserService=l,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new a.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,o.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((e=>this._renderDimensions=e))),this._handleThemeChange(c.colors),this.register(c.onChangeColors((e=>this._handleThemeChange(e)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(e){if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}_handleScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;const e=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){const i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&i<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)}handleWheel(e){const t=this._getPixelsScrolled(e);return 0!==t&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,-1===this._smoothScrollState.target?this._smoothScrollState.target=this._viewportElement.scrollTop+t:this._smoothScrollState.target+=t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}scrollLines(e){if(0!==e)if(this._optionsService.rawOptions.smoothScrollDuration){const t=e*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:e,suppressScrollEvent:!1})}_getPixelsScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t}getBufferElements(e,t){var i;let n,r="";const o=[],s=null!=t?t:this._bufferService.buffer.lines.length,a=this._bufferService.buffer.lines;for(let l=e;l<s;l++){const e=a.get(l);if(!e)continue;const t=null===(i=a.get(l+1))||void 0===i?void 0:i.isWrapped;if(r+=e.translateToString(!t),!t||l===a.length-1){const e=document.createElement("div");e.textContent=r,o.push(e),r.length>0&&(n=e),r=""}}return{bufferElements:o,cursorElement:n}}getLinesScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){const i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(e){this._lastTouchY=e.touches[0].pageY}handleTouchMove(e){const t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}};t.Viewport=u=n([r(2,c.IBufferService),r(3,c.IOptionsService),r(4,s.ICharSizeService),r(5,s.IRenderService),r(6,s.ICoreBrowserService),r(7,s.IThemeService)],u)},3107:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;const o=i(3656),s=i(4725),a=i(844),l=i(2585);let c=t.BufferDecorationRenderer=class extends a.Disposable{constructor(e,t,i,n){super(),this._screenElement=e,this._bufferService=t,this._decorationService=i,this._renderService=n,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register((0,o.addDisposableDomListener)(window,"resize",(()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((e=>this._removeDecoration(e)))),this.register((0,a.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var t,i;const n=document.createElement("div");n.classList.add("xterm-decoration"),n.classList.toggle("xterm-decoration-top-layer","top"===(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.layer)),n.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,n.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",n.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",n.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const r=null!==(i=e.options.x)&&void 0!==i?i:0;return r&&r>this._bufferService.cols&&(n.style.display="none"),this._refreshXPosition(e,n),n}_refreshStyle(e){const t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let i=this._decorationElements.get(e);i||(i=this._createElement(e),e.element=i,this._decorationElements.set(e,i),this._container.appendChild(i),e.onDispose((()=>{this._decorationElements.delete(e),i.remove()}))),i.style.top=t*this._renderService.dimensions.css.cell.height+"px",i.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(i)}}_refreshXPosition(e,t=e.element){var i;if(!t)return;const n=null!==(i=e.options.x)&&void 0!==i?i:0;"right"===(e.options.anchor||"left")?t.style.right=n?n*this._renderService.dimensions.css.cell.width+"px":"":t.style.left=n?n*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e),e.dispose()}};t.BufferDecorationRenderer=c=n([r(1,l.IBufferService),r(2,l.IDecorationService),r(3,s.IRenderService)],c)},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(const t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;const o=i(5871),s=i(3656),a=i(4725),l=i(844),c=i(2585),u={full:0,left:0,center:0,right:0},h={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0};let f=t.OverviewRulerRenderer=class extends l.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(e,t,i,n,r,s,a){var c;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=n,this._renderService=r,this._optionsService=s,this._coreBrowseService=a,this._colorZoneStore=new o.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null===(c=this._viewportElement.parentElement)||void 0===c||c.insertBefore(this._canvas,this._viewportElement);const u=this._canvas.getContext("2d");if(!u)throw new Error("Ctx cannot be null");this._ctx=u,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,l.toDisposable)((()=>{var e;null===(e=this._canvas)||void 0===e||e.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register((0,s.addDisposableDomListener)(this._coreBrowseService.window,"resize",(()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);h.full=this._canvas.width,h.left=e,h.center=t,h.right=e,this._refreshDrawHeightConstants(),d.full=0,d.left=0,d.center=h.left,d.right=h.left+h.center}_refreshDrawHeightConstants(){u.full=Math.round(2*this._coreBrowseService.dpr);const e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);u.left=t,u.center=t,u.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*u.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*u.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*u.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*u.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1;const e=this._colorZoneStore.zones;for(const t of e)"full"!==t.position&&this._renderColorZone(t);for(const t of e)"full"===t.position&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(d[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-u[e.position||"full"]/2),h[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+u[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};t.OverviewRulerRenderer=f=n([r(2,c.IBufferService),r(3,c.IDecorationService),r(4,a.IRenderService),r(5,c.IOptionsService),r(6,a.ICoreBrowserService)],f)},2950:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;const o=i(4725),s=i(2585),a=i(2584);let l=t.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(e,t,i,n,r,o){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=n,this._coreService=r,this._renderService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let t;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,t=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),t.length>0&&this._coreService.triggerDataEvent(t,!0)}}),0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const e=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const t=this._textarea.value,i=t.replace(e,"");this._dataAlreadySent=i,t.length>e.length?this._coreService.triggerDataEvent(i,!0):t.length<e.length?this._coreService.triggerDataEvent(`${a.C0.DEL}`,!0):t.length===e.length&&t!==e&&this._coreService.triggerDataEvent(t,!0)}}),0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),t=this._renderService.dimensions.css.cell.height,i=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,n=e*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=n+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=t+"px",this._compositionView.style.lineHeight=t+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";const r=this._compositionView.getBoundingClientRect();this._textarea.style.left=n+"px",this._textarea.style.top=i+"px",this._textarea.style.width=Math.max(r.width,1)+"px",this._textarea.style.height=Math.max(r.height,1)+"px",this._textarea.style.lineHeight=r.height+"px"}e||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};t.CompositionHelper=l=n([r(2,s.IBufferService),r(3,s.IOptionsService),r(4,s.ICoreService),r(5,o.IRenderService)],l)},9806:(e,t)=>{function i(e,t,i){const n=i.getBoundingClientRect(),r=e.getComputedStyle(i),o=parseInt(r.getPropertyValue("padding-left")),s=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-n.left-o,t.clientY-n.top-s]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,n,r,o,s,a,l,c){if(!s)return;const u=i(e,t,n);return u?(u[0]=Math.ceil((u[0]+(c?a/2:0))/a),u[1]=Math.ceil(u[1]/l),u[0]=Math.min(Math.max(u[0],1),r+(c?1:0)),u[1]=Math.min(Math.max(u[1],1),o),u):void 0}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;const n=i(2584);function r(e,t,i,n){const r=e-o(e,i),a=t-o(t,i),u=Math.abs(r-a)-function(e,t,i){let n=0;const r=e-o(e,i),a=t-o(t,i);for(let o=0;o<Math.abs(r-a);o++){const a="A"===s(e,t)?-1:1,l=i.buffer.lines.get(r+a*o);(null==l?void 0:l.isWrapped)&&n++}return n}(e,t,i);return c(u,l(s(e,t),n))}function o(e,t){let i=0,n=t.buffer.lines.get(e),r=null==n?void 0:n.isWrapped;for(;r&&e>=0&&e<t.rows;)i++,n=t.buffer.lines.get(--e),r=null==n?void 0:n.isWrapped;return i}function s(e,t){return e>t?"A":"B"}function a(e,t,i,n,r,o){let s=e,a=t,l="";for(;s!==i||a!==n;)s+=r?1:-1,r&&s>o.cols-1?(l+=o.buffer.translateBufferLineToString(a,!1,e,s),s=0,e=0,a++):!r&&s<0&&(l+=o.buffer.translateBufferLineToString(a,!1,0,e+1),s=o.cols-1,e=s,a--);return l+o.buffer.translateBufferLineToString(a,!1,e,s)}function l(e,t){const i=t?"O":"[";return n.C0.ESC+i+e}function c(e,t){e=Math.floor(e);let i="";for(let n=0;n<e;n++)i+=t;return i}t.moveToCellSequence=function(e,t,i,n){const s=i.buffer.x,u=i.buffer.y;if(!i.buffer.hasScrollback)return function(e,t,i,n,s,u){return 0===r(t,n,s,u).length?"":c(a(e,t,e,t-o(t,s),!1,s).length,l("D",u))}(s,u,0,t,i,n)+r(u,t,i,n)+function(e,t,i,n,s,u){let h;h=r(t,n,s,u).length>0?n-o(n,s):t;const d=n,f=function(e,t,i,n,s,a){let l;return l=r(i,n,s,a).length>0?n-o(n,s):t,e<i&&l<=n||e>=i&&l<n?"C":"D"}(e,t,i,n,s,u);return c(a(e,h,i,d,"C"===f,s).length,l(f,u))}(s,u,e,t,i,n);let h;if(u===t)return h=s>e?"D":"C",c(Math.abs(s-e),l(h,n));h=u>t?"D":"C";const d=Math.abs(u-t);return c(function(e,t){return t.cols-e}(u>t?e:s,i)+(d-1)*i.cols+1+((u>t?s:e)-1),l(h,n))}},1296:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;const o=i(3787),s=i(2550),a=i(2223),l=i(6171),c=i(4725),u=i(8055),h=i(8460),d=i(844),f=i(2585),p="xterm-dom-renderer-owner-",g="xterm-rows",v="xterm-fg-",m="xterm-bg-",y="xterm-focus",_="xterm-selection";let x=1,b=t.DomRenderer=class extends d.Disposable{constructor(e,t,i,n,r,a,c,u,f,v){super(),this._element=e,this._screenElement=t,this._viewportElement=i,this._linkifier2=n,this._charSizeService=a,this._optionsService=c,this._bufferService=u,this._coreBrowserService=f,this._themeService=v,this._terminalClass=x++,this._rowElements=[],this.onRequestRedraw=this.register(new h.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(g),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(_),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,l.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((e=>this._injectCss(e)))),this._injectCss(this._themeService.colors),this._rowFactory=r.createInstance(o.DomRendererRowFactory,document),this._element.classList.add(p+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((e=>this._handleLinkHover(e)))),this.register(this._linkifier2.onHideLinkUnderline((e=>this._handleLinkLeave(e)))),this.register((0,d.toDisposable)((()=>{this._element.classList.remove(p+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new s.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const i of this._rowElements)i.style.width=`${this.dimensions.css.canvas.width}px`,i.style.height=`${this.dimensions.css.cell.height}px`,i.style.lineHeight=`${this.dimensions.css.cell.height}px`,i.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const t=`${this._terminalSelector} .${g} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${g} { color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${g} .xterm-dim { color: ${u.color.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% {"+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css}; } 50% { background-color: inherit;`+` color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${g}.${y} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${g}.${y} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${g} .xterm-cursor.xterm-cursor-block {`+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css};}`+`${this._terminalSelector} .${g} .xterm-cursor.xterm-cursor-outline {`+` outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}`+`${this._terminalSelector} .${g} .xterm-cursor.xterm-cursor-bar {`+` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}`+`${this._terminalSelector} .${g} .xterm-cursor.xterm-cursor-underline {`+` border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${_} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${_} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${_} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(const[i,n]of e.ansi.entries())t+=`${this._terminalSelector} .${v}${i} { color: ${n.css}; }${this._terminalSelector} .${v}${i}.xterm-dim { color: ${u.color.multiplyOpacity(n,.5).css}; }${this._terminalSelector} .${m}${i} { background-color: ${n.css}; }`;t+=`${this._terminalSelector} .${v}${a.INVERTED_DEFAULT_COLOR} { color: ${u.color.opaque(e.background).css}; }${this._terminalSelector} .${v}${a.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${u.color.multiplyOpacity(u.color.opaque(e.background),.5).css}; }${this._terminalSelector} .${m}${a.INVERTED_DEFAULT_COLOR} { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){const e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let i=this._rowElements.length;i<=t;i++){const e=document.createElement("div");this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(y)}handleFocus(){this._rowContainer.classList.add(y),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,i){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),!e||!t)return;const n=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(n,0),s=Math.min(r,this._bufferService.rows-1);if(o>=this._bufferService.rows||s<0)return;const a=document.createDocumentFragment();if(i){const i=e[0]>t[0];a.appendChild(this._createSelectionElement(o,i?t[0]:e[0],i?e[0]:t[0],s-o+1))}else{const i=n===o?e[0]:0,l=o===r?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,i,l));const c=s-o-1;if(a.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,c)),o!==s){const e=r===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(s,0,e))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,i,n=1){const r=document.createElement("div");return r.style.height=n*this.dimensions.css.cell.height+"px",r.style.top=e*this.dimensions.css.cell.height+"px",r.style.left=t*this.dimensions.css.cell.width+"px",r.style.width=this.dimensions.css.cell.width*(i-t)+"px",r}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const e of this._rowElements)e.replaceChildren()}renderRows(e,t){const i=this._bufferService.buffer,n=i.ybase+i.y,r=Math.min(i.x,this._bufferService.cols-1),o=this._optionsService.rawOptions.cursorBlink,s=this._optionsService.rawOptions.cursorStyle,a=this._optionsService.rawOptions.cursorInactiveStyle;for(let l=e;l<=t;l++){const e=l+i.ydisp,t=this._rowElements[l],c=i.lines.get(e);if(!t||!c)break;t.replaceChildren(...this._rowFactory.createRow(c,e,e===n,s,a,r,o,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${p}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,n,r,o){i<0&&(e=0),n<0&&(t=0);const s=this._bufferService.rows-1;i=Math.max(Math.min(i,s),0),n=Math.max(Math.min(n,s),0),r=Math.min(r,this._bufferService.cols);const a=this._bufferService.buffer,l=a.ybase+a.y,c=Math.min(a.x,r-1),u=this._optionsService.rawOptions.cursorBlink,h=this._optionsService.rawOptions.cursorStyle,d=this._optionsService.rawOptions.cursorInactiveStyle;for(let f=i;f<=n;++f){const s=f+a.ydisp,p=this._rowElements[f],g=a.lines.get(s);if(!p||!g)break;p.replaceChildren(...this._rowFactory.createRow(g,s,s===l,h,d,c,u,this.dimensions.css.cell.width,this._widthCache,o?f===i?e:0:-1,o?(f===n?t:r)-1:-1))}}};t.DomRenderer=b=n([r(4,f.IInstantiationService),r(5,c.ICharSizeService),r(6,f.IOptionsService),r(7,f.IBufferService),r(8,c.ICoreBrowserService),r(9,c.IThemeService)],b)},3787:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=void 0;const o=i(2223),s=i(643),a=i(511),l=i(2585),c=i(8055),u=i(4725),h=i(4269),d=i(6171),f=i(3734);let p=t.DomRendererRowFactory=class{constructor(e,t,i,n,r,o,s){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=n,this._coreService=r,this._decorationService=o,this._themeService=s,this._workCell=new a.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,t,i,n,r,a,l,u,d,p,v){const m=[],y=this._characterJoinerService.getJoinedCharacters(t),_=this._themeService.colors;let x,b=e.getNoBgTrimmedLength();i&&b<a+1&&(b=a+1);let w=0,S="",C=0,A=0,M=0,k=!1,T=0,I=!1,L=0;const E=[],D=-1!==p&&-1!==v;for(let O=0;O<b;O++){e.loadCell(O,this._workCell);let b=this._workCell.getWidth();if(0===b)continue;let P=!1,R=O,B=this._workCell;if(y.length>0&&O===y[0][0]){P=!0;const t=y.shift();B=new h.JoinedCellData(this._workCell,e.translateToString(!0,t[0],t[1]),t[1]-t[0]),R=t[1]-1,b=B.getWidth()}const N=this._isCellInSelection(O,t),z=i&&O===a,H=D&&O>=p&&O<=v;let F=!1;this._decorationService.forEachDecorationAtCell(O,t,void 0,(e=>{F=!0}));let V=B.getChars()||s.WHITESPACE_CELL_CHAR;if(" "===V&&(B.isUnderline()||B.isOverline())&&(V=" "),L=b*u-d.get(V,B.isBold(),B.isItalic()),x){if(w&&(N&&I||!N&&!I&&B.bg===C)&&(N&&I&&_.selectionForeground||B.fg===A)&&B.extended.ext===M&&H===k&&L===T&&!z&&!P&&!F){S+=V,w++;continue}w&&(x.textContent=S),x=this._document.createElement("span"),w=0,S=""}else x=this._document.createElement("span");if(C=B.bg,A=B.fg,M=B.extended.ext,k=H,T=L,I=N,P&&a>=O&&a<=R&&(a=O),!this._coreService.isCursorHidden&&z)if(E.push("xterm-cursor"),this._coreBrowserService.isFocused)l&&E.push("xterm-cursor-blink"),E.push("bar"===n?"xterm-cursor-bar":"underline"===n?"xterm-cursor-underline":"xterm-cursor-block");else if(r)switch(r){case"outline":E.push("xterm-cursor-outline");break;case"block":E.push("xterm-cursor-block");break;case"bar":E.push("xterm-cursor-bar");break;case"underline":E.push("xterm-cursor-underline")}if(B.isBold()&&E.push("xterm-bold"),B.isItalic()&&E.push("xterm-italic"),B.isDim()&&E.push("xterm-dim"),S=B.isInvisible()?s.WHITESPACE_CELL_CHAR:B.getChars()||s.WHITESPACE_CELL_CHAR,B.isUnderline()&&(E.push(`xterm-underline-${B.extended.underlineStyle}`)," "===S&&(S=" "),!B.isUnderlineColorDefault()))if(B.isUnderlineColorRGB())x.style.textDecorationColor=`rgb(${f.AttributeData.toColorRGB(B.getUnderlineColor()).join(",")})`;else{let e=B.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&B.isBold()&&e<8&&(e+=8),x.style.textDecorationColor=_.ansi[e].css}B.isOverline()&&(E.push("xterm-overline")," "===S&&(S=" ")),B.isStrikethrough()&&E.push("xterm-strikethrough"),H&&(x.style.textDecoration="underline");let j=B.getFgColor(),$=B.getFgColorMode(),W=B.getBgColor(),G=B.getBgColorMode();const U=!!B.isInverse();if(U){const e=j;j=W,W=e;const t=$;$=G,G=t}let q,Z,X,Y=!1;switch(this._decorationService.forEachDecorationAtCell(O,t,void 0,(e=>{"top"!==e.options.layer&&Y||(e.backgroundColorRGB&&(G=50331648,W=e.backgroundColorRGB.rgba>>8&16777215,q=e.backgroundColorRGB),e.foregroundColorRGB&&($=50331648,j=e.foregroundColorRGB.rgba>>8&16777215,Z=e.foregroundColorRGB),Y="top"===e.options.layer)})),!Y&&N&&(q=this._coreBrowserService.isFocused?_.selectionBackgroundOpaque:_.selectionInactiveBackgroundOpaque,W=q.rgba>>8&16777215,G=50331648,Y=!0,_.selectionForeground&&($=50331648,j=_.selectionForeground.rgba>>8&16777215,Z=_.selectionForeground)),Y&&E.push("xterm-decoration-top"),G){case 16777216:case 33554432:X=_.ansi[W],E.push(`xterm-bg-${W}`);break;case 50331648:X=c.rgba.toColor(W>>16,W>>8&255,255&W),this._addStyle(x,`background-color:#${g((W>>>0).toString(16),"0",6)}`);break;default:U?(X=_.foreground,E.push(`xterm-bg-${o.INVERTED_DEFAULT_COLOR}`)):X=_.background}switch(q||B.isDim()&&(q=c.color.multiplyOpacity(X,.5)),$){case 16777216:case 33554432:B.isBold()&&j<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(j+=8),this._applyMinimumContrast(x,X,_.ansi[j],B,q,void 0)||E.push(`xterm-fg-${j}`);break;case 50331648:const e=c.rgba.toColor(j>>16&255,j>>8&255,255&j);this._applyMinimumContrast(x,X,e,B,q,Z)||this._addStyle(x,`color:#${g(j.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(x,X,_.foreground,B,q,void 0)||U&&E.push(`xterm-fg-${o.INVERTED_DEFAULT_COLOR}`)}E.length&&(x.className=E.join(" "),E.length=0),z||P||F?x.textContent=S:w++,L!==this.defaultSpacing&&(x.style.letterSpacing=`${L}px`),m.push(x),O=R}return x&&w&&(x.textContent=S),m}_applyMinimumContrast(e,t,i,n,r,o){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,d.excludeFromContrastRatioDemands)(n.getCode()))return!1;const s=this._getContrastCache(n);let a;if(r||o||(a=s.getColor(t.rgba,i.rgba)),void 0===a){const e=this._optionsService.rawOptions.minimumContrastRatio/(n.isDim()?2:1);a=c.color.ensureContrastRatio(r||t,o||i,e),s.setColor((r||t).rgba,(o||i).rgba,null!=a?a:null)}return!!a&&(this._addStyle(e,`color:${a.css}`),!0)}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){const i=this._selectionStart,n=this._selectionEnd;return!(!i||!n)&&(this._columnSelectMode?i[0]<=n[0]?e>=i[0]&&t>=i[1]&&e<n[0]&&t<=n[1]:e<i[0]&&t>=i[1]&&e>=n[0]&&t<=n[1]:t>i[1]&&t<n[1]||i[1]===n[1]&&t===i[1]&&e>=i[0]&&e<n[0]||i[1]<n[1]&&t===n[1]&&e<n[0]||i[1]<n[1]&&t===i[1]&&e>=i[0])}};function g(e,t,i){for(;e.length<i;)e=t+e;return e}t.DomRendererRowFactory=p=n([r(1,u.ICharacterJoinerService),r(2,l.IOptionsService),r(3,u.ICoreBrowserService),r(4,l.ICoreService),r(5,l.IDecorationService),r(6,u.IThemeService)],p)},2550:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WidthCache=void 0,t.WidthCache=class{constructor(e){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const t=e.createElement("span"),i=e.createElement("span");i.style.fontWeight="bold";const n=e.createElement("span");n.style.fontStyle="italic";const r=e.createElement("span");r.style.fontWeight="bold",r.style.fontStyle="italic",this._measureElements=[t,i,n,r],this._container.appendChild(t),this._container.appendChild(i),this._container.appendChild(n),this._container.appendChild(r),e.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,i,n){e===this._font&&t===this._fontSize&&i===this._weight&&n===this._weightBold||(this._font=e,this._fontSize=t,this._weight=i,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${i}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${i}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(e,t,i){let n=0;if(!t&&!i&&1===e.length&&(n=e.charCodeAt(0))<256)return-9999!==this._flat[n]?this._flat[n]:this._flat[n]=this._measure(e,0);let r=e;t&&(r+="B"),i&&(r+="I");let o=this._holey.get(r);if(void 0===o){let n=0;t&&(n|=1),i&&(n|=2),o=this._measure(e,n),this._holey.set(r,o)}return o}_measure(e,t){const i=this._measureElements[t];return i.textContent=e.repeat(32),i.offsetWidth/32}}},2223:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const n=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=n.isFirefox||n.isLegacyEdge?"bottom":"ideographic"},6171:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;const o=i(2585),s=i(8460),a=i(844);let l=t.CharSizeService=class extends a.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this.register(new s.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new c(e,t,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};t.CharSizeService=l=n([r(2,o.IOptionsService)],l);class c{constructor(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const e={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return 0!==e.width&&0!==e.height&&(this._result.width=e.width/32,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;const o=i(3734),s=i(643),a=i(511),l=i(2585);class c extends o.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=c;let u=t.CharacterJoinerService=class e{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}register(e){const t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}getJoinedCharacters(e){if(0===this._characterJoiners.length)return[];const t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];const i=[],n=t.translateToString(!0);let r=0,o=0,a=0,l=t.getFg(0),c=t.getBg(0);for(let u=0;u<t.getTrimmedLength();u++)if(t.loadCell(u,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==l||this._workCell.bg!==c){if(u-r>1){const e=this._getJoinedRanges(n,a,o,t,r);for(let t=0;t<e.length;t++)i.push(e[t])}r=u,a=o,l=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||s.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-r>1){const e=this._getJoinedRanges(n,a,o,t,r);for(let t=0;t<e.length;t++)i.push(e[t])}return i}_getJoinedRanges(t,i,n,r,o){const s=t.substring(i,n);let a=[];try{a=this._characterJoiners[0].handler(s)}catch(e){console.error(e)}for(let l=1;l<this._characterJoiners.length;l++)try{const t=this._characterJoiners[l].handler(s);for(let i=0;i<t.length;i++)e._mergeRanges(a,t[i])}catch(e){console.error(e)}return this._stringRangesToCellRanges(a,r,o),a}_stringRangesToCellRanges(e,t,i){let n=0,r=!1,o=0,a=e[n];if(a){for(let l=i;l<this._bufferService.cols;l++){const i=t.getWidth(l),c=t.getString(l).length||s.WHITESPACE_CELL_CHAR.length;if(0!==i){if(!r&&a[0]<=o&&(a[0]=l,r=!0),a[1]<=o){if(a[1]=l,a=e[++n],!a)break;a[0]<=o?(a[0]=l,r=!0):r=!1}o+=c}}a&&(a[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let i=!1;for(let n=0;n<e.length;n++){const r=e[n];if(i){if(t[1]<=r[0])return e[n-1][1]=t[1],e;if(t[1]<=r[1])return e[n-1][1]=Math.max(t[1],r[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(t[1]<=r[0])return e.splice(n,0,t),e;if(t[1]<=r[1])return r[0]=Math.min(t[0],r[0]),e;t[0]<r[1]&&(r[0]=Math.min(t[0],r[0]),i=!0)}}return i?e[e.length-1][1]=t[1]:e.push(t),e}};t.CharacterJoinerService=u=n([r(0,l.IBufferService)],u)},5114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=class{constructor(e,t){this._textarea=e,this.window=t,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}},8934:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;const o=i(4725),s=i(9806);let a=t.MouseService=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,n,r){return(0,s.getCoords)(window,e,t,i,n,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,r)}getMouseReportCoords(e,t){const i=(0,s.getCoordsRelativeToElement)(window,e,t);if(this._charSizeService.hasValidSize)return i[0]=Math.min(Math.max(i[0],0),this._renderService.dimensions.css.canvas.width-1),i[1]=Math.min(Math.max(i[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(i[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(i[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(i[0]),y:Math.floor(i[1])}}};t.MouseService=a=n([r(0,o.IRenderService),r(1,o.ICharSizeService)],a)},3230:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;const o=i(3656),s=i(6193),a=i(5596),l=i(4725),c=i(8460),u=i(844),h=i(7226),d=i(2585);let f=t.RenderService=class extends u.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(e,t,i,n,r,l,d,f){if(super(),this._rowCount=e,this._charSizeService=n,this._renderer=this.register(new u.MutableDisposable),this._pausedResizeTask=new h.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new c.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new c.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new c.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new c.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new s.RenderDebouncer(d.window,((e,t)=>this._renderRows(e,t))),this.register(this._renderDebouncer),this._screenDprMonitor=new a.ScreenDprMonitor(d.window),this._screenDprMonitor.setListener((()=>this.handleDevicePixelRatioChange())),this.register(this._screenDprMonitor),this.register(l.onResize((()=>this._fullRefresh()))),this.register(l.buffers.onBufferActivate((()=>{var e;return null===(e=this._renderer.value)||void 0===e?void 0:e.clear()}))),this.register(i.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(r.onDecorationRegistered((()=>this._fullRefresh()))),this.register(r.onDecorationRemoved((()=>this._fullRefresh()))),this.register(i.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],(()=>{this.clear(),this.handleResize(l.cols,l.rows),this._fullRefresh()}))),this.register(i.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(l.buffer.y,l.buffer.y,!0)))),this.register((0,o.addDisposableDomListener)(d.window,"resize",(()=>this.handleDevicePixelRatioChange()))),this.register(f.onChangeColors((()=>this._fullRefresh()))),"IntersectionObserver"in d.window){const e=new d.window.IntersectionObserver((e=>this._handleIntersectionChange(e[e.length-1])),{threshold:0});e.observe(t),this.register({dispose:()=>e.disconnect()})}}_handleIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer.value&&(e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value.onRequestRedraw((e=>this.refreshRows(e.start,e.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer.value&&(null===(t=(e=this._renderer.value).clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>this._renderer.value.handleResize(e,t))):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCharSizeChanged()}handleBlur(){var e;null===(e=this._renderer.value)||void 0===e||e.handleBlur()}handleFocus(){var e;null===(e=this._renderer.value)||void 0===e||e.handleFocus()}handleSelectionChanged(e,t,i){var n;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,null===(n=this._renderer.value)||void 0===n||n.handleSelectionChanged(e,t,i)}handleCursorMove(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCursorMove()}clear(){var e;null===(e=this._renderer.value)||void 0===e||e.clear()}};t.RenderService=f=n([r(2,d.IOptionsService),r(3,l.ICharSizeService),r(4,d.IDecorationService),r(5,d.IBufferService),r(6,l.ICoreBrowserService),r(7,l.IThemeService)],f)},9312:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;const o=i(9806),s=i(9504),a=i(456),l=i(4725),c=i(8460),u=i(844),h=i(6114),d=i(4841),f=i(511),p=i(2585),g=String.fromCharCode(160),v=new RegExp(g,"g");let m=t.SelectionService=class extends u.Disposable{constructor(e,t,i,n,r,o,s,l,h){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=n,this._coreService=r,this._mouseService=o,this._optionsService=s,this._renderService=l,this._coreBrowserService=h,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new f.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new c.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new c.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new c.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new c.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((e=>this._handleTrim(e))),this.register(this._bufferService.buffers.onBufferActivate((e=>this._handleBufferActivate(e)))),this.enable(),this._model=new a.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,u.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";const i=this._bufferService.buffer,n=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";const r=e[0]<t[0]?e[0]:t[0],o=e[0]<t[0]?t[0]:e[0];for(let s=e[1];s<=t[1];s++){const e=i.translateBufferLineToString(s,!0,r,o);n.push(e)}}else{const r=e[1]===t[1]?t[0]:void 0;n.push(i.translateBufferLineToString(e[1],!0,e[0],r));for(let o=e[1]+1;o<=t[1]-1;o++){const e=i.lines.get(o),t=i.translateBufferLineToString(o,!0);(null==e?void 0:e.isWrapped)?n[n.length-1]+=t:n.push(t)}if(e[1]!==t[1]){const e=i.lines.get(t[1]),r=i.translateBufferLineToString(t[1],!0,0,t[0]);e&&e.isWrapped?n[n.length-1]+=r:n.push(r)}}return n.map((e=>e.replace(v," "))).join(h.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),h.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){const t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!!(i&&n&&t)&&this._areCoordsInSelection(t,i,n)}isCellInSelection(e,t){const i=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!(!i||!n)&&this._areCoordsInSelection([e,t],i,n)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]<i[1]||t[1]===i[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<i[0]||t[1]<i[1]&&e[1]===i[1]&&e[0]<i[0]||t[1]<i[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){var i,n;const r=null===(n=null===(i=this._linkifier.currentLink)||void 0===i?void 0:i.link)||void 0===n?void 0:n.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=(0,d.getRangeLength)(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const o=this._getMouseBufferCoords(e);return!!o&&(this._selectWordAt(o,t),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){const t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,o.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1];const i=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-50),50),t/=50,t/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return h.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){const t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(h.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;const t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const i=this._bufferService.buffer;if(this._model.selectionEnd[1]<i.lines.length){const e=i.lines.get(this._model.selectionEnd[1]);e&&0===e.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){const t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){const e=(0,s.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((e=>this._handleTrim(e)))}_convertViewportColToCharacterIndex(e,t){let i=t;for(let n=0;t>=n;n++){const r=e.loadCell(n,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:r>1&&t!==n&&(i+=r-1)}return i}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,i=!0,n=!0){if(e[0]>=this._bufferService.cols)return;const r=this._bufferService.buffer,o=r.lines.get(e[1]);if(!o)return;const s=r.translateBufferLineToString(e[1],!1);let a=this._convertViewportColToCharacterIndex(o,e[0]),l=a;const c=e[0]-a;let u=0,h=0,d=0,f=0;if(" "===s.charAt(a)){for(;a>0&&" "===s.charAt(a-1);)a--;for(;l<s.length&&" "===s.charAt(l+1);)l++}else{let t=e[0],i=e[0];0===o.getWidth(t)&&(u++,t--),2===o.getWidth(i)&&(h++,i++);const n=o.getString(i).length;for(n>1&&(f+=n-1,l+=n-1);t>0&&a>0&&!this._isCharWordSeparator(o.loadCell(t-1,this._workCell));){o.loadCell(t-1,this._workCell);const e=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,t--):e>1&&(d+=e-1,a-=e-1),a--,t--}for(;i<o.length&&l+1<s.length&&!this._isCharWordSeparator(o.loadCell(i+1,this._workCell));){o.loadCell(i+1,this._workCell);const e=this._workCell.getChars().length;2===this._workCell.getWidth()?(h++,i++):e>1&&(f+=e-1,l+=e-1),l++,i++}}l++;let p=a+c-u+d,g=Math.min(this._bufferService.cols,l-a+u+h-d-f);if(t||""!==s.slice(a,l).trim()){if(i&&0===p&&32!==o.getCodePoint(0)){const t=r.lines.get(e[1]-1);if(t&&o.isWrapped&&32!==t.getCodePoint(this._bufferService.cols-1)){const t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){const e=this._bufferService.cols-t.start;p-=e,g+=e}}}if(n&&p+g===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){const t=r.lines.get(e[1]+1);if((null==t?void 0:t.isWrapped)&&32!==t.getCodePoint(0)){const t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(g+=t.length)}}return{start:p,length:g}}}_selectWordAt(e,t){const i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(e){const t=this._getWordAt(e,!0);if(t){let i=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){const t=this._bufferService.buffer.getWrappedRangeForLine(e),i={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,d.getRangeLength)(i,this._bufferService.cols)}};t.SelectionService=m=n([r(3,p.IBufferService),r(4,p.ICoreService),r(5,l.IMouseService),r(6,p.IOptionsService),r(7,l.IRenderService),r(8,l.ICoreBrowserService)],m)},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;const n=i(8343);t.ICharSizeService=(0,n.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,n.createDecorator)("CoreBrowserService"),t.IMouseService=(0,n.createDecorator)("MouseService"),t.IRenderService=(0,n.createDecorator)("RenderService"),t.ISelectionService=(0,n.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,n.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,n.createDecorator)("ThemeService")},6731:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;const o=i(7239),s=i(8055),a=i(8460),l=i(844),c=i(2585),u=s.css.toColor("#ffffff"),h=s.css.toColor("#000000"),d=s.css.toColor("#ffffff"),f=s.css.toColor("#000000"),p={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const e=[s.css.toColor("#2e3436"),s.css.toColor("#cc0000"),s.css.toColor("#4e9a06"),s.css.toColor("#c4a000"),s.css.toColor("#3465a4"),s.css.toColor("#75507b"),s.css.toColor("#06989a"),s.css.toColor("#d3d7cf"),s.css.toColor("#555753"),s.css.toColor("#ef2929"),s.css.toColor("#8ae234"),s.css.toColor("#fce94f"),s.css.toColor("#729fcf"),s.css.toColor("#ad7fa8"),s.css.toColor("#34e2e2"),s.css.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){const n=t[i/36%6|0],r=t[i/6%6|0],o=t[i%6];e.push({css:s.channels.toCss(n,r,o),rgba:s.channels.toRgba(n,r,o)})}for(let i=0;i<24;i++){const t=8+10*i;e.push({css:s.channels.toCss(t,t,t),rgba:s.channels.toRgba(t,t,t)})}return e})());let g=t.ThemeService=class extends l.Disposable{get colors(){return this._colors}constructor(e){super(),this._optionsService=e,this._contrastCache=new o.ColorContrastCache,this._halfContrastCache=new o.ColorContrastCache,this._onChangeColors=this.register(new a.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:u,background:h,cursor:d,cursorAccent:f,selectionForeground:void 0,selectionBackgroundTransparent:p,selectionBackgroundOpaque:s.color.blend(h,p),selectionInactiveBackgroundTransparent:p,selectionInactiveBackgroundOpaque:s.color.blend(h,p),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(e={}){const i=this._colors;if(i.foreground=v(e.foreground,u),i.background=v(e.background,h),i.cursor=v(e.cursor,d),i.cursorAccent=v(e.cursorAccent,f),i.selectionBackgroundTransparent=v(e.selectionBackground,p),i.selectionBackgroundOpaque=s.color.blend(i.background,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundTransparent=v(e.selectionInactiveBackground,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundOpaque=s.color.blend(i.background,i.selectionInactiveBackgroundTransparent),i.selectionForeground=e.selectionForeground?v(e.selectionForeground,s.NULL_COLOR):void 0,i.selectionForeground===s.NULL_COLOR&&(i.selectionForeground=void 0),s.color.isOpaque(i.selectionBackgroundTransparent)){const e=.3;i.selectionBackgroundTransparent=s.color.opacity(i.selectionBackgroundTransparent,e)}if(s.color.isOpaque(i.selectionInactiveBackgroundTransparent)){const e=.3;i.selectionInactiveBackgroundTransparent=s.color.opacity(i.selectionInactiveBackgroundTransparent,e)}if(i.ansi=t.DEFAULT_ANSI_COLORS.slice(),i.ansi[0]=v(e.black,t.DEFAULT_ANSI_COLORS[0]),i.ansi[1]=v(e.red,t.DEFAULT_ANSI_COLORS[1]),i.ansi[2]=v(e.green,t.DEFAULT_ANSI_COLORS[2]),i.ansi[3]=v(e.yellow,t.DEFAULT_ANSI_COLORS[3]),i.ansi[4]=v(e.blue,t.DEFAULT_ANSI_COLORS[4]),i.ansi[5]=v(e.magenta,t.DEFAULT_ANSI_COLORS[5]),i.ansi[6]=v(e.cyan,t.DEFAULT_ANSI_COLORS[6]),i.ansi[7]=v(e.white,t.DEFAULT_ANSI_COLORS[7]),i.ansi[8]=v(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),i.ansi[9]=v(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),i.ansi[10]=v(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),i.ansi[11]=v(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),i.ansi[12]=v(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),i.ansi[13]=v(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),i.ansi[14]=v(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),i.ansi[15]=v(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){const n=Math.min(i.ansi.length-16,e.extendedAnsi.length);for(let r=0;r<n;r++)i.ansi[r+16]=v(e.extendedAnsi[r],t.DEFAULT_ANSI_COLORS[r+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(void 0!==e)switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}else for(let t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t]}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function v(e,t){if(void 0!==e)try{return s.css.toColor(e)}catch(e){}return t}t.ThemeService=g=n([r(0,c.IOptionsService)],g)},6349:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;const n=i(8460),r=i(844);class o extends r.Disposable{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this.register(new n.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new n.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new n.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;const t=new Array(e);for(let i=0;i<Math.min(e,this.length);i++)t[i]=this._array[this._getCyclicIndex(i)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...i){if(t){for(let i=e;i<this._length-t;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let n=this._length-1;n>=e;n--)this._array[this._getCyclicIndex(n+i.length)]=this._array[this._getCyclicIndex(n)];for(let n=0;n<i.length;n++)this._array[this._getCyclicIndex(e+n)]=i[n];if(i.length&&this.onInsertEmitter.fire({index:e,amount:i.length}),this._length+i.length>this._maxLength){const e=this._length+i.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=i.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(let r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));const n=e+t+i-this._length;if(n>0)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let n=0;n<t;n++)this.set(e+n+i,this.get(e+n))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}}t.CircularList=o},1439:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;const n=Array.isArray(t)?[]:{};for(const r in t)n[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return n}},8055:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;const n=i(6114);let r=0,o=0,s=0,a=0;var l,c,u,h,d;function f(e){const t=e.toString(16);return t.length<2?"0"+t:t}function p(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}t.NULL_COLOR={css:"#00000000",rgba:0},function(e){e.toCss=function(e,t,i,n){return void 0!==n?`#${f(e)}${f(t)}${f(i)}${f(n)}`:`#${f(e)}${f(t)}${f(i)}`},e.toRgba=function(e,t,i,n=255){return(e<<24|t<<16|i<<8|n)>>>0}}(l||(t.channels=l={})),function(e){function t(e,t){return a=Math.round(255*t),[r,o,s]=d.toChannels(e.rgba),{css:l.toCss(r,o,s,a),rgba:l.toRgba(r,o,s,a)}}e.blend=function(e,t){if(a=(255&t.rgba)/255,1===a)return{css:t.css,rgba:t.rgba};const i=t.rgba>>24&255,n=t.rgba>>16&255,c=t.rgba>>8&255,u=e.rgba>>24&255,h=e.rgba>>16&255,d=e.rgba>>8&255;return r=u+Math.round((i-u)*a),o=h+Math.round((n-h)*a),s=d+Math.round((c-d)*a),{css:l.toCss(r,o,s),rgba:l.toRgba(r,o,s)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){const n=d.ensureContrastRatio(e.rgba,t.rgba,i);if(n)return d.toColor(n>>24&255,n>>16&255,n>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[r,o,s]=d.toChannels(t),{css:l.toCss(r,o,s),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return a=255&e.rgba,t(e,a*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(c||(t.color=c={})),function(e){let t,i;if(!n.isNode){const e=document.createElement("canvas");e.width=1,e.height=1;const n=e.getContext("2d",{willReadFrequently:!0});n&&(t=n,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return r=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),s=parseInt(e.slice(3,4).repeat(2),16),d.toColor(r,o,s);case 5:return r=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),s=parseInt(e.slice(3,4).repeat(2),16),a=parseInt(e.slice(4,5).repeat(2),16),d.toColor(r,o,s,a);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const n=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(n)return r=parseInt(n[1]),o=parseInt(n[2]),s=parseInt(n[3]),a=Math.round(255*(void 0===n[5]?1:parseFloat(n[5]))),d.toColor(r,o,s,a);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[r,o,s,a]=t.getImageData(0,0,1,1).data,255!==a)throw new Error("css.toColor: Unsupported css format");return{rgba:l.toRgba(r,o,s,a),css:e}}}(u||(t.css=u={})),function(e){function t(e,t,i){const n=e/255,r=t/255,o=i/255;return.2126*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(h||(t.rgb=h={})),function(e){function t(e,t,i){const n=e>>24&255,r=e>>16&255,o=e>>8&255;let s=t>>24&255,a=t>>16&255,l=t>>8&255,c=p(h.relativeLuminance2(s,a,l),h.relativeLuminance2(n,r,o));for(;c<i&&(s>0||a>0||l>0);)s-=Math.max(0,Math.ceil(.1*s)),a-=Math.max(0,Math.ceil(.1*a)),l-=Math.max(0,Math.ceil(.1*l)),c=p(h.relativeLuminance2(s,a,l),h.relativeLuminance2(n,r,o));return(s<<24|a<<16|l<<8|255)>>>0}function i(e,t,i){const n=e>>24&255,r=e>>16&255,o=e>>8&255;let s=t>>24&255,a=t>>16&255,l=t>>8&255,c=p(h.relativeLuminance2(s,a,l),h.relativeLuminance2(n,r,o));for(;c<i&&(s<255||a<255||l<255);)s=Math.min(255,s+Math.ceil(.1*(255-s))),a=Math.min(255,a+Math.ceil(.1*(255-a))),l=Math.min(255,l+Math.ceil(.1*(255-l))),c=p(h.relativeLuminance2(s,a,l),h.relativeLuminance2(n,r,o));return(s<<24|a<<16|l<<8|255)>>>0}e.ensureContrastRatio=function(e,n,r){const o=h.relativeLuminance(e>>8),s=h.relativeLuminance(n>>8);if(p(o,s)<r){if(s<o){const s=t(e,n,r),a=p(o,h.relativeLuminance(s>>8));if(a<r){const t=i(e,n,r);return a>p(o,h.relativeLuminance(t>>8))?s:t}return s}const a=i(e,n,r),l=p(o,h.relativeLuminance(a>>8));if(l<r){const i=t(e,n,r);return l>p(o,h.relativeLuminance(i>>8))?a:i}return a}},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i,n){return{css:l.toCss(e,t,i,n),rgba:l.toRgba(e,t,i,n)}}}(d||(t.rgba=d={})),t.toPaddedHex=f,t.contrastRatio=p},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;const n=i(844),r=i(2585),o=i(4348),s=i(7866),a=i(744),l=i(7302),c=i(6975),u=i(8460),h=i(1753),d=i(1480),f=i(7994),p=i(9282),g=i(5435),v=i(5981),m=i(2660);let y=!1;class _ extends n.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new u.EventEmitter),this._onScroll.event((e=>{var t;null===(t=this._onScrollApi)||void 0===t||t.fire(e.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(const t in e)this.optionsService.options[t]=e[t]}constructor(e){super(),this._windowsWrappingHeuristics=this.register(new n.MutableDisposable),this._onBinary=this.register(new u.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new u.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new u.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new u.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new u.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new u.EventEmitter),this._instantiationService=new o.InstantiationService,this.optionsService=this.register(new l.OptionsService(e)),this._instantiationService.setService(r.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(r.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(s.LogService)),this._instantiationService.setService(r.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(c.CoreService)),this._instantiationService.setService(r.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(h.CoreMouseService)),this._instantiationService.setService(r.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(d.UnicodeService)),this._instantiationService.setService(r.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(f.CharsetService),this._instantiationService.setService(r.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(m.OscLinkService),this._instantiationService.setService(r.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new g.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,u.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,u.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,u.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,u.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new v.WriteBuffer(((e,t)=>this._inputHandler.parse(e,t)))),this.register((0,u.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!y&&(this._logService.warn("writeSync is unreliable and will be removed soon."),y=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){const t=e-this._bufferService.buffer.ydisp;0!==t&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1;const t=this.optionsService.rawOptions.windowsPty;t&&void 0!==t.buildNumber&&void 0!==t.buildNumber?e=!!("conpty"===t.backend&&t.buildNumber<21376):this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const e=[];e.push(this.onLineFeed(p.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},(()=>((0,p.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,n.toDisposable)((()=>{for(const t of e)t.dispose()}))}}}t.CoreTerminal=_},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)}})),this._event}fire(e,t){const i=[];for(let n=0;n<this._listeners.length;n++)i.push(this._listeners[n]);for(let n=0;n<i.length;n++)i[n].call(void 0,e,t)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},t.forwardEvent=function(e,t){return e((e=>t.fire(e)))}},5435:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;const o=i(2584),s=i(7116),a=i(2015),l=i(844),c=i(482),u=i(8437),h=i(8460),d=i(643),f=i(511),p=i(3734),g=i(2585),v=i(6242),m=i(6351),y=i(5941),_={"(":0,")":1,"*":2,"+":3,"-":1,".":2},x=131072;function b(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var w;!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(w||(t.WindowsOptionsReportType=w={}));let S=0;class C extends l.Disposable{getAttrData(){return this._curAttrData}constructor(e,t,i,n,r,l,d,p,g=new a.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=n,this._optionsService=r,this._oscLinkService=l,this._coreMouseService=d,this._unicodeService=p,this._parser=g,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new c.StringToUtf32,this._utf8Decoder=new c.Utf8ToUtf32,this._workCell=new f.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new h.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new h.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new h.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new h.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new h.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new h.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new h.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new h.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new h.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new h.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new h.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new h.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new h.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new A(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._parser.setCsiHandlerFallback(((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})})),this._parser.setEscHandlerFallback((e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})})),this._parser.setExecuteHandlerFallback((e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})})),this._parser.setOscHandlerFallback(((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})})),this._parser.setDcsHandlerFallback(((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})})),this._parser.setPrintHandler(((e,t,i)=>this.print(e,t,i))),this._parser.registerCsiHandler({final:"@"},(e=>this.insertChars(e))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(e=>this.scrollLeft(e))),this._parser.registerCsiHandler({final:"A"},(e=>this.cursorUp(e))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(e=>this.scrollRight(e))),this._parser.registerCsiHandler({final:"B"},(e=>this.cursorDown(e))),this._parser.registerCsiHandler({final:"C"},(e=>this.cursorForward(e))),this._parser.registerCsiHandler({final:"D"},(e=>this.cursorBackward(e))),this._parser.registerCsiHandler({final:"E"},(e=>this.cursorNextLine(e))),this._parser.registerCsiHandler({final:"F"},(e=>this.cursorPrecedingLine(e))),this._parser.registerCsiHandler({final:"G"},(e=>this.cursorCharAbsolute(e))),this._parser.registerCsiHandler({final:"H"},(e=>this.cursorPosition(e))),this._parser.registerCsiHandler({final:"I"},(e=>this.cursorForwardTab(e))),this._parser.registerCsiHandler({final:"J"},(e=>this.eraseInDisplay(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(e=>this.eraseInDisplay(e,!0))),this._parser.registerCsiHandler({final:"K"},(e=>this.eraseInLine(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(e=>this.eraseInLine(e,!0))),this._parser.registerCsiHandler({final:"L"},(e=>this.insertLines(e))),this._parser.registerCsiHandler({final:"M"},(e=>this.deleteLines(e))),this._parser.registerCsiHandler({final:"P"},(e=>this.deleteChars(e))),this._parser.registerCsiHandler({final:"S"},(e=>this.scrollUp(e))),this._parser.registerCsiHandler({final:"T"},(e=>this.scrollDown(e))),this._parser.registerCsiHandler({final:"X"},(e=>this.eraseChars(e))),this._parser.registerCsiHandler({final:"Z"},(e=>this.cursorBackwardTab(e))),this._parser.registerCsiHandler({final:"`"},(e=>this.charPosAbsolute(e))),this._parser.registerCsiHandler({final:"a"},(e=>this.hPositionRelative(e))),this._parser.registerCsiHandler({final:"b"},(e=>this.repeatPrecedingCharacter(e))),this._parser.registerCsiHandler({final:"c"},(e=>this.sendDeviceAttributesPrimary(e))),this._parser.registerCsiHandler({prefix:">",final:"c"},(e=>this.sendDeviceAttributesSecondary(e))),this._parser.registerCsiHandler({final:"d"},(e=>this.linePosAbsolute(e))),this._parser.registerCsiHandler({final:"e"},(e=>this.vPositionRelative(e))),this._parser.registerCsiHandler({final:"f"},(e=>this.hVPosition(e))),this._parser.registerCsiHandler({final:"g"},(e=>this.tabClear(e))),this._parser.registerCsiHandler({final:"h"},(e=>this.setMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(e=>this.setModePrivate(e))),this._parser.registerCsiHandler({final:"l"},(e=>this.resetMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(e=>this.resetModePrivate(e))),this._parser.registerCsiHandler({final:"m"},(e=>this.charAttributes(e))),this._parser.registerCsiHandler({final:"n"},(e=>this.deviceStatus(e))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(e=>this.deviceStatusPrivate(e))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(e=>this.softReset(e))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(e=>this.setCursorStyle(e))),this._parser.registerCsiHandler({final:"r"},(e=>this.setScrollRegion(e))),this._parser.registerCsiHandler({final:"s"},(e=>this.saveCursor(e))),this._parser.registerCsiHandler({final:"t"},(e=>this.windowOptions(e))),this._parser.registerCsiHandler({final:"u"},(e=>this.restoreCursor(e))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(e=>this.insertColumns(e))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(e=>this.deleteColumns(e))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(e=>this.selectProtected(e))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(e=>this.requestMode(e,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(e=>this.requestMode(e,!1))),this._parser.setExecuteHandler(o.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(o.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(o.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(o.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(o.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(o.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(o.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(o.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(o.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(o.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(o.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(o.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new v.OscHandler((e=>(this.setTitle(e),this.setIconName(e),!0)))),this._parser.registerOscHandler(1,new v.OscHandler((e=>this.setIconName(e)))),this._parser.registerOscHandler(2,new v.OscHandler((e=>this.setTitle(e)))),this._parser.registerOscHandler(4,new v.OscHandler((e=>this.setOrReportIndexedColor(e)))),this._parser.registerOscHandler(8,new v.OscHandler((e=>this.setHyperlink(e)))),this._parser.registerOscHandler(10,new v.OscHandler((e=>this.setOrReportFgColor(e)))),this._parser.registerOscHandler(11,new v.OscHandler((e=>this.setOrReportBgColor(e)))),this._parser.registerOscHandler(12,new v.OscHandler((e=>this.setOrReportCursorColor(e)))),this._parser.registerOscHandler(104,new v.OscHandler((e=>this.restoreIndexedColor(e)))),this._parser.registerOscHandler(110,new v.OscHandler((e=>this.restoreFgColor(e)))),this._parser.registerOscHandler(111,new v.OscHandler((e=>this.restoreBgColor(e)))),this._parser.registerOscHandler(112,new v.OscHandler((e=>this.restoreCursorColor(e)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const o in s.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:o},(()=>this.selectCharset("("+o))),this._parser.registerEscHandler({intermediates:")",final:o},(()=>this.selectCharset(")"+o))),this._parser.registerEscHandler({intermediates:"*",final:o},(()=>this.selectCharset("*"+o))),this._parser.registerEscHandler({intermediates:"+",final:o},(()=>this.selectCharset("+"+o))),this._parser.registerEscHandler({intermediates:"-",final:o},(()=>this.selectCharset("-"+o))),this._parser.registerEscHandler({intermediates:".",final:o},(()=>this.selectCharset("."+o))),this._parser.registerEscHandler({intermediates:"/",final:o},(()=>this.selectCharset("/"+o)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((e=>(this._logService.error("Parsing error: ",e),e))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler(((e,t)=>this.requestStatusString(e,t))))}_preserveStack(e,t,i,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=n}_logSlowResolvingAsync(e){this._logService.logLevel<=g.LogLevelEnum.WARN&&Promise.race([e,new Promise(((e,t)=>setTimeout((()=>t("#SLOW_TIMEOUT")),5e3)))]).catch((e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,n=this._activeBuffer.x,r=this._activeBuffer.y,o=0;const s=this._parseStack.paused;if(s){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;n=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>x&&(o=this._parseStack.position+x)}if(this._logService.logLevel<=g.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?` "${e}"`:` "${Array.prototype.map.call(e,(e=>String.fromCharCode(e))).join("")}"`),"string"==typeof e?e.split("").map((e=>e.charCodeAt(0))):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<x&&(this._parseBuffer=new Uint32Array(Math.min(e.length,x))),s||this._dirtyRowTracker.clearRange(),e.length>x)for(let a=o;a<e.length;a+=x){const t=a+x<e.length?a+x:e.length,o="string"==typeof e?this._stringDecoder.decode(e.substring(a,t),this._parseBuffer):this._utf8Decoder.decode(e.subarray(a,t),this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,o))return this._preserveStack(n,r,o,a),this._logSlowResolvingAsync(i),i}else if(!s){const t="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,t))return this._preserveStack(n,r,t,0),this._logSlowResolvingAsync(i),i}this._activeBuffer.x===n&&this._activeBuffer.y===r||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowTracker.start,this._dirtyRowTracker.end)}print(e,t,i){let n,r;const o=this._charsetService.charset,s=this._optionsService.rawOptions.screenReaderMode,a=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,u=this._coreService.modes.insertMode,h=this._curAttrData;let f=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&i-t>0&&2===f.getWidth(this._activeBuffer.x-1)&&f.setCellFromCodePoint(this._activeBuffer.x-1,0,1,h.fg,h.bg,h.extended);for(let p=t;p<i;++p){if(n=e[p],r=this._unicodeService.wcwidth(n),n<127&&o){const e=o[String.fromCharCode(n)];e&&(n=e.charCodeAt(0))}if(s&&this._onA11yChar.fire((0,c.stringFromCodePoint)(n)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),r||!this._activeBuffer.x){if(this._activeBuffer.x+r-1>=a)if(l){for(;this._activeBuffer.x<a;)f.setCellFromCodePoint(this._activeBuffer.x++,0,1,h.fg,h.bg,h.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),f=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===r)continue;if(u&&(f.insertCells(this._activeBuffer.x,r,this._activeBuffer.getNullCell(h),h),2===f.getWidth(a-1)&&f.setCellFromCodePoint(a-1,d.NULL_CELL_CODE,d.NULL_CELL_WIDTH,h.fg,h.bg,h.extended)),f.setCellFromCodePoint(this._activeBuffer.x++,n,r,h.fg,h.bg,h.extended),r>0)for(;--r;)f.setCellFromCodePoint(this._activeBuffer.x++,0,0,h.fg,h.bg,h.extended)}else f.getWidth(this._activeBuffer.x-1)?f.addCodepointToCell(this._activeBuffer.x-1,n):f.addCodepointToCell(this._activeBuffer.x-2,n)}i-t>0&&(f.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<a&&i-t>0&&0===f.getWidth(this._activeBuffer.x)&&!f.hasContent(this._activeBuffer.x)&&f.setCellFromCodePoint(this._activeBuffer.x,0,1,h.fg,h.bg,h.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(e=>!b(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e)))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new m.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new v.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){const t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){const t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){const t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){const t=e.params[0];return 1===t&&(this._curAttrData.bg|=536870912),2!==t&&0!==t||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,n=!1,r=!1){const o=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);o.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),r),n&&(o.isWrapped=!1)}_resetBufferLine(e,t=!1){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i&&(i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1)}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i<this._bufferService.rows;i++)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(i);break;case 1:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowTracker.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 3:const e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const i=this._activeBuffer.ybase+this._activeBuffer.y,n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-n+1;for(;t--;)this._activeBuffer.lines.splice(r-1,1),this._activeBuffer.lines.splice(i,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const i=this._activeBuffer.ybase+this._activeBuffer.y;let n;for(n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,n=this._bufferService.rows-1+this._activeBuffer.ybase-n;t--;)this._activeBuffer.lines.splice(i,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();const t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();const t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(u.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);e.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),e.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);e.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),e.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);e.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),e.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);e.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),e.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();const t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){if(!this._parser.precedingCodepoint)return!0;const t=e.params[0]||1,i=new Uint32Array(t);for(let n=0;n<t;++n)i[n]=this._parser.precedingCodepoint;return this.print(i,0,i.length),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(o.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(o.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(o.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(o.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(o.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),this._charsetService.setgCharset(1,s.DEFAULT_CHARSET),this._charsetService.setgCharset(2,s.DEFAULT_CHARSET),this._charsetService.setgCharset(3,s.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[t]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(e,t){const i=this._coreService.decPrivateModes,{activeProtocol:n,activeEncoding:r}=this._coreMouseService,s=this._coreService,{buffers:a,cols:l}=this._bufferService,{active:c,alt:u}=a,h=this._optionsService.rawOptions,d=e=>e?1:2,f=e.params[0];return p=f,g=t?2===f?4:4===f?d(s.modes.insertMode):12===f?3:20===f?d(h.convertEol):0:1===f?d(i.applicationCursorKeys):3===f?h.windowOptions.setWinLines?80===l?2:132===l?1:0:0:6===f?d(i.origin):7===f?d(i.wraparound):8===f?3:9===f?d("X10"===n):12===f?d(h.cursorBlink):25===f?d(!s.isCursorHidden):45===f?d(i.reverseWraparound):66===f?d(i.applicationKeypad):67===f?4:1e3===f?d("VT200"===n):1002===f?d("DRAG"===n):1003===f?d("ANY"===n):1004===f?d(i.sendFocus):1005===f?4:1006===f?d("SGR"===r):1015===f?4:1016===f?d("SGR_PIXELS"===r):1048===f?1:47===f||1047===f||1049===f?d(c===u):2004===f?d(i.bracketedPasteMode):0,s.triggerDataEvent(`${o.C0.ESC}[${t?"":"?"}${p};${g}$y`),!0;var p,g}_updateAttrColor(e,t,i,n,r){return 2===t?(e|=50331648,e&=-16777216,e|=p.AttributeData.fromColorRGB([i,n,r])):5===t&&(e&=-50331904,e|=33554432|255&i),e}_extractColor(e,t,i){const n=[0,0,-1,0,0,0];let r=0,o=0;do{if(n[o+r]=e.params[t+o],e.hasSubParams(t+o)){const i=e.getSubParams(t+o);let s=0;do{5===n[1]&&(r=1),n[o+s+1+r]=i[s]}while(++s<i.length&&s+o+1+r<n.length);break}if(5===n[1]&&o+r>=2||2===n[1]&&o+r>=5)break;n[1]&&(r=1)}while(++o+t<e.length&&o+r<n.length);for(let s=2;s<n.length;++s)-1===n[s]&&(n[s]=0);switch(n[0]){case 38:i.fg=this._updateAttrColor(i.fg,n[1],n[3],n[4],n[5]);break;case 48:i.bg=this._updateAttrColor(i.bg,n[1],n[3],n[4],n[5]);break;case 58:i.extended=i.extended.clone(),i.extended.underlineColor=this._updateAttrColor(i.extended.underlineColor,n[1],n[3],n[4],n[5])}return o}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=u.DEFAULT_ATTR_DATA.fg,e.bg=u.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;const t=e.length;let i;const n=this._curAttrData;for(let r=0;r<t;r++)i=e.params[r],i>=30&&i<=37?(n.fg&=-50331904,n.fg|=16777216|i-30):i>=40&&i<=47?(n.bg&=-50331904,n.bg|=16777216|i-40):i>=90&&i<=97?(n.fg&=-50331904,n.fg|=16777224|i-90):i>=100&&i<=107?(n.bg&=-50331904,n.bg|=16777224|i-100):0===i?this._processSGR0(n):1===i?n.fg|=134217728:3===i?n.bg|=67108864:4===i?(n.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,n)):5===i?n.fg|=536870912:7===i?n.fg|=67108864:8===i?n.fg|=1073741824:9===i?n.fg|=2147483648:2===i?n.bg|=134217728:21===i?this._processUnderline(2,n):22===i?(n.fg&=-134217729,n.bg&=-134217729):23===i?n.bg&=-67108865:24===i?(n.fg&=-268435457,this._processUnderline(0,n)):25===i?n.fg&=-536870913:27===i?n.fg&=-67108865:28===i?n.fg&=-1073741825:29===i?n.fg&=2147483647:39===i?(n.fg&=-67108864,n.fg|=16777215&u.DEFAULT_ATTR_DATA.fg):49===i?(n.bg&=-67108864,n.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):38===i||48===i||58===i?r+=this._extractColor(e,r,n):53===i?n.bg|=1073741824:55===i?n.bg&=-1073741825:59===i?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):100===i?(n.fg&=-67108864,n.fg|=16777215&u.DEFAULT_ATTR_DATA.fg,n.bg&=-67108864,n.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${o.C0.ESC}[0n`);break;case 6:const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${o.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${o.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){const t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const i=t%2==1;return this._optionsService.options.cursorBlink=i,!0}setScrollRegion(e){const t=e.params[0]||1;let i;return(e.length<2||(i=e.params[1])>this._bufferService.rows||0===i)&&(i=this._bufferService.rows),i>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(!b(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;const t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(w.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(w.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${o.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){const t=[],i=e.split(";");for(;i.length>1;){const e=i.shift(),n=i.shift();if(/^\d+$/.exec(e)){const i=parseInt(e);if(M(i))if("?"===n)t.push({type:0,index:i});else{const e=(0,y.parseColor)(n);e&&t.push({type:1,index:i,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){const t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();const i=e.split(":");let n;const r=i.findIndex((e=>e.startsWith("id=")));return-1!==r&&(n=i[r].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:n,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){const i=e.split(";");for(let n=0;n<i.length&&!(t>=this._specialColors.length);++n,++t)if("?"===i[n])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{const e=(0,y.parseColor)(i[n]);e&&this._onColor.fire([{type:1,index:this._specialColors[t],color:e}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;const t=[],i=e.split(";");for(let n=0;n<i.length;++n)if(/^\d+$/.exec(i[n])){const e=parseInt(i[n]);M(e)&&t.push({type:2,index:e})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,s.DEFAULT_CHARSET),!0}selectCharset(e){return 2!==e.length?(this.selectDefaultCharset(),!0):("/"===e[0]||this._charsetService.setgCharset(_[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){const e=new f.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){const i=this._activeBuffer.ybase+this._activeBuffer.y+t,n=this._activeBuffer.lines.get(i);n&&(n.fill(e),n.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){const i=this._bufferService.buffer,n=this._optionsService.rawOptions;return(e=>(this._coreService.triggerDataEvent(`${o.C0.ESC}${e}${o.C0.ESC}\\`),!0))('"q'===e?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===e?'P1$r61;1"p':"r"===e?`P1$r${i.scrollTop+1};${i.scrollBottom+1}r`:"m"===e?"P1$r0m":" q"===e?`P1$r${{block:2,underline:4,bar:6}[n.cursorStyle]-(n.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}t.InputHandler=C;let A=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(S=e,e=t,t=S),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function M(e){return 0<=e&&e<256}A=n([r(0,g.IBufferService)],A)},844:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,n,r,o){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(n,r,o)}get(e,t,i,n){var r;return null===(r=this._data.get(e,t))||void 0===r?void 0:r.get(i,n)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;const i=t.isNode?"node":navigator.userAgent,n=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(n),t.isIpad="iPad"===n,t.isIphone="iPhone"===n,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(n),t.isLinux=n.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e)),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0===this._array.length)return!1;const t=this._getKey(e);if(void 0===t)return!1;if(i=this._search(t),-1===i)return!1;if(this._getKey(this._array[i])!==t)return!1;do{if(this._array[i]===e)return this._array.splice(i,1),!0}while(++i<this._array.length&&this._getKey(this._array[i])===t);return!1}*getKeyIterator(e){if(0!==this._array.length&&(i=this._search(e),!(i<0||i>=this._array.length)&&this._getKey(this._array[i])===e))do{yield this._array[i]}while(++i<this._array.length&&this._getKey(this._array[i])===e)}forEachByKey(e,t){if(0!==this._array.length&&(i=this._search(e),!(i<0||i>=this._array.length)&&this._getKey(this._array[i])===e))do{t(this._array[i])}while(++i<this._array.length&&this._getKey(this._array[i])===e)}values(){return[...this._array].values()}_search(e){let t=0,i=this._array.length-1;for(;i>=t;){let n=t+i>>1;const r=this._getKey(this._array[n]);if(r>e)i=n-1;else{if(!(r<e)){for(;n>0&&this._getKey(this._array[n-1])===e;)n--;return n}t=n+1}}return t}}},7226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const n=i(6114);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(e){this._idleCallback=void 0;let t=0,i=0,n=e.timeRemaining(),r=0;for(;this._i<this._tasks.length;){if(t=Date.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,Date.now()-t),i=Math.max(t,i),r=e.timeRemaining(),1.5*i>r)return n-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(n-t))}ms`),void this._start();n=r}this.clear()}}class o extends r{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=o,t.IdleTaskQueue=!n.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:o,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;const n=i(643);t.updateWindowsModeWrappedState=function(e){const t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),i=null==t?void 0:t.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&i&&(r.isWrapped=i[n.CHAR_DATA_CODE_INDEX]!==n.NULL_CELL_CODE&&i[n.CHAR_DATA_CODE_INDEX]!==n.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new n}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=i;class n{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}clone(){return new n(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=n},9092:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;const n=i(6349),r=i(7226),o=i(3734),s=i(8437),a=i(4634),l=i(511),c=i(643),u=i(4863),h=i(7116);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=s.DEFAULT_ATTR_DATA.clone(),this.savedCharset=h.DEFAULT_CHARSET,this.markers=[],this._nullCell=l.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]),this._whitespaceCell=l.CellData.fromCharData([0,c.WHITESPACE_CELL_CHAR,c.WHITESPACE_CELL_WIDTH,c.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new r.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new n.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new o.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new o.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new s.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;const i=e+this._optionsService.rawOptions.scrollback;return i>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i}fillViewportRows(e){if(0===this.lines.length){void 0===e&&(e=s.DEFAULT_ATTR_DATA);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new n.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){const i=this.getNullCell(s.DEFAULT_ATTR_DATA);let n=0;const r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._cols<e)for(let t=0;t<this.lines.length;t++)n+=+this.lines.get(t).resize(e,i);let o=0;if(this._rows<t)for(let n=this._rows;n<t;n++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||void 0!==this._optionsService.rawOptions.windowsPty.backend||void 0!==this._optionsService.rawOptions.windowsPty.buildNumber?this.lines.push(new s.BufferLine(e,i)):this.ybase>0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(new s.BufferLine(e,i)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(r<this.lines.maxLength){const e=this.lines.length-r;e>0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),o&&(this.y+=o),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let o=0;o<this.lines.length;o++)n+=+this.lines.get(o).resize(e,i);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),n>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){const e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&"conpty"===e.backend&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){const i=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(s.DEFAULT_ATTR_DATA));if(i.length>0){const n=(0,a.reflowLargerCreateNewLayout)(this.lines,i);(0,a.reflowLargerApplyNewLayout)(this.lines,n.layout),this._reflowLargerAdjustViewport(e,t,n.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){const n=this.getNullCell(s.DEFAULT_ATTR_DATA);let r=i;for(;r-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new s.BufferLine(e,n))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-i,0)}_reflowSmaller(e,t){const i=this.getNullCell(s.DEFAULT_ATTR_DATA),n=[];let r=0;for(let o=this.lines.length-1;o>=0;o--){let l=this.lines.get(o);if(!l||!l.isWrapped&&l.getTrimmedLength()<=e)continue;const c=[l];for(;l.isWrapped&&o>0;)l=this.lines.get(--o),c.unshift(l);const u=this.ybase+this.y;if(u>=o&&u<o+c.length)continue;const h=c[c.length-1].getTrimmedLength(),d=(0,a.reflowSmallerGetNewLineLengths)(c,this._cols,e),f=d.length-c.length;let p;p=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+f):Math.max(0,this.lines.length-this.lines.maxLength+f);const g=[];for(let e=0;e<f;e++){const e=this.getBlankLine(s.DEFAULT_ATTR_DATA,!0);g.push(e)}g.length>0&&(n.push({start:o+c.length+r,newLines:g}),r+=g.length),c.push(...g);let v=d.length-1,m=d[v];0===m&&(v--,m=d[v]);let y=c.length-f-1,_=h;for(;y>=0;){const e=Math.min(_,m);if(void 0===c[v])break;if(c[v].copyCellsFrom(c[y],_-e,m-e,e,!0),m-=e,0===m&&(v--,m=d[v]),_-=e,0===_){y--;const e=Math.max(y,0);_=(0,a.getWrappedLineTrimmedLength)(c,e,this._cols)}}for(let t=0;t<c.length;t++)d[t]<e&&c[t].setCell(d[t],i);let x=f-p;for(;x-- >0;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+r)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+f,this.ybase+t-1)}if(n.length>0){const e=[],t=[];for(let n=0;n<this.lines.length;n++)t.push(this.lines.get(n));const i=this.lines.length;let o=i-1,s=0,a=n[s];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+r);let l=0;for(let h=Math.min(this.lines.maxLength-1,i+r-1);h>=0;h--)if(a&&a.start>o+l){for(let e=a.newLines.length-1;e>=0;e--)this.lines.set(h--,a.newLines[e]);h++,e.push({index:o+1,amount:a.newLines.length}),l+=a.newLines.length,a=n[++s]}else this.lines.set(h,t[o--]);let c=0;for(let n=e.length-1;n>=0;n--)e[n].index+=c,this.lines.onInsertEmitter.fire(e[n]),c+=e[n].amount;const u=Math.max(0,i+r-this.lines.maxLength);u>0&&this.lines.onTrimEmitter.fire(u)}}translateBufferLineToString(e,t,i=0,n){const r=this.lines.get(e);return r?r.translateToString(t,i,n):""}getWrappedRangeForLine(e){let t=e,i=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+1<this.lines.length&&this.lines.get(i+1).isWrapped;)i++;return{first:t,last:i}}setupTabStops(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose(),this.markers.splice(e--,1);this._isClearing=!1}addMarker(e){const t=new u.Marker(e);return this.markers.push(t),t.register(this.lines.onTrim((e=>{t.line-=e,t.line<0&&t.dispose()}))),t.register(this.lines.onInsert((e=>{t.line>=e.index&&(t.line+=e.amount)}))),t.register(this.lines.onDelete((e=>{t.line>=e.index&&t.line<e.index+e.amount&&t.dispose(),t.line>e.index&&(t.line-=e.amount)}))),t.register(t.onDispose((()=>this._removeMarker(t)))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;const n=i(3734),r=i(511),o=i(643),s=i(482);t.DEFAULT_ATTR_DATA=Object.freeze(new n.AttributeData);let a=0;class l{constructor(e,t,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const n=t||r.CellData.fromCharData([0,o.NULL_CELL_CHAR,o.NULL_CELL_WIDTH,o.NULL_CELL_CODE]);for(let r=0;r<e;++r)this.setCell(r,n);this.length=e}get(e){const t=this._data[3*e+0],i=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:i?(0,s.stringFromCodePoint)(i):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[o.CHAR_DATA_ATTR_INDEX],t[o.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[o.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[o.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[o.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,s.stringFromCodePoint)(2097151&t):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return a=3*e,t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,i,n,r,o){268435456&r&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=n,this._data[3*e+2]=r}addCodepointToCell(e,t){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,s.stringFromCodePoint)(t):(2097151&i?(this._combined[e]=(0,s.stringFromCodePoint)(2097151&i)+(0,s.stringFromCodePoint)(t),i&=-2097152,i|=2097152):i=t|1<<22,this._data[3*e+0]=i)}insertCells(e,t,i,o){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==o?void 0:o.fg)||0,(null==o?void 0:o.bg)||0,(null==o?void 0:o.extended)||new n.ExtendedAttrs),t<this.length-e){const n=new r.CellData;for(let i=this.length-e-t-1;i>=0;--i)this.setCell(e+t+i,this.loadCell(e+i,n));for(let r=0;r<t;++r)this.setCell(e+r,i)}else for(let n=e;n<this.length;++n)this.setCell(n,i);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==o?void 0:o.fg)||0,(null==o?void 0:o.bg)||0,(null==o?void 0:o.extended)||new n.ExtendedAttrs)}deleteCells(e,t,i,o){if(e%=this.length,t<this.length-e){const n=new r.CellData;for(let i=0;i<this.length-e-t;++i)this.setCell(e+i,this.loadCell(e+t+i,n));for(let e=this.length-t;e<this.length;++e)this.setCell(e,i)}else for(let n=e;n<this.length;++n)this.setCell(n,i);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==o?void 0:o.fg)||0,(null==o?void 0:o.bg)||0,(null==o?void 0:o.extended)||new n.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==o?void 0:o.fg)||0,(null==o?void 0:o.bg)||0,(null==o?void 0:o.extended)||new n.ExtendedAttrs)}replaceCells(e,t,i,r,o=!1){if(o)for(e&&2===this.getWidth(e-1)&&!this.isProtected(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new n.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&!this.isProtected(t)&&this.setCellFromCodePoint(t,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new n.ExtendedAttrs);e<t&&e<this.length;)this.isProtected(e)||this.setCell(e,i),e++;else for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new n.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new n.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,i)}resize(e,t){if(e===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const i=3*e;if(e>this.length){if(this._data.buffer.byteLength>=4*i)this._data=new Uint32Array(this._data.buffer,0,i);else{const e=new Uint32Array(i);e.set(this._data),this._data=e}for(let i=this.length;i<e;++i)this.setCell(i,t)}else{this._data=this._data.subarray(0,i);const t=Object.keys(this._combined);for(let i=0;i<t.length;i++){const n=parseInt(t[i],10);n>=e&&delete this._combined[n]}const n=Object.keys(this._extendedAttrs);for(let i=0;i<n.length;i++){const t=parseInt(n[i],10);t>=e&&delete this._extendedAttrs[t]}}return this.length=e,4*i*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const e=new Uint32Array(this._data.length);return e.set(this._data),this._data=e,1}return 0}fill(e,t=!1){if(t)for(let i=0;i<this.length;++i)this.isProtected(i)||this.setCell(i,e);else{this._combined={},this._extendedAttrs={};for(let t=0;t<this.length;++t)this.setCell(t,e)}}copyFrom(e){this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={};for(const t in e._combined)this._combined[t]=e._combined[t];this._extendedAttrs={};for(const t in e._extendedAttrs)this._extendedAttrs[t]=e._extendedAttrs[t];this.isWrapped=e.isWrapped}clone(){const e=new l(0);e._data=new Uint32Array(this._data),e.length=this.length;for(const t in this._combined)e._combined[t]=this._combined[t];for(const t in this._extendedAttrs)e._extendedAttrs[t]=this._extendedAttrs[t];return e.isWrapped=this.isWrapped,e}getTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,t,i,n,r){const o=e._data;if(r)for(let a=n-1;a>=0;a--){for(let e=0;e<3;e++)this._data[3*(i+a)+e]=o[3*(t+a)+e];268435456&o[3*(t+a)+2]&&(this._extendedAttrs[i+a]=e._extendedAttrs[t+a])}else for(let a=0;a<n;a++){for(let e=0;e<3;e++)this._data[3*(i+a)+e]=o[3*(t+a)+e];268435456&o[3*(t+a)+2]&&(this._extendedAttrs[i+a]=e._extendedAttrs[t+a])}const s=Object.keys(e._combined);for(let a=0;a<s.length;a++){const n=parseInt(s[a],10);n>=t&&(this._combined[n-t+i]=e._combined[n])}}translateToString(e=!1,t=0,i=this.length){e&&(i=Math.min(i,this.getTrimmedLength()));let n="";for(;t<i;){const e=this._data[3*t+0],i=2097151&e;n+=2097152&e?this._combined[t]:i?(0,s.stringFromCodePoint)(i):o.WHITESPACE_CELL_CHAR,t+=e>>22||1}return n}}t.BufferLine=l},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function i(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();const n=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),r=2===e[t+1].getWidth(0);return n&&r?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,n,r,o){const s=[];for(let a=0;a<e.length-1;a++){let l=a,c=e.get(++l);if(!c.isWrapped)continue;const u=[e.get(a)];for(;l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(r>=a&&r<l){a+=u.length-1;continue}let h=0,d=i(u,h,t),f=1,p=0;for(;f<u.length;){const e=i(u,f,t),r=e-p,s=n-d,a=Math.min(r,s);u[h].copyCellsFrom(u[f],p,d,a,!1),d+=a,d===n&&(h++,d=0),p+=a,p===e&&(f++,p=0),0===d&&0!==h&&2===u[h-1].getWidth(n-1)&&(u[h].copyCellsFrom(u[h-1],n-1,d++,1,!1),u[h-1].setCell(n-1,o))}u[h].replaceCells(d,n,o);let g=0;for(let e=u.length-1;e>0&&(e>h||0===u[e].getTrimmedLength());e--)g++;g>0&&(s.push(a+u.length-g),s.push(g)),a+=u.length-1}return s},t.reflowLargerCreateNewLayout=function(e,t){const i=[];let n=0,r=t[n],o=0;for(let s=0;s<e.length;s++)if(r===s){const i=t[++n];e.onDeleteEmitter.fire({index:s-o,amount:i}),s+=i-1,o+=i,r=t[++n]}else i.push(s);return{layout:i,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){const i=[];for(let n=0;n<t.length;n++)i.push(e.get(t[n]));for(let n=0;n<i.length;n++)e.set(n,i[n]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,n){const r=[],o=e.map(((n,r)=>i(e,r,t))).reduce(((e,t)=>e+t));let s=0,a=0,l=0;for(;l<o;){if(o-l<n){r.push(o-l);break}s+=n;const c=i(e,a,t);s>c&&(s-=c,a++);const u=2===e[a].getWidth(s-1);u&&s--;const h=u?n-1:n;r.push(h),l+=h}return r},t.getWrappedLineTrimmedLength=i},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;const n=i(8460),r=i(844),o=i(9092);class s extends r.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new n.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new o.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new o.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=s},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const n=i(482),r=i(643),o=i(3734);class s extends o.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new o.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new s;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,n.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){const i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const n=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(i-55296)+n-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=s},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;const n=i(8460),r=i(844);class o{get id(){return this._id}constructor(e){this.line=e,this.isDisposed=!1,this._disposables=[],this._id=o._nextId++,this._onDispose=this.register(new n.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,r.disposeArray)(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}}t.Marker=o,o._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var i,n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(i||(t.C0=i={})),function(e){e.PAD="",e.HOP="",e.BPH="",e.NBH="",e.IND="",e.NEL="
",e.SSA="",e.ESA="",e.HTS="",e.HTJ="",e.VTS="",e.PLD="",e.PLU="",e.RI="",e.SS2="",e.SS3="",e.DCS="",e.PU1="",e.PU2="",e.STS="",e.CCH="",e.MW="",e.SPA="",e.EPA="",e.SOS="",e.SGCI="",e.SCI="",e.CSI="",e.ST="",e.OSC="",e.PM="",e.APC=""}(n||(t.C1=n={})),function(e){e.ST=`${i.ESC}\\`}(r||(t.C1_ESCAPED=r={}))},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;const n=i(2584),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,o){const s={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?s.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?s.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?s.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(s.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B");break;case 8:if(e.altKey){s.key=n.C0.ESC+n.C0.DEL;break}s.key=n.C0.DEL;break;case 9:if(e.shiftKey){s.key=n.C0.ESC+"[Z";break}s.key=n.C0.HT,s.cancel=!0;break;case 13:s.key=e.altKey?n.C0.ESC+n.C0.CR:n.C0.CR,s.cancel=!0;break;case 27:s.key=n.C0.ESC,e.altKey&&(s.key=n.C0.ESC+n.C0.ESC),s.cancel=!0;break;case 37:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"D",s.key===n.C0.ESC+"[1;3D"&&(s.key=n.C0.ESC+(i?"b":"[1;5D"))):s.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"C",s.key===n.C0.ESC+"[1;3C"&&(s.key=n.C0.ESC+(i?"f":"[1;5C"))):s.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"A",i||s.key!==n.C0.ESC+"[1;3A"||(s.key=n.C0.ESC+"[1;5A")):s.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"B",i||s.key!==n.C0.ESC+"[1;3B"||(s.key=n.C0.ESC+"[1;5B")):s.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(s.key=n.C0.ESC+"[2~");break;case 46:s.key=a?n.C0.ESC+"[3;"+(a+1)+"~":n.C0.ESC+"[3~";break;case 36:s.key=a?n.C0.ESC+"[1;"+(a+1)+"H":t?n.C0.ESC+"OH":n.C0.ESC+"[H";break;case 35:s.key=a?n.C0.ESC+"[1;"+(a+1)+"F":t?n.C0.ESC+"OF":n.C0.ESC+"[F";break;case 33:e.shiftKey?s.type=2:e.ctrlKey?s.key=n.C0.ESC+"[5;"+(a+1)+"~":s.key=n.C0.ESC+"[5~";break;case 34:e.shiftKey?s.type=3:e.ctrlKey?s.key=n.C0.ESC+"[6;"+(a+1)+"~":s.key=n.C0.ESC+"[6~";break;case 112:s.key=a?n.C0.ESC+"[1;"+(a+1)+"P":n.C0.ESC+"OP";break;case 113:s.key=a?n.C0.ESC+"[1;"+(a+1)+"Q":n.C0.ESC+"OQ";break;case 114:s.key=a?n.C0.ESC+"[1;"+(a+1)+"R":n.C0.ESC+"OR";break;case 115:s.key=a?n.C0.ESC+"[1;"+(a+1)+"S":n.C0.ESC+"OS";break;case 116:s.key=a?n.C0.ESC+"[15;"+(a+1)+"~":n.C0.ESC+"[15~";break;case 117:s.key=a?n.C0.ESC+"[17;"+(a+1)+"~":n.C0.ESC+"[17~";break;case 118:s.key=a?n.C0.ESC+"[18;"+(a+1)+"~":n.C0.ESC+"[18~";break;case 119:s.key=a?n.C0.ESC+"[19;"+(a+1)+"~":n.C0.ESC+"[19~";break;case 120:s.key=a?n.C0.ESC+"[20;"+(a+1)+"~":n.C0.ESC+"[20~";break;case 121:s.key=a?n.C0.ESC+"[21;"+(a+1)+"~":n.C0.ESC+"[21~";break;case 122:s.key=a?n.C0.ESC+"[23;"+(a+1)+"~":n.C0.ESC+"[23~";break;case 123:s.key=a?n.C0.ESC+"[24;"+(a+1)+"~":n.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(i&&!o||!e.altKey||e.metaKey)!i||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?s.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(s.key=n.C0.US),"@"===e.key&&(s.key=n.C0.NUL)):65===e.keyCode&&(s.type=1);else{const t=r[e.keyCode],i=null==t?void 0:t[e.shiftKey?1:0];if(i)s.key=n.C0.ESC+i;else if(e.keyCode>=65&&e.keyCode<=90){const t=e.ctrlKey?e.keyCode-64:e.keyCode+32;let i=String.fromCharCode(t);e.shiftKey&&(i=i.toUpperCase()),s.key=n.C0.ESC+i}else if(32===e.keyCode)s.key=n.C0.ESC+(e.ctrlKey?n.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),s.key=n.C0.ESC+t,s.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?s.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?s.key=n.C0.NUL:e.keyCode>=51&&e.keyCode<=55?s.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?s.key=n.C0.DEL:219===e.keyCode?s.key=n.C0.ESC:220===e.keyCode?s.key=n.C0.FS:221===e.keyCode&&(s.key=n.C0.GS)}return s}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let n="";for(let r=t;r<i;++r){let t=e[r];t>65535?(t-=65536,n+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):n+=String.fromCharCode(t)}return n},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let n=0,r=0;if(this._interim){const i=e.charCodeAt(r++);56320<=i&&i<=57343?t[n++]=1024*(this._interim-55296)+i-56320+65536:(t[n++]=this._interim,t[n++]=i),this._interim=0}for(let o=r;o<i;++o){const r=e.charCodeAt(o);if(55296<=r&&r<=56319){if(++o>=i)return this._interim=r,n;const s=e.charCodeAt(o);56320<=s&&s<=57343?t[n++]=1024*(r-55296)+s-56320+65536:(t[n++]=r,t[n++]=s)}else 65279!==r&&(t[n++]=r)}return n}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let n,r,o,s,a=0,l=0,c=0;if(this.interim[0]){let n=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let o,s=0;for(;(o=63&this.interim[++s])&&s<4;)r<<=6,r|=o;const l=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,u=l-s;for(;c<u;){if(c>=i)return 0;if(o=e[c++],128!=(192&o)){c--,n=!0;break}this.interim[s++]=o,r<<=6,r|=63&o}n||(2===l?r<128?c--:t[a++]=r:3===l?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}const u=i-4;let h=c;for(;h<i;){for(;!(!(h<u)||128&(n=e[h])||128&(r=e[h+1])||128&(o=e[h+2])||128&(s=e[h+3]));)t[a++]=n,t[a++]=r,t[a++]=o,t[a++]=s,h+=4;if(n=e[h++],n<128)t[a++]=n;else if(192==(224&n)){if(h>=i)return this.interim[0]=n,a;if(r=e[h++],128!=(192&r)){h--;continue}if(l=(31&n)<<6|63&r,l<128){h--;continue}t[a++]=l}else if(224==(240&n)){if(h>=i)return this.interim[0]=n,a;if(r=e[h++],128!=(192&r)){h--;continue}if(h>=i)return this.interim[0]=n,this.interim[1]=r,a;if(o=e[h++],128!=(192&o)){h--;continue}if(l=(15&n)<<12|(63&r)<<6|63&o,l<2048||l>=55296&&l<=57343||65279===l)continue;t[a++]=l}else if(240==(248&n)){if(h>=i)return this.interim[0]=n,a;if(r=e[h++],128!=(192&r)){h--;continue}if(h>=i)return this.interim[0]=n,this.interim[1]=r,a;if(o=e[h++],128!=(192&o)){h--;continue}if(h>=i)return this.interim[0]=n,this.interim[1]=r,this.interim[2]=o,a;if(s=e[h++],128!=(192&s)){h--;continue}if(l=(7&n)<<18|(63&r)<<12|(63&o)<<6|63&s,l<65536||l>1114111)continue;t[a++]=l}}return a}}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;const i=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],n=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let r;t.UnicodeV6=class{constructor(){if(this.version="6",!r){r=new Uint8Array(65536),r.fill(1),r[0]=0,r.fill(0,1,32),r.fill(0,127,160),r.fill(2,4352,4448),r[9001]=2,r[9002]=2,r.fill(2,11904,42192),r[12351]=1,r.fill(2,44032,55204),r.fill(2,63744,64256),r.fill(2,65040,65050),r.fill(2,65072,65136),r.fill(2,65280,65377),r.fill(2,65504,65511);for(let e=0;e<i.length;++e)r.fill(0,i[e][0],i[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?r[e]:function(e,t){let i,n=0,r=t.length-1;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else{if(!(e<t[i][0]))return!0;r=i-1}return!1}(e,n)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;const n=i(8460),r=i(844);class o extends r.Disposable{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new n.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(void 0!==t&&this._syncCalls>t)return void(this._syncCalls=0);if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let i;for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){const i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],n=this._action(e,t);if(n){const e=e=>Date.now()-i>=12?setTimeout((()=>this._innerWrite(0,e))):this._innerWrite(i,e);return void n.catch((e=>(queueMicrotask((()=>{throw e})),Promise.resolve(!1)))).then(e)}const r=this._callbacks[this._bufferOffset];if(r&&r(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-i>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=o},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;const i=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,n=/^[\da-f]+$/;function r(e,t){const i=e.toString(16),n=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}t.parseColor=function(e){if(!e)return;let t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);const e=i.exec(t);if(e){const t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),n.exec(t)&&[3,6,9,12].includes(t.length))){const e=t.length/3,i=[0,0,0];for(let n=0;n<3;++n){const r=parseInt(t.slice(e*n,e*n+e),16);i[n]=1===e?r<<4:2===e?r:3===e?r>>4:r>>8}return i}},t.toRgbString=function(e,t=16){const[i,n,o]=e;return`rgb:${r(i,t)}/${r(n,t)}/${r(o,t)}`}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;const n=i(482),r=i(8742),o=i(5770),s=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=s,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=s}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=s,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||s,this._active.length)for(let i=this._active.length-1;i>=0;i--)this._active[i].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(e,t,i){if(this._active.length)for(let n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,i);else this._handlerFb(this._ident,"PUT",(0,n.utf32ToString)(e,t,i))}unhook(e,t=!0){if(this._active.length){let i=!1,n=this._active.length-1,r=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;n>=0&&(i=this._active[n].unhook(e),!0!==i);n--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,i;n--}for(;n>=0;n--)if(i=this._active[n].unhook(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,i}else this._handlerFb(this._ident,"UNHOOK",e);this._active=s,this._ident=0}};const a=new r.Params;a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,n.utf32ToString)(e,t,i),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then((e=>(this._params=a,this._data="",this._hitLimit=!1,e)));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;const n=i(844),r=i(8742),o=i(6242),s=i(6351);class a{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,n){this.table[t<<8|e]=i<<4|n}addMany(e,t,i,n){for(let r=0;r<e.length;r++)this.table[t<<8|e[r]]=i<<4|n}}t.TransitionTable=a;const l=160;t.VT500_TRANSITION_TABLE=function(){const e=new a(4095),t=Array.apply(null,Array(256)).map(((e,t)=>t)),i=(e,i)=>t.slice(e,i),n=i(32,127),r=i(0,24);r.push(25),r.push.apply(r,i(28,32));const o=i(0,14);let s;for(s in e.setDefault(1,0),e.addMany(n,0,2,0),o)e.addMany([24,26,153,154],s,3,0),e.addMany(i(128,144),s,3,0),e.addMany(i(144,152),s,3,0),e.add(156,s,0,0),e.add(27,s,11,1),e.add(157,s,4,8),e.addMany([152,158,159],s,0,7),e.add(155,s,11,3),e.add(144,s,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(n,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(i(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(n,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(i(64,127),3,7,0),e.addMany(i(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(i(48,60),4,8,4),e.addMany(i(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(i(32,64),6,0,6),e.add(127,6,0,6),e.addMany(i(64,127),6,0,0),e.addMany(i(32,48),3,9,5),e.addMany(i(32,48),5,9,5),e.addMany(i(48,64),5,0,6),e.addMany(i(64,127),5,7,0),e.addMany(i(32,48),4,9,5),e.addMany(i(32,48),1,9,2),e.addMany(i(32,48),2,9,2),e.addMany(i(48,127),2,10,0),e.addMany(i(48,80),1,10,0),e.addMany(i(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(i(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(i(28,32),9,0,9),e.addMany(i(32,48),9,9,12),e.addMany(i(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(i(32,128),11,0,11),e.addMany(i(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(i(28,32),10,0,10),e.addMany(i(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(i(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(i(28,32),12,0,12),e.addMany(i(32,48),12,9,12),e.addMany(i(48,64),12,0,11),e.addMany(i(64,127),12,12,13),e.addMany(i(64,127),10,12,13),e.addMany(i(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(n,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(l,0,2,0),e.add(l,8,5,8),e.add(l,6,0,6),e.add(l,11,0,11),e.add(l,13,13,13),e}();class c extends n.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new r.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,n.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new o.OscParser),this._dcsParser=this.register(new s.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(e,t=[64,126]){let i=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=e.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let t=0;t<e.intermediates.length;++t){const n=e.intermediates.charCodeAt(t);if(32>n||n>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=n}}if(1!==e.final.length)throw new Error("final must be a single byte");const n=e.final.charCodeAt(0);if(t[0]>n||n>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=n,i}identToString(e){const t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){const i=this._identifier(e,[48,126]);void 0===this._escHandlers[i]&&(this._escHandlers[i]=[]);const n=this._escHandlers[i];return n.push(t),{dispose:()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){const i=this._identifier(e);void 0===this._csiHandlers[i]&&(this._csiHandlers[i]=[]);const n=this._csiHandlers[i];return n.push(t),{dispose:()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,n,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=n,this._parseStack.chunkPos=r}parse(e,t,i){let n,r=0,o=0,s=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,s=this._parseStack.chunkPos+1;else{if(void 0===i||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const t=this._parseStack.handlers;let o=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===i&&o>-1)for(;o>=0&&(n=t[o](this._params),!0!==n);o--)if(n instanceof Promise)return this._parseStack.handlerPos=o,n;this._parseStack.handlers=[];break;case 4:if(!1===i&&o>-1)for(;o>=0&&(n=t[o](),!0!==n);o--)if(n instanceof Promise)return this._parseStack.handlerPos=o,n;this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],n=this._dcsParser.unhook(24!==r&&26!==r,i),n)return n;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],n=this._oscParser.end(24!==r&&26!==r,i),n)return n;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,s=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let a=s;a<t;++a){switch(r=e[a],o=this._transitions.table[this.currentState<<8|(r<160?r:l)],o>>4){case 2:for(let n=a+1;;++n){if(n>=t||(r=e[n])<32||r>126&&r<l){this._printHandler(e,a,n),a=n-1;break}if(++n>=t||(r=e[n])<32||r>126&&r<l){this._printHandler(e,a,n),a=n-1;break}if(++n>=t||(r=e[n])<32||r>126&&r<l){this._printHandler(e,a,n),a=n-1;break}if(++n>=t||(r=e[n])<32||r>126&&r<l){this._printHandler(e,a,n),a=n-1;break}}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:a,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const i=this._csiHandlers[this._collect<<8|r];let s=i?i.length-1:-1;for(;s>=0&&(n=i[s](this._params),!0!==n);s--)if(n instanceof Promise)return this._preserveStack(3,i,s,o,a),n;s<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingCodepoint=0;break;case 8:do{switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}}while(++a<t&&(r=e[a])>47&&r<60);a--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:const c=this._escHandlers[this._collect<<8|r];let u=c?c.length-1:-1;for(;u>=0&&(n=c[u](),!0!==n);u--)if(n instanceof Promise)return this._preserveStack(4,c,u,o,a),n;u<0&&this._escHandlerFb(this._collect<<8|r),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let n=a+1;;++n)if(n>=t||24===(r=e[n])||26===r||27===r||r>127&&r<l){this._dcsParser.put(e,a,n),a=n-1;break}break;case 14:if(n=this._dcsParser.unhook(24!==r&&26!==r),n)return this._preserveStack(6,[],0,o,a),n;27===r&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(let n=a+1;;n++)if(n>=t||(r=e[n])<32||r>127&&r<l){this._oscParser.put(e,a,n),a=n-1;break}break;case 6:if(n=this._oscParser.end(24!==r&&26!==r),n)return this._preserveStack(5,[],0,o,a),n;27===r&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&o}}}t.EscapeSequenceParser=c},6242:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;const n=i(5770),r=i(482),o=[];t.OscParser=class{constructor(){this._state=0,this._active=o,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=o,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||o,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(e,t,i){if(this._active.length)for(let n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,i);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(e,t,i))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t<i;){const i=e[t++];if(59===i){this._state=2,this._start();break}if(i<48||57<i)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+i-48}2===this._state&&i-t>0&&this._put(e,t,i)}}end(e,t=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let i=!1,n=this._active.length-1,r=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;n>=0&&(i=this._active[n].end(e),!0!==i);n--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,i;n--}for(;n>=0;n--)if(i=this._active[n].end(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,i}else this._handlerFb(this._id,"END",e);this._active=o,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then((e=>(this._data="",this._hitLimit=!1,e)));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;const i=2147483647;class n{static fromArray(e){const t=new n;if(!e.length)return t;for(let i=Array.isArray(e[0])?1:0;i<e.length;++i){const n=e[i];if(Array.isArray(n))for(let e=0;e<n.length;++e)t.addSubParam(n[e]);else t.addParam(n)}return t}constructor(e=32,t=32){if(this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const e=new n(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){const e=[];for(let t=0;t<this.length;++t){e.push(this.params[t]);const i=this._subParamsIdx[t]>>8,n=255&this._subParamsIdx[t];n-i>0&&e.push(Array.prototype.slice.call(this._subParams,i,n))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>i?i:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>i?i:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}getSubParams(e){const t=this._subParamsIdx[e]>>8,i=255&this._subParamsIdx[e];return i-t>0?this._subParams.subarray(t,i):null}getSubParamsAll(){const e={};for(let t=0;t<this.length;++t){const i=this._subParamsIdx[t]>>8,n=255&this._subParamsIdx[t];n-i>0&&(e[t]=this._subParams.slice(i,n))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const n=this._digitIsSub?this._subParams:this.params,r=n[t-1];n[t-1]=~r?Math.min(10*r+e,i):e}}t.Params=n},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){const i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i<this._addons.length;i++)if(this._addons[i]===e){t=i;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}}},8771:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;const n=i(3785),r=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){const t=this._buffer.lines.get(e);if(t)return new n.BufferLineApiView(t)}getNullCell(){return new r.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;const n=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new n.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;const n=i(8771),r=i(8460),o=i(844);class s extends o.Disposable{constructor(e){super(),this._core=e,this._onBufferChange=this.register(new r.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new n.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new n.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}t.BufferNamespaceApi=s},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,(e=>t(e.toArray())))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,((e,i)=>t(e,i.toArray())))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;const o=i(8460),s=i(844),a=i(5295),l=i(2585);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let c=t.BufferService=class extends s.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new o.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new o.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new a.BufferSet(e,this))}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){const i=this.buffer;let n;n=this._cachedBlankLine,n&&n.length===this.cols&&n.getFg(0)===e.fg&&n.getBg(0)===e.bg||(n=i.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;const r=i.ybase+i.scrollTop,o=i.ybase+i.scrollBottom;if(0===i.scrollTop){const e=i.lines.isFull;o===i.lines.length-1?e?i.lines.recycle().copyFrom(n):i.lines.push(n.clone()):i.lines.splice(o+1,0,n.clone()),e?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{const e=o-r+1;i.lines.shiftElements(r+1,e-1,-1),i.lines.set(o,n.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t,i){const n=this.buffer;if(e<0){if(0===n.ydisp)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);const r=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),r!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))}};t.BufferService=c=n([r(0,l.IOptionsService)],c)},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;const o=i(2585),s=i(8460),a=i(844),l={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function c(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}const u=String.fromCharCode,h={DEFAULT:e=>{const t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`[M${u(t[0])}${u(t[1])}${u(t[2])}`},SGR:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.x};${e.y}${t}`}};let d=t.CoreMouseService=class extends a.Disposable{constructor(e,t){super(),this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new s.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const i of Object.keys(l))this.addProtocol(i,l[i]);for(const i of Object.keys(h))this.addEncoding(i,h[i]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;const t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};t.CoreMouseService=d=n([r(0,o.IBufferService),r(1,o.ICoreService)],d)},6975:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;const o=i(1439),s=i(8460),a=i(844),l=i(2585),c=Object.freeze({insertMode:!1}),u=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let h=t.CoreService=class extends a.Disposable{constructor(e,t,i){super(),this._bufferService=e,this._logService=t,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new s.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new s.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new s.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new s.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,o.clone)(c),this.decPrivateModes=(0,o.clone)(u)}reset(){this.modes=(0,o.clone)(c),this.decPrivateModes=(0,o.clone)(u)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;const i=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&i.ybase!==i.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onBinary.fire(e))}};t.CoreService=h=n([r(0,l.IBufferService),r(1,l.ILogService),r(2,l.IOptionsService)],h)},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;const n=i(8055),r=i(8460),o=i(844),s=i(6106);let a=0,l=0;class c extends o.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new s.SortedList((e=>null==e?void 0:e.marker.line)),this._onDecorationRegistered=this.register(new r.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new r.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,o.toDisposable)((()=>this.reset())))}registerDecoration(e){if(e.marker.isDisposed)return;const t=new u(e);if(t){const e=t.marker.onDispose((()=>t.dispose()));t.onDispose((()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())})),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(const e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){var n,r,o;let s=0,a=0;for(const l of this._decorations.getKeyIterator(t))s=null!==(n=l.options.x)&&void 0!==n?n:0,a=s+(null!==(r=l.options.width)&&void 0!==r?r:1),e>=s&&e<a&&(!i||(null!==(o=l.options.layer)&&void 0!==o?o:"bottom")===i)&&(yield l)}forEachDecorationAtCell(e,t,i,n){this._decorations.forEachByKey(t,(t=>{var r,o,s;a=null!==(r=t.options.x)&&void 0!==r?r:0,l=a+(null!==(o=t.options.width)&&void 0!==o?o:1),e>=a&&e<l&&(!i||(null!==(s=t.options.layer)&&void 0!==s?s:"bottom")===i)&&n(t)}))}}t.DecorationService=c;class u extends o.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=n.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=n.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(e){super(),this.options=e,this.onRenderEmitter=this.register(new r.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new r.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;const n=i(2585),r=i(8343);class o{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}forEach(e){for(const[t,i]of this._entries.entries())e(t,i)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=o,t.InstantiationService=class{constructor(){this._services=new o,this._services.set(n.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){const i=(0,r.getServiceDependencies)(e).sort(((e,t)=>e.index-t.index)),n=[];for(const r of i){const t=this._services.get(r.id);if(!t)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`);n.push(t)}const o=i.length>0?i[0].index:t.length;if(t.length!==o)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);return new e(...[...t,...n])}}},7866:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;const o=i(844),s=i(2585),a={trace:s.LogLevelEnum.TRACE,debug:s.LogLevelEnum.DEBUG,info:s.LogLevelEnum.INFO,warn:s.LogLevelEnum.WARN,error:s.LogLevelEnum.ERROR,off:s.LogLevelEnum.OFF};let l,c=t.LogService=class extends o.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=s.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),l=this}_updateLogLevel(){this._logLevel=a[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())}_log(e,t,i){this._evalLazyOptionalParams(i),e.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+t,...i)}trace(e,...t){var i,n;this._logLevel<=s.LogLevelEnum.TRACE&&this._log(null!==(n=null===(i=this._optionsService.options.logger)||void 0===i?void 0:i.trace.bind(this._optionsService.options.logger))&&void 0!==n?n:console.log,e,t)}debug(e,...t){var i,n;this._logLevel<=s.LogLevelEnum.DEBUG&&this._log(null!==(n=null===(i=this._optionsService.options.logger)||void 0===i?void 0:i.debug.bind(this._optionsService.options.logger))&&void 0!==n?n:console.log,e,t)}info(e,...t){var i,n;this._logLevel<=s.LogLevelEnum.INFO&&this._log(null!==(n=null===(i=this._optionsService.options.logger)||void 0===i?void 0:i.info.bind(this._optionsService.options.logger))&&void 0!==n?n:console.info,e,t)}warn(e,...t){var i,n;this._logLevel<=s.LogLevelEnum.WARN&&this._log(null!==(n=null===(i=this._optionsService.options.logger)||void 0===i?void 0:i.warn.bind(this._optionsService.options.logger))&&void 0!==n?n:console.warn,e,t)}error(e,...t){var i,n;this._logLevel<=s.LogLevelEnum.ERROR&&this._log(null!==(n=null===(i=this._optionsService.options.logger)||void 0===i?void 0:i.error.bind(this._optionsService.options.logger))&&void 0!==n?n:console.error,e,t)}};t.LogService=c=n([r(0,s.IOptionsService)],c),t.setTraceLogger=function(e){l=e},t.traceCall=function(e,t,i){if("function"!=typeof i.value)throw new Error("not supported");const n=i.value;i.value=function(...e){if(l.logLevel!==s.LogLevelEnum.TRACE)return n.apply(this,e);l.trace(`GlyphRenderer#${n.name}(${e.map((e=>JSON.stringify(e))).join(", ")})`);const t=n.apply(this,e);return l.trace(`GlyphRenderer#${n.name} return`,t),t}}},7302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;const n=i(8460),r=i(844),o=i(6114);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:o.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const s=["normal","bold","100","200","300","400","500","600","700","800","900"];class a extends r.Disposable{constructor(e){super(),this._onOptionChange=this.register(new n.EventEmitter),this.onOptionChange=this._onOptionChange.event;const i=Object.assign({},t.DEFAULT_OPTIONS);for(const t in e)if(t in i)try{const n=e[t];i[t]=this._sanitizeAndValidateOption(t,n)}catch(e){console.error(e)}this.rawOptions=i,this.options=Object.assign({},i),this._setupOptions()}onSpecificOptionChange(e,t){return this.onOptionChange((i=>{i===e&&t(this.rawOptions[e])}))}onMultipleOptionChange(e,t){return this.onOptionChange((i=>{-1!==e.indexOf(i)&&t()}))}_setupOptions(){const e=e=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);return this.rawOptions[e]},i=(e,i)=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);i=this._sanitizeAndValidateOption(e,i),this.rawOptions[e]!==i&&(this.rawOptions[e]=i,this._onOptionChange.fire(e))};for(const t in this.rawOptions){const n={get:e.bind(this,t),set:i.bind(this,t)};Object.defineProperty(this.options,t,n)}}_sanitizeAndValidateOption(e,i){switch(e){case"cursorStyle":if(i||(i=t.DEFAULT_OPTIONS[e]),!function(e){return"block"===e||"underline"===e||"bar"===e}(i))throw new Error(`"${i}" is not a valid value for ${e}`);break;case"wordSeparator":i||(i=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof i&&1<=i&&i<=1e3)break;i=s.includes(i)?i:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(`${e} cannot be less than 1, value: ${i}`);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(`${e} cannot be less than 0, value: ${i}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${i}`);break;case"rows":case"cols":if(!i&&0!==i)throw new Error(`${e} must be numeric, value: ${i}`);break;case"windowsPty":i=null!=i?i:{}}return i}}t.OptionsService=a},2660:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},r=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;const o=i(2585);let s=t.OscLinkService=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){const t=this._bufferService.buffer;if(void 0===e.id){const i=t.addMarker(t.ybase+t.y),n={data:e,id:this._nextId++,lines:[i]};return i.onDispose((()=>this._removeMarkerFromLink(n,i))),this._dataByLinkId.set(n.id,n),n.id}const i=e,n=this._getEntryIdKey(i),r=this._entriesWithId.get(n);if(r)return this.addLineToLink(r.id,t.ybase+t.y),r.id;const o=t.addMarker(t.ybase+t.y),s={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[o]};return o.onDispose((()=>this._removeMarkerFromLink(s,o))),this._entriesWithId.set(s.key,s),this._dataByLinkId.set(s.id,s),s.id}addLineToLink(e,t){const i=this._dataByLinkId.get(e);if(i&&i.lines.every((e=>e.line!==t))){const e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose((()=>this._removeMarkerFromLink(i,e)))}}getLinkData(e){var t;return null===(t=this._dataByLinkId.get(e))||void 0===t?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){const i=e.lines.indexOf(t);-1!==i&&(e.lines.splice(i,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};t.OscLinkService=s=n([r(0,o.IBufferService)],s)},8343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;const i="di$target",n="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[n]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const r=function(e,t,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[i]===t?t[n].push({id:e,index:r}):(t[n]=[{id:e,index:r}],t[i]=t)}(r,e,o)};return r.toString=()=>e,t.serviceRegistry.set(e,r),r}},2585:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const n=i(8343);var r;t.IBufferService=(0,n.createDecorator)("BufferService"),t.ICoreMouseService=(0,n.createDecorator)("CoreMouseService"),t.ICoreService=(0,n.createDecorator)("CoreService"),t.ICharsetService=(0,n.createDecorator)("CharsetService"),t.IInstantiationService=(0,n.createDecorator)("InstantiationService"),function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.OFF=5]="OFF"}(r||(t.LogLevelEnum=r={})),t.ILogService=(0,n.createDecorator)("LogService"),t.IOptionsService=(0,n.createDecorator)("OptionsService"),t.IOscLinkService=(0,n.createDecorator)("OscLinkService"),t.IUnicodeService=(0,n.createDecorator)("UnicodeService"),t.IDecorationService=(0,n.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;const n=i(8460),r=i(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new n.EventEmitter,this.onChange=this._onChange.event;const e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let t=0;const i=e.length;for(let n=0;n<i;++n){let r=e.charCodeAt(n);if(55296<=r&&r<=56319){if(++n>=i)return t+this.wcwidth(r);const o=e.charCodeAt(n);56320<=o&&o<=57343?r=1024*(r-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(r)}return t}}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.Terminal=void 0;const t=i(9042),r=i(3236),o=i(844),s=i(5741),a=i(8285),l=i(7975),c=i(7090),u=["cols","rows"];class h extends o.Disposable{constructor(e){super(),this._core=this.register(new r.Terminal(e)),this._addonManager=this.register(new s.AddonManager),this._publicOptions=Object.assign({},this._core.options);const t=e=>this._core.options[e],i=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(const n in this._core.options){const e={get:t.bind(this,n),set:i.bind(this,n)};Object.defineProperty(this._publicOptions,n,e)}}_checkReadonlyOptions(e){if(u.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new l.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new c.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new a.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const e=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(const t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){var t,i,n;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(i=e.width)&&void 0!==i?i:0,null!==(n=e.height)&&void 0!==n?n:0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return t}_verifyIntegers(...e){for(const t of e)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(const t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}e.Terminal=h})(),n})()))},42073:function(e,t,i){var n=i(1200),r=i(36112),o=i(38051),s=i(31615),a=i(95289),l=function(e){o.call(this,e),r.call(this,e),s.call(this,e),this.id=e.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var i=this[e];i||(i=this[e]=[]),i[0]=t[0],i[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(a.isObject(e))for(var i in e)e.hasOwnProperty(i)&&this.attrKV(i,e[i]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},a.mixin(l,s),a.mixin(l,o),a.mixin(l,r);var c=l;e.exports=c},16713:function(e,t,i){var n=i(95289),r=i(31138),o=i(89944),s=i(36112),a=i(88665),l=i(15174),c="silent";function u(e,t,i){return{type:e,event:i,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:h}}function h(){a.stop(this.event)}function d(){}d.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(e,t,i,n){s.call(this),this.storage=e,this.painter=t,this.painterRoot=n,i=i||new d,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,o.call(this),this.setHandlerProxy(i)};function g(e,t,i){if(e[e.rectHover?"rectContain":"contain"](t,i)){var n,r=e;while(r){if(r.clipPath&&!r.clipPath.contain(t,i))return!1;r.silent&&(n=!0),r=r.parent}return!n||c}return!1}function v(e,t,i){var n=e.painter;return t<0||t>n.getWidth()||i<0||i>n.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(n.each(f,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,i=e.zrY,n=v(this,t,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var s=this._hovered=n?{x:t,y:i}:this.findHover(t,i),a=s.target,l=this.proxy;l.setCursor&&l.setCursor(a?a.cursor:"default"),o&&a!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(s,"mousemove",e),a&&a!==o&&this.dispatchToElement(s,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,i=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!i&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var i=this[e];i&&i.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,i){e=e||{};var n=e.target;if(!n||!n.silent){var r="on"+t,o=u(t,e,i);while(n)if(n[r]&&(o.cancelBubble=n[r].call(n,o)),n.trigger(t,o),n=n.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},findHover:function(e,t,i){for(var n=this.storage.getDisplayList(),r={x:e,y:t},o=n.length-1;o>=0;o--){var s;if(n[o]!==i&&!n[o].ignore&&(s=g(n[o],e,t))&&(!r.topTarget&&(r.topTarget=n[o]),s!==c)){r.target=n[o];break}}return r},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===t&&i.clear();var n=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&i.clear(),n){var r=n.type;e.gestureEvent=r,this.dispatchToElement({target:n.target},r,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){p.prototype[e]=function(t){var i,n,o=t.zrX,s=t.zrY,a=v(this,o,s);if("mouseup"===e&&a||(i=this.findHover(o,s),n=i.target),"mousedown"===e)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===e)this._upEl=n;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}})),n.mixin(p,s),n.mixin(p,o);var m=p;e.exports=m},93288:function(e,t,i){var n=i(95289),r=i(49999),o=r.devicePixelRatio,s=i(96727),a=i(94364);function l(){return!1}function c(e,t,i){var r=n.createCanvas(),o=t.getWidth(),s=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=o+"px",a.height=s+"px",r.setAttribute("data-zr-dom-id",e)),r.width=o*i,r.height=s*i,r}var u=function(e,t,i){var r;i=i||o,"string"===typeof e?r=c(e,t,i):n.isObject(e)&&(r=e,e=r.id),this.id=e,this.dom=r;var s=r.style;s&&(r.onselectstart=l,s["-webkit-user-select"]="none",s["user-select"]="none",s["-webkit-touch-callout"]="none",s["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",s["padding"]=0,s["margin"]=0,s["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=c("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),n.width=e*i,n.height=t*i,o&&(o.width=e*i,o.height=t*i,1!==i&&this.ctxBack.scale(i,i))},clear:function(e,t){var i,n=this.dom,r=this.ctx,o=n.width,l=n.height,c=(t=t||this.clearColor,this.motionBlur&&!e),u=this.lastFrameAlpha,h=this.dpr;(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/h,l/h)),r.clearRect(0,0,o,l),t&&"transparent"!==t)&&(t.colorStops?(i=t.__canvasGradient||s.getGradient(r,t,{x:0,y:0,width:o,height:l}),t.__canvasGradient=i):t.image&&(i=a.prototype.getCanvasPattern.call(t,r)),r.save(),r.fillStyle=i||t,r.fillRect(0,0,o,l),r.restore());if(c){var d=this.domBack;r.save(),r.globalAlpha=u,r.drawImage(d,0,0,o,l),r.restore()}}};var h=u;e.exports=h},97518:function(e,t,i){var n=i(49999),r=n.devicePixelRatio,o=i(95289),s=i(19559),a=i(39587),l=i(33863),c=i(93288),u=i(39058),h=i(1635),d=i(87190),f=1e5,p=314159,g=.01,v=.001;function m(e){return parseInt(e,10)}function y(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}var _=new a(0,0,0,0),x=new a(0,0,0,0);function b(e,t,i){return _.copy(e.getBoundingRect()),e.transform&&_.applyTransform(e.transform),x.width=t,x.height=i,!_.intersect(x)}function w(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!0;return!1}function S(e,t){for(var i=0;i<e.length;i++){var n=e[i];n.setTransform(t),t.beginPath(),n.buildPath(t,n.shape),t.clip(),n.restoreTransform(t)}}function C(e,t){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var A=function(e,t,i){this.type="canvas";var n=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=i=o.extend({},i||{}),this.dpr=i.devicePixelRatio||r,this._singleCanvas=n,this.root=e;var s=e.style;s&&(s["-webkit-tap-highlight-color"]="transparent",s["-webkit-user-select"]=s["user-select"]=s["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var a=this._zlevelList=[],l=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,n){var u=e.width,h=e.height;null!=i.width&&(u=i.width),null!=i.height&&(h=i.height),this.dpr=i.devicePixelRatio||1,e.width=u*this.dpr,e.height=h*this.dpr,this._width=u,this._height=h;var d=new c(e,this,this.dpr);d.__builtin__=!0,d.initContext(),l[p]=d,d.zlevel=p,a.push(p),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=C(this._width,this._height);e.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};A.prototype={constructor:A,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var n=0;n<i.length;n++){var r=i[n],o=this._layers[r];if(!o.__builtin__&&o.refresh){var s=0===n?this._backgroundColor:null;o.refresh(s)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var i=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return i.__from=e,e.__hoverMir=i,t&&i.setStyle(t),this._hoverElements.push(i),i}},removeHover:function(e){var t=e.__hoverMir,i=this._hoverElements,n=o.indexOf(i,t);n>=0&&i.splice(n,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,i=0;i<t.length;i++){var n=t[i].__from;n&&(n.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,i=this._hoverlayer;if(i&&i.clear(),t){l(e,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(f));var n={};i.ctx.save();for(var r=0;r<t;){var o=e[r],s=o.__from;s&&s.__zr?(r++,s.invisible||(o.transform=s.transform,o.invTransform=s.invTransform,o.__clipPaths=s.__clipPaths,this._doPaintEl(o,i,!0,n))):(e.splice(r,1),s.__hoverMir=null,t--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(f)},_paintList:function(e,t,i){if(this._redrawId===i){t=t||!1,this._updateLayerStatus(e);var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var r=this;u((function(){r._paintList(e,t,i)}))}}},_compositeManually:function(){var e=this.getLayer(p).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer((function(n){n.virtual&&e.drawImage(n.dom,0,0,t,i)}))},_doPaintList:function(e,t){for(var i=[],n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n],s=this._layers[r];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||t)&&i.push(s)}for(var a=!0,l=0;l<i.length;l++){s=i[l];var c=s.ctx,u={};c.save();var h=t?s.__startIndex:s.__drawIndex,f=!t&&s.incremental&&Date.now,p=f&&Date.now(),g=s.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g);else if(h===s.__startIndex){var v=e[h];v.incremental&&v.notClear&&!t||s.clear(!1,g)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=s.__startIndex);for(var m=h;m<s.__endIndex;m++){var y=e[m];if(this._doPaintEl(y,s,t,u),y.__dirty=y.__dirtyText=!1,f){var _=Date.now()-p;if(_>15)break}}s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(a=!1),u.prevElClipPaths&&c.restore(),c.restore()}return d.wxa&&o.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),a},_doPaintEl:function(e,t,i,n){var r=t.ctx,o=e.transform;if((t.__dirty||i)&&!e.invisible&&0!==e.style.opacity&&(!o||o[0]||o[3])&&(!e.culling||!b(e,this._width,this._height))){var s=e.__clipPaths,a=n.prevElClipPaths;a&&!w(s,a)||(a&&(r.restore(),n.prevElClipPaths=null,n.prevEl=null),s&&(r.save(),S(s,r),n.prevElClipPaths=s)),e.beforeBrush&&e.beforeBrush(r),e.brush(r,n.prevEl||null),n.prevEl=e,e.afterBrush&&e.afterBrush(r)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=p);var i=this._layers[e];return i||(i=new c("zr_"+e,this,this.dpr),i.zlevel=e,i.__builtin__=!0,this._layerConfig[e]?o.merge(i,this._layerConfig[e],!0):this._layerConfig[e-g]&&o.merge(i,this._layerConfig[e-g],!0),t&&(i.virtual=t),this.insertLayer(e,i),i.initContext()),i},insertLayer:function(e,t){var i=this._layers,n=this._zlevelList,r=n.length,o=null,a=-1,l=this._domRoot;if(i[e])s("ZLevel "+e+" has been used already");else if(y(t)){if(r>0&&e>n[0]){for(a=0;a<r-1;a++)if(n[a]<e&&n[a+1]>e)break;o=i[n[a]]}if(n.splice(a+1,0,e),i[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?l.insertBefore(t.dom,c.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)}else s("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){var i,n,r=this._zlevelList;for(n=0;n<r.length;n++)i=r[n],e.call(t,this._layers[i],i)},eachBuiltinLayer:function(e,t){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],i=this._layers[n],i.__builtin__&&e.call(t,i,n)},eachOtherLayer:function(e,t){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],i=this._layers[n],i.__builtin__||e.call(t,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var i=1;i<e.length;i++){var n=e[i];if(n.zlevel!==e[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var r,o=null,a=0;for(i=0;i<e.length;i++){n=e[i];var l,c=n.zlevel;r!==c&&(r=c,a=0),n.incremental?(l=this.getLayer(c+v,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?g:0),this._needsManuallyCompositing),l.__builtin__||s("ZLevel "+c+" has been used by unkown layer "+l.id),l!==o&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,t(i),o=l),n.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var i=this._layerConfig;i[e]?o.merge(i[e],t,!0):i[e]=t;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===e||r===e+g){var s=this._layers[r];o.merge(s,i[e],!0)}}}},delLayer:function(e){var t=this._layers,i=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],i.splice(o.indexOf(i,e),1))},resize:function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||t!==this._height){for(var r in i.style.width=e+"px",i.style.height=t+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(e,t);o.each(this._progressiveLayers,(function(i){i.resize(e,t)})),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(p).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[p].dom;var t=new c("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,n=t.dom.height,r=t.ctx;this.eachLayer((function(e){e.__builtin__?r.drawImage(e.dom,0,0,i,n):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())}))}else for(var o={},s=this.storage.getDisplayList(!0),a=0;a<s.length;a++){var l=s[a];this._doPaintEl(l,t,!0,o)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var s=this.root,a=document.defaultView.getComputedStyle(s);return(s[n]||m(a[i])||m(s.style[i]))-(m(a[r])||0)-(m(a[o])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=e.getBoundingRect(),o=e.style,s=o.shadowBlur*t,a=o.shadowOffsetX*t,l=o.shadowOffsetY*t,c=o.hasStroke()?o.lineWidth:0,u=Math.max(c/2,-a+s),d=Math.max(c/2,a+s),f=Math.max(c/2,-l+s),p=Math.max(c/2,l+s),g=r.width+u+d,v=r.height+f+p;i.width=g*t,i.height=v*t,n.scale(t,t),n.clearRect(0,0,g,v),n.dpr=t;var m={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[u-r.x,f-r.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(n);var y=h,_=new y({style:{x:0,y:0,image:i}});return null!=m.position&&(_.position=e.position=m.position),null!=m.rotation&&(_.rotation=e.rotation=m.rotation),null!=m.scale&&(_.scale=e.scale=m.scale),_}};var M=A;e.exports=M},65728:function(e,t,i){var n=i(95289),r=i(87190),o=i(75738),s=i(33863);function a(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,o=t.length;n<o;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,r.canvasSupported&&s(i,a)},_updateAndAddDisplayable:function(e,t,i){if(!e.ignore||i){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var n=e.clipPath;if(n){t=t?t.slice():[];var r=n,o=e;while(r)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.clipPath}if(e.isGroup){for(var s=e._children,a=0;a<s.length;a++){var l=s[a];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,i)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof o&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var i=this._roots[t];i instanceof o&&i.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){t=0;for(var r=e.length;t<r;t++)this.delRoot(e[t])}else{var s=n.indexOf(this._roots,e);s>=0&&(this.delFromStorage(e),this._roots.splice(s,1),e instanceof o&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:a};var c=l;e.exports=c},9874:function(e,t,i){var n=i(95289),r=i(88665),o=r.Dispatcher,s=i(39058),a=i(56831),l=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};l.prototype={constructor:l,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),i=0;i<t.length;i++)this.addClip(t[i])},removeClip:function(e){var t=n.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),i=0;i<t.length;i++)this.removeClip(t[i]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,i=this._clips,n=i.length,r=[],o=[],s=0;s<n;s++){var a=i[s],l=a.step(e,t);l&&(r.push(l),o.push(a))}for(s=0;s<n;)i[s]._needsRemove?(i[s]=i[n-1],i.pop(),n--):s++;n=r.length;for(s=0;s<n;s++)o[s].fire(r[s]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;function t(){e._running&&(s(t),!e._paused&&e._update())}this._running=!0,s(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){t=t||{};var i=new a(e,t.loop,t.getter,t.setter);return this.addAnimator(i),i}},n.mixin(l,o);var c=l;e.exports=c},56831:function(e,t,i){var n=i(90132),r=i(56607),o=i(95289),s=o.isArrayLike,a=Array.prototype.slice;function l(e,t){return e[t]}function c(e,t,i){e[t]=i}function u(e,t,i){return(t-e)*i+e}function h(e,t,i){return i>.5?t:e}function d(e,t,i,n,r){var o=e.length;if(1===r)for(var s=0;s<o;s++)n[s]=u(e[s],t[s],i);else{var a=o&&e[0].length;for(s=0;s<o;s++)for(var l=0;l<a;l++)n[s][l]=u(e[s][l],t[s][l],i)}}function f(e,t,i){var n=e.length,r=t.length;if(n!==r){var o=n>r;if(o)e.length=r;else for(var s=n;s<r;s++)e.push(1===i?t[s]:a.call(t[s]))}var l=e[0]&&e[0].length;for(s=0;s<e.length;s++)if(1===i)isNaN(e[s])&&(e[s]=t[s]);else for(var c=0;c<l;c++)isNaN(e[s][c])&&(e[s][c]=t[s][c])}function p(e,t,i){if(e===t)return!0;var n=e.length;if(n!==t.length)return!1;if(1===i){for(var r=0;r<n;r++)if(e[r]!==t[r])return!1}else{var o=e[0].length;for(r=0;r<n;r++)for(var s=0;s<o;s++)if(e[r][s]!==t[r][s])return!1}return!0}function g(e,t,i,n,r,o,s,a,l){var c=e.length;if(1===l)for(var u=0;u<c;u++)a[u]=v(e[u],t[u],i[u],n[u],r,o,s);else{var h=e[0].length;for(u=0;u<c;u++)for(var d=0;d<h;d++)a[u][d]=v(e[u][d],t[u][d],i[u][d],n[u][d],r,o,s)}}function v(e,t,i,n,r,o,s){var a=.5*(i-e),l=.5*(n-t);return(2*(t-i)+a+l)*s+(-3*(t-i)-2*a-l)*o+a*r+t}function m(e){if(s(e)){var t=e.length;if(s(e[0])){for(var i=[],n=0;n<t;n++)i.push(a.call(e[n]));return i}return a.call(e)}return e}function y(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function _(e){var t=e[e.length-1].value;return s(t&&t[0])?2:1}function x(e,t,i,o,a,l){var c=e._getter,m=e._setter,x="spline"===t,b=o.length;if(b){var w,S=o[0].value,C=s(S),A=!1,M=!1,k=C?_(o):0;o.sort((function(e,t){return e.time-t.time})),w=o[b-1].time;for(var T=[],I=[],L=o[0].value,E=!0,D=0;D<b;D++){T.push(o[D].time/w);var O=o[D].value;if(C&&p(O,L,k)||!C&&O===L||(E=!1),L=O,"string"===typeof O){var P=r.parse(O);P?(O=P,A=!0):M=!0}I.push(O)}if(l||!E){var R=I[b-1];for(D=0;D<b-1;D++)C?f(I[D],R,k):!isNaN(I[D])||isNaN(R)||M||A||(I[D]=R);C&&f(c(e._target,a),R,k);var B,N,z,H,F,V,j=0,$=0;if(A)var W=[0,0,0,0];var G=function(e,t){var i;if(t<0)i=0;else if(t<$){for(B=Math.min(j+1,b-1),i=B;i>=0;i--)if(T[i]<=t)break;i=Math.min(i,b-2)}else{for(i=j;i<b;i++)if(T[i]>t)break;i=Math.min(i-1,b-2)}j=i,$=t;var n=T[i+1]-T[i];if(0!==n)if(N=(t-T[i])/n,x)if(H=I[i],z=I[0===i?i:i-1],F=I[i>b-2?b-1:i+1],V=I[i>b-3?b-1:i+2],C)g(z,H,F,V,N,N*N,N*N*N,c(e,a),k);else{if(A)r=g(z,H,F,V,N,N*N,N*N*N,W,1),r=y(W);else{if(M)return h(H,F,N);r=v(z,H,F,V,N,N*N,N*N*N)}m(e,a,r)}else if(C)d(I[i],I[i+1],N,c(e,a),k);else{var r;if(A)d(I[i],I[i+1],N,W,1),r=y(W);else{if(M)return h(I[i],I[i+1],N);r=u(I[i],I[i+1],N)}m(e,a,r)}},U=new n({target:e._target,life:w,loop:e._loop,delay:e._delay,onframe:G,ondestroy:i});return t&&"spline"!==t&&(U.easing=t),U}}}var b=function(e,t,i,n){this._tracks={},this._target=e,this._loop=t||!1,this._getter=i||l,this._setter=n||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(e,t){var i=this._tracks;for(var n in t)if(t.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==e&&i[n].push({time:0,value:m(r)})}i[n].push({time:e,value:t[n]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,i=0;i<t;i++)e[i].call(this)},start:function(e,t){var i,n=this,r=0,o=function(){r--,r||n._doneCallback()};for(var s in this._tracks)if(this._tracks.hasOwnProperty(s)){var a=x(this,e,o,this._tracks[s],s,t);a&&(this._clipList.push(a),r++,this.animation&&this.animation.addClip(a),i=a)}if(i){var l=i.onframe;i.onframe=function(e,t){l(e,t);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](e,t)}}return r||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,i=this.animation,n=0;n<t.length;n++){var r=t[n];e&&r.onframe(this._target,1),i&&i.removeClip(r)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var w=b;e.exports=w},90132:function(e,t,i){var n=i(23003);function r(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else{var i=(e-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var r=this.easing,o="string"===typeof r?n[r]:r,s="function"===typeof o?o(i):i;return this.fire("frame",s),1===i?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var o=r;e.exports=o},23003:function(e){var t={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},elasticOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}},i=t;e.exports=i},39058:function(e){var t="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=t},49999:function(e,t){var i=1;"undefined"!==typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=0,r=i;t.debugMode=n,t.devicePixelRatio=r},83602:function(e,t,i){var n=i(57624),r=n.normalizeRadian,o=2*Math.PI;function s(e,t,i,n,s,a,l,c,u){if(0===l)return!1;var h=l;c-=e,u-=t;var d=Math.sqrt(c*c+u*u);if(d-h>i||d+h<i)return!1;if(Math.abs(n-s)%o<1e-4)return!0;if(a){var f=n;n=r(s),s=r(f)}else n=r(n),s=r(s);n>s&&(s+=o);var p=Math.atan2(u,c);return p<0&&(p+=o),p>=n&&p<=s||p+o>=n&&p+o<=s}t.containStroke=s},94084:function(e,t,i){var n=i(35574);function r(e,t,i,r,o,s,a,l,c,u,h){if(0===c)return!1;var d=c;if(h>t+d&&h>r+d&&h>s+d&&h>l+d||h<t-d&&h<r-d&&h<s-d&&h<l-d||u>e+d&&u>i+d&&u>o+d&&u>a+d||u<e-d&&u<i-d&&u<o-d&&u<a-d)return!1;var f=n.cubicProjectPoint(e,t,i,r,o,s,a,l,u,h,null);return f<=d/2}t.containStroke=r},52998:function(e,t){function i(e,t,i,n,r,o,s){if(0===r)return!1;var a=r,l=0,c=e;if(s>t+a&&s>n+a||s<t-a&&s<n-a||o>e+a&&o>i+a||o<e-a&&o<i-a)return!1;if(e===i)return Math.abs(o-e)<=a/2;l=(t-n)/(e-i),c=(e*n-i*t)/(e-i);var u=l*o-s+c,h=u*u/(l*l+1);return h<=a/2*a/2}t.containStroke=i},70703:function(e,t,i){var n=i(17004),r=i(52998),o=i(94084),s=i(78788),a=i(83602),l=i(57624),c=l.normalizeRadian,u=i(35574),h=i(12462),d=n.CMD,f=2*Math.PI,p=1e-4;function g(e,t){return Math.abs(e-t)<p}var v=[-1,-1,-1],m=[-1,-1];function y(){var e=m[0];m[0]=m[1],m[1]=e}function _(e,t,i,n,r,o,s,a,l,c){if(c>t&&c>n&&c>o&&c>a||c<t&&c<n&&c<o&&c<a)return 0;var h=u.cubicRootAt(t,n,o,a,c,v);if(0===h)return 0;for(var d,f,p=0,g=-1,_=0;_<h;_++){var x=v[_],b=0===x||1===x?.5:1,w=u.cubicAt(e,i,r,s,x);w<l||(g<0&&(g=u.cubicExtrema(t,n,o,a,m),m[1]<m[0]&&g>1&&y(),d=u.cubicAt(t,n,o,a,m[0]),g>1&&(f=u.cubicAt(t,n,o,a,m[1]))),2===g?x<m[0]?p+=d<t?b:-b:x<m[1]?p+=f<d?b:-b:p+=a<f?b:-b:x<m[0]?p+=d<t?b:-b:p+=a<d?b:-b)}return p}function x(e,t,i,n,r,o,s,a){if(a>t&&a>n&&a>o||a<t&&a<n&&a<o)return 0;var l=u.quadraticRootAt(t,n,o,a,v);if(0===l)return 0;var c=u.quadraticExtremum(t,n,o);if(c>=0&&c<=1){for(var h=0,d=u.quadraticAt(t,n,o,c),f=0;f<l;f++){var p=0===v[f]||1===v[f]?.5:1,g=u.quadraticAt(e,i,r,v[f]);g<s||(v[f]<c?h+=d<t?p:-p:h+=o<d?p:-p)}return h}p=0===v[0]||1===v[0]?.5:1,g=u.quadraticAt(e,i,r,v[0]);return g<s?0:o<t?p:-p}function b(e,t,i,n,r,o,s,a){if(a-=t,a>i||a<-i)return 0;var l=Math.sqrt(i*i-a*a);v[0]=-l,v[1]=l;var u=Math.abs(n-r);if(u<1e-4)return 0;if(u%f<1e-4){n=0,r=f;var h=o?1:-1;return s>=v[0]+e&&s<=v[1]+e?h:0}if(o){l=n;n=c(r),r=c(l)}else n=c(n),r=c(r);n>r&&(r+=f);for(var d=0,p=0;p<2;p++){var g=v[p];if(g+e>s){var m=Math.atan2(a,g);h=o?1:-1;m<0&&(m=f+m),(m>=n&&m<=r||m+f>=n&&m+f<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(h=-h),d+=h)}}return d}function w(e,t,i,n,l){for(var c=0,u=0,f=0,p=0,v=0,m=0;m<e.length;){var y=e[m++];switch(y===d.M&&m>1&&(i||(c+=h(u,f,p,v,n,l))),1===m&&(u=e[m],f=e[m+1],p=u,v=f),y){case d.M:p=e[m++],v=e[m++],u=p,f=v;break;case d.L:if(i){if(r.containStroke(u,f,e[m],e[m+1],t,n,l))return!0}else c+=h(u,f,e[m],e[m+1],n,l)||0;u=e[m++],f=e[m++];break;case d.C:if(i){if(o.containStroke(u,f,e[m++],e[m++],e[m++],e[m++],e[m],e[m+1],t,n,l))return!0}else c+=_(u,f,e[m++],e[m++],e[m++],e[m++],e[m],e[m+1],n,l)||0;u=e[m++],f=e[m++];break;case d.Q:if(i){if(s.containStroke(u,f,e[m++],e[m++],e[m],e[m+1],t,n,l))return!0}else c+=x(u,f,e[m++],e[m++],e[m],e[m+1],n,l)||0;u=e[m++],f=e[m++];break;case d.A:var w=e[m++],S=e[m++],C=e[m++],A=e[m++],M=e[m++],k=e[m++];m+=1;var T=1-e[m++],I=Math.cos(M)*C+w,L=Math.sin(M)*A+S;m>1?c+=h(u,f,I,L,n,l):(p=I,v=L);var E=(n-w)*A/C+w;if(i){if(a.containStroke(w,S,A,M,M+k,T,t,E,l))return!0}else c+=b(w,S,A,M,M+k,T,E,l);u=Math.cos(M+k)*C+w,f=Math.sin(M+k)*A+S;break;case d.R:p=u=e[m++],v=f=e[m++];var D=e[m++],O=e[m++];I=p+D,L=v+O;if(i){if(r.containStroke(p,v,I,v,t,n,l)||r.containStroke(I,v,I,L,t,n,l)||r.containStroke(I,L,p,L,t,n,l)||r.containStroke(p,L,p,v,t,n,l))return!0}else c+=h(I,v,I,L,n,l),c+=h(p,L,p,v,n,l);break;case d.Z:if(i){if(r.containStroke(u,f,p,v,t,n,l))return!0}else c+=h(u,f,p,v,n,l);u=p,f=v;break}}return i||g(f,v)||(c+=h(u,f,p,v,n,l)||0),0!==c}function S(e,t,i){return w(e,0,!1,t,i)}function C(e,t,i,n){return w(e,t,!0,i,n)}t.contain=S,t.containStroke=C},91068:function(e,t,i){var n=i(12462),r=1e-8;function o(e,t){return Math.abs(e-t)<r}function s(e,t,i){var r=0,s=e[0];if(!s)return!1;for(var a=1;a<e.length;a++){var l=e[a];r+=n(s[0],s[1],l[0],l[1],t,i),s=l}var c=e[0];return o(s[0],c[0])&&o(s[1],c[1])||(r+=n(s[0],s[1],c[0],c[1],t,i)),0!==r}t.contain=s},78788:function(e,t,i){var n=i(35574),r=n.quadraticProjectPoint;function o(e,t,i,n,o,s,a,l,c){if(0===a)return!1;var u=a;if(c>t+u&&c>n+u&&c>s+u||c<t-u&&c<n-u&&c<s-u||l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u)return!1;var h=r(e,t,i,n,o,s,l,c,null);return h<=u/2}t.containStroke=o},43407:function(e,t,i){var n=i(39587),r=i(30098),o=i(95289),s=o.getContext,a=o.extend,l=o.retrieve2,c=o.retrieve3,u=o.trim,h={},d=0,f=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",v={};function m(e,t){v[e]=t}function y(e,t){t=t||g;var i=e+":"+t;if(h[i])return h[i];for(var n=(e+"").split("\n"),r=0,o=0,s=n.length;o<s;o++)r=Math.max(E(n[o],t).width,r);return d>f&&(d=0,h={}),d++,h[i]=r,r}function _(e,t,i,n,r,o,s,a){return s?b(e,t,i,n,r,o,s,a):x(e,t,i,n,r,o,a)}function x(e,t,i,r,o,s,a){var l=D(e,t,o,s,a),c=y(e,t);o&&(c+=o[1]+o[3]);var u=l.outerHeight,h=w(0,c,i),d=S(0,u,r),f=new n(h,d,c,u);return f.lineHeight=l.lineHeight,f}function b(e,t,i,r,o,s,a,l){var c=O(e,{rich:a,truncate:l,font:t,textAlign:i,textPadding:o,textLineHeight:s}),u=c.outerWidth,h=c.outerHeight,d=w(0,u,i),f=S(0,h,r);return new n(d,f,u,h)}function w(e,t,i){return"right"===i?e-=t:"center"===i&&(e-=t/2),e}function S(e,t,i){return"middle"===i?e-=t/2:"bottom"===i&&(e-=t),e}function C(e,t,i){var n=t.textPosition,r=t.textDistance,o=i.x,s=i.y;r=r||0;var a=i.height,l=i.width,c=a/2,u="left",h="top";switch(n){case"left":o-=r,s+=c,u="right",h="middle";break;case"right":o+=r+l,s+=c,h="middle";break;case"top":o+=l/2,s-=r,u="center",h="bottom";break;case"bottom":o+=l/2,s+=a+r,u="center";break;case"inside":o+=l/2,s+=c,u="center",h="middle";break;case"insideLeft":o+=r,s+=c,h="middle";break;case"insideRight":o+=l-r,s+=c,u="right",h="middle";break;case"insideTop":o+=l/2,s+=r,u="center";break;case"insideBottom":o+=l/2,s+=a-r,u="center",h="bottom";break;case"insideTopLeft":o+=r,s+=r;break;case"insideTopRight":o+=l-r,s+=r,u="right";break;case"insideBottomLeft":o+=r,s+=a-r,h="bottom";break;case"insideBottomRight":o+=l-r,s+=a-r,u="right",h="bottom";break}return e=e||{},e.x=o,e.y=s,e.textAlign=u,e.textVerticalAlign=h,e}function A(e,t,i){var n={textPosition:e,textDistance:i};return C({},n,t)}function M(e,t,i,n,r){if(!t)return"";var o=(e+"").split("\n");r=k(t,i,n,r);for(var s=0,a=o.length;s<a;s++)o[s]=T(o[s],r);return o.join("\n")}function k(e,t,i,n){n=a({},n),n.font=t;i=l(i,"...");n.maxIterations=l(n.maxIterations,2);var r=n.minChar=l(n.minChar,0);n.cnCharWidth=y("国",t);var o=n.ascCharWidth=y("a",t);n.placeholder=l(n.placeholder,"");for(var s=e=Math.max(0,e-1),c=0;c<r&&s>=o;c++)s-=o;var u=y(i,t);return u>s&&(i="",u=0),s=e-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=e,n}function T(e,t){var i=t.containerWidth,n=t.font,r=t.contentWidth;if(!i)return"";var o=y(e,n);if(o<=i)return e;for(var s=0;;s++){if(o<=r||s>=t.maxIterations){e+=t.ellipsis;break}var a=0===s?I(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,a),o=y(e,n)}return""===e&&(e=t.placeholder),e}function I(e,t,i,n){for(var r=0,o=0,s=e.length;o<s&&r<t;o++){var a=e.charCodeAt(o);r+=0<=a&&a<=127?i:n}return o}function L(e){return y("国",e)}function E(e,t){return v.measureText(e,t)}function D(e,t,i,n,r){null!=e&&(e+="");var o=l(n,L(t)),s=e?e.split("\n"):[],a=s.length*o,c=a,u=!0;if(i&&(c+=i[0]+i[2]),e&&r){u=!1;var h=r.outerHeight,d=r.outerWidth;if(null!=h&&c>h)e="",s=[];else if(null!=d)for(var f=k(d-(i?i[1]+i[3]:0),t,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=s.length;p<g;p++)s[p]=T(s[p],f)}return{lines:s,height:a,outerHeight:c,lineHeight:o,canCacheByTextString:u}}function O(e,t){var i={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return i;var n,o=p.lastIndex=0;while(null!=(n=p.exec(e))){var s=n.index;s>o&&P(i,e.substring(o,s)),P(i,n[2],n[1]),o=p.lastIndex}o<e.length&&P(i,e.substring(o,e.length));var a=i.lines,u=0,h=0,d=[],f=t.textPadding,g=t.truncate,v=g&&g.outerWidth,m=g&&g.outerHeight;f&&(null!=v&&(v-=f[1]+f[3]),null!=m&&(m-=f[0]+f[2]));for(var _=0;_<a.length;_++){for(var x=a[_],b=0,w=0,S=0;S<x.tokens.length;S++){var C=x.tokens[S],A=C.styleName&&t.rich[C.styleName]||{},k=C.textPadding=A.textPadding,T=C.font=A.font||t.font,I=C.textHeight=l(A.textHeight,L(T));if(k&&(I+=k[0]+k[2]),C.height=I,C.lineHeight=c(A.textLineHeight,t.textLineHeight,I),C.textAlign=A&&A.textAlign||t.textAlign,C.textVerticalAlign=A&&A.textVerticalAlign||"middle",null!=m&&u+C.lineHeight>m)return{lines:[],width:0,height:0};C.textWidth=y(C.text,T);var E=A.textWidth,D=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))C.percentWidth=E,d.push(C),E=0;else{if(D){E=C.textWidth;var O=A.textBackgroundColor,R=O&&O.image;R&&(R=r.findExistImage(R),r.isImageReady(R)&&(E=Math.max(E,R.width*I/R.height)))}var B=k?k[1]+k[3]:0;E+=B;var N=null!=v?v-w:null;null!=N&&N<E&&(!D||N<B?(C.text="",C.textWidth=E=0):(C.text=M(C.text,N-B,T,g.ellipsis,{minChar:g.minChar}),C.textWidth=y(C.text,T),E=C.textWidth+B))}w+=C.width=E,A&&(b=Math.max(b,C.lineHeight))}x.width=w,x.lineHeight=b,u+=b,h=Math.max(h,w)}i.outerWidth=i.width=l(t.textWidth,h),i.outerHeight=i.height=l(t.textHeight,u),f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]);for(_=0;_<d.length;_++){C=d[_];var z=C.percentWidth;C.width=parseInt(z,10)/100*h}return i}function P(e,t,i){for(var n=""===t,r=t.split("\n"),o=e.lines,s=0;s<r.length;s++){var a=r[s],l={styleName:i,text:a,isLineHolder:!a&&!n};if(s)o.push({tokens:[l]});else{var c=(o[o.length-1]||(o[0]={tokens:[]})).tokens,u=c.length;1===u&&c[0].isLineHolder?c[0]=l:(a||!u||n)&&c.push(l)}}}function R(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&u(t)||e.textFont||e.font}v.measureText=function(e,t){var i=s();return i.font=t||g,i.measureText(e)},t.DEFAULT_FONT=g,t.$override=m,t.getWidth=y,t.getBoundingRect=_,t.adjustTextX=w,t.adjustTextY=S,t.calculateTextPosition=C,t.adjustTextPositionOnRect=A,t.truncateText=M,t.getLineHeight=L,t.measureText=E,t.parsePlainText=D,t.parseRichText=O,t.makeFont=R},57624:function(e,t){var i=2*Math.PI;function n(e){return e%=i,e<0&&(e+=i),e}t.normalizeRadian=n},12462:function(e){function t(e,t,i,n,r,o){if(o>t&&o>n||o<t&&o<n)return 0;if(n===t)return 0;var s=n<t?1:-1,a=(o-t)/(n-t);1!==a&&0!==a||(s=n<t?.5:-.5);var l=a*(i-e)+e;return l===r?1/0:l>r?s:0}e.exports=t},75738:function(e,t,i){var n=i(95289),r=i(42073),o=i(39587),s=function(e){for(var t in e=e||{},r.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};s.prototype={constructor:s,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,i=0;i<t.length;i++)if(t[i].name===e)return t[i]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var i=this._children,n=i.indexOf(t);n>=0&&(i.splice(n,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,i=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof s&&e.addChildrenToStorage(t)),i&&i.refresh()},remove:function(e){var t=this.__zr,i=this.__storage,r=this._children,o=n.indexOf(r,e);return o<0||(r.splice(o,1),e.parent=null,i&&(i.delFromStorage(e),e instanceof s&&e.delChildrenFromStorage(i)),t&&t.refresh()),this},removeAll:function(){var e,t,i=this._children,n=this.__storage;for(t=0;t<i.length;t++)e=i[t],n&&(n.delFromStorage(e),e instanceof s&&e.delChildrenFromStorage(n)),e.parent=null;return i.length=0,this},eachChild:function(e,t){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];e.call(t,r,n)}return this},traverse:function(e,t){for(var i=0;i<this._children.length;i++){var n=this._children[i];e.call(t,n),"group"===n.type&&n.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.addToStorage(i),i instanceof s&&i.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.delFromStorage(i),i instanceof s&&i.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,i=new o(0,0,0,0),n=e||this._children,r=[],s=0;s<n.length;s++){var a=n[s];if(!a.ignore&&!a.invisible){var l=a.getBoundingRect(),c=a.getLocalTransform(r);c?(i.copy(l),i.applyTransform(c),t=t||i.clone(),t.union(i)):(t=t||l.clone(),t.union(l))}}return t||i}},n.inherits(s,r);var a=s;e.exports=a},39587:function(e,t,i){var n=i(31138),r=i(13388),o=n.applyTransform,s=Math.min,a=Math.max;function l(e,t,i,n){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n),this.x=e,this.y=t,this.width=i,this.height=n}l.prototype={constructor:l,union:function(e){var t=s(e.x,this.x),i=s(e.y,this.y);this.width=a(e.x+e.width,this.x+this.width)-t,this.height=a(e.y+e.height,this.y+this.height)-i,this.x=t,this.y=i},applyTransform:function(){var e=[],t=[],i=[],n=[];return function(r){if(r){e[0]=i[0]=this.x,e[1]=n[1]=this.y,t[0]=n[0]=this.x+this.width,t[1]=i[1]=this.y+this.height,o(e,e,r),o(t,t,r),o(i,i,r),o(n,n,r),this.x=s(e[0],t[0],i[0],n[0]),this.y=s(e[1],t[1],i[1],n[1]);var l=a(e[0],t[0],i[0],n[0]),c=a(e[1],t[1],i[1],n[1]);this.width=l-this.x,this.height=c-this.y}}}(),calculateTransform:function(e){var t=this,i=e.width/t.width,n=e.height/t.height,o=r.create();return r.translate(o,o,[-t.x,-t.y]),r.scale(o,o,[i,n]),r.translate(o,o,[e.x,e.y]),o},intersect:function(e){if(!e)return!1;e instanceof l||(e=l.create(e));var t=this,i=t.x,n=t.x+t.width,r=t.y,o=t.y+t.height,s=e.x,a=e.x+e.width,c=e.y,u=e.y+e.height;return!(n<s||a<i||o<c||u<r)},contain:function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(e){return new l(e.x,e.y,e.width,e.height)};var c=l;e.exports=c},15174:function(e,t,i){var n=i(88665),r=function(){this._track=[]};function o(e){var t=e[1][0]-e[0][0],i=e[1][1]-e[0][1];return Math.sqrt(t*t+i*i)}function s(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}r.prototype={constructor:r,recognize:function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,i){var r=e.touches;if(r){for(var o={points:[],touches:[],target:t,event:e},s=0,a=r.length;s<a;s++){var l=r[s],c=n.clientToLocal(i,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},_recognize:function(e){for(var t in a)if(a.hasOwnProperty(t)){var i=a[t](this._track,e);if(i)return i}}};var a={pinch:function(e,t){var i=e.length;if(i){var n=(e[i-1]||{}).points,r=(e[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var a=o(n)/o(r);!isFinite(a)&&(a=1),t.pinchScale=a;var l=s(n);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},l=r;e.exports=l},60348:function(e){var t=function(){this.head=null,this.tail=null,this._len=0},i=t.prototype;i.insert=function(e){var t=new n(e);return this.insertEntry(t),t},i.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},i.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var n=function(e){this.value=e,this.next,this.prev},r=function(e){this._list=new t,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},o=r.prototype;o.put=function(e,t){var i=this._list,r=this._map,o=null;if(null==r[e]){var s=i.len(),a=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}a?a.value=t:a=new n(t),a.key=e,i.insertEntry(a),r[e]=a}return o},o.get=function(e){var t=this._map[e],i=this._list;if(null!=t)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},o.clear=function(){this._list.clear(),this._map={}};var s=r;e.exports=s},17004:function(e,t,i){var n=i(35574),r=i(31138),o=i(66346),s=i(39587),a=i(49999),l=a.devicePixelRatio,c={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],d=[],f=[],p=Math.min,g=Math.max,v=Math.cos,m=Math.sin,y=Math.sqrt,_=Math.abs,x="undefined"!==typeof Float32Array,b=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};b.prototype={constructor:b,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,i){i=i||0,this._ux=_(i/l/e)||0,this._uy=_(i/l/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(c.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var i=_(e-this._xi)>this._ux||_(t-this._yi)>this._uy||this._len<5;return this.addData(c.L,e,t),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),i&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,i,n,r,o){return this.addData(c.C,e,t,i,n,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,i,n,r,o):this._ctx.bezierCurveTo(e,t,i,n,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(e,t,i,n){return this.addData(c.Q,e,t,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,i,n):this._ctx.quadraticCurveTo(e,t,i,n)),this._xi=i,this._yi=n,this},arc:function(e,t,i,n,r,o){return this.addData(c.A,e,t,i,i,n,r-n,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,n,r,o),this._xi=v(r)*i+e,this._yi=m(r)*i+t,this},arcTo:function(e,t,i,n,r){return this._ctx&&this._ctx.arcTo(e,t,i,n,r),this},rect:function(e,t,i,n){return this._ctx&&this._ctx.rect(e,t,i,n),this.addData(c.R,e,t,i,n),this},closePath:function(){this.addData(c.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,i),e.closePath()),this._xi=t,this._yi=i,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,i=0;i<e.length;i++)t+=e[i];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!x||(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,n=this._len,r=0;r<t;r++)i+=e[r].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(r=0;r<t;r++)for(var o=e[r].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var i=0;i<arguments.length;i++)t[this._len++]=arguments[i];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var i,n,r=this._dashSum,o=this._dashOffset,s=this._lineDash,a=this._ctx,l=this._xi,c=this._yi,u=e-l,h=t-c,d=y(u*u+h*h),f=l,v=c,m=s.length;u/=d,h/=d,o<0&&(o=r+o),o%=r,f-=o*u,v-=o*h;while(u>0&&f<=e||u<0&&f>=e||0===u&&(h>0&&v<=t||h<0&&v>=t))n=this._dashIdx,i=s[n],f+=u*i,v+=h*i,this._dashIdx=(n+1)%m,u>0&&f<l||u<0&&f>l||h>0&&v<c||h<0&&v>c||a[n%2?"moveTo":"lineTo"](u>=0?p(f,e):g(f,e),h>=0?p(v,t):g(v,t));u=f-e,h=v-t,this._dashOffset=-y(u*u+h*h)},_dashedBezierTo:function(e,t,i,r,o,s){var a,l,c,u,h,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,m=this._yi,_=n.cubicAt,x=0,b=this._dashIdx,w=p.length,S=0;for(f<0&&(f=d+f),f%=d,a=0;a<1;a+=.1)l=_(v,e,i,o,a+.1)-_(v,e,i,o,a),c=_(m,t,r,s,a+.1)-_(m,t,r,s,a),x+=y(l*l+c*c);for(;b<w;b++)if(S+=p[b],S>f)break;a=(S-f)/x;while(a<=1)u=_(v,e,i,o,a),h=_(m,t,r,s,a),b%2?g.moveTo(u,h):g.lineTo(u,h),a+=p[b]/x,b=(b+1)%w;b%2!==0&&g.lineTo(o,s),l=o-u,c=s-h,this._dashOffset=-y(l*l+c*c)},_dashedQuadraticTo:function(e,t,i,n){var r=i,o=n;i=(i+2*e)/3,n=(n+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,i,n,r,o)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,x&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,i=0,n=0,a=0,l=0;l<e.length;){var p=e[l++];switch(1===l&&(t=e[l],i=e[l+1],n=t,a=i),p){case c.M:n=e[l++],a=e[l++],t=n,i=a,d[0]=n,d[1]=a,f[0]=n,f[1]=a;break;case c.L:o.fromLine(t,i,e[l],e[l+1],d,f),t=e[l++],i=e[l++];break;case c.C:o.fromCubic(t,i,e[l++],e[l++],e[l++],e[l++],e[l],e[l+1],d,f),t=e[l++],i=e[l++];break;case c.Q:o.fromQuadratic(t,i,e[l++],e[l++],e[l],e[l+1],d,f),t=e[l++],i=e[l++];break;case c.A:var g=e[l++],y=e[l++],_=e[l++],x=e[l++],b=e[l++],w=e[l++]+b;l+=1;var S=1-e[l++];1===l&&(n=v(b)*_+g,a=m(b)*x+y),o.fromArc(g,y,_,x,b,w,S,d,f),t=v(w)*_+g,i=m(w)*x+y;break;case c.R:n=t=e[l++],a=i=e[l++];var C=e[l++],A=e[l++];o.fromLine(n,a,n+C,a+A,d,f);break;case c.Z:t=n,i=a;break}r.min(u,u,d),r.max(h,h,f)}return 0===l&&(u[0]=u[1]=h[0]=h[1]=0),new s(u[0],u[1],h[0]-u[0],h[1]-u[1])},rebuildPath:function(e){for(var t,i,n,r,o,s,a=this.data,l=this._ux,u=this._uy,h=this._len,d=0;d<h;){var f=a[d++];switch(1===d&&(n=a[d],r=a[d+1],t=n,i=r),f){case c.M:t=n=a[d++],i=r=a[d++],e.moveTo(n,r);break;case c.L:o=a[d++],s=a[d++],(_(o-n)>l||_(s-r)>u||d===h-1)&&(e.lineTo(o,s),n=o,r=s);break;case c.C:e.bezierCurveTo(a[d++],a[d++],a[d++],a[d++],a[d++],a[d++]),n=a[d-2],r=a[d-1];break;case c.Q:e.quadraticCurveTo(a[d++],a[d++],a[d++],a[d++]),n=a[d-2],r=a[d-1];break;case c.A:var p=a[d++],g=a[d++],y=a[d++],x=a[d++],b=a[d++],w=a[d++],S=a[d++],C=a[d++],A=y>x?y:x,M=y>x?1:y/x,k=y>x?x/y:1,T=Math.abs(y-x)>.001,I=b+w;T?(e.translate(p,g),e.rotate(S),e.scale(M,k),e.arc(0,0,A,b,I,1-C),e.scale(1/M,1/k),e.rotate(-S),e.translate(-p,-g)):e.arc(p,g,A,b,I,1-C),1===d&&(t=v(b)*y+p,i=m(b)*x+g),n=v(I)*y+p,r=m(I)*x+g;break;case c.R:t=n=a[d],i=r=a[d+1],e.rect(a[d++],a[d++],a[d++],a[d++]);break;case c.Z:e.closePath(),n=t,r=i}}}},b.CMD=c;var w=b;e.exports=w},38409:function(e){function t(){}function i(e,t,i,n){for(var r=0,o=t.length,s=0,a=0;r<o;r++){var l=t[r];if(l.removed){for(c=[],u=a;u<a+l.count;u++)c.push(u);l.indices=c,a+=l.count}else{for(var c=[],u=s;u<s+l.count;u++)c.push(u);l.indices=c,s+=l.count,l.added||(a+=l.count)}}return t}function n(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t,r){r||(r=function(e,t){return e===t}),this.equals=r;var o=this;e=e.slice(),t=t.slice();var s=t.length,a=e.length,l=1,c=s+a,u=[{newPos:-1,components:[]}],h=this.extractCommon(u[0],t,e,0);if(u[0].newPos+1>=s&&h+1>=a){for(var d=[],f=0;f<t.length;f++)d.push(f);return[{indices:d,count:t.length}]}function p(){for(var r=-1*l;r<=l;r+=2){var c,h=u[r-1],d=u[r+1],f=(d?d.newPos:0)-r;h&&(u[r-1]=void 0);var p=h&&h.newPos+1<s,g=d&&0<=f&&f<a;if(p||g){if(!p||g&&h.newPos<d.newPos?(c=n(d),o.pushComponent(c.components,void 0,!0)):(c=h,c.newPos++,o.pushComponent(c.components,!0,void 0)),f=o.extractCommon(c,t,e,r),c.newPos+1>=s&&f+1>=a)return i(o,c.components,t,e);u[r]=c}else u[r]=void 0}l++}while(l<=c){var g=p();if(g)return g}},pushComponent:function(e,t,i){var n=e[e.length-1];n&&n.added===t&&n.removed===i?e[e.length-1]={count:n.count+1,added:t,removed:i}:e.push({count:1,added:t,removed:i})},extractCommon:function(e,t,i,n){var r=t.length,o=i.length,s=e.newPos,a=s-n,l=0;while(s+1<r&&a+1<o&&this.equals(t[s+1],i[a+1]))s++,a++,l++;return l&&e.components.push({count:l}),e.newPos=s,a},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var r=new t;function o(e,t,i){return r.diff(e,t,i)}e.exports=o},66346:function(e,t,i){var n=i(31138),r=i(35574),o=Math.min,s=Math.max,a=Math.sin,l=Math.cos,c=2*Math.PI,u=n.create(),h=n.create(),d=n.create();function f(e,t,i){if(0!==e.length){var n,r=e[0],a=r[0],l=r[0],c=r[1],u=r[1];for(n=1;n<e.length;n++)r=e[n],a=o(a,r[0]),l=s(l,r[0]),c=o(c,r[1]),u=s(u,r[1]);t[0]=a,t[1]=c,i[0]=l,i[1]=u}}function p(e,t,i,n,r,a){r[0]=o(e,i),r[1]=o(t,n),a[0]=s(e,i),a[1]=s(t,n)}var g=[],v=[];function m(e,t,i,n,a,l,c,u,h,d){var f,p=r.cubicExtrema,m=r.cubicAt,y=p(e,i,a,c,g);for(h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0,f=0;f<y;f++){var _=m(e,i,a,c,g[f]);h[0]=o(_,h[0]),d[0]=s(_,d[0])}for(y=p(t,n,l,u,v),f=0;f<y;f++){var x=m(t,n,l,u,v[f]);h[1]=o(x,h[1]),d[1]=s(x,d[1])}h[0]=o(e,h[0]),d[0]=s(e,d[0]),h[0]=o(c,h[0]),d[0]=s(c,d[0]),h[1]=o(t,h[1]),d[1]=s(t,d[1]),h[1]=o(u,h[1]),d[1]=s(u,d[1])}function y(e,t,i,n,a,l,c,u){var h=r.quadraticExtremum,d=r.quadraticAt,f=s(o(h(e,i,a),1),0),p=s(o(h(t,n,l),1),0),g=d(e,i,a,f),v=d(t,n,l,p);c[0]=o(e,a,g),c[1]=o(t,l,v),u[0]=s(e,a,g),u[1]=s(t,l,v)}function _(e,t,i,r,o,s,f,p,g){var v=n.min,m=n.max,y=Math.abs(o-s);if(y%c<1e-4&&y>1e-4)return p[0]=e-i,p[1]=t-r,g[0]=e+i,void(g[1]=t+r);if(u[0]=l(o)*i+e,u[1]=a(o)*r+t,h[0]=l(s)*i+e,h[1]=a(s)*r+t,v(p,u,h),m(g,u,h),o%=c,o<0&&(o+=c),s%=c,s<0&&(s+=c),o>s&&!f?s+=c:o<s&&f&&(o+=c),f){var _=s;s=o,o=_}for(var x=0;x<s;x+=Math.PI/2)x>o&&(d[0]=l(x)*i+e,d[1]=a(x)*r+t,v(p,d,p),m(g,d,g))}t.fromPoints=f,t.fromLine=p,t.fromCubic=m,t.fromQuadratic=y,t.fromArc=_},35574:function(e,t,i){var n=i(31138),r=n.create,o=n.distSquare,s=Math.pow,a=Math.sqrt,l=1e-8,c=1e-4,u=a(3),h=1/3,d=r(),f=r(),p=r();function g(e){return e>-l&&e<l}function v(e){return e>l||e<-l}function m(e,t,i,n,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*n+3*o*i)}function y(e,t,i,n,r){var o=1-r;return 3*(((t-e)*o+2*(i-t)*r)*o+(n-i)*r*r)}function _(e,t,i,n,r,o){var l=n+3*(t-i)-e,c=3*(i-2*t+e),d=3*(t-e),f=e-r,p=c*c-3*l*d,v=c*d-9*l*f,m=d*d-3*c*f,y=0;if(g(p)&&g(v))if(g(c))o[0]=0;else{var _=-d/c;_>=0&&_<=1&&(o[y++]=_)}else{var x=v*v-4*p*m;if(g(x)){var b=v/p,w=(_=-c/l+b,-b/2);_>=0&&_<=1&&(o[y++]=_),w>=0&&w<=1&&(o[y++]=w)}else if(x>0){var S=a(x),C=p*c+1.5*l*(-v+S),A=p*c+1.5*l*(-v-S);C=C<0?-s(-C,h):s(C,h),A=A<0?-s(-A,h):s(A,h);_=(-c-(C+A))/(3*l);_>=0&&_<=1&&(o[y++]=_)}else{var M=(2*p*c-3*l*v)/(2*a(p*p*p)),k=Math.acos(M)/3,T=a(p),I=Math.cos(k),L=(_=(-c-2*T*I)/(3*l),w=(-c+T*(I+u*Math.sin(k)))/(3*l),(-c+T*(I-u*Math.sin(k)))/(3*l));_>=0&&_<=1&&(o[y++]=_),w>=0&&w<=1&&(o[y++]=w),L>=0&&L<=1&&(o[y++]=L)}}return y}function x(e,t,i,n,r){var o=6*i-12*t+6*e,s=9*t+3*n-3*e-9*i,l=3*t-3*e,c=0;if(g(s)){if(v(o)){var u=-l/o;u>=0&&u<=1&&(r[c++]=u)}}else{var h=o*o-4*s*l;if(g(h))r[0]=-o/(2*s);else if(h>0){var d=a(h),f=(u=(-o+d)/(2*s),(-o-d)/(2*s));u>=0&&u<=1&&(r[c++]=u),f>=0&&f<=1&&(r[c++]=f)}}return c}function b(e,t,i,n,r,o){var s=(t-e)*r+e,a=(i-t)*r+t,l=(n-i)*r+i,c=(a-s)*r+s,u=(l-a)*r+a,h=(u-c)*r+c;o[0]=e,o[1]=s,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=n}function w(e,t,i,n,r,s,l,u,h,g,v){var y,_,x,b,w,S=.005,C=1/0;d[0]=h,d[1]=g;for(var A=0;A<1;A+=.05)f[0]=m(e,i,r,l,A),f[1]=m(t,n,s,u,A),b=o(d,f),b<C&&(y=A,C=b);C=1/0;for(var M=0;M<32;M++){if(S<c)break;_=y-S,x=y+S,f[0]=m(e,i,r,l,_),f[1]=m(t,n,s,u,_),b=o(f,d),_>=0&&b<C?(y=_,C=b):(p[0]=m(e,i,r,l,x),p[1]=m(t,n,s,u,x),w=o(p,d),x<=1&&w<C?(y=x,C=w):S*=.5)}return v&&(v[0]=m(e,i,r,l,y),v[1]=m(t,n,s,u,y)),a(C)}function S(e,t,i,n){var r=1-n;return r*(r*e+2*n*t)+n*n*i}function C(e,t,i,n){return 2*((1-n)*(t-e)+n*(i-t))}function A(e,t,i,n,r){var o=e-2*t+i,s=2*(t-e),l=e-n,c=0;if(g(o)){if(v(s)){var u=-l/s;u>=0&&u<=1&&(r[c++]=u)}}else{var h=s*s-4*o*l;if(g(h)){u=-s/(2*o);u>=0&&u<=1&&(r[c++]=u)}else if(h>0){var d=a(h),f=(u=(-s+d)/(2*o),(-s-d)/(2*o));u>=0&&u<=1&&(r[c++]=u),f>=0&&f<=1&&(r[c++]=f)}}return c}function M(e,t,i){var n=e+i-2*t;return 0===n?.5:(e-t)/n}function k(e,t,i,n,r){var o=(t-e)*n+e,s=(i-t)*n+t,a=(s-o)*n+o;r[0]=e,r[1]=o,r[2]=a,r[3]=a,r[4]=s,r[5]=i}function T(e,t,i,n,r,s,l,u,h){var g,v=.005,m=1/0;d[0]=l,d[1]=u;for(var y=0;y<1;y+=.05){f[0]=S(e,i,r,y),f[1]=S(t,n,s,y);var _=o(d,f);_<m&&(g=y,m=_)}m=1/0;for(var x=0;x<32;x++){if(v<c)break;var b=g-v,w=g+v;f[0]=S(e,i,r,b),f[1]=S(t,n,s,b);_=o(f,d);if(b>=0&&_<m)g=b,m=_;else{p[0]=S(e,i,r,w),p[1]=S(t,n,s,w);var C=o(p,d);w<=1&&C<m?(g=w,m=C):v*=.5}}return h&&(h[0]=S(e,i,r,g),h[1]=S(t,n,s,g)),a(m)}t.cubicAt=m,t.cubicDerivativeAt=y,t.cubicRootAt=_,t.cubicExtrema=x,t.cubicSubdivide=b,t.cubicProjectPoint=w,t.quadraticAt=S,t.quadraticDerivativeAt=C,t.quadraticRootAt=A,t.quadraticExtremum=M,t.quadraticSubdivide=k,t.quadraticProjectPoint=T},105:function(e,t,i){var n=i(87190),r=i(58656),o=r.buildTransformer,s="___zrEVENTSAVED",a=[];function l(e,t,i,n,r){return c(a,t,n,r,!0)&&c(e,i,a[0],a[1])}function c(e,t,i,r,o){if(t.getBoundingClientRect&&n.domSupported&&!d(t)){var a=t[s]||(t[s]={}),l=u(t,a),c=h(l,a,o);if(c)return c(e,i,r),!0}return!1}function u(e,t){var i=t.markers;if(i)return i;i=t.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;o<4;o++){var s=document.createElement("div"),a=s.style,l=o%2,c=(o>>1)%2;a.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[c]+":0",n[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(s),i.push(s)}return i}function h(e,t,i){for(var n=i?"invTrans":"trans",r=t[n],s=t.srcCoords,a=!0,l=[],c=[],u=0;u<4;u++){var h=e[u].getBoundingClientRect(),d=2*u,f=h.left,p=h.top;l.push(f,p),a=a&&s&&f===s[d]&&p===s[d+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return a&&r?r:(t.srcCoords=l,t[n]=i?o(c,l):o(l,c))}function d(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=c,t.isCanvasEl=d},87190:function(e){var t={};t="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:n(navigator.userAgent);var i=t;function n(e){var t={},i={},n=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge\/([\d.]+)/),s=/micromessenger/i.test(e);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1]),s&&(i.weChat=!0),{browser:i,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!==typeof document}}e.exports=i},88665:function(e,t,i){var n=i(36112);t.Dispatcher=n;var r=i(87190),o=i(105),s=o.isCanvasEl,a=o.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,c=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function h(e,t,i,n){return i=i||{},n||!r.canvasSupported?d(e,t,i):r.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(i.zrX=t.layerX,i.zrY=t.layerY):null!=t.offsetX?(i.zrX=t.offsetX,i.zrY=t.offsetY):d(e,t,i),i}function d(e,t,i){if(r.domSupported&&e.getBoundingClientRect){var n=t.clientX,o=t.clientY;if(s(e)){var l=e.getBoundingClientRect();return i.zrX=n-l.left,void(i.zrY=o-l.top)}if(a(u,e,n,o))return i.zrX=u[0],void(i.zrY=u[1])}i.zrX=i.zrY=0}function f(e){return e||window.event}function p(e,t,i){if(t=f(t),null!=t.zrX)return t;var n=t.type,r=n&&n.indexOf("touch")>=0;if(r){var o="touchend"!==n?t.targetTouches[0]:t.changedTouches[0];o&&h(e,o,t,i)}else h(e,t,t,i),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var s=t.button;return null==t.which&&void 0!==s&&c.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function g(e,t,i,n){l?e.addEventListener(t,i,n):e.attachEvent("on"+t,i)}function v(e,t,i,n){l?e.removeEventListener(t,i,n):e.detachEvent("on"+t,i)}var m=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function y(e){return 2===e.which||3===e.which}function _(e){return e.which>1}t.clientToLocal=h,t.getNativeEvent=f,t.normalizeEvent=p,t.addEventListener=g,t.removeEventListener=v,t.stop=m,t.isMiddleOrRightButtonOnMouseUpDown=y,t.notLeftMouse=_},58656:function(e,t){var i=Math.log(2);function n(e,t,r,o,s,a){var l=o+"-"+s,c=e.length;if(a.hasOwnProperty(l))return a[l];if(1===t){var u=Math.round(Math.log((1<<c)-1&~s)/i);return e[r][u]}var h=o|1<<r,d=r+1;while(o&1<<d)d++;for(var f=0,p=0,g=0;p<c;p++){var v=1<<p;v&s||(f+=(g%2?-1:1)*e[r][p]*n(e,t-1,d,h,s|v,a),g++)}return a[l]=f,f}function r(e,t){var i=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},o=n(i,8,0,0,0,r);if(0!==o){for(var s=[],a=0;a<8;a++)for(var l=0;l<8;l++)null==s[l]&&(s[l]=0),s[l]+=((a+l)%2?-1:1)*n(i,7,0===a?1:0,1<<a,1<<l,r)/o*t[a];return function(e,t,i){var n=t*s[6]+i*s[7]+1;e[0]=(t*s[0]+i*s[1]+s[2])/n,e[1]=(t*s[3]+i*s[4]+s[5])/n}}}t.buildTransformer=r},1200:function(e){var t=2311;function i(){return t++}e.exports=i},19559:function(e,t,i){var n=i(49999),r=n.debugMode,o=function(){};1===r&&(o=console.error);var s=o;e.exports=s},13388:function(e,t){var i="undefined"===typeof Float32Array?Array:Float32Array;function n(){var e=new i(6);return r(e),e}function r(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function s(e,t,i){var n=t[0]*i[0]+t[2]*i[1],r=t[1]*i[0]+t[3]*i[1],o=t[0]*i[2]+t[2]*i[3],s=t[1]*i[2]+t[3]*i[3],a=t[0]*i[4]+t[2]*i[5]+t[4],l=t[1]*i[4]+t[3]*i[5]+t[5];return e[0]=n,e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e}function a(e,t,i){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+i[0],e[5]=t[5]+i[1],e}function l(e,t,i){var n=t[0],r=t[2],o=t[4],s=t[1],a=t[3],l=t[5],c=Math.sin(i),u=Math.cos(i);return e[0]=n*u+s*c,e[1]=-n*c+s*u,e[2]=r*u+a*c,e[3]=-r*c+u*a,e[4]=u*o+c*l,e[5]=u*l-c*o,e}function c(e,t,i){var n=i[0],r=i[1];return e[0]=t[0]*n,e[1]=t[1]*r,e[2]=t[2]*n,e[3]=t[3]*r,e[4]=t[4]*n,e[5]=t[5]*r,e}function u(e,t){var i=t[0],n=t[2],r=t[4],o=t[1],s=t[3],a=t[5],l=i*s-o*n;return l?(l=1/l,e[0]=s*l,e[1]=-o*l,e[2]=-n*l,e[3]=i*l,e[4]=(n*a-s*r)*l,e[5]=(o*r-i*a)*l,e):null}function h(e){var t=n();return o(t,e),t}t.create=n,t.identity=r,t.copy=o,t.mul=s,t.translate=a,t.rotate=l,t.scale=c,t.invert=u,t.clone=h},33863:function(e){var t=32,i=7;function n(e){var i=0;while(e>=t)i|=1&e,e>>=1;return e+i}function r(e,t,i,n){var r=t+1;if(r===i)return 1;if(n(e[r++],e[t])<0){while(r<i&&n(e[r],e[r-1])<0)r++;o(e,t,r)}else while(r<i&&n(e[r],e[r-1])>=0)r++;return r-t}function o(e,t,i){i--;while(t<i){var n=e[t];e[t++]=e[i],e[i--]=n}}function s(e,t,i,n,r){for(n===t&&n++;n<i;n++){var o,s=e[n],a=t,l=n;while(a<l)o=a+l>>>1,r(s,e[o])<0?l=o:a=o+1;var c=n-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:while(c>0)e[a+c]=e[a+c-1],c--}e[a]=s}}function a(e,t,i,n,r,o){var s=0,a=0,l=1;if(o(e,t[i+r])>0){a=n-r;while(l<a&&o(e,t[i+r+l])>0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}else{a=r+1;while(l<a&&o(e,t[i+r-l])<=0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a);var c=s;s=r-l,l=r-c}s++;while(s<l){var u=s+(l-s>>>1);o(e,t[i+u])>0?s=u+1:l=u}return l}function l(e,t,i,n,r,o){var s=0,a=0,l=1;if(o(e,t[i+r])<0){a=r+1;while(l<a&&o(e,t[i+r-l])<0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a);var c=s;s=r-l,l=r-c}else{a=n-r;while(l<a&&o(e,t[i+r+l])>=0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}s++;while(s<l){var u=s+(l-s>>>1);o(e,t[i+u])<0?l=u:s=u+1}return l}function c(e,t){var n,r,o=i,s=0,c=0;s=e.length;var u=[];function h(e,t){n[c]=e,r[c]=t,c+=1}function d(){while(c>1){var e=c-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;p(e)}}function f(){while(c>1){var e=c-2;e>0&&r[e-1]<r[e+1]&&e--,p(e)}}function p(i){var o=n[i],s=r[i],u=n[i+1],h=r[i+1];r[i]=s+h,i===c-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),c--;var d=l(e[u],e,o,s,0,t);o+=d,s-=d,0!==s&&(h=a(e[o+s-1],e,u,h,h-1,t),0!==h&&(s<=h?g(o,s,u,h):v(o,s,u,h)))}function g(n,r,s,c){var h=0;for(h=0;h<r;h++)u[h]=e[n+h];var d=0,f=s,p=n;if(e[p++]=e[f++],0!==--c)if(1!==r){var g,v,m,y=o;while(1){g=0,v=0,m=!1;do{if(t(e[f],u[d])<0){if(e[p++]=e[f++],v++,g=0,0===--c){m=!0;break}}else if(e[p++]=u[d++],g++,v=0,1===--r){m=!0;break}}while((g|v)<y);if(m)break;do{if(g=l(e[f],u,d,r,0,t),0!==g){for(h=0;h<g;h++)e[p+h]=u[d+h];if(p+=g,d+=g,r-=g,r<=1){m=!0;break}}if(e[p++]=e[f++],0===--c){m=!0;break}if(v=a(u[d],e,f,c,0,t),0!==v){for(h=0;h<v;h++)e[p+h]=e[f+h];if(p+=v,f+=v,c-=v,0===c){m=!0;break}}if(e[p++]=u[d++],1===--r){m=!0;break}y--}while(g>=i||v>=i);if(m)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===r){for(h=0;h<c;h++)e[p+h]=e[f+h];e[p+c]=u[d]}else{if(0===r)throw new Error;for(h=0;h<r;h++)e[p+h]=u[d+h]}}else{for(h=0;h<c;h++)e[p+h]=e[f+h];e[p+c]=u[d]}else for(h=0;h<r;h++)e[p+h]=u[d+h]}function v(n,r,s,c){var h=0;for(h=0;h<c;h++)u[h]=e[s+h];var d=n+r-1,f=c-1,p=s+c-1,g=0,v=0;if(e[p--]=e[d--],0!==--r)if(1!==c){var m=o;while(1){var y=0,_=0,x=!1;do{if(t(u[f],e[d])<0){if(e[p--]=e[d--],y++,_=0,0===--r){x=!0;break}}else if(e[p--]=u[f--],_++,y=0,1===--c){x=!0;break}}while((y|_)<m);if(x)break;do{if(y=r-l(u[f],e,n,r,r-1,t),0!==y){for(p-=y,d-=y,r-=y,v=p+1,g=d+1,h=y-1;h>=0;h--)e[v+h]=e[g+h];if(0===r){x=!0;break}}if(e[p--]=u[f--],1===--c){x=!0;break}if(_=c-a(e[d],u,0,c,c-1,t),0!==_){for(p-=_,f-=_,c-=_,v=p+1,g=f+1,h=0;h<_;h++)e[v+h]=u[g+h];if(c<=1){x=!0;break}}if(e[p--]=e[d--],0===--r){x=!0;break}m--}while(y>=i||_>=i);if(x)break;m<0&&(m=0),m+=2}if(o=m,o<1&&(o=1),1===c){for(p-=r,d-=r,v=p+1,g=d+1,h=r-1;h>=0;h--)e[v+h]=e[g+h];e[p]=u[f]}else{if(0===c)throw new Error;for(g=p-(c-1),h=0;h<c;h++)e[g+h]=u[h]}}else{for(p-=r,d-=r,v=p+1,g=d+1,h=r-1;h>=0;h--)e[v+h]=e[g+h];e[p]=u[f]}else for(g=p-(c-1),h=0;h<c;h++)e[g+h]=u[h]}n=[],r=[],this.mergeRuns=d,this.forceMergeRuns=f,this.pushRun=h}function u(e,i,o,a){o||(o=0),a||(a=e.length);var l=a-o;if(!(l<2)){var u=0;if(l<t)return u=r(e,o,a,i),void s(e,o,a,o+u,i);var h=new c(e,i),d=n(l);do{if(u=r(e,o,a,i),u<d){var f=l;f>d&&(f=d),s(e,o,o+f,o+u,i),u=f}h.pushRun(o,u),h.mergeRuns(),l-=u,o+=u}while(0!==l);h.forceMergeRuns()}}e.exports=u},95289:function(e,t){var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,o=Array.prototype,s=o.forEach,a=o.filter,l=o.slice,c=o.map,u=o.reduce,h={};function d(e,t){"createCanvas"===e&&(y=null),h[e]=t}function f(e){if(null==e||"object"!==typeof e)return e;var t=e,o=r.call(e);if("[object Array]"===o){if(!X(e)){t=[];for(var s=0,a=e.length;s<a;s++)t[s]=f(e[s])}}else if(n[o]){if(!X(e)){var l=e.constructor;if(e.constructor.from)t=l.from(e);else{t=new l(e.length);for(s=0,a=e.length;s<a;s++)t[s]=f(e[s])}}}else if(!i[o]&&!X(e)&&!z(e))for(var c in t={},e)e.hasOwnProperty(c)&&(t[c]=f(e[c]));return t}function p(e,t,i){if(!R(t)||!R(e))return i?f(t):e;for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];!R(o)||!R(r)||D(o)||D(r)||z(o)||z(r)||B(o)||B(r)||X(o)||X(r)?!i&&n in e||(e[n]=f(t[n],!0)):p(r,o,i)}return e}function g(e,t){for(var i=e[0],n=1,r=e.length;n<r;n++)i=p(i,e[n],t);return i}function v(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function m(e,t,i){for(var n in t)t.hasOwnProperty(n)&&(i?null!=t[n]:null==e[n])&&(e[n]=t[n]);return e}var y,_=function(){return h.createCanvas()};function x(){return y||(y=_().getContext("2d")),y}function b(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i}return-1}function w(e,t){var i=e.prototype;function n(){}for(var r in n.prototype=t.prototype,e.prototype=new n,i)i.hasOwnProperty(r)&&(e.prototype[r]=i[r]);e.prototype.constructor=e,e.superClass=t}function S(e,t,i){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,m(e,t,i)}function C(e){if(e)return"string"!==typeof e&&"number"===typeof e.length}function A(e,t,i){if(e&&t)if(e.forEach&&e.forEach===s)e.forEach(t,i);else if(e.length===+e.length)for(var n=0,r=e.length;n<r;n++)t.call(i,e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e)}function M(e,t,i){if(e&&t){if(e.map&&e.map===c)return e.map(t,i);for(var n=[],r=0,o=e.length;r<o;r++)n.push(t.call(i,e[r],r,e));return n}}function k(e,t,i,n){if(e&&t){if(e.reduce&&e.reduce===u)return e.reduce(t,i,n);for(var r=0,o=e.length;r<o;r++)i=t.call(n,i,e[r],r,e);return i}}function T(e,t,i){if(e&&t){if(e.filter&&e.filter===a)return e.filter(t,i);for(var n=[],r=0,o=e.length;r<o;r++)t.call(i,e[r],r,e)&&n.push(e[r]);return n}}function I(e,t,i){if(e&&t)for(var n=0,r=e.length;n<r;n++)if(t.call(i,e[n],n,e))return e[n]}function L(e,t){var i=l.call(arguments,2);return function(){return e.apply(t,i.concat(l.call(arguments)))}}function E(e){var t=l.call(arguments,1);return function(){return e.apply(this,t.concat(l.call(arguments)))}}function D(e){return"[object Array]"===r.call(e)}function O(e){return"function"===typeof e}function P(e){return"[object String]"===r.call(e)}function R(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function B(e){return!!i[r.call(e)]}function N(e){return!!n[r.call(e)]}function z(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function H(e){return e!==e}function F(e){for(var t=0,i=arguments.length;t<i;t++)if(null!=arguments[t])return arguments[t]}function V(e,t){return null!=e?e:t}function j(e,t,i){return null!=e?e:null!=t?t:i}function $(){return Function.call.apply(l,arguments)}function W(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function G(e,t){if(!e)throw new Error(t)}function U(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}h.createCanvas=function(){return document.createElement("canvas")};var q="__ec_primitive__";function Z(e){e[q]=!0}function X(e){return e[q]}function Y(e){var t=D(e);this.data={};var i=this;function n(e,n){t?i.set(e,n):i.set(n,e)}e instanceof Y?e.each(n):e&&A(e,n)}function K(e){return new Y(e)}function J(e,t){for(var i=new e.constructor(e.length+t.length),n=0;n<e.length;n++)i[n]=e[n];var r=e.length;for(n=0;n<t.length;n++)i[n+r]=t[n];return i}function Q(){}Y.prototype={constructor:Y,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var i in void 0!==t&&(e=L(e,t)),this.data)this.data.hasOwnProperty(i)&&e(this.data[i],i)},removeKey:function(e){delete this.data[e]}},t.$override=d,t.clone=f,t.merge=p,t.mergeAll=g,t.extend=v,t.defaults=m,t.createCanvas=_,t.getContext=x,t.indexOf=b,t.inherits=w,t.mixin=S,t.isArrayLike=C,t.each=A,t.map=M,t.reduce=k,t.filter=T,t.find=I,t.bind=L,t.curry=E,t.isArray=D,t.isFunction=O,t.isString=P,t.isObject=R,t.isBuiltInObject=B,t.isTypedArray=N,t.isDom=z,t.eqNaN=H,t.retrieve=F,t.retrieve2=V,t.retrieve3=j,t.slice=$,t.normalizeCssArray=W,t.assert=G,t.trim=U,t.setAsPrimitive=Z,t.isPrimitive=X,t.createHashMap=K,t.concatArray=J,t.noop=Q},31138:function(e,t){var i="undefined"===typeof Float32Array?Array:Float32Array;function n(e,t){var n=new i(2);return null==e&&(e=0),null==t&&(t=0),n[0]=e,n[1]=t,n}function r(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){var t=new i(2);return t[0]=e[0],t[1]=e[1],t}function s(e,t,i){return e[0]=t,e[1]=i,e}function a(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function l(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e}function c(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function u(e){return Math.sqrt(d(e))}var h=u;function d(e){return e[0]*e[0]+e[1]*e[1]}var f=d;function p(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e}function g(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e}function v(e,t){return e[0]*t[0]+e[1]*t[1]}function m(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function y(e,t){var i=u(t);return 0===i?(e[0]=0,e[1]=0):(e[0]=t[0]/i,e[1]=t[1]/i),e}function _(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var x=_;function b(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var w=b;function S(e,t){return e[0]=-t[0],e[1]=-t[1],e}function C(e,t,i,n){return e[0]=t[0]+n*(i[0]-t[0]),e[1]=t[1]+n*(i[1]-t[1]),e}function A(e,t,i){var n=t[0],r=t[1];return e[0]=i[0]*n+i[2]*r+i[4],e[1]=i[1]*n+i[3]*r+i[5],e}function M(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e}function k(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}t.create=n,t.copy=r,t.clone=o,t.set=s,t.add=a,t.scaleAndAdd=l,t.sub=c,t.len=u,t.length=h,t.lenSquare=d,t.lengthSquare=f,t.mul=p,t.div=g,t.dot=v,t.scale=m,t.normalize=y,t.distance=_,t.dist=x,t.distanceSquare=b,t.distSquare=w,t.negate=S,t.lerp=C,t.applyTransform=A,t.min=M,t.max=k},77884:function(e,t,i){var n=i(88665),r=n.addEventListener,o=n.removeEventListener,s=n.normalizeEvent,a=n.getNativeEvent,l=i(95289),c=i(36112),u=i(87190),h=300,d=u.domSupported,f=function(){var e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=l.map(e,(function(e){var t=e.replace("mouse","pointer");return i.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:n}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function g(e){return"mousewheel"===e&&u.browser.firefox?"DOMMouseScroll":e}function v(e){var t=e.pointerType;return"pen"===t||"touch"===t}function m(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function y(e){e&&(e.zrByTouch=!0)}function _(e,t){return s(e.dom,new b(e,t),!0)}function x(e,t){var i=t,n=!1;while(i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==t&&i===e.painterRoot))i=i.parentNode;return n}function b(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var w=b.prototype;w.stopPropagation=w.stopImmediatePropagation=w.preventDefault=l.noop;var S={mousedown:function(e){e=s(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=s(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||I(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=s(this.dom,e),I(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=s(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=x(this,t),this.trigger("mouseout",e)},touchstart:function(e){e=s(this.dom,e),y(e),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),S.mousemove.call(this,e),S.mousedown.call(this,e)},touchmove:function(e){e=s(this.dom,e),y(e),this.handler.processGesture(e,"change"),S.mousemove.call(this,e)},touchend:function(e){e=s(this.dom,e),y(e),this.handler.processGesture(e,"end"),S.mouseup.call(this,e),+new Date-this._lastTouchMoment<h&&S.click.call(this,e)},pointerdown:function(e){S.mousedown.call(this,e)},pointermove:function(e){v(e)||S.mousemove.call(this,e)},pointerup:function(e){S.mouseup.call(this,e)},pointerout:function(e){v(e)||S.mouseout.call(this,e)}};l.each(["click","mousewheel","dblclick","contextmenu"],(function(e){S[e]=function(t){t=s(this.dom,t),this.trigger(e,t)}}));var C={pointermove:function(e){v(e)||C.mousemove.call(this,e)},pointerup:function(e){C.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;I(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function A(e,t){var i=t.domHandlers;u.pointerEventsSupported?l.each(f.pointer,(function(n){k(t,n,(function(t){i[n].call(e,t)}))})):(u.touchEventsSupported&&l.each(f.touch,(function(n){k(t,n,(function(r){i[n].call(e,r),m(t)}))})),l.each(f.mouse,(function(n){k(t,n,(function(r){r=a(r),t.touching||i[n].call(e,r)}))})))}function M(e,t){function i(i){function n(n){n=a(n),x(e,n.target)||(n=_(e,n),t.domHandlers[i].call(e,n))}k(t,i,n,{capture:!0})}u.pointerEventsSupported?l.each(p.pointer,i):u.touchEventsSupported||l.each(p.mouse,i)}function k(e,t,i,n){e.mounted[t]=i,e.listenerOpts[t]=n,r(e.domTarget,g(t),i,n)}function T(e){var t=e.mounted;for(var i in t)t.hasOwnProperty(i)&&o(e.domTarget,g(i),t[i],e.listenerOpts[i]);e.mounted={}}function I(e,t){if(e._mayPointerCapture=null,d&&e._pointerCapturing^t){e._pointerCapturing=t;var i=e._globalHandlerScope;t?M(e,i):T(i)}}function L(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function E(e,t){c.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new L(e,S),d&&(this._globalHandlerScope=new L(document,C)),this._pointerCapturing=!1,this._mayPointerCapture=null,A(this,this._localHandlerScope)}var D=E.prototype;D.dispose=function(){T(this._localHandlerScope),d&&T(this._globalHandlerScope)},D.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},l.mixin(E,c);var O=E;e.exports=O},24582:function(e,t,i){var n=i(66343),r=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,i=0;i<t.length;i++)e=e||t[i].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(t[0],t[1],e[i].segmentIgnoreThreshold)},buildPath:function(e,t){for(var i=t.paths||[],n=0;n<i.length;n++)i[n].buildPath(e,i[n].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),n.prototype.getBoundingRect.call(this)}});e.exports=r},44232:function(e,t,i){var n=i(95289),r=i(96727),o=i(42073),s=i(81619);function a(e){for(var t in e=e||{},o.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new r(e.style,this),this._rect=null,this.__clipPaths=null}a.prototype={constructor:a,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?o.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new r(e,this),this.dirty(!1),this},calculateTextPosition:null},n.inherits(a,o),n.mixin(a,s);var l=a;e.exports=l},44696:function(e){var t=function(e){this.colorStops=e||[]};t.prototype={constructor:t,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var i=t;e.exports=i},1635:function(e,t,i){var n=i(44232),r=i(39587),o=i(95289),s=i(30098);function a(e){n.call(this,e)}a.prototype={constructor:a,type:"image",brush:function(e,t){var i=this.style,n=i.image;i.bind(e,this,t);var r=this._image=s.createOrUpdateImage(n,this._image,this,this.onload);if(r&&s.isImageReady(r)){var o=i.x||0,a=i.y||0,l=i.width,c=i.height,u=r.width/r.height;if(null==l&&null!=c?l=c*u:null==c&&null!=l?c=l/u:null==l&&null==c&&(l=r.width,c=r.height),this.setTransform(e),i.sWidth&&i.sHeight){var h=i.sx||0,d=i.sy||0;e.drawImage(r,h,d,i.sWidth,i.sHeight,o,a,l,c)}else if(i.sx&&i.sy){h=i.sx,d=i.sy;var f=l-h,p=c-d;e.drawImage(r,h,d,f,p,o,a,l,c)}else e.drawImage(r,o,a,l,c);null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new r(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},o.inherits(a,n);var l=a;e.exports=l},48458:function(e,t,i){var n=i(95289),r=n.inherits,o=i(44232),s=i(39587);function a(e){o.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}a.prototype.incremental=!0,a.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},a.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},a.prototype.addDisplayables=function(e,t){t=t||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],t)},a.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},a.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},a.prototype.brush=function(e,t){for(var i=this._cursor;i<this._displayables.length;i++){var n=this._displayables[i];n.beforeBrush&&n.beforeBrush(e),n.brush(e,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(e)}this._cursor=i;for(i=0;i<this._temporaryDisplayables.length;i++){n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(e),n.brush(e,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];a.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new s(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var i=this._displayables[t],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(l)),e.union(n)}this._rect=e}return this._rect},a.prototype.contain=function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(e,t))return!0}return!1},r(a,o);var c=a;e.exports=c},25113:function(e,t,i){var n=i(95289),r=i(44696),o=function(e,t,i,n,o,s){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=s||!1,r.call(this,o)};o.prototype={constructor:o},n.inherits(o,r);var s=o;e.exports=s},66343:function(e,t,i){var n=i(44232),r=i(95289),o=i(17004),s=i(70703),a=i(94364),l=a.prototype.getCanvasPattern,c=Math.abs,u=new o(!0);function h(e){n.call(this,e),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var i,n=this.style,r=this.path||u,o=n.hasStroke(),s=n.hasFill(),a=n.fill,c=n.stroke,h=s&&!!a.colorStops,d=o&&!!c.colorStops,f=s&&!!a.image,p=o&&!!c.image;(n.bind(e,this,t),this.setTransform(e),this.__dirty)&&(h&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(e,a,i)),d&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(e,c,i)));h?e.fillStyle=this._fillGradient:f&&(e.fillStyle=l.call(a,e)),d?e.strokeStyle=this._strokeGradient:p&&(e.strokeStyle=l.call(c,e));var g=n.lineDash,v=n.lineDashOffset,m=!!e.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!m&&o?(r.beginPath(e),g&&!m&&(r.setLineDash(g),r.setLineDashOffset(v)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),s)if(null!=n.fillOpacity){var _=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,r.fill(e),e.globalAlpha=_}else r.fill(e);if(g&&m&&(e.setLineDash(g),e.lineDashOffset=v),o)if(null!=n.strokeOpacity){_=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,r.stroke(e),e.globalAlpha=_}else r.stroke(e);g&&m&&e.setLineDash([]),null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,i){},createPathProxy:function(){this.path=new o},getBoundingRect:function(){var e=this._rect,t=this.style,i=!e;if(i){var n=this.path;n||(n=this.path=new o),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),e=n.getBoundingRect()}if(this._rect=e,t.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||i){r.copy(e);var s=t.lineWidth,a=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(s=Math.max(s,this.strokeContainThreshold||4)),a>1e-10&&(r.width+=s/a,r.height+=s/a,r.x-=s/a/2,r.y-=s/a/2)}return r}return e},contain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),r=this.style;if(e=i[0],t=i[1],n.contain(e,t)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),s.containStroke(o,a/l,e,t)))return!0}if(r.hasFill())return s.contain(o,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var i=this.shape;if(i){if(r.isObject(e))for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);else i[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1}},h.extend=function(e){var t=function(t){h.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var i=e.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var r in i)!n.hasOwnProperty(r)&&i.hasOwnProperty(r)&&(n[r]=i[r])}e.init&&e.init.call(this,t)};for(var i in r.inherits(t,h),e)"style"!==i&&"shape"!==i&&(t.prototype[i]=e[i]);return t},r.inherits(h,n);var d=h;e.exports=d},94364:function(e){var t=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};t.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var i=t;e.exports=i},78051:function(e,t,i){var n=i(95289),r=i(44696),o=function(e,t,i,n,o){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==i?.5:i,this.type="radial",this.global=o||!1,r.call(this,n)};o.prototype={constructor:o},n.inherits(o,r);var s=o;e.exports=s},96727:function(e,t,i){var n=i(64180),r=i(90592),o=r.ContextCachedBy,s=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],a=function(e){this.extendFrom(e,!1)};function l(e,t,i){var n=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,s=null==t.y2?0:t.y2;t.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,s=s*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,s=isNaN(s)?0:s;var a=e.createLinearGradient(n,o,r,s);return a}function c(e,t,i){var n=i.width,r=i.height,o=Math.min(n,r),s=null==t.x?.5:t.x,a=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(s=s*n+i.x,a=a*r+i.y,l*=o);var c=e.createRadialGradient(s,a,0,s,a,l);return c}a.prototype={constructor:a,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,i){var r=this,a=i&&i.style,l=!a||e.__attrCachedBy!==o.STYLE_BIND;e.__attrCachedBy=o.STYLE_BIND;for(var c=0;c<s.length;c++){var u=s[c],h=u[0];(l||r[h]!==a[h])&&(e[h]=n(e,h,r[h]||u[1]))}if((l||r.fill!==a.fill)&&(e.fillStyle=r.fill),(l||r.stroke!==a.stroke)&&(e.strokeStyle=r.stroke),(l||r.opacity!==a.opacity)&&(e.globalAlpha=null==r.opacity?1:r.opacity),(l||r.blend!==a.blend)&&(e.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var d=r.lineWidth;e.lineWidth=d/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var i in e)!e.hasOwnProperty(i)||!0!==t&&(!1===t?this.hasOwnProperty(i):null==e[i])||(this[i]=e[i])},set:function(e,t){"string"===typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,i){for(var n="radial"===t.type?c:l,r=n(e,t,i),o=t.colorStops,s=0;s<o.length;s++)r.addColorStop(o[s].offset,o[s].color);return r}};for(var u=a.prototype,h=0;h<s.length;h++){var d=s[h];d[0]in u||(u[d[0]]=d[1])}a.getGradient=u.getGradient;var f=a;e.exports=f},21927:function(e,t,i){var n=i(44232),r=i(95289),o=i(43407),s=i(95112),a=i(90592),l=a.ContextCachedBy,c=function(e){n.call(this,e)};c.prototype={constructor:c,type:"text",brush:function(e,t){var i=this.style;this.__dirty&&s.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),s.needDrawText(n,i)?(this.setTransform(e),s.renderText(this,e,n,i,null,t),this.restoreTransform(e)):e.__attrCachedBy=l.NONE},getBoundingRect:function(){var e=this.style;if(this.__dirty&&s.normalizeTextStyle(e,!0),!this._rect){var t=e.text;null!=t?t+="":t="";var i=o.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(i.x+=e.x||0,i.y+=e.y||0,s.getStroke(e.textStroke,e.textStrokeWidth)){var n=e.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},r.inherits(c,n);var u=c;e.exports=u},90592:function(e,t){var i={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},n=9;t.ContextCachedBy=i,t.WILL_BE_RESTORED=n},58458:function(e,t,i){var n=i(87190),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function o(e){return n.browser.ie&&n.browser.version>=11?function(){var t,i=this.__clipPaths,n=this.style;if(i)for(var o=0;o<i.length;o++){var s=i[o],a=s&&s.shape,l=s&&s.type;if(a&&("sector"===l&&a.startAngle===a.endAngle||"rect"===l&&(!a.width||!a.height))){for(var c=0;c<r.length;c++)r[c][2]=n[r[c][0]],n[r[c][0]]=r[c][1];t=!0;break}}if(e.apply(this,arguments),t)for(c=0;c<r.length;c++)n[r[c][0]]=r[c][2]}:e}e.exports=o},64180:function(e){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function i(e,i,n){return t.hasOwnProperty(i)?n*e.dpr:n}e.exports=i},30098:function(e,t,i){var n=i(60348),r=new n(50);function o(e){if("string"===typeof e){var t=r.get(e);return t&&t.image}return e}function s(e,t,i,n,o){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!i)return t;var s=r.get(e),c={hostEl:i,cb:n,cbPayload:o};return s?(t=s.image,!l(t)&&s.pending.push(c)):(t=new Image,t.onload=t.onerror=a,r.put(e,t.__cachedImgObj={image:t,pending:[c]}),t.src=t.__zrImageSrc=e),t}return e}return t}function a(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var i=e.pending[t],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}e.pending.length=0}function l(e){return e&&e.width&&e.height}t.findExistImage=o,t.createOrUpdateImage=s,t.isImageReady=l},18205:function(e,t,i){var n=i(68504),r=i(73342);function o(e,t,i){var o=t.points,s=t.smooth;if(o&&o.length>=2){if(s&&"spline"!==s){var a=r(o,s,i,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var l=o.length,c=0;c<(i?l:l-1);c++){var u=a[2*c],h=a[2*c+1],d=o[(c+1)%l];e.bezierCurveTo(u[0],u[1],h[0],h[1],d[0],d[1])}}else{"spline"===s&&(o=n(o,i)),e.moveTo(o[0][0],o[0][1]);c=1;for(var f=o.length;c<f;c++)e.lineTo(o[c][0],o[c][1])}i&&e.closePath()}}t.buildPath=o},29621:function(e,t){function i(e,t){var i,n,r,o,s,a=t.x,l=t.y,c=t.width,u=t.height,h=t.r;c<0&&(a+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0,i+n>c&&(s=i+n,i*=c/s,n*=c/s),r+o>c&&(s=r+o,r*=c/s,o*=c/s),n+r>u&&(s=n+r,n*=u/s,r*=u/s),i+o>u&&(s=i+o,i*=u/s,o*=u/s),e.moveTo(a+i,l),e.lineTo(a+c-n,l),0!==n&&e.arc(a+c-n,l+n,n,-Math.PI/2,0),e.lineTo(a+c,l+u-r),0!==r&&e.arc(a+c-r,l+u-r,r,0,Math.PI/2),e.lineTo(a+o,l+u),0!==o&&e.arc(a+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(a,l+i),0!==i&&e.arc(a+i,l+i,i,Math.PI,1.5*Math.PI)}t.buildPath=i},73342:function(e,t,i){var n=i(31138),r=n.min,o=n.max,s=n.scale,a=n.distance,l=n.add,c=n.clone,u=n.sub;function h(e,t,i,n){var h,d,f,p,g=[],v=[],m=[],y=[];if(n){f=[1/0,1/0],p=[-1/0,-1/0];for(var _=0,x=e.length;_<x;_++)r(f,f,e[_]),o(p,p,e[_]);r(f,f,n[0]),o(p,p,n[1])}for(_=0,x=e.length;_<x;_++){var b=e[_];if(i)h=e[_?_-1:x-1],d=e[(_+1)%x];else{if(0===_||_===x-1){g.push(c(e[_]));continue}h=e[_-1],d=e[_+1]}u(v,d,h),s(v,v,t);var w=a(b,h),S=a(b,d),C=w+S;0!==C&&(w/=C,S/=C),s(m,v,-w),s(y,v,S);var A=l([],b,m),M=l([],b,y);n&&(o(A,A,f),r(A,A,p),o(M,M,f),r(M,M,p)),g.push(A),g.push(M)}return i&&g.push(g.shift()),g}e.exports=h},68504:function(e,t,i){var n=i(31138),r=n.distance;function o(e,t,i,n,r,o,s){var a=.5*(i-e),l=.5*(n-t);return(2*(t-i)+a+l)*s+(-3*(t-i)-2*a-l)*o+a*r+t}function s(e,t){for(var i=e.length,n=[],s=0,a=1;a<i;a++)s+=r(e[a-1],e[a]);var l=s/2;l=l<i?i:l;for(a=0;a<l;a++){var c,u,h,d=a/(l-1)*(t?i:i-1),f=Math.floor(d),p=d-f,g=e[f%i];t?(c=e[(f-1+i)%i],u=e[(f+1)%i],h=e[(f+2)%i]):(c=e[0===f?f:f-1],u=e[f>i-2?i-1:f+1],h=e[f>i-3?i-1:f+2]);var v=p*p,m=p*v;n.push([o(c[0],g[0],u[0],h[0],p,v,m),o(c[1],g[1],u[1],h[1],p,v,m)])}return n}e.exports=s},32250:function(e,t){var i=Math.round;function n(e,t,n){if(t){var r=t.x1,s=t.x2,a=t.y1,l=t.y2;e.x1=r,e.x2=s,e.y1=a,e.y2=l;var c=n&&n.lineWidth;c&&(i(2*r)===i(2*s)&&(e.x1=e.x2=o(r,c,!0)),i(2*a)===i(2*l)&&(e.y1=e.y2=o(a,c,!0)))}}function r(e,t,i){if(t){var n=t.x,r=t.y,s=t.width,a=t.height;e.x=n,e.y=r,e.width=s,e.height=a;var l=i&&i.lineWidth;l&&(e.x=o(n,l,!0),e.y=o(r,l,!0),e.width=Math.max(o(n+s,l,!1)-e.x,0===s?0:1),e.height=Math.max(o(r+a,l,!1)-e.y,0===a?0:1))}}function o(e,t,n){if(!t)return e;var r=i(2*e);return(r+i(t))%2===0?r/2:(r+(n?1:-1))/2}t.subPixelOptimizeLine=n,t.subPixelOptimizeRect=r,t.subPixelOptimize=o},95112:function(e,t,i){var n=i(95289),r=n.retrieve2,o=n.retrieve3,s=n.each,a=n.normalizeCssArray,l=n.isString,c=n.isObject,u=i(43407),h=i(29621),d=i(30098),f=i(64180),p=i(90592),g=p.ContextCachedBy,v=p.WILL_BE_RESTORED,m=u.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},x=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(e){return C(e),s(e.rich,C),e}function C(e){if(e){e.font=u.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||y[t]?t:"left";var i=e.textVerticalAlign||e.textBaseline;"center"===i&&(i="middle"),e.textVerticalAlign=null==i||_[i]?i:"top";var n=e.textPadding;n&&(e.textPadding=a(e.textPadding))}}function A(e,t,i,n,r,o){n.rich?k(e,t,i,n,r,o):M(e,t,i,n,r,o)}function M(e,t,i,n,r,o){"use strict";var s,a=E(n),l=!1,c=t.__attrCachedBy===g.PLAIN_TEXT;o!==v?(o&&(s=o.style,l=!a&&c&&s),t.__attrCachedBy=a?g.NONE:g.PLAIN_TEXT):c&&(t.__attrCachedBy=g.NONE);var h=n.font||m;l&&h===(s.font||m)||(t.font=h);var d=e.__computedFont;e.__styleFont!==h&&(e.__styleFont=h,d=e.__computedFont=t.font);var p=n.textPadding,y=n.textLineHeight,_=e.__textCotentBlock;_&&!e.__dirtyText||(_=e.__textCotentBlock=u.parsePlainText(i,d,p,y,n.truncate));var b=_.outerHeight,S=_.lines,C=_.lineHeight,A=P(w,e,n,r),M=A.baseX,k=A.baseY,T=A.textAlign||"left",L=A.textVerticalAlign;I(t,n,r,M,k);var O=u.adjustTextY(k,b,L),R=M,z=O;if(a||p){var F=u.getWidth(i,d),V=F;p&&(V+=p[1]+p[3]);var j=u.adjustTextX(M,V,T);a&&D(e,t,n,j,O,V,b),p&&(R=H(M,T,p),z+=p[0])}t.textAlign=T,t.textBaseline="middle",t.globalAlpha=n.opacity||1;for(var $=0;$<x.length;$++){var W=x[$],G=W[0],U=W[1],q=n[G];l&&q===s[G]||(t[U]=f(t,U,q||W[2]))}z+=C/2;var Z=n.textStrokeWidth,X=l?s.textStrokeWidth:null,Y=!l||Z!==X,K=!l||Y||n.textStroke!==s.textStroke,J=B(n.textStroke,Z),Q=N(n.textFill);if(J&&(Y&&(t.lineWidth=Z),K&&(t.strokeStyle=J)),Q&&(l&&n.textFill===s.textFill||(t.fillStyle=Q)),1===S.length)J&&t.strokeText(S[0],R,z),Q&&t.fillText(S[0],R,z);else for($=0;$<S.length;$++)J&&t.strokeText(S[$],R,z),Q&&t.fillText(S[$],R,z),z+=C}function k(e,t,i,n,r,o){o!==v&&(t.__attrCachedBy=g.NONE);var s=e.__textCotentBlock;s&&!e.__dirtyText||(s=e.__textCotentBlock=u.parseRichText(i,n)),T(e,t,s,n,r)}function T(e,t,i,n,r){var o=i.width,s=i.outerWidth,a=i.outerHeight,l=n.textPadding,c=P(w,e,n,r),h=c.baseX,d=c.baseY,f=c.textAlign,p=c.textVerticalAlign;I(t,n,r,h,d);var g=u.adjustTextX(h,s,f),v=u.adjustTextY(d,a,p),m=g,y=v;l&&(m+=l[3],y+=l[0]);var _=m+o;E(n)&&D(e,t,n,g,v,s,a);for(var x=0;x<i.lines.length;x++){var b,S=i.lines[x],C=S.tokens,A=C.length,M=S.lineHeight,k=S.width,T=0,O=m,R=_,B=A-1;while(T<A&&(b=C[T],!b.textAlign||"left"===b.textAlign))L(e,t,b,n,M,y,O,"left"),k-=b.width,O+=b.width,T++;while(B>=0&&(b=C[B],"right"===b.textAlign))L(e,t,b,n,M,y,R,"right"),k-=b.width,R-=b.width,B--;O+=(o-(O-m)-(_-R)-k)/2;while(T<=B)b=C[T],L(e,t,b,n,M,y,O+b.width/2,"center"),O+=b.width,T++;y+=M}}function I(e,t,i,n,r){if(i&&t.textRotation){var o=t.textOrigin;"center"===o?(n=i.width/2+i.x,r=i.height/2+i.y):o&&(n=o[0]+i.x,r=o[1]+i.y),e.translate(n,r),e.rotate(-t.textRotation),e.translate(-n,-r)}}function L(e,t,i,n,s,a,l,c){var u=n.rich[i.styleName]||{};u.text=i.text;var h=i.textVerticalAlign,d=a+s/2;"top"===h?d=a+i.height/2:"bottom"===h&&(d=a+s-i.height/2),!i.isLineHolder&&E(u)&&D(e,t,u,"right"===c?l-i.width:"center"===c?l-i.width/2:l,d-i.height/2,i.width,i.height);var f=i.textPadding;f&&(l=H(l,c,f),d-=i.height/2-f[2]-i.textHeight/2),R(t,"shadowBlur",o(u.textShadowBlur,n.textShadowBlur,0)),R(t,"shadowColor",u.textShadowColor||n.textShadowColor||"transparent"),R(t,"shadowOffsetX",o(u.textShadowOffsetX,n.textShadowOffsetX,0)),R(t,"shadowOffsetY",o(u.textShadowOffsetY,n.textShadowOffsetY,0)),R(t,"textAlign",c),R(t,"textBaseline","middle"),R(t,"font",i.font||m);var p=B(u.textStroke||n.textStroke,v),g=N(u.textFill||n.textFill),v=r(u.textStrokeWidth,n.textStrokeWidth);p&&(R(t,"lineWidth",v),R(t,"strokeStyle",p),t.strokeText(i.text,l,d)),g&&(R(t,"fillStyle",g),t.fillText(i.text,l,d))}function E(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function D(e,t,i,n,r,o,s){var a=i.textBackgroundColor,u=i.textBorderWidth,f=i.textBorderColor,p=l(a);if(R(t,"shadowBlur",i.textBoxShadowBlur||0),R(t,"shadowColor",i.textBoxShadowColor||"transparent"),R(t,"shadowOffsetX",i.textBoxShadowOffsetX||0),R(t,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||u&&f){t.beginPath();var g=i.textBorderRadius;g?h.buildPath(t,{x:n,y:r,width:o,height:s,r:g}):t.rect(n,r,o,s),t.closePath()}if(p)if(R(t,"fillStyle",a),null!=i.fillOpacity){var v=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,t.fill(),t.globalAlpha=v}else t.fill();else if(c(a)){var m=a.image;m=d.createOrUpdateImage(m,null,e,O,a),m&&d.isImageReady(m)&&t.drawImage(m,n,r,o,s)}if(u&&f)if(R(t,"lineWidth",u),R(t,"strokeStyle",f),null!=i.strokeOpacity){v=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,t.stroke(),t.globalAlpha=v}else t.stroke()}function O(e,t){t.image=e}function P(e,t,i,n){var r=i.x||0,o=i.y||0,s=i.textAlign,a=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)r=n.x+z(l[0],n.width),o=n.y+z(l[1],n.height);else{var c=t&&t.calculateTextPosition?t.calculateTextPosition(b,i,n):u.calculateTextPosition(b,i,n);r=c.x,o=c.y,s=s||c.textAlign,a=a||c.textVerticalAlign}var h=i.textOffset;h&&(r+=h[0],o+=h[1])}return e=e||{},e.baseX=r,e.baseY=o,e.textAlign=s,e.textVerticalAlign=a,e}function R(e,t,i){return e[t]=f(e,t,i),e[t]}function B(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function N(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function z(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function H(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function F(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=S,t.renderText=A,t.getBoxPosition=P,t.getStroke=B,t.getFill=N,t.parsePercent=z,t.needDrawText=F},81619:function(e,t,i){var n=i(95112),r=i(39587),o=i(90592),s=o.WILL_BE_RESTORED,a=new r,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var r=i.text;if(null!=r&&(r+=""),n.needDrawText(r,i)){e.save();var o=this.transform;i.transformText?this.setTransform(e):o&&(a.copy(t),a.applyTransform(o),t=a),n.renderText(this,e,r,i,t,s),e.restore()}}};var c=l;e.exports=c},64336:function(e,t,i){var n=i(66343),r=n.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.cx,n=t.cy,r=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,a=t.clockwise,l=Math.cos(o),c=Math.sin(o);e.moveTo(l*r+i,c*r+n),e.arc(i,n,r,o,s,!a)}});e.exports=r},77402:function(e,t,i){var n=i(66343),r=i(31138),o=i(35574),s=o.quadraticSubdivide,a=o.cubicSubdivide,l=o.quadraticAt,c=o.cubicAt,u=o.quadraticDerivativeAt,h=o.cubicDerivativeAt,d=[];function f(e,t,i){var n=e.cpx2,r=e.cpy2;return null===n||null===r?[(i?h:c)(e.x1,e.cpx1,e.cpx2,e.x2,t),(i?h:c)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(i?u:l)(e.x1,e.cpx1,e.x2,t),(i?u:l)(e.y1,e.cpy1,e.y2,t)]}var p=n.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.x1,n=t.y1,r=t.x2,o=t.y2,l=t.cpx1,c=t.cpy1,u=t.cpx2,h=t.cpy2,f=t.percent;0!==f&&(e.moveTo(i,n),null==u||null==h?(f<1&&(s(i,l,r,f,d),l=d[1],r=d[2],s(n,c,o,f,d),c=d[1],o=d[2]),e.quadraticCurveTo(l,c,r,o)):(f<1&&(a(i,l,u,r,f,d),l=d[1],u=d[2],r=d[3],a(n,c,h,o,f,d),c=d[1],h=d[2],o=d[3]),e.bezierCurveTo(l,c,u,h,r,o)))},pointAt:function(e){return f(this.shape,e,!1)},tangentAt:function(e){var t=f(this.shape,e,!0);return r.normalize(t,t)}});e.exports=p},30074:function(e,t,i){var n=i(66343),r=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,i){i&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=r},34586:function(e,t,i){var n=i(66343),r=n.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var i=.5522848,n=t.cx,r=t.cy,o=t.rx,s=t.ry,a=o*i,l=s*i;e.moveTo(n-o,r),e.bezierCurveTo(n-o,r-l,n-a,r-s,n,r-s),e.bezierCurveTo(n+a,r-s,n+o,r-l,n+o,r),e.bezierCurveTo(n+o,r+l,n+a,r+s,n,r+s),e.bezierCurveTo(n-a,r+s,n-o,r+l,n-o,r),e.closePath()}});e.exports=r},91636:function(e,t,i){var n=i(66343),r=i(32250),o=r.subPixelOptimizeLine,s={},a=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i,n,r,a;this.subPixelOptimize?(o(s,t,this.style),i=s.x1,n=s.y1,r=s.x2,a=s.y2):(i=t.x1,n=t.y1,r=t.x2,a=t.y2);var l=t.percent;0!==l&&(e.moveTo(i,n),l<1&&(r=i*(1-l)+r*l,a=n*(1-l)+a*l),e.lineTo(r,a))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=a},24570:function(e,t,i){var n=i(66343),r=i(18205),o=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){r.buildPath(e,t,!0)}});e.exports=o},65542:function(e,t,i){var n=i(66343),r=i(18205),o=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){r.buildPath(e,t,!1)}});e.exports=o},15404:function(e,t,i){var n=i(66343),r=i(29621),o=i(32250),s=o.subPixelOptimizeRect,a={},l=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var i,n,o,l;this.subPixelOptimize?(s(a,t,this.style),i=a.x,n=a.y,o=a.width,l=a.height,a.r=t.r,t=a):(i=t.x,n=t.y,o=t.width,l=t.height),t.r?r.buildPath(e,t):e.rect(i,n,o,l),e.closePath()}});e.exports=l},39496:function(e,t,i){var n=i(66343),r=n.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var i=t.cx,n=t.cy,r=2*Math.PI;e.moveTo(i+t.r,n),e.arc(i,n,t.r,0,r,!1),e.moveTo(i+t.r0,n),e.arc(i,n,t.r0,0,r,!0)}});e.exports=r},91036:function(e,t,i){var n=i(66343),r=i(58458),o=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r(n.prototype.brush),buildPath:function(e,t){var i=t.cx,n=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),s=t.startAngle,a=t.endAngle,l=t.clockwise,c=Math.cos(s),u=Math.sin(s);e.moveTo(c*r+i,u*r+n),e.lineTo(c*o+i,u*o+n),e.arc(i,n,o,s,a,!l),e.lineTo(Math.cos(a)*r+i,Math.sin(a)*r+n),0!==r&&e.arc(i,n,r,a,s,l),e.closePath()}});e.exports=o},31615:function(e,t,i){var n=i(56831),r=i(19559),o=i(95289),s=o.isString,a=o.isFunction,l=o.isObject,c=o.isArrayLike,u=o.indexOf,h=function(){this.animators=[]};function d(e,t,i,n,r,o,l,c){s(n)?(o=r,r=n,n=0):a(r)?(o=r,r="linear",n=0):a(n)?(o=n,n=0):a(i)?(o=i,i=500):i||(i=500),e.stopAnimation(),f(e,"",e,t,i,n,c);var u=e.animators.slice(),h=u.length;function d(){h--,h||o&&o()}h||o&&o();for(var p=0;p<u.length;p++)u[p].done(d).start(r,l)}function f(e,t,i,n,r,o,s){var a={},u=0;for(var h in n)n.hasOwnProperty(h)&&(null!=i[h]?l(n[h])&&!c(n[h])?f(e,t?t+"."+h:h,i[h],n[h],r,o,s):(s?(a[h]=i[h],p(e,t,h,n[h])):a[h]=n[h],u++):null==n[h]||s||p(e,t,h,n[h]));u>0&&e.animate(t,!1).when(null==r?500:r,a).delay(o||0)}function p(e,t,i,n){if(t){var r={};r[t]={},r[t][i]=n,e.attr(r)}else e.attr(i,n)}h.prototype={constructor:h,animate:function(e,t){var i,o=!1,s=this,a=this.__zr;if(e){var l=e.split("."),c=s;o="shape"===l[0];for(var h=0,d=l.length;h<d;h++)c&&(c=c[l[h]]);c&&(i=c)}else i=s;if(i){var f=s.animators,p=new n(i,t);return p.during((function(e){s.dirty(o)})).done((function(){f.splice(u(f,p),1)})),f.push(p),a&&a.animation.addAnimator(p),p}r('Property "'+e+'" is not existed in element '+s.id)},stopAnimation:function(e){for(var t=this.animators,i=t.length,n=0;n<i;n++)t[n].stop(e);return t.length=0,this},animateTo:function(e,t,i,n,r,o){d(this,e,t,i,n,r,o)},animateFrom:function(e,t,i,n,r,o){d(this,e,t,i,n,r,o,!0)}};var g=h;e.exports=g},89944:function(e){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function i(e,t){return{target:e,topTarget:t&&t.topTarget}}t.prototype={constructor:t,_dragStart:function(e){var t=e.target;while(t&&!t.draggable)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(i(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,o=n-this._x,s=r-this._y;this._x=n,this._y=r,t.drift(o,s,e),this.dispatchToElement(i(t,e),"drag",e.event);var a=this.findHover(n,r,t).target,l=this._dropTarget;this._dropTarget=a,t!==a&&(l&&a!==l&&this.dispatchToElement(i(l,e),"dragleave",e.event),a&&a!==l&&this.dispatchToElement(i(a,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(i(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(i(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var n=t;e.exports=n},36112:function(e){var t=Array.prototype.slice,i=function(e){this._$handlers={},this._$eventProcessor=e};function n(e,t){var i=e._$eventProcessor;return null!=t&&i&&i.normalizeQuery&&(t=i.normalizeQuery(t)),t}function r(e,t,i,r,o,s){var a=e._$handlers;if("function"===typeof i&&(o=r,r=i,i=null),!r||!t)return e;i=n(e,i),a[t]||(a[t]=[]);for(var l=0;l<a[t].length;l++)if(a[t][l].h===r)return e;var c={h:r,one:s,query:i,ctx:o||e,callAtLast:r.zrEventfulCallAtLast},u=a[t].length-1,h=a[t][u];return h&&h.callAtLast?a[t].splice(u,0,c):a[t].push(c),e}i.prototype={constructor:i,one:function(e,t,i,n){return r(this,e,t,i,n,!0)},on:function(e,t,i,n){return r(this,e,t,i,n,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var i=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],r=0,o=i[e].length;r<o;r++)i[e][r].h!==t&&n.push(i[e][r]);i[e]=n}i[e]&&0===i[e].length&&delete i[e]}else delete i[e];return this},trigger:function(e){var i=this._$handlers[e],n=this._$eventProcessor;if(i){var r=arguments,o=r.length;o>3&&(r=t.call(r,1));for(var s=i.length,a=0;a<s;){var l=i[a];if(n&&n.filter&&null!=l.query&&!n.filter(e,l.query))a++;else{switch(o){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,r[1]);break;case 3:l.h.call(l.ctx,r[1],r[2]);break;default:l.h.apply(l.ctx,r);break}l.one?(i.splice(a,1),s--):a++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this},triggerWithContext:function(e){var i=this._$handlers[e],n=this._$eventProcessor;if(i){var r=arguments,o=r.length;o>4&&(r=t.call(r,1,r.length-1));for(var s=r[r.length-1],a=i.length,l=0;l<a;){var c=i[l];if(n&&n.filter&&null!=c.query&&!n.filter(e,c.query))l++;else{switch(o){case 1:c.h.call(s);break;case 2:c.h.call(s,r[1]);break;case 3:c.h.call(s,r[1],r[2]);break;default:c.h.apply(s,r);break}c.one?(i.splice(l,1),a--):l++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this}};var o=i;e.exports=o},38051:function(e,t,i){var n=i(13388),r=i(31138),o=n.identity,s=5e-5;function a(e){return e>s||e<-s}var l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return a(this.rotation)||a(this.position[0])||a(this.position[1])||a(this.scale[0]-1)||a(this.scale[1]-1)};var u=[];c.updateTransform=function(){var e=this.parent,t=e&&e.transform,i=this.needLocalTransform(),r=this.transform;if(i||t){r=r||n.create(),i?this.getLocalTransform(r):o(r),t&&(i?n.mul(r,e.transform,r):n.copy(r,e.transform)),this.transform=r;var s=this.globalScaleRatio;if(null!=s&&1!==s){this.getGlobalScale(u);var a=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-a)*s+a)/u[0]||0,h=((u[1]-l)*s+l)/u[1]||0;r[0]*=c,r[1]*=c,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,r)}else r&&o(r)},c.getLocalTransform=function(e){return l.getLocalTransform(this,e)},c.setTransform=function(e){var t=this.transform,i=e.dpr||1;t?e.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):e.setTransform(i,0,0,i,0,0)},c.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var h=[],d=n.create();c.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=this.position,r=this.scale;a(t-1)&&(t=Math.sqrt(t)),a(i-1)&&(i=Math.sqrt(i)),e[0]<0&&(t=-t),e[3]<0&&(i=-i),n[0]=e[4],n[1]=e[5],r[0]=t,r[1]=i,this.rotation=Math.atan2(-e[1]/i,e[0]/t)}},c.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(n.mul(h,e.invTransform,t),t=h);var i=this.origin;i&&(i[0]||i[1])&&(d[4]=i[0],d[5]=i[1],n.mul(h,t,d),h[4]-=i[0],h[5]-=i[1],t=h),this.setLocalTransform(t)}},c.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},c.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&r.applyTransform(i,i,n),i},c.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&r.applyTransform(i,i,n),i},l.getLocalTransform=function(e,t){t=t||[],o(t);var i=e.origin,r=e.scale||[1,1],s=e.rotation||0,a=e.position||[0,0];return i&&(t[4]-=i[0],t[5]-=i[1]),n.scale(t,t,r),s&&n.rotate(t,t,s),i&&(t[4]+=i[0],t[5]+=i[1]),t[4]+=a[0],t[5]+=a[1],t};var f=l;e.exports=f},23947:function(e,t,i){var n=i(73653),r=n.createElement,o=i(95289),s=i(19559),a=i(66343),l=i(1635),c=i(21927),u=i(38409),h=i(31646),d=i(2773),f=i(27346),p=i(8908),g=p.path,v=p.image,m=p.text;function y(e){return parseInt(e,10)}function _(e){return e instanceof a?g:e instanceof l?v:e instanceof c?m:g}function x(e,t){return t&&e&&t.parentNode!==e}function b(e,t,i){if(x(e,t)&&i){var n=i.nextSibling;n?e.insertBefore(t,n):e.appendChild(t)}}function w(e,t){if(x(e,t)){var i=e.firstChild;i?e.insertBefore(t,i):e.appendChild(t)}}function S(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function C(e){return e.__textSvgEl}function A(e){return e.__svgEl}var M=function(e,t,i,n){this.root=e,this.storage=t,this._opts=i=o.extend({},i||{});var s=r("svg");s.setAttribute("xmlns","http://www.w3.org/2000/svg"),s.setAttribute("version","1.1"),s.setAttribute("baseProfile","full"),s.style.cssText="user-select:none;position:absolute;left:0;top:0;";var a=r("g");s.appendChild(a);var l=r("g");s.appendChild(l),this.gradientManager=new h(n,l),this.clipPathManager=new d(n,l),this.shadowManager=new f(n,l);var c=document.createElement("div");c.style.cssText="overflow:hidden;position:relative",this._svgDom=s,this._svgRoot=l,this._backgroundRoot=a,this._viewport=c,e.appendChild(c),c.appendChild(s),this.resize(i.width,i.height),this._visibleList=[]};function k(e){return function(){s('In SVG mode painter not support method "'+e+'"')}}M.prototype={constructor:M,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=r("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,i=this._svgRoot,n=this._visibleList,r=e.length,o=[];for(t=0;t<r;t++){var s=e[t],a=_(s),l=A(s)||C(s);s.invisible||(s.__dirty&&(a&&a.brush(s),this.clipPathManager.update(s),s.style&&(this.gradientManager.update(s.style.fill),this.gradientManager.update(s.style.stroke),this.shadowManager.update(l,s)),s.__dirty=!1),o.push(s))}var c,h=u(n,o);for(t=0;t<h.length;t++){var d=h[t];if(d.removed)for(var f=0;f<d.count;f++){s=n[d.indices[f]],l=A(s);var p=C(s);S(i,l),S(i,p)}}for(t=0;t<h.length;t++){d=h[t];if(d.added)for(f=0;f<d.count;f++){s=o[d.indices[f]],l=A(s),p=C(s);c?b(i,l,c):w(i,l),l?b(i,p,l):c?b(i,p,c):w(i,p),b(i,p,l),c=p||l||c,this.gradientManager.addWithoutUpdate(l||p,s),this.shadowManager.addWithoutUpdate(l||p,s),this.clipPathManager.markUsed(s)}else if(!d.removed)for(f=0;f<d.count;f++){s=o[d.indices[f]],l=A(s),p=C(s),l=A(s),p=C(s);this.gradientManager.markUsed(s),this.gradientManager.addWithoutUpdate(l||p,s),this.shadowManager.markUsed(s),this.shadowManager.addWithoutUpdate(l||p,s),this.clipPathManager.markUsed(s),p&&b(i,p,l),c=l||p||c}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=o},_getDefs:function(e){var t=this._svgDom,i=t.getElementsByTagName("defs");if(0===i.length){if(e){i=t.insertBefore(r("defs"),t.firstChild);return i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i}return null}return i[0]},resize:function(e,t){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var r=i.style;r.width=e+"px",r.height=t+"px";var o=this._svgDom;o.setAttribute("width",e),o.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var s=this.root,a=document.defaultView.getComputedStyle(s);return(s[n]||y(a[i])||y(s.style[i]))-(y(a[r])||0)-(y(a[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+e}},o.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){M.prototype[e]=k(e)}));var T=M;e.exports=T},73653:function(e,t){var i="http://www.w3.org/2000/svg";function n(e){return document.createElementNS(i,e)}t.createElement=n},8908:function(e,t,i){var n=i(73653),r=n.createElement,o=i(17004),s=i(39587),a=i(13388),l=i(43407),c=i(95112),u=i(21927),h=o.CMD,d=Array.prototype.join,f="none",p=Math.round,g=Math.sin,v=Math.cos,m=Math.PI,y=2*Math.PI,_=180/m,x=1e-4;function b(e){return p(1e4*e)/1e4}function w(e){return e<x&&e>-x}function S(e,t){var i=t?e.textFill:e.fill;return null!=i&&i!==f}function C(e,t){var i=t?e.textStroke:e.stroke;return null!=i&&i!==f}function A(e,t){t&&M(e,"transform","matrix("+d.call(t,",")+")")}function M(e,t,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&e.setAttribute(t,i)}function k(e,t,i){e.setAttributeNS("http://www.w3.org/1999/xlink",t,i)}function T(e,t,i,n){if(S(t,i)){var r=i?t.textFill:t.fill;r="transparent"===r?f:r,M(e,"fill",r),M(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else M(e,"fill",f);if(C(t,i)){var o=i?t.textStroke:t.stroke;o="transparent"===o?f:o,M(e,"stroke",o);var s=i?t.textStrokeWidth:t.lineWidth,a=!i&&t.strokeNoScale?n.getLineScale():1;M(e,"stroke-width",s/a),M(e,"paint-order",i?"stroke":"fill"),M(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(M(e,"stroke-dasharray",t.lineDash.join(",")),M(e,"stroke-dashoffset",p(t.lineDashOffset||0))):M(e,"stroke-dasharray",""),t.lineCap&&M(e,"stroke-linecap",t.lineCap),t.lineJoin&&M(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&M(e,"stroke-miterlimit",t.miterLimit)}else M(e,"stroke",f)}function I(e){for(var t=[],i=e.data,n=e.len(),r=0;r<n;){var o=i[r++],s="",a=0;switch(o){case h.M:s="M",a=2;break;case h.L:s="L",a=2;break;case h.Q:s="Q",a=4;break;case h.C:s="C",a=6;break;case h.A:var l=i[r++],c=i[r++],u=i[r++],d=i[r++],f=i[r++],x=i[r++],S=i[r++],C=i[r++],A=Math.abs(x),M=w(A-y)||(C?x>=y:-x>=y),k=x>0?x%y:x%y+y,T=!1;T=!!M||!w(A)&&k>=m===!!C;var I=b(l+u*v(f)),L=b(c+d*g(f));M&&(x=C?y-1e-4:1e-4-y,T=!0,9===r&&t.push("M",I,L));var E=b(l+u*v(f+x)),D=b(c+d*g(f+x));t.push("A",b(u),b(d),p(S*_),+T,+C,E,D);break;case h.Z:s="Z";break;case h.R:E=b(i[r++]),D=b(i[r++]);var O=b(i[r++]),P=b(i[r++]);t.push("M",E,D,"L",E+O,D,"L",E+O,D+P,"L",E,D+P,"L",E,D);break}s&&t.push(s);for(var R=0;R<a;R++)t.push(b(i[r++]))}return t.join(" ")}var L={brush:function(e){var t=e.style,i=e.__svgEl;i||(i=r("path"),e.__svgEl=i),e.path||e.createPathProxy();var n=e.path;if(e.__dirtyPath){n.beginPath(),n.subPixelOptimize=!1,e.buildPath(n,e.shape),e.__dirtyPath=!1;var o=I(n);o.indexOf("NaN")<0&&M(i,"d",o)}T(i,t,!1,e),A(i,e.transform),null!=t.text?N(e,e.getBoundingRect()):V(e)}},E={brush:function(e){var t=e.style,i=t.image;if(i instanceof HTMLImageElement){var n=i.src;i=n}if(i){var o=t.x||0,s=t.y||0,a=t.width,l=t.height,c=e.__svgEl;c||(c=r("image"),e.__svgEl=c),i!==e.__imageSrc&&(k(c,"href",i),e.__imageSrc=i),M(c,"width",a),M(c,"height",l),M(c,"x",o),M(c,"y",s),A(c,e.transform),null!=t.text?N(e,e.getBoundingRect()):V(e)}}},D={},O=new s,P={},R=[],B={left:"start",right:"end",center:"middle",middle:"middle"},N=function(e,t){var i=e.style,n=e.transform,o=e instanceof u||i.transformText;e.__dirty&&c.normalizeTextStyle(i,!0);var s=i.text;if(null!=s&&(s+=""),c.needDrawText(s,i)){null==s&&(s=""),!o&&n&&(O.copy(t),O.applyTransform(n),t=O);var a=e.__textSvgEl;a||(a=r("text"),e.__textSvgEl=a);var h=a.style,d=i.font||l.DEFAULT_FONT,f=a.__computedFont;d!==a.__styleFont&&(h.font=a.__styleFont=d,f=a.__computedFont=h.font);var p=i.textPadding,g=i.textLineHeight,v=e.__textCotentBlock;v&&!e.__dirtyText||(v=e.__textCotentBlock=l.parsePlainText(s,f,p,g,i.truncate));var m=v.outerHeight,y=v.lineHeight;c.getBoxPosition(P,e,i,t);var _=P.baseX,x=P.baseY,b=P.textAlign||"left",w=P.textVerticalAlign;z(a,o,n,i,t,_,x);var S=l.adjustTextY(x,m,w),C=_,A=S;p&&(C=H(_,b,p),A+=p[0]),A+=y/2,T(a,i,!0,e);var M=v.canCacheByTextString,k=e.__tspanList||(e.__tspanList=[]),I=k.length;if(M&&e.__canCacheByTextString&&e.__text===s){if(e.__dirtyText&&I)for(var L=0;L<I;++L)F(k[L],b,C,A+L*y)}else{e.__text=s,e.__canCacheByTextString=M;var E=v.lines,D=E.length;for(L=0;L<D;L++){var R=k[L],B=E[L];R?R.__zrText!==B&&(R.innerHTML="",R.appendChild(document.createTextNode(B))):(R=k[L]=r("tspan"),a.appendChild(R),R.appendChild(document.createTextNode(B))),F(R,b,C,A+L*y)}if(I>D){for(;L<I;L++)a.removeChild(k[L]);k.length=D}}}};function z(e,t,i,n,r,o,s){a.identity(R),t&&i&&a.copy(R,i);var l=n.textRotation;if(r&&l){var c=n.textOrigin;"center"===c?(o=r.width/2+r.x,s=r.height/2+r.y):c&&(o=c[0]+r.x,s=c[1]+r.y),R[4]-=o,R[5]-=s,a.rotate(R,R,l),R[4]+=o,R[5]+=s}A(e,R)}function H(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function F(e,t,i,n){M(e,"dominant-baseline","middle"),M(e,"text-anchor",B[t]),M(e,"x",i),M(e,"y",n)}function V(e){e&&e.__textSvgEl&&(e.__textSvgEl.parentNode&&e.__textSvgEl.parentNode.removeChild(e.__textSvgEl),e.__textSvgEl=null,e.__tspanList=[],e.__text=null)}D.drawRectText=N,D.brush=function(e){var t=e.style;null!=t.text?N(e,!1):V(e)},t.path=L,t.image=E,t.text=D},2773:function(e,t,i){var n=i(36633),r=i(95289),o=i(13388);function s(e,t){n.call(this,e,t,"clipPath","__clippath_in_use__")}r.inherits(s,n),s.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var i=this.getTextSvgElement(e);i&&this.updateDom(i,e.__clipPaths,!0),this.markUsed(e)},s.prototype.updateDom=function(e,t,i){if(t&&t.length>0){var n,r,s=this.getDefs(!0),a=t[0],l=i?"_textDom":"_dom";a[l]?(r=a[l].getAttribute("id"),n=a[l],s.contains(n)||s.appendChild(n)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",r),s.appendChild(n),a[l]=n);var c=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!i){var u=Array.prototype.slice.call(a.transform);o.mul(a.transform,a.parent.invTransform,a.transform),c.brush(a),a.transform=u}else c.brush(a);var h=this.getSvgElement(a);n.innerHTML="",n.appendChild(h.cloneNode()),e.setAttribute("clip-path","url(#"+r+")"),t.length>1&&this.updateDom(n,t.slice(1),i)}else e&&e.setAttribute("clip-path","none")},s.prototype.markUsed=function(e){var t=this;e.__clipPaths&&r.each(e.__clipPaths,(function(e){e._dom&&n.prototype.markUsed.call(t,e._dom),e._textDom&&n.prototype.markUsed.call(t,e._textDom)}))};var a=s;e.exports=a},36633:function(e,t,i){var n=i(73653),r=n.createElement,o=i(95289),s=i(66343),a=i(1635),l=i(21927),c=i(8908),u=c.path,h=c.image,d=c.text,f="0",p="1";function g(e,t,i,n,r){this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof i?[i]:i,this._markLabel=n,this._domName=r||"_dom",this.nextId=0}g.prototype.createElement=r,g.prototype.getDefs=function(e){var t=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?e?(i=t.insertBefore(this.createElement("defs"),t.firstChild),i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i):null:i[0]},g.prototype.update=function(e,t){if(e){var i=this.getDefs(!1);if(e[this._domName]&&i.contains(e[this._domName]))"function"===typeof t&&t(e);else{var n=this.add(e);n&&(e[this._domName]=n)}}},g.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},g.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},g.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return o.each(this._tagNames,(function(i){var n=e.getElementsByTagName(i);t=t.concat([].slice.call(n))})),t},g.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;o.each(e,(function(e){e[t._markLabel]=f}))},g.prototype.markUsed=function(e){e&&(e[this._markLabel]=p)},g.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),i=this;o.each(t,(function(t){t[i._markLabel]!==p&&e.removeChild(t)}))}},g.prototype.getSvgProxy=function(e){return e instanceof s?u:e instanceof a?h:e instanceof l?d:u},g.prototype.getTextSvgElement=function(e){return e.__textSvgEl},g.prototype.getSvgElement=function(e){return e.__svgEl};var v=g;e.exports=v},31646:function(e,t,i){var n=i(36633),r=i(95289),o=i(19559),s=i(56607);function a(e,t){n.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}r.inherits(a,n),a.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var i=this;r.each(["fill","stroke"],(function(n){if(t.style[n]&&("linear"===t.style[n].type||"radial"===t.style[n].type)){var r,o=t.style[n],s=i.getDefs(!0);o._dom?(r=o._dom,s.contains(o._dom)||i.addDom(r)):r=i.add(o),i.markUsed(t);var a=r.getAttribute("id");e.setAttribute(n,"url(#"+a+")")}}))}},a.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return o("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},a.prototype.update=function(e){var t=this;n.prototype.update.call(this,e,(function(){var i=e.type,n=e._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},a.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void o("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var i=e.colorStops,n=0,r=i.length;n<r;++n){var a=this.createElement("stop");a.setAttribute("offset",100*i[n].offset+"%");var l=i[n].color;if(l.indexOf("rgba")>-1){var c=s.parse(l)[3],u=s.toHex(l);a.setAttribute("stop-color","#"+u),a.setAttribute("stop-opacity",c)}else a.setAttribute("stop-color",i[n].color);t.appendChild(a)}e._dom=t},a.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&n.prototype.markUsed.call(this,t._dom),t=e.style.stroke,t&&t._dom&&n.prototype.markUsed.call(this,t._dom)}};var l=a;e.exports=l},27346:function(e,t,i){var n=i(36633),r=i(95289);function o(e,t){n.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function s(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}r.inherits(o,n),o.prototype.addWithoutUpdate=function(e,t){if(t&&s(t.style)){var i;if(t._shadowDom){i=t._shadowDom;var n=this.getDefs(!0);n.contains(t._shadowDom)||this.addDom(i)}else i=this.add(t);this.markUsed(t);var r=i.getAttribute("id");e.style.filter="url(#"+r+")"}},o.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},o.prototype.update=function(e,t){var i=t.style;if(s(i)){var r=this;n.prototype.update.call(this,t,(function(){r.updateDom(t,t._shadowDom)}))}else this.remove(e,t)},o.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},o.prototype.updateDom=function(e,t){var i=t.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,r,o,s,a=e.style,l=e.scale&&e.scale[0]||1,c=e.scale&&e.scale[1]||1;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)n=a.shadowOffsetX||0,r=a.shadowOffsetY||0,o=a.shadowBlur,s=a.shadowColor;else{if(!a.textShadowBlur)return void this.removeDom(t,a);n=a.textShadowOffsetX||0,r=a.textShadowOffsetY||0,o=a.textShadowBlur,s=a.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",r/c),i.setAttribute("flood-color",s);var u=o/2/l,h=o/2/c,d=u+" "+h;i.setAttribute("stdDeviation",d),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(o/2*200)+"%"),t.setAttribute("height",Math.ceil(o/2*200)+"%"),t.appendChild(i),e._shadowDom=t},o.prototype.markUsed=function(e){e._shadowDom&&n.prototype.markUsed.call(this,e._shadowDom)};var a=o;e.exports=a},39590:function(e,t,i){i(8908);var n=i(97683),r=n.registerPainter,o=i(23947);r("svg",o)},56607:function(e,t,i){var n=i(60348),r={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 o(e){return e=Math.round(e),e<0?0:e>255?255:e}function s(e){return e=Math.round(e),e<0?0:e>360?360:e}function a(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function h(e,t,i){return e+(t-e)*i}function d(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new n(20),g=null;function v(e,t){g&&f(g,t),g=p.put(e,g||t.slice())}function m(e,t){if(e){t=t||[];var i=p.get(e);if(i)return f(t,i);e+="";var n=e.replace(/ /g,"").toLowerCase();if(n in r)return f(t,r[n]),v(e,t),t;if("#"!==n.charAt(0)){var o=n.indexOf("("),s=n.indexOf(")");if(-1!==o&&s+1===n.length){var a=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),h=1;switch(a){case"rgba":if(4!==u.length)return void d(t,0,0,0,1);h=c(u.pop());case"rgb":return 3!==u.length?void d(t,0,0,0,1):(d(t,l(u[0]),l(u[1]),l(u[2]),h),v(e,t),t);case"hsla":return 4!==u.length?void d(t,0,0,0,1):(u[3]=c(u[3]),y(u,t),v(e,t),t);case"hsl":return 3!==u.length?void d(t,0,0,0,1):(y(u,t),v(e,t),t);default:return}}d(t,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=4095?(d(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),v(e,t),t):void d(t,0,0,0,1)}if(7===n.length){g=parseInt(n.substr(1),16);return g>=0&&g<=16777215?(d(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),v(e,t),t):void d(t,0,0,0,1)}}}}function y(e,t){var i=(parseFloat(e[0])%360+360)%360/360,n=c(e[1]),r=c(e[2]),s=r<=.5?r*(n+1):r+n-r*n,a=2*r-s;return t=t||[],d(t,o(255*u(a,s,i+1/3)),o(255*u(a,s,i)),o(255*u(a,s,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,i,n=e[0]/255,r=e[1]/255,o=e[2]/255,s=Math.min(n,r,o),a=Math.max(n,r,o),l=a-s,c=(a+s)/2;if(0===l)t=0,i=0;else{i=c<.5?l/(a+s):l/(2-a-s);var u=((a-n)/6+l/2)/l,h=((a-r)/6+l/2)/l,d=((a-o)/6+l/2)/l;n===a?t=d-h:r===a?t=1/3+u-d:o===a&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,i,c];return null!=e[3]&&f.push(e[3]),f}}function x(e,t){var i=m(e);if(i){for(var n=0;n<3;n++)i[n]=t<0?i[n]*(1-t)|0:(255-i[n])*t+i[n]|0,i[n]>255?i[n]=255:e[n]<0&&(i[n]=0);return T(i,4===i.length?"rgba":"rgb")}}function b(e){var t=m(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function w(e,t,i){if(t&&t.length&&e>=0&&e<=1){i=i||[];var n=e*(t.length-1),r=Math.floor(n),s=Math.ceil(n),l=t[r],c=t[s],u=n-r;return i[0]=o(h(l[0],c[0],u)),i[1]=o(h(l[1],c[1],u)),i[2]=o(h(l[2],c[2],u)),i[3]=a(h(l[3],c[3],u)),i}}var S=w;function C(e,t,i){if(t&&t.length&&e>=0&&e<=1){var n=e*(t.length-1),r=Math.floor(n),s=Math.ceil(n),l=m(t[r]),c=m(t[s]),u=n-r,d=T([o(h(l[0],c[0],u)),o(h(l[1],c[1],u)),o(h(l[2],c[2],u)),a(h(l[3],c[3],u))],"rgba");return i?{color:d,leftIndex:r,rightIndex:s,value:n}:d}}var A=C;function M(e,t,i,n){if(e=m(e),e)return e=_(e),null!=t&&(e[0]=s(t)),null!=i&&(e[1]=c(i)),null!=n&&(e[2]=c(n)),T(y(e),"rgba")}function k(e,t){if(e=m(e),e&&null!=t)return e[3]=a(t),T(e,"rgba")}function T(e,t){if(e&&e.length){var i=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(i+=","+e[3]),t+"("+i+")"}}t.parse=m,t.lift=x,t.toHex=b,t.fastLerp=w,t.fastMapToColor=S,t.lerp=C,t.mapToColor=A,t.modifyHSL=M,t.modifyAlpha=k,t.stringify=T},9717:function(e,t,i){var n=i(75738),r=i(1635),o=i(21927),s=i(30074),a=i(15404),l=i(34586),c=i(91636),u=i(66343),h=i(24570),d=i(65542),f=i(25113),p=i(96727),g=i(13388),v=i(15009),m=v.createFromString,y=i(95289),_=y.isString,x=y.extend,b=y.defaults,w=y.trim,S=y.each,C=/[\s,]+/;function A(e){if(_(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}9===e.nodeType&&(e=e.firstChild);while("svg"!==e.nodeName.toLowerCase()||1!==e.nodeType)e=e.nextSibling;return e}function M(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}M.prototype.parse=function(e,t){t=t||{};var i=A(e);if(!i)throw new Error("Illegal svg");var r=new n;this._root=r;var o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),O(i,r,null,!0);var c,u,h=i.firstChild;while(h)this._parseNode(h,r),h=h.nextSibling;if(o){var d=w(o).split(C);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&null!=s&&null!=l&&(u=F(c,s,l),!t.ignoreViewBox)){var f=r;r=new n,r.add(f),f.scale=u.scale.slice(),f.position=u.position.slice()}return t.ignoreRootClip||null==s||null==l||r.setClipPath(new a({shape:{x:0,y:0,width:s,height:l}})),{root:r,width:s,height:l,viewBoxRect:c,viewBoxTransform:u}},M.prototype._parseNode=function(e,t){var i,n=e.nodeName.toLowerCase();if("defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0),this._isDefine){var r=T[n];if(r){var o=r.call(this,e),s=e.getAttribute("id");s&&(this._defs[s]=o)}}else{r=k[n];r&&(i=r.call(this,e,t),t.add(i))}var a=e.firstChild;while(a)1===a.nodeType&&this._parseNode(a,i),3===a.nodeType&&this._isText&&this._parseText(a,i),a=a.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},M.prototype._parseText=function(e,t){if(1===e.nodeType){var i=e.getAttribute("dx")||0,n=e.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var r=new o({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});L(t,r),O(e,r,this._defs);var s=r.style.fontSize;s&&s<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=s/9,r.scale[1]*=s/9);var a=r.getBoundingRect();return this._textX+=a.width,t.add(r),r};var k={g:function(e,t){var i=new n;return L(t,i),O(e,i,this._defs),i},rect:function(e,t){var i=new a;return L(t,i),O(e,i,this._defs),i.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),i},circle:function(e,t){var i=new s;return L(t,i),O(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),i},line:function(e,t){var i=new c;return L(t,i),O(e,i,this._defs),i.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),i},ellipse:function(e,t){var i=new l;return L(t,i),O(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),i},polygon:function(e,t){var i=e.getAttribute("points");i&&(i=E(i));var n=new h({shape:{points:i||[]}});return L(t,n),O(e,n,this._defs),n},polyline:function(e,t){var i=new u;L(t,i),O(e,i,this._defs);var n=e.getAttribute("points");n&&(n=E(n));var r=new d({shape:{points:n||[]}});return r},image:function(e,t){var i=new r;return L(t,i),O(e,i,this._defs),i.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),i},text:function(e,t){var i=e.getAttribute("x")||0,r=e.getAttribute("y")||0,o=e.getAttribute("dx")||0,s=e.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(s);var a=new n;return L(t,a),O(e,a,this._defs),a},tspan:function(e,t){var i=e.getAttribute("x"),r=e.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=r&&(this._textY=parseFloat(r));var o=e.getAttribute("dx")||0,s=e.getAttribute("dy")||0,a=new n;return L(t,a),O(e,a,this._defs),this._textX+=o,this._textY+=s,a},path:function(e,t){var i=e.getAttribute("d")||"",n=m(i);return L(t,n),O(e,n,this._defs),n}},T={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),i=parseInt(e.getAttribute("y1")||0,10),n=parseInt(e.getAttribute("x2")||10,10),r=parseInt(e.getAttribute("y2")||0,10),o=new f(t,i,n,r);return I(e,o),o},radialgradient:function(e){}};function I(e,t){var i=e.firstChild;while(i){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var r=i.getAttribute("stop-color")||"#000000";t.addColorStop(n,r)}i=i.nextSibling}}function L(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),b(t.__inheritedStyle,e.__inheritedStyle))}function E(e){for(var t=w(e).split(C),i=[],n=0;n<t.length;n+=2){var r=parseFloat(t[n]),o=parseFloat(t[n+1]);i.push([r,o])}return i}var D={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function O(e,t,i,n){var r=t.__inheritedStyle||{},o="text"===t.type;if(1===e.nodeType&&(N(e,t),x(r,H(e)),!n))for(var s in D)if(D.hasOwnProperty(s)){var a=e.getAttribute(s);null!=a&&(r[D[s]]=a)}var l=o?"textFill":"fill",c=o?"textStroke":"stroke";t.style=t.style||new p;var u=t.style;null!=r.fill&&u.set(l,R(r.fill,i)),null!=r.stroke&&u.set(c,R(r.stroke,i)),S(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){var t="lineWidth"===e&&o?"textStrokeWidth":e;null!=r[e]&&u.set(t,parseFloat(r[e]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),S(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=r[e]&&u.set(e,r[e])})),r.lineDash&&(t.style.lineDash=w(r.lineDash).split(C)),u[c]&&"none"!==u[c]&&(t[c]=!0),t.__inheritedStyle=r}var P=/url\(\s*#(.*?)\)/;function R(e,t){var i=t&&e&&e.match(P);if(i){var n=w(i[1]),r=t[n];return r}return e}var B=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function N(e,t){var i=e.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=null,r=[];i.replace(B,(function(e,t,i){r.push(t,i)}));for(var o=r.length-1;o>0;o-=2){var s=r[o],a=r[o-1];switch(n=n||g.create(),a){case"translate":s=w(s).split(C),g.translate(n,n,[parseFloat(s[0]),parseFloat(s[1]||0)]);break;case"scale":s=w(s).split(C),g.scale(n,n,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":s=w(s).split(C),g.rotate(n,n,parseFloat(s[0]));break;case"skew":s=w(s).split(C),console.warn("Skew transform is not supported yet");break;case"matrix":s=w(s).split(C);n[0]=parseFloat(s[0]),n[1]=parseFloat(s[1]),n[2]=parseFloat(s[2]),n[3]=parseFloat(s[3]),n[4]=parseFloat(s[4]),n[5]=parseFloat(s[5]);break}}t.setLocalTransform(n)}}var z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function H(e){var t=e.getAttribute("style"),i={};if(!t)return i;var n,r={};z.lastIndex=0;while(null!=(n=z.exec(t)))r[n[1]]=n[2];for(var o in D)D.hasOwnProperty(o)&&null!=r[o]&&(i[D[o]]=r[o]);return i}function F(e,t,i){var n=t/e.width,r=i/e.height,o=Math.min(n,r),s=[o,o],a=[-(e.x+e.width/2)*o+t/2,-(e.y+e.height/2)*o+i/2];return{scale:s,position:a}}function V(e,t){var i=new M;return i.parse(e,t)}t.parseXML=A,t.makeViewBoxTransform=F,t.parseSVG=V},15009:function(e,t,i){var n=i(66343),r=i(17004),o=i(92291),s=Math.sqrt,a=Math.sin,l=Math.cos,c=Math.PI,u=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},h=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(u(e)*u(t))},d=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(h(e,t))};function f(e,t,i,n,r,o,u,f,p,g,v){var m=p*(c/180),y=l(m)*(e-i)/2+a(m)*(t-n)/2,_=-1*a(m)*(e-i)/2+l(m)*(t-n)/2,x=y*y/(u*u)+_*_/(f*f);x>1&&(u*=s(x),f*=s(x));var b=(r===o?-1:1)*s((u*u*(f*f)-u*u*(_*_)-f*f*(y*y))/(u*u*(_*_)+f*f*(y*y)))||0,w=b*u*_/f,S=b*-f*y/u,C=(e+i)/2+l(m)*w-a(m)*S,A=(t+n)/2+a(m)*w+l(m)*S,M=d([1,0],[(y-w)/u,(_-S)/f]),k=[(y-w)/u,(_-S)/f],T=[(-1*y-w)/u,(-1*_-S)/f],I=d(k,T);h(k,T)<=-1&&(I=c),h(k,T)>=1&&(I=0),0===o&&I>0&&(I-=2*c),1===o&&I<0&&(I+=2*c),v.addData(g,C,A,u,f,M,I,m,o)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v(e){if(!e)return new r;for(var t,i=0,n=0,o=i,s=n,a=new r,l=r.CMD,c=e.match(p),u=0;u<c.length;u++){for(var h,d=c[u],v=d.charAt(0),m=d.match(g)||[],y=m.length,_=0;_<y;_++)m[_]=parseFloat(m[_]);var x=0;while(x<y){var b,w,S,C,A,M,k,T=i,I=n;switch(v){case"l":i+=m[x++],n+=m[x++],h=l.L,a.addData(h,i,n);break;case"L":i=m[x++],n=m[x++],h=l.L,a.addData(h,i,n);break;case"m":i+=m[x++],n+=m[x++],h=l.M,a.addData(h,i,n),o=i,s=n,v="l";break;case"M":i=m[x++],n=m[x++],h=l.M,a.addData(h,i,n),o=i,s=n,v="L";break;case"h":i+=m[x++],h=l.L,a.addData(h,i,n);break;case"H":i=m[x++],h=l.L,a.addData(h,i,n);break;case"v":n+=m[x++],h=l.L,a.addData(h,i,n);break;case"V":n=m[x++],h=l.L,a.addData(h,i,n);break;case"C":h=l.C,a.addData(h,m[x++],m[x++],m[x++],m[x++],m[x++],m[x++]),i=m[x-2],n=m[x-1];break;case"c":h=l.C,a.addData(h,m[x++]+i,m[x++]+n,m[x++]+i,m[x++]+n,m[x++]+i,m[x++]+n),i+=m[x-2],n+=m[x-1];break;case"S":b=i,w=n;var L=a.len(),E=a.data;t===l.C&&(b+=i-E[L-4],w+=n-E[L-3]),h=l.C,T=m[x++],I=m[x++],i=m[x++],n=m[x++],a.addData(h,b,w,T,I,i,n);break;case"s":b=i,w=n;L=a.len(),E=a.data;t===l.C&&(b+=i-E[L-4],w+=n-E[L-3]),h=l.C,T=i+m[x++],I=n+m[x++],i+=m[x++],n+=m[x++],a.addData(h,b,w,T,I,i,n);break;case"Q":T=m[x++],I=m[x++],i=m[x++],n=m[x++],h=l.Q,a.addData(h,T,I,i,n);break;case"q":T=m[x++]+i,I=m[x++]+n,i+=m[x++],n+=m[x++],h=l.Q,a.addData(h,T,I,i,n);break;case"T":b=i,w=n;L=a.len(),E=a.data;t===l.Q&&(b+=i-E[L-4],w+=n-E[L-3]),i=m[x++],n=m[x++],h=l.Q,a.addData(h,b,w,i,n);break;case"t":b=i,w=n;L=a.len(),E=a.data;t===l.Q&&(b+=i-E[L-4],w+=n-E[L-3]),i+=m[x++],n+=m[x++],h=l.Q,a.addData(h,b,w,i,n);break;case"A":S=m[x++],C=m[x++],A=m[x++],M=m[x++],k=m[x++],T=i,I=n,i=m[x++],n=m[x++],h=l.A,f(T,I,i,n,M,k,S,C,A,h,a);break;case"a":S=m[x++],C=m[x++],A=m[x++],M=m[x++],k=m[x++],T=i,I=n,i+=m[x++],n+=m[x++],h=l.A,f(T,I,i,n,M,k,S,C,A,h,a);break}}"z"!==v&&"Z"!==v||(h=l.Z,a.addData(h),i=o,n=s),t=h}return a.toStatic(),a}function m(e,t){var i=v(e);return t=t||{},t.buildPath=function(e){if(e.setData){e.setData(i.data);var t=e.getContext();t&&e.rebuildPath(t)}else{t=e;i.rebuildPath(t)}},t.applyTransform=function(e){o(i,e),this.dirty(!0)},t}function y(e,t){return new n(m(e,t))}function _(e,t){return n.extend(m(e,t))}function x(e,t){for(var i=[],r=e.length,o=0;o<r;o++){var s=e[o];s.path||s.createPathProxy(),s.__dirtyPath&&s.buildPath(s.path,s.shape,!0),i.push(s.path)}var a=new n(t);return a.createPathProxy(),a.buildPath=function(e){e.appendPath(i);var t=e.getContext();t&&e.rebuildPath(t)},a}t.createFromString=y,t.extendFromString=_,t.mergePath=x},92291:function(e,t,i){var n=i(17004),r=i(31138),o=r.applyTransform,s=n.CMD,a=[[],[],[]],l=Math.sqrt,c=Math.atan2;function u(e,t){var i,n,r,u,h,d=e.data,f=s.M,p=s.C,g=s.L,v=s.R,m=s.A,y=s.Q;for(r=0,u=0;r<d.length;){switch(i=d[r++],u=r,n=0,i){case f:n=1;break;case g:n=1;break;case p:n=3;break;case y:n=2;break;case m:var _=t[4],x=t[5],b=l(t[0]*t[0]+t[1]*t[1]),w=l(t[2]*t[2]+t[3]*t[3]),S=c(-t[1]/w,t[0]/b);d[r]*=b,d[r++]+=_,d[r]*=w,d[r++]+=x,d[r++]*=b,d[r++]*=w,d[r++]+=S,d[r++]+=S,r+=2,u=r;break;case v:C[0]=d[r++],C[1]=d[r++],o(C,C,t),d[u++]=C[0],d[u++]=C[1],C[0]+=d[r++],C[1]+=d[r++],o(C,C,t),d[u++]=C[0],d[u++]=C[1]}for(h=0;h<n;h++){var C=a[h];C[0]=d[r++],C[1]=d[r++],o(C,C,t),d[u++]=C[0],d[u++]=C[1]}}}e.exports=u},51722:function(e,t,i){var n=i(19559),r=i(96670),o=i(95289),s=o.each;function a(e){return parseInt(e,10)}function l(e,t){r.initVML(),this.root=e,this.storage=t;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",e.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var o=t.delFromStorage,s=t.addToStorage;t.delFromStorage=function(e){o.call(t,e),e&&e.onRemove&&e.onRemove(n)},t.addToStorage=function(e){e.onAdd&&e.onAdd(n),s.call(t,e)},this._firstPaint=!0}function c(e){return function(){n('In IE8.0 VML mode painter not support method "'+e+'"')}}l.prototype={constructor:l,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,i=0;i<e.length;i++){var n=e[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(t),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(t),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,t),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!==e||this._height!==t){this._width=e,this._height=t;var i=this._vmlViewport.style;i.width=e+"px",i.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||a(t.width))-a(t.paddingLeft)-a(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||a(t.height))-a(t.paddingTop)-a(t.paddingBottom)|0}},s(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(e){l.prototype[e]=c(e)}));var u=l;e.exports=u},96670:function(e,t,i){var n,r=i(87190),o="urn:schemas-microsoft-com:vml",s="undefined"===typeof window?null:window,a=!1,l=s&&s.document;function c(e){return n(e)}if(l&&!r.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",o),n=function(e){return l.createElement("<zrvml:"+e+' class="zrvml">')}}catch(h){n=function(e){return l.createElement("<"+e+' xmlns="'+o+'" class="zrvml">')}}function u(){if(!a&&l){a=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}t.doc=l,t.createNode=c,t.initVML=u},84833:function(e,t,i){var n=i(87190),r=i(31138),o=r.applyTransform,s=i(39587),a=i(56607),l=i(43407),c=i(95112),u=i(81619),h=i(44232),d=i(1635),f=i(21927),p=i(66343),g=i(17004),v=i(44696),m=i(96670),y=g.CMD,_=Math.round,x=Math.sqrt,b=Math.abs,w=Math.cos,S=Math.sin,C=Math.max;if(!n.canvasSupported){var A=",",M="progid:DXImageTransform.Microsoft",k=21600,T=k/2,I=1e5,L=1e3,E=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=k+","+k,e.coordorigin="0,0"},D=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""")},O=function(e,t,i){return"rgb("+[e,t,i].join(",")+")"},P=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},R=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},B=function(e,t,i){return(parseFloat(e)||0)*I+(parseFloat(t)||0)*L+i},N=c.parsePercent,z=function(e,t,i){var n=a.parse(t);i=+i,isNaN(i)&&(i=1),n&&(e.color=O(n[0],n[1],n[2]),e.opacity=i*n[3])},H=function(e){var t=a.parse(e);return[O(t[0],t[1],t[2]),t[3]]},F=function(e,t,i){var n=t.fill;if(null!=n)if(n instanceof v){var r,s=0,a=[0,0],l=0,c=1,u=i.getBoundingRect(),h=u.width,d=u.height;if("linear"===n.type){r="gradient";var f=i.transform,p=[n.x*h,n.y*d],g=[n.x2*h,n.y2*d];f&&(o(p,p,f),o(g,g,f));var m=g[0]-p[0],y=g[1]-p[1];s=180*Math.atan2(m,y)/Math.PI,s<0&&(s+=360),s<1e-6&&(s=0)}else{r="gradientradial";p=[n.x*h,n.y*d],f=i.transform;var _=i.scale,x=h,b=d;a=[(p[0]-u.x)/x,(p[1]-u.y)/b],f&&o(p,p,f),x/=_[0]*k,b/=_[1]*k;var w=C(x,b);l=0/w,c=2*n.r/w-l}var S=n.colorStops.slice();S.sort((function(e,t){return e.offset-t.offset}));for(var A=S.length,M=[],T=[],I=0;I<A;I++){var L=S[I],E=H(L.color);T.push(L.offset*c+l+" "+E[0]),0!==I&&I!==A-1||M.push(E)}if(A>=2){var D=M[0][0],O=M[1][0],P=M[0][1]*t.opacity,R=M[1][1]*t.opacity;e.type=r,e.method="none",e.focus="100%",e.angle=s,e.color=D,e.color2=O,e.colors=T.join(","),e.opacity=R,e.opacity2=P}"radial"===r&&(e.focusposition=a.join(","))}else z(e,n,t.opacity)},V=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof v||z(e,t.stroke,t.opacity)},j=function(e,t,i,n){var r="fill"===t,o=e.getElementsByTagName(t)[0];null!=i[t]&&"none"!==i[t]&&(r||!r&&i.lineWidth)?(e[r?"filled":"stroked"]="true",i[t]instanceof v&&R(e,o),o||(o=m.createNode(t)),r?F(o,i,n):V(o,i),P(e,o)):(e[r?"filled":"stroked"]="false",R(e,o))},$=[[],[],[]],W=function(e,t){var i,n,r,s,a,l,c=y.M,u=y.C,h=y.L,d=y.A,f=y.Q,p=[],g=e.data,v=e.len();for(s=0;s<v;){switch(r=g[s++],n="",i=0,r){case c:n=" m ",i=1,a=g[s++],l=g[s++],$[0][0]=a,$[0][1]=l;break;case h:n=" l ",i=1,a=g[s++],l=g[s++],$[0][0]=a,$[0][1]=l;break;case f:case u:n=" c ",i=3;var m,b,C=g[s++],M=g[s++],I=g[s++],L=g[s++];r===f?(m=I,b=L,I=(I+2*C)/3,L=(L+2*M)/3,C=(a+2*C)/3,M=(l+2*M)/3):(m=g[s++],b=g[s++]),$[0][0]=C,$[0][1]=M,$[1][0]=I,$[1][1]=L,$[2][0]=m,$[2][1]=b,a=m,l=b;break;case d:var E=0,D=0,O=1,P=1,R=0;t&&(E=t[4],D=t[5],O=x(t[0]*t[0]+t[1]*t[1]),P=x(t[2]*t[2]+t[3]*t[3]),R=Math.atan2(-t[1]/P,t[0]/O));var B=g[s++],N=g[s++],z=g[s++],H=g[s++],F=g[s++]+R,V=g[s++]+F+R;s++;var j=g[s++],W=B+w(F)*z,G=N+S(F)*H,U=(C=B+w(V)*z,M=N+S(V)*H,j?" wa ":" at ");Math.abs(W-C)<1e-4&&(Math.abs(V-F)>.01?j&&(W+=270/k):Math.abs(G-N)<1e-4?j&&W<B||!j&&W>B?M-=270/k:M+=270/k:j&&G<N||!j&&G>N?C+=270/k:C-=270/k),p.push(U,_(((B-z)*O+E)*k-T),A,_(((N-H)*P+D)*k-T),A,_(((B+z)*O+E)*k-T),A,_(((N+H)*P+D)*k-T),A,_((W*O+E)*k-T),A,_((G*P+D)*k-T),A,_((C*O+E)*k-T),A,_((M*P+D)*k-T)),a=C,l=M;break;case y.R:var q=$[0],Z=$[1];q[0]=g[s++],q[1]=g[s++],Z[0]=q[0]+g[s++],Z[1]=q[1]+g[s++],t&&(o(q,q,t),o(Z,Z,t)),q[0]=_(q[0]*k-T),Z[0]=_(Z[0]*k-T),q[1]=_(q[1]*k-T),Z[1]=_(Z[1]*k-T),p.push(" m ",q[0],A,q[1]," l ",Z[0],A,q[1]," l ",Z[0],A,Z[1]," l ",q[0],A,Z[1]);break;case y.Z:p.push(" x ")}if(i>0){p.push(n);for(var X=0;X<i;X++){var Y=$[X];t&&o(Y,Y,t),p.push(_(Y[0]*k-T),A,_(Y[1]*k-T),X<i-1?A:"")}}}return p.join("")};p.prototype.brushVML=function(e){var t=this.style,i=this._vmlEl;i||(i=m.createNode("shape"),E(i),this._vmlEl=i),j(i,"fill",t,this),j(i,"stroke",t,this);var n=this.transform,r=null!=n,o=i.getElementsByTagName("stroke")[0];if(o){var s=t.lineWidth;if(r&&!t.strokeNoScale){var a=n[0]*n[3]-n[1]*n[2];s*=x(b(a))}o.weight=s+"px"}var l=this.path||(this.path=new g);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=W(l,this.transform),i.style.zIndex=B(this.zlevel,this.z,this.z2),P(e,i),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},p.prototype.onRemove=function(e){R(e,this._vmlEl),this.removeRectText(e)},p.prototype.onAdd=function(e){P(e,this._vmlEl),this.appendRectText(e)};var G=function(e){return"object"===typeof e&&e.tagName&&"IMG"===e.tagName.toUpperCase()};d.prototype.brushVML=function(e){var t,i,n=this.style,r=n.image;if(G(r)){var s=r.src;if(s===this._imageSrc)t=this._imageWidth,i=this._imageHeight;else{var a=r.runtimeStyle,l=a.width,c=a.height;a.width="auto",a.height="auto",t=r.width,i=r.height,a.width=l,a.height=c,this._imageSrc=s,this._imageWidth=t,this._imageHeight=i}r=s}else r===this._imageSrc&&(t=this._imageWidth,i=this._imageHeight);if(r){var u=n.x||0,h=n.y||0,d=n.width,f=n.height,p=n.sWidth,g=n.sHeight,v=n.sx||0,y=n.sy||0,b=p&&g,w=this._vmlEl;w||(w=m.doc.createElement("div"),E(w),this._vmlEl=w);var S,k=w.style,T=!1,I=1,L=1;if(this.transform&&(S=this.transform,I=x(S[0]*S[0]+S[1]*S[1]),L=x(S[2]*S[2]+S[3]*S[3]),T=S[1]||S[2]),T){var D=[u,h],O=[u+d,h],R=[u,h+f],N=[u+d,h+f];o(D,D,S),o(O,O,S),o(R,R,S),o(N,N,S);var z=C(D[0],O[0],R[0],N[0]),H=C(D[1],O[1],R[1],N[1]),F=[];F.push("M11=",S[0]/I,A,"M12=",S[2]/L,A,"M21=",S[1]/I,A,"M22=",S[3]/L,A,"Dx=",_(u*I+S[4]),A,"Dy=",_(h*L+S[5])),k.padding="0 "+_(z)+"px "+_(H)+"px 0",k.filter=M+".Matrix("+F.join("")+", SizingMethod=clip)"}else S&&(u=u*I+S[4],h=h*L+S[5]),k.filter="",k.left=_(u)+"px",k.top=_(h)+"px";var V=this._imageEl,j=this._cropEl;V||(V=m.doc.createElement("div"),this._imageEl=V);var $=V.style;if(b){if(t&&i)$.width=_(I*t*d/p)+"px",$.height=_(L*i*f/g)+"px";else{var W=new Image,U=this;W.onload=function(){W.onload=null,t=W.width,i=W.height,$.width=_(I*t*d/p)+"px",$.height=_(L*i*f/g)+"px",U._imageWidth=t,U._imageHeight=i,U._imageSrc=r},W.src=r}j||(j=m.doc.createElement("div"),j.style.overflow="hidden",this._cropEl=j);var q=j.style;q.width=_((d+v*d/p)*I),q.height=_((f+y*f/g)*L),q.filter=M+".Matrix(Dx="+-v*d/p*I+",Dy="+-y*f/g*L+")",j.parentNode||w.appendChild(j),V.parentNode!==j&&j.appendChild(V)}else $.width=_(I*d)+"px",$.height=_(L*f)+"px",w.appendChild(V),j&&j.parentNode&&(w.removeChild(j),this._cropEl=null);var Z="",X=n.opacity;X<1&&(Z+=".Alpha(opacity="+_(100*X)+") "),Z+=M+".AlphaImageLoader(src="+r+", SizingMethod=scale)",$.filter=Z,w.style.zIndex=B(this.zlevel,this.z,this.z2),P(e,w),null!=n.text&&this.drawRectText(e,this.getBoundingRect())}},d.prototype.onRemove=function(e){R(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},d.prototype.onAdd=function(e){P(e,this._vmlEl),this.appendRectText(e)};var U,q="normal",Z={},X=0,Y=100,K=document.createElement("div"),J=function(e){var t=Z[e];if(!t){X>Y&&(X=0,Z={});var i,n=K.style;try{n.font=e,i=n.fontFamily.split(",")[0]}catch(r){}t={style:n.fontStyle||q,variant:n.fontVariant||q,weight:n.fontWeight||q,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},Z[e]=t,X++}return t};l.$override("measureText",(function(e,t){var i=m.doc;U||(U=i.createElement("div"),U.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(U));try{U.style.font=t}catch(n){}return U.innerHTML="",U.appendChild(i.createTextNode(e)),{width:U.offsetWidth}}));for(var Q=new s,ee=function(e,t,i,n){var r=this.style;this.__dirty&&c.normalizeTextStyle(r,!0);var s=r.text;if(null!=s&&(s+=""),s){if(r.rich){var a=l.parseRichText(s,r);s=[];for(var u=0;u<a.lines.length;u++){for(var h=a.lines[u].tokens,d=[],f=0;f<h.length;f++)d.push(h[f].text);s.push(d.join(""))}s=s.join("\n")}var p,g,v=r.textAlign,y=r.textVerticalAlign,x=J(r.font),b=x.style+" "+x.variant+" "+x.weight+" "+x.size+'px "'+x.family+'"';i=i||l.getBoundingRect(s,b,v,y,r.textPadding,r.textLineHeight);var w=this.transform;if(w&&!n&&(Q.copy(t),Q.applyTransform(w),t=Q),n)p=t.x,g=t.y;else{var S=r.textPosition;if(S instanceof Array)p=t.x+N(S[0],t.width),g=t.y+N(S[1],t.height),v=v||"left";else{var C=this.calculateTextPosition?this.calculateTextPosition({},r,t):l.calculateTextPosition({},r,t);p=C.x,g=C.y,v=v||C.textAlign,y=y||C.textVerticalAlign}}p=l.adjustTextX(p,i.width,v),g=l.adjustTextY(g,i.height,y),g+=i.height/2;var M,k,T,I=m.createNode,L=this._textVmlEl;L?(T=L.firstChild,M=T.nextSibling,k=M.nextSibling):(L=I("line"),M=I("path"),k=I("textpath"),T=I("skew"),k.style["v-text-align"]="left",E(L),M.textpathok=!0,k.on=!0,L.from="0 0",L.to="1000 0.05",P(L,T),P(L,M),P(L,k),this._textVmlEl=L);var O=[p,g],R=L.style;w&&n?(o(O,O,w),T.on=!0,T.matrix=w[0].toFixed(3)+A+w[2].toFixed(3)+A+w[1].toFixed(3)+A+w[3].toFixed(3)+",0,0",T.offset=(_(O[0])||0)+","+(_(O[1])||0),T.origin="0 0",R.left="0px",R.top="0px"):(T.on=!1,R.left=_(p)+"px",R.top=_(g)+"px"),k.string=D(s);try{k.style.font=b}catch(z){}j(L,"fill",{fill:r.textFill,opacity:r.opacity},this),j(L,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash||null},this),L.style.zIndex=B(this.zlevel,this.z,this.z2),P(e,L)}},te=function(e){R(e,this._textVmlEl),this._textVmlEl=null},ie=function(e){P(e,this._textVmlEl)},ne=[u,h,d,p,f],re=0;re<ne.length;re++){var oe=ne[re].prototype;oe.drawRectText=ee,oe.removeRectText=te,oe.appendRectText=ie}f.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},f.prototype.onRemove=function(e){this.removeRectText(e)},f.prototype.onAdd=function(e){this.appendRectText(e)}}},80630:function(e,t,i){i(84833);var n=i(97683),r=n.registerPainter,o=i(51722);r("vml",o)},97683:function(e,t,i){var n=i(1200),r=i(87190),o=i(95289),s=i(16713),a=i(65728),l=i(97518),c=i(9874),u=i(77884),h=!r.canvasSupported,d={canvas:l},f={},p="4.3.2";function g(e,t){var i=new x(n(),e,t);return f[i.id]=i,i}function v(e){if(e)e.dispose();else{for(var t in f)f.hasOwnProperty(t)&&f[t].dispose();f={}}return this}function m(e){return f[e]}function y(e,t){d[e]=t}function _(e){delete f[e]}var x=function(e,t,i){i=i||{},this.dom=t,this.id=e;var n=this,l=new a,f=i.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&d[f]||(f="canvas");var p=new d[f](t,l,i,e);this.storage=l,this.painter=p;var g=r.node||r.worker?null:new u(p.getViewportRoot(),p.root);this.handler=new s(l,p,g,p.root),this.animation=new c({stage:{update:o.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var v=l.delFromStorage,m=l.addToStorage;l.delFromStorage=function(e){v.call(l,e),e&&e.removeSelfFromZr(n)},l.addToStorage=function(e){m.call(l,e),e.addSelfToZr(n)}};x.prototype={constructor:x,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var i=this.painter.addHover(e,t);return this.refreshHover(),i}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,i){this.handler.on(e,t,i)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},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,_(this.id)}},t.version=p,t.init=g,t.dispose=v,t.getInstance=m,t.registerPainter=y},91250:function(e,t,i){"use strict";i.d(t,{A:function(){return jt}});var n={};function r(e,t){return function(){return e.apply(t,arguments)}}i.r(n),i.d(n,{hasBrowserEnv:function(){return De},hasStandardBrowserEnv:function(){return Oe},hasStandardBrowserWebWorkerEnv:function(){return Pe}});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,a=(e=>t=>{const i=o.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),l=e=>(e=e.toLowerCase(),t=>a(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,h=c("undefined");function d(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f=l("ArrayBuffer");function p(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t}const g=c("string"),v=c("function"),m=c("number"),y=e=>null!==e&&"object"===typeof e,_=e=>!0===e||!1===e,x=e=>{if("object"!==a(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},b=l("Date"),w=l("File"),S=l("Blob"),C=l("FileList"),A=e=>y(e)&&v(e.pipe),M=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=a(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},k=l("URLSearchParams"),T=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:i=!1}={}){if(null===e||"undefined"===typeof e)return;let n,r;if("object"!==typeof e&&(e=[e]),u(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(n=0;n<o;n++)s=r[n],t.call(null,e[s],s,e)}}function L(e,t){t=t.toLowerCase();const i=Object.keys(e);let n,r=i.length;while(r-- >0)if(n=i[r],t===n.toLowerCase())return n;return null}const E=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),D=e=>!h(e)&&e!==E;function O(){const{caseless:e}=D(this)&&this||{},t={},i=(i,n)=>{const r=e&&L(t,n)||n;x(t[r])&&x(i)?t[r]=O(t[r],i):x(i)?t[r]=O({},i):u(i)?t[r]=i.slice():t[r]=i};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&I(arguments[n],i);return t}const P=(e,t,i,{allOwnKeys:n}={})=>(I(t,((t,n)=>{i&&v(t)?e[n]=r(t,i):e[n]=t}),{allOwnKeys:n}),e),R=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),B=(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},N=(e,t,i,n)=>{let r,o,a;const l={};if(t=t||{},null==e)return t;do{r=Object.getOwnPropertyNames(e),o=r.length;while(o-- >0)a=r[o],n&&!n(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==i&&s(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},z=(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return-1!==n&&n===i},H=e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const i=new Array(t);while(t-- >0)i[t]=e[t];return i},F=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&s(Uint8Array)),V=(e,t)=>{const i=e&&e[Symbol.iterator],n=i.call(e);let r;while((r=n.next())&&!r.done){const i=r.value;t.call(e,i[0],i[1])}},j=(e,t)=>{let i;const n=[];while(null!==(i=e.exec(t)))n.push(i);return n},$=l("HTMLFormElement"),W=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,i){return t.toUpperCase()+i})),G=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),U=l("RegExp"),q=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};I(i,((i,r)=>{let o;!1!==(o=t(i,r,e))&&(n[r]=o||i)})),Object.defineProperties(e,n)},Z=e=>{q(e,((t,i)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=e[i];v(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},X=(e,t)=>{const i={},n=e=>{e.forEach((e=>{i[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),i},Y=()=>{},K=(e,t)=>(e=+e,Number.isFinite(e)?e:t),J="abcdefghijklmnopqrstuvwxyz",Q="0123456789",ee={DIGIT:Q,ALPHA:J,ALPHA_DIGIT:J+J.toUpperCase()+Q},te=(e=16,t=ee.ALPHA_DIGIT)=>{let i="";const{length:n}=t;while(e--)i+=t[Math.random()*n|0];return i};function ie(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const ne=e=>{const t=new Array(10),i=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const r=u(e)?[]:{};return I(e,((e,t)=>{const o=i(e,n+1);!h(o)&&(r[t]=o)})),t[n]=void 0,r}}return e};return i(e,0)},re=l("AsyncFunction"),oe=e=>e&&(y(e)||v(e))&&v(e.then)&&v(e.catch);var se={isArray:u,isArrayBuffer:f,isBuffer:d,isFormData:M,isArrayBufferView:p,isString:g,isNumber:m,isBoolean:_,isObject:y,isPlainObject:x,isUndefined:h,isDate:b,isFile:w,isBlob:S,isRegExp:U,isFunction:v,isStream:A,isURLSearchParams:k,isTypedArray:F,isFileList:C,forEach:I,merge:O,extend:P,trim:T,stripBOM:R,inherits:B,toFlatObject:N,kindOf:a,kindOfTest:l,endsWith:z,toArray:H,forEachEntry:V,matchAll:j,isHTMLForm:$,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:q,freezeMethods:Z,toObjectSet:X,toCamelCase:W,noop:Y,toFiniteNumber:K,findKey:L,global:E,isContextDefined:D,ALPHABET:ee,generateString:te,isSpecCompliantForm:ie,toJSONObject:ne,isAsyncFn:re,isThenable:oe};function ae(e,t,i,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}se.inherits(ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const le=ae.prototype,ce={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ce[e]={value:e}})),Object.defineProperties(ae,ce),Object.defineProperty(le,"isAxiosError",{value:!0}),ae.from=(e,t,i,n,r,o)=>{const s=Object.create(le);return se.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ae.call(s,e.message,t,i,n,r),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var ue=ae,he=null;function de(e){return se.isPlainObject(e)||se.isArray(e)}function fe(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,i){return e?e.concat(t).map((function(e,t){return e=fe(e),!i&&t?"["+e+"]":e})).join(i?".":""):t}function ge(e){return se.isArray(e)&&!e.some(de)}const ve=se.toFlatObject(se,{},null,(function(e){return/^is[A-Z]/.test(e)}));function me(e,t,i){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new(he||FormData),i=se.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!se.isUndefined(t[e])}));const n=i.metaTokens,r=i.visitor||u,o=i.dots,s=i.indexes,a=i.Blob||"undefined"!==typeof Blob&&Blob,l=a&&se.isSpecCompliantForm(t);if(!se.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(se.isDate(e))return e.toISOString();if(!l&&se.isBlob(e))throw new ue("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(e)||se.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,i,r){let a=e;if(e&&!r&&"object"===typeof e)if(se.endsWith(i,"{}"))i=n?i:i.slice(0,-2),e=JSON.stringify(e);else if(se.isArray(e)&&ge(e)||(se.isFileList(e)||se.endsWith(i,"[]"))&&(a=se.toArray(e)))return i=fe(i),a.forEach((function(e,n){!se.isUndefined(e)&&null!==e&&t.append(!0===s?pe([i],n,o):null===s?i:i+"[]",c(e))})),!1;return!!de(e)||(t.append(pe(r,i,o),c(e)),!1)}const h=[],d=Object.assign(ve,{defaultVisitor:u,convertValue:c,isVisitable:de});function f(e,i){if(!se.isUndefined(e)){if(-1!==h.indexOf(e))throw Error("Circular reference detected in "+i.join("."));h.push(e),se.forEach(e,(function(e,n){const o=!(se.isUndefined(e)||null===e)&&r.call(t,e,se.isString(n)?n.trim():n,i,d);!0===o&&f(e,i?i.concat(n):[n])})),h.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return f(e),t}var ye=me;function _e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function xe(e,t){this._pairs=[],e&&ye(e,this,t)}const be=xe.prototype;be.append=function(e,t){this._pairs.push([e,t])},be.toString=function(e){const t=e?function(t){return e.call(this,t,_e)}:_e;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var we=xe;function Se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ce(e,t,i){if(!t)return e;const n=i&&i.encode||Se,r=i&&i.serialize;let o;if(o=r?r(t,i):se.isURLSearchParams(t)?t.toString():new we(t,i).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}class Ae{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){se.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Me=Ae,ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Te="undefined"!==typeof URLSearchParams?URLSearchParams:we,Ie="undefined"!==typeof FormData?FormData:null,Le="undefined"!==typeof Blob?Blob:null,Ee={isBrowser:!0,classes:{URLSearchParams:Te,FormData:Ie,Blob:Le},protocols:["http","https","file","blob","url","data"]};const De="undefined"!==typeof window&&"undefined"!==typeof document,Oe=(e=>De&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),Pe=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var Re={...n,...Ee};function Be(e,t){return ye(e,new Re.classes.URLSearchParams,Object.assign({visitor:function(e,t,i,n){return Re.isNode&&se.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function Ne(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function ze(e){const t={},i=Object.keys(e);let n;const r=i.length;let o;for(n=0;n<r;n++)o=i[n],t[o]=e[o];return t}function He(e){function t(e,i,n,r){let o=e[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=e.length;if(o=!o&&se.isArray(n)?n.length:o,a)return se.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!s;n[o]&&se.isObject(n[o])||(n[o]=[]);const l=t(e,i,n[o],r);return l&&se.isArray(n[o])&&(n[o]=ze(n[o])),!s}if(se.isFormData(e)&&se.isFunction(e.entries)){const i={};return se.forEachEntry(e,((e,n)=>{t(Ne(e),n,i,0)})),i}return null}var Fe=He;function Ve(e,t,i){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(e)}const je={transitional:ke,adapter:["xhr","http"],transformRequest:[function(e,t){const i=t.getContentType()||"",n=i.indexOf("application/json")>-1,r=se.isObject(e);r&&se.isHTMLForm(e)&&(e=new FormData(e));const o=se.isFormData(e);if(o)return n?JSON.stringify(Fe(e)):e;if(se.isArrayBuffer(e)||se.isBuffer(e)||se.isStream(e)||se.isFile(e)||se.isBlob(e))return e;if(se.isArrayBufferView(e))return e.buffer;if(se.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Be(e,this.formSerializer).toString();if((s=se.isFileList(e))||i.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ye(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||n?(t.setContentType("application/json",!1),Ve(e)):e}],transformResponse:[function(e){const t=this.transitional||je.transitional,i=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&se.isString(e)&&(i&&!this.responseType||n)){const i=t&&t.silentJSONParsing,o=!i&&n;try{return JSON.parse(e)}catch(r){if(o){if("SyntaxError"===r.name)throw ue.from(r,ue.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Re.classes.FormData,Blob:Re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],(e=>{je.headers[e]={}}));var $e=je;const We=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ge=e=>{const t={};let i,n,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),i=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!i||t[i]&&We[i]||("set-cookie"===i?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)})),t};const Ue=Symbol("internals");function qe(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return!1===e||null==e?e:se.isArray(e)?e.map(Ze):String(e)}function Xe(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=i.exec(e))t[n[1]]=n[2];return t}const Ye=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ke(e,t,i,n,r){return se.isFunction(n)?n.call(this,t,i):(r&&(t=i),se.isString(t)?se.isString(n)?-1!==t.indexOf(n):se.isRegExp(n)?n.test(t):void 0:void 0)}function Je(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,i)=>t.toUpperCase()+i))}function Qe(e,t){const i=se.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+i,{value:function(e,i,r){return this[n].call(this,t,e,i,r)},configurable:!0})}))}class et{constructor(e){e&&this.set(e)}set(e,t,i){const n=this;function r(e,t,i){const r=qe(t);if(!r)throw new Error("header name must be a non-empty string");const o=se.findKey(n,r);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||t]=Ze(e))}const o=(e,t)=>se.forEach(e,((e,i)=>r(e,i,t)));return se.isPlainObject(e)||e instanceof this.constructor?o(e,t):se.isString(e)&&(e=e.trim())&&!Ye(e)?o(Ge(e),t):null!=e&&r(t,e,i),this}get(e,t){if(e=qe(e),e){const i=se.findKey(this,e);if(i){const e=this[i];if(!t)return e;if(!0===t)return Xe(e);if(se.isFunction(t))return t.call(this,e,i);if(se.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=qe(e),e){const i=se.findKey(this,e);return!(!i||void 0===this[i]||t&&!Ke(this,this[i],i,t))}return!1}delete(e,t){const i=this;let n=!1;function r(e){if(e=qe(e),e){const r=se.findKey(i,e);!r||t&&!Ke(i,i[r],r,t)||(delete i[r],n=!0)}}return se.isArray(e)?e.forEach(r):r(e),n}clear(e){const t=Object.keys(this);let i=t.length,n=!1;while(i--){const r=t[i];e&&!Ke(this,this[r],r,e,!0)||(delete this[r],n=!0)}return n}normalize(e){const t=this,i={};return se.forEach(this,((n,r)=>{const o=se.findKey(i,r);if(o)return t[o]=Ze(n),void delete t[r];const s=e?Je(r):String(r).trim();s!==r&&delete t[r],t[s]=Ze(n),i[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return se.forEach(this,((i,n)=>{null!=i&&!1!==i&&(t[n]=e&&se.isArray(i)?i.join(", "):i)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach((e=>i.set(e))),i}static accessor(e){const t=this[Ue]=this[Ue]={accessors:{}},i=t.accessors,n=this.prototype;function r(e){const t=qe(e);i[t]||(Qe(n,e),i[t]=!0)}return se.isArray(e)?e.forEach(r):r(e),this}}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(et.prototype,(({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}})),se.freezeMethods(et);var tt=et;function it(e,t){const i=this||$e,n=t||i,r=tt.from(n.headers);let o=n.data;return se.forEach(e,(function(e){o=e.call(i,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function nt(e){return!(!e||!e.__CANCEL__)}function rt(e,t,i){ue.call(this,null==e?"canceled":e,ue.ERR_CANCELED,t,i),this.name="CanceledError"}se.inherits(rt,ue,{__CANCEL__:!0});var ot=rt;function st(e,t,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?t(new ue("Request failed with status code "+i.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}var at=Re.hasStandardBrowserEnv?{write(e,t,i,n,r,o){const s=[e+"="+encodeURIComponent(t)];se.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),se.isString(n)&&s.push("path="+n),se.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ct(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ut(e,t){return e&&!lt(t)?ct(e,t):t}var ht=Re.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function n(i){let n=i;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return i=n(window.location.href),function(e){const t=se.isString(e)?n(e):e;return t.protocol===i.protocol&&t.host===i.host}}():function(){return function(){return!0}}();function dt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ft(e,t){e=e||10;const i=new Array(e),n=new Array(e);let r,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=n[s];r||(r=l),i[o]=a,n[o]=l;let u=s,h=0;while(u!==o)h+=i[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-r<t)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}}var pt=ft;function gt(e,t){let i=0;const n=pt(50,250);return r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-i,l=n(a),c=o<=s;i=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const vt="undefined"!==typeof XMLHttpRequest;var mt=vt&&function(e){return new Promise((function(t,i){let n=e.data;const r=tt.from(e.headers).normalize();let o,s,{responseType:a,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(se.isFormData(n))if(Re.hasStandardBrowserEnv||Re.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(s=r.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",i=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+i))}const h=ut(e.baseURL,e.url);function d(){if(!u)return;const n=tt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),r=a&&"text"!==a&&"json"!==a?u.response:u.responseText,o={data:r,status:u.status,statusText:u.statusText,headers:n,config:e,request:u};st((function(e){t(e),c()}),(function(e){i(e),c()}),o),u=null}if(u.open(e.method.toUpperCase(),Ce(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(i(new ue("Request aborted",ue.ECONNABORTED,e,u)),u=null)},u.onerror=function(){i(new ue("Network Error",ue.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||ke;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new ue(t,n.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,u)),u=null},Re.hasStandardBrowserEnv&&(l&&se.isFunction(l)&&(l=l(e)),l||!1!==l&&ht(h))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&at.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===n&&r.setContentType(null),"setRequestHeader"in u&&se.forEach(r.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),se.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",gt(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",gt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(i(!t||t.type?new ot(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=dt(h);f&&-1===Re.protocols.indexOf(f)?i(new ue("Unsupported protocol "+f+":",ue.ERR_BAD_REQUEST,e)):u.send(n||null)}))};const yt={http:he,xhr:mt};se.forEach(yt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(i){}Object.defineProperty(e,"adapterName",{value:t})}}));const _t=e=>`- ${e}`,xt=e=>se.isFunction(e)||null===e||!1===e;var bt={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:t}=e;let i,n;const r={};for(let o=0;o<t;o++){let t;if(i=e[o],n=i,!xt(i)&&(n=yt[(t=String(i)).toLowerCase()],void 0===n))throw new ue(`Unknown adapter '${t}'`);if(n)break;r[t||"#"+o]=n}if(!n){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let i=t?e.length>1?"since :\n"+e.map(_t).join("\n"):" "+_t(e[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:yt};function wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ot(null,e)}function St(e){wt(e),e.headers=tt.from(e.headers),e.data=it.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=bt.getAdapter(e.adapter||$e.adapter);return t(e).then((function(t){return wt(e),t.data=it.call(e,e.transformResponse,t),t.headers=tt.from(t.headers),t}),(function(t){return nt(t)||(wt(e),t&&t.response&&(t.response.data=it.call(e,e.transformResponse,t.response),t.response.headers=tt.from(t.response.headers))),Promise.reject(t)}))}const Ct=e=>e instanceof tt?e.toJSON():e;function At(e,t){t=t||{};const i={};function n(e,t,i){return se.isPlainObject(e)&&se.isPlainObject(t)?se.merge.call({caseless:i},e,t):se.isPlainObject(t)?se.merge({},t):se.isArray(t)?t.slice():t}function r(e,t,i){return se.isUndefined(t)?se.isUndefined(e)?void 0:n(void 0,e,i):n(e,t,i)}function o(e,t){if(!se.isUndefined(t))return n(void 0,t)}function s(e,t){return se.isUndefined(t)?se.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(i,r,o){return o in t?n(i,r):o in e?n(void 0,i):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>r(Ct(e),Ct(t),!0)};return se.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=l[n]||r,s=o(e[n],t[n],n);se.isUndefined(s)&&o!==a||(i[n]=s)})),i}const Mt="1.6.7",kt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{kt[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));const Tt={};function It(e,t,i){if("object"!==typeof e)throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;while(r-- >0){const o=n[r],s=t[o];if(s){const t=e[o],i=void 0===t||s(t,o,e);if(!0!==i)throw new ue("option "+o+" must be "+i,ue.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new ue("Unknown option "+o,ue.ERR_BAD_OPTION)}}kt.transitional=function(e,t,i){function n(e,t){return"[Axios v"+Mt+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,r,o)=>{if(!1===e)throw new ue(n(r," has been removed"+(t?" in "+t:"")),ue.ERR_DEPRECATED);return t&&!Tt[r]&&(Tt[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,r,o)}};var Lt={assertOptions:It,validators:kt};const Et=Lt.validators;class Dt{constructor(e){this.defaults=e,this.interceptors={request:new Me,response:new Me}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";i.stack?t&&!String(i.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+t):i.stack=t}throw i}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=At(this.defaults,t);const{transitional:i,paramsSerializer:n,headers:r}=t;void 0!==i&&Lt.assertOptions(i,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),null!=n&&(se.isFunction(n)?t.paramsSerializer={serialize:n}:Lt.assertOptions(n,{encode:Et.function,serialize:Et.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&se.merge(r.common,r[t.method]);r&&se.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=tt.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,h=0;if(!a){const e=[St.bind(this),void 0];e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);while(h<u)c=c.then(e[h++],e[h++]);return c}u=s.length;let d=t;h=0;while(h<u){const e=s[h++],t=s[h++];try{d=e(d)}catch(f){t.call(this,f);break}}try{c=St.call(this,d)}catch(f){return Promise.reject(f)}h=0,u=l.length;while(h<u)c=c.then(l[h++],l[h++]);return c}getUri(e){e=At(this.defaults,e);const t=ut(e.baseURL,e.url);return Ce(t,e.params,e.paramsSerializer)}}se.forEach(["delete","get","head","options"],(function(e){Dt.prototype[e]=function(t,i){return this.request(At(i||{},{method:e,url:t,data:(i||{}).data}))}})),se.forEach(["post","put","patch"],(function(e){function t(t){return function(i,n,r){return this.request(At(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Dt.prototype[e]=t(),Dt.prototype[e+"Form"]=t(!0)}));var Ot=Dt;class Pt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const i=this;this.promise.then((e=>{if(!i._listeners)return;let t=i._listeners.length;while(t-- >0)i._listeners[t](e);i._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e,n,r){i.reason||(i.reason=new ot(e,n,r),t(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Pt((function(t){e=t}));return{token:t,cancel:e}}}var Rt=Pt;function Bt(e){return function(t){return e.apply(null,t)}}function Nt(e){return se.isObject(e)&&!0===e.isAxiosError}const zt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zt).forEach((([e,t])=>{zt[t]=e}));var Ht=zt;function Ft(e){const t=new Ot(e),i=r(Ot.prototype.request,t);return se.extend(i,Ot.prototype,t,{allOwnKeys:!0}),se.extend(i,t,null,{allOwnKeys:!0}),i.create=function(t){return Ft(At(e,t))},i}const Vt=Ft($e);Vt.Axios=Ot,Vt.CanceledError=ot,Vt.CancelToken=Rt,Vt.isCancel=nt,Vt.VERSION=Mt,Vt.toFormData=ye,Vt.AxiosError=ue,Vt.Cancel=Vt.CanceledError,Vt.all=function(e){return Promise.all(e)},Vt.spread=Bt,Vt.isAxiosError=Nt,Vt.mergeConfig=At,Vt.AxiosHeaders=tt,Vt.formToJSON=e=>Fe(se.isHTMLForm(e)?new FormData(e):e),Vt.getAdapter=bt.getAdapter,Vt.HttpStatusCode=Ht,Vt.default=Vt;var jt=Vt}}]); |