PageSourceSearch

https://bili33.top/_astro/ClientEnhancements.astro_astro_type_script_index_0_lang.DTFpBway.js

js bili33.top collected 2026-10-03 19:23:26 UTC 10,878 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/fancybox.D79HToWU.js","_astro/shared.BT6WJmyN.js","_astro/github-card.BmGK0qHH.js","_astro/performance.DTAuomsO.js","_astro/capabilities.BZE3zl1V.js","_astro/mermaid.86DQdNL2.js","_astro/preload-helper.CxFQXtKk.js","_astro/pointer-trail.CTdE1_t-.js","_astro/client.m6Mjerdf.js","_astro/achievements.1_5Brjk7.js","_astro/achievements._8wF8Md7.js","_astro/rolldown-runtime.hePW80VL.js"])))=>i.map(i=>d[i]);
2import{t as e}from"./performance.DTAuomsO.js";import{a as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./capabilities.BZE3zl1V.js";import{t as c}from"./preload-helper.CxFQXtKk.js";import{n as l}from"./client.m6Mjerdf.js";var u=()=>{document.querySelectorAll(`img`).forEach(e=>{if(!(e instanceof HTMLImageElement))return;let t=e.dataset.cdnFallback||(e.src.startsWith(`https://cdn.bili33.top/`)?e.src.replace(`https://cdn.bili33.top/`,`https://cdn.jsdelivr.net/`):``);t&&e.addEventListener(`error`,()=>{e.src!==t&&(e.src=t)},{once:!0})})},d=()=>new Promise(e=>{window.requestAnimationFrame(()=>e())}),f=(t,n,r)=>new Promise(i=>{let o=!1,s=!1,c=()=>{o||(o=!0,t.removeEventListener(`load`,u),t.removeEventListener(`error`,f),t.removeAttribute(`data-src`),t.removeAttribute(`data-loading`),t.removeAttribute(`data-image-layout-ready`),i())},l=async()=>{if(!o){try{await t.decode()}catch{if(!t.complete||t.naturalWidth===0)return}o||t.naturalWidth===0||t.naturalHeight===0||(t.style.setProperty(`--image-intrinsic-width`,`${t.naturalWidth}px`),t.style.setProperty(`--image-intrinsic-ratio`,`${t.naturalWidth} / ${t.naturalHeight}`),t.dataset.imageLayoutReady=`true`,await d(),t.dataset.imageLoaded=`true`,t.classList.add(`loaded`),await d(),c())}};function u(){s||o||(s=!0,r(l).finally(()=>{s=!1}))}function f(){globalThis.setTimeout(()=>{t.dataset.imageFormat===`failed`&&(t.dataset.imageLoaded=`true`,t.classList.add(`image-load-failed`),c())},0)}t.addEventListener(`load`,u),t.addEventListener(`error`,f),t.decoding=`async`,t.loading=`eager`;let p=t.dataset.avifSrcset||``,m=t.dataset.avifSrc||``,h=t.dataset.webpSrcset||``,g=t.dataset.webpSrc||``,_=e.images.preferWebpOnLowPerformance&&a()&&!!(h||g);h&&(t.dataset.activeWebpSrcset=h),t.dataset.imageSizes&&(t.sizes=t.dataset.imageSizes),_?(t.dataset.imageFormat=h?`webp-srcset`:`webp`,h&&(t.srcset=h),t.src=g||t.dataset.fallbackSrc||n):p?(t.dataset.imageFormat=`avif-srcset`,t.srcset=p,t.src=m||n):m?(t.dataset.imageFormat=`avif`,t.src=m):(t.dataset.imageFormat=h?`webp-srcset`:g?`webp`:`original`,h&&(t.srcset=h),t.src=g||t.dataset.fallbackSrc||n)}),p=()=>{let t=Array.from(document.querySelectorAll(`img[loading="lazy"][data-src]`));if(!t.length)return;let n=document.documentElement,r=i(),o=a(),s=r?e.images.concurrency.slowNetwork:o?e.images.concurrency.lowPerformance:e.images.concurrency.normal,c=[],l=[],u=0,d=0,p=n.dataset.priorityNetwork===`busy`,m=()=>{for(;d<e.images.revealConcurrency&&l.length>0;){let e=l.shift();if(!e)continue;d+=1;let t=()=>{--d,e.resolve(),window.requestAnimationFrame(m)};e.task().then(t,t)}},h=e=>new Promise(t=>{l.push({task:e,resolve:t}),m()}),g=()=>{if(!p)for(;u<s&&c.length>0;){let e=c.shift(),t=e?.dataset.src;e&&t&&(e.dataset.loading=`active`,u+=1,f(e,t,h).finally(()=>{--u,window.requestAnimationFrame(g)}))}};document.addEventListener(`lumine:priority-network`,e=>{e instanceof CustomEvent&&(p=e.detail?.busy===!0,p||g())});let _=e=>{e.dataset.src&&!e.dataset.loading&&(e.dataset.loading=`queued`,c.push(e),g())};if(`IntersectionObserver`in window){let n=new IntersectionObserver(e=>{e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top).forEach(e=>{let t=e.target;n.unobserve(t),_(t)})},{rootMargin:r?e.images.rootMargin.slowNetwork:o?e.images.rootMargin.lowPerformance:e.images.rootMargin.normal,threshold:0});for(let e of t)n.observe(e)}else for(let e of t)_(e)},m=`pre.astro-code[data-language="mermaid"], pre[class*="language-mermaid"], pre > code.language-mermaid, .mermaid-diagram[data-mermaid-source]`,h=()=>{let e=[];document.querySelector(`pre.astro-code`)&&e.push(c(async()=>{let{enhanceCodeBlocks:e,initCodeLanguageDisplayMode:t}=await import(`./code-blocks.CqkSBLIf.js`);return{enhanceCodeBlocks:e,initCodeLanguageDisplayMode:t}},[]).then(({enhanceCodeBlocks:e,initCodeLanguageDisplayMode:t})=>{t(),e()})),document.querySelector(`.prose-post code:not(pre code)`)&&e.push(c(async()=>{let{enhanceInlineCode:e}=await import(`./inline-code.DLRduDpG.js`);return{enhanceInlineCode:e}},[]).then(({enhanceInlineCode:e})=>e())),document.querySelector(`.prose-post img`)&&e.push(c(async()=>{let{prepareFancybox:e}=await import(`./fancybox.D79HToWU.js`);return{prepareFancybox:e}},__vite__mapDeps([0,1])).then(({prepareFancybox:e})=>e())),document.querySelector(`[data-github-repo]`)&&e.push(c(async()=>{let{hydrateGitHubCards:e}=await import(`./github-card.BmGK0qHH.js`);return{hydrateGitHubCards:e}},__vite__mapDeps([2,3,4,1])).then(({hydrateGitHubCards:e})=>e())),e.length&&Promise.allSettled(e)},g=null,_=()=>document.querySelector(m)?(g??=c(async()=>{let{hydrateMermaidDiagrams:e}=await import(`./mermaid.86DQdNL2.js`);return{hydrateMermaidDiagrams:e}},__vite__mapDeps([5,3,6,1])).then(({hydrateMermaidDiagrams:e})=>e()).then(()=>{document.documentElement.dataset.mermaidLoaded=`true`,document.querySelectorAll(`.mermaid-load-control`).forEach(e
2=>e.remove())}).finally(()=>{g=null}),g):Promise.resolve(),v=t=>{let n=t instanceof HTMLElement&&t.matches(`code.language-mermaid`)?t.closest(`pre`)??t:t;if(n.previousElementSibling?.classList.contains(`mermaid-load-control`))return;let r=document.createElement(`div`);r.className=`mermaid-load-control`;let i=document.createElement(`button`);i.type=`button`,i.className=`mermaid-load-button`,i.textContent=e.lazyFeatures.mermaid.loadLabel,i.addEventListener(`click`,async()=>{i.disabled=!0,i.textContent=e.lazyFeatures.mermaid.loadingLabel;try{await _()}catch{i.disabled=!1,i.textContent=e.lazyFeatures.mermaid.loadLabel}}),r.append(i),n.before(r)},y=()=>{let t=document.querySelectorAll(m);if(!t.length)return;let n=r();if(n&&e.lazyFeatures.mermaid.manualOnConstrained){t.forEach(v);return}if(`IntersectionObserver`in window){let r=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(r.disconnect(),_().catch(()=>{}))},{rootMargin:n?e.lazyFeatures.mermaid.rootMargin.constrained:e.lazyFeatures.mermaid.rootMargin.normal,threshold:0});t.forEach(e=>r.observe(e));return}_().catch(()=>{})},b=null,x=()=>{s()&&(b??=c(()=>import(`./pointer-trail.CTdE1_t-.js`),__vite__mapDeps([7,4,3,8])).catch(()=>void 0))},S=()=>{let e=l(),t=document.querySelector(`[data-theme-palette]`)?.dataset.pointerTrailDefault===`true`;(e??t)&&x(),document.addEventListener(`lumine:pointer-trail-toggle`,e=>{e instanceof CustomEvent&&e.detail===!0&&x()})},C=()=>{let t=()=>{c(()=>import(`./achievements.1_5Brjk7.js`).then(e=>e.initAchievements()),__vite__mapDeps([9,3,10,11])).catch(()=>{})},n=()=>o(t,e.lazyFeatures.achievements);document.readyState===`complete`?n():window.addEventListener(`load`,n,{once:!0})},w=()=>{h(),S(),C(),y()},T=()=>{document.documentElement.dataset.mermaidLoaded===`true`&&_().catch(()=>{})},E=()=>{document.querySelectorAll(`.post-card-cover img, .device-card-image img`).forEach(e=>{e instanceof HTMLImageElement&&e.dataset.deferredImage!==`true`&&(e.complete&&e.naturalHeight!==0?e.classList.add(`loaded`):(e.addEventListener(`load`,()=>e.classList.add(`loaded`),{once:!0}),e.addEventListener(`error`,()=>{e.closest(`.post-card-cover`)?(e.classList.remove(`loaded`),!e.dataset.imageFormat&&!e.dataset.fallbackSrc&&(e.dataset.imageFormat=`failed`)):e.classList.add(`loaded`)})))})},D=()=>{document.querySelectorAll(`[data-spoiler]`).forEach(e=>{e instanceof HTMLButtonElement&&e.dataset.bound!==`true`&&(e.addEventListener(`click`,()=>{let t=e.classList.toggle(`is-revealed`);e.setAttribute(`aria-expanded`,t?`true`:`false`)}),e.dataset.bound=`true`)})},O=()=>{document.addEventListener(`animationend`,e=>{let t=e.target;t instanceof HTMLElement&&e.animationName===`reveal-up`&&t.classList.add(`reveal-done`)},{capture:!0})},k=()=>{let t=document.querySelectorAll(`.post-card-cover-media, .prose-post img[data-deferred-image="true"], [data-waline-stage]`);if(!t.length)return;if(!(`IntersectionObserver`in window)){t.forEach(e=>{e.dataset.loadingNearby=`true`});return}let n=new IntersectionObserver(e=>{for(let t of e){let e=t.target;e.dataset.loadingNearby=String(t.isIntersecting)}},{rootMargin:`${e.loader.animationRootMarginPx}px 0px`});t.forEach(e=>n.observe(e))},A={background:{count:e.loader.particles.background,minDuration:16,maxDuration:28,minSize:1.2,maxSize:3.2,minOpacity:.18,maxOpacity:.45},foreground:{count:e.loader.particles.foreground,minDuration:10,maxDuration:18,minSize:1.4,maxSize:4.6,minOpacity:.28,maxOpacity:.8}},j=()=>{let r=document.querySelector(`[data-site-loader]`);if(!(r instanceof HTMLElement)||r.dataset.bound===`true`)return;let i=Number(r.dataset.loaderMinDuration)||e.loader.minDurationMs,o=Number(r.dataset.loaderTimeout)||e.loader.timeoutMs,s=performance.now(),c=(e,t)=>{let n=document.createElement(`span`);n.className=`site-loader-particle`;let r=A[t],i=Math.sin((e+1)*(t===`foreground`?91.17:57.31))*1e4,a=i-Math.floor(i),o=Math.sin((e+1)*(t===`foreground`?17.73:23.91))*1e4,s=o-Math.floor(o),c=Math.sin((e+1)*(t===`foreground`?43.19:77.41))*1e4,l=c-Math.floor(c),u=Math.sin((e+1)*(t===`foreground`?12.43:39.67))*1e4,d=u-Math.floor(u),f=Math.sin((e+1)*(t===`foreground`?65.11:28.73))*1e4,p=f-Math.floor(f),m=r.minSize+l*(r.maxSize-r.minSize),h=r.minOpacity+d*(r.maxOpacity-r.minOpacity),g=r.minDuration+p*(r.maxDuration-r.minDuration),_=-(a
2*g);return n.style.left=`${(a*100).toFixed(2)}%`,n.style.top=`${(s*100).toFixed(2)}%`,n.style.width=`${m.toFixed(2)}px`,n.style.height=`${m.toFixed(2)}px`,n.style.opacity=h.toFixed(3),n.style.animationDuration=`${g.toFixed(2)}s`,n.style.animationDelay=`${_.toFixed(2)}s`,n.style.setProperty(`--particle-drift-x`,`${((a-.5)*(t===`foreground`?180:120)).toFixed(2)}px`),n.style.setProperty(`--particle-drift-y`,`${((s-.5)*(t===`foreground`?140:90)).toFixed(2)}px`),n};[`background`,`foreground`].forEach(e=>{let i=r.querySelector(`[data-site-loader-particles="${e}"]`);if(!(i instanceof HTMLElement)||a()||t()||n())return;let o=document.createDocumentFragment();for(let t=0;t<A[e].count;t+=1)o.append(c(t,e));i.append(o)});let l=()=>{r.classList.contains(`is-hidden`)||(r.classList.add(`is-hidden`),window.setTimeout(()=>r.remove(),e.loader.removeTransitionMs))},u=()=>{let e=Math.max(0,i-(performance.now()-s));window.setTimeout(()=>requestAnimationFrame(l),e)};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,u,{once:!0}):u(),window.setTimeout(l,o),r.dataset.bound=`true`},M=!1;M||(M=!0,u(),j(),E(),k(),O(),queueMicrotask(()=>{D(),p(),w()}),document.addEventListener(`lumine:color-mode-updated`,T));

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.