/*! * FullCalendar v3.1.0 * Docs & License: http://fullcalendar.io/ * (c) 2016 Adam Shaw */ (function(n){typeof define=="function"&&define.amd?define(["jquery","moment"],n):typeof exports=="object"?module.exports=n(require("jquery"),require("moment")):n(jQuery,moment)})(function(n,t){function tt(n){return fi(n,ki)}function di(n,t){t.left&&n.css({"border-left-width":1,"margin-left":t.left-1});t.right&&n.css({"border-right-width":1,"margin-right":t.right-1})}function gi(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function ot(){n("body").addClass("fc-not-allowed")}function st(){n("body").removeClass("fc-not-allowed")}function nr(t,i,r){var u=Math.floor(i/t.length),e=Math.floor(i-u*(t.length-1)),f=[],o=[],s=[],h=0;tr(t);t.each(function(i,r){var l=i===t.length-1?e:u,c=n(r).outerHeight(!0);c *").each(function(t,r){var u=n(r).outerWidth();u>i&&(i=u)}),i++,t.width(i),i}function dt(n,t){var i=n.add(t),r;return i.css({position:"relative",left:-1}),r=n.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),r}function gt(t){var r=t.css("position"),i=t.parents().filter(function(){var t=n(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return r==="fixed"||!i.length?n(t[0].ownerDocument||document):i}function ni(n,t){var i=n.offset(),r=i.left-(t?t.left:0),u=i.top-(t?t.top:0);return{left:r,right:r+n.outerWidth(),top:u,bottom:u+n.outerHeight()}}function rr(n,t){var i=n.offset(),r=ti(n),u=i.left+nt(n,"border-left-width")+r.left-(t?t.left:0),f=i.top+nt(n,"border-top-width")+r.top-(t?t.top:0);return{left:u,right:u+n[0].clientWidth,top:f,bottom:f+n[0].clientHeight}}function tf(n,t){var i=n.offset(),r=i.left+nt(n,"border-left-width")+nt(n,"padding-left")-(t?t.left:0),u=i.top+nt(n,"border-top-width")+nt(n,"padding-top")-(t?t.top:0);return{left:r,right:r+n.width(),top:u,bottom:u+n.height()}}function ti(n){var i=n.innerWidth()-n[0].clientWidth,t={left:0,right:0,top:0,bottom:n.innerHeight()-n[0].clientHeight};return rf()&&n.css("direction")=="rtl"?t.left=i:t.right=i,t}function rf(){return ht===null&&(ht=uf()),ht}function uf(){var t=n("
<\/div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),i=t.children(),r=i.offset().left>t.offset().left;return t.remove(),r}function nt(n,t){return parseFloat(n.css(t))||0}function ur(n){return n.which==1&&!n.ctrlKey}function a(n){if(n.pageX!==undefined)return n.pageX;var t=n.originalEvent.touches;if(t)return t[0].pageX}function v(n){if(n.pageY!==undefined)return n.pageY;var t=n.originalEvent.touches;if(t)return t[0].pageY}function fr(n){return/^touch/.test(n.type)}function ff(n){n.addClass("fc-unselectable").on("selectstart",ct)}function ct(n){n.preventDefault()}function ef(n){return window.addEventListener?(window.addEventListener("scroll",n,!0),!0):!1}function of(n){return window.removeEventListener?(window.removeEventListener("scroll",n,!0),!0):!1}function er(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.leftu&&i=u?(e=i.clone(),s=!0):(e=u.clone(),s=!1),r<=f?(o=r.clone(),h=!0):(o=f.clone(),h=!1),{start:e,end:o,isStart:s,isEnd:h}}function lr(n,i){return t.duration({days:n.clone().stripTime().diff(i.clone().stripTime(),"days"),ms:n.time()-i.time()})}function lf(n,i){return t.duration({days:n.clone().stripTime().diff(i.clone().stripTime(),"days")})}function ar(n,i,r){return t.duration(Math.round(n.diff(i,r,!0)),r)}function ri(n,t){for(var r,u,i=0;i=1&&w(u))break;return r}function af(n,i,r){return r!=null?r.diff(i,n,!0):t.isDuration(i)?i.as(n):i.end.diff(i.start,n,!0)}function vf(n,t,i){var r;return d(i)?(t-n)/i:(r=i.asMonths(),Math.abs(r)>=1&&w(r))?t.diff(n,"months",!0)/r:t.diff(n,"days",!0)/i.asDays()}function ui(n,t){var i,r;return d(n)||d(t)?n/t:(i=n.asMonths(),r=t.asMonths(),Math.abs(i)>=1&&w(i)&&Math.abs(r)>=1&&w(r))?i/r:n.asDays()/t.asDays()}function yf(n,i){var r;return d(n)?t.duration(n*i):(r=n.asMonths(),Math.abs(r)>=1&&w(r))?t.duration({months:r*i}):t.duration({days:n.asDays()*i})}function d(n){return Boolean(n.hours()||n.minutes()||n.seconds()||n.milliseconds())}function pf(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function vr(n){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(n)}function fi(n,t){var u={},i,r,e,o,f,s;if(t)for(i=0;i=0;o--)if(f=n[o][r],typeof f=="object")e.unshift(f);else if(f!==undefined){u[r]=f;break}e.length&&(u[r]=fi(e))}for(i=n.length-1;i>=0;i--){s=n[i];for(r in s)r in u||(u[r]=s[r])}return u}function it(n){var t=function(){};return t.prototype=n,new t}function ei(n,t){for(var i in n)pr(n,i)&&(t[i]=n[i])}function pr(n,t){return yr.call(n,t)}function wf(t){return/undefined|null|boolean|number|string/.test(n.type(t))}function vt(t,i,r){if(n.isFunction(t)&&(t=[t]),t){for(var f,u=0;u/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function oi(n){return n.replace(/&.*?;/g,"")}function yt(t){var i=[];return n.each(t,function(n,t){t!=null&&i.push(n+":"+t)}),i.join(";")}function bf(t){var i=[];return n.each(t,function(n,t){t!=null&&i.push(n+'="'+r(t)+'"')}),i.join(" ")}function wr(n){return n.charAt(0).toUpperCase()+n.slice(1)}function kf(n,t){return n-t}function w(n){return n%1==0}function g(n,t){var i=n[t];return function(){return i.apply(n,arguments)}}function rt(n,t,i){var r,u,f,o,e,s=function(){var h=+new Date-o;he;o--){if(f=gr(n,t,a,v,i[o]),f===!1)break;l=f+l}for(s=e;s<=o;s++)h+=li(n,i[s]),c+=li(t,i[s]);return(h||c)&&(p=u?c+r+h:h+r+c),y+p+l}function gr(n,t,i,r,u){var f,e;return typeof u=="string"?u:(f=u.token)&&(e=dr[f.charAt(0)],e&&i.isSame(r,e))?b(n,f):!1}function ai(n){return n in pt?pt[n]:pt[n]=nu(n)}function nu(n){for(var i=[],r=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g,t;t=r.exec(n);)t[1]?i.push(t[1]):t[2]?i.push({maybe:nu(t[2])}):t[3]?i.push({token:t[3]}):t[5]&&i.push(t[5]);return i}function h(){}function ie(n,t){var i;return pr(t,"constructor")&&(i=t.constructor),typeof i!="function"&&(i=t.constructor=function(){n.apply(this,arguments)}),i.prototype=it(n.prototype),ei(t,i.prototype),ei(n,i),i}function iu(n,t){ei(t,n.prototype)}function f(t){var r=n.Deferred(),i=r.promise(),u;return typeof t=="function"&&t(function(n){f.immediate&&(i._value=n);r.resolve(n)},function(){r.reject()}),f.immediate&&(u=i.then,i.then=function(n,t){var r=i.state();if(r==="resolved"){if(typeof n=="function")return f.resolve(n(i._value))}else if(r==="rejected"&&typeof t=="function")return t(),i;return u.call(i,n,t)}),i}function vi(n){function i(n){return new f(function(i){var r=function(){f.resolve(n()).then(i).then(function(){t.shift();t.length&&t[0]()})};t.push(r);t.length===1&&r()})}var t=[];this.add=typeof n=="number"?rt(i,n):i;this.addQuickly=i}function fu(n,t){return!n&&!t?!0:n&&t?n.component===t.component&&eu(n,t)&&eu(t,n):!1}function eu(n,t){for(var i in n)if(!/^(component|left|right|top|bottom)$/.test(i)&&n[i]!==t[i])return!1;return!0}function su(n){return{start:n.start.clone(),end:n.end?n.end.clone():null,allDay:n.allDay}}function hu(n){var t=cu(n);return t==="background"||t==="inverse-background"}function ue(n){return cu(n)==="inverse-background"}function cu(n){return e((n.source||{}).rendering,n.rendering)}function fe(n){for(var r={},i,t=0;t=n.leftCol)return!0;return!1}function he(n,t){return n.leftCol-t.leftCol}function ce(n){for(var i=[],u,t,r=0;rt.top&&n.top"),f.append(s("left")).append(s("right")).append(s("center")).append('
')):h()}function h(){f&&(f.remove(),f=e.el=null)}function s(f){var e=n('
'),s=i.layout[f];return s&&n.each(s.split(" "),function(){var i=n(),s=!0,f;n.each(this.split(","),function(f,e){var c,y,l,a,v,p,w,b,k,h;e=="title"?(i=i.add(n("

 <\/h2>")),s=!1):((c=(t.options.customButtons||{})[e])?(l=function(n){c.click&&c.click.call(h[0],n)},a="",v=c.text):(y=t.getViewSpec(e))?(l=function(){t.changeView(e)},o.push(e),a=y.buttonTextOverride,v=y.buttonTextDefault):t[e]&&(l=function(){t[e]()},a=(t.overrides.buttonText||{})[e],v=t.options.buttonText[e]),l&&(p=c?c.themeIcon:t.options.themeButtonIcons[e],w=c?c.icon:t.options.buttonIcons[e],b=a?r(a):p&&t.options.theme?"<\/span>":w&&!t.options.theme?"<\/span>":r(v),k=["fc-"+e+"-button",u+"-button",u+"-state-default"],h=n('