text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){var i,r,o;i=t,o=n[r=e],r in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o})}return t}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var s,a,l,c,h,u,f,d,g,p,_,m,v,y,E,T,C,D,b,w,I,A,S,N,O,k,j,P,M,L,R,x,U,H,Q,W,F,K,B,V,q,Y,G,z,$,X,Z,J,tt,et,nt,it,rt,ot,st,at,lt,ct,ht,ut,ft,dt,gt,pt,_t,mt,vt,yt,Et,Tt,Ct,Dt,bt,wt,It,At,St,Nt,Ot,kt,jt,Pt,Mt,Lt,Rt,xt,Ut,Ht,Qt,Wt,Ft,Kt,Bt,Vt,qt,Yt,Gt,zt,$t,Xt,Zt,Jt,te,ee,ne,ie,re,oe,se,ae,le,ce,he,ue,fe,de,ge,pe,_e,me,ve,ye,Ee,Te,Ce,De,be,we,Ie,Ae,Se,Ne,Oe,ke,je,Pe,Me=function(t){var e="transitionend";var n={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(e){var n=e.getAttribute("data-target");n&&"#"!==n||(n=e.getAttribute("href")||"");try{return 0<t(document).find(n).length?n:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration");return parseFloat(n)?(n=n.split(",")[0],1e3*parseFloat(n)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var o=i[r],s=e[r],a=s&&n.isElement(s)?"element":(l=s,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+o+'".')}var l}};return t.fn.emulateTransitionEnd=function(e){var i=this,r=!1;return t(this).one(n.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||n.triggerTransitionEnd(i)},e),this},t.event.special[n.TRANSITION_END]={bindType:e,delegateType:e,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},n}(e),Le=(a="alert",c="."+(l="bs.alert"),h=(s=e).fn[a],u={CLOSE:"close"+c,CLOSED:"closed"+c,CLICK_DATA_API:"click"+c+".data-api"},"alert","fade","show",f=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){s.removeData(this._element,l),this._element=null},e._getRootElement=function(t){var e=Me.getSelectorFromElement(t),n=!1;return e&&(n=s(e)[0]),n||(n=s(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=s.Event(u.CLOSE);return s(t).trigger(e),e},e._removeElement=function(t){var e=this;if(s(t).removeClass("show"),s(t).hasClass("fade")){var n=Me.getTransitionDurationFromElement(t);s(t).one(Me.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){s(t).detach().trigger(u.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=s(this),i=n.data(l);i||(i=new t(this),n.data(l,i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}}]),t}(),s(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',f._handleDismiss(new f)),s.fn[a]=f._jQueryInterface,s.fn[a].Constructor=f,s.fn[a].noConflict=function(){return s.fn[a]=h,f._jQueryInterface},f),Re=(g="button",_="."+(p="bs.button"),m=".data-api",v=(d=e).fn[g],y="active","btn",E='[data-toggle^="button"]',T='[data-toggle="buttons"]',"input",".active",".btn",C={CLICK_DATA_API:"click"+_+m,FOCUS_BLUR_DATA_API:"focus"+_+m+" blur"+_+m},D=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=d(this._element).closest(T)[0];if(n){var i=d(this._element).find("input")[0];if(i){if("radio"===i.type)if(i.checked&&d(this._element).hasClass(y))t=!1;else{var r=d(n).find(".active")[0];r&&d(r).removeClass(y)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!d(this._element).hasClass(y),d(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!d(this._element).hasClass(y)),t&&d(this._element).toggleClass(y)},e.dispose=function(){d.removeData(this._element,p),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=d(this).data(p);n||(n=new t(this),d(this).data(p,n)),"toggle"===e&&n[e]()})},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}}]),t}(),d(document).on(C.CLICK_DATA_API,E,function(t){t.preventDefault();var e=t.target;d(e).hasClass("btn")||(e=d(e).closest(".btn")),D._jQueryInterface.call(d(e),"toggle")}).on(C.FOCUS_BLUR_DATA_API,E,function(t){var e=d(t.target).closest(".btn")[0];d(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),d.fn[g]=D._jQueryInterface,d.fn[g].Constructor=D,d.fn[g].noConflict=function(){return d.fn[g]=v,D._jQueryInterface},D),xe=(w="carousel",A="."+(I="bs.carousel"),S=".data-api",N=(b=e).fn[w],O={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},k={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},j="next",P="prev","left","right",M={SLIDE:"slide"+A,SLID:"slid"+A,KEYDOWN:"keydown"+A,MOUSEENTER:"mouseenter"+A,MOUSELEAVE:"mouseleave"+A,TOUCHEND:"touchend"+A,LOAD_DATA_API:"load"+A+S,CLICK_DATA_API:"click"+A+S},"carousel",L="active","slide",R="carousel-item-right",x="carousel-item-left",U="carousel-item-next",H="carousel-item-prev",Q={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"]'},W=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=b(t)[0],this._indicatorsElement=b(this._element).find(Q.INDICATORS)[0],this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(j)},e.nextWhenVisible=function(){!document.hidden&&b(this._element).is(":visible")&&"hidden"!==b(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(P)},e.pause=function(t){t||(this._isPaused=!0),b(this._element).find(Q.NEXT_PREV)[0]&&(Me.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.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))},e.to=function(t){var e=this;this._activeElement=b(this._element).find(Q.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)b(this._element).one(M.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?j:P;this._slide(i,this._items[t])}},e.dispose=function(){b(this._element).off(A),b.removeData(this._element,I),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._getConfig=function(t){return t=o({},O,t),Me.typeCheckConfig(w,t,k),t},e._addEventListeners=function(){var t=this;this._config.keyboard&&b(this._element).on(M.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(b(this._element).on(M.MOUSEENTER,function(e){return t.pause(e)}).on(M.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&b(this._element).on(M.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=b.makeArray(b(t).parent().find(Q.ITEM)),this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===j,i=t===P,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===P?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(b(this._element).find(Q.ACTIVE_ITEM)[0]),r=b.Event(M.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return b(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){b(this._indicatorsElement).find(Q.ACTIVE).removeClass(L);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&b(e).addClass(L)}},e._slide=function(t,e){var n,i,r,o=this,s=b(this._element).find(Q.ACTIVE_ITEM)[0],a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(t===j?(n=x,i=U,r="left"):(n=R,i=H,r="right"),l&&b(l).hasClass(L))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=b.Event(M.SLID,{relatedTarget:l,direction:r,from:a,to:c});if(b(this._element).hasClass("slide")){b(l).addClass(i),Me.reflow(l),b(s).addClass(n),b(l).addClass(n);var f=Me.getTransitionDurationFromElement(s);b(s).one(Me.TRANSITION_END,function(){b(l).removeClass(n+" "+i).addClass(L),b(s).removeClass(L+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return b(o._element).trigger(u)},0)}).emulateTransitionEnd(f)}else b(s).removeClass(L),b(l).addClass(L),this._isSliding=!1,b(this._element).trigger(u);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=b(this).data(I),i=o({},O,b(this).data());"object"==typeof e&&(i=o({},i,e));var r="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),b(this).data(I,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method named "'+r+'"');n[r]()}else i.interval&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=Me.getSelectorFromElement(this);if(n){var i=b(n)[0];if(i&&b(i).hasClass("carousel")){var r=o({},b(i).data(),b(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),t._jQueryInterface.call(b(i),r),s&&b(i).data(I).to(s),e.preventDefault()}}},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return O}}]),t}(),b(document).on(M.CLICK_DATA_API,Q.DATA_SLIDE,W._dataApiClickHandler),b(window).on(M.LOAD_DATA_API,function(){b(Q.DATA_RIDE).each(function(){var t=b(this);W._jQueryInterface.call(t,t.data())})}),b.fn[w]=W._jQueryInterface,b.fn[w].Constructor=W,b.fn[w].noConflict=function(){return b.fn[w]=N,W._jQueryInterface},W),Ue=(K="collapse",V="."+(B="bs.collapse"),q=(F=e).fn[K],Y={toggle:!0,parent:""},G={toggle:"boolean",parent:"(string|element)"},z={SHOW:"show"+V,SHOWN:"shown"+V,HIDE:"hide"+V,HIDDEN:"hidden"+V,CLICK_DATA_API:"click"+V+".data-api"},$="show",X="collapse",Z="collapsing",J="collapsed","width","height",tt={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},et=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=F.makeArray(F('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=F(tt.DATA_TOGGLE),i=0;i<n.length;i++){var r=n[i],o=Me.getSelectorFromElement(r);null!==o&&0<F(o).filter(t).length&&(this._selector=o,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){F(this._element).hasClass($)?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!(this._isTransitioning||F(this._element).hasClass($)||(this._parent&&0===(e=F.makeArray(F(this._parent).find(tt.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),e&&(n=F(e).not(this._selector).data(B))&&n._isTransitioning))){var r=F.Event(z.SHOW);if(F(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(F(e).not(this._selector),"hide"),n||F(e).data(B,null));var o=this._getDimension();F(this._element).removeClass(X).addClass(Z),(this._element.style[o]=0)<this._triggerArray.length&&F(this._triggerArray).removeClass(J).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(o[0].toUpperCase()+o.slice(1)),a=Me.getTransitionDurationFromElement(this._element);F(this._element).one(Me.TRANSITION_END,function(){F(i._element).removeClass(Z).addClass(X).addClass($),i._element.style[o]="",i.setTransitioning(!1),F(i._element).trigger(z.SHOWN)}).emulateTransitionEnd(a),this._element.style[o]=this._element[s]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&F(this._element).hasClass($)){var e=F.Event(z.HIDE);if(F(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",Me.reflow(this._element),F(this._element).addClass(Z).removeClass(X).removeClass($),0<this._triggerArray.length)for(var i=0;i<this._triggerArray.length;i++){var r=this._triggerArray[i],o=Me.getSelectorFromElement(r);null!==o&&(F(o).hasClass($)||F(r).addClass(J).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var s=Me.getTransitionDurationFromElement(this._element);F(this._element).one(Me.TRANSITION_END,function(){t.setTransitioning(!1),F(t._element).removeClass(Z).addClass(X).trigger(z.HIDDEN)}).emulateTransitionEnd(s)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){F.removeData(this._element,B),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=o({},Y,t)).toggle=Boolean(t.toggle),Me.typeCheckConfig(K,t,G),t},e._getDimension=function(){return F(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e=this,n=null;Me.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=F(this._config.parent)[0];var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return F(n).find(i).each(function(n,i){e._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),n},e._addAriaAndCollapsedClass=function(t,e){if(t){var n=F(t).hasClass($);0<e.length&&F(e).toggleClass(J,!n).attr("aria-expanded",n)}},t._getTargetFromElement=function(t){var e=Me.getSelectorFromElement(t);return e?F(e)[0]:null},t._jQueryInterface=function(e){return this.each(function(){var n=F(this),i=n.data(B),r=o({},Y,n.data(),"object"==typeof e&&e);if(!i&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),i||(i=new t(this,r),n.data(B,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return Y}}]),t}(),F(document).on(z.CLICK_DATA_API,tt.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=F(this),n=Me.getSelectorFromElement(this);F(n).each(function(){var t=F(this),n=t.data(B)?"toggle":e.data();et._jQueryInterface.call(t,n)})}),F.fn[K]=et._jQueryInterface,F.fn[K].Constructor=et,F.fn[K].noConflict=function(){return F.fn[K]=q,et._jQueryInterface},et),He=(it="dropdown",ot="."+(rt="bs.dropdown"),st=".data-api",at=(nt=e).fn[it],lt=new RegExp("38|40|27"),ct={HIDE:"hide"+ot,HIDDEN:"hidden"+ot,SHOW:"show"+ot,SHOWN:"shown"+ot,CLICK:"click"+ot,CLICK_DATA_API:"click"+ot+st,KEYDOWN_DATA_API:"keydown"+ot+st,KEYUP_DATA_API:"keyup"+ot+st},ht="disabled",ut="show","dropup","dropright","dropleft",ft="dropdown-menu-right",dt="position-static",gt='[data-toggle="dropdown"]',pt=".dropdown form",_t=".dropdown-menu",".navbar-nav",mt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)","top-start","top-end","bottom-start","bottom-end","right-start","left-start",vt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},yt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Et=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!nt(this._element).hasClass(ht)){var e=t._getParentFromElement(this._element),i=nt(this._menu).hasClass(ut);if(t._clearMenus(),!i){var r={relatedTarget:this._element},o=nt.Event(ct.SHOW,r);if(nt(e).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar){if(void 0===n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=e:Me.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&nt(e).addClass(dt),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===nt(e).closest(".navbar-nav").length&&nt(document.body).children().on("mouseover",null,nt.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),nt(this._menu).toggleClass(ut),nt(e).toggleClass(ut).trigger(nt.Event(ct.SHOWN,r))}}}},e.dispose=function(){nt.removeData(this._element,rt),nt(this._element).off(ot),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;nt(this._element).on(ct.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=o({},this.constructor.Default,nt(this._element).data(),t),Me.typeCheckConfig(it,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);this._menu=nt(e).find(_t)[0]}return this._menu},e._getPlacement=function(){var t=nt(this._element).parent(),e="bottom-start";return t.hasClass("dropup")?(e="top-start",nt(this._menu).hasClass(ft)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":nt(this._menu).hasClass(ft)&&(e="bottom-end"),e},e._detectNavbar=function(){return 0<nt(this._element).closest(".navbar").length},e._getPopperConfig=function(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=o({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},t._jQueryInterface=function(e){return this.each(function(){var n=nt(this).data(rt);if(n||(n=new t(this,"object"==typeof e?e:null),nt(this).data(rt,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=nt.makeArray(nt(gt)),i=0;i<n.length;i++){var r=t._getParentFromElement(n[i]),o=nt(n[i]).data(rt),s={relatedTarget:n[i]};if(o){var a=o._menu;if(nt(r).hasClass(ut)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&nt.contains(r,e.target))){var l=nt.Event(ct.HIDE,s);nt(r).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&nt(document.body).children().off("mouseover",null,nt.noop),n[i].setAttribute("aria-expanded","false"),nt(a).removeClass(ut),nt(r).removeClass(ut).trigger(nt.Event(ct.HIDDEN,s)))}}}},t._getParentFromElement=function(t){var e,n=Me.getSelectorFromElement(t);return n&&(e=nt(n)[0]),e||t.parentNode},t._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||nt(e.target).closest(_t).length)):lt.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!nt(this).hasClass(ht))){var n=t._getParentFromElement(this),i=nt(n).hasClass(ut);if((i||27===e.which&&32===e.which)&&(!i||27!==e.which&&32!==e.which)){var r=nt(n).find(mt).get();if(0!==r.length){var o=r.indexOf(e.target);38===e.which&&0<o&&o--,40===e.which&&o<r.length-1&&o++,o<0&&(o=0),r[o].focus()}}else{if(27===e.which){var s=nt(n).find(gt)[0];nt(s).trigger("focus")}nt(this).trigger("click")}}},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return vt}},{key:"DefaultType",get:function(){return yt}}]),t}(),nt(document).on(ct.KEYDOWN_DATA_API,gt,Et._dataApiKeydownHandler).on(ct.KEYDOWN_DATA_API,_t,Et._dataApiKeydownHandler).on(ct.CLICK_DATA_API+" "+ct.KEYUP_DATA_API,Et._clearMenus).on(ct.CLICK_DATA_API,gt,function(t){t.preventDefault(),t.stopPropagation(),Et._jQueryInterface.call(nt(this),"toggle")}).on(ct.CLICK_DATA_API,pt,function(t){t.stopPropagation()}),nt.fn[it]=Et._jQueryInterface,nt.fn[it].Constructor=Et,nt.fn[it].noConflict=function(){return nt.fn[it]=at,Et._jQueryInterface},Et),Qe=(Ct="modal",bt="."+(Dt="bs.modal"),wt=(Tt=e).fn.modal,It={backdrop:!0,keyboard:!0,focus:!0,show:!0},At={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},St={HIDE:"hide"+bt,HIDDEN:"hidden"+bt,SHOW:"show"+bt,SHOWN:"shown"+bt,FOCUSIN:"focusin"+bt,RESIZE:"resize"+bt,CLICK_DISMISS:"click.dismiss"+bt,KEYDOWN_DISMISS:"keydown.dismiss"+bt,MOUSEUP_DISMISS:"mouseup.dismiss"+bt,MOUSEDOWN_DISMISS:"mousedown.dismiss"+bt,CLICK_DATA_API:"click"+bt+".data-api"},Nt="modal-scrollbar-measure",Ot="modal-backdrop",kt="modal-open",jt="fade","show",Pt={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},Mt=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=Tt(t).find(Pt.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isTransitioning&&!this._isShown){Tt(this._element).hasClass(jt)&&(this._isTransitioning=!0);var n=Tt.Event(St.SHOW,{relatedTarget:t});Tt(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),Tt(document.body).addClass(kt),this._setEscapeEvent(),this._setResizeEvent(),Tt(this._element).on(St.CLICK_DISMISS,Pt.DATA_DISMISS,function(t){return e.hide(t)}),Tt(this._dialog).on(St.MOUSEDOWN_DISMISS,function(){Tt(e._element).one(St.MOUSEUP_DISMISS,function(t){Tt(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var n=Tt.Event(St.HIDE);if(Tt(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=Tt(this._element).hasClass(jt);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Tt(document).off(St.FOCUSIN),Tt(this._element).removeClass("show"),Tt(this._element).off(St.CLICK_DISMISS),Tt(this._dialog).off(St.MOUSEDOWN_DISMISS),i){var r=Me.getTransitionDurationFromElement(this._element);Tt(this._element).one(Me.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(r)}else this._hideModal()}}},e.dispose=function(){Tt.removeData(this._element,Dt),Tt(window,document,this._element,this._backdrop).off(bt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=o({},It,t),Me.typeCheckConfig(Ct,t,At),t},e._showElement=function(t){var e=this,n=Tt(this._element).hasClass(jt);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&Me.reflow(this._element),Tt(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var i=Tt.Event(St.SHOWN,{relatedTarget:t}),r=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,Tt(e._element).trigger(i)};if(n){var o=Me.getTransitionDurationFromElement(this._element);Tt(this._dialog).one(Me.TRANSITION_END,r).emulateTransitionEnd(o)}else r()},e._enforceFocus=function(){var t=this;Tt(document).off(St.FOCUSIN).on(St.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===Tt(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?Tt(this._element).on(St.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||Tt(this._element).off(St.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?Tt(window).on(St.RESIZE,function(e){return t.handleUpdate(e)}):Tt(window).off(St.RESIZE)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){Tt(document.body).removeClass(kt),t._resetAdjustments(),t._resetScrollbar(),Tt(t._element).trigger(St.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(Tt(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=Tt(this._element).hasClass(jt)?jt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Ot,n&&Tt(this._backdrop).addClass(n),Tt(this._backdrop).appendTo(document.body),Tt(this._element).on(St.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&Me.reflow(this._backdrop),Tt(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var i=Me.getTransitionDurationFromElement(this._backdrop);Tt(this._backdrop).one(Me.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){Tt(this._backdrop).removeClass("show");var r=function(){e._removeBackdrop(),t&&t()};if(Tt(this._element).hasClass(jt)){var o=Me.getTransitionDurationFromElement(this._backdrop);Tt(this._backdrop).one(Me.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){Tt(Pt.FIXED_CONTENT).each(function(e,n){var i=Tt(n)[0].style.paddingRight,r=Tt(n).css("padding-right");Tt(n).data("padding-right",i).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px")}),Tt(Pt.STICKY_CONTENT).each(function(e,n){var i=Tt(n)[0].style.marginRight,r=Tt(n).css("margin-right");Tt(n).data("margin-right",i).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px")}),Tt(Pt.NAVBAR_TOGGLER).each(function(e,n){var i=Tt(n)[0].style.marginRight,r=Tt(n).css("margin-right");Tt(n).data("margin-right",i).css("margin-right",parseFloat(r)+t._scrollbarWidth+"px")});var e=document.body.style.paddingRight,n=Tt(document.body).css("padding-right");Tt(document.body).data("padding-right",e).css("padding-right",parseFloat(n)+this._scrollbarWidth+"px")}},e._resetScrollbar=function(){Tt(Pt.FIXED_CONTENT).each(function(t,e){var n=Tt(e).data("padding-right");void 0!==n&&Tt(e).css("padding-right",n).removeData("padding-right")}),Tt(Pt.STICKY_CONTENT+", "+Pt.NAVBAR_TOGGLER).each(function(t,e){var n=Tt(e).data("margin-right");void 0!==n&&Tt(e).css("margin-right",n).removeData("margin-right")});var t=Tt(document.body).data("padding-right");void 0!==t&&Tt(document.body).css("padding-right",t).removeData("padding-right")},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=Nt,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each(function(){var i=Tt(this).data(Dt),r=o({},t.Default,Tt(this).data(),"object"==typeof e&&e);if(i||(i=new t(this,r),Tt(this).data(Dt,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else r.show&&i.show(n)})},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return It}}]),t}(),Tt(document).on(St.CLICK_DATA_API,Pt.DATA_TOGGLE,function(t){var e,n=this,i=Me.getSelectorFromElement(this);i&&(e=Tt(i)[0]);var r=Tt(e).data(Dt)?"toggle":o({},Tt(e).data(),Tt(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=Tt(e).one(St.SHOW,function(t){t.isDefaultPrevented()||s.one(St.HIDDEN,function(){Tt(n).is(":visible")&&n.focus()})});Mt._jQueryInterface.call(Tt(e),r,this)}),Tt.fn.modal=Mt._jQueryInterface,Tt.fn.modal.Constructor=Mt,Tt.fn.modal.noConflict=function(){return Tt.fn.modal=wt,Mt._jQueryInterface},Mt),We=(Rt="tooltip",Ut="."+(xt="bs.tooltip"),Ht=(Lt=e).fn[Rt],Qt="bs-tooltip",Wt=new RegExp("(^|\\s)"+Qt+"\\S+","g"),Bt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(Kt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Ft={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"},"out",Vt={HIDE:"hide"+Ut,HIDDEN:"hidden"+Ut,SHOW:"show"+Ut,SHOWN:"shown"+Ut,INSERTED:"inserted"+Ut,CLICK:"click"+Ut,FOCUSIN:"focusin"+Ut,FOCUSOUT:"focusout"+Ut,MOUSEENTER:"mouseenter"+Ut,MOUSELEAVE:"mouseleave"+Ut},"fade","show",qt=".tooltip-inner",".arrow",Yt="hover","focus","click","manual",Gt=function(){function t(t,e){if(void 0===n)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 e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=Lt(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),Lt(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(Lt(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),Lt.removeData(this.element,this.constructor.DATA_KEY),Lt(this.element).off(this.constructor.EVENT_KEY),Lt(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&Lt(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},e.show=function(){var t=this;if("none"===Lt(this.element).css("display"))throw new Error("Please use show on visible elements");var e=Lt.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){Lt(this.element).trigger(e);var i=Lt.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=Me.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&Lt(r).addClass("fade");var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=!1===this.config.container?document.body:Lt(this.config.container);Lt(r).data(this.constructor.DATA_KEY,this),Lt.contains(this.element.ownerDocument.documentElement,this.tip)||Lt(r).appendTo(l),Lt(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,{placement:a,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),Lt(r).addClass("show"),"ontouchstart"in document.documentElement&&Lt(document.body).children().on("mouseover",null,Lt.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,Lt(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(Lt(this.tip).hasClass("fade")){var h=Me.getTransitionDurationFromElement(this.tip);Lt(this.tip).one(Me.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=Lt.Event(this.constructor.Event.HIDE),r=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),Lt(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(Lt(this.element).trigger(i),!i.isDefaultPrevented()){if(Lt(n).removeClass("show"),"ontouchstart"in document.documentElement&&Lt(document.body).children().off("mouseover",null,Lt.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,Lt(this.tip).hasClass("fade")){var o=Me.getTransitionDurationFromElement(n);Lt(n).one(Me.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){Lt(this.getTipElement()).addClass(Qt+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||Lt(this.config.template)[0],this.tip},e.setContent=function(){var t=Lt(this.getTipElement());this.setElementContent(t.find(qt),this.getTitle()),t.removeClass("fade show")},e.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?Lt(e).parent().is(t)||t.empty().append(e):t.text(Lt(e).text()):t[n?"html":"text"](e)},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getAttachment=function(t){return Kt[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)Lt(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var n=e===Yt?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===Yt?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;Lt(t.element).on(n,t.config.selector,function(e){return t._enter(e)}).on(i,t.config.selector,function(e){return t._leave(e)})}Lt(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._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",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||Lt(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),Lt(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":Yt]=!0),Lt(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){"show"===e._hoverState&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||Lt(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),Lt(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":Yt]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){return"number"==typeof(t=o({},this.constructor.Default,Lt(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()),Me.typeCheckConfig(Rt,t,this.constructor.DefaultType),t},e._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},e._cleanTipClass=function(){var t=Lt(this.getTipElement()),e=t.attr("class").match(Wt);null!==e&&0<e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(Lt(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=Lt(this).data(xt),i="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,i),Lt(this).data(xt,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return Bt}},{key:"NAME",get:function(){return Rt}},{key:"DATA_KEY",get:function(){return xt}},{key:"Event",get:function(){return Vt}},{key:"EVENT_KEY",get:function(){return Ut}},{key:"DefaultType",get:function(){return Ft}}]),t}(),Lt.fn[Rt]=Gt._jQueryInterface,Lt.fn[Rt].Constructor=Gt,Lt.fn[Rt].noConflict=function(){return Lt.fn[Rt]=Ht,Gt._jQueryInterface},Gt),Fe=($t="popover",Zt="."+(Xt="bs.popover"),Jt=(zt=e).fn[$t],te="bs-popover",ee=new RegExp("(^|\\s)"+te+"\\S+","g"),ne=o({},We.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ie=o({},We.DefaultType,{content:"(string|element|function)"}),"fade",re=".popover-header",oe=".popover-body",se={HIDE:"hide"+Zt,HIDDEN:"hidden"+Zt,SHOW:"show"+Zt,SHOWN:"shown"+Zt,INSERTED:"inserted"+Zt,CLICK:"click"+Zt,FOCUSIN:"focusin"+Zt,FOCUSOUT:"focusout"+Zt,MOUSEENTER:"mouseenter"+Zt,MOUSELEAVE:"mouseleave"+Zt},ae=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){zt(this.getTipElement()).addClass(te+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||zt(this.config.template)[0],this.tip},o.setContent=function(){var t=zt(this.getTipElement());this.setElementContent(t.find(re),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(oe),e),t.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=zt(this.getTipElement()),e=t.attr("class").match(ee);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(t){return this.each(function(){var e=zt(this).data(Xt),n="object"==typeof t?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new i(this,n),zt(this).data(Xt,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return ne}},{key:"NAME",get:function(){return $t}},{key:"DATA_KEY",get:function(){return Xt}},{key:"Event",get:function(){return se}},{key:"EVENT_KEY",get:function(){return Zt}},{key:"DefaultType",get:function(){return ie}}]),i}(We),zt.fn[$t]=ae._jQueryInterface,zt.fn[$t].Constructor=ae,zt.fn[$t].noConflict=function(){return zt.fn[$t]=Jt,ae._jQueryInterface},ae),Ke=(ce="scrollspy",ue="."+(he="bs.scrollspy"),fe=(le=e).fn[ce],de={offset:10,method:"auto",target:""},ge={offset:"number",method:"string",target:"(string|element)"},pe={ACTIVATE:"activate"+ue,SCROLL:"scroll"+ue,LOAD_DATA_API:"load"+ue+".data-api"},_e="dropdown-item",me="active",ve={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},"offset",ye="position",Ee=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ve.NAV_LINKS+","+this._config.target+" "+ve.LIST_ITEMS+","+this._config.target+" "+ve.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,le(this._scrollElement).on(pe.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":ye,n="auto"===this._config.method?e:this._config.method,i=n===ye?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),le.makeArray(le(this._selector)).map(function(t){var e,r=Me.getSelectorFromElement(t);if(r&&(e=le(r)[0]),e){var o=e.getBoundingClientRect();if(o.width||o.height)return[le(e)[n]().top+i,r]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){le.removeData(this._element,he),le(this._scrollElement).off(ue),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=o({},de,t)).target){var e=le(t.target).attr("id");e||(e=Me.getUID(ce),le(t.target).attr("id",e)),t.target="#"+e}return Me.typeCheckConfig(ce,t,ge),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",");e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var n=le(e.join(","));n.hasClass(_e)?(n.closest(ve.DROPDOWN).find(ve.DROPDOWN_TOGGLE).addClass(me),n.addClass(me)):(n.addClass(me),n.parents(ve.NAV_LIST_GROUP).prev(ve.NAV_LINKS+", "+ve.LIST_ITEMS).addClass(me),n.parents(ve.NAV_LIST_GROUP).prev(ve.NAV_ITEMS).children(ve.NAV_LINKS).addClass(me)),le(this._scrollElement).trigger(pe.ACTIVATE,{relatedTarget:t})},e._clear=function(){le(this._selector).filter(ve.ACTIVE).removeClass(me)},t._jQueryInterface=function(e){return this.each(function(){var n=le(this).data(he);if(n||(n=new t(this,"object"==typeof e&&e),le(this).data(he,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}},{key:"Default",get:function(){return de}}]),t}(),le(window).on(pe.LOAD_DATA_API,function(){for(var t=le.makeArray(le(ve.DATA_SPY)),e=t.length;e--;){var n=le(t[e]);Ee._jQueryInterface.call(n,n.data())}}),le.fn[ce]=Ee._jQueryInterface,le.fn[ce].Constructor=Ee,le.fn[ce].noConflict=function(){return le.fn[ce]=fe,Ee._jQueryInterface},Ee),Be=(De="."+(Ce="bs.tab"),be=(Te=e).fn.tab,we={HIDE:"hide"+De,HIDDEN:"hidden"+De,SHOW:"show"+De,SHOWN:"shown"+De,CLICK_DATA_API:"click"+De+".data-api"},Ie="dropdown-menu",Ae="active","disabled","fade","show",".dropdown",Se=".nav, .list-group",".active",Ne="> li > .active",Oe='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',ke=".dropdown-toggle",je="> .dropdown-menu .active",Pe=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&Te(this._element).hasClass(Ae)||Te(this._element).hasClass("disabled"))){var e,n,i=Te(this._element).closest(Se)[0],r=Me.getSelectorFromElement(this._element);if(i){var o="UL"===i.nodeName?Ne:".active";n=(n=Te.makeArray(Te(i).find(o)))[n.length-1]}var s=Te.Event(we.HIDE,{relatedTarget:this._element}),a=Te.Event(we.SHOW,{relatedTarget:n});if(n&&Te(n).trigger(s),Te(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=Te(r)[0]),this._activate(this._element,i);var l=function(){var e=Te.Event(we.HIDDEN,{relatedTarget:t._element}),i=Te.Event(we.SHOWN,{relatedTarget:n});Te(n).trigger(e),Te(t._element).trigger(i)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){Te.removeData(this._element,Ce),this._element=null},e._activate=function(t,e,n){var i=this,r=("UL"===e.nodeName?Te(e).find(Ne):Te(e).children(".active"))[0],o=n&&r&&Te(r).hasClass("fade"),s=function(){return i._transitionComplete(t,r,n)};if(r&&o){var a=Me.getTransitionDurationFromElement(r);Te(r).one(Me.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},e._transitionComplete=function(t,e,n){if(e){Te(e).removeClass("show "+Ae);var i=Te(e.parentNode).find(je)[0];i&&Te(i).removeClass(Ae),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(Te(t).addClass(Ae),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Me.reflow(t),Te(t).addClass("show"),t.parentNode&&Te(t.parentNode).hasClass(Ie)){var r=Te(t).closest(".dropdown")[0];r&&Te(r).find(ke).addClass(Ae),t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each(function(){var n=Te(this),i=n.data(Ce);if(i||(i=new t(this),n.data(Ce,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},r(t,null,[{key:"VERSION",get:function(){return"4.1.0"}}]),t}(),Te(document).on(we.CLICK_DATA_API,Oe,function(t){t.preventDefault(),Pe._jQueryInterface.call(Te(this),"show")}),Te.fn.tab=Pe._jQueryInterface,Te.fn.tab.Constructor=Pe,Te.fn.tab.noConflict=function(){return Te.fn.tab=be,Pe._jQueryInterface},Pe);!function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=Me,t.Alert=Le,t.Button=Re,t.Carousel=xe,t.Collapse=Ue,t.Dropdown=He,t.Modal=Qe,t.Popover=Fe,t.Scrollspy=Ke,t.Tab=Be,t.Tooltip=We,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){t.fn.calendar=function(e,n){var i=t(this);return"date"!==e||n?"query:date"!==e||n?this.each(function(){switch((n=n instanceof Date?n:i.prop("query")||new Date).setHours(0,0,0,0),e){case"date":t.fn.calendar.change.apply(this,[n]);break;case"query:date":t.fn.calendar.query.apply(this,[n]);break;case"query:nextMonth":t.fn.calendar.query.apply(this,[n.addMonths(1)]);break;case"query:nextYear":t.fn.calendar.query.apply(this,[n.addYears(1)]);break;case"query:previousMonth":t.fn.calendar.query.apply(this,[n.addMonths(-1)]);break;case"query:previousYear":t.fn.calendar.query.apply(this,[n.addYears(-1)]);break;default:t.fn.calendar.modal.apply(this,[n])}}):i.prop("query"):i.prop("date")}}(jQuery),function(t){t.fn.camera=function(e){return this.each(function(){switch(e){case"play":t.fn.camera.play.apply(this);break;case"stop":t.fn.camera.stop.apply(this);break;case"snapshot":t.fn.camera.snapshot.apply(this)}})}}(jQuery),function(t){t.fn.chat=function(){return this.each(function(){var e=t(window),n=t(".app-content"),i=t(this),r=i.find(".chat-messages");e.on("resize",function(){var e=0;n.children().each(function(){t(this).is(".chat")||(e+=t(this).outerHeight(!0))}),i.height(n.height()-e),i.addClass("chat-on"),r.scrollToBottom()}),e.trigger("resize")})}}(jQuery),function(t){t.fn.fileManager=function(){return this.each(function(){var e=t(this),n=t("<input/>").attr("type","file");n.on("change",function(){var i=n.get(0).files[0];i&&(t.fn.fileManager.validate(i,e),t.fn.fileManager.read(i,function(){e.trigger("file:change",i)}))}),e.on("click",function(){n.trigger("click")})})}}(jQuery),$(function(){$("input").typing(),$(".as-input").asInput(),$(".chat").chat(),$(".modal-calendar").calendar(),$('[data-toggle="popover"]').popover(),$('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="suggestion"]').suggestion(),$('[data-toggle="file-manager"]').fileManager()}),function(t){t.fn.asInput=function(){return this.each(function(){var e=t(this),n=e.find("input"),i=function(){e.toggleClass("disabled",n.is("[disabled]")),e.toggleClass("readonly",n.is("[readonly]"))};e.on("click",function(){n.focus()}),n.on("focus",function(){e.addClass("focus")}).on("blur",function(){e.removeClass("focus")}).observe(i),i()})}}(jQuery),function(t){t.fn.suggestion=function(e){return this.each(function(){(function(){t(this).data("suggestion:initialized")||(t.fn.suggestion.select.apply(this),t.fn.suggestion.change.apply(this),t(this).is("[data-async]")?t.fn.suggestion.async.apply(this):t.fn.suggestion.static.apply(this),t(this).data("suggestion:initialized",!0))}).apply(this),"refresh"===e&&t.fn.suggestion.refresh.apply(this)})}}(jQuery),$(function(){$('[data-toggle="sidebar"]').on("click",function(){$(".app-sidebar").addClass("sidebar-open")}),$('[data-dismiss="sidebar"]').on("click",function(){$(".app-sidebar").removeClass("sidebar-open")})}),function(t){t.fn.calendar.change=function(e){var n=t(this);n.prop("date",e),t.fn.calendar.query.apply(n,[e]),n.trigger("calendar:change",e)}}(jQuery),function(t){t.fn.calendar.modal=function(e){var n=t(this),i=n.find(".modal-header"),r=n.find(".modal-body"),o=i.find(".dropdown-toggle"),s=i.find(".dropdown-menu"),a=i.find("[data-calendar-month=previous]"),l=i.find("[data-calendar-month=next]"),c=i.find(".form-control"),h=r.find("[data-calendar-link=today]"),u=r.find("[data-calendar-link=selected]");n.on("calendar:each",function(e,i){var r=n.calendar("date"),o=new Date;o.setHours(0,0,0,0),t(e.relatedTarget).toggleClass("active",!!r&&i.getTime()===r.getTime()).toggleClass("today",i.getTime()===o.getTime()).toggleClass("sunday",0===i.getDay())}),n.on("calendar:query",function(e,n){var i=n.getMonth(),r=t(s.find("a").get(i));o.prop("month",n.getMonth()).text(r.text()),c.val(n.getFullYear())}),s.find("a").on("click",function(e){var i=Number(c.val()),r=Number(t(this).attr("data-calendar-month"));n.calendar("query:date",new Date(i,r,1)),e.preventDefault()}),l.on("click",function(){n.calendar("query:nextMonth")}),a.on("click",function(){n.calendar("query:previousMonth")}),h.on("click",function(){n.calendar("query:date",new Date)}),u.on("click",function(){var t=n.calendar("date");n.calendar("query:date",t)}),c.on("keydown",function(t){var e=t.keyCode||t.which,i=keyboard(e);i.isArrowUp&&n.calendar("query:nextYear"),i.isArrowDown&&n.calendar("query:previousYear")}).on("keypress",function(t){var e=t.keyCode||t.which;keyboard(e).isNumber||t.preventDefault()}).on("input",function(){var t=c.val();if(/^\d{4}$/.test(t)){var e=Number(t),i=Number(o.prop("month"));n.calendar("query:date",new Date(e,i,1))}})}}(jQuery),jQuery.fn.calendar.period=function(t,e){var n=new Date(t,e,1),i=new Date(t,e+1,0),r=new Date(n);r.setDate(n.getDate()-n.getDay());var o=new Date(i);return o.setDate(i.getDate()+(6-i.getDay())),{firstDateInMonth:n,lastDateInMonth:i,firstDate:r,lastDate:o}},function(t){t.fn.calendar.query=function(e){for(var n=t(this),i=n.find(".table-calendar"),r=t("<tbody>"),o=t.fn.calendar.period(e.getFullYear(),e.getMonth()),s=o.firstDate;s<=o.lastDate;){for(var a=t("<tr>"),l=0;l<7;l++){var c=t("<td>"),h=t.Event("calendar:each");if(s.getMonth()===o.firstDateInMonth.getMonth()){var u=t("<a>").attr("href","#").prop("date",s).text(s.getDate()).on("click",function(e){t.fn.calendar.change.apply(n,[t(this).prop("date")]),e.preventDefault()});h.relatedTarget=u.get(0),c.append(u)}else c.text(s.getDate());a.append(c),n.trigger(h,s),s=s.addDays(1)}r.append(a)}i.find("tbody").remove(),i.append(r),n.prop("query",e).trigger("calendar:query",e)}}(jQuery),jQuery.fn.camera.toBlob=function(t){var e;e=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):unescape(t.split(",")[1]);for(var n=t.split(",")[0].split(":")[1].split(";")[0],i=new Uint8Array(e.length),r=0;r<e.length;r++)i[r]=e.charCodeAt(r);return new Blob([i],{type:n})},jQuery.fn.camera.link=function(t,e){if("srcObject"in t)t.srcObject=e;else if(navigator.mozGetUserMedia)t.mozSrcObject=e;else{var n=window.URL||window.webkitURL||window.mozURL||window.msURL;t.src=n.createObjectURL(e)}},function(t){navigator.getSupportedUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,t.fn.camera.isSupported=function(){return!!navigator.getSupportedUserMedia},t.fn.camera.getUserMedia=function(t,e,n){return navigator.getSupportedUserMedia(t,e,n)}}(jQuery),function(t){t.fn.camera.play=function(){var e=t(this);if(!e.prop("playing")){var n=e.get(0);t.fn.camera.isSupported()?t.fn.camera.getUserMedia({video:!0,audio:!1},function(i){t.fn.camera.link(n,i),n.play(),e.prop("stream",i),e.prop("playing",!0),e.trigger("camera:play")},function(t){e.trigger("camera:error",t)}):e.trigger("camera:notSupported")}}}(jQuery),function(t){var e=/^(\d+)x(\d+)$/gi;t.fn.camera.snapshot=function(){var n=t(this);if(n.prop("playing")){var i=n.get(0),r=function(t){if(!t||!t.match(e))return{width:320,height:240};var n=e.exec(t);return{width:n[1],height:n[2]}}(n.attr("data-size")),o=document.createElement("canvas");o.width=r.width,o.height=r.height;var s=o.getContext("2d");s.translate(r.width,0),s.scale(-1,1),s.drawImage(i,0,0,r.width,r.height);var a=o.toDataURL(),l=t.fn.camera.toBlob(a);l.dataURL=a,n.trigger("camera:snapshot",l)}}}(jQuery),function(t){t.fn.camera.stop=function(){var e=t(this);if(e.prop("playing")){var n=e.prop("stream");if(n.getVideoTracks&&"function"==typeof n.getVideoTracks){var i=n.getVideoTracks();i&&i[0]&&i[0].stop&&i[0].stop()}else n.stop&&n.stop();e.prop("playing",!1),e.prop("stream",null),e.trigger("camera:stop")}}}(jQuery),Date.prototype.addDays=function(t){var e=new Date(this.getTime());return e.setDate(this.getDate()+t),e},Date.prototype.addMonths=function(t){var e=this.getFullYear(),n=this.getMonth()+t,i=new Date(e,n,1),r=new Date(e,n+1,0);return this.getDate()>r.getDate()?i.setDate(r.getDate()):i.setDate(this.getDate()),i},Date.prototype.addYears=function(t){var e=new Date(this.getTime());return e.setFullYear(this.getFullYear()+t),e},function(){var t=/\d/,e=/[a-zA-Z]/;window.keyboard=function(n){var i=String.fromCharCode(n);return{isArrowDown:40===n,isArrowUp:38===n,isBackspace:8===n,isDelete:46===n||63272===n,isEnter:13===n,isEscape:27===n,isLetter:e.test(i),isNumber:t.test(i)}}}(),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.indexOf(t,e)===e}),String.prototype.contains=function(t){return new RegExp(t,"i").test(this)},String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t,"g"),e)},function(t){var e=/^(\d*\.?\d+)(B|KB|MB|GB)?$/gi,n={B:0,KB:1,MB:2,GB:3};jQuery.fn.fileManager.maxsize=function(t,i){if(!i)return!0;if(!i.match(e))return!1;var r=e.exec(i),o=r[1],s=r[2];return t.size<=(a=o,l=s,Number(a)*Math.pow(1024,n[l]));var a,l}}(),jQuery.fn.fileManager.read=function(t,e){var n=new FileReader;n.readAsDataURL(t),n.onload=function(n){t.dataURL=n.target.result,e()}},jQuery.fn.fileManager.type=function(t,e){if(!e)return!0;var n="^"+e.replaceAll(",","|")+"$";return new RegExp(n).test(t.type)},function(t){t.fn.fileManager.validate=function(e,n){var i=n.attr("data-maxsize"),r=n.attr("data-type");e.errors=[],t.fn.fileManager.maxsize(e,i)||e.errors.push("maxsize"),t.fn.fileManager.type(e,r)||e.errors.push("type")}}(jQuery),function(t){t.fn.suggestion.async=function(){var e=t(this),n=e.closest(".input-suggestion").find(".input-suggestion-list"),i=n.find(".list-group.items").hide(),r=n.find(".list-group.empty").hide(),o=n.find(".list-group.loading").hide();e.on("input",function(){o.show(),r.hide(),i.hide()}).on("input:delay suggestion:show",function(){e.trigger("suggestion:search")})}}(jQuery),function(t){t.fn.suggestion.change=function(){var e=t(this),n=e.closest(".input-suggestion"),i=n.find(".input-suggestion-list").find(".list-group.items").children(),r=function(n){e.val(t.fn.suggestion.textOf(n)),e.trigger("suggestion:change",n)};i.on("click",function(){n.removeClass("open"),r(this)}),e.on("keypress",function(t){var e=t.keyCode||t.which;if(keyboard(e).isEnter){var n=i.filter(".active");n.length&&r(n.filter(".active"))}})}}(jQuery),function(t){t.fn.suggestion.refresh=function(){var e=t(this).closest(".input-suggestion").find(".input-suggestion-list"),n=e.find(".list-group.items").hide(),i=e.find(".list-group.empty").hide(),r=e.find(".list-group.loading").hide();t(this).is("[data-async]")&&(t.fn.suggestion.change.apply(this),n.children().length?n.show():i.show(),r.hide())}}(jQuery),function(t){t.fn.suggestion.select=function(){var e=t(this),n=e.closest(".input-suggestion"),i=n.find(".input-suggestion-list").find(".list-group.items"),r=function(){n.is(".open")||(i.children().removeClass("active"),n.addClass("open"),e.trigger("suggestion:show"))},o=function(){n.is(".open")&&(n.removeClass("open"),e.trigger("suggestion:hide"))};n.onFocusOut(o),e.on("input",r).on("keyup",function(t){var e=t.keyCode||t.which;keyboard(e).isEscape&&o()}).on("keydown",function(t){var e=t.keyCode||t.which,o=keyboard(e);if(o.isArrowUp||o.isArrowDown){if(t.preventDefault(),!n.is(".open"))return void r();var s=i.children(".active");if(o.isArrowDown){if(s.is(":last-child"))return;s.length?(s.removeClass("active"),s.next().addClass("active")):i.children().eq(0).addClass("active")}if(o.isArrowUp){if(s.is(":first-child"))return;s.removeClass("active"),s.prev().addClass("active")}}}).on("suggestion:change",o)}}(jQuery),function(t){t.fn.suggestion.static=function(){var e=t(this),n=e.closest(".input-suggestion").find(".input-suggestion-list"),i=n.find(".list-group.empty").hide(),r=n.find(".list-group.items"),o=r.children(),s=[],a=function(){o.removeClass("active"),s.forEach(function(t){var e=t.data("prev");e.length?t.insertAfter(e):r.prepend(t)}),s=[],o.each(function(){var n=t(this);t.fn.suggestion.textOf(n).contains(e.val())||(s.push(n),n.data("prev",n.prev()))}),s.forEach(function(t){t.detach()}),r.children().length?(i.hide(),r.show()):(r.hide(),i.show())};e.on("input",a).on("suggestion:show",a)}}(jQuery),function(t){t.fn.suggestion.textOf=function(e){var n=t(e),i=n.closest(".input-suggestion").find("input");return i.is("[data-text]")&&(n=n.find(i.attr("data-text"))),n.text().trim()}}(jQuery),function(t){t.fn.onFocusOut=function(e){return this.each(function(){var n=t(document),i=t(this);function r(n){t(n.target).closest(i).length||"function"==typeof e&&e.call(this)}n.on("click",r),n.find("input").on("focus",r),n.find("select").on("focus",r),n.find("textarea").on("focus",r),n.find("button").on("focus",r),n.find("a").on("focus",r)})}}(jQuery),function(t){t.fn.observe=function(e){var n=new MutationObserver(function(t){t.forEach(function(t){e.apply(t.target)})});return this.each(function(){var i=t(this);i.on("DOMAttrModified onpropertychange",function(){e.apply(this)}),n.observe(i.get(0),{attributes:!0})})}}(jQuery),function(t){t.fn.scrollToBottom=function(){return this.each(function(){var e=t(this),n=e.prop("scrollHeight");e.scrollTop(n)})}}(jQuery),function(t){t.fn.typing=function(){return this.each(function(){var e=t(this),n=null;e.on("input",function(){clearTimeout(n),n=setTimeout(function(){e.trigger("input:delay")},700)})})}}(jQuery);