(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-318aa438"],{"0046":function(t,e,n){var i=n("6d8b"),r=i.each,o=i.createHashMap,a=n("4f85"),s=n("3301"),c=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return l(n,this),s(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},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 l(t,e){if(!t.encodeDefine){var n=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(n){var i=t.encodeDefine=o();r(n.dimensions,(function(t){var e=u(t);i.set(t,e)}))}}}function u(t){return+t.replace("dim","")}t.exports=c},"004f":function(t,e,n){var i=n("6d8b"),r=n("72b6"),o=n("2306"),a=n("a15a"),s=a.createSymbol,c=n("f934"),l=n("cbb0"),u=r.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,a=r.getFont(),s=r.getTextColor(),l=this._getItemAlign(),u=e.itemSize,h=this._getViewData(),p=h.endsText,d=i.retrieve(e.get("showLabel",!0),!p);function f(r){var c=r.piece,h=new o.Group;h.onclick=i.bind(this._onItemClick,this,c),this._enableHoverLink(h,r.indexInModelPieceList);var p=e.getRepresentValue(c);if(this._createItemSymbol(h,p,[0,0,u[0],u[1]]),d){var f=this.visualMapModel.getValueState(p);h.add(new o.Text({style:{x:"right"===l?-n:u[0]+n,y:u[1]/2,text:c.text,textVerticalAlign:"middle",textAlign:l,textFont:a,textFill:s,opacity:"outOfRange"===f?.5:1}}))}t.add(h)}p&&this._renderEndsText(t,p[0],u,d,l),i.each(h.viewPieceList,f,this),p&&this._renderEndsText(t,p[1],u,d,l),c.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.convertDataIndex(n.findTargetDataIndices(e))})}t.on("mouseover",i.bind(n,this,"highlight")).on("mouseout",i.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=i.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),o=t.get("inverse");return("horizontal"===r?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(s(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,r=i.clone(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[o]=!0,i.each(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),h=u;t.exports=h},"007d":function(t,e,n){var i=n("3eba");n("cb8f"),n("a96b"),n("42f6"),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00ba":function(t,e,n){var i=n("3eba"),r=n("e46b"),o=n("e0d3"),a=o.defaultEmphasis,s=i.extendSeriesModel({type:"series.funnel",init:function(t){s.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return r(this,["value"])},_defaultLabelLine:function(t){a(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=s.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",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}}}}),c=s;t.exports=c},"00d8":function(t,e,n){var i=n("6d8b");function r(t,e){return e=e||[0,0],i.map([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function o(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:i.bind(r,t)}}}t.exports=o},"0141":function(t,e,n){var i=n("6d8b"),r=n("9850"),o=n("6cc5"),a=n("5b87");function s(t,e,n,i){o.call(this,t),this.map=e;var r=a.load(e,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function c(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;nc&&(n.dragging=!0,0===h&&Object(r["a"])(t),Object(i["a"])("grab")),n.dragging){var f=n.last||n.start;d=Object(o["b"])(p,f),e.scroll({dx:d.x,dy:d.y}),n.last=p}a.preventDefault()}function h(t){a["h"].unbind(document,"mousemove",l),a["h"].unbind(document,"mouseup",h),n=null,Object(i["b"])()}function p(t){if(!Object(a["e"])(t.target,".djs-draggable")){var e=t.button;if(!(e>=2||t.ctrlKey||t.shiftKey||t.altKey))return n={button:e,start:Object(s["c"])(t)},a["h"].bind(document,"mousemove",l),a["h"].bind(document,"mouseup",h),!0}}t.on("element.mousedown",500,(function(t){return p(t.originalEvent)})),this.isActive=function(){return!!n}}function u(t){return Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2))}l.$inject=["eventBus","canvas"];e["a"]={__init__:["moveCanvas"],moveCanvas:["type",l]}},"04f6":function(t,e){var n=32,i=7;function r(t){var e=0;while(t>=n)e|=1&t,t>>=1;return t+e}function o(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r=0)r++;return r-e}function a(t,e,n){n--;while(e>>1,r(a,t[o])<0?c=o:s=o+1;var l=i-s;switch(l){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(l>0)t[s+l]=t[s+l-1],l--}t[s]=a}}function c(t,e,n,i,r,o){var a=0,s=0,c=1;if(o(t,e[n+r])>0){s=i-r;while(c0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}else{s=r+1;while(cs&&(c=s);var l=a;a=r-c,c=r-l}a++;while(a>>1);o(t,e[n+u])>0?a=u+1:c=u}return c}function l(t,e,n,i,r,o){var a=0,s=0,c=1;if(o(t,e[n+r])<0){s=r+1;while(cs&&(c=s);var l=a;a=r-c,c=r-l}else{s=i-r;while(c=0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}a++;while(a>>1);o(t,e[n+u])<0?c=u:a=u+1}return c}function u(t,e){var n,r,o=i,a=0,s=0;a=t.length;var u=[];function h(t,e){n[s]=t,r[s]=e,s+=1}function p(){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])break;f(t)}}function d(){while(s>1){var t=s-2;t>0&&r[t-1]=i||m>=i);if(v)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===r){for(h=0;h=0;h--)t[m+h]=t[g+h];if(0===r){b=!0;break}}if(t[f--]=u[d--],1===--s){b=!0;break}if(_=s-c(t[p],u,0,s,s-1,e),0!==_){for(f-=_,d-=_,s-=_,m=f+1,g=d+1,h=0;h<_;h++)t[m+h]=u[g+h];if(s<=1){b=!0;break}}if(t[f--]=t[p--],0===--r){b=!0;break}v--}while(y>=i||_>=i);if(b)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===s){for(f-=r,p-=r,m=f+1,g=p+1,h=r-1;h>=0;h--)t[m+h]=t[g+h];t[f]=u[d]}else{if(0===s)throw new Error;for(g=f-(s-1),h=0;h=0;h--)t[m+h]=t[g+h];t[f]=u[d]}else for(g=f-(s-1),h=0;hp&&(d=p),s(t,i,i+d,i+l,e),l=d}h.pushRun(i,l),h.mergeRuns(),c-=l,i+=l}while(0!==c);h.forceMergeRuns()}}t.exports=h},"0655":function(t,e,n){var i=n("8728"),r=1e-8;function o(t,e){return Math.abs(t-e).5?e:t}function p(t,e,n,i,r){var o=t.length;if(1===r)for(var a=0;ar;if(o)t.length=r;else for(var a=i;a=0;n--)if(T[n]<=e)break;n=Math.min(n,x-2)}else{for(n=H;ne)break;n=Math.min(n-1,x-2)}H=n,G=e;var i=T[n+1]-T[n];if(0!==i)if(N=(e-T[n])/i,b)if(z=j[n],B=j[0===n?n:n-1],F=j[n>x-2?x-1:n+1],V=j[n>x-3?x-1:n+2],S)g(B,z,F,V,N,N*N,N*N*N,l(t,s),k);else{if(E)r=g(B,z,F,V,N,N*N,N*N*N,q,1),r=y(q);else{if(A)return h(z,F,N);r=m(B,z,F,V,N,N*N,N*N*N)}v(t,s,r)}else if(S)p(j[n],j[n+1],N,l(t,s),k);else{var r;if(E)p(j[n],j[n+1],N,q,1),r=y(q);else{if(A)return h(j[n],j[n+1],N);r=u(j[n],j[n+1],N)}v(t,s,r)}},U=new i({target:t._target,life:w,loop:t._loop,delay:t._delay,onframe:W,ondestroy:n});return e&&"spline"!==e&&(U.easing=e),U}}}var x=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||c,this._setter=i||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};x.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:v(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;te&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=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,n=this.hostTree,i=n.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),i.getModel(t,(r||e||n.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},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,n){this.root.eachNode(t,e,n)},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,n=0,i=e.length;n0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=r.clone(t)},getValueState:function(t){var e=a.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(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){var r=a.findPieceIndex(e,this._pieceList);r===t&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],a!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(o,(function(t){var e=t.interval;e&&(e[0]>s&&c([s,e[0]],"outOfRange"),c(e.slice()),s=e[1])}),this),{stops:e,outerColors:n}}function c(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),h={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;var a=(i[1]-i[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;t.precision=n,a=+a.toFixed(n);var s=0;t.minOpen&&e.push({index:s++,interval:[-1/0,i[0]],close:[0,0]});for(var c=i[0],u=s+o;s","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function p(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var d=u;t.exports=d},"07d7":function(t,e,n){var i=n("6d8b"),r=n("41ef"),o=n("607d"),a=n("22d1"),s=n("eda2"),c=i.each,l=s.toCamelCase,u=["","-webkit-","-moz-","-o-"],h="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function p(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return i.map(u,(function(t){return t+"transition:"+n})).join(";")}function d(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),c(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function f(t){var e=[],n=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.getModel("textStyle"),u=t.get("padding");return n&&e.push(p(n)),i&&(a.canvasSupported?e.push("background-Color:"+i):(e.push("background-Color:#"+r.toHex(i)),e.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],(function(n){var i="border-"+n,r=l(i),o=t.get(r);null!=o&&e.push(i+":"+o+("color"===n?"":"px"))})),e.push(d(o)),null!=u&&e.push("padding:"+s.normalizeCssArray(u).join("px ")+"px"),e.join(";")+";"}function g(t,e){if(a.wxa)return null;var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;o.normalizeEvent(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}g.prototype={constructor:g,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=h+f(t)+";left:"+this._x+"px;top:"+this._y+"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 n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},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(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var m=g;t.exports=m},"07e6":function(t,e,n){n("4d85"),n("a753")},"0817":function(t,e,n){var i=n("3eba");n("f306"),n("0046"),n("60d7");var r=n("ab71");i.registerVisual(r)},"085d":function(t,e,n){var i=n("3eba");n("bd92"),n("19e2");var r=n("eabf"),o=n("4c99"),a=n("09b1");i.registerPreprocessor(r),i.registerVisual(o),i.registerLayout(a)},"08c3":function(t,e,n){var i=n("6d8b"),r=n("84ce"),o=function(t,e,n,i){r.call(this,t,e,n),this.type=i||"value",this.model=null};o.prototype={constructor:o,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},i.inherits(o,r);var a=o;t.exports=a},"09b1":function(t,e,n){var i=n("2306"),r=i.subPixelOptimize,o=n("cccd"),a=n("3842"),s=a.parsePercent,c=n("6d8b"),l=c.retrieve2,u="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:o(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=d(t,n),o=0,a=1,s=["x","y"],c=n.mapDimension(s[o]),l=n.mapDimension(s[a],!0),h=l[0],f=l[1],g=l[2],m=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==c||l.length<4))return{progress:t.pipelineContext.large?y:v};function v(t,n){var s;while(null!=(s=t.next())){var l=n.get(c,s),u=n.get(h,s),d=n.get(f,s),v=n.get(g,s),y=n.get(m,s),_=Math.min(u,d),b=Math.max(u,d),x=A(_,l),w=A(b,l),O=A(v,l),S=A(y,l),E=[];k(E,w,0),k(E,x,1),E.push(j(S),j(w),j(O),j(x)),n.setItemLayout(s,{sign:p(n,s,u,d,f),initBaseline:u>d?w[a]:x[a],ends:E,brushRect:T(v,y,l)})}function A(t,n){var i=[];return i[o]=n,i[a]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function k(t,e,n){var a=e.slice(),s=e.slice();a[o]=r(a[o]+i/2,1,!1),s[o]=r(s[o]-i/2,1,!0),n?t.push(a,s):t.push(s,a)}function T(t,e,n){var r=A(t,n),s=A(e,n);return r[o]-=i/2,s[o]-=i/2,{x:r[0],y:r[1],width:a?i:s[0]-r[0],height:a?s[1]-r[1]:i}}function j(t){return t[o]=r(t[o],1),t}}function y(t,n){var i,r,s=new u(5*t.count),l=0,d=[],v=[];while(null!=(r=t.next())){var y=n.get(c,r),_=n.get(h,r),b=n.get(f,r),x=n.get(g,r),w=n.get(m,r);isNaN(y)||isNaN(x)||isNaN(w)?(s[l++]=NaN,l+=4):(s[l++]=p(n,r,_,b,f),d[o]=y,d[a]=x,i=e.dataToPoint(d,null,v),s[l++]=i?i[0]:NaN,s[l++]=i?i[1]:NaN,d[a]=w,i=e.dataToPoint(d,null,v),s[l++]=i?i[1]:NaN)}n.setLayout("largePoints",s)}}};function p(t,e,n,i,r){var o;return o=n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1,o}function d(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=s(l(t.get("barMaxWidth"),r),r),a=s(l(t.get("barMinWidth"),1),r),c=t.get("barWidth");return null!=c?s(c,r):Math.max(Math.min(r/2,o),a)}t.exports=h},"0a6d":function(t,e,n){n("6932"),n("3a56"),n("7dcf"),n("3790"),n("2325"),n("a18f"),n("32a1"),n("2c17"),n("9e87")},"0b44":function(t,e,n){var i=n("607d"),r=function(){this._track=[]};function o(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function a(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}r.prototype={constructor:r,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var r=t.touches;if(r){for(var o={points:[],touches:[],target:e,event:t},a=0,s=r.length;a1&&i&&i.length>1){var s=o(i)/o(r);!isFinite(s)&&(s=1),e.pinchScale=s;var c=a(i);return e.pinchX=c[0],e.pinchY=c[1],{type:"pinch",target:t[0].target,event:e}}}}},c=r;t.exports=c},"0b4b":function(t,e,n){n("d28f"),n("f14c"),n("0ee7"),n("ebf9")},"0c12":function(t,e){function n(){}function i(t,e,n,i){for(var r=0,o=e.length,a=0,s=0;r=a&&h+1>=s){for(var p=[],d=0;d=a&&d+1>=s)return i(o,l.components,e,t);u[n]=l}else u[n]=void 0}c++}while(c<=l){var g=f();if(g)return g}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){var r=e.length,o=n.length,a=t.newPos,s=a-i,c=0;while(a+1=0)&&(j=t);var C=new c.Text({position:e.center.slice(),scale:[1/g[0],1/g[1]],z2:10,silent:!0});c.setLabelStyle(C.style,C.hoverStyle={},w,O,{labelFetcher:j,labelDataIndex:M,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),n.add(C)}if(s)s.setItemGraphicEl(o,n);else{l=t.getRegionModel(e.name);r.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:l&&l.option||{}}}var P=n.__regions||(n.__regions=[]);P.push(e),c.setHoverStyle(n,m,{hoverSilentOnTouch:!!t.get("selectedMode")}),u.add(n)})),this._updateController(t,e,n),d(this,t,u,n,r),f(t,u)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&l.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&i.each(l.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,n){var r=t.coordinateSystem,a=this._controller,c=this._controllerHost;c.zoomLimit=t.get("scaleLimit"),c.zoom=r.getZoom(),a.enable(t.get("roam")||!1);var l=t.mainType;function u(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}a.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,o.updateViewOnPan(c,t.dx,t.dy),n.dispatchAction(i.extend(u(),{dx:t.dx,dy:t.dy}))}),this),a.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,o.updateViewOnZoom(c,t.scale,t.originX,t.originY),n.dispatchAction(i.extend(u(),{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),a.setPointerChecker((function(e,i,o){return r.getViewRectAfterRoam().contain(i,o)&&!s(e,n,t)}))}};var m=g;t.exports=m},"0cde":function(t,e,n){var i=n("1687"),r=n("401b"),o=i.identity,a=5e-5;function s(t){return t>a||t<-a}var c=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},l=c.prototype;l.transform=null,l.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 u=[];l.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;if(n||e){r=r||i.create(),n?this.getLocalTransform(r):o(r),e&&(n?i.mul(r,t.transform,r):i.copy(r,t.transform)),this.transform=r;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(u);var s=u[0]<0?-1:1,c=u[1]<0?-1:1,l=((u[0]-s)*a+s)/u[0]||0,h=((u[1]-c)*a+c)/u[1]||0;r[0]*=l,r[1]*=l,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&o(r)},l.getLocalTransform=function(t){return c.getLocalTransform(this,t)},l.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},l.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],p=i.create();l.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},l.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(h,t.invTransform,e),e=h);var n=this.origin;n&&(n[0]||n[1])&&(p[4]=n[0],p[5]=n[1],i.mul(h,e,p),h[4]-=n[0],h[5]-=n[1],e=h),this.setLocalTransform(e)}},l.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)},l.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},l.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},c.getLocalTransform=function(t,e){e=e||[],o(e);var n=t.origin,r=t.scale||[1,1],a=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),i.scale(e,e,r),a&&i.rotate(e,e,a),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e};var d=c;t.exports=d},"0d3b":function(t,e,n){var i=n("d039"),r=n("b622"),o=n("c430"),a=r("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,i){e["delete"]("b"),n+=i+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0da8":function(t,e,n){var i=n("19eb"),r=n("9850"),o=n("6d8b"),a=n("5e76");function s(t){i.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=a.createOrUpdateImage(i,this._image,this,this.onload);if(r&&a.isImageReady(r)){var o=n.x||0,s=n.y||0,c=n.width,l=n.height,u=r.width/r.height;if(null==c&&null!=l?c=l*u:null==l&&null!=c?l=c/u:null==c&&null==l&&(c=r.width,l=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,p=n.sy||0;t.drawImage(r,h,p,n.sWidth,n.sHeight,o,s,c,l)}else if(n.sx&&n.sy){h=n.sx,p=n.sy;var d=c-h,f=l-p;t.drawImage(r,h,p,d,f,o,s,c,l)}else t.drawImage(r,o,s,c,l);null!=n.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}},o.inherits(s,i);var c=s;t.exports=c},"0e0f":function(t,e,n){var i=n("5f14"),r=n("6d8b");function o(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes;if(n.length){var o=1/0,a=-1/0;r.each(n,(function(t){var e=t.getLayout().value;ea&&(a=e)})),r.each(n,(function(e){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),r=n.mapValueToVisual(e.getLayout().value);e.setVisual("color",r);var s=e.getModel(),c=s.get("itemStyle.color");null!=c&&e.setVisual("color",c)}))}}))}t.exports=o},"0ee7":function(t,e,n){var i=n("6d8b"),r=n("2306"),o=n("f934"),a=n("5e97"),s=r.Group,c=["width","height"],l=["x","y"],u=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.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(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,o){var a=this;u.superCall(this,"renderInner",t,e,n,o);var s=this._controllerGroup,c=e.get("pageIconSize",!0);i.isArray(c)||(c=[c,c]),h("pagePrev",0);var l=e.getModel("pageTextStyle");function h(t,n){var l=t+"DataIndex",u=r.createIcon(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:i.bind(a._pageGo,a,l,e,o)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});u.name=t,s.add(u)}s.add(new r.Text({name:"pageText",style:{textFill:l.getTextColor(),font:l.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),h("pageNext",1)},layoutInner:function(t,e,n,a){var s=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,p=t.getOrient().index,d=c[p],f=c[1-p],g=l[1-p];o.box(t.get("orient"),s,t.get("itemGap"),p?n.width:null,p?null:n.height),o.box("horizontal",h,t.get("pageButtonItemGap",!0));var m=s.getBoundingRect(),v=h.getBoundingRect(),y=this._showController=m[d]>n[d],_=[-m.x,-m.y];a||(_[p]=s.position[p]);var b=[0,0],x=[-v.x,-v.y],w=i.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(y){var O=t.get("pageButtonPosition",!0);"end"===O?x[p]+=n[d]-v[d]:b[p]+=v[d]+w}x[1-p]+=m[f]/2-v[f]/2,s.attr("position",_),u.attr("position",b),h.attr("position",x);var S=this.group.getBoundingRect();S={x:0,y:0};if(S[d]=y?n[d]:m[d],S[f]=Math.max(m[f],v[f]),S[g]=Math.min(0,v[g]+x[1-p]),u.__rectSize=n[d],y){var E={x:0,y:0};E[d]=Math.max(n[d]-v[d]-w,0),E[f]=S[f],u.setClipPath(new r.Rect({shape:E})),u.__rectSize=E[d]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var A=this._getPageInfo(t);return null!=A.pageIndex&&r.updateProps(s,{position:A.contentPosition},!!y&&t),this._updatePageInfoView(t,A),S},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,s=null!=a?a+1:0,c=e.pageCount;r&&o&&r.setStyle("text",i.isString(o)?o.replace("{current}",s).replace("{total}",c):o({current:s,total:c}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=c[r],a=l[r],s=this._findTargetItemIndex(e),u=n.children(),h=u[s],p=u.length,d=p?1:0,f={contentPosition:n.position.slice(),pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var g=b(h);f.contentPosition[r]=-g.s;for(var m=s+1,v=g,y=g,_=null;m<=p;++m)_=b(u[m]),(!_&&y.e>v.s+i||_&&!x(_,v.s))&&(v=y.i>v.i?y:_,v&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount)),y=_;for(m=s-1,v=g,y=g,_=null;m>=-1;--m)_=b(u[m]),_&&x(y,_.s)||!(v.i=e&&t.s<=e+i}},_findTargetItemIndex:function(t){var e,n=this.getContentGroup();return this._showController?n.eachChild((function(n,i){n.__legendDataIndex===t&&(e=i)})):e=0,e}}),h=u;t.exports=h},"0f55":function(t,e,n){var i=n("6d8b"),r=n("84ce"),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(o,r);var a=o;t.exports=a},"0f99":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("e0d3")),o=r.makeInner,a=r.getDataItemValue,s=n("8b7f"),c=s.getCoordSysDefineBySeries,l=n("6d8b"),u=l.createHashMap,h=l.each,p=l.map,d=l.isArray,f=l.isString,g=l.isObject,m=l.isTypedArray,v=l.isArrayLike,y=l.extend,_=(l.assert,n("ec6f")),b=n("93d0"),x=b.SOURCE_FORMAT_ORIGINAL,w=b.SOURCE_FORMAT_ARRAY_ROWS,O=b.SOURCE_FORMAT_OBJECT_ROWS,S=b.SOURCE_FORMAT_KEYED_COLUMNS,E=b.SOURCE_FORMAT_UNKNOWN,A=b.SOURCE_FORMAT_TYPED_ARRAY,k=b.SERIES_LAYOUT_BY_ROW,T=o();function j(t){var e=t.option.source,n=E;if(m(e))n=A;else if(d(e)){0===e.length&&(n=w);for(var i=0,r=e.length;i0&&(s=this.getLineLength(i)/l*1e3),s!==this._period||c!==this._loop){i.stopAnimation();var p=u;h&&(p=u(n)),i.__t>0&&(p=-s*i.__t),i.__t=0;var d=i.animate("",c).when(s,{__t:1}).delay(p).during((function(){r.updateSymbolPosition(i)}));c||d.done((function(){r.remove(i)})),d.start()}this._period=s,this._loop=c}},h.getLineLength=function(t){return c.dist(t.__p1,t.__cp1)+c.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,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},h.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=l.quadraticAt,s=l.quadraticDerivativeAt;o[0]=a(e[0],i[0],n[0],r),o[1]=a(e[1],i[1],n[1],r);var c=s(e[0],i[0],n[0],r),u=s(e[1],i[1],n[1],r);t.rotation=-Math.atan2(u,c)-Math.PI/2,t.ignore=!1},h.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},o.inherits(u,i.Group);var p=u;t.exports=p},1025:function(t,e,n){"use strict";function i(t){t&&"function"===typeof t.stopPropagation&&t.stopPropagation()}function r(t){return t.originalEvent||t.srcEvent}function o(t,e){i(t,e),i(r(t),e)}function a(t){return t.pointers&&t.pointers.length&&(t=t.pointers[0]),t.touches&&t.touches.length&&(t=t.touches[0]),t?{x:t.clientX,y:t.clientY}:null}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}))},"10cc":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("9850"),a=n("2b8c"),s=n("a890"),c=n("88b3"),l=n("bd9e"),u=["inBrush","outOfBrush"],h="__ecBrushSelect",p="__ecInBrushSelectEvent",d=i.PRIORITY.VISUAL.BRUSH;function f(t,e,n,i,r){if(r){var o=t.getZr();if(!o[p]){o[h]||(o[h]=g);var a=c.createOrUpdate(o,h,n,e);a(t,i)}}}function g(t,e){if(!t.isDisposed()){var n=t.getZr();n[p]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[p]=!1}}function m(t,e,n,i){for(var r=0,o=e.length;re[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&x(e)}};function x(t){return new o(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},1111:function(t,e,n){var i=n("3eba");n("67a8"),n("4784");var r=n("7f96"),o=n("87c3");i.registerVisual(r("effectScatter","circle")),i.registerLayout(o("effectScatter"))},"133d":function(t,e,n){var i=n("6d8b"),r=n("e0d3");function o(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),c=r.queryDataIndex(s,t);if(null==c||c<0||i.isArray(c))return{point:[]};var l=s.getItemGraphicEl(c),u=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(c)||[];else if(u&&u.dataToPoint)o=u.dataToPoint(s.getValues(i.map(u.dimensions,(function(t){return s.mapDimension(t)})),c,!0))||[];else if(l){var h=l.getBoundingRect().clone();h.applyTransform(l.transform),o=[h.x+h.width/2,h.y+h.height/2]}return{point:o,el:l}}t.exports=o},1418:function(t,e,n){var i=n("6d8b"),r=n("a15a"),o=r.createSymbol,a=n("2306"),s=n("3842"),c=s.parsePercent,l=n("c775"),u=l.getDefaultLabel;function h(t,e,n){a.Group.call(this),this.updateData(t,e,n)}var p=h.prototype,d=h.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function f(t){return[t[0]/2,t[1]/2]}function g(t,e){this.parent.drift(t,e)}p._createSymbol=function(t,e,n,i,r){this.removeAll();var a=e.getItemVisual(n,"color"),s=o(t,-1,-1,2,2,a,r);s.attr({z2:100,culling:!0,scale:f(i)}),s.drift=g,this._symbolType=t,this.add(s)},p.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},p.getSymbolPath=function(){return this.childAt(0)},p.getScale=function(){return this.childAt(0).scale},p.highlight=function(){this.childAt(0).trigger("emphasis")},p.downplay=function(){this.childAt(0).trigger("normal")},p.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},p.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},p.updateData=function(t,e,n){this.silent=!1;var i=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,o=d(t,e),s=i!==this._symbolType;if(s){var c=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(i,t,e,o,c)}else{var l=this.childAt(0);l.silent=!1,a.updateProps(l,{scale:f(o)},r,e)}if(this._updateCommon(t,e,o,n),s){l=this.childAt(0);var u=n&&n.fadeIn,h={scale:l.scale.slice()};u&&(h.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),a.initProps(l,h,r,e)}this._seriesModel=r};var m=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],_=["emphasis","label"];function b(){!a.isInEmphasis(this)&&w.call(this)}function x(){!a.isInEmphasis(this)&&O.call(this)}function w(){if(!this.incremental&&!this.useHoverLayer){var t=this.__symbolOriginalScale,e=t[1]/t[0];this.animateTo({scale:[Math.max(1.1*t[0],t[0]+3),Math.max(1.1*t[1],t[1]+3*e)]},400,"elasticOut")}}function O(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}p._updateCommon=function(t,e,n,r){var o=this.childAt(0),s=t.hostModel,l=t.getItemVisual(e,"color");"image"!==o.type&&o.useStyle({strokeNoScale:!0});var h=r&&r.itemStyle,p=r&&r.hoverItemStyle,d=r&&r.symbolRotate,g=r&&r.symbolOffset,S=r&&r.labelModel,E=r&&r.hoverLabelModel,A=r&&r.hoverAnimation,k=r&&r.cursorStyle;if(!r||t.hasItemOption){var T=r&&r.itemModel?r.itemModel:t.getItemModel(e);h=T.getModel(m).getItemStyle(["color"]),p=T.getModel(v).getItemStyle(),d=T.getShallow("symbolRotate"),g=T.getShallow("symbolOffset"),S=T.getModel(y),E=T.getModel(_),A=T.getShallow("hoverAnimation"),k=T.getShallow("cursor")}else p=i.extend({},p);var j=o.style;o.attr("rotation",(d||0)*Math.PI/180||0),g&&o.attr("position",[c(g[0],n[0]),c(g[1],n[1])]),k&&o.attr("cursor",k),o.setColor(l,r&&r.symbolInnerColor),o.setStyle(h);var M=t.getItemVisual(e,"opacity");null!=M&&(j.opacity=M);var C=t.getItemVisual(e,"liftZ"),P=o.__z2Origin;null!=C?null==P&&(o.__z2Origin=o.z2,o.z2+=C):null!=P&&(o.z2=P,o.__z2Origin=null);var I=r&&r.useNameLabel;function D(e,n){return I?t.getName(e):u(t,e)}a.setLabelStyle(j,p,S,E,{labelFetcher:s,labelDataIndex:e,defaultText:D,isRectText:!0,autoColor:l}),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.hoverStyle=p,a.setHoverStyle(o),o.__symbolOriginalScale=f(n),A&&s.isAnimationEnabled()&&o.on("mouseover",b).on("mouseout",x).on("emphasis",w).on("normal",O)},p.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,(!e||!e.keepLabel)&&(n.style.text=null),a.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},i.inherits(h,a.Group);var S=h;t.exports=S},1466:function(t,e,n){var i=n("3eba"),r=n("2306"),o=n("6d8b"),a=n("a15a");function s(t){return o.isArray(t)||(t=[+t,+t]),t}var c=i.extendChartView({type:"radar",render:function(t,e,n){var i=t.coordinateSystem,c=this.group,l=t.getData(),u=this._data;function h(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n){var r=s(t.getItemVisual(e,"symbolSize")),o=a.createSymbol(n,-1,-1,2,2,i);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),o}}function p(e,n,i,o,a,s){i.removeAll();for(var c=0;c0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var g=l;if(null!=f.color&&(g=r.defaults({color:f.color},l)),f=r.merge(r.clone(f),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisLabel:c,name:f.text,nameLocation:"end",nameGap:p,nameTextStyle:g,triggerEvent:d},!1),u||(f.name=""),"string"===typeof h){var m=f.name;f.name=h.replace("{value}",null!=m?m:"")}else"function"===typeof h&&(f.name=h(f.name,f));var v=r.extend(new a(f,null,this.ecModel),s);return v.mainType="radar",v.componentIndex=this.componentIndex,v}),this);this.getIndicatorModels=function(){return f}},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"}},c.axisLine),axisLabel:l(c.axisLabel,!1),axisTick:l(c.axisTick,!1),splitLine:l(c.splitLine,!0),splitArea:l(c.splitArea,!0),indicator:[]}}),h=u;t.exports=h},1792:function(t,e){var n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function i(t,e){if("china"===t){var i=n[e.name];if(i){var r=e.center;r[0]+=i[0]/10.5,r[1]+=-i[1]/14}}}t.exports=i},"17b8":function(t,e,n){var i=n("3014"),r=i.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}});t.exports=r},"17d6":function(t,e,n){var i=n("6d8b"),r=n("22d1"),o=n("e0d3"),a=o.makeInner,s=a(),c=i.each;function l(t,e,n){if(!r.node){var i=e.getZr();s(i).records||(s(i).records={}),u(i,e);var o=s(i).records[t]||(s(i).records[t]={});o.handler=n}}function u(t,e){function n(n,i){t.on(n,(function(n){var r=f(e);c(s(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),h(r.pendings,e)}))}s(t).initialized||(s(t).initialized=!0,n("click",i.curry(d,"click")),n("mousemove",i.curry(d,"mousemove")),n("globalout",p))}function h(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function p(t,e,n){t.handler("leave",null,n)}function d(t,e,n,i){e.handler(t,n,i)}function f(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function g(t,e){if(!r.node){var n=e.getZr(),i=(s(n).records||{})[t];i&&(s(n).records[t]=null)}}e.register=l,e.unregister=g},"18c0":function(t,e,n){var i=n("6d8b"),r=n("e0d8"),o=n("8e43"),a=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!i.isArray(t)||(t=new o({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),a.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return a.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(a.scale.call(this,t))},getTicks:function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push(n),n++;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:i.noop,niceExtent:i.noop});s.create=function(){return new s};var c=s;t.exports=c},1953:function(t,e,n){var i=n("2449"),r=i.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});t.exports=r},1980:function(t,e,n){(function(e,i){t.exports=i(n("53fe"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),c=i(n),l=s.length;return c<0||c>=l?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,n){var i=n("3a38"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},1654:function(t,e,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(t,e,n){var i=n("63b6");i(i.S,"Array",{isArray:n("9003")})},"1bc3":function(t,e,n){var i=n("f772");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"20fd":function(t,e,n){"use strict";var i=n("d9f6"),r=n("aebd");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),c=n("520a"),l=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=s(t),d=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),f=d?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[p](""),!e})):void 0;if(!d||!f||"replace"===t&&!u||"split"===t&&!h){var g=/./[p],m=n(a,p,""[t],(function(t,e,n,i,r){return e.exec===c?d&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),v=m[0],y=m[1];i(String.prototype,t,v),r(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},"241e":function(t,e,n){var i=n("25eb");t.exports=function(t){return Object(i(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),c="toString",l=(""+s).split(c);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||r(n,a,t[e]?""+t[e]:l.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=i},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var i=n("5ca1"),r=n("d2c8"),o="includes";i(i.P+i.F*n("5147")(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(t,e,n){"use strict";var i=n("b8e3"),r=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),c=n("8f60"),l=n("45f2"),u=n("53e2"),h=n("5168")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",f="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,y,_,b){c(n,e,v);var x,w,O,S=function(t){if(!p&&t in T)return T[t];switch(t){case f:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",A=y==g,k=!1,T=t.prototype,j=T[h]||T[d]||y&&T[y],M=j||S(y),C=y?A?S("entries"):M:void 0,P="Array"==e&&T.entries||j;if(P&&(O=u(P.call(new t)),O!==Object.prototype&&O.next&&(l(O,E,!0),i||"function"==typeof O[h]||a(O,h,m))),A&&j&&j.name!==g&&(k=!0,M=function(){return j.call(this)}),i&&!b||!p&&!k&&T[h]||a(T,h,M),s[e]=M,s[E]=m,y)if(x={values:A?M:S(g),keys:_?M:S(f),entries:C},b)for(w in x)w in T||o(T,w,x[w]);else r(r.P+r.F*(p||k),e,x);return x}},"32a6":function(t,e,n){var i=n("241e"),r=n("c3a1");n("ce7e")("keys",(function(){return function(t){return r(i(t))}}))},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var i=n("e53d").document;t.exports=i&&i.documentElement},"335c":function(t,e,n){var i=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var i=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var i=n("335c"),r=n("25eb");t.exports=function(t){return i(r(t))}},3702:function(t,e,n){var i=n("481b"),r=n("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},"3a38":function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"40c3":function(t,e,n){var i=n("6b4c"),r=n("5168")("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"45f2":function(t,e,n){var i=n("d9f6").f,r=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"469f":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("7d7b")},"481b":function(t,e){t.exports={}},"4aa6":function(t,e,n){t.exports=n("dc62")},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},"4ee1":function(t,e,n){var i=n("5168")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:n=!0}},o[i]=function(){return s},t(o)}catch(a){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var i=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(r){}}return!0}},5168:function(t,e,n){var i=n("dbdb")("wks"),r=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=i},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",c=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[s]||0!==e[s]}(),l=void 0!==/()??/.exec("")[1],u=c||l;u&&(a=function(t){var e,n,a,u,h=this;return l&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),c&&(e=h[s]),a=r.call(h,t),c&&a&&(h[s]=h.global?a.index+a[0].length:e),l&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u1?arguments[1]:void 0,m=void 0!==g,v=0,y=u(p);if(m&&(g=i(g,f>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(e=c(p.length),n=new d(e);e>v;v++)l(n,v,m?g(p[v],v):p[v]);else for(h=y.call(p),n=new d;!(r=h.next()).done;v++)l(n,v,m?a(h,g,[r.value,v],!0):r.value);return n.length=v,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var i=n("dbdb")("keys"),r=n("62a0");t.exports=function(t){return i[t]||(i[t]=r(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var i=n("36c3"),r=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,a){var s,c=i(e),l=r(c.length),u=o(a,l);if(t&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",l=function(t,e,n){var u,h,p,d,f=t&l.F,g=t&l.G,m=t&l.S,v=t&l.P,y=t&l.B,_=g?i:m?i[e]||(i[e]={}):(i[e]||{})[c],b=g?r:r[e]||(r[e]={}),x=b[c]||(b[c]={});for(u in g&&(n=e),n)h=!f&&_&&void 0!==_[u],p=(h?_:n)[u],d=y&&h?s(p,i):v&&"function"==typeof p?s(Function.call,p):p,_&&a(_,u,p,t&l.U),b[u]!=p&&o(b,u,d),v&&x[u]!=p&&(x[u]=p)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"5d73":function(t,e,n){t.exports=n("469f")},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"63b6":function(t,e,n){var i=n("e53d"),r=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),c="prototype",l=function(t,e,n){var u,h,p,d=t&l.F,f=t&l.G,g=t&l.S,m=t&l.P,v=t&l.B,y=t&l.W,_=f?r:r[e]||(r[e]={}),b=_[c],x=f?i:g?i[e]:(i[e]||{})[c];for(u in f&&(n=e),n)h=!d&&x&&void 0!==x[u],h&&s(_,u)||(p=h?x[u]:n[u],_[u]=f&&"function"!=typeof x[u]?n[u]:v&&h?o(p,i):y&&x[u]==p?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[c]=t[c],e}(p):m&&"function"==typeof p?o(Function.call,p):p,m&&((_.virtual||(_.virtual={}))[u]=p,t&l.R&&b&&!b[u]&&a(b,u,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},6762:function(t,e,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var i=n("e53d"),r=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c=l?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7cd6":function(t,e,n){var i=n("40c3"),r=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},"7d7b":function(t,e,n){var i=n("e4ae"),r=n("7cd6");t.exports=n("584a").getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},"7e90":function(t,e,n){var i=n("d9f6"),r=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){r(t);var n,a=o(e),s=a.length,c=0;while(s>c)i.f(t,n=a[c++],e[n]);return t}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(t,e,n){"use strict";var i=n("a159"),r=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},9003:function(t,e,n){var i=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==i(t)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var i=n("c3a1"),r=n("9aa9"),o=n("355d"),a=n("241e"),s=n("335c"),c=Object.assign;t.exports=!c||n("294c")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i}))?function(t,e){var n=a(t),c=arguments.length,l=1,u=r.f,h=o.f;while(c>l){var p,d=s(arguments[l++]),f=u?i(d).concat(u(d)):i(d),g=f.length,m=0;while(g>m)h.call(d,p=f[m++])&&(n[p]=d[p])}return n}:c},9427:function(t,e,n){var i=n("63b6");i(i.S,"Object",{create:n("a159")})},"95d5":function(t,e,n){var i=n("40c3"),r=n("5168")("iterator"),o=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[r]||"@@iterator"in e||o.hasOwnProperty(i(e))}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(t,e,n){var i=n("e4ae"),r=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},c="prototype",l=function(){var t,e=n("1ec9")("iframe"),i=o.length,r="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),l=t.F;while(i--)delete l[c][o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=i(t),n=new s,s[c]=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},a352:function(e,n){e.exports=t},a3c3:function(t,e,n){var i=n("63b6");i(i.S+i.F,"Object",{assign:n("9306")})},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,h=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,f=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,g){return[function(i,r){var o=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=g(n,t,this,e);if(r.done)return r.value;var h=i(t),p=String(this),d="function"===typeof e;d||(e=String(e));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}var _=[];while(1){var b=c(h,p);if(null===b)break;if(_.push(b),!v)break;var x=String(b[0]);""===x&&(h.lastIndex=s(p,o(h.lastIndex),y))}for(var w="",O=0,S=0;S<_.length;S++){b=_[S];for(var E=String(b[0]),A=l(u(a(b.index),p.length),0),k=[],T=1;T=O&&(w+=p.slice(O,A)+C,O=A+E.length)}return w+p.slice(O)}];function m(t,e,i,o,a,s){var c=i+t.length,l=o.length,u=d;return void 0!==a&&(a=r(a),u=p),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(c);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>l){var p=h(u/10);return 0===p?n:p<=l?void 0===o[p-1]?r.charAt(1):o[p-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},a4bb:function(t,e,n){t.exports=n("8aae")},a745:function(t,e,n){t.exports=n("f410")},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b0dc:function(t,e,n){var i=n("e4ae");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&i(o.call(t)),a}}},b447:function(t,e,n){var i=n("3a38"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,c=i(e),l=r(c.length),u=o(a,l);if(t&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var i=n("8436"),r=n("50ed"),o=n("481b"),a=n("36c3");t.exports=n("30f1")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},c3a1:function(t,e,n){var i=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return i(t,r)}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return u})),n("a481");var i=n("4aa6"),r=n.n(i);function o(){return"undefined"!==typeof window?window.console:t.console}var a=o();function s(t){var e=r()(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var c=/-(\w)/g,l=s((function(t){return t.replace(c,(function(t,e){return e?e.toUpperCase():""}))}));function u(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function h(t,e,n){var i=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,i)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8bb:function(t,e,n){t.exports=n("54a1")},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce7e:function(t,e,n){var i=n("63b6"),r=n("584a"),o=n("294c");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},d2c8:function(t,e,n){var i=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d864:function(t,e,n){var i=n("79aa");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var i=n("e4ae"),r=n("794b"),o=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var i=n("584a"),r=n("e53d"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(t,e,n){n("9427");var i=n("584a").Object;t.exports=function(t,e){return i.create(t,e)}},e4ae:function(t,e,n){var i=n("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var i=n("07e3"),r=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),c=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);while(e.length>c)i(s,n=e[c++])&&(~o(l,n)||l.push(n));return l}},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f559:function(t,e,n){"use strict";var i=n("5ca1"),r=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];i(i.P+i.F*n("5147")(a),"String",{startsWith:function(t){var e=o(this,t,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,n):e.slice(n,n+i.length)===i}})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,n){"use strict";var i;n.r(e),"undefined"!==typeof window&&(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=i[1]);var r=n("5176"),o=n.n(r),a=(n("f559"),n("a4bb")),s=n.n(a),c=(n("6762"),n("2fdb"),n("a745")),l=n.n(c);function u(t){if(l()(t))return t}var h=n("5d73"),p=n.n(h);function d(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=p()(t);!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function g(t,e){return u(t)||d(t,e)||f()}function m(t){if(l()(t)){for(var e=0,n=new Array(t.length);e=o?r.length:r.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}function M(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function C(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),M.call(e,t,n)}}function P(t){if(!t||1!==t.length)return!1;var e=g(t,1),n=e[0].componentOptions;return!!n&&["transition-group","TransitionGroup"].includes(n.tag)}function I(t,e){var n=e.header,i=e.footer,r=0,o=0;return n&&(r=n.length,t=t?[].concat(O(n),O(t)):O(n)),i&&(o=i.length,t=t?[].concat(O(t),O(i)):O(i)),{children:t,headerOffset:r,footerOffset:o}}function D(t,e){var n=null,i=function(t,e){n=k(n,t,e)},r=s()(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{});if(i("attrs",r),!e)return n;var a=e.on,c=e.props,l=e.attrs;return i("on",a),i("props",c),o()(n.attrs,l),n}var R=["Start","Add","Remove","Update","End"],L=["Choose","Sort","Filter","Clone"],N=["Move"].concat(R,L).map((function(t){return"on"+t})),B=null,z={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},F={name:"draggable",inheritAttrs:!1,props:z,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=P(e);var n=I(e,this.$slots),i=n.children,r=n.headerOffset,o=n.footerOffset;this.headerOffset=r,this.footerOffset=o;var a=D(this.$attrs,this.componentData);return t(this.getTag(),a,i)},created:function(){null!==this.list&&null!==this.value&&A["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&A["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&A["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};R.forEach((function(n){e["on"+n]=C.call(t,n)})),L.forEach((function(n){e["on"+n]=M.bind(t,n)}));var n=s()(this.$attrs).reduce((function(e,n){return e[Object(A["a"])(n)]=t.$attrs[n],e}),{}),i=o()({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new E.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(A["a"])(e);-1===N.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=j(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=T(this.getChildrenNodes()||[],t);if(-1===e)return null;var n=this.realList[e];return{index:e,element:n}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&"transition-group"===e.$options._componentTag?e.$parent:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=O(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,O(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var r=i.realList,a={list:r,component:i};if(e!==n&&r&&i.getUnderlyingVm){var s=i.getUnderlyingVm(n);if(s)return o()(s,a)}return a},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),B=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(A["d"])(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var i={element:e,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(t){if(Object(A["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(A["d"])(t.clone)},onDragUpdate:function(t){Object(A["d"])(t.item),Object(A["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var i={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=O(e.to.children).filter((function(t){return"none"!==t.style["display"]})),i=n.indexOf(e.related),r=t.component.getVmIndex(i),o=-1!==n.indexOf(B);return o||!e.willInsertAfter?r:r+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),r=this.context,a=this.computeFutureIndex(i,t);o()(r,{futureIndex:a});var s=o()({},t,{relatedContext:i,draggedContext:r});return n(s,e)},onDragEnd:function(){this.computeIndexes(),B=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",F);var V=F;e["default"]=V}})["default"]}))},"19e2":function(t,e,n){var i=n("6d8b"),r=n("e887"),o=n("2306"),a=n("cbe5"),s=["itemStyle"],c=["emphasis","itemStyle"],l=["color","color0","borderColor","borderColor0"],u=r.extend({type:"candlestick",render:function(t,e,n){this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){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(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox");this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a,s=e.getItemLayout(n);a=p(s,n,!0),o.initProps(a,{shape:{points:s.ends}},t,n),d(a,e,n,r),i.add(a),e.setItemGraphicEl(n,a)}})).update((function(a,s){var c=n.getItemGraphicEl(s);if(e.hasValue(a)){var l=e.getItemLayout(a);c?o.updateProps(c,{shape:{points:l.ends}},t,a):c=p(l,a),d(c,e,a,r),i.add(c),e.setItemGraphicEl(a,c)}else i.remove(c)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},_renderLarge:function(t){this._clear(),m(t,this.group)},_incrementalRenderNormal:function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var o,a=i.getItemLayout(n);o=p(a,n),d(o,i,n,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(t,e){m(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:i.noop}),h=a.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))}});function p(t,e,n){var i=t.ends;return new h({shape:{points:n?f(i,t):i},z2:100})}function d(t,e,n,i){var r=e.getItemModel(n),a=r.getModel(s),u=e.getItemVisual(n,"color"),h=e.getItemVisual(n,"borderColor")||u,p=a.getItemStyle(l);t.useStyle(p),t.style.strokeNoScale=!0,t.style.fill=u,t.style.stroke=h,t.__simpleBox=i;var d=r.getModel(c).getItemStyle();o.setHoverStyle(t,d)}function f(t,e){return i.map(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var g=a.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var n=e.points,i=0;i0?"P":"N",o=i.getVisual("borderColor"+r)||i.getVisual("color"+r),a=n.getModel(s).getItemStyle(l);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var y=u;t.exports=y},"19eb":function(t,e,n){var i=n("6d8b"),r=n("2b61"),o=n("d5b7"),a=n("9e2e");function s(t){for(var e in t=t||{},o.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=[]}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 n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[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?o.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}},i.inherits(s,o),i.mixin(s,a);var c=s;t.exports=c},"1ab3":function(t,e,n){var i=n("6d8b"),r=n("2306"),o=n("e887");function a(t,e,n,i){var r=e.getData(),o=this.dataIndex,a=r.getName(o),c=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),r.each((function(t){s(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),c,n)}))}function s(t,e,n,i,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),c=n?i:0,l=[a*c,s*c];r?t.animate().when(200,{position:l}).start("bounceOut"):t.attr("position",l)}function c(t,e){r.Group.call(this);var n=new r.Sector({z2:2}),i=new r.Polyline,o=new r.Text;function a(){i.ignore=i.hoverIgnore,o.ignore=o.hoverIgnore}function s(){i.ignore=i.normalIgnore,o.ignore=o.normalIgnore}this.add(n),this.add(i),this.add(o),this.updateData(t,e,!0),this.on("emphasis",a).on("normal",s).on("mouseover",a).on("mouseout",s)}var l=c.prototype;l.updateData=function(t,e,n){var o=this.childAt(0),a=t.hostModel,c=t.getItemModel(e),l=t.getItemLayout(e),u=i.extend({},l);if(u.label=null,n){o.setShape(u);var h=a.getShallow("animationType");"scale"===h?(o.shape.r=l.r0,r.initProps(o,{shape:{r:l.r}},a,e)):(o.shape.endAngle=l.startAngle,r.updateProps(o,{shape:{endAngle:l.endAngle}},a,e))}else r.updateProps(o,{shape:u},a,e);var p=t.getItemVisual(e,"color");o.useStyle(i.defaults({lineJoin:"bevel",fill:p},c.getModel("itemStyle").getItemStyle())),o.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var d=c.getShallow("cursor");function f(){o.stopAnimation(!0),o.animateTo({shape:{r:l.r+a.get("hoverOffset")}},300,"elasticOut")}function g(){o.stopAnimation(!0),o.animateTo({shape:{r:l.r}},300,"elasticOut")}d&&o.attr("cursor",d),s(this,t.getItemLayout(e),a.isSelected(null,e),a.get("selectedOffset"),a.get("animation")),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),c.get("hoverAnimation")&&a.isAnimationEnabled()&&o.on("mouseover",f).on("mouseout",g).on("emphasis",f).on("normal",g),this._updateLabel(t,e),r.setHoverStyle(this)},l._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),c=s.label,l=t.getItemVisual(e,"color");r.updateProps(n,{shape:{points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]}},o,e),r.updateProps(i,{style:{x:c.x,y:c.y}},o,e),i.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),p=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine");l=t.getItemVisual(e,"color");r.setLabelStyle(i.style,i.hoverStyle={},u,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:l,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!d.get("show"),n.setStyle({stroke:l,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(p.getModel("lineStyle").getLineStyle()),n.hoverStyle=d.getModel("lineStyle").getLineStyle();var f=p.get("smooth");f&&!0===f&&(f=.4),n.setShape({smooth:f})},i.inherits(c,r.Group);var u=o.extend({type:"pie",init:function(){var t=new r.Group;this._sectorGroup=t},render:function(t,e,n,r){if(!r||r.from!==this.uid){var o=t.getData(),s=this._data,l=this.group,u=e.get("animation"),h=!s,p=t.get("animationType"),d=i.curry(a,this.uid,t,u,n),f=t.get("selectedMode");if(o.diff(s).add((function(t){var e=new c(o,t);h&&"scale"!==p&&e.eachChild((function(t){t.stopAnimation(!0)})),f&&e.on("click",d),o.setItemGraphicEl(t,e),l.add(e)})).update((function(t,e){var n=s.getItemGraphicEl(e);n.updateData(o,t),n.off("click"),f&&n.on("click",d),l.add(n),o.setItemGraphicEl(t,n)})).remove((function(t){var e=s.getItemGraphicEl(t);l.remove(e)})).execute(),u&&h&&o.count()>0&&"scale"!==p){var g=o.getItemLayout(0),m=Math.max(n.getWidth(),n.getHeight())/2,v=i.bind(l.removeClipPath,l);l.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,t))}else l.removeClipPath();this._data=o}},dispose:function(){},_createClipPath:function(t,e,n,i,o,a,s){var c=new r.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:o}});return r.initProps(c,{shape:{endAngle:i+(o?1:-1)*Math.PI*2}},s,a),c},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}}}),h=u;t.exports=h},"1c5f":function(t,e,n){var i=n("401b");function r(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),o(n)}}function o(t){t.eachEdge((function(t){var e=t.getModel().get("lineStyle.curveness")||0,n=i.clone(t.node1.getLayout()),r=i.clone(t.node2.getLayout()),o=[n,r];+e&&o.push([(n[0]+r[0])/2-(n[1]-r[1])*e,(n[1]+r[1])/2-(r[0]-n[0])*e]),t.setLayout(o)}))}e.simpleLayout=r,e.simpleLayoutEdge=o},"1ccf":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=n("fd27"),a=n("3842"),s=a.parsePercent,c=n("697e"),l=c.createScaleByModel,u=c.niceScaleExtent,h=n("2039"),p=n("ee1a"),d=p.getStackedDimension;function f(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=s(i[0],r),t.cy=s(i[1],o);var a=t.getRadiusAxis(),c=Math.min(r,o)/2,l=s(e.get("radius"),c);a.inverse?a.setExtent(l,0):a.setExtent(0,l)}function g(t,e){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();r.each(e.mapDimension("radius",!0),(function(t){o.scale.unionExtentFromData(e,d(e,t))})),r.each(e.mapDimension("angle",!0),(function(t){i.scale.unionExtentFromData(e,d(e,t))}))}})),u(i.scale,i.model),u(o.scale,o.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),s=360/i.scale.count();i.inverse?a[1]+=s:a[1]-=s,i.setExtent(a[0],a[1])}}function m(t,e){if(t.type=e.get("type"),t.scale=l(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}n("78f0");var v={dimensions:o.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new o(i);r.update=g;var a=r.getRadiusAxis(),s=r.getAngleAxis(),c=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");m(a,c),m(s,l),f(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}};h.register("polar",v)},"1e32":function(t,e,n){var i=n("6d8b"),r=n("3842"),o=r.parsePercent,a=n("ee1a"),s=a.isDimensionStacked;function c(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function l(t){return t.dim}function u(t,e,n){n.getWidth(),n.getHeight();var r={},o=h(i.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(),n=t.coordinateSystem,i=n.getBaseAxis(),a=c(t),u=o[l(i)][a],h=u.offset,p=u.width,d=n.getOtherAxis(i),f=t.coordinateSystem.cx,g=t.coordinateSystem.cy,m=t.get("barMinHeight")||0,v=t.get("barMinAngle")||0;r[a]=r[a]||[];for(var y=e.mapDimension(d.dim),_=e.mapDimension(i.dim),b=s(e,y),x=d.getExtent()[0],w=0,O=e.count();w=0?"p":"n",C=x;if(b&&(r[a][E]||(r[a][E]={p:x,n:x}),C=r[a][E][M]),"radius"===d.dim){var P=d.dataToRadius(S)-x,I=i.dataToAngle(E);Math.abs(P)=r/3?1:2),c=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,c),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,c)}});t.exports=r},"1f1a":function(t,e,n){var i=n("6d8b"),r=n("e0d3"),o=n("6cb7"),a=n("4319"),s=n("7023"),c=n("eeea"),l=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){o.prototype.init.apply(this,arguments),r.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=c.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=i.reduce(t.regions||[],(function(t,n){return n.name&&t.set(n.name,new a(n,e)),t}),i.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 a(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t),i=n.get("label."+e+".formatter"),r={name:t};return"function"===typeof i?(r.status=e,i(r)):"string"===typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});i.mixin(l,s);var u=l;t.exports=u},"1fab":function(t,e){var n=Array.prototype.slice,i=function(t){this._$handlers={},this._$eventProcessor=t};function r(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}function o(t,e,n,i,o,a){var s=t._$handlers;if("function"===typeof n&&(o=i,i=n,n=null),!i||!e)return t;n=r(t,n),s[e]||(s[e]=[]);for(var c=0;c3&&(r=n.call(r,1));for(var a=e.length,s=0;s4&&(r=n.call(r,1,r.length-1));for(var a=r[r.length-1],s=e.length,c=0;c0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function u(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function h(t,e,n){return 3*(e+n)/4-n}function p(t){var e,n,i=l(t),a=i[0],s=i[1],c=new o(h(t,a,s)),u=0,p=s>0?a-4:a;for(n=0;n>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function d(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function f(t,e,n){for(var i,r=[],o=e;oc?c:s+a));return 1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2023:function(t,e,n){var i=n("6d8b"),r={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:i.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,n){var i=n("6d8b"),r={};function o(){this._coordinateSystems=[]}o.prototype={constructor:o,create:function(t,e){var n=[];i.each(r,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},update:function(t,e){i.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},o.register=function(t,e){r[t]=e},o.get=function(t){return r[t]};var a=o;t.exports=a},"20c8":function(t,e,n){var i=n("4a3f"),r=n("401b"),o=n("e263"),a=n("9850"),s=n("2cf4c"),c=s.devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],p=[],d=[],f=Math.min,g=Math.max,m=Math.cos,v=Math.sin,y=Math.sqrt,_=Math.abs,b="undefined"!==typeof Float32Array,x=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};x.prototype={constructor:x,_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){this._ux=_(1/c/t)||0,this._uy=_(1/c/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(l.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 n=_(t-this._xi)>this._ux||_(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(l.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(l.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(l.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=m(r)*n+t,this._yi=v(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},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,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&d<=t||u<0&&d>=t||0===u&&(h>0&&m<=e||h<0&&m>=e))i=this._dashIdx,n=a[i],d+=u*n,m+=h*n,this._dashIdx=(i+1)%v,u>0&&dc||h>0&&ml||s[i%2?"moveTo":"lineTo"](u>=0?f(d,t):g(d,t),h>=0?f(m,e):g(m,e));u=d-t,h=m-e,this._dashOffset=-y(u*u+h*h)},_dashedBezierTo:function(t,e,n,r,o,a){var s,c,l,u,h,p=this._dashSum,d=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,v=this._yi,_=i.cubicAt,b=0,x=this._dashIdx,w=f.length,O=0;for(d<0&&(d=p+d),d%=p,s=0;s<1;s+=.1)c=_(m,t,n,o,s+.1)-_(m,t,n,o,s),l=_(v,e,r,a,s+.1)-_(v,e,r,a,s),b+=y(c*c+l*l);for(;xd)break;s=(O-d)/b;while(s<=1)u=_(m,t,n,o,s),h=_(v,e,r,a,s),x%2?g.moveTo(u,h):g.lineTo(u,h),s+=f[x]/b,x=(x+1)%w;x%2!==0&&g.lineTo(o,a),c=o-u,l=a-h,this._dashOffset=-y(c*c+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,b&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=p[0]=p[1]=Number.MAX_VALUE,h[0]=h[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,c=0;cc||_(a-r)>u||p===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case l.C:t.bezierCurveTo(s[p++],s[p++],s[p++],s[p++],s[p++],s[p++]),i=s[p-2],r=s[p-1];break;case l.Q:t.quadraticCurveTo(s[p++],s[p++],s[p++],s[p++]),i=s[p-2],r=s[p-1];break;case l.A:var f=s[p++],g=s[p++],y=s[p++],b=s[p++],x=s[p++],w=s[p++],O=s[p++],S=s[p++],E=y>b?y:b,A=y>b?1:y/b,k=y>b?b/y:1,T=Math.abs(y-b)>.001,j=x+w;T?(t.translate(f,g),t.rotate(O),t.scale(A,k),t.arc(0,0,E,x,j,1-S),t.scale(1/A,1/k),t.rotate(-O),t.translate(-f,-g)):t.arc(f,g,E,x,j,1-S),1===p&&(e=m(x)*y+f,n=v(x)*b+g),i=m(j)*y+f,r=v(j)*b+g;break;case l.R:e=i=s[p],n=r=s[p+1],t.rect(s[p++],s[p++],s[p++],s[p++]);break;case l.Z:t.closePath(),i=e,r=n}}}},x.CMD=l;var w=x;t.exports=w},2145:function(t,e){var n={};function i(t,e){n[t]=e}function r(t){return n[t]}e.register=i,e.get=r},2163:function(t,e,n){var i=n("4f85"),r=n("06c7"),o=n("eda2"),a=o.encodeHTML,s=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i={};i.leaves=n;var o=r.createTree(e,this,i),a=0;o.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,c=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return o.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=c})),o.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,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;while(i&&i!==n)o=i.parentNode.name+"."+o,i=i.parentNode;return a(o+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",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=s},"216a":function(t,e,n){var i=n("6d8b"),r=n("3842"),o=n("eda2"),a=n("944e"),s=n("89e3"),c=s.prototype,l=Math.ceil,u=Math.floor,h=1e3,p=60*h,d=60*p,f=24*d,g=function(t,e,n,i){while(n>>1;t[r][1]n&&(s=n);var c=v.length,h=g(v,s,0,c),p=v[Math.min(h,c-1)],d=p[1];if("year"===p[0]){var f=o/d,m=r.nice(f/t,!0);d*=m}var y=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,_=[Math.round(l((i[0]-y)/d)*d+y),Math.round(u((i[1]-y)/d)*d+y)];a.fixExtent(_,i),this._stepLvl=p,this._interval=d,this._niceExtent=_},parse:function(t){return+r.parseDate(t)}});i.each(["contain","normalize"],(function(t){m.prototype[t]=function(e){return c[t].call(this,this.parse(e))}}));var v=[["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",p],["hh:mm\nMM-dd",5*p],["hh:mm\nMM-dd",10*p],["hh:mm\nMM-dd",15*p],["hh:mm\nMM-dd",30*p],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",2*d],["hh:mm\nMM-dd",6*d],["hh:mm\nMM-dd",12*d],["MM-dd\nyyyy",f],["MM-dd\nyyyy",2*f],["MM-dd\nyyyy",3*f],["MM-dd\nyyyy",4*f],["MM-dd\nyyyy",5*f],["MM-dd\nyyyy",6*f],["week",7*f],["MM-dd\nyyyy",10*f],["week",14*f],["week",21*f],["month",31*f],["week",42*f],["month",62*f],["week",70*f],["quarter",95*f],["month",31*f*4],["month",31*f*5],["half-year",380*f/2],["month",31*f*8],["month",31*f*10],["year",380*f]];m.create=function(t){return new m({useUTC:t.ecModel.get("useUTC")})};var y=m;t.exports=y},"217b":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3301")),o=n("4f85"),a=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return r(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!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=a},"217c":function(t,e,n){var i=n("6d8b"),r=n("6cb7");n("df3a");var o=r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){i.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=[],n=i.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))}});t.exports=o},"21a6":function(t,e,n){(function(n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){s(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function r(t){var e=new XMLHttpRequest;return e.open("HEAD",t,!1),e.send(),200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(i){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=a.URL||a.webkitURL,c=document.createElement("a");e=e||t.name||"download",c.download=e,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?o(c):r(c.href)?i(t,e,n):o(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){o(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(r(t))i(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,h=u.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});a.saveAs=s.saveAs=s,t.exports=s}))}).call(this,n("c8ba"))},"22d1":function(t,e){var n={};n="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 i=n;function r(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1]),a&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}t.exports=i},"22da":function(t,e,n){var i=n("f934");function r(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var e,n,i=[t];while(e=i.pop())if(n=e.children,e.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}function o(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){u(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=h(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function a(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:m}function c(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function l(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function h(t,e,n,i){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,c=r.hierNode.modifier,l=o.hierNode.modifier,u=a.hierNode.modifier,h=s.hierNode.modifier;while(s=p(s),o=d(o),s&&o){r=p(r),a=d(a),r.hierNode.ancestor=t;var m=s.hierNode.prelim+h-o.hierNode.prelim-l+i(s,o);m>0&&(g(f(s,t,n),t,m),l+=m,c+=m),h+=s.hierNode.modifier,l+=o.hierNode.modifier,c+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!p(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-c),o&&!d(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=l-u,n=t)}return n}function p(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function d(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function f(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function g(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function m(t,e){return t.parentNode===e.parentNode?1:2}e.init=r,e.firstWalk=o,e.secondWalk=a,e.separation=s,e.radialCoordinate=c,e.getViewRect=l},2306:function(t,e,n){var i=n("6d8b"),r=n("342d"),o=n("41ef"),a=n("1687"),s=n("401b"),c=n("cbe5"),l=n("0cde"),u=n("0da8");e.Image=u;var h=n("e1fc");e.Group=h;var p=n("76a5");e.Text=p;var d=n("d9fc");e.Circle=d;var f=n("4aa2");e.Sector=f;var g=n("4573");e.Ring=g;var m=n("87b1");e.Polygon=m;var v=n("d498");e.Polyline=v;var y=n("c7a2");e.Rect=y;var _=n("cb11");e.Line=_;var b=n("ac0f");e.BezierCurve=b;var x=n("8d32");e.Arc=x;var w=n("d4c6");e.CompoundPath=w;var O=n("48a9");e.LinearGradient=O;var S=n("dded");e.RadialGradient=S;var E=n("9850");e.BoundingRect=E;var A=n("392f");e.IncrementalDisplayable=A;var k=Math.round,T=Math.max,j=Math.min,M={},C=1;function P(t){return c.extend(t)}function I(t,e){return r.extendFromString(t,e)}function D(t,e,n,i){var o=r.createFromString(t,e);return n&&("center"===i&&(n=L(n,o.getBoundingRect())),B(o,n)),o}function R(t,e,n){var i=new u({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(L(e,r))}}});return i}function L(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var N=r.mergePath;function B(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function z(t){var e=t.shape,n=t.style.lineWidth;return k(2*e.x1)===k(2*e.x2)&&(e.x1=e.x2=V(e.x1,n,!0)),k(2*e.y1)===k(2*e.y2)&&(e.y1=e.y2=V(e.y1,n,!0)),t}function F(t){var e=t.shape,n=t.style.lineWidth,i=e.x,r=e.y,o=e.width,a=e.height;return e.x=V(e.x,n,!0),e.y=V(e.y,n,!0),e.width=Math.max(V(i+o,n,!1)-e.x,0===o?0:1),e.height=Math.max(V(r+a,n,!1)-e.y,0===a?0:1),t}function V(t,e,n){var i=k(2*t);return(i+k(e))%2===0?i/2:(i+(n?1:-1))/2}function H(t){return null!=t&&"none"!==t}var G=i.createHashMap(),q=0;function W(t){if("string"!==typeof t)return t;var e=G.get(t);return e||(e=o.lift(t,-.1),q<1e4&&(G.set(t,e),q++)),e}function U(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}function $(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.useHoverLayer;t.__highlighted=n?"layer":"plain";var i=t.__zr;if(i||!n){var r=t,o=t.style;n&&(r=i.addHover(t),o=r.style),dt(o),n||U(r),o.extendFrom(e),Y(o,e,"fill"),Y(o,e,"stroke"),pt(o),n||(t.dirty(!1),t.z2+=C)}}}function Y(t,e,n){!H(e[n])&&H(t[n])&&(t[n]=W(t[n]))}function Z(t){var e=t.__highlighted;if(e)if(t.__highlighted=!1,"layer"===e)t.__zr&&t.__zr.removeHover(t);else if(e){var n=t.style,i=t.__cachedNormalStl;i&&(dt(n),t.setStyle(i),pt(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===C&&(t.z2=r)}}function X(t,e){t.isGroup?t.traverse((function(t){!t.isGroup&&e(t)})):e(t)}function K(t,e){e=t.__hoverStl=!1!==e&&(e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,Z(t),$(t))}function Q(t){return t&&t.__isEmphasisEntered}function J(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&X(this,$)}function tt(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&X(this,Z)}function et(){this.__isEmphasisEntered=!0,X(this,$)}function nt(){this.__isEmphasisEntered=!1,X(this,Z)}function it(t,e,n){t.isGroup?t.traverse((function(t){!t.isGroup&&K(t,t.hoverStyle||e)})):K(t,t.hoverStyle||e),rt(t,n)}function rt(t,e){var n=!1===e;if(t.__hoverSilentOnTouch=null!=e&&e.hoverSilentOnTouch,!n||t.__hoverStyleTrigger){var i=n?"off":"on";t[i]("mouseover",J)[i]("mouseout",tt),t[i]("emphasis",et)[i]("normal",nt),t.__hoverStyleTrigger=!n}}function ot(t,e,n,r,o,a,s){o=o||M;var c,l=o.labelFetcher,u=o.labelDataIndex,h=o.labelDimIndex,p=n.getShallow("show"),d=r.getShallow("show");(p||d)&&(l&&(c=l.getFormattedLabel(u,"normal",null,h)),null==c&&(c=i.isFunction(o.defaultText)?o.defaultText(u,o):o.defaultText));var f=p?c:null,g=d?i.retrieve2(l?l.getFormattedLabel(u,"emphasis",null,h):null,c):null;null==f&&null==g||(at(t,n,a,o),at(e,r,s,o,!0)),t.text=f,e.text=g}function at(t,e,n,r,o){return ct(t,e,r,o),n&&i.extend(t,n),t}function st(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,ct(t,e,r,i)}function ct(t,e,n,r){if(n=n||M,n.isRectText){var o=e.getShallow("position")||(r?null:"inside");"outside"===o&&(o="top"),t.textPosition=o,t.textOffset=e.getShallow("offset");var a=e.getShallow("rotate");null!=a&&(a*=Math.PI/180),t.textRotation=a,t.textDistance=i.retrieve2(e.getShallow("distance"),r?null:5)}var s,c=e.ecModel,l=c&&c.option.textStyle,u=lt(e);if(u)for(var h in s={},u)if(u.hasOwnProperty(h)){var p=e.getModel(["rich",h]);ut(s[h]={},p,l,n,r)}return t.rich=s,ut(t,e,l,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function lt(t){var e;while(t&&t!==t.ecModel){var n=(t.option||M).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}function ut(t,e,n,r,o,a){n=!o&&n||M,t.textFill=ht(e.getShallow("color"),r)||n.color,t.textStroke=ht(e.getShallow("textBorderColor"),r)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),t.insideRawTextPosition=t.textPosition,o||(a&&(t.insideRollbackOpt=r,pt(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.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"),a&&r.disableBox||(t.textBackgroundColor=ht(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=ht(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")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function ht(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function pt(t){var e=t.insideRollbackOpt;if(e&&null==t.textFill){var n,i=e.useInsideStyle,r=t.insideRawTextPosition,o=e.autoColor;!1!==i&&(!0===i||e.isRectText&&r&&"string"===typeof r&&r.indexOf("inside")>=0)?(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(n={textFill:null},t.textFill=o),n&&(t.insideRollback=n)}}function dt(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function ft(t,e){var n=e||e.getModel("textStyle");return i.trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function gt(t,e,n,i,r,o){"function"===typeof r&&(o=r,r=null);var a=i&&i.isAnimationEnabled();if(a){var s=t?"Update":"",c=i.getShallow("animationDuration"+s),l=i.getShallow("animationEasing"+s),u=i.getShallow("animationDelay"+s);"function"===typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"===typeof c&&(c=c(r)),c>0?e.animateTo(n,c,u||0,l,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function mt(t,e,n,i,r){gt(!0,t,e,n,i,r)}function vt(t,e,n,i,r){gt(!1,t,e,n,i,r)}function yt(t,e){var n=a.identity([]);while(t&&t!==e)a.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function _t(t,e,n){return e&&!i.isArrayLike(e)&&(e=l.getLocalTransform(e)),n&&(e=a.invert([],e)),s.applyTransform([],t,e)}function bt(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=_t(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function xt(t,e,n,r){if(t&&e){var o=a(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=c(t);t.attr(c(e)),mt(t,i,n,t.dataIndex)}}}))}function a(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}function c(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}}function wt(t,e){return i.map(t,(function(t){var n=t[0];n=T(n,e.x),n=j(n,e.x+e.width);var i=t[1];return i=T(i,e.y),i=j(i,e.y+e.height),[n,i]}))}function Ot(t,e){var n=T(t.x,e.x),i=j(t.x+t.width,e.x+e.width),r=T(t.y,e.y),o=j(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function St(t,e,n){e=i.extend({rectHover:!0},e);var r=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),i.defaults(r,n),new u(e)):D(t.replace("path://",""),e,n,"center")}e.Z2_EMPHASIS_LIFT=C,e.extendShape=P,e.extendPath=I,e.makePath=D,e.makeImage=R,e.mergePath=N,e.resizePath=B,e.subPixelOptimizeLine=z,e.subPixelOptimizeRect=F,e.subPixelOptimize=V,e.setElementHoverStyle=K,e.isInEmphasis=Q,e.setHoverStyle=it,e.setAsHoverStyleTrigger=rt,e.setLabelStyle=ot,e.setTextStyle=at,e.setText=st,e.getFont=ft,e.updateProps=mt,e.initProps=vt,e.getTransform=yt,e.applyTransform=_t,e.transformDirection=bt,e.groupTransition=xt,e.clipPointsByRect=wt,e.clipRectByRect=Ot,e.createIcon=St},2325:function(t,e,n){var i=n("6d8b"),r=n("607d"),o=n("2306"),a=n("88b3"),s=n("7dcf"),c=n("3842"),l=n("f934"),u=n("ef6a"),h=o.Rect,p=c.linearMap,d=c.asc,f=i.bind,g=i.each,m=7,v=1,y=30,_="horizontal",b="vertical",x=5,w=["line","bar","candlestick","scatter"],O=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,n,i){O.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){O.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){O.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===_?{right:r.width-n.x-n.width,top:r.height-y-m,width:n.width,height:y}:{right:m,top:n.y,width:y,height:n.height},a=l.getLayoutParams(t.option);i.each(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=l.getLayoutRect(a,r,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==_||r?n===_&&r?{scale:a?[-1,1]:[-1,-1]}:n!==b||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);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,n=this._displayables.barGroup;n.add(new h({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new h({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,r=n.getRawData(),a=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=a){var s=r.getDataExtent(a),c=.3*(s[1]-s[0]);s=[s[0]-c,s[1]+c];var l,u=[0,e[1]],h=[0,e[0]],d=[[e[0],0],[0,0]],f=[],g=h[1]/(r.count()-1),m=0,v=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(v>0&&e%v)m+=g;else{var n=null==t||isNaN(t)||""===t,i=n?0:p(t,s,u,!0);n&&!l&&e?(d.push([d[d.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&l&&(d.push([m,0]),f.push([m,0])),d.push([m,i]),f.push([m,i]),m+=g,l=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:d},style:i.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(o,a){var s=t.getAxisProxy(o.name,a).getTargetSeriesModels();i.each(s,(function(t){if(!n&&!(!0!==e&&i.indexOf(w,t.get("type"))<0)){var s,c=r.getComponent(o.axis,a).axis,l=S(o.name),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(s=u.getOtherAxis(c).inverse),l=t.getData().mapDimension(l),n={thisAxis:c,series:t,thisDim:o.name,otherDim:l,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,a=this._size,s=this.dataZoomModel;i.add(t.filler=new h({draggable:!0,cursor:E(this._orient),drift:f(this._onDragMove,this,"all"),onmousemove:function(t){r.stop(t.event)},ondragstart:f(this._showDataInfo,this,!0),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1),style:{fill:s.get("fillerColor"),textPosition:"inside"}})),i.add(new h(o.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}}))),g([0,1],(function(t){var a=o.createIcon(s.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:f(this._onDragMove,this,t),onmousemove:function(t){r.stop(t.event)},ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),l=a.getBoundingRect();this._handleHeight=c.parsePercent(s.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,a.setStyle(s.getModel("handleStyle").getItemStyle());var u=s.get("handleColor");null!=u&&(a.style.fill=u),i.add(e[t]=a);var h=s.textStyleModel;this.group.add(n[t]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:h.getTextColor(),textFont:h.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[p(t[0],[0,100],e,!0),p(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];u(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?p(o.minSpan,a,r,!0):null,null!=o.maxSpan?p(o.maxSpan,a,r,!0):null);var s=this._range,c=this._range=d([p(i[0],r,a,!0),p(i[1],r,a,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=d(n.slice()),r=this._size;g([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,a=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var c=s.getAxisModel().axis,l=this._range,u=t?s.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(u[0],c),this._formatLabel(u[1],c)]}}var h=d(this._handleEnds.slice());function p(t){var e=o.getTransform(n.handles[t].parent,this.group),s=o.transformDirection(0===t?"right":"left",e),c=this._handleWidth/2+x,l=o.applyTransform([h[t]+(0===t?-c:c),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],textVerticalAlign:r===_?"middle":s,textAlign:r===_?s:"center",text:a[t]})}p.call(this,0),p.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(o,20));return i.isFunction(r)?r(t,a):i.isString(r)?r.replace("{value}",a):a},_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,n){this._dragging=!0;var i=this._displayables.barGroup.getLocalTransform(),r=o.applyTransform([e,n],i,!0),a=this._updateInterval(t,r[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&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,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_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 n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}})),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function S(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function E(t){return"vertical"===t?"ns-resize":"ew-resize"}var A=O;t.exports=A},"237f":function(t,e,n){var i=n("6d8b"),r=n("6179"),o=n("7368"),a=n("31d9"),s=n("b1d4"),c=n("2039"),l=n("3301");function u(t,e,n,u,h){for(var p=new o(u),d=0;d "+_)),m++)}var b,x=n.get("coordinateSystem");if("cartesian2d"===x||"polar"===x)b=l(t,n);else{var w=c.get(x),O=w&&"view"!==w.type&&w.dimensions||[];i.indexOf(O,"value")<0&&O.concat(["value"]);var S=s(t,{coordDimensions:O});b=new r(S,n),b.initData(t)}var E=new r(["value"],n);return E.initData(g,f),h&&h(b,E),a({mainData:b,struct:p,structAttr:"graph",datas:{node:b,edge:E},datasAttr:{node:"data",edge:"edgeData"}}),p.update(),p}t.exports=u},"23e0":function(t,e,n){var i=n("6d8b"),r=n("7887"),o=n("89e3"),a=n("3842"),s=n("697e"),c=s.getScaleExtent,l=s.niceScaleExtent,u=n("2039");function h(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=i.map(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new r(n,new o);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}h.prototype.getIndicatorAxes=function(){return this._indicatorAxes},h.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},h.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[r,o]},h.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,c=0;cn[0]&&isFinite(f)&&isFinite(n[0]))}else{var g=r.getTicks().length-1;g>o&&(p=s(p));var m=Math.round((n[0]+n[1])/2/p)*p,v=Math.round(o/2);r.setExtent(a.round(m-v*p),a.round(m+(o-v)*p)),r.setInterval(p)}}))},h.dimensions=[],h.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new h(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},u.register("radar",h);var p=h;t.exports=p},"23ee":function(t,e,n){var i=n("3eba");n("879e"),n("9704"),n("d747");var r=n("675a"),o=n("7f96"),a=n("2943"),s=n("de6e"),c=n("d357"),l=n("adda"),u=n("5866"),h=n("7b0c");i.registerProcessor(r),i.registerVisual(o("graph","circle",null)),i.registerVisual(a),i.registerVisual(s),i.registerLayout(c),i.registerLayout(l),i.registerLayout(u),i.registerCoordinateSystem("graphView",{create:h})},2449:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("6d8b"),a=n("22d1"),s=n("e0d3"),c=n("eda2"),l=n("38a2"),u=c.addCommas,h=c.encodeHTML;function p(t){s.defaultEmphasis(t,"label",["show"])}var d=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n),this.mergeOption(t,n,i.createdBySelf,!0)},isAnimationEnabled:function(){if(a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,n,i){var r=this.constructor,a=this.mainType+"Model";n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),s=t[a];n&&n.data?(s?s.mergeOption(n,e,!0):(i&&p(n),o.each(n.data,(function(t){t instanceof Array?(p(t[0]),p(t[1])):p(t)})),s=new r(n,this,e),o.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[a]=s):t[a]=null}),this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=o.isArray(n)?o.map(n,u).join(", "):u(n),r=e.getName(t),a=h(this.name);return(null!=n||r)&&(a+="
"),r&&(a+=h(r),null!=n&&(a+=" : ")),null!=n&&(a+=h(i)),a},getData:function(){return this._data},setData:function(t){this._data=t}});o.mixin(d,l);var f=d;t.exports=f},"24b9":function(t,e,n){var i=n("f934"),r=n("3842"),o=r.parsePercent,a=r.linearMap;function s(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a=0||r&&i.indexOf(r,s)<0)){var c=e.getShallow(s);null!=c&&(o[t[a][0]]=c)}}return o}}t.exports=r},"28a0":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},"292e":function(t,e,n){var i=n("3842"),r=i.parsePercent,o=i.linearMap,a=n("bb70"),s=n("6d8b"),c=2*Math.PI,l=Math.PI/180;function u(t,e,n,i){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),u=t.get("center"),h=t.get("radius");s.isArray(h)||(h=[0,h]),s.isArray(u)||(u=[u,u]);var p=n.getWidth(),d=n.getHeight(),f=Math.min(p,d),g=r(u[0],p),m=r(u[1],d),v=r(h[0],f/2),y=r(h[1],f/2),_=-t.get("startAngle")*l,b=t.get("minAngle")*l,x=0;e.each(i,(function(t){!isNaN(t)&&x++}));var w=e.getSum(i),O=Math.PI/(w||x)*2,S=t.get("clockwise"),E=t.get("roseType"),A=t.get("stillShowZeroSum"),k=e.getDataExtent(i);k[0]=0;var T=c,j=0,M=_,C=S?1:-1;if(e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:g,cy:m,r0:v,r:E?NaN:y});else{i="area"!==E?0===w&&A?O:t*O:c/x,i4)return t;for(n=[],i=0;i1&&"0"==r.charAt(0)&&(o=I.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)a=0;else{if(!(10==o?R:8==o?D:L).test(r))return t;a=parseInt(r,o)}n.push(a)}for(i=0;i=E(256,5-e))return null}else if(a>255)return null;for(s=n.pop(),i=0;i6)return;i=0;while(p()){if(r=null,i>0){if(!("."==p()&&i<4))return;h++}if(!P.test(p()))return;while(P.test(p())){if(o=parseInt(p(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}c[l]=256*c[l]+r,i++,2!=i&&4!=i||l++}if(4!=i)return;break}if(":"==p()){if(h++,!p())return}else if(p())return;c[l++]=e}else{if(null!==u)return;h++,l++,u=l}}if(null!==u){a=l-u,l=7;while(0!=l&&a>0)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s}else if(8!=l)return;return c},q=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(e=i,n=r),e},W=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=S(t/256);return e.join(".")}if("object"==typeof t){for(e="",i=q(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},U={},$=p({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=p({},$,{"#":1,"?":1,"{":1,"}":1}),Z=p({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(t,e){var n=f(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},K={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(t){return h(K,t.scheme)},J=function(t){return""!=t.username||""!=t.password},tt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},et=function(t,e){var n;return 2==t.length&&M.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},nt=function(t){var e;return t.length>1&&et(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},it=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&et(e[0],!0)||e.pop()},rt=function(t){return"."===t||"%2e"===t.toLowerCase()},ot=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},at={},st={},ct={},lt={},ut={},ht={},pt={},dt={},ft={},gt={},mt={},vt={},yt={},_t={},bt={},xt={},wt={},Ot={},St={},Et={},At={},kt=function(t,e,n,r){var o,a,s,c,l=n||at,u=0,p="",f=!1,g=!1,m=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(z,"")),e=e.replace(F,""),o=d(e);while(u<=o.length){switch(a=o[u],l){case at:if(!a||!M.test(a)){if(n)return k;l=ct;continue}p+=a.toLowerCase(),l=st;break;case st:if(a&&(C.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return k;p="",l=ct,u=0;continue}if(n&&(Q(t)!=h(K,p)||"file"==p&&(J(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=p,n)return void(Q(t)&&K[t.scheme]==t.port&&(t.port=null));p="","file"==t.scheme?l=_t:Q(t)&&r&&r.scheme==t.scheme?l=lt:Q(t)?l=dt:"/"==o[u+1]?(l=ut,u++):(t.cannotBeABaseURL=!0,t.path.push(""),l=St)}break;case ct:if(!r||r.cannotBeABaseURL&&"#"!=a)return k;if(r.cannotBeABaseURL&&"#"==a){t.scheme=r.scheme,t.path=r.path.slice(),t.query=r.query,t.fragment="",t.cannotBeABaseURL=!0,l=At;break}l="file"==r.scheme?_t:ht;continue;case lt:if("/"!=a||"/"!=o[u+1]){l=ht;continue}l=ft,u++;break;case ut:if("/"==a){l=gt;break}l=Ot;continue;case ht:if(t.scheme=r.scheme,a==i)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query;else if("/"==a||"\\"==a&&Q(t))l=pt;else if("?"==a)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query="",l=Et;else{if("#"!=a){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.path.pop(),l=Ot;continue}t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query,t.fragment="",l=At}break;case pt:if(!Q(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,l=Ot;continue}l=gt}else l=ft;break;case dt:if(l=ft,"/"!=a||"/"!=p.charAt(u+1))continue;u++;break;case ft:if("/"!=a&&"\\"!=a){l=gt;continue}break;case gt:if("@"==a){f&&(p="%40"+p),f=!0,s=d(p);for(var v=0;v65535)return j;t.port=Q(t)&&b===K[t.scheme]?null:b,p=""}if(n)return;l=wt;continue}return j}p+=a;break;case _t:if(t.scheme="file","/"==a||"\\"==a)l=bt;else{if(!r||"file"!=r.scheme){l=Ot;continue}if(a==i)t.host=r.host,t.path=r.path.slice(),t.query=r.query;else if("?"==a)t.host=r.host,t.path=r.path.slice(),t.query="",l=Et;else{if("#"!=a){nt(o.slice(u).join(""))||(t.host=r.host,t.path=r.path.slice(),it(t)),l=Ot;continue}t.host=r.host,t.path=r.path.slice(),t.query=r.query,t.fragment="",l=At}}break;case bt:if("/"==a||"\\"==a){l=xt;break}r&&"file"==r.scheme&&!nt(o.slice(u).join(""))&&(et(r.path[0],!0)?t.path.push(r.path[0]):t.host=r.host),l=Ot;continue;case xt:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&et(p))l=Ot;else if(""==p){if(t.host="",n)return;l=wt}else{if(c=V(t,p),c)return c;if("localhost"==t.host&&(t.host=""),n)return;p="",l=wt}continue}p+=a;break;case wt:if(Q(t)){if(l=Ot,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(l=Ot,"/"!=a))continue}else t.fragment="",l=At;else t.query="",l=Et;break;case Ot:if(a==i||"/"==a||"\\"==a&&Q(t)||!n&&("?"==a||"#"==a)){if(ot(p)?(it(t),"/"==a||"\\"==a&&Q(t)||t.path.push("")):rt(p)?"/"==a||"\\"==a&&Q(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&et(p)&&(t.host&&(t.host=""),p=p.charAt(0)+":"),t.path.push(p)),p="","file"==t.scheme&&(a==i||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==a?(t.query="",l=Et):"#"==a&&(t.fragment="",l=At)}else p+=X(a,Y);break;case St:"?"==a?(t.query="",l=Et):"#"==a?(t.fragment="",l=At):a!=i&&(t.path[0]+=X(a,U));break;case Et:n||"#"!=a?a!=i&&("'"==a&&Q(t)?t.query+="%27":t.query+="#"==a?"%23":X(a,U)):(t.fragment="",l=At);break;case At:a!=i&&(t.fragment+=X(a,$));break}u++}},Tt=function(t){var e,n,i=u(this,Tt,"URL"),r=arguments.length>1?arguments[1]:void 0,a=String(t),s=w(i,{type:"URL"});if(void 0!==r)if(r instanceof Tt)e=O(r);else if(n=kt(e={},String(r)),n)throw TypeError(n);if(n=kt(s,a,null,e),n)throw TypeError(n);var c=s.searchParams=new b,l=x(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},o||(i.href=Mt.call(i),i.origin=Ct.call(i),i.protocol=Pt.call(i),i.username=It.call(i),i.password=Dt.call(i),i.host=Rt.call(i),i.hostname=Lt.call(i),i.port=Nt.call(i),i.pathname=Bt.call(i),i.search=zt.call(i),i.searchParams=Ft.call(i),i.hash=Vt.call(i))},jt=Tt.prototype,Mt=function(){var t=O(this),e=t.scheme,n=t.username,i=t.password,r=t.host,o=t.port,a=t.path,s=t.query,c=t.fragment,l=e+":";return null!==r?(l+="//",J(t)&&(l+=n+(i?":"+i:"")+"@"),l+=W(r),null!==o&&(l+=":"+o)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Ct=function(){var t=O(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(i){return"null"}return"file"!=e&&Q(t)?e+"://"+W(t.host)+(null!==n?":"+n:""):"null"},Pt=function(){return O(this).scheme+":"},It=function(){return O(this).username},Dt=function(){return O(this).password},Rt=function(){var t=O(this),e=t.host,n=t.port;return null===e?"":null===n?W(e):W(e)+":"+n},Lt=function(){var t=O(this).host;return null===t?"":W(t)},Nt=function(){var t=O(this).port;return null===t?"":String(t)},Bt=function(){var t=O(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},zt=function(){var t=O(this).query;return t?"?"+t:""},Ft=function(){return O(this).searchParams},Vt=function(){var t=O(this).fragment;return t?"#"+t:""},Ht=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&c(jt,{href:Ht(Mt,(function(t){var e=O(this),n=String(t),i=kt(e,n);if(i)throw TypeError(i);x(e.searchParams).updateSearchParams(e.query)})),origin:Ht(Ct),protocol:Ht(Pt,(function(t){var e=O(this);kt(e,String(t)+":",at)})),username:Ht(It,(function(t){var e=O(this),n=d(String(t));if(!tt(e)){e.username="";for(var i=0;i0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},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,n){for(var i="radial"===e.type?l:c,r=i(t,e,n),o=e.colorStops,a=0;a=o.right,c=r.top-n.y>=o.bottom,u=r.right+n.x<=o.left,h=a?"top":c?"bottom":null,p=u?"left":s?"right":null;return p&&h?h+"-"+p:p||h||"intersect"}function g(t,e,n){var o=m(t,e);return 1===o.length||2===o.length&&Object(r["b"])(o[0],o[1])<1?c(o[0]):o.length>1?(o=Object(i["B"])(o,(function(t){var e=Math.floor(100*t.t2)||1;return e=100-e,e=(e<10?"0":"")+e,t.segment2+"#"+e})),c(o[n?0:o.length-1])):null}function m(t,e){return a()(t,e)}function v(t){t=t.slice();var e,n,i,o=0;while(t[o])e=t[o],n=t[o-1],i=t[o+1],0===Object(r["b"])(e,i)||Object(r["e"])(n,i,e)?t.splice(o,1):o++;return t}function y(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _(t){return!!t.waypoints}},"2f31":function(t,e,n){var i=n("3eba"),r=n("ae75");n("10cc"),n("f31f"),n("c2dd"),n("b8ec"),n("fecb"),i.registerPreprocessor(r)},"2f45":function(t,e,n){var i=n("6d8b"),r=i.each,o=i.createHashMap,a=(i.assert,n("4e08")),s=(a.__DEV__,o(["tooltip","label","itemName","itemId","seriesName"]));function c(t){var e={},n=e.encode={},i=o(),a=[],c=[];r(t.dimensions,(function(e){var r=t.getDimensionInfo(e),o=r.coordDim;if(o){var l=n[o];n.hasOwnProperty(o)||(l=n[o]=[]),l[r.coordDimIndex]=e,r.isExtraCoord||(i.set(o,1),u(r.type)&&(a[0]=e)),r.defaultTooltip&&c.push(e)}s.each((function(t,e){var i=n[e];n.hasOwnProperty(e)||(i=n[e]=[]);var o=r.otherDims[e];null!=o&&!1!==o&&(i[o]=r.name)}))}));var l=[],h={};i.each((function(t,e){var i=n[e];h[e]=i[0],l=l.concat(i)})),e.dataDimsOnCoord=l,e.encodeFirstDimNotExtra=h;var p=n.label;p&&p.length&&(a=p.slice());var d=n.tooltip;return d&&d.length?c=d.slice():c.length||(c=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=c,e}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function u(t){return!("ordinal"===t||"time"===t)}e.OTHER_DIMENSIONS=s,e.summarizeDimensions=c,e.getDimensionTypeByAxis=l},"2f73":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("1e32");n("1ccf"),n("f5e6"),n("792e"),n("cb8f"),n("6acf"),i.registerLayout(r.curry(o,"bar")),i.extendComponentView({type:"polar"})},"2f91":function(t,e){var n=["itemStyle","borderColor"];function i(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",(function(e){var r=i[e.seriesIndex%i.length],o=e.getData();o.setVisual({legendSymbol:"roundRect",color:e.get(n)||r}),t.isSeriesFiltered(e)||o.each((function(t){var e=o.getItemModel(t);o.setItemVisual(t,{color:e.get(n,!0)})}))}))}t.exports=i},3014:function(t,e,n){var i=n("4f85"),r=n("3301"),o=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[NaN,NaN]},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=o},3022:function(t,e,n){(function(t){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}})),c=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),y(n)?i.showHidden=n:n&&e._extend(i,n),S(i.showHidden)&&(i.showHidden=!1),S(i.depth)&&(i.depth=2),S(i.colors)&&(i.colors=!1),S(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),h(i,t,i.depth)}function c(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function l(t,e){return t}function u(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function h(t,n,i){if(t.customInspect&&n&&j(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return w(r)||(r=h(t,r,i)),r}var o=p(t,n);if(o)return o;var a=Object.keys(n),s=u(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(j(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(E(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return t.stylize(Date.prototype.toString.call(n),"date");if(T(n))return d(n)}var l,y="",_=!1,b=["{","}"];if(v(n)&&(_=!0,b=["[","]"]),j(n)){var x=n.name?": "+n.name:"";y=" [Function"+x+"]"}return E(n)&&(y=" "+RegExp.prototype.toString.call(n)),k(n)&&(y=" "+Date.prototype.toUTCString.call(n)),T(n)&&(y=" "+d(n)),0!==a.length||_&&0!=n.length?i<0?E(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),l=_?f(t,n,i,s,a):a.map((function(e){return g(t,n,i,s,e,_)})),t.seen.pop(),m(l,y,b)):b[0]+y+b[1]}function p(t,e){if(S(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return x(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):_(e)?t.stylize("null","null"):void 0}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,i,r){for(var o=[],a=0,s=e.length;a-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n"))):s=t.stylize("[Circular]","special")),S(a)){if(o&&r.match(/^\d+$/))return s;a=JSON.stringify(""+r),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function m(t,e,n){var i=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function v(t){return Array.isArray(t)}function y(t){return"boolean"===typeof t}function _(t){return null===t}function b(t){return null==t}function x(t){return"number"===typeof t}function w(t){return"string"===typeof t}function O(t){return"symbol"===typeof t}function S(t){return void 0===t}function E(t){return A(t)&&"[object RegExp]"===C(t)}function A(t){return"object"===typeof t&&null!==t}function k(t){return A(t)&&"[object Date]"===C(t)}function T(t){return A(t)&&("[object Error]"===C(t)||t instanceof Error)}function j(t){return"function"===typeof t}function M(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function C(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(S(o)&&(o=Object({NODE_ENV:"production",VUE_APP_BASE_API:"/dmapi",BASE_URL:"/center/"}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var i=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,i,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=v,e.isBoolean=y,e.isNull=_,e.isNullOrUndefined=b,e.isNumber=x,e.isString=w,e.isSymbol=O,e.isUndefined=S,e.isRegExp=E,e.isObject=A,e.isDate=k,e.isError=T,e.isFunction=j,e.isPrimitive=M,e.isBuffer=n("d60a");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var t=new Date,e=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",D(),e.format.apply(e,arguments))},e.inherits=n("28a0"),e._extend=function(t,e){if(!e||!A(e))return t;var n=Object.keys(e),i=n.length;while(i--)t[n[i]]=e[n[i]];return t};var L="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function B(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i=4&&(l={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(l&&null!=a&&null!=c&&(u=F(l,a,c),!e.ignoreViewBox)){var d=r;r=new i,r.add(d),d.scale=u.scale.slice(),d.position=u.position.slice()}return e.ignoreRootClip||null==a||null==c||r.setClipPath(new s({shape:{x:0,y:0,width:a,height:c}})),{root:r,width:a,height:c,viewBoxRect:l,viewBoxTransform:u}},A.prototype._parseNode=function(t,e){var n,i=t.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var r=T[i];if(r){var o=r.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else{r=k[i];r&&(n=r.call(this,t,e),e.add(n))}var s=t.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},A.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new o({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});M(e,r),I(t,r,this._defs);var a=r.style.fontSize;a&&a<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=a/9,r.scale[1]*=a/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var k={g:function(t,e){var n=new i;return M(e,n),I(t,n,this._defs),n},rect:function(t,e){var n=new s;return M(e,n),I(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new a;return M(e,n),I(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new l;return M(e,n),I(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new c;return M(e,n),I(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=C(n));var i=new h({shape:{points:n||[]}});return M(e,i),I(t,i,this._defs),i},polyline:function(t,e){var n=new u;M(e,n),I(t,n,this._defs);var i=t.getAttribute("points");i&&(i=C(i));var r=new p({shape:{points:i||[]}});return r},image:function(t,e){var n=new r;return M(e,n),I(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,r=t.getAttribute("y")||0,o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new i;return M(e,s),I(t,s,this._defs),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0,s=new i;return M(e,s),I(t,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(t,e){var n=t.getAttribute("d")||"",i=v(n);return M(e,i),I(t,i,this._defs),i}},T={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new d(e,n,i,r);return j(t,o),o},radialgradient:function(t){}};function j(t,e){var n=t.firstChild;while(n){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}function M(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),x(e.__inheritedStyle,t.__inheritedStyle))}function C(t){for(var e=w(t).split(S),n=[],i=0;i0;o-=2){var a=r[o],s=r[o-1];switch(i=i||g.create(),s){case"translate":a=w(a).split(S),g.translate(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=w(a).split(S),g.scale(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=w(a).split(S),g.rotate(i,i,parseFloat(a[0]));break;case"skew":a=w(a).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":a=w(a).split(S);i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5]);break}}e.setLocalTransform(i)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function z(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};B.lastIndex=0;while(null!=(i=B.exec(e)))r[i[1]]=i[2];for(var o in P)P.hasOwnProperty(o)&&null!=r[o]&&(n[P[o]]=r[o]);return n}function F(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r),a=[o,o],s=[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2];return{scale:a,position:s}}function V(t,e){var n=new A;return n.parse(t,e)}e.parseXML=E,e.makeViewBoxTransform=F,e.parseSVG=V},"307a":function(t,e,n){var i=n("6d8b"),r=n("eaea"),o=n("3842"),a=[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]=a[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=a[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):i.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),i.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=o.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getVisualMeta:function(t){var e=c(this,"outOfRange",this.getExtent()),n=c(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a=0&&"number"===typeof l&&(l=+l.toFixed(Math.min(g,20))),d.coord[h]=f.coord[h]=l,r=[d,f,{type:s,valueIndex:r.valueIndex,value:l}]}return r=[a.dataTransform(t,r[0]),a.dataTransform(t,r[1]),i.extend({},r[2])],r[2].type=r[2].type||"",i.merge(r[2],r[0]),i.merge(r[2],r[1]),r};function u(t){return!isNaN(t)&&!isFinite(t)}function h(t,e,n,i){var r=1-t,o=i.dimensions[t];return u(e[r])&&u(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function p(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(h(1,n,i,t)||h(0,n,i,t)))return!0}return a.dataFilter(t,e[0])&&a.dataFilter(t,e[1])}function d(t,e,n,i,r){var a,s=i.coordinateSystem,c=t.getItemModel(e),l=o.parsePercent(c.get("x"),r.getWidth()),h=o.parsePercent(c.get("y"),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var p=s.dimensions,d=t.get(p[0],e),f=t.get(p[1],e);a=s.dataToPoint([d,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");p=s.dimensions;u(t.get(p[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):u(t.get(p[1],e))&&(a[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(h)||(a[1]=h)}else a=[l,h];t.setItemLayout(e,a)}var f=c.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each((function(e){d(r,e,!0,t,n),d(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,n,r){var o=t.coordinateSystem,a=t.id,c=t.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new s);this.group.add(u.group);var h=g(o,t,e),p=h.from,f=h.to,m=h.line;e.__from=p,e.__to=f,e.setData(m);var v=e.get("symbol"),y=e.get("symbolSize");function _(e,n,i){var o=e.getItemModel(n);d(e,n,i,t,r),e.setItemVisual(n,{symbolSize:o.get("symbolSize")||y[i?0:1],symbol:o.get("symbol",!0)||v[i?0:1],color:o.get("itemStyle.color")||c.getVisual("color")})}i.isArray(v)||(v=[v,v]),"number"===typeof y&&(y=[y,y]),h.from.each((function(t){_(p,t,!0),_(f,t,!1)})),m.each((function(t){var e=m.getItemModel(t).get("lineStyle.color");m.setItemVisual(t,{color:e||p.getItemVisual(t,"color")}),m.setItemLayout(t,[p.getItemLayout(t),f.getItemLayout(t)]),m.setItemVisual(t,{fromSymbolSize:p.getItemVisual(t,"symbolSize"),fromSymbol:p.getItemVisual(t,"symbol"),toSymbolSize:f.getItemVisual(t,"symbolSize"),toSymbol:f.getItemVisual(t,"symbol")})})),u.updateData(m),h.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){t.dataModel=e}))})),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}});function g(t,e,n){var o;o=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var s=new r(o,n),c=new r(o,n),u=new r([],n),h=i.map(n.get("data"),i.curry(l,e,t,n));t&&(h=i.filter(h,i.curry(p,t)));var d=t?a.dimValueGetter:function(t){return t.value};return s.initData(i.map(h,(function(t){return t[0]})),null,d),c.initData(i.map(h,(function(t){return t[1]})),null,d),u.initData(i.map(h,(function(t){return t[2]}))),u.hasItemOption=!0,{from:s,to:c,line:u}}t.exports=f},"30a3":function(t,e,n){var i=n("6d8b"),r=n("607d"),o=r.Dispatcher,a=n("98b7"),s=n("06ad"),c=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,o.call(this)};c.prototype={constructor:c,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n0?c.pixelStart+c.pixelLength-c.pixel:c.pixel-c.pixelStart)/c.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var p=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,a,[0,100],0,p.minSpan,p.maxSpan),this._range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:u((function(t,e,n,i,r,o){var a=h[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:u((function(t,e,n,i,r,o){var a=h[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function u(t){return function(e,n,i,r){var a=this._range,s=a.slice(),c=e.axisModels[0];if(c){var l=t(s,c,e,n,i,r);return o(l,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},p=c;t.exports=p},3301:function(t,e,n){var i=n("6d8b"),r=n("6179"),o=n("b1d4"),a=n("93d0"),s=a.SOURCE_FORMAT_ORIGINAL,c=n("2f45"),l=c.getDimensionTypeByAxis,u=n("e0d3"),h=u.getDataItemValue,p=n("2039"),d=n("8b7f"),f=d.getCoordSysDefineBySeries,g=n("ec6f"),m=n("ee1a"),v=m.enableDataStack;function y(t,e,n){n=n||{},g.isInstance(t)||(t=g.seriesDataToSource(t));var a,s=e.get("coordinateSystem"),c=p.get(s),u=f(e);u&&(a=i.map(u.coordSysDims,(function(t){var e={name:t},n=u.axisMap.get(t);if(n){var i=n.get("type");e.type=l(i)}return e}))),a||(a=c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]);var h,d,m=o(t,{coordDimensions:a,generateCoord:n.generateCoord});u&&i.each(m,(function(t,e){var n=t.coordDim,i=u.categoryAxisMap.get(n);i&&(null==h&&(h=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(d=!0)})),d||null==h||(m[h].otherDims.itemName=0);var y=v(e,m),b=new r(m,e);b.setCalculationInfo(y);var x=null!=h&&_(t)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return b.hasItemOption=!1,b.initData(t,null,x),b}function _(t){if(t.sourceFormat===s){var e=b(t.data||[]);return null!=e&&!i.isArray(h(e))}}function b(t){var e=0;while(e0?1:a<0?-1:0}function _(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function b(t,e,n,i,o,a,s,c,u,h){var p=u.valueDim,d=u.categoryDim,f=Math.abs(n[d.wh]),g=t.getItemVisual(e,"symbolSize");r.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[d.index]=l(g[d.index],f),g[p.index]=l(g[p.index],i?f:Math.abs(a)),h.symbolSize=g;var m=h.symbolScale=[g[0]/c,g[1]/c];m[p.index]*=(u.isHorizontal?-1:1)*s}function x(t,e,n,i,r){var o=t.get(d)||0;o&&(g.attr({scale:e.slice(),rotation:n}),g.updateTransform(),o/=g.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function w(t,e,n,i,o,a,s,c,h,p,d,f){var g=d.categoryDim,m=d.valueDim,v=f.pxSign,y=Math.max(e[m.index]+c,0),_=y;if(i){var b=Math.abs(h),x=r.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;x.lastIndexOf("!")===x.length-1&&(w=!0,x=x.slice(0,x.length-1)),x=l(x,e[m.index]);var O=Math.max(y+2*x,0),S=w?0:2*x,E=u(i),A=E?i:z((b+S)/O),k=b-A*y;x=k/2/(w?A:A-1),O=y+2*x,S=w?0:2*x,E||"fixed"===i||(A=p?z((Math.abs(p)+S)/O):0),_=A*O-S,f.repeatTimes=A,f.symbolMargin=x}var T=v*(_/2),j=f.pathPosition=[];j[g.index]=n[g.wh]/2,j[m.index]="start"===s?T:"end"===s?h-T:h/2,a&&(j[0]+=a[0],j[1]+=a[1]);var M=f.bundlePosition=[];M[g.index]=n[g.xy],M[m.index]=n[m.xy];var C=f.barRectShape=r.extend({},n);C[m.wh]=v*Math.max(Math.abs(n[m.wh]),Math.abs(j[m.index]+T)),C[g.wh]=n[g.wh];var P=f.clipShape={};P[g.xy]=-n[g.xy],P[g.wh]=d.ecSize[g.wh],P[m.xy]=0,P[m.wh]=n[m.wh]}function O(t){var e=t.symbolPatternSize,n=s(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function S(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,c=e.valueDim,l=n.repeatTimes||0,u=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(L(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=l,u0:i<0)&&(r=l-1-t),e[c.index]=h*(r-l/2+.5)+s[c.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){L(t,(function(t){t.trigger("emphasis")}))}function m(){L(t,(function(t){t.trigger("normal")}))}}function E(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?N(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=O(n),r.add(o),N(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",a).on("mouseout",s)),C(o,n)}function A(t,e,n){var i=r.extend({},e.barRectShape),a=t.__pictorialBarRect;a?N(a,null,{shape:i},e,n):(a=t.__pictorialBarRect=new o.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function k(t,e,n,i){if(n.symbolClip){var a=t.__pictorialClipPath,s=r.extend({},n.clipShape),c=e.valueDim,l=n.animationModel,u=n.dataIndex;if(a)o.updateProps(a,{shape:s},l,u);else{s[c.wh]=0,a=new o.Rect({shape:s}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var h={};h[c.wh]=n.clipShape[c.wh],o[i?"updateProps":"initProps"](a,{shape:h},l,u)}}}function T(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=j,n.isAnimationEnabled=M,n}function j(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function M(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function C(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function P(t,e,n,i){var r=new o.Group,a=new o.Group;return r.add(a),r.__pictorialBundle=a,a.attr("position",n.bundlePosition.slice()),n.symbolRepeat?S(r,e,n):E(r,e,n),A(r,n,i),k(r,e,n,i),r.__pictorialShapeStr=R(t,n),r.__pictorialSymbolMeta=n,r}function I(t,e,n){var i=n.animationModel,r=n.dataIndex,a=t.__pictorialBundle;o.updateProps(a,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?S(t,e,n,!0):E(t,e,n,!0),A(t,n,!0),k(t,e,n,!0)}function D(t,e,n,i){var a=i.__pictorialBarRect;a&&(a.style.text=null);var s=[];L(i,(function(t){s.push(t)})),i.__pictorialMainPath&&s.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),r.each(s,(function(t){o.updateProps(t,{scale:[0,0]},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function R(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function L(t,e,n){r.each(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function N(t,e,n,i,r,a){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&o[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function B(t,e,n){var i=n.color,a=n.dataIndex,s=n.itemModel,c=s.getModel("itemStyle").getItemStyle(["color"]),l=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");L(t,(function(t){t.setColor(i),t.setStyle(r.defaults({fill:i,opacity:n.opacity},c)),o.setHoverStyle(t,l),u&&(t.cursor=u),t.z2=n.z2}));var h={},d=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;p(f.style,h,s,i,e.seriesModel,a,d),o.setHoverStyle(f,h)}function z(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var F=m;t.exports=F},"340d":function(t,e,n){var i=n("6d8b"),r=n("e887"),o=n("4e47"),a=n("80f0"),s="sunburstRootToNode",c=r.extend({type:"sunburst",init:function(){},render:function(t,e,n,r){var s=this;this.seriesModel=t,this.api=n,this.ecModel=e;var c=t.getData(),l=c.tree.root,u=t.getViewRoot(),h=this.group,p=t.get("renderLabelForZeroData"),d=[];u.eachNode((function(t){d.push(t)}));var f=this._oldChildren||[];if(v(d,f),b(l,u),r&&r.highlight&&r.highlight.piece){var g=t.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(g)}else if(r&&r.unhighlight){var m=this.virtualPiece;!m&&l.children.length&&(m=l.children[0].piece),m&&m.onNormal()}function v(t,e){function n(t){return t.getId()}function r(n,i){var r=null==n?null:t[n],o=null==i?null:e[i];y(r,o)}0===t.length&&0===e.length||new a(e,t,n,n).add(r).update(r).remove(i.curry(r,null)).execute()}function y(n,i){if(p||!n||n.getValue()||(n=null),n!==l&&i!==l)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",t,e),c.setItemGraphicEl(n.dataIndex,i.piece)):_(i);else if(n){var r=new o(n,t,e);h.add(r),c.setItemGraphicEl(n.dataIndex,r)}}function _(t){t&&t.piece&&(h.remove(t.piece),t.piece=null)}function b(n,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",t,e):(s.virtualPiece=new o(n,t,e),h.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var r=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=r,s.virtualPiece.on("click",r)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";window.open(a,s)}}n=!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:s,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}}}),l=c;t.exports=l},3413:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("87f2"),r=1e3;function o(t){this._eventBus=t}function a(t,e){return function(n){return t.call(e||null,n.context,n.command,n)}}o.$inject=["eventBus"],o.prototype.on=function(t,e,n,o,s,c){if((Object(i["n"])(e)||Object(i["p"])(e))&&(c=s,s=o,o=n,n=e,e=null),Object(i["n"])(n)&&(c=s,s=o,o=n,n=r),Object(i["q"])(s)&&(c=s,s=!1),!Object(i["n"])(o))throw new Error("handlerFn must be a function");Object(i["l"])(t)||(t=[t]);var l=this._eventBus;Object(i["i"])(t,(function(t){var i=["commandStack",t,e].filter((function(t){return t})).join(".");l.on(i,n,s?a(o,c):o,c)}))};var s=["canExecute","preExecute","preExecuted","execute","executed","postExecute","postExecuted","revert","reverted"];Object(i["i"])(s,(function(t){o.prototype[t]=function(e,n,r,o,a){(Object(i["n"])(e)||Object(i["p"])(e))&&(a=o,o=r,r=n,n=e,e=null),this.on(e,t,n,r,o,a)}}))},"342d":function(t,e,n){var i=n("cbe5"),r=n("20c8"),o=n("ee84"),a=Math.sqrt,s=Math.sin,c=Math.cos,l=Math.PI,u=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])/(u(t)*u(e))},p=function(t,e){return(t[0]*e[1]1&&(u*=a(b),d*=a(b));var x=(r===o?-1:1)*a((u*u*(d*d)-u*u*(_*_)-d*d*(y*y))/(u*u*(_*_)+d*d*(y*y)))||0,w=x*u*_/d,O=x*-d*y/u,S=(t+n)/2+c(v)*w-s(v)*O,E=(e+i)/2+s(v)*w+c(v)*O,A=p([1,0],[(y-w)/u,(_-O)/d]),k=[(y-w)/u,(_-O)/d],T=[(-1*y-w)/u,(-1*_-O)/d],j=p(k,T);h(k,T)<=-1&&(j=l),h(k,T)>=1&&(j=0),0===o&&j>0&&(j-=2*l),1===o&&j<0&&(j+=2*l),m.addData(g,S,E,u,d,A,j,v,o)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(t){if(!t)return new r;for(var e,n=0,i=0,o=n,a=i,s=new r,c=r.CMD,l=t.match(f),u=0;u=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:y/2},p="vertical"===i?r.height:r.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,m=f?d.get("itemGap"):0,v=g+m,_=t.get("label.rotate")||0;_=_*y/180;var x=d.get("position",!0),w=f&&d.get("showPlayBtn",!0),O=f&&d.get("showPrevBtn",!0),S=f&&d.get("showNextBtn",!0),E=0,A=p;return"left"===x||"bottom"===x?(w&&(o=[0,0],E+=v),O&&(a=[E,0],E+=v),S&&(s=[A-g,0],A-=v)):(w&&(o=[A-g,0],A-=v),O&&(a=[0,0],E+=v),S&&(s=[A-g,0],A-=v)),c=[E,A],t.get("inverse")&&c.reverse(),{viewRect:r,mainLength:p,orient:i,rotation:h[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||l[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||u[i],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:c,controlSize:g,controlGap:m}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var a=o.create(),s=r.x,c=r.y+r.height;o.translate(a,a,[-s,-c]),o.rotate(a,a,-y/2),o.translate(a,a,[s,c]),r=r.clone(),r.applyTransform(a)}var l=v(r),u=v(n.getBoundingRect()),h=v(i.getBoundingRect()),p=n.position,d=i.position;d[0]=p[0]=l[0][0];var f=t.labelPosOpt;if(isNaN(f)){var g="+"===f?0:1;_(p,u,l,1,g),_(d,h,l,1,1-g)}else{g=f>=0?0:1;_(p,u,l,1,g),d[1]=p[1]+f}function m(t){var e=t.position;t.origin=[l[0][0]-e[0],l[1][0]-e[1]]}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function _(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.attr("position",p),i.attr("position",d),n.rotation=i.rotation=t.rotation,m(n),m(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=p.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new l("value",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new a.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,r){var o=n.getExtent();r.get("lineStyle.show")&&e.add(new a.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:i.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),o=n.scale.getTicks();v(o,(function(t){var o=n.dataToCoord(t),s=r.getItemModel(t),c=s.getModel("itemStyle"),l=s.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:m(this._changeTimeline,this,t)},h=w(s,c,e,u);a.setHoverStyle(h,l.getItemStyle()),s.get("tooltip")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,i){var r=n.getLabelModel();if(r.get("show")){var o=i.getData(),s=n.getViewLabels();v(s,(function(i){var r=i.tickValue,s=o.getItemModel(r),c=s.getModel("label"),l=s.getModel("emphasis.label"),u=n.dataToCoord(i.tickValue),h=new a.Text({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:m(this._changeTimeline,this,r),silent:!1});a.setTextStyle(h.style,c,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),a.setHoverStyle(h,a.setTextStyle({},l))}),this)}},_renderControl:function(t,e,n,i){var r=t.controlSize,o=t.rotation,s=i.getModel("controlStyle").getItemStyle(),c=i.getModel("emphasis.controlStyle").getItemStyle(),l=[0,-r/2,r,r],u=i.getPlayState(),h=i.get("inverse",!0);function p(t,n,u,h){if(t){var p={position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:s,onclick:u},d=x(i,n,l,p);e.add(d),a.setHoverStyle(d,c)}}p(t.nextBtnPosition,"controlStyle.nextIcon",m(this._changeTimeline,this,h?"-":"+")),p(t.prevBtnPosition,"controlStyle.prevIcon",m(this._changeTimeline,this,h?"+":"-")),p(t.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),m(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,c={onCreate:function(t){t.draggable=!0,t.drift=m(s._handlePointerDrag,s),t.ondragend=m(s._handlePointerDragend,s),O(t,o,n,i,!0)},onUpdate:function(t){O(t,o,n,i)}};this._currentPointer=w(a,a,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=d.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[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?o(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function c(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function l(t){return t.sort((function(t,e){return t-e})),t}function u(t){if(t=+t,isNaN(t))return 0;var e=1,n=0;while(Math.round(t*e)/e!==t)e*=10,n++;return n}function h(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function p(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function d(t,e,n){if(!t[e])return 0;var r=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var o=Math.pow(10,n),a=i.map(t,(function(t){return(isNaN(t)?0:t)/r*o*100})),s=100*o,c=i.map(a,(function(t){return Math.floor(t)})),l=i.reduce(c,(function(t,e){return t+e}),0),u=i.map(a,(function(t,e){return t-c[e]}));while(lh&&(h=u[d],p=d);++c[p],u[p]=0,++l}return c[e]/o}var f=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function m(t){return t>-r&&t=-20?+t.toFixed(i<0?-i:0):t}function w(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function O(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0}e.linearMap=a,e.parsePercent=s,e.round=c,e.asc=l,e.getPrecision=u,e.getPrecisionSafe=h,e.getPixelPrecision=p,e.getPercentWithPrecision=d,e.MAX_SAFE_INTEGER=f,e.remRadian=g,e.isRadianAroundZero=m,e.parseDate=y,e.quantity=_,e.nice=x,e.quantile=w,e.reformIntervals=O,e.isNumeric=S},"38a2":function(t,e,n){var i=n("2b17"),r=i.retrieveRawValue,o=n("eda2"),a=o.getTooltipMarker,s=o.formatTpl,c=n("e0d3"),l=c.getTooltipRenderMode,u=/\{@(.+?)\}/g,h={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),c=n.getItemVisual(t,"color"),u=this.ecModel.getComponent("tooltip"),h=u&&u.get("renderMode"),p=l(h),d=this.mainType,f="series"===d;return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:r,data:s,dataType:e,value:i,color:c,marker:a({color:c,renderMode:p}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,o){e=e||"normal";var a=this.getData(n),c=a.getItemModel(t),l=this.getDataParams(t,n);null!=i&&l.value instanceof Array&&(l.value=l.value[i]);var h=c.get("normal"===e?[o||"label","formatter"]:[e,o||"label","formatter"]);if("function"===typeof h)return l.status=e,h(l);if("string"===typeof h){var p=s(h,l);return p.replace(u,(function(e,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),r(a,t,n)}))}},getRawValue:function(t,e){return r(this.getData(e),t)},formatTooltip:function(){}};t.exports=h},3901:function(t,e,n){var i=n("282b"),r=i([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getLineStyle:function(t){var e=r(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}};t.exports=o},"392f":function(t,e,n){var i=n("6d8b"),r=i.inherits,o=n("19eb"),a=n("9850");function s(t){o.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 n=0;n");return p(i,e,n)}var _="svg, .djs-element";function b(t,e,n,i){var o=d[n]=function(t){p(n,t)};i&&(v[n]=i),o.$delegate=r["f"].bind(t,_,e,o)}function x(t,e,n){var i=f(n);i&&r["f"].unbind(t,e,i.$delegate)}function w(t){Object(i["i"])(m,(function(e,n){b(t,n,e)}))}function O(t){Object(i["i"])(m,(function(e,n){x(t,n,e)}))}t.on("canvas.destroy",(function(t){O(t.svg)})),t.on("canvas.init",(function(t){w(t.svg)})),t.on(["shape.added","connection.added"],(function(e){var n=e.element,i=e.gfx;t.fire("interactionEvents.createHit",{element:n,gfx:i})})),t.on(["shape.changed","connection.changed"],u,(function(e){var n=e.element,i=e.gfx;t.fire("interactionEvents.updateHit",{element:n,gfx:i})})),t.on("interactionEvents.createHit",u,(function(t){var e=t.element,n=t.gfx;h.createDefaultHit(e,n)})),t.on("interactionEvents.updateHit",(function(t){var e=t.element,n=t.gfx;h.updateDefaultHit(e,n)}));var S=j("djs-hit djs-hit-stroke"),E=j("djs-hit djs-hit-click-stroke"),A=j("djs-hit djs-hit-all"),k=j("djs-hit djs-hit-no-move"),T={all:A,"click-stroke":E,stroke:S,"no-move":k};function j(t,e){return e=Object(i["a"])({stroke:"white",strokeWidth:15},e||{}),n.cls(t,["no-fill","no-border"],e)}function M(t,e){var n=T[e];if(!n)throw new Error("invalid hit type <"+e+">");return Object(a["b"])(t,n),t}function C(t,e){Object(a["a"])(t,e)}this.removeHits=function(t){var e=Object(r["k"])(".djs-hit",t);Object(i["i"])(e,a["j"])},this.createDefaultHit=function(t,e){var n,i=t.waypoints,r=t.isFrame;return i?this.createWaypointsHit(e,i):(n=r?"stroke":"all",this.createBoxHit(e,n,{width:t.width,height:t.height}))},this.createWaypointsHit=function(t,e){var n=Object(s["b"])(e);return M(n,"stroke"),C(t,n),n},this.createBoxHit=function(t,e,n){n=Object(i["a"])({x:0,y:0},n);var r=Object(a["f"])("rect");return M(r,e),Object(a["b"])(r,n),C(t,r),r},this.updateDefaultHit=function(t,e){var n=Object(r["j"])(".djs-hit",e);if(n)return t.waypoints?Object(s["c"])(n,t.waypoints):Object(a["b"])(n,{width:t.width,height:t.height}),n},this.fire=p,this.triggerMouseEvent=y,this.mouseHandler=f,this.registerEvent=b,this.unregisterEvent=x}h.$inject=["eventBus","elementRegistry","styles"];e["a"]={__init__:["interactionEvents"],interactionEvents:["type",h]}},"3a56":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("6d8b"),a=n("22d1"),s=n("e0d3"),c=n("50e5"),l=n("cc39"),u=o.each,h=c.eachAxisDim,p=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,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=d(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=d(t);o.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;a.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),f(this,t),u([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new l(e.name,n,this,r));t[e.name+"_"+n]=a}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();h((function(e){var n=e.axisIndex;t[n]=s.normalizeToArray(t[n])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;h((function(n){null!=t[n.axisIndex]&&(e=!0)}),this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):u(i.singleAxis,(function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)}))}t&&h((function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var t;return h((function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}}),this),t},eachTargetAxis:function(t,e){var n=this.ecModel;h((function(i){u(this.get(i.axisIndex),(function(r){t.call(e,i,r,this,n)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t,e){var n=this.option;u([["start","startValue"],["end","endValue"]],(function(e){null==t[e[0]]&&null==t[e[1]]||(n[e[0]]=t[e[0]],n[e[1]]=t[e[1]])}),this),!e&&f(this,t)},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 n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function d(t){var e={};return u(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}function f(t,e){var n=t._rangePropMode,i=t.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]="percent":!o&&a?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")}))}var g=p;t.exports=g},"3cd6":function(t,e,n){var i=n("6d8b"),r=n("48a9"),o=n("607d"),a=n("72b6"),s=n("2306"),c=n("3842"),l=n("ef6a"),u=n("cbb0"),h=n("e0d3"),p=c.linearMap,d=i.each,f=Math.min,g=Math.max,m=12,v=6,y=a.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,n,i){i&&"selectDataRange"===i.type&&i.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 n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,c=this._shapes.barGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],c),u=this._applyTransform(0===n?"bottom":"top",c),h=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===h?"middle":u,textAlign:"horizontal"===h?u:"center",text:i,textFont:p.getFont(),textFill:p.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,o=this._orient,a=this._useHandle,s=u.getItemAlign(e,this.api,r),c=n.barGroup=this._createBarGroup(s);c.add(n.outOfRange=_()),c.add(n.inRange=_(null,a?S(this._orient):null,i.bind(this._dragHandle,this,"all",!1),i.bind(this._dragHandle,this,"all",!0)));var l=e.textStyleModel.getTextRect("国"),h=g(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(c,0,r,h,o,s),this._createHandle(c,1,r,h,o,s)),this._createIndicator(c,r,h,o),t.add(c)},_createHandle:function(t,e,n,r,a){var c=i.bind(this._dragHandle,this,e,!1),l=i.bind(this._dragHandle,this,e,!0),u=_(b(e,r),S(this._orient),c,l);u.position[0]=n[0],t.add(u);var h=this.visualMapModel.textStyleModel,p=new s.Text({draggable:!0,drift:c,onmousemove:function(t){o.stop(t.event)},ondragend:l,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(p);var d=["horizontal"===a?r/2:1.5*r,"horizontal"===a?0===e?-1.5*r:1.5*r:0===e?-r/2:r/2],f=this._shapes;f.handleThumbs[e]=u,f.handleLabelPoints[e]=d,f.handleLabels[e]=p},_createIndicator:function(t,e,n,i){var r=_([[0,0]],"move");r.position[0]=e[0],r.attr({invisible:!0,silent:!0}),t.add(r);var o=this.visualMapModel.textStyleModel,a=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(a);var c=["horizontal"===i?n/2:v+3,0],l=this._shapes;l.indicator=r,l.indicatorLabel=a,l.indicatorLabelPoint=c},_dragHandle:function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],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():O(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[p(e[0],n,i,!0),p(e[1],n,i,!0)]},_updateInterval:function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];l(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[p(i[0],r,o,!0),p(i[1],r,o,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,o),s=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],c=this._createBarPoints(n,s);return{barColor:new r(0,0,0,1,a),barPoints:c,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;ot[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{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 n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;d([0,1],(function(a){var c=r[a];c.setStyle("fill",e.handlesColor[a]),c.position[1]=t[a];var l=s.applyTransform(n.handleLabelPoints[a],s.getTransform(c,this.group));o[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,c=[0,a[1]],l=p(t,o,c,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",x(!!n,i,l,a[1]));var d={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",d);h.setStyle("fill",f);var g=s.applyTransform(u.indicatorLabelPoint,s.getTransform(h,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",u.barGroup),y=this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===y?v:"middle",textAlign:"horizontal"===y?"center":v,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 n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=f(g(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_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 n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=f(g(r[0],t),r[1]);var a=w(n,o,r),s=[t-a,t+a],c=p(t,r,o,!0),l=[p(s[0],r,o,!0),p(s[1],r,o,!0)];s[0]r[1]&&(l[1]=1/0),e&&(l[0]===-1/0?this._showIndicator(c,l[1],"< ",a):l[1]===1/0?this._showIndicator(c,l[0],"> ",a):this._showIndicator(c,c,"≈ ",a));var d=this._hoverLinkDataIndices,m=[];(e||O(n))&&(m=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var v=h.compressBatches(d,m);this._dispatchHighDown("downplay",u.convertDataIndex(v[0])),this._dispatchHighDown("highlight",u.convertDataIndex(v[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(e.dataType),o=r.get(n.getDataDimension(r),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_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",u.convertDataIndex(t)),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,n,r){var o=s.getTransform(e,r?null:this.group);return s[i.isArray(t)?"applyTransform":"transformDirection"](t,o,n)},_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 _(t,e,n,i){return new s.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){o.stop(t.event)},ondragend:i})}function b(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function x(t,e,n,i){return t?[[0,-f(e,g(n,0))],[v,0],[0,f(e,g(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function w(t,e,n){var i=m/2,r=t.get("hoverLinkDataSize");return r&&(i=p(r,e,n,!0)/2),i}function O(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function S(t){return"vertical"===t?"ns-resize":"ew-resize"}var E=y;t.exports=E},"3e5e":function(t,e,n){"use strict";function i(t){return t?"<"+t.$type+(t.id?' id="'+t.id:"")+'" />':""}n.d(e,"a",(function(){return i}))},"3eba":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("697e7")),o=n("6d8b"),a=n("41ef"),s=n("22d1"),c=n("04f6"),l=n("1fab"),u=n("7e63"),h=n("843e"),p=n("2039"),d=n("ca98"),f=n("fb05"),g=n("d15d"),m=n("6cb7"),v=n("4f85"),y=n("b12f"),_=n("e887"),b=n("2306"),x=n("e0d3"),w=n("88b3"),O=w.throttle,S=n("fd63"),E=n("b809"),A=n("998c"),k=n("69ff"),T=n("c533"),j=n("f219");n("0352");var M=n("ec34"),C=o.assert,P=o.each,I=o.isFunction,D=o.isObject,R=m.parseClassType,L="4.2.1",N={zrender:"4.0.6"},B=1,z=1e3,F=5e3,V=1e3,H=2e3,G=3e3,q=4e3,W=5e3,U={PROCESSOR:{FILTER:z,STATISTIC:F},VISUAL:{LAYOUT:V,GLOBAL:H,CHART:G,COMPONENT:q,BRUSH:W}},$="__flagInMainProcess",Y="__optionUpdated",Z=/^[a-zA-Z0-9_]+$/;function X(t){return function(e,n,i){e=e&&e.toLowerCase(),l.prototype[t].call(this,e,n,i)}}function K(){l.call(this)}function Q(t,e,n){n=n||{},"string"===typeof e&&(e=kt[e]),this.id,this.group,this._dom=t;var i="canvas",a=this._zr=r.init(t,{renderer:n.renderer||i,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=O(o.bind(a.flush,a),17);e=o.clone(e);e&&f(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new p;var s=this._api=_t(this);function u(t,e){return t.__prio-e.__prio}c(At,u),c(Ot,u),this._scheduler=new k(this,s,Ot,At),l.call(this,this._ecEventProcessor=new bt),this._messageCenter=new K,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),ct(a,this),o.setAsPrimitive(this)}K.prototype.on=X("on"),K.prototype.off=X("off"),K.prototype.one=X("one"),o.mixin(K,l);var J=Q.prototype;function tt(t,e,n){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=x.parseFinder(r,e);for(var a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(t,e,n){var i;if(D(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[$]=!0,!this._model||e){var r=new d(this._api),o=this._theme,a=this._model=new u(null,null,o,r);a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,St),n?(this[Y]={silent:i},this[$]=!1):(nt(this),et.update.call(this),this._zr.flush(),this[Y]=!1,this[$]=!1,at.call(this,i),st.call(this,i))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.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)}},J.getSvgDataUrl=function(){if(s.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return o.each(e,(function(t){t.stopAnimation(!0)})),t.painter.pathToDataUrl()}},J.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;P(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return P(i,(function(t){t.group.ignore=!1})),o},J.getConnectedDataURL=function(t){if(s.canvasSupported){var e=this.group,n=Math.min,i=Math.max,a=1/0;if(Mt[e]){var c=a,l=a,u=-a,h=-a,p=[],d=t&&t.pixelRatio||1;o.each(jt,(function(r,a){if(r.group===e){var s=r.getRenderedCanvas(o.clone(t)),d=r.getDom().getBoundingClientRect();c=n(d.left,c),l=n(d.top,l),u=i(d.right,u),h=i(d.bottom,h),p.push({dom:s,left:d.left,top:d.top})}})),c*=d,l*=d,u*=d,h*=d;var f=u-c,g=h-l,m=o.createCanvas();m.width=f,m.height=g;var v=r.init(m);return P(p,(function(t){var e=new b.Image({style:{x:t.left*d-c,y:t.top*d-l,image:t.dom}});v.add(e)})),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},J.convertToPixel=o.curry(tt,"convertToPixel"),J.convertFromPixel=o.curry(tt,"convertFromPixel"),J.containPixel=function(t,e){var n,i=this._model;return t=x.parseFinder(i,t),o.each(t,(function(t,i){i.indexOf("Models")>=0&&o.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n|=o.containPoint(e,t))}}),this)}),this),!!n},J.getVisual=function(t,e){var n=this._model;t=x.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=o?r.getItemVisual(o,e):r.getVisual(e)},J.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},J.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var et={prepareAndUpdate:function(t){nt(this),et.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),rt(this,e),r.update(e,n),ut(e),o.performVisualTasks(e,t),ht(this,e,n,t);var c=e.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(c);else{var l=a.parse(c);c=a.stringify(l,"rgb"),0===l[3]&&(c="transparent")}ft(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent((function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(a,e,i,t);c&&c.update&&r.push(s)}else r.push(s)}));var a=o.createHashMap();e.eachSeries((function(r){var o=n._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,e,i,t);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)})),ut(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:a}),dt(n,e,i,t,a),ft(e,this._api)}},updateView:function(t){var e=this._model;e&&(_.markUpdateMethod(t,"updateView"),ut(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),ht(this,this._model,this._api,t),ft(e,this._api))},updateVisual:function(t){et.update.call(this,t)},updateLayout:function(t){et.update.call(this,t)}};function nt(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),lt(t,"component",e,n),lt(t,"chart",e,n),n.plan()}function it(t,e,n,i,r){var a=t._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var c={mainType:i,query:s};r&&(c.subType=r);var l=n.excludeSeriesId;null!=l&&(l=o.createHashMap(x.normalizeToArray(l))),a&&a.eachComponent(c,(function(e){l&&null!=l.get(e.id)||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else P(t._componentsViews.concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}}function rt(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))}function ot(t,e){var n=t.type,i=t.escapeConnect,r=xt[n],a=r.actionInfo,s=(a.update||"update").split(":"),c=s.pop();s=null!=s[0]&&R(s[0]),this[$]=!0;var l=[t],u=!1;t.batch&&(u=!0,l=o.map(t.batch,(function(e){return e=o.defaults(o.extend({},e),t),e.batch=null,e})));var h,p=[],d="highlight"===n||"downplay"===n;P(l,(function(t){h=r.action(t,this._model,this._api),h=h||o.extend({},t),h.type=a.event||h.type,p.push(h),d?it(this,c,t,"series"):s&&it(this,c,t,s.main,s.sub)}),this),"none"===c||d||s||(this[Y]?(nt(this),et.update.call(this,t),this[Y]=!1):et[c].call(this,t)),h=u?{type:a.event||n,escapeConnect:i,batch:p}:p[0],this[$]=!1,!e&&this._messageCenter.trigger(h.type,h)}function at(t){var e=this._pendingActions;while(e.length){var n=e.shift();ot.call(this,n,t)}}function st(t){!t&&this.trigger("updated")}function ct(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[Y]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}function lt(t,e,n,i){for(var r="component"===e,o=r?t._componentsViews:t._chartsViews,a=r?t._componentsMap:t._chartsMap,s=t._zr,c=t._api,l=0;le.get("hoverLayerThreshold")&&!s.node&&n.traverse((function(t){t.isGroup||(t.useHoverLayer=!0)}))}function vt(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",n)}))}))}function yt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}function _t(t){var e=t._coordSysMgr;return o.extend(new h(t),{getCoordinateSystems:o.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function bt(){this.eventInfo}J._initEvents=function(){P(gt,(function(t){var e=function(e){var n,i=this.getModel(),r=e.target,a="globalout"===t;if(a)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=o.extend({},r.eventData));if(n){var c=n.componentType,l=n.componentIndex;"markLine"!==c&&"markPoint"!==c&&"markArea"!==c||(c="series",l=n.seriesIndex);var u=c&&null!=l&&i.getComponent(c,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),P(wt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},J.isDisposed=function(){return this._disposed},J.clear=function(){this.setOption({series:[]},!0)},J.dispose=function(){if(!this._disposed){this._disposed=!0,x.setAttribute(this.getDom(),It,"");var t=this._api,e=this._model;P(this._componentsViews,(function(n){n.dispose(e,t)})),P(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete jt[this.id]}},o.mixin(Q,l),bt.prototype={constructor:bt,normalizeQuery:function(t){var e={},n={},i={};if(o.isString(t)){var r=R(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(t,(function(t,r){for(var o=!1,c=0;c0&&u===r.length-l.length){var h=r.slice(0,u);"data"!==h&&(e.mainType=h,e[l.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(r)&&(n[r]=t,o=!0),o||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var c=e.cptQuery,l=e.dataQuery;return u(c,a,"mainType")&&u(c,a,"subType")&&u(c,a,"index","componentIndex")&&u(c,a,"name")&&u(c,a,"id")&&u(l,o,"name")&&u(l,o,"dataIndex")&&u(l,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var xt={},wt={},Ot=[],St=[],Et=[],At=[],kt={},Tt={},jt={},Mt={},Ct=new Date-0,Pt=new Date-0,It="_echarts_instance_";function Dt(t){var e=0,n=1,i=2,r="__connectUpdateStatus";function o(t,e){for(var n=0;n-b}function O(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==d}function S(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==d}function E(t,e){e&&A(t,"transform","matrix("+p.call(e,",")+")")}function A(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function k(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function T(t,e,n,i){if(O(e,n)){var r=n?e.textFill:e.fill;r="transparent"===r?d:r,"none"!==t.getAttribute("clip-path")&&r===d&&(r="rgba(0, 0, 0, 0.002)"),A(t,"fill",r),A(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else A(t,"fill",d);if(S(e,n)){var o=n?e.textStroke:e.stroke;o="transparent"===o?d:o,A(t,"stroke",o);var a=n?e.textStrokeWidth:e.lineWidth,s=!n&&e.strokeNoScale?i.getLineScale():1;A(t,"stroke-width",a/s),A(t,"paint-order",n?"stroke":"fill"),A(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var c=e.lineDash;c?(A(t,"stroke-dasharray",e.lineDash.join(",")),A(t,"stroke-dashoffset",f(e.lineDashOffset||0))):A(t,"stroke-dasharray",""),e.lineCap&&A(t,"stroke-linecap",e.lineCap),e.lineJoin&&A(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&A(t,"stroke-miterlimit",e.miterLimit)}else A(t,"stroke",d)}function j(t){for(var e=[],n=t.data,i=t.len(),r=0;r=y||!w(E)&&(b>-v&&b<0||b>v)===!!S;var T=x(c+u*m(d)),j=x(l+p*g(d));A&&(b=S?y-1e-4:1e-4-y,k=!0,9===r&&e.push("M",T,j));var M=x(c+u*m(d+b)),C=x(l+p*g(d+b));e.push("A",x(u),x(p),f(O*_),+k,+S,M,C);break;case h.Z:a="Z";break;case h.R:M=x(n[r++]),C=x(n[r++]);var P=x(n[r++]),I=x(n[r++]);e.push("M",M,C,"L",M+P,C,"L",M+P,C+I,"L",M,C+I,"L",M,C);break}a&&e.push(a);for(var D=0;D=0?1:-1},l={min:.2,max:4},u=10,h=.1,p=.75;function d(t,e,n){t=t||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=Object(s["b"])(this._handleWheel,this),this._totalDelta=0,this._scale=t.scale||p;var i=this;e.on("canvas.init",(function(e){i._init(!1!==t.enabled)}))}d.$inject=["config.zoomScroll","eventBus","canvas"],d.prototype.scroll=function(t){this._canvas.scroll(t)},d.prototype.reset=function(){this._canvas.zoom("fit-viewport")},d.prototype.zoom=function(t,e){var n=o(l,2*u);this._totalDelta+=t,Math.abs(this._totalDelta)>h&&(this._zoom(t,e,n),this._totalDelta=0)},d.prototype._handleWheel=function(t){if(!Object(i["e"])(t.target,".djs-scrollable",!0)){var e=this._container;t.preventDefault();var n,r=t.ctrlKey,o=t.shiftKey,a=-1*this._scale;if(a*=r?0===t.deltaMode?.02:.32:0===t.deltaMode?1:16,r){var s=e.getBoundingClientRect(),l={x:t.clientX-s.left,y:t.clientY-s.top};n=Math.sqrt(Math.pow(t.deltaY,2)+Math.pow(t.deltaX,2))*c(t.deltaY)*a,this.zoom(n,l)}else n=o?{dx:a*t.deltaY,dy:0}:{dx:a*t.deltaX,dy:a*t.deltaY},this.scroll(n)}},d.prototype.stepZoom=function(t,e){var n=o(l,u);this._zoom(t,e,n)},d.prototype._zoom=function(t,e,n){var i=this._canvas,o=t>0?1:-1,s=Object(r["a"])(i.zoom()),c=Math.round(s/n)*n;c+=n*o;var u=Math.pow(10,c);i.zoom(a(l,u),e)},d.prototype.toggle=function(t){var e=this._container,n=this._handleWheel,r=this._enabled;return"undefined"===typeof t&&(t=!r),r!==t&&i["h"][t?"bind":"unbind"](e,"wheel",n,!1),this._enabled=t,t},d.prototype._init=function(t){this.toggle(t)};e["a"]={__init__:["zoomScroll"],zoomScroll:["type",d]}},"401b":function(t,e){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function c(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function u(t){return Math.sqrt(p(t))}var h=u;function p(t){return t[0]*t[0]+t[1]*t[1]}var d=p;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=u(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var b=_;function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=x;function O(t,e){return t[0]=-e[0],t[1]=-e[1],t}function S(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function E(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function A(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function k(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}e.create=i,e.copy=r,e.clone=o,e.set=a,e.add=s,e.scaleAndAdd=c,e.sub=l,e.len=u,e.length=h,e.lenSquare=p,e.lengthSquare=d,e.mul=f,e.div=g,e.dot=m,e.scale=v,e.normalize=y,e.distance=_,e.dist=b,e.distanceSquare=x,e.distSquare=w,e.negate=O,e.lerp=S,e.applyTransform=E,e.min=A,e.max=k},"414c":function(t,e,n){var i=n("3a56"),r=i.extend({type:"dataZoom.select"});t.exports=r},"41ef":function(t,e,n){var i=n("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 o(t){return t=Math.round(t),t<0?0:t>255?255:t}function a(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 c(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function p(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i(20),g=null;function m(t,e){g&&d(g,e),g=f.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return d(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return d(e,r[i]),m(t,e),e;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===i.length){var s=i.substr(0,o),u=i.substr(o+1,a-(o+1)).split(","),h=1;switch(s){case"rgba":if(4!==u.length)return void p(e,0,0,0,1);h=l(u.pop());case"rgb":return 3!==u.length?void p(e,0,0,0,1):(p(e,c(u[0]),c(u[1]),c(u[2]),h),m(t,e),e);case"hsla":return 4!==u.length?void p(e,0,0,0,1):(u[3]=l(u[3]),y(u,e),m(t,e),e);case"hsl":return 3!==u.length?void p(e,0,0,0,1):(y(u,e),m(t,e),e);default:return}}p(e,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(p(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),m(t,e),e):void p(e,0,0,0,1)}if(7===i.length){g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(p(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),m(t,e),e):void p(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return e=e||[],p(e,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),c=s-a,l=(s+a)/2;if(0===c)e=0,n=0;else{n=l<.5?c/(s+a):c/(2-s-a);var u=((s-i)/6+c/2)/c,h=((s-r)/6+c/2)/c,p=((s-o)/6+c/2)/c;i===s?e=p-h:r===s?e=1/3+u-p:o===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,l];return null!=t[3]&&d.push(t[3]),d}}function b(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return T(n,4===n.length?"rgba":"rgb")}}function x(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),c=e[r],l=e[a],u=i-r;return n[0]=o(h(c[0],l[0],u)),n[1]=o(h(c[1],l[1],u)),n[2]=o(h(c[2],l[2],u)),n[3]=s(h(c[3],l[3],u)),n}}var O=w;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),c=v(e[r]),l=v(e[a]),u=i-r,p=T([o(h(c[0],l[0],u)),o(h(c[1],l[1],u)),o(h(c[2],l[2],u)),s(h(c[3],l[3],u))],"rgba");return n?{color:p,leftIndex:r,rightIndex:a,value:i}:p}}var E=S;function A(t,e,n,i){if(t=v(t),t)return t=_(t),null!=e&&(t[0]=a(e)),null!=n&&(t[1]=l(n)),null!=i&&(t[2]=l(i)),T(y(t),"rgba")}function k(t,e){if(t=v(t),t&&null!=e)return t[3]=s(e),T(t,"rgba")}function T(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=v,e.lift=b,e.toHex=x,e.fastLerp=w,e.fastMapToColor=O,e.lerp=S,e.mapToColor=E,e.modifyHSL=A,e.modifyAlpha=k,e.stringify=T},"42e5":function(t,e){var n=function(t){this.colorStops=t||[]};n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var i=n;t.exports=i},"42f6":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("22d1"),a=n("07d7"),s=n("82f9"),c=n("eda2"),l=n("3842"),u=n("2306"),h=n("133d"),p=n("f934"),d=n("4319"),f=n("17d6"),g=n("697e"),m=n("ff2e"),v=n("e0d3"),y=v.getTooltipRenderMode,_=r.bind,b=r.each,x=l.parsePercent,w=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),O=i.extendComponentView({type:"tooltip",init:function(t,e){if(!o.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=y(r),"html"===this._renderMode?(n=new a(e.getDom(),e),this._newLine="
"):(n=new s(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!o.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");f.register("itemTooltip",this._api,_((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!o.node){var r=E(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=w;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=h(i,e),l=c.point[0],u=c.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:c.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(E(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var c=s.getData();t=S([c.getItemModel(o),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},_tryShow:function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=r.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],a=[],s=[],l=S([e.tooltipOption,i]),u=this._renderMode,h=this._newLine,p={};b(t,(function(t){b(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,o=[];if(e&&null!=i){var l=m.getValueLabel(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(a){var c=n.getSeriesByIndex(a.seriesIndex),h=a.dataIndexInside,d=c&&c.getDataParams(h);if(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=g.getAxisRawValue(e.axis,i),d.axisValueLabel=l,d){s.push(d);var f,m=c.formatTooltip(h,!0,null,u);if(r.isObject(m)){f=m.html;var v=m.markers;r.merge(p,v)}else f=m;o.push(f)}}));var d=l;"html"!==u?a.push(o.join(h)):a.push((d?c.encodeHTML(d)+h:"")+o.join(h))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var d=e.position;this._showOrMove(l,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(l,a,s,Math.random(),o[0],o[1],d,void 0,p)}))},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,o=e.seriesIndex,a=i.getSeriesByIndex(o),s=e.dataModel||a,c=e.dataIndex,l=e.dataType,u=s.getData(),h=S([u.getItemModel(c),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),p=h.get("trigger");if(null==p||"item"===p){var d,f,g=s.getDataParams(c,l),m=s.formatTooltip(c,!1,l,this._renderMode);r.isObject(m)?(d=m.html,f=m.markers):(d=m,f=null);var v="item_"+s.name+"_"+c;this._showOrMove(h,(function(){this._showTooltipContent(h,d,g,v,t.offsetX,t.offsetY,t.position,t.target,f)})),n({type:"showTip",dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"===typeof i){var r=i;i={content:r,formatter:r}}var o=new d(i,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var p=e;if(h&&"string"===typeof h)p=c.formatTpl(h,n,!0);else if("function"===typeof h){var d=_((function(e,i){e===this._ticket&&(u.setContent(i,l,t),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,p=h(n,i,d)}u.setContent(p,l,t),u.show(t),this._updatePosition(t,a,r,o,u,n,s)}},_updatePosition:function(t,e,n,i,o,a,s){var c=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=o.getSize(),h=t.get("align"),d=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"===typeof e&&(e=e([n,i],a,o.el,f,{viewSize:[c,l],contentSize:u.slice()})),r.isArray(e))n=x(e[0],c),i=x(e[1],l);else if(r.isObject(e)){e.width=u[0],e.height=u[1];var g=p.getLayoutRect(e,{width:c,height:l});n=g.x,i=g.y,h=null,d=null}else if("string"===typeof e&&s){var m=T(e,f,u);n=m[0],i=m[1]}else{m=A(n,i,o,c,l,h?null:20,d?null:20);n=m[0],i=m[1]}if(h&&(n-=j(h)?u[0]/2:"right"===h?u[0]:0),d&&(i-=j(d)?u[1]/2:"bottom"===d?u[1]:0),t.get("confine")){m=k(n,i,o,c,l);n=m[0],i=m[1]}o.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&b(e,(function(e,i){var r=e.dataByAxis||{},o=t[i]||{},a=o.dataByAxis||[];n&=r.length===a.length,n&&b(r,(function(t,e){var i=a[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length,n&&b(r,(function(t,e){var i=o[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){o.node||(this._tooltipContent.hide(),f.unregister("itemTooltip",e))}});function S(t){var e=t.pop();while(t.length){var n=t.pop();n&&(d.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),e=new d(n,e,e.ecModel))}return e}function E(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function A(t,e,n,i,r,o,a){var s=n.getOuterSize(),c=s.width,l=s.height;return null!=o&&(t+c+o>i?t-=c+o:t+=o),null!=a&&(e+l+a>r?e-=l+a:e+=a),[t,e]}function k(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function T(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,c=e.width,l=e.height;switch(t){case"inside":a=e.x+c/2-i/2,s=e.y+l/2-r/2;break;case"top":a=e.x+c/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+c/2-i/2,s=e.y+l+o;break;case"left":a=e.x-i-o,s=e.y+l/2-r/2;break;case"right":a=e.x+c+o,s=e.y+l/2-r/2}return[a,s]}function j(t){return"center"===t||"middle"===t}t.exports=O},4319:function(t,e,n){var i=n("6d8b"),r=n("22d1"),o=n("e0d3"),a=o.makeInner,s=n("625e"),c=s.enableClassExtend,l=s.enableClassCheck,u=n("3901"),h=n("9bdb"),p=n("fe21"),d=n("551f"),f=i.mixin,g=a();function m(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function v(t,e,n){for(var i=0;io||void 0===o)&&(o=s+u),(c+l>a||void 0===a)&&(a=c+l)})),{x:n,y:r,height:a-r,width:o-n}}function p(t,e){var n={};return Object(i["i"])(t,(function(t){var r=t;r.waypoints&&(r=h(r)),!Object(i["p"])(e.y)&&r.x>e.x&&(n[t.id]=t),!Object(i["p"])(e.x)&&r.y>e.y&&(n[t.id]=t),r.x>e.x&&r.y>e.y&&(Object(i["p"])(e.width)&&Object(i["p"])(e.height)&&r.width+r.x');return Object(r["a"])(e,{position:"absolute",width:0,height:0}),t.insertBefore(e,t.firstChild),e}function h(t,e,n){Object(r["a"])(t,{left:e+"px",top:n+"px"})}function p(t,e){t.style.display=!1===e?"none":""}function d(t,e){t.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){t.style[n+"transform"]=e}))}l.$inject=["config.overlays","eventBus","canvas","elementRegistry"],l.prototype.get=function(t){if(Object(i["r"])(t)&&(t={id:t}),Object(i["r"])(t.element)&&(t.element=this._elementRegistry.get(t.element)),t.element){var e=this._getOverlayContainer(t.element,!0);return e?t.type?Object(i["e"])(e.overlays,Object(i["v"])({type:t.type})):e.overlays.slice():[]}return t.type?Object(i["e"])(this._overlays,Object(i["v"])({type:t.type})):t.id?this._overlays[t.id]:null},l.prototype.add=function(t,e,n){if(Object(i["q"])(e)&&(n=e,e=null),t.id||(t=this._elementRegistry.get(t)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!t)throw new Error("invalid element specified");var r=this._ids.next();return n=Object(i["a"])({},this._overlayDefaults,n,{id:r,type:e,element:t,html:n.html}),this._addOverlay(n),r},l.prototype.remove=function(t){var e=this.get(t)||[];Object(i["l"])(e)||(e=[e]);var n=this;Object(i["i"])(e,(function(t){var e=n._getOverlayContainer(t.element,!0);if(t&&(Object(r["l"])(t.html),Object(r["l"])(t.htmlContainer),delete t.htmlContainer,delete t.element,delete n._overlays[t.id]),e){var i=e.overlays.indexOf(t);-1!==i&&e.overlays.splice(i,1)}}))},l.prototype.show=function(){p(this._overlayRoot)},l.prototype.hide=function(){p(this._overlayRoot,!1)},l.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Object(r["d"])(this._overlayRoot)},l.prototype._updateOverlayContainer=function(t){var e=t.element,n=t.html,i=e.x,a=e.y;if(e.waypoints){var s=Object(o["b"])(e);i=s.x,a=s.y}h(n,i,a),Object(r["b"])(t.html,"data-container-id",e.id)},l.prototype._updateOverlay=function(t){var e,n,i=t.position,r=t.htmlContainer,a=t.element,s=i.left,c=i.top;void 0!==i.right&&(e=a.waypoints?Object(o["b"])(a).width:a.width,s=-1*i.right+e);void 0!==i.bottom&&(n=a.waypoints?Object(o["b"])(a).height:a.height,c=-1*i.bottom+n);h(r,s||0,c||0),this._updateOverlayVisibilty(t,this._canvas.viewbox())},l.prototype._createOverlayContainer=function(t){var e=Object(r["g"])('
');Object(r["a"])(e,{position:"absolute"}),this._overlayRoot.appendChild(e);var n={html:e,element:t,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},l.prototype._updateRoot=function(t){var e=t.scale||1,n="matrix("+[e,0,0,e,-1*t.x*e,-1*t.y*e].join(",")+")";d(this._overlayRoot,n)},l.prototype._getOverlayContainer=function(t,e){var n=Object(i["f"])(this._overlayContainers,(function(e){return e.element===t}));return n||e?n:this._createOverlayContainer(t)},l.prototype._addOverlay=function(t){var e,n,o=t.id,a=t.element,s=t.html;s.get&&s.constructor.prototype.jquery&&(s=s.get(0)),Object(i["r"])(s)&&(s=Object(r["g"])(s)),n=this._getOverlayContainer(a),e=Object(r["g"])('
'),Object(r["a"])(e,{position:"absolute"}),e.appendChild(s),t.type&&Object(r["c"])(e).add("djs-overlay-"+t.type);var c=this._canvas.findRoot(a),l=this._canvas.getRootElement();p(e,c===l),t.htmlContainer=e,n.overlays.push(t),n.html.appendChild(e),this._overlays[o]=t,this._updateOverlay(t),this._updateOverlayVisibilty(t,this._canvas.viewbox())},l.prototype._updateOverlayVisibilty=function(t,e){var n=t.show,r=this._canvas.findRoot(t.element),o=n&&n.minZoom,a=n&&n.maxZoom,s=t.htmlContainer,c=this._canvas.getRootElement(),l=!0;(r!==c||n&&(Object(i["m"])(o)&&o>e.scale||Object(i["m"])(a)&&ar&&(o=(1/e.scale||1)*r)),Object(i["m"])(o)&&(c="scale("+o+","+o+")"),d(s,c)},l.prototype._updateOverlaysVisibilty=function(t){var e=this;Object(i["i"])(this._overlays,(function(n){e._updateOverlayVisibilty(n,t)}))},l.prototype._init=function(){var t=this._eventBus,e=this;function n(t){e._updateRoot(t),e._updateOverlaysVisibilty(t),e.show()}t.on("canvas.viewbox.changing",(function(t){e.hide()})),t.on("canvas.viewbox.changed",(function(t){n(t.viewbox)})),t.on(["shape.remove","connection.remove"],(function(t){var n=t.element,o=e.get({element:n});Object(i["i"])(o,(function(t){e.remove(t.id)}));var a=e._getOverlayContainer(n);if(a){Object(r["l"])(a.html);var s=e._overlayContainers.indexOf(a);-1!==s&&e._overlayContainers.splice(s,1)}})),t.on("element.changed",c,(function(t){var n=t.element,r=e._getOverlayContainer(n,!0);r&&(Object(i["i"])(r.overlays,(function(t){e._updateOverlay(t)})),e._updateOverlayContainer(r))})),t.on("element.marker.update",(function(t){var n=e._getOverlayContainer(t.element,!0);n&&Object(r["c"])(n.html)[t.add?"add":"remove"](t.marker)})),t.on("root.set",(function(){e._updateOverlaysVisibilty(e._canvas.viewbox())})),t.on("diagram.clear",this.clear,this)};e["a"]={__init__:["overlays"],overlays:["type",l]}},"471e":function(t,e){function n(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}t.exports=n},4784:function(t,e,n){var i=n("3eba"),r=n("f706"),o=n("c8ef"),a=n("1687"),s=n("87c3"),c=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(o)},render:function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateTransform:function(t,e,n){var i=t.getData();this.group.dirty();var r=s().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=a.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});t.exports=c},"480e":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("2306"),a=n("cd84"),s=n("6d8b");function c(t,e,n){var i=t[1]-t[0];e=s.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,o=0;return function(t){for(var i=o;i=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function u(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var h=r.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):u(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){var r=e.coordinateSystem;r&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,r){var a,c,l=t.coordinateSystem;if("cartesian2d"===l.type){var u=l.getAxis("x"),h=l.getAxis("y");a=u.getBandWidth(),c=h.getBandWidth()}for(var p=this.group,d=t.getData(),f="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),_=t.getModel(g).getItemStyle(),b=t.getModel(m),x=t.getModel(v),w=l.type,O="cartesian2d"===w?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],S=n;S=0?i+=g:i-=g:b>=0?i-=g:i+=g}return i}function p(t,e){var n=[],o=i.quadraticSubdivide,a=[[],[],[]],s=[[],[]],c=[];function l(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge((function(t,i){var u=t.getLayout(),p=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");u.__original||(u.__original=[r.clone(u[0]),r.clone(u[1])],u[2]&&u.__original.push(r.clone(u[2])));var f=u.__original;if(null!=u[2]){if(r.copy(a[0],f[0]),r.copy(a[1],f[2]),r.copy(a[2],f[1]),p&&"none"!==p){var g=l(t.node1),m=h(a,f[0],g*e);o(a[0][0],a[1][0],a[2][0],m,n),a[0][0]=n[3],a[1][0]=n[4],o(a[0][1],a[1][1],a[2][1],m,n),a[0][1]=n[3],a[1][1]=n[4]}if(d&&"none"!==d){g=l(t.node2),m=h(a,f[1],g*e);o(a[0][0],a[1][0],a[2][0],m,n),a[1][0]=n[1],a[2][0]=n[2],o(a[0][1],a[1][1],a[2][1],m,n),a[1][1]=n[1],a[2][1]=n[2]}r.copy(u[0],a[0]),r.copy(u[1],a[2]),r.copy(u[2],a[1])}else{if(r.copy(s[0],f[0]),r.copy(s[1],f[1]),r.sub(c,s[1],s[0]),r.normalize(c,c),p&&"none"!==p){g=l(t.node1);r.scaleAndAdd(s[0],s[0],c,g*e)}if(d&&"none"!==d){g=l(t.node2);r.scaleAndAdd(s[1],s[1],c,-g*e)}r.copy(u[0],s[0]),r.copy(u[1],s[1])}}))}t.exports=p},4888:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("dd5f"),r=n("87f2");function o(){this._uid=12}o.prototype.createRoot=function(t){return this.create("root",t)},o.prototype.createLabel=function(t){return this.create("label",t)},o.prototype.createShape=function(t){return this.create("shape",t)},o.prototype.createConnection=function(t){return this.create("connection",t)},o.prototype.create=function(t,e){return e=Object(r["a"])({},e||{}),e.id||(e.id=t+"_"+this._uid++),Object(i["c"])(t,e)}},"48a9":function(t,e,n){var i=n("6d8b"),r=n("42e5"),o=function(t,e,n,i,o,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,r.call(this,o)};o.prototype={constructor:o},i.inherits(o,r);var a=o;t.exports=a},"48ac":function(t,e,n){var i=n("3eba"),r=i.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),o=r;t.exports=o},"48c7":function(t,e,n){var i=n("6d8b"),r=n("6cb7"),o=n("9e47"),a=n("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 c(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,a);var l={offset:0};o("x",s,c,l),o("y",s,c,l);var u=s;t.exports=u},4942:function(t,e,n){var i=n("2cf4c"),r=i.debugMode,o=function(){};1===r?o=function(){for(var t in arguments)throw new Error(arguments[t])}:r>1&&(o=function(){for(var t in arguments)console.log(arguments[t])});var a=o;t.exports=a},"49e8":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("d81e"),a=o.updateCenterAndZoom;i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=a(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===n&&r.each(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))},"4a01":function(t,e,n){var i=n("6d8b"),r=n("1fab"),o=n("607d"),a=n("a4fe");function s(t){this.pointerChecker,this._zr=t,this._opt={};var e=i.bind,n=e(c,this),o=e(l,this),a=e(u,this),s=e(h,this),d=e(p,this);r.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,r){this.disable(),this._opt=i.defaults(i.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",o),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",d))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",o),t.off("mouseup",a),t.off("mousewheel",s),t.off("pinch",d)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function c(t){if(!(o.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function l(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!a.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,s=e-i,c=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&o.stop(t.event),f(this,"pan","moveOnMouseMove",t,{dx:s,dy:c,oldX:i,oldY:r,newX:e,newY:n})}}function u(t){o.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function h(t){var e=g("zoomOnMouseWheel",t,this._opt),n=g("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,c=i>0?s:1/s;d(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:o,originY:a})}if(n){var l=Math.abs(i),u=(i>0?1:-1)*(l>3?.4:l>1?.15:.05);d(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:o,originY:a})}}}function p(t){if(!a.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;d(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function d(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(o.stop(i.event),f(t,e,n,i,r))}function f(t,e,n,r,o){o.isAvailableBehavior=i.bind(g,null,n,r),t.trigger(e,o)}function g(t,e,n){var r=n[t];return!t||r&&(!i.isString(r)||e.event[r+"Key"])}i.mixin(s,r);var m=s;t.exports=m},"4a3f":function(t,e,n){var i=n("401b"),r=i.create,o=i.distSquare,a=Math.pow,s=Math.sqrt,c=1e-8,l=1e-4,u=s(3),h=1/3,p=r(),d=r(),f=r();function g(t){return t>-c&&tc||t<-c}function v(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function y(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function _(t,e,n,i,r,o){var c=i+3*(e-n)-t,l=3*(n-2*e+t),p=3*(e-t),d=t-r,f=l*l-3*c*p,m=l*p-9*c*d,v=p*p-3*l*d,y=0;if(g(f)&&g(m))if(g(l))o[0]=0;else{var _=-p/l;_>=0&&_<=1&&(o[y++]=_)}else{var b=m*m-4*f*v;if(g(b)){var x=m/f,w=(_=-l/c+x,-x/2);_>=0&&_<=1&&(o[y++]=_),w>=0&&w<=1&&(o[y++]=w)}else if(b>0){var O=s(b),S=f*l+1.5*c*(-m+O),E=f*l+1.5*c*(-m-O);S=S<0?-a(-S,h):a(S,h),E=E<0?-a(-E,h):a(E,h);_=(-l-(S+E))/(3*c);_>=0&&_<=1&&(o[y++]=_)}else{var A=(2*f*l-3*c*m)/(2*s(f*f*f)),k=Math.acos(A)/3,T=s(f),j=Math.cos(k),M=(_=(-l-2*T*j)/(3*c),w=(-l+T*(j+u*Math.sin(k)))/(3*c),(-l+T*(j-u*Math.sin(k)))/(3*c));_>=0&&_<=1&&(o[y++]=_),w>=0&&w<=1&&(o[y++]=w),M>=0&&M<=1&&(o[y++]=M)}}return y}function b(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,c=3*e-3*t,l=0;if(g(a)){if(m(o)){var u=-c/o;u>=0&&u<=1&&(r[l++]=u)}}else{var h=o*o-4*a*c;if(g(h))r[0]=-o/(2*a);else if(h>0){var p=s(h),d=(u=(-o+p)/(2*a),(-o-p)/(2*a));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function x(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,c=(i-n)*r+n,l=(s-a)*r+a,u=(c-s)*r+s,h=(u-l)*r+l;o[0]=t,o[1]=a,o[2]=l,o[3]=h,o[4]=h,o[5]=u,o[6]=c,o[7]=i}function w(t,e,n,i,r,a,c,u,h,g,m){var y,_,b,x,w,O=.005,S=1/0;p[0]=h,p[1]=g;for(var E=0;E<1;E+=.05)d[0]=v(t,n,r,c,E),d[1]=v(e,i,a,u,E),x=o(p,d),x=0&&x=0&&u<=1&&(r[l++]=u)}}else{var h=a*a-4*o*c;if(g(h)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(h>0){var p=s(h),d=(u=(-a+p)/(2*o),(-a-p)/(2*o));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function A(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function k(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function T(t,e,n,i,r,a,c,u,h){var g,m=.005,v=1/0;p[0]=c,p[1]=u;for(var y=0;y<1;y+=.05){d[0]=O(t,n,r,y),d[1]=O(e,i,a,y);var _=o(p,d);_=0&&_=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},g.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"===typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},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 o.each(this._tagNames,(function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))})),e},g.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;o.each(t,(function(t){t[e._markLabel]=d}))},g.prototype.markUsed=function(t){t&&(t[this._markLabel]=f)},g.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;o.each(e,(function(e){e[n._markLabel]!==f&&t.removeChild(e)}))}},g.prototype.getSvgProxy=function(t){return t instanceof a?u:t instanceof s?h:t instanceof c?p:u},g.prototype.getTextSvgElement=function(t){return t.__textSvgEl},g.prototype.getSvgElement=function(t){return t.__svgEl};var m=g;t.exports=m},"4b08":function(t,e,n){var i=n("7dcf"),r=i.extend({type:"dataZoom.select"});t.exports=r},"4bf6":function(t,e,n){var i=n("66fc"),r=n("697e"),o=n("f934"),a=o.getLayoutRect,s=n("6d8b"),c=s.each;function l(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}l.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:l,_init:function(t,e,n){var o=this.dimension,a=new i(o,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();c(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=a({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,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},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(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},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(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var u=l;t.exports=u},"4c86":function(t,e,n){var i=n("6d8b"),r=i.each,o=n("bda7"),a=n("e0d3"),s=a.makeInner,c=n("320a"),l=n("1792"),u=n("6bd4"),h=n("a7f2"),p=s(),d={load:function(t,e){var n=p(e).parsed;if(n)return n;var i,a=e.specialAreas||{},s=e.geoJSON;try{i=s?o(s):[]}catch(d){throw new Error("Invalid geoJson format\n"+d.message)}return r(i,(function(e){var n=e.name;l(t,e),u(t,e),h(t,e);var i=a[n];i&&e.transformTo(i.left,i.top,i.width,i.height)})),c(t,i),p(e).parsed={regions:i,boundingRect:f(i)}}};function f(t){for(var e,n=0;n0?a:s)}function u(t,e){return e.get(t>0?r:o)}}};t.exports=c},"4d62":function(t,e,n){var i=n("2306"),r=n("6d8b"),o=n("e887");function a(t,e){i.Group.call(this);var n=new i.Polygon,r=new i.Polyline,o=new i.Text;function a(){r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore}function s(){r.ignore=r.normalIgnore,o.ignore=o.normalIgnore}this.add(n),this.add(r),this.add(o),this.updateData(t,e,!0),this.on("emphasis",a).on("normal",s).on("mouseover",a).on("mouseout",s)}var s=a.prototype,c=["itemStyle","opacity"];s.updateData=function(t,e,n){var o=this.childAt(0),a=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=t.getItemModel(e).get(c);u=null==u?1:u,o.useStyle({}),n?(o.setShape({points:l.points}),o.setStyle({opacity:0}),i.initProps(o,{style:{opacity:u}},a,e)):i.updateProps(o,{style:{opacity:u},shape:{points:l.points}},a,e);var h=s.getModel("itemStyle"),p=t.getItemVisual(e,"color");o.setStyle(r.defaults({lineJoin:"round",fill:p},h.getItemStyle(["opacity"]))),o.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),i.setHoverStyle(this)},s._updateLabel=function(t,e){var n=this.childAt(1),r=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),c=s.label,l=t.getItemVisual(e,"color");i.updateProps(n,{shape:{points:c.linePoints||c.linePoints}},o,e),i.updateProps(r,{style:{x:c.x,y:c.y}},o,e),r.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),p=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine");l=t.getItemVisual(e,"color");i.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:l,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!d.get("show"),n.setStyle({stroke:l}),n.setStyle(p.getModel("lineStyle").getLineStyle()),n.hoverStyle=d.getModel("lineStyle").getLineStyle()},r.inherits(a,i.Group);var l=o.extend({type:"funnel",render:function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new a(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(t){var e=r.getItemGraphicEl(t);o.remove(e)})).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=l;t.exports=u},"4d7c":function(t,e,n){var i,r;(function(){var n=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}([,,function(t,e,n){"use strict";function i(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function r(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function o(t,e){this.__indent_cache=new r(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},r.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},r.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},r.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},o.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=o},,,,function(t,e,n){"use strict";function i(t,e){this.raw_options=r(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function r(t,e){var n,i={};for(n in t=o(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function o(t){var e,n={};for(e in t){var i=e.replace(/-/g,"_");n[i]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t],i=void 0===n?!!e:!!n;return i},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=i,t.exports.normalizeOpts=o,t.exports.mergeOpts=r},,function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function r(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=r},,,,,function(t,e,n){"use strict";function i(t,e){t="string"===typeof t?t:t.source,e="string"===typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}i.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(t);while(n)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},i.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=i},,function(t,e,n){"use strict";var i=n(16).Beautifier,r=n(17).Options;function o(t,e){var n=new i(t,e);return n.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new r}},function(t,e,n){"use strict";var i=n(17).Options,r=n(2).Output,o=n(8).InputScanner,a=n(13).Directives,s=new a(/\/\*/,/\*\//),c=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=/\s/,h=/(?:\s|\n)+/g,p=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(t,e){this._source_text=t||"",this._options=new i(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}f.prototype.eatString=function(t){var e="";this._ch=this._input.next();while(this._ch){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},f.prototype.eatWhitespace=function(t){var e=u.test(this._input.peek()),n=!0;while(u.test(this._input.peek()))this._ch=this._input.next(),t&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return e},f.prototype.foundNestedPseudoClass=function(){var t=0,e=1,n=this._input.peek(e);while(n){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;t-=1}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},f.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},f.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&c.test(t||"")&&(e=t.match(c)[0])),t=t.replace(l,"\n");var n=t.match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new o(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var i,a,f,g=0,m=!1,v=!1,y=!1,_=!1,b=!1,x=this._ch;while(1){if(i=this._input.read(h),a=""!==i,f=x,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(p),O=s.get_directives(w);O&&"start"===O.ignore&&(w+=s.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(d)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(a),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s$/,""),this.print_string(S),this._output.space_before_token=!0),S=S.replace(/\s$/,""),"extend"===S?_=!0:"import"===S&&(b=!0),S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(y=!0)):m||0!==g||-1===S.indexOf(":")||(v=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(a),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(v&&(v=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),y?(y=!1,m=this._indentLevel>this._nestedLevel):m=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),b=!1,_=!1,v&&(this.outdent(),v=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!m&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||_||0!==g?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(a),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===g?(v&&(this.outdent(),v=!1),_=!1,b=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),g++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),g&&(g--,this.outdent()))):(this.preserveSingleSpace(a),this.print_string(this._ch),this.eatWhitespace(),g++,this.indent()):")"===this._ch?(g&&(g--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||v||0!==g||b?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||0!==g?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(a),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),u.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(a),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&u.test(this._ch)&&(this._ch=""))}var E=this._output.get_code(e);return E},t.exports.Beautifier=f},function(t,e,n){"use strict";var i=n(6).Options;function r(t){i.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e}r.prototype=new i,t.exports.Options=r}]),o=n;i=[],r=function(){return{css_beautify:o}}.apply(e,i),void 0===r||(t.exports=r)})()},"4d85":function(t,e,n){var i=n("e46b"),r=n("4f85"),o=n("6d8b"),a=r.extend({type:"series.gauge",getInitialData:function(t,e){var n=t.data||[];return o.isArray(n)||(n=[n]),t.data=n,i(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),s=a;t.exports=s},"4e08":function(t,e,n){(function(t){var n;"undefined"!==typeof window?n=window.__DEV__:"undefined"!==typeof t&&(n=t.__DEV__),"undefined"===typeof n&&(n=!0);var i=n;e.__DEV__=i}).call(this,n("c8ba"))},"4e10":function(t,e,n){var i=n("6d8b"),r=n("e46b"),o=n("4f85"),a=n("eda2"),s=a.encodeHTML,c=a.addCommas,l=n("7023"),u=n("2b17"),h=u.retrieveRawAttr,p=n("5b87"),d=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var e=r(this,["value"]),n=e.mapDimension("value"),o=i.createHashMap(),a=[],s=[],c=0,l=e.count();c"+s(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.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)"}}}});i.mixin(d,l);var f=d;t.exports=f},"4e47":function(t,e,n){var i=n("6d8b"),r=n("2306"),o={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},a=2,s=4;function c(t,e,n){r.Group.call(this);var i=new r.Sector({z2:a});i.seriesIndex=e.seriesIndex;var o=new r.Text({z2:s,silent:t.getModel("label").get("silent")});function c(){o.ignore=o.hoverIgnore}function l(){o.ignore=o.normalIgnore}this.add(i),this.add(o),this.updateData(!0,t,"normal",e,n),this.on("emphasis",c).on("normal",l).on("mouseover",c).on("mouseout",l)}var l=c.prototype;l.updateData=function(t,e,n,o,a){this.node=e,e.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=e.dataIndex;var c=e.getModel(),l=e.getLayout(),u=i.extend({},l);u.label=null;var p=h(e,o,a);f(e,o,p);var d,g=c.getModel("itemStyle").getItemStyle();if("normal"===n)d=g;else{var m=c.getModel(n+".itemStyle").getItemStyle();d=i.merge(m,g)}d=i.defaults({lineJoin:"bevel",fill:d.fill||p},d),t?(s.setShape(u),s.shape.r=l.r0,r.updateProps(s,{shape:{r:l.r}},o,e.dataIndex),s.useStyle(d)):"object"===typeof d.fill&&d.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:u},o),s.useStyle(d)):r.updateProps(s,{shape:u,style:d},o),this._updateLabel(o,p,n);var v=c.getShallow("cursor");if(v&&s.attr("cursor",v),t){var y=o.getShallow("highlightPolicy");this._initEvents(s,e,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel},l.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(e.node===n?n.piece.updateData(!1,n,"emphasis"):d(n,e.node,t)?n.piece.childAt(0).trigger("highlight"):t!==o.NONE&&n.piece.childAt(0).trigger("downplay"))}))},l.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},l.onHighlight=function(){this.updateData(!1,this.node,"highlight")},l.onDownplay=function(){this.updateData(!1,this.node,"downplay")},l._updateLabel=function(t,e,n){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),c=o.getModel("emphasis.label"),l=i.retrieve(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===E("show")&&(l="");var u=this.node.getLayout(),h=s.get("minAngle");null==h&&(h=a.get("minAngle")),h=h/180*Math.PI;var p=u.endAngle-u.startAngle;null!=h&&Math.abs(p)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(f=u.r0+_,g>Math.PI/2&&(b="right")):"right"===b&&(f=u.r-_,g>Math.PI/2&&(b="left")):(f=(u.r+u.r0)/2,b="center"),d.attr("style",{text:l,textAlign:b,textVerticalAlign:E("verticalAlign")||"middle",opacity:E("opacity")});var x=f*m+u.cx,w=f*v+u.cy;d.attr("position",[x,w]);var O=E("rotate"),S=0;function E(t){var e=s.get(t);return null==e?a.get(t):e}"radial"===O?(S=-g,S<-Math.PI/2&&(S+=Math.PI)):"tangential"===O?(S=Math.PI/2-g,S>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI)):"number"===typeof O&&(S=O*Math.PI/180),d.attr("rotation",S)},l._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()},s=function(){r.onDownplay()},c=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",c)},i.inherits(c,r.Group);var u=c;function h(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(i=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[p(t)%a],o}function p(t){var e=t;while(e.depth>1)e=e.parentNode;var n=t.getAncestors()[0];return i.indexOf(n.children,e)}function d(t,e,n){return n!==o.NONE&&(n===o.SELF?t===e:n===o.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function f(t,e,n){var i=e.getData();i.setItemVisual(t.dataIndex,"color",n)}t.exports=u},"4e9f":function(t,e,n){var i=n("22d1"),r=n("29a8"),o=n("2145"),a=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:a.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!i.canvasSupported;var c=s.prototype;c.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",o=document.createElement("a"),a=n.get("type",!0)||"png";o.download=r+"."+a,o.target="_blank";var s=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(o.href=s,"function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var c=atob(s.split(",")[1]),l=c.length,u=new Uint8Array(l);while(l--)u[l]=c.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+a)}else{var p=n.get("lang"),d='',f=window.open();f.document.write(d)}else{var g=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(g)}},o.register("saveAsImage",s);var l=s;t.exports=l},"4f85":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=n("22d1"),a=n("eda2"),s=a.formatTime,c=a.encodeHTML,l=a.addCommas,u=a.getTooltipMarker,h=n("e0d3"),p=n("6cb7"),d=n("e47b"),f=n("38a2"),g=n("f934"),m=g.getLayoutParams,v=g.mergeLayoutParam,y=n("f47d"),_=y.createTask,b=n("0f99"),x=b.prepareSource,w=b.getSource,O=n("2b17"),S=O.retrieveRawValue,E=h.makeInner(),A=p.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=_({count:j,reset:M}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),x(this);var r=this.getInitialData(t,n);P(r,this),this.dataTask.context.data=r,E(this).dataBeforeProcessed=r,k(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?m(t):{},o=this.subType;p.hasClass(o)&&(o+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),h.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&v(t,i,n)},mergeOption:function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&v(this.option,t,n),x(this);var i=this.getInitialData(t,e);P(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,E(this).dataBeforeProcessed=i,k(this)},fillDataTextStyle:function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],n=0;n":"\n",p="richText"===i,d={},f=0;function g(n){var a=r.reduce(n,(function(t,e,n){var i=v.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),h=[];function g(t,n){var r=v.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var g=r.type,m="sub"+o.seriesIndex+"at"+f,y=u({color:w,type:"subItem",renderMode:i,markerId:m}),_="string"===typeof y?y:y.content,b=(a?_+c(r.displayName||"-")+": ":"")+c("ordinal"===g?t+"":"time"===g?e?"":s("yyyy/MM/dd hh:mm:ss",t):l(t));b&&h.push(b),p&&(d[m]=w,++f)}}y.length?r.each(y,(function(e){g(S(v,t,e),e)})):r.each(n,g);var m=a?p?"\n":"
":"",_=m+h.join(m||", ");return{renderMode:i,content:_,style:d}}function m(t){return{renderMode:i,content:c(l(t)),style:d}}var v=this.getData(),y=v.mapDimension("defaultedTooltip",!0),_=y.length,b=this.getRawValue(t),x=r.isArray(b),w=v.getItemVisual(t,"color");r.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var O=_>1||x&&!_?g(b):m(_?S(v,t,y[0]):x?b[0]:b),E=O.content,A=o.seriesIndex+"at"+f,k=u({color:w,type:"item",renderMode:i,markerId:A});d[A]=w,++f;var T=v.getName(t),j=this.name;h.isNameSpecified(this)||(j=""),j=j?c(j)+(e?": ":a):"";var M="string"===typeof k?k:k.content,C=e?M+j+E:j+M+(T?c(T)+": "+E:E);return{html:C,markers:d}},isAnimationEnabled:function(){if(o.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,n){var i=this.ecModel,r=d.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),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 k(t){var e=t.name;h.isNameSpecified(t)||(t.name=T(t)||e)}function T(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return r.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function j(t){return t.model.getRawData().count()}function M(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),C}function C(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function P(t,e){r.each(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,r.curry(I,e))}))}function I(t){var e=D(t);e&&e.setOutputEnd(this.count())}function D(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.mixin(A,f),r.mixin(A,d);var R=A;t.exports=R},"4fac":function(t,e,n){var i=n("620b"),r=n("9c2c");function o(t,e,n){var o=e.points,a=e.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=r(o,a,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var c=o.length,l=0;l<(n?c:c-1);l++){var u=s[2*l],h=s[2*l+1],p=o[(l+1)%c];t.bezierCurveTo(u[0],u[1],h[0],h[1],p[0],p[1])}}else{"spline"===a&&(o=i(o,n)),t.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l=0}function c(t,e){t=t.slice();var n=i.map(t,r.capitalFirst);e=(e||[]).slice();var o=i.map(e,r.capitalFirst);return function(r,a){i.each(t,(function(t,i){for(var s={name:t,capital:n[i]},c=0;c=0}function o(t,r){var o=!1;return e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]&&(o=!0)}))})),o}function a(t,r){r.nodes.push(t),e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]=!0}))}))}}e.isCoordSupported=s,e.createNameEach=c,e.eachAxisDim=l,e.createLinkedNodesFinder=u},"527a":function(t,e,n){var i=n("6d8b"),r=n("3842");function o(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),c=n.getAxis();if(i.boundaryGap=s,"horizontal"===c.orient){s[0]=r.parsePercent(s[0],o.height),s[1]=r.parsePercent(s[1],o.height);var l=o.height-s[0]-s[1];a(e,t,l)}else{s[0]=r.parsePercent(s[0],o.width),s[1]=r.parsePercent(s[1],o.width);var u=o.width-s[0]-s[1];a(e,t,u)}e.setLayout("layoutInfo",i)}))}function a(t,e,n){if(t.count())for(var r,o=e.coordinateSystem,a=e.getLayerSeries(),c=t.mapDimension("single"),l=t.mapDimension("value"),u=i.map(a,(function(e){return i.map(e.indices,(function(e){var n=o.dataToPoint(t.get(c,e));return n[1]=t.get(l,e),n}))})),h=s(u),p=h.y0,d=n/h.max,f=a.length,g=a[0].indices.length,m=0;mo&&(o=l),i.push(l)}for(var u=0;uo&&(o=p)}return a.y0=r,a.max=o,a}t.exports=o},5450:function(t,e,n){n("7419"),n("29a9")},"54fb":function(t,e){function n(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),n=t.getModel("itemStyle"),i=n.get("areaColor"),r=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:r})}))}t.exports=n},"551f":function(t,e,n){var i=n("282b"),r=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),o={getItemStyle:function(t,e){var n=r(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=o},5522:function(t,e,n){n("23e0"),n("1748"),n("6c12")},5576:function(t,e,n){var i=n("6d8b"),r=n("4a01"),o=n("88b3"),a="\0_ec_dataZoom_roams";function s(t,e){var n=u(t),r=e.dataZoomId,a=e.coordId;i.each(n,(function(t,n){var o=t.dataZoomInfos;o[r]&&i.indexOf(e.allCoordIds,a)<0&&(delete o[r],t.count--)})),p(n);var s=n[a];s||(s=n[a]={coordId:a,dataZoomInfos:{},count:0},s.controller=h(t,s),s.dispatchAction=i.curry(d,t)),!s.dataZoomInfos[r]&&s.count++,s.dataZoomInfos[r]=e;var c=f(s.dataZoomInfos);s.controller.enable(c.controlType,c.opt),s.controller.setPointerChecker(e.containsPoint),o.createOrUpdate(s,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function c(t,e){var n=u(t);i.each(n,(function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)})),p(n)}function l(t){return t.type+"\0_"+t.id}function u(t){var e=t.getZr();return e[a]||(e[a]={})}function h(t,e){var n=new r(t.getZr());return i.each(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(n){var r=[];i.each(e.dataZoomInfos,(function(i){if(n.isAvailableBehavior(i.dataZoomModel.option)){var o=(i.getRange||{})[t],a=o&&o(e.controller,n);!i.dataZoomModel.get("disabled",!0)&&a&&r.push({dataZoomId:i.dataZoomId,start:a[0],end:a[1]})}})),r.length&&e.dispatchAction(r)}))})),n}function p(t){i.each(t,(function(e,n){e.count||(e.controller.dispose(),delete t[n])}))}function d(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function f(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return i.each(t,(function(t){var i=t.dataZoomModel,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),o&=i.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}e.register=s,e.unregister=c,e.generateCoordId=l},"55ac":function(t,e,n){var i=n("6d8b");function r(t,e,n){if(t&&i.indexOf(e,t.type)>=0){var r=n.getData().tree.root,o=t.targetNode;if("string"===typeof o&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=r.getNodeById(a)))return{node:o}}}function o(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function a(t,e){var n=o(t);return i.indexOf(n,e)>=0}function s(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}e.retrieveTargetInfo=r,e.getPathToRoot=o,e.aboveViewRoot=a,e.wrapTreePathInfo=s},5693:function(t,e){function n(t,e){var n,i,r,o,a,s=e.x,c=e.y,l=e.width,u=e.height,h=e.r;l<0&&(s+=l,l=-l),u<0&&(c+=u,u=-u),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>l&&(a=n+i,n*=l/a,i*=l/a),r+o>l&&(a=r+o,r*=l/a,o*=l/a),i+r>u&&(a=i+r,i*=u/a,r*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),t.moveTo(s+n,c),t.lineTo(s+l-i,c),0!==i&&t.arc(s+l-i,c+i,i,-Math.PI/2,0),t.lineTo(s+l,c+u-r),0!==r&&t.arc(s+l-r,c+u-r,r,0,Math.PI/2),t.lineTo(s+o,c+u),0!==o&&t.arc(s+o,c+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,c+n),0!==n&&t.arc(s+n,c+n,n,Math.PI,1.5*Math.PI)}e.buildPath=n},5866:function(t,e,n){var i=n("ef2b"),r=i.forceLayout,o=n("1c5f"),a=o.simpleLayout,s=n("94e4"),c=s.circularLayout,l=n("3842"),u=l.linearMap,h=n("401b"),p=n("6d8b");function d(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),o=i.data,s=i.edgeData,l=t.getModel("force"),d=l.get("initLayout");t.preservedPoints?o.each((function(t){var e=o.getId(t);o.setItemLayout(t,n[e]||[NaN,NaN])})):d&&"none"!==d?"circular"===d&&c(t):a(t);var f=o.getDataExtent("value"),g=s.getDataExtent("value"),m=l.get("repulsion"),v=l.get("edgeLength");p.isArray(m)||(m=[m,m]),p.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=o.mapArray("value",(function(t,e){var n=o.getItemLayout(e),i=u(t,f,m);return isNaN(i)&&(i=(m[0]+m[1])/2),{w:i,rep:i,fixed:o.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),_=s.mapArray("value",(function(t,e){var n=i.getEdgeByIndex(e),r=u(t,g,v);return isNaN(r)&&(r=(v[0]+v[1])/2),{n1:y[n.node1.dataIndex],n2:y[n.node2.dataIndex],d:r,curveness:n.getModel().get("lineStyle.curveness")||0}})),b=(e=t.coordinateSystem,e.getBoundingRect()),x=r(y,_,{rect:b,gravity:l.get("gravity")}),w=x.step;x.step=function(t){for(var e=0,r=y.length;e=0;a--)null==n[a]&&(delete r[e[a]],e.pop())}function f(t,e){var n=t.visual,r=[];i.isObject(n)?s(n,(function(t){r.push(t)})):null!=n&&r.push(n);var o={color:1,symbol:1};e||1!==r.length||o.hasOwnProperty(t.type)||(r[1]=r[0]),w(t,r)}function g(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:b([0,1])}}function m(t){var e=this.option.visual;return e[Math.round(a(t,[0,1],[0,e.length-1],!0))]||{}}function v(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function y(t){var e=this.option.visual;return e[this.option.loop&&t!==l?t%e.length:t]}function _(){return this.option.visual[0]}function b(t){return{linear:function(e){return a(e,t,this.option.visual,!0)},category:y,piecewise:function(e,n){var i=x.call(this,n);return null==i&&(i=a(e,t,this.option.visual,!0)),i},fixed:_}}function x(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=u.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function w(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=i.map(e,(function(t){return r.parse(t)}))),e}var O={linear:function(t){return a(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=u.findPieceIndex(t,e,!0);if(null!=n)return a(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?l:e},fixed:i.noop};function S(t,e,n){return t?e<=n:e=55296&&r<=56319&&n>1,t+=m(t/e);t>g*a>>1;i+=r)t=m(t/g);return m(i+(g+1)*t/(t+s))},x=function(t){var e=[];t=y(t);var n,s,c=t.length,p=u,d=0,g=l;for(n=0;n=p&&sm((i-d)/S))throw RangeError(f);for(d+=(O-p)*S,p=O,n=0;ni)throw RangeError(f);if(s==p){for(var E=d,A=r;;A+=r){var k=A<=g?o:A>=g+a?a:A-g;if(E=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&c(t,o,e,n)}else c(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function h(t,e,n){o?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function p(t,e,n){o?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var d=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function f(t){return 2===t.which||3===t.which}function g(t){return t.which>1}e.clientToLocal=c,e.normalizeEvent=u,e.addEventListener=h,e.removeEventListener=p,e.stop=d,e.isMiddleOrRightButtonOnMouseUpDown=f,e.notLeftMouse=g},"60d7":function(t,e,n){var i=n("2306"),r=n("e887"),o=.3,a=r.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,n,r){var o=this._dataGroup,a=t.getData(),p=this._data,d=t.coordinateSystem,f=d.dimensions,g=u(t);function m(t){var e=l(a,o,t,f,d);h(e,a,t,g)}function v(e,n){var o=p.getItemGraphicEl(n),s=c(a,e,f,d);a.setItemGraphicEl(e,o);var l=r&&!1===r.animation?null:t;i.updateProps(o,{shape:{points:s}},l,e),h(o,a,e,g)}function y(t){var e=p.getItemGraphicEl(t);o.remove(e)}if(a.diff(p).add(m).update(v).remove(y).execute(),!this._initialized){this._initialized=!0;var _=s(d,t,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(_)}this._data=a},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=u(e),s=t.start;s65535?y:b}function w(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var O=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],S=["_extent","_approximateExtent","_rawExtent"];function E(t,e){r.each(O.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,r.each(S,(function(n){t[n]=r.clone(e[n])})),t._calculationInfo=r.extend(e._calculationInfo)}var A=function(t,e){t=t||["x","y"];for(var n={},i=[],o={},a=0;a=0?this._indices[t]:-1}function I(t,e){var n=t._idList[e];return null==n&&(n=M(t,t._idDimIdx,e)),null==n&&(n=m+e),n}function D(t){return r.isArray(t)||(t=[t]),t}function R(t,e){var n=t.dimensions,i=new A(r.map(n,t.getDimensionInfo,t),t.hostModel);E(i,t);for(var o=i._storage={},a=t._storage,s=0;s=0?(o[c]=L(a[c]),i._rawExtent[c]=N(),i._extent[c]=null):o[c]=a[c])}return i}function L(t){for(var e=new Array(t.length),n=0;n_[1]&&(_[1]=y)}e&&(this._nameList[d]=e[f])}this._rawCount=this._count=c,this._extent={},j(this)},k._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,c=this._dimensionInfos,l=this._nameList,u=this._idList,h=this._rawExtent,p=this._nameRepeatCount={},d=this._chunkCount,f=0;fS[1]&&(S[1]=O)}if(!r.pure){var E=l[y];if(v&&null==E)if(null!=v.name)l[y]=E=v.name;else if(null!=n){var A=a[n],k=o[A][_];if(k){E=k[b];var M=c[A].ordinalMeta;M&&M.categories.length&&(E=M.categories[E])}}var C=null==v?null:v.id;null==C&&null!=E&&(p[E]=p[E]||0,C=E,p[E]>0&&(C+="__ec__"+p[E]),p[E]++),null!=C&&(u[y]=C)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},j(this)}},k.count=function(){return this._count},k.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&es&&(s=l)}return i=[a,s],this._extent[t]=i,i},k.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},k.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},k.getCalculationInfo=function(t){return this._calculationInfo[t]},k.setCalculationInfo=function(t,e){d(t)?r.extend(this._calculationInfo,t):this._calculationInfo[t]=e},k.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();i=this._rawCount||t<0)return-1;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},k.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=Number.MAX_VALUE,s=-1,c=0,l=this.count();c=0&&s<0)&&(a=h,s=u,o.length=0),o.push(c))}return o},k.getRawIndex=C,k.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=l&&y<=u||isNaN(y))&&(a[s++]=p),p++}h=!0}else if(2===i){d=this._storage[c];var _=this._storage[e[1]],b=t[e[1]][0],w=t[e[1]][1];for(f=0;f=l&&y<=u||isNaN(y))&&(S>=b&&S<=w||isNaN(S))&&(a[s++]=p),p++}}h=!0}}if(!h)if(1===i)for(v=0;v=l&&y<=u||isNaN(y))&&(a[s++]=E)}else for(v=0;vt[k][1])&&(A=!1)}A&&(a[s++]=this.getRawIndex(v))}return sw[1]&&(w[1]=x)}}}return o},k.downSample=function(t,e,n,i){for(var r=R(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),c=o[t],l=this.count(),u=this._chunkSize,h=r._rawExtent[t],p=new(x(this))(l),d=0,f=0;fl-f&&(s=l-f,a.length=s);for(var g=0;gh[1]&&(h[1]=_),p[d++]=b}return r._count=d,r._indices=p,r.getRawIndex=P,r},k.getItemModel=function(t){var e=this.hostModel;return new o(this.getRawDataItem(t),e,e&&e.ecModel)},k.diff=function(t){var e=this;return new a(t?t.getIndices():[],this.getIndices(),(function(e){return I(t,e)}),(function(t){return I(e,t)}))},k.getVisual=function(t){var e=this._visual;return e&&e[t]},k.setVisual=function(t,e){if(d(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},k.setLayout=function(t,e){if(d(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},k.getLayout=function(t){return this._layout[t]},k.getItemLayout=function(t){return this._itemLayouts[t]},k.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?r.extend(this._itemLayouts[t]||{},e):e},k.clearItemLayouts=function(){this._itemLayouts.length=0},k.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},k.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,d(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},k.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var B=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};k.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(B,e)),this._graphicEls[t]=e},k.getItemGraphicEl=function(t){return this._graphicEls[t]},k.eachItemGraphicEl=function(t,e){r.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},k.cloneShallow=function(t){if(!t){var e=r.map(this.dimensions,this.getDimensionInfo,this);t=new A(e,this.hostModel)}if(t._storage=this._storage,E(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?P:C,t},k.wrapMethod=function(t,e){var n=this[t];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(r.slice(arguments)))})},k.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],k.CHANGABLE_METHODS=["filterSelf","selectRange"];var z=A;t.exports=z},"620b":function(t,e,n){var i=n("401b"),r=i.distance;function o(t,e,n,i,r,o,a){var s=.5*(n-t),c=.5*(i-e);return(2*(e-n)+s+c)*a+(-3*(e-n)-2*s-c)*o+s*r+e}function a(t,e){for(var n=t.length,i=[],a=0,s=1;sn-2?n-1:d+1],h=t[d>n-3?n-1:d+2]);var m=f*f,v=f*m;i.push([o(l[0],g[0],u[0],h[0],f,m,v),o(l[1],g[1],u[1],h[1],f,m,v)])}return i}t.exports=a},"625e":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=".",a="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};return t&&(t=t.split(o),e.main=t[0]||"",e.sub=t[1]||""),e}function c(t){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function l(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r.extend(n.prototype,t),n.extend=this.extend,n.superCall=p,n.superApply=d,r.inherits(n,this),n.superClass=e,n}}var u=0;function h(t){var e=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function p(t,e){var n=r.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function d(t,e,n){return this.superClass.prototype[e].apply(t,n)}function f(t,e){e=e||{};var n={};function i(t){var e=n[t.main];return e&&e[a]||(e=n[t.main]={},e[a]=!0),e}if(t.registerClass=function(t,e){if(e)if(c(e),e=s(e),e.sub){if(e.sub!==a){var r=i(e);r[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[a]&&(r=e?r[e]:null),i&&!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=[],i=n[t.main];return i&&i[a]?r.each(i,(function(t,n){n!==a&&e.push(t)})):e.push(i),e},t.hasClass=function(t){return t=s(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(n,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){t=s(t);var e=n[t.main];return e&&e[a]},t.parseClassType=s,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var n=o.call(this,e);return t.registerClass(n,e.type)})}return t}function g(t,e){}e.parseClassType=s,e.enableClassExtend=l,e.enableClassCheck=h,e.enableClassManagement=f,e.setReadOnly=g},"627c":function(t,e,n){var i=n("3eba"),r=n("2306"),o=n("f934"),a=o.getLayoutRect;i.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"}}}),i.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),c=t.get("textAlign"),l=t.get("textBaseline"),u=new r.Text({style:r.setTextStyle({},o,{text:t.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),h=u.getBoundingRect(),p=t.get("subtext"),d=new r.Text({style:r.setTextStyle({},s,{text:p,textFill:s.getTextColor(),y:h.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);u.silent=!f&&!m,d.silent=!g&&!m,f&&u.on("click",(function(){window.open(f,"_"+t.get("target"))})),g&&d.on("click",(function(){window.open(g,"_"+t.get("subtarget"))})),u.eventData=d.eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),p&&i.add(d);var v=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=v.width,y.height=v.height;var _=a(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));c||(c=t.get("left")||t.get("right"),"middle"===c&&(c="center"),"right"===c?_.x+=_.width:"center"===c&&(_.x+=_.width/2)),l||(l=t.get("top")||t.get("bottom"),"center"===l&&(l="middle"),"bottom"===l?_.y+=_.height:"middle"===l&&(_.y+=_.height/2),l=l||"top"),i.attr("position",[_.x,_.y]);var b={textAlign:c,textVerticalAlign:l};u.setStyle(b),d.setStyle(b),v=i.getBoundingRect();var x=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var O=new r.Rect({shape:{x:v.x-x[3],y:v.y-x[0],width:v.width+x[1]+x[3],height:v.height+x[0]+x[2],r:t.get("borderRadius")},style:w,silent:!0});r.subPixelOptimizeRect(O),i.add(O)}}})},6569:function(t,e,n){var i=n("6d8b"),r=n("e0d3");function o(t){a(t),s(t)}function a(t){if(!t.parallel){var e=!1;i.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function s(t){var e=r.normalizeToArray(t.parallelAxis);i.each(e,(function(e){if(i.isObject(e)){var n=e.parallelIndex||0,o=r.normalizeToArray(t.parallel)[n];o&&o.parallelAxisDefault&&i.merge(e,o.parallelAxisDefault,!1)}}))}t.exports=o},6582:function(t,e,n){var i=n("cccd"),r={seriesType:"lines",plan:i(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;function r(r,o){var a=[];if(i){var s,c=r.end-r.start;if(n){for(var l=0,u=r.start;u in ref");e=this.props[e]}e.collection?o(this,e,t):a(this,e,t)},s.prototype.ensureRefsCollection=function(t,e){var n=t[e.name];return i.isExtended(n)||o(this,e,t),n},s.prototype.ensureBound=function(t,e){r(t,e)||this.bind(t,e)},s.prototype.unset=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?this.ensureRefsCollection(t,e).remove(n):t[e.name]=void 0)},s.prototype.set=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?this.ensureRefsCollection(t,e).add(n):t[e.name]=n)},t.exports=s},"66a4":function(t,e,n){var i=n("6d8b");function r(t){var e=t&&t.timeline;i.isArray(e)||(e=e?[e]:[]),i.each(e,(function(t){t&&o(t)}))}function o(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),a(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}i.each(t.data||[],(function(t){i.isObject(t)&&!i.isArray(t)&&(!s(t,"value")&&s(t,"name")&&(t.value=t.name),a(t))}))}function a(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},o=r.normal||(r.normal={}),a={normal:1,emphasis:1};i.each(r,(function(t,e){a[e]||s(o,e)||(o[e]=t)})),n.label&&!s(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function s(t,e){return t.hasOwnProperty(e)}t.exports=r},"66fc":function(t,e,n){var i=n("6d8b"),r=n("84ce"),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,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},i.inherits(o,r);var a=o;t.exports=a},6730:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("e7a5");var i={"&":"&","<":"<",">":">",'"':""","'":"'"};function r(t){return t=""+t,t&&t.replace(/[&<>"']/g,(function(t){return i[t]}))}},"675a":function(t,e){function n(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=o[i]);for(var a=0;a0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function y(t,e,n,i,r,s,l,u){var h=e.getItemVisual(n,"color"),p=e.getItemVisual(n,"opacity"),d=i.getModel("itemStyle"),f=i.getModel("emphasis.itemStyle").getBarItemStyle();u||t.setShape("r",d.get("barBorderRadius")||0),t.useStyle(o.defaults({fill:h,opacity:p},d.getBarItemStyle()));var g=i.getShallow("cursor");g&&t.attr("cursor",g);var m=l?r.height>0?"bottom":"top":r.width>0?"left":"right";u||c(t.style,f,i,h,s,n,m),a.setHoverStyle(t,f)}function _(t,e){var n=t.get(p)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}var b=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__valueIdx,o=0;oe+u&&l>i+u&&l>a+u||lt+u&&c>n+u&&c>o+u||c0&&l>0&&!p&&(s=0),s<0&&l<0&&!d&&(l=0));var m=e.ecModel;if(m&&"time"===a){var v,y=u("bar",m);if(r.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var _=h(y),b=g(s,l,e,_);s=b.min,l=b.max}}return[s,l]}function g(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],s=p(i,n.axis);if(void 0===s)return{min:t,max:e};var c=1/0;r.each(s,(function(t){c=Math.min(t.offset,c)}));var l=-1/0;r.each(s,(function(t){l=Math.max(t.offset+t.width,l)})),c=Math.abs(c),l=Math.abs(l);var u=c+l,h=e-t,d=1-(c+l)/a,f=h/d-h;return e+=f*(l/u),t-=f*(c/u),{min:t,max:e}}function m(t,e){var n=f(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function v(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new o(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(s.getClass(e)||a).create(t)}}function y(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function _(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"===typeof e?(e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e),e):"function"===typeof e?function(i,r){return null!=n&&(r=i-n),e(b(t,i),r)}:function(e){return t.scale.getLabel(e)}}function b(t,e){return"category"===t.type?t.scale.getLabel(e):e}function x(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===t.type,a=n.getExtent();o?r=n.count():(i=n.getTicks(),r=i.length);var s,c=t.getLabelModel(),l=_(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;hn.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},y.getPipeline=function(t){return this._pipelineMap.get(t)},y.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},y.restorePipelines=function(t){var e=this,n=e._pipelineMap=s();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),P(e,t,t.dataTask)}))},y.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;r(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&x(this,i,r,e,n),i.overallReset&&w(this,i,r,e,n)}),this)},y.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,P(this,e,r)},y.performDataProcessorTasks=function(t,e){_(this,this._dataProcessorHandlers,t,e,{block:!0})},y.performVisualTasks=function(t,e,n){_(this,this._visualHandlers,t,e,n)},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 b=y.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function x(t,e,n,i,r){var o=n.seriesTaskMap||(n.seriesTaskMap=s()),a=e.seriesType,c=e.getTargetSeries;function l(n){var a=n.uid,s=o.get(a)||o.set(a,u({plan:k,reset:T,count:C}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},P(t,n,s)}e.createOnAllSeries?i.eachRawSeries(l):a?i.eachRawSeriesByType(a,l):c&&c(i,r).each(l);var h=t._pipelineMap;o.each((function(t,e){h.get(e)||(t.dispose(),o.removeKey(e))}))}function w(t,e,n,i,o){var a=n.overallTask=n.overallTask||u({reset:O});a.context={ecModel:i,api:o,overallReset:e.overallReset,scheduler:t};var c=a.agentStubMap=a.agentStubMap||s(),l=e.seriesType,h=e.getTargetSeries,p=!0,d=e.modifyOutputEnd;function f(e){var n=e.uid,i=c.get(n);i||(i=c.set(n,u({reset:S,onDirty:A})),a.dirty()),i.context={model:e,overallProgress:p,modifyOutputEnd:d},i.agent=a,i.__block=p,P(t,e,i)}l?i.eachRawSeriesByType(l,f):h?h(i,o).each(f):(p=!1,r(i.getSeries(),f));var g=t._pipelineMap;c.each((function(t,e){g.get(e)||(t.dispose(),a.dirty(),c.removeKey(e))}))}function O(t){t.overallReset(t.ecModel,t.api,t.payload)}function S(t,e){return t.overallProgress&&E}function E(){this.agent.dirty(),this.getDownstream().dirty()}function A(){this.agent&&this.agent.dirty()}function k(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function T(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=m(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?o(e,(function(t,e){return M(e)})):j}var j=M(0);function M(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=0;c--)if(i[c]<=e)break;c=Math.min(c,r-2)}else{for(var c=o;ce)break;c=Math.min(c-1,r-2)}a.lerp(t.position,n[c],n[c+1],(e-i[c])/(i[c+1]-i[c]));var l=n[c+1][0]-n[c][0],u=n[c+1][1]-n[c][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=c,this._lastFramePercent=e,t.ignore=!1}},r.inherits(s,o);var l=s;t.exports=l},"6acf":function(t,e,n){var i=n("eda2"),r=n("dcb3"),o=n("2306"),a=n("ff2e"),s=n("1687"),c=n("fab2"),l=n("6679"),u=r.extend({makeElOption:function(t,e,n,r,o){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var c,l=s.polar,u=l.getOtherAxis(s),d=u.getExtent();c=s["dataTo"+i.capitalFirst(s.dim)](e);var f=r.get("type");if(f&&"none"!==f){var g=a.buildElStyle(r),m=p[f](s,l,c,d,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=r.get("label.margin"),y=h(e,n,r,l,v);a.buildLabelElOption(t,n,r,o,y)}});function h(t,e,n,i,r){var a=e.axis,l=a.dataToCoord(t),u=i.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var h,p,d,f=i.getRadiusAxis().getExtent();if("radius"===a.dim){var g=s.create();s.rotate(g,g,u),s.translate(g,g,[i.cx,i.cy]),h=o.applyTransform([l,-r],g);var m=e.getModel("axisLabel").get("rotate")||0,v=c.innerTextLayout(u,m*Math.PI/180,-1);p=v.textAlign,d=v.textVerticalAlign}else{var y=f[1];h=i.coordToPoint([y+r,l]);var _=i.cx,b=i.cy;p=Math.abs(h[0]-_)/y<.3?"center":h[0]>_?"left":"right",d=Math.abs(h[1]-b)/y<.3?"middle":h[1]>b?"top":"bottom"}return{position:h,align:p,verticalAlign:d}}var p={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:a.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var o=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:a.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-o/2)*s,(o/2-n)*s)}:{type:"Sector",shape:a.makeSectorShape(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};l.registerAxisPointerClass("PolarAxisPointer",u);var d=u;t.exports=d},"6b8b":function(t,e,n){"use strict";function i(t,e){if(t.ownerDocument!==e.ownerDocument)try{return e.ownerDocument.importNode(t,!0)}catch(n){}return t}function r(t,e){return e.appendChild(i(t,e))}function o(t,e){return r(e,t),t}n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return b})),n.d(e,"f",(function(){return E})),n.d(e,"i",(function(){return B})),n.d(e,"j",(function(){return y})),n.d(e,"k",(function(){return H})),n.d(e,"g",(function(){return T})),n.d(e,"h",(function(){return j}));var a=2,s={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":a,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":a,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function c(t,e){return s[e]?t.style[e]:t.getAttributeNS(null,e)}function l(t,e,n){var i=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=s[i];r?(r===a&&"number"===typeof n&&(n=String(n)+"px"),t.style[i]=n):t.setAttributeNS(null,e,n)}function u(t,e){var n,i,r=Object.keys(e);for(n=0,i;i=r[n];n++)l(t,i,e[i])}function h(t,e,n){if("string"===typeof e){if(void 0===n)return c(t,e);l(t,e,n)}else u(t,e);return t}function p(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n"+t+"",e=!0);var n=S(t);if(!e)return n;var i=document.createDocumentFragment(),r=n.firstChild;while(r.firstChild)i.appendChild(r.firstChild);return i}function S(t){var e;return e=new DOMParser,e.async=!1,e.parseFromString(t,"text/xml")}function E(t,e){var n;return"<"===t.charAt(0)?(n=O(t).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(x.svg,t),e&&h(n,e),n}var A=E("svg");function k(t,e){var n,i,r=Object.keys(e);for(n=0;i=r[n];n++)t[i]=e[i];return t}function T(t,e,n,i,r,o){var a=A.createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return k(a,t);case 6:return k(a,{a:t,b:e,c:n,d:i,e:r,f:o})}}function j(t){return t?A.createSVGTransformFromMatrix(t):A.createSVGTransform()}var M=/([&<>]{1})/g,C=/([\n\r"]{1})/g,P={"&":"&","<":"<",">":">",'"':"'"};function I(t,e){function n(t,e){return P[e]||e}return t.replace(e,n)}function D(t,e){var n,i,r,o,a;switch(t.nodeType){case 3:e.push(I(t.textContent,M));break;case 1:if(e.push("<",t.tagName),t.hasAttributes())for(r=t.attributes,n=0,i=r.length;n"),a=t.childNodes,n=0,i=a.length;n")}else e.push("/>");break;case 8:e.push("\x3c!--",I(t.nodeValue,M),"--\x3e");break;case 4:e.push("");break;default:throw new Error("unable to handle node "+t.nodeType)}return e}function R(t,e){var n=O(e);if(_(t),e){N(n)||(n=n.documentElement);for(var i=z(n.childNodes),o=0;o=0;a--)o=i.merge(o,e[a],!0);t.defaultOption=o}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 i.each(f.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=i.map(e,(function(t){return c(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}s(f,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(f),o.enableTopologicalTravel(f,g),i.mixin(f,p);var m=f;t.exports=m},"6cc5":function(t,e,n){var i=n("6d8b"),r=n("401b"),o=n("1687"),a=n("9850"),s=n("0cde"),c=r.applyTransform;function l(){s.call(this)}function u(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new l,this._rawTransformable=new l,this._center,this._zoom}function h(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}i.mixin(l,s),u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new a(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new a(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new a(t,e,n,i)),o.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,n=t.y+t.height/2;return[e,n]},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,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=r.applyTransform([],i,t),n=r.applyTransform([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),o.copy(this.transform||(this.transform=[]),e.transform||o.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?c(n,t,i):r.copy(n,t)},pointToData:function(t){var e=this.invTransform;return e?c([],t,e):[t[0],t[1]]},convertToPixel:i.curry(h,"dataToPoint"),convertFromPixel:i.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},i.mixin(u,s);var p=u;t.exports=p},"6cd8":function(t,e,n){var i=n("6d8b"),r=n("2306"),o=n("1418"),a=n("22da"),s=a.radialCoordinate,c=n("3eba"),l=n("e263"),u=n("6cc5"),h=n("01ef"),p=n("4a01"),d=n("c526"),f=d.onIrrelevantElement,g=c.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new r.Group,this._controller=new p(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(t),this._updateController(t,e,n);var c=this._data,l={expandAndCollapse:t.get("expandAndCollapse"),layout:s,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(c).add((function(e){m(r,e)&&y(r,e,null,a,t,l)})).update((function(e,n){var i=c.getItemGraphicEl(n);m(r,e)?y(r,e,i,a,t,l):i&&_(c,n,i,a,t,l)})).remove((function(e){var n=c.getItemGraphicEl(e);n&&_(c,e,n,a,t,l)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===l.expandAndCollapse&&r.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each((function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],r=[];l.fromPoints(n,i,r),r[0]-i[0]===0&&(r[0]+=1,i[0]-=1),r[1]-i[1]===0&&(r[1]+=1,i[1]-=1);var o=t.coordinateSystem=new u;o.zoomLimit=t.get("scaleLimit"),o.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),o.setCenter(t.get("center")),o.setZoom(t.get("zoom")),this.group.attr({position:o.position,scale:o.scale}),this._viewCoordSys=o},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!f(e,n,t)})),i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){h.updateViewOnPan(r,e.dx,e.dy),n.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),n.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(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl((function(t,e){t.attr("scale",i)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1,o=e.getZoom(),a=(o-1)*n+1;return a/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function m(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function v(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function y(t,e,n,a,s,c){var l=!n,u=t.tree.getNodeByDataIndex(e),h=u.getModel(),p=(c=v(u,h,c),t.tree.root),d=u.parentNode===p?u:u.parentNode||u,f=t.getItemGraphicEl(d.dataIndex),g=d.getLayout(),m=f?{x:f.position[0],y:f.position[1],rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:g,y=u.getLayout();l?(n=new o(t,e,c),n.attr("position",[m.x,m.y])):n.updateData(t,e,c),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=y.rawX,n.__radialRawY=y.rawY,a.add(n),t.setItemGraphicEl(e,n),r.updateProps(n,{position:[y.x,y.y]},s);var _=n.getSymbolPath();if("radial"===c.layout){var x,w,O=p.children[0],S=O.getLayout(),E=O.children.length;if(y.x===S.x&&!0===u.isExpand){var A={};A.x=(O.children[0].getLayout().x+O.children[E-1].getLayout().x)/2,A.y=(O.children[0].getLayout().y+O.children[E-1].getLayout().y)/2,x=Math.atan2(A.y-S.y,A.x-S.x),x<0&&(x=2*Math.PI+x),w=A.xS.x,w||(x-=Math.PI));var k=w?"left":"right";_.setStyle({textPosition:k,textRotation:-x,textOrigin:"center",verticalAlign:"middle"})}if(u.parentNode&&u.parentNode!==p){var T=n.__edge;T||(T=n.__edge=new r.BezierCurve({shape:b(c,m,m),style:i.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),r.updateProps(T,{shape:b(c,g,y),style:{opacity:1}},s),a.add(T)}}function _(t,e,n,i,o,a){var s,c=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=c.getModel(),h=(a=v(c,u,a),c.parentNode===l?c:c.parentNode||c);while(s=h.getLayout(),null==s)h=h.parentNode===l?h:h.parentNode||h;r.updateProps(n,{position:[s.x+1,s.y+1]},o,(function(){i.remove(n),t.setItemGraphicEl(e,null)})),n.fadeOut(null,{keepLabel:!0});var p=n.__edge;p&&r.updateProps(p,{shape:b(a,s,s),style:{opacity:0}},o,(function(){i.remove(p)}))}function b(t,e,n){var i,r,o,a,c,l,u,h,p=t.orient;if("radial"===t.layout){c=e.rawX,u=e.rawY,l=n.rawX,h=n.rawY;var d=s(c,u),f=s(c,u+(h-u)*t.curvature),g=s(l,h+(u-h)*t.curvature),m=s(l,h);return{x1:d.x,y1:d.y,x2:m.x,y2:m.y,cpx1:f.x,cpy1:f.y,cpx2:g.x,cpy2:g.y}}return c=e.x,u=e.y,l=n.x,h=n.y,"LR"!==p&&"RL"!==p||(i=c+(l-c)*t.curvature,r=u,o=l+(c-l)*t.curvature,a=h),"TB"!==p&&"BT"!==p||(i=c,r=u+(h-u)*t.curvature,o=l,a=h+(u-h)*t.curvature),{x1:c,y1:u,x2:l,y2:h,cpx1:i,cpy1:r,cpx2:o,cpy2:a}}t.exports=g},"6d8b":function(t,e){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,o=Array.prototype,a=o.forEach,s=o.filter,c=o.slice,l=o.map,u=o.reduce,h={};function p(t,e){"createCanvas"===t&&(y=null),h[t]=e}function d(t){if(null==t||"object"!==typeof t)return t;var e=t,o=r.call(t);if("[object Array]"===o){if(!Z(t)){e=[];for(var a=0,s=t.length;a=0;o--)i.push(r[o])}}e.eachAfter=n,e.eachBefore=i},"6de3":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return h}));var i=n("87f2");function r(t,e){return t&&e?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):-1}function o(t,e,n,i){if("undefined"===typeof i&&(i=5),!t||!e||!n)return!1;var o=(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x),a=r(t,e);return Math.abs(o/a)<=i}var a=2;function s(t,e){var n;return n=Object(i["l"])(t)?t:[t,e],c(n)?"h":!!l(n)&&"v"}function c(t,e){var n;n=Object(i["l"])(t)?t:[t,e];var r=n.slice().shift();return Object(i["d"])(n,(function(t){return Math.abs(r.y-t.y)<=a}))}function l(t,e){var n;n=Object(i["l"])(t)?t:[t,e];var r=n.slice().shift();return Object(i["d"])(n,(function(t){return Math.abs(r.x-t.x)<=a}))}function u(t,e,n){return n=n||0,t.x>e.x-n&&t.y>e.y-n&&t.x=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function s(t){var e=u(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return r(n,(function(t,n){for(var r=e.length-1;r>=0;r--){t=e[r][n];if(t){i[n]=t;break}}})),i}function c(t){t[o]=null}function l(t){return u(t).length}function u(t){var e=t[o];return e||(e=t[o]=[{}]),e}e.push=a,e.pop=s,e.clear=c,e.count=l},7023:function(t,e,n){var i=n("6d8b"),r={updateSelectedMap:function(t){this._targetList=i.isArray(t)?t.slice():[],this._selectTargetMap=i.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),i.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};t.exports=r},7024:function(t,e,n){"use strict";n.d(e,"a",(function(){return Fm}));var i=n("3fb5"),r=n.n(i),o=n("e6a4"),a=n("b392");function s(t){a["a"].call(this,t),this.on("import.parse.complete",(function(t){t.error||this._collectIds(t.definitions,t.elementsById)}),this),this.on("diagram.destroy",(function(){this.get("moddle").ids.clear()}),this)}r()(s,a["a"]),s.prototype._createModdle=function(t){var e=a["a"].prototype._createModdle.call(this,t);return e.ids=new o["a"]([32,36,1]),e},s.prototype._collectIds=function(t,e){var n,i=t.$model,r=i.ids;for(n in r.clear(),e)r.claim(n,e[n])};var c=n("88eb"),l=n("87f2"),u=n("e506");function h(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.altKey}function p(t){return!t.altKey&&(t.ctrlKey||t.metaKey)}function d(t,e){return t=Object(l["l"])(t)?t:[t],-1!==t.indexOf(e.key)||-1!==t.indexOf(e.keyCode)}function f(t){return t.shiftKey}var g="keyboard.keydown",m="keyboard.keyup",v="input-handle-modified-keys",y=1e3;function _(t,e){var n=this;this._config=t||{},this._eventBus=e,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),e.on("diagram.destroy",(function(){n._fire("destroy"),n.unbind()})),e.on("diagram.init",(function(){n._fire("init")})),e.on("attach",(function(){t&&t.bindTo&&n.bind(t.bindTo)})),e.on("detach",(function(){n.unbind()}))}function b(t){return t&&(Object(u["i"])(t,"input, textarea")||"true"===t.contentEditable)}_.$inject=["config.keyboard","eventBus"],_.prototype._keydownHandler=function(t){this._keyHandler(t,g)},_.prototype._keyupHandler=function(t){this._keyHandler(t,m)},_.prototype._keyHandler=function(t,e){var n;if(!this._isEventIgnored(t)){var i={keyEvent:t};n=this._eventBus.fire(e||g,i),n&&t.preventDefault()}},_.prototype._isEventIgnored=function(t){return b(t.target)&&this._isModifiedKeyIgnored(t)},_.prototype._isModifiedKeyIgnored=function(t){if(!p(t))return!0;var e=this._getAllowedModifiers(t.target);return-1===e.indexOf(t.key)},_.prototype._getAllowedModifiers=function(t){var e=Object(u["e"])(t,"["+v+"]",!0);return!e||this._node&&!this._node.contains(e)?[]:e.getAttribute(v).split(",")},_.prototype.bind=function(t){this.unbind(),this._node=t,u["h"].bind(t,"keydown",this._keydownHandler,!0),u["h"].bind(t,"keyup",this._keyupHandler,!0),this._fire("bind")},_.prototype.getBinding=function(){return this._node},_.prototype.unbind=function(){var t=this._node;t&&(this._fire("unbind"),u["h"].unbind(t,"keydown",this._keydownHandler,!0),u["h"].unbind(t,"keyup",this._keyupHandler,!0)),this._node=null},_.prototype._fire=function(t){this._eventBus.fire("keyboard."+t,{node:this._node})},_.prototype.addListener=function(t,e,n){Object(l["n"])(t)&&(n=e,e=t,t=y),this._eventBus.on(n||g,t,e)},_.prototype.removeListener=function(t,e){this._eventBus.off(e||g,t)},_.prototype.hasModifier=h,_.prototype.isCmd=p,_.prototype.isShift=f,_.prototype.isKey=d;var x=500,w=67,O=86,S=89,E=90,A=["c","C",w],k=["v","V",O],T=["y","Y",S],j=["z","Z",E];function M(t,e){var n=this;t.on("editorActions.init",x,(function(t){var i=t.editorActions;n.registerBindings(e,i)}))}M.$inject=["eventBus","keyboard"],M.prototype.registerBindings=function(t,e){function n(n,i){e.isRegistered(n)&&t.addListener(i)}n("undo",(function(t){var n=t.keyEvent;if(p(n)&&!f(n)&&d(j,n))return e.trigger("undo"),!0})),n("redo",(function(t){var n=t.keyEvent;if(p(n)&&(d(T,n)||d(j,n)&&f(n)))return e.trigger("redo"),!0})),n("copy",(function(t){var n=t.keyEvent;if(p(n)&&d(A,n))return e.trigger("copy"),!0})),n("paste",(function(t){var n=t.keyEvent;if(p(n)&&d(k,n))return e.trigger("paste"),!0})),n("stepZoom",(function(t){var n=t.keyEvent;if(d(["+","Add","="],n)&&p(n))return e.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(t){var n=t.keyEvent;if(d(["-","Subtract"],n)&&p(n))return e.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(t){var n=t.keyEvent;if(d("0",n)&&p(n))return e.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(t){var n=t.keyEvent;if(d(["Backspace","Delete","Del"],n))return e.trigger("removeSelection"),!0}))};var C={__init__:["keyboard","keyboardBindings"],keyboard:["type",_],keyboardBindings:["type",M]},P={moveSpeed:50,moveSpeedAccelerated:200};function I(t,e,n){var i=this;function r(t){var n=t.keyEvent,r=i._config;if(e.isCmd(n)&&e.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var o,a=e.isShift(n)?r.moveSpeedAccelerated:r.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":o="left";break;case"ArrowUp":case"Up":o="up";break;case"ArrowRight":case"Right":o="right";break;case"ArrowDown":case"Down":o="down";break}return i.moveCanvas({speed:a,direction:o}),!0}}this._config=Object(l["a"])({},P,t||{}),e.addListener(r),this.moveCanvas=function(t){var e=0,i=0,r=t.speed,o=r/Math.min(Math.sqrt(n.viewbox().scale),1);switch(t.direction){case"left":e=o;break;case"up":i=o;break;case"right":e=-o;break;case"down":i=-o;break}n.scroll({dx:e,dy:i})}}I.$inject=["config.keyboardMove","keyboard","canvas"];var D={__depends__:[C],__init__:["keyboardMove"],keyboardMove:["type",I]},R=n("041f"),L=n("4010f");function N(t){c["a"].call(this,t)}r()(N,c["a"]),N.prototype._navigationModules=[D,R["a"],L["a"]],N.prototype._modules=[].concat(c["a"].prototype._modules,N.prototype._navigationModules);var B=n("39c0"),z=n("c8b5"),F=n.n(z),V=n("1025"),H=.2,G=4,q=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function W(){}function U(t,e){return e.get(t,!1)}function $(t){t.preventDefault(),"function"===typeof t.stopPropagation?t.stopPropagation():t.srcEvent&&"function"===typeof t.srcEvent.stopPropagation&&t.srcEvent.stopPropagation(),"function"===typeof t.stopImmediatePropagation&&t.stopImmediatePropagation()}function Y(t){function e(e){Object(l["i"])(q,(function(e){u["h"].bind(t,e,$,!0)}))}function n(e){setTimeout((function(){Object(l["i"])(q,(function(e){u["h"].unbind(t,e,$,!0)}))}),500)}u["h"].bind(t,"touchstart",e,!0),u["h"].bind(t,"touchend",n,!0),u["h"].bind(t,"touchcancel",n,!0);var i=new F.a.Manager(t,{inputClass:F.a.TouchInput,recognizers:[],domEvents:!0}),r=new F.a.Tap,o=new F.a.Pan({threshold:10}),a=new F.a.Press,s=new F.a.Pinch,c=new F.a.Tap({event:"doubletap",taps:2});return s.requireFailure(o),s.requireFailure(a),i.add([o,a,s,c,r]),i.reset=function(t){var e=this.recognizers,n=this.session;n.stopped||(W("recognizer","stop"),i.stop(t),setTimeout((function(){var t,i;for(W("recognizer","reset"),t=0;i=e[t];t++)i.reset(),i.state=8;n.curRecognizer=null}),0))},i.on("hammer.input",(function(t){t.srcEvent.defaultPrevented&&i.reset(!0)})),i}function Z(t,e,n,i,r){var o,a=U("dragging",t),s=U("move",t),c=U("contextPad",t),l=U("palette",t);function h(t,e){return function(n){W("element",t,n);var o=p(n.target),a=o&&i.get(o);return e&&(n.srcEvent.button=e),r.fire(t,n,a)}}function p(t){var e=Object(u["e"])(t,"svg, .djs-element",!0);return e}function d(t){function n(t){W("canvas","grab start");var n=0,i=0;function r(t){var r=t.deltaX-n,o=t.deltaY-i;e.scroll({dx:r,dy:o}),n=t.deltaX,i=t.deltaY}function a(t){o.off("panmove",r),o.off("panend",a),o.off("pancancel",a),W("canvas","grab end")}o.on("panmove",r),o.on("panend",a),o.on("pancancel",a)}function r(t){var r=p(t.target),o=r&&i.get(r);if(s&&e.getRootElement()!==o)return W("element","move start",o,t,!0),s.start(t,o,!0);n(t)}function a(t){W("canvas","zoom start");var n=e.zoom(),i=t.center;function r(t){var r=1-(1-t.scale)/1.5,o=Math.max(H,Math.min(G,r*n));e.zoom(o,i),$(t)}function a(t){o.off("pinchmove",r),o.off("pinchend",a),o.off("pinchcancel",a),o.reset(!0),W("canvas","zoom end")}o.on("pinchmove",r),o.on("pinchend",a),o.on("pinchcancel",a)}o=Y(t),o.on("tap",h("element.click")),o.on("doubletap",h("element.dblclick",1)),o.on("panstart",r),o.on("press",r),o.on("pinchstart",a)}a&&n.on("drag.move",(function(t){var e=t.originalEvent;if(e&&!(e instanceof MouseEvent)){var n=Object(V["c"])(e),r=document.elementFromPoint(n.x,n.y),o=p(r),s=o&&i.get(o);s!==t.hover&&(t.hover&&a.out(t),s&&(a.hover({element:s,gfx:o}),t.hover=s,t.hoverGfx=o))}})),c&&n.on("contextPad.create",(function(t){var e=t.pad.html,n=Y(e);n.on("panstart",(function(t){W("context-pad","panstart",t),c.trigger("dragstart",t,!0)})),n.on("press",(function(t){W("context-pad","press",t),c.trigger("dragstart",t,!0)})),n.on("tap",(function(t){W("context-pad","tap",t),c.trigger("click",t)}))})),l&&n.on("palette.create",(function(t){var e=t.container,n=Y(e);n.on("panstart",(function(t){W("palette","panstart",t),l.trigger("dragstart",t,!0)})),n.on("press",(function(t){W("palette","press",t),l.trigger("dragstart",t,!0)})),n.on("tap",(function(t){W("palette","tap",t),l.trigger("click",t)}))})),n.on("canvas.init",(function(t){d(t.svg)}))}Z.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"];var X=n("6b8b");function K(t,e){var n=this;e.on("canvas.init",(function(t){n.addBBoxMarker(t.svg)}))}K.$inject=["canvas","eventBus"],K.prototype.addBBoxMarker=function(t){var e={fill:"none",class:"outer-bound-marker"},n=Object(X["f"])("rect");Object(X["b"])(n,{x:-1e4,y:1e4,width:10,height:10}),Object(X["b"])(n,e),Object(X["a"])(t,n);var i=Object(X["f"])("rect");Object(X["b"])(i,{x:1e4,y:1e4,width:10,height:10}),Object(X["b"])(i,e),Object(X["a"])(t,i)};var Q={__depends__:[B["a"]],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",Z],touchFix:["type",K]},J={__depends__:[Q]};function tt(t){return t&&t[t.length-1]}function et(t){return t.y}function nt(t){return t.x}var it={left:nt,center:nt,right:function(t){return t.x+t.width},top:et,middle:et,bottom:function(t){return t.y+t.height}};function rt(t){this._modeling=t}rt.$inject=["modeling"],rt.prototype._getOrientationDetails=function(t){var e=["top","bottom","middle"],n="x",i="width";return-1!==e.indexOf(t)&&(n="y",i="height"),{axis:n,dimension:i}},rt.prototype._isType=function(t,e){return-1!==e.indexOf(t)},rt.prototype._alignmentPosition=function(t,e){var n,i,r,o=this._getOrientationDetails(t),a=o.axis,s=o.dimension,c={},u={},h=!1;function p(t,e){return Math.round((t[a]+e[a]+e[s])/2)}if(this._isType(t,["left","top"]))c[t]=e[0][a];else if(this._isType(t,["right","bottom"]))r=tt(e),c[t]=r[a]+r[s];else if(this._isType(t,["center","middle"])){if(Object(l["i"])(e,(function(t){var e=t[a]+Math.round(t[s]/2);u[e]?u[e].elements.push(t):u[e]={elements:[t],center:e}})),n=Object(l["B"])(u,(function(t){return t.elements.length>1&&(h=!0),t.elements.length})),h)return c[t]=tt(n).center,c;i=e[0],e=Object(l["B"])(e,(function(t){return t[a]+t[s]})),r=tt(e),c[t]=p(i,r)}return c},rt.prototype.trigger=function(t,e){var n=this._modeling,i=Object(l["e"])(t,(function(t){return!(t.waypoints||t.host||t.labelTarget)}));if(!(i.length<2)){var r=it[e],o=Object(l["B"])(i,r),a=this._alignmentPosition(e,o);n.alignElements(o,a)}};var ot={__init__:["alignElements"],alignElements:["type",rt]},at=n("2e42"),st=10,ct=50,lt=250;function ut(t,e,n,i){var r;while(r=pt(t,n,e))n=i(e,n,r);return n}function ht(t){return function(e,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach((function(o){var a=t[o];if(a){var s="x"===o?"width":"height",c=a.margin,l=a.minDistance;r[o]=c<0?Math.min(i[o]+c-e[s]/2,n[o]-l+c):Math.max(i[o]+i[s]+c+e[s]/2,n[o]+l+c)}})),r}}function pt(t,e,n){var i={x:e.x-n.width/2,y:e.y-n.height/2,width:n.width,height:n.height},r=ft(t,n);return Object(l["f"])(r,(function(t){if(t===n)return!1;var e=Object(at["f"])(t,i,st);return"intersect"===e}))}function dt(t,e){function n(e){return e.source===t?1:-1}e||(e={});var i=e.defaultDistance||ct,r=e.direction||"e",o=e.filter,a=e.getWeight||n,s=e.maxDistance||lt,c=e.reference||"start";function u(t,e){return"n"===r?"start"===c?Object(at["b"])(t).top-Object(at["b"])(e).bottom:"center"===c?Object(at["b"])(t).top-Object(at["e"])(e).y:Object(at["b"])(t).top-Object(at["b"])(e).top:"w"===r?"start"===c?Object(at["b"])(t).left-Object(at["b"])(e).right:"center"===c?Object(at["b"])(t).left-Object(at["e"])(e).x:Object(at["b"])(t).left-Object(at["b"])(e).left:"s"===r?"start"===c?Object(at["b"])(e).top-Object(at["b"])(t).bottom:"center"===c?Object(at["e"])(e).y-Object(at["b"])(t).bottom:Object(at["b"])(e).bottom-Object(at["b"])(t).bottom:"start"===c?Object(at["b"])(e).left-Object(at["b"])(t).right:"center"===c?Object(at["e"])(e).x-Object(at["b"])(t).right:Object(at["b"])(e).right-Object(at["b"])(t).right}o||(o=yt);var h=t.incoming.filter(o).map((function(e){var n=a(e),i=n<0?u(e.source,t):u(t,e.source);return{id:e.source.id,distance:i,weight:n}})),p=t.outgoing.filter(o).map((function(e){var n=a(e),i=n>0?u(t,e.target):u(e.target,t);return{id:e.target.id,distance:i,weight:n}})),d=h.concat(p).reduce((function(t,e){return t[e.id+"__weight_"+e.weight]=e,t}),{}),f=Object(l["y"])(d,(function(t,e){var n=e.distance,i=e.weight;return n<0||n>s||(t[String(n)]||(t[String(n)]=0),t[String(n)]+=1*i,(!t.distance||t[t.distance]e.top&&(n=n.concat("n")),t.righte.left&&(n=n.concat("e")),n}function Bt(t){t.invoke(Rt,this)}function zt(t){Dt["a"].call(this,t),this.init()}function Ft(t){zt.call(this,t);var e=this;this.addRule("element.autoResize",(function(t){return e.canResize(t.elements,t.target)}))}function Vt(t,e){Ft.call(this,t),this._modeling=e}Rt.$inject=["eventBus","elementRegistry","modeling","rules"],Object(Pt["a"])(Rt,Dt["a"]),Rt.prototype._getOptimalBounds=function(t,e){var n=this.getOffset(e),i=this.getPadding(e),r=Object(at["b"])(Object(It["b"])(t)),o=Object(at["b"])(e),a={};return r.top-o.topr.threshold)){if(Object(l["a"])(o,{x:Kt(d.x+c.x),y:Kt(d.y+c.y),dx:0,dy:0},{originalEvent:t}),!1===s("start"))return y();r.active=!0,r.keepSelection||(o.previousSelection=n.get(),n.select(null)),r.cursor&&Object(Yt["a"])(r.cursor),e.addMarker(e.getRootElement(),Qt)}Object(V["b"])(t),r.active&&(Object(l["a"])(o,{x:Kt(f.x+c.x),y:Kt(f.y+c.y),dx:Kt(g.x),dy:Kt(g.y)},{originalEvent:t}),s("move"))}function p(t){var e,n=!0;r.active&&(t&&(r.payload.originalEvent=t,Object(V["b"])(t)),n=s("end")),!1===n&&s("rejected"),e=_(!0!==n),s("ended",e)}function d(t){27===t.which&&(Jt(t),y())}function f(e){var n;r.active&&(n=Object(Zt["a"])(t),setTimeout(n,400),Jt(e)),p(e)}function g(t){h(t)}function m(t){var e=r.payload;e.hoverGfx=t.gfx,e.hover=t.element,s("hover")}function v(t){s("out");var e=r.payload;e.hoverGfx=null,e.hover=null}function y(t){var e;if(r){var n=r.active;n&&s("cancel"),e=_(t),n&&s("canceled",e)}}function _(i){var o,a;s("cleanup"),Object(Yt["b"])(),a=r.trapClick?f:p,u["h"].unbind(document,"mousemove",h),u["h"].unbind(document,"dragstart",Jt),u["h"].unbind(document,"selectstart",Jt),u["h"].unbind(document,"mousedown",a,!0),u["h"].unbind(document,"mouseup",a,!0),u["h"].unbind(document,"keyup",d),u["h"].unbind(document,"touchstart",g,!0),u["h"].unbind(document,"touchcancel",y,!0),u["h"].unbind(document,"touchmove",h,!0),u["h"].unbind(document,"touchend",p,!0),t.off("element.hover",m),t.off("element.out",v),e.removeMarker(e.getRootElement(),Qt);var l=r.payload.previousSelection;return!1!==i&&l&&!n.get().length&&c(l),o=r,r=null,o}function b(e,n,i,c){r&&y(!1),"string"===typeof n&&(c=i,i=n,n=null),c=Object(l["a"])({},o,c||{});var _,b,x,w,O,S=c.data||{};w=c.trapClick?f:p,e?(_=Object(V["a"])(e)||e,b=Object(V["c"])(e),Object(V["b"])(e),"dragstart"===_.type&&Jt(_)):(_=null,b={x:0,y:0}),x=a(b),n||(n=x),O=te(_),r=Object(l["a"])({prefix:i,data:S,payload:{},globalStart:b,displacement:Object(Xt["b"])(n,x),localStart:x,isTouch:O},c),c.manual||(O?(u["h"].bind(document,"touchstart",g,!0),u["h"].bind(document,"touchcancel",y,!0),u["h"].bind(document,"touchmove",h,!0),u["h"].bind(document,"touchend",p,!0)):(u["h"].bind(document,"mousemove",h),u["h"].bind(document,"dragstart",Jt),u["h"].bind(document,"selectstart",Jt),u["h"].bind(document,"mousedown",w,!0),u["h"].bind(document,"mouseup",w,!0)),u["h"].bind(document,"keyup",d),t.on("element.hover",m),t.on("element.out",v)),s("init"),c.autoActivate&&h(e,!0)}t.on("diagram.destroy",y),this.init=b,this.move=h,this.hover=m,this.out=v,this.end=p,this.cancel=y,this.context=function(){return r},this.setOptions=function(t){Object(l["a"])(o,t)}}ne.$inject=["eventBus","canvas","selection","elementRegistry"];var ie={__depends__:[Ut,$t["a"]],dragging:["type",ne]};function re(t,e,n){this._canvas=n,this._opts=Object(l["a"])({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},t);var i=this;e.on("drag.move",(function(t){var e=i._toBorderPoint(t);i.startScroll(e)})),e.on(["drag.cleanup"],(function(){i.stopScroll()}))}function oe(t,e,n){return em-3&&(n=Object(at["f"])(r.target,g),a===m-2?"intersect"===n&&(d.pop(),d[d.length-1]=g):"intersect"!==n&&d.push(h)),i.newWaypoints=r.waypoints=s(r,d),l(i,v,t),i.newSegmentStartIndex=o+v,c(t)})),e.on("connectionSegment.move.hover",(function(t){t.context.hover=t.hover,n.addMarker(t.hover,rn)})),e.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(t){var e=t.context.hover;e&&n.removeMarker(e,rn)})),e.on("connectionSegment.move.cleanup",(function(t){var e=t.context,i=e.connection;e.draggerGfx&&Object(X["j"])(e.draggerGfx),n.removeMarker(i,on)})),e.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(t){var e=t.context,n=e.connection;n.waypoints=e.originalWaypoints,c(t)})),e.on("connectionSegment.move.end",(function(t){var e=t.context,n=e.connection,i=e.newWaypoints,r=e.newSegmentStartIndex;i=i.map((function(t){return{original:t.original,x:Math.round(t.x),y:Math.round(t.y)}}));var a=u(i,r),c=a.waypoints,l=s(n,c),h=a.segmentOffset,p={segmentMove:{segmentStartIndex:e.segmentStartIndex,newSegmentStartIndex:r+h}};o.updateWaypoints(n,l,p)}))}hn.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var pn=Math.abs,dn=Math.round;function fn(t,e,n){var i,r;for(n=void 0===n?10:n,i=0;it-On)return e-i+t}return e}function n(t,e){return t.waypoints?Ie(e,t):t.width?{x:wn(t.width/2+t.x),y:wn(t.height/2+t.y)}:void 0}function i(t){var e=t.context,i=e.snapPoints,r=e.connection,o=r.waypoints,a=e.segmentStart,s=e.segmentStartIndex,c=e.segmentEnd,u=e.segmentEndIndex,h=e.axis;if(i)return i;var p=[o[s-1],a,c,o[u+1]];return s<2&&p.unshift(n(r.source,t)),u>o.length-3&&p.unshift(n(r.target,t)),e.snapPoints=i={horizontal:[],vertical:[]},Object(l["i"])(p,(function(t){t&&(t=t.original||t,"y"===h&&i.horizontal.push(t.y),"x"===h&&i.vertical.push(t.x))})),i}function r(t){var e=t.snapPoints,n=t.connection.waypoints,i=t.bendpointIndex;if(e)return e;var r=[n[i-1],n[i+1]];return t.snapPoints=e={horizontal:[],vertical:[]},Object(l["i"])(r,(function(t){t&&(t=t.original||t,e.horizontal.push(t.y),e.vertical.push(t.x))})),e}t.on("connectionSegment.move.move",1500,(function(t){var n,r,o=i(t),a=t.x,s=t.y;if(o){n=e(o.vertical,a),r=e(o.horizontal,s);var c=a-n,u=s-r;Object(l["a"])(t,{dx:t.dx-c,dy:t.dy-u,x:n,y:r}),(c||-1!==o.vertical.indexOf(a))&&_n(t,"x",n),(u||-1!==o.horizontal.indexOf(s))&&_n(t,"y",r)}})),t.on(["connect.hover","connect.move","connect.end"],1500,(function(t){var e=t.context,i=e.hover,r=i&&n(i,t);En(i)&&r&&r.x&&r.y&&(_n(t,"x",r.x),_n(t,"y",r.y))})),t.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(t){var i,o,a=t.context,s=r(a),c=a.hover,u=c&&n(c,t),h=t.x,p=t.y;if(s){i=e(u?s.vertical.concat([u.x]):s.vertical,h),o=e(u?s.horizontal.concat([u.y]):s.horizontal,p);var d=h-i,f=p-o;Object(l["a"])(t,{dx:t.dx-d,dy:t.dy-f,x:t.x-d,y:t.y-f}),(d||-1!==s.vertical.indexOf(h))&&_n(t,"x",i),(f||-1!==s.horizontal.indexOf(p))&&_n(t,"y",o)}}))}function En(t){return t&&!!t.waypoints}Sn.$inject=["eventBus"];var An={__depends__:[ie,ce],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",ze],bendpointMove:["type",We],bendpointMovePreview:["type",nn],connectionSegmentMove:["type",hn],bendpointSnapping:["type",Sn]};function kn(t,e,n,i){function r(t,e){return i.allowed("connection.create",{source:t,target:e})}function o(t,e){return r(e,t)}t.on("connect.hover",(function(t){var e,n=t.context,i=n.start,a=t.hover;if(n.hover=a,e=n.canExecute=r(i,a),!Object(l["o"])(e)){if(!1!==e)return n.source=i,void(n.target=a);e=n.canExecute=o(i,a),Object(l["o"])(e)||!1!==e&&(n.source=a,n.target=i)}})),t.on(["connect.out","connect.cleanup"],(function(t){var e=t.context;e.hover=null,e.source=null,e.target=null,e.canExecute=!1})),t.on("connect.end",(function(t){var e=t.context,i=e.canExecute,r=e.connectionStart,o={x:t.x,y:t.y},a=e.source,s=e.target;if(!i)return!1;var c=null,u={connectionStart:Tn(e)?o:r,connectionEnd:Tn(e)?r:o};Object(l["q"])(i)&&(c=i),e.connection=n.connect(a,s,c,u)})),this.start=function(t,n,i,r){Object(l["q"])(i)||(r=i,i=Object(at["e"])(n)),e.init(t,"connect",{autoActivate:r,data:{shape:n,context:{start:n,connectionStart:i}}})}}function Tn(t){var e=t.hover,n=t.source,i=t.target;return e&&n&&e===n&&n!==i}kn.$inject=["eventBus","dragging","modeling","rules"];var jn=1100,Mn=900,Cn="connect-ok",Pn="connect-not-ok";function In(t,e,n){var i=t.get("connectionPreview",!1);i&&e.on("connect.move",(function(t){var e=t.context,n=e.canExecute,r=e.hover,o=e.source,a=e.start,s=e.startPosition,c=e.target,l=e.connectionStart||s,u=e.connectionEnd||{x:t.x,y:t.y},h=l,p=u;Tn(e)&&(h=u,p=l),i.drawPreview(e,n,{source:o||a,target:c||r,connectionStart:h,connectionEnd:p})})),e.on("connect.hover",Mn,(function(t){var e=t.context,i=t.hover,r=e.canExecute;null!==r&&n.addMarker(i,r?Cn:Pn)})),e.on(["connect.out","connect.cleanup"],jn,(function(t){var e=t.hover;e&&(n.removeMarker(e,Cn),n.removeMarker(e,Pn))})),i&&e.on("connect.cleanup",(function(t){i.cleanUp(t.context)}))}In.$inject=["injector","eventBus","canvas"];var Dn={__depends__:[$t["a"],ce,ie],__init__:["connectPreview"],connect:["type",kn],connectPreview:["type",In]},Rn="djs-connection-preview";function Ln(t,e,n,i){this._canvas=e,this._graphicsFactory=n,this._elementFactory=i,this._connectionDocking=t.get("connectionDocking",!1),this._layouter=t.get("layouter",!1)}function Nn(t){var e={};return function(n){var i=JSON.stringify(n),r=e[i];return r||(r=e[i]=t.apply(null,arguments)),r}}function Bn(t){return Object(l["q"])(t)?t:{}}Ln.$inject=["injector","canvas","graphicsFactory","elementFactory"],Ln.prototype.drawPreview=function(t,e,n){n=n||{};var i,r=t.connectionPreviewGfx,o=t.getConnection,a=n.source,s=n.target,c=n.waypoints,l=n.connectionStart,u=n.connectionEnd,h=n.noLayout,p=n.noCropping,d=n.noNoop,f=this;r||(r=t.connectionPreviewGfx=this.createConnectionPreviewGfx()),Object(X["d"])(r),o||(o=t.getConnection=Nn((function(t,e,n){return f.getConnection(t,e,n)}))),e&&(i=o(e,a,s)),i?(i.waypoints=c||[],this._layouter&&!h&&(i.waypoints=this._layouter.layoutConnection(i,{source:a,target:s,connectionStart:l,connectionEnd:u,waypoints:n.waypoints||i.waypoints})),i.waypoints&&i.waypoints.length||(i.waypoints=[a?Object(at["e"])(a):l,s?Object(at["e"])(s):u]),this._connectionDocking&&(a||s)&&!p&&(i.waypoints=this._connectionDocking.getCroppedWaypoints(i,a,s)),this._graphicsFactory.drawConnection(r,i)):!d&&this.drawNoopPreview(r,n)},Ln.prototype.drawNoopPreview=function(t,e){var n=e.source,i=e.target,r=e.connectionStart||Object(at["e"])(n),o=e.connectionEnd||Object(at["e"])(i),a=this.cropWaypoints(r,o,n,i),s=this.createNoopConnection(a[0],a[1]);Object(X["a"])(t,s)},Ln.prototype.cropWaypoints=function(t,e,n,i){var r=this._graphicsFactory,o=n&&r.getShapePath(n),a=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[t,e]});return t=n&&Object(at["d"])(o,s,!0)||t,e=i&&Object(at["d"])(a,s,!1)||e,[t,e]},Ln.prototype.cleanUp=function(t){t&&t.connectionPreviewGfx&&Object(X["j"])(t.connectionPreviewGfx)},Ln.prototype.getConnection=function(t){var e=Bn(t);return this._elementFactory.createConnection(e)},Ln.prototype.createConnectionPreviewGfx=function(){var t=Object(X["f"])("g");return Object(X["b"])(t,{pointerEvents:"none"}),Object(X["c"])(t).add(Rn),Object(X["a"])(this._canvas.getActiveLayer(),t),t},Ln.prototype.createNoopConnection=function(t,e){var n=Object(X["f"])("polyline");return Object(X["b"])(n,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),Object(X["b"])(n,{points:[t.x,t.y,e.x,e.y]}),n};var zn={__init__:["connectionPreview"],connectionPreview:["type",Ln]},Fn=Math.min,Vn=Math.max;function Hn(t){t.preventDefault()}function Gn(t){t.stopPropagation()}function qn(t){return t.nodeType===Node.TEXT_NODE}function Wn(t){return[].slice.call(t)}function Un(t){this.container=t.container,this.parent=Object(u["g"])('
'),this.content=Object(u["j"])("[contenteditable]",this.parent),this.keyHandler=t.keyHandler||function(){},this.resizeHandler=t.resizeHandler||function(){},this.autoResize=Object(l["b"])(this.autoResize,this),this.handlePaste=Object(l["b"])(this.handlePaste,this)}function $n(t){return t.replace(/\r\n|\r|\n/g,"\n")}function Yn(t,e){this._eventBus=t,this._providers=[],this._textbox=new Un({container:e.getContainer(),keyHandler:Object(l["b"])(this._handleKey,this),resizeHandler:Object(l["b"])(this._handleResize,this)})}Un.prototype.create=function(t,e,n,i){var r=this,o=this.parent,a=this.content,s=this.container;i=this.options=i||{},e=this.style=e||{};var c=Object(l["x"])(e,["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);Object(l["a"])(o.style,{width:t.width+"px",height:t.height+"px",maxWidth:t.maxWidth+"px",maxHeight:t.maxHeight+"px",minWidth:t.minWidth+"px",minHeight:t.minHeight+"px",left:t.x+"px",top:t.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},c);var h=Object(l["x"])(e,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return Object(l["a"])(a.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},h),i.centerVertically&&Object(l["a"])(a.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},h),a.innerText=n,u["h"].bind(a,"keydown",this.keyHandler),u["h"].bind(a,"mousedown",Gn),u["h"].bind(a,"paste",r.handlePaste),i.autoResize&&u["h"].bind(a,"input",this.autoResize),i.resizable&&this.resizable(e),s.appendChild(o),this.setSelection(a.lastChild,a.lastChild&&a.lastChild.length),o},Un.prototype.handlePaste=function(t){var e,n=this.options,i=this.style;if(t.preventDefault(),e=t.clipboardData?t.clipboardData.getData("text/plain"):window.clipboardData.getData("Text"),this.insertText(e),n.autoResize){var r=this.autoResize(i);r&&this.resizeHandler(r)}},Un.prototype.insertText=function(t){t=$n(t);var e=document.execCommand("insertText",!1,t);e||this._insertTextIE(t)},Un.prototype._insertTextIE=function(t){var e,n,i=this.getSelection(),r=i.startContainer,o=i.endContainer,a=i.startOffset,s=i.endOffset,c=i.commonAncestorContainer,l=Wn(c.childNodes);if(qn(c)){var h=r.textContent;r.textContent=h.substring(0,a)+t+h.substring(s),e=r,n=a+t.length}else if(r===this.content&&o===this.content){var p=document.createTextNode(t);this.content.insertBefore(p,l[a]),e=p,n=p.textContent.length}else{var d=l.indexOf(r),f=l.indexOf(o);l.forEach((function(e,n){n===d?e.textContent=r.textContent.substring(0,a)+t+o.textContent.substring(s):n>d&&n<=f&&Object(u["l"])(e)})),e=r,n=a+t.length}e&&void 0!==n&&setTimeout((function(){self.setSelection(e,n)}))},Un.prototype.autoResize=function(){var t=this.parent,e=this.content,n=parseInt(this.style.fontSize)||12;if(e.scrollHeight>t.offsetHeight||e.scrollHeight
');var d=function(t){Hn(t),Gn(t),s=t.clientX,c=t.clientY;var n=e.getBoundingClientRect();h=n.width,p=n.height,u["h"].bind(document,"mousemove",f),u["h"].bind(document,"mouseup",g)},f=function(n){Hn(n),Gn(n);var l=Fn(Vn(h+n.clientX-s,i),o),u=Fn(Vn(p+n.clientY-c,r),a);e.style.width=l+"px",e.style.height=u+"px",t.resizeHandler({width:h,height:p,dx:n.clientX-s,dy:n.clientY-c})},g=function(t){Hn(t),Gn(t),u["h"].unbind(document,"mousemove",f,!1),u["h"].unbind(document,"mouseup",g,!1)};u["h"].bind(n,"mousedown",d)}Object(l["a"])(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),e.appendChild(n)},Un.prototype.destroy=function(){var t=this.parent,e=this.content,n=this.resizeHandle;e.innerText="",t.removeAttribute("style"),e.removeAttribute("style"),u["h"].unbind(e,"keydown",this.keyHandler),u["h"].unbind(e,"mousedown",Gn),u["h"].unbind(e,"input",this.autoResize),u["h"].unbind(e,"paste",this.handlePaste),n&&(n.removeAttribute("style"),Object(u["l"])(n)),Object(u["l"])(t)},Un.prototype.getValue=function(){return this.content.innerText.trim()},Un.prototype.getSelection=function(){var t=window.getSelection(),e=t.getRangeAt(0);return e},Un.prototype.setSelection=function(t,e){var n=document.createRange();null===t?n.selectNodeContents(this.content):(n.setStart(t,e),n.setEnd(t,e));var i=window.getSelection();i.removeAllRanges(),i.addRange(n)},Yn.$inject=["eventBus","canvas"],Yn.prototype.registerProvider=function(t){this._providers.push(t)},Yn.prototype.isActive=function(t){return!(!this._active||t&&this._active.element!==t)},Yn.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},Yn.prototype._fire=function(t,e){this._eventBus.fire("directEditing."+t,e||{active:this._active})},Yn.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},Yn.prototype.complete=function(){var t=this._active;if(t){var e,n=t.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue(),o=t.context.text;r===o&&i.height===n.height&&i.width===n.width||(e=this._textbox.container.getBoundingClientRect(),t.provider.update(t.element,r,t.context.text,{x:i.left-e.left,y:i.top-e.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}},Yn.prototype.getValue=function(){return this._textbox.getValue()},Yn.prototype._handleKey=function(t){t.stopPropagation();var e=t.keyCode||t.charCode;return 27===e?(t.preventDefault(),this.cancel()):13!==e||t.shiftKey?void 0:(t.preventDefault(),this.complete())},Yn.prototype._handleResize=function(t){this._fire("resize",t)},Yn.prototype.activate=function(t){var e;this.isActive()&&this.cancel();var n=Object(l["f"])(this._providers,(function(n){return(e=n.activate(t))?n:null}));return e&&(this.$textbox=this._textbox.create(e.bounds,e.style,e.text,e.options),this._active={element:t,context:e,provider:n},e.options&&e.options.resizable&&(this.resizable=!0),this._fire("activate")),!!e};var Zn={__depends__:[B["a"]],__init__:["directEditing"],directEditing:["type",Yn]},Xn=n("4672"),Kn=".entry",Qn=1e3,Jn=12;function ti(t,e,n,i){this._canvas=t,this._eventBus=n,this._overlays=i;var r=Object(l["m"])(e&&e.scale)?e.scale:{min:1,max:1.5};this._overlaysConfig={scale:r},this._current=null,this._init()}function ei(t,e){var n=Object(u["c"])(t);e=Object(l["l"])(e)?e:e.split(/\s+/g),e.forEach((function(t){n.add(t)}))}function ni(t,e){return-1!==t.indexOf(e)}ti.$inject=["canvas","config.contextPad","eventBus","overlays"],ti.prototype._init=function(){var t=this;this._eventBus.on("selection.changed",(function(e){var n=e.newSelection,i=n.length?1===n.length?n[0]:n:null;i?t.open(i,!0):t.close()})),this._eventBus.on("elements.changed",(function(e){var n=e.elements,i=t._current;if(i){var r=i.target,o=Object(l["A"])(Object(l["l"])(r)?r:[r],(function(t){return ni(n,t)}));o&&t.open(r,!0)}}))},ti.prototype.registerProvider=function(t,e){e||(e=t,t=Qn),this._eventBus.on("contextPad.getProviders",t,(function(t){t.providers.push(e)}))},ti.prototype.getEntries=function(t){var e=this._getProviders(),n=Object(l["l"])(t)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return Object(l["i"])(e,(function(e){if(Object(l["n"])(e[n])){var r=e[n](t);Object(l["n"])(r)?i=r(i):Object(l["i"])(r,(function(t,e){i[e]=t}))}})),i},ti.prototype.trigger=function(t,e,n){var i,r,o,a=this._current.target,s=this._current.entries,c=e.delegateTarget||e.target;if(!c)return e.preventDefault();if(i=s[Object(u["b"])(c,"data-action")],r=i.action,o=e.originalEvent||e,Object(l["n"])(r)){if("click"===t)return r(o,a,n)}else if(r[t])return r[t](o,a,n);e.preventDefault()},ti.prototype.open=function(t,e){!e&&this.isOpen(t)||(this.close(),this._updateAndOpen(t))},ti.prototype._getProviders=function(){var t=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},ti.prototype._updateAndOpen=function(t){var e=this.getEntries(t),n=this.getPad(t),i=n.html;Object(l["i"])(e,(function(t,e){var n,r=t.group||"default",o=Object(u["g"])(t.html||'
');Object(u["b"])(o,"data-action",e),n=Object(u["j"])("[data-group="+r+"]",i),n||(n=Object(u["g"])('
'),i.appendChild(n)),n.appendChild(o),t.className&&ei(o,t.className),t.title&&Object(u["b"])(o,"title",t.title),t.imageUrl&&o.appendChild(Object(u["g"])(''))})),Object(u["c"])(i).add("open"),this._current={target:t,entries:e,pad:n},this._eventBus.fire("contextPad.open",{current:this._current})},ti.prototype.getPad=function(t){if(this.isOpen())return this._current.pad;var e=this,n=this._overlays,i=Object(u["g"])('
'),r=this._getPosition(t),o=Object(l["a"])({html:i},this._overlaysConfig,r);u["f"].bind(i,Kn,"click",(function(t){e.trigger("click",t)})),u["f"].bind(i,Kn,"dragstart",(function(t){e.trigger("dragstart",t)})),u["h"].bind(i,"mousedown",(function(t){t.stopPropagation()}));var a=this._canvas.getRootElement();this._overlayId=n.add(a,"context-pad",o);var s=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{target:t,pad:s}),s},ti.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},ti.prototype.isOpen=function(t){var e=this._current;if(!e)return!1;if(!t)return!0;var n=e.target;return Object(l["l"])(t)===Object(l["l"])(n)&&(Object(l["l"])(t)?t.length===n.length&&Object(l["d"])(t,(function(t){return ni(n,t)})):n===t)},ti.prototype._getPosition=function(t){var e=Object(l["l"])(t)?t:[t],n=Object(It["b"])(e);return{position:{left:n.x+n.width+Jn,top:n.y-Jn/2}}};var ii={__depends__:[B["a"],Xn["a"]],contextPad:["type",ti]},ri=n("da34"),oi=["marker-start","marker-mid","marker-end"],ai=["circle","ellipse","line","path","polygon","polyline","rect"];function si(t,e,n,i){this._elementRegistry=t,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;e.on("drag.cleanup",(function(){Object(l["i"])(r._clonedMarkers,(function(t){Object(X["j"])(t)})),r._clonedMarkers={}}))}function ci(t,e,n){var i=li(Object(X["b"])(t,e));return Object(u["j"])("marker#"+i,n||document)}function li(t){return t.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]}function ui(t){return"url(#"+t+")"}function hi(t){return-1!==ai.indexOf(t.nodeName)}si.$inject=["elementRegistry","eventBus","canvas","styles"],si.prototype.getGfx=function(t){return this._elementRegistry.getGraphics(t)},si.prototype.addDragger=function(t,e,n){n=n||this.getGfx(t);var i=Object(X["e"])(n),r=n.getBoundingClientRect();return this._cloneMarkers(Object(ri["b"])(i)),Object(X["b"])(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),Object(X["a"])(e,i),i},si.prototype.addFrame=function(t,e){var n=Object(X["f"])("rect",{class:"djs-resize-overlay",width:t.width,height:t.height,x:t.x,y:t.y});return Object(X["a"])(e,n),n},si.prototype._cloneMarkers=function(t){var e=this;if(t.childNodes)for(var n=0;n0,a=r&&Object(l["z"])(r)>0;return!o&&!a},Mi.prototype.open=function(t,e,n){var i=this._getProviders(e);if(!t)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+e);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:e,element:t,position:n},o=this._getEntries(t,i),a=this._getHeaderEntries(t,i);r.entries=Object(l["a"])({},o,a),r.container=this._createContainer(),Object(l["z"])(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-header")),Object(l["z"])(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-body"));var s=this._canvas,c=s.getContainer();this._attachContainer(r.container,c,n.cursor),this._bindAutoClose()},Mi.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),Object(u["l"])(this._current.container),this._current.container=null)},Mi.prototype.isOpen=function(){return!!this._current.container},Mi.prototype.trigger=function(t){t.preventDefault();var e=t.delegateTarget||t.target,n=Object(u["b"])(e,ki),i=this._getEntry(n);if(i.action)return i.action.call(null,t,i)},Mi.prototype._getProviders=function(t){var e=this._eventBus.createEvent({type:"popupMenu.getProviders."+t,providers:[]});return this._eventBus.fire(e),e.providers},Mi.prototype._getEntries=function(t,e){var n={};return Object(l["i"])(e,(function(e){if(e.getPopupMenuEntries){var i=e.getPopupMenuEntries(t);Object(l["n"])(i)?n=i(n):Object(l["i"])(i,(function(t,e){n[e]=t}))}else Object(l["i"])(e.getEntries(t),(function(t){var e=t.id;if(!e)throw new Error("every entry must have the id property set");n[e]=Object(l["w"])(t,["id"])}))})),n},Mi.prototype._getHeaderEntries=function(t,e){var n={};return Object(l["i"])(e,(function(e){if(e.getPopupMenuHeaderEntries){var i=e.getPopupMenuHeaderEntries(t);Object(l["n"])(i)?n=i(n):Object(l["i"])(i,(function(t,e){n[e]=t}))}else{if(!e.getHeaderEntries)return;Object(l["i"])(e.getHeaderEntries(t),(function(t){var e=t.id;if(!e)throw new Error("every entry must have the id property set");n[e]=Object(l["w"])(t,["id"])}))}})),n},Mi.prototype._getEntry=function(t){var e=this._current.entries[t];if(!e)throw new Error("entry not found");return e},Mi.prototype._emit=function(t){this._eventBus.fire("popupMenu."+t)},Mi.prototype._createContainer=function(){var t=Object(u["g"])('
'),e=this._current.position,n=this._current.className;return Object(u["a"])(t,{position:"absolute",left:e.x+"px",top:e.y+"px",visibility:"hidden"}),Object(u["c"])(t).add(n),t},Mi.prototype._attachContainer=function(t,e,n){var i=this;u["f"].bind(t,".entry","click",(function(t){i.trigger(t)})),this._updateScale(t),e.appendChild(t),n&&this._assureIsInbounds(t,n)},Mi.prototype._updateScale=function(t){var e,n,i=this._canvas.zoom(),r=this._config.scale,o=i;!0!==r&&(!1===r?(e=1,n=1):(e=r.min,n=r.max),Object(l["m"])(e)&&in&&(o=n)),Ci(t,"scale("+o+")")},Mi.prototype._assureIsInbounds=function(t,e){var n,i,r=this._canvas,o=r._container.getBoundingClientRect(),a=t.offsetLeft,s=t.offsetTop,c=t.scrollWidth,l=t.scrollHeight,h={},p={x:e.x-o.left,y:e.y-o.top};a+c>o.width&&(h.x=!0),s+l>o.height&&(h.y=!0),h.x&&h.y?(n=p.x-c+"px",i=p.y-l+"px"):h.x?(n=p.x-c+"px",i=p.y+"px"):h.y&&p.y"),i=this;return Object(u["c"])(n).add(e),Object(l["i"])(t,(function(t,e){var r=i._createEntry(t,e);n.appendChild(r)})),n},Mi.prototype._createEntry=function(t,e){var n=Object(u["g"])("
"),i=Object(u["c"])(n);if(i.add("entry"),t.className&&t.className.split(" ").forEach((function(t){i.add(t)})),Object(u["b"])(n,ki,e),t.label){var r=Object(u["g"])("");r.textContent=t.label,n.appendChild(r)}return t.imageUrl&&n.appendChild(Object(u["g"])('')),!0===t.active&&i.add("active"),!0===t.disabled&&i.add("disabled"),t.title&&(n.title=t.title),n},Mi.prototype._bindAutoClose=function(){this._eventBus.once(Ti,this.close,this)},Mi.prototype._unbindAutoClose=function(){this._eventBus.off(Ti,this.close,this)};var Pi={__init__:["popupMenu"],popupMenu:["type",Mi]};function Ii(){}Ii.prototype.get=function(){return this._data},Ii.prototype.set=function(t){this._data=t},Ii.prototype.clear=function(){var t=this._data;return delete this._data,t},Ii.prototype.isEmpty=function(){return!this._data};var Di={clipboard:["type",Ii]};function Ri(t){var e=this;function n(t){e._lastMoveEvent=t}this._lastMoveEvent=null,t.on("canvas.init",(function(t){var i=e._svg=t.svg;i.addEventListener("mousemove",n)})),t.on("canvas.destroy",(function(){e._lastMouseEvent=null,e._svg.removeEventListener("mousemove",n)}))}function Li(t,e){var n=document.createEvent("MouseEvent"),i=t,r=e,o=t,a=e;return n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,o,a,!1,!1,!1,!1,0,null),n}Ri.$inject=["eventBus"],Ri.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||Li(0,0)};var Ni={__init__:["mouse"],mouse:["type",Ri]};function Bi(t,e,n,i,r,o,a,s){this._canvas=t,this._create=e,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",(function(t){var e=t.descriptor,n=t.element,i=t.elements;e.priority=1,e.id=n.id;var r=Object(l["f"])(i,(function(t){return t===n.parent}));r&&(e.parent=n.parent.id),zi(n)&&(e.priority=2,e.host=n.host.id),Fi(n)&&(e.priority=3,e.source=n.source.id,e.target=n.target.id,e.waypoints=Hi(n)),Vi(n)&&(e.priority=4,e.labelTarget=n.labelTarget.id),Object(l["i"])(["x","y","width","height"],(function(t){Object(l["p"])(n[t])&&(e[t]=n[t])})),e.hidden=n.hidden,e.collapsed=n.collapsed})),r.on("copyPaste.pasteElements",(function(t){var e=t.hints;Object(l["a"])(e,{createElementsBehavior:!1})}))}function zi(t){return!!t.host}function Fi(t){return!!t.waypoints}function Vi(t){return!!t.labelTarget}function Hi(t){return Object(l["u"])(t.waypoints,(function(t){return t=Gi(t),t.original&&(t.original=Gi(t.original)),t}))}function Gi(t){return Object(l["a"])({},t)}function qi(t,e){var n=e.indexOf(t);return-1===n?e:e.splice(n,1)}Bi.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],Bi.prototype.copy=function(t){var e,n;return Object(l["l"])(t)||(t=t?[t]:[]),e=this._eventBus.fire("copyPaste.canCopyElements",{elements:t}),n=!1===e?{}:this.createTree(Object(l["l"])(e)?e:t),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:t,tree:n}),n},Bi.prototype.paste=function(t){var e=this._clipboard.get();if(!this._clipboard.isEmpty()){var n=t&&t.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:n});var i=this._createElements(e);if(t&&t.element&&t.point)return this._paste(i,t.element,t.point,n);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:n||{}})}},Bi.prototype._paste=function(t,e,n,i){Object(l["i"])(t,(function(t){Object(l["p"])(t.x)||(t.x=0),Object(l["p"])(t.y)||(t.y=0)}));var r=Object(It["b"])(t);return Object(l["i"])(t,(function(t){Fi(t)&&(t.waypoints=Object(l["u"])(t.waypoints,(function(t){return{x:t.x-r.x-r.width/2,y:t.y-r.y-r.height/2}}))),Object(l["a"])(t,{x:t.x-r.x-r.width/2,y:t.y-r.y-r.height/2})})),this._modeling.createElements(t,n,e,Object(l["a"])({},i))},Bi.prototype._createElements=function(t){var e=this,n=this._eventBus,i={},r=[];return Object(l["i"])(t,(function(t,o){o=parseInt(o,10),t=Object(l["B"])(t,"priority"),Object(l["i"])(t,(function(t){var o,a=Object(l["a"])({},Object(l["w"])(t,["priority"]));return i[t.parent]?a.parent=i[t.parent]:delete a.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:a}),Fi(a)?(a.source=i[t.source],a.target=i[t.target],o=i[t.id]=e.createConnection(a),void r.push(o)):Vi(a)?(a.labelTarget=i[a.labelTarget],o=i[t.id]=e.createLabel(a),void r.push(o)):(a.host&&(a.host=i[a.host]),o=i[t.id]=e.createShape(a),void r.push(o))}))})),r},Bi.prototype.createConnection=function(t){var e=this._elementFactory.createConnection(Object(l["w"])(t,["id"]));return e},Bi.prototype.createLabel=function(t){var e=this._elementFactory.createLabel(Object(l["w"])(t,["id"]));return e},Bi.prototype.createShape=function(t){var e=this._elementFactory.createShape(Object(l["w"])(t,["id"]));return e},Bi.prototype.hasRelations=function(t,e){var n,i,r;return!(Fi(t)&&(i=Object(l["f"])(e,Object(l["v"])({id:t.source.id})),r=Object(l["f"])(e,Object(l["v"])({id:t.target.id})),!i||!r))&&!(Vi(t)&&(n=Object(l["f"])(e,Object(l["v"])({id:t.labelTarget.id})),!n))},Bi.prototype.createTree=function(t){var e=this._rules,n=this,i={},r=[],o=Object(It["e"])(t);function a(t,n){return e.allowed("element.copy",{element:t,elements:n})}function s(t,e){var n=Object(l["f"])(r,(function(e){return t===e.element}));n?n.depth=120&&Object(l["a"])(p,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:h("Divide into two Lanes"),action:{click:y(2)}}}),t.height>=180&&Object(l["a"])(p,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:h("Divide into three Lanes"),action:{click:y(3)}}})),Object(l["a"])(p,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:h("Add Lane below"),action:{click:function(t,e){n.addLane(e,"bottom")}}}})}Object(St["c"])(d,"bpmn:FlowNode")&&(Object(St["c"])(d,"bpmn:EventBasedGateway")?Object(l["a"])(p,{"append.receive-task":v("bpmn:ReceiveTask","bpmn-icon-receive-task",h("Append ReceiveTask")),"append.message-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",h("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",h("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",h("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",h("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):eo(d,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?Object(l["a"])(p,{"append.compensation-activity":v("bpmn:Task","bpmn-icon-task",h("Append compensation activity"),{isForCompensation:!0})}):Object(St["c"])(d,"bpmn:EndEvent")||d.isForCompensation||eo(d,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||Object(or["e"])(d)||Object(l["a"])(p,{"append.end-event":v("bpmn:EndEvent","bpmn-icon-end-event-none",h("Append EndEvent")),"append.gateway":v("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",h("Append Gateway")),"append.append-task":v("bpmn:Task","bpmn-icon-task",h("Append Task")),"append.intermediate-event":v("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",h("Append Intermediate/Boundary Event"))})),a.isEmpty(t,"bpmn-replace")||Object(l["a"])(p,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:h("Change type"),action:{click:function(t,e){var n=Object(l["a"])(m(e),{cursor:{x:t.x,y:t.y}});a.open(e,"bpmn-replace",n)}}}}),Object(St["d"])(d,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Object(l["a"])(p,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using "+(d.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:f,dragstart:f}}}),Object(St["c"])(d,"bpmn:TextAnnotation")&&Object(l["a"])(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using Association"),action:{click:f,dragstart:f}}}),Object(St["d"])(d,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Object(l["a"])(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using DataInputAssociation"),action:{click:f,dragstart:f}}}),Object(St["c"])(d,"bpmn:Group")&&Object(l["a"])(p,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var b=c.allowed("elements.delete",{elements:[t]});return Object(l["l"])(b)&&(b=b[0]===t),b&&Object(l["a"])(p,{delete:{group:"edit",className:"bpmn-icon-trash",title:h("Remove"),action:{click:g}}}),p};var no={__depends__:[Zn,ii,$t["a"],Dn,Ai,Cr],__init__:["contextPadProvider"],contextPadProvider:["type",to]},io={horizontal:["x","width"],vertical:["y","height"]},ro=5;function oo(t){this._modeling=t,this._filters=[],this.registerFilter((function(t,e,n){var i,r=0,o=0;return Object(l["i"])(t,(function(t){t.waypoints||t.labelTarget||(r+=t[n],o+=1)})),i=Math.round(r/o),Object(l["e"])(t,(function(t){return t[n]=Math.min(e.min,e.max)&&Math.min(t.min,t.max)<=Math.max(e.min,e.max)},oo.prototype._findRange=function(t){var e=t[this._axis],n=t[this._dimension];return{min:e+ro,max:e+n-ro}};var ao={__init__:["distributeElements"],distributeElements:["type",oo]};function so(t){t.registerFilter((function(t){return Object(l["e"])(t,(function(t){var e=Object(St["d"])(t,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:Participant","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(t.labelTarget||e)}))}))}so.$inject=["distributeElements"];var co={__depends__:[ao],__init__:["bpmnDistributeElements"],bpmnDistributeElements:["type",so]},lo="is not a registered action",uo="is already registered";function ho(t,e){this._actions={};var n=this;t.on("diagram.init",(function(){n._registerDefaultActions(e),t.fire("editorActions.init",{editorActions:n})}))}function po(t,e){return new Error(t+" "+e)}ho.$inject=["eventBus","injector"],ho.prototype._registerDefaultActions=function(t){var e=t.get("commandStack",!1),n=t.get("modeling",!1),i=t.get("selection",!1),r=t.get("zoomScroll",!1),o=t.get("copyPaste",!1),a=t.get("canvas",!1),s=t.get("rules",!1),c=t.get("keyboardMove",!1),u=t.get("keyboardMoveSelection",!1);e&&(this.register("undo",(function(){e.undo()})),this.register("redo",(function(){e.redo()}))),o&&i&&this.register("copy",(function(){var t=i.get();o.copy(t)})),o&&this.register("paste",(function(){o.paste()})),r&&this.register("stepZoom",(function(t){r.stepZoom(t.value)})),a&&this.register("zoom",(function(t){a.zoom(t.value)})),n&&i&&s&&this.register("removeSelection",(function(){var t=i.get();if(t.length){var e,r=s.allowed("elements.delete",{elements:t});!1!==r&&(e=Object(l["l"])(r)?r:t,e.length&&n.removeElements(e.slice()))}})),c&&this.register("moveCanvas",(function(t){c.moveCanvas(t)})),u&&this.register("moveSelection",(function(t){u.moveSelection(t.direction,t.accelerated)}))},ho.prototype.trigger=function(t,e){if(!this._actions[t])throw po(t,lo);return this._actions[t](e)},ho.prototype.register=function(t,e){var n=this;if("string"===typeof t)return this._registerAction(t,e);Object(l["i"])(t,(function(t,e){n._registerAction(e,t)}))},ho.prototype._registerAction=function(t,e){if(this.isRegistered(t))throw po(t,uo);this._actions[t]=e},ho.prototype.unregister=function(t){if(!this.isRegistered(t))throw po(t,lo);this._actions[t]=void 0},ho.prototype.getActions=function(){return Object.keys(this._actions)},ho.prototype.isRegistered=function(t){return!!this._actions[t]};var fo={__init__:["editorActions"],editorActions:["type",ho]};function go(t){t.invoke(ho,this)}r()(go,ho),go.$inject=["injector"],go.prototype._registerDefaultActions=function(t){ho.prototype._registerDefaultActions.call(this,t);var e=t.get("canvas",!1),n=t.get("elementRegistry",!1),i=t.get("selection",!1),r=t.get("spaceTool",!1),o=t.get("lassoTool",!1),a=t.get("handTool",!1),s=t.get("globalConnect",!1),c=t.get("distributeElements",!1),u=t.get("alignElements",!1),h=t.get("directEditing",!1),p=t.get("searchPad",!1),d=t.get("modeling",!1);e&&n&&i&&this._registerAction("selectElements",(function(){var t=e.getRootElement(),r=n.filter((function(e){return e!==t}));return i.select(r),r})),r&&this._registerAction("spaceTool",(function(){r.toggle()})),o&&this._registerAction("lassoTool",(function(){o.toggle()})),a&&this._registerAction("handTool",(function(){a.toggle()})),s&&this._registerAction("globalConnectTool",(function(){s.toggle()})),i&&c&&this._registerAction("distributeElements",(function(t){var e=i.get(),n=t.type;e.length&&c.trigger(e,n)})),i&&u&&this._registerAction("alignElements",(function(t){var e=i.get(),n=[],r=t.type;e.length&&(n=Object(l["e"])(e,(function(t){return!Object(St["c"])(t,"bpmn:Lane")})),u.trigger(n,r))})),i&&d&&this._registerAction("setColor",(function(t){var e=i.get();e.length&&d.setColor(e,t)})),i&&h&&this._registerAction("directEditing",(function(){var t=i.get();t.length&&h.activate(t[0])})),p&&this._registerAction("find",(function(){p.toggle()})),e&&d&&this._registerAction("moveToOrigin",(function(){var t,i,r=e.getRootElement();i=Object(St["c"])(r,"bpmn:Collaboration")?n.filter((function(t){return Object(St["c"])(t.parent,"bpmn:Collaboration")})):n.filter((function(t){return t!==r&&!Object(St["c"])(t.parent,"bpmn:SubProcess")})),t=Object(It["b"])(i),d.moveElements(i,{x:-t.x,y:-t.y},r)}))};var mo={__depends__:[fo],editorActions:["type",go]};function vo(t){t.on(["create.init","shape.move.init"],(function(t){var e=t.context,n=t.shape;Object(St["d"])(n,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(e.gridSnappingContext||(e.gridSnappingContext={}),e.gridSnappingContext.snapLocation="top-left")}))}vo.$inject=["eventBus"];var yo=10;function _o(t,e,n){return n||(n="round"),Math[n](t/e)*e}var bo=1200,xo=800;function wo(t,e,n){var i=!n||!1!==n.active;this._eventBus=e;var r=this;e.on("diagram.init",xo,(function(){r.setActive(i)})),e.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],bo,(function(e){var n=e.originalEvent;if(!(!r.active||n&&p(n))){var i=e.context,o=i.gridSnappingContext;o||(o=i.gridSnappingContext={}),["x","y"].forEach((function(n){var i={},o=So(e,n,t);o&&(i.offset=o);var a=Oo(e,n);a&&Object(l["a"])(i,a),yn(e,n)||r.snapEvent(e,n,i)}))}}))}function Oo(t,e){var n=t.context,i=n.createConstraints,r=n.resizeConstraints||{},o=n.gridSnappingContext,a=o.snapConstraints;if(a&&a[e])return a[e];a||(a=o.snapConstraints={}),a[e]||(a[e]={});var s=n.direction;i&&(Eo(e)?(a.x.min=i.left,a.x.max=i.right):(a.y.min=i.top,a.y.max=i.bottom));var c=r.min,l=r.max;return c&&(Eo(e)?ko(s)?a.x.max=c.left:a.x.min=c.right:Ao(s)?a.y.max=c.top:a.y.min=c.bottom),l&&(Eo(e)?ko(s)?a.x.min=l.left:a.x.max=l.right:Ao(s)?a.y.min=l.top:a.y.max=l.bottom),a[e]}function So(t,e,n){var i=t.context,r=t.shape,o=i.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;return s&&Object(l["p"])(s[e])?s[e]:(s||(s=o.snapOffset={}),Object(l["p"])(s[e])||(s[e]=0),r?(n.get(r.id)||(Eo(e)?s[e]+=r[e]+r.width/2:s[e]+=r[e]+r.height/2),a?("x"===e?/left/.test(a)?s[e]-=r.width/2:/right/.test(a)&&(s[e]+=r.width/2):/top/.test(a)?s[e]-=r.height/2:/bottom/.test(a)&&(s[e]+=r.height/2),s[e]):s[e]):s[e])}function Eo(t){return"x"===t}function Ao(t){return-1!==t.indexOf("n")}function ko(t){return-1!==t.indexOf("w")}function To(t,e){Dt["a"].call(this,t),this._gridSnapping=e;var n=this;this.preExecute("shape.resize",(function(t){var e=t.context,i=e.hints||{},r=i.autoResize;if(r){var o=e.shape,a=e.newBounds;Object(l["r"])(r)?e.newBounds=n.snapComplex(a,r):e.newBounds=n.snapSimple(o,a)}}))}wo.prototype.snapEvent=function(t,e,n){var i=this.snapValue(t[e],n);_n(t,e,i)},wo.prototype.getGridSpacing=function(){return yo},wo.prototype.snapValue=function(t,e){var n,i,r=0;return e&&e.offset&&(r=e.offset),t+=r,t=_o(t,yo),e&&e.min&&(n=e.min,Object(l["p"])(n)&&(n=_o(n+r,yo,"ceil"),t=Math.max(t,n))),e&&e.max&&(i=e.max,Object(l["p"])(i)&&(i=_o(i+r,yo,"floor"),t=Math.min(t,i))),t-=r,t},wo.prototype.isActive=function(){return this.active},wo.prototype.setActive=function(t){this.active=t,this._eventBus.fire("gridSnapping.toggle",{active:t})},wo.prototype.toggleActive=function(){this.setActive(!this.active)},wo.$inject=["elementRegistry","eventBus","config.gridSnapping"],To.$inject=["eventBus","gridSnapping","modeling"],Object(Pt["a"])(To,Dt["a"]),To.prototype.snapSimple=function(t,e){var n=this._gridSnapping;return e.width=n.snapValue(e.width,{min:e.width}),e.height=n.snapValue(e.height,{min:e.height}),e.x=t.x+t.width/2-e.width/2,e.y=t.y+t.height/2-e.height/2,e},To.prototype.snapComplex=function(t,e){return/w|e/.test(e)&&(t=this.snapHorizontally(t,e)),/n|s/.test(e)&&(t=this.snapVertically(t,e)),t},To.prototype.snapHorizontally=function(t,e){var n=this._gridSnapping,i=/w/.test(e),r=/e/.test(e),o={};return o.width=n.snapValue(t.width,{min:t.width}),r&&(i?(o.x=n.snapValue(t.x,{max:t.x}),o.width+=n.snapValue(t.x-o.x,{min:t.x-o.x})):t.x=t.x+t.width-o.width),Object(l["a"])(t,o),t},To.prototype.snapVertically=function(t,e){var n=this._gridSnapping,i=/n/.test(e),r=/s/.test(e),o={};return o.height=n.snapValue(t.height,{min:t.height}),i&&(r?(o.y=n.snapValue(t.y,{max:t.y}),o.height+=n.snapValue(t.y-o.y,{min:t.y-o.y})):t.y=t.y+t.height-o.height),Object(l["a"])(t,o),t};var jo=2e3;function Mo(t,e){t.on(["spaceTool.move","spaceTool.end"],jo,(function(t){var n=t.context;if(n.initialized){var i,r=n.axis;"x"===r?(i=e.snapValue(t.dx),t.x=t.x+i-t.dx,t.dx=i):(i=e.snapValue(t.dy),t.y=t.y+i-t.dy,t.dy=i)}}))}Mo.$inject=["eventBus","gridSnapping"];var Co={__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",To],gridSnappingSpaceToolBehavior:["type",Mo]},Po={__depends__:[Co],__init__:["gridSnapping"],gridSnapping:["type",wo]},Io=2e3;function Do(t,e){t.on("autoPlace",Io,(function(t){var n=t.source,i=Object(at["e"])(n),r=t.shape,o=Et(n,r);return["x","y"].forEach((function(t){var n={};o[t]!==i[t]&&(o[t]>i[t]?n.min=o[t]:n.max=o[t],Object(St["c"])(r,"bpmn:TextAnnotation")&&(Ro(t)?n.offset=-r.width/2:n.offset=-r.height/2),o[t]=e.snapValue(o[t],n))})),o}))}function Ro(t){return"x"===t}Do.$inject=["eventBus","gridSnapping"];var Lo=1750;function No(t,e,n){e.on(["create.start","shape.move.start"],Lo,(function(e){var i=e.context,r=i.shape,o=t.getRootElement();if(Object(St["c"])(r,"bpmn:Participant")&&Object(St["c"])(o,"bpmn:Process")&&o.children.length){var a=i.createConstraints;a&&(r.width=n.snapValue(r.width,{min:r.width}),r.height=n.snapValue(r.height,{min:r.height}))}}))}No.$inject=["canvas","eventBus","gridSnapping"];var Bo=3e3;function zo(t,e,n){Dt["a"].call(this,t),this._gridSnapping=e;var i=this;this.postExecuted(["connection.create","connection.layout"],Bo,(function(t){var e=t.context,r=e.connection,o=e.hints||{},a=r.waypoints;o.connectionStart||o.connectionEnd||!1===o.createElementsBehavior||Fo(a)&&n.updateWaypoints(r,i.snapMiddleSegments(a))}))}function Fo(t){return t.length>3}function Vo(t){return"h"===t}function Ho(t){return"v"===t}function Go(t,e,n){var i=Object(le["d"])(e,n),r={};return Vo(i)&&(r.y=t.snapValue(e.y)),Ho(i)&&(r.x=t.snapValue(e.x)),("x"in r||"y"in r)&&(e=Object(l["a"])({},e,r),n=Object(l["a"])({},n,r)),[e,n]}zo.$inject=["eventBus","gridSnapping","modeling"],r()(zo,Dt["a"]),zo.prototype.snapMiddleSegments=function(t){var e,n=this._gridSnapping;t=t.slice();for(var i=1;i5&&Object(X["b"])(o,{x:r.x,width:r.width}),r.height>5&&Object(X["b"])(o,{y:r.y,height:r.height}),t.canExecute?Object(X["c"])(o).remove(ga):Object(X["c"])(o).add(ga)}function r(t){var n=t.shape,i=t.frame;i&&Object(X["j"])(t.frame),e.removeMarker(n,fa)}t.on("resize.move",ma,(function(t){i(t.context)})),t.on("resize.cleanup",(function(t){r(t.context)}))}va.$inject=["eventBus","canvas","previewSupport"];var ya=-6,_a=8,ba=20,xa="djs-resizer",wa=["n","w","s","e","nw","ne","se","sw"];function Oa(t,e,n,i){this._resize=i,this._canvas=e;var r=this;t.on("selection.changed",(function(t){var e=t.newSelection;r.removeResizers(),1===e.length&&Object(l["i"])(e,Object(l["b"])(r.addResizer,r))})),t.on("shape.changed",(function(t){var e=t.element;n.isSelected(e)&&(r.removeResizers(),r.addResizer(e))}))}function Sa(t){var e={x:0,y:0};return-1!==t.indexOf("e")?e.x=-ya:-1!==t.indexOf("w")&&(e.x=ya),-1!==t.indexOf("s")?e.y=-ya:-1!==t.indexOf("n")&&(e.y=ya),e}function Ea(t){return!!t.waypoints}Oa.prototype.makeDraggable=function(t,e,n){var i=this._resize;function r(e){Object(Be["d"])(e)&&i.activate(e,t,n)}u["h"].bind(e,"mousedown",r),u["h"].bind(e,"touchstart",r)},Oa.prototype._createResizer=function(t,e,n,i){var r=this._getResizersParent(),o=Sa(i),a=Object(X["f"])("g");Object(X["c"])(a).add(xa),Object(X["c"])(a).add(xa+"-"+t.id),Object(X["c"])(a).add(xa+"-"+i),Object(X["a"])(r,a);var s=Object(X["f"])("rect");Object(X["b"])(s,{x:-_a/2+o.x,y:-_a/2+o.y,width:_a,height:_a}),Object(X["c"])(s).add(xa+"-visual"),Object(X["a"])(a,s);var c=Object(X["f"])("rect");return Object(X["b"])(c,{x:-ba/2+o.x,y:-ba/2+o.y,width:ba,height:ba}),Object(X["c"])(c).add(xa+"-hit"),Object(X["a"])(a,c),Object(ue["b"])(a,e,n),a},Oa.prototype.createResizer=function(t,e){var n=pa(t,e),i=this._createResizer(t,n.x,n.y,e);this.makeDraggable(t,i,e)},Oa.prototype.addResizer=function(t){var e=this;!Ea(t)&&this._resize.canResize({shape:t})&&Object(l["i"])(wa,(function(n){e.createResizer(t,n)}))},Oa.prototype.removeResizers=function(){var t=this._getResizersParent();Object(X["d"])(t)},Oa.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},Oa.$inject=["eventBus","canvas","selection","resize"];var Aa={__depends__:[ce,ie,pi],__init__:["resize","resizePreview","resizeHandles"],resize:["type",ua],resizePreview:["type",va],resizeHandles:["type",Oa]},ka=n("ee44"),Ta=n("ea6d");function ja(t,e){var n=e.create("bpmn:CategoryValue"),i=e.create("bpmn:Category",{categoryValue:[n]});return Object(Ta["a"])(t.get("rootElements"),i),Object(St["a"])(i).$parent=t,Object(St["a"])(n).$parent=i,n}var Ma=n("b0d1");function Ca(t,e,n,i,r,o,a){function s(t,e){(e||Object(St["d"])(t,["bpmn:Task","bpmn:TextAnnotation"])||Pa(t))&&i.activate(t)}this._bpmnFactory=e,this._canvas=n,this._modeling=r,this._textRenderer=a,i.registerProvider(this),t.on("element.dblclick",(function(t){s(t.element,!0)})),t.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],(function(t){i.isActive()&&i.complete()})),t.on(["commandStack.changed"],(function(t){i.isActive()&&i.cancel()})),t.on("directEditing.activate",(function(t){o.removeResizers()})),t.on("create.end",500,(function(t){var e=t.context,n=e.shape,i=t.context.canExecute,r=t.isTouch;r||i&&(e.hints&&!1===e.hints.createElementsBehavior||s(n))})),t.on("autoPlace.end",500,(function(t){s(t.shape)}))}function Pa(t){return Object(St["c"])(t,"bpmn:SubProcess")&&!Object(or["f"])(t)}function Ia(t){return Object(St["c"])(t,"bpmn:SubProcess")&&Object(or["f"])(t)}function Da(t){return Object(St["c"])(t,"bpmn:Participant")&&!Object(or["f"])(t)}function Ra(t){return Object(St["c"])(t,"bpmn:Participant")&&Object(or["f"])(t)}function La(t){return!t||!t.trim()}Ca.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],Ca.prototype.activate=function(t){var e=Object(ka["a"])(t);if(void 0!==e){var n={text:e},i=this.getEditingBBox(t);Object(l["a"])(n,i);var r={};return(Object(St["d"])(t,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||Pa(t))&&Object(l["a"])(r,{centerVertically:!0}),Object(Ma["f"])(t)&&Object(l["a"])(r,{autoResize:!0}),Object(St["c"])(t,"bpmn:TextAnnotation")&&Object(l["a"])(r,{resizable:!0,autoResize:!0}),Object(l["a"])(n,{options:r}),n}},Ca.prototype.getEditingBBox=function(t){var e=this._canvas,n=t.label||t,i=e.getAbsoluteBBox(n),r={x:i.x+i.width/2,y:i.y+i.height/2},o={x:i.x,y:i.y},a=e.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),u=c.fontSize*a,h=c.lineHeight,p=s.fontSize*a,d=s.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(Object(St["c"])(t,"bpmn:Lane")||Ra(t))&&(Object(l["a"])(o,{width:i.height,height:30*a,x:i.x-i.height/2+15*a,y:r.y-30*a/2}),Object(l["a"])(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:"rotate(-90deg)"})),(Object(St["d"])(t,["bpmn:Task","bpmn:CallActivity"])||Da(t)||Pa(t))&&(Object(l["a"])(o,{width:i.width,height:i.height}),Object(l["a"])(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),Ia(t)&&(Object(l["a"])(o,{width:i.width,x:i.x}),Object(l["a"])(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var g=90*a,m=7*a,v=4*a;if(n.labelTarget&&(Object(l["a"])(o,{width:g,height:i.height+m+v,x:r.x-g/2,y:i.y-m}),Object(l["a"])(f,{fontSize:u+"px",lineHeight:h,paddingTop:m+"px",paddingBottom:v+"px"})),Object(Ma["f"])(n)&&!Object(Ma["d"])(n)&&!Object(Ma["e"])(n)){var y=Object(Ma["c"])(t),_=e.getAbsoluteBBox({x:y.x,y:y.y,width:0,height:0}),b=u+m+v;Object(l["a"])(o,{width:g,height:b,x:_.x-g/2,y:_.y-b/2}),Object(l["a"])(f,{fontSize:u+"px",lineHeight:h,paddingTop:m+"px",paddingBottom:v+"px"})}return Object(St["c"])(t,"bpmn:TextAnnotation")&&(Object(l["a"])(o,{width:i.width,height:i.height,minWidth:30*a,minHeight:10*a}),Object(l["a"])(f,{textAlign:"left",paddingTop:5*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:5*a+"px",fontSize:p+"px",lineHeight:d})),{bounds:o,style:f}},Ca.prototype.update=function(t,e,n,i){var r,o;if(Object(St["c"])(t,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(t),r={x:t.x,y:t.y,width:t.width/o.width*i.width,height:t.height/o.height*i.height}),Object(St["c"])(t,"bpmn:Group")){var a=Object(St["a"])(t);if(!a.categoryValueRef){var s=this._canvas.getRootElement(),c=Object(St["a"])(s).$parent,l=ja(c,this._bpmnFactory);Object(St["a"])(t).categoryValueRef=l}}La(e)&&(e=null),this._modeling.updateLabel(t,e,r)};var Na="djs-element-hidden",Ba="djs-label-hidden";function za(t,e,n,i){var r,o,a,s=this,c=e.getDefaultLayer();t.on("directEditing.activate",(function(t){var n=t.active;if(r=n.element.label||n.element,Object(St["c"])(r,"bpmn:TextAnnotation")){o=e.getAbsoluteBBox(r),a=Object(X["f"])("g");var l=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:r.height,position:{mx:0,my:0}}),u=s.path=Object(X["f"])("path");Object(X["b"])(u,{d:l,strokeWidth:2,stroke:Fa(r)}),Object(X["a"])(a,u),Object(X["a"])(c,a),Object(ue["c"])(a,r.x,r.y)}Object(St["c"])(r,"bpmn:TextAnnotation")||r.labelTarget?e.addMarker(r,Na):(Object(St["c"])(r,"bpmn:Task")||Object(St["c"])(r,"bpmn:CallActivity")||Object(St["c"])(r,"bpmn:SubProcess")||Object(St["c"])(r,"bpmn:Participant"))&&e.addMarker(r,Ba)})),t.on("directEditing.resize",(function(t){if(Object(St["c"])(r,"bpmn:TextAnnotation")){var e=t.height,n=t.dy,a=Math.max(r.height/o.height*(e+n),0),c=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:a,position:{mx:0,my:0}});Object(X["b"])(s.path,{d:c})}})),t.on(["directEditing.complete","directEditing.cancel"],(function(t){var n=t.active;n&&(e.removeMarker(n.element.label||n.element,Na),e.removeMarker(r,Ba)),r=void 0,o=void 0,a&&(Object(X["j"])(a),a=void 0)}))}function Fa(t,e){var n=Object(St["b"])(t);return n.get("stroke")||e||"black"}za.$inject=["eventBus","canvas","elementRegistry","pathMap"];var Va={__depends__:[ca["a"],Aa,Zn],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",Ca],labelEditingPreview:["type",za]},Ha=["top","bottom","left","right"],Ga=10;function qa(t,e){function n(t){if(Object(Ma["d"])(t)){var e=$a(t);e&&i(t,e)}}function i(t,n){var i=Object(at["e"])(t),r=t.label,o=Object(at["e"])(r);if(r.parent){var a,s=Object(at["b"])(t);switch(n){case"top":a={x:i.x,y:s.top-Ga-r.height/2};break;case"left":a={x:s.left-Ga-r.width/2,y:i.y};break;case"bottom":a={x:i.x,y:s.bottom+Ga+r.height/2};break;case"right":a={x:s.right+Ga+r.width/2,y:i.y};break}var c=Object(Xt["b"])(a,o);e.moveShape(r,c)}}Dt["a"].call(this,t),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],(function(t){var e=t.context,i=e.connection,r=i.source,o=i.target,a=e.hints||{};!1!==a.createElementsBehavior&&(n(r),n(o))})),this.postExecuted(["label.create"],(function(t){var e=t.context,i=e.shape,r=e.hints||{};!1!==r.createElementsBehavior&&n(i.labelTarget)})),this.postExecuted(["elements.create"],(function(t){var e=t.context,i=e.elements,r=e.hints||{};!1!==r.createElementsBehavior&&i.forEach((function(t){n(t)}))}))}function Wa(t){var e,n=t.host,i=Object(at["e"])(t),r=Object(at["f"])(i,n);e=r.indexOf("-")>=0?r.split("-"):[r];var o=Ha.filter((function(t){return-1===e.indexOf(t)}));return o}function Ua(t){var e=Object(at["e"])(t),n=[].concat(t.incoming.map((function(t){return t.waypoints[t.waypoints.length-2]})),t.outgoing.map((function(t){return t.waypoints[1]}))).map((function(t){return Ya(e,t)}));return n}function $a(t){var e=Object(at["e"])(t.label),n=Object(at["e"])(t),i=Ya(n,e);if(Za(i)){var r=Ua(t);if(t.host){var o=Wa(t);r=r.concat(o)}var a=Ha.filter((function(t){return-1===r.indexOf(t)}));if(-1===a.indexOf(i))return a[0]}}function Ya(t,e){return Object(at["f"])(e,t,5)}function Za(t){return-1!==Ha.indexOf(t)}function Xa(t,e,n){Dt["a"].call(this,t),this.preExecute("shape.append",(function(t){var e=t.source,n=t.shape;t.position||(Object(St["c"])(n,"bpmn:TextAnnotation")?t.position={x:e.x+e.width/2+75,y:e.y-50-n.height/2}:t.position={x:e.x+e.width+80+n.width/2,y:e.y+e.height/2})}),!0)}function Ka(t,e){t.invoke(Dt["a"],this),this.postExecute("shape.move",(function(t){var n=t.newParent,i=t.shape,r=Object(l["e"])(i.incoming.concat(i.outgoing),(function(t){return Object(St["c"])(t,"bpmn:Association")}));Object(l["i"])(r,(function(t){e.moveConnection(t,{x:0,y:0},n)}))}),!0)}r()(qa,Dt["a"]),qa.$inject=["eventBus","modeling"],r()(Xa,Dt["a"]),Xa.$inject=["eventBus","elementFactory","bpmnRules"],r()(Ka,Dt["a"]),Ka.$inject=["injector","modeling"];var Qa=500;function Ja(t,e){e.invoke(Dt["a"],this),this._bpmnReplace=t;var n=this;this.postExecuted("elements.create",Qa,(function(t){var e=t.elements;e=e.filter((function(t){var e=t.host;return es(t,e)})),1===e.length&&e.map((function(t){return e.indexOf(t)})).forEach((function(i){var r=e[i];t.elements[i]=n.replaceShape(e[i],r)}))}),!0),this.preExecute("elements.move",Qa,(function(t){var e=t.shapes,i=t.newHost;if(1===e.length){var r=e[0];es(r,i)&&(t.shapes=[n.replaceShape(r,i)])}}),!0)}function ts(t){var e=Object(St["a"])(t),n=e.eventDefinitions;return n&&n[0]}function es(t,e){return!Object(Ma["e"])(t)&&Object(St["d"])(t,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!e}Ja.$inject=["bpmnReplace","injector"],r()(Ja,Dt["a"]),Ja.prototype.replaceShape=function(t,e){var n=ts(t),i={type:"bpmn:BoundaryEvent",host:e};return n&&(i.eventDefinitionType=n.$type),this._bpmnReplace.replaceElement(t,i,{layoutConnection:!1})};var ns=2e3;function is(t,e,n){function i(t){return Object(l["e"])(t.attachers,(function(t){return Object(St["c"])(t,"bpmn:BoundaryEvent")}))}Dt["a"].call(this,t),this.postExecute("connection.create",(function(t){var e=t.context.source,r=t.context.target,o=i(r);Object(St["c"])(e,"bpmn:EventBasedGateway")&&Object(St["c"])(r,"bpmn:ReceiveTask")&&o.length>0&&n.removeElements(o)})),this.postExecute("connection.reconnect",(function(t){var e=t.context.oldSource,r=t.context.newSource;Object(St["c"])(e,"bpmn:Gateway")&&Object(St["c"])(r,"bpmn:EventBasedGateway")&&Object(l["i"])(r.outgoing,(function(t){var e=t.target,r=i(e);Object(St["c"])(e,"bpmn:ReceiveTask")&&r.length>0&&n.removeElements(r)}))})),t.on("moddleCopy.canCopyProperty",ns,(function(t){var n=t.parent,i=t.property,r=t.propertyName,o=e.getPropertyDescriptor(n,r);o&&o.isReference&&Object(St["c"])(i,"bpmn:RootElement")&&n.set(r,i)}))}function rs(t){t.invoke(Dt["a"],this),this.preExecute("shape.create",1500,(function(t){var e=t.context,n=e.parent,i=e.shape;Object(St["c"])(n,"bpmn:Lane")&&!Object(St["c"])(i,"bpmn:Lane")&&(e.parent=Pr(n,"bpmn:Participant"))}))}function os(t,e,n){Dt["a"].call(this,t),this.preExecute("shape.create",(function(t){var n=t.context,i=n.shape;if(Object(St["c"])(i,"bpmn:DataObjectReference")&&"label"!==i.type){var r=e.create("bpmn:DataObject");i.businessObject.dataObjectRef=r}}))}is.$inject=["eventBus","moddle","modeling"],r()(is,Dt["a"]),rs.$inject=["injector"],r()(rs,Dt["a"]),os.$inject=["eventBus","bpmnFactory","moddle"],r()(os,Dt["a"]);var as=20,ss=20,cs=30,ls=2e3;function us(t,e,n){function i(){var e=t.getRootElement();return Object(St["c"])(e,"bpmn:Collaboration")?e:n.makeCollaboration()}Dt["a"].call(this,e),e.on(["create.start","shape.move.start"],ls,(function(e){var n=e.context,i=n.shape,r=t.getRootElement();if(Object(St["c"])(i,"bpmn:Participant")&&Object(St["c"])(r,"bpmn:Process")&&r.children.length){var o=r.children.filter((function(t){return!Object(St["c"])(t,"bpmn:Group")&&!Object(Ma["e"])(t)&&!ds(t)}));if(o.length){var a=Object(It["b"])(o),s=hs(i,a);Object(l["a"])(i,s),n.createConstraints=ps(i,a)}}})),e.on("create.start",ls,(function(n){var i=n.context,r=i.shape,o=t.getRootElement(),a=t.getGraphics(o);function s(t){t.element=o,t.gfx=a}Object(St["c"])(r,"bpmn:Participant")&&Object(St["c"])(o,"bpmn:Process")&&(e.on("element.hover",ls,s),e.once("create.cleanup",(function(){e.off("element.hover",s)})))})),this.preExecute("elements.create",ls,(function(t){var e,n=t.elements,r=t.parent,o=fs(n);o&&Object(St["c"])(r,"bpmn:Process")&&(t.parent=i(),e=t.hints=t.hints||{},e.participant=o,e.process=r,e.processRef=Object(St["a"])(o).get("processRef"))}),!0),this.preExecute("shape.create",(function(t){var e=t.parent,n=t.shape;Object(St["c"])(n,"bpmn:Participant")&&Object(St["c"])(e,"bpmn:Process")&&(t.parent=i(),t.process=e,t.processRef=Object(St["a"])(n).get("processRef"))}),!0),this.execute("shape.create",(function(t){var e=t.hints||{},n=t.process||e.process,i=t.shape,r=e.participant;!n||r&&i!==r||Object(St["a"])(i).set("processRef",Object(St["a"])(n))}),!0),this.revert("shape.create",(function(t){var e=t.hints||{},n=t.process||e.process,i=t.processRef||e.processRef,r=t.shape,o=e.participant;!n||o&&r!==o||Object(St["a"])(r).set("processRef",i)}),!0),this.postExecute("shape.create",(function(t){var e=t.hints||{},i=t.process||t.hints.process,r=t.shape,o=e.participant;if(i){var a=i.children.slice();o?r===o&&n.moveElements(a,{x:0,y:0},o):n.moveElements(a,{x:0,y:0},r)}}),!0)}function hs(t,e){e={width:e.width+2*as+cs,height:e.height+2*ss};var n=Math.max(t.width,e.width),i=Math.max(t.height,e.height);return{x:-n/2,y:-i/2,width:n,height:i}}function ps(t,e){return e=Object(at["b"])(e),{bottom:e.top+t.height/2-ss,left:e.right-t.width/2+as,top:e.bottom-t.height/2+ss,right:e.left+t.width/2-as-cs}}function ds(t){return!!t.waypoints}function fs(t){return Object(l["f"])(t,(function(t){return Object(St["c"])(t,"bpmn:Participant")}))}us.$inject=["canvas","eventBus","modeling"],r()(us,Dt["a"]);var gs="__targetRef_placeholder";function ms(t,e){function n(t,e,n){var i=t.get("dataInputAssociations");return Object(l["f"])(i,(function(t){return t!==n&&t.targetRef===e}))}function i(t,n){var i=t.get("properties"),r=Object(l["f"])(i,(function(t){return t.name===gs}));return!r&&n&&(r=e.create("bpmn:Property",{name:gs}),Object(Ta["a"])(i,r)),r}function r(t,e){var r=i(t);r&&(n(t,r,e)||Object(Ta["c"])(t.get("properties"),r))}function o(t){var e,n=t.context,o=n.connection,a=o.businessObject,s=o.target,c=s&&s.businessObject,l=n.newTarget,u=l&&l.businessObject,h=n.oldTarget||n.target,p=h&&h.businessObject,d=o.businessObject;p&&p!==c&&r(p,a),u&&u!==c&&r(u,a),c?(e=i(c,!0),d.targetRef=e):d.targetRef=null}Dt["a"].call(this,t),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],vs(o)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],vs(o))}function vs(t){return function(e){var n=e.context,i=n.connection;if(Object(St["c"])(i,"bpmn:DataInputAssociation"))return t(e)}}function ys(t){this._bpmnUpdater=t}function _s(t,e,n,i){function r(){return n.filter((function(t){return Object(St["c"])(t,"bpmn:Participant")&&Object(St["a"])(t).processRef}))[0]}function o(t){return t.children.filter((function(t){return Object(St["c"])(t,"bpmn:DataStoreReference")&&!t.labelTarget}))}function a(t,n){var i=t.businessObject||t;if(n=n||r(),n){var o=n.businessObject||n;e.execute("dataStore.updateContainment",{dataStoreBo:i,dataStoreDi:Object(St["b"])(t),newSemanticParent:o.processRef||o,newDiParent:Object(St["b"])(n)})}}Dt["a"].call(this,i),e.registerHandler("dataStore.updateContainment",ys),this.preExecute("shape.create",(function(t){var e=t.context,n=e.shape;Object(St["c"])(n,"bpmn:DataStoreReference")&&"label"!==n.type&&(e.hints||(e.hints={}),e.hints.autoResize=!1)})),this.preExecute("elements.move",(function(t){var e=t.context,n=e.shapes,i=n.filter((function(t){return Object(St["c"])(t,"bpmn:DataStoreReference")}));i.length&&(e.hints||(e.hints={}),e.hints.autoResize=n.filter((function(t){return!Object(St["c"])(t,"bpmn:DataStoreReference")})))})),this.postExecute("shape.create",(function(t){var e=t.context,n=e.shape,i=n.parent;Object(St["c"])(n,"bpmn:DataStoreReference")&&"label"!==n.type&&Object(St["c"])(i,"bpmn:Collaboration")&&a(n)})),this.postExecute("shape.move",(function(t){var e=t.context,n=e.shape,i=e.oldParent,r=n.parent;if(!Object(St["c"])(i,"bpmn:Collaboration")&&Object(St["c"])(n,"bpmn:DataStoreReference")&&"label"!==n.type&&Object(St["c"])(r,"bpmn:Collaboration")){var o=Object(St["c"])(i,"bpmn:Participant")?i:xs(i,"bpmn:Participant");a(n,o)}})),this.postExecute("shape.delete",(function(e){var n=e.context,i=n.shape,r=t.getRootElement();Object(St["d"])(i,["bpmn:Participant","bpmn:SubProcess"])&&Object(St["c"])(r,"bpmn:Collaboration")&&o(r).filter((function(t){return bs(t,i)})).forEach((function(t){a(t)}))})),this.postExecute("canvas.updateRoot",(function(t){var e=t.context,n=e.oldRoot,i=e.newRoot,r=o(n);r.forEach((function(t){Object(St["c"])(i,"bpmn:Process")&&a(t,i)}))}))}function bs(t,e){var n=t.businessObject||t,i=e.businessObject||e;while(n.$parent){if(n.$parent===i.processRef||i)return!0;n=n.$parent}return!1}function xs(t,e){while(t.parent){if(Object(St["c"])(t.parent,e))return t.parent;t=t.parent}}ms.$inject=["eventBus","bpmnFactory"],r()(ms,Dt["a"]),ys.$inject=["bpmnUpdater"],ys.prototype.execute=function(t){var e=t.dataStoreBo,n=t.dataStoreDi,i=t.newSemanticParent,r=t.newDiParent;t.oldSemanticParent=e.$parent,t.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(e,i),this._bpmnUpdater.updateDiParent(n,r)},ys.prototype.revert=function(t){var e=t.dataStoreBo,n=t.dataStoreDi,i=t.oldSemanticParent,r=t.oldDiParent;this._bpmnUpdater.updateSemanticParent(e,i),this._bpmnUpdater.updateDiParent(n,r)},_s.$inject=["canvas","commandStack","elementRegistry","eventBus"],r()(_s,Dt["a"]);var ws=500;function Os(t,e,n){function i(t,e){var i,r,o,a=Kr(e),s=[],c=[];(Object(It["a"])(a,(function(e){return e.y>t.y?c.push(e):s.push(e),e.children})),a.length)&&(i=c.length&&s.length?t.height/2:t.height,s.length&&(r=n.calculateAdjustments(s,"y",i,t.y-10),n.makeSpace(r.movingShapes,r.resizingShapes,{x:0,y:i},"s")),c.length&&(o=n.calculateAdjustments(c,"y",-i,t.y+t.height+10),n.makeSpace(o.movingShapes,o.resizingShapes,{x:0,y:-i},"n")))}Dt["a"].call(this,t),this.postExecuted("shape.delete",ws,(function(t){var e=t.context,n=e.hints,r=e.shape,o=e.oldParent;Object(St["c"])(r,"bpmn:Lane")&&(n&&n.nested||i(r,o))}))}Os.$inject=["eventBus","modeling","spaceTool"],r()(Os,Dt["a"]);var Ss=500;function Es(t,e){e.invoke(Dt["a"],this),this._bpmnReplace=t;var n=this;this.postExecuted("elements.create",Ss,(function(t){var e=t.elements;e.filter((function(t){var e=t.host;return ks(t,e)})).map((function(t){return e.indexOf(t)})).forEach((function(i){t.elements[i]=n.replaceShape(e[i])}))}),!0),this.preExecute("elements.move",Ss,(function(t){var e=t.shapes,i=t.newHost;e.forEach((function(t,r){var o=t.host;ks(t,Ts(e,o)?o:i)&&(e[r]=n.replaceShape(t))}))}),!0)}function As(t){var e=Object(St["a"])(t),n=e.eventDefinitions;return n&&n[0]}function ks(t,e){return!Object(Ma["e"])(t)&&Object(St["c"])(t,"bpmn:BoundaryEvent")&&!e}function Ts(t,e){return-1!==t.indexOf(e)}function js(t,e,n){function i(t,i,r){var o,a,s,c,u,h,p,d,f=i.waypoints,g=t.outgoing.slice(),m=t.incoming.slice();d=Object(l["p"])(r.width)?Object(at["e"])(r):r;var v=be(f,d);if(v){if(o=f.slice(0,v.index),a=f.slice(v.index+(v.bendpoint?1:0)),!o.length||!a.length)return;s=v.bendpoint?f[v.index]:d,1!==o.length&&Ms(t,o[o.length-1])||o.push(Cs(s)),1!==a.length&&Ms(t,a[0])||a.unshift(Cs(s))}c=i.source,u=i.target,e.canConnect(c,t,i)&&(n.reconnectEnd(i,t,o||d),h=i),e.canConnect(t,u,i)&&(h?p=n.connect(t,u,{type:i.type,waypoints:a}):(n.reconnectStart(i,t,a||d),p=i));var y=[].concat(h&&Object(l["e"])(m,(function(t){return t.source===h.source}))||[],p&&Object(l["e"])(g,(function(t){return t.target===p.target}))||[]);y.length&&n.removeElements(y)}Dt["a"].call(this,t),this.preExecute("elements.move",(function(t){var n=t.newParent,i=t.shapes,r=t.delta,o=i[0];if(o&&n){n&&n.waypoints&&(t.newParent=n=n.parent);var a=Object(at["e"])(o),s={x:a.x+r.x,y:a.y+r.y},c=Object(l["f"])(n.children,(function(t){var n=e.canInsert(i,t);return n&&be(t.waypoints,s)}));c&&(t.targetFlow=c,t.position=s)}}),!0),this.postExecuted("elements.move",(function(t){var e=t.shapes,n=t.targetFlow,r=t.position;n&&i(e[0],n,r)}),!0),this.preExecute("shape.create",(function(t){var n=t.parent,i=t.shape;e.canInsert(i,n)&&(t.targetFlow=n,t.parent=n.parent)}),!0),this.postExecuted("shape.create",(function(t){var e=t.shape,n=t.targetFlow,r=t.position;n&&i(e,n,r)}),!0)}function Ms(t,e){var n=e.x,i=e.y;return n>=t.x&&n<=t.x+t.width&&i>=t.y&&i<=t.y+t.height}function Cs(t){return Object(l["a"])({},t)}function Ps(t,e){Dt["a"].call(this,t),this.preExecuted("connection.create",(function(t){var n=t.context,i=n.source,r=n.target,o=r.incoming.slice();n.hints&&!1===n.hints.createElementsBehavior||Object(St["c"])(i,"bpmn:EventBasedGateway")&&r.incoming.length&&o.filter(Is).forEach((function(t){e.removeConnection(t)}))})),this.preExecuted("shape.replace",(function(t){var n,i,r=t.context.newShape;Object(St["c"])(r,"bpmn:EventBasedGateway")&&(n=r.outgoing.filter(Is).map((function(t){return t.target})),i=n.reduce((function(t,e){var n=e.incoming.filter(Is);return t.concat(n)}),[]),i.forEach((function(t){t.source!==r&&e.removeConnection(t)})))}))}function Is(t){return Object(St["c"])(t,"bpmn:SequenceFlow")}Es.$inject=["bpmnReplace","injector"],r()(Es,Dt["a"]),Es.prototype.replaceShape=function(t){var e,n=As(t);return e=n?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:n.$type}:{type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(t,e,{layoutConnection:!1})},r()(js,Dt["a"]),js.$inject=["eventBus","bpmnRules","modeling"],Ps.$inject=["eventBus","modeling"],r()(Ps,Dt["a"]);var Ds=1500,Rs=2e3;function Ls(t,e,n){e.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],Ds,(function(e){var i=e.context,r=i.shape||e.shape,o=e.hover;Object(St["c"])(o,"bpmn:Lane")&&!Object(St["d"])(r,["bpmn:Lane","bpmn:Participant"])&&(e.hover=Qr(o),e.hoverGfx=t.getGraphics(e.hover));var a=n.getRootElement();o!==a&&(r.labelTarget||Object(St["c"])(r,"bpmn:Group"))&&(e.hover=a,e.hoverGfx=t.getGraphics(e.hover))})),e.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],Ds,(function(e){var n=e.hover;Object(St["c"])(n,"bpmn:Lane")&&(e.hover=Qr(n)||n,e.hoverGfx=t.getGraphics(e.hover))})),e.on(["bendpoint.move.hover"],Ds,(function(e){var n=e.context,i=e.hover,r=n.type;Object(St["c"])(i,"bpmn:Lane")&&/reconnect/.test(r)&&(e.hover=Qr(i)||i,e.hoverGfx=t.getGraphics(e.hover))})),e.on(["connect.start"],Ds,(function(t){var e=t.context,n=e.start;Object(St["c"])(n,"bpmn:Lane")&&(e.start=Qr(n)||n)})),e.on("shape.move.start",Rs,(function(t){var e=t.shape;Object(St["c"])(e,"bpmn:Lane")&&(t.shape=Qr(e)||e)}))}Ls.$inject=["elementRegistry","eventBus","canvas"];var Ns=2e3;function Bs(t,e,n,i,r,o){function a(t){var e=Object(St["a"])(t),n=e.categoryValueRef;if(n){var i=n.$parent;n&&(Object(Ta["c"])(i.categoryValue,n),i&&!i.categoryValue.length&&s(i))}}function s(t){var n=e.getDefinitions();Object(Ta["c"])(n.get("rootElements"),t)}function c(){return n.filter((function(t){return Object(St["c"])(t,"bpmn:Group")}))}function l(t,e){return t.some((function(t){var n=Object(St["a"])(t);return n.categoryValueRef&&n.categoryValueRef===e}))}r.invoke(Dt["a"],this),this.executed("shape.delete",(function(t){var e=t.context,n=e.shape;if(Object(St["c"])(n,"bpmn:Group")){var i=Object(St["a"])(n),r=i.categoryValueRef,o=c();l(o,r)||a(n)}})),this.reverted("shape.delete",(function(t){var n=t.context,i=n.shape;if(Object(St["c"])(i,"bpmn:Group")){var r=Object(St["a"])(i),o=r.categoryValueRef,a=e.getDefinitions(),s=o?o.$parent:null;Object(Ta["a"])(s.get("categoryValue"),o),Object(Ta["a"])(a.get("rootElements"),s)}})),this.execute("shape.create",(function(n){var i=n.context,r=i.shape,o=Object(St["a"])(r);if(Object(St["c"])(o,"bpmn:Group")&&!o.categoryValueRef){var a=e.getDefinitions(),s=ja(a,t);o.categoryValueRef=s}})),this.revert("shape.create",(function(t){var e=t.context,n=e.shape;Object(St["c"])(n,"bpmn:Group")&&(a(n),delete Object(St["a"])(n).categoryValueRef)})),i.on("moddleCopy.canCopyProperty",Ns,(function(n){var i,r=n.property;if(Object(St["c"])(r,"bpmn:CategoryValue"))return i=ja(e.getDefinitions(),t),o.copyElement(r,i)}))}function zs(t,e,n,i){var r,o,a,s,c;return r=(i.y-n.y)*(e.x-t.x)-(i.x-n.x)*(e.y-t.y),0==r?null:(o=t.y-n.y,a=t.x-n.x,c=(i.x-n.x)*o-(i.y-n.y)*a,s=c/r,{x:Math.round(t.x+s*(e.x-t.x)),y:Math.round(t.y+s*(e.y-t.y))})}function Fs(t){function e(t,e,n){var i,r={x:n.x,y:n.y-50},o={x:n.x-50,y:n.y},a=zs(t,e,n,r),s=zs(t,e,n,o);i=a&&s?Vs(a,n)>Vs(s,n)?s:a:a||s,t.original=i}function n(t){var n=t.waypoints;e(n[0],n[1],Object(at["e"])(t.source)),e(n[n.length-1],n[n.length-2],Object(at["e"])(t.target))}t.on("bpmnElement.added",(function(t){var e=t.element;e.waypoints&&n(e)}))}function Vs(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Hs(t){Dt["a"].call(this,t);var e=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],(function(t){var n=t.context.shape,i=Object(St["a"])(n),r=Object(St["b"])(n);Object(St["d"])(i,e)&&!r.get("isHorizontal")&&r.set("isHorizontal",!0)}))}function Gs(t){return Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2))}function qs(t){return Math.atan((t[1].y-t[0].y)/(t[1].x-t[0].x))}function Ws(t,e){return e?{x:Math.cos(e)*t.x-Math.sin(e)*t.y,y:Math.sin(e)*t.x+Math.cos(e)*t.y}:t}function Us(t,e,n){var i=[{n:t[0]-n[0],lambda:e[0]},{n:t[1]-n[1],lambda:e[1]}],r=i[0].n*e[0]+i[1].n*e[1],o=i[0].lambda*e[0]+i[1].lambda*e[1];return-r/o}function $s(t,e){var n=e[0],i=e[1],r={x:i.x-n.x,y:i.y-n.y},o=Us([n.x,n.y],[r.x,r.y],[t.x,t.y]);return{x:n.x+o*r.x,y:n.y+o*r.y}}function Ys(t,e){var n=$s(t,e),i={x:n.x-t.x,y:n.y-t.y};return Gs(i)}function Zs(t,e){return Gs({x:t.x-e.x,y:t.y-e.y})}Bs.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"],r()(Bs,Dt["a"]),Fs.$inject=["eventBus"],Hs.$inject=["eventBus"],r()(Hs,Dt["a"]);var Xs=Math.sqrt,Ks=Math.min,Qs=Math.max,Js=Math.abs;function tc(t){return Math.pow(t,2)}function ec(t,e){return Xs(tc(t.x-e.x)+tc(t.y-e.y))}function nc(t,e){var n,i,r,o,a,s,c,l,u,h,p,d=0;for(d=0;d line intersections");1===c.length&&(l={type:"bendpoint",position:c[0],segmentIndex:d,bendpointIndex:cc(n,c[0])?d:d+1}),2===c.length&&(a=ac(c[0],c[1]),l={type:"segment",position:a,segmentIndex:d,relativeLocation:ec(n,a)/ec(n,i)}),u=ec(l.position,t),(!p||h>u)&&(p=l,h=u)}return p}function ic(t,e,n,i){var r=e.x-t.x,o=e.y-t.y,a=n.x-t.x,s=n.y-t.y,c=r*r+o*o,l=r*a+o*s,u=a*a+s*s-i*i,h=l/c,p=u/c,d=h*h-p;if(d<0&&d>-1e-6&&(d=0),d<0)return[];var f=Xs(d),g=-h+f,m=-h-f,v={x:t.x-r*g,y:t.y-o*g};if(0===d)return[v];var y={x:t.x-r*m,y:t.y-o*m};return[v,y].filter((function(n){return rc(n,t,e)}))}function rc(t,e,n){return oc(t.x,e.x,n.x)&&oc(t.y,e.y,n.y)}function oc(t,e,n){return t>=Ks(e,n)-sc&&t<=Qs(e,n)+sc}function ac(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}var sc=.1;function cc(t,e){return Js(t.x-e.x)<=sc&&Js(t.y-e.y)<=sc}function lc(t,e,n,i){var r=n.segmentIndex,o=e.length-t.length;if(i.segmentMove){var a=i.segmentMove.segmentStartIndex,s=i.segmentMove.newSegmentStartIndex;return r===a?s:r>=s?r+o=u&&(c=l?r+1:r-1),re.length-2)return{x:r,y:o};var u=fc(n,c),h=fc(e,l),p=s.position,d=gc(u,p),f=dc(u,h);if("bendpoint"===s.type){var g=e.length-n.length,m=s.bendpointIndex,v=n[m];if(-1!==e.indexOf(v))return{x:r,y:o};if(0===g){var y=e[m];return{x:y.x-s.position.x,y:y.y-s.position.y}}g<0&&0!==m&&m"+n+"
"})}t.on(["shape.move.rejected","create.rejected"],(function(t){var e=t.context,r=e.shape,o=e.target;Object(St["c"])(o,"bpmn:Collaboration")&&Object(St["c"])(r,"bpmn:FlowNode")&&i(t,n(Hc))}))}function qc(t,e){Dt["a"].call(this,t),this.preExecute("shape.resize",(function(t){var n=t.shape,i=Object(St["b"])(n),r=i&&i.get("label"),o=r&&r.get("bounds");o&&e.updateModdleProperties(n,r,{bounds:void 0})}),!0)}function Wc(t,e,n){Dt["a"].call(this,t),this.preExecute("shape.delete",(function(t){var i=t.context.shape;if(1===i.incoming.length&&1===i.outgoing.length){var r=i.incoming[0],o=i.outgoing[0];if(Object(St["c"])(r,"bpmn:SequenceFlow")&&Object(St["c"])(o,"bpmn:SequenceFlow")&&e.canConnect(r.source,o.target,r)){var a=$c(r.waypoints,o.waypoints);n.reconnectEnd(r,o.target,a)}}}))}function Uc(t){return t.original||t}function $c(t,e){var n=zs(Uc(t[t.length-2]),Uc(t[t.length-1]),Uc(e[1]),Uc(e[0]));return n?[].concat(t.slice(0,t.length-1),[n],e.slice(1)):[Uc(t[0]),Uc(e[e.length-1])]}function Yc(t,e){Dt["a"].call(this,t),this.preExecute("shape.delete",(function(t){var e=t.shape,n=e.parent;Object(St["c"])(e,"bpmn:Participant")&&(t.collaborationRoot=n)}),!0),this.postExecute("shape.delete",(function(t){var n=t.collaborationRoot;n&&!n.businessObject.participants.length&&e.makeProcess()}),!0)}function Zc(t,e,n,i){Dt["a"].call(this,t);var r=i.get("dragging",!1);function o(t){var i,r,o=t.source,a=t.target,s=t.parent;s&&(Object(St["c"])(t,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,a)||(r=!0),n.canConnectMessageFlow(o,a)&&(i="bpmn:MessageFlow")),Object(St["c"])(t,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,a)||(r=!0),n.canConnectSequenceFlow(o,a)&&(i="bpmn:SequenceFlow")),Object(St["c"])(t,"bpmn:Association")&&!n.canConnectAssociation(o,a)&&(r=!0),r&&e.removeConnection(t),i&&e.connect(o,a,{type:i,waypoints:t.waypoints.slice()}))}function a(t){var i,o,a=t.context,c=a.connection,l=a.newSource||c.source,u=a.newTarget||c.target;i=n.canConnect(l,u),i&&i.type!==c.type&&(o=e.connect(l,u,{type:i.type,waypoints:c.waypoints.slice()}),e.removeConnection(c),a.connection=o,r&&s(c,o))}function s(t,e){var n,i=r.context(),o=i&&i.payload.previousSelection;o&&o.length&&(n=o.indexOf(t),-1!==n&&o.splice(n,1,e))}this.postExecuted("elements.move",(function(t){var e=t.closure,n=e.allConnections;Object(l["i"])(n,o)}),!0),this.preExecute("connection.reconnect",a),this.postExecuted("element.updateProperties",(function(t){var n,i=t.context,r=i.properties,o=i.element,a=o.businessObject;r.default&&(n=Object(l["f"])(o.outgoing,Object(l["v"])({id:o.businessObject.default.id})),n&&e.updateProperties(n,{conditionExpression:void 0})),r.conditionExpression&&a.sourceRef.default===a&&e.updateProperties(o.source,{default:void 0})}))}function Xc(t,e,n,i,r,o){i.invoke(Dt["a"],this),this._bpmnReplace=t,this._elementRegistry=n,this._selection=o,this.postExecuted(["elements.create"],500,(function(t){var n=t.context,i=n.parent,r=n.elements,o=e.canReplace(r,i);o&&this.replaceElements(r,o.replacements)}),this),this.postExecuted(["elements.move"],500,(function(t){var n=t.context,i=n.newParent,r=n.newHost,o=[];Object(l["i"])(n.closure.topLevel,(function(t){o=Object(or["e"])(t)?o.concat(t.children):o.concat(t)})),1===o.length&&r&&(i=r);var a=e.canReplace(o,i);a&&this.replaceElements(o,a.replacements,r)}),this),this.postExecute(["shape.replace"],1500,(function(t){var n,i=t.context,r=i.oldShape,o=i.newShape,a=r.attachers;a&&a.length&&(n=e.canReplace(a,o),this.replaceElements(a,n.replacements))}),this),this.postExecuted(["shape.replace"],1500,(function(t){var e=t.context,n=e.oldShape,i=e.newShape;r.unclaimId(n.businessObject.id,n.businessObject),r.updateProperties(i,{id:n.id})}))}Gc.$inject=["eventBus","tooltips","translate"],r()(qc,Dt["a"]),qc.$inject=["eventBus","modeling"],r()(Wc,Dt["a"]),Wc.$inject=["eventBus","bpmnRules","modeling"],Yc.$inject=["eventBus","modeling"],r()(Yc,Dt["a"]),r()(Zc,Dt["a"]),Zc.$inject=["eventBus","modeling","bpmnRules","injector"],r()(Xc,Dt["a"]),Xc.prototype.replaceElements=function(t,e){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;Object(l["i"])(e,(function(e){var r={type:e.newElementType},o=n.get(e.oldElementId),a=t.indexOf(o);t[a]=i.replaceElement(o,r,{select:!1})})),e&&r.select(t)},Xc.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var Kc=1500,Qc={width:300,height:60},Jc={width:300,height:150},tl={width:140,height:120},el={width:50,height:30};function nl(t){t.on("resize.start",Kc,(function(t){var e=t.context,n=e.shape,i=e.direction,r=e.balanced;(Object(St["c"])(n,"bpmn:Lane")||Object(St["c"])(n,"bpmn:Participant"))&&(e.resizeConstraints=dl(n,i,r)),Object(St["c"])(n,"bpmn:Participant")&&(e.minDimensions=Jc),Object(St["c"])(n,"bpmn:SubProcess")&&Object(or["f"])(n)&&(e.minDimensions=tl),Object(St["c"])(n,"bpmn:TextAnnotation")&&(e.minDimensions=el)}))}nl.$inject=["eventBus"];var il=Math.abs,rl=Math.min,ol=Math.max;function al(t,e,n,i){var r=t[e];t[e]=void 0===r?n:i(n,r)}function sl(t,e,n){return al(t,e,n,rl)}function cl(t,e,n){return al(t,e,n,ol)}var ll=20,ul=50,hl=20,pl=20;function dl(t,e,n){var i=Qr(t),r=!0,o=!0,a=Xr(i,[i]),s=Object(at["b"])(t),c={},l={};/e/.test(e)?l.right=s.left+Qc.width:/w/.test(e)&&(l.left=s.right-Qc.width),a.forEach((function(t){var i=Object(at["b"])(t);/n/.test(e)&&(i.tops.bottom+10&&(o=!1),n&&il(s.bottom-i.top)<10&&sl(c,"bottom",i.bottom-Qc.height),il(s.bottom-i.bottom)<5&&cl(l,"bottom",i.top+Qc.height))}));var u=i.children.filter((function(t){return!t.hidden&&!t.waypoints&&(Object(St["c"])(t,"bpmn:FlowElement")||Object(St["c"])(t,"bpmn:Artifact"))}));return u.forEach((function(t){var n=Object(at["b"])(t);r&&/n/.test(e)&&sl(l,"top",n.top-hl),/e/.test(e)&&cl(l,"right",n.right+ll),o&&/s/.test(e)&&cl(l,"bottom",n.bottom+pl),/w/.test(e)&&sl(l,"left",n.left-ul)})),{min:l,max:c}}var fl=1001;function gl(t,e){t.on("resize.start",fl+500,(function(t){var e=t.context,n=e.shape;(Object(St["c"])(n,"bpmn:Lane")||Object(St["c"])(n,"bpmn:Participant"))&&(e.balanced=!Object(Be["a"])(t))})),t.on("resize.end",fl,(function(t){var n=t.context,i=n.shape,r=n.canExecute,o=n.newBounds;if(Object(St["c"])(i,"bpmn:Lane")||Object(St["c"])(i,"bpmn:Participant"))return r&&(o=Object(at["g"])(o),e.resizeLane(i,o,n.balanced)),!1}))}gl.$inject=["eventBus","modeling"];var ml=500;function vl(t,e,n,i,r){function o(t){return Object(St["d"])(t,["bpmn:ReceiveTask","bpmn:SendTask"])||yl(t,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(e){var n=t.getDefinitions(),i=n.get("rootElements");return!!Object(l["f"])(i,Object(l["v"])({id:e.id}))}function s(t){return Object(St["c"])(t,"bpmn:ErrorEventDefinition")?"errorRef":Object(St["c"])(t,"bpmn:EscalationEventDefinition")?"escalationRef":Object(St["c"])(t,"bpmn:MessageEventDefinition")?"messageRef":Object(St["c"])(t,"bpmn:SignalEventDefinition")?"signalRef":void 0}function c(t){if(Object(St["d"])(t,["bpmn:ReceiveTask","bpmn:SendTask"]))return t.get("messageRef");var e=t.get("eventDefinitions"),n=e[0];return n.get(s(n))}function u(t,e){if(Object(St["d"])(t,["bpmn:ReceiveTask","bpmn:SendTask"]))return t.set("messageRef",e);var n=t.get("eventDefinitions"),i=n[0];return i.set(s(i),e)}n.invoke(Dt["a"],this),this.executed("shape.create",(function(e){var n=e.shape;if(o(n)){var i,r=Object(St["a"])(n),s=c(r);s&&!a(s)&&(i=t.getDefinitions().get("rootElements"),Object(Ta["a"])(i,s),e.addedRootElement=s)}}),!0),this.reverted("shape.create",(function(e){var n=e.addedRootElement;if(n){var i=t.getDefinitions().get("rootElements");Object(Ta["c"])(i,n)}}),!0),e.on("copyPaste.copyElement",(function(t){var e=t.descriptor,n=t.element;if(o(n)){var i=Object(St["a"])(n),r=c(i);r&&(e.referencedRootElement=r)}})),e.on("copyPaste.pasteElement",ml,(function(t){var e=t.descriptor,n=e.businessObject;if(o(n)){var s=e.referencedRootElement;s&&(a(s)||(s=i.copyElement(s,r.create(s.$type))),u(n,s))}}))}function yl(t,e){return Object(l["l"])(e)||(e=[e]),Object(l["A"])(e,(function(e){return Object(or["d"])(t,e)}))}vl.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],r()(vl,Dt["a"]);var _l=Math.max;function bl(t){t.on("spaceTool.getMinDimensions",(function(t){var e=t.shapes,n=t.axis,i=t.start,r={};return Object(l["i"])(e,(function(t){var e=t.id;Object(St["c"])(t,"bpmn:Participant")&&(xl(n)?r[e]=Jc:r[e]={width:Jc.width,height:wl(t,i)}),Object(St["c"])(t,"bpmn:SubProcess")&&Object(or["f"])(t)&&(r[e]=tl),Object(St["c"])(t,"bpmn:TextAnnotation")&&(r[e]=el)})),r}))}function xl(t){return"x"===t}function wl(t,e){var n;return Ol(t)?(n=Sl(t,e),_l(Jc.height,n)):Jc.height}function Ol(t){return!!Kr(t).length}function Sl(t,e){var n,i=Kr(t);return n=El(i,e),t.height-n.height+Qc.height}function El(t,e){var n,i,r;for(n=0;n=i.y&&e<=i.y+i.height)return r=Kr(i),r.length?El(r,e):i}bl.$inject=["eventBus"];var Al=n("704a"),kl=400,Tl=600,jl={x:180,y:160};function Ml(t,e,n,i,r,o,a){Dt["a"].call(this,e),this._canvas=t,this._eventBus=e,this._modeling=n,this._elementFactory=i,this._bpmnFactory=r,this._bpmnjs=o,this._elementRegistry=a;var s=this;function c(t){return Object(St["c"])(t,"bpmn:SubProcess")&&!Object(or["f"])(t)}function u(e){var n=e.shape,i=e.newRootElement,r=Object(St["a"])(n);i=s._addDiagram(i||r),e.newRootElement=t.addRootElement(i)}function h(e){var n=e.shape,i=Object(St["a"])(n);s._removeDiagram(i);var r=e.newRootElement=a.get(Object(Al["a"])(i));t.removeRootElement(r)}this.executed("shape.create",(function(t){var e=t.shape;c(e)&&u(t)}),!0),this.postExecuted("shape.create",(function(t){var e=t.shape,n=t.newRootElement;n&&e.children&&(s._showRecursively(e.children),s._moveChildrenToShape(e,n))}),!0),this.reverted("shape.create",(function(t){var e=t.shape;c(e)&&h(t)}),!0),this.preExecuted("shape.delete",(function(t){var e=t.shape;if(c(e)){var i=a.get(Object(Al["a"])(e));i&&n.removeElements(i.children.slice())}}),!0),this.executed("shape.delete",(function(t){var e=t.shape;c(e)&&h(t)}),!0),this.reverted("shape.delete",(function(t){var e=t.shape;c(e)&&u(t)}),!0),this.preExecuted("shape.replace",(function(e){var n=e.oldShape,i=e.newShape;c(n)&&c(i)&&(e.oldRoot=t.removeRootElement(Object(Al["a"])(n)))}),!0),this.postExecuted("shape.replace",(function(e){var i=e.newShape,r=e.oldRoot,o=t.findRoot(Object(Al["a"])(i));if(r&&o){var a=r.children;n.moveElements(a,{x:0,y:0},o)}}),!0),this.executed("element.updateProperties",(function(t){var e=t.element;if(Object(St["c"])(e,"bpmn:SubProcess")){var n=t.properties,i=t.oldProperties,r=i.id,o=n.id;if(r!==o){if(Object(Al["c"])(e))return a.updateId(e,Object(Al["d"])(o)),void a.updateId(r,o);var s=a.get(Object(Al["d"])(r));s&&a.updateId(Object(Al["d"])(r),Object(Al["d"])(o))}}}),!0),this.reverted("element.updateProperties",(function(t){var e=t.element;if(Object(St["c"])(e,"bpmn:SubProcess")){var n=t.properties,i=t.oldProperties,r=i.id,o=n.id;if(r!==o){if(Object(Al["c"])(e))return a.updateId(e,Object(Al["d"])(r)),void a.updateId(o,r);var s=a.get(Object(Al["d"])(o));s&&a.updateId(s,Object(Al["d"])(r))}}}),!0),e.on("element.changed",(function(t){var n=t.element;if(Object(Al["c"])(n)){var i=n,r=a.get(Object(Al["b"])(i));r&&r!==i&&e.fire("element.changed",{element:r})}})),this.executed("shape.toggleCollapse",kl,(function(t){var e=t.shape;Object(St["c"])(e,"bpmn:SubProcess")&&(Object(or["f"])(e)?h(t):(u(t),s._showRecursively(e.children)))}),!0),this.reverted("shape.toggleCollapse",kl,(function(t){var e=t.shape;Object(St["c"])(e,"bpmn:SubProcess")&&(Object(or["f"])(e)?h(t):(u(t),s._showRecursively(e.children)))}),!0),this.postExecuted("shape.toggleCollapse",Tl,(function(t){var e=t.shape;if(Object(St["c"])(e,"bpmn:SubProcess")){var n=t.newRootElement;n&&(Object(or["f"])(e)?s._moveChildrenToShape(n,e):s._moveChildrenToShape(e,n))}}),!0),e.on("copyPaste.createTree",(function(t){var e=t.element,n=t.children;if(c(e)){var i=Object(Al["a"])(e),r=a.get(i);r&&n.push.apply(n,r.children)}})),e.on("copyPaste.copyElement",(function(t){var e=t.descriptor,n=t.element,i=t.elements,r=n.parent,o=Object(St["c"])(Object(St["b"])(r),"bpmndi:BPMNPlane");if(o){var a=Object(Al["b"])(r),s=Object(l["f"])(i,(function(t){return t.id===a}));s&&(e.parent=s.id)}})),e.on("copyPaste.pasteElement",(function(t){var e=t.descriptor;e.parent&&(c(e.parent)||e.parent.hidden)&&(e.hidden=!0)}))}function Cl(t,e){t.invoke(Dt["a"],this),this.postExecuted("shape.replace",(function(t){var n=t.context.oldShape,i=t.context.newShape;if(Object(St["c"])(i,"bpmn:SubProcess")&&(Object(St["c"])(n,"bpmn:Task")||Object(St["c"])(n,"bpmn:CallActivity"))&&Object(or["f"])(i)){var r=Pl(i);e.createShape({type:"bpmn:StartEvent"},r,i)}}))}function Pl(t){return{x:t.x+t.width/6,y:t.y+t.height/2}}function Il(t,e){Dt["a"].call(this,t),this.postExecuted("shape.toggleCollapse",1500,(function(t){var n=t.shape;if(!Object(or["f"])(n)){var i=Object(It["h"])(n);i.forEach((function(t){var e=t.incoming.slice(),n=t.outgoing.slice();Object(l["i"])(e,(function(t){r(t,!0)})),Object(l["i"])(n,(function(t){r(t,!1)}))}))}function r(t,r){-1!==i.indexOf(t.source)&&-1!==i.indexOf(t.target)||(r?e.reconnectEnd(t,n,Object(at["e"])(n)):e.reconnectStart(t,n,Object(at["e"])(n)))}}),!0)}r()(Ml,Dt["a"]),Ml.prototype._moveChildrenToShape=function(t,e){var n,i=this._modeling,r=t.children;if(r){var o=r.filter((function(t){return!t.hidden}));if(o.length){var a=Object(It["b"])(o);if(e.x){var s=Object(at["e"])(e),c=Object(at["e"])(a);n={x:s.x-c.x,y:s.y-c.y}}else n={x:jl.x-a.x,y:jl.y-a.y};i.moveElements(r,n,e,{autoResize:!1})}else i.moveElements(r,{x:0,y:0},e,{autoResize:!1})}},Ml.prototype._showRecursively=function(t,e){var n=this,i=[];return t.forEach((function(t){t.hidden=!!e,i=i.concat(t),t.children&&(i=i.concat(n._showRecursively(t.children,t.collapsed||e)))})),i},Ml.prototype._addDiagram=function(t){var e=this._bpmnjs,n=e.getDefinitions().diagrams;return t.businessObject||(t=this._createNewDiagram(t)),n.push(t.di.$parent),t},Ml.prototype._createNewDiagram=function(t){var e=this._bpmnFactory,n=this._elementFactory,i=e.create("bpmndi:BPMNPlane",{bpmnElement:t}),r=e.create("bpmndi:BPMNDiagram",{plane:i});i.$parent=r;var o=n.createRoot({id:Object(Al["a"])(t),type:t.$type,di:i,businessObject:t,collapsed:!0});return o},Ml.prototype._removeDiagram=function(t){var e=this._bpmnjs,n=e.getDefinitions().diagrams,i=Object(l["f"])(n,(function(e){return e.plane.bpmnElement.id===t.id}));return n.splice(n.indexOf(i),1),i},Ml.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"],Cl.$inject=["injector","modeling"],r()(Cl,Dt["a"]),r()(Il,Dt["a"]),Il.$inject=["eventBus","modeling"];var Dl=500;function Rl(t,e,n,i){function r(t){t.length&&t.forEach((function(t){"label"!==t.type||t.businessObject.name||(t.hidden=!0)}))}function o(t,e){var n,i,r=t.children,o=e;return n=Ll(r).concat([t]),i=Wr(n),i?(o.width=Math.max(i.width,o.width),o.height=Math.max(i.height,o.height),o.x=i.x+(i.width-o.width)/2,o.y=i.y+(i.height-o.height)/2):(o.x=t.x+(t.width-o.width)/2,o.y=t.y+(t.height-o.height)/2),o}function a(t,e){return{x:t.x+(t.width-e.width)/2,y:t.y+(t.height-e.height)/2,width:e.width,height:e.height}}Dt["a"].call(this,t),this.executed(["shape.toggleCollapse"],Dl,(function(t){var e=t.context,n=e.shape;Object(St["c"])(n,"bpmn:SubProcess")&&(n.collapsed?Object(St["b"])(n).isExpanded=!1:(r(n.children),Object(St["b"])(n).isExpanded=!0))})),this.reverted(["shape.toggleCollapse"],Dl,(function(t){var e=t.context,n=e.shape;n.collapsed?Object(St["b"])(n).isExpanded=!1:Object(St["b"])(n).isExpanded=!0})),this.postExecuted(["shape.toggleCollapse"],Dl,(function(t){var i,r=t.context.shape,s=e.getDefaultSize(r);i=r.collapsed?a(r,s):o(r,s),n.resizeShape(r,i,null,{autoResize:!r.collapsed&&"nwse"})}))}function Ll(t){return t.filter((function(t){return!t.hidden}))}function Nl(t,e,n,i){e.invoke(Dt["a"],this),this.preExecute("shape.delete",(function(t){var e=t.context,r=e.shape,o=r.businessObject;Object(Ma["e"])(r)||(Object(St["c"])(r,"bpmn:Participant")&&Object(or["f"])(r)&&n.ids.unclaim(o.processRef.id),i.unclaimId(o.id,o))})),this.preExecute("connection.delete",(function(t){var e=t.context,n=e.connection,r=n.businessObject;i.unclaimId(r.id,r)})),this.preExecute("canvas.updateRoot",(function(){var e=t.getRootElement(),i=e.businessObject;Object(St["c"])(e,"bpmn:Collaboration")&&n.ids.unclaim(i.id)}))}function Bl(t,e){Dt["a"].call(this,t),this.preExecute("connection.delete",(function(t){var n=t.context,i=n.connection,r=i.source;zl(i,r)&&e.updateProperties(r,{default:null})}))}function zl(t,e){if(!Object(St["c"])(t,"bpmn:SequenceFlow"))return!1;var n=Object(St["a"])(e),i=Object(St["a"])(t);return n.get("default")===i}r()(Rl,Dt["a"]),Rl.$inject=["eventBus","elementFactory","modeling"],r()(Nl,Dt["a"]),Nl.$inject=["canvas","injector","moddle","modeling"],r()(Bl,Dt["a"]),Bl.$inject=["eventBus","modeling"];var Fl=500,Vl=5e3;function Hl(t,e,n){var i;function r(){return i=i||new Gl,i.enter(),i}function o(){if(!i)throw new Error(n("out of bounds release"));return i}function a(){if(!i)throw new Error(n("out of bounds release"));var t=i.leave();return t&&(e.updateLaneRefs(i.flowNodes,i.lanes),i=null),t}Dt["a"].call(this,t);var s=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(s,Vl,(function(t){r()})),this.postExecuted(s,Fl,(function(t){a()})),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],(function(t){var e=t.context,n=e.shape,i=o();n.labelTarget||(Object(St["c"])(n,"bpmn:Lane")&&i.addLane(n),Object(St["c"])(n,"bpmn:FlowNode")&&i.addFlowNode(n))}))}function Gl(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(t){this.lanes.push(t)},this.addFlowNode=function(t){this.flowNodes.push(t)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}Hl.$inject=["eventBus","modeling","translate"],r()(Hl,Dt["a"]);var ql={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior"],adaptiveLabelPositioningBehavior:["type",qa],appendBehavior:["type",Xa],associationBehavior:["type",Ka],attachEventBehavior:["type",Ja],boundaryEventBehavior:["type",is],createBehavior:["type",rs],createDataObjectBehavior:["type",os],createParticipantBehavior:["type",us],dataInputAssociationBehavior:["type",ms],dataStoreBehavior:["type",_s],deleteLaneBehavior:["type",Os],detachEventBehavior:["type",Es],dropOnFlowBehavior:["type",js],eventBasedGatewayBehavior:["type",Ps],fixHoverBehavior:["type",Ls],groupBehavior:["type",Bs],importDockingFix:["type",Fs],isHorizontalFix:["type",Hs],labelBehavior:["type",Ec],messageFlowBehavior:["type",zc],modelingFeedback:["type",Gc],removeElementBehavior:["type",Wc],removeEmbeddedLabelBoundsBehavior:["type",qc],removeParticipantBehavior:["type",Yc],replaceConnectionBehavior:["type",Zc],replaceElementBehaviour:["type",Xc],resizeBehavior:["type",nl],resizeLaneBehavior:["type",gl],rootElementReferenceBehavior:["type",vl],spaceToolBehavior:["type",bl],subProcessPlaneBehavior:["type",Ml],subProcessStartEventBehavior:["type",Cl],toggleCollapseConnectionBehaviour:["type",Il],toggleElementCollapseBehaviour:["type",Rl],unclaimIdBehavior:["type",Nl],unsetDefaultFlowBehavior:["type",Bl],updateFlowNodeRefsBehavior:["type",Hl]};function Wl(t,e){var n=Object(at["f"])(t,e,-15);return"intersect"!==n?n:null}function Ul(t){zt.call(this,t)}function $l(t){return Yl(t)?null:Object(St["d"])(t,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}function Yl(t){return!t||Object(Ma["e"])(t)}function Zl(t,e){return t===e}function Xl(t){do{if(Object(St["c"])(t,"bpmn:Process"))return Object(St["a"])(t);if(Object(St["c"])(t,"bpmn:Participant"))return Object(St["a"])(t).processRef||Object(St["a"])(t)}while(t=t.parent)}function Kl(t){return Object(St["c"])(t,"bpmn:TextAnnotation")}function Ql(t){return Object(St["c"])(t,"bpmn:Group")&&!t.labelTarget}function Jl(t){return Object(St["c"])(t,"bpmn:BoundaryEvent")&&au(t,"bpmn:CompensateEventDefinition")}function tu(t){return Object(St["a"])(t).isForCompensation}function eu(t,e){var n=Xl(t),i=Xl(e);return n===i}function nu(t){return Object(St["c"])(t,"bpmn:InteractionNode")&&!Object(St["c"])(t,"bpmn:BoundaryEvent")&&(!Object(St["c"])(t,"bpmn:Event")||Object(St["c"])(t,"bpmn:ThrowEvent")&&su(t,"bpmn:MessageEventDefinition"))}function iu(t){return Object(St["c"])(t,"bpmn:InteractionNode")&&!tu(t)&&(!Object(St["c"])(t,"bpmn:Event")||Object(St["c"])(t,"bpmn:CatchEvent")&&su(t,"bpmn:MessageEventDefinition"))&&!(Object(St["c"])(t,"bpmn:BoundaryEvent")&&!au(t,"bpmn:MessageEventDefinition"))}function ru(t){var e=t;while(e=e.parent){if(Object(St["c"])(e,"bpmn:FlowElementsContainer"))return Object(St["a"])(e);if(Object(St["c"])(e,"bpmn:Participant"))return Object(St["a"])(e).processRef}return null}function ou(t,e){var n=ru(t),i=ru(e);return n===i}function au(t,e){var n=Object(St["a"])(t);return!!Object(l["f"])(n.eventDefinitions||[],(function(t){return Object(St["c"])(t,e)}))}function su(t,e){var n=Object(St["a"])(t);return(n.eventDefinitions||[]).every((function(t){return Object(St["c"])(t,e)}))}function cu(t){return Object(St["c"])(t,"bpmn:FlowNode")&&!Object(St["c"])(t,"bpmn:EndEvent")&&!Object(or["e"])(t)&&!(Object(St["c"])(t,"bpmn:IntermediateThrowEvent")&&au(t,"bpmn:LinkEventDefinition"))&&!Jl(t)&&!tu(t)}function lu(t){return Object(St["c"])(t,"bpmn:FlowNode")&&!Object(St["c"])(t,"bpmn:StartEvent")&&!Object(St["c"])(t,"bpmn:BoundaryEvent")&&!Object(or["e"])(t)&&!(Object(St["c"])(t,"bpmn:IntermediateCatchEvent")&&au(t,"bpmn:LinkEventDefinition"))&&!tu(t)}function uu(t){return Object(St["c"])(t,"bpmn:ReceiveTask")||Object(St["c"])(t,"bpmn:IntermediateCatchEvent")&&(au(t,"bpmn:MessageEventDefinition")||au(t,"bpmn:TimerEventDefinition")||au(t,"bpmn:ConditionalEventDefinition")||au(t,"bpmn:SignalEventDefinition"))}function hu(t){return t.waypoints}function pu(t){var e=[];while(t)t=t.parent,t&&e.push(t);return e}function du(t,e){var n=pu(e);return-1!==n.indexOf(t)}function fu(t,e,n){if(Yl(t)||Yl(e))return null;if(!Object(St["c"])(n,"bpmn:DataAssociation")){if(Cu(t,e))return{type:"bpmn:MessageFlow"};if(Pu(t,e))return{type:"bpmn:SequenceFlow"}}var i=Iu(t,e);return i||(Jl(t)&&tu(e)?{type:"bpmn:Association",associationDirection:"One"}:!!Mu(t,e)&&{type:"bpmn:Association"})}function gu(t,e,n){return!(!Object(Ma["e"])(t)&&!Ql(t))||!(Object(St["c"])(e,"bpmn:Participant")&&!Object(or["f"])(e))&&(Object(St["c"])(t,"bpmn:Participant")?Object(St["c"])(e,"bpmn:Process")||Object(St["c"])(e,"bpmn:Collaboration"):Object(St["d"])(t,["bpmn:DataInput","bpmn:DataOutput"])&&t.parent?e===t.parent:Object(St["c"])(t,"bpmn:Lane")?Object(St["c"])(e,"bpmn:Participant")||Object(St["c"])(e,"bpmn:Lane"):!(Object(St["c"])(t,"bpmn:BoundaryEvent")&&!mu(t))&&(Object(St["c"])(t,"bpmn:FlowElement")&&!Object(St["c"])(t,"bpmn:DataStoreReference")?Object(St["c"])(e,"bpmn:FlowElementsContainer")?Object(or["f"])(e):Object(St["d"])(e,["bpmn:Participant","bpmn:Lane"]):Object(St["c"])(t,"bpmn:DataStoreReference")&&Object(St["c"])(e,"bpmn:Collaboration")?Object(l["A"])(Object(St["a"])(e).get("participants"),(function(t){return!!t.get("processRef")})):Object(St["d"])(t,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?Object(St["d"])(e,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!Object(St["c"])(t,"bpmn:MessageFlow")&&(Object(St["c"])(e,"bpmn:Collaboration")||t.source.parent==e||t.target.parent==e)))}function mu(t){return Object(St["a"])(t).cancelActivity&&(bu(t)||xu(t))}function vu(t){return!Object(Ma["e"])(t)&&Object(St["c"])(t,"bpmn:BoundaryEvent")}function yu(t){return Object(St["c"])(t,"bpmn:Lane")}function _u(t){return!!vu(t)||(!(!Object(St["c"])(t,"bpmn:IntermediateThrowEvent")||!bu(t))||Object(St["c"])(t,"bpmn:IntermediateCatchEvent")&&xu(t))}function bu(t){var e=Object(St["a"])(t);return e&&!(e.eventDefinitions&&e.eventDefinitions.length)}function xu(t){return wu(t,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function wu(t,e){return e.some((function(e){return au(t,e)}))}function Ou(t){return Object(St["c"])(t,"bpmn:ReceiveTask")&&Object(l["f"])(t.incoming,(function(t){return Object(St["c"])(t.source,"bpmn:EventBasedGateway")}))}function Su(t,e,n,i){if(Array.isArray(t)||(t=[t]),1!==t.length)return!1;var r=t[0];return!Object(Ma["e"])(r)&&(!!_u(r)&&(!Object(or["e"])(e)&&(!(!Object(St["c"])(e,"bpmn:Activity")||tu(e))&&(!(i&&!Wl(i,e))&&(!Ou(e)&&"attach")))))}function Eu(t,e,n){if(!e)return!1;var i={replacements:[]};return Object(l["i"])(t,(function(t){Object(or["e"])(e)||Object(St["c"])(t,"bpmn:StartEvent")&&"label"!==t.type&&gu(t,e)&&(Object(or["g"])(t)||i.replacements.push({oldElementId:t.id,newElementType:"bpmn:StartEvent"}),(Object(or["b"])(t)||Object(or["c"])(t)||Object(or["a"])(t))&&i.replacements.push({oldElementId:t.id,newElementType:"bpmn:StartEvent"}),wu(t,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&Object(St["c"])(e,"bpmn:SubProcess")&&i.replacements.push({oldElementId:t.id,newElementType:"bpmn:StartEvent"})),Object(St["c"])(e,"bpmn:Transaction")||au(t,"bpmn:CancelEventDefinition")&&"label"!==t.type&&(Object(St["c"])(t,"bpmn:EndEvent")&&gu(t,e)&&i.replacements.push({oldElementId:t.id,newElementType:"bpmn:EndEvent"}),Object(St["c"])(t,"bpmn:BoundaryEvent")&&Su(t,e,null,n)&&i.replacements.push({oldElementId:t.id,newElementType:"bpmn:BoundaryEvent"}))})),!!i.replacements.length&&i}function Au(t,e){return!Object(l["A"])(t,yu)&&(!e||t.every((function(t){return gu(t,e)})))}function ku(t,e,n,i){return!!e&&(!(!Object(Ma["e"])(t)&&!Ql(t))||!Zl(n,e)&&((!n||!du(n,e))&&(gu(t,e,i)||Du(t,e,i))))}function Tu(t,e){return Object(St["c"])(t,"bpmn:SubProcess")?Object(or["f"])(t)&&(!e||e.width>=100&&e.height>=80):Object(St["c"])(t,"bpmn:Lane")?!e||e.width>=130&&e.height>=60:Object(St["c"])(t,"bpmn:Participant")?!e||e.width>=250&&e.height>=50:!!Kl(t)||!!Ql(t)}function ju(t,e){var n=Kl(t),i=Kl(e);return(n||i)&&n!==i}function Mu(t,e){return!hu(t)&&!hu(e)&&(!(!Jl(t)||!tu(e))||!du(e,t)&&!du(t,e)&&(!!ju(t,e)||!!Iu(t,e)))}function Cu(t,e){return!(zu(t)&&!zu(e))&&(nu(t)&&iu(e)&&!eu(t,e))}function Pu(t,e){return!(uu(e)&&e.incoming.length>0&&Bu(e.incoming)&&!Object(St["c"])(t,"bpmn:EventBasedGateway"))&&(cu(t)&&lu(e)&&ou(t,e)&&!(Object(St["c"])(t,"bpmn:EventBasedGateway")&&!uu(e)))}function Iu(t,e){return Object(St["d"])(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Object(St["d"])(e,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!Object(St["d"])(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!Object(St["d"])(t,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function Du(t,e,n){if(!e)return!1;if(Array.isArray(t)){if(1!==t.length)return!1;t=t[0]}return e.source!==t&&e.target!==t&&(Object(St["d"])(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Object(Ma["e"])(e)&&Object(St["c"])(t,"bpmn:FlowNode")&&!Object(St["c"])(t,"bpmn:BoundaryEvent")&&gu(t,e.parent,n))}function Ru(t,e){return t&&e&&-1!==t.indexOf(e)}function Lu(t,e){return!!Object(Ma["e"])(e)||!(Object(St["c"])(e,"bpmn:Lane")&&!Ru(t,e.parent))}function Nu(t){if(t&&t.source)return Object(St["c"])(t.source,"bpmn:EventBasedGateway")}function Bu(t){return t=t||[],t.some(Nu)}function zu(t){return Pr(t,"bpmn:Process")||Pr(t,"bpmn:Collaboration")}r()(Ul,zt),Ul.$inject=["eventBus"],Ul.prototype.init=function(){this.addRule("connection.start",(function(t){var e=t.source;return $l(e)})),this.addRule("connection.create",(function(t){var e=t.source,n=t.target,i=t.hints||{},r=i.targetParent,o=i.targetAttach;if(o)return!1;r&&(n.parent=r);try{return fu(e,n)}finally{r&&(n.parent=null)}})),this.addRule("connection.reconnect",(function(t){var e=t.connection,n=t.source,i=t.target;return fu(n,i,e)})),this.addRule("connection.updateWaypoints",(function(t){return{type:t.connection.type}})),this.addRule("shape.resize",(function(t){var e=t.shape,n=t.newBounds;return Tu(e,n)})),this.addRule("elements.create",(function(t){var e=t.elements,n=t.position,i=t.target;return!(hu(i)&&!Du(e,i,n))&&Object(l["d"])(e,(function(t){return hu(t)?fu(t.source,t.target,t):t.host?Su(t,t.host,null,n):ku(t,i,null,n)}))})),this.addRule("elements.move",(function(t){var e=t.target,n=t.shapes,i=t.position;return Su(n,e,null,i)||Eu(n,e,i)||Au(n,e,i)||Du(n,e,i)})),this.addRule("shape.create",(function(t){return ku(t.shape,t.target,t.source,t.position)})),this.addRule("shape.attach",(function(t){return Su(t.shape,t.target,null,t.position)})),this.addRule("element.copy",(function(t){var e=t.element,n=t.elements;return Lu(n,e)}))},Ul.prototype.canConnectMessageFlow=Cu,Ul.prototype.canConnectSequenceFlow=Pu,Ul.prototype.canConnectDataAssociation=Iu,Ul.prototype.canConnectAssociation=Mu,Ul.prototype.canMove=Au,Ul.prototype.canAttach=Su,Ul.prototype.canReplace=Eu,Ul.prototype.canDrop=gu,Ul.prototype.canInsert=Du,Ul.prototype.canCreate=ku,Ul.prototype.canConnect=fu,Ul.prototype.canResize=Tu,Ul.prototype.canCopy=Lu;var Fu={__depends__:[ce],__init__:["bpmnRules"],bpmnRules:["type",Ul]},Vu=2e3;function Hu(t,e){function n(){var t=e.getRootElements();Object(l["i"])(t,(function(t){var e,n,i=Object(St["b"])(t);e=Object(It["h"])([t],!1),e=Object(l["e"])(e,(function(e){return e!==t&&!e.labelTarget})),n=Object(l["u"])(e,St["b"]),i.set("planeElement",n)}))}t.on("saveXML.start",Vu,n)}Hu.$inject=["eventBus","canvas"];var Gu={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",Hu]},qu=n("b71e");function Wu(t){Dt["a"].call(this,t);var e=this;this.preExecute(["shape.create","connection.create"],(function(t){var n=t.context,i=n.shape||n.connection,r=n.parent,o=e.getOrdering(i,r);o&&(void 0!==o.parent&&(n.parent=o.parent),n.parentIndex=o.index)})),this.preExecute(["shape.move","connection.move"],(function(t){var n=t.context,i=n.shape||n.connection,r=n.newParent||i.parent,o=e.getOrdering(i,r);o&&(void 0!==o.parent&&(n.newParent=o.parent),n.newParentIndex=o.index)}))}function Uu(t,e,n){Wu.call(this,t);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function r(t){if(t.labelTarget)return{level:10};var e=Object(l["f"])(i,(function(e){return Object(St["d"])(t,[e.type])}));return e&&e.order||{level:1}}function o(t){var e=t.order;if(e||(t.order=e=r(t)),!e)throw new Error("no order for <"+t.id+">");return e}function a(t,e,n){var i=e;while(i){if(Object(St["d"])(i,n))break;i=i.parent}if(!i)throw new Error("no parent for <"+t.id+"> in <"+(e&&e.id)+">");return i}this.getOrdering=function(t,n){if(t.labelTarget)return{parent:e.findRoot(n)||e.getRootElement(),index:-1};var i=o(t);i.containers&&(n=a(t,n,i.containers));var r=n.children.indexOf(t),s=Object(l["g"])(n.children,(function(e){return!(!t.labelTarget&&e.labelTarget)&&i.level");this._pushAction(t),e||(this._fire(i,"preExecute",t),o.preExecute&&o.preExecute(r),this._fire(i,"preExecuted",t)),this._atomicDo((function(){n._fire(i,"execute",t),o.execute&&n._markDirty(o.execute(r)),n._executedAction(t,e),n._fire(i,"executed",t)})),e||(this._fire(i,"postExecute",t),o.postExecute&&o.postExecute(r),this._fire(i,"postExecuted",t)),this._popAction(t)},Yu.prototype._pushAction=function(t){var e=this._currentExecution,n=e.actions,i=n[0];if(e.atomic)throw new Error("illegal invocation in or phase (action: "+t.command+")");t.id||(t.id=i&&i.id||this._createId()),n.push(t)},Yu.prototype._popAction=function(){var t=this._currentExecution,e=t.trigger,n=t.actions,i=t.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:Object(l["D"])("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:e}),t.trigger=null)},Yu.prototype._markDirty=function(t){var e=this._currentExecution;t&&(t=Object(l["l"])(t)?t:[t],e.dirty=e.dirty.concat(t))},Yu.prototype._executedAction=function(t,e){var n=++this._stackIdx;e||this._stack.splice(n,this._stack.length,t)},Yu.prototype._revertedAction=function(t){this._stackIdx--},Yu.prototype._getHandler=function(t){return this._handlerMap[t]},Yu.prototype._setHandler=function(t,e){if(!t||!e)throw new Error("command and handler required");if(this._handlerMap[t])throw new Error("overriding handler for command <"+t+">");this._handlerMap[t]=e};var Zu={commandStack:["type",Yu]},Xu=n("1651"),Ku=new Xu["a"]("tt");function Qu(t){var e=Object(u["g"])('
');return Object(u["a"])(e,{position:"absolute",width:"0",height:"0"}),t.insertBefore(e,t.firstChild),e}function Ju(t,e,n){Object(u["a"])(t,{left:e+"px",top:n+"px"})}function th(t,e){t.style.display=!1===e?"none":""}var eh="djs-tooltip",nh="."+eh;function ih(t,e){this._eventBus=t,this._canvas=e,this._ids=Ku,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=Qu(e.getContainer());var n=this;u["f"].bind(this._tooltipRoot,nh,"mousedown",(function(t){t.stopPropagation()})),u["f"].bind(this._tooltipRoot,nh,"mouseover",(function(t){n.trigger("mouseover",t)})),u["f"].bind(this._tooltipRoot,nh,"mouseout",(function(t){n.trigger("mouseout",t)})),this._init()}ih.$inject=["eventBus","canvas"],ih.prototype.add=function(t){if(!t.position)throw new Error("must specifiy tooltip position");if(!t.html)throw new Error("must specifiy tooltip html");var e=this._ids.next();return t=Object(l["a"])({},this._tooltipDefaults,t,{id:e}),this._addTooltip(t),t.timeout&&this.setTimeout(t),e},ih.prototype.trigger=function(t,e){var n=e.delegateTarget||e.target,i=this.get(Object(u["b"])(n,"data-tooltip-id"));i&&("mouseover"===t&&i.timeout&&this.clearTimeout(i),"mouseout"===t&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},ih.prototype.get=function(t){return"string"!==typeof t&&(t=t.id),this._tooltips[t]},ih.prototype.clearTimeout=function(t){if(t=this.get(t),t){var e=t.removeTimer;e&&(clearTimeout(e),t.removeTimer=null)}},ih.prototype.setTimeout=function(t){if(t=this.get(t),t){this.clearTimeout(t);var e=this;t.removeTimer=setTimeout((function(){e.remove(t)}),t.timeout)}},ih.prototype.remove=function(t){var e=this.get(t);e&&(Object(u["l"])(e.html),Object(u["l"])(e.htmlContainer),delete e.htmlContainer,delete this._tooltips[e.id])},ih.prototype.show=function(){th(this._tooltipRoot)},ih.prototype.hide=function(){th(this._tooltipRoot,!1)},ih.prototype._updateRoot=function(t){var e=t.scale||1,n=t.scale||1,i="matrix("+e+",0,0,"+n+","+-1*t.x*e+","+-1*t.y*n+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},ih.prototype._addTooltip=function(t){var e,n=t.id,i=t.html,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Object(l["r"])(i)&&(i=Object(u["g"])(i)),e=Object(u["g"])('
'),Object(u["a"])(e,{position:"absolute"}),e.appendChild(i),t.type&&Object(u["c"])(e).add("djs-tooltip-"+t.type),t.className&&Object(u["c"])(e).add(t.className),t.htmlContainer=e,r.appendChild(e),this._tooltips[n]=t,this._updateTooltip(t)},ih.prototype._updateTooltip=function(t){var e=t.position,n=t.htmlContainer;Ju(n,e.x,e.y)},ih.prototype._updateTooltipVisibilty=function(t){Object(l["i"])(this._tooltips,(function(e){var n=e.show,i=e.htmlContainer,r=!0;n&&((n.minZoom>t.scale||n.maxZoom0)return"e";if(e<0)return"w"}if("y"===t){if(e>0)return"s";if(e<0)return"n"}return null}function Ah(t,e){var n=[];return Object(l["i"])(t.concat(e),(function(i){var r=i.incoming,o=i.outgoing;Object(l["i"])(r.concat(o),(function(i){var r=i.source,o=i.target;(kh(t,r)||kh(t,o)||kh(e,r)||kh(e,o))&&(kh(n,i)||n.push(i))}))})),n}function kh(t,e){return-1!==t.indexOf(e)}function Th(t,e,n){var i=t.x,r=t.y,o=t.width,a=t.height,s=n.x,c=n.y;switch(e){case"n":return{x:i,y:r+c,width:o,height:a-c};case"s":return{x:i,y:r,width:o,height:a+c};case"w":return{x:i+s,y:r,width:o-s,height:a};case"e":return{x:i,y:r,width:o+s,height:a};default:throw new Error("unknown direction: "+e)}}var jh=Math.abs,Mh=Math.round,Ch={x:"width",y:"height"},Ph="crosshair",Ih={n:"top",w:"left",s:"bottom",e:"right"},Dh=1500,Rh={n:"s",w:"e",s:"n",e:"w"},Lh=20;function Nh(t,e,n,i,r,o,a){this._canvas=t,this._dragging=e,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=o,this._mouse=a;var s=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",(function(t){n.once("spaceTool.selection.ended",(function(){s.activateMakeSpace(t.originalEvent)}))})),n.on("spaceTool.move",Dh,(function(t){var e=t.context,n=e.initialized;n||(n=e.initialized=s.init(t,e)),n&&zh(t)})),n.on("spaceTool.end",(function(t){var e=t.context,i=e.axis,r=e.direction,o=e.movingShapes,a=e.resizingShapes,c=e.start;if(e.initialized){zh(t);var l={x:0,y:0};l[i]=Mh(t["d"+i]),s.makeSpace(o,a,l,r,c),n.once("spaceTool.ended",(function(t){s.activateSelection(t.originalEvent,!0,!0)}))}}))}function Bh(t){return{top:t.top-Lh,right:t.right+Lh,bottom:t.bottom+Lh,left:t.left-Lh}}function zh(t){var e,n,i=t.context,r=i.spaceToolConstraints;r&&(Object(l["p"])(r.left)&&(e=Math.max(t.x,r.left),t.dx=t.dx+e-t.x,t.x=e),Object(l["p"])(r.right)&&(e=Math.min(t.x,r.right),t.dx=t.dx+e-t.x,t.x=e),Object(l["p"])(r.top)&&(n=Math.max(t.y,r.top),t.dy=t.dy+n-t.y,t.y=n),Object(l["p"])(r.bottom)&&(n=Math.min(t.y,r.bottom),t.dy=t.dy+n-t.y,t.y=n))}function Fh(t,e,n,i,r){var o=t.movingShapes,a=t.resizingShapes;if(a.length){var s,c,u={};return Object(l["i"])(a,(function(t){var h,p,d,f=Object(at["b"])(t),g=Object(l["e"])(t.children,(function(t){return!Hh(t)&&!Gh(t)&&!Vh(o,t)&&!Vh(a,t)})),m=Object(l["e"])(t.children,(function(t){return!Hh(t)&&!Gh(t)&&Vh(o,t)}));g.length&&(p=Bh(Object(at["b"])(Object(It["b"])(g))),h=i-f[Ih[n]]+p[Ih[n]],"n"===n?u.bottom=c=Object(l["p"])(c)?Math.min(c,h):h:"w"===n?u.right=c=Object(l["p"])(c)?Math.min(c,h):h:"s"===n?u.top=s=Object(l["p"])(s)?Math.max(s,h):h:"e"===n&&(u.left=s=Object(l["p"])(s)?Math.max(s,h):h)),m.length&&(d=Bh(Object(at["b"])(Object(It["b"])(m))),h=i-d[Ih[Rh[n]]]+f[Ih[Rh[n]]],"n"===n?u.bottom=c=Object(l["p"])(c)?Math.min(c,h):h:"w"===n?u.right=c=Object(l["p"])(c)?Math.min(c,h):h:"s"===n?u.top=s=Object(l["p"])(s)?Math.max(s,h):h:"e"===n&&(u.left=s=Object(l["p"])(s)?Math.max(s,h):h));var v=r&&r[t.id];v&&("n"===n?(h=i+t[Ch[e]]-v[Ch[e]],u.bottom=c=Object(l["p"])(c)?Math.min(c,h):h):"w"===n?(h=i+t[Ch[e]]-v[Ch[e]],u.right=c=Object(l["p"])(c)?Math.min(c,h):h):"s"===n?(h=i-t[Ch[e]]+v[Ch[e]],u.top=s=Object(l["p"])(s)?Math.max(s,h):h):"e"===n&&(h=i-t[Ch[e]]+v[Ch[e]],u.left=s=Object(l["p"])(s)?Math.max(s,h):h))})),u}}function Vh(t,e){return-1!==t.indexOf(e)}function Hh(t){return!!t.waypoints}function Gh(t){return!!t.labelTarget}Nh.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],Nh.prototype.activateSelection=function(t,e,n){this._dragging.init(t,"spaceTool.selection",{autoActivate:e,cursor:Ph,data:{context:{reactivate:n}},trapClick:!1})},Nh.prototype.activateMakeSpace=function(t){this._dragging.init(t,"spaceTool",{autoActivate:!0,cursor:Ph,data:{context:{}}})},Nh.prototype.makeSpace=function(t,e,n,i,r){return this._modeling.createSpace(t,e,n,i,r)},Nh.prototype.init=function(t,e){var n=jh(t.dx)>jh(t.dy)?"x":"y",i=t["d"+n],r=t[n]-i;if(jh(i)<5)return!1;i<0&&(i*=-1),Object(Be["a"])(t)&&(i*=-1);var o=Eh(n,i),a=this._canvas.getRootElement(),s=Object(It["h"])(a,!0),c=this.calculateAdjustments(s,n,i,r),u=this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:c.resizingShapes,start:r}),h=Fh(c,n,o,r,u);return Object(l["a"])(e,c,{axis:n,direction:o,spaceToolConstraints:h,start:r}),Object(Yt["a"])("resize-"+("x"===n?"ew":"ns")),!0},Nh.prototype.calculateAdjustments=function(t,e,n,i){var r=this._rules,o=[],a=[];return Object(l["i"])(t,(function(t){if(t.parent&&!Hh(t)){var s=t[e],c=s+t[Ch[e]];return n>0&&s>i||n<0&&ci&&r.allowed("shape.resize",{shape:t})?a.push(t):void 0}})),{movingShapes:o,resizingShapes:a}},Nh.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateSelection(t,!!t)},Nh.prototype.isActive=function(){var t=this._dragging.context();return t&&/^spaceTool/.test(t.prefix)};var qh="djs-dragging",Wh="djs-resizing",Uh=250,$h=Math.max;function Yh(t,e,n,i,r){function o(t,e){Object(l["i"])(t,(function(t){r.addDragger(t,e),n.addMarker(t,qh)}))}t.on("spaceTool.selection.start",(function(t){var e=n.getLayer("space"),r=t.context,o={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},a=Object(X["f"])("g");Object(X["b"])(a,i.cls("djs-crosshair-group",["no-events"])),Object(X["a"])(e,a);var s=Object(X["f"])("path");Object(X["b"])(s,"d",o.x),Object(X["c"])(s).add("djs-crosshair"),Object(X["a"])(a,s);var c=Object(X["f"])("path");Object(X["b"])(c,"d",o.y),Object(X["c"])(c).add("djs-crosshair"),Object(X["a"])(a,c),r.crosshairGroup=a})),t.on("spaceTool.selection.move",(function(t){var e=t.context.crosshairGroup;Object(ue["c"])(e,t.x,t.y)})),t.on("spaceTool.selection.cleanup",(function(t){var e=t.context,n=e.crosshairGroup;n&&Object(X["j"])(n)})),t.on("spaceTool.move",Uh,(function(t){var a=t.context,s=a.line,c=a.axis,u=a.movingShapes,h=a.resizingShapes;if(a.initialized){if(!a.dragGroup){var p=n.getLayer("space");s=Object(X["f"])("path"),Object(X["b"])(s,"d","M0,0 L0,0"),Object(X["c"])(s).add("djs-crosshair"),Object(X["a"])(p,s),a.line=s;var d=Object(X["f"])("g");Object(X["b"])(d,i.cls("djs-drag-group",["no-events"])),Object(X["a"])(n.getActiveLayer(),d),o(u,d);var f=a.movingConnections=e.filter((function(t){var e=!1;Object(l["i"])(u,(function(n){Object(l["i"])(n.outgoing,(function(n){t===n&&(e=!0)}))}));var n=!1;Object(l["i"])(u,(function(e){Object(l["i"])(e.incoming,(function(e){t===e&&(n=!0)}))}));var i=!1;Object(l["i"])(h,(function(e){Object(l["i"])(e.outgoing,(function(e){t===e&&(i=!0)}))}));var r=!1;return Object(l["i"])(h,(function(e){Object(l["i"])(e.incoming,(function(e){t===e&&(r=!0)}))})),Zh(t)&&(e||i)&&(n||r)}));o(f,d),a.dragGroup=d}if(!a.frameGroup){var g=Object(X["f"])("g");Object(X["b"])(g,i.cls("djs-frame-group",["no-events"])),Object(X["a"])(n.getActiveLayer(),g);var m=[];Object(l["i"])(h,(function(t){var e=r.addFrame(t,g),i=e.getBBox();m.push({element:e,initialBounds:i}),n.addMarker(t,Wh)})),a.frameGroup=g,a.frames=m}var v={x:"M"+t.x+", -10000 L"+t.x+", 10000",y:"M -10000, "+t.y+" L 10000, "+t.y};Object(X["b"])(s,{d:v[c]});var y={x:"y",y:"x"},_={x:t.dx,y:t.dy};_[y[a.axis]]=0,Object(ue["c"])(a.dragGroup,_.x,_.y),Object(l["i"])(a.frames,(function(t){var e,n,i=t.element,r=t.initialBounds;"e"===a.direction?Object(X["b"])(i,{width:$h(r.width+_.x,5)}):(e=$h(r.width-_.x,5),Object(X["b"])(i,{width:e,x:r.x+r.width-e})),"s"===a.direction?Object(X["b"])(i,{height:$h(r.height+_.y,5)}):(n=$h(r.height-_.y,5),Object(X["b"])(i,{height:n,y:r.y+r.height-n}))}))}})),t.on("spaceTool.cleanup",(function(t){var e=t.context,i=e.movingShapes,r=e.movingConnections,o=e.resizingShapes,a=e.line,s=e.dragGroup,c=e.frameGroup;Object(l["i"])(i,(function(t){n.removeMarker(t,qh)})),Object(l["i"])(r,(function(t){n.removeMarker(t,qh)})),s&&(Object(X["j"])(a),Object(X["j"])(s)),Object(l["i"])(o,(function(t){n.removeMarker(t,Wh)})),c&&Object(X["j"])(c)}))}function Zh(t){return t.waypoints}Yh.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];var Xh={__init__:["spaceToolPreview"],__depends__:[ie,ce,Sh,pi,Ni],spaceTool:["type",Nh],spaceToolPreview:["type",Yh]};function Kh(t){this._model=t}Kh.$inject=["moddle"],Kh.prototype._needsId=function(t){return Object(St["d"])(t,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},Kh.prototype._ensureId=function(t){var e;t.id?this._model.ids.claim(t.id,t):(e=Object(St["c"])(t,"bpmn:Activity")?"Activity":Object(St["c"])(t,"bpmn:Event")?"Event":Object(St["c"])(t,"bpmn:Gateway")?"Gateway":Object(St["d"])(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(t.$type||"").replace(/^[^:]*:/g,""),e+="_",!t.id&&this._needsId(t)&&(t.id=this._model.ids.nextPrefixed(e,t)))},Kh.prototype.create=function(t,e){var n=this._model.create(t,e||{});return this._ensureId(n),n},Kh.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Kh.prototype.createDiShape=function(t,e){return this.create("bpmndi:BPMNShape",Object(l["a"])({bpmnElement:t,bounds:this.createDiBounds()},e))},Kh.prototype.createDiBounds=function(t){return this.create("dc:Bounds",t)},Kh.prototype.createDiWaypoints=function(t){var e=this;return Object(l["u"])(t,(function(t){return e.createDiWaypoint(t)}))},Kh.prototype.createDiWaypoint=function(t){return this.create("dc:Point",Object(l["x"])(t,["x","y"]))},Kh.prototype.createDiEdge=function(t,e){return this.create("bpmndi:BPMNEdge",Object(l["a"])({bpmnElement:t,waypoint:this.createDiWaypoints([])},e))},Kh.prototype.createDiPlane=function(t,e){return this.create("bpmndi:BPMNPlane",Object(l["a"])({bpmnElement:t},e))};var Qh=n("dd5f");function Jh(t,e,n,i){Dt["a"].call(this,t),this._bpmnFactory=e,this._translate=i;var r=this;function o(t){var e,i=t.context,r=i.hints||{};i.cropped||!1===r.createElementsBehavior||(e=i.connection,e.waypoints=n.getCroppedWaypoints(e),i.cropped=!0)}function a(t){var e=t.context;r.updateParent(e.shape||e.connection,e.oldParent)}function s(t){var e=t.context,n=e.shape||e.connection,i=e.parent||e.newParent;r.updateParent(n,i)}function c(t){var e=t.context,n=e.oldRoot,i=n.children;Object(l["i"])(i,(function(t){Object(St["c"])(t,"bpmn:BaseElement")&&r.updateParent(t)}))}function u(t){var e=t.context.shape;Object(St["c"])(e,"bpmn:BaseElement")&&r.updateBounds(e)}function h(t){r.updateConnection(t.context)}function p(t){r.updateConnectionWaypoints(t.context.connection)}function d(t){r.updateAttachment(t.context)}this.executed(["connection.layout","connection.create"],o),this.reverted(["connection.layout"],(function(t){delete t.context.cropped})),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],ep(a)),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],ep(s)),this.executed(["canvas.updateRoot"],c),this.reverted(["canvas.updateRoot"],c),this.executed(["shape.move","shape.create","shape.resize"],ep((function(t){"label"!==t.context.shape.type&&u(t)}))),this.reverted(["shape.move","shape.create","shape.resize"],ep((function(t){"label"!==t.context.shape.type&&u(t)}))),t.on("shape.changed",(function(t){"label"===t.element.type&&u({context:{shape:t.element}})})),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],ep(h)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],ep(h)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],ep(p)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],ep(p)),this.executed("connection.reconnect",ep((function(t){var e=t.context,n=e.connection,i=e.oldSource,r=e.newSource,o=Object(St["a"])(n),a=Object(St["a"])(i),s=Object(St["a"])(r);o.conditionExpression&&!Object(St["d"])(s,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(e.oldConditionExpression=o.conditionExpression,delete o.conditionExpression),i!==r&&a.default===o&&(e.oldDefault=a.default,delete a.default)}))),this.reverted("connection.reconnect",ep((function(t){var e=t.context,n=e.connection,i=e.oldSource,r=e.newSource,o=Object(St["a"])(n),a=Object(St["a"])(i),s=Object(St["a"])(r);e.oldConditionExpression&&(o.conditionExpression=e.oldConditionExpression),e.oldDefault&&(a.default=e.oldDefault,delete s.default)}))),this.executed(["element.updateAttachment"],ep(d)),this.reverted(["element.updateAttachment"],ep(d))}function tp(t){while(t&&!Object(St["c"])(t,"bpmn:Definitions"))t=t.$parent;return t}function ep(t){return function(e){var n=e.context,i=n.shape||n.connection;Object(St["c"])(i,"bpmn:BaseElement")&&t(e)}}function np(t){if(Object(St["c"])(t,"bpmn:Activity")){var e=Object(St["b"])(t);if(e){var n=e.get("label");if(n)return n.get("bounds")}}}r()(Jh,Dt["a"]),Jh.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Jh.prototype.updateAttachment=function(t){var e=t.shape,n=e.businessObject,i=e.host;n.attachedToRef=i&&i.businessObject},Jh.prototype.updateParent=function(t,e){if(!(t instanceof Qh["b"])&&!(Object(St["c"])(t,"bpmn:DataStoreReference")&&t.parent&&Object(St["c"])(t.parent,"bpmn:Collaboration"))){var n=t.parent,i=t.businessObject,r=Object(St["b"])(t),o=n&&n.businessObject,a=Object(St["b"])(n);Object(St["c"])(t,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,o,e&&e.businessObject),Object(St["c"])(t,"bpmn:DataOutputAssociation")&&(o=t.source?t.source.businessObject:null),Object(St["c"])(t,"bpmn:DataInputAssociation")&&(o=t.target?t.target.businessObject:null),this.updateSemanticParent(i,o),Object(St["c"])(t,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,o),this.updateDiParent(r,a)}},Jh.prototype.updateBounds=function(t){var e=Object(St["b"])(t),n=np(t);if(n){var i=Object(Xt["b"])(n,e.get("bounds"));Object(l["a"])(n,{x:t.x+i.x,y:t.y+i.y})}var r=t instanceof Qh["b"]?this._getLabel(e):e,o=r.bounds;o||(o=this._bpmnFactory.createDiBounds(),r.set("bounds",o)),Object(l["a"])(o,{x:t.x,y:t.y,width:t.width,height:t.height})},Jh.prototype.updateFlowNodeRefs=function(t,e,n){var i,r;n!==e&&(Object(St["c"])(n,"bpmn:Lane")&&(i=n.get("flowNodeRef"),Object(Ta["c"])(i,t)),Object(St["c"])(e,"bpmn:Lane")&&(r=e.get("flowNodeRef"),Object(Ta["a"])(r,t)))},Jh.prototype.updateDiConnection=function(t,e,n){var i=Object(St["b"])(t),r=Object(St["b"])(e),o=Object(St["b"])(n);i.sourceElement&&i.sourceElement.bpmnElement!==Object(St["a"])(e)&&(i.sourceElement=e&&r),i.targetElement&&i.targetElement.bpmnElement!==Object(St["a"])(n)&&(i.targetElement=n&&o)},Jh.prototype.updateDiParent=function(t,e){if(e&&!Object(St["c"])(e,"bpmndi:BPMNPlane")&&(e=e.$parent),t.$parent!==e){var n=(e||t.$parent).get("planeElement");e?(n.push(t),t.$parent=e):(Object(Ta["c"])(n,t),t.$parent=null)}},Jh.prototype.getLaneSet=function(t){var e,n;return Object(St["c"])(t,"bpmn:Lane")?(e=t.childLaneSet,e||(e=this._bpmnFactory.create("bpmn:LaneSet"),t.childLaneSet=e,e.$parent=t),e):(Object(St["c"])(t,"bpmn:Participant")&&(t=t.processRef),n=t.get("laneSets"),e=n[0],e||(e=this._bpmnFactory.create("bpmn:LaneSet"),e.$parent=t,n.push(e)),e)},Jh.prototype.updateSemanticParent=function(t,e,n){var i,r=this._translate;if(t.$parent!==e&&(!Object(St["c"])(t,"bpmn:DataInput")&&!Object(St["c"])(t,"bpmn:DataOutput")||(Object(St["c"])(e,"bpmn:Participant")&&"processRef"in e&&(e=e.processRef),!("ioSpecification"in e)||e.ioSpecification!==t.$parent))){if(Object(St["c"])(t,"bpmn:Lane"))e&&(e=this.getLaneSet(e)),i="lanes";else if(Object(St["c"])(t,"bpmn:FlowElement")){if(e)if(Object(St["c"])(e,"bpmn:Participant"))e=e.processRef;else if(Object(St["c"])(e,"bpmn:Lane"))do{e=e.$parent.$parent}while(Object(St["c"])(e,"bpmn:Lane"));i="flowElements"}else if(Object(St["c"])(t,"bpmn:Artifact")){while(e&&!Object(St["c"])(e,"bpmn:Process")&&!Object(St["c"])(e,"bpmn:SubProcess")&&!Object(St["c"])(e,"bpmn:Collaboration")){if(Object(St["c"])(e,"bpmn:Participant")){e=e.processRef;break}e=e.$parent}i="artifacts"}else if(Object(St["c"])(t,"bpmn:MessageFlow"))i="messageFlows";else if(Object(St["c"])(t,"bpmn:Participant")){i="participants";var o,a=t.processRef;a&&(o=tp(t.$parent||e),t.$parent&&(Object(Ta["c"])(o.get("rootElements"),a),a.$parent=null),e&&(Object(Ta["a"])(o.get("rootElements"),a),a.$parent=o))}else Object(St["c"])(t,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":Object(St["c"])(t,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:t.id,parent:e.id}));var s;if(t.$parent&&(s=t.$parent.get(i),Object(Ta["c"])(s,t)),e?(s=e.get(i),s.push(t),t.$parent=e):t.$parent=null,n){var c=n.get(i);Object(Ta["c"])(s,t),e&&(c||(c=[],e.set(i,c)),c.push(t))}}},Jh.prototype.updateConnectionWaypoints=function(t){var e=Object(St["b"])(t);e.set("waypoint",this._bpmnFactory.createDiWaypoints(t.waypoints))},Jh.prototype.updateConnection=function(t){var e,n=t.connection,i=Object(St["a"])(n),r=n.source,o=Object(St["a"])(r),a=n.target,s=Object(St["a"])(n.target);if(Object(St["c"])(i,"bpmn:DataAssociation"))Object(St["c"])(i,"bpmn:DataInputAssociation")?(i.get("sourceRef")[0]=o,e=t.parent||t.newParent||s,this.updateSemanticParent(i,s,e)):Object(St["c"])(i,"bpmn:DataOutputAssociation")&&(e=t.parent||t.newParent||o,this.updateSemanticParent(i,o,e),i.targetRef=s);else{var c=Object(St["c"])(i,"bpmn:SequenceFlow");i.sourceRef!==o&&(c&&(Object(Ta["c"])(i.sourceRef&&i.sourceRef.get("outgoing"),i),o&&o.get("outgoing")&&o.get("outgoing").push(i)),i.sourceRef=o),i.targetRef!==s&&(c&&(Object(Ta["c"])(i.targetRef&&i.targetRef.get("incoming"),i),s&&s.get("incoming")&&s.get("incoming").push(i)),i.targetRef=s)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,r,a)},Jh.prototype._getLabel=function(t){return t.label||(t.label=this._bpmnFactory.createDiLabel()),t.label};var ip=n("4888"),rp=n("7d09");function op(t,e,n){ip["a"].call(this),this._bpmnFactory=t,this._moddle=e,this._translate=n}function ap(t,e,n){Object(l["i"])(n,(function(n){void 0!==e[n]&&sp(t,e,n)}))}function sp(t,e,n){t[n]=e[n],delete e[n]}function cp(t){return Object(St["d"])(t,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])}function lp(t,e){this._modeling=t,this._canvas=e}function up(t){this._modeling=t}function hp(t,e){return Object(l["A"])(t.outgoing,(function(t){return t.target===e}))}function pp(t,e){this._canvas=t,this._layouter=e}r()(op,ip["a"]),op.$inject=["bpmnFactory","moddle","translate"],op.prototype.baseCreate=ip["a"].prototype.create,op.prototype.create=function(t,e){if("label"===t){var n=e.di||this._bpmnFactory.createDiLabel();return this.baseCreate(t,Object(l["a"])({type:"label",di:n},Ma["a"],e))}return this.createBpmnElement(t,e)},op.prototype.createBpmnElement=function(t,e){var n,i=this._translate;e=e||{};var r,o,a=e.businessObject,s=e.di;if(!a){if(!e.type)throw new Error(i("no shape type specified"));a=this._bpmnFactory.create(e.type),Object(rp["a"])(a)}if(!cp(s)){var c=Object(l["a"])(s||{},{id:a.id+"_di"});s="root"===t?this._bpmnFactory.createDiPlane(a,c):"connection"===t?this._bpmnFactory.createDiEdge(a,c):this._bpmnFactory.createDiShape(a,c)}return Object(St["c"])(a,"bpmn:Group")&&(e=Object(l["a"])({isFrame:!0},e)),ap(a,e,["processRef","isInterrupting","associationDirection","isForCompensation"]),e.isExpanded&&sp(s,e,"isExpanded"),Object(St["c"])(a,"bpmn:SubProcess")&&(e.collapsed=!Object(or["f"])(a,s)),Object(St["c"])(a,"bpmn:ExclusiveGateway")&&(s.isMarkerVisible=!0),e.eventDefinitionType&&(r=a.get("eventDefinitions")||[],o=this._bpmnFactory.create(e.eventDefinitionType,e.eventDefinitionAttrs),"bpmn:ConditionalEventDefinition"===e.eventDefinitionType&&(o.condition=this._bpmnFactory.create("bpmn:FormalExpression")),r.push(o),o.$parent=a,a.eventDefinitions=r,delete e.eventDefinitionType),n=this.getDefaultSize(a,s),e=Object(l["a"])({id:a.id},n,e,{businessObject:a,di:s}),this.baseCreate(t,e)},op.prototype.getDefaultSize=function(t,e){var n=Object(St["a"])(t);return e=e||Object(St["b"])(t),Object(St["c"])(n,"bpmn:SubProcess")?Object(or["f"])(n,e)?{width:350,height:200}:{width:100,height:80}:Object(St["c"])(n,"bpmn:Task")?{width:100,height:80}:Object(St["c"])(n,"bpmn:Gateway")?{width:50,height:50}:Object(St["c"])(n,"bpmn:Event")?{width:36,height:36}:Object(St["c"])(n,"bpmn:Participant")?Object(or["f"])(n,e)?{width:600,height:250}:{width:400,height:60}:Object(St["c"])(n,"bpmn:Lane")?{width:400,height:100}:Object(St["c"])(n,"bpmn:DataObjectReference")?{width:36,height:50}:Object(St["c"])(n,"bpmn:DataStoreReference")?{width:50,height:50}:Object(St["c"])(n,"bpmn:TextAnnotation")?{width:100,height:30}:Object(St["c"])(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},op.prototype.createParticipantShape=function(t){return Object(l["q"])(t)||(t={isExpanded:t}),t=Object(l["a"])({type:"bpmn:Participant"},t||{}),!1!==t.isExpanded&&(t.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(t)},lp.$inject=["modeling","canvas"],lp.prototype.preExecute=function(t){var e=this._modeling,n=t.elements,i=t.alignment;Object(l["i"])(n,(function(t){var n={x:0,y:0};i.left?n.x=i.left-t.x:i.right?n.x=i.right-t.width-t.x:i.center?n.x=i.center-Math.round(t.width/2)-t.x:i.top?n.y=i.top-t.y:i.bottom?n.y=i.bottom-t.height-t.y:i.middle&&(n.y=i.middle-Math.round(t.height/2)-t.y),e.moveElements([t],n,t.parent)}))},lp.prototype.postExecute=function(t){},up.$inject=["modeling"],up.prototype.preExecute=function(t){var e=t.source;if(!e)throw new Error("source required");var n=t.target||e.parent,i=t.shape,r=t.hints||{};i=t.shape=this._modeling.createShape(i,t.position,n,{attach:r.attach}),t.shape=i},up.prototype.postExecute=function(t){var e=t.hints||{};hp(t.source,t.shape)||(e.connectionTarget===t.source?this._modeling.connect(t.shape,t.source,t.connection):this._modeling.connect(t.source,t.shape,t.connection))},pp.$inject=["canvas","layouter"],pp.prototype.execute=function(t){var e=t.connection,n=t.source,i=t.target,r=t.parent,o=t.parentIndex,a=t.hints;if(!n||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return e.source=n,e.target=i,e.waypoints||(e.waypoints=this._layouter.layoutConnection(e,a)),this._canvas.addConnection(e,r,o),e},pp.prototype.revert=function(t){var e=t.connection;return this._canvas.removeConnection(e),e.source=null,e.target=null,e};var dp=Math.round;function fp(t){this._modeling=t}function gp(t){return!!t.waypoints}fp.$inject=["modeling"],fp.prototype.preExecute=function(t){var e=t.elements,n=t.parent,i=t.parentIndex,r=t.position,o=t.hints,a=this._modeling;Object(l["i"])(e,(function(t){Object(l["p"])(t.x)||(t.x=0),Object(l["p"])(t.y)||(t.y=0)}));var s=Object(l["e"])(e,(function(t){return!t.hidden})),c=Object(It["b"])(s);Object(l["i"])(e,(function(t){gp(t)&&(t.waypoints=Object(l["u"])(t.waypoints,(function(t){return{x:dp(t.x-c.x-c.width/2+r.x),y:dp(t.y-c.y-c.height/2+r.y)}}))),Object(l["a"])(t,{x:dp(t.x-c.x-c.width/2+r.x),y:dp(t.y-c.y-c.height/2+r.y)})}));var u=Object(It["e"])(e),h={};Object(l["i"])(e,(function(t){if(gp(t))h[t.id]=Object(l["p"])(i)?a.createConnection(h[t.source.id],h[t.target.id],i,t,t.parent||n,o):a.createConnection(h[t.source.id],h[t.target.id],t,t.parent||n,o);else{var e=Object(l["a"])({},o);-1===u.indexOf(t)&&(e.autoResize=!1),h[t.id]=Object(l["p"])(i)?a.createShape(t,Object(l["x"])(t,["x","y","width","height"]),t.parent||n,i,e):a.createShape(t,Object(l["x"])(t,["x","y","width","height"]),t.parent||n,e)}})),t.elements=Object(l["E"])(h)};var mp=Math.round;function vp(t){this._canvas=t}function yp(t){vp.call(this,t)}vp.$inject=["canvas"],vp.prototype.execute=function(t){var e=t.shape,n=t.position,i=t.parent,r=t.parentIndex;if(!i)throw new Error("parent required");if(!n)throw new Error("position required");return void 0!==n.width?Object(l["a"])(e,n):Object(l["a"])(e,{x:n.x-mp(e.width/2),y:n.y-mp(e.height/2)}),this._canvas.addShape(e,i,r),e},vp.prototype.revert=function(t){var e=t.shape;return this._canvas.removeShape(e),e},Object(Pt["a"])(yp,vp),yp.$inject=["canvas"];var _p=vp.prototype.execute;yp.prototype.execute=function(t){var e=t.shape;return xp(e),e.labelTarget=t.labelTarget,_p.call(this,t)};var bp=vp.prototype.revert;function xp(t){["width","height"].forEach((function(e){"undefined"===typeof t[e]&&(t[e]=0)}))}function wp(t,e){this._canvas=t,this._modeling=e}function Op(t,e){this._modeling=t,this._elementRegistry=e}function Sp(t,e){this._canvas=t,this._modeling=e}function Ep(t){return t.waypoints}function Ap(t){this._modeling=t}yp.prototype.revert=function(t){return t.shape.labelTarget=null,bp.call(this,t)},wp.$inject=["canvas","modeling"],wp.prototype.preExecute=function(t){var e=this._modeling,n=t.connection;oh(n.incoming,(function(t){e.removeConnection(t,{nested:!0})})),oh(n.outgoing,(function(t){e.removeConnection(t,{nested:!0})}))},wp.prototype.execute=function(t){var e=t.connection,n=e.parent;return t.parent=n,t.parentIndex=Object(Ta["b"])(n.children,e),t.source=e.source,t.target=e.target,this._canvas.removeConnection(e),e.source=null,e.target=null,e},wp.prototype.revert=function(t){var e=t.connection,n=t.parent,i=t.parentIndex;return e.source=t.source,e.target=t.target,Object(Ta["a"])(n.children,e,i),this._canvas.addConnection(e,n),e},Op.$inject=["modeling","elementRegistry"],Op.prototype.postExecute=function(t){var e=this._modeling,n=this._elementRegistry,i=t.elements;Object(l["i"])(i,(function(t){n.get(t.id)&&(t.waypoints?e.removeConnection(t):e.removeShape(t))}))},Sp.$inject=["canvas","modeling"],Sp.prototype.preExecute=function(t){var e=this._modeling,n=t.shape;oh(n.incoming,(function(t){e.removeConnection(t,{nested:!0})})),oh(n.outgoing,(function(t){e.removeConnection(t,{nested:!0})})),oh(n.children,(function(t){Ep(t)?e.removeConnection(t,{nested:!0}):e.removeShape(t,{nested:!0})}))},Sp.prototype.execute=function(t){var e=this._canvas,n=t.shape,i=n.parent;return t.oldParent=i,t.oldParentIndex=Object(Ta["b"])(i.children,n),e.removeShape(n),n},Sp.prototype.revert=function(t){var e=this._canvas,n=t.shape,i=t.oldParent,r=t.oldParentIndex;return Object(Ta["a"])(i.children,n,r),e.addShape(n,i),n},Ap.$inject=["modeling"];var kp={x:"y",y:"x"};function Tp(t,e){this._layouter=t,this._canvas=e}function jp(){}function Mp(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function Cp(t){this._modeling=t}function Pp(t){this._helper=new Cp(t)}function Ip(t){this._modeling=t,this._helper=new Cp(t)}function Dp(t){this._modeling=t}function Rp(t){return t.original||t}function Lp(t,e){this._modeling=t,this._rules=e}function Np(t){this._modeling=t}function Bp(t){this._modeling=t}function zp(t){return Object(l["a"])({},t)}function Fp(t){return Object(l["u"])(t.waypoints,(function(t){return t=zp(t),t.original&&(t.original=zp(t.original)),t}))}function Vp(t){switch(t){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function Hp(t,e,n){var i=Vp(n);return/e|s/.test(n)?t[i]>e:/n|w/.test(n)?t[i] required");var r=t.changed||this.getVisualReferences(n).concat(e),o=t.oldProperties||ed(n,Object(l["t"])(i));return nd(n,i),t.oldProperties=o,t.changed=r,r},td.prototype.revert=function(t){var e=t.oldProperties,n=t.moddleElement,i=t.changed;return nd(n,e),i},td.prototype.getVisualReferences=function(t){var e=this._elementRegistry;return Object(St["c"])(t,"bpmn:DataObject")?id(t,e):[]};var rd="default",od="id",ad="di",sd={width:0,height:0};function cd(t,e,n,i,r){this._elementRegistry=t,this._moddle=e,this._translate=n,this._modeling=i,this._textRenderer=r}function ld(t,e){return od in t&&t[od]!==e[od]}function ud(t,e){var n=Object(l["t"])(e),i=t.businessObject,r=Object(St["b"])(t);return Object(l["y"])(n,(function(t,n){return t[n]=n!==ad?i.get(n):hd(r,Object(l["t"])(e.di)),t}),{})}function hd(t,e){return Object(l["y"])(e,(function(e,n){return e[n]=t&&t.get(n),e}),{})}function pd(t,e){var n=t.businessObject,i=Object(St["b"])(t);Object(l["i"])(e,(function(t,e){e!==ad?n.set(e,t):i&&dd(i,t)}))}function dd(t,e){Object(l["i"])(e,(function(e,n){t.set(n,e)}))}cd.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],cd.prototype.execute=function(t){var e=t.element,n=[e],i=this._translate;if(!e)throw new Error(i("element required"));var r=this._elementRegistry,o=this._moddle.ids,a=e.businessObject,s=gd(t.properties),c=t.oldProperties||ud(e,s);return ld(s,a)&&(o.unclaim(a[od]),r.updateId(e,s[od]),o.claim(s[od],a)),rd in s&&(s[rd]&&n.push(r.get(s[rd].id)),a[rd]&&n.push(r.get(a[rd].id))),pd(e,s),t.oldProperties=c,t.changed=n,n},cd.prototype.postExecute=function(t){var e=t.element,n=e.label,i=n&&Object(St["a"])(n).name;if(i){var r=this._textRenderer.getExternalLabelBounds(n,i);this._modeling.resizeShape(n,r,sd)}},cd.prototype.revert=function(t){var e=t.element,n=t.properties,i=t.oldProperties,r=e.businessObject,o=this._elementRegistry,a=this._moddle.ids;return pd(e,i),ld(n,r)&&(a.unclaim(n[od]),o.updateId(e,i[od]),a.claim(i[od],r)),t.changed};var fd=["default"];function gd(t){var e=Object(l["a"])({},t);return fd.forEach((function(n){n in t&&(e[n]=Object(St["a"])(e[n]))})),e}function md(t,e){this._canvas=t,this._modeling=e}function vd(t,e){this._modeling=t,this._spaceTool=e}function yd(t,e){this._modeling=t,this._translate=e}function _d(t,e){this._modeling=t,this._spaceTool=e}md.$inject=["canvas","modeling"],md.prototype.execute=function(t){var e=this._canvas,n=t.newRoot,i=n.businessObject,r=e.getRootElement(),o=r.businessObject,a=o.$parent,s=Object(St["b"])(r);e.setRootElement(n),e.removeRootElement(r),Object(Ta["a"])(a.rootElements,i),i.$parent=a,Object(Ta["c"])(a.rootElements,o),o.$parent=null,r.di=null,s.bpmnElement=i,n.di=s,t.oldRoot=r},md.prototype.revert=function(t){var e=this._canvas,n=t.newRoot,i=n.businessObject,r=t.oldRoot,o=r.businessObject,a=i.$parent,s=Object(St["b"])(n);e.setRootElement(r),e.removeRootElement(n),Object(Ta["c"])(a.rootElements,i),i.$parent=null,Object(Ta["a"])(a.rootElements,o),o.$parent=a,n.di=null,s.bpmnElement=o,r.di=s},vd.$inject=["modeling","spaceTool"],vd.prototype.preExecute=function(t){var e=this._spaceTool,n=this._modeling,i=t.shape,r=t.location,o=Qr(i),a=o===i,s=a?i:i.parent,c=Kr(s);c.length||n.createShape({type:"bpmn:Lane"},{x:i.x+Zr,y:i.y,width:i.width-Zr,height:i.height},s);var u=[];Object(It["a"])(o,(function(t){return u.push(t),t.label&&u.push(t.label),t===i?[]:Object(l["e"])(t.children,(function(t){return t!==i}))}));var h="top"===r?-120:120,p="top"===r?i.y:i.y+i.height,d=p+("top"===r?10:-10),f="top"===r?"n":"s",g=e.calculateAdjustments(u,"y",h,d);e.makeSpace(g.movingShapes,g.resizingShapes,{x:0,y:h},f,d),t.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(a?Zr:0),y:p-("top"===r?120:0),width:i.width-(a?Zr:0),height:120},s)},yd.$inject=["modeling","translate"],yd.prototype.preExecute=function(t){var e=this._modeling,n=this._translate,i=t.shape,r=t.count,o=Kr(i),a=o.length;if(a>r)throw new Error(n("more than {count} child lanes",{count:r}));var s,c,l,u,h,p=Math.round(i.height/r);for(h=0;h0||u.bottom<0?-n:n,a=s.calculateAdjustments(p,"y",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:0,y:n},r)),(u.left||u.right)&&(n=u.right||u.left,i=t.x+(u.right?t.width:0)+(u.right?-10:100),r=u.right?"e":"w",o=u.left>0||u.right<0?-n:n,a=s.calculateAdjustments(d,"x",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:n,y:0},r))};var bd="flowNodeRef",xd="lanes";function wd(t){this._elementRegistry=t}function Od(t){this._moddle=t}wd.$inject=["elementRegistry"],wd.prototype.computeUpdates=function(t,e){var n=[],i=[],r={},o=[];function a(t,e){var n=Object(at["b"])(e),i={x:t.x+t.width/2,y:t.y+t.height/2};return i.x>n.left&&i.xn.top&&i.y: must be specified as : with start/end in { h,v,t,r,b,l }");if(af(n)){var i=Hd(t,e,n),r=Gd(t,e,n),o=qd(i,r);return[].concat(i.waypoints,o.waypoints,r.waypoints)}return Ud(t,e,n)}function Yd(t,e,n){var i=$d(t,e,n);return i.unshift(t),i.push(e),lf(i)}function Zd(t,e,n,i,r){var o=r&&r.preferredLayouts||[],a=Object(l["F"])(o,"straight")[0]||"h:h",s=Bd[a]||0,c=Object(at["f"])(t,e,s),u=rf(c,a);n=n||Object(at["e"])(t),i=i||Object(at["e"])(e);var h=u.split(":"),p=cf(n,t,h[0],sf(c)),d=cf(i,e,h[1],c);return Yd(p,d,u)}function Xd(t,e,n,i,r,o){Object(l["l"])(n)&&(r=n,o=i,n=Object(at["e"])(t),i=Object(at["e"])(e)),o=Object(l["a"])({preferredLayouts:[]},o),r=r||[];var a,s=o.preferredLayouts,c=-1!==s.indexOf("straight");return a=c&&Jd(t,e,n,i,o),a||(a=o.connectionEnd&&ef(e,t,i,r),a||(a=o.connectionStart&&tf(t,e,n,r),a||(!o.connectionStart&&!o.connectionEnd&&r&&r.length?r:Zd(t,e,n,i,o))))}function Kd(t,e,n){return t>=e&&t<=n}function Qd(t,e,n){var i={x:"width",y:"height"};return Kd(e[t],n[t],n[t]+n[i[t]])}function Jd(t,e,n,i,r){var o,a,s={};return a=Object(at["f"])(t,e),/^(top|bottom|left|right)$/.test(a)?(/top|bottom/.test(a)&&(o="x"),/left|right/.test(a)&&(o="y"),"target"===r.preserveDocking?Qd(o,i,t)?(s[o]=i[o],[{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y,original:{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y}},{x:i.x,y:i.y}]):null:Qd(o,n,e)?(s[o]=n[o],[{x:n.x,y:n.y},{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y,original:{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y}}]):null):null}function tf(t,e,n,i){return nf(t,e,n,i)}function ef(t,e,n,i){var r=i.slice().reverse();return r=nf(t,e,n,r),r?r.reverse():null}function nf(t,e,n,i){function r(t){return t.length<3||!(t.length>4)&&!!Object(l["f"])(t,(function(e,n){var i=t[n-1];return i&&Object(le["b"])(e,i)<3}))}function o(t,e,n){var i=Object(le["d"])(e,t);switch(i){case"v":return{x:n.x,y:t.y};case"h":return{x:t.x,y:n.y}}return{x:t.x,y:t.y}}function a(t,e,n){var i;for(i=t.length-2;0!==i;i--)if(Object(le["c"])(t[i],e,Nd)||Object(le["c"])(t[i],n,Nd))return t.slice(i);return t}if(r(i))return null;var s,c=i[0],u=i.slice();return u[0]=n,u[1]=o(u[1],c,n),s=a(u,t,e),s!==u&&(u=nf(t,e,n,s)),u&&Object(le["d"])(u)?null:u}function rf(t,e){if(af(e))return e;switch(t){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return e}}function of(t){return t&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(t)}function af(t){return t&&/t|r|b|l/.test(t)}function sf(t){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[t]}function cf(t,e,n,i){if("h"===n&&(n=/left/.test(i)?"l":"r"),"v"===n&&(n=/top/.test(i)?"t":"b"),"t"===n)return{original:t,x:t.x,y:e.y};if("r"===n)return{original:t,x:e.x+e.width,y:t.y};if("b"===n)return{original:t,x:t.x,y:e.y+e.height};if("l"===n)return{original:t,x:e.x,y:t.y};throw new Error("unexpected dockingDirection: <"+n+">")}function lf(t){return t.reduce((function(e,n,i){var r=e[e.length-1],o=t[i+1];return Object(le["e"])(r,o,n,0)||e.push(n),e}),[])}var uf=-10,hf=40,pf={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},df={top:"t",right:"r",bottom:"b",left:"l"};function ff(){}function gf(t){var e=t.host;return Object(at["f"])(Object(at["e"])(t),e,uf)}function mf(t,e){return{preferredLayouts:["straight","v:v"],preserveDocking:vf(t,e)}}function vf(t,e){return Object(St["c"])(e,"bpmn:Participant")?"source":Object(St["c"])(t,"bpmn:Participant")?"target":wf(e)?"source":wf(t)||Object(St["c"])(e,"bpmn:Event")?"target":Object(St["c"])(t,"bpmn:Event")?"source":null}function yf(t){return{preferredLayouts:["straight","h:h"],preserveDocking:_f(t)}}function _f(t){return wf(t)?"target":"source"}function bf(t,e){return t?t.original||t:Object(at["e"])(e)}function xf(t,e){return Object(St["c"])(e,"bpmn:Activity")&&Object(St["c"])(t,"bpmn:BoundaryEvent")&&e.businessObject.isForCompensation}function wf(t){return Object(St["c"])(t,"bpmn:SubProcess")&&Object(or["f"])(t)}function Of(t,e){return t===e}function Sf(t,e){return-1!==e.indexOf(t)}function Ef(t){var e=/right|left/.exec(t);return e&&e[0]}function Af(t){var e=/top|bottom/.exec(t);return e&&e[0]}function kf(t,e){return pf[t]===e}function Tf(t,e){var n=Ef(t),i=pf[n];return-1!==e.indexOf(i)}function jf(t,e){var n=Af(t),i=pf[n];return-1!==e.indexOf(i)}function Mf(t){return"right"===t||"left"===t}function Cf(t,e){var n=e.waypoints,i=n&&n.length&&Object(at["f"])(n[0],t);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function Pf(t,e,n){var i,r,o=Object(at["e"])(t),a=Object(at["e"])(e),s=gf(t),c=Of(t.host,e),l=Sf(s,["top","right","bottom","left"]),u=Object(at["f"])(a,o,{x:t.width/2+e.width/2,y:t.height/2+e.height/2});return c?If(s,l,t,e,n):(i=Lf(s,u,l),r=Nf(s,u,l),[i+":"+r])}function If(t,e,n,i,r){var o,a=e?t:Af(t),s=df[a];return o=e?Mf(t)?Df("y",n,i,r)?"h":"b":Df("x",n,i,r)?"v":"l":"v",[s+":"+o]}function Df(t,e,n,i){var r=hf;return!(Rf(t,i,n,r)||Rf(t,i,{x:n.x+n.width,y:n.y+n.height},r)||Rf(t,i,Object(at["e"])(e),r))}function Rf(t,e,n,i){return Math.abs(e[t]-n[t])
'),t.appendChild(r));var o=e.html||(e.separator?'
':'
'),a=Object(u["g"])(o);r.appendChild(a),e.separator||(Object(u["b"])(a,"data-action",n),e.title&&Object(u["b"])(a,"title",e.title),e.className&&gg(a,e.className),e.imageUrl&&a.appendChild(Object(u["g"])('')))})),this.open()},fg.prototype.trigger=function(t,e,n){var i,r,o,a=this._entries,s=e.delegateTarget||e.target;if(!s)return e.preventDefault();i=a[Object(u["b"])(s,"data-action")],i&&(r=i.action,o=e.originalEvent||e,Object(l["n"])(r)?"click"===t&&r(o,n):r[t]&&r[t](o,n),e.preventDefault())},fg.prototype._layoutChanged=function(){this._toggleState({})},fg.prototype._needsCollapse=function(t,e){var n=50,i=46*Object.keys(e).length;return t=i.x&&n.yi.x&&n.y<=i.y?{x:i.x,y:n.y,width:n.x-i.x,height:i.y-n.y}:n.x<=i.x&&n.y>i.y||n.x=i.y?{x:n.x,y:i.y,width:i.x-n.x,height:n.y-i.y}:n.x>=i.x&&n.y>i.y||n.x>i.x&&n.y>=i.y?{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}:{x:i.x,y:i.y,width:0,height:0},e}_g.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],_g.prototype.activateLasso=function(t,e){this._dragging.init(t,"lasso",{autoActivate:e,cursor:yg,data:{context:{}}})},_g.prototype.activateSelection=function(t,e){this._dragging.init(t,"lasso.selection",{trapClick:!1,autoActivate:e,cursor:yg,data:{context:{}}})},_g.prototype.select=function(t,e){var n=Object(It["d"])(t,e);this._selection.select(Object(l["E"])(n))},_g.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateSelection(t,!!t)},_g.prototype.isActive=function(){var t=this._dragging.context();return t&&/^lasso/.test(t.prefix)};var xg={__depends__:[Sh,Ni],__init__:["lassoTool"],lassoTool:["type",_g]},wg=1500,Og="grab";function Sg(t,e,n,i,r,o){this._dragging=n,this._mouse=o;var a=this,s=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),t.on("element.mousedown",wg,(function(t){if(Object(Be["a"])(t))return a.activateMove(t.originalEvent,!0),!1})),s&&s.addListener(wg,(function(t){if(Eg(t.keyEvent)&&!a.isActive()){var e=a._mouse.getLastMoveEvent();a.activateMove(e,!!e)}}),"keyboard.keydown"),s&&s.addListener(wg,(function(t){Eg(t.keyEvent)&&a.isActive()&&a.toggle()}),"keyboard.keyup"),t.on("hand.end",(function(e){var n=e.originalEvent.target;if(!e.hover&&!(n instanceof SVGElement))return!1;t.once("hand.ended",(function(){a.activateMove(e.originalEvent,{reactivate:!0})}))})),t.on("hand.move.move",(function(t){var n=e.viewbox().scale;e.scroll({dx:t.dx*n,dy:t.dy*n})})),t.on("hand.move.end",(function(e){var n=e.context,i=n.reactivate;return!Object(Be["a"])(e)&&i&&t.once("hand.move.ended",(function(t){a.activateHand(t.originalEvent,!0,!0)})),!1}))}function Eg(t){return d(" ",t)}Sg.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],Sg.prototype.activateMove=function(t,e,n){"object"===typeof e&&(n=e,e=!1),this._dragging.init(t,"hand.move",{autoActivate:e,cursor:Og,data:{context:n||{}}})},Sg.prototype.activateHand=function(t,e,n){this._dragging.init(t,"hand",{trapClick:!1,autoActivate:e,cursor:Og,data:{context:{reactivate:n}}})},Sg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateHand(t,!!t)},Sg.prototype.isActive=function(){var t=this._dragging.context();return!!t&&/^(hand|hand\.move)$/.test(t.prefix)};var Ag={__depends__:[Sh,Ni],__init__:["handTool"],handTool:["type",Sg]},kg="connect-ok",Tg="connect-not-ok";function jg(t,e,n,i,r,o,a){var s=this;this._dragging=e,this._rules=o,this._mouse=a,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),t.on("global-connect.hover",(function(t){var e=t.context,n=t.hover,r=e.canStartConnect=s.canStartConnect(n);null!==r&&(e.startTarget=n,i.addMarker(n,r?kg:Tg))})),t.on(["global-connect.out","global-connect.cleanup"],(function(t){var e=t.context.startTarget,n=t.context.canStartConnect;e&&i.removeMarker(e,n?kg:Tg)})),t.on(["global-connect.ended"],(function(e){var i=e.context,r=i.startTarget,o={x:e.x,y:e.y},a=s.canStartConnect(r);if(a)return t.once("element.out",(function(){t.once(["connect.ended","connect.canceled"],(function(){t.fire("global-connect.drag.ended")})),n.start(null,r,o)})),!1}))}jg.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],jg.prototype.start=function(t,e){this._dragging.init(t,"global-connect",{autoActivate:e,trapClick:!1,data:{context:{}}})},jg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();return this.start(t,!!t)},jg.prototype.isActive=function(){var t=this._dragging.context();return t&&/^global-connect/.test(t.prefix)},jg.prototype.canStartConnect=function(t){return this._rules.allowed("connection.start",{source:t})};var Mg={__depends__:[Dn,ce,ie,Sh,Ni],globalConnect:["type",jg]};function Cg(t,e,n,i,r,o,a,s){this._palette=t,this._create=e,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=o,this._globalConnect=a,this._translate=s,t.registerProvider(this)}Cg.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],Cg.prototype.getPaletteEntries=function(t){var e={},n=this._create,i=this._elementFactory,r=this._spaceTool,o=this._lassoTool,a=this._handTool,s=this._globalConnect,c=this._translate;function u(t,e,r,o,a){function s(e){var r=i.createShape(Object(l["a"])({type:t},a));if(a){var o=Object(St["b"])(r);o.isExpanded=a.isExpanded}n.start(e,r)}var u=t.replace(/^bpmn:/,"");return{group:e,className:r,title:o||c("Create {type}",{type:u}),action:{dragstart:s,click:s}}}function h(t){var e=i.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),r=i.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:e});n.start(t,[e,r],{hints:{autoSelect:[e]}})}function p(t){n.start(t,i.createParticipantShape())}return Object(l["a"])(e,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:c("Activate the hand tool"),action:{click:function(t){a.activateHand(t)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:c("Activate the lasso tool"),action:{click:function(t){o.activateSelection(t)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:c("Activate the create/remove space tool"),action:{click:function(t){r.activateSelection(t)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:c("Activate the global connect tool"),action:{click:function(t){s.start(t)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":u("bpmn:StartEvent","event","bpmn-icon-start-event-none",c("Create StartEvent")),"create.intermediate-event":u("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",c("Create Intermediate/Boundary Event")),"create.end-event":u("bpmn:EndEvent","event","bpmn-icon-end-event-none",c("Create EndEvent")),"create.exclusive-gateway":u("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",c("Create Gateway")),"create.task":u("bpmn:Task","activity","bpmn-icon-task",c("Create Task")),"create.data-object":u("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",c("Create DataObjectReference")),"create.data-store":u("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",c("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:c("Create expanded SubProcess"),action:{dragstart:h,click:h}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:c("Create Pool/Participant"),action:{dragstart:p,click:p}},"create.group":u("bpmn:Group","artifact","bpmn-icon-group",c("Create Group"))}),e};var Pg={__depends__:[vg,Ai,Xh,xg,Ag,Mg,qu["a"]],__init__:["paletteProvider"],paletteProvider:["type",Cg]},Ig=250;function Dg(t,e,n,i,r){function o(t){var o=t.canExecute.replacements;Object(l["i"])(o,(function(o){var a=o.oldElementId,s={type:o.newElementType};if(!t.visualReplacements[a]){var c=e.get(a);Object(l["a"])(s,{x:c.x,y:c.y});var h=n.createShape(s);i.addShape(h,c.parent);var p=Object(u["j"])('[data-element-id="'+Ne()(c.id)+'"]',t.dragGroup);p&&Object(X["b"])(p,{display:"none"});var d=r.addDragger(h,t.dragGroup);t.visualReplacements[a]=d,i.removeShape(h)}}))}function a(t){var e=t.visualReplacements;Object(l["i"])(e,(function(n,i){var r=Object(u["j"])('[data-element-id="'+Ne()(i)+'"]',t.dragGroup);r&&Object(X["b"])(r,{display:"inline"}),n.remove(),e[i]&&delete e[i]}))}Dt["a"].call(this,t),t.on("shape.move.move",Ig,(function(t){var e=t.context,n=e.canExecute;e.visualReplacements||(e.visualReplacements={}),n&&n.replacements?o(e):a(e)}))}Dg.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],r()(Dg,Dt["a"]);var Rg={__depends__:[pi],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",Dg]},Lg=1250,Ng=40,Bg=20,zg=10,Fg=20,Vg=["x","y"],Hg=Math.abs;function Gg(t){t.on(["connect.hover","connect.move","connect.end"],Lg,(function(t){var e=t.context,n=e.canExecute,i=e.start,r=e.hover,o=e.source,a=e.target;t.originalEvent&&p(t.originalEvent)||(e.initialConnectionStart||(e.initialConnectionStart=e.connectionStart),n&&r&&qg(t,r,Kg(r)),r&&Zg(n,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(e.connectionStart=vn(i),Object(St["d"])(r,["bpmn:Event","bpmn:Gateway"])&&$g(t,vn(r)),Object(St["d"])(r,["bpmn:Task","bpmn:SubProcess"])&&Wg(t,r),Object(St["c"])(o,"bpmn:BoundaryEvent")&&a===o.host&&Ug(t)):Yg(n,"bpmn:MessageFlow")?(Object(St["c"])(i,"bpmn:Event")&&(e.connectionStart=vn(i)),Object(St["c"])(r,"bpmn:Event")&&$g(t,vn(r))):e.connectionStart=e.initialConnectionStart)}))}function qg(t,e,n){Vg.forEach((function(i){var r=Xg(i,e);t[i]e[i]+r-n&&_n(t,i,e[i]+r-n)}))}function Wg(t,e){var n=vn(e);Vg.forEach((function(i){Qg(t,e,i)&&_n(t,i,n[i])}))}function Ug(t){var e=t.context,n=e.source,i=e.target;if(!Jg(e)){var r=vn(n),o=Object(at["f"])(r,i,-10),a=[];/top|bottom/.test(o)&&a.push("x"),/left|right/.test(o)&&a.push("y"),a.forEach((function(e){var n,i=t[e];Hg(i-r[e])r[e]?r[e]+Ng:r[e]-Ng,_n(t,e,n))}))}}function $g(t,e){_n(t,"x",e.x),_n(t,"y",e.y)}function Yg(t,e){return t&&t.type===e}function Zg(t,e){return Object(l["A"])(e,(function(e){return Yg(t,e)}))}function Xg(t,e){return"x"===t?e.width:e.height}function Kg(t){return Object(St["c"])(t,"bpmn:Task")?zg:Bg}function Qg(t,e,n){return t[n]>e[n]+Fg&&t[n]=t.x||r&&r<=t.x)&&_n(t,"x",t.x),(i&&i>=t.y||o&&o<=t.y)&&_n(t,"y",t.y)}}function dm(t,e){return-1!==t.indexOf(e)}function fm(t,e,n){return e?{x:t.x-n.x,y:t.y-n.y}:{x:t.x,y:t.y}}r()(cm,im),cm.$inject=["eventBus","injector"],cm.prototype.initSnap=function(t){var e=im.prototype.initSnap.call(this,t),n=t.shape,i=!!this._elementRegistry.get(n.id);return Object(l["i"])(n.outgoing,(function(n){var r=n.waypoints[0];r=r.original||r,e.setSnapOrigin(n.id+"-docking",fm(r,i,t))})),Object(l["i"])(n.incoming,(function(n){var r=n.waypoints[n.waypoints.length-1];r=r.original||r,e.setSnapOrigin(n.id+"-docking",fm(r,i,t))})),Object(St["c"])(n,"bpmn:Participant")&&e.setSnapLocations(["top-left","bottom-right","mid"]),e},cm.prototype.addSnapTargetPoints=function(t,e,n){im.prototype.addSnapTargetPoints.call(this,t,e,n);var i=this.getSnapTargets(e,n);Object(l["i"])(i,(function(n){(hm(n)||um([e,n],"bpmn:TextAnnotation"))&&(t.add("top-left",gn(n)),t.add("bottom-right",mn(n)))}));var r=this._elementRegistry;return Object(l["i"])(e.incoming,(function(n){if(r.get(e.id)){dm(i,n.source)||t.add("mid",Object(at["e"])(n.source));var o=n.waypoints[0];t.add(n.id+"-docking",o.original||o)}})),Object(l["i"])(e.outgoing,(function(n){if(r.get(e.id)){dm(i,n.target)||t.add("mid",Object(at["e"])(n.target));var o=n.waypoints[n.waypoints.length-1];t.add(n.id+"-docking",o.original||o)}})),Object(St["c"])(n,"bpmn:SequenceFlow")&&(t=this.addSnapTargetPoints(t,e,n.parent)),t},cm.prototype.getSnapTargets=function(t,e){return im.prototype.getSnapTargets.call(this,t,e).filter((function(t){return!Object(St["c"])(t,"bpmn:Lane")}))};var gm=1250;function mm(t,e){var n=this;t.on(["resize.start"],(function(t){n.initSnap(t)})),t.on(["resize.move","resize.end"],gm,(function(t){var i=t.context,r=i.shape,o=r.parent,a=i.direction,s=i.snapContext;if((!t.originalEvent||!p(t.originalEvent))&&!yn(t)){var c=s.pointsForTarget(o);c.initialized||(c=n.addSnapTargetPoints(c,r,o,a),c.initialized=!0),wm(a)&&_n(t,"x",t.x),Om(a)&&_n(t,"y",t.y),e.snap(t,c)}})),t.on(["resize.cleanup"],(function(){e.hide()}))}function vm(t,e){var n=Object(at["e"])(t),i=Object(at["b"])(t),r={x:n.x,y:n.y};return-1!==e.indexOf("n")?r.y=i.top:-1!==e.indexOf("s")&&(r.y=i.bottom),-1!==e.indexOf("e")?r.x=i.right:-1!==e.indexOf("w")&&(r.x=i.left),r}function ym(t,e){return t.host===e}function _m(t){return!!t.waypoints}function bm(t){return!!t.hidden}function xm(t){return!!t.labelTarget}function wm(t){return"n"===t||"s"===t}function Om(t){return"e"===t||"w"===t}mm.prototype.initSnap=function(t){var e=t.context,n=e.shape,i=e.direction,r=e.snapContext;r||(r=e.snapContext=new tm);var o=vm(n,i);return r.setSnapOrigin("corner",{x:o.x-t.x,y:o.y-t.y}),r},mm.prototype.addSnapTargetPoints=function(t,e,n,i){var r=this.getSnapTargets(e,n);return Object(l["i"])(r,(function(e){t.add("corner",mn(e)),t.add("corner",gn(e))})),t.add("corner",vm(e,i)),t},mm.$inject=["eventBus","snapping"],mm.prototype.getSnapTargets=function(t,e){return bn(e).filter((function(e){return!ym(e,t)&&!_m(e)&&!bm(e)&&!xm(e)}))};var Sm=7,Em=1e3;function Am(t){this._canvas=t,this._asyncHide=Object(l["c"])(Object(l["b"])(this.hide,this),Em)}Am.$inject=["canvas"],Am.prototype.snap=function(t,e){var n=t.context,i=n.snapContext,r=i.getSnapLocations(),o={x:yn(t,"x"),y:yn(t,"y")};Object(l["i"])(r,(function(n){var r=i.getSnapOrigin(n),a={x:t.x+r.x,y:t.y+r.y};if(Object(l["i"])(["x","y"],(function(t){var i;o[t]||(i=e.snap(a,n,t,Sm),void 0!==i&&(o[t]={value:i,originValue:i-r[t]}))})),o.x&&o.y)return!1})),this.showSnapLine("vertical",o.x&&o.x.value),this.showSnapLine("horizontal",o.y&&o.y.value),Object(l["i"])(["x","y"],(function(e){var n=o[e];Object(l["q"])(n)&&_n(t,e,n.originValue)}))},Am.prototype._createLine=function(t){var e=this._canvas.getLayer("snap"),n=Object(X["f"])("path");return Object(X["b"])(n,{d:"M0,0 L0,0"}),Object(X["c"])(n).add("djs-snap-line"),Object(X["a"])(e,n),{update:function(e){Object(l["p"])(e)?"horizontal"===t?Object(X["b"])(n,{d:"M-100000,"+e+" L+100000,"+e,display:""}):Object(X["b"])(n,{d:"M "+e+",-100000 L "+e+", +100000",display:""}):Object(X["b"])(n,{display:"none"})}}},Am.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},Am.prototype.showSnapLine=function(t,e){var n=this.getSnapLine(t);n&&n.update(e),this._asyncHide()},Am.prototype.getSnapLine=function(t){return this._snapLines||this._createSnapLines(),this._snapLines[t]},Am.prototype.hide=function(){Object(l["i"])(this._snapLines,(function(t){t.update()}))};var km={__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",im],resizeSnapping:["type",mm],snapping:["type",Am]},Tm={__depends__:[km],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Gg],createMoveSnapping:["type",cm]},jm=n("6730");function Mm(t,e,n,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=t,this._eventBus=e,this._overlays=n,this._selection=i,this._container=Object(u["g"])(Mm.BOX_HTML),this._searchInput=Object(u["j"])(Mm.INPUT_SELECTOR,this._container),this._resultsContainer=Object(u["j"])(Mm.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),e.on(["canvas.destroy","diagram.destroy"],this.close,this)}function Cm(t){var e=6,n=t.width+2*e,i=t.height+2*e,r={width:n+"px",height:i+"px"},o=Object(u["g"])('
');return Object(u["a"])(o,r),{position:{bottom:i-e,right:n-e},show:!0,html:o}}function Pm(t,e,n){var i=Im(e),r=Object(u["g"])(n);r.innerHTML=i,t.appendChild(r)}function Im(t){var e="";return t.forEach((function(t){t.matched?e+=''+Object(jm["a"])(t.matched)+"":e+=Object(jm["a"])(t.normal)})),""!==e?e:null}Mm.$inject=["canvas","eventBus","overlays","selection"],Mm.prototype._bindEvents=function(){var t=this;function e(e,n,i,r){t._eventMaps.push({el:e,type:i,listener:u["f"].bind(e,n,i,r)})}e(document,"html","click",(function(e){t.close()})),e(this._container,Mm.INPUT_SELECTOR,"click",(function(t){t.stopPropagation(),t.delegateTarget.focus()})),e(this._container,Mm.RESULT_SELECTOR,"mouseover",(function(e){e.stopPropagation(),t._scrollToNode(e.delegateTarget),t._preselect(e.delegateTarget)})),e(this._container,Mm.RESULT_SELECTOR,"click",(function(e){e.stopPropagation(),t._select(e.delegateTarget)})),e(this._container,Mm.INPUT_SELECTOR,"keydown",(function(t){38===t.keyCode&&t.preventDefault(),40===t.keyCode&&t.preventDefault()})),e(this._container,Mm.INPUT_SELECTOR,"keyup",(function(e){if(27===e.keyCode)return t.close();if(13===e.keyCode){var n=t._getCurrentResult();return n?t._select(n):t.close()}return 38===e.keyCode?t._scrollToDirection(!0):40===e.keyCode?t._scrollToDirection():void(37!==e.keyCode&&39!==e.keyCode&&t._search(e.delegateTarget.value))}))},Mm.prototype._unbindEvents=function(){this._eventMaps.forEach((function(t){u["f"].unbind(t.el,t.type,t.listener)}))},Mm.prototype._search=function(t){var e=this;if(this._clearResults(),t&&""!==t){var n=this._searchProvider.find(t);if(n.length){n.forEach((function(t){var n=t.element.id,i=e._createResultNode(t,n);e._results[n]={element:t.element,node:i}}));var i=Object(u["j"])(Mm.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},Mm.prototype._scrollToDirection=function(t){var e=this._getCurrentResult();if(e){var n=t?e.previousElementSibling:e.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},Mm.prototype._scrollToNode=function(t){if(t&&t!==this._getCurrentResult()){var e=t.offsetTop,n=this._resultsContainer.scrollTop,i=e-this._resultsContainer.clientHeight+t.clientHeight;e0&&Pm(n,t.primaryTokens,Mm.RESULT_PRIMARY_HTML),Pm(n,t.secondaryTokens,Mm.RESULT_SECONDARY_HTML),Object(u["b"])(n,Mm.RESULT_ID_ATTRIBUTE,e),this._resultsContainer.appendChild(n),n},Mm.prototype.registerProvider=function(t){this._searchProvider=t},Mm.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,Object(u["c"])(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},Mm.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,Object(u["c"])(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},Mm.prototype.toggle=function(){this.isOpen()?this.close():this.open()},Mm.prototype.isOpen=function(){return this._open},Mm.prototype._preselect=function(t){var e=this._getCurrentResult();if(t!==e){e&&Object(u["c"])(e).remove(Mm.RESULT_SELECTED_CLASS);var n=Object(u["b"])(t,Mm.RESULT_ID_ATTRIBUTE),i=this._results[n].element;Object(u["c"])(t).add(Mm.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},Mm.prototype._select=function(t){var e=Object(u["b"])(t,Mm.RESULT_ID_ATTRIBUTE),n=this._results[e].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(n,{top:400}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},Mm.prototype._resetOverlay=function(t){if(this._overlayId&&this._overlays.remove(this._overlayId),t){var e=Object(It["b"])(t),n=Cm(e);this._overlayId=this._overlays.add(t,n)}},Mm.CONTAINER_SELECTOR=".djs-search-container",Mm.INPUT_SELECTOR=".djs-search-input input",Mm.RESULTS_CONTAINER_SELECTOR=".djs-search-results",Mm.RESULT_SELECTOR=".djs-search-result",Mm.RESULT_SELECTED_CLASS="djs-search-result-selected",Mm.RESULT_SELECTED_SELECTOR="."+Mm.RESULT_SELECTED_CLASS,Mm.RESULT_ID_ATTRIBUTE="data-result-id",Mm.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",Mm.OVERLAY_CLASS="djs-search-overlay",Mm.BOX_HTML='
',Mm.RESULT_HTML='
',Mm.RESULT_PRIMARY_HTML='
',Mm.RESULT_SECONDARY_HTML='

';var Dm={__depends__:[Xn["a"],$t["a"]],searchPad:["type",Mm]};function Rm(t,e,n){this._elementRegistry=t,this._canvas=n,e.registerProvider(this)}function Lm(t){var e=Object(l["e"])(t,(function(t){return!!t.matched}));return e.length>0}function Nm(t,e){var n=[],i=t;if(!t)return n;t=t.toLowerCase(),e=e.toLowerCase();var r=t.indexOf(e);return r>-1?(0!==r&&n.push({normal:i.substr(0,r)}),n.push({matched:i.substr(r,e.length)}),e.length+r';function Fm(t){s.call(this,t)}r()(Fm,s),Fm.Viewer=c["a"],Fm.NavigatedViewer=N,Fm.prototype.createDiagram=Object(rp["b"])((function(){return this.importXML(zm)})),Fm.prototype._interactionModules=[D,R["a"],J,L["a"]],Fm.prototype._modelingModules=[ot,Ct,ae,Ht,An,Dn,zn,no,er,Ai,co,mo,Wo,Zo,Ko,sa,Va,Ff,og,Pg,Rg,Aa,Tm,Bm],Fm.prototype._modules=[].concat(c["a"].prototype._modules,Fm.prototype._interactionModules,Fm.prototype._modelingModules)},"704a":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c}));var i=n("7a6b"),r="_plane";function o(t){var e=t.id;return u(e)}function a(t){var e=t.id;return Object(i["c"])(t,"bpmn:SubProcess")?l(e):e}function s(t){return l(t)}function c(t){var e=Object(i["b"])(t);return Object(i["c"])(e,"bpmndi:BPMNPlane")}function l(t){return t+r}function u(t){return t.replace(new RegExp(r+"$"),"")}},"71ad":function(t,e,n){var i=n("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)"]}}},o={};o.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),o.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5},r),o.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},o.valueAxis),o.logAxis=i.defaults({scale:!0,logBase:10},o.valueAxis);var a=o;t.exports=a},"71b2":function(t,e,n){var i=n("6d8b"),r=i.createHashMap;function o(t){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.getRawData(),i=t.get("color"),o=r();e.each((function(t){o.set(e.getRawIndex(t),t)})),n.each((function(r){var a=n.getName(r),s=i[(t.nameMap.get(a)-1)%i.length];n.setItemVisual(r,"color",s);var c=o.get(r);null!=c&&e.setItemVisual(c,"color",s)}))}))}t.exports=o},7293:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("4f85")),o=n("6179"),a=n("6d8b"),s=a.concatArray,c=a.mergeAll,l=a.map,u=n("eda2"),h=u.encodeHTML,p=(n("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),d="undefined"===typeof Float64Array?Array:Float64Array;function f(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=l(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),c([n,t[0],t[1]])})))}var g=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],f(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(t.data=t.data||[],f(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),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r "))},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,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=g;t.exports=m},"72b6":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("2306"),a=n("eda2"),s=n("f934"),c=n("5f14"),l=i.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,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,n=a.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new o.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){n=n||{};var i=n.forceState,o=this.visualMapModel,a={};if("symbol"===e&&(a.symbol=o.get("itemSymbol")),"color"===e){var s=o.get("contentColor");a.color=s}function l(t){return a[t]}function u(t,e){a[t]=e}var h=o.controllerVisuals[i||o.getValueState(t)],p=c.prepareVisualTypes(h);return r.each(p,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),c.dependsOn(i,e)&&r&&r.applyVisual(t,l,u)})),a[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:r.noop});t.exports=l},7368:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=n("625e"),a=o.enableClassCheck;function s(t){return"_EC_"+t}var c=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},l=c.prototype;function u(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,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}l.type="graph",l.isDirected=function(){return this._directed},l.addNode=function(t,e){t=t||""+e;var n=this._nodesMap;if(!n[s(t)]){var i=new u(t,e);return i.hostGraph=this,this.nodes.push(i),n[s(t)]=i,i}},l.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},l.getNodeById=function(t){return this._nodesMap[s(t)]},l.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),u.isInstance(t)||(t=i[s(t)]),u.isInstance(e)||(e=i[s(e)]),t&&e){var o=t.id+"-"+e.id;if(!r[o]){var a=new h(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}}},l.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},l.getEdge=function(t,e){u.isInstance(t)&&(t=t.id),u.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},l.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},l.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},l.breadthFirstTraverse=function(t,e,n,i){if(u.isInstance(e)||(e=this._nodesMap[s(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};r.mixin(u,p("hostGraph","data")),r.mixin(h,p("hostGraph","edgeData")),c.Node=u,c.Edge=h,a(u),a(h);var d=c;t.exports=d},"73ca":function(t,e,n){var i=n("2306"),r=n("7e5b");function o(t){this._ctor=t||r,this.group=new i.Group}var a=o.prototype;function s(t,e,n,i){var r=e.getItemLayout(n);if(h(r)){var o=new t._ctor(e,n,i);e.setItemGraphicEl(n,o),t.group.add(o)}}function c(t,e,n,i,r,o){var a=e.getItemGraphicEl(i);h(n.getItemLayout(r))?(a?a.updateData(n,r,o):a=new t._ctor(n,r,o),n.setItemGraphicEl(r,a),t.group.add(a)):t.group.remove(a)}function l(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 u(t){return isNaN(t[0])||isNaN(t[1])}function h(t){return!u(t[0])&&!u(t[1])}a.isPersistent=function(){return!0},a.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=l(t);t.diff(i).add((function(n){s(e,t,n,r)})).update((function(n,o){c(e,i,t,o,n,r)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},a.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},a.incrementalPrepareUpdate=function(t){this._seriesScope=l(t),this._lineData=null,this.group.removeAll()},a.incrementalUpdate=function(t,e){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i=0)return!0}var v=new RegExp("["+u+"]+","g");function y(t){for(var e=t.split(/\n+/g),n=g(e.shift()).split(v),i=[],o=r.map(n,(function(t){return{name:t,data:[]}})),a=0;a1?"emphasis":"normal")}function _(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var s=new a(v(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!o&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}g._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new a(v(this.model.option),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[i],n,e)}})),s.push(i,n),this._dispatchZoomAction(n)}function o(t,e,r){var o=e.getAxis(t),a=o.model,s=l(t,a,i),u=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=c(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}function l(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},g._dispatchZoomAction=function(t){var e=[];p(t,(function(t,n){e.push(r.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},u.register("dataZoom",f),i.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);r.isArray(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(r.isArray(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;o("xAxis",i),o("yAxis",i)}}function o(t,n){if(n){var i=t+"Index",o=n[i];null==o||"all"===o||r.isArray(o)||(o=!1===o||"none"===o?[]:[o]),a(t,(function(n,a){if(null==o||"all"===o||-1!==r.indexOf(o,a)){var s={type:"select",$fromToolbox:!0,id:d+t+a};s[i]=a,e.push(s)}}))}}function a(e,n){var i=t[e];r.isArray(i)||(i=i?[i]:[]),p(i,n)}}));var b=f;t.exports=b},"7d09":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var i=n("87f2");function r(t){return function(){if(!window.Promise)throw new Error("Promises is not supported in this environment. Please polyfill Promise.");var e=arguments.length;if(!(e>=1&&Object(i["n"])(arguments[e-1])))return t.apply(this,arguments);var n=arguments[e-1];console.warn(new Error("Passing callbacks to "+t.name+" is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));var r=Array.prototype.slice.call(arguments,0,-1);t.apply(this,r).then((function(t){var e=Object.keys(t)[0];return n(null,t[e])}),(function(t){return n(t,t.warnings)}))}}var o="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function a(t){Object(i["k"])(t,"di")||Object.defineProperty(t,"di",{get:function(){throw new Error(o)}})}},"7d6d":function(t,e){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function i(t,e,i){return n.hasOwnProperty(e)?i*t.dpr:i}t.exports=i},"7d74":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=5e3;function r(t,e){function n(){return!1}return e=e||"element.click",t.once(e,i,n),function(){t.off(e,n)}}},"7d7d":function(t,e,n){"use strict";function i(t,e,n,i){var r=n.inverse;return Object.defineProperty(t,"remove",{value:function(t){var n=this.indexOf(t);return-1!==n&&(this.splice(n,1),e.unset(t,r,i)),t}}),Object.defineProperty(t,"contains",{value:function(t){return-1!==this.indexOf(t)}}),Object.defineProperty(t,"add",{value:function(t,n){var o=this.indexOf(t);if("undefined"===typeof n){if(-1!==o)return;n=this.length}-1!==o&&this.splice(o,1),this.splice(n,0,t),-1===o&&e.set(t,r,i)}}),Object.defineProperty(t,"__refs_collection",{value:!0}),t}function r(t){return!0===t.__refs_collection}t.exports.extend=i,t.exports.isExtended=r},"7db0":function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").find,o=n("44d2"),a=n("ae40"),s="find",c=!0,l=a(s);s in[]&&Array(1)[s]((function(){c=!1})),i({target:"Array",proto:!0,forced:c||!l},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},"7dcf":function(t,e,n){var i=n("b12f"),r=i.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};function i(t,e,n,i){for(var r,o=0;o.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var v=c/2,y=(p=s.tangentAt(v),[p[1],-p[0]]),_=s.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),d=[_[0]+y[0]*m,_[1]+y[1]*m],f="center",g="bottom";var b=-Math.atan2(p[1],p[0]);u[0].8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||f},position:d,scale:[o,o]})}}}}function m(t,e,n){s.Group.call(this),this._createLine(t,e,n)}var v=m.prototype;v.beforeUpdate=g,v._createLine=function(t,e,n){var r=t.hostModel,o=t.getItemLayout(e),a=d(o);a.shape.percent=0,s.initProps(a,{shape:{percent:1}},r,e),this.add(a);var c=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(c),i.each(u,(function(n){var i=p(n,t,e);this.add(i),this[h(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},v.updateData=function(t,e,n){var r=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(e),c={shape:{}};f(c.shape,a),s.updateProps(o,c,r,e),i.each(u,(function(n){var i=t.getItemVisual(e,n),r=h(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=p(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},v._updateCommonStl=function(t,e,n){var r=t.hostModel,o=this.childOfName("line"),a=n&&n.lineStyle,c=n&&n.hoverLineStyle,h=n&&n.labelModel,p=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var d=t.getItemModel(e);a=d.getModel("lineStyle").getLineStyle(),c=d.getModel("emphasis.lineStyle").getLineStyle(),h=d.getModel("label"),p=d.getModel("emphasis.label")}var f=t.getItemVisual(e,"color"),g=i.retrieve3(t.getItemVisual(e,"opacity"),a.opacity,1);o.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:f,opacity:g},a)),o.hoverStyle=c,i.each(u,(function(t){var e=this.childOfName(t);e&&(e.setColor(f),e.setStyle({opacity:g}))}),this);var m,v,y=h.getShallow("show"),_=p.getShallow("show"),b=this.childOfName("label");if((y||_)&&(m=f||"#000",v=r.getFormattedLabel(e,"normal",t.dataType),null==v)){var x=r.getRawValue(e);v=null==x?t.getName(e):isFinite(x)?l(x):x}var w=y?v:null,O=_?i.retrieve2(r.getFormattedLabel(e,"emphasis",t.dataType),v):null,S=b.style;null==w&&null==O||(s.setTextStyle(b.style,h,{text:w},{autoColor:m}),b.__textAlign=S.textAlign,b.__verticalAlign=S.textVerticalAlign,b.__position=h.get("position")||"middle"),b.hoverStyle=null!=O?{text:O,textFill:p.getTextColor(!0),fontStyle:p.getShallow("fontStyle"),fontWeight:p.getShallow("fontWeight"),fontSize:p.getShallow("fontSize"),fontFamily:p.getShallow("fontFamily")}:{text:null},b.ignore=!y&&!_,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},v.setLinePoints=function(t){var e=this.childOfName("line");f(e.shape,t),e.dirty()},i.inherits(m,s.Group);var y=m;t.exports=y},"7e63":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=r.each,a=r.filter,s=r.map,c=r.isArray,l=r.indexOf,u=r.isObject,h=r.isString,p=r.createHashMap,d=r.assert,f=r.clone,g=r.merge,m=r.extend,v=r.mixin,y=n("e0d3"),_=n("4319"),b=n("6cb7"),x=n("8971"),w=n("e47b"),O=n("0f99"),S=O.resetSourceDefaulter,E="\0_ec_inner",A=_.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new _(n),this._optionManager=i},setOption:function(t,e){d(!(E in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):j.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this,this._api);a.length&&o(a,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,n=this._componentsMap,i=[];function r(i,r){var a=y.normalizeToArray(t[i]),s=y.mappingToExists(n.get(i),a);y.makeIdAndName(s),o(s,(function(t,e){var n=t.option;u(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=C(i,n,t.exist))}));var c=M(n,r);e[i]=[],n.set(i,[]),o(s,(function(t,r){var o=t.exist,a=t.option;if(d(u(a)||o,"Empty component definition"),a){var s=b.getClass(i,t.keyInfo.subType,!0);if(o&&o instanceof s)o.name=t.keyInfo.name,o.mergeOption(a,this),o.optionUpdated(a,!1);else{var l=m({dependentModels:c,componentIndex:r},t.keyInfo);o=new s(a,this,this,l),m(o,l),o.init(a,this,this,l),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);n.get(i)[r]=o,e[i][r]=o.option}),this),"series"===i&&P(this,n.get("series"))}S(this),o(t,(function(t,n){null!=t&&(b.hasClass(n)?n&&i.push(n):e[n]=null==e[n]?f(t):g(e[n],t,!0))})),b.topologicalTravel(i,b.getAllClassMainTypes(),r,this),this._seriesIndicesMap=p(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=f(this.option);return o(t,(function(e,n){if(b.hasClass(n)){e=y.normalizeToArray(e);for(var i=e.length-1;i>=0;i--)y.isIdInner(e[i])&&e.splice(i,1);t[n]=e}})),delete t[E],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,u=this._componentsMap.get(e);if(!u||!u.length)return[];if(null!=i)c(i)||(i=[i]),n=a(s(i,(function(t){return u[t]})),(function(t){return!!t}));else if(null!=r){var h=c(r);n=a(u,(function(t){return h&&l(r,t.id)>=0||!h&&t.id===r}))}else if(null!=o){var p=c(o);n=a(u,(function(t){return p&&l(o,t.name)>=0||!p&&t.name===o}))}else n=u.slice();return I(n,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=o(e),r=i?this.queryComponents(i):this._componentsMap.get(n);return s(I(r,t));function o(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function s(e){return t.filter?a(e,t.filter):e}},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"===typeof t)n=e,e=t,i.each((function(t,i){o(t,(function(t,r){e.call(n,i,t,r)}))}));else if(h(t))o(i.get(t),e,n);else if(u(t)){var r=this.findComponents(t);o(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return a(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 a(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){D(this),o(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},eachRawSeries:function(t,e){o(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){D(this),o(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},eachRawSeriesByType:function(t,e,n){return o(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return D(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){D(this);var n=a(this._componentsMap.get("series"),t,e);P(this,n)},restoreData:function(t){var e=this._componentsMap;P(this,e.get("series"));var n=[];e.each((function(t,e){n.push(e)})),b.topologicalTravel(n,b.getAllClassMainTypes(),(function(n,i){o(e.get(n),(function(e){("series"!==n||!k(e,t))&&e.restoreData()}))}))}});function k(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function T(t,e){var n=t.color&&!t.colorLayer;o(e,(function(e,i){"colorLayer"===i&&n||b.hasClass(i)||("object"===typeof e?t[i]=t[i]?g(t[i],e,!1):f(e):null==t[i]&&(t[i]=e))}))}function j(t){t=t,this.option={},this.option[E]=1,this._componentsMap=p({series:[]}),this._seriesIndices,this._seriesIndicesMap,T(t,this._theme.option),g(t,x,!1),this.mergeOption(t)}function M(t,e){c(e)||(e=e?[e]:[]);var n={};return o(e,(function(e){n[e]=(t.get(e)||[]).slice()})),n}function C(t,e,n){var i=e.type?e.type:n?n.subType:b.determineSubType(t,e);return i}function P(t,e){t._seriesIndicesMap=p(t._seriesIndices=s(e,(function(t){return t.componentIndex}))||[])}function I(t,e){return e.hasOwnProperty("subType")?a(t,(function(t){return t.subType===e.subType})):t}function D(t){}v(A,w);var R=A;t.exports=R},"7f59":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("6d8b"),a=n("e0d3"),s=n("2306"),c=n("f934");r.registerPreprocessor((function(t){var e=t.graphic;o.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var l=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,l.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,s=[];this._flatten(i,s);var c=a.mappingToExists(r,s);a.makeIdAndName(c);var l=this._elOptionsToUpdate=[];o.each(c,(function(t,e){var n=t.option;n&&(l.push(n),f(t,n),g(r,e,n),m(r[e],n))}),this);for(var u=r.length-1;u>=0;u--)null==r[u]?r.splice(u,1):delete r[u].$action},_flatten:function(t,e,n){o.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function u(t,e,n,i){var r=n.type,o=s[r.charAt(0).toUpperCase()+r.slice(1)],a=new o(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function h(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){h(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function p(t){return t=o.extend({},t),o.each(["id","parentId","$action","hv","bounding"].concat(c.LOCATION_PARAMS),(function(e){delete t[e]})),t}function d(t,e){var n;return o.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function f(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function g(t,e,n){var i=o.extend({},n),r=t[e],a=n.$action||"merge";"merge"===a?r?(o.merge(r,i,!0),c.mergeLayoutParam(r,i,{ignoreSize:!0}),c.copyLayoutParams(n,r)):t[e]=i:"replace"===a?t[e]=i:"remove"===a&&r&&(t[e]=null)}function m(t,e){t&&(t.hv=e.hv=[d(e,["left","right"]),d(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function v(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}r.extendComponentView({type:"graphic",init:function(t,e){this._elMap=o.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;o.each(e,(function(e){var r=e.$action,o=e.id,a=n.get(o),s=e.parentId,c=null!=s?n.get(s):i,l=e.style;"text"===e.type&&l&&(e.hv&&e.hv[1]&&(l.textVerticalAlign=l.textBaseline=null),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke));var d=p(e);r&&"merge"!==r?"replace"===r?(h(a,n),u(o,c,d,n)):"remove"===r&&h(a,n):a?a.attr(d):u(o,c,d,n);var f=n.get(o);f&&(f.__ecGraphicWidth=e.width,f.__ecGraphicHeight=e.height,v(f,t,e))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=n.length-1;o>=0;o--){var a=n[o],s=r.get(a.id);if(s){var l=s.parent,u=l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};c.positionElement(s,a,u,null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){h(e,t)})),this._elMap=o.createHashMap()},dispose:function(){this._clear()}})},"7f91":function(t,e,n){var i=n("2306"),r=n("401b"),o=i.Line.prototype,a=i.BezierCurve.prototype;function s(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var c=i.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){(s(e)?o:a).buildPath(t,e)},pointAt:function(t){return s(this.shape)?o.pointAt.call(this,t):a.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,n=s(e)?[e.x2-e.x1,e.y2-e.y1]:a.tangentAt.call(this,t);return r.normalize(n,n)}});t.exports=c},"7f96":function(t,e){function n(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i,r){var o=t.getData(),a=t.get("symbol")||e,s=t.get("symbolSize"),c=t.get("symbolKeepAspect");if(o.setVisual({legendSymbol:n||a,symbol:a,symbolSize:s,symbolKeepAspect:c}),!i.isSeriesFiltered(t)){var l="function"===typeof s;return{dataEach:o.hasItemOption||l?u:null}}function u(e,n){if("function"===typeof s){var i=t.getRawValue(n),r=t.getDataParams(n);e.setItemVisual(n,"symbolSize",s(i,r))}if(e.hasItemOption){var o=e.getItemModel(n),a=o.getShallow("symbol",!0),c=o.getShallow("symbolSize",!0),l=o.getShallow("symbolKeepAspect",!0);null!=a&&e.setItemVisual(n,"symbol",a),null!=c&&e.setItemVisual(n,"symbolSize",c),null!=l&&e.setItemVisual(n,"symbolKeepAspect",l)}}}}}t.exports=n},8096:function(t,e,n){},"80f0":function(t,e){function n(t){return t}function i(t,e,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||n,this._newKeyGetter=r||n,this.context=o}function r(t,e,n,i,r){for(var o=0;o0;o--)c*=.99,_(s,c,a),y(s,r,n,i,a),E(s,c,a),y(s,r,n,i,a)}function m(t,e){var n=[],i="vertical"===e?"y":"x",o=a(t,(function(t){return t.getLayout()[i]}));return o.keys.sort((function(t,e){return t-e})),r.each(o.keys,(function(t){n.push(o.buckets.get(t))})),n}function v(t,e,n,i,o,a,s){var c=[];r.each(e,(function(t){var e=t.length,n=0,l=0;r.each(t,(function(t){n+=t.getLayout().value})),l="vertical"===s?(o-(e-1)*a)/n:(i-(e-1)*a)/n,c.push(l)})),c.sort((function(t,e){return t-e}));var l=c[0];r.each(e,(function(t){r.each(t,(function(t,e){var n=t.getLayout().value*l;"vertical"===s?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),r.each(n,(function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)}))}function y(t,e,n,i,o){r.each(t,(function(t){var r,a,s,c=0,l=t.length;if("vertical"===o){var u;for(t.sort((function(t,e){return t.getLayout().x-e.getLayout().x})),s=0;s0&&(u=r.getLayout().x+a,r.setLayout({x:u},!0)),c=r.getLayout().x+r.getLayout().dx+e;if(a=c-e-i,a>0)for(u=r.getLayout().x-a,r.setLayout({x:u},!0),c=u,s=l-2;s>=0;--s)r=t[s],a=r.getLayout().x+r.getLayout().dx+e-c,a>0&&(u=r.getLayout().x-a,r.setLayout({x:u},!0)),c=r.getLayout().x}else{var h;for(t.sort((function(t,e){return t.getLayout().y-e.getLayout().y})),s=0;s0&&(h=r.getLayout().y+a,r.setLayout({y:h},!0)),c=r.getLayout().y+r.getLayout().dy+e;if(a=c-e-n,a>0)for(h=r.getLayout().y-a,r.setLayout({y:h},!0),c=h,s=l-2;s>=0;--s)r=t[s],a=r.getLayout().y+r.getLayout().dy+e-c,a>0&&(h=r.getLayout().y-a,r.setLayout({y:h},!0)),c=r.getLayout().y}}))}function _(t,e,n){r.each(t.slice().reverse(),(function(t){r.each(t,(function(t){if(t.outEdges.length){var i=S(t.outEdges,b,n)/S(t.outEdges,O,n);if("vertical"===n){var r=t.getLayout().x+(i-w(t,n))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(i-w(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function b(t,e){return w(t.node2,e)*t.getValue()}function x(t,e){return w(t.node1,e)*t.getValue()}function w(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function O(t){return t.getValue()}function S(t,e,n){var i=0,r=t.length,o=-1;while(++o=0){var l=o.indexOf(s),u=o.substr(c+a.length,l-c-a.length);u.indexOf("sub")>-1?i["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:i["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},o=o.substr(l+1),c=o.indexOf("{marker")}this.el=new r({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var h=this;this.el.on("mouseover",(function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0})),this.el.on("mouseout",(function(){h._enterable&&h._show&&h.hideLater(h._hideDelay),h._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){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(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}};var a=o;t.exports=a},8344:function(t,e,n){var i=n("6d8b"),r=n("f706"),o=n("3842"),a=n("6179"),s=n("923d"),c=n("88f0");function l(t,e,n){var i=e.coordinateSystem;t.each((function(r){var a,s=t.getItemModel(r),c=o.parsePercent(s.get("x"),n.getWidth()),l=o.parsePercent(s.get("y"),n.getHeight());if(isNaN(c)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);a=i.dataToPoint([u,h])}}else a=[c,l];isNaN(c)||(a[0]=c),isNaN(l)||(a[1]=l),t.setItemLayout(r,a)}))}var u=c.extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markPointModel;e&&(l(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,n,i){var o=t.coordinateSystem,a=t.id,s=t.getData(),c=this.markerGroupMap,u=c.get(a)||c.set(a,new r),p=h(o,t,e);e.setData(p),l(e.getData(),t,i),p.each((function(t){var n=p.getItemModel(t),i=n.getShallow("symbolSize");"function"===typeof i&&(i=i(e.getRawValue(t),e.getDataParams(t))),p.setItemVisual(t,{symbolSize:i,color:n.get("itemStyle.color")||s.getVisual("color"),symbol:n.getShallow("symbol")})})),u.updateData(p),this.group.add(u.group),p.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}});function h(t,e,n){var r;r=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var o=new a(r,n),c=i.map(n.get("data"),i.curry(s.dataTransform,e));return t&&(c=i.filter(c,i.curry(s.dataFilter,t))),o.initData(c,null,t?s.dimValueGetter:function(t){return t.value}),o}t.exports=u},"83ba":function(t,e,n){var i=n("6d8b"),r=n("6cb7"),o=n("f934"),a=o.getLayoutParams,s=o.sizeCalculable,c=o.mergeLayoutParam,l=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,n,i){var r=a(t);l.superApply(this,"init",arguments),u(t,r)},mergeOption:function(t,e){l.superApply(this,"mergeOption",arguments),u(this.option,t)}});function u(t,e){var n=t.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var r=i.map([0,1],(function(t){return s(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));c(t,e,{type:"box",ignoreSize:r})}var h=l;t.exports=h},"843e":function(t,e,n){var i=n("6d8b"),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function o(t){i.each(r,(function(e){this[e]=i.bind(t[e],t)}),this)}var a=o;t.exports=a},8459:function(t,e,n){var i=n("3eba"),r={type:"axisAreaSelect",event:"axisAreaSelected"};i.registerAction(r,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),i.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))},"849b":function(t,e,n){var i=n("d9d0"),r=n("2039");function o(t,e){var n=[];return t.eachComponent("parallel",(function(r,o){var a=new i(r,t,e);a.name="parallel_"+o,a.resize(r,e),r.coordinateSystem=a,a.model=r,n.push(a)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}r.register("parallel",{create:o})},"84ce":function(t,e,n){var i=n("6d8b"),r=i.each,o=i.map,a=n("3842"),s=a.linearMap,c=a.getPixelPrecision,l=n("e073"),u=l.createAxisTicks,h=l.createAxisLabels,p=l.calculateCategoryInterval,d=[0,1],f=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function g(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function m(t,e,n,i,o){var a=e.length;if(t.onBand&&!i&&a){var s,c=t.getExtent();if(1===a)e[0].coord=c[0],s=e[1]={coord:c[0]};else{var l=e[1].coord-e[0].coord;r(e,(function(t){t.coord-=l/2;var e=e||0;e%2>0&&(t.coord-=l/(2*(e+1)))})),s={coord:e[a-1].coord+l},e.push(s)}var u=c[0]>c[1];h(e[0].coord,c[0])&&(o?e[0].coord=c[0]:e.shift()),o&&h(c[0],e[0].coord)&&e.unshift({coord:c[0]}),h(c[1],s.coord)&&(o?s.coord=c[1]:e.pop()),o&&h(s.coord,c[1])&&e.push({coord:c[1]})}function h(t,e){return u?t>e:t=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return c(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),g(n,i.count())),s(t,d,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),g(n,i.count()));var r=s(t,n,d,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=u(this,e),i=n.ticks,r=o(i,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this),a=e.get("alignWithLabel");return m(this,r,n.tickCategoryInterval,a,t.clamp),r},getViewLabels:function(){return h(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(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return p(this)}};var v=f;t.exports=v},"84d5":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("4319"),a=n("e0d3"),s=a.isNameSpecified,c=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){c.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},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",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),l=c;t.exports=l},"857d":function(t,e){var n=2*Math.PI;function i(t){return t%=n,t<0&&(t+=n),t}e.normalizeRadian=i},"862d":function(t,e,n){var i=n("6d8b"),r=i.createHashMap,o=i.each,a=i.isString,s=i.defaults,c=i.extend,l=i.isObject,u=i.clone,h=n("e0d3"),p=h.normalizeToArray,d=n("0f99"),f=d.guessOrdinal,g=n("ec6f"),m=n("2f45"),v=m.OTHER_DIMENSIONS;function y(t,e,n){g.isInstance(e)||(e=g.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),h=r(n.encodeDef),d=r(),m=r(),y=[],x=_(e,t,i,n.dimCount),w=0;we&&o>i||or?a:0}t.exports=n},"879e":function(t,e,n){var i=n("3eba"),r=n("6179"),o=n("6d8b"),a=n("e0d3"),s=a.defaultEmphasis,c=n("4319"),l=n("eda2"),u=l.encodeHTML,h=n("237f"),p=i.extendSeriesModel({type:"series.graph",init:function(t){p.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){p.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){p.superApply(this,"mergeDefaultAndTheme",arguments),s(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return h(i,n,this,!0,o).data;function o(t,n){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var i=r.getModel("edgeLabel"),o=new c({label:i.option},i.parentModel,e),a=r.getModel("emphasis.edgeLabel"),s=new c({emphasis:{label:a.option}},a.parentModel,e);function l(t){return t=this.parsePath(t),t&&"label"===t[0]?o:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}n.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(l),t}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),c=[];return null!=a&&c.push(a),null!=s&&c.push(s),c=u(c.join(" > ")),r.value&&(c+=" : "+u(r.value)),c}return p.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=o.map(this.option.categories||[],(function(t){return null!=t.value?t:o.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 p.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,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),d=p;t.exports=d},"87b1":function(t,e,n){var i=n("cbe5"),r=n("4fac"),o=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=o},"87c3":function(t,e,n){var i=n("6d8b"),r=i.map,o=n("cccd"),a=n("ee1a"),s=a.isDimensionStacked;function c(t){return{seriesType:t,plan:o(),reset:function(t){var e=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=i.large;if(n){var a=r(n.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),c=a.length,l=e.getCalculationInfo("stackResultDimension");return s(e,a[0])&&(a[0]=l),s(e,a[1])&&(a[1]=l),c&&{progress:u}}function u(t,e){for(var i=t.end-t.start,r=o&&new Float32Array(i*c),s=t.start,l=0,u=[],h=[];s2&&void 0!==arguments[2]?arguments[2]:{};return e=I(e),_(t,(function(t){var i=e(t)||"_",r=n[i];r||(r=n[i]=[]),r.push(t)})),n}function j(t){t=I(t);for(var e={},n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0)return s(l);t.apply(r,i),c()}function s(t){n=setTimeout(a,t)}function c(){n&&clearTimeout(n),n=o=i=r=void 0}function l(){n&&a(!0),c()}function u(){o=Date.now();for(var t=arguments.length,a=new Array(t),c=0;c1?e-1:0),i=1;i=0?h():u=setTimeout(h,-r),c=i};return p.clear=function(){u&&(clearTimeout(u),u=null)},p.debounceNextCall=function(t){s=t},p}function a(t,e,a,s){var c=t[e];if(c){var l=c[n]||c,u=c[r],h=c[i];if(h!==a||u!==s){if(null==a||!s)return t[e]=l;c=t[e]=o(l,a,"debounce"===s),c[n]=l,c[r]=s,c[i]=a}return c}}function s(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])}e.throttle=o,e.createOrUpdate=a,e.clear=s},"88eb":function(t,e,n){"use strict";n.d(e,"a",(function(){return zt}));var i=n("3fb5"),r=n.n(i),o=n("87f2"),a=n("9036"),s=n("dbc8"),c=n("ee44"),l=n("7a6b"),u=n("bc2f");function h(t,e,n){function i(t,e){return Object(o["d"])(e,(function(e,n){return t[n]==e}))}return Object(o["A"])(t.eventDefinitions,(function(r){return r.$type===e&&i(t,n)}))}function p(t){return"bpmn:IntermediateThrowEvent"===t.$type||"bpmn:EndEvent"===t.$type}function d(t){var e=t.dataObjectRef;return t.isCollection||e&&e.isCollection}function f(t){return t.businessObject}function g(t,e){var n=Object(l["b"])(t);return n.get("color:background-color")||n.get("bioc:fill")||e||"white"}function m(t,e){var n=Object(l["b"])(t);return n.get("color:border-color")||n.get("bioc:stroke")||e||"black"}function v(t,e,n){var i=Object(l["b"])(t),r=i.get("label");return r&&r.get("color:color")||e||m(t,n)}function y(t){var e=t.x+t.width/2,n=t.y+t.height/2,i=t.width/2,r=[["M",e,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]];return Object(u["a"])(r)}function _(t,e){var n=t.x,i=t.y,r=t.width,o=t.height,a=[["M",n+e,i],["l",r-2*e,0],["a",e,e,0,0,1,e,e],["l",0,o-2*e],["a",e,e,0,0,1,-e,e],["l",2*e-r,0],["a",e,e,0,0,1,-e,-e],["l",0,2*e-o],["a",e,e,0,0,1,e,-e],["z"]];return Object(u["a"])(a)}function b(t){var e=t.width,n=t.height,i=t.x,r=t.y,o=e/2,a=n/2,s=[["M",i+o,r],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return Object(u["a"])(s)}function x(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=[["M",e,n],["l",i,0],["l",0,r],["l",-i,0],["z"]];return Object(u["a"])(o)}var w=n("e506"),O=n("6b8b"),S=n("e116"),E=n("e6a4"),A=new E["a"],k=10,T=3,j=.95,M=.35,C=10;function P(t,e,n,i,r,y,_){a["a"].call(this,e,_);var b=t&&t.defaultFillColor,x=t&&t.defaultStrokeColor,E=t&&t.defaultLabelColor,P=A.next(),I={},D=n.computeStyle;function R(t,e){var n=Object(o["a"])({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},e.attrs),i=e.ref||{x:0,y:0},a=e.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var s=Object(O["f"])("marker");Object(O["b"])(e.element,n),Object(O["a"])(s,e.element),Object(O["b"])(s,{id:t,viewBox:"0 0 20 20",refX:i.x,refY:i.y,markerWidth:20*a,markerHeight:20*a,orient:"auto"});var c=Object(w["j"])("defs",r._svg);c||(c=Object(O["f"])("defs"),Object(O["a"])(r._svg,c)),Object(O["a"])(c,s),I[t]=s}function L(t){return t.replace(/[^0-9a-zA-z]+/g,"_")}function N(t,e,n){var i=t+"-"+L(e)+"-"+L(n)+"-"+P;return I[i]||B(i,t,e,n),"url(#"+i+")"}function B(t,e,n,i){if("sequenceflow-end"===e){var r=Object(O["f"])("path");Object(O["b"])(r,{d:"M 1 5 L 11 10 L 1 15 Z"}),R(t,{element:r,ref:{x:11,y:10},scale:.5,attrs:{fill:i,stroke:i}})}if("messageflow-start"===e){var o=Object(O["f"])("circle");Object(O["b"])(o,{cx:6,cy:6,r:3.5}),R(t,{element:o,attrs:{fill:n,stroke:i},ref:{x:6,y:6}})}if("messageflow-end"===e){var a=Object(O["f"])("path");Object(O["b"])(a,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),R(t,{element:a,attrs:{fill:n,stroke:i,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===e){var s=Object(O["f"])("path");Object(O["b"])(s,{d:"M 11 5 L 1 10 L 11 15"}),R(t,{element:s,attrs:{fill:"none",stroke:i,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===e){var c=Object(O["f"])("path");Object(O["b"])(c,{d:"M 1 5 L 11 10 L 1 15"}),R(t,{element:c,attrs:{fill:"none",stroke:i,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===e){var l=Object(O["f"])("path");Object(O["b"])(l,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),R(t,{element:l,attrs:{fill:n,stroke:i},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===e){var u=Object(O["f"])("path");Object(O["b"])(u,{d:"M 6 4 L 10 16"}),R(t,{element:u,attrs:{stroke:i},ref:{x:0,y:10},scale:.5})}}function z(t,e,n,i,r){Object(o["q"])(i)&&(r=i,i=0),i=i||0,r=D(r,{stroke:"black",strokeWidth:2,fill:"white"}),"none"===r.fill&&delete r.fillOpacity;var a=e/2,s=n/2,c=Object(O["f"])("circle");return Object(O["b"])(c,{cx:a,cy:s,r:Math.round((e+n)/4-i)}),Object(O["b"])(c,r),Object(O["a"])(t,c),c}function F(t,e,n,i,r,a){Object(o["q"])(r)&&(a=r,r=0),r=r||0,a=D(a,{stroke:"black",strokeWidth:2,fill:"white"});var s=Object(O["f"])("rect");return Object(O["b"])(s,{x:r,y:r,width:e-2*r,height:n-2*r,rx:i,ry:i}),Object(O["b"])(s,a),Object(O["a"])(t,s),s}function V(t,e,n,i){var r=e/2,o=n/2,a=[{x:r,y:0},{x:e,y:o},{x:r,y:n},{x:0,y:o}],s=a.map((function(t){return t.x+","+t.y})).join(" ");i=D(i,{stroke:"black",strokeWidth:2,fill:"white"});var c=Object(O["f"])("polygon");return Object(O["b"])(c,{points:s}),Object(O["b"])(c,i),Object(O["a"])(t,c),c}function H(t,e,n){n=D(n,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"});var i=Object(u["b"])(e,n);return Object(O["a"])(t,i),i}function G(t,e,n){n=D(n,["no-fill"],{strokeWidth:2,stroke:"black"});var i=Object(O["f"])("path");return Object(O["b"])(i,{d:e}),Object(O["b"])(i,n),Object(O["a"])(t,i),i}function q(t,e,n,i){return G(e,n,Object(o["a"])({"data-marker":t},i))}function W(t){return J[t]}function U(t){return function(e,n){return W(t)(e,n)}}function $(t,e){var n=f(t),i=p(n);return n.eventDefinitions&&n.eventDefinitions.length>1?n.parallelMultiple?W("bpmn:ParallelMultipleEventDefinition")(e,t,i):W("bpmn:MultipleEventDefinition")(e,t,i):h(n,"bpmn:MessageEventDefinition")?W("bpmn:MessageEventDefinition")(e,t,i):h(n,"bpmn:TimerEventDefinition")?W("bpmn:TimerEventDefinition")(e,t,i):h(n,"bpmn:ConditionalEventDefinition")?W("bpmn:ConditionalEventDefinition")(e,t):h(n,"bpmn:SignalEventDefinition")?W("bpmn:SignalEventDefinition")(e,t,i):h(n,"bpmn:EscalationEventDefinition")?W("bpmn:EscalationEventDefinition")(e,t,i):h(n,"bpmn:LinkEventDefinition")?W("bpmn:LinkEventDefinition")(e,t,i):h(n,"bpmn:ErrorEventDefinition")?W("bpmn:ErrorEventDefinition")(e,t,i):h(n,"bpmn:CancelEventDefinition")?W("bpmn:CancelEventDefinition")(e,t,i):h(n,"bpmn:CompensateEventDefinition")?W("bpmn:CompensateEventDefinition")(e,t,i):h(n,"bpmn:TerminateEventDefinition")?W("bpmn:TerminateEventDefinition")(e,t,i):null}function Y(t,e,n){n=Object(o["a"])({size:{width:100}},n);var i=y.createText(e||"",n);return Object(O["c"])(i).add("djs-label"),Object(O["a"])(t,i),i}function Z(t,e,n){var i=f(e);return Y(t,i.name,{box:e,align:n,padding:5,style:{fill:v(e,E,x)}})}function X(t,e){var n={width:90,height:30,x:e.width/2+e.x,y:e.height/2+e.y};return Y(t,Object(c["a"])(e),{box:n,fitBox:!0,style:Object(o["a"])({},y.getExternalStyle(),{fill:v(e,E,x)})})}function K(t,e,n){var i=Y(t,e,{box:{height:30,width:n.height},align:"center-middle",style:{fill:v(n,E,x)}}),r=-1*n.height;Object(S["b"])(i,0,-r,270)}function Q(t){for(var e=t.waypoints,n="m "+e[0].x+","+e[0].y,i=1;i1)while(n=i.shift()){if(!(n.length+ot?e.width:t}),0),m=a.top;"middle"===r.vertical&&(m+=(n.height-f)/2),m-=(c||u[0].height)/4;var v=Object(O["f"])("text");Object(O["b"])(v,i),Object(o["i"])(u,(function(t){var e;switch(m+=c||t.height,r.horizontal){case"left":e=a.left;break;case"right":e=(s?g:h)-a.right-t.width;break;default:e=Math.max(((s?g:h)-t.width)/2+a.left,0)}var n=Object(O["f"])("tspan");Object(O["b"])(n,{x:e,y:m}),n.textContent=t.text,Object(O["a"])(v,n)})),Object(O["j"])(p);var y={width:g,height:f};return{dimensions:y,element:v}};var U=12,$=1.2,Y=30;function Z(t){var e=Object(o["a"])({fontFamily:"Arial, sans-serif",fontSize:U,fontWeight:"normal",lineHeight:$},t&&t.defaultStyle||{}),n=parseInt(e.fontSize,10)-1,i=Object(o["a"])({},e,{fontSize:n},t&&t.externalStyle||{}),r=new q({style:e});this.getExternalLabelBounds=function(t,e){var n=r.getDimensions(e,{box:{width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y},style:i});return{x:Math.round(t.x+t.width/2-n.width/2),y:Math.round(t.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(t,n){var i=r.getDimensions(n,{box:t,style:e,align:"left-top",padding:5});return{x:t.x,y:t.y,width:t.width,height:Math.max(Y,Math.round(i.height))}},this.createText=function(t,e){return r.createText(t,e||{})},this.getDefaultStyle=function(){return e},this.getExternalStyle=function(){return i}}function X(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,e){var n,i,r=this.pathMap[t];e.abspos?(n=e.abspos.x,i=e.abspos.y):(n=e.containerWidth*e.position.mx,i=e.containerHeight*e.position.my);var o={};if(e.position){for(var a=e.containerHeight/r.height*e.yScaleFactor,s=e.containerWidth/r.width*e.xScaleFactor,c=0;c=t.x&&n<=t.x+t.width&&i>=t.y&&i<=t.y+t.height}function ht(t){return Object(l["c"])(t,"bpmn:Group")}lt.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],lt.prototype.add=function(t,e,n){var i,r,o,a=this._translate;if(Object(l["c"])(e,"bpmndi:BPMNPlane")){var u=Object(l["c"])(t,"bpmn:SubProcess")?{id:t.id+"_plane"}:{};i=this._elementFactory.createRoot(at(t,e,u)),this._canvas.addRootElement(i)}else if(Object(l["c"])(e,"bpmndi:BPMNShape")){var h=!Object(s["f"])(t,e),p=ht(t);r=n&&(n.hidden||n.collapsed);var d=e.bounds;i=this._elementFactory.createShape(at(t,e,{collapsed:h,hidden:r,x:Math.round(d.x),y:Math.round(d.y),width:Math.round(d.width),height:Math.round(d.height),isFrame:p})),Object(l["c"])(t,"bpmn:BoundaryEvent")&&this._attachBoundary(t,i),Object(l["c"])(t,"bpmn:Lane")&&(o=0),Object(l["c"])(t,"bpmn:DataStoreReference")&&(ut(n,Object(rt["e"])(d))||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!Object(l["c"])(e,"bpmndi:BPMNEdge"))throw new Error(a("unknown di {di} for element {semantic}",{di:Object(ot["a"])(e),semantic:Object(ot["a"])(t)}));var f=this._getSource(t),g=this._getTarget(t);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(at(t,e,{hidden:r,source:f,target:g,waypoints:st(e,f,g)})),Object(l["c"])(t,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),Object(l["c"])(t,"bpmn:SequenceFlow")&&(o=0),this._canvas.addConnection(i,n,o)}return Object(it["f"])(t)&&Object(c["a"])(i)&&this.addLabel(t,e,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},lt.prototype._attachBoundary=function(t,e){var n=this._translate,i=t.attachedToRef;if(!i)throw new Error(n("missing {semantic}#attachedToRef",{semantic:Object(ot["a"])(t)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw ct(n,t,i,"attachedToRef");e.host=r,o||(r.attachers=o=[]),-1===o.indexOf(e)&&o.push(e)},lt.prototype.addLabel=function(t,e,n){var i,r,o;return i=Object(it["b"])(e,n),r=Object(c["a"])(n),r&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(at(t,e,{id:t.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!Object(c["a"])(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},lt.prototype._getEnd=function(t,e){var n,i,r=t.$type,o=this._translate;if(i=t[e+"Ref"],"source"===e&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===e&&"bpmn:DataOutputAssociation"===r||"target"===e&&"bpmn:DataInputAssociation"===r)&&(i=t.$parent),n=i&&this._getElement(i),n)return n;throw i?ct(o,t,i,e+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:Object(ot["a"])(t),side:e}))},lt.prototype._getSource=function(t){return this._getEnd(t,"source")},lt.prototype._getTarget=function(t){return this._getEnd(t,"target")},lt.prototype._getElement=function(t){return this._elementRegistry.get(t.id)};var pt={__depends__:[nt["a"]],bpmnImporter:["type",lt]},dt={__depends__:[et,pt]},ft=n("c78f"),gt=n("4672"),mt=n("753e"),vt=n("96ae"),yt=n("3413");function _t(t,e){e.invoke(yt["a"],this),this.executed((function(e){var n=e.context;n.rootElement?t.setRootElement(n.rootElement):n.rootElement=t.getRootElement()})),this.revert((function(e){var n=e.context;n.rootElement&&t.setRootElement(n.rootElement)}))}Object(vt["a"])(_t,yt["a"]),_t.$inject=["canvas","injector"];var bt={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",_t]},xt=n("6730"),wt=n("704a"),Ot="bjs-breadcrumbs-shown";function St(t,e,n,i){var r=Object(w["g"])('
    '),a=i.getContainer(),s=Object(w["c"])(a);a.appendChild(r);var c=[];function u(t){t&&(c=Et(t));var n=c.map((function(t){var n=Object(xt["a"])(t.name||t.id),r=Object(w["g"])('
  • '+n+"
  • "),o=i.findRoot(Object(wt["a"])(t))||i.findRoot(t.id);if(!o&&Object(l["c"])(t,"bpmn:Process")){var a=e.find((function(e){var n=Object(l["a"])(e);return n&&n.processRef&&n.processRef===t}));o=i.findRoot(a.id)}return r.addEventListener("click",(function(){i.setRootElement(o)})),r}));r.innerHTML="";var o=n.length>1;s.toggle(Ot,o),n.forEach((function(t){r.appendChild(t)}))}t.on("element.changed",(function(t){var e=t.element,n=Object(l["a"])(e),i=Object(o["f"])(c,(function(t){return t===n}));i&&u()})),t.on("root.set",(function(t){u(t.element)}))}function Et(t){for(var e=Object(l["a"])(t),n=[],i=e;i;i=i.$parent)(Object(l["c"])(i,"bpmn:SubProcess")||Object(l["c"])(i,"bpmn:Process"))&&n.push(i);return n.reverse()}function At(t,e){var n=null,i=new kt;t.on("root.set",(function(t){var r=t.element,o=e.viewbox(),a=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,!Object(l["c"])(r,"bpmn:Collaboration")||a){a=a||{x:0,y:0,zoom:1};var s=(o.x-a.x)*o.scale,c=(o.y-a.y)*o.scale;0===s&&0===c||e.scroll({dx:s,dy:c}),a.zoom!==o.scale&&e.zoom(a.zoom,{x:0,y:0})}})),t.on("diagram.clear",(function(){i.clear(),n=null}))}function kt(){this._entries=[],this.set=function(t,e){var n=!1;for(var i in this._entries)if(this._entries[i][0]===t){this._entries[i][1]=e,n=!0;break}n||this._entries.push([t,e])},this.get=function(t){for(var e in this._entries)if(this._entries[e][0]===t)return this._entries[e][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(t){var e=-1;for(var n in this._entries)if(this._entries[n][0]===t){e=n;break}-1!==e&&this._entries.splice(e,1)}}St.$inject=["eventBus","elementRegistry","overlays","canvas"],At.$inject=["eventBus","canvas"];var Tt={x:180,y:160};function jt(t,e){this._eventBus=t,this._moddle=e;var n=this;t.on("import.render.start",1500,(function(t,e){n.handleImport(e.definitions)}))}function Mt(t){return Object(l["c"])(t,"bpmndi:BPMNDiagram")?t:Mt(t.$parent)}function Ct(t){var e={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return t.planeElement.forEach((function(t){if(t.bounds){var n=Object(rt["b"])(t.bounds);e.top=Math.min(n.top,e.top),e.left=Math.min(n.left,e.left)}})),Object(rt["a"])(e)}function Pt(t,e){var n=t.$parent;return!(!Object(l["c"])(n,"bpmn:SubProcess")||n===e.bpmnElement)&&!Object(l["d"])(t,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"])}jt.prototype.handleImport=function(t){if(t.diagrams){var e=this;this._definitions=t,this._processToDiagramMap={},t.diagrams.forEach((function(t){t.plane&&t.plane.bpmnElement&&(e._processToDiagramMap[t.plane.bpmnElement.id]=t)}));var n=[];t.diagrams.forEach((function(t){var i=e.createNewDiagrams(t.plane);Array.prototype.push.apply(n,i)})),n.forEach((function(t){e.movePlaneElementsToOrigin(t.plane)}))}},jt.prototype.createNewDiagrams=function(t){var e=this,n=[],i=[];t.get("planeElement").forEach((function(e){var r=e.bpmnElement;if(r){var o=r.$parent;Object(l["c"])(r,"bpmn:SubProcess")&&!e.isExpanded&&n.push(r),Pt(r,t)&&i.push({diElement:e,parent:o})}}));var r=[];return n.forEach((function(t){if(!e._processToDiagramMap[t.id]){var n=e.createDiagram(t);e._processToDiagramMap[t.id]=n,r.push(n)}})),i.forEach((function(t){var i=t.diElement,r=t.parent;while(r&&-1===n.indexOf(r))r=r.$parent;if(r){var o=e._processToDiagramMap[r.id];e.moveToDiPlane(i,o.plane)}})),r},jt.prototype.movePlaneElementsToOrigin=function(t){var e=t.get("planeElement"),n=Ct(t),i={x:n.x-Tt.x,y:n.y-Tt.y};e.forEach((function(t){t.waypoint?t.waypoint.forEach((function(t){t.x=t.x-i.x,t.y=t.y-i.y})):t.bounds&&(t.bounds.x=t.bounds.x-i.x,t.bounds.y=t.bounds.y-i.y)}))},jt.prototype.moveToDiPlane=function(t,e){var n=Mt(t),i=n.plane.get("planeElement");i.splice(i.indexOf(t),1),e.get("planeElement").push(t)},jt.prototype.createDiagram=function(t){var e=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:t}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:e});return e.$parent=n,e.bpmnElement=t,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},jt.$inject=["eventBus","moddle"];var It=250,Dt='',Rt="bjs-drilldown-empty";function Lt(t,e,n,i){yt["a"].call(this,e),this._canvas=t,this._eventBus=e,this._elementRegistry=n,this._overlays=i;var r=this;this.executed("shape.toggleCollapse",It,(function(t){var e=t.shape;r.canDrillDown(e)?r.addOverlay(e):r.removeOverlay(e)}),!0),this.reverted("shape.toggleCollapse",It,(function(t){var e=t.shape;r.canDrillDown(e)?r.addOverlay(e):r.removeOverlay(e)}),!0),this.executed(["shape.create","shape.move","shape.delete"],It,(function(t){var e=t.oldParent,n=t.newParent||t.parent,i=t.shape;r.canDrillDown(i)&&r.addOverlay(i),r.updateDrilldownOverlay(e),r.updateDrilldownOverlay(n),r.updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],It,(function(t){var e=t.oldParent,n=t.newParent||t.parent,i=t.shape;r.canDrillDown(i)&&r.addOverlay(i),r.updateDrilldownOverlay(e),r.updateDrilldownOverlay(n),r.updateDrilldownOverlay(i)}),!0),e.on("import.render.complete",(function(){n.filter((function(t){return r.canDrillDown(t)})).map((function(t){r.addOverlay(t)}))}))}r()(Lt,yt["a"]),Lt.prototype.updateDrilldownOverlay=function(t){var e=this._canvas;if(t){var n=e.findRoot(t);n&&this.updateOverlayVisibility(n)}},Lt.prototype.canDrillDown=function(t){var e=this._canvas;return Object(l["c"])(t,"bpmn:SubProcess")&&e.findRoot(Object(wt["a"])(t))},Lt.prototype.updateOverlayVisibility=function(t){var e=this._overlays,n=t.businessObject,i=e.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.flowElements&&n.flowElements.length;Object(w["c"])(i.html).toggle(Rt,!r)}},Lt.prototype.addOverlay=function(t){var e=this._canvas,n=this._overlays,i=n.get({element:t,type:"drilldown"});i.length&&this.removeOverlay(t);var r=Object(w["g"])('");r.addEventListener("click",(function(){e.setRootElement(e.findRoot(Object(wt["a"])(t)))})),n.add(t,"drilldown",{position:{bottom:-7,right:-8},html:r}),this.updateOverlayVisibility(t)},Lt.prototype.removeOverlay=function(t){var e=this._overlays;e.remove({element:t,type:"drilldown"})},Lt.$inject=["canvas","eventBus","elementRegistry","overlays"];var Nt={__depends__:[gt["a"],mt["a"],bt],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",St],drilldownCentering:["type",At],drilldownOverlayBehavior:["type",Lt],subprocessCompatibility:["type",jt]},Bt=n("b392");function zt(t){Bt["a"].call(this,t)}r()(zt,Bt["a"]),zt.prototype._modules=[dt,nt["a"],ft["a"],gt["a"],Nt],zt.prototype._moddleExtensions={}},"88f0":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(t,e,n){var i=this.markerGroupMap;i.each((function(t){t.__keep=!1}));var r=this.type+"Model";e.eachSeries((function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)}),this),i.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=o},8918:function(t,e,n){var i=n("6d8b"),r=n("625e"),o=r.parseClassType,a=0;function s(t){return[t||"",a++,Math.random().toFixed(5)].join("_")}function c(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=o(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var a=o(n).main;t.hasSubTypes(n)&&e[a]&&(r=e[a](i))}return r},t}function l(t,e){function n(t){var n={},a=[];return i.each(t,(function(s){var c=r(n,s),l=c.originalDeps=e(s),u=o(l,t);c.entryCount=u.length,0===c.entryCount&&a.push(s),i.each(u,(function(t){i.indexOf(c.predecessor,t)<0&&c.predecessor.push(t);var e=r(n,t);i.indexOf(e.successor,t)<0&&e.successor.push(s)}))})),{graph:n,noEntryList:a}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function o(t,e){var n=[];return i.each(t,(function(t){i.indexOf(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,o){if(t.length){var a=n(e),s=a.graph,c=a.noEntryList,l={};i.each(t,(function(t){l[t]=!0}));while(c.length){var u=c.pop(),h=s[u],p=!!l[u];p&&(r.call(o,u,h.originalDeps.slice()),delete l[u]),i.each(h.successor,p?f:d)}i.each(l,(function(){throw new Error("Circle dependency may exists")}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&c.push(t)}function f(t){l[t]=!0,d(t)}}}e.getUID=s,e.enableSubTypeDefaulter=c,e.enableTopologicalTravel=l},8971:function(t,e){var n="";"undefined"!==typeof navigator&&(n=navigator.platform||"");var i={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.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=i},"897a":function(t,e,n){var i=n("22d1"),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function o(t){return i.browser.ie&&i.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var o=0;oe[1]&&(e[1]=t[1]),c.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=a.getIntervalPrecision(t)},getTicks:function(){return a.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=s(t,n,!0),r.addCommas(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=a.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});c.create=function(){return new c};var l=c;t.exports=l},"8b7f":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),o=r.createHashMap,a=(r.retrieve,r.each);function s(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:o(),categoryAxisMap:o()},i=c[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var c={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),l(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),l(o)&&(i.set("y",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),l(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),l(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),l(a)&&(i.set("angle",a),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();a(o.parallelAxisIndex,(function(t,o){var a=r.getComponent("parallelAxis",t),c=s[o];n.set(c,a),l(a)&&null==e.firstCategoryDimIndex&&(i.set(c,a),e.firstCategoryDimIndex=o)}))}};function l(t){return"category"===t.get("type")}e.getCoordSysDefineBySeries=s},"8c2a":function(t,e,n){var i=n("6d8b"),r=n("e0d8"),o=n("3842"),a=n("89e3"),s=r.prototype,c=a.prototype,l=o.getPrecisionSafe,u=o.round,h=Math.floor,p=Math.ceil,d=Math.pow,f=Math.log,g=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new a},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return i.map(c.getTicks.call(this),(function(i){var r=o.round(d(this.base,i));return r=i===e[0]&&t.__fixMin?m(r,n[0]):r,r=i===e[1]&&t.__fixMax?m(r,n[1]):r,r}),this)},getLabel:c.getLabel,scale:function(t){return t=s.scale.call(this,t),d(this.base,t)},setExtent:function(t,e){var n=this.base;t=f(t)/f(n),e=f(e)/f(n),c.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=d(t,e[0]),e[1]=d(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=m(e[0],i[0])),n.__fixMax&&(e[1]=m(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=f(t[0])/f(e),t[1]=f(t[1])/f(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,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=o.quantity(n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var a=[o.round(p(e[0]/i)*i),o.round(h(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},niceExtent:function(t){c.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return u(t,l(e))}i.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=f(e)/f(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var v=g;t.exports=v},"8d32":function(t,e,n){var i=n("cbe5"),r=i.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 n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,c=Math.cos(o),l=Math.sin(o);t.moveTo(c*r+n,l*r+i),t.arc(n,i,r,o,a,!s)}});t.exports=r},"8deb":function(t,e,n){var i=n("3eba");n("5522"),n("a016"),n("1466");var r=n("98e7"),o=n("7f96"),a=n("870e"),s=n("d3f4"),c=n("7891");i.registerVisual(r("radar")),i.registerVisual(o("radar","circle")),i.registerLayout(a),i.registerProcessor(s("radar")),i.registerPreprocessor(c)},"8e43":function(t,e,n){var i=n("6d8b"),r=i.createHashMap,o=i.isObject,a=i.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,n=e.data,i=n&&a(n,u);return new s({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var c=s.prototype;function l(t){return t._map||(t._map=r(t.categories))}function u(t){return o(t)&&null!=t.value?t.value:t+""}c.getOrdinal=function(t){return l(this).get(t)},c.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!==typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=l(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var h=s;t.exports=h},"8e77":function(t,e,n){var i=n("6d8b"),r=n("41ef"),o=n("6179"),a=n("3842"),s=n("2306"),c=n("923d"),l=n("88f0"),u=function(t,e,n,r){var o=c.dataTransform(t,r[0]),a=c.dataTransform(t,r[1]),s=i.retrieve,l=o.coord,u=a.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var h=i.mergeAll([{},o,a]);return h.coord=[o.coord,a.coord],h.x0=o.x,h.y0=o.y,h.x1=a.x,h.y1=a.y,h};function h(t){return!isNaN(t)&&!isFinite(t)}function p(t,e,n,i){var r=1-t;return h(e[r])&&h(n[r])}function d(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!p(1,n,i,t)&&!p(0,n,i,t))||(c.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||c.dataFilter(t,{coord:i,x:e.x1,y:e.y1}))}function f(t,e,n,i,r){var o,s=i.coordinateSystem,c=t.getItemModel(e),l=a.parsePercent(c.get(n[0]),r.getWidth()),u=a.parsePercent(c.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var p=t.get(n[0],e),d=t.get(n[1],e),f=[p,d];s.clampData&&s.clampData(f,f),o=s.dataToPoint(f,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");p=t.get(n[0],e),d=t.get(n[1],e);h(p)?o[0]=g.toGlobalCoord(g.getExtent()["x0"===n[0]?0:1]):h(d)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function m(t,e,n){var r,a,s=["x0","y0","x1","y1"];t?(r=i.map(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return i.defaults({name:t},r)})),a=new o(i.map(s,(function(t,e){return{name:t,type:r[e%2].type}})),n)):(r=[{name:"value",type:"float"}],a=new o(r,n));var c=i.map(n.get("data"),i.curry(u,e,t,n));t&&(c=i.filter(c,i.curry(d,t)));var l=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return a.initData(c,null,l),a.hasItemOption=!0,a}l.extend({type:"markArea",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var r=e.getData();r.each((function(e){var o=i.map(g,(function(i){return f(r,e,i,t,n)}));r.setItemLayout(e,o);var a=r.getItemGraphicEl(e);a.setShape("points",o)}))}}),this)},renderSeries:function(t,e,n,o){var a=t.coordinateSystem,c=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(c)||u.set(c,{group:new s.Group});this.group.add(h.group),h.__keep=!0;var p=m(a,t,e);e.setData(p),p.each((function(e){p.setItemLayout(e,i.map(g,(function(n){return f(p,e,n,t,o)}))),p.setItemVisual(e,{color:l.getVisual("color")})})),p.diff(h.__data).add((function(t){var e=new s.Polygon({shape:{points:p.getItemLayout(t)}});p.setItemGraphicEl(t,e),h.group.add(e)})).update((function(t,n){var i=h.__data.getItemGraphicEl(n);s.updateProps(i,{shape:{points:p.getItemLayout(t)}},e,t),h.group.add(i),p.setItemGraphicEl(t,i)})).remove((function(t){var e=h.__data.getItemGraphicEl(t);h.group.remove(e)})).execute(),p.eachItemGraphicEl((function(t,n){var o=p.getItemModel(n),a=o.getModel("label"),c=o.getModel("emphasis.label"),l=p.getItemVisual(n,"color");t.useStyle(i.defaults(o.getModel("itemStyle").getItemStyle(),{fill:r.modifyAlpha(l,.4),stroke:l})),t.hoverStyle=o.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(t.style,t.hoverStyle,a,c,{labelFetcher:e,labelDataIndex:n,defaultText:p.getName(n)||"",isRectText:!0,autoColor:l}),s.setHoverStyle(t,{}),t.dataModel=e})),h.__data=p,h.group.silent=e.get("silent")||t.get("silent")}})},"8ec5":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("2145"),a=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,(function(t,e){var n=o.get(e);n&&r.merge(t,n.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"}}}}),s=a;t.exports=s},"8ed2":function(t,e,n){n("48c7");var i=n("6cb7"),r=i.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,n){n("3f8e");var i=n("697e7"),r=i.registerPainter,o=n("dc20");r("svg",o)},"8fcf":function(t,e,n){t.exports=n("668d"),t.exports.Collection=n("7d7d")},9036:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=1e3;function r(t,e){var n=this;e=e||i,t.on(["render.shape","render.connection"],e,(function(t,e){var i=t.type,r=e.element,o=e.gfx,a=e.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),t.on(["render.getShapePath","render.getConnectionPath"],e,(function(t,e){if(n.canRender(e))return"render.getShapePath"===t.type?n.getShapePath(e):n.getConnectionPath(e)}))}r.prototype.canRender=function(){},r.prototype.drawShape=function(){},r.prototype.drawConnection=function(){},r.prototype.getShapePath=function(){},r.prototype.getConnectionPath=function(){}},"903c":function(t,e){function n(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n=r.length||t===r[t.depth]){var o=m(c,_,t,e,O,a);l(t,o,n,i,r,a)}}))}else g=h(_,t),t.setVisual("color",g)}}function u(t,e,n,i){var r=o.extend({},e);return o.each(["color","colorAlpha","colorSaturation"],(function(o){var a=t.get(o,!0);null==a&&n&&(a=n[o]),null==a&&(a=e[o]),null==a&&(a=i.get(o)),null!=a&&(r[o]=a)})),r}function h(t){var e=d(t,"color");if(e){var n=d(t,"colorAlpha"),i=d(t,"colorSaturation");return i&&(e=r.modifyHSL(e,null,null,i)),n&&(e=r.modifyAlpha(e,n)),e}}function p(t,e){return null!=e?r.modifyHSL(e,null,null,t):null}function d(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function f(t,e,n,r,o,a){if(a&&a.length){var s=g(e,"color")||null!=o.color&&"none"!==o.color&&(g(e,"colorAlpha")||g(e,"colorSaturation"));if(s){var c=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=c&&cu[1]&&(u[1]=l);var h=e.get("colorMappingBy"),p={type:s.name,dataExtent:u,visual:s.range};"color"!==p.type||"index"!==h&&"id"!==h?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var d=new i(p);return d.__drColorMappingBy=h,d}}}function g(t,e){var n=t.get(e);return a(n)&&n.length?{name:e,range:n}:null}function m(t,e,n,i,r,a){var s=o.extend({},e);if(r){var c=r.type,l="color"===c&&r.__drColorMappingBy,u="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));s[c]=r.mapValueToVisual(u)}return s}t.exports=c},9152:function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,c=(1<>1,u=-7,h=n?r-1:0,p=n?-1:1,d=t[e+h];for(h+=p,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+t[e+h],h+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+t[e+h],h+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=l}return(d?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,c,l=8*o-r-1,u=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+h>=1?p/c:p*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*c-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&s,d+=f,s/=256,r-=8);for(a=a<0;t[n+d]=255&a,d+=f,a/=256,l-=8);t[n+d-f]|=128*g}},"923d":function(t,e,n){var i=n("6d8b"),r=n("3842"),o=n("ee1a"),a=o.isDimensionStacked,s=i.indexOf;function c(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function l(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function u(t,e,n,i,o,s){var c=[],l=a(e,i),u=l?e.getCalculationInfo("stackResultDimension"):i,h=y(e,u,t),p=e.indicesOfNearest(u,h)[0];c[o]=e.get(n,p),c[s]=e.get(i,p);var d=r.getPrecision(e.get(i,p));return d=Math.min(d,20),d>=0&&(c[s]=+c[s].toFixed(d)),c}var h=i.curry,p={min:h(u,"min"),max:h(u,"max"),average:h(u,"average")};function d(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!l(e)&&!i.isArray(e.coord)&&r){var o=r.dimensions,a=f(e,n,r,t);if(e=i.clone(e),e.type&&p[e.type]&&a.baseAxis&&a.valueAxis){var c=s(o,a.baseAxis.dim),u=s(o,a.valueAxis.dim);e.coord=p[e.type](n,a.baseDataDim,a.valueDataDim,c,u),e.value=e.coord[u]}else{for(var h=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],d=0;d<2;d++)p[h[d]]&&(h[d]=y(n,n.mapDimension(o[d]),h[d]));e.coord=h}}return e}function f(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(g(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function g(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r1)return t.map((function(t){return d(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");if(l[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var i=Array.isArray(n.tagName)?n.tagName:[n.tagName];i.forEach((function(t){null!=c[t]&&null!=n.className||(c[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(o=e.Scope||(e.Scope={})),e.create=u,e.find=h,e.query=p,e.register=d},function(t,e,n){var i=n(51),r=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),c=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};c.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},c.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},c.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},c.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(r(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},c.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},c.prototype.filter=function(t){return this.ops.filter(t)},c.prototype.forEach=function(t){this.ops.forEach(t)},c.prototype.map=function(t){return this.ops.map(t)},c.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(i){var r=t(i)?e:n;r.push(i)})),[e,n]},c.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},c.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},c.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},c.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],i=a.iterator(this.ops),r=0;while(r0&&n.next(o.retain-s)}var l=new c(i);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())l.push(n.next());else if("delete"===e.peekType())l.push(e.next());else{var u=Math.min(e.peekLength(),n.peekLength()),h=e.next(u),p=n.next(u);if("number"===typeof p.retain){var d={};"number"===typeof h.retain?d.retain=u:d.insert=h.insert;var f=a.attributes.compose(h.attributes,p.attributes,"number"===typeof h.retain);if(f&&(d.attributes=f),l.push(d),!n.hasNext()&&r(l.ops[l.ops.length-1],d)){var g=new c(e.rest());return l.concat(g).chop()}}else"number"===typeof p["delete"]&&"number"===typeof h.retain&&l.push(p)}return l.chop()},c.prototype.concat=function(t){var e=new c(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},c.prototype.diff=function(t,e){if(this.ops===t.ops)return new c;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var i=e===t?"on":"with";throw new Error("diff() called "+i+" non-document")})).join("")})),o=new c,l=i(n[0],n[1],e),u=a.iterator(this.ops),h=a.iterator(t.ops);return l.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case i.INSERT:n=Math.min(h.peekLength(),e),o.push(h.next(n));break;case i.DELETE:n=Math.min(e,u.peekLength()),u.next(n),o["delete"](n);break;case i.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),e);var s=u.next(n),c=h.next(n);r(s.insert,c.insert)?o.retain(n,a.attributes.diff(s.attributes,c.attributes)):o.push(c)["delete"](n);break}e-=n}})),o.chop()},c.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),i=new c,r=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l="string"===typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(l<0)i.push(n.next());else if(l>0)i.push(n.next(l));else{if(!1===t(i,n.next(1).attributes||{},r))return;r+=1,i=new c}}i.length()>0&&t(i,{},r)},c.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),i=a.iterator(t.ops),r=new c;while(n.hasNext()||i.hasNext())if("insert"!==n.peekType()||!e&&"insert"===i.peekType())if("insert"===i.peekType())r.push(i.next());else{var o=Math.min(n.peekLength(),i.peekLength()),s=n.next(o),l=i.next(o);if(s["delete"])continue;l["delete"]?r.push(l):r.retain(o,a.attributes.transform(s.attributes,l.attributes,e))}else r.retain(a.length(n.next()));return r.chop()},c.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),i=0;while(n.hasNext()&&i<=t){var r=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(i0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-x)){var i=this.clone();return 0===t?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var o=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(u.default.Block);function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:S(t.parent,e))}O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[f.default,u.default.Embed,m.default],e.bubbleFormats=S,e.BlockEmbed=w,e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(A(this,t),this.options=j(e,i),this.container=this.options.container,null==this.container)return k.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(t){t===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(h.default.events.SCROLL_UPDATE,(function(t,e){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;M.call(n,(function(){return n.editor.update(null,e,r)}),t)}));var o=this.clipboard.convert("
    "+r+"


    ");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),x.default.level(t)}},{key:"find",value:function(t){return t.__quill||g.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&k.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var r=t.attrName||t.blotName;"string"===typeof r?this.register("formats/"+r,t,e):Object.keys(t).forEach((function(i){n.register(i,t[i],e)}))}else null==this.imports[t]||i||k.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?g.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var i=this,o=C(t,e,n),a=r(o,4);return t=a[0],e=a[1],n=a[3],M.call(this,(function(){return i.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return M.call(this,(function(){var i=n.getSelection(!0),r=new s.default;if(null==i)return r;if(g.default.query(t,g.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,E({},t,e));else{if(0===i.length)return n.selection.format(t,e),r;r=n.editor.formatText(i.index,i.length,E({},t,e))}return n.setSelection(i,h.default.sources.SILENT),r}),i)}},{key:"formatLine",value:function(t,e,n,i,o){var a=this,s=void 0,c=C(t,e,n,i,o),l=r(c,4);return t=l[0],e=l[1],s=l[2],o=l[3],M.call(this,(function(){return a.editor.formatLine(t,e,s)}),o,t,0)}},{key:"formatText",value:function(t,e,n,i,o){var a=this,s=void 0,c=C(t,e,n,i,o),l=r(c,4);return t=l[0],e=l[1],s=l[2],o=l[3],M.call(this,(function(){return a.editor.formatText(t,e,s)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),i=r(n,2);return t=i[0],e=i[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),i=r(n,2);return t=i[0],e=i[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return M.call(this,(function(){return r.editor.insertEmbed(e,n,i)}),o,e)}},{key:"insertText",value:function(t,e,n,i,o){var a=this,s=void 0,c=C(t,0,n,i,o),l=r(c,4);return t=l[0],s=l[2],o=l[3],M.call(this,(function(){return a.editor.insertText(t,e,s)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var i=this,o=C(t,e,n),a=r(o,4);return t=a[0],e=a[1],n=a[3],M.call(this,(function(){return i.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return M.call(this,(function(){t=new s.default(t);var n=e.getLength(),i=e.editor.deleteText(0,n),r=e.editor.applyDelta(t),o=r.ops[r.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),r.delete(1));var a=i.compose(r);return a}),n)}},{key:"setSelection",value:function(e,n,i){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=C(e,n,i),a=r(o,4);e=a[0],n=a[1],i=a[3],this.selection.setRange(new m.Range(e,n),i),i!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return M.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function j(t,e){if(e=(0,_.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==T.DEFAULTS.theme){if(e.theme=T.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=O.default;var n=(0,_.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(e.modules)),r=i.reduce((function(t,e){var n=T.import("modules/"+e);return null==n?k.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,_.default)(!0,{},T.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function M(t,e,n,i){if(this.options.strict&&!this.isEnabled()&&e===h.default.sources.USER)return new s.default;var r=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=r&&(!0===n&&(n=r.index),null==i?r=P(r,a,e):0!==i&&(r=P(r,n,i,e)),this.setSelection(r,h.default.sources.SILENT)),a.length()>0){var c,l,u=[h.default.events.TEXT_CHANGE,a,o,e];if((c=this.emitter).emit.apply(c,[h.default.events.EDITOR_CHANGE].concat(u)),e!==h.default.sources.SILENT)(l=this.emitter).emit.apply(l,u)}return a}function C(t,e,n,r,o){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(o=r,r=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":i(n))?(a=n,o=r):"string"===typeof n&&(null!=r?a[n]=r:o=n),o=o||h.default.sources.API,[t,e,a,o]}function P(t,e,n,i){if(null==t)return null;var o=void 0,a=void 0;if(e instanceof s.default){var c=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,i!==h.default.sources.USER)})),l=r(c,2);o=l[0],a=l[1]}else{var u=[t.index,t.index+t.length].map((function(t){return t=0?t+n:Math.max(e,t+n)})),p=r(u,2);o=p[0],a=p[1]}return new m.Range(o,a-o)}T.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},T.events=h.default.events,T.sources=h.default.sources,T.version="1.3.7",T.imports={delta:s.default,parchment:g.default,"core/module":d.default,"core/theme":O.default},e.expandConfig=j,e.overload=C,e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var i=e.order.indexOf(t),r=e.order.indexOf(n);return i>=0||r>=0?i-r:t===n?0:t1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function o(t){if(i.indexOf(t)<=i.indexOf(r)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a0&&"number"!==typeof t[0]))}function l(t,e,n){var l,u;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=i.call(t),e=i.call(e),a(t,e,n));if(c(t)){if(!c(e))return!1;if(t.length!==e.length)return!1;for(l=0;l=0;l--)if(h[l]!=p[l])return!1;for(l=h.length-1;l>=0;l--)if(u=h[l],!a(t[u],e[u],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var r=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|r:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=i.query(t,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n=t+n)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,c=this.isolate(a,s),u=c.next;c.format(i,r),u instanceof e&&u.formatAt(0,t-a+n-s,i,r)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(g.default,t),o=i(r,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=l.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof l.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(h.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",e.Code=b,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n=o&&!u.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,u);var p=e.scroll.line(t),d=r(p,2),f=d[0],g=d[1],y=(0,E.default)({},(0,m.bubbleFormats)(f));if(f instanceof v.default){var _=f.descendant(h.default.Leaf,g),b=r(_,1),x=b[0];y=(0,E.default)(y,(0,m.bubbleFormats)(x))}c=l.default.attributes.diff(y,c)||{}}else if("object"===i(a.insert)){var w=Object.keys(a.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,a.insert[w])}o+=s}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,s,n,c[n])})),t+s}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof d.default){var s=t-e.offset(n.scroll),c=e.newlineIndex(s+a)-s+1;e.formatAt(s,c,r,i[r])}else e.format(r,i[r]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,x.default)(i)))}},{key:"formatText",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(r){n.scroll.formatAt(t,e,r,i[r])})),this.update((new s.default).retain(t).retain(e,(0,x.default)(i)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===e?this.scroll.path(t).forEach((function(t){var e=r(t,1),o=e[0];o instanceof v.default?n.push(o):o instanceof h.default.Leaf&&i.push(o)})):(n=this.scroll.lines(t,e),i=this.scroll.descendants(h.default.Leaf,t,e));var o=[n,i].map((function(t){if(0===t.length)return{};var e=(0,m.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=C((0,m.bubbleFormats)(n),e)}return e}));return E.default.apply(E.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(k({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(i).forEach((function(r){n.scroll.formatAt(t,e.length,r,i[r])})),this.update((new s.default).retain(t).insert(e,(0,x.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===v.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof _.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),i=this.scroll.line(t+e),o=r(i,2),a=o[0],c=o[1],l=0,u=new s.default;null!=a&&(l=a instanceof d.default?a.newlineIndex(c)-c+1:a.length()-c,u=a.delta().slice(c,c+l-1).insert("\n"));var h=this.getContents(t,e+l),p=h.diff((new s.default).insert(n).concat(u)),f=(new s.default).retain(t).concat(p);return this.applyDelta(f)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(j)&&h.default.find(e[0].target)){var r=h.default.find(e[0].target),o=(0,m.bubbleFormats)(r),a=r.offset(this.scroll),c=e[0].oldValue.replace(g.default.CONTENTS,""),l=(new s.default).insert(c),u=(new s.default).insert(r.value()),p=(new s.default).retain(a).concat(l.diff(u,n));t=p.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new s.default),this.delta=i.compose(t)}else this.delta=this.getDelta(),t&&(0,O.default)(i.compose(t),this.delta)||(t=i.diff(this.delta,n));return t}}]),t}();function C(t,e){return Object.keys(e).reduce((function(n,i){return null==t[i]||(e[i]===t[i]?n[i]=e[i]:Array.isArray(e[i])?e[i].indexOf(t[i])<0&&(n[i]=e[i].concat([t[i]])):n[i]=[e[i],t[i]]),n}),{})}function P(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,x.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,x.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var i=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(i,e.attributes)}return t.push(e)}),new s.default)}e.default=M},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;v(this,t),this.index=e,this.length=n},b=function(){function t(e,n){var i=this;v(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,p.default.sources.USER),1)})),this.emitter.on(p.default.events.EDITOR_CHANGE,(function(t,e){t===p.default.events.TEXT_CHANGE&&e.length()>0&&i.update(p.default.sources.SILENT)})),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var t=i.getNativeRange();null!=t&&t.start.node!==i.cursor.textNode&&i.emitter.once(p.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,r=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;i.setNativeRange(r,o,a,s)}})),this.update(p.default.sources.SILENT)}return r(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(p.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=a.default.find(n.start.node,!1);if(null==i)return;if(i instanceof a.default.Leaf){var r=i.split(n.start.offset);i.parent.insertBefore(this.cursor,r)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),a=i(o,2),s=a[0],c=a[1];if(null==s)return null;var l=s.position(c,!0),u=i(l,2);r=u[0],c=u[1];var h=document.createRange();if(e>0){h.setStart(r,c);var p=this.scroll.leaf(t+e),d=i(p,2);if(s=d[0],c=d[1],null==s)return null;var f=s.position(c,!0),g=i(f,2);return r=g[0],c=g[1],h.setEnd(r,c),h.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(c0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return y.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map((function(t){var n=i(t,2),r=n[0],o=n[1],s=a.default.find(r,!0),c=s.offset(e.scroll);return 0===o?c:s instanceof a.default.Container?c+s.length():c+s.index(r,o)})),o=Math.min(Math.max.apply(Math,m(r)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(m(r)));return new _(s,o-s)}},{key:"normalizeNative",value:function(t){if(!x(this.root,t.startContainer)||!t.collapsed&&!x(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a=void 0,s=e.scroll.leaf(t),c=i(s,2),l=c[0],u=c[1],h=l.position(u,0!==n),p=i(h,2);a=p[0],u=p[1],r.push(a,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),a=i(o,1),s=a[0],c=s;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,r)),u=i(l,1);c=u[0]}if(null!=s&&null!=c){var h=t.getBoundingClientRect();n.toph.bottom&&(t.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(y.info("setNativeRange",t,e,n,i),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||i!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,i),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof e&&(n=e,e=!1),y.info("setRange",t),null!=t){var i=this.rangeToNative(t);this.setNativeRange.apply(this,m(i).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.sources.USER,e=this.lastRange,n=this.getRange(),r=i(n,2),o=r[0],a=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(e,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var l,h=[p.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(e),t];if((s=this.emitter).emit.apply(s,[p.default.events.EDITOR_CHANGE].concat(h)),t!==p.default.sources.SILENT)(l=this.emitter).emit.apply(l,h)}}}]),t}();function x(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=_,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,n){var i=n(11),r=n(3),o={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var i=r(!0,{},e);for(var o in n||(i=Object.keys(i).reduce((function(t,e){return null!=i[e]&&(t[e]=i[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(i[o]=t[o]);return Object.keys(i).length>0?i:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,r){return i(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var i=Object.keys(e).reduce((function(n,i){return void 0===t[i]&&(n[i]=e[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,i=o.length(e);if(t>=i-n?(t=i-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var r={};return e.attributes&&(r.attributes=e.attributes),"number"===typeof e.retain?r.retain=t:"string"===typeof e.insert?r.insert=e.insert.substr(n,t):r.insert=e.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(i)}return[]},t.exports=o},function(t,n){var i=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,i,r;try{n=Map}catch(h){n=function(){}}try{i=Set}catch(h){i=function(){}}try{r=Promise}catch(h){r=function(){}}function o(a,s,c,l,h){"object"===typeof s&&(c=s.depth,l=s.prototype,h=s.includeNonEnumerable,s=s.circular);var p=[],d=[],f="undefined"!=typeof e;function g(a,c){if(null===a)return null;if(0===c)return a;var m,v;if("object"!=typeof a)return a;if(t(a,n))m=new n;else if(t(a,i))m=new i;else if(t(a,r))m=new r((function(t,e){a.then((function(e){t(g(e,c-1))}),(function(t){e(g(t,c-1))}))}));else if(o.__isArray(a))m=[];else if(o.__isRegExp(a))m=new RegExp(a.source,u(a)),a.lastIndex&&(m.lastIndex=a.lastIndex);else if(o.__isDate(a))m=new Date(a.getTime());else{if(f&&e.isBuffer(a))return m=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(m),m;t(a,Error)?m=Object.create(a):"undefined"==typeof l?(v=Object.getPrototypeOf(a),m=Object.create(v)):(m=Object.create(l),v=l)}if(s){var y=p.indexOf(a);if(-1!=y)return d[y];p.push(a),d.push(m)}for(var _ in t(a,n)&&a.forEach((function(t,e){var n=g(e,c-1),i=g(t,c-1);m.set(n,i)})),t(a,i)&&a.forEach((function(t){var e=g(t,c-1);m.add(e)})),a){var b;v&&(b=Object.getOwnPropertyDescriptor(v,_)),b&&null==b.set||(m[_]=g(a[_],c-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(a);for(_=0;_0){if(s instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(s instanceof g.default){var f=s.newlineIndex(s.length(),!0);if(f>-1&&(s=s.split(f+1),s===p))return void this.optimize()}else if(p instanceof g.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var v=p.children.head instanceof d.default?null:p.children.head;s.moveChildren(p,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,i,r){(null==this.whitelist||this.whitelist[i])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,i,r),this.optimize())}},{key:"insertAt",value:function(t,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==i||null==s.default.query(n,s.default.Scope.BLOCK)){var r=s.default.create(this.statics.defaultChild);this.appendChild(r),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,i)}else{var a=s.default.create(n,i);this.appendChild(a)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,i);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var i=s.default.create(this.statics.defaultChild);i.appendChild(t),t=i}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(w,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,i){var r=[],o=i;return e.children.forEachAt(n,i,(function(e,n,i){w(e)?r.push(e):e instanceof s.default.Container&&(r=r.concat(t(e,n,o))),o-=i})),r};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=l.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[h.default,u.BlockEmbed,v.default],e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=z(t);if(null==i||null==i.key)return j.warn("Attempted to add invalid keyboard binding",i);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),i=(0,h.default)(i,e,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var c=t.quill.getLine(s.index),u=r(c,2),h=u[0],p=u[1],d=t.quill.getLeaf(s.index),f=r(d,2),g=f[0],m=f[1],y=0===s.length?[g,m]:t.quill.getLeaf(s.index+s.length),_=r(y,2),b=_[0],x=_[1],w=g instanceof v.default.Text?g.value().slice(0,m):"",O=b instanceof v.default.Text?b.value().slice(x):"",S={collapsed:0===s.length,empty:0===s.length&&h.length()<=1,format:t.quill.getFormat(s),offset:p,prefix:w,suffix:O},E=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==S.collapsed)return!1;if(null!=e.empty&&e.empty!==S.empty)return!1;if(null!=e.offset&&e.offset!==S.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==S.format[t]})))return!1}else if("object"===i(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=S.format[t]:!1===e.format[t]?null==S.format[t]:(0,l.default)(e.format[t],S.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(S.prefix))&&(!(null!=e.suffix&&!e.suffix.test(S.suffix))&&!0!==e.handler.call(t,s,S))}));E&&n.preventDefault()}}}}))}}]),e}(O.default);function P(t,e){var n,i=t===C.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},E(n,i,/^$/),E(n,"handler",(function(n){var i=n.index;t===C.keys.RIGHT&&(i+=n.length+1);var o=this.quill.getLeaf(i),a=r(o,1),s=a[0];return!(s instanceof v.default.Embed)||(t===C.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,_.default.sources.USER):this.quill.setSelection(n.index-1,_.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,_.default.sources.USER):this.quill.setSelection(n.index+n.length+1,_.default.sources.USER),!1)})),n}function I(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),i=r(n,1),o=i[0],a={};if(0===e.offset){var s=this.quill.getLine(t.index-1),c=r(s,1),l=c[0];if(null!=l&&l.length()>1){var u=o.formats(),h=this.quill.getFormat(t.index-1,1);a=g.default.attributes.diff(u,h)||{}}}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-p,p,_.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-p,p,a,_.default.sources.USER),this.quill.focus()}}function D(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var i={},o=0,a=this.quill.getLine(t.index),s=r(a,1),c=s[0];if(e.offset>=c.length()-1){var l=this.quill.getLine(t.index+1),u=r(l,1),h=u[0];if(h){var p=c.formats(),d=this.quill.getFormat(t.index,1);i=g.default.attributes.diff(p,d)||{},o=h.length()}}this.quill.deleteText(t.index,n,_.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index+o-1,n,i,_.default.sources.USER)}}function R(t){var e=this.quill.getLines(t),n={};if(e.length>1){var i=e[0].formats(),r=e[e.length-1].formats();n=g.default.attributes.diff(r,i)||{}}this.quill.deleteText(t,_.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,_.default.sources.USER),this.quill.setSelection(t.index,_.default.sources.SILENT),this.quill.focus()}function L(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var i=Object.keys(e.format).reduce((function(t,n){return v.default.query(n,v.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",i,_.default.sources.USER),this.quill.setSelection(t.index+1,_.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==i[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],_.default.sources.USER))}))}function N(t){return{key:C.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=v.default.query("code-block"),i=e.index,o=e.length,a=this.quill.scroll.descendant(n,i),s=r(a,2),c=s[0],l=s[1];if(null!=c){var u=this.quill.getIndex(c),h=c.newlineIndex(l,!0)+1,p=c.newlineIndex(u+l+o),d=c.domNode.textContent.slice(h,p).split("\n");l=0,d.forEach((function(e,r){t?(c.insertAt(h+l,n.TAB),l+=n.TAB.length,0===r?i+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(c.deleteAt(h+l,n.TAB.length),l-=n.TAB.length,0===r?i-=n.TAB.length:o-=n.TAB.length),l+=e.length+1})),this.quill.update(_.default.sources.USER),this.quill.setSelection(i,o,_.default.sources.SILENT)}}}}function B(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],_.default.sources.USER)}}}function z(t){if("string"===typeof t||"number"===typeof t)return z({key:t});if("object"===("undefined"===typeof t?"undefined":i(t))&&(t=(0,s.default)(t,!1)),"string"===typeof t.key)if(null!=C.keys[t.key.toUpperCase()])t.key=C.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[M]=t.shortKey,delete t.shortKey),t}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",_.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",_.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",_.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,_.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,_.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new d.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,_.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,_.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,_.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=r(e,2),i=n[0],o=n[1],a=(0,h.default)({},i.formats(),{list:"checked"}),s=(new d.default).retain(t.index).insert("\n",a).retain(i.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,_.default.sources.USER),this.quill.setSelection(t.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),i=r(n,2),o=i[0],a=i[1],s=(new d.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,_.default.sources.USER),this.quill.setSelection(t.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,i=this.quill.getLine(t.index),o=r(i,2),a=o[0],s=o[1];if(s>n)return!0;var c=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":c="unchecked";break;case"[x]":c="checked";break;case"-":case"*":c="bullet";break;default:c="ordered"}this.quill.insertText(t.index," ",_.default.sources.USER),this.quill.history.cutoff();var l=(new d.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:c});this.quill.updateContents(l,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,_.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=r(e,2),i=n[0],o=n[1],a=(new d.default).retain(t.index+i.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,_.default.sources.USER)}},"embed left":P(C.keys.LEFT,!1),"embed left shift":P(C.keys.LEFT,!0),"embed right":P(C.keys.RIGHT,!1),"embed right shift":P(C.keys.RIGHT,!0)}},e.default=C,e.SHORTKEY=M},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=function(){function t(t,e){for(var n=0;n-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=h,e.sanitize=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=j(i),o=n(5),a=j(o),s=n(4),c=j(s),l=n(16),u=j(l),h=n(25),p=j(h),d=n(24),f=j(d),g=n(35),m=j(g),v=n(6),y=j(v),_=n(22),b=j(_),x=n(7),w=j(x),O=n(55),S=j(O),E=n(42),A=j(E),k=n(23),T=j(k);function j(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":c.default,"blots/block/embed":s.BlockEmbed,"blots/break":u.default,"blots/container":p.default,"blots/cursor":f.default,"blots/embed":m.default,"blots/inline":y.default,"blots/scroll":b.default,"blots/text":w.default,"modules/clipboard":S.default,"modules/history":A.default,"modules/keyboard":T.default}),r.default.register(c.default,u.default,f.default,y.default,b.default,w.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(){function t(t){this.domNode=t,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return i.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,r){var o=this.isolate(t,e);if(null!=i.query(n,i.Scope.BLOT)&&r)o.wrap(n,r);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var a=i.create(this.statics.scope);o.wrap(a),a.format(n,r)}},t.prototype.insertAt=function(t,e,n){var r=null==n?i.create("text",e):i.create(e,n),o=this.split(t);this.parent.insertBefore(r,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?i.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?i.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),r=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=i.default.keys(this.domNode),n=r.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof i.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var i=e.attributes[n].value(e.domNode);t.format(n,i)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);function o(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=o(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=o(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(r.default);e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;ni&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),t=r.redo.compose(t)}else this.lastRecorded=i;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(l.default);function g(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}function m(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return g(t)&&(n-=1),n}f.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=f,e.getLastChangeIndex=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,u.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=D(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var i=n.index+n.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",u.default.sources.USER),this.quill.setSelection(i+2,u.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(w.default);function D(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var i=document.createElement("option");e===n?i.setAttribute("selected","selected"):i.setAttribute("value",e),t.appendChild(i)}))}e.BaseTooltip=I,e.default=P},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,i=this.iterator();while(n=i()){var r=n.length();if(ts?n(i,t-s,Math.min(e,s+l-t)):n(i,0,Math.min(l,t+e-s)),s+=l}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,i=this.iterator();while(n=i())e=t(e,n);return e},t}();e.default=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,c=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,i,r){this.update(),t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.insertAt=function(e,n,i){this.update(),t.prototype.insertAt.call(this,e,n,i)},e.prototype.optimize=function(e,n){var i=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var c=function(t,e){void 0===e&&(e=!0),null!=t&&t!==i&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&c(t.parent))},l=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof r.default&&t.children.forEach(l),t.optimize(n))},u=e,h=0;u.length>0;h+=1){if(h>=s)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(c(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=o.find(t,!1);c(e,!1),e instanceof r.default&&e.children.forEach((function(t){c(t,!1)}))}))):"attributes"===t.type&&c(e.prev)),c(e))})),this.children.forEach(l),u=[].slice.call(this.observer.takeRecords()),a=u.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var i=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==i&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(r.default);e.default=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),o=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,i){var o=this;n!==this.statics.blotName||i?t.prototype.format.call(this,n,i):(this.children.forEach((function(t){t instanceof r.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,i,r){if(null!=this.formats()[i]||o.query(i,o.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(i,r)}else t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var r=this.next;r instanceof e&&r.prev===this&&a(i,r.formats())&&(r.moveChildren(this),r.remove())},e.blotName="inline",e.scope=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(r.default);e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var i=o.query(e.blotName).tagName;if(n.tagName!==i)return t.formats.call(this,n)},e.prototype.format=function(n,i){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||i?t.prototype.format.call(this,n,i):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,i,r){null!=o.query(i,o.Scope.BLOCK)?this.format(i,r):t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.insertAt=function(e,n,i){if(null==i||null!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,i);else{var r=this.split(e),a=o.create(n,i);r.parent.insertBefore(a,r)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(r.default);e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,i,r){0===e&&n===this.length()?this.format(i,r):t.prototype.formatAt.call(this,e,n,i,r)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(r.default);e.default=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,i){null==i?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,i)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=o.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=a},function(t,e,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:r.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var i=n.indexOf(t,e);return-1!==i&&i===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;oe.length?t:e,l=t.length>e.length?e:t,u=c.indexOf(l);if(-1!=u)return a=[[i,c.substring(0,u)],[r,l],[i,c.substring(u+l.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==l.length)return[[n,t],[i,e]];var p=h(t,e);if(p){var d=p[0],f=p[1],g=p[2],m=p[3],v=p[4],y=o(d,g),_=o(f,m);return y.concat([[r,v]],_)}return s(t,e)}function s(t,e){for(var r=t.length,o=e.length,a=Math.ceil((r+o)/2),s=a,l=2*a,u=new Array(l),h=new Array(l),p=0;pr)m+=2;else if(w>o)g+=2;else if(f){var O=s+d-b;if(O>=0&&O=S)return c(t,e,k,w)}}}for(var E=-_+v;E<=_-y;E+=2){O=s+E;S=E==-_||E!=_&&h[O-1]r)y+=2;else if(A>o)v+=2;else if(!f){x=s+d-E;if(x>=0&&x=S)return c(t,e,k,w)}}}}return[[n,t],[i,e]]}function c(t,e,n,i){var r=t.substring(0,n),a=e.substring(0,i),s=t.substring(n),c=e.substring(i),l=o(r,a),u=o(s,c);return l.concat(u)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,i=Math.min(t.length,e.length),r=i,o=0;while(ne.length?t:e,i=t.length>e.length?e:t;if(n.length<4||2*i.length=t.length?[i,r,o,a,h]:null}var o,a,s,c,h,p=r(n,i,Math.ceil(n.length/4)),d=r(n,i,Math.ceil(n.length/2));if(!p&&!d)return null;o=d?p&&p[4].length>d[4].length?p:d:p,t.length>e.length?(a=o[0],s=o[1],c=o[2],h=o[3]):(c=o[0],h=o[1],a=o[2],s=o[3]);var f=o[4];return[a,s,c,h,f]}function p(t){t.push([r,""]);var e,o=0,a=0,s=0,c="",h="";while(o1?(0!==a&&0!==s&&(e=l(h,c),0!==e&&(o-a-s>0&&t[o-a-s-1][0]==r?t[o-a-s-1][1]+=h.substring(0,e):(t.splice(0,0,[r,h.substring(0,e)]),o++),h=h.substring(e),c=c.substring(e)),e=u(h,c),0!==e&&(t[o][1]=h.substring(h.length-e)+t[o][1],h=h.substring(0,h.length-e),c=c.substring(0,c.length-e))),0===a?t.splice(o-s,a+s,[i,h]):0===s?t.splice(o-a,a+s,[n,c]):t.splice(o-a-s,a+s,[n,c],[i,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&t[o-1][0]==r?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,s=0,a=0,c="",h="";break}""===t[t.length-1][1]&&t.pop();var d=!1;o=1;while(o0&&i.splice(o+2,0,[s[0],c]),v(i,o,3)}return t}function m(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s0&&c.push(t[s]);return c}function v(t,e,n){for(var i=e+n-1;i>=0&&i>=e-1;i--)if(i+1\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[x.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,k({},x.default.blotName,e[x.default.blotName]))}var i=this.prepareMatching(),o=r(i,2),a=o[0],s=o[1],c=V(this.container,a,s);return z(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new l.default).retain(c.length()-1).delete(1))),C.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,d.default.sources.SILENT);else{var i=this.convert(e);this.quill.updateContents((new l.default).retain(t).concat(i),n),this.quill.setSelection(t+i.length(),d.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new l.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(d.default.sources.SILENT),setTimeout((function(){i=i.concat(e.convert()).delete(n.length),e.quill.updateContents(i,d.default.sources.USER),e.quill.setSelection(i.length()-n.length,d.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=r,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(i){var o=r(i,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[P]=t[P]||[],t[P].push(s)}));break}})),[e,n]}}]),e}(v.default);function N(t,e,n){return"object"===("undefined"===typeof e?"undefined":i(e))?Object.keys(e).reduce((function(t,n){return N(t,n,e[n])}),t):t.reduce((function(t,i){return i.attributes&&i.attributes[e]?t.push(i):t.insert(i.insert,(0,s.default)({},k({},e,n),i.attributes))}),new l.default)}function B(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function z(t,e){for(var n="",i=t.ops.length-1;i>=0&&n.length-1}function V(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new l.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(i,r){var o=V(r,e,n);return r.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(r,t)}),o),o=(r[P]||[]).reduce((function(t,e){return e(r,t)}),o)),i.concat(o)}),new l.default):new l.default}function H(t,e,n){return N(n,t,!0)}function G(t,e){var n=h.default.Attributor.Attribute.keys(t),i=h.default.Attributor.Class.keys(t),r=h.default.Attributor.Style.keys(t),o={};return n.concat(i).concat(r).forEach((function(e){var n=h.default.query(e,h.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(n=D[e],null==n||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),n=R[e],null==n||n.attrName!==e&&n.keyName!==e||(n=R[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=N(e,o)),e}function q(t,e){var n=h.default.query(t);if(null==n)return e;if(n.prototype instanceof h.default.Embed){var i={},r=n.value(t);null!=r&&(i[n.blotName]=r,e=(new l.default).insert(i,n.formats(t)))}else"function"===typeof n.formats&&(e=N(e,n.blotName,n.formats(t)));return e}function W(t,e){return z(e,"\n")||e.insert("\n"),e}function U(){return new l.default}function $(t,e){var n=h.default.query(t);if(null==n||"list-item"!==n.blotName||!z(e,"\n"))return e;var i=-1,r=t.parentNode;while(!r.classList.contains("ql-clipboard"))"list"===(h.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?e:e.compose((new l.default).retain(e.length()-1).retain(1,{indent:i}))}function Y(t,e){return z(e,"\n")||(F(t)||e.length()>0&&t.nextSibling&&F(t.nextSibling))&&e.insert("\n"),e}function Z(t,e){if(F(t)&&null!=t.nextElementSibling&&!z(e,"\n\n")){var n=t.offsetHeight+parseFloat(B(t).marginTop)+parseFloat(B(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function X(t,e){var n={},i=t.style||{};return i.fontStyle&&"italic"===B(t).fontStyle&&(n.italic=!0),i.fontWeight&&(B(t).fontWeight.startsWith("bold")||parseInt(B(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=N(e,n)),parseFloat(i.textIndent||0)>0&&(e=(new l.default).insert("\t").concat(e)),e}function K(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!B(t.parentNode).whiteSpace.startsWith("pre")){var i=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,i.bind(i,!0)),(null==t.previousSibling&&F(t.parentNode)||null!=t.previousSibling&&F(t.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==t.nextSibling&&F(t.parentNode)||null!=t.nextSibling&&F(t.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return e.insert(n)}L.DEFAULTS={matchers:[],matchVisual:!0},e.default=L,e.matchAttributor=G,e.matchBlot=q,e.matchNewline=Y,e.matchSpacing=Z,e.matchText=K},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;ni.right&&(o=i.right-r.right,this.root.style.left=e+o+"px"),r.lefti.bottom){var a=r.bottom-r.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},o=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),r=nt(i),o=n(36),a=n(38),s=n(64),c=n(65),l=nt(c),u=n(66),h=nt(u),p=n(67),d=nt(p),f=n(37),g=n(26),m=n(39),v=n(40),y=n(56),_=nt(y),b=n(68),x=nt(b),w=n(27),O=nt(w),S=n(69),E=nt(S),A=n(70),k=nt(A),T=n(71),j=nt(T),M=n(72),C=nt(M),P=n(73),I=nt(P),D=n(13),R=nt(D),L=n(74),N=nt(L),B=n(75),z=nt(B),F=n(57),V=nt(F),H=n(41),G=nt(H),q=n(28),W=nt(q),U=n(59),$=nt(U),Y=n(60),Z=nt(Y),X=n(61),K=nt(X),Q=n(108),J=nt(Q),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":v.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":m.FontClass,"formats/size":v.SizeClass,"formats/blockquote":l.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":_.default,"formats/code":D.Code,"formats/italic":x.default,"formats/link":O.default,"formats/script":E.default,"formats/strike":k.default,"formats/underline":j.default,"formats/image":C.default,"formats/video":I.default,"formats/list/item":p.ListItem,"modules/formula":N.default,"modules/syntax":z.default,"modules/toolbar":V.default,"themes/bubble":J.default,"themes/snow":et.default,"ui/icons":G.default,"ui/picker":W.default,"ui/icon-picker":Z.default,"ui/color-picker":$.default,"ui/tooltip":K.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var i=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof m)r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var i=null==n?this.length():n.offset(this),o=this.split(i);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(u.default);v.blotName="list",v.scope=a.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[m],e.ListItem=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(56),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),e}(r.default);l.blotName="italic",l.tagName=["EM","I"],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return p.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);d.blotName="image",d.tagName="IMG",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return p.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(o.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var i=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(p.default);v.className="ql-syntax";var y=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),_=function(t){function e(t,n){f(this,e);var i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return i.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){i.highlight(),r=null}),i.options.interval)})),i.highlight(),i}return m(e,t),i(e,null,[{key:"register",value:function(){c.default.register(y,!0),c.default.register(v,!0)}}]),i(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(v).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(c.default.sources.SILENT),null!=e&&this.quill.setSelection(e,c.default.sources.SILENT)}}}]),e}(u.default);_.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=v,e.CodeToken=y,e.default=_},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var i=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},r=function(){function t(t,e){for(var n=0;n0&&r===c.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var o=i.quill.getLines(e.index,e.length);if(1===o.length)i.position(i.quill.getBounds(e));else{var a=o[o.length-1],s=i.quill.getIndex(a),l=Math.min(a.length()-1,e.index+e.length-s),u=i.quill.getBounds(new h.Range(s,l));i.position(u)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()})),i}return v(e,t),r(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(l.BaseTooltip);b.TEMPLATE=['','
    ','','',"
    "].join(""),e.BubbleTooltip=b,e.default=_},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},"933b":function(t,e,n){var i=n("b12f"),r=i.extend({type:"timeline"});t.exports=r},9390:function(t,e,n){n("d090"),n("83ba"),n("ee66")},"93d0":function(t,e){var n="original",i="arrayRows",r="objectRows",o="keyedColumns",a="unknown",s="typedArray",c="column",l="row";e.SOURCE_FORMAT_ORIGINAL=n,e.SOURCE_FORMAT_ARRAY_ROWS=i,e.SOURCE_FORMAT_OBJECT_ROWS=r,e.SOURCE_FORMAT_KEYED_COLUMNS=o,e.SOURCE_FORMAT_UNKNOWN=a,e.SOURCE_FORMAT_TYPED_ARRAY=s,e.SERIES_LAYOUT_BY_COLUMN=c,e.SERIES_LAYOUT_BY_ROW=l},9442:function(t,e,n){var i=n("6d8b");function r(t){var e=[];i.each(t.series,(function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,i.defaults(t,t.mapLocation))}))}t.exports=r},"944e":function(t,e,n){var i=n("3842"),r=i.round;function o(t,e,n,o){var s={},l=t[1]-t[0],u=s.interval=i.nice(l/e,!0);null!=n&&uo&&(u=s.interval=o);var h=s.intervalPrecision=a(u),p=s.niceTickExtent=[r(Math.ceil(t[0]/u)*u,h),r(Math.floor(t[1]/u)*u,h)];return c(p,t),s}function a(t){return i.getPrecisionSafe(t)+2}function s(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function c(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])}function l(t,e,n,i){var o=[];if(!t)return o;var a=1e4;e[0]a)return[]}return e[1]>(o.length?o[o.length-1]:n[1])&&o.push(e[1]),o}e.intervalScaleNiceTicks=o,e.getIntervalPrecision=a,e.fixExtent=c,e.intervalScaleGetTicks=l},"94b1":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("9d57"),a=o.layout,s=o.largeLayout;n("5aa9"),n("17b8"),n("67cc"),n("01ed"),i.registerLayout(r.curry(a,"bar")),i.registerLayout(s),i.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},"94e4":function(t,e,n){var i=n("401b");function r(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=e.getBoundingRect(),r=t.getData(),o=r.graph,a=0,s=r.getSum("value"),c=2*Math.PI/(s||r.count()),l=n.width/2+n.x,u=n.height/2+n.y,h=Math.min(n.width,n.height)/2;o.eachNode((function(t){var e=t.getValue("value");a+=c*(s?e:1)/2,t.setLayout([h*Math.cos(a)+l,h*Math.sin(a)+u]),a+=c*(s?e:1)/2})),r.setLayout({cx:l,cy:u}),o.eachEdge((function(t){var e,n=t.getModel().get("lineStyle.curveness")||0,r=i.clone(t.node1.getLayout()),o=i.clone(t.node2.getLayout()),a=(r[0]+o[0])/2,s=(r[1]+o[1])/2;+n&&(n*=3,e=[l*n+a*(1-n),u*n+s*(1-n)]),t.setLayout([r,o,e])}))}}e.circularLayout=r},"95a8":function(t,e,n){var i=n("3eba");n("1953"),n("307d"),i.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))},9680:function(t,e){function n(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,c=0,l=t;if(a>e+s&&a>i+s||at+s&&o>n+s||o=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new c(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}}},c.create=function(t){return new c(t.x,t.y,t.width,t.height)};var l=c;t.exports=l},9861:function(t,e,n){"use strict";n("e260");var i=n("23e7"),r=n("d066"),o=n("0d3b"),a=n("6eeb"),s=n("e2cc"),c=n("d44e"),l=n("9ed3"),u=n("69f3"),h=n("19aa"),p=n("5135"),d=n("0366"),f=n("f5df"),g=n("825a"),m=n("861d"),v=n("7c73"),y=n("5c6c"),_=n("9a1f"),b=n("35a1"),x=n("b622"),w=r("fetch"),O=r("Headers"),S=x("iterator"),E="URLSearchParams",A=E+"Iterator",k=u.set,T=u.getterFor(E),j=u.getterFor(A),M=/\+/g,C=Array(4),P=function(t){return C[t-1]||(C[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},I=function(t){try{return decodeURIComponent(t)}catch(e){return t}},D=function(t){var e=t.replace(M," "),n=4;try{return decodeURIComponent(e)}catch(i){while(n)e=e.replace(P(n--),I);return e}},R=/[!'()~]|%20/g,L={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(t){return L[t]},B=function(t){return encodeURIComponent(t).replace(R,N)},z=function(t,e){if(e){var n,i,r=e.split("&"),o=0;while(o0?arguments[0]:void 0,u=this,d=[];if(k(u,{type:E,entries:d,updateURL:function(){},updateSearchParams:F}),void 0!==l)if(m(l))if(t=b(l),"function"===typeof t){e=t.call(l),n=e.next;while(!(i=n.call(e)).done){if(r=_(g(i.value)),o=r.next,(a=o.call(r)).done||(s=o.call(r)).done||!o.call(r).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}}else for(c in l)p(l,c)&&d.push({key:c,value:l[c]+""});else z(d,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},q=G.prototype;s(q,{append:function(t,e){V(arguments.length,2);var n=T(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){V(arguments.length,1);var e=T(this),n=e.entries,i=t+"",r=0;while(rt.key){r.splice(e,0,t);break}e===n&&r.push(t)}i.updateURL()},forEach:function(t){var e,n=T(this).entries,i=d(t,arguments.length>1?arguments[1]:void 0,3),r=0;while(r1&&(e=arguments[1],m(e)&&(n=e.body,f(n)===E&&(i=e.headers?new O(e.headers):new O,i.has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=v(e,{body:y(0,String(n)),headers:y(0,i)}))),r.push(e)),w.apply(this,r)}}),t.exports={URLSearchParams:G,getState:T}},"98b7":function(t,e){var n="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=n},"98e7":function(t,e,n){var i=n("6d8b"),r=i.createHashMap;function o(t){return{getTargetSeries:function(e){var n={},i=r();return e.eachSeriesByType(t,(function(t){t.__paletteScope=n,i.set(t.uid,t)})),i},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(e){var o=i[e],a=null!=o&&r.getItemVisual(o,"color",!0);if(a)n.setItemVisual(e,"color",a);else{var s=n.getItemModel(e),c=s.get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());n.setItemVisual(e,"color",c),null!=o&&r.setItemVisual(o,"color",c)}}))}}}t.exports=o},"998c":function(t,e,n){var i=n("6d8b"),r=n("2306"),o=Math.PI;function a(t,e){e=e||{},i.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new r.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),a=new r.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),s=new r.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut");var c=new r.Group;return c.add(a),c.add(s),c.add(n),c.resize=function(){var e=t.getWidth()/2,i=t.getHeight()/2;a.setShape({cx:e,cy:i});var r=a.shape.r;s.setShape({x:e-r,y:i-r,width:2*r,height:2*r}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},c.resize(),c}t.exports=a},"9a1f":function(t,e,n){var i=n("825a"),r=n("35a1");t.exports=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return i(e.call(t))}},"9bdb":function(t,e,n){var i=n("282b"),r=i([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o={getAreaStyle:function(t,e){return r(this,t,e)}};t.exports=o},"9c2c":function(t,e,n){var i=n("401b"),r=i.min,o=i.max,a=i.scale,s=i.distance,c=i.add,l=i.clone,u=i.sub;function h(t,e,n,i){var h,p,d,f,g=[],m=[],v=[],y=[];if(i){d=[1/0,1/0],f=[-1/0,-1/0];for(var _=0,b=t.length;_=0;c--){var l=r["asc"===i?a-c-1:c].getValue();l/n*es[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:i,dataExtent:s}}function S(t,e,n){for(var i,r=0,o=1/0,a=0,s=t.length;ar&&(r=i));var c=t.area*t.area,l=e*e*n;return c?u(l*r/c,c/(l*o)):1/0}function E(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],c=["width","height"],l=n[s[o]],p=e?t.area/e:0;(r||p>n[c[a]])&&(p=n[c[a]]);for(var d=0,f=t.length;ds&&(u=s),a=o}u=0?"p":"n",C=b;if(y&&(o[c][E]||(o[c][E]={p:b,n:b}),C=o[c][E][M]),_){var P=n.dataToPoint([S,E]);A=C,k=P[1]+u,T=P[0]-b,j=h,Math.abs(T)u||(l=u),{progress:p}}function p(t,e){var u,p=new h(2*t.count),d=[],f=[],g=0;while(null!=(u=t.next()))f[c]=e.get(o,u),f[1-c]=e.get(a,u),d=n.dataToPoint(f,null,d),p[g++]=d[0],p[g++]=d[1];e.setLayout({largePoints:p,barWidth:l,valueAxisStart:O(i,r,!1),valueAxisHorizontal:s})}}};function x(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function w(t){return t.pipelineContext&&t.pipelineContext.large}function O(t,e,n){var i,r,o=e.getGlobalExtent();o[0]>o[1]?(i=o[1],r=o[0]):(i=o[0],r=o[1]);var a=e.toGlobalCoord(e.dataToCoord(0));return ar&&(a=r),a}e.getLayoutOnAxis=f,e.prepareLayoutBarSeries=g,e.makeColumnLayout=m,e.retrieveColumnLayout=y,e.layout=_,e.largeLayout=b},"9e2e":function(t,e,n){var i=n("a73c"),r=n("9850"),o=n("82eb"),a=o.WILL_BE_RESTORED,s=new r,c=function(){};c.prototype={constructor:c,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&i.normalizeTextStyle(n,!0);var r=n.text;if(null!=r&&(r+=""),i.needDrawText(r,n)){t.save();var o=this.transform;n.transformText?this.setTransform(t):o&&(s.copy(e),s.applyTransform(o),e=s),i.renderText(this,t,r,n,e,a),t.restore()}}};var l=c;t.exports=l},"9e47":function(t,e,n){var i=n("6d8b"),r=n("71ad"),o=n("6cb7"),a=n("f934"),s=a.getLayoutParams,c=a.mergeLayoutParam,l=n("8e43"),u=["value","category","time","log"];function h(t,e,n,a){i.each(u,(function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,r){var a=this.layoutMode,l=a?s(e):{},u=r.getTheme();i.merge(e,u.get(o+"Axis")),i.merge(e,this.getDefaultOption()),e.type=n(t,e),a&&c(e,l,a)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=l.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:i.mergeAll([{},r[o+"Axis"],a],!0)})})),o.registerSubTypeDefaulter(t+"Axis",i.curry(n,t))}t.exports=h},"9e87":function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("50e5");i.registerAction("dataZoom",(function(t,e){var n=o.createLinkedNodesFinder(r.bind(e.eachComponent,e,"dataZoom"),o.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),i=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){i.push.apply(i,n(t).nodes)})),r.each(i,(function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},"9f51":function(t,e,n){var i=n("857d"),r=i.normalizeRadian,o=2*Math.PI;function a(t,e,n,i,a,s,c,l,u){if(0===c)return!1;var h=c;l-=t,u-=e;var p=Math.sqrt(l*l+u*u);if(p-h>n||p+ha&&(a+=o);var f=Math.atan2(u,l);return f<0&&(f+=o),f>=i&&f<=a||f+o>=i&&f+o<=a}e.containStroke=a},"9f82":function(t,e,n){var i=n("ee1a"),r=i.isDimensionStacked,o=n("6d8b"),a=o.map;function s(t,e,n){var i,o=t.getBaseAxis(),s=t.getOtherAxis(o),l=c(s,n),u=o.dim,h=s.dim,p=e.mapDimension(h),d=e.mapDimension(u),f="x"===h||"radius"===h?1:0,g=a(t.dimensions,(function(t){return e.mapDimension(t)})),m=e.getCalculationInfo("stackResultDimension");return(i|=r(e,g[0]))&&(g[0]=m),(i|=r(e,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:l,valueAxisDim:h,baseAxisDim:u,stacked:!!i,valueDim:p,baseDim:d,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function c(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function l(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}e.prepareDataCoordInfo=s,e.getStackedOnPoint=l},"9fa3":function(t,e,n){var i=n("4ab1"),r=n("6d8b"),o=n("1687");function a(t,e){i.call(this,t,e,"clipPath","__clippath_in_use__")}r.inherits(a,i),a.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var n=this.getTextSvgElement(t);n&&this.updateDom(n,t.__clipPaths,!0),this.markUsed(t)},a.prototype.updateDom=function(t,e,n){if(e&&e.length>0){var i,r,a=this.getDefs(!0),s=e[0],c=n?"_textDom":"_dom";s[c]?(r=s[c].getAttribute("id"),i=s[c],a.contains(i)||a.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",r),a.appendChild(i),s[c]=i);var l=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var u=Array.prototype.slice.call(s.transform);o.mul(s.transform,s.parent.invTransform,s.transform),l.brush(s),s.transform=u}else l.brush(s);var h=this.getSvgElement(s);i.innerHTML="",i.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute("clip-path","none")},a.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&r.each(t.__clipPaths,(function(t){t._dom&&i.prototype.markUsed.call(e,t._dom),t._textDom&&i.prototype.markUsed.call(e,t._textDom)}))};var s=a;t.exports=s},a016:function(t,e,n){var i=n("4f85"),r=n("e46b"),o=n("6d8b"),a=n("eda2"),s=a.encodeHTML,c=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){c.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t){var e=this.getData(),n=this.coordinateSystem,i=n.getIndicatorAxes(),r=this.getData().getName(t);return s(""===r?this.name:r)+"
    "+o.map(i,(function(n,i){var r=e.get(e.mapDimension(n.dim),t);return s(n.name+" : "+r)})).join("
    ")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),l=c;t.exports=l},a04e:function(t,e,n){var i=n("6cb7");i.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},a15a:function(t,e,n){var i=n("6d8b"),r=n("2306"),o=n("9850"),a=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),s=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),c=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),c=i-o+a+s,l=Math.asin(s/a),u=Math.cos(l)*a,h=Math.sin(l),p=Math.cos(l),d=.6*a,f=.7*a;t.moveTo(n-u,c+s),t.arc(n,c,a,Math.PI-l,2*Math.PI+l),t.bezierCurveTo(n+u-h*d,c+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-u+h*d,c+s+p*d,n-u,c+s),t.closePath()}}),l=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),u={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:s,pin:c,arrow:l,triangle:a},h={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},p={};i.each(u,(function(t,e){p[e]=new t}));var d=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,r=p[i];"none"!==e.symbolType&&(r||(i="rect",r=p[i]),h[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}});function f(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function g(t,e,n,i,a,s,c){var l,u=0===t.indexOf("empty");return u&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),l=0===t.indexOf("image://")?r.makeImage(t.slice(8),new o(e,n,i,a),c?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new o(e,n,i,a),c?"center":"cover"):new d({shape:{symbolType:t,x:e,y:n,width:i,height:a}}),l.__isEmptyBrush=u,l.setColor=f,l.setColor(s),l}e.createSymbol=g},a18f:function(t,e,n){var i=n("3a56"),r=i.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=r},a38d:function(t,e,n){var i=n("2306"),r=n("392f"),o=n("9680"),a=n("68ab"),s=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0){var h=(s+l)/2-(c-u)*i,p=(c+u)/2-(l-s)*i;t.quadraticCurveTo(h,p,l,u)}else t.lineTo(l,u)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var s=0,c=0;c0)for(var u=i[c++],h=i[c++],p=1;p0){var g=(u+d)/2-(h-f)*r,m=(h+f)/2-(d-u)*r;if(a.containStroke(u,h,g,m,d,f))return s}else if(o.containStroke(u,h,d,f))return s;s++}return-1}});function c(){this.group=new i.Group}var l=c.prototype;l.isPersistent=function(){return!this._incremental},l.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},l.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},l.incrementalUpdate=function(t,e){var n=new s;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},l._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var u=c;t.exports=u},a4b1:function(t,e,n){var i=n("3eba");n("00ba"),n("4d62");var r=n("98e7"),o=n("24b9"),a=n("d3f4");i.registerVisual(r("funnel")),i.registerLayout(o),i.registerProcessor(a("funnel"))},a4fe:function(t,e,n){var i=n("3eba"),r="\0_ec_interaction_mutex";function o(t,e,n){var i=c(t);i[e]=n}function a(t,e,n){var i=c(t),r=i[e];r===n&&(i[e]=null)}function s(t,e){return!!c(t)[e]}function c(t){return t[r]||(t[r]={})}i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=o,e.release=a,e.isTaken=s},a666:function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("2306"),a=n("0c41"),s="__seriesMapHighDown",c="__seriesMapCallKey",l=i.extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){o=this._mapDraw;o&&r.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new a(n,!0);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},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,n){var i=t.originalData,a=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var l=i.getItemLayout(n);if(l&&l.point){var p=l.point,d=l.offset,f=new o.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:p[0]+9*d,cy:p[1],r:3},silent:!0,z2:8+(d?0:o.Z2_EMPHASIS_LIFT+1)});if(!d){var g=t.mainSeries.getData(),m=i.getName(n),v=g.indexOfName(m),y=i.getItemModel(n),_=y.getModel("label"),b=y.getModel("emphasis.label"),x=g.getItemGraphicEl(v),w=r.retrieve2(t.getFormattedLabel(v,"normal"),m),O=r.retrieve2(t.getFormattedLabel(v,"emphasis"),w),S=x[s],E=Math.random();if(!S){S=x[s]={};var A=r.curry(u,!0),k=r.curry(u,!1);x.on("mouseover",A).on("mouseout",k).on("emphasis",A).on("normal",k)}x[c]=E,r.extend(S,{recordVersion:E,circle:f,labelModel:_,hoverLabelModel:b,emphasisText:O,normalText:w}),h(S,!1)}a.add(f)}}}))}});function u(t){var e=this[s];e&&e.recordVersion===this[c]&&h(e,t)}function h(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,a=t.emphasisText,s=t.normalText;e?(n.style.extendFrom(o.setTextStyle({},r,{text:r.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=o.Z2_EMPHASIS_LIFT):(o.setTextStyle(n.style,i,{text:i.get("show")?s:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}t.exports=l},a6c1:function(t,e,n){var i,r;(function(){var o=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=18)}([,,function(t,e,n){"use strict";function i(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function r(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function o(t,e){this.__indent_cache=new r(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},r.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},r.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},r.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},o.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=o},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},,,function(t,e,n){"use strict";function i(t,e){this.raw_options=r(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function r(t,e){var n,i={};for(n in t=o(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function o(t){var e,n={};for(e in t){var i=e.replace(/-/g,"_");n[i]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t],i=void 0===n?!!e:!!n;return i},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=i,t.exports.normalizeOpts=o,t.exports.mergeOpts=r},,function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function r(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=r},function(t,e,n){"use strict";var i=n(8).InputScanner,r=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};c.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new o,this._reset();var e=new r(s.START,""),n=null,i=[],a=new o;while(e.type!==s.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new o),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},c.prototype._is_comment=function(t){return!1},c.prototype._is_opening=function(t){return!1},c.prototype._is_closing=function(t,e){return!1},c.prototype._create_token=function(t,e){var n=new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=c,t.exports.TOKEN=s},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e=this._create();for(var n in r)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},o.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},o.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=o},,,,function(t,e,n){"use strict";var i=n(19).Beautifier,r=n(20).Options;function o(t,e,n,r){var o=new i(t,e,n,r);return o.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new r}},function(t,e,n){"use strict";var i=n(20).Options,r=n(2).Output,o=n(21).Tokenizer,a=n(21).TOKEN,s=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,l=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new r(t,e)};l.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},l.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},l.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},l.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},l.prototype.print_preserved_newlines=function(t){var e=0;t.type!==a.TEXT&&t.previous.type!==a.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},l.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},l.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},l.prototype.print_newline=function(t){this._output.add_new_line(t)},l.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},l.prototype.indent=function(){this.indent_level++},l.prototype.get_full_indent=function(t){return t=this.indent_level+(t||0),t<1?"":this._output.get_indent_string(t)};var u=function(t){var e=null,n=t.next;while(n.type!==a.EOF&&t.closed!==n){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(e=n.next.next.text);break}n=n.next}return e},h=function(t,e){var n=null,i=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),n=u(e)||n,n.search("text/css")>-1?i="css":n.search(/(text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect)/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function p(t,e){return-1!==e.indexOf(t)}function d(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function f(t){this._printer=t,this._current_frame=null}function g(t,e,n,r){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var o=new i(e,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(t){var e=new d(this._current_frame,t,this._printer.indent_level);this._current_frame=e},f.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},f.prototype._get_frame=function(t,e){var n=this._current_frame;while(n){if(-1!==t.indexOf(n.tag))break;if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},f.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},g.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&s.test(t)&&(e=t.match(s)[0])),t=t.replace(c,"\n");var n=t.match(/^[\t ]*/)[0],i={text:"",type:""},r=new m,u=new l(this._options,n),h=new o(t,this._options).tokenize();this._tag_stack=new f(u);var p=null,d=h.next();while(d.type!==a.EOF)d.type===a.TAG_OPEN||d.type===a.COMMENT?(p=this._handle_tag_open(u,d,r,i),r=p):d.type===a.ATTRIBUTE||d.type===a.EQUALS||d.type===a.VALUE||d.type===a.TEXT&&!r.tag_complete?p=this._handle_inside_tag(u,d,r,h):d.type===a.TAG_CLOSE?p=this._handle_tag_close(u,d,r):d.type===a.TEXT?p=this._handle_text(u,d,r):u.add_raw_token(d),i=p,d=h.next();var g=u._output.get_code(e);return g},g.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},g.prototype._handle_inside_tag=function(t,e,n,i){var r=n.has_wrapped_attrs,o={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===a.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===a.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):(e.type===a.EQUALS||e.type===a.VALUE&&e.previous.type===a.EQUALS)&&t.set_space_before_token(!1),e.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),r=r||0!==e.newlines),this._is_wrap_attributes_force)){var s=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var c,l=!0,u=0;do{if(c=i.peek(u),c.type===a.ATTRIBUTE){l=!1;break}u+=1}while(u<4&&c.type!==a.EOF&&c.type!==a.TAG_CLOSE);s=!l}s&&(t.print_newline(!1),r=!0)}t.print_token(e),r=r||t.previous_token_wrapped(),n.has_wrapped_attrs=r}return o},g.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},g.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var r,o=e.text,a=1,s="",c="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(t,e){var n=new g(t,e,i._js_beautify,i._css_beautify);return n.beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-t.indent_level);var l=t.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(|]]>)$/.exec(o);if(!u)return void t.add_raw_token(e);s=l+u[1]+"\n",o=u[4],u[5]&&(c=l+u[5]),o=o.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/),u&&(e.whitespace_before=u[0]))}if(o)if(r){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options;var p=new h;o=r(l+o,p)}else{var d=e.whitespace_before;d&&(o=o.replace(new RegExp("\n("+d+")?","g"),"\n")),o=l+o.replace(/\n/g,"\n"+l)}s&&(o=o?s+o+"\n"+c:s+c),t.print_newline(!1),o&&(e.text=o,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},g.prototype._handle_tag_open=function(t,e,n,i){var r=this._get_tag_open_token(e);return(n.is_unformatted||n.is_content_unformatted)&&e.type===a.TAG_OPEN&&0===e.text.indexOf("]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{[#\^]?([^\s}]+)/),this.tag_check=n?n[1]:""),this.tag_check=this.tag_check.toLowerCase(),e.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};g.prototype._get_tag_open_token=function(t){var e=new m(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||p(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&p(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&p(e.tag_check,this._options.content_unformatted),e.is_inline_element=p(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},g.prototype._set_tag_position=function(t,e,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||(n.parent&&(n.parent.multiline_content=!0),t.print_newline(!1))),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=h(n.tag_check,e)))),p(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var o=t.current_line_has_match(/{{#if/);o||t.print_newline(!1)}"!--"===n.tag_name&&r.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||n.is_inline_element||n.is_unformatted||t.print_newline(!1)}else n.is_unformatted||n.is_content_unformatted?n.is_inline_element||n.is_unformatted||t.print_newline(!1):n.is_end_tag?(n.start_tag_token&&n.start_tag_token.multiline_content||!(n.is_inline_element||i.is_inline_element||r.type===a.TAG_CLOSE&&n.start_tag_token===i||"TK_CONTENT"===r.type))&&t.print_newline(!1):(n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||"TK_CONTENT"===r.type||(n.parent&&(n.parent.multiline_content=!0),t.print_newline(!1)))},g.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent)return"body"===t.tag_name?e=e||this._tag_stack.try_pop("head"):"li"===t.tag_name?e=e||this._tag_stack.try_pop("li",["ol","ul"]):"dd"===t.tag_name||"dt"===t.tag_name?(e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"])):"rp"===t.tag_name||"rt"===t.tag_name?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===t.tag_name||"tfoot"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):"tr"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==t.tag_name&&"td"!==t.tag_name||(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"])),t.parent=this._tag_stack.get_parser_token(),e},t.exports.Beautifier=g},function(t,e,n){"use strict";var i=n(6).Options;function r(t){i.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,t.exports.Options=r},function(t,e,n){"use strict";var i=n(9).Tokenizer,r=n(9).TOKEN,o=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,c={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},l=new o(/<\!--/,/-->/),u=function(t,e){i.call(this,t,e),this._current_tag_name="";var n=new a(this._input).read_options(this._options),r=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =\/>]/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(o).until_after(o)}};u.prototype=new i,u.prototype._is_comment=function(t){return!1},u.prototype._is_opening=function(t){return t.type===c.TAG_OPEN},u.prototype._is_closing=function(t,e){return t.type===c.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},u.prototype._reset=function(){this._current_tag_name=""},u.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(c.EOF,""):(n=n||this._read_open_handlebars(i,e),n=n||this._read_attribute(i,t,e),n=n||this._read_raw_content(i,t,e),n=n||this._read_close(i,e),n=n||this._read_content_word(i),n=n||this._read_comment_or_cdata(i),n=n||this._read_processing(i),n=n||this._read_open(i,e),n=n||this._create_token(c.UNKNOWN,this._input.next()),n)},u.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;if("<"===t){var r=this._input.peek(1);"!"===r&&(n=this.__patterns.comment.read(),n?(i=l.get_directives(n),i&&"start"===i.ignore&&(n+=l.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(e=this._create_token(c.COMMENT,n),e.directives=i)}return e},u.prototype._read_processing=function(t){var e=null,n=null,i=null;if("<"===t){var r=this._input.peek(1);"!"!==r&&"?"!==r||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(e=this._create_token(c.COMMENT,n),e.directives=i)}return e},u.prototype._read_open=function(t,e){var n=null,i=null;return e||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(c.TAG_OPEN,n)),i},u.prototype._read_open_handlebars=function(t,e){var n=null,i=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),i=this._create_token(c.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(c.TAG_OPEN,n))),i},u.prototype._read_close=function(t,e){var n=null,i=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),i=this._create_token(c.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(c.TAG_CLOSE,"}}"))),i},u.prototype._read_attribute=function(t,e,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===t)i=this._create_token(c.EQUALS,this._input.next());else if('"'===t||"'"===t){var o=this._input.next();o+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(c.VALUE,o)}else r=this.__patterns.attribute.read(),r&&(i=e.type===c.EQUALS?this._create_token(c.VALUE,r):this._create_token(c.ATTRIBUTE,r));return i},u.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},u.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===c.TAG_CLOSE&&"<"===e.opened.text[0]){var r=e.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var o=this._read_comment_or_cdata(t);if(o)return o.type=c.TEXT,o;i=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(c.TEXT,i):null},u.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(c.TEXT,e)},t.exports.Tokenizer=u,t.exports.TOKEN=c}]),a=o;i=[n,n("e943"),n("4d7c")],r=function(t){var e=n("e943"),i=n("4d7c");return{html_beautify:function(t,n){return a(t,n,e.js_beautify,i.css_beautify)}}}.apply(e,i),void 0===r||(t.exports=r)})()},a73c:function(t,e,n){var i=n("6d8b"),r=i.retrieve2,o=i.retrieve3,a=i.each,s=i.normalizeCssArray,c=i.isString,l=i.isObject,u=n("e86a"),h=n("5693"),p=n("5e76"),d=n("7d6d"),f=n("82eb"),g=f.ContextCachedBy,m=f.WILL_BE_RESTORED,v=u.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},b=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]];function x(t){return w(t),a(t.rich,w),t}function w(t){if(t){t.font=u.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||_[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=s(t.textPadding))}}function O(t,e,n,i,r,o){i.rich?E(t,e,n,i,r,o):S(t,e,n,i,r,o)}function S(t,e,n,i,r,o){"use strict";var a,s=j(i),c=!1,l=e.__attrCachedBy===g.PLAIN_TEXT;o!==m?(o&&(a=o.style,c=!s&&l&&a),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):l&&(e.__attrCachedBy=g.NONE);var h=i.font||v;c&&h===(a.font||v)||(e.font=h);var p=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,p=t.__computedFont=e.font);var f=i.textPadding,y=i.textLineHeight,_=t.__textCotentBlock;_&&!t.__dirtyText||(_=t.__textCotentBlock=u.parsePlainText(n,p,f,y,i.truncate));var x=_.outerHeight,w=_.lines,O=_.lineHeight,S=P(x,i,r),E=S.baseX,A=S.baseY,T=S.textAlign||"left",C=S.textVerticalAlign;k(e,i,r,E,A);var I=u.adjustTextY(A,x,C),L=E,B=I;if(s||f){var z=u.getWidth(n,p),F=z;f&&(F+=f[1]+f[3]);var V=u.adjustTextX(E,F,T);s&&M(t,e,i,V,I,F,x),f&&(L=N(E,T,f),B+=f[0])}e.textAlign=T,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var H=0;H=0&&(x=O[R],"right"===x.textAlign))T(t,e,x,i,E,y,D,"right"),A-=x.width,D-=x.width,R--;I+=(o-(I-v)-(_-D)-A)/2;while(C<=R)x=O[C],T(t,e,x,i,E,y,I+x.width/2,"center"),I+=x.width,C++;y+=E}}function k(t,e,n,i,r){if(n&&e.textRotation){var o=e.textOrigin;"center"===o?(i=n.width/2+n.x,r=n.height/2+n.y):o&&(i=o[0]+n.x,r=o[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function T(t,e,n,i,a,s,c,l){var u=i.rich[n.styleName]||{};u.text=n.text;var h=n.textVerticalAlign,p=s+a/2;"top"===h?p=s+n.height/2:"bottom"===h&&(p=s+a-n.height/2),!n.isLineHolder&&j(u)&&M(t,e,u,"right"===l?c-n.width:"center"===l?c-n.width/2:c,p-n.height/2,n.width,n.height);var d=n.textPadding;d&&(c=N(c,l,d),p-=n.height/2-d[2]-n.textHeight/2),I(e,"shadowBlur",o(u.textShadowBlur,i.textShadowBlur,0)),I(e,"shadowColor",u.textShadowColor||i.textShadowColor||"transparent"),I(e,"shadowOffsetX",o(u.textShadowOffsetX,i.textShadowOffsetX,0)),I(e,"shadowOffsetY",o(u.textShadowOffsetY,i.textShadowOffsetY,0)),I(e,"textAlign",l),I(e,"textBaseline","middle"),I(e,"font",n.font||v);var f=D(u.textStroke||i.textStroke,m),g=R(u.textFill||i.textFill),m=r(u.textStrokeWidth,i.textStrokeWidth);f&&(I(e,"lineWidth",m),I(e,"strokeStyle",f),e.strokeText(n.text,c,p)),g&&(I(e,"fillStyle",g),e.fillText(n.text,c,p))}function j(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function M(t,e,n,i,r,o,a){var s=n.textBackgroundColor,u=n.textBorderWidth,d=n.textBorderColor,f=c(s);if(I(e,"shadowBlur",n.textBoxShadowBlur||0),I(e,"shadowColor",n.textBoxShadowColor||"transparent"),I(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),I(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),f||u&&d){e.beginPath();var g=n.textBorderRadius;g?h.buildPath(e,{x:i,y:r,width:o,height:a,r:g}):e.rect(i,r,o,a),e.closePath()}if(f)if(I(e,"fillStyle",s),null!=n.fillOpacity){var m=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=m}else e.fill();else if(l(s)){var v=s.image;v=p.createOrUpdateImage(v,null,t,C,s),v&&p.isImageReady(v)&&e.drawImage(v,i,r,o,a)}if(u&&d)if(I(e,"lineWidth",u),I(e,"strokeStyle",d),null!=n.strokeOpacity){m=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=m}else e.stroke()}function C(t,e){e.image=t}function P(t,e,n){var i=e.x||0,r=e.y||0,o=e.textAlign,a=e.textVerticalAlign;if(n){var s=e.textPosition;if(s instanceof Array)i=n.x+L(s[0],n.width),r=n.y+L(s[1],n.height);else{var c=u.adjustTextPositionOnRect(s,n,e.textDistance);i=c.x,r=c.y,o=o||c.textAlign,a=a||c.textVerticalAlign}var l=e.textOffset;l&&(i+=l[0],r+=l[1])}return{baseX:i,baseY:r,textAlign:o,textVerticalAlign:a}}function I(t,e,n){return t[e]=d(t,e,n),t[e]}function D(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function R(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function L(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function N(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function B(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}e.normalizeTextStyle=x,e.renderText=O,e.getStroke=D,e.getFill=R,e.needDrawText=B},a753:function(t,e,n){var i=n("1f0e"),r=n("2306"),o=n("e887"),a=n("3842"),s=a.parsePercent,c=a.round,l=a.linearMap;function u(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=s(n[0],e.getWidth()),c=s(n[1],e.getHeight()),l=s(t.get("radius"),o/2);return{cx:a,cy:c,r:l}}function h(t,e){return e&&("string"===typeof e?t=e.replace("{value}",null!=t?t:""):"function"===typeof e&&(t=e(t))),t}var p=2*Math.PI,d=o.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i=t.get("axisLine.lineStyle.color"),r=u(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,e,n,i,o){for(var a=this.group,s=t.getModel("axisLine"),c=s.getModel("lineStyle"),l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,d=(h-u)%p,f=u,g=c.get("width"),m=0;m=t&&(0===e?0:i[e-1][0]).4?"bottom":"middle",textAlign:C<-.4?"left":C>.4?"right":"center"},{autoColor:L}),silent:!0}))}if(_.get("show")&&M!==x){for(var N=0;N<=w;N++){C=Math.cos(E),P=Math.sin(E);var B=new r.Line({shape:{x1:C*g+d,y1:P*g+f,x2:C*(g-S)+d,y2:P*(g-S)+f},silent:!0,style:j});"auto"===j.stroke&&B.setStyle({stroke:i((M+N/w)/x)}),p.add(B),E+=k}E-=k}else E+=A}},_renderPointer:function(t,e,n,o,a,c,u,h){var p=this.group,d=this._data;if(t.get("pointer.show")){var f=[+t.get("min"),+t.get("max")],g=[c,u],m=t.getData(),v=m.mapDimension("value");m.diff(d).add((function(e){var n=new i({shape:{angle:c}});r.initProps(n,{shape:{angle:l(m.get(v,e),f,g,!0)}},t),p.add(n),m.setItemGraphicEl(e,n)})).update((function(e,n){var i=d.getItemGraphicEl(n);r.updateProps(i,{shape:{angle:l(m.get(v,e),f,g,!0)}},t),p.add(i),m.setItemGraphicEl(e,i)})).remove((function(t){var e=d.getItemGraphicEl(t);p.remove(e)})).execute(),m.eachItemGraphicEl((function(t,e){var n=m.getItemModel(e),i=n.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:s(i.get("width"),a.r),r:s(i.get("length"),a.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",o(l(m.get(v,e),f,[0,1],!0))),r.setHoverStyle(t,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else d&&d.eachItemGraphicEl((function(t){p.remove(t)}))},_renderTitle:function(t,e,n,i,o){var a=t.getData(),c=a.mapDimension("value"),u=t.getModel("title");if(u.get("show")){var h=u.get("offsetCenter"),p=o.cx+s(h[0],o.r),d=o.cy+s(h[1],o.r),f=+t.get("min"),g=+t.get("max"),m=t.getData().get(c,0),v=i(l(m,[f,g],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},u,{x:p,y:d,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,o){var a=t.getModel("detail"),c=+t.get("min"),u=+t.get("max");if(a.get("show")){var p=a.get("offsetCenter"),d=o.cx+s(p[0],o.r),f=o.cy+s(p[1],o.r),g=s(a.get("width"),o.r),m=s(a.get("height"),o.r),v=t.getData(),y=v.get(v.mapDimension("value"),0),_=i(l(y,[c,u],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},a,{x:d,y:f,text:h(y,a.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),f=d;t.exports=f},a7539:function(t,e,n){},a7e2:function(t,e,n){var i=n("3eba");n("7293"),n("ae46");var r=n("6582"),o=n("ee98");i.registerLayout(r),i.registerVisual(o)},a7f2:function(t,e){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function i(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:n[0]})}t.exports=i},a87d:function(t,e,n){var i=n("22d1"),r=n("401b"),o=r.applyTransform,a=n("9850"),s=n("41ef"),c=n("e86a"),l=n("a73c"),u=n("9e2e"),h=n("19eb"),p=n("0da8"),d=n("76a5"),f=n("cbe5"),g=n("20c8"),m=n("42e5"),v=n("d3a4"),y=g.CMD,_=Math.round,b=Math.sqrt,x=Math.abs,w=Math.cos,O=Math.sin,S=Math.max;if(!i.canvasSupported){var E=",",A="progid:DXImageTransform.Microsoft",k=21600,T=k/2,j=1e5,M=1e3,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=k+","+k,t.coordorigin="0,0"},P=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},I=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},D=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},R=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},L=function(t,e,n){return(parseFloat(t)||0)*j+(parseFloat(e)||0)*M+n},N=function(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},B=function(t,e,n){var i=s.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=I(i[0],i[1],i[2]),t.opacity=n*i[3])},z=function(t){var e=s.parse(t);return[I(e[0],e[1],e[2]),e[3]]},F=function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof m){var r,a=0,s=[0,0],c=0,l=1,u=n.getBoundingRect(),h=u.width,p=u.height;if("linear"===i.type){r="gradient";var d=n.transform,f=[i.x*h,i.y*p],g=[i.x2*h,i.y2*p];d&&(o(f,f,d),o(g,g,d));var v=g[0]-f[0],y=g[1]-f[1];a=180*Math.atan2(v,y)/Math.PI,a<0&&(a+=360),a<1e-6&&(a=0)}else{r="gradientradial";f=[i.x*h,i.y*p],d=n.transform;var _=n.scale,b=h,x=p;s=[(f[0]-u.x)/b,(f[1]-u.y)/x],d&&o(f,f,d),b/=_[0]*k,x/=_[1]*k;var w=S(b,x);c=0/w,l=2*i.r/w-c}var O=i.colorStops.slice();O.sort((function(t,e){return t.offset-e.offset}));for(var E=O.length,A=[],T=[],j=0;j=2){var P=A[0][0],I=A[1][0],D=A[0][1]*e.opacity,R=A[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=P,t.color2=I,t.colors=T.join(","),t.opacity=R,t.opacity2=D}"radial"===r&&(t.focusposition=s.join(","))}else B(t,i,e.opacity)},V=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof m||B(t,e.stroke,e.opacity)},H=function(t,e,n,i){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof m&&R(t,o),o||(o=v.createNode(e)),r?F(o,n,i):V(o,n),D(t,o)):(t[r?"filled":"stroked"]="false",R(t,o))},G=[[],[],[]],q=function(t,e){var n,i,r,a,s,c,l=y.M,u=y.C,h=y.L,p=y.A,d=y.Q,f=[],g=t.data,m=t.len();for(a=0;a.01?H&&(q+=270/k):Math.abs(W-N)<1e-4?H&&qL?A-=270/k:A+=270/k:H&&WN?S+=270/k:S-=270/k),f.push(U,_(((L-B)*I+C)*k-T),E,_(((N-z)*D+P)*k-T),E,_(((L+B)*I+C)*k-T),E,_(((N+z)*D+P)*k-T),E,_((q*I+C)*k-T),E,_((W*D+P)*k-T),E,_((S*I+C)*k-T),E,_((A*D+P)*k-T)),s=S,c=A;break;case y.R:var $=G[0],Y=G[1];$[0]=g[a++],$[1]=g[a++],Y[0]=$[0]+g[a++],Y[1]=$[1]+g[a++],e&&(o($,$,e),o(Y,Y,e)),$[0]=_($[0]*k-T),Y[0]=_(Y[0]*k-T),$[1]=_($[1]*k-T),Y[1]=_(Y[1]*k-T),f.push(" m ",$[0],E,$[1]," l ",Y[0],E,$[1]," l ",Y[0],E,Y[1]," l ",$[0],E,Y[1]);break;case y.Z:f.push(" x ")}if(n>0){f.push(i);for(var Z=0;ZX&&(Z=0,Y={});var n,i=K.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(r){}e={style:i.fontStyle||$,variant:i.fontVariant||$,weight:i.fontWeight||$,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},Y[t]=e,Z++}return e};c.$override("measureText",(function(t,e){var n=v.doc;U||(U=n.createElement("div"),U.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(U));try{U.style.font=e}catch(i){}return U.innerHTML="",U.appendChild(n.createTextNode(t)),{width:U.offsetWidth}}));for(var J=new a,tt=function(t,e,n,i){var r=this.style;this.__dirty&&l.normalizeTextStyle(r,!0);var a=r.text;if(null!=a&&(a+=""),a){if(r.rich){var s=c.parseRichText(a,r);a=[];for(var u=0;u1)return!1;var p=h(n-t,r-t,i-e,o-e)/c;return!(p<0||p>1)}function u(t){return t<=1e-6&&t>=-1e-6}function h(t,e,n,i){return t*i-e*n}var p=o;t.exports=p},a8c6:function(t,e,n){var i=n("2449"),r=i.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,n){var i=n("3eba"),r=i.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,n){var i=n("6d8b"),r=n("e86a"),o=n("84ce"),a=n("e0d3"),s=a.makeInner,c=s();function l(t,e){e=e||[0,360],o.call(this,"angle",t,e),this.type="category"}l.prototype={constructor:l,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],s=t.dataToCoord(a+1)-t.dataToCoord(a),l=Math.abs(s),u=r.getBoundingRect(a,e.getFont(),"center","top"),h=Math.max(u.height,7),p=h/l;isNaN(p)&&(p=1/0);var d=Math.max(0,Math.floor(p)),f=c(t.model),g=f.lastAutoInterval,m=f.lastTickCount;return null!=g&&null!=m&&Math.abs(g-d)<=1&&Math.abs(m-o)<=1&&g>d?d=g:(f.lastTickCount=o,f.lastAutoInterval=d),d}},i.inherits(l,o);var u=l;t.exports=u},aa01:function(t,e,n){var i=n("6d8b"),r=n("4f85"),o=n("06c7"),a=n("55ac"),s=a.wrapTreePathInfo,c=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var n={name:t.name,children:t.data};l(n);var i=t.levels||[],r={};return r.levels=i,o.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=s(n,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,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},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 l(t){var e=0;i.each(t.children,(function(t){l(t);var n=t.value;i.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.isArray(t.value)?t.value[0]=n:t.value=n}t.exports=c},aa3e:function(t,e,n){var i=n("6d8b");function r(t,e){return e=e||[0,0],i.map(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function o(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:i.bind(r,t)}}}t.exports=o},aadf:function(t,e,n){var i=n("3eba"),r=n("6d8b");n("5aa9"),n("d6d9"),n("3329");var o=n("9d57"),a=o.layout,s=n("7f96");n("01ed"),i.registerLayout(r.curry(a,"pictorialBar")),i.registerVisual(s("pictorialBar","roundRect"))},ab05:function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("2b8c"),a=n("5f14"),s=i.PRIORITY.VISUAL.COMPONENT;function c(t,e,n,i){for(var r=e.targetVisuals[i],o=a.prepareVisualTypes(r),s={color:t.getData().getVisual("color")},c=0,l=o.length;c1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=a().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext,a=i.large;return n&&a===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=a?new o:new r,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(t,e,n){var i=n("cbe5"),r=n("401b"),o=n("4a3f"),a=o.quadraticSubdivide,s=o.cubicSubdivide,c=o.quadraticAt,l=o.cubicAt,u=o.quadraticDerivativeAt,h=o.cubicDerivativeAt,p=[];function d(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?h:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?h:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?u:c)(t.x1,t.cpx1,t.x2,e),(n?u:c)(t.y1,t.cpy1,t.y2,e)]}var f=i.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 n=e.x1,i=e.y1,r=e.x2,o=e.y2,c=e.cpx1,l=e.cpy1,u=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==u||null==h?(d<1&&(a(n,c,r,d,p),c=p[1],r=p[2],a(i,l,o,d,p),l=p[1],o=p[2]),t.quadraticCurveTo(c,l,r,o)):(d<1&&(s(n,c,u,r,d,p),c=p[1],u=p[2],r=p[3],s(i,l,h,o,d,p),l=p[1],h=p[2],o=p[3]),t.bezierCurveTo(c,l,u,h,r,o)))},pointAt:function(t){return d(this.shape,t,!1)},tangentAt:function(t){var e=d(this.shape,t,!0);return r.normalize(e,e)}});t.exports=f},acb6:function(t,e,n){"use strict";function i(t){return{x:t.x+t.width/2,y:t.y+t.height/2}}function r(t,e){return{x:t.x-e.x,y:t.y-e.y}}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},adda:function(t,e,n){var i=n("94e4"),r=i.circularLayout;function o(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&r(t)}))}t.exports=o},adf4:function(t,e,n){var i=n("4f85"),r=n("b1d4"),o=n("2f45"),a=o.getDimensionTypeByAxis,s=n("6179"),c=n("6d8b"),l=n("e0d3"),u=l.groupData,h=n("eda2"),p=h.encodeHTML,d=2,f=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){f.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){var e=t.length,n=u(t,(function(t){return t[2]})),i=[];n.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var r=i.length,o=-1,a=-1,s=0;so&&(o=c,a=s)}for(var l=0;l=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof o&&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 l=c;t.exports=l},b006:function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("fab2"),a=n("fc82"),s=n("f4a2"),c=n("2306"),l=["axisLine","axisTickLabel","axisName"],u=i.extendComponentView({type:"parallelAxis",init:function(t,e){u.superApply(this,"init",arguments),(this._brushController=new a(e.getZr())).on("brush",r.bind(this._onBrush,this))},render:function(t,e,n,i){if(!h(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new c.Group,this.group.add(this._axisGroup),t.get("show")){var s=d(t,e),u=s.coordinateSystem,p=t.getAreaSelectStyle(),f=p.width,g=t.axis.dim,m=u.getAxisLayout(g),v=r.extend({strokeContainThreshold:f},m),y=new o(t,v);r.each(l,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,p,t,s,f,n);var _=i&&!1===i.animation?null:t;c.groupTransition(a,this._axisGroup,_)}}},_refreshBrushController:function(t,e,n,i,r,o){var a=n.axis.getExtent(),l=a[1]-a[0],u=Math.min(30,.1*Math.abs(l)),h=c.BoundingRect.create({x:a[0],y:-r/2,width:l,height:r});h.x-=u,h.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(h),isTargetByCursor:s.makeRectIsTargetByCursor(h,o,i),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(p(n))},_onBrush:function(t,e){var n=this.axisModel,i=n.axis,o=r.map(t,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},dispose:function(){this._brushController.dispose()}});function h(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function p(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 d(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var f=u;t.exports=f},b0d1:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"e",(function(){return d}));var i=n("87f2"),r=n("7a6b"),o={width:90,height:20},a=15;function s(t){return Object(r["c"])(t,"bpmn:Event")||Object(r["c"])(t,"bpmn:Gateway")||Object(r["c"])(t,"bpmn:DataStoreReference")||Object(r["c"])(t,"bpmn:DataObjectReference")||Object(r["c"])(t,"bpmn:DataInput")||Object(r["c"])(t,"bpmn:DataOutput")||Object(r["c"])(t,"bpmn:SequenceFlow")||Object(r["c"])(t,"bpmn:MessageFlow")||Object(r["c"])(t,"bpmn:Group")}function c(t){return d(t.label)}function l(t){var e=t.length/2-1,n=t[Math.floor(e)],i=t[Math.ceil(e+.01)],r=u(t),o=Math.atan((i.y-n.y)/(i.x-n.x)),s=r.x,c=r.y;return Math.abs(o)0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===i(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return m("action",t)}},{key:"defaultTarget",value:function(t){var e=m("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return m("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(c.default);function m(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=g},function(t,e,n){"use strict";var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=l},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;for(i;iy||Math.abs(t.dy)>y)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new u(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=h.create();h.translate(s,s,[-e,-n]),h.scale(s,s,[t.scale,t.scale]),h.translate(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&window.open(o,a)}}}}}),this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(s.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,n.node,f(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=j(),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 n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n}});function j(){return{nodeGroup:[],background:[],content:[]}}function M(t,e,n,i,a,s,c,l,u,h){if(c){var p=c.getLayout();if(p&&p.isInView){var d=p.width,f=p.height,v=p.borderWidth,y=p.invisible,O=c.getRawIndex(),T=l&&l.getRawIndex(),j=c.viewChildren,M=p.upperHeight,P=j&&j.length,I=c.getModel("itemStyle"),D=c.getModel("emphasis.itemStyle"),R=H("nodeGroup",g);if(R){if(u.add(R),R.attr("position",[p.x||0,p.y||0]),R.__tmNodeWidth=d,R.__tmNodeHeight=f,p.isAboveViewRoot)return R;var L=H("background",m,h,S);if(L&&B(R,L,P&&p.upperHeight),!P){var N=H("content",m,h,E);N&&z(R,N)}return R}}}function B(e,n,i){n.dataIndex=c.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:f});var r=c.getVisual("borderColor",!0),a=D.get("borderColor");F(n,(function(){var t=k(I);t.fill=r;var e=A(D);if(e.fill=a,i){var s=d-2*v;V(t,e,r,s,M,{x:v,y:0,width:s,height:M})}else t.text=e.text=null;n.setStyle(t),o.setHoverStyle(n,e)})),e.add(n)}function z(e,n){n.dataIndex=c.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(d-2*v,0),r=Math.max(f-2*v,0);n.culling=!0,n.setShape({x:v,y:v,width:i,height:r});var a=c.getVisual("color",!0);F(n,(function(){var t=k(I);t.fill=a;var e=A(D);V(t,e,a,i,r),n.setStyle(t),o.setHoverStyle(n,e)})),e.add(n)}function F(t,e){y?!t.invisible&&s.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function V(e,n,i,a,s,l){var u=c.getModel(),h=r.retrieve(t.getFormattedLabel(c.dataIndex,"normal",null,null,l?"upperLabel":"label"),u.get("name"));if(!l&&p.isLeafRoot){var d=t.get("drillDownIcon",!0);h=d?d+" "+h:h}var f=u.getModel(l?x:_),g=u.getModel(l?w:b),m=f.getShallow("show");o.setLabelStyle(e,n,f,g,{defaultText:m?h:null,autoColor:i,isRectText:!0}),l&&(e.textRect=r.clone(l)),e.truncate=m&&f.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function H(t,i,r,o){var s=null!=T&&n[t][T],c=a[t];return s?(n[t][T]=null,G(c,s,t)):y||(s=new i({z:C(r,o)}),s.__tmDepth=r,s.__tmStorageName=t,q(c,s,t)),e[t][O]=s}function G(t,e,n){var i=t[O]={};i.old="nodeGroup"===n?e.position.slice():r.extend({},e.shape)}function q(t,e,n){var r=t[O]={},o=c.parentNode;if(o&&(!i||"drillDown"===i.direction)){var s=0,l=0,u=a.background[o.getRawIndex()];!i&&u&&u.old&&(s=u.old.width,l=u.old.height),r.old="nodeGroup"===n?[0,l]:{x:s,y:l,width:0,height:0}}r.fadein="nodeGroup"!==n}}function C(t,e){var n=t*O+e;return(n-1)/n}t.exports=T},b392:function(t,e,n){"use strict";n.d(e,"a",(function(){return Yn}));var i=n("87f2"),r=n("e506"),o=n("6b8b"),a=/^class /;function s(t){return a.test(t.toString())}function c(t){return"[object Array]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(){var t=Array.prototype.slice.call(arguments);1===t.length&&c(t[0])&&(t=t[0]);var e=t.pop();return e.$inject=t,e}var h=/constructor\s*[^(]*\(\s*([^)]*)\)/m,p=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,d=/\/\*([^*]*)\*\//m;function f(t){if("function"!==typeof t)throw new Error('Cannot annotate "'+t+'". Expected a function!');var e=t.toString().match(s(t)?h:p);if(!e)return[];var n=e[1]||e[2];return n&&n.split(",").map((function(t){var e=t.match(d);return(e&&e[1]||t).trim()}))||[]}function g(t,e){e=e||{get:function(t,e){if(n.push(t),!1===e)return null;throw a('No provider for "'+t+'"!')}};var n=[],i=this._providers=Object.create(e._providers||null),r=this._instances=Object.create(null),o=r.injector=this,a=function(t){var e=n.join(" -> ");return n.length=0,new Error(e?t+" (Resolving: "+e+")":t)};function s(t,o){if(!i[t]&&-1!==t.indexOf(".")){var c=t.split("."),u=s(c.shift());while(c.length)u=u[c.shift()];return u}if(l(r,t))return r[t];if(l(i,t)){if(-1!==n.indexOf(t))throw n.push(t),a("Cannot resolve circular dependency!");return n.push(t),r[t]=i[t][0](i[t][1]),n.pop(),r[t]}return e.get(t,o)}function h(t,e){if("undefined"===typeof e&&(e={}),"function"!==typeof t){if(!c(t))throw new Error('Cannot invoke "'+t+'". Expected a function!');t=u(t.slice())}var n=t.$inject||f(t),i=n.map((function(t){return l(e,t)?e[t]:s(t)}));return{fn:t,dependencies:i}}function p(t){var e=h(t),n=e.fn,i=e.dependencies,r=Function.prototype.bind.apply(n,[null].concat(i));return new r}function d(t,e,n){var i=h(t,n),r=i.fn,o=i.dependencies;return r.apply(e,o)}function v(t){return u((function(e){return t.get(e)}))}function y(t,e){if(e&&e.length){var n,r,a,s,c=Object.create(null),l=Object.create(null),u=[],h=[],p=[];for(var d in i)n=i[d],-1!==e.indexOf(d)&&("private"===n[2]?(r=u.indexOf(n[3]),-1===r?(a=n[3].createChild([],e),s=v(a),u.push(n[3]),h.push(a),p.push(s),c[d]=[s,d,"private",a]):c[d]=[p[r],d,"private",h[r]]):c[d]=[n[2],n[1]],l[d]=!0),"factory"!==n[2]&&"type"!==n[2]||!n[1].$scope||e.forEach((function(t){-1!==n[1].$scope.indexOf(t)&&(c[d]=[n[2],n[1]],l[t]=!0)}));e.forEach((function(t){if(!l[t])throw new Error('No provider for "'+t+'". Cannot use provider from the parent!')})),t.unshift(c)}return new g(t,o)}var _={factory:d,type:p,value:function(t){return t}};function b(t,e){var n=t.__init__||[];return function(){n.forEach((function(t){try{"string"===typeof t?e.get(t):e.invoke(t)}catch(a){if("undefined"!==typeof AggregateError)throw new AggregateError([a],"Failed to initialize!");throw new Error("Failed to initialize! "+a.message)}}))}}function x(t){var e=t.__exports__;if(e){var n=t.__modules__,r=Object.keys(t).reduce((function(e,n){return"__exports__"!==n&&"__modules__"!==n&&"__init__"!==n&&"__depends__"!==n&&(e[n]=t[n]),e}),Object.create(null)),a=(n||[]).concat(r),s=y(a),c=u((function(t){return s.get(t)}));e.forEach((function(t){i[t]=[c,t,"private",s]}));var l=(t.__init__||[]).slice();return l.unshift((function(){s.init()})),t=Object.assign({},t,{__init__:l}),b(t,s)}return Object.keys(t).forEach((function(e){if("__init__"!==e&&"__depends__"!==e)if("private"!==t[e][2]){var n=t[e][0],r=t[e][1];i[e]=[_[n],m(n,r),n]}else i[e]=t[e]})),b(t,o)}function w(t,e){return-1!==t.indexOf(e)?t:(t=(e.__depends__||[]).reduce(w,t),-1!==t.indexOf(e)?t:t.concat(e))}function O(t){var e=t.reduce(w,[]).map(x),n=!1;return function(){n||(n=!0,e.forEach((function(t){return t()})))}}this.get=s,this.invoke=d,this.instantiate=p,this.createChild=y,this.init=O(t)}function m(t,e){return"value"!==t&&c(e)&&(e=u(e.slice())),e}var v=n("96ae"),y=n("9036"),_=n("bc2f"),b=n("43c6"),x=1;function w(t,e){y["a"].call(this,t,x),this.CONNECTION_STYLE=e.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=e.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=e.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}function O(){var t={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},e=this;this.cls=function(t,e,n){var r=this.style(e,n);return Object(i["a"])(r,{class:t})},this.style=function(e,n){Object(i["l"])(e)||n||(n=e,e=[]);var r=Object(i["y"])(e,(function(e,n){return Object(i["a"])(e,t[n]||{})}),{});return n?Object(i["a"])(r,n):r},this.computeStyle=function(t,n,r){return Object(i["l"])(n)||(r=n,n=[]),e.style(n||[],Object(i["a"])({},r,t||{}))}}Object(v["a"])(w,y["a"]),w.prototype.canRender=function(){return!0},w.prototype.drawShape=function(t,e,n){var r=Object(o["f"])("rect");return Object(o["b"])(r,{x:0,y:0,width:e.width||0,height:e.height||0}),Object(b["g"])(e)?Object(o["b"])(r,Object(i["a"])({},this.FRAME_STYLE,n||{})):Object(o["b"])(r,Object(i["a"])({},this.SHAPE_STYLE,n||{})),Object(o["a"])(t,r),r},w.prototype.drawConnection=function(t,e,n){var r=Object(_["b"])(e.waypoints,Object(i["a"])({},this.CONNECTION_STYLE,n||{}));return Object(o["a"])(t,r),r},w.prototype.getShapePath=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=[["M",e,n],["l",i,0],["l",0,r],["l",-i,0],["z"]];return Object(_["a"])(o)},w.prototype.getConnectionPath=function(t){var e,n,i=t.waypoints,r=[];for(e=0;n=i[e];e++)n=n.original||n,r.push([0===e?"M":"L",n.x,n.y]);return Object(_["a"])(r)},w.$inject=["eventBus","styles"];var S={__init__:["defaultRenderer"],defaultRenderer:["type",w],styles:["type",O]},E=n("ea6d"),A=n("2e42");function k(t,e){return Math.round(t*e)/e}function T(t){return Object(i["p"])(t)?t+"px":t}function j(t){while(t.parent)t=t.parent;return t}function M(t){t=Object(i["a"])({},{width:"100%",height:"100%"},t);var e=t.container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container"),Object(r["a"])(n,{position:"relative",overflow:"hidden",width:T(t.width),height:T(t.height)}),e.appendChild(n),n}function C(t,e,n){var i=Object(o["f"])("g");Object(o["c"])(i).add(e);var r=void 0!==n?n:t.childNodes.length-1;return t.insertBefore(i,t.childNodes[r]||null),i}var P="base",I=0,D=1,R={shape:["x","y","width","height"],connection:["waypoints"]};function L(t,e,n,i){this._eventBus=e,this._elementRegistry=i,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(t||{})}function N(t,e){var n="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";t.setAttribute("transform",n)}L.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],L.prototype._init=function(t){var e=this._eventBus,n=this._container=M(t),r=this._svg=Object(o["f"])("svg");Object(o["b"])(r,{width:"100%",height:"100%"}),Object(o["a"])(n,r);var a=this._viewport=C(r,"viewport");!1!==t.deferUpdate&&(this._viewboxChanged=Object(i["c"])(Object(i["b"])(this._viewboxChanged,this),300)),e.on("diagram.init",(function(){e.fire("canvas.init",{svg:r,viewport:a})}),this),e.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],(function(){delete this._cachedViewbox}),this),e.on("diagram.destroy",500,this._destroy,this),e.on("diagram.clear",500,this._clear,this)},L.prototype._destroy=function(t){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},L.prototype._clear=function(){var t=this,e=this._elementRegistry.getAll();e.forEach((function(e){var n=Object(b["f"])(e);"root"===n?t.removeRootElement(e):t._removeElement(e,n)})),this._planes=[],this._rootElement=null,delete this._cachedViewbox},L.prototype.getDefaultLayer=function(){return this.getLayer(P,I)},L.prototype.getLayer=function(t,e){if(!t)throw new Error("must specify a name");var n=this._layers[t];if(n||(n=this._layers[t]=this._createLayer(t,e)),"undefined"!==typeof e&&n.index!==e)throw new Error("layer <"+t+"> already created at index <"+e+">");return n.group},L.prototype._getChildIndex=function(t){return Object(i["y"])(this._layers,(function(e,n){return n.visible&&t>=n.index&&e++,e}),0)},L.prototype._createLayer=function(t,e){"undefined"===typeof e&&(e=D);var n=this._getChildIndex(e);return{group:C(this._viewport,"layer-"+t,n),index:e,visible:!0}},L.prototype.showLayer=function(t){if(!t)throw new Error("must specify a name");var e=this._layers[t];if(!e)throw new Error("layer <"+t+"> does not exist");var n=this._viewport,i=e.group,r=e.index;if(e.visible)return i;var o=this._getChildIndex(r);return n.insertBefore(i,n.childNodes[o]||null),e.visible=!0,i},L.prototype.hideLayer=function(t){if(!t)throw new Error("must specify a name");var e=this._layers[t];if(!e)throw new Error("layer <"+t+"> does not exist");var n=e.group;return e.visible?(Object(o["j"])(n),e.visible=!1,n):n},L.prototype._removeLayer=function(t){var e=this._layers[t];e&&(delete this._layers[t],Object(o["j"])(e.group))},L.prototype.getActiveLayer=function(){var t=this._findPlaneForRoot(this.getRootElement());return t?t.layer:null},L.prototype.findRoot=function(t){if("string"===typeof t&&(t=this._elementRegistry.get(t)),t){var e=this._findPlaneForRoot(j(t))||{};return e.rootElement}},L.prototype.getRootElements=function(){return this._planes.map((function(t){return t.rootElement}))},L.prototype._findPlaneForRoot=function(t){return Object(i["f"])(this._planes,(function(e){return e.rootElement===t}))},L.prototype.getContainer=function(){return this._container},L.prototype._updateMarker=function(t,e,n){var r;t.id||(t=this._elementRegistry.get(t)),r=this._elementRegistry._elements[t.id],r&&(Object(i["i"])([r.gfx,r.secondaryGfx],(function(t){t&&(n?Object(o["c"])(t).add(e):Object(o["c"])(t).remove(e))})),this._eventBus.fire("element.marker.update",{element:t,gfx:r.gfx,marker:e,add:!!n}))},L.prototype.addMarker=function(t,e){this._updateMarker(t,e,!0)},L.prototype.removeMarker=function(t,e){this._updateMarker(t,e,!1)},L.prototype.hasMarker=function(t,e){t.id||(t=this._elementRegistry.get(t));var n=this.getGraphics(t);return Object(o["c"])(n).has(e)},L.prototype.toggleMarker=function(t,e){this.hasMarker(t,e)?this.removeMarker(t,e):this.addMarker(t,e)},L.prototype.getRootElement=function(){var t=this._rootElement;return t||this._planes.length?t:this.setRootElement(this.addRootElement(null))},L.prototype.addRootElement=function(t){var e=this._rootsIdx++;t||(t={id:"__implicitroot_"+e,children:[],isImplicit:!0});var n=t.layer="root-"+e;this._ensureValid("root",t);var i=this.getLayer(n,I);return this.hideLayer(n),this._addRoot(t,i),this._planes.push({rootElement:t,layer:i}),t},L.prototype.removeRootElement=function(t){"string"===typeof t&&(t=this._elementRegistry.get(t));var e=this._findPlaneForRoot(t);if(e)return this._removeRoot(t),this._removeLayer(t.layer),this._planes=this._planes.filter((function(e){return e.rootElement!==t})),this._rootElement===t&&(this._rootElement=null),t},L.prototype.setRootElement=function(t,e){if(Object(i["m"])(e))throw new Error("override not supported");if(t!==this._rootElement){var n;if(!t)throw new Error("rootElement required");return n=this._findPlaneForRoot(t),n||(t=this.addRootElement(t)),this._setRoot(t),t}},L.prototype._removeRoot=function(t){var e=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:t}),n.fire("root.removed",{element:t}),e.remove(t)},L.prototype._addRoot=function(t,e){var n=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:t}),n.add(t,e),i.fire("root.added",{element:t,gfx:e})},L.prototype._setRoot=function(t,e){var n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),t&&(e||(e=this._findPlaneForRoot(t).layer),this._elementRegistry.updateGraphics(t,this._svg,!0),this.showLayer(t.layer)),this._rootElement=t,this._eventBus.fire("root.set",{element:t})},L.prototype._ensureValid=function(t,e){if(!e.id)throw new Error("element must have an id");if(this._elementRegistry.get(e.id))throw new Error("element <"+e.id+"> already exists");var n=R[t],r=Object(i["d"])(n,(function(t){return"undefined"!==typeof e[t]}));if(!r)throw new Error("must supply { "+n.join(", ")+" } with "+t)},L.prototype._setParent=function(t,e,n){Object(E["a"])(e.children,t,n),t.parent=e},L.prototype._addElement=function(t,e,n,i){n=n||this.getRootElement();var r=this._eventBus,o=this._graphicsFactory;this._ensureValid(t,e),r.fire(t+".add",{element:e,parent:n}),this._setParent(e,n,i);var a=o.create(t,e,i);return this._elementRegistry.add(e,a),o.update(t,e,a),r.fire(t+".added",{element:e,gfx:a}),e},L.prototype.addShape=function(t,e,n){return this._addElement("shape",t,e,n)},L.prototype.addConnection=function(t,e,n){return this._addElement("connection",t,e,n)},L.prototype._removeElement=function(t,e){var n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(t=n.get(t.id||t),t)return r.fire(e+".remove",{element:t}),i.remove(t),Object(E["c"])(t.parent&&t.parent.children,t),t.parent=null,r.fire(e+".removed",{element:t}),n.remove(t),t},L.prototype.removeShape=function(t){return this._removeElement(t,"shape")},L.prototype.removeConnection=function(t){return this._removeElement(t,"connection")},L.prototype.getGraphics=function(t,e){return this._elementRegistry.getGraphics(t,e)},L.prototype._changeViewbox=function(t){this._eventBus.fire("canvas.viewbox.changing"),t.apply(this),this._cachedViewbox=null,this._viewboxChanged()},L.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},L.prototype.viewbox=function(t){if(void 0===t&&this._cachedViewbox)return this._cachedViewbox;var e,n,i,r,a,s,c,l=this._viewport,u=this.getSize();return t?(this._changeViewbox((function(){a=Math.min(u.width/t.width,u.height/t.height);var e=this._svg.createSVGMatrix().scale(a).translate(-t.x,-t.y);Object(o["k"])(l,e)})),t):(i=this._rootElement?this.getActiveLayer():null,e=i&&i.getBBox()||{},r=Object(o["k"])(l),n=r?r.matrix:Object(o["g"])(),a=k(n.a,1e3),s=k(-n.e||0,1e3),c=k(-n.f||0,1e3),t=this._cachedViewbox={x:s?s/a:0,y:c?c/a:0,width:u.width/a,height:u.height/a,scale:a,inner:{width:e.width||0,height:e.height||0,x:e.x||0,y:e.y||0},outer:u},t)},L.prototype.scroll=function(t){var e=this._viewport,n=e.getCTM();return t&&this._changeViewbox((function(){t=Object(i["a"])({dx:0,dy:0},t||{}),n=this._svg.createSVGMatrix().translate(t.dx,t.dy).multiply(n),N(e,n)})),{x:n.e,y:n.f}},L.prototype.scrollToElement=function(t,e){var n=100;"string"===typeof t&&(t=this._elementRegistry.get(t));var i=this.findRoot(t);i!==this.getRootElement()&&this.setRootElement(i),e||(e={}),"number"===typeof e&&(n=e),e={top:e.top||n,right:e.right||n,bottom:e.bottom||n,left:e.left||n};var r,o,a=Object(b["b"])(t),s=Object(A["b"])(a),c=this.viewbox(),l=this.zoom();c.y+=e.top/l,c.x+=e.left/l,c.width-=(e.right+e.left)/l,c.height-=(e.bottom+e.top)/l;var u=Object(A["b"])(c),h=a.width=0&&o.y>=0&&o.x+o.width<=r.width&&o.y+o.height<=r.height&&!t?n={x:0,y:0,width:Math.max(o.width+o.x,r.width),height:Math.max(o.height+o.y,r.height)}:(e=Math.min(1,r.width/o.width,r.height/o.height),n={x:o.x+(t?o.width/2-r.width/e/2:0),y:o.y+(t?o.height/2-r.height/e/2:0),width:r.width/e,height:r.height/e}),this.viewbox(n),this.viewbox(!1).scale},L.prototype._setZoom=function(t,e){var n,r,o,a,s,c=this._svg,l=this._viewport,u=c.createSVGMatrix(),h=c.createSVGPoint();o=l.getCTM();var p=o.a;return e?(n=Object(i["a"])(h,e),r=n.matrixTransform(o.inverse()),a=u.translate(r.x,r.y).scale(1/p*t).translate(-r.x,-r.y),s=o.multiply(a)):s=u.scale(t),N(this._viewport,s),s},L.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},L.prototype.getAbsoluteBBox=function(t){var e,n=this.viewbox();if(t.waypoints){var i=this.getGraphics(t);e=i.getBBox()}else e=t;var r=e.x*n.scale-n.x*n.scale,o=e.y*n.scale-n.y*n.scale,a=e.width*n.scale,s=e.height*n.scale;return{x:r,y:o,width:a,height:s}},L.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var B="data-element-id";function z(t){this._elements={},this._eventBus=t}z.$inject=["eventBus"],z.prototype.add=function(t,e,n){var i=t.id;this._validateId(i),Object(o["b"])(e,B,i),n&&Object(o["b"])(n,B,i),this._elements[i]={element:t,gfx:e,secondaryGfx:n}},z.prototype.remove=function(t){var e=this._elements,n=t.id||t,i=n&&e[n];i&&(Object(o["b"])(i.gfx,B,""),i.secondaryGfx&&Object(o["b"])(i.secondaryGfx,B,""),delete e[n])},z.prototype.updateId=function(t,e){this._validateId(e),"string"===typeof t&&(t=this.get(t)),this._eventBus.fire("element.updateId",{element:t,newId:e});var n=this.getGraphics(t),i=this.getGraphics(t,!0);this.remove(t),t.id=e,this.add(t,n,i)},z.prototype.updateGraphics=function(t,e,n){var i=t.id||t,r=this._elements[i];return n?r.secondaryGfx=e:r.gfx=e,e&&Object(o["b"])(e,B,i),e},z.prototype.get=function(t){var e;e="string"===typeof t?t:t&&Object(o["b"])(t,B);var n=this._elements[e];return n&&n.element},z.prototype.filter=function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(n)})),e},z.prototype.find=function(t){for(var e=this._elements,n=Object.keys(e),i=0;i or , got "+t);n=r[1],i=r[0]}return t=(i?i+":":"")+n,{name:t,prefix:i,localName:n}}function lt(t){this.ns=t,this.name=t.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function ut(t,e){this.packageMap={},this.typeMap={},this.packages=[],this.properties=e,Object(i["i"])(t,Object(i["b"])(this.registerPackage,this))}function ht(t,e,n){var i=e[n];if(i in t)throw new Error("package with "+n+" <"+i+"> already defined")}function pt(t){this.model=t}function dt(t){return"undefined"===typeof t}function ft(t,e,n){Object.defineProperty(t,e.name,{enumerable:!e.isReference,writable:!0,value:n,configurable:!0})}function gt(t){this.properties=new pt(this),this.factory=new nt(this,this.properties),this.registry=new ut(t,this.properties),this.typeCache={}}lt.prototype.build=function(){return Object(i["x"])(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},lt.prototype.addProperty=function(t,e,n){"boolean"===typeof e&&(n=e,e=void 0),this.addNamedProperty(t,!1!==n);var i=this.properties;void 0!==e?i.splice(e,0,t):i.push(t)},lt.prototype.replaceProperty=function(t,e,n){var i=t.ns,r=this.properties,o=this.propertiesByName,a=t.name!==e.name;if(t.isId){if(!e.isId)throw new Error("property <"+e.ns.name+"> must be id property to refine <"+t.ns.name+">");this.setIdProperty(e,!1)}if(t.isBody){if(!e.isBody)throw new Error("property <"+e.ns.name+"> must be body property to refine <"+t.ns.name+">");this.setBodyProperty(e,!1)}var s=r.indexOf(t);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(e,n?void 0:s,a),o[i.name]=o[i.localName]=e},lt.prototype.redefineProperty=function(t,e,n){var i=t.ns.prefix,r=e.split("#"),o=ct(r[0],i),a=ct(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,t,n),delete t.redefines},lt.prototype.addNamedProperty=function(t,e){var n=t.ns,i=this.propertiesByName;e&&(this.assertNotDefined(t,n.name),this.assertNotDefined(t,n.localName)),i[n.name]=i[n.localName]=t},lt.prototype.removeNamedProperty=function(t){var e=t.ns,n=this.propertiesByName;delete n[e.name],delete n[e.localName]},lt.prototype.setBodyProperty=function(t,e){if(e&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+t.ns.name+">)");this.bodyProperty=t},lt.prototype.setIdProperty=function(t,e){if(e&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+t.ns.name+">)");this.idProperty=t},lt.prototype.assertNotDefined=function(t,e){var n=t.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+t.definedBy.ns.name+"#"+t.ns.name+"> not allowed without redefines")},lt.prototype.hasProperty=function(t){return this.propertiesByName[t]},lt.prototype.addTrait=function(t,e){var n=this.allTypesByName,r=this.allTypes,o=t.name;o in n||(Object(i["i"])(t.properties,Object(i["b"])((function(n){n=Object(i["a"])({},n,{name:n.ns.localName,inherited:e}),Object.defineProperty(n,"definedBy",{value:t});var r=n.replaces,o=n.redefines;r||o?this.redefineProperty(n,r||o,r):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),r.push(t),n[o]=t)},ut.prototype.getPackage=function(t){return this.packageMap[t]},ut.prototype.getPackages=function(){return this.packages},ut.prototype.registerPackage=function(t){t=Object(i["a"])({},t);var e=this.packageMap;ht(e,t,"prefix"),ht(e,t,"uri"),Object(i["i"])(t.types,Object(i["b"])((function(e){this.registerType(e,t)}),this)),e[t.uri]=e[t.prefix]=t,this.packages.push(t)},ut.prototype.registerType=function(t,e){t=Object(i["a"])({},t,{superClass:(t.superClass||[]).slice(),extends:(t.extends||[]).slice(),properties:(t.properties||[]).slice(),meta:Object(i["a"])(t.meta||{})});var n=ct(t.name,e.prefix),r=n.name,o={};Object(i["i"])(t.properties,Object(i["b"])((function(t){var e=ct(t.name,n.prefix),r=e.name;at(t.type)||(t.type=ct(t.type,e.prefix).name),Object(i["a"])(t,{ns:e,name:r}),o[r]=t}),this)),Object(i["a"])(t,{ns:n,name:r,propertiesByName:o}),Object(i["i"])(t.extends,Object(i["b"])((function(t){var e=this.typeMap[t];e.traits=e.traits||[],e.traits.push(r)}),this)),this.definePackage(t,e),this.typeMap[r]=t},ut.prototype.mapTypes=function(t,e,n){var r=at(t.name)?{name:t.name}:this.typeMap[t.name],o=this;function a(t){return s(t,!0)}function s(n,i){var r=ct(n,at(n)?"":t.prefix);o.mapTypes(r,e,i)}if(!r)throw new Error("unknown type <"+t.name+">");Object(i["i"])(r.superClass,n?a:s),e(r,!n),Object(i["i"])(r.traits,a)},ut.prototype.getEffectiveDescriptor=function(t){var e=ct(t),n=new lt(e);this.mapTypes(e,(function(t,e){n.addTrait(t,e)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},ut.prototype.definePackage=function(t,e){this.properties.define(t,"$pkg",{value:e})},pt.prototype.set=function(t,e,n){var i=this.model.getPropertyDescriptor(t,e),r=i&&i.name;dt(n)?i?delete t[r]:delete t.$attrs[e]:i?r in t?t[r]=n:ft(t,i,n):t.$attrs[e]=n},pt.prototype.get=function(t,e){var n=this.model.getPropertyDescriptor(t,e);if(!n)return t.$attrs[e];var i=n.name;return!t[i]&&n.isMany&&ft(t,n,[]),t[i]},pt.prototype.define=function(t,e,n){if(!n.writable){var r=n.value;n=Object(i["a"])({},n,{get:function(){return r}}),delete n.value}Object.defineProperty(t,e,n)},pt.prototype.defineDescriptor=function(t,e){this.define(t,"$descriptor",{value:e})},pt.prototype.defineModel=function(t,e){this.define(t,"$model",{value:e})},gt.prototype.create=function(t,e){var n=this.getType(t);if(!n)throw new Error("unknown type <"+t+">");return new n(e)},gt.prototype.getType=function(t){var e=this.typeCache,n=Object(i["r"])(t)?t:t.ns.name,r=e[n];return r||(t=this.registry.getEffectiveDescriptor(n),r=e[n]=this.factory.createType(t)),r},gt.prototype.createAny=function(t,e,n){var r=ct(t),o={$type:t,$instanceOf:function(t){return t===this.$type}},a={name:t,isGeneric:!0,ns:{prefix:r.prefix,localName:r.localName,uri:e}};return this.properties.defineDescriptor(o,a),this.properties.defineModel(o,this),this.properties.define(o,"$parent",{enumerable:!1,writable:!0}),this.properties.define(o,"$instanceOf",{enumerable:!1,writable:!0}),Object(i["i"])(n,(function(t,e){Object(i["q"])(t)&&void 0!==t.value?o[t.name]=t.value:o[e]=t})),o},gt.prototype.getPackage=function(t){return this.registry.getPackage(t)},gt.prototype.getPackages=function(){return this.registry.getPackages()},gt.prototype.getElementDescriptor=function(t){return t.$descriptor},gt.prototype.hasType=function(t,e){void 0===e&&(e=t,t=this);var n=t.$model.getElementDescriptor(t);return e in n.allTypesByName},gt.prototype.getPropertyDescriptor=function(t,e){return this.getElementDescriptor(t).propertiesByName[e]},gt.prototype.getTypeDescriptor=function(t){return this.registry.typeMap[t]};var mt=String.fromCharCode,vt=Object.prototype.hasOwnProperty,yt=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,_t={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function bt(t,e,n,i){return i?vt.call(_t,i)?_t[i]:"&"+i+";":mt(e||parseInt(n,16))}function xt(t){return t.length>3&&-1!==t.indexOf("&")?t.replace(yt,bt):t}Object.keys(_t).forEach((function(t){_t[t.toUpperCase()]=_t[t]}));var wt="http://www.w3.org/2001/XMLSchema-instance",Ot="xsi",St="xsi:type",Et="non-whitespace outside of root node";function At(t){return new Error(t)}function kt(t){return"missing namespace for prefix <"+t+">"}function Tt(t){return{get:t,enumerable:!0}}function jt(t){var e,n={};for(e in t)n[e]=t[e];return n}function Mt(t){return t+"$uri"}function Ct(t){var e,n,i={};for(e in t)n=t[e],i[n]=n,i[Mt(n)]=e;return i}function Pt(){return{line:0,column:0}}function It(t){throw t}function Dt(t){if(!this)return new Dt(t);var e,n,i,r,o,a,s,c,l,u=t&&t["proxy"],h=It,p=Pt,d=!1,f=!1,g=null,m=!1;function v(t){t instanceof Error||(t=At(t)),g=t,h(t,p)}function y(t){o&&(t instanceof Error||(t=At(t)),o(t,p))}function _(t){var o,h,g,_,b,x,w,O,S,E,A,k=f?[]:null,T=f?Ct(l):null,j=[],M=0,C=!1,P=!1,I=0,D=0,R="",L=0;function N(){if(null!==A)return A;var t,e,n,i,r,o,a,s,c,u,h,p=f&&T["xmlns"],g=f&&d?[]:null,m=L,v=R,_=v.length,b={},x={};t:for(;m<_;m++)if(c=!1,u=v.charCodeAt(m),!(32===u||u<14&&u>8)){for((u<65||u>122||u>90&&u<97)&&95!==u&&58!==u&&(y("illegal first char attribute name"),c=!0),h=m+1;h<_;h++)if(u=v.charCodeAt(h),!(u>96&&u<123||u>64&&u<91||u>47&&u<59||46===u||45===u||95===u)){if(32===u||u<14&&u>8){y("missing attribute value"),m=h;continue t}if(61===u)break;y("illegal attribute name char"),c=!0}if(s=v.substring(m,h),"xmlns:xmlns"===s&&(y("illegal declaration of xmlns"),c=!0),u=v.charCodeAt(h+1),34===u)h=v.indexOf('"',m=h+2),-1===h&&(h=v.indexOf("'",m),-1!==h&&(y("attribute value quote missmatch"),c=!0));else if(39===u)h=v.indexOf("'",m=h+2),-1===h&&(h=v.indexOf('"',m),-1!==h&&(y("attribute value quote missmatch"),c=!0));else for(y("missing attribute value quotes"),c=!0,h+=1;h<_;h++)if(u=v.charCodeAt(h+1),32===u||u<14&&u>8)break;for(-1===h&&(y("missing closing quotes"),h=_,c=!0),c||(o=v.substring(m,h)),m=h;h+1<_;h++){if(u=v.charCodeAt(h+1),32===u||u<14&&u>8)break;m===h&&(y("illegal character after attribute end"),c=!0)}if(m=h+1,!c)if(s in x)y("attribute <"+s+"> already defined");else if(x[s]=!0,f)if(d){if(r="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null,null!==r){if(t=xt(o),e=Mt(r),a=l[t],!a){if("xmlns"===r||e in T&&T[e]!==t)do{a="ns"+M++}while("undefined"!==typeof T[a]);else a=r;l[t]=a}T[r]!==a&&(i||(T=jt(T),i=!0),T[r]=a,"xmlns"===r&&(T[Mt(a)]=t,p=a),T[e]=t),b[s]=o;continue}g.push(s,o)}else u=s.indexOf(":"),-1!==u?(n=T[s.substring(0,u)])?(s=p===n?s.substr(u+1):n+s.substr(u),s===St&&(u=o.indexOf(":"),-1!==u?(n=o.substring(0,u),n=T[n]||n,o=n+o.substring(u)):o=p+":"+o),b[s]=o):y(kt(s.substring(0,u))):b[s]=o;else b[s]=o}if(d)for(m=0,_=g.length;m<_;m++){if(s=g[m++],o=g[m],u=s.indexOf(":"),-1!==u){if(!(n=T[s.substring(0,u)])){y(kt(s.substring(0,u)));continue}s=p===n?s.substr(u+1):n+s.substr(u),s===St&&(u=o.indexOf(":"),-1!==u?(n=o.substring(0,u),n=T[n]||n,o=n+o.substring(u)):o=p+":"+o)}b[s]=o}return A=b}function B(){var e,n,i=/(\r\n|\r|\n)/g,r=0,o=0,a=0,s=D;while(I>=a){if(e=i.exec(t),!e)break;if(s=e[0].length+e.index,s>I)break;r+=1,a=s}return-1==I?(o=s,n=t.substring(D)):0===D?n=t.substring(D,I):(o=I-a,n=-1==D?t.substring(I):t.substring(I,D+1)),{data:n,line:r,column:o}}p=B,u&&(E=Object.create({},{name:Tt((function(){return O})),originalName:Tt((function(){return S})),attrs:Tt(N),ns:Tt((function(){return T}))}));while(-1!==D){if(I=60===t.charCodeAt(D)?D:t.indexOf("<",D),-1===I)return j.length?v("unexpected end of file"):0===D?v("missing start tag"):void(D",I),-1===D)return v("unclosed cdata");if(r&&(r(t.substring(I+9,D),p),m))return;D+=3;continue}if(45===_&&45===t.charCodeAt(I+3)){if(D=t.indexOf("--\x3e",I),-1===D)return v("unclosed comment");if(a&&(a(t.substring(I+4,D),xt,p),m))return;D+=3;continue}}if(63!==b){for(h=I+1;;h++){if(x=t.charCodeAt(h),isNaN(x))return D=-1,v("unclosed tag");if(34===x)_=t.indexOf('"',h+1),h=-1!==_?_:h;else if(39===x)_=t.indexOf("'",h+1),h=-1!==_?_:h;else if(62===x){D=h;break}}if(33!==b){if(A={},47===b){if(C=!1,P=!0,!j.length)return v("missing open tag");if(h=O=j.pop(),_=I+2+h.length,t.substring(I+2,_)!==h)return v("closing tag mismatch");for(;_8&&b<14))return v("close tag")}else{if(47===t.charCodeAt(D-1)?(h=O=t.substring(I+1,D-1),C=!0,P=!0):(h=O=t.substring(I+1,D),C=!0,P=!1),!(b>96&&b<123||b>64&&b<91||95===b||58===b))return v("illegal first char nodeName");for(_=1,g=h.length;_96&&b<123||b>64&&b<91||b>47&&b<59||45===b||95===b||46==b)){if(32===b||b<14&&b>8){O=h.substring(0,_),A=null;break}return v("invalid nodeName")}P||j.push(O)}if(f){if(o=T,C&&(P||k.push(o),null===A&&(d=-1!==h.indexOf("xmlns",_))&&(L=_,R=h,N(),d=!1)),S=O,b=O.indexOf(":"),-1!==b){if(w=T[O.substring(0,b)],!w)return v("missing namespace on <"+S+">");O=O.substr(b+1)}else w=T["xmlns"];w&&(O=w+":"+O)}if(C&&(L=_,R=h,n&&(u?n(E,xt,P,p):n(O,N,xt,P,p),m)))return;if(P){if(i&&(i(u?E:O,xt,C,p),m))return;f&&(T=C?o:k.pop())}D+=1}else{if(c&&(c(t.substring(I,D+1),xt,p),m))return;D+=1}}else{if(D=t.indexOf("?>",I),-1===D)return v("unclosed question");if(s&&(s(t.substring(I,D+2),p),m))return;D+=2}}}this["on"]=function(t,l){if("function"!==typeof l)throw At("required args ");switch(t){case"openTag":n=l;break;case"text":e=l;break;case"closeTag":i=l;break;case"error":h=l;break;case"warn":o=l;break;case"cdata":r=l;break;case"attention":c=l;break;case"question":s=l;break;case"comment":a=l;break;default:throw At("unsupported event: "+t)}return this},this["ns"]=function(t){if("undefined"===typeof t&&(t={}),"object"!==typeof t)throw At("required args ");var e,n={};for(e in t)n[e]=t[e];return n[wt]=Ot,f=!0,l=n,this},this["parse"]=function(t){if("string"!==typeof t)throw At("required args ");return g=null,_(t),p=Pt,m=!1,g},this["stop"]=function(){m=!0}}function Rt(t){return t.xml&&"lowerCase"===t.xml.tagAlias}var Lt={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Nt="xsi:type";function Bt(t){return t.xml&&t.xml.serialize}function zt(t){return Bt(t)===Nt}function Ft(t){return"property"===Bt(t)}function Vt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ht(t,e){return Rt(e)?t.prefix+":"+Vt(t.localName):t.name}function Gt(t,e){var n=t.name,i=t.localName,r=e.xml&&e.xml.typePrefix;return r&&0===i.indexOf(r)?t.prefix+":"+i.slice(r.length):n}function qt(t,e){var n=ct(t),i=e.getPackage(n.prefix);return Gt(n,i)}function Wt(t){return new Error(t)}function Ut(t){return t.$descriptor}function $t(t){Object(i["a"])(this,t),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Wt("expected element");var e,n=this.elementsById,i=Ut(t),r=i.idProperty;if(r&&(e=t.get(r.name),e)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(e))throw new Error("illegal ID <"+e+">");if(n[e])throw Wt("duplicate ID <"+e+">");n[e]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Yt(){}function Zt(){}function Xt(){}function Kt(t,e){this.property=t,this.context=e}function Qt(t,e){this.element=e,this.propertyDesc=t}function Jt(){}function te(t,e,n){this.model=t,this.type=t.getType(e),this.context=n}function ee(t,e,n){te.call(this,t,e,n)}function ne(t,e,n){this.model=t,this.context=n}function ie(t){t instanceof gt&&(t={model:t}),Object(i["a"])(this,{lax:!1},t)}function re(){var t=[];return Object.defineProperty(t,"peek",{value:function(){return this[this.length-1]}}),t}Yt.prototype.handleEnd=function(){},Yt.prototype.handleText=function(){},Yt.prototype.handleNode=function(){},Zt.prototype=Object.create(Yt.prototype),Zt.prototype.handleNode=function(){return this},Xt.prototype=Object.create(Yt.prototype),Xt.prototype.handleText=function(t){this.body=(this.body||"")+t},Kt.prototype=Object.create(Xt.prototype),Kt.prototype.handleNode=function(t){if(this.element)throw Wt("expected no sub nodes");return this.element=this.createReference(t),this},Kt.prototype.handleEnd=function(){this.element.id=this.body},Kt.prototype.createReference=function(t){return{property:this.property.ns.name,id:""}},Qt.prototype=Object.create(Xt.prototype),Qt.prototype.handleEnd=function(){var t=this.body||"",e=this.element,n=this.propertyDesc;t=ot(n.type,t),n.isMany?e.get(n.name).push(t):e.set(n.name,t)},Jt.prototype=Object.create(Xt.prototype),Jt.prototype.handleNode=function(t){var e=this,n=this.element;return n?e=this.handleChild(t):(n=this.element=this.createElement(t),this.context.addElement(n)),e},te.prototype=Object.create(Jt.prototype),te.prototype.addReference=function(t){this.context.addReference(t)},te.prototype.handleText=function(t){var e=this.element,n=Ut(e),i=n.bodyProperty;if(!i)throw Wt("unexpected body text <"+t+">");Xt.prototype.handleText.call(this,t)},te.prototype.handleEnd=function(){var t=this.body,e=this.element,n=Ut(e),i=n.bodyProperty;i&&void 0!==t&&(t=ot(i.type,t),e.set(i.name,t))},te.prototype.createElement=function(t){var e,n=t.attributes,r=this.type,o=Ut(r),a=this.context,s=new r({}),c=this.model;return Object(i["i"])(n,(function(t,n){var r,l=o.propertiesByName[n];l&&l.isReference?l.isMany?(r=t.split(" "),Object(i["i"])(r,(function(t){a.addReference({element:s,property:l.ns.name,id:t})}))):a.addReference({element:s,property:l.ns.name,id:t}):(l?t=ot(l.type,t):"xmlns"!==n&&(e=ct(n,o.ns.prefix),c.getPackage(e.prefix)&&a.addWarning({message:"unknown attribute <"+n+">",element:s,property:n,value:t})),s.set(n,t))})),s},te.prototype.getPropertyForNode=function(t){var e,n,r=t.name,o=ct(r),a=this.type,s=this.model,c=Ut(a),l=o.name,u=c.propertiesByName[l];if(u&&!u.isAttr)return zt(u)&&(e=t.attributes[Nt],e)?(e=qt(e,s),n=s.getType(e),Object(i["a"])({},u,{effectiveType:Ut(n).name})):u;var h=s.getPackage(o.prefix);if(h){if(e=Ht(o,h),n=s.getType(e),u=Object(i["f"])(c.properties,(function(t){return!t.isVirtual&&!t.isReference&&!t.isAttribute&&n.hasType(t.type)})),u)return Object(i["a"])({},u,{effectiveType:Ut(n).name})}else if(u=Object(i["f"])(c.properties,(function(t){return!t.isReference&&!t.isAttribute&&"Element"===t.type})),u)return u;throw Wt("unrecognized element <"+o.name+">")},te.prototype.toString=function(){return"ElementDescriptor["+Ut(this.type).name+"]"},te.prototype.valueHandler=function(t,e){return new Qt(t,e)},te.prototype.referenceHandler=function(t){return new Kt(t,this.context)},te.prototype.handler=function(t){return"Element"===t?new ne(this.model,t,this.context):new te(this.model,t,this.context)},te.prototype.handleChild=function(t){var e,n,r,o;if(e=this.getPropertyForNode(t),r=this.element,n=e.effectiveType||e.type,st(n))return this.valueHandler(e,r);o=e.isReference?this.referenceHandler(e).handleNode(t):this.handler(n).handleNode(t);var a=o.element;return void 0!==a&&(e.isMany?r.get(e.name).push(a):r.set(e.name,a),e.isReference?(Object(i["a"])(a,{element:r}),this.context.addReference(a)):a.$parent=r),o},ee.prototype=Object.create(te.prototype),ee.prototype.createElement=function(t){var e=t.name,n=ct(e),i=this.model,r=this.type,o=i.getPackage(n.prefix),a=o&&Ht(n,o)||e;if(!r.hasType(a))throw Wt("unexpected element <"+t.originalName+">");return te.prototype.createElement.call(this,t)},ne.prototype=Object.create(Jt.prototype),ne.prototype.createElement=function(t){var e=t.name,n=ct(e),i=n.prefix,r=t.ns[i+"$uri"],o=t.attributes;return this.model.createAny(e,r,o)},ne.prototype.handleChild=function(t){var e,n=new ne(this.model,"Element",this.context).handleNode(t),i=this.element,r=n.element;return void 0!==r&&(e=i.$children=i.$children||[],e.push(r),r.$parent=i),n},ne.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},ie.prototype.fromXML=function(t,e,n){var r=e.rootHandler;e instanceof te?(r=e,e={}):"string"===typeof e?(r=this.handler(e),e={}):"string"===typeof r&&(r=this.handler(r));var o=this.model,a=this.lax,s=new $t(Object(i["a"])({},e,{rootHandler:r})),c=new Dt({proxy:!0}),l=re();function u(t,e,n){var i=e(),r=i.line,o=i.column,a=i.data;"<"===a.charAt(0)&&-1!==a.indexOf(" ")&&(a=a.slice(0,a.indexOf(" "))+">");var c="unparsable content "+(a?a+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+t.message;if(n)return s.addWarning({message:c,error:t}),!0;throw Wt(c)}function h(t,e){return u(t,e,!0)}function p(){var t,e,n=s.elementsById,i=s.references;for(t=0;e=i[t];t++){var r=e.element,o=n[e.id],a=Ut(r).propertiesByName[e.property];if(o||s.addWarning({message:"unresolved reference <"+e.id+">",element:e.element,property:e.property,value:e.id}),a.isMany){var c=r.get(a.name),l=c.indexOf(e);-1===l&&(l=c.length),o?c[l]=o:c.splice(l,1)}else r.set(a.name,o)}}function d(){l.pop().handleEnd()}r.context=s,l.push(r);var f=/^<\?xml /i,g=/ encoding="([^"]+)"/i,m=/^utf-8$/i;function v(t){if(f.test(t)){var e=g.exec(t),n=e&&e[1];n&&!m.test(n)&&s.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}}function y(t,e){var n=l.peek();try{l.push(n.handleNode(t))}catch(i){u(i,e,a)&&l.push(new Zt)}}function _(t,e){try{l.peek().handleText(t)}catch(n){h(n,e)}}function b(t,e){t.trim()&&_(t,e)}var x=o.getPackages().reduce((function(t,e){return t[e.uri]=e.prefix,t}),{"http://www.w3.org/XML/1998/namespace":"xml"});return c.ns(x).on("openTag",(function(t,e,n,i){var r=t.attrs||{},o=Object.keys(r).reduce((function(t,n){var i=e(r[n]);return t[n]=i,t}),{}),a={name:t.name,originalName:t.originalName,attributes:o,ns:t.ns};y(a,i)})).on("question",v).on("closeTag",d).on("cdata",_).on("text",(function(t,e,n){b(e(t),n)})).on("error",u).on("warn",h),new Promise((function(e,n){var i;try{c.parse(t),p()}catch(h){i=h}var o=r.element;i||o||(i=Wt("failed to parse document as <"+r.type.$descriptor.name+">"));var a=s.warnings,l=s.references,u=s.elementsById;return i?(i.warnings=a,n(i)):e({rootElement:o,elementsById:u,references:l,warnings:a})}))},ie.prototype.handler=function(t){return new ee(this.model,t)};var oe='\n',ae=/<|>|'|"|&|\n\r|\n/g,se=/<|>|&/g;function ce(t){var e={},n={},i={},r=[],o=[];this.byUri=function(e){return n[e]||t&&t.byUri(e)},this.add=function(t,e){n[t.uri]=t,e?r.push(t):o.push(t),this.mapPrefix(t.prefix,t.uri)},this.uriByPrefix=function(t){return e[t||"xmlns"]},this.mapPrefix=function(t,n){e[t||"xmlns"]=n},this.getNSKey=function(t){return void 0!==t.prefix?t.uri+"|"+t.prefix:t.uri},this.logUsed=function(e){var n=e.uri,r=this.getNSKey(e);i[r]=this.byUri(n),t&&t.logUsed(e)},this.getUsed=function(t){function e(t){var e=n.getNSKey(t);return i[e]}var n=this,a=[].concat(r,o);return a.filter(e)}}function le(t){return t.charAt(0).toLowerCase()+t.slice(1)}function ue(t,e){return Rt(e)?le(t):t}function he(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function pe(t){return Object(i["r"])(t)?t:(t.prefix?t.prefix+":":"")+t.localName}function de(t){return t.getUsed().filter((function(t){return"xml"!==t.prefix})).map((function(t){var e="xmlns"+(t.prefix?":"+t.prefix:"");return{name:e,value:t.uri}}))}function fe(t,e){return e.isGeneric?Object(i["a"])({localName:e.ns.localName},t):Object(i["a"])({localName:ue(e.ns.localName,e.$pkg)},t)}function ge(t,e){return Object(i["a"])({localName:e.ns.localName},t)}function me(t){var e=t.$descriptor;return Object(i["e"])(e.properties,(function(e){var n=e.name;if(e.isVirtual)return!1;if(!Object(i["k"])(t,n))return!1;var r=t[n];return r!==e.default&&(null!==r&&(!e.isMany||r.length))}))}var ve={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},ye={"<":"lt",">":"gt","&":"amp"};function _e(t,e,n){return t=Object(i["r"])(t)?t:""+t,t.replace(e,(function(t){return"&"+n[t]+";"}))}function be(t){return _e(t,ae,ve)}function xe(t){return _e(t,se,ye)}function we(t){return Object(i["e"])(t,(function(t){return t.isAttr}))}function Oe(t){return Object(i["e"])(t,(function(t){return!t.isAttr}))}function Se(t){this.tagName=t}function Ee(){}function Ae(t){this.tagName=t}function ke(t,e){this.body=[],this.attrs=[],this.parent=t,this.propertyDescriptor=e}function Te(t,e){ke.call(this,t,e)}function je(){this.value="",this.write=function(t){this.value+=t}}function Me(t,e){var n=[""];this.append=function(e){return t.write(e),this},this.appendNewLine=function(){return e&&t.write("\n"),this},this.appendIndent=function(){return e&&t.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function Ce(t){function e(e,n){var i=n||new je,r=new Me(i,t.format);if(t.preamble&&r.append(oe),(new ke).build(e).serializeTo(r),!n)return i.value}return t=Object(i["a"])({format:!1,preamble:!0},t||{}),{toXML:e}}function Pe(t,e){gt.call(this,t,e)}Se.prototype.build=function(t){return this.element=t,this},Se.prototype.serializeTo=function(t){t.appendIndent().append("<"+this.tagName+">"+this.element.id+"").appendNewLine()},Ee.prototype.serializeValue=Ee.prototype.serializeTo=function(t){t.append(this.escape?xe(this.value):this.value)},Ee.prototype.build=function(t,e){return this.value=e,"String"===t.type&&-1!==e.search(se)&&(this.escape=!0),this},he(Ae,Ee),Ae.prototype.serializeTo=function(t){t.appendIndent().append("<"+this.tagName+">"),this.serializeValue(t),t.append("").appendNewLine()},ke.prototype.build=function(t){this.element=t;var e,n,i=t.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return e=o?this.parseGeneric(t):this.parseNsAttributes(t),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o||(n=me(t),this.parseAttributes(we(n)),this.parseContainments(Oe(n))),this.parseGenericAttributes(t,e),this},ke.prototype.nsTagName=function(t){var e=this.logNamespaceUsed(t.ns);return fe(e,t)},ke.prototype.nsPropertyTagName=function(t){var e=this.logNamespaceUsed(t.ns);return ge(e,t)},ke.prototype.isLocalNs=function(t){return t.uri===this.ns.uri},ke.prototype.nsAttributeName=function(t){var e;if(e=Object(i["r"])(t)?ct(t):t.ns,t.inherited)return{localName:e.localName};var n=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:e.localName}:Object(i["a"])({localName:e.localName},n)},ke.prototype.parseGeneric=function(t){var e=this,n=this.body,r=[];return Object(i["i"])(t,(function(o,a){var s;"$body"===a?n.push((new Ee).build({type:"String"},o)):"$children"===a?Object(i["i"])(o,(function(t){n.push(new ke(e).build(t))})):0!==a.indexOf("$")&&(s=e.parseNsAttribute(t,a,o),s&&r.push({name:a,value:o}))})),r},ke.prototype.parseNsAttribute=function(t,e,n){var i,r=t.$model,o=ct(e);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:e,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},ke.prototype.parseNsAttributes=function(t,e){var n=this,r=t.$attrs,o=[];return Object(i["i"])(r,(function(e,i){var r=n.parseNsAttribute(t,i,e);r&&o.push(r)})),o},ke.prototype.parseGenericAttributes=function(t,e){var n=this;Object(i["i"])(e,(function(e){if(e.name!==Nt)try{n.addAttribute(n.nsAttributeName(e.name),e.value)}catch(i){console.warn("missing namespace information for ",e.name,"=",e.value,"on",t,i)}}))},ke.prototype.parseContainments=function(t){var e=this,n=this.body,r=this.element;Object(i["i"])(t,(function(t){var o=r.get(t.name),a=t.isReference,s=t.isMany;if(s||(o=[o]),t.isBody)n.push((new Ee).build(t,o[0]));else if(st(t.type))Object(i["i"])(o,(function(i){n.push(new Ae(e.addTagName(e.nsPropertyTagName(t))).build(t,i))}));else if(a)Object(i["i"])(o,(function(i){n.push(new Se(e.addTagName(e.nsPropertyTagName(t))).build(i))}));else{var c=zt(t),l=Ft(t);Object(i["i"])(o,(function(i){var r;r=c?new Te(e,t):l?new ke(e,t):new ke(e),n.push(r.build(i))}))}}))},ke.prototype.getNamespaces=function(t){var e,n=this.namespaces,i=this.parent;return n||(e=i&&i.getNamespaces(),t||!e?this.namespaces=n=new ce(e):n=e),n},ke.prototype.logNamespace=function(t,e,n){var i=this.getNamespaces(n),r=t.uri,o=t.prefix,a=i.byUri(r);return a&&!n||i.add(t,e),i.mapPrefix(o,r),t},ke.prototype.logNamespaceUsed=function(t,e){var n,i,r,o=this.element,a=o.$model,s=this.getNamespaces(e),c=t.prefix,l=t.uri;if(!c&&!l)return{localName:t.localName};if(r=Lt[c]||a&&(a.getPackage(c)||{}).uri,l=l||r||s.uriByPrefix(c),!l)throw new Error("no namespace uri given for prefix <"+c+">");if(t=s.byUri(l),!t){n=c,i=1;while(s.uriByPrefix(n))n=c+"_"+i++;t=this.logNamespace({prefix:n,uri:l},r===l)}return c&&s.mapPrefix(c,l),t},ke.prototype.parseAttributes=function(t){var e=this,n=this.element;Object(i["i"])(t,(function(t){var r=n.get(t.name);if(t.isReference)if(t.isMany){var o=[];Object(i["i"])(r,(function(t){o.push(t.id)})),r=o.join(" ")}else r=r.id;e.addAttribute(e.nsAttributeName(t),r)}))},ke.prototype.addTagName=function(t){var e=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(e),pe(t)},ke.prototype.addAttribute=function(t,e){var n=this.attrs;Object(i["r"])(e)&&(e=be(e)),n.push({name:t,value:e})},ke.prototype.serializeAttributes=function(t){var e=this.attrs,n=this.namespaces;n&&(e=de(n).concat(e)),Object(i["i"])(e,(function(e){t.append(" ").append(pe(e.name)).append('="').append(e.value).append('"')}))},ke.prototype.serializeTo=function(t){var e=this.body[0],n=e&&e.constructor!==Ee;t.appendIndent().append("<"+this.tagName),this.serializeAttributes(t),t.append(e?">":" />"),e&&(n&&t.appendNewLine().indent(),Object(i["i"])(this.body,(function(e){e.serializeTo(t)})),n&&t.unindent().appendIndent(),t.append("")),t.appendNewLine()},he(Te,ke),Te.prototype.parseNsAttributes=function(t){var e=ke.prototype.parseNsAttributes.call(this,t),n=t.$descriptor;if(n.name===this.propertyDescriptor.type)return e;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=t.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Nt),(i.prefix?i.prefix+":":"")+o+n.ns.localName),e},Te.prototype.isLocalNs=function(t){return t.uri===(this.typeNs||this.ns).uri},Pe.prototype=Object.create(gt.prototype),Pe.prototype.fromXML=function(t,e,n){Object(i["r"])(e)||(n=e,e="bpmn:Definitions");var r=new ie(Object(i["a"])({model:this,lax:!0},n)),o=r.handler(e);return r.fromXML(t,o)},Pe.prototype.toXML=function(t,e){var n=new Ce(e);return new Promise((function(e,i){try{var r=n.toXML(t);return e({xml:r})}catch(o){return i(o)}}))};var Ie="BPMN20",De="http://www.omg.org/spec/BPMN/20100524/MODEL",Re="bpmn",Le=[],Ne=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],Be=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],ze={tagAlias:"lowerCase",typePrefix:"t"},Fe={name:Ie,uri:De,prefix:Re,associations:Le,types:Ne,enumerations:Be,xml:ze},Ve="BPMNDI",He="http://www.omg.org/spec/BPMN/20100524/DI",Ge="bpmndi",qe=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],We=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],Ue=[],$e={name:Ve,uri:He,prefix:Ge,types:qe,enumerations:We,associations:Ue},Ye="DC",Ze="http://www.omg.org/spec/DD/20100524/DC",Xe="dc",Ke=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],Qe=[],Je={name:Ye,uri:Ze,prefix:Xe,types:Ke,associations:Qe},tn="DI",en="http://www.omg.org/spec/DD/20100524/DI",nn="di",rn=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],on=[],an={tagAlias:"lowerCase"},sn={name:tn,uri:en,prefix:nn,types:rn,associations:on,xml:an},cn="bpmn.io colors for BPMN",ln="http://bpmn.io/schema/bpmn/biocolor/1.0",un="bioc",hn=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],pn=[],dn=[],fn={name:cn,uri:ln,prefix:un,types:hn,enumerations:pn,associations:dn},gn="BPMN in Color",mn="http://www.omg.org/spec/BPMN/non-normative/color/1.0",vn="color",yn=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],_n=[],bn=[],xn={name:gn,uri:mn,prefix:vn,types:yn,enumerations:_n,associations:bn},wn={bpmn:Fe,bpmndi:$e,dc:Je,di:sn,bioc:fn,color:xn};function On(t,e){var n=Object(i["a"])({},wn,t);return new Pe(n,e)}var Sn=On,En=n("3fb5"),An=n.n(En),kn=n("3e5e"),Tn=n("7d09");function jn(t,e){return t.$instanceOf(e)}function Mn(t){return Object(i["f"])(t.rootElements,(function(t){return jn(t,"bpmn:Process")||jn(t,"bpmn:Collaboration")}))}function Cn(t,e){var n={},r=[],o={};function a(t,e){return function(n){t(n,e)}}function s(t){n[t.id]=t}function c(t){return n[t.id]}function l(n,i){var r=n.gfx;if(r)throw new Error(e("already rendered {element}",{element:Object(kn["a"])(n)}));return t.element(n,o[n.id],i)}function u(e,n){return t.root(e,o[e.id],n)}function h(t,n){try{var i=o[t.id]&&l(t,n);return s(t),i}catch(r){p(r.message,{element:t,error:r}),console.error(e("failed to import {element}",{element:Object(kn["a"])(t)})),console.error(r)}}function p(e,n){t.error(e,n)}function d(t){var n=t.bpmnElement;n?o[n.id]?p(e("multiple DI elements defined for {element}",{element:Object(kn["a"])(n)}),{element:n}):(o[n.id]=t,Object(Tn["a"])(n)):p(e("no bpmnElement referenced in {element}",{element:Object(kn["a"])(t)}),{element:t})}function f(t){g(t.plane)}function g(t){d(t),Object(i["i"])(t.planeElement,m)}function m(t){d(t)}function v(t,n){var i=t.diagrams;if(n&&-1===i.indexOf(n))throw new Error(e("diagram not part of bpmn:Definitions"));if(!n&&i&&i.length&&(n=i[0]),!n)throw new Error(e("no diagram to display"));o={},f(n);var a=n.plane;if(!a)throw new Error(e("no plane for {element}",{element:Object(kn["a"])(n)}));var s=a.bpmnElement;if(!s){if(s=Mn(t),!s)throw new Error(e("no process or collaboration to display"));p(e("correcting missing bpmnElement on {plane} to {rootElement}",{plane:Object(kn["a"])(a),rootElement:Object(kn["a"])(s)})),a.bpmnElement=s,d(a)}var c=u(s,a);if(jn(s,"bpmn:Process")||jn(s,"bpmn:SubProcess"))_(s,c);else{if(!jn(s,"bpmn:Collaboration"))throw new Error(e("unsupported bpmnElement for {plane}: {rootElement}",{plane:Object(kn["a"])(a),rootElement:Object(kn["a"])(s)}));z(s,c),b(t.rootElements,c)}y(r)}function y(){var t;while(r.length)t=r.shift(),t()}function _(t,e){L(t,e),T(t.ioSpecification,e),k(t.artifacts,e),s(t)}function b(t,e){var n=Object(i["e"])(t,(function(t){return!c(t)&&jn(t,"bpmn:Process")&&t.laneSets}));n.forEach(a(_,e))}function x(t,e){h(t,e)}function w(t,e){Object(i["i"])(t,a(x,e))}function O(t,e){h(t,e)}function S(t,e){h(t,e)}function E(t,e){h(t,e)}function A(t,e){h(t,e)}function k(t,e){Object(i["i"])(t,(function(t){jn(t,"bpmn:Association")?r.push((function(){A(t,e)})):A(t,e)}))}function T(t,e){t&&(Object(i["i"])(t.dataInputs,a(S,e)),Object(i["i"])(t.dataOutputs,a(E,e)))}function j(t,e){L(t,e),k(t.artifacts,e)}function M(t,e){var n=h(t,e);jn(t,"bpmn:SubProcess")&&j(t,n||e),jn(t,"bpmn:Activity")&&T(t.ioSpecification,e),r.push((function(){Object(i["i"])(t.dataInputAssociations,a(O,e)),Object(i["i"])(t.dataOutputAssociations,a(O,e))}))}function C(t,e){h(t,e)}function P(t,e){h(t,e)}function I(t,e){r.push((function(){var n=h(t,e);t.childLaneSet&&D(t.childLaneSet,n||e),F(t)}))}function D(t,e){Object(i["i"])(t.lanes,a(I,e))}function R(t,e){Object(i["i"])(t,a(D,e))}function L(t,e){N(t.flowElements,e),t.laneSets&&R(t.laneSets,e)}function N(t,n){Object(i["i"])(t,(function(t){jn(t,"bpmn:SequenceFlow")?r.push((function(){C(t,n)})):jn(t,"bpmn:BoundaryEvent")?r.unshift((function(){M(t,n)})):jn(t,"bpmn:FlowNode")?M(t,n):jn(t,"bpmn:DataObject")||(jn(t,"bpmn:DataStoreReference")||jn(t,"bpmn:DataObjectReference")?P(t,n):p(e("unrecognized flowElement {element} in context {context}",{element:Object(kn["a"])(t),context:n?Object(kn["a"])(n.businessObject):"null"}),{element:t,context:n}))}))}function B(t,e){var n=h(t,e),i=t.processRef;i&&_(i,n||e)}function z(t,e){Object(i["i"])(t.participants,a(B,e)),k(t.artifacts,e),r.push((function(){w(t.messageFlows,e)}))}function F(t){Object(i["i"])(t.flowNodeRef,(function(e){var n=e.get("lanes");n&&n.push(t)}))}return{handleDeferred:y,handleDefinitions:v,handleSubProcess:j,registerDi:d}}var Pn=n("7a6b");function In(t,e,n){var r,o,a,s,c,l=[];function u(t,e){var n={root:function(t,e){return r.add(t,e)},element:function(t,e,n){return r.add(t,e,n)},error:function(t,e){l.push({message:t,context:e})}},o=new Cn(n,a);e=e||t.diagrams&&t.diagrams[0];var c=Dn(t,e);if(!c)throw new Error(a("no diagram to display"));Object(i["i"])(c,(function(e){o.handleDefinitions(t,e)}));var u=e.plane.bpmnElement.id;s.setRootElement(s.findRoot(u+"_plane")||s.findRoot(u))}return new Promise((function(i,h){try{return r=t.get("bpmnImporter"),o=t.get("eventBus"),a=t.get("translate"),s=t.get("canvas"),o.fire("import.render.start",{definitions:e}),u(e,n),o.fire("import.render.complete",{error:c,warnings:l}),i({warnings:l})}catch(p){return p.warnings=l,h(p)}}))}function Dn(t,e){if(e){var n,r=e.plane.bpmnElement,o=r;Object(Pn["c"])(r,"bpmn:Process")||Object(Pn["c"])(r,"bpmn:Collaboration")||(o=Ln(r)),n=Object(Pn["c"])(o,"bpmn:Collaboration")?o:Object(i["f"])(t.rootElements,(function(t){if(Object(Pn["c"])(t,"bpmn:Collaboration"))return Object(i["f"])(t.participants,(function(t){return t.processRef===o}))}));var a=[o];n&&(a=Object(i["u"])(n.participants,(function(t){return t.processRef})),a.push(n));var s=Rn(a),c=[e],l=[r];return Object(i["i"])(t.diagrams,(function(t){var e=t.plane.bpmnElement;-1!==s.indexOf(e)&&-1===l.indexOf(e)&&(c.push(t),l.push(e))})),c}}function Rn(t){var e=[];return Object(i["i"])(t,(function(t){t&&(e.push(t),e=e.concat(Rn(t.flowElements)))})),e}function Ln(t){var e=t;while(e){if(Object(Pn["c"])(e,"bpmn:Process"))return e;e=e.$parent}}var Nn,Bn='',zn=Bn,Fn={verticalAlign:"middle"},Vn={color:"#404040"},Hn={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Gn={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},qn={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Wn='
    '+zn+'Web-based tooling for BPMN, DMN and CMMN diagrams powered by bpmn.io.
    ';function Un(){Nn=Object(r["g"])(Wn),Object(r["a"])(Nn,Hn),Object(r["a"])(Object(r["j"])("svg",Nn),Fn),Object(r["a"])(Object(r["j"])(".backdrop",Nn),Gn),Object(r["a"])(Object(r["j"])(".notice",Nn),qn),Object(r["a"])(Object(r["j"])(".link",Nn),Vn,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function $n(){Nn||(Un(),r["f"].bind(Nn,".backdrop","click",(function(t){document.body.removeChild(Nn)}))),document.body.appendChild(Nn)}function Yn(t){t=Object(i["a"])({},Kn,t),this._moddle=this._createModdle(t),this._container=this._createContainer(t),ti(this._container),this._init(this._container,this._moddle,t)}function Zn(t,e){return t.warnings=e,t}function Xn(t){var e=/unparsable content <([^>]+)> detected([\s\S]*)$/,n=e.exec(t.message);return n&&(t.message="unparsable content <"+n[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+n[2]),t}An()(Yn,tt),Yn.prototype.importXML=Object(Tn["b"])((function(t,e){var n=this;function i(t){var e=n.get("eventBus").createEvent(t);return Object.defineProperty(e,"context",{enumerable:!0,get:function(){return console.warn(new Error("import.parse.complete is deprecated and will be removed in future library versions")),{warnings:t.warnings,references:t.references,elementsById:t.elementsById}}}),e}return new Promise((function(r,o){t=n._emit("import.parse.start",{xml:t})||t,n._moddle.fromXML(t,"bpmn:Definitions").then((function(t){var a=t.rootElement,s=t.references,c=t.warnings,l=t.elementsById;a=n._emit("import.parse.complete",i({error:null,definitions:a,elementsById:l,references:s,warnings:c}))||a,n.importDefinitions(a,e).then((function(t){var e=[].concat(c,t.warnings||[]);return n._emit("import.done",{error:null,warnings:e}),r({warnings:e})})).catch((function(t){var e=[].concat(c,t.warnings||[]);return n._emit("import.done",{error:t,warnings:e}),o(Zn(t,e))}))})).catch((function(t){return n._emit("import.parse.complete",{error:t}),t=Xn(t),n._emit("import.done",{error:t,warnings:t.warnings}),o(t)}))}))})),Yn.prototype.importDefinitions=Object(Tn["b"])((function(t,e){var n=this;return new Promise((function(i,r){n._setDefinitions(t),n.open(e).then((function(t){var e=t.warnings;return i({warnings:e})})).catch((function(t){return r(t)}))}))})),Yn.prototype.open=Object(Tn["b"])((function(t){var e=this._definitions,n=t,i=this;return new Promise((function(r,o){if(!e){var a=new Error("no XML imported");return o(Zn(a,[]))}if("string"===typeof t&&(n=Jn(e,t),!n)){var s=new Error("BPMNDiagram <"+t+"> not found");return o(Zn(s,[]))}try{i.clear()}catch(c){return o(Zn(c,[]))}In(i,e,n).then((function(t){var e=t.warnings;return r({warnings:e})})).catch((function(t){return o(t)}))}))})),Yn.prototype.saveXML=Object(Tn["b"])((function(t){t=t||{};var e=this,n=this._definitions;return new Promise((function(i){if(!n)return i({error:new Error("no definitions loaded")});n=e._emit("saveXML.start",{definitions:n})||n,e._moddle.toXML(n,t).then((function(t){var n=t.xml;return n=e._emit("saveXML.serialized",{xml:n})||n,i({xml:n})}))})).catch((function(t){return{error:t}})).then((function(t){e._emit("saveXML.done",t);var n=t.error;return n?Promise.reject(n):t}))})),Yn.prototype.saveSVG=Object(Tn["b"])((function(t){t=t||{};var e=this;return new Promise((function(t,n){var i,a;e._emit("saveSVG.start");try{var s=e.get("canvas"),c=s.getActiveLayer(),l=Object(r["j"])("defs",s._svg),u=Object(o["i"])(c),h=l?""+Object(o["i"])(l)+"":"",p=c.getBBox();i='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+h+u+""}catch(d){a=d}return e._emit("saveSVG.done",{error:a,svg:i}),a?n(a):t({svg:i})}))})),Yn.prototype._setDefinitions=function(t){this._definitions=t},Yn.prototype.getModules=function(){return this._modules},Yn.prototype.clear=function(){this.getDefinitions()&&tt.prototype.clear.call(this)},Yn.prototype.destroy=function(){tt.prototype.destroy.call(this),Object(r["l"])(this._container)},Yn.prototype.on=function(t,e,n,i){return this.get("eventBus").on(t,e,n,i)},Yn.prototype.off=function(t,e){this.get("eventBus").off(t,e)},Yn.prototype.attachTo=function(t){if(!t)throw new Error("parentNode required");this.detach(),t.get&&t.constructor.prototype.jquery&&(t=t.get(0)),"string"===typeof t&&(t=Object(r["j"])(t)),t.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Yn.prototype.getDefinitions=function(){return this._definitions},Yn.prototype.detach=function(){var t=this._container,e=t.parentNode;e&&(this._emit("detach",{}),e.removeChild(t))},Yn.prototype._init=function(t,e,n){var r=n.modules||this.getModules(),o=n.additionalModules||[],a=[{bpmnjs:["value",this],moddle:["value",e]}],s=[].concat(a,r,o),c=Object(i["a"])(Object(i["w"])(n,["additionalModules"]),{canvas:Object(i["a"])({},n.canvas,{container:t}),modules:s});tt.call(this,c),n&&n.container&&this.attachTo(n.container)},Yn.prototype._emit=function(t,e){return this.get("eventBus").fire(t,e)},Yn.prototype._createContainer=function(t){var e=Object(r["g"])('
    ');return Object(r["a"])(e,{width:Qn(t.width),height:Qn(t.height),position:t.position}),e},Yn.prototype._createModdle=function(t){var e=Object(i["a"])({},this._moddleExtensions,t.moddleExtensions);return new Sn(e)},Yn.prototype._modules=[];var Kn={width:"100%",height:"100%",position:"relative"};function Qn(t){return t+(Object(i["p"])(t)?"px":"")}function Jn(t,e){return e&&Object(i["f"])(t.diagrams,(function(t){return t.id===e}))||null}function ti(t){var e=zn,n=''+e+"",i=Object(r["g"])(n);Object(r["a"])(Object(r["j"])("svg",i),Fn),Object(r["a"])(i,Vn,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),t.appendChild(i),r["h"].bind(i,"click",(function(t){$n(),t.preventDefault()}))}},b3a6:function(t,e,n){"use strict";var i=n("43c6"),r=n("6b8b"),o=n("e506"),a=n("87f2"),s=500;function c(t,e,n){this.offset=6;var i=e.cls("djs-outline",["no-fill"]),c=this;function l(t,e){var n=Object(r["f"])("rect");return Object(r["b"])(n,Object(a["a"])({x:10,y:10,rx:3,width:100,height:100},i)),Object(r["a"])(t,n),n}t.on(["shape.added","shape.changed"],s,(function(t){var e=t.element,n=t.gfx,i=Object(o["j"])(".djs-outline",n);i||(i=l(n,e)),c.updateShapeOutline(i,e)})),t.on(["connection.added","connection.changed"],(function(t){var e=t.element,n=t.gfx,i=Object(o["j"])(".djs-outline",n);i||(i=l(n,e)),c.updateConnectionOutline(i,e)}))}c.prototype.updateShapeOutline=function(t,e){Object(r["b"])(t,{x:-this.offset,y:-this.offset,width:e.width+2*this.offset,height:e.height+2*this.offset})},c.prototype.updateConnectionOutline=function(t,e){var n=Object(i["b"])(e);Object(r["b"])(t,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},c.$inject=["eventBus","styles","elementRegistry"];e["a"]={__init__:["outline"],outline:["type",c]}},b419:function(t,e,n){var i=n("6d8b"),r=n("2306"),o=n("4319"),a=n("6679"),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function c(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function l(t){var e=t.getRadiusAxis();return e.inverse?0:1}function u(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var h=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,o=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),c=i.map(n.getViewLabels(),(function(t){t=i.clone(t);return t.coord=n.dataToCoord(t.tickValue),t}));u(c),u(a),i.each(s,(function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,r,a,o,c)}),this)}},_axisLine:function(t,e,n,i){var o=t.getModel("axisLine.lineStyle"),a=new r.Circle({shape:{cx:e.cx,cy:e.cy,r:i[l(e)]},style:o.getLineStyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axisTick:function(t,e,n,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=o[l(e)],h=i.map(n,(function(t){return new r.Line({shape:c(e,[u,u+s],t.coord)})}));this.group.add(r.mergePath(h,{style:i.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,a,s){var c=t.getCategories(!0),u=t.getModel("axisLabel"),h=u.get("margin");i.each(s,(function(n,i){var s=u,p=n.tickValue,d=a[l(e)],f=e.coordToPoint([d+h,n.coord]),g=e.cx,m=e.cy,v=Math.abs(f[0]-g)/d<.3?"center":f[0]>g?"left":"right",y=Math.abs(f[1]-m)/d<.3?"middle":f[1]>m?"top":"bottom";c&&c[p]&&c[p].textStyle&&(s=new o(c[p].textStyle,u,u.ecModel));var _=new r.Text({silent:!0});this.group.add(_),r.setTextStyle(_.style,s,{x:f[0],y:f[1],textFill:s.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:v,textVerticalAlign:y})}),this)},_splitLine:function(t,e,n,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],p=0;p * @license MIT */ var i=n("1fb5"),r=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),l.alloc(+t)}function b(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(i)return X(t).length;e=(""+e).toLowerCase(),i=!0}}function x(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return L(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function w(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function O(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:S(t,e,n,i,r);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,i,r){var o,a=1,s=t.length,c=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var u=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var h=!0,p=0;pr&&(i=r)):i=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:l>223?3:l>191?2:1;if(r+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:o=t[r+1],128===(192&o)&&(c=(31&l)<<6|63&o,c>127&&(u=c));break;case 3:o=t[r+1],a=t[r+2],128===(192&o)&&128===(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(u=c))}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return D(i)}e.Buffer=l,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return p(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var o=r-i,a=n-e,s=Math.min(o,a),c=this.slice(i,r),u=t.slice(e,n),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return A(this,t,e,n);case"ascii":return k(this,t,e,n);case"latin1":case"binary":return T(this,t,e,n);case"base64":return j(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function D(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);var n="",i=0;while(ii)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,i,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function V(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function H(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function G(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(t,e,n,i,o){return o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function W(t,e,n,i,o){return o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e0&&(r*=256))i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=this[t],r=1,o=0;while(++o=r&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=e,r=1,o=this[t+--i];while(i>0&&(r*=256))o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;F(this,t,e,n,r,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return q(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return q(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){for(var e=[],n=0;n>8,r=n%256,o.push(r),o.push(i)}return o}function J(t){return i.toByteArray($(t))}function tt(t,e,n,i){for(var r=0;r=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b719:function(t,e,n){var i=n("697e7");e.zrender=i;var r=n("1687");e.matrix=r;var o=n("401b");e.vector=o;var a=n("6d8b"),s=n("41ef");e.color=s;var c=n("2306"),l=n("3842");e.number=l;var u=n("eda2");e.format=u;var h=n("88b3");h.throttle;e.throttle=h.throttle;var p=n("1548");e.helper=p;var d=n("bda7");e.parseGeoJSON=d;var f=n("6179");e.List=f;var g=n("4319");e.Model=g;var m=n("84ce");e.Axis=m;var v=n("22d1");e.env=v;var y=d,_={};a.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){_[t]=a[t]}));var b={};a.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){b[t]=c[t]})),e.parseGeoJson=y,e.util=_,e.graphic=b},b71e:function(t,e,n){"use strict";function i(t,e){return e=e||{},t.replace(/{([^}]+)}/g,(function(t,n){return e[n]||"{"+n+"}"}))}e["a"]={translate:["value",i]}},b809:function(t,e,n){var i=n("6d8b"),r=n("29a8"),o=n("2b17"),a=o.retrieveRawValue;function s(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var o=0;e.eachSeries((function(t,e){++o}),this);var s,c=n.get("data.maxCount")||10,l=n.get("series.maxCount")||10,u=Math.min(o,l);if(!(o<1)){var h=m();s=h?f(g("general.withTitle"),{title:h}):g("general.withoutTitle");var p=[],d=o>1?"series.multiple.prefix":"series.single.prefix";s+=f(g(d),{seriesCount:o}),e.eachSeries((function(t,e){if(e1?"multiple":"single")+".";n=g(i?r+"withName":r+"withoutName"),n=f(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:v(t.subType)});var s=t.getData();window.data=s,s.count()>c?n+=f(g("data.partialData"),{displayCnt:c}):n+=g("data.allData");for(var l=[],h=0;he&&o+1t[o].y+t[o].height)return void c(o,i/2);c(n-1,i/2)}function c(e,n){for(var i=e;i>=0;i--)if(t[i].y-=n,i>0&&t[i].y>t[i-1].y+t[i-1].height)break}function l(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,c=t.length;s=a&&(p=a-10),!e&&p<=a&&(p=a+10),t[s].x=n+p*o,a=p}}t.sort((function(t,e){return t.y-e.y}));for(var u,h=0,p=t.length,d=[],f=[],g=0;g=n?f.push(t[g]):d.push(t[g]);l(d,!1,e,n,i,r),l(f,!0,e,n,i,r)}function o(t,e,n,i,o,s){for(var c=[],l=[],u=0;u0?"left":"right"}var M=g.getFont(),C=g.get("rotate")?x<0?-b+Math.PI:-b:0,P=t.getFormattedLabel(n,"normal")||c.getName(n),I=i.getBoundingRect(P,M,p,"top");u=!!C,d.label={x:r,y:o,position:m,height:I.height,len:y,len2:_,linePoints:h,textAlign:p,verticalAlign:"middle",rotation:C,inside:O},O||l.push(d.label)})),!u&&t.get("avoidLabelOverlap")&&o(l,a,s,e,n,r)}t.exports=s},bc2f:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s}));var i=n("6b8b");function r(t){return t.join(",").replace(/,?([A-z]),?/g,"$1")}function o(t){for(var e,n="",i=0;e=t[i];i++)n+=e.x+","+e.y+" ";return n}function a(t,e){var n=Object(i["f"])("polyline");return Object(i["b"])(n,{points:o(t)}),e&&Object(i["b"])(n,e),n}function s(t,e){return Object(i["b"])(t,{points:o(e)}),t}},bc5f:function(t,e,n){var i=n("6cb7");i.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},bcaa1:function(t,e,n){var i=n("4ab1"),r=n("6d8b");function o(t,e){i.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function a(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}r.inherits(o,i),o.prototype.addWithoutUpdate=function(t,e){if(e&&a(e.style)){var n,i=e.style;if(i._shadowDom){n=i._shadowDom;var r=this.getDefs(!0);r.contains(i._shadowDom)||this.addDom(n)}else n=this.add(e);this.markUsed(e);var o=n.getAttribute("id");t.style.filter="url(#"+o+")"}},o.prototype.add=function(t){var e=this.createElement("filter"),n=t.style;return n._shadowDomId=n._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+n._shadowDomId),this.updateDom(t,e),this.addDom(e),e},o.prototype.update=function(t,e){var n=e.style;if(a(n)){var r=this;i.prototype.update.call(this,e,(function(t){r.updateDom(e,t._shadowDom)}))}else this.remove(t,n)},o.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},o.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,o,a,s=t.style,c=t.scale&&t.scale[0]||1,l=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",i/c),n.setAttribute("dy",r/l),n.setAttribute("flood-color",a);var u=o/2/c,h=o/2/l,p=u+" "+h;n.setAttribute("stdDeviation",p),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(n),s._shadowDom=e},o.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&i.prototype.markUsed.call(this,e._shadowDom)};var s=o;t.exports=s},bcbe:function(t,e,n){var i=n("6d8b"),r=n("fab2"),o=n("2306"),a=n("edb9"),s=n("6679"),c=["axisLine","axisTickLabel","axisName"],l="splitLine",u=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,o){var s=this.group;s.removeAll();var h=a.layout(t),p=new r(t,h);i.each(c,p.add,p),s.add(p.getGroup()),t.get(l+".show")&&this["_"+l](t),u.superCall(this,"render",t,e,n,o)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),r=i.get("width"),a=i.get("color");a=a instanceof Array?a:[a];for(var s=t.coordinateSystem.getRect(),c=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:n}),p=[],d=[],f=0;f0&&t.animate(e,!1).when(null==r?500:r,s).delay(o||0)}function f(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}h.prototype={constructor:h,animate:function(t,e){var n,o=!1,a=this,s=this.__zr;if(t){var c=t.split("."),l=a;o="shape"===c[0];for(var h=0,p=c.length;h=0)&&t(o,i,r)}))}var f=d.prototype;function g(t){return t[0]>t[1]&&t.reverse(),t}function m(t,e){return a.parseFinder(t,e,{includeMainTypes:p})}f.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=b[t.brushType](0,n,e);t.__rangeOffset={offset:w[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}))},f.matchOutputRanges=function(t,e,n){c(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&r.each(i.coordSyses,(function(i){var r=b[t.brushType](1,i,t.range);n(t,r.values,i,e)}))}),this)},f.setInputRanges=function(t,e){c(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=b[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?w[t.brushType](i.values,r.offset,S(i.xyMinMax,r.xyMinMax)):i.values}}),this)},f.makePanelOpts=function(t,e){return r.map(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:s.makeRectPanelClipPath(i),isTargetByCursor:s.makeRectIsTargetByCursor(i,t,n.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(i)}}))},f.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&l(i.coordSyses,e.coordinateSystem)>=0},f.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=m(e,t),r=0;r=0||l(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:_.grid,xAxisDeclared:s[t.id],yAxisDeclared:u[t.id]})})))},geo:function(t,e){c(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:_.geo})}))}},y=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],_={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(o.getTransform(t)),e}},b={lineX:u(x,0),lineY:u(x,1),rect:function(t,e,n){var i=e[h[t]]([n[0][0],n[1][0]]),r=e[h[t]]([n[0][1],n[1][1]]),o=[g([i[0],r[0]]),g([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],o=r.map(n,(function(n){var r=e[h[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}));return{values:o,xyMinMax:i}}};function x(t,e,n,i){var o=n.getAxis(["x","y"][t]),a=g(r.map([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t])):o.toGlobalCoord(o.dataToCoord(i[t]))}))),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}var w={lineX:u(O,0),lineY:u(O,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return r.map(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function O(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function S(t,e){var n=E(t),i=E(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function E(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var A=d;t.exports=A},bda7:function(t,e,n){var i=n("6d8b"),r=n("f279");function o(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i>1^-(1&s),c=c>>1^-(1&c),s+=r,c+=o,r=s,o=c,i.push([s/n,c/n])}return i}function s(t){return o(t),i.map(i.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var e=t.properties,n=t.geometry,o=n.coordinates,a=[];"Polygon"===n.type&&a.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===n.type&&i.each(o,(function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var s=new r(e.name,a,e.cp);return s.properties=e,s}))}t.exports=s},bdc0:function(t,e,n){var i=n("3eba");n("d2a5"),i.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])}))}))},bf9b:function(t,e,n){var i=n("3eba"),r=n("d81e"),o=r.updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,i=o(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},c037:function(t,e,n){var i=n("3eba"),r=n("6d8b");n("f7c6"),n("1ab3");var o=n("7782"),a=n("98e7"),s=n("292e"),c=n("d3f4");o("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(a("pie")),i.registerLayout(r.curry(s,"pie")),i.registerProcessor(c("pie"))},c2dd:function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("fc82"),a=i.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new o(e.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,s.apply(this,arguments)},updateTransform:s,updateView:s,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:r.clone(t),$from:n})}});function s(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}t.exports=a},c515:function(t,e,n){n("849b"),n("8459"),n("b006")},c526:function(t,e){var n={axisPointer:1,tooltip:1,brush:1};function i(t,e,i){var r=e.getComponentByElement(t.topTarget),o=r&&r.coordinateSystem;return r&&r!==i&&!n[r.mainType]&&o&&o.model!==i}e.onIrrelevantElement=i},c533:function(t,e){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],i={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};t.exports=i},c62c:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),o=n("9e47"),a=n("2023"),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),c={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function l(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,a),o("single",s,l,c);var u=s;t.exports=u},c775:function(t,e,n){var i=n("2b17"),r=i.retrieveRawValue;function o(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return r(t,e,n[0]);if(i){for(var o=[],a=0;a1,i=this._canvas.getContainer();if(Object(s["c"])(i)[n?"add":"remove"]("djs-multi-select"),n){var r=d(Object(c["b"])(t)),a=Object(s["f"])("rect");Object(s["b"])(a,Object(o["a"])({rx:3},r)),Object(s["c"])(a).add("djs-selection-outline"),Object(s["a"])(e,a)}};var f=n("78f9");function g(t,e,n,i){t.on("create.end",500,(function(t){var n=t.context,i=n.canExecute,r=n.elements,a=n.hints||{},s=a.autoSelect;if(i){if(!1===s)return;Object(o["l"])(s)?e.select(s):e.select(r.filter(m))}})),t.on("connect.end",500,(function(t){var n=t.context,i=n.connection;i&&e.select(i)})),t.on("shape.move.end",500,(function(t){var n=t.previousSelection||[],r=i.get(t.context.shape.id),a=Object(o["f"])(n,(function(t){return r.id===t.id}));a||e.select(r)})),t.on("element.click",(function(t){if(Object(f["d"])(t)){var i=t.element;i===n.getRootElement()&&(i=null);var r=e.isSelected(i),o=e.get().length>1,a=Object(f["a"])(t)||Object(f["b"])(t);if(r&&o)return a?e.deselect(i):e.select(i);r?e.deselect(i):e.select(i,a)}}))}function m(t){return!t.hidden}g.$inject=["eventBus","selection","canvas","elementRegistry"];e["a"]={__init__:["selectionVisuals","selectionBehavior"],__depends__:[i["a"],r["a"]],selection:["type",a],selectionVisuals:["type",p],selectionBehavior:["type",g]}},c7a2:function(t,e,n){var i=n("cbe5"),r=n("5693"),o=n("9cf9"),a=o.subPixelOptimizeRect,s={},c=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n,i,o,c;this.subPixelOptimize?(a(s,e,this.style),n=s.x,i=s.y,o=s.width,c=s.height,s.r=e.r,e=s):(n=e.x,i=e.y,o=e.width,c=e.height),e.r?r.buildPath(t,e):t.rect(n,i,o,c),t.closePath()}});t.exports=c},c8b5:function(t,e,n){var i; /*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */(function(r,o,a,s){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=o.createElement("div"),h="function",p=Math.round,d=Math.abs,f=Date.now;function g(t,e,n){return setTimeout(w(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s){i=0;while(i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}c="function"!==typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function j(t){return t.trim().split(/\s+/g)}function M(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);var i=0;while(in[e]})):i.sort()),i}function I(t,e){var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;while(o1&&!n.firstMultiple?n.firstMultiple=pt(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=dt(i);e.timeStamp=f(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=vt(s,c),e.distance=mt(s,c),ut(n,e),e.offsetDirection=gt(e.deltaX,e.deltaY);var l=ft(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=d(l.x)>d(l.y)?l.x:l.y,e.scale=a?_t(a.pointers,i):1,e.rotation=a?yt(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ht(n,e);var u=t.element;k(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function ut(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==U&&o.eventType!==Y||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function ht(t,e){var n,i,r,o,a=t.lastInterval||e,c=e.timeStamp-a.timeStamp;if(e.eventType!=Z&&(c>W||a.velocity===s)){var l=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,h=ft(c,l,u);i=h.x,r=h.y,n=d(h.x)>d(h.y)?h.x:h.y,o=gt(l,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function pt(t){var e=[],n=0;while(n=d(e)?t<0?K:Q:e<0?J:tt}function mt(t,e,n){n||(n=rt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function vt(t,e,n){n||(n=rt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function yt(t,e){return vt(e[1],e[0],ot)+vt(t[1],t[0],ot)}function _t(t,e){return mt(e[0],e[1],ot)/mt(t[0],t[1],ot)}at.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(L(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(L(this.element),this.evWin,this.domHandler)}};var bt={mousedown:U,mousemove:$,mouseup:Y},xt="mousedown",wt="mousemove mouseup";function Ot(){this.evEl=xt,this.evWin=wt,this.pressed=!1,at.apply(this,arguments)}x(Ot,at,{handler:function(t){var e=bt[t.type];e&U&&0===t.button&&(this.pressed=!0),e&$&&1!==t.which&&(e=Y),this.pressed&&(e&Y&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:G,srcEvent:t}))}});var St={pointerdown:U,pointermove:$,pointerup:Y,pointercancel:Z,pointerout:Z},Et={2:V,3:H,4:G,5:q},At="pointerdown",kt="pointermove pointerup pointercancel";function Tt(){this.evEl=At,this.evWin=kt,at.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(At="MSPointerDown",kt="MSPointerMove MSPointerUp MSPointerCancel"),x(Tt,at,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=St[i],o=Et[t.pointerType]||t.pointerType,a=o==V,s=M(e,t.pointerId,"pointerId");r&U&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(Y|Z)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var jt={touchstart:U,touchmove:$,touchend:Y,touchcancel:Z},Mt="touchstart",Ct="touchstart touchmove touchend touchcancel";function Pt(){this.evTarget=Mt,this.evWin=Ct,this.started=!1,at.apply(this,arguments)}function It(t,e){var n=C(t.touches),i=C(t.changedTouches);return e&(Y|Z)&&(n=P(n.concat(i),"identifier",!0)),[n,i]}x(Pt,at,{handler:function(t){var e=jt[t.type];if(e===U&&(this.started=!0),this.started){var n=It.call(this,t,e);e&(Y|Z)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:V,srcEvent:t})}}});var Dt={touchstart:U,touchmove:$,touchend:Y,touchcancel:Z},Rt="touchstart touchmove touchend touchcancel";function Lt(){this.evTarget=Rt,this.targetIds={},at.apply(this,arguments)}function Nt(t,e){var n=C(t.touches),i=this.targetIds;if(e&(U|$)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=C(t.changedTouches),s=[],c=this.target;if(o=n.filter((function(t){return k(t.target,c)})),e===U){r=0;while(r-1&&i.splice(t,1)};setTimeout(r,Bt)}}function Gt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n=oe&&i(e.options.event+ue(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=ce},canEmit:function(){var t=0;while(te.threshold&&r&e.direction},attrTest:function(t){return de.prototype.attrTest.call(this,t)&&(this.state&ie||!(this.state&ie)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=he(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),x(ge,de,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Zt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ie)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),x(me,le,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[$t]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||t.eventType&(Y|Z)&&!r)this.reset();else if(t.eventType&U)this.reset(),this._timer=g((function(){this.state=ae,this.tryEmit()}),e.time,this);else if(t.eventType&Y)return ae;return ce},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ae&&(t&&t.eventType&Y?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),x(ve,de,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Zt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ie)}}),x(ye,de,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:et|nt,pointers:1},getTouchAction:function(){return fe.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(et|nt)?e=t.overallVelocity:n&et?e=t.overallVelocityX:n&nt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&t.eventType&Y},emit:function(t){var e=he(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),x(_e,le,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Yt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance=0;s--){var c=2*s,l=i[c]-o/2,u=i[c+1]-a/2;if(t>=l&&e>=u&&t<=l+o&&e<=u+a)return s}return-1}});function l(){this.group=new i.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t){this.group.removeAll();var e=new c({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},u.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e){var n;this._incremental?(n=new c,this._incremental.addDisplayable(n,!0)):(n=new c({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)},u._setCommon=function(t,e,n){var i=e.hostModel,r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.symbolProxy=o(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]=0&&(t.dataIndex=n+(t.startIndex||0))})))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var h=l;t.exports=h},ca29:function(t,e,n){var i=n("6d9a"),r=i.eachAfter,o=i.eachBefore,a=n("22da"),s=a.init,c=a.firstWalk,l=a.secondWalk,u=a.separation,h=a.radialCoordinate,p=a.getViewRect;function d(t,e){t.eachSeriesByType("tree",(function(t){f(t,e)}))}function f(t,e){var n=p(t,e);t.layoutInfo=n;var i=t.get("layout"),a=0,d=0,f=null;"radial"===i?(a=2*Math.PI,d=Math.min(n.height,n.width)/2,f=u((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=n.width,d=n.height,f=u());var g=t.getData().tree.root,m=g.children[0];if(m){s(g),r(m,c,f),g.hierNode.modifier=-m.hierNode.prelim,o(m,l);var v=m,y=m,_=m;o(m,(function(t){var e=t.getLayout().x;ey.getLayout().x&&(y=t),t.depth>_.depth&&(_=t)}));var b=v===y?1:f(v,y)/2,x=b-v.getLayout().x,w=0,O=0,S=0,E=0;if("radial"===i)w=a/(y.getLayout().x+b+x),O=d/(_.depth-1||1),o(m,(function(t){S=(t.getLayout().x+x)*w,E=(t.depth-1)*O;var e=h(S,E);t.setLayout({x:e.x,y:e.y,rawX:S,rawY:E},!0)}));else{var A=t.getOrient();"RL"===A||"LR"===A?(O=d/(y.getLayout().x+b+x),w=a/(_.depth-1||1),o(m,(function(t){E=(t.getLayout().x+x)*O,S="LR"===A?(t.depth-1)*w:a-(t.depth-1)*w,t.setLayout({x:S,y:E},!0)}))):"TB"!==A&&"BT"!==A||(w=a/(y.getLayout().x+b+x),O=d/(_.depth-1||1),o(m,(function(t){S=(t.getLayout().x+x)*w,E="TB"===A?(t.depth-1)*O:d-(t.depth-1)*O,t.setLayout({x:S,y:E},!0)})))}}}t.exports=d},ca98:function(t,e,n){var i=n("6d8b"),r=n("e0d3"),o=n("6cb7"),a=i.each,s=i.clone,c=i.map,l=i.merge,u=/^(min|max)?(.+)$/;function h(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function p(t,e,n){var r,o,s=[],c=[],l=t.timeline;if(t.baseOption&&(o=t.baseOption),(l||t.options)&&(o=o||{},s=(t.options||[]).slice()),t.media){o=o||{};var u=t.media;a(u,(function(t){t&&t.option&&(t.query?c.push(t):r||(r=t))}))}return o||(o=t),o.timeline||(o.timeline=l),a([o].concat(s).concat(i.map(c,(function(t){return t.option}))),(function(t){a(e,(function(e){e(t,n)}))})),{baseOption:o,timelineOptions:s,mediaDefault:r,mediaList:c}}function d(t,e,n){var r={width:e,height:n,aspectratio:e/n},o=!0;return i.each(t,(function(t,e){var n=e.match(u);if(n&&n[1]&&n[2]){var i=n[1],a=n[2].toLowerCase();f(r[a],t,i)||(o=!1)}})),o}function f(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function g(t,e){return t.join(",")===e.join(",")}function m(t,e){e=e||{},a(e,(function(e,n){if(null!=e){var i=t[n];if(o.hasClass(n)){e=r.normalizeToArray(e),i=r.normalizeToArray(i);var a=r.mappingToExists(i,e);t[n]=c(a,(function(t){return t.option&&t.exist?l(t.exist,t.option,!0):t.exist||t.option}))}else t[n]=l(i,e,!0)}}))}h.prototype={constructor:h,setOption:function(t,e){t&&i.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&i.isTypedArray(t.data)&&i.setAsPrimitive(t.data)})),t=s(t,!0);var n=this._optionBackup,o=p.call(this,t,e,!n);this._newBaseOption=o.baseOption,n?(m(n.baseOption,o.baseOption),o.timelineOptions.length&&(n.timelineOptions=o.timelineOptions),o.mediaList.length&&(n.mediaList=o.mediaList),o.mediaDefault&&(n.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=c(e.timelineOptions,s),this._mediaList=c(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=s(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var l=0,u=i.length;l0,E=y.height-(S?-1:1),A=(f-d)/(E||1),k=t.get("clockwise"),T=t.get("stillShowZeroSum"),j=k?1:-1,M=function(t,e){if(t){var n=e;if(t!==v){var i=t.getValue(),a=0===w&&T?O:i*O;a1e-10&&(r.width+=a/s,r.height+=a/s,r.x-=a/s/2,r.y-=a/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var s=r.lineWidth,c=r.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(o,s/c,t,e)))return!0}if(r.hasFill())return a.contain(o,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):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(r.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(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 n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in r.inherits(e,h),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},r.inherits(h,i);var p=h;t.exports=p},cbe9:function(t,e,n){var i=n("6d8b"),r=n("cf7e");function o(t){r.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"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return e=e||[],e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i.inherits(o,r);var a=o;t.exports=a},cc39:function(t,e,n){var i=n("6d8b"),r=n("3842"),o=n("50e5"),a=i.each,s=r.asc,c=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function l(t,e,n){var i=[1/0,-1/0];return a(n,(function(t){var n=t.getData();n&&a(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]i[1]&&(i[1]=e[1])}))})),i[1]0?0:NaN);var a=n.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!==typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function h(t,e){var n=t.getAxisModel(),i=t._percentWindow,o=t._valueWindow;if(i){var a=r.getPixelPrecision(o,[0,500]);a=Math.min(a,20);var s=e||0===i[0]&&100===i[1];n.setRange(s?null:+o[0].toFixed(a),s?null:+o[1].toFixed(a))}}function p(t){var e=t._minMaxSpan={},n=t._dataZoomModel;a(["min","max"],(function(i){e[i+"Span"]=n.get(i+"Span");var o=n.get(i+"ValueSpan");if(null!=o&&(e[i+"ValueSpan"]=o,o=t.getAxisModel().axis.scale.parse(o),null!=o)){var a=t._dataExtent;e[i+"Span"]=r.linearMap(a[0]+o,a,[0,100],!0)}}))}c.prototype={constructor:c,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(n){if(o.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel(),a="x"===i||"y"===i;return a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,o=this._dataZoomModel.getRangePropMode(),c=[0,100],l=[t.start,t.end],u=[];return a(["startValue","endValue"],(function(e){u.push(null!=t[e]?i.parse(t[e]):null)})),a([0,1],(function(t){var n=u[t],a=l[t];"percent"===o[t]?(null==a&&(a=c[t]),n=i.parse(r.linearMap(a,c,e,!0))):a=r.linearMap(n,e,c,!0),u[t]=n,l[t]=a})),{valueWindow:s(u),percentWindow:s(l)}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=l(this,this._dimName,e);var n=this.calculateDataWindow(t.option);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,p(this),h(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,h(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&a(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf((function(t){for(var n,r,a,s=0;so[1];if(l&&!u&&!h)return!0;l&&(a=!0),u&&(n=!0),h&&(r=!0)}return a&&n&&r})):a(i,(function(n){if("empty"===r)t.setData(e.map(n,(function(t){return s(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}})),a(i,(function(t){e.setApproximateExtent(o,t)})))}))}function s(t){return t>=o[0]&&t<=o[1]}}};var d=c;t.exports=d},cccd:function(t,e,n){var i=n("e0d3"),r=i.makeInner;function o(){var t=r();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^a||o^s)&&"reset"}}t.exports=o},cd12:function(t,e,n){n("01ed"),n("4a9d"),n("cb8f")},cd33:function(t,e,n){var i=n("6d8b"),r=n("4319"),o=i.each,a=i.curry;function s(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return c(n,t,e),n.seriesInvolved&&u(n,t),n}function c(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),s=r.get("link",!0)||[],c=[];o(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var u=v(n.model),p=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=n;var d=n.model,f=d.getModel("tooltip",i);if(o(n.getAxes(),a(b,!1,null)),n.getTooltipAxes&&i&&f.get("show")){var g="axis"===f.get("trigger"),y="cross"===f.get("axisPointer.type"),_=n.getTooltipAxes(f.get("axisPointer.axis"));(g||y)&&o(_.baseAxes,a(b,!y||"cross",g)),y&&o(_.otherAxes,a(b,"cross",!1))}}function b(i,o,a){var u=a.model.getModel("axisPointer",r),d=u.get("show");if(d&&("auto"!==d||i||m(u))){null==o&&(o=u.get("triggerTooltip")),u=i?l(a,f,r,e,i,o):u;var g=u.get("snap"),y=v(a.model),_=o||g||"category"===a.type,b=t.axesInfo[y]={key:y,axis:a,coordSys:n,axisPointerModel:u,triggerTooltip:o,involveSeries:_,snap:g,useHandle:m(u),seriesModels:[]};p[y]=b,t.seriesInvolved|=_;var x=h(s,a);if(null!=x){var w=c[x]||(c[x]={axesInfo:{}});w.axesInfo[y]=b,w.mapper=s[x].mapper,b.linkGroup=w}}}}))}function l(t,e,n,a,s,c){var l=e.getModel("axisPointer"),u={};o(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){u[t]=i.clone(l.get(t))})),u.snap="category"!==t.type&&!!c,"cross"===l.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===s){var p=l.get("label.show");if(h.show=null==p||p,!c){var d=u.lineStyle=l.get("crossStyle");d&&i.defaults(h,d.textStyle)}}return t.model.getModel("axisPointer",new r(u,n,a))}function u(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&o(t.coordSysAxesInfo[v(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}function h(t,e){for(var n=e.model,i=e.dim,r=0;r=0||t===e}function d(t){var e=f(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=m(n);null==o&&(r.status=s?"show":"hide");var c=i.getExtent().slice();c[0]>c[1]&&c.reverse(),(null==a||a>c[1])&&(a=c[1]),a0){var T=a(_)?c:l;_>0&&(_=_*A+S),x[w++]=T[k],x[w++]=T[k+1],x[w++]=T[k+2],x[w++]=T[k+3]*_*256}else w+=4}return p.putImageData(b,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=i.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,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,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}};var a=o;t.exports=a},cdaa:function(t,e,n){var i=n("607d"),r=i.addEventListener,o=i.removeEventListener,a=i.normalizeEvent,s=n("6d8b"),c=n("1fab"),l=n("22d1"),u=300,h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=["touchstart","touchend","touchmove"],d={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},f=s.map(h,(function(t){var e=t.replace("mouse","pointer");return d[e]?e:t}));function g(t){return"mousewheel"===t&&l.browser.firefox?"DOMMouseScroll":t}function m(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout((function(){t._touching=!1}),700)}var v={mousemove:function(t){t=a(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=a(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!==this.dom)while(e&&9!==e.nodeType){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=a(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,this.handler.processGesture(this,t,"start"),v.mousemove.call(this,t),v.mousedown.call(this,t),m(this)},touchmove:function(t){t=a(this.dom,t),t.zrByTouch=!0,this.handler.processGesture(this,t,"change"),v.mousemove.call(this,t),m(this)},touchend:function(t){t=a(this.dom,t),t.zrByTouch=!0,this.handler.processGesture(this,t,"end"),v.mouseup.call(this,t),+new Date-this._lastTouchMoment=r.start.time&&n.timea.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 n=Math.floor(t[1].time/s)-Math.floor(t[0].time/s)+1,i=new Date(t[0].time),r=i.getDate(),o=t[1].date.getDate();if(i.setDate(r+n-1),i.getDate()!==o){var a=i.getTime()-t[1].time>0?1:-1;while(i.getDate()!==o&&(i.getTime()-t[1].time)*a>0)n-=a,i.setDate(r+n-1)}var c=Math.floor((n+t[0].day+6)/7),l=e?1-c:c-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:c,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},c.dimensions=c.prototype.dimensions,c.getDimensionsInfo=c.prototype.getDimensionsInfo,c.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(i){var r=new c(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},a.register("calendar",c);var u=c;t.exports=u},d15d:function(t,e,n){var i=n("6d8b"),r=i.createHashMap,o=i.each;function a(t){var e=r();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(s)}function s(t){o(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,c=a.map(o,(function(o,c,l){var u,h,p=a.get(e.stackedDimension,l);if(isNaN(p))return r;s?h=a.getRawIndex(l):u=a.get(e.stackedByDimension,l);for(var d=NaN,f=n-1;f>=0;f--){var g=t[f];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,u)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(p>=0&&m>0||p<=0&&m<0){p+=m,d=m;break}}}return i[0]=p,i[1]=d,i}));a.hostModel.setData(c),e.data=c}))}t.exports=a},d28f:function(t,e,n){var i=n("3eba");n("84d5"),n("4650"),n("5e97");var r=n("903c"),o=n("6cb7");i.registerProcessor(r),o.registerSubTypeDefaulter("legend",(function(){return"plain"}))},d2a5:function(t,e,n){var i=n("3eba");i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},d2cf:function(t,e,n){var i=n("6d8b"),r=n("401b"),o=n("cb6d"),a=n("1fab"),s=n("607d"),c=n("0b44"),l="silent";function u(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:h}}function h(t){s.stop(this.event)}function p(){}p.prototype.dispose=function(){};var d=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],f=function(t,e,n,i){a.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new p,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,o.call(this),this.setHandlerProxy(n)};function g(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i,r=t;while(r){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||l}return!1}f.prototype={constructor:f,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(d,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,r=i.target;r&&!r.__zr&&(i=this.findHover(i.x,i.y),r=i.target);var o=this._hovered=this.findHover(e,n),a=o.target,s=this.proxy;s.setCursor&&s.setCursor(a?a.cursor:"default"),r&&a!==r&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(o,"mousemove",t),a&&a!==r&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,n=t.toElement||t.relatedTarget;do{n=n&&n.parentNode}while(n&&9!==n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.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,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=u(e,t,n);while(i)if(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(e,o),i=i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},o=i.length-1;o>=0;o--){var a;if(i[o]!==n&&!i[o].ignore&&(a=g(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==l)){r.target=i[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new c);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){f.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if("mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),i.mixin(f,a),i.mixin(f,o);var m=f;t.exports=m},d357:function(t,e,n){var i=n("6d8b"),r=i.each,o=n("1c5f"),a=o.simpleLayout,s=o.simpleLayoutEdge;function c(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];r(n.dimensions,(function(t){o=o.concat(i.mapDimension(t,!0))}));for(var c=0;c=0&&r.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},s),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:a})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),a.register("magicType",c);var p=c;t.exports=p},d3a4:function(t,e,n){var i,r=n("22d1"),o="urn:schemas-microsoft-com:vml",a="undefined"===typeof window?null:window,s=!1,c=a&&a.document;function l(t){return i(t)}if(c&&!r.canvasSupported)try{!c.namespaces.zrvml&&c.namespaces.add("zrvml",o),i=function(t){return c.createElement("')}}catch(h){i=function(t){return c.createElement("<"+t+' xmlns="'+o+'" class="zrvml">')}}function u(){if(!s&&c){s=!0;var t=c.styleSheets;t.length<31?c.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}e.doc=c,e.createNode=l,e.initVML=u},d3f4:function(t,e){function n(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),o.superApply(this._model,"dispose",arguments)}}),a=o;t.exports=a},d4c6:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n=r||m<0)break;if(d(y)){if(f){m+=o;continue}break}if(m===n)t[o>0?"moveTo":"lineTo"](y[0],y[1]);else if(c>0){var _=e[g],b="y"===u?1:0,x=(y[b]-_[b])*c;l(h,_),h[b]=_[b]+x,l(p,y),p[b]=y[b]-x,t.bezierCurveTo(h[0],h[1],p[0],p[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=o}return v}function m(t,e,n,i,o,f,g,m,v,y,_){for(var b=0,x=n,w=0;w=o||x<0)break;if(d(O)){if(_){x+=f;continue}break}if(x===n)t[f>0?"moveTo":"lineTo"](O[0],O[1]),l(h,O);else if(v>0){var S=x+f,E=e[S];if(_)while(E&&d(e[S]))S+=f,E=e[S];var A=.5,k=e[b];E=e[S];if(!E||d(E))l(p,O);else{var T,j;if(d(E)&&!_&&(E=O),r.sub(u,E,k),"x"===y||"y"===y){var M="x"===y?0:1;T=Math.abs(O[M]-k[M]),j=Math.abs(O[M]-E[M])}else T=r.dist(O,k),j=r.dist(O,E);A=j/(j+T),c(p,O,u,-v*(1-A))}a(h,h,m),s(h,h,g),a(p,p,m),s(p,p,g),t.bezierCurveTo(h[0],h[1],p[0],p[1],O[0],O[1]),c(h,O,u,v*A)}else t.lineTo(O[0],O[1]);b=x,x+=f}return w}function v(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:o(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=v(n,e.smoothConstraint);if(e.connectNulls){for(;r>0;r--)if(!d(n[r-1]))break;for(;i0;o--)if(!d(n[o-1]))break;for(;r=this._maxSize&&a>0){var c=n.head;n.remove(c),delete i[c.key],o=c.value,this._lastRemovedEntry=c}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},a.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},a.clear=function(){this._list.clear(),this._map={}};var s=o;t.exports=s},d5b7:function(t,e,n){var i=n("de00"),r=n("1fab"),o=n("0cde"),a=n("bd6b"),s=n("6d8b"),c=function(t){o.call(this,t),r.call(this,t),a.call(this,t),this.id=t.id||i()};c.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 n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[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 n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[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 n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);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 n=0;ne&&l>i&&l>o&&l>s||l1&&y(),p=u.cubicAt(e,i,o,s,v[0]),g>1&&(d=u.cubicAt(e,i,o,s,v[1]))),2===g?be&&s>i&&s>o||s=0&&l<=1){for(var h=0,p=u.quadraticAt(e,i,o,l),d=0;dn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);m[0]=-c,m[1]=c;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%d<1e-4){i=0,r=d;var h=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?h:0}if(o){c=i;i=l(r),r=l(c)}else i=l(i),r=l(r);i>r&&(r+=d);for(var p=0,f=0;f<2;f++){var g=m[f];if(g+t>a){var v=Math.atan2(s,g);h=o?1:-1;v<0&&(v=d+v),(v>=i&&v<=r||v+d>=i&&v+d<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),p+=h)}}return p}function w(t,e,n,i,c){for(var l=0,u=0,d=0,f=0,m=0,v=0;v1&&(n||(l+=h(u,d,f,m,i,c))),1===v&&(u=t[v],d=t[v+1],f=u,m=d),y){case p.M:f=t[v++],m=t[v++],u=f,d=m;break;case p.L:if(n){if(r.containStroke(u,d,t[v],t[v+1],e,i,c))return!0}else l+=h(u,d,t[v],t[v+1],i,c)||0;u=t[v++],d=t[v++];break;case p.C:if(n){if(o.containStroke(u,d,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],e,i,c))return!0}else l+=_(u,d,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],i,c)||0;u=t[v++],d=t[v++];break;case p.Q:if(n){if(a.containStroke(u,d,t[v++],t[v++],t[v],t[v+1],e,i,c))return!0}else l+=b(u,d,t[v++],t[v++],t[v],t[v+1],i,c)||0;u=t[v++],d=t[v++];break;case p.A:var w=t[v++],O=t[v++],S=t[v++],E=t[v++],A=t[v++],k=t[v++];v+=1;var T=1-t[v++],j=Math.cos(A)*S+w,M=Math.sin(A)*E+O;v>1?l+=h(u,d,j,M,i,c):(f=j,m=M);var C=(i-w)*E/S+w;if(n){if(s.containStroke(w,O,E,A,A+k,T,e,C,c))return!0}else l+=x(w,O,E,A,A+k,T,C,c);u=Math.cos(A+k)*S+w,d=Math.sin(A+k)*E+O;break;case p.R:f=u=t[v++],m=d=t[v++];var P=t[v++],I=t[v++];j=f+P,M=m+I;if(n){if(r.containStroke(f,m,j,m,e,i,c)||r.containStroke(j,m,j,M,e,i,c)||r.containStroke(j,M,f,M,e,i,c)||r.containStroke(f,M,f,m,e,i,c))return!0}else l+=h(j,m,j,M,i,c),l+=h(f,M,f,m,i,c);break;case p.Z:if(n){if(r.containStroke(u,d,f,m,e,i,c))return!0}else l+=h(u,d,f,m,i,c);u=f,d=m;break}}return n||g(d,m)||(l+=h(u,d,f,m,i,c)||0),0!==l}function O(t,e,n){return w(t,0,!1,e,n)}function S(t,e,n,i){return w(t,e,!0,n,i)}e.contain=O,e.containStroke=S},d9d0:function(t,e,n){var i=n("6d8b"),r=n("1687"),o=n("f934"),a=n("697e"),s=n("0f55"),c=n("2306"),l=n("3842"),u=n("ef6a"),h=i.each,p=Math.min,d=Math.max,f=Math.floor,g=Math.ceil,m=l.round,v=Math.PI;function y(t,e,n){this._axesMap=i.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function _(t,e){return p(d(t,e[0]),e[1])}function b(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function x(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,c=e.winInnerIndices,l=s,u=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),a.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],c=[0,s],l=this.dimensions.length,u=_(e.get("axisExpandWidth"),c),h=_(e.get("axisExpandCount")||0,[0,l]),p=e.get("axisExpandable")&&l>3&&l>h&&h>1&&u>0&&s>0,d=e.get("axisExpandWindow");if(d)t=_(d[1]-d[0],c),d[1]=d[0]+t;else{t=_(u*(h-1),c);var v=e.get("axisExpandCenter")||f(l/2);d=[u*v-t/2],d[1]=d[0]+t}var y=(s-t)/(l-h);y<3&&(y=0);var b=[f(m(d[0]/u,1))+1,g(m(d[1]/u,1))-1],x=y/u*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:y,axisExpandWindow:d,axisCount:l,winInnerIndices:b,axisExpandWindow0Pos:x}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),h(n,(function(e,n){var a=(i.axisExpandable?x:b)(n,i),s={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},c={horizontal:v/2,vertical:0},l=[s[o].x+t.x,s[o].y+t.y],u=c[o],h=r.create();r.rotate(h,h,u),r.translate(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.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,n,r){null==n&&(n=0),null==r&&(r=t.count());var o=this._axesMap,a=this.dimensions,s=[],c=[];i.each(a,(function(e){s.push(t.mapDimension(e)),c.push(o.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(c="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),a*=e.axisExpandWidth/l,a?u(a,i,o,"all"):c="none";else{r=i[1]-i[0];var g=o[1]*s/r;i=[d(0,g-r/2)],i[1]=p(o[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:c}}};var w=y;t.exports=w},d9f1:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),o=n("9e47"),a=n("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]}});i.merge(s.prototype,a);var c={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function l(t,e){return e.type||(e.data?"category":"value")}o("angle",s,l,c.angle),o("radius",s,l,c.radius)},d9fc:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=r},da34:function(t,e,n){"use strict";function i(t){return t.childNodes[0]}function r(t){return t.parentNode.childNodes[1]}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}))},dae1:function(t,e,n){var i=n("3eba");n("928d"),n("b369"),n("4411");var r=n("90c2"),o=n("9ca8");i.registerVisual(r),i.registerLayout(o)},db0e:function(t,e,n){var i=n("3eba");n("a8c6"),n("8344"),i.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}}))},db9e:function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("e86a"),a=n("2145"),s=n("2306"),c=n("4319"),l=n("80f0"),u=n("7919"),h=i.extendComponentView({type:"toolbox",render:function(t,e,n,i){var h=this.group;if(h.removeAll(),t.get("show")){var d=+t.get("itemSize"),f=t.get("feature")||{},g=this._features||(this._features={}),m=[];r.each(f,(function(t,e){m.push(e)})),new l(this._featureNames||[],m).add(v).update(v).remove(r.curry(v,null)).execute(),this._featureNames=m,u.layout(h,t,n),h.add(u.makeBackground(h.getBoundingRect(),t)),h.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=o.getBoundingRect(e,o.makeFont(i)),a=t.position[0]+h.position[0],s=t.position[1]+h.position[1]+d,c=!1;s+r.height>n.getHeight()&&(i.textPosition="top",c=!0);var l=c?-5-r.height:d+8;a+r.width/2>n.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):a-r.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}}))}function v(r,o){var s,l=m[r],u=m[o],h=f[l],d=new c(h,t,t.ecModel);if(l&&!u){if(p(l))s={model:d,onclick:d.option.onclick,featureName:l};else{var v=a.get(l);if(!v)return;s=new v(d,e,n)}g[l]=s}else{if(s=g[u],!s)return;s.model=d,s.ecModel=e,s.api=n}l||!u?d.get("show")&&!s.unusable?(y(d,s,l),d.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},s.render&&s.render(d,e,n,i)):s.remove&&s.remove(e,n):s.dispose&&s.dispose(e,n)}function y(i,o,a){var c=i.getModel("iconStyle"),l=i.getModel("emphasis.iconStyle"),u=o.getIcons?o.getIcons():i.get("icon"),p=i.get("title")||{};if("string"===typeof u){var f=u,g=p;u={},p={},u[a]=f,p[a]=g}var m=i.iconPaths={};r.each(u,(function(a,u){var f=s.createIcon(a,{},{x:-d/2,y:-d/2,width:d,height:d});f.setStyle(c.getItemStyle()),f.hoverStyle=l.getItemStyle(),s.setHoverStyle(f),t.get("showTitle")&&(f.__title=p[u],f.on("mouseover",(function(){var t=l.getItemStyle();f.setStyle({text:p[u],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})})).on("mouseout",(function(){f.setStyle({textFill:null})}))),f.trigger(i.get("iconStatus."+u)||"normal"),h.add(f),f.on("click",r.bind(o.onclick,o,e,n,u)),m[u]=f}))}},updateView:function(t,e,n,i){r.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,n,i)}))},remove:function(t,e){r.each(this._features,(function(n){n.remove&&n.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){r.each(this._features,(function(n){n.dispose&&n.dispose(t,e)}))}});function p(t){return 0===t.indexOf("my")}t.exports=h},dbc8:function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return h}));var i=n("7a6b"),r=n("87f2");function o(t,e){return!Object(i["c"])(t,"bpmn:CallActivity")&&(Object(i["c"])(t,"bpmn:SubProcess")?(e=e||Object(i["b"])(t),!(!e||!Object(i["c"])(e,"bpmndi:BPMNPlane"))||e&&!!e.isExpanded):!Object(i["c"])(t,"bpmn:Participant")||!!Object(i["a"])(t).processRef)}function a(t){return t&&!1!==Object(i["a"])(t).isInterrupting}function s(t){return t&&!!Object(i["a"])(t).triggeredByEvent}function c(t,e){var n=Object(i["a"])(t),o=!1;return n.eventDefinitions&&Object(r["i"])(n.eventDefinitions,(function(t){Object(i["c"])(t,e)&&(o=!0)})),o}function l(t){return c(t,"bpmn:ErrorEventDefinition")}function u(t){return c(t,"bpmn:EscalationEventDefinition")}function h(t){return c(t,"bpmn:CompensateEventDefinition")}},dc20:function(t,e,n){var i=n("8727"),r=i.createElement,o=n("6d8b"),a=n("4942"),s=n("cbe5"),c=n("0da8"),l=n("76a5"),u=n("0c12"),h=n("b16f"),p=n("9fa3"),d=n("bcaa1"),f=n("3f8e"),g=f.path,m=f.image,v=f.text;function y(t){return parseInt(t,10)}function _(t){return t instanceof s?g:t instanceof c?m:t instanceof l?v:g}function b(t,e){return e&&t&&e.parentNode!==t}function x(t,e,n){if(b(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function w(t,e){if(b(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function O(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function S(t){return t.__textSvgEl}function E(t){return t.__svgEl}var A=function(t,e,n,i){this.root=t,this.storage=e,this._opts=n=o.extend({},n||{});var a=r("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new h(i,a),this.clipPathManager=new p(i,a),this.shadowManager=new d(i,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgRoot=a,this._viewport=s,t.appendChild(s),s.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]};function k(t){return function(){a('In SVG mode painter not support method "'+t+'"')}}A.prototype={constructor:A,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},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._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n=this._svgRoot,i=this._visibleList,r=t.length,o=[];for(e=0;e=0;--i)if(e[i]===t)return!0;return!1}),n}return null}return n[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var o=this._svgRoot;o.setAttribute("width",t),o.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||y(s[n])||y(a.style[n]))-(y(s[r])||0)-(y(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){this.refresh();var t=this._svgRoot.outerHTML;return"data:image/svg+xml;charset=UTF-8,"+t}},o.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){A.prototype[t]=k(t)}));var T=A;t.exports=T},dc2f:function(t,e){var n=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};n.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var i=n;t.exports=i},dcb3:function(t,e,n){var i=n("6d8b"),r=n("625e"),o=n("2306"),a=n("cd33"),s=n("607d"),c=n("88b3"),l=n("e0d3"),u=l.makeInner,h=u(),p=i.clone,d=i.bind;function f(){}function g(t,e,n,i){m(h(n).lastProp,i)||(h(n).lastProp=i,e?o.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function m(t,e){if(i.isObject(t)&&i.isObject(e)){var n=!0;return i.each(e,(function(e,i){n=n&&m(t[i],e)})),!!n}return t===e}function v(t,e){t[e.get("label.show")?"show":"hide"]()}function y(t){return{position:t.position.slice(),rotation:t.rotation||0}}function _(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}f.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,r){var a=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var c=this._group,l=this._handle;if(!s||"hide"===s)return c&&c.hide(),void(l&&l.hide());c&&c.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,n);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var p=this._moveAnimation=this.determineAnimation(t,e);if(c){var d=i.curry(g,e,p);this.updatePointerEl(c,u,d,e),this.updateLabelEl(c,u,d,e)}else c=this._group=new o.Group,this.createPointerEl(c,u,t,e),this.createLabelEl(c,u,t,e),n.getZr().add(c);_(c,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(o){var c=a.getAxisInfo(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/c>s}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var a=h(t).pointerEl=new o[r.type](p(e.pointer));t.add(a)}},createLabelEl:function(t,e,n,i){if(e.label){var r=h(t).labelEl=new o.Rect(p(e.label));t.add(r),v(r,i)}},updatePointerEl:function(t,e,n){var i=h(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=h(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),v(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,l=n.getModel("handle"),u=n.get("status");if(!l.get("show")||!u||"hide"===u)return a&&r.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=o.createIcon(l.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:d(this._onHandleDragMove,this,0,0),drift:d(this._onHandleDragMove,this),ondragend:d(this._onHandleDragEnd,this)}),r.add(a)),_(a,n,!1);var h=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];a.setStyle(l.getItemStyle(null,h));var p=l.get("size");i.isArray(p)||(p=[p,p]),a.attr("scale",[p[0]/2,p[1]/2]),c.createOrUpdate(this,"_doDispatchAxisPointer",l.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 n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y(i)),h(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},f.prototype.constructor=f,r.enableClassExtend(f);var b=f;t.exports=b},dcea:function(t,e,n){var i=n("6d8b"),r=n("e887"),o=n("2306"),a=n("cbe5"),s=["itemStyle"],c=["emphasis","itemStyle"],l=r.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=h(e,i,t,a,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?p(s,n,i,t):n=h(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:i.noop}),u=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i");return Object(i["a"])(new n,e)}},dd7e:function(t,e,n){var i=n("6d8b"),r=n("edaf"),o=n("38a2"),a=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:[]}});i.mixin(a,o);var s=a;t.exports=s},dda7:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("e506"),r=/^djs-cursor-.*$/;function o(t){var e=Object(i["c"])(document.body);e.removeMatching(r),t&&e.add("djs-cursor-"+t)}function a(){o(null)}},dded:function(t,e,n){var i=n("6d8b"),r=n("42e5"),o=function(t,e,n,i,o){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=o||!1,r.call(this,i)};o.prototype={constructor:o},i.inherits(o,r);var a=o;t.exports=a},de00:function(t,e){var n=2311;function i(){return n++}t.exports=i},de1c:function(t,e){var n={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=n},de6e:function(t,e){function n(t){return t instanceof Array||(t=[t,t]),t}function i(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),i=t.getEdgeData(),r=n(t.get("edgeSymbol")),o=n(t.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",o&&o[0]),i.setVisual("toSymbolSize",o&&o[1]),i.setVisual("color",t.get(a)),i.setVisual("opacity",t.get(s)),i.each((function(t){var r=i.getItemModel(t),o=e.getEdgeByIndex(t),c=n(r.getShallow("symbol",!0)),l=n(r.getShallow("symbolSize",!0)),u=r.get(a),h=r.get(s);switch(u){case"source":u=o.node1.getVisual("color");break;case"target":u=o.node2.getVisual("color");break}c[0]&&o.setVisual("fromSymbol",c[0]),c[1]&&o.setVisual("toSymbol",c[1]),l[0]&&o.setVisual("fromSymbolSize",l[0]),l[1]&&o.setVisual("toSymbolSize",l[1]),o.setVisual("color",u),o.setVisual("opacity",h)}))}))}t.exports=i},df3a:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),o=n("282b"),a=n("9e47"),s=n("3842"),c=n("2023"),l=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;n>=0;n--)s.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i40&&(l=Math.max(1,Math.floor(s/40)));for(var u=a[0],p=t.dataToCoord(u+1)-t.dataToCoord(u),d=Math.abs(p*Math.cos(i)),f=Math.abs(p*Math.sin(i)),g=0,m=0;u<=a[1];u+=l){var v=0,y=0,_=r.getBoundingRect(n(u),e.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var b=g/d,x=m/f;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(b,x))),S=h(t.model),E=S.lastAutoInterval,A=S.lastTickCount;return null!=E&&null!=A&&Math.abs(E-w)<=1&&Math.abs(A-s)<=1&&E>w?w=E:(S.lastTickCount=s,S.lastAutoInterval=w),w}function O(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 S(t,e,n){var i=c(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),h=o[0],p=r.count();0!==h&&l>1&&p/l>2&&(h=Math.round(Math.ceil(h/l)*l));var d=u(t),f=a.get("showMinLabel")||d,g=a.get("showMaxLabel")||d;f&&h!==o[0]&&v(o[0]);for(var m=h;m<=o[1];m+=l)v(m);function v(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&m!==o[1]&&v(o[1]),s}function E(t,e,n){var r=t.scale,o=c(t),a=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t);e(t,i)&&a.push(n?t:{formattedLabel:o(t),rawLabel:i,tickValue:t})})),a}e.createAxisLabels=p,e.createAxisTicks=d,e.calculateCategoryInterval=w},e0d3:function(t,e,n){var i=n("6d8b"),r=n("22d1"),o=i.each,a=i.isObject,s=i.isArray,c="series\0";function l(t){return t instanceof Array?t:null==t?[]:[t]}function u(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i=n.length&&n.push({option:t})}})),n}function g(t){var e=i.createHashMap();o(t,(function(t,n){var i=t.exist;i&&e.set(i.id,t)})),o(t,(function(t,n){var r=t.option;i.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={})})),o(t,(function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(a(r)){if(o.name=null!=r.name?r.name+"":i?i.name:c+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,t)}}))}function m(t){var e=t.name;return!(!e||!e.indexOf(c))}function v(t){return a(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function y(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=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[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 n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0});var o=r;t.exports=o},e116:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=n("6b8b");function r(t,e,n,r,o){var a=Object(i["h"])();a.setTranslate(e,n);var s=Object(i["h"])();s.setRotate(r||0,0,0);var c=Object(i["h"])();c.setScale(o||1,o||1),Object(i["k"])(t,[a,s,c])}function o(t,e,n){var r=Object(i["h"])();r.setTranslate(e,n),Object(i["k"])(t,r)}function a(t,e){var n=Object(i["h"])();n.setRotate(e,0,0),Object(i["k"])(t,n)}},e1fc:function(t,e,n){var i=n("6d8b"),r=n("d5b7"),o=n("9850"),a=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};a.prototype={constructor:a,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,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,o=i.indexOf(r,t);return o<0||(r.splice(o,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof a&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(u[0]=c(o)*n+t,u[1]=s(o)*r+e,h[0]=c(a)*n+t,h[1]=s(a)*r+e,m(f,u,h),v(g,u,h),o%=l,o<0&&(o+=l),a%=l,a<0&&(a+=l),o>a&&!d?a+=l:oo&&(p[0]=c(b)*n+t,p[1]=s(b)*r+e,m(f,p,f),v(g,p,g))}e.fromPoints=d,e.fromLine=f,e.fromCubic=v,e.fromQuadratic=y,e.fromArc=_},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e468:function(t,e,n){var i=n("e46b"),r=n("6d8b"),o=n("2f45"),a=o.getDimensionTypeByAxis,s={_baseAxisDim:null,getInitialData:function(t,e){var n,o,s=e.getComponent("xAxis",this.get("xAxisIndex")),c=e.getComponent("yAxis",this.get("yAxisIndex")),l=s.get("type"),u=c.get("type");"category"===l?(t.layout="horizontal",n=s.getOrdinalMeta(),o=!0):"category"===u?(t.layout="vertical",n=c.getOrdinalMeta(),o=!0):t.layout=t.layout||"horizontal";var h=["x","y"],p="horizontal"===t.layout?0:1,d=this._baseAxisDim=h[p],f=h[1-p],g=[s,c],m=g[p].get("type"),v=g[1-p].get("type"),y=t.data;if(y&&o){var _=[];r.each(y,(function(t,e){var n;t.value&&r.isArray(t.value)?(n=t.value.slice(),t.value.unshift(e)):r.isArray(t)?(n=t.slice(),t.unshift(e)):n=t,_.push(n)})),t.data=_}var b=this.defaultValueDimensions;return i(this,{coordDimensions:[{name:d,type:a(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:a(v),dimsDef:b.slice()}],dimensionsCount:b.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=s},e46b:function(t,e,n){var i=n("b1d4"),r=n("6179"),o=n("6d8b"),a=o.extend,s=o.isArray;function c(t,e,n){e=s(e)&&{coordDimensions:e}||a({},e);var o=t.getSource(),c=i(o,e),l=new r(c,t);return l.initData(o,n),l}t.exports=c},e47b:function(t,e,n){var i=n("e0d3"),r=i.makeInner,o=i.normalizeToArray,a=r();function s(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}var c={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=a(e),r=i.colorIdx||0,c=i.colorNameMap=i.colorNameMap||{};if(c.hasOwnProperty(t))return c[t];var l=o(this.get("color",!0)),u=this.get("colorLayer",!0),h=null!=n&&u?s(u,n):l;if(h=h||l,h&&h.length){var p=h[r];return t&&(c[t]=p),i.colorIdx=(r+1)%h.length,p}}};t.exports=c},e506:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return S})),n.d(e,"f",(function(){return R})),n.d(e,"g",(function(){return L})),n.d(e,"h",(function(){return M})),n.d(e,"i",(function(){return w})),n.d(e,"j",(function(){return F})),n.d(e,"k",(function(){return V})),n.d(e,"l",(function(){return H}));var i=Object.prototype.toString,r=Object.prototype.hasOwnProperty;function o(t){return void 0===t}function a(t){return"[object Array]"===i.call(t)}function s(t,e){return r.call(t,e)}function c(t,e){var n,i;if(!o(t)){var r=a(t)?u:l;for(var c in t)if(s(t,c)&&(n=t[c],i=e(n,r(c)),!1===i))return n}}function l(t){return t}function u(t){return Number(t)}function h(t){for(var e=t.style,n=arguments.length,i=Array(n>1?n-1:0),r=1;r
    a',N=!D.getElementsByTagName("link").length,D=void 0);var B={legend:[1,"
    ","
    "],tr:[2,"","
    "],col:[2,"","
    "],_default:N?[1,"X
    ","
    "]:[0,"",""]};function z(t,e){if("string"!=typeof t)throw new TypeError("String expected");e||(e=document);var n=/<([\w:]+)/.exec(t);if(!n)return e.createTextNode(t);t=t.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){var r=e.createElement("html");return r.innerHTML=t,r.removeChild(r.lastChild)}var o=B[i]||B._default,a=o[0],s=o[1],c=o[2];r=e.createElement("div");r.innerHTML=s+t+c;while(a--)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);var l=e.createDocumentFragment();while(r.firstChild)l.appendChild(r.removeChild(r.firstChild));return l}function F(t,e){return e=e||document,e.querySelector(t)}function V(t,e){return e=e||document,e.querySelectorAll(t)}function H(t){t.parentNode&&t.parentNode.removeChild(t)}B.td=B.th=[3,"","
    "],B.option=B.optgroup=[1,'"],B.thead=B.tbody=B.colgroup=B.caption=B.tfoot=[1,"","
    "],B.polyline=B.ellipse=B.polygon=B.circle=B.text=B.line=B.path=B.rect=B.g=[1,'',""]},e552:function(t,e,n){"use strict";var i,r;function o(t,e,n){var i=function(e,n){return t.js_beautify(e,n)};return i.js=t.js_beautify,i.css=e.css_beautify,i.html=n.html_beautify,i.js_beautify=t.js_beautify,i.css_beautify=e.css_beautify,i.html_beautify=n.html_beautify,i}i=[n("e943"),n("4d7c"),n("a6c1")],r=function(t,e,n){return o(t,e,n)}.apply(e,i),void 0===r||(t.exports=r)},e5ab:function(t,e,n){"use strict";var i=/,?([a-z]),?/gi,r=parseFloat,o=Math,a=o.PI,s=o.min,c=o.max,l=o.pow,u=o.abs,h=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,p=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,d=Array.isArray||function(t){return t instanceof Array};function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function g(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)f(t,n)&&(e[n]=g(t[n]));return e}function m(t,e){for(var n=0,i=t.length;n=1e3&&delete r[o.shift()],o.push(i),r[i]=t.apply(0,n),r[i])}return e}function y(t){if(!t)return null;var e=_(t);if(e.arr)return g(e.arr);var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return d(t)&&d(t[0])&&(i=g(t)),i.length||String(t).replace(h,(function(t,e,r){var o=[],a=e.toLowerCase();r.replace(p,(function(t,e){e&&o.push(+e)})),"m"==a&&o.length>2&&(i.push([e].concat(o.splice(0,2))),a="l",e="m"==e?"l":"L");while(o.length>=n[a])if(i.push([e].concat(o.splice(0,n[a]))),!n[a])break})),i.toString=_.toString,e.arr=g(i),i}function _(t){var e=_.ps=_.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var n in e)f(e,n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])})),e[t]}function b(t,e,n,i){return 1===arguments.length&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,height:i,x2:t+n,y2:e+i}}function x(){return this.join(",").replace(i,"$1")}function w(t){var e=g(t);return e.toString=x,e}function O(t,e,n,i,r,o,a,s,c){var u=1-c,h=l(u,3),p=l(u,2),d=c*c,f=d*c,g=h*t+3*p*c*n+3*u*c*c*r+f*a,m=h*e+3*p*c*i+3*u*c*c*o+f*s;return{x:M(g),y:M(m)}}function S(t){var e=B.apply(null,t);return b(e.x0,e.y0,e.x1-e.x0,e.y1-e.y0)}function E(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function A(t,e){return t=b(t),e=b(e),E(e,t.x,t.y)||E(e,t.x2,t.y)||E(e,t.x,t.y2)||E(e,t.x2,t.y2)||E(t,e.x,e.y)||E(t,e.x2,e.y)||E(t,e.x,e.y2)||E(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}function k(t,e,n,i,r){var o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}function T(t,e,n,i,r,a,s,c,l){null==l&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,h=12,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,g=0;gc(r,a)||c(e,i)c(o,l))){var u=(t*i-e*n)*(r-a)-(t-n)*(r*l-o*a),h=(t*i-e*n)*(o-l)-(e-i)*(r*l-o*a),p=(t-n)*(o-l)-(e-i)*(r-a);if(p){var d=M(u/p),f=M(h/p),g=+d.toFixed(2),m=+f.toFixed(2);if(!(g<+s(t,n).toFixed(2)||g>+c(t,n).toFixed(2)||g<+s(r,a).toFixed(2)||g>+c(r,a).toFixed(2)||m<+s(e,i).toFixed(2)||m>+c(e,i).toFixed(2)||m<+s(o,l).toFixed(2)||m>+c(o,l).toFixed(2)))return{x:d,y:f}}}}function M(t){return Math.round(1e11*t)/1e11}function C(t,e,n){var i=S(t),r=S(e);if(!A(i,r))return n?0:[];for(var o=T.apply(0,t),a=T.apply(0,e),s=D(t)?1:~~(o/5)||1,c=D(e)?1:~~(a/5)||1,l=[],h=[],p={},d=n?0:[],f=0;f=0&&M<=1&&C>=0&&C<=1&&(n?d++:d.push({x:k.x,y:k.y,t1:M,t2:C}))}}return d}function P(t,e,n){t=z(t),e=z(e);for(var i,r,o,a,s,c,l,u,h,p,d=n?0:[],f=0,g=t.length;f1&&(x=o.sqrt(x),n*=x,i*=x);var w=n*n,O=i*i,S=(s==c?-1:1)*o.sqrt(u((w*O-w*b*b-O*_*_)/(w*b*b+O*_*_))),E=S*n*b/i+(t+l)/2,A=S*-i*_/n+(e+h)/2,k=o.asin(((e-A)/i).toFixed(9)),T=o.asin(((h-A)/i).toFixed(9));k=tT&&(k-=2*a),!c&&T>k&&(T-=2*a)}var j=T-k;if(u(j)>f){var M=T,C=l,P=h;T=k+f*(c&&T>k?1:-1),l=E+n*o.cos(T),h=A+i*o.sin(T),m=N(l,h,n,i,r,0,c,C,P,[T,M,E,A])}j=T-k;var I=o.cos(k),D=o.sin(k),R=o.cos(T),L=o.sin(T),B=o.tan(j/4),z=4/3*n*B,F=4/3*i*B,V=[t,e],H=[t+z*D,e-F*I],G=[l+z*L,h-F*R],q=[l,h];if(H[0]=2*V[0]-H[0],H[1]=2*V[1]-H[1],p)return[H,G,q].concat(m);m=[H,G,q].concat(m).join().split(",");for(var W=[],U=0,$=m.length;U<$;U++)W[U]=U%2?y(m[U-1],m[U],g).y:y(m[U],m[U+1],g).x;return W}function B(t,e,n,i,r,a,l,h){for(var p,d,f,g,m,v,y,_,b=[],x=[[],[]],w=0;w<2;++w)if(0==w?(d=6*t-12*n+6*r,p=-3*t+9*n-9*r+3*l,f=3*n-3*t):(d=6*e-12*i+6*a,p=-3*e+9*i-9*a+3*h,f=3*i-3*e),u(p)<1e-12){if(u(d)<1e-12)continue;g=-f/d,07){t[e].shift();var i=t[e];while(i.length)s[e]="A",t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),h=n.length}},s=[],c="",l="",u=0,h=n.length;u=Math.pow(2,t)?e(t,n):a};e.rack=function(t,n,i){var r=function(r){var a=0;do{if(a++>10){if(!i)throw new Error("too many ID collisions, use more bits");t+=i}var s=e(t,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=r,s},o=r.hats={};return r.get=function(t){return r.hats[t]},r.set=function(t,e){return r.hats[t]=e,r},r.bits=t||128,r.base=n||16,r}}));function o(t){if(!(this instanceof o))return new o(t);t=t||[128,36,1],this._seed=t.length?r.rack(t[0],t[1],t[2]):t}o.prototype.next=function(t){return this._seed(t||!0)},o.prototype.nextPrefixed=function(t,e){var n;do{n=t+this.next(!0)}while(this.assigned(n));return this.claim(n,e),n},o.prototype.claim=function(t,e){this._seed.set(t,e||!0)},o.prototype.assigned=function(t){return this._seed.get(t)||!1},o.prototype.unclaim=function(t){delete this._seed.hats[t]},o.prototype.clear=function(){var t,e=this._seed.hats;for(t in e)this.unclaim(t)},e["a"]=o},e6cd:function(t,e,n){var i=n("6d8b");function r(){var t,e=[],n={};return{add:function(t,r,o,a,s){return i.isString(a)&&(s=a,a=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:r,time:o,delay:a,easing:s}),!0)},done:function(e){return t=e,this},start:function(){for(var i=e.length,r=0,o=e.length;r=1&&e<=31||127==e||0==r&&e>=48&&e<=57||1==r&&e>=48&&e<=57&&45==a?"\\"+e.toString(16)+" ":(0!=r||1!=i||45!=e)&&(e>=128||45==e||95==e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122)?n.charAt(r):"\\"+n.charAt(r):"�";return o};return t.CSS||(t.CSS={}),t.CSS.escape=e,e}))}).call(this,n("c8ba"))},e7aa:function(t,e,n){var i=n("2306"),r=n("c775"),o=r.getDefaultLabel;function a(t,e,n,r,a,c,l){var u=n.getModel("label"),h=n.getModel("emphasis.label");i.setLabelStyle(t,e,u,h,{labelFetcher:a,labelDataIndex:c,defaultText:o(a.getData(),c),isRectText:!0,autoColor:r}),s(t),s(e)}function s(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=a},e7d2:function(t,e,n){var i=n("4a3f");function r(t,e,n,r,o,a,s,c,l,u,h){if(0===l)return!1;var p=l;if(h>e+p&&h>r+p&&h>a+p&&h>c+p||ht+p&&u>n+p&&u>o+p&&u>s+p||ud&&(p=0,h={}),p++,h[n]=r,r}function _(t,e,n,i,r,o,a,s){return a?x(t,e,n,i,r,o,a,s):b(t,e,n,i,r,o,s)}function b(t,e,n,r,o,a,s){var c=C(t,e,o,a,s),l=y(t,e);o&&(l+=o[1]+o[3]);var u=c.outerHeight,h=w(0,l,n),p=O(0,u,r),d=new i(h,p,l,u);return d.lineHeight=c.lineHeight,d}function x(t,e,n,r,o,a,s,c){var l=P(t,{rich:s,truncate:c,font:e,textAlign:n,textPadding:o,textLineHeight:a}),u=l.outerWidth,h=l.outerHeight,p=w(0,u,n),d=O(0,h,r);return new i(p,d,u,h)}function w(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function O(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function S(t,e,n){var i=e.x,r=e.y,o=e.height,a=e.width,s=o/2,c="left",l="top";switch(t){case"left":i-=n,r+=s,c="right",l="middle";break;case"right":i+=n+a,r+=s,l="middle";break;case"top":i+=a/2,r-=n,c="center",l="bottom";break;case"bottom":i+=a/2,r+=o+n,c="center";break;case"inside":i+=a/2,r+=s,c="center",l="middle";break;case"insideLeft":i+=n,r+=s,l="middle";break;case"insideRight":i+=a-n,r+=s,c="right",l="middle";break;case"insideTop":i+=a/2,r+=n,c="center";break;case"insideBottom":i+=a/2,r+=o-n,c="center",l="bottom";break;case"insideTopLeft":i+=n,r+=n;break;case"insideTopRight":i+=a-n,r+=n,c="right";break;case"insideBottomLeft":i+=n,r+=o-n,l="bottom";break;case"insideBottomRight":i+=a-n,r+=o-n,c="right",l="bottom";break}return{x:i,y:r,textAlign:c,textVerticalAlign:l}}function E(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=A(e,n,i,r);for(var a=0,s=o.length;a=o;l++)a-=o;var u=y(n,e);return u>a&&(n="",u=0),a=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=a,i.containerWidth=t,i}function k(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=y(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?T(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=y(t,i)}return""===t&&(t=e.placeholder),t}function T(t,e,n,i){for(var r=0,o=0,a=t.length;ou)t="",a=[];else if(null!=h)for(var p=A(h-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),d=0,f=a.length;do&&I(n,t.substring(o,a)),I(n,i[2],i[1]),o=f.lastIndex}ov)return{lines:[],width:0,height:0};S.textWidth=y(S.text,T);var C=A.textWidth,P=null==C||"auto"===C;if("string"===typeof C&&"%"===C.charAt(C.length-1))S.percentWidth=C,p.push(S),C=0;else{if(P){C=S.textWidth;var D=A.textBackgroundColor,R=D&&D.image;R&&(R=r.findExistImage(R),r.isImageReady(R)&&(C=Math.max(C,R.width*M/R.height)))}var L=k?k[1]+k[3]:0;C+=L;var N=null!=m?m-w:null;null!=N&&Nn&&(n=t.line_indent_level));var i={mode:e,parent:t,last_token:t?t.last_token:new r(u.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return i},k.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(b.BlockStatement);var n=new s(t,this._options);return this._tokens=n.tokenize(),t},k.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t,e=this._reset(this._source_text),n=this._options.eol;"auto"===this._options.eol&&(n="\n",e&&o.lineBreak.test(e||"")&&(n=e.match(o.lineBreak)[0]));var i=this._tokens.next();while(i)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return t=this._output.get_code(n),t},k.prototype.handle_token=function(t,e){t.type===u.START_EXPR?this.handle_start_expr(t):t.type===u.END_EXPR?this.handle_end_expr(t):t.type===u.START_BLOCK?this.handle_start_block(t):t.type===u.END_BLOCK?this.handle_end_block(t):t.type===u.WORD||t.type===u.RESERVED?this.handle_word(t):t.type===u.SEMICOLON?this.handle_semicolon(t):t.type===u.STRING?this.handle_string(t):t.type===u.EQUALS?this.handle_equals(t):t.type===u.OPERATOR?this.handle_operator(t):t.type===u.COMMA?this.handle_comma(t):t.type===u.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===u.COMMENT?this.handle_comment(t,e):t.type===u.DOT?this.handle_dot(t):t.type===u.EOF?this.handle_eof(t):(t.type,u.UNKNOWN,this.handle_unknown(t,e))},k.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,i=this._options.keep_array_indentation&&O(this._flags.mode);if(t.comments_before){var r=t.comments_before.next();while(r)this.handle_whitespace_and_comments(r,e),this.handle_token(r,e),r=t.comments_before.next()}if(i)for(var o=0;o0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var a=1;a0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},k.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},k.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===b.Statement&&x(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},k.prototype.start_of_object_property=function(){return this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||g(this._flags.last_token,["get","set"]))},k.prototype.start_of_statement=function(t){var e=!1;return e=e||g(this._flags.last_token,["var","let","const"])&&t.type===u.WORD,e=e||f(this._flags.last_token,"do"),e=e||!(this._flags.parent.mode===b.ObjectLiteral&&this._flags.mode===b.Statement)&&g(this._flags.last_token,T)&&!t.newlines,e=e||f(this._flags.last_token,"else")&&!(f(t,"if")&&!t.comments_before),e=e||this._flags.last_token.type===u.END_EXPR&&(this._previous_flags.mode===b.ForInitializer||this._previous_flags.mode===b.Conditional),e=e||this._flags.last_token.type===u.WORD&&this._flags.mode===b.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==u.WORD&&t.type!==u.RESERVED,e=e||this._flags.mode===b.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||g(this._flags.last_token,["get","set"])),!!e&&(this.set_mode(b.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,g(t,["do","for","if","while"])),!0)},k.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=b.Expression;if("["===t.text){if(this._flags.last_token.type===u.WORD||")"===this._flags.last_token.text)return g(this._flags.last_token,c)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=b.ArrayLiteral,O(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),h(this._flags.last_token.type,[u.START_EXPR,u.END_EXPR,u.WORD,u.OPERATOR])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===u.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=b.ForInitializer):h(this._flags.last_token.text,["if","while"])?(this._output.space_before_token=this._options.space_before_conditional,e=b.Conditional):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(h(this._flags.last_token.text,c)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===u.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);g(n,["async","function"])||"*"===n.text&&g(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b.ObjectLiteral&&("{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===u.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===u.START_BLOCK?this.print_newline():this._flags.last_token.type!==u.END_EXPR&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==u.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},k.prototype.handle_end_expr=function(t){while(this._flags.mode===b.Statement)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&O(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==u.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),x(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===b.Conditional&&(this._previous_flags.mode=b.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},k.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR?(this.set_mode(b.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(b.BlockStatement):n&&(h(n.text,[":",","])&&h(e.type,[u.STRING,u.WORD,u.RESERVED])||h(e.text,["get","set","..."])&&h(n.type,[u.WORD,u.RESERVED]))?h(this._last_last_text,["class","interface"])?this.set_mode(b.BlockStatement):this.set_mode(b.ObjectLiteral):this._flags.last_token.type===u.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(b.BlockStatement):h(this._flags.last_token.type,[u.EQUALS,u.START_EXPR,u.COMMA,u.OPERATOR])||g(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b.ObjectLiteral):this.set_mode(b.BlockStatement);var i=!e.comments_before&&"}"===e.text,r=i&&"function"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR;if(this._options.brace_preserve_inline){var o=0,a=null;this._flags.inline_frame=!0;do{if(o+=1,a=this._tokens.peek(o-1),a.newlines){this._flags.inline_frame=!1;break}}while(a.type!==u.EOF&&(a.type!==u.END_BLOCK||a.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==u.OPERATOR&&(r||this._flags.last_token.type===u.EQUALS||g(this._flags.last_token,m)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!O(this._previous_flags.mode)||this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.COMMA||((this._flags.last_token.type===u.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==u.OPERATOR&&this._flags.last_token.type!==u.START_EXPR&&(this._flags.last_token.type!==u.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},k.prototype.handle_end_block=function(t){this.handle_whitespace_and_comments(t);while(this._flags.mode===b.Statement)this.restore_mode();var e=this._flags.last_token.type===u.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(O(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},k.prototype.handle_word=function(t){if(t.type===u.RESERVED)if(h(t.text,["set","get"])&&this._flags.mode!==b.ObjectLiteral)t.type=u.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=u.WORD;else if(h(t.text,["as","from"])&&!this._flags.import_block)t.type=u.WORD;else if(this._flags.mode===b.ObjectLiteral){var e=this._tokens.peek();":"===e.text&&(t.type=u.WORD)}if(this.start_of_statement(t)?g(this._flags.last_token,["var","let","const"])&&t.type===u.WORD&&(this._flags.declaration_statement=!0):!t.newlines||S(this._flags.mode)||this._flags.last_token.type===u.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===u.EQUALS||!this._options.preserve_newlines&&g(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(f(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&f(t,"else"))this._flags.else_block=!0;else{while(this._flags.mode===b.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&g(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==u.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.EQUALS&&this._flags.last_token.type!==u.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),f(t,"function"))return(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!h(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==u.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD?g(this._flags.last_token,["get","set","new","export"])||g(this._flags.last_token,T)||f(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===u.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!O(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var n="NONE";if(this._flags.last_token.type===u.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":g(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&this._flags.mode===b.BlockStatement?n="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&S(this._flags.mode)?n="SPACE":this._flags.last_token.type===u.STRING?n="NEWLINE":this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===b.ObjectLiteral&&h(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===u.START_BLOCK?n=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===u.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),g(t,c)&&")"!==this._flags.last_token.text&&(n=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),g(t,["else","catch","finally"]))if((this._flags.last_token.type!==u.END_BLOCK||this._previous_flags.mode!==b.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var i=this._output.current_line;"}"!==i.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===n?g(this._flags.last_token,m)||"declare"===this._flags.last_token.text&&g(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==u.END_EXPR?this._flags.last_token.type===u.START_EXPR&&g(t,["var","let","const"])||":"===this._flags.last_token.text||(f(t,"if")&&f(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):g(t,c)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===n&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==u.WORD&&t.previous.type!==u.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===u.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&f(t,"from")&&(this._flags.import_block=!1))},k.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);var e=this._tokens.peek();while(this._flags.mode===b.Statement&&(!this._flags.if_block||!f(e,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},k.prototype.handle_string=function(t){this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR||this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},k.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},k.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===b.ObjectLiteral||this._flags.mode===b.Statement&&this._flags.parent.mode===b.ObjectLiteral?(this._flags.mode===b.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},k.prototype.handle_operator=function(t){var e="*"===t.text&&(g(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[u.START_BLOCK,u.COMMA,u.END_BLOCK,u.SEMICOLON])),n=h(t.text,["-","+"])&&(h(this._flags.last_token.type,[u.START_BLOCK,u.START_EXPR,u.EQUALS,u.OPERATOR])||h(this._flags.last_token.text,c)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var i=!e;this.handle_whitespace_and_comments(t,i)}if(g(this._flags.last_token,m))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==u.DOT)if("::"!==t.text){if(this._flags.last_token.type===u.OPERATOR&&h(this._options.operator_position,_)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==u.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var r=!0,o=!0,a=!1;if(":"===t.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,a=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&h(t.text,l)){var s=":"===t.text,p=s&&a,d=s&&!a;switch(this._options.operator_position){case y.before_newline:return this._output.space_before_token=!d,this.print_token(t),s&&!p||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case y.after_newline:return this._output.space_before_token=!0,!s||p?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case y.preserve_newline:return d||this.allow_wrap_or_preserved_newline(t),r=!(this._output.just_added_newline()||d),this._output.space_before_token=r,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),r=!1;var f=this._tokens.peek();o=f&&h(f.type,[u.WORD,u.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),r=this._flags.last_token.type===u.START_BLOCK,o=!1):(h(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR||this.allow_wrap_or_preserved_newline(t),r=!1,o=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&S(this._flags.mode)&&(r=!0),this._flags.last_token.type===u.RESERVED?r=!0:this._flags.last_token.type===u.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===u.OPERATOR&&(r=h(t.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(t.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(o=!0)),(this._flags.mode!==b.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==b.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||r,this.print_token(t),this._output.space_before_token=o}else this.print_token(t);else this.print_token(t)},k.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},k.prototype.print_block_commment=function(t,e){var n,i=w(t.text),r=!1,o=!1,a=t.whitespace_before,s=a.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(i[0]),this.print_newline(!1,e),i.length>1){for(i=i.slice(1),r=E(i,"*"),o=A(i,a),r&&(this._flags.alignment=1),n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function o(t,e){this.__indent_cache=new r(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},r.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},r.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},r.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},r.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},o.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=o},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},function(t,e,n){"use strict";var i="\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",s="(?:\\\\u[0-9a-fA-F]{4}|["+i+o+"])",c="(?:\\\\u[0-9a-fA-F]{4}|["+r+o+a+"])*";e.identifier=new RegExp(s+c,"g"),e.identifierStart=new RegExp(s),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+r+o+a+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){"use strict";var i=n(6).Options,r=["before-newline","after-newline","preserve-newline"];function o(t){i.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o>> === !== << && >= ** != == <= >> || < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= = ! ? > < : / ^ - + * & % ~ |";v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),v=v.replace(/ /g,"|");var y,_=new RegExp(v),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),w=new RegExp("^(?:"+x.join("|")+")$"),O=function(t,e){r.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new c(this._input),i=new l(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(s.identifier).matching(s.identifierMatch),number:n.matching(d),punct:n.matching(_),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(s.lineBreak),shebang:n.starting_with(/#!/).until_after(s.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};function S(t){var e="",n=0,r=new i(t),o=null;while(r.hasNext())if(o=r.match(/([\s]|[^\\]|\\\\)+/g),o&&(e+=o[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())o=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){e+="\\",r.hasNext()&&(e+=r.next());continue}o=r.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if(n=parseInt(o[1],16),n>126&&n<=255&&0===o[0].indexOf("x"))return t;if(n>=0&&n<32){e+="\\"+o[0];continue}e+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}O.prototype=new r,O.prototype._is_comment=function(t){return t.type===h.COMMENT||t.type===h.BLOCK_COMMENT||t.type===h.UNKNOWN},O.prototype._is_opening=function(t){return t.type===h.START_BLOCK||t.type===h.START_EXPR},O.prototype._is_closing=function(t,e){return(t.type===h.END_BLOCK||t.type===h.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},O.prototype._reset=function(){y=!1},O.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(h.EOF,""):(n=n||this._read_string(i),n=n||this._read_word(t),n=n||this._read_singles(i),n=n||this._read_comment(i),n=n||this._read_regexp(i,t),n=n||this._read_xml(i,t),n=n||this._read_non_javascript(i),n=n||this._read_punctuation(),n=n||this._create_token(h.UNKNOWN,this._input.next()),n)},O.prototype._read_word=function(t){var e;return e=this.__patterns.identifier.read(),""!==e?(e=e.replace(s.allLineBreaks,"\n"),t.type!==h.DOT&&(t.type!==h.RESERVED||"set"!==t.text&&"get"!==t.text)&&w.test(e)?"in"===e||"of"===e?this._create_token(h.OPERATOR,e):this._create_token(h.RESERVED,e):this._create_token(h.WORD,e)):(e=this.__patterns.number.read(),""!==e?this._create_token(h.WORD,e):void 0)},O.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(h.START_EXPR,t):")"===t||"]"===t?e=this._create_token(h.END_EXPR,t):"{"===t?e=this._create_token(h.START_BLOCK,t):"}"===t?e=this._create_token(h.END_BLOCK,t):";"===t?e=this._create_token(h.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(h.DOT,t):","===t&&(e=this._create_token(h.COMMA,t)),e&&this._input.next(),e},O.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(h.EQUALS,t):this._create_token(h.OPERATOR,t)},O.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read(),e))return this._create_token(h.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read(),e)return this._create_token(h.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){do{t=this._input.next(),n+=t}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read(),e){while(this._input.hasNext()&&!this._input.testChar(s.newline))e+=this._input.next();return y=!0,this._create_token(h.COMMENT,e)}}else if(y&&"-"===t&&(e=this.__patterns.html_comment_end.read(),e))return y=!1,this._create_token(h.COMMENT,e);return null},O.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=p.get_directives(n);i&&"start"===i.ignore&&(n+=p.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),e=this._create_token(h.BLOCK_COMMENT,n),e.directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(h.COMMENT,n))}return e},O.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=S(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(s.allLineBreaks,"\n"),this._create_token(h.STRING,e)}return null},O.prototype._allow_regexp_or_xml=function(t){return t.type===h.RESERVED&&u(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===h.END_EXPR&&")"===t.text&&t.opened.previous.type===h.RESERVED&&u(t.opened.previous.text,["if","while","for"])||u(t.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},O.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){var n=this._input.next(),i=!1,r=!1;while(this._input.hasNext()&&(i||r||this._input.peek()!==t)&&!this._input.testChar(s.newline))n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(h.STRING,n)}return null},O.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",i=this.__patterns.xml.read_match();if(i){var r=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===r.indexOf("{"),a=0;while(i){var c=!!i[1],l=i[2],u=!!i[i.length-1]||"![CDATA["===l.slice(0,8);if(!u&&(l===r||o&&l.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--a:++a),n+=i[0],a<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(h.STRING,n)}}return null},O.prototype._read_string_recursive=function(t,e,n){var i,r;"'"===t?r=this.__patterns.single_quote:'"'===t?r=this.__patterns.double_quote:"`"===t?r=this.__patterns.template_text:"}"===t&&(r=this.__patterns.template_expression);var o=r.read(),a="";while(this._input.hasNext()){if(a=this._input.next(),a===t||!e&&s.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?(i=this._input.peek(),"x"===i||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(a+=this._input.next()))),a+=r.read(),o+=a}return o},t.exports.Tokenizer=O,t.exports.TOKEN=h,t.exports.positionable_operators=m.slice(),t.exports.line_starters=b.slice()},function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function r(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=r},function(t,e,n){"use strict";var i=n(8).InputScanner,r=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};c.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new o,this._reset();var e=new r(s.START,""),n=null,i=[],a=new o;while(e.type!==s.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new o),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},c.prototype._is_comment=function(t){return!1},c.prototype._is_opening=function(t){return!1},c.prototype._is_closing=function(t,e){return!1},c.prototype._create_token=function(t,e){var n=new r(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=c,t.exports.TOKEN=s},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e=this._create();for(var n in r)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},o.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},o.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=o}]),o=n;i=[],r=function(){return{js_beautify:o}}.apply(e,i),void 0===r||(t.exports=r)})()},e9f9:function(t,e,n){var i=n("4942"),r=n("d3a4"),o=n("6d8b"),a=o.each;function s(t){return parseInt(t,10)}function c(t,e){r.initVML(),this.root=t,this.storage=e;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var o=e.delFromStorage,a=e.addToStorage;e.delFromStorage=function(t){o.call(e,t),t&&t.onRemove&&t.onRemove(i)},e.addToStorage=function(t){t.onAdd&&t.onAdd(i),a.call(e,t)},this._firstPaint=!0}function l(t){return function(){i('In IE8.0 VML mode painter not support method "'+t+'"')}}c.prototype={constructor:c,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,n=0;n"],r.isArray(t)&&(t=t.slice(),i=!0),o=e?t:i?[u(t[0]),u(t[1])]:u(t),r.isString(l)?l.replace("{value}",i?o[0]:o).replace("{value2}",i?o[1]:o):r.isFunction(l)?i?l(t[0],t[1]):l(t):i?t[0]===c[0]?n[0]+" "+o[1]:t[1]===c[1]?n[1]+" "+o[0]:o[0]+" - "+o[1]:o;function u(t){return t===c[0]?"min":t===c[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,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r],a=t.getDimensionInfo(o);if(!a.isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={});r.merge(i,n),r.merge(o,n);var c=this.isCategory();function l(n){d(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")},f(this.stateList,(function(t){var e=n[t];if(r.isString(e)){var i=a.get(e,"active",c);i?(n[t]={},n[t][e]=i):delete n[t]}}),this)}function u(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},f(i,(function(t,e){if(s.isValidType(e)){var n=a.get(e,"inactive",c);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");f(this.stateList,(function(o){var a=this.itemSize,s=t[o];s||(s=t[o]={color:c?i:[i]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(c?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&r.clone(n)||(c?a[0]:[a[0],a[0]])),s.symbol=h(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var l=s.symbolSize;if(null!=l){var u=-1/0;p(l,(function(t){t>u&&(u=t)})),s.symbolSize=h(l,(function(t){return m(t,[0,u],[0,a[0]],!0)}))}}),this)}l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),g.call(this,o)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),_=y;t.exports=_},eaeb:function(t,e,n){var i=n("6d8b");function r(t,e){return i.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="dataTo"+n,c="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===n&&(c=c*Math.PI/180),c}),this)}function o(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),o=e.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:o[1],r0:o[0]},api:{coord:i.bind((function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a})),size:i.bind(r,t)}}}t.exports=o},eb6b:function(t,e,n){var i=n("6d8b"),r=n("e0d3"),o=r.makeInner,a=n("cd33"),s=n("133d"),c=i.each,l=i.curry,u=o();function h(t,e,n){var r=t.currTrigger,o=[t.x,t.y],a=t,u=t.dispatchAction||i.bind(n.dispatchAction,n),h=e.getComponent("axisPointer").coordSysAxesInfo;if(h){x(o)&&(o=s({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var d=x(o),w=a.axesInfo,O=h.axesInfo,S="leave"===r||x(o),E={},A={},k={list:[],map:{}},T={showPointer:l(f,A),showTooltip:l(g,k)};c(h.coordSysMap,(function(t,e){var n=d||t.containPoint(o);c(h.coordSysAxesInfo[e],(function(t,e){var i=t.axis,r=_(w,t);if(!S&&n&&(!w||r)){var a=r&&r.value;null!=a||d||(a=i.pointToData(o)),null!=a&&p(t,a,T,!1,E)}}))}));var j={};return c(O,(function(t,e){var n=t.linkGroup;n&&!A[e]&&c(n.axesInfo,(function(e,i){var r=A[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,b(e),b(t)))),j[t.key]=o}}))})),c(j,(function(t,e){p(O[e],t,T,!0,E)})),m(A,O,E),v(k,o,t,u),y(O,u,n),E}}function p(t,e,n,r,o){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var s=d(e,t),c=s.payloadBatch,l=s.snapToValue;c[0]&&null==o.seriesIndex&&i.extend(o,c[0]),!r&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,c,o),n.showTooltip(t,s,l)}else n.showPointer(t,e)}function d(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return c(e.seriesModels,(function(e,l){var u,h,p=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(p,t,n);h=d.dataIndices,u=d.nestestValue}else{if(h=e.getData().indicesOfNearest(p[0],t,"category"===n.type?.5:null),!h.length)return;u=e.getData().get(p[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,g=Math.abs(f);g<=a&&((g=0&&s<0)&&(a=g,s=f,r=u,o.length=0),c(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function f(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function g(t,e,n,i){var r=n.payloadBatch,o=e.axis,s=o.model,c=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=a.makeKey(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:c.get("label.precision"),formatter:c.get("label.formatter")},seriesDataIndices:r.slice()})}}function m(t,e,n){var i=n.axesInfo=[];c(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function v(t,e,n,i){if(!x(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function y(t,e,n){var r=n.getZr(),o="axisPointerLastHighlights",a=u(r)[o]||{},s=u(r)[o]={};c(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&c(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var l=[],h=[];i.each(a,(function(t,e){!s[e]&&h.push(t)})),i.each(s,(function(t,e){!a[e]&&l.push(t)})),h.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:l})}function _(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function b(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function x(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=h},ebf9:function(t,e,n){var i=n("3eba");i.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))},ec02:function(t,e,n){var i=n("6d8b"),r=n("84ce"),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom"};o.prototype={constructor:o,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},i.inherits(o,r);var a=o;t.exports=a},ec1b:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,n){var i=n(4)(n(1),n(5),null,null);t.exports=i.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3);e.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,i.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,i.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,i.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,i.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?this.decimal+e[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(n);)n=n.replace(r,"$1"+this.separator+"$2");return this.prefix+n+i+this.suffix}},destroyed:function(){(0,i.cancelAnimationFrame)(this.rAF)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",r.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=0,r="webkit moz ms o".split(" "),o=void 0,a=void 0;if("undefined"==typeof window)e.requestAnimationFrame=o=function(){},e.cancelAnimationFrame=a=function(){};else{e.requestAnimationFrame=o=window.requestAnimationFrame,e.cancelAnimationFrame=a=window.cancelAnimationFrame;for(var s=void 0,c=0;c=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n15)break}}a.__drawIndex=v,a.__drawIndex0&&t>i[0]){for(s=0;st)break;o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?c.insertBefore(e.dom,l.nextSibling):c.appendChild(e.dom)}else c.firstChild?c.insertBefore(e.dom,c.firstChild):c.appendChild(e.dom)}else a("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i0?g:0),this._needsManuallyCompositing),s.__builtin__||a("ZLevel "+c+" has been used by unkown layer "+s.id),s!==r&&(s.__used=!0,s.__startIndex!==n&&(s.__dirty=!0),s.__startIndex=n,s.incremental?s.__drawIndex=-1:s.__drawIndex=n,e(n),r=s),i.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=n))}e(n),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 n=this._layerConfig;n[t]?o.merge(n[t],e,!0):n[t]=e;for(var i=0;i1?"."+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 c=i.normalizeCssArray,l=/([&<>"'])/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(l,(function(t,e){return u[e]}))}var p=["a","b","c","d","e","f","g"],d=function(t,e){return"{"+t+(null==e?"":e)+"}"};function f(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var o=e[0].$vars||[],a=0;a':'':{renderMode:o,content:"{marker"+a+"|} ",style:{color:n}}:""}function v(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=o.parseDate(e),r=n?"UTC":"",a=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,c=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),p=i["get"+r+"Milliseconds"]();return t=t.replace("MM",v(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",v(c,2)).replace("d",c).replace("hh",v(l,2)).replace("h",l).replace("mm",v(u,2)).replace("m",u).replace("ss",v(h,2)).replace("s",h).replace("SSS",v(p,3)),t}function _(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var b=r.truncateText;function x(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function w(t,e,n,i,o,a,s,c){return r.getBoundingRect(t,e,n,i,o,c,a,s)}e.addCommas=a,e.toCamelCase=s,e.normalizeCssArray=c,e.encodeHTML=h,e.formatTpl=f,e.formatTplSimple=g,e.getTooltipMarker=m,e.formatTime=y,e.capitalFirst=_,e.truncateText=b,e.getTextBoundingRect=x,e.getTextRect=w},edaf:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),o=n("6179"),a=n("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,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),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||[],n=t.axisType,r=this._names=[];if("category"===n){var s=[];i.each(e,(function(t,e){var n,o=a.getDataItemValue(t);i.isObject(t)?(n=i.clone(t),n.value=e):n=e,s.push(n),i.isString(o)||null!=o&&!isNaN(o)||(o=""),r.push(o+"")})),e=s}var c={category:"ordinal",time:"time"}[n]||"number",l=this._data=new o([{name:"value",type:c}],this);l.initData(e,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),c=s;t.exports=c},edb9:function(t,e,n){var i=n("6d8b");function r(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,o={},a=r.position,s=r.orient,c=n.getRect(),l=[c.x,c.x+c.width,c.y,c.y+c.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===s?u.vertical[a]:l[0],"horizontal"===s?u.horizontal[a]:l[3]];var h={horizontal:0,vertical:1};o.rotation=Math.PI/2*h[s];var p={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=p[a],t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),i.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var d=e.rotate;return null==d&&(d=t.get("axisLabel.rotate")),o.labelRotation="top"===a?-d:d,o.z2=1,o}e.layout=r},ee1a:function(t,e,n){var i=n("6d8b"),r=i.each,o=i.isString;function a(t,e,n){n=n||{};var i,a,s,c,l=n.byIndex,u=n.stackedCoordDimension,h=!(!t||!t.get("stack"));if(r(e,(function(t,n){o(t)&&(e[n]=t={name:t}),h&&!t.isExtraCoord&&(l||i||!t.ordinalMeta||(i=t),a||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(a=t))})),!a||l||i||(l=!0),a){s="__\0ecstackresult",c="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var p=a.coordDim,d=a.type,f=0;r(e,(function(t){t.coordDim===p&&f++})),e.push({name:s,coordDim:p,coordDimIndex:f,type:d,isExtraCoord:!0,isCalculationCoord:!0}),f++,e.push({name:c,coordDim:c,coordDimIndex:f,type:d,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:i&&i.name,isStackedByIndex:l,stackedOverDimension:c,stackResultDimension:s}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function c(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}e.enableDataStack=a,e.isDimensionStacked=s,e.getStackedDimension=c},ee44:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("7a6b");function r(t){return Object(i["c"])(t,"bpmn:FlowElement")||Object(i["c"])(t,"bpmn:Participant")||Object(i["c"])(t,"bpmn:Lane")||Object(i["c"])(t,"bpmn:SequenceFlow")||Object(i["c"])(t,"bpmn:MessageFlow")||Object(i["c"])(t,"bpmn:DataInput")||Object(i["c"])(t,"bpmn:DataOutput")?"name":Object(i["c"])(t,"bpmn:TextAnnotation")?"text":Object(i["c"])(t,"bpmn:Group")?"categoryValueRef":void 0}function o(t){var e=t["categoryValueRef"];return e&&e.value||""}function a(t){var e=t.businessObject,n=r(e);if(n)return"categoryValueRef"===n?o(e):e[n]||""}function s(t,e,n){var i=t.businessObject,o=r(i);return o&&("categoryValueRef"===o?i["categoryValueRef"].value=e:i[o]=e),t}},ee66:function(t,e,n){var i=n("3eba"),r=n("6d8b"),o=n("2306"),a=n("eda2"),s=n("3842"),c={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},l={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},u=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),s=i.getCellHeight(),c=e.start.time;c<=e.end.time;c=i.getNextNDay(c,1).time){var l=i.dataToRect([c],!1).tl,u=new o.Rect({shape:{x:l[0],y:l[1],width:a,height:s},cursor:"default",style:r});n.add(u)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),c=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=e.start,u=0;l.time<=e.end.time;u++){p(l.formatedDate),0===u&&(l=o.getDateInfo(e.start.y+"-"+e.start.m));var h=l.date;h.setMonth(h.getMonth()+1),l=o.getDateInfo(h)}function p(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var c=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(c[0]),r._blpoints.push(c[c.length-1]),s&&r._drawSplitline(c,a,i)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,c,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,c,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new o.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"===typeof t&&t?a.formatTplSimple(t,e):"function"===typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var a=r.get("margin"),s=r.get("position");s||(s="horizontal"!==n?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(c[0][0]+c[1][0])/2,u=(c[0][1]+c[1][1])/2,h="horizontal"===n?0:1,p={top:[l,c[h][1]],bottom:[l,c[1-h][1]],left:[c[1-h][0],u],right:[c[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:d},m=this._formatterLabel(f,g),v=new o.Text({z2:30});o.setTextStyle(v.style,r,{text:m}),v.attr(this._yearTextPositionControl(v,p[s],n,s,a)),i.add(v)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],c=t[1];return"horizontal"===n?(c+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:c,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),s=i.get("margin"),l=i.get("position"),u=i.get("align"),h=[this._tlpoints,this._blpoints];r.isString(a)&&(a=c[a.toUpperCase()]||[]);var p="start"===l?0:1,d="horizontal"===e?0:1;s="start"===l?-s:s;for(var f="center"===u,g=0;g1?(g.width=u,g.height=u/d):(g.height=u,g.width=u*d),g.y=l[1]-g.height/2,g.x=l[0]-g.width/2}else o=t.getBoxLayoutParams(),o.aspect=d,g=s.getLayoutRect(o,{width:h,height:p});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function p(t,e){o.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var d={dimensions:a.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",(function(t,i){var r=t.get("map"),o=t.get("aspectScale"),s=!0,c=u.retrieveMap(r);c&&c[0]&&"svg"===c[0].type?(null==o&&(o=1),s=!1):null==o&&(o=.75);var l=new a(r+i,r,t.get("nameMap"),s);l.aspectScale=o,l.zoomLimit=t.get("scaleLimit"),n.push(l),p(l,t),t.coordinateSystem=l,l.model=t,l.resize=h,l.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),o.each(i,(function(t,i){var r=o.map(t,(function(t){return t.get("nameMap")})),s=new a(i,i,o.mergeAll(r));s.zoomLimit=o.retrieve.apply(null,o.map(t,(function(t){return t.get("scaleLimit")}))),n.push(s),s.resize=h,s.aspectScale=t[0].get("aspectScale"),s.resize(t[0],e),o.each(t,(function(t){t.coordinateSystem=s,p(s,t)}))})),n},getFilledRegions:function(t,e,n){for(var i=(t||[]).slice(),r=o.createHashMap(),a=0;as&&(e[1-o]=e[o]+p.sign*s),e}function i(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function r(t,e){return Math.min(e[1],Math.max(e[0],t))}t.exports=n},ef97:function(t,e,n){var i=n("3eba");n("217b"),n("f17f");var r=n("7f96"),o=n("87c3"),a=n("fdde");n("01ed"),i.registerVisual(r("line","circle","line")),i.registerLayout(o("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,a("line"))},ef97a:function(t,e,n){var i=n("3eba");n("2163"),n("6cd8"),n("bf9b");var r=n("7f96"),o=n("ca29");i.registerVisual(r("tree","circle")),i.registerLayout(o)},f123:function(t,e,n){var i=n("9f82"),r=i.prepareDataCoordInfo,o=i.getStackedOnPoint;function a(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function s(t,e,n,i,s,c,l,u){for(var h=a(t,e),p=[],d=[],f=[],g=[],m=[],v=[],y=[],_=r(s,e,l),b=r(c,t,u),x=0;xe[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function w(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();ra[1]&&a.reverse();var s=r.getExtent(),l=Math.PI/180;n&&(a[0]-=.5,a[1]+=.5);var u=new c.Sector({shape:{cx:g(t.cx,1),cy:g(t.cy,1),r0:g(a[0],1),r:g(a[1],1),startAngle:-s[0]*l,endAngle:-s[1]*l,clockwise:r.inverse}});return e&&(u.shape.endAngle=-s[0]*l,c.initProps(u,{shape:{endAngle:-s[1]*l}},i)),u}function E(t,e,n,i){return"polar"===t.type?S(t,e,n,i):O(t,e,n,i)}function A(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;a=0;a--){var s=n[a].dimension,l=t.dimensions[s],u=t.getDimensionInfo(l);if(i=u&&u.coordDim,"x"===i||"y"===i){o=n[a];break}}if(o){var h=e.getAxis(i),p=r.map(o.stops,(function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}})),d=p.length,f=o.outerColors.slice();d&&p[0].coord>p[d-1].coord&&(p.reverse(),f.reverse());var g=10,m=p[0].coord-g,v=p[d-1].coord+g,y=v-m;if(y<.001)return"transparent";r.each(p,(function(t){t.offset=(t.coord-m)/y})),p.push({offset:d?p[d-1].offset:.5,color:f[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:f[0]||"transparent"});var _=new c.LinearGradient(0,0,0,0,p,!0);return _[i]=m,_[i+"2"]=v,_}}}function T(t,e,n){var i=t.get("showAllSymbol"),o="auto"===i;if(!i||o){var a=n.getAxesByScale("ordinal")[0];if(a&&(!o||!j(a,e))){var s=e.mapDimension(a.dim),c={};return r.each(a.getViewLabels(),(function(t){c[t.tickValue]=1})),function(t){return!c.hasOwnProperty(e.get(s,t))}}}}function j(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),s=0;si)return!1;return!0}var M=d.extend({type:"line",init:function(){var t=new c.Group,e=new o;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),c=t.getModel("areaStyle"),l=a.mapArray(a.getItemLayout),u="polar"===i.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,m=t.get("animation"),y=!c.isEmpty(),x=c.get("origin"),O=v(i,a,x),S=w(i,a,O),j=t.get("showSymbol"),M=j&&!u&&T(t,a,i),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))})),j||p.remove(),o.add(g);var P=!u&&t.get("step");d&&h.type===i.type&&P===this._step?(y&&!f?f=this._newPolygon(l,S,i,m):f&&!y&&(g.remove(f),f=this._polygon=null),g.setClipPath(E(i,!1,!1,t)),j&&p.updateData(a,{isIgnore:M,clipShape:E(i,!1,!0,t)}),a.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),_(this._stackedOnPoints,S)&&_(this._points,l)||(m?this._updateAnimation(a,S,i,n,P,x):(P&&(l=A(l,i,P),S=A(S,i,P)),d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:S})))):(j&&p.updateData(a,{isIgnore:M,clipShape:E(i,!1,!0,t)}),P&&(l=A(l,i,P),S=A(S,i,P)),d=this._newPolyline(l,i,m),y&&(f=this._newPolygon(l,S,i,m)),g.setClipPath(E(i,!0,!1,t)));var I=k(a,i)||a.getVisual("color");d.useStyle(r.defaults(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"}));var D=t.get("smooth");if(D=b(t.get("smooth")),d.setShape({smooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),f){var R=a.getCalculationInfo("stackedOnSeries"),L=0;f.useStyle(r.defaults(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel"})),R&&(L=b(R.get("smooth"))),f.setShape({smooth:D,stackedOnSmooth:L,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=S,this._points=l,this._step=P,this._valueOrigin=x},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=l.queryDataIndex(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var s=r.getItemGraphicEl(o);if(!s){var c=r.getItemLayout(o);if(!c)return;s=new a(r,o),s.position=c,s.setZ(t.get("zlevel"),t.get("z")),s.ignore=isNaN(c[0])||isNaN(c[1]),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else d.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=l.queryDataIndex(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else d.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new h({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new p({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,o){var a=this._polyline,l=this._polygon,u=t.hostModel,h=s(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),p=h.current,d=h.stackedOnCurrent,f=h.next,g=h.stackedOnNext;r&&(p=A(h.current,n,r),d=A(h.stackedOnCurrent,n,r),f=A(h.next,n,r),g=A(h.stackedOnNext,n,r)),a.shape.__points=h.current,a.shape.points=p,c.updateProps(a,{shape:{points:f}},u),l&&(l.setShape({points:p,stackedOnPoints:d}),c.updateProps(l,{shape:{points:f,stackedOnPoints:g}},u));for(var m=[],v=h.status,y=0;ys)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&&l(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function l(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}i.registerPreprocessor(a)},f31f:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),o=n("6d8b"),a=n("2b8c"),s=n("4319"),c=["#ddd"],l=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 n=this.option;!e&&a.replaceVisualOption(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:c},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(t){t&&(this.areas=o.map(t,(function(t){return u(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=u(this.option,t),this.brushType=this.brushOption.brushType}});function u(t,e){return o.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=l;t.exports=h},f47d:function(t,e,n){var i=n("6d8b"),r=(i.assert,i.isArray),o=n("4e08");o.__DEV__;function a(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 c=s.prototype;c.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=d(this._modBy),c=this._modDataCount||0,l=d(t&&t.modBy),p=t&&t.modDataCount||0;function d(t){return!(t>=1)&&(t=1),t}s===l&&c===p||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=h(this,i)),this._modBy=l,this._modDataCount=p;var f=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,m=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(a||g1&&i>0?s:a}};return o;function a(){return e=t?null:o=0;v--){var y=m[v],_=y.node,b=y.width,x=y.text;g>f.width&&(g-=b-u,b=u,x=null);var w=new i.Polygon({shape:{points:p(c,0,b,h,v===m.length-1,0===v)},style:o.defaults(n.getItemStyle(),{lineJoin:"bevel",text:x,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:o.curry(s,_)});this.group.add(w),d(w,t,_),c+=b+l}},remove:function(){this.group.removeAll()}};var f=h;t.exports=f},f6ed:function(t,e,n){var i=n("6d8b");function r(t,e){var n={};return i.each(t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+t[0].getName(r),s=0,c=1/0,l=-1/0,u=n[a].length,h=0;hi||c.newline?(o=0,u=m,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(g?-g.y+d.y:0);h=a+v,h>r||c.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}c.newline||(p[0]=o,p[1]=a,"horizontal"===t?o=u+n:a=h+n)}))}var p=h,d=i.curry(h,"vertical"),f=i.curry(h,"horizontal");function g(t,e,n){var i=e.width,r=e.height,o=a(t.x,i),c=a(t.y,r),l=a(t.x2,i),u=a(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.x2)))&&(l=i),(isNaN(c)||isNaN(parseFloat(t.y)))&&(c=0),(isNaN(u)||isNaN(parseFloat(t.y2)))&&(u=r),n=s.normalizeCssArray(n||0),{width:Math.max(l-o-n[1]-n[3],0),height:Math.max(u-c-n[0]-n[2],0)}}function m(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,o=e.height,c=a(t.left,i),l=a(t.top,o),u=a(t.right,i),h=a(t.bottom,o),p=a(t.width,i),d=a(t.height,o),f=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(p)&&(p=i-u-g-c),isNaN(d)&&(d=o-h-f-l),null!=m&&(isNaN(p)&&isNaN(d)&&(m>i/o?p=.8*i:d=.8*o),isNaN(p)&&(p=m*d),isNaN(d)&&(d=p/m)),isNaN(c)&&(c=i-u-p-g),isNaN(l)&&(l=o-h-d-f),t.left||t.right){case"center":c=i/2-p/2-n[3];break;case"right":c=i-p-g;break}switch(t.top||t.bottom){case"middle":case"center":l=o/2-d/2-n[0];break;case"bottom":l=o-d-f;break}c=c||0,l=l||0,isNaN(p)&&(p=i-g-c-(u||0)),isNaN(d)&&(d=o-f-l-(h||0));var v=new r(c+n[3],l+n[0],p,d);return v.margin=n,v}function v(t,e,n,o,a){var s=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(s||c){var u;if("raw"===l)u="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}e=m(i.defaults({width:u.width,height:u.height},e),n,o);var p=t.position,d=s?e.x-u.x:0,f=c?e.y-u.y:0;t.attr("position","raw"===l?[d,f]:[p[0]+d,p[1]+f])}}function y(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]}function _(t,e,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var o=s(u[0],0),a=s(u[1],1);function s(n,i){var o={},a=0,s={},u=0,p=2;if(c(n,(function(e){s[e]=t[e]})),c(n,(function(t){l(e,t)&&(o[t]=s[t]=e[t]),h(o,t)&&a++,h(s,t)&&u++})),r[i])return h(e,n[1])?s[n[2]]=null:h(e,n[2])&&(s[n[1]]=null),s;if(u!==p&&a){if(a>=p)return o;for(var d=0;dd[1]?-1:1,g=["start"===s?d[0]-f*p:"end"===s?d[1]+f*p:(d[0]+d[1])/2,C(s)?t.labelOffset+u*p:0],m=e.get("nameRotate");null!=m&&(m=m*x/180),C(s)?i=E(t.rotation,null!=m?m:t.rotation,u):(i=A(t,s,m||0,d),o=t.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(i.rotation)),!isFinite(o)&&(o=null)));var v=h.getFont(),y=e.get("nameTruncate",!0)||{},_=y.ellipsis,b=r(t.nameTruncateMaxWidth,y.maxWidth,o),O=null!=_&&null!=b?c.truncateText(n,b,v,_,{minChar:2,placeholder:y.placeholder}):n,S=e.get("tooltip",!0),T=e.mainType,j={componentType:T,name:n,$vars:["name"]};j[T+"Index"]=e.componentIndex;var M=new l.Text({anid:"name",__fullText:n,__truncatedText:O,position:g,rotation:i.rotation,silent:k(e),z2:1,tooltip:S&&S.show?a({content:n,formatter:function(){return n},formatterParams:j},S):null});l.setTextStyle(M.style,h,{text:O,textFont:v,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get("triggerEvent")&&(M.eventData=w(e),M.eventData.targetType="axisName",M.eventData.name=n),this._dumbGroup.add(M),M.updateTransform(),this.group.add(M),M.decomposeTransform()}}},E=O.innerTextLayout=function(t,e,n){var i,r,o=d(e-t);return p(o)?(r=n>0?"top":"bottom",i="center"):p(o-x)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}};function A(t,e,n,i){var r,o,a=d(n-t.rotation),s=i[0]>i[1],c="start"===e&&!s||"start"!==e&&s;return p(a-x/2)?(o=c?"bottom":"top",r="center"):p(a-1.5*x)?(o=c?"top":"bottom",r="center"):(o="middle",r=a<1.5*x&&a>x/2?c?"left":"right":c?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function k(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function T(t,e,n){if(!b(t.axis)){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],c=e[e.length-2],l=n[0],u=n[1],h=n[n.length-1],p=n[n.length-2];!1===i?(j(o),j(l)):M(o,a)&&(i?(j(a),j(u)):(j(o),j(l))),!1===r?(j(s),j(h)):M(c,s)&&(r?(j(c),j(p)):(j(s),j(h)))}}function j(t){t&&(t.ignore=!0)}function M(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=m.identity([]);return m.rotate(o,o,-t.rotation),i.applyTransform(m.mul([],o,t.getLocalTransform())),r.applyTransform(m.mul([],o,e.getLocalTransform())),i.intersect(r)}}function C(t){return"middle"===t||"center"===t}function P(t,e,n){var i=e.axis;if(e.get("axisTick.show")&&!i.scale.isBlank()){for(var r=e.getModel("axisTick"),a=r.getModel("lineStyle"),s=r.get("length"),c=i.getTicksCoords(),u=[],h=[],p=t._transform,d=[],f=0;fm}function N(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function B(t,e,n,i){var r=new a.Group;return r.add(new a.Rect({name:"main",style:H(n),silent:!0,draggable:!0,cursor:"move",drift:l(t,e,r,"nswe"),ondragend:l(R,e,{isEnd:!0})})),u(i,(function(n){r.add(new a.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(t,e,r,n),ondragend:l(R,e,{isEnd:!0})}))})),r}function z(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=d(r,v),a=n[0][0],s=n[1][0],c=a-r/2,l=s-r/2,u=n[0][1],h=n[1][1],p=u-o+r/2,f=h-o+r/2,g=u-a,m=h-s,y=g+r,_=m+r;V(t,e,"main",a,s,g,m),i.transformable&&(V(t,e,"w",c,l,o,_),V(t,e,"e",p,l,o,_),V(t,e,"n",c,l,y,o),V(t,e,"s",c,f,y,o),V(t,e,"nw",c,l,o,o),V(t,e,"ne",p,l,o,o),V(t,e,"sw",c,f,o,o),V(t,e,"se",p,f,o,o))}function F(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(H(n)),r.attr({silent:!i,cursor:i?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(n){var r=e.childOfName(n),o=W(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?b[o]+"-resize":null})}))}function V(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(X(Z(t,e,[[i,r],[i+o,r+a]])))}function H(t){return r.defaults({strokeNoScale:!0},t.brushStyle)}function G(t,e,n,i){var r=[p(t,n),p(e,i)],o=[d(t,n),d(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function q(t){return a.getTransform(t.group)}function W(t,e){if(e.length>1){e=e.split("");var n=[W(t,e[0]),W(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"};n=a.transformDirection(i[e],q(t));return r[n]}function U(t,e,n,i,r,o,a,s){var c=i.__brushOption,l=t(c.range),h=Y(n,o,a);u(r.split(""),(function(t){var e=_[t];l[e[0]][e[1]]+=h[e[0]]})),c.range=e(G(l[0][0],l[1][0],l[0][1],l[1][1])),M(n,i),R(n,{isEnd:!1})}function $(t,e,n,i,r){var o=e.__brushOption.range,a=Y(t,n,i);u(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),M(t,e),R(t,{isEnd:!1})}function Y(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Z(t,e,n){var i=I(t,e);return i&&!0!==i?i.clipPath(n,t._transform):r.clone(n)}function X(t){var e=p(t[0][0],t[1][0]),n=p(t[0][1],t[1][1]),i=d(t[0][0],t[1][0]),r=d(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function K(t,e,n){if(t._brushType){var i=t._zr,r=t._covers,o=P(t,e,n);if(!t._dragging)for(var a=0;aa)c+=360*l;return[s,c]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]}};var a=o;t.exports=a},fd63:function(t,e,n){var i=n("42e5"),r={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(r)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(n.setVisual("color",o),!e.isSeriesFiltered(t)){"function"!==typeof o||o instanceof i||n.each((function(e){n.setItemVisual(e,"color",o(t.getDataParams(e)))}));var a=function(t,e){var n=t.getItemModel(e),i=n.get(r,!0);null!=i&&t.setItemVisual(e,"color",i)};return{dataEach:n.hasItemOption?a:null}}}};t.exports=r},fdde:function(t,e){var n={average:function(t){for(var e=0,n=0,i=0;ie&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n1)"string"===typeof a?c=n[a]:"function"===typeof a&&(c=a),c&&t.setData(o.downSample(o.mapDimension(u.dim),1/d,c,i))}}}}t.exports=r},fe21:function(t,e,n){var i=n("e86a"),r=n("2306"),o=["textStyle","color"],a={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(o):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.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=a},febc:function(t,e,n){var i=n("6d8b"),r=n("4f85"),o=n("e468"),a=o.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}});i.mixin(s,a,!0);var c=s;t.exports=c},fecb:function(t,e,n){var i=n("6d8b"),r=n("2145"),o=n("29a8"),a=o.toolbox.brush;function s(t,e,n){this.model=t,this.ecModel=e,this.api=n,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:i.clone(a.title)};var c=s.prototype;c.render=c.updateView=function(t,e,n){var r,o,a;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length})),this._brushType=r,this._brushMode=o,i.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===r)?"emphasis":"normal")}))},c.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return i.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},c.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},r.register("brush",s);var l=s;t.exports=l},ff2e:function(t,e,n){var i=n("6d8b"),r=n("2306"),o=n("e86a"),a=n("eda2"),s=n("1687"),c=n("697e"),l=n("fab2");function u(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function h(t,e,n,i,r){var s=n.get("value"),c=d(s,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),l=n.getModel("label"),u=a.normalizeCssArray(l.get("padding")||0),h=l.getFont(),f=o.getBoundingRect(c,h),g=r.position,m=f.width+u[1]+u[3],v=f.height+u[0]+u[2],y=r.align;"right"===y&&(g[0]-=m),"center"===y&&(g[0]-=m/2);var _=r.verticalAlign;"bottom"===_&&(g[1]-=v),"middle"===_&&(g[1]-=v/2),p(g,m,v,i);var b=l.get("backgroundColor");b&&"auto"!==b||(b=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:m,height:v,r:l.get("borderRadius")},position:g.slice(),style:{text:c,textFont:h,textFill:l.getTextColor(),textPosition:"inside",fill:b,stroke:l.get("borderColor")||"transparent",lineWidth:l.get("borderWidth")||0,shadowBlur:l.get("shadowBlur"),shadowColor:l.get("shadowColor"),shadowOffsetX:l.get("shadowOffsetX"),shadowOffsetY:l.get("shadowOffsetY")},z2:10}}function p(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function d(t,e,n,r,o){t=e.scale.parse(t);var a=e.scale.getLabel(t,{precision:o.precision}),s=o.formatter;if(s){var l={value:c.getAxisRawValue(e,t),seriesData:[]};i.each(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&l.seriesData.push(r)})),i.isString(s)?a=s.replace("{value}",a):i.isFunction(s)&&(a=s(l))}return a}function f(t,e,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(t,e,n,i,r,o){var a=l.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),h(e,i,r,o,{position:f(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function m(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function v(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function y(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}e.buildElStyle=u,e.buildLabelElOption=h,e.getValueLabel=d,e.getTransformedPosition=f,e.buildCartesianSingleLabelElOption=g,e.makeLineShape=m,e.makeRectShape=v,e.makeSectorShape=y}}]);