dw.js 388 KB

1
  1. function header(){var t=$(window),n=$(".header-small"),r=!1;function e(){var e=t.scrollTop();200<e&&!r?(n.addClass("showing"),r=!0):e<=200&&r&&(n.removeClass("showing"),r=!1)}t.scroll(e),e()}function hamburger(){var e=!1,t=$(".hamburger"),n=$(".header-small");t.on("click",function(){e=!e,t.toggleClass("is-active"),n.toggleClass("menu-open")}),$(window).on("scroll",function(){e&&(t.removeClass("is-active"),n.removeClass("menu-open"),e=!1)})}function why(){var e,t=0,n=$(".testimonials-section"),r=$(".br-testimonial"),i=$(".indicators");function o(){r.removeClass("showing"),t<r.length-1?t++:t=0,r.eq(t).addClass("showing"),i.children().eq(t).addClass("current").siblings().removeClass("current")}function s(){e=setInterval(function(){o()},6e3)}function a(){clearInterval(e)}function l(){a(),o(),s()}r.length&&(function(){for(var e=0;e<r.length;e++){var t=$("<span></span>");0===e&&t.addClass("current"),i.append(t)}}(),s(),n.on("mouseenter",".br-testimonial",function(){a()}),n.on("mouseleave",".br-testimonial",function(){s()}),i.on("click","span",function(){t=$(this).index()-1,l()}),$(".next-testimonial").on("click",function(){l()}))}function waypoints(){var t=[],n=$(window),o=$("body"),s=$(".header-small"),e=$(".page-view"),a=$("html");function r(e){e.removeClass("viewport-above viewport-below viewport-inside")}function l(e,t){r(e),e.addClass(t)}function i(){n.width()}function u(){e.each(function(){var i=$(this),e=new Waypoint.Inview({element:i[0],enter:function(e){var t,n,r;n=i.prev(".background-color"),r=!1,n.length&&(r=n[0].hasAttribute("data-dark-bg")?"dark-bg":"light-bg",t=n.css("background-color"),o.css("background",t),a.css("background",t),o.attr("bg",r),s.css("color",t)),l(i,"viewport-inside")},exited:function(e){l(i,"down"==e?"viewport-above":"viewport-below")},offset:{top:n.height()/2,bottom:n.height()/2}});t.push(e)})}function c(){!function(){for(var e=0;e<t.length;e++)t[e].destroy();t=[]}(),u()}c(),i(),$(window).on("resize",function(){e.each(function(){r($(this))}),c(),i()})}function waypoint_init(){Waypoint.Inview.prototype.createWaypoints=function(){function t(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseInt(n.marginTop)+parseInt(n.marginBottom)}for(var e={vertical:[{down:"enter",up:"exited",offset:function(){var e=this.options.offset&&this.options.offset.bottom||0;return this.options.context.innerHeight-e}.bind(this)},{down:"entered",up:"exit",offset:function(){var e=this.options.offset&&this.options.offset.bottom||0;return this.options.context.innerHeight-t(this.element)-e}.bind(this)},{down:"exit",up:"entered",offset:function(){return this.options.offset&&this.options.offset.top||0}.bind(this)},{down:"exited",up:"enter",offset:function(){return(this.options.offset&&this.options.offset.top||0)-t(this.element)}.bind(this)}],horizontal:[{right:"enter",left:"exited",offset:"100%"},{right:"entered",left:"exit",offset:"right-in-view"},{right:"exit",left:"entered",offset:0},{right:"exited",left:"enter",offset:function(){return-this.adapter.outerWidth()}}]},n=0,r=e[this.axis].length;n<r;n++){var i=e[this.axis][n];this.createWaypoint(i)}},$.fn.scrollEnd=function(t,n){$(this).scroll(function(){var e=$(this);e.data("scrollTimeout")&&clearTimeout(e.data("scrollTimeout")),e.data("scrollTimeout",setTimeout(t,n))})}}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(E,e){"use strict";function g(e){return null!=e&&e===e.window}var t=[],D=E.document,r=Object.getPrototypeOf,a=t.slice,m=t.concat,l=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,s=v.toString,u=s.call(Object),y={},S=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||D).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var d="3.4.1",T=function(e,t){return new T.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function f(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!S(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}T.fn=T.prototype={jquery:d,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(n){return this.pushStack(T.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},T.extend=T.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||S(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(u&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,s[t]=T.extend(u,o,r)):void 0!==r&&(s[t]=r));return s},T.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e)||(t=r(e))&&("function"!=typeof(n=v.call(t,"constructor")&&t.constructor)||s.call(n)!==u))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){w(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(f(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(f(Object(e))?T.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!=s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(f(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return m.apply([],s)},guid:1,support:y}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=t[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){function d(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function i(){b()}var e,f,w,o,s,p,h,g,_,l,u,b,E,a,D,m,c,v,y,T="sizzle"+ +new Date,S=n.document,C=0,r=0,x=le(),k=le(),I=le(),R=le(),M=function(e,t){return e===t&&(u=!0),0},O={}.hasOwnProperty,t=[],P=t.pop,N=t.push,A=t.push,H=t.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+W+"*("+z+")(?:"+W+"*([*^$|!~]?=)"+W+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+W+"*\\]",U=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",Y=new RegExp(W+"+","g"),B=new RegExp("^"+W+"+|((?:^|[^\\\\])(?:\\\\.)*)"+W+"+$","g"),V=new RegExp("^"+W+"*,"+W+"*"),G=new RegExp("^"+W+"*([>+~]|"+W+")"+W+"*"),q=new RegExp(W+"|>"),Z=new RegExp(U),$=new RegExp("^"+z+"$"),Q={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+W+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,re=new RegExp("\\\\([\\da-f]{1,6}"+W+"?|("+W+")|.)","ig"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{A.apply(t=H.call(S.childNodes),S.childNodes),t[S.childNodes.length].nodeType}catch(e){A={apply:t.length?function(e,t){N.apply(e,H.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,n,r){var i,o,s,a,l,u,c,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:S)!==E&&b(t),t=t||E,D)){if(11!==h&&(l=te.exec(e)))if(i=l[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(d&&(s=d.getElementById(i))&&y(t,s)&&s.id===i)return n.push(s),n}else{if(l[2])return A.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&f.getElementsByClassName&&t.getElementsByClassName)return A.apply(n,t.getElementsByClassName(i)),n}if(f.qsa&&!R[e+" "]&&(!m||!m.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(c=e,d=t,1===h&&q.test(e)){for((a=t.getAttribute("id"))?a=a.replace(ie,oe):t.setAttribute("id",a=T),o=(u=p(e)).length;o--;)u[o]="#"+a+" "+Se(u[o]);c=u.join(","),d=ne.test(e)&&ve(t.parentNode)||t}try{return A.apply(n,d.querySelectorAll(c)),n}catch(t){R(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return g(e.replace(B,"$1"),t,n,r)}function le(){var r=[];return function e(t,n){return r.push(t+" ")>w.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function ue(e){return e[T]=!0,e}function ce(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function me(s){return ue(function(o){return o=+o,ue(function(e,t){for(var n,r=s([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=ae.support={},s=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},b=ae.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:S;return r!==E&&9===r.nodeType&&r.documentElement&&(a=(E=r).documentElement,D=!s(E),S!==E&&(n=E.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),f.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ce(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=ee.test(E.getElementsByClassName),f.getById=ce(function(e){return a.appendChild(e).id=T,!E.getElementsByName||!E.getElementsByName(T).length}),f.getById?(w.filter.ID=function(e){var t=e.replace(re,d);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&D){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(re,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&D){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},w.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&D)return t.getElementsByClassName(e)},c=[],m=[],(f.qsa=ee.test(E.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+W+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+W+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+T+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||m.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+W+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=ee.test(v=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){f.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),c.push("!=",U)}),m=m.length&&new RegExp(m.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(a.compareDocumentPosition),y=t||ee.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},M=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===E||e.ownerDocument===S&&y(S,e)?-1:t===E||t.ownerDocument===S&&y(S,t)?1:l?L(l,e)-L(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e===E?-1:t===E?1:i?-1:o?1:l?L(l,e)-L(l,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?he(s[r],a[r]):s[r]===S?-1:a[r]===S?1:0}),E},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==E&&b(e),f.matchesSelector&&D&&!R[t+" "]&&(!c||!c.test(t))&&(!m||!m.test(t)))try{var n=v.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){R(t,!0)}return 0<ae(t,E,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!==E&&b(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==E&&b(e);var n=w.attrHandle[t.toLowerCase()],r=n&&O.call(w.attrHandle,t.toLowerCase())?n(e,t,!D):void 0;return void 0!==r?r:f.attributes||!D?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],r=0,i=0;if(u=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(M),u){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return l=null,e},o=ae.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(w=ae.selectors={cacheLength:50,createPseudo:ue,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,d),e[3]=(e[3]||e[4]||e[5]||"").replace(re,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Z.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+W+")"+e+"("+W+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=ae.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(Y," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),S="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,s,a,l,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,d=S&&e.nodeName.toLowerCase(),h=!n&&!S,f=!1;if(c){if(v){for(;u;){for(s=e;s=s[u];)if(S?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(f=(a=(r=(i=(o=(s=c)[T]||(s[T]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===C&&r[1])&&r[2],s=a&&c.childNodes[a];s=++a&&s&&s[u]||(f=a=0)||l.pop();)if(1===s.nodeType&&++f&&s===e){i[p]=[C,a,f];break}}else if(h&&(f=a=(r=(i=(o=(s=e)[T]||(s[T]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===C&&r[1]),!1===f)for(;(s=++a&&s&&s[u]||(f=a=0)||l.pop())&&((S?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++f||(h&&((i=(o=s[T]||(s[T]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]=[C,f]),s!==e)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(e,o){var t,s=w.pseudos[e]||w.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return s[T]?s(o):1<s.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,t){for(var n,r=s(e,o),i=r.length;i--;)e[n=L(e,r[i])]=!(t[n]=r[i])}):function(e){return s(e,0,t)}):s}},pseudos:{not:ue(function(e){var r=[],i=[],a=h(e.replace(B,"$1"));return a[T]?ue(function(e,t,n,r){for(var i,o=a(e,null,r,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,t,n){return r[0]=e,a(r,null,n,i),r[0]=null,!i.pop()}}),has:ue(function(t){return function(e){return 0<ae(t,e).length}}),contains:ue(function(t){return t=t.replace(re,d),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:ue(function(n){return $.test(n||"")||ae.error("unsupported lang: "+n),n=n.replace(re,d).toLowerCase(),function(e){var t;do{if(t=D?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:me(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=fe(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=pe(e);function ye(){}function Se(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(a,e,t){var l=e.dir,u=e.next,c=u||l,d=t&&"parentNode"===c,h=r++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||d)return a(e,t,n);return!1}:function(e,t,n){var r,i,o,s=[C,h];if(n){for(;e=e[l];)if((1===e.nodeType||d)&&a(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||d)if(i=(o=e[T]||(e[T]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[l]||e;else{if((r=i[c])&&r[0]===C&&r[1]===h)return s[2]=r[2];if((i[c]=s)[2]=a(e,t,n))return!0}return!1}}function _e(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function be(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),u&&t.push(a)));return s}function Ee(f,p,g,m,v,e){return m&&!m[T]&&(m=Ee(m)),v&&!v[T]&&(v=Ee(v,e)),ue(function(e,t,n,r){var i,o,s,a=[],l=[],u=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ae(e,t[r],n);return n}(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?c:be(c,a,f,n,r),h=g?v||(e?f:u||m)?[]:t:d;if(g&&g(d,h,n,r),m)for(i=be(h,l),m(i,[],n,r),o=i.length;o--;)(s=i[o])&&(h[l[o]]=!(d[l[o]]=s));if(e){if(v||f){if(v){for(i=[],o=h.length;o--;)(s=h[o])&&i.push(d[o]=s);v(null,h=[],i,r)}for(o=h.length;o--;)(s=h[o])&&-1<(i=v?L(e,s):a[o])&&(e[i]=!(t[i]=s))}}else h=be(h===t?h.splice(u,h.length):h),v?v(null,t,h,r):A.apply(t,h)})}function De(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,l=we(function(e){return e===i},s,!0),u=we(function(e){return-1<L(i,e)},s,!0),c=[function(e,t,n){var r=!o&&(n||t!==_)||((i=t).nodeType?l:u)(e,t,n);return i=null,r}];a<r;a++)if(t=w.relative[e[a].type])c=[we(_e(c),t)];else{if((t=w.filter[e[a].type].apply(null,e[a].matches))[T]){for(n=++a;n<r&&!w.relative[e[n].type];n++);return Ee(1<a&&_e(c),1<a&&Se(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(B,"$1"),t,a<n&&De(e.slice(a,n)),n<r&&De(e=e.slice(n)),n<r&&Se(e))}c.push(t)}return _e(c)}return ye.prototype=w.filters=w.pseudos,w.setFilters=new ye,p=ae.tokenize=function(e,t){var n,r,i,o,s,a,l,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,a=[],l=w.preFilter;s;){for(o in n&&!(r=V.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=G.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),s=s.slice(n.length)),w.filter)!(r=Q[o].exec(s))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ae.error(e):k(e,a).slice(0)},h=ae.compile=function(e,t){var n,m,v,y,S,r,i=[],o=[],s=I[e+" "];if(!s){for(n=(t=t||p(e)).length;n--;)(s=De(t[n]))[T]?i.push(s):o.push(s);(s=I(e,(m=o,y=0<(v=i).length,S=0<m.length,r=function(e,t,n,r,i){var o,s,a,l=0,u="0",c=e&&[],d=[],h=_,f=e||S&&w.find.TAG("*",i),p=C+=null==h?1:Math.random()||.1,g=f.length;for(i&&(_=t===E||t||i);u!==g&&null!=(o=f[u]);u++){if(S&&o){for(s=0,t||o.ownerDocument===E||(b(o),n=!D);a=m[s++];)if(a(o,t||E,n)){r.push(o);break}i&&(C=p)}y&&((o=!a&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(s=0;a=v[s++];)a(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=P.call(r));d=be(d)}A.apply(r,d),i&&!e&&0<d.length&&1<l+v.length&&ae.uniqueSort(r)}return i&&(C=p,_=h),c},y?ue(r):r))).selector=e}return s},g=ae.select=function(e,t,n,r){var i,o,s,a,l,u="function"==typeof e&&e,c=!r&&p(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(s=o[0]).type&&9===t.nodeType&&D&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(re,d),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=Q.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((l=w.find[a])&&(r=l(s.matches[0].replace(re,d),ne.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Se(o)))return A.apply(n,r),n;break}}return(u||h(e,c))(r,t,!D,n,!t||ne.test(e)&&ve(t.parentNode)||t),n},f.sortStable=T.split("").sort(M).join("")===T,f.detectDuplicates=!!u,b(),f.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(E.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(j,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ae}(E);T.find=p,T.expr=p.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=p.uniqueSort,T.text=p.getText,T.isXMLDoc=p.isXML,T.contains=p.contains,T.escapeSelector=p.escape;function b(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r}function C(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var x=T.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,n,r){return S(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?T.grep(e,function(e){return e===n!==r}):"string"!=typeof n?T.grep(e,function(e){return-1<i.call(n,e)!==r}):T.filter(n,e,r)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return 1<r?T.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&x.test(e)?T(e):e||[],!1).length}});var M,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||M,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):S(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:D,!0)),I.test(r[1])&&T.isPlainObject(t))for(r in t)S(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=D.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=T.fn,M=T(D);var P=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&T(e);if(!x.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(T(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b(e,"parentNode")},parentsUntil:function(e,t,n){return b(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return b(e,"nextSibling")},prevAll:function(e){return b(e,"previousSibling")},nextUntil:function(e,t,n){return b(e,"nextSibling",n)},prevUntil:function(e,t,n){return b(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(k(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(r,i){T.fn[r]=function(e,t){var n=T.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=T.filter(t,n)),1<this.length&&(N[r]||T.uniqueSort(n),P.test(r)&&n.reverse()),this.pushStack(n)}});var H=/[^\x20\t\r\n\f]+/g;function L(e){return e}function j(e){throw e}function W(e,t,n,r){var i;try{e&&S(i=e.promise)?i.call(e).done(t).fail(n):e&&S(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(r){var n;r="string"==typeof r?(n={},T.each(r.match(H)||[],function(e,t){n[t]=!0}),n):T.extend({},r);function i(){for(s=s||r.once,t=o=!0;l.length;u=-1)for(e=l.shift();++u<a.length;)!1===a[u].apply(e[0],e[1])&&r.stopOnFalse&&(u=a.length,e=!1);r.memory||(e=!1),o=!1,s&&(a=e?[]:"")}var o,e,t,s,a=[],l=[],u=-1,c={add:function(){return a&&(e&&!o&&(u=a.length-1,l.push(e)),function n(e){T.each(e,function(e,t){S(t)?r.unique&&c.has(t)||a.push(t):t&&t.length&&"string"!==_(t)&&n(t)})}(arguments),e&&!o&&i()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;-1<(n=T.inArray(t,a,n));)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<T.inArray(e,a):0<a.length},empty:function(){return a=a&&[],this},disable:function(){return s=l=[],a=e="",this},disabled:function(){return!a},lock:function(){return s=l=[],e||o||(a=e=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),o||i()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!t}};return c},T.extend({Deferred:function(e){var o=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var i=arguments;return T.Deferred(function(r){T.each(o,function(e,t){var n=S(i[t[4]])&&i[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&S(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var l=0;function u(i,o,s,a){return function(){function e(){var e,t;if(!(i<l)){if((e=s.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,S(t)?a?t.call(e,u(l,o,L,a),u(l,o,j,a)):(l++,t.call(e,u(l,o,L,a),u(l,o,j,a),u(l,o,L,o.notifyWith))):(s!==L&&(n=void 0,r=[e]),(a||o.resolveWith)(n,r))}}var n=this,r=arguments,t=a?e:function(){try{e()}catch(e){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(e,t.stackTrace),l<=i+1&&(s!==j&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(T.Deferred.getStackHook&&(t.stackTrace=T.Deferred.getStackHook()),E.setTimeout(t))}}return T.Deferred(function(e){o[0][3].add(u(0,e,S(r)?r:L,e.notifyWith)),o[1][3].add(u(0,e,S(t)?t:L)),o[2][3].add(u(0,e,S(n)?n:j))}).promise()},promise:function(e){return null!=e?T.extend(e,s):s}},a={};return T.each(o,function(e,t){var n=t[2],r=t[5];s[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){i[t]=this,o[t]=1<arguments.length?a.call(arguments):e,--n||s.resolveWith(i,o)}}var n=arguments.length,r=n,i=Array(r),o=a.call(arguments),s=T.Deferred();if(n<=1&&(W(e,s.done(t(r)).resolve,s.reject,!n),"pending"===s.state()||S(o[r]&&o[r].then)))return s.then();for(;r--;)W(o[r],t(r),s.reject);return s.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){E.console&&E.console.warn&&e&&z.test(e.name)&&E.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){E.setTimeout(function(){throw e})};var F=T.Deferred();function U(){D.removeEventListener("DOMContentLoaded",U),E.removeEventListener("load",U),T.ready()}T.fn.ready=function(e){return F.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||F.resolveWith(D,[T])}}),T.ready.then=F.then,"complete"===D.readyState||"loading"!==D.readyState&&!D.documentElement.doScroll?E.setTimeout(T.ready):(D.addEventListener("DOMContentLoaded",U),E.addEventListener("load",U));var Y=function(e,t,n,r,i,o,s){var a=0,l=e.length,u=null==n;if("object"===_(n))for(a in i=!0,n)Y(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,S(r)||(s=!0),u&&(t=s?(t.call(e,r),null):(u=t,function(e,t,n){return u.call(T(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:u?t.call(e):l?t(e[0],n):o},B=/^-ms-/,V=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function q(e){return e.replace(B,"ms-").replace(V,G)}function Z(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function $(){this.expando=T.expando+$.uid++}$.uid=1,$.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[q(t)]=n;else for(r in t)i[q(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(q):(t=q(t))in r?[t]:t.match(H)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!T.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var Q=new $,K=new $,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function ee(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}K.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return K.hasData(e)||Q.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),T.fn.extend({data:function(n,e){var t,r,i,o=this[0],s=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){K.set(this,n)}):Y(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=K.get(o,n))||void 0!==(t=ee(o,n))?t:void 0;this.each(function(){K.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=K.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(r=s[t].name).indexOf("data-")&&(r=q(r.slice(5)),ee(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),o=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){T.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:T.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each(function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--i||o.resolveWith(s,[s])}var r,i=1,o=T.Deferred(),s=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=Q.get(s[a],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=D.documentElement,oe=function(e){return T.contains(e.ownerDocument,e)},se={composed:!0};ie.getRootNode&&(oe=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});function ae(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===T.css(e,"display")}function le(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=s[o];return i}function ue(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=a(),u=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+l)&&ne.exec(T.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)T.style(e,t,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,T.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var ce={};function de(e,t){for(var n,r,i,o,s,a,l=[],u=0,c=e.length;u<c;u++)(r=e[u]).style&&(n=r.style.display,t?("none"===n&&(l[u]=Q.get(r,"display")||null,l[u]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[u]=(a=o=i=void 0,o=r.ownerDocument,s=r.nodeName,(a=ce[s])||(i=o.body.appendChild(o.createElement(s)),a=T.css(i,"display"),i.parentNode.removeChild(i),"none"===a&&(a="block"),ce[s]=a)))):"none"!==n&&(l[u]="none",Q.set(r,"display",n)));for(u=0;u<c;u++)null!=l[u]&&(e[u].style.display=l[u]);return e}T.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?T(this).show():T(this).hide()})}});var he=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,ge={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,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?T.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var ye,Se,we=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var o,s,a,l,u,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===_(o))T.merge(h,o.nodeType?[o]:o);else if(we.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(fe.exec(o)||["",""])[1].toLowerCase(),l=ge[a]||ge._default,s.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;T.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(r&&-1<T.inArray(o,r))i&&i.push(o);else if(u=oe(o),s=me(d.appendChild(o),"script"),u&&ve(s),n)for(c=0;o=s[c++];)pe.test(o.type||"")&&n.push(o);return d}ye=D.createDocumentFragment().appendChild(D.createElement("div")),(Se=D.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),ye.appendChild(Se),y.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var be=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,De=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ce(){return!1}function xe(e,t){return e===function(){try{return D.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ce;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return T().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),e.each(function(){T.event.add(this,t,i,r,n)})}function Ie(e,i,o){o?(Q.set(e,i,!1),T.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(T.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:T.event.trigger(T.extend(r[0],T.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&T.event.add(e,i,Te)}T.event={global:{},add:function(t,e,n,r,i){var o,s,a,l,u,c,d,h,f,p,g,m=Q.get(t);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(ie,i),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(H)||[""]).length;u--;)f=g=(a=De.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=T.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=T.event.special[f]||{},c=T.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),T.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,u,c,d,h,f,p,g,m=Q.hasData(e)&&Q.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(H)||[""]).length;u--;)if(f=g=(a=De.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=T.event.special[f]||{},h=l[f=(r?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||T.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)T.event.remove(e,f+t[u],n,r,!0);T.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=T.event.fix(e),l=new Array(arguments.length),u=(Q.get(this,"events")||{})[a.type]||[],c=T.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=T.event.handlers.call(this,a,u),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?-1<T(i,this).index(u):T.find(i,this,null,[u]).length),s[i]&&o.push(r);o.length&&a.push({elem:u,handlers:o})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:S(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&k(t,"input")&&Ie(t,"click",Te),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&k(t,"input")&&Ie(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&k(t,"input")&&Q.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){T.event.special[e]={setup:function(){return Ie(this,e,xe),!1},trigger:function(){return Ie(this,e),!0},delegateType:t}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){T.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||T.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),T.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each(function(){T.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Me=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,s,a,l,u;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),s=Q.set(t,o),u=o.events))for(i in delete s.handle,s.events={},u)for(n=0,r=u[i].length;n<r;n++)T.event.add(t,i,u[i][n]);K.hasData(e)&&(a=K.access(e),l=T.extend({},a),K.set(t,l))}}function je(n,r,i,o){r=m.apply([],r);var e,t,s,a,l,u,c=0,d=n.length,h=d-1,f=r[0],p=S(f);if(p||1<d&&"string"==typeof f&&!y.checkClone&&Oe.test(f))return n.each(function(e){var t=n.eq(e);p&&(r[0]=f.call(this,e,t.html())),je(t,r,i,o)});if(d&&(t=(e=_e(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(s=T.map(me(e,"script"),Ae)).length;c<d;c++)l=e,c!==h&&(l=T.clone(l,!0,!0),a&&T.merge(s,me(l,"script"))),i.call(n[c],l,c);if(a)for(u=s[s.length-1].ownerDocument,T.map(s,He),c=0;c<a;c++)l=s[c],pe.test(l.type||"")&&!Q.access(l,"globalEval")&&T.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):w(l.textContent.replace(Pe,""),l,u))}return n}function We(e,t,n){for(var r,i=t?T.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(me(r)),r.parentNode&&(n&&oe(r)&&ve(me(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e.replace(Re,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a,l,u,c=e.cloneNode(!0),d=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(s=me(c),r=0,i=(o=me(e)).length;r<i;r++)a=o[r],"input"===(u=(l=s[r]).nodeName.toLowerCase())&&he.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||me(e),s=s||me(c),r=0,i=o.length;r<i;r++)Le(o[r],s[r]);else Le(e,c);return 0<(s=me(c,"script")).length&&ve(s,!d&&me(e,"script")),c},cleanData:function(e){for(var t,n,r,i=T.event.special,o=0;void 0!==(n=e[o]);o++)if(Z(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),T.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return Y(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return Y(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return je(this,arguments,function(e){var t=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(me(this)),t&&t.replaceChild(e,this))},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){T.fn[e]=function(e){for(var t,n=[],r=T(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),T(r[o])[s](t),l.apply(n,t.get());return this.pushStack(n)}});var ze,Fe,Ue,Ye,Be,Ve,Ge,qe=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=E),t.getComputedStyle(e)},$e=new RegExp(re.join("|"),"i");function Qe(e,t,n){var r,i,o,s,a=e.style;return(n=n||Ze(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||oe(e)||(s=T.style(e,t)),!y.pixelBoxStyles()&&qe.test(s)&&$e.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function Ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function Xe(){if(Ge){Ve.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ge.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(Ve).appendChild(Ge);var e=E.getComputedStyle(Ge);ze="1%"!==e.top,Be=12===Je(e.marginLeft),Ge.style.right="60%",Ye=36===Je(e.right),Fe=36===Je(e.width),Ge.style.position="absolute",Ue=12===Je(Ge.offsetWidth/3),ie.removeChild(Ve),Ge=null}}function Je(e){return Math.round(parseFloat(e))}Ve=D.createElement("div"),(Ge=D.createElement("div")).style&&(Ge.style.backgroundClip="content-box",Ge.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Ge.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return Xe(),Fe},pixelBoxStyles:function(){return Xe(),Ye},pixelPosition:function(){return Xe(),ze},reliableMarginLeft:function(){return Xe(),Be},scrollboxSize:function(){return Xe(),Ue}}));var et=["Webkit","Moz","ms"],tt=D.createElement("div").style,nt={};function rt(e){return T.cssProps[e]||nt[e]||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var it=/^(none|table(?!-c[ea]).+)/,ot=/^--/,st={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ut(e,t,n,r,i,o){var s="width"===t?1:0,a=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=T.css(e,n+re[s],!0,i)),r?("content"===n&&(l-=T.css(e,"padding"+re[s],!0,i)),"margin"!==n&&(l-=T.css(e,"border"+re[s]+"Width",!0,i))):(l+=T.css(e,"padding"+re[s],!0,i),"padding"!==n?l+=T.css(e,"border"+re[s]+"Width",!0,i):a+=T.css(e,"border"+re[s]+"Width",!0,i));return!r&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function ct(e,t,n){var r=Ze(e),i=(!y.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),o=i,s=Qe(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(s)){if(!n)return s;s="auto"}return(!y.boxSizingReliable()&&i||"auto"===s||!parseFloat(s)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ut(e,t,n||(i?"border":"content"),o,r,s)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=q(t),l=ot.test(t),u=e.style;if(l||(t=rt(a)),s=T.cssHooks[t]||T.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=ne.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(T.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,s,a=q(t);return ot.test(t)||(t=rt(a)),(s=T.cssHooks[t]||T.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Qe(e,t,r)),"normal"===i&&t in at&&(i=at[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],function(e,l){T.cssHooks[l]={get:function(e,t,n){if(t)return!it.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,l,n):le(e,st,function(){return ct(e,l,n)})},set:function(e,t,n){var r,i=Ze(e),o=!y.scrollboxSize()&&"absolute"===i.position,s=(o||n)&&"border-box"===T.css(e,"boxSizing",!1,i),a=n?ut(e,l,n,s,i):0;return s&&o&&(a-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(i[l])-ut(e,l,"border",!1,i)-.5)),a&&(r=ne.exec(t))&&"px"!==(r[3]||"px")&&(e.style[l]=t,t=T.css(e,l)),lt(0,t,a)}}}),T.cssHooks.marginLeft=Ke(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-le(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(i,o){T.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+re[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(T.cssHooks[i+o].set=lt)}),T.fn.extend({css:function(e,t){return Y(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=Ze(e),i=t.length;s<i;s++)o[t[s]]=T.css(e,t[s],!1,r);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,1<arguments.length)}}),((T.Tween=dt).prototype={constructor:dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}}).init.prototype=dt.prototype,(dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=dt.prototype.init,T.fx.step={};var ht,ft,pt,gt,mt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;function yt(){ft&&(!1===D.hidden&&E.requestAnimationFrame?E.requestAnimationFrame(yt):E.setTimeout(yt,T.fx.interval),T.fx.tick())}function St(){return E.setTimeout(function(){ht=void 0}),ht=Date.now()}function wt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=re[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function _t(e,t,n){for(var r,i=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function bt(o,e,t){var n,s,r=0,i=bt.prefilters.length,a=T.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=ht||St(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),r=0,i=u.tweens.length;r<i;r++)u.tweens[r].run(n);return a.notifyWith(o,[u,n,t]),n<1&&i?t:(i||a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u]),!1)},u=a.promise({elem:o,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:ht||St(),duration:t.duration,tweens:[],createTween:function(e,t){var n=T.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)u.tweens[t].run(1);return e?(a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u,e])):a.rejectWith(o,[u,e]),this}}),c=u.props;for(function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=q(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=T.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);r<i;r++)if(n=bt.prefilters[r].call(u,o,c,u.opts))return S(n.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return T.map(c,_t,u),S(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=S(e)?(t=e,["*"]):e.match(H)).length;r<i;r++)n=e[r],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,l,u,c,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&ae(e),m=Q.get(e,"fxshow");for(r in n.queue||(null==(s=T._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,T.queue(e,"fx").length||s.empty.fire()})})),t)if(i=t[r],mt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=Q.get(e,"display")),"none"===(c=T.css(e,"display"))&&(u?c=u:(de([e],!0),u=e.style.display||u,c=T.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===T.css(e,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=Q.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&de([e],!0),h.done(function(){for(r in g||de([e]),Q.remove(e,"fxshow"),f)T.style(e,r,f[r])})),l=_t(g?m[r]:0,r,h),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||S(e)&&e,duration:e,easing:n&&t||t&&!S(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){S(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){function i(){var e=bt(this,T.extend({},t),s);(o||Q.get(this,"finish"))&&e.stop(!0)}var o=T.isEmptyObject(t),s=T.speed(e,n,r);return i.finish=i,o||!1===s.queue?this.each(i):this.queue(s.queue,i)},stop:function(i,e,o){function s(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=T.timers,r=Q.get(this);if(t)r[t]&&r[t].stop&&s(r[t]);else for(t in r)r[t]&&r[t].stop&&vt.test(t)&&s(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||T.dequeue(this,i)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=Q.get(this),n=t[s+"queue"],r=t[s+"queueHooks"],i=T.timers,o=n?n.length:0;for(t.finish=!0,T.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===s&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),T.each(["toggle","show","hide"],function(e,r){var i=T.fn[r];T.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(wt(r,!0),e,t,n)}}),T.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){T.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),ht=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ft||(ft=!0,yt())},T.fx.stop=function(){ft=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(r,e){return r=T.fx&&T.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=E.setTimeout(e,r);t.stop=function(){E.clearTimeout(n)}})},pt=D.createElement("input"),gt=D.createElement("select").appendChild(D.createElement("option")),pt.type="checkbox",y.checkOn=""!==pt.value,y.optSelected=gt.selected,(pt=D.createElement("input")).value="t",pt.type="radio",y.radioValue="t"===pt.value;var Et,Dt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return Y(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?Et:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):!(i&&"get"in i&&null!==(r=i.get(e,t)))&&null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(H);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Et={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var s=Dt[t]||T.find.attr;Dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=Dt[o],Dt[o]=r,r=null!=s(e,t,n)?o:null,Dt[o]=i),r}});var Tt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function xt(e){return(e.match(H)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function It(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}T.fn.extend({prop:function(e,t){return Y(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):Tt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,l=0;if(S(t))return this.each(function(e){T(this).addClass(t.call(this,e,kt(this)))});if((e=It(t)).length)for(;n=this[l++];)if(i=kt(n),r=1===n.nodeType&&" "+xt(i)+" "){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=xt(r))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,l=0;if(S(t))return this.each(function(e){T(this).removeClass(t.call(this,e,kt(this)))});if(!arguments.length)return this.attr("class","");if((e=It(t)).length)for(;n=this[l++];)if(i=kt(n),r=1===n.nodeType&&" "+xt(i)+" "){for(s=0;o=e[s++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(a=xt(r))&&n.setAttribute("class",a)}return this},toggleClass:function(i,t){var o=typeof i,s="string"==o||Array.isArray(i);return"boolean"==typeof t&&s?t?this.addClass(i):this.removeClass(i):S(i)?this.each(function(e){T(this).toggleClass(i.call(this,e,kt(this),t),t)}):this.each(function(){var e,t,n,r;if(s)for(t=0,n=T(this),r=It(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!=o||((e=kt(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==i&&Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+xt(kt(n))+" ").indexOf(t))return!0;return!1}});var Rt=/\r/g;T.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=S(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,T(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=T.map(t,function(e){return null==e?"":e+""})),(r=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=T.valHooks[t.type]||T.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(Rt,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:xt(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=T(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=T.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<T.inArray(T.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},y.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in E;function Mt(e){e.stopPropagation()}var Ot=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(e,t,n,r){var i,o,s,a,l,u,c,d,h=[n||D],f=v.call(e,"type")?e.type:e,p=v.call(e,"namespace")?e.namespace.split("."):[];if(o=d=s=n=n||D,3!==n.nodeType&&8!==n.nodeType&&!Ot.test(f+T.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(e=e[T.expando]?e:new T.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),c=T.event.special[f]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!g(n)){for(a=c.delegateType||f,Ot.test(a+f)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(n.ownerDocument||D)&&h.push(s.defaultView||s.parentWindow||E)}for(i=0;(o=h[i++])&&!e.isPropagationStopped();)d=o,e.type=1<i?a:c.bindType||f,(u=(Q.get(o,"events")||{})[e.type]&&Q.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&Z(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!Z(n)||l&&S(n[f])&&!g(n)&&((s=n[l])&&(n[l]=null),T.event.triggered=f,e.isPropagationStopped()&&d.addEventListener(f,Mt),n[f](),e.isPropagationStopped()&&d.removeEventListener(f,Mt),T.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,r){function i(e){T.event.simulate(r,e.target,T.event.fix(e))}T.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=Q.access(e,r);t||e.addEventListener(n,i,!0),Q.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=Q.access(e,r)-1;t?Q.access(e,r,t):(e.removeEventListener(n,i,!0),Q.remove(e,r))}}});var Pt=E.location,Nt=Date.now(),At=/\?/;T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new E.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var Ht=/\[\]$/,Lt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Wt=/^(?:input|select|textarea|keygen)/i;function zt(n,e,r,i){var t;if(Array.isArray(e))T.each(e,function(e,t){r||Ht.test(n)?i(n,t):zt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==_(e))i(n,e);else for(t in e)zt(n+"["+t+"]",e[t],r,i)}T.param=function(e,t){function n(e,t){var n=S(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var r,i=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){n(this.name,this.value)});else for(r in e)zt(r,e[r],t,n);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Wt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Ft=/%20/g,Ut=/#.*$/,Yt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Vt=/^(?:GET|HEAD)$/,Gt=/^\/\//,qt={},Zt={},$t="*/".concat("*"),Qt=D.createElement("a");function Kt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(H)||[];if(S(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Xt(t,i,o,s){var a={},l=t===Zt;function u(e){var r;return a[e]=!0,T.each(t[e]||[],function(e,t){var n=t(i,o,s);return"string"!=typeof n||l||a[n]?l?!(r=n):void 0:(i.dataTypes.unshift(n),u(n),!1)}),r}return u(i.dataTypes[0])||!a["*"]&&u("*")}function Jt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r=r||{})[n]=t[n]);return r&&T.extend(!0,e,r),e}Qt.href=Pt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,T.ajaxSettings),t):Jt(T.ajaxSettings,e)},ajaxPrefilter:Kt(qt),ajaxTransport:Kt(Zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,d,h,n,f,r,p,g,i,o,m=T.ajaxSetup({},t),v=m.context||m,y=m.context&&(v.nodeType||v.jquery)?T(v):T.event,S=T.Deferred(),w=T.Callbacks("once memory"),_=m.statusCode||{},s={},a={},l="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(p){if(!n)for(n={};t=Bt.exec(h);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==p&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)b.always(e[b.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||l;return c&&c.abort(t),u(0,t),this}};if(S.promise(b),m.url=((e||m.url||Pt.href)+"").replace(Gt,Pt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(H)||[""],null==m.crossDomain){r=D.createElement("a");try{r.href=m.url,r.href=r.href,m.crossDomain=Qt.protocol+"//"+Qt.host!=r.protocol+"//"+r.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=T.param(m.data,m.traditional)),Xt(qt,m,t,b),p)return b;for(i in(g=T.event&&m.global)&&0==T.active++&&T.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Vt.test(m.type),d=m.url.replace(Ut,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Ft,"+")):(o=m.url.slice(d.length),m.data&&(m.processData||"string"==typeof m.data)&&(d+=(At.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(d=d.replace(Yt,"$1"),o=(At.test(d)?"&":"?")+"_="+Nt+++o),m.url=d+o),m.ifModified&&(T.lastModified[d]&&b.setRequestHeader("If-Modified-Since",T.lastModified[d]),T.etag[d]&&b.setRequestHeader("If-None-Match",T.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&b.setRequestHeader("Content-Type",m.contentType),b.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+$t+"; q=0.01":""):m.accepts["*"]),m.headers)b.setRequestHeader(i,m.headers[i]);if(m.beforeSend&&(!1===m.beforeSend.call(v,b,m)||p))return b.abort();if(l="abort",w.add(m.complete),b.done(m.success),b.fail(m.error),c=Xt(Zt,m,t,b)){if(b.readyState=1,g&&y.trigger("ajaxSend",[b,m]),p)return b;m.async&&0<m.timeout&&(f=E.setTimeout(function(){b.abort("timeout")},m.timeout));try{p=!1,c.send(s,u)}catch(e){if(p)throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,r){var i,o,s,a,l,u=t;p||(p=!0,f&&E.clearTimeout(f),c=void 0,h=r||"",b.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s=s||i}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(m,b,n)),a=function(e,t,n,r){var i,o,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(i in u)if((a=i.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[i]:!0!==u[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(m,a,b,i),i?(m.ifModified&&((l=b.getResponseHeader("Last-Modified"))&&(T.lastModified[d]=l),(l=b.getResponseHeader("etag"))&&(T.etag[d]=l)),204===e||"HEAD"===m.type?u="nocontent":304===e?u="notmodified":(u=a.state,o=a.data,i=!(s=a.error))):(s=u,!e&&u||(u="error",e<0&&(e=0))),b.status=e,b.statusText=(t||u)+"",i?S.resolveWith(v,[o,u,b]):S.rejectWith(v,[b,u,s]),b.statusCode(_),_=void 0,g&&y.trigger(i?"ajaxSuccess":"ajaxError",[b,m,i?o:s]),w.fireWith(v,[b,u]),g&&(y.trigger("ajaxComplete",[b,m]),--T.active||T.event.trigger("ajaxStop")))}return b},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,i){T[i]=function(e,t,n,r){return S(t)&&(r=r||n,n=t,t=void 0),T.ajax(T.extend({url:e,type:i,dataType:r,data:t,success:n},T.isPlainObject(e)&&e))}}),T._evalUrl=function(e,t){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(S(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return S(n)?this.each(function(e){T(this).wrapInner(n.call(this,e))}):this.each(function(){var e=T(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=S(t);return this.each(function(e){T(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new E.XMLHttpRequest}catch(e){}};var en={0:200,1223:204},tn=T.ajaxSettings.xhr();y.cors=!!tn&&"withCredentials"in tn,y.ajax=tn=!!tn,T.ajaxTransport(function(i){var o,s;if(y.cors||tn&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=s=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(en[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),s=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=s:r.onreadystatechange=function(){4===r.readyState&&E.setTimeout(function(){o&&s()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=T("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),D.head.appendChild(r[0])},abort:function(){i&&i()}}});var nn,rn=[],on=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=rn.pop()||T.expando+"_"+Nt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,s=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=S(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(on,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||T.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=E[r],E[r]=function(){o=arguments},n.always(function(){void 0===i?T(E).removeProp(r):E[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,rn.push(r)),o&&S(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((nn=D.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===nn.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=D.implementation.createHTMLDocument("")).createElement("base")).href=D.location.href,t.head.appendChild(r)):t=D),o=!n&&[],(i=I.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=xt(e.slice(a)),e=e.slice(0,a)),S(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<s.length&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,u=T.css(e,"position"),c=T(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=T.css(e,"top"),l=T.css(e,"left"),i=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(s=(r=c.position()).top,r.left):(s=parseFloat(o)||0,parseFloat(l)||0),S(t)&&(t=t.call(e,n,T.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):c.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ie})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;T.fn[t]=function(e){return Y(this,function(e,t,n){var r;if(g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=Ke(y.pixelPosition,function(e,t){if(t)return t=Qe(e,n),qe.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(s,a){T.each({padding:"inner"+s,content:a,"":"outer"+s},function(r,o){T.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return Y(this,function(e,t,n){var r;return g(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+s],r["scroll"+s],e.body["offset"+s],r["offset"+s],r["client"+s])):void 0===n?T.css(e,t,i):T.style(e,t,n,i)},a,n?e:void 0,n)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),T.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),S(e))return r=a.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(a.call(arguments)))}).guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=k,T.isFunction=S,T.isWindow=g,T.camelCase=q,T.type=_,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var sn=E.jQuery,an=E.$;return T.noConflict=function(e){return E.$===T&&(E.$=an),e&&E.jQuery===T&&(E.jQuery=sn),T},e||(E.jQuery=E.$=T),T}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e=e||self).bootstrap={},e.jQuery,e.Popper)}(this,function(e,p,d){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n,r;t=i,r=o[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})}return i}p=p&&p.hasOwnProperty("default")?p.default:p,d=d&&d.hasOwnProperty("default")?d.default:d;var n="transitionend";function i(e){var t=this,n=!1;return p(this).one(g.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||g.triggerTransitionEnd(t)},e),this}var g={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=p(e).css("transition-duration"),n=p(e).css("transition-delay"),r=parseFloat(t),i=parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){p(e).trigger(n)},supportsTransitionEnd:function(){return Boolean(n)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=t[r],s=o&&g.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(s))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+i+'".')}var a},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?g.findShadowRoot(e.parentNode):null;var t=e.getRootNode();return t instanceof ShadowRoot?t:null},jQueryDetection:function(){if(void 0===p)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=p.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};g.jQueryDetection(),p.fn.emulateTransitionEnd=i,p.event.special[g.TRANSITION_END]={bindType:n,delegateType:n,handle:function(e){if(p(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var o="alert",a="bs.alert",u="."+a,c=p.fn[o],h={CLOSE:"close"+u,CLOSED:"closed"+u,CLICK_DATA_API:"click"+u+".data-api"},f="alert",m="fade",v="show",y=function(){function r(e){this._element=e}var e=r.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){p.removeData(this._element,a),this._element=null},e._getRootElement=function(e){var t=g.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n=n||p(e).closest("."+f)[0]},e._triggerCloseEvent=function(e){var t=p.Event(h.CLOSE);return p(e).trigger(t),t},e._removeElement=function(t){var n=this;if(p(t).removeClass(v),p(t).hasClass(m)){var e=g.getTransitionDurationFromElement(t);p(t).one(g.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},e._destroyElement=function(e){p(e).detach().trigger(h.CLOSED).remove()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(a);t||(t=new r(this),e.data(a,t)),"close"===n&&t[n](this)})},r._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(r,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),r}();p(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',y._handleDismiss(new y)),p.fn[o]=y._jQueryInterface,p.fn[o].Constructor=y,p.fn[o].noConflict=function(){return p.fn[o]=c,y._jQueryInterface};var S="button",w="bs.button",_="."+w,b=".data-api",E=p.fn[S],D="active",T="btn",C="focus",x='[data-toggle^="button"]',k='[data-toggle="buttons"]',I='[data-toggle="button"]',R='[data-toggle="buttons"] .btn',M='input:not([type="hidden"])',O=".active",P=".btn",N={CLICK_DATA_API:"click"+_+b,FOCUS_BLUR_DATA_API:"focus"+_+b+" blur"+_+b,LOAD_DATA_API:"load"+_+b},A=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=p(this._element).closest(k)[0];if(n){var r=this._element.querySelector(M);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(D))e=!1;else{var i=n.querySelector(O);i&&p(i).removeClass(D)}else("checkbox"!==r.type||"LABEL"===this._element.tagName&&r.checked===this._element.classList.contains(D))&&(e=!1);e&&(r.checked=!this._element.classList.contains(D),p(r).trigger("change")),r.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(D)),e&&p(this._element).toggleClass(D))},e.dispose=function(){p.removeData(this._element,w),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(w);e||(e=new n(this),p(this).data(w,e)),"toggle"===t&&e[t]()})},s(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();p(document).on(N.CLICK_DATA_API,x,function(e){var t=e.target;if(p(t).hasClass(T)||(t=p(t).closest(P)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var n=t.querySelector(M);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void e.preventDefault();A._jQueryInterface.call(p(t),"toggle")}}).on(N.FOCUS_BLUR_DATA_API,x,function(e){var t=p(e.target).closest(P)[0];p(t).toggleClass(C,/^focus(in)?$/.test(e.type))}),p(window).on(N.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(R)),t=0,n=e.length;t<n;t++){var r=e[t],i=r.querySelector(M);i.checked||i.hasAttribute("checked")?r.classList.add(D):r.classList.remove(D)}for(var o=0,s=(e=[].slice.call(document.querySelectorAll(I))).length;o<s;o++){var a=e[o];"true"===a.getAttribute("aria-pressed")?a.classList.add(D):a.classList.remove(D)}}),p.fn[S]=A._jQueryInterface,p.fn[S].Constructor=A,p.fn[S].noConflict=function(){return p.fn[S]=E,A._jQueryInterface};var H="carousel",L="bs.carousel",j="."+L,W=".data-api",z=p.fn[H],F={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Y="next",B="prev",V="left",G="right",q={SLIDE:"slide"+j,SLID:"slid"+j,KEYDOWN:"keydown"+j,MOUSEENTER:"mouseenter"+j,MOUSELEAVE:"mouseleave"+j,TOUCHSTART:"touchstart"+j,TOUCHMOVE:"touchmove"+j,TOUCHEND:"touchend"+j,POINTERDOWN:"pointerdown"+j,POINTERUP:"pointerup"+j,DRAG_START:"dragstart"+j,LOAD_DATA_API:"load"+j+W,CLICK_DATA_API:"click"+j+W},Z="carousel",$="active",Q="slide",K="carousel-item-right",X="carousel-item-left",J="carousel-item-next",ee="carousel-item-prev",te="pointer-event",ne=".active",re=".active.carousel-item",ie=".carousel-item",oe=".carousel-item img",se=".carousel-item-next, .carousel-item-prev",ae=".carousel-indicators",le="[data-slide], [data-slide-to]",ue='[data-ride="carousel"]',ce={TOUCH:"touch",PEN:"pen"},de=function(){function o(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(ae),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=o.prototype;return e.next=function(){this._isSliding||this._slide(Y)},e.nextWhenVisible=function(){!document.hidden&&p(this._element).is(":visible")&&"hidden"!==p(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(B)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(se)&&(g.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this;this._activeElement=this._element.querySelector(re);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)p(this._element).one(q.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var r=n<e?Y:B;this._slide(r,this._items[e])}},e.dispose=function(){p(this._element).off(j),p.removeData(this._element,L),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=l({},F,{},e),g.typeCheckConfig(H,e,U),e},e._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;(this.touchDeltaX=0)<t&&this.prev(),t<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&p(this._element).on(q.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&p(this._element).on(q.MOUSEENTER,function(e){return t.pause(e)}).on(q.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var t=function(e){n._pointerEvent&&ce[e.originalEvent.pointerType.toUpperCase()]?n.touchStartX=e.originalEvent.clientX:n._pointerEvent||(n.touchStartX=e.originalEvent.touches[0].clientX)},r=function(e){n._pointerEvent&&ce[e.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=e.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(e){return n.cycle(e)},500+n._config.interval))};p(this._element.querySelectorAll(oe)).on(q.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(p(this._element).on(q.POINTERDOWN,function(e){return t(e)}),p(this._element).on(q.POINTERUP,function(e){return r(e)}),this._element.classList.add(te)):(p(this._element).on(q.TOUCHSTART,function(e){return t(e)}),p(this._element).on(q.TOUCHMOVE,function(e){var t;(t=e).originalEvent.touches&&1<t.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}),p(this._element).on(q.TOUCHEND,function(e){return r(e)}))}},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(ie)):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===Y,r=e===B,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var s=(i+(e===B?-1:1))%this._items.length;return-1==s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(re)),i=p.Event(q.SLIDE,{relatedTarget:e,direction:t,from:r,to:n});return p(this._element).trigger(i),i},e._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(ne));p(t).removeClass($);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&p(n).addClass($)}},e._slide=function(e,t){var n,r,i,o=this,s=this._element.querySelector(re),a=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),u=this._getItemIndex(l),c=Boolean(this._interval);if(i=e===Y?(n=X,r=J,V):(n=K,r=ee,G),l&&p(l).hasClass($))this._isSliding=!1;else if(!this._triggerSlideEvent(l,i).isDefaultPrevented()&&s&&l){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l);var d=p.Event(q.SLID,{relatedTarget:l,direction:i,from:a,to:u});if(p(this._element).hasClass(Q)){p(l).addClass(r),g.reflow(l),p(s).addClass(n),p(l).addClass(n);var h=parseInt(l.getAttribute("data-interval"),10);h?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=h):this._config.interval=this._config.defaultInterval||this._config.interval;var f=g.getTransitionDurationFromElement(s);p(s).one(g.TRANSITION_END,function(){p(l).removeClass(n+" "+r).addClass($),p(s).removeClass($+" "+r+" "+n),o._isSliding=!1,setTimeout(function(){return p(o._element).trigger(d)},0)}).emulateTransitionEnd(f)}else p(s).removeClass($),p(l).addClass($),this._isSliding=!1,p(this._element).trigger(d);c&&this.cycle()}},o._jQueryInterface=function(r){return this.each(function(){var e=p(this).data(L),t=l({},F,{},p(this).data());"object"==typeof r&&(t=l({},t,{},r));var n="string"==typeof r?r:t.slide;if(e||(e=new o(this,t),p(this).data(L,e)),"number"==typeof r)e.to(r);else if("string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function(e){var t=g.getSelectorFromElement(this);if(t){var n=p(t)[0];if(n&&p(n).hasClass(Z)){var r=l({},p(n).data(),{},p(this).data()),i=this.getAttribute("data-slide-to");i&&(r.interval=!1),o._jQueryInterface.call(p(n),r),i&&p(n).data(L).to(i),e.preventDefault()}}},s(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return F}}]),o}();p(document).on(q.CLICK_DATA_API,le,de._dataApiClickHandler),p(window).on(q.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(ue)),t=0,n=e.length;t<n;t++){var r=p(e[t]);de._jQueryInterface.call(r,r.data())}}),p.fn[H]=de._jQueryInterface,p.fn[H].Constructor=de,p.fn[H].noConflict=function(){return p.fn[H]=z,de._jQueryInterface};var he="collapse",fe="bs.collapse",pe="."+fe,ge=p.fn[he],me={toggle:!0,parent:""},ve={toggle:"boolean",parent:"(string|element)"},ye={SHOW:"show"+pe,SHOWN:"shown"+pe,HIDE:"hide"+pe,HIDDEN:"hidden"+pe,CLICK_DATA_API:"click"+pe+".data-api"},Se="show",we="collapse",_e="collapsing",be="collapsed",Ee="width",De="height",Te=".show, .collapsing",Ce='[data-toggle="collapse"]',xe=function(){function a(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Ce)),r=0,i=n.length;r<i;r++){var o=n[r],s=g.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=a.prototype;return e.toggle=function(){p(this._element).hasClass(Se)?this.hide():this.show()},e.show=function(){var e,t,n=this;if(!this._isTransitioning&&!p(this._element).hasClass(Se)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(Te)).filter(function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains(we)})).length&&(e=null),!(e&&(t=p(e).not(this._selector).data(fe))&&t._isTransitioning))){var r=p.Event(ye.SHOW);if(p(this._element).trigger(r),!r.isDefaultPrevented()){e&&(a._jQueryInterface.call(p(e).not(this._selector),"hide"),t||p(e).data(fe,null));var i=this._getDimension();p(this._element).removeClass(we).addClass(_e),this._element.style[i]=0,this._triggerArray.length&&p(this._triggerArray).removeClass(be).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(i[0].toUpperCase()+i.slice(1)),s=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(){p(n._element).removeClass(_e).addClass(we).addClass(Se),n._element.style[i]="",n.setTransitioning(!1),p(n._element).trigger(ye.SHOWN)}).emulateTransitionEnd(s),this._element.style[i]=this._element[o]+"px"}}},e.hide=function(){var e=this;if(!this._isTransitioning&&p(this._element).hasClass(Se)){var t=p.Event(ye.HIDE);if(p(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",g.reflow(this._element),p(this._element).addClass(_e).removeClass(we).removeClass(Se);var r=this._triggerArray.length;if(0<r)for(var i=0;i<r;i++){var o=this._triggerArray[i],s=g.getSelectorFromElement(o);if(null!==s)p([].slice.call(document.querySelectorAll(s))).hasClass(Se)||p(o).addClass(be).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(){e.setTransitioning(!1),p(e._element).removeClass(_e).addClass(we).trigger(ye.HIDDEN)}).emulateTransitionEnd(a)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){p.removeData(this._element,fe),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=l({},me,{},e)).toggle=Boolean(e.toggle),g.typeCheckConfig(he,e,ve),e},e._getDimension=function(){return p(this._element).hasClass(Ee)?Ee:De},e._getParent=function(){var e,n=this;g.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(t));return p(r).each(function(e,t){n._addAriaAndCollapsedClass(a._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){var n=p(e).hasClass(Se);t.length&&p(t).toggleClass(be,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(e){var t=g.getSelectorFromElement(e);return t?document.querySelector(t):null},a._jQueryInterface=function(r){return this.each(function(){var e=p(this),t=e.data(fe),n=l({},me,{},e.data(),{},"object"==typeof r&&r?r:{});if(!t&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),t||(t=new a(this,n),e.data(fe,t)),"string"==typeof r){if(void 0===t[r])throw new TypeError('No method named "'+r+'"');t[r]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return me}}]),a}();p(document).on(ye.CLICK_DATA_API,Ce,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=p(this),t=g.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(t));p(r).each(function(){var e=p(this),t=e.data(fe)?"toggle":n.data();xe._jQueryInterface.call(e,t)})}),p.fn[he]=xe._jQueryInterface,p.fn[he].Constructor=xe,p.fn[he].noConflict=function(){return p.fn[he]=ge,xe._jQueryInterface};var ke="dropdown",Ie="bs.dropdown",Re="."+Ie,Me=".data-api",Oe=p.fn[ke],Pe=new RegExp("38|40|27"),Ne={HIDE:"hide"+Re,HIDDEN:"hidden"+Re,SHOW:"show"+Re,SHOWN:"shown"+Re,CLICK:"click"+Re,CLICK_DATA_API:"click"+Re+Me,KEYDOWN_DATA_API:"keydown"+Re+Me,KEYUP_DATA_API:"keyup"+Re+Me},Ae="disabled",He="show",Le="dropup",je="dropright",We="dropleft",ze="dropdown-menu-right",Fe="position-static",Ue='[data-toggle="dropdown"]',Ye=".dropdown form",Be=".dropdown-menu",Ve=".navbar-nav",Ge=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",qe="top-start",Ze="top-end",$e="bottom-start",Qe="bottom-end",Ke="right-start",Xe="left-start",Je={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},et={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},tt=function(){function u(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=u.prototype;return e.toggle=function(){if(!this._element.disabled&&!p(this._element).hasClass(Ae)){var e=p(this._menu).hasClass(He);u._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||p(this._element).hasClass(Ae)||p(this._menu).hasClass(He))){var t={relatedTarget:this._element},n=p.Event(Ne.SHOW,t),r=u._getParentFromElement(this._element);if(p(r).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===d)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var i=this._element;"parent"===this._config.reference?i=r:g.isElement(this._config.reference)&&(i=this._config.reference,void 0!==this._config.reference.jquery&&(i=this._config.reference[0])),"scrollParent"!==this._config.boundary&&p(r).addClass(Fe),this._popper=new d(i,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===p(r).closest(Ve).length&&p(document.body).children().on("mouseover",null,p.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),p(this._menu).toggleClass(He),p(r).toggleClass(He).trigger(p.Event(Ne.SHOWN,t))}}},e.hide=function(){if(!this._element.disabled&&!p(this._element).hasClass(Ae)&&p(this._menu).hasClass(He)){var e={relatedTarget:this._element},t=p.Event(Ne.HIDE,e),n=u._getParentFromElement(this._element);p(n).trigger(t),t.isDefaultPrevented()||(this._popper&&this._popper.destroy(),p(this._menu).toggleClass(He),p(n).toggleClass(He).trigger(p.Event(Ne.HIDDEN,e)))}},e.dispose=function(){p.removeData(this._element,Ie),p(this._element).off(Re),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;p(this._element).on(Ne.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(e){return e=l({},this.constructor.Default,{},p(this._element).data(),{},e),g.typeCheckConfig(ke,e,this.constructor.DefaultType),e},e._getMenuElement=function(){if(!this._menu){var e=u._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Be))}return this._menu},e._getPlacement=function(){var e=p(this._element.parentNode),t=$e;return e.hasClass(Le)?(t=qe,p(this._menu).hasClass(ze)&&(t=Ze)):e.hasClass(je)?t=Ke:e.hasClass(We)?t=Xe:p(this._menu).hasClass(ze)&&(t=Qe),t},e._detectNavbar=function(){return 0<p(this._element).closest(".navbar").length},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,{},this._config.popperConfig)},u._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(Ie);if(e||(e=new u(this,"object"==typeof t?t:null),p(this).data(Ie,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},u._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(Ue)),n=0,r=t.length;n<r;n++){var i=u._getParentFromElement(t[n]),o=p(t[n]).data(Ie),s={relatedTarget:t[n]};if(e&&"click"===e.type&&(s.clickEvent=e),o){var a=o._menu;if(p(i).hasClass(He)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&p.contains(i,e.target))){var l=p.Event(Ne.HIDE,s);p(i).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),t[n].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),p(a).removeClass(He),p(i).removeClass(He).trigger(p.Event(Ne.HIDDEN,s)))}}}},u._getParentFromElement=function(e){var t,n=g.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},u._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||p(e.target).closest(Be).length)):Pe.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!p(this).hasClass(Ae))){var t=u._getParentFromElement(this),n=p(t).hasClass(He);if(n||27!==e.which)if(n&&(!n||27!==e.which&&32!==e.which)){var r=[].slice.call(t.querySelectorAll(Ge)).filter(function(e){return p(e).is(":visible")});if(0!==r.length){var i=r.indexOf(e.target);38===e.which&&0<i&&i--,40===e.which&&i<r.length-1&&i++,i<0&&(i=0),r[i].focus()}}else{if(27===e.which){var o=t.querySelector(Ue);p(o).trigger("focus")}p(this).trigger("click")}}},s(u,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Je}},{key:"DefaultType",get:function(){return et}}]),u}();p(document).on(Ne.KEYDOWN_DATA_API,Ue,tt._dataApiKeydownHandler).on(Ne.KEYDOWN_DATA_API,Be,tt._dataApiKeydownHandler).on(Ne.CLICK_DATA_API+" "+Ne.KEYUP_DATA_API,tt._clearMenus).on(Ne.CLICK_DATA_API,Ue,function(e){e.preventDefault(),e.stopPropagation(),tt._jQueryInterface.call(p(this),"toggle")}).on(Ne.CLICK_DATA_API,Ye,function(e){e.stopPropagation()}),p.fn[ke]=tt._jQueryInterface,p.fn[ke].Constructor=tt,p.fn[ke].noConflict=function(){return p.fn[ke]=Oe,tt._jQueryInterface};var nt="modal",rt="bs.modal",it="."+rt,ot=p.fn[nt],st={backdrop:!0,keyboard:!0,focus:!0,show:!0},at={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},lt={HIDE:"hide"+it,HIDE_PREVENTED:"hidePrevented"+it,HIDDEN:"hidden"+it,SHOW:"show"+it,SHOWN:"shown"+it,FOCUSIN:"focusin"+it,RESIZE:"resize"+it,CLICK_DISMISS:"click.dismiss"+it,KEYDOWN_DISMISS:"keydown.dismiss"+it,MOUSEUP_DISMISS:"mouseup.dismiss"+it,MOUSEDOWN_DISMISS:"mousedown.dismiss"+it,CLICK_DATA_API:"click"+it+".data-api"},ut="modal-dialog-scrollable",ct="modal-scrollbar-measure",dt="modal-backdrop",ht="modal-open",ft="fade",pt="show",gt="modal-static",mt=".modal-dialog",vt=".modal-body",yt='[data-toggle="modal"]',St='[data-dismiss="modal"]',wt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_t=".sticky-top",bt=function(){function i(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(mt),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=i.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){p(this._element).hasClass(ft)&&(this._isTransitioning=!0);var n=p.Event(lt.SHOW,{relatedTarget:e});p(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),p(this._element).on(lt.CLICK_DISMISS,St,function(e){return t.hide(e)}),p(this._dialog).on(lt.MOUSEDOWN_DISMISS,function(){p(t._element).one(lt.MOUSEUP_DISMISS,function(e){p(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},e.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=p.Event(lt.HIDE);if(p(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=p(this._element).hasClass(ft);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),p(document).off(lt.FOCUSIN),p(this._element).removeClass(pt),p(this._element).off(lt.CLICK_DISMISS),p(this._dialog).off(lt.MOUSEDOWN_DISMISS),r){var i=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(i)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return p(e).off(it)}),p(document).off(lt.FOCUSIN),p.removeData(this._element,rt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=l({},st,{},e),g.typeCheckConfig(nt,e,at),e},e._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var t=p.Event(lt.HIDE_PREVENTED);if(p(this._element).trigger(t),t.defaultPrevented)return;this._element.classList.add(gt);var n=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,function(){e._element.classList.remove(gt)}).emulateTransitionEnd(n),this._element.focus()}else this.hide()},e._showElement=function(e){var t=this,n=p(this._element).hasClass(ft),r=this._dialog?this._dialog.querySelector(vt):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),p(this._dialog).hasClass(ut)&&r?r.scrollTop=0:this._element.scrollTop=0,n&&g.reflow(this._element),p(this._element).addClass(pt),this._config.focus&&this._enforceFocus();function i(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,p(t._element).trigger(o)}var o=p.Event(lt.SHOWN,{relatedTarget:e});if(n){var s=g.getTransitionDurationFromElement(this._dialog);p(this._dialog).one(g.TRANSITION_END,i).emulateTransitionEnd(s)}else i()},e._enforceFocus=function(){var t=this;p(document).off(lt.FOCUSIN).on(lt.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===p(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?p(this._element).on(lt.KEYDOWN_DISMISS,function(e){27===e.which&&t._triggerBackdropTransition()}):this._isShown||p(this._element).off(lt.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?p(window).on(lt.RESIZE,function(e){return t.handleUpdate(e)}):p(window).off(lt.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){p(document.body).removeClass(ht),e._resetAdjustments(),e._resetScrollbar(),p(e._element).trigger(lt.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(p(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t=this,n=p(this._element).hasClass(ft)?ft:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=dt,n&&this._backdrop.classList.add(n),p(this._backdrop).appendTo(document.body),p(this._element).on(lt.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t._triggerBackdropTransition()}),n&&g.reflow(this._backdrop),p(this._backdrop).addClass(pt),!e)return;if(!n)return void e();var r=g.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(g.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){p(this._backdrop).removeClass(pt);var i=function(){t._removeBackdrop(),e&&e()};if(p(this._element).hasClass(ft)){var o=g.getTransitionDurationFromElement(this._backdrop);p(this._backdrop).one(g.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}else e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var i=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(wt)),t=[].slice.call(document.querySelectorAll(_t));p(e).each(function(e,t){var n=t.style.paddingRight,r=p(t).css("padding-right");p(t).data("padding-right",n).css("padding-right",parseFloat(r)+i._scrollbarWidth+"px")}),p(t).each(function(e,t){var n=t.style.marginRight,r=p(t).css("margin-right");p(t).data("margin-right",n).css("margin-right",parseFloat(r)-i._scrollbarWidth+"px")});var n=document.body.style.paddingRight,r=p(document.body).css("padding-right");p(document.body).data("padding-right",n).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}p(document.body).addClass(ht)},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(wt));p(e).each(function(e,t){var n=p(t).data("padding-right");p(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+_t));p(t).each(function(e,t){var n=p(t).data("margin-right");void 0!==n&&p(t).css("margin-right",n).removeData("margin-right")});var n=p(document.body).data("padding-right");p(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var e=document.createElement("div");e.className=ct,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},i._jQueryInterface=function(n,r){return this.each(function(){var e=p(this).data(rt),t=l({},st,{},p(this).data(),{},"object"==typeof n&&n?n:{});if(e||(e=new i(this,t),p(this).data(rt,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](r)}else t.show&&e.show(r)})},s(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return st}}]),i}();p(document).on(lt.CLICK_DATA_API,yt,function(e){var t,n=this,r=g.getSelectorFromElement(this);r&&(t=document.querySelector(r));var i=p(t).data(rt)?"toggle":l({},p(t).data(),{},p(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=p(t).one(lt.SHOW,function(e){e.isDefaultPrevented()||o.one(lt.HIDDEN,function(){p(n).is(":visible")&&n.focus()})});bt._jQueryInterface.call(p(t),i,this)}),p.fn[nt]=bt._jQueryInterface,p.fn[nt].Constructor=bt,p.fn[nt].noConflict=function(){return p.fn[nt]=ot,bt._jQueryInterface};var Et=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Dt={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Tt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ct=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function xt(e,o,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var n=(new window.DOMParser).parseFromString(e,"text/html"),s=Object.keys(o),a=[].slice.call(n.body.querySelectorAll("*")),r=function(e){var t=a[e],n=t.nodeName.toLowerCase();if(-1===s.indexOf(t.nodeName.toLowerCase()))return t.parentNode.removeChild(t),"continue";var r=[].slice.call(t.attributes),i=[].concat(o["*"]||[],o[n]||[]);r.forEach(function(e){!function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===Et.indexOf(n)||Boolean(e.nodeValue.match(Tt)||e.nodeValue.match(Ct));for(var r=t.filter(function(e){return e instanceof RegExp}),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return 1}(e,i)&&t.removeAttribute(e.nodeName)})},i=0,l=a.length;i<l;i++)r(i);return n.body.innerHTML}var kt="tooltip",It="bs.tooltip",Rt="."+It,Mt=p.fn[kt],Ot="bs-tooltip",Pt=new RegExp("(^|\\s)"+Ot+"\\S+","g"),Nt=["sanitize","whiteList","sanitizeFn"],At={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Ht={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Lt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Dt,popperConfig:null},jt="show",Wt="out",zt={HIDE:"hide"+Rt,HIDDEN:"hidden"+Rt,SHOW:"show"+Rt,SHOWN:"shown"+Rt,INSERTED:"inserted"+Rt,CLICK:"click"+Rt,FOCUSIN:"focusin"+Rt,FOCUSOUT:"focusout"+Rt,MOUSEENTER:"mouseenter"+Rt,MOUSELEAVE:"mouseleave"+Rt},Ft="fade",Ut="show",Yt=".tooltip-inner",Bt=".arrow",Vt="hover",Gt="focus",qt="click",Zt="manual",$t=function(){function r(e,t){if(void 0===d)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=r.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(Ut))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=g.findShadowRoot(this.element),r=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!r)return;var i=this.getTipElement(),o=g.getUID(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&p(i).addClass(Ft);var s="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(i).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(i).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new d(this.element,i,this._getPopperConfig(a)),p(i).addClass(Ut),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var u=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),e===Wt&&t._leave(null,t)};if(p(this.tip).hasClass(Ft)){var c=g.getTransitionDurationFromElement(this.tip);p(this.tip).one(g.TRANSITION_END,u).emulateTransitionEnd(c)}else u()}},e.hide=function(e){function t(){n._hoverState!==jt&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),p(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,r=this.getTipElement(),i=p.Event(this.constructor.Event.HIDE);if(p(this.element).trigger(i),!i.isDefaultPrevented()){if(p(r).removeClass(Ut),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[qt]=!1,this._activeTrigger[Gt]=!1,this._activeTrigger[Vt]=!1,p(this.tip).hasClass(Ft)){var o=g.getTransitionDurationFromElement(r);p(r).one(g.TRANSITION_END,t).emulateTransitionEnd(o)}else t();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Ot+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(Yt)),this.getTitle()),p(e).removeClass(Ft+" "+Ut)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=xt(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Bt},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function(e){return Ht[e.toUpperCase()]},e._setListeners=function(){var r=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(r.element).on(r.constructor.Event.CLICK,r.config.selector,function(e){return r.toggle(e)});else if(e!==Zt){var t=e===Vt?r.constructor.Event.MOUSEENTER:r.constructor.Event.FOCUSIN,n=e===Vt?r.constructor.Event.MOUSELEAVE:r.constructor.Event.FOCUSOUT;p(r.element).on(t,r.config.selector,function(e){return r._enter(e)}).on(n,r.config.selector,function(e){return r._leave(e)})}}),this._hideModalHandler=function(){r.element&&r.hide()},p(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Gt:Vt]=!0),p(t.getTipElement()).hasClass(Ut)||t._hoverState===jt?t._hoverState=jt:(clearTimeout(t._timeout),t._hoverState=jt,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===jt&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Gt:Vt]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Wt,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Wt&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==Nt.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),g.typeCheckConfig(kt,e,this.constructor.DefaultType),e.sanitize&&(e.template=xt(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Pt);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(Ft),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},r._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(It),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new r(this,t),p(this).data(It,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Lt}},{key:"NAME",get:function(){return kt}},{key:"DATA_KEY",get:function(){return It}},{key:"Event",get:function(){return zt}},{key:"EVENT_KEY",get:function(){return Rt}},{key:"DefaultType",get:function(){return At}}]),r}();p.fn[kt]=$t._jQueryInterface,p.fn[kt].Constructor=$t,p.fn[kt].noConflict=function(){return p.fn[kt]=Mt,$t._jQueryInterface};var Qt="popover",Kt="bs.popover",Xt="."+Kt,Jt=p.fn[Qt],en="bs-popover",tn=new RegExp("(^|\\s)"+en+"\\S+","g"),nn=l({},$t.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),rn=l({},$t.DefaultType,{content:"(string|element|function)"}),on="fade",sn="show",an=".popover-header",ln=".popover-body",un={HIDE:"hide"+Xt,HIDDEN:"hidden"+Xt,SHOW:"show"+Xt,SHOWN:"shown"+Xt,INSERTED:"inserted"+Xt,CLICK:"click"+Xt,FOCUSIN:"focusin"+Xt,FOCUSOUT:"focusout"+Xt,MOUSEENTER:"mouseenter"+Xt,MOUSELEAVE:"mouseleave"+Xt},cn=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var i=r.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){p(this.getTipElement()).addClass(en+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},i.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(an),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(ln),t),e.removeClass(on+" "+sn)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(tn);null!==t&&0<t.length&&e.removeClass(t.join(""))},r._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(Kt),t="object"==typeof n?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new r(this,t),p(this).data(Kt,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return nn}},{key:"NAME",get:function(){return Qt}},{key:"DATA_KEY",get:function(){return Kt}},{key:"Event",get:function(){return un}},{key:"EVENT_KEY",get:function(){return Xt}},{key:"DefaultType",get:function(){return rn}}]),r}($t);p.fn[Qt]=cn._jQueryInterface,p.fn[Qt].Constructor=cn,p.fn[Qt].noConflict=function(){return p.fn[Qt]=Jt,cn._jQueryInterface};var dn="scrollspy",hn="bs.scrollspy",fn="."+hn,pn=p.fn[dn],gn={offset:10,method:"auto",target:""},mn={offset:"number",method:"string",target:"(string|element)"},vn={ACTIVATE:"activate"+fn,SCROLL:"scroll"+fn,LOAD_DATA_API:"load"+fn+".data-api"},yn="dropdown-item",Sn="active",wn='[data-spy="scroll"]',_n=".nav, .list-group",bn=".nav-link",En=".nav-item",Dn=".list-group-item",Tn=".dropdown",Cn=".dropdown-item",xn=".dropdown-toggle",kn="offset",In="position",Rn=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+bn+","+this._config.target+" "+Dn+","+this._config.target+" "+Cn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,p(this._scrollElement).on(vn.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?kn:In,i="auto"===this._config.method?e:this._config.method,o=i===In?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,n=g.getSelectorFromElement(e);if(n&&(t=document.querySelector(n)),t){var r=t.getBoundingClientRect();if(r.width||r.height)return[p(t)[i]().top+o,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){p.removeData(this._element,hn),p(this._scrollElement).off(fn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){if("string"!=typeof(e=l({},gn,{},"object"==typeof e&&e?e:{})).target){var t=p(e.target).attr("id");t||(t=g.getUID(dn),p(e.target).attr("id",t)),e.target="#"+t}return g.typeCheckConfig(dn,e,mn),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=p([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(yn)?(n.closest(Tn).find(xn).addClass(Sn),n.addClass(Sn)):(n.addClass(Sn),n.parents(_n).prev(bn+", "+Dn).addClass(Sn),n.parents(_n).prev(En).children(bn).addClass(Sn)),p(this._scrollElement).trigger(vn.ACTIVATE,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(Sn)}).forEach(function(e){return e.classList.remove(Sn)})},n._jQueryInterface=function(t){return this.each(function(){var e=p(this).data(hn);if(e||(e=new n(this,"object"==typeof t&&t),p(this).data(hn,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return gn}}]),n}();p(window).on(vn.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(wn)),t=e.length;t--;){var n=p(e[t]);Rn._jQueryInterface.call(n,n.data())}}),p.fn[dn]=Rn._jQueryInterface,p.fn[dn].Constructor=Rn,p.fn[dn].noConflict=function(){return p.fn[dn]=pn,Rn._jQueryInterface};var Mn="bs.tab",On="."+Mn,Pn=p.fn.tab,Nn={HIDE:"hide"+On,HIDDEN:"hidden"+On,SHOW:"show"+On,SHOWN:"shown"+On,CLICK_DATA_API:"click"+On+".data-api"},An="dropdown-menu",Hn="active",Ln="disabled",jn="fade",Wn="show",zn=".dropdown",Fn=".nav, .list-group",Un=".active",Yn="> li > .active",Bn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Vn=".dropdown-toggle",Gn="> .dropdown-menu .active",qn=function(){function r(e){this._element=e}var e=r.prototype;return e.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&p(this._element).hasClass(Hn)||p(this._element).hasClass(Ln))){var e,r,t=p(this._element).closest(Fn)[0],i=g.getSelectorFromElement(this._element);if(t){var o="UL"===t.nodeName||"OL"===t.nodeName?Yn:Un;r=(r=p.makeArray(p(t).find(o)))[r.length-1]}var s=p.Event(Nn.HIDE,{relatedTarget:this._element}),a=p.Event(Nn.SHOW,{relatedTarget:r});if(r&&p(r).trigger(s),p(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){i&&(e=document.querySelector(i)),this._activate(this._element,t);var l=function(){var e=p.Event(Nn.HIDDEN,{relatedTarget:n._element}),t=p.Event(Nn.SHOWN,{relatedTarget:r});p(r).trigger(e),p(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){p.removeData(this._element,Mn),this._element=null},e._activate=function(e,t,n){function r(){return i._transitionComplete(e,o,n)}var i=this,o=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(Un):p(t).find(Yn))[0],s=n&&o&&p(o).hasClass(jn);if(o&&s){var a=g.getTransitionDurationFromElement(o);p(o).removeClass(Wn).one(g.TRANSITION_END,r).emulateTransitionEnd(a)}else r()},e._transitionComplete=function(e,t,n){if(t){p(t).removeClass(Hn);var r=p(t.parentNode).find(Gn)[0];r&&p(r).removeClass(Hn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(p(e).addClass(Hn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),g.reflow(e),e.classList.contains(jn)&&e.classList.add(Wn),e.parentNode&&p(e.parentNode).hasClass(An)){var i=p(e).closest(zn)[0];if(i){var o=[].slice.call(i.querySelectorAll(Vn));p(o).addClass(Hn)}e.setAttribute("aria-expanded",!0)}n&&n()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(Mn);if(t||(t=new r(this),e.data(Mn,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(r,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),r}();p(document).on(Nn.CLICK_DATA_API,Bn,function(e){e.preventDefault(),qn._jQueryInterface.call(p(this),"show")}),p.fn.tab=qn._jQueryInterface,p.fn.tab.Constructor=qn,p.fn.tab.noConflict=function(){return p.fn.tab=Pn,qn._jQueryInterface};var Zn="toast",$n="bs.toast",Qn="."+$n,Kn=p.fn[Zn],Xn={CLICK_DISMISS:"click.dismiss"+Qn,HIDE:"hide"+Qn,HIDDEN:"hidden"+Qn,SHOW:"show"+Qn,SHOWN:"shown"+Qn},Jn="fade",er="hide",tr="show",nr="showing",rr={animation:"boolean",autohide:"boolean",delay:"number"},ir={animation:!0,autohide:!0,delay:500},or='[data-dismiss="toast"]',sr=function(){function r(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=r.prototype;return e.show=function(){var e=this,t=p.Event(Xn.SHOW);if(p(this._element).trigger(t),!t.isDefaultPrevented()){this._config.animation&&this._element.classList.add(Jn);var n=function(){e._element.classList.remove(nr),e._element.classList.add(tr),p(e._element).trigger(Xn.SHOWN),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove(er),g.reflow(this._element),this._element.classList.add(nr),this._config.animation){var r=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},e.hide=function(){if(this._element.classList.contains(tr)){var e=p.Event(Xn.HIDE);p(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(tr)&&this._element.classList.remove(tr),p(this._element).off(Xn.CLICK_DISMISS),p.removeData(this._element,$n),this._element=null,this._config=null},e._getConfig=function(e){return e=l({},ir,{},p(this._element).data(),{},"object"==typeof e&&e?e:{}),g.typeCheckConfig(Zn,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;p(this._element).on(Xn.CLICK_DISMISS,or,function(){return e.hide()})},e._close=function(){function e(){t._element.classList.add(er),p(t._element).trigger(Xn.HIDDEN)}var t=this;if(this._element.classList.remove(tr),this._config.animation){var n=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},r._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data($n);if(t||(t=new r(this,"object"==typeof n&&n),e.data($n,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},s(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return rr}},{key:"Default",get:function(){return ir}}]),r}();p.fn[Zn]=sr._jQueryInterface,p.fn[Zn].Constructor=sr,p.fn[Zn].noConflict=function(){return p.fn[Zn]=Kn,sr._jQueryInterface},e.Alert=y,e.Button=A,e.Carousel=de,e.Collapse=xe,e.Dropdown=tt,e.Modal=bt,e.Popover=cn,e.Scrollspy=Rn,e.Tab=qn,e.Toast=sr,e.Tooltip=$t,e.Util=g,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,i;function y(){return e.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)S(t,n)&&(e[n]=t[n]);return S(t,"toString")&&(e.toString=t.toString),S(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Tt(e,t,n,r,!0).utc()}function w(e){return null==e._pf&&(e._pf={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}),e._pf}function g(e){if(null==e._isValid){var t=w(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=p(NaN);return null!=e?f(w(t),e):w(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var o=y.momentProperties=[];function v(e,t){var n,r,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=w(t)),u(t._locale)||(e._locale=t._locale),0<o.length)for(n=0;n<o.length;n++)u(i=t[r=o[n]])||(e[r]=i);return e}var t=!1;function _(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,y.updateOffset(this),t=!1)}function b(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,n=0;return 0!=t&&isFinite(t)&&(n=E(t)),n}function s(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&D(e[r])!==D(t[r]))&&s++;return s+o}function T(e){!1===y.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,o){var s=!0;return f(function(){if(null!=y.deprecationHandler&&y.deprecationHandler(null,i),s){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var r in e+="\n["+n+"] ",arguments[0])e+=r+": "+arguments[0][r]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}T(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),s=!1}return o.apply(this,arguments)},o)}var r,C={};function x(e,t){null!=y.deprecationHandler&&y.deprecationHandler(e,t),C[e]||(T(t),C[e]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var n,r=f({},e);for(n in t)S(t,n)&&(l(e[n])&&l(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)S(e,n)&&!S(t,n)&&l(e[n])&&(r[n]=f({},r[n]));return r}function R(e){null!=e&&this.set(e)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null,r=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)S(e,t)&&n.push(t);return n};var M={};function O(e,t){var n=e.toLowerCase();M[n]=M[n+"s"]=M[t]=e}function P(e){return"string"==typeof e?M[e]||M[e.toLowerCase()]:void 0}function N(e){var t,n,r={};for(n in e)S(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var A={};function H(e,t){A[e]=t}function L(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([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,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},F={};function U(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e,t){return e.isValid()?(t=B(t,e.localeData()),z[t]=z[t]||function(r){var e,i,t,o=r.match(j);for(e=0,i=o.length;e<i;e++)F[o[e]]?o[e]=F[o[e]]:o[e]=(t=o[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<i;t++)n+=k(o[t])?o[t].call(e,r):o[t];return n}}(t),z[t](e)):e.localeData().invalidDate()}function B(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(W.lastIndex=0;0<=n&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,--n;return e}var V=/\d/,G=/\d\d/,q=/\d{3}/,Z=/\d{4}/,$=/[+-]?\d{6}/,Q=/\d\d?/,K=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,re=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ae={};function le(e,n,r){ae[e]=k(n)?n:function(e,t){return e&&r?r:n}}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ce={};function de(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),c(n)&&(r=function(e,t){t[n]=D(e)}),t=0;t<e.length;t++)ce[e[t]]=r}function he(e,i){de(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var fe=0,pe=1,ge=2,me=3,ve=4,ye=5,Se=6,we=7,_e=8;function be(e){return Ee(e)?366:365}function Ee(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),O("year","y"),H("year",1),le("Y",re),le("YY",Q,G),le("YYYY",ee,Z),le("YYYYY",te,$),le("YYYYYY",te,$),de(["YYYYY","YYYYYY"],fe),de("YYYY",function(e,t){t[fe]=2===e.length?y.parseTwoDigitYear(e):D(e)}),de("YY",function(e,t){t[fe]=y.parseTwoDigitYear(e)}),de("Y",function(e,t){t[fe]=parseInt(e,10)}),y.parseTwoDigitYear=function(e){return D(e)+(68<D(e)?1900:2e3)};var De,Te=Ce("FullYear",!0);function Ce(t,n){return function(e){return null!=e?(ke(this,t,e),y.updateOffset(this,n),this):xe(this,t)}}function xe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ke(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1==n?Ee(e)?29:28:31-n%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),O("month","M"),H("month",8),le("M",Q),le("MM",Q,G),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[pe]=D(e)-1}),de(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[pe]=i:w(n).invalidMonth=e});var Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Pe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=D(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(Pe(this,e),y.updateOffset(this,!0),this):xe(this,"Month")}var Ae=se,He=se;function Le(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=ue(r[t]),i[t]=ue(i[t]);for(t=0;t<24;t++)o[t]=ue(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function je(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function We(e,t,n){var r=7+t-n;return-(7+je(e,0,r).getUTCDay()-t)%7+r-1}function ze(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+We(e,r,i);return s=a<=0?be(o=e-1)+a:a>be(e)?(o=e+1,a-be(e)):(o=e,a),{year:o,dayOfYear:s}}function Fe(e,t,n){var r,i,o=We(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Ue(i=e.year()-1,t,n):s>Ue(e.year(),t,n)?(r=s-Ue(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Ue(e,t,n){var r=We(e,t,n),i=We(e+1,t,n);return(be(e)-r+i)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),O("week","w"),O("isoWeek","W"),H("week",5),H("isoWeek",5),le("w",Q),le("ww",Q,G),le("W",Q),le("WW",Q,G),he(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=D(e)}),U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),O("day","d"),O("weekday","e"),O("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),le("d",Q),le("e",Q),le("E",Q),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),he(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:w(n).invalidWeekday=e}),he(["d","e","E"],function(e,t,n,r){t[r]=D(e)});var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=se,Ze=se,$e=se;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),l.push(o),u.push(r),u.push(i),u.push(o);for(s.sort(e),a.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)a[t]=ue(a[t]),l[t]=ue(l[t]),u[t]=ue(u[t]);this._weekdaysRegex=new RegExp("^("+u.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("^("+s.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Xe(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Ke),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Ke.apply(this)+L(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Ke.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),O("hour","h"),H("hour",13),le("a",Je),le("A",Je),le("H",Q),le("h",Q),le("k",Q),le("HH",Q,G),le("hh",Q,G),le("kk",Q,G),le("hmm",K),le("hmmss",X),le("Hmm",K),le("Hmmss",X),de(["H","HH"],me),de(["k","kk"],function(e,t,n){var r=D(e);t[me]=24===r?0:r}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[me]=D(e),w(n).bigHour=!0}),de("hmm",function(e,t,n){var r=e.length-2;t[me]=D(e.substr(0,r)),t[ve]=D(e.substr(r)),w(n).bigHour=!0}),de("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[me]=D(e.substr(0,r)),t[ve]=D(e.substr(r,2)),t[ye]=D(e.substr(i)),w(n).bigHour=!0}),de("Hmm",function(e,t,n){var r=e.length-2;t[me]=D(e.substr(0,r)),t[ve]=D(e.substr(r))}),de("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[me]=D(e.substr(0,r)),t[ve]=D(e.substr(r,2)),t[ye]=D(e.substr(i))});var et,tt=Ce("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ge,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function ot(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!rt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,require("./locale/"+e),at(t)}catch(e){}return rt[e]}function at(e,t){var n;return e&&((n=u(t)?ut(e):lt(e,t))?et=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function lt(e,t){if(null===t)return delete rt[e],null;var n,r=nt;if(t.abbr=e,null!=rt[e])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."),r=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])r=rt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;r=n._config}return rt[e]=new R(I(r,t)),it[e]&&it[e].forEach(function(e){lt(e.name,e.config)}),at(e),rt[e]}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!a(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ot(e[o]).split("-")).length,n=(n=ot(e[o+1]))?n.split("-"):null;0<t;){if(r=st(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&s(i,n,!0)>=t-1)break;t--}o++}return et}(e)}function ct(e){var t,n=e._a;return n&&-2===w(e).overflow&&(t=n[pe]<0||11<n[pe]?pe:n[ge]<1||n[ge]>Ie(n[fe],n[pe])?ge:n[me]<0||24<n[me]||24===n[me]&&(0!==n[ve]||0!==n[ye]||0!==n[Se])?me:n[ve]<0||59<n[ve]?ve:n[ye]<0||59<n[ye]?ye:n[Se]<0||999<n[Se]?Se:-1,w(e)._overflowDayOfYear&&(t<fe||ge<t)&&(t=ge),w(e)._overflowWeeks&&-1===t&&(t=we),w(e)._overflowWeekday&&-1===t&&(t=_e),w(e).overflow=t),e}function dt(e,t,n){return null!=e?e:null!=t?t:n}function ht(e){var t,n,r,i,o,s=[];if(!e._d){var a,l;for(a=e,l=new Date(y.now()),r=a._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],e._w&&null==e._a[ge]&&null==e._a[pe]&&function(e){var t,n,r,i,o,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=dt(t.GG,e._a[fe],Fe(Ct(),1,4).year),r=dt(t.W,1),((i=dt(t.E,1))<1||7<i)&&(l=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var u=Fe(Ct(),o,s);n=dt(t.gg,e._a[fe],u.year),r=dt(t.w,u.week),null!=t.d?((i=t.d)<0||6<i)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||6<t.e)&&(l=!0)):i=o}r<1||r>Ue(n,o,s)?w(e)._overflowWeeks=!0:null!=l?w(e)._overflowWeekday=!0:(a=ze(n,r,i,o,s),e._a[fe]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(o=dt(e._a[fe],r[fe]),(e._dayOfYear>be(o)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),n=je(o,0,e._dayOfYear),e._a[pe]=n.getUTCMonth(),e._a[ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[me]&&0===e._a[ve]&&0===e._a[ye]&&0===e._a[Se]&&(e._nextDay=!0,e._a[me]=0),e._d=(e._useUTC?je:function(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[me]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(w(e).weekdayMismatch=!0)}}var ft=/^\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)?)?$/,pt=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["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}/]],vt=[["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/]],yt=/^\/?Date\((\-?\d+)/i;function St(e){var t,n,r,i,o,s,a=e._i,l=ft.exec(a)||pt.exec(a);if(l){for(w(e).iso=!0,t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[1])){i=mt[t][0],r=!1!==mt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[3])){o=(l[2]||" ")+vt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),Et(e)}else e._isValid=!1}var wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var _t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,r,i,o,s,a,l,u,c,d,h=wt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){var f=(i=h[4],o=h[3],s=h[2],a=h[5],l=h[6],u=h[7],d=[(c=parseInt(i,10))<=49?2e3+c:c<=999?1900+c:c,Oe.indexOf(o),parseInt(s,10),parseInt(a,10),parseInt(l,10)],u&&d.push(parseInt(u,10)),d);if(n=f,r=e,(t=h[1])&&Ve.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(w(r).weekdayMismatch=!0,!(r._isValid=!1)))return;e._a=f,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(h[8],h[9],h[10]),e._d=je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0}else e._isValid=!1}function Et(e){if(e._f!==y.ISO_8601)if(e._f!==y.RFC_2822){e._a=[],w(e).empty=!0;var t,n,r,i,o,s,a,l,u=""+e._i,c=u.length,d=0;for(r=B(e._f,e._locale).match(j)||[],t=0;t<r.length;t++)i=r[t],(n=(u.match((v=e,S(ae,m=i)?ae[m](v._strict,v._locale):new RegExp(ue(m.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))))||[])[0])&&(0<(o=u.substr(0,u.indexOf(n))).length&&w(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),d+=n.length),F[i]?(n?w(e).empty=!1:w(e).unusedTokens.push(i),s=i,l=e,null!=(a=n)&&S(ce,s)&&ce[s](a,l._a,l,s)):e._strict&&!n&&w(e).unusedTokens.push(i);w(e).charsLeftOver=c-d,0<u.length&&w(e).unusedInput.push(u),e._a[me]<=12&&!0===w(e).bigHour&&0<e._a[me]&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[me]=(h=e._locale,f=e._a[me],null==(p=e._meridiem)?f:null!=h.meridiemHour?h.meridiemHour(f,p):(null!=h.isPM&&((g=h.isPM(p))&&f<12&&(f+=12),g||12!==f||(f=0)),f)),ht(e),ct(e)}else bt(e);else St(e);var h,f,p,g,m,v}function Dt(e){var t,n,r,i,o=e._i,s=e._f;return e._locale=e._locale||ut(e._l),null===o||void 0===s&&""===o?m({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),b(o)?new _(ct(o)):(d(o)?e._d=o:a(s)?function(e){var t,n,r,i,o;if(0===e._f.length)return w(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)o=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Et(t),g(t)&&(o+=w(t).charsLeftOver,o+=10*w(t).unusedTokens.length,w(t).score=o,(null==r||o<r)&&(r=o,n=t));f(e,n||t)}(e):s?Et(e):u(n=(t=e)._i)?t._d=new Date(y.now()):d(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(r=t,null===(i=yt.exec(r._i))?(St(r),!1===r._isValid&&(delete r._isValid,bt(r),!1===r._isValid&&(delete r._isValid,y.createFromInputFallback(r)))):r._d=new Date(+i[1])):a(n)?(t._a=h(n.slice(0),function(e){return parseInt(e,10)}),ht(t)):l(n)?function(e){if(!e._d){var t=N(e._i);e._a=h([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ht(e)}}(t):c(n)?t._d=new Date(n):y.createFromInputFallback(t),g(e)||(e._d=null),e))}function Tt(e,t,n,r,i){var o,s={};return!0!==n&&!1!==n||(r=n,n=void 0),(l(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return;return 1}(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(o=new _(ct(Dt(s))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Ct(e,t,n,r){return Tt(e,t,n,r,!1)}y.createFromInputFallback=n("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){};var xt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),kt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()});function It(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mt(e){var t=N(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===De.call(Rt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Rt.length;++r)if(e[Rt[r]]){if(n)return!1;parseFloat(e[Rt[r]])!==D(e[Rt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ut(),this._bubble()}function Ot(e){return e instanceof Mt}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Nt(e,n){U(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+L(~~(e/60),2)+n+L(~~e%60,2)})}Nt("Z",":"),Nt("ZZ",""),le("Z",oe),le("ZZ",oe),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ht(oe,e)});var At=/([\+\-]|\d\d)/gi;function Ht(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(At)||["-",0,0],i=60*r[1]+D(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Lt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(b(e)||d(e)?e.valueOf():Ct(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),y.updateOffset(n,!1),n):Ct(e).local()}function jt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Wt(){return!!this.isValid()&&this._isUTC&&0===this._offset}y.updateOffset=function(){};var zt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ft=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,i,o,s,a,l=e,u=null;return Ot(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(l={},t?l[t]=e:l.milliseconds=e):(u=zt.exec(e))?(n="-"===u[1]?-1:1,l={y:0,d:D(u[ge])*n,h:D(u[me])*n,m:D(u[ve])*n,s:D(u[ye])*n,ms:D(Pt(1e3*u[Se]))*n}):(u=Ft.exec(e))?(n="-"===u[1]?-1:1,l={y:Yt(u[2],n),M:Yt(u[3],n),w:Yt(u[4],n),d:Yt(u[5],n),h:Yt(u[6],n),m:Yt(u[7],n),s:Yt(u[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=Ct(l.from),s=Ct(l.to),i=o.isValid()&&s.isValid()?(s=Lt(s,o),o.isBefore(s)?a=Bt(o,s):((a=Bt(s,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Mt(l),Ot(e)&&S(e,"_locale")&&(r._locale=e._locale),r}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=t-e.clone().add(n.months,"M"),n}function Vt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(x(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Gt(this,Ut(e="string"==typeof e?+e:e,t),r),this}}function Gt(e,t,n,r){var i=t._milliseconds,o=Pt(t._days),s=Pt(t._months);e.isValid()&&(r=null==r||r,s&&Pe(e,xe(e,"Month")+s*n),o&&ke(e,"Date",xe(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&y.updateOffset(e,o||s))}Ut.fn=Mt.prototype,Ut.invalid=function(){return Ut(NaN)};var qt=Vt(1,"add"),Zt=Vt(-1,"subtract");function $t(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Kt=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Xt(){return this._locale}var Jt=126227808e5;function en(e,t){return(e%t+t)%t}function tn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-Jt:new Date(e,t,n).valueOf()}function nn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-Jt:Date.UTC(e,t,n)}function rn(e,t){U(0,[e,e.length],0,t)}function on(e,t,n,r,i){var o;return null==e?Fe(this,r,i).year:((o=Ue(e,r,i))<t&&(t=o),function(e,t,n,r,i){var o=ze(e,t,n,r,i),s=je(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,n,r,i))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),O("weekYear","gg"),O("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),le("G",re),le("g",re),le("GG",Q,G),le("gg",Q,G),le("GGGG",ee,Z),le("gggg",ee,Z),le("GGGGG",te,$),le("ggggg",te,$),he(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=D(e)}),he(["gg","GG"],function(e,t,n,r){t[r]=y.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),O("quarter","Q"),H("quarter",7),le("Q",V),de("Q",function(e,t){t[pe]=3*(D(e)-1)}),U("D",["DD",2],"Do","date"),O("date","D"),H("date",9),le("D",Q),le("DD",Q,G),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],ge),de("Do",function(e,t){t[ge]=D(e.match(Q)[0])});var sn=Ce("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),O("dayOfYear","DDD"),H("dayOfYear",4),le("DDD",J),le("DDDD",q),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=D(e)}),U("m",["mm",2],0,"minute"),O("minute","m"),H("minute",14),le("m",Q),le("mm",Q,G),de(["m","mm"],ve);var an=Ce("Minutes",!1);U("s",["ss",2],0,"second"),O("second","s"),H("second",15),le("s",Q),le("ss",Q,G),de(["s","ss"],ye);var ln,un=Ce("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),O("millisecond","ms"),H("millisecond",16),le("S",J,V),le("SS",J,G),le("SSS",J,q),ln="SSSS";ln.length<=9;ln+="S")le(ln,ne);function cn(e,t){t[Se]=D(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")de(ln,cn);var dn=Ce("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var hn=_.prototype;function fn(e){return e}hn.add=qt,hn.calendar=function(e,t){var n=e||Ct(),r=Lt(n,this).startOf("day"),i=y.calendarFormat(this,r)||"sameElse",o=t&&(k(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Ct(n)))},hn.clone=function(){return new _(this)},hn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Lt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=$t(this,r)/12;break;case"month":o=$t(this,r);break;case"quarter":o=$t(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:E(o)},hn.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?nn:tn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-en(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-en(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-en(t,1e3)-1}return this._d.setTime(t),y.updateOffset(this,!0),this},hn.format=function(e){e=e||(this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)},hn.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Ct(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.fromNow=function(e){return this.from(Ct(),e)},hn.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Ct(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.toNow=function(e){return this.to(Ct(),e)},hn.get=function(e){return k(this[e=P(e)])?this[e]():this},hn.invalidAt=function(){return w(this).overflow},hn.isAfter=function(e,t){var n=b(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},hn.isBefore=function(e,t){var n=b(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},hn.isBetween=function(e,t,n,r){var i=b(e)?e:Ct(e),o=b(t)?t:Ct(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},hn.isSame=function(e,t){var n,r=b(e)?e:Ct(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},hn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},hn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},hn.isValid=function(){return g(this)},hn.lang=Kt,hn.locale=Qt,hn.localeData=Xt,hn.max=kt,hn.min=xt,hn.parsingFlags=function(){return f({},w(this))},hn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:A[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=N(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(k(this[e=P(e)]))return this[e](t);return this},hn.startOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?nn:tn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=en(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=en(t,6e4);break;case"second":t=this._d.valueOf(),t-=en(t,1e3)}return this._d.setTime(t),y.updateOffset(this,!0),this},hn.subtract=Zt,hn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},hn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},hn.toDate=function(){return new Date(this.valueOf())},hn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},hn.toJSON=function(){return this.isValid()?this.toISOString():null},hn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hn.unix=function(){return Math.floor(this.valueOf()/1e3)},hn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hn.year=Te,hn.isLeapYear=function(){return Ee(this.year())},hn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},hn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},hn.quarter=hn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},hn.month=Ne,hn.daysInMonth=function(){return Ie(this.year(),this.month())},hn.week=hn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},hn.isoWeek=hn.isoWeeks=function(e){var t=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},hn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},hn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},hn.date=sn,hn.day=hn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},hn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},hn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,r=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?r:r-7)},hn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},hn.hour=hn.hours=tt,hn.minute=hn.minutes=an,hn.second=hn.seconds=un,hn.millisecond=hn.milliseconds=dn,hn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:jt(this);if("string"==typeof e){if(null===(e=Ht(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Gt(this,Ut(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},hn.utc=function(e){return this.utcOffset(0,e)},hn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},hn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},hn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)},hn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hn.isLocal=function(){return!!this.isValid()&&!this._isUTC},hn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hn.isUtc=Wt,hn.isUTC=Wt,hn.zoneAbbr=function(){return this._isUTC?"UTC":""},hn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hn.dates=n("dates accessor is deprecated. Use date instead.",sn),hn.months=n("months accessor is deprecated. Use month instead",Ne),hn.years=n("years accessor is deprecated. Use year instead",Te),hn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),hn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=Dt(e))._a){var t=(e._isUTC?p:Ct)(e._a);this._isDSTShifted=this.isValid()&&0<s(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=R.prototype;function gn(e,t,n,r){var i=ut(),o=p().set(r,t);return i[n](o,e)}function mn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=gn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?c(t)&&(n=t,t=void 0):(t=e,e=!1,c(n=t)&&(n=t,t=void 0)),t=t||"";var i,o=ut(),s=e?o._week.dow:0;if(null!=n)return gn(t,(n+s)%7,r,"day");var a=[];for(i=0;i<7;i++)a[i]=gn(t,(i+s)%7,r,"day");return a}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=fn,pn.postformat=fn,pn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return k(i)?i(e,t,n,r):i.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)k(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,s))?i:null:-1!==(i=De.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,s))||-1!==(i=De.call(this._longMonthsParse,s))?i:null:-1!==(i=De.call(this._longMonthsParse,s))||-1!==(i=De.call(this._shortMonthsParse,s))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},pn.monthsRegex=function(e){return this._monthsParseExact?(S(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(S(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(S(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(S(this,"_monthsShortRegex")||(this._monthsShortRegex=Ae),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ye(n,this._week.dow):e?n[e.day()]:n},pn.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))||-1!==(i=De.call(this._shortWeekdaysParse,s))||-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))||-1!==(i=De.call(this._weekdaysParse,s))||-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))||-1!==(i=De.call(this._weekdaysParse,s))||-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(S(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(S(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(S(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),y.lang=n("moment.lang is deprecated. Use moment.locale instead.",at),y.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ut);var yn=Math.abs;function Sn(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var Dn=En("ms"),Tn=En("s"),Cn=En("m"),xn=En("h"),kn=En("d"),In=En("w"),Rn=En("M"),Mn=En("Q"),On=En("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Pn("milliseconds"),An=Pn("seconds"),Hn=Pn("minutes"),Ln=Pn("hours"),jn=Pn("days"),Wn=Pn("months"),zn=Pn("years"),Fn=Math.round,Un={ss:44,s:45,m:45,h:22,d:26,M:11},Yn=Math.abs;function Bn(e){return(0<e)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Yn(this._milliseconds)/1e3,r=Yn(this._days),i=Yn(this._months);t=E((e=E(n/60))/60),n%=60,e%=60;var o=E(i/12),s=i%=12,a=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=Bn(this._months)!==Bn(d)?"-":"",p=Bn(this._days)!==Bn(d)?"-":"",g=Bn(this._milliseconds)!==Bn(d)?"-":"";return h+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Gn=Mt.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},Gn.add=function(e,t){return Sn(this,e,t,1)},Gn.subtract=function(e,t){return Sn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+_n(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=Dn,Gn.asSeconds=Tn,Gn.asMinutes=Cn,Gn.asHours=xn,Gn.asDays=kn,Gn.asWeeks=In,Gn.asMonths=Rn,Gn.asQuarters=Mn,Gn.asYears=On,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return 0<=o&&0<=s&&0<=a||o<=0&&s<=0&&a<=0||(o+=864e5*wn(bn(a)+s),a=s=0),l.milliseconds=o%1e3,e=E(o/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,a+=i=E(_n(s+=E(n/24))),s-=wn(bn(i)),r=E(a/12),a%=12,l.days=s,l.months=a,l.years=r,this},Gn.clone=function(){return Ut(this)},Gn.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=Nn,Gn.seconds=An,Gn.minutes=Hn,Gn.hours=Ln,Gn.days=jn,Gn.weeks=function(){return E(this.days()/7)},Gn.months=Wn,Gn.years=zn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,r,i,o,s,a,l,u,c,d=this.localeData(),h=(t=!e,n=d,r=Ut(this).abs(),i=Fn(r.as("s")),o=Fn(r.as("m")),s=Fn(r.as("h")),a=Fn(r.as("d")),l=Fn(r.as("M")),u=Fn(r.as("y")),(c=(i<=Un.ss?["s",i]:i<Un.s&&["ss",i])||o<=1&&["m"]||o<Un.m&&["mm",o]||s<=1&&["h"]||s<Un.h&&["hh",s]||a<=1&&["d"]||a<Un.d&&["dd",a]||l<=1&&["M"]||l<Un.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=t,c[3]=0<+this,c[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c));return e&&(h=d.pastFuture(+this,h)),d.postformat(h)},Gn.toISOString=Vn,Gn.toString=Vn,Gn.toJSON=Vn,Gn.locale=Qt,Gn.localeData=Xt,Gn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),Gn.lang=Kt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",re),le("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),de("x",function(e,t,n){n._d=new Date(D(e))}),y.version="2.24.0",e=Ct,y.fn=hn,y.min=function(){return It("isBefore",[].slice.call(arguments,0))},y.max=function(){return It("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=p,y.unix=function(e){return Ct(1e3*e)},y.months=function(e,t){return mn(e,t,"months")},y.isDate=d,y.locale=at,y.invalid=m,y.duration=Ut,y.isMoment=b,y.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},y.parseZone=function(){return Ct.apply(null,arguments).parseZone()},y.localeData=ut,y.isDuration=Ot,y.monthsShort=function(e,t){return mn(e,t,"monthsShort")},y.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},y.defineLocale=lt,y.updateLocale=function(e,t){if(null!=t){var n,r,i=nt;null!=(r=st(e))&&(i=r._config),(n=new R(t=I(i,t))).parentLocale=rt[e],rt[e]=n,at(e)}else null!=rt[e]&&(null!=rt[e].parentLocale?rt[e]=rt[e].parentLocale:null!=rt[e]&&delete rt[e]);return rt[e]},y.locales=function(){return r(rt)},y.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},y.normalizeUnits=P,y.relativeTimeRounding=function(e){return void 0===e?Fn:"function"==typeof e&&(Fn=e,!0)},y.relativeTimeThreshold=function(e,t){return void 0!==Un[e]&&(void 0===t?Un[e]:(Un[e]=t,"s"===e&&(Un.ss=t-1),!0))},y.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},y.prototype=hn,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).FullCalendar={})}(this,function(e){"use strict";var o={className:!0,colSpan:!0,rowSpan:!0},t={"<tr":"tbody","<td":"tr"};function s(e,t,n){var r=document.createElement(e);if(t)for(var i in t)"style"===i?p(r,t[i]):o[i]?r[i]=t[i]:r.setAttribute(i,t[i]);return"string"==typeof n?r.innerHTML=n:null!=n&&_(r,n),r}function w(e){e=e.trim();var t=document.createElement(n(e));return t.innerHTML=e,t.firstChild}function a(e){return Array.prototype.slice.call(function(e){e=e.trim();var t=document.createElement(n(e));return t.innerHTML=e,t.childNodes}(e))}function n(e){return t[e.substr(0,3)]||"div"}function _(e,t){for(var n=l(t),r=0;r<n.length;r++)e.appendChild(n[r])}function v(e,t){for(var n=l(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}function l(e){return"string"==typeof e?a(e):e instanceof Node?[e]:Array.prototype.slice.call(e)}function r(e){e.parentNode&&e.parentNode.removeChild(e)}var i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,u=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(d(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function c(e,t){return u.call(e,t)}function d(e,t){return i.call(e,t)}function h(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(t),s=0;s<o.length;s++)r.push(o[s]);return r}var f=/(top|left|right|bottom|width|height)$/i;function p(e,t){for(var n in t)g(e,n,t[n])}function g(e,t,n){null==n?e.style[t]="":"number"==typeof n&&f.test(t)?e.style[t]=n+"px":e.style[t]=n}function m(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}var y=null;function S(){return null===y&&(y=function(){var e=s("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return r(e),t}()),y}function b(e){return e=Math.max(0,e),e=Math.round(e)}function E(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=b(e.offsetWidth-e.clientWidth-r-i),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:b(e.offsetHeight-e.clientHeight-o-s),scrollbarLeft:0,scrollbarRight:0};return S()&&"rtl"===n.direction?l.scrollbarLeft=a:l.scrollbarRight=a,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function D(e,t){void 0===t&&(t=!1);var n=T(e),r=E(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function T(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function C(e){return e.getBoundingClientRect().height+x(e)}function x(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function k(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function I(e){e.preventDefault()}function R(e,t,n,r){function i(e){var t=c(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var M=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];var O=["sun","mon","tue","wed","thu","fri","sat"];function P(e,t){var n=Y(e);return n[2]+=t,B(n)}function N(e,t){var n=Y(e);return n[6]+=t,B(n)}function A(e,t){return(t.valueOf()-e.valueOf())/864e5}function H(e,t){var n=W(e),r=W(t);return{years:0,months:0,days:Math.round(A(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function L(e,t){var n=j(e,t);return null!==n&&n%7==0?n/7:null}function j(e,t){return G(e)===G(t)?Math.round(A(e,t)):null}function W(e){return B([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function z(e,t,n,r){var i,o,s=B([t,0,1+(-(7+B([t,0,o=7+(i=n)-r]).getUTCDay()-i)%7+o-1)]),a=W(e),l=Math.round(A(s,a));return Math.floor(l/7)+1}function F(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function U(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Y(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function B(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function V(e){return!isNaN(e.valueOf())}function G(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var q=["years","months","days","milliseconds"],Z=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function $(e,t){var n;return"string"==typeof e?function(e){var t=Z.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Q(e):"number"==typeof e?Q(((n={})[t||"milliseconds"]=e,n)):null}function Q(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*K(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function K(e){return e.weeks||e.week||0}function X(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function J(e){return ee(e)/864e5}function ee(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function te(e,t){var n=e.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function ne(e){e.forEach(function(e){e.style.height=""})}function re(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function ie(e,t,n){var r,i;for(r=0;r<n.length;r++)if(i=oe(e,t,n[r]))return i;return 0}function oe(e,t,n){return n.func?n.func(e,t):se(e[n.field],t[n.field])*(n.order||1)}function se(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function ae(e){return e.charAt(0).toUpperCase()+e.slice(1)}function le(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function ue(e){return e%1==0}function ce(e,t,n){if("function"==typeof e&&(e=[e]),e){var r=void 0,i=void 0;for(r=0;r<e.length;r++)i=e[r].apply(t,n)||i;return i}}function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function he(t,n){var r,i,o,s,a,l=function(){var e=(new Date).valueOf()-s;e<n?r=setTimeout(l,n-e):(r=null,a=t.apply(o,i),o=i=null)};return function(){return o=this,i=arguments,s=(new Date).valueOf(),r=r||setTimeout(l,n),a}}function fe(e,t,n,r){void 0===n&&(n={});var i={};for(var o in t){var s=t[o];void 0!==e[o]?s===Function?i[o]="function"==typeof e[o]?e[o]:null:i[o]=s?s(e[o]):e[o]:void 0!==n[o]?i[o]=n[o]:s===String?i[o]="":s&&s!==Number&&s!==Boolean&&s!==Function?i[o]=s(null):i[o]=null}if(r)for(var o in e)void 0===t[o]&&(r[o]=e[o]);return i}function pe(e){var t=Math.floor(A(e.start,e.end))||1,n=W(e.start);return{start:n,end:P(n,t)}}function ge(e,t){void 0===t&&(t=$(0));var n=null,r=null;if(e.end){r=W(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=ee(t)&&(r=P(r,1))}return e.start&&(n=W(e.start),r&&r<=n&&(r=P(n,1))),{start:n,end:r}}function me(e,t,n,r){return"year"===r?$(n.diffWholeYears(e,t),"year"):"month"===r?$(n.diffWholeMonths(e,t),"month"):H(e,t)}var ve=function(e,t){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ye(e,t){function n(){this.constructor=e}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Se=function(){return(Se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var we=Object.prototype.hasOwnProperty;function _e(e,t){var n,r,i,o,s,a,l={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;0<=o;o--)if("object"==typeof(s=e[o][r])&&s)i.unshift(s);else if(void 0!==s){l[r]=s;break}i.length&&(l[r]=_e(i))}for(n=e.length-1;0<=n;n--)for(r in a=e[n])r in l||(l[r]=a[r]);return l}function be(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Ee(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function De(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function Te(e){var t=[];for(var n in e)t.push(e[n]);return t}function Ce(e,t){for(var n in e)if(we.call(e,n)&&!(n in t))return!1;for(var n in t)if(we.call(t,n)&&e[n]!==t[n])return!1;return!0}function xe(e,t,n,r){for(var i=Oe(),o=0,s=e;o<s.length;o++){var a=Vt(s[o],t,n,r);a&&ke(a,i)}return i}function ke(e,t){return void 0===t&&(t=Oe()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ie(e,t,n){var r,i,o,s,a,l,u=n.dateEnv,c=e.defs,d=e.instances;for(var h in d=be(d,function(e){return!c[e.defId].recurringDef}),c){var f=c[h];if(f.recurringDef){var p=f.recurringDef.duration;p=p||(f.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var g=0,m=(r=f,i=p,o=t,s=n.dateEnv,a=n.pluginSystem.hooks.recurringTypes,l=void 0,l=a[r.recurringDef.typeId].expand(r.recurringDef.typeData,{start:s.subtract(o.start,i),end:o.end},s),r.allDay&&(l=l.map(W)),l);g<m.length;g++){var v=m[g],y=qt(h,{start:v,end:u.add(v,p)});d[y.instanceId]=y}}}return{defs:c,instances:d}}function Re(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=Ne(e,function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n});return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Oe()}function Me(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],s=t(o);s?n.push(s):null==s&&n.push(o)}}else n=e;return n}function Oe(){return{defs:{},instances:{}}}function Pe(e,t){return{defs:Se({},e.defs,t.defs),instances:Se({},e.instances,t.instances)}}function Ne(e,t){var n=be(e.defs,t),r=be(e.instances,function(e){return n[e.defId]});return{defs:n,instances:r}}function Ae(e,t){var n,r,i=[],o=t.start;for(e.sort(He),n=0;n<e.length;n++)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function He(e,t){return e.start.valueOf()-t.start.valueOf()}function Le(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function je(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function We(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function ze(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Fe(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Ue(e,t){var n,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Ye(e){var t,n;return function(){return t&&Ue(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}function Be(t,n){var r=null;return function(){var e=t.apply(this,arguments);return null!==r&&(r===e||n(r,e))||(r=e),r}}var Ve={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ge={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},qe=/\s*([ap])\.?m\.?/i,Ze=/,/g,$e=/\s+/g,Qe=/\u200e/g,Ke=/UTC|GMT/,Xe=(Je.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},Je.prototype.formatRange=function(e,t,n){var r,i,o,s=this.standardDateProps,a=this.extendedSettings,l=(r=e.marker,i=t.marker,(o=n.calendarSystem).getMarkerYear(r)===o.getMarkerYear(i)?o.getMarkerMonth(r)===o.getMarkerMonth(i)?o.getMarkerDay(r)===o.getMarkerDay(i)?G(r)===G(i)?0:1:2:4:5);if(!l)return this.format(e,n);var u=l;!(1<u)||"numeric"!==s.year&&"2-digit"!==s.year||"numeric"!==s.month&&"2-digit"!==s.month||"numeric"!==s.day&&"2-digit"!==s.day||(u=1);var c=this.format(e,n),d=this.format(t,n);if(c===d)return c;var h=et(function(e,t){var n={};for(var r in e)r in Ge&&!(Ge[r]<=t)||(n[r]=e[r]);return n}(s,u),a,n),f=h(e),p=h(t),g=function(e,t,n,r){for(var i=0;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var s=e.substr(0,o);i=o+t.length;for(var a=e.substr(i),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(s===c&&a===d)return{before:s,after:a}}}return null}(c,f,d,p),m=a.separator||"";return g?g.before+f+m+p+g.after:c+m+d},Je.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},Je);function Je(e){var t={},n={},r=0;for(var i in e)i in Ve?(n[i]=e[i],r=Math.max(Ve[i],r)):(t[i]=e[i],i in Ge&&(r=Math.max(Ge[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Ye(et)}function et(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return st(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r){var i=[];"narrow"===r?i.push(t):"short"===r&&i.push(t," ");i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:function(n,r,i){n=Se({},n),r=Se({},r),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(n,r),n.timeZone="UTC";var o,s=new Intl.DateTimeFormat(i.locale.codes,n);if(r.omitZeroMinute){var e=Se({},n);delete e.minute,o=new Intl.DateTimeFormat(i.locale.codes,e)}return function(e){var t=e.marker;return function(e,t,n,r,i){e=e.replace(Qe,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(Ke,function(){return n=!0,t}),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":st(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ze,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(qe,"").trim():"narrow"===r.meridiem?e=e.replace(qe,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(qe,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(qe,function(e){return e.toLocaleLowerCase()}));return e=(e=e.replace($e," ")).trim()}((o&&!t.getUTCMinutes()?o:s).format(t),e,n,r,i)}}(e,t,n)}var tt=(nt.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,at(e,null,t,this.separator))},nt.prototype.formatRange=function(e,t,n){return n.cmdFormatter(this.cmdStr,at(e,t,n,this.separator))},nt);function nt(e,t){this.cmdStr=e,this.separator=t}var rt=(it.prototype.format=function(e,t){return this.func(at(e,null,t))},it.prototype.formatRange=function(e,t,n){return this.func(at(e,t,n))},it);function it(e){this.func=e}function ot(e,t){return"object"==typeof e&&e?("string"==typeof t&&(e=Se({separator:t},e)),new Xe(e)):"string"==typeof e?new tt(e,t):"function"==typeof e?new rt(e):void 0}function st(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?n+le(i,2)+":"+le(o,2):"GMT"+n+i+(o?":"+le(o,2):"")}function at(e,t,n,r){var i=lt(e,n.calendarSystem);return{date:i,start:i,end:t?lt(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function lt(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}var ut=(ct.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},ct.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(ct.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),ct);function ct(e,t){this.calendar=e,this.internalEventSource=t}var dt=(ht.prototype.setProp=function(e,t){var n,r;if(!(e in Yt))if(e in Ut)"function"==typeof Ut[e]&&(t=Ut[e](t)),this.mutate({standardProps:((n={})[e]=t,n)});else if(e in Ht){var i=void 0;"function"==typeof Ht[e]&&(t=Ht[e](t)),i="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:((r={})[e]=t,r),this.mutate({standardProps:{ui:i}})}},ht.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:((n={})[e]=t,n)})},ht.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._calendar.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=me(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},ht.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._calendar.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var i=me(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},ht.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i=this._calendar.dateEnv,o={allDay:n.allDay},s=i.createMarker(e);if(s&&(null==t||(r=i.createMarker(t)))&&this._instance){var a=this._instance.range;!0===n.allDay&&(a=pe(a));var l=me(a.start,s,i,n.granularity);if(r){var u=me(a.end,r,i,n.granularity);X(l,u)?this.mutate({datesDelta:l,standardProps:o}):this.mutate({startDelta:l,endDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:l,standardProps:o})}},ht.prototype.moveStart=function(e){var t=$(e);t&&this.mutate({startDelta:t})},ht.prototype.moveEnd=function(e){var t=$(e);t&&this.mutate({endDelta:t})},ht.prototype.moveDates=function(e){var t=$(e);t&&this.mutate({datesDelta:t})},ht.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},ht.prototype.formatRange=function(e){var t=this._calendar.dateEnv,n=this._instance,r=ot(e,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},ht.prototype.mutate=function(e){var t=this._def,n=this._instance;if(n){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:n.instanceId,mutation:e,fromApi:!0});var r=this._calendar.state.eventStore;this._def=r.defs[t.defId],this._instance=r.instances[n.instanceId]}},ht.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(ht.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new ut(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),ht);function ht(e,t,n){this._calendar=e,this._def=t,this._instance=n||null}function ft(e,t,n,r){var i={},o={},s={},a=[],l=[],u=mt(e.defs,t);for(var c in e.defs){"inverse-background"===(w=e.defs[c]).rendering&&(w.groupId?(i[w.groupId]=[],s[w.groupId]||(s[w.groupId]=w)):o[c]=[])}for(var d in e.instances){var h=e.instances[d],f=u[(w=e.defs[h.defId]).defId],p=h.range,g=!w.allDay&&r?ge(p,r):p,m=Le(g,n);m&&("inverse-background"===w.rendering?w.groupId?i[w.groupId].push(m):o[h.defId].push(m):("background"===w.rendering?a:l).push({def:w,ui:f,instance:h,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(var v in i)for(var y=0,S=Ae(i[v],n);y<S.length;y++){var w,_=S[y];f=u[(w=s[v]).defId];a.push({def:w,ui:f,instance:null,range:_,isStart:!1,isEnd:!1})}for(var c in o)for(var b=0,E=Ae(o[c],n);b<E.length;b++){_=E[b];a.push({def:e.defs[c],ui:u[c],instance:null,range:_,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function pt(e,t,n){var r,i,o=e.calendar,s=e.view;o.hasPublicHandlers("eventRender")&&(t=t.filter(function(e){var t=o.publiclyTrigger("eventRender",[{event:new dt(o,e.eventRange.def,e.eventRange.instance),isMirror:n,isStart:e.isStart,isEnd:e.isEnd,el:e.el,view:s}]);return!1!==t&&(t&&!0!==t&&(e.el=t),!0)}));for(var a=0,l=t;a<l.length;a++){var u=l[a];r=u.el,i=u,r.fcSeg=i}return t}function gt(e){return e.fcSeg||null}function mt(e,t){return Ee(e,function(e){return vt(e,t)})}function vt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),zt(n)}function yt(e,t,n){var r=e.calendar,i=e.view;if(r.hasPublicHandlers("eventPositioned"))for(var o=0,s=t;o<s.length;o++){var a=s[o];r.publiclyTriggerAfterSizing("eventPositioned",[{event:new dt(r,a.eventRange.def,a.eventRange.instance),isMirror:n,isStart:a.isStart,isEnd:a.isEnd,el:a.el,view:i}])}r.state.loadingLevel||(r.afterSizingTriggers._eventsPositioned=[null])}function St(e,t,n){for(var r=e.calendar,i=e.view,o=0,s=t;o<s.length;o++){var a=s[o];r.trigger("eventElRemove",a.el)}if(r.hasPublicHandlers("eventDestroy"))for(var l=0,u=t;l<u.length;l++){a=u[l];r.publiclyTrigger("eventDestroy",[{event:new dt(r,a.eventRange.def,a.eventRange.instance),isMirror:n,el:a.el,view:i}])}}function wt(e,t,n,r){var i=mt(e.defs,t),o=Oe();for(var s in e.defs){var a=e.defs[s];o.defs[s]=_t(a,i[s],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var l in e.instances){var u=e.instances[l];a=o.defs[u.defId];o.instances[l]=bt(u,a,i[u.defId],n,r)}return o}function _t(e,t,n,r,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var s=Se({},e,o,{ui:Se({},e.ui,o.ui)});n.extendedProps&&(s.extendedProps=Se({},s.extendedProps,n.extendedProps));for(var a=0,l=r;a<l.length;a++){(0,l[a])(s,n,i)}return!s.hasEnd&&i.opt("forceEventDuration")&&(s.hasEnd=!0),s}function bt(e,t,n,r,i){var o=i.dateEnv,s=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Se({},e);return s&&(l.range=pe(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:i.getDefaultEventEnd(t.allDay,l.range.start)}),t.allDay&&(l.range={start:W(l.range.start),end:W(l.range.end)}),l.range.end<l.range.start&&(l.range.end=i.getDefaultEventEnd(t.allDay,l.range.start)),l}function Et(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var s=xe(function(e,t,n){var r=n.opt("eventDataTransform"),i=t?t.eventDataTransform:null;return i&&(e=Me(e,i)),r&&(e=Me(e,r)),e}(i,t,o),t.sourceId,o);return r&&(s=Ie(s,r,o)),Pe(Dt(e,t.sourceId),s)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Ie(t,n,r));return Pe(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":return Pe(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?Ie(e,r.activeRange,i):e;case"CHANGE_TIMEZONE":return h=e,f=t.oldDateEnv,p=i.dateEnv,g=h.defs,m=Ee(h.instances,function(e){var t=g[e.defId];return t.allDay||t.recurringDef?e:Se({},e,{range:{start:p.createMarker(f.toDate(e.range.start,e.forcedStartTzo)),end:p.createMarker(f.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:p.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:p.canComputeOffset?null:e.forcedEndTzo})}),{defs:g,instances:m};case"MUTATE_EVENTS":return o=e,s=t.instanceId,a=t.mutation,l=t.fromApi,u=i,c=Re(o,s),d=l?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:u.eventUiBases,c=wt(c,d,a,u),Pe(o,c);case"REMOVE_EVENT_INSTANCES":return Tt(e,t.instances);case"REMOVE_EVENT_DEF":return Ne(e,function(e){return e.defId!==t.defId});case"REMOVE_EVENT_SOURCE":return Dt(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ne(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return Oe();case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}var o,s,a,l,u,c,d,h,f,p,g,m}function Dt(e,t){return Ne(e,function(e){return e.sourceId!==t})}function Tt(e,t){return{defs:e.defs,instances:be(e.instances,function(e){return!t[e.instanceId]})}}function Ct(e,t){return xt({eventDrag:e},t)}function xt(e,t){var n=t.view,r=Se({businessHours:n?n.props.businessHours:Oe(),dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||kt)(r,t)}function kt(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var i=e.eventDrag,o=i.mutatedEvents,s=o.defs,a=o.instances,l=mt(s,i.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(l=Ee(l,r));var u=Tt(e.eventStore,i.affectedEvents.instances),c=u.defs,d=u.instances,h=mt(c,e.eventUiBases);for(var f in a){var p=a[f],g=p.range,m=l[p.defId],v=s[p.defId];if(!It(m.constraints,g,u,e.businessHours,t))return;var y=t.opt("eventOverlap");for(var S in"function"!=typeof y&&(y=null),d){var w=d[S];if(We(g,w.range)){if(!1===h[w.defId].overlap&&i.isEvent)return;if(!1===m.overlap)return;if(y&&!y(new dt(t,c[w.defId],w),new dt(t,v,p)))return}}for(var _=t.state.eventStore,b=0,E=m.allows;b<E.length;b++){var D=E[b],T=Se({},n,{range:p.range,allDay:v.allDay}),C=_.defs[v.defId],x=_.instances[f],k=void 0;if(k=C?new dt(t,C,x):new dt(t,v),!D(t.buildDateSpanApi(T),k))return}}return 1}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var i=e.eventStore,o=i.defs,s=i.instances,a=e.dateSelection,l=a.range,u=t.selectionConfig;r&&(u=r(u));if(!It(u.constraints,l,i,e.businessHours,t))return;var c=t.opt("selectOverlap");"function"!=typeof c&&(c=null);for(var d in s){var h=s[d];if(We(l,h.range)){if(!1===u.overlap)return;if(c&&!c(new dt(t,o[h.defId],h)))return}}for(var f=0,p=u.allows;f<p.length;f++){var g=p[f],m=Se({},n,a);if(!g(t.buildDateSpanApi(m),null))return}return 1}(e,t,n,r))}function It(e,t,n,r,i){for(var o=0,s=e;o<s.length;o++){if(!Ot(Rt(s[o],t,n,r,i),t))return}return 1}function Rt(t,e,n,r,i){return"businessHours"===t?Mt(Ie(r,e,i)):"string"==typeof t?Mt(Ne(n,function(e){return e.groupId===t})):"object"==typeof t&&t?Mt(Ie(t,e,i)):[]}function Mt(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Ot(e,t){for(var n=0,r=e;n<r.length;n++){if(ze(r[n],t))return 1}}function Pt(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function Nt(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function At(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Ht={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:At,classNames:At,color:String,backgroundColor:String,borderColor:String,textColor:String};function Lt(e,t,n){var r,i,o=fe(e,Ht,{},n),s=(r=o.constraint,i=t,Array.isArray(r)?xe(r,"",i,!0):"object"==typeof r&&r?xe([r],"",i,!0):null!=r?String(r):null);return{startEditable:null!=o.startEditable?o.startEditable:o.editable,durationEditable:null!=o.durationEditable?o.durationEditable:o.editable,constraints:null!=s?[s]:[],overlap:o.overlap,allows:null!=o.allow?[o.allow]:[],backgroundColor:o.backgroundColor||o.color,borderColor:o.borderColor||o.color,textColor:o.textColor,classNames:o.classNames.concat(o.className)}}function jt(e,t,n,r){var i={},o={};for(var s in Ht){var a=e+ae(s);i[s]=t[a],o[a]=!0}if("event"===e&&(i.editable=t.editable),r)for(var s in t)o[s]||(r[s]=t[s]);return Lt(i,n)}var Wt={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function zt(e){return e.reduce(Ft,Wt)}function Ft(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var Ut={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},Yt={start:null,date:null,end:null,allDay:null},Bt=0;function Vt(e,t,n,r){var i=function(e,t){var n=null;if(e){var r=t.state.eventSources[e];n=r.allDayDefault}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),o={},s=function(e,t,n,r,i){for(var o=0;o<r.length;o++){var s={},a=r[o].parse(e,s,n);if(a){var l=s.allDay;return delete s.allDay,null==l&&null==(l=t)&&null==(l=a.allDayGuess)&&(l=!1),Se(i,s),{allDay:l,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(e,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(s)return(a=Gt(o,t,s.allDay,Boolean(s.duration),n)).recurringDef={typeId:s.typeId,typeData:s.typeData,duration:s.duration},{def:a,instance:null};var a,l={},u=function(e,t,n,r,i){var o,s,a=function(e,t){var n=fe(e,Yt,{},t);return n.start=null!==n.start?n.start:n.date,delete n.date,n}(e,r),l=a.allDay,u=null,c=!1,d=null;if(o=n.dateEnv.createMarkerMeta(a.start))u=o.marker;else if(!i)return null;null!=a.end&&(s=n.dateEnv.createMarkerMeta(a.end));null==l&&(l=null!=t?t:(!o||o.isTimeUnspecified)&&(!s||s.isTimeUnspecified));l&&u&&(u=W(u));s&&(d=s.marker,l&&(d=W(d)),u&&d<=u&&(d=null));d?c=!0:i||(c=n.opt("forceEventDuration")||!1,d=n.dateEnv.add(u,l?n.defaultAllDayEventDuration:n.defaultTimedEventDuration));return{allDay:l,hasEnd:c,range:{start:u,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(e,i,n,l,r);return u?{def:a=Gt(l,t,u.allDay,u.hasEnd,n),instance:qt(a.defId,u.range,u.forcedStartTzo,u.forcedEndTzo)}:null}function Gt(e,t,n,r,i){var o,s,a,l,u,c={},d=(o=i,s=c,l=fe(e,Ut,{},a={}),u=Lt(a,o,s),l.publicId=l.id,delete l.id,l.ui=u,l);d.defId=String(Bt++),d.sourceId=t,d.allDay=n,d.hasEnd=r;for(var h=0,f=i.pluginSystem.hooks.eventDefParsers;h<f.length;h++){var p={};(0,f[h])(d,c,p),c=p}return d.extendedProps=Se(c,d.extendedProps||{}),Object.freeze(d.ui.classNames),Object.freeze(d.extendedProps),d}function qt(e,t,n,r){return{instanceId:String(Bt++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var Zt={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};function $t(e,t){return xe(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):"object"==typeof e&&e?[e]:[];return t=t.map(function(e){return Se({},Zt,e)})}(e),"",t)}function Qt(e,n,t){void 0===t&&(t=[]);var r,i,o=[];function s(){if(i){for(var e=0,t=o;e<t.length;e++){t[e].unrender()}n&&n.apply(r,i),i=null}}function a(){i&&Ue(i,arguments)||(s(),r=this,i=arguments,e.apply(this,arguments))}a.dependents=o,a.unrender=s;for(var l=0,u=t;l<u.length;l++){u[l].dependents.push(a)}return a}var Kt=Oe(),Xt=(Jt.prototype.splitProps=function(e){var n=this,t=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=Ee(t,function(e,t){return n.eventUiBuilders[t]||Ye(en)}),t){var d=t[c],h=s[c]||Kt,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],d.ui,o[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return u},Jt.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++)t[r[n]]=e;return t},Jt.prototype._getKeysForEventDefs=function(e){var t=this;return Ee(e.defs,function(e){return t.getKeysForEventDef(e)})},Jt.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var o in n)for(var s=0,a=t[o];s<a.length;s++)i[h=a[s]]||(i[h]=Oe()),i[h].defs[o]=n[o];for(var l in r)for(var u=r[l],c=0,d=t[u.defId];c<d.length;c++){var h;i[h=d[c]]&&(i[h].instances[l]=u)}return i},Jt.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,o=t[r];i<o.length;i++){var s=o[i];n[s]||(n[s]={}),n[s][r]=e[r]}return n},Jt.prototype._splitInteraction=function(t){var n={};if(t){var r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),e=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,e),o=function(e){n[e]||(n[e]={affectedEvents:r[e]||Kt,mutatedEvents:i[e]||Kt,isEvent:t.isEvent,origSeg:t.origSeg})};for(var s in r)o(s);for(var s in i)o(s)}return n},Jt);function Jt(){this.getKeysForEventDefs=Ye(this._getKeysForEventDefs),this.splitDateSelection=Ye(this._splitDateSpan),this.splitEventStore=Ye(this._splitEventStore),this.splitIndividualUi=Ye(this._splitIndividualUi),this.splitEventDrag=Ye(this._splitInteraction),this.splitEventResize=Ye(this._splitInteraction),this.eventUiBuilders={}}function en(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":zt(r)};return n&&Se(i,n),i}function tn(e,t,n,r,i){var o,s,a,l;return n instanceof Date?o=n:(o=n.date,s=n.type,a=n.forceOff),l={date:t.formatIso(o,{omitTime:!0}),type:s||"day"},"string"==typeof r&&(i=r,r=null),r=r?" "+function(e){var t=[];for(var n in e){var r=e[n];null!=r&&t.push(n+'="'+Pt(r)+'"')}return t.join(" ")}(r):"",i=i||"",!a&&e.navLinks?"<a"+r+' data-goto="'+Pt(JSON.stringify(l))+'">'+i+"</a>":"<span"+r+">"+i+"</span>"}function nn(e,t,n,r){var i,o,s=n.calendar,a=n.options,l=n.theme,u=n.dateEnv,c=[];return Fe(t.activeRange,e)?(c.push("fc-"+O[e.getUTCDay()]),a.monthMode&&u.getMonth(e)!==u.getMonth(t.currentRange.start)&&c.push("fc-other-month"),o=P(i=W(s.getNow()),1),e<i?c.push("fc-past"):o<=e?c.push("fc-future"):(c.push("fc-today"),!0!==r&&c.push(l.getClass("today")))):c.push("fc-disabled-day"),c}function rn(e,t,n){function r(){o||(o=!0,t.apply(this,arguments))}function i(){o||(o=!0,n&&n.apply(this,arguments))}var o=!1,s=e(r,i);s&&"function"==typeof s.then&&s.then(r,i)}var on=(sn.mixInto=function(e){this.mixIntoObj(e.prototype)},sn.mixIntoObj=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t[e]||(t[e]=n.prototype[e])})},sn.mixOver=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t.prototype[e]=n.prototype[e]})},sn);function sn(){}var an,ln=(ye(un,an=on),un.prototype.on=function(e,t){return cn(this._handlers||(this._handlers={}),e,t),this},un.prototype.one=function(e,t){return cn(this._oneHandlers||(this._oneHandlers={}),e,t),this},un.prototype.off=function(e,t){return this._handlers&&dn(this._handlers,e,t),this._oneHandlers&&dn(this._oneHandlers,e,t),this},un.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.triggerWith(e,this,t),this},un.prototype.triggerWith=function(e,t,n){return this._handlers&&ce(this._handlers[e],t,n),this._oneHandlers&&(ce(this._oneHandlers[e],t,n),delete this._oneHandlers[e]),this},un.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},un);function un(){return null!==an&&an.apply(this,arguments)||this}function cn(e,t,n){(e[t]||(e[t]=[])).push(n)}function dn(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){return e!==n})):delete e[t]}var hn=(fn.prototype.build=function(){var e=this.originEl,t=this.originClientRect=e.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(t.left),this.isVertical&&this.buildElVerticals(t.top)},fn.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},fn.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},fn.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},fn.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},fn.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},fn.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},fn);function fn(e,t,n,r){this.originEl=e,this.els=t,this.isHorizontal=n,this.isVertical=r}var pn=(gn.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},gn.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},gn.prototype.canScrollVertically=function(){return 0<this.getMaxScrollTop()},gn.prototype.canScrollHorizontally=function(){return 0<this.getMaxScrollLeft()},gn.prototype.canScrollUp=function(){return 0<this.getScrollTop()},gn.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},gn.prototype.canScrollLeft=function(){return 0<this.getScrollLeft()},gn.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},gn);function gn(){}var mn,vn=(ye(yn,mn=pn),yn.prototype.getScrollTop=function(){return this.el.scrollTop},yn.prototype.getScrollLeft=function(){return this.el.scrollLeft},yn.prototype.setScrollTop=function(e){this.el.scrollTop=e},yn.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},yn.prototype.getScrollWidth=function(){return this.el.scrollWidth},yn.prototype.getScrollHeight=function(){return this.el.scrollHeight},yn.prototype.getClientHeight=function(){return this.el.clientHeight},yn.prototype.getClientWidth=function(){return this.el.clientWidth},yn);function yn(e){var t=mn.call(this)||this;return t.el=e,t}var Sn,wn=(ye(_n,Sn=pn),_n.prototype.getScrollTop=function(){return window.pageYOffset},_n.prototype.getScrollLeft=function(){return window.pageXOffset},_n.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},_n.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},_n.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},_n.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},_n.prototype.getClientHeight=function(){return document.documentElement.clientHeight},_n.prototype.getClientWidth=function(){return document.documentElement.clientWidth},_n);function _n(){return null!==Sn&&Sn.apply(this,arguments)||this}var bn,En=(ye(Dn,bn=vn),Dn.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},Dn.prototype.destroy=function(){r(this.el)},Dn.prototype.applyOverflow=function(){p(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},Dn.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),p(this.el,{overflowX:t,overflowY:n})},Dn.prototype.setHeight=function(e){g(this.el,"height",e)},Dn.prototype.getScrollbarWidths=function(){var e=E(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},Dn);function Dn(e,t){var n=bn.call(this,s("div",{className:"fc-scroller"}))||this;return n.overflowX=e,n.overflowY=t,n.applyOverflow(),n}var Tn=(Cn.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},Cn.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=Se({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},Cn.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},Cn.prototype.getClass=function(e){return this.classes[e]||""},Cn.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},Cn.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},Cn);function Cn(e){this.calendarOptions=e,this.processIconOverride()}Tn.prototype.classes={},Tn.prototype.iconClasses={},Tn.prototype.baseIconClass="",Tn.prototype.iconOverridePrefix="";var xn=0,kn=(In.prototype.extend=function(e,t){return new In(this.calendar,this.theme,this.dateEnv,e||this.options,t||this.view)},In);function In(e,t,n,r,i){this.calendar=e,this.theme=t,this.dateEnv=n,this.options=r,this.view=i,this.isRtl="rtl"===r.dir,this.eventOrderSpecs=re(r.eventOrder),this.nextDayThreshold=$(r.nextDayThreshold)}var Rn=(Mn.addEqualityFuncs=function(e){this.prototype.equalityFuncs=Se({},this.prototype.equalityFuncs,e)},Mn.prototype.receiveProps=function(e,t){var n=this.context;this.context=t,n||this.firstContext(t);var r=function(e,t,n){var r={},i=!1;for(var o in t)o in e&&(e[o]===t[o]||n[o]&&n[o](e[o],t[o]))?r[o]=e[o]:(r[o]=t[o],i=!0);for(var o in e)if(!(o in t)){i=!0;break}return{anyChanges:i,comboProps:r}}(this.props||{},e,this.equalityFuncs),i=r.anyChanges,o=r.comboProps;this.props=o,i&&(n&&this.beforeUpdate(),this.render(o,t),n&&this.afterUpdate())},Mn.prototype.render=function(e,t){},Mn.prototype.firstContext=function(e){},Mn.prototype.beforeUpdate=function(){},Mn.prototype.afterUpdate=function(){},Mn.prototype.destroy=function(){},Mn);function Mn(){this.uid=String(xn++)}Rn.prototype.equalityFuncs={};var On,Pn=(ye(Nn,On=Rn),Nn.prototype.destroy=function(){On.prototype.destroy.call(this),r(this.el)},Nn.prototype.buildPositionCaches=function(){},Nn.prototype.queryHit=function(e,t,n,r){return null},Nn.prototype.isInteractionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(var i in r)if(!ze(n.validRange,r[i].range))return!1;return Ct(e,t)},Nn.prototype.isDateSelectionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile;return!(n&&!ze(n.validRange,e.range))&&xt({dateSelection:e},t)},Nn.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!c(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},Nn.prototype.isValidDateDownEl=function(e){var t=c(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!c(e,".fc-more")&&!c(e,"a[data-goto]")&&!this.isInPopover(e)},Nn.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},Nn.prototype.isInPopover=function(e){return Boolean(c(e,".fc-popover"))},Nn);function Nn(e){var t=On.call(this)||this;return t.el=e,t}Pn.prototype.fgSegSelector=".fc-event-container > *",Pn.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var An=0;function Hn(e){return{id:String(An++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}var Ln=(jn.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;t<n.length;t++){var r=n[t];this.add(r)}this.hooks=(i=this.hooks,o=e,{reducers:i.reducers.concat(o.reducers),eventDefParsers:i.eventDefParsers.concat(o.eventDefParsers),isDraggableTransformers:i.isDraggableTransformers.concat(o.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(o.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(o.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(o.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(o.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(o.dateSpanTransforms),views:Se({},i.views,o.views),viewPropsTransformers:i.viewPropsTransformers.concat(o.viewPropsTransformers),isPropsValid:o.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(o.externalDefTransforms),eventResizeJoinTransforms:i.eventResizeJoinTransforms.concat(o.eventResizeJoinTransforms),viewContainerModifiers:i.viewContainerModifiers.concat(o.viewContainerModifiers),eventDropTransformers:i.eventDropTransformers.concat(o.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(o.calendarInteractions),componentInteractions:i.componentInteractions.concat(o.componentInteractions),themeClasses:Se({},i.themeClasses,o.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(o.eventSourceDefs),cmdFormatter:o.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(o.recurringTypes),namedTimeZonedImpl:o.namedTimeZonedImpl||i.namedTimeZonedImpl,defaultView:i.defaultView||o.defaultView,elementDraggingImpl:i.elementDraggingImpl||o.elementDraggingImpl,optionChangeHandlers:Se({},i.optionChangeHandlers,o.optionChangeHandlers)})}var i,o},jn);function jn(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}var Wn=Hn({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),zn=Hn({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.calendar.dateEnv;rn(e.eventSource.meta.bind(null,{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}),function(e){t({rawEvents:e})},n)}}]});function Fn(e,t,n,r,i){var o,s,a=null;"GET"===(e=e.toUpperCase())?(s=n,t=(o=t)+(-1===o.indexOf("?")?"?":"&")+Un(s)):a=Un(n);var l=new XMLHttpRequest;l.open(e,t,!0),"GET"!==e&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.onload=function(){if(200<=l.status&&l.status<400)try{var e=JSON.parse(l.responseText);r(e,l)}catch(e){i("Failure parsing JSON",l)}else i("Request failed",l)},l.onerror=function(){i("Request failed",l)},l.send(a)}function Un(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var Yn=Hn({eventSourceDefs:[{parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,n,r){var t=e.eventSource.meta,i=function(e,t,n){var r,i,o,s,a=n.dateEnv,l={};null==(r=e.startParam)&&(r=n.opt("startParam"));null==(i=e.endParam)&&(i=n.opt("endParam"));null==(o=e.timeZoneParam)&&(o=n.opt("timeZoneParam"));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Se(l,s),l[r]=a.formatIso(t.start),l[i]=a.formatIso(t.end),"local"!==a.timeZone&&(l[o]=a.timeZone);return l}(t,e.range,e.calendar);Fn(t.method,t.url,i,function(e,t){n({rawEvents:e,xhr:t})},function(e,t){r({message:e,xhr:t})})}}]});var Bn=Hn({recurringTypes:[{parse:function(e,t,n){var r,i,o=n.createMarker.bind(n),s=fe(e,{daysOfWeek:null,startTime:$,endTime:$,startRecur:o,endRecur:o},{},t),a=!1;for(var l in s)if(null!=s[l]){a=!0;break}if(a){var u=null;return"duration"in t&&(u=$(t.duration),delete t.duration),!u&&s.startTime&&s.endTime&&(r=s.endTime,i=s.startTime,u={years:r.years-i.years,months:r.months-i.months,days:r.days-i.days,milliseconds:r.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!s.startTime&&!s.endTime),duration:u,typeData:s}}return null},expand:function(e,t,n){var r=Le(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var i=e?De(e):null,o=W(n.start),s=n.end,a=[];for(;o<s;){var l=void 0;i&&!i[o.getUTCDay()]||(l=t?r.add(o,t):o,a.push(l)),o=P(o,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}]});var Vn=Hn({optionChangeHandlers:{events:function(e,t,n){Gn([e],t,n)},eventSources:Gn,plugins:function(e,t){t.addPluginInputs(e)}}});function Gn(e,t,n){for(var r=Te(t.state.eventSources),i=[],o=0,s=e;o<s.length;o++){for(var a=s[o],l=!1,u=0;u<r.length;u++)if(n(r[u]._raw,a)){r.splice(u,1),l=!0;break}l||i.push(a)}for(var c=0,d=r;c<d.length;c++){var h=d[c];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:h.sourceId})}for(var f=0,p=i;f<p.length;f++){var g=p[f];t.addEventSource(g)}}var qn={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},Zn={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},$n=["header","footer","buttonText","buttonIcons"];var Qn=[Wn,zn,Yn,Bn,Vn];var Kn={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};function Xn(e){for(var t=0<e.length?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},i=n.concat(Te(r),e),o={en:Kn},s=0,a=i;s<a.length;s++){var l=a[s];o[l.code]=l}return{map:o,defaultCode:t}}function Jn(e,t){return"object"!=typeof e||Array.isArray(e)?(r=t,i=[].concat((n=e)||[]),o=function(e,t){for(var n=0;n<e.length;n++)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;0<i;i--){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}(i,r)||Kn,er(n,i,o)):er(e.code,[e.code],e);var n,r,i,o}function er(e,t,n){var r=_e([Kn,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var tr=(nr.prototype.mutate=function(e,t,n){if(Object.keys(e).length||t.length){var r=n?this.dynamicOverrides:this.overrides;Se(r,e);for(var i=0,o=t;i<o.length;i++)delete r[o[i]];this.compute()}},nr.prototype.compute=function(){var e=de(this.dynamicOverrides.locales,this.overrides.locales,qn.locales),t=de(this.dynamicOverrides.locale,this.overrides.locale,qn.locale),n=Xn(e),r=Jn(t||n.defaultCode,n.map).options,i="rtl"===de(this.dynamicOverrides.dir,this.overrides.dir,r.dir)?Zn:{};this.dirDefaults=i,this.localeDefaults=r,this.computed=_e([qn,i,r,this.overrides,this.dynamicOverrides],$n)},nr);function nr(e){this.overrides=Se({},e),this.dynamicOverrides={},this.compute()}var rr={};var ir,or=(sr.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},sr.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},sr.prototype.getMarkerDay=function(e){return e.getUTCDate()},sr.prototype.arrayToMarker=function(e){return B(e)},sr.prototype.markerToArray=function(e){return Y(e)},sr);function sr(){}ir=or,rr["gregory"]=ir;var ar=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function lr(e){var t=ar.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(V(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var ur=(cr.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},cr.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):B(F(new Date))},cr.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=B(e)),null!==t&&V(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},cr.prototype.parse=function(e){var t=lr(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},cr.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},cr.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},cr.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},cr.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},cr.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},cr.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},cr.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return G(e)===G(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},cr.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return G(e)===G(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},cr.prototype.greatestWholeUnit=function(e,t){var n,r,i,o=this.diffWholeYears(e,t);return null!==o?{unit:"year",value:o}:null!==(o=this.diffWholeMonths(e,t))?{unit:"month",value:o}:null!==(o=L(e,t))?{unit:"week",value:o}:null!==(o=j(e,t))?{unit:"day",value:o}:(n=e,ue(o=(t.valueOf()-n.valueOf())/36e5)?{unit:"hour",value:o}:(r=e,ue(o=(t.valueOf()-r.valueOf())/6e4)?{unit:"minute",value:o}:(i=e,ue(o=(t.valueOf()-i.valueOf())/1e3)?{unit:"second",value:o}:{unit:"millisecond",value:t.valueOf()-e.valueOf()})))},cr.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(J(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/(J(n)/30):n.days&&null!==(r=j(e,t))?r/J(n):(t.valueOf()-e.valueOf())/ee(n)},cr.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?W(e):"hour"===t?B([(i=e).getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours()]):"minute"===t?B([(r=e).getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes()]):"second"===t?B([(n=e).getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()]):void 0;var n,r,i},cr.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},cr.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},cr.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},cr.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),i=z(e,r,t,n);if(i<1)return z(e,r-1,t,n);var o=z(e,r+1,t,n);return 1<=o?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},cr.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},cr.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=N(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},cr.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),10<r.length&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",st(t,!0)))),r}(e,n,t.omitTime)},cr.prototype.timestampToMarker=function(e){return"local"===this.timeZone?B(F(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?B(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},cr.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-U(Y(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Y(e)):null},cr.prototype.toDate=function(e,t){return"local"===this.timeZone?U(Y(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Y(e))*60):new Date(e.valueOf()-(t||0))},cr);function cr(e){var t,n=this.timeZone=e.timeZone,r="local"!==n&&"UTC"!==n;e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=(t=e.calendarSystem,new rr[t]),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}var dr={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},hr=0;function fr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function pr(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;0<=r;r--){var i=n[r].parseMeta(e);if(i){var o=gr("object"==typeof e?e:{},i,r,t);return o._raw=e,o}}return null}function gr(e,t,n,r){var i={},o=fe(e,dr,{},i),s={},a=Lt(i,r,s);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(hr++),o.sourceDefId=n,o.meta=t,o.ui=a,o.extendedProps=s,o}function mr(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,n,r){for(var i={},o=0,s=t;o<s.length;o++){var a=s[o];i[a.sourceId]=a}n&&(i=yr(i,n,r));return Se({},e,i)}(e,t.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":return o=e,s=t.sourceId,be(o,function(e){return e.sourceId!==s});case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?yr(e,n.activeRange,r):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return Sr(e,t.sourceIds?De(t.sourceIds):(i=r,be(e,function(e){return fr(e,i)})),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var i,o=e[t];if(o&&n===o.latestFetchId)return Se({},e,((i={})[t]=Se({},o,{isFetching:!1,fetchRange:r}),i));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var i,o,s}var vr=0;function yr(e,i,o){return Sr(e,be(e,function(e){return n=i,fr(t=e,r=o)?!r.opt("lazyFetching")||!t.fetchRange||t.isFetching||n.start<t.fetchRange.start||n.end>t.fetchRange.end:!t.latestFetchId;var t,n,r}),i,o)}function Sr(e,t,n,r){var i={};for(var o in e){var s=e[o];t[o]?i[o]=wr(s,n,r):i[o]=s}return i}function wr(o,s,a){var e=a.pluginSystem.hooks.eventSourceDefs[o.sourceDefId],l=String(vr++);return e.fetch({eventSource:o,calendar:a,range:s},function(e){var t,n,r=e.rawEvents,i=a.opt("eventSourceSuccess");o.success&&(n=o.success(r,e.xhr)),i&&(t=i(r,e.xhr)),r=n||t||r,a.dispatch({type:"RECEIVE_EVENTS",sourceId:o.sourceId,fetchId:l,fetchRange:s,rawEvents:r})},function(e){var t=a.opt("eventSourceFailure");console.warn(e.message,e),o.failure&&o.failure(e),t&&t(e),a.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:o.sourceId,fetchId:l,fetchRange:s,error:e})}),Se({},o,{isFetching:!0,latestFetchId:l})}var _r=(br.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},br.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},br.prototype.build=function(e,t,n){var r,i,o,s,a,l,u,c,d,h;return void 0===n&&(n=!1),r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(h=r).start&&d<h.start?h.start:null!=h.end&&d>=h.end?new Date(h.end.valueOf()-1):d),s=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),u=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(u=Le(u,s.range)),i=$(this.options.minTime),o=$(this.options.maxTime),u=Le(u=this.adjustActiveRange(u,i,o),r),c=We(s.range,r),{validRange:r,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:u,renderRange:l,minTime:i,maxTime:o,isValid:c,dateIncrement:this.buildDateIncrement(s.duration)}},br.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},br.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,i=this.dateEnv,o=null,s=null,a=null;return r.duration?(o=r.duration,s=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,s)):(n=this.options.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?s=i.greatestWholeUnit(a.start,a.end).unit:(s=te(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,s)),{duration:o,unit:s,range:a}},br.prototype.getFallbackDuration=function(){return $({day:1})},br.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(J(t)<0&&(i=W(i),i=r.add(i,t)),1<J(n)&&(o=P(o=W(o),-1),o=r.add(o,n))),{start:i,end:o}},br.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,s,a,l,u=this.dateEnv,c=this.options.dateAlignment;function d(){s=u.startOf(e,c),a=u.add(s,n),l={start:s,end:a}}return c||(i=this.options.dateIncrement,c=i&&ee(o=$(i))<ee(n)?te(o,!K(i)).unit:r),J(n)<=1&&this.isHiddenDay(s)&&(s=W(s=this.skipHiddenDays(s,t))),d(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),d()),l},br.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.dateEnv,o=this.options.dateAlignment,s=0,a=e;for(o&&(a=i.startOf(a,o)),a=W(a),r=a=this.skipHiddenDays(a,t);r=P(r,1),this.isHiddenDay(r)||s++,s<n;);return{start:a,end:r}},br.prototype.buildCustomVisibleRange=function(e){var t=this.dateEnv,n=this.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},br.prototype.buildRenderRange=function(e,t,n){return e},br.prototype.buildDateIncrement=function(e){var t,n=this.options.dateIncrement;return n?$(n):(t=this.options.dateAlignment)?$(1,t):e||$({days:1})},br.prototype.getRangeOption=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i,o,s,a=this.options[e];return"function"==typeof a&&(a=a.apply(null,t)),a&&(r=a,i=this.dateEnv,s=o=null,r.start&&(o=i.createMarker(r.start)),r.end&&(s=i.createMarker(r.end)),a=!o&&!s||o&&s&&s<o?null:{start:o,end:s}),a=a&&ge(a)},br.prototype.initHiddenDays=function(){var e,t=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.indexOf(e))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},br.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t=t&&this.skipHiddenDays(t),n=n&&this.skipHiddenDays(n,-1,!0),null==t||null==n||t<n?{start:t,end:n}:null},br.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},br.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=P(e,t);return e},br);function br(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}function Er(e,t,n){for(var r=function(e,t){switch(t.type){case"SET_VIEW_TYPE":return t.viewType;default:return e}}(e.viewType,t),i=function(e,t,n,r,i){var o;switch(t.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(e,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(e,n);break;case"SET_DATE":e.activeRange&&Fe(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[r].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var s=i.dateProfileGenerators[r];if(!s)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=s.build(t.dateMarker||n,void 0,!0)}return!o||!o.isValid||e&&function(e,t){return je(e.validRange,t.validRange)&&je(e.activeRange,t.activeRange)&&je(e.renderRange,t.renderRange)&&X(e.minTime,t.minTime)&&X(e.maxTime,t.maxTime)}(e,o)?e:o}(e.dateProfile,t,e.currentDate,r,n),o=mr(e.eventSources,t,i,n),s=Se({},e,{viewType:r,dateProfile:i,currentDate:function(e,t,n){switch(t.type){case"PREV":case"NEXT":return Fe(n.currentRange,e)?e:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=t.dateMarker||e;return n.activeRange&&!Fe(n.activeRange,r)?n.currentRange.start:r;default:return e}}(e.currentDate,t,i),eventSources:o,eventStore:Et(e.eventStore,t,o,i,n),dateSelection:function(e,t){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return e}}(e.dateSelection,t),eventSelection:function(e,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return e}}(e.eventSelection,t),eventDrag:function(e,t){switch(t.type){case"SET_EVENT_DRAG":var n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent,origSeg:n.origSeg};case"UNSET_EVENT_DRAG":return null;default:return e}}(e.eventDrag,t),eventResize:function(e,t){switch(t.type){case"SET_EVENT_RESIZE":var n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent,origSeg:n.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return e}}(e.eventResize,t),eventSourceLoadingLevel:Dr(o),loadingLevel:Dr(o)}),a=0,l=n.pluginSystem.hooks.reducers;a<l.length;a++){s=(0,l[a])(s,t,n)}return s}function Dr(e){var t=0;for(var n in e)e[n].isFetching&&t++;return t}var Tr={start:null,end:null,allDay:Boolean};function Cr(e,t,n){var r=function(e,t){var n={},r=fe(e,Tr,{},n),i=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,s=r.allDay;null==s&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));return n.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=s,n}(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function xr(e,t,n,r){if(t[e])return t[e];var i=function(e,t,n,r){function i(e){return o&&null!==o[e]?o[e]:s&&null!==s[e]?s[e]:null}var o=n[e],s=r[e],a=i("class"),l=i("superType");!l&&a&&(l=kr(a,r)||kr(a,n));var u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=xr(l,t,n,r)}!a&&u&&(a=u.class);return a?{type:e,class:a,defaults:Se({},u?u.defaults:{},o?o.options:{}),overrides:Se({},u?u.overrides:{},s?s.options:{})}:null}(e,t,n,r);return i&&(t[e]=i),i}function kr(e,t){var n=Object.getPrototypeOf(e.prototype);for(var r in t){var i=t[r];if(i.class&&i.class.prototype===n)return r}return""}function Ir(e){return Ee(e,Mr)}var Rr={type:String,class:null};function Mr(e){"function"==typeof e&&(e={class:e});var t={},n=fe(e,Rr,{},t);return{superType:n.type,class:n.class,options:t}}function Or(e,t){var n=Ir(e),r=Ir(t.overrides.views);return Ee(function(e,t){var n,r={};for(n in e)xr(n,r,e,t);for(n in t)xr(n,r,e,t);return r}(n,r),function(e){return function(r,e,t){var n=r.overrides.duration||r.defaults.duration||t.dynamicOverrides.duration||t.overrides.duration,i=null,o="",s="",a={};if(n&&(i=$(n))){var l=te(i,!K(n));o=l.unit,1===l.value&&(a=e[s=o]?e[o].options:{})}function u(e){var t=e.buttonText||{},n=r.defaults.buttonTextKey;return null!=n&&null!=t[n]?t[n]:null!=t[r.type]?t[r.type]:null!=t[s]?t[s]:void 0}return{type:r.type,class:r.class,duration:i,durationUnit:o,singleUnit:s,options:Se({},qn,r.defaults,t.dirDefaults,t.localeDefaults,t.overrides,a,r.overrides,t.dynamicOverrides),buttonTextOverride:u(t.dynamicOverrides)||u(t.overrides)||r.overrides.buttonText,buttonTextDefault:u(t.localeDefaults)||u(t.dirDefaults)||r.defaults.buttonText||u(qn)||r.type}}(e,r,t)})}var Pr,Nr=(ye(Ar,Pr=Rn),Ar.prototype.destroy=function(){Pr.prototype.destroy.call(this),this._renderLayout.unrender(),r(this.el)},Ar.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},Ar.prototype.renderLayout=function(e){var t=this.el;this.viewsWithButtons=[],_(t,this.renderSection("left",e.left)),_(t,this.renderSection("center",e.center)),_(t,this.renderSection("right",e.right))},Ar.prototype.unrenderLayout=function(){this.el.innerHTML=""},Ar.prototype.renderSection=function(e,t){var f=this,n=this.context,p=n.theme,g=n.calendar,r=g.optionsManager,m=g.viewSpecs,i=s("div",{className:"fc-"+e}),v=r.computed.customButtons||{},y=r.overrides.buttonText||{},S=r.computed.buttonText||{};return t&&t.split(" ").forEach(function(e,t){var n,d=[],h=!0;if(e.split(",").forEach(function(e,t){var n,r,i,o,s,a,l,u,c;"title"===e?(d.push(w("<h2>&nbsp;</h2>")),h=!1):((n=v[e])?(i=function(e){n.click&&n.click.call(u,e)},(o=p.getCustomButtonIconClass(n))||(o=p.getIconClass(e))||(s=n.text)):(r=m[e])?(f.viewsWithButtons.push(e),i=function(){g.changeView(e)},(s=r.buttonTextOverride)||(o=p.getIconClass(e))||(s=r.buttonTextDefault)):g[e]&&(i=function(){g[e]()},(s=y[e])||(o=p.getIconClass(e))||(s=S[e])),i&&(l=["fc-"+e+"-button",p.getClass("button")],s?(a=Pt(s),c=""):o&&(a="<span class='"+o+"'></span>",c=' aria-label="'+e+'"'),(u=w('<button type="button" class="'+l.join(" ")+'"'+c+">"+a+"</button>")).addEventListener("click",i),d.push(u)))}),1<d.length){n=document.createElement("div");var r=p.getClass("buttonGroup");h&&r&&n.classList.add(r),_(n,d),i.appendChild(n)}else _(i,d)}),i},Ar.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},Ar.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},Ar.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},Ar.prototype.updateTitle=function(t){h(this.el,"h2").forEach(function(e){e.innerText=t})},Ar.prototype.updateActiveButton=function(t){var n=this.context.theme.getClass("buttonActive");h(this.el,"button").forEach(function(e){t&&e.classList.contains("fc-"+t+"-button")?e.classList.add(n):e.classList.remove(n)})},Ar.prototype.toggleButtonEnabled=function(e,t){h(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},Ar);function Ar(e){var t=Pr.call(this)||this;return t._renderLayout=Qt(t.renderLayout,t.unrenderLayout),t._updateTitle=Qt(t.updateTitle,null,[t._renderLayout]),t._updateActiveButton=Qt(t.updateActiveButton,null,[t._renderLayout]),t._updateToday=Qt(t.updateToday,null,[t._renderLayout]),t._updatePrev=Qt(t.updatePrev,null,[t._renderLayout]),t._updateNext=Qt(t.updateNext,null,[t._renderLayout]),t.el=s("div",{className:"fc-toolbar "+e}),t}var Hr,Lr=(ye(jr,Hr=Rn),jr.prototype.render=function(e,t){this.freezeHeight();var n=this.computeTitle(e.dateProfile,e.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,n),this.renderView(e,n),this.updateSize(),this.thawHeight()},jr.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),Hr.prototype.destroy.call(this)},jr.prototype._renderSkeleton=function(e){this.updateElClassNames(e),v(this.el,this.contentEl=s("div",{className:"fc-view-container"}));for(var t=e.calendar,n=0,r=t.pluginSystem.hooks.viewContainerModifiers;n<r.length;n++)(0,r[n])(this.contentEl,t)},jr.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),r(this.contentEl),this.removeElClassNames()},jr.prototype.removeElClassNames=function(){for(var e=this.el.classList,t=0,n=this.elClassNames;t<n.length;t++){var r=n[t];e.remove(r)}this.elClassNames=[]},jr.prototype.updateElClassNames=function(e){this.removeElClassNames();var t=e.theme,n=e.options;this.elClassNames=["fc","fc-"+n.dir,t.getClass("widget")];for(var r=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){var s=o[i];r.add(s)}},jr.prototype._renderToolbars=function(e,t,n,r){var i=this.context,o=this.header,s=this.footer,a=i.options,l=i.calendar,u=a.header,c=a.footer,d=this.props.dateProfileGenerator,h=l.getNow(),f=d.build(h),p=d.buildPrev(t,n),g=d.buildNext(t,n),m={title:r,activeButton:e.type,isTodayEnabled:f.isValid&&!Fe(t.currentRange,h),isPrevEnabled:p.isValid,isNextEnabled:g.isValid};u?(o||(o=this.header=new Nr("fc-header-toolbar"),v(this.el,o.el)),o.receiveProps(Se({layout:u},m),i)):o&&(o.destroy(),o=this.header=null),c?(s||(s=this.footer=new Nr("fc-footer-toolbar"),_(this.el,s.el)),s.receiveProps(Se({layout:c},m),i)):s&&(s.destroy(),s=this.footer=null)},jr.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},jr.prototype.renderView=function(e,t){var n=this.view,r=this.context,i=r.calendar,o=r.options,s=e.viewSpec,a=e.dateProfileGenerator;n&&n.viewSpec===s||(n&&n.destroy(),n=this.view=new s.class(s,this.contentEl),this.savedScroll&&(n.addScroll(this.savedScroll,!0),this.savedScroll=null)),n.title=t;for(var l={dateProfileGenerator:a,dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(s.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},u=0,c=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers);u<c.length;u++){var d=c[u];Se(l,d.transform(l,s,e,o))}n.receiveProps(l,this.buildComponentContext(this.context,s,n))},jr.prototype.updateSize=function(e){void 0===e&&(e=!1);var t=this.view;t&&(!e&&null!=this.isHeightAuto||this.computeHeightVars(),t.updateSize(e,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(e))},jr.prototype.computeHeightVars=function(){var e=this.context.calendar,t=e.opt("height"),n=e.opt("contentHeight");if(this.isHeightAuto="auto"===t||"auto"===n,"number"==typeof n)this.viewHeight=n;else if("function"==typeof n)this.viewHeight=n();else if("number"==typeof t)this.viewHeight=t-this.queryToolbarsHeight();else if("function"==typeof t)this.viewHeight=t()-this.queryToolbarsHeight();else if("parent"===t){var r=this.el.parentNode;this.viewHeight=r.getBoundingClientRect().height-this.queryToolbarsHeight()}else this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(e.opt("aspectRatio"),.5))},jr.prototype.queryToolbarsHeight=function(){var e=0;return this.header&&(e+=C(this.header.el)),this.footer&&(e+=C(this.footer.el)),e},jr.prototype.freezeHeight=function(){p(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},jr.prototype.thawHeight=function(){p(this.el,{height:"",overflow:""})},jr);function jr(e){var t=Hr.call(this)||this;return t.elClassNames=[],t.renderSkeleton=Qt(t._renderSkeleton,t._unrenderSkeleton),t.renderToolbars=Qt(t._renderToolbars,t._unrenderToolbars,[t.renderSkeleton]),t.buildComponentContext=Ye(zr),t.buildViewPropTransformers=Ye(Fr),t.el=e,t.computeTitle=Ye(Wr),t.parseBusinessHours=Ye(function(e){return $t(e,t.context.calendar)}),t}function Wr(e,t){var n;return n=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,this.context.dateEnv.formatRange(n.start,n.end,ot(t.titleFormat||function(e){var t=e.currentRangeUnit;{if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=j(e.currentRange.start,e.currentRange.end);return null!==n&&1<n?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function zr(e,t,n){return e.extend(t.options,n)}function Fr(e){return e.map(function(e){return new e})}var Ur=(Yr.prototype.destroy=function(){},Yr);function Yr(e){this.component=e.component}var Br,Vr={},Gr=(ye(qr,Br=Ur),qr);function qr(e){var u=Br.call(this,e)||this;u.handleSegClick=function(e,t){var n=u.component,r=n.context,i=r.calendar,o=r.view,s=gt(t);if(s&&n.isValidSegDownEl(e.target)){var a=c(e.target,".fc-has-url"),l=a?a.querySelector("a[href]").href:"";i.publiclyTrigger("eventClick",[{el:t,event:new dt(n.context.calendar,s.eventRange.def,s.eventRange.instance),jsEvent:e,view:o}]),l&&!e.defaultPrevented&&(window.location.href=l)}};var t=e.component;return u.destroy=R(t.el,"click",t.fgSegSelector+","+t.bgSegSelector,u.handleSegClick),u}var Zr,$r=(ye(Qr,Zr=Ur),Qr.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},Qr.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,o=i.calendar,s=i.view,a=gt(n);t&&!r.isValidSegDownEl(t.target)||o.publiclyTrigger(e,[{el:n,event:new dt(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:s}])},Qr);function Qr(e){var n=Zr.call(this,e)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){gt(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var t,r,i,o,s,a=e.component;return n.removeHoverListeners=(t=a.el,r=a.fgSegSelector+","+a.bgSegSelector,i=n.handleSegEnter,o=n.handleSegLeave,R(t,"mouseover",r,function(e,t){if(t!==s){i(e,s=t);var n=function(e){s=null,o(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}})),a.context.calendar.on("eventElRemove",n.handleEventElRemove),n}var Kr,Xr=(ye(Jr,Kr=Tn),Jr);function Jr(){return null!==Kr&&Kr.apply(this,arguments)||this}Xr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Xr.prototype.baseIconClass="fc-icon",Xr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Xr.prototype.iconOverrideOption="buttonIcons",Xr.prototype.iconOverrideCustomButtonOption="icon",Xr.prototype.iconOverridePrefix="fc-icon-";var ei=(ti.prototype.addPluginInputs=function(e){for(var t=0,n=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];if("string"==typeof i){var o="FullCalendar"+ae(i);window[o]?t.push(window[o].default):console.warn("Plugin file not loaded for "+i)}else t.push(i)}return Qn.concat(t)}(e);t<n.length;t++){var r=n[t];this.pluginSystem.add(r)}},Object.defineProperty(ti.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),ti.prototype.render=function(){this.component?this.requestRerender():(this.component=new Lr(this.el),this.renderableEventStore=Oe(),this.bindHandlers(),this.executeRender())},ti.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var e=0,t=this.calendarInteractions;e<t.length;e++)t[e].destroy();this.publiclyTrigger("_destroyed")}},ti.prototype.bindHandlers=function(){var a=this;this.removeNavLinkListener=R(this.el,"click","a[data-goto]",function(e,t){var n=t.getAttribute("data-goto");n=n?JSON.parse(n):{};var r=a.dateEnv,i=r.createMarker(n.date),o=n.type,s=a.viewOpt("navLink"+ae(o)+"Click");"function"==typeof s?s(r.toDate(i),e):("string"==typeof s&&(o=s),a.zoomTo(i,o))}),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=he(this.windowResize.bind(this),this.opt("windowResizeDelay")))},ti.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},ti.prototype.hydrate=function(){var e=this;this.state=this.buildInitialState();var t=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&t.unshift(n);for(var i=0,o=t;i<o.length;i++){var s=pr(o[i],this);s&&r.push(s)}this.batchRendering(function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),e.dispatch({type:"SET_VIEW_TYPE",viewType:e.opt("defaultView")||e.pluginSystem.hooks.defaultView})})},ti.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:Oe(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},ti.prototype.dispatch=function(e){if(this.actionQueue.push(e),!this.isReducing){this.isReducing=!0;for(var t=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var n=this.state;this.isReducing=!1,!t.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);var r=this.component&&this.component.view;t.eventStore!==n.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==n.dateProfile&&(t.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),t.viewType!==n.viewType&&(t.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},ti.prototype.reduce=function(e,t,n){return Er(e,t,n)},ti.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},ti.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},ti.prototype.batchRendering=function(e){this.renderingPauseDepth++,e(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},ti.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},ti.prototype.renderComponent=function(){var e=this.state,t=this.component,n=e.viewType,r=this.viewSpecs[n];if(!r)throw new Error('View type "'+n+'" is not valid');var i=this.renderableEventStore=e.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:e.eventStore,o=this.buildEventUiSingleBase(r.options),s=this.buildEventUiBySource(e.eventSources),a=this.eventUiBases=this.buildEventUiBases(i.defs,o,s);t.receiveProps(Se({},e,{viewSpec:r,dateProfileGenerator:this.dateProfileGenerators[n],dateProfile:e.dateProfile,eventStore:i,eventUiBases:a,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:t.view,el:t.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:t.view,el:t.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},ti.prototype.setOption=function(e,t){var n;this.mutateOptions(((n={})[e]=t,n),[],!0)},ti.prototype.getOption=function(e){return this.optionsManager.computed[e]},ti.prototype.opt=function(e){return this.optionsManager.computed[e]},ti.prototype.viewOpt=function(e){return this.viewOpts()[e]},ti.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},ti.prototype.mutateOptions=function(e,t,n,r){var i=this,o=this.pluginSystem.hooks.optionChangeHandlers,s={},a={},l=this.dateEnv,u=!1,c=!1,d=Boolean(t.length);for(var h in e)o[h]?a[h]=e[h]:s[h]=e[h];for(var f in s)/^(height|contentHeight|aspectRatio)$/.test(f)?c=!0:/^(defaultDate|defaultView)$/.test(f)||(d=!0,"timeZone"===f&&(u=!0));this.optionsManager.mutate(s,t,n),d&&this.handleOptions(this.optionsManager.computed),this.batchRendering(function(){if(d?(u&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:l}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):c&&i.updateSize(),r)for(var e in a)o[e](a[e],i,r)})},ti.prototype.handleOptions=function(e){var t=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=$(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=$(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);var r=this.parseRawLocales(e.locales);this.availableRawLocales=r.map;var i=this.buildLocale(e.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,n.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=Or(n.views,this.optionsManager),this.dateProfileGenerators=Ee(this.viewSpecs,function(e){return new e.class.prototype.dateProfileGeneratorClass(e,t)})},ti.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},ti.prototype._buildSelectionConfig=function(e){return jt("select",e,this)},ti.prototype._buildEventUiSingleBase=function(e){return e.editable&&(e=Se({},e,{eventEditable:!0})),jt("event",e,this)},ti.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},ti.prototype.publiclyTrigger=function(e,t){var n=this.opt(e);if(this.triggerWith(e,this,t),n)return n.apply(this,t)},ti.prototype.publiclyTriggerAfterSizing=function(e,t){var n=this.afterSizingTriggers;(n[e]||(n[e]=[])).push(t)},ti.prototype.releaseAfterSizingTriggers=function(){var e=this.afterSizingTriggers;for(var t in e)for(var n=0,r=e[t];n<r.length;n++){var i=r[n];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},ti.prototype.isValidViewType=function(e){return Boolean(this.viewSpecs[e])},ti.prototype.changeView=function(e,t){var n=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:n})},ti.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},ti.prototype.getUnitViewSpec=function(e){var t,n,r=this.component,i=[];for(var o in r.header&&i.push.apply(i,r.header.viewsWithButtons),r.footer&&i.push.apply(i,r.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(t=0;t<i.length;t++)if((n=this.viewSpecs[i[t]])&&n.singleUnit===e)return n},ti.prototype.getInitialDate=function(){var e=this.opt("defaultDate");return null!=e?this.dateEnv.createMarker(e):this.getNow()},ti.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},ti.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},ti.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},ti.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},ti.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},ti.prototype.gotoDate=function(e){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(e)})},ti.prototype.incrementDate=function(e){var t=$(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},ti.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},ti.prototype.formatDate=function(e,t){var n=this.dateEnv;return n.format(n.createMarker(e),ot(t))},ti.prototype.formatRange=function(e,t,n){var r=this.dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),ot(n,this.opt("defaultRangeSeparator")),n)},ti.prototype.formatIso=function(e,t){var n=this.dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},ti.prototype.windowResize=function(e){!this.isHandlingWindowResize&&this.component&&e.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},ti.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},ti.prototype.registerInteractiveComponent=function(e,t){var n,r={component:e,el:(n=t).el,useEventCenter:null==n.useEventCenter||n.useEventCenter},i=[Gr,$r].concat(this.pluginSystem.hooks.componentInteractions).map(function(e){return new e(r)});this.interactionsStore[e.uid]=i,Vr[e.uid]=r},ti.prototype.unregisterInteractiveComponent=function(e){for(var t=0,n=this.interactionsStore[e.uid];t<n.length;t++)n[t].destroy();delete this.interactionsStore[e.uid],delete Vr[e.uid]},ti.prototype.select=function(e,t){var n=Cr(null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t},this.dateEnv,$({days:1}));n&&(this.dispatch({type:"SELECT_DATES",selection:n}),this.triggerDateSelect(n))},ti.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},ti.prototype.triggerDateSelect=function(e,t){var n=Se({},this.buildDateSpanApi(e),{jsEvent:t?t.origEvent:null,view:this.view});this.publiclyTrigger("select",[n])},ti.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},ti.prototype.triggerDateClick=function(e,t,n,r){var i=Se({},this.buildDatePointApi(e),{dayEl:t,jsEvent:r,view:n});this.publiclyTrigger("dateClick",[i])},ti.prototype.buildDatePointApi=function(e){for(var t,n,r={},i=0,o=this.pluginSystem.hooks.datePointTransforms;i<o.length;i++){var s=o[i];Se(r,s(e,this))}return Se(r,(t=e,{date:(n=this.dateEnv).toDate(t.range.start),dateStr:n.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay})),r},ti.prototype.buildDateSpanApi=function(e){for(var t,n,r={},i=0,o=this.pluginSystem.hooks.dateSpanTransforms;i<o.length;i++){var s=o[i];Se(r,s(e,this))}return Se(r,(t=e,{start:(n=this.dateEnv).toDate(t.range.start),end:n.toDate(t.range.end),startStr:n.formatIso(t.range.start,{omitTime:t.allDay}),endStr:n.formatIso(t.range.end,{omitTime:t.allDay}),allDay:t.allDay})),r},ti.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},ti.prototype.getDefaultEventEnd=function(e,t){var n=t;return n=e?(n=W(n),this.dateEnv.add(n,this.defaultAllDayEventDuration)):this.dateEnv.add(n,this.defaultTimedEventDuration)},ti.prototype.addEvent=function(e,t){if(e instanceof dt){var n=e._def,r=e._instance;return this.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:ke({def:n,instance:r})}),e}var i;if(t instanceof ut)i=t.internalEventSource.sourceId;else if(null!=t){var o=this.getEventSourceById(t);if(!o)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}var s=Vt(e,i,this);return s?(this.dispatch({type:"ADD_EVENTS",eventStore:ke(s)}),new dt(this,s.def,s.def.recurringDef?null:s.instance)):null},ti.prototype.getEventById=function(e){var t=this.state.eventStore,n=t.defs,r=t.instances;for(var i in e=String(e),n){var o=n[i];if(o.publicId===e){if(o.recurringDef)return new dt(this,o,null);for(var s in r){var a=r[s];if(a.defId===o.defId)return new dt(this,o,a)}}}return null},ti.prototype.getEvents=function(){var e=this.state.eventStore,t=e.defs,n=e.instances,r=[];for(var i in n){var o=n[i],s=t[o.defId];r.push(new dt(this,s,o))}return r},ti.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},ti.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},ti.prototype.getEventSources=function(){var e=this.state.eventSources,t=[];for(var n in e)t.push(new ut(this,e[n]));return t},ti.prototype.getEventSourceById=function(e){var t=this.state.eventSources;for(var n in e=String(e),t)if(t[n].publicId===e)return new ut(this,t[n]);return null},ti.prototype.addEventSource=function(e){if(e instanceof ut)return this.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var t=pr(e,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new ut(this,t)):null},ti.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},ti.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},ti.prototype.scrollToTime=function(e){var t=$(e);t&&this.component.view.scrollToDuration(t)},ti);function ti(e,t){var n=this;this.buildComponentContext=Ye(ni),this.parseRawLocales=Ye(Xn),this.buildLocale=Ye(Jn),this.buildDateEnv=Ye(ri),this.buildTheme=Ye(ii),this.buildEventUiSingleBase=Ye(this._buildEventUiSingleBase),this.buildSelectionConfig=Ye(this._buildSelectionConfig),this.buildEventUiBySource=Be(si,Ce),this.buildEventUiBases=Ye(ai),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=Ye(oi),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new tr(t||{}),this.pluginSystem=new Ln,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){return new e(n)})}function ni(e,t,n){return new kn(this,e,t,n,null)}function ri(e,t,n,r,i,o,s){return new ur({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:n,locale:e,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:s})}function ii(e){return new(this.pluginSystem.hooks.themeClasses[e.themeSystem]||Xr)(e)}function oi(e){var t=this.tryRerender.bind(this);return null!=e&&(t=he(t,e)),t}function si(e){return Ee(e,function(e){return e.ui})}function ai(e,t,n){var r={"":t};for(var i in e){var o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}ln.mixInto(ei);var li,ui=(ye(ci,li=Pn),ci.prototype.initialize=function(){},Object.defineProperty(ci.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"currentEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),ci.prototype.render=function(e,t){this.renderDatesMem(e.dateProfile),this.renderBusinessHoursMem(e.businessHours),this.renderDateSelectionMem(e.dateSelection),this.renderEventsMem(e.eventStore),this.renderEventSelectionMem(e.eventSelection),this.renderEventDragMem(e.eventDrag),this.renderEventResizeMem(e.eventResize)},ci.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},ci.prototype.destroy=function(){li.prototype.destroy.call(this),this.renderDatesMem.unrender()},ci.prototype.updateSize=function(e,t,n){var r=this.context.calendar;e&&this.addScroll(this.queryScroll()),(e||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(e,t,n)},ci.prototype.updateBaseSize=function(e,t,n){},ci.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({duration:$(this.context.options.scrollTime)})},ci.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},ci.prototype.renderDates=function(e){},ci.prototype.unrenderDates=function(){},ci.prototype.renderBusinessHours=function(e){},ci.prototype.unrenderBusinessHours=function(){},ci.prototype.renderDateSelectionWrap=function(e){e&&this.renderDateSelection(e)},ci.prototype.unrenderDateSelectionWrap=function(e){e&&this.unrenderDateSelection(e)},ci.prototype.renderDateSelection=function(e){},ci.prototype.unrenderDateSelection=function(e){},ci.prototype.renderEvents=function(e){},ci.prototype.unrenderEvents=function(){},ci.prototype.sliceEvents=function(e,t){var n=this.props;return ft(e,n.eventUiBases,n.dateProfile.activeRange,t?this.context.nextDayThreshold:null).fg},ci.prototype.renderEventSelectionWrap=function(e){e&&this.renderEventSelection(e)},ci.prototype.unrenderEventSelectionWrap=function(e){e&&this.unrenderEventSelection(e)},ci.prototype.renderEventSelection=function(e){},ci.prototype.unrenderEventSelection=function(e){},ci.prototype.renderEventDragWrap=function(e){e&&this.renderEventDrag(e)},ci.prototype.unrenderEventDragWrap=function(e){e&&this.unrenderEventDrag(e)},ci.prototype.renderEventDrag=function(e){},ci.prototype.unrenderEventDrag=function(e){},ci.prototype.renderEventResizeWrap=function(e){e&&this.renderEventResize(e)},ci.prototype.unrenderEventResizeWrap=function(e){e&&this.unrenderEventResize(e)},ci.prototype.renderEventResize=function(e){},ci.prototype.unrenderEventResize=function(e){},ci.prototype.startNowIndicator=function(e,t){var n,r,i,o=this,s=this.context,a=s.calendar,l=s.dateEnv;s.options.nowIndicator&&!this.initialNowDate&&(n=this.getNowIndicatorUnit(e,t))&&(r=this.updateNowIndicator.bind(this),this.initialNowDate=a.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=l.add(l.startOf(this.initialNowDate,n),$(1,n)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){o.nowIndicatorTimeoutID=null,r(),i="second"===n?1e3:6e4,o.nowIndicatorIntervalID=setInterval(r,i)},i))},ci.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(N(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},ci.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},ci.prototype.getNowIndicatorUnit=function(e,t){},ci.prototype.renderNowIndicator=function(e){},ci.prototype.unrenderNowIndicator=function(){},ci.prototype.addScroll=function(e,t){t&&(e.isForced=t),Se(this.queuedScroll||(this.queuedScroll={}),e)},ci.prototype.popScroll=function(e){this.applyQueuedScroll(e),this.queuedScroll=null},ci.prototype.applyQueuedScroll=function(e){this.queuedScroll&&this.applyScroll(this.queuedScroll,e)},ci.prototype.queryScroll=function(){var e={};return this.props.dateProfile&&Se(e,this.queryDateScroll()),e},ci.prototype.applyScroll=function(e,t){var n=e.duration,r=e.isForced;null==n||r||(delete e.duration,this.props.dateProfile&&Se(e,this.computeDateScroll(n))),this.props.dateProfile&&this.applyDateScroll(e)},ci.prototype.computeDateScroll=function(e){return{}},ci.prototype.queryDateScroll=function(){return{}},ci.prototype.applyDateScroll=function(e){},ci.prototype.scrollToDuration=function(e){this.applyScroll({duration:e},!1)},ci);function ci(e,t){var n=li.call(this,s("div",{className:"fc-view fc-"+e.type+"-view"}))||this;return n.renderDatesMem=Qt(n.renderDatesWrap,n.unrenderDatesWrap),n.renderBusinessHoursMem=Qt(n.renderBusinessHours,n.unrenderBusinessHours,[n.renderDatesMem]),n.renderDateSelectionMem=Qt(n.renderDateSelectionWrap,n.unrenderDateSelectionWrap,[n.renderDatesMem]),n.renderEventsMem=Qt(n.renderEvents,n.unrenderEvents,[n.renderDatesMem]),n.renderEventSelectionMem=Qt(n.renderEventSelectionWrap,n.unrenderEventSelectionWrap,[n.renderEventsMem]),n.renderEventDragMem=Qt(n.renderEventDragWrap,n.unrenderEventDragWrap,[n.renderDatesMem]),n.renderEventResizeMem=Qt(n.renderEventResizeWrap,n.unrenderEventResizeWrap,[n.renderDatesMem]),n.viewSpec=e,n.type=e.type,t.appendChild(n.el),n.initialize(),n}ln.mixInto(ui),ui.prototype.usesMinMaxTime=!1,ui.prototype.dateProfileGeneratorClass=_r;var di=(hi.prototype.renderSegs=function(e,t,n){this.context=e,this.rangeUpdated(),t=this.renderSegEls(t,n),this.segs=t,this.attachSegs(t,n),this.isSizeDirty=!0,yt(this.context,this.segs,Boolean(n))},hi.prototype.unrender=function(e,t,n){St(this.context,this.segs,Boolean(n)),this.detachSegs(this.segs),this.segs=[]},hi.prototype.rangeUpdated=function(){var e,t,n=this.context.options;this.eventTimeFormat=ot(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),null==(e=n.displayEventTime)&&(e=this.computeDisplayEventTime()),null==(t=n.displayEventEnd)&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},hi.prototype.renderSegEls=function(r,e){var t,n="";if(r.length){for(t=0;t<r.length;t++)n+=this.renderSegHtml(r[t],e);a(n).forEach(function(e,t){var n=r[t];e&&(n.el=e)}),r=pt(this.context,r,Boolean(e))}return r},hi.prototype.getSegClasses=function(e,t,n,r){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},hi.prototype.getTimeText=function(e,t,n){var r=e.def,i=e.instance;return this._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,t,n,i.forcedStartTzo,i.forcedEndTzo)},hi.prototype._getTimeText=function(e,t,n,r,i,o,s){var a=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?a.formatRange(e,t,r,{forcedStartTzo:o,forcedEndTzo:s}):a.format(e,r,{forcedTzo:o}):""},hi.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},hi.prototype.computeDisplayEventTime=function(){return!0},hi.prototype.computeDisplayEventEnd=function(){return!0},hi.prototype.getSkinCss=function(e){return{"background-color":e.backgroundColor,"border-color":e.borderColor,color:e.textColor}},hi.prototype.sortEventSegs=function(e){var n=this.context.eventOrderSpecs,t=e.map(fi);return t.sort(function(e,t){return ie(e,t,n)}),t.map(function(e){return e._seg})},hi.prototype.computeSizes=function(e){(e||this.isSizeDirty)&&this.computeSegSizes(this.segs)},hi.prototype.assignSizes=function(e){(e||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},hi.prototype.computeSegSizes=function(e){},hi.prototype.assignSegSizes=function(e){},hi.prototype.hideByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},hi.prototype.showByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},hi.prototype.selectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t],i=r.eventRange.instance;i&&i.instanceId===e&&r.el&&r.el.classList.add("fc-selected")}},hi.prototype.unselectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];r.el&&r.el.classList.remove("fc-selected")}},hi);function hi(){this.segs=[],this.isSizeDirty=!1}function fi(e){var t=e.eventRange.def,n=e.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;return Se({},t.extendedProps,t,{id:t.publicId,start:r,end:i,duration:i-r,allDay:Number(t.allDay),_seg:e})}var pi=(gi.prototype.getSegsByType=function(e){return this.segsByType[e]||[]},gi.prototype.renderSegs=function(e,t,n){var r;this.context=t;var i=this.renderSegEls(e,n),o=this.attachSegs(e,i);o&&(r=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(r,o),this.segsByType[e]=i,"bgEvent"===e&&yt(t,i,!1),this.dirtySizeFlags[e]=!0},gi.prototype.unrender=function(e,t){var n=this.segsByType[e];n&&("bgEvent"===e&&St(t,n,!1),this.detachSegs(e,n))},gi.prototype.renderSegEls=function(e,r){var t,n=this,i="";if(r.length){for(t=0;t<r.length;t++)i+=this.renderSegHtml(e,r[t]);a(i).forEach(function(e,t){var n=r[t];e&&(n.el=e)}),"bgEvent"===e&&(r=pt(this.context,r,!1)),r=r.filter(function(e){return d(e.el,n.fillSegTag)})}return r},gi.prototype.renderSegHtml=function(e,t){var n=null,r=[];return"highlight"!==e&&"businessHours"!==e&&(n={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(r=r.concat(t.eventRange.ui.classNames)),"businessHours"===e?r.push("fc-bgevent"):r.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(n?' style="'+Nt(n)+'"':"")+"></"+this.fillSegTag+">"},gi.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(r),delete this.containerElsByType[e])},gi.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},gi.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},gi.prototype.computeSegSizes=function(e){},gi.prototype.assignSegSizes=function(e){},gi);function gi(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}function mi(e){this.timeZoneName=e}var vi=(yi.prototype.destroy=function(){},yi.prototype.setMirrorIsVisible=function(e){},yi.prototype.setMirrorNeedsRevert=function(e){},yi.prototype.setAutoScrollEnabled=function(e){},yi);function yi(e){this.emitter=new ln}function Si(e){var t=Jn(e.locale||"en",Xn([]).map);return e=Se({timeZone:qn.timeZone,calendarSystem:"gregory"},e,{locale:t}),new ur(e)}var wi={startTime:$,duration:$,create:Boolean,sourceId:String},_i={create:!0};function bi(e,t){return!e||10<t?{weekday:"short"}:1<t?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function Ei(e,t,n,r,i,o,s,a){var l,u=o.dateEnv,c=o.theme,d=o.options,h=Fe(t.activeRange,e),f=["fc-day-header",c.getClass("widgetHeader")];return l="function"==typeof d.columnHeaderHtml?d.columnHeaderHtml(u.toDate(e)):"function"==typeof d.columnHeaderText?Pt(d.columnHeaderText(u.toDate(e))):Pt(u.format(e,i)),n?f=f.concat(nn(e,t,o,!0)):f.push("fc-"+O[e.getUTCDay()]),'<th class="'+f.join(" ")+'"'+(h&&n?' data-date="'+u.formatIso(e,{omitTime:!0})+'"':"")+(1<s?' colspan="'+s+'"':"")+(a?" "+a:"")+">"+(h?tn(d,u,{date:e,forceOff:!n||1===r},l):l)+"</th>"}var Di,Ti=(ye(Ci,Di=Rn),Ci.prototype.render=function(e,t){var n=e.dates,r=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(var o=ot(t.options.columnHeaderFormat||bi(r,n.length)),s=0,a=n;s<a.length;s++){var l=a[s];i.push(Ei(l,e.dateProfile,r,n.length,o,t))}t.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"</tr>"},Ci.prototype.destroy=function(){Di.prototype.destroy.call(this),this.renderSkeleton.unrender()},Ci.prototype._renderSkeleton=function(e){var t=e.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=w('<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead></thead></table></div>')),this.thead=this.el.querySelector("thead")},Ci.prototype._unrenderSkeleton=function(){r(this.el)},Ci);function Ci(e){var t=Di.call(this)||this;return t.renderSkeleton=Qt(t._renderSkeleton,t._unrenderSkeleton),t.parentEl=e,t}var xi=(ki.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(P(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},ki.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(A(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},ki);function ki(e,t){for(var n=e.start,r=e.end,i=[],o=[],s=-1;n<r;)t.isHiddenDay(n)?i.push(s+.5):(s++,i.push(s),o.push(n)),n=P(n,1);this.dates=o,this.indices=i,this.cnt=o.length}var Ii=(Ri.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t++){for(var n=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(t,r));e.push(n)}return e},Ri.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},Ri.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t++)e.push(this.cells[0][t].date);return e},Ri.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,o=n.lastIndex,s=i;s<=o;){var a=Math.floor(s/t),l=Math.min((a+1)*t,o+1);r.push({row:a,firstCol:s%t,lastCol:(l-1)%t,isStart:n.isStart&&s===i,isEnd:n.isEnd&&l-1===o}),s=l}return r},Ri);function Ri(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n++);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}var Mi=(Oi.prototype.sliceProps=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];var a=e.eventUiBases,l=this.sliceEventStore.apply(this,[e.eventStore,a,t,n,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,a,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r,i].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,a,t,n,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,a,t,n,i].concat(o)),eventSelection:e.eventSelection}},Oi.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,[{range:{start:e,end:N(e,1)},allDay:!1},{},t].concat(n))},Oi.prototype._sliceBusinessHours=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];return e?this._sliceEventStore.apply(this,[Ie(e,Pi(t,Boolean(n)),r),{},t,n,i].concat(o)).bg:[]},Oi.prototype._sliceEventStore=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(e){var a=ft(e,t,Pi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i,o),fg:this.sliceEventRanges(a.fg,i,o)}}return{bg:[],fg:[]}},Oi.prototype._sliceInteraction=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(!e)return null;var a=ft(e.mutatedEvents,t,Pi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},Oi.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var o,s,a,l,u=(o=e,s=t,a=n.context.calendar,{def:l=Gt({editable:!1},"",o.allDay,!0,a),ui:vt(l,s),instance:qt(l.defId,o.range),range:o.range,isStart:!0,isEnd:!0}),c=this.sliceRange.apply(this,[e.range].concat(r)),d=0,h=c;d<h.length;d++){var f=h[d];f.component=n,f.eventRange=u}return c},Oi.prototype.sliceEventRanges=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var s=o[i];r.push.apply(r,this.sliceEventRange(s,t,n))}return r},Oi.prototype.sliceEventRange=function(e,t,n){for(var r=this.sliceRange.apply(this,[e.range].concat(n)),i=0,o=r;i<o.length;i++){var s=o[i];s.component=t,s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return r},Oi);function Oi(){this.sliceBusinessHours=Ye(this._sliceBusinessHours),this.sliceDateSelection=Ye(this._sliceDateSpan),this.sliceEventStore=Ye(this._sliceEventStore),this.sliceEventDrag=Ye(this._sliceInteraction),this.sliceEventResize=Ye(this._sliceInteraction)}function Pi(e,t){var n=e.activeRange;return t?n:{start:N(n.start,e.minTime.milliseconds),end:N(n.end,e.maxTime.milliseconds-864e5)}}e.Calendar=ei,e.Component=Rn,e.ComponentContext=kn,e.DateComponent=Pn,e.DateEnv=ur,e.DateProfileGenerator=_r,e.DayHeader=Ti,e.DaySeries=xi,e.DayTable=Ii,e.ElementDragging=vi,e.ElementScrollController=vn,e.EmitterMixin=ln,e.EventApi=dt,e.FgEventRenderer=di,e.FillRenderer=pi,e.Interaction=Ur,e.Mixin=on,e.NamedTimeZoneImpl=mi,e.PositionCache=hn,e.ScrollComponent=En,e.ScrollController=pn,e.Slicer=Mi,e.Splitter=Xt,e.Theme=Tn,e.View=ui,e.WindowScrollController=wn,e.addDays=P,e.addDurations=function(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}},e.addMs=N,e.addWeeks=function(e,t){var n=Y(e);return n[2]+=7*t,B(n)},e.allowContextMenu=function(e){e.removeEventListener("contextmenu",I)},e.allowSelection=function(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",I)},e.appendToElement=_,e.applyAll=ce,e.applyMutationToEventStore=wt,e.applyStyle=p,e.applyStyleProp=g,e.asRoughMinutes=function(e){return ee(e)/6e4},e.asRoughMs=ee,e.asRoughSeconds=function(e){return ee(e)/1e3},e.buildGotoAnchorHtml=tn,e.buildSegCompareObj=fi,e.capitaliseFirstLetter=ae,e.combineEventUis=zt,e.compareByFieldSpec=oe,e.compareByFieldSpecs=ie,e.compareNumbers=function(e,t){return e-t},e.compensateScroll=function(e,t){t.left&&p(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&p(e,{borderRightWidth:1,marginRight:t.right-1})},e.computeClippingRect=function(e){return k(e).map(function(e){return D(e)}).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce(function(e,t){return m(e,t)||t})},e.computeEdges=E,e.computeEventDraggable=function(e,t,n){for(var r=e.calendar,i=e.view,o=r.pluginSystem.hooks.isDraggableTransformers,s=n.startEditable,a=0,l=o;a<l.length;a++){s=(0,l[a])(s,t,n,i)}return s},e.computeEventEndResizable=function(e,t,n){return n.durationEditable},e.computeEventStartResizable=function(e,t,n){return n.durationEditable&&e.options.eventResizableFromStart},e.computeFallbackHeaderFormat=bi,e.computeHeightAndMargins=C,e.computeInnerRect=D,e.computeRect=T,e.computeVisibleDayRange=ge,e.config={},e.constrainPoint=function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}},e.createDuration=$,e.createElement=s,e.createEmptyEventStore=Oe,e.createEventInstance=qt,e.createFormatter=ot,e.createPlugin=Hn,e.cssToStr=Nt,e.debounce=he,e.diffDates=me,e.diffDayAndTime=H,e.diffDays=A,e.diffPoints=function(e,t){return{left:e.left-t.left,top:e.top-t.top}},e.diffWeeks=function(e,t){return A(e,t)/7},e.diffWholeDays=j,e.diffWholeWeeks=L,e.disableCursor=function(){document.body.classList.add("fc-not-allowed")},e.distributeHeight=function(o,e,t){var s=Math.floor(e/o.length),a=Math.floor(e-s*(o.length-1)),l=[],u=[],c=[],d=0;ne(o),o.forEach(function(e,t){var n=t===o.length-1?a:s,r=e.getBoundingClientRect().height,i=r+x(e);i<n?(l.push(e),u.push(i),c.push(r)):d+=i}),t&&(e-=d,s=Math.floor(e/l.length),a=Math.floor(e-s*(l.length-1))),l.forEach(function(e,t){var n=t===l.length-1?a:s,r=u[t],i=n-(r-c[t]);r<n&&(e.style.height=i+"px")})},e.elementClosest=c,e.elementMatches=d,e.enableCursor=function(){document.body.classList.remove("fc-not-allowed")},e.eventTupleToStore=ke,e.filterEventStoreDefs=Ne,e.filterHash=be,e.findChildren=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].children,s=0;s<o.length;s++){var a=o[s];t&&!d(a,t)||r.push(a)}return r},e.findElements=h,e.flexibleCompare=se,e.forceClassName=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.formatDate=function(e,t){void 0===t&&(t={});var n=Si(t),r=ot(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatIsoTimeString=function(e){return le(e.getUTCHours(),2)+":"+le(e.getUTCMinutes(),2)+":"+le(e.getUTCSeconds(),2)},e.formatRange=function(e,t,n){var r=Si("object"==typeof n&&n?n:{}),i=ot(n,qn.defaultRangeSeparator),o=r.createMarkerMeta(e),s=r.createMarkerMeta(t);return o&&s?r.formatRange(o.marker,s.marker,i,{forcedStartTzo:o.forcedTzo,forcedEndTzo:s.forcedTzo,isEndExclusive:n.isEndExclusive}):""},e.getAllDayHtml=function(e){return e.allDayHtml||Pt(e.allDayText)},e.getClippingParents=k,e.getDayClasses=nn,e.getElSeg=gt,e.getRectCenter=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}},e.getRelevantEvents=Re,e.globalDefaults=qn,e.greatestDurationDenominator=te,e.hasBgRendering=function(e){return"background"===e.rendering||"inverse-background"===e.rendering},e.htmlEscape=Pt,e.htmlToElement=w,e.insertAfterElement=function(e,t){for(var n=l(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)},e.interactionSettingsStore=Vr,e.interactionSettingsToStore=function(e){var t;return(t={})[e.component.uid]=e,t},e.intersectRanges=Le,e.intersectRects=m,e.isArraysEqual=Ue,e.isDateSpansEqual=function(e,t){return je(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)},e.isInt=ue,e.isInteractionValid=Ct,e.isMultiDayRange=function(e){var t=ge(e);return 1<A(t.start,t.end)},e.isPropsEqual=Ce,e.isPropsValid=kt,e.isSingleDay=function(e){return 0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds},e.isValidDate=V,e.listenBySelector=R,e.mapHash=Ee,e.matchCellWidths=function(e){var r=0;return e.forEach(function(e){var t=e.firstChild;if(t instanceof HTMLElement){var n=t.getBoundingClientRect().width;r<n&&(r=n)}}),r++,e.forEach(function(e){e.style.width=r+"px"}),r},e.memoize=Ye,e.memoizeOutput=Be,e.memoizeRendering=Qt,e.mergeEventStores=Pe,e.multiplyDuration=function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}},e.padStart=le,e.parseBusinessHours=$t,e.parseDragMeta=function(e){var t={},n=fe(e,wi,_i,t);return n.leftoverProps=t,n},e.parseEventDef=Gt,e.parseFieldSpecs=re,e.parseMarker=lr,e.pointInsideRect=function(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom},e.prependToElement=v,e.preventContextMenu=function(e){e.addEventListener("contextmenu",I)},e.preventDefault=I,e.preventSelection=function(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",I)},e.processScopedUiProps=jt,e.rangeContainsMarker=Fe,e.rangeContainsRange=ze,e.rangesEqual=je,e.rangesIntersect=We,e.refineProps=fe,e.removeElement=r,e.removeExact=function(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n++):r++;return n},e.renderDateCell=Ei,e.requestJson=Fn,e.sliceEventStore=ft,e.startOfDay=W,e.subtractInnerElHeight=function(e,t){var n={position:"relative",left:-1};p(e,n),p(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""};return p(e,i),p(t,i),r},e.translateRect=function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},e.uncompensateScroll=function(e){p(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})},e.undistributeHeight=ne,e.unpromisify=rn,e.version="4.4.0",e.whenTransitionDone=function(t,n){var r=function(e){n(e),M.forEach(function(e){t.removeEventListener(e,r)})};M.forEach(function(e){t.addEventListener(e,r)})},e.wholeDivideDurations=function(e,t){for(var n=null,r=0;r<q.length;r++){var i=q[r];if(t[i]){var o=e[i]/t[i];if(!ue(o)||null!==n&&n!==o)return null;n=o}else if(e[i])return null}return n},Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarGoogleCalendar={},e.FullCalendar)}(this,function(e,l){"use strict";var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n={url:String,googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,data:null},t={parseMeta:function(e){if("string"==typeof e&&(e={url:e}),"object"==typeof e){var t=l.refineProps(e,n);if(!t.googleCalendarId&&t.url&&(t.googleCalendarId=function(e){var t;{if(/^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(e))return e;if((t=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^\/]*)/.exec(e))||(t=/^https?:\/\/www.google.com\/calendar\/feeds\/([^\/]*)/.exec(e)))return decodeURIComponent(t[1])}}(t.url)),delete t.url,t.googleCalendarId)return t}return null},fetch:function(e,i,o){var t=e.calendar,n=e.eventSource.meta,r=n.googleCalendarApiKey||t.opt("googleCalendarApiKey");if(r){var s=function(e){var t=e.googleCalendarApiBase;t=t||"https://www.googleapis.com/calendar/v3/calendars";return t+"/"+encodeURIComponent(e.googleCalendarId)+"/events"}(n),a=function(e,t,n,r){var i,o,s;s=r.canComputeOffset?(o=r.formatIso(e.start),r.formatIso(e.end)):(o=l.addDays(e.start,-1).toISOString(),l.addDays(e.end,1).toISOString());i=u({},n||{},{key:t,timeMin:o,timeMax:s,singleEvents:!0,maxResults:9999}),"local"!==r.timeZone&&(i.timeZone=r.timeZone);return i}(e.range,r,n.data,t.dateEnv);l.requestJson("GET",s,a,function(e,t){var n,r;e.error?o({message:"Google Calendar API: "+e.error.message,errors:e.error.errors,xhr:t}):i({rawEvents:(n=e.items,r=a.timeZone,n.map(function(e){return function(e,t){var n=e.htmlLink||null;return n&&t&&(n=function(e,r){return e.replace(/(\?.*?)?(#|$)/,function(e,t,n){return(t?t+"&":"?")+r+n})}(n,"ctz="+t)),{id:e.id,title:e.summary,start:e.start.dateTime||e.start.date,end:e.end.dateTime||e.end.date,url:n,location:e.location,description:e.description}}(e,r)})),xhr:t})},function(e,t){o({message:e,xhr:t})})}else o({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}};var r=l.createPlugin({eventSourceDefs:[t]});e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarDayGrid={},e.FullCalendar)}(this,function(e,C){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u,c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n=(t(i,u=C.DateProfileGenerator),i.prototype.buildRenderRange=function(e,t,n){var r,i=this.dateEnv,o=u.prototype.buildRenderRange.call(this,e,t,n),s=o.start,a=o.end;if(/^(year|month)$/.test(t)&&(s=i.startOfWeek(s),(r=i.startOfWeek(a)).valueOf()!==a.valueOf()&&(a=C.addWeeks(r,1))),this.options.monthMode&&this.options.fixedWeekCount){var l=Math.ceil(C.diffWeeks(s,a));a=C.addWeeks(a,6-l)}return{start:s,end:a}},i);function i(){return null!==u&&u.apply(this,arguments)||this}var p=(o.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},o.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},o.prototype.render=function(){var t=this,e=this.options,n=this.el=C.createElement("div",{className:"fc-popover "+(e.className||""),style:{top:"0",left:"0"}});"function"==typeof e.content&&e.content(n),e.parentEl.appendChild(n),C.listenBySelector(n,"click",".fc-close",function(e){t.hide()}),e.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},o.prototype.destroy=function(){this.hide(),this.el&&(C.removeElement(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},o.prototype.position=function(){var e,t,n=this.options,r=this.el,i=r.getBoundingClientRect(),o=C.computeRect(r.offsetParent),s=C.computeClippingRect(n.parentEl);e=n.top||0,t=void 0!==n.left?n.left:void 0!==n.right?n.right-i.width:0,e=Math.min(e,s.bottom-i.height-this.margin),e=Math.max(e,s.top+this.margin),t=Math.min(t,s.right-i.width-this.margin),t=Math.max(t,s.left+this.margin),C.applyStyle(r,{top:e-o.top,left:t-o.left})},o.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},o);function o(e){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(e){t.el&&!t.el.contains(e.target)&&t.hide()},this.options=e}var s,a=(t(l,s=C.FgEventRenderer),l.prototype.renderSegHtml=function(e,t){var n,r,i=this.context,o=e.eventRange,s=o.def,a=o.ui,l=s.allDay,u=C.computeEventDraggable(i,s,a),c=l&&e.isStart&&C.computeEventStartResizable(i,s,a),d=l&&e.isEnd&&C.computeEventEndResizable(i,s,a),h=this.getSegClasses(e,u,c||d,t),f=C.cssToStr(this.getSkinCss(a)),p="";return h.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(o))&&(p='<span class="fc-time">'+C.htmlEscape(n)+"</span>"),r='<span class="fc-title">'+(C.htmlEscape(s.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(s.url?' href="'+C.htmlEscape(s.url)+'"':"")+(f?' style="'+f+'"':"")+'><div class="fc-content">'+("rtl"===i.options.dir?r+" "+p:p+" "+r)+"</div>"+(c?'<div class="fc-resizer fc-start-resizer"></div>':"")+(d?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},l.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},l.prototype.computeDisplayEventEnd=function(){return!1},l);function l(){return null!==s&&s.apply(this,arguments)||this}var d,h=(t(f,d=a),f.prototype.attachSegs=function(e,t){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(n[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},f.prototype.detachSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)C.removeElement(e.tbodyEl);this.rowStructs=null},f.prototype.renderSegRows=function(e){var t,n,r=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)r.push(this.renderSegRow(n,t[n]));return r},f.prototype.renderSegRow=function(e,t){var n,r,i,o,s,a,l,u=this.context.isRtl,c=this.dayGrid,d=c.colCnt,h=this.buildSegLevels(t),f=Math.max(1,h.length),p=document.createElement("tbody"),g=[],m=[],v=[];function y(e){for(;i<e;)(l=(v[n-1]||[])[i])?l.rowSpan=(l.rowSpan||1)+1:(l=document.createElement("td"),o.appendChild(l)),m[n][i]=l,v[n][i]=l,i++}for(n=0;n<f;n++){if(r=h[n],i=0,o=document.createElement("tr"),g.push([]),m.push([]),v.push([]),r)for(s=0;s<r.length;s++){a=r[s];var S=u?d-1-a.lastCol:a.firstCol,w=u?d-1-a.firstCol:a.lastCol;for(y(S),l=C.createElement("td",{className:"fc-event-container"},a.el),S!==w?l.colSpan=w-S+1:v[n][i]=l;i<=w;)m[n][i]=l,g[n][i]=a,i++;o.appendChild(l)}y(d);var _=c.renderProps.renderIntroHtml();_&&(u?C.appendToElement(o,_):C.prependToElement(o,_)),p.appendChild(o)}return{row:e,tbodyEl:p,cellMatrix:m,segMatrix:g,segLevels:h,segs:t}},f.prototype.buildSegLevels=function(e){var t,n,r,i=this.context.isRtl,o=this.dayGrid.colCnt,s=[];for(e=this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],r=0;r<s.length&&g(n,s[r]);r++);n.level=r,n.leftCol=i?o-1-n.lastCol:n.firstCol,n.rightCol=i?o-1-n.firstCol:n.lastCol,(s[r]||(s[r]=[])).push(n)}for(r=0;r<s.length;r++)s[r].sort(m);return s},f.prototype.groupSegRows=function(e){var t,n=[];for(t=0;t<this.dayGrid.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n},f.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},f);function f(e){var t=d.call(this)||this;return t.dayGrid=e,t}function g(e,t){var n,r;for(n=0;n<t.length;n++)if((r=t[n]).firstCol<=e.lastCol&&r.lastCol>=e.firstCol)return 1}function m(e,t){return e.leftCol-t.leftCol}var v,y=(t(S,v=h),S.prototype.attachSegs=function(e,t){var i=t.sourceSeg,o=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){var n,r=C.htmlToElement('<div class="fc-mirror-skeleton"><table></table></div>');n=(i&&i.row===t?i.el:e.querySelector(".fc-content-skeleton tbody")||e.querySelector(".fc-content-skeleton table")).getBoundingClientRect().top-e.getBoundingClientRect().top,r.style.top=n+"px",r.querySelector("table").appendChild(o[t].tbodyEl),e.appendChild(r)})},S);function S(){return null!==v&&v.apply(this,arguments)||this}var w,_='<td style="pointer-events:none"></td>',b=(t(E,w=C.FillRenderer),E.prototype.renderSegs=function(e,t,n){"bgEvent"===e&&(n=n.filter(function(e){return e.eventRange.def.allDay})),w.prototype.renderSegs.call(this,e,t,n)},E.prototype.attachSegs=function(e,t){var n,r,i,o=[];for(n=0;n<t.length;n++)r=t[n],i=this.renderFillRow(e,r),this.dayGrid.rowEls[r.row].appendChild(i),o.push(i);return o},E.prototype.renderFillRow=function(e,t){var n,r,i,o=this.dayGrid,s=this.context.isRtl,a=o.colCnt,l=s?a-1-t.lastCol:t.firstCol,u=(s?a-1-t.firstCol:t.lastCol)+1;n="businessHours"===e?"bgevent":e.toLowerCase(),i=(r=C.htmlToElement('<div class="fc-'+n+'-skeleton"><table><tr></tr></table></div>')).getElementsByTagName("tr")[0],0<l&&C.appendToElement(i,new Array(l+1).join(_)),t.el.colSpan=u-l,i.appendChild(t.el),u<a&&C.appendToElement(i,new Array(a-u+1).join(_));var c=o.renderProps.renderIntroHtml();return c&&(s?C.appendToElement(i,c):C.prependToElement(i,c)),r},E);function E(e){var t=w.call(this)||this;return t.fillSegTag="td",t.dayGrid=e,t}var D,T=(t(x,D=C.DateComponent),x.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},x.prototype.render=function(e,t){this.renderFrame(e.date),this.renderFgEvents(t,e.fgSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDragInstances),this.renderEventResize(e.eventResizeInstances)},x.prototype.destroy=function(){D.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},x.prototype._renderFrame=function(e){var t=this.context,n=t.theme,r=t.dateEnv,i=t.options,o=r.format(e,C.createFormatter(i.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+n.getClass("popoverHeader")+'"><span class="fc-title">'+C.htmlEscape(o)+'</span><span class="fc-close '+n.getIconClass("close")+'"></span></div><div class="fc-body '+n.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},x.prototype.queryHit=function(e,t,n,r){var i=this.props.date;if(e<n&&t<r)return{component:this,dateSpan:{allDay:!0,range:{start:i,end:C.addDays(i,1)}},dayEl:this.el,rect:{left:0,top:0,right:n,bottom:r},layer:1}},x);function x(e){var t=D.call(this,e)||this,n=t.eventRenderer=new I(t),r=t.renderFrame=C.memoizeRendering(t._renderFrame);return t.renderFgEvents=C.memoizeRendering(n.renderSegs.bind(n),n.unrender.bind(n),[r]),t.renderEventSelection=C.memoizeRendering(n.selectByInstanceId.bind(n),n.unselectByInstanceId.bind(n),[t.renderFgEvents]),t.renderEventDrag=C.memoizeRendering(n.hideByHash.bind(n),n.showByHash.bind(n),[r]),t.renderEventResize=C.memoizeRendering(n.hideByHash.bind(n),n.showByHash.bind(n),[r]),t}var k,I=(t(R,k=a),R.prototype.attachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.dayTile.segContainerEl.appendChild(r.el)}},R.prototype.detachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];C.removeElement(r.el)}},R);function R(e){var t=k.call(this)||this;return t.dayTile=e,t}var M=(O.prototype.renderHtml=function(e){var t=[];e.renderIntroHtml&&t.push(e.renderIntroHtml());for(var n=0,r=e.cells;n<r.length;n++){var i=r[n];t.push(P(i.date,e.dateProfile,this.context,i.htmlAttrs))}return e.cells.length||t.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"></td>'),"rtl"===this.context.options.dir&&t.reverse(),"<tr>"+t.join("")+"</tr>"},O);function O(e){this.context=e}function P(e,t,n,r){var i=n.dateEnv,o=n.theme,s=C.rangeContainsMarker(t.activeRange,e),a=C.getDayClasses(e,t,n);return a.unshift("fc-day",o.getClass("widgetContent")),'<td class="'+a.join(" ")+'"'+(s?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+(r?" "+r:"")+"></td>"}var N,A=C.createFormatter({day:"numeric"}),H=C.createFormatter({week:"numeric"}),L=(t(j,N=C.DateComponent),j.prototype.render=function(e,t){var n=e.cells;this.rowCnt=n.length,this.colCnt=n[0].length,this.renderCells(n,e.isRigid),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(t,e.dateSelectionSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},j.prototype.destroy=function(){N.prototype.destroy.call(this),this.renderCells.unrender()},j.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:C.addDays(n,1)}},j.prototype.updateSegPopoverTile=function(e,t){var n=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:n.eventSelection,eventDragInstances:n.eventDrag?n.eventDrag.affectedInstances:null,eventResizeInstances:n.eventResize?n.eventResize.affectedInstances:null},this.context)},j.prototype._renderCells=function(e,t){var n,r,i=this.context,o=i.calendar,s=i.view,a=i.isRtl,l=i.dateEnv,u=this.rowCnt,c=this.colCnt,d="";for(n=0;n<u;n++)d+=this.renderDayRowHtml(n,t);for(this.el.innerHTML=d,this.rowEls=C.findElements(this.el,".fc-row"),this.cellEls=C.findElements(this.el,".fc-day, .fc-disabled-day"),a&&this.cellEls.reverse(),this.rowPositions=new C.PositionCache(this.el,this.rowEls,!1,!0),this.colPositions=new C.PositionCache(this.el,this.cellEls.slice(0,c),!0,!1),n=0;n<u;n++)for(r=0;r<c;r++)o.publiclyTrigger("dayRender",[{date:l.toDate(e[n][r].date),el:this.getCellEl(n,r),view:s}]);this.isCellSizesDirty=!0},j.prototype._unrenderCells=function(){this.removeSegPopover()},j.prototype.renderDayRowHtml=function(e,t){var n=this.context.theme,r=["fc-row","fc-week",n.getClass("dayRow")];t&&r.push("fc-rigid");var i=new M(this.context);return'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},j.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},j.prototype.getIsDayNumbersVisible=function(){return 1<this.rowCnt},j.prototype.renderNumberTrHtml=function(e){var t=this.context.isRtl,n=this.renderProps.renderNumberIntroHtml(e,this);return"<tr>"+(t?"":n)+this.renderNumberCellsHtml(e)+(t?n:"")+"</tr>"},j.prototype.renderNumberCellsHtml=function(e){var t,n,r=[];for(t=0;t<this.colCnt;t++)n=this.props.cells[e][t].date,r.push(this.renderNumberCellHtml(n));return this.context.isRtl&&r.reverse(),r.join("")},j.prototype.renderNumberCellHtml=function(e){var t,n,r=this.context,i=r.dateEnv,o=r.options,s="",a=C.rangeContainsMarker(this.props.dateProfile.activeRange,e),l=this.getIsDayNumbersVisible()&&a;return l||this.renderProps.cellWeekNumbersVisible?((t=C.getDayClasses(e,this.props.dateProfile,this.context)).unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(n=i.weekDow),s+='<td class="'+t.join(" ")+'"'+(a?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(s+=C.buildGotoAnchorHtml(o,i,{date:e,type:"week"},{class:"fc-week-number"},i.format(e,H))),l&&(s+=C.buildGotoAnchorHtml(o,i,e,{class:"fc-day-number"},i.format(e,A))),s+="</td>"):"<td></td>"},j.prototype.updateSize=function(e){var t=this.context.calendar,n=this.fillRenderer,r=this.eventRenderer,i=this.mirrorRenderer;(e||this.isCellSizesDirty||t.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},j.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},j.prototype.buildColPositions=function(){this.colPositions.build()},j.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},j.prototype.positionToHit=function(e,t){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:n.lefts[i],right:n.rights[i],top:r.tops[o],bottom:r.bottoms[o]}}},j.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},j.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs))},j.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},j.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},j.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},j.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},j.prototype.limitRows=function(e){var t,n,r=this.eventRenderer.rowStructs||[];for(t=0;t<r.length;t++)this.unlimitRow(t),!1!==(n=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,n)},j.prototype.computeRowLevelLimit=function(e){var t,n,r=this.rowEls[e].getBoundingClientRect().bottom,i=C.findChildren(this.eventRenderer.rowStructs[e].tbodyEl);for(t=0;t<i.length;t++)if((n=i[t]).classList.remove("fc-limited"),n.getBoundingClientRect().bottom>r)return t;return!1},j.prototype.limitRow=function(t,n){function e(e){for(;E<e;)(l=y.getCellSegs(t,E,n)).length&&(d=i[n-1][E],v=y.renderMoreLink(t,E,l),m=C.createElement("div",null,v),d.appendChild(m),b.push(m)),E++}var r,i,o,s,a,l,u,c,d,h,f,p,g,m,v,y=this,S=this.colCnt,w=this.context.isRtl,_=this.eventRenderer.rowStructs[t],b=[],E=0;if(n&&n<_.segLevels.length){for(r=_.segLevels[n-1],i=_.cellMatrix,(o=C.findChildren(_.tbodyEl).slice(n)).forEach(function(e){e.classList.add("fc-limited")}),s=0;s<r.length;s++){a=r[s];var D=w?S-1-a.lastCol:a.firstCol,T=w?S-1-a.firstCol:a.lastCol;for(e(D),c=[],u=0;E<=T;)l=this.getCellSegs(t,E,n),c.push(l),u+=l.length,E++;if(u){for(h=(d=i[n-1][D]).rowSpan||1,f=[],p=0;p<c.length;p++)g=C.createElement("td",{className:"fc-more-cell",rowSpan:h}),l=c[p],v=this.renderMoreLink(t,D+p,[a].concat(l)),m=C.createElement("div",null,v),g.appendChild(m),f.push(g),b.push(g);d.classList.add("fc-limited"),C.insertAfterElement(d,f),o.push(d)}}e(this.colCnt),_.moreEls=b,_.limitedEls=o}},j.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.forEach(C.removeElement),t.moreEls=null),t.limitedEls&&(t.limitedEls.forEach(function(e){e.classList.remove("fc-limited")}),t.limitedEls=null)},j.prototype.renderMoreLink=function(u,c,d){var h=this,e=this.context,f=e.calendar,p=e.view,g=e.dateEnv,m=e.options,v=e.isRtl,t=C.createElement("a",{className:"fc-more"});return t.innerText=this.getMoreLinkText(d.length),t.addEventListener("click",function(e){var t=m.eventLimitClick,n=v?h.colCnt-c-1:c,r=h.props.cells[u][n].date,i=e.currentTarget,o=h.getCellEl(u,c),s=h.getCellSegs(u,c),a=h.resliceDaySegs(s,r),l=h.resliceDaySegs(d,r);"function"==typeof t&&(t=f.publiclyTrigger("eventLimitClick",[{date:g.toDate(r),allDay:!0,dayEl:o,moreEl:i,segs:a,hiddenSegs:l,jsEvent:e,view:p}])),"popover"===t?h.showSegPopover(u,c,i,a):"string"==typeof t&&f.zoomTo(r,t)}),t},j.prototype.showSegPopover=function(t,e,n,r){var i,o,s=this,a=this.context,l=a.calendar,u=a.view,c=a.theme,d=a.isRtl,h=d?this.colCnt-e-1:e,f=n.parentNode;i=1===this.rowCnt?u.el:this.rowEls[t],o={className:"fc-more-popover "+c.getClass("popover"),parentEl:u.el,top:C.computeRect(i).top,autoHide:!0,content:function(e){s.segPopoverTile=new T(e),s.updateSegPopoverTile(s.props.cells[t][h].date,r)},hide:function(){s.segPopoverTile.destroy(),s.segPopoverTile=null,s.segPopover.destroy(),s.segPopover=null}},d?o.right=C.computeRect(f).right+1:o.left=C.computeRect(f).left-1,this.segPopover=new p(o),this.segPopover.show(),l.releaseAfterSizingTriggers()},j.prototype.resliceDaySegs=function(e,t){for(var n={start:t,end:C.addDays(t,1)},r=[],i=0,o=e;i<o.length;i++){var s=o[i],a=s.eventRange,l=a.range,u=C.intersectRanges(l,n);u&&r.push(c({},s,{eventRange:{def:a.def,ui:c({},a.ui,{durationEditable:!1}),instance:a.instance,range:u},isStart:s.isStart&&u.start.valueOf()===l.start.valueOf(),isEnd:s.isEnd&&u.end.valueOf()===l.end.valueOf()}))}return r},j.prototype.getMoreLinkText=function(e){var t=this.context.options.eventLimitText;return"function"==typeof t?t(e):"+"+e+" "+t},j.prototype.getCellSegs=function(e,t,n){for(var r,i=this.eventRenderer.rowStructs[e].segMatrix,o=n||0,s=[];o<i.length;)(r=i[o][t])&&s.push(r),o++;return s},j);function j(e,t){var n=N.call(this,e)||this;n.bottomCoordPadding=0,n.isCellSizesDirty=!1,n.renderProps=t;var r=n.eventRenderer=new h(n),i=n.fillRenderer=new b(n);n.mirrorRenderer=new y(n);var o=n.renderCells=C.memoizeRendering(n._renderCells,n._unrenderCells);return n.renderBusinessHours=C.memoizeRendering(i.renderSegs.bind(i,"businessHours"),i.unrender.bind(i,"businessHours"),[o]),n.renderDateSelection=C.memoizeRendering(i.renderSegs.bind(i,"highlight"),i.unrender.bind(i,"highlight"),[o]),n.renderBgEvents=C.memoizeRendering(i.renderSegs.bind(i,"bgEvent"),i.unrender.bind(i,"bgEvent"),[o]),n.renderFgEvents=C.memoizeRendering(r.renderSegs.bind(r),r.unrender.bind(r),[o]),n.renderEventSelection=C.memoizeRendering(r.selectByInstanceId.bind(r),r.unselectByInstanceId.bind(r),[n.renderFgEvents]),n.renderEventDrag=C.memoizeRendering(n._renderEventDrag,n._unrenderEventDrag,[o]),n.renderEventResize=C.memoizeRendering(n._renderEventResize,n._unrenderEventResize,[o]),n}var W,z=C.createFormatter({week:"numeric"}),F=(t(U,W=C.View),U.prototype._processOptions=function(e){e.weekNumbers?e.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},U.prototype.render=function(e,t){W.prototype.render.call(this,e,t),this.processOptions(t.options),this.renderSkeleton(t)},U.prototype.destroy=function(){W.prototype.destroy.call(this),this.renderSkeleton.unrender()},U.prototype._renderSkeleton=function(e){this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new C.ScrollComponent("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-day-grid-container");var n=C.createElement("div",{className:"fc-day-grid"});t.appendChild(n),this.dayGrid=new L(n,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},U.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},U.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},U.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},U.prototype.hasRigidRows=function(){var e=this.context.options.eventLimit;return e&&"number"!=typeof e},U.prototype.updateSize=function(e,t,n){W.prototype.updateSize.call(this,e,t,n),this.dayGrid.updateSize(e)},U.prototype.updateBaseSize=function(e,t,n){var r,i,o=this.dayGrid,s=this.context.options.eventLimit,a=this.header?this.header.el:null;o.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=C.matchCellWidths(C.findElements(this.el,".fc-week-number"))),this.scroller.clear(),a&&C.uncompensateScroll(a),o.removeSegPopover(),s&&"number"==typeof s&&o.limitRows(s),r=this.computeScrollerHeight(t),this.setGridHeight(r,n),s&&"number"!=typeof s&&o.limitRows(s),n||(this.scroller.setHeight(r),((i=this.scroller.getScrollbarWidths()).left||i.right)&&(a&&C.compensateScroll(a,i),r=this.computeScrollerHeight(t),this.scroller.setHeight(r)),this.scroller.lockOverflow(i))):n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r))},U.prototype.computeScrollerHeight=function(e){return e-C.subtractInnerElHeight(this.el,this.scroller.el)},U.prototype.setGridHeight=function(e,t){this.context.options.monthMode?(t&&(e*=this.dayGrid.rowCnt/6),C.distributeHeight(this.dayGrid.rowEls,e,!t)):t?C.undistributeHeight(this.dayGrid.rowEls):C.distributeHeight(this.dayGrid.rowEls,e,!0)},U.prototype.computeDateScroll=function(e){return{top:0}},U.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},U.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},U);function U(){var s=null!==W&&W.apply(this,arguments)||this;return s.processOptions=C.memoize(s._processOptions),s.renderSkeleton=C.memoizeRendering(s._renderSkeleton,s._unrenderSkeleton),s.renderHeadIntroHtml=function(){var e=s.context,t=e.theme,n=e.options;return s.colWeekNumbersVisible?'<th class="fc-week-number '+t.getClass("widgetHeader")+'" '+s.weekNumberStyleAttr()+"><span>"+C.htmlEscape(n.weekLabel)+"</span></th>":""},s.renderDayGridNumberIntroHtml=function(e,t){var n=s.context,r=n.options,i=n.dateEnv,o=t.props.cells[e][0].date;return s.colWeekNumbersVisible?'<td class="fc-week-number" '+s.weekNumberStyleAttr()+">"+C.buildGotoAnchorHtml(r,i,{date:o,type:"week",forceOff:1===t.colCnt},i.format(o,z))+"</td>":""},s.renderDayGridBgIntroHtml=function(){var e=s.context.theme;return s.colWeekNumbersVisible?'<td class="fc-week-number '+e.getClass("widgetContent")+'" '+s.weekNumberStyleAttr()+"></td>":""},s.renderDayGridIntroHtml=function(){return s.colWeekNumbersVisible?'<td class="fc-week-number" '+s.weekNumberStyleAttr()+"></td>":""},s}F.prototype.dateProfileGeneratorClass=n;var Y,B=(t(V,Y=C.DateComponent),V.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},V.prototype.destroy=function(){Y.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},V.prototype.render=function(e,t){var n=this.dayGrid,r=e.dateProfile,i=e.dayTable;n.receiveProps(c({},this.slicer.sliceProps(e,r,e.nextDayThreshold,t.calendar,n,i),{dateProfile:r,cells:i.cells,isRigid:e.isRigid}),t)},V.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},V.prototype.queryHit=function(e,t){var n=this.dayGrid.positionToHit(e,t);if(n)return{component:this.dayGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},V);function V(e){var t=Y.call(this,e.el)||this;return t.slicer=new q,t.dayGrid=e,t}var G,q=(t(Z,G=C.Slicer),Z.prototype.sliceRange=function(e,t){return t.sliceRange(e)},Z);function Z(){return null!==G&&G.apply(this,arguments)||this}var $,Q=(t(K,$=F),K.prototype.render=function(e,t){$.prototype.render.call(this,e,t);var n=this.props.dateProfile,r=this.dayTable=this.buildDayTable(n,e.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:n,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},t),this.simpleDayGrid.receiveProps({dateProfile:n,dayTable:r,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},t)},K.prototype._renderSkeleton=function(e){$.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new C.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new B(this.dayGrid)},K.prototype._unrenderSkeleton=function(){$.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},K);function K(){var e=null!==$&&$.apply(this,arguments)||this;return e.buildDayTable=C.memoize(X),e}function X(e,t){var n=new C.DaySeries(e.renderRange,t);return new C.DayTable(n,/year|month|week/.test(e.currentRangeUnit))}var J=C.createPlugin({defaultView:"dayGridMonth",views:{dayGrid:Q,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});e.AbstractDayGridView=F,e.DayBgRow=M,e.DayGrid=L,e.DayGridSlicer=q,e.DayGridView=Q,e.SimpleDayGrid=B,e.buildBasicDayTable=X,e.default=J,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core"),require("@fullcalendar/daygrid")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core","@fullcalendar/daygrid"],t):t((e=e||self).FullCalendarTimeGrid={},e.FullCalendar,e.FullCalendarDayGrid)}(this,function(e,m,c){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=(t(n,i=m.FgEventRenderer),n.prototype.renderSegs=function(e,t,n){i.prototype.renderSegs.call(this,e,t,n),this.fullTimeFormat=m.createFormatter({hour:"numeric",minute:"2-digit",separator:this.context.options.defaultRangeSeparator})},n.prototype.attachSegs=function(e,t){for(var n=this.timeGrid.groupSegsByCol(e),r=0;r<n.length;r++)n[r]=this.sortEventSegs(n[r]);this.segsByCol=n,this.timeGrid.attachSegsByCol(n,this.timeGrid.fgContainerEls)},n.prototype.detachSegs=function(e){e.forEach(function(e){m.removeElement(e.el)}),this.segsByCol=null},n.prototype.computeSegSizes=function(e){var t=this.timeGrid,n=this.segsByCol,r=t.colCnt;if(t.computeSegVerticals(e),n)for(var i=0;i<r;i++)this.computeSegHorizontals(n[i])},n.prototype.assignSegSizes=function(e){var t=this.timeGrid,n=this.segsByCol,r=t.colCnt;if(t.assignSegVerticals(e),n)for(var i=0;i<r;i++)this.assignSegCss(n[i])},n.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:!1}},n.prototype.computeDisplayEventEnd=function(){return!0},n.prototype.renderSegHtml=function(e,t){var n,r,i,o=e.eventRange,s=o.def,a=o.ui,l=s.allDay,u=m.computeEventDraggable(this.context,s,a),c=e.isStart&&m.computeEventStartResizable(this.context,s,a),d=e.isEnd&&m.computeEventEndResizable(this.context,s,a),h=this.getSegClasses(e,u,c||d,t),f=m.cssToStr(this.getSkinCss(a));if(h.unshift("fc-time-grid-event"),m.isMultiDayRange(o.range)){if(e.isStart||e.isEnd){var p=e.start,g=e.end;n=this._getTimeText(p,g,l),r=this._getTimeText(p,g,l,this.fullTimeFormat),i=this._getTimeText(p,g,l,null,!1)}}else n=this.getTimeText(o),r=this.getTimeText(o,this.fullTimeFormat),i=this.getTimeText(o,null,!1);return'<a class="'+h.join(" ")+'"'+(s.url?' href="'+m.htmlEscape(s.url)+'"':"")+(f?' style="'+f+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+m.htmlEscape(i)+'" data-full="'+m.htmlEscape(r)+'"><span>'+m.htmlEscape(n)+"</span></div>":"")+(s.title?'<div class="fc-title">'+m.htmlEscape(s.title)+"</div>":"")+"</div>"+(d?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},n.prototype.computeSegHorizontals=function(e){var t,n,r;if(function(e){var t,n,r,i,o;for(t=0;t<e.length;t++)for(n=e[t],r=0;r<n.length;r++)for((i=n[r]).forwardSegs=[],o=t+1;o<e.length;o++)a(i,e[o],i.forwardSegs)}(t=function(e){var t,n,r,i=[];for(t=0;t<e.length;t++){for(n=e[t],r=0;r<i.length&&a(n,i[r]).length;r++);n.level=r,(i[r]||(i[r]=[])).push(n)}return i}(e)),n=t[0]){for(r=0;r<n.length;r++)o(n[r]);for(r=0;r<n.length;r++)this.computeSegForwardBack(n[r],0,0)}},n.prototype.computeSegForwardBack=function(e,t,n){var r,i=e.forwardSegs;if(void 0===e.forwardCoord)for(i.length?(this.sortForwardSegs(i),this.computeSegForwardBack(i[0],t+1,n),e.forwardCoord=i[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),r=0;r<i.length;r++)this.computeSegForwardBack(i[r],0,e.forwardCoord)},n.prototype.sortForwardSegs=function(e){var t=e.map(u),n=[{field:"forwardPressure",order:-1},{field:"backwardCoord",order:1}].concat(this.context.eventOrderSpecs);return t.sort(function(e,t){return m.compareByFieldSpecs(e,t,n)}),t.map(function(e){return e._seg})},n.prototype.assignSegCss=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];m.applyStyle(r.el,this.generateSegCss(r)),0<r.level&&r.el.classList.add("fc-time-grid-event-inset"),r.eventRange.def.title&&r.bottom-r.top<30&&r.el.classList.add("fc-short")}},n.prototype.generateSegCss=function(e){var t,n,r=this.context.options.slotEventOverlap,i=e.backwardCoord,o=e.forwardCoord,s=this.timeGrid.generateSegVerticalCss(e),a=this.context.isRtl;return r&&(o=Math.min(1,i+2*(o-i))),n=a?(t=1-o,i):(t=i,1-o),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*n+"%",r&&e.forwardPressure&&(s[a?"marginLeft":"marginRight"]=20),s},n);function n(e){var t=i.call(this)||this;return t.timeGrid=e,t}function o(e){var t,n,r=e.forwardSegs,i=0;if(void 0===e.forwardPressure){for(t=0;t<r.length;t++)o(n=r[t]),i=Math.max(i,1+n.forwardPressure);e.forwardPressure=i}}function a(e,t,n){void 0===n&&(n=[]);for(var r=0;r<t.length;r++)i=e,o=t[r],i.bottom>o.top&&i.top<o.bottom&&n.push(t[r]);var i,o;return n}function u(e){var t=m.buildSegCompareObj(e);return t.forwardPressure=e.forwardPressure,t.backwardCoord=e.backwardCoord,t}var d,h=(t(f,d=s),f.prototype.attachSegs=function(e,t){this.segsByCol=this.timeGrid.groupSegsByCol(e),this.timeGrid.attachSegsByCol(this.segsByCol,this.timeGrid.mirrorContainerEls),this.sourceSeg=t.sourceSeg},f.prototype.generateSegCss=function(e){var t=d.prototype.generateSegCss.call(this,e),n=this.sourceSeg;if(n&&n.col===e.col){var r=d.prototype.generateSegCss.call(this,n);t.left=r.left,t.right=r.right,t.marginLeft=r.marginLeft,t.marginRight=r.marginRight}return t},f);function f(){return null!==d&&d.apply(this,arguments)||this}var p,g=(t(v,p=m.FillRenderer),v.prototype.attachSegs=function(e,t){var n,r=this.timeGrid;return"bgEvent"===e?n=r.bgContainerEls:"businessHours"===e?n=r.businessContainerEls:"highlight"===e&&(n=r.highlightContainerEls),r.attachSegsByCol(r.groupSegsByCol(t),n),t.map(function(e){return e.el})},v.prototype.computeSegSizes=function(e){this.timeGrid.computeSegVerticals(e)},v.prototype.assignSegSizes=function(e){this.timeGrid.assignSegVerticals(e)},v);function v(e){var t=p.call(this)||this;return t.timeGrid=e,t}var y,S=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],w=(t(_,y=m.DateComponent),_.prototype._processOptions=function(e){var t,n,r=e.slotDuration,i=e.snapDuration;r=m.createDuration(r),i=i?m.createDuration(i):r,null===(t=m.wholeDivideDurations(r,i))&&(i=r,t=1),this.slotDuration=r,this.snapDuration=i,this.snapsPerSlot=t,n=e.slotLabelFormat,Array.isArray(n)&&(n=n[n.length-1]),this.labelFormat=m.createFormatter(n||{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),n=e.slotLabelInterval,this.labelInterval=n?m.createDuration(n):this.computeLabelInterval(r)},_.prototype.computeLabelInterval=function(e){var t,n,r;for(t=S.length-1;0<=t;t--)if(n=m.createDuration(S[t]),null!==(r=m.wholeDivideDurations(n,e))&&1<r)return n;return e},_.prototype.render=function(e,t){this.processOptions(t.options);var n=e.cells;this.colCnt=n.length,this.renderSkeleton(t.theme),this.renderSlats(e.dateProfile),this.renderColumns(e.cells,e.dateProfile),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize)},_.prototype.destroy=function(){y.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender(),this.renderSkeleton.unrender()},_.prototype.updateSize=function(e){var t=this.fillRenderer,n=this.eventRenderer,r=this.mirrorRenderer;(e||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(e||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),t.computeSizes(e),n.computeSizes(e),r.computeSizes(e),t.assignSizes(e),n.assignSizes(e),r.assignSizes(e)},_.prototype._renderSkeleton=function(e){var t=this.el;t.innerHTML='<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+e.getClass("widgetHeader")+'" style="display:none" />',this.rootBgContainerEl=t.querySelector(".fc-bg"),this.slatContainerEl=t.querySelector(".fc-slats"),this.bottomRuleEl=t.querySelector(".fc-divider")},_.prototype._renderSlats=function(e){var t=this.context.theme;this.slatContainerEl.innerHTML='<table class="'+t.getClass("tableGrid")+'">'+this.renderSlatRowHtml(e)+"</table>",this.slatEls=m.findElements(this.slatContainerEl,"tr"),this.slatPositions=new m.PositionCache(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},_.prototype.renderSlatRowHtml=function(e){for(var t,n,r,i=this.context,o=i.dateEnv,s=i.theme,a=i.isRtl,l="",u=m.startOfDay(e.renderRange.start),c=e.minTime,d=m.createDuration(0);m.asRoughMs(c)<m.asRoughMs(e.maxTime);)t=o.add(u,c),n=null!==m.wholeDivideDurations(d,this.labelInterval),r='<td class="fc-axis fc-time '+s.getClass("widgetContent")+'">'+(n?"<span>"+m.htmlEscape(o.format(t,this.labelFormat))+"</span>":"")+"</td>",l+='<tr data-time="'+m.formatIsoTimeString(t)+'"'+(n?"":' class="fc-minor"')+">"+(a?"":r)+'<td class="'+s.getClass("widgetContent")+'"></td>'+(a?r:"")+"</tr>",c=m.addDurations(c,this.slotDuration),d=m.addDurations(d,this.slotDuration);return l},_.prototype._renderColumns=function(e,t){var n=this.context,r=n.calendar,i=n.view,o=n.isRtl,s=n.theme,a=n.dateEnv,l=new c.DayBgRow(this.context);this.rootBgContainerEl.innerHTML='<table class="'+s.getClass("tableGrid")+'">'+l.renderHtml({cells:e,dateProfile:t,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"</table>",this.colEls=m.findElements(this.el,".fc-day, .fc-disabled-day");for(var u=0;u<this.colCnt;u++)r.publiclyTrigger("dayRender",[{date:a.toDate(e[u].date),el:this.colEls[u],view:i}]);o&&this.colEls.reverse(),this.colPositions=new m.PositionCache(this.el,this.colEls,!0,!1),this.renderContentSkeleton(),this.isColSizesDirty=!0},_.prototype._unrenderColumns=function(){this.unrenderContentSkeleton()},_.prototype.renderContentSkeleton=function(){var e,t=this.context.isRtl,n=[];n.push(this.renderProps.renderIntroHtml());for(var r=0;r<this.colCnt;r++)n.push('<td><div class="fc-content-col"><div class="fc-event-container fc-mirror-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>');t&&n.reverse(),e=this.contentSkeletonEl=m.htmlToElement('<div class="fc-content-skeleton"><table><tr>'+n.join("")+"</tr></table></div>"),this.colContainerEls=m.findElements(e,".fc-content-col"),this.mirrorContainerEls=m.findElements(e,".fc-mirror-container"),this.fgContainerEls=m.findElements(e,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=m.findElements(e,".fc-bgevent-container"),this.highlightContainerEls=m.findElements(e,".fc-highlight-container"),this.businessContainerEls=m.findElements(e,".fc-business-container"),t&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(e)},_.prototype.unrenderContentSkeleton=function(){m.removeElement(this.contentSkeletonEl)},_.prototype.groupSegsByCol=function(e){var t,n=[];for(t=0;t<this.colCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].col].push(e[t]);return n},_.prototype.attachSegsByCol=function(e,t){var n,r,i;for(n=0;n<this.colCnt;n++)for(r=e[n],i=0;i<r.length;i++)t[n].appendChild(r[i].el)},_.prototype.getNowIndicatorUnit=function(){return"minute"},_.prototype.renderNowIndicator=function(e,t){if(this.colContainerEls){var n,r=this.computeDateTop(t),i=[];for(n=0;n<e.length;n++){var o=m.createElement("div",{className:"fc-now-indicator fc-now-indicator-line"});o.style.top=r+"px",this.colContainerEls[e[n].col].appendChild(o),i.push(o)}if(0<e.length){var s=m.createElement("div",{className:"fc-now-indicator fc-now-indicator-arrow"});s.style.top=r+"px",this.contentSkeletonEl.appendChild(s),i.push(s)}this.nowIndicatorEls=i}},_.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(m.removeElement),this.nowIndicatorEls=null)},_.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.getBoundingClientRect().height},_.prototype.computeDateTop=function(e,t){return t=t||m.startOfDay(e),this.computeTimeTop(m.createDuration(e.valueOf()-t.valueOf()))},_.prototype.computeTimeTop=function(e){var t,n,r=this.slatEls.length,i=this.props.dateProfile,o=(e.milliseconds-m.asRoughMs(i.minTime))/m.asRoughMs(this.slotDuration);return o=Math.max(0,o),o=Math.min(r,o),t=Math.floor(o),n=o-(t=Math.min(t,r-1)),this.slatPositions.tops[t]+this.slatPositions.getHeight(t)*n},_.prototype.computeSegVerticals=function(e){var t,n,r,i=this.context.options.timeGridEventMinHeight;for(t=0;t<e.length;t++)n=e[t],r=this.props.cells[n.col].date,n.top=this.computeDateTop(n.start,r),n.bottom=Math.max(n.top+i,this.computeDateTop(n.end,r))},_.prototype.assignSegVerticals=function(e){var t,n;for(t=0;t<e.length;t++)n=e[t],m.applyStyle(n.el,this.generateSegVerticalCss(n))},_.prototype.generateSegVerticalCss=function(e){return{top:e.top,bottom:-e.bottom}},_.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildSlatPositions()},_.prototype.buildColPositions=function(){this.colPositions.build()},_.prototype.buildSlatPositions=function(){this.slatPositions.build()},_.prototype.positionToHit=function(e,t){var n=this.context.dateEnv,r=this.snapsPerSlot,i=this.slatPositions,o=this.colPositions,s=o.leftToIndex(e),a=i.topToIndex(t);if(null!=s&&null!=a){var l=i.tops[a],u=i.getHeight(a),c=(t-l)/u,d=a*r+Math.floor(c*r),h=this.props.cells[s].date,f=m.addDurations(this.props.dateProfile.minTime,m.multiplyDuration(this.snapDuration,d)),p=n.add(h,f);return{col:s,dateSpan:{range:{start:p,end:n.add(p,this.snapDuration)},allDay:!1},dayEl:this.colEls[s],relativeRect:{left:o.lefts[s],right:o.rights[s],top:l,bottom:l+u}}}},_.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.renderSegs(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.renderSegs("highlight",this.context,e.segs))},_.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.unrender(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.unrender("highlight",this.context))},_.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},_.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},_.prototype._renderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.renderSegs(this.context,e,{isSelecting:!0}):this.fillRenderer.renderSegs("highlight",this.context,e))},_.prototype._unrenderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.unrender(this.context,e,{isSelecting:!0}):this.fillRenderer.unrender("highlight",this.context))},_);function _(e,t){var n=y.call(this,e)||this;n.isSlatSizesDirty=!1,n.isColSizesDirty=!1,n.processOptions=m.memoize(n._processOptions),n.renderSkeleton=m.memoizeRendering(n._renderSkeleton),n.renderSlats=m.memoizeRendering(n._renderSlats,null,[n.renderSkeleton]),n.renderColumns=m.memoizeRendering(n._renderColumns,n._unrenderColumns,[n.renderSkeleton]),n.renderProps=t;var r=n.renderColumns,i=n.eventRenderer=new s(n),o=n.fillRenderer=new g(n);return n.mirrorRenderer=new h(n),n.renderBusinessHours=m.memoizeRendering(o.renderSegs.bind(o,"businessHours"),o.unrender.bind(o,"businessHours"),[r]),n.renderDateSelection=m.memoizeRendering(n._renderDateSelection,n._unrenderDateSelection,[r]),n.renderFgEvents=m.memoizeRendering(i.renderSegs.bind(i),i.unrender.bind(i),[r]),n.renderBgEvents=m.memoizeRendering(o.renderSegs.bind(o,"bgEvent"),o.unrender.bind(o,"bgEvent"),[r]),n.renderEventSelection=m.memoizeRendering(i.selectByInstanceId.bind(i),i.unselectByInstanceId.bind(i),[n.renderFgEvents]),n.renderEventDrag=m.memoizeRendering(n._renderEventDrag,n._unrenderEventDrag,[r]),n.renderEventResize=m.memoizeRendering(n._renderEventResize,n._unrenderEventResize,[r]),n}var b,E=(t(D,b=m.Splitter),D.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},D.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},D.prototype.getKeysForEventDef=function(e){return e.allDay?m.hasBgRendering(e)?["timed","allDay"]:["allDay"]:["timed"]},D);function D(){return null!==b&&b.apply(this,arguments)||this}var T,C=m.createFormatter({week:"short"}),x=(t(k,T=m.View),k.prototype.render=function(e,t){T.prototype.render.call(this,e,t),this.renderSkeleton(t)},k.prototype.destroy=function(){T.prototype.destroy.call(this),this.renderSkeleton.unrender()},k.prototype._renderSkeleton=function(e){this.el.classList.add("fc-timeGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new m.ScrollComponent("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-time-grid-container");var n=m.createElement("div",{className:"fc-time-grid"});if(t.appendChild(n),this.timeGrid=new w(n,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml}),e.options.allDaySlot){this.dayGrid=new c.DayGrid(this.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1});var r=this.el.querySelector(".fc-divider");this.dayGrid.bottomCoordPadding=r.getBoundingClientRect().height}},k.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-timeGrid-view"),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},k.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'">'+(n.allDaySlot?'<div class="fc-day-grid"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" />':"")+"</td></tr></tbody></table>"},k.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},k.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},k.prototype.updateSize=function(e,t,n){T.prototype.updateSize.call(this,e,t,n),this.timeGrid.updateSize(e),this.dayGrid&&this.dayGrid.updateSize(e)},k.prototype.updateBaseSize=function(e,t,n){var r,i,o,s=this;if(this.axisWidth=m.matchCellWidths(m.findElements(this.el,".fc-axis")),this.timeGrid.colEls){var a=m.findElements(this.el,".fc-row").filter(function(e){return!s.scroller.el.contains(e)});this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),a.forEach(m.uncompensateScroll),this.dayGrid&&(this.dayGrid.removeSegPopover(),(r=this.context.options.eventLimit)&&"number"!=typeof r&&(r=5),r&&this.dayGrid.limitRows(r)),n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(a.forEach(function(e){m.compensateScroll(e,o)}),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<i&&(this.timeGrid.bottomRuleEl.style.display=""))}else n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},k.prototype.computeScrollerHeight=function(e){return e-m.subtractInnerElHeight(this.el,this.scroller.el)},k.prototype.computeDateScroll=function(e){var t=this.timeGrid.computeTimeTop(e);return(t=Math.ceil(t))&&t++,{top:t}},k.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},k.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},k.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},k);function k(){var a=null!==T&&T.apply(this,arguments)||this;return a.splitter=new E,a.renderSkeleton=m.memoizeRendering(a._renderSkeleton,a._unrenderSkeleton),a.renderHeadIntroHtml=function(){var e,t=a.context,n=t.theme,r=t.dateEnv,i=t.options,o=a.props.dateProfile.renderRange,s=m.diffDays(o.start,o.end);return i.weekNumbers?(e=r.format(o.start,C),'<th class="fc-axis fc-week-number '+n.getClass("widgetHeader")+'" '+a.axisStyleAttr()+">"+m.buildGotoAnchorHtml(i,r,{date:o.start,type:"week",forceOff:1<s},m.htmlEscape(e))+"</th>"):'<th class="fc-axis '+n.getClass("widgetHeader")+'" '+a.axisStyleAttr()+"></th>"},a.renderTimeGridBgIntroHtml=function(){return'<td class="fc-axis '+a.context.theme.getClass("widgetContent")+'" '+a.axisStyleAttr()+"></td>"},a.renderTimeGridIntroHtml=function(){return'<td class="fc-axis" '+a.axisStyleAttr()+"></td>"},a.renderDayGridBgIntroHtml=function(){var e=a.context,t=e.theme,n=e.options;return'<td class="fc-axis '+t.getClass("widgetContent")+'" '+a.axisStyleAttr()+"><span>"+m.getAllDayHtml(n)+"</span></td>"},a.renderDayGridIntroHtml=function(){return'<td class="fc-axis" '+a.axisStyleAttr()+"></td>"},a}x.prototype.usesMinMaxTime=!0;var I,R=(t(M,I=m.DateComponent),M.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el})},M.prototype.destroy=function(){I.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},M.prototype.render=function(e,t){var n=this.context.dateEnv,r=e.dateProfile,i=e.dayTable,o=this.dayRanges=this.buildDayRanges(i,r,n);this.timeGrid.receiveProps(l({},this.slicer.sliceProps(e,r,null,t.calendar,this.timeGrid,o),{dateProfile:r,cells:i.cells[0]}),t)},M.prototype.renderNowIndicator=function(e){this.timeGrid.renderNowIndicator(this.slicer.sliceNowDate(e,this.timeGrid,this.dayRanges),e)},M.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},M.prototype.queryHit=function(e,t){var n=this.timeGrid.positionToHit(e,t);if(n)return{component:this.timeGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},M);function M(e){var t=I.call(this,e.el)||this;return t.buildDayRanges=m.memoize(O),t.slicer=new N,t.timeGrid=e,t}function O(e,t,n){for(var r=[],i=0,o=e.headerDates;i<o.length;i++){var s=o[i];r.push({start:n.add(s,t.minTime),end:n.add(s,t.maxTime)})}return r}var P,N=(t(A,P=m.Slicer),A.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r++){var i=m.intersectRanges(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n},A);function A(){return null!==P&&P.apply(this,arguments)||this}var H,L=(t(j,H=x),j.prototype.render=function(e,t){H.prototype.render.call(this,e,t);var n=this.props,r=n.dateProfile,i=n.dateProfileGenerator,o=t.nextDayThreshold,s=this.buildDayTable(r,i),a=this.splitter.splitProps(e);this.header&&this.header.receiveProps({dateProfile:r,dates:s.headerDates,datesRepDistinctDays:!0,renderIntroHtml:this.renderHeadIntroHtml},t),this.simpleTimeGrid.receiveProps(l({},a.timed,{dateProfile:r,dayTable:s}),t),this.simpleDayGrid&&this.simpleDayGrid.receiveProps(l({},a.allDay,{dateProfile:r,dayTable:s,nextDayThreshold:o,isRigid:!1}),t),this.startNowIndicator(r,i)},j.prototype._renderSkeleton=function(e){H.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new m.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleTimeGrid=new R(this.timeGrid),this.dayGrid&&(this.simpleDayGrid=new c.SimpleDayGrid(this.dayGrid))},j.prototype._unrenderSkeleton=function(){H.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleTimeGrid.destroy(),this.simpleDayGrid&&this.simpleDayGrid.destroy()},j.prototype.renderNowIndicator=function(e){this.simpleTimeGrid.renderNowIndicator(e)},j);function j(){var e=null!==H&&H.apply(this,arguments)||this;return e.buildDayTable=m.memoize(W),e}function W(e,t){var n=new m.DaySeries(e.renderRange,t);return new m.DayTable(n,!1)}var z=m.createPlugin({defaultView:"timeGridWeek",views:{timeGrid:{class:L,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});e.AbstractTimeGridView=x,e.TimeGrid=w,e.TimeGridSlicer=N,e.TimeGridView=L,e.buildDayRanges=O,e.buildDayTable=W,e.default=z,Object.defineProperty(e,"__esModule",{value:!0})}),function(){"use strict";var t=0,o={};function n(e){if(!e)throw new Error("No options passed to Waypoint constructor");if(!e.element)throw new Error("No element option passed to Waypoint constructor");if(!e.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=n.Adapter.extend({},n.defaults,e),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=e.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),o[this.key]=this,t+=1}n.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},n.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete o[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(e){var t=[];for(var n in o)t.push(o[n]);for(var r=0,i=t.length;r<i;r++)t[r][e]()},n.destroyAll=function(){n.invokeAll("destroy")},n.disableAll=function(){n.invokeAll("disable")},n.enableAll=function(){for(var e in n.Context.refreshAll(),o)o[e].enabled=!0;return this},n.refreshAll=function(){n.Context.refreshAll()},n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},n.viewportWidth=function(){return document.documentElement.clientWidth},n.adapters=[],n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},n.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=n}(),function(){"use strict";function t(e){window.setTimeout(e,1e3/60)}var n=0,r={},m=window.Waypoint,e=window.onload;function i(e){this.element=e,this.Adapter=m.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,r[e.waypointContextKey]=this,n+=1,m.windowContext||(m.windowContext=!0,m.windowContext=new i(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}i.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},i.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),n=this.element==this.element.window;e&&t&&!n&&(this.adapter.off(".waypoints"),delete r[this.key])},i.prototype.createThrottledResizeHandler=function(){var e=this;function t(){e.handleResize(),e.didResize=!1}this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,m.requestAnimationFrame(t))})},i.prototype.createThrottledScrollHandler=function(){var e=this;function t(){e.handleScroll(),e.didScroll=!1}this.adapter.on("scroll.waypoints",function(){e.didScroll&&!m.isTouch||(e.didScroll=!0,m.requestAnimationFrame(t))})},i.prototype.handleResize=function(){m.Context.refreshAll()},i.prototype.handleScroll=function(){var e={},t={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 n in t){var r=t[n],i=r.newScroll>r.oldScroll?r.forward:r.backward;for(var o in this.waypoints[n]){var s=this.waypoints[n][o];if(null!==s.triggerPoint){var a=r.oldScroll<s.triggerPoint,l=r.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(i),e[s.group.id]=s.group)}}}for(var u in e)e[u].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},i.prototype.innerHeight=function(){return this.element==this.element.window?m.viewportHeight():this.adapter.innerHeight()},i.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},i.prototype.innerWidth=function(){return this.element==this.element.window?m.viewportWidth():this.adapter.innerWidth()},i.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var n in this.waypoints[t])e.push(this.waypoints[t][n]);for(var r=0,i=e.length;r<i;r++)e[r].destroy()},i.prototype.refresh=function(){var e,t=this.element==this.element.window,n=t?void 0:this.adapter.offset(),r={};for(var i in this.handleScroll(),e={horizontal:{contextOffset:t?0:n.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:n.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var o=e[i];for(var s in this.waypoints[i]){var a,l,u,c,d=this.waypoints[i][s],h=d.options.offset,f=d.triggerPoint,p=0,g=null==f;d.element!==d.element.window&&(p=d.adapter.offset()[o.offsetProp]),"function"==typeof h?h=h.apply(d):"string"==typeof h&&(h=parseFloat(h),-1<d.options.offset.indexOf("%")&&(h=Math.ceil(o.contextDimension*h/100))),a=o.contextScroll-o.contextOffset,d.triggerPoint=Math.floor(p+a-h),l=f<o.oldScroll,u=d.triggerPoint>=o.oldScroll,c=!l&&!u,!g&&(l&&u)?(d.queueTrigger(o.backward),r[d.group.id]=d.group):(!g&&c||g&&o.oldScroll>=d.triggerPoint)&&(d.queueTrigger(o.forward),r[d.group.id]=d.group)}}return m.requestAnimationFrame(function(){for(var e in r)r[e].flushTriggers()}),this},i.findOrCreateByElement=function(e){return i.findByElement(e)||new i(e)},i.refreshAll=function(){for(var e in r)r[e].refresh()},i.findByElement=function(e){return r[e.waypointContextKey]},window.onload=function(){e&&e(),i.refreshAll()},m.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},m.Context=i}(),function(){"use strict";function s(e,t){return e.triggerPoint-t.triggerPoint}function a(e,t){return t.triggerPoint-e.triggerPoint}var t={vertical:{},horizontal:{}},n=window.Waypoint;function r(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),t[this.axis][this.name]=this}r.prototype.add=function(e){this.waypoints.push(e)},r.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},r.prototype.flushTriggers=function(){for(var e in this.triggerQueues){var t=this.triggerQueues[e],n="up"===e||"left"===e;t.sort(n?a:s);for(var r=0,i=t.length;r<i;r+=1){var o=t[r];!o.options.continuous&&r!==t.length-1||o.trigger([e])}}this.clearTriggerQueues()},r.prototype.next=function(e){this.waypoints.sort(s);var t=n.Adapter.inArray(e,this.waypoints);return t===this.waypoints.length-1?null:this.waypoints[t+1]},r.prototype.previous=function(e){this.waypoints.sort(s);var t=n.Adapter.inArray(e,this.waypoints);return t?this.waypoints[t-1]:null},r.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},r.prototype.remove=function(e){var t=n.Adapter.inArray(e,this.waypoints);-1<t&&this.waypoints.splice(t,1)},r.prototype.first=function(){return this.waypoints[0]},r.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},r.findOrCreate=function(e){return t[e.axis][e.name]||new r(e)},n.Group=r}(),function(){"use strict";var e=window.Waypoint;function r(e){return e===e.window}function i(e){return r(e)?e:e.defaultView}function t(e){this.element=e,this.handlers={}}t.prototype.innerHeight=function(){return r(this.element)?this.element.innerHeight:this.element.clientHeight},t.prototype.innerWidth=function(){return r(this.element)?this.element.innerWidth:this.element.clientWidth},t.prototype.off=function(e,t){function n(e,t,n){for(var r=0,i=t.length-1;r<i;r++){var o=t[r];n&&n!==o||e.removeEventListener(o)}}var r=e.split("."),i=r[0],o=r[1],s=this.element;if(o&&this.handlers[o]&&i)n(s,this.handlers[o][i],t),this.handlers[o][i]=[];else if(i)for(var a in this.handlers)n(s,this.handlers[a][i]||[],t),this.handlers[a][i]=[];else if(o&&this.handlers[o]){for(var l in this.handlers[o])n(s,this.handlers[o][l],t);this.handlers[o]={}}},t.prototype.offset=function(){if(!this.element.ownerDocument)return null;var e=this.element.ownerDocument.documentElement,t=i(this.element.ownerDocument),n={top:0,left:0};return this.element.getBoundingClientRect&&(n=this.element.getBoundingClientRect()),{top:n.top+t.pageYOffset-e.clientTop,left:n.left+t.pageXOffset-e.clientLeft}},t.prototype.on=function(e,t){var n=e.split("."),r=n[0],i=n[1]||"__default",o=this.handlers[i]=this.handlers[i]||{};(o[r]=o[r]||[]).push(t),this.element.addEventListener(r,t)},t.prototype.outerHeight=function(e){var t,n=this.innerHeight();return e&&!r(this.element)&&(t=window.getComputedStyle(this.element),n+=parseInt(t.marginTop,10),n+=parseInt(t.marginBottom,10)),n},t.prototype.outerWidth=function(e){var t,n=this.innerWidth();return e&&!r(this.element)&&(t=window.getComputedStyle(this.element),n+=parseInt(t.marginLeft,10),n+=parseInt(t.marginRight,10)),n},t.prototype.scrollLeft=function(){var e=i(this.element);return e?e.pageXOffset:this.element.scrollLeft},t.prototype.scrollTop=function(){var e=i(this.element);return e?e.pageYOffset:this.element.scrollTop},t.extend=function(){var e=Array.prototype.slice.call(arguments);function t(e,t){if("object"==typeof e&&"object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}for(var n=1,r=e.length;n<r;n++)t(e[0],e[n]);return e[0]},t.inArray=function(e,t,n){return null==t?-1:t.indexOf(e,n)},t.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.adapters.push({name:"noframework",Adapter:t}),e.Adapter=t}(),function(){"use strict";function e(){}var r=window.Waypoint;function t(e){this.options=r.Adapter.extend({},t.defaults,e),this.axis=this.options.horizontal?"horizontal":"vertical",this.waypoints=[],this.element=this.options.element,this.createWaypoints()}t.prototype.createWaypoints=function(){for(var e={vertical:[{down:"enter",up:"exited",offset:"100%"},{down:"entered",up:"exit",offset:"bottom-in-view"},{down:"exit",up:"entered",offset:0},{down:"exited",up:"enter",offset:function(){return-this.adapter.outerHeight()}}],horizontal:[{right:"enter",left:"exited",offset:"100%"},{right:"entered",left:"exit",offset:"right-in-view"},{right:"exit",left:"entered",offset:0},{right:"exited",left:"enter",offset:function(){return-this.adapter.outerWidth()}}]},t=0,n=e[this.axis].length;t<n;t++){var r=e[this.axis][t];this.createWaypoint(r)}},t.prototype.createWaypoint=function(e){var t,n=this;this.waypoints.push(new r({context:this.options.context,element:this.options.element,enabled:this.options.enabled,handler:function(e){n.options[t[e]].call(n,e)},offset:(t=e).offset,horizontal:this.options.horizontal}))},t.prototype.destroy=function(){for(var e=0,t=this.waypoints.length;e<t;e++)this.waypoints[e].destroy();this.waypoints=[]},t.prototype.disable=function(){for(var e=0,t=this.waypoints.length;e<t;e++)this.waypoints[e].disable()},t.prototype.enable=function(){for(var e=0,t=this.waypoints.length;e<t;e++)this.waypoints[e].enable()},t.defaults={context:window,enabled:!0,enter:e,entered:e,exit:e,exited:e},r.Inview=t}(),$(function(){header(),hamburger(),waypoint_init(),waypoints(),why()}),document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("calendar");new FullCalendar.Calendar(e,{plugins:["dayGrid","timeGrid","googleCalendar"],height:"auto",header:{left:"title",center:"",right:"today,dayGridMonth,timeGridWeek prev,next "},views:{dayGrid:{hiddenDays:[0,6,7]},timeGrid:{minTime:"10:00:00",maxTime:"17:00:00",columnHeaderFormat:{weekday:"short"},hiddenDays:[0,6,7]}},firstDay:1,defaultView:"dayGridMonth",googleCalendarApiKey:"AIzaSyAGowGJYx6dOaQvG_vSUI73uT88VWOTcNQ",events:{googleCalendarId:"davidawindham.com_bvrht1f8n2vgldgjenpgfdd4bk@group.calendar.google.com",className:"gcal-event"},eventRender:function(e){},eventClick:function(e){e.jsEvent.preventDefault()}}).render()});