var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;(function(c,d){'object'==typeof exports&&'undefined'!=typeof module?module.exports=d():'function'==typeof define&&define.amd?define(d):c.Popper=d()})(this,function(){'use strict';function e(wa){return''!==wa&&!isNaN(parseFloat(wa))&&isFinite(wa)}function f(wa,xa){Object.keys(xa).forEach(function(ya){var za='';-1!==['width','height','top','right','bottom','left'].indexOf(ya)&&e(xa[ya])&&(za='px'),wa.style[ya]=xa[ya]+za})}function g(wa){for(var xa=[!1,'ms','webkit','moz','o'],ya=wa.charAt(0).toUpperCase()+wa.slice(1),za=0;zaza[Ea]&&!xa.escapeWithReference&&(Ga=_Mathmin(Ba[Fa],za[Ea]-('right'===Ea?Ba.width:Ba.height))),la({},Fa,Ga)}};return Aa.forEach(function(Da){var Ea=-1===['left','top'].indexOf(Da)?'secondary':'primary';Ba=ma({},Ba,Ca[Ea](Da))}),wa.offsets.popper=Ba,wa},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,function:function(wa){var xa=u(wa.offsets.popper),ya=wa.offsets.reference,za=wa.placement.split('-')[0],Aa=_Mathfloor,Ba=-1!==['top','bottom'].indexOf(za),Ca=Ba?'right':'bottom',Da=Ba?'left':'top',Ea=Ba?'width':'height';return xa[Ca]Aa(ya[Ca])&&(wa.offsets.popper[Da]=Aa(ya[Ca])),wa}},arrow:{order:500,enabled:!0,function:function(wa,xa){if(!S(wa.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`!'),wa;var ya=xa.element;if('string'==typeof ya){if(ya=wa.instance.popper.querySelector(ya),!ya)return wa;}else if(!wa.instance.popper.contains(ya))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),wa;var za=wa.placement.split('-')[0],Aa=u(wa.offsets.popper),Ba=wa.offsets.reference,Ca=-1!==['left','right'].indexOf(za),Da=Ca?'height':'width',Ea=Ca?'top':'left',Fa=Ca?'left':'top',Ga=Ca?'bottom':'right',Ha=A(ya)[Da];Ba[Ga]-HaAa[Ga]&&(wa.offsets.popper[Ea]+=Ba[Ea]+Ha-Aa[Ga]);var Ia=Ba[Ea]+Ba[Da]/2-Ha/2,Ja=Ia-u(wa.offsets.popper)[Ea];return Ja=_Mathmax(_Mathmin(Aa[Da]-Ha,Ja),0),wa.arrowElement=ya,wa.offsets.arrow={},wa.offsets.arrow[Ea]=Ja,wa.offsets.arrow[Fa]='',wa},element:'[x-arrow]'},flip:{order:600,enabled:!0,function:function(wa,xa){if(K(wa.instance.modifiers,'inner'))return wa;if(wa.flipped&&wa.placement===wa.originalPlacement)return wa;var ya=N(wa.instance.popper,wa.instance.reference,xa.padding,xa.boundariesElement),za=wa.placement.split('-')[0],Aa=B(za),Ba=wa.placement.split('-')[1]||'',Ca=[];switch(xa.behavior){case sa.FLIP:Ca=[za,Aa];break;case sa.CLOCKWISE:Ca=V(za);break;case sa.COUNTERCLOCKWISE:Ca=V(za,!0);break;default:Ca=xa.behavior;}return Ca.forEach(function(Da,Ea){if(za!==Da||Ca.length===Ea+1)return wa;za=wa.placement.split('-')[0],Aa=B(za);var Fa=u(wa.offsets.popper),Ga=wa.offsets.reference,Ha=_Mathfloor,Ia='left'===za&&Ha(Fa.right)>Ha(Ga.left)||'right'===za&&Ha(Fa.left)Ha(Ga.top)||'bottom'===za&&Ha(Fa.top)Ha(ya.right),La=Ha(Fa.top)Ha(ya.bottom),Na='left'===za&&Ja||'right'===za&&Ka||'top'===za&&La||'bottom'===za&&Ma,Oa=-1!==['top','bottom'].indexOf(za),Pa=!!xa.flipVariations&&(Oa&&'start'===Ba&&Ja||Oa&&'end'===Ba&&Ka||!Oa&&'start'===Ba&&La||!Oa&&'end'===Ba&&Ma);(Ia||Na||Pa)&&(wa.flipped=!0,(Ia||Na)&&(za=Ca[Ea+1]),Pa&&(Ba=U(Ba)),wa.placement=za+(Ba?'-'+Ba:''),wa.offsets.popper=C(wa.instance.state.position,wa.instance.popper,wa.offsets.reference,wa.placement),wa=J(wa.instance.modifiers,wa,'flip'))}),wa},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,function:function(wa){var xa=wa.placement,ya=xa.split('-')[0],za=u(wa.offsets.popper),Aa=u(wa.offsets.reference),Ba=-1!==['left','right'].indexOf(ya),Ca=-1===['top','left'].indexOf(ya);return za[Ba?'left':'top']=Aa[xa]-(Ca?za[Ba?'width':'height']:0),wa.placement=B(xa),wa.offsets.popper=u(za),wa}},hide:{order:800,enabled:!0,function:function(wa){if(!S(wa.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!'),wa;var xa=wa.offsets.reference,ya=H(wa.instance.modifiers,function(za){return'preventOverflow'===za.name}).boundaries;if(xa.bottomya.right||xa.top>ya.bottom||xa.right