if(2===window.location.pathname.split("/").length){let t=document.createElement("style");t.innerHTML=`.ContributionCalendar.days-selected .ContributionCalendar-day{opacity:1;cursor:pointer}button#ccmd{border:none;border-radius:.5rem;background-color:#161b22;padding:.3rem 1rem;margin-right:.5rem}`,document.head.appendChild(t);let e={},a=document.createElement("button");a.setAttribute("id","ccmd"),a.setAttribute("class", "float-left"),a.innerText="copy command",a.addEventListener("click",t=>{navigator.clipboard.writeText(`xgit -l "${Object.values(e).filter(t=>t.dates.length>0).map(t=>t.dates.join()).join()}"`),t.target.innerText="command copied"}),document.querySelectorAll(".js-calendar-graph > div")[1].prepend(a);let r=t=>{let a=Object.values(e).map(t=>t.level),r=Math.floor(t/Math.max(...a)*4);return 0==r&&t>0?1:r};document.querySelector(".svg-tip").remove();let l=(t=!1)=>Array.from(document.querySelectorAll("td.ContributionCalendar-day")).forEach((a,i)=>{let d=a.textContent.split(" ")[0];null===a.getAttribute("data-value")?(d="No"===d?0:Number(d),a.setAttribute("data-value",d)):d=Number(a.getAttribute("data-value")),void 0===e[`${i}`]&&(a.setAttribute("key",`${i}`),e[`${i}`]={dates:[],level:Number(a.getAttribute("data-level"))}),a.setAttribute("data-level",r(e[`${i}`].level)),a.setAttribute("class","ContributionCalendar-day"),t&&(a.addEventListener("click",()=>{a.setAttribute("data-value",Number(a.getAttribute("data-value"))+1);let t=a.getAttribute("data-date").split("-");e[a.getAttribute("key")]={dates:[...e[a.getAttribute("key")].dates,`${t[1]}/${t[2]}/${t[0]}`],level:e[a.getAttribute("key")].level+1},l()}),a.addEventListener("contextmenu",t=>{t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),(t=t.target).setAttribute("data-value",Number(t.getAttribute("data-value"))-1),t.getAttribute("data-date").split("-"),e[t.getAttribute("key")].dates.length>0&&(e[t.getAttribute("key")].dates.shift(),e[t.getAttribute("key")].level-=1),l()}))});l(!0)}else alert("You are not on a GitHub profile page.");