function hasScrolled(){var t=$(this).scrollTop();Math.abs(lastScrollTop-t)<=delta||(t>lastScrollTop&&t>navbarHeight?$("header").removeClass("nav-down").addClass("is-hide"):t+$(window).height()<$(document).height()&&$("header").removeClass("is-hide").addClass("nav-down"),lastScrollTop=t)}function displayLoading(){$(".js-isotope-loading").removeClass("hide")}function hideLoading(){$(".js-isotope-loading").addClass("hide")}function updateContainerHeight(){$(".js-isotope-container").css("height","auto")}function closeModal(){if($(".modal.is-active").find("iframe").length){var t=$(".modal.is-active iframe"),e=t.prop("src");e=e.replace("?&amp;autoplay=1",""),t.prop("src",""),t.prop("src",e)}$(".modal").removeClass("is-active"),$("body, html").removeClass("body-fixed")}function GET(t){return HTTP_GET_VARS[t]?HTTP_GET_VARS[t]:""}function checkIfComplete(){$("body").find(".filtered-on").length?0==$(".filtered-on.hide").length&&$(".js-news-loadmore").parents(".underline-list__btn-wrap").hide():0==$(".js-news-item.hide").length&&$(".js-news-loadmore").parents(".underline-list__btn-wrap").hide()}function checkIfEmpty(){$(".js-news-item").length==$(".js-news-item.hide").length&&($(".js-news-empty").removeClass("hide"),$(".js-news-loadmore").parents(".underline-list__btn-wrap").hide())}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function updateTitleDate(t,e){var i=document.getElementById("display-date");if(i)if("events-all"==e)i.innerHTML="ALL, "+t.format("YYYY");else if("events-week"==e){var n=t.clone().add(1,"week");t.clone().add(-1,"week");t.format("M")==n.format("M")?i.innerHTML=t.format("MMM. DD")+" - "+n.format("DD"):i.innerHTML=t.format("MMM. DD")+" - "+n.format("MMM. DD")}else"events-day"==e&&(i.innerHTML=t.format("dddd, MMM. D, YYYY"))}function loadEventsdata(t){displayLoading(),hideEmptySection(),$.ajax({url:"/wp-json/wp/v2/event?per_page=100",type:"GET",dataType:"json",success:function(e){$.each(e,function(i,n){var s=moment(n.acf.event_date),o=moment(n.acf.event_end_date),r=event_card_tpl([{event_thumb:n.acf.event_thumb_image,event_day_sort:s.format("YYYYMMDD"),event_day:s.format("D"),event_month:s.format("MMM"),event_end_day:o.format("D"),event_end_month:o.format("MMM"),event_title:n.title.rendered,event_description:n.acf.event_short_description,event_link:n.link}]);if("events-week"==t){var a=selectedDate.clone().add(1,"week");(s.isSameOrAfter(selectedDate)&&s.isSameOrBefore(a)||selectedDate.isSameOrAfter(s)&&selectedDate.isSameOrBefore(o))&&appendItem(r)}else"events-day"==t?"Invalid date"==o.format("D")?selectedDate.format("ll")==s.format("ll")&&appendItem(r):selectedDate.isBetween(s,o,null,"[]")&&appendItem(r):(qualifyItemCount=e.length,loadMoreLogic(r))}),skipCount=0,bLazy.revalidate(),checkIfNoData(),checkLoadButton()},error:function(){alert("ERROR!!!")}})}function appendItem(t){hideLoading(),newCards=$(t).appendTo(".js-events-isotope"),$(".js-events-isotope").isotope("appended",newCards).isotope("layout").isotope({sortBy:"date"})}function clearEventsdata(){$(".js-events-isotope").isotope("remove",$(".isotope-section__item"))}function loadMoreLogic(t){if(qualifyItemCount>displayLimit){if(currentdisplayCount==displayLimit)return displayLimit+=6,skipItem=currentdisplayCount,!1;skipCount!=skipItem?skipCount++:(appendItem(t),currentdisplayCount++)}else skipCount!=skipItem?skipCount++:(appendItem(t),currentdisplayCount++)}function resetCounts(){displayLimit=6,currentdisplayCount=0,qualifyItemCount=0,skipItem=0,skipCount=0}function checkLoadButton(){currentdisplayCount==qualifyItemCount?$(".js-eventes-loadmore").addClass("hide"):($(".js-eventes-loadmore").find(".with-icon-btn__text").html("See More"),$(".js-eventes-loadmore").find(".with-icon-btn__icon").show(),$(".js-eventes-loadmore").removeClass("hide"))}function checkIfNoData(){setTimeout(function(){0==$(".isotope-section__item").length?(displayEmptySection(),updateContainerHeight()):hideEmptySection(),hideLoading()},500)}function displayEmptySection(){$(".js-event-empty").removeClass("hide")}function hideEmptySection(){$(".js-event-empty").addClass("hide")}function loadTestimonialData(){console.log(loadTestimonialData),displayLoading(),$.ajax({url:"/wp-json/wp/v2/testimonial?per_page=100",type:"GET",dataType:"json",success:function(t){totalItem=t.length,$.each(t,function(t,e){var i=testimonial_card_tpl([{t_title:e.title.rendered,t_description:e.acf.testimonial_comment,t_location:e.acf.testimonial_location}]);if(totalItem>tDisplayLimit){if(tCurrentdisplay==tDisplayLimit)return tDisplayLimit+=5,tSkipItem=tCurrentdisplay,!1;tSkipCount!=tSkipItem?tSkipCount++:(appendTestimonial(i),tCurrentdisplay++)}else tSkipCount!=tSkipItem?tSkipCount++:(appendTestimonial(i),tCurrentdisplay++)}),tSkipCount=0,tCurrentdisplay==totalItem?$(".js-testimonial-loadmore").addClass("hide"):($(".js-testimonial-loadmore").find(".with-icon-btn__text").html("See More"),$(".js-testimonial-loadmore").find(".with-icon-btn__icon").show(),$(".js-testimonial-loadmore").removeClass("hide"))},error:function(){alert("ERROR!!!")}})}function appendTestimonial(t){hideLoading(),newItem=$(t).appendTo(".js-testimonial-isotope"),$(".js-testimonial-isotope").isotope("appended",newItem).isotope("layout")}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e="length"in t&&t.length,i=K.type(t);return"function"!==i&&!K.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}function n(t,e,i){if(K.isFunction(e))return K.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return K.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(at.test(e))return K.filter(e,t,i);e=K.filter(e,t)}return K.grep(t,function(t){return G.call(e,t)>=0!==i})}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=pt[t]={};return K.each(t.match(ft)||[],function(t,i){e[i]=!0}),e}function r(){Q.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1),K.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=K.expando+a.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(bt,"-$1").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:wt.test(i)?K.parseJSON(i):i)}catch(s){}yt.set(t,e,i)}else i=void 0;return i}function d(){return!0}function u(){return!1}function c(){try{return Q.activeElement}catch(t){}}function h(t,e){return K.nodeName(t,"table")&&K.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function f(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function p(t){var e=Ot.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var i=0,n=t.length;n>i;i++)vt.set(t[i],"globalEval",!e||vt.get(e[i],"globalEval"))}function m(t,e){var i,n,s,o,r,a,l,d;if(1===e.nodeType){if(vt.hasData(t)&&(o=vt.access(t),r=vt.set(e,o),d=o.events)){delete r.handle,r.events={};for(s in d)for(i=0,n=d[s].length;n>i;i++)K.event.add(e,s,d[s][i])}yt.hasData(t)&&(a=yt.access(t),l=K.extend({},a),yt.set(e,l))}}function v(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&K.nodeName(t,e)?K.merge([t],i):i}function y(t,e){var i=e.nodeName.toLowerCase();"input"===i&&xt.test(t.type)?e.checked=t.checked:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}function w(e,i){var n,s=K(i.createElement(e)).appendTo(i.body),o=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(s[0]))?n.display:K.css(s[0],"display");return s.detach(),o}function b(t){var e=Q,i=Pt[t];return i||(i=w(t,e),"none"!==i&&i||(jt=(jt||K("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=jt[0].contentDocument,e.write(),e.close(),i=w(t,e),jt.detach()),Pt[t]=i),i}function S(t,e,i){var n,s,o,r,a=t.style;return i=i||qt(t),i&&(r=i.getPropertyValue(e)||i[e]),i&&(""!==r||K.contains(t.ownerDocument,t)||(r=K.style(t,e)),Ft.test(r)&&Wt.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function _(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function T(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,s=Zt.length;s--;)if(e=Zt[s]+i,e in t)return e;return n}function x(t,e,i){var n=Bt.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function C(t,e,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,r=0;4>o;o+=2)"margin"===i&&(r+=K.css(t,i+_t[o],!0,s)),n?("content"===i&&(r-=K.css(t,"padding"+_t[o],!0,s)),"margin"!==i&&(r-=K.css(t,"border"+_t[o]+"Width",!0,s))):(r+=K.css(t,"padding"+_t[o],!0,s),"padding"!==i&&(r+=K.css(t,"border"+_t[o]+"Width",!0,s)));return r}function D(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,o=qt(t),r="border-box"===K.css(t,"boxSizing",!1,o);if(0>=s||null==s){if(s=S(t,e,o),(0>s||null==s)&&(s=t.style[e]),Ft.test(s))return s;n=r&&(X.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+C(t,e,i||(r?"border":"content"),n,o)+"px"}function k(t,e){for(var i,n,s,o=[],r=0,a=t.length;a>r;r++)n=t[r],n.style&&(o[r]=vt.get(n,"olddisplay"),i=n.style.display,e?(o[r]||"none"!==i||(n.style.display=""),""===n.style.display&&Tt(n)&&(o[r]=vt.access(n,"olddisplay",b(n.nodeName)))):(s=Tt(n),"none"===i&&s||vt.set(n,"olddisplay",s?i:K.css(n,"display"))));for(r=0;a>r;r++)n=t[r],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[r]||"":"none"));return t}function E(t,e,i,n,s){return new E.prototype.init(t,e,i,n,s)}function $(){return setTimeout(function(){Xt=void 0}),Xt=K.now()}function H(t,e){var i,n=0,s={height:t};for(e=e?1:0;4>n;n+=2-e)i=_t[n],s["margin"+i]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function M(t,e,i){for(var n,s=(ie[e]||[]).concat(ie["*"]),o=0,r=s.length;r>o;o++)if(n=s[o].call(i,e,t))return n}function R(t,e,i){var n,s,o,r,a,l,d,u,c=this,h={},f=t.style,p=t.nodeType&&Tt(t),g=vt.get(t,"fxshow");i.queue||(a=K._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,K.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],d=K.css(t,"display"),u="none"===d?vt.get(t,"olddisplay")||b(t.nodeName):d,"inline"===u&&"none"===K.css(t,"float")&&(f.display="inline-block")),i.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}));for(n in e)if(s=e[n],Jt.exec(s)){if(delete e[n],o=o||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;p=!0}h[n]=g&&g[n]||K.style(t,n)}else d=void 0;if(K.isEmptyObject(h))"inline"===("none"===d?b(t.nodeName):d)&&(f.display=d);else{g?"hidden"in g&&(p=g.hidden):g=vt.access(t,"fxshow",{}),o&&(g.hidden=!p),p?K(t).show():c.done(function(){K(t).hide()}),c.done(function(){var e;vt.remove(t,"fxshow");for(e in h)K.style(t,e,h[e])});for(n in h)r=M(p?g[n]:0,n,c),n in g||(g[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}}function I(t,e){var i,n,s,o,r;for(i in t)if(n=K.camelCase(i),s=e[n],o=t[i],K.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),r=K.cssHooks[n],r&&"expand"in r){o=r.expand (o),delete t[n];for(i in o)i in t||(t[i]=o[i],e[i]=s)}else e[n]=s}function A(t,e,i){var n,s,o=0,r=ee.length,a=K.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Xt||$(),i=Math.max(0,d.startTime+d.duration-e),n=i/d.duration||0,o=1-n,r=0,l=d.tweens.length;l>r;r++)d.tweens[r].run(o);return a.notifyWith(t,[d,o,i]),1>o&&l?i:(a.resolveWith(t,[d]),!1)},d=a.promise({elem:t,props:K.extend({},e),opts:K.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Xt||$(),duration:i.duration,tweens:[],createTween:function(e,i){var n=K.Tween(t,d.opts,e,i,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(n),n},stop:function(e){var i=0,n=e?d.tweens.length:0;if(s)return this;for(s=!0;n>i;i++)d.tweens[i].run(1);return e?a.resolveWith(t,[d,e]):a.rejectWith(t,[d,e]),this}}),u=d.props;for(I(u,d.opts.specialEasing);r>o;o++)if(n=ee[o].call(d,t,u,d.opts))return n;return K.map(u,M,d),K.isFunction(d.opts.start)&&d.opts.start.call(t,d),K.fx.timer(K.extend(l,{elem:t,anim:d,queue:d.opts.queue})),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always)}function L(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(ft)||[];if(K.isFunction(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function O(t,e,i,n){function s(a){var l;return o[a]=!0,K.each(t[a]||[],function(t,a){var d=a(e,i,n);return"string"!=typeof d||r||o[d]?r?!(l=d):void 0:(e.dataTypes.unshift(d),s(d),!1)}),l}var o={},r=t===we;return s(e.dataTypes[0])||!o["*"]&&s("*")}function z(t,e){var i,n,s=K.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&K.extend(!0,t,n),t}function N(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}function j(t,e,i,n){var s,o,r,a,l,d={},u=t.dataTypes.slice();if(u[1])for(r in t.converters)d[r.toLowerCase()]=t.converters[r];for(o=u.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(r=d[l+" "+o]||d["* "+o],!r)for(s in d)if(a=s.split(" "),a[1]===o&&(r=d[l+" "+a[0]]||d["* "+a[0]])){r===!0?r=d[s]:d[s]!==!0&&(o=a[0],u.unshift(a[1]));break}if(r!==!0)if(r&&t["throws"])e=r(e);else try{e=r(e)}catch(c){return{state:"parsererror",error:r?c:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function P(t,e,i,n){var s;if(K.isArray(e))K.each(e,function(e,s){i||xe.test(t)?n(t,s):P(t+"["+("object"==typeof s?e:"")+"]",s,i,n)});else if(i||"object"!==K.type(e))n(t,e);else for(s in e)P(t+"["+s+"]",e[s],i,n)}function W(t){return K.isWindow(t)?t:9===t.nodeType&&t.defaultView}var F=[],q=F.slice,Y=F.concat,B=F.push,G=F.indexOf,V={},U=V.toString,Z=V.hasOwnProperty,X={},Q=t.document,J="2.1.4",K=function(t,e){return new K.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,it=/-([\da-z])/gi,nt=function(t,e){return e.toUpperCase()};K.fn=K.prototype={jquery:J,constructor:K,selector:"",length:0,toArray:function(){return q.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:q.call(this)},pushStack:function(t){var e=K.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return K.each(this,t,e)},map:function(t){return this.pushStack(K.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(q.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:F.sort,splice:F.splice},K.extend=K.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,d=!1;for("boolean"==typeof r&&(d=r,r=arguments[a]||{},a++),"object"==typeof r||K.isFunction(r)||(r={}),a===l&&(r=this,a--);l>a;a++)if(null!=(t=arguments[a]))for(e in t)i=r[e],n=t[e],r!==n&&(d&&n&&(K.isPlainObject(n)||(s=K.isArray(n)))?(s?(s=!1,o=i&&K.isArray(i)?i:[]):o=i&&K.isPlainObject(i)?i:{},r[e]=K.extend(d,o,n)):void 0!==n&&(r[e]=n));return r},K.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===K.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!K.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"===K.type(t)&&!t.nodeType&&!K.isWindow(t)&&!(t.constructor&&!Z.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?V[U.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=K.trim(t),t&&(1===t.indexOf("use strict")?(e=Q.createElement("script"),e.text=t,Q.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,"ms-").replace(it,nt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var s,o=0,r=t.length,a=i(t);if(n){if(a)for(;r>o&&(s=e.apply(t[o],n),s!==!1);o++);else for(o in t)if(s=e.apply(t[o],n),s===!1)break}else if(a)for(;r>o&&(s=e.call(t[o],o,t[o]),s!==!1);o++);else for(o in t)if(s=e.call(t[o],o,t[o]),s===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?K.merge(n,"string"==typeof t?[t]:t):B.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:G.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;i>n;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n,s=[],o=0,r=t.length,a=!i;r>o;o++)n=!e(t[o],o),n!==a&&s.push(t[o]);return s},map:function(t,e,n){var s,o=0,r=t.length,a=i(t),l=[];if(a)for(;r>o;o++)s=e(t[o],o,n),null!=s&&l.push(s);else for(o in t)s=e(t[o],o,n),null!=s&&l.push(s);return Y.apply([],l)},guid:1,proxy:function(t,e){var i,n,s;return"string"==typeof e&&(i=t[e],e=t,t=i),K.isFunction(t)?(n=q.call(arguments,2),s=function(){return t.apply(e||this,n.concat(q.call(arguments)))},s.guid=t.guid=t.guid||K.guid++,s):void 0},now:Date.now,support:X}),K.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){V["[object "+e+"]"]=e.toLowerCase()});var st=function(t){function e(t,e,i,n){var s,o,r,a,l,d,c,f,p,g;if((e?e.ownerDocument||e:P)!==R&&M(e),e=e||R,i=i||[],a=e.nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return i;if(!n&&A){if(11!==a&&(s=yt.exec(t)))if(r=s[1]){if(9===a){if(o=e.getElementById(r),!o||!o.parentNode)return i;if(o.id===r)return i.push(o),i}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(r))&&N(e,o)&&o.id===r)return i.push(o),i}else{if(s[2])return J.apply(i,e.getElementsByTagName(t)),i;if((r=s[3])&&S.getElementsByClassName)return J.apply(i,e.getElementsByClassName(r)),i}if(S.qsa&&(!L||!L.test(t))){if(f=c=j,p=e,g=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(d=C(t),(c=e.getAttribute("id"))?f=c.replace(bt,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",l=d.length;l--;)d[l]=f+h(d[l]);p=wt.test(t)&&u(e.parentNode)||e,g=d.join(",")}if(g)try{return J.apply(i,p.querySelectorAll(g)),i}catch(m){}finally{c||e.removeAttribute("id")}}}return k(t.replace(lt,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>_.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[j]=!0,t}function s(t){var e=R.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=t.length;n--;)_.attrHandle[i[n]]=e}function r(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function d(t){return n(function(e){return e=+e,n(function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function c(){}function h(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n}function f(t,e,i){var n=e.dir,s=i&&"parentNode"===n,o=F++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,o)}:function(e,i,r){var a,l,d=[W,o];if(r){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,r))return!0}else for(;e=e[n];)if(1===e.nodeType||s){if(l=e[j]||(e[j]={}),(a=l[n])&&a[0]===W&&a[1]===o)return d[2]=a[2];if(l[n]=d,d[2]=t(e,i,r))return!0}}}function p(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function g(t,i,n){for(var s=0,o=i.length;o>s;s++)e(t,i[s],n);return n}function m(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,d=null!=e;l>a;a++)(o=t[a])&&(!i||i(o,n,s))&&(r.push(o),d&&e.push(a));return r}function v(t,e,i,s,o,r){return s&&!s[j]&&(s=v(s)),o&&!o[j]&&(o=v(o,r)),n(function(n,r,a,l){var d,u,c,h=[],f=[],p=r.length,v=n||g(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?v:m(v,h,t,a,l),w=i?o||(n?t:p||s)?[]:r:y;if(i&&i(y,w,a,l),s)for(d=m(w,f),s(d,[],a,l),u=d.length;u--;)(c=d[u])&&(w[f[u]]=!(y[f[u]]=c));if(n){if(o||t){if(o){for(d=[],u=w.length;u--;)(c=w[u])&&d.push(y[u]=c);o(null,w=[],d,l)}for(u=w.length;u--;)(c=w[u])&&(d=o?tt(n,c):h[u])>-1&&(n[d]=!(r[d]=c))}}else w=m(w===r?w.splice(p,w.length):w),o?o(null,r,w,l):J.apply(r,w)})}function y(t){for(var e,i,n,s=t.length,o=_.relative[t[0].type],r=o||_.relative[" "],a=o?1:0,l=f(function(t){return t===e},r,!0),d=f(function(t){return tt(e,t)>-1},r,!0),u=[function(t,i,n){var s=!o&&(n||i!==E)||((e=i).nodeType?l(t,i,n):d(t,i,n));return e=null,s}];s>a;a++)if(i=_.relative[t[a].type])u=[f(p(u),i)];else{if(i=_.filter[t[a].type].apply(null,t[a].matches),i[j]){for(n=++a;s>n&&!_.relative[t[n].type];n++);return v(a>1&&p(u),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),i,n>a&&y(t.slice(a,n)),s>n&&y(t=t.slice(n)),s>n&&h(t))}u.push(i)}return p(u)}function w(t,i){var s=i.length>0,o=t.length>0,r=function(n,r,a,l,d){var u,c,h,f=0,p="0",g=n&&[],v=[],y=E,w=n||o&&_.find.TAG("*",d),b=W+=null==y?1:Math.random()||.1,S=w.length;for(d&&(E=r!==R&&r);p!==S&&null!=(u=w[p]);p++){if(o&&u){for(c=0;h=t[c++];)if(h(u,r,a)){l.push(u);break}d&&(W=b)}s&&((u=!h&&u)&&f--,n&&g.push(u))}if(f+=p,s&&p!==f){for(c=0;h=i[c++];)h(g,v,r,a);if(n){if(f>0)for(;p--;)g[p]||v[p]||(v[p]=X.call(l));v=m(v)}J.apply(l,v),d&&!n&&v.length>0&&f+i.length>1&&e.uniqueSort(l)}return d&&(W=b,E=y),g};return s?n(r):r}var b,S,_,T,x,C,D,k,E,$,H,M,R,I,A,L,O,z,N,j="sizzle"+1*new Date,P=t.document,W=0,F=0,q=i(),Y=i(),B=i(),G=function(t,e){return t===e&&(H=!0),0},V=1<<31,U={}.hasOwnProperty,Z=[],X=Z.pop,Q=Z.push,J=Z.push,K=Z.slice,tt=function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st=nt.replace("w","w#"),ot="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+st+"))|)"+it+"*\\]",rt=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",at=new RegExp(it+"+","g"),lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),dt=new RegExp("^"+it+"*,"+it+"*"),ut=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ct=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ht=new RegExp(rt),ft=new RegExp("^"+st+"$"),pt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,wt=/[+~]/,bt=/'|\\/g,St=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),_t=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Tt=function(){M()};try{J.apply(Z=K.call(P.childNodes),P.childNodes),Z[P.childNodes.length].nodeType}catch(xt){J={apply:Z.length?function(t,e){Q.apply(t,K.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}S=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},M=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:P;return n!==R&&9===n.nodeType&&n.documentElement?(R=n,I=n.documentElement,i=n.defaultView,i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",Tt,!1):i.attachEvent&&i.attachEvent("onunload",Tt)),A=!x(n),S.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),S.getElementsByTagName=s(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),S.getElementsByClassName=vt.test(n.getElementsByClassName),S.getById=s(function(t){return I.appendChild(t).id=j,!n.getElementsByName||!n.getElementsByName(j).length}),S.getById?(_.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&A){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},_.filter.ID=function(t){var e=t.replace(St,_t);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(St,_t);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),_.find.TAG=S.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):S.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},_.find.CLASS=S.getElementsByClassName&&function(t,e){return A?e.getElementsByClassName(t):void 0},O=[],L=[],(S.qsa=vt.test(n.querySelectorAll))&&(s(function(t){I.appendChild(t).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+j+"-]").length||L.push("~="),t.querySelectorAll(":checked").length||L.push(":checked"),t.querySelectorAll("a#"+j+"+*").length||L.push(".#.+[+~]")}),s(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(S.matchesSelector=vt.test(z=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&s(function(t){S.disconnectedMatch=z.call(t,"div"),z.call(t,"[s!='']:x"),O.push("!=",rt)}),L=L.length&&new RegExp(L.join("|")),O=O.length&&new RegExp(O.join("|")),e=vt.test(I.compareDocumentPosition),N=e||vt.test(I.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=e?function(t,e){if(t===e)return H=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!S.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===P&&N(P,t)?-1:e===n||e.ownerDocument===P&&N(P,e)?1:$?tt($,t)-tt($,e):0:4&i?-1:1)}:function(t,e){if(t===e)return H=!0,0;var i,s=0,o=t.parentNode,a=e.parentNode,l=[t],d=[e];if(!o||!a)return t===n?-1:e===n?1:o?-1:a?1:$?tt($,t)-tt($,e):0;if(o===a)return r(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)d.unshift(i);for(;l[s]===d[s];)s++;return s?r(l[s],d[s]):l[s]===P?-1:d[s]===P?1:0},n):R},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==R&&M(t),i=i.replace(ct,"='$1']"),!(!S.matchesSelector||!A||O&&O.test(i)||L&&L.test(i)))try{var n=z.call(t,i);if(n||S.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(s){}return e(i,R,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==R&&M(t),N(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==R&&M(t);var i=_.attrHandle[e.toLowerCase()],n=i&&U.call(_.attrHandle,e.toLowerCase())?i(t,e,!A):void 0;return void 0!==n?n:S.attributes||!A?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(H=!S.detectDuplicates,$=!S.sortStable&&t.slice(0),t.sort(G),H){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return $=null,t},T=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=T(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=T(e);return i},_=e.selectors={cacheLength:50,createPseudo:n,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(St,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(St,_t),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=C(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(St,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var o=e.attr(s,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(at," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var d,u,c,h,f,p,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(m){if(o){for(;g;){for(c=e;c=c[g];)if(a?c.nodeName.toLowerCase()===v:1===c.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&y){for(u=m[j]||(m[j]={}),d=u[t]||[],f=d[0]===W&&d[1],h=d[0]===W&&d[2],c=f&&m.childNodes[f];c=++f&&c&&c[g]||(h=f=0)||p.pop();)if(1===c.nodeType&&++h&&c===e){u[t]=[W,f,h];break}}else if(y&&(d=(e[j]||(e[j]={}))[t])&&d[0]===W)h=d[1];else for(;(c=++f&&c&&c[g]||(h=f=0)||p.pop())&&((a?c.nodeName.toLowerCase()!==v:1!==c.nodeType)||!++h||(y&&((c[j]||(c[j]={}))[t]=[W,h]),
c!==e)););return h-=s,h===n||h%n===0&&h/n>=0}}},PSEUDO:function(t,i){var s,o=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[j]?o(i):o.length>1?(s=[t,t,"",i],_.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=o(t,i),r=s.length;r--;)n=tt(t,s[r]),t[n]=!(e[n]=s[r])}):function(t){return o(t,0,s)}):o}},pseudos:{not:n(function(t){var e=[],i=[],s=D(t.replace(lt,"$1"));return s[j]?n(function(t,e,i,n){for(var o,r=s(t,null,n,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,s(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(St,_t),function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:n(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(St,_t).toLowerCase(),function(e){var i;do if(i=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===I},focus:function(t){return t===R.activeElement&&(!R.hasFocus||R.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:d(function(){return[0]}),last:d(function(t,e){return[e-1]}),eq:d(function(t,e,i){return[0>i?i+e:i]}),even:d(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:d(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:d(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:d(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n);return t})}},_.pseudos.nth=_.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})_.pseudos[b]=l(b);return c.prototype=_.filters=_.pseudos,_.setFilters=new c,C=e.tokenize=function(t,i){var n,s,o,r,a,l,d,u=Y[t+" "];if(u)return i?0:u.slice(0);for(a=t,l=[],d=_.preFilter;a;){(!n||(s=dt.exec(a)))&&(s&&(a=a.slice(s[0].length)||a),l.push(o=[])),n=!1,(s=ut.exec(a))&&(n=s.shift(),o.push({value:n,type:s[0].replace(lt," ")}),a=a.slice(n.length));for(r in _.filter)!(s=pt[r].exec(a))||d[r]&&!(s=d[r](s))||(n=s.shift(),o.push({value:n,type:r,matches:s}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):Y(t,l).slice(0)},D=e.compile=function(t,e){var i,n=[],s=[],o=B[t+" "];if(!o){for(e||(e=C(t)),i=e.length;i--;)o=y(e[i]),o[j]?n.push(o):s.push(o);o=B(t,w(s,n)),o.selector=t}return o},k=e.select=function(t,e,i,n){var s,o,r,a,l,d="function"==typeof t&&t,c=!n&&C(t=d.selector||t);if(i=i||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(r=o[0]).type&&S.getById&&9===e.nodeType&&A&&_.relative[o[1].type]){if(e=(_.find.ID(r.matches[0].replace(St,_t),e)||[])[0],!e)return i;d&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=pt.needsContext.test(t)?0:o.length;s--&&(r=o[s],!_.relative[a=r.type]);)if((l=_.find[a])&&(n=l(r.matches[0].replace(St,_t),wt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(s,1),t=n.length&&h(o),!t)return J.apply(i,n),i;break}}return(d||D(t,c))(n,e,!A,i,wt.test(t)&&u(e.parentNode)||e),i},S.sortStable=j.split("").sort(G).join("")===j,S.detectDuplicates=!!H,M(),S.sortDetached=s(function(t){return 1&t.compareDocumentPosition(R.createElement("div"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),S.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);K.find=st,K.expr=st.selectors,K.expr[":"]=K.expr.pseudos,K.unique=st.uniqueSort,K.text=st.getText,K.isXMLDoc=st.isXML,K.contains=st.contains;var ot=K.expr.match.needsContext,rt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^.[^:#\[\.,]*$/;K.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?K.find.matchesSelector(n,t)?[n]:[]:K.find.matches(t,K.grep(e,function(t){return 1===t.nodeType}))},K.fn.extend({find:function(t){var e,i=this.length,n=[],s=this;if("string"!=typeof t)return this.pushStack(K(t).filter(function(){for(e=0;i>e;e++)if(K.contains(s[e],this))return!0}));for(e=0;i>e;e++)K.find(t,s[e],n);return n=this.pushStack(i>1?K.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&ot.test(t)?K(t):t||[],!1).length}});var lt,dt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ut=K.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:dt.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof K?e[0]:e,K.merge(this,K.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Q,!0)),rt.test(i[1])&&K.isPlainObject(e))for(i in e)K.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=Q.getElementById(i[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=Q,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):K.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(K):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),K.makeArray(t,this))};ut.prototype=K.fn,lt=K(Q);var ct=/^(?:parents|prev(?:Until|All))/,ht={children:!0,contents:!0,next:!0,prev:!0};K.extend({dir:function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&K(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),K.fn.extend({has:function(t){var e=K(t,this),i=e.length;return this.filter(function(){for(var t=0;i>t;t++)if(K.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,s=this.length,o=[],r=ot.test(t)||"string"!=typeof t?K(t,e||this.context):0;s>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&K.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?K.unique(o):o)},index:function(t){return t?"string"==typeof t?G.call(K(t),this[0]):G.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(K.unique(K.merge(this.get(),K(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),K.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return K.dir(t,"parentNode")},parentsUntil:function(t,e,i){return K.dir(t,"parentNode",i)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return K.dir(t,"nextSibling")},prevAll:function(t){return K.dir(t,"previousSibling")},nextUntil:function(t,e,i){return K.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return K.dir(t,"previousSibling",i)},siblings:function(t){return K.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return K.sibling(t.firstChild)},contents:function(t){return t.contentDocument||K.merge([],t.childNodes)}},function(t,e){K.fn[t]=function(i,n){var s=K.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=K.filter(n,s)),this.length>1&&(ht[t]||K.unique(s),ct.test(t)&&s.reverse()),this.pushStack(s)}});var ft=/\S+/g,pt={};K.Callbacks=function(t){t="string"==typeof t?pt[t]||o(t):K.extend({},t);var e,i,n,s,r,a,l=[],d=!t.once&&[],u=function(o){for(e=t.memory&&o,i=!0,a=s||0,s=0,r=l.length,n=!0;l&&r>a;a++)if(l[a].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}n=!1,l&&(d?d.length&&u(d.shift()):e?l=[]:c.disable())},c={add:function(){if(l){var i=l.length;!function o(e){K.each(e,function(e,i){var n=K.type(i);"function"===n?t.unique&&c.has(i)||l.push(i):i&&i.length&&"string"!==n&&o(i)})}(arguments),n?r=l.length:e&&(s=i,u(e))}return this},remove:function(){return l&&K.each(arguments,function(t,e){for(var i;(i=K.inArray(e,l,i))>-1;)l.splice(i,1),n&&(r>=i&&r--,a>=i&&a--)}),this},has:function(t){return t?K.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=d=e=void 0,this},disabled:function(){return!l},lock:function(){return d=void 0,e||c.disable(),this},locked:function(){return!d},fireWith:function(t,e){return!l||i&&!d||(e=e||[],e=[t,e.slice?e.slice():e],n?d.push(e):u(e)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},K.extend({Deferred:function(t){var e=[["resolve","done",K.Callbacks("once memory"),"resolved"],["reject","fail",K.Callbacks("once memory"),"rejected"],["notify","progress",K.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return K.Deferred(function(i){K.each(e,function(e,o){var r=K.isFunction(t[e])&&t[e];s[o[1]](function(){var t=r&&r.apply(this,arguments);t&&K.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===n?i.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?K.extend(t,n):n}},s={};return n.pipe=n.then,K.each(e,function(t,o){var r=o[2],a=o[3];n[o[1]]=r.add,a&&r.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),s[o[0]]=function(){return s[o[0]+"With"](this===s?n:this,arguments),this},s[o[0]+"With"]=r.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,o=q.call(arguments),r=o.length,a=1!==r||t&&K.isFunction(t.promise)?r:0,l=1===a?t:K.Deferred(),d=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?q.call(arguments):s,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(r>1)for(e=new Array(r),i=new Array(r),n=new Array(r);r>s;s++)o[s]&&K.isFunction(o[s].promise)?o[s].promise().done(d(s,n,o)).fail(l.reject).progress(d(s,i,e)):--a;return a||l.resolveWith(n,o),l.promise()}});var gt;K.fn.ready=function(t){return K.ready.promise().done(t),this},K.extend({isReady:!1,readyWait:1,holdReady:function(t){t?K.readyWait++:K.ready(!0)},ready:function(t){(t===!0?--K.readyWait:K.isReady)||(K.isReady=!0,t!==!0&&--K.readyWait>0||(gt.resolveWith(Q,[K]),K.fn.triggerHandler&&(K(Q).triggerHandler("ready"),K(Q).off("ready"))))}}),K.ready.promise=function(e){return gt||(gt=K.Deferred(),"complete"===Q.readyState?setTimeout(K.ready):(Q.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1))),gt.promise(e)},K.ready.promise();var mt=K.access=function(t,e,i,n,s,o,r){var a=0,l=t.length,d=null==i;if("object"===K.type(i)){s=!0;for(a in i)K.access(t,e,a,i[a],!0,o,r)}else if(void 0!==n&&(s=!0,K.isFunction(n)||(r=!0),d&&(r?(e.call(t,n),e=null):(d=e,e=function(t,e,i){return d.call(K(t),i)})),e))for(;l>a;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:d?e.call(t):l?e(t[0],i):o};K.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=K.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=a.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,K.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,s=this.key(t),o=this.cache[s];if("string"==typeof e)o[e]=i;else if(K.isEmptyObject(o))K.extend(this.cache[s],e);else for(n in e)o[n]=e[n];return o},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,K.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,s,o=this.key(t),r=this.cache[o];if(void 0===e)this.cache[o]={};else{K.isArray(e)?n=e.concat(e.map(K.camelCase)):(s=K.camelCase(e),e in r?n=[e,s]:(n=s,n=n in r?[n]:n.match(ft)||[])),i=n.length;for(;i--;)delete r[n[i]]}},hasData:function(t){return!K.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new a,yt=new a,wt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;K.extend({hasData:function(t){return yt.hasData(t)||vt.hasData(t)},data:function(t,e,i){return yt.access(t,e,i)},removeData:function(t,e){yt.remove(t,e)},_data:function(t,e,i){return vt.access(t,e,i)},_removeData:function(t,e){vt.remove(t,e)}}),K.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=yt.get(o),1===o.nodeType&&!vt.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=K.camelCase(n.slice(5)),l(o,n,s[n])));vt.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){yt.set(this,t)}):mt(this,function(e){var i,n=K.camelCase(t);if(o&&void 0===e){if(i=yt.get(o,t),void 0!==i)return i;if(i=yt.get(o,n),void 0!==i)return i;if(i=l(o,n,void 0),void 0!==i)return i}else this.each(function(){var i=yt.get(this,n);yt.set(this,n,e),-1!==t.indexOf("-")&&void 0!==i&&yt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),K.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=vt.get(t,e),i&&(!n||K.isArray(i)?n=vt.access(t,e,K.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=K.queue(t,e),n=i.length,s=i.shift(),o=K._queueHooks(t,e),r=function(){K.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,r,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return vt.get(t,i)||vt.access(t,i,{empty:K.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",i])})})}}),K.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?K.queue(this[0],t):void 0===e?this:this.each(function(){var i=K.queue(this,t,e);K._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&K.dequeue(this,t)})},dequeue:function(t){return this.each(function(){K.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=K.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)i=vt.get(o[r],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var St=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_t=["Top","Right","Bottom","Left"],Tt=function(t,e){return t=e||t,"none"===K.css(t,"display")||!K.contains(t.ownerDocument,t)},xt=/^(?:checkbox|radio)$/i;!function(){var t=Q.createDocumentFragment(),e=t.appendChild(Q.createElement("div")),i=Q.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),X.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",X.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";X.focusinBubbles="onfocusin"in t;var Dt=/^key/,kt=/^(?:mouse|pointer|contextmenu)|click/,Et=/^(?:focusinfocus|focusoutblur)$/,$t=/^([^.]*)(?:\.(.+)|)$/;K.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,d,u,c,h,f,p,g,m=vt.get(t);if(m)for(i.handler&&(o=i,i=o.handler,s=o.selector),i.guid||(i.guid=K.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(e){return typeof K!==Ct&&K.event.triggered!==e.type?K.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(ft)||[""],d=e.length;d--;)a=$t.exec(e[d])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f&&(c=K.event.special[f]||{},f=(s?c.delegateType:c.bindType)||f,c=K.event.special[f]||{},u=K.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&K.expr.match.needsContext.test(s),namespace:p.join(".")},o),(h=l[f])||(h=l[f]=[],h.delegateCount=0,c.setup&&c.setup.call(t,n,p,r)!==!1||t.addEventListener&&t.addEventListener(f,r,!1)),c.add&&(c.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),K.event.global[f]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,d,u,c,h,f,p,g,m=vt.hasData(t)&&vt.get(t);if(m&&(l=m.events)){for(e=(e||"").match(ft)||[""],d=e.length;d--;)if(a=$t.exec(e[d])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f){for(c=K.event.special[f]||{},f=(n?c.delegateType:c.bindType)||f,h=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=h.length;o--;)u=h[o],!s&&g!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,c.remove&&c.remove.call(t,u));r&&!h.length&&(c.teardown&&c.teardown.call(t,p,m.handle)!==!1||K.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)K.event.remove(t,f+e[d],i,n,!0);K.isEmptyObject(l)&&(delete m.handle,vt.remove(t,"events"))}},trigger:function(e,i,n,s){var o,r,a,l,d,u,c,h=[n||Q],f=Z.call(e,"type")?e.type:e,p=Z.call(e,"namespace")?e.namespace.split("."):[];if(r=a=n=n||Q,3!==n.nodeType&&8!==n.nodeType&&!Et.test(f+K.event.triggered)&&(f.indexOf(".")>=0&&(p=f.split("."),f=p.shift(),p.sort()),d=f.indexOf(":")<0&&"on"+f,e=e[K.expando]?e:new K.Event(f,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:K.makeArray(i,[e]),c=K.event.special[f]||{},s||!c.trigger||c.trigger.apply(n,i)!==!1)){if(!s&&!c.noBubble&&!K.isWindow(n)){for(l=c.delegateType||f,Et.test(l+f)||(r=r.parentNode);r;r=r.parentNode)h.push(r),a=r;a===(n.ownerDocument||Q)&&h.push(a.defaultView||a.parentWindow||t)}for(o=0;(r=h[o++])&&!e.isPropagationStopped();)e.type=o>1?l:c.bindType||f,u=(vt.get(r,"events")||{})[e.type]&&vt.get(r,"handle"),u&&u.apply(r,i),u=d&&r[d],u&&u.apply&&K.acceptData(r)&&(e.result=u.apply(r,i),e.result===!1&&e.preventDefault());return e.type=f,s||e.isDefaultPrevented()||c._default&&c._default.apply(h.pop(),i)!==!1||!K.acceptData(n)||d&&K.isFunction(n[f])&&!K.isWindow(n)&&(a=n[d],a&&(n[d]=null),K.event.triggered=f,n[f](),K.event.triggered=void 0,a&&(n[d]=a)),e.result}},dispatch:function(t){t=K.event.fix(t);var e,i,n,s,o,r=[],a=q.call(arguments),l=(vt.get(this,"events")||{})[t.type]||[],d=K.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!d.preDispatch||d.preDispatch.call(this,t)!==!1){for(r=K.event.handlers.call(this,t,l),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,n=((K.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(n=[],i=0;a>i;i++)o=e[i],s=o.selector+" ",void 0===n[s]&&(n[s]=o.needsContext?K(s,this).index(l)>=0:K.find(s,this,null,[l]).length),n[s]&&n.push(o);n.length&&r.push({elem:l,handlers:n})}return a<e.length&&r.push({elem:this,handlers:e.slice(a)}),r},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,s,o=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||Q,n=i.documentElement,s=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||s&&s.scrollLeft||0)-(n&&n.clientLeft||s&&s.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||s&&s.scrollTop||0)-(n&&n.clientTop||s&&s.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[K.expando])return t;var e,i,n,s=t.type,o=t,r=this.fixHooks[s];for(r||(this.fixHooks[s]=r=kt.test(s)?this.mouseHooks:Dt.test(s)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,t=new K.Event(o),e=n.length;e--;)i=n[e],t[i]=o[i];return t.target||(t.target=Q),3===t.target.nodeType&&(t.target=t.target.parentNode),r.filter?r.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==c()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===c()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&K.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return K.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var s=K.extend(new K.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?K.event.trigger(s,null,e):K.event.dispatch.call(e,s),s.isDefaultPrevented()&&i.preventDefault()}},K.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)},K.Event=function(t,e){return this instanceof K.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?d:u):this.type=t,e&&K.extend(this,e),this.timeStamp=t&&t.timeStamp||K.now(),void(this[K.expando]=!0)):new K.Event(t,e)},K.Event.prototype={isDefaultPrevented:u,isPropagationStopped:u,isImmediatePropagationStopped:u,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=d,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=d,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=d,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},K.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){K.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,s=t.relatedTarget,o=t.handleObj;return(!s||s!==n&&!K.contains(n,s))&&(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),X.focusinBubbles||K.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){K.event.simulate(e,t.target,K.event.fix(t),!0)};K.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=vt.access(n,e);s||n.addEventListener(t,i,!0),vt.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=vt.access(n,e)-1;s?vt.access(n,e,s):(n.removeEventListener(t,i,!0),vt.remove(n,e))}}}),K.fn.extend({on:function(t,e,i,n,s){var o,r;if("object"==typeof t){"string"!=typeof e&&(i=i||e,e=void 0);for(r in t)this.on(r,e,i,t[r],s);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=u;else if(!n)return this;return 1===s&&(o=n,n=function(t){return K().off(t),o.apply(this,arguments)},n.guid=o.guid||(o.guid=K.guid++)),this.each(function(){K.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,K(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return(e===!1||"function"==typeof e)&&(i=e,e=void 0),i===!1&&(i=u),this.each(function(){K.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){K.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?K.event.trigger(t,e,i,!0):void 0}});var Ht=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Mt=/<([\w:]+)/,Rt=/<|&#?\w+;/,It=/<(?:script|style|link)/i,At=/checked\s*(?:[^=]|=\s*.checked.)/i,Lt=/^$|\/(?:java|ecma)script/i,Ot=/^true\/(.*)/,zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,K.extend({clone:function(t,e,i){var n,s,o,r,a=t.cloneNode(!0),l=K.contains(t.ownerDocument,t);if(!(X.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||K.isXMLDoc(t)))for(r=v(a),o=v(t),n=0,s=o.length;s>n;n++)y(o[n],r[n]);if(e)if(i)for(o=o||v(t),r=r||v(a),n=0,s=o.length;s>n;n++)m(o[n],r[n]);else m(t,a);return r=v(a,"script"),r.length>0&&g(r,!l&&v(t,"script")),a},buildFragment:function(t,e,i,n){for(var s,o,r,a,l,d,u=e.createDocumentFragment(),c=[],h=0,f=t.length;f>h;h++)if(s=t[h],s||0===s)if("object"===K.type(s))K.merge(c,s.nodeType?[s]:s);else if(Rt.test(s)){for(o=o||u.appendChild(e.createElement("div")),r=(Mt.exec(s)||["",""])[1].toLowerCase(),a=Nt[r]||Nt._default,o.innerHTML=a[1]+s.replace(Ht,"<$1></$2>")+a[2],d=a[0];d--;)o=o.lastChild;K.merge(c,o.childNodes),o=u.firstChild,o.textContent=""}else c.push(e.createTextNode(s));for(u.textContent="",h=0;s=c[h++];)if((!n||-1===K.inArray(s,n))&&(l=K.contains(s.ownerDocument,s),o=v(u.appendChild(s),"script"),l&&g(o),i))for(d=0;s=o[d++];)Lt.test(s.type||"")&&i.push(s);return u},cleanData:function(t){for(var e,i,n,s,o=K.event.special,r=0;void 0!==(i=t[r]);r++){if(K.acceptData(i)&&(s=i[vt.expando],s&&(e=vt.cache[s]))){if(e.events)for(n in e.events)o[n]?K.event.remove(i,n):K.removeEvent(i,n,e.handle);vt.cache[s]&&delete vt.cache[s]}delete yt.cache[i[yt.expando]]}}}),K.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?K.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?K.filter(t,this):this,s=0;null!=(i=n[s]);s++)e||1!==i.nodeType||K.cleanData(v(i)),i.parentNode&&(e&&K.contains(i.ownerDocument,i)&&g(v(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(K.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return K.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!Nt[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ht,"<$1></$2>");try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(K.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,K.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=Y.apply([],t);var i,n,s,o,r,a,l=0,d=this.length,u=this,c=d-1,h=t[0],g=K.isFunction(h);if(g||d>1&&"string"==typeof h&&!X.checkClone&&At.test(h))return this.each(function(i){var n=u.eq(i);g&&(t[0]=h.call(this,i,n.html())),n.domManip(t,e)});if(d&&(i=K.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(s=K.map(v(i,"script"),f),o=s.length;d>l;l++)r=i,l!==c&&(r=K.clone(r,!0,!0),o&&K.merge(s,v(r,"script"))),e.call(this[l],r,l);if(o)for(a=s[s.length-1].ownerDocument,K.map(s,p),l=0;o>l;l++)r=s[l],Lt.test(r.type||"")&&!vt.access(r,"globalEval")&&K.contains(a,r)&&(r.src?K._evalUrl&&K._evalUrl(r.src):K.globalEval(r.textContent.replace(zt,"")))}return this}}),K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){K.fn[t]=function(t){for(var i,n=[],s=K(t),o=s.length-1,r=0;o>=r;r++)i=r===o?this:this.clone(!0),K(s[r])[e](i),B.apply(n,i.get());return this.pushStack(n)}});var jt,Pt={},Wt=/^margin/,Ft=new RegExp("^("+St+")(?!px)[a-z%]+$","i"),qt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r.innerHTML="",s.appendChild(o);var e=t.getComputedStyle(r,null);i="1%"!==e.top,n="4px"===e.width,s.removeChild(o)}var i,n,s=Q.documentElement,o=Q.createElement("div"),r=Q.createElement("div");r.style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",X.clearCloneStyle="content-box"===r.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(r),t.getComputedStyle&&K.extend(X,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,i=r.appendChild(Q.createElement("div"));return i.style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",r.style.width="1px",s.appendChild(o),e=!parseFloat(t.getComputedStyle(i,null).marginRight),s.removeChild(o),r.removeChild(i),e}}))}(),K.swap=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];s=i.apply(t,n||[]);for(o in e)t.style[o]=r[o];return s};var Yt=/^(none|table(?!-c[ea]).+)/,Bt=new RegExp("^("+St+")(.*)$","i"),Gt=new RegExp("^([+-])=("+St+")","i"),Vt={position:"absolute",visibility:"hidden",display:"block"},Ut={letterSpacing:"0",fontWeight:"400"},Zt=["Webkit","O","Moz","ms"];K.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=S(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=K.camelCase(e),l=t.style;return e=K.cssProps[a]||(K.cssProps[a]=T(l,a)),r=K.cssHooks[e]||K.cssHooks[a],
void 0===i?r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:l[e]:(o=typeof i,"string"===o&&(s=Gt.exec(i))&&(i=(s[1]+1)*s[2]+parseFloat(K.css(t,e)),o="number"),void(null!=i&&i===i&&("number"!==o||K.cssNumber[a]||(i+="px"),X.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l[e]=i))))}},css:function(t,e,i,n){var s,o,r,a=K.camelCase(e);return e=K.cssProps[a]||(K.cssProps[a]=T(t.style,a)),r=K.cssHooks[e]||K.cssHooks[a],r&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=S(t,e,n)),"normal"===s&&e in Ut&&(s=Ut[e]),""===i||i?(o=parseFloat(s),i===!0||K.isNumeric(o)?o||0:s):s}}),K.each(["height","width"],function(t,e){K.cssHooks[e]={get:function(t,i,n){return i?Yt.test(K.css(t,"display"))&&0===t.offsetWidth?K.swap(t,Vt,function(){return D(t,e,n)}):D(t,e,n):void 0},set:function(t,i,n){var s=n&&qt(t);return x(t,i,n?C(t,e,n,"border-box"===K.css(t,"boxSizing",!1,s),s):0)}}}),K.cssHooks.marginRight=_(X.reliableMarginRight,function(t,e){return e?K.swap(t,{display:"inline-block"},S,[t,"marginRight"]):void 0}),K.each({margin:"",padding:"",border:"Width"},function(t,e){K.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];4>n;n++)s[t+_t[n]+e]=o[n]||o[n-2]||o[0];return s}},Wt.test(t)||(K.cssHooks[t+e].set=x)}),K.fn.extend({css:function(t,e){return mt(this,function(t,e,i){var n,s,o={},r=0;if(K.isArray(e)){for(n=qt(t),s=e.length;s>r;r++)o[e[r]]=K.css(t,e[r],!1,n);return o}return void 0!==i?K.style(t,e,i):K.css(t,e)},t,e,arguments.length>1)},show:function(){return k(this,!0)},hide:function(){return k(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Tt(this)?K(this).show():K(this).hide()})}}),K.Tween=E,E.prototype={constructor:E,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(K.cssNumber[i]?"":"px")},cur:function(){var t=E.propHooks[this.prop];return t&&t.get?t.get(this):E.propHooks._default.get(this)},run:function(t){var e,i=E.propHooks[this.prop];return this.options.duration?this.pos=e=K.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):E.propHooks._default.set(this),this}},E.prototype.init.prototype=E.prototype,E.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=K.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){K.fx.step[t.prop]?K.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[K.cssProps[t.prop]]||K.cssHooks[t.prop])?K.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},E.propHooks.scrollTop=E.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},K.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},K.fx=E.prototype.init,K.fx.step={};var Xt,Qt,Jt=/^(?:toggle|show|hide)$/,Kt=new RegExp("^(?:([+-])=|)("+St+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[R],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),s=Kt.exec(e),o=s&&s[3]||(K.cssNumber[t]?"":"px"),r=(K.cssNumber[t]||"px"!==o&&+n)&&Kt.exec(K.css(i.elem,t)),a=1,l=20;if(r&&r[3]!==o){o=o||r[3],s=s||[],r=+n||1;do a=a||".5",r/=a,K.style(i.elem,t,r+o);while(a!==(a=i.cur()/n)&&1!==a&&--l)}return s&&(r=i.start=+r||+n||0,i.unit=o,i.end=s[1]?r+(s[1]+1)*s[2]:+s[2]),i}]};K.Animation=K.extend(A,{tweener:function(t,e){K.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,s=t.length;s>n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),K.speed=function(t,e,i){var n=t&&"object"==typeof t?K.extend({},t):{complete:i||!i&&e||K.isFunction(t)&&t,duration:t,easing:i&&e||e&&!K.isFunction(e)&&e};return n.duration=K.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in K.fx.speeds?K.fx.speeds[n.duration]:K.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){K.isFunction(n.old)&&n.old.call(this),n.queue&&K.dequeue(this,n.queue)},n},K.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Tt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=K.isEmptyObject(t),o=K.speed(e,i,n),r=function(){var e=A(this,K.extend({},t),o);(s||vt.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||o.queue===!1?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",o=K.timers,r=vt.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&te.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));(e||!i)&&K.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=vt.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=K.timers,r=n?n.length:0;for(i.finish=!0,K.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;r>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),K.each(["toggle","show","hide"],function(t,e){var i=K.fn[e];K.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(H(e,!0),t,n,s)}}),K.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){K.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),K.timers=[],K.fx.tick=function(){var t,e=0,i=K.timers;for(Xt=K.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||K.fx.stop(),Xt=void 0},K.fx.timer=function(t){K.timers.push(t),t()?K.fx.start():K.timers.pop()},K.fx.interval=13,K.fx.start=function(){Qt||(Qt=setInterval(K.fx.tick,K.fx.interval))},K.fx.stop=function(){clearInterval(Qt),Qt=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fn.delay=function(t,e){return t=K.fx?K.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=Q.createElement("input"),e=Q.createElement("select"),i=e.appendChild(Q.createElement("option"));t.type="checkbox",X.checkOn=""!==t.value,X.optSelected=i.selected,e.disabled=!0,X.optDisabled=!i.disabled,t=Q.createElement("input"),t.value="t",t.type="radio",X.radioValue="t"===t.value}();var ne,se,oe=K.expr.attrHandle;K.fn.extend({attr:function(t,e){return mt(this,K.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){K.removeAttr(this,t)})}}),K.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===Ct?K.prop(t,e,i):(1===o&&K.isXMLDoc(t)||(e=e.toLowerCase(),n=K.attrHooks[e]||(K.expr.match.bool.test(e)?se:ne)),void 0===i?n&&"get"in n&&null!==(s=n.get(t,e))?s:(s=K.find.attr(t,e),null==s?void 0:s):null!==i?n&&"set"in n&&void 0!==(s=n.set(t,i,e))?s:(t.setAttribute(e,i+""),i):void K.removeAttr(t,e))},removeAttr:function(t,e){var i,n,s=0,o=e&&e.match(ft);if(o&&1===t.nodeType)for(;i=o[s++];)n=K.propFix[i]||i,K.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!X.radioValue&&"radio"===e&&K.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),se={set:function(t,e,i){return e===!1?K.removeAttr(t,i):t.setAttribute(i,i),i}},K.each(K.expr.match.bool.source.match(/\w+/g),function(t,e){var i=oe[e]||K.find.attr;oe[e]=function(t,e,n){var s,o;return n||(o=oe[e],oe[e]=s,s=null!=i(t,e,n)?e.toLowerCase():null,oe[e]=o),s}});var re=/^(?:input|select|textarea|button)$/i;K.fn.extend({prop:function(t,e){return mt(this,K.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[K.propFix[t]||t]})}}),K.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,s,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return o=1!==r||!K.isXMLDoc(t),o&&(e=K.propFix[e]||e,s=K.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||re.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),X.optSelected||(K.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),K.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){K.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;K.fn.extend({addClass:function(t){var e,i,n,s,o,r,a="string"==typeof t&&t,l=0,d=this.length;if(K.isFunction(t))return this.each(function(e){K(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(ft)||[];d>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):" ")){for(o=0;s=e[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r=K.trim(n),i.className!==r&&(i.className=r)}return this},removeClass:function(t){var e,i,n,s,o,r,a=0===arguments.length||"string"==typeof t&&t,l=0,d=this.length;if(K.isFunction(t))return this.each(function(e){K(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(ft)||[];d>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):"")){for(o=0;s=e[o++];)for(;n.indexOf(" "+s+" ")>=0;)n=n.replace(" "+s+" "," ");r=t?K.trim(n):"",i.className!==r&&(i.className=r)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):this.each(K.isFunction(t)?function(i){K(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if("string"===i)for(var e,n=0,s=K(this),o=t.match(ft)||[];e=o[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else(i===Ct||"boolean"===i)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(ae," ").indexOf(e)>=0)return!0;return!1}});var le=/\r/g;K.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=K.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(s=n?t.call(this,i,K(this).val()):t,null==s?s="":"number"==typeof s?s+="":K.isArray(s)&&(s=K.map(s,function(t){return null==t?"":t+""})),e=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))})):s?(e=K.valHooks[s.type]||K.valHooks[s.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:(i=s.value,"string"==typeof i?i.replace(le,""):null==i?"":i)):void 0}}),K.extend({valHooks:{option:{get:function(t){var e=K.find.attr(t,"value");return null!=e?e:K.trim(K.text(t))}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,o="select-one"===t.type||0>s,r=o?null:[],a=o?s+1:n.length,l=0>s?a:o?s:0;a>l;l++)if(i=n[l],!(!i.selected&&l!==s||(X.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&K.nodeName(i.parentNode,"optgroup"))){if(e=K(i).val(),o)return e;r.push(e)}return r},set:function(t,e){for(var i,n,s=t.options,o=K.makeArray(e),r=s.length;r--;)n=s[r],(n.selected=K.inArray(n.value,o)>=0)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]={set:function(t,e){return K.isArray(e)?t.checked=K.inArray(K(t).val(),e)>=0:void 0}},X.checkOn||(K.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){K.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),K.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var de=K.now(),ue=/\?/;K.parseJSON=function(t){return JSON.parse(t+"")},K.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,"text/xml")}catch(n){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&K.error("Invalid XML: "+t),e};var ce=/#.*$/,he=/([?&])_=[^&]*/,fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,pe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,me=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},we={},be="*/".concat("*"),Se=t.location.href,_e=ve.exec(Se.toLowerCase())||[];K.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se,type:"GET",isLocal:pe.test(_e[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":K.parseJSON,"text xml":K.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?z(z(t,K.ajaxSettings),e):z(K.ajaxSettings,t)},ajaxPrefilter:L(ye),ajaxTransport:L(we),ajax:function(t,e){function i(t,e,i,r){var l,u,v,y,b,_=e;2!==w&&(w=2,a&&clearTimeout(a),n=void 0,o=r||"",S.readyState=t>0?4:0,l=t>=200&&300>t||304===t,i&&(y=N(c,S,i)),y=j(c,y,S,l),l?(c.ifModified&&(b=S.getResponseHeader("Last-Modified"),b&&(K.lastModified[s]=b),b=S.getResponseHeader("etag"),b&&(K.etag[s]=b)),204===t||"HEAD"===c.type?_="nocontent":304===t?_="notmodified":(_=y.state,u=y.data,v=y.error,l=!v)):(v=_,(t||!_)&&(_="error",0>t&&(t=0))),S.status=t,S.statusText=(e||_)+"",l?p.resolveWith(h,[u,_,S]):p.rejectWith(h,[S,_,v]),S.statusCode(m),m=void 0,d&&f.trigger(l?"ajaxSuccess":"ajaxError",[S,c,l?u:v]),g.fireWith(h,[S,_]),d&&(f.trigger("ajaxComplete",[S,c]),--K.active||K.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,s,o,r,a,l,d,u,c=K.ajaxSetup({},e),h=c.context||c,f=c.context&&(h.nodeType||h.jquery)?K(h):K.event,p=K.Deferred(),g=K.Callbacks("once memory"),m=c.statusCode||{},v={},y={},w=0,b="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!r)for(r={};e=fe.exec(o);)r[e[1].toLowerCase()]=e[2];e=r[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?o:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return w||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return w||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>w)for(e in t)m[e]=[m[e],t[e]];else S.always(t[S.status]);return this},abort:function(t){var e=t||b;return n&&n.abort(e),i(0,e),this}};if(p.promise(S).complete=g.add,S.success=S.done,S.error=S.fail,c.url=((t||c.url||Se)+"").replace(ce,"").replace(me,_e[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=K.trim(c.dataType||"*").toLowerCase().match(ft)||[""],null==c.crossDomain&&(l=ve.exec(c.url.toLowerCase()),c.crossDomain=!(!l||l[1]===_e[1]&&l[2]===_e[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(_e[3]||("http:"===_e[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=K.param(c.data,c.traditional)),O(ye,c,e,S),2===w)return S;d=K.event&&c.global,d&&0===K.active++&&K.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!ge.test(c.type),s=c.url,c.hasContent||(c.data&&(s=c.url+=(ue.test(s)?"&":"?")+c.data,delete c.data),c.cache===!1&&(c.url=he.test(s)?s.replace(he,"$1_="+de++):s+(ue.test(s)?"&":"?")+"_="+de++)),c.ifModified&&(K.lastModified[s]&&S.setRequestHeader("If-Modified-Since",K.lastModified[s]),K.etag[s]&&S.setRequestHeader("If-None-Match",K.etag[s])),(c.data&&c.hasContent&&c.contentType!==!1||e.contentType)&&S.setRequestHeader("Content-Type",c.contentType),S.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+be+"; q=0.01":""):c.accepts["*"]);for(u in c.headers)S.setRequestHeader(u,c.headers[u]);if(c.beforeSend&&(c.beforeSend.call(h,S,c)===!1||2===w))return S.abort();b="abort";for(u in{success:1,error:1,complete:1})S[u](c[u]);if(n=O(we,c,e,S)){S.readyState=1,d&&f.trigger("ajaxSend",[S,c]),c.async&&c.timeout>0&&(a=setTimeout(function(){S.abort("timeout")},c.timeout));try{w=1,n.send(v,i)}catch(_){if(!(2>w))throw _;i(-1,_)}}else i(-1,"No Transport");return S},getJSON:function(t,e,i){return K.get(t,e,i,"json")},getScript:function(t,e){return K.get(t,void 0,e,"script")}}),K.each(["get","post"],function(t,e){K[e]=function(t,i,n,s){return K.isFunction(i)&&(s=s||n,n=i,i=void 0),K.ajax({url:t,type:e,dataType:s,data:i,success:n})}}),K._evalUrl=function(t){return K.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},K.fn.extend({wrapAll:function(t){var e;return K.isFunction(t)?this.each(function(e){K(this).wrapAll(t.call(this,e))}):(this[0]&&(e=K(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return this.each(K.isFunction(t)?function(e){K(this).wrapInner(t.call(this,e))}:function(){var e=K(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=K.isFunction(t);return this.each(function(i){K(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){K.nodeName(this,"body")||K(this).replaceWith(this.childNodes)}).end()}}),K.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},K.expr.filters.visible=function(t){return!K.expr.filters.hidden(t)};var Te=/%20/g,xe=/\[\]$/,Ce=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;K.param=function(t,e){var i,n=[],s=function(t,e){e=K.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=K.ajaxSettings&&K.ajaxSettings.traditional),K.isArray(t)||t.jquery&&!K.isPlainObject(t))K.each(t,function(){s(this.name,this.value)});else for(i in t)P(i,t[i],e,s);return n.join("&").replace(Te,"+")},K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=K.prop(this,"elements");return t?K.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!K(this).is(":disabled")&&ke.test(this.nodeName)&&!De.test(t)&&(this.checked||!xt.test(t))}).map(function(t,e){var i=K(this).val();return null==i?null:K.isArray(i)?K.map(i,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:i.replace(Ce,"\r\n")}}).get()}}),K.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ee=0,$e={},He={0:200,1223:204},Me=K.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in $e)$e[t]()}),X.cors=!!Me&&"withCredentials"in Me,X.ajax=Me=!!Me,K.ajaxTransport(function(t){var e;return X.cors||Me&&!t.crossDomain?{send:function(i,n){var s,o=t.xhr(),r=++Ee;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)o[s]=t.xhrFields[s];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)o.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(delete $e[r],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?n(o.status,o.statusText):n(He[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=$e[r]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(a){if(e)throw a}},abort:function(){e&&e()}}:void 0}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return K.globalEval(t),t}}}),K.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),K.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,s){e=K("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),Q.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Re=[],Ie=/(=)\?(?=&|$)|\?\?/;K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||K.expando+"_"+de++;return this[t]=!0,t}}),K.ajaxPrefilter("json jsonp",function(e,i,n){var s,o,r,a=e.jsonp!==!1&&(Ie.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ie.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(s=e.jsonpCallback=K.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ie,"$1"+s):e.jsonp!==!1&&(e.url+=(ue.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||K.error(s+" was not called"),r[0]},e.dataTypes[0]="json",o=t[s],t[s]=function(){r=arguments},n.always(function(){t[s]=o,e[s]&&(e.jsonpCallback=i.jsonpCallback,Re.push(s)),r&&K.isFunction(o)&&o(r[0]),r=o=void 0}),"script"):void 0}),K.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||Q;var n=rt.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=K.buildFragment([t],e,s),s&&s.length&&K(s).remove(),K.merge([],n.childNodes))};var Ae=K.fn.load;K.fn.load=function(t,e,i){if("string"!=typeof t&&Ae)return Ae.apply(this,arguments);var n,s,o,r=this,a=t.indexOf(" ");return a>=0&&(n=K.trim(t.slice(a)),t=t.slice(0,a)),K.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&K.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?K("<div>").append(K.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){r.each(i,o||[t.responseText,e,t])}),this},K.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){K.fn[e]=function(t){return this.on(e,t)}}),K.expr.filters.animated=function(t){return K.grep(K.timers,function(e){return t===e.elem}).length};var Le=t.document.documentElement;K.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,d,u=K.css(t,"position"),c=K(t),h={};"static"===u&&(t.style.position="relative"),a=c.offset(),o=K.css(t,"top"),l=K.css(t,"left"),d=("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1,d?(n=c.position(),r=n.top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),K.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(h.top=e.top-a.top+r),null!=e.left&&(h.left=e.left-a.left+s),"using"in e?e.using.call(t,h):c.css(h)}},K.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){K.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;return o?(e=o.documentElement,K.contains(e,n)?(typeof n.getBoundingClientRect!==Ct&&(s=n.getBoundingClientRect()),i=W(o),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s):void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===K.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),K.nodeName(t[0],"html")||(n=t.offset()),n.top+=K.css(t[0],"borderTopWidth",!0),n.left+=K.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-K.css(i,"marginTop",!0),left:e.left-n.left-K.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Le;t&&!K.nodeName(t,"html")&&"static"===K.css(t,"position");)t=t.offsetParent;return t||Le})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n="pageYOffset"===i;K.fn[e]=function(s){return mt(this,function(e,s,o){var r=W(e);return void 0===o?r?r[i]:e[s]:void(r?r.scrollTo(n?t.pageXOffset:o,n?o:t.pageYOffset):e[s]=o)},e,s,arguments.length,null)}}),K.each(["top","left"],function(t,e){K.cssHooks[e]=_(X.pixelPosition,function(t,i){return i?(i=S(t,e),Ft.test(i)?K(t).position()[e]+"px":i):void 0})}),K.each({Height:"height",Width:"width"},function(t,e){K.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){K.fn[n]=function(n,s){var o=arguments.length&&(i||"boolean"!=typeof n),r=i||(n===!0||s===!0?"margin":"border");return mt(this,function(e,i,n){var s;return K.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===n?K.css(e,i,r):K.style(e,i,n,r)},e,o?n:void 0,o,null)}})}),K.fn.size=function(){return this.length},K.fn.andSelf=K.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return K});var Oe=t.jQuery,ze=t.$;return K.noConflict=function(e){return t.$===K&&(t.$=ze),e&&t.jQuery===K&&(t.jQuery=Oe),K},typeof e===Ct&&(t.jQuery=t.$=K),K}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return wn.apply(null,arguments)}function e(t){wn=t}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){var e;for(e in t)return!1;return!0}function o(t){return void 0===t}function r(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var i in e)d(e,i)&&(t[i]=e[i]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return ye(t,e,i,n,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return null==t._pf&&(t._pf=h()),t._pf}function p(t){if(null==t._isValid){var e=f(t),i=Sn.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function g(t){var e=c(NaN);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}function m(t,e){var i,n,s;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=f(e)),o(e._locale)||(t._locale=e._locale),_n.length>0)for(i=0;i<_n.length;i++)n=_n[i],s=e[n],o(s)||(t[n]=s);return t}function v(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Tn===!1&&(Tn=!0,t.updateOffset(this),Tn=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=w(e)),i}function S(t,e,i){var n,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;n<s;n++)(i&&t[n]!==e[n]||!i&&b(t[n])!==b(e[n]))&&r++;return r+o}function _(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,i){var n=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){for(var s,o=[],r=0;r<arguments.length;r++){if(s="","object"==typeof arguments[r]){s+="\n["+r+"] ";for(var a in arguments[0])s+=a+": "+arguments[0][a]+", ";s=s.slice(0,-2)}else s=arguments[r];o.push(s)}_(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)},i)}function x(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i),xn[e]||(_(i),xn[e]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function D(t){var e,i;for(i in t)e=t[i],C(e)?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function k(t,e){var i,s=u({},t);for(i in e)d(e,i)&&(n(t[i])&&n(e[i])?(s[i]={},u(s[i],t[i]),u(s[i],e[i])):null!=e[i]?s[i]=e[i]:delete s[i]);for(i in t)d(t,i)&&!d(e,i)&&n(t[i])&&(s[i]=u({},s[i]));return s}function E(t){null!=t&&this.set(t)}function $(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return C(n)?n.call(e,i):n}function H(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function M(){return this._invalidDate}function R(t){return this._ordinal.replace("%d",t)}function I(t,e,i,n){var s=this._relativeTime[i];return C(s)?s(t,e,i,n):s.replace(/%d/i,t)}function A(t,e){var i=this._relativeTime[t>0?"future":"past"];return C(i)?i(e):i.replace(/%s/i,e)}function L(t,e){var i=t.toLowerCase();An[i]=An[i+"s"]=An[e]=t}function O(t){return"string"==typeof t?An[t]||An[t.toLowerCase()]:void 0}function z(t){var e,i,n={};for(i in t)d(t,i)&&(e=O(i),e&&(n[e]=t[i]));return n}function N(t,e){Ln[t]=e}function j(t){var e=[];for(var i in t)e.push({unit:i,priority:Ln[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}function P(e,i){return function(n){return null!=n?(F(this,e,n),t.updateOffset(this,i),this):W(this,e)}}function W(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function F(t,e,i){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](i)}function q(t){return t=O(t),C(this[t])?this[t]():this}function Y(t,e){if("object"==typeof t){t=z(t);for(var i=j(t),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit])}else if(t=O(t),C(this[t]))return this[t](e);return this}function B(t,e,i){var n=""+Math.abs(t),s=e-n.length,o=t>=0;return(o?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function G(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(jn[t]=s),e&&(jn[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(jn[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function V(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,i,n=t.match(On);for(e=0,i=n.length;e<i;e++)jn[n[e]]?n[e]=jn[n[e]]:n[e]=V(n[e]);return function(e){var s,o="";for(s=0;s<i;s++)o+=C(n[s])?n[s].call(e,t):n[s];return o}}function Z(t,e){return t.isValid()?(e=X(e,t.localeData()),Nn[e]=Nn[e]||U(e),Nn[e](t)):t.localeData().invalidDate()}function X(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(zn.lastIndex=0;n>=0&&zn.test(t);)t=t.replace(zn,i),zn.lastIndex=0,n-=1;return t}function Q(t,e,i){ns[t]=C(e)?e:function(t,n){return t&&i?i:e}}function J(t,e){return d(ns,t)?ns[t](e._strict,e._locale):new RegExp(K(t))}function K(t){return tt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s}))}function tt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");
}function et(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),r(e)&&(n=function(t,i){i[e]=b(t)}),i=0;i<t.length;i++)ss[t[i]]=n}function it(t,e){et(t,function(t,i,n,s){n._w=n._w||{},e(t,n._w,n,s)})}function nt(t,e,i){null!=e&&d(ss,t)&&ss[t](e,i._a,i,t)}function st(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function ot(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||gs).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone}function rt(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[gs.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function at(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?(s=ps.call(this._shortMonthsParse,r),s!==-1?s:null):(s=ps.call(this._longMonthsParse,r),s!==-1?s:null):"MMM"===e?(s=ps.call(this._shortMonthsParse,r),s!==-1?s:(s=ps.call(this._longMonthsParse,r),s!==-1?s:null)):(s=ps.call(this._longMonthsParse,r),s!==-1?s:(s=ps.call(this._shortMonthsParse,r),s!==-1?s:null))}function lt(t,e,i){var n,s,o;if(this._monthsParseExact)return at.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}}function dt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=b(e);else if(e=t.localeData().monthsParse(e),!r(e))return t;return i=Math.min(t.date(),st(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function ut(e){return null!=e?(dt(this,e),t.updateOffset(this,!0),this):W(this,"Month")}function ct(){return st(this.year(),this.month())}function ht(t){return this._monthsParseExact?(d(this,"_monthsRegex")||pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=ys),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(t){return this._monthsParseExact?(d(this,"_monthsRegex")||pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=ws),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function pt(){function t(t,e){return e.length-t.length}var e,i,n=[],s=[],o=[];for(e=0;e<12;e++)i=c([2e3,e]),n.push(this.monthsShort(i,"")),s.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),s.sort(t),o.sort(t),e=0;e<12;e++)n[e]=tt(n[e]),s[e]=tt(s[e]);for(e=0;e<24;e++)o[e]=tt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function gt(t){return mt(t)?366:365}function mt(t){return t%4===0&&t%100!==0||t%400===0}function vt(){return mt(this.year())}function yt(t,e,i,n,s,o,r){var a=new Date(t,e,i,n,s,o,r);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function wt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function bt(t,e,i){var n=7+e-i,s=(7+wt(t,0,n).getUTCDay()-e)%7;return-s+n-1}function St(t,e,i,n,s){var o,r,a=(7+i-n)%7,l=bt(t,n,s),d=1+7*(e-1)+a+l;return d<=0?(o=t-1,r=gt(o)+d):d>gt(t)?(o=t+1,r=d-gt(t)):(o=t,r=d),{year:o,dayOfYear:r}}function _t(t,e,i){var n,s,o=bt(t.year(),e,i),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?(s=t.year()-1,n=r+Tt(s,e,i)):r>Tt(t.year(),e,i)?(n=r-Tt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=r),{week:n,year:s}}function Tt(t,e,i){var n=bt(t,e,i),s=bt(t+1,e,i);return(gt(t)-n+s)/7}function xt(t){return _t(t,this._week.dow,this._week.doy).week}function Ct(){return this._week.dow}function Dt(){return this._week.doy}function kt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Et(t){var e=_t(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function $t(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ht(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Mt(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone}function Rt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function It(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function At(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?(s=ps.call(this._weekdaysParse,r),s!==-1?s:null):"ddd"===e?(s=ps.call(this._shortWeekdaysParse,r),s!==-1?s:null):(s=ps.call(this._minWeekdaysParse,r),s!==-1?s:null):"dddd"===e?(s=ps.call(this._weekdaysParse,r),s!==-1?s:(s=ps.call(this._shortWeekdaysParse,r),s!==-1?s:(s=ps.call(this._minWeekdaysParse,r),s!==-1?s:null))):"ddd"===e?(s=ps.call(this._shortWeekdaysParse,r),s!==-1?s:(s=ps.call(this._weekdaysParse,r),s!==-1?s:(s=ps.call(this._minWeekdaysParse,r),s!==-1?s:null))):(s=ps.call(this._minWeekdaysParse,r),s!==-1?s:(s=ps.call(this._weekdaysParse,r),s!==-1?s:(s=ps.call(this._shortWeekdaysParse,r),s!==-1?s:null)))}function Lt(t,e,i){var n,s,o;if(this._weekdaysParseExact)return At.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}}function Ot(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=$t(t,this.localeData()),this.add(t-e,"d")):e}function zt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Nt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ht(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function jt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ft.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Cs),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Pt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ft.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ds),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ft.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ks),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ft(){function t(t,e){return e.length-t.length}var e,i,n,s,o,r=[],a=[],l=[],d=[];for(e=0;e<7;e++)i=c([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),o=this.weekdays(i,""),r.push(n),a.push(s),l.push(o),d.push(n),d.push(s),d.push(o);for(r.sort(t),a.sort(t),l.sort(t),d.sort(t),e=0;e<7;e++)a[e]=tt(a[e]),l[e]=tt(l[e]),d[e]=tt(d[e]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function qt(){return this.hours()%12||12}function Yt(){return this.hours()||24}function Bt(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Gt(t,e){return e._meridiemParse}function Vt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Ut(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,i,n,s,o=0;o<t.length;){for(s=Zt(t[o]).split("-"),e=s.length,i=Zt(t[o+1]),i=i?i.split("-"):null;e>0;){if(n=Qt(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&S(s,i,!0)>=e-1)break;e--}o++}return null}function Qt(t){var e=null;if(!Rs[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Es._abbr,require("./locale/"+t),Jt(e)}catch(t){}return Rs[t]}function Jt(t,e){var i;return t&&(i=o(e)?ee(t):Kt(t,e),i&&(Es=i)),Es._abbr}function Kt(t,e){if(null!==e){var i=Ms;if(e.abbr=t,null!=Rs[t])x("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=Rs[t]._config;else if(null!=e.parentLocale){if(null==Rs[e.parentLocale])return Is[e.parentLocale]||(Is[e.parentLocale]=[]),Is[e.parentLocale].push({name:t,config:e}),null;i=Rs[e.parentLocale]._config}return Rs[t]=new E(k(i,e)),Is[t]&&Is[t].forEach(function(t){Kt(t.name,t.config)}),Jt(t),Rs[t]}return delete Rs[t],null}function te(t,e){if(null!=e){var i,n=Ms;null!=Rs[t]&&(n=Rs[t]._config),e=k(n,e),i=new E(e),i.parentLocale=Rs[t],Rs[t]=i,Jt(t)}else null!=Rs[t]&&(null!=Rs[t].parentLocale?Rs[t]=Rs[t].parentLocale:null!=Rs[t]&&delete Rs[t]);return Rs[t]}function ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Es;if(!i(t)){if(e=Qt(t))return e;t=[t]}return Xt(t)}function ie(){return kn(Rs)}function ne(t){var e,i=t._a;return i&&f(t).overflow===-2&&(e=i[rs]<0||i[rs]>11?rs:i[as]<1||i[as]>st(i[os],i[rs])?as:i[ls]<0||i[ls]>24||24===i[ls]&&(0!==i[ds]||0!==i[us]||0!==i[cs])?ls:i[ds]<0||i[ds]>59?ds:i[us]<0||i[us]>59?us:i[cs]<0||i[cs]>999?cs:-1,f(t)._overflowDayOfYear&&(e<os||e>as)&&(e=as),f(t)._overflowWeeks&&e===-1&&(e=hs),f(t)._overflowWeekday&&e===-1&&(e=fs),f(t).overflow=e),t}function se(t){var e,i,n,s,o,r,a=t._i,l=As.exec(a)||Ls.exec(a);if(l){for(f(t).iso=!0,e=0,i=zs.length;e<i;e++)if(zs[e][1].exec(l[1])){s=zs[e][0],n=zs[e][2]!==!1;break}if(null==s)return void(t._isValid=!1);if(l[3]){for(e=0,i=Ns.length;e<i;e++)if(Ns[e][1].exec(l[3])){o=(l[2]||" ")+Ns[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!Os.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=s+(o||"")+(r||""),ce(t)}else t._isValid=!1}function oe(t){var e,i,n,s,o,r,a,l,d={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},u="YXWVUTSRQPONZABCDEFGHIKLM";if(e=t._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),i=Ps.exec(e)){if(n=i[1]?"ddd"+(5===i[1].length?", ":" "):"",s="D MMM "+(i[2].length>10?"YYYY ":"YY "),o="HH:mm"+(i[4]?":ss":""),i[1]){var c=new Date(i[2]),h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][c.getDay()];if(i[1].substr(0,3)!==h)return f(t).weekdayMismatch=!0,void(t._isValid=!1)}switch(i[5].length){case 2:0===l?a=" +0000":(l=u.indexOf(i[5][1].toUpperCase())-12,a=(l<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:a=d[i[5]];break;default:a=d[" GMT"]}i[5]=a,t._i=i.splice(1).join(""),r=" ZZ",t._f=n+s+o+r,ce(t),f(t).rfc2822=!0}else t._isValid=!1}function re(e){var i=js.exec(e._i);return null!==i?void(e._d=new Date((+i[1]))):(se(e),void(e._isValid===!1&&(delete e._isValid,oe(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function ae(t,e,i){return null!=t?t:null!=e?e:i}function le(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function de(t){var e,i,n,s,o=[];if(!t._d){for(n=le(t),t._w&&null==t._a[as]&&null==t._a[rs]&&ue(t),null!=t._dayOfYear&&(s=ae(t._a[os],n[os]),(t._dayOfYear>gt(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=wt(s,0,t._dayOfYear),t._a[rs]=i.getUTCMonth(),t._a[as]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=n[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ls]&&0===t._a[ds]&&0===t._a[us]&&0===t._a[cs]&&(t._nextDay=!0,t._a[ls]=0),t._d=(t._useUTC?wt:yt).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ls]=24)}}function ue(t){var e,i,n,s,o,r,a,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)o=1,r=4,i=ae(e.GG,t._a[os],_t(we(),1,4).year),n=ae(e.W,1),s=ae(e.E,1),(s<1||s>7)&&(l=!0);else{o=t._locale._week.dow,r=t._locale._week.doy;var d=_t(we(),o,r);i=ae(e.gg,t._a[os],d.year),n=ae(e.w,d.week),null!=e.d?(s=e.d,(s<0||s>6)&&(l=!0)):null!=e.e?(s=e.e+o,(e.e<0||e.e>6)&&(l=!0)):s=o}n<1||n>Tt(i,o,r)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=St(i,n,s,o,r),t._a[os]=a.year,t._dayOfYear=a.dayOfYear)}function ce(e){if(e._f===t.ISO_8601)return void se(e);if(e._f===t.RFC_2822)return void oe(e);e._a=[],f(e).empty=!0;var i,n,s,o,r,a=""+e._i,l=a.length,d=0;for(s=X(e._f,e._locale).match(On)||[],i=0;i<s.length;i++)o=s[i],n=(a.match(J(o,e))||[])[0],n&&(r=a.substr(0,a.indexOf(n)),r.length>0&&f(e).unusedInput.push(r),a=a.slice(a.indexOf(n)+n.length),d+=n.length),jn[o]?(n?f(e).empty=!1:f(e).unusedTokens.push(o),nt(o,n,e)):e._strict&&!n&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-d,a.length>0&&f(e).unusedInput.push(a),e._a[ls]<=12&&f(e).bigHour===!0&&e._a[ls]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ls]=he(e._locale,e._a[ls],e._meridiem),de(e),ne(e)}function he(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?(n=t.isPM(i),n&&e<12&&(e+=12),n||12!==e||(e=0),e):e}function fe(t){var e,i,n,s,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;s<t._f.length;s++)o=0,e=m({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],ce(e),p(e)&&(o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,(null==n||o<n)&&(n=o,i=e));u(t,i||e)}function pe(t){if(!t._d){var e=z(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),de(t)}}function ge(t){var e=new v(ne(me(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function me(t){var e=t._i,n=t._f;return t._locale=t._locale||ee(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(ne(e)):(a(e)?t._d=e:i(n)?fe(t):n?ce(t):ve(t),p(t)||(t._d=null),t))}function ve(e){var s=e._i;o(s)?e._d=new Date(t.now()):a(s)?e._d=new Date(s.valueOf()):"string"==typeof s?re(e):i(s)?(e._a=l(s.slice(0),function(t){return parseInt(t,10)}),de(e)):n(s)?pe(e):r(s)?e._d=new Date(s):t.createFromInputFallback(e)}function ye(t,e,o,r,a){var l={};return o!==!0&&o!==!1||(r=o,o=void 0),(n(t)&&s(t)||i(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=o,l._i=t,l._f=e,l._strict=r,ge(l)}function we(t,e,i,n){return ye(t,e,i,n,!1)}function be(t,e){var n,s;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return we();for(n=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](n)||(n=e[s]);return n}function Se(){var t=[].slice.call(arguments,0);return be("isBefore",t)}function _e(){var t=[].slice.call(arguments,0);return be("isAfter",t)}function Te(t){for(var e in t)if(Ys.indexOf(e)===-1||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Ys.length;++n)if(t[Ys[n]]){if(i)return!1;parseFloat(t[Ys[n]])!==b(t[Ys[n]])&&(i=!0)}return!0}function xe(){return this._isValid}function Ce(){return Ye(NaN)}function De(t){var e=z(t),i=e.year||0,n=e.quarter||0,s=e.month||0,o=e.week||0,r=e.day||0,a=e.hour||0,l=e.minute||0,d=e.second||0,u=e.millisecond||0;this._isValid=Te(e),this._milliseconds=+u+1e3*d+6e4*l+1e3*a*60*60,this._days=+r+7*o,this._months=+s+3*n+12*i,this._data={},this._locale=ee(),this._bubble()}function ke(t){return t instanceof De}function Ee(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function $e(t,e){G(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+B(~~(t/60),2)+e+B(~~t%60,2)})}function He(t,e){var i=(e||"").match(t);if(null===i)return null;var n=i[i.length-1]||[],s=(n+"").match(Bs)||["-",0,0],o=+(60*s[1])+b(s[2]);return 0===o?0:"+"===s[0]?o:-o}function Me(e,i){var n,s;return i._isUTC?(n=i.clone(),s=(y(e)||a(e)?e.valueOf():we(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),t.updateOffset(n,!1),n):we(e).local()}function Re(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ie(e,i,n){var s,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=He(ts,e),null===e)return this}else Math.abs(e)<16&&!n&&(e=60*e);return!this._isUTC&&i&&(s=Re(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),o!==e&&(!i||this._changeInProgress?Ze(this,Ye(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Re(this)}function Ae(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Le(t){return this.utcOffset(0,t)}function Oe(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this}function ze(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(Kn,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ne(t){return!!this.isValid()&&(t=t?we(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function je(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pe(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(m(t,this),t=me(t),t._a){var e=t._isUTC?c(t._a):we(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function We(){return!!this.isValid()&&!this._isUTC}function Fe(){return!!this.isValid()&&this._isUTC}function qe(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Ye(t,e){var i,n,s,o=t,a=null;return ke(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:r(t)?(o={},e?o[e]=t:o.milliseconds=t):(a=Gs.exec(t))?(i="-"===a[1]?-1:1,o={y:0,d:b(a[as])*i,h:b(a[ls])*i,m:b(a[ds])*i,s:b(a[us])*i,ms:b(Ee(1e3*a[cs]))*i}):(a=Vs.exec(t))?(i="-"===a[1]?-1:1,o={y:Be(a[2],i),M:Be(a[3],i),w:Be(a[4],i),d:Be(a[5],i),h:Be(a[6],i),m:Be(a[7],i),s:Be(a[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(s=Ve(we(o.from),we(o.to)),o={},o.ms=s.milliseconds,o.M=s.months),n=new De(o),ke(t)&&d(t,"_locale")&&(n._locale=t._locale),n}function Be(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Ge(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Ve(t,e){var i;return t.isValid()&&e.isValid()?(e=Me(e,t),t.isBefore(e)?i=Ge(t,e):(i=Ge(e,t),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Ue(t,e){return function(i,n){var s,o;return null===n||isNaN(+n)||(x(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=i,i=n,n=o),i="string"==typeof i?+i:i,s=Ye(i,n),Ze(this,s,t),this}}function Ze(e,i,n,s){var o=i._milliseconds,r=Ee(i._days),a=Ee(i._months);e.isValid()&&(s=null==s||s,o&&e._d.setTime(e._d.valueOf()+o*n),r&&F(e,"Date",W(e,"Date")+r*n),a&&dt(e,W(e,"Month")+a*n),s&&t.updateOffset(e,r||a))}function Xe(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function Qe(e,i){var n=e||we(),s=Me(n,this).startOf("day"),o=t.calendarFormat(this,s)||"sameElse",r=i&&(C(i[o])?i[o].call(this,n):i[o]);return this.format(r||this.localeData().calendar(o,this,we(n)))}function Je(){return new v(this)}function Ke(t,e){var i=y(t)?t:we(t);return!(!this.isValid()||!i.isValid())&&(e=O(o(e)?"millisecond":e),"millisecond"===e?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function ti(t,e){var i=y(t)?t:we(t);return!(!this.isValid()||!i.isValid())&&(e=O(o(e)?"millisecond":e),"millisecond"===e?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function ei(t,e,i,n){return n=n||"()",("("===n[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))}function ii(t,e){var i,n=y(t)?t:we(t);return!(!this.isValid()||!n.isValid())&&(e=O(e||"millisecond"),"millisecond"===e?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function ni(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function si(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function oi(t,e,i){var n,s,o,r;return this.isValid()?(n=Me(t,this),n.isValid()?(s=6e4*(n.utcOffset()-this.utcOffset()),e=O(e),"year"===e||"month"===e||"quarter"===e?(r=ri(this,n),"quarter"===e?r/=3:"year"===e&&(r/=12)):(o=this-n,r="second"===e?o/1e3:"minute"===e?o/6e4:"hour"===e?o/36e5:"day"===e?(o-s)/864e5:"week"===e?(o-s)/6048e5:o),i?r:w(r)):NaN):NaN}function ri(t,e){var i,n,s=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(s,"months");return e-o<0?(i=t.clone().add(s-1,"months"),n=(e-o)/(o-i)):(i=t.clone().add(s+1,"months"),n=(e-o)/(i-o)),-(s+n)||0}function ai(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function li(){if(!this.isValid())return null;var t=this.clone().utc();return t.year()<0||t.year()>9999?Z(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):C(Date.prototype.toISOString)?this.toDate().toISOString():Z(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function di(){if(!this.isValid())return"moment.invalid()";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]';return this.format(i+n+s+o)}function ui(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=Z(this,e);return this.localeData().postformat(i)}function ci(t,e){return this.isValid()&&(y(t)&&t.isValid()||we(t).isValid())?Ye({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hi(t){return this.from(we(),t)}function fi(t,e){return this.isValid()&&(y(t)&&t.isValid()||we(t).isValid())?Ye({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function pi(t){return this.to(we(),t)}function gi(t){var e;return void 0===t?this._locale._abbr:(e=ee(t),null!=e&&(this._locale=e),this)}function mi(){return this._locale}function vi(t){switch(t=O(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function yi(t){return t=O(t),void 0===t||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function wi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function Si(){return new Date(this.valueOf())}function _i(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ti(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ci(){return p(this)}function Di(){return u({},f(this))}function ki(){return f(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function $i(t,e){G(0,[t,t.length],0,e)}function Hi(t){return Ai.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Mi(t){return Ai.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ri(){return Tt(this.year(),1,4)}function Ii(){var t=this.localeData()._week;return Tt(this.year(),t.dow,t.doy)}function Ai(t,e,i,n,s){var o;return null==t?_t(this,n,s).year:(o=Tt(t,n,s),e>o&&(e=o),Li.call(this,t,e,i,n,s))}function Li(t,e,i,n,s){var o=St(t,e,i,n,s),r=wt(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Oi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function zi(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Ni(t,e){e[cs]=b(1e3*("0."+t))}function ji(){return this._isUTC?"UTC":""}function Pi(){return this._isUTC?"Coordinated Universal Time":""}function Wi(t){return we(1e3*t)}function Fi(){return we.apply(null,arguments).parseZone()}function qi(t){return t}function Yi(t,e,i,n){var s=ee(),o=c().set(n,e);return s[i](o,t)}function Bi(t,e,i){if(r(t)&&(e=t,t=void 0),t=t||"",null!=e)return Yi(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Yi(t,n,i,"month");return s}function Gi(t,e,i,n){"boolean"==typeof t?(r(e)&&(i=e,e=void 0),e=e||""):(e=t,i=e,t=!1,r(e)&&(i=e,e=void 0),e=e||"");var s=ee(),o=t?s._week.dow:0;if(null!=i)return Yi(e,(i+o)%7,n,"day");var a,l=[];for(a=0;a<7;a++)l[a]=Yi(e,(a+o)%7,n,"day");return l}function Vi(t,e){return Bi(t,e,"months")}function Ui(t,e){return Bi(t,e,"monthsShort")}function Zi(t,e,i){return Gi(t,e,i,"weekdays")}function Xi(t,e,i){return Gi(t,e,i,"weekdaysShort")}function Qi(t,e,i){return Gi(t,e,i,"weekdaysMin")}function Ji(){var t=this._data;return this._milliseconds=so(this._milliseconds),this._days=so(this._days),this._months=so(this._months),t.milliseconds=so(t.milliseconds),t.seconds=so(t.seconds),t.minutes=so(t.minutes),t.hours=so(t.hours),t.months=so(t.months),t.years=so(t.years),this}function Ki(t,e,i,n){var s=Ye(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function tn(t,e){return Ki(this,t,e,1)}function en(t,e){return Ki(this,t,e,-1)}function nn(t){return t<0?Math.floor(t):Math.ceil(t)}function sn(){var t,e,i,n,s,o=this._milliseconds,r=this._days,a=this._months,l=this._data;return o>=0&&r>=0&&a>=0||o<=0&&r<=0&&a<=0||(o+=864e5*nn(rn(a)+r),r=0,a=0),l.milliseconds=o%1e3,t=w(o/1e3),l.seconds=t%60,e=w(t/60),l.minutes=e%60,i=w(e/60),l.hours=i%24,r+=w(i/24),s=w(on(r)),a+=s,r-=nn(rn(s)),n=w(a/12),a%=12,l.days=r,l.months=a,l.years=n,this}function on(t){return 4800*t/146097}function rn(t){return 146097*t/4800}function an(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(t=O(t),"month"===t||"year"===t)return e=this._days+n/864e5,i=this._months+on(e),"month"===t?i:i/12;switch(e=this._days+Math.round(rn(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}}function ln(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function dn(t){return function(){return this.as(t)}}function un(t){return t=O(t),this.isValid()?this[t+"s"]():NaN}function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}function hn(){return w(this.days()/7)}function fn(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}function pn(t,e,i){var n=Ye(t).abs(),s=So(n.as("s")),o=So(n.as("m")),r=So(n.as("h")),a=So(n.as("d")),l=So(n.as("M")),d=So(n.as("y")),u=s<=_o.ss&&["s",s]||s<_o.s&&["ss",s]||o<=1&&["m"]||o<_o.m&&["mm",o]||r<=1&&["h"]||r<_o.h&&["hh",r]||a<=1&&["d"]||a<_o.d&&["dd",a]||l<=1&&["M"]||l<_o.M&&["MM",l]||d<=1&&["y"]||["yy",d];return u[2]=e,u[3]=+t>0,u[4]=i,fn.apply(null,u)}function gn(t){return void 0===t?So:"function"==typeof t&&(So=t,!0)}function mn(t,e){return void 0!==_o[t]&&(void 0===e?_o[t]:(_o[t]=e,"s"===t&&(_o.ss=e-1),!0))}function vn(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=pn(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)}function yn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n=To(this._milliseconds)/1e3,s=To(this._days),o=To(this._months);t=w(n/60),e=w(t/60),n%=60,t%=60,i=w(o/12),o%=12;var r=i,a=o,l=s,d=e,u=t,c=n,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(r?r+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(d||u||c?"T":"")+(d?d+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}var wn,bn;bn=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var Sn=bn,_n=t.momentProperties=[],Tn=!1,xn={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Cn;Cn=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)d(t,e)&&i.push(e);return i};var Dn,kn=Cn,En={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},$n={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"},Hn="Invalid date",Mn="%d",Rn=/\d{1,2}/,In={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},An={},Ln={},On=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,zn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Nn={},jn={},Pn=/\d/,Wn=/\d\d/,Fn=/\d{3}/,qn=/\d{4}/,Yn=/[+-]?\d{6}/,Bn=/\d\d?/,Gn=/\d\d\d\d?/,Vn=/\d\d\d\d\d\d?/,Un=/\d{1,3}/,Zn=/\d{1,4}/,Xn=/[+-]?\d{1,6}/,Qn=/\d+/,Jn=/[+-]?\d+/,Kn=/Z|[+-]\d\d:?\d\d/gi,ts=/Z|[+-]\d\d(?::?\d\d)?/gi,es=/[+-]?\d+(\.\d{1,3})?/,is=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ns={},ss={},os=0,rs=1,as=2,ls=3,ds=4,us=5,cs=6,hs=7,fs=8;Dn=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};var ps=Dn;
G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),G("MMMM",0,0,function(t){return this.localeData().months(this,t)}),L("month","M"),N("month",8),Q("M",Bn),Q("MM",Bn,Wn),Q("MMM",function(t,e){return e.monthsShortRegex(t)}),Q("MMMM",function(t,e){return e.monthsRegex(t)}),et(["M","MM"],function(t,e){e[rs]=b(t)-1}),et(["MMM","MMMM"],function(t,e,i,n){var s=i._locale.monthsParse(t,n,i._strict);null!=s?e[rs]=s:f(i).invalidMonth=t});var gs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ms="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ys=is,ws=is;G("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),L("year","y"),N("year",1),Q("Y",Jn),Q("YY",Bn,Wn),Q("YYYY",Zn,qn),Q("YYYYY",Xn,Yn),Q("YYYYYY",Xn,Yn),et(["YYYYY","YYYYYY"],os),et("YYYY",function(e,i){i[os]=2===e.length?t.parseTwoDigitYear(e):b(e)}),et("YY",function(e,i){i[os]=t.parseTwoDigitYear(e)}),et("Y",function(t,e){e[os]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return b(t)+(b(t)>68?1900:2e3)};var bs=P("FullYear",!0);G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),N("week",5),N("isoWeek",5),Q("w",Bn),Q("ww",Bn,Wn),Q("W",Bn),Q("WW",Bn,Wn),it(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=b(t)});var Ss={dow:0,doy:6};G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),Q("d",Bn),Q("e",Bn),Q("E",Bn),Q("dd",function(t,e){return e.weekdaysMinRegex(t)}),Q("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Q("dddd",function(t,e){return e.weekdaysRegex(t)}),it(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t}),it(["d","e","E"],function(t,e,i,n){e[n]=b(t)});var _s="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ts="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xs="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cs=is,Ds=is,ks=is;G("H",["HH",2],0,"hour"),G("h",["hh",2],0,qt),G("k",["kk",2],0,Yt),G("hmm",0,0,function(){return""+qt.apply(this)+B(this.minutes(),2)}),G("hmmss",0,0,function(){return""+qt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Bt("a",!0),Bt("A",!1),L("hour","h"),N("hour",13),Q("a",Gt),Q("A",Gt),Q("H",Bn),Q("h",Bn),Q("k",Bn),Q("HH",Bn,Wn),Q("hh",Bn,Wn),Q("kk",Bn,Wn),Q("hmm",Gn),Q("hmmss",Vn),Q("Hmm",Gn),Q("Hmmss",Vn),et(["H","HH"],ls),et(["k","kk"],function(t,e,i){var n=b(t);e[ls]=24===n?0:n}),et(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),et(["h","hh"],function(t,e,i){e[ls]=b(t),f(i).bigHour=!0}),et("hmm",function(t,e,i){var n=t.length-2;e[ls]=b(t.substr(0,n)),e[ds]=b(t.substr(n)),f(i).bigHour=!0}),et("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[ls]=b(t.substr(0,n)),e[ds]=b(t.substr(n,2)),e[us]=b(t.substr(s)),f(i).bigHour=!0}),et("Hmm",function(t,e,i){var n=t.length-2;e[ls]=b(t.substr(0,n)),e[ds]=b(t.substr(n))}),et("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[ls]=b(t.substr(0,n)),e[ds]=b(t.substr(n,2)),e[us]=b(t.substr(s))});var Es,$s=/[ap]\.?m?\.?/i,Hs=P("Hours",!0),Ms={calendar:En,longDateFormat:$n,invalidDate:Hn,ordinal:Mn,dayOfMonthOrdinalParse:Rn,relativeTime:In,months:ms,monthsShort:vs,week:Ss,weekdays:_s,weekdaysMin:xs,weekdaysShort:Ts,meridiemParse:$s},Rs={},Is={},As=/^\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)?)?$/,Ls=/^\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)?)?$/,Os=/Z|[+-]\d\d(?::?\d\d)?/,zs=[["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}/]],Ns=[["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/]],js=/^\/?Date\((\-?\d+)/i,Ps=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;t.createFromInputFallback=T("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Ws=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=we.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),Fs=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=we.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}),qs=function(){return Date.now?Date.now():+new Date},Ys=["year","quarter","month","week","day","hour","minute","second","millisecond"];$e("Z",":"),$e("ZZ",""),Q("Z",ts),Q("ZZ",ts),et(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=He(ts,t)});var Bs=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Gs=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vs=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ye.fn=De.prototype,Ye.invalid=Ce;var Us=Ue(1,"add"),Zs=Ue(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xs=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$i("gggg","weekYear"),$i("ggggg","weekYear"),$i("GGGG","isoWeekYear"),$i("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),Q("G",Jn),Q("g",Jn),Q("GG",Bn,Wn),Q("gg",Bn,Wn),Q("GGGG",Zn,qn),Q("gggg",Zn,qn),Q("GGGGG",Xn,Yn),Q("ggggg",Xn,Yn),it(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=b(t)}),it(["gg","GG"],function(e,i,n,s){i[s]=t.parseTwoDigitYear(e)}),G("Q",0,"Qo","quarter"),L("quarter","Q"),N("quarter",7),Q("Q",Pn),et("Q",function(t,e){e[rs]=3*(b(t)-1)}),G("D",["DD",2],"Do","date"),L("date","D"),N("date",9),Q("D",Bn),Q("DD",Bn,Wn),Q("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et(["D","DD"],as),et("Do",function(t,e){e[as]=b(t.match(Bn)[0],10)});var Qs=P("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),N("dayOfYear",4),Q("DDD",Un),Q("DDDD",Fn),et(["DDD","DDDD"],function(t,e,i){i._dayOfYear=b(t)}),G("m",["mm",2],0,"minute"),L("minute","m"),N("minute",14),Q("m",Bn),Q("mm",Bn,Wn),et(["m","mm"],ds);var Js=P("Minutes",!1);G("s",["ss",2],0,"second"),L("second","s"),N("second",15),Q("s",Bn),Q("ss",Bn,Wn),et(["s","ss"],us);var Ks=P("Seconds",!1);G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),N("millisecond",16),Q("S",Un,Pn),Q("SS",Un,Wn),Q("SSS",Un,Fn);var to;for(to="SSSS";to.length<=9;to+="S")Q(to,Qn);for(to="S";to.length<=9;to+="S")et(to,Ni);var eo=P("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var io=v.prototype;io.add=Us,io.calendar=Qe,io.clone=Je,io.diff=oi,io.endOf=yi,io.format=ui,io.from=ci,io.fromNow=hi,io.to=fi,io.toNow=pi,io.get=q,io.invalidAt=ki,io.isAfter=Ke,io.isBefore=ti,io.isBetween=ei,io.isSame=ii,io.isSameOrAfter=ni,io.isSameOrBefore=si,io.isValid=Ci,io.lang=Xs,io.locale=gi,io.localeData=mi,io.max=Fs,io.min=Ws,io.parsingFlags=Di,io.set=Y,io.startOf=vi,io.subtract=Zs,io.toArray=_i,io.toObject=Ti,io.toDate=Si,io.toISOString=li,io.inspect=di,io.toJSON=xi,io.toString=ai,io.unix=bi,io.valueOf=wi,io.creationData=Ei,io.year=bs,io.isLeapYear=vt,io.weekYear=Hi,io.isoWeekYear=Mi,io.quarter=io.quarters=Oi,io.month=ut,io.daysInMonth=ct,io.week=io.weeks=kt,io.isoWeek=io.isoWeeks=Et,io.weeksInYear=Ii,io.isoWeeksInYear=Ri,io.date=Qs,io.day=io.days=Ot,io.weekday=zt,io.isoWeekday=Nt,io.dayOfYear=zi,io.hour=io.hours=Hs,io.minute=io.minutes=Js,io.second=io.seconds=Ks,io.millisecond=io.milliseconds=eo,io.utcOffset=Ie,io.utc=Le,io.local=Oe,io.parseZone=ze,io.hasAlignedHourOffset=Ne,io.isDST=je,io.isLocal=We,io.isUtcOffset=Fe,io.isUtc=qe,io.isUTC=qe,io.zoneAbbr=ji,io.zoneName=Pi,io.dates=T("dates accessor is deprecated. Use date instead.",Qs),io.months=T("months accessor is deprecated. Use month instead",ut),io.years=T("years accessor is deprecated. Use year instead",bs),io.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ae),io.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pe);var no=E.prototype;no.calendar=$,no.longDateFormat=H,no.invalidDate=M,no.ordinal=R,no.preparse=qi,no.postformat=qi,no.relativeTime=I,no.pastFuture=A,no.set=D,no.months=ot,no.monthsShort=rt,no.monthsParse=lt,no.monthsRegex=ft,no.monthsShortRegex=ht,no.week=xt,no.firstDayOfYear=Dt,no.firstDayOfWeek=Ct,no.weekdays=Mt,no.weekdaysMin=It,no.weekdaysShort=Rt,no.weekdaysParse=Lt,no.weekdaysRegex=jt,no.weekdaysShortRegex=Pt,no.weekdaysMinRegex=Wt,no.isPM=Vt,no.meridiem=Ut,Jt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===b(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),t.lang=T("moment.lang is deprecated. Use moment.locale instead.",Jt),t.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ee);var so=Math.abs,oo=dn("ms"),ro=dn("s"),ao=dn("m"),lo=dn("h"),uo=dn("d"),co=dn("w"),ho=dn("M"),fo=dn("y"),po=cn("milliseconds"),go=cn("seconds"),mo=cn("minutes"),vo=cn("hours"),yo=cn("days"),wo=cn("months"),bo=cn("years"),So=Math.round,_o={ss:44,s:45,m:45,h:22,d:26,M:11},To=Math.abs,xo=De.prototype;return xo.isValid=xe,xo.abs=Ji,xo.add=tn,xo.subtract=en,xo.as=an,xo.asMilliseconds=oo,xo.asSeconds=ro,xo.asMinutes=ao,xo.asHours=lo,xo.asDays=uo,xo.asWeeks=co,xo.asMonths=ho,xo.asYears=fo,xo.valueOf=ln,xo._bubble=sn,xo.get=un,xo.milliseconds=po,xo.seconds=go,xo.minutes=mo,xo.hours=vo,xo.days=yo,xo.weeks=hn,xo.months=wo,xo.years=bo,xo.humanize=vn,xo.toISOString=yn,xo.toString=yn,xo.toJSON=yn,xo.locale=gi,xo.localeData=mi,xo.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",yn),xo.lang=Xs,G("X",0,0,"unix"),G("x",0,0,"valueOf"),Q("x",Jn),Q("X",es),et("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),et("x",function(t,e,i){i._d=new Date(b(t))}),t.version="2.18.1",e(we),t.fn=io,t.min=Se,t.max=_e,t.now=qs,t.utc=c,t.unix=Wi,t.months=Vi,t.isDate=a,t.locale=Jt,t.invalid=g,t.duration=Ye,t.isMoment=y,t.weekdays=Zi,t.parseZone=Fi,t.localeData=ee,t.isDuration=ke,t.monthsShort=Ui,t.weekdaysMin=Qi,t.defineLocale=Kt,t.updateLocale=te,t.locales=ie,t.weekdaysShort=Xi,t.normalizeUnits=O,t.relativeTimeRounding=gn,t.relativeTimeThreshold=mn,t.calendarFormat=Xe,t.prototype=io,t}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.Blazy=e()}(this,function(){function t(t){var i=t._util;i.elements=l(t.options),i.count=i.elements.length,i.destroyed&&(i.destroyed=!1,t.options.container&&h(t.options.container,function(t){u(t,"scroll",i.validateT)}),u(window,"resize",i.saveViewportOffsetT),u(window,"resize",i.validateT),u(window,"scroll",i.validateT)),e(t)}function e(t){for(var e=t._util,n=0;n<e.count;n++){var s,o=e.elements[n],a=o;s=t.options;var l=a.getBoundingClientRect();s.container&&v&&(a=a.closest(s.containerClass))?(a=a.getBoundingClientRect(),s=!!i(a,g)&&i(l,{top:a.top-s.offset,right:a.right+s.offset,bottom:a.bottom+s.offset,left:a.left-s.offset})):s=i(l,g),(s||r(o,t.options.successClass))&&(t.load(o),e.elements.splice(n,1),e.count--,n--)}0===e.count&&t.destroy()}function i(t,e){return t.right>=e.left&&t.bottom>=e.top&&t.left<=e.right&&t.top<=e.bottom}function n(t,e,i){if(!r(t,i.successClass)&&(e||i.loadInvisible||0<t.offsetWidth&&0<t.offsetHeight))if(e=t.getAttribute(p)||t.getAttribute(i.src)){e=e.split(i.separator);var n=e[m&&1<e.length?1:0],l=t.getAttribute(i.srcset),d="img"===t.nodeName.toLowerCase(),f=(e=t.parentNode)&&"picture"===e.nodeName.toLowerCase();if(d||void 0===t.src){var g=new Image,v=function(){i.error&&i.error(t,"invalid"),a(t,i.errorClass),c(g,"error",v),c(g,"load",y)},y=function(){d?f||o(t,n,l):t.style.backgroundImage='url("'+n+'")',s(t,i),c(g,"load",y),c(g,"error",v)};f&&(g=t,h(e.getElementsByTagName("source"),function(t){var e=i.srcset,n=t.getAttribute(e);n&&(t.setAttribute("srcset",n),t.removeAttribute(e))})),u(g,"error",v),u(g,"load",y),o(g,n,l)}else t.src=n,s(t,i)}else"video"===t.nodeName.toLowerCase()?(h(t.getElementsByTagName("source"),function(t){var e=i.src,n=t.getAttribute(e);n&&(t.setAttribute("src",n),t.removeAttribute(e))}),t.load(),s(t,i)):(i.error&&i.error(t,"missing"),a(t,i.errorClass))}function s(t,e){a(t,e.successClass),e.success&&e.success(t),t.removeAttribute(e.src),t.removeAttribute(e.srcset),h(e.breakpoints,function(e){t.removeAttribute(e.src)})}function o(t,e,i){i&&t.setAttribute("srcset",i),t.src=e}function r(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")}function a(t,e){r(t,e)||(t.className+=" "+e)}function l(t){var e=[];t=t.root.querySelectorAll(t.selector);for(var i=t.length;i--;e.unshift(t[i]));return e}function d(t){g.bottom=(window.innerHeight||document.documentElement.clientHeight)+t,g.right=(window.innerWidth||document.documentElement.clientWidth)+t}function u(t,e,i){t.attachEvent?t.attachEvent&&t.attachEvent("on"+e,i):t.addEventListener(e,i,{capture:!1,passive:!0})}function c(t,e,i){t.detachEvent?t.detachEvent&&t.detachEvent("on"+e,i):t.removeEventListener(e,i,{capture:!1,passive:!0})}function h(t,e){if(t&&e)for(var i=t.length,n=0;n<i&&!1!==e(t[n],n);n++);}function f(t,e,i){var n=0;return function(){var s=+new Date;s-n<e||(n=s,t.apply(i,arguments))}}var p,g,m,v;return function(i){if(!document.querySelectorAll){var s=document.createStyleSheet();document.querySelectorAll=function(t,e,i,n,o){for(o=document.all,e=[],t=t.replace(/\[for\b/gi,"[htmlFor").split(","),i=t.length;i--;){for(s.addRule(t[i],"k:v"),n=o.length;n--;)o[n].currentStyle.k&&e.push(o[n]);s.removeRule(0)}return e}}var o=this,r=o._util={};r.elements=[],r.destroyed=!0,o.options=i||{},o.options.error=o.options.error||!1,o.options.offset=o.options.offset||100,o.options.root=o.options.root||document,o.options.success=o.options.success||!1,o.options.selector=o.options.selector||".b-lazy",o.options.separator=o.options.separator||"|",o.options.containerClass=o.options.container,o.options.container=!!o.options.containerClass&&document.querySelectorAll(o.options.containerClass),o.options.errorClass=o.options.errorClass||"b-error",o.options.breakpoints=o.options.breakpoints||!1,o.options.loadInvisible=o.options.loadInvisible||!1,o.options.successClass=o.options.successClass||"b-loaded",o.options.validateDelay=o.options.validateDelay||25,o.options.saveViewportOffsetDelay=o.options.saveViewportOffsetDelay||50,o.options.srcset=o.options.srcset||"data-srcset",o.options.src=p=o.options.src||"data-src",v=Element.prototype.closest,m=1<window.devicePixelRatio,g={},g.top=0-o.options.offset,g.left=0-o.options.offset,o.revalidate=function(){t(o)},o.load=function(t,e){var i=this.options;void 0===t.length?n(t,e,i):h(t,function(t){n(t,e,i)})},o.destroy=function(){var t=this._util;this.options.container&&h(this.options.container,function(e){c(e,"scroll",t.validateT)}),c(window,"scroll",t.validateT),c(window,"resize",t.validateT),c(window,"resize",t.saveViewportOffsetT),t.count=0,t.elements.length=0,t.destroyed=!0},r.validateT=f(function(){e(o)},o.options.validateDelay,o),r.saveViewportOffsetT=f(function(){d(o.options.offset)},o.options.saveViewportOffsetDelay,o),d(o.options.offset),h(o.options.breakpoints,function(t){if(t.width>=window.screen.width)return p=t.src,!1}),setTimeout(function(){t(o)})}}),!function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):"object"==typeof exports?module.exports=t(require("jquery"),require("moment")):t(jQuery,moment)}(function(t,e){function i(t){return nt(t,Xt)}function n(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})}function s(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function o(){t("body").addClass("fc-not-allowed")}function r(){t("body").removeClass("fc-not-allowed")}function a(e,i,n){var s=Math.floor(i/e.length),o=Math.floor(i-s*(e.length-1)),r=[],a=[],d=[],u=0;l(e),e.each(function(i,n){var l=i===e.length-1?o:s,c=t(n).outerHeight(!0);c<l?(r.push(n),a.push(c),d.push(t(n).height())):u+=c}),n&&(i-=u,s=Math.floor(i/r.length),o=Math.floor(i-s*(r.length-1))),t(r).each(function(e,i){var n=e===r.length-1?o:s,l=a[e],u=d[e],c=n-(l-u);l<n&&t(i).height(c)})}function l(t){t.height("")}function d(e){var i=0;return e.find("> *").each(function(e,n){var s=t(n).outerWidth();s>i&&(i=s)}),i++,e.width(i),i}function u(t,e){var i,n=t.add(e);return n.css({position:"relative",left:-1}),i=t.outerHeight()-e.outerHeight(),n.css({position:"",left:""}),i}function c(e){var i=e.css("position"),n=e.parents().filter(function(){var e=t(this);return/(auto|scroll)/.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&n.length?n:t(e[0].ownerDocument||document)}function h(t,e){var i=t.offset(),n=i.left-(e?e.left:0),s=i.top-(e?e.top:0);return{left:n,right:n+t.outerWidth(),top:s,bottom:s+t.outerHeight()}}function f(t,e){var i=t.offset(),n=g(t),s=i.left+w(t,"border-left-width")+n.left-(e?e.left:0),o=i.top+w(t,"border-top-width")+n.top-(e?e.top:0);return{left:s,right:s+t[0].clientWidth,top:o,bottom:o+t[0].clientHeight}}function p(t,e){var i=t.offset(),n=i.left+w(t,"border-left-width")+w(t,"padding-left")-(e?e.left:0),s=i.top+w(t,"border-top-width")+w(t,"padding-top")-(e?e.top:0);return{left:n,right:n+t.width(),top:s,bottom:s+t.height()}}function g(t){var e,i=t[0].offsetWidth-t[0].clientWidth,n=t[0].offsetHeight-t[0].clientHeight;return i=m(i),n=m(n),e={left:0,right:0,top:0,bottom:n},v()&&"rtl"==t.css("direction")?e.left=i:e.right=i,e}function m(t){return t=Math.max(0,t),t=Math.round(t)}function v(){return null===Qt&&(Qt=y()),Qt}function y(){var e=t("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),i=e.children(),n=i.offset().left>e.offset().left;return e.remove(),n}function w(t,e){return parseFloat(t.css(e))||0}function b(t){return 1==t.which&&!t.ctrlKey}function S(t){var e=t.originalEvent.touches;return e&&e.length?e[0].pageX:t.pageX}function _(t){var e=t.originalEvent.touches;return e&&e.length?e[0].pageY:t.pageY}function T(t){return/^touch/.test(t.type)}function x(t){t.addClass("fc-unselectable").on("selectstart",D)}function C(t){t.removeClass("fc-unselectable").off("selectstart",D)}function D(t){t.preventDefault()}function k(t,e){var i={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return i.left<i.right&&i.top<i.bottom&&i}function E(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function $(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function H(t,e){return{left:t.left-e.left,top:t.top-e.top}}function M(e){var i,n,s=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:t.isArray(e)&&(o=e),i=0;i<o.length;i++)n=o[i],"string"==typeof n?s.push("-"==n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&s.push({func:n});return s}function R(t,e,i){var n,s;for(n=0;n<i.length;n++)if(s=I(t,e,i[n]))return s;return 0}function I(t,e,i){return i.func?i.func(t,e):A(t[i.field],e[i.field])*(i.order||1)}function A(e,i){return e||i?null==i?-1:null==e?1:"string"===t.type(e)||"string"===t.type(i)?String(e).localeCompare(String(i)):e-i:0}function L(t,e){var i,n,s,o,r=t.start,a=t.end,l=e.start,d=e.end;if(a>l&&r<d)return r>=l?(i=r.clone(),s=!0):(i=l.clone(),s=!1),a<=d?(n=a.clone(),o=!0):(n=d.clone(),o=!1),{start:i,end:n,isStart:s,isEnd:o}}function O(t,i){return e.duration({days:t.clone().stripTime().diff(i.clone().stripTime(),"days"),ms:t.time()-i.time()})}function z(t,i){return e.duration({days:t.clone().stripTime().diff(i.clone().stripTime(),"days")})}function N(t,i,n){return e.duration(Math.round(t.diff(i,n,!0)),n)}function j(t,e){var i,n,s;for(i=0;i<Kt.length&&(n=Kt[i],!((s=W(n,t,e))>=1&&mt(s)));i++);return n}function P(t,e){var i=j(t);return"week"===i&&"object"==typeof e&&e.days&&(i="day"),i}function W(t,i,n){return null!=n?n.diff(i,t,!0):e.isDuration(i)?i.as(t):i.end.diff(i.start,t,!0)}function F(t,e,i){var n;return tt(i)?(e-t)/i:(n=i.asMonths(),Math.abs(n)>=1&&mt(n)?e.diff(t,"months",!0)/n:e.diff(t,"days",!0)/i.asDays())}function q(t,e){var i,n;return tt(t)||tt(e)?t/e:(i=t.asMonths(),n=e.asMonths(),Math.abs(i)>=1&&mt(i)&&Math.abs(n)>=1&&mt(n)?i/n:t.asDays()/e.asDays())}function Y(t,i){var n;return tt(t)?e.duration(t*i):(n=t.asMonths(),Math.abs(n)>=1&&mt(n)?e.duration({months:n*i}):e.duration({days:t.asDays()*i}))}function B(t){return{start:t.start.clone(),end:t.end.clone()}}function G(t,e){return t=B(t),e.start&&(t.start=V(t.start,e)),e.end&&(t.end=J(t.end,e.end)),t}function V(t,e){return t=t.clone(),e.start&&(t=K(t,e.start)),e.end&&t>=e.end&&(t=e.end.clone().subtract(1)),t}function U(t,e){return(!e.start||t>=e.start)&&(!e.end||t<e.end)}function Z(t,e){return(!e.start||t.end>=e.start)&&(!e.end||t.start<e.end)}function X(t,e){return(!e.start||t.start>=e.start)&&(!e.end||t.end<=e.end)}function Q(t,e){return(t.start&&e.start&&t.start.isSame(e.start)||!t.start&&!e.start)&&(t.end&&e.end&&t.end.isSame(e.end)||!t.end&&!e.end)}function J(t,e){return(t.isBefore(e)?t:e).clone()}function K(t,e){return(t.isAfter(e)?t:e).clone()}function tt(t){return Boolean(t.hours()||t.minutes()||t.seconds()||t.milliseconds())}function et(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function it(t){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)}function nt(t,e){var i,n,s,o,r,a,l={};if(e)for(i=0;i<e.length;i++){for(n=e[i],s=[],o=t.length-1;o>=0;o--)if("object"==typeof(r=t[o][n]))s.unshift(r);else if(void 0!==r){l[n]=r;break}s.length&&(l[n]=nt(s))}for(i=t.length-1;i>=0;i--){a=t[i];for(n in a)n in l||(l[n]=a[n])}return l}function st(t){var e=function(){};return e.prototype=t,new e}function ot(t,e){for(var i in t)rt(t,i)&&(e[i]=t[i])}function rt(t,e){return te.call(t,e)}function at(e){return/undefined|null|boolean|number|string/.test(t.type(e))}function lt(e,i,n){if(t.isFunction(e)&&(e=[e]),e){var s,o;for(s=0;s<e.length;s++)o=e[s].apply(i,n)||o;return o}}function dt(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}function ut(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function ct(t){return t.replace(/&.*?;/g,"")}function ht(e){var i=[];return t.each(e,function(t,e){null!=e&&i.push(t+":"+e)}),i.join(";")}function ft(e){var i=[];return t.each(e,function(t,e){null!=e&&i.push(t+'="'+ut(e)+'"')}),i.join(" ")}function pt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function gt(t,e){return t-e}function mt(t){return t%1==0}function vt(t,e){var i=t[e];return function(){return i.apply(t,arguments)}}function yt(t,e,i){var n,s,o,r,a,l=function(){var d=+new Date-r;d<e?n=setTimeout(l,e-d):(n=null,i||(a=t.apply(o,s),o=s=null))};return function(){o=this,s=arguments,r=+new Date;var d=i&&!n;return n||(n=setTimeout(l,e)),d&&(a=t.apply(o,s),o=s=null),a}}function wt(i,n,s){var o,r,a,l,d=i[0],u=1==i.length&&"string"==typeof d;return e.isMoment(d)||et(d)||void 0===d?l=e.apply(null,i):(o=!1,r=!1,u?ee.test(d)?(d+="-01",i=[d],o=!0,r=!0):(a=ie.exec(d))&&(o=!a[5],r=!0):t.isArray(d)&&(r=!0),l=n||o?e.utc.apply(e,i):e.apply(null,i),o?(l._ambigTime=!0,l._ambigZone=!0):s&&(r?l._ambigZone=!0:u&&l.utcOffset(d))),l._fullCalendar=!0,l}function bt(t){return"en"!==t.locale()?t.clone().locale("en"):t}function St(){}function _t(t,e){var i;return rt(e,"constructor")&&(i=e.constructor),"function"!=typeof i&&(i=e.constructor=function(){t.apply(this,arguments)}),i.prototype=st(t.prototype),ot(e,i.prototype),ot(t,i),i}function Tt(t,e){ot(e,t.prototype)}function xt(t,e){t.then=function(i){return"function"==typeof i&&i(e),t}}function Ct(t){t.then=function(e,i){return"function"==typeof i&&i(),t}}function Dt(t,e){return!t&&!e||!(!t||!e)&&t.component===e.component&&kt(t,e)&&kt(e,t)}function kt(t,e){for(var i in t)if(!/^(component|left|right|top|bottom)$/.test(i)&&t[i]!==e[i])return!1;return!0}function Et(t){return{start:t.start.clone(),end:t.end?t.end.clone():null,allDay:t.allDay}}function $t(t){var e=Mt(t);return"background"===e||"inverse-background"===e}function Ht(t){return"inverse-background"===Mt(t)}function Mt(t){return dt((t.source||{}).rendering,t.rendering)}function Rt(t){var e,i,n={};for(e=0;e<t.length;e++)i=t[e],(n[i._id]||(n[i._id]=[])).push(i);return n}function It(t,e){return t.start-e.start}function At(i){var n,s,o,r,a=Ut.dataAttrPrefix;return a&&(a+="-"),n=i.data(a+"event")||null,n&&(n="object"==typeof n?t.extend({},n):{},s=n.start,null==s&&(s=n.time),o=n.duration,r=n.stick,delete n.start,delete n.time,delete n.duration,delete n.stick),null==s&&(s=i.data(a+"start")),null==s&&(s=i.data(a+"time")),null==o&&(o=i.data(a+"duration")),null==r&&(r=i.data(a+"stick")),s=null!=s?e.duration(s):null,o=null!=o?e.duration(o):null,r=Boolean(r),{eventProps:n,startTime:s,duration:o,stick:r}}function Lt(t,e){var i,n;for(i=0;i<e.length;i++)if(n=e[i],n.leftCol<=t.rightCol&&n.rightCol>=t.leftCol)return!0;return!1}function Ot(t,e){return t.leftCol-e.leftCol}function zt(t){var e,i,n,s=[];for(e=0;e<t.length;e++){for(i=t[e],n=0;n<s.length&&Pt(i,s[n]).length;n++);i.level=n,(s[n]||(s[n]=[])).push(i)}return s}function Nt(t){var e,i,n,s,o;for(e=0;e<t.length;e++)for(i=t[e],n=0;n<i.length;n++)for(s=i[n],s.forwardSegs=[],o=e+1;o<t.length;o++)Pt(s,t[o],s.forwardSegs)}function jt(t){var e,i,n=t.forwardSegs,s=0;if(void 0===t.forwardPressure){for(e=0;e<n.length;e++)i=n[e],jt(i),s=Math.max(s,1+i.forwardPressure);t.forwardPressure=s}}function Pt(t,e,i){i=i||[];for(var n=0;n<e.length;n++)Wt(t,e[n])&&i.push(e[n]);return i}function Wt(t,e){return t.bottom>e.top&&t.top<e.bottom}function Ft(t){this.items=t||[]}function qt(e,i){function n(t){i=t}function s(){var n=i.layout;g=e.opt("theme")?"ui":"fc",n?(p?p.empty():p=this.el=t("<div class='fc-toolbar "+i.extraClasses+"'/>"),p.append(r("left")).append(r("right")).append(r("center")).append('<div class="fc-clear"/>')):o()}function o(){p&&(p.remove(),p=f.el=null)}function r(n){var s=t('<div class="fc-'+n+'"/>'),o=i.layout[n],r=e.opt("customButtons")||{},a=e.opt("buttonText")||{};return o&&t.each(o.split(" "),function(i){var n,o=t(),l=!0;t.each(this.split(","),function(i,n){var s,d,u,c,h,f,p,v,y,w;"title"==n?(o=o.add(t("<h2>&nbsp;</h2>")),l=!1):((s=r[n])?(u=function(t){s.click&&s.click.call(w[0],t)},c="",h=s.text):(d=e.getViewSpec(n))?(u=function(){e.changeView(n)},m.push(n),c=d.buttonTextOverride,h=d.buttonTextDefault):e[n]&&(u=function(){e[n]()},c=(e.overrides.buttonText||{})[n],h=a[n]),u&&(f=s?s.themeIcon:e.opt("themeButtonIcons")[n],p=s?s.icon:e.opt("buttonIcons")[n],v=c?ut(c):f&&e.opt("theme")?"<span class='ui-icon ui-icon-"+f+"'></span>":p&&!e.opt("theme")?"<span class='fc-icon fc-icon-"+p+"'></span>":ut(h),y=["fc-"+n+"-button",g+"-button",g+"-state-default"],w=t('<button type="button" class="'+y.join(" ")+'">'+v+"</button>").click(function(t){w.hasClass(g+"-state-disabled")||(u(t),(w.hasClass(g+"-state-active")||w.hasClass(g+"-state-disabled"))&&w.removeClass(g+"-state-hover"))}).mousedown(function(){w.not("."+g+"-state-active").not("."+g+"-state-disabled").addClass(g+"-state-down")}).mouseup(function(){w.removeClass(g+"-state-down")}).hover(function(){w.not("."+g+"-state-active").not("."+g+"-state-disabled").addClass(g+"-state-hover")},function(){w.removeClass(g+"-state-hover").removeClass(g+"-state-down")}),o=o.add(w)))}),l&&o.first().addClass(g+"-corner-left").end().last().addClass(g+"-corner-right").end(),o.length>1?(n=t("<div/>"),l&&n.addClass("fc-button-group"),n.append(o),s.append(n)):s.append(o)}),s}function a(t){p&&p.find("h2").text(t)}function l(t){p&&p.find(".fc-"+t+"-button").addClass(g+"-state-active")}function d(t){p&&p.find(".fc-"+t+"-button").removeClass(g+"-state-active")}function u(t){p&&p.find(".fc-"+t+"-button").prop("disabled",!0).addClass(g+"-state-disabled")}function c(t){p&&p.find(".fc-"+t+"-button").prop("disabled",!1).removeClass(g+"-state-disabled")}function h(){return m}var f=this;f.setToolbarOptions=n,f.render=s,f.removeElement=o,f.updateTitle=a,f.activateButton=l,f.deactivateButton=d,f.disableButton=u,f.enableButton=c,f.getViewsWithButtons=h,f.el=null;var p,g,m=[]}function Yt(e){t.each(Me,function(t,i){null==e[t]&&(e[t]=i(e))})}function Bt(t){return e.localeData(t)||e.localeData("en")}function Gt(){function i(t,e){return!B.opt("lazyFetching")||o(t,e)?r(t,e):ue.resolve(U)}function n(){U=s(J),B.trigger("eventsReset",U)}function s(t){var e,i,n=[];for(e=0;e<t.length;e++)i=t[e],i.start.clone().stripZone()<V&&B.getEventEnd(i).stripZone()>G&&n.push(i);return n}function o(t,e){return!G||t<G||e>V}function r(t,e){return G=t,V=e,a()}function a(){return d(X,"reset")}function l(t){return d(S(t))}function d(t,e){var i,n;for("reset"===e?J=[]:"add"!==e&&(J=C(J,t)),i=0;i<t.length;i++)n=t[i],"pending"!==n._status&&Q++,n._fetchId=(n._fetchId||0)+1,n._status="pending";for(i=0;i<t.length;i++)n=t[i],u(n,n._fetchId);return Q?ue.construct(function(t){B.one("eventsReceived",t)}):ue.resolve(U)}function u(e,i){f(e,function(n){var s,o,r,a=t.isArray(e.events);if(i===e._fetchId&&"rejected"!==e._status){if(e._status="resolved",n)for(s=0;s<n.length;s++)o=n[s],(r=a?o:L(o,e))&&J.push.apply(J,F(r));h()}})}function c(t){var e="pending"===t._status;t._status="rejected",e&&h()}function h(){--Q||(n(J),B.trigger("eventsReceived",U))}function f(e,i){var n,s,o=Ut.sourceFetchers;for(n=0;n<o.length;n++){if(!0===(s=o[n].call(B,e,G.clone(),V.clone(),B.opt("timezone"),i)))return;if("object"==typeof s)return void f(s,i);
}var r=e.events;if(r)t.isFunction(r)?(B.pushLoading(),r.call(B,G.clone(),V.clone(),B.opt("timezone"),function(t){i(t),B.popLoading()})):t.isArray(r)?i(r):i();else if(e.url){var a,l=e.success,d=e.error,u=e.complete;a=t.isFunction(e.data)?e.data():e.data;var c=t.extend({},a||{}),h=dt(e.startParam,B.opt("startParam")),p=dt(e.endParam,B.opt("endParam")),g=dt(e.timezoneParam,B.opt("timezoneParam"));h&&(c[h]=G.format()),p&&(c[p]=V.format()),B.opt("timezone")&&"local"!=B.opt("timezone")&&(c[g]=B.opt("timezone")),B.pushLoading(),t.ajax(t.extend({},Re,e,{data:c,success:function(e){e=e||[];var n=lt(l,this,arguments);t.isArray(n)&&(e=n),i(e)},error:function(){lt(d,this,arguments),i()},complete:function(){lt(u,this,arguments),B.popLoading()}}))}else i()}function p(t){var e=g(t);e&&(X.push(e),d([e],"add"))}function g(e){var i,n,s=Ut.sourceNormalizers;if(t.isFunction(e)||t.isArray(e)?i={events:e}:"string"==typeof e?i={url:e}:"object"==typeof e&&(i=t.extend({},e)),i){for(i.className?"string"==typeof i.className&&(i.className=i.className.split(/\s+/)):i.className=[],t.isArray(i.events)&&(i.origArray=i.events,i.events=t.map(i.events,function(t){return L(t,i)})),n=0;n<s.length;n++)s[n].call(B,i);return i}}function m(t){y(_(t))}function v(t){null==t?y(X,!0):y(S(t))}function y(e,i){var s;for(s=0;s<e.length;s++)c(e[s]);i?(X=[],J=[]):(X=t.grep(X,function(t){for(s=0;s<e.length;s++)if(t===e[s])return!1;return!0}),J=C(J,e)),n()}function w(){return X.slice(1)}function b(e){return t.grep(X,function(t){return t.id&&t.id===e})[0]}function S(e){e?t.isArray(e)||(e=[e]):e=[];var i,n=[];for(i=0;i<e.length;i++)n.push.apply(n,_(e[i]));return n}function _(e){var i,n;for(i=0;i<X.length;i++)if((n=X[i])===e)return[n];return n=b(e),n?[n]:t.grep(X,function(t){return T(e,t)})}function T(t,e){return t&&e&&x(t)==x(e)}function x(t){return("object"==typeof t?t.origArray||t.googleCalendarId||t.url||t.events:null)||t}function C(e,i){return t.grep(e,function(t){for(var e=0;e<i.length;e++)if(t.source===i[e])return!1;return!0})}function D(t){k([t])}function k(t){var e,i;for(e=0;e<t.length;e++)i=t[e],i.start=B.moment(i.start),i.end?i.end=B.moment(i.end):i.end=null,q(i,E(i));n()}function E(e){var i={};return t.each(e,function(t,e){$(t)&&void 0!==e&&at(e)&&(i[t]=e)}),i}function $(t){return!/^_|^(id|allDay|start|end)$/.test(t)}function H(t,e){return M([t],e)}function M(t,e){var i,s,o,r,a,l=[];for(o=0;o<t.length;o++)if(s=L(t[o])){for(i=F(s),r=0;r<i.length;r++)a=i[r],a.source||(e&&(Z.events.push(a),a.source=Z),J.push(a));l=l.concat(i)}return l.length&&n(),l}function R(e){var i,s;for(null==e?e=function(){return!0}:t.isFunction(e)||(i=e+"",e=function(t){return t._id==i}),J=t.grep(J,e,!0),s=0;s<X.length;s++)t.isArray(X[s].events)&&(X[s].events=t.grep(X[s].events,e,!0));n()}function I(e){return t.isFunction(e)?t.grep(J,e):null!=e?(e+="",t.grep(J,function(t){return t._id==e})):J}function A(t){t.start=B.moment(t.start),t.end&&(t.end=B.moment(t.end)),Vt(t)}function L(i,n){var s,o,r,a=B.opt("eventDataTransform"),l={};if(a&&(i=a(i)),n&&n.eventDataTransform&&(i=n.eventDataTransform(i)),t.extend(l,i),n&&(l.source=n),l._id=i._id||(void 0===i.id?"_fc"+Ie++:i.id+""),i.className?"string"==typeof i.className?l.className=i.className.split(/\s+/):l.className=i.className:l.className=[],s=i.start||i.date,o=i.end,it(s)&&(s=e.duration(s)),it(o)&&(o=e.duration(o)),i.dow||e.isDuration(s)||e.isDuration(o))l.start=s?e.duration(s):null,l.end=o?e.duration(o):null,l._recurring=!0;else{if(s&&(s=B.moment(s),!s.isValid()))return!1;o&&(o=B.moment(o),o.isValid()||(o=null)),r=i.allDay,void 0===r&&(r=dt(n?n.allDayDefault:void 0,B.opt("allDayDefault"))),j(s,o,r,l)}return B.normalizeEvent(l),l}function j(t,e,i,n){n.start=t,n.end=e,n.allDay=i,P(n),Vt(n)}function P(t){W(t),t.end&&!t.end.isAfter(t.start)&&(t.end=null),t.end||(B.opt("forceEventDuration")?t.end=B.getDefaultEventEnd(t.allDay,t.start):t.end=null)}function W(t){null==t.allDay&&(t.allDay=!(t.start.hasTime()||t.end&&t.end.hasTime())),t.allDay?(t.start.stripTime(),t.end&&t.end.stripTime()):(t.start.hasTime()||(t.start=B.applyTimezone(t.start.time(0))),t.end&&!t.end.hasTime()&&(t.end=B.applyTimezone(t.end.time(0))))}function F(e,i,n){var s,o,r,a,l,d,u,c,h,f=[];if(i=i||G,n=n||V,e)if(e._recurring){if(o=e.dow)for(s={},r=0;r<o.length;r++)s[o[r]]=!0;for(a=i.clone().stripTime();a.isBefore(n);)s&&!s[a.day()]||(l=e.start,d=e.end,u=a.clone(),c=null,l&&(u=u.time(l)),d&&(c=a.clone().time(d)),h=t.extend({},e),j(u,c,!l&&!d,h),f.push(h)),a.add(1,"days")}else f.push(e);return f}function q(e,i,n){function s(t,e){return n?N(t,e,n):i.allDay?z(t,e):O(t,e)}var o,r,a,l,d,u,c={};return i=i||{},i.start||(i.start=e.start.clone()),void 0===i.end&&(i.end=e.end?e.end.clone():null),null==i.allDay&&(i.allDay=e.allDay),P(i),o={start:e._start.clone(),end:e._end?e._end.clone():B.getDefaultEventEnd(e._allDay,e._start),allDay:i.allDay},P(o),r=null!==e._end&&null===i.end,a=s(i.start,o.start),i.end?(l=s(i.end,o.end),d=l.subtract(a)):d=null,t.each(i,function(t,e){$(t)&&void 0!==e&&(c[t]=e)}),u=Y(I(e._id),r,i.allDay,a,d,c),{dateDelta:a,durationDelta:d,undo:u}}function Y(e,i,n,s,o,r){var a=B.getIsAmbigTimezone(),l=[];return s&&!s.valueOf()&&(s=null),o&&!o.valueOf()&&(o=null),t.each(e,function(e,d){var u,c;u={start:d.start.clone(),end:d.end?d.end.clone():null,allDay:d.allDay},t.each(r,function(t){u[t]=d[t]}),c={start:d._start,end:d._end,allDay:n},P(c),i?c.end=null:o&&!c.end&&(c.end=B.getDefaultEventEnd(c.allDay,c.start)),s&&(c.start.add(s),c.end&&c.end.add(s)),o&&c.end.add(o),a&&!c.allDay&&(s||o)&&(c.start.stripZone(),c.end&&c.end.stripZone()),t.extend(d,r,c),Vt(d),l.push(function(){t.extend(d,u),Vt(d)})}),function(){for(var t=0;t<l.length;t++)l[t]()}}var B=this;B.requestEvents=i,B.reportEventChange=n,B.isFetchNeeded=o,B.fetchEvents=r,B.fetchEventSources=d,B.refetchEvents=a,B.refetchEventSources=l,B.getEventSources=w,B.getEventSourceById=b,B.addEventSource=p,B.removeEventSource=m,B.removeEventSources=v,B.updateEvent=D,B.updateEvents=k,B.renderEvent=H,B.renderEvents=M,B.removeEvents=R,B.clientEvents=I,B.mutateEvent=q,B.normalizeEventDates=P,B.normalizeEventTimes=W;var G,V,U,Z={events:[]},X=[Z],Q=0,J=[];t.each((B.opt("events")?[B.opt("events")]:[]).concat(B.opt("eventSources")||[]),function(t,e){var i=g(e);i&&X.push(i)}),B.getEventCache=function(){return J},B.rezoneArrayEventSources=function(){var e,i,n;for(e=0;e<X.length;e++)if(i=X[e].events,t.isArray(i))for(n=0;n<i.length;n++)A(i[n])},B.buildEventFromInput=L,B.expandEvent=F}function Vt(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}var Ut=t.fullCalendar={version:"3.4.0",internalApiVersion:9},Zt=Ut.views={};t.fn.fullCalendar=function(e){var i=Array.prototype.slice.call(arguments,1),n=this;return this.each(function(s,o){var r,a=t(o),l=a.data("fullCalendar");"string"==typeof e?l&&t.isFunction(l[e])&&(r=l[e].apply(l,i),s||(n=r),"destroy"===e&&a.removeData("fullCalendar")):l||(l=new ke(a,e),a.data("fullCalendar",l),l.render())}),n};var Xt=["header","footer","buttonText","buttonIcons","themeButtonIcons"];Ut.intersectRanges=L,Ut.applyAll=lt,Ut.debounce=yt,Ut.isInt=mt,Ut.htmlEscape=ut,Ut.cssToStr=ht,Ut.proxy=vt,Ut.capitaliseFirstLetter=pt,Ut.getOuterRect=h,Ut.getClientRect=f,Ut.getContentRect=p,Ut.getScrollbarWidths=g;var Qt=null;Ut.preventDefault=D,Ut.intersectRects=k,Ut.parseFieldSpecs=M,Ut.compareByFieldSpecs=R,Ut.compareByFieldSpec=I,Ut.flexibleCompare=A,Ut.computeGreatestUnit=j,Ut.divideRangeByDuration=F,Ut.divideDurationByDuration=q,Ut.multiplyDuration=Y,Ut.durationHasTime=tt;var Jt=["sun","mon","tue","wed","thu","fri","sat"],Kt=["year","month","week","day","hour","minute","second","millisecond"];Ut.log=function(){var t=window.console;if(t&&t.log)return t.log.apply(t,arguments)},Ut.warn=function(){var t=window.console;return t&&t.warn?t.warn.apply(t,arguments):Ut.log.apply(Ut,arguments)};var te={}.hasOwnProperty;Ut.createObject=st;var ee=/^\s*\d{4}-\d\d$/,ie=/^\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+)?)?)?)?)?$/,ne=e.fn,se=t.extend({},ne),oe=e.momentProperties;oe.push("_fullCalendar"),oe.push("_ambigTime"),oe.push("_ambigZone"),Ut.moment=function(){return wt(arguments)},Ut.moment.utc=function(){var t=wt(arguments,!0);return t.hasTime()&&t.utc(),t},Ut.moment.parseZone=function(){return wt(arguments,!0,!0)},ne.week=ne.weeks=function(t){var e=this._locale._fullCalendar_weekCalc;return null==t&&"function"==typeof e?e(this):"ISO"===e?se.isoWeek.apply(this,arguments):se.week.apply(this,arguments)},ne.time=function(t){if(!this._fullCalendar)return se.time.apply(this,arguments);if(null==t)return e.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,e.isDuration(t)||e.isMoment(t)||(t=e.duration(t));var i=0;return e.isDuration(t)&&(i=24*Math.floor(t.asDays())),this.hours(i+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},ne.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},ne.hasTime=function(){return!this._ambigTime},ne.stripZone=function(){var t;return this._ambigZone||(t=this._ambigTime,this.utc(!0),this._ambigTime=t||!1,this._ambigZone=!0),this},ne.hasZone=function(){return!this._ambigZone},ne.local=function(t){return se.local.call(this,this._ambigZone||t),this._ambigTime=!1,this._ambigZone=!1,this},ne.utc=function(t){return se.utc.call(this,t),this._ambigTime=!1,this._ambigZone=!1,this},ne.utcOffset=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),se.utcOffset.apply(this,arguments)},ne.format=function(){return this._fullCalendar&&arguments[0]?re(this,arguments[0]):this._ambigTime?le(bt(this),"YYYY-MM-DD"):this._ambigZone?le(bt(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?le(bt(this)):se.format.apply(this,arguments)},ne.toISOString=function(){return this._ambigTime?le(bt(this),"YYYY-MM-DD"):this._ambigZone?le(bt(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?se.toISOString.apply(bt(this),arguments):se.toISOString.apply(this,arguments)},function(){function t(t,e){return u(s(e).fakeFormatString,t)}function e(t,e){return se.format.call(t,e)}function i(t,e,i,o,r){var a;return t=Ut.moment.parseZone(t),e=Ut.moment.parseZone(e),a=t.localeData(),i=a.longDateFormat(i)||i,n(s(i),t,e,o||" - ",r)}function n(t,e,i,n,s){var o,r,a,l=t.sameUnits,d=e.clone().stripZone(),u=i.clone().stripZone(),f=c(t.fakeFormatString,e),p=c(t.fakeFormatString,i),g="",m="",v="",y="",w="";for(o=0;o<l.length&&(!l[o]||d.isSame(u,l[o]));o++)g+=f[o];for(r=l.length-1;r>o&&(!l[r]||d.isSame(u,l[r]))&&(r-1!==o||"."!==f[r]);r--)m=f[r]+m;for(a=o;a<=r;a++)v+=f[a],y+=p[a];return(v||y)&&(w=s?y+n+v:v+n+y),h(g+w+m)}function s(t){return b[t]||(b[t]=o(t))}function o(t){var e=r(t);return{fakeFormatString:l(e),sameUnits:d(e)}}function r(t){for(var e,i=[],n=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=n.exec(t);)e[1]?i.push.apply(i,a(e[1])):e[2]?i.push({maybe:r(e[2])}):e[3]?i.push({token:e[3]}):e[5]&&i.push.apply(i,a(e[5]));return i}function a(t){return". "===t?["."," "]:[t]}function l(t){var e,i,n=[];for(e=0;e<t.length;e++)i=t[e],"string"==typeof i?n.push("["+i+"]"):i.token?i.token in y?n.push(g+"["+i.token+"]"):n.push(i.token):i.maybe&&n.push(m+l(i.maybe)+m);return n.join(p)}function d(t){var e,i,n,s=[];for(e=0;e<t.length;e++)i=t[e],i.token?(n=w[i.token.charAt(0)],s.push(n?n.unit:"second")):i.maybe?s.push.apply(s,d(i.maybe)):s.push(null);return s}function u(t,e){return h(c(t,e).join(""))}function c(t,i){var n,s,o=[],r=e(i,t),a=r.split(p);for(n=0;n<a.length;n++)s=a[n],s.charAt(0)===g?o.push(y[s.substring(1)](i)):o.push(s);return o}function h(t){return t.replace(v,function(t,e){return e.match(/[1-9]/)?e:""})}function f(t){var e,i,n,s,o=r(t);for(e=0;e<o.length;e++)i=o[e],i.token&&(n=w[i.token.charAt(0)])&&(!s||n.value>s.value)&&(s=n);return s?s.unit:null}Ut.formatDate=t,Ut.formatRange=i,Ut.oldMomentFormat=e,Ut.queryMostGranularFormatUnit=f;var p="\x0B",g="",m="",v=new RegExp(m+"([^"+m+"]*)"+m,"g"),y={t:function(t){return e(t,"a").charAt(0)},T:function(t){return e(t,"A").charAt(0)}},w={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}},b={}}();var re=Ut.formatDate,ae=Ut.formatRange,le=Ut.oldMomentFormat;Ut.Class=St,St.extend=function(){var t,e,i=arguments.length;for(t=0;t<i;t++)e=arguments[t],t<i-1&&Tt(this,e);return _t(this,e||{})},St.mixin=function(t){Tt(this,t)};var de=St.extend(fe,pe,{_props:null,_watchers:null,_globalWatchArgs:null,constructor:function(){this._watchers={},this._props={},this.applyGlobalWatchers()},applyGlobalWatchers:function(){var t,e=this._globalWatchArgs||[];for(t=0;t<e.length;t++)this.watch.apply(this,e[t])},has:function(t){return t in this._props},get:function(t){return void 0===t?this._props:this._props[t]},set:function(t,e){var i;"string"==typeof t?(i={},i[t]=void 0===e?null:e):i=t,this.setProps(i)},reset:function(t){var e,i=this._props,n={};for(e in i)n[e]=void 0;for(e in t)n[e]=t[e];this.setProps(n)},unset:function(t){var e,i,n={};for(e="string"==typeof t?[t]:t,i=0;i<e.length;i++)n[e[i]]=void 0;this.setProps(n)},setProps:function(t){var e,i,n={},s=0;for(e in t)"object"!=typeof(i=t[e])&&i===this._props[e]||(n[e]=i,s++);if(s){this.trigger("before:batchChange",n);for(e in n)i=n[e],this.trigger("before:change",e,i),this.trigger("before:change:"+e,i);for(e in n)i=n[e],void 0===i?delete this._props[e]:this._props[e]=i,this.trigger("change:"+e,i),this.trigger("change",e,i);this.trigger("batchChange",n)}},watch:function(t,e,i,n){var s=this;this.unwatch(t),this._watchers[t]=this._watchDeps(e,function(e){var n=i.call(s,e);n&&n.then?(s.unset(t),n.then(function(e){s.set(t,e)})):s.set(t,n)},function(){s.unset(t),n&&n.call(s)})},unwatch:function(t){var e=this._watchers[t];e&&(delete this._watchers[t],e.teardown())},_watchDeps:function(t,e,i){function n(t,e,n){1===++a&&d===l&&(h=!0,i(),h=!1)}function s(t,i,n){void 0===i?(n||void 0===u[t]||d--,delete u[t]):(n||void 0!==u[t]||d++,u[t]=i),--a||d===l&&(h||e(u))}function o(t,e){r.on(t,e),c.push([t,e])}var r=this,a=0,l=t.length,d=0,u={},c=[],h=!1;return t.forEach(function(t){var e=!1;"?"===t.charAt(0)&&(t=t.substring(1),e=!0),o("before:change:"+t,function(i){n(t,i,e)}),o("change:"+t,function(i){s(t,i,e)})}),t.forEach(function(t){var e=!1;"?"===t.charAt(0)&&(t=t.substring(1),e=!0),r.has(t)?(u[t]=r.get(t),d++):e&&d++}),d===l&&e(u),{teardown:function(){for(var t=0;t<c.length;t++)r.off(c[t][0],c[t][1]);c=null,d===l&&i()},flash:function(){d===l&&(i(),e(u))}}},flash:function(t){var e=this._watchers[t];e&&e.flash()}});de.watch=function(){var t=this.prototype;t._globalWatchArgs||(t._globalWatchArgs=[]),t._globalWatchArgs.push(arguments)},Ut.Model=de;var ue={construct:function(e){var i=t.Deferred(),n=i.promise();return"function"==typeof e&&e(function(t){i.resolve(t),xt(n,t)},function(){i.reject(),Ct(n)}),n},resolve:function(e){var i=t.Deferred().resolve(e),n=i.promise();return xt(n,e),n},reject:function(){var e=t.Deferred().reject(),i=e.promise();return Ct(i),i}};Ut.Promise=ue;var ce=St.extend(fe,{q:null,isPaused:!1,isRunning:!1,constructor:function(){this.q=[]},queue:function(){this.q.push.apply(this.q,arguments),this.tryStart()},pause:function(){this.isPaused=!0},resume:function(){this.isPaused=!1,this.tryStart()},tryStart:function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runNext())},canRunNext:function(){return!this.isPaused&&this.q.length},runNext:function(){this.runTask(this.q.shift())},runTask:function(t){this.runTaskFunc(t)},runTaskFunc:function(t){function e(){i.canRunNext()?i.runNext():(i.isRunning=!1,i.trigger("stop"))}var i=this,n=t();n&&n.then?n.then(e):e()}});Ut.TaskQueue=ce;var he=ce.extend({waitsByNamespace:null,waitNamespace:null,waitId:null,constructor:function(t){ce.call(this),this.waitsByNamespace=t||{}},queue:function(t,e,i){var n,s={func:t,namespace:e,type:i};e&&(n=this.waitsByNamespace[e]),this.waitNamespace&&(e===this.waitNamespace&&null!=n?this.delayWait(n):(this.clearWait(),this.tryStart())),this.compoundTask(s)&&(this.waitNamespace||null==n?this.tryStart():this.startWait(e,n))},startWait:function(t,e){this.waitNamespace=t,this.spawnWait(e)},delayWait:function(t){clearTimeout(this.waitId),this.spawnWait(t)},spawnWait:function(t){var e=this;this.waitId=setTimeout(function(){e.waitNamespace=null,e.tryStart()},t)},clearWait:function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},canRunNext:function(){if(!ce.prototype.canRunNext.apply(this,arguments))return!1;if(this.waitNamespace){for(var t=this.q,e=0;e<t.length;e++)if(t[e].namespace!==this.waitNamespace)return!0;return!1}return!0},runTask:function(t){this.runTaskFunc(t.func)},compoundTask:function(t){var e,i,n=this.q,s=!0;if(t.namespace&&("destroy"===t.type||"init"===t.type)){for(e=n.length-1;e>=0;e--)i=n[e],i.namespace!==t.namespace||"add"!==i.type&&"remove"!==i.type||n.splice(e,1);"destroy"===t.type?n.length&&(i=n[n.length-1],i.namespace===t.namespace&&("init"===i.type?(s=!1,n.pop()):"destroy"===i.type&&(s=!1))):"init"===t.type&&n.length&&(i=n[n.length-1],i.namespace===t.namespace&&"init"===i.type&&n.pop())}return s&&n.push(t),s}});Ut.RenderQueue=he;var fe=Ut.EmitterMixin={on:function(e,i){return t(this).on(e,this._prepareIntercept(i)),this},one:function(e,i){return t(this).one(e,this._prepareIntercept(i)),this},_prepareIntercept:function(e){var i=function(t,i){return e.apply(i.context||this,i.args||[])};return e.guid||(e.guid=t.guid++),i.guid=e.guid,i},off:function(e,i){return t(this).off(e,i),this},trigger:function(e){var i=Array.prototype.slice.call(arguments,1);return t(this).triggerHandler(e,{args:i}),this},triggerWith:function(e,i,n){return t(this).triggerHandler(e,{context:i,args:n}),this}},pe=Ut.ListenerMixin=function(){var e=0;return{listenerId:null,listenTo:function(e,i,n){if("object"==typeof i)for(var s in i)i.hasOwnProperty(s)&&this.listenTo(e,s,i[s]);else"string"==typeof i&&e.on(i+"."+this.getListenerNamespace(),t.proxy(n,this))},stopListeningTo:function(t,e){t.off((e||"")+"."+this.getListenerNamespace())},getListenerNamespace:function(){return null==this.listenerId&&(this.listenerId=e++),"_listener"+this.listenerId}}}(),ge=St.extend(pe,{isHidden:!0,options:null,el:null,margin:10,constructor:function(t){this.options=t||{}},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 e=this,i=this.options;this.el=t('<div class="fc-popover"/>').addClass(i.className||"").css({top:0,left:0}).append(i.content).appendTo(i.parentEl),this.el.on("click",".fc-close",function(){e.hide()}),i.autoHide&&this.listenTo(t(document),"mousedown",this.documentMousedown)},documentMousedown:function(e){this.el&&!t(e.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(t(document),"mousedown")},position:function(){var e,i,n,s,o,r=this.options,a=this.el.offsetParent().offset(),l=this.el.outerWidth(),d=this.el.outerHeight(),u=t(window),h=c(this.el);s=r.top||0,o=void 0!==r.left?r.left:void 0!==r.right?r.right-l:0,h.is(window)||h.is(document)?(h=u,e=0,i=0):(n=h.offset(),e=n.top,i=n.left),e+=u.scrollTop(),i+=u.scrollLeft(),!1!==r.viewportConstrain&&(s=Math.min(s,e+h.outerHeight()-d-this.margin),s=Math.max(s,e+this.margin),o=Math.min(o,i+h.outerWidth()-l-this.margin),o=Math.max(o,i+this.margin)),this.el.css({top:s-a.top,left:o-a.left})},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))}}),me=Ut.CoordCache=St.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(e){this.els=t(e.els),this.isHorizontal=e.isHorizontal,this.isVertical=e.isVertical,this.forcedOffsetParentEl=e.offsetParent?t(e.offsetParent):null},build:function(){var t=this.forcedOffsetParentEl;!t&&this.els.length>0&&(t=this.els.eq(0).offsetParent()),this.origin=t?t.offset():null,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()},buildElHorizontals:function(){var e=[],i=[];this.els.each(function(n,s){var o=t(s),r=o.offset().left,a=o.outerWidth();e.push(r),i.push(r+a)}),this.lefts=e,this.rights=i},buildElVerticals:function(){var e=[],i=[];this.els.each(function(n,s){var o=t(s),r=o.offset().top,a=o.outerHeight();e.push(r),i.push(r+a)}),this.tops=e,this.bottoms=i},getHorizontalIndex:function(t){this.ensureBuilt();var e,i=this.lefts,n=this.rights,s=i.length;for(e=0;e<s;e++)if(t>=i[e]&&t<n[e])return e},getVerticalIndex:function(t){this.ensureBuilt();var e,i=this.tops,n=this.bottoms,s=i.length;for(e=0;e<s;e++)if(t>=i[e]&&t<n[e])return e},getLeftOffset:function(t){return this.ensureBuilt(),this.lefts[t]},getLeftPosition:function(t){return this.ensureBuilt(),this.lefts[t]-this.origin.left},getRightOffset:function(t){return this.ensureBuilt(),this.rights[t]},getRightPosition:function(t){return this.ensureBuilt(),this.rights[t]-this.origin.left},getWidth:function(t){return this.ensureBuilt(),this.rights[t]-this.lefts[t]},getTopOffset:function(t){return this.ensureBuilt(),this.tops[t]},getTopPosition:function(t){return this.ensureBuilt(),this.tops[t]-this.origin.top},getBottomOffset:function(t){return this.ensureBuilt(),this.bottoms[t]},getBottomPosition:function(t){return this.ensureBuilt(),this.bottoms[t]-this.origin.top},getHeight:function(t){return this.ensureBuilt(),this.bottoms[t]-this.tops[t]},queryBoundingRect:function(){var t;return this.els.length>0&&(t=c(this.els.eq(0)),!t.is(document))?f(t):null},isPointInBounds:function(t,e){return this.isLeftInBounds(t)&&this.isTopInBounds(e)},isLeftInBounds:function(t){return!this.boundingRect||t>=this.boundingRect.left&&t<this.boundingRect.right},isTopInBounds:function(t){return!this.boundingRect||t>=this.boundingRect.top&&t<this.boundingRect.bottom}}),ve=Ut.DragListener=St.extend(pe,{options:null,subjectEl:null,originX:null,originY:null,scrollEl:null,isInteracting:!1,isDistanceSurpassed:!1,isDelayEnded:!1,isDragging:!1,isTouch:!1,isGeneric:!1,delay:null,delayTimeoutId:null,minDistance:null,shouldCancelTouchScroll:!0,scrollAlwaysKills:!1,constructor:function(t){this.options=t||{}},startInteraction:function(e,i){if("mousedown"===e.type){if(we.get().shouldIgnoreMouse())return;if(!b(e))return;e.preventDefault()}this.isInteracting||(i=i||{},this.delay=dt(i.delay,this.options.delay,0),this.minDistance=dt(i.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,x(t("body")),this.isInteracting=!0,this.isTouch=T(e),this.isGeneric="dragstart"===e.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=S(e),this.originY=_(e),this.scrollEl=c(t(e.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(e),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e))},handleInteractionStart:function(t){this.trigger("interactionStart",t)},endInteraction:function(e,i){this.isInteracting&&(this.endDrag(e),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(e,i),C(t("body")))},handleInteractionEnd:function(t,e){this.trigger("interactionEnd",t,e||!1)},bindHandlers:function(){var e=we.get();this.isGeneric?this.listenTo(t(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(e,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(e,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(e,{selectstart:D,contextmenu:D})},unbindHandlers:function(){this.stopListeningTo(we.get()),this.stopListeningTo(t(document))},startDrag:function(t,e){this.startInteraction(t,e),this.isDragging||(this.isDragging=!0,this.handleDragStart(t))},handleDragStart:function(t){this.trigger("dragStart",t)},handleMove:function(t){var e=S(t)-this.originX,i=_(t)-this.originY,n=this.minDistance;this.isDistanceSurpassed||e*e+i*i>=n*n&&this.handleDistanceSurpassed(t),this.isDragging&&this.handleDrag(e,i,t)},handleDrag:function(t,e,i){this.trigger("drag",t,e,i),this.updateAutoScroll(i)},endDrag:function(t){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(t))},handleDragEnd:function(t){this.trigger("dragEnd",t)},startDelay:function(t){var e=this;this.delay?this.delayTimeoutId=setTimeout(function(){e.handleDelayEnd(t)},this.delay):this.handleDelayEnd(t)},handleDelayEnd:function(t){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(t)},handleDistanceSurpassed:function(t){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(t)},handleTouchMove:function(t){this.isDragging&&this.shouldCancelTouchScroll&&t.preventDefault(),this.handleMove(t)},handleMouseMove:function(t){this.handleMove(t)},handleTouchScroll:function(t){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(t,!0)},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1)),this["_"+t]&&this["_"+t].apply(this,Array.prototype.slice.call(arguments,1))}});ve.mixin({isAutoScroll:!1,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,initAutoScroll:function(){var t=this.scrollEl;this.isAutoScroll=this.options.scroll&&t&&!t.is(window)&&!t.is(document),this.isAutoScroll&&this.listenTo(t,"scroll",yt(this.handleDebouncedScroll,100))},destroyAutoScroll:function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},computeScrollBounds:function(){this.isAutoScroll&&(this.scrollBounds=h(this.scrollEl))},updateAutoScroll:function(t){var e,i,n,s,o=this.scrollSensitivity,r=this.scrollBounds,a=0,l=0;r&&(e=(o-(_(t)-r.top))/o,i=(o-(r.bottom-_(t)))/o,n=(o-(S(t)-r.left))/o,s=(o-(r.right-S(t)))/o,e>=0&&e<=1?a=e*this.scrollSpeed*-1:i>=0&&i<=1&&(a=i*this.scrollSpeed),n>=0&&n<=1?l=n*this.scrollSpeed*-1:s>=0&&s<=1&&(l=s*this.scrollSpeed)),this.setScrollVel(a,l)},setScrollVel:function(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(vt(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},endAutoScroll:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},handleDebouncedScroll:function(){this.scrollIntervalId||this.handleScrollEnd()},handleScrollEnd:function(){}});var ye=ve.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(t,e){ve.call(this,e),this.component=t},handleInteractionStart:function(t){var e,i,n,s=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),t?(i={left:S(t),top:_(t)},n=i,s&&(e=h(s),n=E(n,e)),this.origHit=this.queryHit(n.left,n.top),s&&this.options.subjectCenter&&(this.origHit&&(e=k(this.origHit,e)||e),n=$(e)),this.coordAdjust=H(n,i)):(this.origHit=null,this.coordAdjust=null),ve.prototype.handleInteractionStart.apply(this,arguments)},handleDragStart:function(t){var e;ve.prototype.handleDragStart.apply(this,arguments),(e=this.queryHit(S(t),_(t)))&&this.handleHitOver(e)},handleDrag:function(t,e,i){var n;ve.prototype.handleDrag.apply(this,arguments),n=this.queryHit(S(i),_(i)),Dt(n,this.hit)||(this.hit&&this.handleHitOut(),n&&this.handleHitOver(n))},handleDragEnd:function(){this.handleHitDone(),ve.prototype.handleDragEnd.apply(this,arguments)},handleHitOver:function(t){var e=Dt(t,this.origHit);this.hit=t,this.trigger("hitOver",this.hit,e,this.origHit)},handleHitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},handleHitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},handleInteractionEnd:function(){ve.prototype.handleInteractionEnd.apply(this,arguments),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},handleScrollEnd:function(){ve.prototype.handleScrollEnd.apply(this,arguments),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},queryHit:function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.component.queryHit(t,e)}});Ut.touchMouseIgnoreWait=500;var we=St.extend(pe,fe,{isTouching:!1,mouseIgnoreDepth:0,handleScrollProxy:null,bind:function(){var e=this;this.listenTo(t(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(i){e.handleTouchMove(t.Event(i))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(i){e.handleScroll(t.Event(i))},!0)},unbind:function(){this.stopListeningTo(t(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},handleTouchStart:function(t){this.stopTouch(t,!0),this.isTouching=!0,this.trigger("touchstart",t)},handleTouchMove:function(t){this.isTouching&&this.trigger("touchmove",t)},handleTouchCancel:function(t){this.isTouching&&(this.trigger("touchcancel",t),this.stopTouch(t))},handleTouchEnd:function(t){this.stopTouch(t)},handleMouseDown:function(t){this.shouldIgnoreMouse()||this.trigger("mousedown",t)},handleMouseMove:function(t){this.shouldIgnoreMouse()||this.trigger("mousemove",t)},handleMouseUp:function(t){this.shouldIgnoreMouse()||this.trigger("mouseup",t)},handleClick:function(t){this.shouldIgnoreMouse()||this.trigger("click",t)},handleSelectStart:function(t){this.trigger("selectstart",t)},handleContextMenu:function(t){this.trigger("contextmenu",t)},handleScroll:function(t){this.trigger("scroll",t)},stopTouch:function(t,e){this.isTouching&&(this.isTouching=!1,this.trigger("touchend",t),e||this.startTouchMouseIgnore())},startTouchMouseIgnore:function(){var t=this,e=Ut.touchMouseIgnoreWait;e&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},e))},shouldIgnoreMouse:function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)}});!function(){var t=null,e=0;we.get=function(){return t||(t=new we,t.bind()),t},we.needed=function(){we.get(),e++},we.unneeded=function(){--e||(t.unbind(),t=null)}}();var be=St.extend(pe,{options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,y0:null,x0:null,topDelta:null,leftDelta:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(e,i){this.options=i=i||{},this.sourceEl=e,this.parentEl=i.parentEl?t(i.parentEl):e.parent()},start:function(e){this.isFollowing||(this.isFollowing=!0,this.y0=_(e),this.x0=S(e),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),T(e)?this.listenTo(t(document),"touchmove",this.handleMove):this.listenTo(t(document),"mousemove",this.handleMove));
},stop:function(e,i){function n(){s.isAnimating=!1,s.removeElement(),s.top0=s.left0=null,i&&i()}var s=this,o=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(t(document)),e&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:n})):n())},getEl:function(){var t=this.el;return t||(t=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").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}),t.addClass("fc-unselectable"),t.appendTo(this.parentEl)),t},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var t,e;this.getEl(),null===this.top0&&(t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},handleMove:function(t){this.topDelta=_(t)-this.y0,this.leftDelta=S(t)-this.x0,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())}}),Se=Ut.Grid=St.extend(pe,{hasDayInteractions:!0,view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,dayClickListener:null,daySelectListener:null,segDragListener:null,segResizeListener:null,externalDragListener:null,constructor:function(t){this.view=t,this.isRTL=t.opt("isRTL"),this.elsByFill={},this.dayClickListener=this.buildDayClickListener(),this.daySelectListener=this.buildDaySelectListener()},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(t){this.start=t.start.clone(),this.end=t.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var t,e,i=this.view;this.eventTimeFormat=i.opt("eventTimeFormat")||i.opt("timeFormat")||this.computeEventTimeFormat(),t=i.opt("displayEventTime"),null==t&&(t=this.computeDisplayEventTime()),e=i.opt("displayEventEnd"),null==e&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},spanToSegs:function(t){},diffDates:function(t,e){return this.largeUnit?N(t,e,this.largeUnit):O(t,e)},hitsNeededDepth:0,hitsNeeded:function(){this.hitsNeededDepth++||this.prepareHits()},hitsNotNeeded:function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits()},prepareHits:function(){},releaseHits:function(){},queryHit:function(t,e){},getSafeHitSpan:function(t){var e=this.getHitSpan(t);return X(e,this.view.activeRange)?e:null},getHitSpan:function(t){},getHitEl:function(t){},setElement:function(t){this.el=t,this.hasDayInteractions&&(x(t),this.bindDayHandler("touchstart",this.dayTouchStart),this.bindDayHandler("mousedown",this.dayMousedown)),this.bindSegHandlers(),this.bindGlobalHandlers()},bindDayHandler:function(e,i){var n=this;this.el.on(e,function(e){if(!t(e.target).is(n.segSelector+","+n.segSelector+" *,.fc-more,a[data-goto]"))return i.call(n,e)})},removeElement:function(){this.unbindGlobalHandlers(),this.clearDragListeners(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){this.listenTo(t(document),{dragstart:this.externalDragStart,sortstart:this.externalDragStart})},unbindGlobalHandlers:function(){this.stopListeningTo(t(document))},dayMousedown:function(t){var e=this.view;we.get().shouldIgnoreMouse()||(this.dayClickListener.startInteraction(t),e.opt("selectable")&&this.daySelectListener.startInteraction(t,{distance:e.opt("selectMinDistance")}))},dayTouchStart:function(t){var e,i=this.view;i.isSelected||i.selectedEvent||(e=i.opt("selectLongPressDelay"),null==e&&(e=i.opt("longPressDelay")),this.dayClickListener.startInteraction(t),i.opt("selectable")&&this.daySelectListener.startInteraction(t,{delay:e}))},buildDayClickListener:function(){var t,e=this,i=this.view,n=new ye(this,{scroll:i.opt("dragScroll"),interactionStart:function(){t=n.origHit},hitOver:function(e,i,n){i||(t=null)},hitOut:function(){t=null},interactionEnd:function(n,s){var o;!s&&t&&(o=e.getSafeHitSpan(t))&&i.triggerDayClick(o,e.getHitEl(t),n)}});return n.shouldCancelTouchScroll=!1,n.scrollAlwaysKills=!0,n},buildDaySelectListener:function(){var t,e=this,i=this.view;return new ye(this,{scroll:i.opt("dragScroll"),interactionStart:function(){t=null},dragStart:function(){i.unselect()},hitOver:function(i,n,s){var r,a;s&&(r=e.getSafeHitSpan(s),a=e.getSafeHitSpan(i),t=r&&a?e.computeSelection(r,a):null,t?e.renderSelection(t):!1===t&&o())},hitOut:function(){t=null,e.unrenderSelection()},hitDone:function(){r()},interactionEnd:function(e,n){!n&&t&&i.reportSelection(t,e)}})},clearDragListeners:function(){this.dayClickListener.endInteraction(),this.daySelectListener.endInteraction(),this.segDragListener&&this.segDragListener.endInteraction(),this.segResizeListener&&this.segResizeListener.endInteraction(),this.externalDragListener&&this.externalDragListener.endInteraction()},renderEventLocationHelper:function(t,e){var i=this.fabricateHelperEvent(t,e);return this.renderHelper(i,e)},fabricateHelperEvent:function(t,e){var i=e?st(e.event):{};return i.start=t.start.clone(),i.end=t.end?t.end.clone():null,i.allDay=null,this.view.calendar.normalizeEventDates(i),i.className=(i.className||[]).concat("fc-helper"),e||(i.editable=!1),i},renderHelper:function(t,e){},unrenderHelper:function(){},renderSelection:function(t){this.renderHighlight(t)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(t,e){var i=this.computeSelectionSpan(t,e);return!(i&&!this.view.calendar.isSelectionSpanAllowed(i))&&i},computeSelectionSpan:function(t,e){var i=[t.start,t.end,e.start,e.end];return i.sort(gt),{start:i[0].clone(),end:i[3].clone()}},renderHighlight:function(t){this.renderFill("highlight",this.spanToSegs(t))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(t){},unrenderNowIndicator:function(){},renderFill:function(t,e){},unrenderFill:function(t){var e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},renderFillSegEls:function(e,i){var n,s=this,o=this[e+"SegEl"],r="",a=[];if(i.length){for(n=0;n<i.length;n++)r+=this.fillSegHtml(e,i[n]);t(r).each(function(e,n){var r=i[e],l=t(n);o&&(l=o.call(s,r,l)),l&&(l=t(l),l.is(s.fillSegTag)&&(r.el=l,a.push(r)))})}return a},fillSegTag:"div",fillSegHtml:function(t,e){var i=this[t+"SegClasses"],n=this[t+"SegCss"],s=i?i.call(this,e):[],o=ht(n?n.call(this,e):{});return"<"+this.fillSegTag+(s.length?' class="'+s.join(" ")+'"':"")+(o?' style="'+o+'"':"")+" />"},getDayClasses:function(t,e){var i,n=this.view,s=[];return U(t,n.activeRange)?(s.push("fc-"+Jt[t.day()]),1==n.currentRangeAs("months")&&t.month()!=n.currentRange.start.month()&&s.push("fc-other-month"),i=n.calendar.getNow(),t.isSame(i,"day")?(s.push("fc-today"),!0!==e&&s.push(n.highlightStateClass)):t<i?s.push("fc-past"):s.push("fc-future")):s.push("fc-disabled-day"),s}});Se.mixin({segSelector:".fc-event-container > *",mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(t){var e,i=[],n=[];for(e=0;e<t.length;e++)($t(t[e])?i:n).push(t[e]);this.segs=[].concat(this.renderBgEvents(i),this.renderFgEvents(n))},renderBgEvents:function(t){var e=this.eventsToSegs(t);return this.renderBgSegs(e)||e},renderFgEvents:function(t){var e=this.eventsToSegs(t);return this.renderFgSegs(e)||e},unrenderEvents:function(){this.handleSegMouseout(),this.clearDragListeners(),this.unrenderFgSegs(),this.unrenderBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(t){},unrenderFgSegs:function(){},renderFgSegEls:function(e,i){var n,s=this.view,o="",r=[];if(e.length){for(n=0;n<e.length;n++)o+=this.fgSegHtml(e[n],i);t(o).each(function(i,n){var o=e[i],a=s.resolveEventEl(o.event,t(n));a&&(a.data("fc-seg",o),o.el=a,r.push(o))})}return r},fgSegHtml:function(t,e){},renderBgSegs:function(t){return this.renderFill("bgEvent",t)},unrenderBgSegs:function(){this.unrenderFill("bgEvent")},bgEventSegEl:function(t,e){return this.view.resolveEventEl(t.event,e)},bgEventSegClasses:function(t){var e=t.event,i=e.source||{};return["fc-bgevent"].concat(e.className,i.className||[])},bgEventSegCss:function(t){return{"background-color":this.getSegSkinCss(t)["background-color"]}},businessHoursSegClasses:function(t){return["fc-nonbusiness","fc-bgevent"]},buildBusinessHourSegs:function(t,e){return this.eventsToSegs(this.buildBusinessHourEvents(t,e))},buildBusinessHourEvents:function(e,i){var n,s=this.view.calendar;return null==i&&(i=s.opt("businessHours")),n=s.computeBusinessHourEvents(e,i),!n.length&&i&&(n=[t.extend({},Ae,{start:this.view.activeRange.end,end:this.view.activeRange.end,dow:null})]),n},bindSegHandlers:function(){this.bindSegHandlersToEl(this.el)},bindSegHandlersToEl:function(t){this.bindSegHandlerToEl(t,"touchstart",this.handleSegTouchStart),this.bindSegHandlerToEl(t,"mouseenter",this.handleSegMouseover),this.bindSegHandlerToEl(t,"mouseleave",this.handleSegMouseout),this.bindSegHandlerToEl(t,"mousedown",this.handleSegMousedown),this.bindSegHandlerToEl(t,"click",this.handleSegClick)},bindSegHandlerToEl:function(e,i,n){var s=this;e.on(i,this.segSelector,function(e){var i=t(this).data("fc-seg");if(i&&!s.isDraggingSeg&&!s.isResizingSeg)return n.call(s,i,e)})},handleSegClick:function(t,e){!1===this.view.publiclyTrigger("eventClick",t.el[0],t.event,e)&&e.preventDefault()},handleSegMouseover:function(t,e){we.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=t,this.view.isEventResizable(t.event)&&t.el.addClass("fc-allow-mouse-resize"),this.view.publiclyTrigger("eventMouseover",t.el[0],t.event,e))},handleSegMouseout:function(t,e){e=e||{},this.mousedOverSeg&&(t=t||this.mousedOverSeg,this.mousedOverSeg=null,this.view.isEventResizable(t.event)&&t.el.removeClass("fc-allow-mouse-resize"),this.view.publiclyTrigger("eventMouseout",t.el[0],t.event,e))},handleSegMousedown:function(t,e){!this.startSegResize(t,e,{distance:5})&&this.view.isEventDraggable(t.event)&&this.buildSegDragListener(t).startInteraction(e,{distance:5})},handleSegTouchStart:function(t,e){var i,n,s=this.view,o=t.event,r=s.isEventSelected(o),a=s.isEventDraggable(o),l=s.isEventResizable(o),d=!1;r&&l&&(d=this.startSegResize(t,e)),d||!a&&!l||(n=s.opt("eventLongPressDelay"),null==n&&(n=s.opt("longPressDelay")),i=a?this.buildSegDragListener(t):this.buildSegSelectListener(t),i.startInteraction(e,{delay:r?0:n}))},startSegResize:function(e,i,n){return!!t(i.target).is(".fc-resizer")&&(this.buildSegResizeListener(e,t(i.target).is(".fc-start-resizer")).startInteraction(i,n),!0)},buildSegDragListener:function(t){var e,i,n,s=this,a=this.view,l=t.el,d=t.event;if(this.segDragListener)return this.segDragListener;var u=this.segDragListener=new ye(a,{scroll:a.opt("dragScroll"),subjectEl:l,subjectCenter:!0,interactionStart:function(n){t.component=s,e=!1,i=new be(t.el,{additionalClass:"fc-dragging",parentEl:a.el,opacity:u.isTouch?null:a.opt("dragOpacity"),revertDuration:a.opt("dragRevertDuration"),zIndex:2}),i.hide(),i.start(n)},dragStart:function(i){u.isTouch&&!a.isEventSelected(d)&&a.selectEvent(d),e=!0,s.handleSegMouseout(t,i),s.segDragStart(t,i),a.hideEvent(d)},hitOver:function(e,r,l){var c,h,f,p=!0;t.hit&&(l=t.hit),c=l.component.getSafeHitSpan(l),h=e.component.getSafeHitSpan(e),c&&h?(n=s.computeEventDrop(c,h,d),p=n&&s.isEventLocationAllowed(n,d)):p=!1,p||(n=null,o()),n&&(f=a.renderDrag(n,t))?(f.addClass("fc-dragging"),u.isTouch||s.applyDragOpacity(f),i.hide()):i.show(),r&&(n=null)},hitOut:function(){a.unrenderDrag(),i.show(),n=null},hitDone:function(){r()},interactionEnd:function(o){delete t.component,i.stop(!n,function(){e&&(a.unrenderDrag(),s.segDragStop(t,o)),n?a.reportSegDrop(t,n,s.largeUnit,l,o):a.showEvent(d)}),s.segDragListener=null}});return u},buildSegSelectListener:function(t){var e=this,i=this.view,n=t.event;if(this.segDragListener)return this.segDragListener;var s=this.segDragListener=new ve({dragStart:function(t){s.isTouch&&!i.isEventSelected(n)&&i.selectEvent(n)},interactionEnd:function(t){e.segDragListener=null}});return s},segDragStart:function(t,e){this.isDraggingSeg=!0,this.view.publiclyTrigger("eventDragStart",t.el[0],t.event,e,{})},segDragStop:function(t,e){this.isDraggingSeg=!1,this.view.publiclyTrigger("eventDragStop",t.el[0],t.event,e,{})},computeEventDrop:function(t,e,i){var n,s,o=this.view.calendar,r=t.start,a=e.start;return r.hasTime()===a.hasTime()?(n=this.diffDates(a,r),i.allDay&&tt(n)?(s={start:i.start.clone(),end:o.getEventEnd(i),allDay:!1},o.normalizeEventTimes(s)):s=Et(i),s.start.add(n),s.end&&s.end.add(n)):s={start:a.clone(),end:null,allDay:!a.hasTime()},s},applyDragOpacity:function(t){var e=this.view.opt("dragOpacity");null!=e&&t.css("opacity",e)},externalDragStart:function(e,i){var n,s,o=this.view;o.opt("droppable")&&(n=t((i?i.item:null)||e.target),s=o.opt("dropAccept"),(t.isFunction(s)?s.call(n[0],n):n.is(s))&&(this.isDraggingExternal||this.listenToExternalDrag(n,e,i)))},listenToExternalDrag:function(t,e,i){var n,s=this,a=this.view,l=At(t);(s.externalDragListener=new ye(this,{interactionStart:function(){s.isDraggingExternal=!0},hitOver:function(t){var e=!0,i=t.component.getSafeHitSpan(t);i?(n=s.computeExternalDrop(i,l),e=n&&s.isExternalLocationAllowed(n,l.eventProps)):e=!1,e||(n=null,o()),n&&s.renderDrag(n)},hitOut:function(){n=null},hitDone:function(){r(),s.unrenderDrag()},interactionEnd:function(e){n&&a.reportExternalDrop(l,n,t,e,i),s.isDraggingExternal=!1,s.externalDragListener=null}})).startDrag(e)},computeExternalDrop:function(t,e){var i=this.view.calendar,n={start:i.applyTimezone(t.start),end:null};return e.startTime&&!n.start.hasTime()&&n.start.time(e.startTime),e.duration&&(n.end=n.start.clone().add(e.duration)),n},renderDrag:function(t,e){},unrenderDrag:function(){},buildSegResizeListener:function(t,e){var i,n,s=this,a=this.view,l=a.calendar,d=t.el,u=t.event,c=l.getEventEnd(u);return this.segResizeListener=new ye(this,{scroll:a.opt("dragScroll"),subjectEl:d,interactionStart:function(){i=!1},dragStart:function(e){i=!0,s.handleSegMouseout(t,e),s.segResizeStart(t,e)},hitOver:function(i,r,l){var d=!0,h=s.getSafeHitSpan(l),f=s.getSafeHitSpan(i);h&&f?(n=e?s.computeEventStartResize(h,f,u):s.computeEventEndResize(h,f,u),d=n&&s.isEventLocationAllowed(n,u)):d=!1,d?n.start.isSame(u.start.clone().stripZone())&&n.end.isSame(c.clone().stripZone())&&(n=null):(n=null,o()),n&&(a.hideEvent(u),s.renderEventResize(n,t))},hitOut:function(){n=null,a.showEvent(u)},hitDone:function(){s.unrenderEventResize(),r()},interactionEnd:function(e){i&&s.segResizeStop(t,e),n?a.reportSegResize(t,n,s.largeUnit,d,e):a.showEvent(u),s.segResizeListener=null}})},segResizeStart:function(t,e){this.isResizingSeg=!0,this.view.publiclyTrigger("eventResizeStart",t.el[0],t.event,e,{})},segResizeStop:function(t,e){this.isResizingSeg=!1,this.view.publiclyTrigger("eventResizeStop",t.el[0],t.event,e,{})},computeEventStartResize:function(t,e,i){return this.computeEventResize("start",t,e,i)},computeEventEndResize:function(t,e,i){return this.computeEventResize("end",t,e,i)},computeEventResize:function(t,e,i,n){var s,o,r=this.view.calendar,a=this.diffDates(i[t],e[t]);return s={start:n.start.clone(),end:r.getEventEnd(n),allDay:n.allDay},s.allDay&&tt(a)&&(s.allDay=!1,r.normalizeEventTimes(s)),s[t].add(a),s.start.isBefore(s.end)||(o=this.minResizeDuration||(n.allDay?r.defaultAllDayEventDuration:r.defaultTimedEventDuration),"start"==t?s.start=s.end.clone().subtract(o):s.end=s.start.clone().add(o)),s},renderEventResize:function(t,e){},unrenderEventResize:function(){},getEventTimeText:function(t,e,i){return null==e&&(e=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&t.start.hasTime()?i&&t.end?this.view.formatRange(t,e):t.start.format(e):""},getSegClasses:function(t,e,i){var n=this.view,s=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(this.getSegCustomClasses(t));return e&&s.push("fc-draggable"),i&&s.push("fc-resizable"),n.isEventSelected(t.event)&&s.push("fc-selected"),s},getSegCustomClasses:function(t){var e=t.event;return[].concat(e.className,e.source?e.source.className:[])},getSegSkinCss:function(t){return{"background-color":this.getSegBackgroundColor(t),"border-color":this.getSegBorderColor(t),color:this.getSegTextColor(t)}},getSegBackgroundColor:function(t){return t.event.backgroundColor||t.event.color||this.getSegDefaultBackgroundColor(t)},getSegDefaultBackgroundColor:function(t){var e=t.event.source||{};return e.backgroundColor||e.color||this.view.opt("eventBackgroundColor")||this.view.opt("eventColor")},getSegBorderColor:function(t){return t.event.borderColor||t.event.color||this.getSegDefaultBorderColor(t)},getSegDefaultBorderColor:function(t){var e=t.event.source||{};return e.borderColor||e.color||this.view.opt("eventBorderColor")||this.view.opt("eventColor")},getSegTextColor:function(t){return t.event.textColor||this.getSegDefaultTextColor(t)},getSegDefaultTextColor:function(t){return(t.event.source||{}).textColor||this.view.opt("eventTextColor")},isEventLocationAllowed:function(t,e){if(this.isEventLocationInRange(t)){var i,n=this.view.calendar,s=this.eventToSpans(t);if(s.length){for(i=0;i<s.length;i++)if(!n.isEventSpanAllowed(s[i],e))return!1;return!0}}return!1},isExternalLocationAllowed:function(t,e){if(this.isEventLocationInRange(t)){var i,n=this.view.calendar,s=this.eventToSpans(t);if(s.length){for(i=0;i<s.length;i++)if(!n.isExternalSpanAllowed(s[i],t,e))return!1;return!0}}return!1},isEventLocationInRange:function(t){return X(this.eventToRawRange(t),this.view.validRange)},eventToSegs:function(t){return this.eventsToSegs([t])},eventToSpans:function(t){var e=this.eventToRange(t);return e?this.eventRangeToSpans(e,t):[]},eventsToSegs:function(e,i){var n=this,s=Rt(e),o=[];return t.each(s,function(t,e){var s,r,a=[],l=[];for(r=0;r<e.length;r++)(s=n.eventToRange(e[r]))&&(l.push(s),a.push(e[r]));if(Ht(e[0]))for(l=n.invertRanges(l),r=0;r<l.length;r++)o.push.apply(o,n.eventRangeToSegs(l[r],e[0],i));else for(r=0;r<l.length;r++)o.push.apply(o,n.eventRangeToSegs(l[r],a[r],i))}),o},eventToRange:function(t){return this.refineRawEventRange(this.eventToRawRange(t))},refineRawEventRange:function(t){var e=this.view,i=e.calendar,n=L(t,e.activeRange);if(n)return i.localizeMoment(n.start),i.localizeMoment(n.end),n},eventToRawRange:function(t){var e=this.view.calendar;return{start:t.start.clone().stripZone(),end:(t.end?t.end.clone():e.getDefaultEventEnd(null!=t.allDay?t.allDay:!t.start.hasTime(),t.start)).stripZone()}},eventRangeToSegs:function(t,e,i){var n,s=this.eventRangeToSpans(t,e),o=[];for(n=0;n<s.length;n++)o.push.apply(o,this.eventSpanToSegs(s[n],e,i));return o},eventRangeToSpans:function(e,i){return[t.extend({},e)]},eventSpanToSegs:function(t,e,i){var n,s,o=i?i(t):this.spanToSegs(t);for(n=0;n<o.length;n++)s=o[n],t.isStart||(s.isStart=!1),t.isEnd||(s.isEnd=!1),s.event=e,s.eventStartMS=+t.start,s.eventDurationMS=t.end-t.start;return o},invertRanges:function(t){var e,i,n=this.view,s=n.activeRange.start.clone(),o=n.activeRange.end.clone(),r=[],a=s;for(t.sort(It),e=0;e<t.length;e++)i=t[e],i.start>a&&r.push({start:a,end:i.start}),i.end>a&&(a=i.end);return a<o&&r.push({start:a,end:o}),r},sortEventSegs:function(t){t.sort(vt(this,"compareEventSegs"))},compareEventSegs:function(t,e){return t.eventStartMS-e.eventStartMS||e.eventDurationMS-t.eventDurationMS||e.event.allDay-t.event.allDay||R(t.event,e.event,this.view.eventOrderSpecs)}}),Ut.pluckEventDateProps=Et,Ut.isBgEvent=$t,Ut.dataAttrPrefix="";var _e=Ut.DayTableMixin={breakOnWeeks:!1,dayDates:null,dayIndices:null,daysPerRow:null,rowCnt:null,colCnt:null,colHeadFormat:null,updateDayTable:function(){for(var t,e,i,n=this.view,s=this.start.clone(),o=-1,r=[],a=[];s.isBefore(this.end);)n.isHiddenDay(s)?r.push(o+.5):(o++,r.push(o),a.push(s.clone())),s.add(1,"days");if(this.breakOnWeeks){for(e=a[0].day(),t=1;t<a.length&&a[t].day()!=e;t++);i=Math.ceil(a.length/t)}else i=1,t=a.length;this.dayDates=a,this.dayIndices=r,this.daysPerRow=t,this.rowCnt=i,this.updateDayTableCols()},updateDayTableCols:function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.view.opt("columnFormat")||this.computeColHeadFormat()},computeColCnt:function(){return this.daysPerRow},getCellDate:function(t,e){return this.dayDates[this.getCellDayIndex(t,e)].clone()},getCellRange:function(t,e){var i=this.getCellDate(t,e);return{start:i,end:i.clone().add(1,"days")}},getCellDayIndex:function(t,e){return t*this.daysPerRow+this.getColDayIndex(e)},getColDayIndex:function(t){return this.isRTL?this.colCnt-1-t:t},getDateDayIndex:function(t){var e=this.dayIndices,i=t.diff(this.start,"days");return i<0?e[0]-1:i>=e.length?e[e.length-1]+1:e[i]},computeColHeadFormat:function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(t){var e,i,n,s,o,r=this.daysPerRow,a=this.view.computeDayRange(t),l=this.getDateDayIndex(a.start),d=this.getDateDayIndex(a.end.clone().subtract(1,"days")),u=[];for(e=0;e<this.rowCnt;e++)i=e*r,n=i+r-1,s=Math.max(l,i),o=Math.min(d,n),s=Math.ceil(s),o=Math.floor(o),s<=o&&u.push({row:e,firstRowDayIndex:s-i,lastRowDayIndex:o-i,isStart:s===l,isEnd:o===d});return u},sliceRangeByDay:function(t){var e,i,n,s,o,r,a=this.daysPerRow,l=this.view.computeDayRange(t),d=this.getDateDayIndex(l.start),u=this.getDateDayIndex(l.end.clone().subtract(1,"days")),c=[];for(e=0;e<this.rowCnt;e++)for(i=e*a,n=i+a-1,s=i;s<=n;s++)o=Math.max(d,s),r=Math.min(u,s),o=Math.ceil(o),r=Math.floor(r),o<=r&&c.push({row:e,firstRowDayIndex:o-i,lastRowDayIndex:r-i,isStart:o===d,isEnd:r===u});return c},renderHeadHtml:function(){return'<div class="fc-row '+this.view.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(){var t,e,i=[];for(t=0;t<this.colCnt;t++)e=this.getCellDate(0,t),i.push(this.renderHeadDateCellHtml(e));return i.join("")},renderHeadDateCellHtml:function(t,e,i){var n=this.view,s=U(t,n.activeRange),o=["fc-day-header",n.widgetHeaderClass],r=ut(t.format(this.colHeadFormat));return 1===this.rowCnt?o=o.concat(this.getDayClasses(t,!0)):o.push("fc-"+Jt[t.day()]),'<th class="'+o.join(" ")+'"'+(1===(s&&this.rowCnt)?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e>1?' colspan="'+e+'"':"")+(i?" "+i:"")+">"+(s?n.buildGotoAnchorHtml({date:t,forceOff:this.rowCnt>1||1===this.colCnt},r):r)+"</th>"},renderBgTrHtml:function(t){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(t))+this.renderBgCellsHtml(t)+(this.isRTL?this.renderBgIntroHtml(t):"")+"</tr>"},renderBgIntroHtml:function(t){return this.renderIntroHtml()},renderBgCellsHtml:function(t){var e,i,n=[];for(e=0;e<this.colCnt;e++)i=this.getCellDate(t,e),n.push(this.renderBgCellHtml(i));return n.join("")},renderBgCellHtml:function(t,e){var i=this.view,n=U(t,i.activeRange),s=this.getDayClasses(t);return s.unshift("fc-day",i.widgetContentClass),'<td class="'+s.join(" ")+'"'+(n?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e?" "+e:"")+"></td>"},renderIntroHtml:function(){},bookendCells:function(t){var e=this.renderIntroHtml();e&&(this.isRTL?t.append(e):t.prepend(e))}},Te=Ut.DayGrid=Se.extend(_e,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(t){var e,i,n=this.view,s=this.rowCnt,o=this.colCnt,r="";for(e=0;e<s;e++)r+=this.renderDayRowHtml(e,t);for(this.el.html(r),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new me({els:this.rowEls,isVertical:!0}),this.colCoordCache=new me({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),e=0;e<s;e++)for(i=0;i<o;i++)n.publiclyTrigger("dayRender",null,this.getCellDate(e,i),this.getCellEl(e,i))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var t=this.buildBusinessHourSegs(!0);this.renderFill("businessHours",t,"bgevent")},unrenderBusinessHours:function(){this.unrenderFill("businessHours")},renderDayRowHtml:function(t,e){var i=this.view,n=["fc-row","fc-week",i.widgetContentClass];return e&&n.push("fc-rigid"),'<div class="'+n.join(" ")+'"><div class="fc-bg"><table>'+this.renderBgTrHtml(t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.renderNumberTrHtml(t)+"</thead>":"")+"</table></div></div>"},renderNumberTrHtml:function(t){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(t))+this.renderNumberCellsHtml(t)+(this.isRTL?this.renderNumberIntroHtml(t):"")+"</tr>"},renderNumberIntroHtml:function(t){return this.renderIntroHtml()},renderNumberCellsHtml:function(t){var e,i,n=[];for(e=0;e<this.colCnt;e++)i=this.getCellDate(t,e),n.push(this.renderNumberCellHtml(i));return n.join("")},renderNumberCellHtml:function(t){var e,i,n=this.view,s="",o=U(t,n.activeRange),r=n.dayNumbersVisible&&o;return r||n.cellWeekNumbersVisible?(e=this.getDayClasses(t),e.unshift("fc-day-top"),n.cellWeekNumbersVisible&&(i="ISO"===t._locale._fullCalendar_weekCalc?1:t._locale.firstDayOfWeek()),s+='<td class="'+e.join(" ")+'"'+(o?' data-date="'+t.format()+'"':"")+">",n.cellWeekNumbersVisible&&t.day()==i&&(s+=n.buildGotoAnchorHtml({date:t,type:"week"},{"class":"fc-week-number"},t.format("w"))),r&&(s+=n.buildGotoAnchorHtml(t,{"class":"fc-day-number"},t.date())),s+="</td>"):"<td/>"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(t){var e,i,n=this.sliceRangeByRow(t);for(e=0;e<n.length;e++)i=n[e],this.isRTL?(i.leftCol=this.daysPerRow-1-i.lastRowDayIndex,i.rightCol=this.daysPerRow-1-i.firstRowDayIndex):(i.leftCol=i.firstRowDayIndex,i.rightCol=i.lastRowDayIndex);return n},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(t,e){if(this.colCoordCache.isLeftInBounds(t)&&this.rowCoordCache.isTopInBounds(e)){var i=this.colCoordCache.getHorizontalIndex(t),n=this.rowCoordCache.getVerticalIndex(e);if(null!=n&&null!=i)return this.getCellHit(n,i)}},getHitSpan:function(t){return this.getCellRange(t.row,t.col)},getHitEl:function(t){return this.getCellEl(t.row,t.col)},getCellHit:function(t,e){return{row:t,col:e,component:this,left:this.colCoordCache.getLeftOffset(e),right:this.colCoordCache.getRightOffset(e),top:this.rowCoordCache.getTopOffset(t),bottom:this.rowCoordCache.getBottomOffset(t)}},getCellEl:function(t,e){return this.cellEls.eq(t*this.colCnt+e)},renderDrag:function(t,e){var i,n=this.eventToSpans(t);for(i=0;i<n.length;i++)this.renderHighlight(n[i]);if(e&&e.component!==this)return this.renderEventLocationHelper(t,e)},unrenderDrag:function(){this.unrenderHighlight(),this.unrenderHelper()},renderEventResize:function(t,e){var i,n=this.eventToSpans(t);for(i=0;i<n.length;i++)this.renderHighlight(n[i]);return this.renderEventLocationHelper(t,e)},unrenderEventResize:function(){this.unrenderHighlight(),this.unrenderHelper()},renderHelper:function(e,i){var n,s=[],o=this.eventToSegs(e);return o=this.renderFgSegEls(o),n=this.renderSegRows(o),this.rowEls.each(function(e,o){var r,a=t(o),l=t('<div class="fc-helper-skeleton"><table/></div>');r=i&&i.row===e?i.el.position().top:a.find(".fc-content-skeleton tbody").position().top,l.css("top",r).find("table").append(n[e].tbodyEl),a.append(l),s.push(l[0])}),this.helperEls=t(s)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(e,i,n){var s,o,r,a=[];for(i=this.renderFillSegEls(e,i),s=0;s<i.length;s++)o=i[s],r=this.renderFillRow(e,o,n),this.rowEls.eq(o.row).append(r),a.push(r[0]);return this.elsByFill[e]=t(a),i},renderFillRow:function(e,i,n){var s,o,r=this.colCnt,a=i.leftCol,l=i.rightCol+1;return n=n||e.toLowerCase(),s=t('<div class="fc-'+n+'-skeleton"><table><tr/></table></div>'),o=s.find("tr"),a>0&&o.append('<td colspan="'+a+'"/>'),o.append(i.el.attr("colspan",l-a)),l<r&&o.append('<td colspan="'+(r-l)+'"/>'),this.bookendCells(o),s}});Te.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),Se.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return Se.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(e){var i=t.grep(e,function(t){return t.event.allDay});return Se.prototype.renderBgSegs.call(this,i)},renderFgSegs:function(e){var i;return e=this.renderFgSegEls(e),i=this.rowStructs=this.renderSegRows(e),this.rowEls.each(function(e,n){t(n).find(".fc-content-skeleton > table").append(i[e].tbodyEl)}),e},unrenderFgSegs:function(){for(var t,e=this.rowStructs||[];t=e.pop();)t.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(t){var e,i,n=[];for(e=this.groupSegRows(t),i=0;i<e.length;i++)n.push(this.renderSegRow(i,e[i]));return n},fgSegHtml:function(t,e){var i,n,s=this.view,o=t.event,r=s.isEventDraggable(o),a=!e&&o.allDay&&t.isStart&&s.isEventResizableFromStart(o),l=!e&&o.allDay&&t.isEnd&&s.isEventResizableFromEnd(o),d=this.getSegClasses(t,r,a||l),u=ht(this.getSegSkinCss(t)),c="";return d.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&(i=this.getEventTimeText(o))&&(c='<span class="fc-time">'+ut(i)+"</span>"),n='<span class="fc-title">'+(ut(o.title||"")||"&nbsp;")+"</span>",'<a class="'+d.join(" ")+'"'+(o.url?' href="'+ut(o.url)+'"':"")+(u?' style="'+u+'"':"")+'><div class="fc-content">'+(this.isRTL?n+" "+c:c+" "+n)+"</div>"+(a?'<div class="fc-resizer fc-start-resizer" />':"")+(l?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},renderSegRow:function(e,i){function n(e){for(;r<e;)u=(v[s-1]||[])[r],u?u.attr("rowspan",parseInt(u.attr("rowspan")||1,10)+1):(u=t("<td/>"),a.append(u)),m[s][r]=u,v[s][r]=u,r++}var s,o,r,a,l,d,u,c=this.colCnt,h=this.buildSegLevels(i),f=Math.max(1,h.length),p=t("<tbody/>"),g=[],m=[],v=[];for(s=0;s<f;s++){if(o=h[s],r=0,a=t("<tr/>"),g.push([]),m.push([]),v.push([]),o)for(l=0;l<o.length;l++){for(d=o[l],n(d.leftCol),u=t('<td class="fc-event-container"/>').append(d.el),d.leftCol!=d.rightCol?u.attr("colspan",d.rightCol-d.leftCol+1):v[s][r]=u;r<=d.rightCol;)m[s][r]=u,g[s][r]=d,r++;a.append(u)}n(c),this.bookendCells(a),p.append(a)}return{row:e,tbodyEl:p,cellMatrix:m,segMatrix:g,segLevels:h,segs:i}},buildSegLevels:function(t){var e,i,n,s=[];for(this.sortEventSegs(t),e=0;e<t.length;e++){for(i=t[e],n=0;n<s.length&&Lt(i,s[n]);n++);i.level=n,(s[n]||(s[n]=[])).push(i)}for(n=0;n<s.length;n++)s[n].sort(Ot);return s},groupSegRows:function(t){var e,i=[];for(e=0;e<this.rowCnt;e++)i.push([]);for(e=0;e<t.length;e++)i[t[e].row].push(t[e]);return i}}),Te.mixin({segPopover:null,popoverSegs:null,removeSegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(t){var e,i,n=this.rowStructs||[];for(e=0;e<n.length;e++)this.unlimitRow(e),!1!==(i=!!t&&("number"==typeof t?t:this.computeRowLevelLimit(e)))&&this.limitRow(e,i)},computeRowLevelLimit:function(e){function i(e,i){o=Math.max(o,t(i).outerHeight())}var n,s,o,r=this.rowEls.eq(e),a=r.height(),l=this.rowStructs[e].tbodyEl.children();
for(n=0;n<l.length;n++)if(s=l.eq(n).removeClass("fc-limited"),o=0,s.find("> td > :first-child").each(i),s.position().top+o>a)return n;return!1},limitRow:function(e,i){function n(n){for(;_<n;)d=w.getCellSegs(e,_,i),d.length&&(h=o[i-1][_],y=w.renderMoreLink(e,_,d),v=t("<div/>").append(y),h.append(v),S.push(v[0])),_++}var s,o,r,a,l,d,u,c,h,f,p,g,m,v,y,w=this,b=this.rowStructs[e],S=[],_=0;if(i&&i<b.segLevels.length){for(s=b.segLevels[i-1],o=b.cellMatrix,r=b.tbodyEl.children().slice(i).addClass("fc-limited").get(),a=0;a<s.length;a++){for(l=s[a],n(l.leftCol),c=[],u=0;_<=l.rightCol;)d=this.getCellSegs(e,_,i),c.push(d),u+=d.length,_++;if(u){for(h=o[i-1][l.leftCol],f=h.attr("rowspan")||1,p=[],g=0;g<c.length;g++)m=t('<td class="fc-more-cell"/>').attr("rowspan",f),d=c[g],y=this.renderMoreLink(e,l.leftCol+g,[l].concat(d)),v=t("<div/>").append(y),m.append(v),p.push(m[0]),S.push(m[0]);h.addClass("fc-limited").after(t(p)),r.push(h[0])}}n(this.colCnt),b.moreEls=t(S),b.limitedEls=t(r)}},unlimitRow:function(t){var e=this.rowStructs[t];e.moreEls&&(e.moreEls.remove(),e.moreEls=null),e.limitedEls&&(e.limitedEls.removeClass("fc-limited"),e.limitedEls=null)},renderMoreLink:function(e,i,n){var s=this,o=this.view;return t('<a class="fc-more"/>').text(this.getMoreLinkText(n.length)).on("click",function(r){var a=o.opt("eventLimitClick"),l=s.getCellDate(e,i),d=t(this),u=s.getCellEl(e,i),c=s.getCellSegs(e,i),h=s.resliceDaySegs(c,l),f=s.resliceDaySegs(n,l);"function"==typeof a&&(a=o.publiclyTrigger("eventLimitClick",null,{date:l,dayEl:u,moreEl:d,segs:h,hiddenSegs:f},r)),"popover"===a?s.showSegPopover(e,i,d,h):"string"==typeof a&&o.calendar.zoomTo(l,a)})},showSegPopover:function(t,e,i,n){var s,o,r=this,a=this.view,l=i.parent();s=1==this.rowCnt?a.el:this.rowEls.eq(t),o={className:"fc-more-popover",content:this.renderSegPopoverContent(t,e,n),parentEl:this.view.el,top:s.offset().top,autoHide:!0,viewportConstrain:a.opt("popoverViewportConstrain"),hide:function(){if(r.popoverSegs)for(var t,e=0;e<r.popoverSegs.length;++e)t=r.popoverSegs[e],a.publiclyTrigger("eventDestroy",t.event,t.event,t.el);r.segPopover.removeElement(),r.segPopover=null,r.popoverSegs=null}},this.isRTL?o.right=l.offset().left+l.outerWidth()+1:o.left=l.offset().left-1,this.segPopover=new ge(o),this.segPopover.show(),this.bindSegHandlersToEl(this.segPopover.el)},renderSegPopoverContent:function(e,i,n){var s,o=this.view,r=o.opt("theme"),a=this.getCellDate(e,i).format(o.opt("dayPopoverFormat")),l=t('<div class="fc-header '+o.widgetHeaderClass+'"><span class="fc-close '+(r?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+ut(a)+'</span><div class="fc-clear"/></div><div class="fc-body '+o.widgetContentClass+'"><div class="fc-event-container"></div></div>'),d=l.find(".fc-event-container");for(n=this.renderFgSegEls(n,!0),this.popoverSegs=n,s=0;s<n.length;s++)this.hitsNeeded(),n[s].hit=this.getCellHit(e,i),this.hitsNotNeeded(),d.append(n[s].el);return l},resliceDaySegs:function(e,i){var n=t.map(e,function(t){return t.event}),s=i.clone(),o=s.clone().add(1,"days"),r={start:s,end:o};return e=this.eventsToSegs(n,function(t){var e=L(t,r);return e?[e]:[]}),this.sortEventSegs(e),e},getMoreLinkText:function(t){var e=this.view.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},getCellSegs:function(t,e,i){for(var n,s=this.rowStructs[t].segMatrix,o=i||0,r=[];o<s.length;)n=s[o][e],n&&r.push(n),o++;return r}});var xe=Ut.TimeGrid=Se.extend(_e,{slotDuration:null,snapDuration:null,snapsPerSlot:null,labelFormat:null,labelInterval:null,colEls:null,slatContainerEl:null,slatEls:null,nowIndicatorEls:null,colCoordCache:null,slatCoordCache:null,constructor:function(){Se.apply(this,arguments),this.processOptions()},renderDates:function(){this.el.html(this.renderHtml()),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.slatContainerEl=this.el.find(".fc-slats"),this.slatEls=this.slatContainerEl.find("tr"),this.colCoordCache=new me({els:this.colEls,isHorizontal:!0}),this.slatCoordCache=new me({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 t,i,n,s=this.view,o=this.isRTL,r="",a=e.duration(+this.view.minTime);a<this.view.maxTime;)t=this.start.clone().time(a),i=mt(q(a,this.labelInterval)),n='<td class="fc-axis fc-time '+s.widgetContentClass+'" '+s.axisStyleAttr()+">"+(i?"<span>"+ut(t.format(this.labelFormat))+"</span>":"")+"</td>",r+='<tr data-time="'+t.format("HH:mm:ss")+'"'+(i?"":' class="fc-minor"')+">"+(o?"":n)+'<td class="'+s.widgetContentClass+'"/>'+(o?n:"")+"</tr>",a.add(this.slotDuration);return r},processOptions:function(){var i,n=this.view,s=n.opt("slotDuration"),o=n.opt("snapDuration");s=e.duration(s),o=o?e.duration(o):s,this.slotDuration=s,this.snapDuration=o,this.snapsPerSlot=s/o,this.minResizeDuration=o,i=n.opt("slotLabelFormat"),t.isArray(i)&&(i=i[i.length-1]),this.labelFormat=i||n.opt("smallTimeFormat"),i=n.opt("slotLabelInterval"),this.labelInterval=i?e.duration(i):this.computeLabelInterval(s)},computeLabelInterval:function(t){var i,n,s;for(i=Fe.length-1;i>=0;i--)if(n=e.duration(Fe[i]),s=q(n,t),mt(s)&&s>1)return n;return e.duration(t)},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(t,e){var i=this.snapsPerSlot,n=this.colCoordCache,s=this.slatCoordCache;if(n.isLeftInBounds(t)&&s.isTopInBounds(e)){var o=n.getHorizontalIndex(t),r=s.getVerticalIndex(e);if(null!=o&&null!=r){var a=s.getTopOffset(r),l=s.getHeight(r),d=(e-a)/l,u=Math.floor(d*i),c=r*i+u,h=a+u/i*l,f=a+(u+1)/i*l;return{col:o,snap:c,component:this,left:n.getLeftOffset(o),right:n.getRightOffset(o),top:h,bottom:f}}}},getHitSpan:function(t){var e,i=this.getCellDate(0,t.col),n=this.computeSnapTime(t.snap);return i.time(n),e=i.clone().add(this.snapDuration),{start:i,end:e}},getHitEl:function(t){return this.colEls.eq(t.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(t){return e.duration(this.view.minTime+this.snapDuration*t)},spanToSegs:function(t){var e,i=this.sliceRangeByTimes(t);for(e=0;e<i.length;e++)this.isRTL?i[e].col=this.daysPerRow-1-i[e].dayIndex:i[e].col=i[e].dayIndex;return i},sliceRangeByTimes:function(t){var e,i,n,s,o=[];for(i=0;i<this.daysPerRow;i++)n=this.dayDates[i].clone().time(0),s={start:n.clone().add(this.view.minTime),end:n.clone().add(this.view.maxTime)},(e=L(t,s))&&(e.dayIndex=i,o.push(e));return o},updateSize:function(t){this.slatCoordCache.build(),t&&this.updateSegVerticals([].concat(this.fgSegs||[],this.bgSegs||[],this.businessSegs||[]))},getTotalSlatHeight:function(){return this.slatContainerEl.outerHeight()},computeDateTop:function(t,i){return this.computeTimeTop(e.duration(t-i.clone().stripTime()))},computeTimeTop:function(t){var e,i,n=this.slatEls.length,s=(t-this.view.minTime)/this.slotDuration;return s=Math.max(0,s),s=Math.min(n,s),e=Math.floor(s),e=Math.min(e,n-1),i=s-e,this.slatCoordCache.getTopPosition(e)+this.slatCoordCache.getHeight(e)*i},renderDrag:function(t,e){var i,n;if(e)return this.renderEventLocationHelper(t,e);for(i=this.eventToSpans(t),n=0;n<i.length;n++)this.renderHighlight(i[n])},unrenderDrag:function(){this.unrenderHelper(),this.unrenderHighlight()},renderEventResize:function(t,e){return this.renderEventLocationHelper(t,e)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(t,e){return this.renderHelperSegs(this.eventToSegs(t),e)},unrenderHelper:function(){this.unrenderHelperSegs()},renderBusinessHours:function(){this.renderBusinessSegs(this.buildBusinessHourSegs())},unrenderBusinessHours:function(){this.unrenderBusinessSegs()},getNowIndicatorUnit:function(){return"minute"},renderNowIndicator:function(e){var i,n=this.spanToSegs({start:e,end:e}),s=this.computeDateTop(e,e),o=[];for(i=0;i<n.length;i++)o.push(t('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",s).appendTo(this.colContainerEls.eq(n[i].col))[0]);n.length>0&&o.push(t('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",s).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=t(o)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(t){this.view.opt("selectHelper")?this.renderEventLocationHelper(t):this.renderHighlight(t)},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderHighlight:function(t){this.renderHighlightSegs(this.spanToSegs(t))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});xe.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(){var e,i,n="";for(e=0;e<this.colCnt;e++)n+='<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>';i=t('<div class="fc-content-skeleton"><table><tr>'+n+"</tr></table></div>"),this.colContainerEls=i.find(".fc-content-col"),this.helperContainerEls=i.find(".fc-helper-container"),this.fgContainerEls=i.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=i.find(".fc-bgevent-container"),this.highlightContainerEls=i.find(".fc-highlight-container"),this.businessContainerEls=i.find(".fc-business-container"),this.bookendCells(i.find("tr")),this.el.append(i)},renderFgSegs:function(t){return t=this.renderFgSegsIntoContainers(t,this.fgContainerEls),this.fgSegs=t,t},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(e,i){var n,s,o,r=[];for(e=this.renderFgSegsIntoContainers(e,this.helperContainerEls),n=0;n<e.length;n++)s=e[n],i&&i.col===s.col&&(o=i.el,s.el.css({left:o.css("left"),right:o.css("right"),"margin-left":o.css("margin-left"),"margin-right":o.css("margin-right")})),r.push(s.el[0]);return this.helperSegs=e,t(r)},unrenderHelperSegs:function(){this.unrenderNamedSegs("helperSegs")},renderBgSegs:function(t){return t=this.renderFillSegEls("bgEvent",t),this.updateSegVerticals(t),this.attachSegsByCol(this.groupSegsByCol(t),this.bgContainerEls),this.bgSegs=t,t},unrenderBgSegs:function(){this.unrenderNamedSegs("bgSegs")},renderHighlightSegs:function(t){t=this.renderFillSegEls("highlight",t),this.updateSegVerticals(t),this.attachSegsByCol(this.groupSegsByCol(t),this.highlightContainerEls),this.highlightSegs=t},unrenderHighlightSegs:function(){this.unrenderNamedSegs("highlightSegs")},renderBusinessSegs:function(t){t=this.renderFillSegEls("businessHours",t),this.updateSegVerticals(t),this.attachSegsByCol(this.groupSegsByCol(t),this.businessContainerEls),this.businessSegs=t},unrenderBusinessSegs:function(){this.unrenderNamedSegs("businessSegs")},groupSegsByCol:function(t){var e,i=[];for(e=0;e<this.colCnt;e++)i.push([]);for(e=0;e<t.length;e++)i[t[e].col].push(t[e]);return i},attachSegsByCol:function(t,e){var i,n,s;for(i=0;i<this.colCnt;i++)for(n=t[i],s=0;s<n.length;s++)e.eq(i).append(n[s].el)},unrenderNamedSegs:function(t){var e,i=this[t];if(i){for(e=0;e<i.length;e++)i[e].el.remove();this[t]=null}},renderFgSegsIntoContainers:function(t,e){var i,n;for(t=this.renderFgSegEls(t),i=this.groupSegsByCol(t),n=0;n<this.colCnt;n++)this.updateFgSegCoords(i[n]);return this.attachSegsByCol(i,e),t},fgSegHtml:function(t,e){var i,n,s,o=this.view,r=t.event,a=o.isEventDraggable(r),l=!e&&t.isStart&&o.isEventResizableFromStart(r),d=!e&&t.isEnd&&o.isEventResizableFromEnd(r),u=this.getSegClasses(t,a,l||d),c=ht(this.getSegSkinCss(t));return u.unshift("fc-time-grid-event","fc-v-event"),o.isMultiDayEvent(r)?(t.isStart||t.isEnd)&&(i=this.getEventTimeText(t),n=this.getEventTimeText(t,"LT"),s=this.getEventTimeText(t,null,!1)):(i=this.getEventTimeText(r),n=this.getEventTimeText(r,"LT"),s=this.getEventTimeText(r,null,!1)),'<a class="'+u.join(" ")+'"'+(r.url?' href="'+ut(r.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(i?'<div class="fc-time" data-start="'+ut(s)+'" data-full="'+ut(n)+'"><span>'+ut(i)+"</span></div>":"")+(r.title?'<div class="fc-title">'+ut(r.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(d?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},updateSegVerticals:function(t){this.computeSegVerticals(t),this.assignSegVerticals(t)},computeSegVerticals:function(t){var e,i,n;for(e=0;e<t.length;e++)i=t[e],n=this.dayDates[i.dayIndex],i.top=this.computeDateTop(i.start,n),i.bottom=this.computeDateTop(i.end,n)},assignSegVerticals:function(t){var e,i;for(e=0;e<t.length;e++)i=t[e],i.el.css(this.generateSegVerticalCss(i))},generateSegVerticalCss:function(t){return{top:t.top,bottom:-t.bottom}},updateFgSegCoords:function(t){this.computeSegVerticals(t),this.computeFgSegHorizontals(t),this.assignSegVerticals(t),this.assignFgSegHorizontals(t)},computeFgSegHorizontals:function(t){var e,i,n;if(this.sortEventSegs(t),e=zt(t),Nt(e),i=e[0]){for(n=0;n<i.length;n++)jt(i[n]);for(n=0;n<i.length;n++)this.computeFgSegForwardBack(i[n],0,0)}},computeFgSegForwardBack:function(t,e,i){var n,s=t.forwardSegs;if(void 0===t.forwardCoord)for(s.length?(this.sortForwardSegs(s),this.computeFgSegForwardBack(s[0],e+1,i),t.forwardCoord=s[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-i)/(e+1),n=0;n<s.length;n++)this.computeFgSegForwardBack(s[n],0,t.forwardCoord)},sortForwardSegs:function(t){t.sort(vt(this,"compareForwardSegs"))},compareForwardSegs:function(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||this.compareEventSegs(t,e)},assignFgSegHorizontals:function(t){var e,i;for(e=0;e<t.length;e++)i=t[e],i.el.css(this.generateFgSegHorizontalCss(i)),i.bottom-i.top<30&&i.el.addClass("fc-short")},generateFgSegHorizontalCss:function(t){var e,i,n=this.view.opt("slotEventOverlap"),s=t.backwardCoord,o=t.forwardCoord,r=this.generateSegVerticalCss(t);return n&&(o=Math.min(1,s+2*(o-s))),this.isRTL?(e=1-o,i=s):(e=s,i=1-o),r.zIndex=t.level+1,r.left=100*e+"%",r.right=100*i+"%",n&&t.forwardPressure&&(r[this.isRTL?"marginLeft":"marginRight"]=20),r}});var Ce=Ut.View=de.extend({type:null,name:null,title:null,calendar:null,viewSpec:null,options:null,el:null,renderQueue:null,batchRenderDepth:0,isDatesRendered:!1,isEventsRendered:!1,isBaseRendered:!1,queuedScroll:null,isRTL:!1,isSelected:!1,selectedEvent:null,eventOrderSpecs:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,isNowIndicatorRendered:null,initialNowDate:null,initialNowQueriedMs:null,nowIndicatorTimeoutID:null,nowIndicatorIntervalID:null,constructor:function(t,i){de.prototype.constructor.call(this),this.calendar=t,this.viewSpec=i,this.type=i.type,this.options=i.options,this.name=this.type,this.nextDayThreshold=e.duration(this.opt("nextDayThreshold")),this.initThemingProps(),this.initHiddenDays(),this.isRTL=this.opt("isRTL"),this.eventOrderSpecs=M(this.opt("eventOrder")),this.renderQueue=this.buildRenderQueue(),this.initAutoBatchRender(),this.initialize()},buildRenderQueue:function(){var t=this,e=new he({event:this.opt("eventRenderWait")});return e.on("start",function(){t.freezeHeight(),t.addScroll(t.queryScroll())}),e.on("stop",function(){t.thawHeight(),t.popScroll()}),e},initAutoBatchRender:function(){var t=this;this.on("before:change",function(){t.startBatchRender()}),this.on("change",function(){t.stopBatchRender()})},startBatchRender:function(){this.batchRenderDepth++||this.renderQueue.pause()},stopBatchRender:function(){--this.batchRenderDepth||this.renderQueue.resume()},initialize:function(){},opt:function(t){return this.options[t]},publiclyTrigger:function(t,e){var i=this.calendar;return i.publiclyTrigger.apply(i,[t,e||this].concat(Array.prototype.slice.call(arguments,2),[this]))},updateTitle:function(){this.title=this.computeTitle(),this.calendar.setToolbarsTitle(this.title)},computeTitle:function(){var t;return t=/^(year|month)$/.test(this.currentRangeUnit)?this.currentRange:this.activeRange,this.formatRange({start:this.calendar.applyTimezone(t.start),end:this.calendar.applyTimezone(t.end)},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.currentRangeUnit?"YYYY":"month"==this.currentRangeUnit?this.opt("monthYearFormat"):this.currentRangeAs("days")>1?"ll":"LL"},formatRange:function(t,e,i){var n=t.end;return n.hasTime()||(n=n.clone().subtract(1)),ae(t.start,n,e,i,this.opt("isRTL"))},getAllDayHtml:function(){return this.opt("allDayHtml")||ut(this.opt("allDayText"))},buildGotoAnchorHtml:function(e,i,n){var s,o,r,a;return t.isPlainObject(e)?(s=e.date,o=e.type,r=e.forceOff):s=e,s=Ut.moment(s),a={date:s.format("YYYY-MM-DD"),type:o||"day"},"string"==typeof i&&(n=i,i=null),i=i?" "+ft(i):"",n=n||"",!r&&this.opt("navLinks")?"<a"+i+' data-goto="'+ut(JSON.stringify(a))+'">'+n+"</a>":"<span"+i+">"+n+"</span>"},setElement:function(t){this.el=t,this.bindGlobalHandlers(),this.bindBaseRenderHandlers(),this.renderSkeleton()},removeElement:function(){this.unsetDate(),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.unbindBaseRenderHandlers(),this.el.remove()},renderSkeleton:function(){},unrenderSkeleton:function(){},setDate:function(t){var e=this.get("dateProfile"),i=this.buildDateProfile(t,null,!0);return e&&Q(e.activeRange,i.activeRange)||this.set("dateProfile",i),i.date},unsetDate:function(){this.unset("dateProfile")},requestDateRender:function(t){var e=this;this.renderQueue.queue(function(){e.executeDateRender(t)},"date","init")},requestDateUnrender:function(){var t=this;this.renderQueue.queue(function(){t.executeDateUnrender()},"date","destroy")},fetchInitialEvents:function(t){return this.calendar.requestEvents(t.activeRange.start,t.activeRange.end)},bindEventChanges:function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},unbindEventChanges:function(){this.stopListeningTo(this.calendar,"eventsReset")},setEvents:function(t){this.set("currentEvents",t),this.set("hasEvents",!0)},unsetEvents:function(){this.unset("currentEvents"),this.unset("hasEvents")},resetEvents:function(t){this.startBatchRender(),this.unsetEvents(),this.setEvents(t),this.stopBatchRender()},requestEventsRender:function(t){var e=this;this.renderQueue.queue(function(){e.executeEventsRender(t)},"event","init")},requestEventsUnrender:function(){var t=this;this.renderQueue.queue(function(){t.executeEventsUnrender()},"event","destroy")},executeDateRender:function(t,e){this.setDateProfileForRendering(t),this.updateTitle(),this.calendar.updateToolbarButtons(),this.render&&this.render(),this.renderDates(),this.updateSize(),this.renderBusinessHours(),this.startNowIndicator(),e||this.addScroll(this.computeInitialDateScroll()),this.isDatesRendered=!0,this.trigger("datesRendered")},executeDateUnrender:function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.unrenderBusinessHours(),this.unrenderDates(),this.destroy&&this.destroy(),this.isDatesRendered=!1},renderDates:function(){},unrenderDates:function(){},bindBaseRenderHandlers:function(){var t=this;this.on("datesRendered.baseHandler",function(){t.onBaseRender()}),this.on("before:datesUnrendered.baseHandler",function(){t.onBeforeBaseUnrender()})},unbindBaseRenderHandlers:function(){this.off(".baseHandler")},onBaseRender:function(){this.applyScreenState(),this.publiclyTrigger("viewRender",this,this,this.el)},onBeforeBaseUnrender:function(){this.applyScreenState(),this.publiclyTrigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){this.listenTo(we.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},unbindGlobalHandlers:function(){this.stopListeningTo(we.get())},initThemingProps:function(){var t=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=t+"-widget-header",this.widgetContentClass=t+"-widget-content",this.highlightStateClass=t+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var t,i,n,s=this;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit())&&(i=vt(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,n=this.initialNowDate.clone().startOf(t).add(1,t)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout(function(){s.nowIndicatorTimeoutID=null,i(),n=+e.duration(1,t),n=Math.max(100,n),s.nowIndicatorIntervalID=setInterval(i,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(t){},unrenderNowIndicator:function(){},updateSize:function(t){var e;t&&(e=this.queryScroll()),this.updateHeight(t),this.updateWidth(t),this.updateNowIndicator(),t&&this.applyScroll(e)},updateWidth:function(t){},updateHeight:function(t){var e=this.calendar;this.setHeight(e.getSuggestedViewHeight(),e.isHeightAuto())},setHeight:function(t,e){},addForcedScroll:function(e){this.addScroll(t.extend(e,{isForced:!0}))},addScroll:function(e){var i=this.queuedScroll||(this.queuedScroll={});i.isForced||t.extend(i,e)},popScroll:function(){this.applyQueuedScroll(),this.queuedScroll=null},applyQueuedScroll:function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},queryScroll:function(){var e={};return this.isDatesRendered&&t.extend(e,this.queryDateScroll()),e},applyScroll:function(t){this.isDatesRendered&&this.applyDateScroll(t)},computeInitialDateScroll:function(){return{}},queryDateScroll:function(){return{}},applyDateScroll:function(t){},freezeHeight:function(){this.calendar.freezeContentHeight()},thawHeight:function(){this.calendar.thawContentHeight()},executeEventsRender:function(t){this.renderEvents(t),this.isEventsRendered=!0,this.onEventsRender()},executeEventsUnrender:function(){this.onBeforeEventsUnrender(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.isEventsRendered=!1},onEventsRender:function(){this.applyScreenState(),this.renderedEventSegEach(function(t){this.publiclyTrigger("eventAfterRender",t.event,t.event,t.el)}),this.publiclyTrigger("eventAfterAllRender")},onBeforeEventsUnrender:function(){this.applyScreenState(),this.renderedEventSegEach(function(t){this.publiclyTrigger("eventDestroy",t.event,t.event,t.el)})},applyScreenState:function(){this.thawHeight(),this.freezeHeight(),this.applyQueuedScroll()},renderEvents:function(t){},unrenderEvents:function(){},resolveEventEl:function(e,i){var n=this.publiclyTrigger("eventRender",e,e,i);return!1===n?i=null:n&&!0!==n&&(i=t(n)),i},showEvent:function(t){this.renderedEventSegEach(function(t){t.el.css("visibility","")},t)},hideEvent:function(t){this.renderedEventSegEach(function(t){t.el.css("visibility","hidden")},t)},renderedEventSegEach:function(t,e){var i,n=this.getEventSegs();for(i=0;i<n.length;i++)e&&n[i].event._id!==e._id||n[i].el&&t.call(this,n[i])},getEventSegs:function(){return[]},isEventDraggable:function(t){return this.isEventStartEditable(t)},isEventStartEditable:function(t){return dt(t.startEditable,(t.source||{}).startEditable,this.opt("eventStartEditable"),this.isEventGenerallyEditable(t))},isEventGenerallyEditable:function(t){return dt(t.editable,(t.source||{}).editable,this.opt("editable"))},reportSegDrop:function(t,e,i,n,s){var o=this.calendar,r=o.mutateSeg(t,e,i),a=function(){r.undo(),o.reportEventChange()};this.triggerEventDrop(t.event,r.dateDelta,a,n,s),o.reportEventChange()},triggerEventDrop:function(t,e,i,n,s){this.publiclyTrigger("eventDrop",n[0],t,e,i,s,{})},reportExternalDrop:function(e,i,n,s,o){var r,a,l=e.eventProps;l&&(r=t.extend({},l,i),a=this.calendar.renderEvent(r,e.stick)[0]),this.triggerExternalDrop(a,i,n,s,o)},triggerExternalDrop:function(t,e,i,n,s){this.publiclyTrigger("drop",i[0],e.start,n,s),t&&this.publiclyTrigger("eventReceive",null,t)},renderDrag:function(t,e){},unrenderDrag:function(){},isEventResizableFromStart:function(t){return this.opt("eventResizableFromStart")&&this.isEventResizable(t)},isEventResizableFromEnd:function(t){return this.isEventResizable(t)},isEventResizable:function(t){var e=t.source||{};return dt(t.durationEditable,e.durationEditable,this.opt("eventDurationEditable"),t.editable,e.editable,this.opt("editable"))},reportSegResize:function(t,e,i,n,s){var o=this.calendar,r=o.mutateSeg(t,e,i),a=function(){r.undo(),o.reportEventChange()};this.triggerEventResize(t.event,r.durationDelta,a,n,s),o.reportEventChange()},triggerEventResize:function(t,e,i,n,s){this.publiclyTrigger("eventResize",n[0],t,e,i,s,{})},select:function(t,e){this.unselect(e),this.renderSelection(t),this.reportSelection(t,e)},renderSelection:function(t){},reportSelection:function(t,e){this.isSelected=!0,this.triggerSelect(t,e)},triggerSelect:function(t,e){this.publiclyTrigger("select",null,this.calendar.applyTimezone(t.start),this.calendar.applyTimezone(t.end),e)},unselect:function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",null,t))},unrenderSelection:function(){},selectEvent:function(t){this.selectedEvent&&this.selectedEvent===t||(this.unselectEvent(),this.renderedEventSegEach(function(t){t.el.addClass("fc-selected")},t),this.selectedEvent=t)},unselectEvent:function(){this.selectedEvent&&(this.renderedEventSegEach(function(t){t.el.removeClass("fc-selected")},this.selectedEvent),this.selectedEvent=null)},isEventSelected:function(t){return this.selectedEvent&&this.selectedEvent._id===t._id},handleDocumentMousedown:function(t){b(t)&&this.processUnselect(t)},processUnselect:function(t){this.processRangeUnselect(t),this.processEventUnselect(t)},processRangeUnselect:function(e){var i;this.isSelected&&this.opt("unselectAuto")&&((i=this.opt("unselectCancel"))&&t(e.target).closest(i).length||this.unselect(e))},processEventUnselect:function(e){this.selectedEvent&&(t(e.target).closest(".fc-selected").length||this.unselectEvent())},triggerDayClick:function(t,e,i){this.publiclyTrigger("dayClick",e,this.calendar.applyTimezone(t.start),i)},computeDayRange:function(t){var e,i=t.start.clone().stripTime(),n=t.end,s=null;return n&&(s=n.clone().stripTime(),(e=+n.time())&&e>=this.nextDayThreshold&&s.add(1,"days")),(!n||s<=i)&&(s=i.clone().add(1,"days")),{start:i,end:s}},isMultiDayEvent:function(t){var e=this.computeDayRange(t);return e.end.diff(e.start,"days")>1}});Ce.watch("displayingDates",["dateProfile"],function(t){this.requestDateRender(t.dateProfile)},function(){this.requestDateUnrender()}),Ce.watch("initialEvents",["dateProfile"],function(t){return this.fetchInitialEvents(t.dateProfile)}),Ce.watch("bindingEvents",["initialEvents"],function(t){this.setEvents(t.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),Ce.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),Ce.mixin({currentRange:null,currentRangeUnit:null,renderRange:null,activeRange:null,validRange:null,dateIncrement:null,minTime:null,maxTime:null,usesMinMaxTime:!1,start:null,end:null,intervalStart:null,intervalEnd:null,setDateProfileForRendering:function(t){this.currentRange=t.currentRange,this.currentRangeUnit=t.currentRangeUnit,this.renderRange=t.renderRange,this.activeRange=t.activeRange,this.validRange=t.validRange,this.dateIncrement=t.dateIncrement,this.minTime=t.minTime,this.maxTime=t.maxTime,this.start=t.activeRange.start,this.end=t.activeRange.end,this.intervalStart=t.currentRange.start,this.intervalEnd=t.currentRange.end},buildPrevDateProfile:function(t){var e=t.clone().startOf(this.currentRangeUnit).subtract(this.dateIncrement);return this.buildDateProfile(e,-1)},buildNextDateProfile:function(t){var e=t.clone().startOf(this.currentRangeUnit).add(this.dateIncrement);return this.buildDateProfile(e,1)},buildDateProfile:function(t,i,n){var s,o,r,a,l=this.buildValidRange(),d=null,u=null;return n&&(t=V(t,l)),s=this.buildCurrentRangeInfo(t,i),o=this.buildRenderRange(s.range,s.unit),r=B(o),this.opt("showNonCurrentDates")||(r=G(r,s.range)),d=e.duration(this.opt("minTime")),u=e.duration(this.opt("maxTime")),this.adjustActiveRange(r,d,u),r=G(r,l),t=V(t,r),a=Z(s.range,l),{validRange:l,currentRange:s.range,currentRangeUnit:s.unit,activeRange:r,renderRange:o,minTime:d,maxTime:u,isValid:a,date:t,dateIncrement:this.buildDateIncrement(s.duration)}},buildValidRange:function(){return this.getRangeOption("validRange",this.calendar.getNow())||{}},buildCurrentRangeInfo:function(t,e){var i,n=null,s=null,o=null;return this.viewSpec.duration?(n=this.viewSpec.duration,s=this.viewSpec.durationUnit,o=this.buildRangeFromDuration(t,e,n,s)):(i=this.opt("dayCount"))?(s="day",o=this.buildRangeFromDayCount(t,e,i)):(o=this.buildCustomVisibleRange(t))?s=j(o.start,o.end):(n=this.getFallbackDuration(),s=j(n),o=this.buildRangeFromDuration(t,e,n,s)),this.normalizeCurrentRange(o,s),{duration:n,unit:s,range:o}},getFallbackDuration:function(){return e.duration({days:1})},normalizeCurrentRange:function(t,e){/^(year|month|week|day)$/.test(e)?(t.start.stripTime(),t.end.stripTime()):(t.start.hasTime()||t.start.time(0),t.end.hasTime()||t.end.time(0))},adjustActiveRange:function(t,e,i){var n=!1;this.usesMinMaxTime&&(e<0&&(t.start.time(0).add(e),n=!0),i>864e5&&(t.end.time(i-864e5),n=!0),n&&(t.start.hasTime()||t.start.time(0),t.end.hasTime()||t.end.time(0)))},buildRangeFromDuration:function(t,i,n,s){var o,r,a,l=this.opt("dateAlignment"),d=t.clone();return n.as("days")<=1&&this.isHiddenDay(d)&&(d=this.skipHiddenDays(d,i),d.startOf("day")),l||(r=this.opt("dateIncrement"),r?(a=e.duration(r),l=a<n?P(a,r):s):l=s),d.startOf(l),o=d.clone().add(n),{start:d,end:o}},buildRangeFromDayCount:function(t,e,i){var n,s=this.opt("dateAlignment"),o=0,r=t.clone();s&&r.startOf(s),r.startOf("day"),r=this.skipHiddenDays(r,e),n=r.clone();do n.add(1,"day"),this.isHiddenDay(n)||o++;while(o<i);return{start:r,end:n}},buildCustomVisibleRange:function(t){var e=this.getRangeOption("visibleRange",this.calendar.moment(t));return!e||e.start&&e.end?e:null},buildRenderRange:function(t,e){return this.trimHiddenDays(t)},buildDateIncrement:function(t){var i,n=this.opt("dateIncrement");return n?e.duration(n):(i=this.opt("dateAlignment"))?e.duration(1,i):t||e.duration({days:1})},trimHiddenDays:function(t){return{start:this.skipHiddenDays(t.start),end:this.skipHiddenDays(t.end,-1,!0)}},currentRangeAs:function(t){var e=this.currentRange;return e.end.diff(e.start,t,!0)},getRangeOption:function(t){var e=this.opt(t);if("function"==typeof e&&(e=e.apply(null,Array.prototype.slice.call(arguments,1))),e)return this.calendar.parseRange(e)},initHiddenDays:function(){var e,i=this.opt("hiddenDays")||[],n=[],s=0;for(!1===this.opt("weekends")&&i.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.inArray(e,i))||s++;if(!s)throw"invalid hiddenDays";this.isHiddenDayHash=n},isHiddenDay:function(t){return e.isMoment(t)&&(t=t.day()),this.isHiddenDayHash[t]},skipHiddenDays:function(t,e,i){var n=t.clone();for(e=e||1;this.isHiddenDayHash[(n.day()+(i?e:0)+7)%7];)n.add(e,"days");return n}});var De=Ut.Scroller=St.extend({
el:null,scrollEl:null,overflowX:null,overflowY:null,constructor:function(t){t=t||{},this.overflowX=t.overflowX||t.overflow||"auto",this.overflowY=t.overflowY||t.overflow||"auto"},render:function(){this.el=this.renderEl(),this.applyOverflow()},renderEl:function(){return this.scrollEl=t('<div class="fc-scroller"></div>')},clear:function(){this.setHeight("auto"),this.applyOverflow()},destroy:function(){this.el.remove()},applyOverflow:function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},lockOverflow:function(t){var e=this.overflowX,i=this.overflowY;t=t||this.getScrollbarWidths(),"auto"===e&&(e=t.top||t.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===i&&(i=t.left||t.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":e,"overflow-y":i})},setHeight:function(t){this.scrollEl.height(t)},getScrollTop:function(){return this.scrollEl.scrollTop()},setScrollTop:function(t){this.scrollEl.scrollTop(t)},getClientWidth:function(){return this.scrollEl[0].clientWidth},getClientHeight:function(){return this.scrollEl[0].clientHeight},getScrollbarWidths:function(){return g(this.scrollEl)}});Ft.prototype.proxyCall=function(t){var e=Array.prototype.slice.call(arguments,1),i=[];return this.items.forEach(function(n){i.push(n[t].apply(n,e))}),i};var ke=Ut.Calendar=St.extend(fe,{view:null,viewsByType:null,currentDate:null,loadingLevel:0,constructor:function(t,e){we.needed(),this.el=t,this.viewsByType={},this.viewSpecCache={},this.initOptionsInternals(e),this.initMomentInternals(),this.initCurrentDate(),Gt.call(this),this.initialize()},initialize:function(){},getCalendar:function(){return this},getView:function(){return this.view},publiclyTrigger:function(t,e){var i=Array.prototype.slice.call(arguments,2),n=this.opt(t);if(e=e||this.el[0],this.triggerWith(t,e,i),n)return n.apply(e,i)},instantiateView:function(t){var e=this.getViewSpec(t);return new e["class"](this,e)},isValidViewType:function(t){return Boolean(this.getViewSpec(t))},changeView:function(t,e){e&&(e.start&&e.end?this.recordOptionOverrides({visibleRange:e}):this.currentDate=this.moment(e).stripZone()),this.renderView(t)},zoomTo:function(t,e){var i;e=e||"day",i=this.getViewSpec(e)||this.getUnitViewSpec(e),this.currentDate=t.clone(),this.renderView(i?i.type:null)},initCurrentDate:function(){var t=this.opt("defaultDate");this.currentDate=null!=t?this.moment(t).stripZone():this.getNow()},prev:function(){var t=this.view.buildPrevDateProfile(this.currentDate);t.isValid&&(this.currentDate=t.date,this.renderView())},next:function(){var t=this.view.buildNextDateProfile(this.currentDate);t.isValid&&(this.currentDate=t.date,this.renderView())},prevYear:function(){this.currentDate.add(-1,"years"),this.renderView()},nextYear:function(){this.currentDate.add(1,"years"),this.renderView()},today:function(){this.currentDate=this.getNow(),this.renderView()},gotoDate:function(t){this.currentDate=this.moment(t).stripZone(),this.renderView()},incrementDate:function(t){this.currentDate.add(e.duration(t)),this.renderView()},getDate:function(){return this.applyTimezone(this.currentDate)},pushLoading:function(){this.loadingLevel++||this.publiclyTrigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.publiclyTrigger("loading",null,!1,this.view)},select:function(t,e){this.view.select(this.buildSelectSpan.apply(this,arguments))},unselect:function(){this.view&&this.view.unselect()},buildSelectSpan:function(t,e){var i,n=this.moment(t).stripZone();return i=e?this.moment(e).stripZone():n.hasTime()?n.clone().add(this.defaultTimedEventDuration):n.clone().add(this.defaultAllDayEventDuration),{start:n,end:i}},parseRange:function(t){var e=null,i=null;return t.start&&(e=this.moment(t.start).stripZone()),t.end&&(i=this.moment(t.end).stripZone()),e||i?e&&i&&i.isBefore(e)?null:{start:e,end:i}:null},rerenderEvents:function(){this.elementVisible()&&this.reportEventChange()}});ke.mixin({dirDefaults:null,localeDefaults:null,overrides:null,dynamicOverrides:null,optionsModel:null,initOptionsInternals:function(e){this.overrides=t.extend({},e),this.dynamicOverrides={},this.optionsModel=new de,this.populateOptionsHash()},option:function(t,e){var i;if("string"==typeof t){if(void 0===e)return this.optionsModel.get(t);i={},i[t]=e,this.setOptions(i)}else"object"==typeof t&&this.setOptions(t)},opt:function(t){return this.optionsModel.get(t)},setOptions:function(t){var e,i=0;this.recordOptionOverrides(t);for(e in t)i++;if(1===i){if("height"===e||"contentHeight"===e||"aspectRatio"===e)return void this.updateSize(!0);if("defaultDate"===e)return;if("businessHours"===e)return void(this.view&&(this.view.unrenderBusinessHours(),this.view.renderBusinessHours()));if("timezone"===e)return this.rezoneArrayEventSources(),void this.refetchEvents()}this.renderHeader(),this.renderFooter(),this.viewsByType={},this.reinitView()},populateOptionsHash:function(){var t,e,n,s,o;t=dt(this.dynamicOverrides.locale,this.overrides.locale),e=Ee[t],e||(t=ke.defaults.locale,e=Ee[t]||{}),n=dt(this.dynamicOverrides.isRTL,this.overrides.isRTL,e.isRTL,ke.defaults.isRTL),s=n?ke.rtlDefaults:{},this.dirDefaults=s,this.localeDefaults=e,o=i([ke.defaults,s,e,this.overrides,this.dynamicOverrides]),Yt(o),this.optionsModel.reset(o)},recordOptionOverrides:function(t){var e;for(e in t)this.dynamicOverrides[e]=t[e];this.viewSpecCache={},this.populateOptionsHash()}}),ke.mixin({defaultAllDayEventDuration:null,defaultTimedEventDuration:null,localeData:null,initMomentInternals:function(){var t=this;this.defaultAllDayEventDuration=e.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=e.duration(this.opt("defaultTimedEventDuration")),this.optionsModel.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(e){var i,n=e.weekNumberCalculation,s=e.firstDay;"iso"===n&&(n="ISO");var o=st(Bt(e.locale));e.monthNames&&(o._months=e.monthNames),e.monthNamesShort&&(o._monthsShort=e.monthNamesShort),e.dayNames&&(o._weekdays=e.dayNames),e.dayNamesShort&&(o._weekdaysShort=e.dayNamesShort),null==s&&"ISO"===n&&(s=1),null!=s&&(i=st(o._week),i.dow=s,o._week=i),"ISO"!==n&&"local"!==n&&"function"!=typeof n||(o._fullCalendar_weekCalc=n),t.localeData=o,t.currentDate&&t.localizeMoment(t.currentDate)})},moment:function(){var t;return"local"===this.opt("timezone")?(t=Ut.moment.apply(null,arguments),t.hasTime()&&t.local()):t="UTC"===this.opt("timezone")?Ut.moment.utc.apply(null,arguments):Ut.moment.parseZone.apply(null,arguments),this.localizeMoment(t),t},localizeMoment:function(t){t._locale=this.localeData},getIsAmbigTimezone:function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},applyTimezone:function(t){if(!t.hasTime())return t.clone();var e,i=this.moment(t.toArray()),n=t.time()-i.time();return n&&(e=i.clone().add(n),t.time()-e.time()==0&&(i=e)),i},getNow:function(){var t=this.opt("now");return"function"==typeof t&&(t=t()),this.moment(t).stripZone()},humanizeDuration:function(t){return t.locale(this.opt("locale")).humanize()},getEventEnd:function(t){return t.end?t.end.clone():this.getDefaultEventEnd(t.allDay,t.start)},getDefaultEventEnd:function(t,e){var i=e.clone();return t?i.stripTime().add(this.defaultAllDayEventDuration):i.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&i.stripZone(),i}}),ke.mixin({viewSpecCache:null,getViewSpec:function(t){var e=this.viewSpecCache;return e[t]||(e[t]=this.buildViewSpec(t))},getUnitViewSpec:function(e){var i,n,s;if(-1!=t.inArray(e,Kt))for(i=this.header.getViewsWithButtons(),t.each(Ut.views,function(t){i.push(t)}),n=0;n<i.length;n++)if((s=this.getViewSpec(i[n]))&&s.singleUnit==e)return s},buildViewSpec:function(t){for(var n,s,o,r,a,l=this.overrides.views||{},d=[],u=[],c=[],h=t;h;)n=Zt[h],s=l[h],h=null,"function"==typeof n&&(n={"class":n}),n&&(d.unshift(n),u.unshift(n.defaults||{}),o=o||n.duration,h=h||n.type),s&&(c.unshift(s),o=o||s.duration,h=h||s.type);return n=nt(d),n.type=t,!!n["class"]&&(o=o||this.dynamicOverrides.duration||this.overrides.duration,o&&(r=e.duration(o),r.valueOf()&&(a=P(r,o),n.duration=r,n.durationUnit=a,1===r.as(a)&&(n.singleUnit=a,c.unshift(l[a]||{})))),n.defaults=i(u),n.overrides=i(c),this.buildViewSpecOptions(n),this.buildViewSpecButtonText(n,t),n)},buildViewSpecOptions:function(t){t.options=i([ke.defaults,t.defaults,this.dirDefaults,this.localeDefaults,this.overrides,t.overrides,this.dynamicOverrides]),Yt(t.options)},buildViewSpecButtonText:function(t,e){function i(i){var n=i.buttonText||{};return n[e]||(t.buttonTextKey?n[t.buttonTextKey]:null)||(t.singleUnit?n[t.singleUnit]:null)}t.buttonTextOverride=i(this.dynamicOverrides)||i(this.overrides)||t.overrides.buttonText,t.buttonTextDefault=i(this.localeDefaults)||i(this.dirDefaults)||t.defaults.buttonText||i(ke.defaults)||(t.duration?this.humanizeDuration(t.duration):null)||e}}),ke.mixin({el:null,contentEl:null,suggestedViewHeight:null,windowResizeProxy:null,ignoreWindowResize:0,render:function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.renderView()):this.initialRender()},initialRender:function(){var e=this,i=this.el;i.addClass("fc"),i.on("click.fc","a[data-goto]",function(i){var n=t(this),s=n.data("goto"),o=e.moment(s.date),r=s.type,a=e.view.opt("navLink"+pt(r)+"Click");"function"==typeof a?a(o,i):("string"==typeof a&&(r=a),e.zoomTo(o,r))}),this.optionsModel.watch("applyingThemeClasses",["?theme"],function(t){i.toggleClass("ui-widget",t.theme),i.toggleClass("fc-unthemed",!t.theme)}),this.optionsModel.watch("applyingDirClasses",["?isRTL","?locale"],function(t){i.toggleClass("fc-ltr",!t.isRTL),i.toggleClass("fc-rtl",t.isRTL)}),this.contentEl=t("<div class='fc-view-container'/>").prependTo(i),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&t(window).resize(this.windowResizeProxy=yt(this.windowResize.bind(this),this.opt("windowResizeDelay")))},destroy:function(){this.view&&this.view.removeElement(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),this.el.off(".fc"),this.windowResizeProxy&&(t(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),we.unneeded()},elementVisible:function(){return this.el.is(":visible")},renderView:function(e,i){this.ignoreWindowResize++;var n=this.view&&e&&this.view.type!==e;n&&(this.freezeContentHeight(),this.clearView()),!this.view&&e&&(this.view=this.viewsByType[e]||(this.viewsByType[e]=this.instantiateView(e)),this.view.setElement(t("<div class='fc-view fc-"+e+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",e)),this.view&&(i&&this.view.addForcedScroll(i),this.elementVisible()&&(this.currentDate=this.view.setDate(this.currentDate))),n&&this.thawContentHeight(),this.ignoreWindowResize--},clearView:function(){this.toolbarsManager.proxyCall("deactivateButton",this.view.type),this.view.removeElement(),this.view=null},reinitView:function(){this.ignoreWindowResize++,this.freezeContentHeight();var t=this.view.type,e=this.view.queryScroll();this.clearView(),this.calcSize(),this.renderView(t,e),this.thawContentHeight(),this.ignoreWindowResize--},getSuggestedViewHeight:function(){return null===this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},isHeightAuto:function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},updateSize:function(t){if(this.elementVisible())return t&&this._calcSize(),this.ignoreWindowResize++,this.view.updateSize(!0),this.ignoreWindowResize--,!0},calcSize:function(){this.elementVisible()&&this._calcSize()},_calcSize:function(){var t=this.opt("contentHeight"),e=this.opt("height");this.suggestedViewHeight="number"==typeof t?t:"function"==typeof t?t():"number"==typeof e?e-this.queryToolbarsHeight():"function"==typeof e?e()-this.queryToolbarsHeight():"parent"===e?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},windowResize:function(t){!this.ignoreWindowResize&&t.target===window&&this.view.renderRange&&this.updateSize(!0)&&this.view.publiclyTrigger("windowResize",this.el[0])},freezeContentHeight:function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},thawContentHeight:function(){this.contentEl.css({width:"",height:"",overflow:""})}}),ke.mixin({header:null,footer:null,toolbarsManager:null,initToolbars:function(){this.header=new qt(this,this.computeHeaderOptions()),this.footer=new qt(this,this.computeFooterOptions()),this.toolbarsManager=new Ft([this.header,this.footer])},computeHeaderOptions:function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},computeFooterOptions:function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},renderHeader:function(){var t=this.header;t.setToolbarOptions(this.computeHeaderOptions()),t.render(),t.el&&this.el.prepend(t.el)},renderFooter:function(){var t=this.footer;t.setToolbarOptions(this.computeFooterOptions()),t.render(),t.el&&this.el.append(t.el)},setToolbarsTitle:function(t){this.toolbarsManager.proxyCall("updateTitle",t)},updateToolbarButtons:function(){var t=this.getNow(),e=this.view,i=e.buildDateProfile(t),n=e.buildPrevDateProfile(this.currentDate),s=e.buildNextDateProfile(this.currentDate);this.toolbarsManager.proxyCall(i.isValid&&!U(t,e.currentRange)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(n.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(s.isValid?"enableButton":"disableButton","next")},queryToolbarsHeight:function(){return this.toolbarsManager.items.reduce(function(t,e){return t+(e.el?e.el.outerHeight(!0):0)},0)}}),ke.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",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,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"},allDayText:"all-day",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:100,longPressDelay:1e3},ke.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},ke.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"}};var Ee=Ut.locales={};Ut.datepickerLocale=function(e,i,n){var s=Ee[e]||(Ee[e]={});s.isRTL=n.isRTL,s.weekNumberTitle=n.weekHeader,t.each($e,function(t,e){s[t]=e(n)}),t.datepicker&&(t.datepicker.regional[i]=t.datepicker.regional[e]=n,t.datepicker.regional.en=t.datepicker.regional[""],t.datepicker.setDefaults(n))},Ut.locale=function(e,n){var s,o;s=Ee[e]||(Ee[e]={}),n&&(s=Ee[e]=i([s,n])),o=Bt(e),t.each(He,function(t,e){null==s[t]&&(s[t]=e(o,s))}),ke.defaults.locale=e};var $e={buttonText:function(t){return{prev:ct(t.prevText),next:ct(t.nextText),today:ct(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}},He={dayOfMonthFormat:function(t,e){var i=t.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),e.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(t){return t.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}},Me={smallDayDateFormat:function(t){return t.isRTL?"D dd":"dd D"},weekFormat:function(t){return t.isRTL?"w[ "+t.weekNumberTitle+"]":"["+t.weekNumberTitle+" ]w"},smallWeekFormat:function(t){return t.isRTL?"w["+t.weekNumberTitle+"]":"["+t.weekNumberTitle+"]w"}};Ut.locale("en",ke.englishDefaults),Ut.sourceNormalizers=[],Ut.sourceFetchers=[];var Re={dataType:"json",cache:!1},Ie=1;ke.prototype.mutateSeg=function(t,e){return this.mutateEvent(t.event,e)},ke.prototype.normalizeEvent=function(t){},ke.prototype.spanContainsSpan=function(t,e){var i=t.start.clone().stripZone(),n=this.getEventEnd(t).stripZone();return e.start>=i&&e.end<=n},ke.prototype.getPeerEvents=function(t,e){var i,n,s=this.getEventCache(),o=[];for(i=0;i<s.length;i++)n=s[i],e&&e._id===n._id||o.push(n);return o},ke.prototype.isEventSpanAllowed=function(t,e){var i=e.source||{},n=this.opt("eventAllow"),s=dt(e.constraint,i.constraint,this.opt("eventConstraint")),o=dt(e.overlap,i.overlap,this.opt("eventOverlap"));return this.isSpanAllowed(t,s,o,e)&&(!n||!1!==n(t,e))},ke.prototype.isExternalSpanAllowed=function(e,i,n){var s,o;return n&&(s=t.extend({},n,i),o=this.expandEvent(this.buildEventFromInput(s))[0]),o?this.isEventSpanAllowed(e,o):this.isSelectionSpanAllowed(e)},ke.prototype.isSelectionSpanAllowed=function(t){var e=this.opt("selectAllow");return this.isSpanAllowed(t,this.opt("selectConstraint"),this.opt("selectOverlap"))&&(!e||!1!==e(t))},ke.prototype.isSpanAllowed=function(t,e,i,n){var s,o,r,a,l,d;if(null!=e&&(s=this.constraintToEvents(e))){for(o=!1,a=0;a<s.length;a++)if(this.spanContainsSpan(s[a],t)){o=!0;break}if(!o)return!1}for(r=this.getPeerEvents(t,n),a=0;a<r.length;a++)if(l=r[a],this.eventIntersectsRange(l,t)){if(!1===i)return!1;if("function"==typeof i&&!i(l,n))return!1;if(n){if(!1===(d=dt(l.overlap,(l.source||{}).overlap)))return!1;if("function"==typeof d&&!d(n,l))return!1}}return!0},ke.prototype.constraintToEvents=function(t){return"businessHours"===t?this.getCurrentBusinessHourEvents():"object"==typeof t?null!=t.start?this.expandEvent(this.buildEventFromInput(t)):null:this.clientEvents(t)},ke.prototype.eventIntersectsRange=function(t,e){var i=t.start.clone().stripZone(),n=this.getEventEnd(t).stripZone();return e.start<n&&e.end>i};var Ae={id:"_fcBusinessHours",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"};ke.prototype.getCurrentBusinessHourEvents=function(t){return this.computeBusinessHourEvents(t,this.opt("businessHours"))},ke.prototype.computeBusinessHourEvents=function(e,i){return!0===i?this.expandBusinessHourEvents(e,[{}]):t.isPlainObject(i)?this.expandBusinessHourEvents(e,[i]):t.isArray(i)?this.expandBusinessHourEvents(e,i,!0):[]},ke.prototype.expandBusinessHourEvents=function(e,i,n){var s,o,r=this.getView(),a=[];for(s=0;s<i.length;s++)o=i[s],n&&!o.dow||(o=t.extend({},Ae,o),e&&(o.start=null,o.end=null),a.push.apply(a,this.expandEvent(this.buildEventFromInput(o),r.activeRange.start,r.activeRange.end)));return a};var Le=Ut.BasicView=Ce.extend({scroller:null,dayGridClass:Te,dayGrid:null,dayNumbersVisible:!1,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1,weekNumberWidth:null,headContainerEl:null,headRowEl:null,initialize:function(){this.dayGrid=this.instantiateDayGrid(),this.scroller=new De({overflowX:"hidden",overflowY:"auto"})},instantiateDayGrid:function(){return new(this.dayGridClass.extend(Oe))(this)},buildRenderRange:function(t,e){var i=Ce.prototype.buildRenderRange.apply(this,arguments);return/^(year|month)$/.test(e)&&(i.start.startOf("week"),i.end.weekday()&&i.end.add(1,"week").startOf("week")),this.trimHiddenDays(i)},renderDates:function(){this.dayGrid.breakOnWeeks=/year|month|week/.test(this.currentRangeUnit),this.dayGrid.setRange(this.renderRange),this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.opt("weekNumbers")&&(this.opt("weekNumbersWithinDays")?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0)),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.cellWeekNumbersVisible||this.colWeekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var e=this.scroller.el.addClass("fc-day-grid-container"),i=t('<div class="fc-day-grid" />').appendTo(e);this.el.find(".fc-body > tr > td").append(e),this.dayGrid.setElement(i),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(),this.scroller.destroy()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.dayGrid.unrenderBusinessHours()},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+'"></td></tr></tbody></table>'},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},updateWidth:function(){this.colWeekNumbersVisible&&(this.weekNumberWidth=d(this.el.find(".fc-week-number")))},setHeight:function(t,e){var i,o,r=this.opt("eventLimit");this.scroller.clear(),s(this.headRowEl),this.dayGrid.removeSegPopover(),r&&"number"==typeof r&&this.dayGrid.limitRows(r),i=this.computeScrollerHeight(t),this.setGridHeight(i,e),r&&"number"!=typeof r&&this.dayGrid.limitRows(r),e||(this.scroller.setHeight(i),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(n(this.headRowEl,o),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o))},computeScrollerHeight:function(t){return t-u(this.el,this.scroller.el)},setGridHeight:function(t,e){e?l(this.dayGrid.rowEls):a(this.dayGrid.rowEls,t,!0)},computeInitialDateScroll:function(){return{top:0}},queryDateScroll:function(){return{top:this.scroller.getScrollTop()}},applyDateScroll:function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},hitsNeeded:function(){this.dayGrid.hitsNeeded()},hitsNotNeeded:function(){this.dayGrid.hitsNotNeeded()},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(t,e){return this.dayGrid.queryHit(t,e)},getHitSpan:function(t){return this.dayGrid.getHitSpan(t)},getHitEl:function(t){return this.dayGrid.getHitEl(t)},renderEvents:function(t){this.dayGrid.renderEvents(t),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(t,e){return this.dayGrid.renderDrag(t,e)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(t){this.dayGrid.renderSelection(t)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),Oe={renderHeadIntroHtml:function(){var t=this.view;return t.colWeekNumbersVisible?'<th class="fc-week-number '+t.widgetHeaderClass+'" '+t.weekNumberStyleAttr()+"><span>"+ut(t.opt("weekNumberTitle"))+"</span></th>":""},renderNumberIntroHtml:function(t){var e=this.view,i=this.getCellDate(t,0);return e.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+">"+e.buildGotoAnchorHtml({date:i,type:"week",forceOff:1===this.colCnt},i.format("w"))+"</td>":""},renderBgIntroHtml:function(){var t=this.view;return t.colWeekNumbersVisible?'<td class="fc-week-number '+t.widgetContentClass+'" '+t.weekNumberStyleAttr()+"></td>":""},renderIntroHtml:function(){var t=this.view;return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""}},ze=Ut.MonthView=Le.extend({buildRenderRange:function(){var t,e=Le.prototype.buildRenderRange.apply(this,arguments);return this.isFixedWeeks()&&(t=Math.ceil(e.end.diff(e.start,"weeks",!0)),e.end.add(6-t,"weeks")),e},setGridHeight:function(t,e){e&&(t*=this.rowCnt/6),a(this.dayGrid.rowEls,t,!e)},isFixedWeeks:function(){return this.opt("fixedWeekCount")}});Zt.basic={"class":Le},Zt.basicDay={type:"basic",duration:{days:1}},Zt.basicWeek={type:"basic",duration:{weeks:1}},Zt.month={"class":ze,duration:{months:1},defaults:{fixedWeekCount:!0}};var Ne=Ut.AgendaView=Ce.extend({scroller:null,timeGridClass:xe,timeGrid:null,dayGridClass:Te,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,usesMinMaxTime:!0,initialize:function(){this.timeGrid=this.instantiateTimeGrid(),this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid()),this.scroller=new De({overflowX:"hidden",overflowY:"auto"})},instantiateTimeGrid:function(){return new(this.timeGridClass.extend(je))(this)},instantiateDayGrid:function(){return new(this.dayGridClass.extend(Pe))(this)},renderDates:function(){this.timeGrid.setRange(this.renderRange),this.dayGrid&&this.dayGrid.setRange(this.renderRange),this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var e=this.scroller.el.addClass("fc-time-grid-container"),i=t('<div class="fc-time-grid" />').appendTo(e);this.el.find(".fc-body > tr > td").append(e),this.timeGrid.setElement(i),this.timeGrid.renderDates(),this.bottomRuleEl=t('<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()),this.scroller.destroy()},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+'"/>':"")+"</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(t){this.timeGrid.renderNowIndicator(t)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(t){this.timeGrid.updateSize(t),Ce.prototype.updateSize.call(this,t)},updateWidth:function(){this.axisWidth=d(this.el.find(".fc-axis"))},setHeight:function(t,e){var i,o,r;this.bottomRuleEl.hide(),this.scroller.clear(),s(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),i=this.opt("eventLimit"),i&&"number"!=typeof i&&(i=We),i&&this.dayGrid.limitRows(i)),e||(o=this.computeScrollerHeight(t),this.scroller.setHeight(o),r=this.scroller.getScrollbarWidths(),(r.left||r.right)&&(n(this.noScrollRowEls,r),o=this.computeScrollerHeight(t),this.scroller.setHeight(o)),this.scroller.lockOverflow(r),this.timeGrid.getTotalSlatHeight()<o&&this.bottomRuleEl.show())},computeScrollerHeight:function(t){return t-u(this.el,this.scroller.el)},computeInitialDateScroll:function(){var t=e.duration(this.opt("scrollTime")),i=this.timeGrid.computeTimeTop(t);return i=Math.ceil(i),i&&i++,{top:i}},queryDateScroll:function(){return{top:this.scroller.getScrollTop()}},applyDateScroll:function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},hitsNeeded:function(){this.timeGrid.hitsNeeded(),this.dayGrid&&this.dayGrid.hitsNeeded()},hitsNotNeeded:function(){this.timeGrid.hitsNotNeeded(),this.dayGrid&&this.dayGrid.hitsNotNeeded()},prepareHits:function(){this.timeGrid.prepareHits(),this.dayGrid&&this.dayGrid.prepareHits()},releaseHits:function(){this.timeGrid.releaseHits(),this.dayGrid&&this.dayGrid.releaseHits()},queryHit:function(t,e){var i=this.timeGrid.queryHit(t,e);return!i&&this.dayGrid&&(i=this.dayGrid.queryHit(t,e)),i},getHitSpan:function(t){return t.component.getHitSpan(t)},getHitEl:function(t){return t.component.getHitEl(t)},renderEvents:function(t){var e,i=[],n=[];for(e=0;e<t.length;e++)t[e].allDay?i.push(t[e]):n.push(t[e]);this.timeGrid.renderEvents(n),this.dayGrid&&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(t,e){return t.start.hasTime()?this.timeGrid.renderDrag(t,e):this.dayGrid?this.dayGrid.renderDrag(t,e):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag(),this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(t){t.start.hasTime()||t.end.hasTime()?this.timeGrid.renderSelection(t):this.dayGrid&&this.dayGrid.renderSelection(t)},unrenderSelection:function(){this.timeGrid.unrenderSelection(),this.dayGrid&&this.dayGrid.unrenderSelection()}}),je={renderHeadIntroHtml:function(){var t,e=this.view;return e.opt("weekNumbers")?(t=this.start.format(e.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+e.widgetHeaderClass+'" '+e.axisStyleAttr()+">"+e.buildGotoAnchorHtml({date:this.start,type:"week",forceOff:this.colCnt>1},ut(t))+"</th>"):'<th class="fc-axis '+e.widgetHeaderClass+'" '+e.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.widgetContentClass+'" '+t.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},Pe={renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.widgetContentClass+'" '+t.axisStyleAttr()+"><span>"+t.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},We=5,Fe=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];Zt.agenda={"class":Ne,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}},Zt.agendaDay={type:"agenda",duration:{days:1}},Zt.agendaWeek={type:"agenda",duration:{weeks:1}};var qe=Ce.extend({grid:null,scroller:null,initialize:function(){this.grid=new Ye(this),this.scroller=new De({overflowX:"hidden",overflowY:"auto"})},renderSkeleton:function(){this.el.addClass("fc-list-view "+this.widgetContentClass),this.scroller.render(),this.scroller.el.appendTo(this.el),this.grid.setElement(this.scroller.scrollEl)},unrenderSkeleton:function(){this.scroller.destroy()},setHeight:function(t,e){this.scroller.setHeight(this.computeScrollerHeight(t))},computeScrollerHeight:function(t){return t-u(this.el,this.scroller.el)},renderDates:function(){this.grid.setRange(this.renderRange)},renderEvents:function(t){this.grid.renderEvents(t);
},unrenderEvents:function(){this.grid.unrenderEvents()},isEventResizable:function(t){return!1},isEventDraggable:function(t){return!1}}),Ye=Se.extend({segSelector:".fc-list-item",hasDayInteractions:!1,spanToSegs:function(t){for(var e,i=this.view,n=i.renderRange.start.clone().time(0),s=0,o=[];n<i.renderRange.end;)if(e=L(t,{start:n,end:n.clone().add(1,"day")}),e&&(e.dayIndex=s,o.push(e)),n.add(1,"day"),s++,e&&!e.isEnd&&t.end.hasTime()&&t.end<n.clone().add(this.view.nextDayThreshold)){e.end=t.end.clone(),e.isEnd=!0;break}return o},computeEventTimeFormat:function(){return this.view.opt("mediumTimeFormat")},handleSegClick:function(e,i){var n;Se.prototype.handleSegClick.apply(this,arguments),t(i.target).closest("a[href]").length||(n=e.event.url)&&!i.isDefaultPrevented()&&(window.location.href=n)},renderFgSegs:function(t){return t=this.renderFgSegEls(t),t.length?this.renderSegList(t):this.renderEmptyMessage(),t},renderEmptyMessage:function(){this.el.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+ut(this.view.opt("noEventsMessage"))+"</div></div></div>")},renderSegList:function(e){var i,n,s,o=this.groupSegsByDay(e),r=t('<table class="fc-list-table"><tbody/></table>'),a=r.find("tbody");for(i=0;i<o.length;i++)if(n=o[i])for(a.append(this.dayHeaderHtml(this.view.renderRange.start.clone().add(i,"days"))),this.sortEventSegs(n),s=0;s<n.length;s++)a.append(n[s].el);this.el.empty().append(r)},groupSegsByDay:function(t){var e,i,n=[];for(e=0;e<t.length;e++)i=t[e],(n[i.dayIndex]||(n[i.dayIndex]=[])).push(i);return n},dayHeaderHtml:function(t){var e=this.view,i=e.opt("listDayFormat"),n=e.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+t.format("YYYY-MM-DD")+'"><td class="'+e.widgetHeaderClass+'" colspan="3">'+(i?e.buildGotoAnchorHtml(t,{"class":"fc-list-heading-main"},ut(t.format(i))):"")+(n?e.buildGotoAnchorHtml(t,{"class":"fc-list-heading-alt"},ut(t.format(n))):"")+"</td></tr>"},fgSegHtml:function(t){var e,i=this.view,n=["fc-list-item"].concat(this.getSegCustomClasses(t)),s=this.getSegBackgroundColor(t),o=t.event,r=o.url;return e=o.allDay?i.getAllDayHtml():i.isMultiDayEvent(o)?t.isStart||t.isEnd?ut(this.getEventTimeText(t)):i.getAllDayHtml():ut(this.getEventTimeText(o)),r&&n.push("fc-has-url"),'<tr class="'+n.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+i.widgetContentClass+'">'+(e||"")+"</td>":"")+'<td class="fc-list-item-marker '+i.widgetContentClass+'"><span class="fc-event-dot"'+(s?' style="background-color:'+s+'"':"")+'></span></td><td class="fc-list-item-title '+i.widgetContentClass+'"><a'+(r?' href="'+ut(r)+'"':"")+">"+ut(t.event.title||"")+"</a></td></tr>"}});return Zt.list={"class":qe,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}},Zt.listDay={type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}},Zt.listWeek={type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}},Zt.listMonth={type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}},Zt.listYear={type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}},Ut}),!function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,s=i[n];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];s;){var r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e),n+=r?0:1,s=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function s(t,e,o){return this instanceof s?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?o=e:i(this.options,e),o&&this.on("always",o),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(function(){this.check()}.bind(this))):new s(t,e,o)}function o(t){this.img=t}function r(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,l=t.console;s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var d={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new o(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var i=new r(t,e);this.images.push(i)},s.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},o.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},o.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(o.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(a=e,a.fn.imagesLoaded=function(t,e){var i=new s(this,t,e);return i.jqDeferred.promise(a(this))})},s.makeJQueryPlugin(),s}),!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,o,a){function l(t,e,n){var s,o="$()."+i+'("'+e+'")';return t.each(function(t,l){var d=a.data(l,i);if(!d)return void r(i+" not initialized. Cannot call methods, i.e. "+o);var u=d[e];if(!u||"_"==e.charAt(0))return void r(o+" is not a valid method");var c=u.apply(d,n);s=void 0===s?c:s}),void 0!==s?s:t}function d(t,e){t.each(function(t,n){var s=a.data(n,i);s?(s.option(e),s._init()):(s=new o(n,e),a.data(n,i,s))})}a=a||e||t.jQuery,a&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=s.call(arguments,1);return l(this,t,e)}return d(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var s=Array.prototype.slice,o=t.console,r="undefined"==typeof o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,s=i[n];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];s;){var r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e),n+=r?0:1,s=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<d;e++){var i=l[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function s(){if(!u){u=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var s=n(e);o.isBoxSizeOuter=r=200==t(s.width),i.removeChild(e)}}function o(e){if(s(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var o=n(e);if("none"==o.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var u=a.isBorderBox="border-box"==o.boxSizing,c=0;c<d;c++){var h=l[c],f=o[h],p=parseFloat(f);a[h]=isNaN(p)?0:p}var g=a.paddingLeft+a.paddingRight,m=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,w=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,S=u&&r,_=t(o.width);_!==!1&&(a.width=_+(S?0:g+w));var T=t(o.height);return T!==!1&&(a.height=T+(S?0:m+b)),a.innerWidth=a.width-(g+w),a.innerHeight=a.height-(m+b),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],d=l.length,u=!1;return o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],s=n+"MatchesSelector";if(t[s])return s}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void s.push(t);e(t,n)&&s.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)s.push(i[o])}}),s},i.debounceMethod=function(t,e,i){var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];t&&clearTimeout(t);var e=arguments,o=this;this[s]=setTimeout(function(){n.apply(o,e),delete o[s]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,s){i.docReady(function(){var o=i.toDashed(s),r="data-"+o,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+o),d=i.makeArray(a).concat(i.makeArray(l)),u=r+"-options",c=t.jQuery;d.forEach(function(t){var i,o=t.getAttribute(r)||t.getAttribute(u);try{i=o&&JSON.parse(o)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var l=new e(t,i);c&&c.data(t,s,l)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function s(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var o=document.documentElement.style,r="string"==typeof o.transition?"transition":"WebkitTransition",a="string"==typeof o.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],d={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},u=n.prototype=Object.create(t.prototype);u.constructor=n,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){var n=d[i]||i;e[n]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],s=t[i?"top":"bottom"],o=this.layout.size,r=n.indexOf("%")!=-1?parseFloat(n)/100*o.width:parseInt(n,10),a=s.indexOf("%")!=-1?parseFloat(s)/100*o.height:parseInt(s,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?o.paddingLeft:o.paddingRight,a-=i?o.paddingTop:o.paddingBottom,this.position.x=r,this.position.y=a},u.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=i?"paddingLeft":"paddingRight",o=i?"left":"right",r=i?"right":"left",a=this.position.x+t[s];e[o]=this.getXValue(a),e[r]="";var l=n?"paddingTop":"paddingBottom",d=n?"top":"bottom",u=n?"bottom":"top",c=this.position.y+t[l];e[d]=this.getYValue(c),e[u]="",this.css(e),this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,s=parseInt(t,10),o=parseInt(e,10),r=s===this.position.x&&o===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,l=e-n,d={};d.transform=this.getTranslate(a,l),this.transition({to:d,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},u._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var c="opacity,"+s(a);u.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var s=e.onEnd[n];s.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},u._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(f)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,s,o){return e(t,i,n,s,o)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,s){"use strict";function o(t,e){var i=n.getQueryElement(t);if(!i)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,d&&(this.$element=d(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var s=++c;this.element.outlayerGUID=s,h[s]=this,this._create();var o=this._getOption("initLayout");o&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var s=p[n]||1;return i*s}var l=t.console,d=t.jQuery,u=function(){},c=0,h={};o.namespace="outlayer",o.Item=s,o.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=o.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],s=0;s<e.length;s++){var o=e[s],r=new i(o,this);n.push(r)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,s=this.options[t];s?("string"==typeof s?n=this.element.querySelector(s):s instanceof HTMLElement&&(n=s),this[t]=n?i(n)[e]:s):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,s){n?t.goTo(e,i):(t.stagger(s*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=u,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){s.dispatchEvent(t+"Complete",null,[e])}function n(){r++,r==o&&i()}var s=this,o=e.length;if(!e||!o)return void i();var r=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),d)if(this.$element=this.$element||d(this.element),e){var s=d.Event(e);s.type=t,this.$element.trigger(s,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=u,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,s=i(t),o={left:e.left-n.left-s.marginLeft,top:e.top-n.top-s.marginTop,right:n.right-e.right-s.marginRight,bottom:n.bottom-e.bottom-s.marginBottom};return o},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(o,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete h[e],delete this.element.outlayerGUID,d&&d.removeData(this.element,this.constructor.namespace)},o.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&h[e]},o.create=function(t,e){var i=r(o);return i.defaults=n.extend({},o.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},o.compatOptions),i.namespace=t,i.data=o.data,i.Item=r(s),n.htmlInit(i,t),d&&d.bridget&&d.bridget(t,i),i};var p={ms:1,s:1e3};return o.Item=s,o}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var s=i.destroy;return i.destroy=function(){s.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype,s=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return s.forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var s=this.getFirstItemSize();this[i]=s&&s[n]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function s(){i.apply(this,arguments)}return s.prototype=Object.create(n),s.prototype.constructor=s,
e&&(s.options=e),s.prototype.namespace=t,i.modes[t]=s,s},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,s=this.containerWidth+this.gutter,o=s/n,r=n-s%n,a=r&&r<1?"round":"floor";o=Math[a](o),this.cols=Math.max(o,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var s=this._getColGroup(n),o=Math.min.apply(Math,s),r=s.indexOf(o),a={x:this.columnWidth*r,y:o},l=o+t.size.outerHeight,d=this.cols+1-s.length,u=0;u<d;u++)this.colYs[r+u]=l;return a},i.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var s=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,s)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),s=this._getOption("originLeft"),o=s?n.left:n.right,r=o+i.outerWidth,a=Math.floor(o/this.columnWidth);a=Math.max(0,a);var l=Math.floor(r/this.columnWidth);l-=r%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var d=this._getOption("originTop"),u=(d?n.top:n.bottom)+i.outerHeight,c=a;c<=l;c++)this.colYs[c]=Math.max(u,this.colYs[c])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,s={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var o in e.prototype)s[o]||(n[o]=e.prototype[o]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,s,o,r,a){return e(t,i,n,s,o,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,n,s,o,r){function a(t,e){return function(i,n){for(var s=0;s<t.length;s++){var o=t[s],r=i.sortData[o],a=n.sortData[o];if(r>a||r<a){var l=void 0!==e[o]?e[o]:e,d=l?1:-1;return(r>a?1:-1)*d}}return 0}}var l=t.jQuery,d=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=o,u.LayoutMode=r;var c=u.prototype;c._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},c.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},c._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var n=t[i];n.id=this.itemGUID++}return this._updateItemsSortData(t),t},c._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?s.extend(e.options,i):i,this.modes[t]=new e(this)},c.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},c._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},c.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},c._init=c.arrange,c._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},c._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},c._bindArrangeComplete=function(){function t(){e&&i&&n&&s.dispatchEvent("arrangeComplete",null,[s.filteredItems])}var e,i,n,s=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},c._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],s=[],o=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var l=o(a);l&&i.push(a),l&&a.isHidden?n.push(a):l||a.isHidden||s.push(a)}}return{matches:i,needReveal:n,needHide:s}},c._getFilterTest=function(t){return l&&this.options.isJQueryFiltering?function(e){return l(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},c.updateSortData=function(t){var e;t?(t=s.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},c._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=h(i)}},c._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var h=function(){function t(t){if("string"!=typeof t)return t;var i=d(t).split(" "),n=i[0],s=n.match(/^\[(.+)\]$/),o=s&&s[1],r=e(o,n),a=u.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},c._sort=function(){if(this.options.sortBy){var t=s.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},c._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},c._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},c._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},c._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},c._manageStamp=function(t){this._mode()._manageStamp(t)},c._getContainerSize=function(){return this._mode()._getContainerSize()},c.needsResizeLayout=function(){return this._mode().needsResizeLayout()},c.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},c.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},c._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},c.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,s=e.length;for(i=0;i<s;i++)n=e[i],this.element.appendChild(n.element);var o=this._filter(e).matches;for(i=0;i<s;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<s;i++)delete e[i].isLayoutInstant;this.reveal(o)}};var f=c.remove;return c.remove=function(t){t=s.makeArray(t);var e=this.getItems(t);f.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];s.removeFrom(this.filteredItems,o)}},c.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},c._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},c.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}),!function(t,e,i){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)}(function(n){"use strict";function s(t,e,i,s){this.id=i,this.target=t,this.tooltip=M,this.elements={target:t},this._id=Y+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:n(),disabled:H,attr:s,onTooltip:H,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=H}function o(t){return t===M||"object"!==n.type(t)}function r(t){return!(n.isFunction(t)||t&&t.attr||t.length||"object"===n.type(t)&&(t.jquery||t.then))}function a(t){var e,i,s,a;return o(t)?H:(o(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(e=t.content,o(e)||e.jquery||e.done?(i=r(e)?H:e,e=t.content={text:i}):i=e.text,"ajax"in e&&(s=e.ajax,a=s&&s.once!==H,delete e.ajax,e.text=function(t,e){var o=i||n(this).attr(e.options.content.attr)||"Loading...",r=n.ajax(n.extend({},s,{context:e})).then(s.success,M,s.error).then(function(t){return t&&a&&e.set("content.text",t),t},function(t,i,n){e.destroyed||0===t.status||e.set("content.text",i+": "+n)});return a?o:(e.set("content.text",o),r)}),"title"in e&&(n.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),r(e.title||H)&&(e.title=H))),"position"in t&&o(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&o(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===$?{ready:$}:{event:t.show}),"hide"in t&&o(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&o(t.style)&&(t.style={classes:t.style}),n.each(q,function(){this.sanitize&&this.sanitize(t)}),t)}function l(t,e){for(var i,n=0,s=t,o=e.split(".");s=s[o[n++]];)n<o.length&&(i=s);return[i||t,o.pop()]}function d(t,e){var i,n,s;for(i in this.checks)if(this.checks.hasOwnProperty(i))for(n in this.checks[i])this.checks[i].hasOwnProperty(n)&&(s=new RegExp(n,"i").exec(t))&&(e.push(s),("builtin"===i||this.plugins[i])&&this.checks[i][n].apply(this.plugins[i]||this,e))}function u(t){return V.concat("").join(t?"-"+t+" ":" ")}function c(t,e){return e>0?setTimeout(n.proxy(t,this),e):void t.call(this)}function h(t){this.tooltip.hasClass(tt)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=c.call(this,function(){this.toggle($,t)},this.options.show.delay))}function f(t){if(!this.tooltip.hasClass(tt)&&!this.destroyed){var e=n(t.relatedTarget),i=e.closest(U)[0]===this.tooltip[0],s=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||s))try{t.preventDefault(),t.stopImmediatePropagation()}catch(o){}else this.timers.hide=c.call(this,function(){this.toggle(H,t)},this.options.hide.delay,this)}}function p(t){!this.tooltip.hasClass(tt)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=c.call(this,function(){this.hide(t)},this.options.hide.inactive))}function g(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}function m(t,i,s){n(e.body).delegate(t,(i.split?i:i.join("."+Y+" "))+"."+Y,function(){var t=x.api[n.attr(this,G)];t&&!t.disabled&&s.apply(t,arguments)})}function v(t,i,o){var r,l,d,u,c,h=n(e.body),f=t[0]===e?h:t,p=t.metadata?t.metadata(o.metadata):M,g="html5"===o.metadata.type&&p?p[o.metadata.name]:M,m=t.data(o.metadata.name||"qtipopts");try{m="string"==typeof m?n.parseJSON(m):m}catch(v){}if(u=n.extend($,{},x.defaults,o,"object"==typeof m?a(m):M,a(g||p)),l=u.position,u.id=i,"boolean"==typeof u.content.text){if(d=t.attr(u.content.attr),u.content.attr===H||!d)return H;u.content.text=d}if(l.container.length||(l.container=h),l.target===H&&(l.target=f),u.show.target===H&&(u.show.target=f),u.show.solo===$&&(u.show.solo=l.container.closest("body")),u.hide.target===H&&(u.hide.target=f),u.position.viewport===$&&(u.position.viewport=l.container),l.container=l.container.eq(0),l.at=new D(l.at,$),l.my=new D(l.my),t.data(Y))if(u.overwrite)t.qtip("destroy",!0);else if(u.overwrite===H)return H;return t.attr(B,i),u.suppress&&(c=t.attr("title"))&&t.removeAttr("title").attr(it,c).attr("title",""),r=new s(t,u,i,(!!d)),t.data(Y,r),r}function y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t,e){var n,s,o=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+St.join(o+" ")+o).split(" "),a=0;if(bt[e])return t.css(bt[e]);for(;n=r[a++];)if((s=t.css(n))!==i)return bt[e]=n,s}function b(t,e){return Math.ceil(parseFloat(w(t,e)))}function S(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.qtip=t,this.init(t)}function _(t,e){this.options=e,this._ns="-modal",this.qtip=t,this.init(t)}function T(t){this._ns="ie6",this.qtip=t,this.init(t)}var x,C,D,k,E,$=!0,H=!1,M=null,R="x",I="y",A="width",L="height",O="top",z="left",N="bottom",j="right",P="center",W="flipinvert",F="shift",q={},Y="qtip",B="data-hasqtip",G="data-qtip-id",V=["ui-widget","ui-tooltip"],U="."+Y,Z="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),X=Y+"-fixed",Q=Y+"-default",J=Y+"-focus",K=Y+"-hover",tt=Y+"-disabled",et="_replacedByqTip",it="oldtitle",nt={ie:function(){var t,i;for(t=4,i=e.createElement("div");(i.innerHTML="<!--[if gt IE "+t+"]><i></i><![endif]-->")&&i.getElementsByTagName("i")[0];t+=1);return t>4?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||H};C=s.prototype,C._when=function(t){return n.when.apply(n,t)},C.render=function(t){if(this.rendered||this.destroyed)return this;var e=this,i=this.options,s=this.cache,o=this.elements,r=i.content.text,a=i.content.title,l=i.content.button,d=i.position,u=[];return n.attr(this.target[0],"aria-describedby",this._id),s.posClass=this._createPosClass((this.position={my:d.my,at:d.at}).my),this.tooltip=o.tooltip=n("<div/>",{id:this._id,"class":[Y,Q,i.style.classes,s.posClass].join(" "),width:i.style.width||"",height:i.style.height||"",tracking:"mouse"===d.target&&d.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":H,"aria-describedby":this._id+"-content","aria-hidden":$}).toggleClass(tt,this.disabled).attr(G,this.id).data(Y,this).appendTo(d.container).append(o.content=n("<div />",{"class":Y+"-content",id:this._id+"-content","aria-atomic":$})),this.rendered=-1,this.positioning=$,a&&(this._createTitle(),n.isFunction(a)||u.push(this._updateTitle(a,H))),l&&this._createButton(),n.isFunction(r)||u.push(this._updateContent(r,H)),this.rendered=$,this._setWidget(),n.each(q,function(t){var i;"render"===this.initialize&&(i=this(e))&&(e.plugins[t]=i)}),this._unassignEvents(),this._assignEvents(),this._when(u).then(function(){e._trigger("render"),e.positioning=H,e.hiddenDuringWait||!i.show.ready&&!t||e.toggle($,s.event,H),e.hiddenDuringWait=H}),x.api[this.id]=this,this},C.destroy=function(t){function e(){if(!this.destroyed){this.destroyed=$;var t,e=this.target,i=e.attr(it);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),n.each(this.plugins,function(){this.destroy&&this.destroy()});for(t in this.timers)this.timers.hasOwnProperty(t)&&clearTimeout(this.timers[t]);e.removeData(Y).removeAttr(G).removeAttr(B).removeAttr("aria-describedby"),this.options.suppress&&i&&e.attr("title",i).removeAttr(it),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=M,delete x.api[this.id]}}return this.destroyed?this.target:(t===$&&"hide"!==this.triggering||!this.rendered?e.call(this):(this.tooltip.one("tooltiphidden",n.proxy(e,this)),!this.triggering&&this.hide()),this.target)},k=C.checks={builtin:{"^id$":function(t,e,i,s){var o=i===$?x.nextid:i,r=Y+"-"+o;o!==H&&o.length>0&&!n("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=s},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,n){this.options.content.text===this.target.attr(n)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){return i?(i&&!this.elements.title&&this._createTitle(),void this._updateTitle(i)):this._removeTitle()},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(this.position[e]=t[e]=new D(i,"at"===e))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render($)||this.toggle($))},"^style.classes$":function(t,e,i,n){this.rendered&&this.tooltip.removeClass(n).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(Q,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(n.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},C.get=function(t){if(this.destroyed)return this;var e=l(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var st=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,ot=/^prerender|show\.ready/i;C.set=function(t,e){if(this.destroyed)return this;var i,s=this.rendered,o=H,r=this.options;return"string"==typeof t?(i=t,t={},t[i]=e):t=n.extend({},t),n.each(t,function(e,i){if(s&&ot.test(e))return void delete t[e];var a,d=l(r,e.toLowerCase());a=d[0][d[1]],d[0][d[1]]=i&&i.nodeType?n(i):i,o=st.test(e)||o,t[e]=[d[0],d[1],i,a]}),a(r),this.positioning=$,n.each(t,n.proxy(d,this)),this.positioning=H,this.rendered&&this.tooltip[0].offsetWidth>0&&o&&this.reposition("mouse"===r.position.target?M:this.cache.event),this},C._update=function(t,e){var i=this,s=this.cache;return this.rendered&&t?(n.isFunction(t)&&(t=t.call(this.elements.target,s.event,this)||""),n.isFunction(t.then)?(s.waiting=$,t.then(function(t){return s.waiting=H,i._update(t,e)},M,function(t){return i._update(t,e)})):t===H||!t&&""!==t?H:(t.jquery&&t.length>0?e.empty().append(t.css({display:"block",visibility:"visible"})):e.html(t),this._waitForContent(e).then(function(t){i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(s.event,!t.length)}))):H},C._waitForContent=function(t){var e=this.cache;return e.waiting=$,(n.fn.imagesLoaded?t.imagesLoaded():(new n.Deferred).resolve([])).done(function(){e.waiting=H}).promise()},C._updateContent=function(t,e){this._update(t,this.elements.content,e)},C._updateTitle=function(t,e){this._update(t,this.elements.title,e)===H&&this._removeTitle(H)},C._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=n("<div />",{"class":Y+"-titlebar "+(this.options.style.widget?u("header"):"")}).append(t.title=n("<div />",{id:e,"class":Y+"-title","aria-atomic":$})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){n(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){n(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},C._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=M,t!==H&&this.reposition())},C._createPosClass=function(t){return Y+"-pos-"+(t||this.options.position.my).abbrev()},C.reposition=function(i,s){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=$;var o,r,a,l,d=this.cache,u=this.tooltip,c=this.options.position,h=c.target,f=c.my,p=c.at,g=c.viewport,m=c.container,v=c.adjust,y=v.method.split(" "),w=u.outerWidth(H),b=u.outerHeight(H),S=0,_=0,T=u.css("position"),x={left:0,top:0},C=u[0].offsetWidth>0,D=i&&"scroll"===i.type,k=n(t),E=m[0].ownerDocument,M=this.mouse;if(n.isArray(h)&&2===h.length)p={x:z,y:O},x={left:h[0],top:h[1]};else if("mouse"===h)p={x:z,y:O},(!v.mouse||this.options.hide.distance)&&d.origin&&d.origin.pageX?i=d.origin:!i||i&&("resize"===i.type||"scroll"===i.type)?i=d.event:M&&M.pageX&&(i=M),"static"!==T&&(x=m.offset()),E.body.offsetWidth!==(t.innerWidth||E.documentElement.clientWidth)&&(r=n(e.body).offset()),x={left:i.pageX-x.left+(r&&r.left||0),top:i.pageY-x.top+(r&&r.top||0)},v.mouse&&D&&M&&(x.left-=(M.scrollX||0)-k.scrollLeft(),x.top-=(M.scrollY||0)-k.scrollTop());else{if("event"===h?i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?d.target=n(i.target):i.target||(d.target=this.elements.target):"event"!==h&&(d.target=n(h.jquery?h:this.elements.target)),h=d.target,h=n(h).eq(0),0===h.length)return this;h[0]===e||h[0]===t?(S=nt.iOS?t.innerWidth:h.width(),_=nt.iOS?t.innerHeight:h.height(),h[0]===t&&(x={top:(g||h).scrollTop(),left:(g||h).scrollLeft()})):q.imagemap&&h.is("area")?o=q.imagemap(this,h,p,q.viewport?y:H):q.svg&&h&&h[0].ownerSVGElement?o=q.svg(this,h,p,q.viewport?y:H):(S=h.outerWidth(H),_=h.outerHeight(H),x=h.offset()),o&&(S=o.width,_=o.height,r=o.offset,x=o.position),x=this.reposition.offset(h,x,m),(nt.iOS>3.1&&nt.iOS<4.1||nt.iOS>=4.3&&nt.iOS<4.33||!nt.iOS&&"fixed"===T)&&(x.left-=k.scrollLeft(),x.top-=k.scrollTop()),(!o||o&&o.adjustable!==H)&&(x.left+=p.x===j?S:p.x===P?S/2:0,x.top+=p.y===N?_:p.y===P?_/2:0)}return x.left+=v.x+(f.x===j?-w:f.x===P?-w/2:0),x.top+=v.y+(f.y===N?-b:f.y===P?-b/2:0),q.viewport?(a=x.adjusted=q.viewport(this,x,c,S,_,w,b),r&&a.left&&(x.left+=r.left),r&&a.top&&(x.top+=r.top),a.my&&(this.position.my=a.my)):x.adjusted={left:0,top:0},d.posClass!==(l=this._createPosClass(this.position.my))&&(d.posClass=l,u.removeClass(d.posClass).addClass(l)),this._trigger("move",[x,g.elem||g],i)?(delete x.adjusted,s===H||!C||isNaN(x.left)||isNaN(x.top)||"mouse"===h||!n.isFunction(c.effect)?u.css(x):n.isFunction(c.effect)&&(c.effect.call(u,this,n.extend({},x)),u.queue(function(t){n(this).css({opacity:"",height:""}),nt.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=H,this):this},C.reposition.offset=function(t,i,s){function o(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}if(!s[0])return i;var r,a,l,d,u=n(t[0].ownerDocument),c=!!nt.ie&&"CSS1Compat"!==e.compatMode,h=s[0];do"static"!==(a=n.css(h,"position"))&&("fixed"===a?(l=h.getBoundingClientRect(),o(u,-1)):(l=n(h).position(),l.left+=parseFloat(n.css(h,"borderLeftWidth"))||0,l.top+=parseFloat(n.css(h,"borderTopWidth"))||0),i.left-=l.left+(parseFloat(n.css(h,"marginLeft"))||0),i.top-=l.top+(parseFloat(n.css(h,"marginTop"))||0),r||"hidden"===(d=n.css(h,"overflow"))||"visible"===d||(r=n(h)));while(h=h.offsetParent);return r&&(r[0]!==u[0]||c)&&o(r,1),i};var rt=(D=C.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,P).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?I:R}).prototype;rt.invert=function(t,e){this[t]=this[t]===z?j:this[t]===j?z:e||this[t]},rt.string=function(t){var e=this.x,i=this.y,n=e!==i?"center"===e||"center"!==i&&(this.precedance===I||this.forceY)?[i,e]:[e,i]:[e];return t!==!1?n.join(" "):n},rt.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},rt.clone=function(){return new D(this.string(),this.forceY)},C.toggle=function(t,i){var s=this.cache,o=this.options,r=this.tooltip;if(i){if(/over|enter/.test(i.type)&&s.event&&/out|leave/.test(s.event.type)&&o.show.target.add(i.target).length===o.show.target.length&&r.has(i.relatedTarget).length)return this;s.event=n.event.fix(i)}if(this.waiting&&!t&&(this.hiddenDuringWait=$),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,l,d,u=t?"show":"hide",c=this.options[u],h=this.options.position,f=this.options.content,p=this.tooltip.css("width"),g=this.tooltip.is(":visible"),m=t||1===c.target.length,v=!i||c.target.length<2||s.target[0]===i.target;return(typeof t).search("boolean|number")&&(t=!g),a=!r.is(":animated")&&g===t&&v,l=a?M:!!this._trigger(u,[90]),this.destroyed?this:(l!==H&&t&&this.focus(i),!l||a?this:(n.attr(r[0],"aria-hidden",!t),t?(this.mouse&&(s.origin=n.event.fix(this.mouse)),n.isFunction(f.text)&&this._updateContent(f.text,H),n.isFunction(f.title)&&this._updateTitle(f.title,H),!E&&"mouse"===h.target&&h.adjust.mouse&&(n(e).bind("mousemove."+Y,this._storeMouse),E=$),p||r.css("width",r.outerWidth(H)),this.reposition(i,arguments[2]),p||r.css("width",""),c.solo&&("string"==typeof c.solo?n(c.solo):n(U,c.solo)).not(r).not(c.target).qtip("hide",new n.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete s.origin,E&&!n(U+'[tracking="true"]:visible',c.solo).not(r).length&&(n(e).unbind("mousemove."+Y),E=H),this.blur(i)),d=n.proxy(function(){t?(nt.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof c.autofocus&&n(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),c.effect===H||m===H?(r[u](),d()):n.isFunction(c.effect)?(r.stop(1,1),c.effect.call(r,this),r.queue("fx",function(t){d(),t()})):r.fadeTo(90,t?1:0,d),t&&c.target.trigger("qtip-"+this.id+"-inactive"),this))},C.show=function(t){return this.toggle($,t)},C.hide=function(t){return this.toggle(H,t)},C.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=n(U),i=this.tooltip,s=parseInt(i[0].style.zIndex,10),o=x.zindex+e.length;return i.hasClass(J)||this._trigger("focus",[o],t)&&(s!==o&&(e.each(function(){this.style.zIndex>s&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+J).qtip("blur",t)),i.addClass(J)[0].style.zIndex=o),this},C.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(J),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},C.disable=function(t){return this.destroyed?this:("toggle"===t?t=!(this.rendered?this.tooltip.hasClass(tt):this.disabled):"boolean"!=typeof t&&(t=$),this.rendered&&this.tooltip.toggleClass(tt,t).attr("aria-disabled",t),this.disabled=!!t,this)},C.enable=function(){return this.disable(H)},C._createButton=function(){var t=this,e=this.elements,i=e.tooltip,s=this.options.content.button,o="string"==typeof s,r=o?s:"Close tooltip";e.button&&e.button.remove(),s.jquery?e.button=s:e.button=n("<a />",{"class":"qtip-close "+(this.options.style.widget?"":Y+"-icon"),title:r,"aria-label":r}).prepend(n("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(e){return i.hasClass(tt)||t.hide(e),H})},C._updateButton=function(t){if(!this.rendered)return H;var e=this.elements.button;t?this._createButton():e.remove()},C._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,n=i.hasClass(tt);i.removeClass(tt),tt=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(tt,n),i.toggleClass("ui-helper-reset "+u(),t).toggleClass(Q,this.options.style.def&&!t),e.content&&e.content.toggleClass(u("content"),t),e.titlebar&&e.titlebar.toggleClass(u("header"),t),e.button&&e.button.toggleClass(Y+"-icon",!t)},C._storeMouse=function(t){return(this.mouse=n.event.fix(t)).type="mousemove",this},C._bind=function(t,e,i,s,o){if(t&&i&&e.length){var r="."+this._id+(s?"-"+s:"");return n(t).bind((e.split?e:e.join(r+" "))+r,n.proxy(i,o||this)),this}},C._unbind=function(t,e){return t&&n(t).unbind("."+this._id+(e?"-"+e:"")),this},C._trigger=function(t,e,i){var s=new n.Event("tooltip"+t);return s.originalEvent=i&&n.extend({},i)||this.cache.event||M,this.triggering=t,this.tooltip.trigger(s,[this].concat(e||[])),this.triggering=H,!s.isDefaultPrevented()},C._bindEvents=function(t,e,i,s,o,r){var a=i.filter(s).add(s.filter(i)),l=[];a.length&&(n.each(e,function(e,i){var s=n.inArray(i,t);s>-1&&l.push(t.splice(s,1)[0])}),l.length&&(this._bind(a,l,function(t){var e=!!this.rendered&&this.tooltip[0].offsetWidth>0;(e?r:o).call(this,t)}),i=i.not(a),s=s.not(a))),this._bind(i,t,o),this._bind(s,e,r)},C._assignInitialEvents=function(t){function e(t){return this.disabled||this.destroyed?H:(this.cache.event=t&&n.event.fix(t),this.cache.target=t&&n(t.target),clearTimeout(this.timers.show),void(this.timers.show=c.call(this,function(){
this.render("object"==typeof t||i.show.ready)},i.prerender?0:i.show.delay)))}var i=this.options,s=i.show.target,o=i.hide.target,r=i.show.event?n.trim(""+i.show.event).split(" "):[],a=i.hide.event?n.trim(""+i.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(i.show.event)&&!/mouse(out|leave)/i.test(i.hide.event)&&a.push("mouseleave"),this._bind(s,"mousemove",function(t){this._storeMouse(t),this.cache.onTarget=$}),this._bindEvents(r,a,s,o,e,function(){return this.timers?void clearTimeout(this.timers.show):H}),(i.show.ready||i.prerender)&&e.call(this,t)},C._assignEvents=function(){var i=this,s=this.options,o=s.position,r=this.tooltip,a=s.show.target,l=s.hide.target,d=o.container,u=o.viewport,c=n(e),m=n(t),v=s.show.event?n.trim(""+s.show.event).split(" "):[],y=s.hide.event?n.trim(""+s.hide.event).split(" "):[];n.each(s.events,function(t,e){i._bind(r,"toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t],e,null,r)}),/mouse(out|leave)/i.test(s.hide.event)&&"window"===s.hide.leave&&this._bind(c,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),s.hide.fixed?l=l.add(r.addClass(X)):/mouse(over|enter)/i.test(s.show.event)&&this._bind(l,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&this._bind(d.closest("html"),["mousedown","touchstart"],function(t){var e=n(t.target),i=this.rendered&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0,s=e.parents(U).filter(this.tooltip[0]).length>0;e[0]===this.target[0]||e[0]===this.tooltip[0]||s||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof s.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",p,"inactive"),this._bind(l.add(r),x.inactiveEvents,p)),this._bindEvents(v,y,a,l,h,f),this._bind(a.add(r),"mousemove",function(t){if("number"==typeof s.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,n=Math.abs;(n(t.pageX-e.pageX)>=i||n(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===o.target&&o.adjust.mouse&&(s.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(t){return this.cache?void(this.cache.onTarget="mouseenter"===t.type):H}),this._bind(c,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0&&this.reposition(t)})),(o.adjust.resize||u.length)&&this._bind(n.event.special.resize?u:m,"resize",g),o.adjust.scroll&&this._bind(m.add(o.container),"scroll",g)},C._unassignEvents=function(){var i=this.options,s=i.show.target,o=i.hide.target,r=n.grep([this.elements.target[0],this.rendered&&this.tooltip[0],i.position.container[0],i.position.viewport[0],i.position.container.closest("html")[0],t,e],function(t){return"object"==typeof t});s&&s.toArray&&(r=r.concat(s.toArray())),o&&o.toArray&&(r=r.concat(o.toArray())),this._unbind(r)._unbind(r,"destroy")._unbind(r,"inactive")},n(function(){m(U,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=n(t.currentTarget),s=n(t.relatedTarget||t.target),o=this.options;e?(this.focus(t),i.hasClass(X)&&!i.hasClass(tt)&&clearTimeout(this.timers.hide)):"mouse"===o.position.target&&o.position.adjust.mouse&&o.hide.event&&o.show.target&&!s.closest(o.show.target[0]).length&&this.hide(t),i.toggleClass(K,e)}),m("["+G+"]",Z,p)}),x=n.fn.qtip=function(t,e,s){var o=(""+t).toLowerCase(),r=M,l=n.makeArray(arguments).slice(1),d=l[l.length-1],u=this[0]?n.data(this[0],Y):M;return!arguments.length&&u||"api"===o?u:"string"==typeof t?(this.each(function(){var t=n.data(this,Y);if(!t)return $;if(d&&d.timeStamp&&(t.cache.event=d),!e||"option"!==o&&"options"!==o)t[o]&&t[o].apply(t,l);else{if(s===i&&!n.isPlainObject(e))return r=t.get(e),H;t.set(e,s)}}),r!==M?r:this):"object"!=typeof t&&arguments.length?void 0:(u=a(n.extend($,{},t)),this.each(function(t){var e,i;return i=n.isArray(u.id)?u.id[t]:u.id,i=!i||i===H||i.length<1||x.api[i]?x.nextid++:i,e=v(n(this),i,u),e===H?$:(x.api[i]=e,n.each(q,function(){"initialize"===this.initialize&&this(e)}),void e._assignInitialEvents(d))}))},n.qtip=s,x.api={},n.each({attr:function(t,e){if(this.length){var i=this[0],s="title",o=n.data(i,"qtip");if(t===s&&o&&o.options&&"object"==typeof o&&"object"==typeof o.options&&o.options.suppress)return arguments.length<2?n.attr(i,it):(o&&o.options.content.attr===s&&o.cache.attr&&o.set("content.text",e),this.attr(it,e))}return n.fn["attr"+et].apply(this,arguments)},clone:function(t){var e=n.fn["clone"+et].apply(this,arguments);return t||e.filter("["+it+"]").attr("title",function(){return n.attr(this,it)}).removeAttr(it),e}},function(t,e){if(!e||n.fn[t+et])return $;var i=n.fn[t+et]=n.fn[t];n.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),n.ui||(n["cleanData"+et]=n.cleanData,n.cleanData=function(t){for(var e,i=0;(e=n(t[i])).length;i++)if(e.attr(B))try{e.triggerHandler("removeqtip")}catch(s){}n["cleanData"+et].apply(this,arguments)}),x.version="3.0.3",x.nextid=0,x.inactiveEvents=Z,x.zindex=15e3,x.defaults={prerender:H,id:H,overwrite:$,suppress:$,content:{text:$,attr:"title",title:H,button:H},position:{my:"top left",at:"bottom right",target:H,container:H,viewport:H,adjust:{x:0,y:0,mouse:$,scroll:$,resize:$,method:"flipinvert flipinvert"},effect:function(t,e){n(this).animate(e,{duration:200,queue:H})}},show:{target:H,event:"mouseenter",effect:$,delay:90,solo:H,ready:H,autofocus:H},hide:{target:H,event:"mouseleave",effect:$,delay:0,fixed:H,inactive:H,leave:"window",distance:H},style:{classes:"",widget:H,width:H,height:H,def:$},events:{render:M,move:M,show:M,hide:M,toggle:M,visible:M,hidden:M,focus:M,blur:M}};var at,lt,dt,ut,ct,ht="margin",ft="border",pt="color",gt="background-color",mt="transparent",vt=" !important",yt=!!e.createElement("canvas").getContext,wt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,bt={},St=["Webkit","O","Moz","ms"];yt?(ut=t.devicePixelRatio||1,ct=function(){var t=e.createElement("canvas").getContext("2d");return t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1}(),dt=ut/ct):lt=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'},n.extend(S.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=n("<div />",{"class":Y+"-tip"}).prependTo(t.tooltip),yt?(e=n("<canvas />").appendTo(this.element)[0].getContext("2d"),e.lineJoin="miter",e.miterLimit=1e5,e.save()):(e=lt("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(n("*",i).add(i),["click","mousedown"],function(t){t.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===O||t.y===P&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight($))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===H||e===H?t=H:t===$?t=new D(e.string()):t.string||(t=new D(t),t.fixed=$),t},_parseWidth:function(t,e,i){var n=this.qtip.elements,s=ft+y(e)+"Width";return(i?b(i,s):b(n.content,s)||b(this._useTitle(t)&&n.titlebar||n.content,s)||b(n.tooltip,s))||0},_parseRadius:function(t){var e=this.qtip.elements,i=ft+y(t.y)+y(t.x)+"Radius";return nt.ie<9?0:b(this._useTitle(t)&&e.titlebar||e.content,i)||b(e.tooltip,i)||0},_invalidColour:function(t,e,i){var n=t.css(e);return!n||i&&n===t.css(i)||wt.test(n)?H:n},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),s=ft+y(t[t.precedance])+y(pt),o=this._useTitle(t)&&e.titlebar||e.content,r=this._invalidColour,a=[];return a[0]=r(i,gt)||r(o,gt)||r(e.content,gt)||r(e.tooltip,gt)||i.css(gt),a[1]=r(i,s,pt)||r(o,s,pt)||r(e.content,s,pt)||r(e.tooltip,s,pt)||e.tooltip.css(s),n("*",i).add(i).css("cssText",gt+":"+mt+vt+";"+ft+":0"+vt+";"),a},_calculateSize:function(t){var e,i,n,s=t.precedance===I,o=this.options.width,r=this.options.height,a="c"===t.abbrev(),l=(s?o:r)*(a?.5:1),d=Math.pow,u=Math.round,c=Math.sqrt(d(l,2)+d(r,2)),h=[this.border/l*c,this.border/r*c];return h[2]=Math.sqrt(d(h[0],2)-d(this.border,2)),h[3]=Math.sqrt(d(h[1],2)-d(this.border,2)),e=c+h[2]+h[3]+(a?0:h[0]),i=e/c,n=[u(i*o),u(i*r)],s?n:n.reverse()},_calculateTip:function(t,e,i){i=i||1,e=e||this.size;var n=e[0]*i,s=e[1]*i,o=Math.ceil(n/2),r=Math.ceil(s/2),a={br:[0,0,n,s,n,0],bl:[0,0,n,0,0,s],tr:[0,s,n,0,n,s],tl:[0,0,0,s,n,s],tc:[0,s,o,0,n,s],bc:[0,0,n,0,o,s],rc:[0,0,n,r,0,s],lc:[n,0,n,s,0,r]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(yt||nt.ie)&&this._parseCorner(this.options.corner);return this.enabled=!!this.corner&&"c"!==this.corner.abbrev(),this.enabled&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(e,i){if(!this.enabled)return this;var s,o,r,a,l,d,u,c,h=this.qtip.elements,f=this.element,p=f.children(),g=this.options,m=this.size,v=g.mimic,y=Math.round;e||(e=this.qtip.cache.corner||this.corner),v===H?v=e:(v=new D(v),v.precedance=e.precedance,"inherit"===v.x?v.x=e.x:"inherit"===v.y?v.y=e.y:v.x===v.y&&(v[e.precedance]=e[e.precedance])),o=v.precedance,e.precedance===R?this._swapDimensions():this._resetDimensions(),s=this.color=this._parseColours(e),s[1]!==mt?(c=this.border=this._parseWidth(e,e[e.precedance]),g.border&&1>c&&!wt.test(s[1])&&(s[0]=s[1]),this.border=c=g.border!==$?g.border:c):this.border=c=0,u=this.size=this._calculateSize(e),f.css({width:u[0],height:u[1],lineHeight:u[1]+"px"}),d=e.precedance===I?[y(v.x===z?c:v.x===j?u[0]-m[0]-c:(u[0]-m[0])/2),y(v.y===O?u[1]-m[1]:0)]:[y(v.x===z?u[0]-m[0]:0),y(v.y===O?c:v.y===N?u[1]-m[1]-c:(u[1]-m[1])/2)],yt?(r=p[0].getContext("2d"),r.restore(),r.save(),r.clearRect(0,0,6e3,6e3),a=this._calculateTip(v,m,dt),l=this._calculateTip(v,this.size,dt),p.attr(A,u[0]*dt).attr(L,u[1]*dt),p.css(A,u[0]).css(L,u[1]),this._drawCoords(r,l),r.fillStyle=s[1],r.fill(),r.translate(d[0]*dt,d[1]*dt),this._drawCoords(r,a),r.fillStyle=s[0],r.fill()):(a=this._calculateTip(v),a="m"+a[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",d[2]=c&&/^(r|b)/i.test(e.string())?8===nt.ie?2:1:0,p.css({coordsize:u[0]+c+" "+u[1]+c,antialias:""+(v.string().indexOf(P)>-1),left:d[0]-d[2]*Number(o===R),top:d[1]-d[2]*Number(o===I),width:u[0]+c,height:u[1]+c}).each(function(t){var e=n(this);e[e.prop?"prop":"attr"]({coordsize:u[0]+c+" "+u[1]+c,path:a,fillcolor:s[0],filled:!!t,stroked:!t}).toggle(!(!c&&!t)),!t&&e.html(lt("stroke",'weight="'+2*c+'px" color="'+s[1]+'" miterlimit="1000" joinstyle="miter"'))})),t.opera&&setTimeout(function(){h.tip.css({display:"inline-block",visibility:"visible"})},1),i!==H&&this.calculate(e,u)},calculate:function(t,e){if(!this.enabled)return H;var i,s,o=this,r=this.qtip.elements,a=this.element,l=this.options.offset,d={};return t=t||this.corner,i=t.precedance,e=e||this._calculateSize(t),s=[t.x,t.y],i===R&&s.reverse(),n.each(s,function(n,s){var a,u,c;s===P?(a=i===I?z:O,d[a]="50%",d[ht+"-"+a]=-Math.round(e[i===I?0:1]/2)+l):(a=o._parseWidth(t,s,r.tooltip),u=o._parseWidth(t,s,r.content),c=o._parseRadius(t),d[s]=Math.max(-o.border,n?u:l+(c>a?c:-a)))}),d[t[i]]-=e[i===R?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(d),d},reposition:function(t,e,n){function s(t,e,i,n,s){t===F&&d.precedance===e&&u[n]&&d[i]!==P?d.precedance=d.precedance===R?I:R:t!==F&&u[n]&&(d[e]=d[e]===P?u[n]>0?n:s:d[e]===n?s:n)}function o(t,e,s){d[t]===P?g[ht+"-"+e]=p[t]=r[ht+"-"+e]-u[e]:(a=r[s]!==i?[u[e],-r[e]]:[-u[e],r[e]],(p[t]=Math.max(a[0],a[1]))>a[0]&&(n[e]-=u[e],p[e]=H),g[r[s]!==i?s:e]=p[t])}if(this.enabled){var r,a,l=e.cache,d=this.corner.clone(),u=n.adjusted,c=e.options.position.adjust.method.split(" "),h=c[0],f=c[1]||c[0],p={left:H,top:H,x:0,y:0},g={};this.corner.fixed!==$&&(s(h,R,I,z,j),s(f,I,R,O,N),d.string()===l.corner.string()&&l.cornerTop===u.top&&l.cornerLeft===u.left||this.update(d,H)),r=this.calculate(d),r.right!==i&&(r.left=-r.right),r.bottom!==i&&(r.top=-r.bottom),r.user=this.offset,p.left=h===F&&!!u.left,p.left&&o(R,z,j),p.top=f===F&&!!u.top,p.top&&o(I,O,N),this.element.css(g).toggle(!(p.x&&p.y||d.x===P&&p.y||d.y===P&&p.x)),n.left-=r.left.charAt?r.user:h!==F||p.top||!p.left&&!p.top?r.left+this.border:0,n.top-=r.top.charAt?r.user:f!==F||p.left||!p.left&&!p.top?r.top+this.border:0,l.cornerLeft=u.left,l.cornerTop=u.top,l.corner=d.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),at=q.tip=function(t){return new S(t,t.options.style.tip)},at.initialize="render",at.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;"object"!=typeof e&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=$)}},k.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},n.extend($,x.defaults,{style:{tip:{corner:$,mimic:H,width:6,height:6,border:$,offset:0}}});var _t,Tt,xt="qtip-modal",Ct="."+xt;Tt=function(){function t(t){if(n.expr[":"].focusable)return n.expr[":"].focusable;var e,i,s,o=!isNaN(n.attr(t,"tabindex")),r=t.nodeName&&t.nodeName.toLowerCase();return"area"===r?(e=t.parentNode,i=e.name,!(!t.href||!i||"map"!==e.nodeName.toLowerCase())&&(s=n("img[usemap=#"+i+"]")[0],!!s&&s.is(":visible"))):/input|select|textarea|button|object/.test(r)?!t.disabled:"a"===r?t.href||o:o}function i(t){d.length<1&&t.length?t.not("body").blur():d.first().focus()}function s(t){if(a.is(":visible")){var e,s=n(t.target),r=o.tooltip,l=s.closest(U);e=l.length<1?H:parseInt(l[0].style.zIndex,10)>parseInt(r[0].style.zIndex,10),e||s.closest(U)[0]===r[0]||i(s)}}var o,r,a,l=this,d={};n.extend(l,{init:function(){return a=l.elem=n("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return H}}).hide(),n(e.body).bind("focusin"+Ct,s),n(e).bind("keydown"+Ct,function(t){o&&o.options.show.modal.escape&&27===t.keyCode&&o.hide(t)}),a.bind("click"+Ct,function(t){o&&o.options.show.modal.blur&&o.hide(t)}),l},update:function(e){o=e,d=e.options.show.modal.stealfocus!==H?e.tooltip.find("*").filter(function(){return t(this)}):[]},toggle:function(t,s,d){var u=t.tooltip,c=t.options.show.modal,h=c.effect,f=s?"show":"hide",p=a.is(":visible"),g=n(Ct).filter(":visible:not(:animated)").not(u);return l.update(t),s&&c.stealfocus!==H&&i(n(":focus")),a.toggleClass("blurs",c.blur),s&&a.appendTo(e.body),a.is(":animated")&&p===s&&r!==H||!s&&g.length?l:(a.stop($,H),n.isFunction(h)?h.call(a,s):h===H?a[f]():a.fadeTo(parseInt(d,10)||90,s?1:0,function(){s||a.hide()}),s||a.queue(function(t){a.css({left:"",top:""}),n(Ct).length||a.detach(),t()}),r=s,o.destroyed&&(o=M),l)}}),l.init()},Tt=new Tt,n.extend(_.prototype,{init:function(t){var e=t.tooltip;return this.options.on?(t.elements.overlay=Tt.elem,e.addClass(xt).css("z-index",x.modal_zindex+n(Ct).length),t._bind(e,["tooltipshow","tooltiphide"],function(t,i,s){var o=t.originalEvent;if(t.target===e[0])if(o&&"tooltiphide"===t.type&&/mouse(leave|enter)/.test(o.type)&&n(o.relatedTarget).closest(Tt.elem[0]).length)try{t.preventDefault()}catch(r){}else(!o||o&&"tooltipsolo"!==o.type)&&this.toggle(t,"tooltipshow"===t.type,s)},this._ns,this),t._bind(e,"tooltipfocus",function(t,i){if(!t.isDefaultPrevented()&&t.target===e[0]){var s=n(Ct),o=x.modal_zindex+s.length,r=parseInt(e[0].style.zIndex,10);Tt.elem[0].style.zIndex=o-1,s.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),s.filter("."+J).qtip("blur",t.originalEvent),e.addClass(J)[0].style.zIndex=o,Tt.update(i);try{t.preventDefault()}catch(a){}}},this._ns,this),void t._bind(e,"tooltiphide",function(t){t.target===e[0]&&n(Ct).filter(":visible").not(e).last().qtip("focus",t)},this._ns,this)):this},toggle:function(t,e,i){return t&&t.isDefaultPrevented()?this:void Tt.toggle(this.qtip,!!e,i)},destroy:function(){this.qtip.tooltip.removeClass(xt),this.qtip._unbind(this.qtip.tooltip,this._ns),Tt.toggle(this.qtip,H),delete this.qtip.elements.overlay}}),_t=q.modal=function(t){return new _(t,t.options.show.modal)},_t.sanitize=function(t){t.show&&("object"!=typeof t.show.modal?t.show.modal={on:!!t.show.modal}:"undefined"==typeof t.show.modal.on&&(t.show.modal.on=$))},x.modal_zindex=x.zindex-200,_t.initialize="render",k.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},n.extend($,x.defaults,{show:{modal:{on:H,effect:$,blur:$,stealfocus:$,escape:$}}}),q.viewport=function(i,n,s,o,r,a,l){function d(t,e,i,s,o,r,a,l,d){var u=n[o],y=b[t],w=S[t],_=i===F,T=y===o?d:y===r?-d:-d/2,x=w===o?l:w===r?-l:-l/2,C=m[o]+v[o]-(f?0:h[o]),D=C-u,k=u+d-(a===A?p:g)-C,E=T-(b.precedance===t||y===b[e]?x:0)-(w===P?l/2:0);return _?(E=(y===o?1:-1)*T,n[o]+=D>0?D:k>0?-k:0,n[o]=Math.max(-h[o]+v[o],u-E,Math.min(Math.max(-h[o]+v[o]+(a===A?p:g),u+E),n[o],"center"===y?u-T:1e9))):(s*=i===W?2:0,D>0&&(y!==o||k>0)?(n[o]-=E+s,c.invert(t,o)):k>0&&(y!==r||D>0)&&(n[o]-=(y===P?-E:E)+s,c.invert(t,r)),n[o]<m[o]&&-n[o]>k&&(n[o]=u,c=b.clone())),n[o]-u}var u,c,h,f,p,g,m,v,y=s.target,w=i.elements.tooltip,b=s.my,S=s.at,_=s.adjust,T=_.method.split(" "),x=T[0],C=T[1]||T[0],D=s.viewport,k=s.container,E={left:0,top:0};return D.jquery&&y[0]!==t&&y[0]!==e.body&&"none"!==_.method?(h=k.offset()||E,f="static"===k.css("position"),u="fixed"===w.css("position"),p=D[0]===t?D.width():D.outerWidth(H),g=D[0]===t?D.height():D.outerHeight(H),m={left:u?0:D.scrollLeft(),top:u?0:D.scrollTop()},v=D.offset()||E,"shift"===x&&"shift"===C||(c=b.clone()),E={left:"none"!==x?d(R,I,x,_.x,z,j,A,o,a):0,top:"none"!==C?d(I,R,C,_.y,O,N,L,r,l):0,my:c}):E},q.polys={polygon:function(t,e){var i,n,s,o={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:H},r=0,a=[],l=1,d=1,u=0,c=0;for(r=t.length;r--;)i=[parseInt(t[--r],10),parseInt(t[r+1],10)],i[0]>o.position.right&&(o.position.right=i[0]),i[0]<o.position.left&&(o.position.left=i[0]),i[1]>o.position.bottom&&(o.position.bottom=i[1]),i[1]<o.position.top&&(o.position.top=i[1]),a.push(i);if(n=o.width=Math.abs(o.position.right-o.position.left),s=o.height=Math.abs(o.position.bottom-o.position.top),"c"===e.abbrev())o.position={left:o.position.left+o.width/2,top:o.position.top+o.height/2};else{for(;n>0&&s>0&&l>0&&d>0;)for(n=Math.floor(n/2),s=Math.floor(s/2),e.x===z?l=n:e.x===j?l=o.width-n:l+=Math.floor(n/2),e.y===O?d=s:e.y===N?d=o.height-s:d+=Math.floor(s/2),r=a.length;r--&&!(a.length<2);)u=a[r][0]-o.position.left,c=a[r][1]-o.position.top,(e.x===z&&u>=l||e.x===j&&l>=u||e.x===P&&(l>u||u>o.width-l)||e.y===O&&c>=d||e.y===N&&d>=c||e.y===P&&(d>c||c>o.height-d))&&a.splice(r,1);o.position={left:a[0][0],top:a[0][1]}}return o},rect:function(t,e,i,n){return{width:Math.abs(i-t),height:Math.abs(n-e),position:{left:Math.min(t,i),top:Math.min(e,n)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(t,e,i,n,s){var o=q.polys._angles[s.abbrev()],r=0===o?0:i*Math.cos(o*Math.PI),a=n*Math.sin(o*Math.PI);return{width:2*i-Math.abs(r),height:2*n-Math.abs(a),position:{left:t+r,top:e+a},adjustable:H}},circle:function(t,e,i,n){return q.polys.ellipse(t,e,i,i,n)}},q.svg=function(t,i,s){for(var o,r,a,l,d,u,c,h,f,p=i[0],g=n(p.ownerSVGElement),m=p.ownerDocument,v=(parseInt(i.css("stroke-width"),10)||0)/2;!p.getBBox;)p=p.parentNode;if(!p.getBBox||!p.parentNode)return H;switch(p.nodeName){case"ellipse":case"circle":h=q.polys.ellipse(p.cx.baseVal.value,p.cy.baseVal.value,(p.rx||p.r).baseVal.value+v,(p.ry||p.r).baseVal.value+v,s);break;case"line":case"polygon":case"polyline":for(c=p.points||[{x:p.x1.baseVal.value,y:p.y1.baseVal.value},{x:p.x2.baseVal.value,y:p.y2.baseVal.value}],h=[],u=-1,l=c.numberOfItems||c.length;++u<l;)d=c.getItem?c.getItem(u):c[u],h.push.apply(h,[d.x,d.y]);h=q.polys.polygon(h,s);break;default:h=p.getBBox(),h={width:h.width,height:h.height,position:{left:h.x,top:h.y}}}return f=h.position,g=g[0],g.createSVGPoint&&(r=p.getScreenCTM(),c=g.createSVGPoint(),c.x=f.left,c.y=f.top,a=c.matrixTransform(r),f.left=a.x,f.top=a.y),m!==e&&"mouse"!==t.position.target&&(o=n((m.defaultView||m.parentWindow).frameElement).offset(),o&&(f.left+=o.left,f.top+=o.top)),m=n(m),f.left+=m.scrollLeft(),f.top+=m.scrollTop(),h},q.imagemap=function(t,e,i){e.jquery||(e=n(e));var s,o,r,a,l,d=(e.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),u=n('img[usemap="#'+e.parent("map").attr("name")+'"]'),c=n.trim(e.attr("coords")),h=c.replace(/,$/,"").split(",");if(!u.length)return H;if("polygon"===d)a=q.polys.polygon(h,i);else{if(!q.polys[d])return H;for(r=-1,l=h.length,o=[];++r<l;)o.push(parseInt(h[r],10));a=q.polys[d].apply(this,o.concat(i))}return s=u.offset(),s.left+=Math.ceil((u.outerWidth(H)-u.width())/2),s.top+=Math.ceil((u.outerHeight(H)-u.height())/2),a.position.left+=s.left,a.position.top+=s.top,a};var Dt,kt='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';n.extend(T.prototype,{_scroll:function(){var e=this.qtip.elements.overlay;e&&(e[0].style.top=n(t).scrollTop()+"px")},init:function(i){var s=i.tooltip;n("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=n(kt).appendTo(s),i._bind(s,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=n("<div/>",{id:Y+"-rcontainer"}).appendTo(e.body),i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&(i._bind(t,["scroll","resize"],this._scroll,this._ns,this),i._bind(s,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var t,e,i=this.qtip.tooltip,n={height:i.outerHeight(H),width:i.outerWidth(H)},s=this.qtip.plugins.tip,o=this.qtip.elements.tip;e=parseInt(i.css("borderLeftWidth"),10)||0,e={left:-e,top:-e},s&&o&&(t="x"===s.corner.precedance?[A,z]:[L,O],e[t[1]]-=o[t[0]]()),this.bgiframe.css(e).css(n)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t,e,i,n,s=this.qtip.tooltip,o=this.qtip.options.style,r=this.qtip.options.position.container;return this.qtip.drawing=1,o.height&&s.css(L,o.height),o.width?s.css(A,o.width):(s.css(A,"").appendTo(this.redrawContainer),e=s.width(),1>e%2&&(e+=1),i=s.css("maxWidth")||"",n=s.css("minWidth")||"",t=(i+n).indexOf("%")>-1?r.width()/100:0,i=(i.indexOf("%")>-1?t:1*parseInt(i,10))||e,n=(n.indexOf("%")>-1?t:1*parseInt(n,10))||0,e=i+n?Math.min(Math.max(e,n),i):e,s.css(A,Math.round(e)).appendTo(r)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([t,this.qtip.tooltip],this._ns)}}),Dt=q.ie6=function(t){return 6===nt.ie?new T(t):H},Dt.initialize="render",k.ie6={"^content|style$":function(){this.redraw()}}})}(window,document),!function(){"use strict";function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var s=0,o=e.length;o>s;s++)e[s][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=s.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,s.windowContext||(s.windowContext=!0,s.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},s=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,s.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||s.isTouch)&&(e.didScroll=!0,s.requestAnimationFrame(t))})},e.prototype.handleResize=function(){s.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],s=n.newScroll>n.oldScroll,o=s?n.forward:n.backward;for(var r in this.waypoints[i]){var a=this.waypoints[i][r];if(null!==a.triggerPoint){var l=n.oldScroll<a.triggerPoint,d=n.newScroll>=a.triggerPoint,u=l&&d,c=!l&&!d;(u||c)&&(a.queueTrigger(o),t[a.group.id]=a.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?s.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?s.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,s=t.length;s>n;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var o in t){var r=t[o];for(var a in this.waypoints[o]){var l,d,u,c,h,f=this.waypoints[o][a],p=f.options.offset,g=f.triggerPoint,m=0,v=null==g;f.element!==f.element.window&&(m=f.adapter.offset()[r.offsetProp]),"function"==typeof p?p=p.apply(f):"string"==typeof p&&(p=parseFloat(p),f.options.offset.indexOf("%")>-1&&(p=Math.ceil(r.contextDimension*p/100))),l=r.contextScroll-r.contextOffset,f.triggerPoint=Math.floor(m+l-p),d=g<r.oldScroll,u=f.triggerPoint>=r.oldScroll,c=d&&u,h=!d&&!u,!v&&c?(f.queueTrigger(r.backward),n[f.group.id]=f.group):!v&&h?(f.queueTrigger(r.forward),n[f.group.id]=f.group):v&&r.oldScroll>=f.triggerPoint&&(f.queueTrigger(r.forward),n[f.group.id]=f.group)}}return s.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},s.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},s.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},s=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],s="up"===i||"left"===i;n.sort(s?e:t);for(var o=0,r=n.length;r>o;o+=1){var a=n[o];(a.options.continuous||o===n.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=s.Adapter.inArray(e,this.waypoints),n=i===this.waypoints.length-1;return n?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=s.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=s.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},s.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,n){t[n]=e[n]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&(n=t.extend({},arguments[1]),n.handler=arguments[0]),this.each(function(){var s=t.extend({},n,{element:this});"string"==typeof s.context&&(s.context=t(this).closest(s.context)[0]),i.push(new e(s));
}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(t){!function(){"use strict";function e(e,n){if(this.el=e,this.$el=t(e),this.s=t.extend({},i,n),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=t(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(t(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var i={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};e.prototype.init=function(){var e=this;e.s.preload>e.$items.length&&(e.s.preload=e.$items.length);var i=window.location.hash;i.indexOf("lg="+this.s.galleryId)>0&&(e.index=parseInt(i.split("&slide=")[1],10),t("body").addClass("lg-from-hash"),t("body").hasClass("lg-on")||(setTimeout(function(){e.build(e.index)}),t("body").addClass("lg-on"))),e.s.dynamic?(e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||0,t("body").hasClass("lg-on")||setTimeout(function(){e.build(e.index),t("body").addClass("lg-on")})):e.$items.on("click.lgcustom",function(i){try{i.preventDefault(),i.preventDefault()}catch(n){i.returnValue=!1}e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||e.$items.index(this),t("body").hasClass("lg-on")||(e.build(e.index),t("body").addClass("lg-on"))})},e.prototype.build=function(e){var i=this;i.structure(),t.each(t.fn.lightGallery.modules,function(e){i.modules[e]=new t.fn.lightGallery.modules[e](i.el)}),i.slide(e,!1,!1,!1),i.s.keyPress&&i.keyPress(),i.$items.length>1&&(i.arrow(),setTimeout(function(){i.enableDrag(),i.enableSwipe()},50),i.s.mousewheel&&i.mousewheel()),i.counter(),i.closeGallery(),i.$el.trigger("onAfterOpen.lg"),i.$outer.on("mousemove.lg click.lg touchstart.lg",function(){i.$outer.removeClass("lg-hide-items"),clearTimeout(i.hideBartimeout),i.hideBartimeout=setTimeout(function(){i.$outer.addClass("lg-hide-items")},i.s.hideBarsDelay)}),i.$outer.trigger("mousemove.lg")},e.prototype.structure=function(){var e,i="",n="",s=0,o="",r=this;for(t("body").append('<div class="lg-backdrop"></div>'),t(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),s=0;s<this.$items.length;s++)i+='<div class="lg-item"></div>';if(this.s.controls&&this.$items.length>1&&(n='<div class="lg-actions"><div class="lg-prev lg-icon">'+this.s.prevHtml+'</div><div class="lg-next lg-icon">'+this.s.nextHtml+"</div></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(o='<div class="lg-sub-html"></div>'),e='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+i+'</div><div class="lg-toolbar lg-group"><span class="lg-close lg-icon"></span></div>'+n+o+"</div></div>",t("body").append(e),this.$outer=t(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),r.setTop(),t(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){r.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var a=this.$outer.find(".lg-inner");a.css("transition-timing-function",this.s.cssEasing),a.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){t(".lg-backdrop").addClass("in")}),setTimeout(function(){r.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=t(window).scrollTop()},e.prototype.setTop=function(){if("100%"!==this.s.height){var e=t(window).height(),i=(e-parseInt(this.s.height,10))/2,n=this.$outer.find(".lg");e>=parseInt(this.s.height,10)?n.css("top",i+"px"):n.css("top","0px")}},e.prototype.doCss=function(){var t=function(){var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],e=document.documentElement,i=0;for(i=0;i<t.length;i++)if(t[i]in e.style)return!0};return!!t()},e.prototype.isVideo=function(t,e){var i;if(i=this.s.dynamic?this.s.dynamicEl[e].html:this.$items.eq(e).attr("data-html"),!t&&i)return{html5:!0};var n=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),s=t.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),o=t.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),r=t.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return n?{youtube:n}:s?{vimeo:s}:o?{dailymotion:o}:r?{vk:r}:void 0},e.prototype.counter=function(){this.s.counter&&t(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},e.prototype.addHtml=function(e){var i,n,s=null;if(this.s.dynamic?this.s.dynamicEl[e].subHtmlUrl?i=this.s.dynamicEl[e].subHtmlUrl:s=this.s.dynamicEl[e].subHtml:(n=this.$items.eq(e),n.attr("data-sub-html-url")?i=n.attr("data-sub-html-url"):(s=n.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!s&&(s=n.attr("title")||n.find("img").first().attr("alt")))),!i)if("undefined"!=typeof s&&null!==s){var o=s.substring(0,1);"."!==o&&"#"!==o||(s=this.s.subHtmlSelectorRelative&&!this.s.dynamic?n.find(s).html():t(s).html())}else s="";".lg-sub-html"===this.s.appendSubHtmlTo?i?this.$outer.find(this.s.appendSubHtmlTo).load(i):this.$outer.find(this.s.appendSubHtmlTo).html(s):i?this.$slide.eq(e).load(i):this.$slide.eq(e).append(s),"undefined"!=typeof s&&null!==s&&(""===s?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[e])},e.prototype.preload=function(t){var e=1,i=1;for(e=1;e<=this.s.preload&&!(e>=this.$items.length-t);e++)this.loadContent(t+e,!1,0);for(i=1;i<=this.s.preload&&!(t-i<0);i++)this.loadContent(t-i,!1,0)},e.prototype.loadContent=function(e,i,n){var s,o,r,a,l,d,u=this,c=!1,h=function(e){for(var i=[],n=[],s=0;s<e.length;s++){var r=e[s].split(" ");""===r[0]&&r.splice(0,1),n.push(r[0]),i.push(r[1])}for(var a=t(window).width(),l=0;l<i.length;l++)if(parseInt(i[l],10)>a){o=n[l];break}};if(u.s.dynamic){if(u.s.dynamicEl[e].poster&&(c=!0,r=u.s.dynamicEl[e].poster),d=u.s.dynamicEl[e].html,o=u.s.dynamicEl[e].src,u.s.dynamicEl[e].responsive){var f=u.s.dynamicEl[e].responsive.split(",");h(f)}a=u.s.dynamicEl[e].srcset,l=u.s.dynamicEl[e].sizes}else{if(u.$items.eq(e).attr("data-poster")&&(c=!0,r=u.$items.eq(e).attr("data-poster")),d=u.$items.eq(e).attr("data-html"),o=u.$items.eq(e).attr("href")||u.$items.eq(e).attr("data-src"),u.$items.eq(e).attr("data-responsive")){var p=u.$items.eq(e).attr("data-responsive").split(",");h(p)}a=u.$items.eq(e).attr("data-srcset"),l=u.$items.eq(e).attr("data-sizes")}var g=!1;u.s.dynamic?u.s.dynamicEl[e].iframe&&(g=!0):"true"===u.$items.eq(e).attr("data-iframe")&&(g=!0);var m=u.isVideo(o,e);if(!u.$slide.eq(e).hasClass("lg-loaded")){if(g)u.$slide.eq(e).prepend('<div class="lg-video-cont" style="max-width:'+u.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+o+'"  allowfullscreen="true"></iframe></div></div>');else if(c){var v="";v=m&&m.youtube?"lg-has-youtube":m&&m.vimeo?"lg-has-vimeo":"lg-has-html5",u.$slide.eq(e).prepend('<div class="lg-video-cont '+v+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+r+'" /></div></div>')}else m?(u.$slide.eq(e).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),u.$el.trigger("hasVideo.lg",[e,o,d])):u.$slide.eq(e).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+o+'" /></div>');if(u.$el.trigger("onAferAppendSlide.lg",[e]),s=u.$slide.eq(e).find(".lg-object"),l&&s.attr("sizes",l),a){s.attr("srcset",a);try{picturefill({elements:[s[0]]})}catch(y){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&u.addHtml(e),u.$slide.eq(e).addClass("lg-loaded")}u.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){var i=0;n&&!t("body").hasClass("lg-from-hash")&&(i=n),setTimeout(function(){u.$slide.eq(e).addClass("lg-complete"),u.$el.trigger("onSlideItemLoad.lg",[e,n||0])},i)}),m&&m.html5&&!c&&u.$slide.eq(e).addClass("lg-complete"),i===!0&&(u.$slide.eq(e).hasClass("lg-complete")?u.preload(e):u.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){u.preload(e)}))},e.prototype.slide=function(e,i,n,s){var o=this.$outer.find(".lg-current").index(),r=this;if(!r.lGalleryOn||o!==e){var a=this.$slide.length,l=r.lGalleryOn?this.s.speed:0;if(!r.lgBusy){if(this.s.download){var d;d=r.s.dynamic?r.s.dynamicEl[e].downloadUrl!==!1&&(r.s.dynamicEl[e].downloadUrl||r.s.dynamicEl[e].src):"false"!==r.$items.eq(e).attr("data-download-url")&&(r.$items.eq(e).attr("data-download-url")||r.$items.eq(e).attr("href")||r.$items.eq(e).attr("data-src")),d?(t("#lg-download").attr("href",d),r.$outer.removeClass("lg-hide-download")):r.$outer.addClass("lg-hide-download")}if(this.$el.trigger("onBeforeSlide.lg",[o,e,i,n]),r.lgBusy=!0,clearTimeout(r.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){r.addHtml(e)},l),this.arrowDisable(e),s||(e<o?s="prev":e>o&&(s="next")),i){this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide");var u,c;a>2?(u=e-1,c=e+1,0===e&&o===a-1?(c=0,u=a-1):e===a-1&&0===o&&(c=0,u=a-1)):(u=0,c=1),"prev"===s?r.$slide.eq(c).addClass("lg-next-slide"):r.$slide.eq(u).addClass("lg-prev-slide"),r.$slide.eq(e).addClass("lg-current")}else r.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===s?(this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(o).addClass("lg-next-slide")):(this.$slide.eq(e).addClass("lg-next-slide"),this.$slide.eq(o).addClass("lg-prev-slide")),setTimeout(function(){r.$slide.removeClass("lg-current"),r.$slide.eq(e).addClass("lg-current"),r.$outer.removeClass("lg-no-trans")},50);r.lGalleryOn?(setTimeout(function(){r.loadContent(e,!0,0)},this.s.speed+50),setTimeout(function(){r.lgBusy=!1,r.$el.trigger("onAfterSlide.lg",[o,e,i,n])},this.s.speed)):(r.loadContent(e,!0,r.s.backdropDuration),r.lgBusy=!1,r.$el.trigger("onAfterSlide.lg",[o,e,i,n])),r.lGalleryOn=!0,this.s.counter&&t("#lg-counter-current").text(e+1)}}},e.prototype.goToNextSlide=function(t){var e=this,i=e.s.loop;t&&e.$slide.length<3&&(i=!1),e.lgBusy||(e.index+1<e.$slide.length?(e.index++,e.$el.trigger("onBeforeNextSlide.lg",[e.index]),e.slide(e.index,t,!1,"next")):i?(e.index=0,e.$el.trigger("onBeforeNextSlide.lg",[e.index]),e.slide(e.index,t,!1,"next")):e.s.slideEndAnimatoin&&!t&&(e.$outer.addClass("lg-right-end"),setTimeout(function(){e.$outer.removeClass("lg-right-end")},400)))},e.prototype.goToPrevSlide=function(t){var e=this,i=e.s.loop;t&&e.$slide.length<3&&(i=!1),e.lgBusy||(e.index>0?(e.index--,e.$el.trigger("onBeforePrevSlide.lg",[e.index,t]),e.slide(e.index,t,!1,"prev")):i?(e.index=e.$items.length-1,e.$el.trigger("onBeforePrevSlide.lg",[e.index,t]),e.slide(e.index,t,!1,"prev")):e.s.slideEndAnimatoin&&!t&&(e.$outer.addClass("lg-left-end"),setTimeout(function(){e.$outer.removeClass("lg-left-end")},400)))},e.prototype.keyPress=function(){var e=this;this.$items.length>1&&t(window).on("keyup.lg",function(t){e.$items.length>1&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))}),t(window).on("keydown.lg",function(t){e.s.escKey===!0&&27===t.keyCode&&(t.preventDefault(),e.$outer.hasClass("lg-thumb-open")?e.$outer.removeClass("lg-thumb-open"):e.destroy())})},e.prototype.arrow=function(){var t=this;this.$outer.find(".lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){t.goToNextSlide()})},e.prototype.arrowDisable=function(t){!this.s.loop&&this.s.hideControlOnEnd&&(t+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),t>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},e.prototype.setTranslate=function(t,e,i){this.s.useLeft?t.css("left",e):t.css({transform:"translate3d("+e+"px, "+i+"px, 0px)"})},e.prototype.touchMove=function(e,i){var n=i-e;Math.abs(n)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),n,0),this.setTranslate(t(".lg-prev-slide"),-this.$slide.eq(this.index).width()+n,0),this.setTranslate(t(".lg-next-slide"),this.$slide.eq(this.index).width()+n,0))},e.prototype.touchEnd=function(t){var e=this;"lg-slide"!==e.s.mode&&e.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){e.$outer.removeClass("lg-dragging"),t<0&&Math.abs(t)>e.s.swipeThreshold?e.goToNextSlide(!0):t>0&&Math.abs(t)>e.s.swipeThreshold?e.goToPrevSlide(!0):Math.abs(t)<5&&e.$el.trigger("onSlideClick.lg"),e.$slide.removeAttr("style")}),setTimeout(function(){e.$outer.hasClass("lg-dragging")||"lg-slide"===e.s.mode||e.$outer.removeClass("lg-slide")},e.s.speed+100)},e.prototype.enableSwipe=function(){var t=this,e=0,i=0,n=!1;t.s.enableSwipe&&t.isTouch&&t.doCss()&&(t.$slide.on("touchstart.lg",function(i){t.$outer.hasClass("lg-zoomed")||t.lgBusy||(i.preventDefault(),t.manageSwipeClass(),e=i.originalEvent.targetTouches[0].pageX)}),t.$slide.on("touchmove.lg",function(s){t.$outer.hasClass("lg-zoomed")||(s.preventDefault(),i=s.originalEvent.targetTouches[0].pageX,t.touchMove(e,i),n=!0)}),t.$slide.on("touchend.lg",function(){t.$outer.hasClass("lg-zoomed")||(n?(n=!1,t.touchEnd(i-e)):t.$el.trigger("onSlideClick.lg"))}))},e.prototype.enableDrag=function(){var e=this,i=0,n=0,s=!1,o=!1;e.s.enableDrag&&!e.isTouch&&e.doCss()&&(e.$slide.on("mousedown.lg",function(n){e.$outer.hasClass("lg-zoomed")||(t(n.target).hasClass("lg-object")||t(n.target).hasClass("lg-video-play"))&&(n.preventDefault(),e.lgBusy||(e.manageSwipeClass(),i=n.pageX,s=!0,e.$outer.scrollLeft+=1,e.$outer.scrollLeft-=1,e.$outer.removeClass("lg-grab").addClass("lg-grabbing"),e.$el.trigger("onDragstart.lg")))}),t(window).on("mousemove.lg",function(t){s&&(o=!0,n=t.pageX,e.touchMove(i,n),e.$el.trigger("onDragmove.lg"))}),t(window).on("mouseup.lg",function(r){o?(o=!1,e.touchEnd(n-i),e.$el.trigger("onDragend.lg")):(t(r.target).hasClass("lg-object")||t(r.target).hasClass("lg-video-play"))&&e.$el.trigger("onSlideClick.lg"),s&&(s=!1,e.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},e.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?e=this.$slide.length-1:this.index===this.$slide.length-1&&(t=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(t).addClass("lg-next-slide")},e.prototype.mousewheel=function(){var t=this;t.$outer.on("mousewheel.lg",function(e){e.deltaY&&(e.deltaY>0?t.goToPrevSlide():t.goToNextSlide(),e.preventDefault())})},e.prototype.closeGallery=function(){var e=this,i=!1;this.$outer.find(".lg-close").on("click.lg",function(){e.destroy()}),e.s.closable&&(e.$outer.on("mousedown.lg",function(e){i=!!(t(e.target).is(".lg-outer")||t(e.target).is(".lg-item ")||t(e.target).is(".lg-img-wrap"))}),e.$outer.on("mouseup.lg",function(n){(t(n.target).is(".lg-outer")||t(n.target).is(".lg-item ")||t(n.target).is(".lg-img-wrap")&&i)&&(e.$outer.hasClass("lg-dragging")||e.destroy())}))},e.prototype.destroy=function(e){var i=this;e||(i.$el.trigger("onBeforeClose.lg"),t(window).scrollTop(i.prevScrollTop)),e&&(i.s.dynamic||this.$items.off("click.lg click.lgcustom"),t.removeData(i.el,"lightGallery")),this.$el.off(".lg.tm"),t.each(t.fn.lightGallery.modules,function(t){i.modules[t]&&i.modules[t].destroy()}),this.lGalleryOn=!1,clearTimeout(i.hideBartimeout),this.hideBartimeout=!1,t(window).off(".lg"),t("body").removeClass("lg-on lg-from-hash"),i.$outer&&i.$outer.removeClass("lg-visible"),t(".lg-backdrop").removeClass("in"),setTimeout(function(){i.$outer&&i.$outer.remove(),t(".lg-backdrop").remove(),e||i.$el.trigger("onCloseAfter.lg")},i.s.backdropDuration+50)},t.fn.lightGallery=function(i){return this.each(function(){if(t.data(this,"lightGallery"))try{t(this).data("lightGallery").init()}catch(n){console.error("lightGallery has not initiated properly")}else t.data(this,"lightGallery",new e(this,i))})},t.fn.lightGallery.modules={}}()}),function(t,e){"use strict";var i;if("object"==typeof exports){try{i=require("moment")}catch(n){}module.exports=e(i)}else"function"==typeof define&&define.amd?define(function(t){var n="moment";try{i=t(n)}catch(s){}return e(i)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,i=!!window.addEventListener,n=window.document,s=window.setTimeout,o=function(t,e,n,s){i?t.addEventListener(e,n,!!s):t.attachEvent("on"+e,n)},r=function(t,e,n,s){i?t.removeEventListener(e,n,!!s):t.detachEvent("on"+e,n)},a=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},l=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")!==-1},d=function(t,e){l(t,e)||(t.className=""===t.className?e:t.className+" "+e)},u=function(t,e){t.className=a((" "+t.className+" ").replace(" "+e+" "," "))},c=function(t){return/Array/.test(Object.prototype.toString.call(t))},h=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},f=function(t){var e=t.getDay();return 0===e||6===e},p=function(t){return t%4===0&&t%100!==0||t%400===0},g=function(t,e){return[31,p(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},m=function(t){h(t)&&t.setHours(0,0,0,0)},v=function(t,e){return t.getTime()===e.getTime()},y=function(t,e,i){var n,s;for(n in e)s=void 0!==t[n],s&&"object"==typeof e[n]&&null!==e[n]&&void 0===e[n].nodeName?h(e[n])?i&&(t[n]=new Date(e[n].getTime())):c(e[n])?i&&(t[n]=e[n].slice(0)):t[n]=y({},e[n],i):!i&&s||(t[n]=e[n]);return t},w=function(t,e,i){var s;n.createEvent?(s=n.createEvent("HTMLEvents"),s.initEvent(e,!0,!1),s=y(s,i),t.dispatchEvent(s)):n.createEventObject&&(s=n.createEventObject(),s=y(s,i),t.fireEvent("on"+e,s))},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},S={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(t,e,i){for(e+=t.firstDay;e>=7;)e-=7;return i?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},T=function(t){var e=[],i="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),i="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+i+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},x=function(t,e,i){var n=new Date(i,0,1),s=Math.ceil(((new Date(i,e,t)-n)/864e5+n.getDay()+1)/7);return'<td class="pika-week">'+s+"</td>"},C=function(t,e,i,n){return'<tr class="pika-row'+(i?" pick-whole-week":"")+(n?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},D=function(t){return"<tbody>"+t.join("")+"</tbody>"},k=function(t){var e,i=[];for(t.showWeekNumber&&i.push("<th></th>"),e=0;e<7;e++)i.push('<th scope="col"><abbr title="'+_(t,e)+'">'+_(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?i.reverse():i).join("")+"</tr></thead>"},E=function(t,e,i,n,s,o){var r,a,l,d,u,h=t._o,f=i===h.minYear,p=i===h.maxYear,g='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,v=!0;for(l=[],r=0;r<12;r++)l.push('<option value="'+(i===s?r-e:12+r-e)+'"'+(r===n?' selected="selected"':"")+(f&&r<h.minMonth||p&&r>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[r]+"</option>");for(d='<div class="pika-label">'+h.i18n.months[n]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",c(h.yearRange)?(r=h.yearRange[0],a=h.yearRange[1]+1):(r=i-h.yearRange,a=1+i+h.yearRange),l=[];r<a&&r<=h.maxYear;r++)r>=h.minYear&&l.push('<option value="'+r+'"'+(r===i?' selected="selected"':"")+">"+r+"</option>");return u='<div class="pika-label">'+i+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",g+=h.showMonthAfterYear?u+d:d+u,f&&(0===n||h.minMonth>=n)&&(m=!1),p&&(11===n||h.maxMonth<=n)&&(v=!1),0===e&&(g+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(g+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+="</div>"},$=function(t,e,i){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+i+'">'+k(t)+D(e)+"</table>"},H=function(r){var a=this,d=a.config(r);a._onMouseDown=function(t){if(a._v){t=t||window.event;var e=t.target||t.srcElement;if(e)if(l(e,"is-disabled")||(!l(e,"pika-button")||l(e,"is-empty")||l(e.parentNode,"is-disabled")?l(e,"pika-prev")?a.prevMonth():l(e,"pika-next")&&a.nextMonth():(a.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),d.bound&&s(function(){a.hide(),d.blurFieldOnSelect&&d.field&&d.field.blur()},100))),l(e,"pika-select"))a._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},a._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(l(e,"pika-select-month")?a.gotoMonth(e.value):l(e,"pika-select-year")&&a.gotoYear(e.value))},a._onKeyChange=function(t){if(t=t||window.event,a.isVisible())switch(t.keyCode){case 13:case 27:d.field&&d.field.blur();break;case 37:t.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(i){var n;i.firedBy!==a&&(d.parse?n=d.parse(d.field.value,d.format):e?(n=t(d.field.value,d.format,d.formatStrict),n=n&&n.isValid()?n.toDate():null):n=new Date(Date.parse(d.field.value)),h(n)&&a.setDate(n),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var t=n.activeElement;do if(l(t,"pika-single"))return;while(t=t.parentNode);a._c||(a._b=s(function(){a.hide()},50)),a._c=!1},a._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e;if(e){!i&&l(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",a._onChange)));do if(l(n,"pika-single")||n===d.trigger)return;while(n=n.parentNode);a._v&&e!==d.trigger&&n!==d.trigger&&a.hide()}},a.el=n.createElement("div"),a.el.className="pika-single"+(d.isRTL?" is-rtl":"")+(d.theme?" "+d.theme:""),o(a.el,"mousedown",a._onMouseDown,!0),o(a.el,"touchend",a._onMouseDown,!0),o(a.el,"change",a._onChange),o(n,"keydown",a._onKeyChange),d.field&&(d.container?d.container.appendChild(a.el):d.bound?n.body.appendChild(a.el):d.field.parentNode.insertBefore(a.el,d.field.nextSibling),o(d.field,"change",a._onInputChange),d.defaultDate||(e&&d.field.value?d.defaultDate=t(d.field.value,d.format).toDate():d.defaultDate=new Date(Date.parse(d.field.value)),d.setDefaultDate=!0));var u=d.defaultDate;h(u)?d.setDefaultDate?a.setDate(u,!0):a.gotoDate(u):a.gotoDate(new Date),d.bound?(this.hide(),a.el.className+=" is-bound",o(d.trigger,"click",a._onInputClick),o(d.trigger,"focus",a._onInputFocus),o(d.trigger,"blur",a._onInputBlur)):this.show()};return H.prototype={config:function(t){this._o||(this._o=y({},S,!0));var e=y(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var i=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=i>4?4:i,h(e.minDate)||(e.minDate=!1),h(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),c(e.yearRange)){var n=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||n,e.yearRange[1]=parseInt(e.yearRange[1],10)||n}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||S.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(i){return i=i||this._o.format,h(this._d)?this._o.toString?this._o.toString(this._d,i):e?t(this._d).format(i):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(i,n){e&&t.isMoment(i)&&this.setDate(i.toDate(),n)},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",w(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),h(t)){var i=this._o.minDate,n=this._o.maxDate;h(i)&&t<i?t=i:h(n)&&t>n&&(t=n),this._d=new Date(t.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),w(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(h(t)){if(this.calendars){var i=new Date(this.calendars[0].year,this.calendars[0].month,1),n=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),s=t.getTime();n.setMonth(n.getMonth()+1),n.setDate(n.getDate()-1),e=s<i.getTime()||n.getTime()<s}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(t,e){var i,n=this.getDate()||new Date,s=24*parseInt(e)*60*60*1e3;"add"===t?i=new Date(n.valueOf()+s):"subtract"===t&&(i=new Date(n.valueOf()-s)),this.setDate(i)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=b({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){t instanceof Date?(m(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth()):(this._o.minDate=S.minDate,this._o.minYear=S.minYear,this._o.minMonth=S.minMonth,this._o.startRange=S.startRange),this.draw()},setMaxDate:function(t){t instanceof Date?(m(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth()):(this._o.maxDate=S.maxDate,this._o.maxYear=S.maxYear,this._o.maxMonth=S.maxMonth,this._o.endRange=S.endRange),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e,i=this._o,n=i.minYear,o=i.maxYear,r=i.minMonth,a=i.maxMonth,l="";this._y<=n&&(this._y=n,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=o&&(this._y=o,!isNaN(a)&&this._m>a&&(this._m=a)),e="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var d=0;d<i.numberOfMonths;d++)l+='<div class="pika-lendar">'+E(this,d,this.calendars[d].year,this.calendars[d].month,this.calendars[0].year,e)+this.render(this.calendars[d].year,this.calendars[d].month,e)+"</div>";this.el.innerHTML=l,i.bound&&"hidden"!==i.field.type&&s(function(){i.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),i.bound&&i.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var t,e,i,s,o,r,a,l,d,u;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,i=this.el.offsetWidth,s=this.el.offsetHeight,o=window.innerWidth||n.documentElement.clientWidth,r=window.innerHeight||n.documentElement.clientHeight,a=window.pageYOffset||n.body.scrollTop||n.documentElement.scrollTop,"function"==typeof t.getBoundingClientRect)u=t.getBoundingClientRect(),l=u.left+window.pageXOffset,d=u.bottom+window.pageYOffset;else for(l=e.offsetLeft,d=e.offsetTop+e.offsetHeight;e=e.offsetParent;)l+=e.offsetLeft,d+=e.offsetTop;(this._o.reposition&&l+i>o||this._o.position.indexOf("right")>-1&&l-i+t.offsetWidth>0)&&(l=l-i+t.offsetWidth),(this._o.reposition&&d+s>r+a||this._o.position.indexOf("top")>-1&&d-s-t.offsetHeight>0)&&(d=d-s-t.offsetHeight),this.el.style.left=l+"px",this.el.style.top=d+"px"}},render:function(t,e,i){var n=this._o,s=new Date,o=g(t,e),r=new Date(t,e,1).getDay(),a=[],l=[];m(s),n.firstDay>0&&(r-=n.firstDay,r<0&&(r+=7));for(var d=0===e?11:e-1,u=11===e?0:e+1,c=0===e?t-1:t,p=11===e?t+1:t,y=g(c,d),w=o+r,b=w;b>7;)b-=7;w+=7-b;for(var S=!1,_=0,D=0;_<w;_++){var k=new Date(t,e,1+(_-r)),E=!!h(this._d)&&v(k,this._d),H=v(k,s),M=n.events.indexOf(k.toDateString())!==-1,R=_<r||_>=o+r,I=1+(_-r),A=e,L=t,O=n.startRange&&v(n.startRange,k),z=n.endRange&&v(n.endRange,k),N=n.startRange&&n.endRange&&n.startRange<k&&k<n.endRange,j=n.minDate&&k<n.minDate||n.maxDate&&k>n.maxDate||n.disableWeekends&&f(k)||n.disableDayFn&&n.disableDayFn(k);
R&&(_<r?(I=y+I,A=d,L=c):(I-=o,A=u,L=p));var P={day:I,month:A,year:L,hasEvent:M,isSelected:E,isToday:H,isDisabled:j,isEmpty:R,isStartRange:O,isEndRange:z,isInRange:N,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:n.enableSelectionDaysInNextAndPreviousMonths};n.pickWholeWeek&&E&&(S=!0),l.push(T(P)),7===++D&&(n.showWeekNumber&&l.unshift(x(_-r,e,t)),a.push(C(l,n.isRTL,n.pickWholeWeek,S)),l=[],D=0,S=!1)}return $(n,a,i)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(o(n,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&r(n,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",d(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),r(this.el,"mousedown",this._onMouseDown,!0),r(this.el,"touchend",this._onMouseDown,!0),r(this.el,"change",this._onChange),this._o.field&&(r(this._o.field,"change",this._onInputChange),this._o.bound&&(r(this._o.trigger,"click",this._onInputClick),r(this._o.trigger,"focus",this._onInputFocus),r(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},H}),function(t,e){"use strict";"object"==typeof exports?e(require("jquery"),require("pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],e):e(t.jQuery,t.Pikaday)}(this,function(t,e){"use strict";t.fn.pikaday=function(){var i=arguments;return i&&i.length||(i=[{}]),this.each(function(){var n=t(this),s=n.data("pikaday");if(s instanceof e)"string"==typeof i[0]&&"function"==typeof s[i[0]]&&(s[i[0]].apply(s,Array.prototype.slice.call(i,1)),"destroy"===i[0]&&n.removeData("pikaday"));else if("object"==typeof i[0]){var o=t.extend({},i[0]);o.field=n[0],n.data("pikaday",new e(o))}})}}),function(t){function e(){for(var t=0;t<_.length;t++)_[t][0](_[t][1]);_=[],g=!1}function i(t,i){_.push([t,i]),g||(g=!0,S(e,0))}function n(t,e){function i(t){r(e,t)}function n(t){l(e,t)}try{t(i,n)}catch(s){n(s)}}function s(t){var e=t.owner,i=e.state_,e=e.data_,n=t[i];if(t=t.then,"function"==typeof n){i=y;try{e=n(e)}catch(s){l(t,s)}}o(t,e)||(i===y&&r(t,e),i===w&&l(t,e))}function o(t,e){var i;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"==typeof e)){var n=e.then;if("function"==typeof n)return n.call(e,function(n){i||(i=!0,e!==n?r(t,n):a(t,n))},function(e){i||(i=!0,l(t,e))}),!0}}catch(s){return i||l(t,s),!0}return!1}function r(t,e){t!==e&&o(t,e)||a(t,e)}function a(t,e){t.state_===m&&(t.state_=v,t.data_=e,i(u,t))}function l(t,e){t.state_===m&&(t.state_=v,t.data_=e,i(c,t))}function d(t){var e=t.then_;for(t.then_=void 0,t=0;t<e.length;t++)s(e[t])}function u(t){t.state_=y,d(t)}function c(t){t.state_=w,d(t)}function h(t){if("function"!=typeof t)throw new TypeError("Promise constructor takes a function argument");if(!1==this instanceof h)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],n(t,this)}var f=t.Promise,p=f&&"resolve"in f&&"reject"in f&&"all"in f&&"race"in f&&function(){var t;return new f(function(e){t=e}),"function"==typeof t}();"undefined"!=typeof exports&&exports?(exports.Promise=p?f:h,exports.Polyfill=h):"function"==typeof define&&define.amd?define(function(){return p?f:h}):p||(t.Promise=h);var g,m="pending",v="sealed",y="fulfilled",w="rejected",b=function(){},S="undefined"!=typeof setImmediate?setImmediate:setTimeout,_=[];h.prototype={constructor:h,state_:m,then_:null,data_:void 0,then:function(t,e){var n={owner:this,then:new this.constructor(b),fulfilled:t,rejected:e};return this.state_===y||this.state_===w?i(s,n):this.then_.push(n),n.then},"catch":function(t){return this.then(null,t)}},h.all=function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw new TypeError("You must pass an array to Promise.all().");return new this(function(e,i){function n(t){return r++,function(i){o[t]=i,--r||e(o)}}for(var s,o=[],r=0,a=0;a<t.length;a++)(s=t[a])&&"function"==typeof s.then?s.then(n(a),i):o[a]=s;r||e(o)})},h.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw new TypeError("You must pass an array to Promise.race().");return new this(function(e,i){for(var n,s=0;s<t.length;s++)(n=t[s])&&"function"==typeof n.then?n.then(e,i):e(n)})},h.resolve=function(t){return t&&"object"==typeof t&&t.constructor===this?t:new this(function(e){e(t)})},h.reject=function(t){return new this(function(e,i){i(t)})}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this),!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,n){var s,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(e),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,s=t(e).data("slick")||{},o.options=t.extend({},o.defaults,n,s),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,"undefined"!=typeof document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=i++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}var i=0;return e}(),e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var s=this;if("boolean"==typeof i)n=i,i=null;else if(0>i||i>=s.slideCount)return!1;s.unload(),"number"==typeof i?0===i&&0===s.$slides.length?t(e).appendTo(s.$slideTrack):n?t(e).insertBefore(s.$slides.eq(i)):t(e).insertAfter(s.$slides.eq(i)):n===!0?t(e).prependTo(s.$slideTrack):t(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,i):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,i):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),t({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),s.options.vertical===!1?(n[s.animType]="translate("+t+"px, 0px)",s.$slideTrack.css(n)):(n[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?n[s.animType]="translate3d("+e+"px, 0px, 0px)":n[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(n),i&&setTimeout(function(){s.disableTransition(),i.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this,n=i.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};e.options.fade===!1?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(t.options.infinite===!1&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(n.options.dots===!0&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(e.options.centerMode===!0||e.options.swipeToSlide===!0)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,s,o,r,a=this;if(n=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,s=Math.ceil(o.length/r),t=0;s>t;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var d=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var u=t*r+(e*a.options.slidesPerRow+i);o.get(u)&&d.appendChild(o.get(u))}l.appendChild(d)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,s,o,r=this,a=!1,l=r.$slider.width(),d=window.innerWidth||t(window).width();if("window"===r.respondTo?o=d:"slider"===r.respondTo?o=l:"min"===r.respondTo&&(o=Math.min(d,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(n in r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(r.originalSettings.mobileFirst===!1?o<r.breakpoints[n]&&(s=r.breakpoints[n]):o>r.breakpoints[n]&&(s=r.breakpoints[n]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||i)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=s),e||a===!1||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var n,s,o,r=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),o=r.slideCount%r.options.slidesToScroll!==0,n=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===n?r.options.slidesToScroll:r.options.slidesToShow-n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,i);break;case"next":s=0===n?r.options.slidesToScroll:n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i,n=this;if(e=n.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var s in e){if(t<e[s]){t=i;break}i=e[s]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;i.cssTransitions===!1?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var n=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(t.options.infinite===!0)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,s=this,o=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),s.options.infinite===!0?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=i*s.options.slidesToShow*-1),s.slideCount%s.options.slidesToScroll!==0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,o=(s.options.slidesToShow-(t-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,o=s.slideCount%s.options.slidesToScroll*i*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,o=(t+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,o=0),s.options.centerMode===!0&&s.options.infinite===!0?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:s.options.centerMode===!0&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),e=s.options.vertical===!1?t*s.slideWidth*-1+s.slideOffset:t*i*-1+o,s.options.variableWidth===!0&&(n=s.slideCount<=s.options.slidesToShow||s.options.infinite===!1?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),e=s.options.rtl===!0?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,s.options.centerMode===!0&&(n=s.slideCount<=s.options.slidesToShow||s.options.infinite===!1?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),e=s.options.rtl===!0?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(s.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,s=[];for(e.options.infinite===!1?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);t>i;)s.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n,s=this;return n=s.options.centerMode===!0?s.slideWidth*Math.floor(s.options.slidesToShow/2):0,s.options.swipeToSlide===!0?(s.$slideTrack.find(".slick-slide").each(function(e,o){return o.offsetLeft-n+t(o).outerWidth()/2>-1*s.swipeLeft?(i=o,!1):void 0}),e=Math.abs(t(i).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var i=this;i.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,i])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i])},n.src=i})}var i,n,s,o,r=this;r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),o=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),o=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,o=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,o<=r.slideCount&&o++)),i=r.$slider.find(".slick-slide").slice(s,o),e(i),r.slideCount<=r.options.slidesToShow?(n=r.$slider.find(".slick-slide"),e(n)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(n=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(n)):0===r.currentSlide&&(n=r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow),e(n))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),e.options.accessibility===!0&&e.initADA())},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,s,o=this,r=t("img[data-lazy]",o.$slider);r.length?(i=r.first(),n=i.attr("data-lazy"),s=document.createElement("img"),s.onload=function(){i.attr("src",n).removeAttr("data-lazy").removeClass("slick-loading"),o.options.adaptiveHeight===!0&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,i,n]),o.progressiveLazyLoad()},s.onerror=function(){3>e?setTimeout(function(){o.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,n]),o.progressiveLazyLoad())},s.src=n):o.$slider.trigger("allImagesLoaded",[o])},e.prototype.refresh=function(e){var i,n,s=this;n=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>n&&(s.currentSlide=n),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),i=s.currentSlide,s.destroy(!0),t.extend(s,s.initials,{currentSlide:i}),s.init(),e||s.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,s=this,o=s.options.responsive||null;if("array"===t.type(o)&&o.length){s.respondTo=s.options.respondTo||"window";for(e in o)if(n=s.breakpoints.length-1,i=o[e].breakpoint,o.hasOwnProperty(e)){for(;n>=0;)s.breakpoints[n]&&s.breakpoints[n]===i&&s.breakpoints.splice(n,1),n--;s.breakpoints.push(i),s.breakpointSettings[i]=o[e].settings}s.breakpoints.sort(function(t,e){return s.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?(e=t,t=e===!0?0:n.slideCount-1):t=e===!0?--t:t,!(n.slideCount<1||0>t||t>n.slideCount-1)&&(n.unload(),i===!0?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),
n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,s={};n.options.rtl===!0&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",s[n.positionProp]=t,n.transformsEnabled===!1?n.$slideTrack.css(s):(s={},n.cssTransitions===!1?(s[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(s)):(s[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,s){e=i.slideWidth*n*-1,i.options.rtl===!0?t(s).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(s).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,s,o,r=this,a=!1;if("object"===t.type(arguments[0])?(n=arguments[0],a=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],s=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":"undefined"!=typeof arguments[1]&&(o="single")),"single"===o)r.options[n]=s;else if("multiple"===o)t.each(n,function(t,e){r.options[t]=e});else if("responsive"===o)for(i in s)if("array"!==t.type(r.options.responsive))r.options.responsive=[s[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[i])}a&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,i,n,s,o=this;i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),o.options.centerMode===!0?(e=Math.floor(o.options.slidesToShow/2),o.options.infinite===!0&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+t,i.slice(n-e+1,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(s=o.slideCount%o.options.slidesToShow,n=o.options.infinite===!0?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-s),n+s).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(i=null,s.slideCount>s.options.slidesToShow)){for(n=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-n;e-=1)i=e-1,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;n>e;e+=1)i=e,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),s=parseInt(n.attr("data-slick-index"));return s||(s=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(s),void i.asNavFor(s)):void i.slideHandler(s)},e.prototype.slideHandler=function(t,e,i){var n,s,o,r,a,l=null,d=this;return e=e||!1,d.animating===!0&&d.options.waitForAnimate===!0||d.options.fade===!0&&d.currentSlide===t||d.slideCount<=d.options.slidesToShow?void 0:(e===!1&&d.asNavFor(t),n=t,l=d.getLeft(n),r=d.getLeft(d.currentSlide),d.currentLeft=null===d.swipeLeft?r:d.swipeLeft,d.options.infinite===!1&&d.options.centerMode===!1&&(0>t||t>d.getDotCount()*d.options.slidesToScroll)?void(d.options.fade===!1&&(n=d.currentSlide,i!==!0?d.animateSlide(r,function(){d.postSlide(n)}):d.postSlide(n))):d.options.infinite===!1&&d.options.centerMode===!0&&(0>t||t>d.slideCount-d.options.slidesToScroll)?void(d.options.fade===!1&&(n=d.currentSlide,i!==!0?d.animateSlide(r,function(){d.postSlide(n)}):d.postSlide(n))):(d.options.autoplay&&clearInterval(d.autoPlayTimer),s=0>n?d.slideCount%d.options.slidesToScroll!==0?d.slideCount-d.slideCount%d.options.slidesToScroll:d.slideCount+n:n>=d.slideCount?d.slideCount%d.options.slidesToScroll!==0?0:n-d.slideCount:n,d.animating=!0,d.$slider.trigger("beforeChange",[d,d.currentSlide,s]),o=d.currentSlide,d.currentSlide=s,d.setSlideClasses(d.currentSlide),d.options.asNavFor&&(a=d.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(d.currentSlide)),d.updateDots(),d.updateArrows(),d.options.fade===!0?(i!==!0?(d.fadeSlideOut(o),d.fadeSlide(s,function(){d.postSlide(s)})):d.postSlide(s),void d.animateHeight()):void(i!==!0?d.animateSlide(l,function(){d.postSlide(s)}):d.postSlide(s))))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,s=this;return t=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,i=Math.atan2(e,t),n=Math.round(180*i/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?s.options.rtl===!1?"left":"right":360>=n&&n>=315?s.options.rtl===!1?"left":"right":n>=135&&225>=n?s.options.rtl===!1?"right":"left":s.options.verticalSwiping===!0?n>=35&&135>=n?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,s,o,r=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!r.dragging||o&&1!==o.length)&&(e=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,r.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),r.options.verticalSwiping===!0&&(r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2)))),i=r.swipeDirection(),"vertical"!==i?(void 0!==t.originalEvent&&r.touchObject.swipeLength>4&&t.preventDefault(),s=(r.options.rtl===!1?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),r.options.verticalSwiping===!0&&(s=r.touchObject.curY>r.touchObject.startY?1:-1),n=r.touchObject.swipeLength,r.touchObject.edgeHit=!1,r.options.infinite===!1&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(n=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),r.options.vertical===!1?r.swipeLeft=e+n*s:r.swipeLeft=e+n*(r.$list.height()/r.listWidth)*s,r.options.verticalSwiping===!0&&(r.swipeLeft=e+n*s),r.options.fade!==!0&&r.options.touchMove!==!1&&(r.animating===!0?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,s=arguments[0],o=Array.prototype.slice.call(arguments,1),r=n.length;for(t=0;r>t;t++)if("object"==typeof s||"undefined"==typeof s?n[t].slick=new e(n[t],s):i=n[t].slick[s].apply(n[t].slick,o),"undefined"!=typeof i)return i;return n}});var body=document.getElementsByTagName("body")[0],$body=$(body),height=window.innerHeight;try{Typekit.load({async:!0})}catch(e){}var bLazy=new Blazy({selector:".lazyload",validateDelay:10,offset:0,success:function(t){$(".gallery-isotope").isotope("layout")},error:function(t,e){"missing"===e?console.log(e):"invalid"===e&&console.log(e)},breakpoints:[{width:550,src:"data-src-small"}]});setTimeout(function(){bLazy.revalidate()},100);var breakpoint={above_desktop:window.matchMedia("(min-width: 1025px)"),below_desktop:window.matchMedia("(max-width: 1024px)"),above_small:window.matchMedia("(min-width: 851px)"),below_small:window.matchMedia("(max-width: 850px)"),above_tablet:window.matchMedia("(min-width: 768px)"),below_tablet:window.matchMedia("(max-width: 767px)"),below_mobile:window.matchMedia("(max-width: 550px)")};$(function(){var t={toggle:function(t){t.closest(".accordion-section__block").toggleClass("is-active"),t.closest(".accordion-section__block").find(".accordion-section__container").slideToggle(400),t.find(".accordion-section__icon").toggleClass("icon-plus icon-minus")},open:function(t){t.closest(".accordion-section__block").addClass("is-active"),t.closest(".accordion-section__block").find(".accordion-section__container").slideDown(400),t.find(".accordion-section__icon").removeClass("icon-plus").addClass("icon-minus")},closeAll:function(t){var e=t.parents(".accordion-section");e.find(".accordion-section__block").removeClass("is-active"),e.find(".accordion-section__container").slideUp(400),e.find(".accordion-section__icon").removeClass("icon-minus").addClass("icon-plus")}};$(".accordion-section__trigger").on("click",function(){var e=$(this);e.closest(".accordion-section__block").siblings().hasClass("is-active")?(t.closeAll(e),t.open(e)):t.toggle(e)})}),$(".sync-carousel__main").slick({slide:".sync-carousel__item",lazyLoad:"progressive",slidesToShow:1,slidesToScroll:1,prevArrow:".sync-carousel__btn.btn--prev",nextArrow:".sync-carousel__btn.btn--next",asNavFor:".sync-carousel__thbs"}),$(".sync-carousel__thbs").slick({slide:".sync-carousel__thb",lazyLoad:"progressive",slidesToShow:8,arrows:!1,slidesToScroll:1,focusOnSelect:!0,asNavFor:".sync-carousel__main"}),$(".cards-carousel").slick({slide:".cards-carousel__item",lazyLoad:"progressive",slidesToShow:3,slidesToScroll:1,prevArrow:".cards-carousel__btn.btn--prev",nextArrow:".cards-carousel__btn.btn--next",responsive:[{breakpoint:850,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".banner-carousel").slick({slide:".banner-carousel__item",fade:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:5e3,prevArrow:".banner-carousel__btn.btn--prev",nextArrow:".banner-carousel__btn.btn--next"}),$(".js-dropdown").on("click",function(){$(this).parents(".fancy-dropdown").toggleClass("is-active"),$(this).toggleClass("is-active"),$(this).siblings(".fancy-dropdown__list").slideToggle(400)}),$(".fancy-dropdown__item").on("click",function(){var t=$(this).text();$(".fancy-dropdown__item").removeClass("is-active"),$(this).addClass("is-active"),$(this).parents(".fancy-dropdown").find(".fancy-dropdown__text").text(t),$(this).parents(".fancy-dropdown__list").slideUp(400),$(".fancy-dropdown, .fancy-dropdown__current").removeClass("is-active")}),$(".download-dropdown__title").on("click",function(){$(this).toggleClass("is-active"),$(this).siblings(".download-dropdown__list").slideToggle(400)}),$(".download-dropdown__link").on("click",function(){$(this).removeClass("is-active"),$(this).siblings(".download-dropdown__list").slideToggle(400)}),$(".fix-dropdown__main").on("click",function(){$(this).find(".fix-dropdown__icon").toggleClass("icon-plus icon-minus"),$(this).siblings(".fix-dropdown__dropdown").slideToggle(400)}),$("body").on("click",function(t){$(t.target).closest(".fancy-dropdown").length||($(".fancy-dropdown, .fancy-dropdown__current").removeClass("is-active"),$(".fancy-dropdown__list").slideUp(400)),$(t.target).closest(".fix-dropdown").length||($(".fix-dropdown__icon").removeClass("icon-minus").addClass("icon-plus"),$(".fix-dropdown__dropdown").slideUp(400)),$(t.target).closest(".download-dropdown").length||($(".download-dropdown__title").removeClass("is-active"),$(".download-dropdown__list").slideUp(400))}),$(window).scroll(function(){$(window).scrollTop()>300?$(".fix-dropdown").addClass("is-active"):$(".fix-dropdown").removeClass("is-active")}),$(function(){$(".fade-bg-section__bg").eq(0).addClass("is-active"),$(".fade-bg-section__section").each(function(){$(this).waypoint(function(t){if("down"===t){var e=$(this.element).attr("data-section"),i=$("[data-section-img='"+e+"']");$(".fade-bg-section__bg").removeClass("is-active"),i.addClass("is-active")}},{offset:"50%"}),$(this).waypoint(function(t){if("up"===t){var e=$(this.element).attr("data-section"),i=$("[data-section-img='"+e+"']");$(".fade-bg-section__bg").removeClass("is-active"),i.addClass("is-active")}},{offset:"-50%"})})}),$(function(){function t(t){t.parents(".filter-section").find(".filter-section__btn.is-active").length==t.parents(".filter-section").find(".filter-section__btn").length-1?t.parents(".filter-section").find("[data-filter-id='all']").addClass("is-active"):t.parents(".filter-section").find("[data-filter-id='all']").removeClass("is-active")}$("body").find(".filter-section").length&&($(".filter-section").each(function(){$(this).find(".filter-section__block").eq(0).slideDown(400),$(this).find(".filter-section__btn").eq(0).addClass("is-active")}),$(".filter-section__btn").on("click",function(){var e=$(this),i=e.attr("data-filter-id"),n=$("[data-filter='"+i+"']"),s=e.parents(".filter-section");"all"==i?e.hasClass("is-active")?(s.find(".filter-section__btn").not(":eq(0)").removeClass("is-active"),s.find(".filter-section__block").not(":eq(0)").slideUp(400)):(s.find(".filter-section__btn").addClass("is-active"),s.find(".filter-section__block").slideDown(400)):(e.toggleClass("is-active"),s.find(n).slideToggle(400),t(e))})),$("body").find(".side-filter-section").length&&($(".side-filter-section").each(function(){$(this).find(".side-filter-section__block").eq(0).addClass("is-active"),$(this).find(".side-filter-section__btn").eq(0).addClass("is-active")}),$(".js-side-filter-trigger").on("click",function(){var t=$(this),e=t.attr("data-filter-id"),i=$("[data-filter='"+e+"']"),n=t.parents(".side-filter-section");n.find(".side-filter-section__block").removeClass("is-active"),n.find(".side-filter-section__btn").removeClass("is-active"),t.addClass("is-active"),n.find(i).addClass("is-active")}))}),$(".js-download-filter").on("click",function(){$(".js-download-item").addClass("hide");var t=$(this).attr("data-download-filter-id");if("download--all"==t)$(".js-download-item").removeClass("hide");else{var e=$("[data-download-filter='"+t+"']");e.removeClass("hide")}}),$(".js-news-filter").on("click",function(){$(".js-news-item").removeClass("filtered-on");var t=$(this).attr("data-news-filter-id"),e=$("[data-news-filter='"+t+"']");e.addClass("filtered-on")}),$(function(){$(".lightgallery").lightGallery({selector:".lightgallery__img"})}),$(function(){(document.documentMode||/Edge/.test(navigator.userAgent))&&$("body").addClass("ie-browser");var t=$(".main-nav__item").eq(0);t.insertAfter($(".main-nav__item").eq(1)),$("body").find("#homepage").length&&$("header").removeClass("is-fixed"),$(".programs-nav__item").eq(0).addClass("is-active"),$(".programs-nav__block").eq(0).addClass("is-active"),$(".search-form-open-trigger").on("click",function(){$(this).parents(".search-form__wrap").toggleClass("is-active"),$(this).parents(".search-form__wrap").find(".search-form__input").focus()}),$("body").find("#wpadminbar").length&&$("header, .mobile-nav, .m-programs-nav").addClass("with-admin-bar")});var didScroll,lastScrollTop=0,delta=5,navbarHeight=$("header").outerHeight();$(window).scroll(function(t){didScroll=!0}),setInterval(function(){didScroll&&(hasScrolled(),didScroll=!1)},250);var submenu={open:function(t){$(".header__nav").addClass("is-active"),t.addClass("is-active"),t.siblings(".sub-nav").addClass("is-active"),$(".sidemenu-cover").addClass("is-active")},closeAll:function(){$(".header__nav, .main-nav__trigger, .sub-nav, .sidemenu-cover").removeClass("is-active")}};$("body").on("mousewheel touchmove",function(t){if($(".main-nav__trigger").hasClass("is-active"))return t.preventDefault(),!1}),$(".main-nav__trigger").on("click",function(){if($(this).hasClass("is-active"))submenu.closeAll();else{var t=$(this);submenu.closeAll(),submenu.open(t)}}),$(".programs-nav__link").mouseenter(function(){$(".programs-nav__item, .programs-nav__block").removeClass("is-active");var t=$(this).attr("data-programs-id"),e=$("[data-block-id='"+t+"']");$(this).parents(".programs-nav__item").addClass("is-active"),e.addClass("is-active")}),$(".js-bubble-trigger").on("click",function(){$(this).parents(".bubble-wrap").find(".bubble").toggleClass("is-active")}),$("body").on("click",function(t){$(t.target).closest(".header__nav").length||submenu.closeAll(),$(t.target).closest(".js-bubble-trigger, .bubble").length||$(".bubble").removeClass("is-active"),$(t.target).closest(".search-form").length||($(".search-form__wrap").removeClass("is-active"),$(".search-form__input").val(""))}),$(function(){$("body").find(".isotope-section").length&&$(".isotope-section__main").isotope({itemSelector:".isotope-section__item",getSortData:{date:"[data-sort]"}}),$("body").find(".gallery-isotope").length&&$(".gallery-isotope").imagesLoaded(function(){$(".gallery-isotope").isotope({itemSelector:".gallery-isotope__item"})})}),$(function(){var t=$(".mobile-nav__item").eq(0);t.insertAfter($(".mobile-nav__item").eq(1))}),$(".mobile-nav-trigger").on("click",function(){$("header").toggleClass("mobile-fixed"),$(this).toggleClass("is-active"),$(".mobile-header").toggleClass("is-active"),$(".mobile-nav").toggleClass("is-active")});var mobileNav={toggle:function(t){t.toggleClass("is-active"),t.siblings(".lv-2-nav").slideToggle(400)},closeAll:function(){$(".mobile-nav__submenu-trigger").removeClass("is-active"),$(".lv-2-nav").slideUp(400)}};if($(".mobile-nav__submenu-trigger").on("click",function(){var t=$(this);$(".mobile-nav__submenu-trigger").hasClass("is-active")?t.hasClass("is-active")?mobileNav.toggle(t):(mobileNav.closeAll(),mobileNav.toggle(t)):mobileNav.toggle(t)}),$(".js-program-trigger").on("click",function(){$(".m-programs-nav__program").removeClass("is-active");var t=$(this).attr("data-program-id"),e=$("[data-program='"+t+"']");e.addClass("is-active"),$("header, .mobile-nav, .m-programs-nav").addClass("is-slide")}),$(".m-programs-nav__btn").on("click",function(){$("header, .mobile-nav, .m-programs-nav").removeClass("is-slide")}),$("body").on("click",".js-modal-trigger",function(){$("body, html").addClass("body-fixed");var t=$(this).attr("data-modal-id"),e=$("[data-modal='"+t+"']"),i=e.find("iframe").prop("src");i+="?&amp;autoplay=1",e.find("iframe").prop("src",i),e.addClass("is-active")}),$("body").on("click",".modal__close",function(){closeModal()}),$("body").on("click",".modal",function(t){$(t.target).closest(".modal__container").length||closeModal()}),$("body").on("click",".modal.cursor-close",function(t){closeModal()}),HTTP_GET_VARS=[],strGET=document.location.search.substr(1,document.location.search.length),""!==strGET)for(gArr=strGET.split("&"),i=0;i<gArr.length;++i)v="",vArr=gArr[i].split("="),vArr.length>1&&(v=vArr[1]),HTTP_GET_VARS[unescape(vArr[0])]=unescape(v);$(function(){$("[data-id='Email Address:input']").val(GET("subscribeMail"))}),$(function(){$(".js-tabs").each(function(){$(this).find(".js-tabs-trigger").eq(0).addClass("is-active"),$(this).find(".js-tabs-container").eq(0).addClass("is-active")}),$(".js-tabs-trigger").on("click",function(){$(this).siblings().removeClass("is-active"),$(this).closest(".js-tabs").children(".js-tabs-container").removeClass("is-active");var t=$(this).attr("data-tabs-id"),e=$("[data-tabs='"+t+"']");$(this).addClass("is-active"),e.addClass("is-active")})}),$(".checkbox-list__link").on("click",function(t){t.preventDefault();var e=this.getAttribute("href");setTimeout(function(){window.location=e},1e3)}),$(".checkbox-list__item").on("click",function(){$(this).addClass("is-active")}),$(".js-step-trigger").on("click",function(){var t=$(this).attr("data-step-trigger"),e=$("[data-step='"+t+"']");$(".js-step-trigger").removeClass("is-active"),$(this).addClass("is-active"),setTimeout(function(){"step-2"!=t&&"step-3"!=t||$(".js-step-item").addClass("hide"),e.siblings(".js-step-item").addClass("hide"),e.removeClass("hide"),"non-foreign-passport"!=t&&"located-taiwan"!=t&&"located-overseas"!=t||$("html, body").animate({scrollTop:e.offset().top},2e3)},1e3)}),$(".js-back-step").on("click",function(){var t=$(this).attr("data-step-trigger"),e=$("[data-step='"+t+"']");$(".js-step-trigger").removeClass("is-active"),$(".js-step-item").addClass("hide"),e.removeClass("hide")}),$(function(){if($("body").find("#homepage").length){$(".video-section__video")[0].play(),$("#header .bubble").addClass("bubble--up").removeClass("bubble--down"),breakpoint.below_desktop.matches&&$(".video-section, .fade-bg-section__section").height($(window).height()),$("body").addClass("homepage");var t=(new Waypoint({element:document.getElementById("video-section"),handler:function(t){"down"==t?$("#header").addClass("is-fixed"):$("#header").removeClass("is-fixed")},offset:function(t){return-this.element.clientHeight-62}}),$(window).height());new Waypoint({element:document.getElementById("header"),handler:function(t){"down"==t?$("#header .bubble").removeClass("bubble--up").addClass("bubble--down"):$("#header .bubble").removeClass("bubble--down").addClass("bubble--up")},offset:function(e){return t-300}})}}),$(".js-scroll-down").on("click",function(){$("html, body").animate({scrollTop:$(".fade-bg-section").offset().top},1e3)});const newsLimit=10,loadMoreItems=5;$(function(){$("[data-news-filter='"+today.format("MMM")+"']").removeClass("hide"),checkIfComplete()}),$(".js-news-loadmore").on("click",function(){$("body").find(".filtered-on").length?$(".filtered-on.hide:lt(5)").removeClass("hide"):$(".js-news-item.hide:lt(5)").removeClass("hide"),checkIfComplete()}),$(".js-news-filter").on("click",function(){$(".js-news-empty").addClass("hide"),$(".js-news-loadmore").parents(".underline-list__btn-wrap").show(),$(".js-news-item").addClass("hide"),$(".filtered-on:lt(10)").removeClass("hide"),checkIfComplete(),checkIfEmpty()});var _slicedToArray=function(){function t(t,e){var i=[],n=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(l){s=!0,o=l}finally{try{!n&&a["return"]&&a["return"]()}finally{if(s)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),DataFactory=function(){function t(e){_classCallCheck(this,t),this.type=e,this.url="/wp-json/wp/v2/"+("news"===this.type?"event":this.type)+"/?per_page=100",this.data=[]}return _createClass(t,[{key:"curl",value:function(t){return new Promise(function(e,i){return $.ajax({type:"GET",url:t,success:function(t,i,n){return e({data:t,pages:parseFloat(n.getResponseHeader("X-WP-TotalPages"))})},error:function(t){return i(t)}})})}},{key:"curlAllData",value:function(t,e){for(var i=[e],n=2;e.pages>1&&n<=e.pages;)i.push(this.curl(t+("&page="+n))),n++;return Promise.all(i)}},{key:"concatAll",value:function(t){return t.reduce(function(t,e){var i=e.data;return t.concat(i)},[])}},{key:"fmtNews",value:function(t){var e=t.id,i=t.title,n=t.link,s=t.acf,o=s.event_short_description,r=void 0===o?"":o,a=s.event_date,l=s.event_end_date,d=void 0===l?"":l,u=s.event_start_time,c=void 0===u?"":u,h=s.event_end_time,f=void 0===h?"":h,p=s.event_location,g=void 0===p?"":p,m=d||f?{end:moment(new Date((d||a)+"T"+f)).format()}:{allDay:!0};return $.extend({id:e,link:n,type:"news",title:i.rendered.replace(/\&\#038;/g,"&"),start:moment(new Date(a+"T"+c)).format(),className:"news "+(d?"":"single"),description:r,location:g},m)}},{key:"fmtCalendars",value:function(t){var e=t.id,i=t.title,n=t.link,s=t.acf,o=s.news_date,r=s.news_end_date,a=void 0===r?"":r,l=a&&a!==o?{end:moment(new Date(a+"T23:59:59")).format()}:{allDay:!0};return $.extend({id:e,link:n,type:"calendars",title:i.rendered.replace(/\&\#038;/g,"&"),start:moment(new Date(o+"T00:00:00")).format(),className:"calendars "+(a&&a!==o?"":"single")},l)}},{key:"format",value:function(t){var e="news"===this.type?this.fmtNews:this.fmtCalendars;return t.map(e)}},{key:"collect",value:function(){var t=this;return this.curl(this.url).then(function(e){return t.curlAllData(t.url,e)}).then(function(e){var i=t.concatAll(e);return t.data=t.format(i),t.data})}}]),t}(),Events=new DataFactory("news"),Calendar=new DataFactory("calendars");Promise.all([Events.collect(),Calendar.collect()]).then(function(t){var e=_slicedToArray(t,2),i=e[0],n=e[1];return $("#calendar").fullCalendar("addEventSource",i.concat(n))})["catch"](function(t){return console.error(t)});var isBelowDesktop=function(){return $(window).width()<=1024},switchViewType=function(){var t=isBelowDesktop()?"listMonth":"month",e=isBelowDesktop()?"auto":880;$("#calendar").fullCalendar("changeView",t),$("#calendar").fullCalendar("option","contentHeight",e);
},fmtDateTmpl=function(t,e){var i=t.format("D. MMM YYYY"),n=e.format("D. MMM YYYY");return i===n?'\n\t\t\t\t<p class="tooltip-content__start"><span class="tooltip-content__range">'+t.format("HH:mm")+'</span> to</p>\n\t\t\t\t<p class="tooltip-content__end"><span class="tooltip-content__range">'+e.format("HH:mm")+"</span></p>\n\t\t\t":'\n\t\t\t\t<p class="tooltip-content__start"><span class="tooltip-content__range">'+i+'</span> to</p>\n\t\t\t\t<p><span class="tooltip-content__range">'+t.format("HH:mm")+'</span></p>\n\t\t\t\t<p class="tooltip-content__end"><span class="tooltip-content__range">'+n+'</span></p>\n\t\t\t\t<p><span class="tooltip-content__range">'+e.format("HH:mm")+"</span></p>\n\t\t\t"};$("#calendar").fullCalendar({listDayFormat:"D",viewRender:function(t){var e=t.title.split(" "),i=_slicedToArray(e,2),n=i[0],s=i[1];$(".current-month").text(n),$(".current-year").text(s)},eventRender:function(t,e){var i=t.type,n=t.title,s=t.link,o=t.className,r=t.start,a=t.end,l=t.description,d=t.location;if(!isBelowDesktop()){var u=o.indexOf("calendars")>-1?"":"\n\t\t\t\t\t\t"+(l?'<p class="tooltip-content__description">'+l+"</p>":"")+"\n\t\t\t\t\t\t"+(d?'<div class="tooltip-content__location">'+d+"</div>":"")+'\n\t\t\t\t\t\t<div class="tooltip-content__date">\n\t\t\t\t\t\t\t<i class="tooltip-content__icon icon-calendar-blank"></i>\n\t\t\t\t\t\t\t<div class="tooltip-content__calendar">\n\t\t\t\t\t\t\t\t'+fmtDateTmpl(r,a)+"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t",c="news"===i?'\n\t\t\t\t\t\t<a class="tooltip-content" href="'+s+'" style="display: block;">\n\t\t\t\t\t\t\t<h1 class="tooltip-content__heading">'+n+"</h1>\n\t\t\t\t\t\t\t"+u+"\n\t\t\t\t\t\t</a>\n\t\t\t\t\t":'\n\t\t\t\t\t\t<div class="tooltip-content">\n\t\t\t\t\t\t\t<h1 class="tooltip-content__heading">'+n+"</h1>\n\t\t\t\t\t\t\t"+u+"\n\t\t\t\t\t\t</div>\n\t\t\t\t\t";return e.qtip({content:c,position:{my:"left top",at:"right center"},style:{classes:"qtip-light qtip-shadow",width:160},show:{event:"click"},hide:{event:"unfocus"}})}l&&e.find(".fc-list-item-title").append('<p class="fc-description">'+l+"</p>")},eventAfterAllRender:function(){$(".fc-list-item-time").each(function(){switch(!0){case $(this).closest(".fc-list-item").hasClass("calendars"):return $(this).hide();case"all-day"===this.textContent:return $(this).text("All day");default:return $(this).text(this.textContent.replace(" - "," to "))}})}}),switchViewType(),$(window).resize(switchViewType),$(".calendar-switch, .calendar-heading__switch").click(function(){$("#calendar").fullCalendar($(this).data("toggle"))}),$(".calendar-checkbox").change(function(){var t=$(this).attr("name"),e="news"===t?Events.data:Calendar.data;this.checked?$("#calendar").fullCalendar("addEventSource",e):$("#calendar").fullCalendar("removeEvents",function(e){return e.className.indexOf(t)>-1})});var today=moment(),selectedDate=today,displayLimit=6,currentdisplayCount=0,qualifyItemCount=0,skipItem=0,skipCount=0,$datepicker=$("#events-datepicker").pikaday({firstDay:1,minDate:new Date(2e3,0,1),maxDate:new Date(2020,12,31),yearRange:[2e3,2020],onSelect:function(){if(selectedDate=this.getMoment(),$("#events-datepicker").hasClass("calender-toolbox__datepicker")){$("#calendar").fullCalendar("gotoDate",selectedDate);var t=$('[data-date="'+selectedDate.format("YYYY-MM-DD")+'"]');t.addClass("fc-highlight"),setTimeout(function(){return t.removeClass("fc-highlight")},3e3)}updateTitleDate(selectedDate,"events-day"),clearEventsdata(),loadEventsdata("events-day")}});$("#currentDay").on("click",function(){$("#calendar").fullCalendar("today")}),document.addEventListener("DOMContentLoaded",function(t){$(".filter-list__item").eq(0).find(".filter-list__btn").addClass("is-active"),$("body").find("#display-date").length&&updateTitleDate(selectedDate,"events-all"),displayLoading(),updateContainerHeight(),loadEventsdata("events-all")}),$(".filter-list__btn").on("click",function(){resetCounts(),$(".filter-list__btn").removeClass("is-active"),$(this).addClass("is-active");var t=$(this).attr("data-events-filter-id");"events-day"==t?($("#events-datepicker").removeClass("hide"),$("#week-switch").addClass("hide")):"events-week"==t?($("#events-datepicker").addClass("hide"),$("#week-switch").removeClass("hide")):($("#events-datepicker").addClass("hide"),$("#week-switch").addClass("hide")),updateTitleDate(selectedDate,t),clearEventsdata(),loadEventsdata(t)}),$(".js-switch-week").on("click",function(){resetCounts(),clearEventsdata(),$(this).hasClass("next-week")?(selectedDate=selectedDate.clone().add(1,"week"),updateTitleDate(selectedDate,"events-week")):$(this).hasClass("previous-week")&&(selectedDate=selectedDate.clone().add(-1,"week"),updateTitleDate(selectedDate,"events-week")),loadEventsdata("events-week")}),$(".js-event-load-more").on("click",function(){$(this).find(".with-icon-btn__text").html("Loading"),$(this).find(".with-icon-btn__icon").hide(),loadEventsdata("events-all")});var event_card_tpl=function(t){return t.map(function(t){var e="Invalid date"!=t.event_end_day?"- "+(t.event_end_month===t.event_month?t.event_end_day:t.event_end_month+". "+t.event_end_day):"";return'\n\t\t<div class="isotope-section__item" data-sort="'+t.event_day_sort+'">\n\t\t\t<div class="top-img-card">\n\t\t\t\t<a class="top-img-card__link" href="'+t.event_link+'">\n\t\t\t\t\t<div class="top-img-card__img-wrap">\n\t\t\t\t\t\t<div class="top-img-card__img lazyload" data-src="'+t.event_thumb+'"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="top-img-card__container">\n\t\t\t\t\t\t<h3 class="top-img-card__subheading">\n\t\t\t\t\t\t\t'+t.event_month+". "+t.event_day+"\n\t\t\t\t\t\t\t"+e+'\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t<h2 class="top-img-card__heading">'+t.event_title+'</h2>\n\t\t\t\t\t\t<p class="top-img-card__description">'+t.event_description+'</p>\n\t\t\t\t\t\t<div class="top-img-card__bottom">more</div>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t'}).join("")},tDisplayLimit=10,totalItem=0,tCurrentdisplay=0,tSkipCount=0,tSkipItem=0;document.addEventListener("DOMContentLoaded",function(t){$("body").find(".js-testimonial-isotope").length&&(displayLoading(),updateContainerHeight(),loadTestimonialData())}),$(".js-testimonial-loadmore").on("click",function(){$(this).find(".with-icon-btn__text").html("Loading"),$(this).find(".with-icon-btn__icon").hide(),loadTestimonialData()});var testimonial_card_tpl=function(t){return t.map(function(t){return'\n\t\t<div class="isotope-section__item">\n\t\t\t<div class="description-block">\n\t\t\t\t<div class="description-block__top">\n\n\t\t\t\t\t<p class="description-block__paragraph"><i class="description-block__icon icon-quote"></i>'+t.t_description+'”</p>\n\t\t\t\t</div>\n\t\t\t\t<div class="description-block__bottom">\n\t\t\t\t\t<h3 class="description-block__heading">'+t.t_title+'</h3>\n\t\t\t\t\t<h4 class="description-block__subheading">'+t.t_location+"</h4>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t"}).join("")};