vendor: 5,963 bytes, lines 1-7
1/** 2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1. 3 * Original file: /npm/[email protected]/dist/tippy.esm.js 4 * 5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 */ 7import{applyStyles as wt,createPopper as Ct}from"@popperjs/core";var Et='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',Ot="tippy-box",ke="tippy-content",He="tippy-backdrop",_e="tippy-arrow",je="tippy-svg-arrow",H={passive:!0,capture:!0},Fe=function(){return document.body};function ve(t,n,r){if(Array.isArray(t)){var o=t[n];return o??(Array.isArray(r)?r[n]:r)}return t}function me(t,n){var r={}.toString.call(t);return r.indexOf("[object")===0&&r.indexOf(n+"]")>-1}function $e(t,n){return typeof t=="function"?t.apply(void 0,n):t}function We(t,n){if(n===0)return t;var r;return function(o){clearTimeout(r),r=setTimeout(function(){t(o)},n)}}function Ye(t,n){var r=Object.assign({},t);return n.forEach(function(o){delete r[o]}),r}function At(t){return t.split(/\s+/).filter(Boolean)}function _(t){return[].concat(t)}function Xe(t,n){t.indexOf(n)===-1&&t.push(n)}function Dt(t){return t.filter(function(n,r){return t.indexOf(n)===r})}function ze(t){return t.split("-")[0]}function q(t){return[].slice.call(t)}function qe(t){return Object.keys(t).reduce(function(n,r){return t[r]!==void 0&&(n[r]=t[r]),n},{})}function $(){return document.createElement("div")}function ie(t){return["Element","Fragment"].some(function(n){return me(t,n)})}function Lt(t){return me(t,"NodeList")}function ge(t){return me(t,"MouseEvent")}function Ge(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function xt(t){return ie(t)?[t]:Lt(t)?q(t):Array.isArray(t)?t:q(document.querySelectorAll(t))}function he(t,n){t.forEach(function(r){r&&(r.style.transitionDuration=n+"ms")})}function Q(t,n){t.forEach(function(r){r&&r.setAttribute("data-state",n)})}function Ke(t){var n,r=_(t),o=r[0];return o!=null&&(n=o.ownerDocument)!=null&&n.body?o.ownerDocument:document}function Mt(t,n){var r=n.clientX,o=n.clientY;return t.every(function(c){var s=c.popperRect,a=c.popperState,l=c.props,d=l.interactiveBorder,b=ze(a.placement),y=a.modifiersData.offset;if(!y)return!0;var L=b==="bottom"?y.top.y:0,O=b==="top"?y.bottom.y:0,A=b==="right"?y.left.x:0,T=b==="left"?y.right.x:0,g=s.top-o+L>d,m=o-s.bottom-O>d,f=s.left-r+A>d,C=r-s.right-T>d;return g||m||f||C})}function be(t,n,r){var o=n+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(c){t[o](c,r)})}function Je(t,n){for(var r=n;r;){var o;if(t.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var N={isTouch:!1},Qe=0;function St(){N.isTouch||(N.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ze))}function Ze(){var t=performance.now();t-Qe<20&&(N.isTouch=!1,document.removeEventListener("mousemove",Ze)),Qe=t}function It(){var t=document.activeElement;if(Ge(t)){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}function Rt(){document.addEventListener("touchstart",St,H),window.addEventListener("blur",It)}var Pt=typeof window<"u"&&typeof document<"u",Ut=Pt?!!window.msCrypto:!1,Vt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Nt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},I=Object.assign({appendTo:Fe,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},Vt,Nt),Bt=Object.keys(I),kt=function(n){var r=Object.keys(n);r.forEach(function(o){I[o]=n[o]})};function et(t){var n=t.plugins||[],r=n.reduce(function(o,c){var s=c.name,a=c.defaultValue;if(s){var l;o[s]=t[s]!==void 0?t[s]:(l=I[s])!=null?l:a}return o},{});return Object.assign({},t,r)}function Ht(t,n){var r=n?Object.keys(et(Object.assign({},I,{plugins:n}))):Bt,o=r.reduce(function(c,s){var a=(t.getAttribute("data-tippy-"+s)||"").trim();if(!a)return c;if(s==="content")c[s]=a;else try{c[s]=JSON.parse(a)}catch{c[s]=a}return c},{});return o}function tt(t,n){var r=Object.assign({},n,{content:$e(n.content,[t])},n.ignoreAttributes?{}:Ht(t,n.plugins));return r.aria=Object.assign({},I.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?n.interactive:r.aria.expanded,content:r.aria.content==="auto"?n.interactive?null:"describedby":r.aria.content},r}var _t=function(){return"innerHTML"};function ye(t,n){t[_t()]=n}function nt(t){var n=$();return t===!0?n.className=_e:(n.className=je,ie(t)?n.appendChild(t):ye(n,t)),n}function rt(t,n){ie(n.content)?(ye(t,""),t.appendChild(n.content)):typeof n.content!="function"&&(n.allowHTML?ye(t,n.content):t.textContent=n.content)}function oe(t){var n=t.firstElementChild,r=q(n.children);return{box:n,content:r.find(function(o){return o.classList.contains(ke)}),arrow:r.find(function(o){return o.classList.contains(_e)||o.classList.contains(je)}),backdrop:r.find(function(o){return o.classList.contains(He)})}}function it(t){var n=$(),r=$();r.className=Ot,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=$();o.className=ke,o.setAttribute("data-state","hidden"),rt(o,t.props),n.appendChild(r),r.appendChild(o),c(t.props,t.props);function c(s,a){var l=oe(n),d=l.box,b=l.content,y=l.arrow;a.theme?d.setAttribute("data-theme",a.theme):d.removeAttribute("data-theme"),typeof a.animation=="str
7ing"?d.setAttribute("data-animation",a.animation):d.removeAttribute("data-animation"),a.inertia?d.setAttribute("data-inertia",""):d.removeAttribute("data-inertia"),d.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?d.setAttribute("role",a.role):d.removeAttribute("role"),(s.content!==a.content||s.allowHTML!==a.allowHTML)&&rt(b,t.props),a.arrow?y?s.arrow!==a.arrow&&(d.removeChild(y),d.appendChild(nt(a.arrow))):d.appendChild(nt(a.arrow)):y&&d.removeChild(y)}return{popper:n,onUpdate:c}}it.$$tippy=!0;var jt=1,ae=[],se=[];function Ft(t,n){var r=tt(t,Object.assign({},I,et(qe(n)))),o,c,s,a=!1,l=!1,d=!1,b=!1,y,L,O,A=[],T=We(Se,r.interactiveDebounce),g,m=jt++,f=null,C=Dt(r.plugins),D={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},e={id:m,reference:t,popper:$(),popperInstance:f,props:r,state:D,plugins:C,clearDelayTimeouts:lt,setProps:dt,setContent:vt,show:mt,hide:gt,hideWithInteractivity:ht,enable:ct,disable:pt,unmount:bt,destroy:yt};if(!r.render)return e;var h=r.render(e),p=h.popper,R=h.onUpdate;p.setAttribute("data-tippy-root",""),p.id="tippy-"+e.id,e.popper=p,t._tippy=e,p._tippy=e;var M=C.map(function(i){return i.fn(e)}),B=t.hasAttribute("aria-expanded");return Le(),J(),Z(),P("onCreate",[e]),r.showOnCreate&&Ne(),p.addEventListener("mouseenter",function(){e.props.interactive&&e.state.isVisible&&e.clearDelayTimeouts()}),p.addEventListener("mouseleave",function(){e.props.interactive&&e.props.trigger.indexOf("mouseenter")>=0&&k().addEventListener("mousemove",T)}),e;function W(){var i=e.props.touch;return Array.isArray(i)?i:[i,0]}function G(){return W()[0]==="hold"}function S(){var i;return!!((i=e.props.render)!=null&&i.$$tippy)}function V(){return g||t}function k(){var i=V().parentNode;return i?Ke(i):document}function K(){return oe(p)}function we(i){return e.state.isMounted&&!e.state.isVisible||N.isTouch||y&&y.type==="focus"?0:ve(e.props.delay,i?0:1,I.delay)}function Z(i){i===void 0&&(i=!1),p.style.pointerEvents=e.props.interactive&&!i?"":"none",p.style.zIndex=""+e.props.zIndex}function P(i,u,v){if(v===void 0&&(v=!0),M.forEach(function(w){w[i]&&w[i].apply(w,u)}),v){var E;(E=e.props)[i].apply(E,u)}}function Ce(){var i=e.props.aria;if(i.content){var u="aria-"+i.content,v=p.id,E=_(e.props.triggerTarget||t);E.forEach(function(w){var x=w.getAttribute(u);if(e.state.isVisible)w.setAttribute(u,x?x+" "+v:v);else{var U=x&&x.replace(v,"").trim();U?w.setAttribute(u,U):w.removeAttribute(u)}})}}function J(){if(!(B||!e.props.aria.expanded)){var i=_(e.props.triggerTarget||t);i.forEach(function(u){e.props.interactive?u.setAttribute("aria-expanded",e.state.isVisible&&u===V()?"true":"false"):u.removeAttribute("aria-expanded")})}}function fe(){k().removeEventListener("mousemove",T),ae=ae.filter(function(i){return i!==T})}function ee(i){if(!(N.isTouch&&(d||i.type==="mousedown"))){var u=i.composedPath&&i.composedPath()[0]||i.target;if(!(e.props.interactive&&Je(p,u))){if(_(e.props.triggerTarget||t).some(function(v){return Je(v,u)})){if(N.isTouch||e.state.isVisible&&e.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[e,i]);e.props.hideOnClick===!0&&(e.clearDelayTimeouts(),e.hide(),l=!0,setTimeout(function(){l=!1}),e.state.isMounted||ce())}}}function Ee(){d=!0}function Oe(){d=!1}
vendor: 5,674 bytes, line 7
7function Ae(){var i=k();i.addEventListener("mousedown",ee,!0),i.addEventListener("touchend",ee,H),i.addEventListener("touchstart",Oe,H),i.addEventListener("touchmove",Ee,H)}function ce(){var i=k();i.removeEventListener("mousedown",ee,!0),i.removeEventListener("touchend",ee,H),i.removeEventListener("touchstart",Oe,H),i.removeEventListener("touchmove",Ee,H)}function st(i,u){De(i,function(){!e.state.isVisible&&p.parentNode&&p.parentNode.contains(p)&&u()})}function ut(i,u){De(i,u)}function De(i,u){var v=K().box;function E(w){w.target===v&&(be(v,"remove",E),u())}if(i===0)return u();be(v,"remove",L),be(v,"add",E),L=E}function Y(i,u,v){v===void 0&&(v=!1);var E=_(e.props.triggerTarget||t);E.forEach(function(w){w.addEventListener(i,u,v),A.push({node:w,eventType:i,handler:u,options:v})})}function Le(){G()&&(Y("touchstart",Me,{passive:!0}),Y("touchend",Ie,{passive:!0})),At(e.props.trigger).forEach(function(i){if(i!=="manual")switch(Y(i,Me),i){case"mouseenter":Y("mouseleave",Ie);break;case"focus":Y(Ut?"focusout":"blur",Re);break;case"focusin":Y("focusout",Re);break}})}function xe(){A.forEach(function(i){var u=i.node,v=i.eventType,E=i.handler,w=i.options;u.removeEventListener(v,E,w)}),A=[]}function Me(i){var u,v=!1;if(!(!e.state.isEnabled||Pe(i)||l)){var E=((u=y)==null?void 0:u.type)==="focus";y=i,g=i.currentTarget,J(),!e.state.isVisible&&ge(i)&&ae.forEach(function(w){return w(i)}),i.type==="click"&&(e.props.trigger.indexOf("mouseenter")<0||a)&&e.props.hideOnClick!==!1&&e.state.isVisible?v=!0:Ne(i),i.type==="click"&&(a=!v),v&&!E&&te(i)}}function Se(i){var u=i.target,v=V().contains(u)||p.contains(u);if(!(i.type==="mousemove"&&v)){var E=pe().concat(p).map(function(w){var x,U=w._tippy,X=(x=U.popperInstance)==null?void 0:x.state;return X?{popperRect:w.getBoundingClientRect(),popperState:X,props:r}:null}).filter(Boolean);Mt(E,i)&&(fe(),te(i))}}function Ie(i){var u=Pe(i)||e.props.trigger.indexOf("click")>=0&&a;if(!u){if(e.props.interactive){e.hideWithInteractivity(i);return}te(i)}}function Re(i){e.props.trigger.indexOf("focusin")<0&&i.target!==V()||e.props.interactive&&i.relatedTarget&&p.contains(i.relatedTarget)||te(i)}function Pe(i){return N.isTouch?G()!==i.type.indexOf("touch")>=0:!1}function Ue(){Ve();var i=e.props,u=i.popperOptions,v=i.placement,E=i.offset,w=i.getReferenceClientRect,x=i.moveTransition,U=S()?oe(p).arrow:null,X=w?{getBoundingClientRect:w,contextElement:w.contextElement||V()}:t,Be={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ne){var z=ne.state;if(S()){var Tt=K(),de=Tt.box;["placement","reference-hidden","escaped"].forEach(function(re){re==="placement"?de.setAttribute("data-placement",z.placement):z.attributes.popper["data-popper-"+re]?de.setAttribute("data-"+re,""):de.removeAttribute("data-"+re)}),z.attributes.popper={}}}},F=[{name:"offset",options:{offset:E}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!x}},Be];S()&&U&&F.push({name:"arrow",options:{element:U,padding:3}}),F.push.apply(F,u?.modifiers||[]),e.popperInstance=Ct(X,p,Object.assign({},u,{placement:v,onFirstUpdate:O,modifiers:F}))}function Ve(){e.popperInstance&&(e.popperInstance.destroy(),e.popperInstance=null)}function ft(){var i=e.props.appendTo,u,v=V();e.props.interactive&&i===Fe||i==="parent"?u=v.parentNode:u=$e(i,[v]),u.contains(p)||u.appendChild(p),e.state.isMounted=!0,Ue()}function pe(){return q(p.querySelectorAll("[data-tippy-root]"))}function Ne(i){e.clearDelayTimeouts(),i&&P("onTrigger",[e,i]),Ae();var u=we(!0),v=W(),E=v[0],w=v[1];N.isTouch&&E==="hold"&&w&&(u=w),u?o=setTimeout(function(){e.show()},u):e.show()}function te(i){if(e.clearDelayTimeouts(),P("onUntrigger",[e,i]),!e.state.isVisible){ce();return}if(!(e.props.trigger.indexOf("mouseenter")>=0&&e.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(i.type)>=0&&a)){var u=we(!1);u?c=setTimeout(function(){e.state.isVisible&&e.hide()},u):s=requestAnimationFrame(function(){e.hide()})}}function ct(){e.state.isEnabled=!0}function pt(){e.hide(),e.state.isEnabled=!1}function lt(){clearTimeout(o),clearTimeout(c),cancelAnimationFrame(s)}function dt(i){if(!e.state.isDestroyed){P("onBeforeUpdate",[e,i]),xe();var u=e.props,v=tt(t,Object.assign({},u,qe(i),{ignoreAttributes:!0}));e.props=v,Le(),u.interactiveDebounce!==v.interactiveDebounce&&(fe(),T=We(Se,v.interactiveDebounce)),u.triggerTarget&&!v.triggerTarget?_(u.triggerTarget).forEach(function(E){E.removeAttribute("aria-expanded")}):v.triggerTarget&&t.removeAttribute("aria-expanded"),J(),Z(),R&&R(u,v),e.popperInstance&&(Ue(),pe().forEach(function(E){requestAnimationFrame(E._tippy.popperInstance.forceUpdate)})),P("onAfterUpdate",[e,i])}}function vt(i){e.setProps({content:i})}function mt(){var i=e.state.isVisible,u=e.state.isDestroyed,v=!e.state.isEnabled,E=N.isTouch&&!e.props.touch,w=ve(e.props.duration,0,I.duration);if(!(i||u||v||E)&&!V().hasAttribute("disabled")&&(P("onShow",[e],!1),e.props.onShow(e)!==!1)){if(e.state.isVisible=!0,S()&&(p.style.visibility="visible"),Z(),Ae(),e.state.isMounted||(p.style.transition="none"),S()){var x=K(),U=x.box,X=x.content;he([U,X],0)}O=function(){var F;if(!(!e.state.isVisible||b)){if(b=!0,p.offsetHeight,p.style.transition=e.props.moveTransition,S()&&e.props.animation){var le=K(),ne=le.box,z=le.content;he([ne,z],w),Q([ne,z],"visible")}Ce(),J(),Xe(se,e),(F=e.popperInstance)==null||F.forceUpdate(),P("onMount",[e]),e.props.animation&&S()&&ut(w,function(){e.state.isShown=!0,P("onShown",[e])})}},ft()}}function gt(){var i=!e.state.isVisible,u=e.state.isDestroyed,v=!e.state.isEnabled,E=ve(e.props.duration,1,I.duration);
7if(!(i||u||v)&&(P("onHide",[e],!1),e.props.onHide(e)!==!1)){if(e.state.isVisible=!1,e.state.isShown=!1,b=!1,a=!1,S()&&(p.style.visibility="hidden"),fe(),ce(),Z(!0),S()){var w=K(),x=w.box,U=w.content;e.props.animation&&(he([x,U],E),Q([x,U],"hidden"))}Ce(),J(),e.props.animation?S()&&st(E,e.unmount):e.unmount()}}function ht(i){k().addEventListener("mousemove",T),Xe(ae,T),T(i)}function bt(){e.state.isVisible&&e.hide(),e.state.isMounted&&(Ve(),pe().forEach(function(i){i._tippy.unmount()}),p.parentNode&&p.parentNode.removeChild(p),se=se.filter(function(i){return i!==e}),e.state.isMounted=!1,P("onHidden",[e]))}function yt(){e.state.isDestroyed||(e.clearDelayTimeouts(),e.unmount(),xe(),delete t._tippy,e.state.isDestroyed=!0,P("onDestroy",[e]))}}function j(t,n){n===void 0&&(n={});var r=I.plugins.concat(n.plugins||[]);Rt();var o=Object.assign({},n,{plugins:r}),c=xt(t),s=c.reduce(function(a,l){var d=l&&Ft(l,o);return d&&a.push(d),a},[]);return ie(t)?s[0]:s}j.defaultProps=I,j.setDefaultProps=kt,j.currentInput=N;var $t=function(n){var r=n===void 0?{}:n,o=r.exclude,c=r.duration;se.forEach(function(s){var a=!1;if(o&&(a=Ge(o)?s.reference===o:s.popper===o.popper),!a){var l=s.props.duration;s.setProps({duration:c}),s.hide(),s.state.isDestroyed||s.setProps({duration:l})}})},Wt=Object.assign({},wt,{effect:function(n){var r=n.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}}),Yt=function(n,r){var o;r===void 0&&(r={});var c=n,s=[],a=[],l,d=r.overrides,b=[],y=!1;function L(){a=c.map(function(e){return _(e.props.triggerTarget||e.reference)}).reduce(function(e,h){return e.concat(h)},[])}function O(){s=c.map(function(e){return e.reference})}function A(e){c.forEach(function(h){e?h.enable():h.disable()})}function T(e){return c.map(function(h){var p=h.setProps;return h.setProps=function(R){p(R),h.reference===l&&e.setProps(R)},function(){h.setProps=p}})}function g(e,h){var p=a.indexOf(h);if(h!==l){l=h;var R=(d||[]).concat("content").reduce(function(M,B){return M[B]=c[p].props[B],M},{});e.setProps(Object.assign({},R,{getReferenceClientRect:typeof R.getReferenceClientRect=="function"?R.getReferenceClientRect:function(){var M;return(M=s[p])==null?void 0:M.getBoundingClientRect()}}))}}A(!1),O(),L();var m={fn:function(){return{onDestroy:function(){A(!0)},onHidden:function(){l=null},onClickOutside:function(p){p.props.showOnCreate&&!y&&(y=!0,l=null)},onShow:function(p){p.props.showOnCreate&&!y&&(y=!0,g(p,s[0]))},onTrigger:function(p,R){g(p,R.currentTarget)}}}},f=j($(),Object.assign({},Ye(r,["overrides"]),{plugins:[m].concat(r.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},r.popperOptions,{modifiers:[].concat(((o=r.popperOptions)==null?void 0:o.modifiers)||[],[Wt])})})),C=f.show;f.show=function(e){if(C(),!l&&e==null)return g(f,s[0]);if(!(l&&e==null)){if(typeof e=="number")return s[e]&&g(f,s[e]);if(c.indexOf(e)>=0){var h=e.reference;return g(f,h)}if(s.indexOf(e)>=0)return g(f,e)}},f.showNext=function(){var e=s[0];if(!l)return f.show(0);var h=s.indexOf(l);f.show(s[h+1]||e)},f.showPrevious=function(){var e=s[s.length-1];if(!l)return f.show(e);var h=s.indexOf(l),p=s[h-1]||e;f.show(p)};var D=f.setProps;return f.setProps=function(e){d=e.overrides||d,D(e)},f.setInstances=function(e){A(!0),b.forEach(function(h){return h()}),c=e,A(!1),O(),L(),b=T(f),f.setProps({triggerTarget:a})},b=T(f),f},Xt={mouseover:"mouseenter",focusin:"focus",click:"click"};function zt(t,n){var r=[],o=[],c=!1,s=n.target,a=Ye(n,["target"]),l=Object.assign({},a,{trigger:"manual",touch:!1}),d=Object.assign({touch:I.touch},a,{showOnCreate:!0}),b=j(t,l),y=_(b);function L(m){if(!(!m.target||c)){var f=m.target.closest(s);if(f){var C=f.getAttribute("data-tippy-trigger")||n.trigger||I.trigger;if(!f._tippy&&!(m.type==="touchstart"&&typeof d.touch=="boolean")&&!(m.type!=="touchstart"&&C.indexOf(Xt[m.type])<0)){var D=j(f,d);D&&(o=o.concat(D))}}}}function O(m,f,C,D){D===void 0&&(D=!1),m.addEventListener(f,C,D),r.push({node:m,eventType:f,handler:C,options:D})}function A(m){var f=m.reference;O(f,"touchstart",L,H),O(f,"mouseover",L),O(f,"focusin",L),O(f,"click",L)}function T(){r.forEach(function(m){var f=m.node,C=m.eventType,D=m.handler,e=m.options;f.removeEventListener(C,D,e)}),r=[]}function g(m){var f=m.destroy,C=m.enable,D=m.disable;m.destroy=function(e){e===void 0&&(e=!0),e&&o.forEach(function(h){h.destroy()}),o=[],T(),f()},m.enable=function(){C(),o.forEach(function(e){return e.enable()}),c=!1},m.disable=function(){D(),o.forEach(function(e){return e.disable()}),c=!0},A(m)}
7return y.forEach(g),b}var qt={name:"animateFill",defaultValue:!1,fn:function(n){var r;if(!((r=n.props.render)!=null&&r.$$tippy))return{};var o=oe(n.popper),c=o.box,s=o.content,a=n.props.animateFill?Gt():null;return{onCreate:function(){a&&(c.insertBefore(a,c.firstElementChild),c.setAttribute("data-animatefill",""),c.style.overflow="hidden",n.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(a){var d=c.style.transitionDuration,b=Number(d.replace("ms",""));s.style.transitionDelay=Math.round(b/10)+"ms",a.style.transitionDuration=d,Q([a],"visible")}},onShow:function(){a&&(a.style.transitionDuration="0ms")},onHide:function(){a&&Q([a],"hidden")}}}};function Gt(){var t=$();return t.className=He,Q([t],"hidden"),t}var Te={clientX:0,clientY:0},ue=[];function ot(t){var n=t.clientX,r=t.clientY;Te={clientX:n,clientY:r}}function Kt(t){t.addEventListener("mousemove",ot)}function Jt(t){t.removeEventListener("mousemove",ot)}var Qt={name:"followCursor",defaultValue:!1,fn:function(n){var r=n.reference,o=Ke(n.props.triggerTarget||r),c=!1,s=!1,a=!0,l=n.props;function d(){return n.props.followCursor==="initial"&&n.state.isVisible}function b(){o.addEventListener("mousemove",O)}function y(){o.removeEventListener("mousemove",O)}function L(){c=!0,n.setProps({getReferenceClientRect:null}),c=!1}function O(g){var m=g.target?r.contains(g.target):!0,f=n.props.followCursor,C=g.clientX,D=g.clientY,e=r.getBoundingClientRect(),h=C-e.left,p=D-e.top;(m||!n.props.interactive)&&n.setProps({getReferenceClientRect:function(){var M=r.getBoundingClientRect(),B=C,W=D;f==="initial"&&(B=M.left+h,W=M.top+p);var G=f==="horizontal"?M.top:W,S=f==="vertical"?M.right:B,V=f==="horizontal"?M.bottom:W,k=f==="vertical"?M.left:B;return{width:S-k,height:V-G,top:G,right:S,bottom:V,left:k}}})}function A(){n.props.followCursor&&(ue.push({instance:n,doc:o}),Kt(o))}function T(){ue=ue.filter(function(g){return g.instance!==n}),ue.filter(function(g){return g.doc===o}).length===0&&Jt(o)}return{onCreate:A,onDestroy:T,onBeforeUpdate:function(){l=n.props},onAfterUpdate:function(m,f){var C=f.followCursor;c||C!==void 0&&l.followCursor!==C&&(T(),C?(A(),n.state.isMounted&&!s&&!d()&&b()):(y(),L()))},onMount:function(){n.props.followCursor&&!s&&(a&&(O(Te),a=!1),d()||b())},onTrigger:function(m,f){ge(f)&&(Te={clientX:f.clientX,clientY:f.clientY}),s=f.type==="focus"},onHidden:function(){n.props.followCursor&&(L(),y(),a=!0)}}}};function Zt(t,n){var r;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((((r=t.popperOptions)==null?void 0:r.modifiers)||[]).filter(function(o){var c=o.name;return c!==n.name}),[n])})}}var en={name:"inlinePositioning",defaultValue:!1,fn:function(n){var r=n.reference;function o(){return!!n.props.inlinePositioning}var c,s=-1,a=!1,l=[],d={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(A){var T=A.state;o()&&(l.indexOf(T.placement)!==-1&&(l=[]),c!==T.placement&&l.indexOf(T.placement)===-1&&(l.push(T.placement),n.setProps({getReferenceClientRect:function(){return b(T.placement)}})),c=T.placement)}};function b(O){return tn(ze(O),r.getBoundingClientRect(),q(r.getClientRects()),s)}function y(O){a=!0,n.setProps(O),a=!1}function L(){a||y(Zt(n.props,d))}return{onCreate:L,onAfterUpdate:L,onTrigger:function(A,T){if(ge(T)){var g=q(n.reference.getClientRects()),m=g.find(function(C){return C.left-2<=T.clientX&&C.right+2>=T.clientX&&C.top-2<=T.clientY&&C.bottom+2>=T.clientY}),f=g.indexOf(m);s=f>-1?f:s}},onHidden:function(){s=-1}}}};function tn(t,n,r,o){if(r.length<2||t===null)return n;if(r.length===2&&o>=0&&r[0].left>r[1].right)return r[o]||n;switch(t){case"top":case"bottom":{var c=r[0],s=r[r.length-1],a=t==="top",l=c.top,d=s.bottom,b=a?c.left:s.left,y=a?c.right:s.right,L=y-b,O=d-l;return{top:l,bottom:d,left:b,right:y,width:L,height:O}}case"left":case"right":{var A=Math.min.apply(Math,r.map(function(p){return p.left})),T=Math.max.apply(Math,r.map(function(p){return p.right})),g=r.filter(function(p){return t==="left"?p.left===A:p.right===T}),m=g[0].top,f=g[g.length-1].bottom,C=A,D=T,e=D-C,h=f-m;return{top:m,bottom:f,left:C,right:D,width:e,height:h}}default:return n}}var nn={name:"sticky",defaultValue:!1,fn:function(n){var r=n.reference,o=n.popper;function c(){return n.popperInstance?n.popperInstance.state.elements.reference:r}function s(b){return n.props.sticky===!0||n.props.sticky===b}var a=null,l=null;function d(){var b=s("reference")?c().getBoundingClientRect():null,y=s("popper")?o.getBoundingClientRect():null;(b&&at(a,b)||y&&at(l,y))&&n.popperInstance&&n.popperInstance.update(
7),a=b,l=y,n.state.isMounted&&requestAnimationFrame(d)}return{onMount:function(){n.props.sticky&&d()}}}};function at(t,n){return t&&n?t.top!==n.top||t.right!==n.right||t.bottom!==n.bottom||t.left!==n.left:!0}j.setDefaultProps({render:it});export{qt as animateFill,Yt as createSingleton,j as default,zt as delegate,Qt as followCursor,$t as hideAll,en as inlinePositioning,Et as roundArrow,nn as sticky};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.