if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}(jQuery);+function(){function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)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 r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i=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){function u(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function f(n){return(n[0]||n).nodeType}function e(){return{bindType:t.end,delegateType:t.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function o(){var t,n;if(window.QUnit)return!1;t=document.createElement("bootstrap");for(n in r)if(void 0!==t.style[n])return{end:r[n]};return!1}function s(t){var u=this,r=!1;return n(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(u)},t),this}function h(){t=o();n.fn.emulateTransitionEnd=s;i.supportsTransitionEnd()&&(n.event.special[i.TRANSITION_END]=e())}var t=!1,c=1e6,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*c);while(document.getElementById(n));return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target");return t||(t=n.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(i){n(i).trigger(t.end)},supportsTransitionEnd:function(){return Boolean(t)},typeCheckConfig:function(n,t,i){for(var r in i)if(i.hasOwnProperty(r)){var o=i[r],e=t[r],s=e&&f(e)?"element":u(e);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return h(),i}(jQuery),u=(function(r){var f="alert",c="4.0.0-alpha.6",e="bs.alert",o="."+e,l=r.fn[f],a=150,s={CLOSE:"close"+o,CLOSED:"closed"+o,CLICK_DATA_API:"click"+o+".data-api"},h={ALERT:"alert",FADE:"fade",SHOW:"show"},u=function(){function u(n){t(this,u);this._element=n}return u.prototype.close=function(n){n=n||this._element;var t=this._getRootElement(n),i=this._triggerCloseEvent(t);i.isDefaultPrevented()||this._removeElement(t)},u.prototype.dispose=function(){r.removeData(this._element,e);this._element=null},u.prototype._getRootElement=function(t){var u=n.getSelectorFromElement(t),i=!1;return u&&(i=r(u)[0]),i||(i=r(t).closest("."+h.ALERT)[0]),i},u.prototype._triggerCloseEvent=function(n){var t=r.Event(s.CLOSE);return r(n).trigger(t),t},u.prototype._removeElement=function(t){var i=this;return r(t).removeClass(h.SHOW),n.supportsTransitionEnd()&&r(t).hasClass(h.FADE)?void r(t).one(n.TRANSITION_END,function(n){return i._destroyElement(t,n)}).emulateTransitionEnd(a):void this._destroyElement(t)},u.prototype._destroyElement=function(n){r(n).detach().trigger(s.CLOSED).remove()},u._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data(e);t||(t=new u(this),i.data(e,t));"close"===n&&t[n](this)})},u._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},i(u,null,[{key:"VERSION",get:function(){return c}}]),u}();return r(document).on(s.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,u._handleDismiss(new u)),r.fn[f]=u._jQueryInterface,r.fn[f].Constructor=u,r.fn[f].noConflict=function(){return r.fn[f]=l,u._jQueryInterface},u}(jQuery),function(n){var f="button",l="4.0.0-alpha.6",o="bs.button",s="."+o,h=".data-api",a=n.fn[f],r={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},c={CLICK_DATA_API:"click"+s+h,FOCUS_BLUR_DATA_API:"focus"+s+h+" "+("blur"+s+h)},e=function(){function f(n){t(this,f);this._element=n}return f.prototype.toggle=function(){var i=!0,e=n(this._element).closest(u.DATA_TOGGLE)[0],t,f;e&&(t=n(this._element).find(u.INPUT)[0],t&&("radio"===t.type&&(t.checked&&n(this._element).hasClass(r.ACTIVE)?i=!1:(f=n(e).find(u.ACTIVE)[0],f&&n(f).removeClass(r.ACTIVE))),i&&(t.checked=!n(this._element).hasClass(r.ACTIVE),n(t).trigger("change")),t.focus()));this._element.setAttribute("aria-pressed",!n(this._element).hasClass(r.ACTIVE));i&&n(this._element).toggleClass(r.ACTIVE)},f.prototype.dispose=function(){n.removeData(this._element,o);this._element=null},f._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(o);i||(i=new f(this),n(this).data(o,i));"toggle"===t&&i[t]()})},i(f,null,[{key:"VERSION",get:function(){return l}}]),f}();return n(document).on(c.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var i=t.target;n(i).hasClass(r.BUTTON)||(i=n(i).closest(u.BUTTON));e._jQueryInterface.call(n(i),"toggle")}).on(c.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(t){var i=n(t.target).closest(u.BUTTON)[0];n(i).toggleClass(r.FOCUS,/^focus(in)?$/.test(t.type))}),n.fn[f]=e._jQueryInterface,n.fn[f].Constructor=e,n.fn[f].noConflict=function(){return n.fn[f]=a,e._jQueryInterface},e}(jQuery),function(u){var c="carousel",p="4.0.0-alpha.6",a="bs.carousel",o="."+a,y=".data-api",w=u.fn[c],b=600,k=37,d=39,v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},g={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},e={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},s={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,LOAD_DATA_API:"load"+o+y,CLICK_DATA_API:"click"+o+y},f={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},h={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"]'},l=function(){function l(n,i){t(this,l);this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this._config=this._getConfig(i);this._element=u(n)[0];this._indicatorsElement=u(this._element).find(h.INDICATORS)[0];this._addEventListeners()}return l.prototype.next=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(e.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(e.PREVIOUS)},l.prototype.pause=function(t){t||(this._isPaused=!0);u(this._element).find(h.NEXT_PREV)[0]&&n.supportsTransitionEnd()&&(n.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},l.prototype.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))},l.prototype.to=function(n){var r=this,t,i;if(this._activeElement=u(this._element).find(h.ACTIVE_ITEM)[0],t=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0)){if(this._isSliding)return void u(this._element).one(s.SLID,function(){return r.to(n)});if(t===n)return this.pause(),void this.cycle();i=n>t?e.NEXT:e.PREVIOUS;this._slide(i,this._items[n])}},l.prototype.dispose=function(){u(this._element).off(o);u.removeData(this._element,a);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},l.prototype._getConfig=function(t){return t=u.extend({},v,t),n.typeCheckConfig(c,t,g),t},l.prototype._addEventListeners=function(){var n=this;this._config.keyboard&&u(this._element).on(s.KEYDOWN,function(t){return n._keydown(t)});"hover"!==this._config.pause||"ontouchstart"in document.documentElement||u(this._element).on(s.MOUSEENTER,function(t){return n.pause(t)}).on(s.MOUSELEAVE,function(t){return n.cycle(t)})},l.prototype._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case k:n.preventDefault();this.prev();break;case d:n.preventDefault();this.next();break;default:return}},l.prototype._getItemIndex=function(n){return this._items=u.makeArray(u(n).parent().find(h.ITEM)),this._items.indexOf(n)},l.prototype._getItemByDirection=function(n,t){var f=n===e.NEXT,o=n===e.PREVIOUS,i=this._getItemIndex(t),s=this._items.length-1,h=o&&0===i||f&&i===s,u,r;return h&&!this._config.wrap?t:(u=n===e.PREVIOUS?-1:1,r=(i+u)%this._items.length,r===-1?this._items[this._items.length-1]:this._items[r])},l.prototype._triggerSlideEvent=function(n,t){var i=u.Event(s.SLIDE,{relatedTarget:n,direction:t});return u(this._element).trigger(i),i},l.prototype._setActiveIndicatorElement=function(n){if(this._indicatorsElement){u(this._indicatorsElement).find(h.ACTIVE).removeClass(f.ACTIVE);var t=this._indicatorsElement.children[this._getItemIndex(n)];t&&u(t).addClass(f.ACTIVE)}},l.prototype._slide=function(t,i){var y=this,o=u(this._element).find(h.ACTIVE_ITEM)[0],r=i||o&&this._getItemByDirection(t,o),p=Boolean(this._interval),c=void 0,l=void 0,a=void 0,w,v;if(t===e.NEXT?(c=f.LEFT,l=f.NEXT,a=e.LEFT):(c=f.RIGHT,l=f.PREV,a=e.RIGHT),r&&u(r).hasClass(f.ACTIVE))return void(this._isSliding=!1);w=this._triggerSlideEvent(r,a);!w.isDefaultPrevented()&&o&&r&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(r),v=u.Event(s.SLID,{relatedTarget:r,direction:a}),n.supportsTransitionEnd()&&u(this._element).hasClass(f.SLIDE)?(u(r).addClass(l),n.reflow(r),u(o).addClass(c),u(r).addClass(c),u(o).one(n.TRANSITION_END,function(){u(r).removeClass(c+" "+l).addClass(f.ACTIVE);u(o).removeClass(f.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return u(y._element).trigger(v)},0)}).emulateTransitionEnd(b)):(u(o).removeClass(f.ACTIVE),u(r).addClass(f.ACTIVE),this._isSliding=!1,u(this._element).trigger(v)),p&&this.cycle())},l._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(a),f=u.extend({},v,u(this).data()),i;if("object"===("undefined"==typeof n?"undefined":r(n))&&u.extend(f,n),i="string"==typeof n?n:f.slide,t||(t=new l(this,f),u(this).data(a,t)),"number"==typeof n)t.to(n);else if("string"==typeof i){if(void 0===t[i])throw new Error('No method named "'+i+'"');t[i]()}else f.interval&&(t.pause(),t.cycle())})},l._dataApiClickHandler=function(t){var o=n.getSelectorFromElement(this),i,e,r;o&&(i=u(o)[0],i&&u(i).hasClass(f.CAROUSEL)&&(e=u.extend({},u(i).data(),u(this).data()),r=this.getAttribute("data-slide-to"),r&&(e.interval=!1),l._jQueryInterface.call(u(i),e),r&&u(i).data(a).to(r),t.preventDefault()))},i(l,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return v}}]),l}();return u(document).on(s.CLICK_DATA_API,h.DATA_SLIDE,l._dataApiClickHandler),u(window).on(s.LOAD_DATA_API,function(){u(h.DATA_RIDE).each(function(){var n=u(this);l._jQueryInterface.call(n,n.data())})}),u.fn[c]=l._jQueryInterface,u.fn[c].Constructor=l,u.fn[c].noConflict=function(){return u.fn[c]=w,l._jQueryInterface},l}(jQuery),function(u){var o="collapse",p="4.0.0-alpha.6",e="bs.collapse",h="."+e,w=u.fn[o],v=600,a={toggle:!0,parent:""},b={toggle:"boolean",parent:"string"},c={SHOW:"show"+h,SHOWN:"shown"+h,HIDE:"hide"+h,HIDDEN:"hidden"+h,CLICK_DATA_API:"click"+h+".data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},y={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},s=function(){function s(n,i){t(this,s);this._isTransitioning=!1;this._element=n;this._config=this._getConfig(i);this._triggerArray=u.makeArray(u('[data-toggle="collapse"][href="#'+n.id+'"],'+('[data-toggle="collapse"][data-target="#'+n.id+'"]')));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(){u(this._element).hasClass(f.SHOW)?this.hide():this.show()},s.prototype.show=function(){var o=this,t,r,h,i,l,a,p;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!u(this._element).hasClass(f.SHOW)&&(t=void 0,r=void 0,(this._parent&&(t=u.makeArray(u(this._parent).find(y.ACTIVES)),t.length||(t=null)),!(t&&(r=u(t).data(e),r&&r._isTransitioning)))&&(h=u.Event(c.SHOW),u(this._element).trigger(h),!h.isDefaultPrevented()))){if(t&&(s._jQueryInterface.call(u(t),"hide"),r||u(t).data(e,null)),i=this._getDimension(),u(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[i]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&u(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),l=function(){u(o._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW);o._element.style[i]="";o.setTransitioning(!1);u(o._element).trigger(c.SHOWN)},!n.supportsTransitionEnd())return void l();a=i[0].toUpperCase()+i.slice(1);p="scroll"+a;u(this._element).one(n.TRANSITION_END,l).emulateTransitionEnd(v);this._element.style[i]=this._element[p]+"px"}},s.prototype.hide=function(){var e=this,i,t,o,r;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(u(this._element).hasClass(f.SHOW)&&(i=u.Event(c.HIDE),u(this._element).trigger(i),!i.isDefaultPrevented()))return t=this._getDimension(),o=t===l.WIDTH?"offsetWidth":"offsetHeight",this._element.style[t]=this._element[o]+"px",n.reflow(this._element),u(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&u(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0),r=function(){e.setTransitioning(!1);u(e._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(c.HIDDEN)},this._element.style[t]="",n.supportsTransitionEnd()?void u(this._element).one(n.TRANSITION_END,r).emulateTransitionEnd(v):void r()},s.prototype.setTransitioning=function(n){this._isTransitioning=n},s.prototype.dispose=function(){u.removeData(this._element,e);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},s.prototype._getConfig=function(t){return t=u.extend({},a,t),t.toggle=Boolean(t.toggle),n.typeCheckConfig(o,t,b),t},s.prototype._getDimension=function(){var n=u(this._element).hasClass(l.WIDTH);return n?l.WIDTH:l.HEIGHT},s.prototype._getParent=function(){var t=this,n=u(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return u(n).find(i).each(function(n,i){t._addAriaAndCollapsedClass(s._getTargetFromElement(i),[i])}),n},s.prototype._addAriaAndCollapsedClass=function(n,t){if(n){var i=u(n).hasClass(f.SHOW);n.setAttribute("aria-expanded",i);t.length&&u(t).toggleClass(f.COLLAPSED,!i).attr("aria-expanded",i)}},s._getTargetFromElement=function(t){var i=n.getSelectorFromElement(t);return i?u(i)[0]:null},s._jQueryInterface=function(n){return this.each(function(){var i=u(this),t=i.data(e),f=u.extend({},a,i.data(),"object"===("undefined"==typeof n?"undefined":r(n))&&n);if(!t&&f.toggle&&/show|hide/.test(n)&&(f.toggle=!1),t||(t=new s(this,f),i.data(e,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(s,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return a}}]),s}();return u(document).on(c.CLICK_DATA_API,y.DATA_TOGGLE,function(n){n.preventDefault();var t=s._getTargetFromElement(this),i=u(t).data(e),r=i?"toggle":u(this).data();s._jQueryInterface.call(u(t),r)}),u.fn[o]=s._jQueryInterface,u.fn[o].Constructor=s,u.fn[o].noConflict=function(){return u.fn[o]=w,s._jQueryInterface},s}(jQuery),function(r){var h="dropdown",v="4.0.0-alpha.6",c="bs.dropdown",e="."+c,l=".data-api",y=r.fn[h],a=27,p=38,w=40,b=3,u={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK:"click"+e,CLICK_DATA_API:"click"+e+l,FOCUSIN_DATA_API:"focusin"+e+l,KEYDOWN_DATA_API:"keydown"+e+l},s={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},f={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},o=function(){function o(n){t(this,o);this._element=n;this._addEventListeners()}return o.prototype.toggle=function(){var n,h,t,i,e;return this.disabled||r(this).hasClass(s.DISABLED)?!1:(n=o._getParentFromElement(this),h=r(n).hasClass(s.SHOW),o._clearMenus(),h)?!1:("ontouchstart"in document.documentElement&&!r(n).closest(f.NAVBAR_NAV).length&&(t=document.createElement("div"),t.className=s.BACKDROP,r(t).insertBefore(this),r(t).on("click",o._clearMenus)),i={relatedTarget:this},e=r.Event(u.SHOW,i),r(n).trigger(e),!e.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),r(n).toggleClass(s.SHOW),r(n).trigger(r.Event(u.SHOWN,i)),!1))},o.prototype.dispose=function(){r.removeData(this._element,c);r(this._element).off(e);this._element=null},o.prototype._addEventListeners=function(){r(this._element).on(u.CLICK,this.toggle)},o._jQueryInterface=function(n){return this.each(function(){var t=r(this).data(c);if(t||(t=new o(this),r(this).data(c,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n].call(this)}})},o._clearMenus=function(n){var h,i,t,e,c,l;if(!n||n.which!==b)for(h=r(f.BACKDROP)[0],h&&h.parentNode.removeChild(h),i=r.makeArray(r(f.DATA_TOGGLE)),t=0;t<i.length;t++)e=o._getParentFromElement(i[t]),c={relatedTarget:i[t]},!r(e).hasClass(s.SHOW)||n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"focusin"===n.type)&&r.contains(e,n.target)||(l=r.Event(u.HIDE,c),r(e).trigger(l),l.isDefaultPrevented()||(i[t].setAttribute("aria-expanded","false"),r(e).removeClass(s.SHOW).trigger(r.Event(u.HIDDEN,c))))},o._getParentFromElement=function(t){var i=void 0,u=n.getSelectorFromElement(t);return u&&(i=r(u)[0]),i||t.parentNode},o._dataApiKeydownHandler=function(n){var u,e,h,i,t;if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!r(this).hasClass(s.DISABLED))){if(u=o._getParentFromElement(this),e=r(u).hasClass(s.SHOW),!e&&n.which!==a||e&&n.which===a)return n.which===a&&(h=r(u).find(f.DATA_TOGGLE)[0],r(h).trigger("focus")),void r(this).trigger("click");i=r(u).find(f.VISIBLE_ITEMS).get();i.length&&(t=i.indexOf(n.target),n.which===p&&t>0&&t--,n.which===w&&t<i.length-1&&t++,t<0&&(t=0),i[t].focus())}},i(o,null,[{key:"VERSION",get:function(){return v}}]),o}();return r(document).on(u.KEYDOWN_DATA_API,f.DATA_TOGGLE,o._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,f.ROLE_MENU,o._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,f.ROLE_LISTBOX,o._dataApiKeydownHandler).on(u.CLICK_DATA_API+" "+u.FOCUSIN_DATA_API,o._clearMenus).on(u.CLICK_DATA_API,f.DATA_TOGGLE,o.prototype.toggle).on(u.CLICK_DATA_API,f.FORM_CHILD,function(n){n.stopPropagation()}),r.fn[h]=o._jQueryInterface,r.fn[h].Constructor=o,r.fn[h].noConflict=function(){return r.fn[h]=y,o._jQueryInterface},o}(jQuery),function(u){var s="modal",p="4.0.0-alpha.6",h="bs.modal",o="."+h,w=u.fn[s],a=300,v=150,b=27,y={backdrop:!0,keyboard:!0,focus:!0,show:!0},k={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},f={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,FOCUSIN:"focusin"+o,RESIZE:"resize"+o,CLICK_DISMISS:"click.dismiss"+o,KEYDOWN_DISMISS:"keydown.dismiss"+o,MOUSEUP_DISMISS:"mouseup.dismiss"+o,MOUSEDOWN_DISMISS:"mousedown.dismiss"+o,CLICK_DATA_API:"click"+o+".data-api"},e={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},l={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"},c=function(){function c(n,i){t(this,c);this._config=this._getConfig(i);this._element=n;this._dialog=u(n).find(l.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}return c.prototype.toggle=function(n){return this._isShown?this.hide():this.show(n)},c.prototype.show=function(t){var i=this,r;if(this._isTransitioning)throw new Error("Modal is transitioning");n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)&&(this._isTransitioning=!0);r=u.Event(f.SHOW,{relatedTarget:t});u(this._element).trigger(r);this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),u(document.body).addClass(e.OPEN),this._setEscapeEvent(),this._setResizeEvent(),u(this._element).on(f.CLICK_DISMISS,l.DATA_DISMISS,function(n){return i.hide(n)}),u(this._dialog).on(f.MOUSEDOWN_DISMISS,function(){u(i._element).one(f.MOUSEUP_DISMISS,function(n){u(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(t)}))},c.prototype.hide=function(t){var o=this,i,r;if(t&&t.preventDefault(),this._isTransitioning)throw new Error("Modal is transitioning");i=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE);i&&(this._isTransitioning=!0);r=u.Event(f.HIDE);u(this._element).trigger(r);this._isShown&&!r.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),u(document).off(f.FOCUSIN),u(this._element).removeClass(e.SHOW),u(this._element).off(f.CLICK_DISMISS),u(this._dialog).off(f.MOUSEDOWN_DISMISS),i?u(this._element).one(n.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(a):this._hideModal())},c.prototype.dispose=function(){u.removeData(this._element,h);u(window,document,this._element,this._backdrop).off(o);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._originalBodyPadding=null;this._scrollbarWidth=null},c.prototype._getConfig=function(t){return t=u.extend({},y,t),n.typeCheckConfig(s,t,k),t},c.prototype._showElement=function(t){var i=this,o=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE),s,r;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;o&&n.reflow(this._element);u(this._element).addClass(e.SHOW);this._config.focus&&this._enforceFocus();s=u.Event(f.SHOWN,{relatedTarget:t});r=function(){i._config.focus&&i._element.focus();i._isTransitioning=!1;u(i._element).trigger(s)};o?u(this._dialog).one(n.TRANSITION_END,r).emulateTransitionEnd(a):r()},c.prototype._enforceFocus=function(){var n=this;u(document).off(f.FOCUSIN).on(f.FOCUSIN,function(t){document===t.target||n._element===t.target||u(n._element).has(t.target).length||n._element.focus()})},c.prototype._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?u(this._element).on(f.KEYDOWN_DISMISS,function(t){t.which===b&&n.hide()}):this._isShown||u(this._element).off(f.KEYDOWN_DISMISS)},c.prototype._setResizeEvent=function(){var n=this;this._isShown?u(window).on(f.RESIZE,function(t){return n._handleUpdate(t)}):u(window).off(f.RESIZE)},c.prototype._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden","true");this._isTransitioning=!1;this._showBackdrop(function(){u(document.body).removeClass(e.OPEN);n._resetAdjustments();n._resetScrollbar();u(n._element).trigger(f.HIDDEN)})},c.prototype._removeBackdrop=function(){this._backdrop&&(u(this._backdrop).remove(),this._backdrop=null)},c.prototype._showBackdrop=function(t){var i=this,r=u(this._element).hasClass(e.FADE)?e.FADE:"",o,s;if(this._isShown&&this._config.backdrop){if(o=n.supportsTransitionEnd()&&r,this._backdrop=document.createElement("div"),this._backdrop.className=e.BACKDROP,r&&u(this._backdrop).addClass(r),u(this._backdrop).appendTo(document.body),u(this._element).on(f.CLICK_DISMISS,function(n){return i._ignoreBackdropClick?void(i._ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide()))}),o&&n.reflow(this._backdrop),u(this._backdrop).addClass(e.SHOW),!t)return;if(!o)return void t();u(this._backdrop).one(n.TRANSITION_END,t).emulateTransitionEnd(v)}else!this._isShown&&this._backdrop?(u(this._backdrop).removeClass(e.SHOW),s=function(){i._removeBackdrop();t&&t()},n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)?u(this._backdrop).one(n.TRANSITION_END,s).emulateTransitionEnd(v):s()):t&&t()},c.prototype._handleUpdate=function(){this._adjustDialog()},c.prototype._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")},c.prototype._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},c.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},c.prototype._setScrollbar=function(){var n=parseInt(u(l.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"";this._isBodyOverflowing&&(document.body.style.paddingRight=n+this._scrollbarWidth+"px")},c.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},c.prototype._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=e.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.offsetWidth-n.clientWidth,document.body.removeChild(n),t},c._jQueryInterface=function(n,t){return this.each(function(){var i=u(this).data(h),f=u.extend({},c.Default,u(this).data(),"object"===("undefined"==typeof n?"undefined":r(n))&&n);if(i||(i=new c(this,f),u(this).data(h,i)),"string"==typeof n){if(void 0===i[n])throw new Error('No method named "'+n+'"');i[n](t)}else f.show&&i.show(t)})},i(c,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return y}}]),c}();return u(document).on(f.CLICK_DATA_API,l.DATA_TOGGLE,function(t){var r=this,i=void 0,e=n.getSelectorFromElement(this),o,s;e&&(i=u(e)[0]);o=u(i).data(h)?"toggle":u.extend({},u(i).data(),u(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();s=u(i).one(f.SHOW,function(n){n.isDefaultPrevented()||s.one(f.HIDDEN,function(){u(r).is(":visible")&&r.focus()})});c._jQueryInterface.call(u(i),o,this)}),u.fn[s]=c._jQueryInterface,u.fn[s].Constructor=c,u.fn[s].noConflict=function(){return u.fn[s]=w,c._jQueryInterface},c}(jQuery),function(u){var e="scrollspy",y="4.0.0-alpha.6",h="bs.scrollspy",c="."+h,p=u.fn[e],v={offset:10,method:"auto",target:""},w={offset:"number",method:"string",target:"(string|element)"},l={ACTIVATE:"activate"+c,SCROLL:"scroll"+c,LOAD_DATA_API:"load"+c+".data-api"},o={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},a={OFFSET:"offset",POSITION:"position"},s=function(){function s(n,i){var r=this;t(this,s);this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" "+f.NAV_LINKS+","+(this._config.target+" "+f.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;u(this._scrollElement).on(l.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}return s.prototype.refresh=function(){var t=this,f=this._scrollElement!==this._scrollElement.window?a.POSITION:a.OFFSET,i="auto"===this._config.method?f:this._config.method,e=i===a.POSITION?this._getScrollTop():0,r;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();r=u.makeArray(u(this._selector));r.map(function(t){var r=void 0,f=n.getSelectorFromElement(t);return f&&(r=u(f)[0]),r&&(r.offsetWidth||r.offsetHeight)?[u(r)[i]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){t._offsets.push(n[0]);t._targets.push(n[1])})},s.prototype.dispose=function(){u.removeData(this._element,h);u(this._scrollElement).off(c);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(t=u.extend({},v,t),"string"!=typeof t.target){var i=u(t.target).attr("id");i||(i=n.getUID(e),u(t.target).attr("id",i));t.target="#"+i}return n.typeCheckConfig(e,t,w),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.offsetHeight},s.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),f=this._config.offset+r-this._getOffsetHeight(),i,n,u;if(this._scrollHeight!==r&&this.refresh(),t>=f)return i=this._targets[this._targets.length-1],void(this._activeTarget!==i&&this._activate(i));if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)u=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(void 0===this._offsets[n+1]||t<this._offsets[n+1]),u&&this._activate(this._targets[n])},s.prototype._activate=function(n){var i,t;this._activeTarget=n;this._clear();i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+n+'"],'+(t+'[href="'+n+'"]')});t=u(i.join(","));t.hasClass(o.DROPDOWN_ITEM)?(t.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(o.ACTIVE),t.addClass(o.ACTIVE)):t.parents(f.LI).find("> "+f.NAV_LINKS).addClass(o.ACTIVE);u(this._scrollElement).trigger(l.ACTIVATE,{relatedTarget:n})},s.prototype._clear=function(){u(this._selector).filter(f.ACTIVE).removeClass(o.ACTIVE)},s._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(h),i="object"===("undefined"==typeof n?"undefined":r(n))&&n;if(t||(t=new s(this,i),u(this).data(h,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(s,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return v}}]),s}();return u(window).on(l.LOAD_DATA_API,function(){for(var i,n=u.makeArray(u(f.DATA_SPY)),t=n.length;t--;)i=u(n[t]),s._jQueryInterface.call(i,i.data())}),u.fn[e]=s._jQueryInterface,u.fn[e].Constructor=s,u.fn[e].noConflict=function(){return u.fn[e]=p,s._jQueryInterface},s}(jQuery),function(r){var e="tab",l="4.0.0-alpha.6",c="bs.tab",o="."+c,a=r.fn[e],v=150,s={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK_DATA_API:"click"+o+".data-api"},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},f={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},h=function(){function e(n){t(this,e);this._element=n}return e.prototype.show=function(){var l=this,o,h,c;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r(this._element).hasClass(u.ACTIVE)||r(this._element).hasClass(u.DISABLED))){var i=void 0,t=void 0,e=r(this._element).closest(f.LIST)[0],a=n.getSelectorFromElement(this._element);e&&(t=r.makeArray(r(e).find(f.ACTIVE)),t=t[t.length-1]);o=r.Event(s.HIDE,{relatedTarget:this._element});h=r.Event(s.SHOW,{relatedTarget:t});(t&&r(t).trigger(o),r(this._element).trigger(h),h.isDefaultPrevented()||o.isDefaultPrevented())||(a&&(i=r(a)[0]),this._activate(this._element,e),c=function(){var n=r.Event(s.HIDDEN,{relatedTarget:l._element}),i=r.Event(s.SHOWN,{relatedTarget:t});r(t).trigger(n);r(l._element).trigger(i)},i?this._activate(i,i.parentNode,c):c())}},e.prototype.dispose=function(){r.removeClass(this._element,c);this._element=null},e.prototype._activate=function(t,i,e){var c=this,o=r(i).find(f.ACTIVE_CHILD)[0],s=e&&n.supportsTransitionEnd()&&(o&&r(o).hasClass(u.FADE)||Boolean(r(i).find(f.FADE_CHILD)[0])),h=function(){return c._transitionComplete(t,o,s,e)};o&&s?r(o).one(n.TRANSITION_END,h).emulateTransitionEnd(v):h();o&&r(o).removeClass(u.SHOW)},e.prototype._transitionComplete=function(t,i,e,o){var s,h;i&&(r(i).removeClass(u.ACTIVE),s=r(i.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0],s&&r(s).removeClass(u.ACTIVE),i.setAttribute("aria-expanded",!1));(r(t).addClass(u.ACTIVE),t.setAttribute("aria-expanded",!0),e?(n.reflow(t),r(t).addClass(u.SHOW)):r(t).removeClass(u.FADE),t.parentNode&&r(t.parentNode).hasClass(u.DROPDOWN_MENU))&&(h=r(t).closest(f.DROPDOWN)[0],h&&r(h).find(f.DROPDOWN_TOGGLE).addClass(u.ACTIVE),t.setAttribute("aria-expanded",!0));o&&o()},e._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data(c);if(t||(t=new e(this),i.data(c,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(e,null,[{key:"VERSION",get:function(){return l}}]),e}();return r(document).on(s.CLICK_DATA_API,f.DATA_TOGGLE,function(n){n.preventDefault();h._jQueryInterface.call(r(this),"show")}),r.fn[e]=h._jQueryInterface,r.fn[e].Constructor=h,r.fn[e].noConflict=function(){return r.fn[e]=a,h._jQueryInterface},h}(jQuery),function(u){if("undefined"==typeof Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var h="tooltip",a="4.0.0-alpha.6",c="bs.tooltip",f="."+c,v=u.fn[h],y=150,p="bs-tether",w={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},b={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},k={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},s={SHOW:"show",OUT:"out"},d={HIDE:"hide"+f,HIDDEN:"hidden"+f,SHOW:"show"+f,SHOWN:"shown"+f,INSERTED:"inserted"+f,CLICK:"click"+f,FOCUSIN:"focusin"+f,FOCUSOUT:"focusout"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f},o={FADE:"fade",SHOW:"show"},g={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},nt={element:!1,enabled:!1},e={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function l(n,i){t(this,l);this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._isTransitioning=!1;this._tether=null;this.element=n;this.config=this._getConfig(i);this.tip=null;this._setListeners()}return l.prototype.enable=function(){this._isEnabled=!0},l.prototype.disable=function(){this._isEnabled=!1},l.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.prototype.toggle=function(n){if(n){var i=this.constructor.DATA_KEY,t=u(n.currentTarget).data(i);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));t._activeTrigger.click=!t._activeTrigger.click;t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(u(this.getTipElement()).hasClass(o.SHOW))return void this._leave(null,this);this._enter(null,this)}},l.prototype.dispose=function(){clearTimeout(this._timeout);this.cleanupTether();u.removeData(this.element,this.constructor.DATA_KEY);u(this.element).off(this.constructor.EVENT_KEY);u(this.element).closest(".modal").off("hide.bs.modal");this.tip&&u(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._tether=null;this.element=null;this.config=null;this.tip=null},l.prototype.show=function(){var i=this,r,h,t,f,e;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");if(r=u.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");if(u(this.element).trigger(r),h=u.contains(this.element.ownerDocument.documentElement,this.element),r.isDefaultPrevented()||!h)return;t=this.getTipElement();f=n.getUID(this.constructor.NAME);t.setAttribute("id",f);this.element.setAttribute("aria-describedby",f);this.setContent();this.config.animation&&u(t).addClass(o.FADE);var c="function"==typeof this.config.placement?this.config.placement.call(this,t,this.element):this.config.placement,a=this._getAttachment(c),v=this.config.container===!1?document.body:u(this.config.container);if(u(t).data(this.constructor.DATA_KEY,this).appendTo(v),u(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:a,element:t,target:this.element,classes:nt,classPrefix:p,offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),n.reflow(t),this._tether.position(),u(t).addClass(o.SHOW),e=function(){var n=i._hoverState;i._hoverState=null;i._isTransitioning=!1;u(i.element).trigger(i.constructor.Event.SHOWN);n===s.OUT&&i._leave(null,i)},n.supportsTransitionEnd()&&u(this.tip).hasClass(o.FADE))return this._isTransitioning=!0,void u(this.tip).one(n.TRANSITION_END,e).emulateTransitionEnd(l._TRANSITION_DURATION);e()}},l.prototype.hide=function(t){var i=this,r=this.getTipElement(),h=u.Event(this.constructor.Event.HIDE),f;if(this._isTransitioning)throw new Error("Tooltip is transitioning");f=function(){i._hoverState!==s.SHOW&&r.parentNode&&r.parentNode.removeChild(r);i.element.removeAttribute("aria-describedby");u(i.element).trigger(i.constructor.Event.HIDDEN);i._isTransitioning=!1;i.cleanupTether();t&&t()};u(this.element).trigger(h);h.isDefaultPrevented()||(u(r).removeClass(o.SHOW),this._activeTrigger[e.CLICK]=!1,this._activeTrigger[e.FOCUS]=!1,this._activeTrigger[e.HOVER]=!1,n.supportsTransitionEnd()&&u(this.tip).hasClass(o.FADE)?(this._isTransitioning=!0,u(r).one(n.TRANSITION_END,f).emulateTransitionEnd(y)):f(),this._hoverState="")},l.prototype.isWithContent=function(){return Boolean(this.getTitle())},l.prototype.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0]},l.prototype.setContent=function(){var n=u(this.getTipElement());this.setElementContent(n.find(g.TOOLTIP_INNER),this.getTitle());n.removeClass(o.FADE+" "+o.SHOW);this.cleanupTether()},l.prototype.setElementContent=function(n,t){var i=this.config.html;"object"===("undefined"==typeof t?"undefined":r(t))&&(t.nodeType||t.jquery)?i?u(t).parent().is(n)||n.empty().append(t):n.text(u(t).text()):n[i?"html":"text"](t)},l.prototype.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},l.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},l.prototype._getAttachment=function(n){return k[n.toUpperCase()]},l.prototype._setListeners=function(){var n=this,t=this.config.trigger.split(" ");t.forEach(function(t){if("click"===t)u(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==e.MANUAL){var i=t===e.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,r=t===e.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;u(n.element).on(i,n.config.selector,function(t){return n._enter(t)}).on(r,n.config.selector,function(t){return n._leave(t)})}u(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=u.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l.prototype._fixTitle=function(){var n=r(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",""))},l.prototype._enter=function(n,t){var i=this.constructor.DATA_KEY;return t=t||u(n.currentTarget).data(i),t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t)),n&&(t._activeTrigger["focusin"===n.type?e.FOCUS:e.HOVER]=!0),u(t.getTipElement()).hasClass(o.SHOW)||t._hoverState===s.SHOW?void(t._hoverState=s.SHOW):(clearTimeout(t._timeout),t._hoverState=s.SHOW,t.config.delay&&t.config.delay.show?void(t._timeout=setTimeout(function(){t._hoverState===s.SHOW&&t.show()},t.config.delay.show)):void t.show())},l.prototype._leave=function(n,t){var i=this.constructor.DATA_KEY;if(t=t||u(n.currentTarget).data(i),t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t)),n&&(t._activeTrigger["focusout"===n.type?e.FOCUS:e.HOVER]=!1),!t._isWithActiveTrigger())return clearTimeout(t._timeout),t._hoverState=s.OUT,t.config.delay&&t.config.delay.hide?void(t._timeout=setTimeout(function(){t._hoverState===s.OUT&&t.hide()},t.config.delay.hide)):void t.hide()},l.prototype._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},l.prototype._getConfig=function(t){return t=u.extend({},this.constructor.Default,u(this.element).data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),n.typeCheckConfig(h,t,this.constructor.DefaultType),t},l.prototype._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},l._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(c),i="object"===("undefined"==typeof n?"undefined":r(n))&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new l(this,i),u(this).data(c,t)),"string"==typeof n)){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(l,null,[{key:"VERSION",get:function(){return a}},{key:"Default",get:function(){return w}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return f}},{key:"DefaultType",get:function(){return b}}]),l}();return u.fn[h]=l._jQueryInterface,u.fn[h].Constructor=l,u.fn[h].noConflict=function(){return u.fn[h]=v,l._jQueryInterface},l}(jQuery));(function(n){var s="popover",v="4.0.0-alpha.6",h="bs.popover",o="."+h,y=n.fn[s],p=n.extend({},u.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'}),w=n.extend({},u.DefaultType,{content:"(string|element|function)"}),l={FADE:"fade",SHOW:"show"},a={TITLE:".popover-title",CONTENT:".popover-content"},b={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},c=function(u){function c(){return t(this,c),f(this,u.apply(this,arguments))}return e(c,u),c.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},c.prototype.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0]},c.prototype.setContent=function(){var t=n(this.getTipElement());this.setElementContent(t.find(a.TITLE),this.getTitle());this.setElementContent(t.find(a.CONTENT),this._getContent());t.removeClass(l.FADE+" "+l.SHOW);this.cleanupTether()},c.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},c._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(h),u="object"===("undefined"==typeof t?"undefined":r(t))?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new c(this,u),n(this).data(h,i)),"string"==typeof t)){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},i(c,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return h}},{key:"Event",get:function(){return b}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return w}}]),c}(u);return n.fn[s]=c._jQueryInterface,n.fn[s].Constructor=c,n.fn[s].noConflict=function(){return n.fn[s]=y,c._jQueryInterface},c})(jQuery)}()