text: (window.webpackJsonp=window.webpackJsonp||[]).push([[50],{16:function(t,e,r){var n=r(1),o=r(698),l=r(167),h=r(119),c=r(69),f=r(75),d=r(341),x=r(237);e.Image=x;var v=r(217);e.Group=v;var y=r(218);e.Text=y;var w=r(703);e.Circle=w;var S=r(1331);e.Sector=S;var m=r(1332);e.Ring=m;var _=r(705);e.Polygon=_;var T=r(707);e.Polyline=T;var N=r(479);e.Rect=N;var C=r(708);e.Line=C;var O=r(1335);e.BezierCurve=O;var k=r(1336);e.Arc=k;var B=r(1337);e.CompoundPath=B;var P=r(481);e.LinearGradient=P;var D=r(1338);e.RadialGradient=D;var R=r(71);e.BoundingRect=R;var M=r(482);e.IncrementalDisplayable=M;var z=r(480),F=Math.max,L=Math.min,A={},H="emphasis",W="normal",I=1,E={},U={};function G(t,e){U[t]=e}function Y(t,e,rect,r){var path=o.createFromString(t,e);return rect&&("center"===r&&(rect=X(rect,path.getBoundingRect())),j(path,rect)),path}function X(rect,t){var e,r=t.width/t.height,n=rect.height*r;return e=n<=rect.width?rect.height:(n=rect.width)/r,{x:rect.x+rect.width/2-n/2,y:rect.y+rect.height/2-e/2,width:n,height:e}}var Z=o.mergePath;function j(path,rect){if(path.applyTransform){var t=path.getBoundingRect().calculateTransform(rect);path.applyTransform(t)}}var V=z.subPixelOptimize;function J(t){return null!=t&&"none"!==t}var $=n.createHashMap(),K=0;function Q(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var r=t.__zr,n=t.useHoverLayer&&r&&"canvas"===r.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!r&&t.useHoverLayer)){var o=t,l=t.style;n&&(l=(o=r.addHover(t)).style),vt(l),n||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var r=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var o in e)null!=e[o]&&(r[o]=n[o]);r.fill=n.fill,r.stroke=n.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(o),l.extendFrom(e),tt(l,e,"fill"),tt(l,e,"stroke"),xt(l),n||(t.dirty(!1),t.z2+=1)}}}function tt(t,e,r){!J(e[r])&&J(t[r])&&(t[r]=function(t){if("string"!=typeof t)return t;var e=$.get(t);return e||(e=l.lift(t,-.1),K<1e4&&($.set(t,e),K++)),e}(t[r]))}function et(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var style=t.style,r=t.__cachedNormalStl;r&&(vt(style),t.setStyle(r),xt(style));var n=t.__cachedNormalZ2;null!=n&&t.z2-n==1&&(t.z2=n)}}function nt(t,e,r){var n,o=W,l=W;t.__highlighted&&(o=H,n=!0),e(t,r),t.__highlighted&&(l=H,n=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,r)})),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(o,l)}function it(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,et(t),Q(t))}function ot(t){!ut(this,t)&&!this.__highByOuter&&nt(this,Q)}function at(t){!ut(this,t)&&!this.__highByOuter&&nt(this,et)}function lt(t){this.__highByOuter|=1<<(t||0),nt(this,Q)}function ht(t){!(this.__highByOuter&=~(1<<(t||0)))&&nt(this,et)}function ut(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ct(t,e){var r=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!r||t.__highDownDispatcher){var n=r?"off":"on";t[n]("mouseover",ot)[n]("mouseout",at),t[n]("emphasis",lt)[n]("normal",ht),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!r}}function st(t,e,r,o,l){return ft(t,e,o,l),r&&n.extend(t,r),t}function ft(t,e,r,o){if((r=r||A).isRectText){var l;r.getTextPosition?l=r.getTextPosition(e,o):"outside"===(l=e.getShallow("position")||(o?null:"inside"))&&(l="top"),t.textPosition=l,t.textOffset=e.getShallow("offset");var h=e.getShallow("rotate");null!=h&&(h*=Math.PI/180),t.textRotation=h,t.textDistance=n.retrieve2(e.getShallow("distance"),o?null:5)}var c,f=e.ecModel,d=f&&f.option.textStyle,x=function(t){var e;for(;t&&t!==t.ecModel;){var r=(t.option||A).rich;if(r)for(var n in e=e||{},r)r.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}(e);if(x)for(var v in c={},x)if(x.hasOwnProperty(v)){var y=e.getModel(["rich",v]);gt(c[v]={},y,d,r,o)}return t.rich=c,gt(t,e,d,r,o,!0),r.forceRich&&!r.textStyle&&(r.textStyle={}),t}function gt(t,e,r,o,l,h){r=!l&&r||A,t.textFill=pt(e.getShallow("color"),o)||r.color,t.textStroke=pt(e.getShallow("textBorderColor"),o)||r.textBorderColor,t.textStrokeWidth=n.retrieve2(e.getShallow("textBorderWidth"),r.textBorderWidth),l||(h&&(t.insideRollbackOpt=o,xt(t)),null==t.textFill&&(t.textFill=o.autoColor)),t.fontStyle=e.getShallow("fontStyle")||r.fontStyle,t.fontWeight=e.getShallow("fontWeight")||r.fontWeight,t.fontSize=e.getShallow("fontSize")||r.fontSize,t.fontFamily=e.getShallow("fontFamily")||r.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),h&&o.disableBox||(t.textBackgroundColor=pt(e.getShallow("backgroundColor"),o),t.textPadding=e.getShallow("padding"),t.textBorderColor=pt(e.getShallow("borderColor"),o),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||r.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||r.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||r.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||r.textShadowOffsetY}function pt(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function xt(t){var e,r=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var o=n.autoColor,l=n.isRectText,h=n.useInsideStyle,c=!1!==h&&(!0===h||l&&r&&"string"==typeof r&&r.indexOf("inside")>=0),f=!c&&null!=o;(c||f)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),c&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),f&&(t.textFill=o)}t.insideRollback=e}function vt(style){var t=style.insideRollback;t&&(style.textFill=t.textFill,style.textStroke=t.textStroke,style.textStrokeWidth=t.textStrokeWidth,style.insideRollback=null)}function yt(t,e,r,n,o,l){if("function"==typeof o&&(l=o,o=null),n&&n.isAnimationEnabled()){var h=t?"Update":"",c=n.getShallow("animationDuration"+h),f=n.getShallow("animationEasing"+h),d=n.getShallow("animationDelay"+h);"function"==typeof d&&(d=d(o,n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null)),"function"==typeof c&&(c=c(o)),c>0?e.animateTo(r,c,d||0,f,l,!!l):(e.stopAnimation(),e.attr(r),l&&l())}else e.stopAnimation(),e.attr(r),l&&l()}function wt(t,e,r,n,o){yt(!0,t,e,r,n,o)}function St(t,e,r){return e&&!n.isArrayLike(e)&&(e=d.getLocalTransform(e)),r&&(e=h.invert([],e)),c.applyTransform([],t,e)}function mt(t,e,r,n,o,l,h,c){var f,d=r-t,x=n-e,v=h-o,y=c-l,w=_t(v,y,d,x);if((f=w)<=1e-6&&f>=-1e-6)return!1;var S=t-o,m=e-l,q=_t(S,m,d,x)/w;if(q<0||q>1)return!1;var p=_t(S,m,v,y)/w;return!(p<0||p>1)}function _t(t,e,r,n){return t*n-r*e}G("circle",w),G("sector",S),G("ring",m),G("polygon",_),G("polyline",T),G("rect",N),G("line",C),G("bezierCurve",O),G("arc",k),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return f.extend(t)},e.extendPath=function(t,e){return o.extendFromString(t,e)},e.registerShape=G,e.getShapeClass=function(t){if(U.hasOwnProperty(t))return U[t]},e.makePath=Y,e.makeImage=function(t,rect,e){var path=new x({style:{image:t,x:rect.x,y:rect.y,width:rect.width,height:rect.height},onload:function(img){if("center"===e){var t={width:img.width,height:img.height};path.setStyle(X(rect,t))}}});return path},e.mergePath=Z,e.resizePath=j,e.subPixelOptimizeLine=function(param){return z.subPixelOptimizeLine(param.shape,param.shape,param.style),param},e.subPixelOptimizeRect=function(param){return z.subPixelOptimizeRect(param.shape,param.shape,param.style),param},e.subPixelOptimize=V,e.setElementHoverStyle=it,e.setHoverStyle=function(t,e){ct(t,!0),nt(t,it,e)},e.setAsHighDownDispatcher=ct,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=E[t];return null==e&&I<=32&&(e=E[t]=I++),e},e.setLabelStyle=function(t,e,r,o,l,h,c){var f,d=(l=l||A).labelFetcher,x=l.labelDataIndex,v=l.labelDimIndex,y=l.labelProp,w=r.getShallow("show"),S=o.getShallow("show");(w||S)&&(d&&(f=d.getFormattedLabel(x,"normal",null,v,y)),null==f&&(f=n.isFunction(l.defaultText)?l.defaultText(x,l):l.defaultText));var m=w?f:null,_=S?n.retrieve2(d?d.getFormattedLabel(x,"emphasis",null,v,y):null,f):null;null==m&&null==_||(st(t,r,h,l),st(e,o,c,l,!0)),t.text=m,e.text=_},e.modifyLabelStyle=function(t,e,r){var o=t.style;e&&(vt(o),t.setStyle(e),xt(o)),o=t.__hoverStl,r&&o&&(vt(o),n.extend(o,r),xt(o))},e.setTextStyle=st,e.setText=function(t,e,r){var n,o={isRectText:!0};!1===r?n=!0:o.autoColor=r,ft(t,e,o,n)},e.getFont=function(t,e){var r=e&&e.getModel("textStyle");return n.trim([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=wt,e.initProps=function(t,e,r,n,o){yt(!1,t,e,r,n,o)},e.getTransform=function(t,e){for(var r=h.identity([]);t&&t!==e;)h.mul(r,t.getLocalTransform(),r),t=t.parent;return r},e.applyTransform=St,e.transformDirection=function(t,e,r){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),l=["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0];return l=St(l,e,r),Math.abs(l[0])>Math.abs(l[1])?l[0]>0?"right":"left":l[1]>0?"bottom":"top"},e.groupTransition=function(t,e,r,o){if(t&&e){var l,h=(l={},t.traverse((function(t){!t.isGroup&&t.anid&&(l[t.anid]=t)})),l);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=h[t.anid];if(e){var n=f(t);t.attr(f(e)),wt(t,n,r,t.dataIndex)}}}))}function f(t){var e={position:c.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}},e.clipPointsByRect=function(t,rect){return n.map(t,(function(t){var e=t[0];e=F(e,rect.x),e=L(e,rect.x+rect.width);var r=t[1];return r=F(r,rect.y),[e,r=L(r,rect.y+rect.height)]}))},e.clipRectByRect=function(t,rect){var e=F(t.x,rect.x),r=L(t.x+t.width,rect.x+rect.width),n=F(t.y,rect.y),o=L(t.y+t.height,rect.y+rect.height);if(r>=e&&o>=n)return{x:e,y:n,width:r-e,height:o-n}},e.createIcon=function(t,e,rect){var style=(e=n.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(rect=rect||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(style.image=t.slice(8),n.defaults(style,rect),new x(e)):Y(t.replace("path://",""),e,rect,"center")},e.linePolygonIntersect=function(t,e,r,n,o){for(var i=0,l=o[o.length-1];i<o.length;i++){var p=o[i];if(mt(t,e,r,n,p[0],p[1],l[0],l[1]))return!0;l=p}},e.lineLineIntersect=mt},283:function(t,e,r){var n=r(1),o=r(180).parseClassType,base=0;e.getUID=function(t){return[t||"",base++,Math.random().toFixed(5)].join("_")},e.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,r){t=o(t),e[t.main]=r},t.determineSubType=function(r,option){var n=option.type;if(!n){var l=o(r).main;t.hasSubTypes(r)&&e[l]&&(n=e[l](option))}return n},t},e.enableTopologicalTravel=function(t,e){function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,o,l,h){if(t.length){var c=function(t){var o={},l=[];return n.each(t,(function(h){var c=r(o,h),f=function(t,e){var r=[];return n.each(t,(function(t){n.indexOf(e,t)>=0&&r.push(t)})),r}(c.originalDeps=e(h),t);c.entryCount=f.length,0===c.entryCount&&l.push(h),n.each(f,(function(t){n.indexOf(c.predecessor,t)<0&&c.predecessor.push(t);var e=r(o,t);n.indexOf(e.successor,t)<0&&e.successor.push(h)}))})),{graph:o,noEntryList:l}}(o),f=c.graph,d=c.noEntryList,x={};for(n.each(t,(function(t){x[t]=!0}));d.length;){var v=d.pop(),y=f[v],w=!!x[v];w&&(l.call(h,v,y.originalDeps.slice()),delete x[v]),n.each(y.successor,w?m:S)}n.each(x,(function(){throw new Error("Circle dependency may exists")}))}function S(t){f[t].entryCount--,0===f[t].entryCount&&d.push(t)}function m(t){x[t]=!0,S(t)}}}},59:function(t,e,r){var n=r(1),o=r(71),l=r(34).parsePercent,h=r(63),c=n.each,f=["left","right","top","bottom","width","height"],d=[["width","left","right"],["height","top","bottom"]];function x(t,e,r,n,o){var l=0,h=0;null==n&&(n=1/0),null==o&&(o=1/0);var c=0;e.eachChild((function(f,d){var x,v,y=f.position,rect=f.getBoundingRect(),w=e.childAt(d+1),S=w&&w.getBoundingRect();if("horizontal"===t){var m=rect.width+(S?-S.x+rect.x:0);(x=l+m)>n||f.newline?(l=0,x=m,h+=c+r,c=rect.height):c=Math.max(c,rect.height)}else{var _=rect.height+(S?-S.y+rect.y:0);(v=h+_)>o||f.newline?(l+=c+r,h=0,v=_,c=rect.width):c=Math.max(c,rect.width)}f.newline||(y[0]=l,y[1]=h,"horizontal"===t?l=x+r:h=v+r)}))}var v=x,y=n.curry(x,"vertical"),w=n.curry(x,"horizontal");function S(t,e,r){r=h.normalizeCssArray(r||0);var n=e.width,c=e.height,f=l(t.left,n),d=l(t.top,c),x=l(t.right,n),v=l(t.bottom,c),y=l(t.width,n),w=l(t.height,c),S=r[2]+r[0],m=r[1]+r[3],_=t.aspect;switch(isNaN(y)&&(y=n-x-m-f),isNaN(w)&&(w=c-v-S-d),null!=_&&(isNaN(y)&&isNaN(w)&&(_>n/c?y=.8*n:w=.8*c),isNaN(y)&&(y=_*w),isNaN(w)&&(w=y/_)),isNaN(f)&&(f=n-x-y-m),isNaN(d)&&(d=c-v-w-S),t.left||t.right){case"center":f=n/2-y/2-r[3];break;case"right":f=n-y-m}switch(t.top||t.bottom){case"middle":case"center":d=c/2-w/2-r[0];break;case"bottom":d=c-w-S}f=f||0,d=d||0,isNaN(y)&&(y=n-m-f-(x||0)),isNaN(w)&&(w=c-S-d-(v||0));var rect=new o(f+r[3],d+r[0],y,w);return rect.margin=r,rect}function m(t,source){return source&&t&&c(f,(function(e){source.hasOwnProperty(e)&&(t[e]=source[e])})),t}e.LOCATION_PARAMS=f,e.HV_NAMES=d,e.box=v,e.vbox=y,e.hbox=w,e.getAvailableSize=function(t,e,r){var n=e.width,o=e.height,c=l(t.x,n),f=l(t.y,o),d=l(t.x2,n),x=l(t.y2,o);return(isNaN(c)||isNaN(parseFloat(t.x)))&&(c=0),(isNaN(d)||isNaN(parseFloat(t.x2)))&&(d=n),(isNaN(f)||isNaN(parseFloat(t.y)))&&(f=0),(isNaN(x)||isNaN(parseFloat(t.y2)))&&(x=o),r=h.normalizeCssArray(r||0),{width:Math.max(d-c-r[1]-r[3],0),height:Math.max(x-f-r[0]-r[2],0)}},e.getLayoutRect=S,e.positionElement=function(t,e,r,l,h){var c=!h||!h.hv||h.hv[0],f=!h||!h.hv||h.hv[1],d=h&&h.boundingMode||"all";if(c||f){var rect;if("raw"===d)rect="group"===t.type?new o(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(rect=t.getBoundingRect(),t.needLocalTransform()){var x=t.getLocalTransform();(rect=rect.clone()).applyTransform(x)}e=S(n.defaults({width:rect.width,height:rect.height},e),r,l);var v=t.position,y=c?e.x-rect.x:0,w=f?e.y-rect.y:0;t.attr("position","raw"===d?[y,w]:[v[0]+y,v[1]+w])}},e.sizeCalculable=function(option,t){return null!=option[d[t][0]]||null!=option[d[t][1]]&&null!=option[d[t][2]]},e.mergeLayoutParam=function(t,e,r){!n.isObject(r)&&(r={});var o=r.ignoreSize;!n.isArray(o)&&(o=[o,o]);var l=f(d[0],0),h=f(d[1],1);function f(r,n){var l={},h=0,f={},d=0;if(c(r,(function(e){f[e]=t[e]})),c(r,(function(t){x(e,t)&&(l[t]=f[t]=e[t]),v(l,t)&&h++,v(f,t)&&d++})),o[n])return v(e,r[1])?f[r[2]]=null:v(e,r[2])&&(f[r[1]]=null),f;if(2!==d&&h){if(h>=2)return l;for(var i=0;i<r.length;i++){var y=r[i];if(!x(l,y)&&x(t,y)){l[y]=t[y];break}}return l}return f}function x(t,e){return t.hasOwnProperty(e)}function v(t,e){return null!=t[e]&&"auto"!==t[e]}function y(t,e,source){c(t,(function(t){e[t]=source[t]}))}y(d[0],t,l),y(d[1],t,h)},e.getLayoutParams=function(source){return m({},source)},e.copyLayoutParams=m},63:function(t,e,r){var n=r(1),o=r(138),l=r(34);var h=n.normalizeCssArray,c=/([&<>"'])/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function d(source){return null==source?"":(source+"").replace(c,(function(t,e){return f[e]}))}var x=["a","b","c","d","e","f","g"],v=function(t,e){return"{"+t+(null==e?"":e)+"}"};function y(t,e){return"0000".substr(0,e-(t+="").length)+t}var w=o.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=h,e.encodeHTML=d,e.formatTpl=function(t,e,r){n.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var l=e[0].$vars||[],i=0;i<l.length;i++){var h=x[i];t=t.replace(v(h),v(h,0))}for(var c=0;c<o;c++)for(var f=0;f<l.length;f++){var y=e[c][l[f]];t=t.replace(v(x[f],c),r?d(y):y)}return t},e.formatTplSimple=function(t,param,e){return n.each(param,(function(r,n){t=t.replace("{"+n+"}",e?d(r):r)})),t},e.getTooltipMarker=function(t,e){var r=(t=n.isString(t)?{color:t,extraCssText:e}:t||{}).color,o=t.type,l=(e=t.extraCssText,t.renderMode||"html"),h=t.markerId||"X";return r?"html"===l?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+d(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+d(r)+";"+(e||"")+'"></span>':{renderMode:l,content:"{marker"+h+"|}  ",style:{color:r}}:""},e.formatTime=function(t,e,r){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=l.parseDate(e),o=r?"UTC":"",h=n["get"+o+"FullYear"](),c=n["get"+o+"Month"]()+1,f=n["get"+o+"Date"](),d=n["get"+o+"Hours"](),x=n["get"+o+"Minutes"](),s=n["get"+o+"Seconds"](),v=n["get"+o+"Milliseconds"]();return t=t.replace("MM",y(c,2)).replace("M",c).replace("yyyy",h).replace("yy",h%100).replace("dd",y(f,2)).replace("d",f).replace("hh",y(d,2)).replace("h",d).replace("mm",y(x,2)).replace("m",x).replace("ss",y(s,2)).replace("s",s).replace("SSS",y(v,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=w,e.getTextBoundingRect=function(t){return o.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(text,t,e,r,n,l,h,c){return o.getBoundingRect(text,t,e,r,n,c,l,h)},e.windowOpen=function(link,t){if("_blank"===t||"blank"===t){var e=window.open();e.opener=null,e.location=link}else window.open(link,t)}}}]);