-
Notifications
You must be signed in to change notification settings - Fork 1
/
sw.js
1 lines (1 loc) · 5.06 KB
/
sw.js
1
if(!self.define){let e,i={};const s=(s,r)=>(s=new URL(s+".js",r).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(r,a)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(i[n])return;let c={};const o=e=>s(e,n),b={module:{uri:n},exports:c,require:o};i[n]=Promise.all(r.map((e=>b[e]||o(e)))).then((e=>(a(...e),c)))}}define(["./workbox-89b75df8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"404.html",revision:"4223bf968f219552f9ccff4326801ce6"},{url:"android.html",revision:"36764d0cb60f6a883c8ce6f006e8b5d1"},{url:"assets/App-C05wK8aK.css",revision:null},{url:"assets/Home-NOYwg1hQ.css",revision:null},{url:"assets/index-BSkLjl09.css",revision:null},{url:"faq.html",revision:"c5524deeb303ec675dabf00efa608228"},{url:"favicon.ico",revision:"7449ec70104cb8c1f37e2c6b90be9f1a"},{url:"fonts/chiron-hei/css/vf-italic.css",revision:"63f5b024d653cdff30361c88b8a7c178"},{url:"fonts/chiron-hei/css/vf.css",revision:"3e7b6eb1317f29cf565a9036729fb0fa"},{url:"fonts/oswald/latin.css",revision:"e5f09e11bd4dab340461c8c8d0609f01"},{url:"img/app-store.svg",revision:"1b65926236d951b2af57201b275f595b"},{url:"img/bus_ctb.svg",revision:"9a80773b8330cef6c778acb602c1efe6"},{url:"img/bus_jointly.svg",revision:"0fb48f6c546964cdedc5d33b5a5f2487"},{url:"img/bus_kmb.svg",revision:"73e156161a2c6b2d47ba86bbb40aa394"},{url:"img/bus_lrtfeeder.svg",revision:"f4f79c8b9a5b96c6e0e25b69aba8c92e"},{url:"img/bus_lwb.svg",revision:"6a2b11fb31e60247d62588e82ab72349"},{url:"img/bus_nlb.svg",revision:"93fa0fb2d3a501aa7a8cbbadee7e93dc"},{url:"img/google-play-badge.png",revision:"1e91d02cf5a902f38f2923c006d79281"},{url:"img/HK_MTR_logo.svg",revision:"7da7c765a31cef8c6cc118ce14a82300"},{url:"img/Lands_Department.svg",revision:"f561210c1ea9ac0841d1bb9883b3a5a1"},{url:"img/loading.svg",revision:"e1cef1bb097dc5077983fca9abe6a403"},{url:"img/logo128_full.png",revision:"2e5df1998b44b2f0210e9d91e7f23b93"},{url:"img/logo128.png",revision:"6674a004ba1b81d320a1f8ee2168ec9e"},{url:"img/logo192_full.png",revision:"a3f5582729fd2674977f9c0f15b4a4b1"},{url:"img/logo192.png",revision:"2af237758890cfb7416cb5670866654e"},{url:"img/logo512_full.png",revision:"09281475b63c3dc5e911d04030b3b149"},{url:"img/logo512.png",revision:"b0368df96aab144fdbb30a14fef5628c"},{url:"img/minibus.svg",revision:"bade9b0c4d6a59df0893397c7b318153"},{url:"img/mtr.svg",revision:"c31b8ddb03c387d1131e93ea902f164e"},{url:"img/self.svg",revision:"dd114907c4af7cf00387365a56242e53"},{url:"img/share.png",revision:"376f51d7982b28e9db9c786ea9444970"},{url:"img/stop-bookmark-guide-dark-en.png",revision:"799ad68f6013461214455c05f1e1ec5d"},{url:"img/stop-bookmark-guide-dark-zh.png",revision:"8743b3923d35125086babf2515c3aaef"},{url:"img/stop-bookmark-guide-light-en.png",revision:"0ab5d2355ca0d9a5333d83926fd3ab02"},{url:"img/stop-bookmark-guide-light-zh.png",revision:"e169b6c5d567a1856d04b5f1d3131dec"},{url:"img/Wheelchair_symbol.svg",revision:"33012a7689a89998d1f0ecb1f67861d9"},{url:"index.html",revision:"1ef40c285d92e280f9e686d6d2b5b3cc"},{url:"instagram.html",revision:"81b0ebeb1b577c11b2d11e4a13c3c439"},{url:"ios.html",revision:"2a3815822a42edbc596fcdacbb93ef75"},{url:"source-code.html",revision:"5ecdf6653e20b1c476100123b1b877a9"},{url:"telegram.html",revision:"8fdf588f1774331a6a5def2927dab15c"},{url:"watch.html",revision:"c98ee8ced4554b1c71f9bfeaaa6fd772"},{url:"wear.html",revision:"f9b8a1bfb93e72060a738e7e50d296af"},{url:"favicon.ico",revision:"7449ec70104cb8c1f37e2c6b90be9f1a"},{url:"img/logo128.png",revision:"6674a004ba1b81d320a1f8ee2168ec9e"},{url:"img/logo192.png",revision:"2af237758890cfb7416cb5670866654e"},{url:"img/logo512.png",revision:"b0368df96aab144fdbb30a14fef5628c"},{url:"manifest.webmanifest",revision:"837ba4218960fa6226837f6303a044f3"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute((({url:e})=>e.origin===self.location.origin&&e.pathname.startsWith("/assets")),new e.CacheFirst({cacheName:"app-runtime",plugins:[new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute((({url:e})=>e.origin===self.location.origin&&(e.pathname.startsWith("/zh/route/")||e.pathname.startsWith("/en/route/"))),new e.StaleWhileRevalidate({cacheName:"app-runtime-public",plugins:[new e.CacheableResponsePlugin({statuses:[200]}),new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:43200})]}),"GET"),e.registerRoute((({url:e})=>e.origin===self.location.origin&&(e.pathname.startsWith("/fonts/")||e.pathname.startsWith("/img/"))),new e.CacheFirst({cacheName:"font-and-asset",plugins:[new e.CacheableResponsePlugin({statuses:[0,200]}),new e.ExpirationPlugin({maxAgeSeconds:525600})]}),"GET"),e.registerRoute((({url:e})=>e.origin.includes("fastly.net")),new e.CacheFirst({cacheName:"map",plugins:[new e.CacheableResponsePlugin({statuses:[200]}),new e.ExpirationPlugin({maxAgeSeconds:43200,purgeOnQuotaError:!0})]}),"GET")}));