"use strict";varprecacheConfig=[["/react-cookie-consent/index.html","350bb8b1dcec07d1af3a0f946bb0c402"],["/react-cookie-consent/static/css/main.c17080f1.css","302476b8b379a677f648aa1e48918ebd"],["/react-cookie-consent/static/js/main.e35795b3.js","361305b465a17751784842fa8eb5ba5f"],["/react-cookie-consent/static/media/logo.5d5d9eef.svg","5d5d9eefa31e5e13a6610d9fa7a283bb"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){varn=newURL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){returnt.redirected?("body"int?Promise.resolve(t.body):t.blob()).then(function(e){returnnewResponse(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,r){vara=newURL(e);returnr&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;varn=newURL(t).pathname;returne.some(function(e){returnn.match(e)})},stripIgnoredUrlParameters=function(e,n){vart=newURL(e);returnt.hash="",t.search=t.search.slice(1).split("&").map(function(e){returne.split("=")}).filter(function(t){returnn.every(function(e){return!e.test(t[0])})}).map(function(e){returne.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=newMap(precacheConfig.map(function(e){vart=e[0],n=e[1],r=newURL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));functionsetOfCachedUrls(e){returne.keys().then(function(e){returne.map(function(e){returne.url})}).then(function(e){returnnewSet(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(r){returnsetOfCachedUrls(r).then(function(n){returnPromise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){vare=newRequest(t,{credentials:"same-origin"});returnfetch(e).then(function(e){if(!e.ok)thrownewError("Request for "+t+" returned a response with status "+e.status);returncleanResponse(e).then(function(e){returnr.put(t,e)})})}}))})}).then(function(){returnself.skipWaiting()}))}),self.addEventListener("activate",function(e){varn=newSet(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){returnt.keys().then(function(e){returnPromise.all(e.map(function(e){if(!n.has(e.url))returnt.delete(e)}))})}).then(function(){returnself.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){vare,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),r="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),e=urlsToCacheKeys.has(n));vara="/react-cookie-consent/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=newURL(a,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){returne.match(urlsToCacheKeys.get(n)).then(function(e){if(e)returne;throwError("The cached response that was expected is missing.")})}).catch(function(e){returnconsole.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}});