function createTip(t){var e=this.title;this.title="",this.setAttribute("tooltip",e);var i=document.createElement("div");i.className="wf_tooltip",i.appendChild(document.createTextNode(e)),document.body.appendChild(i),i.setAttribute("style","bottom:60px;right:5px; position:fixed;")}function cancelTip(t){var e=this.getAttribute("tooltip");this.title=e,this.removeAttribute("tooltip"),document.querySelector(".wf_tooltip").remove()}const svg=document.createElementNS("http://www.w3.org/2000/svg","svg");svg.setAttribute("viewBox","0 0 50 50"),svg.setAttribute("width","50"),svg.setAttribute("height","50"),svg.setAttribute("xmlns","http://www.w3.org/2000/svg");var random=Math.floor(4*Math.random());null!=document.currentScript.getAttribute("icon")&&(random=parseInt(document.currentScript.getAttribute("icon")));var iconName="Icon",iconColor="#262626";switch(random){case 0:iconName="Star icon",iconColor="#B2C7FF";let t=document.createElementNS("http://www.w3.org/2000/svg","polygon");t.setAttribute("points","25.07 16.84 28.82 9.46 28.71 17.74 35.46 12.95 31.52 20.23 39.73 19.12 32.85 23.74 40.63 26.57 32.4 27.46 37.97 33.59 30.27 30.55 32.35 38.56 26.95 32.29 25.07 40.36 23.19 32.29 17.78 38.56 19.87 30.55 12.17 33.59 17.74 27.46 9.51 26.57 17.29 23.74 10.41 19.12 18.62 20.23 14.67 12.95 21.43 17.74 21.32 9.46 25.07 16.84"),t.setAttribute("fill",iconColor),svg.appendChild(t);break;case 1:iconName="Wheel icon",iconColor="#FF7CB6";let e=document.createElementNS("http://www.w3.org/2000/svg","polygon");e.setAttribute("points","38.32 23.87 30.96 23.87 37.84 21.21 37.03 19.12 30.16 21.78 35.61 16.82 34.11 15.17 28.66 20.13 31.95 13.53 29.95 12.53 26.67 19.12 27.35 11.78 25.12 11.57 24.44 18.91 22.43 11.81 20.28 12.42 22.29 19.51 17.85 13.62 16.06 14.97 20.5 20.85 14.23 16.96 13.06 18.86 19.32 22.74 12.07 21.39 11.66 23.58 18.9 24.94 11.65 26.29 12.06 28.49 19.3 27.13 13.03 31.02 14.21 32.92 20.47 29.04 16.02 34.92 17.81 36.27 22.24 30.39 20.23 37.49 22.38 38.1 24.39 31.01 25.07 38.36 27.3 38.15 26.62 30.82 29.9 37.42 31.9 36.42 28.62 29.83 34.07 34.8 35.58 33.15 30.13 28.19 37.01 30.85 37.82 28.77 30.95 26.11 38.32 26.11 38.32 23.87"),e.setAttribute("fill",iconColor),svg.appendChild(e);break;case 2:iconName="Circle icon",iconColor="#FFEB00";let i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttribute("cx","25.03"),i.setAttribute("cy","25.03"),i.setAttribute("r","13.01"),i.setAttribute("fill",iconColor),svg.appendChild(i);break;case 3:iconName="Triangle icon",iconColor="#00BD4D";let o=document.createElementNS("http://www.w3.org/2000/svg","polygon");o.setAttribute("points","40.04 14.73 9.98 14.73 25.01 40.77 40.04 14.73"),o.setAttribute("fill",iconColor),svg.appendChild(o)}const link=document.createElement("a"),currentDomain=window.location.hostname,title="experience designed by Wisefools",href="proxy.php?url=https://www.wisefools.studio/?utm_source="+currentDomain+"&utm_medium=Credits&utm_campaign="+title+"&utm_term="+iconName,svgData=new XMLSerializer().serializeToString(svg);link.setAttribute("href",href),link.setAttribute("title",title),link.setAttribute("class","wf_credits"),link.setAttribute("target","_blank"),link.style.position="fixed",link.style.bottom="0",link.style.right="0",link.style.border="none",link.style.transform="rotate(0) scale(0)",link.appendChild(svg),link.addEventListener("mouseenter",()=>{link.style.transition="transform 0.3s ease",link.style.transform="rotate(10deg) scale(1.1)"}),link.addEventListener("mouseleave",()=>{link.style.transition="transform 0.3s ease",link.style.transform="rotate(0) scale(0.9)"}),link.addEventListener("mouseover",createTip),link.addEventListener("mouseout",cancelTip);const addCSS=t=>document.head.appendChild(document.createElement("style")).innerHTML=t;addCSS(".wf_credits{z-index: 999999;} .wf_credits svg{width:auto; height:auto;} .wf_tooltip {z-index: 999999; position: absolute; background: "+iconColor+"; border-radius:40px; padding: 12px 16px; font-family:Karla,sans-serif; font-size: 14px; color: #262626; } .wf_tooltip:after {z-index: 999999; content : ' '; width: 0; height: 0; position:absolute; bottom:-5px; right:12px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid "+iconColor+"; }"),window.addEventListener("scroll",function(){var t=document.body,e=document.documentElement,i=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);window.innerHeight+Math.ceil(window.pageYOffset)>=i?link.style.transform="rotate(0) scale(0.9)":link.style.transform="rotate(0) scale(0)"}),document.body.appendChild(link);