1var w=[{url:"/_next/static/media/video.3g7l0xxqg6xqd.png",revision:null},{url:"/_next/static/media/unicorn.1vqyovtb30ost.svg",revision:null},{url:"/_next/static/media/tutorial-light.1_0mrz_l0l0qh.svg",revision:null},{url:"/_next/static/media/tutorial-dark.285oi1cqd264k.svg",revision:null},{url:"/_next/static/media/touch-light.2f6n3fekanliv.svg",revision:null},{url:"/_next/static/media/touch-light.0966i3m9jmy_l.svg",revision:null},{url:"/_next/static/media/share-menu.0k4cq6bstgscq.svg",revision:null},{url:"/_next/static/media/search.0o170vpyc0nbj.png",revision:null},{url:"/_next/static/media/question-mark-det.2n7ugond45wdl.svg",revision:null},{url:"/_next/static/media/publisher-logo-60px.0qxdnhbu19qbx.png",revision:null},{url:"/_next/static/media/not-found.1z6f-r6rpdbhh.svg",revision:null},{url:"/_next/static/media/not-found.0twxsexrrm5rc.svg",revision:null},{url:"/_next/static/media/monochrome-icons-sprite.35eej9nl01h4e.svg",revision:null},{url:"/_next/static/media/mainzel.1cpm0ovv0f6so.svg",revision:null},{url:"/_next/static/media/homescreen-button.3-zs1qsm8at8f.svg",revision:null},{url:"/_next/static/media/ground.1o1thgxw2h2rc.svg",revision:null},{url:"/_next/static/media/favicon.1b2t3ozuo6pew.ico",revision:null},{url:"/_next/static/media/emo-404.2cswnm_t5__9j.svg",revision:null},{url:"/_next/static/media/corrected-topic.43icaz9ck_i4x.svg",revision:null},{url:"/_next/static/media/corrected-topic.3aqz81hbzfgwq.svg",revision:null},{url:"/_next/static/media/bookmark.2nw5xksmtunu2.png",revision:null},{url:"/_next/static/media/apple-touch-icon-180x180.0cvnvlsyzp4ow.png",revision:null},{url:"/_next/static/media/app-icon.3jfqc-0kpc6m2.svg",revision:null},{url:"/_next/static/media/app-icon-512x512.0qrb3e8b839gt.png",revision:null},{url:"/_next/static/media/app-icon-192x192.103s66a22qum4.png",revision:null},{url:"/_next/static/media/app-icon-144x144.0ltgoql47ne-j.png",revision:null},{url:"/_next/static/media/all-done-light.078a1cfc-h54_.svg",revision:null},{url:"/_next/static/media/all-done-dark.269nmc0g6m20d.svg",revision:null},{url:"/_next/static/media/9_16.25vvw8bz4h04d.svg",revision:null},{url:"/_next/static/media/9_16.05_s3avor828v.svg",revision:null},{url:"/_next/static/media/8_9.3-th-ajdgc7_r.svg",revision:null},{url:"/_next/static/media/8_9.0zpi7_qukd76i.svg",revision:null},{url:"/_next/static/media/3_1.1kzbpwa4a4apb.svg",revision:null},{url:"/_next/static/media/3_1.171khf48zmt79.svg",revision:null},{url:"/_next/static/media/1_1.33rzgp7-6twig.svg",revision:null},{url:"/_next/static/media/1_1.2vfp-4_mrlxg2.svg",revision:null},{url:"/_next/static/media/16_9.1541-i-x3_s1-.svg",revision:null},{url:"/_next/static/media/16_9.058nrfld9rob4.svg",revision:null},{url:"/_next/static/chunks/turbopack-3-kl75x0sx6lq.js",revision:null},{url:"/_next/static/chunks/44csj5b37q4b1.js",revision:null},{url:"/_next/static/chunks/41mnrn_g7ytgi.css",revision:null},{url:"/_next/static/chunks/40ahwjs7f_oz-.js",revision:null},{url:"/_next/static/chunks/3y9o3sy0pi8kp.css",revision:null},{url:"/_next/static/chunks/3sv85-u4ch-8b.css",revision:null},{url:"/_next/static/chunks/3rxkuhali18dz.js",revision:null},{url:"/_next/static/chunks/3pybd3cv4-2pq.js",revision:null},{url:"/_next/static/chunks/3p4y947x43g2m.js",revision:null},{url:"/_next/static/chunks/3jwgugapyhla_.css",revision:null},{url:"/_next/static/chunks/3igeaey3bv1un.js",revision:null},{url:"/_next/static/chunks/3hb0gxxag5y_b.js",revision:null},{url:"/_next/static/chunks/3bx9c2u5ur_xa.js",revision:null},{url:"/_next/static/chunks/38c-6uul9ftnn.js",revision:null},{url:"/_next/static/chunks/353nsjlbmgdx0.js",revision:null},{url:"/_next/static/chunks/34yv19uocg6ob.css",revision:null},{url:"/_next/static/chunks/33fmqp_qnv30y.css",revision:null},{url:"/_next/static/chunks/31puit63qtbhg.js",revision:null},{url:"/_next/static/chunks/2zeyrw8l5iaaq.js",revision:null},{url:"/_next/static/chunks/2zdecz1kq93tf.js",revision:null},{url:"/_next/static/chunks/2z0kuy8d2kpqb.js",revision:null},{url:"/_next/static/chunks/2w4a58goixe5q.css",revision:null},{url:"/_next/static/chunks/2qr7h5qrcuih1.css",revision:null},{url:"/_next/static/chunks/2oz96t4aaglvz.js",revision:null},{url:"/_next/static/chunks/2of9hu4v-5sqb.js",revision:null},{url:"/_next/static/chunks/2o0-cr-ja68kk.js",revision:null},{url:"/_next/static/chunks/2fwnn90h3yfvb.js",revision:null},{url:"/_next/static/chunks/2crxvt41xplg4.css",revision:null},{url:"/_next/static/chunks/2begsriowzv6w.css",revision:null},{url:"/_next/static/chunks/29jkeka4d3s81.js",revision:null},{url:"/_next/static/chunks/291v3ti1g8fr9.js",revision:null},{url:"/_next/static/chunks/28u8dny48c9-b.css",revision:null},{url:"/_next/static/chunks/26ro1qg706dlx.css",revision:null},{url:"/_next/static/chunks/220n-ux0gfze_.js",revision:null},{url:"/_next/static/chunks/208buxfgrongb.css",revision:null},{url:"/_next/static/chunks/1uf5a_6zlqibl.css",revision:null},{url:"/_next/static/chunks/1s-8qooc2fw86.js",revision:null},{url:"/_next/static/chunks/1p38k_4-myrv7.js",revision:null},{url:"/_next/static/chunks/1kcdpfyzw-qb8.js",revision:null},{url:"/_next/static/chunks/1iww2pkrts5d6.js",revision:null},{url:"/_next/static/chunks/1iv_t31t9_0ta.js",revision:null},{url:"/_next/static/chunks/1hyhn4zlayj7i.css",revision:null},{url:"/_next/static/chunks/1_lad17rb1gta.js",revision:null},{url:"/_next/static/chunks/0zne1e_d__ywf.js",revision:null},{url:"/_next/static/chunks/0ys3_m0m5i5ie.js",revision:null},{url:"/_next/static/chunks/0xhys8-h6em-_.css",revision:null},{url:"/_next/static/chunks/0vx26qacwh5xf.js",revision:null},{url:"/_next/static/chunks/0ufv7dzx5ijec.css",revision:null},{url:"/_next/static/chunks/0qcuk8gbfcs7j.js",revision:null},{url:"/_next/static/chunks/0o909b3a7hzgj.js",revision:null},{url:"/_next/static/chunks/0m92yv3a2mly3.js",revision:null},{url:"/_next/static/chunks/0kynwtoqacxu4.css",revision:null},{url:"/_next/static/chunks/0jnbpe2v3z72t.js",revision:null},{url:"/_next/static/chunks/0igxb13l6tn56.js",revision:null},{url:"/_next/static/chunks/0hz225ns437_9.js",revision:null},{url:"/_next/static/chunks/0h7a1mncz9olw.js",revision:null},{url:"/_next/static/chunks/0gnarpl73z2it.js",revision:null},{url:"/_next/static/chunks/0fp9mcown-pu5.js",revision:null},{url:"/_next/static/chunks/0f51mh-z3rrub.js",revision:null},{url:"/_next/static/chunks/0e45iojb1unzj.js",revision:null},{url:"/_next/static/chunks/0dnwwvwfz01av.js",revision:null},{url:"/_next/static/chunks/0cz1d0mv5g_q7.js",revision:null},{url:"/_next/static/chunks/0akjjasengch0.js",revision:null},{url:"/_next/static/chunks/09j4bh9t_5lml.js",revision:null},{url:"/_next/static/chunks/0878sdx42lwam.js",revision:null},{url:"/_next/static/chunks/04u7m0rn64gau.js",revision:null},{url:"/_next/static/ArWM2LVAieLrPFlAriayS/_ssgManifest.js",revision:null},{url:"/_next/static/ArWM2LVAieLrPFlAriayS/_clientMiddlewareManifest.js",revision:null},{url:"/_next/static/ArWM2LVAieLrPFlAriayS/_buildManifest.js",revision:null},{url:"/nachrichten/sw.js",revision:"827c5d15f8f6816dc0601201afcfd406"},{revision:"02a774b1-dba4-4f2f-96e1-8d8bc3489fa5",url:"/~offline"}];var y={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"serwist",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},F=e=>[y.prefix,e,y.suffix].filter(t=>t&&t.length>0).join("-"),Me=e=>{for(let t of Object.keys(y))e(t)},_={updateDetails:e=>{Me(t=>{let s=e[t];typeof s=="string"&&(y[t]=s)})},getGoogleAnalyticsName:e=>e||F(y.googleAnalytics),getPrecacheName:e=>e||F(y.precache),getPrefix:()=>y.prefix,getRuntimeName:e=>
1e||F(y.runtime),getSuffix:()=>y.suffix},A;function ee(){if(A===void 0){let e=new Response("");if("body"in e)try{new Response(e.body),A=!0}catch{A=!1}A=!1}return A}var Be=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};var Ke=Be,u=class extends Error{details;constructor(e,t){let s=Ke(e,t);super(s),this.name=e,this.details=t}};var te=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");function D(e){return new Promise(t=>setTimeout(t,e))}var V=new Set;function Z(e,t){let s=new URL(e);for(let r of t)s.searchParams.delete(r);return s.href}async function se(e,t,s,r){let a=Z(t.url,s);if(t.url===a)return e.match(t,r);let n={...r,ignoreSearch:!0},i=await e.keys(t,n);for(let o of i)if(a===Z(o.url,s))return e.match(o,r)}var re=class{promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},ae=async()=>{for(let e of V)await e()},We="-precache-",He=async(e,t=We)=>{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=>
1self.caches.delete(r))),s},ne=e=>{self.addEventListener("activate",t=>{t.waitUntil(He(_.getPrecacheName(e)).then(s=>{}))})},ie=()=>{self.addEventListener("activate",()=>self.clients.claim())},L=(e,t)=>{let s=t();return e.waitUntil(s),s};var M=(e,t)=>t.some(s=>e instanceof s),oe,ce;function ze(){return oe||(oe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ge(){return ce||(ce=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var B=new WeakMap,$=new WeakMap,C=new WeakMap;function Qe(e){let t=new Promise((s,r)=>{let a=()=>{e.removeEventListener("success",n),e.removeEventListener("error",i)},n=()=>{s(v(e.result)),a()},i=()=>{r(e.error),a()};e.addEventListener("success",n),e.addEventListener("error",i)});return C.set(t,e),t}function Je(e){if(B.has(e))return;let t=new Promise((s,r)=>{let a=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",i),e.removeEventListener("abort",i)},n=()=>{s(),a()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",n),e.addEventListener("error",i),e.addEventListener("abort",i)});B.set(e,t)}var K={get(e,t,s){if(e instanceof IDBTransaction){if(t==="done")return B.get(e);if(t==="store")return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return v(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 de(e){K=e(K)}function Xe(e){return Ge().includes(e)?function(...t){return e.apply(W(this),t),v(this.request)}:function(...t){return v(e.apply(W(this),t))}}function Ye(e){return typeof e=="function"?Xe(e):(e instanceof IDBTransaction&&Je(e),M(e,ze())?new Proxy(e,K):e)}function v(e){if(e instanceof IDBRequest)return Qe(e);if($.has(e))return $.get(e);let t=Ye(e);return t!==e&&($.set(e,t),C.set(t,e)),t}var W=e=>C.get(e);function T(e,t,{blocked:s,upgrade:r,blocking:a,terminated:n}={}){let i=indexedDB.open(e,t),o=v(i);return r&&i.addEventListener("upgradeneeded",c=>{r(v(i.result),c.oldVersion,c.newVersion,v(i.transaction),c)}),s&&i.addEventListener("blocked",c=>s(c.oldVersion,c.newVersion,c)),o.then(c=>{n&&c.addEventListener("close",()=>n()),a&&c.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),o}function pe(e,{blocked:t}={}){let s=indexedDB.deleteDatabase(e);return t&&s.addEventListener("blocked",r=>t(r.oldVersion,r)),v(s).then(()=>{})}var Ze=["get","getKey","getAll","getAllKeys","count"],et=["put","add","delete","clear"],j=new Map;function le(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(j.get(t))return j.get(t);let s=t.replace(/FromIndex$/,""),r=t!==s,a=et.includes(s);if(!(s in(r?IDBIndex:IDBObjectStore).prototype)||!(a||Ze.includes(s)))return;let n=async function(i,...o){let c=this.transaction(i,a?"readwrite":"readonly"),l=c.store;return r&&(l=l.index(o.shift())),(await Promise.all([l[s](...o),a&&c.done]))[0]};return j.set(t,n),n}de(e=>({...e,get:(t,s,r)=>le(t,s)||e.get(t,s,r),has:(t,s)=>!!le(t,s)||e.has(t,s)}));var tt=["continue","continuePrimaryKey","advance"],ue={},H=new WeakMap,ge=new WeakMap,st={get(e,t){if(!tt.includes(t))return e[t];let s=ue[t];return s||(s=ue[t]=function(...r){H.set(this,ge.get(this)[t](...r))}),s}};async function*rt(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let s=new Proxy(t,st);for(ge.set(s,t),C.set(s,W(t));t;)yield s,t=await(H.get(s)||t.continue()),H.delete(s)}function he(e,t){return t===Symbol.asyncIterator&&M(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&M(e,[IDBIndex,IDBObjectStore])}de(e=>({...e,get(t,s,r){return he(t,s)?rt:e.get(t,s,r)},has(t,s){return he(t,s)||e.has(t,s)}}));var ye=async(e,t)=>{let s=null;if(e.url&&(s=new URL(e.url).origin),s!==self.location.origin)throw new u("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,i=ee()?r.body:await r.blob();return new Response(i,n)},_e=()=>{self.__WB_DISABLE_DEV_LOGS=!0},fe=3,at="serwist-background-sync",N="requests",k="queueName",nt=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,k,IDBKeyRange.only(e));return t||[]}async getEntryCountByQueueName(e){return(await this.getDb()).countFromIndex(N,k,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(k).openCursor(e,t))?.value}async getDb(){return this._db||(this._db=await T(at,fe,{upgrade:this._upgradeDb})),this._db}_upgradeDb(e,t){t>0&&t<fe&&e.objectStoreNames.contains(N)&&e.deleteObjectStore(N),e.createObjectStore(N,{autoIncrement:!0,keyPath:"id"}).createIndex(k,k,{unique:!1})}},Ne=class{_queueName;_queueDb;constructor(e){this._queueName=e,this._queueDb=new nt}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}},it=["method","referrer","referrerPolicy","mode","credentials","cache","redirect","integrity","keepalive"],Q=class G{_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 it)t[r]!==void 0&&(s[r]=t[r]);return new G(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 G(this.toObject())}},me="serwist-background-sync",ot=1440*7,z=new Set,we=e=>{let t={request:new Q(e.requestData).toRequest(),timestamp:e.timestamp};return e.metadata&&(t.metadata=e.metadata),t},Ee=class{_name;_onSync;_maxRetentionTime;_queueStore;_forceSyncFallback;_syncInProgress=!1;_requestsAddedDuringSync=!1;constructor(e,{forceSyncFallback:t,onSync:s,maxRetentionTime:r}={}){if(z.has(e))throw new u("duplicate-queue-name",{name:e});z.add(e),this._name=e,this._onSync=s||this.replayRequests,this._maxRetentionTime=r||ot,this._forceSyncFallback=!!t,this._queueStore=new Ne(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(we(r))}return s}async size(){return await this._queueStore.size()}async _addRequest({request:e,metadata:t,timestamp:s=Date.now()},r){let a={requestData:(await Q.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):we(s)}}async replayRequests(){let e;for(;e=await this.shiftRequest();)try{await fetch(e.request.clone())}catch{throw await this.unshiftRequest(e),new u("queue-replay-failed",{name:this._name})}}async registerSync(){if("sync"in self.registration&&!this._forceSyncFallback)try{await self.registration.sync.register(`${me}:${this._name}`)}catch{}}_addSyncListener(){"sync"in self.registration&&!this._forceSyncFallback?self.addEventListener("sync",e=>{if(e.tag===`${me}:${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 z}},ve=class{_queue;constructor(e,t){this._queue=new Ee(e,t)}async fetchDidFail({request:e}){await this._queue.pushRequest({request:e})}},J={cacheWillUpdate:async({response:e})=>e.status===200||e.status===0?e:null};function O(e){return typeof e=="string"?new Request(e):e}var xe=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 re,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=O(e),r=await this.getPreloadResponse();if(r)return r;let a=this.hasCallback("fetchDidFail")?s.clone():null;try{for(let i of this.iterateCallbacks("requestWillFetch"))s=await i({request:s.clone(),event:t})}catch(i){if(i instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}let n=s.clone();try{let i;i=await fetch(s,s.mode==="navigate"?void 0:this._strategy.fetchOptions);for(let o of this.iterateCallbacks("fetchDidSucceed"))i=await o({event:t,request:n,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:n.clone()}),i}}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=O(e),s,{cacheName:r,matchOptions:a}=this._strategy,n=await this.getCacheKey(t,"read"),i={...a,cacheName:r};s=await caches.match(n,i);for(let o of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await o({cacheName:r,matchOptions:a,cachedResponse:s,request:n,event:this.event})||void 0;return s}async cachePut(e,t){let s=O(e);await D(0);let r=await this.getCacheKey(s,"write");if(!t)throw new u("cache-put-with-no-response",{url:te(r.url)});let a=await this._ensureResponseSafeToCache(t);if(!a)return!1;let{cacheName:n,matchOptions:i}=this._strategy,o=await self.caches.open(n),c=this.hasCallback("cacheDidUpdate"),l=c?await se(o,r.clone(),["__WB_REVISION__"],i):null;try{await o.put(r,c?a.clone():a)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ae(),h}for(let h of this.iterateCallbacks("cacheDidUpdate"))await h({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=O(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}},b=class{cacheName;plugins;fetchOptions;matchOptions;constructor(e={}
1){this.cacheName=_.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 xe(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 u("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(i){i instanceof Error&&(n=i)}if(await t.runCallbacks("handlerDidComplete",{event:r,request:s,response:a,error:n}),t.destroy(),n)throw n}};var g=class extends b{_networkTimeoutSeconds;constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(J),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let s=[],r=[],a;if(this._networkTimeoutSeconds){let{id:o,promise:c}=this._getTimeoutPromise({request:e,logs:s,handler:t});a=o,r.push(c)}let n=this._getNetworkPromise({timeoutId:a,request:e,logs:s,handler:t});r.push(n);let i=await t.waitUntil((async()=>await t.waitUntil(Promise.race(r))||await n)());if(!i)throw new u("no-response",{url:e.url});return i}_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(i){i instanceof Error&&(a=i)}return e&&clearTimeout(e),(a||!n)&&(n=await r.cacheMatch(t)),n}},be=class extends b{_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=D(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 u("no-response",{url:e.url,error:s});return r}};var S=e=>e&&typeof e=="object"?e:{handle:e},p=class{handler;match;method;catchHandler;constructor(e,t,s="GET"){this.handler=S(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=S(e)}},Re=class q extends b{_fallbackToNetwork;static defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:t}){return!t||t.status>=400?null:t}};static copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:t}){return t.redirected?await ye(t):t}};constructor(t={}){t.cacheName=_.getPrecacheName(t.cacheName),super(t),this._fallbackToNetwork=t.fallbackToNetwork!==!1,this.plugins.push(q.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,i=t.integrity,o=!i||i===n;if(r=await s.fetch(new Request(t,{integrity:t.mode!=="no-cors"?i||n:void 0})),n&&o&&t.mode!=="no-cors"){this._useDefaultCacheabilityPluginIfNeeded();let c=await s.cachePut(t,r.clone())}}else throw new u("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 u("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!==q.copyRedirectedCacheableResponsesPlugin&&(a===q.defaultPrecacheCacheabilityPlugin&&(t=r),a.cacheWillUpdate&&s++);s===0?this.plugins.push(q.defaultPrecacheCacheabilityPlugin):s>1&&t!==null&&this.plugins.splice(t,1)}},Ae=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))}},De=()=>!!self.registration?.navigationPreload,ke=e=>{De()&&self.addEventListener("activate",t=>{t.waitUntil(self.registration.navigationPreload.enable().then(()=>{e&&self.registration.navigationPreload.setHeaderValue(e)}))})};var ct=(e,t=[])=>{for(let s of[...e.searchParams.keys()])t.some(r=>r.test(s))&&e.searchParams.delete(s);return e};function*qe(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 i=ct(n,s);if(yield i.href,t&&i.pathname.endsWith("/")){let o=new URL(i.href);o.pathname+=t,yield o.href}if(r){let o=new URL(i.href);o.pathname+=".html",yield o.href}if(a){let o=a({url:n});for(let c of o)yield c.href}}var Se=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)}},Ce=e=>{_.updateDetails(e)},lt="__WB_REVISION__",Te=e=>{if(!e)throw new u("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 u("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(lt,t),{cacheKey:r.href,url:a.href}},Oe=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 p(a,t,s)}if(e instanceof RegExp)return new Se(e,t,s);if(typeof e=="function")return new p(e,t,s);if(e instanceof p)return e;throw new u("unsupported-route-type",{moduleName:"serwist",funcName:"parseRoute",paramName:"capture"})};var Pe=async(e,t,s)=>{let r=t.map((i,o)=>({index:o,item:i})),a=async i=>{let o=[];for(;;){let c=r.pop();if(!c)return i(o);let l=await s(c.item);o.push({result:l,index:c.index})}},n=Array.from({length:e},()=>new Promise(a));return(await Promise.all(n)).flat().sort((i,o)=>i.index<o.index?-1:1).map(i=>i.result)};var ms=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var ut="serwist-expiration",U="cache-entries",Ie=e=>{let t=new URL(e,location.href);return t.hash="",t.href},ht=class{_cacheName;_db=null;constructor(e){this._cacheName=e}_getId(e){return`${this._cacheName}|${Ie(e)}`}_upgradeDb(e){let t=e.createObjectStore(U,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&pe(this._cacheName)}async setTimestamp(e,t){e=Ie(e);let s={id:this._getId(e),cacheName:this._cacheName,url:e,timestamp:t},r=(await this.getDb()).transaction(U,"readwrite",{durability:"relaxed"});await r.store.put(s),await r.done}async getTimestamp(e){return(await(await this.getDb()).get(U,this._getId(e)))?.timestamp}async expireEntries(e,t){let s=await(await this.getDb()).transaction(U,"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 T(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}},dt=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 ht(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)}},pt=e=>{V.add(e)},d=class{_config;_cacheExpirations;constructor(e={}){this._config=e,this._cacheExpirations=new Map,this._config.maxAgeFrom||(this._config.maxAgeFrom="last-fetched"),this._config.purgeOnQuotaError&&pt(()=>
1this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===_.getRuntimeName())throw new u("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(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),i=this._config.maxAgeFrom==="last-used",o=(async()=>{i&&await n.updateTimestamp(s.url),await n.expireEntries()})();try{e.waitUntil(o)}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}},gt="serwist-google-analytics",ft=2880,mt=/^\/(\w+\/)?collect/,wt=e=>async({queue:t})=>{let s;for(;s=await t.shiftRequest();){let{request:r,timestamp:a}=s,n=new URL(r.url);try{let i=r.method==="POST"?new URLSearchParams(await r.clone().text()):n.searchParams,o=a-(Number(i.get("qt"))||0),c=Date.now()-o;if(i.set("qt",String(c)),e.parameterOverrides)for(let l of Object.keys(e.parameterOverrides)){let h=e.parameterOverrides[l];i.set(l,h)}typeof e.hitFilter=="function"&&e.hitFilter.call(null,i),await fetch(new Request(n.origin+n.pathname,{body:i.toString(),method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"text/plain"}}))}catch(i){throw await t.unshiftRequest(s),i}}},yt=e=>{let t=({url:r})=>r.hostname==="www.google-analytics.com"&&mt.test(r.pathname),s=new be({plugins:[e]});return[new p(t,s,"GET"),new p(t,s,"POST")]},_t=e=>{let t=({url:s})=>s.hostname==="www.google-analytics.com"&&s.pathname==="/analytics.js";return new p(t,new g({cacheName:e}),"GET")},Nt=e=>{let t=({url:s})=>s.hostname==="www.googletagmanager.com"&&s.pathname==="/gtag/js";return new p(t,new g({cacheName:e}),"GET")},Et=e=>{let t=({url:s})=>s.hostname==="www.googletagmanager.com"&&s.pathname==="/gtm.js";return new p(t,new g({cacheName:e}),"GET")},Fe=({serwist:e,cacheName:t,...s})=>{let r=_.getGoogleAnalyticsName(t),a=new ve(gt,{maxRetentionTime:ft,onSync:wt(s)}),n=[Et(r),_t(r),Nt(r),...yt(a)];for(let i of n)e.registerRoute(i)},vt=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 X=class extends b{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 u("no-response",{url:e.url,error:a});return r}};var R=class extends b{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(J)}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(i){i instanceof Error&&(n=i)}if(!a)throw new u("no-response",{url:e.url,error:n});return a}},xt=class extends p{constructor(e,t){let s=({request:r})=>{let a=e.getUrlsToPrecacheKeys();for(let n of qe(r.url,t)){let i=a.get(n);if(i)return{cacheKey:i,integrity:e.getIntegrityForPrecacheKey(i)}}};super(s,e.precacheStrategy)}},bt=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}},Rt=(e,t={})=>{let{cacheName:s,plugins:r=[],fetchOptions:a,matchOptions:n,fallbackToNetwork:i,directoryIndex:o,ignoreURLParametersMatching:c,cleanURLs:l,urlManipulation:h,cleanupOutdatedCaches:m,concurrency:x=10,navigateFallback:P,navigateFallbackAllowlist:E,navigateFallbackDenylist:f}=t??{};return{precacheStrategyOptions:{cacheName:_.getPrecacheName(s),plugins:[...r,new bt({precacheController:e})],fetchOptions:a,matchOptions:n,fallbackToNetwork:i},precacheRouteOptions:{directoryIndex:o,ignoreURLParametersMatching:c,cleanURLs:l,urlManipulation:h},precacheMiscOptions:{cleanupOutdatedCaches:m,concurrency:x,navigateFallback:P,navigateFallbackAllowlist:E,navigateFallbackDenylist:f}}},Ve=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:i=!1,runtimeCaching:o,offlineAnalyticsConfig:c,disableDevLogs:l=!1,fallbacks:h,requestRules:m}={}){let{precacheStrategyOptions:x,precacheRouteOptions:P,precacheMiscOptions:E}=Rt(this,t);if(this._concurrentPrecaching=E.concurrency,this._precacheStrategy=new Re(x),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&&ke(),n!==void 0&&Ce({prefix:n}
1),s?self.skipWaiting():self.addEventListener("message",f=>{f.data&&f.data.type==="SKIP_WAITING"&&self.skipWaiting()}),i&&ie(),e&&e.length>0&&this.addToPrecacheList(e),E.cleanupOutdatedCaches&&ne(x.cacheName),this.registerRoute(new xt(this,P)),E.navigateFallback&&this.registerRoute(new Ae(this.createHandlerBoundToUrl(E.navigateFallback),{allowlist:E.navigateFallbackAllowlist,denylist:E.navigateFallbackDenylist})),c!==void 0&&(typeof c=="boolean"?c&&Fe({serwist:this}):Fe({...c,serwist:this})),o!==void 0){if(h!==void 0){let f=new vt({fallbackUrls:h.entries,serwist:this});o.forEach(I=>{I.handler instanceof b&&!I.handler.plugins.some($e=>"handlerDidError"in $e)&&I.handler.plugins.push(f)})}for(let f of o)this.registerCapture(f.matcher,f.handler,f.method)}l&&_e()}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}=Te(s),n=typeof s!="string"&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==r)throw new u("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 u("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),L(e,async()=>{let t=new Oe;this.precacheStrategy.plugins.push(t),await Pe(this._concurrentPrecaching,Array.from(this._urlsToCacheKeys.entries()),async([a,n])=>{let i=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(a),c=new Request(a,{integrity:i,cache:o,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 L(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,S(e))}setCatchHandler(e){this._catchHandler=S(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 u("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 u("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 u("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}),i=n?.handler,o=[],c=e.method;if(!i&&this._defaultHandlerMap.has(c)&&(i=this._defaultHandlerMap.get(c)),!i)return;let l;try{l=i.handle({url:s,request:e,event:t,params:a})}catch(m){l=Promise.reject(m)}let h=n?.catchHandler;return l instanceof Promise&&(this._catchHandler||h)&&(l=l.catch(async m=>{if(h)try{return await h.handle({url:s,request:e,event:t,params:a})}catch(x){x instanceof Error&&(m=x)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw m})),l}findMatchingRoute({url:e,sameOrigin:t,request:s,event:r}){let a=this._routes.get(s.method)||[];for(let n of a){let i,o=n.match({url:e,sameOrigin:t,request:s,event:r});if(o)return i=o,(Array.isArray(i)&&i.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(i=void 0),{route:n,params:i}}return{}}};var Y={rscPrefetch:"pages-rsc-prefetch",rsc:"pages-rsc",html:"pages"},Le=[{matcher:/https:\/\/.*ngp\.zdf\.de\/.*\.(json)/,handler:new X({cacheName:"session-configs",plugins:[new d({maxEntries:10,maxAgeSeconds:1800,maxAgeFrom:"last-used"})]})},{matcher:/https:\/\/.*ngp\.zdf\.de\/.*\.(js|css|woff)/,handler:new R({cacheName:"player-assets",plugins:[new d({maxEntries:10,maxAgeSeconds:720*60*60})]})},{matcher:/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,handler:new R({cacheName:"static-font-assets",plugins:[new d({maxEntries:8,maxAgeSeconds:10080*60,maxAgeFrom:"last-used"})]})},{matcher:({request:e})=>e.headers.get("sec-fetch-dest")==="image"||/\.(?:png|jpg|jpeg|webp|gif|svg)$/i.test(e.url)||/^https:\/\/www\.zdf\.de\/assets(?:\/|$)/.test(e.url),handler:new R({cacheName:"image-assets",plugins:[new d({maxEntries:128,maxAgeSeconds:720*60*60,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/static.+\.js$/i,handler:new X({cacheName:"next-static-js-assets",plugins:[new d({maxEntries:64,maxAgeSeconds:720*60*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:js)$/i,handler:new R({cacheName:"static-js-assets",plugins:[new d({maxEntries:48,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:css|less)$/i,handler:new R({cacheName:"static-style-assets",plugins:[new d({maxEntries:32,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/data\/.+\/.+\.json$/i,handler:new g({cacheName:"next-data",plugins:[new d({maxEntries:32,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:json|xml|csv)$/i,handler:new g({cacheName:"static-data-assets",plugins:[new d({maxEntries:64,maxAgeSeconds:1440*60,maxAgeFrom:"last-used"})]})},{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 g({cacheName:Y.rscPrefetch,plugins:[new d({maxEntries:32,maxAgeSeconds:1440*60})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:s})=>e.headers.get("RSC")==="1"&&s&&!t.startsWith("/api/"),handler:new g({cacheName:Y.rsc,plugins:[new d({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 g({cacheName:Y.html,plugins:[new d({maxEntries:32,maxAgeSeconds:1440*60})]})},{matcher:({url:{pathname:e},sameOrigin:t})=>t&&!e.startsWith("/api/"),handler:new g({cacheName:"others",plugins:[new d({maxEntries:32,maxAgeSeconds:1440*60})]})}];var At=new Ve({precacheEntries:w,skipWaiting:!0,clientsClaim:!0,navigationPreload:!0,disableDevLogs:!0,runtimeCaching:Le,fallbacks:{entries:[{url:"/~offline",matcher({request:e}){return e.destination==="document"}}]}});self.addEventListener("push",e=>{try{if(e.data){let t=e.data.json(),{data:{image:s,channel:r,time:a,url:n}}=t,i=new Date(a*1e3).toISOString(),o=new URL(n);o.searchParams.append("at_medium","push"),o.searchParams.append("at_campaign","ZDFHeute"),o.searchParams.append("at_push_channel",r),o.searchParams.append("at_notification_title",t.title),o.searchParams.append("at_notification_text",t.body),o.searchParams.append("at_push_time",i),e.waitUntil(self.registration.showNotification(t.title,{icon:"data:image/png;base64,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",image:s,body:t.body,data:{url:o.toString()}}))}}catch{return}});self.addEventListener("notificationclick",e=>{let{notification:t}=e;t.close(),t.data?.url&&e.waitUntil(self.clients.openWindow(t.data.url))});At.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.