PageSourceSearch

https://www.watkinsmillathletics.com/api/pwa/serwist/sw.js

js watkinsmillathletics.com collected 2026-10-02 01:00:35 UTC 41,958 bytes, 3 lines download raw bytes

1var m={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"serwist",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},G=e=>[m.prefix,e,m.suffix].filter(t=>t&&t.length>0).join("-"),xt=e=>{for(let t of Object.keys(m))e(t)},y={updateDetails:e=>{xt(t=>{let s=e[t];typeof s=="string"&&(m[t]=s)})},getGoogleAnalyticsName:e=>e||G(m.googleAnalytics),getPrecacheName:e=>e||G(m.precache),getPrefix:()=>m.prefix,getRuntimeName:e=>e||G(m.runtime),getSuffix:()=>m.suffix},x;function ge(){if(x===void 0){let e=new Response("");if("body"in e)try{new Response(e.body),x=!0}catch{x=!1}x=!1}return x}var Ct=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};var Dt=Ct,h=class extends Error{details;constructor(e,t){let s=Dt(e,t);super(s),this.name=e,this.details=t}};var me=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");function C(e){return new Promise(t=>setTimeout(t,e))}var j=new Set;function fe(e,t){let s=new URL(e);for(let r of t)s.searchParams.delete(r);return s.href}async function we(e,t,s,r){let a=fe(t.url,s);if(t.url===a)return e.match(t,r);let n={...r,ignoreSearch:!0},o=await e.keys(t,n);for(let i of o)if(a===fe(i.url,s))return e.match(i,r)}var ye=class{promise;resolve;reject;
1constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},Ee=async()=>{for(let e of j)await e()},Pt="-precache-",Tt=async(e,t=Pt)=>{let s=(await self.caches.keys()).filter(r=>r.includes(t)&&r.includes(self.registration.scope)&&r!==e);return await Promise.all(s.map(r=>self.caches.delete(r))),s},_e=e=>{self.addEventListener("activate",t=>{t.waitUntil(Tt(y.getPrecacheName(e)).then(s=>{}))})},Ne=()=>{self.addEventListener("activate",()=>self.clients.claim())},Q=(e,t)=>{let s=t();return e.waitUntil(s),s};var X=(e,t)=>t.some(s=>e instanceof s),Re,be;function qt(){return Re||(Re=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ot(){return be||(be=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var J=new WeakMap,Y=new WeakMap,U=new WeakMap;function Ut(e){let t=new Promise((s,r)=>{let a=()=>{e.removeEventListener("success",n),e.removeEventListener("error",o)},n=()=>{s(N(e.result)),a()},o=()=>{r(e.error),a()};e.addEventListener("success",n),e.addEventListener("error",o)});return U.set(t,e),t}function kt(e){if(J.has(e))return;let t=new Promise((s,r)=>{let a=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",o),e.removeEventListener("abort",o)},n=()=>{s(),a()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",n),e.addEventListener("error",o),e.addEventListener("abort",o)});J.set(e,t)}var Z={get(e,t,s){if(e instanceof IDBTransaction){if(t==="done")return J.get(e);if(t==="store")return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return N(e[t])},set(e,t,s){return e[t]=s,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function xe(e){Z=e(Z)}function Lt(e){return Ot().includes(e)?function(...t){return e.apply(ee(this),t),N(this.request)}:function(...t){return N(e.apply(ee(this),t))}}function $t(e){return typeof e=="function"?Lt(e):(e instanceof IDBTransaction&&kt(e),X(e,qt())?new Proxy(e,Z):e)}function N(e){if(e instanceof IDBRequest)return Ut(e);if(Y.has(e))return Y.get(e);let t=$t(e);return t!==e&&(Y.set(e,t),U.set(t,e)),t}var ee=e=>U.get(e);function k(e,t,{blocked:s,upgrade:r,blocking:a,terminated:n}={}){let o=indexedDB.open(e,t),i=N(o);return r&&o.addEventListener("upgradeneeded",c=>{r(N(o.result),c.oldVersion,c.newVersion,N(o.transaction),c)}),s&&o.addEventListener("blocked",c=>s(c.oldVersion,c.newVersion,c)),i.then(c=>{n&&c.addEventListener("close",()=>n()),a&&c.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),i}function Ce(e,{blocked:t}={}){let s=indexedDB.deleteDatabase(e);return t&&s.addEventListener("blocked",r=>t(r.oldVersion,r)),N(s).then(()=>{})}var It=["get","getKey","getAll","getAllKeys","count"],Wt=["put","add","delete","clear"],z=new Map;function ve(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(z.get(t))return z.get(t);let s=t.replace(/FromIndex$/,""),r=t!==s,a=Wt.includes(s);if(!(s in(r?IDBIndex:IDBObjectStore).prototype)||!(a||It.includes(s)))return;let n=async function(o,...i){let c=this.transaction(o,a?"readwrite":"readonly"),l=c.store;return r&&(l=l.index(i.shift())),(await Promise.all([l[s](...i),a&&c.done]))[0]};return z.set(t,n),n}xe(e=>({...e,get:(t,s,r)=>ve(t,s)||e.get(t,s,r),has:(t,s)=>!!ve(t,s)||e.has(t,s)}));var Vt=["continue","continuePrimaryKey","advance"],Se={},te=new WeakMap,De=new WeakMap,Mt={get(e,t){if(!Vt.includes(t))return e[t];let s=Se[t];return s||(s=Se[t]=function(...r){te.set(this,De.get(this)[t](...r))}),s}};async function*Ft(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let s=new Proxy(t,Mt);for(De.set(s,t),U.set(s,ee(t));t;)yield s,t=await(te.get(s)||t.continue()),te.delete(s)}function Ae(e,t){return t===Symbol.asyncIterator&&X(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&X(e,[IDBIndex,IDBObjectStore])}xe(e=>({...e,get(t,s,r){return Ae(t,s)?Ft:e.get(t,s,r)},has(t,s){return Ae(t,s)||e.has(t,s)}}));var Oe=async(e,t)=>{let s=null;if(e.url&&(s=new URL(e.url).origin),s!==self.location.origin)throw new h("cross-origin-copy-response",{origin:s});let r=e.clone(),a={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=t?t(a):a,o=ge()?r.body:await r.blob();return new Response(o,n)},Ue=()=>{self.__WB_DISABLE_DEV_LOGS=!0},Pe=3,Bt="serwist-background-sync",E="requests",D="queueName",Ht=class{_db=null;async addEntry(e){let t=(await this.getDb()).transaction(E,"readwrite",{durability:"relaxed"});await t.store.add(e),await t.done}async getFirstEntryId(){return(await(await this.getDb()).transaction(E).store.openCursor())?.value.id}async getAllEntriesByQueueName(e){let t=await(await this.getDb()).getAllFromIndex(E,D,IDBKeyRange.only(e));return t||[]}async getEntryCountByQueueName(e){return(await this.getDb()).countFromIndex(E,D,IDBKeyRange.only(e))}async deleteEntry(e){await(await this.getDb()).delete(E,e)}async getFirstEntryByQueueName(e){return await this.getEndEntryFromIndex(IDBKeyRange.only(e),"next")}async getLastEntryByQueueName(e){return await this.getEndEntryFromIndex(IDBKeyRange.only(e),"prev")}async getEndEntryFromIndex(e,t){return(await(await this.getDb()).transaction(E).store.index(D).openCursor(e,t))?.value}async getDb(){return this._db||(this._db=await k(Bt,Pe,{upgrade:this._upgradeDb})),this._db}_upgradeDb(e,t){t>0&&t<Pe&&e.objectStoreNames.contains(E)&&e.deleteObjectStore(E),e.createObjectStore(E,{autoIncrement:!0,keyPath:"id"}).createIndex(D,D,{unique:!1})}},ke=class{_queueName;_queueDb;constructor(e){this._queueName=e,this._queueDb=new Ht}async pushEntry(e){delete e.id,e.queueName=this._queueName,await this._queueDb.addEntry(e)}async unshiftEntry(e){let t=await this._queueDb.getFirstEntryId();t?e.id=t-1:delete e.id,e.queueName=this._queueName,await this._queueDb.addEntry(e)}async popEntry(){return this._removeEntry(await this._queueDb.getLastEntryByQueueName(this._queueName))}async shiftEntry(){return this._removeEntry(await this._queueDb.getFirstEntryByQueueName(this._queueName))}async getAll(){return await this._queueDb.getAllEntriesByQueueName(this._queueName)}async size(){return await this._queueDb.getEntryCountByQueueName(this._queueName)}async deleteEntry(e){await this._queueDb.deleteEntry(e)}async _removeEntry(e){return e&&await this.deleteEntry(e.id),e}},Kt=["method","referrer","referrerPolicy","mode","credentials","cache","redirect","integrity","keepalive"],ae=class re{_requestData;
1static async fromRequest(t){let s={url:t.url,headers:{}};t.method!=="GET"&&(s.body=await t.clone().arrayBuffer()),t.headers.forEach((r,a)=>{s.headers[a]=r});for(let r of Kt)t[r]!==void 0&&(s[r]=t[r]);return new re(s)}constructor(t){t.mode==="navigate"&&(t.mode="same-origin"),this._requestData=t}toObject(){let t=Object.assign({},this._requestData);return t.headers=Object.assign({},this._requestData.headers),t.body&&(t.body=t.body.slice(0)),t}toRequest(){return new Request(this._requestData.url,this._requestData)}clone(){return new re(this.toObject())}},Te="serwist-background-sync",Gt=1440*7,se=new Set,qe=e=>{let t={request:new ae(e.requestData).toRequest(),timestamp:e.timestamp};return e.metadata&&(t.metadata=e.metadata),t},Le=class{_name;_onSync;_maxRetentionTime;_queueStore;_forceSyncFallback;_syncInProgress=!1;_requestsAddedDuringSync=!1;constructor(e,{forceSyncFallback:t,onSync:s,maxRetentionTime:r}={}){if(se.has(e))throw new h("duplicate-queue-name",{name:e});se.add(e),this._name=e,this._onSync=s||this.replayRequests,this._maxRetentionTime=r||Gt,this._forceSyncFallback=!!t,this._queueStore=new ke(this._name),this._addSyncListener()}get name(){return this._name}async pushRequest(e){await this._addRequest(e,"push")}async unshiftRequest(e){await this._addRequest(e,"unshift")}async popRequest(){return this._removeRequest("pop")}async shiftRequest(){return this._removeRequest("shift")}async getAll(){let e=await this._queueStore.getAll(),t=Date.now(),s=[];for(let r of e){let a=this._maxRetentionTime*60*1e3;t-r.timestamp>a?await this._queueStore.deleteEntry(r.id):s.push(qe(r))}return s}async size(){return await this._queueStore.size()}async _addRequest({request:e,metadata:t,timestamp:s=Date.now()}
1,r){let a={requestData:(await ae.fromRequest(e.clone())).toObject(),timestamp:s};switch(t&&(a.metadata=t),r){case"push":await this._queueStore.pushEntry(a);break;case"unshift":await this._queueStore.unshiftEntry(a);break}this._syncInProgress?this._requestsAddedDuringSync=!0:await this.registerSync()}async _removeRequest(e){let t=Date.now(),s;switch(e){case"pop":s=await this._queueStore.popEntry();break;case"shift":s=await this._queueStore.shiftEntry();break}if(s){let r=this._maxRetentionTime*60*1e3;return t-s.timestamp>r?this._removeRequest(e):qe(s)}}async replayRequests(){let e;for(;e=await this.shiftRequest();)try{await fetch(e.request.clone())}catch{throw await this.unshiftRequest(e),new h("queue-replay-failed",{name:this._name})}}async registerSync(){if("sync"in self.registration&&!this._forceSyncFallback)try{await self.registration.sync.register(`${Te}:${this._name}`)}catch{}}_addSyncListener(){"sync"in self.registration&&!this._forceSyncFallback?self.addEventListener("sync",e=>{if(e.tag===`${Te}:${this._name}`){let t=async()=>{this._syncInProgress=!0;let s;try{await this._onSync({queue:this})}catch(r){if(r instanceof Error)throw s=r,s}finally{this._requestsAddedDuringSync&&!(s&&!e.lastChance)&&await this.registerSync(),this._syncInProgress=!1,this._requestsAddedDuringSync=!1}};e.waitUntil(t())}}):this._onSync({queue:this})}static get _queueNames(){return se}},$e=class{_queue;constructor(e,t){this._queue=new Le(e,t)}async fetchDidFail({request:e}){await this._queue.pushRequest({request:e})}},Ie={cacheWillUpdate:async({response:e})=>e.status===200||e.status===0?e:null};function L(e){return typeof e=="string"?new Request(e):e}var We=class{event;request;url;params;_cacheKeys={};_strategy;_handlerDeferred;_extendLifetimePromises;_plugins;_pluginStateMap;constructor(e,t){this.event=t.event,this.request=t.request,t.url&&(this.url=t.url,this.params=t.params),this._strategy=e,this._handlerDeferred=new ye,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(let s of this._plugins)this._pluginStateMap.set(s,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:t}=this,s=L(e),r=await this.getPreloadResponse();if(r)return r;let a=this.hasCallback("fetchDidFail")?s.clone():null;try{for(let o of this.iterateCallbacks("requestWillFetch"))s=await o({request:s.clone(),event:t})}catch(o){if(o instanceof Error)throw new h("plugin-error-request-will-fetch",{thrownErrorMessage:o.message})}let n=s.clone();try{let o;o=await fetch(s,s.mode==="navigate"?void 0:this._strategy.fetchOptions);for(let i of this.iterateCallbacks("fetchDidSucceed"))o=await i({event:t,request:n,response:o});return o}catch(o){throw a&&await this.runCallbacks("fetchDidFail",{error:o,event:t,originalRequest:a.clone(),request:n.clone()}),o}}async fetchAndCachePut(e){let t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){let t=L(e),s,{cacheName:r,matchOptions:a}=this._strategy,n=await this.getCacheKey(t,"read"),o={...a,cacheName:r};s=await caches.match(n,o);for(let i of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await i({cacheName:r,matchOptions:a,cachedResponse:s,request:n,event:this.event})||void 0;return s}async cachePut(e,t){let s=L(e);await C(0);let r=await this.getCacheKey(s,"write");if(!t)throw new h("cache-put-with-no-response",{url:me(r.url)});let a=await this._ensureResponseSafeToCache(t);if(!a)return!1;let{cacheName:n,matchOptions:o}=this._strategy,i=await self.caches.open(n),c=this.hasCallback("cacheDidUpdate"),l=c?await we(i,r.clone(),["__WB_REVISION__"],o):null;try{await i.put(r,c?a.clone():a)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await Ee(),u}for(let u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:n,oldResponse:l,newResponse:a.clone(),request:r,event:this.event});return!0}async getCacheKey(e,t){let s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let r=e;for(let a of this.iterateCallbacks("cacheKeyWillBeUsed"))r=L(await a({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[s]=r}return this._cacheKeys[s]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if(typeof t[e]=="function"){let s=this._pluginStateMap.get(t);yield a=>{let n={...a,state:s};return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async getPreloadResponse(){if(this.event instanceof FetchEvent&&this.event.request.mode==="navigate"&&"preloadResponse"in this.event)try{let e=await this.event.preloadResponse;if(e)return e}catch{return}}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(let r of this.iterateCallbacks("cacheWillUpdate"))if(t=await r({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&t.status!==200&&(t=void 0),t}},A=class{cacheName;plugins;fetchOptions;matchOptions;constructor(e={}
1){this.cacheName=y.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){let[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});let t=e.event,s=typeof e.request=="string"?new Request(e.request):e.request,r=new We(this,e.url?{event:t,request:s,url:e.url,params:e.params}:{event:t,request:s}),a=this._getResponse(r,s,t);return[a,this._awaitComplete(a,r,s,t)]}async _getResponse(e,t,s){await e.runCallbacks("handlerWillStart",{event:s,request:t});let r;try{if(r=await this._handle(t,e),r===void 0||r.type==="error")throw new h("no-response",{url:t.url})}catch(a){if(a instanceof Error){for(let n of e.iterateCallbacks("handlerDidError"))if(r=await n({error:a,event:s,request:t}),r!==void 0)break}if(!r)throw a}for(let a of e.iterateCallbacks("handlerWillRespond"))r=await a({event:s,request:t,response:r});return r}async _awaitComplete(e,t,s,r){let a,n;try{a=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:r,request:s,response:a}),await t.doneWaiting()}catch(o){o instanceof Error&&(n=o)}if(await t.runCallbacks("handlerDidComplete",{event:r,request:s,response:a,error:n}),t.destroy(),n)throw n}};var $=class extends A{_networkTimeoutSeconds;constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Ie),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let s=[],r=[],a;if(this._networkTimeoutSeconds){let{id:i,promise:c}=this._getTimeoutPromise({request:e,logs:s,handler:t});a=i,r.push(c)}let n=this._getNetworkPromise({timeoutId:a,request:e,logs:s,handler:t});r.push(n);let o=await t.waitUntil((async()=>await t.waitUntil(Promise.race(r))||await n)());if(!o)throw new h("no-response",{url:e.url});return o}_getTimeoutPromise({request:e,logs:t,handler:s}){let r;return{promise:new Promise(a=>{r=setTimeout(async()=>{a(await s.cacheMatch(e))},this._networkTimeoutSeconds*1e3)}),id:r}}async _getNetworkPromise({timeoutId:e,request:t,logs:s,handler:r}){let a,n;try{n=await r.fetchAndCachePut(t)}catch(o){o instanceof Error&&(a=o)}return e&&clearTimeout(e),(a||!n)&&(n=await r.cacheMatch(t)),n}},Ve=class extends A{_networkTimeoutSeconds;constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let s,r;try{let a=[t.fetch(e)];if(this._networkTimeoutSeconds){let n=C(this._networkTimeoutSeconds*1e3);a.push(n)}if(r=await Promise.race(a),!r)throw new Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(a){a instanceof Error&&(s=a)}if(!r)throw new h("no-response",{url:e.url,error:s});return r}};var T=e=>e&&typeof e=="object"?e:{handle:e},p=class{handler;match;method;catchHandler;constructor(e,t,s="GET"){this.handler=T(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=T(e)}},Me=class P extends A{_fallbackToNetwork;static defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:t}){return!t||t.status>=400?null:t}};static copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:t}){return t.redirected?await Oe(t):t}};constructor(t={}){t.cacheName=y.getPrecacheName(t.cacheName),super(t),this._fallbackToNetwork=t.fallbackToNetwork!==!1,this.plugins.push(P.copyRedirectedCacheableResponsesPlugin)}async _handle(t,s){let r=await s.getPreloadResponse();if(r)return r;let a=await s.cacheMatch(t);return a||(s.event&&s.event.type==="install"?await this._handleInstall(t,s):await this._handleFetch(t,s))}async _handleFetch(t,s){let r,a=s.params||{};if(this._fallbackToNetwork){let n=a.integrity,o=t.integrity,i=!o||o===n;if(r=await s.fetch(new Request(t,{integrity:t.mode!=="no-cors"?o||n:void 0})),n&&i&&t.mode!=="no-cors"){this._useDefaultCacheabilityPluginIfNeeded();let c=await s.cachePut(t,r.clone())}}else throw new h("missing-precache-entry",{cacheName:this.cacheName,url:t.url});return r}async _handleInstall(t,s){this._useDefaultCacheabilityPluginIfNeeded();let r=await s.fetch(t);if(!await s.cachePut(t,r.clone()))throw new h("bad-precaching-response",{url:t.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let t=null,s=0;for(let[r,a]of this.plugins.entries())a!==P.copyRedirectedCacheableResponsesPlugin&&(a===P.defaultPrecacheCacheabilityPlugin&&(t=r),a.cacheWillUpdate&&s++);s===0?this.plugins.push(P.defaultPrecacheCacheabilityPlugin):s>1&&t!==null&&this.plugins.splice(t,1)}},Fe=class extends p{_allowlist;_denylist;constructor(e,{allowlist:t=[/./],denylist:s=[]}={}){super(r=>this._match(r),e),this._allowlist=t,this._denylist=s}_match({url:e,request:t}){if(t&&t.mode!=="navigate")return!1;let s=e.pathname+e.search;for(let r of this._denylist)if(r.test(s))return!1;return!!this._allowlist.some(r=>r.test(s))}},Be=()=>!!self.registration?.navigationPreload,He=e=>{Be()&&self.addEventListener("activate",t=>{t.waitUntil(self.registration.navigationPreload.enable().then(()=>{e&&self.registration.navigationPreload.setHeaderValue(e)}))})};var jt=(e,t=[])=>{for(let s of[...e.searchParams.keys()])t.some(r=>r.test(s))&&e.searchParams.delete(s);return e};function*Ke(e,{directoryIndex:t="index.html",ignoreURLParametersMatching:s=[/^utm_/,/^fbclid$/],cleanURLs:r=!0,urlManipulation:a}={}){let n=new URL(e,location.href);n.hash="",yield n.href;let o=jt(n,s);if(yield o.href,t&&o.pathname.endsWith("/")){let i=new URL(o.href);i.pathname+=t,yield i.href}if(r){let i=new URL(o.href);i.pathname+=".html",yield i.href}if(a){let i=a({url:n});for(let c of i)yield c.href}}var Ge=class extends p{constructor(e,t,s){let r=({url:a})=>{let n=e.exec(a.href);if(n&&!(a.origin!==location.origin&&n.index!==0))return n.slice(1)};super(r,t,s)}},je=e=>{y.updateDetails(e)},Qt="__WB_REVISION__",Qe=e=>{if(!e)throw new h("add-to-cache-list-unexpected-type",{entry:e});if(typeof e=="string"){let n=new URL(e,location.href);return{cacheKey:n.href,url:n.href}}let{revision:t,url:s}=e;if(!s)throw new h("add-to-cache-list-unexpected-type",{entry:e});if(!t){let n=new URL(s,location.href);return{cacheKey:n.href,url:n.href}}let r=new URL(s,location.href),a=new URL(s,location.href);return r.searchParams.set(Qt,t),{cacheKey:r.href,url:a.href}},Ye=class{updatedURLs=[];notUpdatedURLs=[];handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)};cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if(e.type==="install"&&t?.originalRequest&&t.originalRequest instanceof Request){let r=t.originalRequest.url;s?this.notUpdatedURLs.push(r):this.updatedURLs.push(r)}return s}},ze=(e,t,s)=>{if(typeof e=="string"){let r=new URL(e,location.href),a=({url:n})=>n.href===r.href;return new p(a,t,s)}if(e instanceof RegExp)return new Ge(e,t,s);if(typeof e=="function")return new p(e,t,s);if(e instanceof p)return e;throw new h("unsupported-route-type",{moduleName:"serwist",funcName:"parseRoute",paramName:"capture"})};var Xe=async(e,t,s)=>{let r=t.map((o,i)=>({index:i,item:o})),a=async o=>{let i=[];for(;;){let c=r.pop();if(!c)return o(i);let l=await s(c.item);i.push({result:l,index:c.index})}},n=Array.from({length:e},()=>new Promise(a));return(await Promise.all(n)).flat().sort((o,i)=>o.index<i.index?-1:1).map(o=>o.result)};var dr=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var Yt=class{_statuses;_headers;constructor(e={}){this._statuses=e.statuses,e.headers&&(this._headers=new Headers(e.headers))}
1isResponseCacheable(e){let t=!0;if(this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t){for(let[s,r]of this._headers.entries())if(e.headers.get(s)!==r){t=!1;break}}return t}},et=class{_cacheableResponse;constructor(e){this._cacheableResponse=new Yt(e)}cacheWillUpdate=async({response:e})=>this._cacheableResponse.isResponseCacheable(e)?e:null},zt="serwist-expiration",I="cache-entries",Je=e=>{let t=new URL(e,location.href);return t.hash="",t.href},Xt=class{_cacheName;_db=null;constructor(e){this._cacheName=e}_getId(e){return`${this._cacheName}|${Je(e)}`}_upgradeDb(e){let t=e.createObjectStore(I,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&Ce(this._cacheName)}async setTimestamp(e,t){e=Je(e);let s={id:this._getId(e),cacheName:this._cacheName,url:e,timestamp:t},r=(await this.getDb()).transaction(I,"readwrite",{durability:"relaxed"});await r.store.put(s),await r.done}async getTimestamp(e){return(await(await this.getDb()).get(I,this._getId(e)))?.timestamp}async expireEntries(e,t){let s=await(await this.getDb()).transaction(I,"readwrite").store.index("timestamp").openCursor(null,"prev"),r=[],a=0;for(;s;){let n=s.value;n.cacheName===this._cacheName&&(e&&n.timestamp<e||t&&a>=t?(s.delete(),r.push(n.url)):a++),s=await s.continue()}return r}async getDb(){return this._db||(this._db=await k(zt,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}},Jt=class{_isRunning=!1;_rerunRequested=!1;_maxEntries;_maxAgeSeconds;_matchOptions;_cacheName;_timestampModel;constructor(e,t={}){this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Xt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;let e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(let r of t)await s.delete(r,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,this.expireEntries())}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(!this._maxAgeSeconds)return!1;let t=await this._timestampModel.getTimestamp(e),s=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<s:!0}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(Number.POSITIVE_INFINITY)}},Zt=e=>{j.add(e)},tt=class{_config;_cacheExpirations;constructor(e={}){this._config=e,this._cacheExpirations=new Map,this._config.maxAgeFrom||(this._config.maxAgeFrom="last-fetched"),this._config.purgeOnQuotaError&&Zt(()=>
1this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===y.getRuntimeName())throw new h("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new Jt(e,this._config),this._cacheExpirations.set(e,t)),t}cachedResponseWillBeUsed({event:e,cacheName:t,request:s,cachedResponse:r}){if(!r)return null;let a=this._isResponseDateFresh(r),n=this._getCacheExpiration(t),o=this._config.maxAgeFrom==="last-used",i=(async()=>{o&&await n.updateTimestamp(s.url),await n.expireEntries()})();try{e.waitUntil(i)}catch{}return a?r:null}_isResponseDateFresh(e){if(this._config.maxAgeFrom==="last-used")return!0;let t=Date.now();if(!this._config.maxAgeSeconds)return!0;let s=this._getDateHeaderTimestamp(e);return s===null?!0:s>=t-this._config.maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;let t=e.headers.get("date"),s=new Date(t).getTime();return Number.isNaN(s)?null:s}async cacheDidUpdate({cacheName:e,request:t}){let s=this._getCacheExpiration(e);await s.updateTimestamp(t.url),await s.expireEntries()}async deleteCacheAndMetadata(){for(let[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}},es="serwist-google-analytics",ts=2880,ss=/^\/(\w+\/)?collect/,rs=e=>async({queue:t})=>{let s;for(;s=await t.shiftRequest();){let{request:r,timestamp:a}=s,n=new URL(r.url);try{let o=r.method==="POST"?new URLSearchParams(await r.clone().text()):n.searchParams,i=a-(Number(o.get("qt"))||0),c=Date.now()-i;if(o.set("qt",String(c)),e.parameterOverrides)for(let l of Object.keys(e.parameterOverrides)){let u=e.parameterOverrides[l];o.set(l,u)}typeof e.hitFilter=="function"&&e.hitFilter.call(null,o),await fetch(new Request(n.origin+n.pathname,{body:o.toString(),method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"text/plain"}}))}catch(o){throw await t.unshiftRequest(s),o}}},as=e=>{let t=({url:r})=>r.hostname==="www.google-analytics.com"&&ss.test(r.pathname),s=new Ve({plugins:[e]});return[new p(t,s,"GET"),new p(t,s,"POST")]},ns=e=>{let t=({url:s})=>s.hostname==="www.google-analytics.com"&&s.pathname==="/analytics.js";return new p(t,new $({cacheName:e}),"GET")},os=e=>{let t=({url:s})=>s.hostname==="www.googletagmanager.com"&&s.pathname==="/gtag/js";return new p(t,new $({cacheName:e}),"GET")},is=e=>{let t=({url:s})=>s.hostname==="www.googletagmanager.com"&&s.pathname==="/gtm.js";return new p(t,new $({cacheName:e}),"GET")},Ze=({serwist:e,cacheName:t,...s})=>{let r=y.getGoogleAnalyticsName(t),a=new $e(es,{maxRetentionTime:ts,onSync:rs(s)}),n=[is(r),ns(r),os(r),...as(a)];for(let o of n)e.registerRoute(o)},cs=class{_fallbackUrls;_serwist;constructor({fallbackUrls:e,serwist:t}){this._fallbackUrls=e,this._serwist=t}async handlerDidError(e){for(let t of this._fallbackUrls)if(typeof t=="string"){let s=await this._serwist.matchPrecache(t);if(s!==void 0)return s}else if(t.matcher(e)){let s=await this._serwist.matchPrecache(t.url);if(s!==void 0)return s}}};var st=class extends A{async _handle(e,t){let s=[],r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(n){n instanceof Error&&(a=n)}if(!r)throw new h("no-response",{url:e.url,error:a});return r}};var ls=class extends p{constructor(e,t){let s=({request:r})=>{let a=e.getUrlsToPrecacheKeys();for(let n of Ke(r.url,t)){let o=a.get(n);if(o)return{cacheKey:o,integrity:e.getIntegrityForPrecacheKey(o)}}};super(s,e.precacheStrategy)}},us=class{_precacheController;constructor({precacheController:e}){this._precacheController=e}cacheKeyWillBeUsed=async({request:e,params:t})=>{let s=t?.cacheKey||this._precacheController.getPrecacheKeyForUrl(e.url);return s?new Request(s,{headers:e.headers}):e}},hs=(e,t={})=>{let{cacheName:s,plugins:r=[],fetchOptions:a,matchOptions:n,fallbackToNetwork:o,directoryIndex:i,ignoreURLParametersMatching:c,cleanURLs:l,urlManipulation:u,cleanupOutdatedCaches:g,concurrency:R=10,navigateFallback:H,navigateFallbackAllowlist:_,navigateFallbackDenylist:f}=t??{};return{precacheStrategyOptions:{cacheName:y.getPrecacheName(s),plugins:[...r,new us({precacheController:e})],fetchOptions:a,matchOptions:n,fallbackToNetwork:o},precacheRouteOptions:{directoryIndex:i,ignoreURLParametersMatching:c,cleanURLs:l,urlManipulation:u},precacheMiscOptions:{cleanupOutdatedCaches:g,concurrency:R,navigateFallback:H,navigateFallbackAllowlist:_,navigateFallbackDenylist:f}}},rt=class{_urlsToCacheKeys=new Map;_urlsToCacheModes=new Map;_cacheKeysToIntegrities=new Map;_concurrentPrecaching;_precacheStrategy;_routes;_defaultHandlerMap;_catchHandler;_requestRules;constructor({precacheEntries:e,precacheOptions:t,skipWaiting:s=!1,importScripts:r,navigationPreload:a=!1,cacheId:n,clientsClaim:o=!1,runtimeCaching:i,offlineAnalyticsConfig:c,disableDevLogs:l=!1,fallbacks:u,requestRules:g}={}){let{precacheStrategyOptions:R,precacheRouteOptions:H,precacheMiscOptions:_}=hs(this,t);if(this._concurrentPrecaching=_.concurrency,this._precacheStrategy=new Me(R),this._routes=new Map,this._defaultHandlerMap=new Map,this._requestRules=g,this.handleInstall=this.handleInstall.bind(this),this.handleActivate=this.handleActivate.bind(this),this.handleFetch=this.handleFetch.bind(this),this.handleCache=this.handleCache.bind(this),r&&r.length>0&&self.importScripts(...r),a&&He(),n!==void 0&&je({prefix:n}
1),s?self.skipWaiting():self.addEventListener("message",f=>{f.data&&f.data.type==="SKIP_WAITING"&&self.skipWaiting()}),o&&Ne(),e&&e.length>0&&this.addToPrecacheList(e),_.cleanupOutdatedCaches&&_e(R.cacheName),this.registerRoute(new ls(this,H)),_.navigateFallback&&this.registerRoute(new Fe(this.createHandlerBoundToUrl(_.navigateFallback),{allowlist:_.navigateFallbackAllowlist,denylist:_.navigateFallbackDenylist})),c!==void 0&&(typeof c=="boolean"?c&&Ze({serwist:this}):Ze({...c,serwist:this})),i!==void 0){if(u!==void 0){let f=new cs({fallbackUrls:u.entries,serwist:this});i.forEach(K=>{K.handler instanceof A&&!K.handler.plugins.some(At=>"handlerDidError"in At)&&K.handler.plugins.push(f)})}for(let f of i)this.registerCapture(f.matcher,f.handler,f.method)}l&&Ue()}get precacheStrategy(){return this._precacheStrategy}get routes(){return this._routes}addEventListeners(){self.addEventListener("install",this.handleInstall),self.addEventListener("activate",this.handleActivate),self.addEventListener("fetch",this.handleFetch),self.addEventListener("message",this.handleCache)}addToPrecacheList(e){let t=[];for(let s of e){typeof s=="string"?t.push(s):s&&!s.integrity&&s.revision===void 0&&t.push(s.url);let{cacheKey:r,url:a}=Qe(s),n=typeof s!="string"&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==r)throw new h("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:r});if(typeof s!="string"&&s.integrity){if(this._cacheKeysToIntegrities.has(r)&&this._cacheKeysToIntegrities.get(r)!==s.integrity)throw new h("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(r,s.integrity)}this._urlsToCacheKeys.set(a,r),this._urlsToCacheModes.set(a,n)}if(t.length>0){let s=`Serwist is precaching URLs without revision info: ${t.join(", ")}
2This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(s)}}handleInstall(e){return this.registerRequestRules(e),Q(e,async()=>{let t=new Ye;this.precacheStrategy.plugins.push(t),await Xe(this._concurrentPrecaching,Array.from(this._urlsToCacheKeys.entries()),async([a,n])=>{let o=this._cacheKeysToIntegrities.get(n),i=this._urlsToCacheModes.get(a),c=new Request(a,{integrity:o,cache:i,credentials:"same-origin"});await Promise.all(this.precacheStrategy.handleAll({event:e,request:c,url:new URL(c.url),params:{cacheKey:n}}))});let{updatedURLs:s,notUpdatedURLs:r}=t;return{updatedURLs:s,notUpdatedURLs:r}})}async registerRequestRules(e){if(this._requestRules&&e?.addRoutes)try{await e.addRoutes(this._requestRules),this._requestRules=void 0}catch(t){throw t}}handleActivate(e){return Q(e,async()=>{let t=await self.caches.open(this.precacheStrategy.cacheName),s=await t.keys(),r=new Set(this._urlsToCacheKeys.values()),a=[];for(let n of s)r.has(n.url)||(await t.delete(n),a.push(n.url));return{deletedCacheRequests:a}})}handleFetch(e){let{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}handleCache(e){if(e.data&&e.data.type==="CACHE_URLS"){let{payload:t}=e.data,s=Promise.all(t.urlsToCache.map(r=>{let a;return typeof r=="string"?a=new Request(r):a=new Request(...r),this.handleRequest({request:a,event:e})}));e.waitUntil(s),e.ports?.[0]&&s.then(()=>e.ports[0].postMessage(!0))}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(e)}registerCapture(e,t,s){let r=ze(e,t,s);return this.registerRoute(r),r}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new h("unregister-route-but-not-found-with-method",{method:e.method});let t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new h("unregister-route-route-not-registered")}getUrlsToPrecacheKeys(){return this._urlsToCacheKeys}getPrecachedUrls(){return[...this._urlsToCacheKeys.keys()]}getPrecacheKeyForUrl(e){let t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForPrecacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){let t=e instanceof Request?e.url:e,s=this.getPre
2cacheKeyForUrl(t);if(s)return(await self.caches.open(this.precacheStrategy.cacheName)).match(s)}createHandlerBoundToUrl(e){let t=this.getPrecacheKeyForUrl(e);if(!t)throw new h("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params={cacheKey:t,...s.params},this.precacheStrategy.handle(s))}handleRequest({request:e,event:t}){let s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return;let r=s.origin===location.origin,{params:a,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:s}),o=n?.handler,i=[],c=e.method;if(!o&&this._defaultHandlerMap.has(c)&&(o=this._defaultHandlerMap.get(c)),!o)return;let l;try{l=o.handle({url:s,request:e,event:t,params:a})}catch(g){l=Promise.reject(g)}let u=n?.catchHandler;return l instanceof Promise&&(this._catchHandler||u)&&(l=l.catch(async g=>{if(u)try{return await u.handle({url:s,request:e,event:t,params:a})}catch(R){R instanceof Error&&(g=R)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw g})),l}findMatchingRoute({url:e,sameOrigin:t,request:s,event:r}){let a=this._routes.get(s.method)||[];for(let n of a){let o,i=n.match({url:e,sameOrigin:t,request:s,event:r});if(i)return o=i,(Array.isArray(o)&&o.length===0||i.constructor===Object&&Object.keys(i).length===0||typeof i=="boolean")&&(o=void 0),{route:n,params:o}}return{}}};var at="vnn-ace:pwa-skip-waiting",nt="vnn-ace:pwa-cache-page",ot=60*1e3,W="/api/pwa/offline";var it="/api/pwa/manifest",b="vnn-ace-sw",v="/",ct=40,lt=5e3,ut=15e3,ne=15e3,q=2,S={static:400,pages:50,api:60,images:150,precache:10},ht=10080*60*1e3,oe="x-vnn-sw-cached-at",dt=["/api/news/","/api/events/scores/","/api/team/schedule/","/api/team/event-and-scores/","/api/schedule/","/api/schedule/event-and-scores/"],pt=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id","gclid","fbclid","msclkid","ttclid","twclid","yclid","igsh","igshid","mc_cid","mc_eid","si","_ga"],d={static:`${b}-v${q}-static`,pages:`${b}-v${q}-pages`,api:`${b}-v${q}-api`,images:`${b}-v${q}-images`,precache:`${b}-v${q}-precache`};function M(e,t){e&&typeof e.waitUntil=="function"&&e.waitUntil(t)}function ce(e,t){return!!e.headers.get("RSC")||t.searchParams.has("_rsc")}function mt(e){return dt.some(t=>e.startsWith(t))}function wt(e){let t=new Headers(e.headers);return t.set(oe,String(Date.now())),new Response(e.body,{status:e.status,statusText:e.statusText,headers:t})}function le(e){return Number(e.headers.get(oe))}function F(e){if(!e)return!1;let t=le(e);return t?Date.now()-t>ht:!0}var ds={[d.pages]:S.pages,[d.api]:S.api,[d.images]:S.images,[d.precache]:S.precache},ie={};async function ps(e,t){let s=ds[t];if(!s||(ie[t]=(ie[t]||0)+1,ie[t]%10!==1))return;let r=await e.keys();r.length<=s||await Promise.all(r.slice(0,r.length-s).map(a=>e.delete(a)))}function ue(e,t,s,r){let a=(async()=>{let n=await caches.open(t);await n.put(s,wt(r)),await ps(n,t)})().catch(()=>{});return M(e,a),a}async function O(e,t){try{return await(await caches.open(e)).match(t)}catch{return}}async function he(e,t,s){let r=await O(s,t),a=B(t,ne,"body").then(i=>(i&&i.ok&&ue(e,s,t,i.clone()),i)).catch(()=>{});if(r&&!F(r))return M(e,a),r;let n=await a;if(n&&n.ok)return n;let o=!n||n.status>=500;return r&&o?r:n||new Response("",{status:504,statusText:"Offline"})}var fs=/\/_next\/static\/[^\s"'\\<>()]+/g;function gs(e){let t=new Set;for(let[s]of e.matchAll(fs)){let[r]=s.split("?");if(!(!r.endsWith(".js")&&!r.endsWith(".css"))&&(t.add(s),t.size>=ct))break}return[...t]}var yt;function Et(e){yt=e}async function de(e){let t=yt;if(!t)return;let s=await O(d.precache,v);if(!s)return;let r=gs(await s.text());await Promise.all(r.map(a=>t(e,new Request(new URL(a,self.location.origin))).catch(()=>{})))}async function _t(e){try{return(await e.clone().text()).includes(it)}catch{return!1}}async function pe(){await Promise.all([W,v].map(async e=>{try{let t=await caches.open(d.precache),s=await B(e,ut,"body",{cache:"reload"});if(!s||!s.ok||s.redirected||e===v&&!await _t(s))return;await t.put(e,wt(s))}catch{}}))}async function ms(){return O(d.precache,W)}var V=!1,ws=3,ft=ws;async function gt(){let e=await caches.open(d.precache),[t,s]=await Promise.all([e.match(W),e.match(v)]);return[t,s].every(r=>!!r&&!F(r))}function Nt(e){if(V||ft<=0)return;let t=(async()=>
2{if(await gt()){V=!0;return}ft--,await pe(),V=await gt(),V&&await de(e)})().catch(()=>{});M(e,t)}function ys(e,t){if(!(!t||!t.ok)){if(!t.redirected)return e.url;try{let s=new URL(t.url);return s.origin===self.location.origin?s.toString():void 0}catch{return}}}async function Rt(e,t){try{let s=await B(t,lt,"headers"),r=ys(t,s);return r&&(ue(e,d.pages,r,s.clone()),Nt(e)),s}catch{return Es(t)}}async function Es(e){let t=await O(d.pages,e);if(t&&!F(t))return t;if(!_s(e.url)){let a=await Ns(e);if(a)return a}let s=await Rs(e.url);if(s)return s;let r=await ms();return r||new Response(`<!doctype html><html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>Offline</title><style>body{font-family:system-ui,sans-serif;text-align:center;padding:3rem 1.5rem}</style></head><body><h1>You're offline</h1><p>Reconnect to see the latest from your team, then try again.</p></body></html>`,{status:200,headers:{"Content-Type":"text/html; charset=utf-8"}})}function _s(e){let{searchParams:t}=new URL(e);for(let s of t.keys())if(!pt.includes(s.toLowerCase()))return!0;return!1}async function Ns(e){let{origin:t,pathname:s}=new URL(e.url);try{let r=await caches.open(d.pages),n=(await r.keys()).filter(l=>{let u=new URL(l.url);return u.origin===t&&u.pathname===s}),o=await Promise.all(n.map(l=>r.match(l))),i,c=0;for(let l of o){if(!l||F(l))continue;let u=le(l);u>c&&(i=l,c=u)}return i}catch{return}}async function Rs(e){let t=new URL(v,self.location.origin).toString();if(e===t)return O(d.precache,v)}async function B(e,t,s,r){let a=new AbortController,n=setTimeout(()=>a.abort(),t);try{return await fetch(e,{...r,signal:a.signal})}finally{s==="headers"&&clearTimeout(n)}}function bt(e,t){let s=(()=>{try{return new URL(t,self.location.origin)}catch{return null}})();if(!s||s.origin!==self.location.origin)return;s.searchParams.delete("_rsc");let r=new Request(s.toString()),a=(async()=>{let o=await(await caches.open(d.pages)).match(r);if(o){let c=le(o);if(c&&Date.now()-c<ot)return}let i=await B(s.pathname+s.search,ne,"body");!i||!i.ok||i.redirected||await _t(i)&&(await ue(e,d.pages,r,i),Nt(e))})().catch(()=>{});M(e,a)}async function vt(){try{let e=Object.values(d),t=await caches.keys();await Promise.all(t.filter(s=>s.startsWith(`${b}-`)&&!e.includes(s)).map(s=>caches.delete(s)))}catch{}}var St=new st({cacheName:d.static,plugins:[new et({statuses:[200]}),new tt({maxEntries:S.static})]});Et((e,t)=>St.handle({event:e,request:t}));var bs=new rt({precacheEntries:void 0,skipWaiting:!1,clientsClaim:!0,runtimeCaching:[{matcher:({sameOrigin:e,url:t})=>e&&t.pathname.startsWith("/_next/static/"),handler:St},{matcher:({sameOrigin:e,url:t})=>e&&t.pathname.startsWith("/_next/image"),handler:({event:e,request:t})=>he(e,t,d.images)},{matcher:({sameOrigin:e,request:t,url:s})=>e&&!ce(t,s)&&mt(s.pathname),handler:({event:e,request:t})=>he(e,t,d.api)},{matcher:({sameOrigin:e,request:t,url:s})=>e&&t.mode==="navigate"&&!ce(t,s),handler:({event:e,request:t})=>Rt(e,t)}]});self.addEventListener("install",e=>{e.waitUntil(pe())});self.addEventListener("activate",e=>{e.waitUntil(Promise.all([vt(),de(e)]))});self.addEventListener("message",e=>{if(e.data){if(e.data.type===at){self.skipWaiting();return}e.data.type===nt&&typeof e.data.url=="string"&&bt(e,e.data.url)}});bs.addEventListeners();
3//# sourceMappingURL=sw.js.map

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.