PageSourceSearch

https://envless.cloud/assets/theme.DGKosm2U.js

js envless.cloud collected 2026-10-08 19:57:17 UTC 1,572 bytes, 1 lines download raw bytes

1const p="data-theme",S="data-theme-choice",f="theme",n={LIGHT:"light",DARK:"dark",SYSTEM:"system"},E=n.SYSTEM,m="(prefers-color-scheme: dark)",h=e=>e===n.LIGHT||e===n.DARK||e===n.SYSTEM,w=e=>{var s,o;const t=h(e)?e:E;return t===n.LIGHT||t===n.DARK?t:typeof window<"u"&&((o=(s=window.matchMedia)==null?void 0:s.call(window,m))!=null&&o.matches)?n.DARK:n.LIGHT},A="theme-color",R={light:"#eeeeee",dark:"#0e0e0e"},c="data-theme-reveal",d={DURATION_MS:300,EASING:"ease-in-out"},u=()=>{var e,t;return typeof window<"u"&&(((t=(e=window.matchMedia)==null?void 0:e.call(window,"(prefers-reduced-motion: reduce)"))==null?void 0:t.matches)??!1)},M=()=>typeof document<"u"&&typeof document.startViewTransition=="function"&&!u(),l=()=>{window.getComputedStyle(document.body).opacity},r=e=>{const t=document.createElement("style");t.appendChild(document.createTextNode("*,*::before,*::after{transition:none!important}")),document.head.appendChild(t),e(),l(),t.remove()},H=(e,t)=>{if(!M())return r(e),Promise.resolve();const s=document.documentElement,{x:o,y:a}=t,T=Math.hypot(Math.max(o,window.innerWidth-o),Math.max(a,window.innerHeight-a));s.setAttribute(c,"");const i=document.startViewTransition(()=>r(e));return i.ready.then(()=>{s.animate({clipPath:[`circle(0px at ${o}px ${a}px)`,`circle(${T}px at ${o}px ${a}px)`]},{duration:d.DURATION_MS,easing:d.EASING,pseudoElement:"::view-transition-new(root)"})}).catch(()=>{}),i.finished.catch(()=>{}).finally(()=>s.removeAttribute(c))};export{E as D,h as I,d as M,M as R,m as S,n as T,A as a,R as b,p as c,H as d,S as e,w as f,f as g};

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.