diff --git a/.env.example b/.env.example index b687b00d..77816041 100644 --- a/.env.example +++ b/.env.example @@ -1,10 +1,12 @@ -STORYBLOK_PUBLIC_ACCESS_TOKEN="" -STORYBLOK_PREVIEW_ACCESS_TOKEN="" -SHOPIFY_STOREFRONT_ACCESS_TOKEN="" -SHOPIFY_STORE_DOMAIN="" -NEXT_PUBLIC_HUSBPOT_PORTAL_ID="" -NEXT_HUSBPOT_FORM_ID="" -HUBSPOT_ACCESS_TOKEN="" DRAFT_MODE_TOKEN="" +GSAP_AUTH_TOKEN="" +HUBSPOT_ACCESS_TOKEN="" +NEXT_HUSBPOT_FORM_ID="" NEXT_PUBLIC_BASE_URL="" -GSAP_AUTH_TOKEN="" \ No newline at end of file +NEXT_PUBLIC_HUSBPOT_PORTAL_ID="" +SHOPIFY_STOREFRONT_ACCESS_TOKEN="" +SHOPIFY_STORE_DOMAIN="" +STORYBLOK_PREVIEW_ACCESS_TOKEN="" +STORYBLOK_PUBLIC_ACCESS_TOKEN="" +NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID="" +NEXT_PUBLIC_GOOGLE_ANALYTICS="" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af2198..c37466e2 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx lint-staged +npx lint-staged \ No newline at end of file diff --git a/app/(pages)/layout.js b/app/(pages)/layout.js index b453827a..61fe9b2a 100644 --- a/app/(pages)/layout.js +++ b/app/(pages)/layout.js @@ -1,30 +1,80 @@ +import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google' import { Debug } from 'components/debug' -import { GoogleTagManager } from 'components/google-tag-manager' import { GSAP } from 'components/gsap' import { RealViewport } from 'components/real-viewport' import { StyleVariables } from 'libs/style-variables' import { colors, themes } from 'styles/config' +import AppData from '../../package.json' + import 'styles/global.scss' import { fonts } from '../fonts' +const APP_NAME = AppData.name +const APP_DEFAULT_TITLE = 'Satūs' +const APP_TITLE_TEMPLATE = '%s - Satūs' +const APP_DESCRIPTION = AppData.description +const APP_BASE_URL = process.env.NEXT_PUBLIC_BASE_URL + +const GTM_ID = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID || false +const GA_ID = process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS || false + export const metadata = { - title: 'Satūs', - description: 'Next.js starter', + metadataBase: + process.env.NODE_ENV === 'dev' + ? new URL(`http://localhost:${process.env.PORT || 3000}`) + : new URL(APP_BASE_URL), + applicationName: APP_NAME, + title: { + default: APP_DEFAULT_TITLE, + template: APP_TITLE_TEMPLATE, + }, + description: APP_DESCRIPTION, + appleWebApp: { + capable: true, + statusBarStyle: 'default', + title: APP_DEFAULT_TITLE, + }, + formatDetection: { + telephone: false, + }, + openGraph: { + type: 'website', + siteName: APP_NAME, + title: { + default: APP_DEFAULT_TITLE, + template: APP_TITLE_TEMPLATE, + }, + description: APP_DESCRIPTION, + url: APP_BASE_URL, + }, + twitter: { + card: 'summary_large_image', + title: { + default: APP_DEFAULT_TITLE, + template: APP_TITLE_TEMPLATE, + }, + description: APP_DESCRIPTION, + }, +} + +export const viewport = { + themeColor: '#e30613', } export default async function Layout({ children }) { return ( - + + {GTM_ID && } {children} - + {GA_ID && } ) } diff --git a/app/(pages)/storyblok/page.js b/app/(pages)/storyblok/page.js index c50bf409..f39dca61 100644 --- a/app/(pages)/storyblok/page.js +++ b/app/(pages)/storyblok/page.js @@ -36,7 +36,6 @@ export default async function Storyblok() { } // https://nextjs.org/docs/app/api-reference/functions/generate-metadata - export async function generateMetadata({}) { const isDraftMode = draftMode().isEnabled || process.env.NODE_ENV === 'development' diff --git a/app/apple-icon.js b/app/apple-icon.js new file mode 100644 index 00000000..31ec632d --- /dev/null +++ b/app/apple-icon.js @@ -0,0 +1,38 @@ +import { ImageResponse } from 'next/og' +import { themes } from 'styles/config.js' + +// Image metadata +export const size = { + width: 192, + height: 192, +} +export const contentType = 'image/png' + +// Image generation +// function can receive {params} prop to access dynamic route params +export default function Icon() { + return new ImageResponse( + ( +
+ DE +
+ ), + // ImageResponse options + { + // For convenience, we can re-use the exported icons size metadata + // config to also set the ImageResponse's width and height. + ...size, + }, + ) +} diff --git a/app/apple-icon.png b/app/apple-icon.png deleted file mode 100644 index 9486a18b..00000000 Binary files a/app/apple-icon.png and /dev/null differ diff --git a/app/favicon.ico b/app/favicon.ico deleted file mode 100644 index 304aca44..00000000 Binary files a/app/favicon.ico and /dev/null differ diff --git a/app/fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf b/app/fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf new file mode 100644 index 00000000..81ca3dcc Binary files /dev/null and b/app/fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf differ diff --git a/app/icon.js b/app/icon.js new file mode 100644 index 00000000..c41c235e --- /dev/null +++ b/app/icon.js @@ -0,0 +1,38 @@ +import { ImageResponse } from 'next/og' +import { themes } from 'styles/config.js' + +// Image metadata +export const size = { + width: 512, + height: 512, +} +export const contentType = 'image/png' + +// Image generation +// function can receive {params} prop to access dynamic route params +export default function Icon() { + return new ImageResponse( + ( +
+ DE +
+ ), + // ImageResponse options + { + // For convenience, we can re-use the exported icons size metadata + // config to also set the ImageResponse's width and height. + ...size, + }, + ) +} diff --git a/app/icon.png b/app/icon.png deleted file mode 100644 index 898c42b0..00000000 Binary files a/app/icon.png and /dev/null differ diff --git a/app/manifest.js b/app/manifest.js new file mode 100644 index 00000000..07998759 --- /dev/null +++ b/app/manifest.js @@ -0,0 +1,32 @@ +import { themes } from 'styles/config.js' +import AppData from '../package.json' + +export default function manifest() { + return { + name: AppData.name, + short_name: AppData.name, + description: AppData.description, + start_url: '/', + display: 'standalone', + background_color: themes.red.primary, + theme_color: themes.red.contrast, + icons: [ + { + src: '/icon', + sizes: 'any', + type: 'image/png', + }, + { + src: '/icon', + sizes: '512x512', + type: 'image/png', + }, + { + src: '/apple-icon', + sizes: '192x192', + type: 'image/png', + purpose: 'any', + }, + ], + } +} diff --git a/app/opengraph-image.js b/app/opengraph-image.js new file mode 100644 index 00000000..773cf757 --- /dev/null +++ b/app/opengraph-image.js @@ -0,0 +1,101 @@ +import { ImageResponse } from 'next/og' +import { themes } from 'styles/config.js' +import AppData from '../package.json' + +export const runtime = 'edge' + +// Image metadata +export const alt = AppData.name +export const size = { + width: 1200, + height: 630, +} + +export const contentType = 'image/png' + +const getFont = async () => { + const res = await fetch( + new URL('fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf', import.meta.url), + ) + return await res.arrayBuffer() +} + +// Image generation +export default async function Image() { + // Font + const ibmPlexMono = getFont() + + return new ImageResponse( + ( + // ImageResponse JSX element +
+
+
+
darkroom.engineering
+
+
+ {AppData.name} +
+
+
where things get developed
+
hi@darkroom.engineering
+
+
+
+ ), + // ImageResponse options + { + ...size, + fonts: [ + { + name: 'IBM_Plex_Mono', + data: await ibmPlexMono, + style: 'normal', + weight: 400, + }, + ], + }, + ) +} diff --git a/app/opengraph-image.png b/app/opengraph-image.png deleted file mode 100644 index fc298075..00000000 Binary files a/app/opengraph-image.png and /dev/null differ diff --git a/app/robots.js b/app/robots.js index 84f5c446..06ef34bb 100644 --- a/app/robots.js +++ b/app/robots.js @@ -3,7 +3,7 @@ export default function robots() { rules: { userAgent: '*', allow: '/', - disallow: ['/private/', '/debug/'], + disallow: '/private/', }, sitemap: `${process.env.NEXT_PUBLIC_BASE_URL}/sitemap.xml`, } diff --git a/app/sitemap.js b/app/sitemap.js new file mode 100644 index 00000000..43413fd4 --- /dev/null +++ b/app/sitemap.js @@ -0,0 +1,34 @@ +import fs from 'fs' +import path from 'path' + +export default function sitemap() { + const appDirectory = path.join(process.cwd(), 'app/(pages)') + const folders = fs + .readdirSync(appDirectory, { withFileTypes: true }) + .filter((dirent) => dirent.isDirectory()) + .map((dirent) => dirent.name) + .filter((folderName) => !/^\(.*\)$/.test(folderName)) + + const sitemapArray = [ + { + url: `${process.env.NEXT_PUBLIC_BASE_URL}`, + lastModified: new Date(), + changeFrequency: 'yearly', + priority: 1, + }, + ...folders + .filter((folder) => { + return fs.existsSync(path.join(appDirectory, folder, 'page.js')) + }) + .map((folder) => { + return { + url: `${process.env.NEXT_PUBLIC_BASE_URL}/${folder}`, + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 0.8, + } + }), + ] + + return sitemapArray +} diff --git a/app/sw.js b/app/sw.js new file mode 100644 index 00000000..adf9948e --- /dev/null +++ b/app/sw.js @@ -0,0 +1,12 @@ +import { defaultCache } from '@serwist/next/worker' +import { Serwist } from 'serwist' + +const serwist = new Serwist({ + precacheEntries: self.__SW_MANIFEST, + skipWaiting: true, + clientsClaim: true, + navigationPreload: true, + runtimeCaching: defaultCache, +}) + +serwist.addEventListeners() diff --git a/app/twitter-image.js b/app/twitter-image.js new file mode 100644 index 00000000..86f442ca --- /dev/null +++ b/app/twitter-image.js @@ -0,0 +1,15 @@ +import AppData from '../package.json' +import Image from './opengraph-image' + +export const runtime = 'edge' + +// Image metadata +export const alt = AppData.name +export const size = { + width: 1200, + height: 630, +} + +export const contentType = 'image/png' + +export default Image diff --git a/components/google-tag-manager/index.js b/components/google-tag-manager/index.js deleted file mode 100644 index 41f4bb94..00000000 --- a/components/google-tag-manager/index.js +++ /dev/null @@ -1,39 +0,0 @@ -'use client' - -/* eslint-disable no-unused-vars */ - -import Script from 'next/script' - -const GTM_ID = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID || '' -const GA_ID = process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS || '' - -const pageview = (url) => { - window.dataLayer.push({ - event: 'pageview', - page: url, - }) -} - -export function GoogleTagManager() { - if (process.env.NODE_ENV === 'development') return null - - return ( - <> - + + + + +
+ + \ No newline at end of file diff --git a/public/images/placeholder.webp b/public/images/placeholder.webp deleted file mode 100644 index e4738346..00000000 Binary files a/public/images/placeholder.webp and /dev/null differ diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index 6a082d57..00000000 --- a/public/robots.txt +++ /dev/null @@ -1,9 +0,0 @@ -# * -User-agent: * -Allow: / - -# Host -Host: https://satus.darkroom.engineering - -# Sitemaps -Sitemap: https://satus.darkroom.engineering/sitemap.xml diff --git a/public/sitemap-0.xml b/public/sitemap-0.xml deleted file mode 100644 index 34ca0f50..00000000 --- a/public/sitemap-0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - -https://satus.darkroom.engineering/opengraph-image.png2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/robots.txt2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/apple-icon.png2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/storyblok2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/home2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/debug/orchestra2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/icon.png2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/hubspot2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/r3f2024-04-17T08:42:07.287Zdaily0.7 -https://satus.darkroom.engineering/storyblok/lorem-ipsum2024-04-17T08:42:07.287Zdaily0.7 - \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml deleted file mode 100644 index f262ebf8..00000000 --- a/public/sitemap.xml +++ /dev/null @@ -1,4 +0,0 @@ - - -https://satus.darkroom.engineering/sitemap-0.xml - \ No newline at end of file diff --git a/public/sw.js b/public/sw.js new file mode 100644 index 00000000..32bba9e8 --- /dev/null +++ b/public/sw.js @@ -0,0 +1,2 @@ +!function(){"use strict";let e,t,a,s,r,i;let n={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"serwist",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},c=e=>[n.prefix,e,n.suffix].filter(e=>e&&e.length>0).join("-"),l=e=>e||c(n.precache),o=e=>e||c(n.runtime),h=(e,...t)=>{let a=e;return t.length>0&&(a+=` :: ${JSON.stringify(t)}`),a};class u extends Error{details;constructor(e,t){super(h(e,t)),this.name=e,this.details=t}}let d=new Set;class f{promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function m(e,t){let a=new URL(e);for(let e of t)a.searchParams.delete(e);return a.href}async function w(e,t,a,s){let r=m(t.url,a);if(t.url===r)return e.match(t,s);let i={...s,ignoreSearch:!0};for(let n of(await e.keys(t,i)))if(r===m(n.url,a))return e.match(n,s)}let p=async()=>{for(let e of d)await e()},g=e=>new URL(String(e),location.href).href.replace(RegExp(`^${location.origin}`),"");function y(e){return"string"==typeof e?new Request(e):e}class _{event;request;url;params;_cacheKeys={};_strategy;_handlerDeferred;_extendLifetimePromises;_plugins;_pluginStateMap;constructor(e,t){for(let a of(this.event=t.event,this.request=t.request,t.url&&(this.url=t.url,this.params=t.params),this._strategy=e,this._handlerDeferred=new f,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map,this._plugins))this._pluginStateMap.set(a,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:t}=this,a=y(e);if("navigate"===a.mode&&t instanceof FetchEvent&&t.preloadResponse){let e=await t.preloadResponse;if(e)return e}let s=this.hasCallback("fetchDidFail")?a.clone():null;try{for(let e of this.iterateCallbacks("requestWillFetch"))a=await e({request:a.clone(),event:t})}catch(e){if(e instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}let r=a.clone();try{let e;for(let s of(e=await fetch(a,"navigate"===a.mode?void 0:this._strategy.fetchOptions),this.iterateCallbacks("fetchDidSucceed")))e=await s({event:t,request:r,response:e});return e}catch(e){throw s&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:s.clone(),request:r.clone()}),e}}async fetchAndCachePut(e){let t=await this.fetch(e),a=t.clone();return this.waitUntil(this.cachePut(e,a)),t}async cacheMatch(e){let t;let a=y(e),{cacheName:s,matchOptions:r}=this._strategy,i=await this.getCacheKey(a,"read"),n={...r,cacheName:s};for(let e of(t=await caches.match(i,n),this.iterateCallbacks("cachedResponseWillBeUsed")))t=await e({cacheName:s,matchOptions:r,cachedResponse:t,request:i,event:this.event})||void 0;return t}async cachePut(e,t){let a=y(e);await new Promise(e=>setTimeout(e,0));let s=await this.getCacheKey(a,"write");if(!t)throw new u("cache-put-with-no-response",{url:g(s.url)});let r=await this._ensureResponseSafeToCache(t);if(!r)return!1;let{cacheName:i,matchOptions:n}=this._strategy,c=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),o=l?await w(c,s.clone(),["__WB_REVISION__"],n):null;try{await c.put(s,l?r.clone():r)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await p(),e}for(let e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:i,oldResponse:o,newResponse:r.clone(),request:s,event:this.event});return!0}async getCacheKey(e,t){let a=`${e.url} | ${t}`;if(!this._cacheKeys[a]){let s=e;for(let e of this.iterateCallbacks("cacheKeyWillBeUsed"))s=y(await e({mode:t,request:s,event:this.event,params:this.params}));this._cacheKeys[a]=s}return this._cacheKeys[a]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let a of this.iterateCallbacks(e))await a(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if("function"==typeof t[e]){let a=this._pluginStateMap.get(t),s=s=>{let r={...s,state:a};return t[e](r)};yield s}}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 _ensureResponseSafeToCache(e){let t=e,a=!1;for(let e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,a=!0,!t)break;return!a&&t&&200!==t.status&&(t=void 0),t}}class b{cacheName;plugins;fetchOptions;matchOptions;constructor(e={}){this.cacheName=o(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,a="string"==typeof e.request?new Request(e.request):e.request,s=new _(this,e.url?{event:t,request:a,url:e.url,params:e.params}:{event:t,request:a}),r=this._getResponse(s,a,t),i=this._awaitComplete(r,s,a,t);return[r,i]}async _getResponse(e,t,a){let s;await e.runCallbacks("handlerWillStart",{event:a,request:t});try{if(s=await this._handle(t,e),void 0===s||"error"===s.type)throw new u("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(let i of e.iterateCallbacks("handlerDidError"))if(void 0!==(s=await i({error:r,event:a,request:t})))break}if(!s)throw r}for(let r of e.iterateCallbacks("handlerWillRespond"))s=await r({event:a,request:t,response:s});return s}async _awaitComplete(e,t,a,s){let r,i;try{r=await e}catch(e){}try{await t.runCallbacks("handlerDidRespond",{event:s,request:a,response:r}),await t.doneWaiting()}catch(e){e instanceof Error&&(i=e)}if(await t.runCallbacks("handlerDidComplete",{event:s,request:a,response:r,error:i}),t.destroy(),i)throw i}}let x={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};class v extends b{_networkTimeoutSeconds;constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(x),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let a;let s=[],r=[];if(this._networkTimeoutSeconds){let{id:i,promise:n}=this._getTimeoutPromise({request:e,logs:s,handler:t});a=i,r.push(n)}let i=this._getNetworkPromise({timeoutId:a,request:e,logs:s,handler:t});r.push(i);let n=await t.waitUntil((async()=>await t.waitUntil(Promise.race(r))||await i)());if(!n)throw new u("no-response",{url:e.url});return n}_getTimeoutPromise({request:e,logs:t,handler:a}){let s;return{promise:new Promise(t=>{s=setTimeout(async()=>{t(await a.cacheMatch(e))},1e3*this._networkTimeoutSeconds)}),id:s}}async _getNetworkPromise({timeoutId:e,request:t,logs:a,handler:s}){let r,i;try{i=await s.fetchAndCachePut(t)}catch(e){e instanceof Error&&(r=e)}return e&&clearTimeout(e),(r||!i)&&(i=await s.cacheMatch(t)),i}}let E=(e,t)=>t.some(t=>e instanceof t),R=new WeakMap,q=new WeakMap,S=new WeakMap,C={get(e,t,a){if(e instanceof IDBTransaction){if("done"===t)return R.get(e);if("store"===t)return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return D(e[t])},set:(e,t,a)=>(e[t]=a,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function D(e){var s;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,a)=>{let s=()=>{e.removeEventListener("success",r),e.removeEventListener("error",i)},r=()=>{t(D(e.result)),s()},i=()=>{a(e.error),s()};e.addEventListener("success",r),e.addEventListener("error",i)});return S.set(t,e),t}(e);if(q.has(e))return q.get(e);let r="function"==typeof(s=e)?(a||(a=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(s)?function(...e){return s.apply(P(this),e),D(this.request)}:function(...e){return D(s.apply(P(this),e))}:(s instanceof IDBTransaction&&function(e){if(R.has(e))return;let t=new Promise((t,a)=>{let s=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",i),e.removeEventListener("abort",i)},r=()=>{t(),s()},i=()=>{a(e.error||new DOMException("AbortError","AbortError")),s()};e.addEventListener("complete",r),e.addEventListener("error",i),e.addEventListener("abort",i)});R.set(e,t)}(s),E(s,t||(t=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(s,C):s;return r!==e&&(q.set(e,r),S.set(r,e)),r}let P=e=>S.get(e);function k(e,t,{blocked:a,upgrade:s,blocking:r,terminated:i}={}){let n=indexedDB.open(e,t),c=D(n);return s&&n.addEventListener("upgradeneeded",e=>{s(D(n.result),e.oldVersion,e.newVersion,D(n.transaction),e)}),a&&n.addEventListener("blocked",e=>a(e.oldVersion,e.newVersion,e)),c.then(e=>{i&&e.addEventListener("close",()=>i()),r&&e.addEventListener("versionchange",e=>r(e.oldVersion,e.newVersion,e))}).catch(()=>{}),c}let N=["get","getKey","getAll","getAllKeys","count"],T=["put","add","delete","clear"],A=new Map;function I(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(A.get(t))return A.get(t);let a=t.replace(/FromIndex$/,""),s=t!==a,r=T.includes(a);if(!(a in(s?IDBIndex:IDBObjectStore).prototype)||!(r||N.includes(a)))return;let i=async function(e,...t){let i=this.transaction(e,r?"readwrite":"readonly"),n=i.store;return s&&(n=n.index(t.shift())),(await Promise.all([n[a](...t),r&&i.done]))[0]};return A.set(t,i),i}C={...r=C,get:(e,t,a)=>I(e,t)||r.get(e,t,a),has:(e,t)=>!!I(e,t)||r.has(e,t)};let U=["continue","continuePrimaryKey","advance"],L={},F=new WeakMap,M=new WeakMap,W={get(e,t){if(!U.includes(t))return e[t];let a=L[t];return a||(a=L[t]=function(...e){F.set(this,M.get(this)[t](...e))}),a}};async function*K(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let a=new Proxy(t,W);for(M.set(a,t),S.set(a,P(t));t;)yield a,t=await (F.get(a)||t.continue()),F.delete(a)}function O(e,t){return t===Symbol.asyncIterator&&E(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&E(e,[IDBIndex,IDBObjectStore])}C={...i=C,get:(e,t,a)=>O(e,t)?K:i.get(e,t,a),has:(e,t)=>O(e,t)||i.has(e,t)};let B=async(t,a)=>{let s=null;if(t.url&&(s=new URL(t.url).origin),s!==self.location.origin)throw new u("cross-origin-copy-response",{origin:s});let r=t.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=a?a(i):i,c=!function(){if(void 0===e){let t=new Response("");if("body"in t)try{new Response(t.body),e=!0}catch(t){e=!1}e=!1}return e}()?await r.blob():r.body;return new Response(c,n)},j=e=>{d.add(e)};class $ extends b{_fallbackToNetwork;static defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e};static copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await B(e):e};constructor(e={}){e.cacheName=l(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push($.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){return await t.cacheMatch(e)||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let a;let s=t.params||{};if(this._fallbackToNetwork){let r=s.integrity,i=e.integrity,n=!i||i===r;a=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?i||r:void 0})),r&&n&&"no-cors"!==e.mode&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,a.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return a}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();let a=await t.fetch(e);if(!await t.cachePut(e,a.clone()))throw new u("bad-precaching-response",{url:e.url,status:a.status});return a}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(let[a,s]of this.plugins.entries())s!==$.copyRedirectedCacheableResponsesPlugin&&(s===$.defaultPrecacheCacheabilityPlugin&&(e=a),s.cacheWillUpdate&&t++);0===t?this.plugins.push($.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}"undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);let H="cache-entries",V=e=>{let t=new URL(e,location.href);return t.hash="",t.href};class Q{_cacheName;_db=null;constructor(e){this._cacheName=e}_getId(e){return`${this._cacheName}|${V(e)}`}_upgradeDb(e){let t=e.createObjectStore(H,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){let a=indexedDB.deleteDatabase(e);t&&a.addEventListener("blocked",e=>t(e.oldVersion,e)),D(a).then(()=>void 0)}(this._cacheName)}async setTimestamp(e,t){e=V(e);let a={id:this._getId(e),cacheName:this._cacheName,url:e,timestamp:t},s=(await this.getDb()).transaction(H,"readwrite",{durability:"relaxed"});await s.store.put(a),await s.done}async getTimestamp(e){let t=await this.getDb(),a=await t.get(H,this._getId(e));return a?.timestamp}async expireEntries(e,t){let a=await this.getDb(),s=await a.transaction(H,"readwrite").store.index("timestamp").openCursor(null,"prev"),r=[],i=0;for(;s;){let a=s.value;a.cacheName===this._cacheName&&(e&&a.timestamp=t?(s.delete(),r.push(a.url)):i++),s=await s.continue()}return r}async getDb(){return this._db||(this._db=await k("serwist-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class G{_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 Q(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;let e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),a=await self.caches.open(this._cacheName);for(let e of t)await a.delete(e,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),a=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||tthis.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===o())throw new u("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new G(e,this._config),this._cacheExpirations.set(e,t)),t}cachedResponseWillBeUsed({event:e,cacheName:t,request:a,cachedResponse:s}){if(!s)return null;let r=this._isResponseDateFresh(s),i=this._getCacheExpiration(t),n="last-used"===this._config.maxAgeFrom,c=(async()=>{n&&await i.updateTimestamp(a.url),await i.expireEntries()})();try{e.waitUntil(c)}catch(e){}return r?s:null}_isResponseDateFresh(e){if("last-used"===this._config.maxAgeFrom)return!0;let t=Date.now();if(!this._config.maxAgeSeconds)return!0;let a=this._getDateHeaderTimestamp(e);return null===a||a>=t-1e3*this._config.maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;let t=new Date(e.headers.get("date")).getTime();return Number.isNaN(t)?null:t}async cacheDidUpdate({cacheName:e,request:t}){let a=this._getCacheExpiration(e);await a.updateTimestamp(t.url),await a.expireEntries()}async deleteCacheAndMetadata(){for(let[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}let J=(e,t,a)=>{let s,r;let i=e.size;if(a&&a>i||t&&t<0)throw new u("range-not-satisfiable",{size:i,end:a,start:t});return void 0!==t&&void 0!==a?(s=t,r=a+1):void 0!==t&&void 0===a?(s=t,r=i):void 0!==a&&void 0===t&&(s=i-a,r=i),{start:s,end:r}},Y=e=>{let t=e.trim().toLowerCase();if(!t.startsWith("bytes="))throw new u("unit-must-be-bytes",{normalizedRangeHeader:t});if(t.includes(","))throw new u("single-range-only",{normalizedRangeHeader:t});let a=/(\d*)-(\d*)/.exec(t);if(!a||!(a[1]||a[2]))throw new u("invalid-range-values",{normalizedRangeHeader:t});return{start:""===a[1]?void 0:Number(a[1]),end:""===a[2]?void 0:Number(a[2])}},X=async(e,t)=>{try{if(206===t.status)return t;let a=e.headers.get("range");if(!a)throw new u("no-range-header");let s=Y(a),r=await t.blob(),i=J(r,s.start,s.end),n=r.slice(i.start,i.end),c=n.size,l=new Response(n,{status:206,statusText:"Partial Content",headers:t.headers});return l.headers.set("Content-Length",String(c)),l.headers.set("Content-Range",`bytes ${i.start}-${i.end-1}/${r.size}`),l}catch(e){return new Response("",{status:416,statusText:"Range Not Satisfiable"})}};class Z{cachedResponseWillBeUsed=async({request:e,cachedResponse:t})=>t&&e.headers.has("range")?await X(e,t):t}class ee extends b{async _handle(e,t){let a,s=await t.cacheMatch(e);if(!s)try{s=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(a=e)}if(!s)throw new u("no-response",{url:e.url,error:a});return s}}class et extends b{constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(x)}async _handle(e,t){let a;let s=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(s);let r=await t.cacheMatch(e);if(r);else try{r=await s}catch(e){e instanceof Error&&(a=e)}if(!r)throw new u("no-response",{url:e.url,error:a});return r}}let ea=[{matcher:/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,handler:new ee({cacheName:"google-fonts-webfonts",plugins:[new z({maxEntries:4,maxAgeSeconds:31536e3,maxAgeFrom:"last-used"})]})},{matcher:/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,handler:new et({cacheName:"google-fonts-stylesheets",plugins:[new z({maxEntries:4,maxAgeSeconds:604800,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,handler:new et({cacheName:"static-font-assets",plugins:[new z({maxEntries:4,maxAgeSeconds:604800,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,handler:new et({cacheName:"static-image-assets",plugins:[new z({maxEntries:64,maxAgeSeconds:2592e3,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/static.+\.js$/i,handler:new ee({cacheName:"next-static-js-assets",plugins:[new z({maxEntries:64,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/image\?url=.+$/i,handler:new et({cacheName:"next-image",plugins:[new z({maxEntries:64,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:mp3|wav|ogg)$/i,handler:new ee({cacheName:"static-audio-assets",plugins:[new z({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"}),new Z]})},{matcher:/\.(?:mp4|webm)$/i,handler:new ee({cacheName:"static-video-assets",plugins:[new z({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"}),new Z]})},{matcher:/\.(?:js)$/i,handler:new et({cacheName:"static-js-assets",plugins:[new z({maxEntries:48,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:css|less)$/i,handler:new et({cacheName:"static-style-assets",plugins:[new z({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\/_next\/data\/.+\/.+\.json$/i,handler:new v({cacheName:"next-data",plugins:[new z({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:/\.(?:json|xml|csv)$/i,handler:new v({cacheName:"static-data-assets",plugins:[new z({maxEntries:32,maxAgeSeconds:86400,maxAgeFrom:"last-used"})]})},{matcher:({sameOrigin:e,url:{pathname:t}})=>!(!e||t.startsWith("/api/auth/callback"))&&!!t.startsWith("/api/"),method:"GET",handler:new v({cacheName:"apis",plugins:[new z({maxEntries:16,maxAgeSeconds:86400,maxAgeFrom:"last-used"})],networkTimeoutSeconds:10})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&a&&!t.startsWith("/api/"),handler:new v({cacheName:"pages-rsc-prefetch",plugins:[new z({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>"1"===e.headers.get("RSC")&&a&&!t.startsWith("/api/"),handler:new v({cacheName:"pages-rsc",plugins:[new z({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({request:e,url:{pathname:t},sameOrigin:a})=>e.headers.get("Content-Type")?.includes("text/html")&&a&&!t.startsWith("/api/"),handler:new v({cacheName:"pages",plugins:[new z({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({url:{pathname:e},sameOrigin:t})=>t&&!e.startsWith("/api/"),handler:new v({cacheName:"others",plugins:[new z({maxEntries:32,maxAgeSeconds:86400})]})},{matcher:({sameOrigin:e})=>!e,handler:new v({cacheName:"cross-origin",plugins:[new z({maxEntries:32,maxAgeSeconds:3600})],networkTimeoutSeconds:10})}],es={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"serwist",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},er=e=>[es.prefix,e,es.suffix].filter(e=>e&&e.length>0).join("-"),ei=e=>{for(let t of Object.keys(es))e(t)},en=e=>{ei(t=>{let a=e[t];"string"==typeof a&&(es[t]=a)})},ec=e=>e||er(es.googleAnalytics),el=e=>e||er(es.precache),eo=e=>e||er(es.runtime),eh=(e,...t)=>{let a=e;return t.length>0&&(a+=` :: ${JSON.stringify(t)}`),a};class eu extends Error{details;constructor(e,t){super(eh(e,t)),this.name=e,this.details=t}}let ed=e=>new URL(String(e),location.href).href.replace(RegExp(`^${location.origin}`),"");class ef{promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function em(e,t){let a=new URL(e);for(let e of t)a.searchParams.delete(e);return a.href}async function ew(e,t,a,s){let r=em(t.url,a);if(t.url===r)return e.match(t,s);let i={...s,ignoreSearch:!0};for(let n of(await e.keys(t,i)))if(r===em(n.url,a))return e.match(n,s)}let ep=new Set,eg=async()=>{for(let e of ep)await e()};function ey(e){return new Promise(t=>setTimeout(t,e))}let e_=(e,t)=>{let a=t();return e.waitUntil(a),a};function eb(e){return"string"==typeof e?new Request(e):e}class ex{event;request;url;params;_cacheKeys={};_strategy;_handlerDeferred;_extendLifetimePromises;_plugins;_pluginStateMap;constructor(e,t){for(let a of(this.event=t.event,this.request=t.request,t.url&&(this.url=t.url,this.params=t.params),this._strategy=e,this._handlerDeferred=new ef,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map,this._plugins))this._pluginStateMap.set(a,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:t}=this,a=eb(e);if("navigate"===a.mode&&t instanceof FetchEvent&&t.preloadResponse){let e=await t.preloadResponse;if(e)return e}let s=this.hasCallback("fetchDidFail")?a.clone():null;try{for(let e of this.iterateCallbacks("requestWillFetch"))a=await e({request:a.clone(),event:t})}catch(e){if(e instanceof Error)throw new eu("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}let r=a.clone();try{let e;for(let s of(e=await fetch(a,"navigate"===a.mode?void 0:this._strategy.fetchOptions),this.iterateCallbacks("fetchDidSucceed")))e=await s({event:t,request:r,response:e});return e}catch(e){throw s&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:s.clone(),request:r.clone()}),e}}async fetchAndCachePut(e){let t=await this.fetch(e),a=t.clone();return this.waitUntil(this.cachePut(e,a)),t}async cacheMatch(e){let t;let a=eb(e),{cacheName:s,matchOptions:r}=this._strategy,i=await this.getCacheKey(a,"read"),n={...r,cacheName:s};for(let e of(t=await caches.match(i,n),this.iterateCallbacks("cachedResponseWillBeUsed")))t=await e({cacheName:s,matchOptions:r,cachedResponse:t,request:i,event:this.event})||void 0;return t}async cachePut(e,t){let a=eb(e);await ey(0);let s=await this.getCacheKey(a,"write");if(!t)throw new eu("cache-put-with-no-response",{url:ed(s.url)});let r=await this._ensureResponseSafeToCache(t);if(!r)return!1;let{cacheName:i,matchOptions:n}=this._strategy,c=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),o=l?await ew(c,s.clone(),["__WB_REVISION__"],n):null;try{await c.put(s,l?r.clone():r)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await eg(),e}for(let e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:i,oldResponse:o,newResponse:r.clone(),request:s,event:this.event});return!0}async getCacheKey(e,t){let a=`${e.url} | ${t}`;if(!this._cacheKeys[a]){let s=e;for(let e of this.iterateCallbacks("cacheKeyWillBeUsed"))s=eb(await e({mode:t,request:s,event:this.event,params:this.params}));this._cacheKeys[a]=s}return this._cacheKeys[a]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let a of this.iterateCallbacks(e))await a(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if("function"==typeof t[e]){let a=this._pluginStateMap.get(t),s=s=>{let r={...s,state:a};return t[e](r)};yield s}}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 _ensureResponseSafeToCache(e){let t=e,a=!1;for(let e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,a=!0,!t)break;return!a&&t&&200!==t.status&&(t=void 0),t}}class ev{cacheName;plugins;fetchOptions;matchOptions;constructor(e={}){this.cacheName=eo(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,a="string"==typeof e.request?new Request(e.request):e.request,s=new ex(this,e.url?{event:t,request:a,url:e.url,params:e.params}:{event:t,request:a}),r=this._getResponse(s,a,t),i=this._awaitComplete(r,s,a,t);return[r,i]}async _getResponse(e,t,a){let s;await e.runCallbacks("handlerWillStart",{event:a,request:t});try{if(s=await this._handle(t,e),void 0===s||"error"===s.type)throw new eu("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(let i of e.iterateCallbacks("handlerDidError"))if(void 0!==(s=await i({error:r,event:a,request:t})))break}if(!s)throw r}for(let r of e.iterateCallbacks("handlerWillRespond"))s=await r({event:a,request:t,response:s});return s}async _awaitComplete(e,t,a,s){let r,i;try{r=await e}catch(e){}try{await t.runCallbacks("handlerDidRespond",{event:s,request:a,response:r}),await t.doneWaiting()}catch(e){e instanceof Error&&(i=e)}if(await t.runCallbacks("handlerDidComplete",{event:s,request:a,response:r,error:i}),t.destroy(),i)throw i}}let eE={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};class eR extends ev{_networkTimeoutSeconds;constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(eE),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let a;let s=[],r=[];if(this._networkTimeoutSeconds){let{id:i,promise:n}=this._getTimeoutPromise({request:e,logs:s,handler:t});a=i,r.push(n)}let i=this._getNetworkPromise({timeoutId:a,request:e,logs:s,handler:t});r.push(i);let n=await t.waitUntil((async()=>await t.waitUntil(Promise.race(r))||await i)());if(!n)throw new eu("no-response",{url:e.url});return n}_getTimeoutPromise({request:e,logs:t,handler:a}){let s;return{promise:new Promise(t=>{s=setTimeout(async()=>{t(await a.cacheMatch(e))},1e3*this._networkTimeoutSeconds)}),id:s}}async _getNetworkPromise({timeoutId:e,request:t,logs:a,handler:s}){let r,i;try{i=await s.fetchAndCachePut(t)}catch(e){e instanceof Error&&(r=e)}return e&&clearTimeout(e),(r||!i)&&(i=await s.cacheMatch(t)),i}}class eq extends ev{_networkTimeoutSeconds;constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let a,s;try{let s=[t.fetch(e)];if(this._networkTimeoutSeconds){let e=ey(1e3*this._networkTimeoutSeconds);s.push(e)}if(!(a=await Promise.race(s)))throw Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(e){e instanceof Error&&(s=e)}if(!a)throw new eu("no-response",{url:e.url,error:s});return a}}let eS=e=>e&&"object"==typeof e?e:{handle:e};class eC{handler;match;method;catchHandler;constructor(e,t,a="GET"){this.handler=eS(t),this.match=e,this.method=a}setCatchHandler(e){this.catchHandler=eS(e)}}let eD="requests",eP="queueName";class ek{_db=null;async addEntry(e){let t=(await this.getDb()).transaction(eD,"readwrite",{durability:"relaxed"});await t.store.add(e),await t.done}async getFirstEntryId(){let e=await this.getDb(),t=await e.transaction(eD).store.openCursor();return t?.value.id}async getAllEntriesByQueueName(e){let t=await this.getDb();return await t.getAllFromIndex(eD,eP,IDBKeyRange.only(e))||[]}async getEntryCountByQueueName(e){return(await this.getDb()).countFromIndex(eD,eP,IDBKeyRange.only(e))}async deleteEntry(e){let t=await this.getDb();await t.delete(eD,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){let a=await this.getDb(),s=await a.transaction(eD).store.index(eP).openCursor(e,t);return s?.value}async getDb(){return this._db||(this._db=await k("serwist-background-sync",3,{upgrade:this._upgradeDb})),this._db}_upgradeDb(e,t){t>0&&t<3&&e.objectStoreNames.contains(eD)&&e.deleteObjectStore(eD),e.createObjectStore(eD,{autoIncrement:!0,keyPath:"id"}).createIndex(eP,eP,{unique:!1})}}class eN{_queueName;_queueDb;constructor(e){this._queueName=e,this._queueDb=new ek}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}}let eT=["method","referrer","referrerPolicy","mode","credentials","cache","redirect","integrity","keepalive"];class eA{_requestData;static async fromRequest(e){let t={url:e.url,headers:{}};for(let a of("GET"!==e.method&&(t.body=await e.clone().arrayBuffer()),e.headers.forEach((e,a)=>{t.headers[a]=e}),eT))void 0!==e[a]&&(t[a]=e[a]);return new eA(t)}constructor(e){"navigate"===e.mode&&(e.mode="same-origin"),this._requestData=e}toObject(){let e=Object.assign({},this._requestData);return e.headers=Object.assign({},this._requestData.headers),e.body&&(e.body=e.body.slice(0)),e}toRequest(){return new Request(this._requestData.url,this._requestData)}clone(){return new eA(this.toObject())}}let eI="serwist-background-sync",eU=new Set,eL=e=>{let t={request:new eA(e.requestData).toRequest(),timestamp:e.timestamp};return e.metadata&&(t.metadata=e.metadata),t};class eF{_name;_onSync;_maxRetentionTime;_queueStore;_forceSyncFallback;_syncInProgress=!1;_requestsAddedDuringSync=!1;constructor(e,{forceSyncFallback:t,onSync:a,maxRetentionTime:s}={}){if(eU.has(e))throw new eu("duplicate-queue-name",{name:e});eU.add(e),this._name=e,this._onSync=a||this.replayRequests,this._maxRetentionTime=s||10080,this._forceSyncFallback=!!t,this._queueStore=new eN(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(),a=[];for(let s of e){let e=6e4*this._maxRetentionTime;t-s.timestamp>e?await this._queueStore.deleteEntry(s.id):a.push(eL(s))}return a}async size(){return await this._queueStore.size()}async _addRequest({request:e,metadata:t,timestamp:a=Date.now()},s){let r={requestData:(await eA.fromRequest(e.clone())).toObject(),timestamp:a};switch(t&&(r.metadata=t),s){case"push":await this._queueStore.pushEntry(r);break;case"unshift":await this._queueStore.unshiftEntry(r)}this._syncInProgress?this._requestsAddedDuringSync=!0:await this.registerSync()}async _removeRequest(e){let t;let a=Date.now();switch(e){case"pop":t=await this._queueStore.popEntry();break;case"shift":t=await this._queueStore.shiftEntry()}if(t){let s=6e4*this._maxRetentionTime;return a-t.timestamp>s?this._removeRequest(e):eL(t)}}async replayRequests(){let e;for(;e=await this.shiftRequest();)try{await fetch(e.request.clone())}catch(t){throw await this.unshiftRequest(e),new eu("queue-replay-failed",{name:this._name})}}async registerSync(){if("sync"in self.registration&&!this._forceSyncFallback)try{await self.registration.sync.register(`${eI}:${this._name}`)}catch(e){}}_addSyncListener(){"sync"in self.registration&&!this._forceSyncFallback?self.addEventListener("sync",e=>{if(e.tag===`${eI}:${this._name}`){let t=async()=>{let t;this._syncInProgress=!0;try{await this._onSync({queue:this})}catch(e){if(e instanceof Error)throw e}finally{this._requestsAddedDuringSync&&!(t&&!e.lastChance)&&await this.registerSync(),this._syncInProgress=!1,this._requestsAddedDuringSync=!1}};e.waitUntil(t())}}):this._onSync({queue:this})}static get _queueNames(){return eU}}class eM{_queue;constructor(e,t){this._queue=new eF(e,t)}async fetchDidFail({request:e}){await this._queue.pushRequest({request:e})}}let eW="www.google-analytics.com",eK="www.googletagmanager.com",eO=/^\/(\w+\/)?collect/,eB=e=>async({queue:t})=>{let a;for(;a=await t.shiftRequest();){let{request:s,timestamp:r}=a,i=new URL(s.url);try{let t="POST"===s.method?new URLSearchParams(await s.clone().text()):i.searchParams,a=r-(Number(t.get("qt"))||0),n=Date.now()-a;if(t.set("qt",String(n)),e.parameterOverrides)for(let a of Object.keys(e.parameterOverrides)){let s=e.parameterOverrides[a];t.set(a,s)}"function"==typeof e.hitFilter&&e.hitFilter.call(null,t),await fetch(new Request(i.origin+i.pathname,{body:t.toString(),method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"text/plain"}}))}catch(e){throw await t.unshiftRequest(a),e}}},ej=e=>{let t=({url:e})=>e.hostname===eW&&eO.test(e.pathname),a=new eq({plugins:[e]});return[new eC(t,a,"GET"),new eC(t,a,"POST")]},e$=e=>new eC(({url:e})=>e.hostname===eW&&"/analytics.js"===e.pathname,new eR({cacheName:e}),"GET"),eH=e=>new eC(({url:e})=>e.hostname===eK&&"/gtag/js"===e.pathname,new eR({cacheName:e}),"GET"),eV=e=>new eC(({url:e})=>e.hostname===eK&&"/gtm.js"===e.pathname,new eR({cacheName:e}),"GET"),eQ=({serwist:e,cacheName:t,...a})=>{let s=ec(t),r=new eM("serwist-google-analytics",{maxRetentionTime:2880,onSync:eB(a)});for(let t of[eV(s),e$(s),eH(s),...ej(r)])e.registerRoute(t)};class eG{_fallbackUrls;_serwist;constructor({fallbackUrls:e,serwist:t}){this._fallbackUrls=e,this._serwist=t}async handlerDidError(e){for(let t of this._fallbackUrls)if("string"==typeof t){let e=await this._serwist.matchPrecache(t);if(void 0!==e)return e}else if(t.matcher(e)){let e=await this._serwist.matchPrecache(t.url);if(void 0!==e)return e}}}let ez="-precache-",eJ=async(e,t=ez)=>{let a=(await self.caches.keys()).filter(a=>a.includes(t)&&a.includes(self.registration.scope)&&a!==e);return await Promise.all(a.map(e=>self.caches.delete(e))),a},eY=e=>{self.addEventListener("activate",t=>{t.waitUntil(eJ(el(e)).then(e=>{}))})},eX=()=>{self.addEventListener("activate",()=>self.clients.claim())},eZ=async(e,t)=>{let a=null;if(e.url&&(a=new URL(e.url).origin),a!==self.location.origin)throw new eu("cross-origin-copy-response",{origin:a});let r=e.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=t?t(i):i,c=!function(){if(void 0===s){let e=new Response("");if("body"in e)try{new Response(e.body),s=!0}catch(e){s=!1}s=!1}return s}()?await r.blob():r.body;return new Response(c,n)},e0=()=>{self.__WB_DISABLE_DEV_LOGS=!0},e1=()=>!!self.registration?.navigationPreload,e4=e=>{e1()&&self.addEventListener("activate",t=>{t.waitUntil(self.registration.navigationPreload.enable().then(()=>{e&&self.registration.navigationPreload.setHeaderValue(e)}))})};class e6 extends eC{_allowlist;_denylist;constructor(e,{allowlist:t=[/./],denylist:a=[]}={}){super(e=>this._match(e),e),this._allowlist=t,this._denylist=a}_match({url:e,request:t}){if(t&&"navigate"!==t.mode)return!1;let a=e.pathname+e.search;for(let e of this._denylist)if(e.test(a))return!1;return!!this._allowlist.some(e=>e.test(a))}}class e2 extends eC{constructor(e,t,a){super(({url:t})=>{let a=e.exec(t.href);if(a&&(t.origin===location.origin||0===a.index))return a.slice(1)},t,a)}}let e3=(e,t,a)=>{let s;if("string"==typeof e){let r=new URL(e,location.href);s=new eC(({url:e})=>e.href===r.href,t,a)}else if(e instanceof RegExp)s=new e2(e,t,a);else if("function"==typeof e)s=new eC(e,t,a);else if(e instanceof eC)s=e;else throw new eu("unsupported-route-type",{moduleName:"serwist",funcName:"parseRoute",paramName:"capture"});return s},e8=(e,t=[])=>{for(let a of[...e.searchParams.keys()])t.some(e=>e.test(a))&&e.searchParams.delete(a);return e};class e5 extends eC{constructor(e,t){super(({request:a})=>{let s=e.getUrlsToPrecacheKeys();for(let r of function*(e,{directoryIndex:t="index.html",ignoreURLParametersMatching:a=[/^utm_/,/^fbclid$/],cleanURLs:s=!0,urlManipulation:r}={}){let i=new URL(e,location.href);i.hash="",yield i.href;let n=e8(i,a);if(yield n.href,t&&n.pathname.endsWith("/")){let e=new URL(n.href);e.pathname+=t,yield e.href}if(s){let e=new URL(n.href);e.pathname+=".html",yield e.href}if(r)for(let e of r({url:i}))yield e.href}(a.url,t)){let t=s.get(r);if(t){let a=e.getIntegrityForPrecacheKey(t);return{cacheKey:t,integrity:a}}}},e.precacheStrategy)}}class e9 extends ev{_fallbackToNetwork;static defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e};static copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await eZ(e):e};constructor(e={}){e.cacheName=el(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(e9.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){return await t.cacheMatch(e)||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let a;let s=t.params||{};if(this._fallbackToNetwork){let r=s.integrity,i=e.integrity,n=!i||i===r;a=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?i||r:void 0})),r&&n&&"no-cors"!==e.mode&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,a.clone()))}else throw new eu("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return a}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();let a=await t.fetch(e);if(!await t.cachePut(e,a.clone()))throw new eu("bad-precaching-response",{url:e.url,status:a.status});return a}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(let[a,s]of this.plugins.entries())s!==e9.copyRedirectedCacheableResponsesPlugin&&(s===e9.defaultPrecacheCacheabilityPlugin&&(e=a),s.cacheWillUpdate&&t++);0===t?this.plugins.push(e9.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}let e7=e=>{en(e)},te=async(e,t,a)=>{let s=t.map((e,t)=>({index:t,item:e})),r=async e=>{let t=[];for(;;){let r=s.pop();if(!r)return e(t);let i=await a(r.item);t.push({result:i,index:r.index})}},i=Array.from({length:e},()=>new Promise(r));return(await Promise.all(i)).flat().sort((e,t)=>e.indexe.result)};class tt{_precacheController;constructor({precacheController:e}){this._precacheController=e}cacheKeyWillBeUsed=async({request:e,params:t})=>{let a=t?.cacheKey||this._precacheController.getPrecacheKeyForUrl(e.url);return a?new Request(a,{headers:e.headers}):e}}class ta{updatedURLs=[];notUpdatedURLs=[];handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)};cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:a})=>{if("install"===e.type&&t?.originalRequest&&t.originalRequest instanceof Request){let e=t.originalRequest.url;a?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return a}}let ts=e=>{if(!e)throw new eu("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){let t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}let{revision:t,url:a}=e;if(!a)throw new eu("add-to-cache-list-unexpected-type",{entry:e});if(!t){let e=new URL(a,location.href);return{cacheKey:e.href,url:e.href}}let s=new URL(a,location.href),r=new URL(a,location.href);return s.searchParams.set("__WB_REVISION__",t),{cacheKey:s.href,url:r.href}};class tr{_urlsToCacheKeys=new Map;_urlsToCacheModes=new Map;_cacheKeysToIntegrities=new Map;_concurrentPrecaching;_precacheStrategy;_routes;_defaultHandlerMap;_catchHandler;constructor({precacheEntries:e,precacheOptions:t,cleanupOutdatedCaches:a,navigateFallback:s,navigateFallbackAllowlist:r,navigateFallbackDenylist:i,plugins:n=[],fallbackToNetwork:c=!0,concurrentPrecaching:l=1,skipWaiting:o=!1,importScripts:h,navigationPreload:u=!1,cacheId:d,clientsClaim:f=!1,runtimeCaching:m,offlineAnalyticsConfig:w,disableDevLogs:p=!1,fallbacks:g}={}){if(this._concurrentPrecaching=l,this._precacheStrategy=new e9({cacheName:el(t?.cacheName),plugins:[...n,new tt({precacheController:this})],fallbackToNetwork:c}),this._routes=new Map,this._defaultHandlerMap=new Map,this.handleInstall=this.handleInstall.bind(this),this.handleActivate=this.handleActivate.bind(this),this.handleFetch=this.handleFetch.bind(this),this.handleCache=this.handleCache.bind(this),h&&h.length>0&&self.importScripts(...h),u&&e4(),void 0!==d&&e7({prefix:d}),o?self.skipWaiting():self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),f&&eX(),this.registerRoute(new e5(this,t)),e&&e.length>0&&this.addToPrecacheList(e),a&&eY(t?.cacheName),s&&this.registerRoute(new e6(this.createHandlerBoundToUrl(s),{allowlist:r,denylist:i})),void 0!==w&&("boolean"==typeof w?w&&eQ({serwist:this}):eQ({...w,serwist:this})),void 0!==m){if(void 0!==g){let e=new eG({fallbackUrls:g.entries,serwist:this});m.forEach(t=>{t.handler instanceof ev&&!t.handler.plugins.some(e=>"handlerDidError"in e)&&t.handler.plugins.push(e)})}for(let e of m)this.registerCapture(e.matcher,e.handler,e.method)}p&&e0()}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 a of e){"string"==typeof a?t.push(a):a&&!a.integrity&&void 0===a.revision&&t.push(a.url);let{cacheKey:e,url:s}=ts(a),r="string"!=typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(s)&&this._urlsToCacheKeys.get(s)!==e)throw new eu("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(s),secondEntry:e});if("string"!=typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==a.integrity)throw new eu("add-to-cache-list-conflicting-integrities",{url:s});this._cacheKeysToIntegrities.set(e,a.integrity)}this._urlsToCacheKeys.set(s,e),this._urlsToCacheModes.set(s,r),t.length>0&&console.warn(`Serwist is precaching URLs without revision info: ${t.join(", ")} +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`)}}handleInstall(e){return e_(e,async()=>{let t=new ta;this.precacheStrategy.plugins.push(t),await te(this._concurrentPrecaching,Array.from(this._urlsToCacheKeys.entries()),async([t,a])=>{let s=this._cacheKeysToIntegrities.get(a),r=this._urlsToCacheModes.get(t),i=new Request(t,{integrity:s,cache:r,credentials:"same-origin"});await Promise.all(this.precacheStrategy.handleAll({event:e,request:i,url:new URL(i.url),params:{cacheKey:a}}))});let{updatedURLs:a,notUpdatedURLs:s}=t;return{updatedURLs:a,notUpdatedURLs:s}})}handleActivate(e){return e_(e,async()=>{let e=await self.caches.open(this.precacheStrategy.cacheName),t=await e.keys(),a=new Set(this._urlsToCacheKeys.values()),s=[];for(let r of t)a.has(r.url)||(await e.delete(r),s.push(r.url));return{deletedCacheRequests:s}})}handleFetch(e){let{request:t}=e,a=this.handleRequest({request:t,event:e});a&&e.respondWith(a)}handleCache(e){if(e.data&&"CACHE_URLS"===e.data.type){let{payload:t}=e.data,a=Promise.all(t.urlsToCache.map(t=>{let a;return a="string"==typeof t?new Request(t):new Request(...t),this.handleRequest({request:a,event:e})}));e.waitUntil(a),e.ports?.[0]&&a.then(()=>e.ports[0].postMessage(!0))}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,eS(e))}setCatchHandler(e){this._catchHandler=eS(e)}registerCapture(e,t,a){let s=e3(e,t,a);return this.registerRoute(s),s}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 eu("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 eu("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,a=this.getPrecacheKeyForUrl(t);if(a)return(await self.caches.open(this.precacheStrategy.cacheName)).match(a)}createHandlerBoundToUrl(e){let t=this.getPrecacheKeyForUrl(e);if(!t)throw new eu("non-precached-url",{url:e});return a=>(a.request=new Request(e),a.params={cacheKey:t,...a.params},this.precacheStrategy.handle(a))}handleRequest({request:e,event:t}){let a;let s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return;let r=s.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:s}),c=n?.handler,l=e.method;if(!c&&this._defaultHandlerMap.has(l)&&(c=this._defaultHandlerMap.get(l)),!c)return;try{a=c.handle({url:s,request:e,event:t,params:i})}catch(e){a=Promise.reject(e)}let o=n?.catchHandler;return a instanceof Promise&&(this._catchHandler||o)&&(a=a.catch(async a=>{if(o)try{return await o.handle({url:s,request:e,event:t,params:i})}catch(e){e instanceof Error&&(a=e)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw a})),a}findMatchingRoute({url:e,sameOrigin:t,request:a,event:s}){for(let r of this._routes.get(a.method)||[]){let i;let n=r.match({url:e,sameOrigin:t,request:a,event:s});if(n)return Array.isArray(i=n)&&0===i.length?i=void 0:n.constructor===Object&&0===Object.keys(n).length?i=void 0:"boolean"==typeof n&&(i=void 0),{route:r,params:i}}return{}}}new tr({precacheEntries:[{'revision':'055966d7d51944d59a4f11e264ebd4cb','url':'/_next/static/_pQTeG765JYEnog9J4840/_buildManifest.js'},{'revision':'b6652df95db52feb4daf4eca35380933','url':'/_next/static/_pQTeG765JYEnog9J4840/_ssgManifest.js'},{'revision':null,'url':'/_next/static/chunks/1f94eeea-e8ec0fb64a813575.js'},{'revision':null,'url':'/_next/static/chunks/249-05f14d7a998f49db.js'},{'revision':null,'url':'/_next/static/chunks/320.6211eb946b8a47f4.js'},{'revision':null,'url':'/_next/static/chunks/323.4218dabac2e7ece9.js'},{'revision':null,'url':'/_next/static/chunks/362-4eff0290e3bf6198.js'},{'revision':null,'url':'/_next/static/chunks/381-8d3e0bee0b93f808.js'},{'revision':null,'url':'/_next/static/chunks/40-6d14f8827cc2b5d4.js'},{'revision':null,'url':'/_next/static/chunks/405-3c31dd0f62768174.js'},{'revision':null,'url':'/_next/static/chunks/468-fb2d3efb12eaad86.js'},{'revision':null,'url':'/_next/static/chunks/509ab1ef.569f8ae6c5d9d300.js'},{'revision':null,'url':'/_next/static/chunks/558.89e6bee20a3324db.js'},{'revision':null,'url':'/_next/static/chunks/615.6520508377e051f5.js'},{'revision':null,'url':'/_next/static/chunks/793159d7-16a7180ed14ce59e.js'},{'revision':null,'url':'/_next/static/chunks/849-69563cf2325d2b87.js'},{'revision':null,'url':'/_next/static/chunks/873-648b1096bdd0bd9e.js'},{'revision':null,'url':'/_next/static/chunks/895-71ae980201881a3c.js'},{'revision':null,'url':'/_next/static/chunks/94cf3c84-ff5c059de3e887e1.js'},{'revision':null,'url':'/_next/static/chunks/968.22a3106f0da5a6a8.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/home/page-cc486d634913f522.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/hubspot/page-d9ca651142a37919.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/layout-2117cbc1366234fb.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/r3f/page-4230193e57172601.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/shopify/page-bc40eaa8265a2e75.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/storyblok/%5Bslug%5D/page-56ff10d59b4b7414.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/storyblok/page-c288c40c66e34d8d.js'},{'revision':null,'url':'/_next/static/chunks/app/(pages)/template-4a86f640ed0fd9ca.js'},{'revision':null,'url':'/_next/static/chunks/app/_not-found/page-0dfd6762eda3b081.js'},{'revision':null,'url':'/_next/static/chunks/app/debug/layout-303aa2c10ddf03ad.js'},{'revision':null,'url':'/_next/static/chunks/app/debug/orchestra/page-00ac3c729fa8ba51.js'},{'revision':null,'url':'/_next/static/chunks/fbbce377-cc3da5881d1a0315.js'},{'revision':null,'url':'/_next/static/chunks/framework-3604f115e12d558f.js'},{'revision':null,'url':'/_next/static/chunks/main-app-28c05d913cf725e7.js'},{'revision':null,'url':'/_next/static/chunks/main-b44e7376652b812a.js'},{'revision':null,'url':'/_next/static/chunks/pages/_app-4c2a6c06133f1ffb.js'},{'revision':null,'url':'/_next/static/chunks/pages/_error-64e5c6fa0b80230e.js'},{'revision':'79330112775102f91e1010318bae2bd3','url':'/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js'},{'revision':null,'url':'/_next/static/chunks/webpack-e2335765ac2b7d43.js'},{'revision':null,'url':'/_next/static/css/0847daa8068eb623.css'},{'revision':null,'url':'/_next/static/css/15985cab45436ff4.css'},{'revision':null,'url':'/_next/static/css/1604936466bdd436.css'},{'revision':null,'url':'/_next/static/css/c51a91db91b82fc3.css'},{'revision':null,'url':'/_next/static/css/d22d53a8444a47d5.css'},{'revision':null,'url':'/_next/static/css/d7c16d1c77b3229b.css'},{'revision':null,'url':'/_next/static/css/dc5cdc32d421ef51.css'},{'revision':'b030616b10becd6a9d1c93f6a5deed7f','url':'/_next/static/media/49e51380911abed7-s.p.woff2'},{'revision':'6173918d63fc1a11cbfa6225cded29e3','url':'/config/Satus-R3f.json'},{'revision':'7acaee8001995cd8d7496ccae00f23a9','url':'/swe-worker-ab00d3c7d2d59769.js'}],skipWaiting:!0,clientsClaim:!0,navigationPreload:!0,runtimeCaching:ea}).addEventListeners()}(); \ No newline at end of file diff --git a/public/swe-worker-ab00d3c7d2d59769.js b/public/swe-worker-ab00d3c7d2d59769.js new file mode 100644 index 00000000..c5671bed --- /dev/null +++ b/public/swe-worker-ab00d3c7d2d59769.js @@ -0,0 +1 @@ +self.onmessage=async e=>{switch(e.data.type){case"__START_URL_CACHE__":{let t=e.data.url,a=await fetch(t);if(!a.redirected)return(await caches.open("start-url")).put(t,a);return Promise.resolve()}case"__FRONTEND_NAV_CACHE__":{let t=e.data.url,a=await caches.open("pages");if(await a.match(t,{ignoreSearch:!0}))return;let r=await fetch(t);if(!r.ok)return;return a.put(t,r.clone()),Promise.resolve()}default:return Promise.resolve()}}; \ No newline at end of file