(function(t,e){typeof exports==="object"&&typeof module!=="undefined"?module.exports=e(require("jquery")):typeof define==="function"&&define.amd?define(["jquery"],e):(t=t||self,t.Util=e(t.jQuery))})(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;var e="transitionend";var n=1e6;var r=1e3;function o(t){return{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function i(){return{bindType:e,delegateType:e,handle:function e(n){if(t(n.target).is(this)){return n.handleObj.handler.apply(this,arguments)}return undefined}}}function a(e){var n=this;var r=false;t(this).one(f.TRANSITION_END,function(){r=true});setTimeout(function(){if(!r){f.triggerTransitionEnd(n)}},e);return this}function u(){t.fn.emulateTransitionEnd=a;t.event.special[f.TRANSITION_END]=i()}var f={TRANSITION_END:"bsTransitionEnd",getUID:function t(e){do{e+=~~(Math.random()*n)}while(document.getElementById(e));return e},getSelectorFromElement:function t(e){var n=e.getAttribute("data-target");if(!n||n==="#"){var r=e.getAttribute("href");n=r&&r!=="#"?r.trim():""}try{return document.querySelector(n)?n:null}catch(t){return null}},getTransitionDurationFromElement:function e(n){if(!n){return 0}var o=t(n).css("transition-duration");var i=t(n).css("transition-delay");var a=parseFloat(o);var u=parseFloat(i);if(!a&&!u){return 0}o=o.split(",")[0];i=i.split(",")[0];return(parseFloat(o)+parseFloat(i))*r},reflow:function t(e){return e.offsetHeight},triggerTransitionEnd:function n(r){t(r).trigger(e)},supportsTransitionEnd:function t(){return Boolean(e)},isElement:function t(e){return(e[0]||e).nodeType},typeCheckConfig:function t(e,n,r){for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){var a=r[i];var u=n[i];var d=u&&f.isElement(u)?"element":o(u);if(!new RegExp(a).test(d)){throw new Error(e.toUpperCase()+": "+('Option "'+i+'" provided type "'+d+'" ')+('but expected type "'+a+'".'))}}}},findShadowRoot:function t(e){if(!document.documentElement.attachShadow){return null}if(typeof e.getRootNode==="function"){var n=e.getRootNode();return n instanceof ShadowRoot?n:null}if(e instanceof ShadowRoot){return e}if(!e.parentNode){return null}return f.findShadowRoot(e.parentNode)}};u();return f}); //# sourceMappingURL=util.map.js