if(!self.define){let e,n={};const s=(s,i)=>(s=new URL(s+".js",i).href,n[s]||new Promise(n=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=n,document.head.appendChild(e)}else e=s,importScripts(s),n()}).then(()=>{let e=n[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e}));self.define=(i,r)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(n[l])return;let t={};const o=e=>s(e,l),a={module:{uri:l},exports:t,require:o};n[l]=Promise.all(i.map(e=>a[e]||o(e))).then(e=>(r(...e),t))}}define(["./workbox-a85f4708"],function(e){"use strict";self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),e.precacheAndRoute([{url:"index.html",revision:"12fed0f38d2ef1bea8ba508398dd4f24"},{url:"binnacle-icon.svg",revision:"d946b900583be73bebf7eaa282b4b026"},{url:"assets/workbox-window.prod.es5-Bd17z0YL.js",revision:null},{url:"assets/sk.worker-BkjA9p00.js",revision:null},{url:"assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2",revision:null},{url:"assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2",revision:null},{url:"assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2",revision:null},{url:"assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2",revision:null},{url:"assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2",revision:null},{url:"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",revision:null},{url:"assets/inter-latin-wght-normal-Dx4kXJAl.woff2",revision:null},{url:"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",revision:null},{url:"assets/inter-greek-wght-normal-CkhJZR-_.woff2",revision:null},{url:"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",revision:null},{url:"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",revision:null},{url:"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",revision:null},{url:"assets/index-Djb4rsNY.css",revision:null},{url:"assets/index-D-VwfKcE.js",revision:null},{url:"binnacle-icon.svg",revision:"d946b900583be73bebf7eaa282b4b026"},{url:"manifest.webmanifest",revision:"08464a0863acdeeb8449227eb27917a9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/signalk-binnacle/index.html"))),e.registerRoute(({url:e})=>"https://tiles.openfreemap.org"===e.origin,new e.CacheFirst({cacheName:"binnacle-basemap",plugins:[new e.ExpirationPlugin({maxEntries:4e3,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(({url:e})=>e.pathname.startsWith("/signalk/pmtiles/"),new e.CacheFirst({cacheName:"binnacle-pmtiles",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:200,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[0,200,206]})]}),"GET"),e.registerRoute(({url:e})=>e.hostname.endsWith("open-meteo.com"),new e.NetworkFirst({cacheName:"binnacle-weather",networkTimeoutSeconds:8,plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:21600}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(({url:e})=>e.hostname.endsWith("rainviewer.com")&&e.pathname.endsWith(".json"),new e.NetworkFirst({cacheName:"binnacle-radar-index",networkTimeoutSeconds:6,plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:7200}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(({url:e})=>e.hostname.endsWith("rainviewer.com")&&e.pathname.endsWith(".png"),new e.CacheFirst({cacheName:"binnacle-radar-tiles",plugins:[new e.ExpirationPlugin({maxEntries:600,maxAgeSeconds:7200}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")});
