(()=>{let t=!1;function e(){new MutationObserver(e=>{e.forEach(e=>{"childList"===e.type&&function(){const e=document.querySelector(".add-new-theme");if(e&&!t){const n=function(t){const e=document.createElement("div");e.classList.add("theme","build-with-ai"),e.style.height=`${t.offsetHeight}px`;const n=document.createElement("span");n.classList.add("build-with-ai__link");const i=document.createElement("div");i.classList.add("build-with-ai__icon");const d=document.createElement("span");d.classList.add("build-with-ai__icon-span"),d.appendChild(function(){const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("viewBox","0 0 384 512"),t.setAttribute("width","50px"),t.setAttribute("height","50px");const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d","M162.4 6c-1.5-3.6-5-6-8.9-6l-19 0c-3.9 0-7.5 2.4-8.9 6L104.9 57.7c-3.2 8-14.6 8-17.8 0L66.4 6c-1.5-3.6-5-6-8.9-6L48 0C21.5 0 0 21.5 0 48L0 224l0 22.4L0 256l9.6 0 364.8 0 9.6 0 0-9.6 0-22.4 0-176c0-26.5-21.5-48-48-48L230.5 0c-3.9 0-7.5 2.4-8.9 6L200.9 57.7c-3.2 8-14.6 8-17.8 0L162.4 6zM0 288l0 32c0 35.3 28.7 64 64 64l64 0 0 64c0 35.3 28.7 64 64 64s64-28.7 64-64l0-64 64 0c35.3 0 64-28.7 64-64l0-32L0 288zM192 432a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"),e.setAttribute("fill","#8c8f94"),t.appendChild(e),t}()),i.appendChild(d);const o=document.createElement("h2");return o.classList.add("build-with-ai__text"),o.textContent=window.nfdOnboardingRestartMeta?.buttonText,n.appendChild(i),n.appendChild(o),e.appendChild(n),e.addEventListener("click",()=>{window.location.href=window.nfdOnboardingRestartMeta?.buttonHref+"&restart=theme"}),e}(e);e.parentNode.insertBefore(n,e),t=!0}}()})}).observe(document.body,{childList:!0,subtree:!0})}window.addEventListener("DOMContentLoaded",function(){e()}),((window.newfold=window.newfold||{}).Onboarding=window.newfold.Onboarding||{})["onboarding-restart-button"]={}})();