All Downloads are FREE. Search and download functionalities are using the official Maven repository.

toserve.fobo.popper.1.12.9.js.esm.popper-utils.min.js Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
/*
 Copyright (C) Federico Zivolo 2017
 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
 */function a(a,b){if(1!==a.nodeType)return[];var c=getComputedStyle(a,null);return b?c[b]:c}function b(a){return'HTML'===a.nodeName?a:a.parentNode||a.host}function c(d){if(!d)return document.body;switch(d.nodeName){case'HTML':case'BODY':return d.ownerDocument.body;case'#document':return d.body;}var e=a(d),f=e.overflow,g=e.overflowX,h=e.overflowY;return /(auto|scroll)/.test(f+h+g)?d:c(b(d))}function d(b){var c=b&&b.offsetParent,e=c&&c.nodeName;return e&&'BODY'!==e&&'HTML'!==e?-1!==['TD','TABLE'].indexOf(c.nodeName)&&'static'===a(c,'position')?d(c):c:b?b.ownerDocument.documentElement:document.documentElement}function e(a){var b=a.nodeName;return'BODY'!==b&&('HTML'===b||d(a.firstElementChild)===a)}function f(a){return null===a.parentNode?a:f(a.parentNode)}function g(a,b){if(!a||!a.nodeType||!b||!b.nodeType)return document.documentElement;var c=a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING,h=c?a:b,i=c?b:a,j=document.createRange();j.setStart(h,0),j.setEnd(i,0);var k=j.commonAncestorContainer;if(a!==k&&b!==k||h.contains(i))return e(k)?k:d(k);var l=f(a);return l.host?g(l.host,b):g(a,f(b).host)}function h(a){var b=1=c.clientWidth&&d>=c.clientHeight}),k=0




© 2015 - 2024 Weber Informatics LLC | Privacy Policy