if(!_.resource){_.resource=1;(function($){var Oia=function(a,b){return(0,window.isNaN)(a)?(0,window.isNaN)(b)?0:1:(0,window.isNaN)(b)?-1:b-a},u6=function(a){$.Wp.call(this);this.Ba=a;this.o=this.f=this.g=this.b=null;a={};$.R(a,[["fill",16,1],["stroke",16,1],["hatchFill",16,1],["labels",0,0]]);this.ca=new $.Ew(this,a,$.Wk);this.ca.pa("labelsAfterInitCallback",$.Kw);a={};$.R(a,[["fill",0,0],["stroke",0,0],["hatchFill",0,0],["labels",0,0]]);this.ya=new $.Ew(this,a,$.ln);this.ya.pa("labelsFactoryConstructor",$.Gw);this.Da=new $.Ew(this,a,$.mn);
this.Da.pa("labelsFactoryConstructor",$.Gw);$.R(this.xa,[["color",16,1]])},v6=function(a,b){if(!a)return Pia;var c=b+"|"+a+"|true",d=Qia[c];if(!d){switch(b){case 2:d=$.Ok;break;case 3:d=$.Pk;break;default:case 1:d=$.Qk}Qia[c]=d=$.qa(Ria,a,d,3==b,!0)}return d},Ria=function(a,b,c,d,e,f,h,k){k=$.Uk(k);if(k!=$.Wk&&d){var l=e.Dc(a,k,f,b);c&&!0===l&&(l=w6);if($.p(l)){if(!$.E(l))return l;if(c)return c=e.oi(h,f),b(l.call(c,c))}}a=e.Dc(a,0,f,b);c&&!0===a&&(a=w6);$.E(a)&&(c=c?e.oi(h,f):e.me(h,f),a=b(a.call(c,
c)));l&&(c=e.me(h,f,a),a=b(l.call(c,c)));return a},Pia=function(){return"none"},x6=function(a){$.Wp.call(this);this.f=[];this.g=[];this.$=a||null;this.o=0;this.D={};this.b=null;this.P=!0;this.$?$.L(this.$,this.$Z,this):(a=$.Gn($.Hn()),this.b=$.Ga(a.weekendRange))},A6=function(a,b,c){b=new Date(b);for(b=new $.zm(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate());b.getTime()<c;){if(y6(a,b).length)return!0;b.add(z6)}return!1},B6=function(a,b,c,d,e){if((0,window.isNaN)(b)||(0,window.isNaN)(c))return[];
b=new Date(b);b=new $.zm(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate());for(var f=b.getTime(),h=[];f<c;){b.add(d);var k=b.getTime();var l=a;var m=k,n=new Date(f);n=new $.zm(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate());for(var q=[];n.getTime()<m;){for(var r=y6(l,n),t=0;t<r.length;t++){var u=r[t];q.push([u[0]-6E4*l.o,u[1]-6E4*l.o])}n.add(z6)}l=q;e&&!l.length||h.push({start:f,end:k,workingTime:l});f=k}return h},E6=function(a,b,c){b=new Date(b);b=new $.zm(b.getUTCFullYear(),b.getUTCMonth(),
b.getUTCDate());if(!a.N){var d=C6.getTime();if(!a.b||0==a.b[0]&&6==a.b[1])for(var e=0;e<a.f.length;e++){var f=a.f[e];f.D||(d=Math.max(d,f.g.getTime()))}else d=D6.getTime();a.N=d}d=5E3;for(e=b.getTime();e<=a.N&&--d;){b.add(c);f=b.getTime();if(A6(a,e,f))return e;e=f}return d&&a.$?E6(a.$,b.getTime(),c):window.NaN},F6=function(a,b,c){b=new Date(b);b=new $.zm(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate());if(!a.G){var d=D6.getTime();if(!a.b||0==a.b[0]&&6==a.b[1])for(var e=0;e<a.f.length;e++){var f=
a.f[e];f.D||(d=Math.min(d,f.N.getTime()))}else d=C6.getTime();a.G=d}d=5E3;for(e=b.getTime();e>=a.G&&--d;){b.add(c);f=b.getTime();if(A6(a,f,e))return f;e=f}return d&&a.$?F6(a.$,b.getTime(),c):window.NaN},y6=function(a,b){var c=$.xm.prototype.MH.call(b),d=a.D[c];if($.p(d))return d;d=null;for(var e=0;e<a.f.length;e++){var f=a.f[e],h=b;d=f.P(h)?f.G(d||[],h):d}!d&&a.b&&(d=[],e=(b.DK()+6)%7,(e<a.b[0]||e>a.b[1])&&d.push([b.getTime(),b.getTime()+864E5-6E4]));!d&&a.$&&(d=y6(a.$,b));d||(d=[]);return a.D[c]=
d},G6=function(a){a.D={};a.N=null;a.G=null},Uia=function(a){var b=a.isWorking;this.D=$.p(b)?!b:!1;b=$.ij(Sia,a.each,"none");switch(b){case "year":var c=a.on,d=a.from,e=a.to;this.P=this.X9;(c=$.br(c,"dd.MM",H6))?(this.G=this.kT,this.b=new $.zm(2E3,c.getUTCMonth(),c.getUTCDate()),e=I6(d,e),this.o=e[0],this.f=e[1]):(this.G=this.g1,this.b=null,c=(c=$.br(d,"dd.MM",H6))?new $.zm(c):C6,this.o=new $.zm(2E3,c.getUTCMonth(),c.getUTCDate()),c=(c=$.br(e,"dd.MM",H6))?new $.zm(c):D6,this.f=new $.zm(2E3,c.getUTCMonth(),
c.getUTCDate()),this.f.add(z6));break;case "week":Tia(this,a.on,a.from,a.to);break;case "day":Tia(this,window.NaN,a.from,a.to);break;default:c=a.on,d=a.from,e=a.to,this.P=this.zV,(c=$.br(c))?(this.G=this.kT,this.b=new $.zm(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),e=I6(d,e),this.o=e[0],this.f=e[1]):(this.G=this.g1,this.b=null,c=(c=$.br(d))?new $.zm(c):C6,this.o=new $.zm(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),c=(c=$.br(e))?new $.zm(c):D6,this.f=new $.zm(c.getUTCFullYear(),c.getUTCMonth(),
c.getUTCDate()),this.f.add(z6))}"none"==b?this.b?(this.N=this.b.clone(),this.g=this.b.clone(),this.g.add(z6)):(this.N=this.o.clone(),this.g=this.f.clone()):(this.N=(b=$.br(a.starts))?new $.zm(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()):C6,(b=$.br(a.ends))?(this.g=new $.zm(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()),this.g.add(z6)):this.g=D6)},Tia=function(a,b,c,d){a.P=a.Y9;a.G=a.kT;b=Math.min($.tn(b,window.NaN,!0),6);a.b=(0,window.isNaN)(b)?null:b;b=I6(c,d);a.o=b[0];a.f=b[1]},I6=function(a,
b){if($.z(a)){var c=a.split(":",2);var d=[Math.min($.tn(c[0],0,!0),23),2==c.length?Math.min($.tn(c[1],0,!0),59):0]}else $.ea(a)?d=[Math.max(0,Math.min(23,Math.floor(a))),0]:d=null;if($.z(b)){c=b.split(":",2);var e=[Math.min($.tn(c[0],23,!0),23),2==c.length?Math.min($.tn(c[1],0,!0),59):0]}else $.ea(b)&&!(0,window.isNaN)(b)?e=[Math.max(0,Math.min(23,Math.floor(b))),0]:e=null;return d&&e?[d,e]:[[0,0],[23,59]]},J6=function(a){$.X.call(this);this.Ba=a;this.f=new $.kA(function(){return $.Wi()});this.g=
new $.kA(function(){return $.Wi()});this.D=$.Zi();this.Hf=$.dj();this.Va=$.Zi();this.f.parent(this.Va);this.g.parent(this.Va);this.D.parent(this.Va);this.Va.clip(this.Hf);this.G=[];this.o=null;$.R(this.xa,[["fill",16,1],["stroke",16,1],["hatchFill",16,1],["height",0,2]])},Wia=function(a,b,c,d,e){if(c&&c.UA>c.hy){var f=a.Ec(b,c,d),h=$.st(a.Ca,a.Ca.i("format"),f,++a.P);if(a.b){if(a.b.text==h)return;Via(a,b)}a.b={index:a.P,text:h,start:b,cM:f,Tla:c,nma:d,top:e}}else Via(a,b)},Via=function(a,b){a.b&&
(a.b.end=b,a.G.push(a.b),a.b=null)},Xia=function(a,b){var c=b.start,d=b.end,e=a.i("stroke"),f=a.Ba.Wa(),h=$.Xb(e),k=$.Xb(a.Ba.cX().i("verticalStroke")),l=k/2+h/2;c=$.Ya($.O(f.Qm(c)+a.N.left,k)+l,a.N.left,a.N.$a());d=$.Ya($.O(f.Qm(d)+a.N.left,k)-l,a.N.left,a.N.$a());f=$.O(b.top+h/2,h);k=$.O(b.top+a.i("height")-h/2,h);l=$.lA(a.f);l.bo(c).co(f).$n(d-c).Yn(k-f).fill(a.i("fill")).stroke(e);if(e=a.i("hatchFill"))l=$.lA(a.f),l.bo(c+h/2).co(f+h/2).$n(d-c-h).Yn(k-f-h).fill(e).stroke(null);a.pf(b.index,b.cM,
new $.I(c,f,d-c,k-f))},K6=function(){$.X.call(this);this.Xa=this.G=this.D=this.ba=this.va=this.U=this.la=this.ga=this.Ea=this.N=this.P=this.b=this.f=null;this.Ha=new $.Ws;$.L(this.Ha,this.A8,this);this.o=new $.IF;$.L(this.o,this.C8,this);this.cb=null;this.g=[];this.Ja=0;$.R(this.xa,[["horizontalStroke",16],["verticalStroke",16],["oddFill",16],["evenFill",16],["oddHolidayFill",16],["evenHolidayFill",16],["oddHatchFill",16],["evenHatchFill",16],["oddHolidayHatchFill",16],["evenHolidayHatchFill",16],
["drawTopLine",128],["drawRightLine",128],["drawBottomLine",128],["drawLeftLine",128]])},Yia=function(a,b){$.p(b)&&(a.g=b,a.u(128,1))},Zia=function(a,b){$.p(b)&&(a.Ja=b,a.u(256,1))},L6=function(){$.Ws.call(this);this.o=new $.IF;$.L(this.o,this.E8,this)},M6=function(a,b){$.Wp.call(this);this.Ba=a;this.he=b;this.g=null;this.b=[];this.o={};this.f=0;this.D=!1;this.ub=null;this.u(4294967295)},aja=function(a,b,c,d,e){if(b=a.b[b])for(var f=0;f<b.tm.length;f++){var h=b.tm[f];(0,window.isNaN)(h.wN)||$ia(a,
b,h,c,d,e)}},bja=function(a){a.mb();return a.f},$ia=function(a,b,c,d,e,f){var h=a.Ba.vy(),k=c.shape,l=c.eS,m=b.data;h.b||(h.b=v6("fill",1));var n=h.b(h,m,c,d);m=b.data;h.g||(h.g=v6("stroke",2));var q=h.g(h,m,c,d);m=b.data;h.f||(h.f=v6("hatchFill",3));var r=h.f(h,m,c,d);var t=$.Xb(q);k?m=$.Xb(k.stroke())==t:(k=c.shape=$.lA(e),m=!0);k.fill(n);k.stroke(q);n=!1;r?(l||(l=c.eS=$.lA(e),l.td(!0),n=!0),l.fill(r),l.stroke("none")):l&&l.fill("none");e=a.ub;r=a.Ba.Wa();a.Ba.ke?(q=a.Ba,q.mb(),q=q.kn):q=a.f;var u=
q,v=$.p(c.top)?c.top:b.top,w=f/2+t/2;q=$.O(r.Qm(c.start)+e.left,f)+w;f=$.O(r.Qm(c.end+864E5)+e.left,f)-w;r=$.O(v/u*e.height+e.top+t/2,t);v&&r++;t=$.O((v+c.Fx)/u*e.height+e.top-t/2,t);m&&(k.clear().moveTo(q,r).lineTo(f,r).lineTo(f,t).lineTo(q,t).close(),k.tag={W:a.Ba,index:c.CK});n&&l.clear().moveTo(q,r).lineTo(f,r).lineTo(f,t).lineTo(q,t).close();h.pf(c.wN,d,h.Ec(c,b.data),new $.I(q,r,f-q,t-r),b.data)},N6=function(){$.Wp.call(this)},O6=function(){$.Wp.call(this);$.R(this.xa,[["size",0,1],["borderRadius",
0,1],["opacity",0,1],["align",0,1],["fittingMode",0,1]])},P6=function(a){$.X.call(this);this.P=a;this.f=this.o=this.G=this.D=this.g=this.ta=null;this.coords={Nj:{x:0,y:0,height:0},name:{x:0,y:0,height:0},type:{x:0,y:0,height:0},description:{x:0,y:0,height:0}};this.U={fontColor:"color",fontOpacity:"opacity",fontDecoration:"decoration",textDirection:"direction"};this.index=window.NaN;$.R(this.xa,[["width",0,0],["imageSrc",0,0],["name",0,0],["type",0,0],["description",0,1],["tags",0,1]])},Q6=function(a,
b,c){var d=a.i(b);a=a.ef(b);$.B(c)||(c=[c]);for(b=0;b<c.length;b++)d=d?d[c[b]]:void 0,a=a?a[c[b]]:void 0;if(!$.p(a))return d;if(!$.p(d))return a;if(null===d||(0,window.isNaN)(d)&&!$.D(d))return d;if($.ka(d)!=$.ka(a))return d;if($.B(d)){c=[];var e=Math.max(a.length,d.length);for(b=0;b<e;b++)c[b]=$.p(d[b])?d[b]:a[b]}else c={},$.ra(c,a),$.ra(c,d);return c},R6=function(a,b,c){var d;for(d in c){var e=c[d];d in a.U&&(d=a.U[d]);if(b[d])b[d](e)}},cja=function(a){var b=a.g.width();a.b||(a.b=$.Wi(0,0));a.b.$n(b).Yn(b);
var c=0,d=0,e=0,f=0,h=Q6(a,"imageSettings","borderRadius");$.B(h)||(h=[h]);if(h&&h.length){for(var k=0;k<h.length;k++)h[k]=Math.min(h[k],b/2);1==h.length?(c=h[0],d=h[0],e=h[0],f=h[0]):2==h.length?(c=h[0],d=h[1],e=h[0],f=h[1]):3==h.length?(c=h[0],d=h[1],e=h[2],f=h[1]):4==h.length&&(c=h[0],d=h[1],e=h[2],f=h[3])}a.b.round(c,d,e,f);return a.b},S6=function(a,b,c,d,e,f){a=a.i("width");var h=$.M(e.top,f)||0,k=$.M(e.right,a)||0;f=$.M(e.bottom,f)||0;c.x=d+($.M(e.left,a)||0);c.y+=h;b.width(a-c.x-k);c.height=
b.$d()+f},T6=function(){$.Wp.call(this);$.R(this.xa,[["fontSize",0,1],["fontFamily",0,1],["fontColor",0,1],["fontOpacity",0,1],["fontDecoration",0,1],["fontStyle",0,1],["fontVariant",0,1],["fontWeight",0,1],["letterSpacing",0,1],["textDirection",0,1],["lineHeight",0,1],["textIndent",0,1],["vAlign",0,1],["hAlign",0,1],["wordWrap",0,1],["wordBreak",0,1],["textOverflow",0,1],["selectable",0,1],["useHtml",0,1],["disablePointerEvents",0,1]])},U6=function(){T6.call(this)},V6=function(){$.X.call(this);this.G=
new $.IF;$.L(this.G,this.G8,this);this.f=this.ta=null;this.o=[];this.Ob=[];this.Ja=this.Ea=0;$.R(this.xa,[["stroke",16],["oddFill",16],["evenFill",16],["drawTopLine",256],["drawRightLine",256],["drawBottomLine",256],["drawLeftLine",256]])},W6=function(a,b,c){var d={},e;if(a.length)for(e in b){var f=b[e].cU;var h=f.charAt(0).toUpperCase()+f.substr(1);h=a+h;h=c.get(h);$.p(h)&&(d[f]=h)}else for(e in b)f=b[e].cU,h=c.get(f),$.p(h)&&(d[f]=h);return d},X6=function(a,b,c){for(var d=0;d<a.Ob.length;d++)a.Ob[d].ma[b]=
c},Y6=function(){V6.call(this);this.data(null);$.R(this.xa,[["rowHeight",0],["minRowHeight",0],["maxRowHeight",0]])},Z6=function(){$.Wr.call(this);this.b=null;this.D=!1;this.N=60;this.g="day";this.f=1;this.P=Date.UTC(2E3,0);this.G={};this.o=null;this.U=0},$6=function(a){if(a.J(1)){var b=a.g+a.f.toFixed(0);a.o=a.G[b];a.o||(a.G[b]=a.o=new dja(a));a.u(2);a.I(1)}a.J(2)&&(a.U=eja(a.o,a.P),a.I(2))},dja=function(a){this.Cw=a.OO();this.Cy=a.YU();var b=a.$g(),c=a.count();a=a.WM();this.Lu=fja[b]*c||window.NaN;
!this.Cy&&this.Lu?this.b=$.Jn(a,b,c):(this.Lu=window.NaN,this.lE=this.Vm=$.Kn(b,c),this.jq=this.Vm.b(),this.Cy?(a=$.In(a,this.Vm,2E3),this.b=E6(this.Cw,a,this.Vm),(0,window.isNaN)(this.b)&&(this.b=F6(this.Cw,a,this.jq),this.Vm=null),(0,window.isNaN)(this.b)?(this.Rl=this.Rj=null,b=window.NaN):(this.Rj=new $.zm(new Date(this.b)),this.Rj.add(this.lE),this.Rl=[this.b,this.Rj.getTime()],b=F6(this.Cw,this.b,this.jq)),(0,window.isNaN)(b)?this.jq=this.qk=this.Ll=null:(c=new $.zm(new Date(b)),c.add(this.lE),
this.Ll=[c.getTime(),b],this.qk=new $.zm(new Date(b)))):(this.b=$.Jn(a,b,c),this.Rj=new $.zm(new Date(this.b)),this.Rj.add(this.Vm),this.Rl=[this.b,this.Rj.getTime()],this.qk=new $.zm(new Date(this.b)),this.qk.add(this.jq),this.Ll=[this.b,this.qk.getTime()]))},eja=function(a,b){if(a.Lu)return(b-a.b)/a.Lu;if(a.Rl&&!a.Lu){var c;if(b>=a.b){if(a.Vm&&a.Rj.getTime()<b)if(a.Cy){var d=B6(a.Cw,a.Rj.getTime(),b,a.Vm,!0);for(c=0;c<d.length;c++){var e=d[c];a.Rl.push(e.start,e.end)}d.length&&a.Rj.setTime(d[d.length-
1].end);a.Rj.getTime()<b&&(a.Vm=null)}else{c=a.Rj.getTime();do d=c,a.Rj.add(a.Vm),c=a.Rj.getTime(),a.Rl.push(d,c);while(c<b)}}else if(a.Ll&&a.jq&&a.qk.getTime()>b)if(a.Cy){d=B6(a.Cw,b,a.qk.getTime()-1,a.lE,!0);for(c=d.length;c--;)e=d[c],a.Ll.push(e.end,e.start);d.length&&a.qk.setTime(d[0].start);a.qk.getTime()>b&&(a.jq=null)}else{c=a.qk.getTime();do d=c,a.qk.add(a.jq),c=a.qk.getTime(),a.Ll.push(d,c);while(c>b)}}if(!a.Rl)return window.NaN;if(b==a.b)return 0;if(b>a.b){if(a.Rj.getTime()<=b)return a.Rl.length/
2;d=$.Ma(a.Rl,b);if(0<=d)return Math.round(d/2);d=~d;return d&1?(d>>1)+(b-a.Rl[d-1])/(a.Rl[d]-a.Rl[d-1]):d>>1}if(!a.Ll)return 0;if(a.qk.getTime()>=b)return-(a.Ll.length/2);d=$.Ma(a.Ll,b,Oia);if(0<=d)return-Math.round(d/2)||0;d=~d;return d&1?-((d>>1)+(b-a.Ll[d-1])/(a.Ll[d]-a.Ll[d-1])):-(d>>1)||0},a7=function(a,b){$.Ov.call(this);this.Ia("resource");this.Zc().hoverMode("single").selectionMode("multi-select");this.state=new $.Cv(this);this.Sb=new $.I(0,0,0,0);this.G=new V6;this.G.target(this);$.L(this.G,
this.Bca,this);this.yc=new $.I(0,0,0,0);this.ba=new $.KF;$.L(this.ba,this.Cca,this);this.Dd=new $.I(0,0,0,0);this.Za=new L6;$.L(this.Za,this.tca,this);this.Ea=new $.IF;$.L(this.Ea,this.z8,this);this.f=new K6;$.L(this.f,this.qca,this);this.ai=new $.I(0,0,0,0);this.D=new $.Lz(!0);$.V(this,"horizontalScrollBar",this.D);this.D.wa("scrollerchange",this.Gca,!1,this);$.L(this.D,this.Hca,this);this.yj=new $.I(0,0,0,0);this.o=new $.Lz(!0);$.V(this,"verticalScrollBar",this.o);this.o.pa("inverted",!0);this.o.wa("scrollerchange",
this.Ica,!1,this);$.L(this.o,this.Jca,this);this.rb=new x6;this.cb=new Z6;this.cb.OO(this.rb);$.L(this.cb,this.x8,this);this.pa("currentStartDate",window.NaN);this.eb=this.Ma=window.NaN;this.Oo=this.g=null;this.la=this.b=0;this.df=this.Ag=null;this.Zl=0;this.U=[];this.P=[];this.Eh=[];this.mc=null;this.kn=0;this.ee=this.ke=!1;this.Bg=null;this.Ja=new $.dt;$.L(this.Ja,this.fca,this);this.Uc=new u6(this);$.L(this.Uc,this.aca,this);this.ga=new J6(this);$.L(this.ga,this.hca,this);this.data(a||null,b);
$.Qs(this,this,this.cg,this.rg,null,this.cg,null,this.dj);$.R(this.xa,[["pixPerHour",524288,1],["minRowHeight",524288,1],["resourceListWidth",4,9],["timeLineHeight",4,9],["defaultMinutesPerDay",524288,1],["currentStartDate",262144,1],["splitterStroke",16777216,1]])},b7=function(a,b,c){$.Bf.call(this,b.ea());this.b=c;this.Ba=a;this.cj=void 0;this.Br=(0,$.pa)(function(){this.cj=void 0;var a=this.Ba,b=this.Ea,c=a.cb.Rv(this.va-a.eb);b/=a.b;$.U(a);c!=a.i("currentStartDate")&&(a.pa("currentStartDate",
c),a.u(262144,1));b!=a.la&&(a.la=b,a.u(1048576,1));a.da(!0)},this);$.Cf(this);this.wa("start",this.o,!1,this);this.wa("end",this.g,!1,this)},c7=function(a){this.Ba=a;this.reset()},gja=function(a,b){var c=new a7(a,b);c.ja(!0,$.cl("resource"));return c};$.xm.prototype.MH=$.ca(6,function(a){return[this.getUTCFullYear(),$.nc(this.getUTCMonth()+1,2),$.nc(this.getUTCDate(),2)].join(a?"-":"")});
$.ym.prototype.MH=$.ca(5,function(a){var b=$.xm.prototype.MH.call(this,a);return a?b+" "+$.nc(this.getUTCHours(),2)+":"+$.nc(this.getUTCMinutes(),2)+":"+$.nc(this.IR(),2):b+"T"+$.nc(this.getUTCHours(),2)+$.nc(this.getUTCMinutes(),2)+$.nc(this.IR(),2)});var Sia={Ola:"year",Jla:"week",Zia:"day",NONE:"none"},hja={Tha:"availability-per-chart",Uha:"availability-per-resource",Fha:"activity-per-chart",Gha:"activity-per-resource"};$.H(u6,$.Wp);$.rp(u6,["fill","stroke","hatchFill","labels"],"normal");
$.g=u6.prototype;$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.ya.K(a),this):this.ya};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};$.g.qa=16;$.g.ra=1;var w6=$.Wb("diagonal-brick");$.g=u6.prototype;$.g.Fd=function(a){$.W(a,1)&&this.u(16,1)};
$.g.Ec=function(a,b){this.o||(this.o=new $.$u);return $.Lt(this.o,{start:{value:a.start,type:"date-time"},end:{value:a.end,type:"date-time"},minutesPerDay:{value:a.Fx,type:"number"},hoursPerDay:{value:a.Fx/60,type:"number"},hoursPerDayRounded:{value:Math.ceil(a.Fx/30)/2,type:"number"},name:{value:b.name||"Unnamed Activity",type:"string"},activityName:{value:b.name,type:"string"},activityInfo:{value:b,type:""}})};
$.g.pf=function(a,b,c,d,e){var f=this.ca.labels(),h=0==b?"normal":1==b?"hovered":"selected",k=e.normal?e.normal.label:void 0,l=k||e.label;k=void 0;b!=$.Wk&&(k=(k=e[h]?e[h].label:void 0)||e[b==$.ln?"hoverLabel":"selectLabel"]);e=l&&$.p(l.enabled)?l.enabled:null;h=k&&$.p(k.enabled)?k.enabled:null;b=b==$.mn?this.selected().labels():b==$.ln?this.lb().labels():null;(null===h?b&&null!==b.enabled()&&$.p(b.enabled())?b.enabled():null===e?f.enabled():e:h)?(e=k&&k.position||b&&b.i("position")||l&&l.position||
f.i("position"),e={value:$.un(d,e)},(h=f.Wd(a))?(h.Nf(c),h.Cc(e)):h=f.add(c,e,a),h.yi(),$.yt(h,b),h.gd(l,k),h.width(d.width),h.height(d.height),h.clip(d),h.X()):f.clear(a)};$.g.fH=function(a,b){var c=this.ca.labels();$.U(c);this.D||(this.D=$.Zi(),this.D.zIndex(4).parent(a),this.Hf=$.dj(),this.D.clip(this.Hf));c.O(this.D);c.clear();c.fa(b);c.Ch=0;this.Hf.shape(b)};$.g.Ki=function(){var a=this.ca.labels();a.X();var b=a.Ul();b&&b.td(!0);a.da(!1);this.I(16)};var d7={};$.dp(d7,0,"color",$.Ap);$.S(u6,d7);
var Qia={};$.g=u6.prototype;$.g.me=function(a,b,c){return{sourceColor:c||this.i("color")||"blue",start:a.start,end:a.end,minutesPerDay:a.Fx,activityName:b.name,activityInfo:b}};$.g.oi=function(a,b){return{sourceHatchFill:w6,start:a.start,end:a.end,minutesPerDay:a.Fx,activityName:b.name,activityInfo:b}};$.g.jh=function(a){return null!=this.La[a]};
$.g.Dc=function(a,b,c,d){var e=0==b?this.ca:1==b?this.ya:this.Da,f=c[0==b?"normal":1==b?"hovered":"selected"];b=(f?f[a]:void 0)||c[$.Xk(b,a)];$.p(b)?b=d(b):(b=e.md(a),null==b&&(b=e.ef(a),$.p(b)&&(b=d(b))));return b};$.g.F=function(){var a=u6.B.F.call(this);$.Bp(this,d7,a,"Activities");a.normal=this.ca.F();a.hovered=this.ya.F();a.selected=this.Da.F();return a};
$.g.Y=function(a,b){u6.B.Y.call(this,a);$.tp(this,d7,a);this.ca.ja(!!b,a);this.ca.ja(!!b,a.normal);this.ya.ja(!!b,a.hovered);this.Da.ja(!!b,a.selected)};$.g.R=function(){this.g=this.b=this.f=null;$.jd(this.ca,this.ya,this.Da,this.Hf);this.Hf=this.Da=this.ya=this.ca=null;u6.B.R.call(this)};var e7=u6.prototype;e7.normal=e7.Ta;e7.hovered=e7.lb;e7.selected=e7.selected;$.H(x6,$.Wp);x6.prototype.qa=0;x6.prototype.ra=2;var H6=new Date(Date.UTC(2E3,0)),C6=new $.zm(0,0,1),D6=new $.zm(9999,11,31),z6=new $.rm(0,0,1);$.g=x6.prototype;$.g.Q2=function(a){if($.p(a)){var b;if($.B(a)){var c=$.tn(a[0],window.NaN,!0);c=$.Ya(c,0,6);a=$.tn(a[0],window.NaN,!0);a=$.Ya(a,0,6);(0,window.isNaN)(c)?(0,window.isNaN)(a)?b=null:b=[a,a]:(0,window.isNaN)(a)?b=[c,c]:(c>a&&(b=c,c=a,a=b),b=[c,a])}else b=null;this.P=!1;this.b=b;G6(this);this.ua(2);return this}return this.b};
$.g.u2=function(a){return $.p(a)?(this.o=$.N(a),G6(this),this.ua(2),this):this.o};$.g.HX=function(a){if($.p(a)){this.g=$.B(a)?a.slice():[];for(a=this.f.length=0;a<this.g.length;a++)this.f.push(new Uia(this.g[a]));G6(this);this.ua(2);return this}return this.g};$.g.Mba=function(a,b,c,d){return B6(this,$.Cj(a),$.Cj(b),$.Kn($.Gj(c,"day",!0),$.tn(d)))};$.g.$Z=function(a){$.W(a,2)&&!this.b&&G6(this)};$.g=Uia.prototype;$.g.zV=function(a){return a.getTime()>=this.N.getTime()&&a.getTime()<=this.g.getTime()};
$.g.Y9=function(a){return this.zV(a)&&(null===this.b||(a.DK()+6)%7==this.b)};$.g.X9=function(a){if(!this.zV(a))return!1;if(this.b)return a.getUTCMonth()==this.b.getUTCMonth()&&a.getUTCDate()==this.b.getUTCDate();var b=a.getUTCFullYear();a=a.getTime();var c=this.o.clone();c.JR(b);var d=this.f.clone();d.JR(b);return a>=c.getTime()&&a<=d.getTime()};
$.g.kT=function(a,b){var c=this.o,d=b.getTime()+36E5*c[0]+6E4*c[1];c=this.f;for(var e=b.getTime()+36E5*c[0]+6E4*c[1],f=[],h=0;(c=a[h])&&c[1]<d;)f.push(c),h++;if(h<a.length){if(c[0]>e)this.D||f.push([d,e]);else{this.D?(c[0]<d&&f.push([c[0],d]),d=e):d=Math.min(d,c[0]);for(;c&&c[1]<=e;)h++,c=a[h];h<a.length&&c[0]<=e&&(f.push([d,c[1]]),h++)}for(;h<a.length;h++)f.push(a[h])}else this.D||f.push([d,e]);return f};$.g.g1=function(a,b){a.length=0;this.D||a.push([b.getTime(),b.getTime()+864E5-6E4]);return a};
x6.prototype.F=function(){var a=x6.B.F.call(this);this.P||(a.weekendRange=this.b?[this.b[0],this.b[1]]:null);a.timezoneOffset=this.o;a.availabilities=this.g.slice();return a};x6.prototype.Y=function(a){x6.B.Y.call(this,a);this.Q2(a.weekendRange);this.u2(a.timezoneOffset);this.HX(a.availabilities)};x6.prototype.R=function(){this.g=null;this.$&&$.Xp(this.$,this.$Z,this);this.$=null;x6.B.R.call(this)};var f7=x6.prototype;$.F("anychart.scales.calendar",function(a){return new x6(a)});f7.weekendRange=f7.Q2;
f7.timezoneOffset=f7.u2;f7.availabilities=f7.HX;f7.getWorkingSchedule=f7.Mba;$.H(J6,$.X);$.g=J6.prototype;$.g.qa=$.X.prototype.qa|208;$.g.ra=$.X.prototype.ra|2;$.g.clear=function(){this.f.clear();this.g.clear();this.labels().clear();this.G.length=0;this.b=null;this.P=-1;this.u(192)};
$.g.X=function(){if(this.xc()){this.J(4)&&(this.N=this.fa(),this.Hf.shape(this.N),this.I(4));if(this.J(128)){for(var a=0;a<this.G.length;a++)Xia(this,this.G[a]);this.I(144)}if(this.J(64)){a=this.labels();$.U(a);a.O(this.D);a.fa(this.N);a.Ch=0;this.Hf.shape(this.N);a.X();var b=a.Ul();b&&b.td(!0);a.da(!1);this.I(64)}if(this.J(16)){var c=this.i("fill"),d=this.i("stroke");this.f.Oi(function(a){a.fill(c);a.stroke(d)});var e=this.i("hatchFill");this.g.Oi(function(a){a.fill(e);a.stroke(null)});this.I(16)}this.J(2)&&
(a=this.O(),this.Va.parent(a),this.I(2));this.J(8)&&(a=this.zIndex(),this.Va.zIndex(a),this.I(8))}};$.g.labels=function(a){this.Ca||(this.Ca=new $.kt,this.Ca.qb(this),$.L(this.Ca,this.Fd,this));return $.p(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Ca.K(a),this):this.Ca};$.g.Fd=function(a){$.W(a,1)&&this.u(16,1)};
$.g.Ec=function(a,b,c){this.o||(this.o=new $.$u);a=b.UA-b.hy;b={minutes:{value:a,type:"number"},hours:{value:a/60,type:"number"},hoursRounded:{value:Math.ceil(a/30)/2,type:"number"},percent:{value:a/b.hy*100,type:"number"},allocated:{value:b.UA,type:"number"},vacant:{value:b.hy,type:"number"},activities:{value:(0,$.Va)(b.vy,function(a){return(a=c.b[a]||null)?a.data:null}),type:""}};return $.Lt(this.o,b)};
$.g.pf=function(a,b,c,d){var e=this.labels();if(b){var f=e.Wd(a),h={value:{x:c.left,y:c.top}};f?(f.Nf(b),f.Cc(h)):f=e.add(b,h,a);f.yi();f.gd(d);f.width(c.width);f.height(c.height);f.clip(c);f.X()}else e.clear(a)};var g7={};$.dp(g7,1,"fill",$.yp);$.dp(g7,1,"stroke",$.xp);$.dp(g7,1,"hatchFill",$.zp);$.dp(g7,0,"height",$.mp);$.S(J6,g7);$.g=J6.prototype;$.g.jh=function(a){return null!=this.La[a]};$.g.Dc=function(a,b,c){b=b[a];$.p(b)?b=c(b):(b=this.La[a],null==b&&(b=this.ma[a],$.p(b)&&(b=c(b))));return b};
$.g.F=function(){var a=J6.B.F.call(this);$.Bp(this,g7,a,"Resource Conflicts");return a};$.g.Y=function(a,b){J6.B.Y.call(this,a);$.tp(this,g7,a);this.labels().ja(!!b,a.labels)};$.g.R=function(){$.jd(this.f,this.g,this.Hf);this.f=this.g=this.Hf=null;J6.B.R.call(this)};var ija=J6.prototype;ija.labels=ija.labels;$.H(K6,$.Us);K6.prototype.qa=$.Us.prototype.qa|976;K6.prototype.ra=$.Us.prototype.ra;var h7={};$.dp(h7,1,"horizontalStroke",$.xp);$.dp(h7,1,"verticalStroke",$.xp);$.dp(h7,1,"oddFill",$.yp);$.dp(h7,1,"evenFill",$.yp);$.dp(h7,1,"oddHolidayFill",$.yp);$.dp(h7,1,"evenHolidayFill",$.yp);$.dp(h7,1,"oddHatchFill",$.zp);$.dp(h7,1,"evenHatchFill",$.zp);$.dp(h7,1,"oddHolidayHatchFill",$.zp);$.dp(h7,1,"evenHolidayHatchFill",$.zp);$.dp(h7,0,"drawTopLine",$.op);$.dp(h7,0,"drawRightLine",$.op);
$.dp(h7,0,"drawBottomLine",$.op);$.dp(h7,0,"drawLeftLine",$.op);$.S(K6,h7);$.g=K6.prototype;$.g.background=function(a){return $.p(a)?(this.Ha.K(a),this):this.Ha};$.g.B8=function(a){return $.p(a)?(this.o.K(a),this.u(512,1),this):this.o};$.g.Wa=function(a){return $.p(a)?(this.cb!=a&&(this.cb&&$.Xp(this.cb,this.eX,this),(this.cb=a)&&$.L(this.cb,this.eX,this),this.u(128,1)),this):this.cb};$.g.eX=function(){this.u(128,1)};$.g.A8=function(){this.u(64,1)};$.g.C8=function(){this.u(512,1)};
$.g.X=function(){if(this.xc()){this.f||(this.f=$.Zi(),this.b=this.f.Nd(),this.Hf=$.dj(),this.f.clip(this.Hf),this.P=this.b.path(),this.P.stroke(null),this.N=this.b.path(),this.N.stroke(null),this.Ea=this.b.path(),this.Ea.stroke(null),this.ga=this.b.path(),this.ga.stroke(null),this.la=this.b.path(),this.la.stroke(null),this.U=this.b.path(),this.U.stroke(null),this.va=this.b.path(),this.va.stroke(null),this.ba=this.b.path(),this.ba.stroke(null),this.D=this.b.path(),this.D.fill(null),this.D.op(!0),this.G=
this.b.path(),this.G.fill(null),this.G.op(!0));this.J(4)&&(this.Xa=this.sb(),$.Mn(this.Xa,0),this.Hf.shape(this.Xa),this.u(960),this.I(4));this.J(64)&&(this.b.zIndex(this.Ha.zIndex()+1),this.Ha.fa(this.Xa),this.Ha.O(this.f),this.Ha.X(),this.I(64));this.J(16)&&(this.P.fill(this.i("oddFill")),this.N.fill(this.i("evenFill")),this.Ea.fill(this.i("oddHolidayFill")),this.ga.fill(this.i("evenHolidayFill")),this.la.fill(this.i("oddHatchFill")),this.U.fill(this.i("evenHatchFill")),this.va.fill(this.i("oddHolidayHatchFill")),
this.ba.fill(this.i("evenHolidayHatchFill")),this.D.stroke(this.i("horizontalStroke")),this.G.stroke(this.i("verticalStroke")),this.I(16));if(this.J(128)){this.P.clear();this.N.clear();this.Ea.clear();this.ga.clear();this.la.clear();this.U.clear();this.va.clear();this.ba.clear();this.D.clear();this.G.clear();if(this.cb){for(var a=this.cb.an(0,this.Xa.width),b=this.g.length-1,c=a.length-1,d=$.Xb(this.D.stroke()),e=$.Xb(this.G.stroke()),f=$.O(0,d),h=0,k=!!this.i("drawTopLine"),l=!!this.i("drawRightLine"),
m=!!this.i("drawBottomLine"),n=!!this.i("drawLeftLine"),q=0;q<=b;q++){var r=q==b;h=$.O(f+this.g[q]-(r?d:0),d);for(var t=0;t<=c;t++){var u=t==c,v=a[t],w=$.O(this.cb.Qm(v.start)+this.Xa.left,e),x=$.O(this.cb.Qm(v.end)+this.Xa.left-(u?e:0),e);v=v.holiday;if(q&1)if(v){v=this.ga;var y=this.ba}else v=this.N,y=this.U;else v?(v=this.Ea,y=this.va):(v=this.P,y=this.la);var A=n&&!t?Math.ceil(w):Math.floor(w),G=l||!u?Math.floor(x):Math.ceil(x),C=k&&!q?Math.ceil(f):Math.floor(f),J=m||!r?Math.floor(h):Math.ceil(h);
v.moveTo(A,C).lineTo(G,C).lineTo(G,J).lineTo(A,J).close();y.moveTo(A,C).lineTo(G,C).lineTo(G,J).lineTo(A,J).close();n&&!t&&this.G.moveTo(w,C).lineTo(w,J);!l&&u||this.G.moveTo(x,C).lineTo(x,J);k&&!q&&this.D.moveTo(A,f).lineTo(G,f);!m&&r||this.D.moveTo(A,h).lineTo(G,h)}f=h}this.Ma=h}else this.Ma=!1;this.I(128)}this.J(256)&&(this.b.nc(1,0,0,1,0,Math.round(this.Xa.top-this.Ja*this.Ma)),this.I(256));this.J(512)&&(this.o.target(this.O().Ga().ol()),this.o.nf(this.sb()),this.o.X(),this.I(512));this.J(2)&&
(this.f.parent(this.O()),this.I(2));this.J(8)&&(this.f.zIndex(this.zIndex()),this.I(8))}};$.g.remove=function(){this.f&&this.f.parent(null)};$.g.jh=function(a){return null!=this.La[a]};$.g.Ir=function(){return 1};$.g.F=function(){var a=K6.B.F.call(this);$.Bp(this,h7,a,"Resource Grid");a.background=this.Ha.F();a.overlay=this.o.F();return a};$.g.Y=function(a,b){K6.B.Y.call(this,a,b);$.tp(this,h7,a);$.p(this.Ha)&&this.Ha.ja(!!b,a.background);this.o.ja(!!b,a.overlay)};
$.g.R=function(){$.hd(this.Ha);this.Ha=null;$.hd(this.f);this.G=this.D=this.ba=this.va=this.U=this.la=this.ga=this.Ea=this.N=this.P=this.b=this.f=null;$.hd(this.o);this.o=null;K6.B.R.call(this)};var i7=K6.prototype;i7.background=i7.background;i7.overlay=i7.B8;$.H(L6,$.Ws);$.g=L6.prototype;$.g.qa=$.Ws.prototype.qa|128;$.g.ra=$.Ws.prototype.ra;$.g.D8=function(a){return $.p(a)?(this.o.K(a),this.u(128,1),this):this.o};$.g.E8=function(){this.u(128,1)};$.g.X=function(){this.J(4)&&this.u(128);L6.B.X.call(this);this.J(128)&&(this.o.target(this.O().Ga().ol()),this.o.nf(this.sb()),this.o.X(),this.I(128));return this};$.g.F=function(){var a=L6.B.F.call(this);a.overlay=this.o.F();return a};$.g.Y=function(a,b){L6.B.Y.call(this,a,b);this.o.ja(!!b,a.overlay)};
$.g.R=function(){L6.B.R.call(this);$.hd(this.o);this.o=null};var jja=L6.prototype;jja.overlay=jja.D8;$.H(M6,$.Wp);$.g=M6.prototype;$.g.qa=3;$.g.ra=0;
$.g.X=function(a,b,c,d,e,f){this.mb();if(this.D){for(var h=Math.floor(b/864E5),k=Math.floor(c/864E5),l=this.Ba.HP();h<=k;h++)Wia(l,864E5*h,this.o[h],this,e.top);Wia(l,864E5*h,null,this,e.top);k=l.i("height")+1;e.top+=k;e.height-=k}this.ub=e;for(e=0;e<this.b.length;e++){k=this.b[e];l=b;h=c;for(var m=d,n=f,q=a.CK++,r=0;r<k.tm.length;r++){var t=k.tm[r];t.shape=null;t.eS=null;t.CK=q;t.end+864E5<l||t.start>h?t.wN=window.NaN:(t.wN=a.$0.length,a.$0.push(q),$ia(this,k,t,$.Hv(this.Ba.state,a.CK),m,n))}}return a};
$.g.mb=function(){if(this.J(1)){this.b.length=0;var a=this.Ba.na.aa();var b;if(!a.select(this.he)||!(b=a.get("activities"))||!$.B(b))return;for(a=0;a<b.length;a++){var c=b[a];if($.D(c)){var d=c.intervals;$.B(d)||(d=[c]);for(var e=this.Ba.i("defaultMinutesPerDay"),f=[],h=0;h<d.length;h++){var k=d[h];if(k){var l=$.br(k.start),m=$.br(k.end);if(l&&m){if(l.getTime()>m.getTime()){var n=l;l=m;m=n}l=Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate());m=Date.UTC(m.getUTCFullYear(),m.getUTCMonth(),
m.getUTCDate());n=$.tn(k.totalMinutes,window.NaN,!1);f.push({start:l,end:m,Fx:(0,window.isNaN)(n)?$.tn(k.minutesPerDay,e,!1):n/((m-l)/864E5+1),shape:null,eS:null,wN:window.NaN})}}}c=f.length?{data:c,top:0,tm:f}:null}else c=null;c&&this.b.push(c)}this.u(2);this.I(1)}if(this.J(2)){this.o={};this.f=0;this.D=!1;b=this.Ba.ee;for(a=0;a<this.b.length;a++)for(c=this.b[a],c=c.tm,d=0;d<c.length;d++){k=c[d];e=Math.floor(k.start/864E5);f=Math.floor(k.end/864E5);m=k.Fx;l=0;for(h=e;h<=f;h++){var q=this.o[h];if(!q){n=
h;$.p(void 0)?(this.g||(this.g=new x6(this.Ba.MO())),this.g.K(void 0),q=this):q=this.g||this.Ba.MO();n=new Date(n);n=new $.zm(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate());q=y6(q,n);for(var r=n=0;r<q.length;r++){var t=q[r];n+=t[1]-t[0]}q=n/6E4;this.o[h]=q={hy:q,UA:0,vy:q?[]:null,bottom:0}}q.hy&&(q.vy[q.vy.length-1]!=a&&q.vy.push(a),q.UA+=m,q.UA>q.hy&&(this.D=!0),q.bottom>l&&(l=q.bottom))}k.top=l;k=l+m;for(h=e;h<=f;h++)this.o[h].bottom=k,b&&this.f<q.hy&&(this.f=q.hy),this.f<q.bottom&&(this.f=
q.bottom)}this.I(2)}};$.g.F=function(){return M6.B.F.call(this)};$.g.Y=function(a){M6.B.Y.call(this,a)};$.g.R=function(){$.jd(this.g);this.o=this.g=this.Ba=this.b=null;M6.B.R.call(this)};$.H(N6,$.Wp);$.g=N6.prototype;$.g.margin=function(a,b,c,d){this.Ic||(this.Ic=new $.iu,$.L(this.Ic,this.Oz,this));return $.p(a)?(this.Ic.K.apply(this.Ic,arguments),this):this.Ic};$.g.Oz=function(){this.ua(1)};$.g.ra=1;$.g.Y=function(a,b){N6.B.Y.call(this,a,b);this.margin().ja(!!b,a.margin)};$.g.F=function(){var a=N6.B.F.call(this);a.margin=this.margin().F();return a};$.g.R=function(){$.hd(this.Ic);N6.B.R.call(this)};var kja=N6.prototype;kja.margin=kja.margin;$.H(O6,N6);var j7={};$.ep(j7,[[0,"size",$.Op],[1,"borderRadius",$.Sp],[0,"opacity",$.Rp],[0,"align",$.kp],[0,"fittingMode",$.kp]]);$.S(O6,j7);O6.prototype.Y=function(a,b){O6.B.Y.call(this,a,b);$.tp(this,j7,a,b)};O6.prototype.F=function(){var a=O6.B.F.call(this);$.Bp(this,j7,a);return a};$.H(P6,$.X);P6.prototype.ra=$.X.prototype.ra;P6.prototype.qa=$.X.prototype.qa;var lja={};$.ep(lja,[[0,"width",$.Op],[0,"imageSrc",$.kp],[0,"name",$.kp],[0,"type",$.kp],[0,"description",$.kp],[1,"tags",$.Sp]]);$.S(P6,lja);$.g=P6.prototype;$.g.offsetY=function(a){return $.p(a)?(this.EL!=a&&(this.EL=a),this):this.EL};$.g.hX=function(a){var b={};if(a){var c=a.target,d=(0,$.xa)(this.f,c);b.type=a.type;b.target=c;b.index=d;b.text=c.text();return this.dispatchEvent(b)}return!1};
$.g.remove=function(){this.ta&&this.ta.parent(null)};
$.g.X=function(){if(!this.xc())return this;var a=this.O(),b=a?a.Ga():null,c=b&&!b.Ve();c&&b.suspend();this.ta||(this.ta=$.Zi());this.g||(this.g=this.ta.Nj(),this.g.zIndex(1));this.D||(this.D=this.ta.text(),this.D.zIndex(1));this.G||(this.G=this.ta.text(),this.G.zIndex(1));this.o||(this.o=this.ta.text(),this.o.zIndex(1));this.f||(this.f=[]);this.J(8)&&(this.ta.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.ta.parent(a),this.I(2));var d=this.i("imageSrc");this.g.src(d);R6(this,this.g,Q6(this,"imageSettings",
[]));a=this.i("name");Q6(this,"nameSettings","useHtml")?this.D.htmlText(a):this.D.text(a);R6(this,this.D,Q6(this,"nameSettings",[]));a=this.i("type");Q6(this,"typeSettings","useHtml")?this.G.htmlText(a):this.G.text(a);R6(this,this.G,Q6(this,"typeSettings",[]));a=this.i("description");Q6(this,"descriptionSettings","useHtml")?this.o.htmlText(a):this.o.text(a);R6(this,this.o,Q6(this,"descriptionSettings",[]));a=this.i("tags");var e;if(this.f.length){for(e=0;e<this.f.length;e++){var f=this.f[e];this.Ac.hc(f,
"click",this.hX);$.hd(f)}this.f=[]}var h=Q6(this,"tagSettings",[]);h.background=Q6(this,"tagSettings","background");h.padding=Q6(this,"tagSettings","padding");for(e=0;e<a.length;e++)f=new $.Ut,this.Ac.wa(f,"click",this.hX),f.K(h),f.Ul().cursor("pointer"),f.O(this.ta),f.zIndex(1),f.text(a[e]),this.f.push(f);if(this.J(4)){var k=this.i("height");a=this.P.fX(this,k);h=this.P.GZ(k);var l=this.P.FZ(k);k=this.i("width");(0,window.isNaN)(a)||((0,window.isNaN)(l)||(a=Math.min(a,l)),(0,window.isNaN)(h)||(a=
Math.max(a,h)));f=Q6(this,"imageSettings","margin");this.coords.Nj.x=$.M(f.left,k)||0;var m=$.M(f.right,k)||0;this.coords.Nj.y=$.M(f.top,a)||0;e=$.M(Q6(this,"imageSettings","size"),k)||0;this.g.width(e);this.g.height(e);var n=0,q=0;""!=d&&(this.g.clip(cja(this)),n=this.coords.Nj.x+e+m,q=this.coords.Nj.y+e+$.M(f.bottom,a)||0);this.coords.name.x=0;this.coords.name.y=0;this.coords.name.height=0;null!=this.i("name")&&(f=Q6(this,"nameSettings","margin"),S6(this,this.D,this.coords.name,n,f,a));this.coords.type.y=
this.coords.name.y+this.coords.name.height;null!=this.i("type")&&(f=Q6(this,"typeSettings","margin"),S6(this,this.G,this.coords.type,n,f,a));this.coords.description.y=this.coords.type.y+this.coords.type.height;null!=this.i("description")&&(f=Q6(this,"descriptionSettings","margin"),S6(this,this.o,this.coords.description,n,f,a));d=k-n;var r=this.coords.description.y+this.coords.description.height;f=r;if(this.f.length){f=Q6(this,"tagSettings","margin");var t=$.M(f.left,k);m=$.M(f.right,k);var u=$.M(f.bottom,
a)||0;var v=$.M(f.top,a)||0;var w=n+t;r+=v;var x=!1;for(e=0;e<this.f.length;e++){f=this.f[e];var y=f.Xh();x&&w+y.width+m-n>d&&(w=n+t,r=r+y.height+u+v);f.offsetX(w);f.offsetY(r);f.X();x=!0;w+=y.width+m+t}f=r+y.height+u}(0,window.isNaN)(a)?(this.N=Math.max(q,f),(0,window.isNaN)(l)||(this.N=Math.min(this.N,l)),(0,window.isNaN)(h)||(this.N=Math.max(this.N,h))):this.N=a;this.ub=$.Zl(0,0,k,this.N);this.g.nc(1,0,0,1,this.coords.Nj.x,this.coords.Nj.y);this.D.nc(1,0,0,1,this.coords.name.x,this.coords.name.y);
this.G.nc(1,0,0,1,this.coords.type.x,this.coords.type.y);this.o.nc(1,0,0,1,this.coords.description.x,this.coords.description.y);this.ta.clip(this.ub);this.I(4)}this.ta.nc(1,0,0,1,0,this.EL);c&&b.resume();return this};$.g.F=function(){return P6.B.F.call(this)};$.g.Y=function(a,b){P6.B.Y.call(this,a,b)};$.g.R=function(){this.P=null;$.jd(this.f);this.f=null;$.hd(this.o);this.o=null;$.hd(this.G);this.G=null;$.hd(this.D);this.D=null;$.hd(this.g);this.g=null;$.hd(this.ta);this.ta=null;P6.B.R.call(this)};$.H(T6,N6);var k7={};$.ep(k7,[[0,"fontSize",$.kp],[0,"fontFamily",$.kp],[0,"fontColor",$.kp],[0,"fontOpacity",$.Rp],[0,"fontDecoration",$.Jj],[0,"fontStyle",$.Mj],[0,"fontVariant",$.Nj],[0,"fontWeight",$.ip],[0,"letterSpacing",$.ip],[0,"textDirection",$.Oj],[0,"lineHeight",$.ip],[0,"textIndent",$.mp],[0,"vAlign",$.Ij],[0,"hAlign",$.Hj],[0,"wordWrap",$.np],[0,"wordBreak",$.np],[0,"textOverflow",$.kp],[0,"selectable",$.op],[0,"useHtml",$.op],[0,"disablePointerEvents",$.op]]);$.S(T6,k7);
T6.prototype.Y=function(a,b){T6.B.Y.call(this,a,b);$.tp(this,k7,a,b)};T6.prototype.F=function(){var a=T6.B.F.call(this);$.Bp(this,k7,a);return a};$.H(U6,T6);$.g=U6.prototype;$.g.background=function(a){this.Ha||(this.Ha=new $.Ws,this.Ha.U=!1,$.L(this.Ha,this.Qf,this));return $.p(a)?(this.Ha.K(a),this):this.Ha};$.g.Qf=function(){this.ua(1)};$.g.padding=function(a,b,c,d){this.Oa||(this.Oa=new $.dt,$.L(this.Oa,this.Cl,this));return $.p(a)?(this.Oa.K.apply(this.Oa,arguments),this):this.Oa};$.g.Cl=function(){this.ua(1)};$.g.Y=function(a,b){U6.B.Y.call(this,a,b);this.padding().ja(!!b,a.padding);this.background().ja(!!b,a.background)};
$.g.F=function(){var a=U6.B.F.call(this);a.padding=this.padding().F();a.background=this.background().F();a.position="left-top";a.anchor="left-top";a.rotation="0";return a};$.g.R=function(){$.jd(this.Oa,this.Ha);U6.B.R.call(this)};var l7=U6.prototype;l7.background=l7.background;l7.padding=l7.padding;$.H(V6,$.Us);V6.prototype.ra=$.X.prototype.ra;V6.prototype.qa=$.X.prototype.qa|65488;var m7={};$.ep(m7,[[1,"stroke",$.xp],[1,"oddFill",$.yp],[1,"evenFill",$.yp],[0,"drawTopLine",$.op],[0,"drawRightLine",$.op],[0,"drawBottomLine",$.op],[0,"drawLeftLine",$.op]]);$.S(V6,m7);$.g=V6.prototype;$.g.jh=function(a){return null!=this.La[a]};$.g.Ir=function(){return 1};$.g.target=function(a){return $.p(a)?(this.b!=a&&(this.b=a,this.u(512,1)),this):this.b};
$.g.background=function(a){this.Ha||(this.Ha=new $.Ws,$.L(this.Ha,this.Qf,this));return $.p(a)?(this.Ha.K(a),this):this.Ha};$.g.Qf=function(a){$.W(a,1)&&this.u(64,1)};$.g.Qca=function(){this.u(1024,1)};$.g.jE=function(a){this.P||(this.P=new O6,$.L(this.P,this.Qca,this));return $.p(a)?(this.P.K(a),this):this.P};$.g.dea=function(){this.u(2048,1)};$.g.names=function(a){this.U||(this.U=new T6,$.L(this.U,this.dea,this));return $.p(a)?(this.U.K(a),this):this.U};$.g.kha=function(){this.u(4096,1)};
$.g.kE=function(a){this.ga||(this.ga=new T6,$.L(this.ga,this.kha,this));return $.p(a)?(this.ga.K(a),this):this.ga};$.g.faa=function(){this.u(8192,1)};$.g.eF=function(a){this.N||(this.N=new T6,$.L(this.N,this.faa,this));return $.p(a)?(this.N.K(a),this):this.N};$.g.Kga=function(){this.u(16384,1)};$.g.by=function(a){this.ba||(this.ba=new U6,$.L(this.ba,this.Kga,this));return $.p(a)?(this.ba.K(a),this):this.ba};
$.g.gX=function(a){return $.p(a)?(a=$.Ya($.N(a),0,1),this.Ea!=a&&(this.Ea=a,this.u(128,1)),this):this.Ea};$.g.NO=function(a){return $.p(a)?(this.G.K(a),this.u(32768,1),this):this.G};$.g.G8=function(){this.u(32768,1)};$.g.aa=function(){return this.b?this.b.na.aa():null};$.g.fX=function(a){return this.g[a.index]};$.g.GZ=function(){return window.NaN};$.g.FZ=function(){return window.NaN};$.g.remove=function(){this.ta&&this.ta.parent(null)};
$.g.X=function(){if(!this.xc())return this;var a=this.O(),b=a?a.Ga():null,c=b&&!b.Ve();c&&b.suspend();this.ta||(this.ta=$.Zi(),this.f=this.ta.Nd(),this.f.zIndex(1),this.va=this.f.path(),this.va.stroke(null),this.va.zIndex(0),this.la=this.f.path(),this.la.stroke(null),this.la.zIndex(0),this.D=this.f.path(),this.D.fill(null),this.D.zIndex(1));this.J(8)&&(this.ta.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.ta.parent(a),this.I(2));this.J(4)&&(this.Ek=this.sb(),this.ta.clip(this.Ek),this.u(33216),
this.I(4));this.J(16)&&(this.D.stroke(this.i("stroke")),this.la.fill(this.i("evenFill")),this.va.fill(this.i("oddFill")),this.I(16));this.J(64)&&(a=this.background(),$.U(a),a.zIndex(0),a.fa(this.Ek.clone()),this.enabled()&&a.O(this.ta),a.da(!1),a.X(),this.I(64));this.J(32768)&&(this.G.target(this.O().Ga().ol()),this.G.nf(this.sb()),this.G.X(),this.I(32768));if(this.J(512)){var d=this.aa();d.Eb()>this.Ob.length&&this.u(31744);for(d.reset();d.advance();){var e=d.ka();this.Ob[e]?a=this.Ob[e]:((a=this.o.pop())||
(a=new P6(this)),this.Ob.push(a),a.index=e);e=d;var f=W6("image",j7,e);var h=e.get("imageMargin");$.p(h)&&(f.margin=$.tl(h));a.pa("imageSettings",f);f=W6("name",k7,e);h=e.get("nameMargin");$.p(h)&&(f.margin=$.tl(h));a.pa("nameSettings",f);f=W6("type",k7,e);h=e.get("typeMargin");$.p(h)&&(f.margin=$.tl(h));a.pa("typeSettings",f);f=W6("description",k7,e);h=e.get("descriptionMargin");$.p(h)&&(f.margin=$.tl(h));a.pa("descriptionSettings",f);f=W6("tags",k7,e);h=e.get("tagsMargin");$.p(h)&&(f.margin=$.tl(h));
h=e.get("tagsPadding");$.p(h)&&(f.padding=$.tl(h));h=e.get("tagsBackground");$.p(h)&&(f.background=h);a.pa("tagSettings",f);a.pa("width",this.Ek.width);a.pa("height",this.Ek.height);a.pa("imageSrc",e.get("image")||"");a.pa("name",e.get("name")||null);a.pa("type",e.get("type")||null);a.pa("description",e.get("description")||null);h=(h=e.get("tags"))?$.B(h)?h.slice():[h]:[];a.pa("tags",h);e=e.get("enabled");e=$.p(e)&&!(0,window.isNaN)(e)?!!e:!0;a.enabled(e).qb(this.by())}for(a=(a=d.Eb())||0;this.Ob.length!=
a;)d=this.Ob.pop(),$.U(d).enabled(!1).da(!1).X(),this.o.push(d);this.u(256);this.I(512)}if(this.J(31744)){this.by().background().I(4294967295);e=this.jE().F();h=this.names().F();f=this.kE().F();var k=this.eF().F();var l=this.by().F();for(d=0;d<this.Ob.length;d++)a=this.Ob[d],a.ma.itemSettings=void 0,a.ma.imageSettings=e,a.ma.nameSettings=h,a.ma.typeSettings=f,a.ma.descriptionSettings=k,a.ma.tagSettings=l;this.u(256);this.I(31744)}this.J(1024)&&(X6(this,"imageSettings",this.jE().F()),this.u(256),this.I(1024));
this.J(2048)&&(X6(this,"nameSettings",this.names().F()),this.u(256),this.I(2048));this.J(4096)&&(X6(this,"typeSettings",this.kE().F()),this.u(256),this.I(4096));this.J(8192)&&(X6(this,"descriptionSettings",this.eF().F()),this.u(256),this.I(8192));this.J(16384)&&(this.by().background().I(4294967295),X6(this,"tagSettings",this.by().F()),this.u(256),this.I(16384));if(this.J(256)){d=$.Xb(this.D.stroke());e=$.O(0,d);h=$.O(this.Ek.width-d,d);l=0;var m=!!this.i("drawTopLine"),n=!!this.i("drawRightLine"),
q=!!this.i("drawBottomLine"),r=!!this.i("drawLeftLine");f=$.O(l,d);var t=this.Ob.length,u=t-1;this.D.clear();this.la.clear();this.va.clear();for(k=0;k<t;k++){var v=k==u;a=this.Ob[k];a.pa("width",this.Ek.width);a.pa("height",this.Ek.height);a.u(4);var w=l;$.U(a).O(this.f).offsetY(w).da(!1).X();w=a.enabled()?a.N:0;a=$.O(f+w-(k==t-1?d:0),d);var x=r?Math.ceil(e):Math.floor(e),y=n?Math.floor(h):Math.ceil(h),A=m&&!k?Math.ceil(f):Math.floor(f),G=q||!v?Math.floor(a):Math.ceil(a);(k&1?this.la:this.va).moveTo(x,
A).lineTo(y,A).lineTo(y,G).lineTo(x,G).close();r&&this.D.moveTo(e,A).lineTo(e,G);n&&this.D.moveTo(h,A).lineTo(h,G);m&&!k&&this.D.moveTo(x,f).lineTo(y,f);!q&&v||this.D.moveTo(x,a).lineTo(y,a);l+=w;f=a}this.Ja=l;this.I(256)}this.J(128)&&(this.f.nc(1,0,0,1,this.Ek.left,Math.round(this.Ek.top-this.Ja*this.Ea)),this.I(128));c&&b.resume();return this};
$.g.F=function(){var a=V6.B.F.call(this);$.Bp(this,m7,a,"Resource list");a.background=this.background().F();a.images=this.jE().F();a.names=this.names().F();a.types=this.kE().F();a.descriptions=this.eF().F();a.tags=this.by().F();a.overlay=this.NO().F();return a};
$.g.Y=function(a,b){V6.B.Y.call(this,a,b);$.tp(this,m7,a,b);this.background().ja(!!b,a.background);this.jE().ja(!!b,a.images);this.names().ja(!!b,a.names);this.kE().ja(!!b,a.types);this.eF().ja(!!b,a.descriptions);this.by().ja(!!b,a.tags);this.NO().ja(!!b,a.overlay)};
$.g.R=function(){$.jd(this.o);$.jd(this.Ob);$.hd(this.f);this.f=null;$.hd(this.Ha);this.Ha=null;$.hd(this.ta);this.ta=null;$.hd(this.Ma);this.Ma=null;$.hd(this.P);this.P=null;$.hd(this.U);this.U=null;$.hd(this.ga);this.ga=null;$.hd(this.N);this.N=null;$.hd(this.ba);this.ba=null;$.hd(this.G);this.G=null;V6.B.R.call(this)};$.H(Y6,V6);$.Vs(Y6,V6);var n7={};$.dp(n7,0,"rowHeight",$.Op);$.dp(n7,0,"minRowHeight",$.Op);$.dp(n7,0,"maxRowHeight",$.Op);$.S(Y6,n7);$.g=Y6.prototype;
$.g.data=function(a,b){return $.p(a)?(this.Vf!==a&&(this.Vf=a,$.hd(this.ed),$.K(a,$.oq)?this.na=this.ed=a.$i():this.na=$.K(a,$.yq)?this.ed=a.Yd():(this.ed=new $.yq($.B(a)||$.z(a)?a:null,b)).Yd(),$.L(this.na,this.xd,this),this.u(524288,1)),this):this.na};$.g.xd=function(a){$.W(a,16)&&this.u(512,1)};$.g.aa=function(){return this.na?this.na.aa():null};$.g.fX=function(a,b){var c=this.i("rowHeight");return c=$.M(c,b)};$.g.GZ=function(a){var b=this.i("minRowHeight");return b=$.M(b,a)};
$.g.FZ=function(a){var b=this.i("maxRowHeight");return b=$.M(b,a)};$.g.F=function(){var a=Y6.B.F.call(this);a.data=this.na?this.na.F():null;return a};$.g.Y=function(a,b){Y6.B.Y.call(this,a,b);this.data(b?a.data:null)};$.g.R=function(){$.hd(this.ed);this.ed=null;delete this.na;this.Vf=null;Y6.B.R.call(this)};var o7=V6.prototype;o7.target=o7.target;o7.background=o7.background;o7.images=o7.jE;o7.names=o7.names;o7.types=o7.kE;o7.descriptions=o7.eF;o7.tags=o7.by;o7.overlay=o7.NO;o7=Y6.prototype;
$.F("anychart.standalones.resourceList",function(a){var b=new Y6;b.Y($.cl("standalones.resourceList"),!0);b.data(a);return b});o7.data=o7.data;o7.draw=o7.X;o7.parentBounds=o7.fa;o7.container=o7.O;o7.verticalScrollBarPosition=o7.gX;$.H(Z6,$.Wr);$.g=Z6.prototype;$.g.qa=3;$.g.ra=6;$.g.OO=function(a){if($.p(a))return this.b!=a&&(this.b&&$.Xp(this.b,this.XR,this),(this.b=a)&&$.L(this.b,this.XR,this),this.G={},this.o=null,this.u(1,6)),this;this.b||(this.b=new x6,$.L(this.b,this.XR,this));return this.b};$.g.YU=function(a){return $.p(a)?(a=!!a,this.D!=a&&(this.D=a,this.G={},this.o=null,this.u(1,6)),this):this.D};$.g.K2=function(a){return $.p(a)?(a=$.qn(a),this.N!=a&&(this.N=a,this.u(2,6)),this):this.N};
$.g.$g=function(a){return $.p(a)?(a=$.Gj(a,"day",!0),this.g!=a&&(this.g=a,this.u(1,6)),this):this.g};$.g.count=function(a){return $.p(a)?(a=$.tn(a),this.f!=a&&(this.f=a,this.u(1,6)),this):this.f};$.g.WM=function(a){return $.p(a)?(a=$.Cj(a),this.P!=a&&(this.P=a,this.u(2,2)),this):this.P};$.g.Qa=function(){return"date-time-with-calendar"};$.g.Qm=function(a){$6(this);return(eja(this.o,$.Cj(a))-this.U)*this.N};
$.g.Rv=function(a){$6(this);var b=this.o;a=a/this.N+this.U;if(b.Lu)b=Math.floor(a*b.Lu+b.b);else{var c=a;if(b.Rl&&!b.Lu){var d;if(0<=c){if(c=2*Math.ceil(c)+2,b.Vm)if(b.Cy)for(;b.Rl.length<c;){var e=E6(b.Cw,b.Rj.getTime(),b.Vm);if((0,window.isNaN)(e)){b.Vm=null;break}else b.Rj.setTime(e),b.Rj.add(b.Vm),b.Rl.push(e,b.Rj.getTime())}else for(d=b.Rj.getTime();b.Rl.length<c;)e=d,b.Rj.add(b.Vm),d=b.Rj.getTime(),b.Rl.push(e,d)}else if(b.Ll&&b.jq)if(c=2*Math.ceil(-c)+2,b.Cy)for(;b.Ll.length<c;)if(e=F6(b.Cw,
b.qk.getTime()-1,b.jq),(0,window.isNaN)(e)){b.jq=null;break}else b.qk.setTime(e),b.qk.add(b.lE),b.Ll.push(b.qk.getTime(),e),b.qk.setTime(e);else for(d=b.qk.getTime();b.Ll.length<c;)e=d,b.qk.add(b.jq),d=b.qk.getTime(),b.Ll.push(e,d)}0>a?(a=-a,c=b.Ll):c=b.Rl;e=Math.floor(a);a-=e;e*=2;b=c?c.length>e?Math.floor(c[e]+(a&&(c[e+1]-c[e])*a)):c[c.length-1]:b.b}return b};
$.g.an=function(a,b,c,d){$6(this);var e=[];a=$.Jn(this.Rv(a),c||this.g,d||this.f);b=this.Rv(b);a=new $.zm(new Date(a));c=$.Kn(c||this.g,d||this.f);for(d=a.getTime();d<b;){var f=d;a.add(c);d=a.getTime();var h=A6(this.b,f,d);this.D&&!h||e.push({start:f,end:d,holiday:!h})}return e};$.g.transform=function(){return window.NaN};$.g.Kc=function(){return window.NaN};
$.g.vH=function(){this.jn&&(this.min=$.Jn(this.min,this.g,this.f));if(this.gn){this.max=$.Jn(this.max,this.g,this.f);var a=new $.zm(new Date(this.max));a.add($.Kn(this.g,this.f));this.max=a.getTime()}};$.g.Oc=function(a){for(var b=0;b<arguments.length;b++)Z6.B.Oc.call(this,$.br(arguments[b]));return this};$.g.XR=function(a){$.W(a,2)&&(this.G={},this.o=null,this.u(1,2))};$.g.F=function(){var a=Z6.B.F.call(this);a.skipHolidays=this.D;return a};$.g.Y=function(a){Z6.B.Y.call(this,a);this.YU(a.skipHolidays)};
$.g.R=function(){$.hd(this.b);this.b=null;Z6.B.R.call(this)};var p7={millisecond:1};p7.second=1E3*p7.millisecond;p7.minute=60*p7.second;p7.hour=60*p7.minute;p7.day=24*p7.hour;p7.week=7*p7.day;var fja=p7;$.g=dja.prototype;$.g.Cw=null;$.g.Cy=!1;$.g.Rj=null;$.g.qk=null;$.g.Lu=window.NaN;$.g.Vm=null;$.g.lE=null;$.g.jq=null;$.g.Rl=null;$.g.Ll=null;var q7=Z6.prototype;q7.dateToPix=q7.Qm;q7.pixToDate=q7.Rv;q7.calendar=q7.OO;q7.skipHolidays=q7.YU;q7.unitPixSize=q7.K2;q7.unit=q7.$g;q7.count=q7.count;
q7.startDate=q7.WM;q7.getTicks=q7.an;q7.softMinimum=q7.uA;q7.softMaximum=q7.tA;q7.minimumGap=q7.bs;q7.maximumGap=q7.Zr;q7.minimum=q7.kh;q7.maximum=q7.Ih;$.H(a7,$.Ov);a7.prototype.qa=$.Ov.prototype.qa|67104768;a7.prototype.Qa=function(){return"resource"};a7.prototype.Ne=function(){return[]};
var r7=function(){var a={};$.dp(a,0,"pixPerHour",function(a){a=$.N(a);return(0,window.isNaN)(a)?this.i("pixPerHour"):a});$.dp(a,0,"minRowHeight",function(a){a=$.N(a);return(0,window.isNaN)(a)?this.i("minRowHeight"):a});$.dp(a,0,"resourceListWidth",function(a){a=$.on(a);return null===a?this.i("resourceListWidth"):a});$.dp(a,0,"timeLineHeight",function(a){a=$.on(a);return null===a?this.i("timeLineHeight"):a});$.dp(a,0,"defaultMinutesPerDay",function(a){return $.tn(a,60)});$.dp(a,0,"currentStartDate",
function(a){return(a=$.br(a))?a.getTime():this.i("currentStartDate")});$.dp(a,1,"splitterStroke",$.xp);return a}();$.S(a7,r7);$.g=a7.prototype;$.g.data=function(a,b){return $.p(a)?(this.Vf!==a&&(this.Vf=a,$.hd(this.ed),$.K(a,$.oq)?this.na=this.ed=a.$i():this.na=$.K(a,$.yq)?this.ed=a.Yd():(this.ed=new $.yq($.B(a)||$.z(a)?a:null,b)).Yd(),$.L(this.na,this.xd,this),this.u(524544,1)),this):this.na};$.g.Wa=function(a){return $.p(a)?(this.cb.K(a),this):this.cb};
$.g.lV=function(a){if($.p(a)){var b=$.ij(hja,a,"activity-per-resource");a="availability-per-chart"==b||"activity-per-chart"==b;b="availability-per-chart"==b||"availability-per-resource"==b;if(this.ke!=a||this.ee!=b)this.ke=a,this.ee=b,this.u(524288,1);return this}return this.ke?this.ee?"availability-per-chart":"activity-per-chart":this.ee?"availability-per-resource":"activity-per-resource"};$.g.v8=function(a,b,c,d){return $.p(a)?(this.Ja.K.apply(this.Ja,arguments),this):this.Ja};
$.g.vy=function(a){return $.p(a)?(this.Uc.K(a),this):this.Uc};$.g.HP=function(a){return $.p(a)?(this.ga.K(a),this):this.ga};$.g.MO=function(a){return $.p(a)?(this.rb.K(a),this):this.rb};$.g.Zga=function(a){return $.p(a)?(this.ba.K(a),this):this.ba};$.g.kda=function(a){return $.p(a)?(this.Za.K(a),this):this.Za};$.g.cX=function(a){return $.p(a)?(this.f.K(a),this):this.f};$.g.Bp=function(a){return $.p(a)?(this.D.K(a),this):this.D};$.g.rw=function(a){return $.p(a)?(this.o.K(a),this):this.o};
$.g.qy=function(a){if($.p(a)){if($.B(a)){for(var b=[],c=0;c<a.length;c++){var d=a[c];var e=d.levels;if($.B(e)&&e.length){for(var f=[],h=0;h<e.length;h++){var k=$.Ic(e[h]);k.unit=$.Gj(k.unit,"day",!0);k.count=$.tn(k.count);f.push(k)}d={id:d.id?String(d.id):void 0,unit:$.Gj(d.unit,f[0].unit,!0),count:$.tn(d.count,f[0].count,!1),unitPixSize:$.N(d.unitPixSize)||50,levels:f}}else d=null;d&&b.push(d)}b.length&&(this.Re=b,this.$H(this.$H()))}return this}return $.Ak(this.Re)};
$.g.$H=function(a){if($.p(a)){var b=window.NaN;if($.z(a))for(var c=0;c<this.Re.length;c++){var d=this.Re[c];if(d.id==a){b=c;break}}(0,window.isNaN)(b)&&(b=$.tn(a,0,!0));if(d=this.Re[b])this.Zl=b,a=d,$.U(this),this.cb.$g(a.unit),this.cb.count(a.count),this.cb.K2(a.unitPixSize),this.ba.IU(a.levels),this.da(!0);return this}return(d=this.Re[this.Zl])&&d.id?d.id:this.Zl};$.g.y8=function(a){return $.p(a)?(this.Ea.K(a),this.u(8388608,1),this):this.Ea};
$.g.Wfa=function(a){return $.p(a)?(this.G.K(a),this.u(8388608,1),this):this.G};$.g.xd=function(a){$.W(a,16)&&this.u(256,1)};$.g.x8=function(a){var b=0;$.W(a,4)&&(b|=393216);$.W(a,2)&&(b|=90112);this.u(b,1)};$.g.Bca=function(){this.u(4096,1)};$.g.Cca=function(){this.u(8192,1)};$.g.tca=function(){this.u(4194304,1)};$.g.qca=function(){this.u(65536,1)};$.g.Hca=function(){this.u(16384,1)};$.g.Jca=function(){this.u(32768,1)};$.g.z8=function(){this.u(8388608,1)};$.g.fca=function(){this.u(524288,1)};
$.g.aca=function(){this.u(2097152,1)};$.g.hca=function(a){var b=33554432;$.W(a,2)&&(b|=4);this.u(b,1)};$.g.Gca=function(a){this.pa("currentStartDate",this.cb.Rv(a.startRatio*this.Ma-this.eb));this.u(262144,1);return!1};$.g.Ica=function(a){this.la=a.startRatio;this.u(1048576,1);return!1};
$.g.w8=function(a){var b=a.deltaX,c=a.deltaY,d=!1;$.YA?(b*=15,c*=15):b&&(d=!0);b=-this.eb-b;c=-this.la*this.b-c;b=-$.Ya(b,-this.Ma+this.Mf.width,0);c=-$.Ya(c,-this.b+this.Mf.height,0);b=this.cb.Rv(b-this.eb);c/=this.b;$.U(this);b!=this.i("currentStartDate")&&(this.pa("currentStartDate",b),this.u(262144,1));c!=this.la&&(d=!0,this.la=c,this.u(1048576,1));d&&a.preventDefault();this.da(!0)};$.g.tt=function(a){this.df=new b7(this,this.va,this.Ag);this.df.Wk(a.zk)};
$.g.dX=function(){if(!this.Vx){var a=this.O(),b;a&&(b=a.Ga())?(this.Vx=!0,this.ym=new $.Yv(b.ol()),this.Ac.wa(this.ym,"mousewheel",this.w8)):this.Sq||(this.Sq=(0,$.pa)(this.dX,this),(0,window.setTimeout)(this.Sq,0))}};$.g.aa=function(){this.Ht||(this.Ht=new c7(this));return this.Ht};$.g.wc=function(){return this.aa().reset()};
$.g.mb=function(){if(this.J(524288)){this.cb.fg();var a=this.na.aa();a.reset();for(var b=0,c,d=0;a.advance();){(c=this.U[b])?c.u(1):this.U[b]=c=new M6(this,b);var e=c,f=this.cb;e.mb();for(var h=0;h<e.b.length;h++)for(var k=e.b[h].tm,l=0;l<k.length;l++){var m=k[l];f.Oc(m.start,m.end)}d=Math.max(d,bja(c));b++}for(b=a.Eb();b<this.U.length;b++)$.hd(this.U[b]);this.U.length=a.Eb();this.cb.ng();this.kn=d;this.g=[];this.Oo=[];this.b=0;a=this.P.length=0;e=this.ga.i("height");for(b=0;b<this.U.length;b++)c=
this.U[b],f=this.ke?d:bja(c),f=Math.max(this.i("pixPerHour")*f/60,this.i("minRowHeight")),f=this.Ja.nj(f),c.D&&(f+=e+1),this.b+=f,this.g.push(f),this.Oo.push(this.b),a+=c.b.length,this.P.push(a);this.G.g=this.g;this.G.u(512);this.u(1179648);this.I(524288)}};
$.g.CE=function(a){a=a7.B.CE.call(this,a);a=$.Mn(a,0);var b=this.i("splitterStroke");b=b?$.Xb(b):0;var c=$.M(this.i("timeLineHeight"),a.height),d=$.M(this.i("resourceListWidth"),a.width),e=$.O(a.top+c,0),f=$.O(a.left+d+b,0);c=e-a.top;d=f-a.left-b;this.yc.top=a.top;this.yc.left=f;this.yc.width=a.left+a.width-f;this.yc.height=c;this.Sb.left=a.left;this.Sb.top=e;this.Sb.width=d;this.Sb.height=a.top+a.height-e;this.Dd.top=a.top;this.Dd.left=a.left;this.Dd.width=d;this.Dd.height=c;a.left=f;a.top=e;a.width=
this.yc.width;a.height=this.Sb.height;return a};
$.g.Ji=function(a){this.mb();if(!this.zf()){$.jq(this.D,this.o,this.ba,this.G,this.f,this.ga);this.va||(this.va=this.Ua.Nd(),this.va.zIndex(3),this.Ac.Ie(this.va,"mousedown",this.tt),this.Ac.Ie(this.va,"touchstart",this.tt),this.Bg=$.dj(),this.va.clip(this.Bg),this.Ag=this.va.rect(),this.Ag.zIndex(-1),this.Ag.fill($.Rk),this.Ag.stroke(null),this.mc=new $.kA(function(){return $.aj()},function(a){a.clear()}),this.mc.parent(this.va),this.mc.zIndex(3),this.It=this.Ua.path(),this.It.zIndex(3));this.dX();
this.J(393220)&&(this.Bg.shape(a),this.Ag.nf(a),this.u(66449408));if(this.J(131072)){(0,window.isNaN)(this.i("currentStartDate"))&&(this.pa("currentStartDate",this.cb.kh()),this.cb.WM(this.i("currentStartDate")));var b=this.cb.Qm(this.cb.kh()),c=this.cb.Qm(this.cb.Ih());this.Ma=c-b;var d=this.cb.Qm(this.i("currentStartDate"));(0,window.isNaN)(d)&&(d=b);var e=d+a.width;e>c&&(a.width<this.Ma?d=c-a.width:(d=b,e=b+this.Ma));this.pa("currentStartDate",this.cb.Rv(d));this.I(131072)}this.J(262144)&&(this.cb.WM(this.i("currentStartDate")),
this.eb=-this.cb.Qm(this.cb.kh()),$.Nz(this.D,this.eb/this.Ma,(this.eb+a.width)/this.Ma));this.J(1048576)&&(d=this.la*this.b,e=d+a.height,e>this.b&&(a.height<this.b?(e=this.b,d=e-a.height):(d=0,e=this.b)),this.la=d/this.b||0,this.G.gX(this.la),Zia(this.f,this.la),$.Nz(this.o,this.la,e/this.b||0),this.u(35753984));this.J(1310720)&&(this.D.fa(a),this.o.fa(this.D.nd()),d=this.o.nd(),this.ai=d.clone(),this.ai.height=a.height,this.yj=d.clone(),this.yj.width=a.width,this.I(1310720));this.J(16384)&&(this.D.O(this.Ua),
this.D.fa(this.ai),this.D.X(),this.I(16384));this.J(32768)&&(this.o.O(this.Ua),this.o.fa(this.yj),this.o.X(),this.I(32768));this.J(4194304)&&(this.Za.O(this.Ua),this.Za.fa(this.Dd),this.Za.X(),this.I(4194304));this.J(8192)&&(this.ba.Wa(this.Wa()),this.ba.O(this.Ua),this.ba.fa(this.yc),this.ba.X(),this.I(8192));this.J(16777216)&&(e=(d=this.i("splitterStroke"))?$.Xb(d):0,e=$.O(this.Sb.$a()+e/2,e),this.It.clear().moveTo(e,this.yc.top).lineTo(e,a.Ra()).stroke(d),this.I(16777216));this.J(8388608)&&(this.Ea.target(this.O().Ga().ol()),
this.Ea.nf(this.sb()),this.Ea.X(),this.I(8388608));this.J(4096)&&(this.G.fa(this.Sb),this.G.O(this.Ua),this.G.X(),this.I(4096));this.J(65536)&&(this.f.Wa(this.Wa()),this.f.O(this.va),this.f.fa(a),Yia(this.f,this.g),this.f.X(),this.I(65536));if(this.J(35651584)){d=$.Xb(this.f.i("horizontalStroke"));e=a.clone();b=this.cb.Rv(0);c=this.cb.Rv(a.width);var f=$.O(Math.round(a.top-this.la*this.b),d);this.mc.clear();this.ga.clear();this.Uc.fH(this.va,a);this.Eh.length=0;for(var h={CK:0,$0:this.Eh},k=$.Xb(this.f.i("verticalStroke")),
l=0;l<this.U.length;l++){var m=this.g[l];var n=f;f=$.O(f+m,d);var q=$.M(this.Ja.i("top"),m);m=$.M(this.Ja.i("bottom"),m);e.top=n+d/2+q;e.height=f-d/2-m-e.top;h=this.U[l].X(h,b,c,this.mc,e.clone(),k)}this.Uc.Ki();this.ga.O(this.va);this.ga.fa(a);this.ga.X();this.I(35651584)}$.lq(this.D,this.o,this.ba,this.G,this.f,this.ga)}};$.g.vl=function(a){return $.p(a)?(a=$.jj(a),a!=this.N&&(this.N=a),this):this.N};$.g.kj=function(a){return $.p(a)?(a=$.kj(a),a!=this.Si&&(this.Si=a),this):this.Si};$.g.vi=function(){return!0};
$.g.Cg=function(){return!0};$.g.Qj=function(){return!1};$.g.Ad=function(){return null};$.g.Ck=function(a){var b=this.aa(),c=+b.b;b=b.o;var d=$.Xb(this.f.i("verticalStroke"));aja(this.U[c],b,a,this.mc,d)};$.g.Gj=function(a,b){var c=this.aa(),d=+c.b;c=c.o;var e=$.Xb(this.f.i("verticalStroke"));aja(this.U[d],c,a,this.mc,e);return b};$.g.Ql=$.ia;$.g.zp=$.ia;$.g.Tf=function(a){a=$.X.prototype.Tf.call(this,a);var b=$.hn(a.domTarget);b=$.N(b.index);(0,window.isNaN)(b)||(a.pointIndex=b);return a};
$.g.tg=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c=window.NaN;"pointIndex"in a?c=$.N(a.pointIndex):("labelIndex"in a?c=a.labelIndex:"markerIndex"in a&&(c=a.markerIndex),c=this.Eh[$.N(c)]);
a.pointIndex=c;var d=this.aa();if(d.select(c)){var e=+d.b;d=d.o;var f=this.U[e].b[d]||null}else e=d=window.NaN,f=null;return{type:b,actualTarget:a.target,target:this,originalEvent:a,resourceIndex:e,activityIndex:d,pointIndex:c,data:f.data,chart:this}};$.g.xj=function(a,b){this.ti((this.P[a-1]||0)+b);return this};$.g.ti=function(a){this.Cd();$.Kv(this.state,a);return this};$.g.Cd=function(a,b){this.state.xh($.ln,$.p(a)?(this.P[+a-1]||0)+ +b:window.NaN)};
$.g.select=function(a,b){this.Ai((this.P[a-1]||0)+b);return this};$.g.Ai=function(a,b){this.state.oh($.mn,a,b&&b.shiftKey?void 0:$.ln);return this};$.g.Pd=function(a,b){this.state.xh($.mn,$.p(a)?(this.P[+a-1]||0)+ +b:window.NaN)};$.g.cu=function(){return!0};
$.g.ek=function(){this.Xt||(this.Xt=new $.$u);var a=this.aa(),b=+a.b,c=a.o,d=(this.U[b]||null).b[c]||null;a=this.na.aa();a.select(b);for(var e=window.Infinity,f=-window.Infinity,h=[],k=0;k<d.tm.length;k++){var l=d.tm[k];e=Math.min(e,l.start);f=Math.max(f,l.end);h.push({start:l.start,end:l.end,minutesPerDay:l.Fx})}b={chart:{value:this,type:""},resourceIndex:{value:b,type:"number"},activityIndex:{value:c,type:"number"},activity:{value:d.data,type:""},name:{value:d.data.name,type:"string"},intervals:{value:h,
type:""},start:{value:e,type:"number"},end:{value:f,type:"number"},minutesPerDay:{value:1==h.length?h[0].minutesPerDay:window.NaN,type:"number"}};e={"%start":{value:new Date(e),type:"date-time"},"%end":{value:new Date(f),type:"date-time"}};this.Xt.Vi([this]).lg(a).dm(e);return $.Lt(this.Xt,b)};$.g.ej=function(){return!this.na.aa().Eb()};
$.g.F=function(){var a=a7.B.F.call(this);a.data=this.na?this.na.F():null;a.zoomLevels=this.qy();a.zoomLevel=this.$H();a.timeLine=this.ba.F();a.calendar=this.rb.F();a.xScale=this.cb.F();a.resourceList=this.G.F();a.horizontalScrollBar=this.D.F();a.verticalScrollBar=this.o.F();a.grid=this.f.F();a.timeTrackingMode=this.lV();a.overlay=this.Ea.F();a.cellPadding=this.Ja.F();a.conflicts=this.ga.F();$.Bp(this,r7,a);return{chart:a}};
$.g.Y=function(a,b){a7.B.Y.call(this,a);"cellPadding"in a&&this.Ja.K(a.cellPadding);this.Uc.ja(!!b,a.activities);this.data(a.data);this.Za.ja(!!b,a.logo);this.Ea.ja(!!b,a.overlay);this.ba.ja(!!b,a.timeLine);this.rb.K(a.calendar);this.cb.K(a.xScale);this.G.K(a.resourceList);this.D.K(a.horizontalScrollBar);this.o.K(a.verticalScrollBar);this.f.K(a.grid);this.qy(a.zoomLevels);this.$H(a.zoomLevel);this.lV(a.timeTrackingMode);this.HP(a.conflicts);$.tp(this,r7,a)};
$.g.R=function(){$.jd(this.df,this.Ag,this.ed,this.ba,this.Za,this.G,this.D,this.o,this.f,this.U,this.rb,this.cb,this.Ea,this.ga);delete this.na;this.df=this.Ag=this.ed=this.Vf=this.ba=this.Za=this.G=this.D=this.o=this.f=this.U=this.rb=this.cb=this.Ea=this.ga=null;a7.B.R.call(this)};$.H(b7,$.Bf);b7.prototype.o=function(){return!0};b7.prototype.g=function(){$.p(this.cj)&&($.Vj.cancelAnimationFrame(this.cj),this.Br(0))};
b7.prototype.tr=function(){var a=this.b.ae();this.deltaX=-this.Ba.eb;this.f.left=-this.Ba.Ma+a;this.f.width=this.Ba.Ma-a;a=this.b.$d();this.deltaY=-this.Ba.la*this.Ba.b;this.f.top=-this.Ba.b+a;this.f.height=this.Ba.b-a};b7.prototype.Rs=function(a,b){this.va=-a;this.Ea=-b;$.p(this.cj)&&$.Vj.cancelAnimationFrame(this.cj);this.cj=$.Vj.requestAnimationFrame(this.Br)};$.H(c7,$.nq);$.g=c7.prototype;$.g.reset=function(){this.b=0;this.o=this.g=-1;return this};
$.g.select=function(a){this.g=a;var b=$.Ma(this.Ba.P,a);if(0>b)this.b=~b;else{for(;this.Ba.P[++b]==a;);this.b=b}this.o=this.g-(this.Ba.P[this.b-1]||0);return this.b<this.Ba.P.length};$.g.advance=function(){this.g++;for(var a=this.Ba.P.length,b,c=window.NaN;this.b<a&&this.g>=(b=this.Ba.P[this.b]);)c=b,this.b++;(0,window.isNaN)(c)&&(c=this.Ba.P[this.b-1]||0);this.o=this.g-c;return this.b<a};$.g.ka=function(){return this.g};$.g.Eb=function(){return this.Ba.P[this.Ba.P.length-1]||0};
$.g.get=function(){throw"Cannot use get on ActivityIterator";};$.g.j=function(){throw"Cannot use meta on ActivityIterator";};a7.prototype.et=function(){return[this]};a7.prototype.Xj=function(a,b){var c=$.Uv(this);return $.Yn(c.headers,c.data,b)};var s7=a7.prototype;s7.getType=s7.Qa;s7.data=s7.data;s7.timeTrackingMode=s7.lV;s7.cellPadding=s7.v8;s7.zoomLevels=s7.qy;s7.zoomLevel=s7.$H;s7.xScale=s7.Wa;s7.horizontalScrollBar=s7.Bp;s7.verticalScrollBar=s7.rw;s7.grid=s7.cX;s7.logo=s7.kda;s7.timeLine=s7.Zga;
s7.calendar=s7.MO;s7.overlay=s7.y8;s7.activities=s7.vy;s7.conflicts=s7.HP;s7.resourceList=s7.Wfa;s7.hover=s7.xj;s7.hoverPoint=s7.ti;s7.unhover=s7.Cd;s7.select=s7.select;s7.selectPoint=s7.Ai;s7.unselect=s7.Pd;s7.noData=s7.zm;$.Fo.resource=gja;$.F("anychart.resource",gja);}).call(this,$)}
