2017-05-12 21:44:43 +02:00
|
|
|
var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function o(Te){return''!==Te&&!isNaN(parseFloat(Te))&&isFinite(Te)}function r(Te,Ne){Object.keys(Ne).forEach(function(We){var De='';-1!==['width','height','top','right','bottom','left'].indexOf(We)&&o(Ne[We])&&(De='px'),Te.style[We]=Ne[We]+De})}function s(Te){return Te&&'[object Function]'==={}.toString.call(Te)}function p(Te,Ne){if(1!==Te.nodeType)return[];var We=window.getComputedStyle(Te,null);return Ne?We[Ne]:We}function d(Te){return'HTML'===Te.nodeName?Te:Te.parentNode||Te.host}function f(Te){if(!Te||-1!==['HTML','BODY','#document'].indexOf(Te.nodeName))return window.document.body;var Ne=p(Te),We=Ne.overflow,De=Ne.overflowX,He=Ne.overflowY;return /(auto|scroll)/.test(We+He+De)?Te:f(d(Te))}function l(Te){var Ne=Te.nodeName;return'BODY'!==Ne&&('HTML'===Ne||Te.firstElementChild.offsetParent===Te)}function m(Te){return null===Te.parentNode?Te:m(Te.parentNode)}function c(Te){var Ne=Te&&Te.offsetParent,We=Ne&&Ne.nodeName;return We&&'BODY'!==We&&'HTML'!==We?Ne:window.document.documentElement}function h(Te,Ne){if(!Te||!Te.nodeType||!Ne||!Ne.nodeType)return window.document.documentElement;var We=Te.compareDocumentPosition(Ne)&Node.DOCUMENT_POSITION_FOLLOWING,De=We?Te:Ne,He=We?Ne:Te,Pe=document.createRange();Pe.setStart(De,0),Pe.setEnd(He,0);var ke=Pe.commonAncestorContainer;if(Te!==ke&&Ne!==ke||De.contains(He))return l(ke)?ke:c(ke);var Be=m(Te);return Be.host?h(Be.host,Ne):h(Te,m(Ne).host)}function u(Te){var Ne=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',We='top'===Ne?'scrollTop':'scrollLeft',De=Te.nodeName;if('BODY'===De||'HTML'===De){var He=window.document.documentElement,Pe=window.document.scrollingElement||He;return Pe[We]}return Te[We]}function g(Te,Ne){var We=2<arguments.length&&void 0!==arguments[2]&&arguments[2],De=u(Ne,'top'),He=u(Ne,'left'),Pe=We?-1:1;return Te.top+=De*Pe,Te.bottom+=De*Pe,Te.left+=He*Pe,Te.right+=He*Pe,Te}function E(Te,Ne){var We='x'===Ne?'Left':'Top',De='Left'==We?'Right':'Bottom';return+Te['border'+We+'Width'].split('px')[0]+ +Te['border'+De+'Width'].split('px')[0]}function v(){var Te=window.document.body,Ne=window.document.documentElement;return{height:_Mathmax(Te.scrollHeight,Te.offsetHeight,Ne.clientHeight,Ne.scrollHeight,Ne.offsetHeight),width:_Mathmax(Te.scrollWidth,Te.offsetWidth,Ne.clientWidth,Ne.scrollWidth,Ne.offsetWidth)}}function w(Te){return ye({},Te,{right:Te.left+Te.width,bottom:Te.top+Te.height})}function O(Te){var Ne={};if(ve())try{Ne=Te.getBoundingClientRect();var We=u(Te,'top'),De=u(Te,'left');Ne.top+=We,Ne.left+=De,Ne.bottom+=We,Ne.right+=De}catch(Ue){}else Ne=Te.getBoundingClientRect();var He={left:Ne.left,top:Ne.top,width:Ne.right-Ne.left,height:Ne.bottom-Ne.top},Pe='HTML'===Te.nodeName?v():{},ke=Pe.width||Te.clientWidth||He.right-He.left,Be=Pe.height||Te.clientHeight||He.bottom-He.top,Me=Te.offsetWidth-ke,Ie=Te.offsetHeight-Be;if(Me||Ie){var Ae=p(Te);Me-=E(Ae,'x'),Ie-=E(Ae,'y'),He.width-=Me,He.height-=Ie}return w(He)}function L(Te,Ne){var We=ve(),De='HTML'===Ne.nodeName,He=O(Te),Pe=O(Ne),ke=f(Te),Be=w({top:He.top-Pe.top,left:He.left-Pe.left,width:He.width,height:He.height});if(De||'BODY'===Ne.nodeName){var Me=p(Ne),Ie=We&&De?0:+Me.borderTopWidth.split('px')[0],Ae=We&&De?0:+Me.borderLeftWidth.split('px')[0],Ue=We&&De?0:+Me.marginTop.split('px')[0],Ye=We&&De?0:+Me.marginLeft.split('px')[0];Be.top-=Ie-Ue,Be.bottom-=Ie-Ue,Be.left-=Ae-Ye,Be.right-=Ae-Ye,Be.marginTop=Ue,Be.marginLeft=Ye}return Ne.contains(ke)&&(We||'BODY'!==ke.nodeName)&&(Be=g(Be,Ne)),Be}function S(Te){var Ne=window.document.documentElement,We=L(Te,Ne),De=_Mathmax(Ne.clientWidth,window.innerWidth||0),He=_Mathmax(Ne.clientHeight,window.innerHeight||0),Pe=u(Ne),ke=u(Ne,'left'),Be={top:Pe-We.top+We.marginTop,left:ke-We.left+We.marginLeft,width:De,height:He};return w(Be)}function C(Te){var Ne=Te.nodeName;return'BODY'===Ne||'HTML'===Ne?!1:'fix
|