!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 V(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function v(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:l(v(e))}function i(e){return 11===e?U:10!==e&&U||X}function a(e){if(!e)return document.documentElement;for(var n,o=i(10)?document.body:null,t=e.offsetParent||null;t===o&&e.nextElementSibling;)t=(e=e.nextElementSibling).offsetParent;return n=t&&t.nodeName,n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===s(t,"position")?a(t):t:e?e.ownerDocument.documentElement:document.documentElement}function b(e){return null===e.parentNode?e:b(e.parentNode)}function h(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n,o,i,d,r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,c=r?e:t,l=r?t:e,s=document.createRange();return s.setStart(c,0),s.setEnd(l,0),n=s.commonAncestorContainer,e!==n&&t!==n||c.contains(l)?"BODY"===(d=(o=n).nodeName)||"HTML"!==d&&a(o.firstElementChild)!==o?a(n):n:(i=b(e),i.host?h(i.host,t):h(e,b(t).host))}function c(e,t){var o,n="top"===(1=s.clientWidth&&n>=s.clientHeight}),m=0c[e]&&!s.escapeWithReference&&(n=N(o[t],c[e]-("right"===e?o.width:o.height))),r({},t,n)}};return f.forEach(function(t){var n=-1===["left","top"].indexOf(t)?"secondary":"primary";o=e({},o,p[n](t))}),n.offsets.popper=o,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var r=e.offsets,o=r.popper,n=r.reference,c=e.placement.split("-")[0],s=_,i=-1!==["top","bottom"].indexOf(c),a=i?"right":"bottom",t=i?"left":"top",l=i?"width":"height";return o[a]s(n[a])&&(e.offsets.popper[t]=s(n[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){if(!T(e.instance.modifiers,"arrow","keepTogether"))return e;if(a=o.element,"string"==typeof a){if(!(a=e.instance.popper.querySelector(a)))return e}else if(!e.instance.popper.contains(a))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a,f,y=e.placement.split("-")[0],v=e.offsets,d=v.popper,c=v.reference,h=-1!==["left","right"].indexOf(y),p=h?"height":"width",m=h?"Top":"Left",i=m.toLowerCase(),j=h?"left":"top",u=h?"bottom":"right",l=W(a)[p];c[u]-ld[u]&&(e.offsets.popper[i]+=c[i]+l-d[u]),e.offsets.popper=n(e.offsets.popper);var _=c[i]+c[p]/2-l/2,b=s(e.instance.popper),w=parseFloat(b["margin"+m],10),O=parseFloat(b["border"+m+"Width"],10),g=_-e.offsets.popper[i]-w-O;return g=t(N(d[p]-l,g),0),e.arrowElement=a,e.offsets.arrow=(r(f={},i,R(g)),r(f,j,""),f),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,n){if(S(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var a=g(t.instance.popper,t.instance.reference,n.padding,n.boundariesElement,t.positionFixed),s=t.placement.split("-")[0],r=f(s),o=t.placement.split("-")[1]||"",i=[];switch(n.behavior){case Z:i=[s,r];break;case J:i=z(s);break;case ee:i=z(s,!0);break;default:i=n.behavior}return i.forEach(function(c,l){if(s!==c||i.length===l+1)return t;s=t.placement.split("-")[0],r=f(s);var p,u=t.offsets.popper,h=t.offsets.reference,d=_,g="left"===s&&d(u.right)>d(h.left)||"right"===s&&d(u.left)d(h.top)||"bottom"===s&&d(u.top)d(a.right),j=d(u.top)d(a.bottom),w="left"===s&&v||"right"===s&&b||"top"===s&&j||"bottom"===s&&y,m=-1!==["top","bottom"].indexOf(s),O=!!n.flipVariations&&(m&&"start"===o&&v||m&&"end"===o&&b||!m&&"start"===o&&j||!m&&"end"===o&&y);(g||w||O)&&(t.flipped=!0,(g||w)&&(s=i[l+1]),O&&(o="end"===(p=o)?"start":"start"===p?"end":p),t.placement=s+(o?"-"+o:""),t.offsets.popper=e({},t.offsets.popper,L(t.instance.popper,t.offsets.reference,t.placement)),t=M(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var o=e.placement,t=o.split("-")[0],i=e.offsets,s=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(t),c=-1===["top","left"].indexOf(t);return s[a?"left":"top"]=r[t]-(c?s[a?"width":"height"]:0),e.placement=f(o),e.offsets.popper=n(s),e}},hide:{order:800,enabled:!0,fn:function(e){if(!T(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=u(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right')):t.className="tippy-arrow",t}function F(){var e=d();return e.className="tippy-backdrop",e.setAttribute("data-state","hidden"),e}function T(e,t){e.setAttribute("tabindex","-1"),t.setAttribute("data-interactive","")}function a(e,t){e.forEach(function(e){e&&(e.style.transitionDuration="".concat(t,"ms"))})}function w(e,t,n){var s=$&&void 0!==document.body.style.WebkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](s,n)}function _(e){var t=e.getAttribute("x-placement");return t?t.split("-")[0]:""}function L(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function b(e,t,n){n.split(" ").forEach(function(n){e.classList[t](n+"-theme")})}function g(){var e=0("top"===e?o+i:o),l=r-t.bottom>("bottom"===e?o+i:o),d=t.left-a>("left"===e?o+i:o),u=a-t.right>("right"===e?o+i:o);return c||l||d||u}(_(h.popper),h.popper.getBoundingClientRect(),e,h.props)||(ve(),A())}function re(e){if(!le(e))return h.props.interactive?(document.body.addEventListener("mouseleave",A),void document.addEventListener("mousemove",q)):void A()}function _e(e){e.target===h.reference&&(h.props.interactive&&e.relatedTarget&&h.popper.contains(e.relatedTarget)||A())}function ee(e){l(e.target,h.props.target)&&N(e)}function fe(e){l(e.target,h.props.target)&&A()}function le(e){var o="ontouchstart"in window,t=m(e.type,"touch"),s=h.props.touchHold;return o&&n&&s&&!t||n&&!s&&t}function ae(){var n=h.props.popperOptions,s=h.popperChildren,i=s.tooltip,o=s.arrow;h.popperInstance=new e(h.reference,h.popper,t({placement:h.props.placement},n,{modifiers:t({},n?n.modifiers:{},{preventOverflow:t({boundariesElement:h.props.boundary,padding:p},v(n,"preventOverflow")),arrow:t({element:o,enabled:!!o},v(n,"arrow")),flip:t({enabled:h.props.flip,padding:h.props.distance+p,behavior:h.props.flipBehavior},v(n,"flip")),offset:t({offset:h.props.offset},v(n,"offset"))}),onUpdate:function(e){h.props.flipOnUpdate||(e.flipped&&(h.popperInstance.options.placement=e.placement),z(h.popperInstance.modifiers,!1));var t=i.style;t.top="",t.bottom="",t.left="",t.right="",t[_(h.popper)]=-(h.props.distance-10)+"px"}}))}function D(){return h.props.followCursor&&!n&&"focus"!==M.type}function he(e,t){if(0===e)return t();function s(e){e.target===n&&(w(n,"remove",s),t())}var n=h.popperChildren.tooltip;w(n,"remove",je),w(n,"add",s),je=s}function j(e,t,n){var s=2|