const OFFLINE_CACHE='coderflow-offline-v1',OFFLINE_URL='/offline.html';self['addEventListener']('install',_0x5912f8=>{_0x5912f8['waitUntil'](caches['open'](OFFLINE_CACHE)['then'](_0x2731fa=>_0x2731fa['add'](new Request(OFFLINE_URL,{'cache':'reload'})))),self['skipWaiting']();}),self['addEventListener']('activate',_0x56c4e8=>{_0x56c4e8['waitUntil'](((async()=>{const _0x574b32=await caches['keys']();await Promise['all'](_0x574b32['filter'](_0x4840aa=>_0x4840aa!==OFFLINE_CACHE)['map'](_0x36fe48=>caches['delete'](_0x36fe48))),await self['clients']['claim']();})()));}),self['addEventListener']('fetch',_0x25517=>{const _0x1d8182=_0x25517['request'];if(_0x1d8182['mode']!=='navigate')return;_0x25517['respondWith'](((async()=>{try{return await fetch(_0x1d8182);}catch(_0xaaeeba){const _0x388664=await caches['open'](OFFLINE_CACHE),_0xbe299a=await _0x388664['match'](OFFLINE_URL);return _0xbe299a||Response['error']();}})()));}),self['addEventListener']('push',_0x3e79b5=>{if(!_0x3e79b5['data'])return;let _0x114d69;try{_0x114d69=_0x3e79b5['data']['json']();}catch(_0x5382a0){_0x114d69={'title':'CoderFlow','body':_0x3e79b5['data']['text']()};}const _0x23cb78=_0x114d69['title']||'CoderFlow',_0x2f56dd={'body':_0x114d69['body']||'','tag':_0x114d69['tag']||undefined,'icon':_0x114d69['icon']||'/favicon-32.png','badge':_0x114d69['badge']||'/favicon-16.png','data':_0x114d69['data']||{},'requireInteraction':![]};Array['isArray'](_0x114d69['actions'])&&_0x114d69['actions']['length']>0x0&&(_0x2f56dd['actions']=_0x114d69['actions']),_0x3e79b5['waitUntil'](self['registration']['showNotification'](_0x23cb78,_0x2f56dd));}),self['addEventListener']('notificationclick',_0x33387f=>{_0x33387f['notification']['close']();if(_0x33387f['action']==='dismiss')return;const _0x1545fc=_0x33387f['notification']['data']?.['url']||'/';_0x33387f['waitUntil'](((async()=>{const _0x276de4=await self['clients']['matchAll']({'type':'window','includeUncontrolled':!![]});for(const _0x3a3e9f of _0x276de4){try{const _0x4ed10c=new URL(_0x3a3e9f['url']),_0x14673b=new URL(_0x1545fc,self['location']['origin']);if(_0x4ed10c['pathname']===_0x14673b['pathname']&&_0x4ed10c['search']===_0x14673b['search']){if('focus'in _0x3a3e9f)return _0x3a3e9f['focus']();}}catch(_0x57283c){}}if(self['clients']['openWindow'])return self['clients']['openWindow'](_0x1545fc);})()));});