PageSourceSearch

https://localmode.ai/sw.js

js localmode.ai collected 2026-10-05 12:14:27 UTC 57,043 bytes, 2 lines download raw bytes

1"use strict";(()=>{var w={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"serwist",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},L=e=>[w.prefix,e,w.suffix].filter(t=>t&&t.length>0).join("-"),Me=e=>{for(let t of Object.keys(w))e(t)},y={updateDetails:e=>{Me(t=>{let s=e[t];typeof s=="string"&&(w[t]=s)})},getGoogleAnalyticsName:e=>e||L(w.googleAnalytics),getPrecacheName:e=>e||L(w.precache),getPrefix:()=>w.prefix,getRuntimeName:e=>e||L(w.runtime),getSuffix:()=>w.suffix},D;function te(){if(D===void 0){let e=new Response("");if("body"in e)try{new Response(e.body),D=!0}catch{D=!1}D=!1}return D}var Be=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};var We=Be,l=class extends Error{details;constructor(e,t){let s=We(e,t);super(s),this.name=e,this.details=t}};var se=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");function S(e){return new Promise(t=>setTimeout(t,e))}var V=new Set;function ee(e,t){let s=new URL(e);for(let r of t)s.searchParams.delete(r);return s.href}async function re(e,t,s,r){let a=ee(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===ee(i.url,s))return e.match(i,r)}var ae=class{promise;resolve;reject;
1constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},ne=async()=>{for(let e of V)await e()},Ke="-precache-",je=async(e,t=Ke)=>{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},oe=e=>{self.addEventListener("activate",t=>{t.waitUntil(je(y.getPrecacheName(e)).then(s=>{}))})},ie=()=>{self.addEventListener("activate",()=>self.clients.claim())},F=(e,t)=>{let s=t();return e.waitUntil(s),s};var W=(e,t)=>t.some(s=>e instanceof s),ce,le;function He(){return ce||(ce=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ge(){return le||(le=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var K=new WeakMap,M=new WeakMap,O=new WeakMap;function Qe(e){let t=new Promise((s,r)=>{let a=()=>{e.removeEventListener("success",n),e.removeEventListener("error",o)},n=()=>{s(_(e.result)),a()},o=()=>{r(e.error),a()};e.addEventListener("success",n),e.addEventListener("error",o)});return O.set(t,e),t}function ze(e){if(K.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)});K.set(e,t)}var j={get(e,t,s){if(e instanceof IDBTransaction){if(t==="done")return K.get(e);if(t==="store")return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return _(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 pe(e){j=e(j)}function Je(e){return Ge().includes(e)?function(...t){return e.apply(H(this),t),_(this.request)}:function(...t){return _(e.apply(H(this),t))}}function Ye(e){return typeof e=="function"?Je(e):(e instanceof IDBTransaction&&ze(e),W(e,He())?new Proxy(e,j):e)}function _(e){if(e instanceof IDBRequest)return Qe(e);if(M.has(e))return M.get(e);let t=Ye(e);return t!==e&&(M.set(e,t),O.set(t,e)),t}var H=e=>O.get(e);function P(e,t,{blocked:s,upgrade:r,blocking:a,terminated:n}={}){let o=indexedDB.open(e,t),i=_(o);return r&&o.addEventListener("upgradeneeded",c=>{r(_(o.result),c.oldVersion,c.newVersion,_(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",u=>a(u.oldVersion,u.newVersion,u))}).catch(()=>{}),i}function ge(e,{blocked:t}={}){let s=indexedDB.deleteDatabase(e);return t&&s.addEventListener("blocked",r=>t(r.oldVersion,r)),_(s).then(()=>{})}var Xe=["get","getKey","getAll","getAllKeys","count"],Ze=["put","add","delete","clear"],B=new Map;function ue(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(B.get(t))return B.get(t);let s=t.replace(/FromIndex$/,""),r=t!==s,a=Ze.includes(s);if(!(s in(r?IDBIndex:IDBObjectStore).prototype)||!(a||Xe.includes(s)))return;let n=async function(o,...i){let c=this.transaction(o,a?"readwrite":"readonly"),u=c.store;return r&&(u=u.index(i.shift())),(await Promise.all([u[s](...i),a&&c.done]))[0]};return B.set(t,n),n}pe(e=>({...e,get:(t,s,r)=>ue(t,s)||e.get(t,s,r),has:(t,s)=>!!ue(t,s)||e.has(t,s)}));var et=["continue","continuePrimaryKey","advance"],he={},G=new WeakMap,fe=new WeakMap,tt={get(e,t){if(!et.includes(t))return e[t];let s=he[t];return s||(s=he[t]=function(...r){G.set(this,fe.get(this)[t](...r))}),s}};async function*st(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let s=new Proxy(t,tt);for(fe.set(s,t),O.set(s,H(t));t;)yield s,t=await(G.get(s)||t.continue()),G.delete(s)}function de(e,t){return t===Symbol.asyncIterator&&W(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&W(e,[IDBIndex,IDBObjectStore])}pe(e=>({...e,get(t,s,r){return de(t,s)?st:e.get(t,s,r)},has(t,s){return de(t,s)||e.has(t,s)}}));var Ne=async(e,t)=>{let s=null;if(e.url&&(s=new URL(e.url).origin),s!==self.location.origin)throw new l("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=te()?r.body:await r.blob();return new Response(o,n)},Ee=()=>{self.__WB_DISABLE_DEV_LOGS=!0},me=3,rt="serwist-background-sync",N="requests",q="queueName",at=class{_db=null;async addEntry(e){let t=(await this.getDb()).transaction(N,"readwrite",{durability:"relaxed"});await t.store.add(e),await t.done}async getFirstEntryId(){return(await(await this.getDb()).transaction(N).store.openCursor())?.value.id}async getAllEntriesByQueueName(e){let t=await(await this.getDb()).getAllFromIndex(N,q,IDBKeyRange.only(e));return t||[]}async getEntryCountByQueueName(e){return(await this.getDb()).countFromIndex(N,q,IDBKeyRange.only(e))}async deleteEntry(e){await(await this.getDb()).delete(N,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(N).store.index(q).openCursor(e,t))?.value}async getDb(){return this._db||(this._db=await P(rt,me,{upgrade:this._upgradeDb})),this._db}_upgradeDb(e,t){t>0&&t<me&&e.objectStoreNames.contains(N)&&e.deleteObjectStore(N),e.createObjectStore(N,{autoIncrement:!0,keyPath:"id"}).createIndex(q,q,{unique:!1})}},_e=class{_queueName;_queueDb;constructor(e){this._queueName=e,this._queueDb=new at}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}},nt=["method","referrer","referrerPolicy","mode","credentials","cache","redirect","integrity","keepalive"],J=class z{_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 nt)t[r]!==void 0&&(s[r]=t[r]);return new z(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 z(this.toObject())}},we="serwist-background-sync",ot=1440*7,Q=new Set,ye=e=>{let t={request:new J(e.requestData).toRequest(),timestamp:e.timestamp};return e.metadata&&(t.metadata=e.metadata),t},Re=class{_name;_onSync;_maxRetentionTime;_queueStore;_forceSyncFallback;_syncInProgress=!1;_requestsAddedDuringSync=!1;constructor(e,{forceSyncFallback:t,onSync:s,maxRetentionTime:r}={}){if(Q.has(e))throw new l("duplicate-queue-name",{name:e});Q.add(e),this._name=e,this._onSync=s||this.replayRequests,this._maxRetentionTime=r||ot,this._forceSyncFallback=!!t,this._queueStore=new _e(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(ye(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 J.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):ye(s)}}async replayRequests(){let e;for(;e=await this.shiftRequest();)try{await fetch(e.request.clone())}catch{throw await this.unshiftRequest(e),new l("queue-replay-failed",{name:this._name})}}async registerSync(){if("sync"in self.registration&&!this._forceSyncFallback)try{await self.registration.sync.register(`${we}:${this._name}`)}catch{}}_addSyncListener(){"sync"in self.registration&&!this._forceSyncFallback?self.addEventListener("sync",e=>{if(e.tag===`${we}:${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 Q}},be=class{_queue;constructor(e,t){this._queue=new Re(e,t)}async fetchDidFail({request:e}){await this._queue.pushRequest({request:e})}},Y={cacheWillUpdate:async({response:e})=>e.status===200||e.status===0?e:null};function U(e){return typeof e=="string"?new Request(e):e}var ve=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 ae,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=U(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 l("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=U(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=U(e);await S(0);let r=await this.getCacheKey(s,"write");if(!t)throw new l("cache-put-with-no-response",{url:se(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"),u=c?await re(i,r.clone(),["__WB_REVISION__"],o):null;try{await i.put(r,c?a.clone():a)}catch(d){if(d instanceof Error)throw d.name==="QuotaExceededError"&&await ne(),d}for(let d of this.iterateCallbacks("cacheDidUpdate"))await d({cacheName:n,oldResponse:u,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=U(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}},v=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 ve(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 l("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 p=class extends v{_networkTimeoutSeconds;constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Y),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 l("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}},R=class extends v{_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=S(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 l("no-response",{url:e.url,error:s});return r}};var T=e=>e&&typeof e=="object"?e:{handle:e},g=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)}},xe=class C extends v{_fallbackToNetwork;static defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:t}){return!t||t.status>=400?null:t}};static copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:t}){return t.redirected?await Ne(t):t}};constructor(t={}){t.cacheName=y.getPrecacheName(t.cacheName),super(t),this._fallbackToNetwork=t.fallbackToNetwork!==!1,this.plugins.push(C.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 l("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 l("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!==C.copyRedirectedCacheableResponsesPlugin&&(a===C.defaultPrecacheCacheabilityPlugin&&(t=r),a.cacheWillUpdate&&s++);s===0?this.plugins.push(C.defaultPrecacheCacheabilityPlugin):s>1&&t!==null&&this.plugins.splice(t,1)}},De=class extends g{_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))}},Se=()=>!!self.registration?.navigationPreload,qe=e=>{Se()&&self.addEventListener("activate",t=>{t.waitUntil(self.registration.navigationPreload.enable().then(()=>{e&&self.registration.navigationPreload.setHeaderValue(e)}))})};var it=(e,t=[])=>{for(let s of[...e.searchParams.keys()])t.some(r=>r.test(s))&&e.searchParams.delete(s);return e};function*Ce(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=it(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 Te=class extends g{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)}},Ae=e=>{y.updateDetails(e)},ct="__WB_REVISION__",Oe=e=>{if(!e)throw new l("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 l("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(ct,t),{cacheKey:r.href,url:a.href}},Pe=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}},Ue=(e,t,s)=>{if(typeof e=="string"){let r=new URL(e,location.href),a=({url:n})=>n.href===r.href;return new g(a,t,s)}
1if(e instanceof RegExp)return new Te(e,t,s);if(typeof e=="function")return new g(e,t,s);if(e instanceof g)return e;throw new l("unsupported-route-type",{moduleName:"serwist",funcName:"parseRoute",paramName:"capture"})};var ke=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 u=await s(c.item);i.push({result:u,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 ps=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var lt="serwist-expiration",k="cache-entries",$e=e=>{let t=new URL(e,location.href);return t.hash="",t.href},ut=class{_cacheName;_db=null;constructor(e){this._cacheName=e}_getId(e){return`${this._cacheName}|${$e(e)}`}_upgradeDb(e){let t=e.createObjectStore(k,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ge(this._cacheName)}async setTimestamp(e,t){e=$e(e);let s={id:this._getId(e),cacheName:this._cacheName,url:e,timestamp:t},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(s),await r.done}async getTimestamp(e){return(await(await this.getDb()).get(k,this._getId(e)))?.timestamp}async expireEntries(e,t){let s=await(await this.getDb()).transaction(k,"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 P(lt,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}},ht=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 ut(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)}},dt=e=>{V.add(e)},h=class{_config;_cacheExpirations;constructor(e={}){this._config=e,this._cacheExpirations=new Map,this._config.maxAgeFrom||(this._config.maxAgeFrom="last-fetched"),this._config.purgeOnQuotaError&&dt(()=>
1this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===y.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new ht(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}}
1,pt="serwist-google-analytics",gt=2880,ft=/^\/(\w+\/)?collect/,mt=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 u of Object.keys(e.parameterOverrides)){let d=e.parameterOverrides[u];o.set(u,d)}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}}},wt=e=>{let t=({url:r})=>r.hostname==="www.google-analytics.com"&&ft.test(r.pathname),s=new R({plugins:[e]});return[new g(t,s,"GET"),new g(t,s,"POST")]},yt=e=>{let t=({url:s})=>s.hostname==="www.google-analytics.com"&&s.pathname==="/analytics.js";return new g(t,new p({cacheName:e}),"GET")},Nt=e=>{let t=({url:s})=>s.hostname==="www.googletagmanager.com"&&s.pathname==="/gtag/js";return new g(t,new p({cacheName:e}),"GET")},Et=e=>{let t=({url:s})=>s.hostname==="www.googletagmanager.com"&&s.pathname==="/gtm.js";return new g(t,new p({cacheName:e}),"GET")},Ie=({serwist:e,cacheName:t,...s})=>{let r=y.getGoogleAnalyticsName(t),a=new be(pt,{maxRetentionTime:gt,onSync:mt(s)}),n=[Et(r),yt(r),Nt(r),...wt(a)];for(let o of n)e.registerRoute(o)},_t=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}}},Rt=(e,t,s)=>{let r=e.size;if(s&&s>r||t&&t<0)throw new l("range-not-satisfiable",{size:r,end:s,start:t});let a,n;return t!==void 0&&s!==void 0?(a=t,n=s+1):t!==void 0&&s===void 0?(a=t,n=r):s!==void 0&&t===void 0&&(a=r-s,n=r),{start:a,end:n}},bt=e=>{let t=e.trim().toLowerCase();if(!t.startsWith("bytes="))throw new l("unit-must-be-bytes",{normalizedRangeHeader:t});if(t.includes(","))throw new l("single-range-only",{normalizedRangeHeader:t});let s=/(\d*)-(\d*)/.exec(t);if(!s||!(s[1]||s[2]))throw new l("invalid-range-values",{normalizedRangeHeader:t});return{start:s[1]===""?void 0:Number(s[1]),end:s[2]===""?void 0:Number(s[2])}},vt=async(e,t)=>{try{if(t.status===206)return t;let s=e.headers.get("range");if(!s)throw new l("no-range-header");let r=bt(s),a=await t.blob(),n=Rt(a,r.start,r.end),o=a.slice(n.start,n.end),i=o.size,c=new Response(o,{status:206,statusText:"Partial Content",headers:t.headers});return c.headers.set("Content-Length",String(i)),c.headers.set("Content-Range",`bytes ${n.start}-${n.end-1}/${a.size}`),c}catch{return new Response("",{status:416,statusText:"Range Not Satisfiable"})}},X=class{cachedResponseWillBeUsed=async({request:e,cachedResponse:t})=>t&&e.headers.has("range")?await vt(e,t):t},A=class extends v{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 l("no-response",{url:e.url,error:a});return r}};var x=class extends v{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Y)}async _handle(e,t){let s=[],r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),n;if(!a)try{a=await r}catch(o){o instanceof Error&&(n=o)}if(!a)throw new l("no-response",{url:e.url,error:n});return a}},xt=class extends g{constructor(e,t){let s=({request:r})=>{let a=e.getUrlsToPrecacheKeys();for(let n of Ce(r.url,t)){let o=a.get(n);if(o)return{cacheKey:o,integrity:e.getIntegrityForPrecacheKey(o)}}};super(s,e.precacheStrategy)}},Dt=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}},St=(e,t={})=>{let{cacheName:s,plugins:r=[],fetchOptions:a,matchOptions:n,fallbackToNetwork:o,directoryIndex:i,ignoreURLParametersMatching:c,cleanURLs:u,urlManipulation:d,cleanupOutdatedCaches:m,concurrency:b=10,navigateFallback:$,navigateFallbackAllowlist:E,navigateFallbackDenylist:f}=t??{};
1return{precacheStrategyOptions:{cacheName:y.getPrecacheName(s),plugins:[...r,new Dt({precacheController:e})],fetchOptions:a,matchOptions:n,fallbackToNetwork:o},precacheRouteOptions:{directoryIndex:i,ignoreURLParametersMatching:c,cleanURLs:u,urlManipulation:d},precacheMiscOptions:{cleanupOutdatedCaches:m,concurrency:b,navigateFallback:$,navigateFallbackAllowlist:E,navigateFallbackDenylist:f}}},Le=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:u=!1,fallbacks:d,requestRules:m}={}){let{precacheStrategyOptions:b,precacheRouteOptions:$,precacheMiscOptions:E}=St(this,t);if(this._concurrentPrecaching=E.concurrency,this._precacheStrategy=new xe(b),this._routes=new Map,this._defaultHandlerMap=new Map,this._requestRules=m,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&&qe(),n!==void 0&&Ae({prefix:n}),s?self.skipWaiting():self.addEventListener("message",f=>{f.data&&f.data.type==="SKIP_WAITING"&&self.skipWaiting()}),o&&ie(),e&&e.length>0&&this.addToPrecacheList(e),E.cleanupOutdatedCaches&&oe(b.cacheName),this.registerRoute(new xt(this,$)),E.navigateFallback&&this.registerRoute(new De(this.createHandlerBoundToUrl(E.navigateFallback),{allowlist:E.navigateFallbackAllowlist,denylist:E.navigateFallbackDenylist})),c!==void 0&&(typeof c=="boolean"?c&&Ie({serwist:this}):Ie({...c,serwist:this})),i!==void 0){if(d!==void 0){let f=new _t({fallbackUrls:d.entries,serwist:this});i.forEach(I=>{I.handler instanceof v&&!I.handler.plugins.some(Fe=>"handlerDidError"in Fe)&&I.handler.plugins.push(f)})}for(let f of i)this.registerCapture(f.matcher,f.handler,f.method)}u&&Ee()}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}=Oe(s),n=typeof s!="string"&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==r)throw new l("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 l("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),F(e,async()=>{let t=new Pe;this.precacheStrategy.plugins.push(t),await ke(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 F(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;
2return 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=Ue(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 l("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 l("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.getPrecacheKeyForUrl(t);if(s)return(await self.caches.open(this.precacheStrategy.cacheName)).match(s)}createHandlerBoundToUrl(e){let t=this.getPrecacheKeyForUrl(e);if(!t)throw new l("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 u;try{u=o.handle({url:s,request:e,event:t,params:a})}catch(m){u=Promise.reject(m)}let d=n?.catchHandler;return u instanceof Promise&&(this._catchHandler||d)&&(u=u.catch(async m=>{if(d)try{return await d.handle({url:s,request:e,event:t,params:a})}catch(b){b instanceof Error&&(m=b)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw m})),u}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 Z={rscPrefetch:"pages-rsc-prefetch",rsc:"pages-rsc",html:"pages"},Ve=[{matcher:/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,handler:new A({cacheName:"google-fonts-webfonts",plugins:[new h({maxEntries:4,maxAgeSeconds:365*24*60*60,maxAgeFrom:"last-used"})]})},{matcher:/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,handler:new x({cacheName:"google-fonts-stylesheets",plugins:[new h({maxEntries:4,maxAgeSeconds:10080*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,handler:new x({cacheName:"static-font-assets",plugins:[new h({maxEntries:4,maxAgeSeconds:10080*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,handler:new x({cacheName:"static-image-assets",plugins:[new h({maxEntries:64,maxAgeSeconds:720*60*60,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/static.+\.js$/i,handler:new A({cacheName:"next-static-js-assets",plugins:[new h({maxEntries:64,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/image\?url=.+$/i,handler:new x({cacheName:"next-image",plugins:[new h({maxEntries:64,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:mp3|wav|ogg)$/i,handler:new A({cacheName:"static-audio-assets",plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"}),new X]})},{matcher:/\.(?:mp4|webm)$/i,handler:new A({cacheName:"static-video-assets",plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"}),new X]})},{matcher:/\.(?:js)$/i,handler:new x({cacheName:"static-js-assets",plugins:[new h({maxEntries:48,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:css|less)$/i,handler:new x({cacheName:"static-style-assets",plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/data\/.+\/.+\.json$/i,handler:new p({cacheName:"next-data",plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:json|xml|csv)$/i,handler:new p({cacheName:"static-data-assets",plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\/api\/auth\/.*/,handler:new R({networkTimeoutSeconds:10})},{matcher:({sameOrigin:e,url:{pathname:t}})=>e&&t.startsWith("/api/"),method:"GET",handler:new p({cacheName:"apis",plugins:[new h({maxEntries:16,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})],networkTimeoutSeconds:10})},{matcher:({request:e,url:{pathname:t},sameOrigin:s})=>e.headers.get("RSC")==="1"&&e.headers.get("Next-Router-Prefetch")==="1"&&s&&!t.startsWith("/api/"),handler:new p({cacheName:Z.rscPrefetch,plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:s})=>e.headers.get("RSC")==="1"&&s&&!t.startsWith("/api/"),handler:new p({cacheName:Z.rsc,plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:s})=>e.headers.get("Content-Type")?.includes("text/html")&&s&&!t.startsWith("/api/"),handler:new p({cacheName:Z.html,plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60})]})},{matcher:({url:{pathname:e},sameOrigin:t})=>t&&!e.startsWith("/api/"),handler:new p({cacheName:"others",plugins:[new h({maxEntries:32,maxAgeSeconds:1440*60})]})},{matcher:({sameOrigin:e})=>!e,handler:new p({cacheName:"cross-origin",plugins:[new h({maxEntries:32,maxAgeSeconds:3600})],networkTimeoutSeconds:10})},{matcher:/.*/i,method:"GET",handler:new R}];var qt=["huggingface.co","cdn-lfs.huggingface.co","cdn-lfs-us-1.huggingface.co","hf.co","storage.googleapis.com"],Ct=new Le({precacheEntries:[{"revision":null,"url":"/_next/static/immutable/media/ad66f9afd8947f86-s.2o7ko1d-5m1xu.woff2"},{"revision":null,"url":"/_next/static/immutable/media/9c72aa0f40e4eef8-s.3i9rha7jpxn0q.woff2"},{"revision":null,"url":"/_next/static/immutable/media/83afe278b6a6bb3c-s.p.45535valc9rzk.woff2"},{"revision":null,"url":"/_next/static/immutable/media/5476f68d60460930-s.1ee5w62fj497l.woff2"},{"revision":null,"url":"/_next/static/immutable/media/2c55a0e60120577a-s.03ez25a9g3i0n.woff2"},{"revision":null,"url":"/_next/static/immutable/media/2bbe8d2671613f1f-s.1way2z9fj6cig.woff2"},{"revision":null,"url":"/_next/static/immutable/media/1bffadaabf893a1e-s.0szrwpqb9mkwe.woff2"},{"revision":null,"url":"/_next/static/immutable/chunks/2fk_viigeddax.css"},{"revision":null,"url":"/_next/static/immutable/chunks/1m25at98oi50h.css"},{"revision":"981eb6e3c0feb823e1a8b7236b18ef21","url":"/offline"},{"revision":"891c1efd7212d145c155b3a5a194abf7","url":"/og-default.png"},{"revision":"5e17a9bf62a7f7af52d3975c9487e360","url":"/favicon.ico"},{"revision":"3d0aa87e0ec810425190fcb617c0ea05","url":"/r/registry.json"},{"revision":"87cf0a78fdb2e0815686ede871f230c6","url":"/r/ui/security-privacy.json"},{"revision":"344a41009e4d0c052e1d6022cd84a408","url":"/r/ui/results.json"}
2,{"revision":"0d27d6ebc421c1396df5310dff4fbce2","url":"/r/ui/media-vision.json"},{"revision":"bd51b684bb1dbf697f27d17ced8cf651","url":"/r/ui/local-first.json"},{"revision":"64f1594e3d32f9e111203228475228e3","url":"/r/ui/input-controls.json"},{"revision":"0a2713570822c1691130866ed6c44a80","url":"/r/ui/devtools.json"},{"revision":"57bd1b7e2e05e0b3f7ae8c0d6fb70d41","url":"/r/ui/data-documents.json"},{"revision":"e8d82f5d1cb1a2d2e86421d8a999fa12","url":"/r/ui/conversation.json"},{"revision":"c85b815c9c24579e5e0e13c0a551f646","url":"/r/ui/audio.json"},{"revision":"28008ecebc671fe99bddcf5286f10356","url":"/r/ui/artifacts.json"},{"revision":"d26b3165a9f2e67638b0ef10d5071410","url":"/r/ui/all.json"},{"revision":"a1597038000496669763af62076dd807","url":"/r/ui/security-privacy/vault-item-card.json"},{"revision":"cdded2c5d16cb1d9a990433a21df97c0","url":"/r/ui/security-privacy/password-strength-bar.json"},{"revision":"ce9f021ebb6e6b7090b726dcd8d48760","url":"/r/ui/security-privacy/passphrase-gate.json"},{"revision":"6adf4bdd7a0de4f9b92096e433f1512a","url":"/r/ui/security-privacy/lock-status-badge.json"},{"revision":"752af17a1dcb3ba118b64ed4d6ddf7a2","url":"/r/ui/security-privacy/differential-privacy-controls.json"},{"revision":"efa6a270bc1c7a66ce8cf714df915c42","url":"/r/ui/results/top-result-card.json"},{"revision":"ac4fdf308d8cfa1fda8fe1b5cfd43ffd","url":"/r/ui/results/threshold-calibration-panel.json"},{"revision":"6c9b4e4ddcd9e36b4312a94eb2df3571","url":"/r/ui/results/scored-result-bar-list.json"},{"revision":"a2d5e400f3ac1a652ca225ceb44c5c2d","url":"/r/ui/results/redacted-text-display.json"},{"revision":"d70cd8821bd3829daa8cb5b6180b4f88","url":"/r/ui/results/mode-error-boundary.json"},{"revision":"8fddc05402e96a612dabe2b77d97840d","url":"/r/ui/results/evaluation-metrics-dashboard.json"},{"revision":"6ff441c0d642c0ddb341aff192b5d73e","url":"/r/ui/results/error-alert.json"},{"revision":"fad2ed3fff291e92d7c10928681efc66","url":"/r/ui/results/entity-stats-bar.json"},{"revision":"28ff08b5a64789e45fbf1ab41d84dc78","url":"/r/ui/results/entity-relationship-graph.json"},{"revision":"8bb941d4657a371f2087a846e7323a46","url":"/r/ui/results/editable-label-set.json"},{"revision":"5649f7d7d2df2c16e78a6a1e844c730c","url":"/r/ui/results/cosine-similarity-meter.json"},{"revision":"98453f0e05312f1392499d5ea0bdeb5f","url":"/r/ui/results/confidence-score-badge.json"},{"revision":"83cbcc480950caf0da1cc24f00114187","url":"/r/ui/media-vision/video-canvas.json"},{"revision":"42590543cc615b119a982ee4d66b45a3","url":"/r/ui/media-vision/use-webcam.json"},{"revision":"1d88cff7d92c32743ed6e12c19ed5e5d","url":"/r/ui/media-vision/media-dropzone.json"},{"revision":"b3b9a0bd5e32f5f608832c2a90260a48","url":"/r/ui/media-vision/image-result-gallery.json"},{"revision":"22f547b0fa94a92e0f9168ee0a06f202","url":"/r/ui/media-vision/image-processing-overlay.json"},{"revision":"7629b83264f25bda821a2dbb244e1980","url":"/r/ui/media-vision/bounding-box-overlay.json"},{"revision":"6ab5d9f38387e7e0d54e77152e40e819","url":"/r/ui/media-vision/before-after-image-viewer.json"},{"revision":"7a66547afbf4d459d027f3467bc83401","url":"/r/ui/local-first/vector-storage-observability.json"},{"revision":"f32255f9b9e77c3bf1579fd9bd379af1","url":"/r/ui/local-first/vector-import-flow.json"},{"revision":"8aea8cdad84fe3c14b881bfeb6288dfc","url":"/r/ui/local-first/vector-export-panel.json"},{"revision":"6f66c45fa941476d317bf45ce2d32274","url":"/r/ui/local-first/storage-meter.json"},{"revision":"5165aea0bc8cdf9fd212e52166656a1c","url":"/r/ui/local-first/semantic-cache-status-bar.json"},{"revision":"1c6e4299e4dd5da650c02b8ebc1d31ae","url":"/r/ui/local-first/provider-fallback-badge.json"},{"revision":"a7a7f523f5126bc2fbb846a1823744ad","url":"/r/ui/local-first/provider-badge.json"},{"revision":"0de2a902540537d5537ccb7486152c5f","url":"/r/ui/local-first/network-badge.json"},{"revision":"e92da0dc14529b37c2ea1aad0163bd3a","url":"/r/ui/local-first/model-selector.json"},{"revision":"924a9b23fa4c2eeb2fdee676b51281ea","url":"/r/ui/local-first/model-search-browser.json"},{"revision":"275a5475a9af83ca0ef1ca5f5b297ead","url":"/r/ui/local-first/model-recommendation-card.json"},{"revision":"fc57726d9e8289b047a8a7dcdac870ff","url":"/r/ui/local-first/model-metadata-card.json"},{"revision":"66ada813306f740caded7f3d95158d10","url":"/r/ui/local-first/model-loading-panel.json"},{"revision":"4eb86bdcbfec93e6c55ed3a1a9e85422","url":"/r/ui/local-first/model-downloader.json"},{"revision":"40276a53a55f91fe7c7fef2d104e88fd","url":"/r/ui/local-first/model-comparison-panel.json"},{"revision":"383ee6b5462e796f14e052fcbd816974","url":"/r/ui/local-first/model-catalog-card.json"},{"revision":"df236af2fe162801821dbc5b679ed86c","url":"/r/ui/local-first/embedding-drift-banner.json"},{"revision":"4368ece31a1e74f9469e27aea36a1eb6","url":"/r/ui/local-first/device-capability-grid.json"},{"revision":"485b39c744e3d25869654d80452bd4fc","url":"/r/ui/local-first/device-badge.json"},{"revision":"8724961792f9c246168e7a7c6356363f","url":"/r/ui/local-first/context-us
2age-meter.json"},{"revision":"d24a78a34f62e97004b90ae45712306a","url":"/r/ui/local-first/chrome-ai-download-gate.json"},{"revision":"21f1b5599dbe7f39661c57f27b09a69c","url":"/r/ui/local-first/capability-gate.json"},{"revision":"7a51494e0a7391f8950f2ef2da9b0487","url":"/r/ui/local-first/cache-badge.json"},{"revision":"979aaaa0d4cc9507b8b0e4e8716c9067","url":"/r/ui/local-first/browser-compat-card.json"},{"revision":"ee2670ece5b671e71a6033e9e5f76bcb","url":"/r/ui/local-first/adaptive-batch-card.json"},{"revision":"208ba1b3782d5db897432ba6087faf5e","url":"/r/ui/lib/utils.json"},{"revision":"53ce9e39b191f30324794ebe12d364dc","url":"/r/ui/lib/use-environment.json"},{"revision":"4cbe1392e32024e3cd6a29816de493fc","url":"/r/ui/lib/browser-utils.json"},{"revision":"252030c446b57c51243bafa40490e1a2","url":"/r/ui/input-controls/text-processing-panel.json"},{"revision":"d5515032a4f81a6d89cfaae9b48335c9","url":"/r/ui/input-controls/system-prompt-editor.json"},{"revision":"f2b8b0b20df0459a871e9e4d8d3b4664","url":"/r/ui/input-controls/slash-command-palette.json"},{"revision":"07daf01b1cc70026d949c24362fa24ae","url":"/r/ui/input-controls/segmented-mode-picker.json"},{"revision":"3c249d389e422d09fb9b19f30d196862","url":"/r/ui/input-controls/prompt-enhance-button.json"},{"revision":"5d38c9be60ee713647cda910171695bc","url":"/r/ui/input-controls/parameter-slider.json"},{"revision":"38fdd57449589ce5edba9f3f256c6ba9","url":"/r/ui/input-controls/option-list.json"},{"revision":"45ae85b8610d799d4db585753324c2a9","url":"/r/ui/input-controls/mask-token-input.json"},{"revision":"9a9c760f5a333e89df9af0c494d8e07f","url":"/r/ui/input-controls/language-pair-selector.json"},{"revision":"822ff4b5432b20a988087cc10f131bfd","url":"/r/ui/input-controls/copy-button.json"},{"revision":"a24ebac2736eff3c2ccf4268fecfec21","url":"/r/ui/input-controls/char-limit-indicator.json"},{"revision":"2a1744ebcd0ff2ebac677e8be65f7960","url":"/r/ui/devtools/pipeline-run-inspector.json"},{"revision":"0fb91139dc8bbdc94dc55a0087777c53","url":"/r/ui/devtools/model-cache-table.json"},{"revision":"750110cd94d90b4413d1870afa54e899","url":"/r/ui/devtools/inference-queue-monitor.json"},{"revision":"eed3904f451d3d799b83bd05b713ac3f","url":"/r/ui/devtools/event-log-viewer.json"},{"revision":"5cc7b2169d744a28e86334b9de0c2f94","url":"/r/ui/data-documents/indexed-document-card.json"},{"revision":"2d7de9630131f2b784b670667be90a82","url":"/r/ui/data-documents/format-detection-badge.json"},{"revision":"d39fe65249ada0074c5b8c86d23aca60","url":"/r/ui/data-documents/file-dropzone.json"},{"revision":"42c6d08f9ee72a883c54c73fabd4a3c6","url":"/r/ui/data-documents/chunk-boundary-visualizer.json"},{"revision":"64fbc8399ca05eaaae3806b1e8d53117","url":"/r/ui/data-documents/category-facet-list.json"},{"revision":"668cdae2639507540dd279c325a0689b","url":"/r/ui/conversation/tool.json"},{"revision":"d1db3ed6486964db7a51d97aaf427b13","url":"/r/ui/conversation/tool-approval.json"},{"revision":"d03f8650743a51937608bc45caad4301","url":"/r/ui/conversation/task.json"},{"revision":"ef2baa52d73e6091285a80a96524caee","url":"/r/ui/conversation/system-notice-banner.json"},{"revision":"f428fff2b0be35a280e13b9f68c20f93","url":"/r/ui/conversation/suggestions.json"},{"revision":"5082f59bb093a6733b23958044641320","url":"/r/ui/conversation/structured-output-viewer.json"},{"revision":"fe3a8194b94c550eaaa4d5ef3ee1dc69","url":"/r/ui/conversation/sources.json"},{"revision":"27bc3393972eddc86d13aba799c7b2fd","url":"/r/ui/conversation/source-citation-list.json"},{"revision":"a55555e82fa900deb26c5df9bef670ae","url":"/r/ui/conversation/scroll-to-bottom-button.json"},{"revision":"082cd04620a2a6727376bfd5aed5aade","url":"/r/ui/conversation/response.json"},{"revision":"dbceba61c95375adcbfa2c37260605bd","url":"/r/ui/conversation/reasoning.json"},{"revision":"48e43674984bb90793a484edc46bf689","url":"/r/ui/conversation/prompt-input.json"},{"revision":"1ac63cb6a71e051d12601157d08bd681","url":"/r/ui/conversation/prompt-input-attachments.json"},{"revision":"2a8fbaf6b3bf47f7e442222509e1f260","url":"/r/ui/conversation/pipeline-tracker.json"},{"revision":"6f656f224deb5d14d2547cae1d6ef446","url":"/r/ui/conversation/message.json"},{"revision":"31b44dd4be52d11f578b1c26f132175a","url":"/r/ui/conversation/loader.json"},{"revision":"68e14f4bcdc7761221edfdaba497afef","url":"/r/ui/conversation/inline-citation.json"},{"revision":"2d16c70512015730ebffd525e34c8f54","url":"/r/ui/conversation/in-message-error.json"},{"revision":"aadcd8c19ce2a445ee425af2ccfbbe65","url":"/r/ui/conversation/conversation.json"},{"revision":"4b0e4b65603b700334dc31b23347c90b","url":"/r/ui/conversation/code-block.json"},{"revision":"91cd05a8dafc1bf3933c611408f48ba1","url":"/r/ui/conversation/chain-of-thought.json"},{"revision":"69c6d5eaadf825f0b68373668b8b0fb5","url":"/r/ui/conversation/branch.json"},{"revision":"6dd3b39d3323ecffdf04dd4feb2f38e0","url":"/r/ui/conversation/agent-step-timeline.json"},{"revision":"65836b7bb65a44b304b2380a4989f00c","url":"/r/ui/conversation/actions.json"},{"revision":"c31359671c47f2fd549ed4416a59be1e","url":"/r/ui/blocks/devtools-drawer.json"},{"revision":"195cdbcd36fa10e9f0db2e7cd4e2da09","url":"/r/ui/blocks/chat.json"},{"revision":"93b46455df658e91f55ec74853045e95","url":"/r/ui/blocks/writing-tools/write.json"},{"revision":"e206eb6cf633f27833c18181d6aac494","url":"/r/ui/blocks/writing-tools/translate.json"}
2,{"revision":"02483bd1a0466b10e4d60df191ca33df","url":"/r/ui/blocks/writing-tools/summarize.json"},{"revision":"a60a44b0d184bd8ac5639b822c212d54","url":"/r/ui/blocks/writing-tools/complete.json"},{"revision":"f3453dafe1b5b229e760e78addfdcb93","url":"/r/ui/blocks/vision/object-detector.json"},{"revision":"e0743d92756da8ca1388be78034a9355","url":"/r/ui/blocks/vision/live-tracker.json"},{"revision":"6c70fbc31f9720ab254db9b19c23572a","url":"/r/ui/blocks/text-insights/threshold-calibrator.json"},{"revision":"e2322bcff80d60494a441ef1552d55c1","url":"/r/ui/blocks/text-insights/text-classifier.json"},{"revision":"773b83266fa476b290518d68e4005584","url":"/r/ui/blocks/text-insights/sentiment-analyzer.json"},{"revision":"e4445a56e99ca1bf025f343de71af099","url":"/r/ui/blocks/text-insights/model-evaluator.json"},{"revision":"0d6e49fb0ca7caf03bd8274923b4c0af","url":"/r/ui/blocks/text/language-detector.json"},{"revision":"624d5a993130a6b047a324931a4e0fe2","url":"/r/ui/blocks/privacy/pii-redactor.json"},{"revision":"d632f1a4dfd8df59c0840d8d1384189e","url":"/r/ui/blocks/privacy/encrypted-vault.json"},{"revision":"1b66dc81899281e0b191514af9650da2","url":"/r/ui/blocks/photo/smart-gallery.json"},{"revision":"6e8d78c744e516a060d78a050a6c984b","url":"/r/ui/blocks/photo/photo-categorizer.json"},{"revision":"1ed258ebfb31edaab82244ed03d31964","url":"/r/ui/blocks/photo/image-search.json"},{"revision":"8d87338c46219c43e2fa0eb9b33743d0","url":"/r/ui/blocks/photo/duplicate-finder.json"},{"revision":"2f3a61180c1ec4a541bb844feb519a73","url":"/r/ui/blocks/knowledge/vector-data-manager.json"},{"revision":"3a096ea9a6cb7cccdca9a49dc0efeebc","url":"/r/ui/blocks/knowledge/semantic-search.json"},{"revision":"5dbef31a44c4dd9803f71714dfe859c7","url":"/r/ui/blocks/knowledge/rag-chat.json"},{"revision":"c5c6318c01eb224d64a97184df0ab7a2","url":"/r/ui/blocks/knowledge/document-qa.json"},{"revision":"39449e79a3cba693c4216a76aace7dd4","url":"/r/ui/blocks/image-studio/image-enhancer.json"},{"revision":"26bd1c155d97fba3ccbe3dcae615f387","url":"/r/ui/blocks/image-studio/image-captioner.json"},{"revision":"6a3b83f0860231b6557daea429a6050c","url":"/r/ui/blocks/image-studio/background-remover.json"},{"revision":"35002ae30d89d3a8ef4f9813c704572d","url":"/r/ui/blocks/device/model-advisor.json"},{"revision":"4c8103df8a75dcdc7b0fa6bf121cb041","url":"/r/ui/blocks/device/gguf-explorer.json"},{"revision":"073fc7c474fda027e57d71d8a7469743","url":"/r/ui/blocks/device/device-report.json"},{"revision":"cea7fe35688cf17cb6071cad749458bc","url":"/r/ui/blocks/audio/voice-notes.json"},{"revision":"b56f58ec58fbd797c4e9842a3f519413","url":"/r/ui/blocks/audio/voice-explorer.json"},{"revision":"4bd4ec1094974c9212489f17679b591b","url":"/r/ui/blocks/audio/meeting-assistant.json"},{"revision":"848702b637e7fa23b2e190da5a527f81","url":"/r/ui/blocks/audio/live-transcription.json"},{"revision":"67251e2b444e3bc03f55a159854e26c9","url":"/r/ui/blocks/audio/audiobook-reader.json"},{"revision":"24db66cf413f8b86d0da0f7e4748b317","url":"/r/ui/blocks/audio/audio-classifier.json"},{"revision":"4b20169581725c0ad05d35d3705e9f9c","url":"/r/ui/blocks/agents/research-agent.json"},{"revision":"c646880ab04e70e3f666c5fad74335df","url":"/r/ui/blocks/agents/data-extractor.json"},{"revision":"aa7a5375e81f6337f8e67deb109cc956","url":"/r/ui/audio/waveform-activity-bars.json"},{"revision":"4c5e152b77cf63072650b1f4d67c8f76","url":"/r/ui/audio/voice-picker.json"},{"revision":"9829308cda56a2c1329accd4a61ef4ab","url":"/r/ui/audio/voice-orb.json"},{"revision":"2b398612a917e70c633a4dab391a228c","url":"/r/ui/audio/voice-comparison-panel.json"},{"revision":"8014282aebf0975d8116a9e73118ddd1","url":"/r/ui/audio/voice-button.json"},{"revision":"c3e5b89777de7d48fabf9fb7c9b2f023","url":"/r/ui/audio/transcribed-note-card.json"},{"revision":"4f66765f48f57a7f853fcbf873aa604c","url":"/r/ui/audio/synced-transcript-viewer.json"},{"revision":"29606567de2413d881c0b9b32e652610","url":"/r/ui/audio/streaming-speech-panel.json"},{"revision":"63a5d7c99fae2a856c22548a1e017da7","url":"/r/ui/audio/mic-selector.json"},{"revision":"5006f7866b6d1ff1fd1b60f7a93e0b51","url":"/r/ui/audio/audio-scrub-player.json"},{"revision":"4ba009dc2d3fe739e123030f7f28c12f","url":"/r/ui/artifacts/data-table-artifact.json"},{"revision":"21238d2ed23c3037c410e52206ea376d","url":"/r/ui/artifacts/code-diff-viewer.json"},{"revision":"fa2ba8d2c141934b93c2161384423cb8","url":"/r/ui/artifacts/chart-artifact.json"},{"revision":"53b954fc24ebd420a881655846a7bcf8","url":"/r/ui/artifacts/artifact.json"}
2,{"revision":"08d0acd215866d34406f914c29250ff0","url":"/icons/icon-512x512.png"},{"revision":"61abd5af5b8886147052b3bf1532e81e","url":"/icons/icon-512x512-maskable.png"},{"revision":"9952ca670594f285b7a0810ede436cb2","url":"/icons/icon-192x192.png"}],skipWaiting:!0,clientsClaim:!0,navigationPreload:!0,runtimeCaching:[{matcher:({url:e})=>qt.includes(e.hostname),handler:new R},{matcher:({url:e,sameOrigin:t})=>t&&e.pathname.startsWith("/api/bench"),handler:new R},...Ve],fallbacks:{entries:[{url:"/offline",matcher({request:e}){return e.destination==="document"}}]}});Ct.addEventListeners();})();

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.