var C=(O,q)=>()=>(q||O((q={exports:{}}).exports,q),q.exports);var w=C((A,H)=>{H.exports={options:{html:!1,placement:"top",container:"body",scrollContainer:window,template:'
',removalDelay:200,tooltipOffset:10,windowPadding:{top:10,right:10,bottom:10,left:10}},init:function O(q){var z=this;document.documentElement.scrollTop=1,this.documentElement=document.documentElement.scrollTop===1?document.documentElement:document.body;var J=document.createElement("div");if(J.innerHTML=''+F+"
"),Q.appendChild(Z);if((this.options.html||S)&&D)if(this.isElement(D))V=D;else if(this.getTagName(D))V=this.createDOMElement(D);else V=this.createDOMElement(''+D+"
");else V=this.createDOMElement(''+D+"
");if(Q.appendChild(V),U&&U!==this.options.container){if(typeof U==="string")this.currentContainer=document.querySelector(U)}else this.currentContainer=document.querySelector(this.options.container);if(I&&I!==this.options.scrollContainer){if(typeof I==="string")this.currentScrollContainer=document.querySelector(I)}else this.currentScrollContainer=this.options.scrollContainer;if(z.autoClose===!1||q.getAttribute("data-tooltip-autoclose")==="false")Q.setAttribute("data-autoclose","false");if(G)this.currentTooltip=G.parentNode.insertBefore(Q,G);else this.currentTooltip=this.currentContainer.appendChild(Q);if(this.currentTrigger=q,this.positionTooltip(this.currentTooltip,this.currentTrigger,K),this.currentScrollContainer!==window)this.addEventListener(this.currentScrollContainer,"scroll",this.windowChangeHandler);return this.currentTooltip},close:function O(q){if(typeof q==="string")q=document.body.querySelector(q);if(this.currentScrollContainer!==window)this.removeEventListener(this.currentScrollContainer,"scroll",this.windowChangeHandler);this.removeClass(q,"visible"),this.currentTooltip=null,this.currentTrigger=null,this.currentScrollContainer=null,window.setTimeout(function z(){if(q&&q instanceof window.Element&&q.parentNode)q.parentNode.removeChild(q);else if(q=document.body.querySelector(".tooltip"),q&&q.parentNode)q.parentNode.removeChild(q)},this.options.removalDelay)},positionTooltip:function O(q,z,J){if(typeof q==="string")q=document.body.querySelector(q);if(typeof z==="string")z=document.body.querySelector(z);if(!J)J=z.getAttribute("data-tooltip-placement")||this.options.placement;var D=this,F=q.querySelector(".tooltip-accent"),S=z.getBoundingClientRect(),K=Math.floor(S.width),U=Math.floor(S.height),I=S.left,G=S.top,Q=this.options.windowPadding.top,Z=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.options.windowPadding.right,V=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-this.options.windowPadding.bottom,x=this.options.windowPadding.left,b,R,B,P,M,_,j,L,y,X,$,k;if(this.currentScrollContainer.getBoundingClientRect){var E=this.currentScrollContainer.getBoundingClientRect();if(E.top>=0)b=E.top+this.options.windowPadding.top;if(E.right<=Z)R=E.right-this.options.windowPadding.right;if(E.bottom<=V)B=E.bottom-this.options.windowPadding.bottom;if(E.left>=x)P=E.left+this.options.windowPadding.left}function T(){if(M=I-j/2+K/2,_=G-L-D.options.tooltipOffset,y=M+j,D.addClass(q,"tooltip-top"),!$)$=parseInt(F.offsetWidth,10);if(!k)k=parseInt(F.offsetHeight,10);if(G+U<=b){if(D.hasClass(q,"visible"))D.removeClass(q,"visible")}if(y>Z||y>R)q.style.top="auto",q.style.bottom=V+D.options.windowPadding.bottom-G+D.options.tooltipOffset+"px",q.style.right=D.options.windowPadding.right+"px",F.style.left="auto",F.style.right=K/2-$/2+(Z-I-K)+"px";else if(_Z||y>R)return D.removeClass(q,"tooltip-right"),T();else q.style.top=_+"px",q.style.left=M+"px",F.style.right="",F.style.bottom="",F.style.left="",F.style.top=L/2-k/2+"px"}function Y(){if(M=I-j/2+K/2,_=G+U+D.options.tooltipOffset,y=M+j,X=_+L,D.addClass(q,"tooltip-bottom"),!$)$=parseInt(F.offsetWidth,10);if(G>=B){if(D.hasClass(q,"visible"))D.removeClass(q,"visible")}if(y>Z||y>R)q.style.top=_+"px",q.style.right=D.options.windowPadding.right+"px",F.style.left="auto",F.style.right=K/2-$/2+(Z-I-K)+"px";else if(X>V||X>B)return D.removeClass(q,"tooltip-bottom"),T();else if(Mb&&G=B)D.removeClass(q,"visible");return q},addEventListener:function O(q,z,J,D){if(!D)D=!1;if(q.addEventListener)return q.addEventListener(z,J,D),q;else{if(z==="focus")z="focusin";return q.attachEvent("on"+z,function(){J.call(q)}),q}},removeEventListener:function O(q,z,J,D){if(!D)D=!1;if(!q)return;if(q.removeEventListener)q.removeEventListener(z,J,D);else{if(z==="focus")z="focusin";q.detachEvent("on"+z,function(){J.call(q)})}return q},hasClass:function O(q,z){if(q.classList)return q.classList.contains(z);else return new RegExp("(^| )"+z+"( |$)","gi").test(q.className)},addClass:function O(q,z){if(q.classList)q.classList.add(z);else q.className+=" "+z;return q},removeClass:function O(q,z){if(q)if(q.classList)q.classList.remove(z);else q.className=q.className.replace(new RegExp("(^|\\b)"+z.split(" ").join("|")+"(\\b|$)","gi")," ");return q},setInnerText:function O(q,z){if(q.textContent!==void 0)q.textcontent=z;else q.innerText=z;return q},getTagName:function O(q){return/<([\w:]+)/.exec(q)},isElement:function O(q){return!!(q&&q.nodeType===1)},createDOMElement:function O(q){q=q.replace(/^\s+|\s+$/g,"");var z=this.getTagName(q)[1],J=this.map[z]||this.map.defaultTag,D=J[0],F=J[1],S=J[2],K=document.createElement("div");K.innerHTML=F+q+S;while(D--)K=K.lastChild;return K.removeChild(K.firstChild)},hasParent:function O(q,z){if(!q||!z)return!1;var J=!1;while(q.parentNode&&!J)if(q=q.parentNode,q===z)J=!0;return J}}});export default w(); //# debugId=9835718B3D42F23F64756E2164756E21