function homePageImage(n){n=parseInt(n);var t=$(".left-imglib img").height(),i=t/2.7,r=t-i,u=$(".img-caption strong").height()+$(".img-caption a").height();n=="900"&&($(".img-caption *").removeAttr("style"),$(".img-caption").removeAttr("style"),$(".right-imglib").height(t),$(".rlft-img img").height(i-2.5),$(".rrgt-img img").height(r-2.5));n>=960&&($(".right-imglib").removeAttr("style"),$(".rlft-img img").removeAttr("style"),$(".rrgt-img img").removeAttr("style"),$(".img-caption *").removeAttr("style"),$(".img-caption").removeAttr("style"));n<=767&&($(".rlft-img img,.rrgt-img img").height(t),$(".img-library .img-caption").height(t),$(".img-caption").each(function(){var i=$(this).children("strong").height()+$(this).children("a").height(),n=(t-i)/2;n>0&&$(this).children("strong").css("margin-top",n)}))}function adjustStyle(n){var t,u,f,e,o,s,h,i,r;n=parseInt(n);$(".edu-prof-data").last().addClass("highlight");t=$(".docAddress");n!==0&&n<=767?(u=$(".glob-coveTI-result").parent().outerWidth(),f=$(".glob-coveTI-result").parent().css("padding-left"),$(".global-cove-result").width(u),$(".global-cove-result").css("left","-"+f),$(".right-ver-cta>.socail-MediaBox").length>0&&$(".fb-box").parent().siblings().length<=0&&$(".right-ver-cta").hide(),$(".loc-srch-filter.newsEventFilter").insertAfter(".tab_helper>div"),$(".container-fluid.main-container").children("#resLet-orde").length>0&&$(".container-fluid.main-container").addClass("sing-ColLa"),n<=420?($(".docAddress").remove(),$(".doc-img-box").append(t)):($(".docAddress").remove(),$(".doc-prof-deta").append(t)),$("#LanguageList option").each(function(){var n=$(this).val();"en"!=n&&$(".MobileEnglishClick").parent().hide();"ar-ae"!=n&&$(".MobileArabicClick").parent().hide();"es-mx"!=n&&$(".MobileSpanishClick").parent().hide()}),e=$(".mobile-resOrd > .right-nav"),e.length>1&&(o=$(".mobile-resOrd > .custom-rightNav:not(:eq(0)) ul li"),$(".mobile-resOrd > .custom-rightNav:eq(0) .sidebar-navbar-collapse ul").append(o),$(".mobile-resOrd > .custom-rightNav:eq(0) .sidebar-navbar-collapse ul li").removeAttr("style"),$(".mobile-resOrd > .custom-rightNav:not(:eq(0))").hide())):($(".right-ver-cta>.socail-MediaBox").length>0&&$(".fb-box").parent().siblings().length<=0&&$(".right-ver-cta").show(),s=$(".hor-cta-actn>.hor-link-box").height(),h=(s-$(".hor-cta-actn>.hor-link-box>.cal-actBtn1").outerHeight())/2,$(".hor-cta-actn>.hor-link-box>.cal-actBtn1").css("margin-top",h),$(".docAddress").remove(),$(".doc-prof-deta").append(t),$(".container-fluid.main-container").removeClass("sing-ColLa"),i=($(".fb-box").parent().siblings(),0),r=jQuery(".res-heightjs"),i=Math.max.apply(Math,r.map(function(){return jQuery(this).height()}).get()),r.css({"min-height":"65px",height:i+"px"}),$(".allNav").hide(),$(".main-nav li").show(),$(".loc-srch-filter.newsEventFilter").insertBefore(".srch-count-results"))}function isTouchDevice(){return 1==("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}function setupSelectDropdown(){var n=document.querySelectorAll(".select-dropdown-container");Array.prototype.slice.call(n).forEach(function(n){var t=n.querySelector(".select-dropdown-value"),i=n.querySelector(".select-dropdown-options"),r=n.querySelector(".select-dropdown");r.addEventListener("click",function(){n.classList.toggle("open")});r.addEventListener("keydown",function(t){var s=t.keyCode||t.which,r,e,o;switch(s){case 13:n.classList.contains("open")?(r=n.querySelector(".select-dropdown-options > li.visiting"),r==null&&(r=n.querySelector(".select-dropdown-options > li.selected")),u(r),n.classList.remove("open")):n.classList.toggle("open");break;case 27:n.classList.remove("open");break;case 38:r=n.querySelector(".select-dropdown-options > li.visiting");r==null&&(r=n.querySelector(".select-dropdown-options > li.selected"));r.classList.remove("visiting");e=r.previousElementSibling!=null?r.previousElementSibling:r;e.classList.add("visiting");i.scrollTop=e.offsetTop-50;t.stopPropagation();t.preventDefault();break;case 40:n.classList.contains("open")||n.classList.toggle("open");r=n.querySelector(".select-dropdown-options > li.visiting");r==null&&(r=n.querySelector(".select-dropdown-options > li.selected"));r==null&&(r=n.querySelector(".select-dropdown-options > li:first-of-type"),r.classList.add("selected"));r.classList.remove("visiting");e=r.nextElementSibling!=null?r.nextElementSibling:r;e.classList.add("visiting");i.scrollTop=e.offsetTop-50;t.stopPropagation();t.preventDefault();break;case 9:n.classList.remove("open");for(o of f)o.classList.remove("visiting")}});var u=function(i,r){var u,h,o,s;for(u of f)u.classList.remove("selected"),u.classList.remove("visiting");h=i.attributes;for(o of h)t.setAttribute(o.name,o.value);t.value=i.getAttribute("data-value");r||t.dispatchEvent(new Event("change"));n.classList.remove("open");i.classList.add("selected");s=i.querySelector("a");s!=null&&s.dispatchEvent(new Event("click",{bubbles:!1}));e.innerHTML=i.getAttribute("data-text")||i.innerHTML},e=r.querySelector(".select-dropdown-text"),o=i.querySelectorAll("li"),f=Array.prototype.slice.call(o);f.forEach(function(t){t.addEventListener("click",function(){u(t);methodist.analytics.pushEvent("component_cta_clicked",{component:{interaction_item:"dropdown: "+n.getAttribute("data-name"),sc_item_id:n.getAttribute("data-id"),sc_rendering_id:n.getAttribute("data-rendering"),sc_component_name:n.getAttribute("data-name"),sc_component_cta_label:e.innerText}})});t.getAttribute("data-pre-selected")==="true"&&u(t,t.getAttribute("data-pre-selected-omit")==="true");t.removeAttribute("data-pre-selected")})});document.addEventListener("click",function(t){Array.prototype.slice.call(n).forEach(function(n){n.contains(t.target)||n.classList.remove("open")})})}if(function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?n(require("jquery")):n(window.jQuery||window.Zepto)}(function(n){var t,rt,h,o,w,c,wt,l="Close",bt="BeforeClose",ii="AfterClose",ri="BeforeAppend",ut="MarkupParse",ft="Open",kt="Change",et="mfp",u="."+et,b="mfp-ready",dt="mfp-removing",ot="mfp-prevent-close",k=function(){},st=!!window.jQuery,f=n(window),r=function(n,i){t.ev.on(et+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(et+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ht=function(i){return i===wt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),wt=i),t.currTemplate.closeBtn},ct=function(){n.magnificPopup.instance||(t=new k,t.init(),n.magnificPopup.instance=t)},ui=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==n.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in n)return!0;return!1},v,d,g,nt,lt,s,ni,vt,ti,tt,pt,it;k.prototype={constructor:k,init:function(){var i=navigator.appVersion;t.isIE7=-1!==i.indexOf("MSIE 7.");t.isIE8=-1!==i.indexOf("MSIE 8.");t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=ui();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);o=n(document);t.popupsCache={}},open:function(s){var l,a,w,k,v,d,y,g,p;if(h||(h=n(document.body)),s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,w=s.items,l=0;w.length>l;l++)if(a=w[l],a.parsed&&(a=a.el[0]),a===s.el[0]){t.index=l;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;for(t.types=[],c="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),k=n.magnificPopup.modules,l=0;k.length>l;l++)v=k[l],v=v.charAt(0).toUpperCase()+v.slice(1),t["init"+v].call(t);return i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(ut,function(n,t,i,r){i.close_replaceWith=ht(r.type)}),c+=" mfp-close-btn-in"):t.wrap.append(ht())),t.st.alignTop&&(c+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:f.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+u,function(n){27===n.keyCode&&t.close()}),f.on("resize"+u,function(){t.updateSize()}),t.st.closeOnContentClick||(c+=" mfp-auto-cursor"),c&&t.wrap.addClass(c),d=t.wH=f.height(),y={},t.fixedContentPos&&t._hasScrollBar(d)&&(g=t._getScrollbarSize(),g&&(y.marginRight=g)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):y.overflow="hidden"),p=t.st.mainClass,t.isIE7&&(p+=" mfp-ie7"),p&&t._addClassToMFP(p),t.updateItemHTML(),i("BuildControls"),n("html").css(y),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||h),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(b),t._setFocus()):t.bgOverlay.addClass(b);o.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),i(ft),s},close:function(){t.isOpen&&(i(bt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(dt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(l);r=dt+" "+b+" ";(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(r+=t.st.mainClass+" "),t._removeClassFromMFP(r),t.fixedContentPos)&&(f={marginRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ii)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;(i("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=u,t.currTemplate[r])||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);w&&w!==u.type&&t.container.removeClass("mfp-"+w+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(kt,u);w=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(ht()):t.content=n:t.content="";i(ri);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var o,u=t.items[r],e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;e.length>f;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;i||(i={});r="click.magnificPopup";i.mainEl=n;i.items?(i.isObj=!0,n.off(r).on(r,u)):(i.isObj=!1,i.delegate?n.off(r).on(r,i.delegate,u):(i.items=n,n.off(r).on(r,u)))},_openClick:function(i,r,u){var o=void 0!==u.midClick?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||2!==i.which&&!i.ctrlKey&&!i.metaKey){if(e=void 0!==u.disableOn?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(e>f.width())return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){rt!==n&&t.container.removeClass("mfp-s-"+rt);r||"loading"!==n||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);rt=n}},_checkIfClose:function(i){if(!n(i).hasClass(ot)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return(t._setFocus(),!1)},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(ut,[t,r,f]);n.each(r,function(n,i){var r,f;if(void 0===i||i===!1)return!0;(e=n.split("_"),e.length>1)?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],"replaceWith"===f?r[0]!==i[0]&&r.replaceWith(i):"img"===f?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var n=document.createElement("div");n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:k.prototype,modules:[],open:function(t,i){return ct(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;<\/button>',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return ct(),r=n(this),"string"==typeof i?"open"===i?(f=st?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),st?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};nt="inline";lt=function(){g&&(d.after(g.addClass(v)).detach(),g=null)};n.magnificPopup.registerModule(nt,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(nt);r(l+"."+nt,function(){lt()})},getInline:function(i,r){var f,u,o;return(lt(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(d||(v=f.hiddenClass,d=e(v),v="mfp-"+v),g=u.after(d).detach().removeClass(v)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});var y,p="ajax",at=function(){y&&h.removeClass(y)},gt=function(){at();t.req&&t.req.abort()};n.magnificPopup.registerModule(p,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(p);y=t.st.ajax.cursor;r(l+"."+p,gt);r("BeforeChange."+p,gt)},getAjax:function(r){y&&h.addClass(y);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),p);r.finished=!0;at();t._setFocus();setTimeout(function(){t.wrap.addClass(b)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){at();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});ni=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image");r(ft+i,function(){"image"===t.currItem.type&&n.cursor&&h.addClass(n.cursor)});r(l+i,function(){n.cursor&&h.removeClass(n.cursor);f.off("resize"+u)});r("Resize"+i,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){return u.naturalWidth>0?(t._onImageHasSize(n),void 0):(i>200&&clearInterval(s),i++,3===i?r(10):40===i?r(50):100===i&&r(500),void 0)},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,200>e?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return l.length&&(f=document.createElement("img"),f.className="mfp-img",r.el&&r.el.find("img").length&&(f.alt=r.el.find("img").attr("alt")),r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:ni(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ti=function(){return void 0===vt&&(vt=void 0!==document.createElement("p").style.MozTransform),vt};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var u,f=t.st.zoom,o=".zoom";if(f.enabled&&t.supportsTransition){var e,n,h=f.duration,c=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")};r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u)return s(),void 0;n=c(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},h)},16)}});r(bt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=h,!u){if(u=t._getItemToZoom(),!u)return;n=c(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(l+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(st?r.innerHeight():r[0].offsetHeight)-o-e},ti()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var a="iframe",fi="//about:blank",yt=function(n){if(t.currTemplate[a]){var i=t.currTemplate[a].find("iframe");i.length&&(n||(i[0].src=fi),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(a,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(a);r("BeforeChange",function(n,t,i){t!==i&&(t===a?yt():i===a&&yt(!0))});r(l+"."+a,function(){yt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return(this.id&&(u="string"==typeof this.id?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1)}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});tt=function(n){var i=t.items.length;return n>i-1?n-i:0>n?i+n:n};pt=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);return t.direction=!0,u&&u.enabled?(c+=" mfp-gallery",r(ft+i,function(){u.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return(t.next(),!1)});o.on("keydown"+i,function(n){37===n.keyCode?t.prev():39===n.keyCode&&t.next()})}),r("UpdateStatus"+i,function(n,i){i.text&&(i.text=pt(i.text,t.currItem.index,t.items.length))}),r(ut+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?pt(u.tCounter,f.index,e):""}),r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(ot),r=t.arrowRight=n(o.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(ot),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}}),r(kt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)}),r(l+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0;t.index=tt(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=tt(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;(t.direction?u:r)>=n;n++)t._preloadItem(t.index+n);for(n=1;(t.direction?r:u)>=n;n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=tt(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);"image"===u.type&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});it="retina";n.magnificPopup.registerModule(it,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+it,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/n,width:"100%"})}),r("ElementParse."+it,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var s,l=n(this),a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){r();h||c>1||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}();ct()}),function(n){var t={init:function(i){var r=n.extend({items:1,itemsOnPage:1,pages:0,displayedPages:3,currentPage:0,hrefTextPrefix:"#page-",hrefTextSuffix:"",prevText:"Previous",nextText:"Next",ellipseText:"…",cssStyle:"light-theme",labelMap:[],selectOnClick:!0,nextAtFront:!1,invertPageOrder:!1,useStartEdge:!0,useEndEdge:!0,onPageClick:function(){},onInit:function(){}},i||{}),u=this;return r.pages=r.pages?r.pages:Math.ceil(r.items/r.itemsOnPage)?Math.ceil(r.items/r.itemsOnPage):1,r.currentPage=r.currentPage?r.currentPage-1:r.invertPageOrder?r.pages-1:0,r.halfDisplayed=r.displayedPages/2,this.each(function(){u.addClass(r.cssStyle+" simple-pagination").data("pagination",r);t._draw.call(u)}),r.onInit(),this},selectPage:function(n){return t._selectPage.call(this,n-1),this},prevPage:function(){var n=this.data("pagination");return n.invertPageOrder?n.currentPage<n.pages-1&&t._selectPage.call(this,n.currentPage+1):n.currentPage>0&&t._selectPage.call(this,n.currentPage-1),this},nextPage:function(){var n=this.data("pagination");return n.invertPageOrder?n.currentPage>0&&t._selectPage.call(this,n.currentPage-1):n.currentPage<n.pages-1&&t._selectPage.call(this,n.currentPage+1),this},getPagesCount:function(){return this.data("pagination").pages},getCurrentPage:function(){return this.data("pagination").currentPage+1},destroy:function(){return this.empty(),this},drawPage:function(n){var i=this.data("pagination");return i.currentPage=n-1,this.data("pagination",i),t._draw.call(this),this},redraw:function(){return t._draw.call(this),this},disable:function(){var n=this.data("pagination");return n.disabled=!0,this.data("pagination",n),t._draw.call(this),this},enable:function(){var n=this.data("pagination");return n.disabled=!1,this.data("pagination",n),t._draw.call(this),this},updateItems:function(n){var i=this.data("pagination");i.items=n;i.pages=t._getPages(i);this.data("pagination",i);t._draw.call(this)},updateItemsOnPage:function(n){var i=this.data("pagination");return i.itemsOnPage=n,i.pages=t._getPages(i),this.data("pagination",i),t._selectPage.call(this,0),this},_draw:function(){var i=this.data("pagination"),r=t._getInterval(i),u,s,f,o,e;if(t.destroy.call(this),s=typeof this.prop=="function"?this.prop("tagName"):this.attr("tagName"),f=s==="UL"?this:n('<ul class="pagination list-inline"><\/ul>').appendTo(this),i.prevText&&t._appendItem.call(this,i.invertPageOrder?i.currentPage+1:i.currentPage-1,{text:i.prevText,classes:"prev"}),i.nextText&&i.nextAtFront&&t._appendItem.call(this,i.invertPageOrder?i.currentPage-1:i.currentPage+1,{text:i.nextText,classes:"next"}),i.invertPageOrder){if(r.end<i.pages&&i.edges>0){if(i.useStartEdge)for(o=Math.max(i.pages-i.edges,r.end),u=i.pages-1;u>=o;u--)t._appendItem.call(this,u);i.pages-i.edges>r.end&&i.pages-i.edges-r.end!=1?f.append('<li class="disabled"><a class="ellipse">'+i.ellipseText+"<\/a><\/li>"):i.pages-i.edges-r.end==1&&t._appendItem.call(this,r.end)}}else if(r.start>0&&i.edges>0){if(i.useStartEdge)for(e=Math.min(i.edges,r.start),u=0;u<e;u++)t._appendItem.call(this,u);i.edges<r.start&&r.start-i.edges!=1?f.append('<li class="disabled"><a class="ellipse">'+i.ellipseText+"<\/a><\/li>"):r.start-i.edges==1&&t._appendItem.call(this,i.edges)}if(i.invertPageOrder)for(u=r.end-1;u>=r.start;u--)t._appendItem.call(this,u);else for(u=r.start;u<r.end;u++)t._appendItem.call(this,u);if(i.invertPageOrder){if(r.start>0&&i.edges>0&&(i.edges<r.start&&r.start-i.edges!=1?f.append('<li class="disabled"><a class="ellipse">'+i.ellipseText+"<\/a><\/li>"):r.start-i.edges==1&&t._appendItem.call(this,i.edges),i.useEndEdge))for(e=Math.min(i.edges,r.start),u=e-1;u>=0;u--)t._appendItem.call(this,u)}else if(r.end<i.pages&&i.edges>0&&(i.pages-i.edges>r.end&&i.pages-i.edges-r.end!=1?f.append('<li class="disabled"><a class="ellipse">'+i.ellipseText+"<\/a><\/li>"):i.pages-i.edges-r.end==1&&t._appendItem.call(this,r.end),i.useEndEdge))for(o=Math.max(i.pages-i.edges,r.end),u=o;u<i.pages;u++)t._appendItem.call(this,u);i.nextText&&!i.nextAtFront&&t._appendItem.call(this,i.invertPageOrder?i.currentPage-1:i.currentPage+1,{text:i.nextText,classes:"next"})},_getPages:function(n){var t=Math.ceil(n.items/n.itemsOnPage);return t||1},_getInterval:function(n){return{start:Math.ceil(n.currentPage>n.halfDisplayed?Math.max(Math.min(n.currentPage-n.halfDisplayed,n.pages-n.displayedPages),0):0),end:Math.ceil(n.currentPage>n.halfDisplayed?Math.min(n.currentPage+n.halfDisplayed,n.pages):Math.min(n.displayedPages,n.pages))}},_appendItem:function(i,r){var s=this,f,e,u=s.data("pagination"),o=n("<li><\/li>"),h=s.find("ul");i=i<0?0:i<u.pages?i:u.pages-1;f={text:i+1,classes:""};u.labelMap.length&&u.labelMap[i]&&(f.text=u.labelMap[i]);f=n.extend(f,r||{});i==u.currentPage||u.disabled?(u.disabled?o.addClass("disabled"):o.addClass("active"),e=n('<a class="current">'+f.text+"<\/a>")):(e=n('<a href="'+u.hrefTextPrefix+(i+1)+u.hrefTextSuffix+'" class="page-link">'+f.text+"<\/a>"),e.click(function(n){return t._selectPage.call(s,i,n)}));f.classes&&e.addClass(f.classes);o.append(e);h.length?h.append(o):s.append(o)},_selectPage:function(n,i){var r=this.data("pagination");r.currentPage=n;r.selectOnClick&&t._draw.call(this);return r.onPageClick(n+1,i)}};n.fn.pagination=function(i){if(t[i]&&i.charAt(0)!="_")return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.pagination");else return t.init.apply(this,arguments)}}(jQuery),!function(n){var t=!0;n.flexslider=function(i,r){var u=n(i);void 0===r.rtl&&"rtl"==n("html").attr("dir")&&(r.rtl=!0);u.vars=n.extend({},n.flexslider.defaults,r);var e=u.vars.namespace,y=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,p=("ontouchstart"in window||y||window.DocumentTouch&&document instanceof DocumentTouch)&&u.vars.touch,v="click touchend MSPointerUp keyup",h="",w,c="vertical"===u.vars.direction,s=u.vars.reverse,o=u.vars.itemWidth>0,l="fade"===u.vars.animation,a=""!==u.vars.asNavFor,f={};n.data(i,"flexslider",u);f={init:function(){u.animating=!1;u.currentSlide=parseInt(u.vars.startAt?u.vars.startAt:0,10);isNaN(u.currentSlide)&&(u.currentSlide=0);u.animatingTo=u.currentSlide;u.atEnd=0===u.currentSlide||u.currentSlide===u.last;u.containerSelector=u.vars.selector.substr(0,u.vars.selector.search(" "));u.slides=n(u.vars.selector,u);u.container=n(u.containerSelector,u);u.count=u.slides.length;u.syncExists=n(u.vars.sync).length>0;"slide"===u.vars.animation&&(u.vars.animation="swing");u.prop=c?"top":u.vars.rtl?"marginRight":"marginLeft";u.args={};u.manualPause=!1;u.stopped=!1;u.started=!1;u.startTimeout=null;u.transitions=!u.vars.video&&!l&&u.vars.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(void 0!==i.style[n[t]])return u.pfx=n[t].replace("Perspective","").toLowerCase(),u.prop="-"+u.pfx+"-transform",!0;return!1}();u.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1;u.ensureAnimationEnd="";""!==u.vars.controlsContainer&&(u.controlsContainer=n(u.vars.controlsContainer).length>0&&n(u.vars.controlsContainer));""!==u.vars.manualControls&&(u.manualControls=n(u.vars.manualControls).length>0&&n(u.vars.manualControls));""!==u.vars.customDirectionNav&&(u.customDirectionNav=2===n(u.vars.customDirectionNav).length&&n(u.vars.customDirectionNav));u.vars.randomize&&(u.slides.sort(function(){return Math.round(Math.random())-.5}),u.container.empty().append(u.slides));u.doMath();u.setup("init");u.vars.controlNav&&f.controlNav.setup();u.vars.directionNav&&f.directionNav.setup();u.vars.keyboard&&(1===n(u.containerSelector).length||u.vars.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;u.animating||39!==t&&37!==t||(i=u.vars.rtl?37===t?u.getTarget("next"):39===t&&u.getTarget("prev"):39===t?u.getTarget("next"):37===t&&u.getTarget("prev"),u.flexAnimate(i,u.vars.pauseOnAction))});u.vars.mousewheel&&u.bind("mousewheel",function(n,t){n.preventDefault();var i=t<0?u.getTarget("next"):u.getTarget("prev");u.flexAnimate(i,u.vars.pauseOnAction)});u.vars.pausePlay&&f.pausePlay.setup();u.vars.slideshow&&u.vars.pauseInvisible&&f.pauseInvisible.init();u.vars.slideshow&&(u.vars.pauseOnHover&&u.hover(function(){u.manualPlay||u.manualPause||u.pause()},function(){u.manualPause||u.manualPlay||u.stopped||u.play()}),u.vars.pauseInvisible&&f.pauseInvisible.isHidden()||(u.vars.initDelay>0?u.startTimeout=setTimeout(u.play,u.vars.initDelay):u.play()));a&&f.asNav.setup();p&&u.vars.touch&&f.touch();(!l||l&&u.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",f.resize);u.find("img").attr("draggable","false");setTimeout(function(){u.vars.start(u)},200)},asNav:{setup:function(){u.asNav=!0;u.animatingTo=Math.floor(u.currentSlide/u.move);u.currentItem=u.currentSlide;u.slides.removeClass(e+"active-slide").eq(u.currentItem).addClass(e+"active-slide");y?(i._slider=u,u.slides.each(function(){var t=this;t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",function(n){n.preventDefault();n.currentTarget._gesture&&n.currentTarget._gesture.addPointer(n.pointerId)},!1);t.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=n(this),r=i.index();n(u.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(u.direction=u.currentItem<r?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction,!1,!0,!0))})})):u.slides.on(v,function(t){t.preventDefault();var i=n(this),r=i.index(),f;f=u.vars.rtl?-1*(i.offset().right-n(u).scrollLeft()):i.offset().left-n(u).scrollLeft();f<=0&&i.hasClass(e+"active-slide")?u.flexAnimate(u.getTarget("prev"),!0):n(u.vars.asNavFor).data("flexslider").animating||i.hasClass(e+"active-slide")||(u.direction=u.currentItem<r?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){u.manualControls?f.controlNav.setupManual():f.controlNav.setupPaging()},setupPaging:function(){var l="thumbnails"===u.vars.controlNav?"control-thumbs":"control-paging",c=1,o,t,i,s,r;if(u.controlNavScaffold=n('<ol class="'+e+"control-nav "+e+l+'"><\/ol>'),u.pagingCount>1)for(i=0;i<u.pagingCount;i++)t=u.slides.eq(i),void 0===t.attr("data-thumb-alt")&&t.attr("data-thumb-alt",""),s=""!==t.attr("data-thumb-alt")?s=' alt="'+t.attr("data-thumb-alt")+'"':"",(o="thumbnails"===u.vars.controlNav?'<img src="'+t.attr("data-thumb")+'"'+s+"/>":'<a href="#">'+c+"<\/a>","thumbnails"===u.vars.controlNav&&!0===u.vars.thumbCaptions)&&(r=t.attr("data-thumbcaption"),""!==r&&void 0!==r&&(o+='<span class="'+e+'caption">'+r+"<\/span>")),u.controlNavScaffold.append("<li>"+o+"<\/li>"),c++;u.controlsContainer?n(u.controlsContainer).append(u.controlNavScaffold):u.append(u.controlNavScaffold);f.controlNav.set();f.controlNav.active();u.controlNavScaffold.delegate("a, img",v,function(t){if(t.preventDefault(),""===h||h===t.type){var i=n(this),r=u.controlNav.index(i);i.hasClass(e+"active")||(u.direction=r>u.currentSlide?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction))}""===h&&(h=t.type);f.setToClearWatchedEvent()})},setupManual:function(){u.controlNav=u.manualControls;f.controlNav.active();u.controlNav.bind(v,function(t){if(t.preventDefault(),""===h||h===t.type){var i=n(this),r=u.controlNav.index(i);i.hasClass(e+"active")||(u.direction=r>u.currentSlide?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction))}""===h&&(h=t.type);f.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===u.vars.controlNav?"img":"a";u.controlNav=n("."+e+"control-nav li "+t,u.controlsContainer?u.controlsContainer:u)},active:function(){u.controlNav.removeClass(e+"active").eq(u.animatingTo).addClass(e+"active")},update:function(t,i){u.pagingCount>1&&"add"===t?u.controlNavScaffold.append(n('<li><a href="#">'+u.count+"<\/a><\/li>")):1===u.pagingCount?u.controlNavScaffold.find("li").remove():u.controlNav.eq(i).closest("li").remove();f.controlNav.set();u.pagingCount>1&&u.pagingCount!==u.controlNav.length?u.update(i,t):f.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+e+'direction-nav"><li class="'+e+'nav-prev"><a class="'+e+'prev" href="#">'+u.vars.prevText+'<\/a><\/li><li class="'+e+'nav-next"><a class="'+e+'next" href="#">'+u.vars.nextText+"<\/a><\/li><\/ul>");u.customDirectionNav?u.directionNav=u.customDirectionNav:u.controlsContainer?(n(u.controlsContainer).append(t),u.directionNav=n("."+e+"direction-nav li a",u.controlsContainer)):(u.append(t),u.directionNav=n("."+e+"direction-nav li a",u));f.directionNav.update();u.directionNav.bind(v,function(t){t.preventDefault();var i;""!==h&&h!==t.type||(i=n(this).hasClass(e+"next")?u.getTarget("next"):u.getTarget("prev"),u.flexAnimate(i,u.vars.pauseOnAction));""===h&&(h=t.type);f.setToClearWatchedEvent()})},update:function(){var n=e+"disabled";1===u.pagingCount?u.directionNav.addClass(n).attr("tabindex","-1"):u.vars.animationLoop?u.directionNav.removeClass(n).removeAttr("tabindex"):0===u.animatingTo?u.directionNav.removeClass(n).filter("."+e+"prev").addClass(n).attr("tabindex","-1"):u.animatingTo===u.last?u.directionNav.removeClass(n).filter("."+e+"next").addClass(n).attr("tabindex","-1"):u.directionNav.removeClass(n).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('<div class="'+e+'pauseplay"><a href="#"><\/a><\/div>');u.controlsContainer?(u.controlsContainer.append(t),u.pausePlay=n("."+e+"pauseplay a",u.controlsContainer)):(u.append(t),u.pausePlay=n("."+e+"pauseplay a",u));f.pausePlay.update(u.vars.slideshow?e+"pause":e+"play");u.pausePlay.bind(v,function(t){t.preventDefault();""!==h&&h!==t.type||(n(this).hasClass(e+"pause")?(u.manualPause=!0,u.manualPlay=!1,u.pause()):(u.manualPause=!1,u.manualPlay=!0,u.play()));""===h&&(h=t.type);f.setToClearWatchedEvent()})},update:function(n){"play"===n?u.pausePlay.removeClass(e+"pause").addClass(e+"play").html(u.vars.playText):u.pausePlay.removeClass(e+"play").addClass(e+"pause").html(u.vars.pauseText)}},touch:function(){function g(n){n.stopPropagation();u.animating?n.preventDefault():(u.pause(),i._gesture.addPointer(n.pointerId),r=0,t=c?u.h:u.w,e=Number(new Date),f=o&&s&&u.animatingTo===u.last?0:o&&s?u.limit-(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo:o&&u.currentSlide===u.last?u.limit:o?(u.itemW+u.vars.itemMargin)*u.move*u.currentSlide:s?(u.last-u.currentSlide+u.cloneOffset)*t:(u.currentSlide+u.cloneOffset)*t)}function nt(u){var o,s,a;if(u.stopPropagation(),o=u.target._slider,o){if(s=-u.translationX,a=-u.translationY,r+=c?a:s,n=(o.vars.rtl?-1:1)*r,h=c?Math.abs(r)<Math.abs(-s):Math.abs(r)<Math.abs(-a),u.detail===u.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){i._gesture.stop()});(!h||Number(new Date)-e>500)&&(u.preventDefault(),!l&&o.transitions&&(o.vars.animationLoop||(n=r/(0===o.currentSlide&&r<0||o.currentSlide===o.last&&r>0?Math.abs(r)/t+2:1)),o.setProps(f+n,"setTouch")))}}function tt(i){var u,o,c;i.stopPropagation();u=i.target._slider;u&&(u.animatingTo!==u.currentSlide||h||null===n||(o=s?-n:n,c=o>0?u.getTarget("next"):u.getTarget("prev"),u.canAdvance(c)&&(Number(new Date)-e<550&&Math.abs(o)>50||Math.abs(o)>t/2)?u.flexAnimate(c,u.vars.pauseOnAction):l||u.flexAnimate(u.currentSlide,u.vars.pauseOnAction,!0)),p=null,w=null,n=null,f=null,r=0)}var p,w,f,t,n,e,d,b,k,h=!1,a=0,v=0,r=0;y?(i.style.msTouchAction="none",i._gesture=new MSGesture,i._gesture.target=i,i.addEventListener("MSPointerDown",g,!1),i._slider=u,i.addEventListener("MSGestureChange",nt,!1),i.addEventListener("MSGestureEnd",tt,!1)):(d=function(n){u.animating?n.preventDefault():(window.navigator.msPointerEnabled||1===n.touches.length)&&(u.pause(),t=c?u.h:u.w,e=Number(new Date),a=n.touches[0].pageX,v=n.touches[0].pageY,f=o&&s&&u.animatingTo===u.last?0:o&&s?u.limit-(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo:o&&u.currentSlide===u.last?u.limit:o?(u.itemW+u.vars.itemMargin)*u.move*u.currentSlide:s?(u.last-u.currentSlide+u.cloneOffset)*t:(u.currentSlide+u.cloneOffset)*t,p=c?v:a,w=c?a:v,i.addEventListener("touchmove",b,!1),i.addEventListener("touchend",k,!1))},b=function(i){a=i.touches[0].pageX;v=i.touches[0].pageY;n=c?p-v:(u.vars.rtl?-1:1)*(p-a);h=c?Math.abs(n)<Math.abs(a-w):Math.abs(n)<Math.abs(v-w);(!h||Number(new Date)-e>500)&&(i.preventDefault(),!l&&u.transitions&&(u.vars.animationLoop||(n/=0===u.currentSlide&&n<0||u.currentSlide===u.last&&n>0?Math.abs(n)/t+2:1),u.setProps(f+n,"setTouch")))},k=function(){if(i.removeEventListener("touchmove",b,!1),u.animatingTo===u.currentSlide&&!h&&null!==n){var r=s?-n:n,o=r>0?u.getTarget("next"):u.getTarget("prev");u.canAdvance(o)&&(Number(new Date)-e<550&&Math.abs(r)>50||Math.abs(r)>t/2)?u.flexAnimate(o,u.vars.pauseOnAction):l||u.flexAnimate(u.currentSlide,u.vars.pauseOnAction,!0)}i.removeEventListener("touchend",k,!1);p=null;w=null;n=null;f=null},i.addEventListener("touchstart",d,!1))},resize:function(){!u.animating&&u.is(":visible")&&(o||u.doMath(),l?f.smoothHeight():o?(u.slides.width(u.computedW),u.update(u.pagingCount),u.setProps()):c?(u.viewport.height(u.h),u.setProps(u.h,"setTotal")):(u.vars.smoothHeight&&f.smoothHeight(),u.newSlides.width(u.computedW),u.setProps(u.computedW,"setTotal")))},smoothHeight:function(n){if(!c||l){var t=l?u:u.viewport,i=l?8:0;n?t.animate({height:u.slides.eq(u.animatingTo).innerHeight()+i},n):t.innerHeight(u.slides.eq(u.animatingTo).innerHeight())}},sync:function(t){var i=n(u.vars.sync).data("flexslider"),r=u.animatingTo;switch(t){case"animate":i.flexAnimate(r,u.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=n(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var n=f.pauseInvisible.getHiddenProp(),t;n&&(t=n.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(t,function(){f.pauseInvisible.isHidden()?u.startTimeout?clearTimeout(u.startTimeout):u.pause():u.started?u.play():u.vars.initDelay>0?setTimeout(u.play,u.vars.initDelay):u.play()}))},isHidden:function(){var n=f.pauseInvisible.getHiddenProp();return!!n&&document[n]},getHiddenProp:function(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(w);w=setTimeout(function(){h=""},3e3)}};u.flexAnimate=function(t,i,r,h,v){var w,y,d,b,k;if(u.vars.animationLoop||t===u.currentSlide||(u.direction=t>u.currentSlide?"next":"prev"),a&&1===u.pagingCount&&(u.direction=u.currentItem<t?"next":"prev"),!u.animating&&(u.canAdvance(t,v)||r)&&u.is(":visible")){if(a&&h){if(w=n(u.vars.asNavFor).data("flexslider"),u.atEnd=0===t||t===u.count-1,w.flexAnimate(t,!0,!1,!0,v),u.direction=u.currentItem<t?"next":"prev",w.direction=u.direction,Math.ceil((t+1)/u.visible)-1===u.currentSlide||0===t)return u.currentItem=t,u.slides.removeClass(e+"active-slide").eq(t).addClass(e+"active-slide"),!1;u.currentItem=t;u.slides.removeClass(e+"active-slide").eq(t).addClass(e+"active-slide");t=Math.floor(t/u.visible)}(u.animating=!0,u.animatingTo=t,i&&u.pause(),u.vars.before(u),u.syncExists&&!v&&f.sync("animate"),u.vars.controlNav&&f.controlNav.active(),o||u.slides.removeClass(e+"active-slide").eq(t).addClass(e+"active-slide"),u.atEnd=0===t||t===u.last,u.vars.directionNav&&f.directionNav.update(),t===u.last&&(u.vars.end(u),u.vars.animationLoop||u.pause()),l)?p?(u.slides.eq(u.currentSlide).css({opacity:0,zIndex:1}),u.slides.eq(t).css({opacity:1,zIndex:2}),u.wrapup(y)):(u.slides.eq(u.currentSlide).css({zIndex:1}).animate({opacity:0},u.vars.animationSpeed,u.vars.easing),u.slides.eq(t).css({zIndex:2}).animate({opacity:1},u.vars.animationSpeed,u.vars.easing,u.wrapup)):(y=c?u.slides.filter(":first").height():u.computedW,o?(d=u.vars.itemMargin,k=(u.itemW+d)*u.move*u.animatingTo,b=k>u.limit&&1!==u.visible?u.limit:k):b=0===u.currentSlide&&t===u.count-1&&u.vars.animationLoop&&"next"!==u.direction?s?(u.count+u.cloneOffset)*y:0:u.currentSlide===u.last&&0===t&&u.vars.animationLoop&&"prev"!==u.direction?s?0:(u.count+1)*y:s?(u.count-1-t+u.cloneOffset)*y:(t+u.cloneOffset)*y,u.setProps(b,"",u.vars.animationSpeed),u.transitions?(u.vars.animationLoop&&u.atEnd||(u.animating=!1,u.currentSlide=u.animatingTo),u.container.unbind("webkitTransitionEnd transitionend"),u.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(u.ensureAnimationEnd);u.wrapup(y)}),clearTimeout(u.ensureAnimationEnd),u.ensureAnimationEnd=setTimeout(function(){u.wrapup(y)},u.vars.animationSpeed+100)):u.container.animate(u.args,u.vars.animationSpeed,u.vars.easing,function(){u.wrapup(y)}));u.vars.smoothHeight&&f.smoothHeight(u.vars.animationSpeed)}};u.wrapup=function(n){l||o||(0===u.currentSlide&&u.animatingTo===u.last&&u.vars.animationLoop?u.setProps(n,"jumpEnd"):u.currentSlide===u.last&&0===u.animatingTo&&u.vars.animationLoop&&u.setProps(n,"jumpStart"));u.animating=!1;u.currentSlide=u.animatingTo;u.vars.after(u)};u.animateSlides=function(){!u.animating&&t&&u.flexAnimate(u.getTarget("next"))};u.pause=function(){clearInterval(u.animatedSlides);u.animatedSlides=null;u.playing=!1;u.vars.pausePlay&&f.pausePlay.update("play");u.syncExists&&f.sync("pause")};u.play=function(){u.playing&&clearInterval(u.animatedSlides);u.animatedSlides=u.animatedSlides||setInterval(u.animateSlides,u.vars.slideshowSpeed);u.started=u.playing=!0;u.vars.pausePlay&&f.pausePlay.update("pause");u.syncExists&&f.sync("play")};u.stop=function(){u.pause();u.stopped=!0};u.canAdvance=function(n,t){var i=a?u.pagingCount-1:u.last;return!!t||!(!a||u.currentItem!==u.count-1||0!==n||"prev"!==u.direction)||(!a||0!==u.currentItem||n!==u.pagingCount-1||"next"===u.direction)&&!(n===u.currentSlide&&!a)&&(!!u.vars.animationLoop||(!u.atEnd||0!==u.currentSlide||n!==i||"next"===u.direction)&&(!u.atEnd||u.currentSlide!==i||0!==n||"next"!==u.direction))};u.getTarget=function(n){return u.direction=n,"next"===n?u.currentSlide===u.last?0:u.currentSlide+1:0===u.currentSlide?u.last:u.currentSlide-1};u.setProps=function(n,t,i){var r=function(){var i=n||(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo;return function(){if(o)return"setTouch"===t?n:s&&u.animatingTo===u.last?0:s?u.limit-(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo:u.animatingTo===u.last?u.limit:i;switch(t){case"setTotal":return s?(u.count-1-u.currentSlide+u.cloneOffset)*n:(u.currentSlide+u.cloneOffset)*n;case"setTouch":return n;case"jumpEnd":return s?n:u.count*n;case"jumpStart":return s?u.count*n:n;default:return n}}()*(u.vars.rtl?1:-1)+"px"}();u.transitions&&(r=u.isFirefox?c?"translate3d(0,"+r+",0)":"translate3d("+parseInt(r)+"px,0,0)":c?"translate3d(0,"+r+",0)":"translate3d("+(u.vars.rtl?-1:1)*parseInt(r)+"px,0,0)",i=void 0!==i?i/1e3+"s":"0s",u.container.css("-"+u.pfx+"-transition-duration",i),u.container.css("transition-duration",i));u.args[u.prop]=r;(u.transitions||void 0===i)&&u.container.css(u.args);u.container.css("transform",r)};u.setup=function(t){if(l)u.vars.rtl?u.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):u.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(p?u.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+u.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(u.currentSlide).css({opacity:1,zIndex:2}):0==u.vars.fadeFirstSlide?u.slides.css({opacity:0,display:"block",zIndex:1}).eq(u.currentSlide).css({zIndex:2}).css({opacity:1}):u.slides.css({opacity:0,display:"block",zIndex:1}).eq(u.currentSlide).css({zIndex:2}).animate({opacity:1},u.vars.animationSpeed,u.vars.easing)),u.vars.smoothHeight&&f.smoothHeight();else{var i,r;"init"===t&&(u.viewport=n('<div class="'+e+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(u).append(u.container),u.cloneCount=0,u.cloneOffset=0,s&&(r=n.makeArray(u.slides).reverse(),u.slides=n(r),u.container.empty().append(u.slides)));u.vars.animationLoop&&!o&&(u.cloneCount=2,u.cloneOffset=1,"init"!==t&&u.container.find(".clone").remove(),u.container.append(f.uniqueID(u.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(f.uniqueID(u.slides.last().clone().addClass("clone")).attr("aria-hidden","true")));u.newSlides=n(u.vars.selector,u);i=s?u.count-1-u.currentSlide+u.cloneOffset:u.currentSlide+u.cloneOffset;c&&!o?(u.container.height(200*(u.count+u.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){u.newSlides.css({display:"block"});u.doMath();u.viewport.height(u.h);u.setProps(i*u.h,"init")},"init"===t?100:0)):(u.container.width(200*(u.count+u.cloneCount)+"%"),u.setProps(i*u.computedW,"init"),setTimeout(function(){u.doMath();u.vars.rtl&&u.isFirefox?u.newSlides.css({width:u.computedW,marginRight:u.computedM,float:"right",display:"block"}):u.newSlides.css({width:u.computedW,marginRight:u.computedM,float:"left",display:"block"});u.vars.smoothHeight&&f.smoothHeight()},"init"===t?100:0))}o||u.slides.removeClass(e+"active-slide").eq(u.currentSlide).addClass(e+"active-slide");u.vars.init(u)};u.doMath=function(){var r=u.slides.first(),n=u.vars.itemMargin,t=u.vars.minItems,i=u.vars.maxItems;u.w=void 0===u.viewport?u.width():u.viewport.width();u.isFirefox&&(u.w=u.width());u.h=r.height();u.boxPadding=r.outerWidth()-r.width();o?(u.itemT=u.vars.itemWidth+n,u.itemM=n,u.minW=t?t*u.itemT:u.w,u.maxW=i?i*u.itemT-n:u.w,u.itemW=u.minW>u.w?(u.w-n*(t-1))/t:u.maxW<u.w?(u.w-n*(i-1))/i:u.vars.itemWidth>u.w?u.w:u.vars.itemWidth,u.visible=Math.floor(u.w/u.itemW),u.move=u.vars.move>0&&u.vars.move<u.visible?u.vars.move:u.visible,u.pagingCount=Math.ceil((u.count-u.visible)/u.move+1),u.last=u.pagingCount-1,u.limit=1===u.pagingCount?0:u.vars.itemWidth>u.w?u.itemW*(u.count-1)+n*(u.count-1):(u.itemW+n)*u.count-u.w-n):(u.itemW=u.w,u.itemM=n,u.pagingCount=u.count,u.last=u.count-1);u.computedW=u.itemW-u.boxPadding;u.computedM=u.itemM};u.update=function(n,t){u.doMath();o||(n<u.currentSlide?u.currentSlide+=1:n<=u.currentSlide&&0!==n&&(u.currentSlide-=1),u.animatingTo=u.currentSlide);u.vars.controlNav&&!u.manualControls&&("add"===t&&!o||u.pagingCount>u.controlNav.length?f.controlNav.update("add"):("remove"===t&&!o||u.pagingCount<u.controlNav.length)&&(o&&u.currentSlide>u.last&&(u.currentSlide-=1,u.animatingTo-=1),f.controlNav.update("remove",u.last)));u.vars.directionNav&&f.directionNav.update()};u.addSlide=function(t,i){var r=n(t);u.count+=1;u.last=u.count-1;c&&s?void 0!==i?u.slides.eq(u.count-i).after(r):u.container.prepend(r):void 0!==i?u.slides.eq(i).before(r):u.container.append(r);u.update(i,"add");u.slides=n(u.vars.selector+":not(.clone)",u);u.setup();u.vars.added(u)};u.removeSlide=function(t){var i=isNaN(t)?u.slides.index(n(t)):t;u.count-=1;u.last=u.count-1;isNaN(t)?n(t,u.slides).remove():c&&s?u.slides.eq(u.last).remove():u.slides.eq(t).remove();u.doMath();u.update(i,"remove");u.slides=n(u.vars.selector+":not(.clone)",u);u.setup();u.vars.removed(u)};f.init()};n(window).blur(function(){t=!1}).focus(function(){t=!0});n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1};n.fn.flexslider=function(t){if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);1===r.length&&!1===t.allowOneSlide||0===r.length?(r.fadeIn(400),t.start&&t.start(i)):void 0===i.data("flexslider")&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:"number"==typeof t&&i.flexAnimate(t,!0)}}}(jQuery),!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return kf.apply(null,arguments)}function nt(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function ui(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function s(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function cu(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;for(var t in n)if(s(n,t))return;return 1}function b(n){return void 0===n}function ht(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function di(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function df(n,t){for(var r=[],u=n.length,i=0;i<u;++i)r.push(t(n[i],i));return r}function dt(n,t){for(var i in t)s(t,i)&&(n[i]=t[i]);return s(t,"toString")&&(n.toString=t.toString),s(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ut(n,t,i,r){return ge(n,t,i,r,!0).utc()}function u(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function lu(n){var t,r,i=n._d&&!isNaN(n._d.getTime());return i&&(t=u(n),r=ns.call(t.parsedDateParts,function(n){return null!=n}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),n._strict)&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n)?i:(n._isValid=i,n._isValid)}function lr(n){var t=ut(NaN);return null!=n?dt(u(t),n):u(t).userInvalidated=!0,t}function vu(n,t){var i,r,f,e=gf.length;if(b(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),b(t._i)||(n._i=t._i),b(t._f)||(n._f=t._f),b(t._l)||(n._l=t._l),b(t._strict)||(n._strict=t._strict),b(t._tzm)||(n._tzm=t._tzm),b(t._isUTC)||(n._isUTC=t._isUTC),b(t._offset)||(n._offset=t._offset),b(t._pf)||(n._pf=u(t)),b(t._locale)||(n._locale=t._locale),0<e)for(i=0;i<e;i++)b(f=t[r=gf[i]])||(n[r]=f);return n}function gi(n){vu(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===au&&(au=!0,t.updateOffset(this),au=!1)}function tt(n){return n instanceof gi||null!=n&&null!=n._isAMomentObject}function ne(n){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function k(n,i){var r=!0;return dt(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,n),r){for(var u,e,o=[],h=arguments.length,f=0;f<h;f++){if(u="","object"==typeof arguments[f]){for(e in u+="\n["+f+"] ",arguments[0])s(arguments[0],e)&&(u+=e+": "+arguments[0][e]+", ");u=u.slice(0,-2)}else u=arguments[f];o.push(u)}ne(n+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function ie(n,i){null!=t.deprecationHandler&&t.deprecationHandler(n,i);te[n]||(ne(i),te[n]=!0)}function ft(n){return"undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function yu(n,t){var i,r=dt({},n);for(i in t)s(t,i)&&(ui(n[i])&&ui(t[i])?(r[i]={},dt(r[i],n[i]),dt(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)s(n,i)&&!s(t,i)&&ui(n[i])&&(r[i]=dt({},r[i]));return r}function pu(n){null!=n&&this.set(n)}function et(n,t,i){var r=""+Math.abs(n);return(0<=n?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}function r(n,t,i,r){var u="string"==typeof r?function(){return this[r]()}:r;n&&(si[n]=u);t&&(si[t[0]]=function(){return et(u.apply(this,arguments),t[1],t[2])});i&&(si[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function vr(n,t){return n.isValid()?(t=ue(t,n.localeData()),bu[t]=bu[t]||function(n){for(var r,t=n.match(wu),i=0,u=t.length;i<u;i++)t[i]=si[t[i]]?si[t[i]]:(r=t[i]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(i){for(var f="",r=0;r<u;r++)f+=ft(t[r])?t[r].call(i,n):t[r];return f}}(t),bu[t](n)):n.localeData().invalidDate()}function ue(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ar.lastIndex=0;0<=i&&ar.test(n);)n=n.replace(ar,r),ar.lastIndex=0,--i;return n}function d(n){if("string"==typeof n)return ku[n]||ku[n.toLowerCase()]}function du(n){var i,t,r={};for(t in n)s(n,t)&&(i=d(t))&&(r[i]=n[t]);return r}function i(n,t,i){br[n]=ft(t)?t:function(n){return n&&i?i:t}}function rs(n,t){return s(br,n)?br[n](t._strict,t._locale):new RegExp(at(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})))}function at(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function g(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function e(n){var n=+n;return 0!=n&&isFinite(n)?g(n):0}function h(n,t){var i,r,u=t;for("string"==typeof n&&(n=[n]),ht(t)&&(u=function(n,i){i[t]=e(n)}),r=n.length,i=0;i<r;i++)kr[n[i]]=u}function tr(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function dr(n){return n%4==0&&n%100!=0||n%400==0}function ir(n){return dr(n)?366:365}function vi(n,i){return function(r){return null!=r?(fe(this,n,r),t.updateOffset(this,i),this):ur(this,n)}}function ur(n,t){if(!n.isValid())return NaN;var i=n._d,r=n._isUTC;switch(t){case"Milliseconds":return r?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return r?i.getUTCSeconds():i.getSeconds();case"Minutes":return r?i.getUTCMinutes():i.getMinutes();case"Hours":return r?i.getUTCHours():i.getHours();case"Date":return r?i.getUTCDate():i.getDate();case"Day":return r?i.getUTCDay():i.getDay();case"Month":return r?i.getUTCMonth():i.getMonth();case"FullYear":return r?i.getUTCFullYear():i.getFullYear();default:return NaN}}function fe(n,t,i){var r,u,f;if(n.isValid()&&!isNaN(i)){switch(r=n._d,u=n._isUTC,t){case"Milliseconds":return u?r.setUTCMilliseconds(i):r.setMilliseconds(i);case"Seconds":return u?r.setUTCSeconds(i):r.setSeconds(i);case"Minutes":return u?r.setUTCMinutes(i):r.setMinutes(i);case"Hours":return u?r.setUTCHours(i):r.setHours(i);case"Date":return u?r.setUTCDate(i):r.setDate(i);case"FullYear":break;default:return}t=i;f=n.month();n=29!==(n=n.date())||1!==f||dr(t)?n:28;u?r.setUTCFullYear(t,f,n):r.setFullYear(t,f,n)}}function gu(n,t){var i;return isNaN(n)||isNaN(t)?NaN:(i=(t%(i=12)+i)%i,n+=(t-i)/12,1==i?dr(n)?29:28:31-i%7%2)}function se(n,t){if(n.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=e(t);else if(!ht(t=n.localeData().monthsParse(t)))return;var i=(i=n.date())<29?i:Math.min(i,gu(n.year(),t));n._isUTC?n._d.setUTCMonth(t,i):n._d.setMonth(t,i)}}function he(n){return null!=n?(se(this,n),t.updateOffset(this,!0),this):ur(this,"Month")}function ce(){function i(n,t){return t.length-n.length}for(var r,n,u=[],f=[],t=[],e=0;e<12;e++)n=ut([2e3,e]),r=at(this.monthsShort(n,"")),n=at(this.months(n,"")),u.push(r),f.push(n),t.push(n),t.push(r);u.sort(i);f.sort(i);t.sort(i);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+f.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+u.join("|")+")","i")}function ss(n,t,i,r,u,f,e){var o;return n<100&&0<=n?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function er(n){var t;return n<100&&0<=n?((t=Array.prototype.slice.call(arguments))[0]=n+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function gr(n,t,i){return i=7+t-i,i-(7+er(n,0,i).getUTCDay()-t)%7-1}function le(n,t,i,r,u){var f,t=1+7*(t-1)+(7+i-r)%7+gr(n,r,u),i=t<=0?ir(f=n-1)+t:t>ir(n)?(f=n+1,t-ir(n)):(f=n,t);return{year:f,dayOfYear:i}}function or(n,t,i){var u,f,r=gr(n.year(),t,i),r=Math.floor((n.dayOfYear()-r-1)/7)+1;return r<1?u=r+pt(f=n.year()-1,t,i):r>pt(n.year(),t,i)?(u=r-pt(n.year(),t,i),f=n.year()+1):(f=n.year(),u=r),{week:u,year:f}}function pt(n,t,i){var r=gr(n,t,i),t=gr(n+1,t,i);return(ir(n)-r+t)/7}function nf(n,t){return n.slice(t,7).concat(n.slice(0,t))}function tf(){function i(n,t){return t.length-n.length}for(var r,u,n,f=[],e=[],o=[],t=[],s=0;s<7;s++)n=ut([2e3,1]).day(s),r=at(this.weekdaysMin(n,"")),u=at(this.weekdaysShort(n,"")),n=at(this.weekdays(n,"")),f.push(r),e.push(u),o.push(n),t.push(r),t.push(u),t.push(n);f.sort(i);e.sort(i);o.sort(i);t.sort(i);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+e.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function rf(){return this.hours()%12||12}function ve(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ye(n,t){return t._meridiemParse}function we(n){return n&&n.toLowerCase().replace("_","-")}function as(n){for(var t,i,f,u,r=0;r<n.length;){for(t=(u=we(n[r]).split("-")).length,i=(i=we(n[r+1]))?i.split("-"):null;0<t;){if(f=tu(u.slice(0,t).join("-")))return f;if(i&&i.length>=t&&function(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i+=1)if(n[i]!==t[i])return i;return r}(u,i)>=t-1)break;t--}r++}return hr}function tu(n){var t,i;if(void 0===a[n]&&"undefined"!=typeof module&&module&&module.exports&&(i=n)&&i.match("^[^/\\\\]*$"))try{t=hr._abbr;require("./locale/"+n);ii(t)}catch(t){a[n]=null}return a[n]}function ii(n,t){return n&&((t=b(t)?wt(n):uf(n,t))?hr=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),hr._abbr}function uf(n,t){if(null===t)return delete a[n],null;var r,i=pe;if(t.abbr=n,null!=a[n])ie("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(null!=t.parentLocale)if(null!=a[t.parentLocale])i=a[t.parentLocale]._config;else{if(null==(r=tu(t.parentLocale)))return cr[t.parentLocale]||(cr[t.parentLocale]=[]),cr[t.parentLocale].push({name:n,config:t}),null;i=r._config}return a[n]=new pu(yu(i,t)),cr[n]&&cr[n].forEach(function(n){uf(n.name,n.config)}),ii(n),a[n]}function wt(n){var t;if(!(n=n&&n._locale&&n._locale._abbr?n._locale._abbr:n))return hr;if(!nt(n)){if(t=tu(n))return t;n=[n]}return as(n)}function ff(n){var t=n._a;return t&&-2===u(n).overflow&&(t=t[vt]<0||11<t[vt]?vt:t[ot]<1||t[ot]>gu(t[p],t[vt])?ot:t[y]<0||24<t[y]||24===t[y]&&(0!==t[it]||0!==t[yt]||0!==t[fi])?y:t[it]<0||59<t[it]?it:t[yt]<0||59<t[yt]?yt:t[fi]<0||999<t[fi]?fi:-1,u(n)._overflowDayOfYear&&(t<p||ot<t)&&(t=ot),u(n)._overflowWeeks&&-1===t&&(t=us),u(n)._overflowWeekday&&-1===t&&(t=fs),u(n).overflow=t),n}function be(n){var t,r,s,o,f,h,e=n._i,i=vs.exec(e)||ys.exec(e),e=iu.length,c=ef.length;if(i){for(u(n).iso=!0,t=0,r=e;t<r;t++)if(iu[t][1].exec(i[1])){o=iu[t][0];s=!1!==iu[t][2];break}if(null==o)n._isValid=!1;else{if(i[3]){for(t=0,r=c;t<r;t++)if(ef[t][1].exec(i[3])){f=(i[2]||" ")+ef[t][0];break}if(null==f)return void(n._isValid=!1)}if(s||null==f){if(i[4]){if(!ps.exec(i[4]))return void(n._isValid=!1);h="Z"}n._f=o+(f||"")+(h||"");sf(n)}else n._isValid=!1}}else n._isValid=!1}function ds(n,t,i,r,u,f){return n=[function(n){return(n=parseInt(n,10),n<=49)?2e3+n:n<=999?1900+n:n}(n),ee.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)],f&&n.push(parseInt(f,10)),n}function ke(n){var i,r,t=bs.exec(n._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));t?(i=ds(t[4],t[3],t[2],t[5],t[6],t[7]),function(n,t,i){if(!n||ae.indexOf(n)===new Date(t[0],t[1],t[2]).getDay())return 1;u(i).weekdayMismatch=!0;i._isValid=!1}(t[1],i,n)&&(n._a=i,n._tzm=(i=t[8],r=t[9],t=t[10],i?ks[i]:r?0:60*(((i=parseInt(t,10))-(r=i%100))/100)+r),n._d=er.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),u(n).rfc2822=!0)):n._isValid=!1}function yi(n,t,i){return null!=n?n:null!=t?t:i}function of(n){var r,w,f,i,h,a,e,o,v,s,c,b=[];if(!n._d){for(f=n,i=new Date(t.now()),w=f._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],n._w&&null==n._a[ot]&&null==n._a[vt]&&(null!=(i=(f=n)._w).GG||null!=i.W||null!=i.E?(o=1,v=4,h=yi(i.GG,f._a[p],or(l(),1,4).year),a=yi(i.W,1),((e=yi(i.E,1))<1||7<e)&&(s=!0)):(o=f._locale._week.dow,v=f._locale._week.doy,c=or(l(),o,v),h=yi(i.gg,f._a[p],c.year),a=yi(i.w,c.week),null!=i.d?((e=i.d)<0||6<e)&&(s=!0):null!=i.e?(e=i.e+o,(i.e<0||6<i.e)&&(s=!0)):e=o),a<1||a>pt(h,o,v)?u(f)._overflowWeeks=!0:null!=s?u(f)._overflowWeekday=!0:(c=le(h,a,e,o,v),f._a[p]=c.year,f._dayOfYear=c.dayOfYear)),null!=n._dayOfYear&&(i=yi(n._a[p],w[p]),(n._dayOfYear>ir(i)||0===n._dayOfYear)&&(u(n)._overflowDayOfYear=!0),s=er(i,0,n._dayOfYear),n._a[vt]=s.getUTCMonth(),n._a[ot]=s.getUTCDate()),r=0;r<3&&null==n._a[r];++r)n._a[r]=b[r]=w[r];for(;r<7;r++)n._a[r]=b[r]=null==n._a[r]?2===r?1:0:n._a[r];24===n._a[y]&&0===n._a[it]&&0===n._a[yt]&&0===n._a[fi]&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?er:ss).apply(null,b);h=n._useUTC?n._d.getUTCDay():n._d.getDay();null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24);n._w&&void 0!==n._w.d&&n._w.d!==h&&(u(n).weekdayMismatch=!0)}}function sf(n){if(n._f===t.ISO_8601)be(n);else if(n._f===t.RFC_2822)ke(n);else{n._a=[];u(n).empty=!0;for(var r,f,e,l,o,i=""+n._i,h=i.length,a=0,v=ue(n._f,n._locale).match(wu)||[],w=v.length,c=0;c<w;c++)f=v[c],(r=(i.match(rs(f,n))||[])[0])&&(0<(e=i.substr(0,i.indexOf(r))).length&&u(n).unusedInput.push(e),i=i.slice(i.indexOf(r)+r.length),a+=r.length),si[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),e=f,o=n,null!=(l=r)&&s(kr,e)&&kr[e](l,o._a,o,e)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=h-a;0<i.length&&u(n).unusedInput.push(i);n._a[y]<=12&&!0===u(n).bigHour&&0<n._a[y]&&(u(n).bigHour=void 0);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[y]=function(n,t,i){return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?((n=n.isPM(i))&&t<12&&(t+=12),t=n||12!==t?t:0):t}(n._locale,n._a[y],n._meridiem);null!==(h=u(n).era)&&(n._a[p]=n._locale.erasConvertYear(h,n._a[p]));of(n);ff(n)}}function de(n){var h,i,y,r=n._i,f=n._f;if(n._locale=n._locale||wt(n._l),null===r||void 0===f&&""===r)return lr({nullInput:!0});if("string"==typeof r&&(n._i=r=n._locale.preparse(r)),tt(r))return new gi(ff(r));if(di(r))n._d=r;else if(nt(f)){var e,v,c,l,o,a,s=n,p=!1,w=s._f.length;if(0===w)u(s).invalidFormat=!0,s._d=new Date(NaN);else{for(l=0;l<w;l++)o=0,a=!1,e=vu({},s),null!=s._useUTC&&(e._useUTC=s._useUTC),e._f=s._f[l],sf(e),lu(e)&&(a=!0),o=(o+=u(e).charsLeftOver)+10*u(e).unusedTokens.length,u(e).score=o,p?o<c&&(c=o,v=e):(null==c||o<c||a)&&(c=o,v=e,a)&&(p=!0);dt(s,v||e)}}else f?sf(n):b(f=(r=n)._i)?r._d=new Date(t.now()):di(f)?r._d=new Date(f.valueOf()):"string"==typeof f?(i=r,null!==(h=ws.exec(i._i))?i._d=new Date(+h[1]):(be(i),!1===i._isValid&&(delete i._isValid,ke(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:t.createFromInputFallback(i)))):nt(f)?(r._a=df(f.slice(0),function(n){return parseInt(n,10)}),of(r)):ui(f)?(h=r)._d||(y=void 0===(i=du(h._i)).day?i.date:i.day,h._a=df([i.year,i.month,y,i.hour,i.minute,i.second,i.millisecond],function(n){return n&&parseInt(n,10)}),of(h)):ht(f)?r._d=new Date(f):t.createFromInputFallback(r);return lu(n)||(n._d=null),n}function ge(n,t,i,r,u){var f={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(ui(n)&&cu(n)||nt(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,(u=new gi(ff(de(u=f))))._nextDay&&(u.add(1,"d"),u._nextDay=void 0),u}function l(n,t,i,r){return ge(n,t,i,r,!1)}function no(n,t){var r,i;if(!(t=1===t.length&&nt(t[0])?t[0]:t).length)return l();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function ru(n){var n=du(n),t=n.year||0,i=n.quarter||0,r=n.month||0,u=n.week||n.isoWeek||0,f=n.day||0,o=n.hour||0,h=n.minute||0,c=n.second||0,l=n.millisecond||0;this._isValid=function(n){var i,t,r=!1,u=pi.length;for(i in n)if(s(n,i)&&(-1===v.call(pi,i)||null!=n[i]&&isNaN(n[i])))return!1;for(t=0;t<u;++t)if(n[pi[t]]){if(r)return!1;parseFloat(n[pi[t]])!==e(n[pi[t]])&&(r=!0)}return!0}(n);this._milliseconds=+l+1e3*c+6e4*h+36e5*o;this._days=+f+7*u;this._months=+r+3*i+12*t;this._data={};this._locale=wt();this._bubble()}function uu(n){return n instanceof ru}function hf(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function to(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+et(~~(n/60),2)+t+et(~~n%60,2)})}function cf(n,t){var t=(t||"").match(n);return null===t?null:0===(t=60*(n=((t[t.length-1]||[])+"").match(io)||["-",0,0])[1]+e(n[2]))?0:"+"===n[0]?t:-t}function lf(n,i){var r;return i._isUTC?(i=i.clone(),r=(tt(n)||di(n)?n:l(n)).valueOf()-i.valueOf(),i._d.setTime(i._d.valueOf()+r),t.updateOffset(i,!1),i):l(n).local()}function af(n){return-Math.round(n._d.getTimezoneOffset())}function ro(){return!!this.isValid()&&this._isUTC&&0===this._offset}function rt(n,t){var i,r=n;return uu(n)?r={ms:n._milliseconds,d:n._days,M:n._months}:ht(n)||!isNaN(+n)?(r={},t?r[t]=+n:r.milliseconds=+n):(t=uo.exec(n))?(i="-"===t[1]?-1:1,r={y:0,d:e(t[ot])*i,h:e(t[y])*i,m:e(t[it])*i,s:e(t[yt])*i,ms:e(hf(1e3*t[fi]))*i}):(t=fo.exec(n))?(i="-"===t[1]?-1:1,r={y:ei(t[2],i),M:ei(t[3],i),w:ei(t[4],i),d:ei(t[5],i),h:ei(t[6],i),m:ei(t[7],i),s:ei(t[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=function(n,t){var i;return!n.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=lf(t,n),n.isBefore(t)?i=eo(n,t):((i=eo(t,n)).milliseconds=-i.milliseconds,i.months=-i.months),i)}(l(r.from),l(r.to)),(r={}).ms=t.milliseconds,r.M=t.months),i=new ru(r),uu(n)&&s(n,"_locale")&&(i._locale=n._locale),uu(n)&&s(n,"_isValid")&&(i._isValid=n._isValid),i}function ei(n,t){return n=n&&parseFloat(n.replace(",",".")),(isNaN(n)?0:n)*t}function eo(n,t){var i={};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function oo(n,t){return function(i,r){var u;return null===r||isNaN(+r)||(ie(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=i,i=r,r=u),so(this,rt(i,r),n),this}}function so(n,i,r,u){var e=i._milliseconds,f=hf(i._days),i=hf(i._months);n.isValid()&&(u=null==u||u,i&&se(n,ur(n,"Month")+i*r),f&&fe(n,"Date",ur(n,"Date")+f*r),e&&n._d.setTime(n._d.valueOf()+e*r),u)&&t.updateOffset(n,f||i)}function ho(n){return"string"==typeof n||n instanceof String}function gs(n){return tt(n)||di(n)||ho(n)||ht(n)||function(n){var t=nt(n),i=!1;return t&&(i=0===n.filter(function(t){return!ht(t)&&ho(n)}).length),t&&i}(n)||function(n){for(var r,f=ui(n)&&!cu(n),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],e=u.length,t=0;t<e;t+=1)r=u[t],i=i||s(n,r);return f&&i}(n)||null==n}function fu(n,t){var r,i;return n.date()<t.date()?-fu(t,n):-((r=12*(t.year()-n.year())+(t.month()-n.month()))+(t-(i=n.clone().add(r,"months"))<0?(t-i)/(i-n.clone().add(r-1,"months")):(t-i)/(n.clone().add(1+r,"months")-i)))||0}function co(n){return void 0===n?this._locale._abbr:(null!=(n=wt(n))&&(this._locale=n),this)}function lo(){return this._locale}function wi(n,t){return(n%t+t)%t}function ao(n,t,i){return n<100&&0<=n?new Date(n+400,t,i)-vf:new Date(n,t,i).valueOf()}function vo(n,t,i){return n<100&&0<=n?Date.UTC(n+400,t,i)-vf:Date.UTC(n,t,i)}function yf(n,t){return t.erasAbbrRegex(n)}function pf(){for(var r,u,f,e=[],o=[],s=[],t=[],i=this.eras(),n=0,h=i.length;n<h;++n)r=at(i[n].name),u=at(i[n].abbr),f=at(i[n].narrow),o.push(r),e.push(u),s.push(f),t.push(r),t.push(u),t.push(f);this._erasRegex=new RegExp("^("+t.join("|")+")","i");this._erasNameRegex=new RegExp("^("+o.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function eu(n,t){r(0,[n,n.length],0,t)}function yo(n,t,i,r,u){var f;return null==n?or(this,r,u).year:(f=pt(n,r,u),function(n,t,i,r,u){return n=le(n,t,i,r,u),t=er(n.year,0,n.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,n,t=f<t?f:t,i,r,u))}function nh(n,t){t[fi]=e(1e3*("0."+n))}function po(n){return n}function ou(n,t,i,r){var u=wt(),r=ut().set(r,t);return u[i](r,n)}function wo(n,t,i){if(ht(n)&&(t=n,n=void 0),n=n||"",null!=t)return ou(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=ou(n,r,i,"month");return u}function wf(n,t,i,r){t=("boolean"==typeof n?ht(t)&&(i=t,t=void 0):(t=n,n=!1,ht(i=t)&&(i=t,t=void 0)),t||"");var u,o=wt(),f=n?o._week.dow:0,e=[];if(null!=i)return ou(t,(i+f)%7,r,"day");for(u=0;u<7;u++)e[u]=ou(t,(u+f)%7,r,"day");return e}function bo(n,t,i,r){return t=rt(t,i),n._milliseconds+=r*t._milliseconds,n._days+=r*t._days,n._months+=r*t._months,n._bubble()}function ko(n){return n<0?Math.floor(n):Math.ceil(n)}function go(n){return 4800*n/146097}function bf(n){return 146097*n/4800}function bt(n){return function(){return this.as(n)}}function oi(n){return function(){return this.isValid()?this._data[n]:NaN}}function rh(n,t,i,r){var f=rt(n).abs(),u=kt(f.as("s")),e=kt(f.as("m")),o=kt(f.as("h")),s=kt(f.as("d")),h=kt(f.as("M")),c=kt(f.as("w")),f=kt(f.as("y")),u=(u<=i.ss?["s",u]:u<i.s&&["ss",u])||(e<=1?["m"]:e<i.m&&["mm",e])||(o<=1?["h"]:o<i.h&&["hh",o])||(s<=1?["d"]:s<i.d&&["dd",s]);return(u=(u=null!=i.w?u||(c<=1?["w"]:c<i.w&&["ww",c]):u)||(h<=1?["M"]:h<i.M&&["MM",h])||(f<=1?["y"]:["yy",f]))[2]=t,u[3]=0<+n,u[4]=r,function(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}.apply(null,u)}function ki(n){return(0<n)-(n<0)||+n}function hu(){var n,e,i,t,u,o,h,r,s,c,f;return this.isValid()?(n=su(this._milliseconds)/1e3,e=su(this._days),i=su(this._months),(r=this.asSeconds())?(t=g(n/60),u=g(t/60),n%=60,t%=60,o=g(i/12),i%=12,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",s=ki(this._months)!==ki(r)?"-":"",c=ki(this._days)!==ki(r)?"-":"",f=ki(this._milliseconds)!==ki(r)?"-":"",(r<0?"-":"")+"P"+(o?s+o+"Y":"")+(i?s+i+"M":"")+(e?c+e+"D":"")+(u||t||n?"T":"")+(u?f+u+"H":"")+(t?f+t+"M":"")+(n?f+h+"S":"")):"P0D"):this.localeData().invalidDate()}var kf,ns=Array.prototype.some||function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1},gf=t.momentProperties=[],au=!1,te={},re,ku,br,kr,v,rr,pi,io,uo,fo,vf,ri,gt,ct,st,su,o;t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;re=Object.keys||function(n){var t,i=[];for(t in n)s(n,t)&&i.push(t);return i};var wu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ar=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,bu={},si={};ku={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};var ts={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},nr=/\d/,w=/\d\d/,yr=/\d{3}/,gt=/\d{4}/,ni=/[+-]?\d{6}/,c=/\d\d?/,hi=/\d\d\d\d?/,ci=/\d\d\d\d\d\d?/,li=/\d{1,3}/,ti=/\d{1,4}/,ct=/[+-]?\d{1,6}/,ai=/\d+/,pr=/[+-]?\d+/,is=/Z|[+-]\d\d:?\d\d/gi,wr=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,n=/^[1-9]\d?/,f=/^([1-9]\d|\d)/;br={};kr={};var p=0,vt=1,ot=2,y=3,it=4,yt=5,fi=6,us=7,fs=8;r("Y",0,0,function(){var n=this.year();return n<=9999?et(n,4):"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");i("Y",pr);i("YY",c,w);i("YYYY",ti,gt);i("YYYYY",ct,ni);i("YYYYYY",ct,ni);h(["YYYYY","YYYYYY"],p);h("YYYY",function(n,i){i[p]=2===n.length?t.parseTwoDigitYear(n):e(n)});h("YY",function(n,i){i[p]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[p]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return e(n)+(68<e(n)?1900:2e3)};rr=vi("FullYear",!0);v=Array.prototype.indexOf||function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});i("M",c,n);i("MM",c,w);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[vt]=e(n)-1});h(["MMM","MMMM"],function(n,t,i,r){r=i._locale.monthsParse(n,r,i._strict);null!=r?t[vt]=r:u(i).invalidMonth=n});var fr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,es=lt,os=lt;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");i("w",c,n);i("ww",c,w);i("W",c,n);i("WW",c,w);tr(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=e(n)});r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");i("d",c);i("e",c);i("E",c);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});tr(["dd","ddd","dddd"],function(n,t,i,r){r=i._locale.weekdaysParse(n,r,i._strict);null!=r?t.d=r:u(i).invalidWeekday=n});tr(["d","e","E"],function(n,t,i,r){t[r]=e(n)});var sr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ae="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),hs=lt,cs=lt,ls=lt;r("H",["HH",2],0,"hour");r("h",["hh",2],0,rf);r("k",["kk",2],0,function(){return this.hours()||24});r("hmm",0,0,function(){return""+rf.apply(this)+et(this.minutes(),2)});r("hmmss",0,0,function(){return""+rf.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+et(this.minutes(),2)+et(this.seconds(),2)});ve("a",!0);ve("A",!1);i("a",ye);i("A",ye);i("H",c,f);i("h",c,n);i("k",c,n);i("HH",c,w);i("hh",c,w);i("kk",c,w);i("hmm",hi);i("hmmss",ci);i("Hmm",hi);i("Hmmss",ci);h(["H","HH"],y);h(["k","kk"],function(n,t){n=e(n);t[y]=24===n?0:n});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[y]=e(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[y]=e(n.substr(0,r));t[it]=e(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,f=n.length-2;t[y]=e(n.substr(0,r));t[it]=e(n.substr(r,2));t[yt]=e(n.substr(f));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[y]=e(n.substr(0,i));t[it]=e(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=e(n.substr(0,i));t[it]=e(n.substr(i,2));t[yt]=e(n.substr(r))});lt=vi("Hours",!0);var hr,pe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:fr,monthsShort:ee,week:{dow:0,doy:6},weekdays:sr,weekdaysMin:nu,weekdaysShort:ae,meridiemParse:/[ap]\.?m?\.?/i},a={},cr={};var vs=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ys=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ps=/Z|[+-]\d\d(?::?\d\d)?/,iu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ef=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ws=/^\/?Date\((-?\d+)/i,bs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ks={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};for(t.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){},hi=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:lr()}),ci=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?this<n?this:n:lr()}),pi=["year","quarter","month","week","day","hour","minute","second","millisecond"],to("Z",":"),to("ZZ",""),i("Z",wr),i("ZZ",wr),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=cf(wr,n)}),io=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},uo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,rt.fn=ru.prototype,rt.invalid=function(){return rt(NaN)},fr=oo(1,"add"),sr=oo(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",nu=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),vf=126227808e5,r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),i("N",yf),i("NN",yf),i("NNN",yf),i("NNNN",function(n,t){return t.erasNameRegex(n)}),i("NNNNN",function(n,t){return t.erasNarrowRegex(n)}),h(["N","NN","NNN","NNNN","NNNNN"],function(n,t,i,r){r=i._locale.erasParse(n,r,i._strict);r?u(i).era=r:u(i).invalidEra=n}),i("y",ai),i("yy",ai),i("yyy",ai),i("yyyy",ai),i("yo",function(n,t){return t._eraYearOrdinalRegex||ai}),h(["y","yy","yyy","yyyy"],p),h(["yo"],function(n,t,i){var r;i._locale._eraYearOrdinalRegex&&(r=n.match(i._locale._eraYearOrdinalRegex));t[p]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(n,r):parseInt(n,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),eu("gggg","weekYear"),eu("ggggg","weekYear"),eu("GGGG","isoWeekYear"),eu("GGGGG","isoWeekYear"),i("G",pr),i("g",pr),i("GG",c,w),i("gg",c,w),i("GGGG",ti,gt),i("gggg",ti,gt),i("GGGGG",ct,ni),i("ggggg",ct,ni),tr(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=e(n)}),tr(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),i("Q",nr),h("Q",function(n,t){t[vt]=3*(e(n)-1)}),r("D",["DD",2],"Do","date"),i("D",c,n),i("DD",c,w),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ot),h("Do",function(n,t){t[ot]=e(n.match(c)[0])}),ti=vi("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),i("DDD",li),i("DDDD",yr),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=e(n)}),r("m",["mm",2],0,"minute"),i("m",c,f),i("mm",c,w),h(["m","mm"],it),gt=vi("Minutes",!1),ct=(r("s",["ss",2],0,"second"),i("s",c,f),i("ss",c,w),h(["s","ss"],yt),vi("Seconds",!1)),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),i("S",li,nr),i("SS",li,w),i("SSS",li,yr),ri="SSSS";ri.length<=9;ri+="S")i(ri,ai);for(ri="S";ri.length<=9;ri+="S")h(ri,nh);ni=vi("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=gi.prototype;n.add=fr;n.calendar=function(n,i){1===arguments.length&&(arguments[0]?gs(arguments[0])?(n=arguments[0],i=void 0):function(n){for(var u=ui(n)&&!cu(n),t=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)t=t||s(n,r[i]);return u&&t}(arguments[0])&&(i=arguments[0],n=void 0):i=n=void 0);var n=n||l(),r=lf(n,this).startOf("day"),r=t.calendarFormat(this,r)||"sameElse",i=i&&(ft(i[r])?i[r].call(this,n):i[r]);return this.format(i||this.localeData().calendar(r,this,l(n)))};n.clone=function(){return new gi(this)};n.diff=function(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(!(r=lf(n,this)).isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=d(t)){case"year":u=fu(this,r)/12;break;case"month":u=fu(this,r);break;case"quarter":u=fu(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:g(u)};n.endOf=function(n){var i,r;if(void 0!==(n=d(n))&&"millisecond"!==n&&this.isValid()){switch(r=this._isUTC?vo:ao,n){case"year":i=r(this.year()+1,0,1)-1;break;case"quarter":i=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=r(this.year(),this.month()+1,1)-1;break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf();i+=3599999-wi(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf();i+=59999-wi(i,6e4);break;case"second":i=this._d.valueOf();i+=999-wi(i,1e3)}this._d.setTime(i);t.updateOffset(this,!0)}return this};n.format=function(n){return n=n||(this.isUtc()?t.defaultFormatUtc:t.defaultFormat),n=vr(this,n),this.localeData().postformat(n)};n.from=function(n,t){return this.isValid()&&(tt(n)&&n.isValid()||l(n).isValid())?rt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.fromNow=function(n){return this.from(l(),n)};n.to=function(n,t){return this.isValid()&&(tt(n)&&n.isValid()||l(n).isValid())?rt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};n.toNow=function(n){return this.to(l(),n)};n.get=function(n){return ft(this[n=d(n)])?this[n]():this};n.invalidAt=function(){return u(this).overflow};n.isAfter=function(n,t){return n=tt(n)?n:l(n),!(!this.isValid()||!n.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())};n.isBefore=function(n,t){return n=tt(n)?n:l(n),!(!this.isValid()||!n.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())};n.isBetween=function(n,t,i,r){return n=tt(n)?n:l(n),t=tt(t)?t:l(t),!!(this.isValid()&&n.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))};n.isSame=function(n,t){var n=tt(n)?n:l(n);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===n.valueOf():(n=n.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))};n.isSameOrAfter=function(n,t){return this.isSame(n,t)||this.isAfter(n,t)};n.isSameOrBefore=function(n,t){return this.isSame(n,t)||this.isBefore(n,t)};n.isValid=function(){return lu(this)};n.lang=nu;n.locale=co;n.localeData=lo;n.max=ci;n.min=hi;n.parsingFlags=function(){return dt({},u(this))};n.set=function(n,t){if("object"==typeof n)for(var r=function(n){var t,i=[];for(t in n)s(n,t)&&i.push({unit:t,priority:ts[t]});return i.sort(function(n,t){return n.priority-t.priority}),i}(n=du(n)),u=r.length,i=0;i<u;i++)this[r[i].unit](n[r[i].unit]);else if(ft(this[n=d(n)]))return this[n](t);return this};n.startOf=function(n){var i,r;if(void 0!==(n=d(n))&&"millisecond"!==n&&this.isValid()){switch(r=this._isUTC?vo:ao,n){case"year":i=r(this.year(),0,1);break;case"quarter":i=r(this.year(),this.month()-this.month()%3,1);break;case"month":i=r(this.year(),this.month(),1);break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=r(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf();i-=wi(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf();i-=wi(i,6e4);break;case"second":i=this._d.valueOf();i-=wi(i,1e3)}this._d.setTime(i);t.updateOffset(this,!0)}return this};n.subtract=sr;n.toArray=function(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]};n.toObject=function(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}};n.toDate=function(){return new Date(this.valueOf())};n.toISOString=function(n){var t;return this.isValid()?(t=(n=!0!==n)?this.clone().utc():this).year()<0||9999<t.year()?vr(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ft(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",vr(t,"Z")):vr(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null};n.inspect=function(){var t,n,i;return this.isValid()?(n="moment",t="",this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),n="["+n+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+(t+'[")]'))):"moment.invalid(/* "+this._i+" */)"};"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});n.toJSON=function(){return this.isValid()?this.toISOString():null};n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};n.unix=function(){return Math.floor(this.valueOf()/1e3)};n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};n.eraName=function(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].name;return""};n.eraNarrow=function(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].narrow;return""};n.eraAbbr=function(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].abbr;return""};n.eraYear=function(){for(var u,r,i=this.localeData().eras(),n=0,f=i.length;n<f;++n)if(u=i[n].since<=i[n].until?1:-1,r=this.clone().startOf("day").valueOf(),i[n].since<=r&&r<=i[n].until||i[n].until<=r&&r<=i[n].since)return(this.year()-t(i[n].since).year())*u+i[n].offset;return this.year()};n.year=rr;n.isLeapYear=function(){return dr(this.year())};n.weekYear=function(n){return yo.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)};n.isoWeekYear=function(n){return yo.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)};n.quarter=n.quarters=function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)};n.month=he;n.daysInMonth=function(){return gu(this.year(),this.month())};n.week=n.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")};n.isoWeek=n.isoWeeks=function(n){var t=or(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")};n.weeksInYear=function(){var n=this.localeData()._week;return pt(this.year(),n.dow,n.doy)};n.weeksInWeekYear=function(){var n=this.localeData()._week;return pt(this.weekYear(),n.dow,n.doy)};n.isoWeeksInYear=function(){return pt(this.year(),1,4)};n.isoWeeksInISOWeekYear=function(){return pt(this.isoWeekYear(),1,4)};n.date=ti;n.day=n.days=function(n){var i,t,r;return this.isValid()?(i=ur(this,"Day"),null!=n?(t=n,r=this.localeData(),n="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(n-i,"d")):i):null!=n?this:NaN};n.weekday=function(n){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==n?t:this.add(n-t,"d")):null!=n?this:NaN};n.isoWeekday=function(n){var t,i;return this.isValid()?null!=n?(t=n,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=n?this:NaN};n.dayOfYear=function(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")};n.hour=n.hours=lt;n.minute=n.minutes=gt;n.second=n.seconds=ct;n.millisecond=n.milliseconds=ni;n.utcOffset=function(n,i,r){var u,f=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null==n)return this._isUTC?f:af(this);if("string"==typeof n){if(null===(n=cf(wr,n)))return this}else Math.abs(n)<16&&!r&&(n*=60);return!this._isUTC&&i&&(u=af(this)),this._offset=n,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==n&&(!i||this._changeInProgress?so(this,rt(n-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this};n.utc=function(n){return this.utcOffset(0,n)};n.local=function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n)&&this.subtract(af(this),"m"),this};n.parseZone=function(){var n;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(n=cf(is,this._i))?this.utcOffset(n):this.utcOffset(0,!0)),this};n.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0)};n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};n.isLocal=function(){return!!this.isValid()&&!this._isUTC};n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};n.isUtc=ro;n.isUTC=ro;n.zoneAbbr=function(){return this._isUTC?"UTC":""};n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};n.dates=k("dates accessor is deprecated. Use date instead.",ti);n.months=k("months accessor is deprecated. Use month instead",he);n.years=k("years accessor is deprecated. Use year instead",rr);n.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?(this.utcOffset(n="string"!=typeof n?-n:n,t),this):-this.utcOffset()});n.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var n,t;return b(this._isDSTShifted)&&(vu(n={},this),(n=de(n))._a?(t=(n._isUTC?ut:l)(n._a),this._isDSTShifted=this.isValid()&&0<function(n,t,i){for(var f=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&e(n[r])!==e(t[r]))&&u++;return u+o}(n._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted});f=pu.prototype;f.calendar=function(n,t,i){return ft(n=this._calendar[n]||this._calendar.sameElse)?n.call(t,i):n};f.longDateFormat=function(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.match(wu).map(function(n){return"MMMM"===n||"MM"===n||"DD"===n||"dddd"===n?n.slice(1):n}).join(""),this._longDateFormat[n])};f.invalidDate=function(){return this._invalidDate};f.ordinal=function(n){return this._ordinal.replace("%d",n)};f.preparse=po;f.postformat=po;f.relativeTime=function(n,t,i,r){var u=this._relativeTime[i];return ft(u)?u(n,t,i,r):u.replace(/%d/i,n)};f.pastFuture=function(n,t){return ft(n=this._relativeTime[0<n?"future":"past"])?n(t):n.replace(/%s/i,t)};f.set=function(n){var i,t;for(t in n)s(n,t)&&(ft(i=n[t])?this[t]=i:this["_"+t]=i);this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};f.eras=function(){for(var r,n=this._eras||wt("en")._eras,i=0,u=n.length;i<u;++i){switch(typeof n[i].since){case"string":r=t(n[i].since).startOf("day");n[i].since=r.valueOf()}switch(typeof n[i].until){case"undefined":n[i].until=1/0;break;case"string":r=t(n[i].until).startOf("day").valueOf();n[i].until=r.valueOf()}}return n};f.erasParse=function(n,t,i){var r,s,f,e,o,u=this.eras();for(n=n.toUpperCase(),r=0,s=u.length;r<s;++r)if(f=u[r].name.toUpperCase(),e=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(e===n)return u[r];break;case"NNNN":if(f===n)return u[r];break;case"NNNNN":if(o===n)return u[r]}else if(0<=[f,e,o].indexOf(n))return u[r]};f.erasConvertYear=function(n,i){var r=n.since<=n.until?1:-1;return void 0===i?t(n.since).year():t(n.since).year()+(i-n.offset)*r};f.erasAbbrRegex=function(n){return s(this,"_erasAbbrRegex")||pf.call(this),n?this._erasAbbrRegex:this._erasRegex};f.erasNameRegex=function(n){return s(this,"_erasNameRegex")||pf.call(this),n?this._erasNameRegex:this._erasRegex};f.erasNarrowRegex=function(n){return s(this,"_erasNarrowRegex")||pf.call(this),n?this._erasNarrowRegex:this._erasRegex};f.months=function(n,t){return n?(nt(this._months)?this._months:this._months[(this._months.isFormat||oe).test(t)?"format":"standalone"])[n.month()]:nt(this._months)?this._months:this._months.standalone};f.monthsShort=function(n,t){return n?(nt(this._monthsShort)?this._monthsShort:this._monthsShort[oe.test(t)?"format":"standalone"])[n.month()]:nt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};f.monthsParse=function(n,t,i){var r,u;if(this._monthsParseExact)return function(n,t,i){var u,r,f,n=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)f=ut([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(f,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=v.call(this._shortMonthsParse,n))?r:null:-1!==(r=v.call(this._longMonthsParse,n))?r:null:"MMM"===t?-1!==(r=v.call(this._shortMonthsParse,n))||-1!==(r=v.call(this._longMonthsParse,n))?r:null:-1!==(r=v.call(this._longMonthsParse,n))||-1!==(r=v.call(this._shortMonthsParse,n))?r:null}.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ut([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(u="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(u.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r};f.monthsRegex=function(n){return this._monthsParseExact?(s(this,"_monthsRegex")||ce.call(this),n?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=os),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)};f.monthsShortRegex=function(n){return this._monthsParseExact?(s(this,"_monthsRegex")||ce.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=es),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)};f.week=function(n){return or(n,this._week.dow,this._week.doy).week};f.firstDayOfYear=function(){return this._week.doy};f.firstDayOfWeek=function(){return this._week.dow};f.weekdays=function(n,t){return t=nt(this._weekdays)?this._weekdays:this._weekdays[n&&!0!==n&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===n?nf(t,this._week.dow):n?t[n.day()]:t};f.weekdaysMin=function(n){return!0===n?nf(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin};f.weekdaysShort=function(n){return!0===n?nf(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort};f.weekdaysParse=function(n,t,i){var r,u;if(this._weekdaysParseExact)return function(n,t,i){var u,r,f,n=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],u=0;u<7;++u)f=ut([2e3,1]).day(u),this._minWeekdaysParse[u]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[u]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[u]=this.weekdays(f,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=v.call(this._weekdaysParse,n))?r:null:"ddd"===t?-1!==(r=v.call(this._shortWeekdaysParse,n))?r:null:-1!==(r=v.call(this._minWeekdaysParse,n))?r:null:"dddd"===t?-1!==(r=v.call(this._weekdaysParse,n))||-1!==(r=v.call(this._shortWeekdaysParse,n))||-1!==(r=v.call(this._minWeekdaysParse,n))?r:null:"ddd"===t?-1!==(r=v.call(this._shortWeekdaysParse,n))||-1!==(r=v.call(this._weekdaysParse,n))||-1!==(r=v.call(this._minWeekdaysParse,n))?r:null:-1!==(r=v.call(this._minWeekdaysParse,n))||-1!==(r=v.call(this._weekdaysParse,n))||-1!==(r=v.call(this._shortWeekdaysParse,n))?r:null}.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ut([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(u="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(u.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r};f.weekdaysRegex=function(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||tf.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=hs),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)};f.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||tf.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cs),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};f.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||tf.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ls),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};f.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)};f.meridiem=function(n,t,i){return 11<n?i?"pm":"PM":i?"am":"AM"};ii("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===e(n%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}});t.lang=k("moment.lang is deprecated. Use moment.locale instead.",ii);t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",wt);st=Math.abs;nr=bt("ms");w=bt("s");li=bt("m");yr=bt("h");fr=bt("d");ci=bt("w");hi=bt("M");sr=bt("Q");lt=bt("y");gt=nr;var ct=oi("milliseconds"),ni=oi("seconds"),ti=oi("minutes"),rr=oi("hours"),f=oi("days"),th=oi("months"),ih=oi("years"),kt=Math.round,bi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};return su=Math.abs,o=ru.prototype,o.isValid=function(){return this._isValid},o.abs=function(){var n=this._data;return this._milliseconds=st(this._milliseconds),this._days=st(this._days),this._months=st(this._months),n.milliseconds=st(n.milliseconds),n.seconds=st(n.seconds),n.minutes=st(n.minutes),n.hours=st(n.hours),n.months=st(n.months),n.years=st(n.years),this},o.add=function(n,t){return bo(this,n,t,1)},o.subtract=function(n,t){return bo(this,n,t,-1)},o.as=function(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=d(n))||"quarter"===n||"year"===n)switch(t=this._days+i/864e5,r=this._months+go(t),n){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(bf(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}},o.asMilliseconds=nr,o.asSeconds=w,o.asMinutes=li,o.asHours=yr,o.asDays=fr,o.asWeeks=ci,o.asMonths=hi,o.asQuarters=sr,o.asYears=lt,o.valueOf=gt,o._bubble=function(){var n=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=n&&0<=t&&0<=i||n<=0&&t<=0&&i<=0||(n+=864e5*ko(bf(i)+t),i=t=0),r.milliseconds=n%1e3,n=g(n/1e3),r.seconds=n%60,n=g(n/60),r.minutes=n%60,n=g(n/60),r.hours=n%24,t+=g(n/24),i+=n=g(go(t)),t-=ko(bf(n)),n=g(i/12),i%=12,r.days=t,r.months=i,r.years=n,this},o.clone=function(){return rt(this)},o.get=function(n){return n=d(n),this.isValid()?this[n+"s"]():NaN},o.milliseconds=ct,o.seconds=ni,o.minutes=ti,o.hours=rr,o.days=f,o.weeks=function(){return g(this.days()/7)},o.months=th,o.years=ih,o.humanize=function(n,t){var i,r;return this.isValid()?(i=!1,r=bi,"object"==typeof n&&(t=n,n=!1),"boolean"==typeof n&&(i=n),"object"==typeof t&&(r=Object.assign({},bi,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),n=this.localeData(),t=rh(this,!i,r,n),i&&(t=n.pastFuture(+this,t)),n.postformat(t)):this.localeData().invalidDate()},o.toISOString=hu,o.toString=hu,o.toJSON=hu,o.locale=co,o.localeData=lo,o.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hu),o.lang=nu,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",pr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n))}),h("x",function(n,t,i){i._d=new Date(e(n))}),t.version="2.30.1",kf=l,t.fn=n,t.min=function(){return no("isBefore",[].slice.call(arguments,0))},t.max=function(){return no("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=ut,t.unix=function(n){return l(1e3*n)},t.months=function(n,t){return wo(n,t,"months")},t.isDate=di,t.locale=ii,t.invalid=lr,t.duration=rt,t.isMoment=tt,t.weekdays=function(n,t,i){return wf(n,t,i,"weekdays")},t.parseZone=function(){return l.apply(null,arguments).parseZone()},t.localeData=wt,t.isDuration=uu,t.monthsShort=function(n,t){return wo(n,t,"monthsShort")},t.weekdaysMin=function(n,t,i){return wf(n,t,i,"weekdaysMin")},t.defineLocale=uf,t.updateLocale=function(n,t){var r,i;return null!=t?(i=pe,null!=a[n]&&null!=a[n].parentLocale?a[n].set(yu(a[n]._config,t)):(t=yu(i=null!=(r=tu(n))?r._config:i,t),null==r&&(t.abbr=n),(i=new pu(t)).parentLocale=a[n],a[n]=i),ii(n)):null!=a[n]&&(null!=a[n].parentLocale?(a[n]=a[n].parentLocale,n===ii()&&ii(n)):null!=a[n]&&delete a[n]),a[n]},t.locales=function(){return re(a)},t.weekdaysShort=function(n,t,i){return wf(n,t,i,"weekdaysShort")},t.normalizeUnits=d,t.relativeTimeRounding=function(n){return void 0===n?kt:"function"==typeof n&&(kt=n,!0)},t.relativeTimeThreshold=function(n,t){return void 0!==bi[n]&&(void 0===t?bi[n]:(bi[n]=t,"s"===n&&(bi.ss=t-1),!0))},t.calendarFormat=function(n,t){return(n=n.diff(t,"days",!0))<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}),!function(n){"function"==typeof define&&define.amd?define(["jquery","moment"],n):"object"==typeof exports?module.exports=n(require("jquery"),require("moment")):n(jQuery,moment)}(function(n,t){function d(n){return bt(n,ui)}function su(t){var i,r={views:t.views||{}};return n.each(t,function(t,u){"views"!=t&&(n.isPlainObject(u)&&!/(time|duration|interval)$/i.test(t)&&-1==n.inArray(t,ui)?(i=null,n.each(u,function(n,u){/^(month|week|day|default|basic(Week|Day)?|agenda(Week|Day)?)$/.test(n)?(r.views[n]||(r.views[n]={}),r.views[n][t]=u):(i||(i={}),i[n]=u)}),i&&(r[t]=i)):r[t]=u)}),r}function ai(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 vi(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function tt(){n("body").addClass("fc-not-allowed")}function g(){n("body").removeClass("fc-not-allowed")}function yi(t,i,r){var u=Math.floor(i/t.length),e=Math.floor(i-u*(t.length-1)),f=[],o=[],s=[],h=0;pi(t);t.each(function(i,r){var l=i===t.length-1?e:u,c=n(r).outerHeight(!0);l>c?(f.push(r),o.push(c),s.push(n(r).height())):h+=c});r&&(i-=h,u=Math.floor(i/f.length),e=Math.floor(i-u*(f.length-1)));n(f).each(function(t,i){var r=t===f.length-1?e:u,h=o[t],c=s[t],l=r-(h-c);r>h&&n(i).height(l)})}function pi(n){n.height("")}function wi(t){var i=0;return t.find("> span").each(function(t,r){var u=n(r).outerWidth();u>i&&(i=u)}),i++,t.width(i),i}function bi(n,t){return n.height(t).addClass("fc-scroller"),n[0].scrollHeight-1>n[0].clientHeight?!0:(lt(n),!1)}function lt(n){n.height("").removeClass("fc-scroller")}function at(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"fixed"!==r&&i.length?i:n(t[0].ownerDocument||document)}function vt(n){var t=n.offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}function ki(n){var t=n.offset(),i=it(n),r=t.left+k(n,"border-left-width")+i.left,u=t.top+k(n,"border-top-width")+i.top;return{left:r,right:r+n[0].clientWidth,top:u,bottom:u+n[0].clientHeight}}function hu(n){var t=n.offset(),i=t.left+k(n,"border-left-width")+k(n,"padding-left"),r=t.top+k(n,"border-top-width")+k(n,"padding-top");return{left:i,right:i+n.width(),top:r,bottom:r+n.height()}}function it(n){var i=n.innerWidth()-n[0].clientWidth,t={left:0,right:0,top:0,bottom:n.innerHeight()-n[0].clientHeight};return cu()&&"rtl"==n.css("direction")?t.left=i:t.right=i,t}function cu(){return null===et&&(et=lu()),et}function lu(){var t=n("<div><div/><\/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 k(n,t){return parseFloat(n.css(t))||0}function di(n){return 1==n.which&&!n.ctrlKey}function gi(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.left<i.right&&i.top<i.bottom?i:!1}function au(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function vu(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function yu(n,t){return{left:n.left-t.left,top:n.top-t.top}}function nr(t){var u,i,f=[],r=[];for("string"==typeof t?r=t.split(/\s*,\s*/):"function"==typeof t?r=[t]:n.isArray(t)&&(r=t),u=0;u<r.length;u++)i=r[u],"string"==typeof i?f.push("-"==i.charAt(0)?{field:i.substring(1),order:-1}:{field:i,order:1}):"function"==typeof i&&f.push({func:i});return f}function tr(n,t,i){for(var u,r=0;r<i.length;r++)if(u=ir(n,t,i[r]))return u;return 0}function ir(n,t,i){return i.func?i.func(n,t):rr(n[i.field],t[i.field])*(i.order||1)}function rr(t,i){return t||i?null==i?-1:null==t?1:"string"===n.type(t)||"string"===n.type(i)?String(t).localeCompare(String(i)):t-i:0}function yt(n,t){var i,r,u,f,e=n.start,o=n.end,s=t.start,h=t.end;if(o>s&&h>e)return(e>=s?(i=e.clone(),u=!0):(i=s.clone(),u=!1),h>=o?(r=o.clone(),f=!0):(r=h.clone(),f=!1),{start:i,end:r,isStart:u,isEnd:f})}function ur(n,i){return t.duration({days:n.clone().stripTime().diff(i.clone().stripTime(),"days"),ms:n.time()-i.time()})}function pu(n,i){return t.duration({days:n.clone().stripTime().diff(i.clone().stripTime(),"days")})}function fr(n,i,r){return t.duration(Math.round(n.diff(i,r,!0)),r)}function pt(n,t){for(var r,u,i=0;i<ot.length&&(r=ot[i],u=wu(r,n,t),!(u>=1&&c(u)));i++);return r}function wu(n,i,r){return null!=r?r.diff(i,n,!0):t.isDuration(i)?i.as(n):i.end.diff(i.start,n,!0)}function bu(n,t,i){var r;return p(i)?(t-n)/i:(r=i.asMonths(),Math.abs(r)>=1&&c(r)?t.diff(n,"months",!0)/r:t.diff(n,"days",!0)/i.asDays())}function wt(n,t){var i,r;return p(n)||p(t)?n/t:(i=n.asMonths(),r=t.asMonths(),Math.abs(i)>=1&&c(i)&&Math.abs(r)>=1&&c(r)?i/r:n.asDays()/t.asDays())}function ku(n,i){var r;return p(n)?t.duration(n*i):(r=n.asMonths(),Math.abs(r)>=1&&c(r)?t.duration({months:r*i}):t.duration({days:n.asDays()*i}))}function p(n){return Boolean(n.hours()||n.minutes()||n.seconds()||n.milliseconds())}function du(n){return"[object Date]"===Object.prototype.toString.call(n)||n instanceof Date}function er(n){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(n)}function bt(n,t){var i,r,e,o,u,s,f={};if(t)for(i=0;i<t.length;i++){for(r=t[i],e=[],o=n.length-1;o>=0;o--)if(u=n[o][r],"object"==typeof u)e.unshift(u);else if(void 0!==u){f[r]=u;break}e.length&&(f[r]=bt(e))}for(i=n.length-1;i>=0;i--){s=n[i];for(r in s)r in f||(f[r]=s[r])}return f}function rt(n){var t=function(){};return t.prototype=n,new t}function kt(n,t){for(var i in n)or(n,i)&&(t[i]=n[i])}function gu(n,t){for(var i,u=["constructor","toString","valueOf"],r=0;r<u.length;r++)i=u[r],n[i]!==Object.prototype[i]&&(t[i]=n[i])}function or(n,t){return df.call(n,t)}function nf(t){return/undefined|null|boolean|number|string/.test(n.type(t))}function ut(t,i,r){if(n.isFunction(t)&&(t=[t]),t){for(var f,u=0;u<t.length;u++)f=t[u].apply(i,r)||f;return f}}function s(){for(var n=0;n<arguments.length;n++)if(void 0!==arguments[n])return arguments[n]}function r(n){return(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function dt(n){return n.replace(/&.*?;/g,"")}function ft(t){var i=[];return n.each(t,function(n,t){null!=t&&i.push(n+":"+t)}),i.join(";")}function tf(n){return n.charAt(0).toUpperCase()+n.slice(1)}function rf(n,t){return n-t}function c(n){return n%1==0}function o(n,t){var i=n[t];return function(){return i.apply(n,arguments)}}function gt(n,t){var i,r,u,f,e=function(){var o=+new Date-f;t>o&&o>0?i=setTimeout(e,t-o):(i=null,n.apply(u,r),i||(u=r=null))};return function(){u=this;r=arguments;f=+new Date;i||(i=setTimeout(e,t))}}function ni(i,r,u){var o,s,h,f,e=i[0],c=1==i.length&&"string"==typeof e;return t.isMoment(e)?(f=t.apply(null,i),sr(e,f)):du(e)||void 0===e?f=t.apply(null,i):(o=!1,s=!1,c?gf.test(e)?(e+="-01",i=[e],o=!0,s=!0):(h=ne.exec(e))&&(o=!h[5],s=!0):n.isArray(e)&&(s=!0),f=r||o?t.utc.apply(t,i):t.apply(null,i),o?(f._ambigTime=!0,f._ambigZone=!0):u&&(s?f._ambigZone=!0:c&&(f.utcOffset?f.utcOffset(e):f.zone(e)))),f._fullCalendar=!0,f}function ti(n,r){for(var u,o=!1,s=!1,h=n.length,e=[],f=0;h>f;f++)u=n[f],t.isMoment(u)||(u=i.moment.parseZone(u)),o=o||u._ambigTime,s=s||u._ambigZone,e.push(u);for(f=0;h>f;f++)u=e[f],r||!o||u._ambigTime?s&&!u._ambigZone&&(e[f]=u.clone().stripZone()):e[f]=u.clone().stripTime();return e}function sr(n,t){n._ambigTime?t._ambigTime=!0:t._ambigTime&&(t._ambigTime=!1);n._ambigZone?t._ambigZone=!0:t._ambigZone&&(t._ambigZone=!1)}function hr(n,t){n.year(t[0]||0).month(t[1]||0).date(t[2]||0).hours(t[3]||0).minutes(t[4]||0).seconds(t[5]||0).milliseconds(t[6]||0)}function l(n,t){return f.format.call(n,t)}function uf(n,t){return cr(n,vr(t))}function cr(n,t){for(var r="",i=0;i<t.length;i++)r+=ii(n,t[i]);return r}function ii(n,t){var i,r;return"string"==typeof t?t:(i=t.token)?si[i]?si[i](n):l(n,i):t.maybe&&(r=cr(n,t.maybe),r.match(/[1-9]/))?r:""}function lr(n,t,r,u,f){var e;return n=i.moment.parseZone(n),t=i.moment.parseZone(t),e=(n.localeData||n.lang).call(n),r=e.longDateFormat(r)||r,u=u||" - ",ff(n,t,vr(r),u,f)}function ff(n,t,i,r,u){for(var f,o,s,a=n.clone().stripZone(),v=t.clone().stripZone(),y="",l="",h="",c="",p="",e=0;e<i.length&&(f=ar(n,t,a,v,i[e]),f!==!1);e++)y+=f;for(o=i.length-1;o>e&&(f=ar(n,t,a,v,i[o]),f!==!1);o--)l=f+l;for(s=e;o>=s;s++)h+=ii(n,i[s]),c+=ii(t,i[s]);return(h||c)&&(p=u?c+r+h:h+r+c),y+p+l}function ar(n,t,i,r,u){var f,e;return"string"==typeof u?u:(f=u.token)&&(e=uu[f.charAt(0)],e&&i.isSame(r,e))?l(n,f):!1}function vr(n){return n in st?st[n]:st[n]=yr(n)}function yr(n){for(var t,i=[],r=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=r.exec(n);)t[1]?i.push(t[1]):t[2]?i.push({maybe:yr(t[2])}):t[3]?i.push({token:t[3]}):t[5]&&i.push(t[5]);return i}function h(){}function ef(n,t){var i;return or(t,"constructor")&&(i=t.constructor),"function"!=typeof i&&(i=t.constructor=function(){n.apply(this,arguments)}),i.prototype=rt(n.prototype),kt(t,i.prototype),gu(t,i.prototype),kt(n,i),i}function pr(n,t){kt(t.prototype||t,n.prototype)}function wr(n,t){return n||t?n&&t?n.component===t.component&&br(n,t)&&br(t,n):!1:!0}function br(n,t){for(var i in n)if(!/^(component|left|right|top|bottom)$/.test(i)&&n[i]!==t[i])return!1;return!0}function kr(n){var t=dr(n);return"background"===t||"inverse-background"===t}function of(n){return"inverse-background"===dr(n)}function dr(n){return s((n.source||{}).rendering,n.rendering)}function sf(n){for(var i,r={},t=0;t<n.length;t++)i=n[t],(r[i._id]||(r[i._id]=[])).push(i);return r}function hf(n,t){return n.start-t.start}function cf(r){var u,f,e,s,o=i.dataAttrPrefix;return o&&(o+="-"),u=r.data(o+"event")||null,u&&(u="object"==typeof u?n.extend({},u):{},f=u.start,null==f&&(f=u.time),e=u.duration,s=u.stick,delete u.start,delete u.time,delete u.duration,delete u.stick),null==f&&(f=r.data(o+"start")),null==f&&(f=r.data(o+"time")),null==e&&(e=r.data(o+"duration")),null==s&&(s=r.data(o+"stick")),f=null!=f?t.duration(f):null,e=null!=e?t.duration(e):null,s=Boolean(s),{eventProps:u,startTime:f,duration:e,stick:s}}function lf(n,t){for(var r,i=0;i<t.length;i++)if(r=t[i],r.leftCol<=n.rightCol&&r.rightCol>=n.leftCol)return!0;return!1}function af(n,t){return n.leftCol-t.leftCol}function vf(n){for(var u,t,i=[],r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length&&nu(u,i[t]).length;t++);u.level=t;(i[t]||(i[t]=[])).push(u)}return i}function yf(n){for(var f,i,r,u,t=0;t<n.length;t++)for(f=n[t],i=0;i<f.length;i++)for(r=f[i],r.forwardSegs=[],u=t+1;u<n.length;u++)nu(r,n[u],r.forwardSegs)}function gr(n){var t,i,u=n.forwardSegs,r=0;if(void 0===n.forwardPressure){for(t=0;t<u.length;t++)i=u[t],gr(i),r=Math.max(r,1+i.forwardPressure);n.forwardPressure=r}}function nu(n,t,i){i=i||[];for(var r=0;r<t.length;r++)pf(n,t[r])&&i.push(t[r]);return i}function pf(n,t){return n.bottom>t.top&&n.top<t.bottom}function wf(r,u){function ht(){a?v()&&(it(),h()):ct()}function ct(){pi=e.theme?"ui":"fc";r.addClass("fc");e.isRTL?r.addClass("fc-rtl"):r.addClass("fc-ltr");e.theme?r.addClass("ui-widget"):r.addClass("fc-unthemed");a=n("<div class='fc-view-container'/>").prependTo(r);l=f.header=new bf(f,e);p=l.render();p&&r.prepend(p);h(e.defaultView);e.handleWindowResize&&(d=gt(at,e.windowResizeDelay),n(window).resize(d))}function lt(){o&&o.removeElement();l.removeElement();a.remove();r.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget");d&&n(window).unbind("resize",d)}function v(){return r.is(":visible")}function h(t){w++;o&&t&&o.type!==t&&(l.deactivateButton(o.type),k(),o.removeElement(),o=f.view=null);!o&&t&&(o=f.view=ot[t]||(ot[t]=f.instantiateView(t)),o.setElement(n("<div class='fc-view fc-"+t+"-view' />").appendTo(a)),l.activateButton(t));o&&(s=o.massageCurrentDate(s),o.displaying&&s.isWithin(o.intervalStart,o.intervalEnd)||v()&&(o.display(s),y(),kt(),dt(),pt()));y();w--}function tt(n){if(v())return(n&&ut(),w++,o.updateSize(!0),w--,!0)}function it(){v()&&ut()}function ut(){nt="number"==typeof e.contentHeight?e.contentHeight:"number"==typeof e.height?e.height-(p?p.outerHeight(!0):0):Math.round(a.width()/Math.max(e.aspectRatio,.5))}function at(n){!w&&n.target===window&&o.start&&tt(!0)&&o.trigger("windowResize",et)}function vt(){yt();ft()}function b(){v()&&(k(),o.displayEvents(st),y())}function yt(){k();o.clearEvents();y()}function pt(){!e.lazyFetching||wi(o.start,o.end)?ft():b()}function ft(){bi(o.start,o.end)}function wt(n){st=n;b()}function bt(){b()}function kt(){l.updateTitle(o.title)}function dt(){var n=f.getNow();n.isWithin(o.intervalStart,o.intervalEnd)?l.disableButton("today"):l.enableButton("today")}function ni(){o.select(f.buildSelectSpan.apply(f,arguments))}function ti(){o&&o.unselect()}function ii(){s=o.computePrevDate(s);h()}function ri(){s=o.computeNextDate(s);h()}function ui(){s.add(-1,"years");h()}function fi(){s.add(1,"years");h()}function ei(){s=f.getNow();h()}function oi(n){s=f.moment(n).stripZone();h()}function si(n){s.add(t.duration(n));h()}function hi(n,t){var i;t=t||"day";i=f.getViewSpec(t)||f.getUnitViewSpec(t);s=n.clone();h(i?i.type:null)}function ci(){return f.applyTimezone(s)}function k(){a.css({width:"100%",height:a.height(),overflow:"hidden"})}function y(){a.css({width:"",height:"",overflow:""})}function li(){return f}function ai(){return o}function vi(n,t){return void 0===t?e[n]:void(("height"==n||"contentHeight"==n||"aspectRatio"==n)&&(e[n]=t,tt(!0)))}function yi(n,t){var i=Array.prototype.slice.call(arguments,2);return t=t||et,this.triggerWith(n,t,i),e[n]?e[n].apply(t,i):void 0}var f=this,e,c,g;f.initOptions(u||{});e=this.options;f.render=ht;f.destroy=lt;f.refetchEvents=vt;f.reportEvents=wt;f.reportEventChange=bt;f.rerenderEvents=b;f.changeView=h;f.select=ni;f.unselect=ti;f.prev=ii;f.next=ri;f.prevYear=ui;f.nextYear=fi;f.today=ei;f.gotoDate=oi;f.incrementDate=si;f.zoomTo=hi;f.getDate=ci;f.getCalendar=li;f.getView=ai;f.option=vi;f.trigger=yi;c=rt(iu(e.lang));(e.monthNames&&(c._months=e.monthNames),e.monthNamesShort&&(c._monthsShort=e.monthNamesShort),e.dayNames&&(c._weekdays=e.dayNames),e.dayNamesShort&&(c._weekdaysShort=e.dayNamesShort),null!=e.firstDay)&&(g=rt(c._week),g.dow=e.firstDay,c._week=g);c._fullCalendar_weekCalc=function(n){return"function"==typeof n?n:"local"===n?n:"iso"===n||"ISO"===n?"ISO":void 0}(e.weekNumberCalculation);f.defaultAllDayEventDuration=t.duration(e.defaultAllDayEventDuration);f.defaultTimedEventDuration=t.duration(e.defaultTimedEventDuration);f.moment=function(){var n;return"local"===e.timezone?(n=i.moment.apply(null,arguments),n.hasTime()&&n.local()):n="UTC"===e.timezone?i.moment.utc.apply(null,arguments):i.moment.parseZone.apply(null,arguments),"_locale"in n?n._locale=c:n._lang=c,n};f.getIsAmbigTimezone=function(){return"local"!==e.timezone&&"UTC"!==e.timezone};f.applyTimezone=function(n){if(!n.hasTime())return n.clone();var i,t=f.moment(n.toArray()),r=n.time()-t.time();return r&&(i=t.clone().add(r),n.time()-i.time()==0&&(t=i)),t};f.getNow=function(){var n=e.now;return"function"==typeof n&&(n=n()),f.moment(n).stripZone()};f.getEventEnd=function(n){return n.end?n.end.clone():f.getDefaultEventEnd(n.allDay,n.start)};f.getDefaultEventEnd=function(n,t){var i=t.clone();return n?i.stripTime().add(f.defaultAllDayEventDuration):i.add(f.defaultTimedEventDuration),f.getIsAmbigTimezone()&&i.stripZone(),i};f.humanizeDuration=function(n){return(n.locale||n.lang).call(n,e.lang).humanize()};kf.call(f,e);var l,p,a,pi,o,nt,d,s,wi=f.isFetchNeeded,bi=f.fetchEvents,et=r[0],ot={},w=0,st=[];s=null!=e.defaultDate?f.moment(e.defaultDate).stripZone():f.getNow();f.getSuggestedViewHeight=function(){return void 0===nt&&it(),nt};f.isHeightAuto=function(){return"auto"===e.contentHeight||"auto"===e.height};f.freezeContentHeight=k;f.unfreezeContentHeight=y;f.initialize()}function tu(t){n.each(ee,function(n,i){null==t[n]&&(t[n]=i(t))})}function iu(n){var i=t.localeData||t.langData;return i.call(t,n)||i.call(t,"en")}function bf(t,i){function h(){var t=i.header;return u=i.theme?"ui":"fc",t?f=n("<div class='fc-toolbar'/>").append(o("left")).append(o("right")).append(o("center")).append('<div class="fc-clear"/>'):void 0}function c(){f.remove();f=n()}function o(f){var e=n('<div class="fc-'+f+'"/>'),o=i.header[f];return o&&n.each(o.split(" "),function(){var o,f=n(),h=!0;n.each(this.split(","),function(e,o){var l,p,a,v,y,w,b,k,d,c;"title"==o?(f=f.add(n("<h2>&nbsp;<\/h2>")),h=!1):((l=(t.options.customButtons||{})[o])?(a=function(n){l.click&&l.click.call(c[0],n)},v="",y=l.text):(p=t.getViewSpec(o))?(a=function(){t.changeView(o)},s.push(o),v=p.buttonTextOverride,y=p.buttonTextDefault):t[o]&&(a=function(){t[o]()},v=(t.overrides.buttonText||{})[o],y=i.buttonText[o]),a&&(w=l?l.themeIcon:i.themeButtonIcons[o],b=l?l.icon:i.buttonIcons[o],k=v?r(v):w&&i.theme?"<span class='ui-icon ui-icon-"+w+"'><\/span>":b&&!i.theme?"<span class='fc-icon fc-icon-"+b+"'><\/span>":r(y),d=["fc-"+o+"-button",u+"-button",u+"-state-default"],c=n('<button type="button" class="'+d.join(" ")+'">'+k+"<\/button>").click(function(n){c.hasClass(u+"-state-disabled")||(a(n),(c.hasClass(u+"-state-active")||c.hasClass(u+"-state-disabled"))&&c.removeClass(u+"-state-hover"))}).mousedown(function(){c.not("."+u+"-state-active").not("."+u+"-state-disabled").addClass(u+"-state-down")}).mouseup(function(){c.removeClass(u+"-state-down")}).hover(function(){c.not("."+u+"-state-active").not("."+u+"-state-disabled").addClass(u+"-state-hover")},function(){c.removeClass(u+"-state-hover").removeClass(u+"-state-down")}),f=f.add(c)))});h&&f.first().addClass(u+"-corner-left").end().last().addClass(u+"-corner-right").end();f.length>1?(o=n("<div/>"),h&&o.addClass("fc-button-group"),o.append(f),e.append(o)):e.append(f)}),e}function l(n){f.find("h2").text(n)}function a(n){f.find(".fc-"+n+"-button").addClass(u+"-state-active")}function v(n){f.find(".fc-"+n+"-button").removeClass(u+"-state-active")}function y(n){f.find(".fc-"+n+"-button").attr("disabled","disabled").addClass(u+"-state-disabled")}function p(n){f.find(".fc-"+n+"-button").removeAttr("disabled").removeClass(u+"-state-disabled")}function w(){return s}var e=this,u,f,s;e.render=h;e.removeElement=c;e.updateTitle=l;e.activateButton=a;e.deactivateButton=v;e.disableButton=y;e.enableButton=p;e.getViewsWithButtons=w;f=n();s=[]}function kf(r){function lt(n,t){return!o||o>n||t>c}function at(n,t){var u,r,i;for(o=n,c=t,f=[],u=++b,r=e.length,y=r,i=0;r>i;i++)k(e[i],u)}function k(t,i){d(t,function(r){var u,e,o,s=n.isArray(t.events);if(i==b){if(r)for(u=0;u<r.length;u++)e=r[u],o=s?e:h(e,t),o&&f.push.apply(f,a(o));y--;y||v(f)}})}function d(t,f){for(var l,v=i.sourceFetchers,e,y,h=0;h<v.length;h++){if(l=v[h].call(u,t,o.clone(),c.clone(),r.timezone,f),l===!0)return;if("object"==typeof l)return void d(l,f)}if(e=t.events,e)n.isFunction(e)?(u.pushLoading(),e.call(u,o.clone(),c.clone(),r.timezone,function(n){f(n);u.popLoading()})):n.isArray(e)?f(e):f();else if(y=t.url,y){var p,k=t.success,g=t.error,nt=t.complete;p=n.isFunction(t.data)?t.data():t.data;var a=n.extend({},p||{}),w=s(t.startParam,r.startParam),b=s(t.endParam,r.endParam),tt=s(t.timezoneParam,r.timezoneParam);w&&(a[w]=o.format());b&&(a[b]=c.format());r.timezone&&"local"!=r.timezone&&(a[tt]=r.timezone);u.pushLoading();n.ajax(n.extend({},fu,t,{data:a,success:function(t){t=t||[];var i=ut(k,this,arguments);n.isArray(i)&&(t=i);f(t)},error:function(){ut(g,this,arguments);f()},complete:function(){ut(nt,this,arguments);u.popLoading()}}))}else f()}function vt(n){var t=g(n);t&&(e.push(t),y++,k(t,b))}function g(t){var r,f,e=i.sourceNormalizers;if(n.isFunction(t)||n.isArray(t)?r={events:t}:"string"==typeof t?r={url:t}:"object"==typeof t&&(r=n.extend({},t)),r){for(r.className?"string"==typeof r.className&&(r.className=r.className.split(/\s+/)):r.className=[],n.isArray(r.events)&&(r.origArray=r.events,r.events=n.map(r.events,function(n){return h(n,r)})),f=0;f<e.length;f++)e[f].call(u,r);return r}}function yt(t){e=n.grep(e,function(n){return!nt(n,t)});f=n.grep(f,function(n){return!nt(n.source,t)});v(f)}function nt(n,t){return n&&t&&tt(n)==tt(t)}function tt(n){return("object"==typeof n?n.origArray||n.googleCalendarId||n.url||n.events:null)||n}function pt(n){n.start=u.moment(n.start);n.end=n.end?u.moment(n.end):null;et(n,wt(n));v(f)}function wt(t){var i={};return n.each(t,function(n,t){it(n)&&void 0!==t&&nf(t)&&(i[n]=t)}),i}function it(n){return!/^_|^(id|allDay|start|end)$/.test(n)}function bt(n,t){var r,u,i,e=h(n);if(e){for(r=a(e),u=0;u<r.length;u++)i=r[u],i.source||(t&&(w.events.push(i),i.source=w),f.push(i));return v(f),r}return[]}function kt(t){var r,i;for(null==t?t=function(){return!0}:n.isFunction(t)||(r=t+"",t=function(n){return n._id==r}),f=n.grep(f,t,!0),i=0;i<e.length;i++)n.isArray(e[i].events)&&(e[i].events=n.grep(e[i].events,t,!0));v(f)}function p(t){return n.isFunction(t)?n.grep(f,t):null!=t?(t+="",n.grep(f,function(n){return n._id==t})):f}function h(i,f){var o,e,c,h={};if(r.eventDataTransform&&(i=r.eventDataTransform(i)),f&&f.eventDataTransform&&(i=f.eventDataTransform(i)),n.extend(h,i),f&&(h.source=f),h._id=i._id||(void 0===i.id?"_fc"+eu++:i.id+""),h.className=i.className?"string"==typeof i.className?i.className.split(/\s+/):i.className:[],o=i.start||i.date,e=i.end,er(o)&&(o=t.duration(o)),er(e)&&(e=t.duration(e)),i.dow||t.isDuration(o)||t.isDuration(e))h.start=o?t.duration(o):null,h.end=e?t.duration(e):null,h._recurring=!0;else{if(o&&(o=u.moment(o),!o.isValid()))return!1;e&&(e=u.moment(e),e.isValid()||(e=null));c=i.allDay;void 0===c&&(c=s(f?f.allDayDefault:void 0,r.allDayDefault));rt(o,e,c,h)}return h}function rt(n,t,i,r){r.start=n;r.end=t;r.allDay=i;l(r);ri(r)}function l(n){ft(n);n.end&&!n.end.isAfter(n.start)&&(n.end=null);n.end||(n.end=r.forceEventDuration?u.getDefaultEventEnd(n.allDay,n.start):null)}function ft(n){null==n.allDay&&(n.allDay=!(n.start.hasTime()||n.end&&n.end.hasTime()));n.allDay?(n.start.stripTime(),n.end&&n.end.stripTime()):(n.start.hasTime()||(n.start=u.applyTimezone(n.start.time(0))),n.end&&!n.end.hasTime()&&(n.end=u.applyTimezone(n.end.time(0))))}function a(t,i,r){var f,a,e,u,s,h,l,v,y,p=[];if(i=i||o,r=r||c,t)if(t._recurring){if(a=t.dow)for(f={},e=0;e<a.length;e++)f[a[e]]=!0;for(u=i.clone().stripTime();u.isBefore(r);)(!f||f[u.day()])&&(s=t.start,h=t.end,l=u.clone(),v=null,s&&(l=l.time(s)),h&&(v=u.clone().time(h)),y=n.extend({},t),rt(l,v,!s&&!h,y),p.push(y)),u.add(1,"days")}else p.push(t);return p}function et(t,i,r){function s(n,t){return r?fr(n,t,r):i.allDay?pu(n,t):ur(n,t)}var f,h,e,c,o,a,v={};return i=i||{},i.start||(i.start=t.start.clone()),void 0===i.end&&(i.end=t.end?t.end.clone():null),null==i.allDay&&(i.allDay=t.allDay),l(i),f={start:t._start.clone(),end:t._end?t._end.clone():u.getDefaultEventEnd(t._allDay,t._start),allDay:i.allDay},l(f),h=null!==t._end&&null===i.end,e=s(i.start,f.start),i.end?(c=s(i.end,f.end),o=c.subtract(e)):o=null,n.each(i,function(n,t){it(n)&&void 0!==t&&(v[n]=t)}),a=dt(p(t._id),h,i.allDay,e,o,v),{dateDelta:e,durationDelta:o,undo:a}}function dt(t,i,r,f,e,o){var h=u.getIsAmbigTimezone(),s=[];return f&&!f.valueOf()&&(f=null),e&&!e.valueOf()&&(e=null),n.each(t,function(t,c){var v,a;v={start:c.start.clone(),end:c.end?c.end.clone():null,allDay:c.allDay};n.each(o,function(n){v[n]=c[n]});a={start:c._start,end:c._end,allDay:r};l(a);i?a.end=null:e&&!a.end&&(a.end=u.getDefaultEventEnd(a.allDay,a.start));f&&(a.start.add(f),a.end&&a.end.add(f));e&&a.end.add(e);h&&!a.allDay&&(f||e)&&(a.start.stripZone(),a.end&&a.end.stripZone());n.extend(c,o,a);ri(c);s.push(function(){n.extend(c,v);ri(c)})}),function(){for(var n=0;n<s.length;n++)s[n]()}}function ot(t){var i,f=r.businessHours,e=u.getView();return f&&(i=n.extend({},{className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},"object"==typeof f?f:{})),i?(t&&(i.start=null,i.end=null),a(h(i),e.start,e.end)):[]}function st(n,t){var i=t.source||{},u=s(t.constraint,i.constraint,r.eventConstraint),f=s(t.overlap,i.overlap,r.eventOverlap);return ct(n,u,f,t)}function gt(t,i,r){var f,u;return r&&(f=n.extend({},r,i),u=a(h(f))[0]),u?st(t,u):ht(t)}function ht(n){return ct(n,r.selectConstraint,r.selectOverlap)}function ct(n,t,i,r){var h,c,l,f,e,o;if(null!=t){for(h=ni(t),c=!1,f=0;f<h.length;f++)if(ti(h[f],n)){c=!0;break}if(!c)return!1}for(l=u.getPeerEvents(n,r),f=0;f<l.length;f++)if((e=l[f],ii(e,n))&&(i===!1||"function"==typeof i&&!i(e,r)||r&&((o=s(e.overlap,(e.source||{}).overlap),o===!1)||"function"==typeof o&&!o(r,e))))return!1;return!0}function ni(n){return"businessHours"===n?ot():"object"==typeof n?a(h(n)):p(n)}function ti(n,t){var i=n.start.clone().stripZone(),r=u.getEventEnd(n).stripZone();return t.start>=i&&t.end<=r}function ii(n,t){var i=n.start.clone().stripZone(),r=u.getEventEnd(n).stripZone();return t.start<r&&t.end>i}var u=this;u.isFetchNeeded=lt;u.fetchEvents=at;u.addEventSource=vt;u.removeEventSource=yt;u.updateEvent=pt;u.renderEvent=bt;u.removeEvents=kt;u.clientEvents=p;u.mutateEvent=et;u.normalizeEventDates=l;u.normalizeEventTimes=ft;var o,c,v=u.reportEvents,w={events:[]},e=[w],b=0,y=0,f=[];n.each((r.events?[r.events]:[]).concat(r.eventSources||[]),function(n,t){var i=g(t);i&&e.push(i)});u.getBusinessHoursEvents=ot;u.isEventSpanAllowed=st;u.isExternalSpanAllowed=gt;u.isSelectionSpanAllowed=ht;u.getEventCache=function(){return f}}function ri(n){n._allDay=n.allDay;n._start=n.start.clone();n._end=n.end?n.end.clone():null}var i=n.fullCalendar={version:"2.6.1",internalApiVersion:3},a=i.views={},ui,et,fi,ot,si,uu,st,hi,nt,ci,b,e,y,fu,eu;n.fn.fullCalendar=function(t){var r=Array.prototype.slice.call(arguments,1),i=this;return this.each(function(u,f){var h,s=n(f),o=s.data("fullCalendar");"string"==typeof t?o&&n.isFunction(o[t])&&(h=o[t].apply(o,r),u||(i=h),"destroy"===t&&s.removeData("fullCalendar")):o||(o=new e(s,t),s.data("fullCalendar",o),o.render())}),i};ui=["header","buttonText","buttonIcons","themeButtonIcons"];i.intersectRanges=yt;i.applyAll=ut;i.debounce=gt;i.isInt=c;i.htmlEscape=r;i.cssToStr=ft;i.proxy=o;i.capitaliseFirstLetter=tf;i.getOuterRect=vt;i.getClientRect=ki;i.getContentRect=hu;i.getScrollbarWidths=it;et=null;i.intersectRects=gi;i.parseFieldSpecs=nr;i.compareByFieldSpecs=tr;i.compareByFieldSpec=ir;i.flexibleCompare=rr;i.computeIntervalUnit=pt;i.divideRangeByDuration=bu;i.divideDurationByDuration=wt;i.multiplyDuration=ku;i.durationHasTime=p;fi=["sun","mon","tue","wed","thu","fri","sat"];ot=["year","month","week","day","hour","minute","second","millisecond"];i.log=function(){var n=window.console;if(n&&n.log)return n.log.apply(n,arguments)};i.warn=function(){var n=window.console;return n&&n.warn?n.warn.apply(n,arguments):i.log.apply(i,arguments)};var ei,oi,ru,df={}.hasOwnProperty,gf=/^\s*\d{4}-\d\d$/,ne=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,u=t.fn,f=n.extend({},u);i.moment=function(){return ni(arguments)};i.moment.utc=function(){var n=ni(arguments,!0);return n.hasTime()&&n.utc(),n};i.moment.parseZone=function(){return ni(arguments,!0,!0)};u.clone=function(){var n=f.clone.apply(this,arguments);return sr(this,n),this._fullCalendar&&(n._fullCalendar=!0),n};u.week=u.weeks=function(n){var t=(this._locale||this._lang)._fullCalendar_weekCalc;return null==n&&"function"==typeof t?t(this):"ISO"===t?f.isoWeek.apply(this,arguments):f.week.apply(this,arguments)};u.time=function(n){if(!this._fullCalendar)return f.time.apply(this,arguments);if(null==n)return t.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1;t.isDuration(n)||t.isMoment(n)||(n=t.duration(n));var i=0;return t.isDuration(n)&&(i=24*Math.floor(n.asDays())),this.hours(i+n.hours()).minutes(n.minutes()).seconds(n.seconds()).milliseconds(n.milliseconds())};u.stripTime=function(){var n;return this._ambigTime||(n=this.toArray(),this.utc(),oi(this,n.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this};u.hasTime=function(){return!this._ambigTime};u.stripZone=function(){var n,t;return this._ambigZone||(n=this.toArray(),t=this._ambigTime,this.utc(),oi(this,n),this._ambigTime=t||!1,this._ambigZone=!0),this};u.hasZone=function(){return!this._ambigZone};u.local=function(){var n=this.toArray(),t=this._ambigZone;return f.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,t&&ru(this,n),this};u.utc=function(){return f.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this};n.each(["zone","utcOffset"],function(n,t){f[t]&&(u[t]=function(n){return null!=n&&(this._ambigTime=!1,this._ambigZone=!1),f[t].apply(this,arguments)})});u.format=function(){return this._fullCalendar&&arguments[0]?uf(this,arguments[0]):this._ambigTime?l(this,"YYYY-MM-DD"):this._ambigZone?l(this,"YYYY-MM-DD[T]HH:mm:ss"):f.format.apply(this,arguments)};u.toISOString=function(){return this._ambigTime?l(this,"YYYY-MM-DD"):this._ambigZone?l(this,"YYYY-MM-DD[T]HH:mm:ss"):f.toISOString.apply(this,arguments)};u.isWithin=function(n,t){var i=ti([this,n,t]);return i[0]>=i[1]&&i[0]<i[2]};u.isSame=function(n,t){var r;return this._fullCalendar?t?(r=ti([this,n],!0),f.isSame.call(r[0],r[1],t)):(n=i.moment.parseZone(n),f.isSame.call(this,n)&&Boolean(this._ambigTime)===Boolean(n._ambigTime)&&Boolean(this._ambigZone)===Boolean(n._ambigZone)):f.isSame.apply(this,arguments)};n.each(["isBefore","isAfter"],function(n,t){u[t]=function(n,i){var r;return this._fullCalendar?(r=ti([this,n]),f[t].call(r[0],r[1],i)):f[t].apply(this,arguments)}});ei="_d"in t()&&"updateOffset"in t;oi=ei?function(n,i){n._d.setTime(Date.UTC.apply(Date,i));t.updateOffset(n,!1)}:hr;ru=ei?function(n,i){n._d.setTime(+new Date(i[0]||0,i[1]||0,i[2]||0,i[3]||0,i[4]||0,i[5]||0,i[6]||0));t.updateOffset(n,!1)}:hr;si={t:function(n){return l(n,"a").charAt(0)},T:function(n){return l(n,"A").charAt(0)}};i.formatRange=lr;uu={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"};st={};i.Class=h;h.extend=function(){for(var t,i=arguments.length,n=0;i>n;n++)t=arguments[n],i-1>n&&pr(this,t);return ef(this,t||{})};h.mixin=function(n){pr(this,n)};var te=i.Emitter=h.extend({callbackHash:null,on:function(n,t){return this.getCallbacks(n).add(t),this},off:function(n,t){return this.getCallbacks(n).remove(t),this},trigger:function(n){var t=Array.prototype.slice.call(arguments,1);return this.triggerWith(n,this,t),this},triggerWith:function(n,t,i){var r=this.getCallbacks(n);return r.fireWith(t,i),this},getCallbacks:function(t){var i;return this.callbackHash||(this.callbackHash={}),i=this.callbackHash[t],i||(i=this.callbackHash[t]=n.Callbacks()),i}}),ie=h.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(n){this.options=n||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var i=this,t=this.options;this.el=n('<div class="fc-popover"/>').addClass(t.className||"").css({top:0,left:0}).append(t.content).appendTo(t.parentEl);this.el.on("click",".fc-close",function(){i.hide()});t.autoHide&&n(document).on("mousedown",this.documentMousedownProxy=o(this,"documentMousedown"))},documentMousedown:function(t){this.el&&!n(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide();this.el&&(this.el.remove(),this.el=null);n(document).off("mousedown",this.documentMousedownProxy)},position:function(){var f,e,o,t,i,r=this.options,h=this.el.offsetParent().offset(),c=this.el.outerWidth(),l=this.el.outerHeight(),s=n(window),u=at(this.el);t=r.top||0;i=void 0!==r.left?r.left:void 0!==r.right?r.right-c:0;u.is(window)||u.is(document)?(u=s,f=0,e=0):(o=u.offset(),f=o.top,e=o.left);f+=s.scrollTop();e+=s.scrollLeft();r.viewportConstrain!==!1&&(t=Math.min(t,f+u.outerHeight()-l-this.margin),t=Math.max(t,f+this.margin),i=Math.min(i,e+u.outerWidth()-c-this.margin),i=Math.max(i,e+this.margin));this.el.css({top:t-h.top,left:i-h.left})},trigger:function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))}}),ht=i.CoordCache=h.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(t){this.els=n(t.els);this.isHorizontal=t.isHorizontal;this.isVertical=t.isVertical;this.forcedOffsetParentEl=t.offsetParent?n(t.offsetParent):null},build:function(){var n=this.forcedOffsetParentEl||this.els.eq(0).offsetParent();this.origin=n.offset();this.boundingRect=this.queryBoundingRect();this.isHorizontal&&this.buildElHorizontals();this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null;this.boundingRect=null;this.lefts=null;this.rights=null;this.tops=null;this.bottoms=null},ensureBuilt:function(){this.origin||this.build()},queryBoundingRect:function(){var n=at(this.els.eq(0));if(!n.is(document))return ki(n)},buildElHorizontals:function(){var t=[],i=[];this.els.each(function(r,u){var f=n(u),e=f.offset().left,o=f.outerWidth();t.push(e);i.push(e+o)});this.lefts=t;this.rights=i},buildElVerticals:function(){var t=[],i=[];this.els.each(function(r,u){var f=n(u),e=f.offset().top,o=f.outerHeight();t.push(e);i.push(e+o)});this.tops=t;this.bottoms=i},getHorizontalIndex:function(n){this.ensureBuilt();var t,i=this.boundingRect,r=this.lefts,u=this.rights,f=r.length;if(!i||n>=i.left&&n<i.right)for(t=0;f>t;t++)if(n>=r[t]&&n<u[t])return t},getVerticalIndex:function(n){this.ensureBuilt();var t,i=this.boundingRect,r=this.tops,u=this.bottoms,f=r.length;if(!i||n>=i.top&&n<i.bottom)for(t=0;f>t;t++)if(n>=r[t]&&n<u[t])return t},getLeftOffset:function(n){return this.ensureBuilt(),this.lefts[n]},getLeftPosition:function(n){return this.ensureBuilt(),this.lefts[n]-this.origin.left},getRightOffset:function(n){return this.ensureBuilt(),this.rights[n]},getRightPosition:function(n){return this.ensureBuilt(),this.rights[n]-this.origin.left},getWidth:function(n){return this.ensureBuilt(),this.rights[n]-this.lefts[n]},getTopOffset:function(n){return this.ensureBuilt(),this.tops[n]},getTopPosition:function(n){return this.ensureBuilt(),this.tops[n]-this.origin.top},getBottomOffset:function(n){return this.ensureBuilt(),this.bottoms[n]},getBottomPosition:function(n){return this.ensureBuilt(),this.bottoms[n]-this.origin.top},getHeight:function(n){return this.ensureBuilt(),this.bottoms[n]-this.tops[n]}}),v=i.DragListener=h.extend({options:null,isListening:!1,isDragging:!1,originX:null,originY:null,mousemoveProxy:null,mouseupProxy:null,subjectEl:null,subjectHref:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(n){n=n||{};this.options=n;this.subjectEl=n.subjectEl},mousedown:function(n){di(n)&&(n.preventDefault(),this.startListening(n),this.options.distance||this.startDrag(n))},startListening:function(t){var i;this.isListening||(t&&this.options.scroll&&(i=at(n(t.target)),i.is(window)||i.is(document)||(this.scrollEl=i,this.scrollHandlerProxy=gt(o(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),n(document).on("mousemove",this.mousemoveProxy=o(this,"mousemove")).on("mouseup",this.mouseupProxy=o(this,"mouseup")).on("selectstart",this.preventDefault),t?(this.originX=t.pageX,this.originY=t.pageY):(this.originX=0,this.originY=0),this.isListening=!0,this.listenStart(t))},listenStart:function(n){this.trigger("listenStart",n)},mousemove:function(n){var t,u,i=n.pageX-this.originX,r=n.pageY-this.originY;this.isDragging||(t=this.options.distance||1,u=i*i+r*r,u>=t*t&&this.startDrag(n));this.isDragging&&this.drag(i,r,n)},startDrag:function(n){this.isListening||this.startListening();this.isDragging||(this.isDragging=!0,this.dragStart(n))},dragStart:function(n){var t=this.subjectEl;this.trigger("dragStart",n);(this.subjectHref=t?t.attr("href"):null)&&t.removeAttr("href")},drag:function(n,t,i){this.trigger("drag",n,t,i);this.updateScroll(i)},mouseup:function(n){this.stopListening(n)},stopDrag:function(n){this.isDragging&&(this.stopScrolling(),this.dragStop(n),this.isDragging=!1)},dragStop:function(n){var t=this;this.trigger("dragStop",n);setTimeout(function(){t.subjectHref&&t.subjectEl.attr("href",t.subjectHref)},0)},stopListening:function(t){this.stopDrag(t);this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),n(document).off("mousemove",this.mousemoveProxy).off("mouseup",this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.listenStop(t))},listenStop:function(n){this.trigger("listenStop",n)},trigger:function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(n){n.preventDefault()},computeScrollBounds:function(){var n=this.scrollEl;this.scrollBounds=n?vt(n):null},updateScroll:function(n){var r,u,f,e,t=this.scrollSensitivity,i=this.scrollBounds,o=0,s=0;i&&(r=(t-(n.pageY-i.top))/t,u=(t-(i.bottom-n.pageY))/t,f=(t-(n.pageX-i.left))/t,e=(t-(i.right-n.pageX))/t,r>=0&&1>=r?o=r*this.scrollSpeed*-1:u>=0&&1>=u&&(o=u*this.scrollSpeed),f>=0&&1>=f?s=f*this.scrollSpeed*-1:e>=0&&1>=e&&(s=e*this.scrollSpeed));this.setScrollVel(o,s)},setScrollVel:function(n,t){this.scrollTopVel=n;this.scrollLeftVel=t;this.constrainScrollVel();!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(o(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var n=this.scrollEl;this.scrollTopVel<0?n.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&n.scrollTop()+n[0].clientHeight>=n[0].scrollHeight&&(this.scrollTopVel=0);this.scrollLeftVel<0?n.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&n.scrollLeft()+n[0].clientWidth>=n[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var n=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&n.scrollTop(n.scrollTop()+this.scrollTopVel*t);this.scrollLeftVel&&n.scrollLeft(n.scrollLeft()+this.scrollLeftVel*t);this.constrainScrollVel();this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.scrollStop())},scrollHandler:function(){this.scrollIntervalId||this.scrollStop()},scrollStop:function(){}}),ct=v.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(n,t){v.call(this,t);this.component=n},listenStart:function(n){var i,r,t,u=this.subjectEl;v.prototype.listenStart.apply(this,arguments);this.computeCoords();n?(r={left:n.pageX,top:n.pageY},t=r,u&&(i=vt(u),t=au(t,i)),this.origHit=this.queryHit(t.left,t.top),u&&this.options.subjectCenter&&(this.origHit&&(i=gi(this.origHit,i)||i),t=vu(i)),this.coordAdjust=yu(t,r)):(this.origHit=null,this.coordAdjust=null)},computeCoords:function(){this.component.prepareHits();this.computeScrollBounds()},dragStart:function(n){var t;v.prototype.dragStart.apply(this,arguments);t=this.queryHit(n.pageX,n.pageY);t&&this.hitOver(t)},drag:function(n,t,i){var r;v.prototype.drag.apply(this,arguments);r=this.queryHit(i.pageX,i.pageY);wr(r,this.hit)||(this.hit&&this.hitOut(),r&&this.hitOver(r))},dragStop:function(){this.hitDone();v.prototype.dragStop.apply(this,arguments)},hitOver:function(n){var t=wr(n,this.origHit);this.hit=n;this.trigger("hitOver",this.hit,t,this.origHit)},hitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.hitDone(),this.hit=null)},hitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},listenStop:function(){v.prototype.listenStop.apply(this,arguments);this.origHit=null;this.hit=null;this.component.releaseHits()},scrollStop:function(){v.prototype.scrollStop.apply(this,arguments);this.computeCoords()},queryHit:function(n,t){return this.coordAdjust&&(n+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(n,t)}}),re=h.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,i){this.options=i=i||{};this.sourceEl=t;this.parentEl=i.parentEl?n(i.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.mouseY0=t.pageY,this.mouseX0=t.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),n(document).on("mousemove",this.mousemoveProxy=o(this,"mousemove")))},stop:function(t,i){function r(){this.isAnimating=!1;f.removeElement();this.top0=this.left0=null;i&&i()}var f=this,u=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,n(document).off("mousemove",this.mousemoveProxy),t&&u&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:u,complete:r})):r())},getEl:function(){var n=this.el;return n||(this.sourceEl.width(),n=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),n},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var n,t;this.getEl();null===this.top0&&(this.sourceEl.width(),n=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=n.top-t.top,this.left0=n.left-t.left);this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(n){this.topDelta=n.pageY-this.mouseY0;this.leftDelta=n.pageX-this.mouseX0;this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),w=i.Grid=h.extend({view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,externalDragStartProxy:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,constructor:function(n){this.view=n;this.isRTL=n.opt("isRTL");this.elsByFill={};this.externalDragStartProxy=o(this,"externalDragStart")},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(n){this.start=n.start.clone();this.end=n.end.clone();this.rangeUpdated();this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var n,t,i=this.view;this.eventTimeFormat=i.opt("eventTimeFormat")||i.opt("timeFormat")||this.computeEventTimeFormat();n=i.opt("displayEventTime");null==n&&(n=this.computeDisplayEventTime());t=i.opt("displayEventEnd");null==t&&(t=this.computeDisplayEventEnd());this.displayEventTime=n;this.displayEventEnd=t},spanToSegs:function(){},diffDates:function(n,t){return this.largeUnit?fr(n,t,this.largeUnit):ur(n,t)},prepareHits:function(){},releaseHits:function(){},queryHit:function(){},getHitSpan:function(){},getHitEl:function(){},setElement:function(t){var i=this;this.el=t;t.on("mousedown",function(t){n(t.target).is(".fc-event-container *, .fc-more")||n(t.target).closest(".fc-popover").length||i.dayMousedown(t)});this.bindSegHandlers();this.bindGlobalHandlers()},removeElement:function(){this.unbindGlobalHandlers();this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){n(document).on("dragstart sortstart",this.externalDragStartProxy)},unbindGlobalHandlers:function(){n(document).off("dragstart sortstart",this.externalDragStartProxy)},dayMousedown:function(n){var r,t,i=this,u=this.view,f=u.opt("selectable"),e=new ct(this,{scroll:u.opt("dragScroll"),dragStart:function(){u.unselect()},hitOver:function(n,u,e){e&&(r=u?n:null,f&&(t=i.computeSelection(i.getHitSpan(e),i.getHitSpan(n)),t?i.renderSelection(t):t===!1&&tt()))},hitOut:function(){r=null;t=null;i.unrenderSelection();g()},listenStop:function(n){r&&u.triggerDayClick(i.getHitSpan(r),i.getHitEl(r),n);t&&u.reportSelection(t,n);g()}});e.mousedown(n)},renderEventLocationHelper:function(n,t){var i=this.fabricateHelperEvent(n,t);this.renderHelper(i,t)},fabricateHelperEvent:function(n,t){var i=t?rt(t.event):{};return i.start=n.start.clone(),i.end=n.end?n.end.clone():null,i.allDay=null,this.view.calendar.normalizeEventDates(i),i.className=(i.className||[]).concat("fc-helper"),t||(i.editable=!1),i},renderHelper:function(){},unrenderHelper:function(){},renderSelection:function(n){this.renderHighlight(n)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(n,t){var i=this.computeSelectionSpan(n,t);return i&&!this.view.calendar.isSelectionSpanAllowed(i)?!1:i},computeSelectionSpan:function(n,t){var i=[n.start,n.end,t.start,t.end];return i.sort(rf),{start:i[0].clone(),end:i[3].clone()}},renderHighlight:function(n){this.renderFill("highlight",this.spanToSegs(n))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(){},unrenderNowIndicator:function(){},renderFill:function(){},unrenderFill:function(n){var t=this.elsByFill[n];t&&(t.remove(),delete this.elsByFill[n])},renderFillSegEls:function(t,i){var r,u=this,f=this[t+"SegEl"],e="",o=[];if(i.length){for(r=0;r<i.length;r++)e+=this.fillSegHtml(t,i[r]);n(e).each(function(t,r){var s=i[t],e=n(r);f&&(e=f.call(u,s,e));e&&(e=n(e),e.is(u.fillSegTag)&&(s.el=e,o.push(s)))})}return o},fillSegTag:"div",fillSegHtml:function(n,t){var i=this[n+"SegClasses"],r=this[n+"SegCss"],u=i?i.call(this,t):[],f=ft(r?r.call(this,t):{});return"<"+this.fillSegTag+(u.length?' class="'+u.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},getDayClasses:function(n){var i=this.view,r=i.calendar.getNow(),t=["fc-"+fi[n.day()]];return 1==i.intervalDuration.as("months")&&n.month()!=i.intervalStart.month()&&t.push("fc-other-month"),n.isSame(r,"day")?t.push("fc-today",i.highlightStateClass):r>n?t.push("fc-past"):t.push("fc-future"),t}});w.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(n){for(var i=[],r=[],t=0;t<n.length;t++)(kr(n[t])?i:r).push(n[t]);this.segs=[].concat(this.renderBgEvents(i),this.renderFgEvents(r))},renderBgEvents:function(n){var t=this.eventsToSegs(n);return this.renderBgSegs(t)||t},renderFgEvents:function(n){var t=this.eventsToSegs(n);return this.renderFgSegs(t)||t},unrenderEvents:function(){this.triggerSegMouseout();this.unrenderFgSegs();this.unrenderBgSegs();this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(){},unrenderFgSegs:function(){},renderFgSegEls:function(t,i){var r,e=this.view,u="",f=[];if(t.length){for(r=0;r<t.length;r++)u+=this.fgSegHtml(t[r],i);n(u).each(function(i,r){var u=t[i],o=e.resolveEventEl(u.event,n(r));o&&(o.data("fc-seg",u),u.el=o,f.push(u))})}return f},fgSegHtml:function(){},renderBgSegs:function(n){return this.renderFill("bgEvent",n)},unrenderBgSegs:function(){this.unrenderFill("bgEvent")},bgEventSegEl:function(n,t){return this.view.resolveEventEl(n.event,t)},bgEventSegClasses:function(n){var t=n.event,i=t.source||{};return["fc-bgevent"].concat(t.className,i.className||[])},bgEventSegCss:function(n){return{"background-color":this.getSegSkinCss(n)["background-color"]}},businessHoursSegClasses:function(){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var t=this,i=this.view;n.each({mouseenter:function(n,i){t.triggerSegMouseover(n,i)},mouseleave:function(n,i){t.triggerSegMouseout(n,i)},click:function(n,t){return i.trigger("eventClick",this,n.event,t)},mousedown:function(r,u){n(u.target).is(".fc-resizer")&&i.isEventResizable(r.event)?t.segResizeMousedown(r,u,n(u.target).is(".fc-start-resizer")):i.isEventDraggable(r.event)&&t.segDragMousedown(r,u)}},function(i,r){t.el.on(i,".fc-event-container > *",function(i){var u=n(this).data("fc-seg");if(u&&!t.isDraggingSeg&&!t.isResizingSeg)return r.call(this,u,i)})})},triggerSegMouseover:function(n,t){this.mousedOverSeg||(this.mousedOverSeg=n,this.view.trigger("eventMouseover",n.el[0],n.event,t))},triggerSegMouseout:function(n,t){t=t||{};this.mousedOverSeg&&(n=n||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",n.el[0],n.event,t))},segDragMousedown:function(n,t){var r,f=this,i=this.view,s=i.calendar,o=n.el,e=n.event,u=new re(n.el,{parentEl:i.el,opacity:i.opt("dragOpacity"),revertDuration:i.opt("dragRevertDuration"),zIndex:2}),h=new ct(i,{distance:5,scroll:i.opt("dragScroll"),subjectEl:o,subjectCenter:!0,listenStart:function(n){u.hide();u.start(n)},dragStart:function(t){f.triggerSegMouseout(n,t);f.segDragStart(n,t);i.hideEvent(e)},hitOver:function(t,o,h){n.hit&&(h=n.hit);r=f.computeEventDrop(h.component.getHitSpan(h),t.component.getHitSpan(t),e);r&&!s.isEventSpanAllowed(f.eventToSpan(r),e)&&(tt(),r=null);r&&i.renderDrag(r,n)?u.hide():u.show();o&&(r=null)},hitOut:function(){i.unrenderDrag();u.show();r=null},hitDone:function(){g()},dragStop:function(t){u.stop(!r,function(){i.unrenderDrag();i.showEvent(e);f.segDragStop(n,t);r&&i.reportEventDrop(e,r,this.largeUnit,o,t)})},listenStop:function(){u.stop()}});h.mousedown(t)},segDragStart:function(n,t){this.isDraggingSeg=!0;this.view.trigger("eventDragStart",n.el[0],n.event,t,{})},segDragStop:function(n,t){this.isDraggingSeg=!1;this.view.trigger("eventDragStop",n.el[0],n.event,t,{})},computeEventDrop:function(n,t,i){var u,r,e=this.view.calendar,o=n.start,f=t.start;return o.hasTime()===f.hasTime()?(u=this.diffDates(f,o),i.allDay&&p(u)?(r={start:i.start.clone(),end:e.getEventEnd(i),allDay:!1},e.normalizeEventTimes(r)):r={start:i.start.clone(),end:i.end?i.end.clone():null,allDay:i.allDay},r.start.add(u),r.end&&r.end.add(u)):r={start:f.clone(),end:null,allDay:!f.hasTime()},r},applyDragOpacity:function(n){var t=this.view.opt("dragOpacity");null!=t&&n.each(function(n,i){i.style.opacity=t})},externalDragStart:function(t,i){var r,u,f=this.view;f.opt("droppable")&&(r=n((i?i.item:null)||t.target),u=f.opt("dropAccept"),(n.isFunction(u)?u.call(r[0],r):r.is(u))&&(this.isDraggingExternal||this.listenToExternalDrag(r,t,i)))},listenToExternalDrag:function(n,t,i){var r,u=this,e=this.view.calendar,f=cf(n),o=new ct(this,{listenStart:function(){u.isDraggingExternal=!0},hitOver:function(n){r=u.computeExternalDrop(n.component.getHitSpan(n),f);r&&!e.isExternalSpanAllowed(u.eventToSpan(r),r,f.eventProps)&&(tt(),r=null);r&&u.renderDrag(r)},hitOut:function(){r=null},hitDone:function(){g();u.unrenderDrag()},dragStop:function(){r&&u.view.reportExternalDrop(f,r,n,t,i)},listenStop:function(){u.isDraggingExternal=!1}});o.startDrag(t)},computeExternalDrop:function(n,t){var r=this.view.calendar,i={start:r.applyTimezone(n.start),end:null};return t.startTime&&!i.start.hasTime()&&i.start.time(t.startTime),t.duration&&(i.end=i.start.clone().add(t.duration)),i},renderDrag:function(){},unrenderDrag:function(){},segResizeMousedown:function(n,t,i){var r,u=this,e=this.view,o=e.calendar,s=n.el,f=n.event,h=o.getEventEnd(f),c=new ct(this,{distance:5,scroll:e.opt("dragScroll"),subjectEl:s,dragStart:function(t){u.triggerSegMouseout(n,t);u.segResizeStart(n,t)},hitOver:function(t,s,c){var l=u.getHitSpan(c),a=u.getHitSpan(t);r=i?u.computeEventStartResize(l,a,f):u.computeEventEndResize(l,a,f);r&&(o.isEventSpanAllowed(u.eventToSpan(r),f)?r.start.isSame(f.start)&&r.end.isSame(h)&&(r=null):(tt(),r=null));r&&(e.hideEvent(f),u.renderEventResize(r,n))},hitOut:function(){r=null},hitDone:function(){u.unrenderEventResize();e.showEvent(f);g()},dragStop:function(t){u.segResizeStop(n,t);r&&e.reportEventResize(f,r,this.largeUnit,s,t)}});c.mousedown(t)},segResizeStart:function(n,t){this.isResizingSeg=!0;this.view.trigger("eventResizeStart",n.el[0],n.event,t,{})},segResizeStop:function(n,t){this.isResizingSeg=!1;this.view.trigger("eventResizeStop",n.el[0],n.event,t,{})},computeEventStartResize:function(n,t,i){return this.computeEventResize("start",n,t,i)},computeEventEndResize:function(n,t,i){return this.computeEventResize("end",n,t,i)},computeEventResize:function(n,t,i,r){var u,e,f=this.view.calendar,o=this.diffDates(i[n],t[n]);return u={start:r.start.clone(),end:f.getEventEnd(r),allDay:r.allDay},u.allDay&&p(o)&&(u.allDay=!1,f.normalizeEventTimes(u)),u[n].add(o),u.start.isBefore(u.end)||(e=this.minResizeDuration||(r.allDay?f.defaultAllDayEventDuration:f.defaultTimedEventDuration),"start"==n?u.start=u.end.clone().subtract(e):u.end=u.start.clone().add(e)),u},renderEventResize:function(){},unrenderEventResize:function(){},getEventTimeText:function(n,t,i){return null==t&&(t=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&n.start.hasTime()?i&&n.end?this.view.formatRange(n,t):n.start.format(t):""},getSegClasses:function(n,t,i){var r=n.event,u=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(r.className,r.source?r.source.className:[]);return t&&u.push("fc-draggable"),i&&u.push("fc-resizable"),u},getSegSkinCss:function(n){var t=n.event,i=this.view,r=t.source||{},u=t.color,f=r.color,e=i.opt("eventColor");return{"background-color":t.backgroundColor||u||r.backgroundColor||f||i.opt("eventBackgroundColor")||e,"border-color":t.borderColor||u||r.borderColor||f||i.opt("eventBorderColor")||e,color:t.textColor||r.textColor||i.opt("eventTextColor")}},eventToSegs:function(n){return this.eventsToSegs([n])},eventToSpan:function(n){return this.eventToSpans(n)[0]},eventToSpans:function(n){var t=this.eventToRange(n);return this.eventRangeToSpans(t,n)},eventsToSegs:function(t,i){var u=this,f=sf(t),r=[];return n.each(f,function(n,t){for(var e=[],f=0;f<t.length;f++)e.push(u.eventToRange(t[f]));if(of(t[0]))for(e=u.invertRanges(e),f=0;f<e.length;f++)r.push.apply(r,u.eventRangeToSegs(e[f],t[0],i));else for(f=0;f<e.length;f++)r.push.apply(r,u.eventRangeToSegs(e[f],t[f],i))}),r},eventToRange:function(n){return{start:n.start.clone().stripZone(),end:(n.end?n.end.clone():this.view.calendar.getDefaultEventEnd(null!=n.allDay?n.allDay:!n.start.hasTime(),n.start)).stripZone()}},eventRangeToSegs:function(n,t,i){for(var f=this.eventRangeToSpans(n,t),u=[],r=0;r<f.length;r++)u.push.apply(u,this.eventSpanToSegs(f[r],t,i));return u},eventRangeToSpans:function(t){return[n.extend({},t)]},eventSpanToSegs:function(n,t,i){for(var u,f=i?i(n):this.spanToSegs(n),r=0;r<f.length;r++)u=f[r],u.event=t,u.eventStartMS=+n.start,u.eventDurationMS=n.end-n.start;return f},invertRanges:function(n){var i,r,f=this.view,o=f.start.clone(),e=f.end.clone(),u=[],t=o;for(n.sort(hf),i=0;i<n.length;i++)r=n[i],r.start>t&&u.push({start:t,end:r.start}),t=r.end;return e>t&&u.push({start:t,end:e}),u},sortEventSegs:function(n){n.sort(o(this,"compareEventSegs"))},compareEventSegs:function(n,t){return n.eventStartMS-t.eventStartMS||t.eventDurationMS-n.eventDurationMS||t.event.allDay-n.event.allDay||tr(n.event,t.event,this.view.eventOrderSpecs)}});i.isBgEvent=kr;i.dataAttrPrefix="";hi=i.DayTableMixin={breakOnWeeks:!1,dayDates:null,dayIndices:null,daysPerRow:null,rowCnt:null,colCnt:null,colHeadFormat:null,updateDayTable:function(){for(var n,e,r,o=this.view,i=this.start.clone(),u=-1,f=[],t=[];i.isBefore(this.end);)o.isHiddenDay(i)?f.push(u+.5):(u++,f.push(u),t.push(i.clone())),i.add(1,"days");if(this.breakOnWeeks){for(e=t[0].day(),n=1;n<t.length&&t[n].day()!=e;n++);r=Math.ceil(t.length/n)}else r=1,n=t.length;this.dayDates=t;this.dayIndices=f;this.daysPerRow=n;this.rowCnt=r;this.updateDayTableCols()},updateDayTableCols:function(){this.colCnt=this.computeColCnt();this.colHeadFormat=this.view.opt("columnFormat")||this.computeColHeadFormat()},computeColCnt:function(){return this.daysPerRow},getCellDate:function(n,t){return this.dayDates[this.getCellDayIndex(n,t)].clone()},getCellRange:function(n,t){var i=this.getCellDate(n,t),r=i.clone().add(1,"days");return{start:i,end:r}},getCellDayIndex:function(n,t){return n*this.daysPerRow+this.getColDayIndex(t)},getColDayIndex:function(n){return this.isRTL?this.colCnt-1-n:n},getDateDayIndex:function(n){var t=this.dayIndices,i=n.diff(this.start,"days");return 0>i?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},computeColHeadFormat:function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(n){for(var u,f,t,i,e=this.daysPerRow,o=this.view.computeDayRange(n),s=this.getDateDayIndex(o.start),h=this.getDateDayIndex(o.end.clone().subtract(1,"days")),c=[],r=0;r<this.rowCnt;r++)u=r*e,f=u+e-1,t=Math.max(s,u),i=Math.min(h,f),t=Math.ceil(t),i=Math.floor(i),i>=t&&c.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===s,isEnd:i===h});return c},sliceRangeByDay:function(n){for(var u,e,f,t,i,o=this.daysPerRow,s=this.view.computeDayRange(n),h=this.getDateDayIndex(s.start),c=this.getDateDayIndex(s.end.clone().subtract(1,"days")),l=[],r=0;r<this.rowCnt;r++)for(u=r*o,e=u+o-1,f=u;e>=f;f++)t=Math.max(h,f),i=Math.min(c,f),t=Math.ceil(t),i=Math.floor(i),i>=t&&l.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===h,isEnd:i===c});return l},renderHeadHtml:function(){var n=this.view;return'<div class="fc-row '+n.widgetHeaderClass+'"><table><thead>'+this.renderHeadTrHtml()+"<\/thead><\/table><\/div>"},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"<\/tr>"},renderHeadDateCellsHtml:function(){for(var t,i=[],n=0;n<this.colCnt;n++)t=this.getCellDate(0,n),i.push(this.renderHeadDateCellHtml(t));return i.join("")},renderHeadDateCellHtml:function(n,t,i){var u=this.view;return'<th class="fc-day-header '+u.widgetHeaderClass+" fc-"+fi[n.day()]+'"'+(1==this.rowCnt?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(i?" "+i:"")+">"+r(n.format(this.colHeadFormat))+"<\/th>"},renderBgTrHtml:function(n){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(n))+this.renderBgCellsHtml(n)+(this.isRTL?this.renderBgIntroHtml(n):"")+"<\/tr>"},renderBgIntroHtml:function(){return this.renderIntroHtml()},renderBgCellsHtml:function(n){for(var i,r=[],t=0;t<this.colCnt;t++)i=this.getCellDate(n,t),r.push(this.renderBgCellHtml(i));return r.join("")},renderBgCellHtml:function(n,t){var r=this.view,i=this.getDayClasses(n);return i.unshift("fc-day",r.widgetContentClass),'<td class="'+i.join(" ")+'" data-date="'+n.format("YYYY-MM-DD")+'"'+(t?" "+t:"")+"><\/td>"},renderIntroHtml:function(){},bookendCells:function(n){var t=this.renderIntroHtml();t&&(this.isRTL?n.append(t):n.prepend(t))}};nt=i.DayGrid=w.extend(hi,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(n){for(var i,f=this.view,r=this.rowCnt,e=this.colCnt,u="",t=0;r>t;t++)u+=this.renderDayRowHtml(t,n);for(this.el.html(u),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day"),this.rowCoordCache=new ht({els:this.rowEls,isVertical:!0}),this.colCoordCache=new ht({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),t=0;r>t;t++)for(i=0;e>i;i++)f.trigger("dayRender",null,this.getCellDate(t,i),this.getCellEl(t,i))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var n=this.view.calendar.getBusinessHoursEvents(!0),t=this.eventsToSegs(n);this.renderFill("businessHours",t,"bgevent")},renderDayRowHtml:function(n,t){var r=this.view,i=["fc-row","fc-week",r.widgetContentClass];return t&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table>'+this.renderBgTrHtml(n)+'<\/table><\/div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.renderNumberTrHtml(n)+"<\/thead>":"")+"<\/table><\/div><\/div>"},renderNumberTrHtml:function(n){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(n))+this.renderNumberCellsHtml(n)+(this.isRTL?this.renderNumberIntroHtml(n):"")+"<\/tr>"},renderNumberIntroHtml:function(){return this.renderIntroHtml()},renderNumberCellsHtml:function(n){for(var i,r=[],t=0;t<this.colCnt;t++)i=this.getCellDate(n,t),r.push(this.renderNumberCellHtml(i));return r.join("")},renderNumberCellHtml:function(n){var t;return this.view.dayNumbersVisible?(t=this.getDayClasses(n),t.unshift("fc-day-number"),'<td class="'+t.join(" ")+'" data-date="'+n.format()+'">'+n.date()+"<\/td>"):"<td/>"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(n){for(var t,r=this.sliceRangeByRow(n),i=0;i<r.length;i++)t=r[i],this.isRTL?(t.leftCol=this.daysPerRow-1-t.lastRowDayIndex,t.rightCol=this.daysPerRow-1-t.firstRowDayIndex):(t.leftCol=t.firstRowDayIndex,t.rightCol=t.lastRowDayIndex);return r},prepareHits:function(){this.colCoordCache.build();this.rowCoordCache.build();this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},releaseHits:function(){this.colCoordCache.clear();this.rowCoordCache.clear()},queryHit:function(n,t){var i=this.colCoordCache.getHorizontalIndex(n),r=this.rowCoordCache.getVerticalIndex(t);if(null!=r&&null!=i)return this.getCellHit(r,i)},getHitSpan:function(n){return this.getCellRange(n.row,n.col)},getHitEl:function(n){return this.getCellEl(n.row,n.col)},getCellHit:function(n,t){return{row:n,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(n),bottom:this.rowCoordCache.getBottomOffset(n)}},getCellEl:function(n,t){return this.cellEls.eq(n*this.colCnt+t)},renderDrag:function(n,t){return this.renderHighlight(this.eventToSpan(n)),t&&!t.el.closest(this.el).length?(this.renderEventLocationHelper(n,t),this.applyDragOpacity(this.helperEls),!0):void 0},unrenderDrag:function(){this.unrenderHighlight();this.unrenderHelper()},renderEventResize:function(n,t){this.renderHighlight(this.eventToSpan(n));this.renderEventLocationHelper(n,t)},unrenderEventResize:function(){this.unrenderHighlight();this.unrenderHelper()},renderHelper:function(t,i){var u,f=[],r=this.eventToSegs(t);r=this.renderFgSegEls(r);u=this.renderSegRows(r);this.rowEls.each(function(t,r){var o,s=n(r),e=n('<div class="fc-helper-skeleton"><table/><\/div>');o=i&&i.row===t?i.el.position().top:s.find(".fc-content-skeleton tbody").position().top;e.css("top",o).find("table").append(u[t].tbodyEl);s.append(e);f.push(e[0])});this.helperEls=n(f)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,i,r){var u,f,e,o=[];for(i=this.renderFillSegEls(t,i),u=0;u<i.length;u++)f=i[u],e=this.renderFillRow(t,f,r),this.rowEls.eq(f.row).append(e),o.push(e[0]);return this.elsByFill[t]=n(o),i},renderFillRow:function(t,i,r){var f,u,s=this.colCnt,e=i.leftCol,o=i.rightCol+1;return r=r||t.toLowerCase(),f=n('<div class="fc-'+r+'-skeleton"><table><tr/><\/table><\/div>'),u=f.find("tr"),e>0&&u.append('<td colspan="'+e+'"/>'),u.append(i.el.attr("colspan",o-e)),s>o&&u.append('<td colspan="'+(s-o)+'"/>'),this.bookendCells(u),f}});nt.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover();w.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return w.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var i=n.grep(t,function(n){return n.event.allDay});return w.prototype.renderBgSegs.call(this,i)},renderFgSegs:function(t){var i;return t=this.renderFgSegEls(t),i=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,r){n(r).find(".fc-content-skeleton > table").append(i[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var n,t=this.rowStructs||[];n=t.pop();)n.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(n){for(var r=[],i=this.groupSegRows(n),t=0;t<i.length;t++)r.push(this.renderSegRow(t,i[t]));return r},fgSegHtml:function(n,t){var u,f,e=this.view,i=n.event,a=e.isEventDraggable(i),s=!t&&i.allDay&&n.isStart&&e.isEventResizableFromStart(i),h=!t&&i.allDay&&n.isEnd&&e.isEventResizableFromEnd(i),c=this.getSegClasses(n,a,s||h),l=ft(this.getSegSkinCss(n)),o="";return c.unshift("fc-day-grid-event","fc-h-event"),n.isStart&&(u=this.getEventTimeText(i),u&&(o='<span class="fc-time">'+r(u)+"<\/span>")),f='<span class="fc-title">'+(r(i.title||"")||"&nbsp;")+"<\/span>",'<a class="'+c.join(" ")+'"'+(i.url?' href="'+r(i.url)+'"':"")+(l?' style="'+l+'"':"")+'><div class="fc-content">'+(this.isRTL?f+" "+o:o+" "+f)+"<\/div>"+(s?'<div class="fc-resizer fc-start-resizer" />':"")+(h?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},renderSegRow:function(t,i){function y(t){for(;t>u;)r=(l[f-1]||[])[u],r?r.attr("rowspan",parseInt(r.attr("rowspan")||1,10)+1):(r=n("<td/>"),o.append(r)),c[f][u]=r,l[f][u]=r,u++}for(var s,u,o,h,e,r,w=this.colCnt,a=this.buildSegLevels(i),b=Math.max(1,a.length),p=n("<tbody/>"),v=[],c=[],l=[],f=0;b>f;f++){if(s=a[f],u=0,o=n("<tr/>"),v.push([]),c.push([]),l.push([]),s)for(h=0;h<s.length;h++){for(e=s[h],y(e.leftCol),r=n('<td class="fc-event-container"/>').append(e.el),e.leftCol!=e.rightCol?r.attr("colspan",e.rightCol-e.leftCol+1):l[f][u]=r;u<=e.rightCol;)c[f][u]=r,v[f][u]=e,u++;o.append(r)}y(w);this.bookendCells(o);p.append(o)}return{row:t,tbodyEl:p,cellMatrix:c,segMatrix:v,segLevels:a,segs:i}},buildSegLevels:function(n){var r,u,t,i=[];for(this.sortEventSegs(n),r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length&&lf(u,i[t]);t++);u.level=t;(i[t]||(i[t]=[])).push(u)}for(t=0;t<i.length;t++)i[t].sort(af);return i},groupSegRows:function(n){for(var i=[],t=0;t<this.rowCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].row].push(n[t]);return i}});nt.mixin({segPopover:null,popoverSegs:null,removeSegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(n){for(var i,r=this.rowStructs||[],t=0;t<r.length;t++)this.unlimitRow(t),i=n?"number"==typeof n?n:this.computeRowLevelLimit(t):!1,i!==!1&&this.limitRow(t,i)},computeRowLevelLimit:function(t){function e(t,i){r=Math.max(r,n(i).outerHeight())}for(var u,r,o=this.rowEls.eq(t),s=o.height(),f=this.rowStructs[t].tbodyEl.children(),i=0;i<f.length;i++)if(u=f.eq(i).removeClass("fc-limited"),r=0,u.find("> td > :first-child").each(e),u.position().top+r>s)return i;return!1},limitRow:function(t,i){function g(f){for(;f>u;)r=tt.getCellSegs(t,u,i),r.length&&(e=p[i-1][u],v=tt.renderMoreLink(t,u,r),h=n("<div/>").append(v),e.append(h),d.push(h[0])),u++}var y,p,w,c,f,r,b,l,e,nt,k,s,a,h,v,tt=this,o=this.rowStructs[t],d=[],u=0;if(i&&i<o.segLevels.length){for(y=o.segLevels[i-1],p=o.cellMatrix,w=o.tbodyEl.children().slice(i).addClass("fc-limited").get(),c=0;c<y.length;c++){for(f=y[c],g(f.leftCol),l=[],b=0;u<=f.rightCol;)r=this.getCellSegs(t,u,i),l.push(r),b+=r.length,u++;if(b){for(e=p[i-1][f.leftCol],nt=e.attr("rowspan")||1,k=[],s=0;s<l.length;s++)a=n('<td class="fc-more-cell"/>').attr("rowspan",nt),r=l[s],v=this.renderMoreLink(t,f.leftCol+s,[f].concat(r)),h=n("<div/>").append(v),a.append(h),k.push(a[0]),d.push(a[0]);e.addClass("fc-limited").after(n(k));w.push(e[0])}}g(this.colCnt);o.moreEls=n(d);o.limitedEls=n(w)}},unlimitRow:function(n){var t=this.rowStructs[n];t.moreEls&&(t.moreEls.remove(),t.moreEls=null);t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(t,i,r){var u=this,f=this.view;return n('<a class="fc-more"/>').text(this.getMoreLinkText(r.length)).on("click",function(e){var o=f.opt("eventLimitClick"),s=u.getCellDate(t,i),h=n(this),l=u.getCellEl(t,i),a=u.getCellSegs(t,i),c=u.resliceDaySegs(a,s),v=u.resliceDaySegs(r,s);"function"==typeof o&&(o=f.trigger("eventLimitClick",null,{date:s,dayEl:l,moreEl:h,segs:c,hiddenSegs:v},e));"popover"===o?u.showSegPopover(t,i,h,c):"string"==typeof o&&f.calendar.zoomTo(s,o)})},showSegPopover:function(n,t,i,r){var o,u,f=this,s=this.view,e=i.parent();o=1==this.rowCnt?s.el:this.rowEls.eq(n);u={className:"fc-more-popover",content:this.renderSegPopoverContent(n,t,r),parentEl:this.el,top:o.offset().top,autoHide:!0,viewportConstrain:s.opt("popoverViewportConstrain"),hide:function(){f.segPopover.removeElement();f.segPopover=null;f.popoverSegs=null}};this.isRTL?u.right=e.offset().left+e.outerWidth()+1:u.left=e.offset().left-1;this.segPopover=new ie(u);this.segPopover.show()},renderSegPopoverContent:function(t,i,u){var f,e=this.view,s=e.opt("theme"),h=this.getCellDate(t,i).format(e.opt("dayPopoverFormat")),o=n('<div class="fc-header '+e.widgetHeaderClass+'"><span class="fc-close '+(s?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"><\/span><span class="fc-title">'+r(h)+'<\/span><div class="fc-clear"/><\/div><div class="fc-body '+e.widgetContentClass+'"><div class="fc-event-container"><\/div><\/div>'),c=o.find(".fc-event-container");for(u=this.renderFgSegEls(u,!0),this.popoverSegs=u,f=0;f<u.length;f++)this.prepareHits(),u[f].hit=this.getCellHit(t,i),this.releaseHits(),c.append(u[f].el);return o},resliceDaySegs:function(t,i){var u=n.map(t,function(n){return n.event}),r=i.clone(),f=r.clone().add(1,"days"),e={start:r,end:f};return t=this.eventsToSegs(u,function(n){var t=yt(n,e);return t?[t]:[]}),this.sortEventSegs(t),t},getMoreLinkText:function(n){var t=this.view.opt("eventLimitText");return"function"==typeof t?t(n):"+"+n+" "+t},getCellSegs:function(n,t,i){for(var r,f=this.rowStructs[n].segMatrix,u=i||0,e=[];u<f.length;)r=f[u][t],r&&e.push(r),u++;return e}});ci=i.TimeGrid=w.extend(hi,{slotDuration:null,snapDuration:null,snapsPerSlot:null,minTime:null,maxTime:null,labelFormat:null,labelInterval:null,colEls:null,slatEls:null,nowIndicatorEls:null,colCoordCache:null,slatCoordCache:null,constructor:function(){w.apply(this,arguments);this.processOptions()},renderDates:function(){this.el.html(this.renderHtml());this.colEls=this.el.find(".fc-day");this.slatEls=this.el.find(".fc-slats tr");this.colCoordCache=new ht({els:this.colEls,isHorizontal:!0});this.slatCoordCache=new ht({els:this.slatEls,isVertical:!0});this.renderContentSkeleton()},renderHtml:function(){return'<div class="fc-bg"><table>'+this.renderBgTrHtml(0)+'<\/table><\/div><div class="fc-slats"><table>'+this.renderSlatRowHtml()+"<\/table><\/div>"},renderSlatRowHtml:function(){for(var i,u,f,e=this.view,o=this.isRTL,s="",n=t.duration(+this.minTime);n<this.maxTime;)i=this.start.clone().time(n),u=c(wt(n,this.labelInterval)),f='<td class="fc-axis fc-time '+e.widgetContentClass+'" '+e.axisStyleAttr()+">"+(u?"<span>"+r(i.format(this.labelFormat))+"<\/span>":"")+"<\/td>",s+='<tr data-time="'+i.format("HH:mm:ss")+'"'+(u?"":' class="fc-minor"')+">"+(o?"":f)+'<td class="'+e.widgetContentClass+'"/>'+(o?f:"")+"<\/tr>",n.add(this.slotDuration);return s},processOptions:function(){var i,r=this.view,u=r.opt("slotDuration"),f=r.opt("snapDuration");u=t.duration(u);f=f?t.duration(f):u;this.slotDuration=u;this.snapDuration=f;this.snapsPerSlot=u/f;this.minResizeDuration=f;this.minTime=t.duration(r.opt("minTime"));this.maxTime=t.duration(r.opt("maxTime"));i=r.opt("slotLabelFormat");n.isArray(i)&&(i=i[i.length-1]);this.labelFormat=i||r.opt("axisFormat")||r.opt("smallTimeFormat");i=r.opt("slotLabelInterval");this.labelInterval=i?t.duration(i):this.computeLabelInterval(u)},computeLabelInterval:function(n){for(var r,u,i=ou.length-1;i>=0;i--)if(r=t.duration(ou[i]),u=wt(r,n),c(u)&&u>1)return r;return t.duration(n)},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},prepareHits:function(){this.colCoordCache.build();this.slatCoordCache.build()},releaseHits:function(){this.colCoordCache.clear()},queryHit:function(n,t){var i=this.snapsPerSlot,f=this.colCoordCache,e=this.slatCoordCache,r=f.getHorizontalIndex(n),u=e.getVerticalIndex(t);if(null!=r&&null!=u){var o=e.getTopOffset(u),s=e.getHeight(u),c=(t-o)/s,h=Math.floor(c*i),l=u*i+h,a=o+h/i*s,v=o+(h+1)/i*s;return{col:r,snap:l,component:this,left:f.getLeftOffset(r),right:f.getRightOffset(r),top:a,bottom:v}}},getHitSpan:function(n){var i,t=this.getCellDate(0,n.col),r=this.computeSnapTime(n.snap);return t.time(r),i=t.clone().add(this.snapDuration),{start:t,end:i}},getHitEl:function(n){return this.colEls.eq(n.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(n){return t.duration(this.minTime+this.snapDuration*n)},spanToSegs:function(n){for(var i=this.sliceRangeByTimes(n),t=0;t<i.length;t++)i[t].col=this.isRTL?this.daysPerRow-1-i[t].dayIndex:i[t].dayIndex;return i},sliceRangeByTimes:function(n){for(var i,r,u,f=[],t=0;t<this.daysPerRow;t++)r=this.dayDates[t].clone(),u={start:r.clone().time(this.minTime),end:r.clone().time(this.maxTime)},i=yt(n,u),i&&(i.dayIndex=t,f.push(i));return f},updateSize:function(n){this.slatCoordCache.build();n&&this.updateSegVerticals([].concat(this.fgSegs||[],this.bgSegs||[],this.businessSegs||[]))},computeDateTop:function(n,i){return this.computeTimeTop(t.duration(n-i.clone().stripTime()))},computeTimeTop:function(n){var t,r,u=this.slatEls.length,i=(n-this.minTime)/this.slotDuration;return i=Math.max(0,i),i=Math.min(u,i),t=Math.floor(i),t=Math.min(t,u-1),r=i-t,this.slatCoordCache.getTopPosition(t)+this.slatCoordCache.getHeight(t)*r},renderDrag:function(n,t){if(t){this.renderEventLocationHelper(n,t);for(var i=0;i<this.helperSegs.length;i++)this.applyDragOpacity(this.helperSegs[i].el);return!0}this.renderHighlight(this.eventToSpan(n))},unrenderDrag:function(){this.unrenderHelper();this.unrenderHighlight()},renderEventResize:function(n,t){this.renderEventLocationHelper(n,t)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(n,t){this.renderHelperSegs(this.eventToSegs(n),t)},unrenderHelper:function(){this.unrenderHelperSegs()},renderBusinessHours:function(){var n=this.view.calendar.getBusinessHoursEvents(),t=this.eventsToSegs(n);this.renderBusinessSegs(t)},unrenderBusinessHours:function(){this.unrenderBusinessSegs()},getNowIndicatorUnit:function(){return"minute"},renderNowIndicator:function(t){for(var r=this.spanToSegs({start:t,end:t}),f=this.computeDateTop(t,t),u=[],i=0;i<r.length;i++)u.push(n('<div class="fc-now-indicator fc-now-indicator-line"><\/div>').css("top",f).appendTo(this.colContainerEls.eq(r[i].col))[0]);r.length>0&&u.push(n('<div class="fc-now-indicator fc-now-indicator-arrow"><\/div>').css("top",f).appendTo(this.el.find(".fc-content-skeleton"))[0]);this.nowIndicatorEls=n(u)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(n){this.view.opt("selectHelper")?this.renderEventLocationHelper(n):this.renderHighlight(n)},unrenderSelection:function(){this.unrenderHelper();this.unrenderHighlight()},renderHighlight:function(n){this.renderHighlightSegs(this.spanToSegs(n))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});ci.mixin({colContainerEls:null,fgContainerEls:null,bgContainerEls:null,helperContainerEls:null,highlightContainerEls:null,businessContainerEls:null,fgSegs:null,bgSegs:null,helperSegs:null,highlightSegs:null,businessSegs:null,renderContentSkeleton:function(){for(var t,r="",i=0;i<this.colCnt;i++)r+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"><\/div><div class="fc-event-container"><\/div><div class="fc-highlight-container"><\/div><div class="fc-bgevent-container"><\/div><div class="fc-business-container"><\/div><\/div><\/td>';t=n('<div class="fc-content-skeleton"><table><tr>'+r+"<\/tr><\/table><\/div>");this.colContainerEls=t.find(".fc-content-col");this.helperContainerEls=t.find(".fc-helper-container");this.fgContainerEls=t.find(".fc-event-container:not(.fc-helper-container)");this.bgContainerEls=t.find(".fc-bgevent-container");this.highlightContainerEls=t.find(".fc-highlight-container");this.businessContainerEls=t.find(".fc-business-container");this.bookendCells(t.find("tr"));this.el.append(t)},renderFgSegs:function(n){return n=this.renderFgSegsIntoContainers(n,this.fgContainerEls),this.fgSegs=n,n},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(n,t){var r,u,i;for(n=this.renderFgSegsIntoContainers(n,this.helperContainerEls),r=0;r<n.length;r++)u=n[r],t&&t.col===u.col&&(i=t.el,u.el.css({left:i.css("left"),right:i.css("right"),"margin-left":i.css("margin-left"),"margin-right":i.css("margin-right")}));this.helperSegs=n},unrenderHelperSegs:function(){this.unrenderNamedSegs("helperSegs")},renderBgSegs:function(n){return n=this.renderFillSegEls("bgEvent",n),this.updateSegVerticals(n),this.attachSegsByCol(this.groupSegsByCol(n),this.bgContainerEls),this.bgSegs=n,n},unrenderBgSegs:function(){this.unrenderNamedSegs("bgSegs")},renderHighlightSegs:function(n){n=this.renderFillSegEls("highlight",n);this.updateSegVerticals(n);this.attachSegsByCol(this.groupSegsByCol(n),this.highlightContainerEls);this.highlightSegs=n},unrenderHighlightSegs:function(){this.unrenderNamedSegs("highlightSegs")},renderBusinessSegs:function(n){n=this.renderFillSegEls("businessHours",n);this.updateSegVerticals(n);this.attachSegsByCol(this.groupSegsByCol(n),this.businessContainerEls);this.businessSegs=n},unrenderBusinessSegs:function(){this.unrenderNamedSegs("businessSegs")},groupSegsByCol:function(n){for(var i=[],t=0;t<this.colCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].col].push(n[t]);return i},attachSegsByCol:function(n,t){for(var u,r,i=0;i<this.colCnt;i++)for(u=n[i],r=0;r<u.length;r++)t.eq(i).append(u[r].el)},unrenderNamedSegs:function(n){var t,i=this[n];if(i){for(t=0;t<i.length;t++)i[t].el.remove();this[n]=null}},renderFgSegsIntoContainers:function(n,t){var r,i;for(n=this.renderFgSegEls(n),r=this.groupSegsByCol(n),i=0;i<this.colCnt;i++)this.updateFgSegCoords(r[i]);return this.attachSegsByCol(r,t),n},fgSegHtml:function(n,t){var u,e,o,f=this.view,i=n.event,l=f.isEventDraggable(i),a=!t&&n.isStart&&f.isEventResizableFromStart(i),s=!t&&n.isEnd&&f.isEventResizableFromEnd(i),h=this.getSegClasses(n,l,a||s),c=ft(this.getSegSkinCss(n));return h.unshift("fc-time-grid-event","fc-v-event"),f.isMultiDayEvent(i)?(n.isStart||n.isEnd)&&(u=this.getEventTimeText(n),e=this.getEventTimeText(n,"LT"),o=this.getEventTimeText(n,null,!1)):(u=this.getEventTimeText(i),e=this.getEventTimeText(i,"LT"),o=this.getEventTimeText(i,null,!1)),'<a class="'+h.join(" ")+'"'+(i.url?' href="'+r(i.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(u?'<div class="fc-time" data-start="'+r(o)+'" data-full="'+r(e)+'"><span>'+r(u)+"<\/span><\/div>":"")+(i.title?'<div class="fc-title">'+r(i.title)+"<\/div>":"")+'<\/div><div class="fc-bg"/>'+(s?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},updateSegVerticals:function(n){this.computeSegVerticals(n);this.assignSegVerticals(n)},computeSegVerticals:function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.top=this.computeDateTop(t.start,t.start),t.bottom=this.computeDateTop(t.end,t.start)},assignSegVerticals:function(n){for(var i,t=0;t<n.length;t++)i=n[t],i.el.css(this.generateSegVerticalCss(i))},generateSegVerticalCss:function(n){return{top:n.top,bottom:-n.bottom}},updateFgSegCoords:function(n){this.computeSegVerticals(n);this.computeFgSegHorizontals(n);this.assignSegVerticals(n);this.assignFgSegHorizontals(n)},computeFgSegHorizontals:function(n){var r,i,t;if(this.sortEventSegs(n),r=vf(n),yf(r),i=r[0]){for(t=0;t<i.length;t++)gr(i[t]);for(t=0;t<i.length;t++)this.computeFgSegForwardBack(i[t],0,0)}},computeFgSegForwardBack:function(n,t,i){var u,r=n.forwardSegs;if(void 0===n.forwardCoord)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],t+1,i),n.forwardCoord=r[0].backwardCoord):n.forwardCoord=1,n.backwardCoord=n.forwardCoord-(n.forwardCoord-i)/(t+1),u=0;u<r.length;u++)this.computeFgSegForwardBack(r[u],0,n.forwardCoord)},sortForwardSegs:function(n){n.sort(o(this,"compareForwardSegs"))},compareForwardSegs:function(n,t){return t.forwardPressure-n.forwardPressure||(n.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(n,t)},assignFgSegHorizontals:function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.el.css(this.generateFgSegHorizontalCss(t)),t.bottom-t.top<30&&t.el.addClass("fc-short")},generateFgSegHorizontalCss:function(n){var u,f,e=this.view.opt("slotEventOverlap"),i=n.backwardCoord,r=n.forwardCoord,t=this.generateSegVerticalCss(n);return e&&(r=Math.min(1,i+2*(r-i))),this.isRTL?(u=1-r,f=i):(u=i,f=1-r),t.zIndex=n.level+1,t.left=100*u+"%",t.right=100*f+"%",e&&n.forwardPressure&&(t[this.isRTL?"marginLeft":"marginRight"]=20),t}});b=i.View=h.extend({type:null,name:null,title:null,calendar:null,options:null,el:null,displaying:null,isSkeletonRendered:!1,isEventsRendered:!1,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isRTL:!1,isSelected:!1,eventOrderSpecs:null,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,isNowIndicatorRendered:null,initialNowDate:null,initialNowQueriedMs:null,nowIndicatorTimeoutID:null,nowIndicatorIntervalID:null,constructor:function(n,i,r,u){this.calendar=n;this.type=this.name=i;this.options=r;this.intervalDuration=u||t.duration(1,"day");this.nextDayThreshold=t.duration(this.opt("nextDayThreshold"));this.initThemingProps();this.initHiddenDays();this.isRTL=this.opt("isRTL");this.eventOrderSpecs=nr(this.opt("eventOrder"));this.documentMousedownProxy=o(this,"documentMousedown");this.initialize()},initialize:function(){},opt:function(n){return this.options[n]},trigger:function(n,t){var i=this.calendar;return i.trigger.apply(i,[n,t||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(n){this.setRange(this.computeRange(n))},setRange:function(t){n.extend(this,t);this.updateTitle()},computeRange:function(n){var r,u,f=pt(this.intervalDuration),t=n.clone().startOf(f),i=t.clone().add(this.intervalDuration);return/year|month|week|day/.test(f)?(t.stripTime(),i.stripTime()):(t.hasTime()||(t=this.calendar.time(0)),i.hasTime()||(i=this.calendar.time(0))),r=t.clone(),r=this.skipHiddenDays(r),u=i.clone(),u=this.skipHiddenDays(u,-1,!0),{intervalUnit:f,intervalStart:t,intervalEnd:i,start:r,end:u}},computePrevDate:function(n){return this.massageCurrentDate(n.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(n){return this.massageCurrentDate(n.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(n,t){return this.intervalDuration.as("days")<=1&&this.isHiddenDay(n)&&(n=this.skipHiddenDays(n,t),n.startOf("day")),n},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.calendar.applyTimezone(this.intervalStart),end:this.calendar.applyTimezone(this.intervalEnd)},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(n,t,i){var r=n.end;return r.hasTime()||(r=r.clone().subtract(1)),lr(n.start,r,t,i,this.opt("isRTL"))},setElement:function(n){this.el=n;this.bindGlobalHandlers()},removeElement:function(){this.clear();this.isSkeletonRendered&&(this.unrenderSkeleton(),this.isSkeletonRendered=!1);this.unbindGlobalHandlers();this.el.remove()},display:function(t){var i=this,r=null;return this.displaying&&(r=this.queryScroll()),this.calendar.freezeContentHeight(),this.clear().then(function(){return i.displaying=n.when(i.displayView(t)).then(function(){i.forceScroll(i.computeInitialScroll(r));i.calendar.unfreezeContentHeight();i.triggerRender()})})},clear:function(){var t=this,i=this.displaying;return i?i.then(function(){return t.displaying=null,t.clearEvents(),t.clearView()}):n.when()},displayView:function(n){this.isSkeletonRendered||(this.renderSkeleton(),this.isSkeletonRendered=!0);n&&this.setDate(n);this.render&&this.render();this.renderDates();this.updateSize();this.renderBusinessHours();this.startNowIndicator()},clearView:function(){this.unselect();this.stopNowIndicator();this.triggerUnrender();this.unrenderBusinessHours();this.unrenderDates();this.destroy&&this.destroy()},renderSkeleton:function(){},unrenderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},triggerRender:function(){this.trigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.trigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){n(document).on("mousedown",this.documentMousedownProxy)},unbindGlobalHandlers:function(){n(document).off("mousedown",this.documentMousedownProxy)},initThemingProps:function(){var n=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=n+"-widget-header";this.widgetContentClass=n+"-widget-content";this.highlightStateClass=n+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var i,r,n,u=this;this.opt("nowIndicator")&&(i=this.getNowIndicatorUnit(),i&&(r=o(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,n=this.initialNowDate.clone().startOf(i).add(1,i)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout(function(){u.nowIndicatorTimeoutID=null;r();n=+t.duration(1,i);n=Math.max(100,n);u.nowIndicatorIntervalID=setInterval(r,n)},n)))},updateNowIndicator:function(){this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date-this.initialNowQueriedMs)))},stopNowIndicator:function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearTimeout(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},getNowIndicatorUnit:function(){},renderNowIndicator:function(){},unrenderNowIndicator:function(){},updateSize:function(n){var t;n&&(t=this.queryScroll());this.updateHeight(n);this.updateWidth(n);this.updateNowIndicator();n&&this.setScroll(t)},updateWidth:function(){},updateHeight:function(){var n=this.calendar;this.setHeight(n.getSuggestedViewHeight(),n.isHeightAuto())},setHeight:function(){},computeScrollerHeight:function(n){var t,i,r=this.scrollerEl;return t=this.el.add(r),t.css({position:"relative",left:-1}),i=this.el.outerHeight()-r.height(),t.css({position:"",left:""}),n-i},computeInitialScroll:function(){return 0},queryScroll:function(){if(this.scrollerEl)return this.scrollerEl.scrollTop()},setScroll:function(n){if(this.scrollerEl)return this.scrollerEl.scrollTop(n)},forceScroll:function(n){var t=this;this.setScroll(n);setTimeout(function(){t.setScroll(n)},0)},displayEvents:function(n){var t=this.queryScroll();this.clearEvents();this.renderEvents(n);this.isEventsRendered=!0;this.setScroll(t);this.triggerEventRender()},clearEvents:function(){var n;this.isEventsRendered&&(n=this.queryScroll(),this.triggerEventUnrender(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.setScroll(n),this.isEventsRendered=!1)},renderEvents:function(){},unrenderEvents:function(){},triggerEventRender:function(){this.renderedEventSegEach(function(n){this.trigger("eventAfterRender",n.event,n.event,n.el)});this.trigger("eventAfterAllRender")},triggerEventUnrender:function(){this.renderedEventSegEach(function(n){this.trigger("eventDestroy",n.event,n.event,n.el)})},resolveEventEl:function(t,i){var r=this.trigger("eventRender",t,t,i);return r===!1?i=null:r&&r!==!0&&(i=n(r)),i},showEvent:function(n){this.renderedEventSegEach(function(n){n.el.css("visibility","")},n)},hideEvent:function(n){this.renderedEventSegEach(function(n){n.el.css("visibility","hidden")},n)},renderedEventSegEach:function(n,t){for(var r=this.getEventSegs(),i=0;i<r.length;i++)t&&r[i].event._id!==t._id||r[i].el&&n.call(this,r[i])},getEventSegs:function(){return[]},isEventDraggable:function(n){var t=n.source||{};return s(n.startEditable,t.startEditable,this.opt("eventStartEditable"),n.editable,t.editable,this.opt("editable"))},reportEventDrop:function(n,t,i,r,u){var f=this.calendar,e=f.mutateEvent(n,t,i),o=function(){e.undo();f.reportEventChange()};this.triggerEventDrop(n,e.dateDelta,o,r,u);f.reportEventChange()},triggerEventDrop:function(n,t,i,r,u){this.trigger("eventDrop",r[0],n,t,i,u,{})},reportExternalDrop:function(t,i,r,u,f){var e,o,s=t.eventProps;s&&(e=n.extend({},s,i),o=this.calendar.renderEvent(e,t.stick)[0]);this.triggerExternalDrop(o,i,r,u,f)},triggerExternalDrop:function(n,t,i,r,u){this.trigger("drop",i[0],t.start,r,u);n&&this.trigger("eventReceive",null,n)},renderDrag:function(){},unrenderDrag:function(){},isEventResizableFromStart:function(n){return this.opt("eventResizableFromStart")&&this.isEventResizable(n)},isEventResizableFromEnd:function(n){return this.isEventResizable(n)},isEventResizable:function(n){var t=n.source||{};return s(n.durationEditable,t.durationEditable,this.opt("eventDurationEditable"),n.editable,t.editable,this.opt("editable"))},reportEventResize:function(n,t,i,r,u){var f=this.calendar,e=f.mutateEvent(n,t,i),o=function(){e.undo();f.reportEventChange()};this.triggerEventResize(n,e.durationDelta,o,r,u);f.reportEventChange()},triggerEventResize:function(n,t,i,r,u){this.trigger("eventResize",r[0],n,t,i,u,{})},select:function(n,t){this.unselect(t);this.renderSelection(n);this.reportSelection(n,t)},renderSelection:function(){},reportSelection:function(n,t){this.isSelected=!0;this.triggerSelect(n,t)},triggerSelect:function(n,t){this.trigger("select",null,this.calendar.applyTimezone(n.start),this.calendar.applyTimezone(n.end),t)},unselect:function(n){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.trigger("unselect",null,n))},unrenderSelection:function(){},documentMousedown:function(t){var i;this.isSelected&&this.opt("unselectAuto")&&di(t)&&(i=this.opt("unselectCancel"),i&&n(t.target).closest(i).length||this.unselect(t))},triggerDayClick:function(n,t,i){this.trigger("dayClick",t,this.calendar.applyTimezone(n.start),i)},initHiddenDays:function(){var t,i=this.opt("hiddenDays")||[],r=[],u=0;for(this.opt("weekends")===!1&&i.push(0,6),t=0;7>t;t++)(r[t]=-1!==n.inArray(t,i))||u++;if(!u)throw"invalid hiddenDays";this.isHiddenDayHash=r},isHiddenDay:function(n){return t.isMoment(n)&&(n=n.day()),this.isHiddenDayHash[n]},skipHiddenDays:function(n,t,i){var r=n.clone();for(t=t||1;this.isHiddenDayHash[(r.day()+(i?t:0)+7)%7];)r.add(t,"days");return r},computeDayRange:function(n){var r,u=n.start.clone().stripTime(),i=n.end,t=null;return i&&(t=i.clone().stripTime(),r=+i.time(),r&&r>=this.nextDayThreshold&&t.add(1,"days")),(!i||u>=t)&&(t=u.clone().add(1,"days")),{start:u,end:t}},isMultiDayEvent:function(n){var t=this.computeDayRange(n);return t.end.diff(t.start,"days")>1}});e=i.Calendar=h.extend({dirDefaults:null,langDefaults:null,overrides:null,options:null,viewSpecCache:null,view:null,header:null,loadingLevel:0,constructor:wf,initialize:function(){},initOptions:function(n){var i,t,u,r;n=su(n);i=n.lang;t=y[i];t||(i=e.defaults.lang,t=y[i]||{});u=s(n.isRTL,t.isRTL,e.defaults.isRTL);r=u?e.rtlDefaults:{};this.dirDefaults=r;this.langDefaults=t;this.overrides=n;this.options=d([e.defaults,r,t,n]);tu(this.options);this.viewSpecCache={}},getViewSpec:function(n){var t=this.viewSpecCache;return t[n]||(t[n]=this.buildViewSpec(n))},getUnitViewSpec:function(t){var r,u,f;if(-1!=n.inArray(t,ot))for(r=this.header.getViewsWithButtons(),n.each(i.views,function(n){r.push(n)}),u=0;u<r.length;u++)if(f=this.getViewSpec(r[u]),f&&f.singleUnit==t)return f},buildViewSpec:function(n){for(var i,f,r,e,s=this.overrides.views||{},h=[],c=[],o=[],u=n;u;)i=a[u],f=s[u],u=null,"function"==typeof i&&(i={"class":i}),i&&(h.unshift(i),c.unshift(i.defaults||{}),r=r||i.duration,u=u||i.type),f&&(o.unshift(f),r=r||f.duration,u=u||f.type);return i=bt(h),i.type=n,i["class"]?(r&&(r=t.duration(r),r.valueOf()&&(i.duration=r,e=pt(r),1===r.as(e)&&(i.singleUnit=e,o.unshift(s[e]||{})))),i.defaults=d(c),i.overrides=d(o),this.buildViewSpecOptions(i),this.buildViewSpecButtonText(i,n),i):!1},buildViewSpecOptions:function(n){n.options=d([e.defaults,n.defaults,this.dirDefaults,this.langDefaults,this.overrides,n.overrides]);tu(n.options)},buildViewSpecButtonText:function(n,t){function i(i){var r=i.buttonText||{};return r[t]||(n.singleUnit?r[n.singleUnit]:null)}n.buttonTextOverride=i(this.overrides)||n.overrides.buttonText;n.buttonTextDefault=i(this.langDefaults)||i(this.dirDefaults)||n.defaults.buttonText||i(e.defaults)||(n.duration?this.humanizeDuration(n.duration):null)||t},instantiateView:function(n){var t=this.getViewSpec(n);return new t["class"](this,n,t.options,t.duration)},isValidViewType:function(n){return Boolean(this.getViewSpec(n))},pushLoading:function(){this.loadingLevel++||this.trigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.trigger("loading",null,!1,this.view)},buildSelectSpan:function(n,t){var r,i=this.moment(n).stripZone();return r=t?this.moment(t).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),{start:i,end:r}}});e.mixin(te);e.defaults={titleRangeSeparator:" — ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200};e.englishDefaults={dayPopoverFormat:"dddd, MMMM D"};e.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};y=i.langs={};i.datepickerLang=function(t,i,r){var u=y[t]||(y[t]={});u.isRTL=r.isRTL;u.weekNumberTitle=r.weekHeader;n.each(ue,function(n,t){u[n]=t(r)});n.datepicker&&(n.datepicker.regional[i]=n.datepicker.regional[t]=r,n.datepicker.regional.en=n.datepicker.regional[""],n.datepicker.setDefaults(r))};i.lang=function(t,i){var r,u;r=y[t]||(y[t]={});i&&(r=y[t]=d([r,i]));u=iu(t);n.each(fe,function(n,t){null==r[n]&&(r[n]=t(u,r))});e.defaults.lang=t};var ue={buttonText:function(n){return{prev:dt(n.prevText),next:dt(n.nextText),today:dt(n.currentText)}},monthYearFormat:function(n){return n.showMonthAfterYear?"YYYY["+n.yearSuffix+"] MMMM":"MMMM YYYY["+n.yearSuffix+"]"}},fe={dayOfMonthFormat:function(n,t){var i=n.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(n){return n.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"")}},ee={smallDayDateFormat:function(n){return n.isRTL?"D dd":"dd D"},weekFormat:function(n){return n.isRTL?"w[ "+n.weekNumberTitle+"]":"["+n.weekNumberTitle+" ]w"},smallWeekFormat:function(n){return n.isRTL?"w["+n.weekNumberTitle+"]":"["+n.weekNumberTitle+"]w"}};i.lang("en",e.englishDefaults);i.sourceNormalizers=[];i.sourceFetchers=[];fu={dataType:"json",cache:!1};eu=1;e.prototype.getPeerEvents=function(n,t){for(var r,u=this.getEventCache(),f=[],i=0;i<u.length;i++)r=u[i],t&&t._id===r._id||f.push(r);return f};var li=i.BasicView=b.extend({dayGridClass:nt,dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headContainerEl:null,headRowEl:null,initialize:function(){this.dayGrid=this.instantiateDayGrid()},instantiateDayGrid:function(){var n=this.dayGridClass.extend(oe);return new n(this)},setRange:function(n){b.prototype.setRange.call(this,n);this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit);this.dayGrid.setRange(n)},computeRange:function(n){var t=b.prototype.computeRange.call(this,n);return/year|month/.test(t.intervalUnit)&&(t.start.startOf("week"),t.start=this.skipHiddenDays(t.start),t.end.weekday()&&(t.end.add(1,"week").startOf("week"),t.end=this.skipHiddenDays(t.end,-1,!0))),t},renderDates:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1;this.weekNumbersVisible=this.opt("weekNumbers");this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml());this.renderHead();this.scrollerEl=this.el.find(".fc-day-grid-container");this.dayGrid.setElement(this.el.find(".fc-day-grid"));this.dayGrid.renderDates(this.hasRigidRows())},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml());this.headRowEl=this.headContainerEl.find(".fc-row")},unrenderDates:function(){this.dayGrid.unrenderDates();this.dayGrid.removeElement()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"><\/td><\/tr><\/thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/><\/div><\/td><\/tr><\/tbody><\/table>'},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var n=this.opt("eventLimit");return n&&"number"!=typeof n},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=wi(this.el.find(".fc-week-number")))},setHeight:function(n,t){var r,i=this.opt("eventLimit");lt(this.scrollerEl);vi(this.headRowEl);this.dayGrid.removeSegPopover();i&&"number"==typeof i&&this.dayGrid.limitRows(i);r=this.computeScrollerHeight(n);this.setGridHeight(r,t);i&&"number"!=typeof i&&this.dayGrid.limitRows(i);!t&&bi(this.scrollerEl,r)&&(ai(this.headRowEl,it(this.scrollerEl)),r=this.computeScrollerHeight(n),this.scrollerEl.height(r))},setGridHeight:function(n,t){t?pi(this.dayGrid.rowEls):yi(this.dayGrid.rowEls,n,!0)},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(n,t){return this.dayGrid.queryHit(n,t)},getHitSpan:function(n){return this.dayGrid.getHitSpan(n)},getHitEl:function(n){return this.dayGrid.getHitEl(n)},renderEvents:function(n){this.dayGrid.renderEvents(n);this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(n,t){return this.dayGrid.renderDrag(n,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(n){this.dayGrid.renderSelection(n)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),oe={renderHeadIntroHtml:function(){var n=this.view;return n.weekNumbersVisible?'<th class="fc-week-number '+n.widgetHeaderClass+'" '+n.weekNumberStyleAttr()+"><span>"+r(n.opt("weekNumberTitle"))+"<\/span><\/th>":""},renderNumberIntroHtml:function(n){var t=this.view;return t.weekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"><span>"+this.getCellDate(n,0).format("w")+"<\/span><\/td>":""},renderBgIntroHtml:function(){var n=this.view;return n.weekNumbersVisible?'<td class="fc-week-number '+n.widgetContentClass+'" '+n.weekNumberStyleAttr()+"><\/td>":""},renderIntroHtml:function(){var n=this.view;return n.weekNumbersVisible?'<td class="fc-week-number" '+n.weekNumberStyleAttr()+"><\/td>":""}},se=i.MonthView=li.extend({computeRange:function(n){var i,t=li.prototype.computeRange.call(this,n);return this.isFixedWeeks()&&(i=Math.ceil(t.end.diff(t.start,"weeks",!0)),t.end.add(6-i,"weeks")),t},setGridHeight:function(n,t){t=t||"variable"===this.opt("weekMode");t&&(n*=this.rowCnt/6);yi(this.dayGrid.rowEls,n,!t)},isFixedWeeks:function(){var n=this.opt("weekMode");return n?"fixed"===n:this.opt("fixedWeekCount")}});a.basic={"class":li};a.basicDay={type:"basic",duration:{days:1}};a.basicWeek={type:"basic",duration:{weeks:1}};a.month={"class":se,duration:{months:1},defaults:{fixedWeekCount:!0}};var he=i.AgendaView=b.extend({timeGridClass:ci,timeGrid:null,dayGridClass:nt,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=this.instantiateTimeGrid();this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid())},instantiateTimeGrid:function(){var n=this.timeGridClass.extend(ce);return new n(this)},instantiateDayGrid:function(){var n=this.dayGridClass.extend(le);return new n(this)},setRange:function(n){b.prototype.setRange.call(this,n);this.timeGrid.setRange(n);this.dayGrid&&this.dayGrid.setRange(n)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml());this.renderHead();this.scrollerEl=this.el.find(".fc-time-grid-container");this.timeGrid.setElement(this.el.find(".fc-time-grid"));this.timeGrid.renderDates();this.bottomRuleEl=n('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el);this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight());this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates();this.timeGrid.removeElement();this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement())},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"><\/td><\/tr><\/thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/><\/div><\/td><\/tr><\/tbody><\/table>'},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},renderBusinessHours:function(){this.timeGrid.renderBusinessHours();this.dayGrid&&this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.timeGrid.unrenderBusinessHours();this.dayGrid&&this.dayGrid.unrenderBusinessHours()},getNowIndicatorUnit:function(){return this.timeGrid.getNowIndicatorUnit()},renderNowIndicator:function(n){this.timeGrid.renderNowIndicator(n)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(n){this.timeGrid.updateSize(n);b.prototype.updateSize.call(this,n)},updateWidth:function(){this.axisWidth=wi(this.el.find(".fc-axis"))},setHeight:function(n,t){var i,r;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight());this.bottomRuleEl.hide();this.scrollerEl.css("overflow","");lt(this.scrollerEl);vi(this.noScrollRowEls);this.dayGrid&&(this.dayGrid.removeSegPopover(),i=this.opt("eventLimit"),i&&"number"!=typeof i&&(i=ae),i&&this.dayGrid.limitRows(i));t||(r=this.computeScrollerHeight(n),bi(this.scrollerEl,r)?(ai(this.noScrollRowEls,it(this.scrollerEl)),r=this.computeScrollerHeight(n),this.scrollerEl.height(r)):(this.scrollerEl.height(r).css("overflow","hidden"),this.bottomRuleEl.show()))},computeInitialScroll:function(){var i=t.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(i);return n=Math.ceil(n),n&&n++,n},prepareHits:function(){this.timeGrid.prepareHits();this.dayGrid&&this.dayGrid.prepareHits()},releaseHits:function(){this.timeGrid.releaseHits();this.dayGrid&&this.dayGrid.releaseHits()},queryHit:function(n,t){var i=this.timeGrid.queryHit(n,t);return!i&&this.dayGrid&&(i=this.dayGrid.queryHit(n,t)),i},getHitSpan:function(n){return n.component.getHitSpan(n)},getHitEl:function(n){return n.component.getHitEl(n)},renderEvents:function(n){for(var u,i=[],r=[],f=[],t=0;t<n.length;t++)n[t].allDay?i.push(n[t]):r.push(n[t]);u=this.timeGrid.renderEvents(r);this.dayGrid&&(f=this.dayGrid.renderEvents(i));this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},unrenderEvents:function(){this.timeGrid.unrenderEvents();this.dayGrid&&this.dayGrid.unrenderEvents()},renderDrag:function(n,t){return n.start.hasTime()?this.timeGrid.renderDrag(n,t):this.dayGrid?this.dayGrid.renderDrag(n,t):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag();this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(n){n.start.hasTime()||n.end.hasTime()?this.timeGrid.renderSelection(n):this.dayGrid&&this.dayGrid.renderSelection(n)},unrenderSelection:function(){this.timeGrid.unrenderSelection();this.dayGrid&&this.dayGrid.unrenderSelection()}}),ce={renderHeadIntroHtml:function(){var t,n=this.view;return n.opt("weekNumbers")?(t=this.start.format(n.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+n.widgetHeaderClass+'" '+n.axisStyleAttr()+"><span>"+r(t)+"<\/span><\/th>"):'<th class="fc-axis '+n.widgetHeaderClass+'" '+n.axisStyleAttr()+"><\/th>"},renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.widgetContentClass+'" '+n.axisStyleAttr()+"><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}},le={renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.widgetContentClass+'" '+n.axisStyleAttr()+"><span>"+(n.opt("allDayHtml")||r(n.opt("allDayText")))+"<\/span><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}},ae=5,ou=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];return a.agenda={"class":he,defaults:{allDaySlot:!0,allDayText:"all-day",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},a.agendaDay={type:"agenda",duration:{days:1}},a.agendaWeek={type:"agenda",duration:{weeks:1}},i}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.2.0";t.prototype.close=function(t){function f(){i.detach().trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));i=n(r);t&&t.preventDefault();i.length||(i=u.hasClass("alert")?u:u.parent());i.trigger(t=n.Event("close.bs.alert"));t.isDefaultPrevented()||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.2.0";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());i[f](null==u[t]?this.options[t]:u[t]);setTimeout(n.proxy(function(){"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length&&(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t).on("keydown.bs.carousel",n.proxy(this.keydown,this));this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},r;t.VERSION="3.2.0";t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.keydown=function(n){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.to=function(t){var r=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1)&&!(0>t))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),c=this.interval,f="next"==t?"left":"right",a="next"==t?"first":"last",l=this,e,o,s,h;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[a]()}return r.hasClass("active")?this.sliding=!1:(e=r[0],o=n.Event("slide.bs.carousel",{relatedTarget:e,direction:f}),(this.$element.trigger(o),!o.isDefaultPrevented())?((this.sliding=!0,c&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),s=n(this.$indicators.children()[this.getItemIndex(r)]),s&&s.addClass("active")),h=n.Event("slid.bs.carousel",{relatedTarget:e,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,u.addClass(f),r.addClass(f),u.one("bsTransitionEnd",function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));l.sliding=!1;setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(1e3*u.css("transition-duration").slice(0,-1))):(u.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),c&&this.cycle(),this):void 0)};r=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=r,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&"show"==i&&(i=!i);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},r;t.VERSION="3.2.0";t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,t,u,r,e,o;if(!this.transitioning&&!this.$element.hasClass("in")&&(f=n.Event("show.bs.collapse"),this.$element.trigger(f),!f.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(u=t.data("bs.collapse"),u&&u.transitioning)return;i.call(t,"hide");u||t.data("bs.collapse",null)}if(r=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1,e=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return e.call(this);o=n.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(350)[r](this.$element[0][o])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented()))return t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},n.support.transition?void this.$element[t](0).one("bsTransitionEnd",n.proxy(r,this)).emulateTransitionEnd(350):r.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};r=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=r,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var o,r=n(this),h=r.attr("data-target")||t.preventDefault()||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),u=n(h),f=u.data("bs.collapse"),c=f?"toggle":r.data(),e=r.attr("data-parent"),s=e&&n(e);f&&f.transitioning||(s&&s.find('[data-toggle="collapse"][data-parent="'+e+'"]').not(r).addClass("collapsed"),r[u.hasClass("in")?"addClass":"removeClass"]("collapsed"));i.call(u,c)})}(jQuery);+function(n){"use strict";function r(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var i=u(n(this)),r={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",r)),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown",r))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.2.0";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&27==t.keyCode)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.divider):visible a";f=o.find('[role="menu"]'+h+', [role="listbox"]'+h);f.length&&(r=f.index(f.filter(":focus")),38==t.keyCode&&r>0&&r--,40==t.keyCode&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+', [role="menu"], [role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.2.0";t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r);this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(i.$body);i.$element.show().scrollTop(0);u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(r)}))};t.prototype.hide=function(t){t&&t.preventDefault();t=n.Event("hide.bs.modal");this.$element.trigger(t);this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var f=this,u=this.$element.hasClass("fade")?"fade":"",i,r;if(this.isShown&&this.options.backdrop){if(i=n.support.transition&&u,this.$backdrop=n('<div class="modal-backdrop '+u+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),r=function(){f.removeBackdrop();t&&t()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(150):r()):t&&t()};t.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;(r||"destroy"!=i)&&(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.2.0";t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var h=n.Event("show.bs."+this.type),c,y,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(h),c=n.contains(document.documentElement,this.$element[0]),h.isDefaultPrevented()||!c)return;var f=this,i=this.tip(),l=this.getUID(this.type);this.setContent();i.attr("id",l);this.$element.attr("aria-describedby",l);this.options.animation&&i.addClass("fade");var t="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,v=a.test(t);v&&(t=t.replace(a,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t).data("bs."+this.type,this);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),e=i[0].offsetWidth,o=i[0].offsetHeight;if(v){var p=t,w=this.$element.parent(),u=this.getPosition(w);t="bottom"==t&&r.top+r.height+o-u.scroll>u.height?"top":"top"==t&&r.top-u.scroll-o<0?"bottom":"right"==t&&r.right+e>u.width?"left":"left"==t&&r.left-e<u.left?"right":t;i.removeClass(p).addClass(t)}y=this.getCalculatedOffset(t,r,e,o);this.applyPlacement(y,t);s=function(){f.$element.trigger("shown.bs."+f.type);f.hoverState=null};n.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",s).emulateTransitionEnd(150):s()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),c=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var l=u.left?2*u.left-c+h:2*u.top-e+f,a=u.left?"left":"top",v=u.left?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(l,r[0][v],a)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function r(){"in"!=t.hoverState&&i.detach();t.$element.trigger("hidden.bs."+t.type)}var t=this,i=this.tip(),u=n.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(u),u.isDefaultPrevented()?void 0:(i.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",r).emulateTransitionEnd(150):r(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],i="BODY"==r.tagName;return n.extend({},"function"==typeof r.getBoundingClientRect?r.getBoundingClientRect():null,{scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop(),width:i?n(window).width():t.outerWidth(),height:i?n(window).height():t.outerHeight()},i?{top:0,left:0}:t.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;(r||"destroy"!=i)&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.2.0";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").empty()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(n(i).is("body")?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.2.0";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,r=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,i=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),r>=e)return u!=(n=i[i.length-1])&&this.activate(n);if(u&&r<=t[0])return u!=(n=i[0])&&this.activate(n);for(n=t.length;n--;)u!=i[n]&&r>=t[n]&&(!t[n+1]||r<=t[n+1])&&this.activate(i[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},r;t.VERSION="3.2.0";t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),(t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.closest("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})))};t.prototype.activate=function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one("bsTransitionEnd",f).emulateTransitionEnd(150):f();u.removeClass("in")};r=n.fn.tab;n.fn.tab=i;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=r,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();i.call(n(this),"show")})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.2.0";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=n(document).height(),h=this.$target.scrollTop(),c=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;"object"!=typeof r&&(u=f=r);"function"==typeof f&&(f=r.top(this.$element));"function"==typeof u&&(u=r.bottom(this.$element));i=null!=this.unpin&&h+this.unpin<=c.top?!1:null!=u&&c.top+this.$element.height()>=s-u?"bottom":null!=f&&f>=h?"top":!1;this.affixed!==i&&(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(n.Event(e.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:s-this.$element.height()-u})))}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n,t){function u(){return new Date(Date.UTC.apply(Date,arguments))}function h(){var n=new Date;return u(n.getFullYear(),n.getMonth(),n.getDate())}function y(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function c(n){return function(){return this[n].apply(this,arguments)}}function p(n){return n&&!isNaN(n.getTime())}function w(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function b(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(v,function(n,t){t in i&&(u[t]=i[t])}),u}var l=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;r>t;t++)if(this[t].valueOf()===i)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new l;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),f=function(t,r){n(t).data("datepicker",this);this._process_options(r);this.dates=new l;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&0===this.component.length&&(this.component=!1);this.picker=n(i.template);this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow);this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this._o.startDate);this.setEndDate(this._o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted);this.setDatesDisabled(this.o.datesDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},o,a,e,s,v,r,i;f.prototype={constructor:f,_resolveViewName:function(n,i){return 0===n||"days"===n||"month"===n?0:1===n||"months"===n||"year"===n?1:2===n||"years"===n||"decade"===n?2:3===n||"decades"===n||"century"===n?3:4===n||"centuries"===n||"millennium"===n?4:i===t?!1:i},_check_template:function(i){try{if(i===t||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var r=n(i);return r.length>0}catch(u){return!1}},_process_options:function(t){var f,o,l,a,e,c;if(this._o=n.extend({},this._o,t),f=this.o=n.extend({},this._o),o=f.language,r[o]||(o=o.split("-")[0],r[o]||(o=s.language)),f.language=o,f.startView=this._resolveViewName(f.startView,0),f.minViewMode=this._resolveViewName(f.minViewMode,0),f.maxViewMode=this._resolveViewName(f.maxViewMode,4),f.startView=Math.min(f.startView,f.maxViewMode),f.startView=Math.max(f.startView,f.minViewMode),f.multidate!==!0&&(f.multidate=Number(f.multidate)||!1,f.multidate!==!1&&(f.multidate=Math.max(0,f.multidate))),f.multidateSeparator=String(f.multidateSeparator),f.weekStart%=7,f.weekEnd=(f.weekStart+6)%7,l=i.parseFormat(f.format),(f.startDate!==-(1/0)&&(f.startDate=f.startDate?f.startDate instanceof Date?this._local_to_utc(this._zero_time(f.startDate)):i.parseDate(f.startDate,l,f.language,f.assumeNearbyYear):-(1/0)),f.endDate!==1/0&&(f.endDate=f.endDate?f.endDate instanceof Date?this._local_to_utc(this._zero_time(f.endDate)):i.parseDate(f.endDate,l,f.language,f.assumeNearbyYear):1/0),f.daysOfWeekDisabled=f.daysOfWeekDisabled||[],n.isArray(f.daysOfWeekDisabled)||(f.daysOfWeekDisabled=f.daysOfWeekDisabled.split(/[,\s]*/)),f.daysOfWeekDisabled=n.map(f.daysOfWeekDisabled,function(n){return parseInt(n,10)}),f.daysOfWeekHighlighted=f.daysOfWeekHighlighted||[],n.isArray(f.daysOfWeekHighlighted)||(f.daysOfWeekHighlighted=f.daysOfWeekHighlighted.split(/[,\s]*/)),f.daysOfWeekHighlighted=n.map(f.daysOfWeekHighlighted,function(n){return parseInt(n,10)}),f.datesDisabled=f.datesDisabled||[],n.isArray(f.datesDisabled))||(a=[],a.push(i.parseDate(f.datesDisabled,l,f.language,f.assumeNearbyYear)),f.datesDisabled=a),f.datesDisabled=n.map(f.datesDisabled,function(n){return i.parseDate(n,l,f.language,f.assumeNearbyYear)}),e=String(f.orientation).toLowerCase().split(/\s+/g),c=f.orientation.toLowerCase(),e=n.grep(e,function(n){return/^auto|left|right|top|bottom$/.test(n)}),f.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===e.length)switch(e[0]){case"top":case"bottom":f.orientation.y=e[0];break;case"left":case"right":f.orientation.x=e[0]}else c=n.grep(e,function(n){return/^left|right$/.test(n)}),f.orientation.x=c[0]||"auto",c=n.grep(e,function(n){return/^top|bottom$/.test(n)}),f.orientation.y=c[0]||"auto";if(f.defaultViewDate){var v=f.defaultViewDate.year||(new Date).getFullYear(),y=f.defaultViewDate.month||0,p=f.defaultViewDate.day||1;f.defaultViewDate=u(v,y,p)}else f.defaultViewDate=h()},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){-1===n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this));this.isInput?this._events=[[this.element,t]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),t],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this),keydown:n.proxy(this.keydown,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":n.proxy(function(n){this.update(n.date)},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{mousedown:n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.picker.hasClass("datepicker-inline")||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){var t=this.component?this.element.find("input"):this.element;if(!t.attr("readonly")||this.o.enableOnReadonly!==!1)return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this},hide:function(){return this.isInline?this:this.picker.is(":visible")?(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"),this):this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&-1!==n.inArray("text/plain",t.originalEvent.clipboardData.types))i=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){return n&&new Date(n.getTime()+6e4*n.getTimezoneOffset())},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return"undefined"!=typeof n?new Date(n):null},clearDates:function(){var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input"));n&&n.val("");this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,n.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:c("setDates"),setUTCDate:c("setUTCDates"),remove:c("destroy"),setValue:function(){var n=this.getFormattedDate();return this.isInput?this.element.val(n):this.component&&this.element.find("input").val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){this._process_options({datesDisabled:n});this.update();this.updateNavArrows()},place:function(){var y,r,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c="body"===this.o.container?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==t&&a.push(parseInt(t))});var v=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=u.left-l.left,i=u.top-l.top;return"body"!==this.o.container&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):u.left<0?(this.picker.addClass("datepicker-orient-left"),t-=u.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t+=o-f):this.picker.addClass("datepicker-orient-left"),r=this.o.orientation.y,("auto"===r&&(y=-c+i-s,r=0>y?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),"top"===r?i-=s+parseInt(this.picker.css("padding-top")):i+=w,this.o.rtl)?(p=h-(t+o),this.picker.css({top:i,right:p,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var r=this.dates.copy(),t=[],u=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),t=n.grep(t,n.proxy(function(n){return!this.dateWithinRange(n)||!n},this),!0),this.dates.replace(t),this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate,u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&r.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var i=this.o.weekStart,t="<tr>";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(n,t){return parseInt(t)+1}),t+='<th class="cw">&#160;<\/th>');i<this.o.weekStart+7;)t+='<th class="dow',n.inArray(i,this.o.daysOfWeekDisabled)>-1&&(t+=" disabled"),t+='">'+r[this.o.language].daysMin[i++%7]+"<\/th>";t+="<\/tr>";this.picker.find(".datepicker-days thead").append(t)},fillMonths:function(){for(var u,t=this._utc_to_local(this.viewDate),i="",n=0;12>n;)u=t&&t.getMonth()===n?" focused":"",i+='<span class="month'+u+'">'+r[this.o.language].monthsShort[n++]+"<\/span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),-1!==n.inArray(t.valueOf(),this.range)&&i.push("selected"),t.valueOf()===this.range[0]&&i.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,r,u,f,e,o,s,h){var w,b,y,k,d,g,a,v,l,p,c;for(w="",b=this.picker.find(i),y=parseInt(e/u,10)*u,d=parseInt(o/f,10)*f,g=parseInt(s/f,10)*f,k=n.map(this.dates,function(n){return parseInt(n.getUTCFullYear()/f,10)*f}),b.find(".datepicker-switch").text(y+"-"+(y+9*f)),a=y-f,v=-1;11>v;v+=1)l=[r],p=null,-1===v?l.push("old"):10===v&&l.push("new"),-1!==n.inArray(a,k)&&l.push("active"),(d>a||a>g)&&l.push("disabled"),a===this.viewDate.getFullYear()&&l.push("focused"),h!==n.noop&&(c=h(new Date(a,0,1)),c===t?c={}:"boolean"==typeof c?c={enabled:c}:"string"==typeof c&&(c={classes:c}),c.enabled===!1&&l.push("disabled"),c.classes&&(l=l.concat(c.classes.split(/\s+/))),c.tooltip&&(p=c.tooltip)),w+='<span class="'+l.join(" ")+'"'+(p?' title="'+p+'"':"")+">"+a+"<\/span>",a+=f;b.find("td").html(w)},fill:function(){var y,e,p=new Date(this.viewDate),o=p.getUTCFullYear(),k=p.getUTCMonth(),a=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),it=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),v=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,rt=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,ut=r[this.o.language].today||r.en.today||"",ft=r[this.o.language].clear||r.en.clear||"",et=r[this.o.language].titleFormat||r.en.titleFormat,f,w,h,s,c,nt,l,tt;if(!isNaN(o)&&!isNaN(k)){for(this.picker.find(".datepicker-days .datepicker-switch").text(i.formatDate(p,et,this.o.language)),this.picker.find("tfoot .today").text(ut).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(ft).toggle(this.o.clearBtn!==!1),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths(),f=u(o,k-1,28),w=i.getDaysInMonth(f.getUTCFullYear(),f.getUTCMonth()),f.setUTCDate(w),f.setUTCDate(w-(f.getUTCDay()-this.o.weekStart+7)%7),h=new Date(f),f.getUTCFullYear()<100&&h.setUTCFullYear(f.getUTCFullYear()),h.setUTCDate(h.getUTCDate()+42),h=h.valueOf(),c=[];f.valueOf()<h;){if(f.getUTCDay()===this.o.weekStart&&(c.push("<tr>"),this.o.calendarWeeks)){var d=new Date(+f+(this.o.weekStart-f.getUTCDay()-7)%7*864e5),g=new Date(Number(d)+(11-d.getUTCDay())%7*864e5),b=new Date(Number(b=u(g.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),ot=(g-b)/6048e5+1;c.push('<td class="cw">'+ot+"<\/td>")}s=this.getClassNames(f);s.push("day");this.o.beforeShowDay!==n.noop&&(e=this.o.beforeShowDay(this._utc_to_local(f)),e===t?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e}),e.enabled===!1&&s.push("disabled"),e.classes&&(s=s.concat(e.classes.split(/\s+/))),e.tooltip&&(y=e.tooltip));s=n.unique(s);c.push('<td class="'+s.join(" ")+'"'+(y?' title="'+y+'"':"")+">"+f.getUTCDate()+"<\/td>");y=null;f.getUTCDay()===this.o.weekEnd&&c.push("<\/tr>");f.setUTCDate(f.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(c.join(""));nt=r[this.o.language].monthsTitle||r.en.monthsTitle||"Months";l=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?nt:o).end().find("span").removeClass("active");(n.each(this.dates,function(n,t){t.getUTCFullYear()===o&&l.eq(t.getUTCMonth()).addClass("active")}),(a>o||o>v)&&l.addClass("disabled"),o===a&&l.slice(0,it).addClass("disabled"),o===v&&l.slice(rt+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(tt=this,n.each(l,function(i,r){var f=new Date(o,i,1),u=tt.o.beforeShowMonth(f);u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u});u.enabled!==!1||n(r).hasClass("disabled")||n(r).addClass("disabled");u.classes&&n(r).addClass(u.classes);u.tooltip&&n(r).prop("title",u.tooltip)}));this._fill_yearsView(".datepicker-years","year",10,1,o,a,v,this.o.beforeShowYear);this._fill_yearsView(".datepicker-decades","decade",100,10,o,a,v,this.o.beforeShowDecade);this._fill_yearsView(".datepicker-centuries","century",1e3,100,o,a,v,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.picker.find(".prev").css(this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"});this.picker.find(".next").css(this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"});break;case 1:case 2:case 3:case 4:this.picker.find(".prev").css(this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?{visibility:"hidden"}:{visibility:"visible"});this.picker.find(".next").css(this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?{visibility:"hidden"}:{visibility:"visible"})}}},click:function(t){var r,c,o,e,f,s,l,a;t.preventDefault();t.stopPropagation();r=n(t.target);r.hasClass("datepicker-switch")&&this.showMode(1);a=r.closest(".prev, .next");a.length>0&&(c=i.modes[this.viewMode].navStep*(a.hasClass("prev")?-1:1),0===this.viewMode?(this.viewDate=this.moveMonth(this.viewDate,c),this._trigger("changeMonth",this.viewDate)):(this.viewDate=this.moveYear(this.viewDate,c),1===this.viewMode&&this._trigger("changeYear",this.viewDate)),this.fill());r.hasClass("today")&&(this.showMode(-2),this._setDate(h(),"linked"===this.o.todayBtn?null:"view"));r.hasClass("clear")&&this.clearDates();r.hasClass("disabled")||(r.hasClass("day")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.hasClass("old")&&(0===f?(f=11,e-=1,s=!0,l=!0):(f-=1,s=!0)),r.hasClass("new")&&(11===f?(f=0,e+=1,s=!0,l=!0):(f+=1,s=!0)),this._setDate(u(e,f,o)),l&&this._trigger("changeYear",this.viewDate),s&&this._trigger("changeMonth",this.viewDate)),r.hasClass("month")&&(this.viewDate.setUTCDate(1),o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(u(e,f,o)),this.showMode()):this.showMode(-1),this.fill()),(r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),r.hasClass("year")&&(this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(u(e,f,o))),r.hasClass("decade")&&(this._trigger("changeDecade",this.viewDate),3===this.o.minViewMode&&this._setDate(u(e,f,o))),r.hasClass("century")&&(this._trigger("changeCentury",this.viewDate),4===this.o.minViewMode&&this._setDate(u(e,f,o))),this.showMode(-1),this.fill()));this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus();delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),-1!==t?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));t&&"view"!==t||(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(n,t){var i=new Date(n);return i.setUTCDate(n.getUTCDate()+t),i},moveWeek:function(n,t){return this.moveDay(n,7*t)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var r,u,i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)u=-1===t?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==r},r=o+t,i.setUTCMonth(r),(0>r||r>11)&&(r=(r+12)%12);else{for(f=0;s>f;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!==i.getUTCMonth()}}for(;u();)i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,12*t)},moveAvailableDate:function(n,t,i){do{if(n=this[i](n,t),!this.dateWithinRange(n))return!1;i="moveDay"}while(this.dateIsDisabled(n));return n},weekOfDateIsDisabled:function(t){return-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||n.grep(this.o.datesDisabled,function(n){return y(t,n)}).length>0},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var t,i,f,r,u;if(!this.picker.is(":visible"))return void((40===n.keyCode||27===n.keyCode)&&(this.show(),n.stopPropagation()));f=!1;r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();n.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===n.keyCode||38===n.keyCode?-1:1;0===this.viewMode?n.ctrlKey?(i=this.moveAvailableDate(r,t,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveAvailableDate(r,t,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):37===n.keyCode||39===n.keyCode?i=this.moveAvailableDate(r,t,"moveDay"):this.weekOfDateIsDisabled(r)||(i=this.moveAvailableDate(r,t,"moveWeek")):1===this.viewMode?((38===n.keyCode||40===n.keyCode)&&(t=4*t),i=this.moveAvailableDate(r,t,"moveMonth")):2===this.viewMode&&((38===n.keyCode||40===n.keyCode)&&(t=4*t),i=this.moveAvailableDate(r,t,"moveYear"));i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),f=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),n.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}f&&(this._trigger(this.dates.length?"changeDate":"clearDate"),this.isInput?u=this.element:this.component&&(u=this.element.find("input")),u&&u.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+n)));this.picker.children("div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).show();this.updateNavArrows()}};o=function(t,i){n(t).data("datepicker",this);this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;e.call(n(this.inputs),i).on("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};o.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){var f;if(!this.updating&&(this.updating=!0,f=n(t.target).data("datepicker"),"undefined"!=typeof f)){var i=f.getUTCDate(),e=n.inArray(t.target,this.inputs),r=e-1,u=e+1,o=this.inputs.length;if(-1!==e){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(i)}),i<this.dates[r])for(;r>=0&&i<this.dates[r];)this.pickers[r--].setUTCDate(i);else if(i>this.dates[u])for(;o>u&&i>this.dates[u];)this.pickers[u++].setUTCDate(i);this.updateDates();delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};a=n.fn.datepicker;e=function(i){var u=Array.apply(null,arguments),r;if(u.shift(),this.each(function(){var h=n(this),t=h.data("datepicker"),c="object"==typeof i&&i;if(!t){var l=w(this,"date"),a=n.extend({},s,l,c),v=b(a.language),e=n.extend({},s,v,l,c);h.hasClass("input-daterange")||e.inputs?(n.extend(e,{inputs:e.inputs||h.find("input").toArray()}),t=new o(this,e)):t=new f(this,e);h.data("datepicker",t)}"string"==typeof i&&"function"==typeof t[i]&&(r=t[i].apply(t,u))}),r===t||r instanceof f||r instanceof o)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return r};n.fn.datepicker=e;s=n.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,beforeShowYear:n.noop,beforeShowDecade:n.noop,beforeShowCentury:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&laquo;",rightArrow:"&raquo;"}};v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=f;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}};i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10},{clsName:"decades",navFnc:"FullDecade",navStep:100},{clsName:"centuries",navFnc:"FullCentury",navStep:1e3}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(n){if("function"==typeof n.toValue&&"function"==typeof n.toDisplay)return n;var t=n.replace(this.validParts,"\x00").split("\x00"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s,c){function rt(n,t){return t===!0&&(t=10),100>n&&(n+=2e3,n>(new Date).getFullYear()+t&&(n-=100)),n}function ut(){var n=this.slice(0,a[l].length),t=a[l].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var p,st,tt,b;if(!e)return t;if(e instanceof Date)return e;if("string"==typeof o&&(o=i.parseFormat(o)),o.toValue)return o.toValue(e,o,s);var v,k,l,d,ft=/([\-+]\d+)([dmwy])/,a=e.match(/([\-+]\d+)([dmwy])/g),et={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},ot={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,l=0;l<a.length;l++)v=ft.exec(a[l]),k=parseInt(v[1]),d=et[v[2]],e=f.prototype[d](e,k);return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}if("undefined"!=typeof ot[e]&&(e=ot[e],a=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e))){for(e=new Date,l=0;l<a.length;l++)v=ft.exec(a[l]),k=parseInt(v[1]),d=et[v[2]],e=f.prototype[d](e,k);return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}a=e&&e.match(this.nonpunctuation)||[];e=new Date;var w,g,nt={},it=["yyyy","yy","M","MM","m","mm","d","dd"],y={yyyy:function(n,t){return n.setUTCFullYear(c?rt(t,c):t)},yy:function(n,t){return n.setUTCFullYear(c?rt(t,c):t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;0>t;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(y.M=y.MM=y.mm=y.m,y.dd=y.d,e=h(),p=o.parts.slice(),a.length!==p.length&&(p=n(p).filter(function(t,i){return-1!==n.inArray(i,it)}).toArray()),a.length===p.length){for(l=0,st=p.length;st>l;l++){if(w=parseInt(a[l],10),v=p[l],isNaN(w))switch(v){case"MM":g=n(r[s].months).filter(ut);w=n.inArray(g[0],r[s].months)+1;break;case"M":g=n(r[s].monthsShort).filter(ut);w=n.inArray(g[0],r[s].monthsShort)+1}nt[v]=w}for(l=0;l<it.length;l++)b=it[l],b in nt&&!isNaN(nt[b])&&(tt=new Date(e),y[b](tt,nt[b]),isNaN(tt)||(e=tt))}return e},formatDate:function(t,u,f){var e;if(!t)return"";if("string"==typeof u&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;h>=o;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"><\/th><\/tr><tr><th class="prev">&laquo;<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">&raquo;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-decades"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-centuries"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this};n.fn.datepicker.version="1.7.0-dev";n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),e.call(i,"show"))});n(function(){e.call(n('[data-provide="datepicker-inline"]'))})});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n.Vimeo=n.Vimeo||{},n.Vimeo.Player=t())}(this,function(){"use strict";function a(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function y(n,t){return 0===n.indexOf(t.toLowerCase())?n:"".concat(t.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function r(n){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(n)}function p(){var t,u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=u.id,f=u.url,n=i||f;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=n,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(n);if(r(n))return n.replace("http:","https:");if(i)throw new TypeError("“".concat(i,"” is not a valid video id."));throw new TypeError("“".concat(n,"” is not a vimeo.com url."));}function u(t,i,r){var u=n.get(t.element)||{};i in u||(u[i]=[]);u[i].push(r);n.set(t.element,u)}function f(t,i){return(n.get(t.element)||{})[i]||[]}function h(t,i,r){var u=n.get(t.element)||{},f;return u[i]?r?(f=u[i].indexOf(r),-1!==f&&u[i].splice(f,1),n.set(t.element,u),u[i]&&0===u[i].length):(u[i]=[],n.set(t.element,u),!0):!0}function b(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return w.reduce(function(t,i){var r=n.getAttribute("data-vimeo-".concat(i));return(r||""===r)&&(t[i]=""===r?1:r),t},t)}function c(n,t){var r=n.html,i;if(!t)throw new TypeError("An element must be provided");return null!==t.getAttribute("data-vimeo-initialized")?t.querySelector("iframe"):(i=document.createElement("div"),i.innerHTML=r,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe"))}function k(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length?arguments[2]:void 0;return new Promise(function(u,f){var s,o,e;if(!r(n))throw new TypeError("“".concat(n,"” is not a vimeo.com url."));s="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(n),"&domain=").concat(window.location.hostname);for(o in t)t.hasOwnProperty(o)&&(s+="&".concat(o,"=").concat(encodeURIComponent(t[o])));e="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;e.open("GET",s,!0);e.onload=function(){if(404!==e.status)if(403!==e.status)try{var t=JSON.parse(e.responseText);if(403===t.domain_status_code)return c(t,i),void f(new Error("“".concat(n,"” is not embeddable.")));u(t)}catch(t){f(t)}else f(new Error("“".concat(n,"” is not embeddable.")));else f(new Error("“".concat(n,"” was not found.")))};e.onerror=function(){var n=e.status?" (".concat(e.status,")"):"";f(new Error("There was an error fetching the embed code from Vimeo".concat(n,".")))};e.send()})}function d(n){return"string"==typeof n&&(n=JSON.parse(n)),n}function e(n,t,i){var r,u;n.element.contentWindow&&n.element.contentWindow.postMessage&&(r={method:t},void 0!==i&&(r.value=i),u=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1")),8<=u&&u<10&&(r=JSON.stringify(r)),n.element.contentWindow.postMessage(r,n.origin))}function tt(n,t){var i,r=[],u;(t=d(t)).event?("error"===t.event&&f(n,t.data.method).forEach(function(i){var r=new Error(t.data.message);r.name=t.data.name;i.reject(r);h(n,t.data.method,i)}),r=f(n,"event:".concat(t.event)),i=t.data):t.method&&(u=function(n,t){var r=f(n,t),i;return r.length<1?!1:(i=r.shift(),h(n,t,i),i)}(n,t.method),u&&(r.push(u),i=t.value));r.forEach(function(t){try{if("function"==typeof t)return void t.call(n,i);t.resolve(i)}catch(t){}})}var v="undefined"!=typeof global&&"[object global]"==={}.toString.call(global),g=void 0!==Array.prototype.indexOf,nt="undefined"!=typeof window&&void 0!==window.postMessage,o,s,t,n,w;if(!(v||g&&nt))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(n){function i(n){return Object(n)===n}if(!n.WeakMap){var r=Object.prototype.hasOwnProperty,t=function(n,t,i){Object.defineProperty?Object.defineProperty(n,t,{configurable:!0,writable:!0,value:i}):n[t]=i};n.WeakMap=function(){function n(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(t(this,"_id","_WeakMap_"+f()+"."+f()),0<arguments.length)throw new TypeError("WeakMap iterable is not supported");}function u(n,t){if(!i(n)||!r.call(n,"_id"))throw new TypeError(t+" method called on incompatible receiver "+typeof n);}function f(){return Math.random().toString().substring(2)}return t(n.prototype,"delete",function(n){if(u(this,"delete"),!i(n))return!1;var t=n[this._id];return!(!t||t[0]!==n)&&(delete n[this._id],!0)}),t(n.prototype,"get",function(n){if(u(this,"get"),i(n)){var t=n[this._id];return t&&t[0]===n?t[1]:void 0}}),t(n.prototype,"has",function(n){if(u(this,"has"),!i(n))return!1;var t=n[this._id];return!(!t||t[0]!==n)}),t(n.prototype,"set",function(n,r){if(u(this,"set"),!i(n))throw new TypeError("Invalid value used as weak map key");var f=n[this._id];return f&&f[0]===n?f[1]=r:t(n,this._id,[n,r]),this}),t(n,"_polyfill",!0),n}()}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:o);t=(function(n){var t,i,r;r=function(){function r(n,t){f.add(n,t);u||(u=a(f.drain))}function s(n){var t,i=typeof n;return null==n||"object"!=i&&"function"!=i||(t=n.then),"function"==typeof t&&t}function e(){for(var n=0;n<this.chain.length;n++)v(this,1===this.state?this.chain[n].success:this.chain[n].failure,this.chain[n]);this.chain.length=0}function v(n,t,i){var r,u;try{!1===t?i.reject(n.msg):(r=!0===t?n.msg:t.call(void 0,n.msg))===i.promise?i.reject(TypeError("Promise-chain cycle")):(u=s(r))?u.call(r,i.resolve,i.reject):i.resolve(r)}catch(n){i.reject(n)}}function i(n){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=n,t.state=2,0<t.chain.length&&r(e,t))}function h(n,t,i,r){for(var u=0;u<t.length;u++)!function(u){n.resolve(t[u]).then(function(n){i(u,n)},r)}(u)}function c(n){this.def=n;this.triggered=!1}function y(n){this.promise=n;this.state=0;this.triggered=!1;this.chain=[];this.msg=void 0}function t(n){if("function"!=typeof n)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new y(this);this.then=function(n,i){var u={success:"function"!=typeof n||n,failure:"function"==typeof i&&i};return u.promise=new this.constructor(function(n,t){if("function"!=typeof n||"function"!=typeof t)throw TypeError("Not a function");u.resolve=n;u.reject=t}),t.chain.push(u),0!==t.state&&r(e,t),u.promise};this.catch=function(n){return this.then(void 0,n)};try{n.call(void 0,function(n){(function n(t){var f,u=this;if(!u.triggered){u.triggered=!0;u.def&&(u=u.def);try{(f=s(t))?r(function(){var r=new c(u);try{f.call(t,function(){n.apply(r,arguments)},function(){i.apply(r,arguments)})}catch(n){i.call(r,n)}}):(u.msg=t,u.state=1,0<u.chain.length&&r(e,u))}catch(n){i.call(new c(u),n)}}}).call(t,n)},function(n){i.call(t,n)})}catch(n){i.call(t,n)}}var n,u,f,o=Object.prototype.toString,a="undefined"!=typeof setImmediate?function(n){return setImmediate(n)}:setTimeout,l;try{Object.defineProperty({},"x",{});n=function(n,t,i,r){return Object.defineProperty(n,t,{value:i,writable:!0,configurable:!1!==r})}}catch(o){n=function(n,t,i){return n[t]=i,n}}return f=function(){function r(n,t){this.fn=n;this.self=t;this.next=void 0}var i,t,n;return{add:function(u,f){n=new r(u,f);t?t.next=n:i=n;t=n;n=void 0},drain:function(){var n=i;for(i=t=u=void 0;n;)n.fn.call(n.self),n=n.next}}}(),l=n({},"constructor",t,!1),n(t.prototype=l,"__NPO__",0,!1),n(t,"resolve",function(n){return n&&"object"==typeof n&&1===n.__NPO__?n:new this(function(t,i){if("function"!=typeof t||"function"!=typeof i)throw TypeError("Not a function");t(n)})}),n(t,"reject",function(n){return new this(function(t,i){if("function"!=typeof t||"function"!=typeof i)throw TypeError("Not a function");i(n)})}),n(t,"all",function(n){var t=this;return"[object Array]"!=o.call(n)?t.reject(TypeError("Not an array")):0===n.length?t.resolve([]):new t(function(i,r){if("function"!=typeof i||"function"!=typeof r)throw TypeError("Not a function");var u=n.length,f=Array(u),e=0;h(t,n,function(n,t){f[n]=t;++e===u&&i(f)},r)})}),n(t,"race",function(n){var t=this;return"[object Array]"!=o.call(n)?t.reject(TypeError("Not an array")):new t(function(i,r){if("function"!=typeof i||"function"!=typeof r)throw TypeError("Not a function");h(t,n,function(n,t){i(t)},r)})}),t};(i=o)[t="Promise"]=i[t]||r();n.exports&&(n.exports=i[t])}(s={exports:{}},s.exports),s.exports);n=new WeakMap;w=["autopause","autoplay","background","byline","color","height","id","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","title","transparent","url","width"];var i=new WeakMap,l=new WeakMap,it=function(){function o(u){var f=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s,h;if(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,o),window.jQuery&&u instanceof jQuery&&(1<u.length&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),u=u[0]),"undefined"!=typeof document&&"string"==typeof u&&(u=document.getElementById(u)),!(u instanceof window.HTMLElement))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==u.nodeName&&(s=u.querySelector("iframe"),s&&(u=s)),"IFRAME"===u.nodeName&&!r(u.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");return i.has(u)?i.get(u):(this.element=u,this.origin="*",h=new t(function(t,e){var s=function(n){if(r(n.origin)&&f.element.contentWindow===n.source){"*"===f.origin&&(f.origin=n.origin);var i=d(n.data),u="event"in i&&"ready"===i.event,e="method"in i&&"ping"===i.method;if(u||e)return f.element.setAttribute("data-ready","true"),void t();tt(f,i)}},o;(window.addEventListener?window.addEventListener("message",s,!1):window.attachEvent&&window.attachEvent("onmessage",s),"IFRAME"!==f.element.nodeName)&&(o=b(u,a),k(p(o),o,u).then(function(t){var r,e,o,s=c(t,u);return f.element=s,f._originalElement=u,r=u,e=s,o=n.get(r),n.set(e,o),n.delete(r),i.set(f.element,f),t}).catch(function(n){return e(n)}))}),l.set(this,h),i.set(this.element,this),"IFRAME"===this.element.nodeName&&e(this,"ping"),this)}var s,v,w;return s=o,(v=[{key:"callMethod",value:function(n){var i=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new t(function(t,f){return i.ready().then(function(){u(i,n,{resolve:t,reject:f});e(i,n,r)}).catch(function(n){f(n)})})}},{key:"get",value:function(n){var i=this;return new t(function(t,r){return n=y(n,"get"),i.ready().then(function(){u(i,n,{resolve:t,reject:r});e(i,n)})})}},{key:"set",value:function(n,i){var r=this;return t.resolve(i).then(function(i){if(n=y(n,"set"),null==i)throw new TypeError("There must be a value to set.");return r.ready().then(function(){return new t(function(t,f){u(r,n,{resolve:t,reject:f});e(r,n,i)})})})}},{key:"on",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===f(this,"event:".concat(n)).length&&this.callMethod("addEventListener",n).catch(function(){});u(this,"event:".concat(n),t)}},{key:"off",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");h(this,"event:".concat(n),t)&&this.callMethod("removeEventListener",n).catch(function(){})}},{key:"loadVideo",value:function(n){return this.callMethod("loadVideo",n)}},{key:"ready",value:function(){var n=l.get(this)||new t(function(n,t){t(new Error("Unknown player. Probably unloaded."))});return t.resolve(n)}},{key:"addCuePoint",value:function(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:n,data:t})}},{key:"removeCuePoint",value:function(n){return this.callMethod("removeCuePoint",n)}},{key:"enableTextTrack",value:function(n,t){if(!n)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:n,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var n=this;return new t(function(t){l.delete(n);i.delete(n.element);n._originalElement&&(i.delete(n._originalElement),n._originalElement.removeAttribute("data-vimeo-initialized"));n.element&&"IFRAME"===n.element.nodeName&&n.element.parentNode&&n.element.parentNode.removeChild(n.element);t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(n){return this.set("autopause",n)}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(n){return this.set("color",n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(n){return this.set("currentTime",n)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(n){return this.set("loop",n)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(n){return this.set("playbackRate",n)}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(n){return this.set("volume",n)}}])&&a(s.prototype,v),w&&a(s,w),o}();return v||(function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,i=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(n){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(n))};i.forEach(function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var i=b(t);k(p(i),i,t).then(function(n){return c(n,t)}).catch(n)}catch(i){n(i)}})}(),function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,n;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,n=function(n){if(r(n.origin)&&n.data&&"spacechange"===n.data.event)for(var u=t.querySelectorAll("iframe"),i=0;i<u.length;i++)if(u[i].contentWindow===n.source){u[i].parentElement.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}},window.addEventListener?window.addEventListener("message",n,!1):window.attachEvent&&window.attachEvent("onmessage",n))}()),it});$(document).ready(function(){$(".treat-links>.sub-head>h5:empty").parent().css({"padding-bottom":"0","padding-top":"20px"});$(".img-txt-wrap-lft>.sub-head>h5:empty").parent().css("margin-bottom","5px");$(".phy-office>.sub-head").each(function(){var n=$.trim($(this).text());n==""&&$(this).css("display","none")});$(".har-vas-cont h5").each(function(){var n=$.trim($(this).text());n==""&&$(this).css("display","none")});$(".help-box p").each(function(){var n=$.trim($(this).text());n==""&&$(this).css("display","none")});$(".arryth-content>.main-head>h4:empty").parent().css("padding","0")});$(document).ready(function(){$(".ZipCode").bind("keypress",function(n){return n.which!=8&&n.which!=0&&(n.which<48||n.which>57)?!1:!0});$(".right-ver-cta").each(function(n,t){var i=$(t);i.children().length>0?i.show():i.hide()});$("#mbSearch").on("click",function(){$(".mainNav-collapse").hasClass("in")&&($(".mainNav-collapse").removeClass("in"),$(".mobHeadLinks ").removeClass("in"),$(".msHamber").addClass("collapsed"));$(".nav-cont").slideUp(200)});$(".msHamber").on("click",function(){$(".global-search-wrapper").hasClass("in")&&($(".global-search-wrapper").removeClass("in"),$("#mbSearch").addClass("collapsed"))})});$(window).on("load",function(){homePageImage($(".respImg-Home").width())});$(window).resize(function(){homePageImage($(".respImg-Home").width())});methodist.utils.events.onload(function(){methodist.utils.browser.isIE()&&($(".serviceBannerImg:not(.no-custom-fit)").each(function(){var n=$(this),t=n.find("img").prop("src");t&&n.css("backgroundImage","url("+t+")").addClass("custom-object-fit")}),$(".split-banner-item-img").each(function(){var n=$(this),t=n.find("img").prop("src");t&&n.css("backgroundImage","url("+t+")").addClass("custom-object-fit")}))});methodist.utils.events.onload(function(){methodist.utils.grid.initializeFlex()});$(document).ready(function(){function n(n){var i=window.location.href,u=r("sc_lang"),t,f;u!=""&&u!=undefined?(i=i.replace("sc_lang="+u,"sc_lang="+n),window.location.href=i):(t=window.location.hostname,f=i.search(t+"/en")>-1?i.replace(t+"/en",t+"/"+n):i.search(t+"/es-MX")>-1?i.replace(t+"/es-MX",t+"/"+n):i.search(t+"/ar-SA")>-1?i.replace(t+"/ar-SA",t+"/"+n):i.replace(t,t+"/"+n),window.location.href=f)}function r(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}var u,t,i;$("#LanguageList").change(function(){n($("#LanguageList").val())});$(".MobileEnglishClick").on("click",function(){n("en")});$(".MobileSpanishClick").on("click",function(){n("es-MX")});$(".MobileArabicClick").on("click",function(){n("ar-SA")});u=r("sc_lang");u!=""&&u!=undefined?$("#LanguageList").val(r("sc_lang")):(t=window.location.href,i=window.location.hostname,t.search(i+"/en")>-1?$("#LanguageList").val("en"):t.search(i+"/es-MX")>-1?$("#LanguageList").val("es-MX"):t.search(i+"/ar-SA")>-1?$("#LanguageList").val("ar-SA"):$("#LanguageList").val("en"))});$(function(){adjustStyle($(window).width());$(window).resize(function(){adjustStyle($(window).width())})});isTouchDevice()===!1&&$(window).resize(function(){var n=$(window).width();n<=767&&($(".msHamber").addClass("collapsed"),$(".nav-cont").slideUp(200),$("#navbar").removeClass("in"),$(".mobHeadLinks").removeClass("in"),$(".main-nav li").removeClass("open"))});var methodist=methodist||{};methodist.components=methodist.components||{};methodist.components.video=methodist.components.video||{players:[],initialized:!1,initialize:function(){if(!this.initialized){var n=$(window),t=this;this.scanner=methodist.utils.throttle(function(){$.each(t.players,function(i,r){if(!r.autoPlay)return!0;var u=$("#"+r.id),f=u.offset().top,o=f+u.outerHeight(),e=n.scrollTop(),s=e+n.height();o<=s&&f>=e&&t.play(r)})},250);n.on("scroll",this.scanner)}},getPlayer:function(n){var t=null;return $.each(this.players,function(i,r){if(r.id==n)return t=r,!1}),t},play:function(n){n.video.play();var t=$("#"+n.id).find("div");t.css({height:"auto",cursor:"auto",background:""});t.find("span").hide();t.find("iframe").show()},setup:function(n,t){var u,r,i;t=t||{};u=this;this.initialize();r=$("#"+n);i={id:n,video:new Vimeo.Player(n),autoPlay:r.attr("data-slider-auto-play").toLowerCase()==="true"};i.video.on("pause",function(){i.autoPlay=!1});i.video.on("loaded",function(n){var f=r.children().first(),e=function(e,o){f.css({cursor:"pointer",height:"auto","min-height":o+"px",background:"url("+e+") no-repeat center center",backgroundSize:"cover"});f.children().first().hide();f.append("<span><img class='video-play-icon' src='/medialibrary/images/play-arrow-mulberry.svg'><\/span>");f.one("click",function(){i.autoPlay=!1;u.play(i);t.play&&t.play(u.getPlayer(n.id))});r.show();t.ready&&t.ready(u.getPlayer(n.id))},o=r.attr("data-slider-thumbnail"),s=r.attr("data-slider-thumbnail-height");o===""?$.ajax({type:"GET",url:"https://vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){e(n[0].thumbnail_large,s)}}):e(o,s)});this.players.push(i)}};document.readyState!=="loading"?setupSelectDropdown():document.addEventListener("DOMContentLoaded",setupSelectDropdown)