if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(jQuery),function(){function a(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function b(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e=function(){function a(a,b){for(var c=0;cthis._items.length-1||b<0)){if(this._isSliding)return void a(this._element).one(m.SLID,function(){return c.to(b)});if(d===b)return this.pause(),void this.cycle();var e=b>d?l.NEXT:l.PREVIOUS;this._slide(e,this._items[b])}},i.prototype.dispose=function(){a(this._element).off(h),a.removeData(this._element,g),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},i.prototype._getConfig=function(c){return c=a.extend({},j,c),f.typeCheckConfig(b,c,k),c},i.prototype._addEventListeners=function(){var b=this;this._config.keyboard&&a(this._element).on(m.KEYDOWN,function(a){return b._keydown(a)}),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||a(this._element).on(m.MOUSEENTER,function(a){return b.pause(a)}).on(m.MOUSELEAVE,function(a){return b.cycle(a)})},i.prototype._keydown=function(a){if(!/input|textarea/i.test(a.target.tagName))switch(a.which){case 37:a.preventDefault(),this.prev();break;case 39:a.preventDefault(),this.next();break;default:return}},i.prototype._getItemIndex=function(b){return this._items=a.makeArray(a(b).parent().find(o.ITEM)),this._items.indexOf(b)},i.prototype._getItemByDirection=function(a,b){var c=a===l.NEXT,d=a===l.PREVIOUS,e=this._getItemIndex(b),f=this._items.length-1;if((d&&0===e||c&&e===f)&&!this._config.wrap)return b;var g=a===l.PREVIOUS?-1:1,h=(e+g)%this._items.length;return-1===h?this._items[this._items.length-1]:this._items[h]},i.prototype._triggerSlideEvent=function(b,c){var d=a.Event(m.SLIDE,{relatedTarget:b,direction:c});return a(this._element).trigger(d),d},i.prototype._setActiveIndicatorElement=function(b){if(this._indicatorsElement){a(this._indicatorsElement).find(o.ACTIVE).removeClass(n.ACTIVE);var c=this._indicatorsElement.children[this._getItemIndex(b)];c&&a(c).addClass(n.ACTIVE)}},i.prototype._slide=function(b,c){var d=this,e=a(this._element).find(o.ACTIVE_ITEM)[0],g=c||e&&this._getItemByDirection(b,e),h=Boolean(this._interval),i=void 0,j=void 0,k=void 0;if(b===l.NEXT?(i=n.LEFT,j=n.NEXT,k=l.LEFT):(i=n.RIGHT,j=n.PREV,k=l.RIGHT),g&&a(g).hasClass(n.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(g,k).isDefaultPrevented()&&e&&g){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(g);var p=a.Event(m.SLID,{relatedTarget:g,direction:k});f.supportsTransitionEnd()&&a(this._element).hasClass(n.SLIDE)?(a(g).addClass(j),f.reflow(g),a(e).addClass(i),a(g).addClass(i),a(e).one(f.TRANSITION_END,function(){a(g).removeClass(i+" "+j).addClass(n.ACTIVE),a(e).removeClass(n.ACTIVE+" "+j+" "+i),d._isSliding=!1,setTimeout(function(){return a(d._element).trigger(p)},0)}).emulateTransitionEnd(600)):(a(e).removeClass(n.ACTIVE),a(g).addClass(n.ACTIVE),this._isSliding=!1,a(this._element).trigger(p)),h&&this.cycle()}},i._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(g),e=a.extend({},j,a(this).data());"object"===(void 0===b?"undefined":d(b))&&a.extend(e,b);var f="string"==typeof b?b:e.slide;if(c||(c=new i(this,e),a(this).data(g,c)),"number"==typeof b)c.to(b);else if("string"==typeof f){if(void 0===c[f])throw new Error('No method named "'+f+'"');c[f]()}else e.interval&&(c.pause(),c.cycle())})},i._dataApiClickHandler=function(b){var c=f.getSelectorFromElement(this);if(c){var d=a(c)[0];if(d&&a(d).hasClass(n.CAROUSEL)){var e=a.extend({},a(d).data(),a(this).data()),h=this.getAttribute("data-slide-to");h&&(e.interval=!1),i._jQueryInterface.call(a(d),e),h&&a(d).data(g).to(h),b.preventDefault()}}},e(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return j}}]),i}();a(document).on(m.CLICK_DATA_API,o.DATA_SLIDE,p._dataApiClickHandler),a(window).on(m.LOAD_DATA_API,function(){a(o.DATA_RIDE).each(function(){var b=a(this);p._jQueryInterface.call(b,b.data())})}),a.fn[b]=p._jQueryInterface,a.fn[b].Constructor=p,a.fn[b].noConflict=function(){return a.fn[b]=i,p._jQueryInterface}}(jQuery),function(a){var b="collapse",g="bs.collapse",h=a.fn[b],i={toggle:!0,parent:""},j={toggle:"boolean",parent:"string"},k={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},l={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},m={WIDTH:"width",HEIGHT:"height"},n={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},o=function(){function h(b,d){c(this,h),this._isTransitioning=!1,this._element=b,this._config=this._getConfig(d),this._triggerArray=a.makeArray(a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return h.prototype.toggle=function(){a(this._element).hasClass(l.SHOW)?this.hide():this.show()},h.prototype.show=function(){var b=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!a(this._element).hasClass(l.SHOW)){var c=void 0,d=void 0;if(this._parent&&(c=a.makeArray(a(this._parent).find(n.ACTIVES)),c.length||(c=null)),!(c&&(d=a(c).data(g))&&d._isTransitioning)){var e=a.Event(k.SHOW);if(a(this._element).trigger(e),!e.isDefaultPrevented()){c&&(h._jQueryInterface.call(a(c),"hide"),d||a(c).data(g,null));var i=this._getDimension();a(this._element).removeClass(l.COLLAPSE).addClass(l.COLLAPSING),this._element.style[i]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&a(this._triggerArray).removeClass(l.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var j=function(){a(b._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).addClass(l.SHOW),b._element.style[i]="",b.setTransitioning(!1),a(b._element).trigger(k.SHOWN)};if(!f.supportsTransitionEnd())return void j();var m=i[0].toUpperCase()+i.slice(1),o="scroll"+m;a(this._element).one(f.TRANSITION_END,j).emulateTransitionEnd(600),this._element.style[i]=this._element[o]+"px"}}}},h.prototype.hide=function(){var b=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(a(this._element).hasClass(l.SHOW)){var c=a.Event(k.HIDE);if(a(this._element).trigger(c),!c.isDefaultPrevented()){var d=this._getDimension(),e=d===m.WIDTH?"offsetWidth":"offsetHeight";this._element.style[d]=this._element[e]+"px",f.reflow(this._element),a(this._element).addClass(l.COLLAPSING).removeClass(l.COLLAPSE).removeClass(l.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&a(this._triggerArray).addClass(l.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var g=function(){b.setTransitioning(!1),a(b._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).trigger(k.HIDDEN)};if(this._element.style[d]="",!f.supportsTransitionEnd())return void g();a(this._element).one(f.TRANSITION_END,g).emulateTransitionEnd(600)}}},h.prototype.setTransitioning=function(a){this._isTransitioning=a},h.prototype.dispose=function(){a.removeData(this._element,g),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},h.prototype._getConfig=function(c){return c=a.extend({},i,c),c.toggle=Boolean(c.toggle),f.typeCheckConfig(b,c,j),c},h.prototype._getDimension=function(){return a(this._element).hasClass(m.WIDTH)?m.WIDTH:m.HEIGHT},h.prototype._getParent=function(){var b=this,c=a(this._config.parent)[0],d='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return a(c).find(d).each(function(a,c){b._addAriaAndCollapsedClass(h._getTargetFromElement(c),[c])}),c},h.prototype._addAriaAndCollapsedClass=function(b,c){if(b){var d=a(b).hasClass(l.SHOW);b.setAttribute("aria-expanded",d),c.length&&a(c).toggleClass(l.COLLAPSED,!d).attr("aria-expanded",d)}},h._getTargetFromElement=function(b){var c=f.getSelectorFromElement(b);return c?a(c)[0]:null},h._jQueryInterface=function(b){return this.each(function(){var c=a(this),e=c.data(g),f=a.extend({},i,c.data(),"object"===(void 0===b?"undefined":d(b))&&b);if(!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||(e=new h(this,f),c.data(g,e)),"string"==typeof b){if(void 0===e[b])throw new Error('No method named "'+b+'"');e[b]()}})},e(h,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return i}}]),h}();a(document).on(k.CLICK_DATA_API,n.DATA_TOGGLE,function(b){b.preventDefault();var c=o._getTargetFromElement(this),d=a(c).data(g),e=d?"toggle":a(this).data();o._jQueryInterface.call(a(c),e)}),a.fn[b]=o._jQueryInterface,a.fn[b].Constructor=o,a.fn[b].noConflict=function(){return a.fn[b]=h,o._jQueryInterface}}(jQuery),function(a){var b="dropdown",d=".bs.dropdown",g=a.fn[b],h={HIDE:"hide"+d,HIDDEN:"hidden"+d,SHOW:"show"+d,SHOWN:"shown"+d,CLICK:"click"+d,CLICK_DATA_API:"click.bs.dropdown.data-api",FOCUSIN_DATA_API:"focusin.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api"},i={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},j={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'},k=function(){function b(a){c(this,b),this._element=a,this._addEventListeners()}return b.prototype.toggle=function(){if(this.disabled||a(this).hasClass(i.DISABLED))return!1;var c=b._getParentFromElement(this),d=a(c).hasClass(i.SHOW);if(b._clearMenus(),d)return!1;if("ontouchstart"in document.documentElement&&!a(c).closest(j.NAVBAR_NAV).length){var e=document.createElement("div");e.className=i.BACKDROP,a(e).insertBefore(this),a(e).on("click",b._clearMenus)}var f={relatedTarget:this},g=a.Event(h.SHOW,f);return a(c).trigger(g),!g.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),a(c).toggleClass(i.SHOW),a(c).trigger(a.Event(h.SHOWN,f)),!1)},b.prototype.dispose=function(){a.removeData(this._element,"bs.dropdown"),a(this._element).off(d),this._element=null},b.prototype._addEventListeners=function(){a(this._element).on(h.CLICK,this.toggle)},b._jQueryInterface=function(c){return this.each(function(){var d=a(this).data("bs.dropdown");if(d||(d=new b(this),a(this).data("bs.dropdown",d)),"string"==typeof c){if(void 0===d[c])throw new Error('No method named "'+c+'"');d[c].call(this)}})},b._clearMenus=function(c){if(!c||3!==c.which){var d=a(j.BACKDROP)[0];d&&d.parentNode.removeChild(d);for(var e=a.makeArray(a(j.DATA_TOGGLE)),f=0;f0&&h--,40===c.which&&hdocument.documentElement.clientHeight;!this._isBodyOverflowing&&a&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!a&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},h.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},h.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth=c){var d=this._targets[this._targets.length-1];return void(this._activeTarget!==d&&this._activate(d))}if(this._activeTarget&&a0)return this._activeTarget=null,void this._clear();for(var e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&a>=this._offsets[e]&&(void 0===this._offsets[e+1]||a "+l.NAV_LINKS).addClass(k.ACTIVE),a(this._scrollElement).trigger(j.ACTIVATE,{relatedTarget:b})},g.prototype._clear=function(){a(this._selector).filter(l.ACTIVE).removeClass(k.ACTIVE)}, g._jQueryInterface=function(b){return this.each(function(){var c=a(this).data("bs.scrollspy"),e="object"===(void 0===b?"undefined":d(b))&&b;if(c||(c=new g(this,e),a(this).data("bs.scrollspy",c)),"string"==typeof b){if(void 0===c[b])throw new Error('No method named "'+b+'"');c[b]()}})},e(g,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return h}}]),g}();a(window).on(j.LOAD_DATA_API,function(){for(var b=a.makeArray(a(l.DATA_SPY)),c=b.length;c--;){var d=a(b[c]);n._jQueryInterface.call(d,d.data())}}),a.fn[b]=n._jQueryInterface,a.fn[b].Constructor=n,a.fn[b].noConflict=function(){return a.fn[b]=g,n._jQueryInterface}}(jQuery),function(a){var b=a.fn.tab,d={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},g={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},h={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"},i=function(){function b(a){c(this,b),this._element=a}return b.prototype.show=function(){var b=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&a(this._element).hasClass(g.ACTIVE)||a(this._element).hasClass(g.DISABLED))){var c=void 0,e=void 0,i=a(this._element).closest(h.LIST)[0],j=f.getSelectorFromElement(this._element);i&&(e=a.makeArray(a(i).find(h.ACTIVE)),e=e[e.length-1]);var k=a.Event(d.HIDE,{relatedTarget:this._element}),l=a.Event(d.SHOW,{relatedTarget:e});if(e&&a(e).trigger(k),a(this._element).trigger(l),!l.isDefaultPrevented()&&!k.isDefaultPrevented()){j&&(c=a(j)[0]),this._activate(this._element,i);var m=function(){var c=a.Event(d.HIDDEN,{relatedTarget:b._element}),f=a.Event(d.SHOWN,{relatedTarget:e});a(e).trigger(c),a(b._element).trigger(f)};c?this._activate(c,c.parentNode,m):m()}}},b.prototype.dispose=function(){a.removeClass(this._element,"bs.tab"),this._element=null},b.prototype._activate=function(b,c,d){var e=this,i=a(c).find(h.ACTIVE_CHILD)[0],j=d&&f.supportsTransitionEnd()&&(i&&a(i).hasClass(g.FADE)||Boolean(a(c).find(h.FADE_CHILD)[0])),k=function(){return e._transitionComplete(b,i,j,d)};i&&j?a(i).one(f.TRANSITION_END,k).emulateTransitionEnd(150):k(),i&&a(i).removeClass(g.SHOW)},b.prototype._transitionComplete=function(b,c,d,e){if(c){a(c).removeClass(g.ACTIVE);var i=a(c.parentNode).find(h.DROPDOWN_ACTIVE_CHILD)[0];i&&a(i).removeClass(g.ACTIVE),c.setAttribute("aria-expanded",!1)}if(a(b).addClass(g.ACTIVE),b.setAttribute("aria-expanded",!0),d?(f.reflow(b),a(b).addClass(g.SHOW)):a(b).removeClass(g.FADE),b.parentNode&&a(b.parentNode).hasClass(g.DROPDOWN_MENU)){var j=a(b).closest(h.DROPDOWN)[0];j&&a(j).find(h.DROPDOWN_TOGGLE).addClass(g.ACTIVE),b.setAttribute("aria-expanded",!0)}e&&e()},b._jQueryInterface=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");if(e||(e=new b(this),d.data("bs.tab",e)),"string"==typeof c){if(void 0===e[c])throw new Error('No method named "'+c+'"');e[c]()}})},e(b,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),b}();a(document).on(d.CLICK_DATA_API,h.DATA_TOGGLE,function(b){b.preventDefault(),i._jQueryInterface.call(a(this),"show")}),a.fn.tab=i._jQueryInterface,a.fn.tab.Constructor=i,a.fn.tab.noConflict=function(){return a.fn.tab=b,i._jQueryInterface}}(jQuery),function(a){if("undefined"==typeof Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var b="tooltip",g=".bs.tooltip",h=a.fn[b],i={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},j={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"},l={SHOW:"show",OUT:"out"},m={HIDE:"hide"+g,HIDDEN:"hidden"+g,SHOW:"show"+g,SHOWN:"shown"+g,INSERTED:"inserted"+g,CLICK:"click"+g,FOCUSIN:"focusin"+g,FOCUSOUT:"focusout"+g,MOUSEENTER:"mouseenter"+g,MOUSELEAVE:"mouseleave"+g},n={FADE:"fade",SHOW:"show"},o={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},p={element:!1,enabled:!1},q={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},r=function(){function h(a,b){c(this,h),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._isTransitioning=!1,this._tether=null,this.element=a,this.config=this._getConfig(b),this.tip=null,this._setListeners()}return h.prototype.enable=function(){this._isEnabled=!0},h.prototype.disable=function(){this._isEnabled=!1},h.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},h.prototype.toggle=function(b){if(b){var c=this.constructor.DATA_KEY,d=a(b.currentTarget).data(c);d||(d=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(c,d)),d._activeTrigger.click=!d._activeTrigger.click,d._isWithActiveTrigger()?d._enter(null,d):d._leave(null,d)}else{if(a(this.getTipElement()).hasClass(n.SHOW))return void this._leave(null,this);this._enter(null,this)}},h.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),a.removeData(this.element,this.constructor.DATA_KEY),a(this.element).off(this.constructor.EVENT_KEY),a(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&a(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},h.prototype.show=function(){var b=this;if("none"===a(this.element).css("display"))throw new Error("Please use show on visible elements");var c=a.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");a(this.element).trigger(c);var d=a.contains(this.element.ownerDocument.documentElement,this.element);if(c.isDefaultPrevented()||!d)return;var e=this.getTipElement(),g=f.getUID(this.constructor.NAME);e.setAttribute("id",g),this.element.setAttribute("aria-describedby",g),this.setContent(),this.config.animation&&a(e).addClass(n.FADE);var i="function"==typeof this.config.placement?this.config.placement.call(this,e,this.element):this.config.placement,j=this._getAttachment(i),k=!1===this.config.container?document.body:a(this.config.container);a(e).data(this.constructor.DATA_KEY,this).appendTo(k),a(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:j,element:e,target:this.element,classes:p,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),f.reflow(e),this._tether.position(),a(e).addClass(n.SHOW);var m=function(){var c=b._hoverState;b._hoverState=null,b._isTransitioning=!1,a(b.element).trigger(b.constructor.Event.SHOWN),c===l.OUT&&b._leave(null,b)};if(f.supportsTransitionEnd()&&a(this.tip).hasClass(n.FADE))return this._isTransitioning=!0,void a(this.tip).one(f.TRANSITION_END,m).emulateTransitionEnd(h._TRANSITION_DURATION);m()}},h.prototype.hide=function(b){var c=this,d=this.getTipElement(),e=a.Event(this.constructor.Event.HIDE);if(this._isTransitioning)throw new Error("Tooltip is transitioning");var g=function(){c._hoverState!==l.SHOW&&d.parentNode&&d.parentNode.removeChild(d),c.element.removeAttribute("aria-describedby"),a(c.element).trigger(c.constructor.Event.HIDDEN),c._isTransitioning=!1,c.cleanupTether(),b&&b()};a(this.element).trigger(e),e.isDefaultPrevented()||(a(d).removeClass(n.SHOW),this._activeTrigger[q.CLICK]=!1,this._activeTrigger[q.FOCUS]=!1,this._activeTrigger[q.HOVER]=!1,f.supportsTransitionEnd()&&a(this.tip).hasClass(n.FADE)?(this._isTransitioning=!0,a(d).one(f.TRANSITION_END,g).emulateTransitionEnd(150)):g(),this._hoverState="")},h.prototype.isWithContent=function(){return Boolean(this.getTitle())},h.prototype.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0]},h.prototype.setContent=function(){var b=a(this.getTipElement());this.setElementContent(b.find(o.TOOLTIP_INNER),this.getTitle()),b.removeClass(n.FADE+" "+n.SHOW),this.cleanupTether()},h.prototype.setElementContent=function(b,c){var e=this.config.html;"object"===(void 0===c?"undefined":d(c))&&(c.nodeType||c.jquery)?e?a(c).parent().is(b)||b.empty().append(c):b.text(a(c).text()):b[e?"html":"text"](c)},h.prototype.getTitle=function(){var a=this.element.getAttribute("data-original-title");return a||(a="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),a},h.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},h.prototype._getAttachment=function(a){return k[a.toUpperCase()]},h.prototype._setListeners=function(){var b=this;this.config.trigger.split(" ").forEach(function(c){if("click"===c)a(b.element).on(b.constructor.Event.CLICK,b.config.selector,function(a){return b.toggle(a)});else if(c!==q.MANUAL){var d=c===q.HOVER?b.constructor.Event.MOUSEENTER:b.constructor.Event.FOCUSIN,e=c===q.HOVER?b.constructor.Event.MOUSELEAVE:b.constructor.Event.FOCUSOUT;a(b.element).on(d,b.config.selector,function(a){return b._enter(a)}).on(e,b.config.selector,function(a){return b._leave(a)})}a(b.element).closest(".modal").on("hide.bs.modal",function(){return b.hide()})}),this.config.selector?this.config=a.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},h.prototype._fixTitle=function(){var a=d(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==a)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},h.prototype._enter=function(b,c){var d=this.constructor.DATA_KEY;return c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusin"===b.type?q.FOCUS:q.HOVER]=!0),a(c.getTipElement()).hasClass(n.SHOW)||c._hoverState===l.SHOW?void(c._hoverState=l.SHOW):(clearTimeout(c._timeout),c._hoverState=l.SHOW,c.config.delay&&c.config.delay.show?void(c._timeout=setTimeout(function(){c._hoverState===l.SHOW&&c.show()},c.config.delay.show)):void c.show())},h.prototype._leave=function(b,c){var d=this.constructor.DATA_KEY;if(c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusout"===b.type?q.FOCUS:q.HOVER]=!1),!c._isWithActiveTrigger()){if(clearTimeout(c._timeout),c._hoverState=l.OUT,!c.config.delay||!c.config.delay.hide)return void c.hide();c._timeout=setTimeout(function(){c._hoverState===l.OUT&&c.hide()},c.config.delay.hide)}},h.prototype._isWithActiveTrigger=function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1},h.prototype._getConfig=function(c){return c=a.extend({},this.constructor.Default,a(this.element).data(),c),c.delay&&"number"==typeof c.delay&&(c.delay={show:c.delay,hide:c.delay}),f.typeCheckConfig(b,c,this.constructor.DefaultType),c},h.prototype._getDelegateConfig=function(){var a={};if(this.config)for(var b in this.config)this.constructor.Default[b]!==this.config[b]&&(a[b]=this.config[b]);return a},h._jQueryInterface=function(b){return this.each(function(){var c=a(this).data("bs.tooltip"),e="object"===(void 0===b?"undefined":d(b))&&b;if((c||!/dispose|hide/.test(b))&&(c||(c=new h(this,e),a(this).data("bs.tooltip",c)),"string"==typeof b)){if(void 0===c[b])throw new Error('No method named "'+b+'"');c[b]()}})},e(h,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return i}},{key:"NAME",get:function(){return b}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return g}},{key:"DefaultType",get:function(){return j}}]),h}();return a.fn[b]=r._jQueryInterface,a.fn[b].Constructor=r,a.fn[b].noConflict=function(){return a.fn[b]=h,r._jQueryInterface},r}(jQuery));!function(f){var h="popover",i=".bs.popover",j=f.fn[h],k=f.extend({},g.Default,{placement:"right",trigger:"click",content:"",template:''}),l=f.extend({},g.DefaultType,{content:"(string|element|function)"}),m={FADE:"fade",SHOW:"show"},n={TITLE:".popover-title",CONTENT:".popover-content"},o={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},p=function(g){function j(){return c(this,j),a(this,g.apply(this,arguments))}return b(j,g),j.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},j.prototype.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0]},j.prototype.setContent=function(){var a=f(this.getTipElement());this.setElementContent(a.find(n.TITLE),this.getTitle()),this.setElementContent(a.find(n.CONTENT),this._getContent()),a.removeClass(m.FADE+" "+m.SHOW),this.cleanupTether()},j.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},j._jQueryInterface=function(a){return this.each(function(){var b=f(this).data("bs.popover"),c="object"===(void 0===a?"undefined":d(a))?a:null;if((b||!/destroy|hide/.test(a))&&(b||(b=new j(this,c),f(this).data("bs.popover",b)),"string"==typeof a)){if(void 0===b[a])throw new Error('No method named "'+a+'"');b[a]()}})},e(j,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return k}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return o}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return l}}]),j}(g);f.fn[h]=p._jQueryInterface,f.fn[h].Constructor=p,f.fn[h].noConflict=function(){return f.fn[h]=j,p._jQueryInterface}}(jQuery)}();