import{g as de,c as he}from"./_commonjsHelpers.10c44588.js";import{n as ve}from"./vueComponentNormalizer.67c9b86e.js";var X={exports:{}};/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */var T=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",me=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(T&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function ge(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function we(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},me))}}var be=T&&window.Promise,ye=be?ge:we;function Q(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function E(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function H(e){return e.nodeName==="HTML"?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=E(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:L(H(e))}function Z(e){return e&&e.referenceNode?e.referenceNode:e}var J=T&&!!(window.MSInputMethodContext&&document.documentMode),z=T&&/MSIE 10/.test(navigator.userAgent);function _(e){return e===11?J:e===10?z:J||z}function S(e){if(!e)return document.documentElement;for(var t=_(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&E(r,"position")==="static"?S(r):r}function Oe(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||S(e.firstElementChild)===e}function F(e){return e.parentNode!==null?F(e.parentNode):e}function B(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,s=document.createRange();s.setStart(n,0),s.setEnd(i,0);var a=s.commonAncestorContainer;if(e!==a&&t!==a||n.contains(i))return Oe(a)?a:S(a);var o=F(e);return o.host?B(o.host,t):B(e,F(t).host)}function x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||i;return s[r]}return e[r]}function Ee(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=x(t,"top"),i=x(t,"left"),s=r?-1:1;return e.top+=n*s,e.bottom+=n*s,e.left+=i*s,e.right+=i*s,e}function Y(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function q(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],_(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function ee(e){var t=e.body,r=e.documentElement,n=_(10)&&getComputedStyle(r);return{height:q("Height",t,r,n),width:q("Width",t,r,n)}}var Se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},xe=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),P=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function O(e){return b({},e,{right:e.left+e.width,bottom:e.top+e.height})}function $(e){var t={};try{if(_(10)){t=e.getBoundingClientRect();var r=x(e,"top"),n=x(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s=e.nodeName==="HTML"?ee(e.ownerDocument):{},a=s.width||e.clientWidth||i.width,o=s.height||e.clientHeight||i.height,f=e.offsetWidth-a,p=e.offsetHeight-o;if(f||p){var l=E(e);f-=Y(l,"x"),p-=Y(l,"y"),i.width-=f,i.height-=p}return O(i)}function I(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=_(10),i=t.nodeName==="HTML",s=$(e),a=$(t),o=L(e),f=E(t),p=parseFloat(f.borderTopWidth),l=parseFloat(f.borderLeftWidth);r&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=O({top:s.top-a.top-p,left:s.left-a.left-l,width:s.width,height:s.height});if(u.marginTop=0,u.marginLeft=0,!n&&i){var h=parseFloat(f.marginTop),c=parseFloat(f.marginLeft);u.top-=p-h,u.bottom-=p-h,u.left-=l-c,u.right-=l-c,u.marginTop=h,u.marginLeft=c}return(n&&!r?t.contains(o):t===o&&o.nodeName!=="BODY")&&(u=Ee(u,t)),u}function Pe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=I(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),s=Math.max(r.clientHeight,window.innerHeight||0),a=t?0:x(r),o=t?0:x(r,"left"),f={top:a-n.top+n.marginTop,left:o-n.left+n.marginLeft,width:i,height:s};return O(f)}function te(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(E(e,"position")==="fixed")return!0;var r=H(e);return r?te(r):!1}function re(e){if(!e||!e.parentElement||_())return document.documentElement;for(var t=e.parentElement;t&&E(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function V(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},a=i?re(e):B(e,Z(t));if(n==="viewport")s=Pe(a,i);else{var o=void 0;n==="scrollParent"?(o=L(H(t)),o.nodeName==="BODY"&&(o=e.ownerDocument.documentElement)):n==="window"?o=e.ownerDocument.documentElement:o=n;var f=I(o,a,i);if(o.nodeName==="HTML"&&!te(a)){var p=ee(e.ownerDocument),l=p.height,u=p.width;s.top+=f.top-f.marginTop,s.bottom=l+f.top,s.left+=f.left-f.marginLeft,s.right=u+f.left}else s=f}r=r||0;var h=typeof r=="number";return s.left+=h?r:r.left||0,s.top+=h?r:r.top||0,s.right-=h?r:r.right||0,s.bottom-=h?r:r.bottom||0,s}function _e(e){var t=e.width,r=e.height;return t*r}function ne(e,t,r,n,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=V(r,n,s,i),o={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},f=Object.keys(o).map(function(h){return b({key:h},o[h],{area:_e(o[h])})}).sort(function(h,c){return c.area-h.area}),p=f.filter(function(h){var c=h.width,d=h.height;return c>=r.clientWidth&&d>=r.clientHeight}),l=p.length>0?p[0].key:f[0].key,u=e.split("-")[1];return l+(u?"-"+u:"")}function oe(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?re(t):B(t,Z(r));return I(r,i,n)}function ie(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),s={width:e.offsetWidth+i,height:e.offsetHeight+n};return s}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function se(e,t,r){r=r.split("-")[0];var n=ie(e),i={width:n.width,height:n.height},s=["right","left"].indexOf(r)!==-1,a=s?"top":"left",o=s?"left":"top",f=s?"height":"width",p=s?"width":"height";return i[a]=t[a]+t[f]/2-n[f]/2,r===o?i[o]=t[o]-n[p]:i[o]=t[A(o)],i}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ce(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=M(e,function(i){return i[t]===r});return e.indexOf(n)}function ae(e,t,r){var n=r===void 0?e:e.slice(0,Ce(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=i.function||i.fn;i.enabled&&Q(s)&&(t.offsets.popper=O(t.offsets.popper),t.offsets.reference=O(t.offsets.reference),t=s(t,i))}),t}function Te(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=oe(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ne(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=se(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ae(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function fe(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function j(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],s=i?""+i+r:e;if(typeof document.body.style[s]<"u")return s}return null}function Le(){return this.state.isDestroyed=!0,fe(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function pe(e){var t=e.ownerDocument;return t?t.defaultView:window}function ue(e,t,r,n){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,r,{passive:!0}),i||ue(L(s.parentNode),t,r,n),n.push(s)}function Me(e,t,r,n){r.updateBound=n,pe(e).addEventListener("resize",r.updateBound,{passive:!0});var i=L(e);return ue(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function Be(){this.state.eventsEnabled||(this.state=Me(this.reference,this.options,this.state,this.scheduleUpdate))}function Ae(e,t){return pe(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function De(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Ae(this.reference,this.state))}function U(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function W(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&U(t[r])&&(n="px"),e.style[r]=t[r]+n})}function Ne(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function ke(e){return W(e.instance.popper,e.styles),Ne(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&W(e.arrowElement,e.arrowStyles),e}function Re(e,t,r,n,i){var s=oe(i,t,e,r.positionFixed),a=ne(r.placement,s,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",a),W(t,{position:r.positionFixed?"fixed":"absolute"}),r}function Fe(e,t){var r=e.offsets,n=r.popper,i=r.reference,s=Math.round,a=Math.floor,o=function(g){return g},f=s(i.width),p=s(n.width),l=["left","right"].indexOf(e.placement)!==-1,u=e.placement.indexOf("-")!==-1,h=f%2===p%2,c=f%2===1&&p%2===1,d=t?l||u||h?s:a:o,v=t?s:o;return{left:d(c&&!u&&t?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:d(n.right)}}var $e=T&&/Firefox/i.test(navigator.userAgent);function We(e,t){var r=t.x,n=t.y,i=e.offsets.popper,s=M(e.instance.modifiers,function(m){return m.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=s!==void 0?s:t.gpuAcceleration,o=S(e.instance.popper),f=$(o),p={position:i.position},l=Fe(e,window.devicePixelRatio<2||!$e),u=r==="bottom"?"top":"bottom",h=n==="right"?"left":"right",c=j("transform"),d=void 0,v=void 0;if(u==="bottom"?o.nodeName==="HTML"?v=-o.clientHeight+l.bottom:v=-f.height+l.bottom:v=l.top,h==="right"?o.nodeName==="HTML"?d=-o.clientWidth+l.right:d=-f.width+l.right:d=l.left,a&&c)p[c]="translate3d("+d+"px, "+v+"px, 0)",p[u]=0,p[h]=0,p.willChange="transform";else{var y=u==="bottom"?-1:1,g=h==="right"?-1:1;p[u]=v*y,p[h]=d*g,p.willChange=u+", "+h}var w={"x-placement":e.placement};return e.attributes=b({},w,e.attributes),e.styles=b({},p,e.styles),e.arrowStyles=b({},e.offsets.arrow,e.arrowStyles),e}function le(e,t,r){var n=M(e,function(o){var f=o.name;return f===t}),i=!!n&&e.some(function(o){return o.name===r&&o.enabled&&o.order<n.order});if(!i){var s="`"+t+"`",a="`"+r+"`";console.warn(a+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function He(e,t){var r;if(!le(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],s=e.offsets,a=s.popper,o=s.reference,f=["left","right"].indexOf(i)!==-1,p=f?"height":"width",l=f?"Top":"Left",u=l.toLowerCase(),h=f?"left":"top",c=f?"bottom":"right",d=ie(n)[p];o[c]-d<a[u]&&(e.offsets.popper[u]-=a[u]-(o[c]-d)),o[u]+d>a[c]&&(e.offsets.popper[u]+=o[u]+d-a[c]),e.offsets.popper=O(e.offsets.popper);var v=o[u]+o[p]/2-d/2,y=E(e.instance.popper),g=parseFloat(y["margin"+l]),w=parseFloat(y["border"+l+"Width"]),m=v-e.offsets.popper[u]-g-w;return m=Math.max(Math.min(a[p]-d,m),0),e.arrowElement=n,e.offsets.arrow=(r={},P(r,u,Math.round(m)),P(r,h,""),r),e}function Ie(e){return e==="end"?"start":e==="start"?"end":e}var ce=["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"],k=ce.slice(3);function G(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=k.indexOf(e),n=k.slice(r+1).concat(k.slice(0,r));return t?n.reverse():n}var R={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Ve(e,t){if(fe(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=V(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=A(n),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case R.FLIP:a=[n,i];break;case R.CLOCKWISE:a=G(n);break;case R.COUNTERCLOCKWISE:a=G(n,!0);break;default:a=t.behavior}return a.forEach(function(o,f){if(n!==o||a.length===f+1)return e;n=e.placement.split("-")[0],i=A(n);var p=e.offsets.popper,l=e.offsets.reference,u=Math.floor,h=n==="left"&&u(p.right)>u(l.left)||n==="right"&&u(p.left)<u(l.right)||n==="top"&&u(p.bottom)>u(l.top)||n==="bottom"&&u(p.top)<u(l.bottom),c=u(p.left)<u(r.left),d=u(p.right)>u(r.right),v=u(p.top)<u(r.top),y=u(p.bottom)>u(r.bottom),g=n==="left"&&c||n==="right"&&d||n==="top"&&v||n==="bottom"&&y,w=["top","bottom"].indexOf(n)!==-1,m=!!t.flipVariations&&(w&&s==="start"&&c||w&&s==="end"&&d||!w&&s==="start"&&v||!w&&s==="end"&&y),N=!!t.flipVariationsByContent&&(w&&s==="start"&&d||w&&s==="end"&&c||!w&&s==="start"&&y||!w&&s==="end"&&v),C=m||N;(h||g||C)&&(e.flipped=!0,(h||g)&&(n=a[f+1]),C&&(s=Ie(s)),e.placement=n+(s?"-"+s:""),e.offsets.popper=b({},e.offsets.popper,se(e.instance.popper,e.offsets.reference,e.placement)),e=ae(e.instance.modifiers,e,"flip"))}),e}function je(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],s=Math.floor,a=["top","bottom"].indexOf(i)!==-1,o=a?"right":"bottom",f=a?"left":"top",p=a?"width":"height";return r[o]<s(n[f])&&(e.offsets.popper[f]=s(n[f])-r[p]),r[f]>s(n[o])&&(e.offsets.popper[f]=s(n[o])),e}function Ue(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],a=i[2];if(!s)return e;if(a.indexOf("%")===0){var o=void 0;switch(a){case"%p":o=r;break;case"%":case"%r":default:o=n}var f=O(o);return f[t]/100*s}else if(a==="vh"||a==="vw"){var p=void 0;return a==="vh"?p=Math.max(document.documentElement.clientHeight,window.innerHeight||0):p=Math.max(document.documentElement.clientWidth,window.innerWidth||0),p/100*s}else return s}function Je(e,t,r,n){var i=[0,0],s=["right","left"].indexOf(n)!==-1,a=e.split(/(\+|\-)/).map(function(l){return l.trim()}),o=a.indexOf(M(a,function(l){return l.search(/,|\s/)!==-1}));a[o]&&a[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var f=/\s*,\s*|\s+/,p=o!==-1?[a.slice(0,o).concat([a[o].split(f)[0]]),[a[o].split(f)[1]].concat(a.slice(o+1))]:[a];return p=p.map(function(l,u){var h=(u===1?!s:s)?"height":"width",c=!1;return l.reduce(function(d,v){return d[d.length-1]===""&&["+","-"].indexOf(v)!==-1?(d[d.length-1]=v,c=!0,d):c?(d[d.length-1]+=v,c=!1,d):d.concat(v)},[]).map(function(d){return Ue(d,h,t,r)})}),p.forEach(function(l,u){l.forEach(function(h,c){U(h)&&(i[u]+=h*(l[c-1]==="-"?-1:1))})}),i}function ze(e,t){var r=t.offset,n=e.placement,i=e.offsets,s=i.popper,a=i.reference,o=n.split("-")[0],f=void 0;return U(+r)?f=[+r,0]:f=Je(r,s,a,o),o==="left"?(s.top+=f[0],s.left-=f[1]):o==="right"?(s.top+=f[0],s.left+=f[1]):o==="top"?(s.left+=f[0],s.top-=f[1]):o==="bottom"&&(s.left+=f[0],s.top+=f[1]),e.popper=s,e}function Ye(e,t){var r=t.boundariesElement||S(e.instance.popper);e.instance.reference===r&&(r=S(r));var n=j("transform"),i=e.instance.popper.style,s=i.top,a=i.left,o=i[n];i.top="",i.left="",i[n]="";var f=V(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=s,i.left=a,i[n]=o,t.boundaries=f;var p=t.priority,l=e.offsets.popper,u={primary:function(c){var d=l[c];return l[c]<f[c]&&!t.escapeWithReference&&(d=Math.max(l[c],f[c])),P({},c,d)},secondary:function(c){var d=c==="right"?"left":"top",v=l[d];return l[c]>f[c]&&!t.escapeWithReference&&(v=Math.min(l[d],f[c]-(c==="right"?l.width:l.height))),P({},d,v)}};return p.forEach(function(h){var c=["left","top"].indexOf(h)!==-1?"primary":"secondary";l=b({},l,u[c](h))}),e.offsets.popper=l,e}function qe(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,s=i.reference,a=i.popper,o=["bottom","top"].indexOf(r)!==-1,f=o?"left":"top",p=o?"width":"height",l={start:P({},f,s[f]),end:P({},f,s[f]+s[p]-a[p])};e.offsets.popper=b({},a,l[n])}return e}function Ge(e){if(!le(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=M(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Ke(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,s=n.reference,a=["left","right"].indexOf(r)!==-1,o=["top","left"].indexOf(r)===-1;return i[a?"left":"top"]=s[r]-(o?i[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=O(i),e}var Xe={shift:{order:100,enabled:!0,fn:qe},offset:{order:200,enabled:!0,fn:ze,offset:0},preventOverflow:{order:300,enabled:!0,fn:Ye,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:je},arrow:{order:500,enabled:!0,fn:He,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Ve,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Ke},hide:{order:800,enabled:!0,fn:Ge},computeStyle:{order:850,enabled:!0,fn:We,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ke,onLoad:Re,gpuAcceleration:void 0}},Qe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Xe},D=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Se(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=ye(this.update.bind(this)),this.options=b({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(b({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){n.options.modifiers[a]=b({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return b({name:a},n.options.modifiers[a])}).sort(function(a,o){return a.order-o.order}),this.modifiers.forEach(function(a){a.enabled&&Q(a.onLoad)&&a.onLoad(n.reference,n.popper,n.options,a,n.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return xe(e,[{key:"update",value:function(){return Te.call(this)}},{key:"destroy",value:function(){return Le.call(this)}},{key:"enableEventListeners",value:function(){return Be.call(this)}},{key:"disableEventListeners",value:function(){return De.call(this)}}]),e}();D.Utils=(typeof window<"u"?window:global).PopperUtils;D.placements=ce;D.Defaults=Qe;const Ze=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),et=de(Ze);(function(e,t){(function(r,n){e.exports=n(et)})(he,function(r){function n(o,f,p){o&&f&&p&&(document.addEventListener?o.addEventListener(f,p,!1):o.attachEvent("on"+f,p))}function i(o,f,p){o&&f&&(document.removeEventListener?o.removeEventListener(f,p,!1):o.detachEvent("on"+f,p))}r=r&&r.hasOwnProperty("default")?r.default:r;var s={props:{tagName:{type:String,default:"span"},trigger:{type:String,default:"hover",validator:function(o){return["clickToOpen","click","clickToToggle","hover","focus"].indexOf(o)>-1}},delayOnMouseOver:{type:Number,default:10},delayOnMouseOut:{type:Number,default:10},disabled:{type:Boolean,default:!1},content:String,enterActiveClass:String,leaveActiveClass:String,boundariesSelector:String,reference:{},forceShow:{type:Boolean,default:!1},dataValue:{default:null},appendToBody:{type:Boolean,default:!1},visibleArrow:{type:Boolean,default:!0},transition:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},rootClass:{type:String,default:""}},data:function(){return{referenceElm:null,popperJS:null,showPopper:!1,currentPlacement:"",popperOptions:{placement:"bottom",computeStyle:{gpuAcceleration:!1}}}},watch:{showPopper:function(o){o?(this.$emit("show",this),this.popperJS&&this.popperJS.enableEventListeners(),this.updatePopper()):(this.popperJS&&this.popperJS.disableEventListeners(),this.$emit("hide",this))},forceShow:{handler:function(o){this[o?"doShow":"doClose"]()},immediate:!0},disabled:function(o){o&&(this.showPopper=!1)}},created:function(){this.appendedArrow=!1,this.appendedToBody=!1,this.popperOptions=Object.assign(this.popperOptions,this.options)},mounted:function(){switch(this.referenceElm=this.reference||this.$slots.reference[0].elm,this.popper=this.$slots.default[0].elm,this.trigger){case"clickToOpen":n(this.referenceElm,"click",this.doShow),n(document,"click",this.handleDocumentClick);break;case"click":case"clickToToggle":n(this.referenceElm,"click",this.doToggle),n(document,"click",this.handleDocumentClick);break;case"hover":n(this.referenceElm,"mouseover",this.onMouseOver),n(this.popper,"mouseover",this.onMouseOver),n(this.referenceElm,"mouseout",this.onMouseOut),n(this.popper,"mouseout",this.onMouseOut);break;case"focus":n(this.referenceElm,"focus",this.onMouseOver),n(this.popper,"focus",this.onMouseOver),n(this.referenceElm,"blur",this.onMouseOut),n(this.popper,"blur",this.onMouseOut)}},methods:{doToggle:function(o){this.stopPropagation&&o.stopPropagation(),this.preventDefault&&o.preventDefault(),this.forceShow||(this.showPopper=!this.showPopper)},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},doDestroy:function(){this.showPopper||(this.popperJS&&(this.popperJS.destroy(),this.popperJS=null),this.appendedToBody&&(this.appendedToBody=!1,document.body.removeChild(this.popper.parentElement)))},createPopper:function(){var o=this;this.$nextTick(function(){if(o.visibleArrow&&o.appendArrow(o.popper),o.appendToBody&&!o.appendedToBody&&(o.appendedToBody=!0,document.body.appendChild(o.popper.parentElement)),o.popperJS&&o.popperJS.destroy&&o.popperJS.destroy(),o.boundariesSelector){var f=document.querySelector(o.boundariesSelector);f&&(o.popperOptions.modifiers=Object.assign({},o.popperOptions.modifiers),o.popperOptions.modifiers.preventOverflow=Object.assign({},o.popperOptions.modifiers.preventOverflow),o.popperOptions.modifiers.preventOverflow.boundariesElement=f)}o.popperOptions.onCreate=function(){o.$emit("created",o),o.$nextTick(o.updatePopper)},o.popperJS=new r(o.referenceElm,o.popper,o.popperOptions)})},destroyPopper:function(){i(this.referenceElm,"click",this.doToggle),i(this.referenceElm,"mouseup",this.doClose),i(this.referenceElm,"mousedown",this.doShow),i(this.referenceElm,"focus",this.doShow),i(this.referenceElm,"blur",this.doClose),i(this.referenceElm,"mouseout",this.onMouseOut),i(this.referenceElm,"mouseover",this.onMouseOver),i(document,"click",this.handleDocumentClick),this.showPopper=!1,this.doDestroy()},appendArrow:function(o){if(!this.appendedArrow){this.appendedArrow=!0;var f=document.createElement("div");f.setAttribute("x-arrow",""),f.className="popper__arrow",o.appendChild(f)}},updatePopper:function(){this.popperJS?this.popperJS.scheduleUpdate():this.createPopper()},onMouseOver:function(){var o=this;clearTimeout(this._timer),this._timer=setTimeout(function(){o.showPopper=!0},this.delayOnMouseOver)},onMouseOut:function(){var o=this;clearTimeout(this._timer),this._timer=setTimeout(function(){o.showPopper=!1},this.delayOnMouseOut)},handleDocumentClick:function(o){this.$el&&this.referenceElm&&!this.elementContains(this.$el,o.target)&&!this.elementContains(this.referenceElm,o.target)&&this.popper&&!this.elementContains(this.popper,o.target)&&(this.$emit("documentClick",this),this.forceShow||(this.showPopper=!1))},elementContains:function(o,f){return typeof o.contains=="function"&&o.contains(f)}},destroyed:function(){this.destroyPopper()}};const a=s;return s.__file="popper.js.vue",function(o,f,p,l,u,h,c,d,v,y){typeof c=="function"&&(v=d,d=c,c=!1);const g=typeof p=="function"?p.options:p;let w;if(o&&o.render&&(g.render=o.render,g.staticRenderFns=o.staticRenderFns,g._compiled=!0,u&&(g.functional=!0)),l&&(g._scopeId=l),h?(w=function(m){(m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(m=__VUE_SSR_CONTEXT__),f&&f.call(this,v(m)),m&&m._registeredComponents&&m._registeredComponents.add(h)},g._ssrRegister=w):f&&(w=c?function(){f.call(this,y(this.$root.$options.shadowRoot))}:function(m){f.call(this,d(m))}),w)if(g.functional){const m=g.render;g.render=function(N,C){return w.call(C),m(N,C)}}else{const m=g.beforeCreate;g.beforeCreate=m?[].concat(m,w):[w]}return p}({render:function(){var o=this,f=o.$createElement,p=o._self._c||f;return p(o.tagName,{tag:"component"},[p("transition",{attrs:{name:o.transition,"enter-active-class":o.enterActiveClass,"leave-active-class":o.leaveActiveClass},on:{"after-leave":o.doDestroy}},[p("span",{directives:[{name:"show",rawName:"v-show",value:!o.disabled&&o.showPopper,expression:"!disabled && showPopper"}],ref:"popper",class:o.rootClass},[o._t("default",[o._v(o._s(o.content))])],2)]),o._v(" "),o._t("reference")],2)},staticRenderFns:[]},void 0,a,void 0,!1,void 0,void 0,void 0)})})(X);const tt=X.exports;var rt=function(){var e,t=this,r=t.$createElement,n=t._self._c||r;return n("popper",{staticClass:"aioseo-tooltip",attrs:{trigger:t.trigger,"force-show":t.forceShow,disabled:t.disabled,options:{placement:t.placement,modifiers:{flip:{enabled:t.flip},preventOverflow:{escapeWithReference:!0},offset:{offset:t.offset}}}}},[n("div",{staticClass:"popper",class:(e={},e[t.type]=t.type,e)},[t.tooltip?n(t.tag,{tag:"component"},[t._v(t._s(t.tooltip))]):t._e(),t._t("tooltip")],2),t._t("default",null,{slot:"reference"})],2)},nt=[];const ot={props:{tooltip:String,type:String,disabled:Boolean,placement:{type:String,default(){return"top"}},trigger:{type:String,default(){return"hover"}},forceShow:{type:Boolean,default(){return!1}},tag:{type:String,default(){return"span"}},offset:{type:String,default(){return"0,0"}},flip:{type:Boolean,default(){return!1}}},components:{popper:tt}},K={};var it=ve(ot,rt,nt,!1,st,null,null,null);function st(e){for(let t in K)this[t]=K[t]}const pt=function(){return it.exports}();export{pt as C};
