text: if(!_.pert){_.pert=1;(function($){var wga=function(a){return $.cj(vga,a,"circle")},ST=function(){$.Dp.call(this);this.Rb=this.X=this.YJ=this.mb=null;$.T(this.za,[["color",0,8192]]);var a={};$.T(a,[["fill",0,8192],["stroke",0,8192],["labels",0,0]]);this.ia=new $.Gv(this,a,$.Jk);this.ia.ca.labelsFactoryConstructor=$.Iv;this.ia.ca.labelsAfterInitCallback=this.xB;this.Ba=new $.Gv(this,a,1);this.Ba.ca.labelsFactoryConstructor=$.Iv;this.Ba.ca.labelsAfterInitCallback=this.xB;this.Ga=new $.Gv(this,a,2);this.Ga.ca.labelsFactoryConstructor=
  $.Iv;this.Ga.ca.labelsAfterInitCallback=this.xB},TT=function(a){var b=a.Za().F(),c=a.Za().i("titleFormat");a=a.Za().i("format");c&&c!=$.Dn&&(b.titleFormat=c);a&&a!=$.Dn&&(b.format=a);return b},UT=function(){ST.call(this);this.hb("milestones");$.T(this.za,[["size",0,1],["shape",0,1]])},VT=function(){ST.call(this);this.hb("tasks");$.Nv(this.ia,[["dummyFill",0,8192],["dummyStroke",0,8192],["lowerLabels",0,0],["upperLabels",0,0]]);this.ia.ca.lowerLabelsAfterInitCallback=this.xB;this.Ba.ca.lowerLabelsAfterInitCallback=
  this.xB;this.Ga.ca.lowerLabelsAfterInitCallback=this.xB},WT=function(){$.Dp.call(this);this.hb("criticalPath");this.Ck=this.wk=null},XT=function(){$.qv.call(this);this.hb("pert");this.xa=null;this.f={};this.g={};this.Os=[];this.Xb=[];this.Ra=[];this.ra=this.ea=this.o=null;this.la=[];this.D={};this.Ha=this.Ck=this.wk=this.Ia=this.K=this.oc=this.Hc=this.ta=this.Ya=null;this.$=[];this.P=[];this.G={};this.b=[];this.Vd=this.rb=0;this.bd=[];this.mb=this.Ld=null;$.js(this,this,this.Fg,this.$g,this.j8,this.Fg,
  null,this.yi);$.T(this.za,[["expectedTimeCalculator",8192,1],["verticalSpacing",4,1],["horizontalSpacing",4,1]])},YT=function(a,b,c){var d=a.Za(),e=!0;$.da(a.Ld.enabled)&&(e=a.Ld.enabled);d.N(a.Ld);b&&$.da(b.enabled)&&(e=b.enabled);d.N(b);c&&$.da(c.enabled)&&(e=c.enabled);d.N(c);d.enabled(e)},xga=function(a){var b={type:"pointsselect",selectedTasks:[],selectedMilestones:[]},c;for(c=0;c<a.$.length;c++){var d=a.$[c],e=a.g[d.id];d={item:d.item,name:d.item.get("name"),successors:d.Zh,predecessors:d.xj,
  earliestStart:e.cP,earliestFinish:e.ly,latestStart:e.cK,latestFinish:e.iR,duration:e.duration,slack:e.tL,variance:e.zT};b.selectedTasks.push(d)}for(c=0;c<a.P.length;c++)d=a.P[c],e={successors:d.Zh,predecessors:d.xj,isCritical:d.ze,isStart:d.Lw},d.MD&&(e.creator=d.MD.item),b.selectedMilestones.push(e);return b},$T=function(a){a.g={};if(a.Xb.length&&a.Ra.length)for(var b=0;b<a.Xb.length;b++)ZT(a,String(a.Xb[b].get("id")));b=0;for(var c in a.g){var d=a.g[c];d.tL||(b+=d.zT)}a.wa("pertChartCriticalPathStandardDeviation",
  Math.sqrt(b));a.I(8192)},ZT=function(a,b){var c=a.f[b];if(!(b in a.g)){a.g[b]={};var d=Number(c.item.get("optimistic")),e=Number(c.item.get("pessimistic"));a.g[b].zT=$.Bl(Math.pow((e-d)/6,2),3)}d=a.g[b];$.n(d.duration)||(e=a.Ec(!1,c,d),d.duration=$.Bl(a.i("expectedTimeCalculator").call(e,e),3));e=d.duration;var f;if(!$.n(d.cP)){var h=0;for(f=0;f<c.xj.length;f++){var k=String(c.xj[f].get("id")),l=a.g[k];$.n(l)&&$.n(l.ly)||ZT(a,k);h=Math.max(h,a.g[k].ly)}d.cP=$.Bl(h,3);d.ly=$.Bl(h+e,3)}if(!$.n(d.iR)){if(c.Zh.length)for(h=
  window.Infinity,f=0;f<c.Zh.length;f++)k=String(c.Zh[f].get("id")),l=a.g[k],$.n(l)&&$.n(l.cK)||ZT(a,k),h=Math.min(h,a.g[k].cK);else{h=-window.Infinity;for(f=0;f<a.Ra.length;f++)c=String(a.Ra[f].get("id")),k=a.g[c],$.n(k)&&$.n(k.ly)||ZT(a,c),h=Math.max(h,a.g[c].ly);a.wa("pertChartProjectDuration",h)}d.iR=$.Bl(h,3);d.cK=$.Bl(h-e,3);d.tL=$.Bl(h-d.ly,3)}},aU=function(a,b){a!=b&&($.Aa(a.iq,b),$.Aa(b.zl,a))},bU=function(a,b,c,d){b={label:d||"",id:"",Zh:[],xj:[],zl:[],iq:[],level:-1,ze:!1,left:0,top:0,Lw:c,
  MD:b,um:!1,Pl:!1,sm:[],index:-1};c="m"+$.pa(b);a.D[c]=b;b.id=c;return b},cU=function(a,b,c){var d={from:b,Yf:c,um:!1,Pl:!1,ux:null,id:"",ze:!1},e="e"+$.pa(d);d.id=e;a.G[e]=d;$.Aa(b.sm,d);$.Aa(c.sm,d);return d},dU=function(a,b){var c,d,e=[];for(c in a.G){var f=a.G[c];if(!f.Pl&&f.um==b){f.um=!b;var h={IG:{},sm:{}};h.IG[f.from.id]=f.from;h.IG[f.Yf.id]=f.Yf;h.sm[f.id]=f;var k=[];f.from.Pl||f.from.um!=b||(f.from.um=!b,k.push(f.from));f.Yf.Pl||f.Yf.um!=b||(f.Yf.um=!b,k.push(f.Yf));for(;k.length;){var l=
  k.pop();for(d=0;d<l.sm.length;d++)if(f=l.sm[d],!f.Pl&&f.um==b){f.um=!b;h.sm[f.id]=f;var m=f.from==l?f.Yf:f.from;m.Pl||m.um!=b||(m.um=!b,k.push(m));h.IG[m.id]=m}}e.push(h)}f.um=!b}for(c in a.D)a.D[c].um=!b;return e},yga=function(a,b){var c,d,e,f=null,h=window.Infinity;for(c=0;c<a.length;c++){var k=a[c],l=0,m=-1;for(d=0;d<b.length;d++){var p=b[d],q=!0;for(e in k.IG){var r=k.IG[e];if(r.Pl&&0>p.indexOf(r)){q=!1;break}}if(q&&(l++,0>m&&(m=d),l>=h))break}if(!l)throw"non planar!";l<h&&(f=[c,m],h=l)}return f},
  eU=function(a,b,c,d){var e=Math.atan((d-b)/(c-a)),f=Math.atan(.3);a=$.Nl(0,0,3,10);b=e-f;e+=f;return[c-a*Math.cos(b),d-a*Math.sin(b),c-a*Math.cos(e),d-a*Math.sin(e)]},fU=function(a,b){return $.da(a.enabled())?a.enabled():b},gU=function(){var a=new XT;a.fa(!0,$.Qk("pert"));return a},vga={tM:"circle",oia:"rhombus",H2:"rectangle"};$.H(ST,$.Dp);$.$o(ST,["fill","stroke","labels"],"normal");ST.prototype.ua=$.Dp.prototype.ua|28672;ST.prototype.oa=$.Dp.prototype.oa;var hU={};$.R(hU,1,"color",$.ip);
  $.Zo(ST,hU);$.g=ST.prototype;$.g.i=$.Cp;$.g.CE=function(a){var b=this.parent();return b?b[a&2?"selected":a&1?"hovered":"normal"]():null};$.g.dg=function(a){$.n(a)&&(this.Rb=a);return this.Rb};$.g.Dg=$.Bp;$.g.Pd=function(){var a=[this.pa];this.X&&(a=$.Fa(a,this.X.Pd()));return a};$.g.Nd=function(){var a=[this.ca];this.X&&(a=$.Fa(a,this.X.Nd()));return a};
  $.g.parent=function(a){return $.n(a)?(this.X!=a&&(null===a?($.Fp(this.X,this.Sc,this),this.X=null):(this.X&&$.Fp(this.X,this.Sc,this),this.X=a,this.Za().Md().parent(this.X.Za()),$.U(this.X,this.Sc,this))),this):this.X};$.g.Sc=function(a){var b=0,c=0;$.W(a,1)&&(b|=16,c|=1);$.W(a,8)&&(b|=4,c|=8);$.W(a,32768)&&(b|=1,c|=1);this.Rb=null;this.u(b,c)};$.g.Ma=function(a){return $.n(a)?(this.ia.N(a),this):this.ia};$.g.fb=function(a){return $.n(a)?(this.Ba.N(a),this):this.Ba};
  $.g.selected=function(a){return $.n(a)?(this.Ga.N(a),this):this.Ga};$.g.ru=function(a,b){return this.dx("fill",a,b)};$.g.Wp=function(a,b){return this.dx("stroke",a,b)};$.g.dx=function(a,b,c){a=(0==b?this.ia:1==b?this.Ba:this.Ga).i(a);$.E(a)&&(c.sourceColor=this.i("color"),a=a.call(c));return a};$.g.xB=function(a){$.U(a,this.Ry,this)};$.g.Ry=function(){this.sa(4096)};
  $.g.Za=function(a){this.mb||(this.mb=new $.iu(0),$.Pp(this,"tooltip",this.mb),$.U(this.mb,this.mp,this));return $.n(a)?(this.mb.N(a),this):this.mb};$.g.mp=function(){this.sa(16384)};$.g.Qy=function(a){return $.n(a)?(this.YJ!=a&&(this.YJ=a,this.ia.labels().O(this.YJ)),this):this.YJ};$.g.Rk=function(){this.ia.labels().W();return this};$.g.LH=function(){this.ia.labels().clear();return this};
  $.g.F=function(){var a=ST.B.F.call(this);$.lp(this,hU,a,"Pert visual element");a.normal=this.ia.F();a.hovered=this.Ba.F();a.selected=this.Ga.F();a.tooltip=this.Za().F();return a};$.g.Y=function(a,b){ST.B.Y.call(this,a,b);$.bp(this,hU,a);this.ia.fa(!!b,a);this.ia.fa(!!b,a.normal);this.Ba.fa(!!b,a.hovered);this.Ga.fa(!!b,a.selected);"tooltip"in a&&this.Za().fa(!!b,a.tooltip)};$.g.R=function(){$.$c(this.mb);ST.B.R.call(this)};var iU=ST.prototype;iU.tooltip=iU.Za;iU.normal=iU.Ma;iU.hovered=iU.fb;
  iU.selected=iU.selected;$.H(UT,ST);UT.prototype.ua=ST.prototype.ua|1;var jU=function(){var a={};$.Mo(a,[[0,"size",function(a){return $.an(a,80)||0}],[0,"shape",wga]]);return a}();$.Zo(UT,jU);UT.prototype.F=function(){var a=UT.B.F.call(this);$.lp(this,jU,a);return a};UT.prototype.Y=function(a,b){UT.B.Y.call(this,a,b);$.bp(this,jU,a)};$.H(VT,ST);$.$o(VT,["dummyFill","dummyStroke","lowerLabels","upperLabels"],"normal");VT.prototype.ua=ST.prototype.ua;VT.prototype.Qy=function(a){VT.B.Qy.call(this,a);(a=VT.B.Qy.call(this))&&this.ia.sj().O(a);return a};VT.prototype.Rk=function(){this.ia.sj().W();return VT.B.Rk.call(this)};VT.prototype.LH=function(){this.ia.sj().clear();return VT.B.LH.call(this)};$.H(WT,$.Dp);$.g=WT.prototype;$.g.ua=$.Dp.prototype.ua|12289;$.g.Gc=function(a){this.wk||(this.wk=new UT,$.Pp(this,"milestones",this.wk));return $.n(a)?(this.wk.N(a),this):this.wk};$.g.Ub=function(a){this.Ck||(this.Ck=new VT,$.Pp(this,"tasks",this.Ck));return $.n(a)?(this.Ck.N(a),this):this.Ck};$.g.F=function(){var a=WT.B.F.call(this);a.tasks=this.Ub().F();a.milestones=this.Gc().F();return a};
  $.g.Y=function(a,b){WT.B.Y.call(this,a,b);"milestones"in a&&this.Gc().Y(a.milestones,b);"tasks"in a&&this.Ub().Y(a.tasks,b)};var kU=WT.prototype;kU.tasks=kU.Ub;kU.milestones=kU.Gc;$.H(XT,$.qv);$.g=XT.prototype;$.g.ua=$.qv.prototype.ua;$.g.oa=$.qv.prototype.oa|61440;$.g.La=function(){return"pert"};
  $.g.Ec=function(a,b,c,d){if(!this.o||a)this.o=new $.ru;a={};var e=null;if(b){a.item={value:b.item,type:""};e=b.item;a.name={value:b.item.get("name"),type:"string"};var f=b.item.get("pessimistic");$.n(f)&&(a.pessimistic={value:+f,type:"number"});f=b.item.get("optimistic");$.n(f)&&(a.optimistic={value:+f,type:"number"});f=b.item.get("mostLikely");$.n(f)&&(a.mostLikely={value:+f,type:"number"});f=b.item.get("duration");$.n(f)&&(a.duration={value:+f,type:"number"});a.successors={value:b.Zh,type:""};a.predecessors=
  {value:b.xj,type:""};a.isCritical={value:b.ze,type:"string"}}c&&(a.earliestStart={value:c.cP,type:"number"},a.earliestFinish={value:c.ly,type:"number"},a.latestStart={value:c.cK,type:"number"},a.latestFinish={value:c.iR,type:"number"},$.n(a.duration)||(a.duration={value:c.duration,type:"number"}),a.slack={value:c.tL,type:"number"},a.variance={value:c.zT,type:"number"});d&&(a.successors={value:d.Zh,type:""},a.predecessors={value:d.xj,type:""},a.isCritical={value:d.ze,type:"string"},d.MD&&(a.creator=
  {value:d.MD.item,type:""}),a.isStart={value:d.Lw,type:"string"},a.index={value:d.index,type:"number"});this.o.oi([this]).jg(e);return $.ct(this.o,a)};$.g.UH=function(){var a=new $.iu(0);$.L(this,a);a.ya(this);$.U(a,this.mp,this);return a};$.g.mp=function(){this.Za().W()};
  $.g.data=function(a,b,c){return $.n(a)?($.K(a,$.Tr)||$.K(a,$.Rr)?this.xa!=a&&(this.xa&&$.Fp(this.xa,this.Ke,this),this.xa=a):(this.xa&&$.Fp(this.xa,this.Ke,this),this.xa=new $.Tr(a,b,c)),$.U(this.xa,this.Ke,this),this.u(4352,1),this):this.xa};$.g.bx=function(){this.nb().Op()&&this.u(-6145,9)};$.g.Ke=function(){this.u(4356,1)};$.g.Jl=function(){return[]};$.g.Se=function(){return[]};
  $.g.Fg=function(a){var b=a.domTarget,c=this.Za();var d=b.tag;var e=!0;if(d)if(null!=d.m){var f=d.m;d=this.Ec(!0,void 0,void 0,f);var h=f.ze?this.ce().Gc():this.Gc();var k=f.me?2:1;e=h.ru(k,d);h=h.Wp(k,d);b.fill(e).stroke(h);e=!1;b=f.ze?TT(this.ce().Gc()):void 0;$.V(c);YT(this,TT(this.Gc()),b);$.Au(c,a.clientX,a.clientY,d);c.ba(!0);if(a=f.rS)b=!0,c=this.Gc().Ma().labels(),a.Yc(c.rd()),b=fU(c,b),f.me?(c=this.Gc().selected().labels(),a.Yc(c.rd()),b=fU(c,b)):(c=this.Gc().fb().labels(),a.Yc(c.rd()),b=
  fU(c,b)),f.ze&&(c=this.ce().Gc().Ma().labels(),a.Yc(c.rd()),b=fU(c,b),f.me?(c=this.ce().Gc().selected().labels(),a.Yc(c.rd()),b=fU(c,b)):(c=this.ce().Gc().fb().labels(),a.Yc(c.rd()),b=fU(c,b))),a.enabled(b),a.W()}else null!=d.w&&(f=d.w,b=this.g[f.id],d=this.Ec(!0,f,b,void 0),k=f.me?2:1,h=f.ze?this.ce().Ub():this.Ub(),e=h.ru(k,d),h=h.Wp(k,d),f.sS.stroke(h),f.uV.fill(e).stroke(h),h=f.xT,e=f.lR,h&&(b=!0,k=this.Ub().Ma().Fl(),h.Yc(k.rd()),b=fU(k,b),f.me?(k=this.Ub().selected().Fl(),h.Yc(k.rd()),b=fU(k,
  b)):(k=this.Ub().fb().Fl(),h.Yc(k.rd()),b=fU(k,b)),f.ze&&(k=this.ce().Ub().Ma().Fl(),h.Yc(k.rd()),b=fU(k,b),f.me?(k=this.ce().Ub().selected().Fl(),h.Yc(k.rd()),b=fU(k,b)):(k=this.ce().Ub().fb().Fl(),h.Yc(k.rd()),b=fU(k,b))),h.enabled(b),h.W()),e&&(b=!0,h=this.Ub().Ma().sj(),e.Yc(h.rd()),b=fU(h,b),f.me?(h=this.Ub().selected().sj(),e.Yc(h.rd()),b=fU(h,b)):(h=this.Ub().fb().sj(),e.Yc(h.rd()),b=fU(h,b)),f.ze&&(h=this.ce().Ub().Ma().sj(),e.Yc(h.rd()),b=fU(h,b),f.me?(h=this.ce().Ub().selected().sj(),e.Yc(h.rd()),
  b=fU(h,b)):(h=this.ce().Ub().fb().sj(),e.Yc(h.rd()),b=fU(h,b))),e.enabled(b),e.W()),e=!1,b=f.ze?TT(this.ce().Ub()):void 0,$.V(c),YT(this,TT(this.Ub()),b),$.Au(c,a.clientX,a.clientY,d),c.ba(!0));e&&this.Za().md()};
  $.g.$g=function(a){var b=a.domTarget;if(a=b.tag)if(null!=a.m){var c=a.m;a=c.ze?this.ce().Gc():this.Gc();var d=this.Ec(!0,void 0,void 0,c);var e=c.me?2:$.Jk;var f=a.ru(e,d);d=a.Wp(e,d);if(e=c.rS){a=!0;var h=this.Gc().Ma().labels();e.Yc(h.rd());a=fU(h,a);c.me&&(h=this.Gc().selected().labels(),e.Yc(h.rd()),a=fU(h,a));c.ze&&(h=this.ce().Gc().Ma().labels(),e.Yc(h.rd()),a=fU(h,a),c.me&&(c=this.ce().Gc().selected().labels(),e.Yc(c.rd()),a=fU(c,a)));e.enabled(a);e.W()}b.fill(f).stroke(d)}else null!=a.w&&
  (b=a.w,d=this.Ec(!0,b,this.g[b.id],void 0),e=b.me?2:$.Jk,a=b.ze?this.ce().Ub():this.Ub(),f=a.ru(e,d),d=a.Wp(e,d),b.sS.stroke(d),b.uV.fill(f).stroke(d),c=b.xT,f=b.lR,c&&(a=!0,d=this.Ub().Ma().Fl(),c.Yc(d.rd()),a=fU(d,a),b.me&&(d=this.Ub().selected().Fl(),c.Yc(d.rd()),a=fU(d,a)),b.ze&&(d=this.ce().Ub().Ma().Fl(),c.Yc(d.rd()),a=fU(d,a),b.me&&(d=this.ce().Ub().selected().Fl(),c.Yc(d.rd()),a=fU(d,a))),c.enabled(a),c.W()),f&&(a=!0,c=this.Ub().Ma().sj(),f.Yc(c.rd()),a=fU(c,a),b.me&&(c=this.Ub().selected().sj(),
  f.Yc(c.rd()),a=fU(c,a)),b.ze&&(c=this.ce().Ub().Ma().sj(),f.Yc(c.rd()),a=fU(c,a),b.me&&(b=this.ce().Ub().selected().sj(),f.Yc(b.rd()),a=fU(b,a))),f.enabled(a),f.W()))};
  $.g.j8=function(a){var b=a.metaKey||a.ctrlKey,c,d,e=a.domTarget,f=e.tag;$.K(a.target,$.Es)&&(f=a.target.Od(a.labelIndex).tag);if($.K(e,$.vf)){f&&(null!=f.m?c=f.m:null!=f.w&&(d=f.w));if(c||d)if(b)c&&(c.me=!c.me,c.me?$.Aa(this.P,c):$.Ea(this.P,c)),d&&(d.me=!d.me,d.me?$.Aa(this.$,d):$.Ea(this.$,d));else{for(a=0;a<this.P.length;a++)this.P[a].me=!1;for(a=0;a<this.$.length;a++)this.$[a].me=!1;this.P.length=0;this.$.length=0;c&&(c.me=!0,this.P.push(c));d&&(d.me=!0,this.$.push(d))}else{for(a=0;a<this.P.length;a++)this.P[a].me=
  !1;for(a=0;a<this.$.length;a++)this.$[a].me=!1;this.P.length=0;this.$.length=0}this.dispatchEvent(xga(this));this.u(32768,1)}};var lU=function(){var a={};$.R(a,0,"expectedTimeCalculator",$.Vo);$.R(a,0,"verticalSpacing",function(a){return $.an(a,20)});$.R(a,0,"horizontalSpacing",function(a){return $.an(a,20)});return a}();$.Zo(XT,lU);$.g=XT.prototype;
  $.g.kb=function(){if(this.J(4096)){this.f={};this.Xb.length=0;this.Ra.length=0;if(this.xa&&!this.xa.xd){for(var a=this.xa.ty(),b=0;b<a.length;b++){var c=a[b],d=String(c.get("id"));d in this.f||(this.f[d]={id:d,item:c,Zh:[],xj:[],level:-1,ze:!1,MO:[],NO:[]},this.Ra.push(c));var e=c.get("dependsOn");if($.n(e)&&"array"==$.ka(e))for(var f=0;f<e.length;f++){var h=String(e[f]);if(h in this.f)h!=d&&(this.f[h].Zh.push(c),this.f[d].xj.push(this.f[h].item),$.Ea(this.Ra,this.f[h].item),$.Ta(this.f[h].NO,d),
  $.Ta(this.f[d].MO,h));else{var k=this.xa.rp("id",h)[0];if(k){var l=String(k.get("id"));this.f[l]={id:l,item:k,Zh:[c],xj:[],level:-1,ze:!1,MO:[],NO:[]};$.Ea(this.Ra,k);this.f[d].xj.push(k);$.Ta(this.f[l].NO,d);$.Ta(this.f[d].MO,h)}}}else this.Xb.push(c)}$T(this);this.la.length=0;this.D={};this.ra=bU(this,null,!0,"Start");this.ra.ze=!0;this.ea=bU(this,null,!1,"Finish");this.ea.ze=!0;var m,p;for(p in this.f){var q=this.f[p],r=this.g[p];q.so||(q.so=bU(this,q,!0,"S"+q.item.get("name")));q.Ol||(q.Ol=bU(this,
  q,!1,"F"+q.item.get("name")),q.Ol.MD=q);$.Aa(q.so.Zh,q.item);$.Aa(q.Ol.xj,q.item);r.tL||(q.ze=!0,q.so.ze=!0,q.Ol.ze=!0);if(q.Zh.length)for(m=0;m<q.Zh.length;m++){var t=String(q.Zh[m].get("id")),u=this.f[t];u.so||(u.so=bU(this,u,!0,"S"+u.item.get("name")));u.Ol||(u.Ol=bU(this,u,!1,"F"+u.item.get("name")));aU(u.so,q.Ol)}else aU(this.ea,q.Ol);if(q.xj.length)for(m=0;m<q.xj.length;m++){var v=String(q.xj[m].get("id")),x=this.f[v];x.so||(x.so=bU(this,x,!0,"Start: "+x.item.get("name")));x.Ol||(x.Ol=bU(this,
  x,!1,"Finish: "+x.item.get("name")));aU(q.so,x.Ol)}else aU(q.so,this.ra)}var w,y,B,F=[];for(w in this.D){var C=this.D[w];var N={};for(y=0;y<C.zl.length;y++){var P=C.zl[y];if(1==P.Zh.length&&2>P.iq.length&&!P.xj.length){var Q=String(P.Zh[0].get("id"));var S=this.f[Q];var oa=S.Ol;for(B=0;B<C.zl.length;B++)if(y!=B){var xa=C.zl[B];if(1==xa.Zh.length){var La=String(xa.Zh[0].get("id"));this.f[La].Ol==oa&&(N[oa.id]=oa)}}}else N[P.id]=P}for(y=F.length=0;y<C.zl.length;y++)if(P=C.zl[y],!(P.id in N)){Q=String(P.Zh[0].get("id"));
  S=this.f[Q];var sb=S.so;S.so=C;$.Aa(C.Zh,S.item);F.push(sb)}for(y=0;y<F.length;y++){var bc=F[y];$.Ea(C.zl,bc);delete this.D[bc.id]}}for(w in this.D){C=this.D[w];N={};for(y=0;y<C.iq.length;y++){var $a=C.iq[y];if(1==$a.xj.length&&2>$a.zl.length&&!$a.Zh.length){var cc=String($a.xj[0].get("id"));var Eb=this.f[cc];var Ac=Eb.so;for(B=0;B<C.iq.length;B++)if(y!=B){var sf=C.iq[B];if(1==sf.xj.length){var Qb=String(sf.xj[0].get("id"));this.f[Qb].so==Ac&&(N[$a.id]=$a)}}}else N[$a.id]=$a}for(y=F.length=0;y<C.iq.length;y++)$a=
  C.iq[y],$a.id in N||(cc=String($a.xj[0].get("id")),Eb=this.f[cc],sb=Eb.Ol,Eb.Ol=C,$.Aa(C.xj,Eb.item),F.push(sb));for(y=0;y<F.length;y++)bc=F[y],$.Ea(C.iq,bc),delete this.D[bc.id]}this.G={};var Ld;for(Ld in this.D){var Nb=this.D[Ld],Kf;for(Kf=0;Kf<Nb.Zh.length;Kf++){var Lf=String(Nb.Zh[Kf].get("id")),Kc=this.f[Lf];var Wb=cU(this,Nb,Kc.Ol);Wb.ux=Kc;Wb.ze=Kc.ze}for(Kf=0;Kf<Nb.zl.length;Kf++){var wi=Nb.zl[Kf];Wb=cU(this,Nb,wi);Wb.ze=Nb.ze&&wi.ze}}this.b.length=0;this.ra.level=0;for(var dg=[this.ra],Vk=
  [];dg.length;){var eg=dg.pop(),Wk=eg.level;Vk.length>Wk&&(Vk.length=Wk);Vk.push(eg);eg==this.ea&&this.b.push(Vk.slice(0));var ih;for(ih=eg.Zh.length;ih--;){var Kg=String(eg.Zh[ih].get("id")),Mf=this.f[Kg].Ol;var tf=Wk+1;Mf.level=Math.max(tf,Mf.level);this.rb=Math.max(Mf.level,this.rb);dg.push(Mf)}for(ih=eg.zl.length;ih--;){var Ed=eg.zl[ih];tf=Wk+1;Ed.level=Math.max(tf,Ed.level);this.rb=Math.max(Ed.level,this.rb);dg.push(Ed)}}for(var gj in this.G){var md=this.G[gj];if(!md.Ju){var jh=md.from,jg=md.Yf,
  cp=jg.level-jh.level;if(1<cp){for(var He=null,Xb,Lg,Mg,Jn=0;Jn<cp-1;Jn++){var Fd=!He;He=He||jh;Xb={Ju:!0,id:null,label:"Fake milestone "+Jn,level:jh.level+1+Jn,ze:md.ze,um:!1,Pl:!1,sm:[],jda:null,IL:null,iq:[He],zl:[],LZ:md,Zh:[],xj:[],qb:0};Xb.id="fm"+$.pa(Xb);this.D[Xb.id]=Xb;Fd?(Mg={Ju:!0,from:He,Yf:Xb,um:!1,Pl:!1,ux:md.ux,id:null,ze:md.ze,LZ:md},Mg.id="fe"+$.pa(Mg),this.G[Mg.id]=Mg):(Mg=He.IL,Mg.Yf=Xb);Lg={Ju:!0,from:Xb,Yf:null,um:!1,Pl:!1,ux:md.ux,id:null,ze:md.ze,LZ:md};Lg.id="fe"+$.pa(Lg);
  this.G[Lg.id]=Lg;Xb.IL=Lg;Xb.jda=Mg;Xb.sm=[Lg,Mg];He.Ju?(He.zl.push(Xb),He.IL.Yf=Xb):(md.ux||($.Ea(He.zl,jg),$.Aa(He.zl,Xb)),$.Ea(He.sm,md),$.Aa(He.sm,Mg));He=Xb}Lg.Yf=jg;$.Ea(jg.iq,jh);$.Aa(jg.iq,Xb);Xb.zl.push(jg);var al=(0,$.ya)(jg.sm,md);0>al&&(al=0);$.Ba(jg.sm,al,1,Lg);delete this.G[md.id]}}}this.bd.length=0;this.ra.Pl=this.ea.Pl=!0;for(var lj=!1,bl=dU(this,lj),Ai=[[this.ra,this.ea]],wf;wf=yga(bl,Ai);){var wg=void 0,Vh=Ai,em=wf[1],fm=bl[wf[0]],kg=null;for(wg in fm.sm){var Bh=fm.sm[wg].from;Bh.Pl&&
  (!kg||kg.level>Bh.level)&&(kg=Bh)}var xg=[kg];for(Bh=kg;Bh;){var Kn=Bh.sm,mj=null;for(wg=0;wg<Kn.length;wg++){var Bi=Kn[wg];if(Bi.from==Bh&&!Bi.Pl){Bi.Pl=!0;var Ln=Bi.Yf;xg.push(Ln);Ln.Pl||(Ln.Pl=!0,mj=Ln);break}}Bh=mj}var cl=void 0,gm=void 0,Ci=void 0,yg=void 0,nj=Vh[em],jd=xg,dl=nj.indexOf(jd[0]),xf=nj.indexOf(jd[jd.length-1]);dl<xf?(yg=dl,Ci=xf,gm=!1):(yg=xf,Ci=dl,gm=!0);var Rf=nj.slice(0,yg);if(gm)for(cl=jd.length;cl--;)Rf.push(jd[cl]);else Rf.push.apply(Rf,jd);Rf.push.apply(Rf,nj.slice(Ci+1));
  var Sf=nj.slice(yg+1,Ci);if(gm)Sf.push.apply(Sf,jd);else for(cl=jd.length;cl--;)Sf.push(jd[cl]);var el=[Rf,Sf];$.Ba(Vh,em,1,el[0],el[1]);bl=dU(this,lj=!lj)}this.bd=Ai;this.la[0]=[this.ra];this.la[this.rb]=[this.ea];this.Vd=1;var Vd,Wh;if(2<this.bd.length)for(Vd=0;Vd<this.bd.length;Vd++){var lh=this.bd[Vd];a:{for(var Mn=window.Infinity,Nn=0,Ng=0;Ng<lh.length;Ng++){var Tf=lh[Ng];if(!Tf.level){var Di=Ng;break a}Tf.level<Mn&&(Mn=Tf.level,Nn=Ng)}Di=Nn}for(var hm=0,oj,fl,pj;;){hm+=1;pj=[lh[$.Za(Di+hm,lh.length)],
  lh[$.Za(Di-hm,lh.length)]];oj=pj[0];fl=pj[1];if(oj==fl||oj!=fl&&(oj==this.ea||fl==this.ea))break;oj.mR=fl;fl.Tea=oj}}for(Wh in this.D){var nd=this.D[Wh];if(nd!=this.ra&&nd!=this.ea&&!nd.Tea){var gl=nd.level;this.la[gl]=[nd];for(var qj=nd;qj.mR;)this.la[gl].push(qj.mR),qj=qj.mR,this.Vd=Math.max(this.Vd,this.la[gl].length)}}var Ky=0;for(Vd=0;Vd<this.la.length;Vd++){var lv=this.la[Vd];for(Wh=0;Wh<lv.length;Wh++){var dp=lv[Wh];dp&&!dp.Ju&&(dp.index=Ky++)}}}this.I(4096)}};
  $.g.nZ=function(a){var b=0;$.W(a,4096)&&(b|=16384);$.W(a,8192)&&(b|=32768);$.W(a,1)&&(b|=4);this.u(b,1)};$.g.rZ=function(a){var b=0;$.W(a,4096)&&(b|=16384);$.W(a,8192)&&(b|=32768);this.u(b,1)};$.g.Gc=function(a){this.wk||(this.wk=new UT,$.Pp(this,"milestones",this.wk),$.U(this.wk,this.nZ,this));return $.n(a)?(this.wk.N(a),this):this.wk};$.g.Ub=function(a){this.Ck||(this.Ck=new VT,$.Pp(this,"tasks",this.Ck),$.U(this.Ck,this.rZ,this));return $.n(a)?(this.Ck.N(a),this):this.Ck};
  $.g.ce=function(a){this.Ha||(this.Ha=new WT,$.U(this.Ha.Gc(),this.nZ,this),this.Ha.Gc().parent(this.Gc()),$.U(this.Ha.Ub(),this.rZ,this),this.Ha.Ub().parent(this.Ub()));return $.n(a)?(this.Ha.N(a),this):this.Ha};$.g.Fba=function(a){var b=a.tag;if(b&&null!=b.m){var c=b.m;b=c.ze?this.ce().Gc():this.Gc();var d=this.Ec(!0,void 0,void 0,c),e=c.me?2:$.Jk;c=b.ru(e,d);b=b.Wp(e,d);a.fill(c).stroke(b)}};
  $.g.Gba=function(a){if((a=a.tag)&&null!=a.m){var b=a.m;a=b.rS;var c=!0;if(a){var d=this.Gc().Ma().labels();a.Yc(d.rd());c=fU(d,c);b.me&&(d=this.Gc().selected().labels(),a.Yc(d.rd()),c=fU(d,c));b.ze&&(d=this.ce().Gc().Ma().labels(),a.Yc(d.rd()),c=fU(d,c),b.me&&(b=this.ce().Gc().selected().labels(),a.Yc(b.rd()),c=fU(b,c)));a.enabled(c);a.W()}}};
  $.g.afa=function(a){if((a=a.tag)&&null!=a.w){a=a.w;var b=a.yY;b.clear();b.nc(1,0,0,1,0,0);var c={width:null,height:null,rotation:0,padding:[0,0,0,0]},d=a.xT,e=a.lR;if(d){var f=!0,h=this.Ub().Ma().Fl();f=fU(h,f);d.Yc(h.rd());if(a.me){var k=this.Ub().selected().Fl();d.Yc(k.rd());f=fU(k,f)}a.ze&&(k=this.ce().Ub().Ma().Fl(),d.Yc(k.rd()),f=fU(k,f),a.me&&(k=this.ce().Ub().selected().Fl(),d.Yc(k.rd()),f=fU(k,f)));d.enabled(f);d.W();f=$.Ns(h,d,void 0,c);b.moveTo(f.left,f.top).lineTo(f.left+f.width,f.top).lineTo(f.left+
  f.width,f.top+f.height).lineTo(f.left,f.top+f.height).close()}e&&(f=!0,d=this.Ub().Ma().sj(),e.Yc(d.rd()),f=fU(d,f),a.me&&(h=this.Ub().selected().sj(),e.Yc(h.rd()),f=fU(h,f)),a.ze&&(h=this.ce().Ub().Ma().sj(),e.Yc(h.rd()),f=fU(h,f),a.me&&(h=this.ce().Ub().selected().sj(),e.Yc(h.rd()),f=fU(h,f))),e.enabled(f),e.W(),c=$.Ns(d,e,void 0,c),b.moveTo(c.left,c.top).lineTo(c.left+c.width,c.top).lineTo(c.left+c.width,c.top+c.height).lineTo(c.left,c.top+c.height).close());b.dt(a.rotation,"center")}};
  $.g.$ea=function(a){var b=a.tag;if(b)if(null!=b.w){var c=b.w;var d=this.g[c.id];var e=c.ze?this.ce().Ub():this.Ub();d=this.Ec(!0,c,d,void 0);var f=c.me?2:$.Jk;c=e.ru(f,d);e=e.Wp(f,d);b.a&&($.D(e)&&(e=$.Cc(e),delete e.dash),a.fill(c));a.stroke(e)}else null!=b.d&&(e=b.d?this.ce().Ub():this.Ub(),d=this.Ec(!1,void 0,void 0,void 0),c=e.dx("dummyFill",0,d),e=e.dx("dummyStroke",0,d),b.a&&($.D(e)&&(e=$.Cc(e),delete e.dash),a.fill(c)),a.stroke(e))};
  $.g.Mj=function(a){this.kb();this.J(8192)&&($T(this),this.I(8192));this.Ia||(this.Ia=this.Va.ve(),$.L(this,this.Ia),this.ta=new $.nz(function(){return $.Vi()},function(a){a.clear();a.tag=void 0}),this.ta.zIndex(1),this.ta.parent(this.Ia),this.Hc=new $.nz(function(){var a=$.Vi();a.fill("none").stroke({color:"#fff",opacity:1E-4,thickness:6});return a},function(a){a.clear();a.tag=void 0}),this.Hc.zIndex(3),this.Hc.parent(this.Ia),this.Ya=new $.nz(function(){return $.Vi()},function(a){a.clear()}),this.Ya.zIndex(3),
  this.Ya.parent(this.Ia),this.K=this.Ia.ve(),this.K.zIndex(4),this.oc=new $.nz(function(){var a=$.Vi();a.fill({color:"#fff",opacity:1E-4}).stroke({color:"#fff",opacity:1E-4,thickness:2});return a},function(a){a.clear();a.tag=void 0;a.nc(1,0,0,1,0,0)}),this.oc.zIndex(5),this.oc.parent(this.Ia),this.Gc().Qy(this.K),this.ce().Gc().Qy(this.K),this.Ub().Qy(this.K),this.ce().Ub().Qy(this.K),this.Gc().Rk(),this.Ub().Rk(),this.ce().Gc().Rk(),this.ce().Ub().Rk());$.mu(this.Za(),this);$.mu(this.Gc().Za(),this);
  $.mu(this.Ub().Za(),this);$.mu(this.ce().Gc().Za(),this);$.mu(this.ce().Ub().Za(),this);if(this.J(4)){this.ta.clear();this.Hc.clear();this.Ya.clear();this.oc.clear();this.Gc().LH();this.Ub().LH();var b=$.M(this.i("verticalSpacing"),a.height),c=$.M(this.i("horizontalSpacing"),a.width),d,e=this.rb>=this.Vd?a.width:a.height;var f=$.M(this.ce().Gc().i("size"),e);var h=$.M(this.Gc().i("size"),e);var k=Math.max(h,f);h=a.left+k/2;for(f=0;f<this.la.length;f++){var l=this.la[f];if(l){var m=a.top+k/2;for(d=
  0;d<l.length;d++){var p=l[d];if(p){if(!p.Ju){var q=$.oz(this.Ya);var r=p.ze?this.ce().Gc():this.Gc();r=p.me?r.selected().i("stroke"):r.Ma().i("stroke");r=0==$.Cn(r)%2?0:.5;var t=p.ze?this.ce().Gc():this.Gc();var u=$.M(t.i("size"),e);var v=Math.round(u/2);p.qb=v;switch(t.i("shape")){case "rhombus":q.moveTo(h+r-v,m+r).lineTo(h+r,m+r-v).lineTo(h+r+v,m+r).lineTo(h+r,m+r+v).close();break;case "rectangle":q.moveTo(h+r-v,m+r-v).lineTo(h+r+v,m+r-v).lineTo(h+r+v,m+r+v).lineTo(h+r-v,m+r+v).close();break;default:q.moveTo(h+
  r+v,m+r).arcTo(v,v,0,360)}q.tag={m:p};p.sS=q;t=this.Ec(!0,void 0,void 0,p);r=p.ze?this.ce().Gc():this.Gc();q=this.Gc().Ma().labels().add(t,{value:{x:h-v,y:m-v}});q.Yc(r.Ma().labels().rd());q.width(u);q.height(u);p.rS=q}p.left=h;p.top=m}m+=b}}h+=c}for(f in this.G)if(t=this.G[f],e=t.from,d=t.Yf,c=(b=t.ux?t.ux:void 0)?this.g[b.id]:void 0,r=t.ze,!e.Ju){k=$.oz(this.ta);p=$.oz(this.ta);l=$.oz(this.Hc);k.tag=b?{w:b}:{d:r};p.tag=b?{w:b}:{d:r};p.tag.a=!0;l.tag=b?{w:b}:{d:r};r=t.ze?this.ce().Ub():this.Ub();
  u=this.Ec(!0,b,c,void 0);b?(r=r.Wp(b.me?2:$.Jk,u),b.sS=k,b.yY=$.oz(this.oc),b.yY.tag={w:b},b.uV=p):r=r.dx("dummyStroke",0,u);r=0==$.Cn(r)%2?0:.5;v=e.left+r+(e.qb||0);var x=e.top+r;k.moveTo(v,x);l.moveTo(v,x);u=(v+d.left-d.qb)/2;q=(d.top+x)/2;var w=Math.atan((d.top-e.top)/(d.left-d.qb-e.left-e.qb));b&&(b.rotation=180*w/Math.PI);if(t.Ju){for(w=t.Yf;w.Ju;)h=w.left+r,m=w.top+r,k.lineTo(h,m),l.lineTo(h,m),t=w.IL,w=t.Yf;v=h;x=m;t=w.left+r-(w.qb||0);w=w.top+r;var y=Math.atan((w-x)/(t-v)),B=eU(v,x,t,w),F=
  t-10*Math.cos(y);y=w-10*Math.sin(y);var C=B[0],N=B[1],P=B[2];B=B[3];k.moveTo(v,x).lineTo(F,y)}else t=d.left+r-(d.qb||0),w=d.top+r,y=Math.atan((w-x)/(t-v)),B=eU(v,x,t,w),F=t-10*Math.cos(y),y=w-10*Math.sin(y),C=B[0],N=B[1],P=B[2],B=B[3],k.moveTo(v,x).lineTo(F,y);p.moveTo(F,y).lineTo(C,N).lineTo(t,w).lineTo(P,B).close();l.lineTo(t,w);b&&(e=$.Nl(0,0,d.left-d.qb-e.left-e.qb,d.top-e.top),t=this.Ec(!0,b,c,void 0),c=this.Ub().Ma().Fl().add(t,{value:{x:u+r,y:q+r}}),b.xT=c,c.width(e),c.height(a.height),c.rotation(b.rotation),
  c.tag={w:b},r=this.Ub().Ma().sj().add(t,{value:{x:u+r,y:q+r}}),r.width(e),r.height(a.height),b.lR=r,r.rotation(b.rotation),r.tag={w:b})}this.u(49152)}this.J(32768)&&(this.Ya.hi(this.Fba,this),this.ta.hi(this.$ea,this),this.u(16384),this.I(32768));this.J(16384)&&(this.Gc().Rk(),this.Ub().Rk(),this.ce().Gc().Rk(),this.ce().Ub().Rk(),this.Ya.hi(this.Gba,this),this.ta.hi(this.afa,this),this.I(16384))};$.g.uk=function(){return this.xa?!this.xa.jc():!0};$.g.hl=function(a,b){return $.hs(this.data(),b)};
  $.g.R=function(){this.Xb.length=0;this.Ra.length=0;delete this.f;delete this.g;delete this.xa;$.$c(this.Gc(),this.Ub(),this.ce());$.$c(this.Hc,this.oc,this.Ya,this.ta,this.K);XT.B.R.call(this)};$.g.F=function(){var a=XT.B.F.call(this);a.type=this.La();this.xa&&(a.treeData=this.xa.cC());a.milestones=this.Gc().F();a.tasks=this.Ub().F();a.criticalPath=this.ce().F();$.lp(this,lU,a);return{chart:a}};
  $.g.Y=function(a,b){XT.B.Y.call(this,a,b);this.Ld=$.Qk("defaultTooltip");"treeData"in a&&this.data($.Vr(a.treeData));"milestones"in a&&this.Gc().Y(a.milestones,b);"tasks"in a&&this.Ub().Y(a.tasks,b);"criticalPath"in a&&this.ce().Y(a.criticalPath,b);$.bp(this,lU,a)};var mU=XT.prototype;mU.getType=mU.La;mU.tasks=mU.Ub;mU.milestones=mU.Gc;mU.criticalPath=mU.ce;mU.data=mU.data;mU.getType=mU.La;mU.toCsv=mU.hl;$.no.pert=gU;$.G("anychart.pert",gU);}).call(this,$)}
  