function _possibleConstructorReturn(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 _inherits(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 _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var _typeof="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},_createClass=function(){function a(a,b){for(var c=0;c0?c:null}catch(a){return null}},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(b){a(b).trigger(g.end)},supportsTransitionEnd:function(){return Boolean(g)},typeCheckConfig:function(a,d,e){for(var f in e)if(e.hasOwnProperty(f)){var g=e[f],h=d[f],i=h&&c(h)?"element":b(h);if(!new RegExp(g).test(i))throw new Error(a.toUpperCase()+': Option "'+f+'" provided type "'+i+'" but expected type "'+g+'".')}}};return function(){g=e(),a.fn.emulateTransitionEnd=f,i.supportsTransitionEnd()&&(a.event.special[i.TRANSITION_END]=d())}(),i}(jQuery),Alert=function(a){var b="alert",c=a.fn[b],d={DISMISS:'[data-dismiss="alert"]'},e={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},f={ALERT:"alert",FADE:"fade",SHOW:"show"},g=function(){function b(a){_classCallCheck(this,b),this._element=a}return b.prototype.close=function(a){a=a||this._element;var b=this._getRootElement(a);this._triggerCloseEvent(b).isDefaultPrevented()||this._removeElement(b)},b.prototype.dispose=function(){a.removeData(this._element,"bs.alert"),this._element=null},b.prototype._getRootElement=function(b){var c=Util.getSelectorFromElement(b),d=!1;return c&&(d=a(c)[0]),d||(d=a(b).closest("."+f.ALERT)[0]),d},b.prototype._triggerCloseEvent=function(b){var c=a.Event(e.CLOSE);return a(b).trigger(c),c},b.prototype._removeElement=function(b){var c=this;if(a(b).removeClass(f.SHOW),!Util.supportsTransitionEnd()||!a(b).hasClass(f.FADE))return void this._destroyElement(b);a(b).one(Util.TRANSITION_END,function(a){return c._destroyElement(b,a)}).emulateTransitionEnd(150)},b.prototype._destroyElement=function(b){a(b).detach().trigger(e.CLOSED).remove()},b._jQueryInterface=function(c){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||(e=new b(this),d.data("bs.alert",e)),"close"===c&&e[c](this)})},b._handleDismiss=function(a){return function(b){b&&b.preventDefault(),a.close(this)}},_createClass(b,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),b}();return a(document).on(e.CLICK_DATA_API,d.DISMISS,g._handleDismiss(new g)),a.fn[b]=g._jQueryInterface,a.fn[b].Constructor=g,a.fn[b].noConflict=function(){return a.fn[b]=c,g._jQueryInterface},g}(jQuery),Button=function(a){var b="button",c=a.fn[b],d={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},e={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},f={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},g=function(){function b(a){_classCallCheck(this,b),this._element=a}return b.prototype.toggle=function(){var b=!0,c=!0,f=a(this._element).closest(e.DATA_TOGGLE)[0];if(f){var g=a(this._element).find(e.INPUT)[0];if(g){if("radio"===g.type)if(g.checked&&a(this._element).hasClass(d.ACTIVE))b=!1;else{var h=a(f).find(e.ACTIVE)[0];h&&a(h).removeClass(d.ACTIVE)}if(b){if(g.hasAttribute("disabled")||f.hasAttribute("disabled")||g.classList.contains("disabled")||f.classList.contains("disabled"))return;g.checked=!a(this._element).hasClass(d.ACTIVE),a(g).trigger("change")}g.focus(),c=!1}}c&&this._element.setAttribute("aria-pressed",!a(this._element).hasClass(d.ACTIVE)),b&&a(this._element).toggleClass(d.ACTIVE)},b.prototype.dispose=function(){a.removeData(this._element,"bs.button"),this._element=null},b._jQueryInterface=function(c){return this.each(function(){var d=a(this).data("bs.button");d||(d=new b(this),a(this).data("bs.button",d)),"toggle"===c&&d[c]()})},_createClass(b,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),b}();return a(document).on(f.CLICK_DATA_API,e.DATA_TOGGLE_CARROT,function(b){b.preventDefault();var c=b.target;a(c).hasClass(d.BUTTON)||(c=a(c).closest(e.BUTTON)),g._jQueryInterface.call(a(c),"toggle")}).on(f.FOCUS_BLUR_DATA_API,e.DATA_TOGGLE_CARROT,function(b){var c=a(b.target).closest(e.BUTTON)[0];a(c).toggleClass(d.FOCUS,/^focus(in)?$/.test(b.type))}),a.fn[b]=g._jQueryInterface,a.fn[b].Constructor=g,a.fn[b].noConflict=function(){return a.fn[b]=c,g._jQueryInterface},g}(jQuery),Carousel=function(a){var b="carousel",c="bs.carousel",d="."+c,e=a.fn[b],f={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},g={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},h={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},i={SLIDE:"slide"+d,SLID:"slid"+d,KEYDOWN:"keydown"+d,MOUSEENTER:"mouseenter"+d,MOUSELEAVE:"mouseleave"+d,TOUCHEND:"touchend"+d,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},j={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"},k={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 e(b,c){_classCallCheck(this,e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(c),this._element=a(b)[0],this._indicatorsElement=a(this._element).find(k.INDICATORS)[0],this._addEventListeners()}return e.prototype.next=function(){this._isSliding||this._slide(h.NEXT)},e.prototype.nextWhenVisible=function(){document.hidden||this.next()},e.prototype.prev=function(){this._isSliding||this._slide(h.PREV)},e.prototype.pause=function(b){b||(this._isPaused=!0),a(this._element).find(k.NEXT_PREV)[0]&&Util.supportsTransitionEnd()&&(Util.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.prototype.cycle=function(a){a||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.prototype.to=function(b){var c=this;this._activeElement=a(this._element).find(k.ACTIVE_ITEM)[0];var d=this._getItemIndex(this._activeElement);if(!(b>this._items.length-1||b<0)){if(this._isSliding)return void a(this._element).one(i.SLID,function(){return c.to(b)});if(d===b)return this.pause(),void this.cycle();var e=b>d?h.NEXT:h.PREV;this._slide(e,this._items[b])}},e.prototype.dispose=function(){a(this._element).off(d),a.removeData(this._element,c),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e.prototype._getConfig=function(c){return c=a.extend({},f,c),Util.typeCheckConfig(b,c,g),c},e.prototype._addEventListeners=function(){var b=this;this._config.keyboard&&a(this._element).on(i.KEYDOWN,function(a){return b._keydown(a)}),"hover"===this._config.pause&&(a(this._element).on(i.MOUSEENTER,function(a){return b.pause(a)}).on(i.MOUSELEAVE,function(a){return b.cycle(a)}),"ontouchstart"in document.documentElement&&a(this._element).on(i.TOUCHEND,function(){b.pause(),b.touchTimeout&&clearTimeout(b.touchTimeout),b.touchTimeout=setTimeout(function(a){return b.cycle(a)},500+b._config.interval)}))},e.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}},e.prototype._getItemIndex=function(b){return this._items=a.makeArray(a(b).parent().find(k.ITEM)),this._items.indexOf(b)},e.prototype._getItemByDirection=function(a,b){var c=a===h.NEXT,d=a===h.PREV,e=this._getItemIndex(b),f=this._items.length-1;if((d&&0===e||c&&e===f)&&!this._config.wrap)return b;var g=a===h.PREV?-1:1,i=(e+g)%this._items.length;return-1===i?this._items[this._items.length-1]:this._items[i]},e.prototype._triggerSlideEvent=function(b,c){var d=this._getItemIndex(b),e=this._getItemIndex(a(this._element).find(k.ACTIVE_ITEM)[0]),f=a.Event(i.SLIDE,{relatedTarget:b,direction:c,from:e,to:d});return a(this._element).trigger(f),f},e.prototype._setActiveIndicatorElement=function(b){if(this._indicatorsElement){a(this._indicatorsElement).find(k.ACTIVE).removeClass(j.ACTIVE);var c=this._indicatorsElement.children[this._getItemIndex(b)];c&&a(c).addClass(j.ACTIVE)}},e.prototype._slide=function(b,c){var d=this,e=a(this._element).find(k.ACTIVE_ITEM)[0],f=this._getItemIndex(e),g=c||e&&this._getItemByDirection(b,e),l=this._getItemIndex(g),m=Boolean(this._interval),n=void 0,o=void 0,p=void 0;if(b===h.NEXT?(n=j.LEFT,o=j.NEXT,p=h.LEFT):(n=j.RIGHT,o=j.PREV,p=h.RIGHT),g&&a(g).hasClass(j.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(g,p).isDefaultPrevented()&&e&&g){this._isSliding=!0,m&&this.pause(),this._setActiveIndicatorElement(g);var q=a.Event(i.SLID,{relatedTarget:g,direction:p,from:f,to:l});Util.supportsTransitionEnd()&&a(this._element).hasClass(j.SLIDE)?(a(g).addClass(o),Util.reflow(g),a(e).addClass(n),a(g).addClass(n),a(e).one(Util.TRANSITION_END,function(){a(g).removeClass(n+" "+o).addClass(j.ACTIVE),a(e).removeClass(j.ACTIVE+" "+o+" "+n),d._isSliding=!1,setTimeout(function(){return a(d._element).trigger(q)},0)}).emulateTransitionEnd(600)):(a(e).removeClass(j.ACTIVE),a(g).addClass(j.ACTIVE),this._isSliding=!1,a(this._element).trigger(q)),m&&this.cycle()}},e._jQueryInterface=function(b){return this.each(function(){var d=a(this).data(c),g=a.extend({},f,a(this).data());"object"===(void 0===b?"undefined":_typeof(b))&&a.extend(g,b);var h="string"==typeof b?b:g.slide;if(d||(d=new e(this,g),a(this).data(c,d)),"number"==typeof b)d.to(b);else if("string"==typeof h){if(void 0===d[h])throw new Error('No method named "'+h+'"');d[h]()}else g.interval&&(d.pause(),d.cycle())})},e._dataApiClickHandler=function(b){var d=Util.getSelectorFromElement(this);if(d){var f=a(d)[0];if(f&&a(f).hasClass(j.CAROUSEL)){var g=a.extend({},a(f).data(),a(this).data()),h=this.getAttribute("data-slide-to");h&&(g.interval=!1),e._jQueryInterface.call(a(f),g),h&&a(f).data(c).to(h),b.preventDefault()}}},_createClass(e,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return f}}]),e}();return a(document).on(i.CLICK_DATA_API,k.DATA_SLIDE,l._dataApiClickHandler),a(window).on(i.LOAD_DATA_API,function(){a(k.DATA_RIDE).each(function(){var b=a(this);l._jQueryInterface.call(b,b.data())})}),a.fn[b]=l._jQueryInterface,a.fn[b].Constructor=l,a.fn[b].noConflict=function(){return a.fn[b]=e,l._jQueryInterface},l}(jQuery),Collapse=function(a){var b="collapse",c="bs.collapse",d=a.fn[b],e={toggle:!0,parent:""},f={toggle:"boolean",parent:"string"},g={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},h={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},i={WIDTH:"width",HEIGHT:"height"},j={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},k=function(){function d(b,c){_classCallCheck(this,d),this._isTransitioning=!1,this._element=b,this._config=this._getConfig(c),this._triggerArray=a.makeArray(a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'));for(var e=a(j.DATA_TOGGLE),f=0;f0&&this._triggerArray.push(g)}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return d.prototype.toggle=function(){a(this._element).hasClass(h.SHOW)?this.hide():this.show()},d.prototype.show=function(){var b=this;if(!this._isTransitioning&&!a(this._element).hasClass(h.SHOW)){var e=void 0,f=void 0;if(this._parent&&(e=a.makeArray(a(this._parent).children().children(j.ACTIVES)),e.length||(e=null)),!(e&&(f=a(e).data(c))&&f._isTransitioning)){var i=a.Event(g.SHOW);if(a(this._element).trigger(i),!i.isDefaultPrevented()){e&&(d._jQueryInterface.call(a(e),"hide"),f||a(e).data(c,null));var k=this._getDimension();a(this._element).removeClass(h.COLLAPSE).addClass(h.COLLAPSING),this._element.style[k]=0,this._triggerArray.length&&a(this._triggerArray).removeClass(h.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){a(b._element).removeClass(h.COLLAPSING).addClass(h.COLLAPSE).addClass(h.SHOW),b._element.style[k]="",b.setTransitioning(!1),a(b._element).trigger(g.SHOWN)};if(!Util.supportsTransitionEnd())return void l();var m=k[0].toUpperCase()+k.slice(1),n="scroll"+m;a(this._element).one(Util.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[k]=this._element[n]+"px"}}}},d.prototype.hide=function(){var b=this;if(!this._isTransitioning&&a(this._element).hasClass(h.SHOW)){var c=a.Event(g.HIDE);if(a(this._element).trigger(c),!c.isDefaultPrevented()){var d=this._getDimension();if(this._element.style[d]=this._element.getBoundingClientRect()[d]+"px",Util.reflow(this._element),a(this._element).addClass(h.COLLAPSING).removeClass(h.COLLAPSE).removeClass(h.SHOW),this._triggerArray.length)for(var e=0;e0},e.prototype._getPopperConfig=function(){var a={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(a.modifiers.applyStyle={enabled:!this._inNavbar}),a},e._jQueryInterface=function(b){return this.each(function(){var d=a(this).data(c),f="object"===(void 0===b?"undefined":_typeof(b))?b:null;if(d||(d=new e(this,f),a(this).data(c,d)),"string"==typeof b){if(void 0===d[b])throw new Error('No method named "'+b+'"');d[b]()}})},e._clearMenus=function(b){if(!b||3!==b.which&&("keyup"!==b.type||9===b.which))for(var d=a.makeArray(a(i.DATA_TOGGLE)),f=0;f0&&k--,40===b.which&&kdocument.documentElement.clientHeight;!this._isBodyOverflowing&&a&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!a&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},d.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},d.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 .dropdown-menu .active"},f=function(){function b(a){_classCallCheck(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(d.ACTIVE)||a(this._element).hasClass(d.DISABLED))){var f=void 0,g=void 0,h=a(this._element).closest(e.NAV_LIST_GROUP)[0],i=Util.getSelectorFromElement(this._element);h&&(g=a.makeArray(a(h).find(e.ACTIVE)),g=g[g.length-1]);var j=a.Event(c.HIDE,{relatedTarget:this._element}),k=a.Event(c.SHOW,{relatedTarget:g});if(g&&a(g).trigger(j),a(this._element).trigger(k),!k.isDefaultPrevented()&&!j.isDefaultPrevented()){i&&(f=a(i)[0]),this._activate(this._element,h);var l=function(){var d=a.Event(c.HIDDEN,{relatedTarget:b._element}),e=a.Event(c.SHOWN,{relatedTarget:g});a(g).trigger(d),a(b._element).trigger(e)};f?this._activate(f,f.parentNode,l):l()}}},b.prototype.dispose=function(){a.removeData(this._element,"bs.tab"),this._element=null},b.prototype._activate=function(b,c,f){var g=this,h=a(c).find(e.ACTIVE)[0],i=f&&Util.supportsTransitionEnd()&&h&&a(h).hasClass(d.FADE),j=function(){return g._transitionComplete(b,h,i,f)};h&&i?a(h).one(Util.TRANSITION_END,j).emulateTransitionEnd(150):j(),h&&a(h).removeClass(d.SHOW)},b.prototype._transitionComplete=function(b,c,f,g){if(c){a(c).removeClass(d.ACTIVE);var h=a(c.parentNode).find(e.DROPDOWN_ACTIVE_CHILD)[0];h&&a(h).removeClass(d.ACTIVE),c.setAttribute("aria-expanded",!1)}if(a(b).addClass(d.ACTIVE),b.setAttribute("aria-expanded",!0),f?(Util.reflow(b),a(b).addClass(d.SHOW)):a(b).removeClass(d.FADE),b.parentNode&&a(b.parentNode).hasClass(d.DROPDOWN_MENU)){var i=a(b).closest(e.DROPDOWN)[0];i&&a(i).find(e.DROPDOWN_TOGGLE).addClass(d.ACTIVE),b.setAttribute("aria-expanded",!0)}g&&g()},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]()}})},_createClass(b,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),b}();return a(document).on(c.CLICK_DATA_API,e.DATA_TOGGLE,function(b){b.preventDefault(),f._jQueryInterface.call(a(this),"show")}),a.fn.tab=f._jQueryInterface,a.fn.tab.Constructor=f,a.fn.tab.noConflict=function(){return a.fn.tab=b,f._jQueryInterface},f}(jQuery),Tooltip=function(a){if("undefined"==typeof Popper)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var b="tooltip",c=".bs.tooltip",d=a.fn[b],e=new RegExp("(^|\\s)bs-tooltip\\S+","g"),f={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)"},g={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},h={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},i={SHOW:"show",OUT:"out"},j={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,INSERTED:"inserted"+c,CLICK:"click"+c,FOCUSIN:"focusin"+c,FOCUSOUT:"focusout"+c,MOUSEENTER:"mouseenter"+c,MOUSELEAVE:"mouseleave"+c},k={FADE:"fade",SHOW:"show"},l={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},m={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},n=function(){function d(a,b){_classCallCheck(this,d),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=a,this.config=this._getConfig(b),this.tip=null,this._setListeners()}return d.prototype.enable=function(){this._isEnabled=!0},d.prototype.disable=function(){this._isEnabled=!1},d.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},d.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(k.SHOW))return void this._leave(null,this);this._enter(null,this)}},d.prototype.dispose=function(){clearTimeout(this._timeout),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,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},d.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){a(this.element).trigger(c);var e=a.contains(this.element.ownerDocument.documentElement,this.element);if(c.isDefaultPrevented()||!e)return;var f=this.getTipElement(),g=Util.getUID(this.constructor.NAME);f.setAttribute("id",g),this.element.setAttribute("aria-describedby",g),this.setContent(),this.config.animation&&a(f).addClass(k.FADE);var h="function"==typeof this.config.placement?this.config.placement.call(this,f,this.element):this.config.placement,j=this._getAttachment(h);this.addAttachmentClass(j);var m=!1===this.config.container?document.body:a(this.config.container);a(f).data(this.constructor.DATA_KEY,this),a.contains(this.element.ownerDocument.documentElement,this.tip)||a(f).appendTo(m),a(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,f,{placement:j,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:l.ARROW}},onCreate:function(a){a.originalPlacement!==a.placement&&b._handlePopperPlacementChange(a)},onUpdate:function(a){b._handlePopperPlacementChange(a)}}),a(f).addClass(k.SHOW),"ontouchstart"in document.documentElement&&a("body").children().on("mouseover",null,a.noop);var n=function(){b.config.animation&&b._fixTransition();var c=b._hoverState;b._hoverState=null,a(b.element).trigger(b.constructor.Event.SHOWN),c===i.OUT&&b._leave(null,b)};Util.supportsTransitionEnd()&&a(this.tip).hasClass(k.FADE)?a(this.tip).one(Util.TRANSITION_END,n).emulateTransitionEnd(d._TRANSITION_DURATION):n()}},d.prototype.hide=function(b){var c=this,d=this.getTipElement(),e=a.Event(this.constructor.Event.HIDE),f=function(){c._hoverState!==i.SHOW&&d.parentNode&&d.parentNode.removeChild(d),c._cleanTipClass(),c.element.removeAttribute("aria-describedby"),a(c.element).trigger(c.constructor.Event.HIDDEN),null!==c._popper&&c._popper.destroy(),b&&b()};a(this.element).trigger(e),e.isDefaultPrevented()||(a(d).removeClass(k.SHOW),"ontouchstart"in document.documentElement&&a("body").children().off("mouseover",null,a.noop),this._activeTrigger[m.CLICK]=!1,this._activeTrigger[m.FOCUS]=!1,this._activeTrigger[m.HOVER]=!1,Util.supportsTransitionEnd()&&a(this.tip).hasClass(k.FADE)?a(d).one(Util.TRANSITION_END,f).emulateTransitionEnd(150):f(),this._hoverState="")},d.prototype.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},d.prototype.isWithContent=function(){return Boolean(this.getTitle())},d.prototype.addAttachmentClass=function(b){a(this.getTipElement()).addClass("bs-tooltip-"+b)},d.prototype.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0]},d.prototype.setContent=function(){var b=a(this.getTipElement());this.setElementContent(b.find(l.TOOLTIP_INNER),this.getTitle()),b.removeClass(k.FADE+" "+k.SHOW)},d.prototype.setElementContent=function(b,c){var d=this.config.html;"object"===(void 0===c?"undefined":_typeof(c))&&(c.nodeType||c.jquery)?d?a(c).parent().is(b)||b.empty().append(c):b.text(a(c).text()):b[d?"html":"text"](c)},d.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},d.prototype._getAttachment=function(a){return g[a.toUpperCase()]},d.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!==m.MANUAL){var d=c===m.HOVER?b.constructor.Event.MOUSEENTER:b.constructor.Event.FOCUSIN,e=c===m.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()},d.prototype._fixTitle=function(){var a=_typeof(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",""))},d.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?m.FOCUS:m.HOVER]=!0),a(c.getTipElement()).hasClass(k.SHOW)||c._hoverState===i.SHOW?void(c._hoverState=i.SHOW):(clearTimeout(c._timeout),c._hoverState=i.SHOW,c.config.delay&&c.config.delay.show?void(c._timeout=setTimeout(function(){c._hoverState===i.SHOW&&c.show()},c.config.delay.show)):void c.show())},d.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?m.FOCUS:m.HOVER]=!1),!c._isWithActiveTrigger()){if(clearTimeout(c._timeout),c._hoverState=i.OUT,!c.config.delay||!c.config.delay.hide)return void c.hide();c._timeout=setTimeout(function(){c._hoverState===i.OUT&&c.hide()},c.config.delay.hide)}},d.prototype._isWithActiveTrigger=function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1},d.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}),c.title&&"number"==typeof c.title&&(c.title=c.title.toString()),c.content&&"number"==typeof c.content&&(c.content=c.content.toString()),Util.typeCheckConfig(b,c,this.constructor.DefaultType),c},d.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},d.prototype._cleanTipClass=function(){var b=a(this.getTipElement()),c=b.attr("class").match(e);null!==c&&c.length>0&&b.removeClass(c.join(""))},d.prototype._handlePopperPlacementChange=function(a){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(a.placement))},d.prototype._fixTransition=function(){var b=this.getTipElement(),c=this.config.animation;null===b.getAttribute("x-placement")&&(a(b).removeClass(k.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=c)},d._jQueryInterface=function(b){return this.each(function(){var c=a(this).data("bs.tooltip"),e="object"===(void 0===b?"undefined":_typeof(b))&&b;if((c||!/dispose|hide/.test(b))&&(c||(c=new d(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]()}})},_createClass(d,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return b}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return j}},{key:"EVENT_KEY",get:function(){return c}},{key:"DefaultType",get:function(){return f}}]),d}();return a.fn[b]=n._jQueryInterface,a.fn[b].Constructor=n,a.fn[b].noConflict=function(){return a.fn[b]=d,n._jQueryInterface},n}(jQuery),Popover=function(a){var b="popover",c=".bs.popover",d=a.fn[b],e=new RegExp("(^|\\s)bs-popover\\S+","g"),f=a.extend({},Tooltip.Default,{placement:"right",trigger:"click",content:"",template:''}),g=a.extend({},Tooltip.DefaultType,{content:"(string|element|function)"}),h={FADE:"fade",SHOW:"show"},i={TITLE:".popover-header",CONTENT:".popover-body"},j={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,INSERTED:"inserted"+c,CLICK:"click"+c,FOCUSIN:"focusin"+c,FOCUSOUT:"focusout"+c,MOUSEENTER:"mouseenter"+c,MOUSELEAVE:"mouseleave"+c},k=function(d){function k(){return _classCallCheck(this,k),_possibleConstructorReturn(this,d.apply(this,arguments))}return _inherits(k,d),k.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},k.prototype.addAttachmentClass=function(b){a(this.getTipElement()).addClass("bs-popover-"+b)},k.prototype.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0]},k.prototype.setContent=function(){var b=a(this.getTipElement());this.setElementContent(b.find(i.TITLE),this.getTitle()),this.setElementContent(b.find(i.CONTENT),this._getContent()),b.removeClass(h.FADE+" "+h.SHOW)},k.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},k.prototype._cleanTipClass=function(){var b=a(this.getTipElement()),c=b.attr("class").match(e);null!==c&&c.length>0&&b.removeClass(c.join(""))},k._jQueryInterface=function(b){return this.each(function(){var c=a(this).data("bs.popover"),d="object"===(void 0===b?"undefined":_typeof(b))?b:null;if((c||!/destroy|hide/.test(b))&&(c||(c=new k(this,d),a(this).data("bs.popover",c)),"string"==typeof b)){if(void 0===c[b])throw new Error('No method named "'+b+'"');c[b]()}})},_createClass(k,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return b}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return j}},{key:"EVENT_KEY",get:function(){return c}},{key:"DefaultType",get:function(){return g}}]),k}(Tooltip);return a.fn[b]=k._jQueryInterface,a.fn[b].Constructor=k,a.fn[b].noConflict=function(){return a.fn[b]=d,k._jQueryInterface},k}(jQuery);