Spaces:
Build error
Build error
File size: 1,862 Bytes
bb88c4d |
1 2 |
import{B as l,s as m}from"./index-4781a106.js";const f=[];function d(t,n=l){let e;const o=new Set;function r(i){if(m(t,i)&&(t=i,e)){const c=!f.length;for(const a of o)a[1](),f.push(a,t);if(c){for(let a=0;a<f.length;a+=2)f[a][0](f[a+1]);f.length=0}}}function u(i){r(i(t))}function s(i,c=l){const a=[i,c];return o.add(a),o.size===1&&(e=n(r)||l),i(t),()=>{o.delete(a),o.size===0&&(e(),e=null)}}return{set:r,update:u,subscribe:s}}let p="",g="";function w(t){p=t.base,g=t.assets||p}function U(t){let n=t.baseURI;if(!n){const e=t.getElementsByTagName("base");n=e.length?e[0].href:t.URL}return n}function y(){return{x:pageXOffset,y:pageYOffset}}function R(t){let n,e=null,o=null,r=null;for(const s of t.composedPath())s instanceof Element&&(!n&&s.nodeName.toUpperCase()==="A"&&(n=s),e===null&&(e=b(s,"data-sveltekit-noscroll")),o===null&&(o=b(s,"data-sveltekit-prefetch")),r===null&&(r=b(s,"data-sveltekit-reload")));const u=n&&new URL(n instanceof SVGAElement?n.href.baseVal:n.href,document.baseURI);return{a:n,url:u,options:{noscroll:e,prefetch:o,reload:r}}}function b(t,n){const e=t.getAttribute(n);return e===null?e:e===""?!0:(e==="off",!1)}function h(t){const n=d(t);let e=!0;function o(){e=!0,n.update(s=>s)}function r(s){e=!1,n.set(s)}function u(s){let i;return n.subscribe(c=>{(i===void 0||e&&c!==i)&&s(i=c)})}return{notify:o,set:r,subscribe:u}}function _(){const{set:t,subscribe:n}=d(!1);let e;async function o(){clearTimeout(e);const r=await fetch(`${g}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(r.ok){const{version:u}=await r.json(),s=u!=="1668020391802";return s&&(t(!0),clearTimeout(e)),s}else throw new Error(`Version check failed: ${r.status}`)}return{subscribe:n,check:o}}function E(t){t.client}const T={url:h({}),page:h({}),navigating:d(null),updated:_()};export{y as a,w as b,R as f,U as g,E as i,T as s,d as w};
|