/*!
  * Bootstrap toast.js v4.3.1 (https://getbootstrap.com/)
  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
(function(b,a){typeof exports==="object"&&typeof module!=="undefined"?module.exports=a(require("jquery"),require("./util.js")):typeof define==="function"&&define.amd?define(["jquery","./util.js"],a):(b=b||self,b.Toast=a(b.jQuery,b.Util))}(this,function(f,j){f=f&&f.hasOwnProperty("default")?f["default"]:f;j=j&&j.hasOwnProperty("default")?j["default"]:j;function o(u,s){for(var r=0;r<s.length;r++){var t=s[r];t.enumerable=t.enumerable||false;t.configurable=true;if("value" in t){t.writable=true}Object.defineProperty(u,t.key,t)}}function e(t,r,s){if(r){o(t.prototype,r)}if(s){o(t,s)}return t}function d(t,r,s){if(r in t){Object.defineProperty(t,r,{value:s,enumerable:true,configurable:true,writable:true})}else{t[r]=s}return t}function m(u){for(var s=1;s<arguments.length;s++){var t=arguments[s]!=null?arguments[s]:{};var r=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(t).filter(function(v){return Object.getOwnPropertyDescriptor(t,v).enumerable}))}r.forEach(function(v){d(u,v,t[v])})}return u}var p="toast";var q="4.3.1";var l="bs.toast";var c="."+l;var b=f.fn[p];var k={CLICK_DISMISS:"click.dismiss"+c,HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c};var i={FADE:"fade",HIDE:"hide",SHOW:"show",SHOWING:"showing"};var n={animation:"boolean",autohide:"boolean",delay:"number"};var g={animation:true,autohide:true,delay:500};var a={DATA_DISMISS:'[data-dismiss="toast"]'};var h=function(){function x(C,B){this._element=C;this._config=this._getConfig(B);this._timeout=null;this._setListeners()}var v=x.prototype;v.show=function y(){var D=this;f(this._element).trigger(k.SHOW);if(this._config.animation){this._element.classList.add(i.FADE)}var C=function C(){D._element.classList.remove(i.SHOWING);D._element.classList.add(i.SHOW);f(D._element).trigger(k.SHOWN);if(D._config.autohide){D.hide()}};this._element.classList.remove(i.HIDE);this._element.classList.add(i.SHOWING);if(this._config.animation){var B=j.getTransitionDurationFromElement(this._element);f(this._element).one(j.TRANSITION_END,C).emulateTransitionEnd(B)}else{C()}};v.hide=function u(B){var C=this;if(!this._element.classList.contains(i.SHOW)){return}f(this._element).trigger(k.HIDE);if(B){this._close()}else{this._timeout=setTimeout(function(){C._close()},this._config.delay)}};v.dispose=function z(){clearTimeout(this._timeout);this._timeout=null;if(this._element.classList.contains(i.SHOW)){this._element.classList.remove(i.SHOW)}f(this._element).off(k.CLICK_DISMISS);f.removeData(this._element,l);this._element=null;this._config=null};v._getConfig=function w(B){B=m({},g,f(this._element).data(),typeof B==="object"&&B?B:{});j.typeCheckConfig(p,B,this.constructor.DefaultType);return B};v._setListeners=function A(){var B=this;f(this._element).on(k.CLICK_DISMISS,a.DATA_DISMISS,function(){return B.hide(true)})};v._close=function r(){var D=this;var C=function C(){D._element.classList.add(i.HIDE);f(D._element).trigger(k.HIDDEN)};this._element.classList.remove(i.SHOW);if(this._config.animation){var B=j.getTransitionDurationFromElement(this._element);f(this._element).one(j.TRANSITION_END,C).emulateTransitionEnd(B)}else{C()}};x._jQueryInterface=function t(B){return this.each(function(){var C=f(this);var E=C.data(l);var D=typeof B==="object"&&B;if(!E){E=new x(this,D);C.data(l,E)}if(typeof B==="string"){if(typeof E[B]==="undefined"){throw new TypeError('No method named "'+B+'"')}E[B](this)}})};e(x,null,[{key:"VERSION",get:function s(){return q}},{key:"DefaultType",get:function s(){return n}},{key:"Default",get:function s(){return g}}]);return x}();f.fn[p]=h._jQueryInterface;f.fn[p].Constructor=h;f.fn[p].noConflict=function(){f.fn[p]=b;return h._jQueryInterface};return h}));