'use strict'; const MANIFEST = 'flutter-app-manifest'; const TEMP = 'flutter-temp-cache'; const CACHE_NAME = 'flutter-app-cache'; const RESOURCES = {"main.dart.js_266.part.js": "daff0a152fb03b2436866662e8e44d5b", "canvaskit/skwasm.js": "ac0f73826b925320a1e9b0d3fd7da61c", "canvaskit/skwasm.wasm": "828c26a0b1cc8eb1adacbdd0c5e8bcfa", "canvaskit/skwasm.js.symbols": "96263e00e3c9bd9cd878ead867c04f3c", "canvaskit/skwasm.worker.js": "89990e8c92bcb123999aa81f7e203b1c", "canvaskit/canvaskit.wasm": "e7602c687313cfac5f495c5eac2fb324", "canvaskit/canvaskit.js": "26eef3024dbc64886b7f48e1b6fb05cf", "canvaskit/canvaskit.js.symbols": "efc2cd87d1ff6c586b7d4c7083063a40", "canvaskit/chromium/canvaskit.wasm": "ea5ab288728f7200f398f60089048b48", "canvaskit/chromium/canvaskit.js": "b7ba6d908089f706772b2007c37e6da4", "canvaskit/chromium/canvaskit.js.symbols": "e115ddcfad5f5b98a90e389433606502", "main.dart.js_202.part.js": "69d5cba9a36dbf05f65ea140b042414a", "main.dart.js_271.part.js": "aa20d066a8e9a587cfd84bba0cefe74b", "splash/style.css": "740c493f9c5dfc859ca07663691b24fb", "splash/img/light-4x.png": "e0346148103c17a87682a35525499afe", "splash/img/dark-3x.png": "da261be18bbda768fa1462fd8a8cef46", "splash/img/light-3x.png": "da261be18bbda768fa1462fd8a8cef46", "splash/img/light-1x.png": "db5b72b7f4b38640c974f20d9c90f464", "splash/img/dark-1x.png": "db5b72b7f4b38640c974f20d9c90f464", "splash/img/light-2x.png": "9371a9e18df59f2bbe9b32e04c3fc5d4", "splash/img/dark-2x.png": "9371a9e18df59f2bbe9b32e04c3fc5d4", "splash/img/dark-4x.png": "e0346148103c17a87682a35525499afe", "main.dart.js_258.part.js": "9a8bff32270cb56deb61178897111f83", "main.dart.js_212.part.js": "46e9dd3168ce4b3b710ef24cb08cd7f5", "main.dart.js_291.part.js": "6ff44dca98db1c75ab680ac7b2ff72c1", "index.html": "24c43ad13b1cc240c7788c436d3b1586", "/": "24c43ad13b1cc240c7788c436d3b1586", "main.dart.js_246.part.js": "7fd2b5a36faef70967658127e3a25eaf", "main.dart.js_190.part.js": "2b3d965ffd47538c8ddc3d62861925e4", "assets/NOTICES": "d61ff676fcd42447f136b64287d177e8", "assets/assets/banner_transparent.png": "364e2030f739bf0c7ed1c061c4cb5901", "assets/assets/banner.png": "4a005db27a8787aea061537223dabb7d", "assets/assets/info-logo.png": "9d1d72596564e6639fd984fea2dfd048", "assets/assets/js/package/olm.wasm": "239a014f3b39dc9cbf051c42d72353d4", "assets/assets/js/package/olm.js": "e9f296441f78d7f67c416ba8519fe7ed", "assets/assets/js/package/olm_legacy.js": "54770eb325f042f9cfca7d7a81f79141", "assets/assets/sounds/phone.ogg": "5c8fb947eb92ca55229cb6bbf533c40f", "assets/assets/sounds/notification.ogg": "d928d619828e6dbccf6e9e40f1c99d83", "assets/assets/sounds/call.ogg": "7e8c646f83fba83bfb9084dc1bfec31e", "assets/assets/logo.png": "d329be9cd7af685717f68e03561f96c0", "assets/assets/sas-emoji.json": "b9d99fc6dda6a3250af57af969b4a02d", "assets/assets/logo.svg": "d042b70cf11a41f2764028e85b07a00a", "assets/assets/logo_transparent.png": "f00cda39300c9885a7c9ae52a65babbf", "assets/assets/favicon.png": "3ea6cdc2aeab08defd0659bad734a69b", "assets/shaders/ink_sparkle.frag": "ecc85a2e95f5e9f53123dcaf8cb9b6ce", "assets/AssetManifest.bin": "002b21ac1c4e3934c8ab6ab9e39ddb52", "assets/fonts/MaterialIcons-Regular.otf": "327a94db42bde357e78c2381440375fb", "assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57", "assets/AssetManifest.bin.json": "fb071ee11f921dab7eeaf2599e3351a8", "assets/packages/handy_window/assets/handy-window.css": "0434ee701235cf1c72458fd4ce022a64", "assets/packages/handy_window/assets/handy-window-dark.css": "45fb3160206a5f74c0a9f1763c00c372", "assets/packages/record_web/assets/js/record.fixwebmduration.js": "1f0108ea80c8951ba702ced40cf8cdce", "assets/packages/record_web/assets/js/record.worklet.js": "356bcfeddb8a625e3e2ba43ddf1cc13e", "assets/packages/flutter_map/lib/assets/flutter_map_logo.png": "208d63cc917af9713fc9572bd5c09362", "assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "04bc91744b625a64b095c6aec2f83ed9", "assets/packages/wakelock_plus/assets/no_sleep.js": "7748a45cd593f33280669b29c2c8919a", "assets/AssetManifest.json": "a1253d1a66d540724635213afe489056", "main.dart.js_203.part.js": "5edbe30ff4c27165dd1c7d1eae63cfe8", "main.dart.js_240.part.js": "13a097f1fa6474abc5fed0e225790616", "version.json": "121f9d560543e44f99cec4290f22618b", "main.dart.js_285.part.js": "256fa0c5d65c59465f1c46998be3b736", "main.dart.js_252.part.js": "309d25c5de93310c2966afa45a2aecd5", "main.dart.js_277.part.js": "d75280bf33b71559c60fcaff7f1cd19b", "main.dart.js_273.part.js": "0fff32d11accaa77713e419e67c60b09", "flutter.js": "4b2350e14c6650ba82871f60906437ea", "main.dart.js_279.part.js": "c7cbcf405a59ea1513c19f69ae1e6938", "main.dart.js": "db3ec86dd261cd7bb4da49f487623c41", "main.dart.js_2.part.js": "288f6b21921ea2b87dc6b2085fec7ac1", "main.dart.js_278.part.js": "619892f0a9b9a7db6976294ed0df2b71", "main.dart.js_292.part.js": "ae054427cb133dc4f546fcffe1165aa7", "auth.html": "88530dca48290678d3ce28a34fc66cbd", "main.dart.js_293.part.js": "409ff6a8f812dc3ab7d5092fc79edf1c", "main.dart.js_228.part.js": "62f563aeb6f18977b74bea7b9fea8003", "main.dart.js_280.part.js": "7b043be03346098d3a31b0e2dc9f8f4c", "main.dart.js_245.part.js": "d285de1e1805da001315e1bbedbe5a81", "icons/Icon-192.png": "97f7226b0a52c22cfe1557cecce6763e", "icons/Icon-512.png": "391892c6f6720429a9d4f93ec1ce5f4e", "main.dart.js_237.part.js": "a05e37354cf44bc7fda54f57f0a72c62", "main.dart.js_288.part.js": "44cd2b21195aba3a68ccc412c3f071df", "main.dart.js_241.part.js": "fdf7115f049a911e2e2abf556716f314", "manifest.json": "cc4b6aa791018840b65fd0b0e325b201", "main.dart.js_286.part.js": "46621c01e14ca6052e21c852bf1c63b2", "main.dart.js_227.part.js": "5b7190c3cc3917599a89ad2cb0082c57", "favicon.png": "a409751f0ecf6dee76fb350d7402f9be", "main.dart.js_270.part.js": "ceb32a6ebcfb1af35ac16ca3597dfe1d", "main.dart.js_274.part.js": "40914e9a4678fb9bc5a73e07e2c58100", "main.dart.js_239.part.js": "6f7761f1c5434b1475ecebeed43c1253", "main.dart.js_289.part.js": "c608601877d20f650a3c93237969e0a9", "main.dart.js_275.part.js": "eeaf3a4eda3aebbc124923ca14984fe5", "main.dart.js_284.part.js": "24b054cddb40ff387d19106181560f46", "main.dart.js_290.part.js": "3ac98484b599167222c17670cda92b19", "main.dart.js_218.part.js": "30ec287b4932bbe82ecf8767c7727b24", "main.dart.js_268.part.js": "7f4a89c60f9350926380615ed1c5fc13", "main.dart.js_242.part.js": "662c6a27a91980d196f7913cc3f6abb4", "main.dart.js_251.part.js": "2286e487c07fd50ccabcd18f0c6d0cb6", "main.dart.js_250.part.js": "b6123e9bd1d009874907ef601b57a0b0", "main.dart.js_188.part.js": "b96c6993522338a7e6ed7d3e6977a5ce", "main.dart.js_230.part.js": "32545c91b727575a5f429f7a39559662", "main.dart.js_235.part.js": "790bf076e9af0bdc5110d9913f5eff53", "main.dart.js_272.part.js": "ee8bdc73101d8326a110ecc38d36fa47", "main.dart.js_259.part.js": "a0df1aca33e3fbfe8061c6903a6b89bc", "main.dart.js_201.part.js": "8ae1157c7fa1a91abb1cb6be7eece637", "main.dart.js_1.part.js": "85c373c94612b9ca8d659dc66ff69f86", "main.dart.js_261.part.js": "cb3bdbfb8167c2adcce7dcbc54b54ae6", "flutter_bootstrap.js": "6570b1254da016b949abd842f8977931", "main.dart.js_15.part.js": "8f3b0a0150416bc985582bd51b8d6819", "main.dart.js_226.part.js": "025a6c740ba39feac43721868f109129"}; // The application shell files that are downloaded before a service worker can // start. const CORE = ["main.dart.js", "index.html", "flutter_bootstrap.js", "assets/AssetManifest.bin.json", "assets/FontManifest.json"]; // During install, the TEMP cache is populated with the application shell files. self.addEventListener("install", (event) => { self.skipWaiting(); return event.waitUntil( caches.open(TEMP).then((cache) => { return cache.addAll( CORE.map((value) => new Request(value, {'cache': 'reload'}))); }) ); }); // During activate, the cache is populated with the temp files downloaded in // install. If this service worker is upgrading from one with a saved // MANIFEST, then use this to retain unchanged resource files. self.addEventListener("activate", function(event) { return event.waitUntil(async function() { try { var contentCache = await caches.open(CACHE_NAME); var tempCache = await caches.open(TEMP); var manifestCache = await caches.open(MANIFEST); var manifest = await manifestCache.match('manifest'); // When there is no prior manifest, clear the entire cache. if (!manifest) { await caches.delete(CACHE_NAME); contentCache = await caches.open(CACHE_NAME); for (var request of await tempCache.keys()) { var response = await tempCache.match(request); await contentCache.put(request, response); } await caches.delete(TEMP); // Save the manifest to make future upgrades efficient. await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES))); // Claim client to enable caching on first launch self.clients.claim(); return; } var oldManifest = await manifest.json(); var origin = self.location.origin; for (var request of await contentCache.keys()) { var key = request.url.substring(origin.length + 1); if (key == "") { key = "/"; } // If a resource from the old manifest is not in the new cache, or if // the MD5 sum has changed, delete it. Otherwise the resource is left // in the cache and can be reused by the new service worker. if (!RESOURCES[key] || RESOURCES[key] != oldManifest[key]) { await contentCache.delete(request); } } // Populate the cache with the app shell TEMP files, potentially overwriting // cache files preserved above. for (var request of await tempCache.keys()) { var response = await tempCache.match(request); await contentCache.put(request, response); } await caches.delete(TEMP); // Save the manifest to make future upgrades efficient. await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES))); // Claim client to enable caching on first launch self.clients.claim(); return; } catch (err) { // On an unhandled exception the state of the cache cannot be guaranteed. console.error('Failed to upgrade service worker: ' + err); await caches.delete(CACHE_NAME); await caches.delete(TEMP); await caches.delete(MANIFEST); } }()); }); // The fetch handler redirects requests for RESOURCE files to the service // worker cache. self.addEventListener("fetch", (event) => { if (event.request.method !== 'GET') { return; } var origin = self.location.origin; var key = event.request.url.substring(origin.length + 1); // Redirect URLs to the index.html if (key.indexOf('?v=') != -1) { key = key.split('?v=')[0]; } if (event.request.url == origin || event.request.url.startsWith(origin + '/#') || key == '') { key = '/'; } // If the URL is not the RESOURCE list then return to signal that the // browser should take over. if (!RESOURCES[key]) { return; } // If the URL is the index.html, perform an online-first request. if (key == '/') { return onlineFirst(event); } event.respondWith(caches.open(CACHE_NAME) .then((cache) => { return cache.match(event.request).then((response) => { // Either respond with the cached resource, or perform a fetch and // lazily populate the cache only if the resource was successfully fetched. return response || fetch(event.request).then((response) => { if (response && Boolean(response.ok)) { cache.put(event.request, response.clone()); } return response; }); }) }) ); }); self.addEventListener('message', (event) => { // SkipWaiting can be used to immediately activate a waiting service worker. // This will also require a page refresh triggered by the main worker. if (event.data === 'skipWaiting') { self.skipWaiting(); return; } if (event.data === 'downloadOffline') { downloadOffline(); return; } }); // Download offline will check the RESOURCES for all files not in the cache // and populate them. async function downloadOffline() { var resources = []; var contentCache = await caches.open(CACHE_NAME); var currentContent = {}; for (var request of await contentCache.keys()) { var key = request.url.substring(origin.length + 1); if (key == "") { key = "/"; } currentContent[key] = true; } for (var resourceKey of Object.keys(RESOURCES)) { if (!currentContent[resourceKey]) { resources.push(resourceKey); } } return contentCache.addAll(resources); } // Attempt to download the resource online before falling back to // the offline cache. function onlineFirst(event) { return event.respondWith( fetch(event.request).then((response) => { return caches.open(CACHE_NAME).then((cache) => { cache.put(event.request, response.clone()); return response; }); }).catch((error) => { return caches.open(CACHE_NAME).then((cache) => { return cache.match(event.request).then((response) => { if (response != null) { return response; } throw error; }); }); }) ); }