import n from"../../prop-types/index.js";function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:undefined;return t?n.split(" ").map((function(n){return t[n]||n})).join(" "):n}function o(n,t){var e={};return Object.keys(n).forEach((function(o){-1===t.indexOf(o)&&(e[o]=n[o])})),e}function r(n,t){for(var e,o=Array.isArray(t)?t:[t],r=o.length,i={};r>0;)i[e=o[r-=1]]=n[e];return i}var i={};function u(n){i[n]||("undefined"!=typeof console&&console.error(n),i[n]=!0)}function c(n,t){return function(e,o,r){null!==e[o]&&void 0!==e[o]&&u('"'.concat(o,'" property of "').concat(r,'" has been deprecated.\n').concat(t));for(var i=arguments.length,c=new Array(i>3?i-3:0),f=3;f<i;f++)c[f-3]=arguments[f];return n.apply(void 0,[e,o,r].concat(c))}}var f="object"===("undefined"==typeof window?"undefined":t(window))&&window.Element||function(){};function a(n,t,e){if(!(n[t]instanceof f))return new Error("Invalid prop `"+t+"` supplied to `"+e+"`. Expected prop to be an instance of Element. Validation failed.")}var l=n.oneOfType([n.string,n.func,a,n.shape({current:n.any})]),d=n.oneOfType([n.func,n.string,n.shape({$$typeof:n.symbol,render:n.func}),n.arrayOf(n.oneOfType([n.func,n.string,n.shape({$$typeof:n.symbol,render:n.func})]))]),p={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},y=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],s={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},b=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],m=!("undefined"==typeof window||!window.document||!window.document.createElement);function h(n){return!(!n||"object"!==t(n))&&"current"in n}function g(n){var e=t(n);return null!=n&&("object"===e||"function"===e)}function v(n){if(!g(n))return!1;var t=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}(n);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}function w(n){if(h(n))return n.current;if(v(n))return n();if("string"==typeof n&&m){var t=document.querySelectorAll(n);if(t.length||(t=document.querySelectorAll("#".concat(n))),!t.length)throw new Error("The target '".concat(n,"' could not be identified in the dom, tip: check spelling"));return t}return n}function E(n){return null!==n&&(Array.isArray(n)||m&&"number"==typeof n.length)}function j(n,t){var e=w(n);return t?E(e)?e:null===e?[]:[e]:E(e)?e[0]:e}export{a as DOMElement,b as PopperPlacements,y as TransitionPropTypeKeys,p as TransitionTimeouts,m as canUseDOM,c as deprecated,w as findDOMElements,j as getTarget,E as isArrayOrNodeList,v as isFunction,g as isObject,h as isReactRefObj,s as keyCodes,e as mapToCssModules,o as omit,r as pick,d as tagPropType,l as targetPropType,u as warnOnce};
//# sourceMappingURL=utils.js.map
