1(function(){"use strict";const navbar=document.getElementById("navbar"),navToggle=document.querySelector(".nav-toggle"),navLinks=document.querySelector(".nav-links"),navLinkItems=document.querySelectorAll(".nav-link");let lastScroll=0;function handleScroll(){const scrollY=window.scrollY;scrollY>50?navbar.classList.add("scrolled"):navbar.classList.remove("scrolled"),lastScroll=scrollY}window.addEventListener("scroll",handleScroll,{passive:!0}),navToggle&&navToggle.addEventListener("click",function(){const isOpen=navLinks.classList.toggle("open");navToggle.classList.toggle("active"),navToggle.setAttribute("aria-expanded",isOpen),document.body.style.overflow=isOpen?"hidden":""}),navLinkItems.forEach(function(link){link.addEventListener("click",function(){navLinks.classList.remove("open"),navToggle.classList.remove("active"),navToggle.setAttribute("aria-expanded","false"),document.body.style.overflow=""})}),document.addEventListener("click",function(e){navLinks.classList.contains("open")&&!navLinks.contains(e.target)&&!navToggle.contains(e.target)&&(navLinks.classList.remove("open"),navToggle.classList.remove("active"),navToggle.setAttribute("aria-expanded","false"),document.body.style.overflow="")}),document.querySelectorAll('a[href^="#"]').forEach(function(anchor){anchor.addEventListener("click",function(e){const target=document.querySelector(this.getAttribute("href"));if(target){e.preventDefault();const offset=navbar.offsetHeight+20,targetPosition=target.getBoundingClientRect().top+window.scrollY-offset;window.scrollTo({top:targetPosition,behavior:"smooth"})}})});const tabButtons=document.querySelectorAll(".install-tab"),tabPanels=document.querySelectorAll(".install-panel");tabButtons.forEach(function(btn){btn.addEventListener("click",function(){tabButtons.forEach(function(b){b.classList.remove("active"),b.setAttribute("aria-selected","false")}),tabPanels.forEach(function(p){p.classList.remove("active")}),btn.classList.add("active"),btn.setAttribute("aria-selected","true");const panelId=btn.getAttribute("aria-controls"),panel=document.getElementById(panelId);panel&&panel.classList.add("active")})}),document.querySelectorAll(".copy-btn").forEach(function(btn){btn.addEventListener("click",function(){const codeBlock=btn.closest(".code-block");if(!codeBlock)return;const code=codeBlock.querySelector("pre code");if(!code)return;const text=code.textContent.replace(/^\$ /gm,"").replace(/^# .*/gm,"").trim();navigator.clipboard.writeText(text).then(function(){btn.classList.add("copied"),btn.innerHTML='<i class="fas fa-check"></i>',setTimeout(function(){btn.classList.remove("copied"),btn.innerHTML='<i class="fas fa-copy"></i>'},2e3)}).catch(function(){const textArea=document.createElement("textarea");textArea.value=text,textArea.style.position="fixed",textArea.style.opacity="0",document.body.appendChild(textArea),textArea.select(),document.execCommand("copy"),document.body.removeChild(textArea),btn.classList.add("copied"),btn.innerHTML='<i class="fas fa-check"></i>',setTimeout(function(){btn.classList.remove("copied"),btn.innerHTML='<i class="fas fa-copy"></i>'},2e3)})})});function initScrollAnimations(){const observerOptions={threshold:.1,rootMargin:"0px 0px -50px 0px"},observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){const delay=parseInt(entry.target.getAttribute("data-aos-delay")||"0",10);setTimeout(function(){entry.target.classList.add("aos-animate")},delay),observer.unobserve(entry.target)}})},observerOptions);document.querySelectorAll("[data-aos]").forEach(function(el){observer.observe(el)})}"IntersectionObserver"in window?initScrollAnimations():document.querySelectorAll("[data-aos]").forEach(function(el){el.classList.add("aos-animate")});function createParticles(){const container=document.getElementById("hero-particles");if(!container||window.innerWidth<768)return;const particleCount=20;for(let i=0;i<particleCount;i++){const particle=document.createElement("div");particle.classList.add("particle"),particle.style.left=Math.random()*100+"%",particle.style.animationDuration=Math.random()*15+10+"s",particle.style.animationDelay=Math.random()*10+"s",particle.style.width=Math.random()*3+2+"px",particle.style.height=particle.style.width,particle.style.opacity=Math.random()*.5+.1,container.appendChild(particle)}}createParticles();function updateActiveNavLink(){const sections=document.querySelectorAll("section[id]"),scrollY=window.scrollY;sections.forEach(function(section){const sectionTop=section.offsetTop-navbar.offsetHeight-100,sectionBottom=sectionTop+section.offsetHeight,sectionId=section.getAttribute("id");scrollY>
1=sectionTop&&scrollY<sectionBottom&&navLinkItems.forEach(function(link){link.classList.remove("active"),link.getAttribute("href")==="#"+sectionId&&link.classList.add("active")})})}window.addEventListener("scroll",updateActiveNavLink,{passive:!0}),document.querySelectorAll(".faq-question").forEach(function(question){question.addEventListener("keydown",function(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),question.click())})}),"loading"in HTMLImageElement.prototype||document.querySelectorAll('img[loading="lazy"]').forEach(function(img){img.src=img.src}),window.addEventListener("load",function(){document.querySelectorAll(".demo-visual img, .showcase-images img").forEach(function(img){img.dataset.src&&(img.src=img.dataset.src)})})})(); 2//# sourceMappingURL=/cdn/shop/t/1/assets/picoclaw-site.js.map?v=117920991264860177551771723321
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.