PageSourceSearch

https://superomsk.ru/_astro/BaseLayout.astro_astro_type_script_index_1_lang.5Sk_GWjL.js

js superomsk.ru collected 2026-09-24 21:05:58 UTC 2,805 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/pwa-install.AUr494sM.js","_astro/pwa.BNJ2VCi0.js","_astro/analytics.CoQNsjTL.js"])))=>i.map(i=>d[i]);
2import{f as e}from"./pwa.BNJ2VCi0.js";var t=`/sw.js`,n=`/`,r=`superomsk-`,i=`pwa_sw_browser_cleanup_done`;async function a(){await(await navigator.serviceWorker.register(t,{scope:n})).update()}async function o(){let e=await navigator.serviceWorker.getRegistrations();await Promise.all(e.map(e=>e.unregister()))}async function s(){if(typeof caches>`u`)return;let e=await caches.keys();await Promise.all(e.filter(e=>e.startsWith(r)).map(e=>caches.delete(e)))}function c(){try{sessionStorage.setItem(i,`1`)}catch{}}function l(){try{return sessionStorage.getItem(i)===`1`}catch{return!1}}async function u(e){if(!(`serviceWorker`in navigator))return;if(e){await a();return}let t=navigator.serviceWorker.controller!==null||(await navigator.serviceWorker.getRegistrations()).length>0;await o(),await s(),t&&!l()&&(c(),window.location.reload())}var d=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),f=function(e){return`/`+e},p={},m=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=f(t,n),t=s(t),t in p)return;p[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:d,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function h(e){if(document.readyState===`loading`){document.addEventListener(`DOMContentLoaded`,e,{once:!0});return}e()}function g(){if(!(`serviceWorker`in navigator))return;let t=e();window.addEventListener(`load`,()=>{u(t)},{once:!0})}function _(){if(e()){m(()=>import(`./pwa-standalone.ClYw3bwy.js`),[]).then(e=>{e.initPwaStandalone()});return}m(()=>import(`./pwa-install.AUr494sM.js`),__vite__mapDeps([0,1,2])).then(e=>{e.initPwaInstallPrompt()})}g(),h(_);export{m as 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.