-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsw.js
1 lines (1 loc) · 5.06 KB
/
sw.js
1
if(!self.define){let e,i={};const s=(s,a)=>(s=new URL(s+".js",a).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=(a,r)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(i[n])return;let c={};const o=e=>s(e,n),f={module:{uri:n},exports:c,require:o};i[n]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(r(...e),c)))}}define(["./workbox-89b75df8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"404.html",revision:"205b716b453ab94d4d33f3101f45d35a"},{url:"android.html",revision:"e02d69db6b08166bbfab39158ef57f90"},{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:"b98ec8f36da2878608606c71cb982726"},{url:"favicon.ico",revision:"7449ec70104cb8c1f37e2c6b90be9f1a"},{url:"fonts/chiron-hei/css/vf-italic.css",revision:"65f5f0c2aeb3f3d59e334bf645e8fbb5"},{url:"fonts/chiron-hei/css/vf.css",revision:"13114924a30f61c476cf5ffaf7695532"},{url:"fonts/oswald/latin.css",revision:"40567f5d728f4f8e811363cea5876eab"},{url:"img/app-store.svg",revision:"2928664fe1fc6aca88583a6f606d60ba"},{url:"img/bus_ctb.svg",revision:"b31fa957c5f5808de6dc6c8443597e9a"},{url:"img/bus_jointly.svg",revision:"4dc8d20d0125099f027e0a8f759a44e5"},{url:"img/bus_kmb.svg",revision:"9bbdf6f0a4a23ca47fe59df8a8e9bb0e"},{url:"img/bus_lrtfeeder.svg",revision:"8cd7e119b369e80e1277c2d71d993655"},{url:"img/bus_lwb.svg",revision:"57baa81cc4c0a4849144b78fcc1a596a"},{url:"img/bus_nlb.svg",revision:"df98a620cbf4fc8358a4b8f1fd990f7f"},{url:"img/google-play-badge.png",revision:"1e91d02cf5a902f38f2923c006d79281"},{url:"img/HK_MTR_logo.svg",revision:"cfbea90a587cb5b823c709588cbaa991"},{url:"img/Lands_Department.svg",revision:"f561210c1ea9ac0841d1bb9883b3a5a1"},{url:"img/loading.svg",revision:"95c9fb3fe5ef81e6c8807e8caa411e76"},{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:"6e9c4dcc9d2931495502bc50723350a1"},{url:"img/mtr.svg",revision:"e2a2b7344672297c2ca1eed9e2c5e988"},{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:"337a06376a7bfc4ecaf9a400630378ce"},{url:"instagram.html",revision:"bd2e5e63af045309a40871d484879cdf"},{url:"ios.html",revision:"a81d650946825b2a53db8e35465dcc63"},{url:"source-code.html",revision:"181feb63136cd3cea24b4c4f37d85b03"},{url:"telegram.html",revision:"339893502e1d2d77e7452f2afe2a1a28"},{url:"watch.html",revision:"c1c2e397a878f2f796580c041ca1cfe2"},{url:"wear.html",revision:"dcaeaf592245b87d2ed0f481962c1321"},{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:"0fdadebdb8a7bd951c2fd8df40afd74b"}],{}),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")}));