mirror of https://github.com/twbs/bootstrap.git
3 lines
18 KiB
JavaScript
3 lines
18 KiB
JavaScript
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(Ee){return''!==Ee&&!isNaN(parseFloat(Ee))&&isFinite(Ee)}function r(Ee,Oe){Object.keys(Oe).forEach(function(Le){var Se='';-1!==['width','height','top','right','bottom','left'].indexOf(Le)&&o(Oe[Le])&&(Se='px'),Ee.style[Le]=Oe[Le]+Se})}function s(Ee){for(var Oe=[!1,'ms','webkit','moz','o'],Le=Ee.charAt(0).toUpperCase()+Ee.slice(1),Se=0;Se<Oe.length-1;Se++){var Ce=Oe[Se],Ne=Ce?''+Ce+Le:Ee;if('undefined'!=typeof window.document.body.style[Ne])return Ne}return null}function p(Ee){var Oe=Ee.nodeName;return'BODY'!==Oe&&('HTML'===Oe||Ee.firstElementChild.offsetParent===Ee)}function f(Ee){return null===Ee.parentNode?Ee:f(Ee.parentNode)}function d(Ee){var Oe=Ee&&Ee.offsetParent,Le=Oe&&Oe.nodeName;return Le&&'BODY'!==Le&&'HTML'!==Le?Oe:window.document.documentElement}function l(Ee,Oe){if(!Ee||!Ee.nodeType||!Oe||!Oe.nodeType)return window.document.documentElement;var Le=Ee.compareDocumentPosition(Oe)&Node.DOCUMENT_POSITION_FOLLOWING,Se=Le?Ee:Oe,Ce=Le?Oe:Ee,Ne=document.createRange();Ne.setStart(Se,0),Ne.setEnd(Ce,0);var Te=Ne.commonAncestorContainer;if(Ee!==Te&&Oe!==Te)return p(Te)?Te:d(Te);var We=f(Ee);return We.host?l(We.host,Oe):l(Ee,f(Oe).host)}function m(Ee,Oe){if(1!==Ee.nodeType)return[];var Le=window.getComputedStyle(Ee,null);return Oe?Le[Oe]:Le}function c(Ee){var Oe=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',Le='top'===Oe?'scrollTop':'scrollLeft',Se=Ee.nodeName;if('BODY'===Se||'HTML'===Se){var Ce=window.document.documentElement,Ne=window.document.scrollingElement||Ce;return Ne[Le]}return Ee[Le]}function h(Ee,Oe){var Le=2<arguments.length&&void 0!==arguments[2]&&arguments[2],Se=c(Oe,'top'),Ce=c(Oe,'left'),Ne=Le?-1:1;return Ee.top+=Se*Ne,Ee.bottom+=Se*Ne,Ee.left+=Ce*Ne,Ee.right+=Ce*Ne,Ee}function u(Ee){return'HTML'===Ee.nodeName?Ee:Ee.parentNode||Ee.host}function g(Ee){if(!Ee||-1!==['HTML','BODY','#document'].indexOf(Ee.nodeName))return window.document.body;var Oe=m(Ee),Le=Oe.overflow,Se=Oe.overflowX,Ce=Oe.overflowY;return /(auto|scroll)/.test(Le+Ce+Se)?Ee:g(u(Ee))}function w(Ee,Oe){var Le='x'===Oe?'Left':'Top',Se='Left'==Le?'Right':'Bottom';return+Ee['border'+Le+'Width'].split('px')[0]+ +Ee['border'+Se+'Width'].split('px')[0]}function v(){var Ee=window.document.body,Oe=window.document.documentElement;return{height:_Mathmax(Ee.scrollHeight,Ee.offsetHeight,Oe.clientHeight,Oe.scrollHeight,Oe.offsetHeight),width:_Mathmax(Ee.scrollWidth,Ee.offsetWidth,Oe.clientWidth,Oe.scrollWidth,Oe.offsetWidth)}}function E(Ee){return me({},Ee,{right:Ee.left+Ee.width,bottom:Ee.top+Ee.height})}function O(Ee){var Oe={};if(he)try{Oe=Ee.getBoundingClientRect();var Le=c(Ee,'top'),Se=c(Ee,'left');Oe.top+=Le,Oe.left+=Se,Oe.bottom+=Le,Oe.right+=Se}catch(He){}else Oe=Ee.getBoundingClientRect();var Ce={left:Oe.left,top:Oe.top,width:Oe.right-Oe.left,height:Oe.bottom-Oe.top},Ne='HTML'===Ee.nodeName?v():{},Te=Ne.width||Ee.clientWidth||Ce.right-Ce.left,We=Ne.height||Ee.clientHeight||Ce.bottom-Ce.top,De=Ee.offsetWidth-Te,ke=Ee.offsetHeight-We;if(De||ke){var Pe=m(Ee);De-=w(Pe,'x'),ke-=w(Pe,'y'),Ce.width-=De,Ce.height-=ke}return E(Ce)}function L(Ee,Oe){var Le='HTML'===Oe.nodeName,Se=O(Ee),Ce=O(Oe),Ne=g(Ee),Te=E({top:Se.top-Ce.top,left:Se.left-Ce.left,width:Se.width,height:Se.height});if(Le||'BODY'===Oe.nodeName){var We=m(Oe),De=ue&&Le?0:+We.borderTopWidth.split('px')[0],ke=ue&&Le?0:+We.borderLeftWidth.split('px')[0],Pe=ue&&Le?0:+We.marginTop.split('px')[0],He=ue&&Le?0:+We.marginLeft.split('px')[0];Te.top-=De-Pe,Te.bottom-=De-Pe,Te.left-=ke-He,Te.right-=ke-He,Te.marginTop=Pe,Te.marginLeft=He}return Oe.contains(Ne)&&(ue||'BODY'!==Ne.nodeName)&&(Te=h(Te,Oe)),Te}function S(Ee,Oe,Le){var Se=l(Oe,Le);return L(Le,Se)}function C(Ee){var Oe=window.getComputedStyle(Ee),Le=parseFloat(Oe.marginTop)+parseFloat(Oe.marginBottom),Se=parseFloat(Oe.marginLeft)+parseFloat(Oe.marginRight),Ce={width:Ee.offsetWidth+Se,height:Ee.offsetHeight+Le};return Ce}function N(Ee){var Oe={left:'right',right:'left',bottom:'top',top:'bottom'};return Ee.replace(/left|right|bottom|top/g,function(Le){return Oe[Le]})}function T(Ee,Oe,Le,Se){Se=Se.split('-')[0];var Ce=C(Oe),Ne={position:Ee,width:Ce.width,height:Ce.height},Te=-1!==['right','left'].indexOf(Se),We=Te?'top':'left',De=Te?'left':'top',ke=Te?'height':'width',Pe=Te?'width':'height';return Ne[We]=Le[We]+Le[ke]/2-Ce[ke]/2,Ne[De]=Se===De?Le[De]-Ce[Pe]:Le[N(De)],Ne}function W(Ee){return Ee&&'[object Function]'==={}.toString.call(Ee)}function D(Ee,Oe,Le,Se){var Ce='BODY'===Ee.nodeName,Ne=Ce?window:Ee;Ne.addEventListener(Oe,Le,{passive:!0}),Ce||D(g(Ne.parentNode),Oe,Le,Se),Se.push(Ne)}function k(Ee,Oe,Le,Se){Le.updateBound=Se,window.addEventListener('resize',Le.updateBound,{passive:!0});var Ce=g(Ee);return D(Ce,'scroll',Le.updateBound,Le.scrollParents),Le.scrollElement=Ce,Le.eventsEnabled=!0,Le}function P(Ee,Oe){return window.removeEventListener('resize',Oe.updateBound),Oe.scrollParents.forEach(function(Le){Le.removeEventListener('scroll',Oe.updateBound)}),Oe.updateBound=null,Oe.scrollParents=[],Oe.scrollElement=null,Oe.eventsEnabled=!1,Oe}function H(Ee,Oe){return Array.prototype.find?Ee.find(Oe):Ee.filter(Oe)[0]}function B(Ee,Oe,Le){if(Array.prototype.findIndex)return Ee.findIndex(function(Ce){return Ce[Oe]===Le});var Se=H(Ee,function(Ce){return Ce[Oe]===Le});return Ee.indexOf(Se)}function I(Ee,Oe,Le){var Se=void 0===Le?Ee:Ee.slice(0,B(Ee,'name',Le));return Se.forEach(function(Ce){Ce.enabled&&W(Ce.function)&&(Oe=Ce.function(Oe,Ce))}),Oe}function M(Ee,Oe){return Ee.some(function(Le){var Se=Le.name,Ce=Le.enabled;return Ce&&Se===Oe})}function A(Ee){var Oe=window.document.documentElement,Le=L(Ee,Oe),Se=_Mathmax(Oe.clientWidth,window.innerWidth||0),Ce=_Mathmax(Oe.clientHeight,window.innerHeight||0),Ne=c(Oe),Te=c(Oe,'left'),We={top:Ne-Le.top+Le.marginTop,left:Te-Le.left+Le.marginLeft,width:Se,height:Ce};return E(We)}function R(Ee){var Oe=Ee.nodeName;return'BODY'===Oe||'HTML'===Oe?!1:'fixed'===m(Ee,'position')||R(u(Ee))}function U(Ee,Oe,Le,Se){var Ce={top:0,left:0},Ne=l(Ee,Oe);if('viewport'===Se)Ce=A(Ne);else{var Te;'scrollParent'===Se?(Te=g(u(Ee)),'BODY'===Te.nodeName&&(Te=window.document.documentElement)):'window'===Se?Te=window.document.documentElement:Te=Se;var We=L(Te,Ne);if('HTML'===Te.nodeName&&!R(Ne)){var De=v(),ke=De.height,Pe=De.width;Ce.top+=We.top-We.marginTop,Ce.bottom=ke+We.top,Ce.left+=We.left-We.marginLeft,Ce.right=Pe+We.left}else Ce=We}return Ce.left+=Le,Ce.top+=Le,Ce.right-=Le,Ce.bottom-=Le,Ce}function Y(Ee,Oe,Le,Se){if(-1===Ee.indexOf('auto'))return Ee;var Ce=U(Le,Se,0,'scrollParent'),Ne={top:Oe.top-Ce.top,right:Ce.right-Oe.right,bottom:Ce.bottom-Oe.bottom,left:Oe.left-Ce.left},Te=Object.keys(Ne).sort(function(De,ke){return Ne[ke]-Ne[De]})[0],We=Ee.split('-')[1];return Te+(We?'-'+We:'')}function F(Ee,Oe){Object.keys(Oe).forEach(function(Le){var Se=Oe[Le];!1===Se?Ee.removeAttribute(Le):Ee.setAttribute(Le,Oe[Le])})}function K(Ee,Oe,Le){var Se=H(Ee,function(Ce){var Ne=Ce.name;return Ne===Oe});return!!Se&&Ee.some(function(Ce){return Ce.name===Le&&Ce.enabled&&Ce.order<Se.order})}function z(Ee){return'end'===Ee?'start':'start'===Ee?'end':Ee}function V(Ee){var Oe=1<arguments.length&&void 0!==arguments[1]&&arguments[1],Le=be.indexOf(Ee),Se=be.slice(Le+1).concat(be.slice(0,Le));return Oe?Se.reverse():Se}for(var te=['native code','[object MutationObserverConstructor]'],oe=function(Ee){return te.some(function(Oe){return-1<(Ee||'').toString().indexOf(Oe)})},ne='undefined'!=typeof window,re=['Edge','Trident','Firefox'],ie=0,se=0;se<re.length;se+=1)if(ne&&0<=navigator.userAgent.indexOf(re[se])){ie=1;break}var pe=ne&&oe(window.MutationObserver),ae=pe?function(Ee){var Oe=!1,Le=0,Se=document.createElement('span'),Ce=new MutationObserver(function(){Ee(),Oe=!1});return Ce.observe(Se,{attributes:!0}),function(){Oe||(Oe=!0,Se.setAttribute('x-index',Le),++Le)}}:function(Ee){var Oe=!1;return function(){Oe||(Oe=!0,setTimeout(function(){Oe=!1,Ee()},ie))}},fe=function(Ee,Oe){if(!(Ee instanceof Oe))throw new TypeError('Cannot call a class as a function')},de=function(){function Ee(Oe,Le){for(var Ce,Se=0;Se<Le.length;Se++)Ce=Le[Se],Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,'value'in Ce&&(Ce.writable=!0),Object.defineProperty(Oe,Ce.key,Ce)}return function(Oe,Le,Se){return Le&&Ee(Oe.prototype,Le),Se&&Ee(Oe,Se),Oe}}(),le=function(Ee,Oe,Le){return Oe in Ee?Object.defineProperty(Ee,Oe,{value:Le,enumerable:!0,configurable:!0,writable:!0}):Ee[Oe]=Le,Ee},me=Object.assign||function(Ee){for(var Le,Oe=1;Oe<arguments.length;Oe++)for(var Se in Le=arguments[Oe],Le)Object.prototype.hasOwnProperty.call(Le,Se)&&(Ee[Se]=Le[Se]);return Ee},ce=function(){return-1!==navigator.appVersion.indexOf('MSIE 10')},he=ce(),ue=ce(),ge=['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'],be=ge.slice(3),ye={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ve=function(){function Ee(Oe,Le){var Se=this,Ce=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};fe(this,Ee),this.scheduleUpdate=function(){return requestAnimationFrame(Se.update)},this.update=ae(this.update.bind(this)),this.options=me({},Ee.Defaults,Ce),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=Oe.jquery?Oe[0]:Oe,this.popper=Le.jquery?Le[0]:Le,r(this.popper,{position:'absolute'}),this.modifiers=Object.keys(Ee.Defaults.modifiers).map(function(Te){return me({name:Te},Ee.Defaults.modifiers[Te])}),this.modifiers=this.modifiers.map(function(Te){var We=Ce.modifiers&&Ce.modifiers[Te.name]||{};return me({},Te,We)}),Ce.modifiers&&(this.options.modifiers=me({},Ee.Defaults.modifiers,Ce.modifiers),Object.keys(Ce.modifiers).forEach(function(Te){if(void 0===Ee.Defaults.modifiers[Te]){var We=Ce.modifiers[Te];We.name=Te,Se.modifiers.push(We)}})),this.modifiers=this.modifiers.sort(function(Te,We){return Te.order-We.order}),this.modifiers.forEach(function(Te){Te.enabled&&W(Te.onLoad)&&Te.onLoad(Se.reference,Se.popper,Se.options,Te,Se.state)}),this.update();var Ne=this.options.eventsEnabled;Ne&&this.enableEventListeners(),this.state.eventsEnabled=Ne}return de(Ee,[{key:'update',value:function(){if(!this.state.isDestroyed){var Le={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};Le.offsets.reference=S(this.state,this.popper,this.reference),Le.placement=Y(this.options.placement,Le.offsets.reference,this.popper,this.reference),Le.originalPlacement=this.options.placement,Le.offsets.popper=T(this.state,this.popper,Le.offsets.reference,Le.placement),Le=I(this.modifiers,Le),this.state.isCreated?this.options.onUpdate(Le):(this.state.isCreated=!0,this.options.onCreate(Le))}}},{key:'destroy',value:function(){return this.state.isDestroyed=!0,M(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[s('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}},{key:'enableEventListeners',value:function(){this.state.eventsEnabled||(this.state=k(this.reference,this.options,this.state,this.scheduleUpdate))}},{key:'disableEventListeners',value:function(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=P(this.reference,this.state))}}]),Ee}();return ve.Utils=window.PopperUtils,ve.placements=ge,ve.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,function:function(Ee){var Oe=Ee.placement,Le=Oe.split('-')[0],Se=Oe.split('-')[1];if(Se){var Ce=Ee.offsets.reference,Ne=E(Ee.offsets.popper),Te=-1!==['bottom','top'].indexOf(Le),We=Te?'left':'top',De=Te?'width':'height',ke={start:le({},We,Ce[We]),end:le({},We,Ce[We]+Ce[De]-Ne[De])};Ee.offsets.popper=me({},Ne,ke[Se])}return Ee}},offset:{order:200,enabled:!0,function:function(Ee,Oe){var Ce,Le=Ee.placement,Se=Ee.offsets.popper;return o(Oe.offset)?Ce=[Oe.offset,0]:(Ce=Oe.offset.split(' '),Ce=Ce.map(function(Ne,Te){var We=Ne.match(/(\d*\.?\d*)(.*)/),De=+We[1],ke=We[2],Pe=-1!==Le.indexOf('right')||-1!==Le.indexOf('left');1===Te&&(Pe=!Pe);var He=Pe?'height':'width';if(0===ke.indexOf('%')){var Be;switch(ke){case'%p':Be=Ee.offsets.popper;break;case'%':case'$r':default:Be=Ee.offsets.reference;}var Ie=E(Be),Me=Ie[He];return Me/100*De}if('vh'===ke||'vw'===ke){var Ae;return Ae='vh'===ke?_Mathmax(document.documentElement.clientHeight,window.innerHeight||0):_Mathmax(document.documentElement.clientWidth,window.innerWidth||0),Ae/100*De}return'px'===ke?+De:+Ne})),-1===Ee.placement.indexOf('left')?-1===Ee.placement.indexOf('right')?-1===Ee.placement.indexOf('top')?-1!==Ee.placement.indexOf('bottom')&&(Se.left+=Ce[0],Se.top+=Ce[1]||0):(Se.left+=Ce[0],Se.top-=Ce[1]||0):(Se.top+=Ce[0],Se.left+=Ce[1]||0):(Se.top+=Ce[0],Se.left-=Ce[1]||0),Ee},offset:0},preventOverflow:{order:300,enabled:!0,function:function(Ee,Oe){var Le=Oe.boundariesElement||d(Ee.instance.popper),Se=U(Ee.instance.popper,Ee.instance.reference,Oe.padding,Le);Oe.boundaries=Se;var Ce=Oe.priority,Ne=E(Ee.offsets.popper),Te={primary:function(De){var ke=Ne[De];return Ne[De]<Se[De]&&!Oe.escapeWithReference&&(ke=_Mathmax(Ne[De],Se[De])),le({},De,ke)},secondary:function(De){var ke='right'===De?'left':'top',Pe=Ne[ke];return Ne[De]>Se[De]&&!Oe.escapeWithReference&&(Pe=_Mathmin(Ne[ke],Se[De]-('right'===De?Ne.width:Ne.height))),le({},ke,Pe)}};return Ce.forEach(function(We){var De=-1===['left','top'].indexOf(We)?'secondary':'primary';Ne=me({},Ne,Te[De](We))}),Ee.offsets.popper=Ne,Ee},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,function:function(Ee){var Oe=E(Ee.offsets.popper),Le=Ee.offsets.reference,Se=Ee.placement.split('-')[0],Ce=_Mathfloor,Ne=-1!==['top','bottom'].indexOf(Se),Te=Ne?'right':'bottom',We=Ne?'left':'top',De=Ne?'width':'height';return Oe[Te]<Ce(Le[We])&&(Ee.offsets.popper[We]=Ce(Le[We])-Oe[De]),Oe[We]>Ce(Le[Te])&&(Ee.offsets.popper[We]=Ce(Le[Te])),Ee}},arrow:{order:500,enabled:!0,function:function(Ee,Oe){if(!K(Ee.instance.modifiers,'arrow','keepTogether'))return console.warn('WARNING: `keepTogether` modifier is required by arrow modifier in order to work, be sure to include it before `arrow`!'),Ee;var Le=Oe.element;if('string'==typeof Le){if(Le=Ee.instance.popper.querySelector(Le),!Le)return Ee;}else if(!Ee.instance.popper.contains(Le))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),Ee;var Se=Ee.placement.split('-')[0],Ce=E(Ee.offsets.popper),Ne=Ee.offsets.reference,Te=-1!==['left','right'].indexOf(Se),We=Te?'height':'width',De=Te?'top':'left',ke=Te?'left':'top',Pe=Te?'bottom':'right',He=C(Le)[We];Ne[Pe]-He<Ce[De]&&(Ee.offsets.popper[De]-=Ce[De]-(Ne[Pe]-He)),Ne[De]+He>Ce[Pe]&&(Ee.offsets.popper[De]+=Ne[De]+He-Ce[Pe]);var Be=Ne[De]+Ne[We]/2-He/2,Ie=Be-E(Ee.offsets.popper)[De];return Ie=_Mathmax(_Mathmin(Ce[We]-He,Ie),0),Ee.arrowElement=Le,Ee.offsets.arrow={},Ee.offsets.arrow[De]=Ie,Ee.offsets.arrow[ke]='',Ee},element:'[x-arrow]'},flip:{order:600,enabled:!0,function:function(Ee,Oe){if(M(Ee.instance.modifiers,'inner'))return Ee;if(Ee.flipped&&Ee.placement===Ee.originalPlacement)return Ee;var Le=U(Ee.instance.popper,Ee.instance.reference,Oe.padding,Oe.boundariesElement),Se=Ee.placement.split('-')[0],Ce=N(Se),Ne=Ee.placement.split('-')[1]||'',Te=[];switch(Oe.behavior){case ye.FLIP:Te=[Se,Ce];break;case ye.CLOCKWISE:Te=V(Se);break;case ye.COUNTERCLOCKWISE:Te=V(Se,!0);break;default:Te=Oe.behavior;}return Te.forEach(function(We,De){if(Se!==We||Te.length===De+1)return Ee;Se=Ee.placement.split('-')[0],Ce=N(Se);var ke=E(Ee.offsets.popper),Pe=Ee.offsets.reference,He=_Mathfloor,Be='left'===Se&&He(ke.right)>He(Pe.left)||'right'===Se&&He(ke.left)<He(Pe.right)||'top'===Se&&He(ke.bottom)>He(Pe.top)||'bottom'===Se&&He(ke.top)<He(Pe.bottom),Ie=He(ke.left)<He(Le.left),Me=He(ke.right)>He(Le.right),Ae=He(ke.top)<He(Le.top),Re=He(ke.bottom)>He(Le.bottom),Ue='left'===Se&&Ie||'right'===Se&&Me||'top'===Se&&Ae||'bottom'===Se&&Re,Ye=-1!==['top','bottom'].indexOf(Se),Fe=!!Oe.flipVariations&&(Ye&&'start'===Ne&&Ie||Ye&&'end'===Ne&&Me||!Ye&&'start'===Ne&&Ae||!Ye&&'end'===Ne&&Re);(Be||Ue||Fe)&&(Ee.flipped=!0,(Be||Ue)&&(Se=Te[De+1]),Fe&&(Ne=z(Ne)),Ee.placement=Se+(Ne?'-'+Ne:''),Ee.offsets.popper=T(Ee.instance.state.position,Ee.instance.popper,Ee.offsets.reference,Ee.placement),Ee=I(Ee.instance.modifiers,Ee,'flip'))}),Ee},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,function:function(Ee){var Oe=Ee.placement,Le=Oe.split('-')[0],Se=E(Ee.offsets.popper),Ce=E(Ee.offsets.reference),Ne=-1!==['left','right'].indexOf(Le),Te=-1===['top','left'].indexOf(Le);return Se[Ne?'left':'top']=Ce[Oe]-(Te?Se[Ne?'width':'height']:0),Ee.placement=N(Oe),Ee.offsets.popper=E(Se),Ee}},hide:{order:800,enabled:!0,function:function(Ee){if(!K(Ee.instance.modifiers,'hide','preventOverflow'))return console.warn('WARNING: preventOverflow modifier is required by hide modifier in order to work, be sure to include it before hide!'),Ee;var Oe=Ee.offsets.reference,Le=H(Ee.instance.modifiers,function(Se){return'preventOverflow'===Se.name}).boundaries;if(Oe.bottom<Le.top||Oe.left>Le.right||Oe.top>Le.bottom||Oe.right<Le.left){if(!0===Ee.hide)return Ee;Ee.hide=!0,Ee.attributes['x-out-of-boundaries']=''}else{if(!1===Ee.hide)return Ee;Ee.hide=!1,Ee.attributes['x-out-of-boundaries']=!1}return Ee}},applyStyle:{order:900,enabled:!0,function:function(Ee,Oe){var Le={position:Ee.offsets.popper.position},Se={'x-placement':Ee.placement},Ce=_Mathround(Ee.offsets.popper.left),Ne=_Mathround(Ee.offsets.popper.top),Te=s('transform');return Oe.gpuAcceleration&&Te?(Le[Te]='translate3d('+Ce+'px, '+Ne+'px, 0)',Le.top=0,Le.left=0,Le.willChange='transform'):(Le.left=Ce,Le.top=Ne,Le.willChange='top, left'),r(Ee.instance.popper,me({},Le,Ee.styles)),F(Ee.instance.popper,me({},Se,Ee.attributes)),Ee.offsets.arrow&&r(Ee.arrowElement,Ee.offsets.arrow),Ee},onLoad:function(Ee,Oe,Le,Se,Ce){var Ne=S(Ce,Oe,Ee);return Le.placement=Y(Le.placement,Ne,Oe,Ee),Oe.setAttribute('x-placement',Le.placement),Le},gpuAcceleration:!0}}},ve});
|
|
|
|
//# sourceMappingURL=popper.min.js.map
|