"use strict";var ReplitPill=(()=>{(function(){if(typeof window>"u"||typeof document>"u")return;let d=window.self!==window.top;if(d&&document.referrer.startsWith("https://replit-com.web-sandbox.oaiusercontent.com"))return;let m=(()=>{let l=window.location.origin;return!!(l.endsWith(".replit.dev")||l.endsWith(".repl.co"))})(),s=!0,h=document.currentScript?.getAttribute("data-referral-code"),C=()=>{try{let l=!1;try{l=window.localStorage?.getItem("replit-pill-preference")==="hidden"}catch{}if(l||document.getElementById("replit-pill-host"))return;let c=document.createElement("div");c.id="replit-pill-host";let b=c.attachShadow({mode:"closed"}),y=`
`,E=`
`,w=document.createElement("style");w.textContent=`
#replit-pill {
position: fixed;
bottom: 48px;
right: 48px;
border-radius: 120px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 12px;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
z-index: 1000000;
white-space: nowrap;
cursor: pointer;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
color: #f0f2f6;
box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.05), 1px 1px 1px 0px rgba(255, 255, 255, 0.1);
transition: transform 0.2s ease;
}
#replit-pill:hover {
transform: scale(1.05);
}
#replit-pill .shimmer {
position: absolute;
inset: 0;
transform: translateX(-100%);
transition: transform 0.7s ease-in-out;
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
pointer-events: none;
}
#replit-pill:hover .shimmer {
transform: translateX(100%);
}
#replit-pill .badge-content {
display: inline-flex;
align-items: center;
gap: 6px;
position: relative;
flex: 0 0 auto;
}
#replit-pill .replit-logo {
color: #f0f2f6;
}
#replit-pill .replit-text {
font-weight: 500;
line-height: 20px;
color: #f0f2f6;
}
#replit-pill .close-button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 2px;
flex: 0 0 auto;
border-radius: 64px;
width: 12px;
height: 12px;
min-width: 0;
cursor: pointer;
border: none;
box-sizing: border-box;
background-color: transparent;
transition: background-color 0.2s ease;
}
#replit-pill .close-button:hover {
background-color: rgba(255, 255, 255, 0.1);
}
#replit-pill .close-button:focus-visible {
outline: 1px solid #e6e9ef;
outline-offset: 1px;
}
#replit-pill .close-icon {
width: 8px;
height: 8px;
color: #e6e9ef;
}
`;let x=(t,o,i,f,p)=>{let e=document.createElementNS("http://www.w3.org/2000/svg","svg");return e.setAttribute("width",t),e.setAttribute("height",o),e.setAttribute("viewBox",i),e.setAttribute("fill","none"),p&&(e.className.baseVal=p),e.innerHTML=f,e},n=document.createElement("div");n.id="replit-pill";let v=document.createElement("div");v.className="shimmer";let u=document.createElement("div");u.className="badge-content";let M=x("10.67","16","0 0 50 75",y,"replit-logo"),g=document.createElement("div");g.textContent="Made with Replit",g.className="replit-text";let r=document.createElement("button");r.className="close-button",r.setAttribute("aria-label","Close");let a=x("24","24","0 0 24 24",E,"close-icon");a.setAttribute("stroke","currentColor"),a.setAttribute("stroke-width","2"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),r.appendChild(a),u.append(M,g),n.append(v,u,r),n.onclick=t=>{if(t.target!==r&&t.target!==r.firstChild){let o=h?`https://replit.com/referral-code/${h}?source=badge&referrer=${encodeURIComponent(window.location.origin)}`:"https://join.replit.com/badge_v3";if(d&&m&&window.parent){let i={type:"CLICKED_MADE_WITH_REPLIT_BADGE"};window.parent.postMessage(i,"*")}else window.open(o,"_blank")}},r.onclick=t=>{t.stopPropagation(),n.style.display="none";try{window.localStorage.setItem("replit-pill-preference","hidden")}catch{}},b.appendChild(w),b.appendChild(n),document.body.appendChild(c),d&&m?window.addEventListener("message",t=>{let o=t.origin,i=new URL(o),f=i.hostname==="replit.com"||i.hostname.endsWith(".replit.com")||i.hostname.endsWith(".replit.dev")||i.hostname.endsWith(".repl.co"),p=!1;if(document.referrer)try{let S=new URL(document.referrer).origin;p=o===S}catch{}if(!f&&!p)return;let e=t.data;if(!(!e||typeof e!="object"||!e.type)){if(e.type==="SHOW_MADE_WITH_REPLIT_BADGE"){if(s)return;n.style.display="inline-flex",s=!0}else if(e.type==="HIDE_MADE_WITH_REPLIT_BADGE"){if(!s)return;n.style.display="none",s=!1}}}):s=!0}catch{}};document.readyState==="complete"||document.readyState==="interactive"?setTimeout(C,100):document.addEventListener("DOMContentLoaded",C)})();})();