-
Notifications
You must be signed in to change notification settings - Fork 1
/
service-worker.js
2 lines (2 loc) · 47 KB
/
service-worker.js
1
2
!function(){"use strict";var e={110:function(e){var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function s(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",s),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&g(e,"error",t,n)}(e,s,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var s,i,o,l;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"===typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(s=c(e))>0&&o.length>s&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=u.bind(r);return s.listener=n,r.wrapFn=s,s}function d(e,t,n){var r=e._events;if(void 0===r)return[];var s=r[t];return void 0===s?[]:"function"===typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(s):p(s,s.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(i){r.once&&e.removeEventListener(t,s),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s="error"===e,i=this._events;if(void 0!==i)s=s&&void 0===i.error;else if(!s)return!1;if(s){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var l=c.length,u=p(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,h(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,h(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,s,i,o;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(s=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,s=i;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,s),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var s,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(s=i[r])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},838:function(){try{self["workbox:core:6.5.3"]&&_()}catch(e){}},362:function(){try{self["workbox:precaching:6.5.3"]&&_()}catch(e){}},161:function(){try{self["workbox:routing:6.5.3"]&&_()}catch(e){}},880:function(){try{self["workbox:strategies:6.5.3"]&&_()}catch(e){}}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}!function(){n(838);const e=function(e){let t=e;for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.length>0&&(t+=` :: ${JSON.stringify(r)}`),t};class t extends Error{constructor(t,n){super(e(t,n)),this.name=t,this.details=n}}const r={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},s=e=>[r.prefix,e,r.suffix].filter((e=>e&&e.length>0)).join("-"),i=e=>e||s(r.precache),o=e=>e||s(r.runtime);function a(e,t){const n=t();return e.waitUntil(n),n}n(362);function c(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:n,url:r}=e;if(!r)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!n){const e=new URL(r,location.href);return{cacheKey:e.href,url:e.href}}const s=new URL(r,location.href),i=new URL(r,location.href);return s.searchParams.set("__WB_REVISION__",n),{cacheKey:s.href,url:i.href}}class l{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async e=>{let{request:t,state:n}=e;n&&(n.originalRequest=t)},this.cachedResponseWillBeUsed=async e=>{let{event:t,state:n,cachedResponse:r}=e;if("install"===t.type&&n&&n.originalRequest&&n.originalRequest instanceof Request){const e=n.originalRequest.url;r?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return r}}}class u{constructor(e){let{precacheController:t}=e;this.cacheKeyWillBeUsed=async e=>{let{request:t,params:n}=e;const r=(null===n||void 0===n?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return r?new Request(r,{headers:t.headers}):t},this._precacheController=t}}let h;async function d(e,n){let r=null;if(e.url){r=new URL(e.url).origin}if(r!==self.location.origin)throw new t("cross-origin-copy-response",{origin:r});const s=e.clone(),i={headers:new Headers(s.headers),status:s.status,statusText:s.statusText},o=n?n(i):i,a=function(){if(void 0===h){const t=new Response("");if("body"in t)try{new Response(t.body),h=!0}catch(e){h=!1}h=!1}return h}()?s.body:await s.blob();return new Response(a,o)}const f=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");function p(e,t){const n=new URL(e);for(const r of t)n.searchParams.delete(r);return n.href}class g{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const _=new Set;n(880);function y(e){return"string"===typeof e?new Request(e):e}class m{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new g,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:n}=this;let r=y(e);if("navigate"===r.mode&&n instanceof FetchEvent&&n.preloadResponse){const e=await n.preloadResponse;if(e)return e}const s=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))r=await e({request:r.clone(),event:n})}catch(o){if(o instanceof Error)throw new t("plugin-error-request-will-fetch",{thrownErrorMessage:o.message})}const i=r.clone();try{let e;e=await fetch(r,"navigate"===r.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:n,request:i,response:e});return e}catch(a){throw s&&await this.runCallbacks("fetchDidFail",{error:a,event:n,originalRequest:s.clone(),request:i.clone()}),a}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=y(e);let n;const{cacheName:r,matchOptions:s}=this._strategy,i=await this.getCacheKey(t,"read"),o=Object.assign(Object.assign({},s),{cacheName:r});n=await caches.match(i,o);for(const a of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await a({cacheName:r,matchOptions:s,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,n){const r=y(e);var s;await(s=0,new Promise((e=>setTimeout(e,s))));const i=await this.getCacheKey(r,"write");if(!n)throw new t("cache-put-with-no-response",{url:f(i.url)});const o=await this._ensureResponseSafeToCache(n);if(!o)return!1;const{cacheName:a,matchOptions:c}=this._strategy,l=await self.caches.open(a),u=this.hasCallback("cacheDidUpdate"),h=u?await async function(e,t,n,r){const s=p(t.url,n);if(t.url===s)return e.match(t,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),o=await e.keys(t,i);for(const a of o)if(s===p(a.url,n))return e.match(a,r)}(l,i.clone(),["__WB_REVISION__"],c):null;try{await l.put(i,u?o.clone():o)}catch(d){if(d instanceof Error)throw"QuotaExceededError"===d.name&&await async function(){for(const e of _)await e()}(),d}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:h,newResponse:o.clone(),request:i,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let r=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))r=y(await e({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[n]=r}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"===typeof t[e]){const n=this._pluginStateMap.get(t),r=r=>{const s=Object.assign(Object.assign({},r),{state:n});return t[e](s)};yield r}}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,n=!1;for(const r of this.iterateCallbacks("cacheWillUpdate"))if(t=await r({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&200!==t.status&&(t=void 0),t}}class v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cacheName=o(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n="string"===typeof e.request?new Request(e.request):e.request,r="params"in e?e.params:void 0,s=new m(this,{event:t,request:n,params:r}),i=this._getResponse(s,n,t);return[i,this._awaitComplete(i,s,n,t)]}async _getResponse(e,n,r){let s;await e.runCallbacks("handlerWillStart",{event:r,request:n});try{if(s=await this._handle(n,e),!s||"error"===s.type)throw new t("no-response",{url:n.url})}catch(i){if(i instanceof Error)for(const t of e.iterateCallbacks("handlerDidError"))if(s=await t({error:i,event:r,request:n}),s)break;if(!s)throw i}for(const t of e.iterateCallbacks("handlerWillRespond"))s=await t({event:r,request:n,response:s});return s}async _awaitComplete(e,t,n,r){let s,i;try{s=await e}catch(i){}try{await t.runCallbacks("handlerDidRespond",{event:r,request:n,response:s}),await t.doneWaiting()}catch(o){o instanceof Error&&(i=o)}if(await t.runCallbacks("handlerDidComplete",{event:r,request:n,response:s,error:i}),t.destroy(),i)throw i}}class w extends v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.cacheName=i(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,n){let r;const s=n.params||{};if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const t=s.integrity,i=e.integrity,o=!i||i===t;if(r=await n.fetch(new Request(e,{integrity:"no-cors"!==e.mode?i||t:void 0})),t&&o&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await n.cachePut(e,r.clone());0}}return r}async _handleInstall(e,n){this._useDefaultCacheabilityPluginIfNeeded();const r=await n.fetch(e);if(!await n.cachePut(e,r.clone()))throw new t("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,r]of this.plugins.entries())r!==w.copyRedirectedCacheableResponsesPlugin&&(r===w.defaultPrecacheCacheabilityPlugin&&(e=n),r.cacheWillUpdate&&t++);0===t?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate(e){let{response:t}=e;return!t||t.status>=400?null:t}},w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate(e){let{response:t}=e;return t.redirected?await d(t):t}};class R{constructor(){let{cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:i(e),plugins:[...t,new u({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const n=[];for(const r of e){"string"===typeof r?n.push(r):r&&void 0===r.revision&&n.push(r.url);const{cacheKey:e,url:s}=c(r),i="string"!==typeof r&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(s)&&this._urlsToCacheKeys.get(s)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(s),secondEntry:e});if("string"!==typeof r&&r.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==r.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:s});this._cacheKeysToIntegrities.set(e,r.integrity)}if(this._urlsToCacheKeys.set(s,e),this._urlsToCacheModes.set(s,i),n.length>0){const e=`Workbox is precaching URLs without revision info: ${n.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return a(e,(async()=>{const t=new l;this.strategy.plugins.push(t);for(const[s,i]of this._urlsToCacheKeys){const t=this._cacheKeysToIntegrities.get(i),n=this._urlsToCacheModes.get(s),r=new Request(s,{integrity:t,cache:n,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:r,event:e}))}const{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}}))}activate(e){return a(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),n=new Set(this._urlsToCacheKeys.values()),r=[];for(const s of t)n.has(s.url)||(await e.delete(s),r.push(s.url));return{deletedURLs:r}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n){return(await self.caches.open(this.strategy.cacheName)).match(n)}}createHandlerBoundToURL(e){const n=this.getCacheKeyForURL(e);if(!n)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:n},t.params),this.strategy.handle(t))}}let E;const C=()=>(E||(E=new R),E);n(161);const P=e=>e&&"object"===typeof e?e:{handle:e};class T{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";this.handler=P(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=P(e)}}class S extends T{constructor(e,t,n){super((t=>{let{url:n}=t;const r=e.exec(n.href);if(r&&(n.origin===location.origin||0===r.index))return r.slice(1)}),t,n)}}class A{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const n=Promise.all(t.urlsToCache.map((t=>{"string"===typeof t&&(t=[t]);const n=new Request(...t);return this.handleRequest({request:n,event:e})})));e.waitUntil(n),e.ports&&e.ports[0]&&n.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest(e){let{request:t,event:n}=e;const r=new URL(t.url,location.href);if(!r.protocol.startsWith("http"))return void 0;const s=r.origin===location.origin,{params:i,route:o}=this.findMatchingRoute({event:n,request:t,sameOrigin:s,url:r});let a=o&&o.handler;const c=t.method;if(!a&&this._defaultHandlerMap.has(c)&&(a=this._defaultHandlerMap.get(c)),!a)return void 0;let l;try{l=a.handle({url:r,request:t,event:n,params:i})}catch(h){l=Promise.reject(h)}const u=o&&o.catchHandler;return l instanceof Promise&&(this._catchHandler||u)&&(l=l.catch((async e=>{if(u){0;try{return await u.handle({url:r,request:t,event:n,params:i})}catch(s){s instanceof Error&&(e=s)}}if(this._catchHandler)return this._catchHandler.handle({url:r,request:t,event:n});throw e}))),l}findMatchingRoute(e){let{url:t,sameOrigin:n,request:r,event:s}=e;const i=this._routes.get(r.method)||[];for(const o of i){let e;const i=o.match({url:t,sameOrigin:n,request:r,event:s});if(i)return e=i,(Array.isArray(e)&&0===e.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"===typeof i)&&(e=void 0),{route:o,params:e}}return{}}setDefaultHandler(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}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 t("unregister-route-but-not-found-with-method",{method:e.method});const n=this._routes.get(e.method).indexOf(e);if(!(n>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(n,1)}}let L;const I=()=>(L||(L=new A,L.addFetchListener(),L.addCacheListener()),L);function b(e,n,r){let s;if("string"===typeof e){const t=new URL(e,location.href);0;s=new T((e=>{let{url:n}=e;return n.href===t.href}),n,r)}else if(e instanceof RegExp)s=new S(e,n,r);else if("function"===typeof e)s=new T(e,n,r);else{if(!(e instanceof T))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});s=e}return I().registerRoute(s),s}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const n of[...e.searchParams.keys()])t.some((e=>e.test(n)))&&e.searchParams.delete(n);return e}class D extends T{constructor(e,t){super((n=>{let{request:r}=n;const s=e.getURLsToCacheKeys();for(const i of function(e){let{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:n="index.html",cleanURLs:r=!0,urlManipulation:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const i=new URL(e,location.href);i.hash="",yield i.href;const o=O(i,t);if(yield o.href,n&&o.pathname.endsWith("/")){const e=new URL(o.href);e.pathname+=n,yield e.href}if(r){const e=new URL(o.href);e.pathname+=".html",yield e.href}if(s){const e=s({url:i});for(const t of e)yield t.href}}()}(r.url,t)){const t=s.get(i);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}function N(e){return C().matchPrecache(e)}function U(e){C().precache(e)}function x(e,t){U(e),function(e){const t=C();b(new D(t,e))}(t)}const k={cacheWillUpdate:async e=>{let{response:t}=e;return 200===t.status||0===t.status?t:null}};class W extends v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(k),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,n){const r=[];const s=[];let i;if(this._networkTimeoutSeconds){const{id:t,promise:o}=this._getTimeoutPromise({request:e,logs:r,handler:n});i=t,s.push(o)}const o=this._getNetworkPromise({timeoutId:i,request:e,logs:r,handler:n});s.push(o);const a=await n.waitUntil((async()=>await n.waitUntil(Promise.race(s))||await o)());if(!a)throw new t("no-response",{url:e.url});return a}_getTimeoutPromise(e){let t,{request:n,logs:r,handler:s}=e;return{promise:new Promise((e=>{t=setTimeout((async()=>{e(await s.cacheMatch(n))}),1e3*this._networkTimeoutSeconds)})),id:t}}async _getNetworkPromise(e){let t,n,{timeoutId:r,request:s,logs:i,handler:o}=e;try{n=await o.fetchAndCachePut(s)}catch(a){a instanceof Error&&(t=a)}return r&&clearTimeout(r),!t&&n||(n=await o.cacheMatch(s)),n}}class q extends v{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(k)}async _handle(e,n){const r=n.fetchAndCachePut(e).catch((()=>{}));n.waitUntil(r);let s,i=await n.cacheMatch(e);if(i)0;else{0;try{i=await r}catch(o){o instanceof Error&&(s=o)}}if(!i)throw new t("no-response",{url:e.url,error:s});return i}}const H=Object.freeze({getClientsInfo:"GET_CLIENTS_INFO",clientsInfo:"CLIENTS_INFO",claimClients:"CLAIM_CLIENTS",skipWaiting:"SKIP_WAITING",startRecording:"START_RECORDING",recordingStarted:"RECORDING_STARTED",recordingError:"RECORDING_ERROR",confirmRecordingCompletion:"CONFIRM_RECORDING_COMPLETION",completeRecording:"COMPLETE_RECORDING",recordingCompleted:"RECORDING_COMPLETED"});let M,K;const B=new WeakMap,j=new WeakMap,F=new WeakMap,V=new WeakMap,G=new WeakMap;let $={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return j.get(e);if("objectStoreNames"===t)return e.objectStoreNames||F.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return z(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function J(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(K||(K=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(X(this),n),z(B.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return z(e.apply(X(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];const i=e.call(X(this),t,...r);return F.set(i,t.sort?t.sort():[t]),z(i)}}function Q(e){return"function"===typeof e?J(e):(e instanceof IDBTransaction&&function(e){if(j.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",i),e.removeEventListener("abort",i)},s=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",s),e.addEventListener("error",i),e.addEventListener("abort",i)}));j.set(e,t)}(e),t=e,(M||(M=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,$):e);var t}function z(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",s),e.removeEventListener("error",i)},s=()=>{t(z(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",s),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&B.set(t,e)})).catch((()=>{})),G.set(t,e),t}(e);if(V.has(e))return V.get(e);const t=Q(e);return t!==e&&(V.set(e,t),G.set(t,e)),t}const X=e=>G.get(e);const Y=["get","getKey","getAll","getAllKeys","count"],Z=["put","add","delete","clear"],ee=new Map;function te(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(ee.get(t))return ee.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,s=Z.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!s&&!Y.includes(n))return;const i=async function(e){const t=this.transaction(e,s?"readwrite":"readonly");let i=t.store;for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];return r&&(i=i.index(a.shift())),(await Promise.all([i[n](...a),s&&t.done]))[0]};return ee.set(t,i),i}$=(e=>({...e,get:(t,n,r)=>te(t,n)||e.get(t,n,r),has:(t,n)=>!!te(t,n)||e.has(t,n)}))($);const ne="sections-db",re="sections-store";function se(){return function(e,t){let{blocked:n,upgrade:r,blocking:s,terminated:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=indexedDB.open(e,t),a=z(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(z(o.result),e.oldVersion,e.newVersion,z(o.transaction))})),n&&o.addEventListener("blocked",(()=>n())),a.then((e=>{i&&e.addEventListener("close",(()=>i())),s&&e.addEventListener("versionchange",(()=>s()))})).catch((()=>{})),a}(ne,1,{upgrade(e,t){0===t&&e.createObjectStore(re,{keyPath:"sectionId"}),console.debug("[sections-db] Done upgrading DB")}})}function ie(){return function(e){let{blocked:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(()=>t())),z(n).then((()=>{}))}(ne)}const oe=JSON.parse({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DHIS2_APP_VERSION:"101.1.20",REACT_APP_DHIS2_APP_NAME:"Import/Export",REACT_APP_DHIS2_BASE_URL:".."}.REACT_APP_DHIS2_APP_PWA_CACHING_PATTERNS_TO_OMIT_FROM_CACHEABLE_SECTIONS||"[]").map((e=>new RegExp(e)));function ae(e){return e in self.clientRecordingStates}function ce(e){let{url:t,event:n}=e;const r=n.clientId;if(!ae(r))return!1;if(void 0!==self.clientRecordingStates[r].confirmationTimeout)return!1;return!oe.some((e=>e.test(t.href)))}function le(e){let{request:t,event:n}=e;const r=self.clientRecordingStates[n.clientId];clearTimeout(r.recordingTimeout),r.pendingRequests.add(t),fetch(t).then((e=>function(e,t,n){const r=self.clientRecordingStates[n];if(!r)return t;(function(e,t,n){if(n.ok){const r=n.clone();caches.open(e).then((e=>e.put(t,r)))}})(he("temp",n),e,t),r.fulfilledRequests+=1,r.pendingRequests.delete(e),0===r.pendingRequests.size&&function(e){const t=self.clientRecordingStates[e];t.recordingTimeout=setTimeout((()=>ue(null,e)),t.recordingTimeoutDelay)}(n);return t}(t,e,n.clientId))).catch((e=>{ue(e,n.clientId)}))}function ue(e,t){const n=self.clientRecordingStates[t];if(n&&(console.debug("[SW] Stopping recording",{clientId:t,recordingState:n}),clearTimeout(n.recordingTimeout)),e)return self.clients.get(t).then((t=>{t.postMessage({type:H.recordingError,payload:{msg:e.message}})})),void de(t);!async function(e){const t=await self.clients.get(e);if(!t)return console.debug("[SW] Client not found for ID",e),void de(e);t.postMessage({type:H.confirmRecordingCompletion}),function(e){self.clientRecordingStates[e].confirmationTimeout=setTimeout((()=>{console.warn("[SW] Completion confirmation timed out. Clearing recording for client",e),de(e)}),1e4)}(e)}(t)}function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("-")}function de(e){delete self.clientRecordingStates[e];const t=he("temp",e);return caches.delete(t)}const fe=["other-assets","app-shell"],pe=JSON.parse({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DHIS2_APP_VERSION:"101.1.20",REACT_APP_DHIS2_APP_NAME:"Import/Export",REACT_APP_DHIS2_BASE_URL:".."}.REACT_APP_DHIS2_APP_PWA_CACHING_PATTERNS_TO_OMIT_FROM_APP_SHELL||{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DHIS2_APP_VERSION:"101.1.20",REACT_APP_DHIS2_APP_NAME:"Import/Export",REACT_APP_DHIS2_BASE_URL:".."}.REACT_APP_DHIS2_APP_PWA_CACHING_PATTERNS_TO_OMIT||"[]").map((e=>new RegExp(e))),ge="true"==={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DHIS2_APP_VERSION:"101.1.20",REACT_APP_DHIS2_APP_NAME:"Import/Export",REACT_APP_DHIS2_BASE_URL:".."}.REACT_APP_DHIS2_APP_PWA_CACHING_OMIT_EXTERNAL_REQUESTS_FROM_APP_SHELL||"true"==={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DHIS2_APP_VERSION:"101.1.20",REACT_APP_DHIS2_APP_NAME:"Import/Export",REACT_APP_DHIS2_BASE_URL:".."}.REACT_APP_DHIS2_APP_PWA_CACHING_OMIT_EXTERNAL_REQUESTS;function _e(e){if(ge&&e.origin!==self.location.origin)return!1;return!pe.some((t=>t.test(e.href)))}async function ye(){const e=await caches.keys();return Promise.all(e.map((async e=>{const t=/workbox/.test(e),n=!!fe.find((t=>t===e)),r=await self.dbPromise,s=!!await r.get(re,e);if(!t&&!n&&!s)return console.debug(`[SW] Cache with key ${e} is unused and will be deleted`),caches.delete(e)})))}n(110);!function(){if(!("true"==={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DHIS2_APP_VERSION:"101.1.20",REACT_APP_DHIS2_APP_NAME:"Import/Export",REACT_APP_DHIS2_BASE_URL:".."}.REACT_APP_DHIS2_APP_PWA_ENABLED))return self.addEventListener("install",(()=>{self.skipWaiting()})),void self.addEventListener("activate",(async()=>{console.log("Removing previous service worker"),self.registration.unregister();const e=await self.caches.keys();await Promise.all(e.map((e=>self.caches.delete(e)))),await ie(),(await self.clients.matchAll({type:"window"})).forEach((e=>e.navigate(e.url)))}));self.__WB_DISABLE_DEV_LOGS=!0,self.clientRecordingStates={};const e=new RegExp("/[^/?]+\\.[^/]+$");{const t=[{'revision':'38bc66331bc2eb0beb973de77056f182','url':'./index.html'},{'revision':null,'url':'./static/css/8330.e6af54ca.chunk.css'},{'revision':null,'url':'./static/css/app.7e67e67a.chunk.css'},{'revision':null,'url':'./static/css/main.4536e618.css'},{'revision':null,'url':'./static/js/3469.9bcbbbc9.chunk.js'},{'revision':null,'url':'./static/js/4268.5daf0d6e.chunk.js'},{'revision':null,'url':'./static/js/4647.5daf0d6e.chunk.js'},{'revision':null,'url':'./static/js/8330.39e72493.chunk.js'},{'revision':null,'url':'./static/js/8552.ff98450d.chunk.js'},{'revision':null,'url':'./static/js/app.c04237cc.chunk.js'},{'revision':null,'url':'./static/js/main.e462f421.js'},{'revision':null,'url':'./static/js/moment-locales/af.6afda06e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ar-dz.30e76df6.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ar-kw.93134b9e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ar-ly.f49248a4.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ar-ma.7c81b06e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ar-sa.307b6da6.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ar-tn.7f58df30.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ar.178f64b9.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/az.77d22165.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/be.ba83e5de.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/bg.591c695b.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/bm.02028da1.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/bn-bd.0b2f0f5e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/bn.777478f3.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/bo.c8a3ff86.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/br.80656ae6.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/bs.129ea351.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ca.49d9852a.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/cs.9239d5ad.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/cv.abadc2ba.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/cy.da5f02c1.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/da.cb87df7a.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/de-at.b2bfba94.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/de-ch.a6a33da9.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/de.e66810c3.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/dv.5c3f55d6.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/el.740ffd25.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-au.e689f69e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-ca.6ef03b77.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-gb.62975e87.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-ie.6eb5ed6f.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-il.04cb5b57.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-in.ed04f267.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-nz.876847d8.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/en-sg.204c43e4.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/eo.739416fc.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/es-do.5251a0a3.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/es-mx.52f48695.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/es-us.6a5a2475.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/es.b718fb95.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/et.23099ffe.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/eu.ed351631.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fa.60258caf.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fi.1fefe1d8.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fil.661a0f5d.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fo.beea62a0.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fr-ca.96344fba.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fr-ch.1a33bfff.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fr.0c1a2677.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/fy.f4d2db0d.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ga.fbbb6d77.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/gd.f5a506a6.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/gl.0cb98b6b.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/gom-deva.deb7d8e8.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/gom-latn.16efbb0a.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/gu.7c68e12c.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/he.5db05359.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/hi.e8df1431.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/hr.7f45281a.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/hu.af83db7e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/hy-am.ee714988.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/id.08eebcdd.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/is.34917d9e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/it-ch.cfe489de.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/it.f00240da.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ja.0f4edb2f.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/jv.d7ddab1b.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ka.f824f11d.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/kk.47fc56a3.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/km.c82bef2f.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/kn.23e0e3c9.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ko.d5b64cf5.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ku.6d277026.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ky.d6ab2e13.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/lb.574de926.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/lo.7da82b48.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/lt.02348af7.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/lv.24090fc8.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/me.4731957d.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/mi.3b6363b6.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/mk.1a30360b.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ml.f4700c44.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/mn.1b82eec3.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/mr.7f7a4732.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ms-my.7f8aaec2.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ms.9f14afaf.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/mt.13c0b472.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/my.3d71aaef.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/nb.f4123afe.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ne.5dd68bee.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/nl-be.13b86c86.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/nl.9e9a9ef8.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/nn.3063ec30.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/oc-lnc.45e614da.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/pa-in.eaee811c.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/pl.ff75d766.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/pt-br.f71e3d46.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/pt.a7ad75a2.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ro.27d931ad.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ru.7f6b2509.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sd.779aefc8.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/se.dfa7884d.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/si.6730fa75.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sk.610f1a73.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sl.66ec923a.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sq.403c7e2b.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sr-cyrl.e0b8ebf6.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sr.a8ca8523.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ss.d3cdf4fe.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sv.25a399b0.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/sw.d43cf3fe.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ta.205c2039.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/te.f3f0e4e2.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tet.93a211da.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tg.57d7153e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/th.27e62df2.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tk.0a3e9099.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tl-ph.c0483d2c.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tlh.1e83d30d.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tr.5842c3da.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tzl.9fbb38ee.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tzm-latn.5ef2fe53.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/tzm.dd7d1dee.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ug-cn.444e4f7b.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/uk.aa6f0e17.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/ur.46fbee2e.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/uz-latn.6e394353.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/uz.baf3f7f5.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/vi.cf634140.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/x-pseudo.e30e8cf8.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/yo.1e083554.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/zh-cn.290abc78.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/zh-hk.21b03e4c.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/zh-mo.1bbc0a78.chunk.js'},{'revision':null,'url':'./static/js/moment-locales/zh-tw.71287c7a.chunk.js'},{'revision':null,'url':'./static/media/roboto-latin-100.a45108d3b34af91f9113.woff'},{'revision':null,'url':'./static/media/roboto-latin-100.c2aa4ab115bf9c6057cb.woff2'},{'revision':null,'url':'./static/media/roboto-latin-100italic.451d4e559d6f57cdf6a1.woff'},{'revision':null,'url':'./static/media/roboto-latin-100italic.7f839a8652da29745ce4.woff2'},{'revision':null,'url':'./static/media/roboto-latin-300.37a7069dc30fc663c878.woff2'},{'revision':null,'url':'./static/media/roboto-latin-300.865f928cbabcc9f8f2b5.woff'},{'revision':null,'url':'./static/media/roboto-latin-300italic.bd5b7a13f2c52b531a2a.woff'},{'revision':null,'url':'./static/media/roboto-latin-300italic.c64e7e354c88e613c77c.woff2'},{'revision':null,'url':'./static/media/roboto-latin-400.176f8f5bd5f02b3abfcf.woff2'},{'revision':null,'url':'./static/media/roboto-latin-400.49ae34d4cc6b98c00c69.woff'},{'revision':null,'url':'./static/media/roboto-latin-400italic.b1d9d9904bfca8802a63.woff'},{'revision':null,'url':'./static/media/roboto-latin-400italic.d022bc70dc1bf7b3425d.woff2'},{'revision':null,'url':'./static/media/roboto-latin-500.cea99d3e3e13a3a599a0.woff'},{'revision':null,'url':'./static/media/roboto-latin-500.f5b74d7ffcdf85b9dd60.woff2'},{'revision':null,'url':'./static/media/roboto-latin-500italic.0d8bb5b3ee5f5dac9e44.woff2'},{'revision':null,'url':'./static/media/roboto-latin-500italic.18d00f739ff1e1c52db1.woff'},{'revision':null,'url':'./static/media/roboto-latin-700.2267169ee7270a22a963.woff'},{'revision':null,'url':'./static/media/roboto-latin-700.c18ee39fb002ad58b6dc.woff2'},{'revision':null,'url':'./static/media/roboto-latin-700italic.7d8125ff7f707231fd89.woff2'},{'revision':null,'url':'./static/media/roboto-latin-700italic.9360531f9bb817f917f0.woff'},{'revision':null,'url':'./static/media/roboto-latin-900.870c8c1486f76054301a.woff2'},{'revision':null,'url':'./static/media/roboto-latin-900.bac8362e7a6ea60b6983.woff'},{'revision':null,'url':'./static/media/roboto-latin-900italic.c20d916c1a1b094c1cec.woff'},{'revision':null,'url':'./static/media/roboto-latin-900italic.cb5ad999740e9d8a8bd1.woff2'}]||[],n=t.find((e=>{let{url:t}=e;return t.endsWith("index.html")}));U([n]);const r="./index.html";b((t=>{let{request:n,url:r}=t;return"navigate"===n.mode&&(!r.pathname.startsWith("/_")&&!(e.test(r.pathname)&&!r.pathname.endsWith("index.html")))}),(e=>{let{request:t}=e;return fetch(t).then((e=>"opaqueredirect"!==e.type&&e.ok?N(r):e)).catch((()=>N(r)))}));x(t.filter((e=>e!==n))),x(self.__WB_BUILD_MANIFEST||[])}var t;b(ce,le),b((e=>{let{url:t}=e;return _e(t)&&/\.(jpg|gif|png|bmp|tiff|ico|woff)$/.test(t.pathname)}),new q({cacheName:"other-assets"})),b((e=>{let{url:t}=e;return _e(t)}),new W({cacheName:"app-shell"})),t=new class extends v{_handle(e,t){return t.fetch(e).catch((t=>caches.match(e).then((e=>{if(!e)throw t;return e}))))}},I().setDefaultHandler(t),self.addEventListener("message",(e=>{e.data&&(e.data.type===H.getClientsInfo&&async function(e){const t=e.source.id,n=await self.clients.matchAll({includeUncontrolled:!0});self.clients.get(t).then((e=>{e.postMessage({type:H.clientsInfo,payload:{clientsCount:n.length}})}))}(e),e.data.type===H.claimClients&&async function(){self.clients.claim(),(await self.clients.matchAll({includeUncontrolled:!0})).forEach((e=>e.navigate(e.url)))}(),e.data.type===H.skipWaiting&&self.skipWaiting(),e.data.type===H.startRecording&&function(e){var t,n,r;if(console.debug("[SW] Starting recording"),null===(t=e.data.payload)||void 0===t||!t.sectionId)throw new Error("[SW] No section ID specified to record");const s=e.source.id;if(ae(s))throw new Error("[SW] Can't start a new recording; a recording is already in process");const i={sectionId:null===(n=e.data.payload)||void 0===n?void 0:n.sectionId,pendingRequests:new Set,fulfilledRequests:0,recordingTimeout:void 0,recordingTimeoutDelay:(null===(r=e.data.payload)||void 0===r?void 0:r.recordingTimeoutDelay)||1e3,confirmationTimeout:void 0};self.clientRecordingStates[s]=i,self.clients.get(s).then((e=>{e.postMessage({type:H.recordingStarted})}))}(e),e.data.type===H.completeRecording&&async function(e){try{const t=self.clientRecordingStates[e];console.debug("[SW] Completing recording",{clientId:e,recordingState:t}),clearTimeout(t.confirmationTimeout),void 0===self.dbPromise&&(self.dbPromise=se()),(await self.dbPromise).put(re,{sectionId:t.sectionId,lastUpdated:new Date,requests:t.fulfilledRequests}).catch(console.error);const n=await caches.open(t.sectionId),r=await caches.open(he("temp",e));(await r.keys()).forEach((async e=>{const t=await r.match(e);n.put(e,t)})),de(e),self.clients.get(e).then((e=>{e.postMessage({type:H.recordingCompleted})}))}catch(t){ue(t,e)}}(e.source.id))})),self.addEventListener("activate",(e=>{e.waitUntil(function(){const e=se();return self.dbPromise=e,e}().then(ye))}))}()}()}();
//# sourceMappingURL=service-worker.js.map