PageSourceSearch

https://inocyx.com/chunk-SJXWASYP.js

js inocyx.com collected 2026-10-01 15:59:33 UTC 2,612 bytes, 1 lines download raw bytes

1import{a as w}from"./chunk-FLOIZGRM.js";import{a as k}from"./chunk-KHNPT6TL.js";import{u as v}from"./chunk-RICMX4YB.js";import{Fa as u,Qa as f,hd as p,ka as l,pa as n,yd as g}from"./chunk-NHUB67DS.js";var y=(()=>{class i{platformId=n(f);runWhenIdle(t,e=10){if(!v(this.platformId)){t();return}let s=window,c=!1,r=()=>{c||(c=!0,t())};setTimeout(r,e),typeof s.requestIdleCallback=="function"?s.requestIdleCallback(()=>r(),{timeout:e}):setTimeout(r,0)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var q=(()=>{class i{runWhenIdleService=n(y);platformService=n(k);localStorageService=n(w);requestContext=n(g,{optional:!0});isDark=u(this.getInitialTheme());constructor(){p(()=>{let t=this.isDark();if(this.platformService.isBrowser()){let e=t?"dark":"light";t?(this.localStorageService.setItem("Theme",e),document.documentElement.classList.add("dark")):(this.localStorageService.setItem("Theme",e),document.documentElement.classList.remove("dark")),document.cookie=`theme=${e}; path=/; max-age=31536000; samesite=lax`}})}getInitialTheme(){if(this.platformService.isBrowser()){let t=this.localStorageService.getItem("Theme");return t?t==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches}return this.requestContext?.theme?this.requestContext.theme==="dark":!0}toggleTheme(t){if(!this.platformService.isBrowser()){this.isDark.update(d=>!d);return}let e=document.documentElement,s=document,c=window.matchMedia("(prefers-reduced-motion: reduce)").matches,r=t?.clientX,o=t?.clientY;if(r==null||o==null||r===0&&o===0){let a=(t?.currentTarget??t?.target)?.getBoundingClientRect?.();a&&(r=a.left+a.width/2,o=a.top+a.height/2)}(r==null||o==null)&&(r=window.innerWidth/2,o=window.innerHeight/2);let m=!this.isDark(),h=()=>{this.isDark.set(m),e.classList.toggle("dark",m)};if(!s.startViewTransition||c){h();return}e.style.setProperty("--theme-reveal-x",`${r}px`),e.style.setProperty("--theme-reveal-y",`${o}px`);let I=Math.hypot(Math.max(r,window.innerWidth-r),Math.max(o,window.innerHeight-o));e.style.setProperty("--theme-reveal-radius",`${I}px`),e.classList.add("theme-switching",m?"theme-to-dark":"theme-to-light"),s.startViewTransition(()=>h()).finished.finally(()=>{e.classList.remove("theme-switching","theme-to-dark","theme-to-light"),e.style.removeProperty("--theme-reveal-x"),e.style.removeProperty("--theme-reveal-y"),e.style.removeProperty("--theme-reveal-radius")})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{y as a,q as b};

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.