!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e(t.bootstrap={},t.jQuery)}(this,function(t,e){"use strict";function M(t,e){for(var n=0;n=n.clientWidth&&t>=n.clientHeight})).length?i:r)[0].key+((e=t.split("-")[1])?"-"+e:""))}function Z(t,e,n){return G(n,d(e,n))}function $(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),e=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+e,height:t.offsetHeight+n}}function E(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function tt(t,e,n){n=n.split("-")[0];var t=$(t),o={width:t.width,height:t.height},i=-1!==["right","left"].indexOf(n),r=i?"top":"left",s=i?"left":"top",a=i?"height":"width",i=i?"width":"height";return o[r]=e[r]+e[a]/2-t[a]/2,o[s]=n===s?e[s]-t[i]:e[E(s)],o}function w(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function et(t,n,e){var o,i;return(void 0===e?t:t.slice(0,(t=t,o="name",i=e,Array.prototype.findIndex?t.findIndex(function(t){return t[o]===i}):(e=w(t,function(t){return t[o]===i}),t.indexOf(e))))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&R(e)&&(n.offsets.popper=y(n.offsets.popper),n.offsets.reference=y(n.offsets.reference),n=e(n,t))}),n}function nt(t,n){return t.some(function(t){var e=t.name;return t.enabled&&e===n})}function ot(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;oi[t]&&!o.escapeWithReference&&(n=Math.min(r[e],i[t]-("right"===t?r.width:r.height))),v({},e,n)}};return e.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";r=b({},r,n[e](t))}),t.offsets.popper=r,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=(n=t.offsets).popper,n=n.reference,o=t.placement.split("-")[0],i=Math.floor,r=(o=-1!==["top","bottom"].indexOf(o))?"right":"bottom",s=o?"left":"top",o=o?"width":"height";return e[r]i(n[r])&&(t.offsets.popper[s]=i(n[r])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(ft(t.instance.modifiers,"arrow","keepTogether")){e=e.element;if("string"==typeof e){if(!(e=t.instance.popper.querySelector(e)))return t}else if(!t.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var n=t.placement.split("-")[0],o=t.offsets,i=o.popper,o=o.reference,n=-1!==["left","right"].indexOf(n),r=n?"height":"width",s=n?"Top":"Left",a=s.toLowerCase(),l=n?"left":"top",n=n?"bottom":"right",f=$(e)[r],n=(o[n]-fi[n]&&(t.offsets.popper[a]+=o[a]+f-i[n]),t.offsets.popper=y(t.offsets.popper),o[a]+o[r]/2-f/2),o=u(t.instance.popper),c=parseFloat(o["margin"+s],10),o=parseFloat(o["border"+s+"Width"],10),s=n-t.offsets.popper[a]-c-o,s=Math.max(Math.min(i[r]-f,s),0);t.arrowElement=e,t.offsets.arrow=(v(n={},a,Math.round(s)),v(n,l,""),n)}return t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,f){if(!(nt(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var c=J(l.instance.popper,l.instance.reference,f.padding,f.boundariesElement),u=l.placement.split("-")[0],p=E(u),h=l.placement.split("-")[1]||"",d=[];switch(f.behavior){case pt:d=[u,p];break;case ht:d=ut(u);break;case dt:d=ut(u,!0);break;default:d=f.behavior}d.forEach(function(t,e){if(u!==t||d.length===e+1)return l;u=l.placement.split("-")[0],p=E(u);var t=l.offsets.popper,n=l.offsets.reference,o=Math.floor,n="left"===u&&o(t.right)>o(n.left)||"right"===u&&o(t.left)o(n.top)||"bottom"===u&&o(t.top)o(c.right),s=o(t.top)o(c.bottom),o="left"===u&&i||"right"===u&&r||"top"===u&&s||"bottom"===u&&t,a=-1!==["top","bottom"].indexOf(u),i=!!f.flipVariations&&(a&&"start"===h&&i||a&&"end"===h&&r||!a&&"start"===h&&s||!a&&"end"===h&&t);(n||o||i)&&(l.flipped=!0,(n||o)&&(u=d[e+1]),i&&(h="end"===(r=h)?"start":"start"===r?"end":r),l.placement=u+(h?"-"+h:""),l.offsets.popper=b({},l.offsets.popper,tt(l.instance.popper,l.offsets.reference,l.placement)),l=et(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=(i=t.offsets).popper,i=i.reference,r=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[r?"left":"top"]=i[n]-(s?o[r?"width":"height"]:0),t.placement=E(e),t.offsets.popper=y(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(ft(t.instance.modifiers,"hide","preventOverflow")){var e=t.offsets.reference,n=w(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right
',trigger:"hover focus",title:"",delay:0,html:!(wt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Et={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},x="out",_t={HIDE:"hide"+N,HIDDEN:"hidden"+N,SHOW:(S="show")+N,SHOWN:"shown"+N,INSERTED:"inserted"+N,CLICK:"click"+N,FOCUSIN:"focusin"+N,FOCUSOUT:"focusout"+N,MOUSEENTER:"mouseenter"+N,MOUSELEAVE:"mouseleave"+N},L="fade",k="show",Ot=".tooltip-inner",Ct=".arrow",I="hover",P="focus",At="click",Dt="manual",j=function(){function i(t,e){if(void 0===_)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t,e,n=i.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){var e,n;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(n=C(t.currentTarget).data(e))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),C(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):C(this.getTipElement()).hasClass(k)?this._leave(null,this):this._enter(null,this))},n.dispose=function(){clearTimeout(this._timeout),C.removeData(this.element,this.constructor.DATA_KEY),C(this.element).off(this.constructor.EVENT_KEY),C(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&C(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var e=this;if("none"===C(this.element).css("display"))throw new Error("Please use show on visible elements");var t,n,o=C.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(C(this.element).trigger(o),t=C.contains(this.element.ownerDocument.documentElement,this.element),!o.isDefaultPrevented())&&t&&(o=this.getTipElement(),t=r.getUID(this.constructor.NAME),o.setAttribute("id",t),this.element.setAttribute("aria-describedby",t),this.setContent(),this.config.animation&&C(o).addClass(L),t="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,t=this._getAttachment(t),this.addAttachmentClass(t),n=!1===this.config.container?document.body:C(this.config.container),C(o).data(this.constructor.DATA_KEY,this),C.contains(this.element.ownerDocument.documentElement,this.tip)||C(o).appendTo(n),C(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new _(this.element,o,{placement:t,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:Ct},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),C(o).addClass(k),"ontouchstart"in document.documentElement&&C("body").children().on("mouseover",null,C.noop),n=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,C(e.element).trigger(e.constructor.Event.SHOWN),t===x&&e._leave(null,e)},r.supportsTransitionEnd()&&C(this.tip).hasClass(L)?C(this.tip).one(r.TRANSITION_END,n).emulateTransitionEnd(i._TRANSITION_DURATION):n())},n.hide=function(t){function e(){n._hoverState!==S&&o.parentNode&&o.parentNode.removeChild(o),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),C(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()}var n=this,o=this.getTipElement(),i=C.Event(this.constructor.Event.HIDE);C(this.element).trigger(i),i.isDefaultPrevented()||(C(o).removeClass(k),"ontouchstart"in document.documentElement&&C("body").children().off("mouseover",null,C.noop),this._activeTrigger[At]=!1,this._activeTrigger[P]=!1,this._activeTrigger[I]=!1,r.supportsTransitionEnd()&&C(this.tip).hasClass(L)?C(o).one(r.TRANSITION_END,e).emulateTransitionEnd(150):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(t){C(this.getTipElement()).addClass(bt+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||C(this.config.template)[0],this.tip},n.setContent=function(){var t=C(this.getTipElement());this.setElementContent(t.find(Ot),this.getTitle()),t.removeClass(L+" "+k)},n.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?C(e).parent().is(t)||t.empty().append(e):t.text(C(e).text()):t[n?"html":"text"](e)},n.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},n._getAttachment=function(t){return wt[t.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?C(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)}):t!==Dt&&(e=t===I?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===I?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,C(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(t,n.config.selector,function(t){return n._leave(t)})),C(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})}),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||C(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),C(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?P:I]=!0),C(e.getTipElement()).hasClass(k)||e._hoverState===S?e._hoverState=S:(clearTimeout(e._timeout),e._hoverState=S,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===S&&e.show()},e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||C(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),C(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?P:I]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=x,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===x&&e.hide()},e.config.delay.hide):e.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){return"number"==typeof(t=o({},this.constructor.Default,C(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),r.typeCheckConfig(A,t,this.constructor.DefaultType),t},n._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var t=C(this.getTipElement()),e=t.attr("class").match(yt);null!==e&&0