alpineuse
Version:
Collection of Alpine, Extending Plugins.
1 lines • 43.7 kB
JavaScript
(()=>{var e="top",t="bottom",n="right",r="left",o="auto",i=[e,t,n,r],a="start",s="end",c="viewport",p="popper",u=i.reduce((function(e,t){return e.concat([t+"-"+a,t+"-"+s])}),[]),f=[].concat(i,[o]).reduce((function(e,t){return e.concat([t,t+"-"+a,t+"-"+s])}),[]),l=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function d(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){return e instanceof m(e).Element||e instanceof Element}function h(e){return e instanceof m(e).HTMLElement||e instanceof HTMLElement}function g(e){return"undefined"!=typeof ShadowRoot&&(e instanceof m(e).ShadowRoot||e instanceof ShadowRoot)}var b={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];h(o)&&d(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});h(r)&&d(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function y(e){return e.split("-")[0]}function w(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function x(e){var t=w(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function E(e){return m(e).getComputedStyle(e)}function T(e){return["table","td","th"].indexOf(d(e))>=0}function j(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||j(e)}function D(e){return h(e)&&"fixed"!==E(e).position?e.offsetParent:null}function L(e){for(var t=m(e),n=D(e);n&&T(n)&&"static"===E(n).position;)n=D(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===E(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&h(e)&&"fixed"===E(e).position)return null;for(var n=A(e);h(n)&&["html","body"].indexOf(d(n))<0;){var r=E(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function k(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var C=Math.max,S=Math.min,P=Math.round;function M(e,t,n){return C(e,S(t,n))}function I(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function H(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var R={top:"auto",right:"auto",bottom:"auto",left:"auto"};function V(o){var i,a=o.popper,s=o.popperRect,c=o.placement,p=o.offsets,u=o.position,f=o.gpuAcceleration,l=o.adaptive,d=o.roundOffsets,v=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:P(P(t*r)/r)||0,y:P(P(n*r)/r)||0}}(p):"function"==typeof d?d(p):p,h=v.x,g=void 0===h?0:h,b=v.y,y=void 0===b?0:b,w=p.hasOwnProperty("x"),x=p.hasOwnProperty("y"),O=r,T=e,A=window;if(l){var D=L(a),k="clientHeight",C="clientWidth";D===m(a)&&"static"!==E(D=j(a)).position&&(k="scrollHeight",C="scrollWidth"),c===e&&(T=t,y-=D[k]-s.height,y*=f?1:-1),c===r&&(O=n,g-=D[C]-s.width,g*=f?1:-1)}var S,M=Object.assign({position:u},l&&R);return f?Object.assign({},M,((S={})[T]=x?"0":"",S[O]=w?"0":"",S.transform=(A.devicePixelRatio||1)<2?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",S)):Object.assign({},M,((i={})[T]=x?y+"px":"",i[O]=w?g+"px":"",i.transform="",i))}var _={passive:!0};var B={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e){return e.replace(/left|right|bottom|top/g,(function(e){return B[e]}))}var W={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(function(e){return W[e]}))}function U(e){var t=m(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function z(e){return w(j(e)).left+U(e).scrollLeft}function F(e){var t=E(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Y(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:h(e)&&F(e)?e:Y(A(e))}function X(e,t){var n;void 0===t&&(t=[]);var r=Y(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=m(r),a=o?[i].concat(i.visualViewport||[],F(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(X(A(a)))}function $(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function G(e,t){return t===c?$(function(e){var t=m(e),n=j(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+z(e),y:s}}(e)):h(t)?function(e){var t=w(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):$(function(e){var t,n=j(e),r=U(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=C(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=C(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+z(e),c=-r.scrollTop;return"rtl"===E(o||n).direction&&(s+=C(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(j(e)))}function J(e,t,n){var r="clippingParents"===t?function(e){var t=X(A(e)),n=["absolute","fixed"].indexOf(E(e).position)>=0&&h(e)?L(e):e;return v(n)?t.filter((function(e){return v(e)&&O(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=G(e,n);return t.top=C(r.top,t.top),t.right=S(r.right,t.right),t.bottom=S(r.bottom,t.bottom),t.left=C(r.left,t.left),t}),G(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function K(e){return e.split("-")[1]}function Q(o){var i,c=o.reference,p=o.element,u=o.placement,f=u?y(u):null,l=u?K(u):null,d=c.x+c.width/2-p.width/2,m=c.y+c.height/2-p.height/2;switch(f){case e:i={x:d,y:c.y-p.height};break;case t:i={x:d,y:c.y+c.height};break;case n:i={x:c.x+c.width,y:m};break;case r:i={x:c.x-p.width,y:m};break;default:i={x:c.x,y:c.y}}var v=f?k(f):null;if(null!=v){var h="y"===v?"height":"width";switch(l){case a:i[v]=i[v]-(c[h]/2-p[h]/2);break;case s:i[v]=i[v]+(c[h]/2-p[h]/2)}}return i}function Z(r,o){void 0===o&&(o={});var a=o,s=a.placement,u=void 0===s?r.placement:s,f=a.boundary,l=void 0===f?"clippingParents":f,d=a.rootBoundary,m=void 0===d?c:d,h=a.elementContext,g=void 0===h?p:h,b=a.altBoundary,y=void 0!==b&&b,x=a.padding,O=void 0===x?0:x,E=I("number"!=typeof O?O:H(O,i)),T=g===p?"reference":p,A=r.elements.reference,D=r.rects.popper,L=r.elements[y?T:g],k=J(v(L)?L:L.contextElement||j(r.elements.popper),l,m),C=w(A),S=Q({reference:C,element:D,strategy:"absolute",placement:u}),P=$(Object.assign({},D,S)),M=g===p?P:C,R={top:k.top-M.top+E.top,bottom:M.bottom-k.bottom+E.bottom,left:k.left-M.left+E.left,right:M.right-k.right+E.right},V=r.modifiersData.offset;if(g===p&&V){var _=V[u];Object.keys(R).forEach((function(r){var o=[n,t].indexOf(r)>=0?1:-1,i=[e,t].indexOf(r)>=0?"y":"x";R[r]+=_[i]*o}))}return R}function ee(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function te(o){return[e,n,t,r].some((function(e){return o[e]>=0}))}function ne(e,t,n){void 0===n&&(n=!1);var r,o,i=j(t),a=w(e),s=h(t),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(s||!s&&!n)&&(("body"!==d(t)||F(i))&&(c=(r=t)!==m(r)&&h(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:U(r)),h(t)?((p=w(t)).x+=t.clientLeft,p.y+=t.clientTop):i&&(p.x=z(i))),{x:a.left+c.scrollLeft-p.x,y:a.top+c.scrollTop-p.y,width:a.width,height:a.height}}function re(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var ie='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ae=["name","enabled","phase","fn","effect","requires","options"];var se="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ce={placement:"bottom",modifiers:[],strategy:"absolute"};function pe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ue(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?ce:i;return function(e,t,n){void 0===n&&(n=a);var i,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ce,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},p=[],u=!1,f={state:c,setOptions:function(n){d(),c.options=Object.assign({},a,c.options,n),c.scrollParents={reference:v(e)?X(e):e.contextElement?X(e.contextElement):[],popper:X(t)};var i=function(e){var t=re(e);return l.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,c.options.modifiers)));c.orderedModifiers=i.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(oe(ie,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(oe(ie,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":l.indexOf(t.phase)<0&&console.error(oe(ie,t.name,'"phase"',"either "+l.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(oe(ie,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(oe(ie,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(oe(ie,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(oe(ie,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+ae.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(oe('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((s=[].concat(i,c.options.modifiers),u=function(e){return e.name},m=new Set,s.filter((function(e){var t=u(e);if(!m.has(t))return m.add(t),!0})))),y(c.options.placement)===o&&(c.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var s,u,m,h=E(t);return[h.marginTop,h.marginRight,h.marginBottom,h.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:f,options:r}),a=function(){};p.push(i||a)}})),f.update()},forceUpdate:function(){if(!u){var e=c.elements,t=e.reference,n=e.popper;if(pe(t,n)){c.rects={reference:ne(t,L(n),"fixed"===c.options.strategy),popper:x(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<c.orderedModifiers.length;o++){if((r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==c.reset){var i=c.orderedModifiers[o],a=i.fn,s=i.options,p=void 0===s?{}:s,l=i.name;"function"==typeof a&&(c=a({state:c,options:p,name:l,instance:f})||c)}else c.reset=!1,o=-1}}else console.error(se)}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){d(),u=!0}};if(!pe(e,t))return console.error(se),f;function d(){p.forEach((function(e){return e()})),p=[]}return f.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var fe=ue({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=m(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(e){e.addEventListener("scroll",n.update,_)})),s&&c.addEventListener("resize",n.update,_),function(){i&&p.forEach((function(e){e.removeEventListener("scroll",n.update,_)})),s&&c.removeEventListener("resize",n.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,p=E(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return p.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var u={placement:y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,V(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,V(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},b,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,i=t.options,a=t.name,s=i.offset,c=void 0===s?[0,0]:s,p=f.reduce((function(t,i){return t[i]=function(t,o,i){var a=y(t),s=[r,e].indexOf(a)>=0?-1:1,c="function"==typeof i?i(Object.assign({},o,{placement:t})):i,p=c[0],u=c[1];return p=p||0,u=(u||0)*s,[r,n].indexOf(a)>=0?{x:u,y:p}:{x:p,y:u}}(i,o.rects,c),t}),{}),u=p[o.placement],l=u.x,d=u.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=l,o.modifiersData.popperOffsets.y+=d),o.modifiersData[a]=p}},{name:"flip",enabled:!0,phase:"main",fn:function(s){var c=s.state,p=s.options,l=s.name;if(!c.modifiersData[l]._skip){for(var d=p.mainAxis,m=void 0===d||d,v=p.altAxis,h=void 0===v||v,g=p.fallbackPlacements,b=p.padding,w=p.boundary,x=p.rootBoundary,O=p.altBoundary,E=p.flipVariations,T=void 0===E||E,j=p.allowedAutoPlacements,A=c.options.placement,D=y(A),L=g||(D===A||!T?[q(A)]:function(e){if(y(e)===o)return[];var t=q(e);return[N(e),t,N(t)]}(A)),k=[A].concat(L).reduce((function(e,t){return e.concat(y(t)===o?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,c=n.flipVariations,p=n.allowedAutoPlacements,l=void 0===p?f:p,d=K(r),m=d?c?u:u.filter((function(e){return K(e)===d})):i,v=m.filter((function(e){return l.indexOf(e)>=0}));0===v.length&&(v=m,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=v.reduce((function(t,n){return t[n]=Z(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[y(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(c,{placement:t,boundary:w,rootBoundary:x,padding:b,flipVariations:T,allowedAutoPlacements:j}):t)}),[]),C=c.rects.reference,S=c.rects.popper,P=new Map,M=!0,I=k[0],H=0;H<k.length;H++){var R=k[H],V=y(R),_=K(R)===a,B=[e,t].indexOf(V)>=0,W=B?"width":"height",U=Z(c,{placement:R,boundary:w,rootBoundary:x,altBoundary:O,padding:b}),z=B?_?n:r:_?t:e;C[W]>S[W]&&(z=q(z));var F=q(z),Y=[];if(m&&Y.push(U[V]<=0),h&&Y.push(U[z]<=0,U[F]<=0),Y.every((function(e){return e}))){I=R,M=!1;break}P.set(R,Y)}if(M)for(var X=function(e){var t=k.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return I=t,"break"},$=T?3:1;$>0;$--){if("break"===X($))break}c.placement!==I&&(c.modifiersData[l]._skip=!0,c.placement=I,c.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,s=o.options,c=o.name,p=s.mainAxis,u=void 0===p||p,f=s.altAxis,l=void 0!==f&&f,d=s.boundary,m=s.rootBoundary,v=s.altBoundary,h=s.padding,g=s.tether,b=void 0===g||g,w=s.tetherOffset,O=void 0===w?0:w,E=Z(i,{boundary:d,rootBoundary:m,padding:h,altBoundary:v}),T=y(i.placement),j=K(i.placement),A=!j,D=k(T),P="x"===D?"y":"x",I=i.modifiersData.popperOffsets,H=i.rects.reference,R=i.rects.popper,V="function"==typeof O?O(Object.assign({},i.rects,{placement:i.placement})):O,_={x:0,y:0};if(I){if(u||l){var B="y"===D?e:r,q="y"===D?t:n,W="y"===D?"height":"width",N=I[D],U=I[D]+E[B],z=I[D]-E[q],F=b?-R[W]/2:0,Y=j===a?H[W]:R[W],X=j===a?-R[W]:-H[W],$=i.elements.arrow,G=b&&$?x($):{width:0,height:0},J=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=J[B],ee=J[q],te=M(0,H[W],G[W]),ne=A?H[W]/2-F-te-Q-V:Y-te-Q-V,re=A?-H[W]/2+F+te+ee+V:X+te+ee+V,oe=i.elements.arrow&&L(i.elements.arrow),ie=oe?"y"===D?oe.clientTop||0:oe.clientLeft||0:0,ae=i.modifiersData.offset?i.modifiersData.offset[i.placement][D]:0,se=I[D]+ne-ae-ie,ce=I[D]+re-ae;if(u){var pe=M(b?S(U,se):U,N,b?C(z,ce):z);I[D]=pe,_[D]=pe-N}if(l){var ue="x"===D?e:r,fe="x"===D?t:n,le=I[P],de=le+E[ue],me=le-E[fe],ve=M(b?S(de,se):de,le,b?C(me,ce):me);I[P]=ve,_[P]=ve-le}}i.modifiersData[c]=_}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(o){var a,s=o.state,c=o.name,p=o.options,u=s.elements.arrow,f=s.modifiersData.popperOffsets,l=y(s.placement),d=k(l),m=[r,n].indexOf(l)>=0?"height":"width";if(u&&f){var v=function(e,t){return I("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:H(e,i))}(p.padding,s),h=x(u),g="y"===d?e:r,b="y"===d?t:n,w=s.rects.reference[m]+s.rects.reference[d]-f[d]-s.rects.popper[m],O=f[d]-s.rects.reference[d],E=L(u),T=E?"y"===d?E.clientHeight||0:E.clientWidth||0:0,j=w/2-O/2,A=v[g],D=T-h[m]-v[b],C=T/2-h[m]/2+j,S=M(A,C,D),P=d;s.modifiersData[c]=((a={})[P]=S,a.centerOffset=S-C,a)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&(h(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),O(t.elements.popper,r)?t.elements.arrow=r:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Z(t,{elementContext:"reference"}),s=Z(t,{altBoundary:!0}),c=ee(a,r),p=ee(s,o,i),u=te(c),f=te(p);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),le="tippy-content",de="tippy-arrow",me="tippy-svg-arrow",ve={passive:!0,capture:!0};function he(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ge(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function be(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ye(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function we(e){return[].concat(e)}function xe(e,t){-1===e.indexOf(t)&&e.push(t)}function Oe(e){return[].slice.call(e)}function Ee(){return document.createElement("div")}function Te(e){return["Element","Fragment"].some((function(t){return ge(e,t)}))}function je(e){return ge(e,"MouseEvent")}function Ae(e){return Te(e)?[e]:function(e){return ge(e,"NodeList")}(e)?Oe(e):Array.isArray(e)?e:Oe(document.querySelectorAll(e))}function De(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Le(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ke(e){var t,n=we(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function Ce(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var Se={isTouch:!1},Pe=0;function Me(){Se.isTouch||(Se.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ie))}function Ie(){var e=performance.now();e-Pe<20&&(Se.isTouch=!1,document.removeEventListener("mousemove",Ie)),Pe=e}function He(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Re,Ve="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",_e=/MSIE |Trident\//.test(Ve);function Be(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function qe(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function We(e){return qe("\n %ctippy.js\n\n %c"+qe(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function Ne(e){return[We(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Ue(e,t){var n;e&&!Re.has(t)&&(Re.add(t),(n=console).warn.apply(n,Ne(t)))}function ze(e,t){var n;e&&!Re.has(t)&&(Re.add(t),(n=console).error.apply(n,Ne(t)))}Re=new Set;var Fe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ye=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Fe,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Xe=Object.keys(Ye);function $e(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function Ge(e,t){var n=Object.assign({},t,{content:be(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys($e(Object.assign({},Ye,{plugins:t}))):Xe).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Ye.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Je(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,r,o=function(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}(Ye,Object.keys(Fe)),i=(n=o,r=e,!{}.hasOwnProperty.call(n,r));i&&(i=0===t.filter((function(t){return t.name===e})).length),Ue(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function Ke(e,t){e.innerHTML=t}function Qe(e){var t=Ee();return!0===e?t.className=de:(t.className=me,Te(e)?t.appendChild(e):Ke(t,e)),t}function Ze(e,t){Te(t.content)?(Ke(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ke(e,t.content):e.textContent=t.content)}function et(e){var t=e.firstElementChild,n=Oe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(le)})),arrow:n.find((function(e){return e.classList.contains(de)||e.classList.contains(me)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function tt(e){var t=Ee(),n=Ee();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ee();function o(n,r){var o=et(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Ze(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(Qe(r.arrow))):i.appendChild(Qe(r.arrow)):s&&i.removeChild(s)}return r.className=le,r.setAttribute("data-state","hidden"),Ze(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}tt.$$tippy=!0;var nt=1,rt=[],ot=[];function it(e,t){var n,r,o,i,a,s,c,p,u,f=Ge(e,Object.assign({},Ye,{},$e((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),l=!1,d=!1,m=!1,v=!1,h=[],g=ye($,f.interactiveDebounce),b=nt++,y=(u=f.plugins).filter((function(e,t){return u.indexOf(e)===t})),w={id:b,reference:e,popper:Ee(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){Ue(w.state.isDestroyed,Be("setProps"));if(w.state.isDestroyed)return;I("onBeforeUpdate",[w,t]),Y();var n=w.props,r=Ge(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=r,F(),n.interactiveDebounce!==r.interactiveDebounce&&(V(),g=ye($,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?we(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),M(),E&&E(n,r);w.popperInstance&&(Q(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));I("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){Ue(w.state.isDestroyed,Be("show"));var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Se.isTouch&&!w.props.touch,o=he(w.props.duration,0,Ye.duration);if(e||t||n||r)return;if(k().hasAttribute("disabled"))return;if(I("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,L()&&(O.style.visibility="visible");M(),W(),w.state.isMounted||(O.style.transition="none");if(L()){var i=S();De([i.box,i.content],0)}c=function(){var e;if(w.state.isVisible&&!v){if(v=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,L()&&w.props.animation){var t=S(),n=t.box,r=t.content;De([n,r],o),Le([n,r],"visible")}H(),R(),xe(ot,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,I("onMount",[w]),w.props.animation&&L()&&function(e,t){U(e,t)}(o,(function(){w.state.isShown=!0,I("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=k();e=w.props.interactive&&t===Ye.appendTo||"parent"===t?n.parentNode:be(t,[n]);e.contains(O)||e.appendChild(O);Q(),Ue(w.props.interactive&&t===Ye.appendTo&&n.nextElementSibling!==O,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){Ue(w.state.isDestroyed,Be("hide"));var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=he(w.props.duration,1,Ye.duration);if(e||t||n)return;if(I("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,v=!1,l=!1,L()&&(O.style.visibility="hidden");if(V(),N(),M(),L()){var o=S(),i=o.box,a=o.content;w.props.animation&&(De([i,a],r),Le([i,a],"hidden"))}H(),R(),w.props.animation?L()&&function(e,t){U(e,(function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&t()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(e){Ue(w.state.isDestroyed,Be("hideWithInteractivity"));C().addEventListener("mousemove",g),xe(rt,g),g(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){Ue(w.state.isDestroyed,Be("unmount"));w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),ee().forEach((function(e){e._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);ot=ot.filter((function(e){return e!==w})),w.state.isMounted=!1,I("onHidden",[w])},destroy:function(){Ue(w.state.isDestroyed,Be("destroy"));if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),Y(),delete e._tippy,w.state.isDestroyed=!0,I("onDestroy",[w])}};if(!f.render)return ze(!0,"render() function has not been supplied."),w;var x=f.render(w),O=x.popper,E=x.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,e._tippy=w,O._tippy=w;var T=y.map((function(e){return e.fn(w)})),j=e.hasAttribute("aria-expanded");return F(),R(),M(),I("onCreate",[w]),f.showOnCreate&&te(),O.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(C().addEventListener("mousemove",g),g(e))})),w;function A(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function D(){return"hold"===A()[0]}function L(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function k(){return p||e}function C(){var e=k().parentNode;return e?ke(e):document}function S(){return et(O)}function P(e){return w.state.isMounted&&!w.state.isVisible||Se.isTouch||a&&"focus"===a.type?0:he(w.props.delay,e?0:1,Ye.delay)}function M(){O.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",O.style.zIndex=""+w.props.zIndex}function I(e,t,n){var r;(void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=w.props)[e].apply(r,t)}function H(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=O.id;we(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!j&&w.props.aria.expanded&&we(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")}))}function V(){C().removeEventListener("mousemove",g),rt=rt.filter((function(e){return e!==g}))}function _(e){if(!(Se.isTouch&&(m||"mousedown"===e.type)||w.props.interactive&&O.contains(e.target))){if(k().contains(e.target)){if(Se.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||N())}}function B(){m=!0}function q(){m=!1}function W(){var e=C();e.addEventListener("mousedown",_,!0),e.addEventListener("touchend",_,ve),e.addEventListener("touchstart",q,ve),e.addEventListener("touchmove",B,ve)}function N(){var e=C();e.removeEventListener("mousedown",_,!0),e.removeEventListener("touchend",_,ve),e.removeEventListener("touchstart",q,ve),e.removeEventListener("touchmove",B,ve)}function U(e,t){var n=S().box;function r(e){e.target===n&&(Ce(n,"remove",r),t())}if(0===e)return t();Ce(n,"remove",s),Ce(n,"add",r),s=r}function z(t,n,r){void 0===r&&(r=!1),we(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),h.push({node:e,eventType:t,handler:n,options:r})}))}function F(){var e;D()&&(z("touchstart",X,{passive:!0}),z("touchend",G,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,X),e){case"mouseenter":z("mouseleave",G);break;case"focus":z(_e?"focusout":"blur",J);break;case"focusin":z("focusout",J)}}))}function Y(){h.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),h=[]}function X(e){var t,n=!1;if(w.state.isEnabled&&!K(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,p=e.currentTarget,R(),!w.state.isVisible&&je(e)&&rt.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||l)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(l=!n),n&&!r&&ne(e)}}function $(e){var t=e.target,n=k().contains(t)||O.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,f="left"===a?s.right.x:0,l=t.top-r+c>i,d=r-t.bottom-p>i,m=t.left-n+u>i,v=n-t.right-f>i;return l||d||m||v}))}(ee().concat(O).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),e)&&(V(),ne(e))}function G(e){K(e)||w.props.trigger.indexOf("click")>=0&&l||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function J(e){w.props.trigger.indexOf("focusin")<0&&e.target!==k()||w.props.interactive&&e.relatedTarget&&O.contains(e.relatedTarget)||ne(e)}function K(e){return!!Se.isTouch&&D()!==e.type.indexOf("touch")>=0}function Q(){Z();var t=w.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=L()?et(O).arrow:null,p=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(L()){var n=S().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];L()&&s&&u.push({name:"arrow",options:{element:s,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),w.popperInstance=fe(p,O,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:u}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return Oe(O.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&I("onTrigger",[w,e]),W();var t=P(!0),n=A(),o=n[0],i=n[1];Se.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),I("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&l)){var t=P(!1);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else N()}}function at(e,t){void 0===t&&(t={});var n=Ye.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;ze(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),ze(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Je(t,n),document.addEventListener("touchstart",Me,ve),window.addEventListener("blur",He);var r=Object.assign({},t,{plugins:n}),o=Ae(e),i=Te(r.content),a=o.length>1;Ue(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var s=o.reduce((function(e,t){var n=t&&it(t,r);return n&&e.push(n),e}),[]);return Te(e)?s[0]:s}at.defaultProps=Ye,at.setDefaultProps=function(e){Je(e,[]),Object.keys(e).forEach((function(t){Ye[t]=e[t]}))},at.currentInput=Se;Object.assign({},b,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var st={clientX:0,clientY:0},ct=[];function pt(e){var t=e.clientX,n=e.clientY;st={clientX:t,clientY:n}}var ut={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=ke(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){n.addEventListener("mousemove",f)}function p(){n.removeEventListener("mousemove",f)}function u(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),c=i-s.left,p=a-s.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+c,r=e.top+p);var s="horizontal"===o?e.top:r,u="vertical"===o?e.right:n,f="horizontal"===o?e.bottom:r,l="vertical"===o?e.left:n;return{width:u-l,height:f-s,top:s,right:u,bottom:f,left:l}}})}function l(){e.props.followCursor&&(ct.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",pt)}(n))}function d(){0===(ct=ct.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",pt)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||o||s()||c()):(p(),u()))},onMount:function(){e.props.followCursor&&!o&&(i&&(f(st),i=!1),s()||c())},onTrigger:function(e,t){je(t)&&(st={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),p(),i=!0)}}}};at.setDefaultProps({render:tt});var ft=at;function lt(e){e.magic("tooltip",(e=>(t,n={})=>{const r=n.timeout;delete n.timeout;const o=ft(e,{content:t,trigger:"manual",...n});o.show(),setTimeout((()=>{o.hide(),setTimeout((()=>o.destroy()),n.duration||300)}),r||2e3)})),e.directive("use-tooltip",((e,{modifiers:t,expression:n},{evaluateLater:r,effect:o})=>{const i=t.length>0?(e=>{const t={plugins:[]},n=t=>e[e.indexOf(t)+1];if(e.includes("animation")&&(t.animation=n("animation")),e.includes("duration")&&(t.duration=parseInt(n("duration"))),e.includes("delay")){const e=n("delay");t.delay=e.includes("-")?e.split("-").map((e=>parseInt(e))):parseInt(e)}if(e.includes("cursor")){t.plugins.push(ut);const e=n("cursor");["x","initial"].includes(e)?t.followCursor="x"===e?"horizontal":"initial":t.followCursor=!0}return e.includes("on")&&(t.trigger=n("on")),e.includes("arrowless")&&(t.arrow=!1),e.includes("html")&&(t.allowHTML=!0),e.includes("interactive")&&(t.interactive=!0),e.includes("border")&&t.interactive&&(t.interactiveBorder=parseInt(n("border"))),e.includes("debounce")&&t.interactive&&(t.interactiveDebounce=parseInt(n("debounce"))),e.includes("max-width")&&(t.maxWidth=parseInt(n("max-width"))),e.includes("theme")&&(t.theme=n("theme")),e.includes("placement")&&(t.placement=n("placement")),t})(t):{};e.__x_tippy||(e.__x_tippy=ft(e,i));const a=()=>e.__x_tippy.enable(),s=t=>{t?(a(),e.__x_tippy.setContent(t)):e.__x_tippy.disable()};if(t.includes("raw"))s(n);else{const t=r(n);o((()=>{t((t=>{"object"==typeof t?(e.__x_tippy.setProps(t),a()):s(t)}))}))}}))}lt.defaultProps=e=>(ft.setDefaultProps(e),lt);var dt=lt;document.addEventListener("alpine:initializing",(()=>{dt(window.Alpine)}))})();