(function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()})(this,function(){"use strict";function ut(n){return n&&"[object Function]"==={}.toString.call(n)}function r(n,t){if(1!==n.nodeType)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function y(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function s(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=r(n),i=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll)/.test(i+f+u)?n:s(y(n))}function u(n){var t=n&&n.offsetParent,i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===r(t,"position")?u(t):t:n?n.ownerDocument.documentElement:document.documentElement}function ui(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||u(n.firstElementChild)===n)}function p(n){return null===n.parentNode?n:p(n.parentNode)}function c(n,t){var i,f;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?ui(i)?i:u(i):(f=p(n),f.host?c(f.host,t):c(n,p(t).host))}function f(n){var f=1=r.clientWidth&&i>=r.clientHeight}),a=0e[n]&&!r.escapeWithReference&&(i=gt(f[t],e[n]-("right"===n?f.width:f.height))),o({},t,i)}};return c.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";f=n({},f,l[i](t))}),t.offsets.popper=f,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var s=n.offsets,u=s.popper,i=s.reference,h=n.placement.split("-")[0],r=e,f=-1!==["top","bottom"].indexOf(h),o=f?"right":"bottom",t=f?"left":"top",c=f?"width":"height";return u[o]r(i[o])&&(n.offsets.popper[t]=r(i[o])),n}},arrow:{order:500,enabled:!0,fn:function(n,u){var l,e;if(!kt(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=u.element,"string"==typeof e){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var d=n.placement.split("-")[0],b=n.offsets,c=b.popper,s=b.reference,a=-1!==["left","right"].indexOf(d),y=a?"height":"width",p=a?"Top":"Left",f=p.toLowerCase(),g=a?"left":"top",v=a?"bottom":"right",h=lt(e)[y];s[v]-hc[v]&&(n.offsets.popper[f]+=s[f]+h-c[v]);n.offsets.popper=t(n.offsets.popper);var nt=s[f]+s[y]/2-h/2,k=r(n.instance.popper),tt=parseFloat(k["margin"+p],10),it=parseFloat(k["border"+p+"Width"],10),w=nt-n.offsets.popper[f]-tt-it;return w=i(gt(c[y]-h,w),0),n.arrowElement=e,n.offsets.arrow=(l={},o(l,f,Math.round(w)),o(l,g,""),l),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(yt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var o=k(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,i.positionFixed?window.document.documentElement:void 0),r=t.placement.split("-")[0],s=l(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case rt.FLIP:f=[r,s];break;case rt.CLOCKWISE:f=dt(r);break;case rt.COUNTERCLOCKWISE:f=dt(r,!0);break;default:f=i.behavior}return f.forEach(function(h,c){if(r!==h||f.length===c+1)return t;r=t.placement.split("-")[0];s=l(r);var v=t.offsets.popper,y=t.offsets.reference,a=e,w="left"===r&&a(v.right)>a(y.left)||"right"===r&&a(v.left)a(y.top)||"bottom"===r&&a(v.top)a(o.right),d=a(v.top)a(o.bottom),nt="left"===r&&b||"right"===r&&k||"top"===r&&d||"bottom"===r&&g,p=-1!==["top","bottom"].indexOf(r),tt=!!i.flipVariations&&(p&&"start"===u&&b||p&&"end"===u&&k||!p&&"start"===u&&d||!p&&"end"===u&&g);(w||nt||tt)&&(t.flipped=!0,(w||nt)&&(r=f[c+1]),tt&&(u=wi(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,at(t.instance.popper,t.offsets.reference,t.placement)),t=vt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var u=n.placement,i=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(i),s=-1===["top","left"].indexOf(i);return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=l(u),n.offsets.popper=t(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!kt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=h(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottomi.right||t.top>i.bottom||t.right0?i:null}catch(n){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(t,i,r){for(var f in r)if(Object.prototype.hasOwnProperty.call(r,f)){var o=r[f],e=i[f],s=e&&n.isElement(e)?"element":u(e);if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+f+'" provided type "'+s+'" but expected type "'+o+'".');}}};return i=e(),t.fn.emulateTransitionEnd=o,n.supportsTransitionEnd()&&(t.event.special[n.TRANSITION_END]=f()),n}(),u=function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n},o=function(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t},s=function(){var i="alert",o=t.fn[i],f={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},e={ALERT:"alert",FADE:"fade",SHOW:"show"},n=function(){function n(n){this._element=n}var i=n.prototype;return i.close=function(n){n=n||this._element;var t=this._getRootElement(n);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},i.dispose=function(){t.removeData(this._element,"bs.alert");this._element=null},i._getRootElement=function(n){var u=r.getSelectorFromElement(n),i=!1;return u&&(i=t(u)[0]),i||(i=t(n).closest("."+e.ALERT)[0]),i},i._triggerCloseEvent=function(n){var i=t.Event(f.CLOSE);return t(n).trigger(i),i},i._removeElement=function(n){var i=this;t(n).removeClass(e.SHOW);r.supportsTransitionEnd()&&t(n).hasClass(e.FADE)?t(n).one(r.TRANSITION_END,function(t){return i._destroyElement(n,t)}).emulateTransitionEnd(150):this._destroyElement(n)},i._destroyElement=function(n){t(n).detach().trigger(f.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data("bs.alert");r||(r=new n(this),u.data("bs.alert",r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},u(n,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),n}();return t(document).on(f.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,n._handleDismiss(new n)),t.fn[i]=n._jQueryInterface,t.fn[i].Constructor=n,t.fn[i].noConflict=function(){return t.fn[i]=o,n._jQueryInterface},n}(),h=function(){var r="button",o=t.fn[r],n={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},i={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},e={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},f=function(){function r(n){this._element=n}var f=r.prototype;return f.toggle=function(){var f=!0,o=!0,u=t(this._element).closest(i.DATA_TOGGLE)[0],r,e;if(u&&(r=t(this._element).find(i.INPUT)[0],r)){if("radio"===r.type&&(r.checked&&t(this._element).hasClass(n.ACTIVE)?f=!1:(e=t(u).find(i.ACTIVE)[0],e&&t(e).removeClass(n.ACTIVE))),f){if(r.hasAttribute("disabled")||u.hasAttribute("disabled")||r.classList.contains("disabled")||u.classList.contains("disabled"))return;r.checked=!t(this._element).hasClass(n.ACTIVE);t(r).trigger("change")}r.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!t(this._element).hasClass(n.ACTIVE));f&&t(this._element).toggleClass(n.ACTIVE)},f.dispose=function(){t.removeData(this._element,"bs.button");this._element=null},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.button");i||(i=new r(this),t(this).data("bs.button",i));"toggle"===n&&i[n]()})},u(r,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),r}();return t(document).on(e.CLICK_DATA_API,i.DATA_TOGGLE_CARROT,function(r){r.preventDefault();var u=r.target;t(u).hasClass(n.BUTTON)||(u=t(u).closest(i.BUTTON));f._jQueryInterface.call(t(u),"toggle")}).on(e.FOCUS_BLUR_DATA_API,i.DATA_TOGGLE_CARROT,function(r){var u=t(r.target).closest(i.BUTTON)[0];t(u).toggleClass(n.FOCUS,/^focus(in)?$/.test(r.type))}),t.fn[r]=f._jQueryInterface,t.fn[r].Constructor=f,t.fn[r].noConflict=function(){return t.fn[r]=o,f._jQueryInterface},f}(),c=function(){var s="carousel",c="bs.carousel",o="."+c,a=t.fn[s],l={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},v={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},i={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},f={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHEND:"touchend"+o,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},n={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"},e={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"]'},h=function(){function a(n,i){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(i);this._element=t(n)[0];this._indicatorsElement=t(this._element).find(e.INDICATORS)[0];this._addEventListeners()}var h=a.prototype;return h.next=function(){this._isSliding||this._slide(i.NEXT)},h.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},h.prev=function(){this._isSliding||this._slide(i.PREV)},h.pause=function(n){n||(this._isPaused=!0);t(this._element).find(e.NEXT_PREV)[0]&&r.supportsTransitionEnd()&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},h.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))},h.to=function(n){var o=this,r,u;if(this._activeElement=t(this._element).find(e.ACTIVE_ITEM)[0],r=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one(f.SLID,function(){return o.to(n)});else{if(r===n)return this.pause(),void this.cycle();u=n>r?i.NEXT:i.PREV;this._slide(u,this._items[n])}},h.dispose=function(){t(this._element).off(o);t.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},h._getConfig=function(n){return n=t.extend({},l,n),r.typeCheckConfig(s,n,v),n},h._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on(f.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&(t(this._element).on(f.MOUSEENTER,function(t){return n.pause(t)}).on(f.MOUSELEAVE,function(t){return n.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(f.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval)}))},h._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next();break;default:return}},h._getItemIndex=function(n){return this._items=t.makeArray(t(n).parent().find(e.ITEM)),this._items.indexOf(n)},h._getItemByDirection=function(n,t){var f=n===i.NEXT,e=n===i.PREV,r=this._getItemIndex(t),o=this._items.length-1,u;return(e&&0===r||f&&r===o)&&!this._config.wrap?t:(u=(r+(n===i.PREV?-1:1))%this._items.length,-1===u?this._items[this._items.length-1]:this._items[u])},h._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),o=this._getItemIndex(t(this._element).find(e.ACTIVE_ITEM)[0]),r=t.Event(f.SLIDE,{relatedTarget:n,direction:i,from:o,to:u});return t(this._element).trigger(r),r},h._setActiveIndicatorElement=function(i){if(this._indicatorsElement){t(this._indicatorsElement).find(e.ACTIVE).removeClass(n.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(i)];r&&t(r).addClass(n.ACTIVE)}},h._slide=function(u,o){var c,l,a,y=this,h=t(this._element).find(e.ACTIVE_ITEM)[0],w=this._getItemIndex(h),s=o||h&&this._getItemByDirection(u,h),b=this._getItemIndex(s),p=Boolean(this._interval),v;(u===i.NEXT?(c=n.LEFT,l=n.NEXT,a=i.LEFT):(c=n.RIGHT,l=n.PREV,a=i.RIGHT),s&&t(s).hasClass(n.ACTIVE))?this._isSliding=!1:!this._triggerSlideEvent(s,a).isDefaultPrevented()&&h&&s&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(s),v=t.Event(f.SLID,{relatedTarget:s,direction:a,from:w,to:b}),r.supportsTransitionEnd()&&t(this._element).hasClass(n.SLIDE)?(t(s).addClass(l),r.reflow(s),t(h).addClass(c),t(s).addClass(c),t(h).one(r.TRANSITION_END,function(){t(s).removeClass(c+" "+l).addClass(n.ACTIVE);t(h).removeClass(n.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return t(y._element).trigger(v)},0)}).emulateTransitionEnd(600)):(t(h).removeClass(n.ACTIVE),t(s).addClass(n.ACTIVE),this._isSliding=!1,t(this._element).trigger(v)),p&&this.cycle())},a._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(c),u=t.extend({},l,t(this).data()),r;if("object"==typeof n&&t.extend(u,n),r="string"==typeof n?n:u.slide,i||(i=new a(this,u),t(this).data(c,i)),"number"==typeof n)i.to(n);else if("string"==typeof r){if("undefined"==typeof i[r])throw new Error('No method named "'+r+'"');i[r]()}else u.interval&&(i.pause(),i.cycle())})},a._dataApiClickHandler=function(i){var o=r.getSelectorFromElement(this),u,e,f;o&&(u=t(o)[0],u&&t(u).hasClass(n.CAROUSEL)&&(e=t.extend({},t(u).data(),t(this).data()),f=this.getAttribute("data-slide-to"),f&&(e.interval=!1),a._jQueryInterface.call(t(u),e),f&&t(u).data(c).to(f),i.preventDefault()))},u(a,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return l}}]),a}();return t(document).on(f.CLICK_DATA_API,e.DATA_SLIDE,h._dataApiClickHandler),t(window).on(f.LOAD_DATA_API,function(){t(e.DATA_RIDE).each(function(){var n=t(this);h._jQueryInterface.call(n,n.data())})}),t.fn[s]=h._jQueryInterface,t.fn[s].Constructor=h,t.fn[s].noConflict=function(){return t.fn[s]=a,h._jQueryInterface},h}(),l=function(){var i="collapse",f="bs.collapse",l=t.fn[i],s={toggle:!0,parent:""},a={toggle:"boolean",parent:"(string|element)"},e={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},n={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},h={WIDTH:"width",HEIGHT:"height"},c={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},o=function(){function l(n,i){var f,u,e,o;for(this._isTransitioning=!1,this._element=n,this._config=this._getConfig(i),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]')),f=t(c.DATA_TOGGLE),u=0;u0&&this._triggerArray.push(e);this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var o=l.prototype;return o.toggle=function(){t(this._element).hasClass(n.SHOW)?this.hide():this.show()},o.show=function(){var o=this,i,s,h,u,a,v;this._isTransitioning||t(this._element).hasClass(n.SHOW)||(this._parent&&((i=t.makeArray(t(this._parent).children().children(c.ACTIVES))).length||(i=null)),i&&(s=t(i).data(f))&&s._isTransitioning)||(h=t.Event(e.SHOW),(t(this._element).trigger(h),h.isDefaultPrevented())||(i&&(l._jQueryInterface.call(t(i),"hide"),s||t(i).data(f,null)),u=this._getDimension(),t(this._element).removeClass(n.COLLAPSE).addClass(n.COLLAPSING),this._element.style[u]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(n.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),a=function(){t(o._element).removeClass(n.COLLAPSING).addClass(n.COLLAPSE).addClass(n.SHOW);o._element.style[u]="";o.setTransitioning(!1);t(o._element).trigger(e.SHOWN)},r.supportsTransitionEnd()?(v="scroll"+(u[0].toUpperCase()+u.slice(1)),t(this._element).one(r.TRANSITION_END,a).emulateTransitionEnd(600),this._element.style[u]=this._element[v]+"px"):a()))},o.hide=function(){var c=this,f,i,u,o,s,h;if(!this._isTransitioning&&t(this._element).hasClass(n.SHOW)&&(f=t.Event(e.HIDE),t(this._element).trigger(f),!f.isDefaultPrevented())){if(i=this._getDimension(),this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",r.reflow(this._element),t(this._element).addClass(n.COLLAPSING).removeClass(n.COLLAPSE).removeClass(n.SHOW),this._triggerArray.length)for(u=0;u0},a._getPopperConfig=function(){var r=this,n={},i;return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=t.extend({},n.offsets,r._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,i={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip}}},this._inNavbar&&(i.modifiers.applyStyle={enabled:!this._inNavbar}),i},o._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(c),r="object"==typeof n?n:null;if(i||(i=new o(this,r),t(this).data(c,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},o._clearMenus=function(i){var u,r,v,h;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(u=t.makeArray(t(e.DATA_TOGGLE)),r=0;r0&&r--,40===i.which&&rdocument.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},o._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},o._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right
<\/div>
<\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},o={SHOW:"show",OUT:"out"},w={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},f={FADE:"fade",SHOW:"show"},c={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},e={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},h=function(){function l(n,t){this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var h=l.prototype;return h.enable=function(){this._isEnabled=!0},h.disable=function(){this._isEnabled=!1},h.toggleEnabled=function(){this._isEnabled=!this._isEnabled},h.toggle=function(n){if(this._isEnabled)if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(f.SHOW))return void this._leave(null,this);this._enter(null,this)}},h.dispose=function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal");this.tip&&t(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;null!==this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},h.show=function(){var n=this,e,v,u,s,y,h,p,a;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(e=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(e),v=t.contains(this.element.ownerDocument.documentElement,this.element),e.isDefaultPrevented()||!v)return;u=this.getTipElement();s=r.getUID(this.constructor.NAME);u.setAttribute("id",s);this.element.setAttribute("aria-describedby",s);this.setContent();this.config.animation&&t(u).addClass(f.FADE);y="function"==typeof this.config.placement?this.config.placement.call(this,u,this.element):this.config.placement;h=this._getAttachment(y);this.addAttachmentClass(h);p=!1===this.config.container?document.body:t(this.config.container);t(u).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(u).appendTo(p);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new i(this.element,u,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:c.ARROW}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){n._handlePopperPlacementChange(t)}});t(u).addClass(f.SHOW);"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);a=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);i===o.OUT&&n._leave(null,n)};r.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(this.tip).one(r.TRANSITION_END,a).emulateTransitionEnd(l._TRANSITION_DURATION):a()}},h.hide=function(n){var i=this,u=this.getTipElement(),s=t.Event(this.constructor.Event.HIDE),h=function(){i._hoverState!==o.SHOW&&u.parentNode&&u.parentNode.removeChild(u);i._cleanTipClass();i.element.removeAttribute("aria-describedby");t(i.element).trigger(i.constructor.Event.HIDDEN);null!==i._popper&&i._popper.destroy();n&&n()};t(this.element).trigger(s);s.isDefaultPrevented()||(t(u).removeClass(f.SHOW),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[e.CLICK]=!1,this._activeTrigger[e.FOCUS]=!1,this._activeTrigger[e.HOVER]=!1,r.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(u).one(r.TRANSITION_END,h).emulateTransitionEnd(150):h(),this._hoverState="")},h.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},h.isWithContent=function(){return Boolean(this.getTitle())},h.addAttachmentClass=function(n){t(this.getTipElement()).addClass("bs-tooltip-"+n)},h.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},h.setContent=function(){var n=t(this.getTipElement());this.setElementContent(n.find(c.TOOLTIP_INNER),this.getTitle());n.removeClass(f.FADE+" "+f.SHOW)},h.setElementContent=function(n,i){var r=this.config.html;"object"==typeof i&&(i.nodeType||i.jquery)?r?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text()):n[r?"html":"text"](i)},h.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},h._getAttachment=function(n){return y[n.toUpperCase()]},h._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(i!==e.MANUAL){var r=i===e.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===e.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}t(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},h._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},h._enter=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusin"===n.type?e.FOCUS:e.HOVER]=!0);t(i.getTipElement()).hasClass(f.SHOW)||i._hoverState===o.SHOW?i._hoverState=o.SHOW:(clearTimeout(i._timeout),i._hoverState=o.SHOW,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===o.SHOW&&i.show()},i.config.delay.show):i.show())},h._leave=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusout"===n.type?e.FOCUS:e.HOVER]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=o.OUT,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===o.OUT&&i.hide()},i.config.delay.hide):i.hide())},h._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},h._getConfig=function(n){return"number"==typeof(n=t.extend({},this.constructor.Default,t(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),r.typeCheckConfig(s,n,this.constructor.DefaultType),n},h._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},h._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(a);null!==n&&n.length>0&&i.removeClass(n.join(""))},h._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},h._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},l._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.tooltip"),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new l(this,r),t(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},u(l,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return w}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return v}}]),l}();return t.fn[s]=h._jQueryInterface,t.fn[s].Constructor=h,t.fn[s].noConflict=function(){return t.fn[s]=l,h._jQueryInterface},h}(),y=function(){var i="popover",n=".bs.popover",h=t.fn[i],c=new RegExp("(^|\\s)bs-popover\\S+","g"),l=t.extend({},f.Default,{placement:"right",trigger:"click",content:"",template:'