!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";for(var e="undefined"!=typeof window&&"undefined"!=typeof document,t=["Edge","Trident","Firefox"],n=0,o=0;o=o.clientWidth&&n>=o.clientHeight}),d=0f[e]&&!o.escapeWithReference&&(n=Math.min(l[t],f[e]-("right"===e?l.width:l.height))),x({},t,n)}};return p.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=O({},l,d[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",f=a?"left":"top",p=a?"width":"height";return n[s]i(o[s])&&(e.offsets.popper[f]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!q(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,f=-1!==["left","right"].indexOf(r),p=f?"height":"width",l=f?"Top":"Left",d=l.toLowerCase(),u=f?"left":"top",c=f?"bottom":"right",h=H(o)[p];s[c]-ha[c]&&(e.offsets.popper[d]+=s[d]+h-a[c]),e.offsets.popper=L(e.offsets.popper);var m=s[d]+s[p]/2-h/2,g=y(e.instance.popper),v=parseFloat(g["margin"+l],10),b=parseFloat(g["border"+l+"Width"],10),w=m-e.offsets.popper[d]-v-b,w=Math.max(Math.min(a[p]-h,w),0);return e.arrowElement=o,e.offsets.arrow=(x(n={},d,Math.round(w)),x(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(h,m){if(B(h.instance.modifiers,"inner"))return h;if(h.flipped&&h.placement===h.originalPlacement)return h;var g=N(h.instance.popper,h.instance.reference,m.padding,m.boundariesElement,h.positionFixed),v=h.placement.split("-")[0],b=C(v),w=h.placement.split("-")[1]||"",y=[];switch(m.behavior){case _:y=[v,b];break;case X:y=V(v);break;case J:y=V(v,!0);break;default:y=m.behavior}return y.forEach(function(e,t){if(v!==e||y.length===t+1)return h;v=h.placement.split("-")[0],b=C(v);var n,o=h.offsets.popper,r=h.offsets.reference,i=Math.floor,a="left"===v&&i(o.right)>i(r.left)||"right"===v&&i(o.left)i(r.top)||"bottom"===v&&i(o.top)i(g.right),p=i(o.top)i(g.bottom),d="left"===v&&s||"right"===v&&f||"top"===v&&p||"bottom"===v&&l,u=-1!==["top","bottom"].indexOf(v),c=!!m.flipVariations&&(u&&"start"===w&&s||u&&"end"===w&&f||!u&&"start"===w&&p||!u&&"end"===w&&l);(a||d||c)&&(h.flipped=!0,(a||d)&&(v=y[t+1]),c&&(w="end"===(n=w)?"start":"start"===n?"end":n),h.placement=v+(w?"-"+w:""),h.offsets.popper=O({},h.offsets.popper,S(h.instance.popper,h.offsets.reference,h.placement)),h=A(h.instance.modifiers,h,"flip"))}),h},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=C(t),e.offsets.popper=L(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=W(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right