123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-102f6478"],{"0046":function(t,e,i){var n=i("6d8b"),r=n.each,a=n.createHashMap,o=i("4f85"),s=i("3301"),l=o.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return u(i,this),s(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,(function(e,r){t===e&&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 u(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=a();r(i.dimensions,(function(t){var e=c(t);n.set(t,e)}))}}}function c(t){return+t.replace("dim","")}t.exports=l},"004f":function(t,e,i){var n=i("6d8b"),r=i("72b6"),a=i("2306"),o=i("a15a"),s=o.createSymbol,l=i("f934"),u=i("cbb0"),c=r.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),r=e.textStyleModel,o=r.getFont(),s=r.getTextColor(),u=this._getItemAlign(),c=e.itemSize,h=this._getViewData(),d=h.endsText,f=n.retrieve(e.get("showLabel",!0),!d);function p(r){var l=r.piece,h=new a.Group;h.onclick=n.bind(this._onItemClick,this,l),this._enableHoverLink(h,r.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(h,d,[0,0,c[0],c[1]]),f){var p=this.visualMapModel.getValueState(d);h.add(new a.Text({style:{x:"right"===u?-i:c[0]+i,y:c[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:u,textFont:o,textFill:s,opacity:"outOfRange"===p?.5:1}}))}t.add(h)}d&&this._renderEndsText(t,d[0],c,f,u),n.each(h.viewPieceList,p,this),d&&this._renderEndsText(t,d[1],c,f,u),l.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:u.makeHighDownBatch(i.findTargetDataIndices(e),i)})}t.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return u.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,r){if(e){var o=new a.Group,s=this.visualMapModel.textStyleModel;o.add(new a.Text({style:{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?r:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=n.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),r=t.get("orient"),a=t.get("inverse");return("horizontal"===r?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(s(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,r=n.clone(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(r[a]=!0,n.each(r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),h=c;t.exports=h},"007d":function(t,e,i){var n=i("3eba");i("cb8f"),i("a96b"),i("42f6"),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00ba":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("e46b"),o=i("e0d3"),s=o.defaultEmphasis,l=i("0f99"),u=l.makeSeriesEncodeForNameBased,c=i("c4a3"),h=n.extendSeriesModel({type:"series.funnel",init:function(t){h.superApply(this,"init",arguments),this.legendVisualProvider=new c(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,e){return a(this,{coordDimensions:["value"],encodeDefaulter:r.curry(u,this)})},_defaultLabelLine:function(t){s(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=h.superCall(this,"getDataParams",t),n=e.mapDimension("value"),r=e.getSum(n);return i.percent=r?+(e.get(n,t)/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;t.exports=d},"00d8":function(t,e,i){var n=i("6d8b");function r(t,e){return e=e||[0,0],n.map([0,1],(function(i){var n=e[i],r=t[i]/2,a=[],o=[];return a[i]=n-r,o[i]=n+r,a[1-i]=o[1-i]=e[1-i],Math.abs(this.dataToPoint(a)[i]-this.dataToPoint(o)[i])}),this)}function a(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(r,t)}}}t.exports=a},"0141":function(t,e,i){var n=i("6d8b"),r=i("9850"),a=i("6cc5"),o=i("5b87");function s(t,e,i,n){a.call(this,t),this.map=e;var r=o.load(e,i);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==n||n,this.regions=r.regions,this._rect=r.boundingRect}function l(t,e,i,n){var r=i.geoModel,a=i.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem||(a.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](n):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return!0;return!1},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),o=this._invertLongitute;a=a.clone(),o&&(a.y=-a.y-a.height);var s=this._rawTransformable;if(s.transform=a.calculateTransform(new r(t,e,i,n)),s.decomposeTransform(),o){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return e[i]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,i){if("string"===typeof t&&(t=this.getGeoCoord(t)),t)return a.prototype.dataToPoint.call(this,t,e,i)},convertToPixel:n.curry(l,"dataToPoint"),convertFromPixel:n.curry(l,"pointToData")},n.mixin(s,a);var u=s;t.exports=u},"0156":function(t,e,i){var n=i("6d8b");function r(t,e,i){i=i||{};var r=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,u=s?"onZero":l,c=a.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=e.get("offset")||0,g="x"===c?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=["y"===c?g[f[u]]:d[0],"x"===c?g[f[u]]:d[3]],o.rotation=Math.PI/2*("x"===c?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[l],o.labelOffset=s?g[f[l]]-g[f.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),n.retrieve(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var y=e.get("axisLabel.rotate");return o.labelRotate="top"===u?-y:y,o.z2=1,o}e.layout=r},"01ed":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2306");i("5aa9"),i("af24"),n.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},"01ef":function(t,e){function i(t,e,i){var n=t.target,r=n.position;r[0]+=e,r[1]+=i,n.dirty()}function n(t,e,i,n){var r=t.target,a=t.zoomLimit,o=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var u=a.min||0,c=a.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(h-1),o[1]-=(n-o[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()}e.updateViewOnPan=i,e.updateViewOnZoom=n},"0352":function(t,e,i){var n=i("6cb7"),r=i("b12f"),a=i("0f99"),o=a.detectSourceFormat,s=i("93d0"),l=s.SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),r.extend({type:"dataset"})},"04f6":function(t,e){var i=32,n=7;function r(t){var e=0;while(t>=i)e|=1&t,t>>=1;return t+e}function a(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){while(r<i&&n(t[r],t[r-1])<0)r++;o(t,e,r)}else while(r<i&&n(t[r],t[r-1])>=0)r++;return r-e}function o(t,e,i){i--;while(e<i){var n=t[e];t[e++]=t[i],t[i--]=n}}function s(t,e,i,n,r){for(n===e&&n++;n<i;n++){var a,o=t[n],s=e,l=n;while(s<l)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=o}}function l(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){s=n-r;while(l<s&&a(t,e[i+r+l])>0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{s=r+1;while(l<s&&a(t,e[i+r-l])<=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}o++;while(o<l){var c=o+(l-o>>>1);a(t,e[i+c])>0?o=c+1:l=c}return l}function u(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){s=r+1;while(l<s&&a(t,e[i+r-l])<0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{s=n-r;while(l<s&&a(t,e[i+r+l])>=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}o++;while(o<l){var c=o+(l-o>>>1);a(t,e[i+c])<0?l=c:o=c+1}return l}function c(t,e){var i,r,a=n,o=0,s=0;o=t.length;var c=[];function h(t,e){i[s]=t,r[s]=e,s+=1}function d(){while(s>1){var t=s-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;p(t)}}function f(){while(s>1){var t=s-2;t>0&&r[t-1]<r[t+1]&&t--,p(t)}}function p(n){var a=i[n],o=r[n],c=i[n+1],h=r[n+1];r[n]=o+h,n===s-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),s--;var d=u(t[c],t,a,o,0,e);a+=d,o-=d,0!==o&&(h=l(t[a+o-1],t,c,h,h-1,e),0!==h&&(o<=h?g(a,o,c,h):v(a,o,c,h)))}function g(i,r,o,s){var h=0;for(h=0;h<r;h++)c[h]=t[i+h];var d=0,f=o,p=i;if(t[p++]=t[f++],0!==--s)if(1!==r){var g,v,m,y=a;while(1){g=0,v=0,m=!1;do{if(e(t[f],c[d])<0){if(t[p++]=t[f++],v++,g=0,0===--s){m=!0;break}}else if(t[p++]=c[d++],g++,v=0,1===--r){m=!0;break}}while((g|v)<y);if(m)break;do{if(g=u(t[f],c,d,r,0,e),0!==g){for(h=0;h<g;h++)t[p+h]=c[d+h];if(p+=g,d+=g,r-=g,r<=1){m=!0;break}}if(t[p++]=t[f++],0===--s){m=!0;break}if(v=l(c[d],t,f,s,0,e),0!==v){for(h=0;h<v;h++)t[p+h]=t[f+h];if(p+=v,f+=v,s-=v,0===s){m=!0;break}}if(t[p++]=c[d++],1===--r){m=!0;break}y--}while(g>=n||v>=n);if(m)break;y<0&&(y=0),y+=2}if(a=y,a<1&&(a=1),1===r){for(h=0;h<s;h++)t[p+h]=t[f+h];t[p+s]=c[d]}else{if(0===r)throw new Error;for(h=0;h<r;h++)t[p+h]=c[d+h]}}else{for(h=0;h<s;h++)t[p+h]=t[f+h];t[p+s]=c[d]}else for(h=0;h<r;h++)t[p+h]=c[d+h]}function v(i,r,o,s){var h=0;for(h=0;h<s;h++)c[h]=t[o+h];var d=i+r-1,f=s-1,p=o+s-1,g=0,v=0;if(t[p--]=t[d--],0!==--r)if(1!==s){var m=a;while(1){var y=0,x=0,_=!1;do{if(e(c[f],t[d])<0){if(t[p--]=t[d--],y++,x=0,0===--r){_=!0;break}}else if(t[p--]=c[f--],x++,y=0,1===--s){_=!0;break}}while((y|x)<m);if(_)break;do{if(y=r-u(c[f],t,i,r,r-1,e),0!==y){for(p-=y,d-=y,r-=y,v=p+1,g=d+1,h=y-1;h>=0;h--)t[v+h]=t[g+h];if(0===r){_=!0;break}}if(t[p--]=c[f--],1===--s){_=!0;break}if(x=s-l(t[d],c,0,s,s-1,e),0!==x){for(p-=x,f-=x,s-=x,v=p+1,g=f+1,h=0;h<x;h++)t[v+h]=c[g+h];if(s<=1){_=!0;break}}if(t[p--]=t[d--],0===--r){_=!0;break}m--}while(y>=n||x>=n);if(_)break;m<0&&(m=0),m+=2}if(a=m,a<1&&(a=1),1===s){for(p-=r,d-=r,v=p+1,g=d+1,h=r-1;h>=0;h--)t[v+h]=t[g+h];t[p]=c[f]}else{if(0===s)throw new Error;for(g=p-(s-1),h=0;h<s;h++)t[g+h]=c[h]}}else{for(p-=r,d-=r,v=p+1,g=d+1,h=r-1;h>=0;h--)t[v+h]=t[g+h];t[p]=c[f]}else for(g=p-(s-1),h=0;h<s;h++)t[g+h]=c[h]}i=[],r=[],this.mergeRuns=d,this.forceMergeRuns=f,this.pushRun=h}function h(t,e,n,o){n||(n=0),o||(o=t.length);var l=o-n;if(!(l<2)){var u=0;if(l<i)return u=a(t,n,o,e),void s(t,n,o,n+u,e);var h=new c(t,e),d=r(l);do{if(u=a(t,n,o,e),u<d){var f=l;f>d&&(f=d),s(t,n,n+f,n+u,e),u=f}h.pushRun(n,u),h.mergeRuns(),l-=u,n+=u}while(0!==l);h.forceMergeRuns()}}t.exports=h},"0655":function(t,e,i){var n=i("8728"),r=1e-8;function a(t,e){return Math.abs(t-e)<r}function o(t,e,i){var r=0,o=t[0];if(!o)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=n(o[0],o[1],l[0],l[1],e,i),o=l}var u=t[0];return a(o[0],u[0])&&a(o[1],u[1])||(r+=n(o[0],o[1],u[0],u[1],e,i)),0!==r}e.contain=o},"06ad":function(t,e,i){var n=i("4436"),r=i("41ef"),a=i("6d8b"),o=a.isArrayLike,s=Array.prototype.slice;function l(t,e){return t[e]}function u(t,e,i){t[e]=i}function c(t,e,i){return(e-t)*i+t}function h(t,e,i){return i>.5?e:t}function d(t,e,i,n,r){var a=t.length;if(1===r)for(var o=0;o<a;o++)n[o]=c(t[o],e[o],i);else{var s=a&&t[0].length;for(o=0;o<a;o++)for(var l=0;l<s;l++)n[o][l]=c(t[o][l],e[o][l],i)}}function f(t,e,i){var n=t.length,r=e.length;if(n!==r){var a=n>r;if(a)t.length=r;else for(var o=n;o<r;o++)t.push(1===i?e[o]:s.call(e[o]))}var l=t[0]&&t[0].length;for(o=0;o<t.length;o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var u=0;u<l;u++)isNaN(t[o][u])&&(t[o][u]=e[o][u])}function p(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var r=0;r<n;r++)if(t[r]!==e[r])return!1}else{var a=t[0].length;for(r=0;r<n;r++)for(var o=0;o<a;o++)if(t[r][o]!==e[r][o])return!1}return!0}function g(t,e,i,n,r,a,o,s,l){var u=t.length;if(1===l)for(var c=0;c<u;c++)s[c]=v(t[c],e[c],i[c],n[c],r,a,o);else{var h=t[0].length;for(c=0;c<u;c++)for(var d=0;d<h;d++)s[c][d]=v(t[c][d],e[c][d],i[c][d],n[c][d],r,a,o)}}function v(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function m(t){if(o(t)){var e=t.length;if(o(t[0])){for(var i=[],n=0;n<e;n++)i.push(s.call(t[n]));return i}return s.call(t)}return t}function y(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function x(t){var e=t[t.length-1].value;return o(e&&e[0])?2:1}function _(t,e,i,a,s,l){var u=t._getter,m=t._setter,_="spline"===e,b=a.length;if(b){var S,T=a[0].value,w=o(T),A=!1,E=!1,I=w?x(a):0;a.sort((function(t,e){return t.time-e.time})),S=a[b-1].time;for(var D=[],M=[],L=a[0].value,C=!0,k=0;k<b;k++){D.push(a[k].time/S);var R=a[k].value;if(w&&p(R,L,I)||!w&&R===L||(C=!1),L=R,"string"===typeof R){var P=r.parse(R);P?(R=P,A=!0):E=!0}M.push(R)}if(l||!C){var O=M[b-1];for(k=0;k<b-1;k++)w?f(M[k],O,I):!isNaN(M[k])||isNaN(O)||E||A||(M[k]=O);w&&f(u(t._target,s),O,I);var N,F,B,z,V,G,U=0,H=0;if(A)var W=[0,0,0,0];var j=function(t,e){var i;if(e<0)i=0;else if(e<H){for(N=Math.min(U+1,b-1),i=N;i>=0;i--)if(D[i]<=e)break;i=Math.min(i,b-2)}else{for(i=U;i<b;i++)if(D[i]>e)break;i=Math.min(i-1,b-2)}U=i,H=e;var n=D[i+1]-D[i];if(0!==n)if(F=(e-D[i])/n,_)if(z=M[i],B=M[0===i?i:i-1],V=M[i>b-2?b-1:i+1],G=M[i>b-3?b-1:i+2],w)g(B,z,V,G,F,F*F,F*F*F,u(t,s),I);else{if(A)r=g(B,z,V,G,F,F*F,F*F*F,W,1),r=y(W);else{if(E)return h(z,V,F);r=v(B,z,V,G,F,F*F,F*F*F)}m(t,s,r)}else if(w)d(M[i],M[i+1],F,u(t,s),I);else{var r;if(A)d(M[i],M[i+1],F,W,1),r=y(W);else{if(E)return h(M[i],M[i+1],F);r=c(M[i],M[i+1],F)}m(t,s,r)}},K=new n({target:t._target,life:S,loop:t._loop,delay:t._delay,onframe:j,ondestroy:i});return e&&"spline"!==e&&(K.easing=e),K}}}var b=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||l,this._setter=n||u,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:m(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,i=0;i<e;i++)t[i].call(this)},start:function(t,e){var i,n=this,r=0,a=function(){r--,r||n._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=_(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(t,e){l(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var S=b;t.exports=S},"06c7":function(t,e,i){var n=i("6d8b"),r=i("31d9"),a=i("6179"),o=i("b1d4"),s=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};function l(t){this.root,this.data,this._nodes=[],this.hostModel=t}function u(t,e){var i=e.children;t.parentNode!==e&&(i.push(t),t.parentNode=e)}s.prototype={constructor:s,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,i){"function"===typeof t&&(i=e,e=t,t=null),t=t||{},n.isString(t)&&(t={order:t});var r,a=t.order||"preorder",o=this[t.attr||"children"];"preorder"===a&&(r=e.call(i,this));for(var s=0;!r&&s<o.length;s++)o[s].eachNode(t,e,i);"postorder"===a&&e.call(i,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].contains(t);if(r)return r}},getAncestors:function(t){var e=[],i=t?this:this.parentNode;while(i)e.push(i),i=i.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,i=e.data.getItemModel(this.dataIndex);return i.getModel(t)}},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i<n;i++)e[i].dataIndex=-1;for(i=0,n=t.count();i<n;i++)e[t.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},l.createTree=function(t,e,i){var c=new l(e),h=[],d=1;function f(t,e){var i=t.value;d=Math.max(d,n.isArray(i)?i.length:1),h.push(t);var r=new s(t.name,c);e?u(r,e):c.root=r,c._nodes.push(r);var a=t.children;if(a)for(var o=0;o<a.length;o++)f(a[o],r)}f(t),c.root.updateDepthAndHeight(0);var p=o(h,{coordDimensions:["value"],dimensionsCount:d}),g=new a(p,e);return g.initData(h),i&&i(g),r({mainData:g,struct:c,structAttr:"tree"}),c.update(),c};var c=l;t.exports=c},"06ea":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("eaea"),o=i("5f14"),s=i("60e3"),l=i("3842"),u=l.reformIntervals,c=a.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(t,e){c.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();h[this._mode].call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=r.clone(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=r.map(this._pieceList,(function(t){t=r.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},i=o.listVisualTypes(),n=this.isCategory();function l(t,e,i){return t&&t[e]&&(r.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}r.each(t.pieces,(function(t){r.each(i,(function(i){t.hasOwnProperty(i)&&(e[i]=1)}))})),r.each(e,(function(e,i){var a=0;r.each(this.stateList,(function(e){a|=l(t,e,i)||l(t.target,e,i)}),this),!a&&r.each(this.stateList,(function(e){(t[e]||(t[e]={}))[i]=s.get(i,"inRange"===e?"active":"inactive",n)}))}),this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,r.each(n,(function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)}),this),"single"===i.selectedMode){var o=!1;r.each(n,(function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(o?a[i]=!1:o=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=r.clone(t)},getValueState:function(t){var e=o.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),(function(e,i){var r=o.findPieceIndex(e,this._pieceList);r===t&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],i=[],n=this,a=this._pieceList.slice();if(a.length){var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(a,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:i}}function l(r,a){var o=n.getRepresentValue({interval:r});a||(a=n.getValueState(o));var s=t(o,a);r[0]===-1/0?i[0]=s:r[1]===1/0?i[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),h={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;var o=(n[1]-n[0])/a;while(+o.toFixed(i)!==o&&i<5)i++;t.precision=i,o=+o.toFixed(i),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var s=0,l=n[0];s<a;l+=o,s++){var c=s===a-1?n[1]:l+o;e.push({interval:[l,c],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),u(e),r.each(e,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(){var t=this.option;r.each(t.categories,(function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})}),this),d(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;r.each(t.pieces,(function(t,i){r.isObject(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var a=n.value=t.value;n.interval=[a,a],n.close=[1,1]}else{for(var s=n.interval=[],l=n.close=[0,0],u=[1,0,1],c=[-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==s[d];p++)s[d]=t[f[p]],l[d]=u[p],h[d]=2===p;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(n.value=s[0])}n.visual=o.retrieveVisuals(t),e.push(n)}),this),d(t,e),u(e),r.each(e,(function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function d(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var f=c;t.exports=f},"07d7":function(t,e,i){var n=i("6d8b"),r=i("41ef"),a=i("607d"),o=i("65ed"),s=i("22d1"),l=i("eda2"),u=n.each,c=l.toCamelCase,h=["","-webkit-","-moz-","-o-"],d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function f(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return n.map(h,(function(t){return t+"transition:"+i})).join(";")}function p(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*i/2)),i&&e.push("line-height:"+r+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),u(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}function g(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),a=t.getModel("textStyle"),o=t.get("padding");return i&&e.push(f(i)),n&&(s.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+r.toHex(n)),e.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(i){var n="border-"+i,r=c(n),a=t.get(r);null!=a&&e.push(n+":"+a+("color"===i?"":"px"))})),e.push(p(a)),null!=o&&e.push("padding:"+l.normalizeCssArray(o).join("px ")+"px"),e.join(";")+";"}function v(t,e,i,n,r){var a=e&&e.painter;if(i){var s=a&&a.getViewportRoot();s&&o.transformLocalCoord(t,s,document.body,n,r)}else{t[0]=n,t[1]=r;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function m(t,e,i){if(s.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],v(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t,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(t){if(t=t||window.event,!l._enterable){var e=r.handler,i=r.painter.getViewportRoot();a.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}m.prototype={constructor:m,_enterable:!0,update:function(t){var e=this._container,i=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative");var r=t.get("alwaysShowContent");r&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,i=this._styleCoord;e.style.cssText=d+g(t)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i=this._styleCoord;v(i,this._zr,this._appendToBody,t,e);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(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}};var y=m;t.exports=y},"07e6":function(t,e,i){i("4d85"),i("a753")},"0817":function(t,e,i){var n=i("3eba");i("f306"),i("0046"),i("60d7");var r=i("ab71");n.registerVisual(r)},"085d":function(t,e,i){var n=i("3eba");i("bd92"),i("19e2");var r=i("eabf"),a=i("4c99"),o=i("09b1");n.registerPreprocessor(r),n.registerVisual(a),n.registerLayout(o)},"08c3":function(t,e,i){var n=i("6d8b"),r=i("84ce"),a=function(t,e,i,n){r.call(this,t,e,i),this.type=n||"value",this.model=null};a.prototype={constructor:a,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},n.inherits(a,r);var o=a;t.exports=o},"09b1":function(t,e,i){var n=i("2306"),r=n.subPixelOptimize,a=i("cccd"),o=i("3842"),s=o.parsePercent,l=i("6d8b"),u=l.retrieve2,c="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:a(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=f(t,i),a=0,o=1,s=["x","y"],l=i.mapDimension(s[a]),u=i.mapDimension(s[o],!0),h=u[0],p=u[1],g=u[2],v=u[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==l||u.length<4))return{progress:t.pipelineContext.large?y:m};function m(t,i){var s;while(null!=(s=t.next())){var u=i.get(l,s),c=i.get(h,s),f=i.get(p,s),m=i.get(g,s),y=i.get(v,s),x=Math.min(c,f),_=Math.max(c,f),b=E(x,u),S=E(_,u),T=E(m,u),w=E(y,u),A=[];I(A,S,0),I(A,b,1),A.push(M(w),M(S),M(T),M(b)),i.setItemLayout(s,{sign:d(i,s,c,f,p),initBaseline:c>f?S[o]:b[o],ends:A,brushRect:D(m,y,u)})}function E(t,i){var n=[];return n[a]=i,n[o]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function I(t,e,i){var o=e.slice(),s=e.slice();o[a]=r(o[a]+n/2,1,!1),s[a]=r(s[a]-n/2,1,!0),i?t.push(o,s):t.push(s,o)}function D(t,e,i){var r=E(t,i),s=E(e,i);return r[a]-=n/2,s[a]-=n/2,{x:r[0],y:r[1],width:o?n:s[0]-r[0],height:o?s[1]-r[1]:n}}function M(t){return t[a]=r(t[a],1),t}}function y(t,i){var n,r,s=new c(4*t.count),u=0,f=[],m=[];while(null!=(r=t.next())){var y=i.get(l,r),x=i.get(h,r),_=i.get(p,r),b=i.get(g,r),S=i.get(v,r);isNaN(y)||isNaN(b)||isNaN(S)?(s[u++]=NaN,u+=3):(s[u++]=d(i,r,x,_,p),f[a]=y,f[o]=b,n=e.dataToPoint(f,null,m),s[u++]=n?n[0]:NaN,s[u++]=n?n[1]:NaN,f[o]=S,n=e.dataToPoint(f,null,m),s[u++]=n?n[1]:NaN)}i.setLayout("largePoints",s)}}};function d(t,e,i,n,r){var a;return a=i>n?-1:i<n?1:e>0?t.get(r,e-1)<=n?1:-1:1,a}function f(t,e){var i,n=t.getBaseAxis(),r="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),a=s(u(t.get("barMaxWidth"),r),r),o=s(u(t.get("barMinWidth"),1),r),l=t.get("barWidth");return null!=l?s(l,r):Math.max(Math.min(r/2,a),o)}t.exports=h},"0a6d":function(t,e,i){i("e4d1"),i("7f72")},"0b44":function(t,e,i){var n=i("607d"),r=function(){this._track=[]};function a(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function o(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}r.prototype={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r.length;o<s;o++){var l=r[o],u=n.clientToLocal(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in s)if(s.hasOwnProperty(e)){var i=s[e](this._track,t);if(i)return i}}};var s={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var s=a(n)/a(r);!isFinite(s)&&(s=1),e.pinchScale=s;var l=o(n);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},l=r;t.exports=l},"0b4b":function(t,e,i){i("d28f"),i("f14c"),i("0ee7"),i("ebf9")},"0c12":function(t,e){function i(){}function n(t,e,i,n){for(var r=0,a=e.length,o=0,s=0;r<a;r++){var l=e[r];if(l.removed){for(u=[],c=s;c<s+l.count;c++)u.push(c);l.indices=u,s+=l.count}else{for(var u=[],c=o;c<o+l.count;c++)u.push(c);l.indices=u,o+=l.count,l.added||(s+=l.count)}}return e}function r(t){return{newPos:t.newPos,components:t.components.slice(0)}}i.prototype={diff:function(t,e,i){i||(i=function(t,e){return t===e}),this.equals=i;var a=this;t=t.slice(),e=e.slice();var o=e.length,s=t.length,l=1,u=o+s,c=[{newPos:-1,components:[]}],h=this.extractCommon(c[0],e,t,0);if(c[0].newPos+1>=o&&h+1>=s){for(var d=[],f=0;f<e.length;f++)d.push(f);return[{indices:d,count:e.length}]}function p(){for(var i=-1*l;i<=l;i+=2){var u,h=c[i-1],d=c[i+1],f=(d?d.newPos:0)-i;h&&(c[i-1]=void 0);var p=h&&h.newPos+1<o,g=d&&0<=f&&f<s;if(p||g){if(!p||g&&h.newPos<d.newPos?(u=r(d),a.pushComponent(u.components,void 0,!0)):(u=h,u.newPos++,a.pushComponent(u.components,!0,void 0)),f=a.extractCommon(u,e,t,i),u.newPos+1>=o&&f+1>=s)return n(a,u.components,e,t);c[i]=u}else c[i]=void 0}l++}while(l<=u){var g=p();if(g)return g}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){var r=e.length,a=i.length,o=t.newPos,s=o-n,l=0;while(o+1<r&&s+1<a&&this.equals(e[o+1],i[s+1]))o++,s++,l++;return l&&t.components.push({count:l}),t.newPos=o,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var a=new i;function o(t,e,i){return a.diff(t,e,i)}t.exports=o},"0c37":function(t,e,i){var n=i("6d8b"),r="--\x3e",a=function(t){return t.get("autoCurveness")||null},o=function(t,e){var i=a(t),r=20,o=[];if("number"===typeof i)r=i;else if(n.isArray(i))return void(t.__curvenessList=i);e>r&&(r=e);var s=r%2?r+2:r+3;o=[];for(var l=0;l<s;l++)o.push((l%2?l+1:l)/10*(l%2?-1:1));t.__curvenessList=o},s=function(t,e,i){var n=[t.id,t.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[i.uid,n,a].join(r)},l=function(t){var e=t.split(r);return[e[0],e[2],e[1]].join(r)},u=function(t,e){var i=s(t.node1,t.node2,e);return e.__edgeMap[i]},c=function(t,e){var i=h(s(t.node1,t.node2,e),e),n=h(s(t.node2,t.node1,e),e);return i+n},h=function(t,e){var i=e.__edgeMap;return i[t]?i[t].length:0};function d(t){a(t)&&(t.__curvenessList=[],t.__edgeMap={},o(t))}function f(t,e,i,n){if(a(i)){var r=s(t,e,i),o=i.__edgeMap,u=o[l(r)];o[r]&&!u?o[r].isForward=!0:u&&o[r]&&(u.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(n)}}function p(t,e,i,r){var d=a(e),f=n.isArray(d);if(!d)return null;var p=u(t,e);if(!p)return null;for(var g=-1,v=0;v<p.length;v++)if(p[v]===i){g=v;break}var m=c(t,e);o(e,m),t.lineStyle=t.lineStyle||{};var y=s(t.node1,t.node2,e),x=e.__curvenessList,_=f||m%2?0:1;if(p.isForward)return x[_+g];var b=l(y),S=h(b,e),T=x[g+S+_];return r?f?d&&0===d[0]?(S+_)%2?T:-T:((S%2?0:1)+_)%2?T:-T:(S+_)%2?T:-T:x[g+S+_]}e.initCurvenessList=d,e.createEdgeMapForCurveness=f,e.getCurvenessForEdge=p},"0c41":function(t,e,i){var n=i("6d8b"),r=i("4a01"),a=i("01ef"),o=i("c526"),s=o.onIrrelevantElement,l=i("2306"),u=i("5b87"),c=i("8918"),h=c.getUID,d=i("0cde");function f(t){var e=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(e.fill=i),e}function p(t,e,i,r,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",(function(){t._mouseDownFlag=!0})),i.on("click",(function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;var s=o.target;while(!s.__regions)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:n.map(s.__regions,(function(t){return{name:t.name,from:a.uid}}))};l[e.mainType+"Id"]=e.id,r.dispatchAction(l),g(e,i)}}})))}function g(t,e){e.eachChild((function(e){n.each(e.__regions,(function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")}))}))}function v(t,e){var i=new l.Group;this.uid=h("ec_map_draw"),this._controller=new r(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,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(t,e,i,r,a){var o="geo"===t.mainType,s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){s||e.getHostGeoModel()!==t||(s=e.getData())}));var u=t.coordinateSystem;this._updateBackground(u);var c,h=this._regionsGroup,v=this.group,m=u.getTransformInfo(),y=!h.childAt(0)||a;if(y)v.transform=m.roamTransform,v.decomposeTransform(),v.dirty();else{var x=new d;x.transform=m.roamTransform,x.decomposeTransform();var _={scale:x.scale,position:x.position};c=x.scale,l.updateProps(v,_,t)}var b=m.rawScale,S=m.rawPosition;h.removeAll();var T=["itemStyle"],w=["emphasis","itemStyle"],A=["label"],E=["emphasis","label"],I=n.createHashMap();n.each(u.regions,(function(e){var i=I.get(e.name)||I.set(e.name,new l.Group),r=new l.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(r);var a,u=t.getRegionModel(e.name)||t,d=u.getModel(T),p=u.getModel(w),g=f(d),m=f(p),x=u.getModel(A),_=u.getModel(E);if(s){a=s.indexOfName(e.name);var D=s.getItemVisual(a,"color",!0);D&&(g.fill=D)}var M=function(t){return[t[0]*b[0]+S[0],t[1]*b[1]+S[1]]};n.each(e.geometries,(function(t){if("polygon"===t.type){for(var e=[],i=0;i<t.exterior.length;++i)e.push(M(t.exterior[i]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}));for(i=0;i<(t.interiors?t.interiors.length:0);++i){for(var n=t.interiors[i],a=(e=[],0);a<n.length;++a)e.push(M(n[a]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}))}}})),r.setStyle(g),r.style.strokeNoScale=!0,r.culling=!0;var L=x.get("show"),C=_.get("show"),k=s&&isNaN(s.get(s.mapDimension("value"),a)),R=s&&s.getItemLayout(a);if(o||k&&(L||C)||R&&R.showLabel){var P,O=o?e.name:a;(!s||a>=0)&&(P=t);var N=new l.Text({position:M(e.center.slice()),scale:[1/v.scale[0],1/v.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(N.style,N.hoverStyle={},x,_,{labelFetcher:P,labelDataIndex:O,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var F=[1/c[0],1/c[1]];l.updateProps(N,{scale:F},t)}i.add(N)}if(s)s.setItemGraphicEl(a,i);else{u=t.getRegionModel(e.name);r.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:u&&u.option||{}}}var B=i.__regions||(i.__regions=[]);B.push(e),i.highDownSilentOnTouch=!!t.get("selectedMode"),l.setHoverStyle(i,m),h.add(i)})),this._updateController(t,e,i),p(this,t,h,i,r),g(t,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&u.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&n.each(u.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,i){var r=t.coordinateSystem,o=this._controller,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=r.getZoom(),o.enable(t.get("roam")||!1);var u=t.mainType;function c(){var e={type:"geoRoam",componentType:u};return e[u+"Id"]=t.id,e}o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,a.updateViewOnPan(l,t.dx,t.dy),i.dispatchAction(n.extend(c(),{dx:t.dx,dy:t.dy}))}),this),o.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,a.updateViewOnZoom(l,t.scale,t.originX,t.originY),i.dispatchAction(n.extend(c(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),o.setPointerChecker((function(e,n,a){return r.getViewRectAfterRoam().contain(n,a)&&!s(e,i,t)}))}};var m=v;t.exports=m},"0ccb":function(t,e,i){var n=i("50c4"),r=i("1148"),a=i("1d80"),o=Math.ceil,s=function(t){return function(e,i,s){var l,u,c=String(a(e)),h=c.length,d=void 0===s?" ":String(s),f=n(i);return f<=h||""==d?c:(l=f-h,u=r.call(d,o(l/d.length)),u.length>l&&(u=u.slice(0,l)),t?c+u:u+c)}};t.exports={start:s(!1),end:s(!0)}},"0cde":function(t,e,i){var n=i("1687"),r=i("401b"),a=n.identity,o=5e-5;function s(t){return t>o||t<-o}var l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var c=[];u.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),r=this.transform;if(i||e){r=r||n.create(),i?this.getLocalTransform(r):a(r),e&&(i?n.mul(r,t.transform,r):n.copy(r,t.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(c);var s=c[0]<0?-1:1,l=c[1]<0?-1:1,u=((c[0]-s)*o+s)/c[0]||0,h=((c[1]-l)*o+l)/c[1]||0;r[0]*=u,r[1]*=u,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,r)}else r&&a(r)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],d=n.create();u.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],r[0]=e,r[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(h,t.invTransform,e),e=h);var i=this.origin;i&&(i[0]||i[1])&&(d[4]=i[0],d[5]=i[1],n.mul(h,e,d),h[4]-=i[0],h[5]-=i[1],e=h),this.setLocalTransform(e)}},u.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},u.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&r.applyTransform(i,i,n),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&r.applyTransform(i,i,n),i},l.getLocalTransform=function(t,e){e=e||[],a(e);var i=t.origin,r=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),n.scale(e,e,r),o&&n.rotate(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var f=l;t.exports=f},"0da8":function(t,e,i){var n=i("19eb"),r=i("9850"),a=i("6d8b"),o=i("5e76");function s(t){n.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var r=this._image=o.createOrUpdateImage(n,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=i.x||0,s=i.y||0,l=i.width,u=i.height,c=r.width/r.height;if(null==l&&null!=u?l=u*c:null==u&&null!=l?u=l/c:null==l&&null==u&&(l=r.width,u=r.height),this.setTransform(t),i.sWidth&&i.sHeight){var h=i.sx||0,d=i.sy||0;t.drawImage(r,h,d,i.sWidth,i.sHeight,a,s,l,u)}else if(i.sx&&i.sy){h=i.sx,d=i.sy;var f=l-h,p=u-d;t.drawImage(r,h,d,f,p,a,s,l,u)}else t.drawImage(r,a,s,l,u);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(s,n);var l=s;t.exports=l},"0e0f":function(t,e,i){var n=i("5f14"),r=i("6d8b");function a(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),i=e.nodes;if(i.length){var a=1/0,o=-1/0;r.each(i,(function(t){var e=t.getLayout().value;e<a&&(a=e),e>o&&(o=e)})),r.each(i,(function(e){var i=new n({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),r=i.mapValueToVisual(e.getLayout().value),s=e.getModel().get("itemStyle.color");null!=s?e.setVisual("color",s):e.setVisual("color",r)}))}}))}t.exports=a},"0ee7":function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("f934"),o=i("5e97"),s=r.Group,l=["width","height"],u=["x","y"],c=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,i,a,o,s,l){var u=this;c.superCall(this,"renderInner",t,e,i,a,o,s,l);var h=this._controllerGroup,d=e.get("pageIconSize",!0);n.isArray(d)||(d=[d,d]),p("pagePrev",0);var f=e.getModel("pageTextStyle");function p(t,i){var o=t+"DataIndex",s=r.createIcon(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:n.bind(u._pageGo,u,o,e,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=t,h.add(s)}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(t,e,i,r,o,s){var c=this.getSelectorGroup(),h=t.getOrient().index,d=l[h],f=u[h],p=l[1-h],g=u[1-h];o&&a.box("horizontal",c,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),m=c.getBoundingRect(),y=[-m.x,-m.y],x=n.clone(i);o&&(x[d]=i[d]-m[d]-v);var _=this._layoutContentAndController(t,r,x,h,d,p,g);if(o){if("end"===s)y[h]+=_[d]+v;else{var b=m[d]+v;y[h]-=b,_[f]-=b}_[d]+=m[d]+v,y[1-h]+=_[g]+_[p]/2-m[p]/2,_[p]=Math.max(_[p],m[p]),_[g]=Math.min(_[g],m[g]+y[1-h]),c.attr("position",y)}return _},_layoutContentAndController:function(t,e,i,o,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;a.box(t.get("orient"),c,t.get("itemGap"),o?i.width:null,o?null:i.height),a.box("horizontal",d,t.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),p=d.getBoundingRect(),g=this._showController=f[s]>i[s],v=[-f.x,-f.y];e||(v[o]=c.position[o]);var m=[0,0],y=[-p.x,-p.y],x=n.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var _=t.get("pageButtonPosition",!0);"end"===_?y[o]+=i[s]-p[s]:m[o]+=p[s]+x}y[1-o]+=f[l]/2-p[l]/2,c.attr("position",v),h.attr("position",m),d.attr("position",y);var b={x:0,y:0};if(b[s]=g?i[s]:f[s],b[l]=Math.max(f[l],p[l]),b[u]=Math.min(0,p[u]+y[1-o]),h.__rectSize=i[s],g){var S={x:0,y:0};S[s]=Math.max(i[s]-p[s]-x,0),S[l]=b[l],h.setClipPath(new r.Rect({shape:S})),h.__rectSize=S[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var T=this._getPageInfo(t);return null!=T.pageIndex&&r.updateProps(c,{position:T.contentPosition},!!g&&t),this._updatePageInfoView(t,T),b},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],(function(n){var r=null!=e[n+"DataIndex"],a=i.childOfName(n);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var r=i.childOfName("pageText"),a=t.get("pageFormatter"),o=e.pageIndex,s=null!=o?o+1:0,l=e.pageCount;r&&a&&r.setStyle("text",n.isString(a)?a.replace("{current}",s).replace("{total}",l):a({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=t.getOrient().index,a=l[r],o=u[r],s=this._findTargetItemIndex(e),c=i.children(),h=c[s],d=c.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=_(h);p.contentPosition[r]=-g.s;for(var v=s+1,m=g,y=g,x=null;v<=d;++v)x=_(c[v]),(!x&&y.e>m.s+n||x&&!b(x,m.s))&&(m=y.i>m.i?y:x,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(v=s-1,m=g,y=g,x=null;v>=-1;--v)x=_(c[v]),x&&b(y,x.s)||!(m.i<y.i)||(y=m,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function _(t){if(t){var e=t.getBoundingRect(),i=e[o]+t.position[r];return{s:i,e:i+e[a],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+n}},_findTargetItemIndex:function(t){if(!this._showController)return 0;var e,i,n=this.getContentGroup();return n.eachChild((function(n,r){var a=n.__legendDataIndex;null==i&&null!=a&&(i=r),a===t&&(e=r)})),null!=e?e:i}}),h=c;t.exports=h},"0f55":function(t,e,i){var n=i("6d8b"),r=i("84ce"),a=function(t,e,i,n,a){r.call(this,t,e,i),this.type=n||"value",this.axisIndex=a};a.prototype={constructor:a,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},n.inherits(a,r);var o=a;t.exports=o},"0f99":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("e0d3")),a=r.makeInner,o=r.getDataItemValue,s=i("6d8b"),l=s.createHashMap,u=s.each,c=s.map,h=s.isArray,d=s.isString,f=s.isObject,p=s.isTypedArray,g=s.isArrayLike,v=s.extend,m=(s.assert,i("ec6f")),y=i("93d0"),x=y.SOURCE_FORMAT_ORIGINAL,_=y.SOURCE_FORMAT_ARRAY_ROWS,b=y.SOURCE_FORMAT_OBJECT_ROWS,S=y.SOURCE_FORMAT_KEYED_COLUMNS,T=y.SOURCE_FORMAT_UNKNOWN,w=y.SOURCE_FORMAT_TYPED_ARRAY,A=y.SERIES_LAYOUT_BY_ROW,E={Must:1,Might:2,Not:3},I=a();function D(t){var e=t.option.source,i=T;if(p(e))i=w;else if(h(e)){0===e.length&&(i=_);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(null!=a){if(h(a)){i=_;break}if(f(a)){i=b;break}}}}else if(f(e)){for(var o in e)if(e.hasOwnProperty(o)&&g(e[o])){i=S;break}}else if(null!=e)throw new Error("Invalid data");I(t).sourceFormat=i}function M(t){return I(t).source}function L(t){I(t).datasetMap=l()}function C(t){var e=t.option,i=e.data,n=p(i)?w:x,r=!1,a=e.seriesLayoutBy,o=e.sourceHeader,s=e.dimensions,l=B(t);if(l){var u=l.option;i=u.source,n=I(l).sourceFormat,r=!0,a=a||u.seriesLayoutBy,null==o&&(o=u.sourceHeader),s=s||u.dimensions}var c=k(i,n,a,o,s);I(t).source=new m({data:i,fromDataset:r,seriesLayoutBy:a,sourceFormat:n,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectCount:c.dimensionsDetectCount,encodeDefine:e.encode})}function k(t,e,i,n,r){if(!t)return{dimensionsDefine:R(r)};var a,s;if(e===_)"auto"===n||null==n?P((function(t){null!=t&&"-"!==t&&(d(t)?null==s&&(s=1):s=0)}),i,t,10):s=n?1:0,r||1!==s||(r=[],P((function(t,e){r[e]=null!=t?t:""}),i,t)),a=r?r.length:i===A?t.length:t[0]?t[0].length:null;else if(e===b)r||(r=O(t));else if(e===S)r||(r=[],u(t,(function(t,e){r.push(e)})));else if(e===x){var l=o(t[0]);a=h(l)&&l.length||1}return{startIndex:s,dimensionsDefine:R(r),dimensionsDetectCount:a}}function R(t){if(t){var e=l();return c(t,(function(t,i){if(t=v({},f(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t}))}}function P(t,e,i,n){if(null==n&&(n=1/0),e===A)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else{var a=i[0]||[];for(r=0;r<a.length&&r<n;r++)t(a[r],r)}}function O(t){var e,i=0;while(i<t.length&&!(e=t[i++]));if(e){var n=[];return u(e,(function(t,e){n.push(e)})),n}}function N(t,e,i){var n={},r=B(e);if(!r||!t)return n;var a,o,s=[],l=[],c=e.ecModel,h=I(c).datasetMap,d=r.uid+"_"+i.seriesLayoutBy;t=t.slice(),u(t,(function(e,i){!f(e)&&(t[i]={name:e}),"ordinal"===e.type&&null==a&&(a=i,o=v(t[i])),n[e.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:o,valueWayDim:0});function g(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function v(t){var e=t.dimsDef;return e?e.length:1}return u(t,(function(t,e){var i=t.name,r=v(t);if(null==a){var o=p.valueWayDim;g(n[i],o,r),g(l,o,r),p.valueWayDim+=r}else if(a===e)g(n[i],0,r),g(s,0,r);else{o=p.categoryWayDim;g(n[i],o,r),g(l,o,r),p.categoryWayDim+=r}})),s.length&&(n.itemName=s),l.length&&(n.seriesName=l),n}function F(t,e,i){var n={},r=B(t);if(!r)return n;var a,o=e.sourceFormat,s=e.dimensionsDefine;o!==b&&o!==S||u(s,(function(t,e){"name"===(f(t)?t.name:t)&&(a=e)}));var l=function(){for(var t={},n={},r=[],l=0,u=Math.min(5,i);l<u;l++){var c=V(e.data,o,e.seriesLayoutBy,s,e.startIndex,l);r.push(c);var h=c===E.Not;if(h&&null==t.v&&l!==a&&(t.v=l),(null==t.n||t.n===t.v||!h&&r[t.n]===E.Not)&&(t.n=l),d(t)&&r[t.n]!==E.Not)return t;h||(c===E.Might&&null==n.v&&l!==a&&(n.v=l),null!=n.n&&n.n!==n.v||(n.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(n)?n:null}();if(l){n.value=l.v;var c=null!=a?a:l.n;n.itemName=[c],n.seriesName=[c]}return n}function B(t){var e=t.option,i=e.data;if(!i)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function z(t,e){return V(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function V(t,e,i,n,r,a){var s,l,u,c=5;if(p(t))return E.Not;if(n){var g=n[a];f(g)?(l=g.name,u=g.type):d(g)&&(l=g)}if(null!=u)return"ordinal"===u?E.Must:E.Not;if(e===_)if(i===A){for(var v=t[a],m=0;m<(v||[]).length&&m<c;m++)if(null!=(s=I(v[r+m])))return s}else for(m=0;m<t.length&&m<c;m++){var y=t[r+m];if(y&&null!=(s=I(y[a])))return s}else if(e===b){if(!l)return E.Not;for(m=0;m<t.length&&m<c;m++){var T=t[m];if(T&&null!=(s=I(T[l])))return s}}else if(e===S){if(!l)return E.Not;v=t[l];if(!v||p(v))return E.Not;for(m=0;m<v.length&&m<c;m++)if(null!=(s=I(v[m])))return s}else if(e===x)for(m=0;m<t.length&&m<c;m++){T=t[m];var w=o(T);if(!h(w))return E.Not;if(null!=(s=I(w[a])))return s}function I(t){var e=d(t);return null!=t&&isFinite(t)&&""!==t?e?E.Might:E.Not:e&&"-"!==t?E.Must:void 0}return E.Not}e.BE_ORDINAL=E,e.detectSourceFormat=D,e.getSource=M,e.resetSourceDefaulter=L,e.prepareSource=C,e.makeSeriesEncodeForAxisCoordSys=N,e.makeSeriesEncodeForNameBased=F,e.guessOrdinal=z},"0fd3":function(t,e,i){var n=i("2306"),r=i("7e5b"),a=i("6d8b"),o=i("a15a"),s=o.createSymbol,l=i("401b"),u=i("4a3f");function c(t,e,i){n.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var h=c.prototype;h.createLine=function(t,e,i){return new r(t,e,i)},h._updateEffectSymbol=function(t,e){var i=t.getItemModel(e),n=i.getModel("effect"),r=n.get("symbolSize"),o=n.get("symbol");a.isArray(r)||(r=[r,r]);var l=n.get("color")||t.getItemVisual(e,"color"),u=this.childAt(1);this._symbolType!==o&&(this.remove(u),u=s(o,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(n.getItemStyle(["color"])),u.attr("scale",r),u.setColor(l),u.attr("scale",r),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},h._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var r=this,o=t.getItemLayout(i),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),c=a.retrieve(e.get("delay"),(function(e){return e/t.count()*s/3})),h="function"===typeof c;if(n.ignore=!0,this.updateAnimationPoints(n,o),u>0&&(s=this.getLineLength(n)/u*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var d=c;h&&(d=c(i)),n.__t>0&&(d=-s*n.__t),n.__t=0;var f=n.animate("",l).when(s,{__t:1}).delay(d).during((function(){r.updateSymbolPosition(n)}));l||f.done((function(){r.remove(n)})),f.start()}this._period=s,this._loop=l}},h.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},h.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},h.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},h.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,r=t.__t,a=t.position,o=[a[0],a[1]],s=u.quadraticAt,c=u.quadraticDerivativeAt;a[0]=s(e[0],n[0],i[0],r),a[1]=s(e[1],n[1],i[1],r);var h=c(e[0],n[0],i[0],r),d=c(e[1],n[1],i[1],r);if(t.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT<t.__t){var f=1.05*l.dist(o,a);t.attr("scale",[t.scale[0],f]),1===r&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)}else if(1===t.__lastT){f=2*l.dist(e,a);t.attr("scale",[t.scale[0],f])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},h.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},a.inherits(c,n.Group);var d=c;t.exports=d},"10cc":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("9850"),o=i("2b8c"),s=i("a890"),l=i("88b3"),u=i("bd9e"),c=["inBrush","outOfBrush"],h="__ecBrushSelect",d="__ecInBrushSelectEvent",f=n.PRIORITY.VISUAL.BRUSH;function p(t){t.eachComponent({mainType:"brush"},(function(e){var i=e.brushTargetManager=new u(e.option,t);i.setInputRanges(e.areas,t)}))}function g(t,e,i,n,r){if(r){var a=t.getZr();if(!a[d]){a[h]||(a[h]=v);var o=l.createOrUpdate(a,h,i,e);o(t,n)}}}function v(t,e){if(!t.isDisposed()){var i=t.getZr();i[d]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[d]=!1}}function m(t,e,i,n){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(t[o.brushType](n,i,o.selectors,o))return!0}}function y(t){var e=t.brushSelector;if(r.isString(e)){var i=[];return r.each(s,(function(t,n){i[n]=function(i,n,r,a){var o=n.getItemLayout(i);return t[e](o,r,a)}})),i}if(r.isFunction(e)){var n={};return r.each(s,(function(t,i){n[i]=e})),n}return e}function x(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(r.isArray(i)?r.indexOf(i,e)<0:e!==i)}function _(t){var e=t.selectors={};return r.each(s[t.brushType],(function(i,n){e[n]=function(n){return i(n,e,t)}})),t}n.registerLayout(f,(function(t,e,i){t.eachComponent({mainType:"brush"},(function(t){i&&"takeGlobalCursor"===i.type&&t.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1})})),p(t)})),n.registerVisual(f,(function(t,e,i){var n,a,s=[];t.eachComponent({mainType:"brush"},(function(e,i){var l={brushId:e.id,brushIndex:i,brushName:e.name,areas:r.clone(e.areas),selected:[]};s.push(l);var u=e.option,h=u.brushLink,d=[],f=[],p=[],g=0;i||(n=u.throttleType,a=u.throttleDelay);var v=r.map(e.areas,(function(t){return _(r.defaults({boundingRect:b[t.brushType](t)},t))})),S=o.createVisualMappings(e.option,c,(function(t){t.mappingMethod="fixed"}));function T(t){return"all"===h||d[t]}function w(t){return!!t.length}function A(t,e){var i=t.coordinateSystem;g|=i.hasAxisBrushed(),T(e)&&i.eachActiveState(t.getData(),(function(t,e){"active"===t&&(f[e]=1)}))}function E(i,n,a){var o=y(i);if(o&&!x(e,n)&&(r.each(v,(function(n){o[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&a.push(n),g|=w(a)})),T(n)&&w(a))){var s=i.getData();s.each((function(t){m(o,a,s,t)&&(f[t]=1)}))}}r.isArray(h)&&r.each(h,(function(t){d[t]=1})),t.eachSeries((function(t,e){var i=p[e]=[];"parallel"===t.subType?A(t,e,i):E(t,e,i)})),t.eachSeries((function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};l.selected.push(i);var n=y(t),r=p[e],a=t.getData(),s=T(e)?function(t){return f[t]?(i.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return m(n,r,a,t)?(i.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(T(e)?g:w(r))&&o.applyVisual(c,S,a,s)}))})),g(e,n,a,s,i)}));var b={lineX:r.noop,lineY:r.noop,rect:function(t){return S(t.range)},polygon:function(t){for(var e,i=t.range,n=0,r=i.length;n<r;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=i[n];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&S(e)}};function S(t){return new a(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}e.layoutCovers=p},1111:function(t,e,i){var n=i("3eba");i("67a8"),i("4784");var r=i("7f96"),a=i("87c3");n.registerVisual(r("effectScatter","circle")),n.registerLayout(a("effectScatter"))},1148:function(t,e,i){"use strict";var n=i("a691"),r=i("1d80");t.exports="".repeat||function(t){var e=String(r(this)),i="",a=n(t);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(i+=e);return i}},"133d":function(t,e,i){var n=i("6d8b"),r=i("e0d3");function a(t,e){var i,a=[],o=t.seriesIndex;if(null==o||!(i=e.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=r.queryDataIndex(s,t);if(null==l||l<0||n.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=i.coordinateSystem;if(i.getTooltipPosition)a=i.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)a=c.dataToPoint(s.getValues(n.map(c.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),a=[h.x+h.width/2,h.y+h.height/2]}return{point:a,el:u}}t.exports=a},1418:function(t,e,i){var n=i("6d8b"),r=i("a15a"),a=r.createSymbol,o=i("2306"),s=i("3842"),l=s.parsePercent,u=i("c775"),c=u.getDefaultLabel;function h(t,e,i){o.Group.call(this),this.updateData(t,e,i)}var d=h.prototype,f=h.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};function p(t){return[t[0]/2,t[1]/2]}function g(t,e){this.parent.drift(t,e)}d._createSymbol=function(t,e,i,n,r){this.removeAll();var o=e.getItemVisual(i,"color"),s=a(t,-1,-1,2,2,o,r);s.attr({z2:100,culling:!0,scale:p(n)}),s.drift=g,this._symbolType=t,this.add(s)},d.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},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(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},d.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},d.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,a=f(t,e),s=n!==this._symbolType;if(s){var l=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,a,l)}else{var u=this.childAt(0);u.silent=!1,o.updateProps(u,{scale:p(a)},r,e)}if(this._updateCommon(t,e,a,i),s){u=this.childAt(0);var c=i&&i.fadeIn,h={scale:u.scale.slice()};c&&(h.style={opacity:u.style.opacity}),u.scale=[0,0],c&&(u.style.opacity=0),o.initProps(u,h,r,e)}this._seriesModel=r};var v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"];function _(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){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"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}d._updateCommon=function(t,e,i,r){var a=this.childAt(0),s=t.hostModel,u=t.getItemVisual(e,"color");"image"!==a.type?a.useStyle({strokeNoScale:!0}):a.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,S=r&&r.hoverAnimation,T=r&&r.cursorStyle;if(!r||t.hasItemOption){var w=r&&r.itemModel?r.itemModel:t.getItemModel(e);h=w.getModel(v).getItemStyle(["color"]),d=w.getModel(m).getItemStyle(),f=w.getShallow("symbolOffset"),g=w.getModel(y),b=w.getModel(x),S=w.getShallow("hoverAnimation"),T=w.getShallow("cursor")}else d=n.extend({},d);var A=a.style,E=t.getItemVisual(e,"symbolRotate");a.attr("rotation",(E||0)*Math.PI/180||0),f&&a.attr("position",[l(f[0],i[0]),l(f[1],i[1])]),T&&a.attr("cursor",T),a.setColor(u,r&&r.symbolInnerColor),a.setStyle(h);var I=t.getItemVisual(e,"opacity");null!=I&&(A.opacity=I);var D=t.getItemVisual(e,"liftZ"),M=a.__z2Origin;null!=D?null==M&&(a.__z2Origin=a.z2,a.z2+=D):null!=M&&(a.z2=M,a.__z2Origin=null);var L=r&&r.useNameLabel;function C(e,i){return L?t.getName(e):c(t,e)}o.setLabelStyle(A,d,g,b,{labelFetcher:s,labelDataIndex:e,defaultText:C,isRectText:!0,autoColor:u}),a.__symbolOriginalScale=p(i),a.hoverStyle=d,a.highDownOnUpdate=S&&s.isAnimationEnabled()?_:null,o.setHoverStyle(a)},d.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,(!e||!e.keepLabel)&&(i.style.text=null),o.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},n.inherits(h,o.Group);var b=h;t.exports=b},1466:function(t,e,i){var n=i("3eba"),r=i("2306"),a=i("6d8b"),o=i("a15a");function s(t){return a.isArray(t)||(t=[+t,+t]),t}var l=n.extendChartView({type:"radar",render:function(t,e,i){var n=t.coordinateSystem,l=this.group,u=t.getData(),c=this._data;function h(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var r=s(t.getItemVisual(e,"symbolSize")),a=o.createSymbol(i,-1,-1,2,2,n),l=t.getItemVisual(e,"symbolRotate")||0;return a.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2],rotation:l*Math.PI/180||0}),a}}function d(e,i,n,a,o,s){n.removeAll();for(var l=0;l<i.length-1;l++){var u=h(a,o);u&&(u.__dimIdx=l,e[l]?(u.attr("position",e[l]),r[s?"initProps":"updateProps"](u,{position:i[l]},t,o)):u.attr("position",i[l]),n.add(u))}}function f(t){return a.map(t,(function(t){return[n.cx,n.cy]}))}u.diff(c).add((function(e){var i=u.getItemLayout(e);if(i){var n=new r.Polygon,a=new r.Polyline,o={shape:{points:i}};n.shape.points=f(i),a.shape.points=f(i),r.initProps(n,o,t,e),r.initProps(a,o,t,e);var s=new r.Group,l=new r.Group;s.add(a),s.add(n),s.add(l),d(a.shape.points,i,l,u,e,!0),u.setItemGraphicEl(e,s)}})).update((function(e,i){var n=c.getItemGraphicEl(i),a=n.childAt(0),o=n.childAt(1),s=n.childAt(2),l={shape:{points:u.getItemLayout(e)}};l.shape.points&&(d(a.shape.points,l.shape.points,s,u,e,!1),r.updateProps(a,l,t),r.updateProps(o,l,t),u.setItemGraphicEl(e,n))})).remove((function(t){l.remove(c.getItemGraphicEl(t))})).execute(),u.eachItemGraphicEl((function(t,e){var i=u.getItemModel(e),n=t.childAt(0),o=t.childAt(1),s=t.childAt(2),c=u.getItemVisual(e,"color");l.add(t),n.useStyle(a.defaults(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),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,o.ignore=f,o.useStyle(a.defaults(h.getAreaStyle(),{fill:c,opacity:.7})),o.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");s.eachChild((function(t){t.setStyle(g),t.hoverStyle=a.clone(v);var i=u.get(u.dimensions[t.__dimIdx],e);(null==i||isNaN(i))&&(i=""),r.setLabelStyle(t.style,t.hoverStyle,m,y,{labelFetcher:u.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,autoColor:c,isRectText:!0})})),t.highDownOnUpdate=function(t,e){o.attr("ignore","emphasis"===e?p:f)},r.setHoverStyle(t)})),this._data=u},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=l},"14d3":function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("fab2"),o=i("6679"),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],u=o.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,r=i.polar,o=r.getAngleAxis(),u=i.getTicksCoords(),h=i.getMinorTicksCoords(),d=o.getExtent()[0],f=i.getExtent(),p=c(r,t,d),g=new a(t,p);n.each(s,g.add,g),this.group.add(g.getGroup()),n.each(l,(function(e){t.get(e+".show")&&!i.scale.isBlank()&&this["_"+e](t,r,d,f,u,h)}),this)}},_splitLine:function(t,e,i,a,o){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<o.length;d++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new r.Circle({shape:{cx:e.cx,cy:e.cy,r:o[d].coord}}))}for(d=0;d<h.length;d++)this.group.add(r.mergePath(h[d],{style:n.defaults({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},_minorSplitLine:function(t,e,i,a,o,s){if(s.length){for(var l=t.getModel("minorSplitLine"),u=l.getModel("lineStyle"),c=[],h=0;h<s.length;h++)for(var d=0;d<s[h].length;d++)c.push(new r.Circle({shape:{cx:e.cx,cy:e.cy,r:s[h][d].coord}}));this.group.add(r.mergePath(c,{style:n.defaults({fill:null},u.getLineStyle()),silent:!0}))}},_splitArea:function(t,e,i,a,o){if(o.length){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=o[0].coord,f=1;f<o.length;f++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new r.Sector({shape:{cx:e.cx,cy:e.cy,r0:d,r:o[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[f].coord}for(f=0;f<h.length;f++)this.group.add(r.mergePath(h[f],{style:n.defaults({fill:u[f%u.length]},l.getAreaStyle()),silent:!0}))}}});function c(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}t.exports=u},1548:function(t,e,i){var n=i("6d8b"),r=i("3301"),a=i("697e"),o=i("2023"),s=i("4319"),l=i("f934");l.getLayoutRect;e.getLayoutRect=l.getLayoutRect;var u=i("ee1a"),c=u.enableDataStack,h=u.isDimensionStacked,d=u.getStackedDimension,f=i("862d");e.completeDimensions=f;var p=i("b1d4");e.createDimensions=p;var g=i("a15a");function v(t){return r(t.getSource(),t)}e.createSymbol=g.createSymbol;var m={isDimensionStacked:h,enableDataStack:c,getStackedDimension:d};function y(t,e){var i=e;s.isInstance(e)||(i=new s(e),n.mixin(i,o));var r=a.createScaleByModel(i);return r.setExtent(t[0],t[1]),a.niceScaleExtent(r,i),r}function x(t){n.mixin(t,o)}e.createList=v,e.dataStack=m,e.createScale=y,e.mixinAxisModelCommonMethods=x},"15af":function(t,e,i){var n=i("3eba");i("cb69"),i("abff");var r=i("7f96"),a=i("87c3");i("01ed"),n.registerVisual(r("scatter","circle")),n.registerLayout(a("scatter"))},1687:function(t,e){var i="undefined"===typeof Float32Array?Array:Float32Array;function n(){var t=new i(6);return r(t),t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function o(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function s(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function l(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t}function u(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function c(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}function h(t){var e=n();return a(e,t),e}e.create=n,e.identity=r,e.copy=a,e.mul=o,e.translate=s,e.rotate=l,e.scale=u,e.invert=c,e.clone=h},1748:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("71ad"),o=i("4319"),s=i("2023"),l=a.valueAxis;function u(t,e){return r.defaults({show:e},t)}var c=n.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),a=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),c=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=c;if(null!=g.color&&(v=r.defaults({color:g.color},c)),g=r.merge(r.clone(g),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:a,axisType:l,axisLabel:u,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 o(g,null,this.ecModel),s);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:u(l.axisLabel,!1),axisTick:u(l.axisTick,!1),axisType:"interval",splitLine:u(l.splitLine,!0),splitArea:u(l.splitArea,!0),indicator:[]}}),h=c;t.exports=h},1792:function(t,e){var i={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(t,e){if("china"===t){var n=i[e.name];if(n){var r=e.center;r[0]+=n[0]/10.5,r[1]+=-n[1]/14}}}t.exports=n},"17b8":function(t,e,i){var n=i("3014"),r=n.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},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}}});t.exports=r},"17d6":function(t,e,i){var n=i("6d8b"),r=i("22d1"),a=i("e0d3"),o=a.makeInner,s=o(),l=n.each;function u(t,e,i){if(!r.node){var n=e.getZr();s(n).records||(s(n).records={}),c(n,e);var a=s(n).records[t]||(s(n).records[t]={});a.handler=i}}function c(t,e){function i(i,n){t.on(i,(function(i){var r=p(e);l(s(t).records,(function(t){t&&n(t,i,r.dispatchAction)})),h(r.pendings,e)}))}s(t).initialized||(s(t).initialized=!0,i("click",n.curry(f,"click")),i("mousemove",n.curry(f,"mousemove")),i("globalout",d))}function h(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function d(t,e,i){t.handler("leave",null,i)}function f(t,e,i,n){e.handler(t,i,n)}function p(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function g(t,e){if(!r.node){var i=e.getZr(),n=(s(i).records||{})[t];n&&(s(i).records[t]=null)}}e.register=u,e.unregister=g},"18c0":function(t,e,i){var n=i("6d8b"),r=i("e0d8"),a=i("8e43"),o=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!n.isArray(t)||(t=new a({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){var t=[],e=this._extent,i=e[0];while(i<=e[1])t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});s.create=function(){return new s};var l=s;t.exports=l},1953:function(t,e,i){var n=i("2449"),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"}});t.exports=r},"19e2":function(t,e,i){var n=i("6d8b"),r=i("e887"),a=i("2306"),o=i("cbe5"),s=i("b0af"),l=s.createClipPath,u=["itemStyle"],c=["emphasis","itemStyle"],h=["color","color0","borderColor","borderColor0"],d=r.extend({type:"candlestick",render:function(t,e,i){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),i=this._data,n=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),s=t.coordinateSystem,l=s.getArea&&s.getArea();this._data||n.removeAll(),e.diff(i).add((function(i){if(e.hasValue(i)){var s,u=e.getItemLayout(i);if(o&&g(l,u))return;s=p(u,i,!0),a.initProps(s,{shape:{points:u.ends}},t,i),v(s,e,i,r),n.add(s),e.setItemGraphicEl(i,s)}})).update((function(s,u){var c=i.getItemGraphicEl(u);if(e.hasValue(s)){var h=e.getItemLayout(s);o&&g(l,h)?n.remove(c):(c?a.updateProps(c,{shape:{points:h.ends}},t,s):c=p(h,s),v(c,e,s,r),n.add(c),e.setItemGraphicEl(s,c))}else n.remove(c)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)})).execute(),this._data=e},_renderLarge:function(t){this._clear(),x(t,this.group);var e=t.get("clip",!0)?l(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderNormal:function(t,e){var i,n=e.getData(),r=n.getLayout("isSimpleBox");while(null!=(i=t.next())){var a,o=n.getItemLayout(i);a=p(o,i),v(a,n,i,r),a.incremental=!0,this.group.add(a)}},_incrementalRenderLarge:function(t,e){x(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:n.noop}),f=o.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var i=e.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))}});function p(t,e,i){var n=t.ends;return new f({shape:{points:i?m(n,t):n},z2:100})}function g(t,e){for(var i=!0,n=0;n<e.ends.length;n++)if(t.contain(e.ends[n][0],e.ends[n][1])){i=!1;break}return i}function v(t,e,i,n){var r=e.getItemModel(i),o=r.getModel(u),s=e.getItemVisual(i,"color"),l=e.getItemVisual(i,"borderColor")||s,d=o.getItemStyle(h);t.useStyle(d),t.style.strokeNoScale=!0,t.style.fill=s,t.style.stroke=l,t.__simpleBox=n;var f=r.getModel(c).getItemStyle();a.setHoverStyle(t,f)}function m(t,e){return n.map(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var y=o.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var i=e.points,n=0;n<i.length;)if(this.__sign===i[n++]){var r=i[n++];t.moveTo(r,i[n++]),t.lineTo(r,i[n++])}else n+=3}});function x(t,e,i){var n=t.getData(),r=n.getLayout("largePoints"),a=new y({shape:{points:r},__sign:1});e.add(a);var o=new y({shape:{points:r},__sign:-1});e.add(o),_(1,a,t,n),_(-1,o,t,n),i&&(a.incremental=!0,o.incremental=!0)}function _(t,e,i,n){var r=t>0?"P":"N",a=n.getVisual("borderColor"+r)||n.getVisual("color"+r),o=i.getModel(u).getItemStyle(h);e.useStyle(o),e.style.fill=null,e.style.stroke=a}var b=d;t.exports=b},"19eb":function(t,e,i){var n=i("6d8b"),r=i("2b61"),a=i("d5b7"),o=i("9e2e");function s(t){for(var e in t=t||{},a.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,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(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),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(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t,this),this.dirty(!1),this},calculateTextPosition:null},n.inherits(s,a),n.mixin(s,o);var l=s;t.exports=l},"1ab3":function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("e887");function o(t,e,i,n){var r=e.getData(),a=this.dataIndex,o=r.getName(a),l=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),r.each((function(t){s(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),l,i)}))}function s(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function l(t,e){r.Group.call(this);var i=new r.Sector({z2:2}),n=new r.Polyline,a=new r.Text;this.add(i),this.add(n),this.add(a),this.updateData(t,e,!0)}var u=l.prototype;u.updateData=function(t,e,i){var a=this.childAt(0),o=this.childAt(1),l=this.childAt(2),u=t.hostModel,c=t.getItemModel(e),h=t.getItemLayout(e),d=n.extend({},h);d.label=null;var f=u.getShallow("animationTypeUpdate");if(i){a.setShape(d);var p=u.getShallow("animationType");"scale"===p?(a.shape.r=h.r0,r.initProps(a,{shape:{r:h.r}},u,e)):(a.shape.endAngle=h.startAngle,r.updateProps(a,{shape:{endAngle:h.endAngle}},u,e))}else"expansion"===f?a.setShape(d):r.updateProps(a,{shape:d},u,e);var g=t.getItemVisual(e,"color");a.useStyle(n.defaults({lineJoin:"bevel",fill:g},c.getModel("itemStyle").getItemStyle())),a.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var v=c.getShallow("cursor");v&&a.attr("cursor",v),s(this,t.getItemLayout(e),u.isSelected(t.getName(e)),u.get("selectedOffset"),u.get("animation"));var m=!i&&"transition"===f;this._updateLabel(t,e,m),this.highDownOnUpdate=u.get("silent")?null:function(t,e){var i=u.isAnimationEnabled()&&c.get("hoverAnimation");"emphasis"===e?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,i&&(a.stopAnimation(!0),a.animateTo({shape:{r:h.r+u.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,i&&(a.stopAnimation(!0),a.animateTo({shape:{r:h.r}},300,"elasticOut")))},r.setHoverStyle(this)},u._updateLabel=function(t,e,i){var n=this.childAt(1),a=this.childAt(2),o=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");if(!u||isNaN(u.x)||isNaN(u.y))a.ignore=a.normalIgnore=a.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0;else{var h={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},d={x:u.x,y:u.y};i?(r.updateProps(n,{shape:h},o,e),r.updateProps(a,{style:d},o,e)):(n.attr({shape:h}),a.attr({style:d})),a.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var f=s.getModel("label"),p=s.getModel("emphasis.label"),g=s.getModel("labelLine"),v=s.getModel("emphasis.labelLine");c=t.getItemVisual(e,"color");r.setLabelStyle(a.style,a.hoverStyle={},f,p,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:u.text,autoColor:c,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),a.ignore=a.normalIgnore=!f.get("show"),a.hoverIgnore=!p.get("show"),n.ignore=n.normalIgnore=!g.get("show"),n.hoverIgnore=!v.get("show"),n.setStyle({stroke:c,opacity:t.getItemVisual(e,"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 c=a.extend({type:"pie",init:function(){var t=new r.Group;this._sectorGroup=t},render:function(t,e,i,r){if(!r||r.from!==this.uid){var a=t.getData(),s=this._data,u=this.group,c=e.get("animation"),h=!s,d=t.get("animationType"),f=t.get("animationTypeUpdate"),p=n.curry(o,this.uid,t,c,i),g=t.get("selectedMode");if(a.diff(s).add((function(t){var e=new l(a,t);h&&"scale"!==d&&e.eachChild((function(t){t.stopAnimation(!0)})),g&&e.on("click",p),a.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){var i=s.getItemGraphicEl(e);h||"transition"===f||i.eachChild((function(t){t.stopAnimation(!0)})),i.updateData(a,t),i.off("click"),g&&i.on("click",p),u.add(i),a.setItemGraphicEl(t,i)})).remove((function(t){var e=s.getItemGraphicEl(t);u.remove(e)})).execute(),c&&a.count()>0&&(h?"scale"!==d:"transition"!==f)){for(var v=a.getItemLayout(0),m=1;isNaN(v.startAngle)&&m<a.count();++m)v=a.getItemLayout(m);var y=Math.max(i.getWidth(),i.getHeight())/2,x=n.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(v.cx,v.cy,y,v.startAngle,v.clockwise,x,t,h))}else u.removeClipPath();this._data=a}},dispose:function(){},_createClipPath:function(t,e,i,n,a,o,s,l){var u=new r.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}}),c=l?r.initProps:r.updateProps;return c(u,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},s,o),u},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}}),h=c;t.exports=h},"1c5f":function(t,e,i){var n=i("401b"),r=i("6d8b"),a=i("0c37"),o=a.getCurvenessForEdge;function s(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),l(i,t)}}function l(t,e){t.eachEdge((function(t,i){var a=r.retrieve3(t.getModel().get("lineStyle.curveness"),-o(t,e,i,!0),0),s=n.clone(t.node1.getLayout()),l=n.clone(t.node2.getLayout()),u=[s,l];+a&&u.push([(s[0]+l[0])/2-(s[1]-l[1])*a,(s[1]+l[1])/2-(l[0]-s[0])*a]),t.setLayout(u)}))}e.simpleLayout=s,e.simpleLayoutEdge=l},"1ccf":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("fd27"),o=i("3842"),s=o.parsePercent,l=i("697e"),u=l.createScaleByModel,c=l.niceScaleExtent,h=i("2039"),d=i("ee1a"),f=d.getStackedDimension;function p(t,e,i){var n=e.get("center"),a=i.getWidth(),o=i.getHeight();t.cx=s(n[0],a),t.cy=s(n[1],o);var l=t.getRadiusAxis(),u=Math.min(a,o)/2,c=e.get("radius");null==c?c=[0,"100%"]:r.isArray(c)||(c=[0,c]),c=[s(c[0],u),s(c[1],u)],l.inverse?l.setExtent(c[1],c[0]):l.setExtent(c[0],c[1])}function g(t,e){var i=this,n=i.getAngleAxis(),a=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();r.each(e.mapDimension("radius",!0),(function(t){a.scale.unionExtentFromData(e,f(e,t))})),r.each(e.mapDimension("angle",!0),(function(t){n.scale.unionExtentFromData(e,f(e,t))}))}})),c(n.scale,n.model),c(a.scale,a.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),s=360/n.scale.count();n.inverse?o[1]+=s:o[1]-=s,n.setExtent(o[0],o[1])}}function v(t,e){if(t.type=e.get("type"),t.scale=u(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}i("78f0");var m={dimensions:a.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var r=new a(n);r.update=g;var o=r.getRadiusAxis(),s=r.getAngleAxis(),l=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");v(o,l),v(s,u),p(r,t,e),i.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}};h.register("polar",m)},"1e32":function(t,e,i){var n=i("6d8b"),r=i("3842"),a=r.parsePercent,o=i("ee1a"),s=o.isDimensionStacked;function l(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function u(t,e){return e.dim+t.model.componentIndex}function c(t,e,i){var r={},a=h(n.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),o=u(i,n),c=l(t),h=a[o][c],d=h.offset,f=h.width,p=i.getOtherAxis(n),g=t.coordinateSystem.cx,v=t.coordinateSystem.cy,m=t.get("barMinHeight")||0,y=t.get("barMinAngle")||0;r[c]=r[c]||[];for(var x=e.mapDimension(p.dim),_=e.mapDimension(n.dim),b=s(e,x),S="radius"!==n.dim||!t.get("roundCap",!0),T="radius"===p.dim?p.dataToRadius(0):p.dataToAngle(0),w=0,A=e.count();w<A;w++){var E,I,D,M,L=e.get(x,w),C=e.get(_,w),k=L>=0?"p":"n",R=T;if(b&&(r[c][C]||(r[c][C]={p:T,n:T}),R=r[c][C][k]),"radius"===p.dim){var P=p.dataToRadius(L)-T,O=n.dataToAngle(C);Math.abs(P)<m&&(P=(P<0?-1:1)*m),E=R,I=R+P,D=O-d,M=D-f,b&&(r[c][C][k]=I)}else{var N=p.dataToAngle(L,S)-T,F=n.dataToRadius(C);Math.abs(N)<y&&(N=(N<0?-1:1)*y),E=F+d,I=E+f,D=R,M=R+N,b&&(r[c][C][k]=M)}e.setItemLayout(w,{cx:g,cy:v,r0:E,r:I,startAngle:-D*Math.PI/180,endAngle:-M*Math.PI/180})}}}),this)}function h(t,e){var i={};n.each(t,(function(t,e){var n=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),s=u(r,o),c=o.getExtent(),h="category"===o.type?o.getBandWidth():Math.abs(c[1]-c[0])/n.count(),d=i[s]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;i[s]=d;var p=l(t);f[p]||d.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var g=a(t.get("barWidth"),h),v=a(t.get("barMaxWidth"),h),m=t.get("barGap"),y=t.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(t,e){r[e]={};var i=t.stacks,o=t.bandWidth,s=a(t.categoryGap,o),l=a(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),n.each(i,(function(t,e){var i=t.maxWidth;i&&i<h&&(i=Math.min(i,u),t.width&&(i=Math.min(i,t.width)),u-=i,t.width=i,c--)})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;n.each(i,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(i,(function(t,i){r[e][i]=r[e][i]||{offset:p,width:t.width},p+=t.width*(1+l)}))})),r}var d=c;t.exports=d},"1f0e":function(t,e,i){var n=i("cbe5"),r=n.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-i(o)*a*(a>=r/3?1:2),l=e.y-n(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*a,e.y+n(o)*a),t.lineTo(e.x+i(e.angle)*r,e.y+n(e.angle)*r),t.lineTo(e.x-i(o)*a,e.y-n(o)*a),t.lineTo(s,l)}});t.exports=r},"1f1a":function(t,e,i){var n=i("6d8b"),r=i("e0d3"),a=i("6cb7"),o=i("4319"),s=i("7023"),l=i("eeea"),u=a.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){a.prototype.init.apply(this,arguments),r.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=n.reduce(t.regions||[],(function(t,i){return i.name&&t.set(i.name,new o(i,e)),t}),n.createHashMap()),this.updateSelectedMap(t.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(t){return this._optionModelMap.get(t)||new o(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var i=this.getRegionModel(t),n=i.get(("normal"===e?"":e+".")+"label.formatter"),r={name:t};return"function"===typeof n?(r.status=e,n(r)):"string"===typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});n.mixin(u,s);var c=u;t.exports=c},"1fab":function(t,e){var i=Array.prototype.slice,n=function(t){this._$handlers={},this._$eventProcessor=t};function r(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function a(t,e,i,n,a,o){var s=t._$handlers;if("function"===typeof i&&(a=n,n=i,i=null),!n||!e)return t;i=r(t,i),s[e]||(s[e]=[]);for(var l=0;l<s[e].length;l++)if(s[e][l].h===n)return t;var u={h:n,one:o,query:i,ctx:a||t,callAtLast:n.zrEventfulCallAtLast},c=s[e].length-1,h=s[e][c];return h&&h.callAtLast?s[e].splice(c,0,u):s[e].push(u),t}n.prototype={constructor:n,one:function(t,e,i,n){return a(this,t,e,i,n,!0)},on:function(t,e,i,n){return a(this,t,e,i,n,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t].length;r<a;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){var e=this._$handlers[t],n=this._$eventProcessor;if(e){var r=arguments,a=r.length;a>3&&(r=i.call(r,1));for(var o=e.length,s=0;s<o;){var l=e[s];if(n&&n.filter&&null!=l.query&&!n.filter(t,l.query))s++;else{switch(a){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?(e.splice(s,1),o--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],n=this._$eventProcessor;if(e){var r=arguments,a=r.length;a>4&&(r=i.call(r,1,r.length-1));for(var o=r[r.length-1],s=e.length,l=0;l<s;){var u=e[l];if(n&&n.filter&&null!=u.query&&!n.filter(t,u.query))l++;else{switch(a){case 1:u.h.call(o);break;case 2:u.h.call(o,r[1]);break;case 3:u.h.call(o,r[1],r[2]);break;default:u.h.apply(o,r);break}u.one?(e.splice(l,1),s--):l++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this}};var o=n;t.exports=o},2023:function(t,e,i){var n=i("6d8b"),r={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:n.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};t.exports=r},2039:function(t,e,i){var n=i("6d8b"),r={};function a(){this._coordinateSystems=[]}a.prototype={constructor:a,create:function(t,e){var i=[];n.each(r,(function(n,r){var a=n.create(t,e);i=i.concat(a||[])})),this._coordinateSystems=i},update:function(t,e){n.each(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},a.register=function(t,e){r[t]=e},a.get=function(t){return r[t]};var o=a;t.exports=o},"20c8":function(t,e,i){var n=i("4a3f"),r=i("401b"),a=i("e263"),o=i("9850"),s=i("2cf4c"),l=s.devicePixelRatio,u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],h=[],d=[],f=[],p=Math.min,g=Math.max,v=Math.cos,m=Math.sin,y=Math.sqrt,x=Math.abs,_="undefined"!==typeof Float32Array,b=function(t){this._saveData=!t,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(t,e,i){i=i||0,this._ux=x(i/l/t)||0,this._uy=x(i/l/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=x(t-this._xi)>this._ux||x(e-this._yi)>this._uy||this._len<5;return this.addData(u.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(u.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(u.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(u.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=v(r)*i+t,this._yi=m(r)*i+e,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(u.R,t,e,i,n),this},closePath:function(){this.addData(u.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!_||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(r=0;r<e;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[n++]=a[o];this._len=n},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var i=0;i<arguments.length;i++)e[this._len++]=arguments[i];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,d=y(c*c+h*h),f=l,v=u,m=o.length;c/=d,h/=d,a<0&&(a=r+a),a%=r,f-=a*c,v-=a*h;while(c>0&&f<=t||c<0&&f>=t||0===c&&(h>0&&v<=e||h<0&&v>=e))n=this._dashIdx,i=o[n],f+=c*i,v+=h*i,this._dashIdx=(n+1)%m,c>0&&f<l||c<0&&f>l||h>0&&v<u||h<0&&v>u||s[n%2?"moveTo":"lineTo"](c>=0?p(f,t):g(f,t),h>=0?p(v,e):g(v,e));c=f-t,h=v-e,this._dashOffset=-y(c*c+h*h)},_dashedBezierTo:function(t,e,i,r,a,o){var s,l,u,c,h,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,m=this._yi,x=n.cubicAt,_=0,b=this._dashIdx,S=p.length,T=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=x(v,t,i,a,s+.1)-x(v,t,i,a,s),u=x(m,e,r,o,s+.1)-x(m,e,r,o,s),_+=y(l*l+u*u);for(;b<S;b++)if(T+=p[b],T>f)break;s=(T-f)/_;while(s<=1)c=x(v,t,i,a,s),h=x(m,e,r,o,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=p[b]/_,b=(b+1)%S;b%2!==0&&g.lineTo(a,o),l=a-c,u=o-h,this._dashOffset=-y(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){c[0]=c[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,s=0,l=0;l<t.length;){var p=t[l++];switch(1===l&&(e=t[l],i=t[l+1],n=e,s=i),p){case u.M:n=t[l++],s=t[l++],e=n,i=s,d[0]=n,d[1]=s,f[0]=n,f[1]=s;break;case u.L:a.fromLine(e,i,t[l],t[l+1],d,f),e=t[l++],i=t[l++];break;case u.C:a.fromCubic(e,i,t[l++],t[l++],t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],i=t[l++];break;case u.Q:a.fromQuadratic(e,i,t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],i=t[l++];break;case u.A:var g=t[l++],y=t[l++],x=t[l++],_=t[l++],b=t[l++],S=t[l++]+b;l+=1;var T=1-t[l++];1===l&&(n=v(b)*x+g,s=m(b)*_+y),a.fromArc(g,y,x,_,b,S,T,d,f),e=v(S)*x+g,i=m(S)*_+y;break;case u.R:n=e=t[l++],s=i=t[l++];var w=t[l++],A=t[l++];a.fromLine(n,s,n+w,s+A,d,f);break;case u.Z:e=n,i=s;break}r.min(c,c,d),r.max(h,h,f)}return 0===l&&(c[0]=c[1]=h[0]=h[1]=0),new o(c[0],c[1],h[0]-c[0],h[1]-c[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,s=this.data,l=this._ux,c=this._uy,h=this._len,d=0;d<h;){var f=s[d++];switch(1===d&&(n=s[d],r=s[d+1],e=n,i=r),f){case u.M:e=n=s[d++],i=r=s[d++],t.moveTo(n,r);break;case u.L:a=s[d++],o=s[d++],(x(a-n)>l||x(o-r)>c||d===h-1)&&(t.lineTo(a,o),n=a,r=o);break;case u.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case u.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case u.A:var p=s[d++],g=s[d++],y=s[d++],_=s[d++],b=s[d++],S=s[d++],T=s[d++],w=s[d++],A=y>_?y:_,E=y>_?1:y/_,I=y>_?_/y:1,D=Math.abs(y-_)>.001,M=b+S;D?(t.translate(p,g),t.rotate(T),t.scale(E,I),t.arc(0,0,A,b,M,1-w),t.scale(1/E,1/I),t.rotate(-T),t.translate(-p,-g)):t.arc(p,g,A,b,M,1-w),1===d&&(e=v(b)*y+p,i=m(b)*_+g),n=v(M)*y+p,r=m(M)*_+g;break;case u.R:e=n=s[d],i=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case u.Z:t.closePath(),n=e,r=i}}}},b.CMD=u;var S=b;t.exports=S},2145:function(t,e){var i={};function n(t,e){i[t]=e}function r(t){return i[t]}e.register=n,e.get=r},2163:function(t,e,i){var n=i("4f85"),r=i("06c7"),a=i("eda2"),o=a.encodeHTML,s=i("4319"),l=n.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},i=t.leaves||{},n=new s(i,this,this.ecModel),a=r.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var i=a.getNodeByDataIndex(e);return i.children.length&&i.isExpand||(t.parentModel=n),t}))}var l=0;a.eachNode("preorder",(function(t){t.depth>l&&(l=t.depth)}));var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=c})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),r=n.getValue(),a=n.name;while(n&&n!==i)a=n.parentNode.name+"."+a,n=n.parentNode;return o(a+(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}});t.exports=l},"216a":function(t,e,i){var n=i("6d8b"),r=i("3842"),a=i("eda2"),o=i("944e"),s=i("89e3"),l=s.prototype,u=Math.ceil,c=Math.floor,h=1e3,d=60*h,f=60*d,p=24*f,g=function(t,e,i,n){while(i<n){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},v=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return a.formatTime(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=p,e[1]+=p),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-p}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=r.round(c(e[0]/n)*n)),t.fixMax||(e[1]=r.round(u(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,a=n[1]-n[0],s=a/t;null!=e&&s<e&&(s=e),null!=i&&s>i&&(s=i);var l=m.length,h=g(m,s,0,l),d=m[Math.min(h,l-1)],f=d[1];if("year"===d[0]){var p=a/f,v=r.nice(p/t,!0);f*=v}var y=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,x=[Math.round(u((n[0]-y)/f)*f+y),Math.round(c((n[1]-y)/f)*f+y)];o.fixExtent(x,n),this._stepLvl=d,this._interval=f,this._niceExtent=x},parse:function(t){return+r.parseDate(t)}});n.each(["contain","normalize"],(function(t){v.prototype[t]=function(e){return l[t].call(this,this.parse(e))}}));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(t){return new v({useUTC:t.ecModel.get("useUTC")})};var y=v;t.exports=y},"217b":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3301")),a=i("4f85"),o=a.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){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}});t.exports=o},"217c":function(t,e,i){var n=i("6d8b"),r=i("6cb7");i("df3a");var a=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(t){var e=this.option;t&&n.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);n.each(i,(function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)}))}});t.exports=a},"22d1":function(t,e){var i={};i="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}:r(navigator.userAgent);var n=i;function r(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),o&&(i.weChat=!0),{browser:i,os:e,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}}t.exports=n},"22da":function(t,e,i){var n=i("f934");function r(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var e,i,n=[t];while(e=n.pop())if(i=e.children,e.isExpand&&i.length)for(var r=i.length,a=r-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function a(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,r=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){c(t);var a=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=h(t,r,t.parentNode.hierNode.defaultAncestor||n[0],e)}function o(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function s(t){return arguments.length?t:v}function l(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function u(t,e){return n.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t){var e=t.children,i=e.length,n=0,r=0;while(--i>=0){var a=e[i];a.hierNode.prelim+=n,a.hierNode.modifier+=n,r+=a.hierNode.change,n+=a.hierNode.shift+r}}function h(t,e,i,n){if(e){var r=t,a=t,o=a.parentNode.children[0],s=e,l=r.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;while(s=d(s),a=f(a),s&&a){r=d(r),o=f(o),r.hierNode.ancestor=t;var v=s.hierNode.prelim+h-a.hierNode.prelim-u+n(s,a);v>0&&(g(p(s,t,i),t,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=r.hierNode.modifier,c+=o.hierNode.modifier}s&&!d(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),a&&!f(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,i=t)}return i}function d(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function f(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function p(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function g(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function v(t,e){return t.parentNode===e.parentNode?1:2}e.init=r,e.firstWalk=a,e.secondWalk=o,e.separation=s,e.radialCoordinate=l,e.getViewRect=u},2306:function(t,e,i){var n=i("6d8b"),r=i("342d"),a=i("41ef"),o=i("1687"),s=i("401b"),l=i("cbe5"),u=i("0cde"),c=i("0da8");e.Image=c;var h=i("e1fc");e.Group=h;var d=i("76a5");e.Text=d;var f=i("d9fc");e.Circle=f;var p=i("4aa2");e.Sector=p;var g=i("4573");e.Ring=g;var v=i("87b1");e.Polygon=v;var m=i("d498");e.Polyline=m;var y=i("c7a2");e.Rect=y;var x=i("cb11");e.Line=x;var _=i("ac0f");e.BezierCurve=_;var b=i("8d32");e.Arc=b;var S=i("d4c6");e.CompoundPath=S;var T=i("48a9");e.LinearGradient=T;var w=i("dded");e.RadialGradient=w;var A=i("9850");e.BoundingRect=A;var E=i("392f");e.IncrementalDisplayable=E;var I=i("9cf9"),D=Math.max,M=Math.min,L={},C=1,k={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},R="emphasis",P="normal",O=1,N={},F={};function B(t){return l.extend(t)}function z(t,e){return r.extendFromString(t,e)}function V(t,e){F[t]=e}function G(t){if(F.hasOwnProperty(t))return F[t]}function U(t,e,i,n){var a=r.createFromString(t,e);return i&&("center"===n&&(i=W(i,a.getBoundingRect())),K(a,i)),a}function H(t,e,i){var n=new c({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(W(e,r))}}});return n}function W(t,e){var i,n=e.width/e.height,r=t.height*n;r<=t.width?i=t.height:(r=t.width,i=r/n);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var j=r.mergePath;function K(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function Y(t){return I.subPixelOptimizeLine(t.shape,t.shape,t.style),t}function X(t){return I.subPixelOptimizeRect(t.shape,t.shape,t.style),t}var q=I.subPixelOptimize;function Z(t){return null!=t&&"none"!==t}var $=n.createHashMap(),Q=0;function J(t){if("string"!==typeof t)return t;var e=$.get(t);return e||(e=a.lift(t,-.1),Q<1e4&&($.set(t,e),Q++)),e}function tt(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var r in e)null!=e[r]&&(i[r]=n[r]);i.fill=n.fill,i.stroke=n.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}function et(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.__zr,n=t.useHoverLayer&&i&&"canvas"===i.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!i&&t.useHoverLayer)){var r=t,a=t.style;n&&(r=i.addHover(t),a=r.style),wt(a),n||tt(r),a.extendFrom(e),it(a,e,"fill"),it(a,e,"stroke"),Tt(a),n||(t.dirty(!1),t.z2+=C)}}}function it(t,e,i){!Z(e[i])&&Z(t[i])&&(t[i]=J(t[i]))}function nt(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var i=t.style,n=t.__cachedNormalStl;n&&(wt(i),t.setStyle(n),Tt(i));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===C&&(t.z2=r)}}function rt(t,e,i){var n,r=P,a=P;t.__highlighted&&(r=R,n=!0),e(t,i),t.__highlighted&&(a=R,n=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,i)})),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,a)}function at(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,nt(t),et(t))}function ot(t){!ct(this,t)&&!this.__highByOuter&&rt(this,et)}function st(t){!ct(this,t)&&!this.__highByOuter&&rt(this,nt)}function lt(t){this.__highByOuter|=1<<(t||0),rt(this,et)}function ut(t){!(this.__highByOuter&=~(1<<(t||0)))&&rt(this,nt)}function ct(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ht(t,e){dt(t,!0),rt(t,at,e)}function dt(t,e){var i=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!i||t.__highDownDispatcher){var n=i?"off":"on";t[n]("mouseover",ot)[n]("mouseout",st),t[n]("emphasis",lt)[n]("normal",ut),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i}}function ft(t){return!(!t||!t.__highDownDispatcher)}function pt(t){var e=N[t];return null==e&&O<=32&&(e=N[t]=O++),e}function gt(t,e,i,r,a,o,s){a=a||L;var l,u=a.labelFetcher,c=a.labelDataIndex,h=a.labelDimIndex,d=a.labelProp,f=i.getShallow("show"),p=r.getShallow("show");(f||p)&&(u&&(l=u.getFormattedLabel(c,"normal",null,h,d)),null==l&&(l=n.isFunction(a.defaultText)?a.defaultText(c,a):a.defaultText));var g=f?l:null,v=p?n.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h,d):null,l):null;null==g&&null==v||(mt(t,i,o,a),mt(e,r,s,a,!0)),t.text=g,e.text=v}function vt(t,e,i){var r=t.style;e&&(wt(r),t.setStyle(e),Tt(r)),r=t.__hoverStl,i&&r&&(wt(r),n.extend(r,i),Tt(r))}function mt(t,e,i,r,a){return xt(t,e,r,a),i&&n.extend(t,i),t}function yt(t,e,i){var n,r={isRectText:!0};!1===i?n=!0:r.autoColor=i,xt(t,e,r,n)}function xt(t,e,i,r){if(i=i||L,i.isRectText){var a;i.getTextPosition?a=i.getTextPosition(e,r):(a=e.getShallow("position")||(r?null:"inside"),"outside"===a&&(a="top")),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=n.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,c=_t(e);if(c)for(var h in s={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);bt(s[h]={},d,u,i,r)}return t.rich=s,bt(t,e,u,i,r,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function _t(t){var e;while(t&&t!==t.ecModel){var i=(t.option||L).rich;if(i)for(var n in e=e||{},i)i.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}function bt(t,e,i,r,a,o){i=!a&&i||L,t.textFill=St(e.getShallow("color"),r)||i.color,t.textStroke=St(e.getShallow("textBorderColor"),r)||i.textBorderColor,t.textStrokeWidth=n.retrieve2(e.getShallow("textBorderWidth"),i.textBorderWidth),a||(o&&(t.insideRollbackOpt=r,Tt(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.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"),o&&r.disableBox||(t.textBackgroundColor=St(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=St(e.getShallow("borderColor"),r),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")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function St(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function Tt(t){var e,i=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var r=n.autoColor,a=n.isRectText,o=n.useInsideStyle,s=!1!==o&&(!0===o||a&&i&&"string"===typeof i&&i.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function wt(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function At(t,e){var i=e&&e.getModel("textStyle");return n.trim([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Et(t,e,i,n,r,a){"function"===typeof r&&(a=r,r=null);var o=n&&n.isAnimationEnabled();if(o){var s=t?"Update":"",l=n.getShallow("animationDuration"+s),u=n.getShallow("animationEasing"+s),c=n.getShallow("animationDelay"+s);"function"===typeof c&&(c=c(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"===typeof l&&(l=l(r)),l>0?e.animateTo(i,l,c||0,u,a,!!a):(e.stopAnimation(),e.attr(i),a&&a())}else e.stopAnimation(),e.attr(i),a&&a()}function It(t,e,i,n,r){Et(!0,t,e,i,n,r)}function Dt(t,e,i,n,r){Et(!1,t,e,i,n,r)}function Mt(t,e){var i=o.identity([]);while(t&&t!==e)o.mul(i,t.getLocalTransform(),i),t=t.parent;return i}function Lt(t,e,i){return e&&!n.isArrayLike(e)&&(e=u.getLocalTransform(e)),i&&(e=o.invert([],e)),s.applyTransform([],t,e)}function Ct(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return a=Lt(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function kt(t,e,i,r){if(t&&e){var a=o(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=l(t);t.attr(l(e)),It(t,n,i,t.dataIndex)}}}))}function o(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}}function Rt(t,e){return n.map(t,(function(t){var i=t[0];i=D(i,e.x),i=M(i,e.x+e.width);var n=t[1];return n=D(n,e.y),n=M(n,e.y+e.height),[i,n]}))}function Pt(t,e){var i=D(t.x,e.x),n=M(t.x+t.width,e.x+e.width),r=D(t.y,e.y),a=M(t.y+t.height,e.y+e.height);if(n>=i&&a>=r)return{x:i,y:r,width:n-i,height:a-r}}function Ot(t,e,i){e=n.extend({rectHover:!0},e);var r=e.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),n.defaults(r,i),new c(e)):U(t.replace("path://",""),e,i,"center")}function Nt(t,e,i,n,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(Ft(t,e,i,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ft(t,e,i,n,r,a,o,s){var l=i-t,u=n-e,c=o-r,h=s-a,d=Bt(c,h,l,u);if(zt(d))return!1;var f=t-r,p=e-a,g=Bt(f,p,l,u)/d;if(g<0||g>1)return!1;var v=Bt(f,p,c,h)/d;return!(v<0||v>1)}function Bt(t,e,i,n){return t*n-i*e}function zt(t){return t<=1e-6&&t>=-1e-6}V("circle",f),V("sector",p),V("ring",g),V("polygon",v),V("polyline",m),V("rect",y),V("line",x),V("bezierCurve",_),V("arc",b),e.Z2_EMPHASIS_LIFT=C,e.CACHED_LABEL_STYLE_PROPERTIES=k,e.extendShape=B,e.extendPath=z,e.registerShape=V,e.getShapeClass=G,e.makePath=U,e.makeImage=H,e.mergePath=j,e.resizePath=K,e.subPixelOptimizeLine=Y,e.subPixelOptimizeRect=X,e.subPixelOptimize=q,e.setElementHoverStyle=at,e.setHoverStyle=ht,e.setAsHighDownDispatcher=dt,e.isHighDownDispatcher=ft,e.getHighlightDigit=pt,e.setLabelStyle=gt,e.modifyLabelStyle=vt,e.setTextStyle=mt,e.setText=yt,e.getFont=At,e.updateProps=It,e.initProps=Dt,e.getTransform=Mt,e.applyTransform=Lt,e.transformDirection=Ct,e.groupTransition=kt,e.clipPointsByRect=Rt,e.clipRectByRect=Pt,e.createIcon=Ot,e.linePolygonIntersect=Nt,e.lineLineIntersect=Ft},2325:function(t,e,i){var n=i("6d8b"),r=i("607d"),a=i("2306"),o=i("88b3"),s=i("7dcf"),l=i("3842"),u=i("f934"),c=i("ef6a"),h=a.Rect,d=l.linearMap,f=l.asc,p=n.bind,g=n.each,v=7,m=1,y=30,x="horizontal",_="vertical",b=5,S=["line","bar","candlestick","scatter"],T=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){T.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){T.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){T.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new a.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},a=this._orient===x?{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},o=u.getLayoutParams(t.option);n.each(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=a[t])}));var s=u.getLayoutRect(o,r,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===_&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==x||r?i===x&&r?{scale:o?[-1,1]:[-1,-1]}:i!==_||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t.getBoundingRect([a]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.barGroup;i.add(new h({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),i.add(new h({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,r=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=o){var s=r.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,c=[0,e[1]],h=[0,e[0]],f=[[e[0],0],[0,0]],p=[],g=h[1]/(r.count()-1),v=0,m=Math.round(r.count()/e[0]);r.each([o],(function(t,e){if(m>0&&e%m)v+=g;else{var i=null==t||isNaN(t)||""===t,n=i?0:d(t,s,c,!0);i&&!u&&e?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!i&&u&&(f.push([v,0]),p.push([v,0])),f.push([v,n]),p.push([v,n]),v+=g,u=i}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new a.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 a.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,r=this.ecModel;return t.eachTargetAxis((function(a,o){var s=t.getAxisProxy(a.name,o).getTargetSeriesModels();n.each(s,(function(t){if(!i&&!(!0!==e&&n.indexOf(S,t.get("type"))<0)){var s,l=r.getComponent(a.axis,o).axis,u=w(a.name),c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),i={thisAxis:l,series:t,thisDim:a.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;n.add(t.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:o.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:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:m,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(t){var r=a.createIcon(o.get("handleIcon"),{cursor:A(this._orient),draggable:!0,drift:p(this._onDragMove,this,t),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}),s=r.getBoundingRect();this._handleHeight=l.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var u=o.get("handleColor");null!=u&&(r.style.fill=u),n.add(e[t]=r);var c=o.textStyleModel;this.group.add(i[t]=new a.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:c.getTextColor(),textFont:c.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[d(t[0],[0,100],e,!0),d(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),a=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];c(e,n,r,i.get("zoomLock")?"all":t,null!=a.minSpan?d(a.minSpan,o,r,!0):null,null!=a.maxSpan?d(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=f([d(n[0],r,o,!0),d(n[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=f(i.slice()),r=this._size;g([0,1],(function(t){var n=e.handles[t],a=this._handleHeight;n.attr({scale:[a/2,a/2],position:[i[t],r[1]/2-a/2]})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=f(this._handleEnds.slice());function d(t){var e=a.getTransform(i.handles[t].parent,this.group),s=a.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+b,u=a.applyTransform([h[t]+(0===t?-l:l),this._size[1]/2],e);n[t].setStyle({x:u[0],y:u[1],textVerticalAlign:r===x?"middle":s,textAlign:r===x?s:"center",text:o[t]})}d.call(this,0),d.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,r=i.get("labelFormatter"),a=i.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return n.isFunction(r)?r(t,o):n.isString(r)?r.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i,n){this._dragging=!0,r.stop(n.event);var o=this._displayables.barGroup.getLocalTransform(),s=a.applyTransform([e,i],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,a=this._updateInterval("all",i[0]-r);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}})),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});function w(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function A(t){return"vertical"===t?"ns-resize":"ew-resize"}var E=T;t.exports=E},"237f":function(t,e,i){var n=i("6d8b"),r=i("6179"),a=i("7368"),o=i("31d9"),s=i("b1d4"),l=i("2039"),u=i("3301");function c(t,e,i,c,h){for(var d=new a(c),f=0;f<t.length;f++)d.addNode(n.retrieve(t[f].id,t[f].name,f),f);var p=[],g=[],v=0;for(f=0;f<e.length;f++){var m=e[f],y=m.source,x=m.target;d.addEdge(y,x,v)&&(g.push(m),p.push(n.retrieve(m.id,y+" > "+x)),v++)}var _,b=i.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,i);else{var S=l.get(b),T=S&&"view"!==S.type&&S.dimensions||[];n.indexOf(T,"value")<0&&T.concat(["value"]);var w=s(t,{coordDimensions:T});_=new r(w,i),_.initData(t)}var A=new r(["value"],i);return A.initData(g,p),h&&h(_,A),o({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:A},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}t.exports=c},"23e0":function(t,e,i){var n=i("6d8b"),r=i("7887"),a=i("89e3"),o=i("3842"),s=i("697e"),l=s.getScaleExtent,u=s.niceScaleExtent,c=i("2039"),h=i("8c2a");function d(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=n.map(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new r(i,"log"===t.get("axisType")?new h:new a);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},d.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],n=i.angle,r=this.cx+t*Math.cos(n),a=this.cy-t*Math.sin(n);return[r,a]},d.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var r,a=Math.atan2(-i,e),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(r=u,s=l,o=c)}return[s,+(r&&r.coordToData(n))]},d.prototype.resize=function(t,e){var i=t.get("center"),r=e.getWidth(),a=e.getHeight(),s=Math.min(r,a)/2;this.cx=o.parsePercent(i[0],r),this.cy=o.parsePercent(i[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var l=t.get("radius");"string"!==typeof l&&"number"!==typeof l||(l=[0,l]),this.r0=o.parsePercent(l[0],s),this.r=o.parsePercent(l[1],s),n.each(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i}),this)},d.prototype.update=function(t,e){var i=this._indicatorAxes,r=this._model;n.each(i,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,a){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();n.each(i,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var a=r.get("splitNumber");function s(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}n.each(i,(function(t,e){var i=l(t.scale,t.model).extent;u(t.scale,t.model);var n=t.model,r=t.scale,c=n.getMin(),h=n.getMax(),d=r.getInterval();if(null!=c&&null!=h)r.setExtent(+c,+h),r.setInterval((h-c)/a);else if(null!=c){do{p=c+d*a,r.setExtent(+c,p),r.setInterval(d),d=s(d)}while(p<i[1]&&isFinite(p)&&isFinite(i[1]))}else if(null!=h){do{g=h-d*a,r.setExtent(g,+h),r.setInterval(d),d=s(d)}while(g>i[0]&&isFinite(g)&&isFinite(i[0]))}else{var f=r.getTicks().length-1;f>a&&(d=s(d));var p=Math.ceil(i[1]/d)*d,g=o.round(p-d*a);r.setExtent(g,p),r.setInterval(d)}}))},d.dimensions=[],d.create=function(t,e){var i=[];return t.eachComponent("radar",(function(n){var r=new d(n,t,e);i.push(r),n.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},c.register("radar",d);var f=d;t.exports=f},"23ee":function(t,e,i){var n=i("3eba");i("879e"),i("9704"),i("d747");var r=i("675a"),a=i("7f96"),o=i("2943"),s=i("de6e"),l=i("d357"),u=i("adda"),c=i("5866"),h=i("7b0c");n.registerProcessor(r),n.registerVisual(a("graph","circle",null)),n.registerVisual(o),n.registerVisual(s),n.registerLayout(l),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),n.registerLayout(c),n.registerCoordinateSystem("graphView",{create:h})},2449:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("22d1"),s=i("e0d3"),l=i("eda2"),u=i("38a2"),c=l.addCommas,h=l.encodeHTML;function d(t){s.defaultEmphasis(t,"label",["show"])}var f=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},isAnimationEnabled:function(){if(o.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,i,n){var r=this.constructor,o=this.mainType+"Model";i||e.eachSeries((function(t){var i=t.get(this.mainType,!0),s=t[o];i&&i.data?(s?s._mergeOption(i,e,!0):(n&&d(i),a.each(i.data,(function(t){t instanceof Array?(d(t[0]),d(t[1])):d(t)})),s=new r(i,this,e),a.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[o]=s):t[o]=null}),this)},formatTooltip:function(t,e,i,n){var r=this.getData(),o=this.getRawValue(t),s=a.isArray(o)?a.map(o,c).join(", "):c(o),l=r.getName(t),u=h(this.name),d="html"===n?"<br/>":"\n";return(null!=o||l)&&(u+=d),l&&(u+=h(l),null!=o&&(u+=" : ")),null!=o&&(u+=h(s)),u},getData:function(){return this._data},setData:function(t){this._data=t}});a.mixin(f,u);var p=f;t.exports=p},"24b9":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("f934")),a=i("3842"),o=a.parsePercent,s=a.linearMap;function l(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,(function(t){return t})),r=[],a="ascending"===e,o=0,s=t.count();o<s;o++)r[o]=o;return"function"===typeof e?r.sort(e):"none"!==e&&r.sort((function(t,e){return a?n[t]-n[e]:n[e]-n[t]})),r}function c(t){t.each((function(e){var i,n,r,a,o=t.getItemModel(e),s=o.getModel("label"),l=s.get("position"),u=o.get("orient"),c=o.getModel("labelLine"),h=t.getItemLayout(e),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"),a=[[n,r],[n,r]];else{var p,g,v,m,y=c.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"===u?d[3][0]:d[1][0],g="horizontal"===u?d[3][1]:d[1][1],"horizontal"===u?(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"===u?(m=g+y,r=m+5,i="center"):(v=p+y,n=v+5,i="bottom")):"leftTop"===l?(p=d[0][0],g="horizontal"===u?d[0][1]:d[1][1],"horizontal"===u?(m=g-y,r=m-5,i="center"):(v=p-y,n=v-5,i="right")):"leftBottom"===l?(p="horizontal"===u?d[1][0]:d[3][0],g="horizontal"===u?d[1][1]:d[2][1],"horizontal"===u?(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"===u?(m=g+y,r=m+5,i="center"):(v=p+y,n=v+5,i="left")),"horizontal"===u?(v=p,n=v):(m=g,r=m),a=[[p,g],[v,m]]}h.label={linePoints:a,x:n,y:r,verticalAlign:"middle",textAlign:i,inside:f}}))}function h(t,e,i){t.eachSeriesByType("funnel",(function(t){var i=t.getData(),n=i.mapDimension("value"),r=t.get("sort"),a=l(t,e),h=u(i,r),d=t.get("orient"),f=a.width,p=a.height,g=a.x,v=a.y,m="horizontal"===d?[o(t.get("minSize"),p),o(t.get("maxSize"),p)]:[o(t.get("minSize"),f),o(t.get("maxSize"),f)],y=i.getDataExtent(n),x=t.get("min"),_=t.get("max");null==x&&(x=Math.min(y[0],0)),null==_&&(_=y[1]);var b=t.get("funnelAlign"),S=t.get("gap"),T="horizontal"===d?f:p,w=(T-S*(i.count()-1))/i.count(),A=function(t,e){if("horizontal"===d){var r,a=i.get(n,t)||0,o=s(a,[x,_],m,!0);switch(b){case"top":r=v;break;case"center":r=v+(p-o)/2;break;case"bottom":r=v+(p-o);break}return[[e,r],[e,r+o]]}a=i.get(n,t)||0;var l,u=s(a,[x,_],m,!0);switch(b){case"left":l=g;break;case"center":l=g+(f-u)/2;break;case"right":l=g+f-u;break}return[[l,e],[l+u,e]]};"ascending"===r&&(w=-w,S=-S,"horizontal"===d?g+=f:v+=p,h=h.reverse());for(var E=0;E<h.length;E++){var I=h[E],D=h[E+1],M=i.getItemModel(I);if("horizontal"===d){var L=M.get("itemStyle.width");null==L?L=w:(L=o(L,f),"ascending"===r&&(L=-L));var C=A(I,g),k=A(D,g+L);g+=L+S,i.setItemLayout(I,{points:C.concat(k.slice().reverse())})}else{var R=M.get("itemStyle.height");null==R?R=w:(R=o(R,p),"ascending"===r&&(R=-R));C=A(I,"horizontal"===d?g:v),k=A(D,"horizontal"===d?g+L:v+R);v+=R+S,i.setItemLayout(I,{points:C.concat(k.slice().reverse())})}}c(i)}))}t.exports=h},"255c":function(t,e,i){var n=i("3eba"),r=i("d4d1"),a=r.Polygon,o=i("2306"),s=i("6d8b"),l=s.bind,u=s.extend,c=i("80f0"),h=n.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,i){var n=t.getData(),r=this.group,s=t.getLayerSeries(),h=n.getLayout("layoutInfo"),f=h.rect,p=h.boundaryGap;function g(t){return t.name}r.attr("position",[0,f.y+p[0]]);var v=new c(this._layersSeries||[],s,g,g),m={};function y(e,i,l){var c=this._layers;if("remove"!==e){for(var h,f,p,g=[],v=[],y=s[i].indices,x=0;x<y.length;x++){var _=n.getItemLayout(y[x]),b=_.x,S=_.y0,T=_.y;g.push([b,S]),v.push([b,S+T]),h=n.getItemVisual(y[x],"color")}var w=n.getItemLayout(y[0]),A=n.getItemModel(y[x-1]),E=A.getModel("label"),I=E.get("margin");if("add"===e){var D=m[i]=new o.Group;f=new a({shape:{points:g,stackedOnPoints:v,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new o.Text({style:{x:w.x-I,y:w.y0+w.y/2}}),D.add(f),D.add(p),r.add(D),f.setClipPath(d(f.getBoundingRect(),t,(function(){f.removeClipPath()})))}else{D=c[l];f=D.childAt(0),p=D.childAt(1),r.add(D),m[i]=D,o.updateProps(f,{shape:{points:g,stackedOnPoints:v}},t),o.updateProps(p,{style:{x:w.x-I,y:w.y0+w.y/2}},t)}var M=A.getModel("emphasis.itemStyle"),L=A.getModel("itemStyle");o.setTextStyle(p.style,E,{text:E.get("show")?t.getFormattedLabel(y[x-1],"normal")||n.getName(y[x-1]):null,textVerticalAlign:"middle"}),f.setStyle(u({fill:h},L.getItemStyle(["color"]))),o.setHoverStyle(f,M.getItemStyle())}else r.remove(c[i])}v.add(l(y,this,"add")).update(l(y,this,"update")).remove(l(y,this,"remove")).execute(),this._layersSeries=s,this._layers=m},dispose:function(){}});function d(t,e,i){var n=new o.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return o.initProps(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}t.exports=h},"25f0":function(t,e,i){"use strict";var n=i("6eeb"),r=i("825a"),a=i("d039"),o=i("ad6d"),s="toString",l=RegExp.prototype,u=l[s],c=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=s;(c||h)&&n(RegExp.prototype,s,(function(){var t=r(this),e=String(t.source),i=t.flags,n=String(void 0===i&&t instanceof RegExp&&!("flags"in l)?o.call(t):i);return"/"+e+"/"+n}),{unsafe:!0})},"26e1":function(t,e,i){var n=i("6d8b"),r=i("e0d3"),a=n.each,o=n.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(t){var e=t&&t.itemStyle;if(e)for(var i=0,r=s.length;i<r;i++){var a=s[i],o=e.normal,l=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?n.merge(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),l&&l[a]&&(t[a]=t[a]||{},t[a].emphasis?n.merge(t[a].emphasis,l[a]):t[a].emphasis=l[a],l[a]=null)}}function u(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(i?(t[e].normal=t[e].emphasis=null,n.defaults(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a)}}function c(t){u(t,"itemStyle"),u(t,"lineStyle"),u(t,"areaStyle"),u(t,"label"),u(t,"labelLine"),u(t,"upperLabel"),u(t,"edgeLabel")}function h(t,e){var i=o(t)&&t[e],n=o(i)&&i.textStyle;if(n)for(var a=0,s=r.TEXT_STYLE_OPTIONS.length;a<s;a++){e=r.TEXT_STYLE_OPTIONS[a];n.hasOwnProperty(e)&&(i[e]=n[e])}}function d(t){t&&(c(t),h(t,"label"),t.emphasis&&h(t.emphasis,"label"))}function f(t){if(o(t)){l(t),c(t),h(t,"label"),h(t,"upperLabel"),h(t,"edgeLabel"),t.emphasis&&(h(t.emphasis,"label"),h(t.emphasis,"upperLabel"),h(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(l(e),d(e));var i=t.markLine;i&&(l(i),d(i));var r=t.markArea;r&&d(r);var a=t.data;if("graph"===t.type){a=a||t.nodes;var s=t.links||t.edges;if(s&&!n.isTypedArray(s))for(var f=0;f<s.length;f++)d(s[f]);n.each(t.categories,(function(t){c(t)}))}if(a&&!n.isTypedArray(a))for(f=0;f<a.length;f++)d(a[f]);e=t.markPoint;if(e&&e.data){var p=e.data;for(f=0;f<p.length;f++)d(p[f])}i=t.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"===t.type?(h(t,"axisLabel"),h(t,"title"),h(t,"detail")):"treemap"===t.type?(u(t.breadcrumb,"itemStyle"),n.each(t.levels,(function(t){c(t)}))):"tree"===t.type&&c(t.leaves)}}function p(t){return n.isArray(t)?t:t?[t]:[]}function g(t){return(n.isArray(t)?t[0]:t)||{}}function v(t,e){a(p(t.series),(function(t){o(t)&&f(t)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),a(i,(function(e){a(p(t[e]),(function(t){t&&(h(t,"axisLabel"),h(t.axisPointer,"label"))}))})),a(p(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;h(e,"axisLabel"),h(e&&e.axisPointer,"label")})),a(p(t.calendar),(function(t){u(t,"itemStyle"),h(t,"dayLabel"),h(t,"monthLabel"),h(t,"yearLabel")})),a(p(t.radar),(function(t){h(t,"name")})),a(p(t.geo),(function(t){o(t)&&(d(t),a(p(t.regions),(function(t){d(t)})))})),a(p(t.timeline),(function(t){d(t),u(t,"label"),u(t,"itemStyle"),u(t,"controlStyle",!0);var e=t.data;n.isArray(e)&&n.each(e,(function(t){n.isObject(t)&&(u(t,"label"),u(t,"itemStyle"))}))})),a(p(t.toolbox),(function(t){u(t,"iconStyle"),a(t.feature,(function(t){u(t,"iconStyle")}))})),h(g(t.axisPointer),"label"),h(g(t.tooltip).axisPointer,"label")}t.exports=v},"282b":function(t,e,i){var n=i("6d8b");function r(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,i,r){for(var a={},o=0;o<t.length;o++){var s=t[o][1];if(!(i&&n.indexOf(i,s)>=0||r&&n.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}t.exports=r},"292e":function(t,e,i){var n=i("3842"),r=n.parsePercent,a=n.linearMap,o=i("f934"),s=i("bb70"),l=i("6d8b"),u=2*Math.PI,c=Math.PI/180;function h(t,e){return o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function d(t,e,i,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),o=h(t,i),d=t.get("center"),f=t.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(d)||(d=[d,d]);var p=r(o.width,i.getWidth()),g=r(o.height,i.getHeight()),v=Math.min(p,g),m=r(d[0],p)+o.x,y=r(d[1],g)+o.y,x=r(f[0],v/2),_=r(f[1],v/2),b=-t.get("startAngle")*c,S=t.get("minAngle")*c,T=0;e.each(n,(function(t){!isNaN(t)&&T++}));var w=e.getSum(n),A=Math.PI/(w||T)*2,E=t.get("clockwise"),I=t.get("roseType"),D=t.get("stillShowZeroSum"),M=e.getDataExtent(n);M[0]=0;var L=u,C=0,k=b,R=E?1:-1;if(e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:E,cx:m,cy:y,r0:x,r:I?NaN:_,viewRect:o});else{n="area"!==I?0===w&&D?A:t*A:u/T,n<S?(n=S,L-=S):C+=t;var r=k+R*n;e.setItemLayout(i,{angle:n,startAngle:k,endAngle:r,clockwise:E,cx:m,cy:y,r0:x,r:I?a(t,M,[x,_]):_,viewRect:o}),k=r}})),L<u&&T)if(L<=.001){var P=u/T;e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=P,n.startAngle=b+R*i*P,n.endAngle=b+R*(i+1)*P}}))}else A=L/C,k=b,e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===S?S:t*A;n.startAngle=k,n.endAngle=k+R*r,k+=R*r}}));s(t,_,o.width,o.height,o.x,o.y)}))}t.exports=d},2943:function(t,e){function i(t){var e={};t.eachSeriesByType("graph",(function(t){var i=t.getCategoriesData(),n=t.getData(),r={};i.each((function(n){var a=i.getName(n);r["ec-"+a]=n;var o=i.getItemModel(n),s=o.get("itemStyle.color")||t.getColorFromPalette(a,e);i.setItemVisual(n,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&i.setItemVisual(n,l[u],c)}})),i.count()&&n.each((function(t){var e=n.getItemModel(t),a=e.getShallow("category");if(null!=a){"string"===typeof a&&(a=r["ec-"+a]);for(var o=["color","opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<o.length;s++)null==n.getItemVisual(t,o[s],!0)&&n.setItemVisual(t,o[s],i.getItemVisual(a,o[s]))}}))}))}t.exports=i},"29a8":function(t,e){var i={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:""}}}};t.exports=i},"29a9":function(t,e,i){var n=i("3eba"),r=i("b336");i("bc5f"),i("ab05"),i("06ea"),i("004f"),i("d6ef"),n.registerPreprocessor(r)},"2b17":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=(r.isTypedArray,r.extend),o=(r.assert,r.each),s=r.isObject,l=i("e0d3"),u=l.getDataItemValue,c=l.isDataItemOption,h=i("3842"),d=h.parseDate,f=i("ec6f"),p=i("93d0"),g=p.SOURCE_FORMAT_TYPED_ARRAY,v=p.SOURCE_FORMAT_ARRAY_ROWS,m=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_OBJECT_ROWS;function x(t,e){f.isInstance(t)||(t=f.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===g&&(this._offset=0,this._dimSize=e,this._data=i);var r=b[n===v?n+"_"+t.seriesLayoutBy:n];a(this,r)}var _=x.prototype;_.pure=!1,_.persistent=!0,_.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(t){return this._data[t+this._source.startIndex]},appendData:w},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n<i.length;n++){var r=i[n];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:S,getItem:T,appendData:w},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var r=this._data[i[n].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;o(t,(function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])}))}},original:{count:S,getItem:T,appendData:w},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var i=this._dimSize*t,n=0;n<this._dimSize;n++)e[n]=this._data[i+n];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}};function S(){return this._data.length}function T(t){return this._data[t]}function w(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var A={arrayRows:E,objectRows:function(t,e,i,n){return null!=i?t[n]:t},keyedColumns:E,original:function(t,e,i,n){var r=u(t);return null!=i&&r instanceof Array?r[i]:r},typedArray:E};function E(t,e,i,n){return null!=i?t[i]:t}var I={arrayRows:D,objectRows:function(t,e,i,n){return M(t[e],this._dimensionInfos[e])},keyedColumns:D,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&c(t)&&(this.hasItemOption=!0),M(r instanceof Array?r[n]:r,this._dimensionInfos[e])},typedArray:function(t,e,i,n){return t[n]}};function D(t,e,i,n){return M(t[n],this._dimensionInfos[e])}function M(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!==typeof t&&null!=t&&"-"!==t&&(t=+d(t)),null==t||""===t?NaN:+t}function L(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r,a,o=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(r=s.name,a=s.index),A[o](n,e,a,r)}}}function C(t,e,i){if(t){var n=t.getProvider().getSource().sourceFormat;if(n===m||n===y){var r=t.getRawDataItem(e);return n!==m||s(r)||(r=null),r?r[i]:void 0}}}e.DefaultDataProvider=x,e.defaultDimValueGetters=I,e.retrieveRawValue=L,e.retrieveRawAttr=C},"2b61":function(t,e,i){var n=i("7d6d"),r=i("82eb"),a=r.ContextCachedBy,o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(t){this.extendFrom(t,!1)};function l(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=t.createLinearGradient(n,a,r,o);return s}function u(t,e,i){var n=i.width,r=i.height,a=Math.min(n,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}s.prototype={constructor:s,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(t,e,i){var r=this,s=i&&i.style,l=!s||t.__attrCachedBy!==a.STYLE_BIND;t.__attrCachedBy=a.STYLE_BIND;for(var u=0;u<o.length;u++){var c=o[u],h=c[0];(l||r[h]!==s[h])&&(t[h]=n(t,h,r[h]||c[1]))}if((l||r.fill!==s.fill)&&(t.fillStyle=r.fill),(l||r.stroke!==s.stroke)&&(t.strokeStyle=r.stroke),(l||r.opacity!==s.opacity)&&(t.globalAlpha=null==r.opacity?1:r.opacity),(l||r.blend!==s.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var d=r.lineWidth;t.lineWidth=d/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"===typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n="radial"===e.type?u:l,r=n(t,e,i),a=e.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}};for(var c=s.prototype,h=0;h<o.length;h++){var d=o[h];d[0]in c||(c[d[0]]=d[1])}s.getGradient=c.getGradient;var f=s;t.exports=f},"2b8c":function(t,e,i){var n=i("6d8b"),r=i("5f14"),a=n.each;function o(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function s(t,e,i){var o={};return a(e,(function(e){var l=o[e]=s();a(t[e],(function(t,a){if(r.isValidType(a)){var o={type:a,visual:t};i&&i(o,e),l[a]=new r(o),"opacity"===a&&(o=n.clone(o),o.type="colorAlpha",l.__hidden.__alphaForOpacity=new r(o))}}))})),o;function s(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function l(t,e,i){var r;n.each(i,(function(t){e.hasOwnProperty(t)&&o(e[t])&&(r=!0)})),r&&n.each(i,(function(i){e.hasOwnProperty(i)&&o(e[i])?t[i]=n.clone(e[i]):delete t[i]}))}function u(t,e,i,a,o,s){var l,u={};function c(t){return i.getItemVisual(l,t)}function h(t,e){i.setItemVisual(l,t,e)}function d(t,n){l=null==s?t:n;var r=i.getRawDataItem(l);if(!r||!1!==r.visualMap)for(var d=a.call(o,t),f=e[d],p=u[d],g=0,v=p.length;g<v;g++){var m=p[g];f[m]&&f[m].applyVisual(t,c,h)}}n.each(t,(function(t){var i=r.prepareVisualTypes(e[t]);u[t]=i})),null==s?i.each(d):i.each([s],d)}function c(t,e,i,a){var o={};function s(t,n){function r(t){return n.getItemVisual(l,t)}function s(t,e){n.setItemVisual(l,t,e)}var l;null!=a&&(a=n.getDimension(a));while(null!=(l=t.next())){var u=n.getRawDataItem(l);if(!u||!1!==u.visualMap)for(var c=null!=a?n.get(a,l,!0):l,h=i(c),d=e[h],f=o[h],p=0,g=f.length;p<g;p++){var v=f[p];d[v]&&d[v].applyVisual(c,r,s)}}}return n.each(t,(function(t){var i=r.prepareVisualTypes(e[t]);o[t]=i})),{progress:s}}e.createVisualMappings=s,e.replaceVisualOption=l,e.applyVisual=u,e.incrementalApplyVisual=c},"2c17":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=r.createHashMap,o=r.each;n.registerProcessor({getTargetSeries:function(t){var e=a();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,i,n){var r=n.getAxisProxy(t.name,i);o(r.getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)})),t.eachTargetAxis((function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}))}})},"2c3e":function(t,e,i){var n=i("83ab"),r=i("9f7f").UNSUPPORTED_Y,a=i("9bf2").f,o=i("69f3").get,s=RegExp.prototype;n&&r&&a(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!o(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},"2cf4c":function(t,e){var i=1;"undefined"!==typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=0,r=i;e.debugMode=n,e.devicePixelRatio=r},"2cfc":function(t,e,i){var n=i("3eba");i("4338"),i("bcbe"),i("c62c"),i("cb8f"),i("f138"),n.extendComponentView({type:"single"})},"2f31":function(t,e,i){var n=i("3eba"),r=i("ae75");i("10cc"),i("f31f"),i("c2dd"),i("b8ec"),i("fecb"),n.registerPreprocessor(r)},"2f45":function(t,e,i){var n=i("6d8b"),r=n.each,a=n.createHashMap,o=(n.assert,i("4e08")),s=(o.__DEV__,a(["tooltip","label","itemName","itemId","seriesName"]));function l(t){var e={},i=e.encode={},n=a(),o=[],l=[],c=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};r(t.dimensions,(function(e){var r=t.getDimensionInfo(e),a=r.coordDim;if(a){var d=r.coordDimIndex;u(i,a)[d]=e,r.isExtraCoord||(n.set(a,1),h(r.type)&&(o[0]=e),u(c.encode,a)[d]=r.index),r.defaultTooltip&&l.push(e)}s.each((function(t,e){var n=u(i,e),a=r.otherDims[e];null!=a&&!1!==a&&(n[a]=r.name)}))}));var d=[],f={};n.each((function(t,e){var n=i[e];f[e]=n[0],d=d.concat(n)})),e.dataDimsOnCoord=d,e.encodeFirstDimNotExtra=f;var p=i.label;p&&p.length&&(o=p.slice());var g=i.tooltip;return g&&g.length?l=g.slice():l.length||(l=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=l,e}function u(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function c(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function h(t){return!("ordinal"===t||"time"===t)}e.OTHER_DIMENSIONS=s,e.summarizeDimensions=l,e.getDimensionTypeByAxis=c},"2f73":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("1e32");i("1ccf"),i("f5e6"),i("792e"),i("cb8f"),i("6acf"),n.registerLayout(r.curry(a,"bar")),n.extendComponentView({type:"polar"})},"2f91":function(t,e){var i=["itemStyle","borderColor"];function n(t,e){var n=t.get("color");t.eachRawSeriesByType("boxplot",(function(e){var r=n[e.seriesIndex%n.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(i)||r}),t.isSeriesFiltered(e)||a.each((function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(i,!0)})}))}))}t.exports=n},3014:function(t,e,i){var n=i("4f85"),r=i("3301"),a=n.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),r=n.getLayout("offset"),a=n.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return i[o]+=r+a/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:{}}});t.exports=a},3041:function(t,e,i){var n=i("e1fc"),r=i("0da8"),a=i("76a5"),o=i("d9fc"),s=i("c7a2"),l=i("ae69"),u=i("cb11"),c=i("cbe5"),h=i("87b1"),d=i("d498"),f=i("48a9"),p=i("2b61"),g=i("1687"),v=i("342d"),m=v.createFromString,y=i("6d8b"),x=y.isString,_=y.extend,b=y.defaults,S=y.trim,T=y.each,w=/[\s,]+/;function A(t){if(x(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}9===t.nodeType&&(t=t.firstChild);while("svg"!==t.nodeName.toLowerCase()||1!==t.nodeType)t=t.nextSibling;return t}function E(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}E.prototype.parse=function(t,e){e=e||{};var i=A(t);if(!i)throw new Error("Illegal svg");var r=new n;this._root=r;var a=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),R(i,r,null,!0);var u,c,h=i.firstChild;while(h)this._parseNode(h,r),h=h.nextSibling;if(a){var d=S(a).split(w);d.length>=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&null!=o&&null!=l&&(c=V(u,o,l),!e.ignoreViewBox)){var f=r;r=new n,r.add(f),f.scale=c.scale.slice(),f.position=c.position.slice()}return e.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:u,viewBoxTransform:c}},E.prototype._parseNode=function(t,e){var i,n=t.nodeName.toLowerCase();if("defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0),this._isDefine){var r=D[n];if(r){var a=r.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else{r=I[n];r&&(i=r.call(this,t,e),e.add(i))}var s=t.firstChild;while(s)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},E.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var r=new a({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});L(e,r),R(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var I={g:function(t,e){var i=new n;return L(e,i),R(t,i,this._defs),i},rect:function(t,e){var i=new s;return L(e,i),R(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new o;return L(e,i),R(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new u;return L(e,i),R(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new l;return L(e,i),R(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=C(i));var n=new h({shape:{points:i||[]}});return L(e,n),R(t,n,this._defs),n},polyline:function(t,e){var i=new c;L(e,i),R(t,i,this._defs);var n=t.getAttribute("points");n&&(n=C(n));var r=new d({shape:{points:n||[]}});return r},image:function(t,e){var i=new r;return L(e,i),R(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,r=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new n;return L(e,s),R(t,s,this._defs),s},tspan:function(t,e){var i=t.getAttribute("x"),r=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=r&&(this._textY=parseFloat(r));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new n;return L(e,s),R(t,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(t,e){var i=t.getAttribute("d")||"",n=m(i);return L(e,n),R(t,n,this._defs),n}},D={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new f(e,i,n,r);return M(t,a),a},radialgradient:function(t){}};function M(t,e){var i=t.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";e.addColorStop(n,r)}i=i.nextSibling}}function L(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),b(e.__inheritedStyle,t.__inheritedStyle))}function C(t){for(var e=S(t).split(w),i=[],n=0;n<e.length;n+=2){var r=parseFloat(e[n]),a=parseFloat(e[n+1]);i.push([r,a])}return i}var k={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 R(t,e,i,n){var r=e.__inheritedStyle||{},a="text"===e.type;if(1===t.nodeType&&(F(t,e),_(r,z(t)),!n))for(var o in k)if(k.hasOwnProperty(o)){var s=t.getAttribute(o);null!=s&&(r[k[o]]=s)}var l=a?"textFill":"fill",u=a?"textStroke":"stroke";e.style=e.style||new p;var c=e.style;null!=r.fill&&c.set(l,O(r.fill,i)),null!=r.stroke&&c.set(u,O(r.stroke,i)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&c.set(e,parseFloat(r[t]))})),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"),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&c.set(t,r[t])})),r.lineDash&&(e.style.lineDash=S(r.lineDash).split(w)),c[u]&&"none"!==c[u]&&(e[u]=!0),e.__inheritedStyle=r}var P=/url\(\s*#(.*?)\)/;function O(t,e){var i=e&&t&&t.match(P);if(i){var n=S(i[1]),r=e[n];return r}return t}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(t,e){var i=t.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=null,r=[];i.replace(N,(function(t,e,i){r.push(e,i)}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(n=n||g.create(),s){case"translate":o=S(o).split(w),g.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=S(o).split(w),g.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=S(o).split(w),g.rotate(n,n,parseFloat(o[0]));break;case"skew":o=S(o).split(w),console.warn("Skew transform is not supported yet");break;case"matrix":o=S(o).split(w);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5]);break}}e.setLocalTransform(n)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function z(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n,r={};B.lastIndex=0;while(null!=(n=B.exec(e)))r[n[1]]=n[2];for(var a in k)k.hasOwnProperty(a)&&null!=r[a]&&(i[k[a]]=r[a]);return i}function V(t,e,i){var n=e/t.width,r=i/t.height,a=Math.min(n,r),o=[a,a],s=[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+i/2];return{scale:o,position:s}}function G(t,e){var i=new E;return i.parse(t,e)}e.parseXML=A,e.makeViewBoxTransform=V,e.parseSVG=G},"307a":function(t,e,i){var n=i("6d8b"),r=i("eaea"),a=i("3842"),o=[20,140],s=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(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=o[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=o[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):n.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),n.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getVisualMeta:function(t){var e=l(this,"outOfRange",this.getExtent()),i=l(this,"inRange",this.option.range.slice()),n=[];function r(e,i){n.push({value:e,color:t(e,i)})}for(var a=0,o=0,s=i.length,u=e.length;o<u&&(!i.length||e[o]<=i[0]);o++)e[o]<i[a]&&r(e[o],"outOfRange");for(var c=1;a<s;a++,c=0)c&&n.length&&r(i[a],"outOfRange"),r(i[a],"inRange");for(c=1;o<u;o++)(!i.length||i[i.length-1]<e[o])&&(c&&(n.length&&r(n[n.length-1].value,"outOfRange"),c=0),r(e[o],"outOfRange"));var h=n.length;return{stops:n,outerColors:[h?n[0].color:"transparent",h?n[h-1].color:"transparent"]}}});function l(t,e,i){if(i[0]===i[1])return i.slice();for(var n=200,r=(i[1]-i[0])/n,a=i[0],o=[],s=0;s<=n&&a<i[1];s++)o.push(a),a+=r;return o.push(i[1]),o}var u=s;t.exports=u},"307b":function(t,e,i){var n=i("6d8b");function r(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function a(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(r,t)}}}t.exports=a},"307d":function(t,e,i){var n=i("6d8b"),r=i("6179"),a=i("3842"),o=i("923d"),s=i("73ca"),l=i("88f0"),u=i("ee1a"),c=u.getStackedDimension,h=function(t,e,i,r){var a=t.getData(),s=r.type;if(!n.isArray(r)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=r.xAxis||null!=r.yAxis)){var l,u;if(null!=r.yAxis||null!=r.xAxis)l=e.getAxis(null!=r.yAxis?"y":"x"),u=n.retrieve(r.yAxis,r.xAxis);else{var h=o.getAxisInfo(r,a,e,t);l=h.valueAxis;var d=c(a,h.valueDataDim);u=o.numCalculate(a,d,s)}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 u&&(u=+u.toFixed(Math.min(m,20))),g.coord[f]=v.coord[f]=u,r=[g,v,{type:s,valueIndex:r.valueIndex,value:u}]}return r=[o.dataTransform(t,r[0]),o.dataTransform(t,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(t){return!isNaN(t)&&!isFinite(t)}function f(t,e,i,n){var r=1-t,a=n.dimensions[t];return d(e[r])&&d(i[r])&&e[t]===i[t]&&n.getAxis(a).containData(e[t])}function p(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(f(1,i,n,t)||f(0,i,n,t)))return!0}return o.dataFilter(t,e[0])&&o.dataFilter(t,e[1])}function g(t,e,i,n,r){var o,s=n.coordinateSystem,l=t.getItemModel(e),u=a.parsePercent(l.get("x"),r.getWidth()),c=a.parsePercent(l.get("y"),r.getHeight());if(isNaN(u)||isNaN(c)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=s.dimensions,f=t.get(h[0],e),p=t.get(h[1],e);o=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");h=s.dimensions;d(t.get(h[0],e))?o[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):d(t.get(h[1],e))&&(o[1]=v.toGlobalCoord(v.getExtent()[i?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];t.setItemLayout(e,o)}var v=l.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markLineModel;if(e){var n=e.getData(),r=e.__from,a=e.__to;r.each((function(e){g(r,e,!0,t,i),g(a,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,i,r){var a=t.coordinateSystem,o=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(o)||u.set(o,new s);this.group.add(c.group);var h=m(a,t,e),d=h.from,f=h.to,p=h.line;e.__from=d,e.__to=f,e.setData(p);var v=e.get("symbol"),y=e.get("symbolSize");function x(e,i,n){var a=e.getItemModel(i);g(e,i,n,t,r),e.setItemVisual(i,{symbolRotate:a.get("symbolRotate"),symbolSize:a.get("symbolSize")||y[n?0:1],symbol:a.get("symbol",!0)||v[n?0:1],color:a.get("itemStyle.color")||l.getVisual("color")})}n.isArray(v)||(v=[v,v]),"number"===typeof y&&(y=[y,y]),h.from.each((function(t){x(d,t,!0),x(f,t,!1)})),p.each((function(t){var e=p.getItemModel(t).get("lineStyle.color");p.setItemVisual(t,{color:e||d.getItemVisual(t,"color")}),p.setItemLayout(t,[d.getItemLayout(t),f.getItemLayout(t)]),p.setItemVisual(t,{fromSymbolRotate:d.getItemVisual(t,"symbolRotate"),fromSymbolSize:d.getItemVisual(t,"symbolSize"),fromSymbol:d.getItemVisual(t,"symbol"),toSymbolRotate:f.getItemVisual(t,"symbolRotate"),toSymbolSize:f.getItemVisual(t,"symbolSize"),toSymbol:f.getItemVisual(t,"symbol")})})),c.updateData(p),h.line.eachItemGraphicEl((function(t,i){t.traverse((function(t){t.dataModel=e}))})),c.__keep=!0,c.group.silent=e.get("silent")||t.get("silent")}});function m(t,e,i){var a;a=t?n.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return n.defaults({name:t},i)})):[{name:"value",type:"float"}];var s=new r(a,i),l=new r(a,i),u=new r([],i),c=n.map(i.get("data"),n.curry(h,e,t,i));t&&(c=n.filter(c,n.curry(p,t)));var d=t?o.dimValueGetter:function(t){return t.value};return s.initData(n.map(c,(function(t){return t[0]})),null,d),l.initData(n.map(c,(function(t){return t[1]})),null,d),u.initData(n.map(c,(function(t){return t[2]}))),u.hasItemOption=!0,{from:s,to:l,line:u}}t.exports=v},"30a3":function(t,e,i){var n=i("6d8b"),r=i("607d"),a=r.Dispatcher,o=i("98b7"),s=i("06ad"),l=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)};l.prototype={constructor:l,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=n.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i.length,r=[],a=[],o=0;o<n;o++){var s=i[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(o=0;o<n;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r.length;for(o=0;o<n;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;function e(){t._running&&(o(e),!t._paused&&t._update())}this._running=!0,o(e)},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(t,e){e=e||{};var i=new s(t,e.loop,e.getter,e.setter);return this.addAnimator(i),i}},n.mixin(l,a);var u=l;t.exports=u},"311a":function(t,e,i){var n=i("3eba");i("d01c"),i("5b69"),i("bdc0");var r=i("81ac"),a=i("0e0f");n.registerLayout(r),n.registerVisual(a)},"313e":function(t,e,i){var n=i("3eba");(function(){for(var t in n){if(null==n||!n.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=n[t]}})();var r=i("b719");(function(){for(var t in r){if(null==r||!r.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=r[t]}})(),i("0352"),i("ef97"),i("94b1"),i("c037"),i("15af"),i("8deb"),i("675c"),i("ef97a"),i("dae1"),i("23ee"),i("07e6"),i("a4b1"),i("0817"),i("311a"),i("fa52"),i("085d"),i("1111"),i("a7e2"),i("5ce2"),i("aadf"),i("6c12f"),i("d716"),i("e057"),i("cd12"),i("2f73"),i("d070"),i("2cfc"),i("f306"),i("9390"),i("7f59"),i("b11c"),i("007d"),i("cb8f"),i("2f31"),i("627c"),i("ee95"),i("db0e"),i("95a8"),i("7e32"),i("0b4b"),i("d28f"),i("0a6d"),i("7f72"),i("e4d1"),i("5450"),i("7419"),i("29a9"),i("f170"),i("8ee0")},"31d9":function(t,e,i){var n=i("6d8b"),r=n.each,a="\0__link_datas",o="\0__link_mainData";function s(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,f(e,i,t),r(i,(function(i){r(e.TRANSFERABLE_METHODS,(function(e){i.wrapMethod(e,n.curry(l,t))}))})),e.wrapMethod("cloneShallow",n.curry(c,t)),r(e.CHANGABLE_METHODS,(function(i){e.wrapMethod(i,n.curry(u,t))})),n.assert(i[e.dataType]===e)}function l(t,e){if(d(this)){var i=n.extend({},this[a]);i[this.dataType]=e,f(e,i,t)}else p(e,this.dataType,this[o],t);return e}function u(t,e){return t.struct&&t.struct.update(this),e}function c(t,e){return r(e[a],(function(i,n){i!==e&&p(i.cloneShallow(),n,e,t)})),e}function h(t){var e=this[o];return null==t||null==e?e:e[a][t]}function d(t){return t[o]===t}function f(t,e,i){t[a]={},r(e,(function(e,n){p(e,n,t,i)}))}function p(t,e,i,n){i[a][e]=t,t[o]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=h}var g=s;t.exports=g},"320a":function(t,e,i){for(var n=i("6d8b"),r=i("f279"),a=[126,25],o=[[[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]]],s=0;s<o.length;s++)for(var l=0;l<o[s].length;l++)o[s][l][0]/=10.5,o[s][l][1]/=-14,o[s][l][0]+=a[0],o[s][l][1]+=a[1];function u(t,e){"china"===t&&e.push(new r("南海诸岛",n.map(o,(function(t){return{type:"polygon",exterior:t}})),a))}t.exports=u},"32a1":function(t,e,i){var n=i("6d8b"),r=i("7dcf"),a=i("ef6a"),o=i("5576"),s=n.bind,l=r.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,r){l.superApply(this,"render",arguments),this._range=t.getPercentRange(),n.each(this.getTargetCoordInfo(),(function(e,r){var a=n.map(e,(function(t){return o.generateCoordId(t.model)}));n.each(e,(function(e){var l=e.model,c={};n.each(["pan","zoom","scrollMove"],(function(t){c[t]=s(u[t],this,e,r)}),this),o.register(i,{coordId:o.generateCoordId(l),allCoordIds:a,containsPoint:function(t,e,i){return l.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,dataZoomModel:t,getRange:c})}),this)}),this)},dispose:function(){o.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),u={zoom:function(t,e,i,n){var r=this._range,o=r.slice(),s=t.axisModels[0];if(s){var l=h[e](null,[n.originX,n.originY],s,i,t),u=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/n.scale,0);o[0]=(o[0]-u)*c+u,o[1]=(o[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return a(0,o,[0,100],0,d.minSpan,d.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:c((function(t,e,i,n,r,a){var o=h[n]([a.oldX,a.oldY],[a.newX,a.newY],e,r,i);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:c((function(t,e,i,n,r,a){var o=h[n]([0,0],[a.scrollDelta,a.scrollDelta],e,r,i);return o.signal*(t[1]-t[0])*a.scrollDelta}))};function c(t){return function(e,i,n,r){var o=this._range,s=o.slice(),l=e.axisModels[0];if(l){var u=t(s,l,e,i,n,r);return a(u,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,i,n,r){var a=i.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,i,n,r){var a=i.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,i,n,r){var a=i.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},d=l;t.exports=d},3301:function(t,e,i){var n=i("6d8b"),r=i("6179"),a=i("b1d4"),o=i("93d0"),s=o.SOURCE_FORMAT_ORIGINAL,l=i("2f45"),u=l.getDimensionTypeByAxis,c=i("e0d3"),h=c.getDataItemValue,d=i("2039"),f=i("8b7f"),p=f.getCoordSysInfoBySeries,g=i("ec6f"),v=i("ee1a"),m=v.enableDataStack,y=i("0f99"),x=y.makeSeriesEncodeForAxisCoordSys;function _(t,e,i){i=i||{},g.isInstance(t)||(t=g.seriesDataToSource(t));var o,s=e.get("coordinateSystem"),l=d.get(s),c=p(e);c&&(o=n.map(c.coordSysDims,(function(t){var e={name:t},i=c.axisMap.get(t);if(i){var n=i.get("type");e.type=u(n)}return e}))),o||(o=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var h,f,v=a(t,{coordDimensions:o,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?n.curry(x,o,e):null});c&&n.each(v,(function(t,e){var i=t.coordDim,n=c.categoryAxisMap.get(i);n&&(null==h&&(h=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(f=!0)})),f||null==h||(v[h].otherDims.itemName=0);var y=m(e,v),_=new r(v,e);_.setCalculationInfo(y);var S=null!=h&&b(t)?function(t,e,i,n){return n===h?i:this.defaultDimValueGetter(t,e,i,n)}:null;return _.hasItemOption=!1,_.initData(t,null,S),_}function b(t){if(t.sourceFormat===s){var e=S(t.data||[]);return null!=e&&!n.isArray(h(e))}}function S(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var T=_;t.exports=T},3329:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2306"),o=i("a15a"),s=o.createSymbol,l=i("3842"),u=l.parsePercent,c=l.isNumeric,h=i("e7aa"),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 a.Circle,v=n.extendChartView({type:"pictorialBar",render:function(t,e,i){var n=this.group,r=t.getData(),a=this._data,o=t.coordinateSystem,s=o.getBaseAxis(),l=!!s.isHorizontal(),u=o.grid.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:p[+l],categoryDim:p[1-l]};return r.diff(a).add((function(t){if(r.hasValue(t)){var e=D(r,t),i=m(r,t,e,c),a=k(r,c,i);r.setItemGraphicEl(t,a),n.add(a),B(a,c,i)}})).update((function(t,e){var i=a.getItemGraphicEl(e);if(r.hasValue(t)){var o=D(r,t),s=m(r,t,o,c),l=O(r,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),r.setItemGraphicEl(t,null),i=null),i?R(i,c,s):i=k(r,c,s,!0),r.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=s,n.add(i),B(i,c,s)}else n.remove(i)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&P(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},dispose:r.noop,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){P(n,e.dataIndex,t,e)})):i.removeAll()}});function m(t,e,i,n){var a=t.getItemLayout(e),o=i.get("symbolRepeat"),s=i.get("symbolClip"),l=i.get("symbolPosition")||"start",c=i.get("symbolRotate"),h=(c||0)*Math.PI/180||0,d=i.get("symbolPatternSize")||2,f=i.isAnimationEnabled(),p={dataIndex:e,layout:a,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:s,symbolRepeat:o,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,o,a,n,p),_(t,e,a,o,s,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=[u(v[0],g[0]),u(v[1],g[1])]),S(i,g,a,o,s,v,l,p.valueLineWidth,p.boundingLength,p.repeatCutLength,n,p),p}function y(t,e,i,n,a){var o,s=n.valueDim,l=t.get("symbolBoundingData"),u=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(i[s.wh]<=0);if(r.isArray(l)){var d=[x(u,l[0])-c,x(u,l[1])-c];d[1]<d[0]&&d.reverse(),o=d[h]}else o=null!=l?x(u,l)-c:e?n.coordSysExtent[s.index][h]-c:i[s.wh];a.boundingLength=o,e&&(a.repeatCutLength=i[s.wh]),a.pxSign=o>0?1:o<0?-1:0}function x(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function _(t,e,i,n,a,o,s,l,c,h){var d=c.valueDim,f=c.categoryDim,p=Math.abs(i[f.wh]),g=t.getItemVisual(e,"symbolSize");r.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[f.index]=u(g[f.index],p),g[d.index]=u(g[d.index],n?p:Math.abs(o)),h.symbolSize=g;var v=h.symbolScale=[g[0]/l,g[1]/l];v[d.index]*=(c.isHorizontal?-1:1)*s}function b(t,e,i,n,r){var a=t.get(f)||0;a&&(g.attr({scale:e.slice(),rotation:i}),g.updateTransform(),a/=g.getLineScale(),a*=e[n.valueDim.index]),r.valueLineWidth=a}function S(t,e,i,n,a,o,s,l,h,d,f,p){var g=f.categoryDim,v=f.valueDim,m=p.pxSign,y=Math.max(e[v.index]+l,0),x=y;if(n){var _=Math.abs(h),b=r.retrieve(t.get("symbolMargin"),"15%")+"",S=!1;b.lastIndexOf("!")===b.length-1&&(S=!0,b=b.slice(0,b.length-1)),b=u(b,e[v.index]);var T=Math.max(y+2*b,0),w=S?0:2*b,A=c(n),E=A?n:z((_+w)/T),I=_-E*y;b=I/2/(S?E:E-1),T=y+2*b,w=S?0:2*b,A||"fixed"===n||(E=d?z((Math.abs(d)+w)/T):0),x=E*T-w,p.repeatTimes=E,p.symbolMargin=b}var D=m*(x/2),M=p.pathPosition=[];M[g.index]=i[g.wh]/2,M[v.index]="start"===s?D:"end"===s?h-D:h/2,o&&(M[0]+=o[0],M[1]+=o[1]);var L=p.bundlePosition=[];L[g.index]=i[g.xy],L[v.index]=i[v.xy];var C=p.barRectShape=r.extend({},i);C[v.wh]=m*Math.max(Math.abs(i[v.wh]),Math.abs(M[v.index]+D)),C[g.wh]=i[g.wh];var k=p.clipShape={};k[g.xy]=-i[g.xy],k[g.wh]=f.ecSize[g.wh],k[v.xy]=0,k[v.wh]=i[v.wh]}function T(t){var e=t.symbolPatternSize,i=s(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function w(t,e,i,n){var r=t.__pictorialBundle,a=i.symbolSize,o=i.valueLineWidth,s=i.pathPosition,l=e.valueDim,u=i.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+2*i.symbolMargin;for(N(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?F(t,null,p(c),i,n):F(t,null,{scale:[0,0]},i,n,(function(){r.remove(t)})),C(t,i),c++}));c<u;c++){var d=T(i);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var f=p(c);F(d,{position:f.position,scale:[0,0]},{scale:f.scale,rotation:f.rotation},i,n),d.on("mouseover",g).on("mouseout",v),C(d,i)}function p(t){var e=s.slice(),n=i.pxSign,r=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function g(){N(t,(function(t){t.trigger("emphasis")}))}function v(){N(t,(function(t){t.trigger("normal")}))}}function A(t,e,i,n){var r=t.__pictorialBundle,a=t.__pictorialMainPath;function o(){this.trigger("emphasis")}function s(){this.trigger("normal")}a?F(a,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(a=t.__pictorialMainPath=T(i),r.add(a),F(a,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),a.on("mouseover",o).on("mouseout",s)),C(a,i)}function E(t,e,i){var n=r.extend({},e.barRectShape),o=t.__pictorialBarRect;o?F(o,null,{shape:n},e,i):(o=t.__pictorialBarRect=new a.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function I(t,e,i,n){if(i.symbolClip){var o=t.__pictorialClipPath,s=r.extend({},i.clipShape),l=e.valueDim,u=i.animationModel,c=i.dataIndex;if(o)a.updateProps(o,{shape:s},u,c);else{s[l.wh]=0,o=new a.Rect({shape:s}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=i.clipShape[l.wh],a[n?"updateProps":"initProps"](o,{shape:h},u,c)}}}function D(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=M,i.isAnimationEnabled=L,i}function M(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function L(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function C(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.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 k(t,e,i,n){var r=new a.Group,o=new a.Group;return r.add(o),r.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?w(r,e,i):A(r,e,i),E(r,i,n),I(r,e,i,n),r.__pictorialShapeStr=O(t,i),r.__pictorialSymbolMeta=i,r}function R(t,e,i){var n=i.animationModel,r=i.dataIndex,o=t.__pictorialBundle;a.updateProps(o,{position:i.bundlePosition.slice()},n,r),i.symbolRepeat?w(t,e,i,!0):A(t,e,i,!0),E(t,i,!0),I(t,e,i,!0)}function P(t,e,i,n){var o=n.__pictorialBarRect;o&&(o.style.text=null);var s=[];N(n,(function(t){s.push(t)})),n.__pictorialMainPath&&s.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),r.each(s,(function(t){a.updateProps(t,{scale:[0,0]},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function O(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function N(t,e,i){r.each(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function F(t,e,i,n,r,o){e&&t.attr(e),n.symbolClip&&!r?i&&t.attr(i):i&&a[r?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,o)}function B(t,e,i){var n=i.color,o=i.dataIndex,s=i.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),c=s.getShallow("cursor");N(t,(function(t){t.setColor(n),t.setStyle(r.defaults({fill:n,opacity:i.opacity},l)),a.setHoverStyle(t,u),c&&(t.cursor=c),t.z2=i.z2}));var h={},f=e.valueDim.posDesc[+(i.boundingLength>0)],p=t.__pictorialBarRect;d(p.style,h,s,n,e.seriesModel,o,f),a.setHoverStyle(p,h)}function z(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var V=v;t.exports=V},"340d":function(t,e,i){var n=i("6d8b"),r=i("e887"),a=i("4e47"),o=i("80f0"),s=i("eda2"),l=s.windowOpen,u="sunburstRootToNode",c=r.extend({type:"sunburst",init:function(){},render:function(t,e,i,r){var s=this;this.seriesModel=t,this.api=i,this.ecModel=e;var l=t.getData(),u=l.tree.root,c=t.getViewRoot(),h=this.group,d=t.get("renderLabelForZeroData"),f=[];c.eachNode((function(t){f.push(t)}));var p=this._oldChildren||[];if(m(f,p),_(u,c),r&&r.highlight&&r.highlight.piece){var g=t.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(g)}else if(r&&r.unhighlight){var v=this.virtualPiece;!v&&u.children.length&&(v=u.children[0].piece),v&&v.onNormal()}function m(t,e){function i(t){return t.getId()}function r(i,n){var r=null==i?null:t[i],a=null==n?null:e[n];y(r,a)}0===t.length&&0===e.length||new o(e,t,i,i).add(r).update(r).remove(n.curry(r,null)).execute()}function y(i,n){if(d||!i||i.getValue()||(i=null),i!==u&&n!==u)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),l.setItemGraphicEl(i.dataIndex,n.piece)):x(n);else if(i){var r=new a(i,t,e);h.add(r),l.setItemGraphicEl(i.dataIndex,r)}}function x(t){t&&t.piece&&(h.remove(t.piece),t.piece=null)}function _(i,n){if(n.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,i,"normal",t,e):(s.virtualPiece=new a(i,t,e),h.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var r=function(t){s._rootToNode(n.parentNode)};n.piece._onclickEvent=r,s.virtualPiece.on("click",r)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode((function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var r=n.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(n);else if("link"===r){var a=n.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";l(o,s)}}i=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:u,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}}),h=c;t.exports=h},"342d":function(t,e,i){var n=i("cbe5"),r=i("20c8"),a=i("ee84"),o=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,c=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},h=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(c(t)*c(e))},d=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(h(t,e))};function f(t,e,i,n,r,a,c,f,p,g,v){var m=p*(u/180),y=l(m)*(t-i)/2+s(m)*(e-n)/2,x=-1*s(m)*(t-i)/2+l(m)*(e-n)/2,_=y*y/(c*c)+x*x/(f*f);_>1&&(c*=o(_),f*=o(_));var b=(r===a?-1:1)*o((c*c*(f*f)-c*c*(x*x)-f*f*(y*y))/(c*c*(x*x)+f*f*(y*y)))||0,S=b*c*x/f,T=b*-f*y/c,w=(t+i)/2+l(m)*S-s(m)*T,A=(e+n)/2+s(m)*S+l(m)*T,E=d([1,0],[(y-S)/c,(x-T)/f]),I=[(y-S)/c,(x-T)/f],D=[(-1*y-S)/c,(-1*x-T)/f],M=d(I,D);h(I,D)<=-1&&(M=u),h(I,D)>=1&&(M=0),0===a&&M>0&&(M-=2*u),1===a&&M<0&&(M+=2*u),v.addData(g,w,A,c,f,E,M,m,a)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v(t){if(!t)return new r;for(var e,i=0,n=0,a=i,o=n,s=new r,l=r.CMD,u=t.match(p),c=0;c<u.length;c++){for(var h,d=u[c],v=d.charAt(0),m=d.match(g)||[],y=m.length,x=0;x<y;x++)m[x]=parseFloat(m[x]);var _=0;while(_<y){var b,S,T,w,A,E,I,D=i,M=n;switch(v){case"l":i+=m[_++],n+=m[_++],h=l.L,s.addData(h,i,n);break;case"L":i=m[_++],n=m[_++],h=l.L,s.addData(h,i,n);break;case"m":i+=m[_++],n+=m[_++],h=l.M,s.addData(h,i,n),a=i,o=n,v="l";break;case"M":i=m[_++],n=m[_++],h=l.M,s.addData(h,i,n),a=i,o=n,v="L";break;case"h":i+=m[_++],h=l.L,s.addData(h,i,n);break;case"H":i=m[_++],h=l.L,s.addData(h,i,n);break;case"v":n+=m[_++],h=l.L,s.addData(h,i,n);break;case"V":n=m[_++],h=l.L,s.addData(h,i,n);break;case"C":h=l.C,s.addData(h,m[_++],m[_++],m[_++],m[_++],m[_++],m[_++]),i=m[_-2],n=m[_-1];break;case"c":h=l.C,s.addData(h,m[_++]+i,m[_++]+n,m[_++]+i,m[_++]+n,m[_++]+i,m[_++]+n),i+=m[_-2],n+=m[_-1];break;case"S":b=i,S=n;var L=s.len(),C=s.data;e===l.C&&(b+=i-C[L-4],S+=n-C[L-3]),h=l.C,D=m[_++],M=m[_++],i=m[_++],n=m[_++],s.addData(h,b,S,D,M,i,n);break;case"s":b=i,S=n;L=s.len(),C=s.data;e===l.C&&(b+=i-C[L-4],S+=n-C[L-3]),h=l.C,D=i+m[_++],M=n+m[_++],i+=m[_++],n+=m[_++],s.addData(h,b,S,D,M,i,n);break;case"Q":D=m[_++],M=m[_++],i=m[_++],n=m[_++],h=l.Q,s.addData(h,D,M,i,n);break;case"q":D=m[_++]+i,M=m[_++]+n,i+=m[_++],n+=m[_++],h=l.Q,s.addData(h,D,M,i,n);break;case"T":b=i,S=n;L=s.len(),C=s.data;e===l.Q&&(b+=i-C[L-4],S+=n-C[L-3]),i=m[_++],n=m[_++],h=l.Q,s.addData(h,b,S,i,n);break;case"t":b=i,S=n;L=s.len(),C=s.data;e===l.Q&&(b+=i-C[L-4],S+=n-C[L-3]),i+=m[_++],n+=m[_++],h=l.Q,s.addData(h,b,S,i,n);break;case"A":T=m[_++],w=m[_++],A=m[_++],E=m[_++],I=m[_++],D=i,M=n,i=m[_++],n=m[_++],h=l.A,f(D,M,i,n,E,I,T,w,A,h,s);break;case"a":T=m[_++],w=m[_++],A=m[_++],E=m[_++],I=m[_++],D=i,M=n,i+=m[_++],n+=m[_++],h=l.A,f(D,M,i,n,E,I,T,w,A,h,s);break}}"z"!==v&&"Z"!==v||(h=l.Z,s.addData(h),i=a,n=o),e=h}return s.toStatic(),s}function m(t,e){var i=v(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e)}else{e=t;i.rebuildPath(e)}},e.applyTransform=function(t){a(i,t),this.dirty(!0)},e}function y(t,e){return new n(m(t,e))}function x(t,e){return n.extend(m(t,e))}function _(t,e){for(var i=[],r=t.length,a=0;a<r;a++){var o=t[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new n(e);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},s}e.createFromString=y,e.extendFromString=x,e.mergePath=_},"347f":function(t,e,i){var n=i("6d8b"),r=i("9850"),a=i("1687"),o=i("2306"),s=i("f934"),l=i("933b"),u=i("08c3"),c=i("a15a"),h=c.createSymbol,d=i("697e"),f=i("3842"),p=i("eda2"),g=p.encodeHTML,v=n.bind,m=n.each,y=Math.PI,x=l.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,i),a=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return g(s.scale.getLabel(t))},m(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,a,s,t)}),this),this._renderAxisLabel(r,o,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),r=_(t,e);null==i||"auto"===i?i="horizontal"===n?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":isNaN(i)&&(i={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]);var a,o,s,l,u={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},c={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:y/2},d="vertical"===n?r.height:r.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,v=p?f.get("itemGap"):0,m=g+v,x=t.get("label.rotate")||0;x=x*y/180;var b=f.get("position",!0),S=p&&f.get("showPlayBtn",!0),T=p&&f.get("showPrevBtn",!0),w=p&&f.get("showNextBtn",!0),A=0,E=d;return"left"===b||"bottom"===b?(S&&(a=[0,0],A+=m),T&&(o=[A,0],A+=m),w&&(s=[E-g,0],E-=m)):(S&&(a=[E-g,0],E-=m),T&&(o=[0,0],A+=m),w&&(s=[E-g,0],E-=m)),l=[A,E],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:n,rotation:h[n],labelRotation:x,labelPosOpt:i,labelAlign:t.get("label.align")||u[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||c[n],playPosition:a,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:v}},_position:function(t,e){var i=this._mainGroup,n=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=a.create(),s=r.x,l=r.y+r.height;a.translate(o,o,[-s,-l]),a.rotate(o,o,-y/2),a.translate(o,o,[s,l]),r=r.clone(),r.applyTransform(o)}var u=m(r),c=m(i.getBoundingRect()),h=m(n.getBoundingRect()),d=i.position,f=n.position;f[0]=d[0]=u[0][0];var p=t.labelPosOpt;if(isNaN(p)){var g="+"===p?0:1;x(d,c,u,1,g),x(f,h,u,1,1-g)}else{g=p>=0?0:1;x(d,c,u,1,g),f[1]=d[1]+p}function v(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}i.attr("position",d),n.attr("position",f),i.rotation=n.rotation=t.rotation,v(i),v(n)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),r=d.createScaleByModel(e,n);r.getTicks=function(){return i.mapArray(["value"],(function(t){return t}))};var a=i.getDataExtent("value");r.setExtent(a[0],a[1]),r.niceTicks();var o=new u("value",r,t.axisExtent,n);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new o.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,r){var a=i.getExtent();r.get("lineStyle.show")&&e.add(new o.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:n.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var r=n.getData(),a=i.scale.getTicks();m(a,(function(t){var a=i.dataToCoord(t),s=r.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[a,0],onclick:v(this._changeTimeline,this,t)},h=S(s,l,e,c);o.setHoverStyle(h,u.getItemStyle()),s.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,i,n){var r=i.getLabelModel();if(r.get("show")){var a=n.getData(),s=i.getViewLabels();m(s,(function(n){var r=n.tickValue,s=a.getItemModel(r),l=s.getModel("label"),u=s.getModel("emphasis.label"),c=i.dataToCoord(n.tickValue),h=new o.Text({position:[c,0],rotation:t.labelRotation-t.rotation,onclick:v(this._changeTimeline,this,r),silent:!1});o.setTextStyle(h.style,l,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),o.setHoverStyle(h,o.setTextStyle({},u))}),this)}},_renderControl:function(t,e,i,n){var r=t.controlSize,a=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-r/2,r,r],c=n.getPlayState(),h=n.get("inverse",!0);function d(t,i,c,h){if(t){var d={position:t,origin:[r/2,0],rotation:h?-a:0,rectHover:!0,style:s,onclick:c},f=b(n,i,u,d);e.add(f),o.setHoverStyle(f,l)}}d(t.nextBtnPosition,"controlStyle.nextIcon",v(this._changeTimeline,this,h?"-":"+")),d(t.prevBtnPosition,"controlStyle.prevIcon",v(this._changeTimeline,this,h?"+":"-")),d(t.playPosition,"controlStyle."+(c?"stopIcon":"playIcon"),v(this._handlePlayClick,this,!c),!0)},_renderCurrentPointer:function(t,e,i,n){var r=n.getData(),a=n.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=v(s._handlePointerDrag,s),t.ondragend=v(s._handlePointerDragend,s),T(t,a,i,n,!0)},onUpdate:function(t){T(t,a,i,n)}};this._currentPointer=S(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[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 a=this._findNearestTick(i),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(v(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return o.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,i=this.model.getData(),n=1/0,r=this._axis;return i.each(["value"],(function(i,a){var o=r.dataToCoord(i),s=Math.abs(o-t);s<n&&(n=s,e=a)})),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}});function _(t,e){return s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function b(t,e,i,n){var a=n.style,s=o.createIcon(t.get(e),n||{},new r(i[0],i[1],i[2],i[3]));return a&&s.setStyle(a),s}function S(t,e,i,r,a,o){var s=e.get("color");if(a)a.setColor(s),i.add(a),o&&o.onUpdate(a);else{var l=t.get("symbol");a=h(l,-1,-1,2,2,s),a.setStyle("strokeNoScale",!0),i.add(a),o&&o.onCreate(a)}var u=e.getItemStyle(["color","symbol","symbolSize"]);a.setStyle(u),r=n.merge({rectHover:!0,z2:100},r,!0);var c=t.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,r.scale=c;var d=t.get("symbolOffset");if(d){var p=r.position=r.position||[0,0];p[0]+=f.parsePercent(d[0],c[0]),p[1]+=f.parsePercent(d[1],c[1])}var g=t.get("symbolRotate");return r.rotation=(g||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function T(t,e,i,n,r){if(!t.dragging){var a=n.getModel("checkpointStyle"),o=i.dataToCoord(n.getData().get(["value"],e));r||!a.get("animation",!0)?t.attr({position:[o,0]}):(t.stopAnimation(!0),t.animateTo({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}t.exports=x},3790:function(t,e,i){var n=i("3a56"),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"}}}),a=r;t.exports=a},3842:function(t,e,i){var n=i("6d8b"),r=1e-4;function a(t){return t.replace(/^\s+|\s+$/g,"")}function o(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"===typeof t?a(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function l(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function u(t){return t.sort((function(t,e){return t-e})),t}function c(t){if(t=+t,isNaN(t))return 0;var e=1,i=0;while(Math.round(t*e)/e!==t)e*=10,i++;return i}function h(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function d(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function f(t,e,i){if(!t[e])return 0;var r=n.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var a=Math.pow(10,i),o=n.map(t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=n.map(o,(function(t){return Math.floor(t)})),u=n.reduce(l,(function(t,e){return t+e}),0),c=n.map(o,(function(t,e){return t-l[e]}));while(u<s){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=c.length;f<p;++f)c[f]>h&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/a}var p=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function v(t){return t>-r&&t<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(t){if(t instanceof Date)return t;if("string"===typeof t){var e=m.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function x(t){return Math.pow(10,_(t))}function _(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function b(t,e){var i,n=_(t),r=Math.pow(10,n),a=t/r;return i=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function S(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],a=i-n;return a?r+a*(t[n]-r):r}function T(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n<t.length;){for(var r=t[n].interval,a=t[n].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-i),e=r[o],i=a[o];r[0]===r[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(t,e,i){return t.interval[i]<e.interval[i]||t.interval[i]===e.interval[i]&&(t.close[i]-e.close[i]===(i?-1:1)||!i&&s(t,e,1))}}function w(t){return t-parseFloat(t)>=0}e.linearMap=o,e.parsePercent=s,e.round=l,e.asc=u,e.getPrecision=c,e.getPrecisionSafe=h,e.getPixelPrecision=d,e.getPercentWithPrecision=f,e.MAX_SAFE_INTEGER=p,e.remRadian=g,e.isRadianAroundZero=v,e.parseDate=y,e.quantity=x,e.quantityExponent=_,e.nice=b,e.quantile=S,e.reformIntervals=T,e.isNumeric=w},"38a2":function(t,e,i){var n=i("2b17"),r=n.retrieveRawValue,a=i("eda2"),o=a.getTooltipMarker,s=a.formatTpl,l=i("e0d3"),u=l.getTooltipRenderMode,c=/\{@(.+?)\}/g,h={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"color"),c=i.getItemVisual(t,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),f=u(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:a,dataIndex:r,data:s,dataType:e,value:n,color:l,borderColor:c,dimensionNames:v?v.dimensionNames:null,encode:v?v.encode:null,marker:o({color:l,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,n,a){e=e||"normal";var o=this.getData(i),l=o.getItemModel(t),u=this.getDataParams(t,i);null!=n&&u.value instanceof Array&&(u.value=u.value[n]);var h=l.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);if("function"===typeof h)return u.status=e,u.dimensionIndex=n,h(u);if("string"===typeof h){var d=s(h,u);return d.replace(c,(function(e,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),r(o,t,i)}))}},getRawValue:function(t,e){return r(this.getData(e),t)},formatTooltip:function(){}};t.exports=h},3901:function(t,e,i){var n=i("282b"),r=n([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getLineStyle:function(t){var e=r(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[n,n]:[i,i])}};t.exports=a},"392f":function(t,e,i){var n=i("6d8b"),r=n.inherits,a=i("19eb"),o=i("9850");function s(t){a.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},s.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},s.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},s.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},s.prototype.brush=function(t,e){for(var i=this._cursor;i<this._displayables.length;i++){var n=this._displayables[i];n.beforeBrush&&n.beforeBrush(t),n.brush(t,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._cursor=i;for(i=0;i<this._temporaryDisplayables.length;i++){n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(t),n.brush(t,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];s.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new o(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(l)),t.union(n)}this._rect=t}return this._rect},s.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(t,e))return!0}return!1},r(s,a);var u=s;t.exports=u},3942:function(t,e,i){var n=i("3eba"),r=i("6d8b");n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),r.defaults({currentIndex:i.option.currentIndex},t)})),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}))},3970:function(t,e,i){var n=i("4f85"),r=i("3301"),a=i("2039"),o=n.extend({type:"series.heatmap",getInitialData:function(t,e){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=a.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=o},"3a56":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("22d1"),s=i("e0d3"),l=i("50e5"),u=i("cc39"),c=a.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(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=f(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=f(t);a.merge(this.option,t,!0),a.merge(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;o.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),p(this,t);var i=this.settledOption;c([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,i,n,r){var a=this.dependentModels[e.axis][i],o=a.__dzAxisProxy||(a.__dzAxisProxy=new u(e.name,i,this,r));t[e.name+"_"+i]=o}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();h((function(e){var i=e.axisIndex;t[i]=s.normalizeToArray(t[i])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;h((function(i){null!=t[i.axisIndex]&&(e=!0)}),this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var r="vertical"===e?"y":"x";n[r+"Axis"].length?(i[r+"AxisIndex"]=[0],t=!1):c(n.singleAxis,(function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)}))}t&&h((function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r.length&&!n.length)for(var a=0,o=r.length;a<o;a++)"category"===r[a].get("type")&&n.push(a);i[e.axisIndex]=n,n.length&&(t=!1)}}),this),t&&this.ecModel.eachSeries((function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&h((function(e){var n=i[e.axisIndex],r=t.get(e.axisIndex),o=t.get(e.axisId),s=t.ecModel.queryComponents({mainType:e.axis,index:r,id:o})[0];r=s.componentIndex,a.indexOf(n,r)<0&&n.push(r)}))}),this)},_autoSetOrient:function(){var t;this.eachTargetAxis((function(e){!t&&(t=e.name)}),this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return h((function(n){var r=t.get(n.axisIndex),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)}),this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return h((function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}}),this),t},eachTargetAxis:function(t,e){var i=this.ecModel;h((function(n){c(this.get(n.axisIndex),(function(r){t.call(e,n,r,this,i)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t){var e=this.option,i=this.settledOption;c([["start","startValue"],["end","endValue"]],(function(n){null==t[n[0]]&&null==t[n[1]]||(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])}),this),p(this,t)},setCalculatedRange:function(t){var e=this.option;c(["start","startValue","end","endValue"],(function(i){e[i]=t[i]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(t){var e={};return c(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}function p(t,e){var i=t._rangePropMode,n=t.get("rangeMode");c([["start","startValue"],["end","endValue"]],(function(t,r){var a=null!=e[t[0]],o=null!=e[t[1]];a&&!o?i[r]="percent":!a&&o?i[r]="value":n?i[r]=n[r]:a&&(i[r]="percent")}))}var g=d;t.exports=g},"3cd6":function(t,e,i){var n=i("6d8b"),r=i("48a9"),a=i("607d"),o=i("72b6"),s=i("2306"),l=i("3842"),u=i("ef6a"),c=i("cbb0"),h=i("e0d3"),d=l.linearMap,f=n.each,p=Math.min,g=Math.max,v=12,m=6,y=o.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(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,l=this._shapes.barGroup,u=this._applyTransform([o[0]/2,0===i?-a:o[1]+a],l),c=this._applyTransform(0===i?"bottom":"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:u[0],y:u[1],textVerticalAlign:"horizontal"===h?"middle":c,textAlign:"horizontal"===h?c:"center",text:n,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,i=this._shapes,r=e.itemSize,a=this._orient,o=this._useHandle,s=c.getItemAlign(e,this.api,r),l=i.barGroup=this._createBarGroup(s);l.add(i.outOfRange=x()),l.add(i.inRange=x(null,o?w(this._orient):null,n.bind(this._dragHandle,this,"all",!1),n.bind(this._dragHandle,this,"all",!0)));var u=e.textStyleModel.getTextRect("国"),h=g(u.width,u.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(l,0,r,h,a,s),this._createHandle(l,1,r,h,a,s)),this._createIndicator(l,r,h,a),t.add(l)},_createHandle:function(t,e,i,r,o){var l=n.bind(this._dragHandle,this,e,!1),u=n.bind(this._dragHandle,this,e,!0),c=x(_(e,r),w(this._orient),l,u);c.position[0]=i[0],t.add(c);var h=this.visualMapModel.textStyleModel,d=new s.Text({draggable:!0,drift:l,onmousemove:function(t){a.stop(t.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(d);var f=["horizontal"===o?r/2:1.5*r,"horizontal"===o?0===e?-1.5*r:1.5*r:0===e?-r/2:r/2],p=this._shapes;p.handleThumbs[e]=c,p.handleLabelPoints[e]=f,p.handleLabels[e]=d},_createIndicator:function(t,e,i,n){var r=x([[0,0]],"move");r.position[0]=e[0],r.attr({invisible:!0,silent:!0}),t.add(r);var a=this.visualMapModel.textStyleModel,o=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:a.getFont(),textFill:a.getTextColor()}});this.group.add(o);var l=["horizontal"===n?i/2:m+3,0],u=this._shapes;u.indicator=r,u.indicatorLabel=o,u.indicatorLabelPoint=l},_dragHandle:function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(t,r[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():T(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[d(e[0],i,n,!0),d(e[1],i,n,!0)]},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];u(e,n,r,t,0);var a=i.getExtent();this._dataInterval=[d(n[0],r,a,!0),d(n[1],r,a,!0)]},_updateView:function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,r=[0,e.itemSize[1]],a=t?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,a,"inRange"),s=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(a,o)},_createBarVisual:function(t,e,i,n){var a={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,a),s=[this.getControllerVisual(t[0],"symbolSize",a),this.getControllerVisual(t[1],"symbolSize",a)],l=this._createBarPoints(i,s);return{barColor:new r(0,0,0,1,o),barPoints:l,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(t,e){var i=100,n=[],r=(t[1]-t[0])/i;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<i;a++){var o=t[0]+r*a;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:a/i})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,a=i.handleLabels;f([0,1],(function(o){var l=r[o];l.setStyle("fill",e.handlesColor[o]),l.position[1]=t[o];var u=s.applyTransform(i.handleLabelPoints[o],s.getTransform(l,this.group));a[o].setStyle({x:u[0],y:u[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(t,e,i,n){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,l=[0,o[1]],u=d(t,a,l,!0),c=this._shapes,h=c.indicator;if(h){h.position[1]=u,h.attr("invisible",!1),h.setShape("points",b(!!i,n,u,o[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",f);h.setStyle("fill",p);var g=s.applyTransform(c.indicatorLabelPoint,s.getTransform(h,this.group)),v=c.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",c.barGroup),y=this._orient;v.setStyle({text:(i||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===y?m:"middle",textAlign:"horizontal"===y?"center":m,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=p(g(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var r=[0,n[1]],a=i.getExtent();t=p(g(r[0],t),r[1]);var o=S(i,a,r),s=[t-o,t+o],l=d(t,r,a,!0),u=[d(s[0],r,a,!0),d(s[1],r,a,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var f=this._hoverLinkDataIndices,v=[];(e||T(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var m=h.compressBatches(f,v);this._dispatchHighDown("downplay",c.makeHighDownBatch(m[0],i)),this._dispatchHighDown("highlight",c.makeHighDownBatch(m[1],i))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var r=n.getData(e.dataType),a=r.get(i.getDataDimension(r),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,r){var a=s.getTransform(e,r?null:this.group);return s[n.isArray(t)?"applyTransform":"transformDirection"](t,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function x(t,e,i,n){return new s.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){a.stop(t.event)},ondragend:n})}function _(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function b(t,e,i,n){return t?[[0,-p(e,g(i,0))],[m,0],[0,p(e,g(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function S(t,e,i){var n=v/2,r=t.get("hoverLinkDataSize");return r&&(n=d(r,e,i,!0)/2),n}function T(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function w(t){return"vertical"===t?"ns-resize":"ew-resize"}var A=y;t.exports=A},"3eba":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("697e7")),a=i("6d8b"),o=i("41ef"),s=i("22d1"),l=i("04f6"),u=i("1fab"),c=i("7e63"),h=i("843e"),d=i("2039"),f=i("ca98"),p=i("fb05"),g=i("d15d"),v=i("6cb7"),m=i("4f85"),y=i("b12f"),x=i("e887"),_=i("2306"),b=i("e0d3"),S=i("88b3"),T=S.throttle,w=i("fd63"),A=i("b809"),E=i("998c"),I=i("69ff"),D=i("c533"),M=i("f219");i("0352");var L=i("ec34"),C=a.assert,k=a.each,R=a.isFunction,P=a.isObject,O=v.parseClassType,N="4.9.0",F={zrender:"4.3.2"},B=1,z=1e3,V=800,G=900,U=5e3,H=1e3,W=1100,j=2e3,K=3e3,Y=3500,X=4e3,q=5e3,Z={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:U},VISUAL:{LAYOUT:H,PROGRESSIVE_LAYOUT:W,GLOBAL:j,CHART:K,POST_CHART_LAYOUT:Y,COMPONENT:X,BRUSH:q}},$="__flagInMainProcess",Q="__optionUpdated",J=/^[a-zA-Z0-9_]+$/;function tt(t,e){return function(i,n,r){e||!this._disposed?(i=i&&i.toLowerCase(),u.prototype[t].call(this,i,n,r)):_t(this.id)}}function et(){u.call(this)}function it(t,e,i){i=i||{},"string"===typeof e&&(e=kt[e]),this.id,this.group,this._dom=t;var n="canvas",o=this._zr=r.init(t,{renderer:i.renderer||n,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=T(a.bind(o.flush,o),17);e=a.clone(e);e&&p(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new d;var s=this._api=wt(this);function c(t,e){return t.__prio-e.__prio}l(Ct,c),l(Dt,c),this._scheduler=new I(this,s,Dt,Ct),u.call(this,this._ecEventProcessor=new At),this._messageCenter=new et,this._initEvents(),this.resize=a.bind(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),dt(o,this),a.setAsPrimitive(this)}et.prototype.on=tt("on",!0),et.prototype.off=tt("off",!0),et.prototype.one=tt("one",!0),a.mixin(et,u);var nt=it.prototype;function rt(t,e,i){if(this._disposed)_t(this.id);else{var n,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=b.parseFinder(r,e);for(var o=0;o<a.length;o++){var s=a[o];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}}nt._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[Q]){var e=this[Q].silent;this[$]=!0,ot(this),at.update.call(this),this[$]=!1,this[Q]=!1,ct.call(this,e),ht.call(this,e)}else if(t.unfinished){var i=B,n=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),lt(this,n),t.performVisualTasks(n),mt(this,this._model,r,"remain"),i-=+new Date-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},nt.getDom=function(){return this._dom},nt.getZr=function(){return this._zr},nt.setOption=function(t,e,i){if(this._disposed)_t(this.id);else{var n;if(P(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[$]=!0,!this._model||e){var r=new f(this._api),a=this._theme,o=this._model=new c;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,Mt),i?(this[Q]={silent:n},this[$]=!1):(ot(this),at.update.call(this),this._zr.flush(),this[Q]=!1,this[$]=!1,ct.call(this,n),ht.call(this,n))}},nt.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},nt.getModel=function(){return this._model},nt.getOption=function(){return this._model&&this._model.getOption()},nt.getWidth=function(){return this._zr.getWidth()},nt.getHeight=function(){return this._zr.getHeight()},nt.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},nt.getRenderedCanvas=function(t){if(s.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},nt.getSvgDataURL=function(){if(s.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return a.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},nt.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;k(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(n,(function(t){t.group.ignore=!1})),a}_t(this.id)},nt.getConnectedDataURL=function(t){if(this._disposed)_t(this.id);else if(s.canvasSupported){var e="svg"===t.type,i=this.group,n=Math.min,o=Math.max,l=1/0;if(Ot[i]){var u=l,c=l,h=-l,d=-l,f=[],p=t&&t.pixelRatio||1;a.each(Pt,(function(r,s){if(r.group===i){var l=e?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(a.clone(t)),p=r.getDom().getBoundingClientRect();u=n(p.left,u),c=n(p.top,c),h=o(p.right,h),d=o(p.bottom,d),f.push({dom:l,left:p.left,top:p.top})}})),u*=p,c*=p,h*=p,d*=p;var g=h-u,v=d-c,m=a.createCanvas(),y=r.init(m,{renderer:e?"svg":"canvas"});if(y.resize({width:g,height:v}),e){var x="";return k(f,(function(t){var e=t.left-u,i=t.top-c;x+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=x,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new _.Rect({shape:{x:0,y:0,width:g,height:v},style:{fill:t.connectedBackgroundColor}})),k(f,(function(t){var e=new _.Image({style:{x:t.left*p-u,y:t.top*p-c,image:t.dom}});y.add(e)})),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},nt.convertToPixel=a.curry(rt,"convertToPixel"),nt.convertFromPixel=a.curry(rt,"convertFromPixel"),nt.containPixel=function(t,e){if(!this._disposed){var i,n=this._model;return t=b.parseFinder(n,t),a.each(t,(function(t,n){n.indexOf("Models")>=0&&a.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}}),this)}),this),!!i}_t(this.id)},nt.getVisual=function(t,e){var i=this._model;t=b.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel,r=n.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=a?r.getItemVisual(a,e):r.getVisual(e)},nt.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},nt.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var at={prepareAndUpdate:function(t){ot(this),at.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),r.create(e,i),a.performDataProcessorTasks(e,t),lt(this,e),r.update(e,i),pt(e),a.performVisualTasks(e,t),gt(this,e,i,t);var l=e.get("backgroundColor")||"transparent";if(s.canvasSupported)n.setBackgroundColor(l);else{var u=o.parse(l);l=o.stringify(u,"rgb"),0===u[3]&&(l="transparent")}yt(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var r=[];e.eachComponent((function(a,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&r.push(s)}else r.push(s)}));var o=a.createHashMap();e.eachSeries((function(r){var a=i._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),pt(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),mt(i,e,n,t,o),yt(e,this._api)}},updateView:function(t){var e=this._model;e&&(x.markUpdateMethod(t,"updateView"),pt(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),gt(this,this._model,this._api,t),yt(e,this._api))},updateVisual:function(t){at.update.call(this,t)},updateLayout:function(t){at.update.call(this,t)}};function ot(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),ft(t,"component",e,i),ft(t,"chart",e,i),i.plan()}function st(t,e,i,n,r){var o=t._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u=i.excludeSeriesId;null!=u&&(u=a.createHashMap(b.normalizeToArray(u))),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||c(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else k(t._componentsViews.concat(t._chartsViews),c);function c(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}}function lt(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))}function ut(t,e){var i=t.type,n=t.escapeConnect,r=Et[i],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&O(s[0]),this[$]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=a.map(t.batch,(function(e){return e=a.defaults(a.extend({},e),t),e.batch=null,e})));var h,d=[],f="highlight"===i||"downplay"===i;k(u,(function(t){h=r.action(t,this._model,this._api),h=h||a.extend({},t),h.type=o.event||h.type,d.push(h),f?st(this,l,t,"series"):s&&st(this,l,t,s.main,s.sub)}),this),"none"===l||f||s||(this[Q]?(ot(this),at.update.call(this,t),this[Q]=!1):at[l].call(this,t)),h=c?{type:o.event||i,escapeConnect:n,batch:d}:d[0],this[$]=!1,!e&&this._messageCenter.trigger(h.type,h)}function ct(t){var e=this._pendingActions;while(e.length){var i=e.shift();ut.call(this,i,t)}}function ht(t){!t&&this.trigger("updated")}function dt(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[Q]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}function ft(t,e,i,n){for(var r="component"===e,a=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<a.length;u++)a[u].__alive=!1;function c(t){var e="_ec_"+t.id+"_"+t.type,u=o[e];if(!u){var c=O(t.type),h=r?y.getClass(c.main,c.sub):x.getClass(c.sub);u=new h,u.init(i,l),o[e]=u,a.push(u),s.add(u.group)}t.__viewId=u.__id=e,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!r&&n.prepareView(u,t,i,l)}r?i.eachComponent((function(t,e){"series"!==t&&c(e)})):i.eachSeries(c);for(u=0;u<a.length;){var h=a[u];h.__alive?u++:(!r&&h.renderTask.dispose(),s.remove(h.group),h.dispose(i,l),a.splice(u,1),delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function pt(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function gt(t,e,i,n){vt(t,e,i,n),k(t._chartsViews,(function(t){t.__alive=!1})),mt(t,e,i,n),k(t._chartsViews,(function(t){t.__alive||t.remove(e,i)}))}function vt(t,e,i,n,r){k(r||t._componentsViews,(function(t){var r=t.__model;t.render(r,e,i,n),Tt(r,t)}))}function mt(t,e,i,n,r){var a,o=t._scheduler;e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var s=i.renderTask;o.updatePayload(s,n),r&&r.get(e.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),i.group.silent=!!e.get("silent"),Tt(e,i),St(e,i)})),o.unfinished|=a,bt(t,e),A(t._zr.dom,e)}function yt(t,e){k(Lt,(function(i){i(t,e)}))}nt.resize=function(t){if(this._disposed)_t(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[$]=!0,i&&ot(this),at.update.call(this),this[$]=!1,ct.call(this,n),ht.call(this,n)}}},nt.showLoading=function(t,e){if(this._disposed)_t(this.id);else if(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rt[t]){var i=Rt[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},nt.hideLoading=function(){this._disposed?_t(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},nt.makeActionFromEvent=function(t){var e=a.extend({},t);return e.type=It[t.type],e},nt.dispatchAction=function(t,e){this._disposed?_t(this.id):(P(e)||(e={silent:!!e}),Et[t.type]&&this._model&&(this[$]?this._pendingActions.push(t):(ut.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&s.browser.weChat&&this._throttledZrFlush(),ct.call(this,e.silent),ht.call(this,e.silent))))},nt.appendData=function(t){if(this._disposed)_t(this.id);else{var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);n.appendData(t),this._scheduler.unfinished=!0}},nt.on=tt("on",!1),nt.off=tt("off",!1),nt.one=tt("one",!1);var xt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function _t(t){}function bt(t,e){var i=t._zr,n=i.storage,r=0;n.traverse((function(t){r++})),r>e.get("hoverLayerThreshold")&&!s.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse((function(t){t.useHoverLayer=!0}))}}))}function St(t,e){var i=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",i)}))}))}function Tt(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))}))}function wt(t){var e=t._coordSysMgr;return a.extend(new h(t),{getCoordinateSystems:a.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){while(e){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function At(){this.eventInfo}nt._initEvents=function(){k(xt,(function(t){var e=function(e){var i,n=this.getModel(),r=e.target,o="globalout"===t;if(o)i={};else if(r&&null!=r.dataIndex){var s=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(i=a.extend({},r.eventData));if(i){var l=i.componentType,u=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=i.seriesIndex);var c=l&&null!=u&&n.getComponent(l,u),h=c&&this["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:i,model:c,view:h},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),k(It,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},nt.isDisposed=function(){return this._disposed},nt.clear=function(){this._disposed?_t(this.id):this.setOption({series:[]},!0)},nt.dispose=function(){if(this._disposed)_t(this.id);else{this._disposed=!0,b.setAttribute(this.getDom(),Bt,"");var t=this._api,e=this._model;k(this._componentsViews,(function(i){i.dispose(e,t)})),k(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete Pt[this.id]}},a.mixin(it,u),At.prototype={constructor:At,normalizeQuery:function(t){var e={},i={},n={};if(a.isString(t)){var r=O(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a.each(t,(function(t,r){for(var a=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(i[r]=t,a=!0),a||(n[r]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a));function c(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},afterTrigger:function(){this.eventInfo=null}};var Et={},It={},Dt=[],Mt=[],Lt=[],Ct=[],kt={},Rt={},Pt={},Ot={},Nt=new Date-0,Ft=new Date-0,Bt="_echarts_instance_";function zt(t){var e=0,i=1,n=2,r="__connectUpdateStatus";function a(t,e){for(var i=0;i<t.length;i++){var n=t[i];n[r]=e}}k(It,(function(o,s){t._messageCenter.on(s,(function(o){if(Ot[t.group]&&t[r]!==e){if(o&&o.escapeConnect)return;var s=t.makeActionFromEvent(o),l=[];k(Pt,(function(e){e!==t&&e.group===t.group&&l.push(e)})),a(l,e),k(l,(function(t){t[r]!==i&&t.dispatchAction(s)})),a(l,n)}}))}))}function Vt(t,e,i){var n=jt(t);if(n)return n;var r=new it(t,e,i);return r.id="ec_"+Nt++,Pt[r.id]=r,b.setAttribute(t,Bt,r.id),zt(r),r}function Gt(t){if(a.isArray(t)){var e=t;t=null,k(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Ft++,k(e,(function(e){e.group=t}))}return Ot[t]=!0,t}function Ut(t){Ot[t]=!1}var Ht=Ut;function Wt(t){"string"===typeof t?t=Pt[t]:t instanceof it||(t=jt(t)),t instanceof it&&!t.isDisposed()&&t.dispose()}function jt(t){return Pt[b.getAttribute(t,Bt)]}function Kt(t){return Pt[t]}function Yt(t,e){kt[t]=e}function Xt(t){Mt.push(t)}function qt(t,e){ie(Dt,t,e,z)}function Zt(t){Lt.push(t)}function $t(t,e,i){"function"===typeof e&&(i=e,e="");var n=P(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,C(J.test(n)&&J.test(e)),Et[n]||(Et[n]={action:i,actionInfo:t}),It[e]=n}function Qt(t,e){d.register(t,e)}function Jt(t){var e=d.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function te(t,e){ie(Ct,t,e,H,"layout")}function ee(t,e){ie(Ct,t,e,K,"visual")}function ie(t,e,i,n,r){(R(e)||P(e))&&(i=e,e=n);var a=I.wrapStageHandler(i,r);return a.__prio=e,a.__raw=i,t.push(a),a}function ne(t,e){Rt[t]=e}function re(t){return v.extend(t)}function ae(t){return y.extend(t)}function oe(t){return m.extend(t)}function se(t){return x.extend(t)}function le(t){a.$override("createCanvas",t)}function ue(t,e,i){L.registerMap(t,e,i)}function ce(t){var e=L.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}ee(j,w),Xt(p),qt(G,g),ne("default",E),$t({type:"highlight",event:"highlight",update:"highlight"},a.noop),$t({type:"downplay",event:"downplay",update:"downplay"},a.noop),Yt("light",D),Yt("dark",M);var he={};e.version=N,e.dependencies=F,e.PRIORITY=Z,e.init=Vt,e.connect=Gt,e.disConnect=Ut,e.disconnect=Ht,e.dispose=Wt,e.getInstanceByDom=jt,e.getInstanceById=Kt,e.registerTheme=Yt,e.registerPreprocessor=Xt,e.registerProcessor=qt,e.registerPostUpdate=Zt,e.registerAction=$t,e.registerCoordinateSystem=Qt,e.getCoordinateSystemDimensions=Jt,e.registerLayout=te,e.registerVisual=ee,e.registerLoading=ne,e.extendComponentModel=re,e.extendComponentView=ae,e.extendSeriesModel=oe,e.extendChartView=se,e.setCanvasCreator=le,e.registerMap=ue,e.getMap=ce,e.dataTool=he;var de=i("b719");(function(){for(var t in de)de.hasOwnProperty(t)&&(e[t]=de[t])})()},"3f8e":function(t,e,i){var n=i("8727"),r=n.createElement,a=i("20c8"),o=i("9850"),s=i("1687"),l=i("e86a"),u=i("a73c"),c=i("76a5"),h=a.CMD,d=Array.prototype.join,f="none",p=Math.round,g=Math.sin,v=Math.cos,m=Math.PI,y=2*Math.PI,x=180/m,_=1e-4;function b(t){return p(1e4*t)/1e4}function S(t){return t<_&&t>-_}function T(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==f}function w(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==f}function A(t,e){e&&E(t,"transform","matrix("+d.call(e,",")+")")}function E(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function I(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function D(t,e,i,n){if(T(e,i)){var r=i?e.textFill:e.fill;r="transparent"===r?f:r,E(t,"fill",r),E(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else E(t,"fill",f);if(w(e,i)){var a=i?e.textStroke:e.stroke;a="transparent"===a?f:a,E(t,"stroke",a);var o=i?e.textStrokeWidth:e.lineWidth,s=!i&&e.strokeNoScale?n.getLineScale():1;E(t,"stroke-width",o/s),E(t,"paint-order",i?"stroke":"fill"),E(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var l=e.lineDash;l?(E(t,"stroke-dasharray",e.lineDash.join(",")),E(t,"stroke-dashoffset",p(e.lineDashOffset||0))):E(t,"stroke-dasharray",""),e.lineCap&&E(t,"stroke-linecap",e.lineCap),e.lineJoin&&E(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&E(t,"stroke-miterlimit",e.miterLimit)}else E(t,"stroke",f)}function M(t){for(var e=[],i=t.data,n=t.len(),r=0;r<n;){var a=i[r++],o="",s=0;switch(a){case h.M:o="M",s=2;break;case h.L:o="L",s=2;break;case h.Q:o="Q",s=4;break;case h.C:o="C",s=6;break;case h.A:var l=i[r++],u=i[r++],c=i[r++],d=i[r++],f=i[r++],_=i[r++],T=i[r++],w=i[r++],A=Math.abs(_),E=S(A-y)||(w?_>=y:-_>=y),I=_>0?_%y:_%y+y,D=!1;D=!!E||!S(A)&&I>=m===!!w;var M=b(l+c*v(f)),L=b(u+d*g(f));E&&(_=w?y-1e-4:1e-4-y,D=!0,9===r&&e.push("M",M,L));var C=b(l+c*v(f+_)),k=b(u+d*g(f+_));e.push("A",b(c),b(d),p(T*x),+D,+w,C,k);break;case h.Z:o="Z";break;case h.R:C=b(i[r++]),k=b(i[r++]);var R=b(i[r++]),P=b(i[r++]);e.push("M",C,k,"L",C+R,k,"L",C+R,k+P,"L",C,k+P,"L",C,k);break}o&&e.push(o);for(var O=0;O<s;O++)e.push(b(i[r++]))}return e.join(" ")}var L={brush:function(t){var e=t.style,i=t.__svgEl;i||(i=r("path"),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),n.subPixelOptimize=!1,t.buildPath(n,t.shape),t.__dirtyPath=!1;var a=M(n);a.indexOf("NaN")<0&&E(i,"d",a)}D(i,e,!1,t),A(i,t.transform),null!=e.text?F(t,t.getBoundingRect()):G(t)}},C={brush:function(t){var e=t.style,i=e.image;if(i instanceof HTMLImageElement){var n=i.src;i=n}if(i){var a=e.x||0,o=e.y||0,s=e.width,l=e.height,u=t.__svgEl;u||(u=r("image"),t.__svgEl=u),i!==t.__imageSrc&&(I(u,"href",i),t.__imageSrc=i),E(u,"width",s),E(u,"height",l),E(u,"x",a),E(u,"y",o),A(u,t.transform),null!=e.text?F(t,t.getBoundingRect()):G(t)}}},k={},R=new o,P={},O=[],N={left:"start",right:"end",center:"middle",middle:"middle"},F=function(t,e){var i=t.style,n=t.transform,a=t instanceof c||i.transformText;t.__dirty&&u.normalizeTextStyle(i,!0);var o=i.text;if(null!=o&&(o+=""),u.needDrawText(o,i)){null==o&&(o=""),!a&&n&&(R.copy(e),R.applyTransform(n),e=R);var s=t.__textSvgEl;s||(s=r("text"),t.__textSvgEl=s);var h=s.style,d=i.font||l.DEFAULT_FONT,f=s.__computedFont;d!==s.__styleFont&&(h.font=s.__styleFont=d,f=s.__computedFont=h.font);var p=i.textPadding,g=i.textLineHeight,v=t.__textCotentBlock;v&&!t.__dirtyText||(v=t.__textCotentBlock=l.parsePlainText(o,f,p,g,i.truncate));var m=v.outerHeight,y=v.lineHeight;u.getBoxPosition(P,t,i,e);var x=P.baseX,_=P.baseY,b=P.textAlign||"left",S=P.textVerticalAlign;B(s,a,n,i,e,x,_);var T=l.adjustTextY(_,m,S),w=x,A=T;p&&(w=z(x,b,p),A+=p[0]),A+=y/2,D(s,i,!0,t);var E=v.canCacheByTextString,I=t.__tspanList||(t.__tspanList=[]),M=I.length;if(E&&t.__canCacheByTextString&&t.__text===o){if(t.__dirtyText&&M)for(var L=0;L<M;++L)V(I[L],b,w,A+L*y)}else{t.__text=o,t.__canCacheByTextString=E;var C=v.lines,k=C.length;for(L=0;L<k;L++){var O=I[L],N=C[L];O?O.__zrText!==N&&(O.innerHTML="",O.appendChild(document.createTextNode(N))):(O=I[L]=r("tspan"),s.appendChild(O),O.appendChild(document.createTextNode(N))),V(O,b,w,A+L*y)}if(M>k){for(;L<M;L++)s.removeChild(I[L]);I.length=k}}}};function B(t,e,i,n,r,a,o){s.identity(O),e&&i&&s.copy(O,i);var l=n.textRotation;if(r&&l){var u=n.textOrigin;"center"===u?(a=r.width/2+r.x,o=r.height/2+r.y):u&&(a=u[0]+r.x,o=u[1]+r.y),O[4]-=a,O[5]-=o,s.rotate(O,O,l),O[4]+=a,O[5]+=o}A(t,O)}function z(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function V(t,e,i,n){E(t,"dominant-baseline","middle"),E(t,"text-anchor",N[e]),E(t,"x",i),E(t,"y",n)}function G(t){t&&t.__textSvgEl&&(t.__textSvgEl.parentNode&&t.__textSvgEl.parentNode.removeChild(t.__textSvgEl),t.__textSvgEl=null,t.__tspanList=[],t.__text=null)}k.drawRectText=F,k.brush=function(t){var e=t.style;null!=e.text?F(t,!1):G(t)},e.path=L,e.image=C,e.text=k},"401b":function(t,e){var i="undefined"===typeof Float32Array?Array:Float32Array;function n(t,e){var n=new i(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function a(t){var e=new i(2);return e[0]=t[0],e[1]=t[1],e}function o(t,e,i){return t[0]=e,t[1]=i,t}function s(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function l(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function u(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function c(t){return Math.sqrt(d(t))}var h=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var f=d;function p(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function g(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function v(t,e){return t[0]*e[0]+t[1]*e[1]}function m(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function y(t,e){var i=c(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function x(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=x;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var S=b;function T(t,e){return t[0]=-e[0],t[1]=-e[1],t}function w(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function A(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function E(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function I(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}e.create=n,e.copy=r,e.clone=a,e.set=o,e.add=s,e.scaleAndAdd=l,e.sub=u,e.len=c,e.length=h,e.lenSquare=d,e.lengthSquare=f,e.mul=p,e.div=g,e.dot=v,e.scale=m,e.normalize=y,e.distance=x,e.dist=_,e.distanceSquare=b,e.distSquare=S,e.negate=T,e.lerp=w,e.applyTransform=A,e.min=E,e.max=I},"408a":function(t,e,i){var n=i("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+t}},"414c":function(t,e,i){var n=i("3a56"),r=n.extend({type:"dataZoom.select"});t.exports=r},"41ef":function(t,e,i){var n=i("d51b"),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 a(t){return t=Math.round(t),t<0?0:t>255?255:t}function o(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function u(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function c(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function h(t,e,i){return t+(e-t)*i}function d(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new n(20),g=null;function v(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function m(t,e){if(t){e=e||[];var i=p.get(t);if(i)return f(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in r)return f(e,r[n]),v(t,e),e;if("#"!==n.charAt(0)){var a=n.indexOf("("),o=n.indexOf(")");if(-1!==a&&o+1===n.length){var s=n.substr(0,a),c=n.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(4!==c.length)return void d(e,0,0,0,1);h=u(c.pop());case"rgb":return 3!==c.length?void d(e,0,0,0,1):(d(e,l(c[0]),l(c[1]),l(c[2]),h),v(t,e),e);case"hsla":return 4!==c.length?void d(e,0,0,0,1):(c[3]=u(c[3]),y(c,e),v(t,e),e);case"hsl":return 3!==c.length?void d(e,0,0,0,1):(y(c,e),v(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=4095?(d(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),v(t,e),e):void d(e,0,0,0,1)}if(7===n.length){g=parseInt(n.substr(1),16);return g>=0&&g<=16777215?(d(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),v(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=u(t[1]),r=u(t[2]),o=r<=.5?r*(n+1):r+n-r*n,s=2*r-o;return e=e||[],d(e,a(255*c(s,o,i+1/3)),a(255*c(s,o,i)),a(255*c(s,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function x(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function _(t,e){var i=m(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return D(i,4===i.length?"rgba":"rgb")}}function b(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function S(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),l=e[r],u=e[o],c=n-r;return i[0]=a(h(l[0],u[0],c)),i[1]=a(h(l[1],u[1],c)),i[2]=a(h(l[2],u[2],c)),i[3]=s(h(l[3],u[3],c)),i}}var T=S;function w(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),l=m(e[r]),u=m(e[o]),c=n-r,d=D([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return i?{color:d,leftIndex:r,rightIndex:o,value:n}:d}}var A=w;function E(t,e,i,n){if(t=m(t),t)return t=x(t),null!=e&&(t[0]=o(e)),null!=i&&(t[1]=u(i)),null!=n&&(t[2]=u(n)),D(y(t),"rgba")}function I(t,e){if(t=m(t),t&&null!=e)return t[3]=s(e),D(t,"rgba")}function D(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}e.parse=m,e.lift=_,e.toHex=b,e.fastLerp=S,e.fastMapToColor=T,e.lerp=w,e.mapToColor=A,e.modifyHSL=E,e.modifyAlpha=I,e.stringify=D},"42e5":function(t,e){var i=function(t){this.colorStops=t||[]};i.prototype={constructor:i,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var n=i;t.exports=n},"42f6":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("22d1"),o=i("07d7"),s=i("82f9"),l=i("eda2"),u=i("3842"),c=i("2306"),h=i("133d"),d=i("f934"),f=i("4319"),p=i("17d6"),g=i("697e"),v=i("ff2e"),m=i("e0d3"),y=m.getTooltipRenderMode,x=r.bind,_=r.each,b=u.parsePercent,S=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),T=n.extendComponentView({type:"tooltip",init:function(t,e){if(!a.node){var i,n=t.getComponent("tooltip"),r=n.get("renderMode");this._renderMode=y(r),"html"===this._renderMode?(i=new o(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)}),this._newLine="<br/>"):(i=new s(e),this._newLine="\n"),this._tooltipContent=i}},render:function(t,e,i){if(!a.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");p.register("itemTooltip",this._api,x((function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!a.node){var r=A(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=S;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},r)}else if(o)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(t,e,i,n))return;var l=h(n,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,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(t,e,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(t,e,i,n){var r=n.seriesIndex,a=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s){var l=s.getData();t=w([l.getItemModel(a),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=r.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],u=w([e.tooltipOption,n]),c=this._renderMode,h=this._newLine,d={};_(t,(function(t){_(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var u=v.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(o){var l=i.getSeriesByIndex(o.seriesIndex),h=o.dataIndexInside,f=l&&l.getDataParams(h);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=g.getAxisRawValue(e.axis,n),f.axisValueLabel=u,f){s.push(f);var p,v=l.formatTooltip(h,!0,null,c);if(r.isObject(v)){p=v.html;var m=v.markers;r.merge(d,m)}else p=v;a.push(p)}}));var f=u;"html"!==c?o.push(a.join(h)):o.push((f?l.encodeHTML(f)+h:"")+a.join(h))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,f,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(u,o,s,Math.random(),a[0],a[1],f,void 0,d)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,o=n.getSeriesByIndex(a),s=e.dataModel||o,l=e.dataIndex,u=e.dataType,c=s.getData(u),h=w([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var f,p,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);r.isObject(v)?(f=v.html,p=v.markers):(f=v,p=null);var m="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,f,g,m,t.offsetX,t.offsetY,t.position,t.target,p)})),i({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"===typeof n){var r=n;n={content:r,formatter:r}}var a=new f(n,this._tooltipModel,this._ecModel),o=a.get("content"),s=Math.random();this._showOrMove(a,(function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,r,a,o,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var d=e;if(h&&"string"===typeof h)d=l.formatTpl(h,i,!0);else if("function"===typeof h){var f=x((function(e,n){e===this._ticket&&(c.setContent(n,u,t),this._updatePosition(t,o,r,a,c,i,s))}),this);this._ticket=n,d=h(i,n,f)}c.setContent(d,u,t),c.show(t),this._updatePosition(t,o,r,a,c,i,s)}},_updatePosition:function(t,e,i,n,a,o,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=a.getSize(),h=t.get("align"),f=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof e&&(e=e([i,n],o,a.el,p,{viewSize:[l,u],contentSize:c.slice()})),r.isArray(e))i=b(e[0],l),n=b(e[1],u);else if(r.isObject(e)){e.width=c[0],e.height=c[1];var g=d.getLayoutRect(e,{width:l,height:u});i=g.x,n=g.y,h=null,f=null}else if("string"===typeof e&&s){var v=D(e,p,c);i=v[0],n=v[1]}else{v=E(i,n,a,l,u,h?null:20,f?null:20);i=v[0],n=v[1]}if(h&&(i-=M(h)?c[0]/2:"right"===h?c[0]:0),f&&(n-=M(f)?c[1]/2:"bottom"===f?c[1]:0),t.get("confine")){v=I(i,n,a,l,u);i=v[0],n=v[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&_(e,(function(e,n){var r=e.dataByAxis||{},a=t[n]||{},o=a.dataByAxis||[];i&=r.length===o.length,i&&_(r,(function(t,e){var n=o[e]||{},r=t.seriesDataIndices||[],a=n.seriesDataIndices||[];i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===a.length,i&&_(r,(function(t,e){var n=a[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){a.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",e))}});function w(t){var e=t.pop();while(t.length){var i=t.pop();i&&(f.isInstance(i)&&(i=i.get("tooltip",!0)),"string"===typeof i&&(i={formatter:i}),e=new f(i,e,e.ecModel))}return e}function A(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function E(t,e,i,n,r,a,o){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=a&&(t+l+a>n?t-=l+a:t+=a),null!=o&&(e+u+o>r?e-=u+o:e+=o),[t,e]}function I(t,e,i,n,r){var a=i.getOuterSize(),o=a.width,s=a.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function D(t,e,i){var n=i[0],r=i[1],a=5,o=0,s=0,l=e.width,u=e.height;switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function M(t){return"center"===t||"middle"===t}t.exports=T},4319:function(t,e,i){var n=i("6d8b"),r=i("22d1"),a=i("e0d3"),o=a.makeInner,s=i("625e"),l=s.enableClassExtend,u=s.enableClassCheck,c=i("3901"),h=i("9bdb"),d=i("fe21"),f=i("551f"),p=n.mixin,g=o();function v(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function m(t,e,i){for(var n=0;n<e.length;n++)if(e[n]&&(t=t&&"object"===typeof t?t[e[n]]:null,null==t))break;return null==t&&i&&(t=i.get(e)),t}function y(t,e){var i=g(t).getParent;return i?i.call(t,e):t.parentModel}v.prototype={constructor:v,init:null,mergeOption:function(t){n.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:m(this.option,this.parsePath(t),!e&&y(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],r=!e&&y(this,t);return null==n&&r&&(n=r.getShallow(t)),n},getModel:function(t,e){var i,n=null==t?this.option:m(this.option,t=this.parsePath(t));return e=e||(i=y(this,t))&&i.getModel(t),new v(n,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(n.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"===typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){g(this).getParent=t},isAnimationEnabled:function(){if(!r.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},l(v),u(v),p(v,c),p(v,h),p(v,d),p(v,f);var x=v;t.exports=x},4338:function(t,e,i){var n=i("4bf6"),r=i("2039");function a(t,e){var i=[];return t.eachComponent("singleAxis",(function(r,a){var o=new n(r,t,e);o.name="single_"+a,o.resize(r,e),r.coordinateSystem=o,i.push(o)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}})),i}r.register("single",{create:a,dimensions:n.prototype.dimensions})},"43b8":function(t,e,i){var n=i("2449"),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"}}}});t.exports=r},4411:function(t,e,i){for(var n=i("3eba"),r=i("55ac"),a=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<o.length;s++)n.registerAction({type:o[s],update:"updateView"},a);n.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function i(e,i){var n=["treemapZoomToNode","treemapRootToNode"],a=r.retrieveTargetInfo(t,n,e);if(a){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,a.node)?"rollUp":"drillDown"),e.resetViewRoot(a.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},i)}))},4436:function(t,e,i){var n=i("74cb");function r(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var r=this.easing,a="string"===typeof r?n[r]:r,o="function"===typeof a?a(i):i;return this.fire("frame",o),1===i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var a=r;t.exports=a},"44fb":function(t,e,i){var n=i("3eba"),r=i("55ac"),a="sunburstRootToNode";n.registerAction({type:a,update:"updateView"},(function(t,e){function i(e,i){var n=r.retrieveTargetInfo(t,[a],e);if(n){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)}));var o="sunburstHighlight";n.registerAction({type:o,update:"updateView"},(function(t,e){function i(e,i){var n=r.retrieveTargetInfo(t,[o],e);n&&(t.highlight=n.node)}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)}));var s="sunburstUnhighlight";n.registerAction({type:s,update:"updateView"},(function(t,e){function i(e,i){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)}))},4527:function(t,e,i){var n=i("2306"),r=i("6d8b");function a(t,e,i){n.Group.call(this),this._createPolyline(t,e,i)}var o=a.prototype;o._createPolyline=function(t,e,i){var r=t.getItemLayout(e),a=new n.Polyline({shape:{points:r}});this.add(a),this._updateCommonStl(t,e,i)},o.updateData=function(t,e,i){var r=t.hostModel,a=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};n.updateProps(a,o,r,e),this._updateCommonStl(t,e,i)},o._updateCommonStl=function(t,e,i){var a=this.childAt(0),o=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=i&&i.lineStyle,u=i&&i.hoverLineStyle;i&&!t.hasItemOption||(l=o.getModel("lineStyle").getLineStyle(),u=o.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),a.hoverStyle=u,n.setHoverStyle(this)},o.updateLayout=function(t,e){var i=this.childAt(0);i.setShape("points",t.getItemLayout(e))},r.inherits(a,n.Group);var s=a;t.exports=s},4573:function(t,e,i){var n=i("cbe5"),r=n.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}});t.exports=r},4650:function(t,e,i){var n=i("3eba"),r=i("6d8b");function a(t,e,i){var n,a={},o="toggleSelected"===t;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var s=i.getData();r.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&n:a[e]=n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:a}:{name:e.name,selected:a}}n.registerAction("legendToggleSelect","legendselectchanged",r.curry(a,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",r.curry(a,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",r.curry(a,"inverseSelect")),n.registerAction("legendSelect","legendselected",r.curry(a,"select")),n.registerAction("legendUnSelect","legendunselected",r.curry(a,"unSelect"))},"471e":function(t,e){function i(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}t.exports=i},4784:function(t,e,i){var n=i("3eba"),r=i("f706"),a=i("c8ef"),o=i("1687"),s=i("87c3"),l=n.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(a)},render:function(t,e,i){var n=t.getData(),r=this._symbolDraw;r.updateData(n),this.group.add(r.group)},updateTransform:function(t,e,i){var n=t.getData();this.group.dirty();var r=s().reset(t);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=o.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});t.exports=l},"480e":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("2306"),o=i("cd84"),s=i("6d8b");function l(t,e,i){var n=t[1]-t[0];e=s.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}));var r=e.length,a=0;return function(t){for(var n=a;n<r;n++){var o=e[n].interval;if(o[0]<=t&&t<=o[1]){a=n;break}}if(n===r)for(n=a-1;n>=0;n--){o=e[n].interval;if(o[0]<=t&&t<=o[1]){a=n;break}}return n>=0&&n<r&&i[n]}}function u(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function c(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var h=r.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):c(r)&&this._renderOnGeo(r,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){var r=e.coordinateSystem;r&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,r){var o,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),h=u.getAxis("y");o=c.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,f=t.getData(),p="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=t.getModel(p).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(v),b=t.getModel(m),S=u.type,T="cartesian2d"===S?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],w=i;w<n;w++){var A;if("cartesian2d"===S){if(isNaN(f.get(T[2],w)))continue;var E=u.dataToPoint([f.get(T[0],w),f.get(T[1],w)]);A=new a.Rect({shape:{x:Math.floor(Math.round(E[0])-o/2),y:Math.floor(Math.round(E[1])-l/2),width:Math.ceil(o),height:Math.ceil(l)},style:{fill:f.getItemVisual(w,"color"),opacity:f.getItemVisual(w,"opacity")}})}else{if(isNaN(f.get(T[1],w)))continue;A=new a.Rect({z2:1,shape:u.dataToRect([f.get(T[0],w)]).contentShape,style:{fill:f.getItemVisual(w,"color"),opacity:f.getItemVisual(w,"opacity")}})}var I=f.getItemModel(w);f.hasItemOption&&(y=I.getModel(p).getItemStyle(["color"]),x=I.getModel(g).getItemStyle(),_=I.getModel(v),b=I.getModel(m));var D=t.getRawValue(w),M="-";D&&null!=D[2]&&(M=D[2]),a.setLabelStyle(y,x,_,b,{labelFetcher:t,labelDataIndex:w,defaultText:M,isRectText:!0}),A.setStyle(y),a.setHoverStyle(A,f.hasItemOption?x:s.extend({},x)),A.incremental=r,r&&(A.useHoverLayer=!0),d.add(A),f.setItemGraphicEl(w,A)}},_renderOnGeo:function(t,e,i,n){var r=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,c=e.getData(),h=this._hmLayer||this._hmLayer||new o;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),f=t.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,x=m-g,_=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],b=c.mapArray(_,(function(e,i,n){var r=t.dataToPoint([e,i]);return r[0]-=p,r[1]-=g,r.push(n),r})),S=i.getExtent(),T="visualMap.continuous"===i.type?u(S,i.option.range):l(S,i.getPieceList(),i.option.selected);h.update(b,y,x,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},T);var w=new a.Image({style:{width:y,height:x,x:p,y:g,image:h.canvas},silent:!0});this.group.add(w)},dispose:function(){}});t.exports=h},"480f":function(t,e,i){var n=i("4a3f"),r=i("401b"),a=i("53f3"),o=a.getSymbolSize,s=[],l=[],u=[],c=n.quadraticAt,h=r.distSquare,d=Math.abs;function f(t,e,i){for(var n,r=t[0],a=t[1],o=t[2],f=1/0,p=i*i,g=.1,v=.1;v<=.9;v+=.1){s[0]=c(r[0],a[0],o[0],v),s[1]=c(r[1],a[1],o[1],v);var m=d(h(s,e)-p);m<f&&(f=m,n=v)}for(var y=0;y<32;y++){var x=n+g;l[0]=c(r[0],a[0],o[0],n),l[1]=c(r[1],a[1],o[1],n),u[0]=c(r[0],a[0],o[0],x),u[1]=c(r[1],a[1],o[1],x);m=h(l,e)-p;if(d(m)<.01)break;var _=h(u,e)-p;g/=2,m<0?_>=0?n+=g:n-=g:_>=0?n-=g:n+=g}return n}function p(t,e){var i=[],a=n.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];e/=2,t.eachEdge((function(t,n){var c=t.getLayout(),h=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");c.__original||(c.__original=[r.clone(c[0]),r.clone(c[1])],c[2]&&c.__original.push(r.clone(c[2])));var p=c.__original;if(null!=c[2]){if(r.copy(s[0],p[0]),r.copy(s[1],p[2]),r.copy(s[2],p[1]),h&&"none"!==h){var g=o(t.node1),v=f(s,p[0],g*e);a(s[0][0],s[1][0],s[2][0],v,i),s[0][0]=i[3],s[1][0]=i[4],a(s[0][1],s[1][1],s[2][1],v,i),s[0][1]=i[3],s[1][1]=i[4]}if(d&&"none"!==d){g=o(t.node2),v=f(s,p[1],g*e);a(s[0][0],s[1][0],s[2][0],v,i),s[1][0]=i[1],s[2][0]=i[2],a(s[0][1],s[1][1],s[2][1],v,i),s[1][1]=i[1],s[2][1]=i[2]}r.copy(c[0],s[0]),r.copy(c[1],s[2]),r.copy(c[2],s[1])}else{if(r.copy(l[0],p[0]),r.copy(l[1],p[1]),r.sub(u,l[1],l[0]),r.normalize(u,u),h&&"none"!==h){g=o(t.node1);r.scaleAndAdd(l[0],l[0],u,g*e)}if(d&&"none"!==d){g=o(t.node2);r.scaleAndAdd(l[1],l[1],u,-g*e)}r.copy(c[0],l[0]),r.copy(c[1],l[1])}}))}t.exports=p},"48a9":function(t,e,i){var n=i("6d8b"),r=i("42e5"),a=function(t,e,i,n,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,r.call(this,a)};a.prototype={constructor:a},n.inherits(a,r);var o=a;t.exports=o},"48ac":function(t,e,i){var n=i("3eba"),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}}}),a=r;t.exports=a},"48c7":function(t,e,i){var n=i("6d8b"),r=i("6cb7"),a=i("9e47"),o=i("2023"),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.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(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,o);var u={offset:0};a("x",s,l,u),a("y",s,l,u);var c=s;t.exports=c},4942:function(t,e,i){var n=i("2cf4c"),r=n.debugMode,a=function(){};1===r&&(a=console.error);var o=a;t.exports=o},"49e8":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("d81e"),o=a.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var a=o(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&r.each(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))}))},"4a01":function(t,e,i){var n=i("6d8b"),r=i("1fab"),a=i("607d"),o=i("a4fe");function s(t){this.pointerChecker,this._zr=t,this._opt={};var e=n.bind,i=e(l,this),a=e(u,this),o=e(c,this),s=e(h,this),f=e(d,this);r.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,r){this.disable(),this._opt=n.defaults(n.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",f))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(t){if(!(a.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function u(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,r=this._y,s=e-n,l=i-r;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&a.stop(t.event),p(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:r,newX:e,newY:i})}}function c(t){a.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function h(t){var e=g("zoomOnMouseWheel",t,this._opt),i=g("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,r=Math.abs(n),a=t.offsetX,o=t.offsetY;if(0!==n&&(e||i)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=n>0?s:1/s;f(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:o})}if(i){var u=Math.abs(n),c=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:a,originY:o})}}}function d(t){if(!o.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function f(t,e,i,n,r){t.pointerChecker&&t.pointerChecker(n,r.originX,r.originY)&&(a.stop(n.event),p(t,e,i,n,r))}function p(t,e,i,r,a){a.isAvailableBehavior=n.bind(g,null,i,r),t.trigger(e,a)}function g(t,e,i){var r=i[t];return!t||r&&(!n.isString(r)||e.event[r+"Key"])}n.mixin(s,r);var v=s;t.exports=v},"4a3f":function(t,e,i){var n=i("401b"),r=n.create,a=n.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,u=1e-4,c=s(3),h=1/3,d=r(),f=r(),p=r();function g(t){return t>-l&&t<l}function v(t){return t>l||t<-l}function m(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function y(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function x(t,e,i,n,r,a){var l=n+3*(e-i)-t,u=3*(i-2*e+t),d=3*(e-t),f=t-r,p=u*u-3*l*d,v=u*d-9*l*f,m=d*d-3*u*f,y=0;if(g(p)&&g(v))if(g(u))a[0]=0;else{var x=-d/u;x>=0&&x<=1&&(a[y++]=x)}else{var _=v*v-4*p*m;if(g(_)){var b=v/p,S=(x=-u/l+b,-b/2);x>=0&&x<=1&&(a[y++]=x),S>=0&&S<=1&&(a[y++]=S)}else if(_>0){var T=s(_),w=p*u+1.5*l*(-v+T),A=p*u+1.5*l*(-v-T);w=w<0?-o(-w,h):o(w,h),A=A<0?-o(-A,h):o(A,h);x=(-u-(w+A))/(3*l);x>=0&&x<=1&&(a[y++]=x)}else{var E=(2*p*u-3*l*v)/(2*s(p*p*p)),I=Math.acos(E)/3,D=s(p),M=Math.cos(I),L=(x=(-u-2*D*M)/(3*l),S=(-u+D*(M+c*Math.sin(I)))/(3*l),(-u+D*(M-c*Math.sin(I)))/(3*l));x>=0&&x<=1&&(a[y++]=x),S>=0&&S<=1&&(a[y++]=S),L>=0&&L<=1&&(a[y++]=L)}}return y}function _(t,e,i,n,r){var a=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,l=3*e-3*t,u=0;if(g(o)){if(v(a)){var c=-l/a;c>=0&&c<=1&&(r[u++]=c)}}else{var h=a*a-4*o*l;if(g(h))r[0]=-a/(2*o);else if(h>0){var d=s(h),f=(c=(-a+d)/(2*o),(-a-d)/(2*o));c>=0&&c<=1&&(r[u++]=c),f>=0&&f<=1&&(r[u++]=f)}}return u}function b(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function S(t,e,i,n,r,o,l,c,h,g,v){var y,x,_,b,S,T=.005,w=1/0;d[0]=h,d[1]=g;for(var A=0;A<1;A+=.05)f[0]=m(t,i,r,l,A),f[1]=m(e,n,o,c,A),b=a(d,f),b<w&&(y=A,w=b);w=1/0;for(var E=0;E<32;E++){if(T<u)break;x=y-T,_=y+T,f[0]=m(t,i,r,l,x),f[1]=m(e,n,o,c,x),b=a(f,d),x>=0&&b<w?(y=x,w=b):(p[0]=m(t,i,r,l,_),p[1]=m(e,n,o,c,_),S=a(p,d),_<=1&&S<w?(y=_,w=S):T*=.5)}return v&&(v[0]=m(t,i,r,l,y),v[1]=m(e,n,o,c,y)),s(w)}function T(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function w(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function A(t,e,i,n,r){var a=t-2*e+i,o=2*(e-t),l=t-n,u=0;if(g(a)){if(v(o)){var c=-l/o;c>=0&&c<=1&&(r[u++]=c)}}else{var h=o*o-4*a*l;if(g(h)){c=-o/(2*a);c>=0&&c<=1&&(r[u++]=c)}else if(h>0){var d=s(h),f=(c=(-o+d)/(2*a),(-o-d)/(2*a));c>=0&&c<=1&&(r[u++]=c),f>=0&&f<=1&&(r[u++]=f)}}return u}function E(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function I(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function D(t,e,i,n,r,o,l,c,h){var g,v=.005,m=1/0;d[0]=l,d[1]=c;for(var y=0;y<1;y+=.05){f[0]=T(t,i,r,y),f[1]=T(e,n,o,y);var x=a(d,f);x<m&&(g=y,m=x)}m=1/0;for(var _=0;_<32;_++){if(v<u)break;var b=g-v,S=g+v;f[0]=T(t,i,r,b),f[1]=T(e,n,o,b);x=a(f,d);if(b>=0&&x<m)g=b,m=x;else{p[0]=T(t,i,r,S),p[1]=T(e,n,o,S);var w=a(p,d);S<=1&&w<m?(g=S,m=w):v*=.5}}return h&&(h[0]=T(t,i,r,g),h[1]=T(e,n,o,g)),s(m)}e.cubicAt=m,e.cubicDerivativeAt=y,e.cubicRootAt=x,e.cubicExtrema=_,e.cubicSubdivide=b,e.cubicProjectPoint=S,e.quadraticAt=T,e.quadraticDerivativeAt=w,e.quadraticRootAt=A,e.quadraticExtremum=E,e.quadraticSubdivide=I,e.quadraticProjectPoint=D},"4a9d":function(t,e,i){var n=i("dcb3"),r=i("ff2e"),a=i("0156"),o=i("6679"),s=n.extend({makeElOption:function(t,e,i,n,o){var s=i.axis,c=s.grid,h=n.get("type"),d=l(c,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(e,!0));if(h&&"none"!==h){var p=r.buildElStyle(n),g=u[h](s,f,d);g.style=p,t.graphicKey=g.type,t.pointer=g}var v=a.layout(c.model,i);r.buildCartesianSingleLabelElOption(e,t,v,i,n,o)},getHandleTransform:function(t,e,i){var n=a.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var r=i.axis,a=r.grid,o=r.getGlobalExtent(!0),s=l(a,r).getOtherAxis(r).getGlobalExtent(),u="x"===r.dim?0:1,c=t.position;c[u]+=e[u],c[u]=Math.min(o[1],c[u]),c[u]=Math.max(o[0],c[u]);var h=(s[1]+s[0])/2,d=[h,h];d[u]=c[u];var f=[{verticalAlign:"middle"},{align:"center"}];return{position:c,rotation:t.rotation,cursorPoint:d,tooltipOption:f[u]}}});function l(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var u={line:function(t,e,i){var n=r.makeLineShape([e,i[0]],[e,i[1]],c(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),a=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([e-n/2,i[0]],[n,a],c(t))}}};function c(t){return"x"===t.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var h=s;t.exports=h},"4aa2":function(t,e,i){var n=i("cbe5"),r=i("897a"),a=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(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),c=Math.sin(o);t.moveTo(u*r+i,c*r+n),t.lineTo(u*a+i,c*a+n),t.arc(i,n,a,o,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,l),t.closePath()}});t.exports=a},"4ab1":function(t,e,i){var n=i("8727"),r=n.createElement,a=i("6d8b"),o=i("cbe5"),s=i("0da8"),l=i("76a5"),u=i("3f8e"),c=u.path,h=u.image,d=u.text,f="0",p="1";function g(t,e,i,n,r){this._zrId=t,this._svgRoot=e,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(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?(i=e.insertBefore(this.createElement("defs"),e.firstChild),i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},g.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"===typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},g.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},g.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},g.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return a.each(this._tagNames,(function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))})),e},g.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;a.each(t,(function(t){t[e._markLabel]=f}))},g.prototype.markUsed=function(t){t&&(t[this._markLabel]=p)},g.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;a.each(e,(function(e){e[i._markLabel]!==p&&t.removeChild(e)}))}},g.prototype.getSvgProxy=function(t){return t instanceof o?c:t instanceof s?h:t instanceof l?d:c},g.prototype.getTextSvgElement=function(t){return t.__textSvgEl},g.prototype.getSvgElement=function(t){return t.__svgEl};var v=g;t.exports=v},"4b08":function(t,e,i){var n=i("7dcf"),r=n.extend({type:"dataZoom.select"});t.exports=r},"4bf6":function(t,e,i){var n=i("66fc"),r=i("697e"),a=i("f934"),o=a.getLayoutRect,s=i("6d8b"),l=s.each;function u(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}u.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:u,_init:function(t,e,i){var a=this.dimension,o=new n(a,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===o.type;o.onBand=s&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();l(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=o({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(n[r],n[1-r]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[r]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-r]=0===r?i.y+i.height/2:i.x+i.width/2,n}};var c=u;t.exports=c},"4c86":function(t,e,i){var n=i("6d8b"),r=n.each,a=i("bda7"),o=i("e0d3"),s=o.makeInner,l=i("320a"),u=i("1792"),c=i("6bd4"),h=i("a7f2"),d=s(),f={load:function(t,e,i){var n=d(e).parsed;if(n)return n;var o,s=e.specialAreas||{},f=e.geoJSON;try{o=f?a(f,i):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return l(t,o),r(o,(function(e){var i=e.name;u(t,e),c(t,e),h(t,e);var n=s[i];n&&e.transformTo(n.left,n.top,n.width,n.height)})),d(e).parsed={regions:o,boundingRect:p(o)}}};function p(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();e=e||n.clone(),e.union(n)}return e}t.exports=f},"4c99":function(t,e,i){var n=i("cccd"),r=["itemStyle","borderColor"],a=["itemStyle","borderColor0"],o=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(t,e){var i=t.getData();if(i.setVisual({legendSymbol:"roundRect",colorP:u(1,t),colorN:u(-1,t),borderColorP:c(1,t),borderColorN:c(-1,t)}),!e.isSeriesFiltered(t)){var n=t.pipelineContext.large;return!n&&{progress:l}}function l(t,e){var i;while(null!=(i=t.next())){var n=e.getItemModel(i),r=e.getItemLayout(i).sign;e.setItemVisual(i,{color:u(r,n),borderColor:c(r,n)})}}function u(t,e){return e.get(t>0?o:s)}function c(t,e){return e.get(t>0?r:a)}}};t.exports=l},"4d62":function(t,e,i){var n=i("2306"),r=i("6d8b"),a=i("e887");function o(t,e){n.Group.call(this);var i=new n.Polygon,r=new n.Polyline,a=new n.Text;this.add(i),this.add(r),this.add(a),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,a.ignore=a.hoverIgnore):(r.ignore=r.normalIgnore,a.ignore=a.normalIgnore)},this.updateData(t,e,!0)}var s=o.prototype,l=["itemStyle","opacity"];s.updateData=function(t,e,i){var a=this.childAt(0),o=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,a.useStyle({}),i?(a.setShape({points:u.points}),a.setStyle({opacity:0}),n.initProps(a,{style:{opacity:c}},o,e)):n.updateProps(a,{style:{opacity:c},shape:{points:u.points}},o,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");a.setStyle(r.defaults({lineJoin:"round",fill:d},h.getItemStyle(["opacity"]))),a.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),n.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),r=this.childAt(2),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"color");n.updateProps(i,{shape:{points:l.linePoints||l.linePoints}},a,e),n.updateProps(r,{style:{x:l.x,y:l.y}},a,e),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var c=o.getModel("label"),h=o.getModel("emphasis.label"),d=o.getModel("labelLine"),f=o.getModel("emphasis.labelLine");u=t.getItemVisual(e,"color");n.setLabelStyle(r.style,r.hoverStyle={},c,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!c.get("show"),r.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!d.get("show"),i.hoverIgnore=!f.get("show"),i.setStyle({stroke:u}),i.setStyle(d.getModel("lineStyle").getLineStyle()),i.hoverStyle=f.getModel("lineStyle").getLineStyle()},r.inherits(o,n.Group);var u=a.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),r=this._data,a=this.group;n.diff(r).add((function(t){var e=new o(n,t);n.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var i=r.getItemGraphicEl(e);i.updateData(n,t),a.add(i),n.setItemGraphicEl(t,i)})).remove((function(t){var e=r.getItemGraphicEl(t);a.remove(e)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=u;t.exports=c},"4d63":function(t,e,i){var n=i("83ab"),r=i("da84"),a=i("94ca"),o=i("7156"),s=i("9bf2").f,l=i("241c").f,u=i("44e7"),c=i("ad6d"),h=i("9f7f"),d=i("6eeb"),f=i("d039"),p=i("69f3").set,g=i("2626"),v=i("b622"),m=v("match"),y=r.RegExp,x=y.prototype,_=/a/g,b=/a/g,S=new y(_)!==_,T=h.UNSUPPORTED_Y,w=n&&a("RegExp",!S||T||f((function(){return b[m]=!1,y(_)!=_||y(b)==b||"/a/i"!=y(_,"i")})));if(w){var A=function(t,e){var i,n=this instanceof A,r=u(t),a=void 0===e;if(!n&&r&&t.constructor===A&&a)return t;S?r&&!a&&(t=t.source):t instanceof A&&(a&&(e=c.call(t)),t=t.source),T&&(i=!!e&&e.indexOf("y")>-1,i&&(e=e.replace(/y/g,"")));var s=o(S?new y(t,e):y(t,e),n?this:x,A);return T&&i&&p(s,{sticky:i}),s},E=function(t){t in A||s(A,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},I=l(y),D=0;while(I.length>D)E(I[D++]);x.constructor=A,A.prototype=x,d(r,"RegExp",A)}g("RegExp")},"4d85":function(t,e,i){var n=i("e46b"),r=i("4f85"),a=r.extend({type:"series.gauge",getInitialData:function(t,e){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}}}),o=a;t.exports=o},"4d90":function(t,e,i){"use strict";var n=i("23e7"),r=i("0ccb").start,a=i("9a0c");n({target:"String",proto:!0,forced:a},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"4e08":function(t,e,i){(function(t){var i;"undefined"!==typeof window?i=window.__DEV__:"undefined"!==typeof t&&(i=t.__DEV__),"undefined"===typeof i&&(i=!0);var n=i;e.__DEV__=n}).call(this,i("c8ba"))},"4e10":function(t,e,i){var n=i("6d8b"),r=i("e46b"),a=i("4f85"),o=i("eda2"),s=o.encodeHTML,l=o.addCommas,u=i("7023"),c=i("2b17"),h=c.retrieveRawAttr,d=i("5b87"),f=i("0f99"),p=f.makeSeriesEncodeForNameBased,g=a.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var e=r(this,{coordDimensions:["value"],encodeDefaulter:n.curry(p,this)}),i=e.mapDimension("value"),a=n.createHashMap(),o=[],s=[],l=0,u=e.count();l<u;l++){var c=e.getName(l);a.set(c,!0),o.push({name:c,value:e.get(i,l),selected:h(e,l,"selected")})}var f=d.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return n.each(f.regions,(function(t){var e=t.name;a.get(e)||(o.push({name:e}),s.push(e))})),this.updateSelectedMap(o),e.appendValues([],s),e},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t,e,i,n){for(var r=this.getData(),a=l(this.getRawValue(t)),o=r.getName(t),u=this.seriesGroup,c=[],h=0;h<u.length;h++){var d=u[h].originalData.indexOfName(o),f=r.mapDimension("value");isNaN(u[h].originalData.get(f,d))||c.push(s(u[h].name))}var p="html"===n?"<br/>":"\n";return c.join(", ")+p+s(o+" : "+a)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},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,u);var v=g;t.exports=v},"4e47":function(t,e,i){var n=i("6d8b"),r=i("2306"),a={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},o=2,s=4;function l(t,e,i){r.Group.call(this);var n=new r.Sector({z2:o});n.seriesIndex=e.seriesIndex;var a=new r.Text({z2:s,silent:t.getModel("label").get("silent")});function l(){a.ignore=a.hoverIgnore}function u(){a.ignore=a.normalIgnore}this.add(n),this.add(a),this.updateData(!0,t,"normal",e,i),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var u=l.prototype;u.updateData=function(t,e,i,a,o){this.node=e,e.piece=this,a=a||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=e.dataIndex;var l=e.getModel(),u=e.getLayout(),c=n.extend({},u);c.label=null;var d=h(e,a,o);p(e,a,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),t?(s.setShape(c),s.shape.r=u.r0,r.updateProps(s,{shape:{r:u.r}},a,e.dataIndex),s.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:c},a),s.useStyle(f)):r.updateProps(s,{shape:c,style:f},a),this._updateLabel(a,d,i);var m=l.getShallow("cursor");if(m&&s.attr("cursor",m),t){var y=a.getShallow("highlightPolicy");this._initEvents(s,e,a,y)}this._seriesModel=a||this._seriesModel,this._ecModel=o||this._ecModel,r.setHoverStyle(this)},u.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):f(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==a.NONE&&i.piece.childAt(0).trigger("downplay"))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(t,e,i){var a=this.node.getModel(),o=a.getModel("label"),s="normal"===i||"emphasis"===i?o:a.getModel(i+".label"),l=a.getModel("emphasis.label"),u=s.get("formatter"),c=u?i:"normal",h=n.retrieve(t.getFormattedLabel(this.node.dataIndex,c,null,null,"label"),this.node.name);!1===I("show")&&(h="");var d=this.node.getLayout(),f=s.get("minAngle");null==f&&(f=o.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||{},o,l,{defaultText:s.getShallow("show")?h:null,autoColor:e,useInsideStyle:!0});var v,m=(d.startAngle+d.endAngle)/2,y=Math.cos(m),x=Math.sin(m),_=I("position"),b=I("distance")||0,S=I("align");"outside"===_?(v=d.r+b,S=m>Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(v=d.r0+b,m>Math.PI/2&&(S="right")):"right"===S&&(v=d.r-b,m>Math.PI/2&&(S="left")):(v=(d.r+d.r0)/2,S="center"),g.attr("style",{text:h,textAlign:S,textVerticalAlign:I("verticalAlign")||"middle",opacity:I("opacity")});var T=v*y+d.cx,w=v*x+d.cy;g.attr("position",[T,w]);var A=I("rotate"),E=0;function I(t){var e=s.get(t);return null==e?o.get(t):e}"radial"===A?(E=-m,E<-Math.PI/2&&(E+=Math.PI)):"tangential"===A?(E=Math.PI/2-m,E>Math.PI/2?E-=Math.PI:E<-Math.PI/2&&(E+=Math.PI)):"number"===typeof A&&(E=A*Math.PI/180),g.attr("rotation",E)},u._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,a=function(){r.onEmphasis(n)},o=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};i.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",o).on("emphasis",a).on("normal",o).on("downplay",s).on("highlight",l)},n.inherits(l,r.Group);var c=l;function h(t,e,i){var n=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(n=null);var a=t.getModel("itemStyle").get("color");if(a)return a;if(n)return n;if(0===t.depth)return i.option.color[0];var o=i.option.color.length;return a=i.option.color[d(t)%o],a}function d(t){var e=t;while(e.depth>1)e=e.parentNode;var i=t.getAncestors()[0];return n.indexOf(i.children,e)}function f(t,e,i){return i!==a.NONE&&(i===a.SELF?t===e:i===a.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function p(t,e,i){var n=e.getData();n.setItemVisual(t.dataIndex,"color",i)}t.exports=c},"4e9f":function(t,e,i){var n=i("22d1"),r=i("29a8"),a=i("2145"),o=r.toolbox.saveAsImage;function s(t){this.model=t}s.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:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!n.canvasSupported;var l=s.prototype;l.onclick=function(t,e){var i=this.model,r=i.get("name")||t.get("title.0.text")||"echarts",a="svg"===e.getZr().painter.getType(),o=a?"svg":i.get("type",!0)||"png",s=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.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(s.split(",")[1]),u=l.length,c=new Uint8Array(u);while(u--)c[u]=l.charCodeAt(u);var h=new Blob([c]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var d=i.get("lang"),f='<body style="margin:0;"><img src="'+s+'" 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+"."+o,g.target="_blank",g.href=s;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(v)}},a.register("saveAsImage",s);var u=s;t.exports=u},"4f85":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("22d1"),o=i("eda2"),s=o.formatTime,l=o.encodeHTML,u=o.addCommas,c=o.getTooltipMarker,h=i("e0d3"),d=i("6cb7"),f=i("e47b"),p=i("38a2"),g=i("f934"),v=g.getLayoutParams,m=g.mergeLayoutParam,y=i("f47d"),x=y.createTask,_=i("0f99"),b=_.prepareSource,S=_.getSource,T=i("2b17"),w=T.retrieveRawValue,A=h.makeInner(),E=d.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=x({count:M,reset:L}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),b(this);var r=this.getInitialData(t,i);k(r,this),this.dataTask.context.data=r,A(this).dataBeforeProcessed=r,I(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?v(t):{},a=this.subType;d.hasClass(a)&&(a+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),h.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&m(t,n,i)},mergeOption:function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&m(this.option,t,i),b(this);var n=this.getInitialData(t,e);k(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,A(this).dataBeforeProcessed=n,I(this)},fillDataTextStyle:function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&h.defaultEmphasis(t[i],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=P(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return A(this).data},setData:function(t){var e=P(this);if(e){var i=e.context;i.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),i.outputData=t,e!==this.dataTask&&(i.data=t)}A(this).data=t},getSource:function(){return S(this)},getRawData:function(){return A(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,i,n){var a=this;n=n||"html";var o="html"===n?"<br/>":"\n",d="richText"===n,f={},p=0;function g(i){var o=r.reduce(i,(function(t,e,i){var n=m.getDimensionInfo(i);return t|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),h=[];function g(t,i){var r=m.getDimensionInfo(i);if(r&&!1!==r.otherDims.tooltip){var g=r.type,v="sub"+a.seriesIndex+"at"+p,y=c({color:S,type:"subItem",renderMode:n,markerId:v}),x="string"===typeof y?y:y.content,_=(o?x+l(r.displayName||"-")+": ":"")+l("ordinal"===g?t+"":"time"===g?e?"":s("yyyy/MM/dd hh:mm:ss",t):u(t));_&&h.push(_),d&&(f[v]=S,++p)}}y.length?r.each(y,(function(e){g(w(m,t,e),e)})):r.each(i,g);var v=o?d?"\n":"<br/>":"",x=v+h.join(v||", ");return{renderMode:n,content:x,style:f}}function v(t){return{renderMode:n,content:l(u(t)),style:f}}var m=this.getData(),y=m.mapDimension("defaultedTooltip",!0),x=y.length,_=this.getRawValue(t),b=r.isArray(_),S=m.getItemVisual(t,"color");r.isObject(S)&&S.colorStops&&(S=(S.colorStops[0]||{}).color),S=S||"transparent";var T=x>1||b&&!x?g(_):v(x?w(m,t,y[0]):b?_[0]:_),A=T.content,E=a.seriesIndex+"at"+p,I=c({color:S,type:"item",renderMode:n,markerId:E});f[E]=S,++p;var D=m.getName(t),M=this.name;h.isNameSpecified(this)||(M=""),M=M?l(M)+(e?": ":o):"";var L="string"===typeof I?I:I.content,C=e?L+M+A:M+L+(D?l(D)+": "+A:A);return{html:C,markers:f}},isAnimationEnabled:function(){if(a.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,r=f.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function I(t){var e=t.name;h.isNameSpecified(t)||(t.name=D(t)||e)}function D(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),n=[];return r.each(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)})),n.join(" ")}function M(t){return t.model.getRawData().count()}function L(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),C}function C(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function k(t,e){r.each(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,r.curry(R,e))}))}function R(t){var e=P(t);e&&e.setOutputEnd(this.count())}function P(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}r.mixin(E,p),r.mixin(E,f);var O=E;t.exports=O},"4fac":function(t,e,i){var n=i("620b"),r=i("9c2c");function a(t,e,i){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=r(a,o,i,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,u=0;u<(i?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=a[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=n(a,i)),t.moveTo(a[0][0],a[0][1]);u=1;for(var f=a.length;u<f;u++)t.lineTo(a[u][0],a[u][1])}i&&t.closePath()}}e.buildPath=a},"50e5":function(t,e,i){var n=i("6d8b"),r=i("eda2"),a=["x","y","z","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function s(t){return n.indexOf(o,t)>=0}function l(t,e){t=t.slice();var i=n.map(t,r.capitalFirst);e=(e||[]).slice();var a=n.map(e,r.capitalFirst);return function(r,o){n.each(t,(function(t,n){for(var s={name:t,capital:i[n]},l=0;l<e.length;l++)s[e[l]]=t+a[l];r.call(o,s)}))}}var u=l(a,["axisIndex","axis","index","id"]);function c(t,e,i){return function(i){var n,s={nodes:[],records:{}};if(e((function(t){s.records[t.name]={}})),!i)return s;o(i,s);do{n=!1,t(l)}while(n);function l(t){!r(t,s)&&a(t,s)&&(o(t,s),n=!0)}return s};function r(t,e){return n.indexOf(e.nodes,t)>=0}function a(t,r){var a=!1;return e((function(e){n.each(i(t,e)||[],(function(t){r.records[e.name][t]&&(a=!0)}))})),a}function o(t,r){r.nodes.push(t),e((function(e){n.each(i(t,e)||[],(function(t){r.records[e.name][t]=!0}))}))}}e.isCoordSupported=s,e.createNameEach=l,e.eachAxisDim=u,e.createLinkedNodesFinder=c},"527a":function(t,e,i){var n=i("6d8b"),r=i("3842");function a(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),i=t.coordinateSystem,n={},a=i.getRect();n.rect=a;var s=t.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],a.height),s[1]=r.parsePercent(s[1],a.height);var u=a.height-s[0]-s[1];o(e,t,u)}else{s[0]=r.parsePercent(s[0],a.width),s[1]=r.parsePercent(s[1],a.width);var c=a.width-s[0]-s[1];o(e,t,c)}e.setLayout("layoutInfo",n)}))}function o(t,e,i){if(t.count())for(var r,a=e.coordinateSystem,o=e.getLayerSeries(),l=t.mapDimension("single"),u=t.mapDimension("value"),c=n.map(o,(function(e){return n.map(e.indices,(function(e){var i=a.dataToPoint(t.get(l,e));return i[1]=t.get(u,e),i}))})),h=s(c),d=h.y0,f=i/h.max,p=o.length,g=o[0].indices.length,v=0;v<g;++v){r=d[v]*f,t.setItemLayout(o[0].indices[v],{layerIndex:0,x:c[0][v][0],y0:r,y:c[0][v][1]*f});for(var m=1;m<p;++m)r+=c[m-1][v][1]*f,t.setItemLayout(o[m].indices[v],{layerIndex:m,x:c[m][v][0],y0:r,y:c[m][v][1]*f})}}function s(t){for(var e=t.length,i=t[0].length,n=[],r=[],a=0,o={},s=0;s<i;++s){for(var l=0,u=0;l<e;++l)u+=t[l][s][1];u>a&&(a=u),n.push(u)}for(var c=0;c<i;++c)r[c]=(a-n[c])/2;a=0;for(var h=0;h<i;++h){var d=n[h]+r[h];d>a&&(a=d)}return o.y0=r,o.max=a,o}t.exports=a},5319:function(t,e,i){"use strict";var n=i("d784"),r=i("825a"),a=i("7b0b"),o=i("50c4"),s=i("a691"),l=i("1d80"),u=i("8aa5"),c=i("14c3"),h=Math.max,d=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,v=function(t){return void 0===t?t:String(t)};n("replace",2,(function(t,e,i,n){var m=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=n.REPLACE_KEEPS_$0,x=m?"$":"$0";return[function(i,n){var r=l(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,r,n):e.call(String(r),i,n)},function(t,n){if(!m&&y||"string"===typeof n&&-1===n.indexOf(x)){var a=i(e,t,this,n);if(a.done)return a.value}var l=r(t),f=String(this),p="function"===typeof n;p||(n=String(n));var g=l.global;if(g){var b=l.unicode;l.lastIndex=0}var S=[];while(1){var T=c(l,f);if(null===T)break;if(S.push(T),!g)break;var w=String(T[0]);""===w&&(l.lastIndex=u(f,o(l.lastIndex),b))}for(var A="",E=0,I=0;I<S.length;I++){T=S[I];for(var D=String(T[0]),M=h(d(s(T.index),f.length),0),L=[],C=1;C<T.length;C++)L.push(v(T[C]));var k=T.groups;if(p){var R=[D].concat(L,M,f);void 0!==k&&R.push(k);var P=String(n.apply(void 0,R))}else P=_(D,f,M,L,k,n);M>=E&&(A+=f.slice(E,M)+P,E=M+D.length)}return A+f.slice(E)}];function _(t,i,n,r,o,s){var l=n+t.length,u=r.length,c=g;return void 0!==o&&(o=a(o),c=p),e.call(s,c,(function(e,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return i.slice(0,n);case"'":return i.slice(l);case"<":s=o[a.slice(1,-1)];break;default:var c=+a;if(0===c)return e;if(c>u){var h=f(c/10);return 0===h?e:h<=u?void 0===r[h-1]?a.charAt(1):r[h-1]+a.charAt(1):e}s=r[c-1]}return void 0===s?"":s}))}}))},"53f3":function(t,e){function i(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=t.option.nodeScaleRatio,n=e.scale,r=n&&n[0]||1,a=e.getZoom(),o=(a-1)*i+1;return o/r}function n(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}e.getNodeGlobalScale=i,e.getSymbolSize=n},5450:function(t,e,i){i("7419"),i("29a9")},"54fb":function(t,e){function i(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),r=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:r})}))}t.exports=i},"551f":function(t,e,i){var n=i("282b"),r=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),a={getItemStyle:function(t,e){var i=r(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=a},5522:function(t,e,i){i("23e0"),i("1748"),i("6c12")},5576:function(t,e,i){var n=i("6d8b"),r=i("4a01"),a=i("88b3"),o="\0_ec_dataZoom_roams";function s(t,e){var i=c(t),r=e.dataZoomId,o=e.coordId;n.each(i,(function(t,i){var a=t.dataZoomInfos;a[r]&&n.indexOf(e.allCoordIds,o)<0&&(delete a[r],t.count--)})),d(i);var s=i[o];s||(s=i[o]={coordId:o,dataZoomInfos:{},count:0},s.controller=h(t,s),s.dispatchAction=n.curry(f,t)),!s.dataZoomInfos[r]&&s.count++,s.dataZoomInfos[r]=e;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(e.containsPoint),a.createOrUpdate(s,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function l(t,e){var i=c(t);n.each(i,(function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)})),d(i)}function u(t){return t.type+"\0_"+t.id}function c(t){var e=t.getZr();return e[o]||(e[o]={})}function h(t,e){var i=new r(t.getZr());return n.each(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(i){var r=[];n.each(e.dataZoomInfos,(function(n){if(i.isAvailableBehavior(n.dataZoomModel.option)){var a=(n.getRange||{})[t],o=a&&a(e.controller,i);!n.dataZoomModel.get("disabled",!0)&&o&&r.push({dataZoomId:n.dataZoomId,start:o[0],end:o[1]})}})),r.length&&e.dispatchAction(r)}))})),i}function d(t){n.each(t,(function(e,i){e.count||(e.controller.dispose(),delete t[i])}))}function f(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function p(t){var e,i="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return n.each(t,(function(t){var n=t.dataZoomModel,o=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");r[i+o]>r[i+e]&&(e=o),a&=n.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}e.register=s,e.unregister=l,e.generateCoordId=u},"55ac":function(t,e,i){var n=i("6d8b");function r(t,e,i){if(t&&n.indexOf(e,t.type)>=0){var r=i.getData().tree.root,a=t.targetNode;if("string"===typeof a&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var o=t.targetNodeId;if(null!=o&&(a=r.getNodeById(o)))return{node:a}}}function a(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function o(t,e){var i=a(t);return n.indexOf(i,e)>=0}function s(t,e){var i=[];while(t){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}e.retrieveTargetInfo=r,e.getPathToRoot=a,e.aboveViewRoot=o,e.wrapTreePathInfo=s},"562e":function(t,e,i){var n=i("6d8b");function r(t){null!=t&&n.extend(this,t),this.otherDims={}}var a=r;t.exports=a},5693:function(t,e){function i(t,e){var i,n,r,a,o,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?i=n=r=a=h:h instanceof Array?1===h.length?i=n=r=a=h[0]:2===h.length?(i=r=h[0],n=a=h[1]):3===h.length?(i=h[0],n=a=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],a=h[3]):i=n=r=a=0,i+n>u&&(o=i+n,i*=u/o,n*=u/o),r+a>u&&(o=r+a,r*=u/o,a*=u/o),n+r>c&&(o=n+r,n*=c/o,r*=c/o),i+a>c&&(o=i+a,i*=c/o,a*=c/o),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+a,l+c),0!==a&&t.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}e.buildPath=i},5866:function(t,e,i){var n=i("ef2b"),r=n.forceLayout,a=i("1c5f"),o=a.simpleLayout,s=i("94e4"),l=s.circularLayout,u=i("3842"),c=u.linearMap,h=i("401b"),d=i("6d8b"),f=i("0c37"),p=f.getCurvenessForEdge;function g(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},n=t.getGraph(),a=n.data,s=n.edgeData,u=t.getModel("force"),f=u.get("initLayout");t.preservedPoints?a.each((function(t){var e=a.getId(t);a.setItemLayout(t,i[e]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&l(t,"value"):o(t);var g=a.getDataExtent("value"),v=s.getDataExtent("value"),m=u.get("repulsion"),y=u.get("edgeLength");d.isArray(m)||(m=[m,m]),d.isArray(y)||(y=[y,y]),y=[y[1],y[0]];var x=a.mapArray("value",(function(t,e){var i=a.getItemLayout(e),n=c(t,g,m);return isNaN(n)&&(n=(m[0]+m[1])/2),{w:n,rep:n,fixed:a.getItemModel(e).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}})),_=s.mapArray("value",(function(e,i){var r=n.getEdgeByIndex(i),a=c(e,v,y);isNaN(a)&&(a=(y[0]+y[1])/2);var o=r.getModel(),s=d.retrieve3(o.get("lineStyle.curveness"),-p(r,t,i,!0),0);return{n1:x[r.node1.dataIndex],n2:x[r.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),b=(e=t.coordinateSystem,e.getBoundingRect()),S=r(x,_,{rect:b,gravity:u.get("gravity"),friction:u.get("friction")}),T=S.step;S.step=function(t){for(var e=0,r=x.length;e<r;e++)x[e].fixed&&h.copy(x[e].p,n.getNodeByIndex(e).getLayout());T((function(e,r,o){for(var s=0,l=e.length;s<l;s++)e[s].fixed||n.getNodeByIndex(s).setLayout(e[s].p),i[a.getId(s)]=e[s].p;for(s=0,l=r.length;s<l;s++){var u=r[s],c=n.getEdgeByIndex(s),d=u.n1.p,f=u.n2.p,p=c.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],h.copy(p[0],d),h.copy(p[1],f),+u.curveness&&(p[2]=[(d[0]+f[0])/2-(d[1]-f[1])*u.curveness,(d[1]+f[1])/2-(f[0]-d[0])*u.curveness]),c.setLayout(p)}t&&t(o)}))},t.forceLayout=S,t.preservedPoints=i,S.step()}else t.forceLayout=null}))}t.exports=g},"58df":function(t,e,i){var n=i("6d8b"),r=i("2306");function a(t,e,i,a){var o=i.axis;if(!o.scale.isBlank()){var s=i.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=a.coordinateSystem.getRect(),h=o.getTicksCoords({tickModel:s,clamp:!0});if(h.length){var d=u.length,f=t.__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=o.toGlobalCoord(h[0].coord),x=l.getAreaStyle();u=n.isArray(u)?u:[u];for(v=1;v<h.length;v++){var _,b,S,T,w=o.toGlobalCoord(h[v].coord);o.isHorizontal()?(_=y,b=c.y,S=w-_,T=c.height,y=_+S):(_=c.x,b=y,S=c.width,T=w-b,y=b+T);var A=h[v-1].tickValue;null!=A&&p.set(A,g),e.add(new r.Rect({anid:null!=A?"area_"+A:null,shape:{x:_,y:b,width:S,height:T},style:n.defaults({fill:u[g]},x),silent:!0})),g=(g+1)%d}t.__splitAreaColors=p}}}function o(t){t.__splitAreaColors=null}e.rectCoordAxisBuildSplitArea=a,e.rectCoordAxisHandleRemove=o},"5aa9":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=r.isObject,o=r.each,s=r.map,l=r.indexOf,u=(r.retrieve,i("f934")),c=u.getLayoutRect,h=i("697e"),d=h.createScaleByModel,f=h.ifAxisCrossZero,p=h.niceScaleExtent,g=h.estimateLabelUnionRect,v=i("cbe9"),m=i("ec02"),y=i("2039"),x=i("ee1a"),_=x.getStackedDimension;function b(t,e,i){return t.getCoordSysModel()===e}function S(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}i("8ed2");var T=S.prototype;function w(t,e,i,n){i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=i.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)A(a[l])&&(r=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&A(a[u])&&!n[c(a[u])]){r=a[u];break}r&&(n[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function A(t){return t&&"category"!==t.type&&"time"!==t.type&&f(t)}function E(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}T.type="grid",T.axisPointerEnabled=!0,T.getRect=function(){return this._rect},T.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),o(i.x,(function(t){p(t.scale,t.model)})),o(i.y,(function(t){p(t.scale,t.model)}));var n={};o(i.x,(function(t){w(i,"y",t,n)})),o(i.y,(function(t){w(i,"x",t,n)})),this.resize(this.model,e)},T.resize=function(t,e,i){var n=c(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=n;var r=this._axesList;function a(){o(r,(function(t){var e=t.isHorizontal(),i=e?[0,n.width]:[0,n.height],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),E(t,e?n.x:n.y)}))}a(),!i&&t.get("containLabel")&&(o(r,(function(t){if(!t.model.get("axisLabel.inside")){var e=g(t);if(e){var i=t.isHorizontal()?"height":"width",r=t.model.get("axisLabel.margin");n[i]-=e[i]+r,"top"===t.position?n.y+=e.height+r:"left"===t.position&&(n.x+=e.width+r)}}})),a())},T.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},T.getAxes=function(){return this._axesList.slice()},T.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}a(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},T.getCartesians=function(){return this._coordsList.slice()},T.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},T.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},T._findConvertTarget=function(t,e){var i,n,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,u=this._coordsList;if(r)i=r.coordinateSystem,l(u,i)<0&&(i=null);else if(a&&o)i=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)n=this.getAxis("x",a.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(s){var c=s.coordinateSystem;c===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},T.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},T._initCartesian=function(t,e,i){var n={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},a={x:0,y:0};if(e.eachComponent("xAxis",s("x"),this),e.eachComponent("yAxis",s("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);function s(i){return function(o,s){if(b(o,t,e)){var l=o.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 u=new m(i,d(o),[0,0],o.get("type"),l),c="category"===u.type;u.onBand=c&&o.get("boundaryGap"),u.inverse=o.get("inverse"),o.axis=u,u.model=o,u.grid=this,u.index=s,this._axesList.push(u),r[i][s]=u,a[i]++}}}this._axesMap=r,o(r.x,(function(e,i){o(r.y,(function(n,r){var a="x"+i+"y"+r,o=new v(a);o.grid=this,o.model=t,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(e),o.addAxis(n)}),this)}),this)},T._updateScale=function(t,e){function i(t,e,i){o(t.mapDimension(e.dim,!0),(function(i){e.scale.unionExtentFromData(t,_(t,i))}))}o(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(n){if(M(n)){var r=D(n,t),a=r[0],o=r[1];if(!b(a,e,t)||!b(o,e,t))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=n.getData(),u=s.getAxis("x"),c=s.getAxis("y");"list"===l.type&&(i(l,u,n),i(l,c,n))}}),this)},T.getTooltipAxes=function(t){var e=[],i=[];return o(this.getCartesians(),(function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),a=n.getOtherAxis(r);l(e,r)<0&&e.push(r),l(i,a)<0&&i.push(a)})),{baseAxes:e,otherAxes:i}};var I=["xAxis","yAxis"];function D(t,e){return s(I,(function(e){var i=t.getReferringComponents(e)[0];return i}))}function M(t){return"cartesian2d"===t.get("coordinateSystem")}S.create=function(t,e){var i=[];return t.eachComponent("grid",(function(n,r){var a=new S(n,t,e);a.name="grid_"+r,a.resize(n,e,!0),n.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(M(e)){var i=D(e,t),n=i[0],r=i[1],a=n.getCoordSysModel(),o=a.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),i},S.dimensions=S.prototype.dimensions=v.prototype.dimensions,y.register("cartesian2d",S);var L=S;t.exports=L},"5b69":function(t,e,i){var n=i("2306"),r=i("3eba"),a=i("6d8b"),o=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function c(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function h(t,e,i){var n=t.getGraphicEl(),r=c(t,e);null!=i&&(null==r&&(r=1),r*=i),n.downplay&&n.downplay(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function d(t,e){var i=c(t,e),n=t.getGraphicEl();n.traverse((function(t){"group"!==t.type&&t.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(t,e){var i=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+i,e.y2),t.bezierCurveTo(e.cpx2+i,e.cpy2,e.cpx1+i,e.cpy1,e.x1+i,e.y1)):(t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=r.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,i){var r=this,a=t.getGraph(),o=this.group,s=t.layoutInfo,l=s.width,u=s.height,c=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.attr("position",[s.x,s.y]),a.eachEdge((function(e){var i=new f;i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,s,c,p,g,v,m,y=e.getModel("lineStyle"),x=y.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),S=b.get("localX"),T=b.get("localY"),w=e.node2.getLayout(),A=e.node2.getModel(),E=A.get("localX"),I=A.get("localY"),D=e.getLayout();switch(i.shape.extent=Math.max(1,D.dy),i.shape.orient=d,"vertical"===d?(r=(null!=S?S*l:_.x)+D.sy,a=(null!=T?T*u:_.y)+_.dy,s=(null!=E?E*l:w.x)+D.ty,c=null!=I?I*u:w.y,p=r,g=a*(1-x)+c*x,v=s,m=a*x+c*(1-x)):(r=(null!=S?S*l:_.x)+_.dx,a=(null!=T?T*u:_.y)+D.sy,s=null!=E?E*l:w.x,c=(null!=I?I*u:w.y)+D.ty,p=r*(1-x)+s*x,g=a,v=r*x+s*(1-x),m=c),i.setShape({x1:r,y1:a,x2:s,y2:c,cpx1:p,cpy1:g,cpx2:v,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=e.node1.getVisual("color");break;case"target":i.style.fill=e.node2.getVisual("color");break}n.setHoverStyle(i,e.getModel("emphasis.lineStyle").getItemStyle()),o.add(i),h.setItemGraphicEl(e.dataIndex,i)})),a.eachNode((function(e){var i=e.getLayout(),r=e.getModel(),a=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),f=new n.Rect({shape:{x:null!=a?a*l:i.x,y:null!=s?s*u:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),p=e.getModel("emphasis.itemStyle").getItemStyle();n.setLabelStyle(f.style,p,h,d,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),f.setStyle("fill",e.getVisual("color")),n.setHoverStyle(f,p),o.add(f),c.setItemGraphicEl(e.dataIndex,f),f.dataType="node"})),c.eachItemGraphicEl((function(e,n){var a=c.getItemModel(n);a.get("draggable")&&(e.drift=function(e,a){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/u})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),h.eachItemGraphicEl((function(e,n){var a=h.getItemModel(n);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),!this._data&&t.get("animation")&&o.setClipPath(g(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,i,n){var r=t.getData(),c=r.graph,f=n.dataIndex,p=r.getItemModel(f),g=n.edgeDataIndex;if(null!=f||null!=g){var v=c.getNodeByIndex(f),m=c.getEdgeByIndex(g);if(c.eachNode((function(t){h(t,o,.1)})),c.eachEdge((function(t){h(t,l,.1)})),v){d(v,s);var y=p.get("focusNodeAdjacency");"outEdges"===y?a.each(v.outEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node2,s))})):"inEdges"===y?a.each(v.inEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node1,s))})):"allEdges"===y&&a.each(v.edges,(function(t){t.dataIndex<0||(d(t,u),t.node1!==v&&d(t.node1,s),t.node2!==v&&d(t.node2,s))}))}m&&(d(m,u),d(m.node1,s),d(m.node2,s))}},unfocusNodeAdjacency:function(t,e,i,n){var r=t.getGraph();r.eachNode((function(t){h(t,o)})),r.eachEdge((function(t){h(t,l)}))}});function g(t,e,i){var r=new n.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return n.initProps(r,{shape:{width:t.width+20}},e,i),r}t.exports=p},"5b87":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=r.each,o=r.createHashMap,s=i("ec34"),l=i("4c86"),u=i("c92f"),c=i("9850"),h={geoJSON:l,svg:u},d={load:function(t,e,i){var n,r=[],s=o(),l=o(),u=p(t);return a(u,(function(o){var u=h[o.type].load(t,o,i);a(u.regions,(function(t){var i=t.name;e&&e.hasOwnProperty(i)&&(t=t.cloneShallow(i=e[i])),r.push(t),s.set(i,t),l.set(i,t.center)}));var c=u.boundingRect;c&&(n?n.union(c):n=c.clone())})),{regions:r,regionsMap:s,nameCoordMap:l,boundingRect:n||new c(0,0,0,0)}},makeGraphic:f("makeGraphic"),removeGraphic:f("removeGraphic")};function f(t){return function(e,i){var n=p(e),r=[];return a(n,(function(n){var a=h[n.type][t];a&&r.push(a(e,n,i))})),r}}function p(t){var e=s.retrieveMap(t)||[];return e}t.exports=d},"5ce2":function(t,e,i){i("3970"),i("480e")},"5e68":function(t,e,i){var n=i("6d8b"),r=i("2cf4c"),a=r.devicePixelRatio,o=i("2b61"),s=i("dc2f");function l(){return!1}function u(t,e,i){var r=n.createCanvas(),a=e.getWidth(),o=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*i,r.height=o*i,r}var c=function(t,e,i){var r;i=i||a,"string"===typeof t?r=u(t,e,i):n.isObject(t)&&(r=t,t=r.id),this.id=t,this.dom=r;var o=r.style;o&&(r.onselectstart=l,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o["padding"]=0,o["margin"]=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};c.prototype={constructor:c,__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 t=this.dpr;this.domBack=u("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,a&&(a.width=t*i,a.height=e*i,1!==i&&this.ctxBack.scale(i,i))},clear:function(t,e){var i,n=this.dom,r=this.ctx,a=n.width,l=n.height,u=(e=e||this.clearColor,this.motionBlur&&!t),c=this.lastFrameAlpha,h=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,a/h,l/h)),r.clearRect(0,0,a,l),e&&"transparent"!==e)&&(e.colorStops?(i=e.__canvasGradient||o.getGradient(r,e,{x:0,y:0,width:a,height:l}),e.__canvasGradient=i):e.image&&(i=s.prototype.getCanvasPattern.call(e,r)),r.save(),r.fillStyle=i||e,r.fillRect(0,0,a,l),r.restore());if(u){var d=this.domBack;r.save(),r.globalAlpha=c,r.drawImage(d,0,0,a,l),r.restore()}}};var h=c;t.exports=h},"5e76":function(t,e,i){var n=i("d51b"),r=new n(50);function a(t){if("string"===typeof t){var e=r.get(t);return e&&e.image}return t}function o(t,e,i,n,a){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=r.get(t),u={hostEl:i,cb:n,cbPayload:a};return o?(e=o.image,!l(e)&&o.pending.push(u)):(e=new Image,e.onload=e.onerror=s,r.put(t,e.__cachedImgObj={image:e,pending:[u]}),e.src=e.__zrImageSrc=t),e}return t}return e}function s(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function l(t){return t&&t.width&&t.height}e.findExistImage=a,e.createOrUpdateImage=o,e.isImageReady=l},"5e97":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("a15a"),s=o.createSymbol,l=i("2306"),u=i("7919"),c=u.makeBackground,h=i("f934"),d=a.curry,f=a.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(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var s=t.get("selector",!0),l=t.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,t,e,i,s,o,l);var u=t.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},f=t.get("padding"),p=h.getLayoutRect(u,d,f),g=this.layoutInner(t,r,p,n,s,l),v=h.getLayoutRect(a.defaults({width:g.width,height:g.height},u),d,f);this.group.attr("position",[v.x-g.x,v.y-g.y]),this.group.add(this._backgroundEl=c(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,i,n,r,o,s){var l=this.getContentGroup(),u=a.createHashMap(),c=e.get("selectedMode"),h=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),f(e.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=i.getSeriesByName(o)[0];if(!u.get(o))if(s){var f=s.getData(),g=f.getVisual("color"),v=f.getVisual("borderColor");"function"===typeof g&&(g=g(s.getDataParams(0))),"function"===typeof v&&(v=v(s.getDataParams(0)));var _=f.getVisual("legendSymbol")||"roundRect",b=f.getVisual("symbol"),S=this._createItem(o,a,r,e,_,b,t,g,v,c);S.on("click",d(m,o,null,n,h)).on("mouseover",d(y,s.name,null,n,h)).on("mouseout",d(x,s.name,null,n,h)),u.set(o,!0)}else i.eachRawSeries((function(i){if(!u.get(o)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),f=s.getItemVisual(l,"color"),p=s.getItemVisual(l,"borderColor"),g="roundRect",v=this._createItem(o,a,r,e,g,null,t,f,p,c);v.on("click",d(m,null,o,n,h)).on("mouseover",d(y,null,o,n,h)).on("mouseout",d(x,null,o,n,h)),u.set(o,!0)}}),this)}else l.add(new p({newline:!0}))}),this),r&&this._createSelector(r,e,n,o,s)},_createSelector:function(t,e,i,n,r){var a=this.getSelectorGroup();function o(t){var n=t.type,r=new l.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var o=e.getModel("selectorLabel"),s=e.getModel("emphasis.selectorLabel");l.setLabelStyle(r.style,r.hoverStyle={},o,s,{defaultText:t.title,isRectText:!1}),l.setHoverStyle(r)}f(t,(function(t){o(t)}))},_createItem:function(t,e,i,n,r,o,u,c,h,d){var f=n.get("itemWidth"),g=n.get("itemHeight"),m=n.get("inactiveColor"),y=n.get("inactiveBorderColor"),x=n.get("symbolKeepAspect"),_=n.getModel("itemStyle"),b=n.isSelected(t),S=new p,T=i.getModel("textStyle"),w=i.get("icon"),A=i.getModel("tooltip"),E=A.parentModel;r=w||r;var I=s(r,0,0,f,g,b?c:m,null==x||x);if(S.add(v(I,r,_,h,y,b)),!w&&o&&(o!==r||"none"===o)){var D=.8*g;"none"===o&&(o="circle");var M=s(o,(f-D)/2,(g-D)/2,D,D,b?c:m,null==x||x);S.add(v(M,o,_,h,y,b))}var L="left"===u?f+5:-5,C=u,k=n.get("formatter"),R=t;"string"===typeof k&&k?R=k.replace("{name}",null!=t?t:""):"function"===typeof k&&(R=k(t)),S.add(new l.Text({style:l.setTextStyle({},T,{text:R,x:L,y:g/2,textFill:b?T.getTextColor():m,textAlign:C,textVerticalAlign:"middle"})}));var P=new l.Rect({shape:S.getBoundingRect(),invisible:!0,tooltip:A.get("show")?a.extend({content:t,formatter:E.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},A.option):null});return S.add(P),S.eachChild((function(t){t.silent=!0})),P.silent=!d,this.getContentGroup().add(S),l.setHoverStyle(S),S.__legendDataIndex=e,S},layoutInner:function(t,e,i,n,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();h.box(t.get("orient"),o,t.get("itemGap"),i.width,i.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(r){h.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===a?d[p]+=l[g]+f:u[p]+=c[g]+f,d[1-p]+=l[v]/2-c[v]/2,s.attr("position",d),o.attr("position",u);var y={x:0,y:0};return y[g]=l[g]+f+c[g],y[v]=Math.max(l[v],c[v]),y[m]=Math.min(0,c[m]+d[1-p]),y}return o.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function v(t,e,i,n,r,a){var o;return"line"!==e&&e.indexOf("empty")<0?(o=i.getItemStyle(),t.style.stroke=n,a||(o.stroke=r)):o=i.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function m(t,e,i,n){x(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),y(t,e,i,n)}function y(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function x(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}t.exports=g},"5f14":function(t,e,i){var n=i("6d8b"),r=i("41ef"),a=i("3842"),o=a.linearMap,s=n.each,l=n.isObject,u=-1,c=function(t){var e=t.mappingMethod,i=t.type,r=this.option=n.clone(t);this.type=i,this.mappingMethod=e,this._normalizeData=T[e];var a=h[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._doMap=a._doMap[e],"piecewise"===e?(p(r),d(r)):"category"===e?r.categories?f(r):p(r,!0):(n.assert("linear"!==e||r.dataExtent),p(r))};c.prototype={constructor:c,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return n.bind(this._normalizeData,this)}};var h=c.visualHandlers={color:{applyVisual:m("color"),getColorMapper:function(){var t=this.option;return n.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),y.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=r.fastLerp(e,t.parsedVisual,n),a?n:r.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")},category:y,piecewise:function(t,e){var i=b.call(this,e);return null==i&&(i=r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:x}},colorHue:g((function(t,e){return r.modifyHSL(t,e)})),colorSaturation:g((function(t,e){return r.modifyHSL(t,null,e)})),colorLightness:g((function(t,e){return r.modifyHSL(t,null,null,e)})),colorAlpha:g((function(t,e){return r.modifyAlpha(t,e)})),opacity:{applyVisual:m("opacity"),_doMap:_([0,1])},liftZ:{applyVisual:m("liftZ"),_doMap:{linear:x,category:x,piecewise:x,fixed:x}},symbol:{applyVisual:function(t,e,i){var r=this.mapValueToVisual(t);if(n.isString(r))i("symbol",r);else if(l(r))for(var a in r)r.hasOwnProperty(a)&&i(a,r[a])},_doMap:{linear:v,category:y,piecewise:function(t,e){var i=b.call(this,e);return null==i&&(i=v.call(this,t)),i},fixed:x}},symbolSize:{applyVisual:m("symbolSize"),_doMap:_([0,1])}};function d(t){var e=t.pieceList;t.hasSpecialVisual=!1,n.each(e,(function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function f(t){var e=t.categories,i=t.visual,r=t.categoryMap={};if(s(e,(function(t,e){r[t]=e})),!n.isArray(i)){var a=[];n.isObject(i)?s(i,(function(t,e){var i=r[e];a[null!=i?i:u]=t})):a[u]=i,i=S(t,a)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete r[e[o]],e.pop())}function p(t,e){var i=t.visual,r=[];n.isObject(i)?s(i,(function(t){r.push(t)})):null!=i&&r.push(i);var a={color:1,symbol:1};e||1!==r.length||a.hasOwnProperty(t.type)||(r[1]=r[0]),S(t,r)}function g(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:_([0,1])}}function v(t){var e=this.option.visual;return e[Math.round(o(t,[0,1],[0,e.length-1],!0))]||{}}function m(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function y(t){var e=this.option.visual;return e[this.option.loop&&t!==u?t%e.length:t]}function x(){return this.option.visual[0]}function _(t){return{linear:function(e){return o(e,t,this.option.visual,!0)},category:y,piecewise:function(e,i){var n=b.call(this,i);return null==n&&(n=o(e,t,this.option.visual,!0)),n},fixed:x}}function b(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=c.findPieceIndex(t,i),r=i[n];if(r&&r.visual)return r.visual[this.type]}}function S(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=n.map(e,(function(t){return r.parse(t)}))),e}var T={linear:function(t){return o(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=c.findPieceIndex(t,e,!0);if(null!=i)return o(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?u:e},fixed:n.noop};function w(t,e,i){return t?e<=i:e<i}c.listVisualTypes=function(){var t=[];return n.each(h,(function(e,i){t.push(i)})),t},c.addVisualHandler=function(t,e){h[t]=e},c.isValidType=function(t){return h.hasOwnProperty(t)},c.eachVisual=function(t,e,i){n.isObject(t)?n.each(t,e,i):e.call(i,t)},c.mapVisual=function(t,e,i){var r,a=n.isArray(t)?[]:n.isObject(t)?{}:(r=!0,null);return c.eachVisual(t,(function(t,n){var o=e.call(i,t,n);r?a=o:a[n]=o})),a},c.retrieveVisuals=function(t){var e,i={};return t&&s(h,(function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)})),e?i:null},c.prepareVisualTypes=function(t){if(l(t)){var e=[];s(t,(function(t,i){e.push(i)})),t=e}else{if(!n.isArray(t))return[];t=t.slice()}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},c.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},c.findPieceIndex=function(t,e,i){for(var n,r=1/0,a=0,o=e.length;a<o;a++){var s=e[a].value;if(null!=s){if(s===t||"string"===typeof s&&s===t+"")return a;i&&h(s,a)}}for(a=0,o=e.length;a<o;a++){var l=e[a],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(w(c[1],t,u[1]))return a}else if(u[1]===1/0){if(w(c[0],u[0],t))return a}else if(w(c[0],u[0],t)&&w(c[1],t,u[1]))return a;i&&h(u[0],a),i&&h(u[1],a)}}if(i)return t===1/0?e.length-1:t===-1/0?0:n;function h(e,i){var a=Math.abs(e-t);a<r&&(r=a,n=i)}};var A=c;t.exports=A},"607d":function(t,e,i){var n=i("1fab");e.Dispatcher=n;var r=i("22d1"),a=i("65ed"),o=a.isCanvasEl,s=a.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function h(t,e,i,n){return i=i||{},n||!r.canvasSupported?d(t,e,i):r.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):d(t,e,i),i}function d(t,e,i){if(r.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(o(t)){var l=t.getBoundingClientRect();return i.zrX=n-l.left,void(i.zrY=a-l.top)}if(s(c,t,n,a))return i.zrX=c[0],void(i.zrY=c[1])}i.zrX=i.zrY=0}function f(t){return t||window.event}function p(t,e,i){if(e=f(e),null!=e.zrX)return e;var n=e.type,r=n&&n.indexOf("touch")>=0;if(r){var a="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];a&&h(t,a,e,i)}else h(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&u.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function g(t,e,i,n){l?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)}function v(t,e,i,n){l?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)}var m=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function y(t){return 2===t.which||3===t.which}function x(t){return t.which>1}e.clientToLocal=h,e.getNativeEvent=f,e.normalizeEvent=p,e.addEventListener=g,e.removeEventListener=v,e.stop=m,e.isMiddleOrRightButtonOnMouseUpDown=y,e.notLeftMouse=x},"60d7":function(t,e,i){var n=i("2306"),r=i("e887"),a=.3,o=r.extend({type:"parallel",init:function(){this._dataGroup=new n.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,r){var a=this._dataGroup,o=t.getData(),d=this._data,f=t.coordinateSystem,p=f.dimensions,g=c(t);function v(t){var e=u(o,a,t,p,f);h(e,o,t,g)}function m(e,i){var a=d.getItemGraphicEl(i),s=l(o,e,p,f);o.setItemGraphicEl(e,a);var u=r&&!1===r.animation?null:t;n.updateProps(a,{shape:{points:s}},u,e),h(a,o,e,g)}function y(t){var e=d.getItemGraphicEl(t);a.remove(e)}if(o.diff(d).add(v).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var x=s(f,t,(function(){setTimeout((function(){a.removeClipPath()}))}));a.setClipPath(x)}this._data=o},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),r=e.coordinateSystem,a=r.dimensions,o=c(e),s=t.start;s<t.end;s++){var l=u(n,this._dataGroup,s,a,r);l.incremental=!0,h(l,n,s,o)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function s(t,e,i){var r=t.model,a=t.getRect(),o=new n.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),s="horizontal"===r.get("layout")?"width":"height";return o.setShape(s,0),n.initProps(o,{shape:{width:a.width,height:a.height}},e,i),o}function l(t,e,i,n){for(var r=[],a=0;a<i.length;a++){var o=i[a],s=t.get(t.mapDimension(o),e);d(s,n.getAxis(o).type)||r.push(n.dataToPoint(s,o))}return r}function u(t,e,i,r,a){var o=l(t,i,r,a),s=new n.Polyline({shape:{points:o},silent:!0,z2:10});return e.add(s),t.setItemGraphicEl(i,s),s}function c(t){var e=t.get("smooth",!0);return!0===e&&(e=a),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:a}}function h(t,e,i,n){var r=n.lineStyle;if(e.hasItemOption){var a=e.getItemModel(i).getModel("lineStyle");r=a.getLineStyle()}t.useStyle(r);var o=t.style;o.fill=null,o.stroke=e.getItemVisual(i,"color"),o.opacity=e.getItemVisual(i,"opacity"),n.smooth&&(t.shape.smooth=n.smooth)}function d(t,e){return"category"===e?null==t:null==t||isNaN(t)}var f=o;t.exports=f},"60e3":function(t,e,i){var n=i("6d8b"),r={get:function(t,e,i){var r=n.clone((a[t]||{})[e]);return i&&n.isArray(r)?r[r.length-1]:r}},a={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]}},o=r;t.exports=o},6179:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("4319"),o=i("80f0"),s=i("ec6f"),l=i("2b17"),u=l.defaultDimValueGetters,c=l.DefaultDataProvider,h=i("2f45"),d=h.summarizeDimensions,f=i("562e"),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},x=typeof Uint32Array===g?Array:Uint32Array,_=typeof Int32Array===g?Array:Int32Array,b=typeof Uint16Array===g?Array:Uint16Array;function S(t){return t._rawCount>65535?x:b}function T(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var w=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],A=["_extent","_approximateExtent","_rawExtent"];function E(t,e){r.each(w.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,r.each(A,(function(i){t[i]=r.clone(e[i])})),t._calculationInfo=r.extend(e._calculationInfo)}var I=function(t,e){t=t||["x","y"];for(var i={},n=[],a={},o=0;o<t.length;o++){var s=t[o];r.isString(s)?s=new f({name:s}):s instanceof f||(s=new f(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},n.push(l),i[l]=s,s.index=o,s.createInvertedIndices&&(a[l]=[])}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,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=a,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},D=I.prototype;function M(t,e,i,n,r){var a=y[e.type],o=n-1,s=e.name,l=t[s][o];if(l&&l.length<i){for(var u=new a(Math.min(r-o*i,i)),c=0;c<l.length;c++)u[c]=l[c];t[s][o]=u}for(var h=n*i;h<r;h+=i)t[s].push(new a(Math.min(r-h,i)))}function L(t){var e=t._invertedIndicesMap;r.each(e,(function(i,n){var r=t._dimensionInfos[n],a=r.ordinalMeta;if(a){i=e[n]=new _(a.categories.length);for(var o=0;o<i.length;o++)i[o]=v;for(o=0;o<t._count;o++)i[t.get(n,o)]=o}}))}function C(t,e,i){var n;if(null!=e){var r=t._chunkSize,a=Math.floor(i/r),o=i%r,s=t.dimensions[e],l=t._storage[s][a];if(l){n=l[o];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function k(t){return t}function R(t){return t<this._count&&t>=0?this._indices[t]:-1}function P(t,e){var i=t._idList[e];return null==i&&(i=C(t,t._idDimIdx,e)),null==i&&(i=m+e),i}function O(t){return r.isArray(t)||(t=[t]),t}function N(t,e){var i=t.dimensions,n=new I(r.map(i,t.getDimensionInfo,t),t.hostModel);E(n,t);for(var a=n._storage={},o=t._storage,s=0;s<i.length;s++){var l=i[s];o[l]&&(r.indexOf(e,l)>=0?(a[l]=F(o[l]),n._rawExtent[l]=B(),n._extent[l]=null):a[l]=o[l])}return n}function F(t){for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=T(t[i]);return e}function B(){return[1/0,-1/0]}D.type="list",D.hasItemOption=!0,D.getDimension=function(t){return"number"!==typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},D.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},D.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},D.mapDimension=function(t,e){var i=this._dimensionsSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return!0===e?(n||[]).slice():n&&n[e]},D.initData=function(t,e,i){var n=s.isInstance(t)||r.isArrayLike(t);n&&(t=new c(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},D.getProvider=function(){return this._rawData},D.appendData=function(t){var e=this._rawData,i=this.count();e.appendData(t);var n=e.count();e.persistent||(n+=i),this._initDataFromProvider(i,n)},D.appendValues=function(t,e){for(var i=this._chunkSize,n=this._storage,r=this.dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),u=this._chunkCount,c=0;c<a;c++){var h=r[c];o[h]||(o[h]=B()),n[h]||(n[h]=[]),M(n,this._dimensionInfos[h],i,u,l),this._chunkCount=n[h].length}for(var d=new Array(a),f=s;f<l;f++){for(var p=f-s,g=Math.floor(f/i),v=f%i,m=0;m<a;m++){h=r[m];var y=this._dimValueGetterArrayRows(t[p]||d,h,p,m);n[h][g][v]=y;var x=o[h];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},L(this)},D._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;p<s;p++){var g=o[p];h[g]||(h[g]=B());var v=l[g];0===v.otherDims.itemName&&(i=this._nameDimIdx=p),0===v.otherDims.itemId&&(this._idDimIdx=p),a[g]||(a[g]=[]),M(a,v,n,f,e),this._chunkCount=a[g].length}for(var m=new Array(s),y=t;y<e;y++){m=r.getItem(y,m);for(var x=Math.floor(y/n),_=y%n,b=0;b<s;b++){g=o[b];var S=a[g][x],T=this._dimValueGetter(m,g,y,b);S[_]=T;var w=h[g];T<w[0]&&(w[0]=T),T>w[1]&&(w[1]=T)}if(!r.pure){var A=u[y];if(m&&null==A)if(null!=m.name)u[y]=A=m.name;else if(null!=i){var E=o[i],I=a[E][x];if(I){A=I[_];var D=l[E].ordinalMeta;D&&D.categories.length&&(A=D.categories[A])}}var C=null==m?null:m.id;null==C&&null!=A&&(d[A]=d[A]||0,C=A,d[A]>0&&(C+="__ec__"+d[A]),d[A]++),null!=C&&(c[y]=C)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},L(this)}},D.count=function(){return this._count},D.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array){r=new e(i);for(var n=0;n<i;n++)r[n]=t[n]}else r=new e(t.buffer,0,i)}else{e=S(this);var r=new e(this.count());for(n=0;n<r.length;n++)r[n]=n}return r},D.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._storage;if(!i[t])return NaN;e=this.getRawIndex(e);var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=i[t][n],o=a[r];return o},D.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._storage[t];if(!i)return NaN;var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=i[n];return a[r]},D._getFast=function(t,e){var i=Math.floor(e/this._chunkSize),n=e%this._chunkSize,r=this._storage[t][i];return r[n]},D.getValues=function(t,e){var i=[];r.isArray(t)||(e=t,t=this.dimensions);for(var n=0,a=t.length;n<a;n++)i.push(this.get(t[n],e));return i},D.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this.get(e[i],t)))return!1;return!0},D.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],i=B();if(!e)return i;var n,r=this.count(),a=!this._indices;if(a)return this._rawExtent[t].slice();if(n=this._extent[t],n)return n.slice();n=i;for(var o=n[0],s=n[1],l=0;l<r;l++){var u=this._getFast(t,this.getRawIndex(l));u<o&&(o=u),u>s&&(s=u)}return n=[o,s],this._extent[t]=n,n},D.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},D.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},D.getCalculationInfo=function(t){return this._calculationInfo[t]},D.setCalculationInfo=function(t,e){p(t)?r.extend(this._calculationInfo,t):this._calculationInfo[t]=e},D.getSum=function(t){var e=this._storage[t],i=0;if(e)for(var n=0,r=this.count();n<r;n++){var a=this.get(t,n);isNaN(a)||(i+=a)}return i},D.getMedian=function(t){var e=[];this.each(t,(function(t,i){isNaN(t)||e.push(t)}));var i=[].concat(e).sort((function(t,e){return t-e})),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},D.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?v:n},D.indexOfName=function(t){for(var e=0,i=this.count();e<i;e++)if(this.getName(e)===t)return e;return-1},D.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;var n=0,r=this._count-1;while(n<=r){var a=(n+r)/2|0;if(e[a]<t)n=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},D.indicesOfNearest=function(t,e,i){var n=this._storage,r=n[t],a=[];if(!r)return a;null==i&&(i=1/0);for(var o=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=e-this.get(t,u),d=Math.abs(h);d<=i&&((d<o||d===o&&h>=0&&s<0)&&(o=d,s=h,l=0),h===s&&(a[l++]=u))}return a.length=l,a},D.getRawIndex=k,D.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},D.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||C(this,this._nameDimIdx,e)||""},D.getId=function(t){return P(this,this.getRawIndex(t))},D.each=function(t,e,i,n){"use strict";if(this._count){"function"===typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=r.map(O(t),this.getDimension,this);for(var a=t.length,o=0;o<this.count();o++)switch(a){case 0:e.call(i,o);break;case 1:e.call(i,this.get(t[0],o),o);break;case 2:e.call(i,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var s=0,l=[];s<a;s++)l[s]=this.get(t[s],o);l[s]=o,e.apply(i,l)}}},D.filterSelf=function(t,e,i,n){"use strict";if(this._count){"function"===typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=r.map(O(t),this.getDimension,this);for(var a=this.count(),o=S(this),s=new o(a),l=[],u=t.length,c=0,h=t[0],d=0;d<a;d++){var f,p=this.getRawIndex(d);if(0===u)f=e.call(i,d);else if(1===u){var g=this._getFast(h,p);f=e.call(i,g,d)}else{for(var v=0;v<u;v++)l[v]=this._getFast(h,p);l[v]=d,f=e.apply(i,l)}f&&(s[c++]=p)}return c<a&&(this._indices=s),this._count=c,this._extent={},this.getRawIndex=this._indices?R:k,this}},D.selectRange=function(t){"use strict";if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var n=e.length;if(n){var r=this.count(),a=S(this),o=new a(r),s=0,l=e[0],u=t[l][0],c=t[l][1],h=!1;if(!this._indices){var d=0;if(1===n){for(var f=this._storage[e[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>=u&&y<=c||isNaN(y))&&(o[s++]=d),d++}h=!0}else if(2===n){f=this._storage[l];var x=this._storage[e[1]],_=t[e[1]][0],b=t[e[1]][1];for(p=0;p<this._chunkCount;p++){g=f[p];var T=x[p];for(v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<v;m++){y=g[m];var w=T[m];(y>=u&&y<=c||isNaN(y))&&(w>=_&&w<=b||isNaN(w))&&(o[s++]=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>=u&&y<=c||isNaN(y))&&(o[s++]=A)}else for(m=0;m<r;m++){var E=!0;for(A=this.getRawIndex(m),p=0;p<n;p++){var I=e[p];y=this._getFast(i,A);(y<t[I][0]||y>t[I][1])&&(E=!1)}E&&(o[s++]=this.getRawIndex(m))}return s<r&&(this._indices=o),this._count=s,this._extent={},this.getRawIndex=this._indices?R:k,this}}},D.mapArray=function(t,e,i,n){"use strict";"function"===typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),i),r},D.map=function(t,e,i,n){"use strict";i=i||n||this,t=r.map(O(t),this.getDimension,this);var a=N(this,t);a._indices=this._indices,a.getRawIndex=a._indices?R:k;for(var o=a._storage,s=[],l=this._chunkSize,u=t.length,c=this.count(),h=[],d=a._rawExtent,f=0;f<c;f++){for(var p=0;p<u;p++)h[p]=this.get(t[p],f);h[u]=f;var g=e&&e.apply(i,h);if(null!=g){"object"!==typeof g&&(s[0]=g,g=s);for(var v=this.getRawIndex(f),m=Math.floor(v/l),y=v%l,x=0;x<g.length;x++){var _=t[x],b=g[x],S=d[_],T=o[_];T&&(T[m][y]=b),b<S[0]&&(S[0]=b),b>S[1]&&(S[1]=b)}}}return a},D.downSample=function(t,e,i,n){for(var r=N(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),c=this._chunkSize,h=r._rawExtent[t],d=new(S(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,o.length=s);for(var g=0;g<s;g++){var v=this.getRawIndex(p+g),m=Math.floor(v/c),y=v%c;o[g]=l[m][y]}var x=i(o),_=this.getRawIndex(Math.min(p+n(o,x)||0,u-1)),b=Math.floor(_/c),T=_%c;l[b][T]=x,x<h[0]&&(h[0]=x),x>h[1]&&(h[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=R,r},D.getItemModel=function(t){var e=this.hostModel;return new a(this.getRawDataItem(t),e,e&&e.ecModel)},D.diff=function(t){var e=this;return new o(t?t.getIndices():[],this.getIndices(),(function(e){return P(t,e)}),(function(t){return P(e,t)}))},D.getVisual=function(t){var e=this._visual;return e&&e[t]},D.setVisual=function(t,e){if(p(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},D.setLayout=function(t,e){if(p(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},D.getLayout=function(t){return this._layout[t]},D.getItemLayout=function(t){return this._itemLayouts[t]},D.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?r.extend(this._itemLayouts[t]||{},e):e},D.clearItemLayouts=function(){this._itemLayouts.length=0},D.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},D.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,p(e))for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a],r[a]=!0);else n[e]=i,r[e]=!0},D.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var z=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};D.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(z,e)),this._graphicEls[t]=e},D.getItemGraphicEl=function(t){return this._graphicEls[t]},D.eachItemGraphicEl=function(t,e){r.each(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},D.cloneShallow=function(t){if(!t){var e=r.map(this.dimensions,this.getDimensionInfo,this);t=new I(e,this.hostModel)}if(t._storage=this._storage,E(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?R:k,t},D.wrapMethod=function(t,e){var i=this[t];"function"===typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(r.slice(arguments)))})},D.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],D.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=I;t.exports=V},"620b":function(t,e,i){var n=i("401b"),r=n.distance;function a(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function o(t,e){for(var i=t.length,n=[],o=0,s=1;s<i;s++)o+=r(t[s-1],t[s]);var l=o/2;l=l<i?i:l;for(s=0;s<l;s++){var u,c,h,d=s/(l-1)*(e?i:i-1),f=Math.floor(d),p=d-f,g=t[f%i];e?(u=t[(f-1+i)%i],c=t[(f+1)%i],h=t[(f+2)%i]):(u=t[0===f?f:f-1],c=t[f>i-2?i-1:f+1],h=t[f>i-3?i-1:f+2]);var v=p*p,m=p*v;n.push([a(u[0],g[0],c[0],h[0],p,v,m),a(u[1],g[1],c[1],h[1],p,v,m)])}return n}t.exports=o},"625e":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=".",o="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e}function l(t){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function u(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r.extend(i.prototype,t),i.extend=this.extend,i.superCall=d,i.superApply=f,r.inherits(i,this),i.superClass=e,i}}var c=0;function h(t){var e=["__\0is_clz",c++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(t,e){var i=r.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function f(t,e,i){return this.superClass.prototype[e].apply(t,i)}function p(t,e){e=e||{};var i={};function n(t){var e=i[t.main];return e&&e[o]||(e=i[t.main]={},e[o]=!0),e}if(t.registerClass=function(t,e){if(e)if(l(e),e=s(e),e.sub){if(e.sub!==o){var r=n(e);r[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[o]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=s(t);var e=[],n=i[t.main];return n&&n[o]?r.each(n,(function(t,i){i!==o&&e.push(t)})):e.push(n),e},t.hasClass=function(t){return t=s(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(i,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){t=s(t);var e=i[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t.extend;a&&(t.extend=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t}function g(t,e){}e.parseClassType=s,e.enableClassExtend=u,e.enableClassCheck=h,e.enableClassManagement=p,e.setReadOnly=g},"627c":function(t,e,i){var n=i("6d8b"),r=i("3eba"),a=i("2306"),o=i("f934"),s=o.getLayoutRect,l=i("eda2"),u=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(t,e,i){if(this.group.removeAll(),t.get("show")){var r=this.group,o=t.getModel("textStyle"),l=t.getModel("subtextStyle"),c=t.get("textAlign"),h=n.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),d=new a.Text({style:a.setTextStyle({},o,{text:t.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),f=d.getBoundingRect(),p=t.get("subtext"),g=new a.Text({style:a.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:f.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),m=t.get("sublink"),y=t.get("triggerEvent",!0);d.silent=!v&&!y,g.silent=!m&&!y,v&&d.on("click",(function(){u(v,"_"+t.get("target"))})),m&&g.on("click",(function(){u(m,"_"+t.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(d),p&&r.add(g);var x=r.getBoundingRect(),_=t.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=s(_,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));c||(c=t.get("left")||t.get("right"),"middle"===c&&(c="center"),"right"===c?b.x+=b.width:"center"===c&&(b.x+=b.width/2)),h||(h=t.get("top")||t.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 S={textAlign:c,textVerticalAlign:h};d.setStyle(S),g.setStyle(S),x=r.getBoundingRect();var T=b.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var A=new a.Rect({shape:{x:x.x-T[3],y:x.y-T[0],width:x.width+T[1]+T[3],height:x.height+T[0]+T[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(A)}}})},6569:function(t,e,i){var n=i("6d8b"),r=i("e0d3");function a(t){o(t),s(t)}function o(t){if(!t.parallel){var e=!1;n.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function s(t){var e=r.normalizeToArray(t.parallelAxis);n.each(e,(function(e){if(n.isObject(e)){var i=e.parallelIndex||0,a=r.normalizeToArray(t.parallel)[i];a&&a.parallelAxisDefault&&n.merge(e,a.parallelAxisDefault,!1)}}))}t.exports=a},6582:function(t,e,i){var n=i("cccd"),r={seriesType:"lines",plan:n(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;function r(r,a){var o=[];if(n){var s,l=r.end-r.start;if(i){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var f=t.getLineCoords(c,o);i&&(s[h++]=f);for(var p=0;p<f;p++)d=e.dataToPoint(o[p],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=a.getItemModel(c),v=(f=t.getLineCoords(c,o),[]);if(i)for(var m=0;m<f;m++)v.push(e.dataToPoint(o[m]));else{v[0]=e.dataToPoint(o[0]),v[1]=e.dataToPoint(o[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])}a.setItemLayout(c,v)}}return{progress:r}}};t.exports=r},"65ed":function(t,e,i){var n=i("22d1"),r=i("84ec"),a=r.buildTransformer,o="___zrEVENTSAVED",s=[];function l(t,e,i,n,r){return u(s,e,n,r,!0)&&u(t,i,s[0],s[1])}function u(t,e,i,r,a){if(e.getBoundingClientRect&&n.domSupported&&!d(e)){var s=e[o]||(e[o]={}),l=c(e,s),u=h(l,s,a);if(u)return u(t,i,r),!0}return!1}function c(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(o),i.push(o)}return i}function h(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,s=!0,l=[],u=[],c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;l.push(f,p),s=s&&o&&f===o[d]&&p===o[d+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return s&&r?r:(e.srcCoords=l,e[n]=i?a(u,l):a(l,u))}function d(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=l,e.transformCoordWithViewport=u,e.isCanvasEl=d},6679:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("cd33"),o=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&a.fixValue(t),o.superApply(this,"render",arguments),s(this,t,e,i,n,!0)},updateAxisPointer:function(t,e,i,n,r){s(this,t,e,i,n,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),o.superApply(this,"remove",arguments)},dispose:function(t,e){l(this,e),o.superApply(this,"dispose",arguments)}});function s(t,e,i,n,r,s){var u=o.getAxisPointerClass(t.axisPointerClass);if(u){var c=a.getAxisPointerModel(e);c?(t._axisPointer||(t._axisPointer=new u)).render(e,c,n,s):l(t,n)}}function l(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}var u=[];o.registerAxisPointerClass=function(t,e){u[t]=e},o.getAxisPointerClass=function(t){return t&&u[t]};var c=o;t.exports=c},"66a4":function(t,e,i){var n=i("6d8b");function r(t){var e=t&&t.timeline;n.isArray(e)||(e=e?[e]:[]),n.each(e,(function(t){t&&a(t)}))}function a(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),o(t),s(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});s(r,"position")||(r.position=t.controlPosition),"none"!==r.position||s(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}n.each(t.data||[],(function(t){n.isObject(t)&&!n.isArray(t)&&(!s(t,"value")&&s(t,"name")&&(t.value=t.name),o(t))}))}function o(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},a=r.normal||(r.normal={}),o={normal:1,emphasis:1};n.each(r,(function(t,e){o[e]||s(a,e)||(a[e]=t)})),i.label&&!s(r,"emphasis")&&(r.emphasis=i.label,delete i.label)}function s(t,e){return t.hasOwnProperty(e)}t.exports=r},"66fc":function(t,e,i){var n=i("6d8b"),r=i("84ce"),a=function(t,e,i,n,a){r.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom",this.orient=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(a,r);var o=a;t.exports=o},"675a":function(t,e){function i(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var i=t.getCategoriesData(),n=t.getGraph(),r=n.data,a=i.mapArray(i.getName);r.filterSelf((function(t){var i=r.getItemModel(t),n=i.getShallow("category");if(null!=n){"number"===typeof n&&(n=a[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}),this)}t.exports=i},"675c":function(t,e,i){var n=i("3eba");i("4e10"),i("a666"),i("49e8"),i("eeea");var r=i("cee1"),a=i("54fb"),o=i("f6ed"),s=i("9442"),l=i("7782");n.registerLayout(r),n.registerVisual(a),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o),n.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},"67a8":function(t,e,i){var n=i("3301"),r=i("4f85"),a=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){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}});t.exports=a},"67cc":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("2306"),s=i("e7aa"),l=s.setLabel,u=i("4319"),c=i("b5c7"),h=i("cbe5"),d=i("e1fc"),f=i("88b3"),p=f.throttle,g=i("b0af"),v=g.createClipPath,m=i("c2be"),y=["itemStyle","barBorderWidth"],x=[0,0];function _(t,e){var i=t.getArea&&t.getArea();if("cartesian2d"===t.type){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var r=e.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}a.extend(u.prototype,c);var b=r.extendChartView({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?n=u.isHorizontal():"polar"===l.type&&(n="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=t.get("clip",!0),f=_(l,a);r.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("barBorderRadius")||0,y=[],x=this._backgroundEls||[],b=function(t){var e=D[l.type](a,t),i=z(l,n,e);return i.useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&i.setShape("r",m),y[t]=i,i};a.diff(s).add((function(e){var i=a.getItemModel(e),o=D[l.type](a,e,i);if(g&&b(e),a.hasValue(e)){if(h){var s=w[l.type](f,o);if(s)return void r.remove(u)}var u=A[l.type](e,o,n,c,!1,p);a.setItemGraphicEl(e,u),r.add(u),L(u,a,e,i,o,t,n,"polar"===l.type)}})).update((function(e,i){var u=a.getItemModel(e),d=D[l.type](a,e,u);if(g){var _;0===x.length?_=b(i):(_=x[i],_.useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&_.setShape("r",m),y[e]=_);var S=D[l.type](a,e),T=B(n,S,l);o.updateProps(_,{shape:T},c,e)}var E=s.getItemGraphicEl(i);if(a.hasValue(e)){if(h){var I=w[l.type](f,d);if(I)return void r.remove(E)}E?o.updateProps(E,{shape:d},c,e):E=A[l.type](e,d,n,c,!0,p),a.setItemGraphicEl(e,E),r.add(E),L(E,a,e,u,d,t,n,"polar"===l.type)}else r.remove(E)})).remove((function(t){var e=s.getItemGraphicEl(t);"cartesian2d"===l.type?e&&E(t,c,e):e&&I(t,c,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new d);S.removeAll();for(var T=0;T<y.length;++T)S.add(y[T]);r.add(S),this._backgroundEls=y,this._data=a},_renderLarge:function(t,e,i){this._clear(),R(t,this.group);var n=t.get("clip",!0)?v(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),R(e,this.group,!0)},dispose:a.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl((function(e){"sector"===e.type?I(e.dataIndex,t,e):E(e.dataIndex,t,e)}))):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),S=Math.max,T=Math.min,w={cartesian2d:function(t,e){var i=e.width<0?-1:1,n=e.height<0?-1:1;i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var r=S(e.x,t.x),a=T(e.x+e.width,t.x+t.width),o=S(e.y,t.y),s=T(e.y+e.height,t.y+t.height);e.x=r,e.y=o,e.width=a-r,e.height=s-o;var l=e.width<0||e.height<0;return i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),l},polar:function(t,e){var i=e.r0<=e.r?1:-1;if(i<0){var n=e.r;e.r=e.r0,e.r0=n}n=T(e.r,t.r);var r=S(e.r0,t.r0);e.r=n,e.r0=r;var a=n-r<0;if(i<0){n=e.r;e.r=e.r0,e.r0=n}return a}},A={cartesian2d:function(t,e,i,n,r){var s=new o.Rect({shape:a.extend({},e),z2:1});if(s.name="item",n){var l=s.shape,u=i?"height":"width",c={};l[u]=0,c[u]=e[u],o[r?"updateProps":"initProps"](s,{shape:c},n,t)}return s},polar:function(t,e,i,n,r,s){var l=e.startAngle<e.endAngle,u=!i&&s?m:o.Sector,c=new u({shape:a.defaults({clockwise:l},e),z2:1});if(c.name="item",n){var h=c.shape,d=i?"r":"endAngle",f={};h[d]=i?0:e.startAngle,f[d]=e[d],o[r?"updateProps":"initProps"](c,{shape:f},n,t)}return c}};function E(t,e,i){i.style.text=null,o.updateProps(i,{shape:{width:0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}function I(t,e,i){i.style.text=null,o.updateProps(i,{shape:{r:i.shape.r0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}var D={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),r=i?C(i,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*r/2,y:n.y+o*r/2,width:n.width-a*r,height:n.height-o*r}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function M(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function L(t,e,i,n,r,s,u,c){var h=e.getItemVisual(i,"color"),d=e.getItemVisual(i,"opacity"),f=e.getVisual("borderColor"),p=n.getModel("itemStyle"),g=n.getModel("emphasis.itemStyle").getBarItemStyle();c||t.setShape("r",p.get("barBorderRadius")||0),t.useStyle(a.defaults({stroke:M(r)?"none":f,fill:M(r)?"none":h,opacity:d},p.getBarItemStyle()));var v=n.getShallow("cursor");v&&t.attr("cursor",v);var m=u?r.height>0?"bottom":"top":r.width>0?"left":"right";c||l(t.style,g,n,h,s,i,m),M(r)&&(g.fill=g.stroke="none"),o.setHoverStyle(t,g)}function C(t,e){var i=t.get(y)||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,r)}var k=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,r=this.__baseDimIdx,a=0;a<i.length;a+=2)n[r]=i[a+r],t.moveTo(n[0],n[1]),t.lineTo(i[a],i[a+1])}});function R(t,e,i){var n=t.getData(),r=[],a=n.getLayout("valueAxisHorizontal")?1:0;r[1-a]=n.getLayout("valueAxisStart");var o=n.getLayout("largeDataIndices"),s=n.getLayout("barWidth"),l=t.getModel("backgroundStyle"),u=t.get("showBackground",!0);if(u){var c=n.getLayout("largeBackgroundPoints"),h=[];h[1-a]=n.getLayout("backgroundStart");var d=new k({shape:{points:c},incremental:!!i,__startPoint:h,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s,silent:!0,z2:0});F(d,l,n),e.add(d)}var f=new k({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:r,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s});e.add(f),N(f,t,n),f.seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",P),f.on("mousemove",P))}var P=p((function(t){var e=this,i=O(e,t.offsetX,t.offsetY);e.dataIndex=i>=0?i:null}),30,!1);function O(t,e,i){var n=t.__baseDimIdx,r=1-n,a=t.shape.points,o=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];x[0]=e,x[1]=i;for(var u=x[n],c=x[1-n],h=u-s,d=u+s,f=0,p=a.length/2;f<p;f++){var g=2*f,v=a[g+n],m=a[g+r];if(v>=h&&v<=d&&(l<=m?c>=l&&c<=m:c>=m&&c<=l))return o[f]}return-1}function N(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function F(t,e,i){var n=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function B(t,e,i){var n,r="polar"===i.type;return n=r?i.getArea():i.grid.getRect(),r?{cx:n.cx,cy:n.cy,r0:t?n.r0:e.r0,r:t?n.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:n.x,y:t?n.y:e.y,width:t?e.width:n.width,height:t?n.height:e.height}}function z(t,e,i){var n="polar"===t.type?o.Sector:o.Rect;return new n({shape:B(e,i,t),silent:!0,z2:0})}t.exports=b},"68ab":function(t,e,i){var n=i("4a3f"),r=n.quadraticProjectPoint;function a(t,e,i,n,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>e+c&&u>n+c&&u>o+c||u<e-c&&u<n-c&&u<o-c||l>t+c&&l>i+c&&l>a+c||l<t-c&&l<i-c&&l<a-c)return!1;var h=r(t,e,i,n,a,o,l,u,null);return h<=c/2}e.containStroke=a},6932:function(t,e,i){var n=i("6cb7");n.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},"697e":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("18c0"),o=i("89e3"),s=i("e0d8"),l=i("3842"),u=i("9d57"),c=u.prepareLayoutBarSeries,h=u.makeColumnLayout,d=u.retrieveColumnLayout,f=i("9850");function p(t,e){var i,n,a,o=t.type,s=e.getMin(),u=e.getMax(),d=t.getExtent();"ordinal"===o?i=e.getCategories().length:(n=e.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),a=d[1]-d[0]||Math.abs(d[0])),"dataMin"===s?s=d[0]:"function"===typeof s&&(s=s({min:d[0],max:d[1]})),"dataMax"===u?u=d[1]:"function"===typeof u&&(u=u({min:d[0],max:d[1]}));var f=null!=s,p=null!=u;null==s&&(s="ordinal"===o?i?0:NaN:d[0]-n[0]*a),null==u&&(u="ordinal"===o?i?i-1:NaN:d[1]+n[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN),t.setBlank(r.eqNaN(s)||r.eqNaN(u)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(s>0&&u>0&&!f&&(s=0),s<0&&u<0&&!p&&(u=0));var v=e.ecModel;if(v&&"time"===o){var m,y=c("bar",v);if(r.each(y,(function(t){m|=t.getBaseAxis()===e.axis})),m){var x=h(y),_=g(s,u,e,x);s=_.min,u=_.max}}return{extent:[s,u],fixMin:f,fixMax:p}}function g(t,e,i,n){var a=i.axis.getExtent(),o=a[1]-a[0],s=d(n,i.axis);if(void 0===s)return{min:t,max:e};var l=1/0;r.each(s,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;r.each(s,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,h=e-t,f=1-(l+u)/o,p=h/f-h;return e+=p*(u/c),t-=p*(l/c),{min:t,max:e}}function v(t,e){var i=p(t,e),n=i.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)}function m(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new a(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(s.getClass(e)||o).create(t)}}function y(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function x(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"===typeof e?(e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e),e):"function"===typeof e?function(n,r){return null!=i&&(r=n-i),e(_(t,n),r)}:function(e){return t.scale.getLabel(e)}}function _(t,e){return"category"===t.type?t.scale.getLabel(e):e}function b(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,r,a="category"===t.type,o=i.getExtent();a?r=i.count():(n=i.getTicks(),r=n.length);var s,l=t.getLabelModel(),u=x(t),c=1;r>40&&(c=Math.ceil(r/40));for(var h=0;h<r;h+=c){var d=n?n[h]:o[0]+h,f=u(d),p=l.getTextRect(f),g=S(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function S(t,e){var i=e*Math.PI/180,n=t.plain(),r=n.width,a=n.height,o=r*Math.abs(Math.cos(i))+Math.abs(a*Math.sin(i)),s=r*Math.abs(Math.sin(i))+Math.abs(a*Math.cos(i)),l=new f(n.x,n.y,o,s);return l}function T(t){var e=t.get("interval");return null==e?"auto":e}function w(t){return"category"===t.type&&0===T(t.getLabelModel())}i("216a"),i("8c2a"),e.getScaleExtent=p,e.niceScaleExtent=v,e.createScaleByModel=m,e.ifAxisCrossZero=y,e.makeLabelFormatter=x,e.getAxisRawValue=_,e.estimateLabelUnionRect=b,e.getOptionCategoryInterval=T,e.shouldShowAllLabels=w},"697e7":function(t,e,i){var n=i("de00"),r=i("22d1"),a=i("6d8b"),o=i("d2cf"),s=i("afa0"),l=i("ed21"),u=i("30a3"),c=i("cdaa"),h=!r.canvasSupported,d={canvas:l},f={},p="4.3.2";function g(t,e){var i=new _(n(),t,e);return f[i.id]=i,i}function v(t){if(t)t.dispose();else{for(var e in f)f.hasOwnProperty(e)&&f[e].dispose();f={}}return this}function m(t){return f[t]}function y(t,e){d[t]=e}function x(t){delete f[t]}var _=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,l=new s,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](e,l,i,t);this.storage=l,this.painter=p;var g=r.node||r.worker?null:new c(p.getViewportRoot(),p.root);this.handler=new o(l,p,g,p.root),this.animation=new u({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var v=l.delFromStorage,m=l.addToStorage;l.delFromStorage=function(t){v.call(l,t),t&&t.removeSelfFromZr(n)},l.addToStorage=function(t){m.call(l,t),t.addSelfToZr(n)}};_.prototype={constructor:_,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),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 t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var i=this.painter.addHover(t,e);return this.refreshHover(),i}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),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(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},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,x(this.id)}},e.version=p,e.init=g,e.dispose=v,e.getInstance=m,e.registerPainter=y},"69ff":function(t,e,i){var n=i("6d8b"),r=n.each,a=n.map,o=n.isFunction,s=n.createHashMap,l=n.noop,u=i("f47d"),c=u.createTask,h=i("8918"),d=h.getUID,f=i("7e63"),p=i("843e"),g=i("e0d3"),v=g.normalizeToArray;function m(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=s()}var y=m.prototype;function x(t,e,i,n,a){var o;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{},r(e,(function(e,r){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(a,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),_(c,n);var f=t.getPerformArgs(c,a.block);d.each((function(t){t.perform(f)})),o|=c.perform(f)}else u&&u.each((function(r,l){s(a,r)&&r.dirty();var u=t.getPerformArgs(r,a.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(r.context.model),_(r,n),o|=r.perform(u)}))}})),t.unfinished|=o}y.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},y.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,a=r?i.step:null,o=n&&n.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},y.getPipeline=function(t){return this._pipelineMap.get(t)},y.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:s,large:o}},y.restorePipelines=function(t){var e=this,i=e._pipelineMap=s();t.eachSeries((function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),k(e,t,t.dataTask)}))},y.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;r(this._allHandlers,(function(n){var r=t.get(n.uid)||t.set(n.uid,[]);n.reset&&b(this,n,r,e,i),n.overallReset&&S(this,n,r,e,i)}),this)},y.prepareView=function(t,e,i,n){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=i,a.api=n,r.__block=!t.incrementalPrepareRender,k(this,e,r)},y.performDataProcessorTasks=function(t,e){x(this,this._dataProcessorHandlers,t,e,{block:!0})},y.performVisualTasks=function(t,e,i){x(this,this._visualHandlers,t,e,i)},y.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},y.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var _=y.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function b(t,e,i,n,r){var a=i.seriesTaskMap||(i.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;function u(i){var o=i.uid,s=a.get(o)||a.set(o,c({plan:I,reset:D,count:C}));s.context={model:i,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},k(t,i,s)}e.createOnAllSeries?n.eachRawSeries(u):o?n.eachRawSeriesByType(o,u):l&&l(n,r).each(u);var h=t._pipelineMap;a.each((function(t,e){h.get(e)||(t.dispose(),a.removeKey(e))}))}function S(t,e,i,n,a){var o=i.overallTask=i.overallTask||c({reset:T});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),u=e.seriesType,h=e.getTargetSeries,d=!0,f=e.modifyOutputEnd;function p(e){var i=e.uid,n=l.get(i);n||(n=l.set(i,c({reset:w,onDirty:E})),o.dirty()),n.context={model:e,overallProgress:d,modifyOutputEnd:f},n.agent=o,n.__block=d,k(t,e,n)}u?n.eachRawSeriesByType(u,p):h?h(n,a).each(p):(d=!1,r(n.getSeries(),p));var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}function T(t){t.overallReset(t.ecModel,t.api,t.payload)}function w(t,e){return t.overallProgress&&A}function A(){this.agent.dirty(),this.getDownstream().dirty()}function E(){this.agent&&this.agent.dirty()}function I(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function D(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=v(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?a(e,(function(t,e){return L(e)})):M}var M=L(0);function L(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(n,a);else r&&r.progress&&r.progress(e,n)}}function C(t){return t.data.count()}function k(t,e,i){var n=e.uid,r=t._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 R(t){P=null;try{t(O,N)}catch(e){}return P}m.wrapStageHandler=function(t,e){return o(t)&&(t={overallReset:t,seriesType:R(t)}),t.uid=d("stageHandler"),e&&(t.visualType=e),t};var P,O={},N={};function F(t,e){for(var i in e.prototype)t[i]=l}F(O,f),F(N,p),O.eachSeriesByType=O.eachRawSeriesByType=function(t){P=t},O.eachComponent=function(t){"series"===t.mainType&&t.subType&&(P=t.subType)};var B=m;t.exports=B},"6a4c":function(t,e,i){var n=i("4527"),r=i("6d8b"),a=i("0fd3"),o=i("401b");function s(t,e,i){a.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(t,e,i){return new n(t,e,i)},l.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,r=1;r<e.length;r++){var a=e[r-1],s=e[r];n+=o.dist(a,s),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(t){return this._length},l.updateSymbolPosition=function(t){var e=t.__t,i=this._points,n=this._offsets,r=i.length;if(n){var a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,r-1);for(l=s;l>=0;l--)if(n[l]<=e)break;l=Math.min(l,r-2)}else{for(var l=a;l<r;l++)if(n[l]>e)break;l=Math.min(l-1,r-2)}o.lerp(t.position,i[l],i[l+1],(e-n[l])/(n[l+1]-n[l]));var u=i[l+1][0]-i[l][0],c=i[l+1][1]-i[l][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=e,t.ignore=!1}},r.inherits(s,a);var u=s;t.exports=u},"6acf":function(t,e,i){var n=i("eda2"),r=i("dcb3"),a=i("2306"),o=i("ff2e"),s=i("1687"),l=i("fab2"),u=i("6679"),c=r.extend({makeElOption:function(t,e,i,r,a){var s=i.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,u=s.polar,c=u.getOtherAxis(s),f=c.getExtent();l=s["dataTo"+n.capitalFirst(s.dim)](e);var p=r.get("type");if(p&&"none"!==p){var g=o.buildElStyle(r),v=d[p](s,u,l,f,g);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=r.get("label.margin"),y=h(e,i,r,u,m);o.buildLabelElOption(t,i,r,a,y)}});function h(t,e,i,n,r){var o=e.axis,u=o.dataToCoord(t),c=n.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,f,p=n.getRadiusAxis().getExtent();if("radius"===o.dim){var g=s.create();s.rotate(g,g,c),s.translate(g,g,[n.cx,n.cy]),h=a.applyTransform([u,-r],g);var v=e.getModel("axisLabel").get("rotate")||0,m=l.innerTextLayout(c,v*Math.PI/180,-1);d=m.textAlign,f=m.textVerticalAlign}else{var y=p[1];h=n.coordToPoint([y+r,u]);var x=n.cx,_=n.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",f=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}var d={line:function(t,e,i,n,r){return"angle"===t.dim?{type:"Line",shape:o.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,r){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-a/2)*s,(a/2-i)*s)}:{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,i-a/2,i+a/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",c);var f=c;t.exports=f},"6bd4":function(t,e){var i={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(t,e){if("world"===t){var n=i[e.name];if(n){var r=e.center;r[0]=n[0],r[1]=n[1]}}}t.exports=n},"6c12":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("fab2"),s=i("2306"),l=["axisLine","axisTickLabel","axisName"],u=r.extendComponentView({type:"radar",render:function(t,e,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=a.map(i,(function(t){var i=new o(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));a.each(n,(function(t){a.each(l,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var n=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),l=r.getModel("lineStyle"),u=o.getModel("areaStyle"),c=r.get("show"),h=o.get("show"),d=l.get("color"),f=u.get("color");d=a.isArray(d)?d:[d],f=a.isArray(f)?f:[f];var p=[],g=[];if("circle"===n)for(var v=i[0].getTicksCoords(),m=e.cx,y=e.cy,x=0;x<v.length;x++){if(c){var _=D(p,d,x);p[_].push(new s.Circle({shape:{cx:m,cy:y,r:v[x].coord}}))}if(h&&x<v.length-1){_=D(g,f,x);g[_].push(new s.Ring({shape:{cx:m,cy:y,r0:v[x].coord,r:v[x+1].coord}}))}}else{var b,S=a.map(i,(function(t,i){var n=t.getTicksCoords();return b=null==b?n.length-1:Math.min(n.length-1,b),a.map(n,(function(t){return e.coordToPoint(t.coord,i)}))})),T=[];for(x=0;x<=b;x++){for(var w=[],A=0;A<i.length;A++)w.push(S[A][x]);if(w[0]&&w.push(w[0].slice()),c){_=D(p,d,x);p[_].push(new s.Polyline({shape:{points:w}}))}if(h&&T){_=D(g,f,x-1);g[_].push(new s.Polygon({shape:{points:w.concat(T)}}))}T=w.slice().reverse()}}var E=l.getLineStyle(),I=u.getAreaStyle();a.each(g,(function(t,e){this.group.add(s.mergePath(t,{style:a.defaults({stroke:"none",fill:f[e%f.length]},I),silent:!0}))}),this),a.each(p,(function(t,e){this.group.add(s.mergePath(t,{style:a.defaults({fill:"none",stroke:d[e%d.length]},E),silent:!0}))}),this)}function D(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}}});t.exports=u},"6c12f":function(t,e,i){var n=i("3eba");i("2cfc"),i("adf4"),i("255c");var r=i("527a"),a=i("71b2"),o=i("d3f4");n.registerLayout(r),n.registerVisual(a),n.registerProcessor(o("themeRiver"))},"6cb7":function(t,e,i){var n=i("6d8b"),r=i("4319"),a=i("8918"),o=i("625e"),s=o.enableClassManagement,l=o.parseClassType,u=i("e0d3"),c=u.makeInner,h=i("f934"),d=i("de1c"),f=c(),p=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){r.call(this,t,e,i,n),this.uid=a.getUID("ec_cpt_model")},init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?h.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&h.mergeLayoutParam(t,r,i)},mergeOption:function(t,e){n.merge(this.option,t,!0);var i=this.layoutMode;i&&h.mergeLayoutParam(this.option,t,i)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=f(this);if(!t.defaultOption){var e=[],i=this.constructor;while(i){var r=i.prototype.defaultOption;r&&e.push(r),i=i.superClass}for(var a={},o=e.length-1;o>=0;o--)a=n.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});function g(t){var e=[];return n.each(p.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=n.map(e,(function(t){return l(t).main})),"dataset"!==t&&n.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}s(p,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(p),a.enableTopologicalTravel(p,g),n.mixin(p,d);var v=p;t.exports=v},"6cc5":function(t,e,i){var n=i("6d8b"),r=i("401b"),a=i("1687"),o=i("9850"),s=i("0cde"),l=r.applyTransform;function u(){s.call(this)}function c(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(t,e,i,n){var r=i.seriesModel,a=r?r.coordinateSystem:null;return a===this?a[t](n):null}n.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new o(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new o(t,e,i,n)},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new o(t,e,i,n)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,i=t.y+t.height/2;return[e,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),a=this.getZoom();n=r.applyTransform([],n,t),i=r.applyTransform([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[a,a],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),a.copy(this.transform||(this.transform=[]),e.transform||a.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],a.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?n.slice(t):a.create(),rawScale:n.slice(e.scale),rawPosition:n.slice(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?l(i,t,n):r.copy(i,t)},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},convertToPixel:n.curry(h,"dataToPoint"),convertFromPixel:n.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},n.mixin(c,s);var d=c;t.exports=d},"6cd8":function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("1418"),o=i("22da"),s=o.radialCoordinate,l=i("3eba"),u=i("e263"),c=i("6cc5"),h=i("01ef"),d=i("4a01"),f=i("c526"),p=f.onIrrelevantElement,g=i("4e08"),v=(g.__DEV__,i("3842")),m=v.parsePercent,y=r.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.childPoints,n=i.length,r=e.parentPoint,a=i[0],o=i[n-1];if(1===n)return t.moveTo(r[0],r[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=m(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(o[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;d<n-1;d++){var f=i[d];t.moveTo(f[0],f[1]),h[l]=f[l],t.lineTo(h[0],h[1])}}}),x=l.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new r.Group,this._controller=new d(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,i,n){var r=t.getData(),a=t.layoutInfo,o=this._mainGroup,s=t.get("layout");"radial"===s?o.attr("position",[a.x+a.width/2,a.y+a.height/2]):o.attr("position",[a.x,a.y]),this._updateViewCoordSys(t,a,s),this._updateController(t,e,i);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,edgeShape:t.get("edgeShape"),edgeForkPosition:t.get("edgeForkPosition"),orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add((function(e){_(r,e)&&S(r,e,null,o,t,u)})).update((function(e,i){var n=l.getItemGraphicEl(i);_(r,e)?S(r,e,n,o,t,u):n&&w(l,i,n,o,t,u)})).remove((function(e){var i=l.getItemGraphicEl(e);i&&w(l,e,i,o,t,u)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl((function(e,n){e.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})}))})),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),i=[];e.each((function(t){var n=e.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])}));var n=[],r=[];u.fromPoints(i,n,r);var a=this._min,o=this._max;r[0]-n[0]===0&&(n[0]=a?a[0]:n[0]-1,r[0]=o?o[0]:r[0]+1),r[1]-n[1]===0&&(n[1]=a?a[1]:n[1]-1,r[1]=o?o[1]:r[1]+1);var s=t.coordinateSystem=new c;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=n,this._max=r},_updateController:function(t,e,i){var n=this._controller,r=this._controllerHost,a=this.group;n.setPointerChecker((function(e,n,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(n,r)&&!p(e,i,t)})),n.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(e){h.updateViewOnPan(r,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}),this).on("zoom",(function(e){h.updateViewOnZoom(r,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)}),this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl((function(t,e){t.attr("scale",n)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,r=n&&n[0]||1,a=e.getZoom(),o=(a-1)*i+1;return o/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function _(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function b(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function S(t,e,i,n,o,s){var l=!i,u=t.tree.getNodeByDataIndex(e),c=u.getModel(),h=(s=b(u,c,s),t.tree.root),d=u.parentNode===h?u:u.parentNode||u,f=t.getItemGraphicEl(d.dataIndex),p=d.getLayout(),g=f?{x:f.position[0],y:f.position[1],rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,v=u.getLayout();l?(i=new a(t,e,s),i.attr("position",[g.x,g.y])):i.updateData(t,e,s),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=v.rawX,i.__radialRawY=v.rawY,n.add(i),t.setItemGraphicEl(e,i),r.updateProps(i,{position:[v.x,v.y]},o);var m=i.getSymbolPath();if("radial"===s.layout){var y,x,_=h.children[0],S=_.getLayout(),w=_.children.length;if(v.x===S.x&&!0===u.isExpand){var A={};A.x=(_.children[0].getLayout().x+_.children[w-1].getLayout().x)/2,A.y=(_.children[0].getLayout().y+_.children[w-1].getLayout().y)/2,y=Math.atan2(A.y-S.y,A.x-S.x),y<0&&(y=2*Math.PI+y),x=A.x<S.x,x&&(y-=Math.PI)}else y=Math.atan2(v.y-S.y,v.x-S.x),y<0&&(y=2*Math.PI+y),0===u.children.length||0!==u.children.length&&!1===u.isExpand?(x=v.x<S.x,x&&(y-=Math.PI)):(x=v.x>S.x,x||(y-=Math.PI));var E=x?"left":"right",I=s.labelModel.get("rotate"),D=I*(Math.PI/180);m.setStyle({textPosition:s.labelModel.get("position")||E,textRotation:null==I?-y:D,textOrigin:"center",verticalAlign:"middle"})}T(o,u,h,i,g,p,v,n,s)}function T(t,e,i,a,o,s,l,u,c){var h=c.edgeShape,d=a.__edge;if("curve"===h)e.parentNode&&e.parentNode!==i&&(d||(d=a.__edge=new r.BezierCurve({shape:A(c,o,o),style:n.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),r.updateProps(d,{shape:A(c,s,l),style:n.defaults({opacity:1},c.lineStyle)},t));else if("polyline"===h&&"orthogonal"===c.layout&&e!==i&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var f=e.children,p=[],g=0;g<f.length;g++){var v=f[g].getLayout();p.push([v.x,v.y])}d||(d=a.__edge=new y({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:c.orient,forkPosition:c.edgeForkPosition},style:n.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),r.updateProps(d,{shape:{parentPoint:[l.x,l.y],childPoints:p},style:n.defaults({opacity:1},c.lineStyle)},t)}u.add(d)}function w(t,e,i,n,a,o){var s,l=t.tree.getNodeByDataIndex(e),u=t.tree.root,c=l.getModel(),h=(o=b(l,c,o),l.parentNode===u?l:l.parentNode||l),d=o.edgeShape;while(s=h.getLayout(),null==s)h=h.parentNode===u?h:h.parentNode||h;r.updateProps(i,{position:[s.x+1,s.y+1]},a,(function(){n.remove(i),t.setItemGraphicEl(e,null)})),i.fadeOut(null,{keepLabel:!0});var f=t.getItemGraphicEl(h.dataIndex),p=f.__edge,g=i.__edge||(!1===h.isExpand||1===h.children.length?p:void 0);d=o.edgeShape;g&&("curve"===d?r.updateProps(g,{shape:A(o,s,s),style:{opacity:0}},a,(function(){n.remove(g)})):"polyline"===d&&"orthogonal"===o.layout&&r.updateProps(g,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},a,(function(){n.remove(g)})))}function A(t,e,i){var n,r,a,o,l,u,c,h,d=t.orient;if("radial"===t.layout){l=e.rawX,c=e.rawY,u=i.rawX,h=i.rawY;var f=s(l,c),p=s(l,c+(h-c)*t.curvature),g=s(u,h+(c-h)*t.curvature),v=s(u,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=e.x,c=e.y,u=i.x,h=i.y,"LR"!==d&&"RL"!==d||(n=l+(u-l)*t.curvature,r=c,a=u+(l-u)*t.curvature,o=h),"TB"!==d&&"BT"!==d||(n=l,r=c+(h-c)*t.curvature,a=u,o=h+(c-h)*t.curvature),{x1:l,y1:c,x2:u,y2:h,cpx1:n,cpy1:r,cpx2:a,cpy2:o}}t.exports=x},"6d8b":function(t,e){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,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,u=a.map,c=a.reduce,h={};function d(t,e){"createCanvas"===t&&(y=null),h[t]=e}function f(t){if(null==t||"object"!==typeof t)return t;var e=t,a=r.call(t);if("[object Array]"===a){if(!q(t)){e=[];for(var o=0,s=t.length;o<s;o++)e[o]=f(t[o])}}else if(n[a]){if(!q(t)){var l=t.constructor;if(t.constructor.from)e=l.from(t);else{e=new l(t.length);for(o=0,s=t.length;o<s;o++)e[o]=f(t[o])}}}else if(!i[a]&&!q(t)&&!B(t))for(var u in e={},t)t.hasOwnProperty(u)&&(e[u]=f(t[u]));return e}function p(t,e,i){if(!O(e)||!O(t))return i?f(e):t;for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],a=e[n];!O(a)||!O(r)||k(a)||k(r)||B(a)||B(r)||N(a)||N(r)||q(a)||q(r)?!i&&n in t||(t[n]=f(e[n],!0)):p(r,a,i)}return t}function g(t,e){for(var i=t[0],n=1,r=t.length;n<r;n++)i=p(i,t[n],e);return i}function v(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function m(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}var y,x=function(){return h.createCanvas()};function _(){return y||(y=x().getContext("2d")),y}function b(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function S(t,e){var i=t.prototype;function n(){}for(var r in n.prototype=e.prototype,t.prototype=new n,i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function T(t,e,i){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,m(t,e,i)}function w(t){if(t)return"string"!==typeof t&&"number"===typeof t.length}function A(t,e,i){if(t&&e)if(t.forEach&&t.forEach===o)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function E(t,e,i){if(t&&e){if(t.map&&t.map===u)return t.map(e,i);for(var n=[],r=0,a=t.length;r<a;r++)n.push(e.call(i,t[r],r,t));return n}}function I(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===c)return t.reduce(e,i,n);for(var r=0,a=t.length;r<a;r++)i=e.call(n,i,t[r],r,t);return i}}function D(t,e,i){if(t&&e){if(t.filter&&t.filter===s)return t.filter(e,i);for(var n=[],r=0,a=t.length;r<a;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function M(t,e,i){if(t&&e)for(var n=0,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return t[n]}function L(t,e){var i=l.call(arguments,2);return function(){return t.apply(e,i.concat(l.call(arguments)))}}function C(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}}function k(t){return"[object Array]"===r.call(t)}function R(t){return"function"===typeof t}function P(t){return"[object String]"===r.call(t)}function O(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function N(t){return!!i[r.call(t)]}function F(t){return!!n[r.call(t)]}function B(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function z(t){return t!==t}function V(t){for(var e=0,i=arguments.length;e<i;e++)if(null!=arguments[e])return arguments[e]}function G(t,e){return null!=t?t:e}function U(t,e,i){return null!=t?t:null!=e?e:i}function H(){return Function.call.apply(l,arguments)}function W(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function j(t,e){if(!t)throw new Error(e)}function K(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}h.createCanvas=function(){return document.createElement("canvas")};var Y="__ec_primitive__";function X(t){t[Y]=!0}function q(t){return t[Y]}function Z(t){var e=k(t);this.data={};var i=this;function n(t,n){e?i.set(t,n):i.set(n,t)}t instanceof Z?t.each(n):t&&A(t,n)}function $(t){return new Z(t)}function Q(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i}function J(){}Z.prototype={constructor:Z,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var i in void 0!==e&&(t=L(t,e)),this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}},e.$override=d,e.clone=f,e.merge=p,e.mergeAll=g,e.extend=v,e.defaults=m,e.createCanvas=x,e.getContext=_,e.indexOf=b,e.inherits=S,e.mixin=T,e.isArrayLike=w,e.each=A,e.map=E,e.reduce=I,e.filter=D,e.find=M,e.bind=L,e.curry=C,e.isArray=k,e.isFunction=R,e.isString=P,e.isObject=O,e.isBuiltInObject=N,e.isTypedArray=F,e.isDom=B,e.eqNaN=z,e.retrieve=V,e.retrieve2=G,e.retrieve3=U,e.slice=H,e.normalizeCssArray=W,e.assert=j,e.trim=K,e.setAsPrimitive=X,e.isPrimitive=q,e.createHashMap=$,e.concatArray=Q,e.noop=J},"6d9a":function(t,e){function i(t,e,i){var n,r=[t],a=[];while(n=r.pop())if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}while(n=a.pop())e(n,i)}function n(t,e){var i,n=[t];while(i=n.pop())if(e(i),i.isExpand){var r=i.children;if(r.length)for(var a=r.length-1;a>=0;a--)n.push(r[a])}}e.eachAfter=i,e.eachBefore=n},"6fda":function(t,e,i){var n=i("6d8b"),r=n.each,a="\0_ec_hist_store";function o(t,e){var i=c(t);r(e,(function(e,n){for(var r=i.length-1;r>=0;r--){var a=i[r];if(a[n])break}if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var s=o.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),i.push(e)}function s(t){var e=c(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return r(i,(function(t,i){for(var r=e.length-1;r>=0;r--){t=e[r][i];if(t){n[i]=t;break}}})),n}function l(t){t[a]=null}function u(t){return c(t).length}function c(t){var e=t[a];return e||(e=t[a]=[{}]),e}e.push=o,e.pop=s,e.clear=l,e.count=u},7023:function(t,e,i){var n=i("6d8b"),r={updateSelectedMap:function(t){this._targetList=n.isArray(t)?t.slice():[],this._selectTargetMap=n.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),n.createHashMap())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each((function(t){t.selected=!1})),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}};t.exports=r},"71ad":function(t,e,i){var n=i("6d8b"),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)"]}}},a={};a.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a.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),a.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},a.valueAxis),a.logAxis=n.defaults({scale:!0,logBase:10},a.valueAxis);var o=a;t.exports=o},"71b2":function(t,e,i){var n=i("6d8b"),r=n.createHashMap;function a(t){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),i=t.getRawData(),n=t.get("color"),a=r();e.each((function(t){a.set(e.getRawIndex(t),t)})),i.each((function(r){var o=i.getName(r),s=n[(t.nameMap.get(o)-1)%n.length];i.setItemVisual(r,"color",s);var l=a.get(r);null!=l&&e.setItemVisual(l,"color",s)}))}))}t.exports=a},7293:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("4f85")),a=i("6179"),o=i("6d8b"),s=o.concatArray,l=o.mergeAll,u=o.map,c=i("eda2"),h=c.encodeHTML,d=(i("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),f="undefined"===typeof Float64Array?Array:Float64Array;function p(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=u(e,(function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),l([i,t[0],t[1]])})))}var g=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],p(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),g.superApply(this,"init",arguments)},mergeOption:function(t){if(p(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,e.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),i=e.option instanceof Array?e.option:e.getShallow("coords");return i},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],r=0;r<n;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[i+2*r],e[r][1]=this._flatCoords[i+2*r+1];return n}var a=this._getCoordsFromItemModel(t);for(r=0;r<a.length;r++)e[r]=e[r]||[],e[r][0]=a[r][0],e[r][1]=a[r][1];return a.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"===typeof t[0]){for(var i=t.length,n=new d(i),r=new f(i),a=0,o=0,s=0,l=0;l<i;){s++;var u=t[l++];n[o++]=a+e,n[o++]=u;for(var c=0;c<u;c++){var h=t[l++],p=t[l++];r[a++]=h,r[a++]=p}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var i=new a(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],(function(t,e,n,r){if(t instanceof Array)return NaN;i.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),i},formatTooltip:function(t){var e=this.getData(),i=e.getItemModel(t),n=i.get("name");if(n)return n;var r=i.get("fromName"),a=i.get("toName"),o=[];return null!=r&&o.push(r),null!=a&&o.push(a),h(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},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;t.exports=v},"72b6":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2306"),o=i("eda2"),s=i("f934"),l=i("5f14"),u=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,i,n){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,i=o.normalizeCssArray(e.get("padding")||0),n=t.getBoundingRect();t.add(new a.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:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,i){i=i||{};var n=i.forceState,a=this.visualMapModel,o={};if("symbol"===e&&(o.symbol=a.get("itemSymbol")),"color"===e){var s=a.get("contentColor");o.color=s}function u(t){return o[t]}function c(t,e){o[t]=e}var h=a.controllerVisuals[n||a.getValueState(t)],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,e)&&r&&r.applyVisual(t,u,c)})),o[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:r.noop});t.exports=u},7368:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("625e"),o=a.enableClassCheck;function s(t){return"_EC_"+t}var l=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=l.prototype;function c(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function h(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(t,e){t=null==t?""+e:""+t;var i=this._nodesMap;if(!i[s(t)]){var n=new c(t,e);return n.hostGraph=this,this.nodes.push(n),i[s(t)]=n,n}},u.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},u.getNodeById=function(t){return this._nodesMap[s(t)]},u.addEdge=function(t,e,i){var n=this._nodesMap,r=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),c.isInstance(t)||(t=n[s(t)]),c.isInstance(e)||(e=n[s(e)]),t&&e){var a=t.id+"-"+e.id,o=new h(t,e,i);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),r[a]=o,o}},u.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},u.getEdge=function(t,e){c.isInstance(t)&&(t=t.id),c.isInstance(e)&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},u.eachNode=function(t,e){for(var i=this.nodes,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&t.call(e,i[r],r)},u.eachEdge=function(t,e){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&&t.call(e,i[r],r)},u.breadthFirstTraverse=function(t,e,i,n){if(c.isInstance(e)||(e=this._nodesMap[s(e)]),e){for(var r="out"===i?"outEdges":"in"===i?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(n,e,null)){var o=[e];while(o.length){var l=o.shift(),u=l[r];for(a=0;a<u.length;a++){var h=u[a],d=h.node1===l?h.node2:h.node1;if(!d.__visited){if(t.call(n,d,l))return;o.push(d),d.__visited=!0}}}}}},u.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(r=0,a=t.count();r<a;r++)i[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var i=n[e.getRawIndex(t)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0}));for(r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(r=0,a=e.count();r<a;r++)n[e.getRawIndex(r)].dataIndex=r},u.clone=function(){for(var t=new l(this._directed),e=this.nodes,i=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(n=0;n<i.length;n++){var r=i[n];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},c.prototype={constructor:c,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.data.getItemModel(this.dataIndex);return i.getModel(t)}}},h.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.edgeData.getItemModel(this.dataIndex);return i.getModel(t)}};var d=function(t,e){return{getValue:function(i){var n=this[t][e];return n.get(n.getDimension(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};r.mixin(c,d("hostGraph","data")),r.mixin(h,d("hostGraph","edgeData")),l.Node=c,l.Edge=h,o(c),o(h);var f=l;t.exports=f},"73ca":function(t,e,i){var n=i("2306"),r=i("7e5b");function a(t){this._ctor=t||r,this.group=new n.Group}var o=a.prototype;function s(t,e,i,n){var r=e.getItemLayout(i);if(d(r)){var a=new t._ctor(e,i,n);e.setItemGraphicEl(i,a),t.group.add(a)}}function l(t,e,i,n,r,a){var o=e.getItemGraphicEl(n);d(i.getItemLayout(r))?(o?o.updateData(i,r,a):o=new t._ctor(i,r,a),i.setItemGraphicEl(r,o),t.group.add(o)):t.group.remove(o)}function u(t){return t.animators&&t.animators.length>0}function c(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function h(t){return isNaN(t[0])||isNaN(t[1])}function d(t){return!h(t[0])&&!h(t[1])}o.isPersistent=function(){return!0},o.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var r=c(t);t.diff(n).add((function(i){s(e,t,i,r)})).update((function(i,a){l(e,n,t,a,i,r)})).remove((function(t){i.remove(n.getItemGraphicEl(t))})).execute()},o.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},o.incrementalPrepareUpdate=function(t){this._seriesScope=c(t),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(t,e){function i(t){t.isGroup||u(t)||(t.incremental=t.useHoverLayer=!0)}for(var n=t.start;n<t.end;n++){var r=e.getItemLayout(n);if(d(r)){var a=new this._ctor(e,n,this._seriesScope);a.traverse(i),this.group.add(a),e.setItemGraphicEl(n,a)}}},o.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var f=a;t.exports=f},7419:function(t,e,i){var n=i("3eba"),r=i("b336");i("bc5f"),i("ab05"),i("307a"),i("3cd6"),i("d6ef"),n.registerPreprocessor(r)},"74cb":function(t,e){var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}},n=i;t.exports=n},7661:function(t,e,i){var n=i("0c41"),r=i("3eba"),a=r.extendComponentView({type:"geo",init:function(t,e){var i=new n(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=a},"767c":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("607d"),o=i("29a8"),s=i("2145"),l=o.toolbox.dataView,u=new Array(60).join("-"),c="\t";function h(t){var e={},i=[],n=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var a=r.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o].series.push(t)}else i.push(t)}})),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function d(t){var e=[];return r.each(t,(function(t,i){var n=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(r.map(t.series,(function(t){return t.name}))),l=[n.model.getCategories()];r.each(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var u=[s.join(c)],h=0;h<l[0].length;h++){for(var d=[],f=0;f<l.length;f++)d.push(l[f][h]);u.push(d.join(c))}e.push(u.join("\n"))})),e.join("\n\n"+u+"\n\n")}function f(t){return r.map(t,(function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],a=e.getName(r),o=0;o<t-1;o++)n[o]=arguments[o];i.push((a?a+c:"")+n.join(c))})),i.join("\n")})).join("\n\n"+u+"\n\n")}function p(t){var e=h(t);return{value:r.filter([d(e.seriesGroupByCategoryAxis),f(e.other)],(function(t){return t.replace(/[\n\t\s]/g,"")})).join("\n\n"+u+"\n\n"),meta:e.meta}}function g(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function v(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(c)>=0)return!0}var m=new RegExp("["+c+"]+","g");function y(t){for(var e=t.split(/\n+/g),i=g(e.shift()).split(m),n=[],a=r.map(i,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var s=g(e[o]).split(m);n.push(s.shift());for(var l=0;l<s.length;l++)a[l]&&(a[l].data[o]=s[l])}return{series:a,categories:n}}function x(t){for(var e=t.split(/\n+/g),i=g(e.shift()),n=[],r=0;r<e.length;r++){var a=g(e[r]);if(a){var o,s=a.split(m),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},o=n[r].value):o=n[r]=[];for(var c=0;c<s.length;c++)o.push(+s[c]);1===o.length&&(u?n[r].value=o[0]:n[r]=o[0])}}return{name:i,data:n}}function _(t,e){var i=t.split(new RegExp("\n*"+u+"\n*","g")),n={series:[]};return r.each(i,(function(t,i){if(v(t)){var r=y(t),a=e[i],o=a.axisDim+"Axis";a&&(n[o]=n[o]||[],n[o][a.axisIndex]={data:r.categories},n.series=n.series.concat(r.series))}else{r=x(t);n.series.push(r)}})),n}function b(t){this._dom=null,this.model=t}function S(t,e){return r.map(t,(function(t,i){var n=e&&e[i];if(r.isObject(n)&&!r.isArray(n)){var a=r.isObject(t)&&!r.isArray(t);a||(t={value:t});var o=null!=n.name&&null==t.name;return t=r.defaults(t,n),o&&delete t.name,t}return t}))}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(t,e){var i=e.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=n.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var h=n.get("optionToContent"),d=n.get("contentToOption"),f=p(t);if("function"===typeof h){var g=h(e.getOption());"string"===typeof g?u.innerHTML=g:r.isDom(g)&&u.appendChild(g)}else u.appendChild(c),c.readOnly=n.get("readOnly"),c.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",c.style.color=n.get("textColor"),c.style.borderColor=n.get("textareaBorderColor"),c.style.backgroundColor=n.get("textareaColor"),c.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",x=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var S=this;function T(){i.removeChild(o),S._dom=null}a.addEventListener(x,"click",T),a.addEventListener(b,"click",(function(){var t;try{t="function"===typeof d?d(u,e.getOption()):_(c.value,v)}catch(i){throw T(),new Error("Data view format error "+i)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),T()})),x.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y,x.style.cssText=y,!n.get("readOnly")&&m.appendChild(b),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},b.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},b.prototype.dispose=function(t,e){this.remove(t,e)},s.register("dataView",b),n.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var i=[];r.each(t.newOption.series,(function(t){var n=e.getSeriesByName(t.name)[0];if(n){var a=n.get("data");i.push({name:t.name,data:S(t.data,a)})}else i.push(r.extend({type:"scatter"},t))})),e.mergeOption(r.defaults({series:i},t.newOption))}));var T=b;t.exports=T},"76a5":function(t,e,i){var n=i("19eb"),r=i("6d8b"),a=i("e86a"),o=i("a73c"),s=i("82eb"),l=s.ContextCachedBy,u=function(t){n.call(this,t)};u.prototype={constructor:u,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&o.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),o.needDrawText(n,i)?(this.setTransform(t),o.renderText(this,t,n,i,null,e),this.restoreTransform(t)):t.__attrCachedBy=l.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var i=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},r.inherits(u,n);var c=u;t.exports=c},7782:function(t,e,i){var n=i("3eba"),r=i("6d8b");function a(t,e){r.each(e,(function(e){e.update="updateView",n.registerAction(e,(function(i,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:i},(function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each((function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1}))})),{name:i.name,selected:r,seriesId:i.seriesId}}))}))}t.exports=a},7887:function(t,e,i){var n=i("6d8b"),r=i("84ce");function a(t,e,i){r.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}n.inherits(a,r);var o=a;t.exports=o},7891:function(t,e,i){var n=i("6d8b");function r(t){var e=t.polar;if(e){n.isArray(e)||(e=[e]);var i=[];n.each(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],n.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):i.push(e)})),t.polar=i}n.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}t.exports=r},"78f0":function(t,e,i){var n=i("3eba");i("d9f1");var r=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this.ecModel;return i.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=r},7919:function(t,e,i){var n=i("f934"),r=n.getLayoutRect,a=n.box,o=n.positionElement,s=i("eda2"),l=i("2306");function u(t,e,i){var n=e.getBoxLayoutParams(),s=e.get("padding"),l={width:i.getWidth(),height:i.getHeight()},u=r(n,l,s);a(e.get("orient"),t,e.get("itemGap"),u.width,u.height),o(t,n,l,s)}function c(t,e){var i=s.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");t=new l.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return t}e.layout=u,e.makeBackground=c},"792e":function(t,e,i){i("1ccf"),i("14d3")},"7b0c":function(t,e,i){var n=i("6cc5"),r=i("f934"),a=r.getLayoutRect,o=i("e263");function s(t,e,i){var n=t.getBoxLayoutParams();return n.aspect=i,a(n,{width:e.getWidth(),height:e.getHeight()})}function l(t,e){var i=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var a=t.getData(),l=a.mapArray((function(t){var e=a.getItemModel(t);return[+e.get("x"),+e.get("y")]})),u=[],c=[];o.fromPoints(l,u,c),c[0]-u[0]===0&&(c[0]+=1,u[0]-=1),c[1]-u[1]===0&&(c[1]+=1,u[1]-=1);var h=(c[0]-u[0])/(c[1]-u[1]),d=s(t,e,h);isNaN(h)&&(u=[d.x,d.y],c=[d.x+d.width,d.y+d.height]);var f=c[0]-u[0],p=c[1]-u[1],g=d.width,v=d.height,m=t.coordinateSystem=new n;m.zoomLimit=t.get("scaleLimit"),m.setBoundingRect(u[0],u[1],f,p),m.setViewRect(d.x,d.y,g,v),m.setCenter(t.get("center")),m.setZoom(t.get("zoom")),i.push(m)}})),i}t.exports=l},"7c4d":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("fc82"),o=i("bd9e"),s=i("6fda"),l=i("ef6a"),u=i("29a8"),c=i("2145");i("dd39");var h=u.toolbox.dataZoom,d=r.each,f="\0_ec_\0toolbox-dataZoom_";function p(t,e,i){(this._brushController=new a(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(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,x(t,e,this,n,i),y(t,e)},g.onclick=function(t,e,i){v[i].call(this)},g.remove=function(t,e){this._brushController.unmount()},g.dispose=function(t,e){this._brushController.dispose()};var v={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function m(t){var e={};return r.each(["xAxisIndex","yAxisIndex"],(function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(!1===e[i]||"none"===e[i])&&(e[i]=[])})),e}function y(t,e){t.setIconStatus("back",s.count(e)>1?"emphasis":"normal")}function x(t,e,i,n,r){var a=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(a="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new o(m(t.option),e,{include:["grid"]});i._brushController.setPanels(s.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!a&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}g._onBrush=function(t,e){if(e.isEnd&&t.length){var i={},n=this.ecModel;this._brushController.updateCovers([]);var r=new o(m(this.model.option),n,{include:["grid"]});r.matchOutputRanges(t,n,(function(t,e,i){if("cartesian2d"===i.type){var n=t.brushType;"rect"===n?(a("x",i,e[0]),a("y",i,e[1])):a({lineX:"x",lineY:"y"}[n],i,e)}})),s.push(n,i),this._dispatchZoomAction(i)}function a(t,e,r){var a=e.getAxis(t),o=a.model,s=u(t,o,n),c=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=l(0,r.slice(),a.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}function u(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){var r=i.getAxisModel(t,e.componentIndex);r&&(n=i)})),n}},g._dispatchZoomAction=function(t){var e=[];d(t,(function(t,i){e.push(r.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},c.register("dataZoom",p),n.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);r.isArray(e)||(t.dataZoom=e=[e]);var i=t.toolbox;if(i&&(r.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;a("xAxis",n),a("yAxis",n)}}function a(t,i){if(i){var n=t+"Index",a=i[n];null==a||"all"===a||r.isArray(a)||(a=!1===a||"none"===a?[]:[a]),o(t,(function(o,s){if(null==a||"all"===a||-1!==r.indexOf(a,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:f+t+s};l[n]=s,e.push(l)}}))}}function o(e,i){var n=t[e];r.isArray(n)||(n=n?[n]:[]),d(n,i)}}));var _=p;t.exports=_},"7d6d":function(t,e){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function n(t,e,n){return i.hasOwnProperty(e)?n*t.dpr:n}t.exports=n},"7db0":function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").find,a=i("44d2"),o=i("ae40"),s="find",l=!0,u=o(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!u},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a(s)},"7dcf":function(t,e,i){var n=i("b12f"),r=n.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,i={};function n(t,e,i,n){for(var r,a=0;a<i.length;a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}return t.eachTargetAxis((function(t,r){var a=e.getComponent(t.axis,r);if(a){var o=a.getCoordSysModel();o&&n(o,a,i[o.mainType]||(i[o.mainType]=[]),o.componentIndex)}}),this),i}});t.exports=r},"7e32":function(t,e,i){var n=i("3eba");i("43b8"),i("8e77"),n.registerPreprocessor((function(t){t.markArea=t.markArea||{}}))},"7e5b":function(t,e,i){var n=i("6d8b"),r=i("401b"),a=i("a15a"),o=i("7f91"),s=i("2306"),l=i("3842"),u=l.round,c=["fromSymbol","toSymbol"];function h(t){return"_"+t+"Type"}function d(t,e,i){var r=e.getItemVisual(i,t);if(r&&"none"!==r){var o=e.getItemVisual(i,"color"),s=e.getItemVisual(i,t+"Size"),l=e.getItemVisual(i,t+"Rotate");n.isArray(s)||(s=[s,s]);var u=a.createSymbol(r,-s[0]/2,-s[1]/2,s[0],s[1],o);return u.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,u.name=t,u}}function f(t){var e=new o({name:"line",subPixelOptimize:!0});return p(e.shape,t),e}function p(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=NaN,t.cpy1=NaN)}function g(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){var a=1,o=this.parent;while(o)o.scale&&(a/=o.scale[0]),o=o.parent;var s=t.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,u=s.pointAt(0),c=s.pointAt(l),h=r.sub([],c,u);if(r.normalize(h,h),e){e.attr("position",u);var d=e.__specifiedRotation;if(null==d){var f=s.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(f[1],f[0]))}else e.attr("rotation",d);e.attr("scale",[a*l,a*l])}if(i){i.attr("position",c);d=i.__specifiedRotation;if(null==d){f=s.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(f[1],f[0]))}else i.attr("rotation",d);i.attr("scale",[a*l,a*l])}if(!n.ignore){var p,g,v,m;n.attr("position",c);var y=n.__labelDistance,x=y[0]*a,_=y[1]*a,b=l/2,S=(f=s.tangentAt(b),[f[1],-f[0]]),T=s.pointAt(b);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var w,A=f[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var E=-Math.atan2(f[1],f[0]);c[0]<u[0]&&(E=Math.PI+E),n.attr("rotation",E)}switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-_,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=_,v="top";break;default:w=0,v="middle"}switch(n.__position){case"end":p=[h[0]*x+c[0],h[1]*_+c[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]*x+u[0],-h[1]*_+u[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=[x*A+u[0],u[1]+w],g=f[0]<0?"right":"left",m=[-x*A,-w];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[T[0],T[1]+w],g="center",m=[0,-w];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-x*A+c[0],c[1]+w],g=f[0]>=0?"right":"left",m=[x*A,-w];break}n.attr({style:{textVerticalAlign:n.__verticalAlign||v,textAlign:n.__textAlign||g},position:p,scale:[a,a],origin:m})}}}}function v(t,e,i){s.Group.call(this),this._createLine(t,e,i)}var m=v.prototype;m.beforeUpdate=g,m._createLine=function(t,e,i){var r=t.hostModel,a=t.getItemLayout(e),o=f(a);o.shape.percent=0,s.initProps(o,{shape:{percent:1}},r,e),this.add(o);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),n.each(c,(function(i){var n=d(i,t,e);this.add(n),this[h(i)]=t.getItemVisual(e,i)}),this),this._updateCommonStl(t,e,i)},m.updateData=function(t,e,i){var r=t.hostModel,a=this.childOfName("line"),o=t.getItemLayout(e),l={shape:{}};p(l.shape,o),s.updateProps(a,l,r,e),n.each(c,(function(i){var n=t.getItemVisual(e,i),r=h(i);if(this[r]!==n){this.remove(this.childOfName(i));var a=d(i,t,e);this.add(a)}this[r]=n}),this),this._updateCommonStl(t,e,i)},m._updateCommonStl=function(t,e,i){var r=t.hostModel,a=this.childOfName("line"),o=i&&i.lineStyle,l=i&&i.hoverLineStyle,h=i&&i.labelModel,d=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var f=t.getItemModel(e);o=f.getModel("lineStyle").getLineStyle(),l=f.getModel("emphasis.lineStyle").getLineStyle(),h=f.getModel("label"),d=f.getModel("emphasis.label")}var p=t.getItemVisual(e,"color"),g=n.retrieve3(t.getItemVisual(e,"opacity"),o.opacity,1);a.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:g},o)),a.hoverStyle=l,n.each(c,(function(t){var e=this.childOfName(t);e&&(e.setColor(p),e.setStyle({opacity:g}))}),this);var v,m,y=h.getShallow("show"),x=d.getShallow("show"),_=this.childOfName("label");if((y||x)&&(v=p||"#000",m=r.getFormattedLabel(e,"normal",t.dataType),null==m)){var b=r.getRawValue(e);m=null==b?t.getName(e):isFinite(b)?u(b):b}var S=y?m:null,T=x?n.retrieve2(r.getFormattedLabel(e,"emphasis",t.dataType),m):null,w=_.style;if(null!=S||null!=T){s.setTextStyle(_.style,h,{text:S},{autoColor:v}),_.__textAlign=w.textAlign,_.__verticalAlign=w.textVerticalAlign,_.__position=h.get("position")||"middle";var A=h.get("distance");n.isArray(A)||(A=[A,A]),_.__labelDistance=A}_.hoverStyle=null!=T?{text:T,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},_.ignore=!y&&!x,s.setHoverStyle(this)},m.highlight=function(){this.trigger("emphasis")},m.downplay=function(){this.trigger("normal")},m.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},m.setLinePoints=function(t){var e=this.childOfName("line");p(e.shape,t),e.dirty()},n.inherits(v,s.Group);var y=v;t.exports=y},"7e63":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=r.each,o=r.filter,s=r.map,l=r.isArray,u=r.indexOf,c=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("e0d3"),x=i("4319"),_=i("6cb7"),b=i("8971"),S=i("e47b"),T=i("0f99"),w=T.resetSourceDefaulter,A="\0_ec_inner",E=x.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new x(i),this._optionManager=n},setOption:function(t,e){f(!(A in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):M.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&a(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,n=[];function r(n,r){var o=y.normalizeToArray(t[n]),s=y.mappingToExists(i.get(n),o);y.makeIdAndName(s),a(s,(function(t,e){var i=t.option;c(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=C(n,i,t.exist))}));var l=L(i,r);e[n]=[],i.set(n,[]),a(s,(function(t,r){var a=t.exist,o=t.option;if(f(c(o)||a,"Empty component definition"),o){var s=_.getClass(n,t.keyInfo.subType,!0);if(a&&a.constructor===s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var u=v({dependentModels:l,componentIndex:r},t.keyInfo);a=new s(o,this,this,u),v(a,u),a.init(o,this,this,u),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);i.get(n)[r]=a,e[n][r]=a.option}),this),"series"===n&&k(this,i.get("series"))}w(this),a(t,(function(t,i){null!=t&&(_.hasClass(i)?i&&n.push(i):e[i]=null==e[i]?p(t):g(e[i],t,!0))})),_.topologicalTravel(n,_.getAllClassMainTypes(),r,this),this._seriesIndicesMap=d(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=p(this.option);return a(t,(function(e,i){if(_.hasClass(i)){e=y.normalizeToArray(e);for(var n=e.length-1;n>=0;n--)y.isIdInner(e[n])&&e.splice(n,1);t[i]=e}})),delete t[A],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,r=t.id,a=t.name,c=this._componentsMap.get(e);if(!c||!c.length)return[];if(null!=n)l(n)||(n=[n]),i=o(s(n,(function(t){return c[t]})),(function(t){return!!t}));else if(null!=r){var h=l(r);i=o(c,(function(t){return h&&u(r,t.id)>=0||!h&&t.id===r}))}else if(null!=a){var d=l(a);i=o(c,(function(t){return d&&u(a,t.name)>=0||!d&&t.name===a}))}else i=c.slice();return R(i,t)},findComponents:function(t){var e=t.query,i=t.mainType,n=a(e),r=n?this.queryComponents(n):this._componentsMap.get(i);return s(R(r,t));function a(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}function s(e){return t.filter?o(e,t.filter):e}},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"===typeof t)i=e,e=t,n.each((function(t,n){a(t,(function(t,r){e.call(i,n,t,r)}))}));else if(h(t))a(n.get(t),e,i);else if(c(t)){var r=this.findComponents(t);a(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return o(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return o(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){P(this),a(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){a(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){P(this),a(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)}),this)},eachRawSeriesByType:function(t,e,i){return a(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return P(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){P(this);var i=o(this._componentsMap.get("series"),t,e);k(this,i)},restoreData:function(t){var e=this._componentsMap;k(this,e.get("series"));var i=[];e.each((function(t,e){i.push(e)})),_.topologicalTravel(i,_.getAllClassMainTypes(),(function(i,n){a(e.get(i),(function(e){("series"!==i||!I(e,t))&&e.restoreData()}))}))}});function I(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function D(t,e){var i=t.color&&!t.colorLayer;a(e,(function(e,n){"colorLayer"===n&&i||_.hasClass(n)||("object"===typeof e?t[n]=t[n]?g(t[n],e,!1):p(e):null==t[n]&&(t[n]=e))}))}function M(t){t=t,this.option={},this.option[A]=1,this._componentsMap=d({series:[]}),this._seriesIndices,this._seriesIndicesMap,D(t,this._theme.option),g(t,b,!1),this.mergeOption(t)}function L(t,e){l(e)||(e=e?[e]:[]);var i={};return a(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}function C(t,e,i){var n=e.type?e.type:i?i.subType:_.determineSubType(t,e);return n}function k(t,e){t._seriesIndicesMap=d(t._seriesIndices=s(e,(function(t){return t.componentIndex}))||[])}function R(t,e){return e.hasOwnProperty("subType")?o(t,(function(t){return t.subType===e.subType})):t}function P(t){}m(E,S);var O=E;t.exports=O},"7f59":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("e0d3"),s=i("2306"),l=i("f934"),u=i("3842"),c=u.parsePercent,h={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};r.registerPreprocessor((function(t){var e=t.graphic;a.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var d=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,d.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,r=i.elements=e?[]:i.elements,s=[];this._flatten(n,s);var l=o.mappingToExists(r,s);o.makeIdAndName(l);var u=this._elOptionsToUpdate=[];a.each(l,(function(t,e){var i=t.option;i&&(u.push(i),m(t,i),y(r,e,i),x(r[e],i))}),this);for(var c=r.length-1;c>=0;c--)null==r[c]?r.splice(c,1):delete r[c].$action},_flatten:function(t,e,i){a.each(t,(function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function f(t,e,i,n){var r=i.type,a=h.hasOwnProperty(r)?h[r]:s.getShapeClass(r),o=new a(i);e.add(o),n.set(t,o),o.__ecGraphicId=t}function p(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){p(t,e)})),e.removeKey(t.__ecGraphicId),i.remove(t))}function g(t){return t=a.extend({},t),a.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(e){delete t[e]})),t}function v(t,e){var i;return a.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function m(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function y(t,e,i){var n=a.extend({},i),r=t[e],o=i.$action||"merge";"merge"===o?r?(a.merge(r,n,!0),l.mergeLayoutParam(r,n,{ignoreSize:!0}),l.copyLayoutParams(i,r)):t[e]=n:"replace"===o?t[e]=n:"remove"===o&&r&&(t[e]=null)}function x(t,e){t&&(t.hv=e.hv=[v(e,["left","right"]),v(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function _(t,e,i){var n=t.eventData;t.silent||t.ignore||n||(n=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=t.info)}r.extendComponentView({type:"graphic",init:function(t,e){this._elMap=a.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group;a.each(e,(function(e){var r=e.$action,a=e.id,o=i.get(a),s=e.parentId,l=null!=s?i.get(s):n,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var c=g(e);r&&"merge"!==r?"replace"===r?(p(o,i),f(a,l,c,i)):"remove"===r&&p(o,i):o?o.attr(c):f(a,l,c,i);var h=i.get(a);h&&(h.__ecGraphicWidthOption=e.width,h.__ecGraphicHeightOption=e.height,_(h,t,e))}))}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,r=this._elMap,a=e.getWidth(),o=e.getHeight(),s=0;s<i.length;s++){var u=i[s],h=r.get(u.id);if(h&&h.isGroup){var d=h.parent,f=d===n;h.__ecGraphicWidth=c(h.__ecGraphicWidthOption,f?a:d.__ecGraphicWidth)||0,h.__ecGraphicHeight=c(h.__ecGraphicHeightOption,f?o:d.__ecGraphicHeight)||0}}for(s=i.length-1;s>=0;s--){u=i[s],h=r.get(u.id);if(h){d=h.parent;var p=d===n?{width:a,height:o}:{width:d.__ecGraphicWidth,height:d.__ecGraphicHeight};l.positionElement(h,u,p,null,{hv:u.hv,boundingMode:u.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){p(e,t)})),this._elMap=a.createHashMap()},dispose:function(){this._clear()}})},"7f72":function(t,e,i){i("6932"),i("3a56"),i("7dcf"),i("a18f"),i("32a1"),i("2c17"),i("9e87")},"7f91":function(t,e,i){var n=i("2306"),r=i("401b"),a=n.Line.prototype,o=n.BezierCurve.prototype;function s(t){return isNaN(+t.cpx1)||isNaN(+t.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(t,e){this[s(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:a.buildPath,_buildPathCurve:o.buildPath,pointAt:function(t){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:a.pointAt,_pointAtCurve:o.pointAt,tangentAt:function(t){var e=this.shape,i=s(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return r.normalize(i,i)},_tangentAtCurve:o.tangentAt});t.exports=l},"7f96":function(t,e,i){var n=i("6d8b"),r=n.isFunction;function a(t,e,i){return{seriesType:t,performRawSeries:!0,reset:function(t,n,a){var o=t.getData(),s=t.get("symbol"),l=t.get("symbolSize"),u=t.get("symbolKeepAspect"),c=t.get("symbolRotate"),h=r(s),d=r(l),f=r(c),p=h||d||f,g=!h&&s?s:e,v=d?null:l;if(o.setVisual({legendSymbol:i||g,symbol:g,symbolSize:v,symbolKeepAspect:u,symbolRotate:c}),!n.isSeriesFiltered(t))return{dataEach:o.hasItemOption||p?m:null};function m(e,i){if(p){var n=t.getRawValue(i),r=t.getDataParams(i);h&&e.setItemVisual(i,"symbol",s(n,r)),d&&e.setItemVisual(i,"symbolSize",l(n,r)),f&&e.setItemVisual(i,"symbolRotate",c(n,r))}if(e.hasItemOption){var a=e.getItemModel(i),o=a.getShallow("symbol",!0),u=a.getShallow("symbolSize",!0),g=a.getShallow("symbolRotate",!0),v=a.getShallow("symbolKeepAspect",!0);null!=o&&e.setItemVisual(i,"symbol",o),null!=u&&e.setItemVisual(i,"symbolSize",u),null!=g&&e.setItemVisual(i,"symbolRotate",g),null!=v&&e.setItemVisual(i,"symbolKeepAspect",v)}}}}}t.exports=a},"80f0":function(t,e){function i(t){return t}function n(t,e,n,r,a){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=a}function r(t,e,i,n,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[n](t[a],a),s=e[o];null==s?(i.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];for(r(t,i,a,"_oldKeyGetter",this),r(e,n,o,"_newKeyGetter",this),c=0;c<t.length;c++){var s=a[c],l=n[s];if(null!=l){var u=l.length;u?(1===u&&(n[s]=null),l=l.shift()):n[s]=null,this._update&&this._update(l,c)}else this._remove&&this._remove(c)}for(var c=0;c<o.length;c++){s=o[c];if(n.hasOwnProperty(s)){l=n[s];if(null==l)continue;if(l.length){var h=0;for(u=l.length;h<u;h++)this._add&&this._add(l[h])}else this._add&&this._add(l)}}}};var a=n;t.exports=a},"81ac":function(t,e,i){var n=i("f934"),r=i("6d8b"),a=i("e0d3"),o=a.groupData;function s(t,e,i){t.eachSeriesByType("sankey",(function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),a=l(t,e);t.layoutInfo=a;var o=a.width,s=a.height,h=t.getGraph(),d=h.nodes,f=h.edges;c(d);var p=r.filter(d,(function(t){return 0===t.getLayout().value})),g=0!==p.length?0:t.get("layoutIterations"),v=t.get("orient"),m=t.get("nodeAlign");u(d,f,i,n,o,s,g,v,m)}))}function l(t,e){return n.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e,i,n,r,a,o,s,l){h(t,e,i,r,a,s,l),v(t,e,a,r,n,o,s),M(t,s)}function c(t){r.each(t,(function(t){var e=I(t.outEdges,E),i=I(t.inEdges,E),n=t.getValue()||0,r=Math.max(e,i,n);t.setLayout({value:r},!0)}))}function h(t,e,i,n,r,a,o){for(var s=[],l=[],u=[],c=[],h=0,d=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&u.push(t[p]);var v=-1;while(u.length){for(var m=0;m<u.length;m++){var y=u[m],x=y.hostGraph.data.getRawDataItem(y.dataIndex),_=null!=x.depth&&x.depth>=0;_&&x.depth>v&&(v=x.depth),y.setLayout({depth:_?x.depth:h},!0),"vertical"===a?y.setLayout({dy:i},!0):y.setLayout({dx:i},!0);for(var b=0;b<y.outEdges.length;b++){var S=y.outEdges[b],T=e.indexOf(S);s[T]=0;var w=S.node2,A=t.indexOf(w);0===--l[A]&&c.indexOf(w)<0&&c.push(w)}}++h,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var E=v>h-1?v:h-1;o&&"left"!==o&&f(t,o,a,E);d="vertical"===a?(r-i)/E:(n-i)/E;g(t,d,a)}function d(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function f(t,e,i,n){if("right"===e){var a=[],o=t,s=0;while(o.length){for(var l=0;l<o.length;l++){var u=o[l];u.setLayout({skNodeHeight:s},!0);for(var c=0;c<u.inEdges.length;c++){var h=u.inEdges[c];a.indexOf(h.node1)<0&&a.push(h.node1)}}o=a,a=[],++s}r.each(t,(function(t){d(t)||t.setLayout({depth:Math.max(0,n-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&p(t,n)}function p(t,e){r.each(t,(function(t){d(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function g(t,e,i){r.each(t,(function(t){var n=t.getLayout().depth*e;"vertical"===i?t.setLayout({y:n},!0):t.setLayout({x:n},!0)}))}function v(t,e,i,n,r,a,o){var s=m(t,o);y(s,e,i,n,r,o),x(s,r,i,n,o);for(var l=1;a>0;a--)l*=.99,_(s,l,o),x(s,r,i,n,o),D(s,l,o),x(s,r,i,n,o)}function m(t,e){var i=[],n="vertical"===e?"y":"x",a=o(t,(function(t){return t.getLayout()[n]}));return a.keys.sort((function(t,e){return t-e})),r.each(a.keys,(function(t){i.push(a.buckets.get(t))})),i}function y(t,e,i,n,a,o){var s=1/0;r.each(t,(function(t){var e=t.length,l=0;r.each(t,(function(t){l+=t.getLayout().value}));var u="vertical"===o?(n-(e-1)*a)/l:(i-(e-1)*a)/l;u<s&&(s=u)})),r.each(t,(function(t){r.each(t,(function(t,e){var i=t.getLayout().value*s;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))}))})),r.each(e,(function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)}))}function x(t,e,i,n,a){var o="vertical"===a?"x":"y";r.each(t,(function(t){var r,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===a?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[o],l>0&&(r=s.getLayout()[o]+l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;var f="vertical"===a?n:i;if(l=u-e-f,l>0)for(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0),u=r,d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[o]+s.getLayout()[h]+e-u,l>0&&(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),u=s.getLayout()[o]}))}function _(t,e,i){r.each(t.slice().reverse(),(function(t){r.each(t,(function(t){if(t.outEdges.length){var n=I(t.outEdges,b,i)/I(t.outEdges,E,i);if(isNaN(n)){var r=t.outEdges.length;n=r?I(t.outEdges,S,i)/r:0}if("vertical"===i){var a=t.getLayout().x+(n-A(t,i))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(n-A(t,i))*e;t.setLayout({y:o},!0)}}}))}))}function b(t,e){return A(t.node2,e)*t.getValue()}function S(t,e){return A(t.node2,e)}function T(t,e){return A(t.node1,e)*t.getValue()}function w(t,e){return A(t.node1,e)}function A(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function E(t){return t.getValue()}function I(t,e,i){var n=0,r=t.length,a=-1;while(++a<r){var o=+e.call(t,t[a],i);isNaN(o)||(n+=o)}return n}function D(t,e,i){r.each(t,(function(t){r.each(t,(function(t){if(t.inEdges.length){var n=I(t.inEdges,T,i)/I(t.inEdges,E,i);if(isNaN(n)){var r=t.inEdges.length;n=r?I(t.inEdges,w,i)/r:0}if("vertical"===i){var a=t.getLayout().x+(n-A(t,i))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(n-A(t,i))*e;t.setLayout({y:o},!0)}}}))}))}function M(t,e){var i="vertical"===e?"x":"y";r.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[i]-e.node2.getLayout()[i]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[i]-e.node1.getLayout()[i]}))})),r.each(t,(function(t){var e=0,i=0;r.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),r.each(t.inEdges,(function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy}))}))}t.exports=s},"82eb":function(t,e){var i={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},n=9;e.ContextCachedBy=i,e.WILL_BE_RESTORED=n},"82f9":function(t,e,i){var n=i("6d8b"),r=i("76a5"),a=i("2306");function o(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function s(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],o(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(t){var e=t.get("alwaysShowContent");e&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);var n={},o=t,s="{marker",l="|}",u=o.indexOf(s);while(u>=0){var c=o.indexOf(l),h=o.substr(u+s.length,c-u-s.length);h.indexOf("sub")>-1?n["marker"+h]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[h],textOffset:[3,0]}:n["marker"+h]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[h]},o=o.substr(c+1),u=o.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:a.setTextStyle({},d,{rich:n,text:t,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(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var i=this._styleCoord;o(i,this._zr,t,e),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var l=s;t.exports=l},8344:function(t,e,i){var n=i("6d8b"),r=i("f706"),a=i("3842"),o=i("6179"),s=i("923d"),l=i("88f0");function u(t,e,i){var n=e.coordinateSystem;t.each((function(r){var o,s=t.getItemModel(r),l=a.parsePercent(s.get("x"),i.getWidth()),u=a.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var c=t.get(n.dimensions[0],r),h=t.get(n.dimensions[1],r);o=n.dataToPoint([c,h])}}else o=[l,u];isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),t.setItemLayout(r,o)}))}var c=l.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markPointModel;e&&(u(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,new r),f=h(o,t,e);e.setData(f),u(e.getData(),t,a),f.each((function(t){var i=f.getItemModel(t),r=i.getShallow("symbol"),a=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=n.isFunction(r),u=n.isFunction(a),c=n.isFunction(o);if(s||u||c){var h=e.getRawValue(t),d=e.getDataParams(t);s&&(r=r(h,d)),u&&(a=a(h,d)),c&&(o=o(h,d))}f.setItemVisual(t,{symbol:r,symbolSize:a,symbolRotate:o,color:i.get("itemStyle.color")||l.getVisual("color")})})),d.updateData(f),this.group.add(d.group),f.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),d.__keep=!0,d.group.silent=e.get("silent")||t.get("silent")}});function h(t,e,i){var r;r=t?n.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return n.defaults({name:t},i)})):[{name:"value",type:"float"}];var a=new o(r,i),l=n.map(i.get("data"),n.curry(s.dataTransform,e));return t&&(l=n.filter(l,n.curry(s.dataFilter,t))),a.initData(l,null,t?s.dimValueGetter:function(t){return t.value}),a}t.exports=c},"83ba":function(t,e,i){var n=i("6d8b"),r=i("6cb7"),a=i("f934"),o=a.getLayoutParams,s=a.sizeCalculable,l=a.mergeLayoutParam,u=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(t,e,i,n){var r=o(t);u.superApply(this,"init",arguments),c(t,r)},mergeOption:function(t,e){u.superApply(this,"mergeOption",arguments),c(this.option,t)}});function c(t,e){var i=t.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var r=n.map([0,1],(function(t){return s(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));l(t,e,{type:"box",ignoreSize:r})}var h=u;t.exports=h},"843e":function(t,e,i){var n=i("6d8b"),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function a(t){n.each(r,(function(e){this[e]=n.bind(t[e],t)}),this)}var o=a;t.exports=o},8459:function(t,e,i){var n=i("3eba"),r={type:"axisAreaSelect",event:"axisAreaSelected"};n.registerAction(r,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),n.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))},"849b":function(t,e,i){var n=i("d9d0"),r=i("2039");function a(t,e){var i=[];return t.eachComponent("parallel",(function(r,a){var o=new n(r,t,e);o.name="parallel_"+a,o.resize(r,e),r.coordinateSystem=o,o.model=r,i.push(o)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}r.register("parallel",{create:a})},"84ce":function(t,e,i){var n=i("6d8b"),r=n.each,a=n.map,o=i("3842"),s=o.linearMap,l=o.getPixelPrecision,u=o.round,c=i("e073"),h=c.createAxisTicks,d=c.createAxisLabels,f=c.calculateCategoryInterval,p=[0,1],g=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};function v(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function m(t,e,i,n){var a=e.length;if(t.onBand&&!i&&a){var o,s,l=t.getExtent();if(1===a)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;r(e,(function(t){t.coord-=h/2}));var d=t.scale.getExtent();s=1+d[1]-e[a-1].tickValue,o={coord:e[a-1].coord+h*s},e.push(o)}var f=l[0]>l[1];p(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]}),p(l[1],o.coord)&&(n?o.coord=l[1]:e.pop()),n&&p(o.coord,l[1])&&e.push({coord:l[1]})}function p(t,e){return t=u(t),e=u(e),f?t>e:t<e}}g.prototype={constructor:g,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),v(i,n.count())),s(t,p,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),v(i,n.count()));var r=s(t,i,p,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=h(this,e),n=i.ticks,r=a(n,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this),o=e.get("alignWithLabel");return m(this,r,o,t.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=a(i,(function(t){return a(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),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 t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var y=g;t.exports=y},"84d5":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("4319"),o=i("e0d3"),s=o.isNameSpecified,l=i("29a8"),u=l.legend.selector,c={all:{type:"all",title:r.clone(u.all)},inverse:{type:"inverse",title:r.clone(u.inverse)}},h=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){h.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;!0===e&&(e=t.selector=["all","inverse"]),r.isArray(e)&&r.each(e,(function(t,i){r.isString(t)&&(t={type:t}),e[i]=r.merge(t,c[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],i=[];t.eachRawSeries((function(n){var r,a=n.name;if(i.push(a),n.legendVisualProvider){var o=n.legendVisualProvider,l=o.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(l)),l.length?e=e.concat(l):r=!0}else r=!0;r&&s(n)&&e.push(n.name)})),this._availableNames=i;var n=this.get("data")||e,o=r.map(n,(function(t){return"string"!==typeof t&&"number"!==typeof t||(t={name:t}),new a(t,this,this.ecModel)}),this);this._data=o},getData:function(){return this._data},select:function(t){var e=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;r.each(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){e[t.get("name",!0)]=!0}))},inverseSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]}))},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&r.indexOf(this._availableNames,t)>=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;t.exports=d},"84ec":function(t,e){var i=Math.log(2);function n(t,e,r,a,o,s){var l=a+"-"+o,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<u)-1&~o)/i);return t[r][c]}var h=a|1<<r,d=r+1;while(a&1<<d)d++;for(var f=0,p=0,g=0;p<u;p++){var v=1<<p;v&o||(f+=(g%2?-1:1)*t[r][p]*n(t,e-1,d,h,o|v,s),g++)}return s[l]=f,f}function r(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=n(i,8,0,0,0,r);if(0!==a){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*n(i,7,0===s?1:0,1<<s,1<<l,r)/a*e[s];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}e.buildTransformer=r},"857d":function(t,e){var i=2*Math.PI;function n(t){return t%=i,t<0&&(t+=i),t}e.normalizeRadian=n},"862d":function(t,e,i){var n=i("6d8b"),r=n.createHashMap,a=n.each,o=n.isString,s=n.defaults,l=n.extend,u=n.isObject,c=n.clone,h=i("e0d3"),d=h.normalizeToArray,f=i("0f99"),p=f.guessOrdinal,g=f.BE_ORDINAL,v=i("ec6f"),m=i("2f45"),y=m.OTHER_DIMENSIONS,x=i("562e");function _(t,e,i){v.isInstance(e)||(e=v.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var n=(i.dimsDef||[]).slice(),h=r(),f=r(),m=[],_=b(e,t,n,i.dimCount),T=0;T<_;T++){var w=n[T]=l({},u(n[T])?n[T]:{name:n[T]}),A=w.name,E=m[T]=new x;null!=A&&null==h.get(A)&&(E.name=E.displayName=A,h.set(A,T)),null!=w.type&&(E.type=w.type),null!=w.displayName&&(E.displayName=w.displayName)}var I=i.encodeDef;!I&&i.encodeDefaulter&&(I=i.encodeDefaulter(e,_)),I=r(I),I.each((function(t,e){if(t=d(t).slice(),1===t.length&&!o(t[0])&&t[0]<0)I.set(e,!1);else{var i=I.set(e,[]);a(t,(function(t,n){o(t)&&(t=h.get(t)),null!=t&&t<_&&(i[n]=t,M(m[t],e,n))}))}}));var D=0;function M(t,e,i){null!=y.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,f.set(e,!0))}a(t,(function(t,e){var i,n,r;if(o(t))i=t,t={};else{i=t.name;var l=t.ordinalMeta;t.ordinalMeta=null,t=c(t),t.ordinalMeta=l,n=t.dimsDef,r=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var h=I.get(i);if(!1!==h){h=d(h);if(!h.length)for(var f=0;f<(n&&n.length||1);f++){while(D<m.length&&null!=m[D].coordDim)D++;D<m.length&&h.push(D++)}a(h,(function(e,a){var o=m[e];if(M(s(o,t),i,a),null==o.name&&n){var l=n[a];!u(l)&&(l={name:l}),o.name=o.displayName=l.name,o.defaultTooltip=l.defaultTooltip}r&&s(o.otherDims,r)}))}}));var L=i.generateCoord,C=i.generateCoordCount,k=null!=C;C=L?C||1:0;for(var R=L||"value",P=0;P<_;P++){E=m[P]=m[P]||new x;var O=E.coordDim;null==O&&(E.coordDim=S(R,f,k),E.coordDimIndex=0,(!L||C<=0)&&(E.isExtraCoord=!0),C--),null==E.name&&(E.name=S(E.coordDim,h)),null!=E.type||p(e,P,E.name)!==g.Must&&(!E.isExtraCoord||null==E.otherDims.itemName&&null==E.otherDims.seriesName)||(E.type="ordinal")}return m}function b(t,e,i,n){var r=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return a(e,(function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))})),r}function S(t,e,i){if(i||null!=e.get(t)){var n=0;while(null!=e.get(t+n))n++;t+=n}return e.set(t,!0),t}var T=_;t.exports=T},"870e":function(t,e,i){var n=i("6d8b");function r(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),i=[],r=t.coordinateSystem;if(r){var s=r.getIndicatorAxes();n.each(s,(function(t,n){e.each(e.mapDimension(s[n].dim),(function(t,e){i[e]=i[e]||[];var s=r.dataToPoint(t,n);i[e][n]=a(s)?s:o(r)}))})),e.each((function(t){var s=n.find(i[t],(function(t){return a(t)}))||o(r);i[t].push(s.slice()),e.setItemLayout(t,i[t])}))}}))}function a(t){return!isNaN(t[0])&&!isNaN(t[1])}function o(t){return[t.cx,t.cy]}t.exports=r},8727:function(t,e){var i="http://www.w3.org/2000/svg";function n(t){return document.createElementNS(i,t)}e.createElement=n},8728:function(t,e){function i(t,e,i,n,r,a){if(a>e&&a>n||a<e&&a<n)return 0;if(n===e)return 0;var o=n<e?1:-1,s=(a-e)/(n-e);1!==s&&0!==s||(o=n<e?.5:-.5);var l=s*(i-t)+t;return l===r?1/0:l>r?o:0}t.exports=i},"879e":function(t,e,i){var n=i("3eba"),r=i("6179"),a=i("6d8b"),o=i("e0d3"),s=o.defaultEmphasis,l=i("4319"),u=i("eda2"),c=u.encodeHTML,h=i("237f"),d=i("c4a3"),f=i("0c37"),p=f.initCurvenessList,g=f.createEdgeMapForCurveness,v=n.extendSeriesModel({type:"series.graph",init:function(t){v.superApply(this,"init",arguments);var e=this;function i(){return e._categoriesData}this.legendVisualProvider=new d(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){v.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){v.superApply(this,"mergeDefaultAndTheme",arguments),s(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],r=this;if(n&&i){p(this);var o=h(n,i,this,!0,s);return a.each(o.edges,(function(t){g(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function s(t,i){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,i=t.getShallow("category"),n=e[i];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t}));var n=r.getModel("edgeLabel"),a=new l({label:n.option},n.parentModel,e),o=r.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:o.option}},o.parentModel,e);function u(t){return t=this.parsePath(t),t&&"label"===t[0]?a:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}i.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(u),t}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),r=this.getDataParams(t,i),a=n.graph.getEdgeByIndex(t),o=n.getName(a.node1.dataIndex),s=n.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=c(l.join(" > ")),r.value&&(l+=" : "+c(r.value)),l}return v.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=a.map(this.option.categories||[],(function(t){return null!=t.value?t:a.extend({value:0},t)})),e=new r(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},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;t.exports=m},"87b1":function(t,e,i){var n=i("cbe5"),r=i("4fac"),a=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=a},"87c3":function(t,e,i){var n=i("6d8b"),r=n.map,a=i("cccd"),o=i("ee1a"),s=o.isDimensionStacked;function l(t){return{seriesType:t,plan:a(),reset:function(t){var e=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,a=n.large;if(i){var o=r(i.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),l=o.length,u=e.getCalculationInfo("stackResultDimension");return s(e,o[0])&&(o[0]=u),s(e,o[1])&&(o[1]=u),l&&{progress:c}}function c(t,e){for(var n=t.end-t.start,r=a&&new Float32Array(n*l),s=t.start,u=0,c=[],h=[];s<t.end;s++){var d;if(1===l){var f=e.get(o[0],s);d=!isNaN(f)&&i.dataToPoint(f,null,h)}else{f=c[0]=e.get(o[0],s);var p=c[1]=e.get(o[1],s);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(c,null,h)}a?(r[u++]=d?d[0]:NaN,r[u++]=d?d[1]:NaN):e.setItemLayout(s,d&&d.slice()||[NaN,NaN])}a&&e.setLayout("symbolPoints",r)}}}}t.exports=l},"88b3":function(t,e){var i="\0__throttleOriginMethod",n="\0__throttleRate",r="\0__throttleType";function a(t,e,i){var n,r,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(a,o||[])}e=e||0;var d=function(){n=(new Date).getTime(),a=this,o=arguments;var t=s||e,d=s||i;s=null,r=n-(d?l:u)-t,clearTimeout(c),d?c=setTimeout(h,t):r>=0?h():c=setTimeout(h,-r),l=n};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function o(t,e,o,s){var l=t[e];if(l){var u=l[i]||l,c=l[r],h=l[n];if(h!==o||c!==s){if(null==o||!s)return t[e]=u;l=t[e]=a(u,o,"debounce"===s),l[i]=u,l[r]=s,l[n]=o}return l}}function s(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])}e.throttle=a,e.createOrUpdate=o,e.clear=s},"88f0":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each((function(t){t.__keep=!1}));var r=this.type+"Model";e.eachSeries((function(t){var n=t[r];n&&this.renderSeries(t,n,e,i)}),this),n.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=a},8918:function(t,e,i){var n=i("6d8b"),r=i("625e"),a=r.parseClassType,o=0;function s(t){return[t||"",o++,Math.random().toFixed(5)].join("_")}function l(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=a(t),e[t.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=a(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r},t}function u(t,e){function i(t){var i={},o=[];return n.each(t,(function(s){var l=r(i,s),u=l.originalDeps=e(s),c=a(u,t);l.entryCount=c.length,0===l.entryCount&&o.push(s),n.each(c,(function(t){n.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=r(i,t);n.indexOf(e.successor,t)<0&&e.successor.push(s)}))})),{graph:i,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,e){var i=[];return n.each(t,(function(t){n.indexOf(e,t)>=0&&i.push(t)})),i}t.topologicalTravel=function(t,e,r,a){if(t.length){var o=i(e),s=o.graph,l=o.noEntryList,u={};n.each(t,(function(t){u[t]=!0}));while(l.length){var c=l.pop(),h=s[c],d=!!u[c];d&&(r.call(a,c,h.originalDeps.slice()),delete u[c]),n.each(h.successor,d?p:f)}n.each(u,(function(){throw new Error("Circle dependency may exists")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}e.getUID=s,e.enableSubTypeDefaulter=l,e.enableTopologicalTravel=u},8971:function(t,e){var i="";"undefined"!==typeof navigator&&(i=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:i.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};t.exports=n},"897a":function(t,e,i){var n=i("22d1"),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function a(t){return n.browser.ie&&n.browser.version>=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;a<i.length;a++){var o=i[a],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var u=0;u<r.length;u++)r[u][2]=n[r[u][0]],n[r[u][0]]=r[u][1];e=!0;break}}if(t.apply(this,arguments),e)for(u=0;u<r.length;u++)n[r[u][0]]=r[u][2]}:t}t.exports=a},"89e3":function(t,e,i){var n=i("3842"),r=i("eda2"),a=i("e0d8"),o=i("944e"),s=n.round,l=a.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;var o=1e4;i[0]<n[0]&&(t?a.push(s(n[0]-e,r)):a.push(i[0]));var l=n[0];while(l<=n[1]){if(a.push(l),l=s(l+e,r),l===a[a.length-1])break;if(a.length>o)return[]}var u=a.length?a[a.length-1]:n[1];return i[1]>u&&(t?a.push(s(u+e,r)):a.push(i[1])),a},getMinorTicks:function(t){for(var e=this.getTicks(!0),i=[],r=this.getExtent(),a=1;a<e.length;a++){var o=e[a],s=e[a-1],l=0,u=[],c=o-s,h=c/t;while(l<t-1){var d=n.round(s+(l+1)*h);d>r[0]&&d<r[1]&&u.push(d),l++}i.push(u)}return i},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=n.getPrecisionSafe(t)||0:"auto"===i&&(i=this._intervalPrecision),t=s(t,i,!0),r.addCommas(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){r<0&&(r=-r,n.reverse());var a=o.intervalScaleNiceTicks(n,t,e,i);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax||(e[1]+=i/2),e[0]-=i/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l};var u=l;t.exports=u},"8b7f":function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=r.createHashMap,o=(r.retrieve,r.each);function s(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=a(),this.categoryAxisMap=a(),this.firstCategoryDimIndex=null}function l(t){var e=t.get("coordinateSystem"),i=new s(e),n=u[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}var u={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",a),c(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),c(a)&&(n.set("y",a),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",r),c(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",a),i.set("angle",o),c(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),c(o)&&(n.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();o(a.parallelAxisIndex,(function(t,a){var o=r.getComponent("parallelAxis",t),l=s[a];i.set(l,o),c(o)&&null==e.firstCategoryDimIndex&&(n.set(l,o),e.firstCategoryDimIndex=a)}))}};function c(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=l},"8c2a":function(t,e,i){var n=i("6d8b"),r=i("e0d8"),a=i("3842"),o=i("89e3"),s=r.prototype,l=o.prototype,u=a.getPrecisionSafe,c=a.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 o},getTicks:function(t){var e=this._originalScale,i=this._extent,r=e.getExtent();return n.map(l.getTicks.call(this,t),(function(t){var n=a.round(f(this.base,t));return n=t===i[0]&&e.__fixMin?v(n,r[0]):n,n=t===i[1]&&e.__fixMax?v(n,r[1]):n,n}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var i=this.base;t=p(t)/p(i),e=p(e)/p(i),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=v(e[0],n[0])),i.__fixMax&&(e[1]=v(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=p(t[0])/p(e),t[1]=p(t[1])/p(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=a.quantity(i),r=t/i*n;r<=.5&&(n*=10);while(!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0)n*=10;var o=[a.round(d(e[0]/n)*n),a.round(h(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function v(t,e){return c(t,u(e))}n.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var m=g;t.exports=m},"8d32":function(t,e,i){var n=i("cbe5"),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(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,a,o,!s)}});t.exports=r},"8deb":function(t,e,i){var n=i("3eba");i("5522"),i("a016"),i("1466");var r=i("98e7"),a=i("7f96"),o=i("870e"),s=i("d3f4"),l=i("7891");n.registerVisual(r("radar")),n.registerVisual(a("radar","circle")),n.registerLayout(o),n.registerProcessor(s("radar")),n.registerPreprocessor(l)},"8e43":function(t,e,i){var n=i("6d8b"),r=n.createHashMap,a=n.isObject,o=n.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&o(i,c);return new s({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var l=s.prototype;function u(t){return t._map||(t._map=r(t.categories))}function c(t){return a(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return u(this).get(t)},l.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!==typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=u(this);return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var h=s;t.exports=h},"8e77":function(t,e,i){var n=i("6d8b"),r=i("41ef"),a=i("6179"),o=i("3842"),s=i("2306"),l=i("923d"),u=i("88f0"),c=function(t,e,i,r){var a=l.dataTransform(t,r[0]),o=l.dataTransform(t,r[1]),s=n.retrieve,u=a.coord,c=o.coord;u[0]=s(u[0],-1/0),u[1]=s(u[1],-1/0),c[0]=s(c[0],1/0),c[1]=s(c[1],1/0);var h=n.mergeAll([{},a,o]);return h.coord=[a.coord,o.coord],h.x0=a.x,h.y0=a.y,h.x1=o.x,h.y1=o.y,h};function h(t){return!isNaN(t)&&!isFinite(t)}function d(t,e,i,n){var r=1-t;return h(e[r])&&h(i[r])}function f(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!d(1,i,n,t)&&!d(0,i,n,t))||(l.dataFilter(t,{coord:i,x:e.x0,y:e.y0})||l.dataFilter(t,{coord:n,x:e.x1,y:e.y1}))}function p(t,e,i,n,r){var a,s=n.coordinateSystem,l=t.getItemModel(e),u=o.parsePercent(l.get(i[0]),r.getWidth()),c=o.parsePercent(l.get(i[1]),r.getHeight());if(isNaN(u)||isNaN(c)){if(n.getMarkerPosition)a=n.getMarkerPosition(t.getValues(i,e));else{var d=t.get(i[0],e),f=t.get(i[1],e),p=[d,f];s.clampData&&s.clampData(p,p),a=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");d=t.get(i[0],e),f=t.get(i[1],e);h(d)?a[0]=g.toGlobalCoord(g.getExtent()["x0"===i[0]?0:1]):h(f)&&(a[1]=v.toGlobalCoord(v.getExtent()["y0"===i[1]?0:1]))}isNaN(u)||(a[0]=u),isNaN(c)||(a[1]=c)}else a=[u,c];return a}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function v(t,e,i){var r,o,s=["x0","y0","x1","y1"];t?(r=n.map(t&&t.dimensions,(function(t){var i=e.getData(),r=i.getDimensionInfo(i.mapDimension(t))||{};return n.defaults({name:t},r)})),o=new a(n.map(s,(function(t,e){return{name:t,type:r[e%2].type}})),i)):(r=[{name:"value",type:"float"}],o=new a(r,i));var l=n.map(i.get("data"),n.curry(c,e,t,i));t&&(l=n.filter(l,n.curry(f,t)));var u=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return o.initData(l,null,u),o.hasItemOption=!0,o}u.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var r=e.getData();r.each((function(e){var a=n.map(g,(function(n){return p(r,e,n,t,i)}));r.setItemLayout(e,a);var o=r.getItemGraphicEl(e);o.setShape("points",a)}))}}),this)},renderSeries:function(t,e,i,a){var o=t.coordinateSystem,l=t.id,u=t.getData(),c=this.markerGroupMap,d=c.get(l)||c.set(l,{group:new s.Group});this.group.add(d.group),d.__keep=!0;var f=v(o,t,e);e.setData(f),f.each((function(e){var i=n.map(g,(function(i){return p(f,e,i,t,a)})),r=!0;n.each(g,(function(t){if(r){var i=f.get(t[0],e),n=f.get(t[1],e);(h(i)||o.getAxis("x").containData(i))&&(h(n)||o.getAxis("y").containData(n))&&(r=!1)}})),f.setItemLayout(e,{points:i,allClipped:r}),f.setItemVisual(e,{color:u.getVisual("color")})})),f.diff(d.__data).add((function(t){var e=f.getItemLayout(t);if(!e.allClipped){var i=new s.Polygon({shape:{points:e.points}});f.setItemGraphicEl(t,i),d.group.add(i)}})).update((function(t,i){var n=d.__data.getItemGraphicEl(i),r=f.getItemLayout(t);r.allClipped?n&&d.group.remove(n):(n?s.updateProps(n,{shape:{points:r.points}},e,t):n=new s.Polygon({shape:{points:r.points}}),f.setItemGraphicEl(t,n),d.group.add(n))})).remove((function(t){var e=d.__data.getItemGraphicEl(t);d.group.remove(e)})).execute(),f.eachItemGraphicEl((function(t,i){var a=f.getItemModel(i),o=a.getModel("label"),l=a.getModel("emphasis.label"),u=f.getItemVisual(i,"color");t.useStyle(n.defaults(a.getModel("itemStyle").getItemStyle(),{fill:r.modifyAlpha(u,.4),stroke:u})),t.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(t.style,t.hoverStyle,o,l,{labelFetcher:e,labelDataIndex:i,defaultText:f.getName(i)||"",isRectText:!0,autoColor:u}),s.setHoverStyle(t,{}),t.dataModel=e})),d.__data=f,d.group.silent=e.get("silent")||t.get("silent")}})},"8ec5":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2145"),o=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,(function(t,e){var i=a.get(e);i&&r.merge(t,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}}}),s=o;t.exports=s},"8ed2":function(t,e,i){i("48c7");var n=i("6cb7"),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"}});t.exports=r},"8ee0":function(t,e,i){i("3f8e");var n=i("697e7"),r=n.registerPainter,a=i("dc20");r("svg",a)},"903c":function(t,e){function i(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0}))}t.exports=i},"90c2":function(t,e,i){var n=i("5f14"),r=i("41ef"),a=i("6d8b"),o=a.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(t,e,i,n){var r=t.getData().tree,a=r.root;a.isRemoved()||u(a,{},t.getViewRoot().getAncestors(),t)}};function u(t,e,i,n){var r=t.getModel(),o=t.getLayout();if(o&&!o.invisible&&o.isInView){var l,f=t.getModel(s),g=c(f,e,n),m=f.get("borderColor"),y=f.get("borderColorSaturation");null!=y&&(l=h(g,t),m=d(y,l)),t.setVisual("borderColor",m);var x=t.viewChildren;if(x&&x.length){var _=p(t,r,o,f,g,x);a.each(x,(function(t,e){if(t.depth>=i.length||t===i[t.depth]){var a=v(r,g,t,e,_,n);u(t,a,i,n)}}))}else l=h(g,t),t.setVisual("color",l)}}function c(t,e,i){var n=a.extend({},e),r=i.designatedVisualItemStyle;return a.each(["color","colorAlpha","colorSaturation"],(function(i){r[i]=e[i];var a=t.get(i);r[i]=null,null!=a&&(n[i]=a)})),n}function h(t){var e=f(t,"color");if(e){var i=f(t,"colorAlpha"),n=f(t,"colorSaturation");return n&&(e=r.modifyHSL(e,null,null,n)),i&&(e=r.modifyAlpha(e,i)),e}}function d(t,e){return null!=e?r.modifyHSL(e,null,null,t):null}function f(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function p(t,e,i,r,a,o){if(o&&o.length){var s=g(e,"color")||null!=a.color&&"none"!==a.color&&(g(e,"colorAlpha")||g(e,"colorSaturation"));if(s){var l=e.get("visualMin"),u=e.get("visualMax"),c=i.dataExtent.slice();null!=l&&l<c[0]&&(c[0]=l),null!=u&&u>c[1]&&(c[1]=u);var h=e.get("colorMappingBy"),d={type:s.name,dataExtent:c,visual:s.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(t,e){var i=t.get(e);return o(i)&&i.length?{name:e,range:i}:null}function v(t,e,i,n,r,o){var s=a.extend({},e);if(r){var l=r.type,u="color"===l&&r.__drColorMappingBy,c="index"===u?n:"id"===u?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=r.mapValueToVisual(c)}return s}t.exports=l},"923d":function(t,e,i){var n=i("6d8b"),r=i("3842"),a=i("ee1a"),o=a.isDimensionStacked,s=n.indexOf;function l(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function u(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function c(t,e,i,n,a,s){var l=[],u=o(e,n),c=u?e.getCalculationInfo("stackResultDimension"):n,h=y(e,c,t),d=e.indicesOfNearest(c,h)[0];l[a]=e.get(i,d),l[s]=e.get(c,d);var f=e.get(n,d),p=r.getPrecision(e.get(n,d));return p=Math.min(p,20),p>=0&&(l[s]=+l[s].toFixed(p)),[l,f]}var h=n.curry,d={min:h(c,"min"),max:h(c,"max"),average:h(c,"average")};function f(t,e){var i=t.getData(),r=t.coordinateSystem;if(e&&!u(e)&&!n.isArray(e.coord)&&r){var a=r.dimensions,o=p(e,i,r,t);if(e=n.clone(e),e.type&&d[e.type]&&o.baseAxis&&o.valueAxis){var l=s(a,o.baseAxis.dim),c=s(a,o.valueAxis.dim),h=d[e.type](i,o.baseDataDim,o.valueDataDim,l,c);e.coord=h[0],e.value=h[1]}else{for(var f=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],g=0;g<2;g++)d[f[g]]&&(f[g]=y(i,i.mapDimension(a[g]),f[g]));e.coord=f}}return e}function p(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(g(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function g(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var r=0;r<n.length;r++){var a=i.getDimensionInfo(n[r]);if(a.name===e)return a.coordDim}}function v(t,e){return!(t&&t.containData&&e.coord&&!l(e))||t.containData(e.coord)}function m(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value}function y(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,r++)})),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e,!0)["max"===i?1:0]}e.dataTransform=f,e.getAxisInfo=p,e.dataFilter=v,e.dimValueGetter=m,e.numCalculate=y},9273:function(t,e,i){var n=i("6d8b"),r=i("84ce");function a(t,e){r.call(this,"radius",t,e),this.type="category"}a.prototype={constructor:a,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},n.inherits(a,r);var o=a;t.exports=o},"928d":function(t,e,i){var n=i("6d8b"),r=i("4f85"),a=i("06c7"),o=i("4319"),s=i("eda2"),l=s.encodeHTML,u=s.addCommas,c=i("55ac"),h=c.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(t,e){var i={name:t.name,children:t.data};f(i);var r=t.levels||[],s=this.designatedVisualItemStyle={},l=new o({itemStyle:s},this,e);r=t.levels=p(r,e);var u=n.map(r||[],(function(t){return new o(t,l,e)}),this),c=a.createTree(i,this,h);function h(t){t.wrapMethod("getItemModel",(function(t,e){var i=c.getNodeByDataIndex(e),n=u[i.depth];return t.parentModel=n||l,t}))}return c.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),r=n.isArray(i)?u(i[0]):u(i),a=e.getName(t);return l(a+": "+r)},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=h(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},n.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=n.createHashMap(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function f(t){var e=0;n.each(t.children,(function(t){f(t);var i=t.value;n.isArray(i)&&(i=i[0]),e+=i}));var i=t.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),n.isArray(t.value)?t.value[0]=i:t.value=i}function p(t,e){var i=e.get("color");if(i){var r;if(t=t||[],n.each(t,(function(t){var e=new o(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(r=!0)})),!r){var a=t[0]||(t[0]={});a.color=i.slice()}return t}}t.exports=d},"933b":function(t,e,i){var n=i("b12f"),r=n.extend({type:"timeline"});t.exports=r},9390:function(t,e,i){i("d090"),i("83ba"),i("ee66")},"93d0":function(t,e){var i="original",n="arrayRows",r="objectRows",a="keyedColumns",o="unknown",s="typedArray",l="column",u="row";e.SOURCE_FORMAT_ORIGINAL=i,e.SOURCE_FORMAT_ARRAY_ROWS=n,e.SOURCE_FORMAT_OBJECT_ROWS=r,e.SOURCE_FORMAT_KEYED_COLUMNS=a,e.SOURCE_FORMAT_UNKNOWN=o,e.SOURCE_FORMAT_TYPED_ARRAY=s,e.SERIES_LAYOUT_BY_COLUMN=l,e.SERIES_LAYOUT_BY_ROW=u},9442:function(t,e,i){var n=i("6d8b");function r(t){var e=[];n.each(t.series,(function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,n.defaults(t,t.mapLocation))}))}t.exports=r},"944e":function(t,e,i){var n=i("3842"),r=n.round;function a(t,e,i,a){var s={},u=t[1]-t[0],c=s.interval=n.nice(u/e,!0);null!=i&&c<i&&(c=s.interval=i),null!=a&&c>a&&(c=s.interval=a);var h=s.intervalPrecision=o(c),d=s.niceTickExtent=[r(Math.ceil(t[0]/c)*c,h),r(Math.floor(t[1]/c)*c,h)];return l(d,t),s}function o(t){return n.getPrecisionSafe(t)+2}function s(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function l(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),s(t,0,e),s(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=a,e.getIntervalPrecision=o,e.fixExtent=l},"94b1":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("9d57"),o=a.layout,s=a.largeLayout;i("5aa9"),i("17b8"),i("67cc"),i("01ed"),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,r.curry(o,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),n.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},"94e4":function(t,e,i){var n=i("401b"),r=i("53f3"),a=r.getSymbolSize,o=r.getNodeGlobalScale,s=i("6d8b"),l=i("0c37"),u=l.getCurvenessForEdge,c=Math.PI,h=[];function d(t,e){var i=t.coordinateSystem;if(!i||"view"===i.type){var r=i.getBoundingRect(),a=t.getData(),o=a.graph,l=r.width/2+r.x,c=r.height/2+r.y,h=Math.min(r.width,r.height)/2,d=a.count();a.setLayout({cx:l,cy:c}),d&&(f[e](t,i,o,a,h,l,c,d),o.eachEdge((function(e,i){var r,a=s.retrieve3(e.getModel().get("lineStyle.curveness"),u(e,t,i),0),o=n.clone(e.node1.getLayout()),h=n.clone(e.node2.getLayout()),d=(o[0]+h[0])/2,f=(o[1]+h[1])/2;+a&&(a*=3,r=[l*a+d*(1-a),c*a+f*(1-a)]),e.setLayout([o,h,r])})))}}var f={value:function(t,e,i,n,r,a,o,s){var l=0,u=n.getSum("value"),c=2*Math.PI/(u||s);i.eachNode((function(t){var e=t.getValue("value"),i=c*(u?e:1)/2;l+=i,t.setLayout([r*Math.cos(l)+a,r*Math.sin(l)+o]),l+=i}))},symbolSize:function(t,e,i,n,r,s,l,u){var d=0;h.length=u;var f=o(t);i.eachNode((function(t){var e=a(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=f;var i=Math.asin(e/2/r);isNaN(i)&&(i=c/2),h[t.dataIndex]=i,d+=2*i}));var p=(2*c-d)/u/2,g=0;i.eachNode((function(t){var e=p+h[t.dataIndex];g+=e,t.setLayout([r*Math.cos(g)+s,r*Math.sin(g)+l]),g+=e}))}};e.circularLayout=d},"95a8":function(t,e,i){var n=i("3eba");i("1953"),i("307d"),n.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))},9680:function(t,e){function i(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>i+s||a<t-s&&a<i-s)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}e.containStroke=i},9704:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("f706"),o=i("73ca"),s=i("4a01"),l=i("01ef"),u=i("c526"),c=u.onIrrelevantElement,h=i("2306"),d=i("480f"),f=i("53f3"),p=f.getNodeGlobalScale,g="__focusNodeAdjacency",v="__unfocusNodeAdjacency",m=["itemStyle","opacity"],y=["lineStyle","opacity"];function x(t,e){var i=t.getVisual("opacity");return null!=i?i:t.getModel().get(e)}function _(t,e,i){var n=t.getGraphicEl(),r=x(t,e);null!=i&&(null==r&&(r=1),r*=i),n.downplay&&n.downplay(),n.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==i||(e=r),t.setStyle("opacity",e)}}))}function b(t,e){var i=x(t,e),n=t.getGraphicEl();n.traverse((function(t){!t.isGroup&&t.setStyle("opacity",i)})),n.highlight&&n.highlight()}var S=n.extendChartView({type:"graph",init:function(t,e){var i=new a,n=new o,r=this.group;this._controller=new s(e.getZr()),this._controllerHost={target:r},r.add(i.group),r.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=this,r=t.coordinateSystem;this._model=t;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if("view"===r.type){var l={position:r.position,scale:r.scale};this._firstRender?s.attr(l):h.updateProps(s,l,t)}d(t.getGraph(),p(t));var u=t.getData();a.updateData(u);var c=t.getEdgeData();o.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var f=t.forceLayout,m=t.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,m),u.eachItemGraphicEl((function(e,r){var a=u.getItemModel(r);e.off("drag").off("dragend");var o=a.get("draggable");o&&e.on("drag",(function(){f&&(f.warmUp(),!this._layouting&&this._startForceLayoutIteration(f,m),f.setFixed(r),u.setItemLayout(r,e.position))}),this).on("dragend",(function(){f&&f.setUnfixed(r)}),this),e.setDraggable(o&&f),e[g]&&e.off("mouseover",e[g]),e[v]&&e.off("mouseout",e[v]),a.get("focusNodeAdjacency")&&(e.on("mouseover",e[g]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[v]=function(){n._dispatchUnfocus(i)}))}),this),u.graph.eachEdge((function(e){var r=e.getGraphicEl();r[g]&&r.off("mouseover",r[g]),r[v]&&r.off("mouseout",r[v]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[g]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[v]=function(){n._dispatchUnfocus(i)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=u.getLayout("cx"),_=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var i=u.getItemModel(e),n=i.get("label.rotate")||0,r=t.getSymbolPath();if(y){var a=u.getItemLayout(e),o=Math.atan2(a[1]-_,a[0]-x);o<0&&(o=2*Math.PI+o);var s=a[0]<x;s&&(o-=Math.PI);var l=s?"left":"right";h.modifyLabelStyle(r,{textRotation:-o,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(t,e){var i=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){i._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:i._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,i,n){var a=t.getData(),o=a.graph,s=n.dataIndex,l=n.edgeDataIndex,u=o.getNodeByIndex(s),c=o.getEdgeByIndex(l);(u||c)&&(o.eachNode((function(t){_(t,m,.1)})),o.eachEdge((function(t){_(t,y,.1)})),u&&(b(u,m),r.each(u.edges,(function(t){t.dataIndex<0||(b(t,y),b(t.node1,m),b(t.node2,m))}))),c&&(b(c,y),b(c.node1,m),b(c.node2,m)))},unfocusNodeAdjacency:function(t,e,i,n){var r=t.getData().graph;r.eachNode((function(t){_(t,m)})),r.eachEdge((function(t){_(t,y)}))},_startForceLayoutIteration:function(t,e){var i=this;(function n(){t.step((function(t){i.updateLayout(i._model),(i._layouting=!t)&&(e?i._layoutTimeout=setTimeout(n,16):n())}))})()},_updateController:function(t,e,i){var n=this._controller,r=this._controllerHost,a=this.group;n.setPointerChecker((function(e,n,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(n,r)&&!c(e,i,t)})),"view"===t.coordinateSystem.type?(n.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(e){l.updateViewOnPan(r,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){l.updateViewOnZoom(r,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),d(t.getGraph(),p(t)),this._lineDraw.updateLayout()}),this)):n.disable()},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),i=p(t),n=[i,i];e.eachItemGraphicEl((function(t,e){t.attr("scale",n)}))},updateLayout:function(t){d(t.getGraph(),p(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});t.exports=S},9850:function(t,e,i){var n=i("401b"),r=i("1687"),a=n.applyTransform,o=Math.min,s=Math.max;function l(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}l.prototype={constructor:l,union:function(t){var e=o(t.x,this.x),i=o(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this.height=s(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(r){if(r){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this.height,a(t,t,r),a(e,e,r),a(i,i,r),a(n,n,r),this.x=o(t[0],e[0],i[0],n[0]),this.y=o(t[1],e[1],i[1],n[1]);var l=s(t[0],e[0],i[0],n[0]),u=s(t[1],e[1],i[1],n[1]);this.width=l-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=r.create();return r.translate(a,a,[-e.x,-e.y]),r.scale(a,a,[i,n]),r.translate(a,a,[t.x,t.y]),a},intersect:function(t){if(!t)return!1;t instanceof l||(t=l.create(t));var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,u=t.y,c=t.y+t.height;return!(n<o||s<i||a<u||c<r)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(t){return new l(t.x,t.y,t.width,t.height)};var u=l;t.exports=u},"98b7":function(t,e){var i="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=i},"98e7":function(t,e,i){var n=i("6d8b"),r=n.createHashMap;function a(t){return{getTargetSeries:function(e){var i={},n=r();return e.eachSeriesByType(t,(function(t){t.__paletteScope=i,n.set(t.uid,t)})),n},reset:function(t,e){var i=t.getRawData(),n={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),i.each((function(e){var a,o=n[e],s=null!=o&&r.getItemVisual(o,"color",!0),l=null!=o&&r.getItemVisual(o,"borderColor",!0);if(s&&l||(a=i.getItemModel(e)),!s){var u=a.get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());null!=o&&r.setItemVisual(o,"color",u)}if(!l){var c=a.get("itemStyle.borderColor");null!=o&&r.setItemVisual(o,"borderColor",c)}}))}}}t.exports=a},"998c":function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("e86a"),o=Math.PI;function s(t,e){e=e||{},n.defaults(e,{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,s=new r.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(s);var l=e.fontSize+" sans-serif",u=new r.Rect({style:{fill:"none",text:e.text,font:l,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(i.add(u),e.showSpinner){var c=new r.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});c.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),i.add(c)}return i.resize=function(){var i=a.getWidth(e.text,l),n=e.showSpinner?e.spinnerRadius:0,r=(t.getWidth()-2*n-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner?0:i/2),o=t.getHeight()/2;e.showSpinner&&c.setShape({cx:r,cy:o}),u.setShape({x:r-n,y:o-n,width:2*n,height:2*n}),s.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}t.exports=s},"9a0c":function(t,e,i){var n=i("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},"9bdb":function(t,e,i){var n=i("282b"),r=n([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a={getAreaStyle:function(t,e){return r(this,t,e)}};t.exports=a},"9c2c":function(t,e,i){var n=i("401b"),r=n.min,a=n.max,o=n.scale,s=n.distance,l=n.add,u=n.clone,c=n.sub;function h(t,e,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 x=0,_=t.length;x<_;x++)r(f,f,t[x]),a(p,p,t[x]);r(f,f,n[0]),a(p,p,n[1])}for(x=0,_=t.length;x<_;x++){var b=t[x];if(i)h=t[x?x-1:_-1],d=t[(x+1)%_];else{if(0===x||x===_-1){g.push(u(t[x]));continue}h=t[x-1],d=t[x+1]}c(v,d,h),o(v,v,e);var S=s(b,h),T=s(b,d),w=S+T;0!==w&&(S/=w,T/=w),o(m,v,-S),o(y,v,T);var A=l([],b,m),E=l([],b,y);n&&(a(A,A,f),r(A,A,p),a(E,E,f),r(E,E,p)),g.push(A),g.push(E)}return i&&g.push(g.shift()),g}t.exports=h},"9ca8":function(t,e,i){var n=i("6d8b"),r=i("9850"),a=i("3842"),o=a.parsePercent,s=a.MAX_SAFE_INTEGER,l=i("f934"),u=i("55ac"),c=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(t,e,i,a){var s=i.getWidth(),c=i.getHeight(),h=t.option,p=l.getLayoutRect(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),g=h.size||[],v=o(d(p.width,g[0]),s),m=o(d(p.height,g[1]),c),y=a&&a.type,_=["treemapZoomToNode","treemapRootToNode"],b=u.retrieveTargetInfo(a,_,t),S="treemapRender"===y||"treemapMove"===y?a.rootRect:null,T=t.getViewRoot(),w=u.getPathToRoot(T);if("treemapMove"!==y){var A="treemapZoomToNode"===y?E(t,b,T,v,m):S?[S.width,S.height]:[v,m],M=h.sort;M&&"asc"!==M&&"desc"!==M&&(M="desc");var L={squareRatio:h.squareRatio,sort:M,leafDepth:h.leafDepth};T.hostTree.clearLayouts();var C={x:0,y:0,width:A[0],height:A[1],area:A[0]*A[1]};T.setLayout(C),x(T,L,!1,0);C=T.getLayout();f(w,(function(t,e){var i=(w[e+1]||T).getValue();t.setLayout(n.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},C))}))}var k=t.getData().tree.root;k.setLayout(I(p,S,b),!0),t.setLayoutInfo(p),D(k,new r(-p.x,-p.y,s,c),w,T,0)}};function x(t,e,i,n){var r,a;if(!t.isRemoved()){var o=t.getLayout();r=o.width,a=o.height;var s=t.getModel(),l=s.get(p),u=s.get(g)/2,d=M(s),f=Math.max(l,d),v=l-u,m=f-u;s=t.getModel();t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:d},!0),r=c(r-2*v,0),a=c(a-v-m,0);var y=r*a,b=_(t,s,y,e,i,n);if(b.length){var S={x:v,y:m,width:r,height:a},T=h(r,a),E=1/0,I=[];I.area=0;for(var D=0,L=b.length;D<L;){var C=b[D];I.push(C),I.area+=C.getLayout().area;var k=w(I,T,e.squareRatio);k<=E?(D++,E=k):(I.area-=I.pop().getLayout().area,A(I,T,S,u,!1),T=h(S.width,S.height),I.length=I.area=0,E=1/0)}if(I.length&&A(I,T,S,u,!0),!i){var R=s.get("childrenVisibleMin");null!=R&&y<R&&(i=!0)}for(D=0,L=b.length;D<L;D++)x(b[D],e,i,n+1)}}}function _(t,e,i,r,a,o){var s=t.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=r.leafDepth&&r.leafDepth<=o;if(a&&!u)return t.viewChildren=[];s=n.filter(s,(function(t){return!t.isRemoved()})),S(s,l);var c=T(e,s,l);if(0===c.sum)return t.viewChildren=[];if(c.sum=b(e,i,c.sum,l,s),0===c.sum)return t.viewChildren=[];for(var h=0,d=s.length;h<d;h++){var f=s[h].getValue()/c.sum*i;s[h].setLayout({area:f})}return u&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:c.dataExtent},!0),s}function b(t,e,i,n,r){if(!n)return i;for(var a=t.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r["asc"===n?o-l-1:l].getValue();u/i*e<a&&(s=l,i-=u)}return"asc"===n?r.splice(0,o-s):r.splice(s,o-s),i}function S(t,e){return e&&t.sort((function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n})),t}function T(t,e,i){for(var n=0,r=0,a=e.length;r<a;r++)n+=e[r].getValue();var o=t.get("visualDimension");if(e&&e.length)if("value"===o&&i)s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&s.reverse();else{var s=[1/0,-1/0];f(e,(function(t){var e=t.getValue(o);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function w(t,e,i){for(var n,r=0,a=1/0,o=0,s=t.length;o<s;o++)n=t[o].getLayout().area,n&&(n<a&&(a=n),n>r&&(r=n));var l=t.area*t.area,u=e*e*i;return l?c(u*r/l,l/(u*a)):1/0}function A(t,e,i,n,r){var a=e===i.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=i[s[a]],d=e?t.area/e:0;(r||d>i[l[o]])&&(d=i[l[o]]);for(var f=0,p=t.length;f<p;f++){var g=t[f],v={},m=d?g.getLayout().area/d:0,y=v[l[o]]=c(d-2*n,0),x=i[s[a]]+i[l[a]]-u,_=f===p-1||x<m?x:m,b=v[l[a]]=c(_-2*n,0);v[s[o]]=i[s[o]]+h(n,y/2),v[s[a]]=u+h(n,b/2),u+=_,g.setLayout(v,!0)}i[s[o]]+=d,i[l[o]]-=d}function E(t,e,i,n,r){var a,o=(e||{}).node,l=[n,r];if(!o||o===i)return l;var u=n*r,c=u*t.option.zoomToNodeRatio;while(a=o.parentNode){for(var h=0,d=a.children,f=0,g=d.length;f<g;f++)h+=d[f].getValue();var v=o.getValue();if(0===v)return l;c*=h/v;var m=a.getModel(),y=m.get(p),x=Math.max(y,M(m,y));c+=4*y*y+(3*y+x)*Math.pow(c,.5),c>s&&(c=s),o=a}c<u&&(c=u);var _=Math.pow(c/u,.5);return[n*_,r*_]}function I(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var r=i.node,a=r.getLayout();if(!a)return n;var o=[a.width/2,a.height/2],s=r;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function D(t,e,i,n,a){var o=t.getLayout(),s=i[a],l=s&&s===t;if(!(s&&!l||a===i.length&&t!==n)){t.setLayout({isInView:!0,invisible:!l&&!e.intersect(o),isAboveViewRoot:l},!0);var u=new r(e.x-o.x,e.y-o.y,e.width,e.height);f(t.viewChildren||[],(function(t){D(t,u,i,n,a+1)}))}}function M(t){return t.get(v)?t.get(m):0}t.exports=y},"9cf9":function(t,e){var i=Math.round;function n(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;u&&(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,u,!0)))}}function r(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,s=e.height;t.x=n,t.y=r,t.width=o,t.height=s;var l=i&&i.lineWidth;l&&(t.x=a(n,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(n+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1))}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2===0?r/2:(r+(n?1:-1))/2}e.subPixelOptimizeLine=n,e.subPixelOptimizeRect=r,e.subPixelOptimize=a},"9d57":function(t,e,i){var n=i("6d8b"),r=i("3842"),a=r.parsePercent,o=i("ee1a"),s=o.isDimensionStacked,l=i("cccd"),u="__ec_stack_",c=.5,h="undefined"!==typeof Float32Array?Float32Array:Array;function d(t){return t.get("stack")||u+t.seriesIndex}function f(t){return t.dim+t.index}function p(t){var e=[],i=t.axis,r="axis0";if("category"===i.type){for(var a=i.getBandWidth(),o=0;o<t.count;o++)e.push(n.defaults({bandWidth:a,axisKey:r,stackId:u+o},t));var s=y(e),l=[];for(o=0;o<t.count;o++){var c=s[r][u+o];c.offsetCenter=c.offset+c.width/2,l.push(c)}return l}}function g(t,e){var i=[];return e.eachSeriesByType(t,(function(t){S(t)&&!T(t)&&i.push(t)})),i}function v(t){var e={};n.each(t,(function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),a=n.dim+"_"+n.index,o=r.mapDimension(n.dim),s=0,l=r.count();s<l;++s){var u=r.get(o,s);e[a]?e[a].push(u):e[a]=[u]}}));var i=[];for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort((function(t,e){return t-e}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}i[r]=o}}return i}function m(t){var e=v(t),i=[];return n.each(t,(function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),s=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,u=e[l],c=Math.abs(s[1]-s[0]),h=o.scale.getExtent(),p=Math.abs(h[1]-h[0]);n=u?c/p*u:c}else{var g=t.getData();n=Math.abs(s[1]-s[0])/g.count()}var v=a(t.get("barWidth"),n),m=a(t.get("barMaxWidth"),n),y=a(t.get("barMinWidth")||1,n),x=t.get("barGap"),_=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:v,barMaxWidth:m,barMinWidth:y,barGap:x,barCategoryGap:_,axisKey:f(o),stackId:d(t)})})),y(i)}function y(t){var e={};n.each(t,(function(t,i){var n=t.axisKey,r=t.bandWidth,a=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[n]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var c=t.barMinWidth;c&&(o[s].minWidth=c);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var i={};return n.each(e,(function(t,e){i[e]={};var r=t.stacks,o=t.bandWidth,s=a(t.categoryGap,o),l=a(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),n.each(r,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,c--}else{var n=h;e&&e<n&&(n=Math.min(e,u)),i&&i>n&&(n=i),n!==h&&(t.width=n,u-=n+l*n,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;n.each(r,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(r,(function(t,n){i[e][n]=i[e][n]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+l)}))})),i}function x(t,e,i){if(t&&e){var n=t[f(e)];return null!=n&&null!=i&&(n=n[d(i)]),n}}function _(t,e){var i=g(t,e),r=m(i),a={},o={};n.each(i,(function(t){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),l=d(t),u=r[f(n)][l],c=u.offset,h=u.width,p=i.getOtherAxis(n),g=t.get("barMinHeight")||0;a[l]=a[l]||[],o[l]=o[l]||[],e.setLayout({bandWidth:u.bandWidth,offset:c,size:h});for(var v=e.mapDimension(p.dim),m=e.mapDimension(n.dim),y=s(e,v),x=p.isHorizontal(),_=w(n,p,y),b=0,S=e.count();b<S;b++){var T,A,E,I,D=e.get(v,b),M=e.get(m,b),L=D>=0?"p":"n",C=_;if(y&&(a[l][M]||(a[l][M]={p:_,n:_}),C=a[l][M][L]),x){var k=i.dataToPoint([D,M]);T=C,A=k[1]+c,E=k[0]-_,I=h,Math.abs(E)<g&&(E=(E<0?-1:1)*g),isNaN(E)||y&&(a[l][M][L]+=E)}else{k=i.dataToPoint([M,D]);T=k[0]+c,A=C,E=h,I=k[1]-_,Math.abs(I)<g&&(I=(I<=0?-1:1)*g),isNaN(I)||y&&(a[l][M][L]+=I)}e.setItemLayout(b,{x:T,y:A,width:E,height:I})}}),this)}var b={seriesType:"bar",plan:l(),reset:function(t){if(S(t)&&T(t)){var e=t.getData(),i=t.coordinateSystem,n=i.grid.getRect(),r=i.getBaseAxis(),a=i.getOtherAxis(r),o=e.mapDimension(a.dim),s=e.mapDimension(r.dim),l=a.isHorizontal(),u=l?0:1,d=x(m([t]),r,t).width;return d>c||(d=c),{progress:f}}function f(t,e){var c,f=t.count,p=new h(2*f),g=new h(2*f),v=new h(f),m=[],y=[],x=0,_=0;while(null!=(c=t.next()))y[u]=e.get(o,c),y[1-u]=e.get(s,c),m=i.dataToPoint(y,null,m),g[x]=l?n.x+n.width:m[0],p[x++]=m[0],g[x]=l?m[1]:n.y+n.height,p[x++]=m[1],v[_++]=c;e.setLayout({largePoints:p,largeDataIndices:v,largeBackgroundPoints:g,barWidth:d,valueAxisStart:w(r,a,!1),backgroundStart:l?n.x:n.y,valueAxisHorizontal:l})}}};function S(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function T(t){return t.pipelineContext&&t.pipelineContext.large}function w(t,e,i){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=p,e.prepareLayoutBarSeries=g,e.makeColumnLayout=m,e.retrieveColumnLayout=x,e.layout=_,e.largeLayout=b},"9e2e":function(t,e,i){var n=i("a73c"),r=i("9850"),a=i("82eb"),o=a.WILL_BE_RESTORED,s=new r,l=function(){};l.prototype={constructor:l,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&n.normalizeTextStyle(i,!0);var r=i.text;if(null!=r&&(r+=""),n.needDrawText(r,i)){t.save();var a=this.transform;i.transformText?this.setTransform(t):a&&(s.copy(e),s.applyTransform(a),e=s),n.renderText(this,t,r,i,e,o),t.restore()}}};var u=l;t.exports=u},"9e47":function(t,e,i){var n=i("6d8b"),r=i("71ad"),a=i("6cb7"),o=i("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,u=i("8e43"),c=["value","category","time","log"];function h(t,e,i,o){n.each(c,(function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,u=o?s(e):{},c=r.getTheme();n.merge(e,c.get(a+"Axis")),n.merge(e,this.getDefaultOption()),e.type=i(t,e),o&&l(e,u,o)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},r[a+"Axis"],o],!0)})})),a.registerSubTypeDefaulter(t+"Axis",n.curry(i,t))}t.exports=h},"9e87":function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("50e5");n.registerAction("dataZoom",(function(t,e){var i=a.createLinkedNodesFinder(r.bind(e.eachComponent,e,"dataZoom"),a.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),n=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){n.push.apply(n,i(t).nodes)})),r.each(n,(function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},"9f51":function(t,e,i){var n=i("857d"),r=n.normalizeRadian,a=2*Math.PI;function o(t,e,i,n,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>i||d+h<i)return!1;if(Math.abs(n-o)%a<1e-4)return!0;if(s){var f=n;n=r(o),o=r(f)}else n=r(n),o=r(o);n>o&&(o+=a);var p=Math.atan2(c,u);return p<0&&(p+=a),p>=n&&p<=o||p+a>=n&&p+a<=o}e.containStroke=o},"9f82":function(t,e,i){var n=i("ee1a"),r=n.isDimensionStacked,a=i("6d8b"),o=a.map;function s(t,e,i){var n,a=t.getBaseAxis(),s=t.getOtherAxis(a),u=l(s,i),c=a.dim,h=s.dim,d=e.mapDimension(h),f=e.mapDimension(c),p="x"===h||"radius"===h?1:0,g=o(t.dimensions,(function(t){return e.mapDimension(t)})),v=e.getCalculationInfo("stackResultDimension");return(n|=r(e,g[0]))&&(g[0]=v),(n|=r(e,g[1]))&&(g[1]=v),{dataDimsForPoint:g,valueStart:u,valueAxisDim:h,baseAxisDim:c,stacked:!!n,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function l(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function u(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=i.get(t.baseDim,n),o[1-a]=r,e.dataToPoint(o)}e.prepareDataCoordInfo=s,e.getStackedOnPoint=u},"9fa3":function(t,e,i){var n=i("4ab1"),r=i("6d8b"),a=i("1687");function o(t,e){n.call(this,t,e,"clipPath","__clippath_in_use__")}r.inherits(o,n),o.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},o.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var n,r,o=this.getDefs(!0),s=e[0],l=i?"_textDom":"_dom";s[l]?(r=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",r),o.appendChild(n),s[l]=n);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var c=Array.prototype.slice.call(s.transform);a.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);n.innerHTML="",n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},o.prototype.markUsed=function(t){var e=this;t.__clipPaths&&r.each(t.__clipPaths,(function(t){t._dom&&n.prototype.markUsed.call(e,t._dom),t._textDom&&n.prototype.markUsed.call(e,t._textDom)}))};var s=o;t.exports=s},a016:function(t,e,i){var n=i("4f85"),r=i("e46b"),a=i("6d8b"),o=i("eda2"),s=o.encodeHTML,l=i("c4a3"),u=n.extend({type:"series.radar",dependencies:["radar"],init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(a.bind(this.getData,this),a.bind(this.getRawData,this))},getInitialData:function(t,e){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t,e,i,n){var r=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),u=this.getData().getName(t),c="html"===n?"<br/>":"\n";return s(""===u?this.name:u)+c+a.map(l,(function(e,i){var n=r.get(r.mapDimension(e.dim),t);return s(e.name+" : "+n)})).join(c)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,n=e.getValues(a.map(i.dimensions,(function(t){return e.mapDimension(t)})),t,!0),r=0,o=n.length;r<o;r++)if(!isNaN(n[r])){var s=i.getIndicatorAxes();return i.coordToPoint(s[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}}),c=u;t.exports=c},a04e:function(t,e,i){var n=i("6cb7");n.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},a15a:function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("9850"),o=i("e86a"),s=o.calculateTextPosition,l=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),u=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),c=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;t.moveTo(i-c,l+s),t.arc(i,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),h=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),d={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:u,pin:c,arrow:h,triangle:l},f={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},p={};n.each(d,(function(t,e){p[e]=new t}));var g=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=s(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=p[n];r||(n="rect",r=p[n]),f[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}});function v(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function m(t,e,i,n,o,s,l){var u,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),u=0===t.indexOf("image://")?r.makeImage(t.slice(8),new a(e,i,n,o),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new a(e,i,n,o),l?"center":"cover"):new g({shape:{symbolType:t,x:e,y:i,width:n,height:o}}),u.__isEmptyBrush=c,u.setColor=v,u.setColor(s),u}e.createSymbol=m},a18f:function(t,e,i){var n=i("3a56"),r=n.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=r},a38d:function(t,e,i){var n=i("2306"),r=i("392f"),a=i("9680"),o=i("68ab"),s=n.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(var r=0;r<i.length;){var a=i[r++];if(a>0){t.moveTo(i[r++],i[r++]);for(var o=1;o<a;o++)t.lineTo(i[r++],i[r++])}}else for(r=0;r<i.length;){var s=i[r++],l=i[r++],u=i[r++],c=i[r++];if(t.moveTo(s,l),n>0){var h=(s+u)/2-(l-c)*n,d=(l+c)/2-(u-s)*n;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,r=i.curveness;if(i.polyline)for(var s=0,l=0;l<n.length;){var u=n[l++];if(u>0)for(var c=n[l++],h=n[l++],d=1;d<u;d++){var f=n[l++],p=n[l++];if(a.containStroke(c,h,f,p))return s}s++}else for(s=0,l=0;l<n.length;){c=n[l++],h=n[l++],f=n[l++],p=n[l++];if(r>0){var g=(c+f)/2-(h-p)*r,v=(h+p)/2-(f-c)*r;if(o.containStroke(c,h,g,v,f,p))return s}else if(a.containStroke(c,h,f,p))return s;s++}return-1}});function l(){this.group=new n.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t){this.group.removeAll();var e=new s({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e){var i=new s;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)})))},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var c=l;t.exports=c},a4b1:function(t,e,i){var n=i("3eba");i("00ba"),i("4d62");var r=i("98e7"),a=i("24b9"),o=i("d3f4");n.registerVisual(r("funnel")),n.registerLayout(a),n.registerProcessor(o("funnel"))},a4fe:function(t,e,i){var n=i("3eba"),r="\0_ec_interaction_mutex";function a(t,e,i){var n=l(t);n[e]=i}function o(t,e,i){var n=l(t),r=n[e];r===i&&(n[e]=null)}function s(t,e){return!!l(t)[e]}function l(t){return t[r]||(t[r]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=a,e.release=o,e.isTaken=s},a666:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2306"),o=i("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",u=n.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){a=this._mapDraw;a&&r.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new o(i,!0);r.add(a.group),a.draw(t,e,i,this,n),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,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(t,e,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),(function(e,i){if(!isNaN(e)){var u=n.getItemLayout(i);if(u&&u.point){var d=u.point,f=u.offset,p=new a.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*f,cy:d[1],r:3},silent:!0,z2:8+(f?0:a.Z2_EMPHASIS_LIFT+1)});if(!f){var g=t.mainSeries.getData(),v=n.getName(i),m=g.indexOfName(v),y=n.getItemModel(i),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),S=r.retrieve2(t.getFormattedLabel(m,"normal"),v),T=r.retrieve2(t.getFormattedLabel(m,"emphasis"),S),w=b[s],A=Math.random();if(!w){w=b[s]={};var E=r.curry(c,!0),I=r.curry(c,!1);b.on("mouseover",E).on("mouseout",I).on("emphasis",E).on("normal",I)}b[l]=A,r.extend(w,{recordVersion:A,circle:p,labelModel:x,hoverLabelModel:_,emphasisText:T,normalText:S}),h(w,!1)}o.add(p)}}}))}});function c(t){var e=this[s];e&&e.recordVersion===this[l]&&h(e,t)}function h(t,e){var i=t.circle,n=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(a.setTextStyle({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=a.Z2_EMPHASIS_LIFT):(a.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}t.exports=u},a73c:function(t,e,i){var n=i("6d8b"),r=n.retrieve2,a=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,u=n.isObject,c=i("e86a"),h=i("5693"),d=i("5e76"),f=i("7d6d"),p=i("82eb"),g=p.ContextCachedBy,v=p.WILL_BE_RESTORED,m=c.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},S={};function T(t){return w(t),o(t.rich,w),t}function w(t){if(t){t.font=c.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||x[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=s(t.textPadding))}}function A(t,e,i,n,r,a){n.rich?I(t,e,i,n,r,a):E(t,e,i,n,r,a)}function E(t,e,i,n,r,a){"use strict";var o,s=C(n),l=!1,u=e.__attrCachedBy===g.PLAIN_TEXT;a!==v?(a&&(o=a.style,l=!s&&u&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(e.__attrCachedBy=g.NONE);var h=n.font||m;l&&h===(o.font||m)||(e.font=h);var d=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,d=t.__computedFont=e.font);var p=n.textPadding,y=n.textLineHeight,x=t.__textCotentBlock;x&&!t.__dirtyText||(x=t.__textCotentBlock=c.parsePlainText(i,d,p,y,n.truncate));var b=x.outerHeight,T=x.lines,w=x.lineHeight,A=P(S,t,n,r),E=A.baseX,I=A.baseY,D=A.textAlign||"left",L=A.textVerticalAlign;M(e,n,r,E,I);var R=c.adjustTextY(I,b,L),O=E,B=R;if(s||p){var V=c.getWidth(i,d),G=V;p&&(G+=p[1]+p[3]);var U=c.adjustTextX(E,G,D);s&&k(t,e,n,U,R,G,b),p&&(O=z(E,D,p),B+=p[0])}e.textAlign=D,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var H=0;H<_.length;H++){var W=_[H],j=W[0],K=W[1],Y=n[j];l&&Y===o[j]||(e[K]=f(e,K,Y||W[2]))}B+=w/2;var X=n.textStrokeWidth,q=l?o.textStrokeWidth:null,Z=!l||X!==q,$=!l||Z||n.textStroke!==o.textStroke,Q=N(n.textStroke,X),J=F(n.textFill);if(Q&&(Z&&(e.lineWidth=X),$&&(e.strokeStyle=Q)),J&&(l&&n.textFill===o.textFill||(e.fillStyle=J)),1===T.length)Q&&e.strokeText(T[0],O,B),J&&e.fillText(T[0],O,B);else for(H=0;H<T.length;H++)Q&&e.strokeText(T[H],O,B),J&&e.fillText(T[H],O,B),B+=w}function I(t,e,i,n,r,a){a!==v&&(e.__attrCachedBy=g.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=c.parseRichText(i,n)),D(t,e,o,n,r)}function D(t,e,i,n,r){var a=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=P(S,t,n,r),h=u.baseX,d=u.baseY,f=u.textAlign,p=u.textVerticalAlign;M(e,n,r,h,d);var g=c.adjustTextX(h,o,f),v=c.adjustTextY(d,s,p),m=g,y=v;l&&(m+=l[3],y+=l[0]);var x=m+a;C(n)&&k(t,e,n,g,v,o,s);for(var _=0;_<i.lines.length;_++){var b,T=i.lines[_],w=T.tokens,A=w.length,E=T.lineHeight,I=T.width,D=0,R=m,O=x,N=A-1;while(D<A&&(b=w[D],!b.textAlign||"left"===b.textAlign))L(t,e,b,n,E,y,R,"left"),I-=b.width,R+=b.width,D++;while(N>=0&&(b=w[N],"right"===b.textAlign))L(t,e,b,n,E,y,O,"right"),I-=b.width,O-=b.width,N--;R+=(a-(R-m)-(x-O)-I)/2;while(D<=N)b=w[D],L(t,e,b,n,E,y,R+b.width/2,"center"),R+=b.width,D++;y+=E}}function M(t,e,i,n,r){if(i&&e.textRotation){var a=e.textOrigin;"center"===a?(n=i.width/2+i.x,r=i.height/2+i.y):a&&(n=a[0]+i.x,r=a[1]+i.y),t.translate(n,r),t.rotate(-e.textRotation),t.translate(-n,-r)}}function L(t,e,i,n,o,s,l,u){var c=n.rich[i.styleName]||{};c.text=i.text;var h=i.textVerticalAlign,d=s+o/2;"top"===h?d=s+i.height/2:"bottom"===h&&(d=s+o-i.height/2),!i.isLineHolder&&C(c)&&k(t,e,c,"right"===u?l-i.width:"center"===u?l-i.width/2:l,d-i.height/2,i.width,i.height);var f=i.textPadding;f&&(l=z(l,u,f),d-=i.height/2-f[2]-i.textHeight/2),O(e,"shadowBlur",a(c.textShadowBlur,n.textShadowBlur,0)),O(e,"shadowColor",c.textShadowColor||n.textShadowColor||"transparent"),O(e,"shadowOffsetX",a(c.textShadowOffsetX,n.textShadowOffsetX,0)),O(e,"shadowOffsetY",a(c.textShadowOffsetY,n.textShadowOffsetY,0)),O(e,"textAlign",u),O(e,"textBaseline","middle"),O(e,"font",i.font||m);var p=N(c.textStroke||n.textStroke,v),g=F(c.textFill||n.textFill),v=r(c.textStrokeWidth,n.textStrokeWidth);p&&(O(e,"lineWidth",v),O(e,"strokeStyle",p),e.strokeText(i.text,l,d)),g&&(O(e,"fillStyle",g),e.fillText(i.text,l,d))}function C(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function k(t,e,i,n,r,a,o){var s=i.textBackgroundColor,c=i.textBorderWidth,f=i.textBorderColor,p=l(s);if(O(e,"shadowBlur",i.textBoxShadowBlur||0),O(e,"shadowColor",i.textBoxShadowColor||"transparent"),O(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),O(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||c&&f){e.beginPath();var g=i.textBorderRadius;g?h.buildPath(e,{x:n,y:r,width:a,height:o,r:g}):e.rect(n,r,a,o),e.closePath()}if(p)if(O(e,"fillStyle",s),null!=i.fillOpacity){var v=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=v}else e.fill();else if(u(s)){var m=s.image;m=d.createOrUpdateImage(m,null,t,R,s),m&&d.isImageReady(m)&&e.drawImage(m,n,r,a,o)}if(c&&f)if(O(e,"lineWidth",c),O(e,"strokeStyle",f),null!=i.strokeOpacity){v=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=v}else e.stroke()}function R(t,e){e.image=t}function P(t,e,i,n){var r=i.x||0,a=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)r=n.x+B(l[0],n.width),a=n.y+B(l[1],n.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(b,i,n):c.calculateTextPosition(b,i,n);r=u.x,a=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var h=i.textOffset;h&&(r+=h[0],a+=h[1])}return t=t||{},t.baseX=r,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function O(t,e,i){return t[e]=f(t,e,i),t[e]}function N(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function F(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function B(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function z(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function V(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}e.normalizeTextStyle=T,e.renderText=A,e.getBoxPosition=P,e.getStroke=N,e.getFill=F,e.parsePercent=B,e.needDrawText=V},a753:function(t,e,i){var n=i("1f0e"),r=i("2306"),a=i("e887"),o=i("3842"),s=o.parsePercent,l=o.round,u=o.linearMap;function c(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),a=Math.min(n,r),o=s(i[0],e.getWidth()),l=s(i[1],e.getHeight()),u=s(t.get("radius"),a/2);return{cx:o,cy:l,r:u}}function h(t,e){return e&&("string"===typeof e?t=e.replace("{value}",null!=t?t:""):"function"===typeof e&&(t=e(t))),t}var d=2*Math.PI,f=a.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),r=c(t,i);this._renderMain(t,e,i,n,r)},dispose:function(){},_renderMain:function(t,e,i,n,a){for(var o=this.group,s=t.getModel("axisLine"),l=s.getModel("lineStyle"),u=t.get("clockwise"),c=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,f=(h-c)%d,p=c,g=l.get("width"),v=s.get("show"),m=0;v&&m<n.length;m++){var y=Math.min(Math.max(n[m][0],0),1),x=(h=c+f*y,new r.Sector({shape:{startAngle:p,endAngle:h,cx:a.cx,cy:a.cy,clockwise:u,r0:a.r-g,r:a.r},silent:!0}));x.setStyle({fill:n[m][1]}),x.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),o.add(x),p=h}var _=function(t){if(t<=0)return n[0][1];for(var e=0;e<n.length;e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};if(!u){var b=c;c=h,h=b}this._renderTicks(t,e,i,_,a,c,h,u),this._renderPointer(t,e,i,_,a,c,h,u),this._renderTitle(t,e,i,_,a),this._renderDetail(t,e,i,_,a)},_renderTicks:function(t,e,i,n,a,o,u,c){for(var d=this.group,f=a.cx,p=a.cy,g=a.r,v=+t.get("min"),m=+t.get("max"),y=t.getModel("splitLine"),x=t.getModel("axisTick"),_=t.getModel("axisLabel"),b=t.get("splitNumber"),S=x.get("splitNumber"),T=s(y.get("length"),g),w=s(x.get("length"),g),A=o,E=(u-o)/b,I=E/S,D=y.getModel("lineStyle").getLineStyle(),M=x.getModel("lineStyle").getLineStyle(),L=0;L<=b;L++){var C=Math.cos(A),k=Math.sin(A);if(y.get("show")){var R=new r.Line({shape:{x1:C*g+f,y1:k*g+p,x2:C*(g-T)+f,y2:k*(g-T)+p},style:D,silent:!0});"auto"===D.stroke&&R.setStyle({stroke:n(L/b)}),d.add(R)}if(_.get("show")){var P=h(l(L/b*(m-v)+v),_.get("formatter")),O=_.get("distance"),N=n(L/b);d.add(new r.Text({style:r.setTextStyle({},_,{text:P,x:C*(g-T-O)+f,y:k*(g-T-O)+p,textVerticalAlign:k<-.4?"top":k>.4?"bottom":"middle",textAlign:C<-.4?"left":C>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(x.get("show")&&L!==b){for(var F=0;F<=S;F++){C=Math.cos(A),k=Math.sin(A);var B=new r.Line({shape:{x1:C*g+f,y1:k*g+p,x2:C*(g-w)+f,y2:k*(g-w)+p},silent:!0,style:M});"auto"===M.stroke&&B.setStyle({stroke:n((L+F/S)/b)}),d.add(B),A+=I}A-=I}else A+=E}},_renderPointer:function(t,e,i,a,o,l,c,h){var d=this.group,f=this._data;if(t.get("pointer.show")){var p=[+t.get("min"),+t.get("max")],g=[l,c],v=t.getData(),m=v.mapDimension("value");v.diff(f).add((function(e){var i=new n({shape:{angle:l}});r.initProps(i,{shape:{angle:u(v.get(m,e),p,g,!0)}},t),d.add(i),v.setItemGraphicEl(e,i)})).update((function(e,i){var n=f.getItemGraphicEl(i);r.updateProps(n,{shape:{angle:u(v.get(m,e),p,g,!0)}},t),d.add(n),v.setItemGraphicEl(e,n)})).remove((function(t){var e=f.getItemGraphicEl(t);d.remove(e)})).execute(),v.eachItemGraphicEl((function(t,e){var i=v.getItemModel(e),n=i.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:s(n.get("width"),o.r),r:s(n.get("length"),o.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",a(u(v.get(m,e),p,[0,1],!0))),r.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=v}else f&&f.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,e,i,n,a){var o=t.getData(),l=o.mapDimension("value"),c=t.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),d=a.cx+s(h[0],a.r),f=a.cy+s(h[1],a.r),p=+t.get("min"),g=+t.get("max"),v=t.getData().get(l,0),m=n(u(v,[p,g],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},c,{x:d,y:f,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,a){var o=t.getModel("detail"),l=+t.get("min"),c=+t.get("max");if(o.get("show")){var d=o.get("offsetCenter"),f=a.cx+s(d[0],a.r),p=a.cy+s(d[1],a.r),g=s(o.get("width"),a.r),v=s(o.get("height"),a.r),m=t.getData(),y=m.get(m.mapDimension("value"),0),x=n(u(y,[l,c],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},o,{x:f,y:p,text:h(y,o.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),p=f;t.exports=p},a7e2:function(t,e,i){var n=i("3eba");i("7293"),i("ae46");var r=i("6582"),a=i("ee98");n.registerLayout(r),n.registerVisual(a)},a7f2:function(t,e){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:i[0]})}t.exports=n},a87d:function(t,e,i){var n=i("22d1"),r=i("401b"),a=r.applyTransform,o=i("9850"),s=i("41ef"),l=i("e86a"),u=i("a73c"),c=i("9e2e"),h=i("19eb"),d=i("0da8"),f=i("76a5"),p=i("cbe5"),g=i("20c8"),v=i("42e5"),m=i("d3a4"),y=g.CMD,x=Math.round,_=Math.sqrt,b=Math.abs,S=Math.cos,T=Math.sin,w=Math.max;if(!n.canvasSupported){var A=",",E="progid:DXImageTransform.Microsoft",I=21600,D=I/2,M=1e5,L=1e3,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=I+","+I,t.coordorigin="0,0"},k=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},R=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},P=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},O=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},N=function(t,e,i){return(parseFloat(t)||0)*M+(parseFloat(e)||0)*L+i},F=u.parsePercent,B=function(t,e,i){var n=s.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=R(n[0],n[1],n[2]),t.opacity=i*n[3])},z=function(t){var e=s.parse(t);return[R(e[0],e[1],e[2]),e[3]]},V=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof v){var r,o=0,s=[0,0],l=0,u=1,c=i.getBoundingRect(),h=c.width,d=c.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&&(a(p,p,f),a(g,g,f));var m=g[0]-p[0],y=g[1]-p[1];o=180*Math.atan2(m,y)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial";p=[n.x*h,n.y*d],f=i.transform;var x=i.scale,_=h,b=d;s=[(p[0]-c.x)/_,(p[1]-c.y)/b],f&&a(p,p,f),_/=x[0]*I,b/=x[1]*I;var S=w(_,b);l=0/S,u=2*n.r/S-l}var T=n.colorStops.slice();T.sort((function(t,e){return t.offset-e.offset}));for(var A=T.length,E=[],D=[],M=0;M<A;M++){var L=T[M],C=z(L.color);D.push(L.offset*u+l+" "+C[0]),0!==M&&M!==A-1||E.push(C)}if(A>=2){var k=E[0][0],R=E[1][0],P=E[0][1]*e.opacity,O=E[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=k,t.color2=R,t.colors=D.join(","),t.opacity=O,t.opacity2=P}"radial"===r&&(t.focusposition=s.join(","))}else B(t,n,e.opacity)},G=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof v||B(t,e.stroke,e.opacity)},U=function(t,e,i,n){var r="fill"===e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.lineWidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof v&&O(t,a),a||(a=m.createNode(e)),r?V(a,i,n):G(a,i),P(t,a)):(t[r?"filled":"stroked"]="false",O(t,a))},H=[[],[],[]],W=function(t,e){var i,n,r,o,s,l,u=y.M,c=y.C,h=y.L,d=y.A,f=y.Q,p=[],g=t.data,v=t.len();for(o=0;o<v;){switch(r=g[o++],n="",i=0,r){case u:n=" m ",i=1,s=g[o++],l=g[o++],H[0][0]=s,H[0][1]=l;break;case h:n=" l ",i=1,s=g[o++],l=g[o++],H[0][0]=s,H[0][1]=l;break;case f:case c:n=" c ",i=3;var m,b,w=g[o++],E=g[o++],M=g[o++],L=g[o++];r===f?(m=M,b=L,M=(M+2*w)/3,L=(L+2*E)/3,w=(s+2*w)/3,E=(l+2*E)/3):(m=g[o++],b=g[o++]),H[0][0]=w,H[0][1]=E,H[1][0]=M,H[1][1]=L,H[2][0]=m,H[2][1]=b,s=m,l=b;break;case d:var C=0,k=0,R=1,P=1,O=0;e&&(C=e[4],k=e[5],R=_(e[0]*e[0]+e[1]*e[1]),P=_(e[2]*e[2]+e[3]*e[3]),O=Math.atan2(-e[1]/P,e[0]/R));var N=g[o++],F=g[o++],B=g[o++],z=g[o++],V=g[o++]+O,G=g[o++]+V+O;o++;var U=g[o++],W=N+S(V)*B,j=F+T(V)*z,K=(w=N+S(G)*B,E=F+T(G)*z,U?" wa ":" at ");Math.abs(W-w)<1e-4&&(Math.abs(G-V)>.01?U&&(W+=270/I):Math.abs(j-F)<1e-4?U&&W<N||!U&&W>N?E-=270/I:E+=270/I:U&&j<F||!U&&j>F?w+=270/I:w-=270/I),p.push(K,x(((N-B)*R+C)*I-D),A,x(((F-z)*P+k)*I-D),A,x(((N+B)*R+C)*I-D),A,x(((F+z)*P+k)*I-D),A,x((W*R+C)*I-D),A,x((j*P+k)*I-D),A,x((w*R+C)*I-D),A,x((E*P+k)*I-D)),s=w,l=E;break;case y.R:var Y=H[0],X=H[1];Y[0]=g[o++],Y[1]=g[o++],X[0]=Y[0]+g[o++],X[1]=Y[1]+g[o++],e&&(a(Y,Y,e),a(X,X,e)),Y[0]=x(Y[0]*I-D),X[0]=x(X[0]*I-D),Y[1]=x(Y[1]*I-D),X[1]=x(X[1]*I-D),p.push(" m ",Y[0],A,Y[1]," l ",X[0],A,Y[1]," l ",X[0],A,X[1]," l ",Y[0],A,X[1]);break;case y.Z:p.push(" x ")}if(i>0){p.push(n);for(var q=0;q<i;q++){var Z=H[q];e&&a(Z,Z,e),p.push(x(Z[0]*I-D),A,x(Z[1]*I-D),q<i-1?A:"")}}}return p.join("")};p.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=m.createNode("shape"),C(i),this._vmlEl=i),U(i,"fill",e,this),U(i,"stroke",e,this);var n=this.transform,r=null!=n,a=i.getElementsByTagName("stroke")[0];if(a){var o=e.lineWidth;if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=_(b(s))}a.weight=o+"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=N(this.zlevel,this.z,this.z2),P(t,i),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},p.prototype.onRemove=function(t){O(t,this._vmlEl),this.removeRectText(t)},p.prototype.onAdd=function(t){P(t,this._vmlEl),this.appendRectText(t)};var j=function(t){return"object"===typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};d.prototype.brushVML=function(t){var e,i,n=this.style,r=n.image;if(j(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var s=r.runtimeStyle,l=s.width,u=s.height;s.width="auto",s.height="auto",e=r.width,i=r.height,s.width=l,s.height=u,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}r=o}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var c=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,S=this._vmlEl;S||(S=m.doc.createElement("div"),C(S),this._vmlEl=S);var T,I=S.style,D=!1,M=1,L=1;if(this.transform&&(T=this.transform,M=_(T[0]*T[0]+T[1]*T[1]),L=_(T[2]*T[2]+T[3]*T[3]),D=T[1]||T[2]),D){var k=[c,h],R=[c+d,h],O=[c,h+f],F=[c+d,h+f];a(k,k,T),a(R,R,T),a(O,O,T),a(F,F,T);var B=w(k[0],R[0],O[0],F[0]),z=w(k[1],R[1],O[1],F[1]),V=[];V.push("M11=",T[0]/M,A,"M12=",T[2]/L,A,"M21=",T[1]/M,A,"M22=",T[3]/L,A,"Dx=",x(c*M+T[4]),A,"Dy=",x(h*L+T[5])),I.padding="0 "+x(B)+"px "+x(z)+"px 0",I.filter=E+".Matrix("+V.join("")+", SizingMethod=clip)"}else T&&(c=c*M+T[4],h=h*L+T[5]),I.filter="",I.left=x(c)+"px",I.top=x(h)+"px";var G=this._imageEl,U=this._cropEl;G||(G=m.doc.createElement("div"),this._imageEl=G);var H=G.style;if(b){if(e&&i)H.width=x(M*e*d/p)+"px",H.height=x(L*i*f/g)+"px";else{var W=new Image,K=this;W.onload=function(){W.onload=null,e=W.width,i=W.height,H.width=x(M*e*d/p)+"px",H.height=x(L*i*f/g)+"px",K._imageWidth=e,K._imageHeight=i,K._imageSrc=r},W.src=r}U||(U=m.doc.createElement("div"),U.style.overflow="hidden",this._cropEl=U);var Y=U.style;Y.width=x((d+v*d/p)*M),Y.height=x((f+y*f/g)*L),Y.filter=E+".Matrix(Dx="+-v*d/p*M+",Dy="+-y*f/g*L+")",U.parentNode||S.appendChild(U),G.parentNode!==U&&U.appendChild(G)}else H.width=x(M*d)+"px",H.height=x(L*f)+"px",S.appendChild(G),U&&U.parentNode&&(S.removeChild(U),this._cropEl=null);var X="",q=n.opacity;q<1&&(X+=".Alpha(opacity="+x(100*q)+") "),X+=E+".AlphaImageLoader(src="+r+", SizingMethod=scale)",H.filter=X,S.style.zIndex=N(this.zlevel,this.z,this.z2),P(t,S),null!=n.text&&this.drawRectText(t,this.getBoundingRect())}},d.prototype.onRemove=function(t){O(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},d.prototype.onAdd=function(t){P(t,this._vmlEl),this.appendRectText(t)};var K,Y="normal",X={},q=0,Z=100,$=document.createElement("div"),Q=function(t){var e=X[t];if(!e){q>Z&&(q=0,X={});var i,n=$.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||Y,variant:n.fontVariant||Y,weight:n.fontWeight||Y,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},X[t]=e,q++}return e};l.$override("measureText",(function(t,e){var i=m.doc;K||(K=i.createElement("div"),K.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(K));try{K.style.font=e}catch(n){}return K.innerHTML="",K.appendChild(i.createTextNode(t)),{width:K.offsetWidth}}));for(var J=new o,tt=function(t,e,i,n){var r=this.style;this.__dirty&&u.normalizeTextStyle(r,!0);var o=r.text;if(null!=o&&(o+=""),o){if(r.rich){var s=l.parseRichText(o,r);o=[];for(var c=0;c<s.lines.length;c++){for(var h=s.lines[c].tokens,d=[],f=0;f<h.length;f++)d.push(h[f].text);o.push(d.join(""))}o=o.join("\n")}var p,g,v=r.textAlign,y=r.textVerticalAlign,_=Q(r.font),b=_.style+" "+_.variant+" "+_.weight+" "+_.size+'px "'+_.family+'"';i=i||l.getBoundingRect(o,b,v,y,r.textPadding,r.textLineHeight);var S=this.transform;if(S&&!n&&(J.copy(e),J.applyTransform(S),e=J),n)p=e.x,g=e.y;else{var T=r.textPosition;if(T instanceof Array)p=e.x+F(T[0],e.width),g=e.y+F(T[1],e.height),v=v||"left";else{var w=this.calculateTextPosition?this.calculateTextPosition({},r,e):l.calculateTextPosition({},r,e);p=w.x,g=w.y,v=v||w.textAlign,y=y||w.textVerticalAlign}}p=l.adjustTextX(p,i.width,v),g=l.adjustTextY(g,i.height,y),g+=i.height/2;var E,I,D,M=m.createNode,L=this._textVmlEl;L?(D=L.firstChild,E=D.nextSibling,I=E.nextSibling):(L=M("line"),E=M("path"),I=M("textpath"),D=M("skew"),I.style["v-text-align"]="left",C(L),E.textpathok=!0,I.on=!0,L.from="0 0",L.to="1000 0.05",P(L,D),P(L,E),P(L,I),this._textVmlEl=L);var R=[p,g],O=L.style;S&&n?(a(R,R,S),D.on=!0,D.matrix=S[0].toFixed(3)+A+S[2].toFixed(3)+A+S[1].toFixed(3)+A+S[3].toFixed(3)+",0,0",D.offset=(x(R[0])||0)+","+(x(R[1])||0),D.origin="0 0",O.left="0px",O.top="0px"):(D.on=!1,O.left=x(p)+"px",O.top=x(g)+"px"),I.string=k(o);try{I.style.font=b}catch(B){}U(L,"fill",{fill:r.textFill,opacity:r.opacity},this),U(L,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash||null},this),L.style.zIndex=N(this.zlevel,this.z,this.z2),P(t,L)}},et=function(t){O(t,this._textVmlEl),this._textVmlEl=null},it=function(t){P(t,this._textVmlEl)},nt=[c,h,d,p,f],rt=0;rt<nt.length;rt++){var at=nt[rt].prototype;at.drawRectText=tt,at.removeRectText=et,at.appendRectText=it}f.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},f.prototype.onRemove=function(t){this.removeRectText(t)},f.prototype.onAdd=function(t){this.appendRectText(t)}}},a890:function(t,e,i){var n=i("0655"),r=i("9850"),a=i("2306"),o=a.linePolygonIntersect,s={lineX:l(0),lineY:l(1),rect:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])},rect:function(t,e,i){return t&&i.boundingRect.intersect(t)}},polygon:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])&&n.contain(i.range,t[0],t[1])},rect:function(t,e,i){var a=i.range;if(!t||a.length<=1)return!1;var s=t.x,l=t.y,u=t.width,c=t.height,h=a[0];return!!(n.contain(a,s,l)||n.contain(a,s+u,l)||n.contain(a,s,l+c)||n.contain(a,s+u,l+c)||r.create(t).contain(h[0],h[1])||o(s,l,s+u,l,a)||o(s,l,s,l+c,a)||o(s+u,l,s+u,l+c,a)||o(s,l+c,s+u,l+c,a))||void 0}}};function l(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var r=n.range,a=e[t];return u(a,r)}},rect:function(n,r,a){if(n){var o=a.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]<s[0]&&s.reverse(),u(s[0],o)||u(s[1],o)||u(o[0],s)||u(o[1],s)}}}}function u(t,e){return e[0]<=t&&t<=e[1]}var c=s;t.exports=c},a8c6:function(t,e,i){var n=i("2449"),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}}}});t.exports=r},a96b:function(t,e,i){var n=i("3eba"),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}}});t.exports=r},a991:function(t,e,i){var n=i("6d8b"),r=i("e86a"),a=i("84ce"),o=i("e0d3"),s=o.makeInner,l=s();function u(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}u.prototype={constructor:u,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),a=i.count();if(n[1]-n[0]<1)return 0;var o=n[0],s=t.dataToCoord(o+1)-t.dataToCoord(o),u=Math.abs(s),c=r.getBoundingRect(o,e.getFont(),"center","top"),h=Math.max(c.height,7),d=h/u;isNaN(d)&&(d=1/0);var f=Math.max(0,Math.floor(d)),p=l(t.model),g=p.lastAutoInterval,v=p.lastTickCount;return null!=g&&null!=v&&Math.abs(g-f)<=1&&Math.abs(v-a)<=1&&g>f?f=g:(p.lastTickCount=a,p.lastAutoInterval=f),f}},n.inherits(u,a);var c=u;t.exports=c},aa01:function(t,e,i){var n=i("6d8b"),r=i("4f85"),a=i("06c7"),o=i("4319"),s=i("55ac"),l=s.wrapTreePathInfo,u=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var i={name:t.name,children:t.data};c(i);var r=n.map(t.levels||[],(function(t){return new o(t,this,e)}),this),s=a.createTree(i,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var i=s.getNodeByDataIndex(e),n=r[i.depth];return n&&(t.parentModel=n),t}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=l(i,this),e},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(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function c(t){var e=0;n.each(t.children,(function(t){c(t);var i=t.value;n.isArray(i)&&(i=i[0]),e+=i}));var i=t.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),n.isArray(t.value)?t.value[0]=i:t.value=i}t.exports=u},aa3e:function(t,e,i){var n=i("6d8b");function r(t,e){return e=e||[0,0],n.map(["x","y"],(function(i,n){var r=this.getAxis(i),a=e[n],o=t[n]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))}),this)}function a(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(r,t)}}}t.exports=a},aadf:function(t,e,i){var n=i("3eba"),r=i("6d8b");i("5aa9"),i("d6d9"),i("3329");var a=i("9d57"),o=a.layout,s=i("7f96");i("01ed"),n.registerLayout(r.curry(o,"pictorialBar")),n.registerVisual(s("pictorialBar","roundRect"))},ab05:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2b8c"),o=i("5f14"),s=n.PRIORITY.VISUAL.COMPONENT;function l(t,e,i,n){for(var r=e.targetVisuals[n],a=o.prepareVisualTypes(r),s={color:t.getData().getVisual("color")},l=0,u=a.length;l<u;l++){var c=a[l],h=r["opacity"===c?"__alphaForOpacity":c];h&&h.applyVisual(i,d,f)}return s.color;function d(t){return s[t]}function f(t,e){s[t]=e}}n.registerVisual(s,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",(function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(a.incrementalApplyVisual(e.stateList,e.targetVisuals,r.bind(e.getValueState,e),e.getDataDimension(t.getData())))})),i}}),n.registerVisual(s,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var a=e.getVisualMeta(r.bind(l,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimension(i),s=i.getDimensionInfo(o);null!=s&&(a.dimension=s.index,n.push(a))}})),t.getData().setVisual("visualMeta",n)}})},ab71:function(t,e){var i=["lineStyle","normal","opacity"],n={seriesType:"parallel",reset:function(t,e,n){var r=t.getModel("itemStyle"),a=t.getModel("lineStyle"),o=e.get("color"),s=a.get("color")||r.get("color")||o[t.seriesIndex%o.length],l=t.get("inactiveOpacity"),u=t.get("activeOpacity"),c=t.getModel("lineStyle").getLineStyle(),h=t.coordinateSystem,d=t.getData(),f={normal:c.opacity,active:u,inactive:l};function p(t,e){h.eachActiveState(e,(function(t,n){var r=f[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(i,!0);null!=a&&(r=a)}e.setItemVisual(n,"opacity",r)}),t.start,t.end)}return d.setVisual("color",s),{progress:p}}};t.exports=n},abff:function(t,e,i){var n=i("3eba"),r=i("f706"),a=i("c965"),o=i("87c3");n.extendChartView({type:"scatter",render:function(t,e,i){var n=t.getData(),r=this._updateSymbolDraw(n,t);r.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData(),r=this._updateSymbolDraw(n,t);r.incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=o().reset(t);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_getClipShape:function(t){var e=t.coordinateSystem,i=e&&e.getArea&&e.getArea();return t.get("clip",!0)?i:null},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext,o=n.large;return i&&o===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=o?new a:new r,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(t,e,i){var n=i("cbe5"),r=i("401b"),a=i("4a3f"),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,u=a.cubicAt,c=a.quadraticDerivativeAt,h=a.cubicDerivativeAt,d=[];function f(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?h:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?h:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?c:l)(t.x1,t.cpx1,t.x2,e),(i?c:l)(t.y1,t.cpy1,t.y2,e)]}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(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,f=e.percent;0!==f&&(t.moveTo(i,n),null==c||null==h?(f<1&&(o(i,l,r,f,d),l=d[1],r=d[2],o(n,u,a,f,d),u=d[1],a=d[2]),t.quadraticCurveTo(l,u,r,a)):(f<1&&(s(i,l,c,r,f,d),l=d[1],c=d[2],r=d[3],s(n,u,h,a,f,d),u=d[1],h=d[2],a=d[3]),t.bezierCurveTo(l,u,c,h,r,a)))},pointAt:function(t){return f(this.shape,t,!1)},tangentAt:function(t){var e=f(this.shape,t,!0);return r.normalize(e,e)}});t.exports=p},adda:function(t,e,i){var n=i("94e4"),r=n.circularLayout;function a(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&r(t,"symbolSize")}))}t.exports=a},adf4:function(t,e,i){var n=i("4f85"),r=i("b1d4"),a=i("2f45"),o=a.getDimensionTypeByAxis,s=i("6179"),l=i("6d8b"),u=i("e0d3"),c=u.groupData,h=i("eda2"),d=h.encodeHTML,f=i("c4a3"),p=2,g=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new f(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(t){var e=t.length,i={},n=c(t,(function(t){return i.hasOwnProperty(t[0])||(i[t[0]]=-1),t[2]})),r=[];n.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,o=0;o<a;++o){for(var s=r[o].name,l=0;l<r[o].dataList.length;++l){var u=r[o].dataList[l][0];i[u]=o}for(var u in i)i.hasOwnProperty(u)&&i[u]!==o&&(i[u]=o,t[e]=[],t[e][0]=u,t[e][1]=0,t[e][2]=s,e++)}return t},getInitialData:function(t,e){for(var i=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],n=i.get("type"),a=l.filter(t.data,(function(t){return void 0!==t[2]})),u=this.fixData(a||[]),c=[],h=this.nameMap=l.createHashMap(),d=0,f=0;f<u.length;++f)c.push(u[f][p]),h.get(u[f][p])||(h.set(u[f][p],d),d++);var g=r(u,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:o(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),v=new s(g,this);return v.initData(u),v},getLayerSeries:function(){for(var t=this.getData(),e=t.count(),i=[],n=0;n<e;++n)i[n]=n;var r=t.mapDimension("single"),a=c(i,(function(e){return t.get("name",e)})),o=[];return a.buckets.each((function(e,i){e.sort((function(e,i){return t.get(r,e)-t.get(r,i)})),o.push({name:i,indices:e})})),o},getAxisTooltipData:function(t,e,i){l.isArray(t)||(t=t?[t]:[]);for(var n,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,u=0;u<s;++u){for(var c=Number.MAX_VALUE,h=-1,d=a[u].indices.length,f=0;f<d;++f){var p=r.get(t[0],a[u].indices[f]),g=Math.abs(p-e);g<=c&&(n=p,c=g,h=a[u].indices[f])}o.push(h)}return{dataIndices:o,nestestValue:n}},formatTooltip:function(t){var e=this.getData(),i=e.getName(t),n=e.get(e.mapDimension("value"),t);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;t.exports=v},ae46:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("73ca"),o=i("0fd3"),s=i("7e5b"),l=i("4527"),u=i("6a4c"),c=i("a38d"),h=i("6582"),d=i("b0af"),f=d.createClipPath,p=r.extendChartView({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t),a=t.get("zlevel"),o=t.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(n);var u=t.get("clip",!0)&&f(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t);r.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(t,e,i){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=h.reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(t,e){var i=this._lineDraw,n=this._showEffect(e),r=!!e.get("polyline"),h=e.pipelineContext,d=h.large;return i&&n===this._hasEffet&&r===this._isPolyline&&d===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=d?new c:new a(r?n?u:l:n?o:s),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=d,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr(),i="svg"===e.painter.getType();i||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=p},ae69:function(t,e,i){var n=i("cbe5"),r=n.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*i,l=o*i;t.moveTo(n-a,r),t.bezierCurveTo(n-a,r-l,n-s,r-o,n,r-o),t.bezierCurveTo(n+s,r-o,n+a,r-l,n+a,r),t.bezierCurveTo(n+a,r+l,n+s,r+o,n,r+o),t.bezierCurveTo(n-s,r+o,n-a,r+l,n-a,r),t.closePath()}});t.exports=r},ae75:function(t,e,i){var n=i("6d8b"),r=["rect","polygon","keep","clear"];function a(t,e){var i=t&&t.brush;if(n.isArray(i)||(i=i?[i]:[]),i.length){var a=[];n.each(i,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))}));var s=t&&t.toolbox;n.isArray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,a),o(c),e&&!c.length&&c.push.apply(c,r)}}function o(t){var e={};n.each(t,(function(t){e[t]=1})),t.length=0,n.each(e,(function(e,i){t.push(i)}))}t.exports=a},af24:function(t,e,i){i("48c7"),i("f273")},afa0:function(t,e,i){var n=i("6d8b"),r=i("22d1"),a=i("e1fc"),o=i("04f6");function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,r.canvasSupported&&o(i,s)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];var r=n,a=t;while(r)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.clipPath}if(t.isGroup){for(var o=t._children,s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof a&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var i=this._roots[e];i instanceof a&&i.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array){e=0;for(var r=t.length;e<r;e++)this.delRoot(t[e])}else{var o=n.indexOf(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;t.exports=u},b006:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("fab2"),o=i("fc82"),s=i("f4a2"),l=i("2306"),u=["axisLine","axisTickLabel","axisName"],c=n.extendComponentView({type:"parallelAxis",init:function(t,e){c.superApply(this,"init",arguments),(this._brushController=new o(e.getZr())).on("brush",r.bind(this._onBrush,this))},render:function(t,e,i,n){if(!h(t,e,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),t.get("show")){var s=f(t,e),c=s.coordinateSystem,d=t.getAreaSelectStyle(),p=d.width,g=t.axis.dim,v=c.getAxisLayout(g),m=r.extend({strokeContainThreshold:p},v),y=new a(t,m);r.each(u,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(m,d,t,s,p,i);var x=n&&!1===n.animation?null:t;l.groupTransition(o,this._axisGroup,x)}}},_refreshBrushController:function(t,e,i,n,r,a){var o=i.axis.getExtent(),u=o[1]-o[0],c=Math.min(30,.1*Math.abs(u)),h=l.BoundingRect.create({x:o[0],y:-r/2,width:u,height:r});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(h),isTargetByCursor:s.makeRectIsTargetByCursor(h,a,n),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(d(i))},_onBrush:function(t,e){var i=this.axisModel,n=i.axis,a=r.map(t,(function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]}));(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},dispose:function(){this._brushController.dispose()}});function h(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function d(t){var e=t.axis;return r.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function f(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var p=c;t.exports=p},b0af:function(t,e,i){var n=i("2306"),r=i("3842"),a=r.round;function o(t,e,i){var r=t.getArea(),a=t.getBaseAxis().isHorizontal(),o=r.x,s=r.y,l=r.width,u=r.height,c=i.get("lineStyle.width")||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var h=new n.Rect({shape:{x:o,y:s,width:l,height:u}});return e&&(h.shape[a?"width":"height"]=0,n.initProps(h,{shape:{width:l,height:u}},i)),h}function s(t,e,i){var r=t.getArea(),o=new n.Sector({shape:{cx:a(t.cx,1),cy:a(t.cy,1),r0:a(r.r0,1),r:a(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&(o.shape.endAngle=r.startAngle,n.initProps(o,{shape:{endAngle:r.endAngle}},i)),o}function l(t,e,i){return t?"polar"===t.type?s(t,e,i):"cartesian2d"===t.type?o(t,e,i):null:null}e.createGridClipPath=o,e.createPolarClipPath=s,e.createClipPath=l},b11c:function(t,e,i){i("8ec5"),i("db9e"),i("4e9f"),i("d3a0"),i("767c"),i("7c4d"),i("df70")},b12f:function(t,e,i){var n=i("e1fc"),r=i("8918"),a=i("625e"),o=function(){this.group=new n,this.uid=r.getUID("viewComponent")};o.prototype={constructor:o,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},b16f:function(t,e,i){var n=i("4ab1"),r=i("6d8b"),a=i("4942"),o=i("41ef");function s(t,e){n.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}r.inherits(s,n),s.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;r.each(["fill","stroke"],(function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var r,a=e.style[n],o=i.getDefs(!0);a._dom?(r=a._dom,o.contains(a._dom)||i.addDom(r)):r=i.add(a),i.markUsed(e);var s=r.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}}))}},s.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return a("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},s.prototype.update=function(t){var e=this;n.prototype.update.call(this,t,(function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},s.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void a("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,r=i.length;n<r;++n){var s=this.createElement("stop");s.setAttribute("offset",100*i[n].offset+"%");var l=i[n].color;if(l.indexOf("rgba")>-1){var u=o.parse(l)[3],c=o.toHex(l);s.setAttribute("stop-color","#"+c),s.setAttribute("stop-opacity",u)}else s.setAttribute("stop-color",i[n].color);e.appendChild(s)}t._dom=e},s.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&n.prototype.markUsed.call(this,e._dom),e=t.style.stroke,e&&e._dom&&n.prototype.markUsed.call(this,e._dom)}};var l=s;t.exports=l},b1d4:function(t,e,i){var n=i("862d");function r(t,e){return e=e||{},n(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}t.exports=r},b336:function(t,e,i){var n=i("6d8b"),r=n.each;function a(t){var e=t&&t.visualMap;n.isArray(e)||(e=e?[e]:[]),r(e,(function(t){if(t){o(t,"splitList")&&!o(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&n.isArray(e)&&r(e,(function(t){n.isObject(t)&&(o(t,"start")&&!o(t,"min")&&(t.min=t.start),o(t,"end")&&!o(t,"max")&&(t.max=t.end))}))}}))}function o(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=a},b369:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2306"),o=i("80f0"),s=i("55ac"),l=i("f610"),u=i("4a01"),c=i("9850"),h=i("1687"),d=i("e6cd"),f=i("282b"),p=i("eda2"),g=p.windowOpen,v=r.bind,m=a.Group,y=a.Rect,x=r.each,_=3,b=["label"],S=["emphasis","label"],T=["upperLabel"],w=["emphasis","upperLabel"],A=10,E=1,I=2,D=f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M=function(t){var e=D(t);return e.stroke=e.fill=e.lineWidth=null,e},L=n.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=C(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){var a=e.findComponents({mainType:"series",subType:"treemap",query:n});if(!(r.indexOf(a,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(n,o,t),u=n&&n.type,c=t.layoutInfo,h=!this._oldTree,d=this._storage,f="treemapRootToNode"===u&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(c),g=this._doRender(p,t,f);h||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?g.renderFinally():this._doAnimation(p,g,t,f),this._resetController(i),this._renderBreadcrumb(t,i,l)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){var n=e.getData().tree,a=this._oldTree,s=C(),l=C(),u=this._storage,c=[],h=r.curry(k,e,l,u,i,s,c);f(n.root?[n.root]:[],a&&a.root?[a.root]:[],t,n===a||!a,0);var d=p(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:g};function f(t,e,i,n,a){function s(t){return t.getId()}function l(r,o){var s=null!=r?t[r]:null,l=null!=o?e[o]:null,u=h(s,l,i,a);u&&f(s&&s.viewChildren||[],l&&l.viewChildren||[],u,n,a+1)}n?(e=t,x(t,(function(t,e){!t.isRemoved()&&l(e,e)}))):new o(e,t,s,s).add(l).update(l).remove(r.curry(l,null)).execute()}function p(t){var e=C();return t&&x(t,(function(t,i){var n=e[i];x(t,(function(t){t&&(n.push(t),t.__tmWillDelete=1)}))})),e}function g(){x(d,(function(t){x(t,(function(t){t.parent&&t.parent.remove(t)}))})),x(c,(function(t){t.invisible=!0,t.dirty()}))}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var a=i.get("animationDurationUpdate"),o=i.get("animationEasing"),s=d.createWrap();x(e.willDeleteEls,(function(t,e){x(t,(function(t,i){if(!t.invisible){var r,l=t.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 u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),r="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,a,o)}}))})),x(this._storage,(function(t,i){x(t,(function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,a,o))}))}),this),this._state="animating",s.done(v((function(){this._state="ready",e.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new u(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",v(this._onPan,this)),e.on("zoom",v(this._onZoom,this)));var i=new c(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>_||Math.abs(t.dy)>_)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},_onZoom:function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var r=n.getLayout();if(!r)return;var a=new c(r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=h.create();h.translate(s,s,[-e,-i]),h.scale(s,s,[t.scale,t.scale]),h.translate(s,s,[e,i]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var r=n.hostTree.data.getItemModel(n.dataIndex),a=r.get("link",!0),o=r.get("target",!0)||"blank";a&&g(a,o)}}}}}),this)},_renderBreadcrumb:function(t,e,i){function n(e){"animating"!==this._state&&(s.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(t,e,i.node,v(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=C(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){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 a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;i={node:n,offsetX:a[0],offsetY:a[1]}}}),this),i}});function C(){return{nodeGroup:[],background:[],content:[]}}function k(t,e,i,n,o,s,l,u,c,h){if(l){var d=l.getLayout(),f=t.getData();if(f.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var p=d.width,g=d.height,v=d.borderWidth,x=d.invisible,_=l.getRawIndex(),A=u&&u.getRawIndex(),L=l.viewChildren,C=d.upperHeight,k=L&&L.length,P=l.getModel("itemStyle"),O=l.getModel("emphasis.itemStyle"),N=j("nodeGroup",m);if(N){if(c.add(N),N.attr("position",[d.x||0,d.y||0]),N.__tmNodeWidth=p,N.__tmNodeHeight=g,d.isAboveViewRoot)return N;var F=l.getModel(),B=j("background",y,h,E);if(B&&V(N,B,k&&d.upperLabelHeight),k)a.isHighDownDispatcher(N)&&a.setAsHighDownDispatcher(N,!1),B&&(a.setAsHighDownDispatcher(B,!0),f.setItemGraphicEl(l.dataIndex,B));else{var z=j("content",y,h,I);z&&G(N,z),B&&a.isHighDownDispatcher(B)&&a.setAsHighDownDispatcher(B,!1),a.setAsHighDownDispatcher(N,!0),f.setItemGraphicEl(l.dataIndex,N)}return N}}}function V(e,i,n){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:p,height:g}),x)U(i);else{i.invisible=!1;var r=l.getVisual("borderColor",!0),o=O.get("borderColor"),s=M(P);s.fill=r;var u=D(O);if(u.fill=o,n){var c=p-2*v;H(s,u,r,c,C,{x:v,y:0,width:c,height:C})}else s.text=u.text=null;i.setStyle(s),a.setElementHoverStyle(i,u)}e.add(i)}function G(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.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}),x)U(i);else{i.invisible=!1;var o=l.getVisual("color",!0),s=M(P);s.fill=o;var u=D(O);H(s,u,o,n,r),i.setStyle(s),a.setElementHoverStyle(i,u)}e.add(i)}function U(t){!t.invisible&&s.push(t)}function H(e,i,n,o,s,u){var c=F.get("name"),h=F.getModel(u?T:b),f=F.getModel(u?w:S),p=h.getShallow("show");a.setLabelStyle(e,i,h,f,{defaultText:p?c:null,autoColor:n,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),W(e,u,d),W(i,u,d),u&&(e.textRect=r.clone(u)),e.truncate=p&&h.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function W(e,i,n){var r=e.text;if(!i&&n.isLeafRoot&&null!=r){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+r:r}}function j(t,n,r,a){var s=null!=A&&i[t][A],l=o[t];return s?(i[t][A]=null,K(l,s,t)):x||(s=new n({z:R(r,a)}),s.__tmDepth=r,s.__tmStorageName=t,Y(l,s,t)),e[t][_]=s}function K(t,e,i){var n=t[_]={};n.old="nodeGroup"===i?e.position.slice():r.extend({},e.shape)}function Y(t,e,i){var r=t[_]={},a=l.parentNode;if(a&&(!n||"drillDown"===n.direction)){var s=0,u=0,c=o.background[a.getRawIndex()];!n&&c&&c.old&&(s=c.old.width,u=c.old.height),r.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}r.fadein="nodeGroup"!==i}}function R(t,e){var i=t*A+e;return(i-1)/i}t.exports=L},b419:function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("4319"),o=i("6679"),s=i("fab2"),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),r=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:r[0],y2:r[1]}}function c(t){var e=t.getRadiusAxis();return e.inverse?0:1}function h(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}var d=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,r=i.polar,a=r.getRadiusAxis().getExtent(),o=i.getTicksCoords(),s=i.getMinorTicksCoords(),u=n.map(i.getViewLabels(),(function(t){t=n.clone(t);return t.coord=i.dataToCoord(t.tickValue),t}));h(u),h(o),n.each(l,(function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,r,o,s,a,u)}),this)}},_axisLine:function(t,e,i,n,a){var o,s=t.getModel("axisLine.lineStyle"),l=c(e),u=l?0:1;o=0===a[u]?new r.Circle({shape:{cx:e.cx,cy:e.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new r.Ring({shape:{cx:e.cx,cy:e.cy,r:a[l],r0:a[u]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,i,a,o){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=o[c(e)],d=n.map(i,(function(t){return new r.Line({shape:u(e,[h,h+l],t.coord)})}));this.group.add(r.mergePath(d,{style:n.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,i,a,o){if(a.length){for(var s=t.getModel("axisTick"),l=t.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),d=o[c(e)],f=[],p=0;p<a.length;p++)for(var g=0;g<a[p].length;g++)f.push(new r.Line({shape:u(e,[d,d+h],a[p][g].coord)}));this.group.add(r.mergePath(f,{style:n.defaults(l.getModel("lineStyle").getLineStyle(),n.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(t,e,i,o,l,u){var h=t.getCategories(!0),d=t.getModel("axisLabel"),f=d.get("margin"),p=t.get("triggerEvent");n.each(u,(function(i,n){var o=d,u=i.tickValue,g=l[c(e)],v=e.coordToPoint([g+f,i.coord]),m=e.cx,y=e.cy,x=Math.abs(v[0]-m)/g<.3?"center":v[0]>m?"left":"right",_=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";h&&h[u]&&h[u].textStyle&&(o=new a(h[u].textStyle,d,d.ecModel));var b=new r.Text({silent:s.isLabelSilent(t)});this.group.add(b),r.setTextStyle(b.style,o,{x:v[0],y:v[1],textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:x,textVerticalAlign:_}),p&&(b.eventData=s.makeAxisEventDataBase(t),b.eventData.targetType="axisLabel",b.eventData.value=i.rawLabel)}),this)},_splitLine:function(t,e,i,a,o){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f<i.length;f++){var p=h++%c.length;d[p]=d[p]||[],d[p].push(new r.Line({shape:u(e,o,i[f].coord)}))}for(f=0;f<d.length;f++)this.group.add(r.mergePath(d[f],{style:n.defaults({stroke:c[f%c.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,e,i,n,a){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],c=0;c<n.length;c++)for(var h=0;h<n[c].length;h++)l.push(new r.Line({shape:u(e,a,n[c][h].coord)}));this.group.add(r.mergePath(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},_splitArea:function(t,e,i,a,o){if(i.length){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=Math.PI/180,f=-i[0].coord*d,p=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),v=t.get("clockwise"),m=1;m<i.length;m++){var y=c++%u.length;h[y]=h[y]||[],h[y].push(new r.Sector({shape:{cx:e.cx,cy:e.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:u[m%u.length]},l.getAreaStyle()),silent:!0}))}}});t.exports=d},b5c7:function(t,e,i){var n=i("282b"),r=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getBarItemStyle:function(t){var e=r(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}};t.exports=a},b680:function(t,e,i){"use strict";var n=i("23e7"),r=i("a691"),a=i("408a"),o=i("1148"),s=i("d039"),l=1..toFixed,u=Math.floor,c=function(t,e,i){return 0===e?i:e%2===1?c(t,e-1,i*t):c(t*t,e/2,i)},h=function(t){var e=0,i=t;while(i>=4096)e+=12,i/=4096;while(i>=2)e+=1,i/=2;return e},d=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));n({target:"Number",proto:!0,forced:d},{toFixed:function(t){var e,i,n,s,l=a(this),d=r(t),f=[0,0,0,0,0,0],p="",g="0",v=function(t,e){var i=-1,n=e;while(++i<6)n+=t*f[i],f[i]=n%1e7,n=u(n/1e7)},m=function(t){var e=6,i=0;while(--e>=0)i+=f[e],f[e]=u(i/t),i=i%t*1e7},y=function(){var t=6,e="";while(--t>=0)if(""!==e||0===t||0!==f[t]){var i=String(f[t]);e=""===e?i:e+o.call("0",7-i.length)+i}return e};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(e=h(l*c(2,69,1))-69,i=e<0?l*c(2,-e,1):l/c(2,e,1),i*=4503599627370496,e=52-e,e>0){v(0,i),n=d;while(n>=7)v(1e7,0),n-=7;v(c(10,n,1),0),n=e-1;while(n>=23)m(1<<23),n-=23;m(1<<n),v(1,1),m(2),g=y()}else v(0,i),v(1<<-e,0),g=y()+o.call("0",d);return d>0?(s=g.length,g=p+(s<=d?"0."+o.call("0",d-s)+g:g.slice(0,s-d)+"."+g.slice(s-d))):g=p+g,g}})},b719:function(t,e,i){var n=i("697e7");e.zrender=n;var r=i("1687");e.matrix=r;var a=i("401b");e.vector=a;var o=i("6d8b"),s=i("41ef");e.color=s;var l=i("2306"),u=i("3842");e.number=u;var c=i("eda2");e.format=c;var h=i("88b3");h.throttle;e.throttle=h.throttle;var d=i("1548");e.helper=d;var f=i("bda7");e.parseGeoJSON=f;var p=i("6179");e.List=p;var g=i("4319");e.Model=g;var v=i("84ce");e.Axis=v;var m=i("22d1");e.env=m;var y=f,x={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){x[t]=o[t]}));var _={};o.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(t){_[t]=l[t]})),e.parseGeoJson=y,e.util=x,e.graphic=_},b809:function(t,e,i){var n=i("6d8b"),r=i("29a8"),a=i("2b17"),o=a.retrieveRawValue;function s(t,e){var i=e.getModel("aria");if(i.get("show"))if(i.get("description"))t.setAttribute("aria-label",i.get("description"));else{var a=0;e.eachSeries((function(t,e){++a}),this);var s,l=i.get("data.maxCount")||10,u=i.get("series.maxCount")||10,c=Math.min(a,u);if(!(a<1)){var h=v();s=h?p(g("general.withTitle"),{title:h}):g("general.withoutTitle");var d=[],f=a>1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:a}),e.eachSeries((function(t,e){if(e<c){var i,n=t.get("name"),r="series."+(a>1?"multiple":"single")+".";i=g(n?r+"withName":r+"withoutName"),i=p(i,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:m(t.subType)});var s=t.getData();window.data=s,s.count()>l?i+=p(g("data.partialData"),{displayCnt:l}):i+=g("data.allData");for(var u=[],h=0;h<s.count();h++)if(h<l){var f=s.getName(h),v=o(s,h);u.push(p(g(f?"data.withName":"data.withoutName"),{name:f,value:v}))}i+=u.join(g("data.separator.middle"))+g("data.separator.end"),d.push(i)}})),s+=d.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),t.setAttribute("aria-label",s)}}function p(t,e){if("string"!==typeof t)return t;var i=t;return n.each(e,(function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),i}function g(t){var e=i.get(t);if(null==e){for(var n=t.split("."),a=r.aria,o=0;o<n.length;++o)a=a[n[o]];return a}return e}function v(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function m(t){return r.series.typeNames[t]||"自定义图"}}t.exports=s},b8ec:function(t,e,i){var n=i("3eba");n.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},ba56:function(t,e,i){"undefined"!==typeof window&&function(e,i){t.exports=i()}(0,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":
- /*!*********************************************!*\
- !*** ./node_modules/eventemitter3/index.js ***!
- \*********************************************/
- /*! no static exports found */function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function a(){}function o(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function s(t,e,i,n,a){if("function"!==typeof i)throw new TypeError("The listener must be a function");var s=new o(i,n||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function l(t,e){0===--t._eventsCount?t._events=new a:delete t._events[e]}function u(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},u.prototype.listeners=function(t){var e=r?r+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,a=i.length,o=new Array(a);n<a;n++)o[n]=i[n].fn;return o},u.prototype.listenerCount=function(t){var e=r?r+t:t,i=this._events[e];return i?i.fn?1:i.length:0},u.prototype.emit=function(t,e,i,n,a,o){var s=r?r+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,i),!0;case 4:return c.fn.call(c.context,e,i,n),!0;case 5:return c.fn.call(c.context,e,i,n,a),!0;case 6:return c.fn.call(c.context,e,i,n,a,o),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,i);break;case 4:c[u].fn.call(c[u].context,e,i,n);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(t,e,i){return s(this,t,e,i,!1)},u.prototype.once=function(t,e,i){return s(this,t,e,i,!0)},u.prototype.removeListener=function(t,e,i,n){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return l(this,a),this;var o=this._events[a];if(o.fn)o.fn!==e||n&&!o.once||i&&o.context!==i||l(this,a);else{for(var s=0,u=[],c=o.length;s<c;s++)(o[s].fn!==e||n&&!o[s].once||i&&o[s].context!==i)&&u.push(o[s]);u.length?this._events[a]=1===u.length?u[0]:u:l(this,a)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&l(this,e)):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},"./node_modules/url-toolkit/src/url-toolkit.js":
- /*!*****************************************************!*\
- !*** ./node_modules/url-toolkit/src/url-toolkit.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,i){(function(e){var i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,n=/^([^\/?#]*)([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(t,e,i){if(i=i||{},t=t.trim(),e=e.trim(),!e){if(!i.alwaysNormalize)return t;var r=o.parseURL(t);if(!r)throw new Error("Error trying to parse base URL.");return r.path=o.normalizePath(r.path),o.buildURLFromParts(r)}var a=o.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return i.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):e;var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=n.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var c=s.path,h=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=o.normalizePath(h)}else u.path=s.path,a.params||(u.params=s.params,a.query||(u.query=s.query));return null===u.path&&(u.path=i.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(u)},parseURL:function(t){var e=i.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){t=t.split("").reverse().join("").replace(r,"");while(t.length!==(t=t.replace(a,"")).length);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};t.exports=o})()},"./node_modules/webworkify-webpack/index.js":
- /*!**************************************************!*\
- !*** ./node_modules/webworkify-webpack/index.js ***!
- \**************************************************/
- /*! no static exports found */function(t,e,i){function n(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i.oe=function(t){throw console.error(t),t};var n=i(i.s=ENTRY_MODULE);return n.default||n}var r="[\\.|\\-|\\+|\\w|/|@]+",a="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+r+").*?\\)";function o(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function s(t){return!isNaN(1*t)}function l(t,e,n){var l={};l[n]=[];var u=e.toString(),c=u.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!c)return l;var h,d=c[1],f=new RegExp("(\\\\n|\\W)"+o(d)+a,"g");while(h=f.exec(u))"dll-reference"!==h[3]&&l[n].push(h[3]);f=new RegExp("\\("+o(d)+'\\("(dll-reference\\s('+r+'))"\\)\\)'+a,"g");while(h=f.exec(u))t[h[2]]||(l[n].push(h[1]),t[h[2]]=i(h[1]).m),l[h[2]]=l[h[2]]||[],l[h[2]].push(h[4]);for(var p=Object.keys(l),g=0;g<p.length;g++)for(var v=0;v<l[p[g]].length;v++)s(l[p[g]][v])&&(l[p[g]][v]=1*l[p[g]][v]);return l}function u(t){var e=Object.keys(t);return e.reduce((function(e,i){return e||t[i].length>0}),!1)}function c(t,e){var i={main:[e]},n={main:[]},r={main:{}};while(u(i))for(var a=Object.keys(i),o=0;o<a.length;o++){var s=a[o],c=i[s],h=c.pop();if(r[s]=r[s]||{},!r[s][h]&&t[s][h]){r[s][h]=!0,n[s]=n[s]||[],n[s].push(h);for(var d=l(t,t[s][h],s),f=Object.keys(d),p=0;p<f.length;p++)i[f[p]]=i[f[p]]||[],i[f[p]]=i[f[p]].concat(d[f[p]])}}return n}t.exports=function(t,e){e=e||{};var r={main:i.m},a=e.all?{main:Object.keys(r.main)}:c(r,t),o="";Object.keys(a).filter((function(t){return"main"!==t})).forEach((function(t){var e=0;while(a[t][e])e++;a[t].push(e),r[t][e]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",o=o+"var "+t+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+a[t].map((function(e){return JSON.stringify(e)+": "+r[t][e].toString()})).join(",")+"});\n"})),o=o+"new (("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+a.main.map((function(t){return JSON.stringify(t)+": "+r.main[t].toString()})).join(",")+"}))(self);";var s=new window.Blob([o],{type:"text/javascript"});if(e.bare)return s;var l=window.URL||window.webkitURL||window.mozURL||window.msURL,u=l.createObjectURL(s),h=new window.Worker(u);return h.objectURL=u,h}},"./src/config.ts":
- /*!***********************!*\
- !*** ./src/config.ts ***!
- \***********************/
- /*! exports provided: hlsDefaultConfig, mergeConfig, enableStreamingMode */function(t,e,i){"use strict";i.r(e),i.d(e,"hlsDefaultConfig",(function(){return T})),i.d(e,"mergeConfig",(function(){return A})),i.d(e,"enableStreamingMode",(function(){return E}));var n=i(/*! ./controller/abr-controller */"./src/controller/abr-controller.ts"),r=i(/*! ./controller/audio-stream-controller */"./src/controller/audio-stream-controller.ts"),a=i(/*! ./controller/audio-track-controller */"./src/controller/audio-track-controller.ts"),o=i(/*! ./controller/subtitle-stream-controller */"./src/controller/subtitle-stream-controller.ts"),s=i(/*! ./controller/subtitle-track-controller */"./src/controller/subtitle-track-controller.ts"),l=i(/*! ./controller/buffer-controller */"./src/controller/buffer-controller.ts"),u=i(/*! ./controller/timeline-controller */"./src/controller/timeline-controller.ts"),c=i(/*! ./controller/cap-level-controller */"./src/controller/cap-level-controller.ts"),h=i(/*! ./controller/fps-controller */"./src/controller/fps-controller.ts"),d=i(/*! ./controller/eme-controller */"./src/controller/eme-controller.ts"),f=i(/*! ./controller/cmcd-controller */"./src/controller/cmcd-controller.ts"),p=i(/*! ./utils/xhr-loader */"./src/utils/xhr-loader.ts"),g=i(/*! ./utils/fetch-loader */"./src/utils/fetch-loader.ts"),v=i(/*! ./utils/cues */"./src/utils/cues.ts"),m=i(/*! ./utils/mediakeys-helper */"./src/utils/mediakeys-helper.ts"),y=i(/*! ./utils/logger */"./src/utils/logger.ts");function x(){return x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},x.apply(this,arguments)}function _(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function b(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?_(Object(i),!0).forEach((function(e){S(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):_(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function S(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var T=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:p["default"],fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:n["default"],bufferController:l["default"],capLevelController:c["default"],fpsController:h["default"],stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:m["requestMediaKeySystemAccess"],testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},w()),{},{subtitleStreamController:o["SubtitleStreamController"],subtitleTrackController:s["default"],timelineController:u["TimelineController"],audioStreamController:r["default"],audioTrackController:a["default"],emeController:d["default"],cmcdController:f["default"]});function w(){return{cueHandler:v["default"],enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function A(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return x({},t,e)}function E(t){var e=t.loader;if(e!==g["default"]&&e!==p["default"])y["logger"].log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1;else{var i=Object(g["fetchSupported"])();i&&(t.loader=g["default"],t.progressive=!0,t.enableSoftwareAES=!0,y["logger"].log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":
- /*!******************************************!*\
- !*** ./src/controller/abr-controller.ts ***!
- \******************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../utils/ewma-bandwidth-estimator */"./src/utils/ewma-bandwidth-estimator.ts"),a=i(/*! ../events */"./src/events.ts"),o=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),s=i(/*! ../errors */"./src/errors.ts"),l=i(/*! ../types/loader */"./src/types/loader.ts"),u=i(/*! ../utils/logger */"./src/utils/logger.ts");function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e,i){return e&&c(t.prototype,e),i&&c(t,i),t}var d=function(){function t(t){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=t;var e=t.config;this.bwEstimator=new r["default"](e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(a["Events"].FRAG_LOADING,this.onFragLoading,this),t.on(a["Events"].FRAG_LOADED,this.onFragLoaded,this),t.on(a["Events"].FRAG_BUFFERED,this.onFragBuffered,this),t.on(a["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.on(a["Events"].ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t.off(a["Events"].FRAG_LOADING,this.onFragLoading,this),t.off(a["Events"].FRAG_LOADED,this.onFragLoaded,this),t.off(a["Events"].FRAG_BUFFERED,this.onFragBuffered,this),t.off(a["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.off(a["Events"].ERROR,this.onError,this)},e.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},e.onFragLoading=function(t,e){var i,n=e.frag;n.type===l["PlaylistLevelType"].MAIN&&(this.timer||(this.fragCurrent=n,this.partCurrent=null!=(i=e.part)?i:null,this.timer=self.setInterval(this.onCheck,100)))},e.onLevelLoaded=function(t,e){var i=this.hls.config;e.details.live?this.bwEstimator.update(i.abrEwmaSlowLive,i.abrEwmaFastLive):this.bwEstimator.update(i.abrEwmaSlowVoD,i.abrEwmaFastVoD)},e._abandonRulesCheck=function(){var t=this.fragCurrent,e=this.partCurrent,i=this.hls,r=i.autoLevelEnabled,s=i.config,l=i.media;if(t&&l){var c=e?e.stats:t.stats,h=e?e.duration:t.duration;if(c.aborted)return u["logger"].warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);if(r&&!l.paused&&l.playbackRate&&l.readyState){var d=performance.now()-c.loading.start,f=Math.abs(l.playbackRate);if(!(d<=500*h/f)){var p=i.levels,g=i.minAutoLevel,v=p[t.level],m=c.total||Math.max(c.loaded,Math.round(h*v.maxBitrate/8)),y=Math.max(1,c.bwEstimate?c.bwEstimate/8:1e3*c.loaded/d),x=(m-c.loaded)/y,_=l.currentTime,b=(o["BufferHelper"].bufferInfo(l,_,s.maxBufferHole).end-_)/f;if(!(b>=2*h/f||x<=b)){var S,T=Number.POSITIVE_INFINITY;for(S=t.level-1;S>g;S--){var w=p[S].maxBitrate;if(T=h*w/(6.4*y),T<b)break}if(!(T>=x)){var A=this.bwEstimator.getEstimate();u["logger"].warn("Fragment "+t.sn+(e?" part "+e.index:"")+" of level "+t.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+S+"\n Current BW estimate: "+(Object(n["isFiniteNumber"])(A)?(A/1024).toFixed(3):"Unknown")+" Kb/s\n Estimated load time for current fragment: "+x.toFixed(3)+" s\n Estimated load time for the next fragment: "+T.toFixed(3)+" s\n Time to underbuffer: "+b.toFixed(3)+" s"),i.nextLoadLevel=S,this.bwEstimator.sample(d,c.loaded),this.clearTimer(),t.loader&&(this.fragCurrent=this.partCurrent=null,t.loader.abort()),i.trigger(a["Events"].FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:e,stats:c})}}}}}},e.onFragLoaded=function(t,e){var i=e.frag,r=e.part;if(i.type===l["PlaylistLevelType"].MAIN&&Object(n["isFiniteNumber"])(i.sn)){var o=r?r.stats:i.stats,s=r?r.duration:i.duration;if(this.clearTimer(),this.lastLoadedFragLevel=i.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var u=this.hls.levels[i.level],c=(u.loaded?u.loaded.bytes:0)+o.loaded,h=(u.loaded?u.loaded.duration:0)+s;u.loaded={bytes:c,duration:h},u.realBitrate=Math.round(8*c/h)}if(i.bitrateTest){var d={stats:o,frag:i,part:r,id:i.type};this.onFragBuffered(a["Events"].FRAG_BUFFERED,d),i.bitrateTest=!1}}},e.onFragBuffered=function(t,e){var i=e.frag,n=e.part,r=n?n.stats:i.stats;if(!r.aborted&&i.type===l["PlaylistLevelType"].MAIN&&"initSegment"!==i.sn){var a=r.parsing.end-r.loading.start;this.bwEstimator.sample(a,r.loaded),r.bwEstimate=this.bwEstimator.getEstimate(),i.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},e.onError=function(t,e){switch(e.details){case s["ErrorDetails"].FRAG_LOAD_ERROR:case s["ErrorDetails"].FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},e.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},e.getNextABRAutoLevel=function(){var t=this.fragCurrent,e=this.partCurrent,i=this.hls,n=i.maxAutoLevel,r=i.config,a=i.minAutoLevel,s=i.media,l=e?e.duration:t?t.duration:0,c=s?s.currentTime:0,h=s&&0!==s.playbackRate?Math.abs(s.playbackRate):1,d=this.bwEstimator?this.bwEstimator.getEstimate():r.abrEwmaDefaultEstimate,f=(o["BufferHelper"].bufferInfo(s,c,r.maxBufferHole).end-c)/h,p=this.findBestLevel(d,a,n,f,r.abrBandWidthFactor,r.abrBandWidthUpFactor);if(p>=0)return p;u["logger"].trace((f?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var g=l?Math.min(l,r.maxStarvationDelay):r.maxStarvationDelay,v=r.abrBandWidthFactor,m=r.abrBandWidthUpFactor;if(!f){var y=this.bitrateTestDelay;if(y){var x=l?Math.min(l,r.maxLoadingDelay):r.maxLoadingDelay;g=x-y,u["logger"].trace("bitrate test took "+Math.round(1e3*y)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*g)+" ms"),v=m=1}}return p=this.findBestLevel(d,a,n,f+g,v,m),Math.max(p,0)},e.findBestLevel=function(t,e,i,n,r,a){for(var o,s=this.fragCurrent,l=this.partCurrent,c=this.lastLoadedFragLevel,h=this.hls.levels,d=h[c],f=!(null===d||void 0===d||null===(o=d.details)||void 0===o||!o.live),p=null===d||void 0===d?void 0:d.codecSet,g=l?l.duration:s?s.duration:0,v=i;v>=e;v--){var m=h[v];if(m&&(!p||m.codecSet===p)){var y=m.details,x=(l?null===y||void 0===y?void 0:y.partTarget:null===y||void 0===y?void 0:y.averagetargetduration)||g,_=void 0;_=v<=c?r*t:a*t;var b=h[v].maxBitrate,S=b*x/_;if(u["logger"].trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+v+"/"+Math.round(_)+"/"+b+"/"+x+"/"+n+"/"+S),_>b&&(!S||f&&!this.bitrateTestDelay||S<n))return v}}return-1},h(t,[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this.bwEstimator;if(-1!==t&&(!e||!e.canEstimate()))return t;var i=this.getNextABRAutoLevel();return-1!==t&&(i=Math.min(t,i)),i},set:function(t){this._nextAutoLevel=t}}]),t}();e["default"]=d},"./src/controller/audio-stream-controller.ts":
- /*!***************************************************!*\
- !*** ./src/controller/audio-stream-controller.ts ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ./base-stream-controller */"./src/controller/base-stream-controller.ts"),a=i(/*! ../events */"./src/events.ts"),o=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),s=i(/*! ./fragment-tracker */"./src/controller/fragment-tracker.ts"),l=i(/*! ../types/level */"./src/types/level.ts"),u=i(/*! ../types/loader */"./src/types/loader.ts"),c=i(/*! ../loader/fragment */"./src/loader/fragment.ts"),h=i(/*! ../demux/chunk-cache */"./src/demux/chunk-cache.ts"),d=i(/*! ../demux/transmuxer-interface */"./src/demux/transmuxer-interface.ts"),f=i(/*! ../types/transmuxer */"./src/types/transmuxer.ts"),p=i(/*! ./fragment-finders */"./src/controller/fragment-finders.ts"),g=i(/*! ../utils/discontinuities */"./src/utils/discontinuities.ts"),v=i(/*! ../errors */"./src/errors.ts"),m=i(/*! ../utils/logger */"./src/utils/logger.ts");function y(){return y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},y.apply(this,arguments)}function x(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_(t,e)}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}var b=100,S=function(t){function e(e,i){var n;return n=t.call(this,e,i,"[audio-stream-controller]")||this,n.videoBuffer=null,n.videoTrackCC=-1,n.waitingVideoCC=-1,n.audioSwitch=!1,n.trackId=-1,n.waitingData=null,n.mainDetails=null,n.bufferFlushed=!1,n._registerListeners(),n}x(e,t);var i=e.prototype;return i.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},i._registerListeners=function(){var t=this.hls;t.on(a["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.on(a["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.on(a["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.on(a["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.on(a["Events"].AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(a["Events"].AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(a["Events"].AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(a["Events"].ERROR,this.onError,this),t.on(a["Events"].BUFFER_RESET,this.onBufferReset,this),t.on(a["Events"].BUFFER_CREATED,this.onBufferCreated,this),t.on(a["Events"].BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(a["Events"].INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(a["Events"].FRAG_BUFFERED,this.onFragBuffered,this)},i._unregisterListeners=function(){var t=this.hls;t.off(a["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.off(a["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.off(a["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.off(a["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.off(a["Events"].AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(a["Events"].AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(a["Events"].AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(a["Events"].ERROR,this.onError,this),t.off(a["Events"].BUFFER_RESET,this.onBufferReset,this),t.off(a["Events"].BUFFER_CREATED,this.onBufferCreated,this),t.off(a["Events"].BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(a["Events"].INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(a["Events"].FRAG_BUFFERED,this.onFragBuffered,this)},i.onInitPtsFound=function(t,e){var i=e.frag,n=e.id,a=e.initPTS;if("main"===n){var o=i.cc;this.initPTS[i.cc]=a,this.log("InitPTS for cc: "+o+" found from main: "+a),this.videoTrackCC=o,this.state===r["State"].WAITING_INIT_PTS&&this.tick()}},i.startLoad=function(t){if(!this.levels)return this.startPosition=t,void(this.state=r["State"].STOPPED);var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(b),this.fragLoadError=0,e>0&&-1===t?(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=r["State"].IDLE):(this.loadedmetadata=!1,this.state=r["State"].WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},i.doTick=function(){switch(this.state){case r["State"].IDLE:this.doTickIdle();break;case r["State"].WAITING_TRACK:var e,i=this.levels,n=this.trackId,a=null===i||void 0===i||null===(e=i[n])||void 0===e?void 0:e.details;if(a){if(this.waitForCdnTuneIn(a))break;this.state=r["State"].WAITING_INIT_PTS}break;case r["State"].FRAG_LOADING_WAITING_RETRY:var s,l=performance.now(),u=this.retryDate;(!u||l>=u||null!==(s=this.media)&&void 0!==s&&s.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=r["State"].IDLE);break;case r["State"].WAITING_INIT_PTS:var c=this.waitingData;if(c){var h=c.frag,d=c.part,f=c.cache,g=c.complete;if(void 0!==this.initPTS[h.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=r["State"].FRAG_LOADING;var v=f.flush(),y={frag:h,part:d,payload:v,networkDetails:null};this._handleFragmentLoadProgress(y),g&&t.prototype._handleFragmentLoadComplete.call(this,y)}else if(this.videoTrackCC!==this.waitingVideoCC)m["logger"].log("Waiting fragment cc ("+h.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var x=this.getLoadPosition(),_=o["BufferHelper"].bufferInfo(this.mediaBuffer,x,this.config.maxBufferHole),b=Object(p["fragmentWithinToleranceTest"])(_.end,this.config.maxFragLookUpTolerance,h);b<0&&(m["logger"].log("Waiting fragment cc ("+h.cc+") @ "+h.start+" cancelled because another fragment at "+_.end+" is needed"),this.clearWaitingFragment())}}else this.state=r["State"].IDLE}this.onTickEnd()},i.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=r["State"].IDLE)},i.onTickEnd=function(){var t=this.media;if(t&&t.readyState){var e=this.mediaBuffer?this.mediaBuffer:t,i=e.buffered;!this.loadedmetadata&&i.length&&(this.loadedmetadata=!0),this.lastCurrentTime=t.currentTime}},i.doTickIdle=function(){var t,e,i=this.hls,n=this.levels,o=this.media,s=this.trackId,l=i.config;if(n&&n[s]&&(o||!this.startFragRequested&&l.startFragPrefetch)){var h=n[s],d=h.details;if(!d||d.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(d))this.state=r["State"].WAITING_TRACK;else{this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,c["ElementaryStreamTypes"].AUDIO,u["PlaylistLevelType"].AUDIO));var f=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,u["PlaylistLevelType"].AUDIO);if(null!==f){var p=f.len,g=this.getMaxBufferLength(),v=this.audioSwitch;if(!(p>=g)||v){if(!v&&this._streamEnded(f,d))return i.trigger(a["Events"].BUFFER_EOS,{type:"audio"}),void(this.state=r["State"].ENDED);var m=d.fragments,y=m[0].start,x=f.end;if(v){var _=this.getLoadPosition();x=_,d.PTSKnown&&_<y&&(f.end>y||f.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),o.currentTime=y+.05)}var b=this.getNextFragment(x,d);b?"identity"!==(null===(t=b.decryptdata)||void 0===t?void 0:t.keyFormat)||null!==(e=b.decryptdata)&&void 0!==e&&e.key?this.loadFragment(b,d,x):this.loadKey(b,d):this.bufferFlushed=!0}}}}},i.getMaxBufferLength=function(){var e=t.prototype.getMaxBufferLength.call(this),i=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,u["PlaylistLevelType"].MAIN);return null===i?e:Math.max(e,i.len)},i.onMediaDetaching=function(){this.videoBuffer=null,t.prototype.onMediaDetaching.call(this)},i.onAudioTracksUpdated=function(t,e){var i=e.audioTracks;this.resetTransmuxer(),this.levels=i.map((function(t){return new l["Level"](t)}))},i.onAudioTrackSwitching=function(t,e){var i=!!e.url;this.trackId=e.id;var n=this.fragCurrent;null!==n&&void 0!==n&&n.loader&&n.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),i?this.setInterval(b):this.resetTransmuxer(),i?(this.audioSwitch=!0,this.state=r["State"].IDLE):this.state=r["State"].STOPPED,this.tick()},i.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},i.onLevelLoaded=function(t,e){this.mainDetails=e.details},i.onAudioTrackLoaded=function(t,e){var i,n=this.levels,a=e.details,o=e.id;if(n){this.log("Track "+o+" loaded ["+a.startSN+","+a.endSN+"],duration:"+a.totalduration);var s=n[o],l=0;if(a.live||null!==(i=s.details)&&void 0!==i&&i.live){var u=this.mainDetails;if(a.fragments[0]||(a.deltaUpdateFailed=!0),a.deltaUpdateFailed||!u)return;!s.details&&a.hasProgramDateTime&&u.hasProgramDateTime?(Object(g["alignMediaPlaylistByPDT"])(a,u),l=a.fragments[0].start):l=this.alignPlaylists(a,s.details)}s.details=a,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&a.live||this.setStartPosition(s.details,l),this.state!==r["State"].WAITING_TRACK||this.waitForCdnTuneIn(a)||(this.state=r["State"].IDLE),this.tick()}else this.warn("Audio tracks were reset while loading level "+o)},i._handleFragmentLoadProgress=function(t){var e,i=t.frag,n=t.part,a=t.payload,o=this.config,s=this.trackId,l=this.levels;if(l){var c=l[s];console.assert(c,"Audio track is defined on fragment load progress");var p=c.details;console.assert(p,"Audio track details are defined on fragment load progress");var g=o.defaultAudioCodec||c.audioCodec||"mp4a.40.2",v=this.transmuxer;v||(v=this.transmuxer=new d["default"](this.hls,u["PlaylistLevelType"].AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var y=this.initPTS[i.cc],x=null===(e=i.initSegment)||void 0===e?void 0:e.data;if(void 0!==y){var _=!1,b=n?n.index:-1,S=-1!==b,T=new f["ChunkMetadata"](i.level,i.sn,i.stats.chunkCount,a.byteLength,b,S);v.push(a,x,g,"",i,n,p.totalduration,_,T,y)}else{m["logger"].log("Unknown video PTS for cc "+i.cc+", waiting for video PTS before demuxing audio frag "+i.sn+" of ["+p.startSN+" ,"+p.endSN+"],track "+s);var w=this.waitingData=this.waitingData||{frag:i,part:n,cache:new h["default"],complete:!1},A=w.cache;A.push(new Uint8Array(a)),this.waitingVideoCC=this.videoTrackCC,this.state=r["State"].WAITING_INIT_PTS}}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+i.sn+" of level "+i.level+" will not be buffered")},i._handleFragmentLoadComplete=function(e){this.waitingData?this.waitingData.complete=!0:t.prototype._handleFragmentLoadComplete.call(this,e)},i.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},i.onBufferCreated=function(t,e){var i=e.tracks.audio;i&&(this.mediaBuffer=i.buffer),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer)},i.onFragBuffered=function(t,e){var i=e.frag,n=e.part;i.type===u["PlaylistLevelType"].AUDIO&&(this.fragContextChanged(i)?this.warn("Fragment "+i.sn+(n?" p: "+n.index:"")+" of level "+i.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch):("initSegment"!==i.sn&&(this.fragPrevious=i,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(a["Events"].AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(i,n)))},i.onError=function(e,i){switch(i.details){case v["ErrorDetails"].FRAG_LOAD_ERROR:case v["ErrorDetails"].FRAG_LOAD_TIMEOUT:case v["ErrorDetails"].KEY_LOAD_ERROR:case v["ErrorDetails"].KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(u["PlaylistLevelType"].AUDIO,i);break;case v["ErrorDetails"].AUDIO_TRACK_LOAD_ERROR:case v["ErrorDetails"].AUDIO_TRACK_LOAD_TIMEOUT:this.state!==r["State"].ERROR&&this.state!==r["State"].STOPPED&&(this.state=i.fatal?r["State"].ERROR:r["State"].IDLE,this.warn(i.details+" while loading frag, switching to "+this.state+" state"));break;case v["ErrorDetails"].BUFFER_FULL_ERROR:if("audio"===i.parent&&(this.state===r["State"].PARSING||this.state===r["State"].PARSED)){var n=!0,a=this.getFwdBufferInfo(this.mediaBuffer,u["PlaylistLevelType"].AUDIO);a&&a.len>.5&&(n=!this.reduceMaxBufferLength(a.len)),n&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},i.onBufferFlushed=function(t,e){var i=e.type;i===c["ElementaryStreamTypes"].AUDIO&&(this.bufferFlushed=!0)},i._handleTransmuxComplete=function(t){var e,i="audio",n=this.hls,o=t.remuxResult,s=t.chunkMeta,l=this.getCurrentContext(s);if(!l)return this.warn("The loading context changed while buffering fragment "+s.sn+" of level "+s.level+". This chunk will not be buffered."),void this.resetLiveStartWhenNotLoaded(s.level);var u=l.frag,h=l.part,d=o.audio,f=o.text,p=o.id3,g=o.initSegment;if(!this.fragContextChanged(u)){if(this.state=r["State"].PARSING,this.audioSwitch&&d&&this.completeAudioSwitch(),null!==g&&void 0!==g&&g.tracks&&(this._bufferInitSegment(g.tracks,u,s),n.trigger(a["Events"].FRAG_PARSING_INIT_SEGMENT,{frag:u,id:i,tracks:g.tracks})),d){var v=d.startPTS,m=d.endPTS,x=d.startDTS,_=d.endDTS;h&&(h.elementaryStreams[c["ElementaryStreamTypes"].AUDIO]={startPTS:v,endPTS:m,startDTS:x,endDTS:_}),u.setElementaryStreamInfo(c["ElementaryStreamTypes"].AUDIO,v,m,x,_),this.bufferFragmentData(d,u,h,s)}if(null!==p&&void 0!==p&&null!==(e=p.samples)&&void 0!==e&&e.length){var b=y({frag:u,id:i},p);n.trigger(a["Events"].FRAG_PARSING_METADATA,b)}if(f){var S=y({frag:u,id:i},f);n.trigger(a["Events"].FRAG_PARSING_USERDATA,S)}}},i._bufferInitSegment=function(t,e,i){if(this.state===r["State"].PARSING){t.video&&delete t.video;var n=t.audio;if(n){n.levelCodec=n.codec,n.id="audio",this.log("Init audio buffer, container:"+n.container+", codecs[parsed]=["+n.codec+"]"),this.hls.trigger(a["Events"].BUFFER_CODECS,t);var o=n.initSegment;if(null!==o&&void 0!==o&&o.byteLength){var s={type:"audio",frag:e,part:null,chunkMeta:i,parent:e.type,data:o};this.hls.trigger(a["Events"].BUFFER_APPENDING,s)}this.tick()}}},i.loadFragment=function(e,i,a){var o=this.fragmentTracker.getState(e);this.fragCurrent=e,(this.audioSwitch||o===s["FragmentState"].NOT_LOADED||o===s["FragmentState"].PARTIAL)&&("initSegment"===e.sn?this._loadInitSegment(e):i.live&&!Object(n["isFiniteNumber"])(this.initPTS[e.cc])?(this.log("Waiting for video PTS in continuity counter "+e.cc+" of live stream before loading audio fragment "+e.sn+" of level "+this.trackId),this.state=r["State"].WAITING_INIT_PTS):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,i,a)))},i.completeAudioSwitch=function(){var e=this.hls,i=this.media,n=this.trackId;i&&(this.log("Switching audio track : flushing all audio"),t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,e.trigger(a["Events"].AUDIO_TRACK_SWITCHED,{id:n})},e}(r["default"]);e["default"]=S},"./src/controller/audio-track-controller.ts":
- /*!**************************************************!*\
- !*** ./src/controller/audio-track-controller.ts ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../errors */"./src/errors.ts"),a=i(/*! ./base-playlist-controller */"./src/controller/base-playlist-controller.ts"),o=i(/*! ../types/loader */"./src/types/loader.ts");function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}var h=function(t){function e(e){var i;return i=t.call(this,e,"[audio-track-controller]")||this,i.tracks=[],i.groupId=null,i.tracksInGroup=[],i.trackId=-1,i.trackName="",i.selectDefaultTrack=!0,i.registerListeners(),i}u(e,t);var i=e.prototype;return i.registerListeners=function(){var t=this.hls;t.on(n["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.on(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.on(n["Events"].LEVEL_LOADING,this.onLevelLoading,this),t.on(n["Events"].LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(n["Events"].AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(n["Events"].ERROR,this.onError,this)},i.unregisterListeners=function(){var t=this.hls;t.off(n["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.off(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.off(n["Events"].LEVEL_LOADING,this.onLevelLoading,this),t.off(n["Events"].LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(n["Events"].AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(n["Events"].ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,t.prototype.destroy.call(this)},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},i.onManifestParsed=function(t,e){this.tracks=e.audioTracks||[]},i.onAudioTrackLoaded=function(t,e){var i=e.id,n=e.details,r=this.tracksInGroup[i];if(r){var a=r.details;r.details=e.details,this.log("audioTrack "+i+" loaded ["+n.startSN+"-"+n.endSN+"]"),i===this.trackId&&(this.retryCount=0,this.playlistLoaded(i,e,a))}else this.warn("Invalid audio track id "+i)},i.onLevelLoading=function(t,e){this.switchLevel(e.level)},i.onLevelSwitching=function(t,e){this.switchLevel(e.level)},i.switchLevel=function(t){var e=this.hls.levels[t];if(null!==e&&void 0!==e&&e.audioGroupIds){var i=e.audioGroupIds[e.urlId];if(this.groupId!==i){this.groupId=i;var r=this.tracks.filter((function(t){return!i||t.groupId===i}));this.selectDefaultTrack&&!r.some((function(t){return t.default}))&&(this.selectDefaultTrack=!1),this.tracksInGroup=r;var a={audioTracks:r};this.log("Updating audio tracks, "+r.length+' track(s) found in "'+i+'" group-id'),this.hls.trigger(n["Events"].AUDIO_TRACKS_UPDATED,a),this.selectInitialTrack()}}},i.onError=function(e,i){t.prototype.onError.call(this,e,i),!i.fatal&&i.context&&i.context.type===o["PlaylistContextType"].AUDIO_TRACK&&i.context.id===this.trackId&&i.context.groupId===this.groupId&&this.retryLoadingOrFail(i)},i.setAudioTrack=function(t){var e=this.tracksInGroup;if(t<0||t>=e.length)this.warn("Invalid id passed to audio-track controller");else{this.clearTimer();var i=e[this.trackId];this.log("Now switching to audio-track index "+t);var r=e[t],a=r.id,o=r.groupId,s=void 0===o?"":o,l=r.name,u=r.type,c=r.url;if(this.trackId=t,this.trackName=l,this.selectDefaultTrack=!1,this.hls.trigger(n["Events"].AUDIO_TRACK_SWITCHING,{id:a,groupId:s,name:l,type:u,url:c}),!r.details||r.details.live){var h=this.switchParams(r.url,null===i||void 0===i?void 0:i.details);this.loadPlaylist(h)}}},i.selectInitialTrack=function(){var t=this.tracksInGroup;console.assert(t.length,"Initial audio track should be selected when tracks are known");var e=this.trackName,i=this.findTrackId(e)||this.findTrackId();-1!==i?this.setAudioTrack(i):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].MEDIA_ERROR,details:r["ErrorDetails"].AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},i.findTrackId=function(t){for(var e=this.tracksInGroup,i=0;i<e.length;i++){var n=e[i];if((!this.selectDefaultTrack||n.default)&&(!t||t===n.name))return n.id}return-1},i.loadPlaylist=function(t){var e=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(e)){var i=e.id,r=e.groupId,a=e.url;if(t)try{a=t.addDirectives(a)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("loading audio-track playlist for id: "+i),this.clearTimer(),this.hls.trigger(n["Events"].AUDIO_TRACK_LOADING,{url:a,id:i,groupId:r,deliveryDirectives:t||null})}},l(e,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}}]),e}(a["default"]);e["default"]=h},"./src/controller/base-playlist-controller.ts":
- /*!****************************************************!*\
- !*** ./src/controller/base-playlist-controller.ts ***!
- \****************************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return l}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../types/level */"./src/types/level.ts"),a=i(/*! ./level-helper */"./src/controller/level-helper.ts"),o=i(/*! ../utils/logger */"./src/utils/logger.ts"),s=i(/*! ../errors */"./src/errors.ts"),l=function(){function t(t,e){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=o["logger"].log.bind(o["logger"],e+":"),this.warn=o["logger"].warn.bind(o["logger"],e+":"),this.hls=t}var e=t.prototype;return e.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},e.onError=function(t,e){e.fatal&&e.type===s["ErrorTypes"].NETWORK_ERROR&&this.clearTimer()},e.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},e.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},e.stopLoad=function(){this.canLoad=!1,this.clearTimer()},e.switchParams=function(t,e){var i=null===e||void 0===e?void 0:e.renditionReports;if(i)for(var a=0;a<i.length;a++){var o=i[a],s=""+o.URI;if(s===t.substr(-s.length)){var l=parseInt(o["LAST-MSN"]),u=parseInt(o["LAST-PART"]);if(e&&this.hls.config.lowLatencyMode){var c=Math.min(e.age-e.partTarget,e.targetduration);void 0!==u&&c>e.partTarget&&(u+=1)}if(Object(n["isFiniteNumber"])(l))return new r["HlsUrlParameters"](l,Object(n["isFiniteNumber"])(u)?u:void 0,r["HlsSkip"].No)}}},e.loadPlaylist=function(t){},e.shouldLoadTrack=function(t){return this.canLoad&&t&&!!t.url&&(!t.details||t.details.live)},e.playlistLoaded=function(t,e,i){var n=this,r=e.details,o=e.stats,s=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(r.advancedDateTime=Date.now()-s,r.live||null!==i&&void 0!==i&&i.live){if(r.reloaded(i),i&&this.log("live playlist "+t+" "+(r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:"MISSED")),i&&r.fragments.length>0&&Object(a["mergeDetails"])(i,r),!this.canLoad||!r.live)return;var l,u=void 0,c=void 0;if(r.canBlockReload&&r.endSN&&r.advanced){var h=this.hls.config.lowLatencyMode,d=r.lastPartSn,f=r.endSN,p=r.lastPartIndex,g=-1!==p,v=d===f,m=h?0:p;g?(u=v?f+1:d,c=v?m:p+1):u=f+1;var y=r.age,x=y+r.ageHeader,_=Math.min(x-r.partTarget,1.5*r.targetduration);if(_>0){if(i&&_>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+_+" with playlist age: "+r.age),_=0;else{var b=Math.floor(_/r.targetduration);if(u+=b,void 0!==c){var S=Math.round(_%r.targetduration/r.partTarget);c+=S}this.log("CDN Tune-in age: "+r.ageHeader+"s last advanced "+y.toFixed(2)+"s goal: "+_+" skip sn "+b+" to part "+c)}r.tuneInGoal=_}if(l=this.getDeliveryDirectives(r,e.deliveryDirectives,u,c),h||!v)return void this.loadPlaylist(l)}else l=this.getDeliveryDirectives(r,e.deliveryDirectives,u,c);var T=Object(a["computeReloadInterval"])(r,o);void 0!==u&&r.canBlockReload&&(T-=r.partTarget||1),this.log("reload live playlist "+t+" in "+Math.round(T)+" ms"),this.timer=self.setTimeout((function(){return n.loadPlaylist(l)}),T)}else this.clearTimer()},e.getDeliveryDirectives=function(t,e,i,n){var a=Object(r["getSkipValue"])(t,i);return null!==e&&void 0!==e&&e.skip&&t.deltaUpdateFailed&&(i=e.msn,n=e.part,a=r["HlsSkip"].No),new r["HlsUrlParameters"](i,n,a)},e.retryLoadingOrFail=function(t){var e,i=this,n=this.hls.config,r=this.retryCount<n.levelLoadingMaxRetry;if(r)if(this.retryCount++,t.details.indexOf("LoadTimeOut")>-1&&null!==(e=t.context)&&void 0!==e&&e.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+t.details+'"'),this.loadPlaylist();else{var a=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout((function(){return i.loadPlaylist()}),a),this.warn("retry playlist loading #"+this.retryCount+" in "+a+' ms after "'+t.details+'"')}else this.warn('cannot recover from error "'+t.details+'"'),this.clearTimer(),t.fatal=!0;return r},t}()},"./src/controller/base-stream-controller.ts":
- /*!**************************************************!*\
- !*** ./src/controller/base-stream-controller.ts ***!
- \**************************************************/
- /*! exports provided: State, default */function(t,e,i){"use strict";i.r(e),i.d(e,"State",(function(){return w})),i.d(e,"default",(function(){return A}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../task-loop */"./src/task-loop.ts"),a=i(/*! ./fragment-tracker */"./src/controller/fragment-tracker.ts"),o=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),s=i(/*! ../utils/logger */"./src/utils/logger.ts"),l=i(/*! ../events */"./src/events.ts"),u=i(/*! ../errors */"./src/errors.ts"),c=i(/*! ../types/transmuxer */"./src/types/transmuxer.ts"),h=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),d=i(/*! ../utils/discontinuities */"./src/utils/discontinuities.ts"),f=i(/*! ./fragment-finders */"./src/controller/fragment-finders.ts"),p=i(/*! ./level-helper */"./src/controller/level-helper.ts"),g=i(/*! ../loader/fragment-loader */"./src/loader/fragment-loader.ts"),v=i(/*! ../crypt/decrypter */"./src/crypt/decrypter.ts"),m=i(/*! ../utils/time-ranges */"./src/utils/time-ranges.ts"),y=i(/*! ../types/loader */"./src/types/loader.ts");function x(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _(t,e,i){return e&&x(t.prototype,e),i&&x(t,i),t}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,T(t,e)}function T(t,e){return T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},T(t,e)}var w={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},A=function(t){function e(e,i,n){var r;return r=t.call(this)||this,r.hls=void 0,r.fragPrevious=null,r.fragCurrent=null,r.fragmentTracker=void 0,r.transmuxer=null,r._state=w.STOPPED,r.media=void 0,r.mediaBuffer=void 0,r.config=void 0,r.bitrateTest=!1,r.lastCurrentTime=0,r.nextLoadPosition=0,r.startPosition=0,r.loadedmetadata=!1,r.fragLoadError=0,r.retryDate=0,r.levels=null,r.fragmentLoader=void 0,r.levelLastLoaded=null,r.startFragRequested=!1,r.decrypter=void 0,r.initPTS=[],r.onvseeking=null,r.onvended=null,r.logPrefix="",r.log=void 0,r.warn=void 0,r.logPrefix=n,r.log=s["logger"].log.bind(s["logger"],n+":"),r.warn=s["logger"].warn.bind(s["logger"],n+":"),r.hls=e,r.fragmentLoader=new g["default"](e.config),r.fragmentTracker=i,r.config=e.config,r.decrypter=new v["default"](e,e.config),e.on(l["Events"].KEY_LOADED,r.onKeyLoaded,b(r)),r}S(e,t);var i=e.prototype;return i.doTick=function(){this.onTickEnd()},i.onTickEnd=function(){},i.startLoad=function(t){},i.stopLoad=function(){this.fragmentLoader.abort();var t=this.fragCurrent;t&&this.fragmentTracker.removeFragment(t),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=w.STOPPED},i._streamEnded=function(t,e){var i=this.fragCurrent,n=this.fragmentTracker;if(!e.live&&i&&i.sn>=e.endSN&&!t.nextStart){var r=e.partList;if(null!==r&&void 0!==r&&r.length){var s=r[r.length-1],l=o["BufferHelper"].isBuffered(this.media,s.start+s.duration/2);return l}var u=n.getState(i);return u===a["FragmentState"].PARTIAL||u===a["FragmentState"].OK}return!1},i.onMediaAttached=function(t,e){var i=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),i.addEventListener("seeking",this.onvseeking),i.addEventListener("ended",this.onvended);var n=this.config;this.levels&&n.autoStartLoad&&this.state===w.STOPPED&&this.startLoad(n.startPosition)},i.onMediaDetaching=function(){var t=this.media;null!==t&&void 0!==t&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},i.onMediaSeeking=function(){var t=this.config,e=this.fragCurrent,i=this.media,r=this.mediaBuffer,a=this.state,s=i?i.currentTime:0,l=o["BufferHelper"].bufferInfo(r||i,s,t.maxBufferHole);if(this.log("media seeking to "+(Object(n["isFiniteNumber"])(s)?s.toFixed(3):s)+", state: "+a),a===w.ENDED)this.resetLoadingState();else if(e&&!l.len){var u=t.maxFragLookUpTolerance,c=e.start-u,h=e.start+e.duration+u,d=s>h;(s<c||d)&&(d&&e.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),e.loader.abort()),this.resetLoadingState())}i&&(this.lastCurrentTime=s),this.loadedmetadata||l.len||(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()},i.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},i.onKeyLoaded=function(t,e){if(this.state===w.KEY_LOADING&&e.frag===this.fragCurrent&&this.levels){this.state=w.IDLE;var i=this.levels[e.frag.level].details;i&&this.loadFragment(e.frag,i,e.frag.start)}},i.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},i.onHandlerDestroyed=function(){this.state=w.STOPPED,this.hls.off(l["Events"].KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,t.prototype.onHandlerDestroyed.call(this)},i.loadKey=function(t,e){this.log("Loading key for "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+t.level),this.state=w.KEY_LOADING,this.fragCurrent=t,this.hls.trigger(l["Events"].KEY_LOADING,{frag:t})},i.loadFragment=function(t,e,i){this._loadFragForPlayback(t,e,i)},i._loadFragForPlayback=function(t,e,i){var n=this,r=function(e){if(n.fragContextChanged(t))return n.warn("Fragment "+t.sn+(e.part?" p: "+e.part.index:"")+" of level "+t.level+" was dropped during download."),void n.fragmentTracker.removeFragment(t);t.stats.chunkCount++,n._handleFragmentLoadProgress(e)};this._doFragLoad(t,e,i,r).then((function(e){if(e){n.fragLoadError=0;var i=n.state;if(!n.fragContextChanged(t))return"payload"in e&&(n.log("Loaded fragment "+t.sn+" of level "+t.level),n.hls.trigger(l["Events"].FRAG_LOADED,e),n.state===w.BACKTRACKING)?(n.fragmentTracker.backtrack(t,e),void n.resetFragmentLoading(t)):void n._handleFragmentLoadComplete(e);(i===w.FRAG_LOADING||i===w.BACKTRACKING||!n.fragCurrent&&i===w.PARSING)&&(n.fragmentTracker.removeFragment(t),n.state=w.IDLE)}})).catch((function(e){n.warn(e),n.resetFragmentLoading(t)}))},i.flushMainBuffer=function(t,e,i){if(void 0===i&&(i=null),t-e){var n={startOffset:t,endOffset:e,type:i};this.fragLoadError=0,this.hls.trigger(l["Events"].BUFFER_FLUSHING,n)}},i._loadInitSegment=function(t){var e=this;this._doFragLoad(t).then((function(i){if(!i||e.fragContextChanged(t)||!e.levels)throw new Error("init load aborted");return i})).then((function(i){var n=e.hls,r=i.payload,a=t.decryptdata;if(r&&r.byteLength>0&&a&&a.key&&a.iv&&"AES-128"===a.method){var o=self.performance.now();return e.decrypter.webCryptoDecrypt(new Uint8Array(r),a.key.buffer,a.iv.buffer).then((function(e){var r=self.performance.now();return n.trigger(l["Events"].FRAG_DECRYPTED,{frag:t,payload:e,stats:{tstart:o,tdecrypt:r}}),i.payload=e,i}))}return i})).then((function(i){var n=e.fragCurrent,r=e.hls,a=e.levels;if(!a)throw new Error("init load aborted, missing levels");var o=a[t.level].details;console.assert(o,"Level details are defined when init segment is loaded");var s=t.stats;e.state=w.IDLE,e.fragLoadError=0,t.data=new Uint8Array(i.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),i.frag===n&&r.trigger(l["Events"].FRAG_BUFFERED,{stats:s,frag:n,part:null,id:t.type}),e.tick()})).catch((function(i){e.warn(i),e.resetFragmentLoading(t)}))},i.fragContextChanged=function(t){var e=this.fragCurrent;return!t||!e||t.level!==e.level||t.sn!==e.sn||t.urlId!==e.urlId},i.fragBufferedComplete=function(t,e){var i=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+t.type+" sn: "+t.sn+(e?" part: "+e.index:"")+" of "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+t.level+" "+m["default"].toString(o["BufferHelper"].getBuffered(i))),this.state=w.IDLE,this.tick()},i._handleFragmentLoadComplete=function(t){var e=this.transmuxer;if(e){var i=t.frag,n=t.part,r=t.partsLoaded,a=!r||0===r.length||r.some((function(t){return!t})),o=new c["ChunkMetadata"](i.level,i.sn,i.stats.chunkCount+1,0,n?n.index:-1,!a);e.flush(o)}},i._handleFragmentLoadProgress=function(t){},i._doFragLoad=function(t,e,i,r){var a=this;if(void 0===i&&(i=null),!this.levels)throw new Error("frag load aborted, missing levels");if(i=Math.max(t.start,i||0),this.config.lowLatencyMode&&e){var o=e.partList;if(o&&r){i>t.end&&e.fragmentHint&&(t=e.fragmentHint);var s=this.getNextPart(o,t,i);if(s>-1){var u=o[s];return this.log("Loading part sn: "+t.sn+" p: "+u.index+" cc: "+t.cc+" of playlist ["+e.startSN+"-"+e.endSN+"] parts [0-"+s+"-"+(o.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(i.toFixed(3))),this.nextLoadPosition=u.start+u.duration,this.state=w.FRAG_LOADING,this.hls.trigger(l["Events"].FRAG_LOADING,{frag:t,part:o[s],targetBufferTime:i}),this.doFragPartsLoad(t,o,s,r).catch((function(t){return a.handleFragLoadError(t)}))}if(!t.url||this.loadedEndOfParts(o,i))return Promise.resolve(null)}}return this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(e?"of ["+e.startSN+"-"+e.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(i.toFixed(3))),Object(n["isFiniteNumber"])(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=w.FRAG_LOADING,this.hls.trigger(l["Events"].FRAG_LOADING,{frag:t,targetBufferTime:i}),this.fragmentLoader.load(t,r).catch((function(t){return a.handleFragLoadError(t)}))},i.doFragPartsLoad=function(t,e,i,n){var r=this;return new Promise((function(a,o){var s=[],u=function i(u){var c=e[u];r.fragmentLoader.loadPart(t,c,n).then((function(n){s[c.index]=n;var o=n.part;r.hls.trigger(l["Events"].FRAG_LOADED,n);var h=e[u+1];if(!h||h.fragment!==t)return a({frag:t,part:o,partsLoaded:s});i(u+1)})).catch(o)};u(i)}))},i.handleFragLoadError=function(t){var e=t.data;return e&&e.details===u["ErrorDetails"].INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(l["Events"].ERROR,e),null},i._handleTransmuxerFlush=function(t){var e=this.getCurrentContext(t);if(e&&this.state===w.PARSING){var i=e.frag,n=e.part,r=e.level,a=self.performance.now();i.stats.parsing.end=a,n&&(n.stats.parsing.end=a),this.updateLevelTiming(i,n,r,t.partial)}else this.fragCurrent||(this.state=w.IDLE)},i.getCurrentContext=function(t){var e=this.levels,i=t.level,n=t.sn,r=t.part;if(!e||!e[i])return this.warn("Levels object was unset while buffering fragment "+n+" of level "+i+". The current chunk will not be buffered."),null;var a=e[i],o=r>-1?Object(p["getPartWith"])(a,n,r):null,s=o?o.fragment:Object(p["getFragmentWithSN"])(a,n,this.fragCurrent);return s?{frag:s,part:o,level:a}:null},i.bufferFragmentData=function(t,e,i,n){if(t&&this.state===w.PARSING){var r=t.data1,a=t.data2,o=r;if(r&&a&&(o=Object(h["appendUint8Array"])(r,a)),o&&o.length){var s={type:t.type,frag:e,part:i,chunkMeta:n,parent:e.type,data:o};this.hls.trigger(l["Events"].BUFFER_APPENDING,s),t.dropped&&t.independent&&!i&&this.flushBufferGap(e)}}},i.flushBufferGap=function(t){var e=this.media;if(e)if(o["BufferHelper"].isBuffered(e,e.currentTime)){var i=e.currentTime,n=o["BufferHelper"].bufferInfo(e,i,0),r=t.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),s=Math.max(Math.min(t.start-a,n.end-a),i+a);t.start-s>a&&this.flushMainBuffer(s,t.start)}else this.flushMainBuffer(0,t.start)},i.getFwdBufferInfo=function(t,e){var i=this.config,r=this.getLoadPosition();if(!Object(n["isFiniteNumber"])(r))return null;var a=o["BufferHelper"].bufferInfo(t,r,i.maxBufferHole);if(0===a.len&&void 0!==a.nextStart){var s=this.fragmentTracker.getBufferedFrag(r,e);if(s&&a.nextStart<s.end)return o["BufferHelper"].bufferInfo(t,r,Math.max(a.nextStart,i.maxBufferHole))}return a},i.getMaxBufferLength=function(t){var e,i=this.config;return e=t?Math.max(8*i.maxBufferSize/t,i.maxBufferLength):i.maxBufferLength,Math.min(e,i.maxMaxBufferLength)},i.reduceMaxBufferLength=function(t){var e=this.config,i=t||e.maxBufferLength;return e.maxMaxBufferLength>=i&&(e.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},i.getNextFragment=function(t,e){var i,n,r=e.fragments,a=r.length;if(!a)return null;var o,s=this.config,l=r[0].start;if(e.live){var u=s.initialLiveManifestSize;if(a<u)return this.warn("Not enough fragments to start playback (have: "+a+", need: "+u+")"),null;e.PTSKnown||this.startFragRequested||-1!==this.startPosition||(o=this.getInitialLiveFragment(e,r),this.startPosition=o?this.hls.liveSyncPosition||o.start:t)}else t<=l&&(o=r[0]);if(!o){var c=s.lowLatencyMode?e.partEnd:e.fragmentEnd;o=this.getFragmentAtPosition(t,c,e)}return null===(i=o)||void 0===i||!i.initSegment||null!==(n=o)&&void 0!==n&&n.initSegment.data||this.bitrateTest||(o=o.initSegment),o},i.getNextPart=function(t,e,i){for(var n=-1,r=!1,a=!0,o=0,s=t.length;o<s;o++){var l=t[o];if(a=a&&!l.independent,n>-1&&i<l.start)break;var u=l.loaded;!u&&(r||l.independent||a)&&l.fragment===e&&(n=o),r=u}return n},i.loadedEndOfParts=function(t,e){var i=t[t.length-1];return i&&e>i.start&&i.loaded},i.getInitialLiveFragment=function(t,e){var i=this.fragPrevious,n=null;if(i){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+i.programDateTime),n=Object(f["findFragmentByPDT"])(e,i.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){var r=i.sn+1;if(r>=t.startSN&&r<=t.endSN){var a=e[r-t.startSN];i.cc===a.cc&&(n=a,this.log("Live playlist, switching playlist, load frag with next SN: "+n.sn))}n||(n=Object(f["findFragWithCC"])(e,i.cc),n&&this.log("Live playlist, switching playlist, load frag with same CC: "+n.sn))}}else{var o=this.hls.liveSyncPosition;null!==o&&(n=this.getFragmentAtPosition(o,this.bitrateTest?t.fragmentEnd:t.edge,t))}return n},i.getFragmentAtPosition=function(t,e,i){var n,r=this.config,o=this.fragPrevious,s=i.fragments,l=i.endSN,u=i.fragmentHint,c=r.maxFragLookUpTolerance,h=!!(r.lowLatencyMode&&i.partList&&u);if(h&&u&&!this.bitrateTest&&(s=s.concat(u),l=u.sn),t<e){var d=t>e-c?0:c;n=Object(f["findFragmentByPTS"])(o,s,t,d)}else n=s[s.length-1];if(n){var p=n.sn-i.startSN,g=o&&n.level===o.level,v=s[p+1],m=this.fragmentTracker.getState(n);if(m===a["FragmentState"].BACKTRACKED){n=null;var y=p;while(s[y]&&this.fragmentTracker.getState(s[y])===a["FragmentState"].BACKTRACKED)n=o?s[y--]:s[--y];n||(n=v)}else o&&n.sn===o.sn&&!h&&g&&(n.sn<l&&this.fragmentTracker.getState(v)!==a["FragmentState"].OK?(this.log("SN "+n.sn+" just loaded, load next one: "+v.sn),n=v):n=null)}return n},i.synchronizeToLiveEdge=function(t){var e=this.config,i=this.media;if(i){var n=this.hls.liveSyncPosition,r=i.currentTime,a=t.fragments[0].start,o=t.edge,s=r>=a-e.maxFragLookUpTolerance&&r<=o;if(null!==n&&i.duration>n&&(r<n||!s)){var l=void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:e.liveMaxLatencyDurationCount*t.targetduration;(!s&&i.readyState<4||r<o-l)&&(this.loadedmetadata||(this.nextLoadPosition=n),i.readyState&&(this.warn("Playback: "+r.toFixed(3)+" is located too far from the end of live sliding playlist: "+o+", reset currentTime to : "+n.toFixed(3)),i.currentTime=n))}}},i.alignPlaylists=function(t,e){var i=this.levels,r=this.levelLastLoaded,a=this.fragPrevious,o=null!==r?i[r]:null,s=t.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;var l=t.fragments[0].start,u=!e,c=t.alignedSliding&&Object(n["isFiniteNumber"])(l);if(u||!c&&!l){Object(d["alignStream"])(a,o,t);var h=t.fragments[0].start;return this.log("Live playlist sliding: "+h.toFixed(2)+" start-sn: "+(e?e.startSN:"na")+"->"+t.startSN+" prev-sn: "+(a?a.sn:"na")+" fragments: "+s),h}return l},i.waitForCdnTuneIn=function(t){var e=3;return t.live&&t.canBlockReload&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*e)},i.setStartPosition=function(t,e){var i=this.startPosition;if(i<e&&(i=-1),-1===i||-1===this.lastCurrentTime){var r=t.startTimeOffset;Object(n["isFiniteNumber"])(r)?(i=e+r,r<0&&(i+=t.totalduration),i=Math.min(Math.max(e,i),e+t.totalduration),this.log("Start time offset "+r+" found in playlist, adjust startPosition to "+i),this.startPosition=i):t.live?i=this.hls.liveSyncPosition||e:this.startPosition=i=0,this.lastCurrentTime=i}this.nextLoadPosition=i},i.getLoadPosition=function(){var t=this.media,e=0;return this.loadedmetadata&&t?e=t.currentTime:this.nextLoadPosition&&(e=this.nextLoadPosition),e},i.handleFragLoadAborted=function(t,e){this.transmuxer&&"initSegment"!==t.sn&&t.stats.aborted&&(this.warn("Fragment "+t.sn+(e?" part"+e.index:"")+" of level "+t.level+" was aborted"),this.resetFragmentLoading(t))},i.resetFragmentLoading=function(t){this.fragCurrent&&this.fragContextChanged(t)||(this.state=w.IDLE)},i.onFragmentOrKeyLoadError=function(t,e){if(!e.fatal){var i=e.frag;if(i&&i.type===t){var n=this.fragCurrent;console.assert(n&&i.sn===n.sn&&i.level===n.level&&i.urlId===n.urlId,"Frag load error must match current frag to retry");var r=this.config;if(this.fragLoadError+1<=r.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(i.level))return;var a=Math.min(Math.pow(2,this.fragLoadError)*r.fragLoadingRetryDelay,r.fragLoadingMaxRetryTimeout);this.warn("Fragment "+i.sn+" of "+t+" "+i.level+" failed to load, retrying in "+a+"ms"),this.retryDate=self.performance.now()+a,this.fragLoadError++,this.state=w.FRAG_LOADING_WAITING_RETRY}else e.levelRetry?(t===y["PlaylistLevelType"].AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=w.IDLE):(s["logger"].error(e.details+" reaches max retry, redispatch as fatal ..."),e.fatal=!0,this.hls.stopLoad(),this.state=w.ERROR)}}},i.afterBufferFlushed=function(t,e,i){if(t){var n=o["BufferHelper"].getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,n,i),this.state===w.ENDED&&this.resetLoadingState()}},i.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=w.IDLE},i.resetLiveStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var e=this.levels?this.levels[t].details:null;if(null!==e&&void 0!==e&&e.live)return this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},i.updateLevelTiming=function(t,e,i,n){var r=this,a=i.details;console.assert(!!a,"level.details must be defined");var o=Object.keys(t.elementaryStreams).reduce((function(e,o){var s=t.elementaryStreams[o];if(s){var u=s.endPTS-s.startPTS;if(u<=0)return r.warn("Could not parse fragment "+t.sn+" "+o+" duration reliably ("+u+") resetting transmuxer to fallback to playlist timing"),r.resetTransmuxer(),e||!1;var c=n?0:Object(p["updateFragPTSDTS"])(a,t,s.startPTS,s.endPTS,s.startDTS,s.endDTS);return r.hls.trigger(l["Events"].LEVEL_PTS_UPDATED,{details:a,level:i,drift:c,type:o,frag:t,start:s.startPTS,end:s.endPTS}),!0}return e}),!1);o?(this.state=w.PARSED,this.hls.trigger(l["Events"].FRAG_PARSED,{frag:t,part:e})):this.resetLoadingState()},i.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},_(e,[{key:"state",get:function(){return this._state},set:function(t){var e=this._state;e!==t&&(this._state=t,this.log(e+"->"+t))}}]),e}(r["default"])},"./src/controller/buffer-controller.ts":
- /*!*********************************************!*\
- !*** ./src/controller/buffer-controller.ts ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return f}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../utils/logger */"./src/utils/logger.ts"),o=i(/*! ../errors */"./src/errors.ts"),s=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),l=i(/*! ../utils/mediasource-helper */"./src/utils/mediasource-helper.ts"),u=i(/*! ../loader/fragment */"./src/loader/fragment.ts"),c=i(/*! ./buffer-operation-queue */"./src/controller/buffer-operation-queue.ts"),h=Object(l["getMediaSource"])(),d=/([ha]vc.)(?:\.[^.,]+)+/,f=function(){function t(t){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var t=e.hls,i=e.media,n=e.mediaSource;a["logger"].log("[buffer-controller]: Media source opened"),i&&(e.updateMediaElementDuration(),t.trigger(r["Events"].MEDIA_ATTACHED,{media:i})),n&&n.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){a["logger"].log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){a["logger"].log("[buffer-controller]: Media source ended")},this.hls=t,this._initSourceBuffer(),this.registerListeners()}var e=t.prototype;return e.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},e.destroy=function(){this.unregisterListeners(),this.details=null},e.registerListeners=function(){var t=this.hls;t.on(r["Events"].MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(r["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.on(r["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.on(r["Events"].BUFFER_RESET,this.onBufferReset,this),t.on(r["Events"].BUFFER_APPENDING,this.onBufferAppending,this),t.on(r["Events"].BUFFER_CODECS,this.onBufferCodecs,this),t.on(r["Events"].BUFFER_EOS,this.onBufferEos,this),t.on(r["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(r["Events"].LEVEL_UPDATED,this.onLevelUpdated,this),t.on(r["Events"].FRAG_PARSED,this.onFragParsed,this),t.on(r["Events"].FRAG_CHANGED,this.onFragChanged,this)},e.unregisterListeners=function(){var t=this.hls;t.off(r["Events"].MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(r["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.off(r["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.off(r["Events"].BUFFER_RESET,this.onBufferReset,this),t.off(r["Events"].BUFFER_APPENDING,this.onBufferAppending,this),t.off(r["Events"].BUFFER_CODECS,this.onBufferCodecs,this),t.off(r["Events"].BUFFER_EOS,this.onBufferEos,this),t.off(r["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(r["Events"].LEVEL_UPDATED,this.onLevelUpdated,this),t.off(r["Events"].FRAG_PARSED,this.onFragParsed,this),t.off(r["Events"].FRAG_CHANGED,this.onFragChanged,this)},e._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new c["default"](this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},e.onManifestParsed=function(t,e){var i=2;(e.audio&&!e.video||!e.altAudio)&&(i=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=i,this.details=null,a["logger"].log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},e.onMediaAttaching=function(t,e){var i=this.media=e.media;if(i&&h){var n=this.mediaSource=new h;n.addEventListener("sourceopen",this._onMediaSourceOpen),n.addEventListener("sourceended",this._onMediaSourceEnded),n.addEventListener("sourceclose",this._onMediaSourceClose),i.src=self.URL.createObjectURL(n),this._objectUrl=i.src}},e.onMediaDetaching=function(){var t=this.media,e=this.mediaSource,i=this._objectUrl;if(e){if(a["logger"].log("[buffer-controller]: media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(n){a["logger"].warn("[buffer-controller]: onMediaDetaching: "+n.message+" while calling endOfStream")}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),t&&(i&&self.URL.revokeObjectURL(i),t.src===i?(t.removeAttribute("src"),t.load()):a["logger"].warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(r["Events"].MEDIA_DETACHED,void 0)},e.onBufferReset=function(){var t=this;this.getSourceBufferTypes().forEach((function(e){var i=t.sourceBuffer[e];try{i&&(t.removeBufferListeners(e),t.mediaSource&&t.mediaSource.removeSourceBuffer(i),t.sourceBuffer[e]=void 0)}catch(n){a["logger"].warn("[buffer-controller]: Failed to reset the "+e+" buffer",n)}})),this._initSourceBuffer()},e.onBufferCodecs=function(t,e){var i=this,n=this.getSourceBufferTypes().length;Object.keys(e).forEach((function(t){if(n){var r=i.tracks[t];if(r&&"function"===typeof r.buffer.changeType){var a=e[t],o=a.codec,s=a.levelCodec,l=a.container,u=(r.levelCodec||r.codec).replace(d,"$1"),c=(s||o).replace(d,"$1");if(u!==c){var h=l+";codecs="+(s||o);i.appendChangeType(t,h)}}}else i.pendingTracks[t]=e[t]})),n||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},e.appendChangeType=function(t,e){var i=this,n=this.operationQueue,r={execute:function(){var r=i.sourceBuffer[t];r&&(a["logger"].log("[buffer-controller]: changing "+t+" sourceBuffer type to "+e),r.changeType(e)),n.shiftAndExecuteNext(t)},onStart:function(){},onComplete:function(){},onError:function(e){a["logger"].warn("[buffer-controller]: Failed to change "+t+" SourceBuffer type",e)}};n.append(r,t)},e.onBufferAppending=function(t,e){var i=this,n=this.hls,l=this.operationQueue,u=this.tracks,c=e.data,h=e.type,d=e.frag,f=e.part,p=e.chunkMeta,g=p.buffering[h],v=self.performance.now();g.start=v;var m=d.stats.buffering,y=f?f.stats.buffering:null;0===m.start&&(m.start=v),y&&0===y.start&&(y.start=v);var x=u.audio,_="audio"===h&&1===p.id&&"audio/mpeg"===(null===x||void 0===x?void 0:x.container),b={execute:function(){if(g.executeStart=self.performance.now(),_){var t=i.sourceBuffer[h];if(t){var e=d.start-t.timestampOffset;Math.abs(e)>=.1&&(a["logger"].log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+d.start+" (delta: "+e+") sn: "+d.sn+")"),t.timestampOffset=d.start)}}i.appendExecutor(c,h)},onStart:function(){},onComplete:function(){var t=self.performance.now();g.executeEnd=g.end=t,0===m.first&&(m.first=t),y&&0===y.first&&(y.first=t);var e=i.sourceBuffer,n={};for(var a in e)n[a]=s["BufferHelper"].getBuffered(e[a]);i.appendError=0,i.hls.trigger(r["Events"].BUFFER_APPENDED,{type:h,frag:d,part:f,chunkMeta:p,parent:d.type,timeRanges:n})},onError:function(t){a["logger"].error("[buffer-controller]: Error encountered while trying to append to the "+h+" SourceBuffer",t);var e={type:o["ErrorTypes"].MEDIA_ERROR,parent:d.type,details:o["ErrorDetails"].BUFFER_APPEND_ERROR,err:t,fatal:!1};t.code===DOMException.QUOTA_EXCEEDED_ERR?e.details=o["ErrorDetails"].BUFFER_FULL_ERROR:(i.appendError++,e.details=o["ErrorDetails"].BUFFER_APPEND_ERROR,i.appendError>n.config.appendErrorMaxRetry&&(a["logger"].error("[buffer-controller]: Failed "+n.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),e.fatal=!0)),n.trigger(r["Events"].ERROR,e)}};l.append(b,h)},e.onBufferFlushing=function(t,e){var i=this,n=this.operationQueue,o=function(t){return{execute:i.removeExecutor.bind(i,t,e.startOffset,e.endOffset),onStart:function(){},onComplete:function(){i.hls.trigger(r["Events"].BUFFER_FLUSHED,{type:t})},onError:function(e){a["logger"].warn("[buffer-controller]: Failed to remove from "+t+" SourceBuffer",e)}}};e.type?n.append(o(e.type),e.type):this.getSourceBufferTypes().forEach((function(t){n.append(o(t),t)}))},e.onFragParsed=function(t,e){var i=this,n=e.frag,o=e.part,s=[],l=o?o.elementaryStreams:n.elementaryStreams;l[u["ElementaryStreamTypes"].AUDIOVIDEO]?s.push("audiovideo"):(l[u["ElementaryStreamTypes"].AUDIO]&&s.push("audio"),l[u["ElementaryStreamTypes"].VIDEO]&&s.push("video"));var c=function(){var t=self.performance.now();n.stats.buffering.end=t,o&&(o.stats.buffering.end=t);var e=o?o.stats:n.stats;i.hls.trigger(r["Events"].FRAG_BUFFERED,{frag:n,part:o,stats:e,id:n.type})};0===s.length&&a["logger"].warn("Fragments must have at least one ElementaryStreamType set. type: "+n.type+" level: "+n.level+" sn: "+n.sn),this.blockBuffers(c,s)},e.onFragChanged=function(t,e){this.flushBackBuffer()},e.onBufferEos=function(t,e){var i=this,n=this.getSourceBufferTypes().reduce((function(t,n){var r=i.sourceBuffer[n];return e.type&&e.type!==n||r&&!r.ended&&(r.ended=!0,a["logger"].log("[buffer-controller]: "+n+" sourceBuffer now EOS")),t&&!(r&&!r.ended)}),!0);n&&this.blockBuffers((function(){var t=i.mediaSource;t&&"open"===t.readyState&&t.endOfStream()}))},e.onLevelUpdated=function(t,e){var i=e.details;i.fragments.length&&(this.details=i,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},e.flushBackBuffer=function(){var t=this.hls,e=this.details,i=this.media,a=this.sourceBuffer;if(i&&null!==e){var o=this.getSourceBufferTypes();if(o.length){var l=e.live&&null!==t.config.liveBackBufferLength?t.config.liveBackBufferLength:t.config.backBufferLength;if(Object(n["isFiniteNumber"])(l)&&!(l<0)){var u=i.currentTime,c=e.levelTargetDuration,h=Math.max(l,c),d=Math.floor(u/c)*c-h;o.forEach((function(i){var n=a[i];if(n){var o=s["BufferHelper"].getBuffered(n);o.length>0&&d>o.start(0)&&(t.trigger(r["Events"].BACK_BUFFER_REACHED,{bufferEnd:d}),e.live&&t.trigger(r["Events"].LIVE_BACK_BUFFER_REACHED,{bufferEnd:d}),t.trigger(r["Events"].BUFFER_FLUSHING,{startOffset:0,endOffset:d,type:i}))}}))}}}},e.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var t=this.details,e=this.hls,i=this.media,r=this.mediaSource,o=t.fragments[0].start+t.totalduration,s=i.duration,l=Object(n["isFiniteNumber"])(r.duration)?r.duration:0;t.live&&e.config.liveDurationInfinity?(a["logger"].log("[buffer-controller]: Media Source duration is set to Infinity"),r.duration=1/0,this.updateSeekableRange(t)):(o>l&&o>s||!Object(n["isFiniteNumber"])(s))&&(a["logger"].log("[buffer-controller]: Updating Media Source duration to "+o.toFixed(3)),r.duration=o)}},e.updateSeekableRange=function(t){var e=this.mediaSource,i=t.fragments,n=i.length;if(n&&t.live&&null!==e&&void 0!==e&&e.setLiveSeekableRange){var r=Math.max(0,i[0].start),a=Math.max(r,r+t.totalduration);e.setLiveSeekableRange(r,a)}},e.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.operationQueue,i=this.pendingTracks,n=Object.keys(i).length;if(n&&!t||2===n){this.createSourceBuffers(i),this.pendingTracks={};var a=this.getSourceBufferTypes();if(0===a.length)return void this.hls.trigger(r["Events"].ERROR,{type:o["ErrorTypes"].MEDIA_ERROR,details:o["ErrorDetails"].BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});a.forEach((function(t){e.executeNext(t)}))}},e.createSourceBuffers=function(t){var e=this.sourceBuffer,i=this.mediaSource;if(!i)throw Error("createSourceBuffers called when mediaSource was null");var n=0;for(var s in t)if(!e[s]){var l=t[s];if(!l)throw Error("source buffer exists for track "+s+", however track does not");var u=l.levelCodec||l.codec,c=l.container+";codecs="+u;a["logger"].log("[buffer-controller]: creating sourceBuffer("+c+")");try{var h=e[s]=i.addSourceBuffer(c),d=s;this.addBufferListener(d,"updatestart",this._onSBUpdateStart),this.addBufferListener(d,"updateend",this._onSBUpdateEnd),this.addBufferListener(d,"error",this._onSBUpdateError),this.tracks[s]={buffer:h,codec:u,container:l.container,levelCodec:l.levelCodec,id:l.id},n++}catch(f){a["logger"].error("[buffer-controller]: error while trying to add sourceBuffer: "+f.message),this.hls.trigger(r["Events"].ERROR,{type:o["ErrorTypes"].MEDIA_ERROR,details:o["ErrorDetails"].BUFFER_ADD_CODEC_ERROR,fatal:!1,error:f,mimeType:c})}}n&&this.hls.trigger(r["Events"].BUFFER_CREATED,{tracks:this.tracks})},e._onSBUpdateStart=function(t){var e=this.operationQueue,i=e.current(t);i.onStart()},e._onSBUpdateEnd=function(t){var e=this.operationQueue,i=e.current(t);i.onComplete(),e.shiftAndExecuteNext(t)},e._onSBUpdateError=function(t,e){a["logger"].error("[buffer-controller]: "+t+" SourceBuffer error",e),this.hls.trigger(r["Events"].ERROR,{type:o["ErrorTypes"].MEDIA_ERROR,details:o["ErrorDetails"].BUFFER_APPENDING_ERROR,fatal:!1});var i=this.operationQueue.current(t);i&&i.onError(e)},e.removeExecutor=function(t,e,i){var r=this.media,o=this.mediaSource,s=this.operationQueue,l=this.sourceBuffer,u=l[t];if(!r||!o||!u)return a["logger"].warn("[buffer-controller]: Attempting to remove from the "+t+" SourceBuffer, but it does not exist"),void s.shiftAndExecuteNext(t);var c=Object(n["isFiniteNumber"])(r.duration)?r.duration:1/0,h=Object(n["isFiniteNumber"])(o.duration)?o.duration:1/0,d=Math.max(0,e),f=Math.min(i,c,h);f>d?(a["logger"].log("[buffer-controller]: Removing ["+d+","+f+"] from the "+t+" SourceBuffer"),console.assert(!u.updating,t+" sourceBuffer must not be updating"),u.remove(d,f)):s.shiftAndExecuteNext(t)},e.appendExecutor=function(t,e){var i=this.operationQueue,n=this.sourceBuffer,r=n[e];if(!r)return a["logger"].warn("[buffer-controller]: Attempting to append to the "+e+" SourceBuffer, but it does not exist"),void i.shiftAndExecuteNext(e);r.ended=!1,console.assert(!r.updating,e+" sourceBuffer must not be updating"),r.appendBuffer(t)},e.blockBuffers=function(t,e){var i=this;if(void 0===e&&(e=this.getSourceBufferTypes()),!e.length)return a["logger"].log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve(t);var n=this.operationQueue,r=e.map((function(t){return n.appendBlocker(t)}));Promise.all(r).then((function(){t(),e.forEach((function(t){var e=i.sourceBuffer[t];e&&e.updating||n.shiftAndExecuteNext(t)}))}))},e.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},e.addBufferListener=function(t,e,i){var n=this.sourceBuffer[t];if(n){var r=i.bind(this,t);this.listeners[t].push({event:e,listener:r}),n.addEventListener(e,r)}},e.removeBufferListeners=function(t){var e=this.sourceBuffer[t];e&&this.listeners[t].forEach((function(t){e.removeEventListener(t.event,t.listener)}))},t}()},"./src/controller/buffer-operation-queue.ts":
- /*!**************************************************!*\
- !*** ./src/controller/buffer-operation-queue.ts ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return r}));var n=i(/*! ../utils/logger */"./src/utils/logger.ts"),r=function(){function t(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}var e=t.prototype;return e.append=function(t,e){var i=this.queues[e];i.push(t),1===i.length&&this.buffers[e]&&this.executeNext(e)},e.insertAbort=function(t,e){var i=this.queues[e];i.unshift(t),this.executeNext(e)},e.appendBlocker=function(t){var e,i=new Promise((function(t){e=t})),n={execute:e,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(n,t),i},e.executeNext=function(t){var e=this.buffers,i=this.queues,r=e[t],a=i[t];if(a.length){var o=a[0];try{o.execute()}catch(s){n["logger"].warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),o.onError(s),r&&r.updating||(a.shift(),this.executeNext(t))}}},e.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},e.current=function(t){return this.queues[t][0]},t}()},"./src/controller/cap-level-controller.ts":
- /*!************************************************!*\
- !*** ./src/controller/cap-level-controller.ts ***!
- \************************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../events */"./src/events.ts");function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}var o=function(){function t(t){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var t=this.hls;t.on(n["Events"].FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(n["Events"].MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.on(n["Events"].BUFFER_CODECS,this.onBufferCodecs,this),t.on(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var t=this.hls;t.off(n["Events"].FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(n["Events"].MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.off(n["Events"].BUFFER_CODECS,this.onBufferCodecs,this),t.off(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(e,i){t.isLevelAllowed(i.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(i.droppedLevel)},e.onMediaAttaching=function(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},e.onManifestParsed=function(t,e){var i=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,i.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onBufferCodecs=function(t,e){var i=this.hls;i.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var t=this.hls.levels;if(t.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.getMaxLevel=function(e){var i=this,n=this.hls.levels;if(!n.length)return-1;var r=n.filter((function(n,r){return t.isLevelAllowed(r,i.restrictedLevels)&&r<=e}));return this.clientRect=null,t.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var i=t.getBoundingClientRect();e.width=i.width,e.height=i.height,e.width||e.height||(e.width=i.right-i.left||t.width||0,e.height=i.bottom-i.top||t.height||0)}return this.clientRect=e,e},t.isLevelAllowed=function(t,e){return void 0===e&&(e=[]),-1===e.indexOf(t)},t.getMaxLevelByMediaSize=function(t,e,i){if(!t||!t.length)return-1;for(var n=function(t,e){return!e||(t.width!==e.width||t.height!==e.height)},r=t.length-1,a=0;a<t.length;a+=1){var o=t[a];if((o.width>=e||o.height>=i)&&n(o,t[a+1])){r=a;break}}return r},a(t,[{key:"mediaWidth",get:function(){return this.getDimensions().width*t.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*t.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var t=1;try{t=self.devicePixelRatio}catch(e){}return t}}]),t}();e["default"]=o},"./src/controller/cmcd-controller.ts":
- /*!*******************************************!*\
- !*** ./src/controller/cmcd-controller.ts ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return f}));var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../types/cmcd */"./src/types/cmcd.ts"),a=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),o=i(/*! ../utils/logger */"./src/utils/logger.ts");function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}function u(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=c(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){if(t){if("string"===typeof t)return h(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function d(){return d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},d.apply(this,arguments)}var f=function(){function t(e){var i=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){i.initialized&&(i.starved=!0),i.buffering=!0},this.onPlaying=function(){i.initialized||(i.initialized=!0),i.buffering=!1},this.applyPlaylistData=function(t){try{i.apply(t,{ot:r["CMCDObjectType"].MANIFEST,su:!i.initialized})}catch(e){o["logger"].warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=function(t){try{var e=t.frag,n=i.hls.levels[e.level],a=i.getObjectType(e),s={d:1e3*e.duration,ot:a};a!==r["CMCDObjectType"].VIDEO&&a!==r["CMCDObjectType"].AUDIO&&a!=r["CMCDObjectType"].MUXED||(s.br=n.bitrate/1e3,s.tb=i.getTopBandwidth(a)/1e3,s.bl=i.getBufferLength(a)),i.apply(t,s)}catch(l){o["logger"].warn("Could not generate segment CMCD data.",l)}},this.hls=e;var n=this.config=e.config,a=n.cmcd;null!=a&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=a.sessionId||t.uuid(),this.cid=a.contentId,this.useHeaders=!0===a.useHeaders,this.registerListeners())}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n["Events"].MEDIA_DETACHED,this.onMediaDetached,this),t.on(n["Events"].BUFFER_CREATED,this.onBufferCreated,this)},e.unregisterListeners=function(){var t=this.hls;t.off(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n["Events"].MEDIA_DETACHED,this.onMediaDetached,this),t.off(n["Events"].BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},e.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},e.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},e.onBufferCreated=function(t,e){var i,n;this.audioBuffer=null===(i=e.tracks.audio)||void 0===i?void 0:i.buffer,this.videoBuffer=null===(n=e.tracks.video)||void 0===n?void 0:n.buffer},e.createData=function(){var t;return{v:r["CMCDVersion"],sf:r["CMCDStreamingFormat"].HLS,sid:this.sid,cid:this.cid,pr:null===(t=this.media)||void 0===t?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},e.apply=function(e,i){void 0===i&&(i={}),d(i,this.createData());var n=i.ot===r["CMCDObjectType"].INIT||i.ot===r["CMCDObjectType"].VIDEO||i.ot===r["CMCDObjectType"].MUXED;if(this.starved&&n&&(i.bs=!0,i.su=!0,this.starved=!1),null==i.su&&(i.su=this.buffering),this.useHeaders){var a=t.toHeaders(i);if(!Object.keys(a).length)return;e.headers||(e.headers={}),d(e.headers,a)}else{var o=t.toQuery(i);if(!o)return;e.url=t.appendQueryToUri(e.url,o)}},e.getObjectType=function(t){var e=t.type;return"subtitle"===e?r["CMCDObjectType"].TIMED_TEXT:"initSegment"===t.sn?r["CMCDObjectType"].INIT:"audio"===e?r["CMCDObjectType"].AUDIO:"main"===e?this.hls.audioTracks.length?r["CMCDObjectType"].VIDEO:r["CMCDObjectType"].MUXED:void 0},e.getTopBandwidth=function(t){var e,i=0,n=this.hls;if(t===r["CMCDObjectType"].AUDIO)e=n.audioTracks;else{var a=n.maxAutoLevel,o=a>-1?a+1:n.levels.length;e=n.levels.slice(0,o)}for(var s,l=u(e);!(s=l()).done;){var c=s.value;c.bitrate>i&&(i=c.bitrate)}return i>0?i:NaN},e.getBufferLength=function(t){var e=this.hls.media,i=t===r["CMCDObjectType"].AUDIO?this.audioBuffer:this.videoBuffer;if(!i||!e)return NaN;var n=a["BufferHelper"].bufferInfo(i,e.currentTime,this.config.maxBufferHole);return 1e3*n.len},e.createPlaylistLoader=function(){var t=this.config.pLoader,e=this.applyPlaylistData,i=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new i(t)}var n=t.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(t,i,n){e(t),this.loader.load(t,i,n)},l(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},e.createFragmentLoader=function(){var t=this.config.fLoader,e=this.applyFragmentData,i=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new i(t)}var n=t.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(t,i,n){e(t),this.loader.load(t,i,n)},l(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},t.uuid=function(){var t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.substr(e.lastIndexOf("/")+1)},t.serialize=function(t){for(var e,i=[],n=function(t){return!Number.isNaN(t)&&null!=t&&""!==t&&!1!==t},r=function(t){return Math.round(t)},a=function(t){return 100*r(t/100)},o=function(t){return encodeURIComponent(t)},s={br:r,d:r,bl:a,dl:a,mtp:a,nor:o,rtp:a,tb:r},l=Object.keys(t||{}).sort(),c=u(l);!(e=c()).done;){var h=e.value,d=t[h];if(n(d)&&(("v"!==h||1!==d)&&("pr"!=h||1!==d))){var f=s[h];f&&(d=f(d));var p=typeof d,g=void 0;g="ot"===h||"sf"===h||"st"===h?h+"="+d:"boolean"===p?h:"number"===p?h+"="+d:h+"="+JSON.stringify(d),i.push(g)}}return i.join(",")},t.toHeaders=function(e){for(var i=Object.keys(e),n={},r=["Object","Request","Session","Status"],a=[{},{},{},{}],o={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},s=0,l=i;s<l.length;s++){var u=l[s],c=null!=o[u]?o[u]:1;a[c][u]=e[u]}for(var h=0;h<a.length;h++){var d=t.serialize(a[h]);d&&(n["CMCD-"+r[h]]=d)}return n},t.toQuery=function(e){return"CMCD="+encodeURIComponent(t.serialize(e))},t.appendQueryToUri=function(t,e){if(!e)return t;var i=t.includes("?")?"&":"?";return""+t+i+e},t}()},"./src/controller/eme-controller.ts":
- /*!******************************************!*\
- !*** ./src/controller/eme-controller.ts ***!
- \******************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../errors */"./src/errors.ts"),a=i(/*! ../utils/logger */"./src/utils/logger.ts"),o=i(/*! ../utils/mediakeys-helper */"./src/utils/mediakeys-helper.ts");function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}var u=3,c=function(t,e,i){var n={audioCapabilities:[],videoCapabilities:[]};return t.forEach((function(t){n.audioCapabilities.push({contentType:'audio/mp4; codecs="'+t+'"',robustness:i.audioRobustness||""})})),e.forEach((function(t){n.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"',robustness:i.videoRobustness||""})})),[n]},h=function(t,e,i,n){switch(t){case o["KeySystems"].WIDEVINE:return c(e,i,n);default:throw new Error("Unknown key-system: "+t)}},d=function(){function t(t){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=t,this._config=t.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var e=t.prototype;return e.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},e._registerListeners=function(){this.hls.on(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(n["Events"].MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this)},e._unregisterListeners=function(){this.hls.off(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(n["Events"].MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this)},e.getLicenseServerUrl=function(t){switch(t){case o["KeySystems"].WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+t+'"')},e._attemptKeySystemAccess=function(t,e,i){var n=this,r=h(t,e,i,this._drmSystemOptions);a["logger"].log("Requesting encrypted media key-system access");var o=this.requestMediaKeySystemAccess(t,r);this.mediaKeysPromise=o.then((function(e){return n._onMediaKeySystemAccessObtained(t,e)})),o.catch((function(e){a["logger"].error('Failed to obtain key-system "'+t+'" access:',e)}))},e._onMediaKeySystemAccessObtained=function(t,e){var i=this;a["logger"].log('Access for key-system "'+t+'" obtained');var n={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:e,mediaKeySystemDomain:t};this._mediaKeysList.push(n);var r=Promise.resolve().then((function(){return e.createMediaKeys()})).then((function(e){return n.mediaKeys=e,a["logger"].log('Media-keys created for key-system "'+t+'"'),i._onMediaKeysCreated(),e}));return r.catch((function(t){a["logger"].error("Failed to create media-keys:",t)})),r},e._onMediaKeysCreated=function(){var t=this;this._mediaKeysList.forEach((function(e){e.mediaKeysSession||(e.mediaKeysSession=e.mediaKeys.createSession(),t._onNewMediaKeySession(e.mediaKeysSession))}))},e._onNewMediaKeySession=function(t){var e=this;a["logger"].log("New key-system session "+t.sessionId),t.addEventListener("message",(function(i){e._onKeySessionMessage(t,i.message)}),!1)},e._onKeySessionMessage=function(t,e){a["logger"].log("Got EME message event, creating license request"),this._requestLicense(e,(function(e){a["logger"].log("Received license data (length: "+(e?e.byteLength:e)+"), updating key-session"),t.update(e)}))},e.onMediaEncrypted=function(t){var e=this;if(a["logger"].log('Media is encrypted using "'+t.initDataType+'" init data type'),!this.mediaKeysPromise)return a["logger"].error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),void this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_NO_KEYS,fatal:!0});var i=function(i){e._media&&(e._attemptSetMediaKeys(i),e._generateRequestWithPreferredKeySession(t.initDataType,t.initData))};this.mediaKeysPromise.then(i).catch(i)},e._attemptSetMediaKeys=function(t){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys)return a["logger"].error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_NO_KEYS,fatal:!0});a["logger"].log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}},e._generateRequestWithPreferredKeySession=function(t,e){var i=this,o=this._mediaKeysList[0];if(!o)return a["logger"].error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_NO_ACCESS,fatal:!0});if(o.mediaKeysSessionInitialized)a["logger"].warn("Key-Session already initialized but requested again");else{var s=o.mediaKeysSession;if(!s)return a["logger"].error("Fatal: Media is encrypted but no key-session existing"),void this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_NO_SESSION,fatal:!0});if(!e)return a["logger"].warn("Fatal: initData required for generating a key session is null"),void this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_NO_INIT_DATA,fatal:!0});a["logger"].log('Generating key-session request for "'+t+'" init data type'),o.mediaKeysSessionInitialized=!0,s.generateRequest(t,e).then((function(){a["logger"].debug("Key-session generation succeeded")})).catch((function(t){a["logger"].error("Error generating key-session request:",t),i.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_NO_SESSION,fatal:!1})}))}},e._createLicenseXhr=function(t,e,i){var n=new XMLHttpRequest;n.responseType="arraybuffer",n.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,n,t,e,i);var r=this._licenseXhrSetup;if(r)try{r.call(this.hls,n,t),r=void 0}catch(o){a["logger"].error(o)}try{n.readyState||n.open("POST",t,!0),r&&r.call(this.hls,n,t)}catch(o){throw new Error("issue setting up KeySystem license XHR "+o)}return n},e._onLicenseRequestReadyStageChange=function(t,e,i,o){switch(t.readyState){case 4:if(200===t.status){this._requestLicenseFailureCount=0,a["logger"].log("License request succeeded");var s=t.response,l=this._licenseResponseCallback;if(l)try{s=l.call(this.hls,t,e)}catch(h){a["logger"].error(h)}o(s)}else{if(a["logger"].error("License Request XHR failed ("+e+"). Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>u)return void this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});var c=u-this._requestLicenseFailureCount+1;a["logger"].warn("Retrying license request, "+c+" attempts left"),this._requestLicense(i,o)}break}},e._generateLicenseRequestChallenge=function(t,e){switch(t.mediaKeySystemDomain){case o["KeySystems"].WIDEVINE:return e}throw new Error("unsupported key-system: "+t.mediaKeySystemDomain)},e._requestLicense=function(t,e){a["logger"].log("Requesting content license for key-system");var i=this._mediaKeysList[0];if(!i)return a["logger"].error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_NO_ACCESS,fatal:!0});try{var o=this.getLicenseServerUrl(i.mediaKeySystemDomain),s=this._createLicenseXhr(o,t,e);a["logger"].log("Sending license request to URL: "+o);var l=this._generateLicenseRequestChallenge(i,t);s.send(l)}catch(u){a["logger"].error("Failure requesting DRM license: "+u),this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].KEY_SYSTEM_ERROR,details:r["ErrorDetails"].KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},e.onMediaAttached=function(t,e){if(this._emeEnabled){var i=e.media;this._media=i,i.addEventListener("encrypted",this._onMediaEncrypted)}},e.onMediaDetached=function(){var t=this._media,e=this._mediaKeysList;t&&(t.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(e.map((function(t){if(t.mediaKeysSession)return t.mediaKeysSession.close().catch((function(){}))}))).then((function(){return t.setMediaKeys(null)})).catch((function(){})))},e.onManifestParsed=function(t,e){if(this._emeEnabled){var i=e.levels.map((function(t){return t.audioCodec})).filter((function(t){return!!t})),n=e.levels.map((function(t){return t.videoCodec})).filter((function(t){return!!t}));this._attemptKeySystemAccess(o["KeySystems"].WIDEVINE,i,n)}},l(t,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),t}();e["default"]=d},"./src/controller/fps-controller.ts":
- /*!******************************************!*\
- !*** ./src/controller/fps-controller.ts ***!
- \******************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../utils/logger */"./src/utils/logger.ts"),a=function(){function t(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.registerListeners=function(){this.hls.on(n["Events"].MEDIA_ATTACHING,this.onMediaAttaching,this)},e.unregisterListeners=function(){this.hls.off(n["Events"].MEDIA_ATTACHING,this.onMediaAttaching)},e.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},e.onMediaAttaching=function(t,e){var i=this.hls.config;if(i.capLevelOnFPSDrop){var n=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=n,n&&"function"===typeof n.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),i.fpsDroppedMonitoringPeriod)}},e.checkFPS=function(t,e,i){var a=performance.now();if(e){if(this.lastTime){var o=a-this.lastTime,s=i-this.lastDroppedFrames,l=e-this.lastDecodedFrames,u=1e3*s/o,c=this.hls;if(c.trigger(n["Events"].FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:i}),u>0&&s>c.config.fpsDroppedMonitoringThreshold*l){var h=c.currentLevel;r["logger"].warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(-1===c.autoLevelCapping||c.autoLevelCapping>=h)&&(h-=1,c.trigger(n["Events"].FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:c.currentLevel}),c.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=a,this.lastDroppedFrames=i,this.lastDecodedFrames=e}},e.checkFPSInterval=function(){var t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}();e["default"]=a},"./src/controller/fragment-finders.ts":
- /*!********************************************!*\
- !*** ./src/controller/fragment-finders.ts ***!
- \********************************************/
- /*! exports provided: findFragmentByPDT, findFragmentByPTS, fragmentWithinToleranceTest, pdtWithinToleranceTest, findFragWithCC */function(t,e,i){"use strict";i.r(e),i.d(e,"findFragmentByPDT",(function(){return a})),i.d(e,"findFragmentByPTS",(function(){return o})),i.d(e,"fragmentWithinToleranceTest",(function(){return s})),i.d(e,"pdtWithinToleranceTest",(function(){return l})),i.d(e,"findFragWithCC",(function(){return u}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../utils/binary-search */"./src/utils/binary-search.ts");function a(t,e,i){if(null===e||!Array.isArray(t)||!t.length||!Object(n["isFiniteNumber"])(e))return null;var r=t[0].programDateTime;if(e<(r||0))return null;var a=t[t.length-1].endProgramDateTime;if(e>=(a||0))return null;i=i||0;for(var o=0;o<t.length;++o){var s=t[o];if(l(e,i,s))return s}return null}function o(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var a=null;if(t?a=e[t.sn-e[0].sn+1]||null:0===i&&0===e[0].start&&(a=e[0]),a&&0===s(i,n,a))return a;var o=r["default"].search(e,s.bind(null,i,n));return o||a}function s(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0);var n=Math.min(e,i.duration+(i.deltaPTS?i.deltaPTS:0));return i.start+i.duration-n<=t?1:i.start-n>t&&i.start?-1:0}function l(t,e,i){var n=1e3*Math.min(e,i.duration+(i.deltaPTS?i.deltaPTS:0)),r=i.endProgramDateTime||0;return r-n>t}function u(t,e){return r["default"].search(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}},"./src/controller/fragment-tracker.ts":
- /*!********************************************!*\
- !*** ./src/controller/fragment-tracker.ts ***!
- \********************************************/
- /*! exports provided: FragmentState, FragmentTracker */function(t,e,i){"use strict";i.r(e),i.d(e,"FragmentState",(function(){return n})),i.d(e,"FragmentTracker",(function(){return o}));var n,r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../types/loader */"./src/types/loader.ts");(function(t){t["NOT_LOADED"]="NOT_LOADED",t["BACKTRACKED"]="BACKTRACKED",t["APPENDING"]="APPENDING",t["PARTIAL"]="PARTIAL",t["OK"]="OK"})(n||(n={}));var o=function(){function t(t){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){var t=this.hls;t.on(r["Events"].BUFFER_APPENDED,this.onBufferAppended,this),t.on(r["Events"].FRAG_BUFFERED,this.onFragBuffered,this),t.on(r["Events"].FRAG_LOADED,this.onFragLoaded,this)},e._unregisterListeners=function(){var t=this.hls;t.off(r["Events"].BUFFER_APPENDED,this.onBufferAppended,this),t.off(r["Events"].FRAG_BUFFERED,this.onFragBuffered,this),t.off(r["Events"].FRAG_LOADED,this.onFragLoaded,this)},e.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},e.getAppendedFrag=function(t,e){if(e===a["PlaylistLevelType"].MAIN){var i=this.activeFragment,n=this.activeParts;if(!i)return null;if(n)for(var r=n.length;r--;){var o=n[r],s=o?o.end:i.appendedPTS;if(o.start<=t&&void 0!==s&&t<=s)return r>9&&(this.activeParts=n.slice(r-9)),o}else if(i.start<=t&&void 0!==i.appendedPTS&&t<=i.appendedPTS)return i}return this.getBufferedFrag(t,e)},e.getBufferedFrag=function(t,e){for(var i=this.fragments,n=Object.keys(i),r=n.length;r--;){var a=i[n[r]];if((null===a||void 0===a?void 0:a.body.type)===e&&a.buffered){var o=a.body;if(o.start<=t&&t<=o.end)return o}}return null},e.detectEvictedFragments=function(t,e,i){var n=this;Object.keys(this.fragments).forEach((function(r){var a=n.fragments[r];if(a)if(a.buffered){var o=a.range[t];o&&o.time.some((function(t){var i=!n.isTimeBuffered(t.startPTS,t.endPTS,e);return i&&n.removeFragment(a.body),i}))}else a.body.type===i&&n.removeFragment(a.body)}))},e.detectPartialFragments=function(t){var e=this,i=this.timeRanges,n=t.frag,r=t.part;if(i&&"initSegment"!==n.sn){var a=l(n),o=this.fragments[a];o&&(Object.keys(i).forEach((function(t){var a=n.elementaryStreams[t];if(a){var s=i[t],l=null!==r||!0===a.partial;o.range[t]=e.getBufferedTimes(n,r,l,s)}})),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body))}},e.fragBuffered=function(t){var e=l(t),i=this.fragments[e];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},e.getBufferedTimes=function(t,e,i,n){for(var r={time:[],partial:i},a=e?e.start:t.start,o=e?e.end:t.end,s=t.minEndPTS||o,l=t.maxStartPTS||a,u=0;u<n.length;u++){var c=n.start(u)-this.bufferPadding,h=n.end(u)+this.bufferPadding;if(l>=c&&s<=h){r.time.push({startPTS:Math.max(a,n.start(u)),endPTS:Math.min(o,n.end(u))});break}if(a<h&&o>c)r.partial=!0,r.time.push({startPTS:Math.max(a,n.start(u)),endPTS:Math.min(o,n.end(u))});else if(o<=c)break}return r},e.getPartialFragment=function(t){var e,i,n,r=null,a=0,o=this.bufferPadding,l=this.fragments;return Object.keys(l).forEach((function(u){var c=l[u];c&&s(c)&&(i=c.body.start-o,n=c.body.end+o,t>=i&&t<=n&&(e=Math.min(t-i,n-t),a<=e&&(r=c.body,a=e)))})),r},e.getState=function(t){var e=l(t),i=this.fragments[e];return i?i.buffered?s(i)?n.PARTIAL:n.OK:i.backtrack?n.BACKTRACKED:n.APPENDING:n.NOT_LOADED},e.backtrack=function(t,e){var i=l(t),n=this.fragments[i];if(!n||n.backtrack)return null;var r=n.backtrack=e||n.loaded;return n.loaded=null,r},e.getBacktrackData=function(t){var e=l(t),i=this.fragments[e];if(i){var n,r=i.backtrack;if(null!==r&&void 0!==r&&null!==(n=r.payload)&&void 0!==n&&n.byteLength)return r;this.removeFragment(t)}return null},e.isTimeBuffered=function(t,e,i){for(var n,r,a=0;a<i.length;a++){if(n=i.start(a)-this.bufferPadding,r=i.end(a)+this.bufferPadding,t>=n&&e<=r)return!0;if(e<=n)return!1}return!1},e.onFragLoaded=function(t,e){var i=e.frag,n=e.part;if("initSegment"!==i.sn&&!i.bitrateTest&&!n){var r=l(i);this.fragments[r]={body:i,loaded:e,backtrack:null,buffered:!1,range:Object.create(null)}}},e.onBufferAppended=function(t,e){var i=this,n=e.frag,r=e.part,o=e.timeRanges;if(n.type===a["PlaylistLevelType"].MAIN)if(this.activeFragment=n,r){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(r)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach((function(t){var e=o[t];if(i.detectEvictedFragments(t,e),!r)for(var a=0;a<e.length;a++)n.appendedPTS=Math.max(e.end(a),n.appendedPTS||0)}))},e.onFragBuffered=function(t,e){this.detectPartialFragments(e)},e.hasFragment=function(t){var e=l(t);return!!this.fragments[e]},e.removeFragmentsInRange=function(t,e,i){var n=this;Object.keys(this.fragments).forEach((function(r){var a=n.fragments[r];if(a&&a.buffered){var o=a.body;o.type===i&&o.start<e&&o.end>t&&n.removeFragment(o)}}))},e.removeFragment=function(t){var e=l(t);t.stats.loaded=0,t.clearElementaryStreamInfo(),delete this.fragments[e]},e.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},t}();function s(t){var e,i;return t.buffered&&((null===(e=t.range.video)||void 0===e?void 0:e.partial)||(null===(i=t.range.audio)||void 0===i?void 0:i.partial))}function l(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn}},"./src/controller/gap-controller.ts":
- /*!******************************************!*\
- !*** ./src/controller/gap-controller.ts ***!
- \******************************************/
- /*! exports provided: STALL_MINIMUM_DURATION_MS, MAX_START_GAP_JUMP, SKIP_BUFFER_HOLE_STEP_SECONDS, SKIP_BUFFER_RANGE_START, default */function(t,e,i){"use strict";i.r(e),i.d(e,"STALL_MINIMUM_DURATION_MS",(function(){return s})),i.d(e,"MAX_START_GAP_JUMP",(function(){return l})),i.d(e,"SKIP_BUFFER_HOLE_STEP_SECONDS",(function(){return u})),i.d(e,"SKIP_BUFFER_RANGE_START",(function(){return c})),i.d(e,"default",(function(){return h}));var n=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),r=i(/*! ../errors */"./src/errors.ts"),a=i(/*! ../events */"./src/events.ts"),o=i(/*! ../utils/logger */"./src/utils/logger.ts"),s=250,l=2,u=.1,c=.05,h=function(){function t(t,e,i,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=e,this.fragmentTracker=i,this.hls=n}var e=t.prototype;return e.destroy=function(){this.hls=this.fragmentTracker=this.media=null},e.poll=function(t){var e=this.config,i=this.media,r=this.stalled,a=i.currentTime,u=i.seeking,c=this.seeking&&!u,h=!this.seeking&&u;if(this.seeking=u,a===t){if((h||c)&&(this.stalled=null),!i.paused&&!i.ended&&0!==i.playbackRate&&n["BufferHelper"].getBuffered(i).length){var d=n["BufferHelper"].bufferInfo(i,a,0),f=d.len>0,p=d.nextStart||0;if(f||p){if(u){var g=d.len>l,v=!p||p-a>l&&!this.fragmentTracker.getPartialFragment(a);if(g||v)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var m,y=Math.max(p,d.start||0)-a,x=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,_=null===x||void 0===x||null===(m=x.details)||void 0===m?void 0:m.live,b=_?2*x.details.targetduration:l;if(y>0&&y<=b)return void this._trySkipBufferHole(null)}var S=self.performance.now();if(null!==r){var T=S-r;!u&&T>=s&&this._reportStall(d.len);var w=n["BufferHelper"].bufferInfo(i,a,e.maxBufferHole);this._tryFixBufferStall(w,T)}else this.stalled=S}}}else if(this.moved=!0,null!==r){if(this.stallReported){var A=self.performance.now()-r;o["logger"].warn("playback not stuck anymore @"+a+", after "+Math.round(A)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}},e._tryFixBufferStall=function(t,e){var i=this.config,n=this.fragmentTracker,r=this.media,a=r.currentTime,s=n.getPartialFragment(a);if(s){var l=this._trySkipBufferHole(s);if(l)return}t.len>i.maxBufferHole&&e>1e3*i.highBufferWatchdogPeriod&&(o["logger"].warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(t){var e=this.hls,i=this.media,n=this.stallReported;n||(this.stallReported=!0,o["logger"].warn("Playback stalling at @"+i.currentTime+" due to low buffer (buffer="+t+")"),e.trigger(a["Events"].ERROR,{type:r["ErrorTypes"].MEDIA_ERROR,details:r["ErrorDetails"].BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},e._trySkipBufferHole=function(t){for(var e=this.config,i=this.hls,s=this.media,l=s.currentTime,h=0,d=n["BufferHelper"].getBuffered(s),f=0;f<d.length;f++){var p=d.start(f);if(l+e.maxBufferHole>=h&&l<p){var g=Math.max(p+c,s.currentTime+u);return o["logger"].warn("skipping hole, adjusting currentTime from "+l+" to "+g),this.moved=!0,this.stalled=null,s.currentTime=g,t&&i.trigger(a["Events"].ERROR,{type:r["ErrorTypes"].MEDIA_ERROR,details:r["ErrorDetails"].BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+l+" to "+g,frag:t}),g}h=d.end(f)}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,i=this.media,n=i.currentTime,s=(this.nudgeRetry||0)+1;if(this.nudgeRetry=s,s<t.nudgeMaxRetry){var l=n+s*t.nudgeOffset;o["logger"].warn("Nudging 'currentTime' from "+n+" to "+l),i.currentTime=l,e.trigger(a["Events"].ERROR,{type:r["ErrorTypes"].MEDIA_ERROR,details:r["ErrorDetails"].BUFFER_NUDGE_ON_STALL,fatal:!1})}else o["logger"].error("Playhead still not moving while enough data buffered @"+n+" after "+t.nudgeMaxRetry+" nudges"),e.trigger(a["Events"].ERROR,{type:r["ErrorTypes"].MEDIA_ERROR,details:r["ErrorDetails"].BUFFER_STALLED_ERROR,fatal:!0})},t}()},"./src/controller/id3-track-controller.ts":
- /*!************************************************!*\
- !*** ./src/controller/id3-track-controller.ts ***!
- \************************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../utils/texttrack-utils */"./src/utils/texttrack-utils.ts"),a=i(/*! ../demux/id3 */"./src/demux/id3.ts"),o=.25,s=function(){function t(t){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=t,this._registerListeners()}var e=t.prototype;return e.destroy=function(){this._unregisterListeners()},e._registerListeners=function(){var t=this.hls;t.on(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.on(n["Events"].FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(n["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this)},e._unregisterListeners=function(){var t=this.hls;t.off(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.off(n["Events"].FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(n["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this)},e.onMediaAttached=function(t,e){this.media=e.media},e.onMediaDetaching=function(){this.id3Track&&(Object(r["clearCurrentCues"])(this.id3Track),this.id3Track=null,this.media=null)},e.getID3Track=function(t){if(this.media){for(var e=0;e<t.length;e++){var i=t[e];if("metadata"===i.kind&&"id3"===i.label)return Object(r["sendAddTrackEvent"])(i,this.media),i}return this.media.addTextTrack("metadata","id3")}},e.onFragParsingMetadata=function(t,e){if(this.media){var i=e.frag,n=e.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var r=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,s=0;s<n.length;s++){var l=a["getID3Frames"](n[s].data);if(l){var u=n[s].pts,c=s<n.length-1?n[s+1].pts:i.end,h=c-u;h<=0&&(c=u+o);for(var d=0;d<l.length;d++){var f=l[d];if(!a["isTimeStampFrame"](f)){var p=new r(u,c,"");p.value=f,this.id3Track.addCue(p)}}}}}},e.onBufferFlushing=function(t,e){var i=e.startOffset,n=e.endOffset,a=e.type;if(!a||"audio"===a){var o=this.id3Track;o&&Object(r["removeCuesInRange"])(o,i,n)}},t}();e["default"]=s},"./src/controller/latency-controller.ts":
- /*!**********************************************!*\
- !*** ./src/controller/latency-controller.ts ***!
- \**********************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return l}));var n=i(/*! ../errors */"./src/errors.ts"),r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../utils/logger */"./src/utils/logger.ts");function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t}var l=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return e.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},e.registerListeners=function(){this.hls.on(r["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(r["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(r["Events"].MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(r["Events"].LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(r["Events"].ERROR,this.onError,this)},e.unregisterListeners=function(){this.hls.off(r["Events"].MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(r["Events"].MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(r["Events"].MANIFEST_LOADING,this.onManifestLoading),this.hls.off(r["Events"].LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(r["Events"].ERROR,this.onError)},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},e.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},e.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},e.onLevelUpdated=function(t,e){var i=e.details;this.levelDetails=i,i.advanced&&this.timeupdate(),!i.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},e.onError=function(t,e){e.details===n["ErrorDetails"].BUFFER_STALLED_ERROR&&(this.stallCount++,a["logger"].warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},e.timeupdate=function(){var t=this.media,e=this.levelDetails;if(t&&e){this.currentTime=t.currentTime;var i=this.computeLatency();if(null!==i){this._latency=i;var n=this.config,r=n.lowLatencyMode,a=n.maxLiveSyncPlaybackRate;if(r&&1!==a){var o=this.targetLatency;if(null!==o){var s=i-o,l=Math.min(this.maxLatency,o+e.targetduration),u=s<l;if(e.live&&u&&s>.05&&this.forwardBufferLength>1){var c=Math.min(2,Math.max(1,a)),h=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20;t.playbackRate=Math.min(c,Math.max(1,h))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}}},e.estimateLiveEdge=function(){var t=this.levelDetails;return null===t?null:t.edge+t.age},e.computeLatency=function(){var t=this.estimateLiveEdge();return null===t?null:t-this.currentTime},s(t,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,e=this.levelDetails;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(null===t)return null;var e=t.holdBack,i=t.partHoldBack,n=t.targetduration,r=this.config,a=r.liveSyncDuration,o=r.liveSyncDurationCount,s=r.lowLatencyMode,l=this.hls.userConfig,u=s&&i||e;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:o*n);var c=n,h=1;return u+Math.min(this.stallCount*h,c)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),e=this.targetLatency,i=this.levelDetails;if(null===t||null===e||null===i)return null;var n=i.edge,r=t-e-this.edgeStalled,a=n-i.totalduration,o=n-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(a,r),o)}},{key:"drift",get:function(){var t=this.levelDetails;return null===t?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(null===t)return 0;var e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,e=this.levelDetails;if(!t||!e)return 0;var i=t.buffered.length;return i?t.buffered.end(i-1):e.edge-this.currentTime}}]),t}()},"./src/controller/level-controller.ts":
- /*!********************************************!*\
- !*** ./src/controller/level-controller.ts ***!
- \********************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return v}));var n=i(/*! ../types/level */"./src/types/level.ts"),r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../errors */"./src/errors.ts"),o=i(/*! ../utils/codecs */"./src/utils/codecs.ts"),s=i(/*! ./level-helper */"./src/controller/level-helper.ts"),l=i(/*! ./base-playlist-controller */"./src/controller/base-playlist-controller.ts"),u=i(/*! ../types/loader */"./src/types/loader.ts");function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},c.apply(this,arguments)}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,i){return e&&h(t.prototype,e),i&&h(t,i),t}function f(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p(t,e)}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}var g=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),v=function(t){function e(e){var i;return i=t.call(this,e,"[level-controller]")||this,i._levels=[],i._firstLevel=-1,i._startLevel=void 0,i.currentLevelIndex=-1,i.manualLevelIndex=-1,i.onParsedComplete=void 0,i._registerListeners(),i}f(e,t);var i=e.prototype;return i._registerListeners=function(){var t=this.hls;t.on(r["Events"].MANIFEST_LOADED,this.onManifestLoaded,this),t.on(r["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.on(r["Events"].AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(r["Events"].FRAG_LOADED,this.onFragLoaded,this),t.on(r["Events"].ERROR,this.onError,this)},i._unregisterListeners=function(){var t=this.hls;t.off(r["Events"].MANIFEST_LOADED,this.onManifestLoaded,this),t.off(r["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.off(r["Events"].AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(r["Events"].FRAG_LOADED,this.onFragLoaded,this),t.off(r["Events"].ERROR,this.onError,this)},i.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,t.prototype.destroy.call(this)},i.startLoad=function(){var e=this._levels;e.forEach((function(t){t.loadError=0})),t.prototype.startLoad.call(this)},i.onManifestLoaded=function(t,e){var i,l,u=[],c=[],h=[],d={},f=!1,p=!1,v=!1;if(e.levels.forEach((function(t){var e=t.attrs;f=f||!(!t.width||!t.height),p=p||!!t.videoCodec,v=v||!!t.audioCodec,g&&t.audioCodec&&-1!==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0);var i=t.bitrate+"-"+t.attrs.RESOLUTION+"-"+t.attrs.CODECS;l=d[i],l?l.url.push(t.url):(l=new n["Level"](t),d[i]=l,u.push(l)),e&&(e.AUDIO&&Object(s["addGroupId"])(l,"audio",e.AUDIO),e.SUBTITLES&&Object(s["addGroupId"])(l,"text",e.SUBTITLES))})),(f||p)&&v&&(u=u.filter((function(t){var e=t.videoCodec,i=t.width,n=t.height;return!!e||!(!i||!n)}))),u=u.filter((function(t){var e=t.audioCodec,i=t.videoCodec;return(!e||Object(o["isCodecSupportedInMp4"])(e,"audio"))&&(!i||Object(o["isCodecSupportedInMp4"])(i,"video"))})),e.audioTracks&&(c=e.audioTracks.filter((function(t){return!t.audioCodec||Object(o["isCodecSupportedInMp4"])(t.audioCodec,"audio")})),Object(s["assignTrackIdsByGroup"])(c)),e.subtitles&&(h=e.subtitles,Object(s["assignTrackIdsByGroup"])(h)),u.length>0){i=u[0].bitrate,u.sort((function(t,e){return t.bitrate-e.bitrate})),this._levels=u;for(var m=0;m<u.length;m++)if(u[m].bitrate===i){this._firstLevel=m,this.log("manifest loaded, "+u.length+" level(s) found, first bitrate: "+i);break}var y=v&&!p,x={levels:u,audioTracks:c,subtitleTracks:h,firstLevel:this._firstLevel,stats:e.stats,audio:v,video:p,altAudio:!y&&c.some((function(t){return!!t.url}))};this.hls.trigger(r["Events"].MANIFEST_PARSED,x),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(r["Events"].ERROR,{type:a["ErrorTypes"].MEDIA_ERROR,details:a["ErrorDetails"].MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,reason:"no level with compatible codecs found in manifest"})},i.onError=function(e,i){if(t.prototype.onError.call(this,e,i),!i.fatal){var n=i.context,r=this._levels[this.currentLevelIndex];if(n&&(n.type===u["PlaylistContextType"].AUDIO_TRACK&&r.audioGroupIds&&n.groupId===r.audioGroupIds[r.urlId]||n.type===u["PlaylistContextType"].SUBTITLE_TRACK&&r.textGroupIds&&n.groupId===r.textGroupIds[r.urlId]))this.redundantFailover(this.currentLevelIndex);else{var o,s=!1,l=!0;switch(i.details){case a["ErrorDetails"].FRAG_LOAD_ERROR:case a["ErrorDetails"].FRAG_LOAD_TIMEOUT:case a["ErrorDetails"].KEY_LOAD_ERROR:case a["ErrorDetails"].KEY_LOAD_TIMEOUT:if(i.frag){var c=this._levels[i.frag.level];c?(c.fragmentError++,c.fragmentError>this.hls.config.fragLoadingMaxRetry&&(o=i.frag.level)):o=i.frag.level}break;case a["ErrorDetails"].LEVEL_LOAD_ERROR:case a["ErrorDetails"].LEVEL_LOAD_TIMEOUT:n&&(n.deliveryDirectives&&(l=!1),o=n.level),s=!0;break;case a["ErrorDetails"].REMUX_ALLOC_ERROR:o=i.level,s=!0;break}void 0!==o&&this.recoverLevel(i,o,s,l)}}},i.recoverLevel=function(t,e,i,n){var r=t.details,a=this._levels[e];if(a.loadError++,i){var o=this.retryLoadingOrFail(t);if(!o)return void(this.currentLevelIndex=-1);t.levelRetry=!0}if(n){var s=a.url.length;if(s>1&&a.loadError<s)t.levelRetry=!0,this.redundantFailover(e);else if(-1===this.manualLevelIndex){var l=0===e?this._levels.length-1:e-1;this.currentLevelIndex!==l&&0===this._levels[l].loadError&&(this.warn(r+": switch to "+l),t.levelRetry=!0,this.hls.nextAutoLevel=l)}}},i.redundantFailover=function(t){var e=this._levels[t],i=e.url.length;if(i>1){var n=(e.urlId+1)%i;this.warn("Switching to redundant URL-id "+n),this._levels.forEach((function(t){t.urlId=n})),this.level=t}},i.onFragLoaded=function(t,e){var i=e.frag;if(void 0!==i&&i.type===u["PlaylistLevelType"].MAIN){var n=this._levels[i.level];void 0!==n&&(n.fragmentError=0,n.loadError=0)}},i.onLevelLoaded=function(t,e){var i,n,r=e.level,a=e.details,o=this._levels[r];if(!o)return this.warn("Invalid level index "+r),void(null!==(n=e.deliveryDirectives)&&void 0!==n&&n.skip&&(a.deltaUpdateFailed=!0));r===this.currentLevelIndex?(0===o.fragmentError&&(o.loadError=0,this.retryCount=0),this.playlistLoaded(r,e,o.details)):null!==(i=e.deliveryDirectives)&&void 0!==i&&i.skip&&(a.deltaUpdateFailed=!0)},i.onAudioTrackSwitched=function(t,e){var i=this.hls.levels[this.currentLevelIndex];if(i&&i.audioGroupIds){for(var n=-1,r=this.hls.audioTracks[e.id].groupId,a=0;a<i.audioGroupIds.length;a++)if(i.audioGroupIds[a]===r){n=a;break}n!==i.urlId&&(i.urlId=n,this.startLoad())}},i.loadPlaylist=function(t){var e=this.currentLevelIndex,i=this._levels[e];if(this.canLoad&&i&&i.url.length>0){var n=i.urlId,a=i.url[n];if(t)try{a=t.addDirectives(a)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("Attempt loading level index "+e+(t?" at sn "+t.msn+" part "+t.part:"")+" with URL-id "+n+" "+a),this.clearTimer(),this.hls.trigger(r["Events"].LEVEL_LOADING,{url:a,level:e,id:n,deliveryDirectives:t||null})}},i.removeLevel=function(t,e){var i=function(t,i){return i!==e},n=this._levels.filter((function(n,r){return r!==t||n.url.length>1&&void 0!==e&&(n.url=n.url.filter(i),n.audioGroupIds&&(n.audioGroupIds=n.audioGroupIds.filter(i)),n.textGroupIds&&(n.textGroupIds=n.textGroupIds.filter(i)),n.urlId=0,!0)})).map((function(t,e){var i=t.details;return null!==i&&void 0!==i&&i.fragments&&i.fragments.forEach((function(t){t.level=e})),t}));this._levels=n,this.hls.trigger(r["Events"].LEVELS_UPDATED,{levels:n})},d(e,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e,i=this._levels;if(0!==i.length&&(this.currentLevelIndex!==t||null===(e=i[t])||void 0===e||!e.details)){if(t<0||t>=i.length){var n=t<0;if(this.hls.trigger(r["Events"].ERROR,{type:a["ErrorTypes"].OTHER_ERROR,details:a["ErrorDetails"].LEVEL_SWITCH_ERROR,level:t,fatal:n,reason:"invalid level idx"}),n)return;t=Math.min(t,i.length-1)}this.clearTimer();var o=this.currentLevelIndex,s=i[o],l=i[t];this.log("switching to level "+t+" from "+o),this.currentLevelIndex=t;var u=c({},l,{level:t,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete u._urlId,this.hls.trigger(r["Events"].LEVEL_SWITCHING,u);var h=l.details;if(!h||h.live){var d=this.switchParams(l.uri,null===s||void 0===s?void 0:s.details);this.loadPlaylist(d)}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),e}(l["default"])},"./src/controller/level-helper.ts":
- /*!****************************************!*\
- !*** ./src/controller/level-helper.ts ***!
- \****************************************/
- /*! exports provided: addGroupId, assignTrackIdsByGroup, updatePTS, updateFragPTSDTS, mergeDetails, mapPartIntersection, mapFragmentIntersection, adjustSliding, addSliding, computeReloadInterval, getFragmentWithSN, getPartWith */function(t,e,i){"use strict";i.r(e),i.d(e,"addGroupId",(function(){return a})),i.d(e,"assignTrackIdsByGroup",(function(){return o})),i.d(e,"updatePTS",(function(){return s})),i.d(e,"updateFragPTSDTS",(function(){return u})),i.d(e,"mergeDetails",(function(){return c})),i.d(e,"mapPartIntersection",(function(){return h})),i.d(e,"mapFragmentIntersection",(function(){return d})),i.d(e,"adjustSliding",(function(){return f})),i.d(e,"addSliding",(function(){return p})),i.d(e,"computeReloadInterval",(function(){return g})),i.d(e,"getFragmentWithSN",(function(){return v})),i.d(e,"getPartWith",(function(){return m}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../utils/logger */"./src/utils/logger.ts");function a(t,e,i){switch(e){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(i);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(i);break}}function o(t){var e={};t.forEach((function(t){var i=t.groupId||"";t.id=e[i]=e[i]||0,e[i]++}))}function s(t,e,i){var n=t[e],r=t[i];l(n,r)}function l(t,e){var i=e.startPTS;if(Object(n["isFiniteNumber"])(i)){var r,a=0;e.sn>t.sn?(a=i-t.start,r=t):(a=t.start-i,r=e),r.duration!==a&&(r.duration=a)}else if(e.sn>t.sn){var o=t.cc===e.cc;o&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration}else e.start=Math.max(t.start-e.duration,0)}function u(t,e,i,a,o,s){var u=a-i;u<=0&&(r["logger"].warn("Fragment should have a positive duration",e),a=i+e.duration,s=o+e.duration);var c=i,h=a,d=e.startPTS,f=e.endPTS;if(Object(n["isFiniteNumber"])(d)){var p=Math.abs(d-i);Object(n["isFiniteNumber"])(e.deltaPTS)?e.deltaPTS=Math.max(p,e.deltaPTS):e.deltaPTS=p,c=Math.max(i,d),i=Math.min(i,d),o=Math.min(o,e.startDTS),h=Math.min(a,f),a=Math.max(a,f),s=Math.max(s,e.endDTS)}e.duration=a-i;var g=i-e.start;e.appendedPTS=a,e.start=e.startPTS=i,e.maxStartPTS=c,e.startDTS=o,e.endPTS=a,e.minEndPTS=h,e.endDTS=s;var v,m=e.sn;if(!t||m<t.startSN||m>t.endSN)return 0;var y=m-t.startSN,x=t.fragments;for(x[y]=e,v=y;v>0;v--)l(x[v],x[v-1]);for(v=y;v<x.length-1;v++)l(x[v],x[v+1]);return t.fragmentHint&&l(x[x.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,g}function c(t,e){for(var i=null,a=t.fragments,o=a.length-1;o>=0;o--){var s=a[o].initSegment;if(s){i=s;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var l,c=0;if(d(t,e,(function(t,r){t.relurl&&(c=t.cc-r.cc),Object(n["isFiniteNumber"])(t.startPTS)&&Object(n["isFiniteNumber"])(t.endPTS)&&(r.start=r.startPTS=t.startPTS,r.startDTS=t.startDTS,r.appendedPTS=t.appendedPTS,r.maxStartPTS=t.maxStartPTS,r.endPTS=t.endPTS,r.endDTS=t.endDTS,r.minEndPTS=t.minEndPTS,r.duration=t.endPTS-t.startPTS,r.duration&&(l=r),e.PTSKnown=e.alignedSliding=!0),r.elementaryStreams=t.elementaryStreams,r.loader=t.loader,r.stats=t.stats,r.urlId=t.urlId,t.initSegment&&(r.initSegment=t.initSegment,i=t.initSegment)})),i){var p=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;p.forEach((function(t){var e;t.initSegment&&t.initSegment.relurl!==(null===(e=i)||void 0===e?void 0:e.relurl)||(t.initSegment=i)}))}if(e.skippedSegments&&(e.deltaUpdateFailed=e.fragments.some((function(t){return!t})),e.deltaUpdateFailed)){r["logger"].warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var g=e.skippedSegments;g--;)e.fragments.shift();e.startSN=e.fragments[0].sn,e.startCC=e.fragments[0].cc}var v=e.fragments;if(c){r["logger"].warn("discontinuity sliding from playlist, take drift into account");for(var m=0;m<v.length;m++)v[m].cc+=c}e.skippedSegments&&(e.startCC=e.fragments[0].cc),h(t.partList,e.partList,(function(t,e){e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),l?u(e,l,l.startPTS,l.endPTS,l.startDTS,l.endDTS):f(t,e),v.length&&(e.totalduration=e.edge-v[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;var y=e.advancedDateTime;if(e.advanced&&y){var x=e.edge;e.driftStart||(e.driftStartTime=y,e.driftStart=x),e.driftEndTime=y,e.driftEnd=x}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function h(t,e,i){if(t&&e)for(var n=0,r=0,a=t.length;r<=a;r++){var o=t[r],s=e[r+n];o&&s&&o.index===s.index&&o.fragment.sn===s.fragment.sn?i(o,s):n--}}function d(t,e,i){for(var n=e.skippedSegments,r=Math.max(t.startSN,e.startSN)-e.startSN,a=(t.fragmentHint?1:0)+(n?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,o=e.startSN-t.startSN,s=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,u=r;u<=a;u++){var c=l[o+u],h=s[u];n&&!h&&u<n&&(h=e.fragments[u]=c),c&&h&&i(c,h)}}function f(t,e){var i=e.startSN+e.skippedSegments-t.startSN,n=t.fragments;i<0||i>=n.length||p(e,n[i].start)}function p(t,e){if(e){for(var i=t.fragments,n=t.skippedSegments;n<i.length;n++)i[n].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function g(t,e){var i,n=1e3*t.levelTargetDuration,r=n/2,a=t.age,o=a>0&&a<3*n,s=e.loading.end-e.loading.start,l=t.availabilityDelay;if(!1===t.updated)if(o){var u=333*t.misses;i=Math.max(Math.min(r,2*s),u),t.availabilityDelay=(t.availabilityDelay||0)+i}else i=r;else o?(l=Math.min(l||n/2,a),t.availabilityDelay=l,i=l+n-a):i=n-s;return Math.round(i)}function v(t,e,i){if(!t||!t.details)return null;var n=t.details,r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e?r:e<n.startSN&&i&&i.sn===e?i:null)}function m(t,e,i){if(!t||!t.details)return null;var n=t.details.partList;if(n)for(var r=n.length;r--;){var a=n[r];if(a.index===i&&a.fragment.sn===e)return a}return null}},"./src/controller/stream-controller.ts":
- /*!*********************************************!*\
- !*** ./src/controller/stream-controller.ts ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return b}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ./base-stream-controller */"./src/controller/base-stream-controller.ts"),a=i(/*! ../is-supported */"./src/is-supported.ts"),o=i(/*! ../events */"./src/events.ts"),s=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),l=i(/*! ./fragment-tracker */"./src/controller/fragment-tracker.ts"),u=i(/*! ../types/loader */"./src/types/loader.ts"),c=i(/*! ../loader/fragment */"./src/loader/fragment.ts"),h=i(/*! ../demux/transmuxer-interface */"./src/demux/transmuxer-interface.ts"),d=i(/*! ../types/transmuxer */"./src/types/transmuxer.ts"),f=i(/*! ./gap-controller */"./src/controller/gap-controller.ts"),p=i(/*! ../errors */"./src/errors.ts"),g=i(/*! ../utils/logger */"./src/utils/logger.ts");function v(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e,i){return e&&v(t.prototype,e),i&&v(t,i),t}function y(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,x(t,e)}function x(t,e){return x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},x(t,e)}var _=100,b=function(t){function e(e,i){var n;return n=t.call(this,e,i,"[stream-controller]")||this,n.audioCodecSwap=!1,n.gapController=null,n.level=-1,n._forceStartLoad=!1,n.altAudio=!1,n.audioOnly=!1,n.fragPlaying=null,n.onvplaying=null,n.onvseeked=null,n.fragLastKbps=0,n.stalled=!1,n.couldBacktrack=!1,n.audioCodecSwitch=!1,n.videoBuffer=null,n._registerListeners(),n}y(e,t);var i=e.prototype;return i._registerListeners=function(){var t=this.hls;t.on(o["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.on(o["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.on(o["Events"].LEVEL_LOADING,this.onLevelLoading,this),t.on(o["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.on(o["Events"].FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(o["Events"].ERROR,this.onError,this),t.on(o["Events"].AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(o["Events"].AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(o["Events"].BUFFER_CREATED,this.onBufferCreated,this),t.on(o["Events"].BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(o["Events"].LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(o["Events"].FRAG_BUFFERED,this.onFragBuffered,this)},i._unregisterListeners=function(){var t=this.hls;t.off(o["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.off(o["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.off(o["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.off(o["Events"].FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(o["Events"].ERROR,this.onError,this),t.off(o["Events"].AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(o["Events"].AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(o["Events"].BUFFER_CREATED,this.onBufferCreated,this),t.off(o["Events"].BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(o["Events"].LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(o["Events"].FRAG_BUFFERED,this.onFragBuffered,this)},i.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},i.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,i=this.hls;if(this.stopLoad(),this.setInterval(_),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var n=i.startLevel;-1===n&&(i.config.testBandwidth?(n=0,this.bitrateTest=!0):n=i.nextAutoLevel),this.level=i.nextLoadLevel=n,this.loadedmetadata=!1}e>0&&-1===t&&(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=r["State"].IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=r["State"].STOPPED},i.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},i.doTick=function(){switch(this.state){case r["State"].IDLE:this.doTickIdle();break;case r["State"].WAITING_LEVEL:var t,e=this.levels,i=this.level,n=null===e||void 0===e||null===(t=e[i])||void 0===t?void 0:t.details;if(n&&(!n.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(n))break;this.state=r["State"].IDLE;break}break;case r["State"].FRAG_LOADING_WAITING_RETRY:var a,o=self.performance.now(),s=this.retryDate;(!s||o>=s||null!==(a=this.media)&&void 0!==a&&a.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=r["State"].IDLE);break;default:break}this.onTickEnd()},i.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},i.doTickIdle=function(){var t,e,i=this.hls,n=this.levelLastLoaded,a=this.levels,s=this.media,h=i.config,d=i.nextLoadLevel;if(null!==n&&(s||!this.startFragRequested&&h.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&a&&a[d]){var f=a[d];this.level=i.nextLoadLevel=d;var p=f.details;if(!p||this.state===r["State"].WAITING_LEVEL||p.live&&this.levelLastLoaded!==d)this.state=r["State"].WAITING_LEVEL;else{var g=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:s,u["PlaylistLevelType"].MAIN);if(null!==g){var v=g.len,m=this.getMaxBufferLength(f.maxBitrate);if(!(v>=m)){if(this._streamEnded(g,p)){var y={};return this.altAudio&&(y.type="video"),this.hls.trigger(o["Events"].BUFFER_EOS,y),void(this.state=r["State"].ENDED)}var x=g.end,_=this.getNextFragment(x,p);if(this.couldBacktrack&&!this.fragPrevious&&_&&"initSegment"!==_.sn){var b=_.sn-p.startSN;b>1&&(_=p.fragments[b-1],this.fragmentTracker.removeFragment(_))}if(_&&this.fragmentTracker.getState(_)===l["FragmentState"].OK&&this.nextLoadPosition>x){var S=this.audioOnly&&!this.altAudio?c["ElementaryStreamTypes"].AUDIO:c["ElementaryStreamTypes"].VIDEO;this.afterBufferFlushed(s,S,u["PlaylistLevelType"].MAIN),_=this.getNextFragment(this.nextLoadPosition,p)}_&&(!_.initSegment||_.initSegment.data||this.bitrateTest||(_=_.initSegment),"identity"!==(null===(t=_.decryptdata)||void 0===t?void 0:t.keyFormat)||null!==(e=_.decryptdata)&&void 0!==e&&e.key?this.loadFragment(_,p,x):this.loadKey(_,p))}}}}},i.loadFragment=function(e,i,n){var r,a=this.fragmentTracker.getState(e);if(this.fragCurrent=e,a===l["FragmentState"].BACKTRACKED){var o=this.fragmentTracker.getBacktrackData(e);if(o)return this._handleFragmentLoadProgress(o),void this._handleFragmentLoadComplete(o);a=l["FragmentState"].NOT_LOADED}a===l["FragmentState"].NOT_LOADED||a===l["FragmentState"].PARTIAL?"initSegment"===e.sn?this._loadInitSegment(e):this.bitrateTest?(e.bitrateTest=!0,this.log("Fragment "+e.sn+" of level "+e.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(e)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,i,n)):a===l["FragmentState"].APPENDING?this.reduceMaxBufferLength(e.duration)&&this.fragmentTracker.removeFragment(e):0===(null===(r=this.media)||void 0===r?void 0:r.buffered.length)&&this.fragmentTracker.removeAllFragments()},i.getAppendedFrag=function(t){var e=this.fragmentTracker.getAppendedFrag(t,u["PlaylistLevelType"].MAIN);return e&&"fragment"in e?e.fragment:e},i.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,u["PlaylistLevelType"].MAIN)},i.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},i.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},i.nextLevelSwitch=function(){var t=this.levels,e=this.media;if(null!==e&&void 0!==e&&e.readyState){var i,n=this.getAppendedFrag(e.currentTime);if(n&&n.start>1&&this.flushMainBuffer(0,n.start-1),!e.paused&&t){var r=this.hls.nextLoadLevel,a=t[r],o=this.fragLastKbps;i=o&&this.fragCurrent?this.fragCurrent.duration*a.maxBitrate/(1e3*o)+1:0}else i=0;var s=this.getBufferedFrag(e.currentTime+i);if(s){var l=this.followingBufferedFrag(s);if(l){this.abortCurrentFrag();var u=l.maxStartPTS?l.maxStartPTS:l.start,c=l.duration,h=Math.max(s.end,u+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,.5*c),.75*c));this.flushMainBuffer(h,Number.POSITIVE_INFINITY)}}}},i.abortCurrentFrag=function(){var t=this.fragCurrent;this.fragCurrent=null,null!==t&&void 0!==t&&t.loader&&t.loader.abort(),this.state===r["State"].KEY_LOADING&&(this.state=r["State"].IDLE),this.nextLoadPosition=this.getLoadPosition()},i.flushMainBuffer=function(e,i){t.prototype.flushMainBuffer.call(this,e,i,this.altAudio?"video":null)},i.onMediaAttached=function(e,i){t.prototype.onMediaAttached.call(this,e,i);var n=i.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new f["default"](this.config,n,this.fragmentTracker,this.hls)},i.onMediaDetaching=function(){var e=this.media;e&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},i.onMediaPlaying=function(){this.tick()},i.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:null;Object(n["isFiniteNumber"])(e)&&this.log("Media seeked to "+e.toFixed(3)),this.tick()},i.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(o["Events"].BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},i.onManifestParsed=function(t,e){var i,n=!1,r=!1;e.levels.forEach((function(t){i=t.audioCodec,i&&(-1!==i.indexOf("mp4a.40.2")&&(n=!0),-1!==i.indexOf("mp4a.40.5")&&(r=!0))})),this.audioCodecSwitch=n&&r&&!Object(a["changeTypeSupported"])(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1},i.onLevelLoading=function(t,e){var i=this.levels;if(i&&this.state===r["State"].IDLE){var n=i[e.level];(!n.details||n.details.live&&this.levelLastLoaded!==e.level||this.waitForCdnTuneIn(n.details))&&(this.state=r["State"].WAITING_LEVEL)}},i.onLevelLoaded=function(t,e){var i,n=this.levels,a=e.level,s=e.details,l=s.totalduration;if(n){this.log("Level "+a+" loaded ["+s.startSN+","+s.endSN+"], cc ["+s.startCC+", "+s.endCC+"] duration:"+l);var u=this.fragCurrent;!u||this.state!==r["State"].FRAG_LOADING&&this.state!==r["State"].FRAG_LOADING_WAITING_RETRY||u.level!==e.level&&u.loader&&(this.state=r["State"].IDLE,u.loader.abort());var c=n[a],h=0;if(s.live||null!==(i=c.details)&&void 0!==i&&i.live){if(s.fragments[0]||(s.deltaUpdateFailed=!0),s.deltaUpdateFailed)return;h=this.alignPlaylists(s,c.details)}if(c.details=s,this.levelLastLoaded=a,this.hls.trigger(o["Events"].LEVEL_UPDATED,{details:s,level:a}),this.state===r["State"].WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=r["State"].IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,h),this.tick()}else this.warn("Levels were reset while loading level "+a)},i._handleFragmentLoadProgress=function(t){var e,i=t.frag,n=t.part,r=t.payload,a=this.levels;if(a){var o=a[i.level],s=o.details;if(s){var l=o.videoCodec,c=s.PTSKnown||!s.live,f=null===(e=i.initSegment)||void 0===e?void 0:e.data,p=this._getAudioCodec(o),g=this.transmuxer=this.transmuxer||new h["default"](this.hls,u["PlaylistLevelType"].MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),v=n?n.index:-1,m=-1!==v,y=new d["ChunkMetadata"](i.level,i.sn,i.stats.chunkCount,r.byteLength,v,m),x=this.initPTS[i.cc];g.push(r,f,p,l,i,n,s.totalduration,c,y,x)}else this.warn("Dropping fragment "+i.sn+" of level "+i.level+" after level details were reset")}else this.warn("Levels were reset while fragment load was in progress. Fragment "+i.sn+" of level "+i.level+" will not be buffered")},i.onAudioTrackSwitching=function(t,e){var i=this.altAudio,n=!!e.url,r=e.id;if(!n){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var a=this.fragCurrent;null!==a&&void 0!==a&&a.loader&&(this.log("Switching to main audio track, cancel main fragment load"),a.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var s=this.hls;i&&s.trigger(o["Events"].BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),s.trigger(o["Events"].AUDIO_TRACK_SWITCHED,{id:r})}},i.onAudioTrackSwitched=function(t,e){var i=e.id,n=!!this.hls.audioTracks[i].url;if(n){var r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n,this.tick()},i.onBufferCreated=function(t,e){var i,n,r=e.tracks,a=!1;for(var o in r){var s=r[o];if("main"===s.id){if(n=o,i=s,"video"===o){var l=r[o];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&i?(this.log("Alternate track found, use "+n+".buffered to schedule main fragment loading"),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media},i.onFragBuffered=function(t,e){var i=e.frag,n=e.part;if(!i||i.type===u["PlaylistLevelType"].MAIN){if(this.fragContextChanged(i))return this.warn("Fragment "+i.sn+(n?" p: "+n.index:"")+" of level "+i.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===r["State"].PARSED&&(this.state=r["State"].IDLE));var a=n?n.stats:i.stats;this.fragLastKbps=Math.round(8*a.total/(a.buffering.end-a.loading.first)),"initSegment"!==i.sn&&(this.fragPrevious=i),this.fragBufferedComplete(i,n)}},i.onError=function(t,e){switch(e.details){case p["ErrorDetails"].FRAG_LOAD_ERROR:case p["ErrorDetails"].FRAG_LOAD_TIMEOUT:case p["ErrorDetails"].KEY_LOAD_ERROR:case p["ErrorDetails"].KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(u["PlaylistLevelType"].MAIN,e);break;case p["ErrorDetails"].LEVEL_LOAD_ERROR:case p["ErrorDetails"].LEVEL_LOAD_TIMEOUT:this.state!==r["State"].ERROR&&(e.fatal?(this.warn(""+e.details),this.state=r["State"].ERROR):e.levelRetry||this.state!==r["State"].WAITING_LEVEL||(this.state=r["State"].IDLE));break;case p["ErrorDetails"].BUFFER_FULL_ERROR:if("main"===e.parent&&(this.state===r["State"].PARSING||this.state===r["State"].PARSED)){var i=!0,n=this.getFwdBufferInfo(this.media,u["PlaylistLevelType"].MAIN);n&&n.len>.5&&(i=!this.reduceMaxBufferLength(n.len)),i&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},i.checkBuffer=function(){var t=this.media,e=this.gapController;if(t&&e&&t.readyState){var i=s["BufferHelper"].getBuffered(t);!this.loadedmetadata&&i.length?(this.loadedmetadata=!0,this.seekToStartPos()):e.poll(this.lastCurrentTime),this.lastCurrentTime=t.currentTime}},i.onFragLoadEmergencyAborted=function(){this.state=r["State"].IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},i.onBufferFlushed=function(t,e){var i=e.type;if(i!==c["ElementaryStreamTypes"].AUDIO||this.audioOnly&&!this.altAudio){var n=(i===c["ElementaryStreamTypes"].VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,i,u["PlaylistLevelType"].MAIN)}},i.onLevelsUpdated=function(t,e){this.levels=e.levels},i.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},i.seekToStartPos=function(){var t=this.media,e=t.currentTime,i=this.startPosition;if(i>=0&&e<i){if(t.seeking)return void g["logger"].log("could not seek to "+i+", already seeking at "+e);var n=s["BufferHelper"].getBuffered(t),r=n.length?n.start(0):0,a=r-i;a>0&&(a<this.config.maxBufferHole||a<this.config.maxFragLookUpTolerance)&&(g["logger"].log("adjusting start position by "+a+" to match buffer start"),i+=a,this.startPosition=i),this.log("seek to target start position "+i+" from current time "+e),t.currentTime=i}},i._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&e&&(this.log("Swapping audio codec"),e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),e},i._loadBitrateTestFrag=function(t){var e=this;this._doFragLoad(t).then((function(i){var n=e.hls;if(i&&!n.nextLoadLevel&&!e.fragContextChanged(t)){e.fragLoadError=0,e.state=r["State"].IDLE,e.startFragRequested=!1,e.bitrateTest=!1;var a=t.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),n.trigger(o["Events"].FRAG_LOADED,i)}}))},i._handleTransmuxComplete=function(t){var e,i="main",a=this.hls,s=t.remuxResult,l=t.chunkMeta,u=this.getCurrentContext(l);if(!u)return this.warn("The loading context changed while buffering fragment "+l.sn+" of level "+l.level+". This chunk will not be buffered."),void this.resetLiveStartWhenNotLoaded(l.level);var h=u.frag,d=u.part,f=u.level,p=s.video,g=s.text,v=s.id3,m=s.initSegment,y=this.altAudio?void 0:s.audio;if(!this.fragContextChanged(h)){if(this.state=r["State"].PARSING,m){m.tracks&&(this._bufferInitSegment(f,m.tracks,h,l),a.trigger(o["Events"].FRAG_PARSING_INIT_SEGMENT,{frag:h,id:i,tracks:m.tracks}));var x=m.initPTS,_=m.timescale;Object(n["isFiniteNumber"])(x)&&(this.initPTS[h.cc]=x,a.trigger(o["Events"].INIT_PTS_FOUND,{frag:h,id:i,initPTS:x,timescale:_}))}if(p&&!1!==s.independent){if(f.details){var b=p.startPTS,S=p.endPTS,T=p.startDTS,w=p.endDTS;if(d)d.elementaryStreams[p.type]={startPTS:b,endPTS:S,startDTS:T,endDTS:w};else if(p.firstKeyFrame&&p.independent&&(this.couldBacktrack=!0),p.dropped&&p.independent){var A=this.getLoadPosition()+this.config.maxBufferHole;if(A<b)return void this.backtrack(h);h.setElementaryStreamInfo(p.type,h.start,S,h.start,w,!0)}h.setElementaryStreamInfo(p.type,b,S,T,w),this.bufferFragmentData(p,h,d,l)}}else if(!1===s.independent)return void this.backtrack(h);if(y){var E=y.startPTS,I=y.endPTS,D=y.startDTS,M=y.endDTS;d&&(d.elementaryStreams[c["ElementaryStreamTypes"].AUDIO]={startPTS:E,endPTS:I,startDTS:D,endDTS:M}),h.setElementaryStreamInfo(c["ElementaryStreamTypes"].AUDIO,E,I,D,M),this.bufferFragmentData(y,h,d,l)}if(null!==v&&void 0!==v&&null!==(e=v.samples)&&void 0!==e&&e.length){var L={frag:h,id:i,samples:v.samples};a.trigger(o["Events"].FRAG_PARSING_METADATA,L)}if(g){var C={frag:h,id:i,samples:g.samples};a.trigger(o["Events"].FRAG_PARSING_USERDATA,C)}}},i._bufferInitSegment=function(t,e,i,n){var a=this;if(this.state===r["State"].PARSING){this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;var s=e.audio,l=e.video,u=e.audiovideo;if(s){var c=t.audioCodec,h=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(c&&(c=-1!==c.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==s.metadata.channelCount&&-1===h.indexOf("firefox")&&(c="mp4a.40.5")),-1!==h.indexOf("android")&&"audio/mpeg"!==s.container&&(c="mp4a.40.2",this.log("Android: force audio codec to "+c)),t.audioCodec&&t.audioCodec!==c&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+c+'"'),s.levelCodec=c,s.id="main",this.log("Init audio buffer, container:"+s.container+", codecs[selected/level/parsed]=["+(c||"")+"/"+(t.audioCodec||"")+"/"+s.codec+"]")}l&&(l.levelCodec=t.videoCodec,l.id="main",this.log("Init video buffer, container:"+l.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+l.codec+"]")),u&&this.log("Init audiovideo buffer, container:"+u.container+", codecs[level/parsed]=["+(t.attrs.CODECS||"")+"/"+u.codec+"]"),this.hls.trigger(o["Events"].BUFFER_CODECS,e),Object.keys(e).forEach((function(t){var r=e[t],s=r.initSegment;null!==s&&void 0!==s&&s.byteLength&&a.hls.trigger(o["Events"].BUFFER_APPENDING,{type:t,data:s,frag:i,part:null,chunkMeta:n,parent:i.type})})),this.tick()}},i.backtrack=function(t){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(t);var e=this.fragmentTracker.backtrack(t);this.fragPrevious=null,this.nextLoadPosition=t.start,e?this.resetFragmentLoading(t):this.state=r["State"].BACKTRACKING},i.checkFragmentChanged=function(){var t=this.media,e=null;if(t&&t.readyState>1&&!1===t.seeking){var i=t.currentTime;if(s["BufferHelper"].isBuffered(t,i)?e=this.getAppendedFrag(i):s["BufferHelper"].isBuffered(t,i+.1)&&(e=this.getAppendedFrag(i+.1)),e){var n=this.fragPlaying,r=e.level;n&&e.sn===n.sn&&n.level===r&&e.urlId===n.urlId||(this.hls.trigger(o["Events"].FRAG_CHANGED,{frag:e}),n&&n.level===r||this.hls.trigger(o["Events"].LEVEL_SWITCHED,{level:r}),this.fragPlaying=e)}}},m(e,[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentLevel",get:function(){var t=this.media;if(t){var e=this.getAppendedFrag(t.currentTime);if(e)return e.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;if(t){var e=this.getAppendedFrag(t.currentTime);return this.followingBufferedFrag(e)}return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),e}(r["default"])},"./src/controller/subtitle-stream-controller.ts":
- /*!******************************************************!*\
- !*** ./src/controller/subtitle-stream-controller.ts ***!
- \******************************************************/
- /*! exports provided: SubtitleStreamController */function(t,e,i){"use strict";i.r(e),i.d(e,"SubtitleStreamController",(function(){return m}));var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../utils/buffer-helper */"./src/utils/buffer-helper.ts"),a=i(/*! ./fragment-finders */"./src/controller/fragment-finders.ts"),o=i(/*! ../utils/discontinuities */"./src/utils/discontinuities.ts"),s=i(/*! ./level-helper */"./src/controller/level-helper.ts"),l=i(/*! ./fragment-tracker */"./src/controller/fragment-tracker.ts"),u=i(/*! ./base-stream-controller */"./src/controller/base-stream-controller.ts"),c=i(/*! ../types/loader */"./src/types/loader.ts"),h=i(/*! ../types/level */"./src/types/level.ts");function d(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,i){return e&&d(t.prototype,e),i&&d(t,i),t}function p(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,g(t,e)}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}var v=500,m=function(t){function e(e,i){var n;return n=t.call(this,e,i,"[subtitle-stream-controller]")||this,n.levels=[],n.currentTrackId=-1,n.tracksBuffered=[],n.mainDetails=null,n._registerListeners(),n}p(e,t);var i=e.prototype;return i.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},i._registerListeners=function(){var t=this.hls;t.on(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.on(n["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.on(n["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.on(n["Events"].ERROR,this.onError,this),t.on(n["Events"].SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(n["Events"].SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(n["Events"].SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(n["Events"].SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(n["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this)},i._unregisterListeners=function(){var t=this.hls;t.off(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.off(n["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.off(n["Events"].LEVEL_LOADED,this.onLevelLoaded,this),t.off(n["Events"].ERROR,this.onError,this),t.off(n["Events"].SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(n["Events"].SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(n["Events"].SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(n["Events"].SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(n["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this)},i.startLoad=function(){this.stopLoad(),this.state=u["State"].IDLE,this.setInterval(v),this.tick()},i.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},i.onLevelLoaded=function(t,e){this.mainDetails=e.details},i.onSubtitleFragProcessed=function(t,e){var i=e.frag,n=e.success;if(this.fragPrevious=i,this.state=u["State"].IDLE,n){var r=this.tracksBuffered[this.currentTrackId];if(r){for(var a,o=i.start,s=0;s<r.length;s++)if(o>=r[s].start&&o<=r[s].end){a=r[s];break}var l=i.start+i.duration;a?a.end=l:(a={start:o,end:l},r.push(a)),this.fragmentTracker.fragBuffered(i)}}},i.onBufferFlushing=function(t,e){var i=e.startOffset,n=e.endOffset;if(0===i&&n!==Number.POSITIVE_INFINITY){var r=this.currentTrackId,a=this.levels;if(!a.length||!a[r]||!a[r].details)return;var o=a[r].details,s=o.targetduration,l=n-s;if(l<=0)return;e.endOffsetSubtitles=Math.max(0,l),this.tracksBuffered.forEach((function(t){for(var e=0;e<t.length;)if(t[e].end<=l)t.shift();else{if(!(t[e].start<l))break;t[e].start=l,e++}})),this.fragmentTracker.removeFragmentsInRange(i,l,c["PlaylistLevelType"].SUBTITLE)}},i.onError=function(t,e){var i,n=e.frag;n&&n.type===c["PlaylistLevelType"].SUBTITLE&&(null!==(i=this.fragCurrent)&&void 0!==i&&i.loader&&this.fragCurrent.loader.abort(),this.state=u["State"].IDLE)},i.onSubtitleTracksUpdated=function(t,e){var i=this,n=e.subtitleTracks;this.tracksBuffered=[],this.levels=n.map((function(t){return new h["Level"](t)})),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach((function(t){i.tracksBuffered[t.id]=[]})),this.mediaBuffer=null},i.onSubtitleTrackSwitch=function(t,e){if(this.currentTrackId=e.id,this.levels.length&&-1!==this.currentTrackId){var i=this.levels[this.currentTrackId];null!==i&&void 0!==i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(v)}else this.clearInterval()},i.onSubtitleTrackLoaded=function(t,e){var i,n=e.details,r=e.id,l=this.currentTrackId,c=this.levels;if(c.length){var h=c[l];if(!(r>=c.length||r!==l)&&h){if(this.mediaBuffer=this.mediaBufferTimeRanges,n.live||null!==(i=h.details)&&void 0!==i&&i.live){var d=this.mainDetails;if(n.deltaUpdateFailed||!d)return;var f=d.fragments[0];if(h.details){var p=this.alignPlaylists(n,h.details);0===p&&f&&Object(s["addSliding"])(n,f.start)}else n.hasProgramDateTime&&d.hasProgramDateTime?Object(o["alignMediaPlaylistByPDT"])(n,d):f&&Object(s["addSliding"])(n,f.start)}if(h.details=n,this.levelLastLoaded=r,this.tick(),n.live&&!this.fragCurrent&&this.media&&this.state===u["State"].IDLE){var g=Object(a["findFragmentByPTS"])(null,n.fragments,this.media.currentTime,0);g||(this.warn("Subtitle playlist not aligned with playback"),h.details=void 0)}}}},i._handleFragmentLoadComplete=function(t){var e=t.frag,i=t.payload,r=e.decryptdata,a=this.hls;if(!this.fragContextChanged(e)&&i&&i.byteLength>0&&r&&r.key&&r.iv&&"AES-128"===r.method){var o=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer).then((function(t){var i=performance.now();a.trigger(n["Events"].FRAG_DECRYPTED,{frag:e,payload:t,stats:{tstart:o,tdecrypt:i}})}))}},i.doTick=function(){if(this.media){if(this.state===u["State"].IDLE){var t,e=this.currentTrackId,i=this.levels;if(!i.length||!i[e]||!i[e].details)return;var n=i[e].details,o=n.targetduration,s=this.config,c=this.media,h=r["BufferHelper"].bufferedInfo(this.mediaBufferTimeRanges,c.currentTime-o,s.maxBufferHole),d=h.end,f=h.len,p=this.getMaxBufferLength()+o;if(f>p)return;console.assert(n,"Subtitle track details are defined on idle subtitle stream controller tick");var g,v=n.fragments,m=v.length,y=n.edge,x=this.fragPrevious;if(d<y){var _=s.maxFragLookUpTolerance;g=Object(a["findFragmentByPTS"])(x,v,d,_),!g&&x&&x.start<v[0].start&&(g=v[0])}else g=v[m-1];null!==(t=g)&&void 0!==t&&t.encrypted?this.loadKey(g,n):g&&this.fragmentTracker.getState(g)===l["FragmentState"].NOT_LOADED&&this.loadFragment(g,n,d)}}else this.state=u["State"].IDLE},i.loadFragment=function(e,i,n){this.fragCurrent=e,t.prototype.loadFragment.call(this,e,i,n)},f(e,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),e}(u["default"])},"./src/controller/subtitle-track-controller.ts":
- /*!*****************************************************!*\
- !*** ./src/controller/subtitle-track-controller.ts ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../utils/texttrack-utils */"./src/utils/texttrack-utils.ts"),a=i(/*! ./base-playlist-controller */"./src/controller/base-playlist-controller.ts"),o=i(/*! ../types/loader */"./src/types/loader.ts");function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}var h=function(t){function e(e){var i;return i=t.call(this,e,"[subtitle-track-controller]")||this,i.media=null,i.tracks=[],i.groupId=null,i.tracksInGroup=[],i.trackId=-1,i.selectDefaultTrack=!0,i.queuedDefaultTrack=-1,i.trackChangeListener=function(){return i.onTextTracksChanged()},i.asyncPollTrackChange=function(){return i.pollTrackChange(0)},i.useTextTrackPolling=!1,i.subtitlePollingInterval=-1,i.subtitleDisplay=!0,i.registerListeners(),i}u(e,t);var i=e.prototype;return i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},i.registerListeners=function(){var t=this.hls;t.on(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.on(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.on(n["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.on(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.on(n["Events"].LEVEL_LOADING,this.onLevelLoading,this),t.on(n["Events"].LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(n["Events"].SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(n["Events"].ERROR,this.onError,this)},i.unregisterListeners=function(){var t=this.hls;t.off(n["Events"].MEDIA_ATTACHED,this.onMediaAttached,this),t.off(n["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.off(n["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.off(n["Events"].MANIFEST_PARSED,this.onManifestParsed,this),t.off(n["Events"].LEVEL_LOADING,this.onLevelLoading,this),t.off(n["Events"].LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(n["Events"].SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(n["Events"].ERROR,this.onError,this)},i.onMediaAttached=function(t,e){this.media=e.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},i.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,t)},i.onMediaDetaching=function(){if(this.media){self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var t=d(this.media.textTracks);t.forEach((function(t){Object(r["clearCurrentCues"])(t)})),this.subtitleTrack=-1,this.media=null}},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},i.onManifestParsed=function(t,e){this.tracks=e.subtitleTracks},i.onSubtitleTrackLoaded=function(t,e){var i=e.id,n=e.details,r=this.trackId,a=this.tracksInGroup[r];if(a){var o=a.details;a.details=e.details,this.log("subtitle track "+i+" loaded ["+n.startSN+"-"+n.endSN+"]"),i===this.trackId&&(this.retryCount=0,this.playlistLoaded(i,e,o))}else this.warn("Invalid subtitle track id "+i)},i.onLevelLoading=function(t,e){this.switchLevel(e.level)},i.onLevelSwitching=function(t,e){this.switchLevel(e.level)},i.switchLevel=function(t){var e=this.hls.levels[t];if(null!==e&&void 0!==e&&e.textGroupIds){var i=e.textGroupIds[e.urlId];if(this.groupId!==i){var r=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,a=this.tracks.filter((function(t){return!i||t.groupId===i}));this.tracksInGroup=a;var o=this.findTrackId(null===r||void 0===r?void 0:r.name)||this.findTrackId();this.groupId=i;var s={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+i+'" group-id'),this.hls.trigger(n["Events"].SUBTITLE_TRACKS_UPDATED,s),-1!==o&&this.setSubtitleTrack(o,r)}}},i.findTrackId=function(t){for(var e=this.tracksInGroup,i=0;i<e.length;i++){var n=e[i];if((!this.selectDefaultTrack||n.default)&&(!t||t===n.name))return n.id}return-1},i.onError=function(e,i){t.prototype.onError.call(this,e,i),!i.fatal&&i.context&&i.context.type===o["PlaylistContextType"].SUBTITLE_TRACK&&i.context.id===this.trackId&&i.context.groupId===this.groupId&&this.retryLoadingOrFail(i)},i.loadPlaylist=function(t){var e=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(e)){var i=e.id,r=e.groupId,a=e.url;if(t)try{a=t.addDirectives(a)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("Loading subtitle playlist for id "+i),this.hls.trigger(n["Events"].SUBTITLE_TRACK_LOADING,{url:a,id:i,groupId:r,deliveryDirectives:t||null})}},i.toggleTrackModes=function(t){var e=this,i=this.media,n=this.subtitleDisplay,r=this.trackId;if(i){var a=d(i.textTracks),o=a.filter((function(t){return t.groupId===e.groupId}));if(-1===t)[].slice.call(a).forEach((function(t){t.mode="disabled"}));else{var s=o[r];s&&(s.mode="disabled")}var l=o[t];l&&(l.mode=n?"showing":"hidden")}},i.setSubtitleTrack=function(t,e){var i,r=this.tracksInGroup;if(this.media){if(this.trackId!==t&&this.toggleTrackModes(t),!(this.trackId===t&&(-1===t||null!==(i=r[t])&&void 0!==i&&i.details)||t<-1||t>=r.length)){this.clearTimer();var a=r[t];if(this.log("Switching to subtitle track "+t),this.trackId=t,a){var o=a.id,s=a.groupId,l=void 0===s?"":s,u=a.name,c=a.type,h=a.url;this.hls.trigger(n["Events"].SUBTITLE_TRACK_SWITCH,{id:o,groupId:l,name:u,type:c,url:h});var d=this.switchParams(a.url,null===e||void 0===e?void 0:e.details);this.loadPlaylist(d)}else this.hls.trigger(n["Events"].SUBTITLE_TRACK_SWITCH,{id:t})}}else this.queuedDefaultTrack=t},i.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=d(this.media.textTracks),i=0;i<e.length;i++)if("hidden"===e[i].mode)t=i;else if("showing"===e[i].mode){t=i;break}this.subtitleTrack!==t&&(this.subtitleTrack=t)}},l(e,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1;var e=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(t,e)}}]),e}(a["default"]);function d(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];"subtitles"===n.kind&&n.label&&e.push(t[i])}return e}e["default"]=h},"./src/controller/timeline-controller.ts":
- /*!***********************************************!*\
- !*** ./src/controller/timeline-controller.ts ***!
- \***********************************************/
- /*! exports provided: TimelineController */function(t,e,i){"use strict";i.r(e),i.d(e,"TimelineController",(function(){return d}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../utils/cea-608-parser */"./src/utils/cea-608-parser.ts"),o=i(/*! ../utils/output-filter */"./src/utils/output-filter.ts"),s=i(/*! ../utils/webvtt-parser */"./src/utils/webvtt-parser.ts"),l=i(/*! ../utils/texttrack-utils */"./src/utils/texttrack-utils.ts"),u=i(/*! ../utils/imsc1-ttml-parser */"./src/utils/imsc1-ttml-parser.ts"),c=i(/*! ../types/loader */"./src/types/loader.ts"),h=i(/*! ../utils/logger */"./src/utils/logger.ts"),d=function(){function t(t){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=g(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var e=new o["default"](this,"textTrack1"),i=new o["default"](this,"textTrack2"),n=new o["default"](this,"textTrack3"),s=new o["default"](this,"textTrack4");this.cea608Parser1=new a["default"](1,e,i),this.cea608Parser2=new a["default"](3,n,s)}t.on(r["Events"].MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(r["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.on(r["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.on(r["Events"].MANIFEST_LOADED,this.onManifestLoaded,this),t.on(r["Events"].SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(r["Events"].FRAG_LOADING,this.onFragLoading,this),t.on(r["Events"].FRAG_LOADED,this.onFragLoaded,this),t.on(r["Events"].FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(r["Events"].FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(r["Events"].INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(r["Events"].SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(r["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=t.prototype;return e.destroy=function(){var t=this.hls;t.off(r["Events"].MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(r["Events"].MEDIA_DETACHING,this.onMediaDetaching,this),t.off(r["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.off(r["Events"].MANIFEST_LOADED,this.onManifestLoaded,this),t.off(r["Events"].SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(r["Events"].FRAG_LOADING,this.onFragLoading,this),t.off(r["Events"].FRAG_LOADED,this.onFragLoaded,this),t.off(r["Events"].FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(r["Events"].FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(r["Events"].INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(r["Events"].SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(r["Events"].BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},e.addCues=function(t,e,i,n,a){for(var o=!1,s=a.length;s--;){var l=a[s],u=p(l[0],l[1],e,i);if(u>=0&&(l[0]=Math.min(l[0],e),l[1]=Math.max(l[1],i),o=!0,u/(i-e)>.5))return}if(o||a.push([e,i]),this.config.renderTextTracksNatively){var c=this.captionsTracks[t];this.Cues.newCue(c,e,i,n)}else{var h=this.Cues.newCue(null,e,i,n);this.hls.trigger(r["Events"].CUES_PARSED,{type:"captions",cues:h,track:t})}},e.onInitPtsFound=function(t,e){var i=this,n=e.frag,a=e.id,o=e.initPTS,s=e.timescale,l=this.unparsedVttFrags;"main"===a&&(this.initPTS[n.cc]=o,this.timescale[n.cc]=s),l.length&&(this.unparsedVttFrags=[],l.forEach((function(t){i.onFragLoaded(r["Events"].FRAG_LOADED,t)})))},e.getExistingTrack=function(t){var e=this.media;if(e)for(var i=0;i<e.textTracks.length;i++){var n=e.textTracks[i];if(n[t])return n}return null},e.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},e.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,i=this.captionsTracks,n=this.media,r=e[t],a=r.label,o=r.languageCode,s=this.getExistingTrack(t);if(s)i[t]=s,Object(l["clearCurrentCues"])(i[t]),Object(l["sendAddTrackEvent"])(i[t],n);else{var u=this.createTextTrack("captions",a,o);u&&(u[t]=!0,i[t]=u)}}},e.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var i=e.label,n={_id:t,label:i,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=n,this.hls.trigger(r["Events"].NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}}},e.createTextTrack=function(t,e,i){var n=this.media;if(n)return n.addTextTrack(t,e,i)},e.onMediaAttaching=function(t,e){this.media=e.media,this._cleanTracks()},e.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){Object(l["clearCurrentCues"])(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},e.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=g(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},e._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var i=0;i<e.length;i++)Object(l["clearCurrentCues"])(e[i])}},e.onSubtitleTracksUpdated=function(t,e){var i=this;this.textTracks=[];var n=e.subtitleTracks||[],a=n.some((function(t){return t.textCodec===u["IMSC1_CODEC"]}));if(this.config.enableWebVTT||a&&this.config.enableIMSC1){var o=this.tracks&&n&&this.tracks.length===n.length;if(this.tracks=n||[],this.config.renderTextTracksNatively){var s=this.media?this.media.textTracks:[];this.tracks.forEach((function(t,e){var n;if(e<s.length){for(var r=null,a=0;a<s.length;a++)if(f(s[a],t)){r=s[a];break}r&&(n=r)}n?Object(l["clearCurrentCues"])(n):(n=i.createTextTrack("subtitles",t.name,t.lang),n&&(n.mode="disabled")),n&&(n.groupId=t.groupId,i.textTracks.push(n))}))}else if(!o&&this.tracks&&this.tracks.length){var c=this.tracks.map((function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}}));this.hls.trigger(r["Events"].NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:c})}}},e.onManifestLoaded=function(t,e){var i=this;this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((function(t){var e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(e){var n="textTrack"+e[1],r=i.captionsProperties[n];r&&(r.label=t.name,t.lang&&(r.languageCode=t.lang),r.media=t)}}))},e.onFragLoading=function(t,e){var i=this.cea608Parser1,n=this.cea608Parser2,r=this.lastSn,a=this.lastPartIndex;if(this.enabled&&i&&n&&e.frag.type===c["PlaylistLevelType"].MAIN){var o,s,l=e.frag.sn,u=null!=(o=null===e||void 0===e||null===(s=e.part)||void 0===s?void 0:s.index)?o:-1;l===r+1||l===r&&u===a+1||(i.reset(),n.reset()),this.lastSn=l,this.lastPartIndex=u}},e.onFragLoaded=function(t,e){var i=e.frag,a=e.payload,o=this.initPTS,s=this.unparsedVttFrags;if(i.type===c["PlaylistLevelType"].SUBTITLE)if(a.byteLength){if(!Object(n["isFiniteNumber"])(o[i.cc]))return s.push(e),void(o.length&&this.hls.trigger(r["Events"].SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:new Error("Missing initial subtitle PTS")}));var l=i.decryptdata,h="stats"in e;if(null==l||null==l.key||"AES-128"!==l.method||h){var d=this.tracks[i.level],f=this.vttCCs;f[i.cc]||(f[i.cc]={start:i.start,prevCC:this.prevCC,new:!0},this.prevCC=i.cc),d&&d.textCodec===u["IMSC1_CODEC"]?this._parseIMSC1(i,a):this._parseVTTs(i,a,f)}}else this.hls.trigger(r["Events"].SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:new Error("Empty subtitle payload")})},e._parseIMSC1=function(t,e){var i=this,n=this.hls;Object(u["parseIMSC1"])(e,this.initPTS[t.cc],this.timescale[t.cc],(function(e){i._appendCues(e,t.level),n.trigger(r["Events"].SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){h["logger"].log("Failed to parse IMSC1: "+e),n.trigger(r["Events"].SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))},e._parseVTTs=function(t,e,i){var n=this,a=this.hls;Object(s["parseWebVTT"])(e,this.initPTS[t.cc],this.timescale[t.cc],i,t.cc,t.start,(function(e){n._appendCues(e,t.level),a.trigger(r["Events"].SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(i){n._fallbackToIMSC1(t,e),h["logger"].log("Failed to parse VTT cue: "+i),a.trigger(r["Events"].SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:i})}))},e._fallbackToIMSC1=function(t,e){var i=this,n=this.tracks[t.level];n.textCodec||Object(u["parseIMSC1"])(e,this.initPTS[t.cc],this.timescale[t.cc],(function(){n.textCodec=u["IMSC1_CODEC"],i._parseIMSC1(t,e)}),(function(){n.textCodec="wvtt"}))},e._appendCues=function(t,e){var i=this.hls;if(this.config.renderTextTracksNatively){var n=this.textTracks[e];if("disabled"===n.mode)return;t.forEach((function(t){return Object(l["addCueToTrack"])(n,t)}))}else{var a=this.tracks[e],o=a.default?"default":"subtitles"+e;i.trigger(r["Events"].CUES_PARSED,{type:"subtitles",cues:t,track:o})}},e.onFragDecrypted=function(t,e){var i=e.frag;if(i.type===c["PlaylistLevelType"].SUBTITLE){if(!Object(n["isFiniteNumber"])(this.initPTS[i.cc]))return void this.unparsedVttFrags.push(e);this.onFragLoaded(r["Events"].FRAG_LOADED,e)}},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(t,e){var i=this.cea608Parser1,n=this.cea608Parser2;if(this.enabled&&i&&n)for(var r=0;r<e.samples.length;r++){var a=e.samples[r].bytes;if(a){var o=this.extractCea608Data(a);i.addData(e.samples[r].pts,o[0]),n.addData(e.samples[r].pts,o[1])}}},e.onBufferFlushing=function(t,e){var i=e.startOffset,n=e.endOffset,r=e.endOffsetSubtitles,a=e.type,o=this.media;if(o&&!(o.currentTime<n)){if(!a||"video"===a){var s=this.captionsTracks;Object.keys(s).forEach((function(t){return Object(l["removeCuesInRange"])(s[t],i,n)}))}if(this.config.renderTextTracksNatively&&0===i&&void 0!==r){var u=this.textTracks;Object.keys(u).forEach((function(t){return Object(l["removeCuesInRange"])(u[t],i,r)}))}}},e.extractCea608Data=function(t){for(var e=31&t[0],i=2,n=[[],[]],r=0;r<e;r++){var a=t[i++],o=127&t[i++],s=127&t[i++],l=0!==(4&a),u=3&a;0===o&&0===s||l&&(0!==u&&1!==u||(n[u].push(o),n[u].push(s)))}return n},t}();function f(t,e){return t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}function p(t,e,i,n){return Math.min(e,n)-Math.max(t,i)}function g(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":
- /*!*********************************!*\
- !*** ./src/crypt/aes-crypto.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));var n=function(){function t(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e}var e=t.prototype;return e.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}()},"./src/crypt/aes-decryptor.ts":
- /*!************************************!*\
- !*** ./src/crypt/aes-decryptor.ts ***!
- \************************************/
- /*! exports provided: removePadding, default */function(t,e,i){"use strict";i.r(e),i.d(e,"removePadding",(function(){return r})),i.d(e,"default",(function(){return a}));var n=i(/*! ../utils/typed-array */"./src/utils/typed-array.ts");function r(t){var e=t.byteLength,i=e&&new DataView(t.buffer).getUint8(e-1);return i?Object(n["sliceUint8"])(t,0,e-i):t}var a=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),i=new Uint32Array(4),n=0;n<4;n++)i[n]=e.getUint32(4*n);return i},e.initTable=function(){var t=this.sBox,e=this.invSBox,i=this.subMix,n=i[0],r=i[1],a=i[2],o=i[3],s=this.invSubMix,l=s[0],u=s[1],c=s[2],h=s[3],d=new Uint32Array(256),f=0,p=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){var v=p^p<<1^p<<2^p<<3^p<<4;v=v>>>8^255&v^99,t[f]=v,e[v]=f;var m=d[f],y=d[m],x=d[y],_=257*d[v]^16843008*v;n[f]=_<<24|_>>>8,r[f]=_<<16|_>>>16,a[f]=_<<8|_>>>24,o[f]=_,_=16843009*x^65537*y^257*m^16843008*f,l[v]=_<<24|_>>>8,u[v]=_<<16|_>>>16,c[v]=_<<8|_>>>24,h[v]=_,f?(f=m^d[d[d[x^m]]],p^=d[d[p]]):f=p=1}},e.expandKey=function(t){var e=this.uint8ArrayToUint32Array_(t),i=!0,n=0;while(n<e.length&&i)i=e[n]===this.key[n],n++;if(!i){this.key=e;var r=this.keySize=e.length;if(4!==r&&6!==r&&8!==r)throw new Error("Invalid aes key size="+r);var a,o,s,l,u=this.ksRows=4*(r+6+1),c=this.keySchedule=new Uint32Array(u),h=this.invKeySchedule=new Uint32Array(u),d=this.sBox,f=this.rcon,p=this.invSubMix,g=p[0],v=p[1],m=p[2],y=p[3];for(a=0;a<u;a++)a<r?s=c[a]=e[a]:(l=s,a%r===0?(l=l<<8|l>>>24,l=d[l>>>24]<<24|d[l>>>16&255]<<16|d[l>>>8&255]<<8|d[255&l],l^=f[a/r|0]<<24):r>6&&a%r===4&&(l=d[l>>>24]<<24|d[l>>>16&255]<<16|d[l>>>8&255]<<8|d[255&l]),c[a]=s=(c[a-r]^l)>>>0);for(o=0;o<u;o++)a=u-o,l=3&o?c[a]:c[a-4],h[o]=o<4||a<=4?l:g[d[l>>>24]]^v[d[l>>>16&255]]^m[d[l>>>8&255]]^y[d[255&l]],h[o]=h[o]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,i){var n,r,a,o,s,l,u,c,h,d,f,p,g,v,m=this.keySize+6,y=this.invKeySchedule,x=this.invSBox,_=this.invSubMix,b=_[0],S=_[1],T=_[2],w=_[3],A=this.uint8ArrayToUint32Array_(i),E=A[0],I=A[1],D=A[2],M=A[3],L=new Int32Array(t),C=new Int32Array(L.length),k=this.networkToHostOrderSwap;while(e<L.length){for(h=k(L[e]),d=k(L[e+1]),f=k(L[e+2]),p=k(L[e+3]),s=h^y[0],l=p^y[1],u=f^y[2],c=d^y[3],g=4,v=1;v<m;v++)n=b[s>>>24]^S[l>>16&255]^T[u>>8&255]^w[255&c]^y[g],r=b[l>>>24]^S[u>>16&255]^T[c>>8&255]^w[255&s]^y[g+1],a=b[u>>>24]^S[c>>16&255]^T[s>>8&255]^w[255&l]^y[g+2],o=b[c>>>24]^S[s>>16&255]^T[l>>8&255]^w[255&u]^y[g+3],s=n,l=r,u=a,c=o,g+=4;n=x[s>>>24]<<24^x[l>>16&255]<<16^x[u>>8&255]<<8^x[255&c]^y[g],r=x[l>>>24]<<24^x[u>>16&255]<<16^x[c>>8&255]<<8^x[255&s]^y[g+1],a=x[u>>>24]<<24^x[c>>16&255]<<16^x[s>>8&255]<<8^x[255&l]^y[g+2],o=x[c>>>24]<<24^x[s>>16&255]<<16^x[l>>8&255]<<8^x[255&u]^y[g+3],C[e]=k(n^E),C[e+1]=k(o^I),C[e+2]=k(a^D),C[e+3]=k(r^M),E=h,I=d,D=f,M=p,e+=4}return C.buffer},t}()},"./src/crypt/decrypter.ts":
- /*!********************************!*\
- !*** ./src/crypt/decrypter.ts ***!
- \********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return c}));var n=i(/*! ./aes-crypto */"./src/crypt/aes-crypto.ts"),r=i(/*! ./fast-aes-key */"./src/crypt/fast-aes-key.ts"),a=i(/*! ./aes-decryptor */"./src/crypt/aes-decryptor.ts"),o=i(/*! ../utils/logger */"./src/utils/logger.ts"),s=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),l=i(/*! ../utils/typed-array */"./src/utils/typed-array.ts"),u=16,c=function(){function t(t,e,i){var n=void 0===i?{}:i,r=n.removePKCS7Padding,a=void 0===r||r;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=t,this.config=e,this.removePKCS7Padding=a,a)try{var o=self.crypto;o&&(this.subtle=o.subtle||o.webkitSubtle)}catch(s){}null===this.subtle&&(this.config.enableSoftwareAES=!0)}var e=t.prototype;return e.destroy=function(){this.observer=null},e.isSync=function(){return this.config.enableSoftwareAES},e.flush=function(){var t=this.currentResult;if(t){var e=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?Object(a["removePadding"])(e):e}this.reset()},e.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},e.decrypt=function(t,e,i,n){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(t),e,i);var r=this.flush();r&&n(r.buffer)}else this.webCryptoDecrypt(new Uint8Array(t),e,i).then(n)},e.softwareDecrypt=function(t,e,i){var n=this.currentIV,r=this.currentResult,o=this.remainderData;this.logOnce("JS AES decrypt"),o&&(t=Object(s["appendUint8Array"])(o,t),this.remainderData=null);var u=this.getValidChunk(t);if(!u.length)return null;n&&(i=n);var c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new a["default"]),c.expandKey(e);var h=r;return this.currentResult=c.decrypt(u.buffer,0,i),this.currentIV=Object(l["sliceUint8"])(u,-16).buffer,h||null},e.webCryptoDecrypt=function(t,e,i){var a=this,o=this.subtle;return this.key===e&&this.fastAesKey||(this.key=e,this.fastAesKey=new r["default"](o,e)),this.fastAesKey.expandKey().then((function(e){if(!o)return Promise.reject(new Error("web crypto not initialized"));var r=new n["default"](o,i);return r.decrypt(t.buffer,e)})).catch((function(n){return a.onWebCryptoError(n,t,e,i)}))},e.onWebCryptoError=function(t,e,i,n){return o["logger"].warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",t),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(e,i,n)},e.getValidChunk=function(t){var e=t,i=t.length-t.length%u;return i!==t.length&&(e=Object(l["sliceUint8"])(t,0,i),this.remainderData=Object(l["sliceUint8"])(t,i)),e},e.logOnce=function(t){this.logEnabled&&(o["logger"].log("[decrypter.ts]: "+t),this.logEnabled=!1)},t}()},"./src/crypt/fast-aes-key.ts":
- /*!***********************************!*\
- !*** ./src/crypt/fast-aes-key.ts ***!
- \***********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));var n=function(){function t(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e}var e=t.prototype;return e.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}()},"./src/demux/aacdemuxer.ts":
- /*!*********************************!*\
- !*** ./src/demux/aacdemuxer.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ./base-audio-demuxer */"./src/demux/base-audio-demuxer.ts"),r=i(/*! ./adts */"./src/demux/adts.ts"),a=i(/*! ../utils/logger */"./src/utils/logger.ts"),o=i(/*! ../demux/id3 */"./src/demux/id3.ts");function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,l(t,e)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}var u=function(t){function e(e,i){var n;return n=t.call(this)||this,n.observer=void 0,n.config=void 0,n.observer=e,n.config=i,n}s(e,t);var i=e.prototype;return i.resetInitSegment=function(e,i,n){t.prototype.resetInitSegment.call(this,e,i,n),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:e,duration:n,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;for(var e=o["getID3Data"](t,0)||[],i=e.length,n=t.length;i<n;i++)if(r["probe"](t,i))return a["logger"].log("ADTS sync word found !"),!0;return!1},i.canParse=function(t,e){return r["canParse"](t,e)},i.appendFrame=function(t,e,i){r["initTrackConfig"](t,this.observer,e,i,t.manifestCodec);var n=r["appendFrame"](t,e,i,this.initPTS,this.frameIndex);if(n&&0===n.missing)return n},e}(n["default"]);u.minProbeByteLength=9,e["default"]=u},"./src/demux/adts.ts":
- /*!***************************!*\
- !*** ./src/demux/adts.ts ***!
- \***************************/
- /*! exports provided: getAudioConfig, isHeaderPattern, getHeaderLength, getFullFrameLength, canGetFrameLength, isHeader, canParse, probe, initTrackConfig, getFrameDuration, parseFrameHeader, appendFrame */function(t,e,i){"use strict";i.r(e),i.d(e,"getAudioConfig",(function(){return o})),i.d(e,"isHeaderPattern",(function(){return s})),i.d(e,"getHeaderLength",(function(){return l})),i.d(e,"getFullFrameLength",(function(){return u})),i.d(e,"canGetFrameLength",(function(){return c})),i.d(e,"isHeader",(function(){return h})),i.d(e,"canParse",(function(){return d})),i.d(e,"probe",(function(){return f})),i.d(e,"initTrackConfig",(function(){return p})),i.d(e,"getFrameDuration",(function(){return g})),i.d(e,"parseFrameHeader",(function(){return v})),i.d(e,"appendFrame",(function(){return m}));var n=i(/*! ../utils/logger */"./src/utils/logger.ts"),r=i(/*! ../errors */"./src/errors.ts"),a=i(/*! ../events */"./src/events.ts");function o(t,e,i,o){var s,l,u,c,h=navigator.userAgent.toLowerCase(),d=o,f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];s=1+((192&e[i+2])>>>6);var p=(60&e[i+2])>>>2;if(!(p>f.length-1))return u=(1&e[i+2])<<2,u|=(192&e[i+3])>>>6,n["logger"].log("manifest codec:"+o+", ADTS type:"+s+", samplingIndex:"+p),/firefox/i.test(h)?p>=6?(s=5,c=new Array(4),l=p-3):(s=2,c=new Array(2),l=p):-1!==h.indexOf("android")?(s=2,c=new Array(2),l=p):(s=5,c=new Array(4),o&&(-1!==o.indexOf("mp4a.40.29")||-1!==o.indexOf("mp4a.40.5"))||!o&&p>=6?l=p-3:((o&&-1!==o.indexOf("mp4a.40.2")&&(p>=6&&1===u||/vivaldi/i.test(h))||!o&&1===u)&&(s=2,c=new Array(2)),l=p)),c[0]=s<<3,c[0]|=(14&p)>>1,c[1]|=(1&p)<<7,c[1]|=u<<3,5===s&&(c[1]|=(14&l)>>1,c[2]=(1&l)<<7,c[2]|=8,c[3]=0),{config:c,samplerate:f[p],channelCount:u,codec:"mp4a.40."+s,manifestCodec:d};t.trigger(a["Events"].ERROR,{type:r["ErrorTypes"].MEDIA_ERROR,details:r["ErrorDetails"].FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+p})}function s(t,e){return 255===t[e]&&240===(246&t[e+1])}function l(t,e){return 1&t[e+1]?7:9}function u(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function c(t,e){return e+5<t.length}function h(t,e){return e+1<t.length&&s(t,e)}function d(t,e){return c(t,e)&&s(t,e)&&u(t,e)<=t.length-e}function f(t,e){if(h(t,e)){var i=l(t,e);if(e+i>=t.length)return!1;var n=u(t,e);if(n<=i)return!1;var r=e+n;return r===t.length||h(t,r)}return!1}function p(t,e,i,r,a){if(!t.samplerate){var s=o(e,i,r,a);if(!s)return;t.config=s.config,t.samplerate=s.samplerate,t.channelCount=s.channelCount,t.codec=s.codec,t.manifestCodec=s.manifestCodec,n["logger"].log("parsed codec:"+t.codec+", rate:"+s.samplerate+", channels:"+s.channelCount)}}function g(t){return 9216e4/t}function v(t,e,i,n,r){var a=l(t,e),o=u(t,e);if(o-=a,o>0){var s=i+n*r;return{headerLength:a,frameLength:o,stamp:s}}}function m(t,e,i,n,r){var a=g(t.samplerate),o=v(e,i,n,r,a);if(o){var s,l=o.frameLength,u=o.headerLength,c=o.stamp,h=u+l,d=Math.max(0,i+h-e.length);d?(s=new Uint8Array(h-u),s.set(e.subarray(i+u,e.length),0)):s=e.subarray(i+u,i+h);var f={unit:s,pts:c};return d||t.samples.push(f),{sample:f,length:h,missing:d}}}},"./src/demux/base-audio-demuxer.ts":
- /*!*****************************************!*\
- !*** ./src/demux/base-audio-demuxer.ts ***!
- \*****************************************/
- /*! exports provided: initPTSFn, default */function(t,e,i){"use strict";i.r(e),i.d(e,"initPTSFn",(function(){return u}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../demux/id3 */"./src/demux/id3.ts"),a=i(/*! ./dummy-demuxed-track */"./src/demux/dummy-demuxed-track.ts"),o=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),s=i(/*! ../utils/typed-array */"./src/utils/typed-array.ts"),l=function(){function t(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var e=t.prototype;return e.resetInitSegment=function(t,e,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(t,e){return!1},e.appendFrame=function(t,e,i){},e.demux=function(t,e){this.cachedData&&(t=Object(o["appendUint8Array"])(this.cachedData,t),this.cachedData=null);var i,n,l=r["getID3Data"](t,0),c=l?l.length:0,h=this._audioTrack,d=this._id3Track,f=l?r["getTimeStamp"](l):void 0,p=t.length;0!==this.frameIndex&&null!==this.initPTS||(this.initPTS=u(f,e)),l&&l.length>0&&d.samples.push({pts:this.initPTS,dts:this.initPTS,data:l}),n=this.initPTS;while(c<p){if(this.canParse(t,c)){var g=this.appendFrame(h,t,c);g?(this.frameIndex++,n=g.sample.pts,c+=g.length,i=c):c=p}else r["canParse"](t,c)?(l=r["getID3Data"](t,c),d.samples.push({pts:n,dts:n,data:l}),c+=l.length,i=c):c++;if(c===p&&i!==p){var v=Object(s["sliceUint8"])(t,i);this.cachedData?this.cachedData=Object(o["appendUint8Array"])(this.cachedData,v):this.cachedData=v}}return{audioTrack:h,avcTrack:Object(a["dummyTrack"])(),id3Track:d,textTrack:Object(a["dummyTrack"])()}},e.demuxSampleAes=function(t,e,i){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(a["dummyTrack"])(),id3Track:this._id3Track,textTrack:Object(a["dummyTrack"])()}},e.destroy=function(){},t}(),u=function(t,e){return Object(n["isFiniteNumber"])(t)?90*t:9e4*e};e["default"]=l},"./src/demux/chunk-cache.ts":
- /*!**********************************!*\
- !*** ./src/demux/chunk-cache.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));var n=function(){function t(){this.chunks=[],this.dataLength=0}var e=t.prototype;return e.push=function(t){this.chunks.push(t),this.dataLength+=t.length},e.flush=function(){var t,e=this.chunks,i=this.dataLength;return e.length?(t=1===e.length?e[0]:r(e,i),this.reset(),t):new Uint8Array(0)},e.reset=function(){this.chunks.length=0,this.dataLength=0},t}();function r(t,e){for(var i=new Uint8Array(e),n=0,r=0;r<t.length;r++){var a=t[r];i.set(a,n),n+=a.length}return i}},"./src/demux/dummy-demuxed-track.ts":
- /*!******************************************!*\
- !*** ./src/demux/dummy-demuxed-track.ts ***!
- \******************************************/
- /*! exports provided: dummyTrack */function(t,e,i){"use strict";function n(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}i.r(e),i.d(e,"dummyTrack",(function(){return n}))},"./src/demux/exp-golomb.ts":
- /*!*********************************!*\
- !*** ./src/demux/exp-golomb.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../utils/logger */"./src/utils/logger.ts"),r=function(){function t(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,i=t.byteLength-e,n=new Uint8Array(4),r=Math.min(4,e);if(0===r)throw new Error("no bytes available");n.set(t.subarray(i,i+r)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r},e.skipBits=function(t){var e;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,e=t>>3,t-=e>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),i=this.word>>>32-e;return t>32&&n["logger"].error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),e=t-e,e>0&&this.bitsAvailable?i<<e|this.readBits(e):i},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!==(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){for(var e,i=8,n=8,r=0;r<t;r++)0!==n&&(e=this.readEG(),n=(i+e+256)%256),i=0===n?i:n},e.readSPS=function(){var t,e,i,n=0,r=0,a=0,o=0,s=this.readUByte.bind(this),l=this.readBits.bind(this),u=this.readUEG.bind(this),c=this.readBoolean.bind(this),h=this.skipBits.bind(this),d=this.skipEG.bind(this),f=this.skipUEG.bind(this),p=this.skipScalingList.bind(this);s();var g=s();if(l(5),h(3),s(),f(),100===g||110===g||122===g||244===g||44===g||83===g||86===g||118===g||128===g){var v=u();if(3===v&&h(1),f(),f(),h(1),c())for(e=3!==v?8:12,i=0;i<e;i++)c()&&p(i<6?16:64)}f();var m=u();if(0===m)u();else if(1===m)for(h(1),d(),d(),t=u(),i=0;i<t;i++)d();f(),h(1);var y=u(),x=u(),_=l(1);0===_&&h(1),h(1),c()&&(n=u(),r=u(),a=u(),o=u());var b=[1,1];if(c()&&c()){var S=s();switch(S){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[s()<<8|s(),s()<<8|s()];break}}return{width:Math.ceil(16*(y+1)-2*n-2*r),height:(2-_)*(x+1)*16-(_?2:4)*(a+o),pixelRatio:b}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}();e["default"]=r},"./src/demux/id3.ts":
- /*!**************************!*\
- !*** ./src/demux/id3.ts ***!
- \**************************/
- /*! exports provided: isHeader, isFooter, getID3Data, canParse, getTimeStamp, isTimeStampFrame, getID3Frames, decodeFrame, utf8ArrayToStr, testables */function(t,e,i){"use strict";i.r(e),i.d(e,"isHeader",(function(){return r})),i.d(e,"isFooter",(function(){return a})),i.d(e,"getID3Data",(function(){return o})),i.d(e,"canParse",(function(){return l})),i.d(e,"getTimeStamp",(function(){return u})),i.d(e,"isTimeStampFrame",(function(){return c})),i.d(e,"getID3Frames",(function(){return d})),i.d(e,"decodeFrame",(function(){return f})),i.d(e,"utf8ArrayToStr",(function(){return y})),i.d(e,"testables",(function(){return x}));var n,r=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},a=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},o=function(t,e){var i=e,n=0;while(r(t,e)){n+=10;var o=s(t,e+6);n+=o,a(t,e+10)&&(n+=10),e+=n}if(n>0)return t.subarray(i,i+n)},s=function(t,e){var i=0;return i=(127&t[e])<<21,i|=(127&t[e+1])<<14,i|=(127&t[e+2])<<7,i|=127&t[e+3],i},l=function(t,e){return r(t,e)&&s(t,e+6)+10<=t.length-e},u=function(t){for(var e=d(t),i=0;i<e.length;i++){var n=e[i];if(c(n))return m(n)}},c=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},h=function(t){var e=String.fromCharCode(t[0],t[1],t[2],t[3]),i=s(t,4),n=10;return{type:e,size:i,data:t.subarray(n,n+i)}},d=function(t){var e=0,i=[];while(r(t,e)){var n=s(t,e+6);e+=10;var o=e+n;while(e+8<o){var l=h(t.subarray(e)),u=f(l);u&&i.push(u),e+=l.size+10}a(t,e)&&(e+=10)}return i},f=function(t){return"PRIV"===t.type?p(t):"W"===t.type[0]?v(t):g(t)},p=function(t){if(!(t.size<2)){var e=y(t.data,!0),i=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:i.buffer}}},g=function(t){if(!(t.size<2)){if("TXXX"===t.type){var e=1,i=y(t.data.subarray(e),!0);e+=i.length+1;var n=y(t.data.subarray(e));return{key:t.type,info:i,data:n}}var r=y(t.data.subarray(1));return{key:t.type,data:r}}},v=function(t){if("WXXX"===t.type){if(t.size<2)return;var e=1,i=y(t.data.subarray(e),!0);e+=i.length+1;var n=y(t.data.subarray(e));return{key:t.type,info:i,data:n}}var r=y(t.data);return{key:t.type,data:r}},m=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),i=1&e[3],n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,i&&(n+=47721858.84),Math.round(n)}},y=function(t,e){void 0===e&&(e=!1);var i=_();if(i){var n=i.decode(t);if(e){var r=n.indexOf("\0");return-1!==r?n.substring(0,r):n}return n.replace(/\0/g,"")}var a,o,s,l=t.length,u="",c=0;while(c<l){if(a=t[c++],0===a&&e)return u;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:o=t[c++],u+=String.fromCharCode((31&a)<<6|63&o);break;case 14:o=t[c++],s=t[c++],u+=String.fromCharCode((15&a)<<12|(63&o)<<6|(63&s)<<0);break;default:}}return u},x={decodeTextFrame:g};function _(){return n||"undefined"===typeof self.TextDecoder||(n=new self.TextDecoder("utf-8")),n}},"./src/demux/mp3demuxer.ts":
- /*!*********************************!*\
- !*** ./src/demux/mp3demuxer.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ./base-audio-demuxer */"./src/demux/base-audio-demuxer.ts"),r=i(/*! ../demux/id3 */"./src/demux/id3.ts"),a=i(/*! ../utils/logger */"./src/utils/logger.ts"),o=i(/*! ./mpegaudio */"./src/demux/mpegaudio.ts");function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,l(t,e)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}var u=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var i=e.prototype;return i.resetInitSegment=function(e,i,n){t.prototype.resetInitSegment.call(this,e,i,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:e,duration:n,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;for(var e=r["getID3Data"](t,0)||[],i=e.length,n=t.length;i<n;i++)if(o["probe"](t,i))return a["logger"].log("MPEG Audio sync word found !"),!0;return!1},i.canParse=function(t,e){return o["canParse"](t,e)},i.appendFrame=function(t,e,i){if(null!==this.initPTS)return o["appendFrame"](t,e,i,this.initPTS,this.frameIndex)},e}(n["default"]);u.minProbeByteLength=4,e["default"]=u},"./src/demux/mp4demuxer.ts":
- /*!*********************************!*\
- !*** ./src/demux/mp4demuxer.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),r=i(/*! ./dummy-demuxed-track */"./src/demux/dummy-demuxed-track.ts"),a=function(){function t(t,e){this.remainderData=null,this.config=void 0,this.config=e}var e=t.prototype;return e.resetTimeStamp=function(){},e.resetInitSegment=function(){},e.resetContiguity=function(){},t.probe=function(t){return Object(n["findBox"])({data:t,start:0,end:Math.min(t.length,16384)},["moof"]).length>0},e.demux=function(t){var e=t,i=Object(r["dummyTrack"])();if(this.config.progressive){this.remainderData&&(e=Object(n["appendUint8Array"])(this.remainderData,t));var a=Object(n["segmentValidRange"])(e);this.remainderData=a.remainder,i.samples=a.valid||new Uint8Array}else i.samples=e;return{audioTrack:Object(r["dummyTrack"])(),avcTrack:i,id3Track:Object(r["dummyTrack"])(),textTrack:Object(r["dummyTrack"])()}},e.flush=function(){var t=Object(r["dummyTrack"])();return t.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(r["dummyTrack"])(),avcTrack:t,id3Track:Object(r["dummyTrack"])(),textTrack:Object(r["dummyTrack"])()}},e.demuxSampleAes=function(t,e,i){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},e.destroy=function(){},t}();a.minProbeByteLength=1024,e["default"]=a},"./src/demux/mpegaudio.ts":
- /*!********************************!*\
- !*** ./src/demux/mpegaudio.ts ***!
- \********************************/
- /*! exports provided: appendFrame, parseHeader, isHeaderPattern, isHeader, canParse, probe */function(t,e,i){"use strict";i.r(e),i.d(e,"appendFrame",(function(){return l})),i.d(e,"parseHeader",(function(){return u})),i.d(e,"isHeaderPattern",(function(){return c})),i.d(e,"isHeader",(function(){return h})),i.d(e,"canParse",(function(){return d})),i.d(e,"probe",(function(){return f}));var n=null,r=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],a=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],o=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],s=[0,1,1,4];function l(t,e,i,n,r){if(!(i+24>e.length)){var a=u(e,i);if(a&&i+a.frameLength<=e.length){var o=9e4*a.samplesPerFrame/a.sampleRate,s=n+r*o,l={unit:e.subarray(i,i+a.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(l),{sample:l,length:a.frameLength,missing:0}}}}function u(t,e){var i=t[e+1]>>3&3,l=t[e+1]>>1&3,u=t[e+2]>>4&15,c=t[e+2]>>2&3;if(1!==i&&0!==u&&15!==u&&3!==c){var h=t[e+2]>>1&1,d=t[e+3]>>6,f=3===i?3-l:3===l?3:4,p=1e3*r[14*f+u-1],g=3===i?0:2===i?1:2,v=a[3*g+c],m=3===d?1:2,y=o[i][l],x=s[l],_=8*y*x,b=Math.floor(y*p/v+h)*x;if(null===n){var S=navigator.userAgent||"",T=S.match(/Chrome\/(\d+)/i);n=T?parseInt(T[1]):0}var w=!!n&&n<=87;return w&&2===l&&p>=224e3&&0===d&&(t[e+3]=128|t[e+3]),{sampleRate:v,channelCount:m,frameLength:b,samplesPerFrame:_}}}function c(t,e){return 255===t[e]&&224===(224&t[e+1])&&0!==(6&t[e+1])}function h(t,e){return e+1<t.length&&c(t,e)}function d(t,e){var i=4;return c(t,e)&&i<=t.length-e}function f(t,e){if(e+1<t.length&&c(t,e)){var i=4,n=u(t,e),r=i;null!==n&&void 0!==n&&n.frameLength&&(r=n.frameLength);var a=e+r;return a===t.length||h(t,a)}return!1}},"./src/demux/sample-aes.ts":
- /*!*********************************!*\
- !*** ./src/demux/sample-aes.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../crypt/decrypter */"./src/crypt/decrypter.ts"),r=i(/*! ./tsdemuxer */"./src/demux/tsdemuxer.ts"),a=function(){function t(t,e,i){this.keyData=void 0,this.decrypter=void 0,this.keyData=i,this.decrypter=new n["default"](t,e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,e)},e.decryptAacSample=function(t,e,i,n){var r=t[e].unit,a=r.subarray(16,r.length-r.length%16),o=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),s=this;this.decryptBuffer(o,(function(a){var o=new Uint8Array(a);r.set(o,16),n||s.decryptAacSamples(t,e+1,i)}))},e.decryptAacSamples=function(t,e,i){for(;;e++){if(e>=t.length)return void i();if(!(t[e].unit.length<32)){var n=this.decrypter.isSync();if(this.decryptAacSample(t,e,i,n),!n)return}}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,i=new Int8Array(e),n=0,r=32;r<t.length-16;r+=160,n+=16)i.set(t.subarray(r,r+16),n);return i},e.getAvcDecryptedUnit=function(t,e){for(var i=new Uint8Array(e),n=0,r=32;r<t.length-16;r+=160,n+=16)t.set(i.subarray(n,n+16),r);return t},e.decryptAvcSample=function(t,e,i,n,a,o){var s=Object(r["discardEPB"])(a.data),l=this.getAvcEncryptedData(s),u=this;this.decryptBuffer(l.buffer,(function(r){a.data=u.getAvcDecryptedUnit(s,r),o||u.decryptAvcSamples(t,e,i+1,n)}))},e.decryptAvcSamples=function(t,e,i,n){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,i=0){if(e>=t.length)return void n();for(var r=t[e].units;;i++){if(i>=r.length)break;var a=r[i];if(!(a.data.length<=48||1!==a.type&&5!==a.type)){var o=this.decrypter.isSync();if(this.decryptAvcSample(t,e,i,n,a,o),!o)return}}}},t}();e["default"]=a},"./src/demux/transmuxer-interface.ts":
- /*!*******************************************!*\
- !*** ./src/demux/transmuxer-interface.ts ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return h}));var n=i(/*! webworkify-webpack */"./node_modules/webworkify-webpack/index.js"),r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../demux/transmuxer */"./src/demux/transmuxer.ts"),o=i(/*! ../utils/logger */"./src/utils/logger.ts"),s=i(/*! ../errors */"./src/errors.ts"),l=i(/*! ../utils/mediasource-helper */"./src/utils/mediasource-helper.ts"),u=i(/*! eventemitter3 */"./node_modules/eventemitter3/index.js"),c=Object(l["getMediaSource"])()||{isTypeSupported:function(){return!1}},h=function(){function t(t,e,i,l){var h=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=t,this.id=e,this.onTransmuxComplete=i,this.onFlush=l;var d=t.config,f=function(e,i){i=i||{},i.frag=h.frag,i.id=h.id,t.trigger(e,i)};this.observer=new u["EventEmitter"],this.observer.on(r["Events"].FRAG_DECRYPTED,f),this.observer.on(r["Events"].ERROR,f);var p={mp4:c.isTypeSupported("video/mp4"),mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"')},g=navigator.vendor;if(d.enableWorker&&"undefined"!==typeof Worker){var v;o["logger"].log("demuxing in webworker");try{v=this.worker=n(/*! ../demux/transmuxer-worker.ts */"./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),v.addEventListener("message",this.onwmsg),v.onerror=function(e){t.trigger(r["Events"].ERROR,{type:s["ErrorTypes"].OTHER_ERROR,details:s["ErrorDetails"].INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(e.message+" ("+e.filename+":"+e.lineno+")")})},v.postMessage({cmd:"init",typeSupported:p,vendor:g,id:e,config:JSON.stringify(d)})}catch(m){o["logger"].warn("Error in worker:",m),o["logger"].error("Error while initializing DemuxerWorker, fallback to inline"),v&&self.URL.revokeObjectURL(v.objectURL),this.transmuxer=new a["default"](this.observer,p,d,g,e),this.worker=null}}else this.transmuxer=new a["default"](this.observer,p,d,g,e)}var e=t.prototype;return e.destroy=function(){var t=this.worker;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.worker=null;else{var e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}var i=this.observer;i&&i.removeAllListeners(),this.observer=null},e.push=function(t,e,i,n,r,s,l,u,c,h){var d,f,p=this;c.transmuxing.start=self.performance.now();var g=this.transmuxer,v=this.worker,m=s?s.start:r.start,y=r.decryptdata,x=this.frag,_=!(x&&r.cc===x.cc),b=!(x&&c.level===x.level),S=x?c.sn-x.sn:-1,T=this.part?c.part-this.part.index:1,w=!b&&(1===S||0===S&&1===T),A=self.performance.now();(b||S||0===r.stats.parsing.start)&&(r.stats.parsing.start=A),!s||!T&&w||(s.stats.parsing.start=A);var E=!(x&&(null===(d=r.initSegment)||void 0===d?void 0:d.url)===(null===(f=x.initSegment)||void 0===f?void 0:f.url)),I=new a["TransmuxState"](_,w,u,b,m,E);if(!w||_||E){o["logger"].log("[transmuxer-interface, "+r.type+"]: Starting new transmux session for sn: "+c.sn+" p: "+c.part+" level: "+c.level+" id: "+c.id+"\n discontinuity: "+_+"\n trackSwitch: "+b+"\n contiguous: "+w+"\n accurateTimeOffset: "+u+"\n timeOffset: "+m+"\n initSegmentChange: "+E);var D=new a["TransmuxConfig"](i,n,e,l,h);this.configureTransmuxer(D)}if(this.frag=r,this.part=s,v)v.postMessage({cmd:"demux",data:t,decryptdata:y,chunkMeta:c,state:I},t instanceof ArrayBuffer?[t]:[]);else if(g){var M=g.push(t,y,c,I);Object(a["isPromise"])(M)?M.then((function(t){p.handleTransmuxComplete(t)})):this.handleTransmuxComplete(M)}},e.flush=function(t){var e=this;t.transmuxing.start=self.performance.now();var i=this.transmuxer,n=this.worker;if(n)n.postMessage({cmd:"flush",chunkMeta:t});else if(i){var r=i.flush(t);Object(a["isPromise"])(r)?r.then((function(i){e.handleFlushResult(i,t)})):this.handleFlushResult(r,t)}},e.handleFlushResult=function(t,e){var i=this;t.forEach((function(t){i.handleTransmuxComplete(t)})),this.onFlush(e)},e.onWorkerMessage=function(t){var e=t.data,i=this.hls;switch(e.event){case"init":self.URL.revokeObjectURL(this.worker.objectURL);break;case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,i.trigger(e.event,e.data);break}},e.configureTransmuxer=function(t){var e=this.worker,i=this.transmuxer;e?e.postMessage({cmd:"configure",config:t}):i&&i.configure(t)},e.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},t}()},"./src/demux/transmuxer-worker.ts":
- /*!****************************************!*\
- !*** ./src/demux/transmuxer-worker.ts ***!
- \****************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return s}));var n=i(/*! ../demux/transmuxer */"./src/demux/transmuxer.ts"),r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../utils/logger */"./src/utils/logger.ts"),o=i(/*! eventemitter3 */"./node_modules/eventemitter3/index.js");function s(t){var e=new o["EventEmitter"],i=function(e,i){t.postMessage({event:e,data:i})};e.on(r["Events"].FRAG_DECRYPTED,i),e.on(r["Events"].ERROR,i),t.addEventListener("message",(function(r){var o=r.data;switch(o.cmd){case"init":var s=JSON.parse(o.config);t.transmuxer=new n["default"](e,o.typeSupported,s,o.vendor,o.id),Object(a["enableLogs"])(s.debug),i("init",null);break;case"configure":t.transmuxer.configure(o.config);break;case"demux":var u=t.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(n["isPromise"])(u)?u.then((function(e){l(t,e)})):l(t,u);break;case"flush":var h=o.chunkMeta,d=t.transmuxer.flush(h);Object(n["isPromise"])(d)?d.then((function(e){c(t,e,h)})):c(t,d,h);break;default:break}}))}function l(t,e){if(!h(e.remuxResult)){var i=[],n=e.remuxResult,r=n.audio,a=n.video;r&&u(i,r),a&&u(i,a),t.postMessage({event:"transmuxComplete",data:e},i)}}function u(t,e){e.data1&&t.push(e.data1.buffer),e.data2&&t.push(e.data2.buffer)}function c(t,e,i){e.forEach((function(e){l(t,e)})),t.postMessage({event:"flush",data:i})}function h(t){return!t.audio&&!t.video&&!t.text&&!t.id3&&!t.initSegment}},"./src/demux/transmuxer.ts":
- /*!*********************************!*\
- !*** ./src/demux/transmuxer.ts ***!
- \*********************************/
- /*! exports provided: default, isPromise, TransmuxConfig, TransmuxState */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return y})),i.d(e,"isPromise",(function(){return b})),i.d(e,"TransmuxConfig",(function(){return S})),i.d(e,"TransmuxState",(function(){return T}));var n,r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../errors */"./src/errors.ts"),o=i(/*! ../crypt/decrypter */"./src/crypt/decrypter.ts"),s=i(/*! ../demux/aacdemuxer */"./src/demux/aacdemuxer.ts"),l=i(/*! ../demux/mp4demuxer */"./src/demux/mp4demuxer.ts"),u=i(/*! ../demux/tsdemuxer */"./src/demux/tsdemuxer.ts"),c=i(/*! ../demux/mp3demuxer */"./src/demux/mp3demuxer.ts"),h=i(/*! ../remux/mp4-remuxer */"./src/remux/mp4-remuxer.ts"),d=i(/*! ../remux/passthrough-remuxer */"./src/remux/passthrough-remuxer.ts"),f=i(/*! ./chunk-cache */"./src/demux/chunk-cache.ts"),p=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),g=i(/*! ../utils/logger */"./src/utils/logger.ts");try{n=self.performance.now.bind(self.performance)}catch(w){g["logger"].debug("Unable to use Performance API on this environment"),n=self.Date.now}var v=[{demux:u["default"],remux:h["default"]},{demux:l["default"],remux:d["default"]},{demux:s["default"],remux:h["default"]},{demux:c["default"],remux:h["default"]}],m=1024;v.forEach((function(t){var e=t.demux;m=Math.max(m,e.minProbeByteLength)}));var y=function(){function t(t,e,i,n,r){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new f["default"],this.observer=t,this.typeSupported=e,this.config=i,this.vendor=n,this.id=r}var e=t.prototype;return e.configure=function(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()},e.push=function(t,e,i,r){var a=this,o=i.transmuxing;o.executeStart=n();var s=new Uint8Array(t),l=this.cache,u=this.config,c=this.currentTransmuxState,h=this.transmuxConfig;r&&(this.currentTransmuxState=r);var d=x(s,e);if(d&&"AES-128"===d.method){var f=this.getDecrypter();if(!u.enableSoftwareAES)return this.decryptionPromise=f.webCryptoDecrypt(s,d.key.buffer,d.iv.buffer).then((function(t){var e=a.push(t,null,i);return a.decryptionPromise=null,e})),this.decryptionPromise;var g=f.softwareDecrypt(s,d.key.buffer,d.iv.buffer);if(!g)return o.executeEnd=n(),_(i);s=new Uint8Array(g)}var v=r||c,m=v.contiguous,y=v.discontinuity,b=v.trackSwitch,S=v.accurateTimeOffset,T=v.timeOffset,w=v.initSegmentChange,A=h.audioCodec,E=h.videoCodec,I=h.defaultInitPts,D=h.duration,M=h.initSegmentData;if((y||b||w)&&this.resetInitSegment(M,A,E,D),(y||w)&&this.resetInitialTimestamp(I),m||this.resetContiguity(),this.needsProbing(s,y,b)){if(l.dataLength){var L=l.flush();s=Object(p["appendUint8Array"])(L,s)}this.configureTransmuxer(s,h)}var C=this.transmux(s,d,T,S,i),k=this.currentTransmuxState;return k.contiguous=!0,k.discontinuity=!1,k.trackSwitch=!1,o.executeEnd=n(),C},e.flush=function(t){var e=this,i=t.transmuxing;i.executeStart=n();var o=this.decrypter,s=this.cache,l=this.currentTransmuxState,u=this.decryptionPromise;if(u)return u.then((function(){return e.flush(t)}));var c=[],h=l.timeOffset;if(o){var d=o.flush();d&&c.push(this.push(d,null,t))}var f=s.dataLength;s.reset();var p=this.demuxer,g=this.remuxer;if(!p||!g)return f>=m&&this.observer.emit(r["Events"].ERROR,r["Events"].ERROR,{type:a["ErrorTypes"].MEDIA_ERROR,details:a["ErrorDetails"].FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),i.executeEnd=n(),[_(t)];var v=p.flush(h);return b(v)?v.then((function(i){return e.flushRemux(c,i,t),c})):(this.flushRemux(c,v,t),c)},e.flushRemux=function(t,e,i){var r=e.audioTrack,a=e.avcTrack,o=e.id3Track,s=e.textTrack,l=this.currentTransmuxState,u=l.accurateTimeOffset,c=l.timeOffset;g["logger"].log("[transmuxer.ts]: Flushed fragment "+i.sn+(i.part>-1?" p: "+i.part:"")+" of level "+i.level);var h=this.remuxer.remux(r,a,o,s,c,u,!0,this.id);t.push({remuxResult:h,chunkMeta:i}),i.transmuxing.executeEnd=n()},e.resetInitialTimestamp=function(t){var e=this.demuxer,i=this.remuxer;e&&i&&(e.resetTimeStamp(t),i.resetTimeStamp(t))},e.resetContiguity=function(){var t=this.demuxer,e=this.remuxer;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())},e.resetInitSegment=function(t,e,i,n){var r=this.demuxer,a=this.remuxer;r&&a&&(r.resetInitSegment(e,i,n),a.resetInitSegment(t,e,i))},e.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},e.transmux=function(t,e,i,n,r){var a;return a=e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,i,n,r):this.transmuxUnencrypted(t,i,n,r),a},e.transmuxUnencrypted=function(t,e,i,n){var r=this.demuxer.demux(t,e,!1,!this.config.progressive),a=r.audioTrack,o=r.avcTrack,s=r.id3Track,l=r.textTrack,u=this.remuxer.remux(a,o,s,l,e,i,!1,this.id);return{remuxResult:u,chunkMeta:n}},e.transmuxSampleAes=function(t,e,i,n,r){var a=this;return this.demuxer.demuxSampleAes(t,e,i).then((function(t){var e=a.remuxer.remux(t.audioTrack,t.avcTrack,t.id3Track,t.textTrack,i,n,!1,a.id);return{remuxResult:e,chunkMeta:r}}))},e.configureTransmuxer=function(t,e){for(var i,n=this.config,r=this.observer,a=this.typeSupported,o=this.vendor,s=e.audioCodec,u=e.defaultInitPts,c=e.duration,h=e.initSegmentData,f=e.videoCodec,p=0,m=v.length;p<m;p++)if(v[p].demux.probe(t)){i=v[p];break}i||(g["logger"].warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),i={demux:l["default"],remux:d["default"]});var y=this.demuxer,x=this.remuxer,_=i.remux,b=i.demux;x&&x instanceof _||(this.remuxer=new _(r,n,a,o)),y&&y instanceof b||(this.demuxer=new b(r,n,a),this.probe=b.probe),this.resetInitSegment(h,s,f,c),this.resetInitialTimestamp(u)},e.needsProbing=function(t,e,i){return!this.demuxer||!this.remuxer||e||i},e.getDecrypter=function(){var t=this.decrypter;return t||(t=this.decrypter=new o["default"](this.observer,this.config)),t},t}();function x(t,e){var i=null;return t.byteLength>0&&null!=e&&null!=e.key&&null!==e.iv&&null!=e.method&&(i=e),i}var _=function(t){return{remuxResult:{},chunkMeta:t}};function b(t){return"then"in t&&t.then instanceof Function}var S=function(t,e,i,n,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=i,this.duration=n,this.defaultInitPts=r},T=function(t,e,i,n,r,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=i,this.trackSwitch=n,this.timeOffset=r,this.initSegmentChange=a}},"./src/demux/tsdemuxer.ts":
- /*!********************************!*\
- !*** ./src/demux/tsdemuxer.ts ***!
- \********************************/
- /*! exports provided: discardEPB, default */function(t,e,i){"use strict";i.r(e),i.d(e,"discardEPB",(function(){return _}));var n=i(/*! ./adts */"./src/demux/adts.ts"),r=i(/*! ./mpegaudio */"./src/demux/mpegaudio.ts"),a=i(/*! ./exp-golomb */"./src/demux/exp-golomb.ts"),o=i(/*! ./id3 */"./src/demux/id3.ts"),s=i(/*! ./sample-aes */"./src/demux/sample-aes.ts"),l=i(/*! ../events */"./src/events.ts"),u=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),c=i(/*! ../utils/logger */"./src/utils/logger.ts"),h=i(/*! ../errors */"./src/errors.ts"),d={video:1,audio:2,id3:3,text:4},f=function(){function t(t,e,i){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=t,this.config=e,this.typeSupported=i}t.probe=function(e){var i=t.syncOffset(e);return!(i<0)&&(i&&c["logger"].warn("MPEG2-TS detected but first sync word found @ offset "+i+", junk ahead ?"),!0)},t.syncOffset=function(t){var e=Math.min(1e3,t.length-564),i=0;while(i<e){if(71===t[i]&&71===t[i+188]&&71===t[i+376])return i;i++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:d[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}};var e=t.prototype;return e.resetInitSegment=function(e,i,n){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=t.createTrack("video",n),this._audioTrack=t.createTrack("audio",n),this._id3Track=t.createTrack("id3",n),this._txtTrack=t.createTrack("text",n),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=e,this.videoCodec=i,this._duration=n},e.resetTimeStamp=function(){},e.resetContiguity=function(){var t=this._audioTrack,e=this._avcTrack,i=this._id3Track;t&&(t.pesData=null),e&&(e.pesData=null),i&&(i.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},e.demux=function(e,i,n,r){var a;void 0===n&&(n=!1),void 0===r&&(r=!1),n||(this.sampleAes=null);var o=this._avcTrack,s=this._audioTrack,d=this._id3Track,f=o.pid,p=o.pesData,y=s.pid,x=d.pid,_=s.pesData,b=d.pesData,S=!1,T=this.pmtParsed,w=this._pmtId,A=e.length;if(this.remainderData&&(e=Object(u["appendUint8Array"])(this.remainderData,e),A=e.length,this.remainderData=null),A<188&&!r)return this.remainderData=e,{audioTrack:s,avcTrack:o,id3Track:d,textTrack:this._txtTrack};var E=Math.max(0,t.syncOffset(e));A-=(A+E)%188,A<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,A,e.buffer.byteLength-A));for(var I=0,D=E;D<A;D+=188)if(71===e[D]){var M=!!(64&e[D+1]),L=((31&e[D+1])<<8)+e[D+2],C=(48&e[D+3])>>4,k=void 0;if(C>1){if(k=D+5+e[D+4],k===D+188)continue}else k=D+4;switch(L){case f:M&&(p&&(a=m(p))&&this.parseAVCPES(a,!1),p={data:[],size:0}),p&&(p.data.push(e.subarray(k,D+188)),p.size+=D+188-k);break;case y:M&&(_&&(a=m(_))&&(s.isAAC?this.parseAACPES(a):this.parseMPEGPES(a)),_={data:[],size:0}),_&&(_.data.push(e.subarray(k,D+188)),_.size+=D+188-k);break;case x:M&&(b&&(a=m(b))&&this.parseID3PES(a),b={data:[],size:0}),b&&(b.data.push(e.subarray(k,D+188)),b.size+=D+188-k);break;case 0:M&&(k+=e[k]+1),w=this._pmtId=g(e,k);break;case w:M&&(k+=e[k]+1);var R=v(e,k,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,n);f=R.avc,f>0&&(o.pid=f),y=R.audio,y>0&&(s.pid=y,s.isAAC=R.isAAC),x=R.id3,x>0&&(d.pid=x),S&&!T&&(c["logger"].log("reparse from beginning"),S=!1,D=E-188),T=this.pmtParsed=!0;break;case 17:case 8191:break;default:S=!0;break}}else I++;I>0&&this.observer.emit(l["Events"].ERROR,l["Events"].ERROR,{type:h["ErrorTypes"].MEDIA_ERROR,details:h["ErrorDetails"].FRAG_PARSING_ERROR,fatal:!1,reason:"Found "+I+" TS packet/s that do not start with 0x47"}),o.pesData=p,s.pesData=_,d.pesData=b;var P={audioTrack:s,avcTrack:o,id3Track:d,textTrack:this._txtTrack};return r&&this.extractRemainingSamples(P),P},e.flush=function(){var t,e=this.remainderData;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t},e.extractRemainingSamples=function(t){var e,i=t.audioTrack,n=t.avcTrack,r=t.id3Track,a=n.pesData,o=i.pesData,s=r.pesData;a&&(e=m(a))?(this.parseAVCPES(e,!0),n.pesData=null):n.pesData=a,o&&(e=m(o))?(i.isAAC?this.parseAACPES(e):this.parseMPEGPES(e),i.pesData=null):(null!==o&&void 0!==o&&o.size&&c["logger"].log("last AAC PES packet truncated,might overlap between fragments"),i.pesData=o),s&&(e=m(s))?(this.parseID3PES(e),r.pesData=null):r.pesData=s},e.demuxSampleAes=function(t,e,i){var n=this.demux(t,i,!0,!this.config.progressive),r=this.sampleAes=new s["default"](this.observer,this.config,e);return this.decrypt(n,r)},e.decrypt=function(t,e){return new Promise((function(i){var n=t.audioTrack,r=t.avcTrack;n.samples&&n.isAAC?e.decryptAacSamples(n.samples,0,(function(){r.samples?e.decryptAvcSamples(r.samples,0,0,(function(){i(t)})):i(t)})):r.samples&&e.decryptAvcSamples(r.samples,0,0,(function(){i(t)}))}))},e.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},e.parseAVCPES=function(t,e){var i,n=this,r=this._avcTrack,s=this.parseAVCNALu(t.data),l=!1,u=this.avcSample,c=!1;t.data=null,u&&s.length&&!r.audFound&&(y(u,r),u=this.avcSample=p(!1,t.pts,t.dts,"")),s.forEach((function(e){switch(e.type){case 1:i=!0,u||(u=n.avcSample=p(!0,t.pts,t.dts,"")),l&&(u.debug+="NDR "),u.frame=!0;var s=e.data;if(c&&s.length>4){var h=new a["default"](s).readSliceType();2!==h&&4!==h&&7!==h&&9!==h||(u.key=!0)}break;case 5:i=!0,u||(u=n.avcSample=p(!0,t.pts,t.dts,"")),l&&(u.debug+="IDR "),u.key=!0,u.frame=!0;break;case 6:i=!0,l&&u&&(u.debug+="SEI ");var d=new a["default"](_(e.data));d.readUByte();var f=0,g=0,v=!1,m=0;while(!v&&d.bytesAvailable>1){f=0;do{m=d.readUByte(),f+=m}while(255===m);g=0;do{m=d.readUByte(),g+=m}while(255===m);if(4===f&&0!==d.bytesAvailable){v=!0;var b=d.readUByte();if(181===b){var S=d.readUShort();if(49===S){var T=d.readUInt();if(1195456820===T){var w=d.readUByte();if(3===w){for(var A=d.readUByte(),E=d.readUByte(),I=31&A,D=[A,E],M=0;M<I;M++)D.push(d.readUByte()),D.push(d.readUByte()),D.push(d.readUByte());x(n._txtTrack.samples,{type:3,pts:t.pts,bytes:D})}}}}}else if(5===f&&0!==d.bytesAvailable){if(v=!0,g>16){for(var L=[],C=0;C<16;C++)L.push(d.readUByte().toString(16)),3!==C&&5!==C&&7!==C&&9!==C||L.push("-");for(var k=g-16,R=new Uint8Array(k),P=0;P<k;P++)R[P]=d.readUByte();x(n._txtTrack.samples,{pts:t.pts,payloadType:f,uuid:L.join(""),userData:Object(o["utf8ArrayToStr"])(R),userDataBytes:R})}}else if(g<d.bytesAvailable)for(var O=0;O<g;O++)d.readUByte()}break;case 7:if(i=!0,c=!0,l&&u&&(u.debug+="SPS "),!r.sps){var N=new a["default"](e.data),F=N.readSPS();r.width=F.width,r.height=F.height,r.pixelRatio=F.pixelRatio,r.sps=[e.data],r.duration=n._duration;for(var B=e.data.subarray(1,4),z="avc1.",V=0;V<3;V++){var G=B[V].toString(16);G.length<2&&(G="0"+G),z+=G}r.codec=z}break;case 8:i=!0,l&&u&&(u.debug+="PPS "),r.pps||(r.pps=[e.data]);break;case 9:i=!1,r.audFound=!0,u&&y(u,r),u=n.avcSample=p(!1,t.pts,t.dts,l?"AUD ":"");break;case 12:i=!1;break;default:i=!1,u&&(u.debug+="unknown NAL "+e.type+" ");break}if(u&&i){var U=u.units;U.push(e)}})),e&&u&&(y(u,r),this.avcSample=null)},e.getLastNalUnit=function(){var t,e,i=this.avcSample;if(!i||0===i.units.length){var n=this._avcTrack.samples;i=n[n.length-1]}if(null!==(t=i)&&void 0!==t&&t.units){var r=i.units;e=r[r.length-1]}return e},e.parseAVCNALu=function(t){var e,i,n,r=t.byteLength,a=this._avcTrack,o=a.naluState||0,s=o,l=[],u=0,c=-1,h=0;-1===o&&(c=0,h=31&t[0],o=0,u=1);while(u<r)if(e=t[u++],o)if(1!==o)if(e)if(1===e){if(c>=0){var d={data:t.subarray(c,u-o-1),type:h};l.push(d)}else{var f=this.getLastNalUnit();if(f&&(s&&u<=4-s&&f.state&&(f.data=f.data.subarray(0,f.data.byteLength-s)),i=u-o-1,i>0)){var p=new Uint8Array(f.data.byteLength+i);p.set(f.data,0),p.set(t.subarray(0,i),f.data.byteLength),f.data=p,f.state=0}}u<r?(n=31&t[u],c=u,h=n,o=0):o=-1}else o=0;else o=3;else o=e?0:2;else o=e?0:1;if(c>=0&&o>=0){var g={data:t.subarray(c,r),type:h,state:o};l.push(g)}if(0===l.length){var v=this.getLastNalUnit();if(v){var m=new Uint8Array(v.data.byteLength+t.byteLength);m.set(v.data,0),m.set(t,v.data.byteLength),v.data=m}}return a.naluState=o,l},e.parseAACPES=function(t){var e,i,r,a,o,s=0,u=this._audioTrack,d=this.aacOverFlow,f=t.data;if(d){this.aacOverFlow=null;var p=d.sample.unit.byteLength,g=Math.min(d.missing,p),v=p-g;d.sample.unit.set(f.subarray(0,g),v),u.samples.push(d.sample),s=d.missing}for(e=s,i=f.length;e<i-1;e++)if(n["isHeader"](f,e))break;if(e!==s&&(e<i-1?(r="AAC PES did not start with ADTS header,offset:"+e,a=!1):(r="no ADTS header found in AAC PES",a=!0),c["logger"].warn("parsing error:"+r),this.observer.emit(l["Events"].ERROR,l["Events"].ERROR,{type:h["ErrorTypes"].MEDIA_ERROR,details:h["ErrorDetails"].FRAG_PARSING_ERROR,fatal:a,reason:r}),a))return;if(n["initTrackConfig"](u,this.observer,f,e,this.audioCodec),void 0!==t.pts)o=t.pts;else{if(!d)return void c["logger"].warn("[tsdemuxer]: AAC PES unknown PTS");var m=n["getFrameDuration"](u.samplerate);o=d.sample.pts+m}var y=0;while(e<i){if(n["isHeader"](f,e)){if(e+5<i){var x=n["appendFrame"](u,f,e,o,y);if(x){if(!x.missing){e+=x.length,y++;continue}this.aacOverFlow=x}}break}e++}},e.parseMPEGPES=function(t){var e=t.data,i=e.length,n=0,a=0,o=t.pts;if(void 0!==o)while(a<i)if(r["isHeader"](e,a)){var s=r["appendFrame"](this._audioTrack,e,a,o,n);if(!s)break;a+=s.length,n++}else a++;else c["logger"].warn("[tsdemuxer]: MPEG PES unknown PTS")},e.parseID3PES=function(t){void 0!==t.pts?this._id3Track.samples.push(t):c["logger"].warn("[tsdemuxer]: ID3 PES unknown PTS")},t}();function p(t,e,i,n){return{key:t,frame:!1,pts:e,dts:i,units:[],debug:n,length:0}}function g(t,e){return(31&t[e+10])<<8|t[e+11]}function v(t,e,i,n){var r={audio:-1,avc:-1,id3:-1,isAAC:!0},a=(15&t[e+1])<<8|t[e+2],o=e+3+a-4,s=(15&t[e+10])<<8|t[e+11];e+=12+s;while(e<o){var l=(31&t[e+1])<<8|t[e+2];switch(t[e]){case 207:if(!n){c["logger"].log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===r.audio&&(r.audio=l);break;case 21:-1===r.id3&&(r.id3=l);break;case 219:if(!n){c["logger"].log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===r.avc&&(r.avc=l);break;case 3:case 4:i?-1===r.audio&&(r.audio=l,r.isAAC=!1):c["logger"].log("MPEG audio found, not supported in this browser");break;case 36:c["logger"].warn("Unsupported HEVC stream type found");break;default:break}e+=5+((15&t[e+3])<<8|t[e+4])}return r}function m(t){var e,i,n,r,a,o=0,s=t.data;if(!t||0===t.size)return null;while(s[0].length<19&&s.length>1){var l=new Uint8Array(s[0].length+s[1].length);l.set(s[0]),l.set(s[1],s[0].length),s[0]=l,s.splice(1,1)}e=s[0];var u=(e[0]<<16)+(e[1]<<8)+e[2];if(1===u){if(i=(e[4]<<8)+e[5],i&&i>t.size-6)return null;var h=e[7];192&h&&(r=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&h?(a=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2,r-a>54e5&&(c["logger"].warn(Math.round((r-a)/9e4)+"s delta between PTS and DTS, align them"),r=a)):a=r),n=e[8];var d=n+9;if(t.size<=d)return null;t.size-=d;for(var f=new Uint8Array(t.size),p=0,g=s.length;p<g;p++){e=s[p];var v=e.byteLength;if(d){if(d>v){d-=v;continue}e=e.subarray(d),v-=d,d=0}f.set(e,o),o+=v}return i&&(i-=n+3),{data:f,pts:r,dts:a,len:i}}return null}function y(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){var i=e.samples,n=i.length;if(!n)return void e.dropped++;var r=i[n-1];t.pts=r.pts,t.dts=r.dts}e.samples.push(t)}t.debug.length&&c["logger"].log(t.pts+"/"+t.dts+":"+t.debug)}function x(t,e){var i=t.length;if(i>0){if(e.pts>=t[i-1].pts)t.push(e);else for(var n=i-1;n>=0;n--)if(e.pts<t[n].pts){t.splice(n,0,e);break}}else t.push(e)}function _(t){var e=t.byteLength,i=[],n=1;while(n<e-2)0===t[n]&&0===t[n+1]&&3===t[n+2]?(i.push(n+2),n+=2):n++;if(0===i.length)return t;var r=e-i.length,a=new Uint8Array(r),o=0;for(n=0;n<r;o++,n++)o===i[0]&&(o++,i.shift()),a[n]=t[o];return a}f.minProbeByteLength=188,e["default"]=f},"./src/errors.ts":
- /*!***********************!*\
- !*** ./src/errors.ts ***!
- \***********************/
- /*! exports provided: ErrorTypes, ErrorDetails */function(t,e,i){"use strict";var n,r;i.r(e),i.d(e,"ErrorTypes",(function(){return n})),i.d(e,"ErrorDetails",(function(){return r})),function(t){t["NETWORK_ERROR"]="networkError",t["MEDIA_ERROR"]="mediaError",t["KEY_SYSTEM_ERROR"]="keySystemError",t["MUX_ERROR"]="muxError",t["OTHER_ERROR"]="otherError"}(n||(n={})),function(t){t["KEY_SYSTEM_NO_KEYS"]="keySystemNoKeys",t["KEY_SYSTEM_NO_ACCESS"]="keySystemNoAccess",t["KEY_SYSTEM_NO_SESSION"]="keySystemNoSession",t["KEY_SYSTEM_LICENSE_REQUEST_FAILED"]="keySystemLicenseRequestFailed",t["KEY_SYSTEM_NO_INIT_DATA"]="keySystemNoInitData",t["MANIFEST_LOAD_ERROR"]="manifestLoadError",t["MANIFEST_LOAD_TIMEOUT"]="manifestLoadTimeOut",t["MANIFEST_PARSING_ERROR"]="manifestParsingError",t["MANIFEST_INCOMPATIBLE_CODECS_ERROR"]="manifestIncompatibleCodecsError",t["LEVEL_EMPTY_ERROR"]="levelEmptyError",t["LEVEL_LOAD_ERROR"]="levelLoadError",t["LEVEL_LOAD_TIMEOUT"]="levelLoadTimeOut",t["LEVEL_SWITCH_ERROR"]="levelSwitchError",t["AUDIO_TRACK_LOAD_ERROR"]="audioTrackLoadError",t["AUDIO_TRACK_LOAD_TIMEOUT"]="audioTrackLoadTimeOut",t["SUBTITLE_LOAD_ERROR"]="subtitleTrackLoadError",t["SUBTITLE_TRACK_LOAD_TIMEOUT"]="subtitleTrackLoadTimeOut",t["FRAG_LOAD_ERROR"]="fragLoadError",t["FRAG_LOAD_TIMEOUT"]="fragLoadTimeOut",t["FRAG_DECRYPT_ERROR"]="fragDecryptError",t["FRAG_PARSING_ERROR"]="fragParsingError",t["REMUX_ALLOC_ERROR"]="remuxAllocError",t["KEY_LOAD_ERROR"]="keyLoadError",t["KEY_LOAD_TIMEOUT"]="keyLoadTimeOut",t["BUFFER_ADD_CODEC_ERROR"]="bufferAddCodecError",t["BUFFER_INCOMPATIBLE_CODECS_ERROR"]="bufferIncompatibleCodecsError",t["BUFFER_APPEND_ERROR"]="bufferAppendError",t["BUFFER_APPENDING_ERROR"]="bufferAppendingError",t["BUFFER_STALLED_ERROR"]="bufferStalledError",t["BUFFER_FULL_ERROR"]="bufferFullError",t["BUFFER_SEEK_OVER_HOLE"]="bufferSeekOverHole",t["BUFFER_NUDGE_ON_STALL"]="bufferNudgeOnStall",t["INTERNAL_EXCEPTION"]="internalException",t["INTERNAL_ABORTED"]="aborted",t["UNKNOWN"]="unknown"}(r||(r={}))},"./src/events.ts":
- /*!***********************!*\
- !*** ./src/events.ts ***!
- \***********************/
- /*! exports provided: Events */function(t,e,i){"use strict";var n;i.r(e),i.d(e,"Events",(function(){return n})),function(t){t["MEDIA_ATTACHING"]="hlsMediaAttaching",t["MEDIA_ATTACHED"]="hlsMediaAttached",t["MEDIA_DETACHING"]="hlsMediaDetaching",t["MEDIA_DETACHED"]="hlsMediaDetached",t["BUFFER_RESET"]="hlsBufferReset",t["BUFFER_CODECS"]="hlsBufferCodecs",t["BUFFER_CREATED"]="hlsBufferCreated",t["BUFFER_APPENDING"]="hlsBufferAppending",t["BUFFER_APPENDED"]="hlsBufferAppended",t["BUFFER_EOS"]="hlsBufferEos",t["BUFFER_FLUSHING"]="hlsBufferFlushing",t["BUFFER_FLUSHED"]="hlsBufferFlushed",t["MANIFEST_LOADING"]="hlsManifestLoading",t["MANIFEST_LOADED"]="hlsManifestLoaded",t["MANIFEST_PARSED"]="hlsManifestParsed",t["LEVEL_SWITCHING"]="hlsLevelSwitching",t["LEVEL_SWITCHED"]="hlsLevelSwitched",t["LEVEL_LOADING"]="hlsLevelLoading",t["LEVEL_LOADED"]="hlsLevelLoaded",t["LEVEL_UPDATED"]="hlsLevelUpdated",t["LEVEL_PTS_UPDATED"]="hlsLevelPtsUpdated",t["LEVELS_UPDATED"]="hlsLevelsUpdated",t["AUDIO_TRACKS_UPDATED"]="hlsAudioTracksUpdated",t["AUDIO_TRACK_SWITCHING"]="hlsAudioTrackSwitching",t["AUDIO_TRACK_SWITCHED"]="hlsAudioTrackSwitched",t["AUDIO_TRACK_LOADING"]="hlsAudioTrackLoading",t["AUDIO_TRACK_LOADED"]="hlsAudioTrackLoaded",t["SUBTITLE_TRACKS_UPDATED"]="hlsSubtitleTracksUpdated",t["SUBTITLE_TRACKS_CLEARED"]="hlsSubtitleTracksCleared",t["SUBTITLE_TRACK_SWITCH"]="hlsSubtitleTrackSwitch",t["SUBTITLE_TRACK_LOADING"]="hlsSubtitleTrackLoading",t["SUBTITLE_TRACK_LOADED"]="hlsSubtitleTrackLoaded",t["SUBTITLE_FRAG_PROCESSED"]="hlsSubtitleFragProcessed",t["CUES_PARSED"]="hlsCuesParsed",t["NON_NATIVE_TEXT_TRACKS_FOUND"]="hlsNonNativeTextTracksFound",t["INIT_PTS_FOUND"]="hlsInitPtsFound",t["FRAG_LOADING"]="hlsFragLoading",t["FRAG_LOAD_EMERGENCY_ABORTED"]="hlsFragLoadEmergencyAborted",t["FRAG_LOADED"]="hlsFragLoaded",t["FRAG_DECRYPTED"]="hlsFragDecrypted",t["FRAG_PARSING_INIT_SEGMENT"]="hlsFragParsingInitSegment",t["FRAG_PARSING_USERDATA"]="hlsFragParsingUserdata",t["FRAG_PARSING_METADATA"]="hlsFragParsingMetadata",t["FRAG_PARSED"]="hlsFragParsed",t["FRAG_BUFFERED"]="hlsFragBuffered",t["FRAG_CHANGED"]="hlsFragChanged",t["FPS_DROP"]="hlsFpsDrop",t["FPS_DROP_LEVEL_CAPPING"]="hlsFpsDropLevelCapping",t["ERROR"]="hlsError",t["DESTROYING"]="hlsDestroying",t["KEY_LOADING"]="hlsKeyLoading",t["KEY_LOADED"]="hlsKeyLoaded",t["LIVE_BACK_BUFFER_REACHED"]="hlsLiveBackBufferReached",t["BACK_BUFFER_REACHED"]="hlsBackBufferReached"}(n||(n={}))},"./src/hls.ts":
- /*!********************!*\
- !*** ./src/hls.ts ***!
- \********************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return x}));var n=i(/*! url-toolkit */"./node_modules/url-toolkit/src/url-toolkit.js"),r=i(/*! ./loader/playlist-loader */"./src/loader/playlist-loader.ts"),a=i(/*! ./loader/key-loader */"./src/loader/key-loader.ts"),o=i(/*! ./controller/id3-track-controller */"./src/controller/id3-track-controller.ts"),s=i(/*! ./controller/latency-controller */"./src/controller/latency-controller.ts"),l=i(/*! ./controller/level-controller */"./src/controller/level-controller.ts"),u=i(/*! ./controller/fragment-tracker */"./src/controller/fragment-tracker.ts"),c=i(/*! ./controller/stream-controller */"./src/controller/stream-controller.ts"),h=i(/*! ./is-supported */"./src/is-supported.ts"),d=i(/*! ./utils/logger */"./src/utils/logger.ts"),f=i(/*! ./config */"./src/config.ts"),p=i(/*! eventemitter3 */"./node_modules/eventemitter3/index.js"),g=i(/*! ./events */"./src/events.ts"),v=i(/*! ./errors */"./src/errors.ts");function m(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,i){return e&&m(t.prototype,e),i&&m(t,i),t}var x=function(){function t(e){void 0===e&&(e={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new p["EventEmitter"],this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var i=this.config=Object(f["mergeConfig"])(t.DefaultConfig,e);this.userConfig=e,Object(d["enableLogs"])(i.debug),this._autoLevelCapping=-1,i.progressive&&Object(f["enableStreamingMode"])(i);var n=i.abrController,h=i.bufferController,g=i.capLevelController,v=i.fpsController,m=this.abrController=new n(this),y=this.bufferController=new h(this),x=this.capLevelController=new g(this),_=new v(this),b=new r["default"](this),S=new a["default"](this),T=new o["default"](this),w=this.levelController=new l["default"](this),A=new u["FragmentTracker"](this),E=this.streamController=new c["default"](this,A);x.setStreamController(E),_.setStreamController(E);var I=[w,E];this.networkControllers=I;var D=[b,S,m,y,x,_,T,A];this.audioTrackController=this.createController(i.audioTrackController,null,I),this.createController(i.audioStreamController,A,I),this.subtitleTrackController=this.createController(i.subtitleTrackController,null,I),this.createController(i.subtitleStreamController,A,I),this.createController(i.timelineController,null,D),this.emeController=this.createController(i.emeController,null,D),this.cmcdController=this.createController(i.cmcdController,null,D),this.latencyController=this.createController(s["default"],null,D),this.coreComponents=D}t.isSupported=function(){return Object(h["isSupported"])()};var e=t.prototype;return e.createController=function(t,e,i){if(t){var n=e?new t(this,e):new t(this);return i&&i.push(n),n}return null},e.on=function(t,e,i){void 0===i&&(i=this),this._emitter.on(t,e,i)},e.once=function(t,e,i){void 0===i&&(i=this),this._emitter.once(t,e,i)},e.removeAllListeners=function(t){this._emitter.removeAllListeners(t)},e.off=function(t,e,i,n){void 0===i&&(i=this),this._emitter.off(t,e,i,n)},e.listeners=function(t){return this._emitter.listeners(t)},e.emit=function(t,e,i){return this._emitter.emit(t,e,i)},e.trigger=function(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(i){d["logger"].error("An internal error happened while handling event "+t+'. Error message: "'+i.message+'". Here is a stacktrace:',i),this.trigger(g["Events"].ERROR,{type:v["ErrorTypes"].OTHER_ERROR,details:v["ErrorDetails"].INTERNAL_EXCEPTION,fatal:!1,event:t,error:i})}return!1},e.listenerCount=function(t){return this._emitter.listenerCount(t)},e.destroy=function(){d["logger"].log("destroy"),this.trigger(g["Events"].DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(t){return t.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(t){return t.destroy()})),this.coreComponents.length=0},e.attachMedia=function(t){d["logger"].log("attachMedia"),this._media=t,this.trigger(g["Events"].MEDIA_ATTACHING,{media:t})},e.detachMedia=function(){d["logger"].log("detachMedia"),this.trigger(g["Events"].MEDIA_DETACHING,void 0),this._media=null},e.loadSource=function(t){this.stopLoad();var e=this.media,i=this.url,r=this.url=n["buildAbsoluteURL"](self.location.href,t,{alwaysNormalize:!0});d["logger"].log("loadSource:"+r),e&&i&&i!==r&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(e)),this.trigger(g["Events"].MANIFEST_LOADING,{url:t})},e.startLoad=function(t){void 0===t&&(t=-1),d["logger"].log("startLoad("+t+")"),this.networkControllers.forEach((function(e){e.startLoad(t)}))},e.stopLoad=function(){d["logger"].log("stopLoad"),this.networkControllers.forEach((function(t){t.stopLoad()}))},e.swapAudioCodec=function(){d["logger"].log("swapAudioCodec"),this.streamController.swapAudioCodec()},e.recoverMediaError=function(){d["logger"].log("recoverMediaError");var t=this._media;this.detachMedia(),t&&this.attachMedia(t)},e.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},y(t,[{key:"levels",get:function(){var t=this.levelController.levels;return t||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){d["logger"].log("set currentLevel:"+t),this.loadLevel=t,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){d["logger"].log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){d["logger"].log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){d["logger"].log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){d["logger"].log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){this._autoLevelCapping!==t&&(d["logger"].log("set autoLevelCapping:"+t),this._autoLevelCapping=t)}},{key:"bandwidthEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var t=this.levels,e=this.config.minAutoBitrate;if(!t)return 0;for(var i=t.length,n=0;n<i;n++)if(t[n].maxBitrate>e)return n;return 0}},{key:"maxAutoLevel",get:function(){var t,e=this.levels,i=this.autoLevelCapping;return t=-1===i&&e&&e.length?e.length-1:i,t}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(t){this.config.lowLatencyMode=t}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.5"}},{key:"Events",get:function(){return g["Events"]}},{key:"ErrorTypes",get:function(){return v["ErrorTypes"]}},{key:"ErrorDetails",get:function(){return v["ErrorDetails"]}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:f["hlsDefaultConfig"]},set:function(e){t.defaultConfig=e}}]),t}();x.defaultConfig=void 0},"./src/is-supported.ts":
- /*!*****************************!*\
- !*** ./src/is-supported.ts ***!
- \*****************************/
- /*! exports provided: isSupported, changeTypeSupported */function(t,e,i){"use strict";i.r(e),i.d(e,"isSupported",(function(){return a})),i.d(e,"changeTypeSupported",(function(){return o}));var n=i(/*! ./utils/mediasource-helper */"./src/utils/mediasource-helper.ts");function r(){return self.SourceBuffer||self.WebKitSourceBuffer}function a(){var t=Object(n["getMediaSource"])();if(!t)return!1;var e=r(),i=t&&"function"===typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!e||e.prototype&&"function"===typeof e.prototype.appendBuffer&&"function"===typeof e.prototype.remove;return!!i&&!!a}function o(){var t,e=r();return"function"===typeof(null===e||void 0===e||null===(t=e.prototype)||void 0===t?void 0:t.changeType)}},"./src/loader/fragment-loader.ts":
- /*!***************************************!*\
- !*** ./src/loader/fragment-loader.ts ***!
- \***************************************/
- /*! exports provided: default, LoadError */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return f})),i.d(e,"LoadError",(function(){return g}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../errors */"./src/errors.ts");function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function o(t){var e="function"===typeof Map?new Map:void 0;return o=function(t){if(null===t||!u(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return s(t,arguments,h(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,t)},o(t)}function s(t,e,i){return s=l()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=Function.bind.apply(t,n),a=new r;return i&&c(a,i.prototype),a},s.apply(null,arguments)}function l(){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(t){return!1}}function u(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var d=Math.pow(2,17),f=function(){function t(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}var e=t.prototype;return e.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},e.abort=function(){this.loader&&this.loader.abort()},e.load=function(t,e){var i=this,n=t.url;if(!n)return Promise.reject(new g({type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].FRAG_LOAD_ERROR,fatal:!1,frag:t,networkDetails:null},"Fragment does not have a "+(n?"part list":"url")));this.abort();var a=this.config,o=a.fLoader,s=a.loader;return new Promise((function(n,l){i.loader&&i.loader.destroy();var u=i.loader=t.loader=o?new o(a):new s(a),c=p(t),h={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:d};t.stats=u.stats,u.load(c,h,{onSuccess:function(e,r,a,o){i.resetLoader(t,u),n({frag:t,part:null,payload:e.data,networkDetails:o})},onError:function(e,n,a){i.resetLoader(t,u),l(new g({type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].FRAG_LOAD_ERROR,fatal:!1,frag:t,response:e,networkDetails:a}))},onAbort:function(e,n,a){i.resetLoader(t,u),l(new g({type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].INTERNAL_ABORTED,fatal:!1,frag:t,networkDetails:a}))},onTimeout:function(e,n,a){i.resetLoader(t,u),l(new g({type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,networkDetails:a}))},onProgress:function(i,n,r,a){e&&e({frag:t,part:null,payload:r,networkDetails:a})}})}))},e.loadPart=function(t,e,i){var n=this;this.abort();var a=this.config,o=a.fLoader,s=a.loader;return new Promise((function(l,u){n.loader&&n.loader.destroy();var c=n.loader=t.loader=o?new o(a):new s(a),h=p(t,e),f={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:d};e.stats=c.stats,c.load(h,f,{onSuccess:function(r,a,o,s){n.resetLoader(t,c),n.updateStatsFromPart(t,e);var u={frag:t,part:e,payload:r.data,networkDetails:s};i(u),l(u)},onError:function(i,a,o){n.resetLoader(t,c),u(new g({type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].FRAG_LOAD_ERROR,fatal:!1,frag:t,part:e,response:i,networkDetails:o}))},onAbort:function(i,a,o){t.stats.aborted=e.stats.aborted,n.resetLoader(t,c),u(new g({type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].INTERNAL_ABORTED,fatal:!1,frag:t,part:e,networkDetails:o}))},onTimeout:function(i,a,o){n.resetLoader(t,c),u(new g({type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:e,networkDetails:o}))}})}))},e.updateStatsFromPart=function(t,e){var i=t.stats,n=e.stats,r=n.total;if(i.loaded+=n.loaded,r){var a=Math.round(t.duration/e.duration),o=Math.min(Math.round(i.loaded/r),a),s=a-o,l=s*Math.round(i.loaded/o);i.total=i.loaded+l}else i.total=Math.max(i.loaded,i.total);var u=i.loading,c=n.loading;u.start?u.first+=c.first-c.start:(u.start=c.start,u.first=c.first),u.end=c.end},e.resetLoader=function(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()},t}();function p(t,e){void 0===e&&(e=null);var i=e||t,r={frag:t,part:e,responseType:"arraybuffer",url:i.url,headers:{},rangeStart:0,rangeEnd:0},a=i.byteRangeStartOffset,o=i.byteRangeEndOffset;return Object(n["isFiniteNumber"])(a)&&Object(n["isFiniteNumber"])(o)&&(r.rangeStart=a,r.rangeEnd=o),r}var g=function(t){function e(e){for(var i,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return i=t.call.apply(t,[this].concat(r))||this,i.data=void 0,i.data=e,i}return a(e,t),e}(o(Error))},"./src/loader/fragment.ts":
- /*!********************************!*\
- !*** ./src/loader/fragment.ts ***!
- \********************************/
- /*! exports provided: ElementaryStreamTypes, BaseSegment, Fragment, Part */function(t,e,i){"use strict";i.r(e),i.d(e,"ElementaryStreamTypes",(function(){return n})),i.d(e,"BaseSegment",(function(){return f})),i.d(e,"Fragment",(function(){return p})),i.d(e,"Part",(function(){return g}));var n,r=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),a=i(/*! url-toolkit */"./node_modules/url-toolkit/src/url-toolkit.js"),o=i(/*! ../utils/logger */"./src/utils/logger.ts"),s=i(/*! ./level-key */"./src/loader/level-key.ts"),l=i(/*! ./load-stats */"./src/loader/load-stats.ts");function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,i){return e&&h(t.prototype,e),i&&h(t,i),t}(function(t){t["AUDIO"]="audio",t["VIDEO"]="video",t["AUDIOVIDEO"]="audiovideo"})(n||(n={}));var f=function(){function t(t){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(e={},e[n.AUDIO]=null,e[n.VIDEO]=null,e[n.AUDIOVIDEO]=null,e),this.baseurl=t}var e=t.prototype;return e.setByteRange=function(t,e){var i=t.split("@",2),n=[];1===i.length?n[0]=e?e.byteRangeEndOffset:0:n[0]=parseInt(i[1]),n[1]=parseInt(i[0])+n[0],this._byteRange=n},d(t,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(a["buildAbsoluteURL"])(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(t){this._url=t}}]),t}(),p=function(t){function e(e,i){var n;return n=t.call(this,i)||this,n._decryptdata=null,n.rawProgramDateTime=null,n.programDateTime=null,n.tagList=[],n.duration=0,n.sn=0,n.levelkey=void 0,n.type=void 0,n.loader=null,n.level=-1,n.cc=0,n.startPTS=void 0,n.endPTS=void 0,n.appendedPTS=void 0,n.startDTS=void 0,n.endDTS=void 0,n.start=0,n.deltaPTS=void 0,n.maxStartPTS=void 0,n.minEndPTS=void 0,n.stats=new l["LoadStats"],n.urlId=0,n.data=void 0,n.bitrateTest=!1,n.title=null,n.initSegment=null,n.type=e,n}u(e,t);var i=e.prototype;return i.createInitializationVector=function(t){for(var e=new Uint8Array(16),i=12;i<16;i++)e[i]=t>>8*(15-i)&255;return e},i.setDecryptDataFromLevelKey=function(t,e){var i=t;return"AES-128"===(null===t||void 0===t?void 0:t.method)&&t.uri&&!t.iv&&(i=s["LevelKey"].fromURI(t.uri),i.method=t.method,i.iv=this.createInitializationVector(e),i.keyFormat="identity"),i},i.setElementaryStreamInfo=function(t,e,i,n,r,a){void 0===a&&(a=!1);var o=this.elementaryStreams,s=o[t];s?(s.startPTS=Math.min(s.startPTS,e),s.endPTS=Math.max(s.endPTS,i),s.startDTS=Math.min(s.startDTS,n),s.endDTS=Math.max(s.endDTS,r)):o[t]={startPTS:e,endPTS:i,startDTS:n,endDTS:r,partial:a}},i.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[n.AUDIO]=null,t[n.VIDEO]=null,t[n.AUDIOVIDEO]=null},d(e,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var t=this.sn;"number"!==typeof t&&(this.levelkey&&"AES-128"===this.levelkey.method&&!this.levelkey.iv&&o["logger"].warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),t=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,t)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!Object(r["isFiniteNumber"])(this.programDateTime))return null;var t=Object(r["isFiniteNumber"])(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;return!(null===(t=this.decryptdata)||void 0===t||!t.keyFormat||!this.decryptdata.uri)}}]),e}(f),g=function(t){function e(e,i,n,r,a){var o;o=t.call(this,n)||this,o.fragOffset=0,o.duration=0,o.gap=!1,o.independent=!1,o.relurl=void 0,o.fragment=void 0,o.index=void 0,o.stats=new l["LoadStats"],o.duration=e.decimalFloatingPoint("DURATION"),o.gap=e.bool("GAP"),o.independent=e.bool("INDEPENDENT"),o.relurl=e.enumeratedString("URI"),o.fragment=i,o.index=r;var s=e.enumeratedString("BYTERANGE");return s&&o.setByteRange(s,a),a&&(o.fragOffset=a.fragOffset+a.duration),o}return u(e,t),d(e,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var t=this.elementaryStreams;return!!(t.audio||t.video||t.audiovideo)}}]),e}(f)},"./src/loader/key-loader.ts":
- /*!**********************************!*\
- !*** ./src/loader/key-loader.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return o}));var n=i(/*! ../events */"./src/events.ts"),r=i(/*! ../errors */"./src/errors.ts"),a=i(/*! ../utils/logger */"./src/utils/logger.ts"),o=function(){function t(t){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){this.hls.on(n["Events"].KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(n["Events"].KEY_LOADING,this.onKeyLoading)},e.destroy=function(){for(var t in this._unregisterListeners(),this.loaders){var e=this.loaders[t];e&&e.destroy()}this.loaders={}},e.onKeyLoading=function(t,e){var i=e.frag,r=i.type,o=this.loaders[r];if(i.decryptdata){var s=i.decryptdata.uri;if(s!==this.decrypturl||null===this.decryptkey){var l=this.hls.config;if(o&&(a["logger"].warn("abort previous key loader for type:"+r),o.abort()),!s)return void a["logger"].warn("key uri is falsy");var u=l.loader,c=i.loader=this.loaders[r]=new u(l);this.decrypturl=s,this.decryptkey=null;var h={url:s,frag:i,responseType:"arraybuffer"},d={timeout:l.fragLoadingTimeOut,maxRetry:0,retryDelay:l.fragLoadingRetryDelay,maxRetryDelay:l.fragLoadingMaxRetryTimeout,highWaterMark:0},f={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(h,d,f)}else this.decryptkey&&(i.decryptdata.key=this.decryptkey,this.hls.trigger(n["Events"].KEY_LOADED,{frag:i}))}else a["logger"].warn("Missing decryption data on fragment in onKeyLoading")},e.loadsuccess=function(t,e,i){var r=i.frag;r.decryptdata?(this.decryptkey=r.decryptdata.key=new Uint8Array(t.data),r.loader=null,delete this.loaders[r.type],this.hls.trigger(n["Events"].KEY_LOADED,{frag:r})):a["logger"].error("after key load, decryptdata unset")},e.loaderror=function(t,e){var i=e.frag,a=i.loader;a&&a.abort(),delete this.loaders[i.type],this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].KEY_LOAD_ERROR,fatal:!1,frag:i,response:t})},e.loadtimeout=function(t,e){var i=e.frag,a=i.loader;a&&a.abort(),delete this.loaders[i.type],this.hls.trigger(n["Events"].ERROR,{type:r["ErrorTypes"].NETWORK_ERROR,details:r["ErrorDetails"].KEY_LOAD_TIMEOUT,fatal:!1,frag:i})},t}()},"./src/loader/level-details.ts":
- /*!*************************************!*\
- !*** ./src/loader/level-details.ts ***!
- \*************************************/
- /*! exports provided: LevelDetails */function(t,e,i){"use strict";i.r(e),i.d(e,"LevelDetails",(function(){return s}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts");function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}var o=10,s=function(){function t(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=t}var e=t.prototype;return e.reloaded=function(t){if(!t)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-t.lastPartSn,i=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!i||!!e,this.advanced=this.endSN>t.endSN||e>0||0===e&&i>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},a(t,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&Object(n["isFiniteNumber"])(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||o}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;if(t>0){var e=this.driftEnd-this.driftStart;return 1e3*e/t}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return null!==(t=this.partList)&&void 0!==t&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return null!==(t=this.fragments)&&void 0!==t&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return null!==(t=this.partList)&&void 0!==t&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return null!==(t=this.partList)&&void 0!==t&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}()},"./src/loader/level-key.ts":
- /*!*********************************!*\
- !*** ./src/loader/level-key.ts ***!
- \*********************************/
- /*! exports provided: LevelKey */function(t,e,i){"use strict";i.r(e),i.d(e,"LevelKey",(function(){return o}));var n=i(/*! url-toolkit */"./node_modules/url-toolkit/src/url-toolkit.js");function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}var o=function(){function t(t,e){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,this._uri=e?Object(n["buildAbsoluteURL"])(t,e,{alwaysNormalize:!0}):t}return t.fromURL=function(e,i){return new t(e,i)},t.fromURI=function(e){return new t(e)},a(t,[{key:"uri",get:function(){return this._uri}}]),t}()},"./src/loader/load-stats.ts":
- /*!**********************************!*\
- !*** ./src/loader/load-stats.ts ***!
- \**********************************/
- /*! exports provided: LoadStats */function(t,e,i){"use strict";i.r(e),i.d(e,"LoadStats",(function(){return n}));var n=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":
- /*!***********************************!*\
- !*** ./src/loader/m3u8-parser.ts ***!
- \***********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return m}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! url-toolkit */"./node_modules/url-toolkit/src/url-toolkit.js"),a=i(/*! ./fragment */"./src/loader/fragment.ts"),o=i(/*! ./level-details */"./src/loader/level-details.ts"),s=i(/*! ./level-key */"./src/loader/level-key.ts"),l=i(/*! ../utils/attr-list */"./src/utils/attr-list.ts"),u=i(/*! ../utils/logger */"./src/utils/logger.ts"),c=i(/*! ../utils/codecs */"./src/utils/codecs.ts"),h=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,d=/#EXT-X-MEDIA:(.*)/g,f=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),p=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),g=/\.(mp4|m4s|m4v|m4a)$/i;function v(t){var e,i;return g.test(null!=(e=null===(i=r["parseURL"](t))||void 0===i?void 0:i.path)?e:"")}var m=function(){function t(){}return t.findGroup=function(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(n.id===e)return n}},t.convertAVC1ToAVCOTI=function(t){var e=t.split(".");if(e.length>2){var i=e.shift()+".";return i+=parseInt(e.shift()).toString(16),i+=("000"+parseInt(e.shift()).toString(16)).substr(-4),i}return t},t.resolve=function(t,e){return r["buildAbsoluteURL"](e,t,{alwaysNormalize:!0})},t.parseMasterPlaylist=function(e,i){var n,r=[],a={},o=!1;h.lastIndex=0;while(null!=(n=h.exec(e)))if(n[1]){var s=new l["AttrList"](n[1]),u={attrs:s,bitrate:s.decimalInteger("AVERAGE-BANDWIDTH")||s.decimalInteger("BANDWIDTH"),name:s.NAME,url:t.resolve(n[2],i)},c=s.decimalResolution("RESOLUTION");c&&(u.width=c.width,u.height=c.height),y((s.CODECS||"").split(/[ ,]+/).filter((function(t){return t})),u),u.videoCodec&&-1!==u.videoCodec.indexOf("avc1")&&(u.videoCodec=t.convertAVC1ToAVCOTI(u.videoCodec)),r.push(u)}else if(n[3]){var d=new l["AttrList"](n[3]);d["DATA-ID"]&&(o=!0,a[d["DATA-ID"]]=d)}return{levels:r,sessionData:o?a:null}},t.parseMasterPlaylistMedia=function(e,i,n,r){var a;void 0===r&&(r=[]);var o=[],s=0;d.lastIndex=0;while(null!==(a=d.exec(e))){var u=new l["AttrList"](a[1]);if(u.TYPE===n){var c={attrs:u,bitrate:0,id:s++,groupId:u["GROUP-ID"],instreamId:u["INSTREAM-ID"],name:u.NAME||u.LANGUAGE||"",type:n,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:u.LANGUAGE,url:u.URI?t.resolve(u.URI,i):""};if(r.length){var h=t.findGroup(r,c.groupId)||r[0];x(c,h,"audioCodec"),x(c,h,"textCodec")}o.push(c)}}return o},t.parseLevelPlaylist=function(t,e,i,r,c){var h,d,g,m=new o["LevelDetails"](e),y=m.fragments,x=null,S=0,T=0,w=0,A=0,E=null,I=new a["Fragment"](r,e),D=-1,M=!1;f.lastIndex=0,m.m3u8=t;while(null!==(h=f.exec(t))){M&&(M=!1,I=new a["Fragment"](r,e),I.start=w,I.sn=S,I.cc=A,I.level=i,x&&(I.initSegment=x,I.rawProgramDateTime=x.rawProgramDateTime));var L=h[1];if(L){I.duration=parseFloat(L);var C=(" "+h[2]).slice(1);I.title=C||null,I.tagList.push(C?["INF",L,C]:["INF",L])}else if(h[3])Object(n["isFiniteNumber"])(I.duration)&&(I.start=w,g&&(I.levelkey=g),I.sn=S,I.level=i,I.cc=A,I.urlId=c,y.push(I),I.relurl=(" "+h[3]).slice(1),b(I,E),E=I,w+=I.duration,S++,T=0,M=!0);else if(h[4]){var k=(" "+h[4]).slice(1);E?I.setByteRange(k,E):I.setByteRange(k)}else if(h[5])I.rawProgramDateTime=(" "+h[5]).slice(1),I.tagList.push(["PROGRAM-DATE-TIME",I.rawProgramDateTime]),-1===D&&(D=y.length);else{if(h=h[0].match(p),!h){u["logger"].warn("No matches on slow regex match for level playlist!");continue}for(d=1;d<h.length;d++)if("undefined"!==typeof h[d])break;var R=(" "+h[d]).slice(1),P=(" "+h[d+1]).slice(1),O=h[d+2]?(" "+h[d+2]).slice(1):"";switch(R){case"PLAYLIST-TYPE":m.type=P.toUpperCase();break;case"MEDIA-SEQUENCE":S=m.startSN=parseInt(P);break;case"SKIP":var N=new l["AttrList"](P),F=N.decimalInteger("SKIPPED-SEGMENTS");if(Object(n["isFiniteNumber"])(F)){m.skippedSegments=F;for(var B=F;B--;)y.unshift(null);S+=F}var z=N.enumeratedString("RECENTLY-REMOVED-DATERANGES");z&&(m.recentlyRemovedDateranges=z.split("\t"));break;case"TARGETDURATION":m.targetduration=parseFloat(P);break;case"VERSION":m.version=parseInt(P);break;case"EXTM3U":break;case"ENDLIST":m.live=!1;break;case"#":(P||O)&&I.tagList.push(O?[P,O]:[P]);break;case"DIS":A++;case"GAP":I.tagList.push([R]);break;case"BITRATE":I.tagList.push([R,P]);break;case"DISCONTINUITY-SEQ":A=parseInt(P);break;case"KEY":var V,G=new l["AttrList"](P),U=G.enumeratedString("METHOD"),H=G.URI,W=G.hexadecimalInteger("IV"),j=G.enumeratedString("KEYFORMATVERSIONS"),K=G.enumeratedString("KEYID"),Y=null!=(V=G.enumeratedString("KEYFORMAT"))?V:"identity",X=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(X.indexOf(Y)>-1){u["logger"].warn("Keyformat "+Y+" is not supported from the manifest");continue}if("identity"!==Y)continue;U&&(g=s["LevelKey"].fromURL(e,H),H&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(U)>=0&&(g.method=U,g.keyFormat=Y,K&&(g.keyID=K),j&&(g.keyFormatVersions=j),g.iv=W));break;case"START":var q=new l["AttrList"](P),Z=q.decimalFloatingPoint("TIME-OFFSET");Object(n["isFiniteNumber"])(Z)&&(m.startTimeOffset=Z);break;case"MAP":var $=new l["AttrList"](P);I.relurl=$.URI,$.BYTERANGE&&I.setByteRange($.BYTERANGE),I.level=i,I.sn="initSegment",g&&(I.levelkey=g),I.initSegment=null,x=I,M=!0;break;case"SERVER-CONTROL":var Q=new l["AttrList"](P);m.canBlockReload=Q.bool("CAN-BLOCK-RELOAD"),m.canSkipUntil=Q.optionalFloat("CAN-SKIP-UNTIL",0),m.canSkipDateRanges=m.canSkipUntil>0&&Q.bool("CAN-SKIP-DATERANGES"),m.partHoldBack=Q.optionalFloat("PART-HOLD-BACK",0),m.holdBack=Q.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var J=new l["AttrList"](P);m.partTarget=J.decimalFloatingPoint("PART-TARGET");break;case"PART":var tt=m.partList;tt||(tt=m.partList=[]);var et=T>0?tt[tt.length-1]:void 0,it=T++,nt=new a["Part"](new l["AttrList"](P),I,e,it,et);tt.push(nt),I.duration+=nt.duration;break;case"PRELOAD-HINT":var rt=new l["AttrList"](P);m.preloadHint=rt;break;case"RENDITION-REPORT":var at=new l["AttrList"](P);m.renditionReports=m.renditionReports||[],m.renditionReports.push(at);break;default:u["logger"].warn("line parsed but not handled: "+h);break}}}E&&!E.relurl?(y.pop(),w-=E.duration,m.partList&&(m.fragmentHint=E)):m.partList&&(b(I,E),I.cc=A,m.fragmentHint=I);var ot=y.length,st=y[0],lt=y[ot-1];if(w+=m.skippedSegments*m.targetduration,w>0&&ot&<){m.averagetargetduration=w/ot;var ut=lt.sn;m.endSN="initSegment"!==ut?ut:0,st&&(m.startCC=st.cc,st.initSegment||m.fragments.every((function(t){return t.relurl&&v(t.relurl)}))&&(u["logger"].warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),I=new a["Fragment"](r,e),I.relurl=lt.relurl,I.level=i,I.sn="initSegment",st.initSegment=I,m.needSidxRanges=!0))}else m.endSN=0,m.startCC=0;return m.fragmentHint&&(w+=m.fragmentHint.duration),m.totalduration=w,m.endCC=A,D>0&&_(y,D),m},t}();function y(t,e){["video","audio","text"].forEach((function(i){var n=t.filter((function(t){return Object(c["isCodecType"])(t,i)}));if(n.length){var r=n.filter((function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}));e[i+"Codec"]=r.length>0?r[0]:n[0],t=t.filter((function(t){return-1===n.indexOf(t)}))}})),e.unknownCodecs=t}function x(t,e,i){var n=e[i];n&&(t[i]=n)}function _(t,e){for(var i=t[e],n=e;n--;){var r=t[n];if(!r)return;r.programDateTime=i.programDateTime-1e3*r.duration,i=r}}function b(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!==e&&void 0!==e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),Object(n["isFiniteNumber"])(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":
- /*!***************************************!*\
- !*** ./src/loader/playlist-loader.ts ***!
- \***************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../events */"./src/events.ts"),a=i(/*! ../errors */"./src/errors.ts"),o=i(/*! ../utils/logger */"./src/utils/logger.ts"),s=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),l=i(/*! ./m3u8-parser */"./src/loader/m3u8-parser.ts"),u=i(/*! ../types/loader */"./src/types/loader.ts"),c=i(/*! ../utils/attr-list */"./src/utils/attr-list.ts");function h(t){var e=t.type;switch(e){case u["PlaylistContextType"].AUDIO_TRACK:return u["PlaylistLevelType"].AUDIO;case u["PlaylistContextType"].SUBTITLE_TRACK:return u["PlaylistLevelType"].SUBTITLE;default:return u["PlaylistLevelType"].MAIN}}function d(t,e){var i=t.url;return void 0!==i&&0!==i.indexOf("data:")||(i=e.url),i}var f=function(){function t(t){this.hls=void 0,this.loaders=Object.create(null),this.hls=t,this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(r["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.on(r["Events"].LEVEL_LOADING,this.onLevelLoading,this),t.on(r["Events"].AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(r["Events"].SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.unregisterListeners=function(){var t=this.hls;t.off(r["Events"].MANIFEST_LOADING,this.onManifestLoading,this),t.off(r["Events"].LEVEL_LOADING,this.onLevelLoading,this),t.off(r["Events"].AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(r["Events"].SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.createInternalLoader=function(t){var e=this.hls.config,i=e.pLoader,n=e.loader,r=i||n,a=new r(e);return t.loader=a,this.loaders[t.type]=a,a},e.getInternalLoader=function(t){return this.loaders[t.type]},e.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},e.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},e.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},e.onManifestLoading=function(t,e){var i=e.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:u["PlaylistContextType"].MANIFEST,url:i,deliveryDirectives:null})},e.onLevelLoading=function(t,e){var i=e.id,n=e.level,r=e.url,a=e.deliveryDirectives;this.load({id:i,groupId:null,level:n,responseType:"text",type:u["PlaylistContextType"].LEVEL,url:r,deliveryDirectives:a})},e.onAudioTrackLoading=function(t,e){var i=e.id,n=e.groupId,r=e.url,a=e.deliveryDirectives;this.load({id:i,groupId:n,level:null,responseType:"text",type:u["PlaylistContextType"].AUDIO_TRACK,url:r,deliveryDirectives:a})},e.onSubtitleTrackLoading=function(t,e){var i=e.id,n=e.groupId,r=e.url,a=e.deliveryDirectives;this.load({id:i,groupId:n,level:null,responseType:"text",type:u["PlaylistContextType"].SUBTITLE_TRACK,url:r,deliveryDirectives:a})},e.load=function(t){var e,i,n,r,a,s,l=this.hls.config,c=this.getInternalLoader(t);if(c){var h=c.context;if(h&&h.url===t.url)return void o["logger"].trace("[playlist-loader]: playlist request ongoing");o["logger"].log("[playlist-loader]: aborting previous loader for type: "+t.type),c.abort()}switch(t.type){case u["PlaylistContextType"].MANIFEST:i=l.manifestLoadingMaxRetry,n=l.manifestLoadingTimeOut,r=l.manifestLoadingRetryDelay,a=l.manifestLoadingMaxRetryTimeout;break;case u["PlaylistContextType"].LEVEL:case u["PlaylistContextType"].AUDIO_TRACK:case u["PlaylistContextType"].SUBTITLE_TRACK:i=0,n=l.levelLoadingTimeOut;break;default:i=l.levelLoadingMaxRetry,n=l.levelLoadingTimeOut,r=l.levelLoadingRetryDelay,a=l.levelLoadingMaxRetryTimeout;break}if((c=this.createInternalLoader(t),null!==(e=t.deliveryDirectives)&&void 0!==e&&e.part)&&(t.type===u["PlaylistContextType"].LEVEL&&null!==t.level?s=this.hls.levels[t.level].details:t.type===u["PlaylistContextType"].AUDIO_TRACK&&null!==t.id?s=this.hls.audioTracks[t.id].details:t.type===u["PlaylistContextType"].SUBTITLE_TRACK&&null!==t.id&&(s=this.hls.subtitleTracks[t.id].details),s)){var d=s.partTarget,f=s.targetduration;d&&f&&(n=Math.min(1e3*Math.max(3*d,.8*f),n))}var p={timeout:n,maxRetry:i,retryDelay:r,maxRetryDelay:a,highWaterMark:0},g={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(t,p,g)},e.loadsuccess=function(t,e,i,n){if(void 0===n&&(n=null),i.isSidxRequest)return this.handleSidxRequest(t,i),void this.handlePlaylistLoaded(t,e,i,n);this.resetInternalLoader(i.type);var r=t.data;0===r.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),r.indexOf("#EXTINF:")>0||r.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(t,e,i,n):this.handleMasterPlaylist(t,e,i,n)):this.handleManifestParsingError(t,i,"no EXTM3U delimiter",n)},e.loaderror=function(t,e,i){void 0===i&&(i=null),this.handleNetworkError(e,i,!1,t)},e.loadtimeout=function(t,e,i){void 0===i&&(i=null),this.handleNetworkError(e,i,!0)},e.handleMasterPlaylist=function(t,e,i,n){var a=this.hls,s=t.data,u=d(t,i),h=l["default"].parseMasterPlaylist(s,u),f=h.levels,p=h.sessionData;if(f.length){var g=f.map((function(t){return{id:t.attrs.AUDIO,audioCodec:t.audioCodec}})),v=f.map((function(t){return{id:t.attrs.SUBTITLES,textCodec:t.textCodec}})),m=l["default"].parseMasterPlaylistMedia(s,u,"AUDIO",g),y=l["default"].parseMasterPlaylistMedia(s,u,"SUBTITLES",v),x=l["default"].parseMasterPlaylistMedia(s,u,"CLOSED-CAPTIONS");if(m.length){var _=m.some((function(t){return!t.url}));_||!f[0].audioCodec||f[0].attrs.AUDIO||(o["logger"].log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new c["AttrList"]({}),bitrate:0,url:""}))}a.trigger(r["Events"].MANIFEST_LOADED,{levels:f,audioTracks:m,subtitles:y,captions:x,url:u,stats:e,networkDetails:n,sessionData:p})}else this.handleManifestParsingError(t,i,"no level found in manifest",n)},e.handleTrackOrLevelPlaylist=function(t,e,i,o){var s=this.hls,f=i.id,p=i.level,g=i.type,v=d(t,i),m=Object(n["isFiniteNumber"])(f)?f:0,y=Object(n["isFiniteNumber"])(p)?p:m,x=h(i),_=l["default"].parseLevelPlaylist(t.data,v,y,x,m);if(_.fragments.length){if(g===u["PlaylistContextType"].MANIFEST){var b={attrs:new c["AttrList"]({}),bitrate:0,details:_,name:"",url:v};s.trigger(r["Events"].MANIFEST_LOADED,{levels:[b],audioTracks:[],url:v,stats:e,networkDetails:o,sessionData:null})}if(e.parsing.end=performance.now(),_.needSidxRanges){var S,T=null===(S=_.fragments[0].initSegment)||void 0===S?void 0:S.url;this.load({url:T,isSidxRequest:!0,type:g,level:p,levelDetails:_,id:f,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null})}else i.levelDetails=_,this.handlePlaylistLoaded(t,e,i,o)}else s.trigger(r["Events"].ERROR,{type:a["ErrorTypes"].NETWORK_ERROR,details:a["ErrorDetails"].LEVEL_EMPTY_ERROR,fatal:!1,url:v,reason:"no fragments found in level",level:"number"===typeof i.level?i.level:void 0})},e.handleSidxRequest=function(t,e){var i=Object(s["parseSegmentIndex"])(new Uint8Array(t.data));if(i){var n=i.references,r=e.levelDetails;n.forEach((function(t,e){var n=t.info,a=r.fragments[e];0===a.byteRange.length&&a.setByteRange(String(1+n.end-n.start)+"@"+String(n.start)),a.initSegment&&a.initSegment.setByteRange(String(i.moovEndOffset)+"@0")}))}},e.handleManifestParsingError=function(t,e,i,n){this.hls.trigger(r["Events"].ERROR,{type:a["ErrorTypes"].NETWORK_ERROR,details:a["ErrorDetails"].MANIFEST_PARSING_ERROR,fatal:e.type===u["PlaylistContextType"].MANIFEST,url:t.url,reason:i,response:t,context:e,networkDetails:n})},e.handleNetworkError=function(t,e,i,n){void 0===i&&(i=!1),o["logger"].warn("[playlist-loader]: A network "+(i?"timeout":"error")+" occurred while loading "+t.type+" level: "+t.level+" id: "+t.id+' group-id: "'+t.groupId+'"');var s=a["ErrorDetails"].UNKNOWN,l=!1,c=this.getInternalLoader(t);switch(t.type){case u["PlaylistContextType"].MANIFEST:s=i?a["ErrorDetails"].MANIFEST_LOAD_TIMEOUT:a["ErrorDetails"].MANIFEST_LOAD_ERROR,l=!0;break;case u["PlaylistContextType"].LEVEL:s=i?a["ErrorDetails"].LEVEL_LOAD_TIMEOUT:a["ErrorDetails"].LEVEL_LOAD_ERROR,l=!1;break;case u["PlaylistContextType"].AUDIO_TRACK:s=i?a["ErrorDetails"].AUDIO_TRACK_LOAD_TIMEOUT:a["ErrorDetails"].AUDIO_TRACK_LOAD_ERROR,l=!1;break;case u["PlaylistContextType"].SUBTITLE_TRACK:s=i?a["ErrorDetails"].SUBTITLE_TRACK_LOAD_TIMEOUT:a["ErrorDetails"].SUBTITLE_LOAD_ERROR,l=!1;break}c&&this.resetInternalLoader(t.type);var h={type:a["ErrorTypes"].NETWORK_ERROR,details:s,fatal:l,url:t.url,loader:c,context:t,networkDetails:e};n&&(h.response=n),this.hls.trigger(r["Events"].ERROR,h)},e.handlePlaylistLoaded=function(t,e,i,n){var a=i.type,o=i.level,s=i.id,l=i.groupId,c=i.loader,h=i.levelDetails,d=i.deliveryDirectives;if(null!==h&&void 0!==h&&h.targetduration){if(c)switch(h.live&&(c.getCacheAge&&(h.ageHeader=c.getCacheAge()||0),c.getCacheAge&&!isNaN(h.ageHeader)||(h.ageHeader=0)),a){case u["PlaylistContextType"].MANIFEST:case u["PlaylistContextType"].LEVEL:this.hls.trigger(r["Events"].LEVEL_LOADED,{details:h,level:o||0,id:s||0,stats:e,networkDetails:n,deliveryDirectives:d});break;case u["PlaylistContextType"].AUDIO_TRACK:this.hls.trigger(r["Events"].AUDIO_TRACK_LOADED,{details:h,id:s||0,groupId:l||"",stats:e,networkDetails:n,deliveryDirectives:d});break;case u["PlaylistContextType"].SUBTITLE_TRACK:this.hls.trigger(r["Events"].SUBTITLE_TRACK_LOADED,{details:h,id:s||0,groupId:l||"",stats:e,networkDetails:n,deliveryDirectives:d});break}}else this.handleManifestParsingError(t,i,"invalid target duration",n)},t}();e["default"]=f},"./src/polyfills/number.ts":
- /*!*********************************!*\
- !*** ./src/polyfills/number.ts ***!
- \*********************************/
- /*! exports provided: isFiniteNumber, MAX_SAFE_INTEGER */function(t,e,i){"use strict";i.r(e),i.d(e,"isFiniteNumber",(function(){return n})),i.d(e,"MAX_SAFE_INTEGER",(function(){return r}));var n=Number.isFinite||function(t){return"number"===typeof t&&isFinite(t)},r=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":
- /*!*********************************!*\
- !*** ./src/remux/aac-helper.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=function(){function t(){}return t.getSilentFrame=function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}},t}();e["default"]=n},"./src/remux/mp4-generator.ts":
- /*!************************************!*\
- !*** ./src/remux/mp4-generator.ts ***!
- \************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=Math.pow(2,32)-1,r=function(){function t(){}return t.init=function(){var e;for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var i=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:i,audio:n};var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=a,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,o,l,o,s),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,r))},t.box=function(t){for(var e=8,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];var a=n.length,o=a;while(a--)e+=n[a].byteLength;var s=new Uint8Array(e);for(s[0]=e>>24&255,s[1]=e>>16&255,s[2]=e>>8&255,s[3]=255&e,s.set(t,4),a=0,e=8;a<o;a++)s.set(n[a],e),e+=n[a].byteLength;return s},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,i){i*=e;var r=Math.floor(i/(n+1)),a=Math.floor(i%(n+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24,r>>16&255,r>>8&255,255&r,a>>24,a>>16&255,a>>8&255,255&a,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,i,n){return t.box(t.types.moof,t.mfhd(e),t.traf(n,i))},t.moov=function(e){var i=e.length,n=[];while(i--)n[i]=t.trak(e[i]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(t.mvex(e)))},t.mvex=function(e){var i=e.length,n=[];while(i--)n[i]=t.trex(e[i]);return t.box.apply(null,[t.types.mvex].concat(n))},t.mvhd=function(e,i){i*=e;var r=Math.floor(i/(n+1)),a=Math.floor(i%(n+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24,r>>16&255,r>>8&255,255&r,a>>24,a>>16&255,a>>8&255,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,o)},t.sdtp=function(e){var i,n,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t.box(t.types.sdtp,a)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var i,n,r,a=[],o=[];for(i=0;i<e.sps.length;i++)n=e.sps[i],r=n.byteLength,a.push(r>>>8&255),a.push(255&r),a=a.concat(Array.prototype.slice.call(n));for(i=0;i<e.pps.length;i++)n=e.pps[i],r=n.byteLength,o.push(r>>>8&255),o.push(255&r),o=o.concat(Array.prototype.slice.call(n));var s=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(o))),l=e.width,u=e.height,c=e.pixelRatio[0],h=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,h>>24,h>>16&255,h>>8&255,255&h])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var i=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,i>>8&255,255&i,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var i=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,i>>8&255,255&i,0,0]))},t.stsd=function(e){return"audio"===e.type?e.isAAC||"mp3"!==e.codec?t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var i=e.id,r=e.duration*e.timescale,a=e.width,o=e.height,s=Math.floor(r/(n+1)),l=Math.floor(r%(n+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,255&i,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,l>>24,l>>16&255,l>>8&255,255&l,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,255&a,0,0,o>>8&255,255&o,0,0]))},t.traf=function(e,i){var r=t.sdtp(e),a=e.id,o=Math.floor(i/(n+1)),s=Math.floor(i%(n+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,r.length+16+20+8+16+8+8),r)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var i=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,i){var n,r,a,o,s,l,u=e.samples||[],c=u.length,h=12+16*c,d=new Uint8Array(h);for(i+=8+h,d.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,i>>>24&255,i>>>16&255,i>>>8&255,255&i],0),n=0;n<c;n++)r=u[n],a=r.duration,o=r.size,s=r.flags,l=r.cts,d.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*n);return t.box(t.types.trun,d)},t.initSegment=function(e){t.types||t.init();var i=t.moov(e),n=new Uint8Array(t.FTYP.byteLength+i.byteLength);return n.set(t.FTYP),n.set(i,t.FTYP.byteLength),n},t}();r.types=void 0,r.HDLR_TYPES=void 0,r.STTS=void 0,r.STSC=void 0,r.STCO=void 0,r.STSZ=void 0,r.VMHD=void 0,r.SMHD=void 0,r.STSD=void 0,r.FTYP=void 0,r.DINF=void 0,e["default"]=r},"./src/remux/mp4-remuxer.ts":
- /*!**********************************!*\
- !*** ./src/remux/mp4-remuxer.ts ***!
- \**********************************/
- /*! exports provided: default, normalizePts */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return y})),i.d(e,"normalizePts",(function(){return x}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ./aac-helper */"./src/remux/aac-helper.ts"),a=i(/*! ./mp4-generator */"./src/remux/mp4-generator.ts"),o=i(/*! ../events */"./src/events.ts"),s=i(/*! ../errors */"./src/errors.ts"),l=i(/*! ../utils/logger */"./src/utils/logger.ts"),u=i(/*! ../types/loader */"./src/types/loader.ts"),c=i(/*! ../utils/timescale-conversion */"./src/utils/timescale-conversion.ts");function h(){return h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},h.apply(this,arguments)}var d=1e4,f=1024,p=1152,g=null,v=null,m=!1,y=function(){function t(t,e,i,n){if(void 0===n&&(n=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=t,this.config=e,this.typeSupported=i,this.ISGenerated=!1,null===g){var r=navigator.userAgent||"",a=r.match(/Chrome\/(\d+)/i);g=a?parseInt(a[1]):0}if(null===v){var o=navigator.userAgent.match(/Safari\/(\d+)/i);v=o?parseInt(o[1]):0}m=!!g&&g<75||!!v&&v<600}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){l["logger"].log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t},e.resetNextTimestamp=function(){l["logger"].log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},e.resetInitSegment=function(){l["logger"].log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},e.getVideoStartPts=function(t){var e=!1,i=t.reduce((function(t,i){var n=i.pts-t;return n<-4294967296?(e=!0,x(t,i.pts)):n>0?t:i.pts}),t[0].pts);return e&&l["logger"].debug("PTS rollover detected"),i},e.remux=function(t,e,i,n,r,a,o,s){var c,h,d,f,p,g,v=r,m=r,y=t.pid>-1,b=e.pid>-1,S=e.samples.length,T=t.samples.length>0,w=S>1,A=(!y||T)&&(!b||w)||this.ISGenerated||o;if(A){this.ISGenerated||(d=this.generateIS(t,e,r));var E=this.isVideoContiguous,I=-1;if(w&&(I=_(e.samples),!E&&this.config.forceKeyFrameOnDiscontinuity))if(g=!0,I>0){l["logger"].warn("[mp4-remuxer]: Dropped "+I+" out of "+S+" video samples due to a missing keyframe");var D=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(I),e.dropped+=I,m+=(e.samples[0].pts-D)/(e.timescale||9e4)}else-1===I&&(l["logger"].warn("[mp4-remuxer]: No keyframe found out of "+S+" video samples"),g=!1);if(this.ISGenerated){if(T&&w){var M=this.getVideoStartPts(e.samples),L=x(t.samples[0].pts,M)-M,C=L/e.inputTimeScale;v+=Math.max(0,C),m+=Math.max(0,-C)}if(T){if(t.samplerate||(l["logger"].warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),d=this.generateIS(t,e,r)),h=this.remuxAudio(t,v,this.isAudioContiguous,a,b||w||s===u["PlaylistLevelType"].AUDIO?m:void 0),w){var k=h?h.endPTS-h.startPTS:0;e.inputTimeScale||(l["logger"].warn("[mp4-remuxer]: regenerate InitSegment as video detected"),d=this.generateIS(t,e,r)),c=this.remuxVideo(e,m,E,k)}}else w&&(c=this.remuxVideo(e,m,E,0));c&&(c.firstKeyFrame=I,c.independent=-1!==I)}}return this.ISGenerated&&(i.samples.length&&(p=this.remuxID3(i,r)),n.samples.length&&(f=this.remuxText(n,r))),{audio:h,video:c,initSegment:d,independent:g,text:f,id3:p}},e.generateIS=function(t,e,i){var r,o,s,l=t.samples,u=e.samples,c=this.typeSupported,h={},d=!Object(n["isFiniteNumber"])(this._initPTS),f="audio/mp4";if(d&&(r=o=1/0),t.config&&l.length&&(t.timescale=t.samplerate,t.isAAC||(c.mpeg?(f="audio/mpeg",t.codec=""):c.mp3&&(t.codec="mp3")),h.audio={id:"audio",container:f,codec:t.codec,initSegment:!t.isAAC&&c.mpeg?new Uint8Array(0):a["default"].initSegment([t]),metadata:{channelCount:t.channelCount}},d&&(s=t.inputTimeScale,r=o=l[0].pts-Math.round(s*i))),e.sps&&e.pps&&u.length&&(e.timescale=e.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:a["default"].initSegment([e]),metadata:{width:e.width,height:e.height}},d)){s=e.inputTimeScale;var p=this.getVideoStartPts(u),g=Math.round(s*i);o=Math.min(o,x(u[0].dts,p)-g),r=Math.min(r,p-g)}if(Object.keys(h).length)return this.ISGenerated=!0,d&&(this._initPTS=r,this._initDTS=o),{tracks:h,initPTS:r,timescale:s}},e.remuxVideo=function(t,e,i,n){var r,u,d,f=t.inputTimeScale,p=t.samples,v=[],y=p.length,_=this._initPTS,S=this.nextAvcDts,T=8,w=Number.POSITIVE_INFINITY,A=Number.NEGATIVE_INFINITY,E=0,I=!1;if(!i||null===S){var D=e*f,M=p[0].pts-x(p[0].dts,p[0].pts);S=D-M}for(var L=0;L<y;L++){var C=p[L];if(C.pts=x(C.pts-_,S),C.dts=x(C.dts-_,S),C.dts>C.pts){var k=18e3;E=Math.max(Math.min(E,C.pts-C.dts),-1*k)}C.dts<p[L>0?L-1:L].dts&&(I=!0)}I&&p.sort((function(t,e){var i=t.dts-e.dts,n=t.pts-e.pts;return i||n})),u=p[0].dts,d=p[p.length-1].dts;var R=Math.round((d-u)/(y-1));if(E<0){if(E<-2*R){l["logger"].warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(c["toMsFromMpegTsClock"])(-R,!0)+" ms");for(var P=E,O=0;O<y;O++)p[O].dts=P=Math.max(P,p[O].pts-R),p[O].pts=Math.max(P,p[O].pts)}else{l["logger"].warn("PTS < DTS detected in video samples, shifting DTS by "+Object(c["toMsFromMpegTsClock"])(E,!0)+" ms to overcome this issue");for(var N=0;N<y;N++)p[N].dts=p[N].dts+E}u=p[0].dts}if(i){var F=u-S,B=F>R,z=F<-1;if(B||z){B?l["logger"].warn("AVC: "+Object(c["toMsFromMpegTsClock"])(F,!0)+" ms ("+F+"dts) hole between fragments detected, filling it"):l["logger"].warn("AVC: "+Object(c["toMsFromMpegTsClock"])(-F,!0)+" ms ("+F+"dts) overlapping between fragments detected"),u=S;var V=p[0].pts-F;p[0].dts=u,p[0].pts=V,l["logger"].log("Video: First PTS/DTS adjusted: "+Object(c["toMsFromMpegTsClock"])(V,!0)+"/"+Object(c["toMsFromMpegTsClock"])(u,!0)+", delta: "+Object(c["toMsFromMpegTsClock"])(F,!0)+" ms")}}m&&(u=Math.max(0,u));for(var G=0,U=0,H=0;H<y;H++){for(var W=p[H],j=W.units,K=j.length,Y=0,X=0;X<K;X++)Y+=j[X].data.length;U+=Y,G+=K,W.length=Y,W.dts=Math.max(W.dts,u),W.pts=Math.max(W.pts,W.dts,0),w=Math.min(W.pts,w),A=Math.max(W.pts,A)}d=p[y-1].dts;var q,Z=U+4*G+8;try{q=new Uint8Array(Z)}catch(vt){return void this.observer.emit(o["Events"].ERROR,o["Events"].ERROR,{type:s["ErrorTypes"].MUX_ERROR,details:s["ErrorDetails"].REMUX_ALLOC_ERROR,fatal:!1,bytes:Z,reason:"fail allocating video mdat "+Z})}var $=new DataView(q.buffer);$.setUint32(0,Z),q.set(a["default"].types.mdat,4);for(var Q=0;Q<y;Q++){for(var J=p[Q],tt=J.units,et=0,it=0,nt=tt.length;it<nt;it++){var rt=tt[it],at=rt.data,ot=rt.data.byteLength;$.setUint32(T,ot),T+=4,q.set(at,T),T+=ot,et+=4+ot}if(Q<y-1)r=p[Q+1].dts-J.dts;else{var st=this.config,lt=J.dts-p[Q>0?Q-1:Q].dts;if(st.stretchShortVideoTrack&&null!==this.nextAudioPts){var ut=Math.floor(st.maxBufferHole*f),ct=(n?w+n*f:this.nextAudioPts)-J.pts;ct>ut?(r=ct-lt,r<0&&(r=lt),l["logger"].log("[mp4-remuxer]: It is approximately "+ct/90+" ms to the next segment; using duration "+r/90+" ms for the last video frame.")):r=lt}else r=lt}var ht=Math.round(J.pts-J.dts);v.push(new b(J.key,r,et,ht))}if(v.length&&g&&g<70){var dt=v[0].flags;dt.dependsOn=2,dt.isNonSync=0}console.assert(void 0!==r,"mp4SampleDuration must be computed"),this.nextAvcDts=S=d+r,this.isVideoContiguous=!0;var ft=a["default"].moof(t.sequenceNumber++,u,h({},t,{samples:v})),pt="video",gt={data1:ft,data2:q,startPTS:w/f,endPTS:(A+r)/f,startDTS:u/f,endDTS:S/f,type:pt,hasAudio:!1,hasVideo:!0,nb:v.length,dropped:t.dropped};return t.samples=[],t.dropped=0,console.assert(q.length,"MDAT length must not be zero"),gt},e.remuxAudio=function(t,e,i,n,u){var c=t.inputTimeScale,g=t.samplerate?t.samplerate:c,v=c/g,m=t.isAAC?f:p,y=m*v,_=this._initPTS,S=!t.isAAC&&this.typeSupported.mpeg,T=[],w=t.samples,A=S?0:8,E=this.nextAudioPts||-1,I=e*c;if(this.isAudioContiguous=i=i||w.length&&E>0&&(n&&Math.abs(I-E)<9e3||Math.abs(x(w[0].pts-_,I)-E)<20*y),w.forEach((function(t){t.pts=x(t.pts-_,I)})),!i||E<0){if(w=w.filter((function(t){return t.pts>=0})),!w.length)return;E=0===u?0:n?Math.max(0,I):w[0].pts}if(t.isAAC)for(var D=void 0!==u,M=this.config.maxAudioFramesDrift,L=0,C=E;L<w.length;L++){var k=w[L],R=k.pts,P=R-C,O=Math.abs(1e3*P/c);if(P<=-M*y&&D)0===L&&(l["logger"].warn("Audio frame @ "+(R/c).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*P/c)+" ms."),this.nextAudioPts=E=C=R);else if(P>=M*y&&O<d&&D){var N=Math.round(P/y);C=R-N*y,C<0&&(N--,C+=y),0===L&&(this.nextAudioPts=E=C),l["logger"].warn("[mp4-remuxer]: Injecting "+N+" audio frame @ "+(C/c).toFixed(3)+"s due to "+Math.round(1e3*P/c)+" ms gap.");for(var F=0;F<N;F++){var B=Math.max(C,0),z=r["default"].getSilentFrame(t.manifestCodec||t.codec,t.channelCount);z||(l["logger"].log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),z=k.unit.subarray()),w.splice(L,0,{unit:z,pts:B}),C+=y,L++}}k.pts=C,C+=y}var V,G=null,U=null,H=0,W=w.length;while(W--)H+=w[W].unit.byteLength;for(var j=0,K=w.length;j<K;j++){var Y=w[j],X=Y.unit,q=Y.pts;if(null!==U){var Z=T[j-1];Z.duration=Math.round((q-U)/v)}else{if(i&&t.isAAC&&(q=E),G=q,!(H>0))return;H+=A;try{V=new Uint8Array(H)}catch(ot){return void this.observer.emit(o["Events"].ERROR,o["Events"].ERROR,{type:s["ErrorTypes"].MUX_ERROR,details:s["ErrorDetails"].REMUX_ALLOC_ERROR,fatal:!1,bytes:H,reason:"fail allocating audio mdat "+H})}if(!S){var $=new DataView(V.buffer);$.setUint32(0,H),V.set(a["default"].types.mdat,4)}}V.set(X,A);var Q=X.byteLength;A+=Q,T.push(new b(!0,m,Q,0)),U=q}var J=T.length;if(J){var tt=T[T.length-1];this.nextAudioPts=E=U+v*tt.duration;var et=S?new Uint8Array(0):a["default"].moof(t.sequenceNumber++,G/v,h({},t,{samples:T}));t.samples=[];var it=G/c,nt=E/c,rt="audio",at={data1:et,data2:V,startPTS:it,endPTS:nt,startDTS:it,endDTS:nt,type:rt,hasAudio:!0,hasVideo:!1,nb:J};return this.isAudioContiguous=!0,console.assert(V.length,"MDAT length must not be zero"),at}},e.remuxEmptyAudio=function(t,e,i,n){var a=t.inputTimeScale,o=t.samplerate?t.samplerate:a,s=a/o,u=this.nextAudioPts,c=(null!==u?u:n.startDTS*a)+this._initDTS,h=n.endDTS*a+this._initDTS,d=s*f,p=Math.ceil((h-c)/d),g=r["default"].getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(l["logger"].warn("[mp4-remuxer]: remux empty Audio"),g){for(var v=[],m=0;m<p;m++){var y=c+m*d;v.push({unit:g,pts:y,dts:y})}return t.samples=v,this.remuxAudio(t,e,i,!1)}l["logger"].trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},e.remuxID3=function(t,e){var i=t.samples.length;if(i){for(var n=t.inputTimeScale,r=this._initPTS,a=this._initDTS,o=0;o<i;o++){var s=t.samples[o];s.pts=x(s.pts-r,e*n)/n,s.dts=x(s.dts-a,e*n)/n}var l=t.samples;return t.samples=[],{samples:l}}},e.remuxText=function(t,e){var i=t.samples.length;if(i){for(var n=t.inputTimeScale,r=this._initPTS,a=0;a<i;a++){var o=t.samples[a];o.pts=x(o.pts-r,e*n)/n}t.samples.sort((function(t,e){return t.pts-e.pts}));var s=t.samples;return t.samples=[],{samples:s}}},t}();function x(t,e){var i;if(null===e)return t;i=e<t?-8589934592:8589934592;while(Math.abs(t-e)>4294967296)t+=i;return t}function _(t){for(var e=0;e<t.length;e++)if(t[e].key)return e;return-1}var b=function(t,e,i,n){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=i,this.cts=n,this.flags=new S(t)},S=function(t){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=t?2:1,this.isNonSync=t?0:1}},"./src/remux/passthrough-remuxer.ts":
- /*!******************************************!*\
- !*** ./src/remux/passthrough-remuxer.ts ***!
- \******************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../utils/mp4-tools */"./src/utils/mp4-tools.ts"),a=i(/*! ../loader/fragment */"./src/loader/fragment.ts"),o=i(/*! ../utils/logger */"./src/utils/logger.ts"),s=function(){function t(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(t,e,i){this.audioCodec=e,this.videoCodec=i,this.generateInitSegment(t),this.emitInitSegment=!0},e.generateInitSegment=function(t){var e=this.audioCodec,i=this.videoCodec;if(!t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var n=this.initData=Object(r["parseInitSegment"])(t);e||(e=u(n.audio,a["ElementaryStreamTypes"].AUDIO)),i||(i=u(n.video,a["ElementaryStreamTypes"].VIDEO));var s={};n.audio&&n.video?s.audiovideo={container:"video/mp4",codec:e+","+i,initSegment:t,id:"main"}:n.audio?s.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:n.video?s.video={container:"video/mp4",codec:i,initSegment:t,id:"main"}:o["logger"].warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s},e.remux=function(t,e,i,a,s){var u=this.initPTS,c=this.lastEndDTS,h={audio:void 0,video:void 0,text:a,id3:i,initSegment:void 0};Object(n["isFiniteNumber"])(c)||(c=this.lastEndDTS=s||0);var d=e.samples;if(!d||!d.length)return h;var f={initPTS:void 0,timescale:1},p=this.initData;if(p&&p.length||(this.generateInitSegment(d),p=this.initData),!p||!p.length)return o["logger"].warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(f.tracks=this.initTracks,this.emitInitSegment=!1),Object(n["isFiniteNumber"])(u)||(this.initPTS=f.initPTS=u=l(p,d,c));var g=Object(r["getDuration"])(d,p),v=c,m=g+v;Object(r["offsetStartDTS"])(p,d,u),g>0?this.lastEndDTS=m:(o["logger"].warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var y=!!p.audio,x=!!p.video,_="";y&&(_+="audio"),x&&(_+="video");var b={data1:d,startPTS:v,startDTS:v,endPTS:m,endDTS:m,type:_,hasAudio:y,hasVideo:x,nb:1,dropped:0};return h.audio="audio"===b.type?b:void 0,h.video="audio"!==b.type?b:void 0,h.text=a,h.id3=i,h.initSegment=f,h},t}(),l=function(t,e,i){return Object(r["getStartDTS"])(t,e)-i};function u(t,e){var i=null===t||void 0===t?void 0:t.codec;return i&&i.length>4?i:"hvc1"===i?"hvc1.1.c.L120.90":"av01"===i?"av01.0.04M.08":"avc1"===i||e===a["ElementaryStreamTypes"].VIDEO?"avc1.42e01e":"mp4a.40.5"}e["default"]=s},"./src/task-loop.ts":
- /*!**************************!*\
- !*** ./src/task-loop.ts ***!
- \**************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));var n=function(){function t(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.onHandlerDestroyed=function(){},e.hasInterval=function(){return!!this._tickInterval},e.hasNextTick=function(){return!!this._tickTimer},e.setInterval=function(t){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,t),!0)},e.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},e.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},e.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},e.doTick=function(){},t}()},"./src/types/cmcd.ts":
- /*!***************************!*\
- !*** ./src/types/cmcd.ts ***!
- \***************************/
- /*! exports provided: CMCDVersion, CMCDObjectType, CMCDStreamingFormat, CMCDStreamType */function(t,e,i){"use strict";i.r(e),i.d(e,"CMCDVersion",(function(){return o})),i.d(e,"CMCDObjectType",(function(){return n})),i.d(e,"CMCDStreamingFormat",(function(){return r})),i.d(e,"CMCDStreamType",(function(){return a}));var n,r,a,o=1;(function(t){t["MANIFEST"]="m",t["AUDIO"]="a",t["VIDEO"]="v",t["MUXED"]="av",t["INIT"]="i",t["CAPTION"]="c",t["TIMED_TEXT"]="tt",t["KEY"]="k",t["OTHER"]="o"})(n||(n={})),function(t){t["DASH"]="d",t["HLS"]="h",t["SMOOTH"]="s",t["OTHER"]="o"}(r||(r={})),function(t){t["VOD"]="v",t["LIVE"]="l"}(a||(a={}))},"./src/types/level.ts":
- /*!****************************!*\
- !*** ./src/types/level.ts ***!
- \****************************/
- /*! exports provided: HlsSkip, getSkipValue, HlsUrlParameters, Level */function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}var a;function o(t,e){var i=t.canSkipUntil,n=t.canSkipDateRanges,r=t.endSN,o=void 0!==e?e-r:0;return i&&o<i?n?a.v2:a.Yes:a.No}i.r(e),i.d(e,"HlsSkip",(function(){return a})),i.d(e,"getSkipValue",(function(){return o})),i.d(e,"HlsUrlParameters",(function(){return s})),i.d(e,"Level",(function(){return l})),function(t){t["No"]="",t["Yes"]="YES",t["v2"]="v2"}(a||(a={}));var s=function(){function t(t,e,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=e,this.skip=i}var e=t.prototype;return e.addDirectives=function(t){var e=new self.URL(t);return void 0!==this.msn&&e.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.toString()},t}(),l=function(){function t(t){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[t.url],this.attrs=t.attrs,this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.unknownCodecs=t.unknownCodecs,this.codecSet=[t.videoCodec,t.audioCodec].filter((function(t){return t})).join(",").replace(/\.[^.,]+/g,"")}return r(t,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(t){var e=t%this.url.length;this._urlId!==e&&(this.details=void 0,this._urlId=e)}}]),t}()},"./src/types/loader.ts":
- /*!*****************************!*\
- !*** ./src/types/loader.ts ***!
- \*****************************/
- /*! exports provided: PlaylistContextType, PlaylistLevelType */function(t,e,i){"use strict";var n,r;i.r(e),i.d(e,"PlaylistContextType",(function(){return n})),i.d(e,"PlaylistLevelType",(function(){return r})),function(t){t["MANIFEST"]="manifest",t["LEVEL"]="level",t["AUDIO_TRACK"]="audioTrack",t["SUBTITLE_TRACK"]="subtitleTrack"}(n||(n={})),function(t){t["MAIN"]="main",t["AUDIO"]="audio",t["SUBTITLE"]="subtitle"}(r||(r={}))},"./src/types/transmuxer.ts":
- /*!*********************************!*\
- !*** ./src/types/transmuxer.ts ***!
- \*********************************/
- /*! exports provided: ChunkMetadata */function(t,e,i){"use strict";i.r(e),i.d(e,"ChunkMetadata",(function(){return n}));var n=function(t,e,i,n,a,o){void 0===n&&(n=0),void 0===a&&(a=-1),void 0===o&&(o=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=r(),this.buffering={audio:r(),video:r(),audiovideo:r()},this.level=t,this.sn=e,this.id=i,this.size=n,this.part=a,this.partial=o};function r(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":
- /*!********************************!*\
- !*** ./src/utils/attr-list.ts ***!
- \********************************/
- /*! exports provided: AttrList */function(t,e,i){"use strict";i.r(e),i.d(e,"AttrList",(function(){return a}));var n=/^(\d+)x(\d+)$/,r=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,a=function(){function t(e){for(var i in"string"===typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(i)&&(this[i]=e[i])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var i=new Uint8Array(e.length/2),n=0;n<e.length/2;n++)i[n]=parseInt(e.slice(2*n,2*n+2),16);return i}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.optionalFloat=function(t,e){var i=this[t];return i?parseFloat(i):e},e.enumeratedString=function(t){return this[t]},e.bool=function(t){return"YES"===this[t]},e.decimalResolution=function(t){var e=n.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,i={},n='"';r.lastIndex=0;while(null!==(e=r.exec(t))){var a=e[2];0===a.indexOf(n)&&a.lastIndexOf(n)===a.length-1&&(a=a.slice(1,-1)),i[e[1]]=a}return i},t}()},"./src/utils/binary-search.ts":
- /*!************************************!*\
- !*** ./src/utils/binary-search.ts ***!
- \************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n={search:function(t,e){var i=0,n=t.length-1,r=null,a=null;while(i<=n){r=(i+n)/2|0,a=t[r];var o=e(a);if(o>0)i=r+1;else{if(!(o<0))return a;n=r-1}}return null}};e["default"]=n},"./src/utils/buffer-helper.ts":
- /*!************************************!*\
- !*** ./src/utils/buffer-helper.ts ***!
- \************************************/
- /*! exports provided: BufferHelper */function(t,e,i){"use strict";i.r(e),i.d(e,"BufferHelper",(function(){return a}));var n=i(/*! ./logger */"./src/utils/logger.ts"),r={length:0,start:function(){return 0},end:function(){return 0}},a=function(){function t(){}return t.isBuffered=function(e,i){try{if(e)for(var n=t.getBuffered(e),r=0;r<n.length;r++)if(i>=n.start(r)&&i<=n.end(r))return!0}catch(a){}return!1},t.bufferInfo=function(e,i,n){try{if(e){var r,a=t.getBuffered(e),o=[];for(r=0;r<a.length;r++)o.push({start:a.start(r),end:a.end(r)});return this.bufferedInfo(o,i,n)}}catch(s){}return{len:0,start:i,end:i,nextStart:void 0}},t.bufferedInfo=function(t,e,i){e=Math.max(0,e),t.sort((function(t,e){var i=t.start-e.start;return i||e.end-t.end}));var n=[];if(i)for(var r=0;r<t.length;r++){var a=n.length;if(a){var o=n[a-1].end;t[r].start-o<i?t[r].end>o&&(n[a-1].end=t[r].end):n.push(t[r])}else n.push(t[r])}else n=t;for(var s,l=0,u=e,c=e,h=0;h<n.length;h++){var d=n[h].start,f=n[h].end;if(e+i>=d&&e<f)u=d,c=f,l=c-e;else if(e+i<d){s=d;break}}return{len:l,start:u||0,end:c||0,nextStart:s}},t.getBuffered=function(t){try{return t.buffered}catch(e){return n["logger"].log("failed to get media.buffered",e),r}},t}()},"./src/utils/cea-608-parser.ts":
- /*!*************************************!*\
- !*** ./src/utils/cea-608-parser.ts ***!
- \*************************************/
- /*! exports provided: Row, CaptionScreen, default */function(t,e,i){"use strict";i.r(e),i.d(e,"Row",(function(){return y})),i.d(e,"CaptionScreen",(function(){return x}));var n,r=i(/*! ../utils/logger */"./src/utils/logger.ts"),a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},o=function(t){var e=t;return a.hasOwnProperty(t)&&(e=a[t]),String.fromCharCode(e)},s=15,l=100,u={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},c={17:2,18:4,21:6,22:8,23:10,19:13,20:15},h={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},d={25:2,26:4,29:6,30:8,31:10,27:13,28:15},f=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];(function(t){t[t["ERROR"]=0]="ERROR",t[t["TEXT"]=1]="TEXT",t[t["WARNING"]=2]="WARNING",t[t["INFO"]=2]="INFO",t[t["DEBUG"]=3]="DEBUG",t[t["DATA"]=3]="DATA"})(n||(n={}));var p=function(){function t(){this.time=null,this.verboseLevel=n.ERROR}var e=t.prototype;return e.log=function(t,e){this.verboseLevel>=t&&r["logger"].log(this.time+" ["+t+"] "+e)},t}(),g=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].toString(16));return e},v=function(){function t(t,e,i,n,r){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=i||!1,this.background=n||"black",this.flash=r||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],i=0;i<e.length;i++){var n=e[i];t.hasOwnProperty(n)&&(this[n]=t[n])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),m=function(){function t(t,e,i,n,r,a){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new v(e,i,n,r,a)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),y=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var e=0;e<l;e++)this.chars.push(new m);this.logger=t,this.pos=0,this.currPenState=new v}var e=t.prototype;return e.equals=function(t){for(var e=!0,i=0;i<l;i++)if(!this.chars[i].equals(t.chars[i])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<l;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<l;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(n.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>l&&(this.logger.log(n.DEBUG,"Too large cursor position "+this.pos),this.pos=l)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var i=this.pos+1;i<e+1;i++)this.chars[i].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){t>=144&&this.backSpace();var e=o(t);this.pos>=l?this.logger.log(n.ERROR,"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e<l;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,i=0;i<l;i++){var n=this.chars[i].uchar;" "!==n&&(e=!1),t.push(n)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t);var e=this.chars[this.pos];e.setPenState(this.currPenState)},t}(),x=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var e=0;e<s;e++)this.rows.push(new y(t));this.logger=t,this.currRow=s-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var t=0;t<s;t++)this.rows[t].clear();this.currRow=s-1},e.equals=function(t){for(var e=!0,i=0;i<s;i++)if(!this.rows[i].equals(t.rows[i])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<s;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<s;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){var t=this.rows[this.currRow];t.backSpace()},e.clearToEndOfRow=function(){var t=this.rows[this.currRow];t.clearToEndOfRow()},e.insertChar=function(t){var e=this.rows[this.currRow];e.insertChar(t)},e.setPen=function(t){var e=this.rows[this.currRow];e.setPenStyles(t)},e.moveCursor=function(t){var e=this.rows[this.currRow];e.moveCursor(t)},e.setCursor=function(t){this.logger.log(n.INFO,"setCursor: "+t);var e=this.rows[this.currRow];e.setCursor(t)},e.setPAC=function(t){this.logger.log(n.INFO,"pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var i=0;i<s;i++)this.rows[i].clear();var r=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){var o=a.rows[r].cueStartTime,l=this.logger.time;if(o&&null!==l&&o<l)for(var u=0;u<this.nrRollUpRows;u++)this.rows[e-this.nrRollUpRows+u+1].copy(a.rows[r+u])}}this.currRow=e;var c=this.rows[this.currRow];if(null!==t.indent){var h=t.indent,d=Math.max(h-1,0);c.setCursor(t.indent),t.color=c.chars[d].penState.foreground}var f={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(f)},e.setBkgData=function(t){this.logger.log(n.INFO,"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){if(null!==this.nrRollUpRows){this.logger.log(n.TEXT,this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(n.INFO,"Rolling up")}else this.logger.log(n.DEBUG,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],i="",n=-1,r=0;r<s;r++){var a=this.rows[r].getTextString();a&&(n=r+1,t?e.push("Row "+n+": '"+a+"'"):e.push(a.trim()))}return e.length>0&&(i=t?"["+e.join(" | ")+"]":e.join("\n")),i},e.getTextAndFormat=function(){return this.rows},t}(),_=function(){function t(t,e,i){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new x(i),this.nonDisplayedMemory=new x(i),this.lastOutputScreen=new x(i),this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=i}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(n.INFO,"MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var i=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(n.INFO,i+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(n.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(n.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(n.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(n.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(n.INFO,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(n.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(n.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(n.INFO,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(n.INFO,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(n.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(n.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(n.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){if(this.logger.log(n.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(n.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(n.INFO,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2===1,e.italics=t>=46,e.italics)e.foreground="white";else{var i=Math.floor(t/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];e.foreground=r[i]}this.logger.log(n.INFO,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),b=function(){function t(t,e,i){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new p;this.channels=[null,new _(t,e,n),new _(t+1,i,n)],this.cmdHistory=w(),this.logger=n}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var i,r,a,o=!1;this.logger.time=t;for(var s=0;s<e.length;s+=2)if(r=127&e[s],a=127&e[s+1],0!==r||0!==a){if(this.logger.log(n.DATA,"["+g([e[s],e[s+1]])+"] -> ("+g([r,a])+")"),i=this.parseCmd(r,a),i||(i=this.parseMidrow(r,a)),i||(i=this.parsePAC(r,a)),i||(i=this.parseBackgroundAttributes(r,a)),!i&&(o=this.parseChars(r,a),o)){var l=this.currentChannel;if(l&&l>0){var u=this.channels[l];u.insertChars(o)}else this.logger.log(n.WARNING,"No channel found yet. TEXT-MODE?")}i||o||this.logger.log(n.WARNING,"Couldn't parse cleaned data "+g([r,a])+" orig: "+g([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var i=this.cmdHistory,r=(20===t||28===t||21===t||29===t)&&e>=32&&e<=47,a=(23===t||31===t)&&e>=33&&e<=35;if(!r&&!a)return!1;if(T(t,e,i))return S(null,null,i),this.logger.log(n.DEBUG,"Repeated command ("+g([t,e])+") is dropped"),!0;var o=20===t||21===t||23===t?1:2,s=this.channels[o];return 20===t||21===t||28===t||29===t?32===e?s.ccRCL():33===e?s.ccBS():34===e?s.ccAOF():35===e?s.ccAON():36===e?s.ccDER():37===e?s.ccRU(2):38===e?s.ccRU(3):39===e?s.ccRU(4):40===e?s.ccFON():41===e?s.ccRDC():42===e?s.ccTR():43===e?s.ccRTD():44===e?s.ccEDM():45===e?s.ccCR():46===e?s.ccENM():47===e&&s.ccEOC():s.ccTO(e-32),S(t,e,i),this.currentChannel=o,!0},e.parseMidrow=function(t,e){var i=0;if((17===t||25===t)&&e>=32&&e<=47){if(i=17===t?1:2,i!==this.currentChannel)return this.logger.log(n.ERROR,"Mismatch channel in midrow parsing"),!1;var r=this.channels[i];return!!r&&(r.ccMIDROW(e),this.logger.log(n.DEBUG,"MIDROW ("+g([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var i,n=this.cmdHistory,r=(t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127,a=(16===t||24===t)&&e>=64&&e<=95;if(!r&&!a)return!1;if(T(t,e,n))return S(null,null,n),!0;var o=t<=23?1:2;i=e>=64&&e<=95?1===o?u[t]:h[t]:1===o?c[t]:d[t];var s=this.channels[o];return!!s&&(s.setPAC(this.interpretPAC(i,e)),S(t,e,n),this.currentChannel=o,!0)},e.interpretPAC=function(t,e){var i,n={color:null,italics:!1,indent:null,underline:!1,row:t};return i=e>95?e-96:e-64,n.underline=1===(1&i),i<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(i/2)]:i<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((i-16)/2),n},e.parseChars=function(t,e){var i,r,a=null,s=null;(t>=25?(i=2,s=t-8):(i=1,s=t),s>=17&&s<=19)?(r=17===s?e+80:18===s?e+112:e+144,this.logger.log(n.INFO,"Special char '"+o(r)+"' in channel "+i),a=[r]):t>=32&&t<=127&&(a=0===e?[t]:[t,e]);if(a){var l=g(a);this.logger.log(n.DEBUG,"Char codes = "+l.join(",")),S(t,e,this.cmdHistory)}return a},e.parseBackgroundAttributes=function(t,e){var i,n=(16===t||24===t)&&e>=32&&e<=47,r=(23===t||31===t)&&e>=45&&e<=47;if(!n&&!r)return!1;var a={};16===t||24===t?(i=Math.floor((e-32)/2),a.background=f[i],e%2===1&&(a.background=a.background+"_semi")):45===e?a.background="transparent":(a.foreground="black",47===e&&(a.underline=!0));var o=t<=23?1:2,s=this.channels[o];return s.setBkgData(a),S(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory=w()},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var i=this.channels[e];i&&i.cueSplitAtTime(t)}},t}();function S(t,e,i){i.a=t,i.b=e}function T(t,e,i){return i.a===t&&i.b===e}function w(){return{a:null,b:null}}e["default"]=b},"./src/utils/codecs.ts":
- /*!*****************************!*\
- !*** ./src/utils/codecs.ts ***!
- \*****************************/
- /*! exports provided: isCodecType, isCodecSupportedInMp4 */function(t,e,i){"use strict";i.r(e),i.d(e,"isCodecType",(function(){return r})),i.d(e,"isCodecSupportedInMp4",(function(){return a}));var n={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function r(t,e){var i=n[e];return!!i&&!0===i[t.slice(0,4)]}function a(t,e){return MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}},"./src/utils/cues.ts":
- /*!***************************!*\
- !*** ./src/utils/cues.ts ***!
- \***************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ./vttparser */"./src/utils/vttparser.ts"),r=i(/*! ./webvtt-parser */"./src/utils/webvtt-parser.ts"),a=i(/*! ./texttrack-utils */"./src/utils/texttrack-utils.ts"),o=/\s/,s={newCue:function(t,e,i,s){for(var l,u,c,h,d,f=[],p=self.VTTCue||self.TextTrackCue,g=0;g<s.rows.length;g++)if(l=s.rows[g],c=!0,h=0,d="",!l.isEmpty()){for(var v=0;v<l.chars.length;v++)o.test(l.chars[v].uchar)&&c?h++:(d+=l.chars[v].uchar,c=!1);l.cueStartTime=e,e===i&&(i+=1e-4),h>=16?h--:h++;var m=Object(n["fixLineBreaks"])(d.trim()),y=Object(r["generateCueId"])(e,i,m);t&&t.cues&&t.cues.getCueById(y)||(u=new p(e,i,m),u.id=y,u.line=g+1,u.align="left",u.position=10+Math.min(80,10*Math.floor(8*h/32)),f.push(u))}return t&&f.length&&(f.sort((function(t,e){return"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line})),f.forEach((function(e){return Object(a["addCueToTrack"])(t,e)}))),f}};e["default"]=s},"./src/utils/discontinuities.ts":
- /*!**************************************!*\
- !*** ./src/utils/discontinuities.ts ***!
- \**************************************/
- /*! exports provided: findFirstFragWithCC, shouldAlignOnDiscontinuities, findDiscontinuousReferenceFrag, adjustSlidingStart, alignStream, alignPDT, alignFragmentByPDTDelta, alignMediaPlaylistByPDT */function(t,e,i){"use strict";i.r(e),i.d(e,"findFirstFragWithCC",(function(){return o})),i.d(e,"shouldAlignOnDiscontinuities",(function(){return s})),i.d(e,"findDiscontinuousReferenceFrag",(function(){return l})),i.d(e,"adjustSlidingStart",(function(){return c})),i.d(e,"alignStream",(function(){return h})),i.d(e,"alignPDT",(function(){return f})),i.d(e,"alignFragmentByPDTDelta",(function(){return p})),i.d(e,"alignMediaPlaylistByPDT",(function(){return g}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ./logger */"./src/utils/logger.ts"),a=i(/*! ../controller/level-helper */"./src/controller/level-helper.ts");function o(t,e){for(var i=null,n=0,r=t.length;n<r;n++){var a=t[n];if(a&&a.cc===e){i=a;break}}return i}function s(t,e,i){return!(!e.details||!(i.endCC>i.startCC||t&&t.cc<i.startCC))}function l(t,e){var i=t.fragments,n=e.fragments;if(n.length&&i.length){var a=o(i,n[0].cc);if(a&&(!a||a.startPTS))return a;r["logger"].log("No frag in previous level to align on")}else r["logger"].log("No fragments to align")}function u(t,e){if(t){var i=t.start+e;t.start=t.startPTS=i,t.endPTS=i+t.duration}}function c(t,e){for(var i=e.fragments,n=0,r=i.length;n<r;n++)u(i[n],t);e.fragmentHint&&u(e.fragmentHint,t),e.alignedSliding=!0}function h(t,e,i){e&&(d(t,i,e),!i.alignedSliding&&e.details&&f(i,e.details),i.alignedSliding||!e.details||i.skippedSegments||Object(a["adjustSliding"])(e.details,i))}function d(t,e,i){if(s(t,i,e)){var a=l(i.details,e);a&&Object(n["isFiniteNumber"])(a.start)&&(r["logger"].log("Adjusting PTS using last level due to CC increase within current level "+e.url),c(a.start,e))}}function f(t,e){if(e.fragments.length&&t.hasProgramDateTime&&e.hasProgramDateTime){var i=e.fragments[0].programDateTime,a=t.fragments[0].programDateTime,o=(a-i)/1e3+e.fragments[0].start;o&&Object(n["isFiniteNumber"])(o)&&(r["logger"].log("Adjusting PTS using programDateTime delta "+(a-i)+"ms, sliding:"+o.toFixed(3)+" "+t.url+" "),c(o,t))}}function p(t,e){var i=t.programDateTime;if(i){var n=(i-e)/1e3;t.start=t.startPTS=n,t.endPTS=n+t.duration}}function g(t,e){if(e.fragments.length&&t.hasProgramDateTime&&e.hasProgramDateTime){var i=e.fragments[0].programDateTime,n=e.fragments[0].start,r=i-1e3*n;t.fragments.forEach((function(t){p(t,r)})),t.fragmentHint&&p(t.fragmentHint,r),t.alignedSliding=!0}}},"./src/utils/ewma-bandwidth-estimator.ts":
- /*!***********************************************!*\
- !*** ./src/utils/ewma-bandwidth-estimator.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../utils/ewma */"./src/utils/ewma.ts"),r=function(){function t(t,e,i){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new n["default"](t),this.fast_=new n["default"](e)}var e=t.prototype;return e.update=function(t,e){var i=this.slow_,r=this.fast_;this.slow_.halfLife!==t&&(this.slow_=new n["default"](t,i.getEstimate(),i.getTotalWeight())),this.fast_.halfLife!==e&&(this.fast_=new n["default"](e,r.getEstimate(),r.getTotalWeight()))},e.sample=function(t,e){t=Math.max(t,this.minDelayMs_);var i=8*e,n=t/1e3,r=i/n;this.fast_.sample(n,r),this.slow_.sample(n,r)},e.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.destroy=function(){},t}();e["default"]=r},"./src/utils/ewma.ts":
- /*!***************************!*\
- !*** ./src/utils/ewma.ts ***!
- \***************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=function(){function t(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=i}var e=t.prototype;return e.sample=function(t,e){var i=Math.pow(this.alpha_,t);this.estimate_=e*(1-i)+i*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_},t}();e["default"]=n},"./src/utils/fetch-loader.ts":
- /*!***********************************!*\
- !*** ./src/utils/fetch-loader.ts ***!
- \***********************************/
- /*! exports provided: fetchSupported, default */function(t,e,i){"use strict";i.r(e),i.d(e,"fetchSupported",(function(){return p}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ../loader/load-stats */"./src/loader/load-stats.ts"),a=i(/*! ../demux/chunk-cache */"./src/demux/chunk-cache.ts");function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,h(t,e)}function s(t){var e="function"===typeof Map?new Map:void 0;return s=function(t){if(null===t||!c(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return l(t,arguments,d(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),h(i,t)},s(t)}function l(t,e,i){return l=u()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=Function.bind.apply(t,n),a=new r;return i&&h(a,i.prototype),a},l.apply(null,arguments)}function u(){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(t){return!1}}function c(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(){return f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},f.apply(this,arguments)}function p(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}var g=function(){function t(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||m,this.controller=new self.AbortController,this.stats=new r["LoadStats"]}var e=t.prototype;return e.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},e.abortInternal=function(){var t=this.response;t&&t.ok||(this.stats.aborted=!0,this.controller.abort())},e.abort=function(){var t;this.abortInternal(),null!==(t=this.callbacks)&&void 0!==t&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},e.load=function(t,e,i){var r=this,a=this.stats;if(a.loading.start)throw new Error("Loader can only be used once.");a.loading.start=self.performance.now();var o=v(t,this.controller.signal),s=i.onProgress,l="arraybuffer"===t.responseType,u=l?"byteLength":"length";this.context=t,this.config=e,this.callbacks=i,this.request=this.fetchSetup(t,o),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout((function(){r.abortInternal(),i.onTimeout(a,t,r.response)}),e.timeout),self.fetch(this.request).then((function(i){if(r.response=r.loader=i,!i.ok){var o=i.status,u=i.statusText;throw new y(u||"fetch, bad network response",o,i)}return a.loading.first=Math.max(self.performance.now(),a.loading.start),a.total=parseInt(i.headers.get("Content-Length")||"0"),s&&Object(n["isFiniteNumber"])(e.highWaterMark)?r.loadProgressively(i,a,t,e.highWaterMark,s):l?i.arrayBuffer():i.text()})).then((function(o){var l=r.response;self.clearTimeout(r.requestTimeout),a.loading.end=Math.max(self.performance.now(),a.loading.first),a.loaded=a.total=o[u];var c={url:l.url,data:o};s&&!Object(n["isFiniteNumber"])(e.highWaterMark)&&s(a,t,o,l),i.onSuccess(c,a,t,l)})).catch((function(e){if(self.clearTimeout(r.requestTimeout),!a.aborted){var n=e.code||0;i.onError({code:n,text:e.message},t,e.details)}}))},e.getCacheAge=function(){var t=null;if(this.response){var e=this.response.headers.get("age");t=e?parseFloat(e):null}return t},e.loadProgressively=function(t,e,i,n,r){void 0===n&&(n=0);var o=new a["default"],s=t.body.getReader(),l=function a(){return s.read().then((function(s){if(s.done)return o.dataLength&&r(e,i,o.flush(),t),Promise.resolve(new ArrayBuffer(0));var l=s.value,u=l.length;return e.loaded+=u,u<n||o.dataLength?(o.push(l),o.dataLength>=n&&r(e,i,o.flush(),t)):r(e,i,l,t),a()})).catch((function(){return Promise.reject()}))};return l()},t}();function v(t,e){var i={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(f({},t.headers))};return t.rangeEnd&&i.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),i}function m(t,e){return new self.Request(t.url,e)}var y=function(t){function e(e,i,n){var r;return r=t.call(this,e)||this,r.code=void 0,r.details=void 0,r.code=i,r.details=n,r}return o(e,t),e}(s(Error));e["default"]=g},"./src/utils/imsc1-ttml-parser.ts":
- /*!****************************************!*\
- !*** ./src/utils/imsc1-ttml-parser.ts ***!
- \****************************************/
- /*! exports provided: IMSC1_CODEC, parseIMSC1 */function(t,e,i){"use strict";i.r(e),i.d(e,"IMSC1_CODEC",(function(){return c})),i.d(e,"parseIMSC1",(function(){return p}));var n=i(/*! ./mp4-tools */"./src/utils/mp4-tools.ts"),r=i(/*! ./vttparser */"./src/utils/vttparser.ts"),a=i(/*! ./vttcue */"./src/utils/vttcue.ts"),o=i(/*! ../demux/id3 */"./src/demux/id3.ts"),s=i(/*! ./timescale-conversion */"./src/utils/timescale-conversion.ts"),l=i(/*! ./webvtt-parser */"./src/utils/webvtt-parser.ts");function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},u.apply(this,arguments)}var c="stpp.ttml.im1t",h=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,d=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,f={left:"start",center:"center",right:"end",start:"start",end:"end"};function p(t,e,i,r,a){var l=Object(n["findBox"])(new Uint8Array(t),["mdat"]);if(0!==l.length){var u=l[0],c=Object(o["utf8ArrayToStr"])(new Uint8Array(t,u.start,u.end-u.start)),h=Object(s["toTimescaleFromScale"])(e,1,i);try{r(g(c,h))}catch(d){a(d)}}else a(new Error("Could not parse IMSC1 mdat"))}function g(t,e){var i=new DOMParser,n=i.parseFromString(t,"text/xml"),r=n.getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var o={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(o).reduce((function(t,e){return t[e]=r.getAttribute("ttp:"+e)||o[e],t}),{}),c="preserve"!==r.getAttribute("xml:space"),h=m(v(r,"styling","style")),d=m(v(r,"layout","region")),p=v(r,"body","[begin]");return[].map.call(p,(function(t){var i=y(t,c);if(!i||!t.hasAttribute("begin"))return null;var n=S(t.getAttribute("begin"),s),r=S(t.getAttribute("dur"),s),o=S(t.getAttribute("end"),s);if(null===n)throw b(t);if(null===o){if(null===r)throw b(t);o=n+r}var p=new a["default"](n-e,o-e,i);p.id=Object(l["generateCueId"])(p.startTime,p.endTime,p.text);var g=d[t.getAttribute("region")],v=h[t.getAttribute("style")];p.position=10,p.size=80;var m=x(g,v),_=m.textAlign;if(_){var T=f[_];T&&(p.lineAlign=T),p.align=_}return u(p,m),p})).filter((function(t){return null!==t}))}function v(t,e,i){var n=t.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(i)):[]}function m(t){return t.reduce((function(t,e){var i=e.getAttribute("xml:id");return i&&(t[i]=e),t}),{})}function y(t,e){return[].slice.call(t.childNodes).reduce((function(t,i,n){var r;return"br"===i.nodeName&&n?t+"\n":null!==(r=i.childNodes)&&void 0!==r&&r.length?y(i,e):e?t+i.textContent.trim().replace(/\s+/g," "):t+i.textContent}),"")}function x(t,e){var i="http://www.w3.org/ns/ttml#styling",n=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return n.reduce((function(n,r){var a=_(e,i,r)||_(t,i,r);return a&&(n[r]=a),n}),{})}function _(t,e,i){return t.hasAttributeNS(e,i)?t.getAttributeNS(e,i):null}function b(t){return new Error("Could not parse ttml timestamp "+t)}function S(t,e){if(!t)return null;var i=Object(r["parseTimeStamp"])(t);return null===i&&(h.test(t)?i=T(t,e):d.test(t)&&(i=w(t,e))),i}function T(t,e){var i=h.exec(t),n=(0|i[4])+(0|i[5])/e.subFrameRate;return 3600*(0|i[1])+60*(0|i[2])+(0|i[3])+n/e.frameRate}function w(t,e){var i=d.exec(t),n=Number(i[1]),r=i[2];switch(r){case"h":return 3600*n;case"m":return 60*n;case"ms":return 1e3*n;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}},"./src/utils/logger.ts":
- /*!*****************************!*\
- !*** ./src/utils/logger.ts ***!
- \*****************************/
- /*! exports provided: enableLogs, logger */function(t,e,i){"use strict";i.r(e),i.d(e,"enableLogs",(function(){return l})),i.d(e,"logger",(function(){return u}));var n=function(){},r={trace:n,debug:n,log:n,warn:n,info:n,error:n},a=r;function o(t){var e=self.console[t];return e?e.bind(self.console,"["+t+"] >"):n}function s(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];i.forEach((function(e){a[e]=t[e]?t[e].bind(t):o(e)}))}function l(t){if(self.console&&!0===t||"object"===typeof t){s(t,"debug","log","info","warn","error");try{a.log()}catch(e){a=r}}else a=r}var u=a},"./src/utils/mediakeys-helper.ts":
- /*!***************************************!*\
- !*** ./src/utils/mediakeys-helper.ts ***!
- \***************************************/
- /*! exports provided: KeySystems, requestMediaKeySystemAccess */function(t,e,i){"use strict";var n;i.r(e),i.d(e,"KeySystems",(function(){return n})),i.d(e,"requestMediaKeySystemAccess",(function(){return r})),function(t){t["WIDEVINE"]="com.widevine.alpha",t["PLAYREADY"]="com.microsoft.playready"}(n||(n={}));var r=function(){return"undefined"!==typeof self&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":
- /*!*****************************************!*\
- !*** ./src/utils/mediasource-helper.ts ***!
- \*****************************************/
- /*! exports provided: getMediaSource */function(t,e,i){"use strict";function n(){return self.MediaSource||self.WebKitMediaSource}i.r(e),i.d(e,"getMediaSource",(function(){return n}))},"./src/utils/mp4-tools.ts":
- /*!********************************!*\
- !*** ./src/utils/mp4-tools.ts ***!
- \********************************/
- /*! exports provided: bin2str, readUint16, readUint32, writeUint32, findBox, parseSegmentIndex, parseInitSegment, getStartDTS, getDuration, computeRawDurationFromSamples, offsetStartDTS, segmentValidRange, appendUint8Array */function(t,e,i){"use strict";i.r(e),i.d(e,"bin2str",(function(){return s})),i.d(e,"readUint16",(function(){return l})),i.d(e,"readUint32",(function(){return u})),i.d(e,"writeUint32",(function(){return c})),i.d(e,"findBox",(function(){return h})),i.d(e,"parseSegmentIndex",(function(){return d})),i.d(e,"parseInitSegment",(function(){return f})),i.d(e,"getStartDTS",(function(){return p})),i.d(e,"getDuration",(function(){return g})),i.d(e,"computeRawDurationFromSamples",(function(){return v})),i.d(e,"offsetStartDTS",(function(){return m})),i.d(e,"segmentValidRange",(function(){return y})),i.d(e,"appendUint8Array",(function(){return x}));var n=i(/*! ./typed-array */"./src/utils/typed-array.ts"),r=i(/*! ../loader/fragment */"./src/loader/fragment.ts"),a=Math.pow(2,32)-1,o=[].push;function s(t){return String.fromCharCode.apply(null,t)}function l(t,e){"data"in t&&(e+=t.start,t=t.data);var i=t[e]<<8|t[e+1];return i<0?65536+i:i}function u(t,e){"data"in t&&(e+=t.start,t=t.data);var i=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return i<0?4294967296+i:i}function c(t,e,i){"data"in t&&(e+=t.start,t=t.data),t[e]=i>>24,t[e+1]=i>>16&255,t[e+2]=i>>8&255,t[e+3]=255&i}function h(t,e){var i,n,r,a=[];if(!e.length)return a;"data"in t?(i=t.data,n=t.start,r=t.end):(i=t,n=0,r=i.byteLength);for(var l=n;l<r;){var c=u(i,l),d=s(i.subarray(l+4,l+8)),f=c>1?l+c:r;if(d===e[0])if(1===e.length)a.push({data:i,start:l+8,end:f});else{var p=h({data:i,start:l+8,end:f},e.slice(1));p.length&&o.apply(a,p)}l=f}return a}function d(t){var e=h(t,["moov"]),i=e[0],n=i?i.end:null,r=h(t,["sidx"]);if(!r||!r[0])return null;var a=[],o=r[0],s=o.data[0],c=0===s?8:16,d=u(o,c);c+=4;var f=0,p=0;c+=0===s?8:16,c+=2;var g=o.end+p,v=l(o,c);c+=2;for(var m=0;m<v;m++){var y=c,x=u(o,y);y+=4;var _=2147483647&x,b=(2147483648&x)>>>31;if(1===b)return console.warn("SIDX has hierarchical references (not supported)"),null;var S=u(o,y);y+=4,a.push({referenceSize:_,subsegmentDuration:S,info:{duration:S/d,start:g,end:g+_-1}}),g+=_,y+=4,c=y}return{earliestPresentationTime:f,timescale:d,version:s,referencesCount:v,references:a,moovEndOffset:n}}function f(t){for(var e=[],i=h(t,["moov","trak"]),n=0;n<i.length;n++){var a=i[n],o=h(a,["tkhd"])[0];if(o){var l=o.data[o.start],c=0===l?12:20,d=u(o,c),f=h(a,["mdia","mdhd"])[0];if(f){l=f.data[f.start],c=0===l?12:20;var p=u(f,c),g=h(a,["mdia","hdlr"])[0];if(g){var v=s(g.data.subarray(g.start+8,g.start+12)),m={soun:r["ElementaryStreamTypes"].AUDIO,vide:r["ElementaryStreamTypes"].VIDEO}[v];if(m){var y=h(a,["mdia","minf","stbl","stsd"])[0],x=void 0;y&&(x=s(y.data.subarray(y.start+12,y.start+16))),e[d]={timescale:p,type:m},e[m]={timescale:p,id:d,codec:x}}}}}}var _=h(t,["moov","mvex","trex"]);return _.forEach((function(t){var i=u(t,4),n=e[i];n&&(n.default={duration:u(t,12),flags:u(t,20)})})),e}function p(t,e){return h(e,["moof","traf"]).reduce((function(e,i){var n=h(i,["tfdt"])[0],r=n.data[n.start],a=h(i,["tfhd"]).reduce((function(e,i){var a=u(i,4),o=t[a];if(o){var s=u(n,4);1===r&&(s*=Math.pow(2,32),s+=u(n,8));var l=o.timescale||9e4,c=s/l;if(isFinite(c)&&(null===e||c<e))return c}return e}),null);return null!==a&&isFinite(a)&&(null===e||a<e)?a:e}),null)||0}function g(t,e){for(var i=0,n=0,a=0,o=h(t,["moof","traf"]),s=0;s<o.length;s++){var l=o[s],c=h(l,["tfhd"])[0],f=u(c,4),p=e[f];if(p){var g=p.default,m=u(c,0)|(null===g||void 0===g?void 0:g.flags),y=null===g||void 0===g?void 0:g.duration;8&m&&(y=u(c,2&m?12:8));for(var x=p.timescale||9e4,_=h(l,["trun"]),b=0;b<_.length;b++){if(i=v(_[b]),!i&&y){var S=u(_[b],4);i=y*S}p.type===r["ElementaryStreamTypes"].VIDEO?n+=i/x:p.type===r["ElementaryStreamTypes"].AUDIO&&(a+=i/x)}}}if(0===n&&0===a){var T=d(t);if(null!==T&&void 0!==T&&T.references)return T.references.reduce((function(t,e){return t+e.info.duration||0}),0)}return n||a}function v(t){var e=u(t,0),i=8;1&e&&(i+=4),4&e&&(i+=4);for(var n=0,r=u(t,4),a=0;a<r;a++){if(256&e){var o=u(t,i);n+=o,i+=4}512&e&&(i+=4),1024&e&&(i+=4),2048&e&&(i+=4)}return n}function m(t,e,i){h(e,["moof","traf"]).forEach((function(e){h(e,["tfhd"]).forEach((function(n){var r=u(n,4),o=t[r];if(o){var s=o.timescale||9e4;h(e,["tfdt"]).forEach((function(t){var e=t.data[t.start],n=u(t,4);if(0===e)c(t,4,n-i*s);else{n*=Math.pow(2,32),n+=u(t,8),n-=i*s,n=Math.max(n,0);var r=Math.floor(n/(a+1)),o=Math.floor(n%(a+1));c(t,4,r),c(t,8,o)}}))}}))}))}function y(t){var e={valid:null,remainder:null},i=h(t,["moof"]);if(!i)return e;if(i.length<2)return e.remainder=t,e;var r=i[i.length-1];return e.valid=Object(n["sliceUint8"])(t,0,r.start-8),e.remainder=Object(n["sliceUint8"])(t,r.start-8),e}function x(t,e){var i=new Uint8Array(t.length+e.length);return i.set(t),i.set(e,t.length),i}},"./src/utils/output-filter.ts":
- /*!************************************!*\
- !*** ./src/utils/output-filter.ts ***!
- \************************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));var n=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,i){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[],this.startTime=null},t}()},"./src/utils/texttrack-utils.ts":
- /*!**************************************!*\
- !*** ./src/utils/texttrack-utils.ts ***!
- \**************************************/
- /*! exports provided: sendAddTrackEvent, addCueToTrack, clearCurrentCues, removeCuesInRange, getCuesInRange */function(t,e,i){"use strict";i.r(e),i.d(e,"sendAddTrackEvent",(function(){return r})),i.d(e,"addCueToTrack",(function(){return a})),i.d(e,"clearCurrentCues",(function(){return o})),i.d(e,"removeCuesInRange",(function(){return s})),i.d(e,"getCuesInRange",(function(){return u}));var n=i(/*! ./logger */"./src/utils/logger.ts");function r(t,e){var i;try{i=new Event("addtrack")}catch(n){i=document.createEvent("Event"),i.initEvent("addtrack",!1,!1)}i.track=t,e.dispatchEvent(i)}function a(t,e){var i=t.mode;if("disabled"===i&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(a){n["logger"].debug("[texttrack-utils]: "+a);var r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,t.addCue(r)}"disabled"===i&&(t.mode=i)}function o(t){var e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(var i=t.cues.length;i--;)t.removeCue(t.cues[i]);"disabled"===e&&(t.mode=e)}function s(t,e,i){var n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&t.cues.length>0)for(var r=u(t.cues,e,i),a=0;a<r.length;a++)t.removeCue(r[a]);"disabled"===n&&(t.mode=n)}function l(t,e){if(e<t[0].startTime)return 0;var i=t.length-1;if(e>t[i].endTime)return-1;var n=0,r=i;while(n<=r){var a=Math.floor((r+n)/2);if(e<t[a].startTime)r=a-1;else{if(!(e>t[a].startTime&&n<i))return a;n=a+1}}return t[n].startTime-e<e-t[r].startTime?n:r}function u(t,e,i){var n=[],r=l(t,e);if(r>-1)for(var a=r,o=t.length;a<o;a++){var s=t[a];if(s.startTime>=e&&s.endTime<=i)n.push(s);else if(s.startTime>i)return n}return n}},"./src/utils/time-ranges.ts":
- /*!**********************************!*\
- !*** ./src/utils/time-ranges.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n={toString:function(t){for(var e="",i=t.length,n=0;n<i;n++)e+="["+t.start(n).toFixed(3)+","+t.end(n).toFixed(3)+"]";return e}};e["default"]=n},"./src/utils/timescale-conversion.ts":
- /*!*******************************************!*\
- !*** ./src/utils/timescale-conversion.ts ***!
- \*******************************************/
- /*! exports provided: toTimescaleFromBase, toTimescaleFromScale, toMsFromMpegTsClock, toMpegTsClockFromTimescale */function(t,e,i){"use strict";i.r(e),i.d(e,"toTimescaleFromBase",(function(){return r})),i.d(e,"toTimescaleFromScale",(function(){return a})),i.d(e,"toMsFromMpegTsClock",(function(){return o})),i.d(e,"toMpegTsClockFromTimescale",(function(){return s}));var n=9e4;function r(t,e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);var r=t*e*i;return n?Math.round(r):r}function a(t,e,i,n){return void 0===i&&(i=1),void 0===n&&(n=!1),r(t,e,1/i,n)}function o(t,e){return void 0===e&&(e=!1),r(t,1e3,1/n,e)}function s(t,e){return void 0===e&&(e=1),r(t,n,1/e)}},"./src/utils/typed-array.ts":
- /*!**********************************!*\
- !*** ./src/utils/typed-array.ts ***!
- \**********************************/
- /*! exports provided: sliceUint8 */function(t,e,i){"use strict";function n(t,e,i){return Uint8Array.prototype.slice?t.slice(e,i):new Uint8Array(Array.prototype.slice.call(t,e,i))}i.r(e),i.d(e,"sliceUint8",(function(){return n}))},"./src/utils/vttcue.ts":
- /*!*****************************!*\
- !*** ./src/utils/vttcue.ts ***!
- \*****************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e),e["default"]=function(){if("undefined"!==typeof self&&self.VTTCue)return self.VTTCue;var t=["","lr","rl"],e=["start","middle","end","left","right"];function i(t,e){if("string"!==typeof e)return!1;if(!Array.isArray(t))return!1;var i=e.toLowerCase();return!!~t.indexOf(i)&&i}function n(e){return i(t,e)}function r(t){return i(e,t)}function a(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var o in a)t[o]=a[o]}return t}function o(t,e,i){var o=this,s={enumerable:!0};o.hasBeenReset=!1;var l="",u=!1,c=t,h=e,d=i,f=null,p="",g=!0,v="auto",m="start",y=50,x="middle",_=50,b="middle";Object.defineProperty(o,"id",a({},s,{get:function(){return l},set:function(t){l=""+t}})),Object.defineProperty(o,"pauseOnExit",a({},s,{get:function(){return u},set:function(t){u=!!t}})),Object.defineProperty(o,"startTime",a({},s,{get:function(){return c},set:function(t){if("number"!==typeof t)throw new TypeError("Start time must be set to a number.");c=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",a({},s,{get:function(){return h},set:function(t){if("number"!==typeof t)throw new TypeError("End time must be set to a number.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",a({},s,{get:function(){return d},set:function(t){d=""+t,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",a({},s,{get:function(){return f},set:function(t){f=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",a({},s,{get:function(){return p},set:function(t){var e=n(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",a({},s,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",a({},s,{get:function(){return v},set:function(t){if("number"!==typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",a({},s,{get:function(){return m},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",a({},s,{get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",a({},s,{get:function(){return x},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",a({},s,{get:function(){return _},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",a({},s,{get:function(){return b},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),o.displayState=void 0}return o.prototype.getCueAsHTML=function(){var t=self.WebVTT;return t.convertCueToDOMTree(self,this.text)},o}()},"./src/utils/vttparser.ts":
- /*!********************************!*\
- !*** ./src/utils/vttparser.ts ***!
- \********************************/
- /*! exports provided: parseTimeStamp, fixLineBreaks, VTTParser */function(t,e,i){"use strict";i.r(e),i.d(e,"parseTimeStamp",(function(){return a})),i.d(e,"fixLineBreaks",(function(){return h})),i.d(e,"VTTParser",(function(){return d}));var n=i(/*! ./vttcue */"./src/utils/vttcue.ts"),r=function(){function t(){}var e=t.prototype;return e.decode=function(t,e){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))},t}();function a(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+parseFloat(n||0)}var i=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return i?parseFloat(i[2])>59?e(i[2],i[3],0,i[4]):e(i[1],i[2],i[3],i[4]):null}var o=function(){function t(){this.values=Object.create(null)}var e=t.prototype;return e.set=function(t,e){this.get(t)||""===e||(this.values[t]=e)},e.get=function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},e.has=function(t){return t in this.values},e.alt=function(t,e,i){for(var n=0;n<i.length;++n)if(e===i[n]){this.set(t,e);break}},e.integer=function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},e.percent=function(t,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){var i=parseFloat(e);if(i>=0&&i<=100)return this.set(t,i),!0}return!1},t}();function s(t,e,i,n){var r=n?t.split(n):[t];for(var a in r)if("string"===typeof r[a]){var o=r[a].split(i);if(2===o.length){var s=o[0],l=o[1];e(s,l)}}}var l=new n["default"](0,0,""),u="middle"===l.align?"middle":"center";function c(t,e,i){var n=t;function r(){var e=a(t);if(null===e)throw new Error("Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(t,e){var n=new o;s(t,(function(t,e){var r;switch(t){case"region":for(var a=i.length-1;a>=0;a--)if(i[a].id===e){n.set(t,i[a].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":r=e.split(","),n.integer(t,r[0]),n.percent(t,r[0])&&n.set("snapToLines",!1),n.alt(t,r[0],["auto"]),2===r.length&&n.alt("lineAlign",r[1],["start",u,"end"]);break;case"position":r=e.split(","),n.percent(t,r[0]),2===r.length&&n.alt("positionAlign",r[1],["start",u,"end","line-left","line-right","auto"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start",u,"end","left","right"]);break}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");var r=n.get("line","auto");"auto"===r&&-1===l.line&&(r=-1),e.line=r,e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align",u);var a=n.get("position","auto");"auto"===a&&50===l.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}function h(){t=t.replace(/^\s+/,"")}if(h(),e.startTime=r(),h(),"--\x3e"!==t.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),h(),e.endTime=r(),h(),c(t,e)}function h(t){return t.replace(/<br(?: \/)?>/gi,"\n")}var d=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new r,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var e=t.prototype;return e.parse=function(t){var e=this;function i(){var t=e.buffer,i=0;t=h(t);while(i<t.length&&"\r"!==t[i]&&"\n"!==t[i])++i;var n=t.substr(0,i);return"\r"===t[i]&&++i,"\n"===t[i]&&++i,e.buffer=t.substr(i),n}function r(t){s(t,(function(t,e){}),/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var a="";if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;a=i();var o=a.match(/^()?WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}var l=!1;while(e.buffer){if(!/\r\n|\n/.test(e.buffer))return this;switch(l?l=!1:a=i(),e.state){case"HEADER":/:/.test(a)?r(a):a||(e.state="ID");continue;case"NOTE":a||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){e.state="NOTE";break}if(!a)continue;if(e.cue=new n["default"](0,0,""),e.state="CUE",-1===a.indexOf("--\x3e")){e.cue.id=a;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{c(a,e.cue,e.regionList)}catch(d){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var u=-1!==a.indexOf("--\x3e");if(!a||u&&(l=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(null===e.cue)continue;e.cue.text&&(e.cue.text+="\n"),e.cue.text+=a;continue;case"BADCUE":a||(e.state="ID")}}}catch(d){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},e.flush=function(){var t=this;try{if((t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state||"BADWEBVTT"===t.state)throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e)}return t.onflush&&t.onflush(),this},t}()},"./src/utils/webvtt-parser.ts":
- /*!************************************!*\
- !*** ./src/utils/webvtt-parser.ts ***!
- \************************************/
- /*! exports provided: generateCueId, parseWebVTT */function(t,e,i){"use strict";i.r(e),i.d(e,"generateCueId",(function(){return d})),i.d(e,"parseWebVTT",(function(){return p}));var n=i(/*! ./src/polyfills/number */"./src/polyfills/number.ts"),r=i(/*! ./vttparser */"./src/utils/vttparser.ts"),a=i(/*! ../demux/id3 */"./src/demux/id3.ts"),o=i(/*! ./timescale-conversion */"./src/utils/timescale-conversion.ts"),s=i(/*! ../remux/mp4-remuxer */"./src/remux/mp4-remuxer.ts"),l=/\r\n|\n\r|\n|\r/g,u=function(t,e,i){return void 0===i&&(i=0),t.substr(i,e.length)===e},c=function(t){var e=parseInt(t.substr(-3)),i=parseInt(t.substr(-6,2)),r=parseInt(t.substr(-9,2)),a=t.length>9?parseInt(t.substr(0,t.indexOf(":"))):0;if(!Object(n["isFiniteNumber"])(e)||!Object(n["isFiniteNumber"])(i)||!Object(n["isFiniteNumber"])(r)||!Object(n["isFiniteNumber"])(a))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*i,e+=6e4*r,e+=36e5*a,e},h=function(t){var e=5381,i=t.length;while(i)e=33*e^t.charCodeAt(--i);return(e>>>0).toString()};function d(t,e,i){return h(t.toString())+h(e.toString())+h(i)}var f=function(t,e,i){var n=t[e],r=t[n.prevCC];if(!r||!r.new&&n.new)return t.ccOffset=t.presentationOffset=n.start,void(n.new=!1);while(null!==(a=r)&&void 0!==a&&a.new){var a;t.ccOffset+=n.start-r.start,n.new=!1,n=r,r=t[n.prevCC]}t.presentationOffset=i};function p(t,e,i,n,h,p,g,v){var m,y=new r["VTTParser"],x=Object(a["utf8ArrayToStr"])(new Uint8Array(t)).trim().replace(l,"\n").split("\n"),_=[],b=Object(o["toMpegTsClockFromTimescale"])(e,i),S="00:00.000",T=0,w=0,A=!0,E=!1;y.oncue=function(t){var e=n[h],i=n.ccOffset,r=(T-b)/9e4;if(null!==e&&void 0!==e&&e.new&&(void 0!==w?i=n.ccOffset=e.start:f(n,h,r)),r&&(i=r-n.presentationOffset),E){var a=t.endTime-t.startTime,o=Object(s["normalizePts"])(9e4*(t.startTime+i-w),9e4*p)/9e4;t.startTime=o,t.endTime=o+a}var l=t.text.trim();t.text=decodeURIComponent(encodeURIComponent(l)),t.id||(t.id=d(t.startTime,t.endTime,l)),t.endTime>0&&_.push(t)},y.onparsingerror=function(t){m=t},y.onflush=function(){m?v(m):g(_)},x.forEach((function(t){if(A){if(u(t,"X-TIMESTAMP-MAP=")){A=!1,E=!0,t.substr(16).split(",").forEach((function(t){u(t,"LOCAL:")?S=t.substr(6):u(t,"MPEGTS:")&&(T=parseInt(t.substr(7)))}));try{w=c(S)/1e3}catch(e){E=!1,m=e}return}""===t&&(A=!1)}y.parse(t+"\n")})),y.flush()}},"./src/utils/xhr-loader.ts":
- /*!*********************************!*\
- !*** ./src/utils/xhr-loader.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,i){"use strict";i.r(e);var n=i(/*! ../utils/logger */"./src/utils/logger.ts"),r=i(/*! ../loader/load-stats */"./src/loader/load-stats.ts"),a=/^age:\s*[\d.]+\s*$/m,o=function(){function t(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=t?t.xhrSetup:null,this.stats=new r["LoadStats"],this.retryDelay=0}var e=t.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))},e.abort=function(){var t;this.abortInternal(),null!==(t=this.callbacks)&&void 0!==t&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(t,e,i){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=i,this.retryDelay=e.retryDelay,this.loadInternal()},e.loadInternal=function(){var t=this.config,e=this.context;if(t){var i=this.loader=new self.XMLHttpRequest,n=this.stats;n.loading.first=0,n.loaded=0;var r=this.xhrSetup;try{if(r)try{r(i,e.url)}catch(s){i.open("GET",e.url,!0),r(i,e.url)}i.readyState||i.open("GET",e.url,!0);var a=this.context.headers;if(a)for(var o in a)i.setRequestHeader(o,a[o])}catch(s){return void this.callbacks.onError({code:i.status,text:s.message},e,i)}e.rangeEnd&&i.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),i.onreadystatechange=this.readystatechange.bind(this),i.onprogress=this.loadprogress.bind(this),i.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),t.timeout),i.send()}},e.readystatechange=function(){var t=this.context,e=this.loader,i=this.stats;if(t&&e){var r=e.readyState,a=this.config;if(!i.aborted&&r>=2)if(self.clearTimeout(this.requestTimeout),0===i.loading.first&&(i.loading.first=Math.max(self.performance.now(),i.loading.start)),4===r){e.onreadystatechange=null,e.onprogress=null;var o=e.status;if(o>=200&&o<300){var s,l;if(i.loading.end=Math.max(self.performance.now(),i.loading.first),"arraybuffer"===t.responseType?(s=e.response,l=s.byteLength):(s=e.responseText,l=s.length),i.loaded=i.total=l,!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(i,t,s,e),!this.callbacks)return;var c={url:e.responseURL,data:s};this.callbacks.onSuccess(c,i,t,e)}else i.retry>=a.maxRetry||o>=400&&o<499?(n["logger"].error(o+" while loading "+t.url),this.callbacks.onError({code:o,text:e.statusText},t,e)):(n["logger"].warn(o+" while loading "+t.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),i.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)}},e.loadtimeout=function(){n["logger"].warn("timeout while loading "+this.context.url);var t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(t){var e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)},e.getCacheAge=function(){var t=null;if(this.loader&&a.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t},t}();e["default"]=o}})["default"]}))},bb70:function(t,e,i){var n=i("e86a"),r=i("3842"),a=r.parsePercent,o=Math.PI/180;function s(t,e,i,n,r,a,o,s,l,u){function c(e,i,n,r){for(var a=e;a<i;a++){if(t[a].y+n>l+o)break;if(t[a].y+=n,a>e&&a+1<i&&t[a+1].y>t[a].y+t[a].height)return void h(a,n/2)}h(i-1,n/2)}function h(e,i){for(var n=e;n>=0;n--){if(t[n].y-i<l)break;if(t[n].y-=i,n>0&&t[n].y>t[n-1].y+t[n-1].height)break}}function d(t,e,i,n,r,a){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("none"===t[s].labelAlignTo){var u=Math.abs(t[s].y-n),c=t[s].len,h=t[s].len2,d=u<r+c?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-i);e&&d>=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var f,p=0,g=t.length,v=[],m=[],y=0;y<g;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var x=t[y].x-u;t[y].linePoints[1][0]+=x,t[y].x=u}f=t[y].y-p,f<0&&c(y,g,-f,r),p=t[y].y+t[y].height}o-p<0&&h(g-1,p-o);for(y=0;y<g;y++)t[y].y>=i?m.push(t[y]):v.push(t[y]);d(v,!1,e,i,n,r),d(m,!0,e,i,n,r)}function l(t,e,i,r,a,o,l,c){for(var h=[],d=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<t.length;g++)u(t[g])||(t[g].x<e?(f=Math.min(f,t[g].x),h.push(t[g])):(p=Math.max(p,t[g].x),d.push(t[g])));s(d,e,i,r,1,a,o,l,c,p),s(h,e,i,r,-1,a,o,l,c,f);for(g=0;g<t.length;g++){var v=t[g];if(!u(v)){var m=v.linePoints;if(m){var y,x="edge"===v.labelAlignTo,_=v.textRect.width;y=x?v.x<e?m[2][0]-v.labelDistance-l-v.labelMargin:l+a-v.labelMargin-m[2][0]-v.labelDistance:v.x<e?v.x-l-v.bleedMargin:l+a-v.x-v.bleedMargin,y<v.textRect.width&&(v.text=n.truncateText(v.text,y,v.font),"edge"===v.labelAlignTo&&(_=n.getWidth(v.text,v.font)));var b=m[1][0]-m[2][0];x?v.x<e?m[2][0]=l+v.labelMargin+_+v.labelDistance:m[2][0]=l+a-v.labelMargin-_-v.labelDistance:(v.x<e?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 u(t){return"center"===t.position}function c(t,e,i,r,s,u){var c,h,d=t.getData(),f=[],p=!1,g=(t.get("minShowLabelAngle")||0)*o;d.each((function(r){var o=d.getItemLayout(r),l=d.getItemModel(r),u=l.getModel("label"),v=u.get("position")||l.get("emphasis.label.position"),m=u.get("distanceToLabelLine"),y=u.get("alignTo"),x=a(u.get("margin"),i),_=u.get("bleedMargin"),b=u.getFont(),S=l.getModel("labelLine"),T=S.get("length");T=a(T,i);var w=S.get("length2");if(w=a(w,i),!(o.angle<g)){var A,E,I,D,M=(o.startAngle+o.endAngle)/2,L=Math.cos(M),C=Math.sin(M);c=o.cx,h=o.cy;var k,R=t.getFormattedLabel(r,"normal")||d.getName(r),P=n.getBoundingRect(R,b,D,"top"),O="inside"===v||"inner"===v;if("center"===v)A=o.cx,E=o.cy,D="center";else{var N=(O?(o.r+o.r0)/2*L:o.r*L)+c,F=(O?(o.r+o.r0)/2*C:o.r*C)+h;if(A=N+3*L,E=F+3*C,!O){var B=N+L*(T+e-o.r),z=F+C*(T+e-o.r),V=B+(L<0?-1:1)*w,G=z;A="edge"===y?L<0?s+x:s+i-x:V+(L<0?-m:m),E=G,I=[[N,F],[B,z],[V,G]]}D=O?"center":"edge"===y?L>0?"right":"left":L>0?"left":"right"}var U=u.get("rotate");k="number"===typeof U?U*(Math.PI/180):U?L<0?-M+Math.PI:-M:0,p=!!k,o.label={x:A,y:E,position:v,height:P.height,len:T,len2:w,linePoints:I,textAlign:D,verticalAlign:"middle",rotation:k,inside:O,labelDistance:m,labelAlignTo:y,labelMargin:x,bleedMargin:_,textRect:P,text:R,font:b},O||f.push(o.label)}})),!p&&t.get("avoidLabelOverlap")&&l(f,c,h,e,i,r,s,u)}t.exports=c},bc5f:function(t,e,i){var n=i("6cb7");n.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},bcaa:function(t,e,i){var n=i("4ab1"),r=i("6d8b");function a(t,e){n.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function o(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}r.inherits(a,n),a.prototype.addWithoutUpdate=function(t,e){if(e&&o(e.style)){var i;if(e._shadowDom){i=e._shadowDom;var n=this.getDefs(!0);n.contains(e._shadowDom)||this.addDom(i)}else i=this.add(e);this.markUsed(e);var r=i.getAttribute("id");t.style.filter="url(#"+r+")"}},a.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},a.prototype.update=function(t,e){var i=e.style;if(o(i)){var r=this;n.prototype.update.call(this,e,(function(){r.updateDom(e,e._shadowDom)}))}else this.remove(t,e)},a.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},a.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,r,a,o,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,r=s.shadowOffsetY||0,a=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,a=s.textShadowBlur,o=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",r/u),i.setAttribute("flood-color",o);var c=a/2/l,h=a/2/u,d=c+" "+h;i.setAttribute("stdDeviation",d),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(a/2*200)+"%"),e.setAttribute("height",Math.ceil(a/2*200)+"%"),e.appendChild(i),t._shadowDom=e},a.prototype.markUsed=function(t){t._shadowDom&&n.prototype.markUsed.call(this,t._shadowDom)};var s=a;t.exports=s},bcbe:function(t,e,i){var n=i("6d8b"),r=i("fab2"),a=i("2306"),o=i("edb9"),s=i("6679"),l=i("58df"),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine"],f=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,s){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new a.Group;var c=o.layout(t),p=new r(t,c);n.each(h,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),n.each(d,(function(e){t.get(e+".show")&&this["_"+e](t)}),this),a.groupTransition(u,this._axisGroup,t),f.superCall(this,"render",t,e,i,s)},remove:function(){c(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),r=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var s=t.coordinateSystem.getRect(),l=e.isHorizontal(),u=[],c=0,h=e.getTicksCoords({tickModel:i}),d=[],f=[],p=0;p<h.length;++p){var g=e.toGlobalCoord(h[p].coord);l?(d[0]=g,d[1]=s.y,f[0]=g,f[1]=s.y+s.height):(d[0]=s.x,d[1]=g,f[0]=s.x+s.width,f[1]=g);var v=c++%o.length;u[v]=u[v]||[],u[v].push(new a.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<u.length;++p)this.group.add(a.mergePath(u[p],{style:{stroke:o[p%o.length],lineDash:n.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(t){u(this,this._axisGroup,t,t)}}),p=f;t.exports=p},bd6b:function(t,e,i){var n=i("06ad"),r=i("4942"),a=i("6d8b"),o=a.isString,s=a.isFunction,l=a.isObject,u=a.isArrayLike,c=a.indexOf,h=function(){this.animators=[]};function d(t,e,i,n,r,a,l,u){o(n)?(a=r,r=n,n=0):s(r)?(a=r,r="linear",n=0):s(n)?(a=n,n=0):s(i)?(a=i,i=500):i||(i=500),t.stopAnimation(),f(t,"",t,e,i,n,u);var c=t.animators.slice(),h=c.length;function d(){h--,h||a&&a()}h||a&&a();for(var p=0;p<c.length;p++)c[p].done(d).start(r,l)}function f(t,e,i,n,r,a,o){var s={},c=0;for(var h in n)n.hasOwnProperty(h)&&(null!=i[h]?l(n[h])&&!u(n[h])?f(t,e?e+"."+h:h,i[h],n[h],r,a,o):(o?(s[h]=i[h],p(t,e,h,n[h])):s[h]=n[h],c++):null==n[h]||o||p(t,e,h,n[h]));c>0&&t.animate(e,!1).when(null==r?500:r,s).delay(a||0)}function p(t,e,i,n){if(e){var r={};r[e]={},r[e][i]=n,t.attr(r)}else t.attr(i,n)}h.prototype={constructor:h,animate:function(t,e){var i,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),u=o;a="shape"===l[0];for(var h=0,d=l.length;h<d;h++)u&&(u=u[l[h]]);u&&(i=u)}else i=o;if(i){var f=o.animators,p=new n(i,e);return p.during((function(t){o.dirty(a)})).done((function(){f.splice(c(f,p),1)})),f.push(p),s&&s.animation.addAnimator(p),p}r('Property "'+t+'" is not existed in element '+o.id)},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;n<i;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,r,a){d(this,t,e,i,n,r,a)},animateFrom:function(t,e,i,n,r,a){d(this,t,e,i,n,r,a,!0)}};var g=h;t.exports=g},bd92:function(t,e,i){var n=i("6d8b"),r=i("4f85"),a=i("e468"),o=a.seriesModelMixin,s=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(t,e,i){var n=e.getItemLayout(t);return n&&i.rect(n.brushRect)}});n.mixin(s,o,!0);var l=s;t.exports=l},bd9e:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("2306"),o=i("e0d3"),s=i("f4a2"),l=r.each,u=r.indexOf,c=r.curry,h=["dataToPoint","pointToData"],d=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function f(t,e,i){var n=this._targetInfoList=[],r={},a=v(e,t);l(m,(function(t,e){(!i||!i.include||u(i.include,e)>=0)&&t(a,n,r)}))}var p=f.prototype;function g(t){return t[0]>t[1]&&t.reverse(),t}function v(t,e){return o.parseFinder(t,e,{includeMainTypes:d})}p.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=_[t.brushType](0,i,e);t.__rangeOffset={offset:S[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}}))},p.matchOutputRanges=function(t,e,i){l(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&r.each(n.coordSyses,(function(n){var r=_[t.brushType](1,n,t.range);i(t,r.values,n,e)}))}),this)},p.setInputRanges=function(t,e){l(t,(function(t){var i=this.findTargetInfo(t,e);if(t.range=t.range||[],i&&!0!==i){t.panelId=i.panelId;var n=_[t.brushType](0,i.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?S[t.brushType](n.values,r.offset,w(n.xyMinMax,r.xyMinMax)):n.values}}),this)},p.makePanelOpts=function(t,e){return r.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:s.makeRectPanelClipPath(n),isTargetByCursor:s.makeRectIsTargetByCursor(n,t,i.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(n)}}))},p.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&u(n.coordSyses,e.coordinateSystem)>=0},p.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=v(e,t),r=0;r<i.length;r++){var a=i[r],o=t.panelId;if(o){if(a.panelId===o)return a}else for(r=0;r<y.length;r++)if(y[r](n,a))return a}return!0};var m={grid:function(t,e){var i=t.xAxisModels,n=t.yAxisModels,a=t.gridModels,o=r.createHashMap(),s={},c={};(i||n||a)&&(l(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),l(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),c[e.id]=!0})),l(a,(function(t){o.set(t.id,t),s[t.id]=!0,c[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,a=[];l(r.getCartesians(),(function(t,e){(u(i,t.getAxis("x").model)>=0||u(n,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:x.grid,xAxisDeclared:s[t.id],yAxisDeclared:c[t.id]})})))},geo:function(t,e){l(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:x.geo})}))}},y=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,r=t.gridModel;return!r&&i&&(r=i.axis.grid.model),!r&&n&&(r=n.axis.grid.model),r&&r===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],x={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(a.getTransform(t)),e}},_={lineX:c(b,0),lineY:c(b,1),rect:function(t,e,i){var n=e[h[t]]([i[0][0],i[1][0]]),r=e[h[t]]([i[0][1],i[1][1]]),a=[g([n[0],r[0]]),g([n[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]],a=r.map(i,(function(i){var r=e[h[t]](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:a,xyMinMax:n}}};function b(t,e,i,n){var a=i.getAxis(["x","y"][t]),o=g(r.map([0,1],(function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))}))),s=[];return s[t]=o,s[1-t]=[NaN,NaN],{values:o,xyMinMax:s}}var S={lineX:c(T,0),lineY:c(T,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return r.map(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}};function T(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function w(t,e){var i=A(t),n=A(e),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(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var E=f;t.exports=E},bda7:function(t,e,i){var n=i("6d8b"),r=i("f279");function a(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n<i.length;n++)for(var r=i[n],a=r.geometry,s=a.coordinates,l=a.encodeOffsets,u=0;u<s.length;u++){var c=s[u];if("Polygon"===a.type)s[u]=o(c,l[u],e);else if("MultiPolygon"===a.type)for(var h=0;h<c.length;h++){var d=c[h];c[h]=o(d,l[u][h],e)}}return t.UTF8Encoding=!1,t}function o(t,e,i){for(var n=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,n.push([s/i,l/i])}return n}function s(t,e){return a(t),n.map(n.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var i=t.properties,a=t.geometry,o=a.coordinates,s=[];"Polygon"===a.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===a.type&&n.each(o,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new r(i[e||"name"],s,i.cp);return l.properties=i,l}))}t.exports=s},bdc0:function(t,e,i){var n=i("3eba");i("d2a5"),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},bf19:function(t,e,i){"use strict";var n=i("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},bf9b:function(t,e,i){var n=i("3eba"),r=i("d81e"),a=r.updateCenterAndZoom;n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree,r=n.getNodeByDataIndex(i);r.isExpand=!r.isExpand}))})),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,n=a(i,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))},c037:function(t,e,i){var n=i("3eba"),r=i("6d8b");i("f7c6"),i("1ab3");var a=i("7782"),o=i("98e7"),s=i("292e"),l=i("d3f4");a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(o("pie")),n.registerLayout(r.curry(s,"pie")),n.registerProcessor(l("pie"))},c2be:function(t,e,i){var n=i("2306"),r=n.extendShape,a=r({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u),g=c?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(h*r+i,d*r+n),t.arc(h*s+i,d*s+n,o,-Math.PI+l,l,!c)),t.arc(i,n,a,l,u,!c),t.moveTo(f*a+i,p*a+n),t.arc(f*s+i,p*s+n,o,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(i,n,r,u,l,c),t.moveTo(h*r+i,p*r+n)),t.closePath()}});t.exports=a},c2dd:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("fc82"),o=i("10cc"),s=o.layoutCovers,l=n.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new a(e.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,u.apply(this,arguments)},updateTransform:function(t,e){return s(e),u.apply(this,arguments)},updateView:u,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:r.clone(t),$from:i}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:r.clone(t),$from:i})}});function u(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}t.exports=l},c4a3:function(t,e){function i(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){var i=e();return i.indexOfName(t)>=0},this.indexOfName=function(e){var i=t();return i.indexOfName(e)},this.getItemVisual=function(e,i){var n=t();return n.getItemVisual(e,i)}}var n=i;t.exports=n},c515:function(t,e,i){i("849b"),i("8459"),i("b006")},c526:function(t,e){var i={axisPointer:1,tooltip:1,brush:1};function n(t,e,n){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!i[r.mainType]&&a&&a.model!==n}e.onIrrelevantElement=n},c533:function(t,e){var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]};t.exports=n},c62c:function(t,e,i){var n=i("6d8b"),r=i("6cb7"),a=i("9e47"),o=i("2023"),s=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 u(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,o),a("single",s,u,l);var c=s;t.exports=c},c775:function(t,e,i){var n=i("2b17"),r=n.retrieveRawValue;function a(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return r(t,e,i[0]);if(n){for(var a=[],o=0;o<i.length;o++){var s=r(t,e,i[o]);a.push(s)}return a.join(" ")}}e.getDefaultLabel=a},c7a2:function(t,e,i){var n=i("cbe5"),r=i("5693"),a=i("9cf9"),o=a.subPixelOptimizeRect,s={},l=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i,n,a,l;this.subPixelOptimize?(o(s,e,this.style),i=s.x,n=s.y,a=s.width,l=s.height,s.r=e.r,e=s):(i=e.x,n=e.y,a=e.width,l=e.height),e.r?r.buildPath(t,e):t.rect(i,n,a,l),t.closePath()}});t.exports=l},c8ef:function(t,e,i){var n=i("6d8b"),r=i("a15a"),a=r.createSymbol,o=i("2306"),s=o.Group,l=i("3842"),u=l.parsePercent,c=i("1418"),h=3;function d(t){return n.isArray(t)||(t=[+t,+t]),t}function f(t,e){var i=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?i:null,fill:"fill"===e.brushType?i:null}})}))}function p(t,e){s.call(this);var i=new c(t,e),n=new s;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var g=p.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),r=0;r<h;r++){var o=a(e,-1,-1,2,2,i);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-r/h*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),n.add(o)}f(n,t)},g.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],r=0;r<n.length;r++){var a=n[r];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}f(i,t)},g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.updateData=function(t,e){var i=t.hostModel;this.childAt(0).updateData(t,e);var n=this.childAt(1),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),o=d(t.getItemVisual(e,"symbolSize")),s=t.getItemVisual(e,"color");n.attr("scale",o),n.traverse((function(t){t.attr({fill:s})}));var l=r.getShallow("symbolOffset");if(l){var c=n.position;c[0]=u(l[0],o[0]),c[1]=u(l[1],o[1])}var h=t.getItemVisual(e,"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=e/t.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=a,f.color=s,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(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},n.inherits(p,s);var v=p;t.exports=v},c92f:function(t,e,i){var n=i("3041"),r=n.parseSVG,a=n.makeViewBoxTransform,o=i("e1fc"),s=i("c7a2"),l=i("6d8b"),u=l.assert,c=l.createHashMap,h=i("9850"),d=i("e0d3"),f=d.makeInner,p=f(),g={load:function(t,e){var i=p(e).originRoot;if(i)return{root:i,boundingRect:p(e).boundingRect};var n=v(e);return p(e).originRoot=n.root,p(e).boundingRect=n.boundingRect,n},makeGraphic:function(t,e,i){var n=p(e),r=n.rootMap||(n.rootMap=c()),a=r.get(i);if(a)return a;var o=n.originRoot,s=n.boundingRect;return n.originRootHostKey?a=v(e,s).root:(n.originRootHostKey=i,a=o),r.set(i,a)},removeGraphic:function(t,e,i){var n=p(e),r=n.rootMap;r&&r.removeKey(i),i===n.originRootHostKey&&(n.originRootHostKey=null)}};function v(t,e){var i,n,l=t.svgXML;try{i=l&&r(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=i.root,u(null!=n)}catch(v){throw new Error("Invalid svg format\n"+v.message)}var c=i.width,d=i.height,f=i.viewBoxRect;if(e||(e=null==c||null==d?n.getBoundingRect():new h(0,0,0,0),null!=c&&(e.width=c),null!=d&&(e.height=d)),f){var p=a(f,e.width,e.height),g=n;n=new o,n.add(g),g.scale=p.scale,g.position=p.position}return n.setClipPath(new s({shape:e.plain()})),{root:n,boundingRect:e}}t.exports=g},c965:function(t,e,i){var n=i("2306"),r=i("a15a"),a=r.createSymbol,o=i("392f"),s=4,l=n.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var i=e.points,n=e.size,r=this.symbolProxy,a=r.shape,o=t.getContext?t.getContext():t,l=o&&n[0]<s;if(!l)for(var u=0;u<i.length;){var c=i[u++],h=i[u++];isNaN(c)||isNaN(h)||(this.softClipShape&&!this.softClipShape.contain(c,h)||(a.x=c-n[0]/2,a.y=h-n[1]/2,a.width=n[0],a.height=n[1],r.buildPath(t,a,!0)))}},afterBrush:function(t){var e=this.shape,i=e.points,n=e.size,r=n[0]<s;if(r){this.setTransform(t);for(var a=0;a<i.length;){var o=i[a++],l=i[a++];isNaN(o)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(o,l)||t.fillRect(o-n[0]/2,l-n[1]/2,n[0],n[1]))}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var i=this.shape,n=i.points,r=i.size,a=Math.max(r[0],4),o=Math.max(r[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-a/2,c=n[l+1]-o/2;if(t>=u&&e>=c&&t<=u+a&&e<=c+o)return s}return-1}});function u(){this.group=new n.Group}var c=u.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(t,e){this.group.removeAll();var i=new l({rectHover:!0,cursor:"default"});i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!1,e),this.group.add(i),this._incremental=null},c.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)}))}},c.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(t,e,i){var n;this._incremental?(n=new l,this._incremental.addDisplayable(n,!0)):(n=new l({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),n.incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!!this._incremental,i)},c._setCommon=function(t,e,i,n){var r=e.hostModel;n=n||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=n.clipShape||null,t.symbolProxy=a(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]<s;t.useStyle(r.getModel("itemStyle").getItemStyle(l?["color","shadowBlur","shadowColor"]:["color"]));var u=e.getVisual("color");u&&t.setColor(u),i||(t.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))})))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var h=u;t.exports=h},ca29:function(t,e,i){var n=i("6d9a"),r=n.eachAfter,a=n.eachBefore,o=i("22da"),s=o.init,l=o.firstWalk,u=o.secondWalk,c=o.separation,h=o.radialCoordinate,d=o.getViewRect;function f(t,e){t.eachSeriesByType("tree",(function(t){p(t,e)}))}function p(t,e){var i=d(t,e);t.layoutInfo=i;var n=t.get("layout"),o=0,f=0,p=null;"radial"===n?(o=2*Math.PI,f=Math.min(i.height,i.width)/2,p=c((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=i.width,f=i.height,p=c());var g=t.getData().tree.root,v=g.children[0];if(v){s(g),r(v,l,p),g.hierNode.modifier=-v.hierNode.prelim,a(v,u);var m=v,y=v,x=v;a(v,(function(t){var e=t.getLayout().x;e<m.getLayout().x&&(m=t),e>y.getLayout().x&&(y=t),t.depth>x.depth&&(x=t)}));var _=m===y?1:p(m,y)/2,b=_-m.getLayout().x,S=0,T=0,w=0,A=0;if("radial"===n)S=o/(y.getLayout().x+_+b),T=f/(x.depth-1||1),a(v,(function(t){w=(t.getLayout().x+b)*S,A=(t.depth-1)*T;var e=h(w,A);t.setLayout({x:e.x,y:e.y,rawX:w,rawY:A},!0)}));else{var E=t.getOrient();"RL"===E||"LR"===E?(T=f/(y.getLayout().x+_+b),S=o/(x.depth-1||1),a(v,(function(t){A=(t.getLayout().x+b)*T,w="LR"===E?(t.depth-1)*S:o-(t.depth-1)*S,t.setLayout({x:w,y:A},!0)}))):"TB"!==E&&"BT"!==E||(S=o/(y.getLayout().x+_+b),T=f/(x.depth-1||1),a(v,(function(t){w=(t.getLayout().x+b)*S,A="TB"===E?(t.depth-1)*T:f-(t.depth-1)*T,t.setLayout({x:w,y:A},!0)})))}}}t.exports=f},ca98:function(t,e,i){var n=i("6d8b"),r=i("e0d3"),a=i("6cb7"),o=n.each,s=n.clone,l=n.map,u=n.merge,c=/^(min|max)?(.+)$/;function h(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function d(t,e,i){var r,a,s=[],l=[],u=t.timeline;if(t.baseOption&&(a=t.baseOption),(u||t.options)&&(a=a||{},s=(t.options||[]).slice()),t.media){a=a||{};var c=t.media;o(c,(function(t){t&&t.option&&(t.query?l.push(t):r||(r=t))}))}return a||(a=t),a.timeline||(a.timeline=u),o([a].concat(s).concat(n.map(l,(function(t){return t.option}))),(function(t){o(e,(function(e){e(t,i)}))})),{baseOption:a,timelineOptions:s,mediaDefault:r,mediaList:l}}function f(t,e,i){var r={width:e,height:i,aspectratio:e/i},a=!0;return n.each(t,(function(t,e){var i=e.match(c);if(i&&i[1]&&i[2]){var n=i[1],o=i[2].toLowerCase();p(r[o],t,n)||(a=!1)}})),a}function p(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e}function g(t,e){return t.join(",")===e.join(",")}function v(t,e){e=e||{},o(e,(function(e,i){if(null!=e){var n=t[i];if(a.hasClass(i)){e=r.normalizeToArray(e),n=r.normalizeToArray(n);var o=r.mappingToExists(n,e);t[i]=l(o,(function(t){return t.option&&t.exist?u(t.exist,t.option,!0):t.exist||t.option}))}else t[i]=u(n,e,!0)}}))}h.prototype={constructor:h,setOption:function(t,e){t&&n.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&n.isTypedArray(t.data)&&n.setAsPrimitive(t.data)})),t=s(t);var i=this._optionBackup,a=d.call(this,t,e,!i);this._newBaseOption=a.baseOption,i?(v(i.baseOption,a.baseOption),a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=s(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,a=[],o=[];if(!n.length&&!r)return o;for(var u=0,c=n.length;u<c;u++)f(n[u].query,e,i)&&a.push(u);return!a.length&&r&&(a=[-1]),a.length&&!g(a,this._currentMediaIndices)&&(o=l(a,(function(t){return s(-1===t?r.option:n[t].option)}))),this._currentMediaIndices=a,o}};var m=h;t.exports=m},cb11:function(t,e,i){var n=i("cbe5"),r=i("9cf9"),a=r.subPixelOptimizeLine,o={},s=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i,n,r,s;this.subPixelOptimize?(a(o,e,this.style),i=o.x1,n=o.y1,r=o.x2,s=o.y2):(i=e.x1,n=e.y1,r=e.x2,s=e.y2);var l=e.percent;0!==l&&(t.moveTo(i,n),l<1&&(r=i*(1-l)+r*l,s=n*(1-l)+s*l),t.lineTo(r,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=s},cb69:function(t,e,i){var n=i("3301"),r=i("4f85"),a=r.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});t.exports=a},cb6d:function(t,e){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(t,e){return{target:t,topTarget:e&&e.topTarget}}i.prototype={constructor:i,_dragStart:function(t){var e=t.target;while(e&&!e.draggable)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(n(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,a=i-this._x,o=r-this._y;this._x=i,this._y=r,e.drift(a,o,t),this.dispatchToElement(n(e,t),"drag",t.event);var s=this.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(n(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(n(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(n(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var r=i;t.exports=r},cb73:function(t,e,i){var n=i("3842"),r=n.parsePercent,a=i("6d8b"),o=Math.PI/180;function s(t,e,i,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),n=t.get("radius");a.isArray(n)||(n=[0,n]),a.isArray(e)||(e=[e,e]);var s=i.getWidth(),u=i.getHeight(),c=Math.min(s,u),h=r(e[0],s),d=r(e[1],u),f=r(n[0],c/2),p=r(n[1],c/2),g=-t.get("startAngle")*o,v=t.get("minAngle")*o,m=t.getData().tree.root,y=t.getViewRoot(),x=y.depth,_=t.get("sort");null!=_&&l(y,_);var b=0;a.each(y.children,(function(t){!isNaN(t.getValue())&&b++}));var S=y.getValue(),T=Math.PI/(S||b)*2,w=y.depth>0,A=y.height-(w?-1:1),E=(p-f)/(A||1),I=t.get("clockwise"),D=t.get("stillShowZeroSum"),M=I?1:-1,L=function(t,e){if(t){var i=e;if(t!==m){var n=t.getValue(),o=0===S&&D?T:n*T;o<v&&(o=v),i=e+M*o;var s=t.depth-x-(w?-1:1),l=f+E*s,u=f+E*(s+1),p=t.getModel();null!=p.get("r0")&&(l=r(p.get("r0"),c/2)),null!=p.get("r")&&(u=r(p.get("r"),c/2)),t.setLayout({angle:o,startAngle:e,endAngle:i,clockwise:I,cx:h,cy:d,r0:l,r:u})}if(t.children&&t.children.length){var g=0;a.each(t.children,(function(t){g+=L(t,e+g)}))}return i-e}};if(w){var C=f,k=f+E,R=2*Math.PI;m.setLayout({angle:R,startAngle:g,endAngle:g+R,clockwise:I,cx:h,cy:d,r0:C,r:k})}L(y,g)}))}function l(t,e){var i=t.children||[];t.children=u(i,e),i.length&&a.each(t.children,(function(t){l(t,e)}))}function u(t,e){if("function"===typeof e)return t.sort(e);var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}t.exports=s},cb8f:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("cd33"),o=i("eb6b");i("48ac"),i("d4b1"),i("4a9d"),n.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!r.isArray(e)&&(t.axisPointer.link=[e])}})),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=a.collect(t,e)})),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},cbb0:function(t,e,i){var n=i("6d8b"),r=i("f934"),a=r.getLayoutRect;function o(t,e,i){var n=t.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},s="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?i[0]:n[u[d]];var f=[["x","width",3],["y","height",0]][s],p=a(h,o,n.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*o[f[1]]?0:1]}function s(t,e){return n.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}e.getItemAlign=o,e.makeHighDownBatch=s},cbe5:function(t,e,i){var n=i("19eb"),r=i("6d8b"),a=i("20c8"),o=i("d833"),s=i("dc2f"),l=s.prototype.getCanvasPattern,u=Math.abs,c=new a(!0);function h(t){n.call(this,t),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var i,n=this.style,r=this.path||c,a=n.hasStroke(),o=n.hasFill(),s=n.fill,u=n.stroke,h=o&&!!s.colorStops,d=a&&!!u.colorStops,f=o&&!!s.image,p=a&&!!u.image;(n.bind(t,this,e),this.setTransform(t),this.__dirty)&&(h&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(t,s,i)),d&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,u,i)));h?t.fillStyle=this._fillGradient:f&&(t.fillStyle=l.call(s,t)),d?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=l.call(u,t));var g=n.lineDash,v=n.lineDashOffset,m=!!t.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!m&&a?(r.beginPath(t),g&&!m&&(r.setLineDash(g),r.setLineDashOffset(v)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o)if(null!=n.fillOpacity){var x=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,r.fill(t),t.globalAlpha=x}else r.fill(t);if(g&&m&&(t.setLineDash(g),t.lineDashOffset=v),a)if(null!=n.strokeOpacity){x=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,r.stroke(t),t.globalAlpha=x}else r.stroke(t);g&&m&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new a),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},h.extend=function(t){var e=function(e){h.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.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])}t.init&&t.init.call(this,e)};for(var i in r.inherits(e,h),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},r.inherits(h,n);var d=h;t.exports=d},cbe9:function(t,e,i){var n=i("6d8b"),r=i("9850"),a=i("cf7e");function o(t){a.call(this,t)}o.prototype={constructor:o,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,i){var n=this.getAxis("x"),r=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(t[0])),i[1]=r.toGlobalCoord(r.dataToCoord(t[1])),i},clampData:function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),a=n.getExtent(),o=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return e=e||[],e[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),a=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n,s=new r(i,n,a,o);return s}},n.inherits(o,a);var s=o;t.exports=s},cc39:function(t,e,i){var n=i("6d8b"),r=i("3842"),a=i("50e5"),o=i("ef6a"),s=n.each,l=r.asc,u=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function c(t,e,i){var n=[1/0,-1/0];return s(i,(function(t){var i=t.getData();i&&s(i.mapDimension(e,!0),(function(t){var e=i.getApproximateExtent(t);e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])}))})),n[1]<n[0]&&(n=[NaN,NaN]),h(t,n),n}function h(t,e){var i=t.getAxisModel(),n=i.getMin(!0),r="category"===i.get("type"),a=r&&i.getCategories().length;null!=n&&"dataMin"!==n&&"function"!==typeof n?e[0]=n:r&&(e[0]=a>0?0:NaN);var o=i.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!==typeof o?e[1]=o:r&&(e[1]=a>0?a-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function d(t,e){var i=t.getAxisModel(),n=t._percentWindow,a=t._valueWindow;if(n){var o=r.getPixelPrecision(a,[0,500]);o=Math.min(o,20);var s=e||0===n[0]&&100===n[1];i.setRange(s?null:+a[0].toFixed(o),s?null:+a[1].toFixed(o))}}function f(t){var e=t._minMaxSpan={},i=t._dataZoomModel,n=t._dataExtent;s(["min","max"],(function(a){var o=i.get(a+"Span"),s=i.get(a+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?o=r.linearMap(n[0]+s,n,[0,100],!0):null!=o&&(s=r.linearMap(o,[0,100],n,!0)-n[0]),e[a+"Span"]=o,e[a+"ValueSpan"]=s}))}u.prototype={constructor:u,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(i){if(a.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,r=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(i)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i,n=this._dimName,r=this.ecModel,a=this.getAxisModel(),o="x"===n||"y"===n;return o?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(a.get(e)||0)&&(i=t)})),i},getMinMaxSpan:function(){return n.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e,i=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,u=this._dataZoomModel.getRangePropMode(),c=[0,100],h=[],d=[];s(["start","end"],(function(n,o){var s=t[n],l=t[n+"Value"];"percent"===u[o]?(null==s&&(s=c[o]),l=a.parse(r.linearMap(s,c,i))):(e=!0,l=null==l?i[o]:a.parse(l),s=r.linearMap(l,i,c)),d[o]=l,h[o]=s})),l(d),l(h);var f=this._minMaxSpan;function p(t,e,i,n,s){var l=s?"Span":"ValueSpan";o(0,t,i,"all",f["min"+l],f["max"+l]);for(var u=0;u<2;u++)e[u]=r.linearMap(t[u],i,n,!0),s&&(e[u]=a.parse(e[u]))}return e?p(d,h,i,c,!1):p(h,d,c,i,!0),{valueWindow:d,percentWindow:h}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,e),f(this);var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,d(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,d(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&s(n,(function(t){var e=t.getData(),n=e.mapDimension(i,!0);n.length&&("weakFilter"===r?e.filterSelf((function(t){for(var i,r,o,s=0;s<n.length;s++){var l=e.get(n[s],t),u=!isNaN(l),c=l<a[0],h=l>a[1];if(u&&!c&&!h)return!0;u&&(o=!0),c&&(i=!0),h&&(r=!0)}return o&&i&&r})):s(n,(function(i){if("empty"===r)t.setData(e=e.map(i,(function(t){return o(t)?t:NaN})));else{var n={};n[i]=a,e.selectRange(n)}})),s(n,(function(t){e.setApproximateExtent(a,t)})))}))}function o(t){return t>=a[0]&&t<=a[1]}}};var p=u;t.exports=p},cccd:function(t,e,i){var n=i("e0d3"),r=n.makeInner;function a(){var t=r();return function(e){var i=t(e),n=e.pipelineContext,r=i.large,a=i.progressiveRender,o=i.large=n&&n.large,s=i.progressiveRender=n&&n.progressiveRender;return!!(r^o||a^s)&&"reset"}}t.exports=a},cd12:function(t,e,i){i("01ed"),i("4a9d"),i("cb8f")},cd33:function(t,e,i){var n=i("6d8b"),r=i("4319"),a=n.each,o=n.curry;function s(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(i,t,e),i.seriesInvolved&&c(i,t),i}function l(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[];a(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var c=m(i.model),d=t.coordSysAxesInfo[c]={};t.coordSysMap[c]=i;var f=i.model,p=f.getModel("tooltip",n);if(a(i.getAxes(),o(_,!1,null)),i.getTooltipAxes&&n&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),x=i.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&a(x.baseAxes,o(_,!y||"cross",g)),y&&a(x.otherAxes,o(_,"cross",!1))}}function _(n,a,o){var c=o.model.getModel("axisPointer",r),f=c.get("show");if(f&&("auto"!==f||n||v(c))){null==a&&(a=c.get("triggerTooltip")),c=n?u(o,p,r,e,n,a):c;var g=c.get("snap"),y=m(o.model),x=a||g||"category"===o.type,_=t.axesInfo[y]={key:y,axis:o,coordSys:i,axisPointerModel:c,triggerTooltip:a,involveSeries:x,snap:g,useHandle:v(c),seriesModels:[]};d[y]=_,t.seriesInvolved|=x;var b=h(s,o);if(null!=b){var S=l[b]||(l[b]={axesInfo:{}});S.axesInfo[y]=_,S.mapper=s[b].mapper,_.linkGroup=S}}}}))}function u(t,e,i,o,s,l){var u=e.getModel("axisPointer"),c={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){c[t]=n.clone(u.get(t))})),c.snap="category"!==t.type&&!!l,"cross"===u.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===s){var d=u.get("label.show");if(h.show=null==d||d,!l){var f=c.lineStyle=u.get("crossStyle");f&&n.defaults(h,f.textStyle)}}return t.model.getModel("axisPointer",new r(c,i,o))}function c(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&a(t.coordSysAxesInfo[m(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}function h(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(d(a[n+"AxisId"],i.id)||d(a[n+"AxisIndex"],i.componentIndex)||d(a[n+"AxisName"],i.name))return r}}function d(t,e){return"all"===t||n.isArray(t)&&n.indexOf(t,e)>=0||t===e}function f(t){var e=p(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,a=i.get("status"),o=i.get("value");null!=o&&(o=n.parse(o));var s=v(i);null==a&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function p(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[m(t)]}function g(t){var e=p(t);return e&&e.axisPointerModel}function v(t){return!!t.get("handle.show")}function m(t){return t.type+"||"+t.id}e.collect=s,e.fixValue=f,e.getAxisInfo=p,e.getAxisPointerModel=g,e.makeKey=m},cd84:function(t,e,i){var n=i("6d8b"),r=256;function a(){var t=n.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}a.prototype={update:function(t,e,i,n,a,o){var s=this._getBrush(),l=this._getGradient(t,a,"inRange"),u=this._getGradient(t,a,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),f=t.length;h.width=e,h.height=i;for(var p=0;p<f;++p){var g=t[p],v=g[0],m=g[1],y=g[2],x=n(y);d.globalAlpha=x,d.drawImage(s,v-c,m-c)}if(!h.width||!h.height)return h;var _=d.getImageData(0,0,h.width,h.height),b=_.data,S=0,T=b.length,w=this.minOpacity,A=this.maxOpacity,E=A-w;while(S<T){x=b[S+3]/256;var I=4*Math.floor(x*(r-1));if(x>0){var D=o(x)?l:u;x>0&&(x=x*E+w),b[S++]=D[I],b[S++]=D[I+1],b[S++]=D[I+2],b[S++]=D[I+3]*x*256}else S+=4}return d.putImageData(_,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=n.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var r=t.getContext("2d");return r.clearRect(0,0,i,i),r.shadowOffsetX=i,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,r=n[i]||(n[i]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}};var o=a;t.exports=o},cdaa:function(t,e,i){var n=i("607d"),r=n.addEventListener,a=n.removeEventListener,o=n.normalizeEvent,s=n.getNativeEvent,l=i("6d8b"),u=i("1fab"),c=i("22d1"),h=300,d=c.domSupported,f=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=l.map(t,(function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:n}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function g(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function v(t){var e=t.pointerType;return"pen"===e||"touch"===e}function m(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function y(t){t&&(t.zrByTouch=!0)}function x(t,e){return o(t.dom,new b(t,e),!0)}function _(t,e){var i=e,n=!1;while(i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot))i=i.parentNode;return n}function b(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}var S=b.prototype;S.stopPropagation=S.stopImmediatePropagation=S.preventDefault=l.noop;var T={mousedown:function(t){t=o(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=o(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||M(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=o(this.dom,t),M(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=o(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=_(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=o(this.dom,t),y(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),T.mousemove.call(this,t),T.mousedown.call(this,t)},touchmove:function(t){t=o(this.dom,t),y(t),this.handler.processGesture(t,"change"),T.mousemove.call(this,t)},touchend:function(t){t=o(this.dom,t),y(t),this.handler.processGesture(t,"end"),T.mouseup.call(this,t),+new Date-this._lastTouchMoment<h&&T.click.call(this,t)},pointerdown:function(t){T.mousedown.call(this,t)},pointermove:function(t){v(t)||T.mousemove.call(this,t)},pointerup:function(t){T.mouseup.call(this,t)},pointerout:function(t){v(t)||T.mouseout.call(this,t)}};l.each(["click","mousewheel","dblclick","contextmenu"],(function(t){T[t]=function(e){e=o(this.dom,e),this.trigger(t,e)}}));var w={pointermove:function(t){v(t)||w.mousemove.call(this,t)},pointerup:function(t){w.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;M(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function A(t,e){var i=e.domHandlers;c.pointerEventsSupported?l.each(f.pointer,(function(n){I(e,n,(function(e){i[n].call(t,e)}))})):(c.touchEventsSupported&&l.each(f.touch,(function(n){I(e,n,(function(r){i[n].call(t,r),m(e)}))})),l.each(f.mouse,(function(n){I(e,n,(function(r){r=s(r),e.touching||i[n].call(t,r)}))})))}function E(t,e){function i(i){function n(n){n=s(n),_(t,n.target)||(n=x(t,n),e.domHandlers[i].call(t,n))}I(e,i,n,{capture:!0})}c.pointerEventsSupported?l.each(p.pointer,i):c.touchEventsSupported||l.each(p.mouse,i)}function I(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,r(t.domTarget,g(e),i,n)}function D(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&a(t.domTarget,g(i),e[i],t.listenerOpts[i]);t.mounted={}}function M(t,e){if(t._mayPointerCapture=null,d&&t._pointerCapturing^e){t._pointerCapturing=e;var i=t._globalHandlerScope;e?E(t,i):D(i)}}function L(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function C(t,e){u.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new L(t,T),d&&(this._globalHandlerScope=new L(document,w)),this._pointerCapturing=!1,this._mayPointerCapture=null,A(this,this._localHandlerScope)}var k=C.prototype;k.dispose=function(){D(this._localHandlerScope),d&&D(this._globalHandlerScope)},k.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},l.mixin(C,u);var R=C;t.exports=R},cee1:function(t,e,i){var n=i("6d8b");function r(t){var e={};t.eachSeriesByType("map",(function(i){var r=i.getMapType();if(!i.getHostGeoModel()&&!e[r]){var a={};n.each(i.seriesGroup,(function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),(function(t,e){var r=n.getName(e),o=i.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=i.dataToPoint(o.center);a[r]=s+1,n.setItemLayout(e,{point:l,offset:s})}}))}));var o=i.getData();o.each((function(t){var e=o.getName(t),i=o.getItemLayout(t)||{};i.showLabel=!a[e],o.setItemLayout(t,i)})),e[r]=!0}}))}t.exports=r},cf7e:function(t,e,i){var n=i("6d8b");function r(t){return this._axes[t]}var a=function(t){this._axes={},this._dimList=[],this.name=t||""};a.prototype={constructor:a,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return n.map(this._dimList,r,this)},getAxesByScale:function(t){return t=t.toLowerCase(),n.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i.length;r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}};var o=a;t.exports=o},d01c:function(t,e,i){var n=i("4f85"),r=i("237f"),a=i("eda2"),o=a.encodeHTML,s=i("4319"),l=i("4e08"),u=(l.__DEV__,n.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(t,e){for(var i=t.edges||t.links,n=t.data||t.nodes,a=t.levels,o=this.levelModels={},l=0;l<a.length;l++)null!=a[l].depth&&a[l].depth>=0&&(o[a[l].depth]=new s(a[l],this,e));if(n&&i){var u=r(n,i,this,!0,c);return u.data}function c(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var i=this.parentModel,n=i.getData().getItemLayout(e).depth,r=i.levelModels[n];return r||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var i=this.parentModel,n=i.getGraph().getEdgeByIndex(e),r=n.node1.getLayout().depth,a=i.levelModels[r];return a||this.parentModel})),t}))}},setNodePosition:function(t,e){var i=this.option.data[t];i.localX=e[0],i.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getDataParams(t,i),r=n.data,a=r.source+" -- "+r.target;return n.value&&(a+=" : "+n.value),o(a)}if("node"===i){var s=this.getGraph().getNodeByIndex(t),l=s.getLayout().value,c=this.getDataParams(t,i).data.name;if(l)a=c+" : "+l;return o(a)}return u.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var i=u.superCall(this,"getDataParams",t,e);if(null==i.value&&"node"===e){var n=this.getGraph().getNodeByIndex(t),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}})),c=u;t.exports=c},d070:function(t,e,i){var n=i("3eba"),r=i("6d8b");function a(t,e){e.update="updateView",n.registerAction(e,(function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},(function(i){i[t](e.name);var a=i.coordinateSystem;r.each(a.regions,(function(t){n[t.name]=i.isSelected(t.name)||!1}))})),{selected:n,name:e.name}}))}i("1f1a"),i("eeea"),i("7661"),i("49e8"),a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"})},d090:function(t,e,i){var n=i("6d8b"),r=i("f934"),a=i("3842"),o=i("2039"),s=864e5;function l(t,e,i){this._model=t}function u(t,e,i,n){var r=i.calendarModel,a=i.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem:null;return o===this?o[t](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(t){t=a.parseDate(t);var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:r,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[i,7]:[7,i];n.each([0,1],(function(t){h(o,t)&&(s[a[t]]=o[t]*l[t])}));var u={width:e.getWidth(),height:e.getHeight()},c=this._rect=r.getLayoutRect(s,u);function h(t,e){return null!=t[e]&&"auto"!==t[e]}n.each([0,1],(function(t){h(o,t)||(o[t]=c[a[t]]/l[t])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){n.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),r=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=r.start.time&&i.time<r.end.time+s))return[NaN,NaN];var o=i.day,l=this._getRangeInfo([r.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*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+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var i=this.dataToPoint(t,e);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(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:n.curry(u,"dataToPoint"),convertFromPixel:n.curry(u,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(n.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getDateInfo(e),r=i.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],t[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/s)-Math.floor(t[0].time/s)+1,n=new Date(t[0].time),r=n.getDate(),a=t[1].date.getDate();n.setDate(r+i-1);var o=n.getDate();if(o!==a){var l=n.getTime()-t[1].time>0?1:-1;while((o=n.getDate())!==a&&(n.getTime()-t[1].time)*l>0)i-=l,n.setDate(o-l)}var u=Math.floor((i+t[0].day+6)/7),c=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:u,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return!1;var r=7*(t-1)-n.fweek+e,a=new Date(n.start.time);return a.setDate(n.start.d+r),this.getDateInfo(a)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(t,e){var i=[];return t.eachComponent("calendar",(function(n){var r=new l(n,t,e);i.push(r),n.coordinateSystem=r})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},o.register("calendar",l);var c=l;t.exports=c},d15d:function(t,e,i){var n=i("6d8b"),r=n.createHashMap,a=n.each;function o(t){var e=r();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}})),e.each(s)}function s(t){a(t,(function(e,i){var n=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(a,(function(a,l,u){var c,h,d=o.get(e.stackedDimension,u);if(isNaN(d))return r;s?h=o.getRawIndex(u):c=o.get(e.stackedByDimension,u);for(var f=NaN,p=i-1;p>=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&v>0||d<=0&&v<0){d+=v,f=v;break}}}return n[0]=d,n[1]=f,n}));o.hostModel.setData(l),e.data=l}))}t.exports=o},d28f:function(t,e,i){var n=i("3eba");i("84d5"),i("4650"),i("5e97");var r=i("903c"),a=i("6cb7");n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,r),a.registerSubTypeDefaulter("legend",(function(){return"plain"}))},d2a5:function(t,e,i){var n=i("3eba");n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},d2cf:function(t,e,i){var n=i("6d8b"),r=i("401b"),a=i("cb6d"),o=i("1fab"),s=i("607d"),l=i("0b44"),u="silent";function c(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.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(){s.stop(this.event)}function d(){}d.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(t,e,i,n){o.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new d,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,a.call(this),this.setHandlerProxy(i)};function g(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){var n,r=t;while(r){if(r.clipPath&&!r.clipPath.contain(e,i))return!1;r.silent&&(n=!0),r=r.parent}return!n||u}return!1}function v(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(n.each(f,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=v(this,e,i),r=this._hovered,a=r.target;a&&!a.__zr&&(r=this.findHover(r.x,r.y),a=r.target);var o=this._hovered=n?{x:e,y:i}:this.findHover(e,i),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,i=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!i&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){var r="on"+e,a=c(e,t,i);while(n)if(n[r]&&(a.cancelBubble=n[r].call(n,a)),n.trigger(e,a),n=n.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r={x:t,y:e},a=n.length-1;a>=0;a--){var o;if(n[a]!==i&&!n[a].ignore&&(o=g(n[a],t,e))&&(!r.topTarget&&(r.topTarget=n[a]),o!==u)){r.target=n[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r,this.dispatchToElement({target:n.target},r,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){p.prototype[t]=function(e){var i,n,a=e.zrX,o=e.zrY,s=v(this,a,o);if("mouseup"===t&&s||(i=this.findHover(a,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),n.mixin(p,o),n.mixin(p,a);var m=p;t.exports=m},d357:function(t,e,i){var n=i("6d8b"),r=n.each,a=i("1c5f"),o=a.simpleLayout,s=a.simpleLayoutEdge;function l(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),i=t.coordinateSystem;if(i&&"view"!==i.type){var n=t.getData(),a=[];r(i.dimensions,(function(t){a=a.concat(n.mapDimension(t,!0))}));for(var l=0;l<n.count();l++){for(var u=[],c=!1,h=0;h<a.length;h++){var d=n.get(a[h],l);isNaN(d)||(c=!0),u.push(d)}c?n.setItemLayout(l,i.dataToPoint(u)):n.setItemLayout(l,[NaN,NaN])}s(n.graph,t)}else e&&"none"!==e||o(t)}))}t.exports=l},d3a0:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("29a8"),o=i("2145"),s=a.toolbox.magicType,l="__ec_magicType_stack__";function u(t){this.model=t}u.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(s.title),option:{},seriesIndex:{}};var c=u.prototype;c.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return r.each(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i};var h={line:function(t,e,i,n){if("bar"===t)return r.merge({id:e,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(t,e,i,n){if("line"===t)return r.merge({id:e,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(t,e,i,n){var a=i.get("stack")===l;if("line"===t||"bar"===t)return n.setIconStatus("stack",a?"normal":"emphasis"),r.merge({id:e,stack:a?"":l},n.get("option.stack")||{},!0)}},d=[["line","bar"],["stack"]];c.onclick=function(t,e,i){var n=this.model,a=n.get("seriesIndex."+i);if(h[i]){var o,u={series:[]},c=function(e){var a=e.subType,o=e.id,s=h[i](a,o,e,n);s&&(r.defaults(s,e.option),u.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var c=l.getAxesByScale("ordinal")[0];if(c){var d=c.dim,f=d+"Axis",p=t.queryComponents({mainType:f,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=p.componentIndex;u[f]=u[f]||[];for(var v=0;v<=g;v++)u[f][g]=u[f][g]||{};u[f][g].boundaryGap="bar"===i}}};if(r.each(d,(function(t){r.indexOf(t,i)>=0&&r.each(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},c),"stack"===i){var f=u.series&&u.series[0]&&u.series[0].stack===l;o=f?r.merge({stack:s.title.tiled},s.title):r.clone(s.title)}e.dispatchAction({type:"changeMagicType",currentType:i,newOption:u,newTitle:o,featureName:"magicType"})}},n.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),o.register("magicType",u);var f=u;t.exports=f},d3a4:function(t,e,i){var n,r=i("22d1"),a="urn:schemas-microsoft-com:vml",o="undefined"===typeof window?null:window,s=!1,l=o&&o.document;function u(t){return n(t)}if(l&&!r.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",a),n=function(t){return l.createElement("<zrvml:"+t+' class="zrvml">')}}catch(h){n=function(t){return l.createElement("<"+t+' xmlns="'+a+'" class="zrvml">')}}function c(){if(!s&&l){s=!0;var t=l.styleSheets;t.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}e.doc=l,e.createNode=u,e.initVML=c},d3f4:function(t,e){function i(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf((function(t){for(var e=n.getName(t),r=0;r<i.length;r++)if(!i[r].isSelected(e))return!1;return!0}))}}}}t.exports=i},d498:function(t,e,i){var n=i("cbe5"),r=i("4fac"),a=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){r.buildPath(t,e,!1)}});t.exports=a},d4b1:function(t,e,i){var n=i("3eba"),r=i("17d6"),a=n.extendComponentView({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),a=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";r.register("axisPointer",i,(function(t,e,i){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},d4c6:function(t,e,i){var n=i("cbe5"),r=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e.length;i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),n.prototype.getBoundingRect.call(this)}});t.exports=r},d4d1:function(t,e,i){var n=i("cbe5"),r=i("401b"),a=i("897a"),o=r.min,s=r.max,l=r.scaleAndAdd,u=r.copy,c=[],h=[],d=[];function f(t){return isNaN(t[0])||isNaN(t[1])}function p(t,e,i,n,r,a,o,s,l,u,c){return"none"!==u&&u?g.apply(this,arguments):v.apply(this,arguments)}function g(t,e,i,n,r,a,o,s,l,c,p){for(var g=0,v=i,m=0;m<n;m++){var y=e[v];if(v>=r||v<0)break;if(f(y)){if(p){v+=a;continue}break}if(v===i)t[a>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=e[g],_="y"===c?1:0,b=(y[_]-x[_])*l;u(h,x),h[_]=x[_]+b,u(d,y),d[_]=y[_]-b,t.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=v,v+=a}return m}function v(t,e,i,n,a,p,g,v,m,y,x){for(var _=0,b=i,S=0;S<n;S++){var T=e[b];if(b>=a||b<0)break;if(f(T)){if(x){b+=p;continue}break}if(b===i)t[p>0?"moveTo":"lineTo"](T[0],T[1]),u(h,T);else if(m>0){var w=b+p,A=e[w];if(x)while(A&&f(e[w]))w+=p,A=e[w];var E=.5,I=e[_];A=e[w];if(!A||f(A))u(d,T);else{var D,M;if(f(A)&&!x&&(A=T),r.sub(c,A,I),"x"===y||"y"===y){var L="x"===y?0:1;D=Math.abs(T[L]-I[L]),M=Math.abs(T[L]-A[L])}else D=r.dist(T,I),M=r.dist(T,A);E=M/(M+D),l(d,T,c,-m*(1-E))}o(h,h,v),s(h,h,g),o(d,d,v),s(d,d,g),t.bezierCurveTo(h[0],h[1],d[0],d[1],T[0],T[1]),l(h,T,c,m*E)}else t.lineTo(T[0],T[1]);_=b,b+=p}return S}function m(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?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:a(n.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,r=i.length,a=m(i,e.smoothConstraint);if(e.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(t,i,n,r,r,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),x=n.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:a(n.prototype.brush),buildPath:function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,a=i.length,o=e.smoothMonotone,s=m(i,e.smoothConstraint),l=m(n,e.smoothConstraint);if(e.connectNulls){for(;a>0;a--)if(!f(i[a-1]))break;for(;r<a;r++)if(!f(i[r]))break}while(r<a){var u=p(t,i,r,a,a,1,s.min,s.max,e.smooth,o,e.connectNulls);p(t,n,r+u-1,u,a,-1,l.min,l.max,e.stackedOnSmooth,o,e.connectNulls),r+=u+1,t.closePath()}}});e.Polyline=y,e.Polygon=x},d51b:function(t,e){var i=function(){this.head=null,this.tail=null,this._len=0},n=i.prototype;n.insert=function(t){var e=new r(t);return this.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var r=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new i,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},o=a.prototype;o.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,i.insertEntry(s),n[t]=s}return a},o.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var s=a;t.exports=s},d5b7:function(t,e,i){var n=i("de00"),r=i("1fab"),a=i("0cde"),o=i("bd6b"),s=i("6d8b"),l=function(t){a.call(this,t),r.call(this,t),o.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,o),s.mixin(l,a),s.mixin(l,r);var u=l;t.exports=u},d6d9:function(t,e,i){var n=i("3014"),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(t){return t.stack=null,r.superApply(this,"getInitialData",arguments)}}),a=r;t.exports=a},d6ef:function(t,e,i){var n=i("3eba"),r={type:"selectDataRange",event:"dataRangeSelected",update:"update"};n.registerAction(r,(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}))},d716:function(t,e,i){var n=i("3eba"),r=i("6d8b");i("aa01"),i("340d"),i("44fb");var a=i("98e7"),o=i("cb73"),s=i("d3f4");n.registerVisual(r.curry(a,"sunburst")),n.registerLayout(r.curry(o,"sunburst")),n.registerProcessor(r.curry(s,"sunburst"))},d747:function(t,e,i){var n=i("3eba"),r=i("d81e"),a=r.updateCenterAndZoom;i("d2a5");var o={type:"graphRoam",event:"graphRoam",update:"none"};n.registerAction(o,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,n=a(i,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))},d81e:function(t,e){function i(t,e,i){var n=t.getZoom(),r=t.getCenter(),a=e.zoom,o=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){o[0]-=e.dx,o[1]-=e.dy;r=t.pointToData(o);t.setCenter(r)}if(null!=a){if(i){var s=i.min||0,l=i.max||1/0;a=Math.max(Math.min(n*a,l),s)/n}t.scale[0]*=a,t.scale[1]*=a;var u=t.position,c=(e.originX-u[0])*(a-1),h=(e.originY-u[1])*(a-1);u[0]-=c,u[1]-=h,t.updateTransform();r=t.pointToData(o);t.setCenter(r),t.setZoom(a*n)}return{center:t.getCenter(),zoom:t.getZoom()}}e.updateCenterAndZoom=i},d833:function(t,e,i){var n=i("20c8"),r=i("9680"),a=i("e7d2"),o=i("68ab"),s=i("9f51"),l=i("857d"),u=l.normalizeRadian,c=i("4a3f"),h=i("8728"),d=n.CMD,f=2*Math.PI,p=1e-4;function g(t,e){return Math.abs(t-e)<p}var v=[-1,-1,-1],m=[-1,-1];function y(){var t=m[0];m[0]=m[1],m[1]=t}function x(t,e,i,n,r,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var h=c.cubicRootAt(e,n,a,s,u,v);if(0===h)return 0;for(var d,f,p=0,g=-1,x=0;x<h;x++){var _=v[x],b=0===_||1===_?.5:1,S=c.cubicAt(t,i,r,o,_);S<l||(g<0&&(g=c.cubicExtrema(e,n,a,s,m),m[1]<m[0]&&g>1&&y(),d=c.cubicAt(e,n,a,s,m[0]),g>1&&(f=c.cubicAt(e,n,a,s,m[1]))),2===g?_<m[0]?p+=d<e?b:-b:_<m[1]?p+=f<d?b:-b:p+=s<f?b:-b:_<m[0]?p+=d<e?b:-b:p+=s<d?b:-b)}return p}function _(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=c.quadraticRootAt(e,n,a,s,v);if(0===l)return 0;var u=c.quadraticExtremum(e,n,a);if(u>=0&&u<=1){for(var h=0,d=c.quadraticAt(e,n,a,u),f=0;f<l;f++){var p=0===v[f]||1===v[f]?.5:1,g=c.quadraticAt(t,i,r,v[f]);g<o||(v[f]<u?h+=d<e?p:-p:h+=a<d?p:-p)}return h}p=0===v[0]||1===v[0]?.5:1,g=c.quadraticAt(t,i,r,v[0]);return g<o?0:a<e?p:-p}function b(t,e,i,n,r,a,o,s){if(s-=e,s>i||s<-i)return 0;var l=Math.sqrt(i*i-s*s);v[0]=-l,v[1]=l;var c=Math.abs(n-r);if(c<1e-4)return 0;if(c%f<1e-4){n=0,r=f;var h=a?1:-1;return o>=v[0]+t&&o<=v[1]+t?h:0}if(a){l=n;n=u(r),r=u(l)}else n=u(n),r=u(r);n>r&&(r+=f);for(var d=0,p=0;p<2;p++){var g=v[p];if(g+t>o){var m=Math.atan2(s,g);h=a?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 S(t,e,i,n,l){for(var u=0,c=0,f=0,p=0,v=0,m=0;m<t.length;){var y=t[m++];switch(y===d.M&&m>1&&(i||(u+=h(c,f,p,v,n,l))),1===m&&(c=t[m],f=t[m+1],p=c,v=f),y){case d.M:p=t[m++],v=t[m++],c=p,f=v;break;case d.L:if(i){if(r.containStroke(c,f,t[m],t[m+1],e,n,l))return!0}else u+=h(c,f,t[m],t[m+1],n,l)||0;c=t[m++],f=t[m++];break;case d.C:if(i){if(a.containStroke(c,f,t[m++],t[m++],t[m++],t[m++],t[m],t[m+1],e,n,l))return!0}else u+=x(c,f,t[m++],t[m++],t[m++],t[m++],t[m],t[m+1],n,l)||0;c=t[m++],f=t[m++];break;case d.Q:if(i){if(o.containStroke(c,f,t[m++],t[m++],t[m],t[m+1],e,n,l))return!0}else u+=_(c,f,t[m++],t[m++],t[m],t[m+1],n,l)||0;c=t[m++],f=t[m++];break;case d.A:var S=t[m++],T=t[m++],w=t[m++],A=t[m++],E=t[m++],I=t[m++];m+=1;var D=1-t[m++],M=Math.cos(E)*w+S,L=Math.sin(E)*A+T;m>1?u+=h(c,f,M,L,n,l):(p=M,v=L);var C=(n-S)*A/w+S;if(i){if(s.containStroke(S,T,A,E,E+I,D,e,C,l))return!0}else u+=b(S,T,A,E,E+I,D,C,l);c=Math.cos(E+I)*w+S,f=Math.sin(E+I)*A+T;break;case d.R:p=c=t[m++],v=f=t[m++];var k=t[m++],R=t[m++];M=p+k,L=v+R;if(i){if(r.containStroke(p,v,M,v,e,n,l)||r.containStroke(M,v,M,L,e,n,l)||r.containStroke(M,L,p,L,e,n,l)||r.containStroke(p,L,p,v,e,n,l))return!0}else u+=h(M,v,M,L,n,l),u+=h(p,L,p,v,n,l);break;case d.Z:if(i){if(r.containStroke(c,f,p,v,e,n,l))return!0}else u+=h(c,f,p,v,n,l);c=p,f=v;break}}return i||g(f,v)||(u+=h(c,f,p,v,n,l)||0),0!==u}function T(t,e,i){return S(t,0,!1,e,i)}function w(t,e,i,n){return S(t,e,!0,i,n)}e.contain=T,e.containStroke=w},d9d0:function(t,e,i){var n=i("6d8b"),r=i("1687"),a=i("f934"),o=i("697e"),s=i("0f55"),l=i("2306"),u=i("3842"),c=i("ef6a"),h=n.each,d=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,v=u.round,m=Math.PI;function y(t,e,i){this._axesMap=n.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function x(t,e){return d(f(t,e[0]),e[1])}function _(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function b(t,e){var i,n,r=e.layoutLength,a=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(i=t*s,n=s):t<=l[1]?(i=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],u=a,c=!0):(i=r-(o-1-t)*s,n=s),{position:i,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:n}}y.prototype={type:"parallel",constructor:y,_init:function(t,e,i){var n=t.dimensions,r=t.parallelAxisIndex;h(n,(function(t,i){var n=r[i],a=e.getComponent("parallelAxis",n),l=this._axesMap.set(t,new s(t,o.createScaleByModel(a),[0,0],a.get("type"),n)),u="category"===l.type;l.onBand=u&&a.get("boundaryGap"),l.inverse=a.get("inverse"),a.axis=l,l.model=a,l.coordinateSystem=a.coordinateSystem=this}),this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,r=e.pixelDimIndex,a=t[1-r],o=t[r];return a>=i&&a<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),o.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=a.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],r=["width","height"],a=e.get("layout"),o="horizontal"===a?0:1,s=i[r[o]],l=[0,s],u=this.dimensions.length,c=x(e.get("axisExpandWidth"),l),h=x(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");if(f)t=x(f[1]-f[0],l),f[1]=f[0]+t;else{t=x(c*(h-1),l);var m=e.get("axisExpandCenter")||p(u/2);f=[c*m-t/2],f[1]=f[0]+t}var y=(s-t)/(u-h);y<3&&(y=0);var _=[p(v(f[0]/c,1))+1,g(v(f[1]/c,1))-1],b=y/c*f[0];return{layout:a,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[r[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:f,axisCount:u,winInnerIndices:_,axisExpandWindow0Pos:b}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),h(i,(function(e,i){var o=(n.axisExpandable?b:_)(i,n),s={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},l={horizontal:m/2,vertical:0},u=[s[a].x+t.x,s[a].y+t.y],c=l[a],h=r.create();r.rotate(h,h,c),r.translate(h,h,u),this._axesLayout[e]={position:u,rotation:c,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,r){null==i&&(i=0),null==r&&(r=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];n.each(o,(function(e){s.push(t.mapDimension(e)),l.push(a.get(e).model)}));for(var u=this.hasAxisBrushed(),c=i;c<r;c++){var h;if(u){h="active";for(var d=t.getValues(s,c),f=0,p=o.length;f<p;f++){var g=l[f].getActiveState(d[f]);if("inactive"===g){h="inactive";break}}}else h="normal";e(h,c)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,r=t.length;n<r;n++)"normal"!==e.get(t[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(t,e){var i=this._axesLayout[e];return l.applyTransform([t,0],i.transform)},getAxisLayout:function(t){return n.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),r=n[1]-n[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var o,s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=null!=h[0];if(u)p&&u&&s<r*h[0]?(l="jump",o=s-r*h[2]):p&&u&&s>r*(1-h[0])?(l="jump",o=s-r*(1-h[2])):(o=s-r*h[1])>=0&&(o=s-r*(1-h[1]))<=0&&(o=0),o*=e.axisExpandWidth/u,o?c(o,n,a,"all"):l="none";else{r=n[1]-n[0];var g=a[1]*s/r;n=[f(0,g-r/2)],n[1]=d(a[1],n[0]+r),n[0]=n[1]-r}return{axisExpandWindow:n,behavior:l}}};var S=y;t.exports=S},d9f1:function(t,e,i){var n=i("6d8b"),r=i("6cb7"),a=i("9e47"),o=i("2023"),s=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(s.prototype,o);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function u(t,e){return e.type||(e.data?"category":"value")}a("angle",s,u,l.angle),a("radius",s,u,l.radius)},d9fc:function(t,e,i){var n=i("cbe5"),r=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=r},dae1:function(t,e,i){var n=i("3eba");i("928d"),i("b369"),i("4411");var r=i("90c2"),a=i("9ca8");n.registerVisual(r),n.registerLayout(a)},db0e:function(t,e,i){var n=i("3eba");i("a8c6"),i("8344"),n.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}}))},db9e:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("e86a"),o=i("2145"),s=i("2306"),l=i("4319"),u=i("80f0"),c=i("7919"),h=n.extendComponentView({type:"toolbox",render:function(t,e,i,n){var h=this.group;if(h.removeAll(),t.get("show")){var f=+t.get("itemSize"),p=t.get("feature")||{},g=this._features||(this._features={}),v=[];r.each(p,(function(t,e){v.push(e)})),new u(this._featureNames||[],v).add(m).update(m).remove(r.curry(m,null)).execute(),this._featureNames=v,c.layout(h,t,i),h.add(c.makeBackground(h.getBoundingRect(),t)),h.eachChild((function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var r=a.getBoundingRect(e,a.makeFont(n)),o=t.position[0]+h.position[0],s=t.position[1]+h.position[1]+f,l=!1;s+r.height>i.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-r.height:f+8;o+r.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):o-r.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}}))}function m(r,a){var s,u=v[r],c=v[a],h=p[u],f=new l(h,t,t.ecModel);if(n&&null!=n.newTitle&&n.featureName===u&&(h.title=n.newTitle),u&&!c){if(d(u))s={model:f,onclick:f.option.onclick,featureName:u};else{var m=o.get(u);if(!m)return;s=new m(f,e,i)}g[u]=s}else{if(s=g[c],!s)return;s.model=f,s.ecModel=e,s.api=i}u||!c?f.get("show")&&!s.unusable?(y(f,s,u),f.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},s.render&&s.render(f,e,i,n)):s.remove&&s.remove(e,i):s.dispose&&s.dispose(e,i)}function y(n,a,o){var l=n.getModel("iconStyle"),u=n.getModel("emphasis.iconStyle"),c=a.getIcons?a.getIcons():n.get("icon"),d=n.get("title")||{};if("string"===typeof c){var p=c,g=d;c={},d={},c[o]=p,d[o]=g}var v=n.iconPaths={};r.each(c,(function(o,c){var p=s.createIcon(o,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(l.getItemStyle()),p.hoverStyle=u.getItemStyle(),p.setStyle({text:d[c],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&p.attr("tooltip",r.extend({content:d[c],formatter:g.get("formatter",!0)||function(){return d[c]},formatterParams:{componentType:"toolbox",name:c,title:d[c],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(p),t.get("showTitle")&&(p.__title=d[c],p.on("mouseover",(function(){var e=u.getItemStyle(),i="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";p.setStyle({textFill:u.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||i})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(n.get("iconStatus."+c)||"normal"),h.add(p),p.on("click",r.bind(a.onclick,a,e,i,c)),v[c]=p}))}},updateView:function(t,e,i,n){r.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,i,n)}))},remove:function(t,e){r.each(this._features,(function(i){i.remove&&i.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){r.each(this._features,(function(i){i.dispose&&i.dispose(t,e)}))}});function d(t){return 0===t.indexOf("my")}t.exports=h},dc20:function(t,e,i){var n=i("8727"),r=n.createElement,a=i("6d8b"),o=i("4942"),s=i("cbe5"),l=i("0da8"),u=i("76a5"),c=i("0c12"),h=i("b16f"),d=i("9fa3"),f=i("bcaa"),p=i("3f8e"),g=p.path,v=p.image,m=p.text;function y(t){return parseInt(t,10)}function x(t){return t instanceof s?g:t instanceof l?v:t instanceof u?m:g}function _(t,e){return e&&t&&e.parentNode!==t}function b(t,e,i){if(_(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function S(t,e){if(_(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function T(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function w(t){return t.__textSvgEl}function A(t){return t.__svgEl}var E=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=a.extend({},i||{});var o=r("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=r("g");o.appendChild(s);var l=r("g");o.appendChild(l),this.gradientManager=new h(n,l),this.clipPathManager=new d(n,l),this.shadowManager=new f(n,l);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=s,this._viewport=u,t.appendChild(u),u.appendChild(o),this.resize(i.width,i.height),this._visibleList=[]};function I(t){return function(){o('In SVG mode painter not support method "'+t+'"')}}E.prototype={constructor:E,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=r("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,r=t.length,a=[];for(e=0;e<r;e++){var o=t[e],s=x(o),l=A(o)||w(o);o.invisible||(o.__dirty&&(s&&s.brush(o),this.clipPathManager.update(o),o.style&&(this.gradientManager.update(o.style.fill),this.gradientManager.update(o.style.stroke),this.shadowManager.update(l,o)),o.__dirty=!1),a.push(o))}var u,h=c(n,a);for(e=0;e<h.length;e++){var d=h[e];if(d.removed)for(var f=0;f<d.count;f++){o=n[d.indices[f]],l=A(o);var p=w(o);T(i,l),T(i,p)}}for(e=0;e<h.length;e++){d=h[e];if(d.added)for(f=0;f<d.count;f++){o=a[d.indices[f]],l=A(o),p=w(o);u?b(i,l,u):S(i,l),l?b(i,p,l):u?b(i,p,u):S(i,p),b(i,p,l),u=p||l||u,this.gradientManager.addWithoutUpdate(l||p,o),this.shadowManager.addWithoutUpdate(l||p,o),this.clipPathManager.markUsed(o)}else if(!d.removed)for(f=0;f<d.count;f++){o=a[d.indices[f]],l=A(o),p=w(o),l=A(o),p=w(o);this.gradientManager.markUsed(o),this.gradientManager.addWithoutUpdate(l||p,o),this.shadowManager.markUsed(o),this.shadowManager.addWithoutUpdate(l||p,o),this.clipPathManager.markUsed(o),p&&b(i,p,l),u=l||p||u}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=a},_getDefs:function(t){var e=this._svgDom,i=e.getElementsByTagName("defs");if(0===i.length){if(t){i=e.insertBefore(r("defs"),e.firstChild);return i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=i.style;r.width=t+"px",r.height=e+"px";var a=this._svgDom;a.setAttribute("width",t),a.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||y(s[i])||y(o.style[i]))-(y(s[r])||0)-(y(s[a])||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 t=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+t}},a.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){E.prototype[t]=I(t)}));var D=E;t.exports=D},dc2f:function(t,e){var i=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};i.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=i;t.exports=n},dcb3:function(t,e,i){var n=i("6d8b"),r=i("625e"),a=i("2306"),o=i("cd33"),s=i("607d"),l=i("88b3"),u=i("e0d3"),c=u.makeInner,h=c(),d=n.clone,f=n.bind;function p(){}function g(t,e,i,n){v(h(i).lastProp,n)||(h(i).lastProp=n,e?a.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function v(t,e){if(n.isObject(t)&&n.isObject(e)){var i=!0;return n.each(e,(function(e,n){i=i&&v(t[n],e)})),!!i}return t===e}function m(t,e){t[e.get("label.show")?"show":"hide"]()}function y(t){return{position:t.position.slice(),rotation:t.rotation||0}}function x(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,r){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,o,t,e,i);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=n.curry(g,e,d);this.updatePointerEl(l,c,f,e),this.updateLabelEl(l,c,f,e)}else l=this._group=new a.Group,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),i.getZr().add(l);x(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(r&&n.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===i},makeElOption:function(t,e,i,n,r){},createPointerEl:function(t,e,i,n){var r=e.pointer;if(r){var o=h(t).pointerEl=new a[r.type](d(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var r=h(t).labelEl=new a.Rect(d(e.label));t.add(r),m(r,n)}},updatePointerEl:function(t,e,i){var n=h(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var r=h(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{shape:e.label.shape,position:e.label.position}),m(r,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,r=this._api.getZr(),o=this._handle,u=i.getModel("handle"),c=i.get("status");if(!u.get("show")||!c||"hide"===c)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),r.add(o)),x(o,i,!1);var h=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(u.getItemStyle(null,h));var d=u.get("size");n.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){g(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(y(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(y(n)),h(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},p.prototype.constructor=p,r.enableClassExtend(p);var _=p;t.exports=_},dcea:function(t,e,i){var n=i("6d8b"),r=i("e887"),a=i("2306"),o=i("cbe5"),s=["itemStyle"],l=["emphasis","itemStyle"],u=r.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o="horizontal"===t.get("layout")?1:0;n.diff(a).add((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),i=h(e,n,t,o,!0);n.setItemGraphicEl(t,i),r.add(i)}})).update((function(t,e){var i=a.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?d(s,i,n,t):i=h(s,n,t,o),r.add(i),n.setItemGraphicEl(t,i)}else r.remove(i)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:n.noop}),c=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])}});function h(t,e,i,n,r){var a=t.ends,o=new c({shape:{points:r?f(a,n,t):a}});return d(t,o,e,i,r),o}function d(t,e,i,n,r){var o=i.hostModel,u=a[r?"initProps":"updateProps"];u(e,{shape:{points:t.ends}},o,n);var c=i.getItemModel(n),h=c.getModel(s),d=i.getItemVisual(n,"color"),f=h.getItemStyle(["borderColor"]);f.stroke=d,f.strokeNoScale=!0,e.useStyle(f),e.z2=100;var p=c.getModel(l).getItemStyle();a.setHoverStyle(e,p)}function f(t,e,i){return n.map(t,(function(t){return t=t.slice(),t[e]=i.initBaseline,t}))}var p=u;t.exports=p},dd39:function(t,e,i){i("6932"),i("3a56"),i("7dcf"),i("414c"),i("4b08"),i("2c17"),i("9e87")},dd7e:function(t,e,i){var n=i("6d8b"),r=i("edaf"),a=i("38a2"),o=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(o,a);var s=o;t.exports=s},dded:function(t,e,i){var n=i("6d8b"),r=i("42e5"),a=function(t,e,i,n,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=a||!1,r.call(this,n)};a.prototype={constructor:a},n.inherits(a,r);var o=a;t.exports=o},de00:function(t,e){var i=2311;function n(){return i++}t.exports=n},de1c:function(t,e){var i={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")}}};t.exports=i},de6e:function(t,e){function i(t){return t instanceof Array||(t=[t,t]),t}function n(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=i(t.get("edgeSymbol")),a=i(t.get("edgeSymbolSize")),o="lineStyle.color".split("."),s="lineStyle.opacity".split(".");n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("color",t.get(o)),n.setVisual("opacity",t.get(s)),n.each((function(t){var r=n.getItemModel(t),a=e.getEdgeByIndex(t),l=i(r.getShallow("symbol",!0)),u=i(r.getShallow("symbolSize",!0)),c=r.get(o),h=r.get(s);switch(c){case"source":c=a.node1.getVisual("color");break;case"target":c=a.node2.getVisual("color");break}l[0]&&a.setVisual("fromSymbol",l[0]),l[1]&&a.setVisual("toSymbol",l[1]),u[0]&&a.setVisual("fromSymbolSize",u[0]),u[1]&&a.setVisual("toSymbolSize",u[1]),a.setVisual("color",c),a.setVisual("opacity",h)}))}))}t.exports=n},df3a:function(t,e,i){var n=i("6d8b"),r=i("6cb7"),a=i("282b"),o=i("9e47"),s=i("3842"),l=i("2023"),u=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return a([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=n.clone(t);if(e)for(var i=e.length-1;i>=0;i--)s.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,r=e.length;n<r;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),c={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(t,e){return e.type||(e.data?"category":"value")}n.merge(u.prototype,l),o("parallel",u,h,c);var d=u;t.exports=d},df70:function(t,e,i){var n=i("3eba"),r=i("6fda"),a=i("29a8"),o=i("2145"),s=a.toolbox.restore;function l(t){this.model=t}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:s.title};var u=l.prototype;u.onclick=function(t,e,i){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},o.register("restore",l),n.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var c=l;t.exports=c},e057:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("2306"),o=i("c775"),s=o.getDefaultLabel,l=i("3301"),u=i("9d57"),c=u.getLayoutOnAxis,h=i("80f0"),d=i("4f85"),f=i("4319"),p=i("e887"),g=i("b0af"),v=g.createClipPath,m=i("aa3e"),y=i("00d8"),x=i("307b"),_=i("eaeb"),b=i("471e"),S=a.CACHED_LABEL_STYLE_PROPERTIES,T=["itemStyle"],w=["emphasis","itemStyle"],A=["label"],E=["emphasis","label"],I="e\0\0",D={cartesian2d:m,geo:y,singleAxis:x,polar:_,calendar:b};function M(t){var e,i=t.type;if("path"===i){var n=t.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=H(n);e=a.makePath(o,null,r,n.layout||"center"),e.__customPathData=o}else if("image"===i)e=new a.Image({}),e.__customImagePath=t.style.image;else if("text"===i)e=new a.Text({}),e.__customText=t.style.text;else if("group"===i)e=new a.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');var s=a.getShapeClass(i);e=new s}return e.__customGraphicType=i,e.name=t.name,e}function L(t,e,i,n,o,s,l){var u={},c=i.style||{};if(i.shape&&(u.shape=r.clone(i.shape)),i.position&&(u.position=i.position.slice()),i.scale&&(u.scale=i.scale.slice()),i.origin&&(u.origin=i.origin.slice()),i.rotation&&(u.rotation=i.rotation),"image"===t.type&&i.style){var h=u.style={};r.each(["x","y","width","height"],(function(e){C(e,h,c,t.style,s)}))}if("text"===t.type&&i.style){h=u.style={};r.each(["x","y"],(function(e){C(e,h,c,t.style,s)})),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke)}if("group"!==t.type&&(t.useStyle(c),s)){t.style.opacity=0;var d=c.opacity;null==d&&(d=1),a.initProps(t,{style:{opacity:d}},n,e)}s?t.attr(u):a.updateProps(t,u,n,e),i.hasOwnProperty("z2")&&t.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&t.attr("silent",i.silent),i.hasOwnProperty("invisible")&&t.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&t.attr("ignore",i.ignore),i.hasOwnProperty("info")&&t.attr("info",i.info);var f=i.styleEmphasis;a.setElementHoverStyle(t,f),l&&a.setAsHighDownDispatcher(t,!1!==f)}function C(t,e,i,n,r){null==i[t]||r||(e[t]=i[t],i[t]=n[t])}function k(t,e,i,n){var o=t.get("renderItem"),l=t.coordinateSystem,u={};l&&(u=l.prepareCustoms?l.prepareCustoms():D[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:_,style:b,styleEmphasis:S,visual:I,barLayout:M,currentSeriesIndices:L,font:C},u.api||{}),m={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:u.coordSys,dataInsideLength:e.count(),encode:R(t.getData())},y=!0;return function(t,i){return h=t,y=!0,o&&o(r.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},m),v)};function x(t){null==t&&(t=h),y&&(d=e.getItemModel(t),f=d.getModel(A),p=d.getModel(E),g=e.getItemVisual(t,"color"),y=!1)}function _(t,i){return null==i&&(i=h),e.get(e.getDimension(t||0),i)}function b(i,n){null==n&&(n=h),x(n);var o=d.getModel(T).getItemStyle();null!=g&&(o.fill=g);var l=e.getItemVisual(n,"opacity");null!=l&&(o.opacity=l);var u=i?V(i,f):f;return a.setTextStyle(o,u,null,{autoColor:g,isRectText:!0}),o.text=u.getShallow("show")?r.retrieve2(t.getFormattedLabel(n,"normal"),s(e,n)):null,i&&G(o,i),o}function S(i,n){null==n&&(n=h),x(n);var o=d.getModel(w).getItemStyle(),l=i?V(i,p):p;return a.setTextStyle(o,l,null,{isRectText:!0},!0),o.text=l.getShallow("show")?r.retrieve3(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),s(e,n)):null,i&&G(o,i),o}function I(t,i){return null==i&&(i=h),e.getItemVisual(i,t)}function M(t){if(l.getBaseAxis){var e=l.getBaseAxis();return c(r.defaults({axis:e},t),n)}}function L(){return i.getCurrentSeriesIndices()}function C(t){return a.getFont(t,i)}}function R(t){var e={};return r.each(t.dimensions,(function(i,n){var r=t.getDimensionInfo(i);if(!r.isExtraCoord){var a=r.coordDim,o=e[a]=e[a]||[];o[r.coordDimIndex]=n}})),e}function P(t,e,i,n,r,a){return t=O(t,e,i,n,r,a,!0),t&&a.setItemGraphicEl(e,t),t}function O(t,e,i,n,r,a,o){var s=!i;i=i||{};var l=i.type,u=i.shape,c=i.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&W(u)&&H(u)!==t.__customPathData||"image"===l&&j(c,"image")&&c.image!==t.__customImagePath||"text"===l&&j(u,"text")&&c.text!==t.__customText)&&(r.remove(t),t=null),!s){var h=!t;return!t&&(t=M(i)),L(t,e,i,n,a,h,o),"group"===l&&N(t,e,i,n,a),r.add(t),t}}function N(t,e,i,n,r){var a=i.children,o=a?a.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(o||l||u)if(l)F({oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,animatableModel:n,group:t,data:r});else{u&&t.removeAll();for(var c=0;c<o;c++)a[c]&&O(t.childAt(c),e,a[c],n,t,r)}}function F(t){new h(t.oldChildren,t.newChildren,B,B,t).add(z).update(z).remove(U).execute()}function B(t,e){var i=t&&t.name;return null!=i?i:I+e}function z(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null,r=null!=e?i.oldChildren[e]:null;O(r,i.dataIndex,n,i.animatableModel,i.group,i.data)}function V(t,e){var i=new f({},e);return r.each(S,(function(e,n){t.hasOwnProperty(e)&&(i.option[n]=t[e])})),i}function G(t,e){for(var i in e)!e.hasOwnProperty(i)&&S.hasOwnProperty(i)||(t[i]=e[i])}function U(t){var e=this.context,i=e.oldChildren[t];i&&e.group.remove(i)}function H(t){return t&&(t.pathData||t.d)}function W(t){return t&&(t.hasOwnProperty("pathData")||t.hasOwnProperty("d"))}function j(t,e){return t&&t.hasOwnProperty(e)}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(t,e){return l(this.getSource(),this)},getDataParams:function(t,e,i){var n=d.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),p.extend({type:"custom",_data:null,render:function(t,e,i,n){var r=this._data,a=t.getData(),o=this.group,s=k(t,a,e,i);a.diff(r).add((function(e){P(null,e,s(e,n),t,o,a)})).update((function(e,i){var l=r.getItemGraphicEl(i);P(l,e,s(e,n),t,o,a)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&o.remove(e)})).execute();var l=t.get("clip",!0)?v(t.coordinateSystem,!1,t):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},incrementalPrepareRender:function(t,e,i){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n,r){var a=e.getData(),o=k(e,a,i,n);function s(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var l=t.start;l<t.end;l++){var u=P(null,l,o(l,r),e,this.group,a);u.traverse(s)}},dispose:r.noop,filterForExposedEvent:function(t,e,i,n){var r=e.element;if(null==r||i.name===r)return!0;while((i=i.parent)&&i!==this.group)if(i.name===r)return!0;return!1}})},e073:function(t,e,i){var n=i("6d8b"),r=i("e86a"),a=i("e0d3"),o=a.makeInner,s=i("697e"),l=s.makeLabelFormatter,u=s.getOptionCategoryInterval,c=s.shouldShowAllLabels,h=o();function d(t){return"category"===t.type?p(t):m(t)}function f(t,e){return"category"===t.type?v(t,e):{ticks:t.scale.getTicks()}}function p(t){var e=t.getLabelModel(),i=g(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function g(t,e){var i,r,a=y(t,"labels"),o=u(e),s=x(a,o);return s||(n.isFunction(o)?i=A(t,o):(r="auto"===o?b(t):o,i=w(t,r)),_(a,o,{labels:i,labelCategoryInterval:r}))}function v(t,e){var i,r,a=y(t,"ticks"),o=u(e),s=x(a,o);if(s)return s;if(e.get("show")&&!t.scale.isBlank()||(i=[]),n.isFunction(o))i=A(t,o,!0);else if("auto"===o){var l=g(t,t.getLabelModel());r=l.labelCategoryInterval,i=n.map(l.labels,(function(t){return t.tickValue}))}else r=o,i=w(t,r,!0);return _(a,o,{ticks:i,tickCategoryInterval:r})}function m(t){var e=t.scale.getTicks(),i=l(t);return{labels:n.map(e,(function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}function y(t,e){return h(t)[e]||(h(t)[e]=[])}function x(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function _(t,e,i){return t.push({key:e,value:i}),i}function b(t){var e=h(t).autoInterval;return null!=e?e:h(t).autoInterval=t.calculateCategoryInterval()}function S(t){var e=T(t),i=l(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),s=a.count();if(o[1]-o[0]<1)return 0;var u=1;s>40&&(u=Math.max(1,Math.floor(s/40)));for(var c=o[0],d=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(d*Math.cos(n)),p=Math.abs(d*Math.sin(n)),g=0,v=0;c<=o[1];c+=u){var m=0,y=0,x=r.getBoundingRect(i(c),e.font,"center","top");m=1.3*x.width,y=1.3*x.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var _=g/f,b=v/p;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b))),w=h(t.model),A=t.getExtent(),E=w.lastAutoInterval,I=w.lastTickCount;return null!=E&&null!=I&&Math.abs(E-S)<=1&&Math.abs(I-s)<=1&&E>S&&w.axisExtend0===A[0]&&w.axisExtend1===A[1]?S=E:(w.lastTickCount=s,w.lastAutoInterval=S,w.axisExtend0=A[0],w.axisExtend1=A[1]),S}function T(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function w(t,e,i){var n=l(t),r=t.scale,a=r.getExtent(),o=t.getLabelModel(),s=[],u=Math.max((e||0)+1,1),h=a[0],d=r.count();0!==h&&u>1&&d/u>2&&(h=Math.round(Math.ceil(h/u)*u));var f=c(t),p=o.get("showMinLabel")||f,g=o.get("showMaxLabel")||f;p&&h!==a[0]&&m(a[0]);for(var v=h;v<=a[1];v+=u)m(v);function m(t){s.push(i?t:{formattedLabel:n(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&v-u!==a[1]&&m(a[1]),s}function A(t,e,i){var r=t.scale,a=l(t),o=[];return n.each(r.getTicks(),(function(t){var n=r.getLabel(t);e(t,n)&&o.push(i?t:{formattedLabel:a(t),rawLabel:n,tickValue:t})})),o}e.createAxisLabels=d,e.createAxisTicks=f,e.calculateCategoryInterval=S},e0d3:function(t,e,i){var n=i("6d8b"),r=i("22d1"),a=n.each,o=n.isObject,s=n.isArray,l="series\0";function u(t){return t instanceof Array?t:null==t?[]:[t]}function c(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var a=i[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(t){return!o(t)||s(t)||t instanceof Date?t:t.value}function f(t){return o(t)&&!(t instanceof Array)}function p(t,e){e=(e||[]).slice();var i=n.map(t||[],(function(t,e){return{exist:t}}));return a(e,(function(t,n){if(o(t)){for(var r=0;r<i.length;r++)if(!i[r].option&&null!=t.id&&i[r].exist.id===t.id+"")return i[r].option=t,void(e[n]=null);for(r=0;r<i.length;r++){var a=i[r].exist;if(!i[r].option&&(null==a.id||null==t.id)&&null!=t.name&&!m(t)&&!m(a)&&a.name===t.name+"")return i[r].option=t,void(e[n]=null)}}})),a(e,(function(t,e){if(o(t)){for(var n=0;n<i.length;n++){var r=i[n].exist;if(!i[n].option&&!m(r)&&null==t.id){i[n].option=t;break}}n>=i.length&&i.push({option:t})}})),i}function g(t){var e=n.createHashMap();a(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),a(t,(function(t,i){var r=t.option;n.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),a(t,(function(t,i){var n=t.exist,r=t.option,a=t.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":n?n.name:l+i,n)a.id=n.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}}))}function v(t){var e=t.name;return!(!e||!e.indexOf(l))}function m(t){return o(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function y(t,e){var i={},n={};return r(t||[],i),r(e||[],n,i),[a(i),a(n)];function r(t,e,i){for(var n=0,r=t.length;n<r;n++)for(var a=t[n].seriesId,o=u(t[n].dataIndex),s=i&&i[a],l=0,c=o.length;l<c;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function a(t,e){var i=[];for(var n in t)if(t.hasOwnProperty(n)&&null!=t[n])if(e)i.push(+n);else{var r=a(t[n],!0);r.length&&i.push({seriesId:n,dataIndex:r})}return i}}function x(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?n.isArray(e.dataIndex)?n.map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?n.isArray(e.name)?n.map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function _(){var t="__\0ec_inner_"+b+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}var b=0;function S(t,e,i){if(n.isString(e)){var r={};r[e+"Index"]=0,e=r}var o=i&&i.defaultMainType;!o||T(e,o+"Index")||T(e,o+"Id")||T(e,o+"Name")||(e[o+"Index"]=0);var s={};return a(e,(function(r,a){r=e[a];if("dataIndex"!==a&&"dataIndexInside"!==a){var o=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],u=(o[2]||"").toLowerCase();if(!(!l||!u||null==r||"index"===u&&"none"===r||i&&i.includeMainTypes&&n.indexOf(i.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===r||(c[u]=r);var h=t.queryComponents(c);s[l+"Models"]=h,s[l+"Model"]=h[0]}}else s[a]=r})),s}function T(t,e){return t&&t.hasOwnProperty(e)}function w(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function A(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function E(t){return"auto"===t?r.domSupported?"html":"richText":t||"html"}function I(t,e){var i=n.createHashMap(),r=[];return n.each(t,(function(t){var n=e(t);(i.get(n)||(r.push(n),i.set(n,[]))).push(t)})),{keys:r,buckets:i}}e.normalizeToArray=u,e.defaultEmphasis=c,e.TEXT_STYLE_OPTIONS=h,e.getDataItemValue=d,e.isDataItemOption=f,e.mappingToExists=p,e.makeIdAndName=g,e.isNameSpecified=v,e.isIdInner=m,e.compressBatches=y,e.queryDataIndex=x,e.makeInner=_,e.parseFinder=S,e.setAttribute=w,e.getAttribute=A,e.getTooltipRenderMode=E,e.groupData=I},e0d8:function(t,e,i){var n=i("625e");function r(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(t){return t},r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0});var a=r;t.exports=a},e1fc:function(t,e,i){var n=i("6d8b"),r=i("d5b7"),a=i("9850"),o=function(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,r=this._children,a=n.indexOf(r,t);return a<0||(r.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i.length;e++)t=i[e],n&&(n.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(n)),t.parent=null;return i.length=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.addToStorage(i),i instanceof o&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.delFromStorage(i),i instanceof o&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new a(0,0,0,0),n=t||this._children,r=[],o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(i.copy(l),i.applyTransform(u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},n.inherits(o,r);var s=o;t.exports=s},e263:function(t,e,i){var n=i("401b"),r=i("4a3f"),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=n.create(),h=n.create(),d=n.create();function f(t,e,i){if(0!==t.length){var n,r=t[0],s=r[0],l=r[0],u=r[1],c=r[1];for(n=1;n<t.length;n++)r=t[n],s=a(s,r[0]),l=o(l,r[0]),u=a(u,r[1]),c=o(c,r[1]);e[0]=s,e[1]=u,i[0]=l,i[1]=c}}function p(t,e,i,n,r,s){r[0]=a(t,i),r[1]=a(e,n),s[0]=o(t,i),s[1]=o(e,n)}var g=[],v=[];function m(t,e,i,n,s,l,u,c,h,d){var f,p=r.cubicExtrema,m=r.cubicAt,y=p(t,i,s,u,g);for(h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0,f=0;f<y;f++){var x=m(t,i,s,u,g[f]);h[0]=a(x,h[0]),d[0]=o(x,d[0])}for(y=p(e,n,l,c,v),f=0;f<y;f++){var _=m(e,n,l,c,v[f]);h[1]=a(_,h[1]),d[1]=o(_,d[1])}h[0]=a(t,h[0]),d[0]=o(t,d[0]),h[0]=a(u,h[0]),d[0]=o(u,d[0]),h[1]=a(e,h[1]),d[1]=o(e,d[1]),h[1]=a(c,h[1]),d[1]=o(c,d[1])}function y(t,e,i,n,s,l,u,c){var h=r.quadraticExtremum,d=r.quadraticAt,f=o(a(h(t,i,s),1),0),p=o(a(h(e,n,l),1),0),g=d(t,i,s,f),v=d(e,n,l,p);u[0]=a(t,s,g),u[1]=a(e,l,v),c[0]=o(t,s,g),c[1]=o(e,l,v)}function x(t,e,i,r,a,o,f,p,g){var v=n.min,m=n.max,y=Math.abs(a-o);if(y%u<1e-4&&y>1e-4)return p[0]=t-i,p[1]=e-r,g[0]=t+i,void(g[1]=e+r);if(c[0]=l(a)*i+t,c[1]=s(a)*r+e,h[0]=l(o)*i+t,h[1]=s(o)*r+e,v(p,c,h),m(g,c,h),a%=u,a<0&&(a+=u),o%=u,o<0&&(o+=u),a>o&&!f?o+=u:a<o&&f&&(a+=u),f){var x=o;o=a,a=x}for(var _=0;_<o;_+=Math.PI/2)_>a&&(d[0]=l(_)*i+t,d[1]=s(_)*r+e,v(p,d,p),m(g,d,g))}e.fromPoints=f,e.fromLine=p,e.fromCubic=m,e.fromQuadratic=y,e.fromArc=x},e468:function(t,e,i){var n=i("e46b"),r=i("6d8b"),a=i("2f45"),o=a.getDimensionTypeByAxis,s=i("0f99"),l=s.makeSeriesEncodeForAxisCoordSys,u={_baseAxisDim:null,getInitialData:function(t,e){var i,a,s=e.getComponent("xAxis",this.get("xAxisIndex")),u=e.getComponent("yAxis",this.get("yAxisIndex")),c=s.get("type"),h=u.get("type");"category"===c?(t.layout="horizontal",i=s.getOrdinalMeta(),a=!0):"category"===h?(t.layout="vertical",i=u.getOrdinalMeta(),a=!0):t.layout=t.layout||"horizontal";var d=["x","y"],f="horizontal"===t.layout?0:1,p=this._baseAxisDim=d[f],g=d[1-f],v=[s,u],m=v[f].get("type"),y=v[1-f].get("type"),x=t.data;if(x&&a){var _=[];r.each(x,(function(t,e){var i;t.value&&r.isArray(t.value)?(i=t.value.slice(),t.value.unshift(e)):r.isArray(t)?(i=t.slice(),t.unshift(e)):i=t,_.push(i)})),t.data=_}var b=this.defaultValueDimensions,S=[{name:p,type:o(m),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:o(y),dimsDef:b.slice()}];return n(this,{coordDimensions:S,dimensionsCount:b.length+1,encodeDefaulter:r.curry(l,S,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=u},e46b:function(t,e,i){var n=i("b1d4"),r=i("6179"),a=i("6d8b"),o=a.extend,s=a.isArray;function l(t,e,i){e=s(e)&&{coordDimensions:e}||o({},e);var a=t.getSource(),l=n(a,e),u=new r(l,t);return u.initData(a,i),u}t.exports=l},e47b:function(t,e,i){var n=i("e0d3"),r=n.makeInner,a=n.normalizeToArray,o=r();function s(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}var l={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,i){e=e||this;var n=o(e),r=n.colorIdx||0,l=n.colorNameMap=n.colorNameMap||{};if(l.hasOwnProperty(t))return l[t];var u=a(this.get("color",!0)),c=this.get("colorLayer",!0),h=null!=i&&c?s(c,i):u;if(h=h||u,h&&h.length){var d=h[r];return t&&(l[t]=d),n.colorIdx=(r+1)%h.length,d}}};t.exports=l},e4d1:function(t,e,i){i("6932"),i("3a56"),i("7dcf"),i("3790"),i("2325"),i("2c17"),i("9e87")},e6cd:function(t,e,i){var n=i("6d8b");function r(){var t,e=[],i={};return{add:function(t,r,a,o,s){return n.isString(o)&&(s=o,o=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:r,time:a,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,r=0,a=e.length;r<a;r++){var o=e[r];o.el.animateTo(o.target,o.time,o.delay,o.easing,s)}return this;function s(){n--,n||(e.length=0,i={},t&&t())}}}}e.createWrap=r},e7aa:function(t,e,i){var n=i("2306"),r=i("c775"),a=r.getDefaultLabel;function o(t,e,i,r,o,l,u){var c=i.getModel("label"),h=i.getModel("emphasis.label");n.setLabelStyle(t,e,c,h,{labelFetcher:o,labelDataIndex:l,defaultText:a(o.getData(),l),isRectText:!0,autoColor:r}),s(t),s(e)}function s(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=o},e7d2:function(t,e,i){var n=i("4a3f");function r(t,e,i,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>e+d&&h>r+d&&h>o+d&&h>l+d||h<e-d&&h<r-d&&h<o-d&&h<l-d||c>t+d&&c>i+d&&c>a+d&&c>s+d||c<t-d&&c<i-d&&c<a-d&&c<s-d)return!1;var f=n.cubicProjectPoint(t,e,i,r,a,o,s,l,c,h,null);return f<=d/2}e.containStroke=r},e86a:function(t,e,i){var n=i("9850"),r=i("5e76"),a=i("6d8b"),o=a.getContext,s=a.extend,l=a.retrieve2,u=a.retrieve3,c=a.trim,h={},d=0,f=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",v={};function m(t,e){v[t]=e}function y(t,e){e=e||g;var i=t+":"+e;if(h[i])return h[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n.length;a<o;a++)r=Math.max(C(n[a],e).width,r);return d>f&&(d=0,h={}),d++,h[i]=r,r}function x(t,e,i,n,r,a,o,s){return o?b(t,e,i,n,r,a,o,s):_(t,e,i,n,r,a,s)}function _(t,e,i,r,a,o,s){var l=k(t,e,a,o,s),u=y(t,e);a&&(u+=a[1]+a[3]);var c=l.outerHeight,h=S(0,u,i),d=T(0,c,r),f=new n(h,d,u,c);return f.lineHeight=l.lineHeight,f}function b(t,e,i,r,a,o,s,l){var u=R(t,{rich:s,truncate:l,font:e,textAlign:i,textPadding:a,textLineHeight:o}),c=u.outerWidth,h=u.outerHeight,d=S(0,c,i),f=T(0,h,r);return new n(d,f,c,h)}function S(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function T(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function w(t,e,i){var n=e.textPosition,r=e.textDistance,a=i.x,o=i.y;r=r||0;var s=i.height,l=i.width,u=s/2,c="left",h="top";switch(n){case"left":a-=r,o+=u,c="right",h="middle";break;case"right":a+=r+l,o+=u,h="middle";break;case"top":a+=l/2,o-=r,c="center",h="bottom";break;case"bottom":a+=l/2,o+=s+r,c="center";break;case"inside":a+=l/2,o+=u,c="center",h="middle";break;case"insideLeft":a+=r,o+=u,h="middle";break;case"insideRight":a+=l-r,o+=u,c="right",h="middle";break;case"insideTop":a+=l/2,o+=r,c="center";break;case"insideBottom":a+=l/2,o+=s-r,c="center",h="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,c="right";break;case"insideBottomLeft":a+=r,o+=s-r,h="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,c="right",h="bottom";break}return t=t||{},t.x=a,t.y=o,t.textAlign=c,t.textVerticalAlign=h,t}function A(t,e,i){var n={textPosition:t,textDistance:i};return w({},n,e)}function E(t,e,i,n,r){if(!e)return"";var a=(t+"").split("\n");r=I(e,i,n,r);for(var o=0,s=a.length;o<s;o++)a[o]=D(a[o],r);return a.join("\n")}function I(t,e,i,n){n=s({},n),n.font=e;i=l(i,"...");n.maxIterations=l(n.maxIterations,2);var r=n.minChar=l(n.minChar,0);n.cnCharWidth=y("国",e);var a=n.ascCharWidth=y("a",e);n.placeholder=l(n.placeholder,"");for(var o=t=Math.max(0,t-1),u=0;u<r&&o>=a;u++)o-=a;var c=y(i,e);return c>o&&(i="",c=0),o=t-c,n.ellipsis=i,n.ellipsisWidth=c,n.contentWidth=o,n.containerWidth=t,n}function D(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var a=y(t,n);if(a<=i)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?M(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,s),a=y(t,n)}return""===t&&(t=e.placeholder),t}function M(t,e,i,n){for(var r=0,a=0,o=t.length;a<o&&r<e;a++){var s=t.charCodeAt(a);r+=0<=s&&s<=127?i:n}return a}function L(t){return y("国",t)}function C(t,e){return v.measureText(t,e)}function k(t,e,i,n,r){null!=t&&(t+="");var a=l(n,L(e)),o=t?t.split("\n"):[],s=o.length*a,u=s,c=!0;if(i&&(u+=i[0]+i[2]),t&&r){c=!1;var h=r.outerHeight,d=r.outerWidth;if(null!=h&&u>h)t="",o=[];else if(null!=d)for(var f=I(d-(i?i[1]+i[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=o.length;p<g;p++)o[p]=D(o[p],f)}return{lines:o,height:s,outerHeight:u,lineHeight:a,canCacheByTextString:c}}function R(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;var n,a=p.lastIndex=0;while(null!=(n=p.exec(t))){var o=n.index;o>a&&P(i,t.substring(a,o)),P(i,n[2],n[1]),a=p.lastIndex}a<t.length&&P(i,t.substring(a,t.length));var s=i.lines,c=0,h=0,d=[],f=e.textPadding,g=e.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 x=0;x<s.length;x++){for(var _=s[x],b=0,S=0,T=0;T<_.tokens.length;T++){var w=_.tokens[T],A=w.styleName&&e.rich[w.styleName]||{},I=w.textPadding=A.textPadding,D=w.font=A.font||e.font,M=w.textHeight=l(A.textHeight,L(D));if(I&&(M+=I[0]+I[2]),w.height=M,w.lineHeight=u(A.textLineHeight,e.textLineHeight,M),w.textAlign=A&&A.textAlign||e.textAlign,w.textVerticalAlign=A&&A.textVerticalAlign||"middle",null!=m&&c+w.lineHeight>m)return{lines:[],width:0,height:0};w.textWidth=y(w.text,D);var C=A.textWidth,k=null==C||"auto"===C;if("string"===typeof C&&"%"===C.charAt(C.length-1))w.percentWidth=C,d.push(w),C=0;else{if(k){C=w.textWidth;var R=A.textBackgroundColor,O=R&&R.image;O&&(O=r.findExistImage(O),r.isImageReady(O)&&(C=Math.max(C,O.width*M/O.height)))}var N=I?I[1]+I[3]:0;C+=N;var F=null!=v?v-S:null;null!=F&&F<C&&(!k||F<N?(w.text="",w.textWidth=C=0):(w.text=E(w.text,F-N,D,g.ellipsis,{minChar:g.minChar}),w.textWidth=y(w.text,D),C=w.textWidth+N))}S+=w.width=C,A&&(b=Math.max(b,w.lineHeight))}_.width=S,_.lineHeight=b,c+=b,h=Math.max(h,S)}i.outerWidth=i.width=l(e.textWidth,h),i.outerHeight=i.height=l(e.textHeight,c),f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]);for(x=0;x<d.length;x++){w=d[x];var B=w.percentWidth;w.width=parseInt(B,10)/100*h}return i}function P(t,e,i){for(var n=""===e,r=e.split("\n"),a=t.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:i,text:s,isLineHolder:!s&&!n};if(o)a.push({tokens:[l]});else{var u=(a[a.length-1]||(a[0]={tokens:[]})).tokens,c=u.length;1===c&&u[0].isLineHolder?u[0]=l:(s||!c||n)&&u.push(l)}}}function O(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&c(e)||t.textFont||t.font}v.measureText=function(t,e){var i=o();return i.font=e||g,i.measureText(t)},e.DEFAULT_FONT=g,e.$override=m,e.getWidth=y,e.getBoundingRect=x,e.adjustTextX=S,e.adjustTextY=T,e.calculateTextPosition=w,e.adjustTextPositionOnRect=A,e.truncateText=E,e.getLineHeight=L,e.measureText=C,e.parsePlainText=k,e.parseRichText=R,e.makeFont=O},e887:function(t,e,i){var n=i("6d8b"),r=n.each,a=i("e1fc"),o=i("8918"),s=i("625e"),l=i("e0d3"),u=i("2306"),c=i("f47d"),h=c.createTask,d=i("cccd"),f=l.makeInner(),p=d();function g(){this.group=new a,this.uid=o.getUID("viewChart"),this.renderTask=h({plan:x,reset:_}),this.renderTask.context={view:this}}g.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){y(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){y(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var v=g.prototype;function m(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!u.isHighDownDispatcher(t)))for(var n=0,r=t.childCount();n<r;n++)m(t.childAt(n),e,i)}function y(t,e,i){var n=l.queryDataIndex(t,e),a=e&&null!=e.highlightKey?u.getHighlightDigit(e.highlightKey):null;null!=n?r(l.normalizeToArray(n),(function(e){m(t.getItemGraphicEl(e),i,a)})):t.eachItemGraphicEl((function(t){m(t,i,a)}))}function x(t){return p(t.model)}function _(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&f(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,i,n,r),b[l]}v.updateView=v.updateLayout=v.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},s.enableClassExtend(g,["dispose"]),s.enableClassManagement(g,{registerWhenExtend:!0}),g.markUpdateMethod=function(t,e){f(t).updateMethod=e};var b={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},S=g;t.exports=S},e9c4:function(t,e,i){var n=i("23e7"),r=i("d066"),a=i("d039"),o=r("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,c=function(t,e,i){var n=i.charAt(e-1),r=i.charAt(e+1);return l.test(t)&&!u.test(r)||u.test(t)&&!l.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},h=a((function(){return'"\\udf06\\ud834"'!==o("\udf06\ud834")||'"\\udead"'!==o("\udead")}));o&&n({target:"JSON",stat:!0,forced:h},{stringify:function(t,e,i){var n=o.apply(null,arguments);return"string"==typeof n?n.replace(s,c):n}})},e9f9:function(t,e,i){var n=i("4942"),r=i("d3a4"),a=i("6d8b"),o=a.each;function s(t){return parseInt(t,10)}function l(t,e){r.initVML(),this.root=t,this.storage=e;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;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var a=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){a.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function u(t){return function(){n('In IE8.0 VML mode painter not support method "'+t+'"')}}l.prototype={constructor:l,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t.length;i++){var n=t[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!==t||this._height!==e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i.height=e+"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 t=this.root,e=t.currentStyle;return(t.clientWidth||s(e.width))-s(e.paddingLeft)-s(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||s(e.height))-s(e.paddingTop)-s(e.paddingBottom)|0}},o(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){l.prototype[t]=u(t)}));var c=l;t.exports=c},eabf:function(t,e,i){var n=i("6d8b");function r(t){t&&n.isArray(t.series)&&n.each(t.series,(function(t){n.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}t.exports=r},eaea:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("22d1"),o=i("60e3"),s=i("5f14"),l=i("2b8c"),u=i("e0d3"),c=i("3842"),h=s.mapVisual,d=s.eachVisual,f=r.isArray,p=r.each,g=c.asc,v=c.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(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;a.canvasSupported||(i.realtime=!1),!e&&l.replaceVisualOption(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,i){e.push(i)})):e=u.normalizeToArray(t),e},eachTargetSeries:function(t,e){r.each(this.getTargetSeriesIndices(),(function(i){t.call(e,this.ecModel.getSeriesByIndex(i))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(i){i===t&&(e=!0)})),e},formatValueText:function(t,e,i){var n,a,o=this.option,s=o.precision,l=this.dataBound,u=o.formatter;return i=i||["<",">"],r.isArray(t)&&(t=t.slice(),n=!0),a=e?t:n?[c(t[0]),c(t[1])]:c(t),r.isString(u)?u.replace("{value}",n?a[0]:a).replace("{value2}",n?a[1]:a):r.isFunction(u)?n?u(t[0],t[1]):u(t):n?t[0]===l[0]?i[0]+" "+a[1]:t[1]===l[1]?i[1]+" "+a[0]:a[0]+" - "+a[1]:a;function c(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var a=n[r],o=t.getDimensionInfo(a);if(!o.isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),a=e.controller||(e.controller={});r.merge(n,i),r.merge(a,i);var l=this.isCategory();function u(i){f(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")},p(this.stateList,(function(t){var e=i[t];if(r.isString(e)){var n=o.get(e,"active",l);n?(i[t]={},i[t][e]=n):delete i[t]}}),this)}function c(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},p(n,(function(t,e){if(s.isValidType(e)){var i=o.get(e,"inactive",l);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");p(this.stateList,(function(a){var o=this.itemSize,s=t[a];s||(s=t[a]={color:l?n:[n]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&r.clone(i)||(l?o[0]:[o[0],o[0]])),s.symbol=h(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var c=-1/0;d(u,(function(t){t>c&&(c=t)})),s.symbolSize=h(u,(function(t){return v(t,[0,c],[0,o[0]],!0)}))}}),this)}u.call(this,n),u.call(this,a),c.call(this,n,"inRange","outOfRange"),g.call(this,a)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m}),x=y;t.exports=x},eaeb:function(t,e,i){var n=i("6d8b");function r(t,e){return n.map(["Radius","Angle"],(function(i,n){var r=this["get"+i+"Axis"](),a=e[n],o=t[n]/2,s="dataTo"+i,l="category"===r.type?r.getBandWidth():Math.abs(r[s](a-o)-r[s](a+o));return"Angle"===i&&(l=l*Math.PI/180),l}),this)}function a(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:a[1],r0:a[0]},api:{coord:n.bind((function(n){var r=e.dataToRadius(n[0]),a=i.dataToAngle(n[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o})),size:n.bind(r,t)}}}t.exports=a},eb6b:function(t,e,i){var n=i("6d8b"),r=i("e0d3"),a=r.makeInner,o=i("cd33"),s=i("133d"),l=n.each,u=n.curry,c=a();function h(t,e,i){var r=t.currTrigger,a=[t.x,t.y],o=t,c=t.dispatchAction||n.bind(i.dispatchAction,i),h=e.getComponent("axisPointer").coordSysAxesInfo;if(h){b(a)&&(a=s({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var f=b(a),S=o.axesInfo,T=h.axesInfo,w="leave"===r||b(a),A={},E={},I={list:[],map:{}},D={showPointer:u(p,E),showTooltip:u(g,I)};l(h.coordSysMap,(function(t,e){var i=f||t.containPoint(a);l(h.coordSysAxesInfo[e],(function(t,e){var n=t.axis,r=x(S,t);if(!w&&i&&(!S||r)){var o=r&&r.value;null!=o||f||(o=n.pointToData(a)),null!=o&&d(t,o,D,!1,A)}}))}));var M={};return l(T,(function(t,e){var i=t.linkGroup;i&&!E[e]&&l(i.axesInfo,(function(e,n){var r=E[n];if(e!==t&&r){var a=r.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,_(e),_(t)))),M[t.key]=a}}))})),l(M,(function(t,e){d(T[e],t,D,!0,A)})),v(E,T,A),m(I,a,t,c),y(T,c,i),A}}function d(t,e,i,r,a){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var s=f(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==a.seriesIndex&&n.extend(a,l[0]),!r&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,a),i.showTooltip(t,s,u)}else i.showPointer(t,e)}function f(t,e){var i=e.axis,n=i.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return l(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(d,t,i);h=f.dataIndices,c=f.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===i.type?.5:null),!h.length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=o&&((g<o||p>=0&&s<0)&&(o=g,s=p,r=c,a.length=0),l(h,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}function p(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function g(t,e,i,n){var r=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var u=e.coordSys.model,c=o.makeKey(u),h=t.map[c];h||(h=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function v(t,e,i){var n=i.axesInfo=[];l(e,(function(e,i){var r=e.axisPointerModel.option,a=t[i];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function m(t,e,i,n){if(!b(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function y(t,e,i){var r=i.getZr(),a="axisPointerLastHighlights",o=c(r)[a]||{},s=c(r)[a]={};l(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&l(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var u=[],h=[];n.each(o,(function(t,e){!s[e]&&h.push(t)})),n.each(s,(function(t,e){!o[e]&&u.push(t)})),h.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),u.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:u})}function x(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function _(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function b(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=h},ebf9:function(t,e,i){var n=i("3eba");n.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))}))},ec02:function(t,e,i){var n=i("6d8b"),r=i("84ce"),a=function(t,e,i,n,a){r.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},n.inherits(a,r);var o=a;t.exports=o},ec34:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=r.createHashMap,o=r.isString,s=r.isArray,l=r.each,u=(r.assert,i("3041")),c=u.parseXML,h=a(),d={registerMap:function(t,e,i){var n;return s(e)?n=e:e.svg?n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),n=[{type:"geoJSON",source:e,specialAreas:i}]),l(n,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var i=f[e];i(t)})),h.set(t,n)},retrieveMap:function(t){return h.get(t)}},f={geoJSON:function(t){var e=t.source;t.geoJSON=o(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=c(t.source)}};t.exports=d},ec6f:function(t,e,i){var n=i("6d8b"),r=n.createHashMap,a=n.isTypedArray,o=i("625e"),s=o.enableClassCheck,l=i("93d0"),u=l.SOURCE_FORMAT_ORIGINAL,c=l.SERIES_LAYOUT_BY_COLUMN,h=l.SOURCE_FORMAT_UNKNOWN,d=l.SOURCE_FORMAT_TYPED_ARRAY,f=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===f?{}:[]),this.sourceFormat=t.sourceFormat||h,this.seriesLayoutBy=t.seriesLayoutBy||c,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&r(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}p.seriesDataToSource=function(t){return new p({data:t,sourceFormat:a(t)?d:u,fromDataset:!1})},s(p);var g=p;t.exports=g},ecf8:function(t,e,i){var n=i("6d8b"),r=i("3842"),a=r.parsePercent,o=n.each;function s(t){var e=l(t);o(e,(function(t){var e=t.seriesModels;e.length&&(u(t),o(e,(function(e,i){c(e,t.boxOffsetList[i],t.boxWidthList[i])})))}))}function l(t){var e=[],i=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),a=n.indexOf(i,r);a<0&&(a=i.length,i[a]=r,e[a]={axis:r,seriesModels:[]}),e[a].seriesModels.push(t)})),e}function u(t){var e,i,r=t.axis,s=t.seriesModels,l=s.length,u=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if("category"===r.type)i=r.getBandWidth();else{var d=0;o(s,(function(t){d=Math.max(d,t.getData().count())})),e=r.getExtent(),Math.abs(e[1]-e[0])}o(s,(function(t){var e=t.get("boxWidth");n.isArray(e)||(e=[e,e]),h.push([a(e[0],i)||0,a(e[1],i)||0])}));var f=.8*i-2,p=f/l*.3,g=(f-p*(l-1))/l,v=g/2-f/2;o(s,(function(t,e){c.push(v),v+=p+g,u.push(Math.min(Math.max(g,h[e][0]),h[e][1]))}))}function c(t,e,i){var n=t.coordinateSystem,r=t.getData(),a=i/2,o="horizontal"===t.get("layout")?0:1,s=1-o,l=["x","y"],u=r.mapDimension(l[o]),c=r.mapDimension(l[s],!0);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),f=x(d,c[2],h),p=x(d,c[0],h),g=x(d,c[1],h),v=x(d,c[3],h),m=x(d,c[4],h),y=[];_(y,g,0),_(y,v,1),y.push(p,g,m,v),b(y,p),b(y,m),b(y,f),r.setItemLayout(h,{initBaseline:f[s],ends:y})}function x(t,i,a){var l,u=r.get(i,a),c=[];return c[o]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=n.dataToPoint(c),l[o]+=e),l}function _(t,e,i){var n=e.slice(),r=e.slice();n[o]+=a,r[o]-=a,i?t.push(n,r):t.push(r,n)}function b(t,e){var i=e.slice(),n=e.slice();i[o]-=a,n[o]+=a,t.push(i,n)}}t.exports=s},ed21:function(t,e,i){var n=i("2cf4c"),r=n.devicePixelRatio,a=i("6d8b"),o=i("4942"),s=i("9850"),l=i("04f6"),u=i("5e68"),c=i("98b7"),h=i("0da8"),d=i("22d1"),f=1e5,p=314159,g=.01,v=.001;function m(t){return parseInt(t,10)}function y(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}var x=new s(0,0,0,0),_=new s(0,0,0,0);function b(t,e,i){return x.copy(t.getBoundingRect()),t.transform&&x.applyTransform(t.transform),_.width=e,_.height=i,!x.intersect(_)}function S(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}function T(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}function w(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var A=function(t,e,i){this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=a.extend({},i||{}),this.dpr=i.devicePixelRatio||r,this._singleCanvas=n,this.root=t;var o=t.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var s=this._zlevelList=[],l=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,n){var c=t.width,h=t.height;null!=i.width&&(c=i.width),null!=i.height&&(h=i.height),this.dpr=i.devicePixelRatio||1,t.width=c*this.dpr,t.height=h*this.dpr,this._width=c,this._height=h;var d=new u(t,this,this.dpr);d.__builtin__=!0,d.initContext(),l[p]=d,d.zlevel=p,s.push(p),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=w(this._width,this._height);t.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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;n<i.length;n++){var r=i[n],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===n?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return i.__from=t,t.__hoverMir=i,e&&i.setStyle(e),this._hoverElements.push(i),i}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=a.indexOf(i,e);n>=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i<e.length;i++){var n=e[i].__from;n&&(n.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){l(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(f));var n={};i.ctx.save();for(var r=0;r<e;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t.splice(r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(f)},_paintList:function(t,e,i){if(this._redrawId===i){e=e||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var r=this;c((function(){r._paintList(t,e,i)}))}}},_compositeManually:function(){var t=this.getLayer(p).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer((function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)}))},_doPaintList:function(t,e){for(var i=[],n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n],o=this._layers[r];o.__builtin__&&o!==this._hoverlayer&&(o.__dirty||e)&&i.push(o)}for(var s=!0,l=0;l<i.length;l++){o=i[l];var u=o.ctx,c={};u.save();var h=e?o.__startIndex:o.__drawIndex,f=!e&&o.incremental&&Date.now,p=f&&Date.now(),g=o.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(o.__startIndex===o.__endIndex)o.clear(!1,g);else if(h===o.__startIndex){var v=t[h];v.incremental&&v.notClear&&!e||o.clear(!1,g)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=o.__startIndex);for(var m=h;m<o.__endIndex;m++){var y=t[m];if(this._doPaintEl(y,o,e,c),y.__dirty=y.__dirtyText=!1,f){var x=Date.now()-p;if(x>15)break}}o.__drawIndex=m,o.__drawIndex<o.__endIndex&&(s=!1),c.prevElClipPaths&&u.restore(),u.restore()}return d.wxa&&a.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),s},_doPaintEl:function(t,e,i,n){var r=e.ctx,a=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!a||a[0]||a[3])&&(!t.culling||!b(t,this._width,this._height))){var o=t.__clipPaths,s=n.prevElClipPaths;s&&!S(o,s)||(s&&(r.restore(),n.prevElClipPaths=null,n.prevEl=null),o&&(r.save(),T(o,r),n.prevElClipPaths=o)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=p);var i=this._layers[t];return i||(i=new u("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?a.merge(i,this._layerConfig[t],!0):this._layerConfig[t-g]&&a.merge(i,this._layerConfig[t-g],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,a=null,s=-1,l=this._domRoot;if(i[t])o("ZLevel "+t+" has been used already");else if(y(e)){if(r>0&&t>n[0]){for(s=0;s<r-1;s++)if(n[s]<t&&n[s+1]>t)break;a=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else o("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r.length;n++)i=r[n],t.call(e,this._layers[i],i)},eachBuiltinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a.length;r++)n=a[r],i=this._layers[n],i.__builtin__&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a.length;r++)n=a[r],i=this._layers[n],i.__builtin__||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var r,a=null,s=0;for(i=0;i<t.length;i++){n=t[i];var l,u=n.zlevel;r!==u&&(r=u,s=0),n.incremental?(l=this.getLayer(u+v,this._needsManuallyCompositing),l.incremental=!0,s=1):l=this.getLayer(u+(s>0?g:0),this._needsManuallyCompositing),l.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+l.id),l!==a&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,e(i),a=l),n.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?a.merge(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+g){var o=this._layers[r];a.merge(o,i[t],!0)}}}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(a.indexOf(i,t),1))},resize:function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||e!==this._height){for(var r in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);a.each(this._progressiveLayers,(function(i){i.resize(t,e)})),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(p).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[p].dom;var e=new u("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height,r=e.ctx;this.eachLayer((function(t){t.__builtin__?r.drawImage(t.dom,0,0,i,n):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||m(s[i])||m(o.style[i]))-(m(s[r])||0)-(m(s[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),a=t.style,o=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,u=a.hasStroke()?a.lineWidth:0,c=Math.max(u/2,-s+o),d=Math.max(u/2,s+o),f=Math.max(u/2,-l+o),p=Math.max(u/2,l+o),g=r.width+c+d,v=r.height+f+p;i.width=g*e,i.height=v*e,n.scale(e,e),n.clearRect(0,0,g,v),n.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[c-r.x,f-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(n);var y=h,x=new y({style:{x:0,y:0,image:i}});return null!=m.position&&(x.position=t.position=m.position),null!=m.rotation&&(x.rotation=t.rotation=m.rotation),null!=m.scale&&(x.scale=t.scale=m.scale),x}};var E=A;t.exports=E},eda2:function(t,e,i){var n=i("6d8b"),r=i("e86a"),a=i("3842");function o(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function s(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var l=n.normalizeCssArray,u=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(u,(function(t,e){return c[e]}))}var d=["a","b","c","d","e","f","g"],f=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,i){n.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var s=d[o];t=t.replace(f(s),f(s,0))}for(var l=0;l<r;l++)for(var u=0;u<a.length;u++){var c=e[l][a[u]];t=t.replace(f(d[u],l),i?h(c):c)}return t}function g(t,e,i){return n.each(e,(function(e,n){t=t.replace("{"+n+"}",i?h(e):e)})),t}function v(t,e){t=n.isString(t)?{color:t,extraCssText:e}:t||{};var i=t.color,r=t.type,a=(e=t.extraCssText,t.renderMode||"html"),o=t.markerId||"X";return i?"html"===a?"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)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(i)+";"+(e||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|} ",style:{color:i}}:""}function m(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=a.parseDate(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),s=n["get"+r+"Month"]()+1,l=n["get"+r+"Date"](),u=n["get"+r+"Hours"](),c=n["get"+r+"Minutes"](),h=n["get"+r+"Seconds"](),d=n["get"+r+"Milliseconds"]();return t=t.replace("MM",m(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",m(l,2)).replace("d",l).replace("hh",m(u,2)).replace("h",u).replace("mm",m(c,2)).replace("m",c).replace("ss",m(h,2)).replace("s",h).replace("SSS",m(d,3)),t}function x(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var _=r.truncateText;function b(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function S(t,e,i,n,a,o,s,l){return r.getBoundingRect(t,e,i,n,a,l,o,s)}function T(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}e.addCommas=o,e.toCamelCase=s,e.normalizeCssArray=l,e.encodeHTML=h,e.formatTpl=p,e.formatTplSimple=g,e.getTooltipMarker=v,e.formatTime=y,e.capitalFirst=x,e.truncateText=_,e.getTextBoundingRect=b,e.getTextRect=S,e.windowOpen=T},edaf:function(t,e,i){var n=i("6d8b"),r=i("6cb7"),a=i("6179"),o=i("e0d3"),s=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(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,r=this._names=[];if("category"===i){var s=[];n.each(e,(function(t,e){var i,a=o.getDataItemValue(t);n.isObject(t)?(i=n.clone(t),i.value=e):i=e,s.push(i),n.isString(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")})),e=s}var l={category:"ordinal",time:"time"}[i]||"number",u=this._data=new a([{name:"value",type:l}],this);u.initData(e,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;t.exports=l},edb9:function(t,e,i){var n=i("6d8b");function r(t,e){e=e||{};var i=t.coordinateSystem,r=t.axis,a={},o=r.position,s=r.orient,l=i.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};a.position=["vertical"===s?c.vertical[o]:u[0],"horizontal"===s?c.horizontal[o]:u[3]];var h={horizontal:0,vertical:1};a.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),n.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var f=e.rotate;return null==f&&(f=t.get("axisLabel.rotate")),a.labelRotation="top"===o?-f:f,a.z2=1,a}e.layout=r},ee1a:function(t,e,i){var n=i("6d8b"),r=n.each,a=n.isString;function o(t,e,i){i=i||{};var n,o,s,l,u=i.byIndex,c=i.stackedCoordDimension,h=!(!t||!t.get("stack"));if(r(e,(function(t,i){a(t)&&(e[i]=t={name:t}),h&&!t.isExtraCoord&&(u||n||!t.ordinalMeta||(n=t),o||"ordinal"===t.type||"time"===t.type||c&&c!==t.coordDim||(o=t))})),!o||u||n||(u=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var d=o.coordDim,f=o.type,p=0;r(e,(function(t){t.coordDim===d&&p++})),e.push({name:s,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:n&&n.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}e.enableDataStack=o,e.isDimensionStacked=s,e.getStackedDimension=l},ee66:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("2306"),o=i("eda2"),s=i("3842"),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},c=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient();this._renderDayRect(t,a,n),this._renderLines(t,a,o,n),this._renderYearText(t,a,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,a,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),s=n.getCellHeight(),l=e.start.time;l<=e.end.time;l=n.getNextNDay(l,1).time){var u=n.dataToRect([l],!1).tl,c=new a.Rect({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:r});i.add(c)}},_renderLines:function(t,e,i,n){var r=this,a=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=a.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,i);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,n)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,i),o,n),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,i),o,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-e/2,n[1][r]=n[1][r]+e/2,n},_drawSplitline:function(t,e,i){var n=new a.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var r=[],a=0;a<7;a++){var o=n.getNextNDay(e.time,a),s=n.dataToRect([o.time],!1);r[2*o.day]=s.tl,r[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"===typeof t&&t?o.formatTplSimple(t,e):"function"===typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,r){e=e.slice();var a=["center","bottom"];"bottom"===n?(e[1]+=r,a=["center","top"]):"left"===n?e[0]-=r:"right"===n?(e[0]+=r,a=["center","top"]):e[1]-=r;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,i,n){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,h="horizontal"===i?0:1,d={top:[u,l[h][1]],bottom:[u,l[1-h][1]],left:[l[1-h][0],c],right:[l[h][0],c]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var p=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:f},v=this._formatterLabel(p,g),m=new a.Text({z2:30});a.setTextStyle(m.style,r,{text:v}),m.attr(this._yearTextPositionControl(m,d[s],i,s,o)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=r,e&&(a="center"),"start"===n&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===n&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),u=n.get("position"),c=n.get("align"),h=[this._tlpoints,this._blpoints];r.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===u?0:1,f="horizontal"===e?0:1;s="start"===u?-s:s;for(var p="center"===c,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 x=n.get("formatter"),_=o[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:_},S=this._formatterLabel(x,b),T=new a.Text({z2:30});r.extend(a.setTextStyle(T.style,n,{text:S}),this._monthTextPositionControl(v,p,e,u,s)),i.add(T)}}},_weekTextPositionControl:function(t,e,i,n,r){var a="center",o="middle",s=t[0],l=t[1],u="start"===i;return"horizontal"===e?(s=s+n+(u?1:-1)*r[0]/2,a=u?"right":"left"):(l=l+n+(u?1:-1)*r[1]/2,o=u?"bottom":"top"),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderWeekText:function(t,e,i,n){var o=t.getModel("dayLabel");if(o.get("show")){var l=t.coordinateSystem,c=o.get("position"),h=o.get("nameMap"),d=o.get("margin"),f=l.getFirstDayOfWeek();r.isString(h)&&(h=u[h.toUpperCase()]||[]);var p=l.getNextNDay(e.end.time,7-e.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];d=s.parsePercent(d,g["horizontal"===i?0:1]),"start"===c&&(p=l.getNextNDay(e.start.time,-(7+e.fweek)).time,d=-d);for(var v=0;v<7;v++){var m=l.getNextNDay(p,v),y=l.dataToRect([m.time],!1).center,x=v;x=Math.abs((v+f)%7);var _=new a.Text({z2:30});r.extend(a.setTextStyle(_.style,o,{text:h[x]}),this._weekTextPositionControl(y,i,c,d,g)),n.add(_)}}}});t.exports=c},ee84:function(t,e,i){var n=i("20c8"),r=i("401b"),a=r.applyTransform,o=n.CMD,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;function c(t,e){var i,n,r,c,h,d=t.data,f=o.M,p=o.C,g=o.L,v=o.R,m=o.A,y=o.Q;for(r=0,c=0;r<d.length;){switch(i=d[r++],c=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 x=e[4],_=e[5],b=l(e[0]*e[0]+e[1]*e[1]),S=l(e[2]*e[2]+e[3]*e[3]),T=u(-e[1]/S,e[0]/b);d[r]*=b,d[r++]+=x,d[r]*=S,d[r++]+=_,d[r++]*=b,d[r++]*=S,d[r++]+=T,d[r++]+=T,r+=2,c=r;break;case v:w[0]=d[r++],w[1]=d[r++],a(w,w,e),d[c++]=w[0],d[c++]=w[1],w[0]+=d[r++],w[1]+=d[r++],a(w,w,e),d[c++]=w[0],d[c++]=w[1]}for(h=0;h<n;h++){var w=s[h];w[0]=d[r++],w[1]=d[r++],a(w,w,e),d[c++]=w[0],d[c++]=w[1]}}}t.exports=c},ee95:function(t,e,i){var n=i("3eba"),r=i("66a4");i("a04e"),i("3942"),i("dd7e"),i("347f"),n.registerPreprocessor(r)},ee98:function(t,e){function i(t){return t instanceof Array||(t=[t,t]),t}var n="lineStyle.opacity".split("."),r={seriesType:"lines",reset:function(t,e,r){var a=i(t.get("symbol")),o=i(t.get("symbolSize")),s=t.getData();function l(t,e){var r=t.getItemModel(e),a=i(r.getShallow("symbol",!0)),o=i(r.getShallow("symbolSize",!0)),s=r.get(n);a[0]&&t.setItemVisual(e,"fromSymbol",a[0]),a[1]&&t.setItemVisual(e,"toSymbol",a[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1]),t.setItemVisual(e,"opacity",s)}return s.setVisual("fromSymbol",a&&a[0]),s.setVisual("toSymbol",a&&a[1]),s.setVisual("fromSymbolSize",o&&o[0]),s.setVisual("toSymbolSize",o&&o[1]),s.setVisual("opacity",t.get(n)),{dataEach:s.hasItemOption?l:null}}};t.exports=r},eeea:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("0141"),s=i("f934"),l=i("3842"),u=i("5b87"),c=i("ec34");function h(t,e){var i=t.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 a,o=this.getBoundingRect(),u=t.get("layoutCenter"),c=t.get("layoutSize"),h=e.getWidth(),d=e.getHeight(),f=o.width/o.height*this.aspectScale,p=!1;if(u&&c&&(u=[l.parsePercent(u[0],h),l.parsePercent(u[1],d)],c=l.parsePercent(c,Math.min(h,d)),isNaN(u[0])||isNaN(u[1])||isNaN(c)||(p=!0)),p){var g={};f>1?(g.width=c,g.height=c/f):(g.height=c,g.width=c*f),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else a=t.getBoxLayoutParams(),a.aspect=f,g=s.getLayoutRect(a,{width:h,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function d(t,e){a.each(e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}var f={dimensions:o.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",(function(t,n){var r=t.get("map"),a=t.get("aspectScale"),s=!0,l=c.retrieveMap(r);l&&l[0]&&"svg"===l[0].type?(null==a&&(a=1),s=!1):null==a&&(a=.75);var u=new o(r+n,r,t.get("nameMap"),s);u.aspectScale=a,u.zoomLimit=t.get("scaleLimit"),i.push(u),d(u,t),t.coordinateSystem=u,u.model=t,u.resize=h,u.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=i[n]}}));var n={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}})),a.each(n,(function(t,n){var r=a.map(t,(function(t){return t.get("nameMap")})),s=new o(n,n,a.mergeAll(r));s.zoomLimit=a.retrieve.apply(null,a.map(t,(function(t){return t.get("scaleLimit")}))),i.push(s),s.resize=h,s.aspectScale=t[0].get("aspectScale"),s.resize(t[0],e),a.each(t,(function(t){t.coordinateSystem=s,d(s,t)}))})),i},getFilledRegions:function(t,e,i){for(var n=(t||[]).slice(),r=a.createHashMap(),o=0;o<n.length;o++)r.set(n[o].name,n[o]);var s=u.load(e,i);return a.each(s.regions,(function(t){var e=t.name;!r.get(e)&&n.push({name:e})})),n}};r.registerCoordinateSystem("geo",f);var p=f;t.exports=p},ef2b:function(t,e,i){var n=i("401b"),r=n.scaleAndAdd;function a(t,e,i){for(var a=i.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==i.gravity?.1:i.gravity,c=0;c<t.length;c++){var h=t[c];h.p||(h.p=n.create(o*(Math.random()-.5)+l[0],s*(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(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(i){for(var a=[],o=t.length,s=0;s<e.length;s++){var c=e[s];if(!c.ignoreForceLayout){var h=c.n1,d=c.n2;n.sub(a,d.p,h.p);var p=n.len(a)-c.d,g=d.w/(h.w+d.w);isNaN(g)&&(g=0),n.normalize(a,a),!h.fixed&&r(h.p,h.p,a,g*p*f),!d.fixed&&r(d.p,d.p,a,-(1-g)*p*f)}}for(s=0;s<o;s++){var v=t[s];v.fixed||(n.sub(a,l,v.p),r(v.p,v.p,a,u*f))}for(s=0;s<o;s++){h=t[s];for(var m=s+1;m<o;m++){d=t[m];n.sub(a,d.p,h.p);p=n.len(a);0===p&&(n.set(a,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+d.rep)/p/p;!h.fixed&&r(h.pp,h.pp,a,y),!d.fixed&&r(d.pp,d.pp,a,-y)}}var x=[];for(s=0;s<o;s++){v=t[s];v.fixed||(n.sub(x,v.p,v.pp),r(v.p,v.p,x,f),n.copy(v.pp,v.p))}f*=.992,i&&i(t,e,f<.01)}}}e.forceLayout=a},ef6a:function(t,e){function i(t,e,i,a,o,s){t=t||0;var l=i[1]-i[0];if(null!=o&&(o=r(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===a){var u=Math.abs(e[1]-e[0]);u=r(u,[0,l]),o=s=r(u,[o,s]),a=0}e[0]=r(e[0],i),e[1]=r(e[1],i);var c=n(e,a);e[a]+=t;var h=o||0,d=i.slice();c.sign<0?d[0]+=h:d[1]-=h,e[a]=r(e[a],d);var f=n(e,a);null!=o&&(f.sign!==c.sign||f.span<o)&&(e[1-a]=e[a]+c.sign*o);f=n(e,a);return null!=s&&f.span>s&&(e[1-a]=e[a]+f.sign*s),e}function n(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function r(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}t.exports=i},ef97:function(t,e,i){var n=i("3eba");i("217b"),i("f17f");var r=i("7f96"),a=i("87c3"),o=i("fdde");i("01ed"),n.registerVisual(r("line","circle","line")),n.registerLayout(a("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o("line"))},ef97a:function(t,e,i){var n=i("3eba");i("2163"),i("6cd8"),i("bf9b");var r=i("7f96"),a=i("ca29");n.registerVisual(r("tree","circle")),n.registerLayout(a)},f123:function(t,e,i){var n=i("9f82"),r=n.prepareDataCoordInfo,a=n.getStackedOnPoint;function o(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}function s(t,e,i,n,s,l,u,c){for(var h=o(t,e),d=[],f=[],p=[],g=[],v=[],m=[],y=[],x=r(s,e,u),_=r(l,t,c),b=0;b<h.length;b++){var S=h[b],T=!0;switch(S.cmd){case"=":var w=t.getItemLayout(S.idx),A=e.getItemLayout(S.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=A.slice()),d.push(w),f.push(A),p.push(i[S.idx]),g.push(n[S.idx1]),y.push(e.getRawIndex(S.idx1));break;case"+":var E=S.idx;d.push(s.dataToPoint([e.get(x.dataDimsForPoint[0],E),e.get(x.dataDimsForPoint[1],E)])),f.push(e.getItemLayout(E).slice()),p.push(a(x,s,e,E)),g.push(n[E]),y.push(e.getRawIndex(E));break;case"-":E=S.idx;var I=t.getRawIndex(E);I!==E?(d.push(t.getItemLayout(E)),f.push(l.dataToPoint([t.get(_.dataDimsForPoint[0],E),t.get(_.dataDimsForPoint[1],E)])),p.push(i[E]),g.push(a(_,l,t,E)),y.push(I)):T=!1}T&&(v.push(S),m.push(m.length))}m.sort((function(t,e){return y[t]-y[e]}));var D=[],M=[],L=[],C=[],k=[];for(b=0;b<m.length;b++){E=m[b];D[b]=d[E],M[b]=f[E],L[b]=p[E],C[b]=g[E],k[b]=v[E]}return{current:D,next:M,stackedOnCurrent:L,stackedOnNext:C,status:k}}t.exports=s},f138:function(t,e,i){var n=i("dcb3"),r=i("ff2e"),a=i("edb9"),o=i("6679"),s=["x","y"],l=["width","height"],u=n.extend({makeElOption:function(t,e,i,n,o){var s=i.axis,l=s.coordinateSystem,u=d(l,1-h(s)),f=l.dataToPoint(e)[0],p=n.get("type");if(p&&"none"!==p){var g=r.buildElStyle(n),v=c[p](s,f,u);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=a.layout(i);r.buildCartesianSingleLabelElOption(e,t,m,i,n,o)},getHandleTransform:function(t,e,i){var n=a.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var r=i.axis,a=r.coordinateSystem,o=h(r),s=d(a,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=d(a,1-o),c=(u[1]+u[0])/2,f=[c,c];return f[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(t,e,i){var n=r.makeLineShape([e,i[0]],[e,i[1]],h(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=t.getBandWidth(),a=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([e-n/2,i[0]],[n,a],h(t))}}};function h(t){return t.isHorizontal()?0:1}function d(t,e){var i=t.getRect();return[i[s[e]],i[s[e]]+i[l[e]]]}o.registerAxisPointerClass("SingleAxisPointer",u);var f=u;t.exports=f},f14c:function(t,e,i){var n=i("84d5"),r=i("f934"),a=r.mergeLayoutParam,o=r.getLayoutParams,s=n.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},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(t,e,i,n){var r=o(t);s.superCall(this,"init",t,e,i,n),l(this,t,r)},mergeOption:function(t,e){s.superCall(this,"mergeOption",t,e),l(this,this.option,t)}});function l(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,a(e,i,{type:"box",ignoreSize:r})}var u=s;t.exports=u},f170:function(t,e,i){i("a87d");var n=i("697e7"),r=n.registerPainter,a=i("e9f9");r("vml",a)},f17f:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("e263"),o=a.fromPoints,s=i("f706"),l=i("1418"),u=i("f123"),c=i("2306"),h=i("e0d3"),d=i("d4d1"),f=d.Polyline,p=d.Polygon,g=i("e887"),v=i("9f82"),m=v.prepareDataCoordInfo,y=v.getStackedOnPoint,x=i("b0af"),_=x.createGridClipPath,b=x.createPolarClipPath;function S(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function T(t,e){var i=[],n=[],r=[],a=[];return o(t,i,n),o(e,r,a),Math.max(Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]),Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]))}function w(t){return"number"===typeof t?t:t?.5:0}function A(t,e,i){if(!i.valueDim)return[];for(var n=[],r=0,a=e.count();r<a;r++)n.push(y(i,t,e,r));return n}function E(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,a=[],o=0;o<t.length-1;o++){var s=t[o+1],l=t[o];a.push(l);var u=[];switch(i){case"end":u[r]=s[r],u[1-r]=l[1-r],a.push(u);break;case"middle":var c=(l[r]+s[r])/2,h=[];u[r]=h[r]=c,u[1-r]=l[1-r],h[1-r]=s[1-r],a.push(u),a.push(h);break;default:u[r]=l[r],u[1-r]=s[1-r],a.push(u)}}return t[o]&&a.push(t[o]),a}function I(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,a,o=i.length-1;o>=0;o--){var s=i[o].dimension,l=t.dimensions[s],u=t.getDimensionInfo(l);if(n=u&&u.coordDim,"x"===n||"y"===n){a=i[o];break}}if(a){var h=e.getAxis(n),d=r.map(a.stops,(function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}})),f=d.length,p=a.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(t){t.offset=(t.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 x=new c.LinearGradient(0,0,0,0,d,!0);return x[n]=v,x[n+"2"]=m,x}}}function D(t,e,i){var n=t.get("showAllSymbol"),a="auto"===n;if(!n||a){var o=i.getAxesByScale("ordinal")[0];if(o&&(!a||!M(o,e))){var s=e.mapDimension(o.dim),l={};return r.each(o.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(e.get(s,t))}}}}function M(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*l.getSymbolSize(e,o)[t.isHorizontal()?1:0]>n)return!1;return!0}function L(t,e,i){if("cartesian2d"===t.type){var n=t.getBaseAxis().isHorizontal(),r=_(t,e,i);if(!i.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);n?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return b(t,e,i)}var C=g.extend({type:"line",init:function(){var t=new c.Group,e=new s;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var n=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.mapArray(o.getItemLayout),c="polar"===n.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=t.get("animation"),y=!l.isEmpty(),x=l.get("origin"),_=m(n,o,x),b=A(n,o,_),T=t.get("showSymbol"),M=T&&!c&&D(t,o,n),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),C.setItemGraphicEl(e,null))})),T||d.remove(),a.add(g);var k,R=!c&&t.get("step");n&&n.getArea&&t.get("clip",!0)&&(k=n.getArea(),null!=k.width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r1+=.5)),this._clipShapeForSymbol=k,f&&h.type===n.type&&R===this._step?(y&&!p?p=this._newPolygon(u,b,n,v):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(L(n,!1,t)),T&&d.updateData(o,{isIgnore:M,clipShape:k}),o.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),S(this._stackedOnPoints,b)&&S(this._points,u)||(v?this._updateAnimation(o,b,n,i,R,x):(R&&(u=E(u,n,R),b=E(b,n,R)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:b})))):(T&&d.updateData(o,{isIgnore:M,clipShape:k}),R&&(u=E(u,n,R),b=E(b,n,R)),f=this._newPolyline(u,n,v),y&&(p=this._newPolygon(u,b,n,v)),g.setClipPath(L(n,!0,t)));var P=I(o,n)||o.getVisual("color");f.useStyle(r.defaults(s.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"}));var O=t.get("smooth");if(O=w(t.get("smooth")),f.setShape({smooth:O,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var N=o.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(r.defaults(l.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel"})),N&&(F=w(N.get("smooth"))),p.setShape({smooth:O,stackedOnSmooth:F,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=n,this._stackedOnPoints=b,this._points=u,this._step=R,this._valueOrigin=x},dispose:function(){},highlight:function(t,e,i,n){var r=t.getData(),a=h.queryDataIndex(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;o=new l(r,a),o.position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else g.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t.getData(),a=h.queryDataIndex(r,n);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else g.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new f({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new p({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,r,a){var o=this._polyline,s=this._polygon,l=t.hostModel,h=u(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,a),d=h.current,f=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(r&&(d=E(h.current,i,r),f=E(h.stackedOnCurrent,i,r),p=E(h.next,i,r),g=E(h.stackedOnNext,i,r)),T(d,p)>3e3||s&&T(f,g)>3e3)return o.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:g}));o.shape.__points=h.current,o.shape.points=d,c.updateProps(o,{shape:{points:p}},l),s&&(s.setShape({points:d,stackedOnPoints:f}),c.updateProps(s,{shape:{points:p,stackedOnPoints:g}},l));for(var v=[],m=h.status,y=0;y<m.length;y++){var x=m[y].cmd;if("="===x){var _=t.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}}o.animators&&o.animators.length&&o.animators[0].during((function(){for(var t=0;t<v.length;t++){var e=v[t].el;e.attr("position",o.shape.__points[v[t].ptIdx])}}))},remove:function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl((function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=C},f219:function(t,e){var i="#eee",n=function(){return{axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},axisLabel:{textStyle:{color:i}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:i}}}},r=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],a={color:r,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:i},crossStyle:{color:i},label:{color:"#000"}}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:i}},toolbox:{iconStyle:{normal:{borderColor:i}}},dataZoom:{textStyle:{color:i}},visualMap:{textStyle:{color:i}},timeline:{lineStyle:{color:i},itemStyle:{normal:{color:r[1]}},label:{normal:{textStyle:{color:i}}},controlStyle:{normal:{color:i,borderColor:i}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:r},gauge:{title:{textStyle:{color:i}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};a.categoryAxis.splitLine.show=!1;var o=a;t.exports=o},f273:function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("fab2"),o=i("6679"),s=i("0156"),l=i("58df"),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine","minorSplitLine"],f=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),t.get("show")){var u=t.getCoordSysModel(),c=s.layout(u,t),p=new a(t,c);n.each(h,p.add,p),this._axisGroup.add(p.getGroup()),n.each(d,(function(e){t.get(e+".show")&&this["_"+e](t,u)}),this),r.groupTransition(l,this._axisGroup,t),f.superCall(this,"render",t,e,i,o)}},remove:function(){c(this)},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=n.isArray(s)?s:[s];for(var l=e.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:a}),d=[],f=[],p=o.getLineStyle(),g=0;g<h.length;g++){var v=i.toGlobalCoord(h[g].coord);u?(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=c++%s.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:s[m]},p),silent:!0}))}}},_minorSplitLine:function(t,e){var i=t.axis,n=t.getModel("minorSplitLine"),a=n.getModel("lineStyle"),o=e.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=a.getLineStyle(),d=0;d<l.length;d++)for(var f=0;f<l[d].length;f++){var p=i.toGlobalCoord(l[d][f].coord);s?(u[0]=p,u[1]=o.y,c[0]=p,c[1]=o.y+o.height):(u[0]=o.x,u[1]=p,c[0]=o.x+o.width,c[1]=p),this._axisGroup.add(new r.Line({anid:"minor_line_"+l[d][f].tickValue,subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0}))}},_splitArea:function(t,e){u(this,this._axisGroup,t,e)}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},f279:function(t,e,i){var n=i("9850"),r=i("e263"),a=i("401b"),o=i("0655");function s(t,e,i){if(this.name=t,this.geometries=e,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}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],o=[-e,-e],s=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var h=u[c].exterior;r.fromPoints(h,s,l),a.min(i,i,s),a.max(o,o,l)}return 0===c&&(i[0]=i[1]=o[0]=o[1]=0),this._rect=new n(i[0],i[1],o[0]-i[0],o[1]-i[1])},contain:function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;n<r;n++)if("polygon"===i[n].type){var a=i[n].exterior,s=i[n].interiors;if(o.contain(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(o.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,i,r){var o=this.getBoundingRect(),s=o.width/o.height;i?r||(r=i/s):i=s*r;for(var l=new n(t,e,i,r),u=o.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++)if("polygon"===c[h].type){for(var d=c[h].exterior,f=c[h].interiors,p=0;p<d.length;p++)a.applyTransform(d[p],d[p],u);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)a.applyTransform(f[g][p],f[g][p],u)}o=this._rect,o.copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new s(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var l=s;t.exports=l},f306:function(t,e,i){var n=i("3eba"),r=i("6d8b"),a=i("88b3"),o=i("6569");i("849b"),i("217c"),i("c515");var s=5;n.extendComponentView({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},r.each(l,(function(t,e){i.getZr().on(e,this._handlers[e]=r.bind(t,this))}),this)),a.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){r.each(this._handlers,(function(t,i){e.getZr().off(i,t)})),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(r.extend({type:"parallelAxisExpand"},t))}});var l={mousedown:function(t){u(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(u(this,"click")&&e){var i=[t.offsetX,t.offsetY],n=Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2);if(n>s)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&u(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function u(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}n.registerPreprocessor(o)},f31f:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("3eba")),a=i("6d8b"),o=i("2b8c"),s=i("4319"),l=["#ddd"],u=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(t,e){var i=this.option;!e&&o.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:l},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=a.map(t,(function(t){return c(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=c(this.option,t),this.brushType=this.brushOption.brushType}});function c(t,e){return a.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new s(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var h=u;t.exports=h},f47d:function(t,e,i){var n=i("6d8b"),r=(n.assert,n.isArray),a=i("4e08");a.__DEV__;function o(t){return new s(t)}function s(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var l=s.prototype;l.perform=function(t){var e,i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var a=this.context;a.data=a.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var o,s=f(this._modBy),l=this._modDataCount||0,u=f(t&&t.modBy),d=t&&t.modDataCount||0;function f(t){return!(t>=1)&&(t=1),t}s===u&&l===d||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=h(this,n)),this._modBy=u,this._modDataCount=d;var p=t&&t.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&&(o||g<v)){var m=this._progress;if(r(m))for(var y=0;y<m.length;y++)c(this,m[y],g,v,u,d);else c(this,m,g,v,u,d)}this._dueIndex=v;var x=null!=this._settedOutputEnd?this._settedOutputEnd:v;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var u=function(){var t,e,i,n,r,a={reset:function(l,u,c,h){e=l,t=u,i=c,n=h,r=Math.ceil(n/i),a.next=i>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%r*i+Math.ceil(e/r),o=e>=t?null:a<n?a:e;return e++,o}}();function c(t,e,i,n,r,a){u.reset(i,n,r,a),t._callingProgress=e,t._callingProgress({start:i,end:n,count:n-i,next:u.next},t.context)}function h(t,e){var i,n;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&(i=t._reset(t.context),i&&i.progress&&(n=i.forceFirstProgress,i=i.progress),r(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.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(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.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(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=o},f4a2:function(t,e,i){var n=i("9850"),r=i("c526"),a=r.onIrrelevantElement,o=i("2306");function s(t){return t=c(t),function(e,i){return o.clipPointsByRect(e,t)}}function l(t,e){return t=c(t),function(i){var n=null!=e?e:i,r=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(r||0)]}}function u(t,e,i){return t=c(t),function(n,r,o){return t.contain(r[0],r[1])&&!a(n,e,i)}}function c(t){return n.create(t)}e.makeRectPanelClipPath=s,e.makeLinearBrushOtherExtent=l,e.makeRectIsTargetByCursor=u},f5e6:function(t,e,i){i("1ccf"),i("b419")},f610:function(t,e,i){var n=i("2306"),r=i("f934"),a=i("6d8b"),o=i("55ac"),s=o.wrapTreePathInfo,l=8,u=8,c=5;function h(t){this.group=new n.Group,t.add(this.group)}function d(t,e,i,n,r,a){var o=[[r?t:t-c,e],[t+i,e],[t+i,e+n],[r?t:t-c,e+n]];return!a&&o.splice(2,0,[t+i+c,e+n/2]),!r&&o.push([t,e+n/2]),o}function f(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&s(i,e)}}h.prototype={constructor:h,render:function(t,e,i,n){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),a.get("show")&&i){var s=a.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,u,l),this._renderContent(t,u,s,l,n),r.positionElement(o,u.pos,u.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var r=n.getModel().get("name"),a=i.getTextRect(r),o=Math.max(a.width+2*l,e.emptyItemWidth);e.totalWidth+=o+u,e.renderList.push({node:n,text:r,width:o})}},_renderContent:function(t,e,i,o,s){for(var l=0,c=e.emptyItemWidth,h=t.get("breadcrumb.height"),p=r.getAvailableSize(e.pos,e.box),g=e.totalWidth,v=e.renderList,m=v.length-1;m>=0;m--){var y=v[m],x=y.node,_=y.width,b=y.text;g>p.width&&(g-=_-c,_=c,b=null);var S=new n.Polygon({shape:{points:d(l,0,_,h,m===v.length-1,0===m)},style:a.defaults(i.getItemStyle(),{lineJoin:"bevel",text:b,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:a.curry(s,x)});this.group.add(S),f(S,t,x),l+=_+u}},remove:function(){this.group.removeAll()}};var p=h;t.exports=p},f6ed:function(t,e,i){var n=i("6d8b");function r(t,e){var i={};return n.each(t,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(n,r){for(var a,o="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=i[o].length,h=0;h<c;h++)l=Math.min(l,i[o][h]),u=Math.max(u,i[o][h]),s+=i[o][h];return a="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:a}))}function a(t){var e={};t.eachSeriesByType("map",(function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),n.each(e,(function(t,e){for(var i=r(n.map(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(i.cloneShallow()),t[a].mainSeries=t[0]}))}t.exports=a},f706:function(t,e,i){var n=i("2306"),r=i("1418"),a=i("6d8b"),o=a.isObject;function s(t){this.group=new n.Group,this._symbolCtor=t||r}var l=s.prototype;function u(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function c(t){return null==t||o(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}l.updateData=function(t,e){e=c(e);var i=this.group,r=t.hostModel,a=this._data,o=this._symbolCtor,s=h(t);a||i.removeAll(),t.diff(a).add((function(n){var r=t.getItemLayout(n);if(u(t,r,n,e)){var a=new o(t,n,s);a.attr("position",r),t.setItemGraphicEl(n,a),i.add(a)}})).update((function(l,c){var h=a.getItemGraphicEl(c),d=t.getItemLayout(l);u(t,d,l,e)?(h?(h.updateData(t,l,s),n.updateProps(h,{position:d},r)):(h=new o(t,l),h.attr("position",d)),i.add(h),t.setItemGraphicEl(l,h)):i.remove(h)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}))})).execute(),this._data=t},l.isPersistent=function(){return!0},l.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,i){var n=t.getItemLayout(i);e.attr("position",n)}))},l.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},l.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}i=c(i);for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(u(e,a,r,i)){var o=new this._symbolCtor(e,r,this._seriesScope);o.traverse(n),o.attr("position",a),this.group.add(o),e.setItemGraphicEl(r,o)}}},l.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var d=s;t.exports=d},f7c6:function(t,e,i){var n=i("3eba"),r=i("e46b"),a=i("6d8b"),o=i("e0d3"),s=i("3842"),l=s.getPercentWithPrecision,u=i("7023"),c=i("2b17"),h=c.retrieveRawAttr,d=i("0f99"),f=d.makeSeriesEncodeForNameBased,p=i("c4a3"),g=n.extendSeriesModel({type:"series.pie",init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new p(a.bind(this.getData,this),a.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){g.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(f,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();n<r;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:h(t,n,"selected")});return i},getDataParams:function(t){var e=this.getData(),i=g.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),(function(t){n.push(t)})),i.percent=l(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){o.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.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"}});a.mixin(g,u);var v=g;t.exports=v},f934:function(t,e,i){var n=i("6d8b"),r=i("9850"),a=i("3842"),o=a.parsePercent,s=i("eda2"),l=n.each,u=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function h(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);c=a+v,c>n||l.newline?(a=0,c=v,o+=s+i,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);h=o+m,h>r||l.newline?(a+=s+i,o=0,h=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=c+i:o=h+i)}))}var d=h,f=n.curry(h,"vertical"),p=n.curry(h,"horizontal");function g(t,e,i){var n=e.width,r=e.height,a=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=s.normalizeCssArray(i||0),{width:Math.max(u-a-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}}function v(t,e,i){i=s.normalizeCssArray(i||0);var n=e.width,a=e.height,l=o(t.left,n),u=o(t.top,a),c=o(t.right,n),h=o(t.bottom,a),d=o(t.width,n),f=o(t.height,a),p=i[2]+i[0],g=i[1]+i[3],v=t.aspect;switch(isNaN(d)&&(d=n-c-g-l),isNaN(f)&&(f=a-h-p-u),null!=v&&(isNaN(d)&&isNaN(f)&&(v>n/a?d=.8*n:f=.8*a),isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=n-c-d-g),isNaN(u)&&(u=a-h-f-p),t.left||t.right){case"center":l=n/2-d/2-i[3];break;case"right":l=n-d-g;break}switch(t.top||t.bottom){case"middle":case"center":u=a/2-f/2-i[0];break;case"bottom":u=a-f-p;break}l=l||0,u=u||0,isNaN(d)&&(d=n-g-l-(c||0)),isNaN(f)&&(f=a-p-u-(h||0));var m=new r(l+i[3],u+i[0],d,f);return m.margin=i,m}function m(t,e,i,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();c=c.clone(),c.applyTransform(h)}e=v(n.defaults({width:c.width,height:c.height},e),i,a);var d=t.position,f=s?e.x-c.x:0,p=l?e.y-c.y:0;t.attr("position","raw"===u?[f,p]:[d[0]+f,d[1]+p])}}function y(t,e){return null!=t[c[e][0]]||null!=t[c[e][1]]&&null!=t[c[e][2]]}function x(t,e,i){!n.isObject(i)&&(i={});var r=i.ignoreSize;!n.isArray(r)&&(r=[r,r]);var a=s(c[0],0),o=s(c[1],1);function s(i,n){var a={},o=0,s={},c=0,d=2;if(l(i,(function(e){s[e]=t[e]})),l(i,(function(t){u(e,t)&&(a[t]=s[t]=e[t]),h(a,t)&&o++,h(s,t)&&c++})),r[n])return h(e,i[1])?s[i[2]]=null:h(e,i[2])&&(s[i[1]]=null),s;if(c!==d&&o){if(o>=d)return a;for(var f=0;f<i.length;f++){var p=i[f];if(!u(a,p)&&u(t,p)){a[p]=t[p];break}}return a}return s}function u(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,i){l(t,(function(t){e[t]=i[t]}))}d(c[0],t,a),d(c[1],t,o)}function _(t){return b({},t)}function b(t,e){return e&&t&&l(u,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}e.LOCATION_PARAMS=u,e.HV_NAMES=c,e.box=d,e.vbox=f,e.hbox=p,e.getAvailableSize=g,e.getLayoutRect=v,e.positionElement=m,e.sizeCalculable=y,e.mergeLayoutParam=x,e.getLayoutParams=_,e.copyLayoutParams=b},fa52:function(t,e,i){var n=i("3eba");i("febc"),i("dcea");var r=i("2f91"),a=i("ecf8");n.registerVisual(r),n.registerLayout(a)},fab2:function(t,e,i){var n=i("6d8b"),r=n.retrieve,a=n.defaults,o=n.extend,s=n.each,l=i("eda2"),u=i("2306"),c=i("4319"),h=i("3842"),d=h.isRadianAroundZero,f=h.remRadian,p=i("a15a"),g=p.createSymbol,v=i("1687"),m=i("401b"),y=m.applyTransform,x=i("697e"),_=x.shouldShowAllLabels,b=Math.PI,S=function(t,e){this.opt=e,this.axisModel=t,a(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var i=new u.Group({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};S.prototype={constructor:S,hasBuilder:function(t){return!!T[t]},add:function(t){T[t].call(this)},getGroup:function(){return this.group}};var T={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(y(r,r,n),y(a,a,n));var l=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var c=e.get("axisLine.symbol"),h=e.get("axisLine.symbolSize"),d=e.get("axisLine.symbolOffset")||0;if("number"===typeof d&&(d=[d,d]),null!=c){"string"===typeof c&&(c=[c,c]),"string"!==typeof h&&"number"!==typeof h||(h=[h,h]);var f=h[0],p=h[1];s([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],(function(e,i){if("none"!==c[i]&&null!=c[i]){var n=g(c[i],-f/2,-p/2,f,p,l.stroke,!0),a=e.r+e.offset,o=[r[0]+a*Math.cos(t.rotation),r[1]-a*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=R(this,t,e),n=O(this,t,e);D(t,n,i),P(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,i=r(t.axisName,e.get("name"));if(i){var n,a,s=e.get("nameLocation"),c=t.nameDirection,h=e.getModel("nameTextStyle"),d=e.get("nameGap")||0,f=this.axisModel.axis.getExtent(),p=f[0]>f[1]?-1:1,g=["start"===s?f[0]-p*d:"end"===s?f[1]+p*d:(f[0]+f[1])/2,C(s)?t.labelOffset+c*d:0],v=e.get("nameRotate");null!=v&&(v=v*b/180),C(s)?n=A(t.rotation,null!=v?v:t.rotation,c):(n=E(t,s,v||0,f),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(n.rotation)),!isFinite(a)&&(a=null)));var m=h.getFont(),y=e.get("nameTruncate",!0)||{},x=y.ellipsis,_=r(t.nameTruncateMaxWidth,y.maxWidth,a),S=null!=x&&null!=_?l.truncateText(i,_,m,x,{minChar:2,placeholder:y.placeholder}):i,T=e.get("tooltip",!0),D=e.mainType,M={componentType:D,name:i,$vars:["name"]};M[D+"Index"]=e.componentIndex;var L=new u.Text({anid:"name",__fullText:i,__truncatedText:S,position:g,rotation:n.rotation,silent:I(e),z2:1,tooltip:T&&T.show?o({content:i,formatter:function(){return i},formatterParams:M},T):null});u.setTextStyle(L.style,h,{text:S,textFont:m,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:h.get("align")||n.textAlign,textVerticalAlign:h.get("verticalAlign")||n.textVerticalAlign}),e.get("triggerEvent")&&(L.eventData=w(e),L.eventData.targetType="axisName",L.eventData.name=i),this._dumbGroup.add(L),L.updateTransform(),this.group.add(L),L.decomposeTransform()}}},w=S.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},A=S.innerTextLayout=function(t,e,i){var n,r,a=f(e-t);return d(a)?(r=i>0?"top":"bottom",n="center"):d(a-b)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=a>0&&a<b?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:r}};function E(t,e,i,n){var r,a,o=f(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return d(o-b/2)?(a=l?"bottom":"top",r="center"):d(o-1.5*b)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*b&&o>b/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}var I=S.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function D(t,e,i){if(!_(t.axis)){var n=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],c=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(M(a),M(u)):L(a,o)&&(n?(M(o),M(c)):(M(a),M(u))),!1===r?(M(s),M(h)):L(l,s)&&(r?(M(l),M(d)):(M(s),M(h)))}}function M(t){t&&(t.ignore=!0)}function L(t,e,i){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var a=v.identity([]);return v.rotate(a,a,-t.rotation),n.applyTransform(v.mul([],a,t.getLocalTransform())),r.applyTransform(v.mul([],a,e.getLocalTransform())),n.intersect(r)}}function C(t){return"middle"===t||"center"===t}function k(t,e,i,n,r){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var c=t[l].coord;o[0]=c,o[1]=0,s[0]=c,s[1]=i,e&&(y(o,o,e),y(s,s,e));var h=new u.Line({anid:r+"_"+t[l].tickValue,subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,silent:!0});a.push(h)}return a}function R(t,e,i){var n=e.axis,r=e.getModel("axisTick");if(r.get("show")&&!n.scale.isBlank()){for(var o=r.getModel("lineStyle"),s=i.tickDirection*r.get("length"),l=n.getTicksCoords(),u=k(l,t._transform,s,a(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),c=0;c<u.length;c++)t.group.add(u[c]);return u}}function P(t,e,i){var n=e.axis,r=e.getModel("minorTick");if(r.get("show")&&!n.scale.isBlank()){var o=n.getMinorTicksCoords();if(o.length)for(var s=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),u=a(s.getLineStyle(),a(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),c=0;c<o.length;c++)for(var h=k(o[c],t._transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.group.add(h[d])}}function O(t,e,i){var n=e.axis,a=r(i.axisLabelShow,e.get("axisLabel.show"));if(a&&!n.scale.isBlank()){var o=e.getModel("axisLabel"),l=o.get("margin"),h=n.getViewLabels(),d=(r(i.labelRotate,o.get("rotate"))||0)*b/180,f=A(i.rotation,d,i.labelDirection),p=e.getCategories&&e.getCategories(!0),g=[],v=I(e),m=e.get("triggerEvent");return s(h,(function(r,a){var s=r.tickValue,h=r.formattedLabel,d=r.rawLabel,y=o;p&&p[s]&&p[s].textStyle&&(y=new c(p[s].textStyle,o,e.ecModel));var x=y.getTextColor()||e.get("axisLine.lineStyle.color"),_=n.dataToCoord(s),b=[_,i.labelOffset+i.labelDirection*l],S=new u.Text({anid:"label_"+s,position:b,rotation:f.rotation,silent:v,z2:10});u.setTextStyle(S.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 x?x("category"===n.type?d:"value"===n.type?s+"":s,a):x}),m&&(S.eventData=w(e),S.eventData.targetType="axisLabel",S.eventData.value=d),t._dumbGroup.add(S),S.updateTransform(),g.push(S),t.group.add(S),S.decomposeTransform()})),g}}var N=S;t.exports=N},fb05:function(t,e,i){var n=i("6d8b"),r=n.each,a=n.isArray,o=n.isObject,s=i("26e1"),l=i("e0d3"),u=l.normalizeToArray;function c(t,e){e=e.split(",");for(var i=t,n=0;n<e.length;n++)if(i=i&&i[e[n]],null==i)break;return i}function h(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e.length-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function d(t){r(f,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function g(t,e){s(t,e),t.series=u(t.series),r(t.series,(function(t){if(o(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var i=c(t,"pointer.color");null!=i&&h(t,"itemStyle.color",i)}d(t)}})),t.dataRange&&(t.visualMap=t.dataRange),r(p,(function(e){var i=t[e];i&&(a(i)||(i=[i]),r(i,(function(t){d(t)})))}))}t.exports=g},fc82:function(t,e,i){var n=i("4e08"),r=(n.__DEV__,i("6d8b")),a=i("1fab"),o=i("2306"),s=i("a4fe"),l=i("80f0"),u=r.curry,c=r.each,h=r.map,d=Math.min,f=Math.max,p=Math.pow,g=1e4,v=6,m=6,y="globalPan",x={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_={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},S=0;function T(t){a.call(this),this._zr=t,this.group=new o.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+S++,this._handlers={},c(rt,(function(t,e){this._handlers[e]=r.bind(t,this)}),this)}function w(t,e){var i=t._zr;t._enableGlobalPan||s.take(i,y,t._uid),E(i,t._handlers),t._brushType=e.brushType,t._brushOption=r.merge(r.clone(b),e,!0)}function A(t){var e=t._zr;s.release(e,y,t._uid),I(e,t._handlers),t._brushType=t._brushOption=null}function E(t,e){c(e,(function(e,i){t.on(i,e)}))}function I(t,e){c(e,(function(e,i){t.off(i,e)}))}function D(t,e){var i=st[e.brushType].createCover(t,e);return i.__brushOption=e,C(i,e),t.group.add(i),i}function M(t,e){var i=R(e);return i.endCreating&&(i.endCreating(t,e),C(e,e.__brushOption)),e}function L(t,e){var i=e.__brushOption;R(e).updateCoverShape(t,e,i.range,i)}function C(t,e){var i=e.z;null==i&&(i=g),t.traverse((function(t){t.z=i,t.z2=i}))}function k(t,e){R(e).updateCommon(t,e),L(t,e)}function R(t){return st[t.__brushOption.brushType]}function P(t,e,i){var n,r=t._panels;if(!r)return!0;var a=t._transform;return c(r,(function(t){t.isTargetByCursor(e,i,a)&&(n=t)})),n}function O(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function N(t){var e=t._covers,i=e.length;return c(e,(function(e){t.group.remove(e)}),t),e.length=0,!!i}function F(t,e){var i=h(t._covers,(function(t){var e=t.__brushOption,i=r.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}}));t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function B(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],r=i[0]-n[0],a=i[1]-n[1],o=p(r*r+a*a,.5);return o>v}function z(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function V(t,e,i,n){var r=new o.Group;return r.add(new o.Rect({name:"main",style:W(i),silent:!0,draggable:!0,cursor:"move",drift:u(t,e,r,"nswe"),ondragend:u(F,e,{isEnd:!0})})),c(n,(function(i){r.add(new o.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(t,e,r,i),ondragend:u(F,e,{isEnd:!0})}))})),r}function G(t,e,i,n){var r=n.brushStyle.lineWidth||0,a=f(r,m),o=i[0][0],s=i[1][0],l=o-r/2,u=s-r/2,c=i[0][1],h=i[1][1],d=c-a+r/2,p=h-a+r/2,g=c-o,v=h-s,y=g+r,x=v+r;H(t,e,"main",o,s,g,v),n.transformable&&(H(t,e,"w",l,u,a,x),H(t,e,"e",d,u,a,x),H(t,e,"n",l,u,y,a),H(t,e,"s",l,p,y,a),H(t,e,"nw",l,u,a,a),H(t,e,"ne",d,u,a,a),H(t,e,"sw",l,p,a,a),H(t,e,"se",d,p,a,a))}function U(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(W(i)),r.attr({silent:!n,cursor:n?"move":"default"}),c(["w","e","n","s","se","sw","ne","nw"],(function(i){var r=e.childOfName(i),a=Y(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?_[a]+"-resize":null})}))}function H(t,e,i,n,r,a,o){var s=e.childOfName(i);s&&s.setShape(Q($(t,e,[[n,r],[n+a,r+o]])))}function W(t){return r.defaults({strokeNoScale:!0},t.brushStyle)}function j(t,e,i,n){var r=[d(t,i),d(e,n)],a=[f(t,i),f(e,n)];return[[r[0],a[0]],[r[1],a[1]]]}function K(t){return o.getTransform(t.group)}function Y(t,e){if(e.length>1){e=e.split("");var i=[Y(t,e[0]),Y(t,e[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=o.transformDirection(n[e],K(t));return r[i]}function X(t,e,i,n,r,a,o,s){var l=n.__brushOption,u=t(l.range),h=Z(i,a,o);c(r.split(""),(function(t){var e=x[t];u[e[0]][e[1]]+=h[e[0]]})),l.range=e(j(u[0][0],u[1][0],u[0][1],u[1][1])),k(i,n),F(i,{isEnd:!1})}function q(t,e,i,n,r){var a=e.__brushOption.range,o=Z(t,i,n);c(a,(function(t){t[0]+=o[0],t[1]+=o[1]})),k(t,e),F(t,{isEnd:!1})}function Z(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),a=n.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function $(t,e,i){var n=O(t,e);return n&&!0!==n?n.clipPath(i,t._transform):r.clone(i)}function Q(t){var e=d(t[0][0],t[1][0]),i=d(t[0][1],t[1][1]),n=f(t[0][0],t[1][0]),r=f(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:r-i}}function J(t,e,i){if(t._brushType&&!ot(t,e)){var n=t._zr,r=t._covers,a=P(t,e,i);if(!t._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(!0===a||s.panelId===a.panelId)&&st[s.brushType].contain(r[o],i[0],i[1]))return}a&&n.setCursorStyle("crosshair")}}function tt(t){var e=t.event;e.preventDefault&&e.preventDefault()}function et(t,e,i){return t.childOfName("main").contain(e,i)}function it(t,e,i,n){var a,o=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(i.slice()),B(t)||o){if(s&&!o){"single"===l.brushMode&&N(t);var u=r.clone(l);u.brushType=nt(u.brushType,s),u.panelId=!0===s?null:s.panelId,o=t._creatingCover=D(t,u),t._covers.push(o)}if(o){var c=st[nt(t._brushType,s)],h=o.__brushOption;h.range=c.getCreatingRange($(t,o,t._track)),n&&(M(t,o),c.updateCommon(t,o)),L(t,o),a={isEnd:n}}}else n&&"single"===l.brushMode&&l.removeOnClick&&P(t,e,i)&&N(t)&&(a={isEnd:n,removeOnClick:!0});return a}function nt(t,e){return"auto"===t?e.defaultBrushType:t}T.prototype={constructor:T,enableBrush:function(t){return this._brushType&&A(this),t.brushType&&w(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};r.each(t,(function(t){e[t.panelId]=r.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){c(this._covers,t,e)},updateCovers:function(t){t=r.map(t,(function(t){return r.merge(r.clone(b),t,!0)}));var e="\0-brush-index-",i=this._covers,n=this._covers=[],a=this,o=this._creatingCover;return new l(i,t,u,s).add(c).update(c).remove(h).execute(),this;function s(t,i){return(null!=t.id?t.id:e+i)+"-"+t.brushType}function u(t,e){return s(t.__brushOption,e)}function c(e,r){var s=t[e];if(null!=r&&i[r]===o)n[e]=i[r];else{var l=n[e]=null!=r?(i[r].__brushOption=s,i[r]):M(a,D(a,s));k(a,l)}}function h(t){i[t]!==o&&a.group.remove(i[t])}},unmount:function(){return this.enableBrush(!1),N(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},r.mixin(T,a);var rt={mousedown:function(t){if(this._dragging)at(this,t);else if(!t.target||!t.target.draggable){tt(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var i=this._creatingPanel=P(this,t,e);i&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,i=t.offsetY,n=this.group.transformCoordToLocal(e,i);if(J(this,t,n),this._dragging){tt(t);var r=it(this,t,n,!1);r&&F(this,r)}},mouseup:function(t){at(this,t)}};function at(t,e){if(t._dragging){tt(e);var i=e.offsetX,n=e.offsetY,r=t.group.transformCoordToLocal(i,n),a=it(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&F(t,a)}}function ot(t,e,i){var n=t._zr;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}var st={lineX:lt(0),lineY:lt(1),rect:{createCover:function(t,e){return V(u(X,(function(t){return t}),(function(t){return t})),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=z(t);return j(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){G(t,e,i,n)},updateCommon:U,contain:et},polygon:{createCover:function(t,e){var i=new o.Group;return i.add(new o.Polyline({name:"main",style:W(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new o.Polygon({name:"main",draggable:!0,drift:u(q,t,e),ondragend:u(F,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i,n){e.childAt(0).setShape({points:$(t,e,i)})},updateCommon:U,contain:et}};function lt(t){return{createCover:function(e,i){return V(u(X,(function(e){var i=[e,[0,100]];return t&&i.reverse(),i}),(function(e){return e[t]})),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=z(e),n=d(i[0][t],i[1][t]),r=f(i[0][t],i[1][t]);return[n,r]},updateCoverShape:function(e,i,n,r){var a,o=O(e,i);if(!0!==o&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,a];t&&l.reverse(),G(e,i,l,r)},updateCommon:U,contain:et}}var ut=T;t.exports=ut},fd27:function(t,e,i){var n=i("9273"),r=i("a991"),a=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};a.prototype={type:"polar",axisPointerEnabled:!0,constructor:a,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);n.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;var l=Math.atan2(-i,e)/Math.PI*180,u=l<a?1:-1;while(l<a||l>o)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,r=-Math.sin(i)*e+this.cy;return[n,r]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),i=e.getExtent().slice();i[0]>i[1]&&i.reverse();var n=t.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:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,r=i*i+n*n,a=this.r,o=this.r0;return r<=a*a&&r>=o*o}}}};var o=a;t.exports=o},fd63:function(t,e,i){var n=i("42e5"),r=i("6d8b"),a=r.isFunction,o={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),r=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(r),s=!a(o)||o instanceof n?null:o;o&&!s||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount())),i.setVisual("color",o);var l=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=t.get(l);if(i.setVisual("borderColor",u),!e.isSeriesFiltered(t)){s&&i.each((function(e){i.setItemVisual(e,"color",s(t.getDataParams(e)))}));var c=function(t,e){var i=t.getItemModel(e),n=i.get(r,!0),a=i.get(l,!0);null!=n&&t.setItemVisual(e,"color",n),null!=a&&t.setItemVisual(e,"borderColor",a)};return{dataEach:i.hasItemOption?c:null}}}};t.exports=o},fdde:function(t,e){var i={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},n=function(t,e){return Math.round(t.length/2)};function r(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,e,r){var a=t.getData(),o=t.get("sampling"),s=t.coordinateSystem;if("cartesian2d"===s.type&&o){var l,u=s.getBaseAxis(),c=s.getOtherAxis(u),h=u.getExtent(),d=Math.abs(h[1]-h[0]),f=Math.round(a.count()/d);if(f>1)"string"===typeof o?l=i[o]:"function"===typeof o&&(l=o),l&&t.setData(a.downSample(a.mapDimension(c.dim),1/f,l,n))}}}}t.exports=r},fe21:function(t,e,i){var n=i("e86a"),r=i("2306"),a=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):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(t){return n.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},febc:function(t,e,i){var n=i("6d8b"),r=i("4f85"),a=i("e468"),o=a.seriesModelMixin,s=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(s,o,!0);var l=s;t.exports=l},fecb:function(t,e,i){var n=i("6d8b"),r=i("2145"),a=i("29a8"),o=a.toolbox.brush;function s(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}s.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(o.title)};var l=s.prototype;l.render=l.updateView=function(t,e,i){var r,a,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,a=t.brushOption.brushMode||"single",o|=t.areas.length})),this._brushType=r,this._brushMode=a,n.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?o:e===r)?"emphasis":"normal")}))},l.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return n.each(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},l.onclick=function(t,e,i){var n=this._brushType,r=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===r?"single":"multiple":r}})},r.register("brush",s);var u=s;t.exports=u},ff2e:function(t,e,i){var n=i("6d8b"),r=i("2306"),a=i("e86a"),o=i("eda2"),s=i("1687"),l=i("697e"),u=i("fab2");function c(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function h(t,e,i,n,r){var s=i.get("value"),l=f(s,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),u=i.getModel("label"),c=o.normalizeCssArray(u.get("padding")||0),h=u.getFont(),p=a.getBoundingRect(l,h),g=r.position,v=p.width+c[1]+c[3],m=p.height+c[0]+c[2],y=r.align;"right"===y&&(g[0]-=v),"center"===y&&(g[0]-=v/2);var x=r.verticalAlign;"bottom"===x&&(g[1]-=m),"middle"===x&&(g[1]-=m/2),d(g,v,m,n);var _=u.get("backgroundColor");_&&"auto"!==_||(_=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:v,height:m,r:u.get("borderRadius")},position:g.slice(),style:{text:l,textFont:h,textFill:u.getTextColor(),textPosition:"inside",textPadding:c,fill:_,stroke:u.get("borderColor")||"transparent",lineWidth:u.get("borderWidth")||0,shadowBlur:u.get("shadowBlur"),shadowColor:u.get("shadowColor"),shadowOffsetX:u.get("shadowOffsetX"),shadowOffsetY:u.get("shadowOffsetY")},z2:10}}function d(t,e,i,n){var r=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,a)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function f(t,e,i,r,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),s=a.formatter;if(s){var u={value:l.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};n.each(r,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&u.seriesData.push(r)})),n.isString(s)?o=s.replace("{value}",o):n.isFunction(s)&&(o=s(u))}return o}function p(t,e,i){var n=s.create();return s.rotate(n,n,i.rotation),s.translate(n,n,i.position),r.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function g(t,e,i,n,r,a){var o=u.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get("label.margin"),h(e,n,r,a,{position:p(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function v(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function m(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function y(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}e.buildElStyle=c,e.buildLabelElOption=h,e.getValueLabel=f,e.getTransformedPosition=p,e.buildCartesianSingleLabelElOption=g,e.makeLineShape=v,e.makeRectShape=m,e.makeSectorShape=y}}]);
|