Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
1if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");!function(t){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},i=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s,a,o,r,h,l,c,d,u,f,p,g,_,m,v,y,D,T,C,E,w,b,I,k,S,A,N,O,U,M,x,P,L,R,F,j,W,V,Y,H,K,B,Q,G,z,q,J,X,Z,tt,et,it,nt,st,at,ot,rt,ht,lt,ct,dt,ut,ft,pt,gt,_t,mt,vt,yt,Dt,Tt,Ct,Et,wt,bt,It,kt,St,At,Nt,Ot,Ut,Mt,xt,Pt,Lt,Rt,Ft,jt,Wt,Vt,Yt,Ht,Kt,Bt,Qt,$t,Gt,zt,qt,Jt,Xt,Zt,te,ee,ie,ne,se,ae,oe,re,he,le,ce,de,ue,fe,pe,ge,_e,me,ve,ye,De,Te,Ce,Ee,we,be,Ie,ke,Se,Ae,Ne,Oe,Ue,Me,xe,Pe,Le,Re,Fe,je,We,Ve,Ye,He,Ke,Be,Qe,$e,Ge,ze,qe,Je,Xe,Ze,ti,ei,ii,ni,si,ai,oi,ri,hi,li,ci,di,ui,fi,pi,gi,_i,mi,vi,yi,Di=function(t){var e=!1;function i(e){var i=this,s=!1;return t(this).one(n.TRANSITION_END,function(){s=!0}),setTimeout(function(){s||n.triggerTransitionEnd(i)},e),this}var n={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(e){var i=e.getAttribute("data-target");i&&"#"!==i||(i=e.getAttribute("href")||"");try{return t(document).find(i).length>0?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(i){t(i).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var a=i[s],o=e[s],r=o&&n.isElement(o)?"element":(h=o,{}.toString.call(h).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(a).test(r))throw new Error(t.toUpperCase()+': Option "'+s+'" provided type "'+r+'" but expected type "'+a+'".')}var h}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=i,n.supportsTransitionEnd()&&(t.event.special[n.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),n}($),Ti=(s=$,a="alert",r="."+(o="bs.alert"),h=s.fn[a],l={CLOSE:"close"+r,CLOSED:"closed"+r,CLICK_DATA_API:"click"+r+".data-api"},c="alert",d="fade",u="show",f=function(){function t(e){n(this,t),this._element=e}return t.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.prototype.dispose=function(){s.removeData(this._element,o),this._element=null},t.prototype._getRootElement=function(t){var e=Di.getSelectorFromElement(t),i=!1;return e&&(i=s(e)[0]),i||(i=s(t).closest("."+c)[0]),i},t.prototype._triggerCloseEvent=function(t){var e=s.Event(l.CLOSE);return s(t).trigger(e),e},t.prototype._removeElement=function(t){var e=this;s(t).removeClass(u),Di.supportsTransitionEnd()&&s(t).hasClass(d)?s(t).one(Di.TRANSITION_END,function(i){return e._destroyElement(t,i)}).emulateTransitionEnd(150):this._destroyElement(t)},t.prototype._destroyElement=function(t){s(t).detach().trigger(l.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var i=s(this),n=i.data(o);n||(n=new t(this),i.data(o,n)),"close"===e&&n[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),s(document).on(l.CLICK_DATA_API,'[data-dismiss="alert"]',f._handleDismiss(new f)),s.fn[a]=f._jQueryInterface,s.fn[a].Constructor=f,s.fn[a].noConflict=function(){return s.fn[a]=h,f._jQueryInterface},p=$,g="button",m="."+(_="bs.button"),v=".data-api",y=p.fn[g],D="active",T="btn",C="focus",E='[data-toggle^="button"]',w='[data-toggle="buttons"]',b="input",I=".active",k=".btn",S={CLICK_DATA_API:"click"+m+v,FOCUS_BLUR_DATA_API:"focus"+m+v+" blur"+m+v},A=function(){function t(e){n(this,t),this._element=e}return t.prototype.toggle=function(){var t=!0,e=!0,i=p(this._element).closest(w)[0];if(i){var n=p(this._element).find(b)[0];if(n){if("radio"===n.type)if(n.checked&&p(this._element).hasClass(D))t=!1;else{var s=p(i).find(I)[0];s&&p(s).removeClass(D)}if(t){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!p(this._element).hasClass(D),p(n).trigger("change")}n.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!p(this._element).hasClass(D)),t&&p(this._element).toggleClass(D)},t.prototype.dispose=function(){p.removeData(this._element,_),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var i=p(this).data(_);i||(i=new t(this),p(this).data(_,i)),"toggle"===e&&i[e]()})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),p(document).on(S.CLICK_DATA_API,E,function(t){t.preventDefault();var e=t.target;p(e).hasClass(T)||(e=p(e).closest(k)),A._jQueryInterface.call(p(e),"toggle")}).on(S.FOCUS_BLUR_DATA_API,E,function(t){var e=p(t.target).closest(k)[0];p(e).toggleClass(C,/^focus(in)?$/.test(t.type))}),p.fn[g]=A._jQueryInterface,p.fn[g].Constructor=A,p.fn[g].noConflict=function(){return p.fn[g]=y,A._jQueryInterface},N=$,O="carousel",M="."+(U="bs.carousel"),x=".data-api",P=N.fn[O],L={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},R={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},F="next",j="prev",W="left",V="right",Y={SLIDE:"slide"+M,SLID:"slid"+M,KEYDOWN:"keydown"+M,MOUSEENTER:"mouseenter"+M,MOUSELEAVE:"mouseleave"+M,TOUCHEND:"touchend"+M,LOAD_DATA_API:"load"+M+x,CLICK_DATA_API:"click"+M+x},H="carousel",K="active",B="slide",Q="carousel-item-right",G="carousel-item-left",z="carousel-item-next",q="carousel-item-prev",J={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},X=function(){function s(t,e){n(this,s),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=N(t)[0],this._indicatorsElement=N(this._element).find(J.INDICATORS)[0],this._addEventListeners()}return s.prototype.next=function(){this._isSliding||this._slide(F)},s.prototype.nextWhenVisible=function(){!document.hidden&&N(this._element).is(":visible")&&"hidden"!==N(this._element).css("visibility")&&this.next()},s.prototype.prev=function(){this._isSliding||this._slide(j)},s.prototype.pause=function(t){t||(this._isPaused=!0),N(this._element).find(J.NEXT_PREV)[0]&&Di.supportsTransitionEnd()&&(Di.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},s.prototype.cycle=function(t){t||(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))},s.prototype.to=function(t){var e=this;this._activeElement=N(this._element).find(J.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)N(this._element).one(Y.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=t>i?F:j;this._slide(n,this._items[t])}},s.prototype.dispose=function(){N(this._element).off(M),N.removeData(this._element,U),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},s.prototype._getConfig=function(t){return t=e({},L,t),Di.typeCheckConfig(O,t,R),t},s.prototype._addEventListeners=function(){var t=this;this._config.keyboard&&N(this._element).on(Y.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(N(this._element).on(Y.MOUSEENTER,function(e){return t.pause(e)}).on(Y.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&N(this._element).on(Y.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},s.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},s.prototype._getItemIndex=function(t){return this._items=N.makeArray(N(t).parent().find(J.ITEM)),this._items.indexOf(t)},s.prototype._getItemByDirection=function(t,e){var i=t===F,n=t===j,s=this._getItemIndex(e),a=this._items.length-1;if((n&&0===s||i&&s===a)&&!this._config.wrap)return e;var o=(s+(t===j?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},s.prototype._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(N(this._element).find(J.ACTIVE_ITEM)[0]),s=N.Event(Y.SLIDE,{relatedTarget:t,direction:e,from:n,to:i});return N(this._element).trigger(s),s},s.prototype._setActiveIndicatorElement=function(t){if(this._indicatorsElement){N(this._indicatorsElement).find(J.ACTIVE).removeClass(K);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&N(e).addClass(K)}},s.prototype._slide=function(t,e){var i=this,n=N(this._element).find(J.ACTIVE_ITEM)[0],s=this._getItemIndex(n),a=e||n&&this._getItemByDirection(t,n),o=this._getItemIndex(a),r=Boolean(this._interval),h=void 0,l=void 0,c=void 0;if(t===F?(h=G,l=z,c=W):(h=Q,l=q,c=V),a&&N(a).hasClass(K))this._isSliding=!1;else if(!this._triggerSlideEvent(a,c).isDefaultPrevented()&&n&&a){this._isSliding=!0,r&&this.pause(),this._setActiveIndicatorElement(a);var d=N.Event(Y.SLID,{relatedTarget:a,direction:c,from:s,to:o});Di.supportsTransitionEnd()&&N(this._element).hasClass(B)?(N(a).addClass(l),Di.reflow(a),N(n).addClass(h),N(a).addClass(h),N(n).one(Di.TRANSITION_END,function(){N(a).removeClass(h+" "+l).addClass(K),N(n).removeClass(K+" "+l+" "+h),i._isSliding=!1,setTimeout(function(){return N(i._element).trigger(d)},0)}).emulateTransitionEnd(600)):(N(n).removeClass(K),N(a).addClass(K),this._isSliding=!1,N(this._element).trigger(d)),r&&this.cycle()}},s._jQueryInterface=function(i){return this.each(function(){var n=N(this).data(U),a=e({},L,N(this).data());"object"===(void 0===i?"undefined":t(i))&&(a=e({},a,i));var o="string"==typeof i?i:a.slide;if(n||(n=new s(this,a),N(this).data(U,n)),"number"==typeof i)n.to(i);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else a.interval&&(n.pause(),n.cycle())})},s._dataApiClickHandler=function(t){var i=Di.getSelectorFromElement(this);if(i){var n=N(i)[0];if(n&&N(n).hasClass(H)){var a=e({},N(n).data(),N(this).data()),o=this.getAttribute("data-slide-to");o&&(a.interval=!1),s._jQueryInterface.call(N(n),a),o&&N(n).data(U).to(o),t.preventDefault()}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return L}}]),s}(),N(document).on(Y.CLICK_DATA_API,J.DATA_SLIDE,X._dataApiClickHandler),N(window).on(Y.LOAD_DATA_API,function(){N(J.DATA_RIDE).each(function(){var t=N(this);X._jQueryInterface.call(t,t.data())})}),N.fn[O]=X._jQueryInterface,N.fn[O].Constructor=X,N.fn[O].noConflict=function(){return N.fn[O]=P,X._jQueryInterface},Z=$,tt="collapse",it="."+(et="bs.collapse"),nt=Z.fn[tt],st={toggle:!0,parent:""},at={toggle:"boolean",parent:"(string|element)"},ot={SHOW:"show"+it,SHOWN:"shown"+it,HIDE:"hide"+it,HIDDEN:"hidden"+it,CLICK_DATA_API:"click"+it+".data-api"},rt="show",ht="collapse",lt="collapsing",ct="collapsed",dt="width",ut="height",ft={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},pt=function(){function s(t,e){n(this,s),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=Z.makeArray(Z('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=Z(ft.DATA_TOGGLE),a=0;a<i.length;a++){var o=i[a],r=Di.getSelectorFromElement(o);null!==r&&Z(r).filter(t).length>0&&(this._selector=r,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return s.prototype.toggle=function(){Z(this._element).hasClass(rt)?this.hide():this.show()},s.prototype.show=function(){var t=this;if(!this._isTransitioning&&!Z(this._element).hasClass(rt)){var e=void 0,i=void 0;if(this._parent&&0===(e=Z.makeArray(Z(this._parent).find(ft.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(i=Z(e).not(this._selector).data(et))&&i._isTransitioning)){var n=Z.Event(ot.SHOW);if(Z(this._element).trigger(n),!n.isDefaultPrevented()){e&&(s._jQueryInterface.call(Z(e).not(this._selector),"hide"),i||Z(e).data(et,null));var a=this._getDimension();Z(this._element).removeClass(ht).addClass(lt),this._element.style[a]=0,this._triggerArray.length>0&&Z(this._triggerArray).removeClass(ct).attr("aria-expanded",!0),this.setTransitioning(!0);var o=function(){Z(t._element).removeClass(lt).addClass(ht).addClass(rt),t._element.style[a]="",t.setTransitioning(!1),Z(t._element).trigger(ot.SHOWN)};if(Di.supportsTransitionEnd()){var r="scroll"+(a[0].toUpperCase()+a.slice(1));Z(this._element).one(Di.TRANSITION_END,o).emulateTransitionEnd(600),this._element.style[a]=this._element[r]+"px"}else o()}}}},s.prototype.hide=function(){var t=this;if(!this._isTransitioning&&Z(this._element).hasClass(rt)){var e=Z.Event(ot.HIDE);if(Z(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",Di.reflow(this._element),Z(this._element).addClass(lt).removeClass(ht).removeClass(rt),this._triggerArray.length>0)for(var n=0;n<this._triggerArray.length;n++){var s=this._triggerArray[n],a=Di.getSelectorFromElement(s);if(null!==a)Z(a).hasClass(rt)||Z(s).addClass(ct).attr("aria-expanded",!1)}this.setTransitioning(!0);var o=function(){t.setTransitioning(!1),Z(t._element).removeClass(lt).addClass(ht).trigger(ot.HIDDEN)};this._element.style[i]="",Di.supportsTransitionEnd()?Z(this._element).one(Di.TRANSITION_END,o).emulateTransitionEnd(600):o()}}},s.prototype.setTransitioning=function(t){this._isTransitioning=t},s.prototype.dispose=function(){Z.removeData(this._element,et),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s.prototype._getConfig=function(t){return(t=e({},st,t)).toggle=Boolean(t.toggle),Di.typeCheckConfig(tt,t,at),t},s.prototype._getDimension=function(){return Z(this._element).hasClass(dt)?dt:ut},s.prototype._getParent=function(){var t=this,e=null;Di.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=Z(this._config.parent)[0];var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return Z(e).find(i).each(function(e,i){t._addAriaAndCollapsedClass(s._getTargetFromElement(i),[i])}),e},s.prototype._addAriaAndCollapsedClass=function(t,e){if(t){var i=Z(t).hasClass(rt);e.length>0&&Z(e).toggleClass(ct,!i).attr("aria-expanded",i)}},s._getTargetFromElement=function(t){var e=Di.getSelectorFromElement(t);return e?Z(e)[0]:null},s._jQueryInterface=function(i){return this.each(function(){var n=Z(this),a=n.data(et),o=e({},st,n.data(),"object"===(void 0===i?"undefined":t(i))&&i);if(!a&&o.toggle&&/show|hide/.test(i)&&(o.toggle=!1),a||(a=new s(this,o),n.data(et,a)),"string"==typeof i){if(void 0===a[i])throw new TypeError('No method named "'+i+'"');a[i]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return st}}]),s}(),Z(document).on(ot.CLICK_DATA_API,ft.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=Z(this),i=Di.getSelectorFromElement(this);Z(i).each(function(){var t=Z(this),i=t.data(et)?"toggle":e.data();pt._jQueryInterface.call(t,i)})}),Z.fn[tt]=pt._jQueryInterface,Z.fn[tt].Constructor=pt,Z.fn[tt].noConflict=function(){return Z.fn[tt]=nt,pt._jQueryInterface},gt=$,Popper,_t="dropdown",vt="."+(mt="bs.dropdown"),yt=".data-api",Dt=gt.fn[_t],Tt=new RegExp("38|40|27"),Ct={HIDE:"hide"+vt,HIDDEN:"hidden"+vt,SHOW:"show"+vt,SHOWN:"shown"+vt,CLICK:"click"+vt,CLICK_DATA_API:"click"+vt+yt,KEYDOWN_DATA_API:"keydown"+vt+yt,KEYUP_DATA_API:"keyup"+vt+yt},Et="disabled",wt="show",bt="dropup",It="dropright",kt="dropleft",St="dropdown-menu-right",At="position-static",Nt='[data-toggle="dropdown"]',Ot=".dropdown form",Ut=".dropdown-menu",Mt=".navbar-nav",xt=".dropdown-menu .dropdown-item:not(.disabled)",Pt="top-start",Lt="top-end",Rt="bottom-start",Ft="bottom-end",jt="right-start",Wt="left-start",Vt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle"},Yt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)"},Ht=function(){function s(t,e){n(this,s),this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}return s.prototype.toggle=function(){if(!this._element.disabled&&!gt(this._element).hasClass(Et)){var t=s._getParentFromElement(this._element),e=gt(this._menu).hasClass(wt);if(s._clearMenus(),!e){var i={relatedTarget:this._element},n=gt.Event(Ct.SHOW,i);if(gt(t).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof Popper)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=t:Di.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&>(t).addClass(At),this._popper=new Popper(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===gt(t).closest(Mt).length&>("body").children().on("mouseover",null,gt.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),gt(this._menu).toggleClass(wt),gt(t).toggleClass(wt).trigger(gt.Event(Ct.SHOWN,i))}}}},s.prototype.dispose=function(){gt.removeData(this._element,mt),gt(this._element).off(vt),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},s.prototype.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},s.prototype._addEventListeners=function(){var t=this;gt(this._element).on(Ct.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},s.prototype._getConfig=function(t){return t=e({},this.constructor.Default,gt(this._element).data(),t),Di.typeCheckConfig(_t,t,this.constructor.DefaultType),t},s.prototype._getMenuElement=function(){if(!this._menu){var t=s._getParentFromElement(this._element);this._menu=gt(t).find(Ut)[0]}return this._menu},s.prototype._getPlacement=function(){var t=gt(this._element).parent(),e=Rt;return t.hasClass(bt)?(e=Pt,gt(this._menu).hasClass(St)&&(e=Lt)):t.hasClass(It)?e=jt:t.hasClass(kt)?e=Wt:gt(this._menu).hasClass(St)&&(e=Ft),e},s.prototype._detectNavbar=function(){return gt(this._element).closest(".navbar").length>0},s.prototype._getPopperConfig=function(){var t=this,i={};return"function"==typeof this._config.offset?i.fn=function(i){return i.offsets=e({},i.offsets,t._config.offset(i.offsets)||{}),i}:i.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:i,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},s._jQueryInterface=function(e){return this.each(function(){var i=gt(this).data(mt),n="object"===(void 0===e?"undefined":t(e))?e:null;if(i||(i=new s(this,n),gt(this).data(mt,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=gt.makeArray(gt(Nt)),i=0;i<e.length;i++){var n=s._getParentFromElement(e[i]),a=gt(e[i]).data(mt),o={relatedTarget:e[i]};if(a){var r=a._menu;if(gt(n).hasClass(wt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&>.contains(n,t.target))){var h=gt.Event(Ct.HIDE,o);gt(n).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&>("body").children().off("mouseover",null,gt.noop),e[i].setAttribute("aria-expanded","false"),gt(r).removeClass(wt),gt(n).removeClass(wt).trigger(gt.Event(Ct.HIDDEN,o)))}}}},s._getParentFromElement=function(t){var e=void 0,i=Di.getSelectorFromElement(t);return i&&(e=gt(i)[0]),e||t.parentNode},s._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||gt(t.target).closest(Ut).length)):Tt.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!gt(this).hasClass(Et))){var e=s._getParentFromElement(this),i=gt(e).hasClass(wt);if((i||27===t.which&&32===t.which)&&(!i||27!==t.which&&32!==t.which)){var n=gt(e).find(xt).get();if(0!==n.length){var a=n.indexOf(t.target);38===t.which&&a>0&&a--,40===t.which&&a<n.length-1&&a++,a<0&&(a=0),n[a].focus()}}else{if(27===t.which){var o=gt(e).find(Nt)[0];gt(o).trigger("focus")}gt(this).trigger("click")}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return Vt}},{key:"DefaultType",get:function(){return Yt}}]),s}(),gt(document).on(Ct.KEYDOWN_DATA_API,Nt,Ht._dataApiKeydownHandler).on(Ct.KEYDOWN_DATA_API,Ut,Ht._dataApiKeydownHandler).on(Ct.CLICK_DATA_API+" "+Ct.KEYUP_DATA_API,Ht._clearMenus).on(Ct.CLICK_DATA_API,Nt,function(t){t.preventDefault(),t.stopPropagation(),Ht._jQueryInterface.call(gt(this),"toggle")}).on(Ct.CLICK_DATA_API,Ot,function(t){t.stopPropagation()}),gt.fn[_t]=Ht._jQueryInterface,gt.fn[_t].Constructor=Ht,gt.fn[_t].noConflict=function(){return gt.fn[_t]=Dt,Ht._jQueryInterface},Kt=$,Bt="modal",$t="."+(Qt="bs.modal"),Gt=Kt.fn[Bt],zt={backdrop:!0,keyboard:!0,focus:!0,show:!0},qt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Jt={HIDE:"hide"+$t,HIDDEN:"hidden"+$t,SHOW:"show"+$t,SHOWN:"shown"+$t,FOCUSIN:"focusin"+$t,RESIZE:"resize"+$t,CLICK_DISMISS:"click.dismiss"+$t,KEYDOWN_DISMISS:"keydown.dismiss"+$t,MOUSEUP_DISMISS:"mouseup.dismiss"+$t,MOUSEDOWN_DISMISS:"mousedown.dismiss"+$t,CLICK_DATA_API:"click"+$t+".data-api"},Xt="modal-scrollbar-measure",Zt="modal-backdrop",te="modal-open",ee="fade",ie="show",ne={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},se=function(){function s(t,e){n(this,s),this._config=this._getConfig(e),this._element=t,this._dialog=Kt(t).find(ne.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return s.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},s.prototype.show=function(t){var e=this;if(!this._isTransitioning&&!this._isShown){Di.supportsTransitionEnd()&&Kt(this._element).hasClass(ee)&&(this._isTransitioning=!0);var i=Kt.Event(Jt.SHOW,{relatedTarget:t});Kt(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),Kt(document.body).addClass(te),this._setEscapeEvent(),this._setResizeEvent(),Kt(this._element).on(Jt.CLICK_DISMISS,ne.DATA_DISMISS,function(t){return e.hide(t)}),Kt(this._dialog).on(Jt.MOUSEDOWN_DISMISS,function(){Kt(e._element).one(Jt.MOUSEUP_DISMISS,function(t){Kt(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},s.prototype.hide=function(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var i=Kt.Event(Jt.HIDE);if(Kt(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=Di.supportsTransitionEnd()&&Kt(this._element).hasClass(ee);n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Kt(document).off(Jt.FOCUSIN),Kt(this._element).removeClass(ie),Kt(this._element).off(Jt.CLICK_DISMISS),Kt(this._dialog).off(Jt.MOUSEDOWN_DISMISS),n?Kt(this._element).one(Di.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},s.prototype.dispose=function(){Kt.removeData(this._element,Qt),Kt(window,document,this._element,this._backdrop).off($t),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},s.prototype.handleUpdate=function(){this._adjustDialog()},s.prototype._getConfig=function(t){return t=e({},zt,t),Di.typeCheckConfig(Bt,t,qt),t},s.prototype._showElement=function(t){var e=this,i=Di.supportsTransitionEnd()&&Kt(this._element).hasClass(ee);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.scrollTop=0,i&&Di.reflow(this._element),Kt(this._element).addClass(ie),this._config.focus&&this._enforceFocus();var n=Kt.Event(Jt.SHOWN,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,Kt(e._element).trigger(n)};i?Kt(this._dialog).one(Di.TRANSITION_END,s).emulateTransitionEnd(300):s()},s.prototype._enforceFocus=function(){var t=this;Kt(document).off(Jt.FOCUSIN).on(Jt.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===Kt(t._element).has(e.target).length&&t._element.focus()})},s.prototype._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?Kt(this._element).on(Jt.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||Kt(this._element).off(Jt.KEYDOWN_DISMISS)},s.prototype._setResizeEvent=function(){var t=this;this._isShown?Kt(window).on(Jt.RESIZE,function(e){return t.handleUpdate(e)}):Kt(window).off(Jt.RESIZE)},s.prototype._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){Kt(document.body).removeClass(te),t._resetAdjustments(),t._resetScrollbar(),Kt(t._element).trigger(Jt.HIDDEN)})},s.prototype._removeBackdrop=function(){this._backdrop&&(Kt(this._backdrop).remove(),this._backdrop=null)},s.prototype._showBackdrop=function(t){var e=this,i=Kt(this._element).hasClass(ee)?ee:"";if(this._isShown&&this._config.backdrop){var n=Di.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=Zt,i&&Kt(this._backdrop).addClass(i),Kt(this._backdrop).appendTo(document.body),Kt(this._element).on(Jt.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&Di.reflow(this._backdrop),Kt(this._backdrop).addClass(ie),!t)return;if(!n)return void t();Kt(this._backdrop).one(Di.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){Kt(this._backdrop).removeClass(ie);var s=function(){e._removeBackdrop(),t&&t()};Di.supportsTransitionEnd()&&Kt(this._element).hasClass(ee)?Kt(this._backdrop).one(Di.TRANSITION_END,s).emulateTransitionEnd(150):s()}else t&&t()},s.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},s.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},s.prototype._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},s.prototype._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){Kt(ne.FIXED_CONTENT).each(function(e,i){var n=Kt(i)[0].style.paddingRight,s=Kt(i).css("padding-right");Kt(i).data("padding-right",n).css("padding-right",parseFloat(s)+t._scrollbarWidth+"px")}),Kt(ne.STICKY_CONTENT).each(function(e,i){var n=Kt(i)[0].style.marginRight,s=Kt(i).css("margin-right");Kt(i).data("margin-right",n).css("margin-right",parseFloat(s)-t._scrollbarWidth+"px")}),Kt(ne.NAVBAR_TOGGLER).each(function(e,i){var n=Kt(i)[0].style.marginRight,s=Kt(i).css("margin-right");Kt(i).data("margin-right",n).css("margin-right",parseFloat(s)+t._scrollbarWidth+"px")});var e=document.body.style.paddingRight,i=Kt("body").css("padding-right");Kt("body").data("padding-right",e).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},s.prototype._resetScrollbar=function(){Kt(ne.FIXED_CONTENT).each(function(t,e){var i=Kt(e).data("padding-right");void 0!==i&&Kt(e).css("padding-right",i).removeData("padding-right")}),Kt(ne.STICKY_CONTENT+", "+ne.NAVBAR_TOGGLER).each(function(t,e){var i=Kt(e).data("margin-right");void 0!==i&&Kt(e).css("margin-right",i).removeData("margin-right")});var t=Kt("body").data("padding-right");void 0!==t&&Kt("body").css("padding-right",t).removeData("padding-right")},s.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=Xt,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},s._jQueryInterface=function(i,n){return this.each(function(){var a=Kt(this).data(Qt),o=e({},s.Default,Kt(this).data(),"object"===(void 0===i?"undefined":t(i))&&i);if(a||(a=new s(this,o),Kt(this).data(Qt,a)),"string"==typeof i){if(void 0===a[i])throw new TypeError('No method named "'+i+'"');a[i](n)}else o.show&&a.show(n)})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return zt}}]),s}(),Kt(document).on(Jt.CLICK_DATA_API,ne.DATA_TOGGLE,function(t){var i=this,n=void 0,s=Di.getSelectorFromElement(this);s&&(n=Kt(s)[0]);var a=Kt(n).data(Qt)?"toggle":e({},Kt(n).data(),Kt(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=Kt(n).one(Jt.SHOW,function(t){t.isDefaultPrevented()||o.one(Jt.HIDDEN,function(){Kt(i).is(":visible")&&i.focus()})});se._jQueryInterface.call(Kt(n),a,this)}),Kt.fn[Bt]=se._jQueryInterface,Kt.fn[Bt].Constructor=se,Kt.fn[Bt].noConflict=function(){return Kt.fn[Bt]=Gt,se._jQueryInterface},ae=$,Popper,oe="tooltip",he="."+(re="bs.tooltip"),le=ae.fn[oe],ce="bs-tooltip",de=new RegExp("(^|\\s)"+ce+"\\S+","g"),ue={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},fe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},pe={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"},ge="show",_e="out",me={HIDE:"hide"+he,HIDDEN:"hidden"+he,SHOW:"show"+he,SHOWN:"shown"+he,INSERTED:"inserted"+he,CLICK:"click"+he,FOCUSIN:"focusin"+he,FOCUSOUT:"focusout"+he,MOUSEENTER:"mouseenter"+he,MOUSELEAVE:"mouseleave"+he},ve="fade",ye="show",De=".tooltip-inner",Te=".arrow",Ce="hover",Ee="focus",we="click",be="manual",Ie=function(){function s(t,e){if(n(this,s),"undefined"==typeof Popper)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return s.prototype.enable=function(){this._isEnabled=!0},s.prototype.disable=function(){this._isEnabled=!1},s.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},s.prototype.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=ae(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),ae(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(ae(this.getTipElement()).hasClass(ye))return void this._leave(null,this);this._enter(null,this)}},s.prototype.dispose=function(){clearTimeout(this._timeout),ae.removeData(this.element,this.constructor.DATA_KEY),ae(this.element).off(this.constructor.EVENT_KEY),ae(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&ae(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},s.prototype.show=function(){var t=this;if("none"===ae(this.element).css("display"))throw new Error("Please use show on visible elements");var e=ae.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){ae(this.element).trigger(e);var i=ae.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var n=this.getTipElement(),a=Di.getUID(this.constructor.NAME);n.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&ae(n).addClass(ve);var o="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,r=this._getAttachment(o);this.addAttachmentClass(r);var h=!1===this.config.container?document.body:ae(this.config.container);ae(n).data(this.constructor.DATA_KEY,this),ae.contains(this.element.ownerDocument.documentElement,this.tip)||ae(n).appendTo(h),ae(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,n,{placement:r,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:Te},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),ae(n).addClass(ye),"ontouchstart"in document.documentElement&&ae("body").children().on("mouseover",null,ae.noop);var l=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,ae(t.element).trigger(t.constructor.Event.SHOWN),e===_e&&t._leave(null,t)};Di.supportsTransitionEnd()&&ae(this.tip).hasClass(ve)?ae(this.tip).one(Di.TRANSITION_END,l).emulateTransitionEnd(s._TRANSITION_DURATION):l()}},s.prototype.hide=function(t){var e=this,i=this.getTipElement(),n=ae.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==ge&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),ae(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};ae(this.element).trigger(n),n.isDefaultPrevented()||(ae(i).removeClass(ye),"ontouchstart"in document.documentElement&&ae("body").children().off("mouseover",null,ae.noop),this._activeTrigger[we]=!1,this._activeTrigger[Ee]=!1,this._activeTrigger[Ce]=!1,Di.supportsTransitionEnd()&&ae(this.tip).hasClass(ve)?ae(i).one(Di.TRANSITION_END,s).emulateTransitionEnd(150):s(),this._hoverState="")},s.prototype.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},s.prototype.isWithContent=function(){return Boolean(this.getTitle())},s.prototype.addAttachmentClass=function(t){ae(this.getTipElement()).addClass(ce+"-"+t)},s.prototype.getTipElement=function(){return this.tip=this.tip||ae(this.config.template)[0],this.tip},s.prototype.setContent=function(){var t=ae(this.getTipElement());this.setElementContent(t.find(De),this.getTitle()),t.removeClass(ve+" "+ye)},s.prototype.setElementContent=function(e,i){var n=this.config.html;"object"===(void 0===i?"undefined":t(i))&&(i.nodeType||i.jquery)?n?ae(i).parent().is(e)||e.empty().append(i):e.text(ae(i).text()):e[n?"html":"text"](i)},s.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},s.prototype._getAttachment=function(t){return fe[t.toUpperCase()]},s.prototype._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)ae(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(e!==be){var i=e===Ce?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n=e===Ce?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;ae(t.element).on(i,t.config.selector,function(e){return t._enter(e)}).on(n,t.config.selector,function(e){return t._leave(e)})}ae(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=e({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},s.prototype._fixTitle=function(){var e=t(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},s.prototype._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||ae(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),ae(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?Ee:Ce]=!0),ae(e.getTipElement()).hasClass(ye)||e._hoverState===ge?e._hoverState=ge:(clearTimeout(e._timeout),e._hoverState=ge,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===ge&&e.show()},e.config.delay.show):e.show())},s.prototype._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||ae(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),ae(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?Ee:Ce]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=_e,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===_e&&e.hide()},e.config.delay.hide):e.hide())},s.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},s.prototype._getConfig=function(t){return"number"==typeof(t=e({},this.constructor.Default,ae(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Di.typeCheckConfig(oe,t,this.constructor.DefaultType),t},s.prototype._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},s.prototype._cleanTipClass=function(){var t=ae(this.getTipElement()),e=t.attr("class").match(de);null!==e&&e.length>0&&t.removeClass(e.join(""))},s.prototype._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},s.prototype._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(ae(t).removeClass(ve),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},s._jQueryInterface=function(e){return this.each(function(){var i=ae(this).data(re),n="object"===(void 0===e?"undefined":t(e))&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new s(this,n),ae(this).data(re,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return pe}},{key:"NAME",get:function(){return oe}},{key:"DATA_KEY",get:function(){return re}},{key:"Event",get:function(){return me}},{key:"EVENT_KEY",get:function(){return he}},{key:"DefaultType",get:function(){return ue}}]),s}(),ae.fn[oe]=Ie._jQueryInterface,ae.fn[oe].Constructor=Ie,ae.fn[oe].noConflict=function(){return ae.fn[oe]=le,Ie._jQueryInterface},Ie);ke=$,Se="popover",Ne="."+(Ae="bs.popover"),Oe=ke.fn[Se],Ue="bs-popover",Me=new RegExp("(^|\\s)"+Ue+"\\S+","g"),xe=e({},Ti.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>'}),Pe=e({},Ti.DefaultType,{content:"(string|element|function)"}),Le="fade",Re="show",Fe=".popover-header",je=".popover-body",We={HIDE:"hide"+Ne,HIDDEN:"hidden"+Ne,SHOW:"show"+Ne,SHOWN:"shown"+Ne,INSERTED:"inserted"+Ne,CLICK:"click"+Ne,FOCUSIN:"focusin"+Ne,FOCUSOUT:"focusout"+Ne,MOUSEENTER:"mouseenter"+Ne,MOUSELEAVE:"mouseleave"+Ne},Ve=function(e){function s(){return n(this,s),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,e),s.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},s.prototype.addAttachmentClass=function(t){ke(this.getTipElement()).addClass(Ue+"-"+t)},s.prototype.getTipElement=function(){return this.tip=this.tip||ke(this.config.template)[0],this.tip},s.prototype.setContent=function(){var t=ke(this.getTipElement());this.setElementContent(t.find(Fe),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(je),e),t.removeClass(Le+" "+Re)},s.prototype._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s.prototype._cleanTipClass=function(){var t=ke(this.getTipElement()),e=t.attr("class").match(Me);null!==e&&e.length>0&&t.removeClass(e.join(""))},s._jQueryInterface=function(e){return this.each(function(){var i=ke(this).data(Ae),n="object"===(void 0===e?"undefined":t(e))?e:null;if((i||!/destroy|hide/.test(e))&&(i||(i=new s(this,n),ke(this).data(Ae,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return xe}},{key:"NAME",get:function(){return Se}},{key:"DATA_KEY",get:function(){return Ae}},{key:"Event",get:function(){return We}},{key:"EVENT_KEY",get:function(){return Ne}},{key:"DefaultType",get:function(){return Pe}}]),s}(Ti),ke.fn[Se]=Ve._jQueryInterface,ke.fn[Se].Constructor=Ve,ke.fn[Se].noConflict=function(){return ke.fn[Se]=Oe,Ve._jQueryInterface},Ye=$,He="scrollspy",Be="."+(Ke="bs.scrollspy"),Qe=Ye.fn[He],$e={offset:10,method:"auto",target:""},Ge={offset:"number",method:"string",target:"(string|element)"},ze={ACTIVATE:"activate"+Be,SCROLL:"scroll"+Be,LOAD_DATA_API:"load"+Be+".data-api"},qe="dropdown-item",Je="active",Xe={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},Ze="offset",ti="position",ei=function(){function s(t,e){var i=this;n(this,s),this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Xe.NAV_LINKS+","+this._config.target+" "+Xe.LIST_ITEMS+","+this._config.target+" "+Xe.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Ye(this._scrollElement).on(ze.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}return s.prototype.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Ze:ti,i="auto"===this._config.method?e:this._config.method,n=i===ti?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Ye.makeArray(Ye(this._selector)).map(function(t){var e=void 0,s=Di.getSelectorFromElement(t);if(s&&(e=Ye(s)[0]),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[Ye(e)[i]().top+n,s]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},s.prototype.dispose=function(){Ye.removeData(this._element,Ke),Ye(this._scrollElement).off(Be),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},s.prototype._getConfig=function(t){if("string"!=typeof(t=e({},$e,t)).target){var i=Ye(t.target).attr("id");i||(i=Di.getUID(He),Ye(t.target).attr("id",i)),t.target="#"+i}return Di.typeCheckConfig(He,t,Ge),t},s.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},s.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},s.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},s.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])}}},s.prototype._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",");e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=Ye(e.join(","));i.hasClass(qe)?(i.closest(Xe.DROPDOWN).find(Xe.DROPDOWN_TOGGLE).addClass(Je),i.addClass(Je)):(i.addClass(Je),i.parents(Xe.NAV_LIST_GROUP).prev(Xe.NAV_LINKS+", "+Xe.LIST_ITEMS).addClass(Je),i.parents(Xe.NAV_LIST_GROUP).prev(Xe.NAV_ITEMS).children(Xe.NAV_LINKS).addClass(Je)),Ye(this._scrollElement).trigger(ze.ACTIVATE,{relatedTarget:t})},s.prototype._clear=function(){Ye(this._selector).filter(Xe.ACTIVE).removeClass(Je)},s._jQueryInterface=function(e){return this.each(function(){var i=Ye(this).data(Ke),n="object"===(void 0===e?"undefined":t(e))&&e;if(i||(i=new s(this,n),Ye(this).data(Ke,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return $e}}]),s}(),Ye(window).on(ze.LOAD_DATA_API,function(){for(var t=Ye.makeArray(Ye(Xe.DATA_SPY)),e=t.length;e--;){var i=Ye(t[e]);ei._jQueryInterface.call(i,i.data())}}),Ye.fn[He]=ei._jQueryInterface,Ye.fn[He].Constructor=ei,Ye.fn[He].noConflict=function(){return Ye.fn[He]=Qe,ei._jQueryInterface},ii=$,si="."+(ni="bs.tab"),ai=ii.fn.tab,oi={HIDE:"hide"+si,HIDDEN:"hidden"+si,SHOW:"show"+si,SHOWN:"shown"+si,CLICK_DATA_API:"click"+si+".data-api"},ri="dropdown-menu",hi="active",li="disabled",ci="fade",di="show",ui=".dropdown",fi=".nav, .list-group",pi=".active",gi="> li > .active",_i='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',mi=".dropdown-toggle",vi="> .dropdown-menu .active",yi=function(){function t(e){n(this,t),this._element=e}return t.prototype.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&ii(this._element).hasClass(hi)||ii(this._element).hasClass(li))){var e=void 0,i=void 0,n=ii(this._element).closest(fi)[0],s=Di.getSelectorFromElement(this._element);if(n){var a="UL"===n.nodeName?gi:pi;i=(i=ii.makeArray(ii(n).find(a)))[i.length-1]}var o=ii.Event(oi.HIDE,{relatedTarget:this._element}),r=ii.Event(oi.SHOW,{relatedTarget:i});if(i&&ii(i).trigger(o),ii(this._element).trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){s&&(e=ii(s)[0]),this._activate(this._element,n);var h=function(){var e=ii.Event(oi.HIDDEN,{relatedTarget:t._element}),n=ii.Event(oi.SHOWN,{relatedTarget:i});ii(i).trigger(e),ii(t._element).trigger(n)};e?this._activate(e,e.parentNode,h):h()}}},t.prototype.dispose=function(){ii.removeData(this._element,ni),this._element=null},t.prototype._activate=function(t,e,i){var n=this,s=("UL"===e.nodeName?ii(e).find(gi):ii(e).children(pi))[0],a=i&&Di.supportsTransitionEnd()&&s&&ii(s).hasClass(ci),o=function(){return n._transitionComplete(t,s,i)};s&&a?ii(s).one(Di.TRANSITION_END,o).emulateTransitionEnd(150):o()},t.prototype._transitionComplete=function(t,e,i){if(e){ii(e).removeClass(di+" "+hi);var n=ii(e.parentNode).find(vi)[0];n&&ii(n).removeClass(hi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(ii(t).addClass(hi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Di.reflow(t),ii(t).addClass(di),t.parentNode&&ii(t.parentNode).hasClass(ri)){var s=ii(t).closest(ui)[0];s&&ii(s).find(mi).addClass(hi),t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(e){return this.each(function(){var i=ii(this),n=i.data(ni);if(n||(n=new t(this),i.data(ni,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),ii(document).on(oi.CLICK_DATA_API,_i,function(t){t.preventDefault(),yi._jQueryInterface.call(ii(this),"show")}),ii.fn.tab=yi._jQueryInterface,ii.fn.tab.Constructor=yi,ii.fn.tab.noConflict=function(){return ii.fn.tab=ai,yi._jQueryInterface},function(e){var i=function t(i,n){this.options=e.extend({},t.DEFAULTS,n),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var s=e(this),a=s.data("bs.affix"),o="object"==(void 0===n?"undefined":t(n))&&n;a||s.data("bs.affix",a=new i(this,o)),"string"==typeof n&&a[n]()})}i.VERSION="3.3.6",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),a=this.$element.offset(),o=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=a.top)&&"bottom":!(s+o<=t-n)&&"bottom";var r=null==this.affixed,h=r?s:a.top;return null!=i&&s<=i?"top":null!=n&&h+(r?o:e)>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),s=this.options.offset,a=s.top,o=s.bottom,r=Math.max(e(document).height(),e(document.body).height());"object"!=(void 0===s?"undefined":t(s))&&(o=a=s),"function"==typeof a&&(a=s.top(this.$element)),"function"==typeof o&&(o=s.bottom(this.$element));var h=this.getState(r,n,a,o);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var l="affix"+(h?"-"+h:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:r-n-o})}};var s=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=i,e.fn.affix.noConflict=function(){return e.fn.affix=s,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),i=t.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(t,i)})})}(jQuery);!function(e,i){function n(){return new Date(Date.UTC.apply(Date,arguments))}function s(){var t=new Date;return n(t.getFullYear(),t.getMonth(),t.getDate())}function a(t){return function(){return this[t].apply(this,arguments)}}var o,r=(o={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(this[i].valueOf()===e)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(e.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new r;return t.replace(this),t}},function(){var t=[];return t.push.apply(t,arguments),e.extend(t,o),t}),h=function(t,i){this._process_options(i),this.dates=new r,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=e(t),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=e(g.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",function(t,e){return parseInt(e)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};h.prototype={constructor:h,_process_options:function(t){this._o=e.extend({},this._o,t);var a=this.o=e.extend({},this._o),o=a.language;switch(p[o]||(o=o.split("-")[0],p[o]||(o=u.language)),a.language=o,a.startView){case 2:case"decade":a.startView=2;break;case 1:case"year":a.startView=1;break;default:a.startView=0}switch(a.minViewMode){case 1:case"months":a.minViewMode=1;break;case 2:case"years":a.minViewMode=2;break;default:a.minViewMode=0}a.startView=Math.max(a.startView,a.minViewMode),!0!==a.multidate&&(a.multidate=Number(a.multidate)||!1,!1!==a.multidate&&(a.multidate=Math.max(0,a.multidate))),a.multidateSeparator=String(a.multidateSeparator),a.weekStart%=7,a.weekEnd=(a.weekStart+6)%7;var r=g.parseFormat(a.format);if(a.startDate!==-1/0&&(a.startDate?a.startDate instanceof Date?a.startDate=this._local_to_utc(this._zero_time(a.startDate)):a.startDate=g.parseDate(a.startDate,r,a.language):a.startDate=-1/0),a.endDate!==1/0&&(a.endDate?a.endDate instanceof Date?a.endDate=this._local_to_utc(this._zero_time(a.endDate)):a.endDate=g.parseDate(a.endDate,r,a.language):a.endDate=1/0),a.daysOfWeekDisabled=a.daysOfWeekDisabled||[],e.isArray(a.daysOfWeekDisabled)||(a.daysOfWeekDisabled=a.daysOfWeekDisabled.split(/[,\s]*/)),a.daysOfWeekDisabled=e.map(a.daysOfWeekDisabled,function(t){return parseInt(t,10)}),a.datesDisabled=a.datesDisabled||[],!e.isArray(a.datesDisabled)){var h=[];h.push(g.parseDate(a.datesDisabled,r,a.language)),a.datesDisabled=h}a.datesDisabled=e.map(a.datesDisabled,function(t){return g.parseDate(t,r,a.language)});var l=String(a.orientation).toLowerCase().split(/\s+/g),c=a.orientation.toLowerCase();if(l=e.grep(l,function(t){return/^auto|left|right|top|bottom$/.test(t)}),a.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===l.length)switch(l[0]){case"top":case"bottom":a.orientation.y=l[0];break;case"left":case"right":a.orientation.x=l[0]}else c=e.grep(l,function(t){return/^left|right$/.test(t)}),a.orientation.x=c[0]||"auto",c=e.grep(l,function(t){return/^top|bottom$/.test(t)}),a.orientation.y=c[0]||"auto";else;if(a.defaultViewDate){var d=a.defaultViewDate.year||(new Date).getFullYear(),f=a.defaultViewDate.month||0,_=a.defaultViewDate.day||1;a.defaultViewDate=n(d,f,_)}else a.defaultViewDate=s();a.showOnFocus=a.showOnFocus===i||a.showOnFocus},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var e,n,s,a=0;a<t.length;a++)e=t[a][0],2===t[a].length?(n=i,s=t[a][1]):3===t[a].length&&(n=t[a][1],s=t[a][2]),e.on(s,n)},_unapplyEvents:function(t){for(var e,n,s,a=0;a<t.length;a++)e=t[a][0],2===t[a].length?(s=i,n=t[a][1]):3===t[a].length&&(s=t[a][1],n=t[a][2]),e.off(n,s)},_buildEvents:function(){var t={keyup:e.proxy(function(t){-1===e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:e.proxy(this.keydown,this)};!0===this.o.showOnFocus&&(t.focus=e.proxy(this.show,this)),this.isInput?this._events=[[this.element,t]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),t],[this.component,{click:e.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:e.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:e.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:e.proxy(function(t){this._focused_from=t.target},this)}]),this._secondaryEvents=[[this.picker,{click:e.proxy(this.click,this)}],[e(window),{resize:e.proxy(this.place,this)}],[e(document),{"mousedown touchstart":e.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,i){var n=i||this.dates.get(-1),s=this._utc_to_local(n);this.element.trigger({type:t,date:s,dates:e.map(this.dates,this._utc_to_local),format:e.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return g.formatDate(i,e,this.o.language)},this)})},show:function(){if(!this.element.attr("readonly"))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&e(this.element).blur(),this},hide:function(){return this.isInline?this:this.picker.is(":visible")?(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"),this):this},remove:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},_utc_to_local:function(t){return t&&new Date(t.getTime()+6e4*t.getTimezoneOffset())},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))},getDates:function(){return e.map(this.dates,this._utc_to_local)},getUTCDates:function(){return e.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return void 0!==t?new Date(t):null},clearDates:function(){var t;this.isInput?t=this.element:this.component&&(t=this.element.find("input")),t&&t.val("").change(),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:a("setDates"),setUTCDate:a("setUTCDates"),setValue:function(){var t=this.getFormattedDate();return this.isInput?this.element.val(t).change():this.component&&this.element.find("input").val(t).change(),this},getFormattedDate:function(t){t===i&&(t=this.o.format);var n=this.o.language;return e.map(this.dates,function(e){return g.formatDate(e,t,n)}).join(this.o.multidateSeparator)},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows(),this},setDatesDisabled:function(t){this._process_options({datesDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(this.isInline)return this;var t=this.picker.outerWidth(),i=this.picker.outerHeight(),n=e(this.o.container).width(),s=e(this.o.container).height(),a=e(this.o.container).scrollTop(),o=e(this.o.container).offset(),r=[];this.element.parents().each(function(){var t=e(this).css("z-index");"auto"!==t&&0!==t&&r.push(parseInt(t))});var h=Math.max.apply(Math,r)+10,l=this.component?this.component.parent().offset():this.element.offset(),c=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),d=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),u=l.left-o.left,f=l.top-o.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(u-=t-d)):l.left<0?(this.picker.addClass("datepicker-orient-left"),u-=l.left-10):u+t>n?(this.picker.addClass("datepicker-orient-right"),u=l.left+d-t):this.picker.addClass("datepicker-orient-left");var p,g,_=this.o.orientation.y;if("auto"===_&&(p=-a+f-i,g=a+s-(f+c+i),_=Math.max(p,g)===g?"top":"bottom"),this.picker.addClass("datepicker-orient-"+_),"top"===_?f+=c:f-=i+parseInt(this.picker.css("padding-top")),this.o.rtl){var m=n-(u+d);this.picker.css({top:f,right:m,zIndex:h})}else this.picker.css({top:f,left:u,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),i=[],n=!1;return arguments.length?(e.each(arguments,e.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),n=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=e.map(i,e.proxy(function(t){return g.parseDate(t,this.o.format,this.o.language)},this)),i=e.grep(i,e.proxy(function(t){return t<this.o.startDate||t>this.o.endDate||!t},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),n?this.setValue():i.length&&String(t)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&t.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var t=this.o.weekStart,e="<tr>";if(this.o.calendarWeeks){this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(t,e){return parseInt(e)+1});e+='<th class="cw"> </th>'}for(;t<this.o.weekStart+7;)e+='<th class="dow">'+p[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+p[this.o.language].monthsShort[e++]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],n=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a=new Date;return t.getUTCFullYear()<n||t.getUTCFullYear()===n&&t.getUTCMonth()<s?i.push("old"):(t.getUTCFullYear()>n||t.getUTCFullYear()===n&&t.getUTCMonth()>s)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===a.getFullYear()&&t.getUTCMonth()===a.getMonth()&&t.getUTCDate()===a.getDate()&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&i.push("disabled"),this.o.datesDisabled.length>0&&e.grep(this.o.datesDisabled,function(e){return n=e,(i=t).getUTCFullYear()===n.getUTCFullYear()&&i.getUTCMonth()===n.getUTCMonth()&&i.getUTCDate()===n.getUTCDate();var i,n}).length>0&&i.push("disabled","disabled-date"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),-1!==e.inArray(t.valueOf(),this.range)&&i.push("selected")),i},fill:function(){var t,s=new Date(this.viewDate),a=s.getUTCFullYear(),o=s.getUTCMonth(),r=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,h=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=p[this.o.language].today||p.en.today||"",u=p[this.o.language].clear||p.en.clear||"";if(!isNaN(a)&&!isNaN(o)){this.picker.find(".datepicker-days thead .datepicker-switch").text(p[this.o.language].months[o]+" "+a),this.picker.find("tfoot .today").text(d).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot .clear").text(u).toggle(!1!==this.o.clearBtn),this.updateNavArrows(),this.fillMonths();var f=n(a,o-1,28),_=g.getDaysInMonth(f.getUTCFullYear(),f.getUTCMonth());f.setUTCDate(_),f.setUTCDate(_-(f.getUTCDay()-this.o.weekStart+7)%7);var m=new Date(f);m.setUTCDate(m.getUTCDate()+42),m=m.valueOf();for(var v,y=[];f.valueOf()<m;){if(f.getUTCDay()===this.o.weekStart&&(y.push("<tr>"),this.o.calendarWeeks)){var D=new Date(+f+(this.o.weekStart-f.getUTCDay()-7)%7*864e5),T=new Date(Number(D)+(11-D.getUTCDay())%7*864e5),C=new Date(Number(C=n(T.getUTCFullYear(),0,1))+(11-C.getUTCDay())%7*864e5),E=(T-C)/864e5/7+1;y.push('<td class="cw">'+E+"</td>")}if((v=this.getClassNames(f)).push("day"),this.o.beforeShowDay!==e.noop){var w=this.o.beforeShowDay(this._utc_to_local(f));w===i?w={}:"boolean"==typeof w?w={enabled:w}:"string"==typeof w&&(w={classes:w}),!1===w.enabled&&v.push("disabled"),w.classes&&(v=v.concat(w.classes.split(/\s+/))),w.tooltip&&(t=w.tooltip)}v=e.unique(v),y.push('<td class="'+v.join(" ")+'"'+(t?' title="'+t+'"':"")+">"+f.getUTCDate()+"</td>"),t=null,f.getUTCDay()===this.o.weekEnd&&y.push("</tr>"),f.setUTCDate(f.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(y.join(""));var b=this.picker.find(".datepicker-months").find("th:eq(1)").text(a).end().find("span").removeClass("active");if(e.each(this.dates,function(t,e){e.getUTCFullYear()===a&&b.eq(e.getUTCMonth()).addClass("active")}),(a<r||a>l)&&b.addClass("disabled"),a===r&&b.slice(0,h).addClass("disabled"),a===l&&b.slice(c+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var I=this;e.each(b,function(t,i){if(!e(i).hasClass("disabled")){var n=new Date(a,t,1);!1===I.o.beforeShowMonth(n)&&e(i).addClass("disabled")}})}y="",a=10*parseInt(a/10,10);var k=this.picker.find(".datepicker-years").find("th:eq(1)").text(a+"-"+(a+9)).end().find("td");a-=1;for(var S,A=e.map(this.dates,function(t){return t.getUTCFullYear()}),N=-1;N<11;N++)S=["year"],-1===N?S.push("old"):10===N&&S.push("new"),-1!==e.inArray(a,A)&&S.push("active"),(a<r||a>l)&&S.push("disabled"),y+='<span class="'+S.join(" ")+'">'+a+"</span>",a+=1;k.html(y)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){t.preventDefault();var i,s,a,o=e(t.target).closest("span, td, th");if(1===o.length)switch(o[0].nodeName.toLowerCase()){case"th":switch(o[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var r=g.modes[this.viewMode].navStep*("prev"===o[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,r),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,r),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var h=new Date;h=n(h.getFullYear(),h.getMonth(),h.getDate(),0,0,0),this.showMode(-2);var l="linked"===this.o.todayBtn?null:"view";this._setDate(h,l);break;case"clear":this.clearDates()}break;case"span":o.hasClass("disabled")||(this.viewDate.setUTCDate(1),o.hasClass("month")?(a=1,s=o.parent().find("span").index(o),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(s),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(n(i,s,a))):(a=1,s=0,i=parseInt(o.text(),10)||0,this.viewDate.setUTCFullYear(i),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(n(i,s,a))),this.showMode(-1),this.fill());break;case"td":o.hasClass("day")&&!o.hasClass("disabled")&&(a=parseInt(o.text(),10)||1,i=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),o.hasClass("old")?0===s?(s=11,i-=1):s-=1:o.hasClass("new")&&(11===s?(s=0,i+=1):s+=1),this._setDate(n(i,s,a)))}this.picker.is(":visible")&&this._focused_from&&e(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){var i;e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveMonth:function(t,e){if(!t)return i;if(!e)return t;var n,s,a=new Date(t.valueOf()),o=a.getUTCDate(),r=a.getUTCMonth(),h=Math.abs(e);if(e=e>0?1:-1,1===h)s=-1===e?function(){return a.getUTCMonth()===r}:function(){return a.getUTCMonth()!==n},n=r+e,a.setUTCMonth(n),(n<0||n>11)&&(n=(n+12)%12);else{for(var l=0;l<h;l++)a=this.moveMonth(a,e);n=a.getUTCMonth(),a.setUTCDate(o),s=function(){return n!==a.getUTCMonth()}}for(;s();)a.setUTCDate(--o),a.setUTCMonth(n);return a},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,n,a,o=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||s(),e),n=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||s(),e),n=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||s())).setUTCDate(i.getUTCDate()+e),(n=new Date(r)).setUTCDate(r.getUTCDate()+e)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||s(),e),n=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||s(),e),n=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||s())).setUTCDate(i.getUTCDate()+7*e),(n=new Date(r)).setUTCDate(r.getUTCDate()+7*e)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 32:break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),o=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(o)this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?a=this.element:this.component&&(a=this.element.find("input")),a&&a.change()}else 27===t.keyCode&&this.show()},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.children("div").hide().filter(".datepicker-"+g.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var l=function(t,i){this.element=e(t),this.inputs=e.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,d.call(e(this.inputs),i).bind("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e(t).data("datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(t){return t.valueOf()});e.each(this.pickers,function(e,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var i=e(t.target).data("datepicker").getUTCDate(),n=e.inArray(t.target,this.inputs),s=n-1,a=n+1,o=this.inputs.length;if(-1!==n){if(e.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(i)}),i<this.dates[s])for(;s>=0&&i<this.dates[s];)this.pickers[s--].setUTCDate(i);else if(i>this.dates[a])for(;a<o&&i>this.dates[a];)this.pickers[a++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){e.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var c=e.fn.datepicker,d=function(n){var s,a=Array.apply(null,arguments);return a.shift(),this.each(function(){var o=e(this),r=o.data("datepicker"),c="object"===(void 0===n?"undefined":t(n))&&n;if(!r){var d=function(t,i){var n=e(t).data(),s={},a=new RegExp("^"+i.toLowerCase()+"([A-Z])");function o(t,e){return e.toLowerCase()}for(var r in i=new RegExp("^"+i.toLowerCase()),n)i.test(r)&&(s[r.replace(a,o)]=n[r]);return s}(this,"date"),g=function(t){var i={};if(p[t]||(t=t.split("-")[0],p[t])){var n=p[t];return e.each(f,function(t,e){e in n&&(i[e]=n[e])}),i}}(e.extend({},u,d,c).language),_=e.extend({},u,g,d,c);if(o.hasClass("input-daterange")||_.inputs){var m={inputs:_.inputs||o.find("input").toArray()};o.data("datepicker",r=new l(this,e.extend(_,m)))}else o.data("datepicker",r=new h(this,_))}if("string"==typeof n&&"function"==typeof r[n]&&(s=r[n].apply(r,a))!==i)return!1}),s!==i?s:this};e.fn.datepicker=d;var u=e.fn.datepicker.defaults={autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,container:"body"},f=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=h;var p=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},g={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,g.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(t,s,a){if(!t)return i;if(t instanceof Date)return t;"string"==typeof s&&(s=g.parseFormat(s));var o,r,l,c=/([\-+]\d+)([dmwy])/,d=t.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(t)){for(t=new Date,l=0;l<d.length;l++)switch(o=c.exec(d[l]),r=parseInt(o[1]),o[2]){case"d":t.setUTCDate(t.getUTCDate()+r);break;case"m":t=h.prototype.moveMonth.call(h.prototype,t,r);break;case"w":t.setUTCDate(t.getUTCDate()+7*r);break;case"y":t=h.prototype.moveYear.call(h.prototype,t,r)}return n(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),0,0,0)}d=t&&t.match(this.nonpunctuation)||[],t=new Date;var u,f,_={},m=["yyyy","yy","M","MM","m","mm","d","dd"],v={yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};v.M=v.MM=v.mm=v.m,v.dd=v.d,t=n(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0);var y=s.parts.slice();function D(){var t=this.slice(0,d[l].length),e=d[l].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(d.length!==y.length&&(y=e(y).filter(function(t,i){return-1!==e.inArray(i,m)}).toArray()),d.length===y.length){var T,C,E;for(l=0,T=y.length;l<T;l++){if(u=parseInt(d[l],10),o=y[l],isNaN(u))switch(o){case"MM":f=e(p[a].months).filter(D),u=e.inArray(f[0],p[a].months)+1;break;case"M":f=e(p[a].monthsShort).filter(D),u=e.inArray(f[0],p[a].monthsShort)+1}_[o]=u}for(l=0;l<m.length;l++)(E=m[l])in _&&!isNaN(_[E])&&(C=new Date(t),v[E](C,_[E]),isNaN(C)||(t=C))}return t},formatDate:function(t,i,n){if(!t)return"";"string"==typeof i&&(i=g.parseFormat(i));var s={d:t.getUTCDate(),D:p[n].daysShort[t.getUTCDay()],DD:p[n].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:p[n].monthsShort[t.getUTCMonth()],MM:p[n].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,t=[];for(var a=e.extend([],i.separators),o=0,r=i.parts.length;o<=r;o++)a.length&&t.push(a.shift()),t.push(s[i.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">«</th><th colspan="5" class="datepicker-switch"></th><th class="next">»</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};g.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+g.headTemplate+"<tbody></tbody>"+g.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+"</table></div></div>",e.fn.datepicker.DPGlobal=g,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=c,this},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),d.call(i,"show"))}),e(function(){d.call(e('[data-provide="datepicker-inline"]'))})}(window.jQuery)}();