const OFFLINE_CACHE='coderflow-offline-v1',OFFLINE_URL='/offline.html';self['addEventListener']('install',_0x301d45=>{_0x301d45['waitUntil'](caches['open'](OFFLINE_CACHE)['then'](_0x2e2906=>_0x2e2906['add'](new Request(OFFLINE_URL,{'cache':'reload'})))),self['skipWaiting']();}),self['addEventListener']('activate',_0x1b4221=>{_0x1b4221['waitUntil'](((async()=>{const _0x507890=await caches['keys']();await Promise['all'](_0x507890['filter'](_0x4238df=>_0x4238df!==OFFLINE_CACHE)['map'](_0xae108b=>caches['delete'](_0xae108b))),await self['clients']['claim']();})()));}),self['addEventListener']('fetch',_0x3d9cac=>{const _0xecce74=_0x3d9cac['request'];if(_0xecce74['mode']!=='navigate')return;_0x3d9cac['respondWith'](((async()=>{try{return await fetch(_0xecce74);}catch(_0x28f81e){const _0x5935a7=await caches['open'](OFFLINE_CACHE),_0x4570f5=await _0x5935a7['match'](OFFLINE_URL);return _0x4570f5||Response['error']();}})()));}),self['addEventListener']('push',_0x4f86a5=>{if(!_0x4f86a5['data'])return;let _0xef0c2a;try{_0xef0c2a=_0x4f86a5['data']['json']();}catch(_0x4081af){_0xef0c2a={'title':'CoderFlow','body':_0x4f86a5['data']['text']()};}const _0x352734=_0xef0c2a['title']||'CoderFlow',_0x280013={'body':_0xef0c2a['body']||'','tag':_0xef0c2a['tag']||undefined,'icon':_0xef0c2a['icon']||'/favicon-32.png','badge':_0xef0c2a['badge']||'/favicon-16.png','data':_0xef0c2a['data']||{},'requireInteraction':![]};_0x4f86a5['waitUntil'](self['registration']['showNotification'](_0x352734,_0x280013));}),self['addEventListener']('notificationclick',_0x508ff0=>{_0x508ff0['notification']['close']();const _0x495fa2=_0x508ff0['notification']['data']?.['url']||'/';_0x508ff0['waitUntil'](((async()=>{const _0x330e17=await self['clients']['matchAll']({'type':'window','includeUncontrolled':!![]});for(const _0x2b229e of _0x330e17){try{const _0x46e3e8=new URL(_0x2b229e['url']),_0x93f3ef=new URL(_0x495fa2,self['location']['origin']);if(_0x46e3e8['pathname']===_0x93f3ef['pathname']&&_0x46e3e8['search']===_0x93f3ef['search']){if('focus'in _0x2b229e)return _0x2b229e['focus']();}}catch(_0x23e110){}}if(self['clients']['openWindow'])return self['clients']['openWindow'](_0x495fa2);})()));});