if(!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((n=n||self).bootstrap={},n.jQuery)}(this,function(n,t){"use strict";function hf(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function l(n,t,i){return t&&hf(n.prototype,t),i&&hf(n,i),n}function u(n){for(var i,r,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){var r,u,f;r=n;f=i[u=t];u in r?Object.defineProperty(r,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):r[u]=f});return n}function ao(n){var u=this,r=!1;return t(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(u)},n),this}function gf(n){return n&&"[object Function]"==={}.toString.call(n)}function nt(n,t){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return t?i[t]:i}function lu(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function hi(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=nt(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/(auto|scroll|overlay)/.test(i+u+r)?n:hi(lu(n))}function ht(n){return 11===n?au:10===n?vu:au||vu}function ct(n){var r,t,i;if(!n)return document.documentElement;for(r=ht(10)?document.body:null,t=n.offsetParent||null;t===r&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===nt(t,"position")?ct(t):t:n?n.ownerDocument.documentElement:document.documentElement}function yu(n){return null!==n.parentNode?yu(n.parentNode):n}function hr(n,t){var u,h,i,f;if(!(n&&n.nodeType&&t&&t.nodeType))return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?"BODY"===(h=(u=i).nodeName)||"HTML"!==h&&ct(u.firstElementChild)!==u?ct(i):i:(f=yu(n),f.host?hr(f.host,t):hr(n,yu(t).host))}function lt(n){var t="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=n.nodeName,r;return"BODY"!==i&&"HTML"!==i?n[t]:(r=n.ownerDocument.documentElement,(n.ownerDocument.scrollingElement||r)[t])}function ne(n,t){var i="x"===t?"Left":"Top",r="Left"===i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function te(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],ht(10)?parseInt(i["offset"+n])+parseInt(r["margin"+("Height"===n?"Top":"Left")])+parseInt(r["margin"+("Height"===n?"Bottom":"Right")]):0)}function ie(n){var i=n.body,t=n.documentElement,r=ht(10)&&getComputedStyle(t);return{height:te("Height",i,t,r),width:te("Width",i,t,r)}}function p(n){return h({},n,{right:n.left+n.width,bottom:n.top+n.height})}function pu(n){var t={},r,u,o;try{ht(10)?(t=n.getBoundingClientRect(),r=lt(n,"top"),u=lt(n,"left"),t.top+=r,t.left+=u,t.bottom+=r,t.right+=u):t=n.getBoundingClientRect()}catch(n){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s="HTML"===n.nodeName?ie(n.ownerDocument):{},h=s.width||n.clientWidth||i.right-i.left,c=s.height||n.clientHeight||i.bottom-i.top,f=n.offsetWidth-h,e=n.offsetHeight-c;return(f||e)&&(o=nt(n),f-=ne(o,"x"),e-=ne(o,"y"),i.width-=f,i.height-=e),p(i)}function wu(n,t){var l=2<arguments.length&&void 0!==arguments[2]&&arguments[2],a=ht(10),v="HTML"===t.nodeName,u=pu(n),r=pu(t),s=hi(n),f=nt(t),h=parseFloat(f.borderTopWidth,10),c=parseFloat(f.borderLeftWidth,10),i,e,o;return l&&v&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0)),i=p({top:u.top-r.top-h,left:u.left-r.left-c,width:u.width,height:u.height}),(i.marginTop=0,i.marginLeft=0,!a&&v)&&(e=parseFloat(f.marginTop,10),o=parseFloat(f.marginLeft,10),i.top-=h-e,i.bottom-=h-e,i.left-=c-o,i.right-=c-o,i.marginTop=e,i.marginLeft=o),(a&&!l?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(i=function(n,t){var f=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=lt(t,"top"),u=lt(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}(i,t)),i}function re(n){if(!n||!n.parentElement||ht())return document.documentElement;for(var t=n.parentElement;t&&"none"===nt(t,"transform");)t=t.parentElement;return t||document.documentElement}function bu(n,t,i,r){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},h=s?re(n):hr(n,t),e,f,o;if("viewport"===r)u=function(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=wu(n,t),u=Math.max(t.clientWidth,window.innerWidth||0),f=Math.max(t.clientHeight,window.innerHeight||0),e=r?0:lt(t),o=r?0:lt(t,"left");return p({top:e-i.top+i.marginTop,left:o-i.left+i.marginLeft,width:u,height:f})}(h,s);else if(e=void 0,"scrollParent"===r?"BODY"===(e=hi(lu(t))).nodeName&&(e=n.ownerDocument.documentElement):e="window"===r?n.ownerDocument.documentElement:r,f=wu(e,h,s),"HTML"!==e.nodeName||function n(t){var r=t.nodeName,i;return"BODY"===r||"HTML"===r?!1:"fixed"===nt(t,"position")?!0:(i=lu(t),!!i&&n(i))}(h))u=f;else{var c=ie(n.ownerDocument),l=c.height,a=c.width;u.top+=f.top-f.marginTop;u.bottom=l+f.top;u.left+=f.left-f.marginLeft;u.right=a+f.left}return o="number"==typeof(i=i||0),u.left+=o?i:i.left||0,u.top+=o?i:i.top||0,u.right-=o?i:i.right||0,u.bottom-=o?i:i.bottom||0,u}function ue(n,t,i,r,u){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var f=bu(i,r,l,u),e={top:{width:f.width,height:t.top-f.top},right:{width:f.right-t.right,height:f.height},bottom:{width:f.width,height:f.bottom-t.bottom},left:{width:t.left-f.left,height:f.height}},o=Object.keys(e).map(function(n){return h({key:n},e[n],{area:(t=e[n],t.width*t.height)});var t}).sort(function(n,t){return t.area-n.area}),s=o.filter(function(n){var t=n.width,r=n.height;return t>=i.clientWidth&&r>=i.clientHeight}),a=0<s.length?s[0].key:o[0].key,c=n.split("-")[1];return a+(c?"-"+c:"")}function fe(n,t,i){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return wu(i,r?re(t):hr(t,i),r)}function ee(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function cr(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function oe(n,t,i){i=i.split("-")[0];var r=ee(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[cr(f)],e}function ci(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function se(n,t,i){return(void 0===i?n:n.slice(0,function(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=ci(n,function(n){return n[t]===i});return n.indexOf(r)}(n,"name",i))).forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n.function||n.fn;n.enabled&&gf(i)&&(t.offsets.popper=p(t.offsets.popper),t.offsets.reference=p(t.offsets.reference),t=i(t,n))}),t}function he(n,t){return n.some(function(n){var i=n.name;return n.enabled&&i===t})}function ku(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function ce(n){var t=n.ownerDocument;return t?t.defaultView:window}function uh(n,t,i,r){i.updateBound=r;ce(n).addEventListener("resize",i.updateBound,{passive:!0});var u=hi(n);return function n(t,i,r,u){var e="BODY"===t.nodeName,f=e?t.ownerDocument.defaultView:t;f.addEventListener(i,r,{passive:!0});e||n(hi(f.parentNode),i,r,u);u.push(f)}(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function fh(){var t,n;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,n=this.state,ce(t).removeEventListener("resize",n.updateBound),n.scrollParents.forEach(function(t){t.removeEventListener("scroll",n.updateBound)}),n.updateBound=null,n.scrollParents=[],n.scrollElement=null,n.eventsEnabled=!1,n))}function du(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function gu(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&du(t[i])&&(r="px");n.style[i]=t[i]+r})}function ae(n,t,i){var u=ci(n,function(n){return n.name===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function ve(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=lr.indexOf(n),i=lr.slice(t+1).concat(lr.slice(0,t));return r?i.reverse():i}function hh(n,t,i,r){var s=[0,0],h=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(ci(u,function(n){return-1!==n.search(/,|\s/)})),e,o;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),e=/\s*,\s*|\s+/,o=-1!==f?[u.slice(0,f).concat([u[f].split(e)[0]]),[u[f].split(e)[1]].concat(u.slice(f+1))]:[u],(o=o.map(function(n,r){var f=(1===r?!h:h)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return function(n,t,i,r){var o=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),f=+o[1],u=o[2],e;if(!f)return n;if(0!==u.indexOf("%"))return"vh"!==u&&"vw"!==u?f:("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*f;e=void 0;switch(u){case"%p":e=i;break;case"%":case"%r":default:e=r}return p(e)[t]/100*f}(n,f,t,i)})})).forEach(function(n,t){n.forEach(function(i,r){du(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function de(n,t,i){if(0===n.length)return n;if(i&&"function"==typeof i)return i(n);for(var u=(new window.DOMParser).parseFromString(n,"text/html"),e=Object.keys(t),f=[].slice.call(u.body.querySelectorAll("*")),o=function(n){var i=f[n],o=i.nodeName.toLowerCase(),r,u;if(-1===e.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";r=[].slice.call(i.attributes);u=[].concat(t["*"]||[],t[o]||[]);r.forEach(function(n){(function(n,t){var i=n.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===vc.indexOf(i)||Boolean(n.nodeValue.match(yc)||n.nodeValue.match(pc));for(var u=t.filter(function(n){return n instanceof RegExp}),r=0,f=u.length;r<f;r++)if(i.match(u[r]))return!0;return!1})(n,u)||i.removeAttribute(n.nodeName)})},r=0,s=f.length;r<s;r++)o(r);return u.body.innerHTML}var dt,i,df,au,vu,le,nf,lr,ye,w;t=t&&t.hasOwnProperty("default")?t.default:t;dt="transitionend";i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){for(;n+=~~(1e6*Math.random()),document.getElementById(n););return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target"),i;t&&"#"!==t||(i=n.getAttribute("href"),t=i&&"#"!==i?i.trim():"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var i=t(n).css("transition-duration"),r=t(n).css("transition-delay"),u=parseFloat(i),f=parseFloat(r);return u||f?(i=i.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(i)+parseFloat(r))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(dt)},supportsTransitionEnd:function(){return Boolean(dt)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,t,r){var u,s;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var e=r[u],f=t[u],o=f&&i.isElement(f)?"element":(s=f,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(e).test(o))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+o+'" but expected type "'+e+'".');}},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"!=typeof n.getRootNode)return n instanceof ShadowRoot?n:n.parentNode?i.findShadowRoot(n.parentNode):null;var t=n.getRootNode();return t instanceof ShadowRoot?t:null}};t.fn.emulateTransitionEnd=ao;t.event.special[i.TRANSITION_END]={bindType:dt,delegateType:dt,handle:function(n){if(t(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var gt="alert",ur="bs.alert",iu="."+ur,vo=t.fn[gt],ru={CLOSE:"close"+iu,CLOSED:"closed"+iu,CLICK_DATA_API:"click"+iu+".data-api"},yo="alert",po="fade",wo="show",ft=function(){function n(n){this._element=n}var r=n.prototype;return r.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},r.dispose=function(){t.removeData(this._element,ur);this._element=null},r._getRootElement=function(n){var u=i.getSelectorFromElement(n),r=!1;return u&&(r=document.querySelector(u)),r||(r=t(n).closest("."+yo)[0]),r},r._triggerCloseEvent=function(n){var i=t.Event(ru.CLOSE);return t(n).trigger(i),i},r._removeElement=function(n){var u=this,r;(t(n).removeClass(wo),t(n).hasClass(po))?(r=i.getTransitionDurationFromElement(n),t(n).one(i.TRANSITION_END,function(t){return u._destroyElement(n,t)}).emulateTransitionEnd(r)):this._destroyElement(n)},r._destroyElement=function(n){t(n).detach().trigger(ru.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(ur);r||(r=new n(this),u.data(ur,r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(ru.CLICK_DATA_API,'[data-dismiss="alert"]',ft._handleDismiss(new ft));t.fn[gt]=ft._jQueryInterface;t.fn[gt].Constructor=ft;t.fn[gt].noConflict=function(){return t.fn[gt]=vo,ft._jQueryInterface};var ni="button",fr="bs.button",uu="."+fr,fu=".data-api",bo=t.fn[ni],ti="active",ko="btn",go="focus",cf='[data-toggle^="button"]',ns='[data-toggle="buttons"]',ts='input:not([type="hidden"])',is=".active",lf=".btn",af={CLICK_DATA_API:"click"+uu+fu,FOCUS_BLUR_DATA_API:"focus"+uu+fu+" blur"+uu+fu},ii=function(){function n(n){this._element=n}var i=n.prototype;return i.toggle=function(){var r=!0,f=!0,i=t(this._element).closest(ns)[0],n,u;if(i&&(n=this._element.querySelector(ts),n)){if("radio"===n.type&&(n.checked&&this._element.classList.contains(ti)?r=!1:(u=i.querySelector(is),u&&t(u).removeClass(ti))),r){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!this._element.classList.contains(ti);t(n).trigger("change")}n.focus();f=!1}f&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(ti));r&&t(this._element).toggleClass(ti)},i.dispose=function(){t.removeData(this._element,fr);this._element=null},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(fr);r||(r=new n(this),t(this).data(fr,r));"toggle"===i&&r[i]()})},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(af.CLICK_DATA_API,cf,function(n){n.preventDefault();var i=n.target;t(i).hasClass(ko)||(i=t(i).closest(lf));ii._jQueryInterface.call(t(i),"toggle")}).on(af.FOCUS_BLUR_DATA_API,cf,function(n){var i=t(n.target).closest(lf)[0];t(i).toggleClass(go,/^focus(in)?$/.test(n.type))});t.fn[ni]=ii._jQueryInterface;t.fn[ni].Constructor=ii;t.fn[ni].noConflict=function(){return t.fn[ni]=bo,ii._jQueryInterface};var et="carousel",ri="bs.carousel",e="."+ri,vf=".data-api",rs=t.fn[et],eu={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},us={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},er="next",or="prev",fs="left",es="right",o={SLIDE:"slide"+e,SLID:"slid"+e,KEYDOWN:"keydown"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e,TOUCHSTART:"touchstart"+e,TOUCHMOVE:"touchmove"+e,TOUCHEND:"touchend"+e,POINTERDOWN:"pointerdown"+e,POINTERUP:"pointerup"+e,DRAG_START:"dragstart"+e,LOAD_DATA_API:"load"+e+vf,CLICK_DATA_API:"click"+e+vf},os="carousel",k="active",ss="slide",hs="carousel-item-right",cs="carousel-item-left",ls="carousel-item-next",as="carousel-item-prev",vs="pointer-event",ys=".active",ou=".active.carousel-item",ps=".carousel-item",ws=".carousel-item img",bs=".carousel-item-next, .carousel-item-prev",ks=".carousel-indicators",ds='[data-ride="carousel"]',yf={TOUCH:"touch",PEN:"pen"},ot=function(){function r(n,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=n;this._indicatorsElement=this._element.querySelector(ks);this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var n=r.prototype;return n.next=function(){this._isSliding||this._slide(er)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(or)},n.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(bs)&&(i.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.cycle=function(n){n||(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))},n.to=function(n){var u=this,i,r;if(this._activeElement=this._element.querySelector(ou),i=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one(o.SLID,function(){return u.to(n)});else{if(i===n)return this.pause(),void this.cycle();r=i<n?er:or;this._slide(r,this._items[n])}},n.dispose=function(){t(this._element).off(e);t.removeData(this._element,ri);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=u({},eu,n),i.typeCheckConfig(et,n,us),n},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX),n;t<=40||(n=t/this.touchDeltaX,0<n&&this.prev(),n<0&&this.next())},n._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on(o.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&t(this._element).on(o.MOUSEENTER,function(t){return n.pause(t)}).on(o.MOUSELEAVE,function(t){return n.cycle(t)});this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var n=this,i,r;this._touchSupported&&(i=function(t){n._pointerEvent&&yf[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){n._pointerEvent&&yf[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX);n._handleSwipe();"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},t(this._element.querySelectorAll(ws)).on(o.DRAG_START,function(n){return n.preventDefault()}),this._pointerEvent?(t(this._element).on(o.POINTERDOWN,function(n){return i(n)}),t(this._element).on(o.POINTERUP,function(n){return r(n)}),this._element.classList.add(vs)):(t(this._element).on(o.TOUCHSTART,function(n){return i(n)}),t(this._element).on(o.TOUCHMOVE,function(t){var i;n.touchDeltaX=(i=t).originalEvent.touches&&1<i.originalEvent.touches.length?0:i.originalEvent.touches[0].clientX-n.touchStartX}),t(this._element).on(o.TOUCHEND,function(n){return r(n)})))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(ps)):[],this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u=n===er,f=n===or,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+(n===or?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(this._element.querySelector(ou)),r=t.Event(o.SLIDE,{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r},n._setActiveIndicatorElement=function(n){var r,i;this._indicatorsElement&&(r=[].slice.call(this._indicatorsElement.querySelectorAll(ys)),t(r).removeClass(k),i=this._indicatorsElement.children[this._getItemIndex(n)],i&&t(i).addClass(k))},n._slide=function(n,r){var e,s,h,a=this,f=this._element.querySelector(ou),p=this._getItemIndex(f),u=r||f&&this._getItemByDirection(n,f),w=this._getItemIndex(u),v=Boolean(this._interval),c,l,y;(h=n===er?(e=cs,s=ls,fs):(e=hs,s=as,es),u&&t(u).hasClass(k))?this._isSliding=!1:!this._triggerSlideEvent(u,h).isDefaultPrevented()&&f&&u&&(this._isSliding=!0,v&&this.pause(),this._setActiveIndicatorElement(u),c=t.Event(o.SLID,{relatedTarget:u,direction:h,from:p,to:w}),t(this._element).hasClass(ss)?(t(u).addClass(s),i.reflow(u),t(f).addClass(e),t(u).addClass(e),l=parseInt(u.getAttribute("data-interval"),10),this._config.interval=l?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,l):this._config.defaultInterval||this._config.interval,y=i.getTransitionDurationFromElement(f),t(f).one(i.TRANSITION_END,function(){t(u).removeClass(e+" "+s).addClass(k);t(f).removeClass(k+" "+s+" "+e);a._isSliding=!1;setTimeout(function(){return t(a._element).trigger(c)},0)}).emulateTransitionEnd(y)):(t(f).removeClass(k),t(u).addClass(k),this._isSliding=!1,t(this._element).trigger(c)),v&&this.cycle())},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(ri),f=u({},eu,t(this).data()),e;if("object"==typeof n&&(f=u({},f,n)),e="string"==typeof n?n:f.slide,i||(i=new r(this,f),t(this).data(ri,i)),"number"==typeof n)i.to(n);else if("string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}else f.interval&&f.ride&&(i.pause(),i.cycle())})},r._dataApiClickHandler=function(n){var s=i.getSelectorFromElement(this),f,o,e;s&&(f=t(s)[0],f&&t(f).hasClass(os)&&(o=u({},t(f).data(),t(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),r._jQueryInterface.call(t(f),o),e&&t(f).data(ri).to(e),n.preventDefault()))},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return eu}}]),r}();t(document).on(o.CLICK_DATA_API,"[data-slide], [data-slide-to]",ot._dataApiClickHandler);t(window).on(o.LOAD_DATA_API,function(){for(var i,r=[].slice.call(document.querySelectorAll(ds)),n=0,u=r.length;n<u;n++)i=t(r[n]),ot._jQueryInterface.call(i,i.data())});t.fn[et]=ot._jQueryInterface;t.fn[et].Constructor=ot;t.fn[et].noConflict=function(){return t.fn[et]=rs,ot._jQueryInterface};var st="collapse",d="bs.collapse",ui="."+d,gs=t.fn[st],su={toggle:!0,parent:""},nh={toggle:"boolean",parent:"(string|element)"},fi={SHOW:"show"+ui,SHOWN:"shown"+ui,HIDE:"hide"+ui,HIDDEN:"hidden"+ui,CLICK_DATA_API:"click"+ui+".data-api"},g="show",ei="collapse",sr="collapsing",hu="collapsed",pf="width",th="height",ih=".show, .collapsing",wf='[data-toggle="collapse"]',oi=function(){function r(n,t){this._isTransitioning=!1;this._element=n;this._config=this._getConfig(t);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var f=[].slice.call(document.querySelectorAll(wf)),r=0,o=f.length;r<o;r++){var e=f[r],u=i.getSelectorFromElement(e),s=[].slice.call(document.querySelectorAll(u)).filter(function(t){return t===n});null!==u&&0<s.length&&(this._selector=u,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var n=r.prototype;return n.toggle=function(){t(this._element).hasClass(g)?this.hide():this.show()},n.show=function(){var n,e,u=this,o,f,s,h;this._isTransitioning||t(this._element).hasClass(g)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(ih)).filter(function(n){return"string"==typeof u._config.parent?n.getAttribute("data-parent")===u._config.parent:n.classList.contains(ei)})).length&&(n=null),n&&(e=t(n).not(this._selector).data(d))&&e._isTransitioning)||(o=t.Event(fi.SHOW),(t(this._element).trigger(o),o.isDefaultPrevented())||(n&&(r._jQueryInterface.call(t(n).not(this._selector),"hide"),e||t(n).data(d,null)),f=this._getDimension(),t(this._element).removeClass(ei).addClass(sr),this._element.style[f]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(hu).attr("aria-expanded",!0),this.setTransitioning(!0),s="scroll"+(f[0].toUpperCase()+f.slice(1)),h=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(){t(u._element).removeClass(sr).addClass(ei).addClass(g);u._element.style[f]="";u.setTransitioning(!1);t(u._element).trigger(fi.SHOWN)}).emulateTransitionEnd(h),this._element.style[f]=this._element[s]+"px"))},n.hide=function(){var s=this,u,n,f,r,e,o,h;if(!this._isTransitioning&&t(this._element).hasClass(g)&&(u=t.Event(fi.HIDE),t(this._element).trigger(u),!u.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",i.reflow(this._element),t(this._element).addClass(sr).removeClass(ei).removeClass(g),f=this._triggerArray.length,0<f)for(r=0;r<f;r++)e=this._triggerArray[r],o=i.getSelectorFromElement(e),null!==o&&(t([].slice.call(document.querySelectorAll(o))).hasClass(g)||t(e).addClass(hu).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";h=i.getTransitionDurationFromElement(this._element);t(this._element).one(i.TRANSITION_END,function(){s.setTransitioning(!1);t(s._element).removeClass(sr).addClass(ei).trigger(fi.HIDDEN)}).emulateTransitionEnd(h)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){t.removeData(this._element,d);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=u({},su,n)).toggle=Boolean(n.toggle),i.typeCheckConfig(st,n,nh),n},n._getDimension=function(){return t(this._element).hasClass(pf)?pf:th},n._getParent=function(){var n,e=this,u,f;return i.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent),u='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',f=[].slice.call(n.querySelectorAll(u)),t(f).each(function(n,t){e._addAriaAndCollapsedClass(r._getTargetFromElement(t),[t])}),n},n._addAriaAndCollapsedClass=function(n,i){var r=t(n).hasClass(g);i.length&&t(i).toggleClass(hu,!r).attr("aria-expanded",r)},r._getTargetFromElement=function(n){var t=i.getSelectorFromElement(n);return t?document.querySelector(t):null},r._jQueryInterface=function(n){return this.each(function(){var f=t(this),i=f.data(d),e=u({},su,f.data(),"object"==typeof n&&n?n:{});if(!i&&e.toggle&&/show|hide/.test(n)&&(e.toggle=!1),i||(i=new r(this,e),f.data(d,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return su}}]),r}();t(document).on(fi.CLICK_DATA_API,wf,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var r=t(this),u=i.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(u));t(f).each(function(){var n=t(this),i=n.data(d)?"toggle":r.data();oi._jQueryInterface.call(n,i)})});t.fn[st]=oi._jQueryInterface;t.fn[st].Constructor=oi;t.fn[st].noConflict=function(){return t.fn[st]=gs,oi._jQueryInterface};for(var si="undefined"!=typeof window&&"undefined"!=typeof document,bf=["Edge","Trident","Firefox"],kf=0,cu=0;cu<bf.length;cu+=1)if(si&&0<=navigator.userAgent.indexOf(bf[cu])){kf=1;break}df=si&&window.Promise?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},kf))}};au=si&&!(!window.MSInputMethodContext||!document.documentMode);vu=si&&/MSIE 10/.test(navigator.userAgent);var rh=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),at=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};le=si&&/Firefox/i.test(navigator.userAgent);nf=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];lr=nf.slice(3);var eh="flip",oh="clockwise",sh="counterclockwise";ye={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(n){var r=n.placement,c=r.split("-")[0],u=r.split("-")[1];if(u){var f=n.offsets,i=f.reference,e=f.popper,o=-1!==["bottom","top"].indexOf(c),t=o?"left":"top",s=o?"width":"height",l={start:at({},t,i[t]),end:at({},t,i[t]+i[s]-e[s])};n.offsets.popper=h({},e,l[u])}return n}},offset:{order:200,enabled:!0,fn:function(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=du(+f)?[+f,0]:hh(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(n,t){var f=t.boundariesElement||ct(n.instance.popper),u;n.instance.reference===f&&(f=ct(f));var e=ku("transform"),r=n.instance.popper.style,o=r.top,s=r.left,c=r[e];r.top="";r.left="";r[e]="";u=bu(n.instance.popper,n.instance.reference,t.padding,f,n.positionFixed);r.top=o;r.left=s;r[e]=c;t.boundaries=u;var l=t.priority,i=n.offsets.popper,a={primary:function(n){var r=i[n];return i[n]<u[n]&&!t.escapeWithReference&&(r=Math.max(i[n],u[n])),at({},n,r)},secondary:function(n){var r="right"===n?"left":"top",f=i[r];return i[n]>u[n]&&!t.escapeWithReference&&(f=Math.min(i[r],u[n]-("right"===n?i.width:i.height))),at({},r,f)}};return l.forEach(function(n){var t=-1!==["left","top"].indexOf(n)?"primary":"secondary";i=h({},i,a[t](n))}),n.offsets.popper=i,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,t){var h,r;if(!ae(n.instance.modifiers,"arrow","keepTogether"))return n;if(r=t.element,"string"==typeof r){if(!(r=n.instance.popper.querySelector(r)))return n}else if(!n.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var w=n.placement.split("-")[0],v=n.offsets,e=v.popper,u=v.reference,o=-1!==["left","right"].indexOf(w),c=o?"height":"width",l=o?"Top":"Left",i=l.toLowerCase(),b=o?"left":"top",s=o?"bottom":"right",f=ee(r)[c];u[s]-f<e[i]&&(n.offsets.popper[i]-=e[i]-(u[s]-f));u[i]+f>e[s]&&(n.offsets.popper[i]+=u[i]+f-e[s]);n.offsets.popper=p(n.offsets.popper);var k=u[i]+u[c]/2-f/2,y=nt(n.instance.popper),d=parseFloat(y["margin"+l],10),g=parseFloat(y["border"+l+"Width"],10),a=k-n.offsets.popper[i]-d-g;return a=Math.max(Math.min(e[c]-f,a),0),n.arrowElement=r,n.offsets.arrow=(at(h={},i,Math.round(a)),at(h,b,""),h),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(n,t){if(he(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var f=bu(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],e=cr(i),r=n.placement.split("-")[1]||"",u=[];switch(t.behavior){case eh:u=[i,e];break;case oh:u=ve(i);break;case sh:u=ve(i,!0);break;default:u=t.behavior}return u.forEach(function(o,s){if(i!==o||u.length===s+1)return n;i=n.placement.split("-")[0];e=cr(i);var y,l=n.offsets.popper,a=n.offsets.reference,c=Math.floor,p="left"===i&&c(l.right)>c(a.left)||"right"===i&&c(l.left)<c(a.right)||"top"===i&&c(l.bottom)>c(a.top)||"bottom"===i&&c(l.top)<c(a.bottom),w=c(l.left)<c(f.left),b=c(l.right)>c(f.right),k=c(l.top)<c(f.top),d=c(l.bottom)>c(f.bottom),g="left"===i&&w||"right"===i&&b||"top"===i&&k||"bottom"===i&&d,v=-1!==["top","bottom"].indexOf(i),nt=!!t.flipVariations&&(v&&"start"===r&&w||v&&"end"===r&&b||!v&&"start"===r&&k||!v&&"end"===r&&d);(p||g||nt)&&(n.flipped=!0,(p||g)&&(i=u[s+1]),nt&&(r="end"===(y=r)?"start":"start"===y?"end":y),n.placement=i+(r?"-"+r:""),n.offsets.popper=h({},n.offsets.popper,oe(n.instance.popper,n.offsets.reference,n.placement)),n=se(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var r=n.placement,t=r.split("-")[0],u=n.offsets,i=u.popper,e=u.reference,f=-1!==["left","right"].indexOf(t),o=-1===["top","left"].indexOf(t);return i[f?"left":"top"]=e[t]-(o?i[f?"width":"height"]:0),n.placement=cr(r),n.offsets.popper=p(i),n}},hide:{order:800,enabled:!0,fn:function(n){if(!ae(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=ci(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(n,t){var ht=t.x,lt=t.y,at=n.offsets.popper,a=ci(n.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,et,ot,st;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var c,l,v,r,nt,f,tt,y,p,w,it,b,rt,k,vt=void 0!==a?a:t.gpuAcceleration,e=ct(n.instance.popper),ut=pu(e),i={position:at.position},u=(c=n,l=window.devicePixelRatio<2||!le,v=c.offsets,r=v.popper,nt=v.reference,f=Math.round,tt=Math.floor,y=function(n){return n},p=f(nt.width),w=f(r.width),it=-1!==["left","right"].indexOf(c.placement),b=-1!==c.placement.indexOf("-"),k=l?f:y,{left:(rt=l?it||b||p%2==w%2?f:tt:y)(p%2==1&&w%2==1&&!b&&l?r.left-1:r.left),top:k(r.top),bottom:k(r.bottom),right:rt(r.right)}),o="bottom"===ht?"top":"bottom",s="right"===lt?"left":"right",ft=ku("transform"),d=void 0,g=void 0;return(g="bottom"===o?"HTML"===e.nodeName?-e.clientHeight+u.bottom:-ut.height+u.bottom:u.top,d="right"===s?"HTML"===e.nodeName?-e.clientWidth+u.right:-ut.width+u.right:u.left,vt&&ft)?(i[ft]="translate3d("+d+"px, "+g+"px, 0)",i[o]=0,i[s]=0,i.willChange="transform"):(et="bottom"===o?-1:1,ot="right"===s?-1:1,i[o]=g*et,i[s]=d*ot,i.willChange=o+", "+s),st={"x-placement":n.placement},n.attributes=h({},st,n.attributes),n.styles=h({},i,n.styles),n.arrowStyles=h({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){var i,t;return gu(n.instance.popper,n.styles),i=n.instance.popper,t=n.attributes,Object.keys(t).forEach(function(n){!1!==t[n]?i.setAttribute(n,t[n]):i.removeAttribute(n)}),n.arrowElement&&Object.keys(n.arrowStyles).length&&gu(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=fe(u,t,n,i.positionFixed),e=ue(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),gu(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}};w=function(){function n(t,i){var r=this,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},f;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.scheduleUpdate=function(){return requestAnimationFrame(r.update)};this.update=df(this.update.bind(this));this.options=h({},n.Defaults,u);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=i&&i.jquery?i[0]:i;this.options.modifiers={};Object.keys(h({},n.Defaults.modifiers,u.modifiers)).forEach(function(t){r.options.modifiers[t]=h({},n.Defaults.modifiers[t]||{},u.modifiers?u.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return h({name:n},r.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&gf(n.onLoad)&&n.onLoad(r.reference,r.popper,r.options,n,r.state)});this.update();f=this.options.eventsEnabled;f&&this.enableEventListeners();this.state.eventsEnabled=f}return rh(n,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=fe(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=ue(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=oe(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=se(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,he(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ku("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=uh(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return fh.call(this)}}]),n}();w.Utils=("undefined"!=typeof window?window:global).PopperUtils;w.placements=nf;w.Defaults=ye;var vt="dropdown",li="bs.dropdown",y="."+li,tf=".data-api",ch=t.fn[vt],lh=new RegExp("38|40|27"),f={HIDE:"hide"+y,HIDDEN:"hidden"+y,SHOW:"show"+y,SHOWN:"shown"+y,CLICK:"click"+y,CLICK_DATA_API:"click"+y+tf,KEYDOWN_DATA_API:"keydown"+y+tf,KEYUP_DATA_API:"keyup"+y+tf},ar="disabled",s="show",ah="dropup",vh="dropright",yh="dropleft",pe="dropdown-menu-right",ph="position-static",vr='[data-toggle="dropdown"]',rf=".dropdown-menu",wh=".navbar-nav",bh=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",kh="top-start",dh="top-end",gh="bottom-start",nc="bottom-end",tc="right-start",ic="left-start",rc={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},uc={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},b=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var r=n.prototype;return r.toggle=function(){var r,h,e,o,u;if(!this._element.disabled&&!t(this._element).hasClass(ar)&&(r=n._getParentFromElement(this._element),h=t(this._menu).hasClass(s),(n._clearMenus(),!h)&&(e={relatedTarget:this._element},o=t.Event(f.SHOW,e),t(r).trigger(o),!o.isDefaultPrevented()))){if(!this._inNavbar){if("undefined"==typeof w)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");u=this._element;"parent"===this._config.reference?u=r:i.isElement(this._config.reference)&&(u=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(u=this._config.reference[0]));"scrollParent"!==this._config.boundary&&t(r).addClass(ph);this._popper=new w(u,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(r).closest(wh).length&&t(document.body).children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).toggleClass(s);t(r).toggleClass(s).trigger(t.Event(f.SHOWN,e))}},r.show=function(){if(!(this._element.disabled||t(this._element).hasClass(ar)||t(this._menu).hasClass(s))){var i={relatedTarget:this._element},r=t.Event(f.SHOW,i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(t(this._menu).toggleClass(s),t(u).toggleClass(s).trigger(t.Event(f.SHOWN,i)))}},r.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(ar)&&t(this._menu).hasClass(s)){var i={relatedTarget:this._element},r=t.Event(f.HIDE,i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(t(this._menu).toggleClass(s),t(u).toggleClass(s).trigger(t.Event(f.HIDDEN,i)))}},r.dispose=function(){t.removeData(this._element,li);t(this._element).off(y);this._element=null;(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var n=this;t(this._element).on(f.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},r._getConfig=function(n){return n=u({},this.constructor.Default,t(this._element).data(),n),i.typeCheckConfig(vt,n,this.constructor.DefaultType),n},r._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);t&&(this._menu=t.querySelector(rf))}return this._menu},r._getPlacement=function(){var i=t(this._element.parentNode),n=gh;return i.hasClass(ah)?(n=kh,t(this._menu).hasClass(pe)&&(n=dh)):i.hasClass(vh)?n=tc:i.hasClass(yh)?n=ic:t(this._menu).hasClass(pe)&&(n=nc),n},r._detectNavbar=function(){return 0<t(this._element).closest(".navbar").length},r._getOffset=function(){var t=this,n={};return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=u({},n.offsets,t._config.offset(n.offsets,t._element)||{}),n}:n.offset=this._config.offset,n},r._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(li);if(r||(r=new n(this,"object"==typeof i?i:null),t(this).data(li,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},n._clearMenus=function(i){var l,h;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(var u=[].slice.call(document.querySelectorAll(vr)),r=0,a=u.length;r<a;r++){var e=n._getParentFromElement(u[r]),c=t(u[r]).data(li),o={relatedTarget:u[r]};(i&&"click"===i.type&&(o.clickEvent=i),c)&&(l=c._menu,!t(e).hasClass(s)||i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"keyup"===i.type&&9===i.which)&&t.contains(e,i.target)||(h=t.Event(f.HIDE,o),t(e).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),t(l).removeClass(s),t(e).removeClass(s).trigger(t.Event(f.HIDDEN,o)))))}},n._getParentFromElement=function(n){var t,r=i.getSelectorFromElement(n);return r&&(t=document.querySelector(r)),t||n.parentNode},n._dataApiKeydownHandler=function(i){var f,e,u,r,o;(/input|textarea/i.test(i.target.tagName)?32===i.which||27!==i.which&&(40!==i.which&&38!==i.which||t(i.target).closest(rf).length):!lh.test(i.which))||(i.preventDefault(),i.stopPropagation(),this.disabled||t(this).hasClass(ar))||(f=n._getParentFromElement(this),e=t(f).hasClass(s),e&&(!e||27!==i.which&&32!==i.which)?(u=[].slice.call(f.querySelectorAll(bh)),0!==u.length&&(r=u.indexOf(i.target),38===i.which&&0<r&&r--,40===i.which&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())):(27===i.which&&(o=f.querySelector(vr),t(o).trigger("focus")),t(this).trigger("click")))},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return rc}},{key:"DefaultType",get:function(){return uc}}]),n}();t(document).on(f.KEYDOWN_DATA_API,vr,b._dataApiKeydownHandler).on(f.KEYDOWN_DATA_API,rf,b._dataApiKeydownHandler).on(f.CLICK_DATA_API+" "+f.KEYUP_DATA_API,b._clearMenus).on(f.CLICK_DATA_API,vr,function(n){n.preventDefault();n.stopPropagation();b._jQueryInterface.call(t(this),"toggle")}).on(f.CLICK_DATA_API,".dropdown form",function(n){n.stopPropagation()});t.fn[vt]=b._jQueryInterface;t.fn[vt].Constructor=b;t.fn[vt].noConflict=function(){return t.fn[vt]=ch,b._jQueryInterface};var yt="modal",ai="bs.modal",c="."+ai,fc=t.fn[yt],uf={backdrop:!0,keyboard:!0,focus:!0,show:!0},ec={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},r={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,FOCUSIN:"focusin"+c,RESIZE:"resize"+c,CLICK_DISMISS:"click.dismiss"+c,KEYDOWN_DISMISS:"keydown.dismiss"+c,MOUSEUP_DISMISS:"mouseup.dismiss"+c,MOUSEDOWN_DISMISS:"mousedown.dismiss"+c,CLICK_DATA_API:"click"+c+".data-api"},oc="modal-dialog-scrollable",sc="modal-scrollbar-measure",hc="modal-backdrop",we="modal-open",pt="fade",yr="show",cc=".modal-dialog",lc=".modal-body",ac='[data-dismiss="modal"]',be=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ke=".sticky-top",vi=function(){function f(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(cc);this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._scrollbarWidth=0}var n=f.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var i=this,u;this._isShown||this._isTransitioning||(t(this._element).hasClass(pt)&&(this._isTransitioning=!0),u=t.Event(r.SHOW,{relatedTarget:n}),t(this._element).trigger(u),this._isShown||u.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(r.CLICK_DISMISS,ac,function(n){return i.hide(n)}),t(this._dialog).on(r.MOUSEDOWN_DISMISS,function(){t(i._element).one(r.MOUSEUP_DISMISS,function(n){t(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(n)})))},n.hide=function(n){var o=this,u,f,e;(n&&n.preventDefault(),this._isShown&&!this._isTransitioning)&&(u=t.Event(r.HIDE),(t(this._element).trigger(u),this._isShown&&!u.isDefaultPrevented())&&(this._isShown=!1,f=t(this._element).hasClass(pt),(f&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(r.FOCUSIN),t(this._element).removeClass(yr),t(this._element).off(r.CLICK_DISMISS),t(this._dialog).off(r.MOUSEDOWN_DISMISS),f)?(e=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(e)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(n){return t(n).off(c)});t(document).off(r.FOCUSIN);t.removeData(this._element,ai);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},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=u({},uf,n),i.typeCheckConfig(yt,n,ec),n},n._showElement=function(n){var u=this,e=t(this._element).hasClass(pt),o,f,s;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);t(this._dialog).hasClass(oc)?this._dialog.querySelector(lc).scrollTop=0:this._element.scrollTop=0;e&&i.reflow(this._element);t(this._element).addClass(yr);this._config.focus&&this._enforceFocus();o=t.Event(r.SHOWN,{relatedTarget:n});f=function(){u._config.focus&&u._element.focus();u._isTransitioning=!1;t(u._element).trigger(o)};e?(s=i.getTransitionDurationFromElement(this._dialog),t(this._dialog).one(i.TRANSITION_END,f).emulateTransitionEnd(s)):f()},n._enforceFocus=function(){var n=this;t(document).off(r.FOCUSIN).on(r.FOCUSIN,function(i){document!==i.target&&n._element!==i.target&&0===t(n._element).has(i.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?t(this._element).on(r.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),n.hide())}):this._isShown||t(this._element).off(r.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var n=this;this._isShown?t(window).on(r.RESIZE,function(t){return n.handleUpdate(t)}):t(window).off(r.RESIZE)},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._element.removeAttribute("aria-modal");this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass(we);n._resetAdjustments();n._resetScrollbar();t(n._element).trigger(r.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var u=this,f=t(this._element).hasClass(pt)?pt:"",o,e,s;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=hc,f&&this._backdrop.classList.add(f),t(this._backdrop).appendTo(document.body),t(this._element).on(r.CLICK_DISMISS,function(n){u._ignoreBackdropClick?u._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===u._config.backdrop?u._element.focus():u.hide())}),f&&i.reflow(this._backdrop),t(this._backdrop).addClass(yr),!n)return;if(!f)return void n();o=i.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(i.TRANSITION_END,n).emulateTransitionEnd(o)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(yr),e=function(){u._removeBackdrop();n&&n()},t(this._element).hasClass(pt)?(s=i.getTransitionDurationFromElement(this._backdrop),t(this._backdrop).one(i.TRANSITION_END,e).emulateTransitionEnd(s)):e()):n&&n()},n._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(be)),r=[].slice.call(document.querySelectorAll(ke)),t(i).each(function(i,r){var u=r.style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(r).each(function(i,r){var u=r.style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=t(document.body).css("padding-right"),t(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"));t(document.body).addClass(we)},n._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(be)),n,i;t(r).each(function(n,i){var r=t(i).data("padding-right");t(i).removeData("padding-right");i.style.paddingRight=r||""});n=[].slice.call(document.querySelectorAll(""+ke));t(n).each(function(n,i){var r=t(i).data("margin-right");"undefined"!=typeof r&&t(i).css("margin-right",r).removeData("margin-right")});i=t(document.body).data("padding-right");t(document.body).removeData("padding-right");document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=sc,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},f._jQueryInterface=function(n,i){return this.each(function(){var r=t(this).data(ai),e=u({},uf,t(this).data(),"object"==typeof n&&n?n:{});if(r||(r=new f(this,e),t(this).data(ai,r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n](i)}else e.show&&r.show(i)})},l(f,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return uf}}]),f}();t(document).on(r.CLICK_DATA_API,'[data-toggle="modal"]',function(n){var f,e=this,o=i.getSelectorFromElement(this),s,h;o&&(f=document.querySelector(o));s=t(f).data(ai)?"toggle":u({},t(f).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();h=t(f).one(r.SHOW,function(n){n.isDefaultPrevented()||h.one(r.HIDDEN,function(){t(e).is(":visible")&&e.focus()})});vi._jQueryInterface.call(t(f),s,this)});t.fn[yt]=vi._jQueryInterface;t.fn[yt].Constructor=vi;t.fn[yt].noConflict=function(){return t.fn[yt]=fc,vi._jQueryInterface};var vc=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],yc=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,pc=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;var tt="tooltip",pr="bs.tooltip",a="."+pr,wc=t.fn[tt],ge="bs-tooltip",bc=new RegExp("(^|\\s)"+ge+"\\S+","g"),kc=["sanitize","whiteList","sanitizeFn"],dc={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"},gc={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},nl={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:{"*":["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:[]}},yi="show",ff="out",tl={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},pi="fade",wi="show",il=".tooltip-inner",rl=".arrow",bi="hover",ef="focus",ul="click",fl="manual",it=function(){function r(n,t){if("undefined"==typeof w)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=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var n=r.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(wi))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal");this.tip&&t(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},n.show=function(){var n=this,u,f,h,r,e,c,o,l,s,a;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(u=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(u),f=i.findShadowRoot(this.element),h=t.contains(null!==f?f:this.element.ownerDocument.documentElement,this.element),u.isDefaultPrevented()||!h)return;r=this.getTipElement();e=i.getUID(this.constructor.NAME);r.setAttribute("id",e);this.element.setAttribute("aria-describedby",e);this.setContent();this.config.animation&&t(r).addClass(pi);c="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement;o=this._getAttachment(c);this.addAttachmentClass(o);l=this._getContainer();t(r).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(l);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new w(this.element,r,{placement:o,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:rl},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){return n._handlePopperPlacementChange(t)}});t(r).addClass(wi);"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);s=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);i===ff&&n._leave(null,n)};t(this.tip).hasClass(pi)?(a=i.getTransitionDurationFromElement(this.tip),t(this.tip).one(i.TRANSITION_END,s).emulateTransitionEnd(a)):s()}},n.hide=function(n){var r=this,u=this.getTipElement(),f=t.Event(this.constructor.Event.HIDE),e=function(){r._hoverState!==yi&&u.parentNode&&u.parentNode.removeChild(u);r._cleanTipClass();r.element.removeAttribute("aria-describedby");t(r.element).trigger(r.constructor.Event.HIDDEN);null!==r._popper&&r._popper.destroy();n&&n()},o;(t(this.element).trigger(f),f.isDefaultPrevented())||((t(u).removeClass(wi),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[ul]=!1,this._activeTrigger[ef]=!1,this._activeTrigger[bi]=!1,t(this.tip).hasClass(pi))?(o=i.getTransitionDurationFromElement(u),t(u).one(i.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){t(this.getTipElement()).addClass(ge+"-"+n)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var n=this.getTipElement();this.setElementContent(t(n.querySelectorAll(il)),this.getTitle());t(n).removeClass(pi+" "+wi)},n.setElementContent=function(n,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=de(i,this.config.whiteList,this.config.sanitizeFn)),n.html(i)):n.text(i):this.config.html?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text())},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},n._getOffset=function(){var t=this,n={};return"function"==typeof this.config.offset?n.fn=function(n){return n.offsets=u({},n.offsets,t.config.offset(n.offsets,t.element)||{}),n}:n.offset=this.config.offset,n},n._getContainer=function(){return!1===this.config.container?document.body:i.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(n){return gc[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(i!==fl){var r=i===bi?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===bi?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}});t(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()});this.config.selector?this.config=u({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusin"===n.type?ef:bi]=!0);t(i.getTipElement()).hasClass(wi)||i._hoverState===yi?i._hoverState=yi:(clearTimeout(i._timeout),i._hoverState=yi,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===yi&&i.show()},i.config.delay.show):i.show())},n._leave=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusout"===n.type?ef:bi]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=ff,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===ff&&i.hide()},i.config.delay.hide):i.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){var r=t(this.element).data();return Object.keys(r).forEach(function(n){-1!==kc.indexOf(n)&&delete r[n]}),"number"==typeof(n=u({},this.constructor.Default,r,"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),i.typeCheckConfig(tt,n,this.constructor.DefaultType),n.sanitize&&(n.template=de(n.template,n.whiteList,n.sanitizeFn)),n},n._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},n._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(bc);null!==n&&n.length&&i.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){var t=n.instance;this.tip=t.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass(pi),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(pr),u="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data(pr,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return nl}},{key:"NAME",get:function(){return tt}},{key:"DATA_KEY",get:function(){return pr}},{key:"Event",get:function(){return tl}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return dc}}]),r}();t.fn[tt]=it._jQueryInterface;t.fn[tt].Constructor=it;t.fn[tt].noConflict=function(){return t.fn[tt]=wc,it._jQueryInterface};var wt="popover",wr="bs.popover",v="."+wr,el=t.fn[wt],no="bs-popover",ol=new RegExp("(^|\\s)"+no+"\\S+","g"),sl=u({},it.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>'}),hl=u({},it.DefaultType,{content:"(string|element|function)"}),cl="fade",ll="show",al=".popover-header",vl=".popover-body",yl={HIDE:"hide"+v,HIDDEN:"hidden"+v,SHOW:"show"+v,SHOWN:"shown"+v,INSERTED:"inserted"+v,CLICK:"click"+v,FOCUSIN:"focusin"+v,FOCUSOUT:"focusout"+v,MOUSEENTER:"mouseenter"+v,MOUSELEAVE:"mouseleave"+v},br=function(n){function r(){return n.apply(this,arguments)||this}var u,f,i;return f=n,(u=r).prototype=Object.create(f.prototype),(u.prototype.constructor=u).__proto__=f,i=r.prototype,i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(n){t(this.getTipElement()).addClass(no+"-"+n)},i.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},i.setContent=function(){var i=t(this.getTipElement()),n;this.setElementContent(i.find(al),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(i.find(vl),n);i.removeClass(cl+" "+ll)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(ol);null!==n&&0<n.length&&i.removeClass(n.join(""))},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(wr),u="object"==typeof n?n:null;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data(wr,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return sl}},{key:"NAME",get:function(){return wt}},{key:"DATA_KEY",get:function(){return wr}},{key:"Event",get:function(){return yl}},{key:"EVENT_KEY",get:function(){return v}},{key:"DefaultType",get:function(){return hl}}]),r}(it);t.fn[wt]=br._jQueryInterface;t.fn[wt].Constructor=br;t.fn[wt].noConflict=function(){return t.fn[wt]=el,br._jQueryInterface};var rt="scrollspy",kr="bs.scrollspy",dr="."+kr,pl=t.fn[rt],to={offset:10,method:"auto",target:""},wl={offset:"number",method:"string",target:"(string|element)"},of={ACTIVATE:"activate"+dr,SCROLL:"scroll"+dr,LOAD_DATA_API:"load"+dr+".data-api"},bl="dropdown-item",ut="active",kl='[data-spy="scroll"]',io=".nav, .list-group",sf=".nav-link",dl=".nav-item",ro=".list-group-item",gl=".dropdown",na=".dropdown-item",ta=".dropdown-toggle",ia="offset",uo="position",ki=function(){function r(n,i){var r=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" "+sf+","+this._config.target+" "+ro+","+this._config.target+" "+na;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on(of.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}var n=r.prototype;return n.refresh=function(){var n=this,u=this._scrollElement===this._scrollElement.window?ia:uo,r="auto"===this._config.method?u:this._config.method,f=r===uo?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map(function(n){var u,e=i.getSelectorFromElement(n),o;return(e&&(u=document.querySelector(e)),u)&&(o=u.getBoundingClientRect(),o.width||o.height)?[t(u)[r]().top+f,e]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,kr);t(this._scrollElement).off(dr);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=u({},to,"object"==typeof n&&n?n:{})).target){var r=t(n.target).attr("id");r||(r=i.getUID(rt),t(n.target).attr("id",r));n.target="#"+r}return i.typeCheckConfig(rt,n,wl),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),u<=t)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){this._activeTarget=n;this._clear();var r=this._selector.split(",").map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'}),i=t([].slice.call(document.querySelectorAll(r.join(","))));i.hasClass(bl)?(i.closest(gl).find(ta).addClass(ut),i.addClass(ut)):(i.addClass(ut),i.parents(io).prev(sf+", "+ro).addClass(ut),i.parents(io).prev(dl).children(sf).addClass(ut));t(this._scrollElement).trigger(of.ACTIVATE,{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(n){return n.classList.contains(ut)}).forEach(function(n){return n.classList.remove(ut)})},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(kr);if(i||(i=new r(this,"object"==typeof n&&n),t(this).data(kr,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return to}}]),r}();t(window).on(of.LOAD_DATA_API,function(){for(var r,n=[].slice.call(document.querySelectorAll(kl)),i=n.length;i--;)r=t(n[i]),ki._jQueryInterface.call(r,r.data())});t.fn[rt]=ki._jQueryInterface;t.fn[rt].Constructor=ki;t.fn[rt].noConflict=function(){return t.fn[rt]=pl,ki._jQueryInterface};var gr="bs.tab",di="."+gr,ra=t.fn.tab,gi={HIDE:"hide"+di,HIDDEN:"hidden"+di,SHOW:"show"+di,SHOWN:"shown"+di,CLICK_DATA_API:"click"+di+".data-api"},ua="dropdown-menu",nr="active",fa="disabled",fo="fade",eo="show",ea=".dropdown",oa=".nav, .list-group",oo=".active",so="> li > .active",sa=".dropdown-toggle",ha="> .dropdown-menu .active",tr=function(){function n(n){this._element=n}var r=n.prototype;return r.show=function(){var h=this,u,n,r,f,c,e,o,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(nr)||t(this._element).hasClass(fa)||(r=t(this._element).closest(oa)[0],f=i.getSelectorFromElement(this._element),r&&(c="UL"===r.nodeName||"OL"===r.nodeName?so:oo,n=(n=t.makeArray(t(r).find(c)))[n.length-1]),e=t.Event(gi.HIDE,{relatedTarget:this._element}),o=t.Event(gi.SHOW,{relatedTarget:n}),(n&&t(n).trigger(e),t(this._element).trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(f&&(u=document.querySelector(f)),this._activate(this._element,r),s=function(){var i=t.Event(gi.HIDDEN,{relatedTarget:h._element}),r=t.Event(gi.SHOWN,{relatedTarget:n});t(n).trigger(i);t(h._element).trigger(r)},u?this._activate(u,u.parentNode,s):s()))},r.dispose=function(){t.removeData(this._element,gr);this._element=null},r._activate=function(n,r,u){var s=this,f=(!r||"UL"!==r.nodeName&&"OL"!==r.nodeName?t(r).children(oo):t(r).find(so))[0],h=u&&f&&t(f).hasClass(fo),e=function(){return s._transitionComplete(n,f,u)},o;f&&h?(o=i.getTransitionDurationFromElement(f),t(f).removeClass(eo).one(i.TRANSITION_END,e).emulateTransitionEnd(o)):e()},r._transitionComplete=function(n,r,u){var f,e,o;r&&(t(r).removeClass(nr),f=t(r.parentNode).find(ha)[0],f&&t(f).removeClass(nr),"tab"===r.getAttribute("role")&&r.setAttribute("aria-selected",!1));(t(n).addClass(nr),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),i.reflow(n),n.classList.contains(fo)&&n.classList.add(eo),n.parentNode&&t(n.parentNode).hasClass(ua))&&(e=t(n).closest(ea)[0],e&&(o=[].slice.call(e.querySelectorAll(sa)),t(o).addClass(nr)),n.setAttribute("aria-expanded",!0));u&&u()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(gr);if(r||(r=new n(this),u.data(gr,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(gi.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(n){n.preventDefault();tr._jQueryInterface.call(t(this),"show")});t.fn.tab=tr._jQueryInterface;t.fn.tab.Constructor=tr;t.fn.tab.noConflict=function(){return t.fn.tab=ra,tr._jQueryInterface};var bt="toast",nu="bs.toast",ir="."+nu,ca=t.fn[bt],kt={CLICK_DISMISS:"click.dismiss"+ir,HIDE:"hide"+ir,HIDDEN:"hidden"+ir,SHOW:"show"+ir,SHOWN:"shown"+ir},la="fade",ho="hide",rr="show",co="showing",aa={animation:"boolean",autohide:"boolean",delay:"number"},lo={animation:!0,autohide:!0,delay:500},va='[data-dismiss="toast"]',tu=function(){function r(n,t){this._element=n;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var n=r.prototype;return n.show=function(){var n=this,r,u;t(this._element).trigger(kt.SHOW);this._config.animation&&this._element.classList.add(la);r=function(){n._element.classList.remove(co);n._element.classList.add(rr);t(n._element).trigger(kt.SHOWN);n._config.autohide&&n.hide()};(this._element.classList.remove(ho),this._element.classList.add(co),this._config.animation)?(u=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,r).emulateTransitionEnd(u)):r()},n.hide=function(n){var i=this;this._element.classList.contains(rr)&&(t(this._element).trigger(kt.HIDE),n?this._close():this._timeout=setTimeout(function(){i._close()},this._config.delay))},n.dispose=function(){clearTimeout(this._timeout);this._timeout=null;this._element.classList.contains(rr)&&this._element.classList.remove(rr);t(this._element).off(kt.CLICK_DISMISS);t.removeData(this._element,nu);this._element=null;this._config=null},n._getConfig=function(n){return n=u({},lo,t(this._element).data(),"object"==typeof n&&n?n:{}),i.typeCheckConfig(bt,n,this.constructor.DefaultType),n},n._setListeners=function(){var n=this;t(this._element).on(kt.CLICK_DISMISS,va,function(){return n.hide(!0)})},n._close=function(){var n=this,r=function(){n._element.classList.add(ho);t(n._element).trigger(kt.HIDDEN)},u;(this._element.classList.remove(rr),this._config.animation)?(u=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,r).emulateTransitionEnd(u)):r()},r._jQueryInterface=function(n){return this.each(function(){var u=t(this),i=u.data(nu);if(i||(i=new r(this,"object"==typeof n&&n),u.data(nu,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return aa}},{key:"Default",get:function(){return lo}}]),r}();t.fn[bt]=tu._jQueryInterface;t.fn[bt].Constructor=tu;t.fn[bt].noConflict=function(){return t.fn[bt]=ca,tu._jQueryInterface},function(){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=t.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&n[2]<1||4<=n[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}();n.Util=i;n.Alert=ft;n.Button=ii;n.Carousel=ot;n.Collapse=oi;n.Dropdown=b;n.Modal=vi;n.Popover=br;n.Scrollspy=ki;n.Tab=tr;n.Toast=tu;n.Tooltip=it;Object.defineProperty(n,"__esModule",{value:!0})}),!function(n){"use strict";function i(t){return n.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t.replace(this.re,this.ch)}),t}function r(n){var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r="(?:"+Object.keys(i).join("|")+")",u=new RegExp(r),f=new RegExp(r,"g"),t=null==n?"":""+n;return u.test(t)?t.replace(f,function(n){return i[n]}):t}function u(i,r){var e=arguments,u=i,s=r,f,o;return[].shift.apply(e),o=this.each(function(){var o=n(this),i,r,h,c;if(o.is("select")){if(i=o.data("selectpicker"),r="object"==typeof u&&u,i){if(r)for(h in r)r.hasOwnProperty(h)&&(i.options[h]=r[h])}else c=n.extend({},t.DEFAULTS,n.fn.selectpicker.defaults||{},o.data(),r),o.data("selectpicker",i=new t(this,c,s));"string"==typeof u&&(f=i[u]instanceof Function?i[u].apply(i,e):i.options[u])}}),"undefined"!=typeof f?f:o}var t,f;String.prototype.includes||!function(){var i={}.toString,n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),r="".indexOf,t=function(n){var u,s;if(null==this)throw TypeError();if(u=String(this),n&&"[object RegExp]"==i.call(n))throw TypeError();var f=u.length,e=String(n),h=e.length,o=arguments.length>1?arguments[1]:void 0,t=o?Number(o):0;return t!=t&&(t=0),s=Math.min(Math.max(t,0),f),h+s>f?!1:-1!=r.call(u,e,t)};n?n(String.prototype,"includes",{value:t,configurable:!0,writable:!0}):String.prototype.includes=t}();String.prototype.startsWith||!function(){var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var u,f,r;if(null==this)throw TypeError();if(u=String(this),n&&"[object RegExp]"==i.call(n))throw TypeError();var e=u.length,o=String(n),s=o.length,h=arguments.length>1?arguments[1]:void 0,t=h?Number(h):0;if(t!=t&&(t=0),f=Math.min(Math.max(t,0),e),s+f>e)return!1;for(r=-1;++r<s;)if(u.charCodeAt(f+r)!=o.charCodeAt(r))return!1;return!0};n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}();n.expr[":"].icontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].ibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};n.expr[":"].aicontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.includes(f,r[3])};n.expr[":"].aibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};t=function(i,r,u){u&&(u.stopPropagation(),u.preventDefault());this.$element=n(i);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=r;null===this.options.title&&(this.options.title=this.$element.attr("title"));this.val=t.prototype.val;this.render=t.prototype.render;this.refresh=t.prototype.refresh;this.setStyle=t.prototype.setStyle;this.selectAll=t.prototype.selectAll;this.deselectAll=t.prototype.deselectAll;this.destroy=t.prototype.remove;this.remove=t.prototype.remove;this.show=t.prototype.show;this.hide=t.prototype.hide;this.init()};t.VERSION="1.6.4";t.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return 1==n?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[1==n?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1};t.prototype={constructor:t,init:function(){var i=this,t=this.$element.attr("id");this.$element.hide();this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$searchbox=this.$menu.find("input");this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right");"undefined"!=typeof t&&(this.$button.attr("data-id",t),n('label[for="'+t+'"]').click(function(n){n.preventDefault();i.$button.focus()}));this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.liHeight();this.setStyle();this.setWidth();this.options.container&&this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile()},createDropdown:function(){var t=this.multiple?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",u=this.autofocus?" autofocus":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>":"",e=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+r(this.options.liveSearchPlaceholder)+'"')+"><\/div>":"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'<\/button><button class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"<\/button><\/div><\/div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button class="btn btn-sm btn-default">'+this.options.doneButtonText+"<\/button><\/div><\/div>":"",h='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="btn dropdown-toggle" data-toggle="dropdown"'+u+'><span class="filter-option pull-left"><\/span>&nbsp;<span class="caret"><\/span><\/button><div class="dropdown-menu open">'+f+e+o+'<ul class="dropdown-menu inner" role="menu"><\/ul>'+s+"<\/div><\/div>";return n(h)},createView:function(){var n=this.createDropdown(),t=this.createLi();return n.find("ul").append(t),n},reloadLi:function(){this.destroyLi();var n=this.createLi();this.$menu.find("ul").append(n)},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var f=this,t=[],e=0,u=function(n,t,i,r){return"<li"+("undefined"!=typeof i&""!==i?' class="'+i+'"':"")+("undefined"!=typeof t&null!==t?' data-original-index="'+t+'"':"")+("undefined"!=typeof r&null!==r?'data-optgroup="'+r+'"':"")+">"+n+"<\/li>"},o=function(n,t,u,e){return'<a tabindex="0"'+("undefined"!=typeof t?' class="'+t+'"':"")+("undefined"!=typeof u?' style="'+u+'"':"")+' data-normalized-text="'+i(r(n))+'"'+("undefined"!=typeof e||null!==e?' data-tokens="'+e+'"':"")+">"+n+'<span class="'+f.options.iconBase+" "+f.options.tickIcon+' check-mark"><\/span><\/a>'};return this.$element.find("option").each(function(i){var r=n(this),c=r.attr("class")||"",l=r.attr("style"),s=r.data("content")?r.data("content"):r.html(),a=r.data("tokens")?r.data("tokens"):null,p="undefined"!=typeof r.data("subtext")?'<small class="text-muted">'+r.data("subtext")+"<\/small>":"",h="undefined"!=typeof r.data("icon")?'<span class="'+f.options.iconBase+" "+r.data("icon")+'"><\/span> ':"",y=r.is(":disabled")||r.parent().is(":disabled");if(""!==h&&y&&(h="<span>"+h+"<\/span>"),r.data("content")||(s=h+'<span class="text">'+s+p+"<\/span>"),!f.options.hideDisabled||!y)if(r.parent().is("optgroup")&&r.data("divider")!==!0){if(0===r.index()){e+=1;var v=r.parent().attr("label"),w="undefined"!=typeof r.parent().data("subtext")?'<small class="text-muted">'+r.parent().data("subtext")+"<\/small>":"",b=r.parent().data("icon")?'<span class="'+f.options.iconBase+" "+r.parent().data("icon")+'"><\/span> ':"";v=b+'<span class="text">'+v+w+"<\/span>";0!==i&&t.length>0&&t.push(u("",null,"divider",e+"div"));t.push(u(v,null,"dropdown-header",e))}t.push(u(o(s,"opt "+c,l,a),i,"",e))}else r.data("divider")===!0?t.push(u("",i,"divider")):r.data("hidden")===!0?t.push(u(o(s,c,l,a),i,"hidden is-hidden")):(r.prev().is("optgroup")&&t.push(u("",null,"divider",e+"div")),t.push(u(o(s,c,l,a),i)))}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),n(t.join(""))},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var i=this,f,o,s;t!==!1&&this.$element.find("option").each(function(t){i.setDisabled(t,n(this).is(":disabled")||n(this).parent().is(":disabled"));i.setSelected(t,n(this).is(":selected"))});this.tabIndex();var e=this.options.hideDisabled?":enabled":"",r=this.$element.find("option:selected"+e).map(function(){var r,t=n(this),u=t.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"><\/i> ':"";return r=i.options.showSubtext&&t.data("subtext")&&!i.multiple?' <small class="text-muted">'+t.data("subtext")+"<\/small>":"","undefined"!=typeof t.attr("title")?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content"):u+t.html()+r}).toArray(),u=this.multiple?r.join(this.options.multipleSeparator):r[0];this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1&&(f=this.options.selectedTextFormat.split(">"),(f.length>1&&r.length>f[1]||1==f.length&&r.length>=2)&&(e=this.options.hideDisabled?", [disabled]":"",o=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+e).length,s="function"==typeof this.options.countSelectedText?this.options.countSelectedText(r.length,o):this.options.countSelectedText,u=s.replace("{0}",r.length.toString()).replace("{1}",o.toString())));void 0==this.options.title&&(this.options.title=this.$element.attr("title"));"static"==this.options.selectedTextFormat&&(u=this.options.title);u||(u="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText);this.$button.attr("title",n.trim(u.replace(/<[^>]*>?/g,"")));this.$button.children(".filter-option").html(u)},setStyle:function(n,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|validate\[.*\]/gi,""));var i=n?n:this.options.style;"add"==t?this.$button.addClass(i):"remove"==t?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(){if(this.options.size!==!1){var t=this.$menu.parent().clone().children(".dropdown-toggle").prop("autofocus",!1).end().appendTo("body"),n=t.addClass("open").children(".dropdown-menu"),i=n.find("li").not(".divider, .dropdown-header").filter(":visible").children("a").outerHeight(),r=this.options.header?n.find(".popover-title").outerHeight():0,u=this.options.liveSearch?n.find(".bs-searchbox").outerHeight():0,f=this.options.actionsBox?n.find(".bs-actionsbox").outerHeight():0,e=this.multiple?n.find(".bs-donebutton").outerHeight():0;t.remove();this.$newElement.data("liHeight",i).data("headerHeight",r).data("searchHeight",u).data("actionsHeight",f).data("doneButtonHeight",e)}},setSize:function(){var s,k,d;this.findLis();var i,u,e,r=this,t=this.$menu,y=t.children(".inner"),g=this.$newElement.outerHeight(),p=this.$newElement.data("liHeight"),h=this.$newElement.data("headerHeight"),c=this.$newElement.data("searchHeight"),l=this.$newElement.data("actionsHeight"),a=this.$newElement.data("doneButtonHeight"),nt=this.$lis.filter(".divider").outerHeight(!0),f=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom"))+parseInt(t.css("border-top-width"))+parseInt(t.css("border-bottom-width")),w=this.options.hideDisabled?".disabled":"",v=n(window),o=f+parseInt(t.css("margin-top"))+parseInt(t.css("margin-bottom"))+2,b=function(){u=r.$newElement.offset().top-v.scrollTop();e=v.height()-u-g};(b(),this.options.header&&t.css("padding-top",0),"auto"==this.options.size)?(s=function(){var n,s=r.$lis.not(".hidden");b();i=e-o;r.options.dropupAuto&&r.$newElement.toggleClass("dropup",u>e&&i-o<t.height());r.$newElement.hasClass("dropup")&&(i=u-o);n=s.length+s.filter(".dropdown-header").length>3?3*p+o-2:0;t.css({"max-height":i+"px",overflow:"hidden","min-height":n+h+c+l+a+"px"});y.css({"max-height":i-h-c-l-a-f+"px","overflow-y":"auto","min-height":Math.max(n-f,0)+"px"})},s(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",s),v.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",s)):this.options.size&&"auto"!=this.options.size&&t.find("li").not(w).length>this.options.size&&(k=this.$lis.not(".divider").not(w).children().slice(0,this.options.size).last().parent().index(),d=this.$lis.slice(0,k+1).filter(".divider").length,i=p*this.options.size+d*nt+f,r.options.dropupAuto&&this.$newElement.toggleClass("dropup",u>e&&i<t.height()),t.css({"max-height":i+h+c+l+a+"px",overflow:"hidden"}),y.css({"max-height":i-f+"px","overflow-y":"auto"}))},setWidth:function(){if("auto"==this.options.width){this.$menu.css("min-width","0");var n=this.$newElement.clone().appendTo("body"),t=n.children(".dropdown-menu").css("width"),i=n.css("width","auto").children("button").css("width");n.remove();this.$newElement.css("width",Math.max(parseInt(t),parseInt(i))+"px")}else"fit"==this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){var r,u,i=this,t=n("<div />"),f=function(n){t.addClass(n.attr("class").replace(/form-control/gi,"")).toggleClass("dropup",n.hasClass("dropup"));r=n.offset();u=n.hasClass("dropup")?0:n[0].offsetHeight;t.css({top:r.top+u,left:r.left,width:n[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",function(){i.isDisabled()||(f(n(this)),t.appendTo(i.options.container),t.toggleClass("open",!n(this).hasClass("open")),t.append(i.$menu))});n(window).on("resize scroll",function(){f(i.$newElement)});n("html").on("click",function(r){n(r.target).closest(i.$newElement).length<1&&t.removeClass("open")})},setSelected:function(n,t){this.findLis();this.$lis.filter('[data-original-index="'+n+'"]').toggleClass("selected",t)},setDisabled:function(n,t){this.findLis();t?this.$lis.filter('[data-original-index="'+n+'"]').addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):this.$lis.filter('[data-original-index="'+n+'"]').removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element.is(":disabled")},checkDisabled:function(){var n=this;this.isDisabled()?this.$button.addClass("disabled").attr("tabindex",-1):(this.$button.hasClass("disabled")&&this.$button.removeClass("disabled"),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"));this.$button.click(function(){return!n.isDisabled()})},tabIndex:function(){this.$element.is("[tabindex]")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")))},clickListener:function(){var t=this;this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(n){n.stopPropagation()});this.$newElement.on("click",function(){t.setSize();t.options.liveSearch||t.multiple||setTimeout(function(){t.$menu.find(".selected a").focus()},10)});this.$menu.on("click","li a",function(i){var s=n(this),e=s.parent().data("originalIndex"),k=t.$element.val(),d=t.$element.prop("selectedIndex"),a,v,b;if(t.multiple&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!s.parent().hasClass("disabled")){var h=t.$element.find("option"),f=h.eq(e),w=f.prop("selected"),l=f.parent("optgroup"),r=t.options.maxOptions,u=l.data("maxOptions")||!1;if(t.multiple){if((f.prop("selected",!w),t.setSelected(e,!w),s.blur(),r!==!1||u!==!1)&&(a=r<h.filter(":selected").length,v=u<l.find("option:selected").length,r&&a||u&&v))if(r&&1==r)h.prop("selected",!1),f.prop("selected",!0),t.$menu.find(".selected").removeClass("selected"),t.setSelected(e,!0);else if(u&&1==u)l.find("option:selected").prop("selected",!1),f.prop("selected",!0),b=s.data("optgroup"),t.$menu.find(".selected").has('a[data-optgroup="'+b+'"]').removeClass("selected"),t.setSelected(e,!0);else{var o="function"==typeof t.options.maxOptionsText?t.options.maxOptionsText(r,u):t.options.maxOptionsText,y=o[0].replace("{n}",r),p=o[1].replace("{n}",u),c=n('<div class="notify"><\/div>');o[2]&&(y=y.replace("{var}",o[2][r>1?0:1]),p=p.replace("{var}",o[2][u>1?0:1]));f.prop("selected",!1);t.$menu.append(c);r&&a&&(c.append(n("<div>"+y+"<\/div>")),t.$element.trigger("maxReached.bs.select"));u&&v&&(c.append(n("<div>"+p+"<\/div>")),t.$element.trigger("maxReachedGrp.bs.select"));setTimeout(function(){t.setSelected(e,!1)},10);c.delay(750).fadeOut(300,function(){n(this).remove()})}}else h.prop("selected",!1),f.prop("selected",!0),t.$menu.find(".selected").removeClass("selected"),t.setSelected(e,!0);t.multiple?t.options.liveSearch&&t.$searchbox.focus():t.$button.focus();(k!=t.$element.val()&&t.multiple||d!=t.$element.prop("selectedIndex")&&!t.multiple)&&t.$element.change()}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),t.options.liveSearch?t.$searchbox.focus():t.$button.focus())});this.$menu.on("click","li.divider, li.dropdown-header",function(n){n.preventDefault();n.stopPropagation();t.options.liveSearch?t.$searchbox.focus():t.$button.focus()});this.$menu.on("click",".popover-title .close",function(){t.$button.focus()});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus();i.preventDefault();i.stopPropagation();n(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll();t.$element.change()});this.$element.change(function(){t.render(!1)})},liveSearchListener:function(){var t=this,u=n('<li class="no-results"><\/li>');this.$newElement.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){t.$menu.find(".active").removeClass("active");t.$searchbox.val()&&(t.$searchbox.val(""),t.$lis.not(".is-hidden").removeClass("hidden"),u.parent().length&&u.remove());t.multiple||t.$menu.find(".selected").addClass("active");setTimeout(function(){t.$searchbox.focus()},10)});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var e,f;t.$searchbox.val()?(e=t.$lis.not(".is-hidden").removeClass("hidden").children("a"),e=e.not(t.options.liveSearchNormalize?":a"+t._searchStyle()+"("+i(t.$searchbox.val())+")":":"+t._searchStyle()+"("+t.$searchbox.val()+")"),e.parent().addClass("hidden"),t.$lis.filter(".dropdown-header").each(function(){var i=n(this),r=i.data("optgroup");0===t.$lis.filter("[data-optgroup="+r+"]").not(i).not(".hidden").length&&(i.addClass("hidden"),t.$lis.filter("[data-optgroup="+r+"div]").addClass("hidden"))}),f=t.$lis.not(".hidden"),f.each(function(t){var i=n(this);i.hasClass("divider")&&(i.index()===f.eq(0).index()||i.index()===f.last().index()||f.eq(t+1).hasClass("divider"))&&i.addClass("hidden")}),t.$lis.not(".hidden, .no-results").length?u.parent().length&&u.remove():(u.parent().length&&u.remove(),u.html(t.options.noneResultsText.replace("{0}",'"'+r(t.$searchbox.val())+'"')).show(),t.$menu.append(u))):(t.$lis.not(".is-hidden").removeClass("hidden"),u.parent().length&&u.remove());t.$lis.filter(".active").removeClass("active");t.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus();n(this).focus()})},_searchStyle:function(){var n="icontains";switch(this.options.liveSearchStyle){case"begins":case"startsWith":n="ibegins"}return n},val:function(n){return"undefined"!=typeof n?(this.$element.val(n),this.render(),this.$element):this.$element.val()},selectAll:function(){this.findLis();this.$element.find("option:enabled").not("[data-divider], [data-hidden]").prop("selected",!0);this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").addClass("selected");this.render(!1)},deselectAll:function(){this.findLis();this.$element.find("option:enabled").not("[data-divider], [data-hidden]").prop("selected",!1);this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").removeClass("selected");this.render(!1)},keydown:function(t){var u,f,h,c,l,y,p,b,s,e=n(this),a=e.is("input")?e.parent().parent():e.parent(),r=a.data("this"),w={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},o,d,v,k;(r.options.liveSearch&&(a=e.parent().parent()),r.options.container&&(a=r.$menu),u=n("[role=menu] li a",a),s=r.$menu.parent().hasClass("open"),!s&&/([0-9]|[A-z])/.test(String.fromCharCode(t.keyCode))&&(r.options.container?r.$newElement.trigger("click"):(r.setSize(),r.$menu.parent().addClass("open"),s=!0),r.$searchbox.focus()),r.options.liveSearch&&(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&0===r.$menu.find(".active").length&&(t.preventDefault(),r.$menu.parent().removeClass("open"),r.$button.focus()),u=n("[role=menu] li:not(.divider):not(.dropdown-header):visible a",a),e.val()||/(38|40)/.test(t.keyCode.toString(10))||0===u.filter(".active").length&&(u=r.$newElement.find("li a"),u=u.filter(r.options.liveSearchNormalize?":a"+r._searchStyle()+"("+i(w[t.keyCode])+")":":"+r._searchStyle()+"("+w[t.keyCode]+")"))),u.length)&&(/(38|40)/.test(t.keyCode.toString(10))?(f=u.index(u.filter(":focus")),c=u.parent(":not(.disabled):visible").first().index(),l=u.parent(":not(.disabled):visible").last().index(),h=u.eq(f).parent().nextAll(":not(.disabled):visible").eq(0).index(),y=u.eq(f).parent().prevAll(":not(.disabled):visible").eq(0).index(),p=u.eq(h).parent().prevAll(":not(.disabled):visible").eq(0).index(),r.options.liveSearch&&(u.each(function(t){n(this).hasClass("disabled")||n(this).data("index",t)}),f=u.index(u.filter(".active")),c=u.filter(":not(.disabled):visible").first().data("index"),l=u.filter(":not(.disabled):visible").last().data("index"),h=u.eq(f).nextAll(":not(.disabled):visible").eq(0).data("index"),y=u.eq(f).prevAll(":not(.disabled):visible").eq(0).data("index"),p=u.eq(h).prevAll(":not(.disabled):visible").eq(0).data("index")),b=e.data("prevIndex"),38==t.keyCode?(r.options.liveSearch&&(f-=1),f!=p&&f>y&&(f=y),c>f&&(f=c),f==b&&(f=l)):40==t.keyCode&&(r.options.liveSearch&&(f+=1),-1==f&&(f=0),f!=p&&h>f&&(f=h),f>l&&(f=l),f==b&&(f=c)),e.data("prevIndex",f),r.options.liveSearch?(t.preventDefault(),e.hasClass("dropdown-toggle")||(u.removeClass("active"),u.eq(f).addClass("active").children("a").focus(),e.focus())):u.eq(f).focus()):e.is("input")||(v=[],u.each(function(){n(this).parent().hasClass("disabled")||n.trim(n(this).text().toLowerCase()).substring(0,1)==w[t.keyCode]&&v.push(n(this).parent().index())}),o=n(document).data("keycount"),o++,n(document).data("keycount",o),d=n.trim(n(":focus").text().toLowerCase()).substring(0,1),d!=w[t.keyCode]?(o=1,n(document).data("keycount",o)):o>=v.length&&(n(document).data("keycount",0),o>v.length&&(o=1)),u.eq(v[o-1]).focus()),(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&r.options.selectOnTab)&&s&&((/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),r.options.liveSearch)?/(32)/.test(t.keyCode.toString(10))||(r.$menu.find(".active a").click(),e.focus()):(k=n(":focus"),k.click(),k.focus(),t.preventDefault()),n(document).data("keycount",0)),(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&(r.multiple||r.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!s)&&(r.$menu.parent().removeClass("open"),r.$button.focus()))},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement);this.options.container&&this.$menu.hide()},refresh:function(){this.$lis=null;this.reloadLi();this.render();this.setWidth();this.setStyle();this.checkDisabled();this.liHeight()},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()}};f=n.fn.selectpicker;n.fn.selectpicker=u;n.fn.selectpicker.Constructor=t;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=f,this};n(document).data("keycount",0).on("keydown",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",t.prototype.keydown).on("focusin.modal",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",function(n){n.stopPropagation()});n(window).on("load.bs.select.data-api",function(){n(".selectpicker").each(function(){var t=n(this);u.call(t,t.data())})})}(jQuery),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return bf.apply(null,arguments)}function oh(n){bf=n}function ft(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function vi(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function sh(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var t;for(t in n)if(n.hasOwnProperty(t))return!1;return!0}function b(n){return n===void 0}function dt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function tr(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function kf(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function wt(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function et(n,t,i,r){return go(n,t,i,r,!0).utc()}function hh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return n._pf==null&&(n._pf=hh()),n._pf}function fu(n){if(n._isValid==null){var t=u(n),r=df.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function ir(n){var t=et(NaN);return n!=null?wt(u(t),n):u(t).userInvalidated=!0,t}function eu(n,t){var i,r,f;if(b(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),b(t._i)||(n._i=t._i),b(t._f)||(n._f=t._f),b(t._l)||(n._l=t._l),b(t._strict)||(n._strict=t._strict),b(t._tzm)||(n._tzm=t._tzm),b(t._isUTC)||(n._isUTC=t._isUTC),b(t._offset)||(n._offset=t._offset),b(t._pf)||(n._pf=u(t)),b(t._locale)||(n._locale=t._locale),rr.length>0)for(i=0;i<rr.length;i++)r=rr[i],f=t[r],b(f)||(n[r]=f);return n}function yi(n){eu(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));ur===!1&&(ur=!0,t.updateOffset(this),ur=!1)}function ot(n){return n instanceof yi||n!=null&&n._isAMomentObject!=null}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=d(t)),i}function gf(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function ne(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return wt(function(){var e,u,f,o;if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}ne(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function te(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i);ou[n]||(ne(i),ou[n]=!0)}function st(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ch(n){var t,i;for(i in n)t=n[i],st(t)?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ie(n,t){var r=wt({},n),i;for(i in t)l(t,i)&&(vi(n[i])&&vi(t[i])?(r[i]={},wt(r[i],n[i]),wt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&vi(n[i])&&(r[i]=wt({},r[i]));return r}function su(n){n!=null&&this.set(n)}function lh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return st(r)?r.call(t,i):r}function ah(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function vh(){return this._invalidDate}function yh(n){return this._ordinal.replace("%d",n)}function ph(n,t,i,r){var u=this._relativeTime[i];return st(u)?u(n,t,i,r):u.replace(/%d/i,n)}function wh(n,t){var i=this._relativeTime[n>0?"future":"past"];return st(i)?i(t):i.replace(/%s/i,t)}function p(n,t){var i=n.toLowerCase();ui[i]=ui[i+"s"]=ui[t]=n}function nt(n){return typeof n=="string"?ui[n]||ui[n.toLowerCase()]:undefined}function hu(n){var r={},i,t;for(t in n)l(n,t)&&(i=nt(t),i&&(r[i]=n[t]));return r}function w(n,t){cu[n]=t}function bh(n){var t=[],i;for(i in n)t.push({unit:i,priority:cu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function lt(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(fi[n]=u);t&&(fi[t[0]]=function(){return lt(u.apply(this,arguments),t[1],t[2])});i&&(fi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function kh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function dh(n){for(var t=n.match(ce),i=0,r=t.length;i<r;i++)t[i]=fi[t[i]]?fi[t[i]]:kh(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=st(t[u])?t[u].call(i,n):t[u];return f}}function er(n,t){return n.isValid()?(t=le(t,n.localeData()),lu[t]=lu[t]||dh(t),lu[t](n)):n.localeData().invalidDate()}function le(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(fr.lastIndex=0;i>=0&&fr.test(n);)n=n.replace(fr,r),fr.lastIndex=0,i-=1;return n}function i(n,t,i){yu[n]=st(t)?t:function(n){return n&&i?i:t}}function nc(n,t){return l(yu,n)?yu[n](t._strict,t._locale):new RegExp(tc(n))}function tc(n){return gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)ar[n[i]]=r}function wi(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function ic(n,t,i){t!=null&&l(ar,n)&&ar[n](t,i._a,i,n)}function bi(n){return vr(n)?366:365}function vr(n){return n%4==0&&n%100!=0||n%400==0}function fc(){return vr(this.year())}function ei(n,i){return function(r){return r!=null?(we(this,n,r),t.updateOffset(this,i),this):yr(this,n)}}function yr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function we(n,t,i){n.isValid()&&!isNaN(i)&&(t==="FullYear"&&vr(n.year())&&n.month()===1&&n.date()===29?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),pr(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function ec(n){return(n=nt(n),st(this[n]))?this[n]():this}function oc(n,t){var r,i;if(typeof n=="object")for(n=hu(n),r=bh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=nt(n),st(this[n]))return this[n](t);return this}function sc(n,t){return(n%t+t)%t}function pr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=sc(t,12);return n+=(t-i)/12,i===1?vr(n)?29:28:31-i%7%2}function hc(n,t){return n?ft(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||wu).test(t)?"format":"standalone"][n.month()]:ft(this._months)?this._months:this._months.standalone}function cc(n,t){return n?ft(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[wu.test(t)?"format":"standalone"][n.month()]:ft(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=et([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=a.call(this._shortMonthsParse,f),r!==-1?r:null):(r=a.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=a.call(this._shortMonthsParse,f),r!==-1)?r:(r=a.call(this._longMonthsParse,f),r!==-1?r:null):(r=a.call(this._longMonthsParse,f),r!==-1)?r:(r=a.call(this._shortMonthsParse,f),r!==-1?r:null)}function ac(n,t,i){var r,u,f;if(this._monthsParseExact)return lc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=et([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function ke(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!dt(t))return n;return i=Math.min(n.date(),pr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function de(n){return n!=null?(ke(this,n),t.updateOffset(this,!0),this):yr(this,"Month")}function vc(){return pr(this.year(),this.month())}function yc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||to.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ge),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function pc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||to.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=no),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function to(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=et([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=gt(i[n]),r[n]=gt(r[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function wc(n,t,i,r,u,f,e){var o;return n<100&&n>=0?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function ki(n){var t,i;return n<100&&n>=0?(i=Array.prototype.slice.call(arguments),i[0]=n+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function wr(n,t,i){var r=7+t-i,u=(7+ki(n,0,r).getUTCDay()-t)%7;return-u+r-1}function io(n,t,i,r,u){var s=(7+i-r)%7,h=wr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=bi(e)+f):f>bi(n)?(e=n+1,o=f-bi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function di(n,t,i){var e=wr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ti(u,t,i)):r>ti(n.year(),t,i)?(f=r-ti(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ti(n,t,i){var r=wr(n,t,i),u=wr(n+1,t,i);return(bi(n)-r+u)/7}function bc(n){return di(n,this._week.dow,this._week.doy).week}function kc(){return this._week.dow}function dc(){return this._week.doy}function gc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function nl(n){var t=di(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function tl(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function il(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function ku(n,t){return n.slice(t,7).concat(n.slice(0,t))}function rl(n,t){var i=ft(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return n===!0?ku(i,this._week.dow):n?i[n.day()]:i}function ul(n){return n===!0?ku(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function fl(n){return n===!0?ku(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function el(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=et([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=a.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=a.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=a.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=a.call(this._minWeekdaysParse,u),r!==-1)?r:(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function ol(n,t,i){var r,u,f;if(this._weekdaysParseExact)return el.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=et([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function sl(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=tl(n,this.localeData()),this.add(n-t,"d")):t}function hl(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function cl(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=il(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function ll(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||gu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=eo),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function al(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||gu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oo),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function vl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||gu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=so),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function gu(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=et([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function nf(){return this.hours()%12||12}function yl(){return this.hours()||24}function ho(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function co(n,t){return t._meridiemParse}function pl(n){return(n+"").toLowerCase().charAt(0)==="p"}function wl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function vo(n){return n?n.toLowerCase().replace("_","-"):n}function kl(n){for(var r=0,i,t,f,u;r<n.length;){for(u=vo(n[r]).split("-"),i=u.length,t=vo(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=br(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&gf(u,t,!0)>=i-1)break;i--}r++}return nr}function br(n){var t=null,i;if(!y[n]&&typeof module!="undefined"&&module&&module.exports)try{t=nr._abbr;i=require;i("./locale/"+n);oi(t)}catch(r){}return y[n]}function oi(n,t){var i;return n&&(i=b(t)?bt(n):tf(n,t),i?nr=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),nr._abbr}function tf(n,t){if(t!==null){var r,i=ao;if(t.abbr=n,y[n]!=null)te("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(t.parentLocale!=null)if(y[t.parentLocale]!=null)i=y[t.parentLocale]._config;else if(r=br(t.parentLocale),r!=null)i=r._config;else return gi[t.parentLocale]||(gi[t.parentLocale]=[]),gi[t.parentLocale].push({name:n,config:t}),null;return y[n]=new su(ie(i,t)),gi[n]&&gi[n].forEach(function(n){tf(n.name,n.config)}),oi(n),y[n]}return delete y[n],null}function dl(n,t){if(t!=null){var i,r,u=ao;r=br(n);r!=null&&(u=r._config);t=ie(u,t);i=new su(t);i.parentLocale=y[n];y[n]=i;oi(n)}else y[n]!=null&&(y[n].parentLocale!=null?y[n]=y[n].parentLocale:y[n]!=null&&delete y[n]);return y[n]}function bt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return nr;if(!ft(n)){if(t=br(n),t)return t;n=[n]}return kl(n)}function gl(){return re(y)}function rf(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[at]<0||t[at]>11?at:t[ht]<1||t[ht]>pr(t[tt],t[at])?ht:t[v]<0||t[v]>24||t[v]===24&&(t[it]!==0||t[vt]!==0||t[ni]!==0)?v:t[it]<0||t[it]>59?it:t[vt]<0||t[vt]>59?vt:t[ni]<0||t[ni]>999?ni:-1,u(n)._overflowDayOfYear&&(i<tt||i>ht)&&(i=ht),u(n)._overflowWeeks&&i===-1&&(i=rc),u(n)._overflowWeekday&&i===-1&&(i=uc),u(n).overflow=i),n}function si(n,t,i){return n!=null?n:t!=null?t:i}function na(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function uf(n){var t,i,r=[],f,o,e;if(!n._d){for(f=na(n),n._w&&n._a[ht]==null&&n._a[at]==null&&ta(n),n._dayOfYear!=null&&(e=si(n._a[tt],f[tt]),(n._dayOfYear>bi(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=ki(e,0,n._dayOfYear),n._a[at]=i.getUTCMonth(),n._a[ht]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[v]===24&&n._a[it]===0&&n._a[vt]===0&&n._a[ni]===0&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?ki:wc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(u(n).weekdayMismatch=!0)}}function ta(n){var t,o,f,i,r,e,h,s,l;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=si(t.GG,n._a[tt],di(c(),1,4).year),f=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=di(c(),r,e),o=si(t.gg,n._a[tt],l.year),f=si(t.w,l.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>ti(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=io(o,f,i,r,e),n._a[tt]=h.year,n._dayOfYear=h.dayOfYear)}function yo(n){var t,r,o=n._i,i=ia.exec(o)||ra.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=kr.length;t<r;t++)if(kr[t][1].exec(i[1])){e=kr[t][0];s=kr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=ff.length;t<r;t++)if(ff[t][1].exec(i[3])){f=(i[2]||" ")+ff[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(ua.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||"");ef(n)}else n._isValid=!1}function ea(n,t,i,r,u,f){var e=[oa(n),bu.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function oa(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function sa(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ha(n,t,i){if(n){var r=du.indexOf(n),f=new Date(t[0],t[1],t[2]).getDay();if(r!==f)return u(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function ca(n,t,i){if(n)return wo[n];if(t)return 0;var r=parseInt(i,10),u=r%100,f=(r-u)/100;return f*60+u}function bo(n){var t=po.exec(sa(n._i)),i;if(t){if(i=ea(t[4],t[3],t[2],t[5],t[6],t[7]),!ha(t[1],i,n))return;n._a=i;n._tzm=ca(t[8],t[9],t[10]);n._d=ki.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function la(n){var i=fa.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(yo(n),n._isValid===!1)delete n._isValid;else return;if(bo(n),n._isValid===!1)delete n._isValid;else return;t.createFromInputFallback(n)}function ef(n){if(n._f===t.ISO_8601){yo(n);return}if(n._f===t.RFC_2822){bo(n);return}n._a=[];u(n).empty=!0;for(var i=""+n._i,r,f,s,c=i.length,h=0,o=le(n._f,n._locale).match(ce)||[],e=0;e<o.length;e++)f=o[e],r=(i.match(nc(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),h+=r.length),fi[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),ic(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=c-h;i.length>0&&u(n).unusedInput.push(i);n._a[v]<=12&&u(n).bigHour===!0&&n._a[v]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[v]=aa(n._locale,n._a[v],n._meridiem);uf(n);rf(n)}function aa(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function va(n){var t,e,f,r,i;if(n._f.length===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=eu({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],ef(t),fu(t))&&(i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,(f==null||i<f)&&(f=i,e=t));wt(n,e||t)}function ya(n){if(!n._d){var t=hu(n._i);n._a=kf([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});uf(n)}}function pa(n){var t=new yi(rf(ko(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function ko(n){var t=n._i,i=n._f;return(n._locale=n._locale||bt(n._l),t===null||i===undefined&&t==="")?ir({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),ot(t))?new yi(rf(t)):(tr(t)?n._d=t:ft(i)?va(n):i?ef(n):wa(n),fu(n)||(n._d=null),n)}function wa(n){var i=n._i;b(i)?n._d=new Date(t.now()):tr(i)?n._d=new Date(i.valueOf()):typeof i=="string"?la(n):ft(i)?(n._a=kf(i.slice(0),function(n){return parseInt(n,10)}),uf(n)):vi(i)?ya(n):dt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function go(n,t,i,r,u){var f={};return(i===!0||i===!1)&&(r=i,i=undefined),(vi(n)&&sh(n)||ft(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,pa(f)}function c(n,t,i,r){return go(n,t,i,r,!1)}function is(n,t){var r,i;if(t.length===1&&ft(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function ba(){var n=[].slice.call(arguments,0);return is("isBefore",n)}function ka(){var n=[].slice.call(arguments,0);return is("isAfter",n)}function da(n){var i,r,t;for(i in n)if(!(a.call(hi,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(r=!1,t=0;t<hi.length;++t)if(n[hi[t]]){if(r)return!1;parseFloat(n[hi[t]])!==f(n[hi[t]])&&(r=!0)}return!0}function ga(){return this._isValid}function nv(){return rt(NaN)}function dr(n){var t=hu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||t.isoWeek||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=da(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=bt();this._bubble()}function of(n){return n instanceof dr}function sf(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function us(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+lt(~~(n/60),2)+t+lt(~~n%60,2)})}function hf(n,t){var i=(t||"").match(n);if(i===null)return null;var e=i[i.length-1]||[],r=(e+"").match(fs)||["-",0,0],u=+(r[1]*60)+f(r[2]);return u===0?0:r[0]==="+"?u:-u}function cf(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(ot(n)||tr(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):c(n).local()}function lf(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function tv(n,i,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=hf(lr,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&i&&(f=lf(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!i||this._changeInProgress?ls(this,rt(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:lf(this)}function iv(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function rv(n){return this.utcOffset(0,n)}function uv(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(lf(this),"m")),this}function fv(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=hf(gh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function ev(n){return this.isValid()?(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function ov(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sv(){var n,t;return b(this._isDSTShifted)?(n={},eu(n,this),n=ko(n),n._a?(t=n._isUTC?et(n._a):c(n._a),this._isDSTShifted=this.isValid()&&gf(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function hv(){return this.isValid()?!this._isUTC:!1}function cv(){return this.isValid()?this._isUTC:!1}function es(){return this.isValid()?this._isUTC&&this._offset===0:!1}function rt(n,t){var i=n,r=null,u,e,o;return of(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=os.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[ht])*u,h:f(r[v])*u,m:f(r[it])*u,s:f(r[vt])*u,ms:f(sf(r[ni]*1e3))*u}):(r=ss.exec(n))?(u=r[1]==="-"?-1:1,i={y:ii(r[2],u),M:ii(r[3],u),w:ii(r[4],u),d:ii(r[5],u),h:ii(r[6],u),m:ii(r[7],u),s:ii(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=lv(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new dr(i),of(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ii(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function hs(n,t){var i={};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function lv(n,t){var i;return(n.isValid()&&t.isValid())?(t=cf(t,n),n.isBefore(t)?i=hs(n,t):(i=hs(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function cs(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(te(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=rt(i,r),ls(this,u,n),this}}function ls(n,i,r,u){var o=i._milliseconds,f=sf(i._days),e=sf(i._months);n.isValid()&&(u=u==null?!0:u,e&&ke(n,yr(n,"Month")+e*r),f&&we(n,"Date",yr(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function av(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function vv(n,i){var u=n||c(),f=cf(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(st(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function yv(){return new yi(this)}function pv(n,t){var i=ot(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(t)||"millisecond",t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function wv(n,t){var i=ot(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(t)||"millisecond",t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function bv(n,t,i,r){var u=ot(n)?n:c(n),f=ot(t)?t:c(t);return(this.isValid()&&u.isValid()&&f.isValid())?(r=r||"()",(r[0]==="("?this.isAfter(u,i):!this.isBefore(u,i))&&(r[1]===")"?this.isBefore(f,i):!this.isAfter(f,i))):!1}function kv(n,t){var i=ot(n)?n:c(n),r;return(this.isValid()&&i.isValid())?(t=nt(t)||"millisecond",t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function dv(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function gv(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function ny(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=cf(n,this),!r.isValid())return NaN;f=(r.utcOffset()-this.utcOffset())*6e4;t=nt(t);switch(t){case"year":u=af(this,r)/12;break;case"month":u=af(this,r);break;case"quarter":u=af(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:d(u)}function af(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function ty(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function iy(n){if(!this.isValid())return null;var i=n!==!0,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?er(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):st(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",er(t,"Z")):er(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ry(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function uy(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=er(this,n);return this.localeData().postformat(i)}function fy(n,t){return this.isValid()&&(ot(n)&&n.isValid()||c(n).isValid())?rt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ey(n){return this.from(c(),n)}function oy(n,t){return this.isValid()&&(ot(n)&&n.isValid()||c(n).isValid())?rt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sy(n){return this.to(c(),n)}function ys(n){var t;return n===undefined?this._locale._abbr:(t=bt(n),t!=null&&(this._locale=t),this)}function ps(){return this._locale}function li(n,t){return(n%t+t)%t}function bs(n,t,i){return n<100&&n>=0?new Date(n+400,t,i)-ws:new Date(n,t,i).valueOf()}function ks(n,t,i){return n<100&&n>=0?Date.UTC(n+400,t,i)-ws:Date.UTC(n,t,i)}function hy(n){var i,r;if(n=nt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?ks:bs;switch(n){case"year":i=r(this.year(),0,1);break;case"quarter":i=r(this.year(),this.month()-this.month()%3,1);break;case"month":i=r(this.year(),this.month(),1);break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=r(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf()-li(i+(this._isUTC?0:this.utcOffset()*ci),nu);break;case"minute":i=this._d.valueOf()-li(i,ci);break;case"second":i=this._d.valueOf()-li(i,gr)}return this._d.setTime(i),t.updateOffset(this,!0),this}function cy(n){var i,r;if(n=nt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?ks:bs;switch(n){case"year":i=r(this.year()+1,0,1)-1;break;case"quarter":i=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=r(this.year(),this.month()+1,1)-1;break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf()+(nu-li(i+(this._isUTC?0:this.utcOffset()*ci),nu)-1);break;case"minute":i=this._d.valueOf()+(ci-li(i,ci)-1);break;case"second":i=this._d.valueOf()+(gr-li(i,gr)-1)}return this._d.setTime(i),t.updateOffset(this,!0),this}function ly(){return this._d.valueOf()-(this._offset||0)*6e4}function ay(){return Math.floor(this.valueOf()/1e3)}function vy(){return new Date(this.valueOf())}function yy(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function py(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function wy(){return this.isValid()?this.toISOString():null}function by(){return fu(this)}function ky(){return wt({},u(this))}function dy(){return u(this).overflow}function gy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function tu(n,t){r(0,[n,n.length],0,t)}function np(n){return ds.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function tp(n){return ds.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function ip(){return ti(this.year(),1,4)}function rp(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function ds(n,t,i,r,u){var f;return n==null?di(this,r,u).year:(f=ti(n,r,u),t>f&&(t=f),up.call(this,n,t,i,r,u))}function up(n,t,i,r,u){var e=io(n,t,i,r,u),f=ki(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function fp(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function ep(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function op(n,t){t[ni]=f(("0."+n)*1e3)}function sp(){return this._isUTC?"UTC":""}function hp(){return this._isUTC?"Coordinated Universal Time":""}function cp(n){return c(n*1e3)}function lp(){return c.apply(null,arguments).parseZone()}function ih(n){return n}function iu(n,t,i,r){var u=bt(),f=et().set(r,t);return u[i](f,n)}function rh(n,t,i){if(dt(n)&&(t=n,n=undefined),n=n||"",t!=null)return iu(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=iu(n,r,i,"month");return u}function pf(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(dt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,dt(t)&&(i=t,t=undefined),t=t||""),o=bt(),f=n?o._week.dow:0,i!=null)return iu(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=iu(t,(u+f)%7,r,"day");return e}function ap(n,t){return rh(n,t,"months")}function vp(n,t){return rh(n,t,"monthsShort")}function yp(n,t,i){return pf(n,t,i,"weekdays")}function pp(n,t,i){return pf(n,t,i,"weekdaysShort")}function wp(n,t,i){return pf(n,t,i,"weekdaysMin")}function bp(){var n=this._data;return this._milliseconds=ct(this._milliseconds),this._days=ct(this._days),this._months=ct(this._months),n.milliseconds=ct(n.milliseconds),n.seconds=ct(n.seconds),n.minutes=ct(n.minutes),n.hours=ct(n.hours),n.months=ct(n.months),n.years=ct(n.years),this}function uh(n,t,i,r){var u=rt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function kp(n,t){return uh(this,n,t,1)}function dp(n,t){return uh(this,n,t,-1)}function fh(n){return n<0?Math.floor(n):Math.ceil(n)}function gp(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=fh(wf(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=d(e/24),o=d(eh(n)),t+=o,n-=fh(wf(o)),s=d(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function eh(n){return n*4800/146097}function wf(n){return n*146097/4800}function nw(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=nt(n),n==="month"||n==="quarter"||n==="year"){t=this._days+i/864e5;r=this._months+eh(t);switch(n){case"month":return r;case"quarter":return r/3;case"year":return r/12}}else{t=this._days+Math.round(wf(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}}function tw(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6:NaN}function yt(n){return function(){return this.as(n)}}function lw(){return rt(this)}function aw(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN}function ri(n){return function(){return this.isValid()?this._data[n]:NaN}}function gw(){return d(this.days()/7)}function nb(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function tb(n,t,i){var r=rt(n).abs(),u=pt(r.as("s")),e=pt(r.as("m")),o=pt(r.as("h")),s=pt(r.as("d")),h=pt(r.as("M")),c=pt(r.as("y")),f=u<=ut.ss&&["s",u]||u<ut.s&&["ss",u]||e<=1&&["m"]||e<ut.m&&["mm",e]||o<=1&&["h"]||o<ut.h&&["hh",o]||s<=1&&["d"]||s<ut.d&&["dd",s]||h<=1&&["M"]||h<ut.M&&["MM",h]||c<=1&&["y"]||["yy",c];return f[2]=t,f[3]=+n>0,f[4]=i,nb.apply(null,f)}function ib(n){return n===undefined?pt:typeof n=="function"?(pt=n,!0):!1}function rb(n,t){return ut[n]===undefined?!1:t===undefined?ut[n]:(ut[n]=t,n==="s"&&(ut.ss=t-1),!0)}function ub(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=tb(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function ai(n){return(n>0)-(n<0)||+n}function uu(){if(!this.isValid())return this.localeData().invalidDate();var t=ru(this._milliseconds)/1e3,y=ru(this._days),r=ru(this._months),i,s,h;i=d(t/60);s=d(i/60);t%=60;i%=60;h=d(r/12);r%=12;var c=h,l=r,a=y,u=s,f=i,e=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var p=n<0?"-":"",v=ai(this._months)!==ai(n)?"-":"",w=ai(this._days)!==ai(n)?"-":"",o=ai(this._milliseconds)!==ai(n)?"-":"";return p+"P"+(c?v+c+"Y":"")+(l?v+l+"M":"")+(a?w+a+"D":"")+(u||f||e?"T":"")+(u?o+u+"H":"")+(f?o+f+"M":"")+(e?o+e+"S":"")}var bf,df,rr,ur,ou,re,ue,fe,ee,oe,se,he,ui,cu,ar,pu,a,wu,be,bu,ge,no,ro,uo,du,fo,eo,oo,so,lo,po,wo,ns,ts,rs,hi,fs,os,ss,as,vs,vf,yf,gs,nh,kt,th,n,o,ct,pt,ut,ru,e;df=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};rr=t.momentProperties=[];ur=!1;ou={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;re=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};ue={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};fe={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"};ee="Invalid date";oe="%d";se=/\d{1,2}/;he={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"};ui={};cu={};var ce=/(\[[^\[]*\])|(\\)?([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,fr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,lu={},fi={};var ae=/\d/,k=/\d\d/,ve=/\d{3}/,au=/\d{4}/,or=/[+-]?\d{6}/,s=/\d\d?/,ye=/\d\d\d\d?/,pe=/\d\d\d\d\d\d?/,sr=/\d{1,3}/,vu=/\d{1,4}/,hr=/[+-]?\d{1,6}/,cr=/[+-]?\d+/,gh=/Z|[+-]\d\d:?\d\d/gi,lr=/Z|[+-]\d\d(?::?\d\d)?/gi,pi=/[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,yu={};ar={};var tt=0,at=1,ht=2,v=3,it=4,vt=5,ni=6,rc=7,uc=8;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");p("year","y");w("year",1);i("Y",cr);i("YY",s,k);i("YYYY",vu,au);i("YYYYY",hr,or);i("YYYYYY",hr,or);h(["YYYYY","YYYYYY"],tt);h("YYYY",function(n,i){i[tt]=n.length===2?t.parseTwoDigitYear(n):f(n)});h("YY",function(n,i){i[tt]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[tt]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};pu=ei("FullYear",!0);a=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});p("month","M");w("month",8);i("M",s);i("MM",s,k);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[at]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[at]=f:u(i).invalidMonth=n});wu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;be="January_February_March_April_May_June_July_August_September_October_November_December".split("_");bu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");ge=pi;no=pi;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");p("week","w");p("isoWeek","W");w("week",5);w("isoWeek",5);i("w",s);i("ww",s,k);i("W",s);i("WW",s,k);wi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});ro={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");p("day","d");p("weekday","e");p("isoWeekday","E");w("day",11);w("weekday",11);w("isoWeekday",11);i("d",s);i("e",s);i("E",s);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});wi(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n});wi(["d","e","E"],function(n,t,i,r){t[r]=f(n)});uo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");du="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");fo="Su_Mo_Tu_We_Th_Fr_Sa".split("_");eo=pi;oo=pi;so=pi;r("H",["HH",2],0,"hour");r("h",["hh",2],0,nf);r("k",["kk",2],0,yl);r("hmm",0,0,function(){return""+nf.apply(this)+lt(this.minutes(),2)});r("hmmss",0,0,function(){return""+nf.apply(this)+lt(this.minutes(),2)+lt(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+lt(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+lt(this.minutes(),2)+lt(this.seconds(),2)});ho("a",!0);ho("A",!1);p("hour","h");w("hour",13);i("a",co);i("A",co);i("H",s);i("h",s);i("k",s);i("HH",s,k);i("hh",s,k);i("kk",s,k);i("hmm",ye);i("hmmss",pe);i("Hmm",ye);i("Hmmss",pe);h(["H","HH"],v);h(["k","kk"],function(n,t){var i=f(n);t[v]=i===24?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[v]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r));t[it]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r));t[it]=f(n.substr(r,2));t[vt]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i));t[it]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i));t[it]=f(n.substr(i,2));t[vt]=f(n.substr(r))});lo=/[ap]\.?m?\.?/i;var bl=ei("Hours",!0),ao={calendar:ue,longDateFormat:fe,invalidDate:ee,ordinal:oe,dayOfMonthOrdinalParse:se,relativeTime:he,months:be,monthsShort:bu,week:ro,weekdays:uo,weekdaysMin:fo,weekdaysShort:du,meridiemParse:lo},y={},gi={},nr;var ia=/^\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)?)?$/,ra=/^\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)?)?$/,ua=/Z|[+-]\d\d(?::?\d\d)?/,kr=[["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}/]],ff=[["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/]],fa=/^\/?Date\((\-?\d+)/i;po=/^(?:(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}))$/;wo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=g("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(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});t.ISO_8601=function(){};t.RFC_2822=function(){};ns=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:ir()});ts=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:ir()});rs=function(){return Date.now?Date.now():+new Date};hi=["year","quarter","month","week","day","hour","minute","second","millisecond"];us("Z",":");us("ZZ","");i("Z",lr);i("ZZ",lr);h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=hf(lr,n)});fs=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};os=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;ss=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;rt.fn=dr.prototype;rt.invalid=nv;as=cs(1,"add");vs=cs(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";vf=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)});var gr=1e3,ci=60*gr,nu=60*ci,ws=3506328*nu;for(r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tu("gggg","weekYear"),tu("ggggg","weekYear"),tu("GGGG","isoWeekYear"),tu("GGGGG","isoWeekYear"),p("weekYear","gg"),p("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),i("G",cr),i("g",cr),i("GG",s,k),i("gg",s,k),i("GGGG",vu,au),i("gggg",vu,au),i("GGGGG",hr,or),i("ggggg",hr,or),wi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),wi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),p("quarter","Q"),w("quarter",7),i("Q",ae),h("Q",function(n,t){t[at]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),p("date","D"),w("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ht),h("Do",function(n,t){t[ht]=f(n.match(s)[0])}),yf=ei("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),p("dayOfYear","DDD"),w("dayOfYear",4),i("DDD",sr),i("DDDD",ve),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),p("minute","m"),w("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],it),gs=ei("Minutes",!1),r("s",["ss",2],0,"second"),p("second","s"),w("second",15),i("s",s),i("ss",s,k),h(["s","ss"],vt),nh=ei("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),p("millisecond","ms"),w("millisecond",16),i("S",sr,ae),i("SS",sr,k),i("SSS",sr,ve),kt="SSSS";kt.length<=9;kt+="S")i(kt,/\d+/);for(kt="S";kt.length<=9;kt+="S")h(kt,op);th=ei("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=yi.prototype;n.add=as;n.calendar=vv;n.clone=yv;n.diff=ny;n.endOf=cy;n.format=uy;n.from=fy;n.fromNow=ey;n.to=oy;n.toNow=sy;n.get=ec;n.invalidAt=dy;n.isAfter=pv;n.isBefore=wv;n.isBetween=bv;n.isSame=kv;n.isSameOrAfter=dv;n.isSameOrBefore=gv;n.isValid=by;n.lang=vf;n.locale=ys;n.localeData=ps;n.max=ts;n.min=ns;n.parsingFlags=ky;n.set=oc;n.startOf=hy;n.subtract=vs;n.toArray=yy;n.toObject=py;n.toDate=vy;n.toISOString=iy;n.inspect=ry;n.toJSON=wy;n.toString=ty;n.unix=ay;n.valueOf=ly;n.creationData=gy;n.year=pu;n.isLeapYear=fc;n.weekYear=np;n.isoWeekYear=tp;n.quarter=n.quarters=fp;n.month=de;n.daysInMonth=vc;n.week=n.weeks=gc;n.isoWeek=n.isoWeeks=nl;n.weeksInYear=rp;n.isoWeeksInYear=ip;n.date=yf;n.day=n.days=sl;n.weekday=hl;n.isoWeekday=cl;n.dayOfYear=ep;n.hour=n.hours=bl;n.minute=n.minutes=gs;n.second=n.seconds=nh;n.millisecond=n.milliseconds=th;n.utcOffset=tv;n.utc=rv;n.local=uv;n.parseZone=fv;n.hasAlignedHourOffset=ev;n.isDST=ov;n.isLocal=hv;n.isUtcOffset=cv;n.isUtc=es;n.isUTC=es;n.zoneAbbr=sp;n.zoneName=hp;n.dates=g("dates accessor is deprecated. Use date instead.",yf);n.months=g("months accessor is deprecated. Use month instead",de);n.years=g("years accessor is deprecated. Use year instead",pu);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",iv);n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sv);o=su.prototype;o.calendar=lh;o.longDateFormat=ah;o.invalidDate=vh;o.ordinal=yh;o.preparse=ih;o.postformat=ih;o.relativeTime=ph;o.pastFuture=wh;o.set=ch;o.months=hc;o.monthsShort=cc;o.monthsParse=ac;o.monthsRegex=pc;o.monthsShortRegex=yc;o.week=bc;o.firstDayOfYear=dc;o.firstDayOfWeek=kc;o.weekdays=rl;o.weekdaysMin=fl;o.weekdaysShort=ul;o.weekdaysParse=ol;o.weekdaysRegex=ll;o.weekdaysShortRegex=al;o.weekdaysMinRegex=vl;o.isPM=pl;o.meridiem=wl;oi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=g("moment.lang is deprecated. Use moment.locale instead.",oi);t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",bt);ct=Math.abs;var iw=yt("ms"),rw=yt("s"),uw=yt("m"),fw=yt("h"),ew=yt("d"),ow=yt("w"),sw=yt("M"),hw=yt("Q"),cw=yt("y");var vw=ri("milliseconds"),yw=ri("seconds"),pw=ri("minutes"),ww=ri("hours"),bw=ri("days"),kw=ri("months"),dw=ri("years");return pt=Math.round,ut={ss:44,s:45,m:45,h:22,d:26,M:11},ru=Math.abs,e=dr.prototype,e.isValid=ga,e.abs=bp,e.add=kp,e.subtract=dp,e.as=nw,e.asMilliseconds=iw,e.asSeconds=rw,e.asMinutes=uw,e.asHours=fw,e.asDays=ew,e.asWeeks=ow,e.asMonths=sw,e.asQuarters=hw,e.asYears=cw,e.valueOf=tw,e._bubble=gp,e.clone=lw,e.get=aw,e.milliseconds=vw,e.seconds=yw,e.minutes=pw,e.hours=ww,e.days=bw,e.weeks=gw,e.months=kw,e.years=dw,e.humanize=ub,e.toISOString=uu,e.toString=uu,e.toJSON=uu,e.locale=ys,e.localeData=ps,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uu),e.lang=vf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",cr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.24.0",oh(c),t.fn=n,t.min=ba,t.max=ka,t.now=rs,t.utc=et,t.unix=cp,t.months=ap,t.isDate=tr,t.locale=oi,t.invalid=ir,t.duration=rt,t.isMoment=ot,t.weekdays=yp,t.parseZone=lp,t.localeData=bt,t.isDuration=of,t.monthsShort=vp,t.weekdaysMin=wp,t.defineLocale=tf,t.updateLocale=dl,t.locales=gl,t.weekdaysShort=pp,t.normalizeUnits=nt,t.relativeTimeRounding=ib,t.relativeTimeThreshold=rb,t.calendarFormat=av,t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}),typeof jQuery=="undefined")throw new Error("Tempus Dominus Bootstrap4's requires jQuery. jQuery must be included before Tempus Dominus Bootstrap4's JavaScript.");if(+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]===1&&t[1]===9&&t[2]<1||t[0]>=4)throw new Error("Tempus Dominus Bootstrap4's requires at least jQuery v3.0.0 but less than v4.0.0");}(jQuery),typeof moment=="undefined")throw new Error("Tempus Dominus Bootstrap4's requires moment.js. Moment.js must be included before Tempus Dominus Bootstrap4's JavaScript.");var version=moment.version.split(".");if(version[0]<=2&&version[1]<17||version[0]>=3)throw new Error("Tempus Dominus Bootstrap4's requires at least moment.js v2.17.0 but less than v3.0.0");+function(){function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function f(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),n=function(n,i){var e="datetimepicker",o=""+e,u="."+o,h=".data-api",v={DATA_TOGGLE:'[data-toggle="'+o+'"]'},y={INPUT:e+"-input"},p={CHANGE:"change"+u,BLUR:"blur"+u,KEYUP:"keyup"+u,KEYDOWN:"keydown"+u,FOCUS:"focus"+u,CLICK_DATA_API:"click"+u+h,UPDATE:"update"+u,ERROR:"error"+u,HIDE:"hide"+u,SHOW:"show"+u},c=[{CLASS_NAME:"days",NAV_FUNCTION:"M",NAV_STEP:1},{CLASS_NAME:"months",NAV_FUNCTION:"y",NAV_STEP:1},{CLASS_NAME:"years",NAV_FUNCTION:"y",NAV_STEP:10},{CLASS_NAME:"decades",NAV_FUNCTION:"y",NAV_STEP:100}],l={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},w=["times","days","months","years","decades"],f={},a={},s={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:i.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-arrow-up",down:"fa fa-arrow-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-calendar-check-o",clear:"fa fa-delete",close:"fa fa-times"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time",selectDate:"Select Date"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",buttons:{showToday:!1,showClear:!1,showClose:!1},widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,keyBinds:{up:function(){if(!this.widget)return!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(n.clone().subtract(7,"d")):this.date(n.clone().add(this.stepping(),"m")),!0},down:function(){if(!this.widget)return this.show(),!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(n.clone().add(7,"d")):this.date(n.clone().subtract(this.stepping(),"m")),!0},"control up":function(){if(!this.widget)return!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(n.clone().subtract(1,"y")):this.date(n.clone().add(1,"h")),!0},"control down":function(){if(!this.widget)return!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(n.clone().add(1,"y")):this.date(n.clone().subtract(1,"h")),!0},left:function(){if(!this.widget)return!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"d")),!0},right:function(){if(!this.widget)return!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"d")),!0},pageUp:function(){if(!this.widget)return!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"M")),!0},pageDown:function(){if(!this.widget)return!1;var n=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"M")),!0},enter:function(){return this.widget?(this.hide(),!0):!1},escape:function(){return this.widget?(this.hide(),!0):!1},"control space":function(){return this.widget?(this.widget.find(".timepicker").is(":visible")&&this.widget.find('.btn[data-action="togglePeriod"]').click(),!0):!1},t:function(){return this.widget?(this.date(this.getMoment()),!0):!1},"delete":function(){return this.widget?(this.clear(),!0):!1}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1,allowMultidate:!1,multidateSeparator:","};return function(){function b(n,i){t(this,b);this._options=this._getOptions(i);this._element=n;this._dates=[];this._datesFormatted=[];this._viewDate=null;this.unset=!0;this.component=!1;this.widget=!1;this.use24Hours=null;this.actualFormat=null;this.parseFormats=null;this.currentViewMode=null;this.MinViewModeNumber=0;this._int()}return b.prototype._int=function(){var t=this._element.data("target-input");this._element.is("input")?this.input=this._element:t!==undefined&&(this.input=t==="nearest"?this._element.find("input"):n(t));this._dates=[];this._dates[0]=this.getMoment();this._viewDate=this.getMoment().clone();n.extend(!0,this._options,this._dataToOptions());this.options(this._options);this._initFormatting();this._options.inline&&this.show()},b.prototype._update=function(){this.widget&&(this._fillDate(),this._fillTime())},b.prototype._setValue=function(n,t){var r=this.unset?null:this._dates[t],i="",u;if(!n){this._options.allowMultidate&&this._dates.length!==1?(i=this._element.data("date")+",",i=i.replace(r.format(this.actualFormat)+",","").replace(",,","").replace(/,\s*$/,""),this._dates.splice(t,1),this._datesFormatted.splice(t,1)):(this.unset=!0,this._dates=[],this._datesFormatted=[]);this.input!==undefined&&(this.input.val(i),this.input.trigger("input"));this._element.data("date",i);this._notifyEvent({type:b.Event.CHANGE,date:!1,oldDate:r});this._update();return}if(n=n.clone().locale(this._options.locale),this._hasTimeZone()&&n.tz(this._options.timeZone),this._options.stepping!==1&&n.minutes(Math.round(n.minutes()/this._options.stepping)*this._options.stepping).seconds(0),this._isValid(n)){if(this._dates[t]=n,this._datesFormatted[t]=n.format("YYYY-MM-DD"),this._viewDate=n.clone(),this._options.allowMultidate&&this._dates.length>1){for(u=0;u<this._dates.length;u++)i+=""+this._dates[u].format(this.actualFormat)+this._options.multidateSeparator;i=i.replace(/,\s*$/,"")}else i=this._dates[t].format(this.actualFormat);this.input!==undefined&&(this.input.val(i),this.input.trigger("input"));this._element.data("date",i);this.unset=!1;this._update();this._notifyEvent({type:b.Event.CHANGE,date:this._dates[t].clone(),oldDate:r})}else this._options.keepInvalid?this._notifyEvent({type:b.Event.CHANGE,date:n,oldDate:r}):this.input!==undefined&&(this.input.val(""+(this.unset?"":this._dates[t].format(this.actualFormat))),this.input.trigger("input")),this._notifyEvent({type:b.Event.ERROR,date:n,oldDate:r})},b.prototype._change=function(t){var i=n(t.target).val().trim(),r=i?this._parseInputDate(i):null;return this._setValue(r),t.stopImmediatePropagation(),!1},b.prototype._getOptions=function(t){return n.extend(!0,{},s,t)},b.prototype._hasTimeZone=function(){return i.tz!==undefined&&this._options.timeZone!==undefined&&this._options.timeZone!==null&&this._options.timeZone!==""},b.prototype._isEnabled=function(n){if(typeof n!="string"||n.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(n){case"y":return this.actualFormat.indexOf("Y")!==-1;case"M":return this.actualFormat.indexOf("M")!==-1;case"d":return this.actualFormat.toLowerCase().indexOf("d")!==-1;case"h":case"H":return this.actualFormat.toLowerCase().indexOf("h")!==-1;case"m":return this.actualFormat.indexOf("m")!==-1;case"s":return this.actualFormat.indexOf("s")!==-1;case"a":case"A":return this.actualFormat.toLowerCase().indexOf("a")!==-1;default:return!1}},b.prototype._hasTime=function(){return this._isEnabled("h")||this._isEnabled("m")||this._isEnabled("s")},b.prototype._hasDate=function(){return this._isEnabled("y")||this._isEnabled("M")||this._isEnabled("d")},b.prototype._dataToOptions=function(){var t=this._element.data(),i={};return t.dateOptions&&t.dateOptions instanceof Object&&(i=n.extend(!0,i,t.dateOptions)),n.each(this._options,function(n){var r="date"+n.charAt(0).toUpperCase()+n.slice(1);t[r]!==undefined?i[n]=t[r]:delete i[n]}),i},b.prototype._notifyEvent=function(n){(n.type!==b.Event.CHANGE||!n.date||!n.date.isSame(n.oldDate))&&(n.date||n.oldDate)&&this._element.trigger(n)},b.prototype._viewUpdate=function(n){n==="y"&&(n="YYYY");this._notifyEvent({type:b.Event.UPDATE,change:n,viewDate:this._viewDate.clone()})},b.prototype._showMode=function(n){this.widget&&(n&&(this.currentViewMode=Math.max(this.MinViewModeNumber,Math.min(3,this.currentViewMode+n))),this.widget.find(".datepicker > div").hide().filter(".datepicker-"+c[this.currentViewMode].CLASS_NAME).show())},b.prototype._isInDisabledDates=function(n){return this._options.disabledDates[n.format("YYYY-MM-DD")]===!0},b.prototype._isInEnabledDates=function(n){return this._options.enabledDates[n.format("YYYY-MM-DD")]===!0},b.prototype._isInDisabledHours=function(n){return this._options.disabledHours[n.format("H")]===!0},b.prototype._isInEnabledHours=function(n){return this._options.enabledHours[n.format("H")]===!0},b.prototype._isValid=function(t,i){if(!t.isValid()||this._options.disabledDates&&i==="d"&&this._isInDisabledDates(t)||this._options.enabledDates&&i==="d"&&!this._isInEnabledDates(t)||this._options.minDate&&t.isBefore(this._options.minDate,i)||this._options.maxDate&&t.isAfter(this._options.maxDate,i)||this._options.daysOfWeekDisabled&&i==="d"&&this._options.daysOfWeekDisabled.indexOf(t.day())!==-1||this._options.disabledHours&&(i==="h"||i==="m"||i==="s")&&this._isInDisabledHours(t)||this._options.enabledHours&&(i==="h"||i==="m"||i==="s")&&!this._isInEnabledHours(t))return!1;if(this._options.disabledTimeIntervals&&(i==="h"||i==="m"||i==="s")){var r=!1;if(n.each(this._options.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return r=!0,!1}),r)return!1}return!0},b.prototype._parseInputDate=function(n){return this._options.parseInputDate===undefined?i.isMoment(n)||(n=this.getMoment(n)):n=this._options.parseInputDate(n),n},b.prototype._keydown=function(n){var u=null,t=void 0,r=void 0,i=void 0,e=void 0,s=[],h={},o=n.which,c="p";f[o]=c;for(t in f)f.hasOwnProperty(t)&&f[t]===c&&(s.push(t),parseInt(t,10)!==o&&(h[t]=!0));for(t in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(t)&&typeof this._options.keyBinds[t]=="function"&&(i=t.split(" "),i.length===s.length&&l[o]===i[i.length-1])){for(e=!0,r=i.length-2;r>=0;r--)if(!(l[i[r]]in h)){e=!1;break}if(e){u=this._options.keyBinds[t];break}}u&&u.call(this)&&(n.stopPropagation(),n.preventDefault())},b.prototype._keyup=function(n){f[n.which]="r";a[n.which]&&(a[n.which]=!1,n.stopPropagation(),n.preventDefault())},b.prototype._indexGivenDates=function(t){var i={},r=this;return n.each(t,function(){var n=r._parseInputDate(this);n.isValid()&&(i[n.format("YYYY-MM-DD")]=!0)}),Object.keys(i).length?i:!1},b.prototype._indexGivenHours=function(t){var i={};return n.each(t,function(){i[this]=!0}),Object.keys(i).length?i:!1},b.prototype._initFormatting=function(){var n=this._options.format||"L LT",t=this;this.actualFormat=n.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(n){return t._dates[0].localeData().longDateFormat(n)||n});this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[];this.parseFormats.indexOf(n)<0&&this.parseFormats.indexOf(this.actualFormat)<0&&this.parseFormats.push(this.actualFormat);this.use24Hours=this.actualFormat.toLowerCase().indexOf("a")<1&&this.actualFormat.replace(/\[.*?]/g,"").indexOf("h")<1;this._isEnabled("y")&&(this.MinViewModeNumber=2);this._isEnabled("M")&&(this.MinViewModeNumber=1);this._isEnabled("d")&&(this.MinViewModeNumber=0);this.currentViewMode=Math.max(this.MinViewModeNumber,this.currentViewMode);this.unset||this._setValue(this._dates[0],0)},b.prototype._getLastPickedDate=function(){return this._dates[this._getLastPickedDateIndex()]},b.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},b.prototype.getMoment=function(n){var t=void 0;return t=n===undefined||n===null?i():this._hasTimeZone()?i.tz(n,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):i(n,this.parseFormats,this._options.locale,this._options.useStrict),this._hasTimeZone()&&t.tz(this._options.timeZone),t},b.prototype.toggle=function(){return this.widget?this.hide():this.show()},b.prototype.ignoreReadonly=function(n){if(arguments.length===0)return this._options.ignoreReadonly;if(typeof n!="boolean")throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=n},b.prototype.options=function(t){if(arguments.length===0)return n.extend(!0,{},this._options);if(!(t instanceof Object))throw new TypeError("options() this.options parameter should be an object");n.extend(!0,this._options,t);var i=this;n.each(this._options,function(n,t){i[n]!==undefined&&i[n](t)})},b.prototype.date=function(n,t){if(t=t||0,arguments.length===0)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[t].clone();if(n!==null&&typeof n!="string"&&!i.isMoment(n)&&!(n instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(n===null?null:this._parseInputDate(n),t)},b.prototype.format=function(n){if(arguments.length===0)return this._options.format;if(typeof n!="string"&&(typeof n!="boolean"||n!==!1))throw new TypeError("format() expects a string or boolean:false parameter "+n);this._options.format=n;this.actualFormat&&this._initFormatting()},b.prototype.timeZone=function(n){if(arguments.length===0)return this._options.timeZone;if(typeof n!="string")throw new TypeError("newZone() expects a string parameter");this._options.timeZone=n},b.prototype.dayViewHeaderFormat=function(n){if(arguments.length===0)return this._options.dayViewHeaderFormat;if(typeof n!="string")throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=n},b.prototype.extraFormats=function(n){if(arguments.length===0)return this._options.extraFormats;if(n!==!1&&!(n instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=n;this.parseFormats&&this._initFormatting()},b.prototype.disabledDates=function(t){if(arguments.length===0)return this._options.disabledDates?n.extend({},this._options.disabledDates):this._options.disabledDates;if(!t)return this._options.disabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(t);this._options.enabledDates=!1;this._update()},b.prototype.enabledDates=function(t){if(arguments.length===0)return this._options.enabledDates?n.extend({},this._options.enabledDates):this._options.enabledDates;if(!t)return this._options.enabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(t);this._options.disabledDates=!1;this._update()},b.prototype.daysOfWeekDisabled=function(n){var t,i;if(arguments.length===0)return this._options.daysOfWeekDisabled.splice(0);if(typeof n=="boolean"&&!n)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(n instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=n.reduce(function(n,t){return(t=parseInt(t,10),t>6||t<0||isNaN(t))?n:(n.indexOf(t)===-1&&n.push(t),n)},[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(t=0;t<this._dates.length;t++){for(i=0;!this._isValid(this._dates[t],"d");){if(this._dates[t].add(1,"d"),i===31)throw"Tried 31 times to find a valid date";i++}this._setValue(this._dates[t],t)}this._update()},b.prototype.maxDate=function(n){var t,i;if(arguments.length===0)return this._options.maxDate?this._options.maxDate.clone():this._options.maxDate;if(typeof n=="boolean"&&n===!1)return this._options.maxDate=!1,this._update(),!0;if(typeof n=="string"&&(n==="now"||n==="moment")&&(n=this.getMoment()),t=this._parseInputDate(n),!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+n);if(this._options.minDate&&t.isBefore(this._options.minDate))throw new TypeError("maxDate() date parameter is before this.options.minDate: "+t.format(this.actualFormat));for(this._options.maxDate=t,i=0;i<this._dates.length;i++)this._options.useCurrent&&!this._options.keepInvalid&&this._dates[i].isAfter(n)&&this._setValue(this._options.maxDate,i);this._viewDate.isAfter(t)&&(this._viewDate=t.clone().subtract(this._options.stepping,"m"));this._update()},b.prototype.minDate=function(n){var t,i;if(arguments.length===0)return this._options.minDate?this._options.minDate.clone():this._options.minDate;if(typeof n=="boolean"&&n===!1)return this._options.minDate=!1,this._update(),!0;if(typeof n=="string"&&(n==="now"||n==="moment")&&(n=this.getMoment()),t=this._parseInputDate(n),!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+n);if(this._options.maxDate&&t.isAfter(this._options.maxDate))throw new TypeError("minDate() date parameter is after this.options.maxDate: "+t.format(this.actualFormat));for(this._options.minDate=t,i=0;i<this._dates.length;i++)this._options.useCurrent&&!this._options.keepInvalid&&this._dates[i].isBefore(n)&&this._setValue(this._options.minDate,i);this._viewDate.isBefore(t)&&(this._viewDate=t.clone().add(this._options.stepping,"m"));this._update()},b.prototype.defaultDate=function(n){if(arguments.length===0)return this._options.defaultDate?this._options.defaultDate.clone():this._options.defaultDate;if(!n)return this._options.defaultDate=!1,!0;typeof n=="string"&&(n=n==="now"||n==="moment"?this.getMoment():this.getMoment(n));var t=this._parseInputDate(n);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+n);if(!this._isValid(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");this._options.defaultDate=t;(this._options.defaultDate&&this._options.inline||this.input!==undefined&&this.input.val().trim()==="")&&this._setValue(this._options.defaultDate,0)},b.prototype.locale=function(n){if(arguments.length===0)return this._options.locale;if(!i.localeData(n))throw new TypeError("locale() locale "+n+" is not loaded from moment locales!");this._options.locale=n;for(var t=0;t<this._dates.length;t++)this._dates[t].locale(this._options.locale);this._viewDate.locale(this._options.locale);this.actualFormat&&this._initFormatting();this.widget&&(this.hide(),this.show())},b.prototype.stepping=function(n){if(arguments.length===0)return this._options.stepping;n=parseInt(n,10);(isNaN(n)||n<1)&&(n=1);this._options.stepping=n},b.prototype.useCurrent=function(n){var t=["year","month","day","hour","minute"];if(arguments.length===0)return this._options.useCurrent;if(typeof n!="boolean"&&typeof n!="string")throw new TypeError("useCurrent() expects a boolean or string parameter");if(typeof n=="string"&&t.indexOf(n.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));this._options.useCurrent=n},b.prototype.collapse=function(n){if(arguments.length===0)return this._options.collapse;if(typeof n!="boolean")throw new TypeError("collapse() expects a boolean parameter");if(this._options.collapse===n)return!0;this._options.collapse=n;this.widget&&(this.hide(),this.show())},b.prototype.icons=function(t){if(arguments.length===0)return n.extend({},this._options.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");n.extend(this._options.icons,t);this.widget&&(this.hide(),this.show())},b.prototype.tooltips=function(t){if(arguments.length===0)return n.extend({},this._options.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");n.extend(this._options.tooltips,t);this.widget&&(this.hide(),this.show())},b.prototype.useStrict=function(n){if(arguments.length===0)return this._options.useStrict;if(typeof n!="boolean")throw new TypeError("useStrict() expects a boolean parameter");this._options.useStrict=n},b.prototype.sideBySide=function(n){if(arguments.length===0)return this._options.sideBySide;if(typeof n!="boolean")throw new TypeError("sideBySide() expects a boolean parameter");this._options.sideBySide=n;this.widget&&(this.hide(),this.show())},b.prototype.viewMode=function(n){if(arguments.length===0)return this._options.viewMode;if(typeof n!="string")throw new TypeError("viewMode() expects a string parameter");if(b.ViewModes.indexOf(n)===-1)throw new TypeError("viewMode() parameter must be one of ("+b.ViewModes.join(", ")+") value");this._options.viewMode=n;this.currentViewMode=Math.max(b.ViewModes.indexOf(n)-1,this.MinViewModeNumber);this._showMode()},b.prototype.calendarWeeks=function(n){if(arguments.length===0)return this._options.calendarWeeks;if(typeof n!="boolean")throw new TypeError("calendarWeeks() expects parameter to be a boolean value");this._options.calendarWeeks=n;this._update()},b.prototype.buttons=function(t){if(arguments.length===0)return n.extend({},this._options.buttons);if(!(t instanceof Object))throw new TypeError("buttons() expects parameter to be an Object");if(n.extend(this._options.buttons,t),typeof this._options.buttons.showToday!="boolean")throw new TypeError("buttons.showToday expects a boolean parameter");if(typeof this._options.buttons.showClear!="boolean")throw new TypeError("buttons.showClear expects a boolean parameter");if(typeof this._options.buttons.showClose!="boolean")throw new TypeError("buttons.showClose expects a boolean parameter");this.widget&&(this.hide(),this.show())},b.prototype.keepOpen=function(n){if(arguments.length===0)return this._options.keepOpen;if(typeof n!="boolean")throw new TypeError("keepOpen() expects a boolean parameter");this._options.keepOpen=n},b.prototype.focusOnShow=function(n){if(arguments.length===0)return this._options.focusOnShow;if(typeof n!="boolean")throw new TypeError("focusOnShow() expects a boolean parameter");this._options.focusOnShow=n},b.prototype.inline=function(n){if(arguments.length===0)return this._options.inline;if(typeof n!="boolean")throw new TypeError("inline() expects a boolean parameter");this._options.inline=n},b.prototype.clear=function(){this._setValue(null)},b.prototype.keyBinds=function(n){if(arguments.length===0)return this._options.keyBinds;this._options.keyBinds=n},b.prototype.debug=function(n){if(typeof n!="boolean")throw new TypeError("debug() expects a boolean parameter");this._options.debug=n},b.prototype.allowInputToggle=function(n){if(arguments.length===0)return this._options.allowInputToggle;if(typeof n!="boolean")throw new TypeError("allowInputToggle() expects a boolean parameter");this._options.allowInputToggle=n},b.prototype.keepInvalid=function(n){if(arguments.length===0)return this._options.keepInvalid;if(typeof n!="boolean")throw new TypeError("keepInvalid() expects a boolean parameter");this._options.keepInvalid=n},b.prototype.datepickerInput=function(n){if(arguments.length===0)return this._options.datepickerInput;if(typeof n!="string")throw new TypeError("datepickerInput() expects a string parameter");this._options.datepickerInput=n},b.prototype.parseInputDate=function(n){if(arguments.length===0)return this._options.parseInputDate;if(typeof n!="function")throw new TypeError("parseInputDate() should be as function");this._options.parseInputDate=n},b.prototype.disabledTimeIntervals=function(t){if(arguments.length===0)return this._options.disabledTimeIntervals?n.extend({},this._options.disabledTimeIntervals):this._options.disabledTimeIntervals;if(!t)return this._options.disabledTimeIntervals=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");this._options.disabledTimeIntervals=t;this._update()},b.prototype.disabledHours=function(t){var i,r;if(arguments.length===0)return this._options.disabledHours?n.extend({},this._options.disabledHours):this._options.disabledHours;if(!t)return this._options.disabledHours=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(this._options.disabledHours=this._indexGivenHours(t),this._options.enabledHours=!1,this._options.useCurrent&&!this._options.keepInvalid)for(i=0;i<this._dates.length;i++){for(r=0;!this._isValid(this._dates[i],"h");){if(this._dates[i].add(1,"h"),r===24)throw"Tried 24 times to find a valid date";r++}this._setValue(this._dates[i],i)}this._update()},b.prototype.enabledHours=function(t){var i,r;if(arguments.length===0)return this._options.enabledHours?n.extend({},this._options.enabledHours):this._options.enabledHours;if(!t)return this._options.enabledHours=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(this._options.enabledHours=this._indexGivenHours(t),this._options.disabledHours=!1,this._options.useCurrent&&!this._options.keepInvalid)for(i=0;i<this._dates.length;i++){for(r=0;!this._isValid(this._dates[i],"h");){if(this._dates[i].add(1,"h"),r===24)throw"Tried 24 times to find a valid date";r++}this._setValue(this._dates[i],i)}this._update()},b.prototype.viewDate=function(n){if(arguments.length===0)return this._viewDate.clone();if(!n)return this._viewDate=(this._dates[0]||this.getMoment()).clone(),!0;if(typeof n!="string"&&!i.isMoment(n)&&!(n instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");this._viewDate=this._parseInputDate(n);this._viewUpdate()},b.prototype.allowMultidate=function(n){if(typeof n!="boolean")throw new TypeError("allowMultidate() expects a boolean parameter");this._options.allowMultidate=n},b.prototype.multidateSeparator=function(n){if(arguments.length===0)return this._options.multidateSeparator;if(typeof n!="string"||n.length>1)throw new TypeError("multidateSeparator expects a single character string parameter");this._options.multidateSeparator=n},r(b,null,[{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return o}},{key:"EVENT_KEY",get:function(){return u}},{key:"DATA_API_KEY",get:function(){return h}},{key:"DatePickerModes",get:function(){return c}},{key:"ViewModes",get:function(){return w}},{key:"Event",get:function(){return p}},{key:"Selector",get:function(){return v}},{key:"Default",get:function(){return s},set:function(n){s=n}},{key:"ClassName",get:function(){return y}}]),b}()}(jQuery,moment),e=function(r){var l=r.fn[n.NAME],s=["top","bottom","auto"],h=["left","right","auto"],c=["default","top","bottom"],o=function(t){var i=t.data("target"),u=void 0;return(i||(i=t.attr("href")||"",i=/^#[a-z]/i.test(i)?i:null),u=r(i),u.length===0)?u:(u.data(n.DATA_KEY)||r.extend({},u.data(),r(this).data()),u)},e=function(e){function o(n,i){t(this,o);var r=u(this,e.call(this,n,i));return r._init(),r}return f(o,e),o.prototype._init=function(){if(this._element.hasClass("input-group")){var n=this._element.find(".datepickerbutton");this.component=n.length===0?this._element.find('[data-toggle="datetimepicker"]'):n}},o.prototype._getDatePickerTemplate=function(){var n=r("<thead>").append(r("<tr>").append(r("<th>").addClass("prev").attr("data-action","previous").append(r("<span>").addClass(this._options.icons.previous))).append(r("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",""+(this._options.calendarWeeks?"6":"5"))).append(r("<th>").addClass("next").attr("data-action","next").append(r("<span>").addClass(this._options.icons.next)))),t=r("<tbody>").append(r("<tr>").append(r("<td>").attr("colspan",""+(this._options.calendarWeeks?"8":"7"))));return[r("<div>").addClass("datepicker-days").append(r("<table>").addClass("table table-sm").append(n).append(r("<tbody>"))),r("<div>").addClass("datepicker-months").append(r("<table>").addClass("table-condensed").append(n.clone()).append(t.clone())),r("<div>").addClass("datepicker-years").append(r("<table>").addClass("table-condensed").append(n.clone()).append(t.clone())),r("<div>").addClass("datepicker-decades").append(r("<table>").addClass("table-condensed").append(n.clone()).append(t.clone()))]},o.prototype._getTimePickerMainTemplate=function(){var n=r("<tr>"),t=r("<tr>"),i=r("<tr>");return this._isEnabled("h")&&(n.append(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(r("<span>").addClass(this._options.icons.up)))),t.append(r("<td>").append(r("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:this._options.tooltips.pickHour}).attr("data-action","showHours"))),i.append(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(r("<span>").addClass(this._options.icons.down))))),this._isEnabled("m")&&(this._isEnabled("h")&&(n.append(r("<td>").addClass("separator")),t.append(r("<td>").addClass("separator").html(":")),i.append(r("<td>").addClass("separator"))),n.append(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(r("<span>").addClass(this._options.icons.up)))),t.append(r("<td>").append(r("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:this._options.tooltips.pickMinute}).attr("data-action","showMinutes"))),i.append(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(r("<span>").addClass(this._options.icons.down))))),this._isEnabled("s")&&(this._isEnabled("m")&&(n.append(r("<td>").addClass("separator")),t.append(r("<td>").addClass("separator").html(":")),i.append(r("<td>").addClass("separator"))),n.append(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(r("<span>").addClass(this._options.icons.up)))),t.append(r("<td>").append(r("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:this._options.tooltips.pickSecond}).attr("data-action","showSeconds"))),i.append(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(r("<span>").addClass(this._options.icons.down))))),this.use24Hours||(n.append(r("<td>").addClass("separator")),t.append(r("<td>").append(r("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:this._options.tooltips.togglePeriod}))),i.append(r("<td>").addClass("separator"))),r("<div>").addClass("timepicker-picker").append(r("<table>").addClass("table-condensed").append([n,t,i]))},o.prototype._getTimePickerTemplate=function(){var t=r("<div>").addClass("timepicker-hours").append(r("<table>").addClass("table-condensed")),i=r("<div>").addClass("timepicker-minutes").append(r("<table>").addClass("table-condensed")),u=r("<div>").addClass("timepicker-seconds").append(r("<table>").addClass("table-condensed")),n=[this._getTimePickerMainTemplate()];return this._isEnabled("h")&&n.push(t),this._isEnabled("m")&&n.push(i),this._isEnabled("s")&&n.push(u),n},o.prototype._getToolbar=function(){var n=[],t,i;return this._options.buttons.showToday&&n.push(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1","data-action":"today",title:this._options.tooltips.today}).append(r("<span>").addClass(this._options.icons.today)))),!this._options.sideBySide&&this._hasDate()&&this._hasTime()&&(t=void 0,i=void 0,this._options.viewMode==="times"?(t=this._options.tooltips.selectDate,i=this._options.icons.date):(t=this._options.tooltips.selectTime,i=this._options.icons.time),n.push(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1","data-action":"togglePicker",title:t}).append(r("<span>").addClass(i))))),this._options.buttons.showClear&&n.push(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1","data-action":"clear",title:this._options.tooltips.clear}).append(r("<span>").addClass(this._options.icons.clear)))),this._options.buttons.showClose&&n.push(r("<td>").append(r("<a>").attr({href:"#",tabindex:"-1","data-action":"close",title:this._options.tooltips.close}).append(r("<span>").addClass(this._options.icons.close)))),n.length===0?"":r("<table>").addClass("table-condensed").append(r("<tbody>").append(r("<tr>").append(n)))},o.prototype._getTemplate=function(){var n=r("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),u=r("<div>").addClass("datepicker").append(this._getDatePickerTemplate()),f=r("<div>").addClass("timepicker").append(this._getTimePickerTemplate()),t=r("<ul>").addClass("list-unstyled"),i=r("<li>").addClass("picker-switch"+(this._options.collapse?" accordion-toggle":"")).append(this._getToolbar());return(this._options.inline&&n.removeClass("dropdown-menu"),this.use24Hours&&n.addClass("usetwentyfour"),this._isEnabled("s")&&!this.use24Hours&&n.addClass("wider"),this._options.sideBySide&&this._hasDate()&&this._hasTime())?(n.addClass("timepicker-sbs"),this._options.toolbarPlacement==="top"&&n.append(i),n.append(r("<div>").addClass("row").append(u.addClass("col-md-6")).append(f.addClass("col-md-6"))),(this._options.toolbarPlacement==="bottom"||this._options.toolbarPlacement==="default")&&n.append(i),n):(this._options.toolbarPlacement==="top"&&t.append(i),this._hasDate()&&t.append(r("<li>").addClass(this._options.collapse&&this._hasTime()?"collapse":"").addClass(this._options.collapse&&this._hasTime()&&this._options.viewMode==="times"?"":"show").append(u)),this._options.toolbarPlacement==="default"&&t.append(i),this._hasTime()&&t.append(r("<li>").addClass(this._options.collapse&&this._hasDate()?"collapse":"").addClass(this._options.collapse&&this._hasDate()&&this._options.viewMode==="times"?"show":"").append(f)),this._options.toolbarPlacement==="bottom"&&t.append(i),n.append(t))},o.prototype._place=function(n){var t=n&&n.data&&n.data.picker||this,u=t._options.widgetPositioning.vertical,f=t._options.widgetPositioning.horizontal,i=void 0,e=(t.component&&t.component.length?t.component:t._element).position(),o=(t.component&&t.component.length?t.component:t._element).offset();if(t._options.widgetParent)i=t._options.widgetParent.append(t.widget);else if(t._element.is("input"))i=t._element.after(t.widget).parent();else{if(t._options.inline){i=t._element.append(t.widget);return}i=t._element;t._element.children().first().after(t.widget)}if(u==="auto"&&(u=o.top+t.widget.height()*1.5>=r(window).height()+r(window).scrollTop()&&t.widget.height()+t._element.outerHeight()<o.top?"top":"bottom"),f==="auto"&&(f=i.width()<o.left+t.widget.outerWidth()/2&&o.left+t.widget.outerWidth()>r(window).width()?"right":"left"),u==="top"?t.widget.addClass("top").removeClass("bottom"):t.widget.addClass("bottom").removeClass("top"),f==="right"?t.widget.addClass("float-right"):t.widget.removeClass("float-right"),i.css("position")!=="relative"&&(i=i.parents().filter(function(){return r(this).css("position")==="relative"}).first()),i.length===0)throw new Error("datetimepicker component should be placed within a relative positioned container");t.widget.css({top:u==="top"?"auto":e.top+t._element.outerHeight()+"px",bottom:u==="top"?i.outerHeight()-(i===t._element?0:e.top)+"px":"auto",left:f==="left"?(i===t._element?0:e.left)+"px":"auto",right:f==="left"?"auto":i.outerWidth()-t._element.outerWidth()-(i===t._element?0:e.left)+"px"})},o.prototype._fillDow=function(){var n=r("<tr>"),t=this._viewDate.clone().startOf("w").startOf("d");for(this._options.calendarWeeks===!0&&n.append(r("<th>").addClass("cw").text("#"));t.isBefore(this._viewDate.clone().endOf("w"));)n.append(r("<th>").addClass("dow").text(t.format("dd"))),t.add(1,"d");this.widget.find(".datepicker-days thead").append(n)},o.prototype._fillMonths=function(){for(var t=[],n=this._viewDate.clone().startOf("y").startOf("d");n.isSame(this._viewDate,"y");)t.push(r("<span>").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");this.widget.find(".datepicker-months td").empty().append(t)},o.prototype._updateMonths=function(){var t=this.widget.find(".datepicker-months"),n=t.find("th"),i=t.find("tbody").find("span"),u=this;n.eq(0).find("span").attr("title",this._options.tooltips.prevYear);n.eq(1).attr("title",this._options.tooltips.selectYear);n.eq(2).find("span").attr("title",this._options.tooltips.nextYear);t.find(".disabled").removeClass("disabled");this._isValid(this._viewDate.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled");n.eq(1).text(this._viewDate.year());this._isValid(this._viewDate.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled");i.removeClass("active");this._getLastPickedDate().isSame(this._viewDate,"y")&&!this.unset&&i.eq(this._getLastPickedDate().month()).addClass("active");i.each(function(n){u._isValid(u._viewDate.clone().month(n),"M")||r(this).addClass("disabled")})},o.prototype._getStartEndYear=function(n,t){var i=n/10,r=Math.floor(t/n)*n,u=r+i*9,f=Math.floor(t/i)*i;return[r,u,f]},o.prototype._updateYears=function(){var r=this.widget.find(".datepicker-years"),t=r.find("th"),f=this._getStartEndYear(10,this._viewDate.year()),n=this._viewDate.clone().year(f[0]),u=this._viewDate.clone().year(f[1]),i="";for(t.eq(0).find("span").attr("title",this._options.tooltips.prevDecade),t.eq(1).attr("title",this._options.tooltips.selectDecade),t.eq(2).find("span").attr("title",this._options.tooltips.nextDecade),r.find(".disabled").removeClass("disabled"),this._options.minDate&&this._options.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+u.year()),this._options.maxDate&&this._options.maxDate.isBefore(u,"y")&&t.eq(2).addClass("disabled"),i+='<span data-action="selectYear" class="year old'+(this._isValid(n,"y")?"":" disabled")+'">'+(n.year()-1)+"<\/span>";!n.isAfter(u,"y");)i+='<span data-action="selectYear" class="year'+(n.isSame(this._getLastPickedDate(),"y")&&!this.unset?" active":"")+(this._isValid(n,"y")?"":" disabled")+'">'+n.year()+"<\/span>",n.add(1,"y");i+='<span data-action="selectYear" class="year old'+(this._isValid(n,"y")?"":" disabled")+'">'+n.year()+"<\/span>";r.find("td").html(i)},o.prototype._updateDecades=function(){var u=this.widget.find(".datepicker-decades"),t=u.find("th"),e=this._getStartEndYear(100,this._viewDate.year()),n=this._viewDate.clone().year(e[0]),f=this._viewDate.clone().year(e[1]),o=!1,s=!1,i=void 0,r="";for(t.eq(0).find("span").attr("title",this._options.tooltips.prevCentury),t.eq(2).find("span").attr("title",this._options.tooltips.nextCentury),u.find(".disabled").removeClass("disabled"),(n.year()===0||this._options.minDate&&this._options.minDate.isAfter(n,"y"))&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+f.year()),this._options.maxDate&&this._options.maxDate.isBefore(f,"y")&&t.eq(2).addClass("disabled"),r+=n.year()-10<0?"<span>&nbsp;<\/span>":'<span data-action="selectDecade" class="decade old" data-selection="'+(n.year()+6)+'">'+(n.year()-10)+"<\/span>";!n.isAfter(f,"y");)i=n.year()+11,o=this._options.minDate&&this._options.minDate.isAfter(n,"y")&&this._options.minDate.year()<=i,s=this._options.maxDate&&this._options.maxDate.isAfter(n,"y")&&this._options.maxDate.year()<=i,r+='<span data-action="selectDecade" class="decade'+(this._getLastPickedDate().isAfter(n)&&this._getLastPickedDate().year()<=i?" active":"")+(!this._isValid(n,"y")&&!o&&!s?" disabled":"")+'" data-selection="'+(n.year()+6)+'">'+n.year()+"<\/span>",n.add(10,"y");r+='<span data-action="selectDecade" class="decade old" data-selection="'+(n.year()+6)+'">'+n.year()+"<\/span>";u.find("td").html(r)},o.prototype._fillDate=function(){var f=this.widget.find(".datepicker-days"),i=f.find("th"),s=[],n=void 0,u=void 0,t=void 0,e=void 0,o;if(this._hasDate()){for(i.eq(0).find("span").attr("title",this._options.tooltips.prevMonth),i.eq(1).attr("title",this._options.tooltips.selectMonth),i.eq(2).find("span").attr("title",this._options.tooltips.nextMonth),f.find(".disabled").removeClass("disabled"),i.eq(1).text(this._viewDate.format(this._options.dayViewHeaderFormat)),this._isValid(this._viewDate.clone().subtract(1,"M"),"M")||i.eq(0).addClass("disabled"),this._isValid(this._viewDate.clone().add(1,"M"),"M")||i.eq(2).addClass("disabled"),n=this._viewDate.clone().startOf("M").startOf("w").startOf("d"),e=0;e<42;e++)n.weekday()===0&&(u=r("<tr>"),this._options.calendarWeeks&&u.append('<td class="cw">'+n.week()+"<\/td>"),s.push(u)),t="",n.isBefore(this._viewDate,"M")&&(t+=" old"),n.isAfter(this._viewDate,"M")&&(t+=" new"),this._options.allowMultidate?(o=this._datesFormatted.indexOf(n.format("YYYY-MM-DD")),o!==-1&&n.isSame(this._datesFormatted[o],"d")&&!this.unset&&(t+=" active")):n.isSame(this._getLastPickedDate(),"d")&&!this.unset&&(t+=" active"),this._isValid(n,"d")||(t+=" disabled"),n.isSame(this.getMoment(),"d")&&(t+=" today"),(n.day()===0||n.day()===6)&&(t+=" weekend"),u.append('<td data-action="selectDay" data-day="'+n.format("L")+'" class="day'+t+'">'+n.date()+"<\/td>"),n.add(1,"d");f.find("tbody").empty().append(s);this._updateMonths();this._updateYears();this._updateDecades()}},o.prototype._fillHours=function(){var u=this.widget.find(".timepicker-hours table"),n=this._viewDate.clone().startOf("d"),i=[],t=r("<tr>");for(this._viewDate.hour()>11&&!this.use24Hours&&n.hour(12);n.isSame(this._viewDate,"d")&&(this.use24Hours||this._viewDate.hour()<12&&n.hour()<12||this._viewDate.hour()>11);)n.hour()%4==0&&(t=r("<tr>"),i.push(t)),t.append('<td data-action="selectHour" class="hour'+(this._isValid(n,"h")?"":" disabled")+'">'+n.format(this.use24Hours?"HH":"hh")+"<\/td>"),n.add(1,"h");u.empty().append(i)},o.prototype._fillMinutes=function(){for(var f=this.widget.find(".timepicker-minutes table"),n=this._viewDate.clone().startOf("h"),i=[],u=this._options.stepping===1?5:this._options.stepping,t=r("<tr>");this._viewDate.isSame(n,"h");)n.minute()%(u*4)==0&&(t=r("<tr>"),i.push(t)),t.append('<td data-action="selectMinute" class="minute'+(this._isValid(n,"m")?"":" disabled")+'">'+n.format("mm")+"<\/td>"),n.add(u,"m");f.empty().append(i)},o.prototype._fillSeconds=function(){for(var u=this.widget.find(".timepicker-seconds table"),n=this._viewDate.clone().startOf("m"),i=[],t=r("<tr>");this._viewDate.isSame(n,"m");)n.second()%20==0&&(t=r("<tr>"),i.push(t)),t.append('<td data-action="selectSecond" class="second'+(this._isValid(n,"s")?"":" disabled")+'">'+n.format("ss")+"<\/td>"),n.add(5,"s");u.empty().append(i)},o.prototype._fillTime=function(){var n=void 0,i=void 0,t=this.widget.find(".timepicker span[data-time-component]");this.use24Hours||(n=this.widget.find(".timepicker [data-action=togglePeriod]"),i=this._getLastPickedDate().clone().add(this._getLastPickedDate().hours()>=12?-12:12,"h"),n.text(this._getLastPickedDate().format("A")),this._isValid(i,"h")?n.removeClass("disabled"):n.addClass("disabled"));t.filter("[data-time-component=hours]").text(this._getLastPickedDate().format(""+(this.use24Hours?"HH":"hh")));t.filter("[data-time-component=minutes]").text(this._getLastPickedDate().format("mm"));t.filter("[data-time-component=seconds]").text(this._getLastPickedDate().format("ss"));this._fillHours();this._fillMinutes();this._fillSeconds()},o.prototype._doAction=function(t,i){var u=this._getLastPickedDate(),l,a,nt,tt,it,s,h,c,v,y,p,w,b,k,e,g;if(r(t.currentTarget).is(".disabled"))return!1;i=i||r(t.currentTarget).data("action");switch(i){case"next":l=n.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.add(n.DatePickerModes[this.currentViewMode].NAV_STEP,l);this._fillDate();this._viewUpdate(l);break;case"previous":a=n.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.subtract(n.DatePickerModes[this.currentViewMode].NAV_STEP,a);this._fillDate();this._viewUpdate(a);break;case"pickerSwitch":this._showMode(1);break;case"selectMonth":nt=r(t.target).closest("tbody").find("span").index(r(t.target));this._viewDate.month(nt);this.currentViewMode===this.MinViewModeNumber?(this._setValue(u.clone().year(this._viewDate.year()).month(this._viewDate.month()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate());this._viewUpdate("M");break;case"selectYear":tt=parseInt(r(t.target).text(),10)||0;this._viewDate.year(tt);this.currentViewMode===this.MinViewModeNumber?(this._setValue(u.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate());this._viewUpdate("YYYY");break;case"selectDecade":it=parseInt(r(t.target).data("selection"),10)||0;this._viewDate.year(it);this.currentViewMode===this.MinViewModeNumber?(this._setValue(u.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate());this._viewUpdate("YYYY");break;case"selectDay":s=this._viewDate.clone();r(t.target).is(".old")&&s.subtract(1,"M");r(t.target).is(".new")&&s.add(1,"M");h=s.date(parseInt(r(t.target).text(),10));c=0;this._options.allowMultidate?(c=this._datesFormatted.indexOf(h.format("YYYY-MM-DD")),c!==-1?this._setValue(null,c):this._setValue(h,this._getLastPickedDateIndex()+1)):this._setValue(h,this._getLastPickedDateIndex());this._hasTime()||this._options.keepOpen||this._options.inline||this._options.allowMultidate||this.hide();break;case"incrementHours":v=u.clone().add(1,"h");this._isValid(v,"h")&&this._setValue(v,this._getLastPickedDateIndex());break;case"incrementMinutes":y=u.clone().add(this._options.stepping,"m");this._isValid(y,"m")&&this._setValue(y,this._getLastPickedDateIndex());break;case"incrementSeconds":p=u.clone().add(1,"s");this._isValid(p,"s")&&this._setValue(p,this._getLastPickedDateIndex());break;case"decrementHours":w=u.clone().subtract(1,"h");this._isValid(w,"h")&&this._setValue(w,this._getLastPickedDateIndex());break;case"decrementMinutes":b=u.clone().subtract(this._options.stepping,"m");this._isValid(b,"m")&&this._setValue(b,this._getLastPickedDateIndex());break;case"decrementSeconds":k=u.clone().subtract(1,"s");this._isValid(k,"s")&&this._setValue(k,this._getLastPickedDateIndex());break;case"togglePeriod":this._setValue(u.clone().add(u.hours()>=12?-12:12,"h"),this._getLastPickedDateIndex());break;case"togglePicker":var o=r(t.target),rt=o.closest("a"),ut=o.closest("ul"),f=ut.find(".show"),ft=ut.find(".collapse:not(.show)"),et=o.is("span")?o:o.find("span"),d=void 0;if(f&&f.length){if(d=f.data("collapse"),d&&d.transitioning)return!0;f.collapse?(f.collapse("hide"),ft.collapse("show")):(f.removeClass("show"),ft.addClass("show"));et.toggleClass(this._options.icons.time+" "+this._options.icons.date);et.hasClass(this._options.icons.date)?rt.attr("title",this._options.tooltips.selectDate):rt.attr("title",this._options.tooltips.selectTime)}break;case"showPicker":this.widget.find(".timepicker > div:not(.timepicker-picker)").hide();this.widget.find(".timepicker .timepicker-picker").show();break;case"showHours":this.widget.find(".timepicker .timepicker-picker").hide();this.widget.find(".timepicker .timepicker-hours").show();break;case"showMinutes":this.widget.find(".timepicker .timepicker-picker").hide();this.widget.find(".timepicker .timepicker-minutes").show();break;case"showSeconds":this.widget.find(".timepicker .timepicker-picker").hide();this.widget.find(".timepicker .timepicker-seconds").show();break;case"selectHour":e=parseInt(r(t.target).text(),10);this.use24Hours||(u.hours()>=12?e!==12&&(e+=12):e===12&&(e=0));this._setValue(u.clone().hours(e),this._getLastPickedDateIndex());this._isEnabled("a")||this._isEnabled("m")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"selectMinute":this._setValue(u.clone().minutes(parseInt(r(t.target).text(),10)),this._getLastPickedDateIndex());this._isEnabled("a")||this._isEnabled("s")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"selectSecond":this._setValue(u.clone().seconds(parseInt(r(t.target).text(),10)),this._getLastPickedDateIndex());this._isEnabled("a")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"clear":this.clear();break;case"close":this.hide();break;case"today":g=this.getMoment();this._isValid(g,"d")&&this._setValue(g,this._getLastPickedDateIndex())}return!1},o.prototype.hide=function(){var t=!1;this.widget&&((this.widget.find(".collapse").each(function(){var n=r(this).data("collapse");return n&&n.transitioning?(t=!0,!1):!0}),t)||(this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this.widget.hide(),r(window).off("resize",this._place()),this.widget.off("click","[data-action]"),this.widget.off("mousedown",!1),this.widget.remove(),this.widget=!1,this._notifyEvent({type:n.Event.HIDE,date:this._getLastPickedDate().clone()}),this.input!==undefined&&this.input.blur(),this._viewDate=this._getLastPickedDate().clone()))},o.prototype.show=function(){var t=void 0,i={year:function(n){return n.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(n){return n.date(1).hours(0).seconds(0).minutes(0)},day:function(n){return n.hours(0).seconds(0).minutes(0)},hour:function(n){return n.seconds(0).minutes(0)},minute:function(n){return n.seconds(0)}};if(this.input!==undefined){if(this.input.prop("disabled")||!this._options.ignoreReadonly&&this.input.prop("readonly")||this.widget)return;this.input.val()!==undefined&&this.input.val().trim().length!==0?this._setValue(this._parseInputDate(this.input.val().trim()),0):this.unset&&this._options.useCurrent&&(t=this.getMoment(),typeof this._options.useCurrent=="string"&&(t=i[this._options.useCurrent](t)),this._setValue(t,0))}else this.unset&&this._options.useCurrent&&(t=this.getMoment(),typeof this._options.useCurrent=="string"&&(t=i[this._options.useCurrent](t)),this._setValue(t,0));this.widget=this._getTemplate();this._fillDow();this._fillMonths();this.widget.find(".timepicker-hours").hide();this.widget.find(".timepicker-minutes").hide();this.widget.find(".timepicker-seconds").hide();this._update();this._showMode();r(window).on("resize",{picker:this},this._place);this.widget.on("click","[data-action]",r.proxy(this._doAction,this));this.widget.on("mousedown",!1);this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active");this._place();this.widget.show();this.input!==undefined&&this._options.focusOnShow&&!this.input.is(":focus")&&this.input.focus();this._notifyEvent({type:n.Event.SHOW})},o.prototype.destroy=function(){this.hide();this._element.removeData(n.DATA_KEY);this._element.removeData("date")},o.prototype.disable=function(){this.hide();this.component&&this.component.hasClass("btn")&&this.component.addClass("disabled");this.input!==undefined&&this.input.prop("disabled",!0)},o.prototype.enable=function(){this.component&&this.component.hasClass("btn")&&this.component.removeClass("disabled");this.input!==undefined&&this.input.prop("disabled",!1)},o.prototype.toolbarPlacement=function(n){if(arguments.length===0)return this._options.toolbarPlacement;if(typeof n!="string")throw new TypeError("toolbarPlacement() expects a string parameter");if(c.indexOf(n)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+c.join(", ")+") value");this._options.toolbarPlacement=n;this.widget&&(this.hide(),this.show())},o.prototype.widgetPositioning=function(n){if(arguments.length===0)return r.extend({},this._options.widgetPositioning);if({}.toString.call(n)!=="[object Object]")throw new TypeError("widgetPositioning() expects an object variable");if(n.horizontal){if(typeof n.horizontal!="string")throw new TypeError("widgetPositioning() horizontal variable must be a string");if(n.horizontal=n.horizontal.toLowerCase(),h.indexOf(n.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+h.join(", ")+")");this._options.widgetPositioning.horizontal=n.horizontal}if(n.vertical){if(typeof n.vertical!="string")throw new TypeError("widgetPositioning() vertical variable must be a string");if(n.vertical=n.vertical.toLowerCase(),s.indexOf(n.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+s.join(", ")+")");this._options.widgetPositioning.vertical=n.vertical}this._update()},o.prototype.widgetParent=function(n){if(arguments.length===0)return this._options.widgetParent;if(typeof n=="string"&&(n=r(n)),n!==null&&typeof n!="string"&&!(n instanceof r))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");this._options.widgetParent=n;this.widget&&(this.hide(),this.show())},o._jQueryHandleThis=function(t,u,f){var e=r(t).data(n.DATA_KEY);if((typeof u=="undefined"?"undefined":i(u))==="object"&&r.extend({},n.Default,u),e||(e=new o(r(t),u),r(t).data(n.DATA_KEY,e),e.input!==undefined&&e.input.is("input")&&e.input.val().trim().length!==0?e._setValue(e._parseInputDate(e.input.val().trim()),0):e._options.defaultDate&&e.input!==undefined&&e.input.attr("placeholder")===undefined&&e._setValue(e._options.defaultDate,0)),typeof u=="string"){if(e[u]===undefined)throw new Error('No method named "'+u+'"');return f===undefined?e[u]():e[u](f)}},o._jQueryInterface=function(n,t){return this.length===1?o._jQueryHandleThis(this[0],n,t):this.each(function(){o._jQueryHandleThis(this,n,t)})},o}(n);r(document).on(n.Event.CLICK_DATA_API,n.Selector.DATA_TOGGLE,function(){var n=o(r(this));n.length!==0&&e._jQueryInterface.call(n,"toggle")}).on(n.Event.CHANGE,"."+n.ClassName.INPUT,function(n){var t=o(r(this));t.length!==0&&e._jQueryInterface.call(t,"_change",n)}).on(n.Event.BLUR,"."+n.ClassName.INPUT,function(t){var i=o(r(this)),u=i.data(n.DATA_KEY);i.length!==0&&(u._options.debug||window.debug||e._jQueryInterface.call(i,"hide",t))}).on(n.Event.KEYDOWN,"."+n.ClassName.INPUT,function(n){var t=o(r(this));t.length!==0&&e._jQueryInterface.call(t,"_keydown",n)}).on(n.Event.KEYUP,"."+n.ClassName.INPUT,function(n){var t=o(r(this));t.length!==0&&e._jQueryInterface.call(t,"_keyup",n)}).on(n.Event.FOCUS,"."+n.ClassName.INPUT,function(t){var i=o(r(this)),u=i.data(n.DATA_KEY);i.length!==0&&u._options.allowInputToggle&&e._jQueryInterface.call(i,"show",t)});return r.fn[n.NAME]=e._jQueryInterface,r.fn[n.NAME].Constructor=e,r.fn[n.NAME].noConflict=function(){return r.fn[n.NAME]=l,e._jQueryInterface},e}(jQuery)}()