if(function(t,e){"function"==typeofdefine&&define.amd?define(e):"object"==typeofexports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,n){"use strict";functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functiono(t){vare=t.getBoundingClientRect(),n={};for(variine)n[i]=e[i];if(t.ownerDocument!==document){varr=t.ownerDocument.defaultView.frameElement;if(r){vars=o(r);n.top+=s.top,n.bottom+=s.top,n.left+=s.left,n.right+=s.left}}returnn}functionr(t){vare=getComputedStyle(t)||{},n=e.position,i=[];if("fixed"===n)return[t];for(varo=t;(o=o.parentNode)&&o&&1===o.nodeType;){varr=void0;try{r=getComputedStyle(o)}catch(t){}if("undefined"==typeofr||null===r)returni.push(o),i;vars=r,a=s.overflow,l=s.overflowX,h=s.overflowY;/(auto|scroll)/.test(a+h+l)&&("absolute"!==n||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(o)}returni.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}functions(){O&&document.body.removeChild(O),O=null}functiona(t){vare=void0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;varn=e.documentElement,i=o(t),r=w();returni.top-=r.top,i.left-=r.left,"undefined"==typeofi.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeofi.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-n.clientTop,i.left=i.left-n.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}functionl(t){returnt.offsetParent||document.documentElement}functionh(){if(D)returnD;vart=document.createElement("div");t.style.width="100%",t.style.height="200px";vare=document.createElement("div");f(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);varn=t.offsetWidth;e.style.overflow="scroll";vari=t.offsetWidth;n===i&&(i=e.clientWidth),document.body.removeChild(e);varo=n-i;returnD={width:o,height:o}}functionf(){vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=[];returnArray.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(varnine)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}functionu(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{varn=newRegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=p(t).replace(n," ");g(t,i)}}functionc(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{u(t,e);varn=p(t)+(" "+e);g(t,n)}}functiond(t,e){if("undefined"!=typeoft.classList)returnt.classList.contains(e);varn=p(t);returnnewRegExp("(^| )"+e+"( |$)","gi").test(n)}functionp(t){returnt.classNameinstanceoft.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}functiong(t,e){t.setAttribute("class",e)}functionm(t,e,n){n.forEach(function(n){e.indexOf(n)===-1&&d(t,n)&&u(t,n)}),e.forEach(function(e){d(t,e)||c(t,e)})}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}function_(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}functionv(t,e){varn=arguments.length<=2||void0===arguments[2]?1:arguments[2];returnt+n>=e&&e>=t-n}functionE(){return"undefined"!=typeofperformance&&"undefined"!=typeofperformance.now?performance.now():+newDate}functiony(){for(vart={top:0,left:0},e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];returnn.forEach(function(e){varn=e.top,i=e.left;"string"==typeofn&&(n=parseFloat(n,10)),"string"==typeofi&&(i=parseFloat(i,10)),t.top+=n,t.left+=i}),t}functionT(t,e){return"string"==typeoft.left&&t.left.indexOf("%")!==-1&&(t.left=parseFloat(t.left,10)/100*e.wi
DATA_RIDE:'[data-ride="carousel"]'},y=function(){functionh(e,i){n(this,h),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(i),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(E.INDICATORS)[0],this._addEventListeners()}returnh.prototype.next=function(){if(this._isSliding)thrownewError("Carousel is sliding");this._slide(m.NEXT)},h.prototype.nextWhenVisible=function(){document.hidden||this.next()},h.prototype.prev=function(){if(this._isSliding)thrownewError("Carousel is sliding");this._slide(m.PREVIOUS)},h.prototype.pause=function(e){e||(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.prototype.cycle=function(t){t||(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.prototype.to=function(e){varn=this;this._activeElement=t(this._element).find(E.ACTIVE_ITEM)[0];vari=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)returnvoidt(this._element).one(_.SLID,function(){returnn.to(e)});if(i===e)returnthis.pause(),voidthis.cycle();varo=e>i?m.NEXT:m.PREVIOUS;this._slide(o,this._items[e])}},h.prototype.dispose=function(){t(this._element).off(l),t.removeData(this._element,a),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},h.prototype._getConfig=function(n){returnn=t.extend({},p,n),r.typeCheckConfig(e,n,g),n},h.prototype._addEventListeners=function(){vare=this;this._config.keyboard&&t(this._element).on(_.KEYDOWN,function(t){returne._keydown(t)}),"hover"!==this._config.pause||"ontouchstart"indocument.documentElement||t(this._element).on(_.MOUSEENTER,function(t){returne.pause(t)}).on(_.MOUSELEAVE,function(t){returne.cycle(t)})},h.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){casec:t.preventDefault(),this.prev();break;cased:t.preventDefault(),this.next();break;default:return}},h.prototype._getItemIndex=function(e){returnthis._items=t.makeArray(t(e).parent().find(E.ITEM)),this._items.indexOf(e)},h.prototype._getItemByDirection=function(t,e){varn=t===m.NEXT,i=t===m.PREVIOUS,o=this._getItemIndex(e),r=this._items.length-1,s=i&&0===o||n&&o===r;if(s&&!this._config.wrap)returne;vara=t===m.PREVIOUS?-1:1,l=(o+a)%this._items.length;returnl===-1?this._items[this._items.length-1]:this._items[l]},h.prototype._triggerSlideEvent=function(e,n){vari=t.Event(_.SLIDE,{relatedTarget:e,direction:n});returnt(this._element).trigger(i),i},h.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(E.ACTIVE).removeClass(v.ACTIVE);varn=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(v.ACTIVE)}},h.prototype._slide=function(e,n){vari=this,o=t(this._element).find(E.ACTIVE_ITEM)[0],s=n||o&&this._getItemByDirection(e,o),a=Boolean(this._interval),l=void0,h=void0,f=void0;if(e===m.NEXT?(l=v.LEFT,h=v.NEXT,f=m.LEFT):(l=v.RIGHT,h=v.PREV,f=m.RIGHT),s&&t(s).hasClass(v.ACTIVE))returnvoid(this._isSliding=!1);varc=this._triggerSlideEvent(s,f);if(!c.isDefaultPrevented()&&o&&s){this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(s);vard=t.Event(_.SLID,{relatedTarget:s,direction:f});r.supportsTransitionEnd()&&t(this._element).hasClass(v.SLIDE)?(t(s).addClass(h),r.reflow(s),t(o).addClass(l),t(s).addClass(l),t(o).one(r.TRANSITION_END,function(){t(s).removeClass(l+" "+h).addClass(v.ACTIVE),t(o).removeClass(v.ACTIVE+" "+h+" "+l),i._isSliding=!1,setTimeout(function(){returnt(i._element).trigger(d)},0)}).emulateTransitionEnd(u)):(t(o).removeClass(v.ACTIVE),t(s).addClass(v.ACTIVE),this._isSliding=!1,t(this._element).trigg
t(o).addClass(_.SHOW);varc=function(){varn=e._hoverState;e._hoverState=null,e._isTransitioning=!1,t(e.element).trigger(e.constructor.Event.SHOWN),n===g.OUT&&e._leave(null,e)};if(r.supportsTransitionEnd()&&t(this.tip).hasClass(_.FADE))returnthis._isTransitioning=!0,voidt(this.tip).one(r.TRANSITION_END,c).emulateTransitionEnd(h._TRANSITION_DURATION);c()}},h.prototype.hide=function(e){varn=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE);if(this._isTransitioning)thrownewError("Tooltip is transitioning");vars=function(){n._hoverState!==g.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),n._isTransitioning=!1,n.cleanupTether(),e&&e()};t(this.element).trigger(o),o.isDefaultPrevented()||(t(i).removeClass(_.SHOW),this._activeTrigger[y.CLICK]=!1,this._activeTrigger[y.FOCUS]=!1,this._activeTrigger[y.HOVER]=!1,r.supportsTransitionEnd()&&t(this.tip).hasClass(_.FADE)?(this._isTransitioning=!0,t(i).one(r.TRANSITION_END,s).emulateTransitionEnd(f)):s(),this._hoverState="")},h.prototype.isWithContent=function(){returnBoolean(this.getTitle())},h.prototype.getTipElement=function(){returnthis.tip=this.tip||t(this.config.template)[0]},h.prototype.setContent=function(){vare=t(this.getTipElement());this.setElementContent(e.find(v.TOOLTIP_INNER),this.getTitle()),e.removeClass(_.FADE+" "+_.SHOW),this.cleanupTether()},h.prototype.setElementContent=function(e,n){varo=this.config.html;"object"===("undefined"==typeofn?"undefined":i(n))&&(n.nodeType||n.jquery)?o?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[o?"html":"text"](n)},h.prototype.getTitle=function(){vart=this.element.getAttribute("data-original-title");returnt||(t="function"==typeofthis.config.title?this.config.title.call(this.element):this.config.title),t},h.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},h.prototype._getAttachment=function(t){returnp[t.toUpperCase()]},h.prototype._setListeners=function(){vare=this,n=this.config.trigger.split(" ");n.forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){returne.toggle(t)});elseif(n!==y.MANUAL){vari=n===y.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===y.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){returne._enter(t)}).on(o,e.config.selector,function(t){returne._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){returne.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},h.prototype._fixTitle=function(){vart=i(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",""))},h.prototype._enter=function(e,n){vari=this.constructor.DATA_KEY;returnn=n||t(e.currentTarget).data(i),n||(n=newthis.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?y.FOCUS:y.HOVER]=!0),t(n.getTipElement()).hasClass(_.SHOW)||n._hoverState===g.SHOW?void(n._hoverState=g.SHOW):(clearTimeout(n._timeout),n._hoverState=g.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===g.SHOW&&n.show()},n.config.delay.show)):voidn.show())},h.prototype._leave=function(e,n){vari=this.constructor.DATA_KEY;if(n=n||t(e.currentTarget).data(i),n||(n=newthis.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?y.FOCUS:y.HOVER]=!1),!n._isWithActiveTrigger())returnclearTimeout(n._timeout),n._hoverState=g.OUT,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){n._hoverState===g.OUT&&n.hide()},n.config.delay.hide)):voidn.hide()},h.prototype._isWithActiveTrigger=function(){for(vartinthis._activeTrigger)if(this._activeT