ll-package
Version:
22 lines (13 loc) • 20.9 kB
JavaScript
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Et=require("../../@popperjs/core/lib/modifiers/applyStyles.js"),Tt=require("../../@popperjs/core/lib/popper.js");var Ot="tippy-box",ze="tippy-content",wt="tippy-backdrop",Ye="tippy-arrow",Ge="tippy-svg-arrow",V={passive:!0,capture:!0},Ke=function(){return document.body};function Dt(e,r){return{}.hasOwnProperty.call(e,r)}function ce(e,r,i){if(Array.isArray(e)){var a=e[r];return a??(Array.isArray(i)?i[r]:i)}return e}function me(e,r){var i={}.toString.call(e);return i.indexOf("[object")===0&&i.indexOf(r+"]")>-1}function Xe(e,r){return typeof e=="function"?e.apply(void 0,r):e}function Pe(e,r){if(r===0)return e;var i;return function(a){clearTimeout(i),i=setTimeout(function(){e(a)},r)}}function Je(e,r){var i=Object.assign({},e);return r.forEach(function(a){delete i[a]}),i}function At(e){return e.split(/\s+/).filter(Boolean)}function P(e){return[].concat(e)}function Ue(e,r){e.indexOf(r)===-1&&e.push(r)}function Lt(e){return e.filter(function(r,i){return e.indexOf(r)===i})}function St(e){return e.split("-")[0]}function ne(e){return[].slice.call(e)}function ke(e){return Object.keys(e).reduce(function(r,i){return e[i]!==void 0&&(r[i]=e[i]),r},{})}function z(){return document.createElement("div")}function Y(e){return["Element","Fragment"].some(function(r){return me(e,r)})}function Nt(e){return me(e,"NodeList")}function Ct(e){return me(e,"MouseEvent")}function Mt(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function xt(e){return Y(e)?[e]:Nt(e)?ne(e):Array.isArray(e)?e:ne(document.querySelectorAll(e))}function pe(e,r){e.forEach(function(i){i&&(i.style.transitionDuration=r+"ms")})}function Re(e,r){e.forEach(function(i){i&&i.setAttribute("data-state",r)})}function Vt(e){var r,i=P(e),a=i[0];return a!=null&&(r=a.ownerDocument)!=null&&r.body?a.ownerDocument:document}function jt(e,r){var i=r.clientX,a=r.clientY;return e.every(function(f){var p=f.popperRect,u=f.popperState,y=f.props,v=y.interactiveBorder,b=St(u.placement),g=u.modifiersData.offset;if(!g)return!0;var C=b==="bottom"?g.top.y:0,M=b==="top"?g.bottom.y:0,j=b==="right"?g.left.x:0,L=b==="left"?g.right.x:0,k=p.top-a+C>v,m=a-p.bottom-M>v,h=p.left-i+j>v,O=i-p.right-L>v;return k||m||h||O})}function de(e,r,i){var a=r+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(f){e[a](f,i)})}function Be(e,r){for(var i=r;i;){var a;if(e.contains(i))return!0;i=i.getRootNode==null||(a=i.getRootNode())==null?void 0:a.host}return!1}var N={isTouch:!1},He=0;function It(){N.isTouch||(N.isTouch=!0,window.performance&&document.addEventListener("mousemove",Qe))}function Qe(){var e=performance.now();e-He<20&&(N.isTouch=!1,document.removeEventListener("mousemove",Qe)),He=e}function _t(){var e=document.activeElement;if(Mt(e)){var r=e._tippy;e.blur&&!r.state.isVisible&&e.blur()}}function Pt(){document.addEventListener("touchstart",It,V),window.addEventListener("blur",_t)}var Ut=typeof window<"u"&&typeof document<"u",kt=Ut?!!window.msCrypto:!1;function F(e){var r=e==="destroy"?"n already-":" ";return[e+"() was called on a"+r+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Fe(e){var r=/[ \t]{2,}/g,i=/^[ \t]*/gm;return e.replace(r," ").replace(i,"").trim()}function Rt(e){return Fe(`
%ctippy.js
%c`+Fe(e)+`
%c👷 This is a development-only message. It will be removed in production.
`)}function Ze(e){return[Rt(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var G;process.env.NODE_ENV!=="production"&&Bt();function Bt(){G=new Set}function x(e,r){if(e&&!G.has(r)){var i;G.add(r),(i=console).warn.apply(i,Ze(r))}}function re(e,r){if(e&&!G.has(r)){var i;G.add(r),(i=console).error.apply(i,Ze(r))}}function Ht(e){var r=!e,i=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;re(r,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),re(i,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var et={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ft={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},T=Object.assign({appendTo:Ke,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},et,Ft),Wt=Object.keys(T),$t=function(r){process.env.NODE_ENV!=="production"&&nt(r,[]);var i=Object.keys(r);i.forEach(function(a){T[a]=r[a]})};function tt(e){var r=e.plugins||[],i=r.reduce(function(a,f){var p=f.name,u=f.defaultValue;if(p){var y;a[p]=e[p]!==void 0?e[p]:(y=T[p])!=null?y:u}return a},{});return Object.assign({},e,i)}function qt(e,r){var i=r?Object.keys(tt(Object.assign({},T,{plugins:r}))):Wt,a=i.reduce(function(f,p){var u=(e.getAttribute("data-tippy-"+p)||"").trim();if(!u)return f;if(p==="content")f[p]=u;else try{f[p]=JSON.parse(u)}catch{f[p]=u}return f},{});return a}function We(e,r){var i=Object.assign({},r,{content:Xe(r.content,[e])},r.ignoreAttributes?{}:qt(e,r.plugins));return i.aria=Object.assign({},T.aria,i.aria),i.aria={expanded:i.aria.expanded==="auto"?r.interactive:i.aria.expanded,content:i.aria.content==="auto"?r.interactive?null:"describedby":i.aria.content},i}function nt(e,r){e===void 0&&(e={}),r===void 0&&(r=[]);var i=Object.keys(e);i.forEach(function(a){var f=Je(T,Object.keys(et)),p=!Dt(f,a);p&&(p=r.filter(function(u){return u.name===a}).length===0),x(p,["`"+a+"`","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.",`
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var zt=function(){return"innerHTML"};function le(e,r){e[zt()]=r}function $e(e){var r=z();return e===!0?r.className=Ye:(r.className=Ge,Y(e)?r.appendChild(e):le(r,e)),r}function qe(e,r){Y(r.content)?(le(e,""),e.appendChild(r.content)):typeof r.content!="function"&&(r.allowHTML?le(e,r.content):e.textContent=r.content)}function ve(e){var r=e.firstElementChild,i=ne(r.children);return{box:r,content:i.find(function(a){return a.classList.contains(ze)}),arrow:i.find(function(a){return a.classList.contains(Ye)||a.classList.contains(Ge)}),backdrop:i.find(function(a){return a.classList.contains(wt)})}}function rt(e){var r=z(),i=z();i.className=Ot,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var a=z();a.className=ze,a.setAttribute("data-state","hidden"),qe(a,e.props),r.appendChild(i),i.appendChild(a),f(e.props,e.props);function f(p,u){var y=ve(r),v=y.box,b=y.content,g=y.arrow;u.theme?v.setAttribute("data-theme",u.theme):v.removeAttribute("data-theme"),typeof u.animation=="string"?v.setAttribute("data-animation",u.animation):v.removeAttribute("data-animation"),u.inertia?v.setAttribute("data-inertia",""):v.removeAttribute("data-inertia"),v.style.maxWidth=typeof u.maxWidth=="number"?u.maxWidth+"px":u.maxWidth,u.role?v.setAttribute("role",u.role):v.removeAttribute("role"),(p.content!==u.content||p.allowHTML!==u.allowHTML)&&qe(b,e.props),u.arrow?g?p.arrow!==u.arrow&&(v.removeChild(g),v.appendChild($e(u.arrow))):v.appendChild($e(u.arrow)):g&&v.removeChild(g)}return{popper:r,onUpdate:f}}rt.$$tippy=!0;var Yt=1,te=[],fe=[];function Gt(e,r){var i=We(e,Object.assign({},T,tt(ke(r)))),a,f,p,u=!1,y=!1,v=!1,b=!1,g,C,M,j=[],L=Pe(Ne,i.interactiveDebounce),k,m=Yt++,h=null,O=Lt(i.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},t={id:m,reference:e,popper:z(),popperInstance:h,props:i,state:w,plugins:O,clearDelayTimeouts:dt,setProps:ft,setContent:lt,show:vt,hide:mt,hideWithInteractivity:gt,enable:ct,disable:pt,unmount:ht,destroy:yt};if(!i.render)return process.env.NODE_ENV!=="production"&&re(!0,"render() function has not been supplied."),t;var K=i.render(t),d=K.popper,ge=K.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+t.id,t.popper=d,e._tippy=t,d._tippy=t;var it=O.map(function(n){return n.fn(t)}),ot=e.hasAttribute("aria-expanded");return Ae(),q(),X(),D("onCreate",[t]),i.showOnCreate&&Ie(),d.addEventListener("mouseenter",function(){t.props.interactive&&t.state.isVisible&&t.clearDelayTimeouts()}),d.addEventListener("mouseleave",function(){t.props.interactive&&t.props.trigger.indexOf("mouseenter")>=0&&W().addEventListener("mousemove",L)}),t;function he(){var n=t.props.touch;return Array.isArray(n)?n:[n,0]}function ye(){return he()[0]==="hold"}function S(){var n;return!!((n=t.props.render)!=null&&n.$$tippy)}function I(){return k||e}function W(){var n=I().parentNode;return n?Vt(n):document}function $(){return ve(d)}function be(n){return t.state.isMounted&&!t.state.isVisible||N.isTouch||g&&g.type==="focus"?0:ce(t.props.delay,n?0:1,T.delay)}function X(n){n===void 0&&(n=!1),d.style.pointerEvents=t.props.interactive&&!n?"":"none",d.style.zIndex=""+t.props.zIndex}function D(n,o,s){if(s===void 0&&(s=!0),it.forEach(function(c){c[n]&&c[n].apply(c,o)}),s){var l;(l=t.props)[n].apply(l,o)}}function Ee(){var n=t.props.aria;if(n.content){var o="aria-"+n.content,s=d.id,l=P(t.props.triggerTarget||e);l.forEach(function(c){var E=c.getAttribute(o);if(t.state.isVisible)c.setAttribute(o,E?E+" "+s:s);else{var A=E&&E.replace(s,"").trim();A?c.setAttribute(o,A):c.removeAttribute(o)}})}}function q(){if(!(ot||!t.props.aria.expanded)){var n=P(t.props.triggerTarget||e);n.forEach(function(o){t.props.interactive?o.setAttribute("aria-expanded",t.state.isVisible&&o===I()?"true":"false"):o.removeAttribute("aria-expanded")})}}function ie(){W().removeEventListener("mousemove",L),te=te.filter(function(n){return n!==L})}function J(n){if(!(N.isTouch&&(v||n.type==="mousedown"))){var o=n.composedPath&&n.composedPath()[0]||n.target;if(!(t.props.interactive&&Be(d,o))){if(P(t.props.triggerTarget||e).some(function(s){return Be(s,o)})){if(N.isTouch||t.state.isVisible&&t.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[t,n]);t.props.hideOnClick===!0&&(t.clearDelayTimeouts(),t.hide(),y=!0,setTimeout(function(){y=!1}),t.state.isMounted||oe())}}}function Te(){v=!0}function Oe(){v=!1}function we(){var n=W();n.addEventListener("mousedown",J,!0),n.addEventListener("touchend",J,V),n.addEventListener("touchstart",Oe,V),n.addEventListener("touchmove",Te,V)}function oe(){var n=W();n.removeEventListener("mousedown",J,!0),n.removeEventListener("touchend",J,V),n.removeEventListener("touchstart",Oe,V),n.removeEventListener("touchmove",Te,V)}function at(n,o){De(n,function(){!t.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&o()})}function st(n,o){De(n,o)}function De(n,o){var s=$().box;function l(c){c.target===s&&(de(s,"remove",l),o())}if(n===0)return o();de(s,"remove",C),de(s,"add",l),C=l}function R(n,o,s){s===void 0&&(s=!1);var l=P(t.props.triggerTarget||e);l.forEach(function(c){c.addEventListener(n,o,s),j.push({node:c,eventType:n,handler:o,options:s})})}function Ae(){ye()&&(R("touchstart",Se,{passive:!0}),R("touchend",Ce,{passive:!0})),At(t.props.trigger).forEach(function(n){if(n!=="manual")switch(R(n,Se),n){case"mouseenter":R("mouseleave",Ce);break;case"focus":R(kt?"focusout":"blur",Me);break;case"focusin":R("focusout",Me);break}})}function Le(){j.forEach(function(n){var o=n.node,s=n.eventType,l=n.handler,c=n.options;o.removeEventListener(s,l,c)}),j=[]}function Se(n){var o,s=!1;if(!(!t.state.isEnabled||xe(n)||y)){var l=((o=g)==null?void 0:o.type)==="focus";g=n,k=n.currentTarget,q(),!t.state.isVisible&&Ct(n)&&te.forEach(function(c){return c(n)}),n.type==="click"&&(t.props.trigger.indexOf("mouseenter")<0||u)&&t.props.hideOnClick!==!1&&t.state.isVisible?s=!0:Ie(n),n.type==="click"&&(u=!s),s&&!l&&Q(n)}}function Ne(n){var o=n.target,s=I().contains(o)||d.contains(o);if(!(n.type==="mousemove"&&s)){var l=ae().concat(d).map(function(c){var E,A=c._tippy,B=(E=A.popperInstance)==null?void 0:E.state;return B?{popperRect:c.getBoundingClientRect(),popperState:B,props:i}:null}).filter(Boolean);jt(l,n)&&(ie(),Q(n))}}function Ce(n){var o=xe(n)||t.props.trigger.indexOf("click")>=0&&u;if(!o){if(t.props.interactive){t.hideWithInteractivity(n);return}Q(n)}}function Me(n){t.props.trigger.indexOf("focusin")<0&&n.target!==I()||t.props.interactive&&n.relatedTarget&&d.contains(n.relatedTarget)||Q(n)}function xe(n){return N.isTouch?ye()!==n.type.indexOf("touch")>=0:!1}function Ve(){je();var n=t.props,o=n.popperOptions,s=n.placement,l=n.offset,c=n.getReferenceClientRect,E=n.moveTransition,A=S()?ve(d).arrow:null,B=c?{getBoundingClientRect:c,contextElement:c.contextElement||I()}:e,_e={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Z){var H=Z.state;if(S()){var bt=$(),ue=bt.box;["placement","reference-hidden","escaped"].forEach(function(ee){ee==="placement"?ue.setAttribute("data-placement",H.placement):H.attributes.popper["data-popper-"+ee]?ue.setAttribute("data-"+ee,""):ue.removeAttribute("data-"+ee)}),H.attributes.popper={}}}},_=[{name:"offset",options:{offset:l}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!E}},_e];S()&&A&&_.push({name:"arrow",options:{element:A,padding:3}}),_.push.apply(_,(o==null?void 0:o.modifiers)||[]),t.popperInstance=Tt.createPopper(B,d,Object.assign({},o,{placement:s,onFirstUpdate:M,modifiers:_}))}function je(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)}function ut(){var n=t.props.appendTo,o,s=I();t.props.interactive&&n===Ke||n==="parent"?o=s.parentNode:o=Xe(n,[s]),o.contains(d)||o.appendChild(d),t.state.isMounted=!0,Ve(),process.env.NODE_ENV!=="production"&&x(t.props.interactive&&n===T.appendTo&&s.nextElementSibling!==d,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ae(){return ne(d.querySelectorAll("[data-tippy-root]"))}function Ie(n){t.clearDelayTimeouts(),n&&D("onTrigger",[t,n]),we();var o=be(!0),s=he(),l=s[0],c=s[1];N.isTouch&&l==="hold"&&c&&(o=c),o?a=setTimeout(function(){t.show()},o):t.show()}function Q(n){if(t.clearDelayTimeouts(),D("onUntrigger",[t,n]),!t.state.isVisible){oe();return}if(!(t.props.trigger.indexOf("mouseenter")>=0&&t.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(n.type)>=0&&u)){var o=be(!1);o?f=setTimeout(function(){t.state.isVisible&&t.hide()},o):p=requestAnimationFrame(function(){t.hide()})}}function ct(){t.state.isEnabled=!0}function pt(){t.hide(),t.state.isEnabled=!1}function dt(){clearTimeout(a),clearTimeout(f),cancelAnimationFrame(p)}function ft(n){if(process.env.NODE_ENV!=="production"&&x(t.state.isDestroyed,F("setProps")),!t.state.isDestroyed){D("onBeforeUpdate",[t,n]),Le();var o=t.props,s=We(e,Object.assign({},o,ke(n),{ignoreAttributes:!0}));t.props=s,Ae(),o.interactiveDebounce!==s.interactiveDebounce&&(ie(),L=Pe(Ne,s.interactiveDebounce)),o.triggerTarget&&!s.triggerTarget?P(o.triggerTarget).forEach(function(l){l.removeAttribute("aria-expanded")}):s.triggerTarget&&e.removeAttribute("aria-expanded"),q(),X(),ge&&ge(o,s),t.popperInstance&&(Ve(),ae().forEach(function(l){requestAnimationFrame(l._tippy.popperInstance.forceUpdate)})),D("onAfterUpdate",[t,n])}}function lt(n){t.setProps({content:n})}function vt(){process.env.NODE_ENV!=="production"&&x(t.state.isDestroyed,F("show"));var n=t.state.isVisible,o=t.state.isDestroyed,s=!t.state.isEnabled,l=N.isTouch&&!t.props.touch,c=ce(t.props.duration,0,T.duration);if(!(n||o||s||l)&&!I().hasAttribute("disabled")&&(D("onShow",[t],!1),t.props.onShow(t)!==!1)){if(t.state.isVisible=!0,S()&&(d.style.visibility="visible"),X(),we(),t.state.isMounted||(d.style.transition="none"),S()){var E=$(),A=E.box,B=E.content;pe([A,B],0)}M=function(){var _;if(!(!t.state.isVisible||b)){if(b=!0,d.offsetHeight,d.style.transition=t.props.moveTransition,S()&&t.props.animation){var se=$(),Z=se.box,H=se.content;pe([Z,H],c),Re([Z,H],"visible")}Ee(),q(),Ue(fe,t),(_=t.popperInstance)==null||_.forceUpdate(),D("onMount",[t]),t.props.animation&&S()&&st(c,function(){t.state.isShown=!0,D("onShown",[t])})}},ut()}}function mt(){process.env.NODE_ENV!=="production"&&x(t.state.isDestroyed,F("hide"));var n=!t.state.isVisible,o=t.state.isDestroyed,s=!t.state.isEnabled,l=ce(t.props.duration,1,T.duration);if(!(n||o||s)&&(D("onHide",[t],!1),t.props.onHide(t)!==!1)){if(t.state.isVisible=!1,t.state.isShown=!1,b=!1,u=!1,S()&&(d.style.visibility="hidden"),ie(),oe(),X(!0),S()){var c=$(),E=c.box,A=c.content;t.props.animation&&(pe([E,A],l),Re([E,A],"hidden"))}Ee(),q(),t.props.animation?S()&&at(l,t.unmount):t.unmount()}}function gt(n){process.env.NODE_ENV!=="production"&&x(t.state.isDestroyed,F("hideWithInteractivity")),W().addEventListener("mousemove",L),Ue(te,L),L(n)}function ht(){process.env.NODE_ENV!=="production"&&x(t.state.isDestroyed,F("unmount")),t.state.isVisible&&t.hide(),t.state.isMounted&&(je(),ae().forEach(function(n){n._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),fe=fe.filter(function(n){return n!==t}),t.state.isMounted=!1,D("onHidden",[t]))}function yt(){process.env.NODE_ENV!=="production"&&x(t.state.isDestroyed,F("destroy")),!t.state.isDestroyed&&(t.clearDelayTimeouts(),t.unmount(),Le(),delete e._tippy,t.state.isDestroyed=!0,D("onDestroy",[t]))}}function U(e,r){r===void 0&&(r={});var i=T.plugins.concat(r.plugins||[]);process.env.NODE_ENV!=="production"&&(Ht(e),nt(r,i)),Pt();var a=Object.assign({},r,{plugins:i}),f=xt(e);if(process.env.NODE_ENV!=="production"){var p=Y(a.content),u=f.length>1;x(p&&u,["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.",`
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
`,`1) content: element.innerHTML
`,"2) content: () => element.cloneNode(true)"].join(" "))}var y=f.reduce(function(v,b){var g=b&&Gt(b,a);return g&&v.push(g),v},[]);return Y(e)?y[0]:y}U.defaultProps=T;U.setDefaultProps=$t;U.currentInput=N;Object.assign({},Et.default,{effect:function(r){var i=r.state,a={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(i.elements.popper.style,a.popper),i.styles=a,i.elements.arrow&&Object.assign(i.elements.arrow.style,a.arrow)}});var Kt={mouseover:"mouseenter",focusin:"focus",click:"click"};function Xt(e,r){process.env.NODE_ENV!=="production"&&re(!(r&&r.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var i=[],a=[],f=!1,p=r.target,u=Je(r,["target"]),y=Object.assign({},u,{trigger:"manual",touch:!1}),v=Object.assign({touch:T.touch},u,{showOnCreate:!0}),b=U(e,y),g=P(b);function C(m){if(!(!m.target||f)){var h=m.target.closest(p);if(h){var O=h.getAttribute("data-tippy-trigger")||r.trigger||T.trigger;if(!h._tippy&&!(m.type==="touchstart"&&typeof v.touch=="boolean")&&!(m.type!=="touchstart"&&O.indexOf(Kt[m.type])<0)){var w=U(h,v);w&&(a=a.concat(w))}}}}function M(m,h,O,w){w===void 0&&(w=!1),m.addEventListener(h,O,w),i.push({node:m,eventType:h,handler:O,options:w})}function j(m){var h=m.reference;M(h,"touchstart",C,V),M(h,"mouseover",C),M(h,"focusin",C),M(h,"click",C)}function L(){i.forEach(function(m){var h=m.node,O=m.eventType,w=m.handler,t=m.options;h.removeEventListener(O,w,t)}),i=[]}function k(m){var h=m.destroy,O=m.enable,w=m.disable;m.destroy=function(t){t===void 0&&(t=!0),t&&a.forEach(function(K){K.destroy()}),a=[],L(),h()},m.enable=function(){O(),a.forEach(function(t){return t.enable()}),f=!1},m.disable=function(){w(),a.forEach(function(t){return t.disable()}),f=!0},j(m)}return g.forEach(k),b}U.setDefaultProps({render:rt});exports.default=U;exports.delegate=Xt;
;