if(!_.resource){_.resource=1;(function($){var Yna=function(a,b){return(0,window.isNaN)(a)?(0,window.isNaN)(b)?0:1:(0,window.isNaN)(b)?-1:b-a},T6=function(a){$.Yq.call(this);this.Ba=a;this.D=this.f=this.g=this.b=null;a={};$.T(a,[["fill",16,1],["stroke",16,1],["hatchFill",16,1],["labels",0,0]]);this.ca=new $.Yx(this,a,$.Zl);this.ca.pa("labelsAfterInitCallback",$.dy);a={};$.T(a,[["fill",0,0],["stroke",0,0],["hatchFill",0,0],["labels",0,0]]);this.xa=new $.Yx(this,a,$.po);this.xa.pa("labelsFactoryConstructor",$.$x);this.Ca=new $.Yx(this,a,$.qo);
this.Ca.pa("labelsFactoryConstructor",$.$x);$.T(this.ua,[["color",16,1]])},U6=function(a,b){if(!a)return Zna;var c=b+"|"+a+"|true",d=$na[c];if(!d){switch(b){case 2:d=$.Rl;break;case 3:d=$.Sl;break;default:case 1:d=$.Tl}$na[c]=d=$.qa(aoa,a,d,3==b,!0)}return d},aoa=function(a,b,c,d,e,f,h,k){k=$.Xl(k);if(k!=$.Zl&&d){var l=e.zc(a,k,f,b);c&&!0===l&&(l=V6);if($.n(l)){if(!$.E(l))return l;if(c)return c=e.Fi(h,f),b(l.call(c,c))}}a=e.zc(a,0,f,b);c&&!0===a&&(a=V6);$.E(a)&&(c=c?e.Fi(h,f):e.Ae(h,f),a=b(a.call(c,
c)));l&&(c=e.Ae(h,f,a),a=b(l.call(c,c)));return a},Zna=function(){return"none"},doa=function(a){this.D=!0;this.f=this.j=this.b=this.g=this.N=null;var b=a.isWorking;this.D=$.n(b)?b:!0;b=$.xk(boa,a.each,"none");switch(b){case "year":var c=a.on,d=a.from,e=a.to;this.O=this.nba;(c=$.cs(c,W6,X6))?(this.G=this.XU,this.b=new $.In(2E3,c.getUTCMonth(),c.getUTCDate()),e=Y6(d,e),this.j=e[0],this.f=e[1]):(this.G=this.H3,this.b=null,c=(c=$.cs(d,W6,X6))?new $.In(c):Z6,this.j=new $.In(2E3,c.getUTCMonth(),c.getUTCDate()),
c=(c=$.cs(e,W6,X6))?new $.In(c):$6,this.f=new $.In(2E3,c.getUTCMonth(),c.getUTCDate()),this.f.add(a7));break;case "week":coa(this,a.on,a.from,a.to);break;case "day":coa(this,window.NaN,a.from,a.to);break;default:c=a.on,d=a.from,e=a.to,this.O=this.uX,(c=$.cs(c))?(this.G=this.XU,this.b=new $.In(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),e=Y6(d,e),this.j=e[0],this.f=e[1]):(this.G=this.H3,this.b=null,c=(c=$.cs(d))?new $.In(c):Z6,this.j=new $.In(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),
c=(c=$.cs(e))?new $.In(c):$6,this.f=new $.In(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),this.f.add(a7))}"none"==b?this.b?(this.N=this.b.clone(),this.g=this.b.clone(),this.g.add(a7)):(this.N=this.j.clone(),this.g=this.f.clone()):(this.N=(b=$.cs(a.starts))?new $.In(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()):Z6,(b=$.cs(a.ends))?(this.g=new $.In(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()),this.g.add(a7)):this.g=$6)},coa=function(a,b,c,d){a.O=a.oba;a.G=a.XU;b=Math.min($.O(b,window.NaN,
!0),6);a.b=(0,window.isNaN)(b)?null:b;b=Y6(c,d);a.j=b[0];a.f=b[1]},Y6=function(a,b){if($.z(a)){var c=a.split(":",2);var d=[Math.min($.O(c[0],0,!0),23),2==c.length?Math.min($.O(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($.O(c[0],23,!0),23),2==c.length?Math.min($.O(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]]},b7=function(a){$.Yq.call(this);
this.f=[];this.g=[];this.Y=a||null;this.j=0;this.D={};this.b=null;this.O=!0;this.Y?$.L(this.Y,this.e1,this):(a=$.Jo($.Ko()),this.b=$.Ha(a.weekendRange))},d7=function(a,b,c){b=new Date(b);for(b=new $.In(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate());b.getTime()<c;){if(c7(a,b).length)return!0;b.add(a7)}return!1},e7=function(a,b,c,d,e){if((0,window.isNaN)(b)||(0,window.isNaN)(c))return[];b=new Date(b);b=new $.In(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,p=new Date(f);p=new $.In(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate());for(var q=[];p.getTime()<m;){for(var r=c7(l,p),t=0;t<r.length;t++){var u=r[t];q.push([u[0]-6E4*l.j,u[1]-6E4*l.j])}p.add(a7)}l=q;e&&!l.length||h.push({start:f,end:k,workingTime:l});f=k}return h},f7=function(a,b,c){b=new Date(b);b=new $.In(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate());if(!a.N){var d=Z6.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.dA||
(d=Math.max(d,f.g.getTime()))}else d=$6.getTime();a.N=d}d=5E3;for(e=b.getTime();e<=a.N&&--d;){b.add(c);f=b.getTime();if(d7(a,e,f))return e;e=f}return d&&a.Y?f7(a.Y,b.getTime(),c):window.NaN},g7=function(a,b,c){b=new Date(b);b=new $.In(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate());if(!a.G){var d=$6.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.dA||(d=Math.min(d,f.N.getTime()))}else d=Z6.getTime();a.G=d}d=5E3;for(e=b.getTime();e>=a.G&&--d;){b.add(c);f=b.getTime();
if(d7(a,f,e))return f;e=f}return d&&a.Y?g7(a.Y,b.getTime(),c):window.NaN},c7=function(a,b){var c=$.Gn.prototype.UI.call(b),d=a.D[c];if($.n(d))return d;d=null;for(var e=0;e<a.f.length;e++){var f=a.f[e],h=b;d=f.O(h)?f.G(d||[],h):d}!d&&a.b&&(d=[],e=(b.VL()+6)%7,(e<a.b[0]||e>a.b[1])&&d.push([b.getTime(),b.getTime()+864E5-6E4]));!d&&a.Y&&(d=c7(a.Y,b));d||(d=[]);return a.D[c]=d},h7=function(a){a.D={};a.N=null;a.G=null},i7=function(a){$.Y.call(this);this.Ba=a;this.f=new $.JB(function(){return $.jk()});this.g=
new $.JB(function(){return $.jk()});this.j=$.lk();this.Nf=$.qk();this.Wa=$.lk();this.f.parent(this.Wa);this.g.parent(this.Wa);this.j.parent(this.Wa);this.Wa.clip(this.Nf);this.G=[];this.D=null;$.T(this.ua,[["fill",16,1],["stroke",16,1],["hatchFill",16,1],["height",0,2]])},foa=function(a,b,c,d,e){if(c&&c.CB>c.Oy){var f=a.Ec(b,c,d),h=$.Ku(a.Da,a.Da.i("format"),f,++a.O);if(a.b){if(a.b.text==h)return;eoa(a,b)}a.b={index:a.O,text:h,start:b,AN:f,Jna:c,coa:d,top:e}}else eoa(a,b)},eoa=function(a,b){a.b&&
(a.b.end=b,a.G.push(a.b),a.b=null)},goa=function(a,b){var c=b.start,d=b.end,e=a.i("stroke"),f=a.Ba.Va(),h=$.bc(e),k=$.bc(a.Ba.ZY().i("verticalStroke")),l=k/2+h/2;c=$.Za($.R(f.gn(c)+a.N.left,k)+l,a.N.left,a.N.$a());d=$.Za($.R(f.gn(d)+a.N.left,k)-l,a.N.left,a.N.$a());f=$.R(b.top+h/2,h);k=$.R(b.top+a.i("height")-h/2,h);l=$.KB(a.f);l.ro(c).so(f).qo(d-c).po(k-f).fill(a.i("fill")).stroke(e);if(e=a.i("hatchFill"))l=$.KB(a.f),l.ro(c+h/2).so(f+h/2).qo(d-c-h).po(k-f-h).fill(e).stroke(null);a.yf(b.index,b.AN,
new $.J(c,f,d-c,k-f))},j7=function(){$.Y.call(this);this.Ya=this.G=this.D=this.ba=this.ya=this.U=this.ka=this.ga=this.Ga=this.N=this.O=this.b=this.f=null;this.Ka=new $.ku;$.L(this.Ka,this.L$,this);this.j=new $.PH;$.L(this.j,this.N$,this);this.cb=null;this.g=[];this.Ja=0;$.T(this.ua,[["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]])},hoa=function(a,b){$.n(b)&&(a.g=b,a.B(128,1))},ioa=function(a,b){$.n(b)&&(a.Ja=b,a.B(256,1))},k7=function(){$.ku.call(this);this.j=new $.PH;$.L(this.j,this.P$,this)},l7=function(a,b){$.Yq.call(this);this.Ba=a;this.wd=b;this.be=null;this.b=[];this.g={};this.f=0;this.j=!1;this.xb=null;this.B(4294967295)},koa=function(a,b,c,d,e){if(b=a.b[b])for(var f=0;f<b.Im.length;f++){var h=b.Im[f];(0,window.isNaN)(h.XO)||joa(a,
b,h,c,d,e)}},loa=function(a){a.ob();return a.f},joa=function(a,b,c,d,e,f){var h=a.Ba.cz(),k=c.shape,l=c.KT,m=b.data;h.b||(h.b=U6("fill",1));var p=h.b(h,m,c,d);m=b.data;h.g||(h.g=U6("stroke",2));var q=h.g(h,m,c,d);m=b.data;h.f||(h.f=U6("hatchFill",3));var r=h.f(h,m,c,d);var t=$.bc(q);k?m=$.bc(k.stroke())==t:(k=c.shape=$.KB(e),m=!0);k.fill(p);k.stroke(q);p=!1;r?(l||(l=c.KT=$.KB(e),l.td(!0),p=!0),l.fill(r),l.stroke("none")):l&&l.fill("none");e=a.xb;r=a.Ba.Va();a.Ba.me?(q=a.Ba,q.ob(),q=q.Ml):q=a.f;var u=
q,v=$.n(c.top)?c.top:b.top,w=f/2+t/2;q=$.R(r.gn(c.start)+e.left,f)+w;f=$.R(r.gn(c.end+864E5)+e.left,f)-w;r=$.R(v/u*e.height+e.top+t/2,t);v&&r++;t=$.R((v+c.ky)/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.UL});p&&l.clear().moveTo(q,r).lineTo(f,r).lineTo(f,t).lineTo(q,t).close();h.yf(c.XO,d,h.Ec(c,b.data),new $.J(q,r,f-q,t-r),b.data)},m7=function(){$.Yq.call(this)},n7=function(){$.Yq.call(this);$.T(this.ua,[["size",0,1],["borderRadius",
0,1],["opacity",0,1],["align",0,1],["fittingMode",0,1]])},o7=function(a){$.Y.call(this);this.O=a;this.f=this.j=this.G=this.D=this.g=this.va=null;this.coords={dk:{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;$.T(this.ua,[["width",0,0],["imageSrc",0,0],["name",0,0],["type",0,0],["description",0,1],["tags",0,1]])},p7=function(a,
b,c){var d=a.i(b);a=a.mf(b);$.A(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(!$.n(a))return d;if(!$.n(d))return a;if(null===d||(0,window.isNaN)(d)&&!$.D(d))return d;if($.ka(d)!=$.ka(a))return d;if($.A(d)){c=[];var e=Math.max(a.length,d.length);for(b=0;b<e;b++)c[b]=$.n(d[b])?d[b]:a[b]}else c={},$.ra(c,a),$.ra(c,d);return c},q7=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)}},moa=function(a){var b=a.g.width();a.b||(a.b=$.jk(0,0));a.b.qo(b).po(b);
var c=0,d=0,e=0,f=0,h=p7(a,"imageSettings","borderRadius");$.A(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},r7=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.ud()+f},s7=function(){$.Yq.call(this);$.T(this.ua,[["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],["textShadow",0,1],["selectable",0,1],["useHtml",0,1],["disablePointerEvents",0,1]])},t7=function(){s7.call(this)},u7=function(){$.Y.call(this);
this.G=new $.PH;$.L(this.G,this.Q$,this);this.f=this.va=null;this.j=[];this.Qb=[];this.Ja=this.Ga=0;$.T(this.ua,[["stroke",16],["oddFill",16],["evenFill",16],["drawTopLine",256],["drawRightLine",256],["drawBottomLine",256],["drawLeftLine",256]])},v7=function(a,b,c){var d={},e;if(a.length)for(e in b){var f=b[e].QV;var h=f.charAt(0).toUpperCase()+f.substr(1);h=a+h;h=c.get(h);$.n(h)&&(d[f]=h)}else for(e in b)f=b[e].QV,h=c.get(f),$.n(h)&&(d[f]=h);return d},w7=function(a,b,c){for(var d=0;d<a.Qb.length;d++)a.Qb[d].ma[b]=
c},x7=function(){u7.call(this);this.data(null);$.T(this.ua,[["rowHeight",0],["minRowHeight",0],["maxRowHeight",0]])},y7=function(){$.Ys.call(this);this.be=null;this.j=!1;this.G=60;this.f="day";this.b=1;this.N=Date.UTC(2E3,0);this.D={};this.g=null;this.O=0},z7=function(a){if(a.J(1)){var b=a.f+a.b.toFixed(0);a.g=a.D[b];a.g||(a.D[b]=a.g=new noa(a));a.B(2);a.I(1)}a.J(2)&&(a.O=ooa(a.g,a.N),a.I(2))},noa=function(a){this.be=a.calendar();this.iz=a.JW();var b=a.ng(),c=a.count();a=a.uO();this.ev=poa[b]*c||
window.NaN;!this.iz&&this.ev?this.b=$.Mo(a,b,c,2E3):(this.ev=window.NaN,this.bF=this.ln=$.No(b,c),this.Fq=this.ln.b(-1),this.iz?(a=$.Lo(a,this.ln,2E3),this.b=f7(this.be,a,this.ln),(0,window.isNaN)(this.b)&&(this.b=g7(this.be,a,this.Fq),this.ln=null),(0,window.isNaN)(this.b)?(this.gm=this.ik=null,b=window.NaN):(this.ik=new $.In(new Date(this.b)),this.ik.add(this.bF),this.gm=[this.b,this.ik.getTime()],b=g7(this.be,this.b,this.Fq)),(0,window.isNaN)(b)?this.Fq=this.Fk=this.am=null:(c=new $.In(new Date(b)),
c.add(this.bF),this.am=[c.getTime(),b],this.Fk=new $.In(new Date(b)))):(this.b=$.Mo(a,b,c,2E3),this.ik=new $.In(new Date(this.b)),this.ik.add(this.ln),this.gm=[this.b,this.ik.getTime()],this.Fk=new $.In(new Date(this.b)),this.Fk.add(this.Fq),this.am=[this.b,this.Fk.getTime()]))},ooa=function(a,b){if(a.ev)return(b-a.b)/a.ev;if(a.gm&&!a.ev){var c;if(b>=a.b){if(a.ln&&a.ik.getTime()<b)if(a.iz){var d=e7(a.be,a.ik.getTime(),b,a.ln,!0);for(c=0;c<d.length;c++){var e=d[c];a.gm.push(e.start,e.end)}d.length&&
a.ik.setTime(d[d.length-1].end);a.ik.getTime()<b&&(a.ln=null)}else{c=a.ik.getTime();do d=c,a.ik.add(a.ln),c=a.ik.getTime(),a.gm.push(d,c);while(c<b)}}else if(a.am&&a.Fq&&a.Fk.getTime()>b)if(a.iz){d=e7(a.be,b,a.Fk.getTime()-1,a.bF,!0);for(c=d.length;c--;)e=d[c],a.am.push(e.end,e.start);d.length&&a.Fk.setTime(d[0].start);a.Fk.getTime()>b&&(a.Fq=null)}else{c=a.Fk.getTime();do d=c,a.Fk.add(a.Fq),c=a.Fk.getTime(),a.am.push(d,c);while(c>b)}}if(!a.gm)return window.NaN;if(b==a.b)return 0;if(b>a.b){if(a.ik.getTime()<=
b)return a.gm.length/2;d=$.Na(a.gm,b);if(0<=d)return Math.round(d/2);d=~d;return d&1?(d>>1)+(b-a.gm[d-1])/(a.gm[d]-a.gm[d-1]):d>>1}if(!a.am)return 0;if(a.Fk.getTime()>=b)return-(a.am.length/2);d=$.Na(a.am,b,Yna);if(0<=d)return-Math.round(d/2)||0;d=~d;return d&1?-((d>>1)+(b-a.am[d-1])/(a.am[d]-a.am[d-1])):-(d>>1)||0},A7=function(a,b){$.gx.call(this);this.Fa("resource");this.Vc().hoverMode("single").selectionMode("multi-select");this.state=new $.Vw(this);this.Ob=new $.J(0,0,0,0);this.G=new u7;this.G.target(this);
$.L(this.G,this.rea,this);this.xc=new $.J(0,0,0,0);this.ga=new $.RH;$.L(this.ga,this.sea,this);this.Bd=new $.J(0,0,0,0);this.eb=new k7;$.L(this.eb,this.kea,this);this.Ja=new $.PH;$.L(this.Ja,this.K$,this);this.f=new j7;$.L(this.f,this.hea,this);this.dh=new $.J(0,0,0,0);this.D=new $.lB(!0);$.W(this,"horizontalScrollBar",this.D);this.D.ra("scrollerchange",this.wea,!1,this);$.L(this.D,this.xea,this);this.hj=new $.J(0,0,0,0);this.j=new $.lB(!0);$.W(this,"verticalScrollBar",this.j);this.j.pa("inverted",
!0);this.j.ra("scrollerchange",this.yea,!1,this);$.L(this.j,this.zea,this);this.be=new b7;this.cb=new y7;this.cb.calendar(this.be);$.L(this.cb,this.I$,this);this.pa("currentStartDate",window.NaN);this.nb=this.ab=window.NaN;this.gp=this.g=null;this.ya=this.b=0;this.$e=this.xj=null;this.Gk=0;this.ba=[];this.O=[];this.Pg=[];this.hc=null;this.Ml=0;this.Ud=this.me=!1;this.Tf=null;this.Ra=new $.tu;$.L(this.Ra,this.Xda,this);this.Tc=new T6(this);$.L(this.Tc,this.Rda,this);this.ka=new i7(this);$.L(this.ka,
this.Zda,this);this.data(a||null,b);$.eu(this,this,this.rg,this.Gg,null,this.rg,null,this.Cj);$.T(this.ua,[["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){$.ag.call(this,b.fa());this.b=c;this.Ba=a;this.zj=void 0;this.Xr=(0,$.pa)(function(){this.zj=void 0;var a=this.Ba,b=this.Ga,c=a.cb.nw(this.ga-a.nb);b/=a.b;$.V(a);c!=a.i("currentStartDate")&&
(a.pa("currentStartDate",c),a.B(262144,1));b!=a.ya&&(a.ya=b,a.B(1048576,1));a.da(!0)},this);$.bg(this);this.ra("start",this.j,!1,this);this.ra("end",this.g,!1,this)},C7=function(a){this.Ba=a;this.reset()},qoa=function(a,b){var c=new A7(a,b);c.ia(!0,$.mm("resource"));return c};$.Gn.prototype.UI=$.ca(6,function(a){return[this.getUTCFullYear(),$.uc(this.getUTCMonth()+1,2),$.uc(this.getUTCDate(),2)].join(a?"-":"")});
$.Hn.prototype.UI=$.ca(5,function(a){var b=$.Gn.prototype.UI.call(this,a);return a?b+" "+$.uc(this.getUTCHours(),2)+":"+$.uc(this.getUTCMinutes(),2)+":"+$.uc(this.nT(),2):b+"T"+$.uc(this.getUTCHours(),2)+$.uc(this.getUTCMinutes(),2)+$.uc(this.nT(),2)});var boa={Ena:"year",zna:"week",Kka:"day",NONE:"none"},roa={Cja:"availability-per-chart",Dja:"availability-per-resource",oja:"activity-per-chart",pja:"activity-per-resource"};$.H(T6,$.Yq);$.xq(T6,["fill","stroke","hatchFill","labels"],"normal");
$.g=T6.prototype;$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.mb=function(a){return $.n(a)?(this.xa.K(a),this):this.xa};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.sa=16;$.g.qa=1;var V6=$.$b("diagonal-brick");$.g=T6.prototype;$.g.Zd=function(a){$.X(a,1)&&this.B(16,1)};
$.g.Ec=function(a,b){this.D||(this.D=new $.rw);return $.av(this.D,{start:{value:a.start,type:"date-time"},end:{value:a.end,type:"date-time"},minutesPerDay:{value:a.ky,type:"number"},hoursPerDay:{value:a.ky/60,type:"number"},hoursPerDayRounded:{value:Math.ceil(a.ky/30)/2,type:"number"},name:{value:b.name||"Unnamed Activity",type:"string"},activityName:{value:b.name,type:"string"},activityInfo:{value:b,type:""}})};
$.g.yf=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!=$.Zl&&(k=(k=e[h]?e[h].label:void 0)||e[b==$.po?"hoverLabel":"selectLabel"]);e=l&&$.n(l.enabled)?l.enabled:null;h=k&&$.n(k.enabled)?k.enabled:null;b=b==$.qo?this.selected().labels():b==$.po?this.mb().labels():null;(null===h?b&&null!==b.enabled()&&$.n(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:$.xo(d,e)},(h=f.Vd(a))?(h.lf(c),h.uc(e)):h=f.add(c,e,a),h.oi(),$.Ou(h,b),h.kd(l,k),h.width(d.width),h.height(d.height),h.clip(d),h.$()):f.clear(a)};$.g.ID=function(a,b){var c=this.ca.labels();$.V(c);this.j||(this.j=$.lk(),this.j.zIndex(4).parent(a),this.Nf=$.qk(),this.j.clip(this.Nf));c.P(this.j);c.clear();c.ja(b);c.Mh=0;this.Nf.shape(b)};$.g.fi=function(){var a=this.ca.labels();a.$();var b=a.jm();b&&b.td(!0);a.da(!1);this.I(16)};var D7={};$.gq(D7,0,"color",$.Gq);$.U(T6,D7);
var $na={};$.g=T6.prototype;$.g.Ae=function(a,b,c){return{sourceColor:c||this.i("color")||"blue",start:a.start,end:a.end,minutesPerDay:a.ky,activityName:b.name,activityInfo:b}};$.g.Fi=function(a,b){return{sourceHatchFill:V6,start:a.start,end:a.end,minutesPerDay:a.ky,activityName:b.name,activityInfo:b}};$.g.th=function(a){return null!=this.Ma[a]};
$.g.zc=function(a,b,c,d){var e=0==b?this.ca:1==b?this.xa:this.Ca,f=c[0==b?"normal":1==b?"hovered":"selected"];b=(f?f[a]:void 0)||c[$.$l(b,a)];$.n(b)?b=d(b):(b=e.dd(a),null==b&&(b=e.mf(a),$.n(b)&&(b=d(b))));return b};$.g.F=function(){var a=T6.u.F.call(this);$.Hq(this,D7,a,"Activities");a.normal=this.ca.F();a.hovered=this.xa.F();a.selected=this.Ca.F();return a};
$.g.X=function(a,b){T6.u.X.call(this,a);$.zq(this,D7,a);this.ca.ia(!!b,a);this.ca.ia(!!b,a.normal);this.xa.ia(!!b,a.hovered);this.Ca.ia(!!b,a.selected)};$.g.R=function(){this.g=this.b=this.f=null;$.td(this.ca,this.xa,this.Ca,this.Nf);this.Nf=this.Ca=this.xa=this.ca=null;T6.u.R.call(this)};var E7=T6.prototype;E7.normal=E7.Sa;E7.hovered=E7.mb;E7.selected=E7.selected;$.g=doa.prototype;$.g.uX=function(a){return a.getTime()>=this.N.getTime()&&a.getTime()<=this.g.getTime()};$.g.oba=function(a){return this.uX(a)&&(null===this.b||(a.VL()+6)%7==this.b)};$.g.nba=function(a){if(!this.uX(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.j.clone();c.oT(b);var d=this.f.clone();d.oT(b);return a>=c.getTime()&&a<=d.getTime()};
$.g.XU=function(a,b){var c=this.j,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?d=Math.min(d,c[0]):(c[0]<d&&f.push([c[0],d]),d=e);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.H3=function(a,b){a.length=0;this.D&&a.push([b.getTime(),b.getTime()+864E5-6E4]);return a};$.H(b7,$.Yq);b7.prototype.sa=0;b7.prototype.qa=2;var W6="dd.MM",X6=new Date(Date.UTC(2E3,0)),Z6=new $.In(0,0,1),$6=new $.In(9999,11,31),a7=new $.An(0,0,1);$.g=b7.prototype;$.g.t5=function(a){if($.n(a)){var b;if($.A(a)){var c=$.O(a[0],window.NaN,!0);c=$.Za(c,0,6);a=$.O(a[1],window.NaN,!0);a=$.Za(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.O=!1;this.b=b;h7(this);this.ta(2);return this}return this.b};
$.g.V4=function(a){return $.n(a)?(this.j=$.N(a),h7(this),this.ta(2),this):this.j};$.g.GZ=function(a){if($.n(a)){this.g=$.A(a)?a.slice():[];for(a=this.f.length=0;a<this.g.length;a++)this.f.push(new doa(this.g[a]));h7(this);this.ta(2);return this}return this.g};$.g.PC=function(a,b,c,d){return e7(this,$.Rk(a),$.Rk(b),$.No($.Tk(c,"day",!0),$.O(d)))};$.g.e1=function(a){$.X(a,2)&&!this.b&&h7(this)};
$.g.F=function(){var a=b7.u.F.call(this);this.O||(a.weekendRange=this.b?[this.b[0],this.b[1]]:null);a.timezoneOffset=this.j;a.availabilities=this.g.slice();return a};$.g.X=function(a){b7.u.X.call(this,a);this.t5(a.weekendRange);this.V4(a.timezoneOffset);this.GZ(a.availabilities)};$.g.R=function(){this.g=null;this.Y&&$.Zq(this.Y,this.e1,this);this.Y=null;b7.u.R.call(this)};var F7=b7.prototype;$.F("anychart.scales.calendar",function(a){return new b7(a)});F7.weekendRange=F7.t5;F7.timezoneOffset=F7.V4;
F7.availabilities=F7.GZ;F7.getWorkingSchedule=F7.PC;$.H(i7,$.Y);$.g=i7.prototype;$.g.sa=$.Y.prototype.sa|208;$.g.qa=$.Y.prototype.qa|2;$.g.clear=function(){this.f.clear();this.g.clear();this.labels().clear();this.G.length=0;this.b=null;this.O=-1;this.B(192)};
$.g.$=function(){if(this.Bc()){this.J(4)&&(this.N=this.ja(),this.Nf.shape(this.N),this.I(4));if(this.J(128)){for(var a=0;a<this.G.length;a++)goa(this,this.G[a]);this.I(144)}if(this.J(64)){a=this.labels();$.V(a);a.P(this.j);a.ja(this.N);a.Mh=0;this.Nf.shape(this.N);a.$();var b=a.jm();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.yj(function(a){a.fill(c);a.stroke(d)});var e=this.i("hatchFill");this.g.yj(function(a){a.fill(e);a.stroke(null)});this.I(16)}this.J(2)&&
(a=this.P(),this.Wa.parent(a),this.I(2));this.J(8)&&(a=this.zIndex(),this.Wa.zIndex(a),this.I(8))}};$.g.labels=function(a){this.Da||(this.Da=new $.Du,this.Da.ib(this),$.L(this.Da,this.Zd,this));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Da.K(a),this):this.Da};$.g.Zd=function(a){$.X(a,1)&&this.B(16,1)};
$.g.Ec=function(a,b,c){this.D||(this.D=new $.rw);a=b.CB-b.Oy;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.Oy*100,type:"number"},allocated:{value:b.CB,type:"number"},vacant:{value:b.Oy,type:"number"},activities:{value:(0,$.Wa)(b.cz,function(a){return(a=c.b[a]||null)?a.data:null}),type:""}};return $.av(this.D,b)};
$.g.yf=function(a,b,c,d){var e=this.labels();if(b){var f=e.Vd(a),h={value:{x:c.left,y:c.top}};f?(f.lf(b),f.uc(h)):f=e.add(b,h,a);f.oi();f.kd(d);f.width(c.width);f.height(c.height);f.clip(c);f.$()}else e.clear(a)};var G7={};$.gq(G7,1,"fill",$.Eq);$.gq(G7,1,"stroke",$.Dq);$.gq(G7,1,"hatchFill",$.Fq);$.gq(G7,0,"height",$.qq);$.U(i7,G7);$.g=i7.prototype;$.g.th=function(a){return null!=this.Ma[a]};$.g.zc=function(a,b,c){b=b[a];$.n(b)?b=c(b):(b=this.Ma[a],null==b&&(b=this.ma[a],$.n(b)&&(b=c(b))));return b};
$.g.F=function(){var a=i7.u.F.call(this);$.Hq(this,G7,a,"Resource Conflicts");return a};$.g.X=function(a,b){i7.u.X.call(this,a);$.zq(this,G7,a);this.labels().ia(!!b,a.labels)};$.g.R=function(){$.td(this.f,this.g,this.Nf);this.f=this.g=this.Nf=null;i7.u.R.call(this)};var soa=i7.prototype;soa.labels=soa.labels;$.H(j7,$.iu);j7.prototype.sa=$.iu.prototype.sa|976;j7.prototype.qa=$.iu.prototype.qa;var H7={};$.gq(H7,1,"horizontalStroke",$.Dq);$.gq(H7,1,"verticalStroke",$.Dq);$.gq(H7,1,"oddFill",$.Eq);$.gq(H7,1,"evenFill",$.Eq);$.gq(H7,1,"oddHolidayFill",$.Eq);$.gq(H7,1,"evenHolidayFill",$.Eq);$.gq(H7,1,"oddHatchFill",$.Fq);$.gq(H7,1,"evenHatchFill",$.Fq);$.gq(H7,1,"oddHolidayHatchFill",$.Fq);$.gq(H7,1,"evenHolidayHatchFill",$.Fq);$.gq(H7,0,"drawTopLine",$.uq);$.gq(H7,0,"drawRightLine",$.uq);
$.gq(H7,0,"drawBottomLine",$.uq);$.gq(H7,0,"drawLeftLine",$.uq);$.U(j7,H7);$.g=j7.prototype;$.g.background=function(a){return $.n(a)?(this.Ka.K(a),this):this.Ka};$.g.M$=function(a){return $.n(a)?(this.j.K(a),this.B(512,1),this):this.j};$.g.Va=function(a){return $.n(a)?(this.cb!=a&&(this.cb&&$.Zq(this.cb,this.aZ,this),(this.cb=a)&&$.L(this.cb,this.aZ,this),this.B(128,1)),this):this.cb};$.g.aZ=function(){this.B(128,1)};$.g.L$=function(){this.B(64,1)};$.g.N$=function(){this.B(512,1)};
$.g.$=function(){if(this.Bc()){this.f||(this.f=$.lk(),this.b=this.f.Dd(),this.Nf=$.qk(),this.f.clip(this.Nf),this.O=this.b.path(),this.O.stroke(null),this.N=this.b.path(),this.N.stroke(null),this.Ga=this.b.path(),this.Ga.stroke(null),this.ga=this.b.path(),this.ga.stroke(null),this.ka=this.b.path(),this.ka.stroke(null),this.U=this.b.path(),this.U.stroke(null),this.ya=this.b.path(),this.ya.stroke(null),this.ba=this.b.path(),this.ba.stroke(null),this.D=this.b.path(),this.D.fill(null),this.D.Lp(!0),this.G=
this.b.path(),this.G.fill(null),this.G.Lp(!0));this.J(4)&&(this.Ya=this.lb(),$.Po(this.Ya,0),this.Nf.shape(this.Ya),this.B(960),this.I(4));this.J(64)&&(this.b.zIndex(this.Ka.zIndex()+1),this.Ka.ja(this.Ya),this.Ka.P(this.f),this.Ka.$(),this.I(64));this.J(16)&&(this.O.fill(this.i("oddFill")),this.N.fill(this.i("evenFill")),this.Ga.fill(this.i("oddHolidayFill")),this.ga.fill(this.i("evenHolidayFill")),this.ka.fill(this.i("oddHatchFill")),this.U.fill(this.i("evenHatchFill")),this.ya.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.O.clear();this.N.clear();this.Ga.clear();this.ga.clear();this.ka.clear();this.U.clear();this.ya.clear();this.ba.clear();this.D.clear();this.G.clear();if(this.cb){for(var a=this.cb.rn(0,this.Ya.width),b=this.g.length-1,c=a.length-1,d=$.bc(this.D.stroke()),e=$.bc(this.G.stroke()),f=$.R(0,d),h=0,k=!!this.i("drawTopLine"),l=!!this.i("drawRightLine"),
m=!!this.i("drawBottomLine"),p=!!this.i("drawLeftLine"),q=0;q<=b;q++){var r=q==b;h=$.R(f+this.g[q]-(r?d:0),d);for(var t=0;t<=c;t++){var u=t==c,v=a[t],w=$.R(this.cb.gn(v.start)+this.Ya.left,e),x=$.R(this.cb.gn(v.end)+this.Ya.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.Ga,y=this.ya):(v=this.O,y=this.ka);var B=p&&!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),I=m||!r?Math.floor(h):Math.ceil(h);
v.moveTo(B,C).lineTo(G,C).lineTo(G,I).lineTo(B,I).close();y.moveTo(B,C).lineTo(G,C).lineTo(G,I).lineTo(B,I).close();p&&!t&&this.G.moveTo(w,C).lineTo(w,I);!l&&u||this.G.moveTo(x,C).lineTo(x,I);k&&!q&&this.D.moveTo(B,f).lineTo(G,f);!m&&r||this.D.moveTo(B,h).lineTo(G,h)}f=h}this.Ra=h}else this.Ra=!1;this.I(128)}this.J(256)&&(this.b.jc(1,0,0,1,0,Math.round(this.Ya.top-this.Ja*this.Ra)),this.I(256));this.J(512)&&(this.j.target(this.P().Ha().Bl()),this.j.uf(this.lb()),this.j.$(),this.I(512));this.J(2)&&
(this.f.parent(this.P()),this.I(2));this.J(8)&&(this.f.zIndex(this.zIndex()),this.I(8))}};$.g.remove=function(){this.f&&this.f.parent(null)};$.g.th=function(a){return null!=this.Ma[a]};$.g.fs=function(){return 1};$.g.F=function(){var a=j7.u.F.call(this);$.Hq(this,H7,a,"Resource Grid");a.background=this.Ka.F();a.overlay=this.j.F();return a};$.g.X=function(a,b){j7.u.X.call(this,a,b);$.zq(this,H7,a);$.n(this.Ka)&&this.Ka.ia(!!b,a.background);this.j.ia(!!b,a.overlay)};
$.g.R=function(){$.qd(this.Ka);this.Ka=null;$.qd(this.f);this.G=this.D=this.ba=this.ya=this.U=this.ka=this.ga=this.Ga=this.N=this.O=this.b=this.f=null;$.qd(this.j);this.j=null;j7.u.R.call(this)};var I7=j7.prototype;I7.background=I7.background;I7.overlay=I7.M$;$.H(k7,$.ku);$.g=k7.prototype;$.g.sa=$.ku.prototype.sa|128;$.g.qa=$.ku.prototype.qa;$.g.O$=function(a){return $.n(a)?(this.j.K(a),this.B(128,1),this):this.j};$.g.P$=function(){this.B(128,1)};$.g.$=function(){this.J(4)&&this.B(128);k7.u.$.call(this);this.J(128)&&(this.j.target(this.P().Ha().Bl()),this.j.uf(this.lb()),this.j.$(),this.I(128));return this};$.g.F=function(){var a=k7.u.F.call(this);a.overlay=this.j.F();return a};$.g.X=function(a,b){k7.u.X.call(this,a,b);this.j.ia(!!b,a.overlay)};
$.g.R=function(){k7.u.R.call(this);$.qd(this.j);this.j=null};var toa=k7.prototype;toa.overlay=toa.O$;$.H(l7,$.Yq);$.g=l7.prototype;$.g.sa=3;$.g.qa=0;$.g.calendar=function(a){return $.n(a)?(this.be||(this.be=new b7(this.Ba.calendar())),this.be.K(a),this):this.be||this.Ba.calendar()};
$.g.$=function(a,b,c,d,e,f){this.ob();if(this.j){for(var h=Math.floor(b/864E5),k=Math.floor(c/864E5),l=this.Ba.hR();h<=k;h++)foa(l,864E5*h,this.g[h],this,e.top);foa(l,864E5*h,null,this,e.top);k=l.i("height")+1;e.top+=k;e.height-=k}this.xb=e;for(e=0;e<this.b.length;e++){k=this.b[e];l=b;h=c;for(var m=d,p=f,q=a.UL++,r=0;r<k.Im.length;r++){var t=k.Im[r];t.shape=null;t.KT=null;t.UL=q;t.end+864E5<l||t.start>h?t.XO=window.NaN:(t.XO=a.B3.length,a.B3.push(q),joa(this,k,t,$.$w(this.Ba.state,a.UL),m,p))}}return a};
$.g.ob=function(){if(this.J(1)){this.b.length=0;var a=this.Ba.oa.aa();var b;if(!a.select(this.wd)||!(b=a.get("activities"))||!$.A(b))return;for(a=0;a<b.length;a++){var c=b[a];if($.D(c)){var d=c.intervals;$.A(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=$.cs(k.start),m=$.cs(k.end);if(l&&m){if(l.getTime()>m.getTime()){var p=l;l=m;m=p}l=Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate());m=Date.UTC(m.getUTCFullYear(),m.getUTCMonth(),
m.getUTCDate());p=$.O(k.totalMinutes,window.NaN,!1);f.push({start:l,end:m,ky:(0,window.isNaN)(p)?$.O(k.minutesPerDay,e,!1):p/((m-l)/864E5+1),shape:null,KT:null,XO:window.NaN})}}}c=f.length?{data:c,top:0,Im:f}:null}else c=null;c&&this.b.push(c)}this.B(2);this.I(1)}if(this.J(2)){this.g={};this.f=0;this.j=!1;b=this.Ba.Ud;for(a=0;a<this.b.length;a++)for(c=this.b[a],c=c.Im,d=0;d<c.length;d++){k=c[d];e=Math.floor(k.start/864E5);f=Math.floor(k.end/864E5);m=k.ky;l=0;for(h=e;h<=f;h++){var q=this.g[h];if(!q){p=
h;q=this.calendar();p=new Date(p);p=new $.In(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate());q=c7(q,p);for(var r=p=0;r<q.length;r++){var t=q[r];p+=t[1]-t[0]}q=p/6E4;this.g[h]=q={Oy:q,CB:0,cz:q?[]:null,bottom:0}}q.Oy&&(q.cz[q.cz.length-1]!=a&&q.cz.push(a),q.CB+=m,q.CB>q.Oy&&(this.j=!0),q.bottom>l&&(l=q.bottom))}k.top=l;k=l+m;for(h=e;h<=f;h++)this.g[h].bottom=k,b&&this.f<q.Oy&&(this.f=q.Oy),this.f<q.bottom&&(this.f=q.bottom)}this.I(2)}};$.g.F=function(){return l7.u.F.call(this)};
$.g.X=function(a){l7.u.X.call(this,a)};$.g.R=function(){$.td(this.be);this.g=this.be=this.Ba=this.b=null;l7.u.R.call(this)};$.H(m7,$.Yq);$.g=m7.prototype;$.g.margin=function(a,b,c,d){this.Mc||(this.Mc=new $.zv,$.L(this.Mc,this.sA,this));return $.n(a)?(this.Mc.K.apply(this.Mc,arguments),this):this.Mc};$.g.sA=function(){this.ta(1)};$.g.qa=1;$.g.X=function(a,b){m7.u.X.call(this,a,b);this.margin().ia(!!b,a.margin)};$.g.F=function(){var a=m7.u.F.call(this);a.margin=this.margin().F();return a};$.g.R=function(){$.qd(this.Mc);m7.u.R.call(this)};var uoa=m7.prototype;uoa.margin=uoa.margin;$.H(n7,m7);var J7={};$.hq(J7,[[0,"size",$.Qq],[1,"borderRadius",$.Uq],[0,"opacity",$.Tq],[0,"align",$.oq],[0,"fittingMode",$.oq]]);$.U(n7,J7);n7.prototype.X=function(a,b){n7.u.X.call(this,a,b);$.zq(this,J7,a,b)};n7.prototype.F=function(){var a=n7.u.F.call(this);$.Hq(this,J7,a);return a};$.H(o7,$.Y);o7.prototype.qa=$.Y.prototype.qa;o7.prototype.sa=$.Y.prototype.sa;var voa={};$.hq(voa,[[0,"width",$.Qq],[0,"imageSrc",$.oq],[0,"name",$.oq],[0,"type",$.oq],[0,"description",$.oq],[1,"tags",$.Uq]]);$.U(o7,voa);$.g=o7.prototype;$.g.offsetY=function(a){return $.n(a)?(this.aN!=a&&(this.aN=a),this):this.aN};$.g.dZ=function(a){var b={};if(a){var c=a.target,d=(0,$.za)(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.va&&this.va.parent(null)};
$.g.$=function(){if(!this.Bc())return this;var a=this.P(),b=a?a.Ha():null,c=b&&!b.ff();c&&b.suspend();this.va||(this.va=$.lk());this.g||(this.g=this.va.dk(),this.g.zIndex(1));this.D||(this.D=this.va.text(),this.D.zIndex(1));this.G||(this.G=this.va.text(),this.G.zIndex(1));this.j||(this.j=this.va.text(),this.j.zIndex(1));this.f||(this.f=[]);this.J(8)&&(this.va.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.va.parent(a),this.I(2));var d=this.i("imageSrc");this.g.src(d);q7(this,this.g,p7(this,"imageSettings",
[]));a=this.i("name");p7(this,"nameSettings","useHtml")?this.D.htmlText(a):this.D.text(a);q7(this,this.D,p7(this,"nameSettings",[]));a=this.i("type");p7(this,"typeSettings","useHtml")?this.G.htmlText(a):this.G.text(a);q7(this,this.G,p7(this,"typeSettings",[]));a=this.i("description");p7(this,"descriptionSettings","useHtml")?this.j.htmlText(a):this.j.text(a);q7(this,this.j,p7(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.sc.ac(f,
"click",this.dZ);$.qd(f)}this.f=[]}var h=p7(this,"tagSettings",[]);h.background=p7(this,"tagSettings","background");h.padding=p7(this,"tagSettings","padding");for(e=0;e<a.length;e++)f=new $.jv,this.sc.ra(f,"click",this.dZ),f.K(h),f.jm().cursor("pointer"),f.P(this.va),f.zIndex(1),f.text(a[e]),this.f.push(f);if(this.J(4)){var k=this.i("height");a=this.O.bZ(this,k);h=this.O.H0(k);var l=this.O.G0(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=p7(this,"imageSettings","margin");this.coords.dk.x=$.M(f.left,k)||0;var m=$.M(f.right,k)||0;this.coords.dk.y=$.M(f.top,a)||0;e=$.M(p7(this,"imageSettings","size"),k)||0;this.g.width(e);this.g.height(e);var p=0,q=0;""!=d&&(this.g.clip(moa(this)),p=this.coords.dk.x+e+m,q=this.coords.dk.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=p7(this,"nameSettings","margin"),r7(this,this.D,this.coords.name,p,f,a));this.coords.type.y=
this.coords.name.y+this.coords.name.height;null!=this.i("type")&&(f=p7(this,"typeSettings","margin"),r7(this,this.G,this.coords.type,p,f,a));this.coords.description.y=this.coords.type.y+this.coords.type.height;null!=this.i("description")&&(f=p7(this,"descriptionSettings","margin"),r7(this,this.j,this.coords.description,p,f,a));d=k-p;var r=this.coords.description.y+this.coords.description.height;f=r;if(this.f.length){f=p7(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=p+t;r+=v;var x=!1;for(e=0;e<this.f.length;e++){f=this.f[e];var y=f.gi();x&&w+y.width+m-p>d&&(w=p+t,r=r+y.height+u+v);f.offsetX(w);f.offsetY(r);f.$();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.xb=$.gn(0,0,k,this.N);this.g.jc(1,0,0,1,this.coords.dk.x,this.coords.dk.y);this.D.jc(1,0,0,1,this.coords.name.x,this.coords.name.y);
this.G.jc(1,0,0,1,this.coords.type.x,this.coords.type.y);this.j.jc(1,0,0,1,this.coords.description.x,this.coords.description.y);this.va.clip(this.xb);this.I(4)}this.va.jc(1,0,0,1,0,this.aN);c&&b.resume();return this};$.g.F=function(){return o7.u.F.call(this)};$.g.X=function(a,b){o7.u.X.call(this,a,b)};$.g.R=function(){this.O=null;$.td(this.f);this.f=null;$.qd(this.j);this.j=null;$.qd(this.G);this.G=null;$.qd(this.D);this.D=null;$.qd(this.g);this.g=null;$.qd(this.va);this.va=null;o7.u.R.call(this)};$.H(s7,m7);var K7={};$.hq(K7,[[0,"fontSize",$.oq],[0,"fontFamily",$.oq],[0,"fontColor",$.oq],[0,"fontOpacity",$.Tq],[0,"fontDecoration",$.Wk],[0,"fontStyle",$.Xk],[0,"fontVariant",$.Yk],[0,"fontWeight",$.lq],[0,"letterSpacing",$.lq],[0,"textDirection",$.Zk],[0,"lineHeight",$.lq],[0,"textIndent",$.qq],[0,"vAlign",$.Vk],[0,"hAlign",$.Uk],[0,"wordWrap",$.tq],[0,"wordBreak",$.tq],[0,"textOverflow",$.oq],[0,"textShadow",$.ac],[0,"selectable",$.uq],[0,"useHtml",$.uq],[0,"disablePointerEvents",$.uq]]);
$.U(s7,K7);s7.prototype.X=function(a,b){s7.u.X.call(this,a,b);$.zq(this,K7,a,b)};s7.prototype.F=function(){var a=s7.u.F.call(this);$.Hq(this,K7,a);return a};$.H(t7,s7);$.g=t7.prototype;$.g.background=function(a){this.Ka||(this.Ka=new $.ku,this.Ka.U=!1,$.L(this.Ka,this.gg,this));return $.n(a)?(this.Ka.K(a),this):this.Ka};$.g.gg=function(){this.ta(1)};$.g.padding=function(a,b,c,d){this.Pa||(this.Pa=new $.tu,$.L(this.Pa,this.Pl,this));return $.n(a)?(this.Pa.K.apply(this.Pa,arguments),this):this.Pa};$.g.Pl=function(){this.ta(1)};$.g.X=function(a,b){t7.u.X.call(this,a,b);this.padding().ia(!!b,a.padding);this.background().ia(!!b,a.background)};
$.g.F=function(){var a=t7.u.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(){$.td(this.Pa,this.Ka);t7.u.R.call(this)};var L7=t7.prototype;L7.background=L7.background;L7.padding=L7.padding;$.H(u7,$.iu);u7.prototype.qa=$.Y.prototype.qa;u7.prototype.sa=$.Y.prototype.sa|65488;var M7={};$.hq(M7,[[1,"stroke",$.Dq],[1,"oddFill",$.Eq],[1,"evenFill",$.Eq],[0,"drawTopLine",$.uq],[0,"drawRightLine",$.uq],[0,"drawBottomLine",$.uq],[0,"drawLeftLine",$.uq]]);$.U(u7,M7);$.g=u7.prototype;$.g.th=function(a){return null!=this.Ma[a]};$.g.fs=function(){return 1};$.g.target=function(a){return $.n(a)?(this.b!=a&&(this.b=a,this.B(512,1)),this):this.b};
$.g.background=function(a){this.Ka||(this.Ka=new $.ku,$.L(this.Ka,this.gg,this));return $.n(a)?(this.Ka.K(a),this):this.Ka};$.g.gg=function(a){$.X(a,1)&&this.B(64,1)};$.g.Gea=function(){this.B(1024,1)};$.g.$E=function(a){this.O||(this.O=new n7,$.L(this.O,this.Gea,this));return $.n(a)?(this.O.K(a),this):this.O};$.g.Pfa=function(){this.B(2048,1)};$.g.names=function(a){this.U||(this.U=new s7,$.L(this.U,this.Pfa,this));return $.n(a)?(this.U.K(a),this):this.U};$.g.Sia=function(){this.B(4096,1)};
$.g.aF=function(a){this.ga||(this.ga=new s7,$.L(this.ga,this.Sia,this));return $.n(a)?(this.ga.K(a),this):this.ga};$.g.fca=function(){this.B(8192,1)};$.g.PF=function(a){this.N||(this.N=new s7,$.L(this.N,this.fca,this));return $.n(a)?(this.N.K(a),this):this.N};$.g.uia=function(){this.B(16384,1)};$.g.Jy=function(a){this.ba||(this.ba=new t7,$.L(this.ba,this.uia,this));return $.n(a)?(this.ba.K(a),this):this.ba};
$.g.cZ=function(a){return $.n(a)?(a=$.Za($.N(a),0,1),this.Ga!=a&&(this.Ga=a,this.B(128,1)),this):this.Ga};$.g.oQ=function(a){return $.n(a)?(this.G.K(a),this.B(32768,1),this):this.G};$.g.Q$=function(){this.B(32768,1)};$.g.aa=function(){return this.b?this.b.oa.aa():null};$.g.bZ=function(a){return this.g[a.index]};$.g.H0=function(){return window.NaN};$.g.G0=function(){return window.NaN};$.g.remove=function(){this.va&&this.va.parent(null)};
$.g.$=function(){if(!this.Bc())return this;var a=this.P(),b=a?a.Ha():null,c=b&&!b.ff();c&&b.suspend();this.va||(this.va=$.lk(),this.f=this.va.Dd(),this.f.zIndex(1),this.ya=this.f.path(),this.ya.stroke(null),this.ya.zIndex(0),this.ka=this.f.path(),this.ka.stroke(null),this.ka.zIndex(0),this.D=this.f.path(),this.D.fill(null),this.D.zIndex(1));this.J(8)&&(this.va.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.va.parent(a),this.I(2));this.J(4)&&(this.Wk=this.lb(),this.va.clip(this.Wk),this.B(33216),
this.I(4));this.J(16)&&(this.D.stroke(this.i("stroke")),this.ka.fill(this.i("evenFill")),this.ya.fill(this.i("oddFill")),this.I(16));this.J(64)&&(a=this.background(),$.V(a),a.zIndex(0),a.ja(this.Wk.clone()),this.enabled()&&a.P(this.va),a.da(!1),a.$(),this.I(64));this.J(32768)&&(this.G.target(this.P().Ha().Bl()),this.G.uf(this.lb()),this.G.$(),this.I(32768));if(this.J(512)){var d=this.aa();d.Gb()>this.Qb.length&&this.B(31744);for(d.reset();d.advance();){var e=d.la();this.Qb[e]?a=this.Qb[e]:((a=this.j.pop())||
(a=new o7(this)),this.Qb.push(a),a.index=e);e=d;var f=v7("image",J7,e);var h=e.get("imageMargin");$.n(h)&&(f.margin=$.Dm(h));a.pa("imageSettings",f);f=v7("name",K7,e);h=e.get("nameMargin");$.n(h)&&(f.margin=$.Dm(h));a.pa("nameSettings",f);f=v7("type",K7,e);h=e.get("typeMargin");$.n(h)&&(f.margin=$.Dm(h));a.pa("typeSettings",f);f=v7("description",K7,e);h=e.get("descriptionMargin");$.n(h)&&(f.margin=$.Dm(h));a.pa("descriptionSettings",f);f=v7("tags",K7,e);h=e.get("tagsMargin");$.n(h)&&(f.margin=$.Dm(h));
h=e.get("tagsPadding");$.n(h)&&(f.padding=$.Dm(h));h=e.get("tagsBackground");$.n(h)&&(f.background=h);a.pa("tagSettings",f);a.pa("width",this.Wk.width);a.pa("height",this.Wk.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"))?$.A(h)?h.slice():[h]:[];a.pa("tags",h);e=e.get("enabled");e=$.n(e)&&!(0,window.isNaN)(e)?!!e:!0;a.enabled(e).ib(this.Jy())}for(a=(a=d.Gb())||0;this.Qb.length!=
a;)d=this.Qb.pop(),$.V(d).enabled(!1).da(!1).$(),this.j.push(d);this.B(256);this.I(512)}if(this.J(31744)){this.Jy().background().I(4294967295);e=this.$E().F();h=this.names().F();f=this.aF().F();var k=this.PF().F();var l=this.Jy().F();for(d=0;d<this.Qb.length;d++)a=this.Qb[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.B(256);this.I(31744)}this.J(1024)&&(w7(this,"imageSettings",this.$E().F()),this.B(256),this.I(1024));
this.J(2048)&&(w7(this,"nameSettings",this.names().F()),this.B(256),this.I(2048));this.J(4096)&&(w7(this,"typeSettings",this.aF().F()),this.B(256),this.I(4096));this.J(8192)&&(w7(this,"descriptionSettings",this.PF().F()),this.B(256),this.I(8192));this.J(16384)&&(this.Jy().background().I(4294967295),w7(this,"tagSettings",this.Jy().F()),this.B(256),this.I(16384));if(this.J(256)){d=$.bc(this.D.stroke());e=$.R(0,d);h=$.R(this.Wk.width-d,d);l=0;var m=!!this.i("drawTopLine"),p=!!this.i("drawRightLine"),
q=!!this.i("drawBottomLine"),r=!!this.i("drawLeftLine");f=$.R(l,d);var t=this.Qb.length,u=t-1;this.D.clear();this.ka.clear();this.ya.clear();for(k=0;k<t;k++){var v=k==u;a=this.Qb[k];a.pa("width",this.Wk.width);a.pa("height",this.Wk.height);a.B(4);var w=l;$.V(a).P(this.f).offsetY(w).da(!1).$();w=a.enabled()?a.N:0;a=$.R(f+w-(k==t-1?d:0),d);var x=r?Math.ceil(e):Math.floor(e),y=p?Math.floor(h):Math.ceil(h),B=m&&!k?Math.ceil(f):Math.floor(f),G=q||!v?Math.floor(a):Math.ceil(a);(k&1?this.ka:this.ya).moveTo(x,
B).lineTo(y,B).lineTo(y,G).lineTo(x,G).close();r&&this.D.moveTo(e,B).lineTo(e,G);p&&this.D.moveTo(h,B).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.jc(1,0,0,1,this.Wk.left,Math.round(this.Wk.top-this.Ja*this.Ga)),this.I(128));c&&b.resume();return this};
$.g.F=function(){var a=u7.u.F.call(this);$.Hq(this,M7,a,"Resource list");a.background=this.background().F();a.images=this.$E().F();a.names=this.names().F();a.types=this.aF().F();a.descriptions=this.PF().F();a.tags=this.Jy().F();a.overlay=this.oQ().F();return a};
$.g.X=function(a,b){u7.u.X.call(this,a,b);$.zq(this,M7,a,b);this.background().ia(!!b,a.background);this.$E().ia(!!b,a.images);this.names().ia(!!b,a.names);this.aF().ia(!!b,a.types);this.PF().ia(!!b,a.descriptions);this.Jy().ia(!!b,a.tags);this.oQ().ia(!!b,a.overlay)};
$.g.R=function(){$.td(this.j);$.td(this.Qb);$.qd(this.f);this.f=null;$.qd(this.Ka);this.Ka=null;$.qd(this.va);this.va=null;$.qd(this.Ra);this.Ra=null;$.qd(this.O);this.O=null;$.qd(this.U);this.U=null;$.qd(this.ga);this.ga=null;$.qd(this.N);this.N=null;$.qd(this.ba);this.ba=null;$.qd(this.G);this.G=null;u7.u.R.call(this)};$.H(x7,u7);$.ju(x7,u7);var N7={};$.gq(N7,0,"rowHeight",$.Qq);$.gq(N7,0,"minRowHeight",$.Qq);$.gq(N7,0,"maxRowHeight",$.Qq);$.U(x7,N7);$.g=x7.prototype;
$.g.data=function(a,b){return $.n(a)?(this.jg!==a&&(this.jg=a,$.qd(this.jd),$.K(a,$.pr)?this.oa=this.jd=a.tj():this.oa=$.K(a,$.zr)?this.jd=a.ie():(this.jd=new $.zr($.A(a)||$.z(a)?a:null,b)).ie(),$.L(this.oa,this.Id,this),this.B(524288,1)),this):this.oa};$.g.Id=function(a){$.X(a,16)&&this.B(512,1)};$.g.aa=function(){return this.oa?this.oa.aa():null};$.g.bZ=function(a,b){var c=this.i("rowHeight");return c=$.M(c,b)};$.g.H0=function(a){var b=this.i("minRowHeight");return b=$.M(b,a)};
$.g.G0=function(a){var b=this.i("maxRowHeight");return b=$.M(b,a)};$.g.F=function(){var a=x7.u.F.call(this);a.data=this.oa?this.oa.F():null;return a};$.g.X=function(a,b){x7.u.X.call(this,a,b);this.data(b?a.data:null)};$.g.R=function(){$.qd(this.jd);this.jd=null;delete this.oa;this.jg=null;x7.u.R.call(this)};var O7=u7.prototype;O7.target=O7.target;O7.background=O7.background;O7.images=O7.$E;O7.names=O7.names;O7.types=O7.aF;O7.descriptions=O7.PF;O7.tags=O7.Jy;O7.overlay=O7.oQ;O7=x7.prototype;
$.F("anychart.standalones.resourceList",function(a){var b=new x7;b.X($.mm("standalones.resourceList"),!0);b.data(a);return b});O7.data=O7.data;O7.draw=O7.$;O7.parentBounds=O7.ja;O7.container=O7.P;O7.verticalScrollBarPosition=O7.cZ;$.H(y7,$.Ys);$.g=y7.prototype;$.g.sa=3;$.g.qa=6;$.g.calendar=function(a){if($.n(a))return this.be!=a&&(this.be&&$.Zq(this.be,this.bA,this),(this.be=a)&&$.L(this.be,this.bA,this),this.D={},this.g=null,this.B(1,6)),this;this.be||(this.be=new b7,$.L(this.be,this.bA,this));return this.be};$.g.JW=function(a){return $.n(a)?(a=!!a,this.j!=a&&(this.j=a,this.D={},this.g=null,this.B(1,6)),this):this.j};$.g.l5=function(a){return $.n(a)?(a=$.uo(a),this.G!=a&&(this.G=a,this.B(2,6)),this):this.G};
$.g.ng=function(a){return $.n(a)?(a=$.Tk(a,"day",!0),this.f!=a&&(this.f=a,this.B(1,6)),this):this.f};$.g.count=function(a){return $.n(a)?(a=$.O(a),this.b!=a&&(this.b=a,this.B(1,6)),this):this.b};$.g.uO=function(a){return $.n(a)?(a=$.Rk(a),this.N!=a&&(this.N=a,this.B(2,2)),this):this.N};$.g.Na=function(){return"date-time-with-calendar"};$.g.gn=function(a){z7(this);return(ooa(this.g,$.Rk(a))-this.O)*this.G};
$.g.nw=function(a){z7(this);var b=this.g;a=a/this.G+this.O;if(b.ev)b=Math.floor(a*b.ev+b.b);else{var c=a;if(b.gm&&!b.ev){var d;if(0<=c){if(c=2*Math.ceil(c)+2,b.ln)if(b.iz)for(;b.gm.length<c;){var e=f7(b.be,b.ik.getTime(),b.ln);if((0,window.isNaN)(e)){b.ln=null;break}else b.ik.setTime(e),b.ik.add(b.ln),b.gm.push(e,b.ik.getTime())}else for(d=b.ik.getTime();b.gm.length<c;)e=d,b.ik.add(b.ln),d=b.ik.getTime(),b.gm.push(e,d)}else if(b.am&&b.Fq)if(c=2*Math.ceil(-c)+2,b.iz)for(;b.am.length<c;)if(e=g7(b.be,
b.Fk.getTime()-1,b.Fq),(0,window.isNaN)(e)){b.Fq=null;break}else b.Fk.setTime(e),b.Fk.add(b.bF),b.am.push(b.Fk.getTime(),e),b.Fk.setTime(e);else for(d=b.Fk.getTime();b.am.length<c;)e=d,b.Fk.add(b.Fq),d=b.Fk.getTime(),b.am.push(e,d)}0>a?(a=-a,c=b.am):c=b.gm;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.rn=function(a,b,c,d){z7(this);var e=[];a=$.Mo(this.nw(a),c||this.f,d||this.b,2E3);b=this.nw(b);a=new $.In(new Date(a));c=$.No(c||this.f,d||this.b);for(d=a.getTime();d<b;){var f=d;a.add(c);d=a.getTime();var h=d7(this.be,f,d);this.j&&!h||e.push({start:f,end:d,holiday:!h})}return e};$.g.transform=function(){return window.NaN};$.g.Fc=function(){return window.NaN};
$.g.zI=function(){this.An&&(this.min=$.Mo(this.min,this.f,this.b,2E3));if(this.yn){this.max=$.Mo(this.max,this.f,this.b,2E3);var a=new $.In(new Date(this.max));a.add($.No(this.f,this.b));this.max=a.getTime()}};$.g.Uc=function(a){for(var b=0;b<arguments.length;b++)y7.u.Uc.call(this,$.cs(arguments[b]));return this};$.g.bA=function(a){$.X(a,2)&&(this.D={},this.g=null,this.B(1,2))};$.g.F=function(){var a=y7.u.F.call(this);a.skipHolidays=this.j;return a};$.g.X=function(a){y7.u.X.call(this,a);this.JW(a.skipHolidays)};
$.g.R=function(){$.qd(this.be);this.be=null;y7.u.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 poa=P7;$.g=noa.prototype;$.g.be=null;$.g.iz=!1;$.g.ik=null;$.g.Fk=null;$.g.ev=window.NaN;$.g.ln=null;$.g.bF=null;$.g.Fq=null;$.g.gm=null;$.g.am=null;var Q7=y7.prototype;Q7.dateToPix=Q7.gn;Q7.pixToDate=Q7.nw;Q7.calendar=Q7.calendar;Q7.skipHolidays=Q7.JW;Q7.unitPixSize=Q7.l5;Q7.unit=Q7.ng;Q7.count=Q7.count;
Q7.startDate=Q7.uO;Q7.getTicks=Q7.rn;Q7.softMinimum=Q7.aB;Q7.softMaximum=Q7.$A;Q7.minimumGap=Q7.xs;Q7.maximumGap=Q7.vs;Q7.minimum=Q7.uh;Q7.maximum=Q7.Rh;$.H(A7,$.gx);A7.prototype.sa=$.gx.prototype.sa|67104768;A7.prototype.Na=function(){return"resource"};A7.prototype.Te=function(){return[]};
var R7=function(){var a={};$.gq(a,0,"pixPerHour",function(a){a=$.N(a);return(0,window.isNaN)(a)?this.i("pixPerHour"):a});$.gq(a,0,"minRowHeight",function(a){a=$.N(a);return(0,window.isNaN)(a)?this.i("minRowHeight"):a});$.gq(a,0,"resourceListWidth",function(a){a=$.so(a);return null===a?this.i("resourceListWidth"):a});$.gq(a,0,"timeLineHeight",function(a){a=$.so(a);return null===a?this.i("timeLineHeight"):a});$.gq(a,0,"defaultMinutesPerDay",function(a){return $.O(a,60)});$.gq(a,0,"currentStartDate",
function(a){return(a=$.cs(a))?a.getTime():this.i("currentStartDate")});$.gq(a,1,"splitterStroke",$.Dq);return a}();$.U(A7,R7);$.g=A7.prototype;$.g.data=function(a,b){return $.n(a)?(this.jg!==a&&(this.jg=a,$.qd(this.jd),$.K(a,$.pr)?this.oa=this.jd=a.tj():this.oa=$.K(a,$.zr)?this.jd=a.ie():(this.jd=new $.zr($.A(a)||$.z(a)?a:null,b)).ie(),$.L(this.oa,this.Id,this),this.B(524544,1)),this):this.oa};$.g.Va=function(a){return $.n(a)?(this.cb.K(a),this):this.cb};
$.g.cX=function(a){if($.n(a)){var b=$.xk(roa,a,"activity-per-resource");a="availability-per-chart"==b||"activity-per-chart"==b;b="availability-per-chart"==b||"availability-per-resource"==b;if(this.me!=a||this.Ud!=b)this.me=a,this.Ud=b,this.B(524288,1);return this}return this.me?this.Ud?"availability-per-chart":"activity-per-chart":this.Ud?"availability-per-resource":"activity-per-resource"};$.g.G$=function(a,b,c,d){return $.n(a)?(this.Ra.K.apply(this.Ra,arguments),this):this.Ra};
$.g.cz=function(a){return $.n(a)?(this.Tc.K(a),this):this.Tc};$.g.hR=function(a){return $.n(a)?(this.ka.K(a),this):this.ka};$.g.calendar=function(a){return $.n(a)?(this.be.K(a),this):this.be};$.g.Hia=function(a){return $.n(a)?(this.ga.K(a),this):this.ga};$.g.dfa=function(a){return $.n(a)?(this.eb.K(a),this):this.eb};$.g.ZY=function(a){return $.n(a)?(this.f.K(a),this):this.f};$.g.Zp=function(a){return $.n(a)?(this.D.K(a),this):this.D};$.g.Sw=function(a){return $.n(a)?(this.j.K(a),this):this.j};
$.g.Yy=function(a){if($.n(a)){if($.A(a)){for(var b=[],c=0;c<a.length;c++){var d=a[c];var e=d.levels;if($.A(e)&&e.length){for(var f=[],h=0;h<e.length;h++){var k=$.Qc(e[h]);k.unit=$.Tk(k.unit,"day",!0);k.count=$.O(k.count);f.push(k)}d={id:d.id?String(d.id):void 0,unit:$.Tk(d.unit,f[0].unit,!0),count:$.O(d.count,f[0].count,!1),unitPixSize:$.N(d.unitPixSize)||50,levels:f}}else d=null;d&&b.push(d)}b.length&&(this.Ge=b,this.hJ(this.hJ()))}return this}return $.Kl(this.Ge)};
$.g.hJ=function(a){if($.n(a)){var b=window.NaN;if($.z(a))for(var c=0;c<this.Ge.length;c++){var d=this.Ge[c];if(d.id==a){b=c;break}}(0,window.isNaN)(b)&&(b=$.O(a,0,!0));if(d=this.Ge[b])this.Gk=b,a=d,$.V(this),this.cb.ng(a.unit),this.cb.count(a.count),this.cb.l5(a.unitPixSize),this.ga.tW(a.levels),this.da(!0);return this}return(d=this.Ge[this.Gk])&&d.id?d.id:this.Gk};$.g.J$=function(a){return $.n(a)?(this.Ja.K(a),this.B(8388608,1),this):this.Ja};
$.g.Eha=function(a){return $.n(a)?(this.G.K(a),this.B(8388608,1),this):this.G};$.g.Id=function(a){$.X(a,16)&&this.B(256,1)};$.g.I$=function(a){var b=0;$.X(a,4)&&(b|=393216);$.X(a,2)&&(b|=90112);this.B(b,1)};$.g.rea=function(){this.B(4096,1)};$.g.sea=function(){this.B(8192,1)};$.g.kea=function(){this.B(4194304,1)};$.g.hea=function(){this.B(65536,1)};$.g.xea=function(){this.B(16384,1)};$.g.zea=function(){this.B(32768,1)};$.g.K$=function(){this.B(8388608,1)};$.g.Xda=function(){this.B(524288,1)};
$.g.Rda=function(){this.B(2097152,1)};$.g.Zda=function(a){var b=33554432;$.X(a,2)&&(b|=4);this.B(b,1)};$.g.wea=function(a){this.pa("currentStartDate",this.cb.nw(a.startRatio*this.ab-this.nb));this.B(262144,1);return!1};$.g.yea=function(a){this.ya=a.startRatio;this.B(1048576,1);return!1};
$.g.H$=function(a){var b=a.deltaX,c=a.deltaY,d=!1;$.wC?(b*=15,c*=15):b&&(d=!0);b=-this.nb-b;c=-this.ya*this.b-c;b=-$.Za(b,-this.ab+this.Xf.width,0);c=-$.Za(c,-this.b+this.Xf.height,0);b=this.cb.nw(b-this.nb);c/=this.b;$.V(this);b!=this.i("currentStartDate")&&(this.pa("currentStartDate",b),this.B(262144,1));c!=this.ya&&(d=!0,this.ya=c,this.B(1048576,1));d&&a.preventDefault();this.da(!0)};$.g.$q=function(a){this.$e=new B7(this,this.Ga,this.xj);this.$e.Tj(a.Vj)};
$.g.$Y=function(){if(!this.Dy){var a=this.P(),b;a&&(b=a.Ha())?(this.Dy=!0,this.U=new $.rx(b.Bl()),this.sc.ra(this.U,"mousewheel",this.H$)):this.ip||(this.ip=(0,$.pa)(this.$Y,this),(0,window.setTimeout)(this.ip,0))}};$.g.aa=function(){this.sw||(this.sw=new C7(this));return this.sw};$.g.vc=function(){return this.aa().reset()};
$.g.ob=function(){if(this.J(524288)){this.cb.tg();var a=this.oa.aa();a.reset();for(var b=0,c,d=0;a.advance();){(c=this.ba[b])?c.B(1):this.ba[b]=c=new l7(this,b);var e=c,f=this.cb;e.ob();for(var h=0;h<e.b.length;h++)for(var k=e.b[h].Im,l=0;l<k.length;l++){var m=k[l];f.Uc(m.start,m.end)}d=Math.max(d,loa(c));b++}for(b=a.Gb();b<this.ba.length;b++)$.qd(this.ba[b]);this.ba.length=a.Gb();this.cb.Cg();this.Ml=d;this.g=[];this.gp=[];this.b=0;a=this.O.length=0;e=this.ka.i("height");for(b=0;b<this.ba.length;b++)c=
this.ba[b],f=this.me?d:loa(c),f=Math.max(this.i("pixPerHour")*f/60,this.i("minRowHeight")),f=this.Ra.Jj(f),c.j&&(f+=e+1),this.b+=f,this.g.push(f),this.gp.push(this.b),a+=c.b.length,this.O.push(a);this.G.g=this.g;this.G.B(512);this.B(1179648);this.I(524288)}};
$.g.rF=function(a){a=A7.u.rF.call(this,a);a=$.Po(a,0);var b=this.i("splitterStroke");b=b?$.bc(b):0;var c=$.M(this.i("timeLineHeight"),a.height),d=$.M(this.i("resourceListWidth"),a.width),e=$.R(a.top+c,0),f=$.R(a.left+d+b,0);c=e-a.top;d=f-a.left-b;this.xc.top=a.top;this.xc.left=f;this.xc.width=a.left+a.width-f;this.xc.height=c;this.Ob.left=a.left;this.Ob.top=e;this.Ob.width=d;this.Ob.height=a.top+a.height-e;this.Bd.top=a.top;this.Bd.left=a.left;this.Bd.width=d;this.Bd.height=c;a.left=f;a.top=e;a.width=
this.xc.width;a.height=this.Ob.height;return a};
$.g.ei=function(a){this.ob();if(!this.ef()){$.kr(this.D,this.j,this.ga,this.G,this.f,this.ka);this.Ga||(this.Ga=this.La.Dd(),this.Ga.zIndex(3),this.sc.ve(this.Ga,"mousedown",this.$q),this.sc.ve(this.Ga,"touchstart",this.$q),this.Tf=$.qk(),this.Ga.clip(this.Tf),this.xj=this.Ga.rect(),this.xj.zIndex(-1),this.xj.fill($.Ul),this.xj.stroke(null),this.hc=new $.JB(function(){return $.nk()},function(a){a.clear()}),this.hc.parent(this.Ga),this.hc.zIndex(3),this.tw=this.La.path(),this.tw.zIndex(3));this.$Y();
this.J(393220)&&(this.Tf.shape(a),this.xj.uf(a),this.B(66449408));if(this.J(131072)){(0,window.isNaN)(this.i("currentStartDate"))&&(this.pa("currentStartDate",this.cb.uh()),this.cb.uO(this.i("currentStartDate")));var b=this.cb.gn(this.cb.uh()),c=this.cb.gn(this.cb.Rh());this.ab=c-b;var d=this.cb.gn(this.i("currentStartDate"));(0,window.isNaN)(d)&&(d=b);var e=d+a.width;e>c&&(a.width<this.ab?d=c-a.width:(d=b,e=b+this.ab));this.pa("currentStartDate",this.cb.nw(d));this.I(131072)}this.J(262144)&&(this.cb.uO(this.i("currentStartDate")),
this.nb=-this.cb.gn(this.cb.uh()),$.nB(this.D,this.nb/this.ab,(this.nb+a.width)/this.ab));this.J(1048576)&&(d=this.ya*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.ya=d/this.b||0,this.G.cZ(this.ya),ioa(this.f,this.ya),$.nB(this.j,this.ya,e/this.b||0),this.B(35753984));this.J(1310720)&&(this.D.ja(a),this.j.ja(this.D.qd()),d=this.j.qd(),this.dh=d.clone(),this.dh.height=a.height,this.hj=d.clone(),this.hj.width=a.width,this.I(1310720));this.J(16384)&&(this.D.P(this.La),
this.D.ja(this.dh),this.D.$(),this.I(16384));this.J(32768)&&(this.j.P(this.La),this.j.ja(this.hj),this.j.$(),this.I(32768));this.J(4194304)&&(this.eb.P(this.La),this.eb.ja(this.Bd),this.eb.$(),this.I(4194304));this.J(8192)&&(this.ga.Va(this.Va()),this.ga.P(this.La),this.ga.ja(this.xc),this.ga.$(),this.I(8192));this.J(16777216)&&(e=(d=this.i("splitterStroke"))?$.bc(d):0,e=$.R(this.Ob.$a()+e/2,e),this.tw.clear().moveTo(e,this.xc.top).lineTo(e,a.Ua()).stroke(d),this.I(16777216));this.J(8388608)&&(this.Ja.target(this.P().Ha().Bl()),
this.Ja.uf(this.lb()),this.Ja.$(),this.I(8388608));this.J(4096)&&(this.G.ja(this.Ob),this.G.P(this.La),this.G.$(),this.I(4096));this.J(65536)&&(this.f.Va(this.Va()),this.f.P(this.Ga),this.f.ja(a),hoa(this.f,this.g),this.f.$(),this.I(65536));if(this.J(35651584)){d=$.bc(this.f.i("horizontalStroke"));e=a.clone();b=this.cb.nw(0);c=this.cb.nw(a.width);var f=$.R(Math.round(a.top-this.ya*this.b),d);this.hc.clear();this.ka.clear();this.Tc.ID(this.Ga,a);this.Pg.length=0;for(var h={UL:0,B3:this.Pg},k=$.bc(this.f.i("verticalStroke")),
l=0;l<this.ba.length;l++){var m=this.g[l];var p=f;f=$.R(f+m,d);var q=$.M(this.Ra.i("top"),m);m=$.M(this.Ra.i("bottom"),m);e.top=p+d/2+q;e.height=f-d/2-m-e.top;h=this.ba[l].$(h,b,c,this.hc,e.clone(),k)}this.Tc.fi();this.ka.P(this.Ga);this.ka.ja(a);this.ka.$();this.I(35651584)}$.mr(this.D,this.j,this.ga,this.G,this.f,this.ka)}};$.g.Fl=function(a){return $.n(a)?(a=$.yk(a),a!=this.N&&(this.N=a),this):this.N};$.g.Ni=function(a){return $.n(a)?(a=$.zk(a),a!=this.Eh&&(this.Eh=a),this):this.Eh};$.g.Ii=function(){return!0};
$.g.Rg=function(){return!0};$.g.hk=function(){return!1};$.g.Rd=function(){return null};$.g.Uk=function(a){var b=this.aa(),c=+b.b;b=b.j;var d=$.bc(this.f.i("verticalStroke"));koa(this.ba[c],b,a,this.hc,d)};$.g.Xj=function(a,b){var c=this.aa(),d=+c.b;c=c.j;var e=$.bc(this.f.i("verticalStroke"));koa(this.ba[d],c,a,this.hc,e);return b};$.g.fm=$.ia;$.g.Wp=$.ia;$.g.ig=function(a){a=$.Y.prototype.ig.call(this,a);var b=$.mo(a.domTarget);b=$.N(b.index);(0,window.isNaN)(b)||(a.pointIndex=b);return a};
$.g.Ig=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.Pg[$.N(c)]);
a.pointIndex=c;var d=this.aa();if(d.select(c)){var e=+d.b;d=d.j;var f=this.ba[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.Oj=function(a,b){this.Hi((this.O[a-1]||0)+b);return this};$.g.Hi=function(a){this.Pd();$.cx(this.state,a);return this};$.g.Pd=function(a,b){this.state.Hh($.po,$.n(a)?(this.O[+a-1]||0)+ +b:window.NaN)};
$.g.select=function(a,b){this.Mi((this.O[a-1]||0)+b);return this};$.g.Mi=function(a,b){this.state.xh($.qo,a,b&&b.shiftKey?void 0:$.po);return this};$.g.ae=function(a,b){this.state.Hh($.qo,$.n(a)?(this.O[+a-1]||0)+ +b:window.NaN)};$.g.uu=function(){return!0};
$.g.xk=function(){this.qu||(this.qu=new $.rw);var a=this.aa(),b=+a.b,c=a.j,d=(this.ba[b]||null).b[c]||null;a=this.oa.aa();a.select(b);for(var e=window.Infinity,f=-window.Infinity,h=[],k=0;k<d.Im.length;k++){var l=d.Im[k];e=Math.min(e,l.start);f=Math.max(f,l.end);h.push({start:l.start,end:l.end,minutesPerDay:l.ky})}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.qu.mj([this]).Ag(a).nl(e);return $.av(this.qu,b)};$.g.Ej=function(){return!this.oa.aa().Gb()};
$.g.F=function(){var a=A7.u.F.call(this);a.data=this.oa?this.oa.F():null;a.zoomLevels=this.Yy();a.zoomLevel=this.hJ();a.timeLine=this.ga.F();a.calendar=this.be.F();a.xScale=this.cb.F();a.resourceList=this.G.F();a.horizontalScrollBar=this.D.F();a.verticalScrollBar=this.j.F();a.grid=this.f.F();a.timeTrackingMode=this.cX();a.overlay=this.Ja.F();a.cellPadding=this.Ra.F();a.conflicts=this.ka.F();$.Hq(this,R7,a);return{chart:a}};
$.g.X=function(a,b){A7.u.X.call(this,a);"cellPadding"in a&&this.Ra.K(a.cellPadding);this.Tc.ia(!!b,a.activities);this.data(a.data);this.eb.ia(!!b,a.logo);this.Ja.ia(!!b,a.overlay);this.ga.ia(!!b,a.timeLine);this.be.K(a.calendar);this.cb.K(a.xScale);this.G.K(a.resourceList);this.D.K(a.horizontalScrollBar);this.j.K(a.verticalScrollBar);this.f.K(a.grid);this.Yy(a.zoomLevels);this.hJ(a.zoomLevel);this.cX(a.timeTrackingMode);this.hR(a.conflicts);$.zq(this,R7,a)};
$.g.R=function(){$.td(this.$e,this.xj,this.jd,this.ga,this.eb,this.G,this.D,this.j,this.f,this.ba,this.be,this.cb,this.Ja,this.ka);delete this.oa;this.$e=this.xj=this.jd=this.jg=this.ga=this.eb=this.G=this.D=this.j=this.f=this.ba=this.be=this.cb=this.Ja=this.ka=null;A7.u.R.call(this)};$.H(B7,$.ag);B7.prototype.j=function(){return!0};B7.prototype.g=function(){$.n(this.zj)&&($.fl.cancelAnimationFrame(this.zj),this.Xr(0))};
B7.prototype.Hq=function(){var a=this.b.Xd();this.deltaX=-this.Ba.nb;this.f.left=-this.Ba.ab+a;this.f.width=this.Ba.ab-a;a=this.b.ud();this.deltaY=-this.Ba.ya*this.Ba.b;this.f.top=-this.Ba.b+a;this.f.height=this.Ba.b-a};B7.prototype.Rr=function(a,b){this.ga=-a;this.Ga=-b;$.n(this.zj)&&$.fl.cancelAnimationFrame(this.zj);this.zj=$.fl.requestAnimationFrame(this.Xr)};$.H(C7,$.or);$.g=C7.prototype;$.g.reset=function(){this.b=0;this.j=this.g=-1;return this};
$.g.select=function(a){this.g=a;var b=$.Na(this.Ba.O,a);if(0>b)this.b=~b;else{for(;this.Ba.O[++b]==a;);this.b=b}this.j=this.g-(this.Ba.O[this.b-1]||0);return this.b<this.Ba.O.length};$.g.advance=function(){this.g++;for(var a=this.Ba.O.length,b,c=window.NaN;this.b<a&&this.g>=(b=this.Ba.O[this.b]);)c=b,this.b++;(0,window.isNaN)(c)&&(c=this.Ba.O[this.b-1]||0);this.j=this.g-c;return this.b<a};$.g.la=function(){return this.g};$.g.Gb=function(){return this.Ba.O[this.Ba.O.length-1]||0};
$.g.get=function(){throw"Cannot use get on ActivityIterator";};$.g.o=function(){throw"Cannot use meta on ActivityIterator";};A7.prototype.At=function(){return[this]};A7.prototype.qk=function(a,b){var c=$.mx(this);return $.bp(c.headers,c.data,b)};var S7=A7.prototype;S7.getType=S7.Na;S7.data=S7.data;S7.timeTrackingMode=S7.cX;S7.cellPadding=S7.G$;S7.zoomLevels=S7.Yy;S7.zoomLevel=S7.hJ;S7.xScale=S7.Va;S7.horizontalScrollBar=S7.Zp;S7.verticalScrollBar=S7.Sw;S7.grid=S7.ZY;S7.logo=S7.dfa;S7.timeLine=S7.Hia;
S7.calendar=S7.calendar;S7.overlay=S7.J$;S7.activities=S7.cz;S7.conflicts=S7.hR;S7.resourceList=S7.Eha;S7.hover=S7.Oj;S7.hoverPoint=S7.Hi;S7.unhover=S7.Pd;S7.select=S7.select;S7.selectPoint=S7.Mi;S7.unselect=S7.ae;S7.noData=S7.Pm;$.Jp.resource=qoa;$.F("anychart.resource",qoa);}).call(this,$)}
