@enhance-eng/sandbox 0.3.16 → 0.3.17-dev.test789
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/assets/enhance-runtime.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +36 -5
- package/dist/index.js +1 -1
- package/dist/sw-enhance.js +1 -1
- package/dist/vite/index.d.ts +11 -2
- package/dist/vite/index.js +1 -1
- package/package.json +4 -5
- package/dist/postinstall.d.ts +0 -2
- package/dist/postinstall.js +0 -1
- package/enhance.config.sample.json +0 -4
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @enhance-eng/sandbox
|
|
2
|
+
|
|
3
|
+
Enhance sandbox library for adding preview functionality to your application.
|
|
4
|
+
|
|
5
|
+
**Supported frameworks:** React SPAs and statically generated sites. SSR is not supported.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @enhance-eng/sandbox
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Vite
|
|
14
|
+
|
|
15
|
+
Add the plugin to your Vite config:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
// vite.config.ts
|
|
19
|
+
import { enhance } from "@enhance-eng/sandbox/vite";
|
|
20
|
+
|
|
21
|
+
export default defineConfig({
|
|
22
|
+
plugins: [enhance()],
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
That's it. The plugin handles everything automatically.
|
|
27
|
+
|
|
28
|
+
## Other Build Tools
|
|
29
|
+
|
|
30
|
+
For non-Vite setups, use the CLI to copy the required assets to your public directory:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx enhance-sandbox prepare-sw --public-dir ./public
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Then initialize Enhance in your application entry point:
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { Enhance } from "@enhance-eng/sandbox";
|
|
40
|
+
|
|
41
|
+
Enhance.init();
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Run the CLI as part of your build process to keep assets up to date.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x342511=_0x3436;(function(_0x15343a,_0x5258b5){const _0x5422c0=_0x3436,_0x5b7ad5=_0x15343a();while(!![]){try{const _0x9f5a0e=-parseInt(_0x5422c0(0x1f1))/0x1*(-parseInt(_0x5422c0(0x282))/0x2)+-parseInt(_0x5422c0(0x228))/0x3*(-parseInt(_0x5422c0(0x296))/0x4)+-parseInt(_0x5422c0(0x234))/0x5+-parseInt(_0x5422c0(0x254))/0x6+-parseInt(_0x5422c0(0x2b1))/0x7+parseInt(_0x5422c0(0x299))/0x8*(-parseInt(_0x5422c0(0x260))/0x9)+parseInt(_0x5422c0(0x247))/0xa;if(_0x9f5a0e===_0x5258b5)break;else _0x5b7ad5['push'](_0x5b7ad5['shift']());}catch(_0x260a31){_0x5b7ad5['push'](_0x5b7ad5['shift']());}}}(_0x3a8c,0xb5bcf));function normalizeOptions(_0x3cc3c7){const _0x4c63c6=_0x3436,_0x4d590a=_0x3cc3c7[_0x4c63c6(0x29c)]??{};return{'callbackBypass':_0x3cc3c7[_0x4c63c6(0x241)],'overlay':{'enabled':!![],'position':_0x4c63c6(0x222),'enableViteHmr':_0x4d590a[_0x4c63c6(0x20c)]??![]},'logLevel':_0x4c63c6(0x28d),'swPath':_0x4c63c6(0x218),'overlayPath':_0x4d590a[_0x4c63c6(0x264)]??_0x4c63c6(0x1fc),'runtimeScriptPath':_0x4c63c6(0x245),'security':_0x4d590a[_0x4c63c6(0x20a)]??_0x4c63c6(0x2b3),'backendUrl':_0x4d590a['backendUrl']??_0x4c63c6(0x283)};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x471030=_0x3436;try{const _0x535805=new URLSearchParams(window[_0x471030(0x28f)][_0x471030(0x27f)]);return _0x535805[_0x471030(0x1f2)]('enhancementUrl')?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x342511(0x24c),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x27080b){const _0x3593b4=_0x342511;console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x1fe)),console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x225)+_0x27080b[_0x3593b4(0x264)]),console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x268)+_0x27080b[_0x3593b4(0x27b)]),currentOptions=_0x27080b['options'],toggleHandler=_0x27080b[_0x3593b4(0x258)];if(overlayController){console['log'](LOG_PREFIX+_0x3593b4(0x22d)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x3593b4(0x253)),overlayLoadPromise;console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x279)),overlayLoadPromise=doLoadOverlay(_0x27080b);try{await overlayLoadPromise,console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x1ed));}catch(_0x3147b9){console[_0x3593b4(0x250)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x3147b9);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x10ee8a){const _0x364537=_0x342511;console[_0x364537(0x29e)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x364537(0x226)){console[_0x364537(0x29e)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x364537(0x1fb)]){console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x255)),overlayController=window[_0x364537(0x1fb)],overlayController[_0x364537(0x258)](_0x10ee8a[_0x364537(0x258)]),updateOverlay();return;}console[_0x364537(0x29e)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x10ee8a['enableViteHmr']&&(console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x28a)),await setupRemoteHMR(_0x10ee8a[_0x364537(0x264)]));console['log'](LOG_PREFIX+_0x364537(0x1f6)+_0x10ee8a[_0x364537(0x264)]);const _0x4e1111=Date['now'](),_0x3f3bb1=await import(_0x10ee8a[_0x364537(0x264)]);console['log'](LOG_PREFIX+_0x364537(0x220)+(Date['now']()-_0x4e1111)+'ms'),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x259),Object[_0x364537(0x22f)](_0x3f3bb1));if(typeof _0x3f3bb1?.[_0x364537(0x27a)]!==_0x364537(0x21b)){console[_0x364537(0x250)](LOG_PREFIX+_0x364537(0x1ec)),console['error'](LOG_PREFIX+_0x364537(0x26b),Object[_0x364537(0x22f)](_0x3f3bb1));return;}console['log'](LOG_PREFIX+_0x364537(0x25b));const _0x4f5e59=_0x3f3bb1[_0x364537(0x27a)]();console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x269),_0x4f5e59),overlayController=_0x4f5e59,window[_0x364537(0x1fb)]=_0x4f5e59,_0x4f5e59['onToggle'](_0x10ee8a[_0x364537(0x258)]),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x295)),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x205)),updateOverlay();}catch(_0x3f60b9){console[_0x364537(0x250)](LOG_PREFIX+_0x364537(0x2a5),_0x3f60b9);}}function updateOverlay(){const _0x5e3f95=_0x342511;console['log'](LOG_PREFIX+_0x5e3f95(0x1e8)),console[_0x5e3f95(0x29e)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x5e3f95(0x20e)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5e3f95(0x29e)](LOG_PREFIX+_0x5e3f95(0x23d));return;}const _0x34e329=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x5e3f95(0x243)](_0x34e329,null,0x2)),overlayController[_0x5e3f95(0x286)](_0x34e329),console[_0x5e3f95(0x29e)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x2618e4){const _0x32dfaa=_0x342511,_0x401a5f=getEnhancementUrl();return console[_0x32dfaa(0x29e)](LOG_PREFIX+_0x32dfaa(0x20f)+_0x401a5f),console[_0x32dfaa(0x29e)](LOG_PREFIX+_0x32dfaa(0x209)+state[_0x32dfaa(0x276)]),console['log'](LOG_PREFIX+_0x32dfaa(0x232)+state[_0x32dfaa(0x285)]),{'enhancementUrl':_0x401a5f,'enabled':state['enabled'],'controlled':state[_0x32dfaa(0x285)],'overlayPosition':_0x2618e4[_0x32dfaa(0x27d)][_0x32dfaa(0x216)],'securityMode':_0x2618e4[_0x32dfaa(0x20a)],'backendBaseUrl':_0x2618e4[_0x32dfaa(0x214)]};}async function setupRemoteHMR(_0x546ed9){const _0x40ae93=_0x342511;console[_0x40ae93(0x29e)](LOG_PREFIX+_0x40ae93(0x25d)+_0x546ed9);if(typeof window===_0x40ae93(0x226))return;try{const _0x2901c9=new URL(_0x546ed9,window[_0x40ae93(0x28f)][_0x40ae93(0x22e)]),_0xbf9ee4=_0x2901c9['origin'];console['log'](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0xbf9ee4+_0x40ae93(0x203)+window[_0x40ae93(0x28f)]['origin']);if(_0xbf9ee4===window[_0x40ae93(0x28f)][_0x40ae93(0x22e)]){console[_0x40ae93(0x29e)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x40ae93(0x287)),await ensureReactRefreshPreamble(_0xbf9ee4),await ensureViteClient(_0xbf9ee4),console['log'](LOG_PREFIX+_0x40ae93(0x2aa));}catch(_0x41b339){console[_0x40ae93(0x20d)](LOG_PREFIX+_0x40ae93(0x246),_0x41b339);}}async function ensureReactRefreshPreamble(_0x29de09){const _0x455bf8=_0x342511;window[_0x455bf8(0x1e6)]??(window[_0x455bf8(0x1e6)]=new Set());if(window[_0x455bf8(0x1e6)][_0x455bf8(0x25f)](_0x29de09)){console[_0x455bf8(0x29e)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x29de09);return;}console[_0x455bf8(0x29e)](LOG_PREFIX+_0x455bf8(0x221)+_0x29de09+_0x455bf8(0x24d));const _0x46f3df=await import(_0x29de09+_0x455bf8(0x2a6)),_0x4efa0a=_0x46f3df&&typeof _0x46f3df===_0x455bf8(0x256)&&_0x455bf8(0x248)in _0x46f3df?_0x46f3df[_0x455bf8(0x248)]:_0x46f3df;if(!isRefreshRuntime(_0x4efa0a)){console[_0x455bf8(0x20d)](LOG_PREFIX+_0x455bf8(0x266));return;}_0x4efa0a[_0x455bf8(0x1ea)](window),window[_0x455bf8(0x236)]=()=>{},window[_0x455bf8(0x292)]=()=>_0x1fdc1e=>_0x1fdc1e,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x455bf8(0x1e6)]['add'](_0x29de09),console[_0x455bf8(0x29e)](LOG_PREFIX+_0x455bf8(0x290)+_0x29de09);}async function ensureViteClient(_0x1b6c8d){const _0x892529=_0x342511;window[_0x892529(0x289)]??(window[_0x892529(0x289)]=new Set());if(window['__viteHMRLoaded'][_0x892529(0x25f)](_0x1b6c8d)){console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x244)+_0x1b6c8d);return;}console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x278)+_0x1b6c8d+_0x892529(0x24d)),await import(_0x1b6c8d+_0x892529(0x204)),window['__viteHMRLoaded'][_0x892529(0x1f8)](_0x1b6c8d),console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x2a9)+_0x1b6c8d);}function isRefreshRuntime(_0x1e8fba){const _0x3a75d2=_0x342511;return typeof _0x1e8fba==='object'&&_0x1e8fba!==null&&_0x3a75d2(0x1ea)in _0x1e8fba&&typeof _0x1e8fba[_0x3a75d2(0x1ea)]==='function';}var WORKER_MESSAGE_CONFIG=_0x342511(0x20b),WORKER_MESSAGE_DISABLE=_0x342511(0x235),WORKER_MESSAGE_REQUEST_CONFIG=_0x342511(0x242),LOG_PREFIX2=_0x342511(0x212),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x798642){const _0x22412b=_0x342511;console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x23a)),console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20swPath:\x20'+_0x798642[_0x22412b(0x21a)]);if(!(_0x22412b(0x23f)in navigator)){console['warn'](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x5e3135=navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)];console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x227),_0x5e3135?.[_0x22412b(0x206)]??_0x22412b(0x2ac)),console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20Controller\x20state:',_0x5e3135?.[_0x22412b(0x2a1)]??'N/A');const _0x2862b4=!!_0x5e3135;currentOptions2=_0x798642,configGetter=()=>buildWorkerConfiguration(_0x798642),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x21f));const _0x48dc52=await detectBlockingServiceWorker(_0x798642[_0x22412b(0x21a)]);if(_0x48dc52){console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x1ee)+_0x48dc52),console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x231));return;}console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x21e));try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x798642[_0x22412b(0x21a)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x22412b(0x23f)][_0x22412b(0x272)](_0x798642[_0x22412b(0x21a)],{'scope':'/'}),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x1e5),{'scope':registration['scope'],'active':registration[_0x22412b(0x219)]?.[_0x22412b(0x206)],'waiting':registration['waiting']?.[_0x22412b(0x206)],'installing':registration[_0x22412b(0x277)]?.[_0x22412b(0x206)]}),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x293));const _0x2842d4=await navigator['serviceWorker']['ready'];console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x2842d4[_0x22412b(0x219)]?.[_0x22412b(0x206)]);const _0x3949ab=ownsCurrentController(_0x798642[_0x22412b(0x21a)]);state[_0x22412b(0x285)]=_0x3949ab,console['log'](LOG_PREFIX2+_0x22412b(0x233)+_0x3949ab),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x26d),navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)]?.[_0x22412b(0x206)]??_0x22412b(0x2ac));if(!_0x2862b4&&!navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)]){console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x229)),window['location'][_0x22412b(0x297)]();return;}console['log'](LOG_PREFIX2+_0x22412b(0x23c)),attachMessageListener(),console['log'](LOG_PREFIX2+'\x20Sending\x20initial\x20configuration...'),await sendConfiguration();if(state['enabled']){const _0x53e38c=document[_0x22412b(0x26e)](_0x22412b(0x21d))!==null;console['log'](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x53e38c);if(!_0x53e38c){console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x207)),window[_0x22412b(0x28f)][_0x22412b(0x297)]();return;}}console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x29f)),updateOverlay(),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x26a));}catch(_0x14566e){console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x2b0),_0x14566e);}}async function sendConfiguration(){const _0xe6306b=_0x342511;console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x22b)),console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x2a0)+state[_0xe6306b(0x276)]+_0xe6306b(0x1f0)+!!configGetter);if(!state[_0xe6306b(0x276)]||!configGetter){console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x24a));return;}const _0x22106b=await resolveWorker();if(!_0x22106b){console[_0xe6306b(0x20d)](LOG_PREFIX2+_0xe6306b(0x298));return;}const _0x348c44=configGetter();console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x29b),JSON[_0xe6306b(0x243)](_0x348c44,null,0x2)),_0x22106b[_0xe6306b(0x211)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x348c44}),console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x1fa));}function _0x3a8c(){const _0x251f9c=['\x20Invalid\x20React\x20Refresh\x20runtime','searchParams','\x20enableViteHmr:\x20','\x20Controller\x20created:','\x20registerServiceWorker()\x20complete','\x20Available\x20exports:','MIT','\x20Current\x20controller\x20after\x20ready:','querySelector','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','public','scope','register','replaceState','\x20detectBlocking\x20error:','dist','enabled','installing','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Starting\x20fresh\x20overlay\x20load...','createOverlay','enableViteHmr','./dist/index.cjs','overlay',',\x20owns=','search','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Document\x20readyState:\x20','2DHNnty','https://api.enhancelabs.ai','bin/enhance-sandbox.js','controlled','update','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20enhancementUrl:\x20','__viteHMRLoaded','\x20Setting\x20up\x20remote\x20HMR...','\x20Unregistering\x20SW...','waiting','info','module','location','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','$RefreshSig$','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','^24.10.1','\x20Overlay\x20controller\x20initialized\x20and\x20cached','1704292cdngYX','reload','\x20No\x20service\x20worker\x20active\x20to\x20configure','64mNzvGx','\x20Message\x20listener\x20detached','\x20Sending\x20config\x20to\x20SW:','__development','href','log','\x20Updating\x20overlay...','\x20state.enabled:\x20','state','\x20resolveWorker:','sw-enhance','0.3.16','\x20Failed\x20to\x20import/create\x20overlay:','/@react-refresh','delete','startsWith','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20HMR\x20setup\x20complete','data','none','type','readyState','enhancement','\x20Failed\x20to\x20register\x20service\x20worker:','4986345LFAfte','controller','permissive','\x20Registration\x20returned:','__enhanceReactRefreshInstalledOrigins','./dist/vite/index.js','\x20updateOverlay()\x20called','removeEventListener','injectIntoGlobalHook','state:\x20','\x20Module\x20missing\x20createOverlay\x20export!','\x20loadOverlay()\x20complete','\x20BLOCKING\x20SW\x20detected:\x20','enhancementUrl',',\x20configGetter:\x20','320359bATfUA','get','explicitDisable','\x20No\x20current\x20controller','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Importing\x20overlay\x20module\x20from:\x20','runtimeScriptPath','add','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','\x20Config\x20sent\x20to\x20SW','__enhanceOverlay','https://assets.enhancelabs.ai/overlay.js','./dist/index.d.ts','\x20loadOverlay()\x20called','\x20Current\x20URL:\x20','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','\x20URL\x20params\x20parsed:','message',',\x20page\x20origin:\x20','/@vite/client','\x20Calling\x20updateOverlay()...','scriptURL','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','^4.1.1','\x20composeOverlayState\x20-\x20state.enabled:\x20','security','enhance:configure','enableOverlayHmr','warn','\x20currentOptions\x20exists:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','N/A','postMessage','[Enhance\x20SW-Client]','off','backendUrl','^3.22.4','position','\x20SW\x20requested\x20config\x20-\x20sending...','/sw-enhance.js','active','swPath','function','[Enhance\x20Runtime]','[data-enhance-runtime-bootstrap]','\x20No\x20blocking\x20SW\x20found','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Module\x20imported\x20in\x20','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','bottom-right','./dist/index.js','some','\x20overlayPath:\x20','undefined','\x20Current\x20controller:','3ecFhuX','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','^11.1.0','\x20sendConfiguration()\x20called','https://','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','origin','keys','enable','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','4023085DsEMsz','enhance:disable','$RefreshReg$','enhance','\x20Raw\x20options:','bin','\x20registerServiceWorker()\x20called','\x20ownsServiceWorker?\x20scriptURL=','\x20Attaching\x20message\x20listener...','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','^7.2.4','serviceWorker','\x20Unregistering\x20any\x20existing\x20SW...','callbackBypass','enhance:request-config','stringify','\x20Vite\x20client\x20already\x20loaded\x20for\x20','/assets/enhance-runtime.js','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','19182760HBAlqg','default','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','history','[Enhance\x20Overlay]','...','includes','enhancementId','error','unregister','\x20Starting\x20overlay\x20load\x20(async)...','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','1792782FmECzf','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','object','\x20Enhancement\x20mode\x20ENABLED','onToggle','\x20Module\x20exports:','false','\x20Calling\x20createOverlay()...','disable','\x20setupRemoteHMR()\x20for\x20','\x20Message\x20listener\x20attached','has','117630FHHchi','getRegistration','init','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','overlayPath','addEventListener'];_0x3a8c=function(){return _0x251f9c;};return _0x3a8c();}async function unregisterServiceWorker(_0x460ab0){const _0x4b5d57=_0x342511;console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x4b5d57(0x23f)in navigator)){console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}detachMessageListener();try{const _0x19cc8d=registration??await navigator[_0x4b5d57(0x23f)]['getRegistration']('/');if(!_0x19cc8d){console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x249));return;}console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x19cc8d[_0x4b5d57(0x271)],'active':_0x19cc8d[_0x4b5d57(0x219)]?.[_0x4b5d57(0x206)],'waiting':_0x19cc8d[_0x4b5d57(0x28c)]?.['scriptURL'],'installing':_0x19cc8d['installing']?.[_0x4b5d57(0x206)]});const _0x62a986=[_0x19cc8d[_0x4b5d57(0x219)]?.[_0x4b5d57(0x206)],_0x19cc8d[_0x4b5d57(0x28c)]?.[_0x4b5d57(0x206)],_0x19cc8d[_0x4b5d57(0x277)]?.[_0x4b5d57(0x206)]],_0x21aec5=_0x62a986[_0x4b5d57(0x224)](_0x4f2c41=>_0x4f2c41&&ownsServiceWorker(_0x4f2c41,_0x460ab0));if(!_0x21aec5){console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x1f5));return;}_0x19cc8d[_0x4b5d57(0x219)]&&(console['log'](LOG_PREFIX2+_0x4b5d57(0x291)),_0x19cc8d[_0x4b5d57(0x219)][_0x4b5d57(0x211)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x28b)),await _0x19cc8d[_0x4b5d57(0x251)](),registration=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x36c796){console[_0x4b5d57(0x250)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x36c796);}}function attachMessageListener(){const _0x2a5631=_0x342511;if(!navigator[_0x2a5631(0x23f)]||messageListener){console[_0x2a5631(0x29e)](LOG_PREFIX2+_0x2a5631(0x200));return;}messageListener=_0x49d81c=>{const _0x1501ab=_0x2a5631,_0x199312=_0x49d81c[_0x1501ab(0x2ab)];console[_0x1501ab(0x29e)](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x199312);if(!_0x199312||typeof _0x199312!==_0x1501ab(0x256))return;_0x199312[_0x1501ab(0x2ad)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x1501ab(0x29e)](LOG_PREFIX2+_0x1501ab(0x217)),void sendConfiguration());},navigator[_0x2a5631(0x23f)][_0x2a5631(0x265)](_0x2a5631(0x202),messageListener),console[_0x2a5631(0x29e)](LOG_PREFIX2+_0x2a5631(0x25e));}function _0x3436(_0x3a1671,_0x35ef75){const _0x3a8c39=_0x3a8c();return _0x3436=function(_0x3436e3,_0xcd27d0){_0x3436e3=_0x3436e3-0x1e5;let _0x3118fb=_0x3a8c39[_0x3436e3];return _0x3118fb;},_0x3436(_0x3a1671,_0x35ef75);}function detachMessageListener(){const _0x15b31f=_0x342511;navigator[_0x15b31f(0x23f)]&&messageListener&&(navigator[_0x15b31f(0x23f)][_0x15b31f(0x1e9)]('message',messageListener),messageListener=null,console[_0x15b31f(0x29e)](LOG_PREFIX2+_0x15b31f(0x29a)));}function ownsServiceWorker(_0x25815f,_0x366bb7){const _0x462168=_0x342511,_0x1076f4=typeof window!=='undefined'?window[_0x462168(0x28f)][_0x462168(0x22e)]:'',_0x397283=new URL(_0x366bb7,_0x1076f4||void 0x0)['href'],_0x377007=_0x25815f===_0x397283||_0x25815f[_0x462168(0x24e)](_0x462168(0x2a3));return console[_0x462168(0x29e)](LOG_PREFIX2+_0x462168(0x23b)+_0x25815f+',\x20expected='+_0x397283+_0x462168(0x27e)+_0x377007),_0x377007;}function ownsCurrentController(_0x3e160c){const _0x1a0281=_0x342511;if(typeof navigator==='undefined')return![];const _0x537951=navigator[_0x1a0281(0x23f)]?.[_0x1a0281(0x2b2)];if(!_0x537951)return console[_0x1a0281(0x29e)](LOG_PREFIX2+_0x1a0281(0x1f4)),![];return ownsServiceWorker(_0x537951[_0x1a0281(0x206)],_0x3e160c);}async function detectBlockingServiceWorker(_0x16ca23){const _0x11a41a=_0x342511;if(!navigator[_0x11a41a(0x23f)])return null;try{const _0x21a74a=await navigator['serviceWorker'][_0x11a41a(0x261)]('/');console[_0x11a41a(0x29e)](LOG_PREFIX2+_0x11a41a(0x280),_0x21a74a?.['active']?.[_0x11a41a(0x206)]??_0x11a41a(0x2ac));const _0x2260a6=_0x21a74a?.[_0x11a41a(0x219)]?.['scriptURL'];if(!_0x2260a6)return null;if(ownsServiceWorker(_0x2260a6,_0x16ca23))return null;return _0x2260a6;}catch(_0x3e4dc8){return console['error'](LOG_PREFIX2+_0x11a41a(0x274),_0x3e4dc8),null;}}async function resolveWorker(){const _0x294b07=_0x342511,_0xb983fc=registration??await navigator[_0x294b07(0x23f)]?.[_0x294b07(0x261)]('/'),_0x79f3cf=_0xb983fc?.[_0x294b07(0x219)]??_0xb983fc?.[_0x294b07(0x28c)]??_0xb983fc?.[_0x294b07(0x277)]??null;return console[_0x294b07(0x29e)](LOG_PREFIX2+_0x294b07(0x2a2),_0x79f3cf?.['scriptURL']??'none',_0x294b07(0x1eb)+(_0x79f3cf?.[_0x294b07(0x2a1)]??_0x294b07(0x210))),_0x79f3cf;}function buildWorkerConfiguration(_0x3b0849){const _0x191640=_0x342511,_0x4f18ca=getEnhancementUrl();return console[_0x191640(0x29e)](LOG_PREFIX2+_0x191640(0x1f9)+_0x4f18ca),{'enhancementUrl':_0x4f18ca,'callbackBypass':_0x3b0849['callbackBypass'],'overlayPath':_0x3b0849[_0x191640(0x264)],'overlayEnableViteHmr':_0x3b0849[_0x191640(0x27d)]['enableViteHmr'],'runtimeScriptPath':_0x3b0849[_0x191640(0x1f7)],'swPath':_0x3b0849[_0x191640(0x21a)],'securityMode':_0x3b0849['security'],'backendUrl':_0x3b0849[_0x191640(0x214)]};}var LOG_PREFIX3=_0x342511(0x21c),initialized=![],options=null,Enhance={'init'(_0x337ed7){const _0x15368d=_0x342511,_0x397383=Date['now']();console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x397383),console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x1ff)+window[_0x15368d(0x28f)][_0x15368d(0x29d)]),console['log'](LOG_PREFIX3+_0x15368d(0x281)+document[_0x15368d(0x2ae)]),console['log'](LOG_PREFIX3+_0x15368d(0x238),JSON[_0x15368d(0x243)](_0x337ed7,null,0x2));if(initialized)return console[_0x15368d(0x20d)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),createController();initialized=!![],console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20First\x20initialization'),options=normalizeOptions(_0x337ed7),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](options,null,0x2));const _0x2620bf=parseUrlParams();console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x201),JSON[_0x15368d(0x243)](_0x2620bf,null,0x2));if(_0x2620bf[_0x15368d(0x1f3)])return cleanUrlParam(_0x15368d(0x237)),console['log'](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x2620bf['hasEnhancement'])return console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x257)),console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x288)+_0x2620bf[_0x15368d(0x1ef)]),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x2620bf[_0x15368d(0x24f)]),state[_0x15368d(0x276)]=!![],console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x252)),void loadOverlay({'overlayPath':options[_0x15368d(0x264)],'enableViteHmr':options[_0x15368d(0x27d)]['enableViteHmr'],'options':options,'onToggle':handleToggle}),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(options),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+_0x15368d(0x26f)),console['log'](LOG_PREFIX3+_0x15368d(0x240)),void unregisterServiceWorker(options[_0x15368d(0x21a)]),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),createController();}};function createController(){return{'enable'(){const _0x40bbdb=_0x3436;if(!options)return;state[_0x40bbdb(0x276)]=!![],void loadOverlay({'overlayPath':options[_0x40bbdb(0x264)],'enableViteHmr':options['overlay'][_0x40bbdb(0x27b)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x50c0cf=_0x3436;if(!options)return;state[_0x50c0cf(0x276)]=![],state[_0x50c0cf(0x285)]=![],updateOverlay(),void unregisterServiceWorker(options['swPath']);},'status'(){const _0x4763cb=_0x3436;return{'enabled':state[_0x4763cb(0x276)],'controlled':state[_0x4763cb(0x285)]};}};}function handleToggle(){const _0x5ca225=_0x342511,_0xf869ea=createController();state[_0x5ca225(0x276)]?_0xf869ea[_0x5ca225(0x25c)]():_0xf869ea[_0x5ca225(0x230)]();}function parseUrlParams(){const _0x366d18=_0x342511,_0x4cf7ca=new URL(window[_0x366d18(0x28f)][_0x366d18(0x29d)]),_0x1f2bd8=_0x4cf7ca['searchParams']['get'](_0x366d18(0x237))?.['toLowerCase'](),_0x6d8e43=_0x4cf7ca[_0x366d18(0x267)][_0x366d18(0x1f2)](_0x366d18(0x1ef)),_0xdd4c49=_0x4cf7ca[_0x366d18(0x267)]['get'](_0x366d18(0x2af));return{'hasEnhancement':Boolean(_0x6d8e43||_0xdd4c49),'explicitDisable':_0x1f2bd8==='0'||_0x1f2bd8===_0x366d18(0x25a)||_0x1f2bd8===_0x366d18(0x213),'enhancementUrl':_0x6d8e43,'enhancementId':_0xdd4c49};}function cleanUrlParam(_0xacce9b){const _0x31a4f8=_0x342511,_0x21243d=new URL(window['location']['href']);_0x21243d['searchParams']['has'](_0xacce9b)&&(_0x21243d['searchParams'][_0x31a4f8(0x2a7)](_0xacce9b),window[_0x31a4f8(0x24b)][_0x31a4f8(0x273)](null,document['title'],_0x21243d['toString']()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x342511(0x2a4),'type':_0x342511(0x28e),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x342511(0x26c),'main':_0x342511(0x27c),'module':'./dist/index.js','types':_0x342511(0x1fd),'exports':{'.':{'types':_0x342511(0x1fd),'import':_0x342511(0x223),'require':_0x342511(0x27c)},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x342511(0x1e7)}},'files':[_0x342511(0x275),_0x342511(0x239),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x342511(0x284)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','build':_0x342511(0x263),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x342511(0x22a),'zod':_0x342511(0x215)},'devDependencies':{'@types/node':_0x342511(0x294),'javascript-obfuscator':_0x342511(0x208),'tsup':'^8.5.1','vite':_0x342511(0x23e)},'publishConfig':{'access':_0x342511(0x270)}},DEFAULT_SERVICE_WORKER_PATH=_0x342511(0x218),DEFAULT_RUNTIME_PATH=_0x342511(0x245),PACKAGE_VERSION=typeof package_default['version']==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0x1a9653){const _0x8db22a=_0x342511;if(!_0x1a9653)return _0x1a9653;if(_0x1a9653[_0x8db22a(0x2a8)]('http://')||_0x1a9653[_0x8db22a(0x2a8)](_0x8db22a(0x22c)))return _0x1a9653;const _0x3256bc=_0x1a9653['replace'](/^\.\//,'');return _0x3256bc[_0x8db22a(0x2a8)]('/')?_0x3256bc:'/'+_0x3256bc;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x416e2f){const _0xf67fb1=_0x342511;return Enhance[_0xf67fb1(0x262)](_0x416e2f);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x5b3f98=_0x57c1;(function(_0x206a79,_0x55891b){const _0x5b52cf=_0x57c1,_0x573567=_0x206a79();while(!![]){try{const _0x4daa3a=-parseInt(_0x5b52cf(0x23c))/0x1+-parseInt(_0x5b52cf(0x1b4))/0x2*(-parseInt(_0x5b52cf(0x253))/0x3)+-parseInt(_0x5b52cf(0x267))/0x4+-parseInt(_0x5b52cf(0x281))/0x5+parseInt(_0x5b52cf(0x1f0))/0x6*(parseInt(_0x5b52cf(0x25d))/0x7)+-parseInt(_0x5b52cf(0x24e))/0x8*(-parseInt(_0x5b52cf(0x270))/0x9)+parseInt(_0x5b52cf(0x1b1))/0xa*(parseInt(_0x5b52cf(0x283))/0xb);if(_0x4daa3a===_0x55891b)break;else _0x573567['push'](_0x573567['shift']());}catch(_0x5a7027){_0x573567['push'](_0x573567['shift']());}}}(_0xfc83,0xb2795));var DEFAULT_OVERLAY_PATH=!![]?'https://assets.enhancelabs.ai/overlay.js':_0x5b3f98(0x1f3),DEFAULT_BACKEND_URL=!![]?_0x5b3f98(0x20a):_0x5b3f98(0x20a),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x5b3f98(0x1d3)](_0x5b3f98(0x26b),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x1751cd){const _0x382f8b=_0x5b3f98,_0x1bab2f=_0x1751cd[_0x382f8b(0x1df)]??{};return{'callbackBypass':_0x1751cd[_0x382f8b(0x244)]??[],'overlay':{'enabled':!![],'position':_0x382f8b(0x1f2),'enableViteHmr':_0x1bab2f[_0x382f8b(0x22a)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x382f8b(0x203),'swPath':'/sw-enhance.js','overlayPath':_0x1bab2f['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x1bab2f['security']??_0x382f8b(0x226),'backendUrl':_0x1bab2f[_0x382f8b(0x22f)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x46ee2e=_0x5b3f98;try{const _0x53204f=new URLSearchParams(window['location'][_0x46ee2e(0x21c)]);return _0x53204f['get'](_0x46ee2e(0x1f9))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x5b3f98(0x1d4),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x588684){const _0x3f1a26=_0x5b3f98;console['log'](LOG_PREFIX+_0x3f1a26(0x205)),console['log'](LOG_PREFIX+_0x3f1a26(0x219)+_0x588684[_0x3f1a26(0x257)]),console[_0x3f1a26(0x1d3)](LOG_PREFIX+_0x3f1a26(0x279)+_0x588684[_0x3f1a26(0x22d)]),currentOptions=_0x588684[_0x3f1a26(0x22b)],toggleHandler=_0x588684[_0x3f1a26(0x243)];if(overlayController){console[_0x3f1a26(0x1d3)](LOG_PREFIX+_0x3f1a26(0x280)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3f1a26(0x1d3)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x3f1a26(0x1d3)](LOG_PREFIX+_0x3f1a26(0x1ee)),overlayLoadPromise=doLoadOverlay(_0x588684);try{await overlayLoadPromise,console[_0x3f1a26(0x1d3)](LOG_PREFIX+_0x3f1a26(0x24c));}catch(_0x17595d){console[_0x3f1a26(0x1da)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x17595d);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x3398ec){const _0x5ecb53=_0x5b3f98;console[_0x5ecb53(0x1d3)](LOG_PREFIX+_0x5ecb53(0x1e6));if(typeof window===_0x5ecb53(0x24a)){console[_0x5ecb53(0x1d3)](LOG_PREFIX+_0x5ecb53(0x256));return;}if(window[_0x5ecb53(0x1bf)]){console[_0x5ecb53(0x1d3)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x5ecb53(0x1bf)];return;}console[_0x5ecb53(0x1d3)](LOG_PREFIX+_0x5ecb53(0x251));try{_0x3398ec['enableViteHmr']&&(console['log'](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x3398ec[_0x5ecb53(0x257)]));console[_0x5ecb53(0x1d3)](LOG_PREFIX+_0x5ecb53(0x26f)+_0x3398ec[_0x5ecb53(0x257)]);const _0xfd8f7f=Date[_0x5ecb53(0x1b6)](),_0x2da2e3=await import(_0x3398ec[_0x5ecb53(0x257)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x5ecb53(0x1b6)]()-_0xfd8f7f)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x5ecb53(0x239)](_0x2da2e3));if(typeof _0x2da2e3?.['createOverlay']!=='function'){console[_0x5ecb53(0x1da)](LOG_PREFIX+_0x5ecb53(0x20f)),console[_0x5ecb53(0x1da)](LOG_PREFIX+_0x5ecb53(0x235),Object['keys'](_0x2da2e3));return;}console[_0x5ecb53(0x1d3)](LOG_PREFIX+_0x5ecb53(0x269));const _0x3da864=_0x2da2e3[_0x5ecb53(0x1d2)]();console['log'](LOG_PREFIX+'\x20Controller\x20created:',_0x3da864),overlayController=_0x3da864,window[_0x5ecb53(0x1bf)]=_0x3da864,_0x3da864['onToggle'](_0x3398ec[_0x5ecb53(0x243)]),console[_0x5ecb53(0x1d3)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x5ecb53(0x1d3)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x1b9fd7){console[_0x5ecb53(0x1da)](LOG_PREFIX+_0x5ecb53(0x22c),_0x1b9fd7);}}function updateOverlay(){const _0x58b734=_0x5b3f98;console[_0x58b734(0x1d3)](LOG_PREFIX+_0x58b734(0x1c0)),console[_0x58b734(0x1d3)](LOG_PREFIX+_0x58b734(0x21a)+!!overlayController),console[_0x58b734(0x1d3)](LOG_PREFIX+_0x58b734(0x27a)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x58b734(0x1d3)](LOG_PREFIX+_0x58b734(0x26e));return;}const _0xf34d82=composeOverlayState(currentOptions);console[_0x58b734(0x1d3)](LOG_PREFIX+_0x58b734(0x271),JSON[_0x58b734(0x28b)](_0xf34d82,null,0x2)),overlayController[_0x58b734(0x24b)](_0xf34d82),console[_0x58b734(0x1d3)](LOG_PREFIX+_0x58b734(0x246));}function composeOverlayState(_0x1afaf6){const _0x9ac189=_0x5b3f98,_0x4844c5=getEnhancementUrl();return console[_0x9ac189(0x1d3)](LOG_PREFIX+_0x9ac189(0x27c)+_0x4844c5),console[_0x9ac189(0x1d3)](LOG_PREFIX+_0x9ac189(0x218)+state[_0x9ac189(0x25f)]),console[_0x9ac189(0x1d3)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state['controlled']),{'enhancementUrl':_0x4844c5,'enabled':state[_0x9ac189(0x25f)],'controlled':state[_0x9ac189(0x206)],'overlayPosition':_0x1afaf6[_0x9ac189(0x264)][_0x9ac189(0x24d)],'securityMode':_0x1afaf6['security'],'backendBaseUrl':_0x1afaf6[_0x9ac189(0x22f)],'appError':state[_0x9ac189(0x1dd)]};}async function setupRemoteHMR(_0x11d7ae){const _0x27012e=_0x5b3f98;console[_0x27012e(0x1d3)](LOG_PREFIX+_0x27012e(0x201)+_0x11d7ae);if(typeof window===_0x27012e(0x24a))return;try{const _0x2d9714=new URL(_0x11d7ae,window[_0x27012e(0x223)][_0x27012e(0x227)]),_0x2adc67=_0x2d9714['origin'];console[_0x27012e(0x1d3)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x2adc67+',\x20page\x20origin:\x20'+window[_0x27012e(0x223)]['origin']);if(_0x2adc67===window[_0x27012e(0x223)][_0x27012e(0x227)]){console[_0x27012e(0x1d3)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x27012e(0x1d3)](LOG_PREFIX+_0x27012e(0x262)),await ensureReactRefreshPreamble(_0x2adc67),await ensureViteClient(_0x2adc67),console['log'](LOG_PREFIX+_0x27012e(0x274));}catch(_0x18e8bb){console[_0x27012e(0x1e3)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x18e8bb);}}async function ensureReactRefreshPreamble(_0x5e0866){const _0x4dbb8e=_0x5b3f98;window['__enhanceReactRefreshInstalledOrigins']??(window[_0x4dbb8e(0x1f7)]=new Set());if(window[_0x4dbb8e(0x1f7)]['has'](_0x5e0866)){console[_0x4dbb8e(0x1d3)](LOG_PREFIX+_0x4dbb8e(0x1ff)+_0x5e0866);return;}console[_0x4dbb8e(0x1d3)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x5e0866+_0x4dbb8e(0x1fe));const _0x56d0e0=await import(_0x5e0866+_0x4dbb8e(0x263)),_0x45a469=_0x56d0e0&&typeof _0x56d0e0===_0x4dbb8e(0x1be)&&_0x4dbb8e(0x282)in _0x56d0e0?_0x56d0e0[_0x4dbb8e(0x282)]:_0x56d0e0;if(!isRefreshRuntime(_0x45a469)){console['warn'](LOG_PREFIX+_0x4dbb8e(0x234));return;}_0x45a469[_0x4dbb8e(0x1f4)](window),window[_0x4dbb8e(0x1d5)]=()=>{},window[_0x4dbb8e(0x27b)]=()=>_0x4b9216=>_0x4b9216,window[_0x4dbb8e(0x1f5)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x4dbb8e(0x1bb)](_0x5e0866),console['log'](LOG_PREFIX+_0x4dbb8e(0x23e)+_0x5e0866);}async function ensureViteClient(_0x52cf4e){const _0x3de7a8=_0x5b3f98;window[_0x3de7a8(0x229)]??(window[_0x3de7a8(0x229)]=new Set());if(window[_0x3de7a8(0x229)][_0x3de7a8(0x24f)](_0x52cf4e)){console[_0x3de7a8(0x1d3)](LOG_PREFIX+_0x3de7a8(0x221)+_0x52cf4e);return;}console[_0x3de7a8(0x1d3)](LOG_PREFIX+_0x3de7a8(0x249)+_0x52cf4e+_0x3de7a8(0x1fe)),await import(_0x52cf4e+'/@vite/client'),window['__viteHMRLoaded']['add'](_0x52cf4e),console[_0x3de7a8(0x1d3)](LOG_PREFIX+_0x3de7a8(0x1ec)+_0x52cf4e);}function isRefreshRuntime(_0x497bef){const _0xa5c6d5=_0x5b3f98;return typeof _0x497bef===_0xa5c6d5(0x1be)&&_0x497bef!==null&&_0xa5c6d5(0x1f4)in _0x497bef&&typeof _0x497bef['injectIntoGlobalHook']===_0xa5c6d5(0x217);}var WORKER_MESSAGE_CONFIG=_0x5b3f98(0x23d),WORKER_MESSAGE_DISABLE=_0x5b3f98(0x23a),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x1c1c03){const _0x1944a7=_0x5b3f98;console['log'](LOG_PREFIX2+_0x1944a7(0x1e9)),console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x1c8)+_0x1c1c03[_0x1944a7(0x255)]);if(!(_0x1944a7(0x288)in navigator)){console['warn'](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x1c1));const _0x1cdf61=navigator['serviceWorker']['controller'];console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x22e),_0x1cdf61?.[_0x1944a7(0x1d7)]??_0x1944a7(0x287)),console['log'](LOG_PREFIX2+_0x1944a7(0x1f6),_0x1cdf61?.['state']??_0x1944a7(0x25e));const _0x3033a4=!!_0x1cdf61;currentOptions2=_0x1c1c03,console['log'](LOG_PREFIX2+_0x1944a7(0x233));const _0x3cac42=await detectBlockingServiceWorker(_0x1c1c03[_0x1944a7(0x255)]);if(_0x3cac42){console[_0x1944a7(0x1da)](LOG_PREFIX2+_0x1944a7(0x20b)+_0x3cac42),console[_0x1944a7(0x1da)](LOG_PREFIX2+_0x1944a7(0x222));return;}console[_0x1944a7(0x1d3)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x213)+_0x1c1c03[_0x1944a7(0x255)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator['serviceWorker'][_0x1944a7(0x275)](_0x1c1c03['swPath'],{'scope':'/'}),console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x1ba),{'scope':registration[_0x1944a7(0x1c4)],'active':registration['active']?.[_0x1944a7(0x1d7)],'waiting':registration['waiting']?.[_0x1944a7(0x1d7)],'installing':registration[_0x1944a7(0x20e)]?.[_0x1944a7(0x1d7)]}),console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x1bc));const _0x21bd65=await navigator[_0x1944a7(0x288)][_0x1944a7(0x247)];console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x21e),_0x21bd65['active']?.[_0x1944a7(0x1d7)]);const _0x1155e8=ownsCurrentController(_0x1c1c03[_0x1944a7(0x255)]);state['controlled']=_0x1155e8,console[_0x1944a7(0x1d3)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x1155e8),console['log'](LOG_PREFIX2+_0x1944a7(0x1cc),navigator[_0x1944a7(0x288)][_0x1944a7(0x1ed)]?.[_0x1944a7(0x1d7)]??_0x1944a7(0x287));if(!_0x3033a4&&!navigator[_0x1944a7(0x288)][_0x1944a7(0x1ed)]){console['log'](LOG_PREFIX2+_0x1944a7(0x1c2)),window[_0x1944a7(0x223)]['reload']();return;}console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x266)),await sendConfiguration();if(state['enabled']){const _0x3e3206=document[_0x1944a7(0x208)](_0x1944a7(0x258))!==null;console['log'](LOG_PREFIX2+_0x1944a7(0x204)+_0x3e3206);if(!_0x3e3206){console['log'](LOG_PREFIX2+_0x1944a7(0x236)),window[_0x1944a7(0x223)][_0x1944a7(0x28a)]();return;}}console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x1d1)),updateOverlay(),console[_0x1944a7(0x1d3)](LOG_PREFIX2+_0x1944a7(0x259));}catch(_0x2f39f6){console[_0x1944a7(0x1da)](LOG_PREFIX2+_0x1944a7(0x1db),_0x2f39f6);}}async function sendConfiguration(){const _0x1dbdca=_0x5b3f98;console[_0x1dbdca(0x1d3)](LOG_PREFIX2+_0x1dbdca(0x224)),console[_0x1dbdca(0x1d3)](LOG_PREFIX2+'\x20state.enabled:\x20'+state['enabled']+_0x1dbdca(0x1c7)+!!currentOptions2);if(!state[_0x1dbdca(0x25f)]||!currentOptions2){console[_0x1dbdca(0x1d3)](LOG_PREFIX2+_0x1dbdca(0x1d0));return;}const _0x3a0dbb=await resolveWorker();if(!_0x3a0dbb){console[_0x1dbdca(0x1e3)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4067d7={'callbackBypass':currentOptions2[_0x1dbdca(0x244)],'securityMode':currentOptions2['security']};console[_0x1dbdca(0x1d3)](LOG_PREFIX2+_0x1dbdca(0x207),JSON['stringify'](_0x4067d7,null,0x2)),_0x3a0dbb[_0x1dbdca(0x242)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4067d7}),console[_0x1dbdca(0x1d3)](LOG_PREFIX2+_0x1dbdca(0x27f));}async function unregisterServiceWorker(_0x20ec93){const _0x1dc74c=_0x5b3f98;console[_0x1dc74c(0x1d3)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x1dc74c(0x288)in navigator)){console[_0x1dc74c(0x1d3)](LOG_PREFIX2+_0x1dc74c(0x240));return;}try{const _0x237865=registration??await navigator['serviceWorker'][_0x1dc74c(0x1d6)]('/');if(!_0x237865){console['log'](LOG_PREFIX2+_0x1dc74c(0x216));return;}console['log'](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x237865[_0x1dc74c(0x1c4)],'active':_0x237865[_0x1dc74c(0x1fc)]?.[_0x1dc74c(0x1d7)],'waiting':_0x237865[_0x1dc74c(0x1e4)]?.[_0x1dc74c(0x1d7)],'installing':_0x237865['installing']?.['scriptURL']});const _0x4388d9=[_0x237865['active']?.['scriptURL'],_0x237865[_0x1dc74c(0x1e4)]?.[_0x1dc74c(0x1d7)],_0x237865[_0x1dc74c(0x20e)]?.[_0x1dc74c(0x1d7)]],_0x458853=_0x4388d9[_0x1dc74c(0x1fa)](_0xeef6e0=>_0xeef6e0&&ownsServiceWorker(_0xeef6e0,_0x20ec93));if(!_0x458853){console[_0x1dc74c(0x1d3)](LOG_PREFIX2+_0x1dc74c(0x1cd));return;}_0x237865[_0x1dc74c(0x1fc)]&&(console[_0x1dc74c(0x1d3)](LOG_PREFIX2+_0x1dc74c(0x268)),_0x237865[_0x1dc74c(0x1fc)][_0x1dc74c(0x242)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x1dc74c(0x1d3)](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x237865[_0x1dc74c(0x26a)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x1dc74c(0x21b));}catch(_0x354a85){console[_0x1dc74c(0x1da)](LOG_PREFIX2+_0x1dc74c(0x202),_0x354a85);}}function ownsServiceWorker(_0x26bbd3,_0x100f3f){const _0x4bf489=_0x5b3f98,_0x5c7aa5=typeof window!==_0x4bf489(0x24a)?window['location'][_0x4bf489(0x227)]:'',_0x30f5e1=new URL(_0x100f3f,_0x5c7aa5||void 0x0)[_0x4bf489(0x215)],_0x5b0244=_0x26bbd3===_0x30f5e1||_0x26bbd3[_0x4bf489(0x1b7)](_0x4bf489(0x25a));return console['log'](LOG_PREFIX2+_0x4bf489(0x1f1)+_0x26bbd3+',\x20expected='+_0x30f5e1+',\x20owns='+_0x5b0244),_0x5b0244;}function ownsCurrentController(_0x3d694f){const _0x29fd14=_0x5b3f98;if(typeof navigator===_0x29fd14(0x24a))return![];const _0x4c5d08=navigator['serviceWorker']?.[_0x29fd14(0x1ed)];if(!_0x4c5d08)return console[_0x29fd14(0x1d3)](LOG_PREFIX2+_0x29fd14(0x23b)),![];return ownsServiceWorker(_0x4c5d08[_0x29fd14(0x1d7)],_0x3d694f);}async function detectBlockingServiceWorker(_0x5e06ea){const _0x43cc61=_0x5b3f98;if(!navigator[_0x43cc61(0x288)])return null;try{const _0x4c2825=await navigator[_0x43cc61(0x288)][_0x43cc61(0x1d6)]('/');console[_0x43cc61(0x1d3)](LOG_PREFIX2+_0x43cc61(0x1e8),_0x4c2825?.[_0x43cc61(0x1fc)]?.[_0x43cc61(0x1d7)]??_0x43cc61(0x287));const _0x10d880=_0x4c2825?.['active']?.[_0x43cc61(0x1d7)];if(!_0x10d880)return null;if(ownsServiceWorker(_0x10d880,_0x5e06ea))return null;return _0x10d880;}catch(_0x4c88a8){return console[_0x43cc61(0x1da)](LOG_PREFIX2+_0x43cc61(0x1e5),_0x4c88a8),null;}}async function resolveWorker(){const _0x16722f=_0x5b3f98,_0x1bab32=registration??await navigator[_0x16722f(0x288)]?.[_0x16722f(0x1d6)]('/'),_0xd35e3d=_0x1bab32?.[_0x16722f(0x1fc)]??_0x1bab32?.[_0x16722f(0x1e4)]??_0x1bab32?.[_0x16722f(0x20e)]??null;return console[_0x16722f(0x1d3)](LOG_PREFIX2+_0x16722f(0x228),_0xd35e3d?.[_0x16722f(0x1d7)]??_0x16722f(0x287),_0x16722f(0x25c)+(_0xd35e3d?.['state']??_0x16722f(0x25e))),_0xd35e3d;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x29dce4=_0x5b3f98;return typeof window!==_0x29dce4(0x24a)&&window[_0x29dce4(0x245)]===!![];}function setInitialized(_0x2cd02a){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x2cd02a);}function _0xfc83(){const _0x1c93d4=['\x20registerServiceWorker()\x20called','\x20Document\x20readyState:\x20','0.3.17','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','controller','\x20Starting\x20fresh\x20overlay\x20load...','message','48GzSkxg','\x20ownsServiceWorker?\x20scriptURL=','bottom-right','https://assets.enhancelabs.ai/overlay.js','injectIntoGlobalHook','__vite_plugin_react_preamble_installed__','\x20Controller\x20state:','__enhanceReactRefreshInstalledOrigins','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','enhancementUrl','some','readyState','active','replaceState','...','\x20React\x20Refresh\x20already\x20installed\x20for\x20','^11.1.0','\x20setupRemoteHMR()\x20for\x20','\x20Failed\x20to\x20unregister\x20service\x20worker:','info','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20loadOverlay()\x20called','controlled','\x20Sending\x20customer\x20config\x20to\x20SW:','querySelector','hasEnhancement','https://api.enhancelabs.ai','\x20BLOCKING\x20SW\x20detected:\x20','disable','https://','installing','\x20Module\x20missing\x20createOverlay\x20export!','runtimeURL','MIT','\x20Vite\x20error\x20detected:','\x20Registering\x20SW\x20at\x20','explicitDisable','href','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','function','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20overlayPath:\x20','\x20overlayController\x20exists:\x20','\x20SW\x20unregistered\x20successfully','search','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20SW\x20ready!\x20Active:','bun\x20version\x20patch\x20--no-git-tag-version','toLowerCase','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','location','\x20sendConfiguration()\x20called','\x20First\x20initialization','permissive','origin','\x20resolveWorker:','__viteHMRLoaded','enableOverlayHmr','options','\x20Failed\x20to\x20import/create\x20overlay:','enableViteHmr','\x20Current\x20controller:','backendUrl','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','searchParams','./dev/cli.js','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Available\x20exports:','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','tsc\x20--noEmit','\x20Raw\x20options:','keys','enhance:disable','\x20No\x20current\x20controller','1057683aDOJgT','enhance:configure','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','vite:beforeUpdate','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','postMessage','onToggle','callbackBypass','__enhanceInitialized','\x20Overlay\x20update\x20complete','ready','\x20URL\x20params\x20parsed:','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','undefined','update','\x20loadOverlay()\x20complete','position','16TaHDkR','has','\x20enhancementId:\x20','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','err','15951sJfkFU','__enhanceController','swPath','\x20No\x20window\x20object\x20-\x20skipping','overlayPath','[data-enhance-runtime-bootstrap]','\x20registerServiceWorker()\x20complete','sw-enhance','public','state:\x20','1139117PDavwD','N/A','enabled','/assets/enhance-runtime.js','__enhanceOptions','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','/@react-refresh','overlay','serviceWorkerURL','\x20Sending\x20customer\x20configuration...','386520FhsLPT','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Calling\x20createOverlay()...','unregister','[Enhance\x20Config]\x20Build-time\x20defaults:','get','string','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Importing\x20overlay\x20module\x20from:\x20','1915857XflCvl','\x20Updating\x20overlay\x20with\x20state:','^8.5.1','\x20init()\x20complete\x20-\x20normal\x20mode','\x20HMR\x20setup\x20complete','register','init','module','\x20enhancementUrl:\x20','\x20enableViteHmr:\x20','\x20currentOptions\x20exists:\x20','$RefreshSig$','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Normalized\x20options:','@enhance-eng/sandbox','\x20Config\x20sent\x20to\x20SW','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','4753935yArVri','default','10989vEGVdz','enhancementId','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Enhancement\x20mode\x20ENABLED','none','serviceWorker','\x20init()\x20complete\x20-\x20enhancement\x20mode','reload','stringify','0.0.0','10990ewYkIy','\x20Starting\x20overlay\x20load\x20(async)...','enhance','4RzSkYW','./dev/vite/index.js','now','includes','version','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Registration\x20returned:','add','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','./dev/vite/index.d.ts','object','__enhanceOverlay','\x20updateOverlay()\x20called','\x20Service\x20workers\x20supported','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','vite:error','scope','history','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller',',\x20currentOptions:\x20','\x20swPath:\x20','startsWith','/sw-enhance.js','dev/','\x20Current\x20controller\x20after\x20ready:','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','title','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Updating\x20overlay...','createOverlay','log','[Enhance\x20Overlay]','$RefreshReg$','getRegistration','scriptURL','\x20Current\x20URL:\x20','replace','error','\x20Failed\x20to\x20register\x20service\x20worker:','./dev/index.js','appError','./dev/index.d.ts','__development','off','false','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','warn','waiting','\x20detectBlocking\x20error:','\x20doLoadOverlay()\x20starting...','delete','\x20detectBlocking\x20-\x20existing\x20registration:'];_0xfc83=function(){return _0x1c93d4;};return _0xfc83();}function getOptions(){const _0x49fd8=_0x5b3f98;return typeof window!==_0x49fd8(0x24a)?window['__enhanceOptions']??null:null;}function setOptions(_0x2d5187){const _0x3514f8=_0x5b3f98;typeof window!=='undefined'&&(window[_0x3514f8(0x261)]=_0x2d5187);}var Enhance={'init'(_0x3cc1c7={}){const _0xfe33f7=_0x5b3f98,_0x431791=Date[_0xfe33f7(0x1b6)]();console['log'](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x431791),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x1d8)+window[_0xfe33f7(0x223)][_0xfe33f7(0x215)]),console['log'](LOG_PREFIX3+_0xfe33f7(0x1ea)+document[_0xfe33f7(0x1fb)]),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x238),JSON[_0xfe33f7(0x28b)](_0x3cc1c7,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0xfe33f7(0x1c6)),window[_0xfe33f7(0x254)]??createController();setInitialized(!![]),console['log'](LOG_PREFIX3+_0xfe33f7(0x225));const _0x20e6c6=normalizeOptions(_0x3cc1c7);setOptions(_0x20e6c6),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x27d),JSON[_0xfe33f7(0x28b)](_0x20e6c6,null,0x2));const _0x47dbff=parseUrlParams();console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x248),JSON[_0xfe33f7(0x28b)](_0x47dbff,null,0x2));if(_0x47dbff[_0xfe33f7(0x214)])return cleanUrlParam(_0xfe33f7(0x1b3)),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x1f8)),createController();if(_0x47dbff[_0xfe33f7(0x209)])return console['log'](LOG_PREFIX3+_0xfe33f7(0x286)),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x278)+_0x47dbff[_0xfe33f7(0x1f9)]),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x250)+_0x47dbff[_0xfe33f7(0x284)]),state[_0xfe33f7(0x25f)]=!![],console['log'](LOG_PREFIX3+_0xfe33f7(0x1b2)),void loadOverlay({'overlayPath':_0x20e6c6['overlayPath'],'enableViteHmr':_0x20e6c6[_0xfe33f7(0x264)][_0xfe33f7(0x22d)],'options':_0x20e6c6,'onToggle':handleToggle}),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x20e6c6),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x289)),createController();return console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x21d)),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x20e6c6[_0xfe33f7(0x255)]),console[_0xfe33f7(0x1d3)](LOG_PREFIX3+_0xfe33f7(0x273)),import.meta.hot&&(console[_0xfe33f7(0x1d3)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0xfe33f7(0x1c3),_0x285347=>{const _0x351891=_0xfe33f7;console[_0x351891(0x1d3)](LOG_PREFIX3+_0x351891(0x212),_0x285347),state[_0x351891(0x1dd)]={'message':_0x285347[_0x351891(0x252)][_0x351891(0x1ef)]},updateOverlay();}),import.meta.hot['on'](_0xfe33f7(0x23f),()=>{const _0xbab022=_0xfe33f7;state[_0xbab022(0x1dd)]&&(console[_0xbab022(0x1d3)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state['appError']=null,updateOverlay());})),createController();}};function _0x57c1(_0x3735c4,_0x2cea27){_0x3735c4=_0x3735c4-0x1b0;const _0xfc83d5=_0xfc83();let _0x57c1c=_0xfc83d5[_0x3735c4];return _0x57c1c;}function createController(){const _0x234d1e=_0x5b3f98,_0x87cb88={'enable'(){const _0x2d80d8=_0x57c1,_0xf576fa=getOptions();if(!_0xf576fa)return;state[_0x2d80d8(0x25f)]=!![],void loadOverlay({'overlayPath':_0xf576fa[_0x2d80d8(0x257)],'enableViteHmr':_0xf576fa[_0x2d80d8(0x264)][_0x2d80d8(0x22d)],'options':_0xf576fa,'onToggle':handleToggle}),void registerServiceWorker(_0xf576fa),void sendConfiguration(),updateOverlay();},'disable'(){const _0x4da214=_0x57c1,_0x3c04eb=getOptions();if(!_0x3c04eb)return;state[_0x4da214(0x25f)]=![],state[_0x4da214(0x206)]=![],updateOverlay(),void unregisterServiceWorker(_0x3c04eb[_0x4da214(0x255)]);},'status'(){const _0x4b9bc5=_0x57c1;return{'enabled':state[_0x4b9bc5(0x25f)],'controlled':state[_0x4b9bc5(0x206)]};}};return typeof window!==_0x234d1e(0x24a)&&(window[_0x234d1e(0x254)]=_0x87cb88),_0x87cb88;}function handleToggle(){const _0x3f7165=_0x5b3f98,_0x4e54c2=createController();state[_0x3f7165(0x25f)]?_0x4e54c2[_0x3f7165(0x20c)]():_0x4e54c2['enable']();}function parseUrlParams(){const _0x1855f7=_0x5b3f98,_0x424089=new URL(window[_0x1855f7(0x223)][_0x1855f7(0x215)]),_0x3398b5=_0x424089[_0x1855f7(0x231)][_0x1855f7(0x26c)](_0x1855f7(0x1b3))?.[_0x1855f7(0x220)](),_0x668db2=_0x424089['searchParams'][_0x1855f7(0x26c)](_0x1855f7(0x1f9)),_0x5e8ce6=_0x424089[_0x1855f7(0x231)][_0x1855f7(0x26c)]('enhancement');return{'hasEnhancement':Boolean(_0x668db2||_0x5e8ce6),'explicitDisable':_0x3398b5==='0'||_0x3398b5===_0x1855f7(0x1e1)||_0x3398b5===_0x1855f7(0x1e0),'enhancementUrl':_0x668db2,'enhancementId':_0x5e8ce6};}function cleanUrlParam(_0x382c47){const _0x34b5b2=_0x5b3f98,_0x2819f5=new URL(window['location'][_0x34b5b2(0x215)]);_0x2819f5[_0x34b5b2(0x231)]['has'](_0x382c47)&&(_0x2819f5[_0x34b5b2(0x231)][_0x34b5b2(0x1e7)](_0x382c47),window[_0x34b5b2(0x1c5)][_0x34b5b2(0x1fd)](null,document[_0x34b5b2(0x1ce)],_0x2819f5['toString']()));}var package_default={'name':_0x5b3f98(0x27e),'version':_0x5b3f98(0x1eb),'type':_0x5b3f98(0x277),'description':_0x5b3f98(0x230),'license':_0x5b3f98(0x211),'main':_0x5b3f98(0x1dc),'module':_0x5b3f98(0x1dc),'types':_0x5b3f98(0x1de),'exports':{'.':{'types':'./dev/index.d.ts','import':_0x5b3f98(0x1dc)},'./vite':{'types':_0x5b3f98(0x1bd),'import':_0x5b3f98(0x1b5)}},'files':[_0x5b3f98(0x1cb)],'bin':{'enhance-sandbox':_0x5b3f98(0x232)},'scripts':{'typecheck':_0x5b3f98(0x237),'dev':_0x5b3f98(0x1e2),'dev:build':_0x5b3f98(0x1cf),'dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','dev:staging:build':_0x5b3f98(0x285),'build':_0x5b3f98(0x1b9),'build:release':_0x5b3f98(0x241),'version':_0x5b3f98(0x21f)},'dependencies':{'commander':_0x5b3f98(0x200),'zod':'^3.22.4'},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':'^4.1.1','tsup':_0x5b3f98(0x272),'vite':'^7.2.4'},'publishConfig':{'access':_0x5b3f98(0x25b)}},DEFAULT_SERVICE_WORKER_PATH=_0x5b3f98(0x1ca),DEFAULT_RUNTIME_PATH=_0x5b3f98(0x260),PACKAGE_VERSION=typeof package_default['version']===_0x5b3f98(0x26d)?package_default[_0x5b3f98(0x1b8)]:_0x5b3f98(0x1b0);function normalizeAssetPath(_0x2cd8e2){const _0x1087f0=_0x5b3f98;if(!_0x2cd8e2)return _0x2cd8e2;if(_0x2cd8e2[_0x1087f0(0x1c9)]('http://')||_0x2cd8e2[_0x1087f0(0x1c9)](_0x1087f0(0x20d)))return _0x2cd8e2;const _0x10490a=_0x2cd8e2[_0x1087f0(0x1d9)](/^\.\//,'');return _0x10490a['startsWith']('/')?_0x10490a:'/'+_0x10490a;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x420e80){const _0x221ea2=_0x5b3f98;return Enhance[_0x221ea2(0x276)](_0x420e80);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0x295d91=_0x5b3f98;return Enhance2[_0x295d91(0x265)]();}function runtimeURL(){const _0xdcbe97=_0x5b3f98;return Enhance2[_0xdcbe97(0x210)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const _0x146bdc=_0x375c;(function(_0x526dfd,_0x2c24bc){const _0x5c1948=_0x375c,_0x523eed=_0x526dfd();while(!![]){try{const _0xc900c7=-parseInt(_0x5c1948(0x22b))/0x1*(parseInt(_0x5c1948(0x1f6))/0x2)+-parseInt(_0x5c1948(0x23a))/0x3+parseInt(_0x5c1948(0x240))/0x4+-parseInt(_0x5c1948(0x1bf))/0x5+parseInt(_0x5c1948(0x23d))/0x6+parseInt(_0x5c1948(0x1af))/0x7+parseInt(_0x5c1948(0x210))/0x8;if(_0xc900c7===_0x2c24bc)break;else _0x523eed['push'](_0x523eed['shift']());}catch(_0x1df68f){_0x523eed['push'](_0x523eed['shift']());}}}(_0x9fdd,0x2481e));import{Command}from'commander';import{resolve,relative}from'path';function normalizeOptions(_0x586e2d){const _0x4aea2c=_0x375c,_0x2a5c2b=_0x586e2d[_0x4aea2c(0x18c)]??{};return{'callbackBypass':_0x586e2d[_0x4aea2c(0x261)],'overlay':{'enabled':!![],'position':_0x4aea2c(0x1d9),'enableViteHmr':_0x2a5c2b[_0x4aea2c(0x19d)]??![]},'logLevel':_0x4aea2c(0x207),'swPath':_0x4aea2c(0x16a),'overlayPath':_0x2a5c2b[_0x4aea2c(0x1ac)]??_0x4aea2c(0x191),'runtimeScriptPath':_0x4aea2c(0x225),'security':_0x2a5c2b[_0x4aea2c(0x190)]??'permissive','backendUrl':_0x2a5c2b[_0x4aea2c(0x1a3)]??_0x4aea2c(0x1d0)};}var state={'enabled':![],'controlled':![]};function _0x9fdd(){const _0x41eb65=['\x20Updating\x20overlay...','data','swFilename','option','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','overlay','replaceState','info','\x20Updating\x20overlay\x20with\x20state:','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','toString','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','^8.5.1','search','all','...','2498944jXkwvT','get','serviceWorkerURL','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','/@react-refresh','waiting','publicDir','reload','unregister','command','\x20Unregistering\x20any\x20existing\x20SW...','./dist/vite/index.d.ts','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Starting\x20overlay\x20load\x20(async)...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','href','https://','\x20Registering\x20SW\x20at\x20','stringify','./dist/index.cjs','\x20detectBlocking\x20-\x20existing\x20registration:','/assets/enhance-runtime.js','searchParams','\x20Starting\x20SW\x20registration\x20(async)...','^4.1.1','off','\x20Failed\x20to\x20register\x20service\x20worker:','1samSFM','--filename\x20<name>','\x20detectBlocking\x20error:','\x20SW\x20unregistered\x20successfully','init','enhance-sandbox','ready','\x20URL\x20params\x20parsed:','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','runtimeURL','\x20init()\x20complete\x20-\x20normal\x20mode','getRegistration',',\x20configGetter:\x20','enhancement','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','365379daVEDH',',\x20page\x20origin:\x20','write','602574zMVfwD','\x20setupRemoteHMR()\x20for\x20','stdout','1112276bmXcfw','\x20doLoadOverlay()\x20starting...','filename','cwd','\x20Module\x20exports:','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20registerServiceWorker()\x20complete','\x20currentOptions\x20exists:\x20','__viteHMRLoaded','Print\x20the\x20current\x20asset\x20manifest','active','removeEventListener','\x20First\x20initialization','\x20composeOverlayState\x20-\x20state.enabled:\x20','controlled','enhance.config.sample.json','/@vite/client','\x20No\x20current\x20controller','./dist/index.js','enableViteHmr','enable','\x20overlayPath:\x20','\x20Failed\x20to\x20import/create\x20overlay:','none','addEventListener','\x20Module\x20missing\x20createOverlay\x20export!','toLowerCase','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','^24.10.1','sw-enhance','[Enhance\x20SW-Client]','string','\x20Failed\x20to\x20unregister\x20service\x20worker:','callbackBypass','replace','ENOENT','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20with\x20scope\x20\x27/\x27...','\x20unregisterServiceWorker()\x20called','swPath','update','scope','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Starting\x20fresh\x20overlay\x20load...','/sw-enhance.js','options','\x20Attaching\x20message\x20listener...','\x20HMR\x20setup\x20complete','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20sendConfiguration()\x20called','\x20state.enabled:\x20','\x20→\x20','N/A','\x20Document\x20readyState:\x20','\x20Current\x20URL:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','sha256','hasEnhancement','\x20Available\x20exports:','runtimeScriptPath','public','enhance','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Normalized\x20options:','querySelector','../dist/index.js','\x20resolveWorker:','^3.22.4','[data-enhance-runtime-bootstrap]','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','enabled','location','object','has','__enhanceOverlay','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','\x20enhancementUrl:\x20','__development','__vite_plugin_react_preamble_installed__','disable','$RefreshSig$','security','https://assets.enhancelabs.ai/overlay.js','\x20SW\x20ready!\x20Active:','http://','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20Unregistering\x20SW...','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','version','Skipped\x20','./dist/index.d.ts','dist','bin/enhance-sandbox.js','\x20init()\x20complete\x20-\x20enhancement\x20mode','enableOverlayHmr','\x20React\x20Refresh\x20already\x20installed\x20for\x20','manifestPath','\x20enhancementId:\x20','\x20(already\x20current)\x20[','readyState','backendUrl','\x20No\x20window\x20object\x20-\x20skipping','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Overlay\x20controller\x20initialized\x20and\x20cached','serviceWorker','state','\x20loadOverlay()\x20called','log','now','overlayPath','\x20composeOverlayState\x20-\x20state.controlled:\x20','position','323015eZhjIB','includes','createOverlay','\x20Checking\x20for\x20blocking\x20service\x20worker...','copied','skipped','\x20Current\x20controller\x20after\x20ready:','module','status','\x20Enhancement\x20mode\x20ENABLED','sw-enhance.js','controller','add','onToggle','0.0.0','postMessage','1350865lwyyzJ','Copied\x20','push','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','message','0.3.16','assets/enhance-runtime.js','action','function','\x20Sending\x20initial\x20configuration...','\x20Found\x20registration:','installing','\x20Vite\x20client\x20already\x20loaded\x20for\x20','relativeDestination','state:\x20','\x20Calling\x20createOverlay()...','__enhanceReactRefreshInstalledOrigins','https://api.enhancelabs.ai','description','sourcePath','override','\x20Service\x20workers\x20supported','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','enhance:request-config','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','startsWith','bottom-right','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','code','\x20updateOverlay()\x20called','\x20Current\x20controller:','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','scriptURL','enhancementUrl','delete','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','injectIntoGlobalHook','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','warn','parseAsync','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','bin','^7.2.4','keys','\x20No\x20blocking\x20SW\x20found','\x20BLOCKING\x20SW\x20detected:\x20','error','manifest','@enhance-eng/sandbox','MIT','undefined','requiredOption','name','destinationPath','391022LxLpky','copyFile','enhance:disable','trim','\x20Setting\x20up\x20remote\x20HMR...','[Enhance\x20Overlay]','enhancementId','origin','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch',',\x20owns='];_0x9fdd=function(){return _0x41eb65;};return _0x9fdd();}function getEnhancementUrl(){const _0x5c2101=_0x375c;try{const _0x429673=new URLSearchParams(window[_0x5c2101(0x186)][_0x5c2101(0x20d)]);return _0x429673[_0x5c2101(0x211)]('enhancementUrl')?.[_0x5c2101(0x1f9)]()||'';}catch{return'';}}var LOG_PREFIX=_0x146bdc(0x1fb),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x43681a){const _0x239c36=_0x146bdc;console['log'](LOG_PREFIX+_0x239c36(0x1a9)),console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x255)+_0x43681a['overlayPath']),console['log'](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x43681a[_0x239c36(0x253)]),currentOptions=_0x43681a[_0x239c36(0x16b)],toggleHandler=_0x43681a[_0x239c36(0x1bc)];if(overlayController){console['log'](LOG_PREFIX+_0x239c36(0x25b)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x1d5)),overlayLoadPromise;console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x169)),overlayLoadPromise=doLoadOverlay(_0x43681a);try{await overlayLoadPromise,console[_0x239c36(0x1aa)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x41f2b3){console[_0x239c36(0x1ee)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x41f2b3);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x2c12e3){const _0x4ff8d5=_0x146bdc;console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x241));if(typeof window==='undefined'){console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a4));return;}if(window['__enhanceOverlay']){console['log'](LOG_PREFIX+_0x4ff8d5(0x1de)),overlayController=window[_0x4ff8d5(0x189)],overlayController[_0x4ff8d5(0x1bc)](_0x2c12e3[_0x4ff8d5(0x1bc)]),updateOverlay();return;}console['log'](LOG_PREFIX+_0x4ff8d5(0x183));try{_0x2c12e3[_0x4ff8d5(0x253)]&&(console['log'](LOG_PREFIX+_0x4ff8d5(0x1fa)),await setupRemoteHMR(_0x2c12e3[_0x4ff8d5(0x1ac)]));console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a5)+_0x2c12e3['overlayPath']);const _0x48ee17=Date[_0x4ff8d5(0x1ab)](),_0x2d762c=await import(_0x2c12e3[_0x4ff8d5(0x1ac)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date['now']()-_0x48ee17)+'ms'),console['log'](LOG_PREFIX+_0x4ff8d5(0x244),Object[_0x4ff8d5(0x1eb)](_0x2d762c));if(typeof _0x2d762c?.[_0x4ff8d5(0x1b1)]!==_0x4ff8d5(0x1c7)){console['error'](LOG_PREFIX+_0x4ff8d5(0x259)),console[_0x4ff8d5(0x1ee)](LOG_PREFIX+_0x4ff8d5(0x178),Object[_0x4ff8d5(0x1eb)](_0x2d762c));return;}console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1ce));const _0x52b678=_0x2d762c[_0x4ff8d5(0x1b1)]();console[_0x4ff8d5(0x1aa)](LOG_PREFIX+'\x20Controller\x20created:',_0x52b678),overlayController=_0x52b678,window[_0x4ff8d5(0x189)]=_0x52b678,_0x52b678[_0x4ff8d5(0x1bc)](_0x2c12e3['onToggle']),console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a6)),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x58169a){console[_0x4ff8d5(0x1ee)](LOG_PREFIX+_0x4ff8d5(0x256),_0x58169a);}}function updateOverlay(){const _0x5a44d6=_0x146bdc;console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x1dc)),console[_0x5a44d6(0x1aa)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x5a44d6(0x247)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x184));return;}const _0x1f5ea6=composeOverlayState(currentOptions);console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x208),JSON[_0x5a44d6(0x222)](_0x1f5ea6,null,0x2)),overlayController['update'](_0x1f5ea6),console[_0x5a44d6(0x1aa)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x284c69){const _0x3a8c9e=_0x146bdc,_0x1bd9b6=getEnhancementUrl();return console[_0x3a8c9e(0x1aa)](LOG_PREFIX+_0x3a8c9e(0x175)+_0x1bd9b6),console['log'](LOG_PREFIX+_0x3a8c9e(0x24d)+state[_0x3a8c9e(0x185)]),console[_0x3a8c9e(0x1aa)](LOG_PREFIX+_0x3a8c9e(0x1ad)+state[_0x3a8c9e(0x24e)]),{'enhancementUrl':_0x1bd9b6,'enabled':state[_0x3a8c9e(0x185)],'controlled':state[_0x3a8c9e(0x24e)],'overlayPosition':_0x284c69['overlay'][_0x3a8c9e(0x1ae)],'securityMode':_0x284c69[_0x3a8c9e(0x190)],'backendBaseUrl':_0x284c69[_0x3a8c9e(0x1a3)]};}async function setupRemoteHMR(_0x20c3db){const _0x39e7b6=_0x146bdc;console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x23e)+_0x20c3db);if(typeof window===_0x39e7b6(0x1f2))return;try{const _0x27a8ff=new URL(_0x20c3db,window['location'][_0x39e7b6(0x1fd)]),_0x36f620=_0x27a8ff[_0x39e7b6(0x1fd)];console[_0x39e7b6(0x1aa)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x36f620+_0x39e7b6(0x23b)+window[_0x39e7b6(0x186)][_0x39e7b6(0x1fd)]);if(_0x36f620===window[_0x39e7b6(0x186)][_0x39e7b6(0x1fd)]){console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x196));return;}console['log'](LOG_PREFIX+_0x39e7b6(0x213)),await ensureReactRefreshPreamble(_0x36f620),await ensureViteClient(_0x36f620),console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x16d));}catch(_0x540603){console[_0x39e7b6(0x1e6)](LOG_PREFIX+_0x39e7b6(0x1e2),_0x540603);}}async function ensureReactRefreshPreamble(_0x50d17e){const _0x8497af=_0x146bdc;window[_0x8497af(0x1cf)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x8497af(0x188)](_0x50d17e)){console[_0x8497af(0x1aa)](LOG_PREFIX+_0x8497af(0x19e)+_0x50d17e);return;}console[_0x8497af(0x1aa)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x50d17e+_0x8497af(0x20f));const _0x3e4d68=await import(_0x50d17e+_0x8497af(0x214)),_0x4ea87f=_0x3e4d68&&typeof _0x3e4d68===_0x8497af(0x187)&&'default'in _0x3e4d68?_0x3e4d68['default']:_0x3e4d68;if(!isRefreshRuntime(_0x4ea87f)){console[_0x8497af(0x1e6)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x4ea87f['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x8497af(0x18f)]=()=>_0x2bd5c9=>_0x2bd5c9,window[_0x8497af(0x18d)]=!![],window[_0x8497af(0x1cf)]['add'](_0x50d17e),console[_0x8497af(0x1aa)](LOG_PREFIX+_0x8497af(0x17c)+_0x50d17e);}async function ensureViteClient(_0x44ac9f){const _0x1c7f17=_0x146bdc;window[_0x1c7f17(0x248)]??=new Set();if(window[_0x1c7f17(0x248)][_0x1c7f17(0x188)](_0x44ac9f)){console[_0x1c7f17(0x1aa)](LOG_PREFIX+_0x1c7f17(0x1cb)+_0x44ac9f);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x44ac9f+_0x1c7f17(0x20f)),await import(_0x44ac9f+_0x1c7f17(0x250)),window[_0x1c7f17(0x248)][_0x1c7f17(0x1bb)](_0x44ac9f),console['log'](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x44ac9f);}function isRefreshRuntime(_0x1ee225){const _0x1da44f=_0x146bdc;return typeof _0x1ee225===_0x1da44f(0x187)&&_0x1ee225!==null&&_0x1da44f(0x1e4)in _0x1ee225&&typeof _0x1ee225[_0x1da44f(0x1e4)]==='function';}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x146bdc(0x1f8),WORKER_MESSAGE_REQUEST_CONFIG=_0x146bdc(0x1d6),LOG_PREFIX2=_0x146bdc(0x25e),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x9fb112){const _0x50433b=_0x146bdc;console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+'\x20swPath:\x20'+_0x9fb112[_0x50433b(0x164)]);if(!(_0x50433b(0x1a7)in navigator)){console['warn'](LOG_PREFIX2+_0x50433b(0x21e));return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1d4));const _0x3bd5b2=navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)];console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1dd),_0x3bd5b2?.[_0x50433b(0x1df)]??_0x50433b(0x257)),console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20Controller\x20state:',_0x3bd5b2?.[_0x50433b(0x1a8)]??_0x50433b(0x172));const _0x3cb6d7=!!_0x3bd5b2;currentOptions2=_0x9fb112,configGetter=()=>buildWorkerConfiguration(_0x9fb112),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1b2));const _0x35f157=await detectBlockingServiceWorker(_0x9fb112[_0x50433b(0x164)]);if(_0x35f157){console[_0x50433b(0x1ee)](LOG_PREFIX2+_0x50433b(0x1ed)+_0x35f157),console['error'](LOG_PREFIX2+_0x50433b(0x204));return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1ec));try{console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x221)+_0x9fb112[_0x50433b(0x164)]+_0x50433b(0x265)),registration=await navigator[_0x50433b(0x1a7)]['register'](_0x9fb112[_0x50433b(0x164)],{'scope':'/'}),console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration['scope'],'active':registration[_0x50433b(0x24a)]?.[_0x50433b(0x1df)],'waiting':registration[_0x50433b(0x215)]?.[_0x50433b(0x1df)],'installing':registration[_0x50433b(0x1ca)]?.[_0x50433b(0x1df)]}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0xc8e820=await navigator['serviceWorker'][_0x50433b(0x231)];console['log'](LOG_PREFIX2+_0x50433b(0x192),_0xc8e820[_0x50433b(0x24a)]?.[_0x50433b(0x1df)]);const _0x402dec=ownsCurrentController(_0x9fb112[_0x50433b(0x164)]);state[_0x50433b(0x24e)]=_0x402dec,console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1c2)+_0x402dec),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1b5),navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)]?.[_0x50433b(0x1df)]??_0x50433b(0x257));if(!_0x3cb6d7&&!navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)]){console['log'](LOG_PREFIX2+_0x50433b(0x168)),window[_0x50433b(0x186)][_0x50433b(0x217)]();return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x16c)),attachMessageListener(),console['log'](LOG_PREFIX2+_0x50433b(0x1c8)),await sendConfiguration();if(state[_0x50433b(0x185)]){const _0x30582=document[_0x50433b(0x17e)](_0x50433b(0x182))!==null;console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x264)+_0x30582);if(!_0x30582){console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x245)),window[_0x50433b(0x186)][_0x50433b(0x217)]();return;}}console['log'](LOG_PREFIX2+_0x50433b(0x200)),updateOverlay(),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x246));}catch(_0xc14890){console[_0x50433b(0x1ee)](LOG_PREFIX2+_0x50433b(0x22a),_0xc14890);}}async function sendConfiguration(){const _0x24caf5=_0x146bdc;console['log'](LOG_PREFIX2+_0x24caf5(0x16f)),console[_0x24caf5(0x1aa)](LOG_PREFIX2+_0x24caf5(0x170)+state[_0x24caf5(0x185)]+_0x24caf5(0x237)+!!configGetter);if(!state[_0x24caf5(0x185)]||!configGetter){console[_0x24caf5(0x1aa)](LOG_PREFIX2+_0x24caf5(0x18a));return;}const _0x3658a6=await resolveWorker();if(!_0x3658a6){console[_0x24caf5(0x1e6)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x18316b=configGetter();console[_0x24caf5(0x1aa)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON[_0x24caf5(0x222)](_0x18316b,null,0x2)),_0x3658a6['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x18316b}),console[_0x24caf5(0x1aa)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x432d55){const _0x91b9b9=_0x146bdc;console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x266));if(!('serviceWorker'in navigator)){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}detachMessageListener();try{const _0x19dee9=registration??await navigator[_0x91b9b9(0x1a7)]['getRegistration']('/');if(!_0x19dee9){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x209));return;}console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x1c9),{'scope':_0x19dee9[_0x91b9b9(0x166)],'active':_0x19dee9['active']?.[_0x91b9b9(0x1df)],'waiting':_0x19dee9[_0x91b9b9(0x215)]?.[_0x91b9b9(0x1df)],'installing':_0x19dee9[_0x91b9b9(0x1ca)]?.[_0x91b9b9(0x1df)]});const _0x131098=[_0x19dee9[_0x91b9b9(0x24a)]?.['scriptURL'],_0x19dee9[_0x91b9b9(0x215)]?.[_0x91b9b9(0x1df)],_0x19dee9[_0x91b9b9(0x1ca)]?.[_0x91b9b9(0x1df)]],_0x9fa264=_0x131098['some'](_0x14e6d8=>_0x14e6d8&&ownsServiceWorker(_0x14e6d8,_0x432d55));if(!_0x9fa264){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x19dee9[_0x91b9b9(0x24a)]&&(console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x16e)),_0x19dee9[_0x91b9b9(0x24a)][_0x91b9b9(0x1be)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x91b9b9(0x195)),await _0x19dee9[_0x91b9b9(0x218)](),registration=null,console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x22e));}catch(_0x1bc5b4){console[_0x91b9b9(0x1ee)](LOG_PREFIX2+_0x91b9b9(0x260),_0x1bc5b4);}}function attachMessageListener(){const _0x261107=_0x146bdc;if(!navigator[_0x261107(0x1a7)]||messageListener){console[_0x261107(0x1aa)](LOG_PREFIX2+_0x261107(0x1da));return;}messageListener=_0x49a4f3=>{const _0x1b6602=_0x261107,_0x545340=_0x49a4f3[_0x1b6602(0x201)];console['log'](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x545340);if(!_0x545340||typeof _0x545340!=='object')return;_0x545340['type']===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x1b6602(0x1aa)](LOG_PREFIX2+'\x20SW\x20requested\x20config\x20-\x20sending...'),void sendConfiguration());},navigator[_0x261107(0x1a7)][_0x261107(0x258)]('message',messageListener),console[_0x261107(0x1aa)](LOG_PREFIX2+'\x20Message\x20listener\x20attached');}function detachMessageListener(){const _0x573bf4=_0x146bdc;navigator['serviceWorker']&&messageListener&&(navigator[_0x573bf4(0x1a7)][_0x573bf4(0x24b)](_0x573bf4(0x1c3),messageListener),messageListener=null,console[_0x573bf4(0x1aa)](LOG_PREFIX2+'\x20Message\x20listener\x20detached'));}function ownsServiceWorker(_0xec49ab,_0x2091ea){const _0x36f63e=_0x146bdc,_0x2a91ae=typeof window!==_0x36f63e(0x1f2)?window[_0x36f63e(0x186)][_0x36f63e(0x1fd)]:'',_0x182c61=new URL(_0x2091ea,_0x2a91ae||void 0x0)[_0x36f63e(0x21f)],_0x1e2b6d=_0xec49ab===_0x182c61||_0xec49ab[_0x36f63e(0x1b0)](_0x36f63e(0x25d));return console[_0x36f63e(0x1aa)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0xec49ab+',\x20expected='+_0x182c61+_0x36f63e(0x1ff)+_0x1e2b6d),_0x1e2b6d;}function ownsCurrentController(_0xb52035){const _0x5196ea=_0x146bdc;if(typeof navigator==='undefined')return![];const _0x2f1fc6=navigator[_0x5196ea(0x1a7)]?.[_0x5196ea(0x1ba)];if(!_0x2f1fc6)return console[_0x5196ea(0x1aa)](LOG_PREFIX2+_0x5196ea(0x251)),![];return ownsServiceWorker(_0x2f1fc6[_0x5196ea(0x1df)],_0xb52035);}async function detectBlockingServiceWorker(_0xbccda1){const _0x2a6d65=_0x146bdc;if(!navigator[_0x2a6d65(0x1a7)])return null;try{const _0x25cbc5=await navigator[_0x2a6d65(0x1a7)][_0x2a6d65(0x236)]('/');console[_0x2a6d65(0x1aa)](LOG_PREFIX2+_0x2a6d65(0x224),_0x25cbc5?.[_0x2a6d65(0x24a)]?.['scriptURL']??_0x2a6d65(0x257));const _0x413910=_0x25cbc5?.[_0x2a6d65(0x24a)]?.['scriptURL'];if(!_0x413910)return null;if(ownsServiceWorker(_0x413910,_0xbccda1))return null;return _0x413910;}catch(_0xff67a9){return console[_0x2a6d65(0x1ee)](LOG_PREFIX2+_0x2a6d65(0x22d),_0xff67a9),null;}}async function resolveWorker(){const _0x512667=_0x146bdc,_0x1db6fa=registration??await navigator['serviceWorker']?.[_0x512667(0x236)]('/'),_0x4206cb=_0x1db6fa?.[_0x512667(0x24a)]??_0x1db6fa?.[_0x512667(0x215)]??_0x1db6fa?.[_0x512667(0x1ca)]??null;return console[_0x512667(0x1aa)](LOG_PREFIX2+_0x512667(0x180),_0x4206cb?.[_0x512667(0x1df)]??_0x512667(0x257),_0x512667(0x1cd)+(_0x4206cb?.[_0x512667(0x1a8)]??_0x512667(0x172))),_0x4206cb;}function buildWorkerConfiguration(_0x15f8ac){const _0x2c9eec=_0x146bdc,_0x988472=getEnhancementUrl();return console[_0x2c9eec(0x1aa)](LOG_PREFIX2+_0x2c9eec(0x233)+_0x988472),{'enhancementUrl':_0x988472,'callbackBypass':_0x15f8ac[_0x2c9eec(0x261)],'overlayPath':_0x15f8ac[_0x2c9eec(0x1ac)],'overlayEnableViteHmr':_0x15f8ac[_0x2c9eec(0x205)][_0x2c9eec(0x253)],'runtimeScriptPath':_0x15f8ac[_0x2c9eec(0x179)],'swPath':_0x15f8ac['swPath'],'securityMode':_0x15f8ac[_0x2c9eec(0x190)],'backendUrl':_0x15f8ac[_0x2c9eec(0x1a3)]};}var LOG_PREFIX3='[Enhance\x20Runtime]',initialized=![],options=null,Enhance={'init'(_0x6c2f83){const _0x42d9ee=_0x146bdc,_0x1863a0=Date['now']();console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x1863a0),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x174)+window['location'][_0x42d9ee(0x21f)]),console['log'](LOG_PREFIX3+_0x42d9ee(0x173)+document[_0x42d9ee(0x1a2)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x42d9ee(0x222)](_0x6c2f83,null,0x2));if(initialized)return console[_0x42d9ee(0x1e6)](LOG_PREFIX3+_0x42d9ee(0x194)),createController();initialized=!![],console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x24c)),options=normalizeOptions(_0x6c2f83),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x17d),JSON['stringify'](options,null,0x2));const _0x567bbd=parseUrlParams();console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x232),JSON[_0x42d9ee(0x222)](_0x567bbd,null,0x2));if(_0x567bbd['explicitDisable'])return cleanUrlParam(_0x42d9ee(0x17b)),console['log'](LOG_PREFIX3+_0x42d9ee(0x21c)),createController();if(_0x567bbd[_0x42d9ee(0x177)])return console['log'](LOG_PREFIX3+_0x42d9ee(0x1b8)),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x18b)+_0x567bbd[_0x42d9ee(0x1e0)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x1a0)+_0x567bbd[_0x42d9ee(0x1fc)]),state['enabled']=!![],console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x21d)),void loadOverlay({'overlayPath':options[_0x42d9ee(0x1ac)],'enableViteHmr':options[_0x42d9ee(0x205)]['enableViteHmr'],'options':options,'onToggle':handleToggle}),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x227)),void registerServiceWorker(options),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x19c)),createController();return console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x21a)),void unregisterServiceWorker(options[_0x42d9ee(0x164)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x235)),createController();}};function createController(){return{'enable'(){const _0xee9c59=_0x375c;if(!options)return;state['enabled']=!![],void loadOverlay({'overlayPath':options[_0xee9c59(0x1ac)],'enableViteHmr':options['overlay'][_0xee9c59(0x253)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0xce9f=_0x375c;if(!options)return;state['enabled']=![],state[_0xce9f(0x24e)]=![],updateOverlay(),void unregisterServiceWorker(options[_0xce9f(0x164)]);},'status'(){const _0x197a4b=_0x375c;return{'enabled':state[_0x197a4b(0x185)],'controlled':state['controlled']};}};}function handleToggle(){const _0x436f14=_0x146bdc,_0x567472=createController();state[_0x436f14(0x185)]?_0x567472[_0x436f14(0x18e)]():_0x567472[_0x436f14(0x254)]();}function _0x375c(_0x4a8986,_0x1e811d){const _0x9fdd80=_0x9fdd();return _0x375c=function(_0x375c59,_0xd4ae91){_0x375c59=_0x375c59-0x164;let _0x32f9e2=_0x9fdd80[_0x375c59];return _0x32f9e2;},_0x375c(_0x4a8986,_0x1e811d);}function parseUrlParams(){const _0x21a435=_0x146bdc,_0x431e6e=new URL(window[_0x21a435(0x186)]['href']),_0x58781a=_0x431e6e['searchParams']['get'](_0x21a435(0x17b))?.[_0x21a435(0x25a)](),_0x228eb5=_0x431e6e['searchParams'][_0x21a435(0x211)](_0x21a435(0x1e0)),_0x2ebae3=_0x431e6e[_0x21a435(0x226)]['get'](_0x21a435(0x238));return{'hasEnhancement':Boolean(_0x228eb5||_0x2ebae3),'explicitDisable':_0x58781a==='0'||_0x58781a==='false'||_0x58781a===_0x21a435(0x229),'enhancementUrl':_0x228eb5,'enhancementId':_0x2ebae3};}function cleanUrlParam(_0x304556){const _0x3e247b=_0x146bdc,_0x5806d7=new URL(window[_0x3e247b(0x186)][_0x3e247b(0x21f)]);_0x5806d7[_0x3e247b(0x226)][_0x3e247b(0x188)](_0x304556)&&(_0x5806d7[_0x3e247b(0x226)][_0x3e247b(0x1e1)](_0x304556),window['history'][_0x3e247b(0x206)](null,document['title'],_0x5806d7[_0x3e247b(0x20a)]()));}var package_default={'name':_0x146bdc(0x1f0),'version':_0x146bdc(0x1c4),'type':_0x146bdc(0x1b6),'description':_0x146bdc(0x1e5),'license':_0x146bdc(0x1f1),'main':_0x146bdc(0x223),'module':_0x146bdc(0x252),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x146bdc(0x199),'import':_0x146bdc(0x252),'require':_0x146bdc(0x223)},'./vite':{'types':_0x146bdc(0x21b),'import':'./dist/vite/index.js'}},'files':[_0x146bdc(0x19a),_0x146bdc(0x1e9),_0x146bdc(0x24f)],'bin':{'enhance-sandbox':_0x146bdc(0x19b)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x146bdc(0x20b),'dev:staging':_0x146bdc(0x1fe),'build':_0x146bdc(0x239),'build:release':_0x146bdc(0x167),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x146bdc(0x181)},'devDependencies':{'@types/node':_0x146bdc(0x25c),'javascript-obfuscator':_0x146bdc(0x228),'tsup':_0x146bdc(0x20c),'vite':_0x146bdc(0x1ea)},'publishConfig':{'access':_0x146bdc(0x17a)}},DEFAULT_SERVICE_WORKER_PATH=_0x146bdc(0x16a),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x146bdc(0x1b9),DIST_RUNTIME_PATH=_0x146bdc(0x1c5),PACKAGE_VERSION=typeof package_default[_0x146bdc(0x197)]===_0x146bdc(0x25f)?package_default[_0x146bdc(0x197)]:_0x146bdc(0x1bd);function normalizeAssetPath(_0x18f25a){const _0x436171=_0x146bdc;if(!_0x18f25a)return _0x18f25a;if(_0x18f25a['startsWith'](_0x436171(0x193))||_0x18f25a[_0x436171(0x1d8)](_0x436171(0x220)))return _0x18f25a;const _0xb7cb82=_0x18f25a[_0x436171(0x262)](/^\.\//,'');return _0xb7cb82[_0x436171(0x1d8)]('/')?_0xb7cb82:'/'+_0xb7cb82;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x58abdb){const _0x103b79=_0x146bdc;return Enhance[_0x103b79(0x22f)](_0x58abdb);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x3e382f=_0x146bdc;return Enhance2[_0x3e382f(0x212)]();}function runtimeURL(){const _0x4f3555=_0x146bdc;return Enhance2[_0x4f3555(0x234)]();}import{promises as _0x24f58a}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x146bdc(0x17f),import.meta['url'])));async function syncAssets(_0x32359a){const _0x1c8603=_0x146bdc,_0x48fca7=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x32359a[_0x1c8603(0x202)]?'./'+_0x32359a[_0x1c8603(0x202)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x2b2164=[];for(const _0x2b80b7 of _0x48fca7){const _0x4b2896=cleanRelativePath(_0x2b80b7[_0x1c8603(0x1d3)]??_0x2b80b7[_0x1c8603(0x19f)]),_0x5c96a6=join(distDir,cleanRelativePath(_0x2b80b7[_0x1c8603(0x1d2)])),_0x38a9b8=join(_0x32359a[_0x1c8603(0x216)],_0x4b2896),[_0x4f19a9,_0x47a4cb]=await Promise[_0x1c8603(0x20e)]([readDigest(_0x5c96a6),readDigest(_0x38a9b8)]);if(_0x4f19a9&&_0x47a4cb&&_0x4f19a9===_0x47a4cb){_0x2b2164['push']({'sourcePath':_0x5c96a6,'destinationPath':_0x38a9b8,'relativeDestination':_0x4b2896,'status':_0x1c8603(0x1b4)});continue;}await _0x24f58a['mkdir'](dirname(_0x38a9b8),{'recursive':!![]}),await _0x24f58a[_0x1c8603(0x1f7)](_0x5c96a6,_0x38a9b8),_0x2b2164[_0x1c8603(0x1c1)]({'sourcePath':_0x5c96a6,'destinationPath':_0x38a9b8,'relativeDestination':_0x4b2896,'status':_0x1c8603(0x1b3)});}return _0x2b2164;}function cleanRelativePath(_0x4316fb){return _0x4316fb['replace'](/^[./]+/,'');}async function readDigest(_0x1c88c4){const _0x2cac38=_0x146bdc;try{const _0x25564=await _0x24f58a['readFile'](_0x1c88c4);return createHash(_0x2cac38(0x176))[_0x2cac38(0x165)](_0x25564)['digest']('base64');}catch(_0xd65dbf){if(_0xd65dbf[_0x2cac38(0x1db)]===_0x2cac38(0x263))return null;throw _0xd65dbf;}}var program=new Command();program[_0x146bdc(0x1f4)](_0x146bdc(0x230))[_0x146bdc(0x1d1)]('Enhance\x20sandbox\x20utility\x20CLI')[_0x146bdc(0x197)]('0.0.0'),program[_0x146bdc(0x219)](_0x146bdc(0x1ef))['description'](_0x146bdc(0x249))[_0x146bdc(0x1c6)](()=>{const _0x5d752e=_0x146bdc,_0x533200=getAssetManifest();process[_0x5d752e(0x23f)][_0x5d752e(0x23c)](JSON['stringify'](_0x533200,null,0x2)+'\x0a');}),program[_0x146bdc(0x219)]('prepare-sw')[_0x146bdc(0x1d1)](_0x146bdc(0x1d7))[_0x146bdc(0x1f3)]('--public-dir\x20<path>',_0x146bdc(0x1e8))[_0x146bdc(0x203)](_0x146bdc(0x22c),_0x146bdc(0x1e3))[_0x146bdc(0x1c6)](async _0x4202c8=>{const _0x3d6fa8=_0x146bdc,_0x5966db=resolve(process[_0x3d6fa8(0x243)](),_0x4202c8['publicDir']),_0x391a55=await syncAssets({'publicDir':_0x5966db,'swFilename':_0x4202c8[_0x3d6fa8(0x242)]});for(const _0x5248ea of _0x391a55){const _0x401505=relative(process['cwd'](),_0x5248ea[_0x3d6fa8(0x1f5)]);_0x5248ea[_0x3d6fa8(0x1b7)]==='skipped'?process[_0x3d6fa8(0x23f)][_0x3d6fa8(0x23c)](_0x3d6fa8(0x198)+_0x5248ea['relativeDestination']+_0x3d6fa8(0x1a1)+_0x401505+']\x0a'):process[_0x3d6fa8(0x23f)][_0x3d6fa8(0x23c)](_0x3d6fa8(0x1c0)+_0x5248ea[_0x3d6fa8(0x1cc)]+_0x3d6fa8(0x171)+_0x401505+'\x0a');}}),program[_0x146bdc(0x1e7)]();
|
|
3
|
+
const _0x4ee51d=_0x4ee2;(function(_0x2e0d5b,_0x526b3f){const _0x871752=_0x4ee2,_0xd0ebf1=_0x2e0d5b();while(!![]){try{const _0xd03f88=parseInt(_0x871752(0x12f))/0x1*(-parseInt(_0x871752(0x1d1))/0x2)+parseInt(_0x871752(0x14c))/0x3+parseInt(_0x871752(0x198))/0x4+-parseInt(_0x871752(0x125))/0x5+-parseInt(_0x871752(0x11f))/0x6+parseInt(_0x871752(0x141))/0x7+parseInt(_0x871752(0x137))/0x8;if(_0xd03f88===_0x526b3f)break;else _0xd0ebf1['push'](_0xd0ebf1['shift']());}catch(_0x314d74){_0xd0ebf1['push'](_0xd0ebf1['shift']());}}}(_0x20b2,0x4481c));import{Command}from'commander';function _0x4ee2(_0x255daf,_0x402c5c){_0x255daf=_0x255daf-0xf8;const _0x20b23d=_0x20b2();let _0x4ee282=_0x20b23d[_0x255daf];return _0x4ee282;}import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x4ee51d(0x11b)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x4ee51d(0xfa),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x4ee51d(0x11b)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x4ee51d(0x102),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x4ee51d(0x11b)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x4ee51d(0x1f1)](_0x4ee51d(0x13a),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x53dbf9){const _0x4e0ab4=_0x4ee51d,_0x1086ec=_0x53dbf9[_0x4e0ab4(0x115)]??{};return{'callbackBypass':_0x53dbf9[_0x4e0ab4(0x1ef)]??[],'overlay':{'enabled':!![],'position':_0x4e0ab4(0x19e),'enableViteHmr':_0x1086ec['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x4e0ab4(0x15f),'overlayPath':_0x1086ec[_0x4e0ab4(0xfc)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x4e0ab4(0xf8),'security':_0x1086ec[_0x4e0ab4(0x13b)]??'permissive','backendUrl':_0x1086ec['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x26893c=_0x4ee51d;try{const _0x408439=new URLSearchParams(window[_0x26893c(0x1ba)][_0x26893c(0x1ac)]);return _0x408439[_0x26893c(0x1a9)](_0x26893c(0x122))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x4ee51d(0x105),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x493a87){const _0x4a10c5=_0x4ee51d;console[_0x4a10c5(0x1f1)](LOG_PREFIX+_0x4a10c5(0x104)),console[_0x4a10c5(0x1f1)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x493a87[_0x4a10c5(0xfc)]),console[_0x4a10c5(0x1f1)](LOG_PREFIX+_0x4a10c5(0x1af)+_0x493a87[_0x4a10c5(0x156)]),currentOptions=_0x493a87[_0x4a10c5(0x171)],toggleHandler=_0x493a87[_0x4a10c5(0x181)];if(overlayController){console[_0x4a10c5(0x1f1)](LOG_PREFIX+_0x4a10c5(0x145)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4a10c5(0x1f1)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x4a10c5(0x1f1)](LOG_PREFIX+_0x4a10c5(0x14b)),overlayLoadPromise=doLoadOverlay(_0x493a87);try{await overlayLoadPromise,console[_0x4a10c5(0x1f1)](LOG_PREFIX+_0x4a10c5(0xfd));}catch(_0x387b6e){console[_0x4a10c5(0x11e)](LOG_PREFIX+_0x4a10c5(0x147),_0x387b6e);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x5119a2){const _0x39ab3b=_0x4ee51d;console[_0x39ab3b(0x1f1)](LOG_PREFIX+_0x39ab3b(0x177));if(typeof window===_0x39ab3b(0x11b)){console[_0x39ab3b(0x1f1)](LOG_PREFIX+_0x39ab3b(0x1ae));return;}if(window[_0x39ab3b(0x157)]){console[_0x39ab3b(0x1f1)](LOG_PREFIX+_0x39ab3b(0x1cb)),overlayController=window['__enhanceOverlay'];return;}console[_0x39ab3b(0x1f1)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x5119a2[_0x39ab3b(0x156)]&&(console[_0x39ab3b(0x1f1)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x5119a2[_0x39ab3b(0xfc)]));console[_0x39ab3b(0x1f1)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x5119a2[_0x39ab3b(0xfc)]);const _0x2895c4=Date[_0x39ab3b(0x1b9)](),_0x4e023e=await import(_0x5119a2[_0x39ab3b(0xfc)]);console[_0x39ab3b(0x1f1)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x39ab3b(0x1b9)]()-_0x2895c4)+'ms'),console[_0x39ab3b(0x1f1)](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x4e023e));if(typeof _0x4e023e?.[_0x39ab3b(0xf9)]!==_0x39ab3b(0x118)){console[_0x39ab3b(0x11e)](LOG_PREFIX+_0x39ab3b(0x1b4)),console[_0x39ab3b(0x11e)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x39ab3b(0x130)](_0x4e023e));return;}console[_0x39ab3b(0x1f1)](LOG_PREFIX+_0x39ab3b(0x1b7));const _0x4051a9=_0x4e023e['createOverlay']();console[_0x39ab3b(0x1f1)](LOG_PREFIX+_0x39ab3b(0x101),_0x4051a9),overlayController=_0x4051a9,window[_0x39ab3b(0x157)]=_0x4051a9,_0x4051a9[_0x39ab3b(0x181)](_0x5119a2[_0x39ab3b(0x181)]),console[_0x39ab3b(0x1f1)](LOG_PREFIX+_0x39ab3b(0x1ad)),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x3dbf54){console[_0x39ab3b(0x11e)](LOG_PREFIX+_0x39ab3b(0x1b0),_0x3dbf54);}}function updateOverlay(){const _0x44857b=_0x4ee51d;console[_0x44857b(0x1f1)](LOG_PREFIX+_0x44857b(0x15e)),console[_0x44857b(0x1f1)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x44857b(0x1f1)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x44857b(0x1f1)](LOG_PREFIX+_0x44857b(0x1db));return;}const _0x44904a=composeOverlayState(currentOptions);console[_0x44857b(0x1f1)](LOG_PREFIX+_0x44857b(0x1d5),JSON[_0x44857b(0x11c)](_0x44904a,null,0x2)),overlayController[_0x44857b(0x17a)](_0x44904a),console[_0x44857b(0x1f1)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x185176){const _0x1fa65a=_0x4ee51d,_0x415207=getEnhancementUrl();return console[_0x1fa65a(0x1f1)](LOG_PREFIX+_0x1fa65a(0x15b)+_0x415207),console[_0x1fa65a(0x1f1)](LOG_PREFIX+_0x1fa65a(0x123)+state['enabled']),console[_0x1fa65a(0x1f1)](LOG_PREFIX+_0x1fa65a(0x12b)+state[_0x1fa65a(0x179)]),{'enhancementUrl':_0x415207,'enabled':state[_0x1fa65a(0x1b2)],'controlled':state[_0x1fa65a(0x179)],'overlayPosition':_0x185176['overlay'][_0x1fa65a(0x1e3)],'securityMode':_0x185176['security'],'backendBaseUrl':_0x185176[_0x1fa65a(0x117)],'appError':state[_0x1fa65a(0x1d0)]};}async function setupRemoteHMR(_0x29ebd2){const _0x188260=_0x4ee51d;console[_0x188260(0x1f1)](LOG_PREFIX+_0x188260(0x16c)+_0x29ebd2);if(typeof window==='undefined')return;try{const _0x3d72cc=new URL(_0x29ebd2,window[_0x188260(0x1ba)][_0x188260(0x139)]),_0x3864b7=_0x3d72cc[_0x188260(0x139)];console['log'](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x3864b7+_0x188260(0x1c0)+window[_0x188260(0x1ba)][_0x188260(0x139)]);if(_0x3864b7===window[_0x188260(0x1ba)][_0x188260(0x139)]){console[_0x188260(0x1f1)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x188260(0x1f1)](LOG_PREFIX+_0x188260(0x159)),await ensureReactRefreshPreamble(_0x3864b7),await ensureViteClient(_0x3864b7),console[_0x188260(0x1f1)](LOG_PREFIX+_0x188260(0x13f));}catch(_0x1aab70){console[_0x188260(0x16b)](LOG_PREFIX+_0x188260(0x149),_0x1aab70);}}async function ensureReactRefreshPreamble(_0x239c8a){const _0x1048ac=_0x4ee51d;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x1048ac(0x17e)][_0x1048ac(0x1c6)](_0x239c8a)){console['log'](LOG_PREFIX+_0x1048ac(0x190)+_0x239c8a);return;}console[_0x1048ac(0x1f1)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x239c8a+_0x1048ac(0x15a));const _0x367ea9=await import(_0x239c8a+_0x1048ac(0x1d8)),_0x5c1386=_0x367ea9&&typeof _0x367ea9===_0x1048ac(0x1e6)&&_0x1048ac(0x175)in _0x367ea9?_0x367ea9[_0x1048ac(0x175)]:_0x367ea9;if(!isRefreshRuntime(_0x5c1386)){console[_0x1048ac(0x16b)](LOG_PREFIX+_0x1048ac(0x136));return;}_0x5c1386[_0x1048ac(0x152)](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x34bc5b=>_0x34bc5b,window[_0x1048ac(0x194)]=!![],window[_0x1048ac(0x17e)][_0x1048ac(0x10f)](_0x239c8a),console[_0x1048ac(0x1f1)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x239c8a);}async function ensureViteClient(_0x125b5a){const _0x233c90=_0x4ee51d;window[_0x233c90(0x155)]??=new Set();if(window['__viteHMRLoaded'][_0x233c90(0x1c6)](_0x125b5a)){console[_0x233c90(0x1f1)](LOG_PREFIX+_0x233c90(0x17c)+_0x125b5a);return;}console[_0x233c90(0x1f1)](LOG_PREFIX+_0x233c90(0x191)+_0x125b5a+_0x233c90(0x15a)),await import(_0x125b5a+'/@vite/client'),window[_0x233c90(0x155)]['add'](_0x125b5a),console[_0x233c90(0x1f1)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x125b5a);}function isRefreshRuntime(_0x105e0b){const _0x157d56=_0x4ee51d;return typeof _0x105e0b===_0x157d56(0x1e6)&&_0x105e0b!==null&&_0x157d56(0x152)in _0x105e0b&&typeof _0x105e0b['injectIntoGlobalHook']===_0x157d56(0x118);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x57cd7c){const _0xe10129=_0x4ee51d;console['log'](LOG_PREFIX2+_0xe10129(0x134)),console['log'](LOG_PREFIX2+_0xe10129(0x113)+_0x57cd7c[_0xe10129(0x111)]);if(!(_0xe10129(0x1da)in navigator)){console[_0xe10129(0x16b)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console['log'](LOG_PREFIX2+_0xe10129(0x1e8));const _0x262572=navigator[_0xe10129(0x1da)][_0xe10129(0x140)];console['log'](LOG_PREFIX2+_0xe10129(0x1a8),_0x262572?.[_0xe10129(0x1c8)]??_0xe10129(0x10c)),console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x1a4),_0x262572?.['state']??_0xe10129(0x17f));const _0xb414b9=!!_0x262572;currentOptions2=_0x57cd7c,console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x12d));const _0x44c6d8=await detectBlockingServiceWorker(_0x57cd7c[_0xe10129(0x111)]);if(_0x44c6d8){console[_0xe10129(0x11e)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x44c6d8),console[_0xe10129(0x11e)](LOG_PREFIX2+_0xe10129(0x1f2));return;}console['log'](LOG_PREFIX2+_0xe10129(0x1a5));try{console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x1cd)+_0x57cd7c[_0xe10129(0x111)]+_0xe10129(0x158)),registration=await navigator[_0xe10129(0x1da)][_0xe10129(0x121)](_0x57cd7c['swPath'],{'scope':'/'}),console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x126),{'scope':registration[_0xe10129(0x1ed)],'active':registration['active']?.['scriptURL'],'waiting':registration[_0xe10129(0x1bc)]?.[_0xe10129(0x1c8)],'installing':registration[_0xe10129(0x131)]?.['scriptURL']}),console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x13c));const _0x588901=await navigator[_0xe10129(0x1da)][_0xe10129(0x161)];console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x13e),_0x588901[_0xe10129(0x1e4)]?.[_0xe10129(0x1c8)]);const _0x3428ba=ownsCurrentController(_0x57cd7c[_0xe10129(0x111)]);state[_0xe10129(0x179)]=_0x3428ba,console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x14e)+_0x3428ba),console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x183),navigator[_0xe10129(0x1da)][_0xe10129(0x140)]?.['scriptURL']??'none');if(!_0xb414b9&&!navigator['serviceWorker'][_0xe10129(0x140)]){console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x133)),window[_0xe10129(0x1ba)][_0xe10129(0x10e)]();return;}console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x197)),await sendConfiguration();if(state[_0xe10129(0x1b2)]){const _0x5d0cb9=document[_0xe10129(0x146)](_0xe10129(0x1c9))!==null;console['log'](LOG_PREFIX2+_0xe10129(0x138)+_0x5d0cb9);if(!_0x5d0cb9){console[_0xe10129(0x1f1)](LOG_PREFIX2+_0xe10129(0x1c5)),window[_0xe10129(0x1ba)][_0xe10129(0x10e)]();return;}}console['log'](LOG_PREFIX2+_0xe10129(0x160)),updateOverlay(),console['log'](LOG_PREFIX2+_0xe10129(0x182));}catch(_0x5c153f){console[_0xe10129(0x11e)](LOG_PREFIX2+_0xe10129(0x144),_0x5c153f);}}async function sendConfiguration(){const _0x33c721=_0x4ee51d;console[_0x33c721(0x1f1)](LOG_PREFIX2+_0x33c721(0x120)),console['log'](LOG_PREFIX2+_0x33c721(0x13d)+state[_0x33c721(0x1b2)]+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x33c721(0x1b2)]||!currentOptions2){console['log'](LOG_PREFIX2+_0x33c721(0x132));return;}const _0x5474c5=await resolveWorker();if(!_0x5474c5){console[_0x33c721(0x16b)](LOG_PREFIX2+_0x33c721(0x150));return;}const _0x188d36={'callbackBypass':currentOptions2[_0x33c721(0x1ef)],'securityMode':currentOptions2[_0x33c721(0x13b)]};console[_0x33c721(0x1f1)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x33c721(0x11c)](_0x188d36,null,0x2)),_0x5474c5[_0x33c721(0x192)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x188d36}),console['log'](LOG_PREFIX2+_0x33c721(0x1d2));}async function unregisterServiceWorker(_0x4ba8ba){const _0x98240e=_0x4ee51d;console[_0x98240e(0x1f1)](LOG_PREFIX2+_0x98240e(0x176));if(!(_0x98240e(0x1da)in navigator)){console[_0x98240e(0x1f1)](LOG_PREFIX2+_0x98240e(0x164));return;}try{const _0x5f1d70=registration??await navigator[_0x98240e(0x1da)][_0x98240e(0x15d)]('/');if(!_0x5f1d70){console[_0x98240e(0x1f1)](LOG_PREFIX2+_0x98240e(0x163));return;}console[_0x98240e(0x1f1)](LOG_PREFIX2+_0x98240e(0x1d9),{'scope':_0x5f1d70[_0x98240e(0x1ed)],'active':_0x5f1d70[_0x98240e(0x1e4)]?.[_0x98240e(0x1c8)],'waiting':_0x5f1d70[_0x98240e(0x1bc)]?.[_0x98240e(0x1c8)],'installing':_0x5f1d70[_0x98240e(0x131)]?.[_0x98240e(0x1c8)]});const _0x4c88c9=[_0x5f1d70[_0x98240e(0x1e4)]?.[_0x98240e(0x1c8)],_0x5f1d70['waiting']?.[_0x98240e(0x1c8)],_0x5f1d70['installing']?.[_0x98240e(0x1c8)]],_0x25e7f3=_0x4c88c9[_0x98240e(0x165)](_0x1778ed=>_0x1778ed&&ownsServiceWorker(_0x1778ed,_0x4ba8ba));if(!_0x25e7f3){console['log'](LOG_PREFIX2+_0x98240e(0x103));return;}_0x5f1d70[_0x98240e(0x1e4)]&&(console['log'](LOG_PREFIX2+_0x98240e(0x1a7)),_0x5f1d70[_0x98240e(0x1e4)][_0x98240e(0x192)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x98240e(0x1f1)](LOG_PREFIX2+_0x98240e(0x1e2)),await _0x5f1d70['unregister'](),registration=null,currentOptions2=null,console[_0x98240e(0x1f1)](LOG_PREFIX2+_0x98240e(0x1ab));}catch(_0x4ababd){console[_0x98240e(0x11e)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x4ababd);}}function ownsServiceWorker(_0x1c3a9f,_0x4d57d7){const _0xde66d6=_0x4ee51d,_0x48d0fb=typeof window!==_0xde66d6(0x11b)?window[_0xde66d6(0x1ba)][_0xde66d6(0x139)]:'',_0x71c025=new URL(_0x4d57d7,_0x48d0fb||void 0x0)[_0xde66d6(0x1c4)],_0x112aee=_0x1c3a9f===_0x71c025||_0x1c3a9f['includes'](_0xde66d6(0x108));return console[_0xde66d6(0x1f1)](LOG_PREFIX2+_0xde66d6(0x1eb)+_0x1c3a9f+_0xde66d6(0x1d4)+_0x71c025+_0xde66d6(0x16f)+_0x112aee),_0x112aee;}function ownsCurrentController(_0x80d636){const _0x4c920f=_0x4ee51d;if(typeof navigator===_0x4c920f(0x11b))return![];const _0x59674c=navigator[_0x4c920f(0x1da)]?.[_0x4c920f(0x140)];if(!_0x59674c)return console[_0x4c920f(0x1f1)](LOG_PREFIX2+_0x4c920f(0x1e1)),![];return ownsServiceWorker(_0x59674c[_0x4c920f(0x1c8)],_0x80d636);}async function detectBlockingServiceWorker(_0x441761){const _0x348dbc=_0x4ee51d;if(!navigator[_0x348dbc(0x1da)])return null;try{const _0x404401=await navigator['serviceWorker'][_0x348dbc(0x15d)]('/');console[_0x348dbc(0x1f1)](LOG_PREFIX2+_0x348dbc(0x1c1),_0x404401?.[_0x348dbc(0x1e4)]?.[_0x348dbc(0x1c8)]??_0x348dbc(0x10c));const _0x1381e7=_0x404401?.[_0x348dbc(0x1e4)]?.[_0x348dbc(0x1c8)];if(!_0x1381e7)return null;if(ownsServiceWorker(_0x1381e7,_0x441761))return null;return _0x1381e7;}catch(_0x8bc587){return console[_0x348dbc(0x11e)](LOG_PREFIX2+_0x348dbc(0x184),_0x8bc587),null;}}async function resolveWorker(){const _0xa820e=_0x4ee51d,_0x47a037=registration??await navigator['serviceWorker']?.['getRegistration']('/'),_0x4a2781=_0x47a037?.[_0xa820e(0x1e4)]??_0x47a037?.[_0xa820e(0x1bc)]??_0x47a037?.[_0xa820e(0x131)]??null;return console[_0xa820e(0x1f1)](LOG_PREFIX2+_0xa820e(0xfb),_0x4a2781?.[_0xa820e(0x1c8)]??'none',_0xa820e(0x180)+(_0x4a2781?.[_0xa820e(0x1b6)]??_0xa820e(0x17f))),_0x4a2781;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x7b80ea=_0x4ee51d;return typeof window!=='undefined'&&window[_0x7b80ea(0x1cc)]===!![];}function setInitialized(_0x1e445a){const _0x56c8a0=_0x4ee51d;typeof window!==_0x56c8a0(0x11b)&&(window['__enhanceInitialized']=_0x1e445a);}function getOptions(){const _0x3cbb72=_0x4ee51d;return typeof window!=='undefined'?window[_0x3cbb72(0x12c)]??null:null;}function setOptions(_0x194c73){const _0x5d3763=_0x4ee51d;typeof window!=='undefined'&&(window[_0x5d3763(0x12c)]=_0x194c73);}var Enhance={'init'(_0x4fd47c={}){const _0x4385d3=_0x4ee51d,_0x6c35d1=Date['now']();console['log'](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x6c35d1),console[_0x4385d3(0x1f1)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window[_0x4385d3(0x1ba)]['href']),console[_0x4385d3(0x1f1)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x4385d3(0x1a6)]),console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x143),JSON['stringify'](_0x4fd47c,null,0x2));if(isInitialized())return console[_0x4385d3(0x16b)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x4385d3(0x1a3)]??createController();setInitialized(!![]),console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x112));const _0x9b3d67=normalizeOptions(_0x4fd47c);setOptions(_0x9b3d67),console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x17d),JSON[_0x4385d3(0x11c)](_0x9b3d67,null,0x2));const _0x25915b=parseUrlParams();console['log'](LOG_PREFIX3+_0x4385d3(0x1a1),JSON[_0x4385d3(0x11c)](_0x25915b,null,0x2));if(_0x25915b[_0x4385d3(0x154)])return cleanUrlParam(_0x4385d3(0x10b)),console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x199)),createController();if(_0x25915b[_0x4385d3(0x1ec)])return console['log'](LOG_PREFIX3+_0x4385d3(0x128)),console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x1bf)+_0x25915b[_0x4385d3(0x122)]),console['log'](LOG_PREFIX3+_0x4385d3(0x167)+_0x25915b['enhancementId']),state[_0x4385d3(0x1b2)]=!![],console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x16d)),void loadOverlay({'overlayPath':_0x9b3d67[_0x4385d3(0xfc)],'enableViteHmr':_0x9b3d67['overlay'][_0x4385d3(0x156)],'options':_0x9b3d67,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x9b3d67),console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x153)),createController();return console['log'](LOG_PREFIX3+_0x4385d3(0x1d3)),console[_0x4385d3(0x1f1)](LOG_PREFIX3+_0x4385d3(0x1e0)),void unregisterServiceWorker(_0x9b3d67[_0x4385d3(0x111)]),console['log'](LOG_PREFIX3+_0x4385d3(0x110)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x4385d3(0x170)),import.meta.hot['on'](_0x4385d3(0x106),_0x369077=>{const _0x205113=_0x4385d3;console[_0x205113(0x1f1)](LOG_PREFIX3+_0x205113(0x188),_0x369077),state[_0x205113(0x1d0)]={'message':_0x369077[_0x205113(0x17b)][_0x205113(0x1e5)]},updateOverlay();}),import.meta.hot['on'](_0x4385d3(0xff),()=>{const _0x1d2df1=_0x4385d3;state['appError']&&(console[_0x1d2df1(0x1f1)](LOG_PREFIX3+_0x1d2df1(0x1b5)),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0x437259=_0x4ee51d,_0x3313f6={'enable'(){const _0xa6ea46=_0x4ee2,_0x17817d=getOptions();if(!_0x17817d)return;state[_0xa6ea46(0x1b2)]=!![],void loadOverlay({'overlayPath':_0x17817d[_0xa6ea46(0xfc)],'enableViteHmr':_0x17817d[_0xa6ea46(0x107)]['enableViteHmr'],'options':_0x17817d,'onToggle':handleToggle}),void registerServiceWorker(_0x17817d),void sendConfiguration(),updateOverlay();},'disable'(){const _0x1fcf70=_0x4ee2,_0x24024b=getOptions();if(!_0x24024b)return;state[_0x1fcf70(0x1b2)]=![],state[_0x1fcf70(0x179)]=![],updateOverlay(),void unregisterServiceWorker(_0x24024b[_0x1fcf70(0x111)]);},'status'(){const _0x4aef37=_0x4ee2;return{'enabled':state[_0x4aef37(0x1b2)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window[_0x437259(0x1a3)]=_0x3313f6),_0x3313f6;}function handleToggle(){const _0x7f2015=_0x4ee51d,_0x4943d3=createController();state[_0x7f2015(0x1b2)]?_0x4943d3['disable']():_0x4943d3[_0x7f2015(0x15c)]();}function parseUrlParams(){const _0x5a314b=_0x4ee51d,_0x4a400b=new URL(window['location']['href']),_0x4fa2c8=_0x4a400b[_0x5a314b(0x19d)]['get']('enhance')?.[_0x5a314b(0x186)](),_0x170f3a=_0x4a400b[_0x5a314b(0x19d)][_0x5a314b(0x1a9)]('enhancementUrl'),_0x234f8a=_0x4a400b[_0x5a314b(0x19d)][_0x5a314b(0x1a9)](_0x5a314b(0x19b));return{'hasEnhancement':Boolean(_0x170f3a||_0x234f8a),'explicitDisable':_0x4fa2c8==='0'||_0x4fa2c8===_0x5a314b(0x1df)||_0x4fa2c8===_0x5a314b(0x11a),'enhancementUrl':_0x170f3a,'enhancementId':_0x234f8a};}function cleanUrlParam(_0x24877e){const _0x1670ae=_0x4ee51d,_0x2dfa2d=new URL(window[_0x1670ae(0x1ba)]['href']);_0x2dfa2d[_0x1670ae(0x19d)][_0x1670ae(0x1c6)](_0x24877e)&&(_0x2dfa2d[_0x1670ae(0x19d)][_0x1670ae(0x1e9)](_0x24877e),window['history']['replaceState'](null,document[_0x1670ae(0x148)],_0x2dfa2d[_0x1670ae(0x1b3)]()));}var package_default={'name':_0x4ee51d(0x18f),'version':_0x4ee51d(0x1ea),'type':_0x4ee51d(0x114),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x4ee51d(0x178),'main':'./dev/index.js','module':_0x4ee51d(0x10a),'types':_0x4ee51d(0x18a),'exports':{'.':{'types':_0x4ee51d(0x18a),'import':_0x4ee51d(0x10a)},'./vite':{'types':_0x4ee51d(0x174),'import':_0x4ee51d(0x1d7)}},'files':[_0x4ee51d(0x1e7)],'bin':{'enhance-sandbox':_0x4ee51d(0x1b1)},'scripts':{'typecheck':_0x4ee51d(0x116),'dev':_0x4ee51d(0x168),'dev:build':_0x4ee51d(0x1c3),'dev:staging':_0x4ee51d(0x18c),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x4ee51d(0xfe),'version':_0x4ee51d(0x18d)},'dependencies':{'commander':_0x4ee51d(0x14d),'zod':'^3.22.4'},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x4ee51d(0x1c7),'tsup':_0x4ee51d(0x193),'vite':_0x4ee51d(0x1bb)},'publishConfig':{'access':_0x4ee51d(0x173)}},DEFAULT_SERVICE_WORKER_PATH=_0x4ee51d(0x15f),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH=_0x4ee51d(0x1a0),PACKAGE_VERSION=typeof package_default[_0x4ee51d(0x14f)]===_0x4ee51d(0x135)?package_default[_0x4ee51d(0x14f)]:_0x4ee51d(0x19a);function normalizeAssetPath(_0x48c3ed){const _0x5b3d8b=_0x4ee51d;if(!_0x48c3ed)return _0x48c3ed;if(_0x48c3ed[_0x5b3d8b(0x142)](_0x5b3d8b(0x16e))||_0x48c3ed[_0x5b3d8b(0x142)](_0x5b3d8b(0x169)))return _0x48c3ed;const _0x1687c5=_0x48c3ed[_0x5b3d8b(0x187)](/^\.\//,'');return _0x1687c5[_0x5b3d8b(0x142)]('/')?_0x1687c5:'/'+_0x1687c5;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x43d9a1){return Enhance['init'](_0x43d9a1);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x5f5346=_0x4ee51d;return Enhance2[_0x5f5346(0x124)]();}import{promises as _0xd2ecd4}from'fs';import{createHash}from'crypto';function _0x20b2(){const _0x3e10e9=['\x20composeOverlayState\x20-\x20state.enabled:\x20','runtimeURL','1737590uRxnSf','\x20Registration\x20returned:','write','\x20Enhancement\x20mode\x20ENABLED','push','filename','\x20composeOverlayState\x20-\x20state.controlled:\x20','__enhanceOptions','\x20Checking\x20for\x20blocking\x20service\x20worker...','copyFile','85080VsfLUt','keys','installing','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20registerServiceWorker()\x20called','string','\x20Invalid\x20React\x20Refresh\x20runtime','2961168BPyjlt','\x20Enhancement\x20detection:\x20wasEnhanced=','origin','[Enhance\x20Config]\x20Build-time\x20defaults:','security','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20state.enabled:\x20','\x20SW\x20ready!\x20Active:','\x20HMR\x20setup\x20complete','controller','1976772LrqtrS','startsWith','\x20Raw\x20options:','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','querySelector','\x20loadOverlay()\x20failed:','title','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','Enhance\x20sandbox\x20utility\x20CLI','\x20Starting\x20fresh\x20overlay\x20load...','1322700Tghqye','^11.1.0','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','version','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20→\x20','injectIntoGlobalHook','\x20init()\x20complete\x20-\x20enhancement\x20mode','explicitDisable','__viteHMRLoaded','enableViteHmr','__enhanceOverlay','\x20with\x20scope\x20\x27/\x27...','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','...','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','enable','getRegistration','\x20updateOverlay()\x20called','/sw-enhance.js','\x20Updating\x20overlay...','ready','prepare-sw','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','some','action','\x20enhancementId:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','https://','Print\x20the\x20current\x20asset\x20manifest','warn','\x20setupRemoteHMR()\x20for\x20','\x20Starting\x20overlay\x20load\x20(async)...','http://',',\x20owns=','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','options','requiredOption','public','./dev/vite/index.d.ts','default','\x20unregisterServiceWorker()\x20called','\x20doLoadOverlay()\x20starting...','MIT','controlled','update','err','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Normalized\x20options:','__enhanceReactRefreshInstalledOrigins','N/A','state:\x20','onToggle','\x20registerServiceWorker()\x20complete','\x20Current\x20controller\x20after\x20ready:','\x20detectBlocking\x20error:','relativeDestination','toLowerCase','replace','\x20Vite\x20error\x20detected:','manifest','./dev/index.d.ts','publicDir','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','bun\x20version\x20patch\x20--no-git-tag-version','parseAsync','@enhance-eng/sandbox','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','postMessage','^8.5.1','__vite_plugin_react_preamble_installed__','command','--filename\x20<name>','\x20Sending\x20customer\x20configuration...','483188UlOsEU','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','0.0.0','enhancement','Skipped\x20','searchParams','bottom-right','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','assets/enhance-runtime.js','\x20URL\x20params\x20parsed:','--public-dir\x20<path>','__enhanceController','\x20Controller\x20state:','\x20No\x20blocking\x20SW\x20found','readyState','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Current\x20controller:','get','enhance-sandbox','\x20SW\x20unregistered\x20successfully','search','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20No\x20window\x20object\x20-\x20skipping','\x20enableViteHmr:\x20','\x20Failed\x20to\x20import/create\x20overlay:','./dev/cli.js','enabled','toString','\x20Module\x20missing\x20createOverlay\x20export!','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','state','\x20Calling\x20createOverlay()...','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','now','location','^7.2.4','waiting','ENOENT','digest','\x20enhancementUrl:\x20',',\x20page\x20origin:\x20','\x20detectBlocking\x20-\x20existing\x20registration:','manifestPath','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','href','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','has','^4.1.1','scriptURL','[data-enhance-runtime-bootstrap]','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','__enhanceInitialized','\x20Registering\x20SW\x20at\x20','sourcePath','../dist/index.js','appError','10FIVFgF','\x20Config\x20sent\x20to\x20SW','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params',',\x20expected=','\x20Updating\x20overlay\x20with\x20state:','code','./dev/vite/index.js','/@react-refresh','\x20Found\x20registration:','serviceWorker','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','override','base64','cwd','false','\x20Unregistering\x20any\x20existing\x20SW...','\x20No\x20current\x20controller','\x20Unregistering\x20SW...','position','active','message','object','dev/','\x20Service\x20workers\x20supported','delete','0.3.17','\x20ownsServiceWorker?\x20scriptURL=','hasEnhancement','scope','Copied\x20','callbackBypass','description','log','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','/assets/enhance-runtime.js','createOverlay','https://assets.enhancelabs.ai/overlay.js','\x20resolveWorker:','overlayPath','\x20loadOverlay()\x20complete','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','vite:beforeUpdate','readFile','\x20Controller\x20created:','https://api.enhancelabs.ai','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20loadOverlay()\x20called','[Enhance\x20Overlay]','vite:error','overlay','sw-enhance','stdout','./dev/index.js','enhance','none','mkdir','reload','add','\x20init()\x20complete\x20-\x20normal\x20mode','swPath','\x20First\x20initialization','\x20swPath:\x20','module','__development','tsc\x20--noEmit','backendUrl','function','option','off','undefined','stringify','swFilename','error','964302GYMMiz','\x20sendConfiguration()\x20called','register','enhancementUrl'];_0x20b2=function(){return _0x3e10e9;};return _0x20b2();}import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x4ee51d(0x1cf),import.meta.url)));async function syncAssets(_0x10f7e7){const _0x2be9f7=_0x4ee51d,_0x412549=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x10f7e7[_0x2be9f7(0x11d)]?'./'+_0x10f7e7['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x49d572=[];for(const _0x507bf8 of _0x412549){const _0x53197a=cleanRelativePath(_0x507bf8[_0x2be9f7(0x1dc)]??_0x507bf8[_0x2be9f7(0x1c2)]),_0x253419=join(distDir,cleanRelativePath(_0x507bf8[_0x2be9f7(0x1ce)])),_0x3f1311=join(_0x10f7e7[_0x2be9f7(0x18b)],_0x53197a),[_0x23cb26,_0x5bceca]=await Promise['all']([readDigest(_0x253419),readDigest(_0x3f1311)]);if(_0x23cb26&&_0x5bceca&&_0x23cb26===_0x5bceca){_0x49d572[_0x2be9f7(0x129)]({'sourcePath':_0x253419,'destinationPath':_0x3f1311,'relativeDestination':_0x53197a,'status':'skipped'});continue;}await _0xd2ecd4[_0x2be9f7(0x10d)](dirname(_0x3f1311),{'recursive':!![]}),await _0xd2ecd4[_0x2be9f7(0x12e)](_0x253419,_0x3f1311),_0x49d572[_0x2be9f7(0x129)]({'sourcePath':_0x253419,'destinationPath':_0x3f1311,'relativeDestination':_0x53197a,'status':'copied'});}return _0x49d572;}function cleanRelativePath(_0x1b5f4b){const _0x1ee41f=_0x4ee51d;return _0x1b5f4b[_0x1ee41f(0x187)](/^[./]+/,'');}async function readDigest(_0x1cafd6){const _0x12fc95=_0x4ee51d;try{const _0xc8ddde=await _0xd2ecd4[_0x12fc95(0x100)](_0x1cafd6);return createHash('sha256')[_0x12fc95(0x17a)](_0xc8ddde)[_0x12fc95(0x1be)](_0x12fc95(0x1dd));}catch(_0x5e2957){if(_0x5e2957[_0x12fc95(0x1d6)]===_0x12fc95(0x1bd))return null;throw _0x5e2957;}}var program=new Command();program['name'](_0x4ee51d(0x1aa))[_0x4ee51d(0x1f0)](_0x4ee51d(0x14a))['version'](_0x4ee51d(0x19a)),program[_0x4ee51d(0x195)](_0x4ee51d(0x189))[_0x4ee51d(0x1f0)](_0x4ee51d(0x16a))[_0x4ee51d(0x166)](()=>{const _0x2cbe01=_0x4ee51d,_0x2eaeda=getAssetManifest();process[_0x2cbe01(0x109)][_0x2cbe01(0x127)](JSON[_0x2cbe01(0x11c)](_0x2eaeda,null,0x2)+'\x0a');}),program[_0x4ee51d(0x195)](_0x4ee51d(0x162))[_0x4ee51d(0x1f0)](_0x4ee51d(0x1b8))[_0x4ee51d(0x172)](_0x4ee51d(0x1a2),_0x4ee51d(0x1ca))[_0x4ee51d(0x119)](_0x4ee51d(0x196),_0x4ee51d(0x19f))[_0x4ee51d(0x166)](async _0x3b190f=>{const _0x405c8c=_0x4ee51d,_0x1237fc=resolve(process['cwd'](),_0x3b190f[_0x405c8c(0x18b)]),_0x5c35be=await syncAssets({'publicDir':_0x1237fc,'swFilename':_0x3b190f[_0x405c8c(0x12a)]});for(const _0x15e68c of _0x5c35be){const _0x3dcd08=relative(process[_0x405c8c(0x1de)](),_0x15e68c['destinationPath']);_0x15e68c['status']==='skipped'?process[_0x405c8c(0x109)][_0x405c8c(0x127)](_0x405c8c(0x19c)+_0x15e68c[_0x405c8c(0x185)]+'\x20(already\x20current)\x20['+_0x3dcd08+']\x0a'):process['stdout']['write'](_0x405c8c(0x1ee)+_0x15e68c[_0x405c8c(0x185)]+_0x405c8c(0x151)+_0x3dcd08+'\x0a');}}),program[_0x4ee51d(0x18e)]();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,31 @@
|
|
|
1
|
+
type SecurityMode$1 = "permissive" | "custom";
|
|
2
|
+
|
|
1
3
|
type RawOptions = {
|
|
2
|
-
callbackBypass
|
|
4
|
+
callbackBypass?: string[];
|
|
3
5
|
__development?: {
|
|
4
6
|
enableOverlayHmr?: boolean;
|
|
5
7
|
overlayPath?: string;
|
|
6
|
-
security?:
|
|
8
|
+
security?: "permissive" | "custom";
|
|
7
9
|
backendUrl?: string;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
12
|
+
type NormalizedOptions = {
|
|
13
|
+
callbackBypass: string[];
|
|
14
|
+
overlay: {
|
|
15
|
+
enabled: true;
|
|
16
|
+
position: "bottom-right";
|
|
17
|
+
enableViteHmr: boolean;
|
|
18
|
+
};
|
|
19
|
+
logLevel: "info";
|
|
20
|
+
swPath: "/sw-enhance.js";
|
|
21
|
+
overlayPath: string;
|
|
22
|
+
runtimeScriptPath: "/assets/enhance-runtime.js";
|
|
23
|
+
security: SecurityMode$1;
|
|
24
|
+
backendUrl: string;
|
|
25
|
+
};
|
|
10
26
|
|
|
11
|
-
type OverlayPosition =
|
|
12
|
-
type SecurityMode =
|
|
27
|
+
type OverlayPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
28
|
+
type SecurityMode = "permissive" | "custom";
|
|
13
29
|
interface OverlayState {
|
|
14
30
|
enhancementUrl: string;
|
|
15
31
|
enabled: boolean;
|
|
@@ -17,11 +33,19 @@ interface OverlayState {
|
|
|
17
33
|
overlayPosition: OverlayPosition;
|
|
18
34
|
securityMode: SecurityMode;
|
|
19
35
|
backendBaseUrl?: string;
|
|
36
|
+
appError: {
|
|
37
|
+
message: string;
|
|
38
|
+
} | null;
|
|
39
|
+
/** Debug flag to force "Working" state */
|
|
40
|
+
forceWorking?: boolean;
|
|
20
41
|
}
|
|
21
42
|
interface OverlayController {
|
|
22
43
|
update(state: OverlayState): void;
|
|
23
44
|
onToggle(handler: () => void): void;
|
|
24
45
|
destroy(): void;
|
|
46
|
+
open(): void;
|
|
47
|
+
close(): void;
|
|
48
|
+
isOpen(): boolean;
|
|
25
49
|
}
|
|
26
50
|
interface EnhanceStatus {
|
|
27
51
|
enabled: boolean;
|
|
@@ -44,11 +68,18 @@ declare global {
|
|
|
44
68
|
}
|
|
45
69
|
}
|
|
46
70
|
|
|
71
|
+
declare global {
|
|
72
|
+
interface Window {
|
|
73
|
+
__enhanceInitialized?: boolean;
|
|
74
|
+
__enhanceOptions?: NormalizedOptions;
|
|
75
|
+
__enhanceController?: EnhanceController;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
47
78
|
/**
|
|
48
79
|
* Main entry point - the only public API.
|
|
49
80
|
*/
|
|
50
81
|
declare const Enhance$1: {
|
|
51
|
-
init(rawOptions
|
|
82
|
+
init(rawOptions?: RawOptions): EnhanceController;
|
|
52
83
|
};
|
|
53
84
|
|
|
54
85
|
interface EnhanceAssetManifest {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x447c3c=_0x2c38;(function(_0xe6adc8,_0x2f7b78){const _0x2c617d=_0x2c38,_0x596d81=_0xe6adc8();while(!![]){try{const _0x38cbdc=parseInt(_0x2c617d(0x19a))/0x1+parseInt(_0x2c617d(0x199))/0x2*(-parseInt(_0x2c617d(0x175))/0x3)+-parseInt(_0x2c617d(0x21a))/0x4+-parseInt(_0x2c617d(0x168))/0x5*(parseInt(_0x2c617d(0x1b7))/0x6)+-parseInt(_0x2c617d(0x1e9))/0x7*(parseInt(_0x2c617d(0x187))/0x8)+parseInt(_0x2c617d(0x1e0))/0x9+parseInt(_0x2c617d(0x1b8))/0xa*(parseInt(_0x2c617d(0x1f3))/0xb);if(_0x38cbdc===_0x2f7b78)break;else _0x596d81['push'](_0x596d81['shift']());}catch(_0x1887af){_0x596d81['push'](_0x596d81['shift']());}}}(_0x5842,0x4b112));function normalizeOptions(_0x5cc7ee){const _0x38d0aa=_0x2c38,_0x2b62f0=_0x5cc7ee[_0x38d0aa(0x1a9)]??{};return{'callbackBypass':_0x5cc7ee[_0x38d0aa(0x1f9)],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x2b62f0[_0x38d0aa(0x167)]??![]},'logLevel':'info','swPath':_0x38d0aa(0x158),'overlayPath':_0x2b62f0['overlayPath']??'https://assets.enhancelabs.ai/overlay.js','runtimeScriptPath':_0x38d0aa(0x219),'security':_0x2b62f0[_0x38d0aa(0x1b5)]??_0x38d0aa(0x17e),'backendUrl':_0x2b62f0[_0x38d0aa(0x201)]??'https://api.enhancelabs.ai'};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x26968b=_0x2c38;try{const _0x509967=new URLSearchParams(window[_0x26968b(0x17b)]['search']);return _0x509967['get'](_0x26968b(0x1ea))?.[_0x26968b(0x1d8)]()||'';}catch{return'';}}var LOG_PREFIX=_0x447c3c(0x16a),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x31044f){const _0x6341c9=_0x447c3c;console['log'](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x31044f['overlayPath']),console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x1ec)+_0x31044f[_0x6341c9(0x20d)]),currentOptions=_0x31044f[_0x6341c9(0x1ae)],toggleHandler=_0x31044f[_0x6341c9(0x224)];if(overlayController){console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x1cb)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x31044f);try{await overlayLoadPromise,console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x15a));}catch(_0x506b37){console[_0x6341c9(0x1f6)](LOG_PREFIX+_0x6341c9(0x185),_0x506b37);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x121e42){const _0x566dfc=_0x447c3c;console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x566dfc(0x188)){console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x1c0));return;}if(window[_0x566dfc(0x1bb)]){console['log'](LOG_PREFIX+_0x566dfc(0x1af)),overlayController=window[_0x566dfc(0x1bb)],overlayController['onToggle'](_0x121e42[_0x566dfc(0x224)]),updateOverlay();return;}console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x19e));try{_0x121e42['enableViteHmr']&&(console['log'](LOG_PREFIX+_0x566dfc(0x156)),await setupRemoteHMR(_0x121e42[_0x566dfc(0x177)]));console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x121e42['overlayPath']);const _0x1e4021=Date[_0x566dfc(0x17f)](),_0x46904a=await import(_0x121e42[_0x566dfc(0x177)]);console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x221)+(Date[_0x566dfc(0x17f)]()-_0x1e4021)+'ms'),console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x22b),Object[_0x566dfc(0x15b)](_0x46904a));if(typeof _0x46904a?.[_0x566dfc(0x171)]!=='function'){console['error'](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x566dfc(0x1f6)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x566dfc(0x15b)](_0x46904a));return;}console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x182));const _0x214b46=_0x46904a[_0x566dfc(0x171)]();console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Controller\x20created:',_0x214b46),overlayController=_0x214b46,window[_0x566dfc(0x1bb)]=_0x214b46,_0x214b46[_0x566dfc(0x224)](_0x121e42[_0x566dfc(0x224)]),console['log'](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x4bd65b){console[_0x566dfc(0x1f6)](LOG_PREFIX+_0x566dfc(0x1ff),_0x4bd65b);}}function updateOverlay(){const _0xf07ed=_0x447c3c;console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x170)),console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1c2)+!!overlayController),console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1b1)+!!currentOptions);if(!overlayController||!currentOptions){console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1e8));return;}const _0xf8a48=composeOverlayState(currentOptions);console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x228),JSON[_0xf07ed(0x1cf)](_0xf8a48,null,0x2)),overlayController[_0xf07ed(0x195)](_0xf8a48),console[_0xf07ed(0x1b2)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x4575a9){const _0x47752b=_0x447c3c,_0x2da3c9=getEnhancementUrl();return console[_0x47752b(0x1b2)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementUrl:\x20'+_0x2da3c9),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x47752b(0x181)]),console[_0x47752b(0x1b2)](LOG_PREFIX+_0x47752b(0x16c)+state['controlled']),{'enhancementUrl':_0x2da3c9,'enabled':state[_0x47752b(0x181)],'controlled':state[_0x47752b(0x1d2)],'overlayPosition':_0x4575a9['overlay'][_0x47752b(0x222)],'securityMode':_0x4575a9[_0x47752b(0x1b5)],'backendBaseUrl':_0x4575a9[_0x47752b(0x201)]};}async function setupRemoteHMR(_0x575f08){const _0x57314d=_0x447c3c;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x575f08);if(typeof window===_0x57314d(0x188))return;try{const _0x39d0cc=new URL(_0x575f08,window[_0x57314d(0x17b)]['origin']),_0x19fe7d=_0x39d0cc[_0x57314d(0x194)];console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x17c)+_0x19fe7d+_0x57314d(0x1d9)+window[_0x57314d(0x17b)]['origin']);if(_0x19fe7d===window[_0x57314d(0x17b)]['origin']){console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x16f));return;}console['log'](LOG_PREFIX+_0x57314d(0x192)),await ensureReactRefreshPreamble(_0x19fe7d),await ensureViteClient(_0x19fe7d),console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x1c3));}catch(_0x4cb35d){console[_0x57314d(0x1e5)](LOG_PREFIX+_0x57314d(0x1df),_0x4cb35d);}}async function ensureReactRefreshPreamble(_0x3b1574){const _0x40b422=_0x447c3c;window[_0x40b422(0x19d)]??=new Set();if(window[_0x40b422(0x19d)][_0x40b422(0x17d)](_0x3b1574)){console[_0x40b422(0x1b2)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3b1574);return;}console[_0x40b422(0x1b2)](LOG_PREFIX+_0x40b422(0x1ce)+_0x3b1574+_0x40b422(0x1ad));const _0x3b7b75=await import(_0x3b1574+_0x40b422(0x16d)),_0x3307ee=_0x3b7b75&&typeof _0x3b7b75===_0x40b422(0x1f2)&&_0x40b422(0x1a3)in _0x3b7b75?_0x3b7b75['default']:_0x3b7b75;if(!isRefreshRuntime(_0x3307ee)){console['warn'](LOG_PREFIX+_0x40b422(0x1ba));return;}_0x3307ee['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x40b422(0x15e)]=()=>_0x1c219e=>_0x1c219e,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x40b422(0x19d)][_0x40b422(0x21d)](_0x3b1574),console[_0x40b422(0x1b2)](LOG_PREFIX+_0x40b422(0x1b0)+_0x3b1574);}async function ensureViteClient(_0x3cb3a0){const _0x38fa02=_0x447c3c;window[_0x38fa02(0x215)]??=new Set();if(window[_0x38fa02(0x215)][_0x38fa02(0x17d)](_0x3cb3a0)){console['log'](LOG_PREFIX+_0x38fa02(0x179)+_0x3cb3a0);return;}console[_0x38fa02(0x1b2)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x3cb3a0+_0x38fa02(0x1ad)),await import(_0x3cb3a0+_0x38fa02(0x162)),window['__viteHMRLoaded']['add'](_0x3cb3a0),console[_0x38fa02(0x1b2)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x3cb3a0);}function isRefreshRuntime(_0x2406db){const _0x103be9=_0x447c3c;return typeof _0x2406db===_0x103be9(0x1f2)&&_0x2406db!==null&&_0x103be9(0x159)in _0x2406db&&typeof _0x2406db[_0x103be9(0x159)]===_0x103be9(0x205);}var WORKER_MESSAGE_CONFIG=_0x447c3c(0x1b3),WORKER_MESSAGE_DISABLE='enhance:disable',WORKER_MESSAGE_REQUEST_CONFIG=_0x447c3c(0x208),LOG_PREFIX2=_0x447c3c(0x202),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x1b4377){const _0x471eac=_0x447c3c;console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1aa)+_0x1b4377[_0x471eac(0x1e2)]);if(!(_0x471eac(0x225)in navigator)){console[_0x471eac(0x1e5)](LOG_PREFIX2+_0x471eac(0x200));return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x190));const _0x533101=navigator[_0x471eac(0x225)][_0x471eac(0x21b)];console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x18f),_0x533101?.[_0x471eac(0x173)]??_0x471eac(0x1fc)),console['log'](LOG_PREFIX2+'\x20Controller\x20state:',_0x533101?.['state']??_0x471eac(0x193));const _0x3fc05f=!!_0x533101;currentOptions2=_0x1b4377,configGetter=()=>buildWorkerConfiguration(_0x1b4377),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x183));const _0x534937=await detectBlockingServiceWorker(_0x1b4377[_0x471eac(0x1e2)]);if(_0x534937){console['error'](LOG_PREFIX2+_0x471eac(0x198)+_0x534937),console['error'](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a8));try{console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1db)+_0x1b4377['swPath']+_0x471eac(0x21e)),registration=await navigator['serviceWorker'][_0x471eac(0x217)](_0x1b4377['swPath'],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x471eac(0x1c1),{'scope':registration['scope'],'active':registration[_0x471eac(0x1d6)]?.['scriptURL'],'waiting':registration[_0x471eac(0x1b6)]?.[_0x471eac(0x173)],'installing':registration[_0x471eac(0x1f0)]?.[_0x471eac(0x173)]}),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x209));const _0x36a772=await navigator[_0x471eac(0x225)][_0x471eac(0x21c)];console['log'](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x36a772[_0x471eac(0x1d6)]?.[_0x471eac(0x173)]);const _0x3dd053=ownsCurrentController(_0x1b4377[_0x471eac(0x1e2)]);state[_0x471eac(0x1d2)]=_0x3dd053,console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x3dd053),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1cc),navigator[_0x471eac(0x225)][_0x471eac(0x21b)]?.['scriptURL']??_0x471eac(0x1fc));if(!_0x3fc05f&&!navigator[_0x471eac(0x225)][_0x471eac(0x21b)]){console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...'),window['location'][_0x471eac(0x220)]();return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a6)),attachMessageListener(),console['log'](LOG_PREFIX2+_0x471eac(0x20a)),await sendConfiguration();if(state['enabled']){const _0x1412fc=document['querySelector'](_0x471eac(0x203))!==null;console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a5)+_0x1412fc);if(!_0x1412fc){console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1fe)),window[_0x471eac(0x17b)][_0x471eac(0x220)]();return;}}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x15f)),updateOverlay(),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1b9));}catch(_0x4085b5){console[_0x471eac(0x1f6)](LOG_PREFIX2+_0x471eac(0x155),_0x4085b5);}}async function sendConfiguration(){const _0x351027=_0x447c3c;console['log'](LOG_PREFIX2+_0x351027(0x164)),console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x20e)+state['enabled']+',\x20configGetter:\x20'+!!configGetter);if(!state[_0x351027(0x181)]||!configGetter){console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1fd));return;}const _0x47e260=await resolveWorker();if(!_0x47e260){console[_0x351027(0x1e5)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4fdd1f=configGetter();console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1a0),JSON[_0x351027(0x1cf)](_0x4fdd1f,null,0x2)),_0x47e260[_0x351027(0x1fb)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4fdd1f}),console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1d0));}async function unregisterServiceWorker(_0x358f96){const _0x28ef05=_0x447c3c;console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x226));if(!(_0x28ef05(0x225)in navigator)){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1c9));return;}detachMessageListener();try{const _0x3440a7=registration??await navigator['serviceWorker'][_0x28ef05(0x1d1)]('/');if(!_0x3440a7){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x19b));return;}console[_0x28ef05(0x1b2)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x3440a7[_0x28ef05(0x1f4)],'active':_0x3440a7[_0x28ef05(0x1d6)]?.[_0x28ef05(0x173)],'waiting':_0x3440a7[_0x28ef05(0x1b6)]?.[_0x28ef05(0x173)],'installing':_0x3440a7[_0x28ef05(0x1f0)]?.[_0x28ef05(0x173)]});const _0x48ab2d=[_0x3440a7['active']?.[_0x28ef05(0x173)],_0x3440a7[_0x28ef05(0x1b6)]?.[_0x28ef05(0x173)],_0x3440a7['installing']?.[_0x28ef05(0x173)]],_0x1b0e78=_0x48ab2d['some'](_0x48103b=>_0x48103b&&ownsServiceWorker(_0x48103b,_0x358f96));if(!_0x1b0e78){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1d7));return;}_0x3440a7[_0x28ef05(0x1d6)]&&(console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1f8)),_0x3440a7[_0x28ef05(0x1d6)][_0x28ef05(0x1fb)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x28ef05(0x1e7)),await _0x3440a7[_0x28ef05(0x20b)](),registration=null,console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1bf));}catch(_0x326a4b){console[_0x28ef05(0x1f6)](LOG_PREFIX2+_0x28ef05(0x1d3),_0x326a4b);}}function attachMessageListener(){const _0x2ab9eb=_0x447c3c;if(!navigator[_0x2ab9eb(0x225)]||messageListener){console['log'](LOG_PREFIX2+_0x2ab9eb(0x16b));return;}messageListener=_0x2eea4a=>{const _0x112ba2=_0x2ab9eb,_0x2c4d9a=_0x2eea4a[_0x112ba2(0x229)];console[_0x112ba2(0x1b2)](LOG_PREFIX2+_0x112ba2(0x196),_0x2c4d9a);if(!_0x2c4d9a||typeof _0x2c4d9a!==_0x112ba2(0x1f2))return;_0x2c4d9a[_0x112ba2(0x18c)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x112ba2(0x1b2)](LOG_PREFIX2+_0x112ba2(0x1c5)),void sendConfiguration());},navigator['serviceWorker'][_0x2ab9eb(0x18d)]('message',messageListener),console[_0x2ab9eb(0x1b2)](LOG_PREFIX2+_0x2ab9eb(0x178));}function detachMessageListener(){const _0x23c3c4=_0x447c3c;navigator['serviceWorker']&&messageListener&&(navigator[_0x23c3c4(0x225)][_0x23c3c4(0x184)](_0x23c3c4(0x1ab),messageListener),messageListener=null,console['log'](LOG_PREFIX2+_0x23c3c4(0x207)));}function ownsServiceWorker(_0x1aa89e,_0x4dc2c7){const _0x34834f=_0x447c3c,_0x165b3b=typeof window!=='undefined'?window['location']['origin']:'',_0x130741=new URL(_0x4dc2c7,_0x165b3b||void 0x0)[_0x34834f(0x1da)],_0x3ab00d=_0x1aa89e===_0x130741||_0x1aa89e[_0x34834f(0x1c8)](_0x34834f(0x1a7));return console['log'](LOG_PREFIX2+_0x34834f(0x20c)+_0x1aa89e+_0x34834f(0x216)+_0x130741+',\x20owns='+_0x3ab00d),_0x3ab00d;}function ownsCurrentController(_0x35da83){const _0x265edd=_0x447c3c;if(typeof navigator===_0x265edd(0x188))return![];const _0x4502c5=navigator[_0x265edd(0x225)]?.[_0x265edd(0x21b)];if(!_0x4502c5)return console[_0x265edd(0x1b2)](LOG_PREFIX2+_0x265edd(0x163)),![];return ownsServiceWorker(_0x4502c5[_0x265edd(0x173)],_0x35da83);}async function detectBlockingServiceWorker(_0x1d42e7){const _0xaeff2e=_0x447c3c;if(!navigator[_0xaeff2e(0x225)])return null;try{const _0x46d55c=await navigator[_0xaeff2e(0x225)][_0xaeff2e(0x1d1)]('/');console[_0xaeff2e(0x1b2)](LOG_PREFIX2+_0xaeff2e(0x189),_0x46d55c?.[_0xaeff2e(0x1d6)]?.[_0xaeff2e(0x173)]??_0xaeff2e(0x1fc));const _0x1ad8c5=_0x46d55c?.[_0xaeff2e(0x1d6)]?.['scriptURL'];if(!_0x1ad8c5)return null;if(ownsServiceWorker(_0x1ad8c5,_0x1d42e7))return null;return _0x1ad8c5;}catch(_0x5cfbf4){return console[_0xaeff2e(0x1f6)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x5cfbf4),null;}}async function resolveWorker(){const _0x489739=_0x447c3c,_0x5aa5e5=registration??await navigator['serviceWorker']?.[_0x489739(0x1d1)]('/'),_0x34c9d4=_0x5aa5e5?.[_0x489739(0x1d6)]??_0x5aa5e5?.[_0x489739(0x1b6)]??_0x5aa5e5?.[_0x489739(0x1f0)]??null;return console[_0x489739(0x1b2)](LOG_PREFIX2+_0x489739(0x223),_0x34c9d4?.[_0x489739(0x173)]??_0x489739(0x1fc),'state:\x20'+(_0x34c9d4?.['state']??_0x489739(0x193))),_0x34c9d4;}function buildWorkerConfiguration(_0x1537e2){const _0x26a9c5=_0x447c3c,_0x3f23fe=getEnhancementUrl();return console[_0x26a9c5(0x1b2)](LOG_PREFIX2+_0x26a9c5(0x169)+_0x3f23fe),{'enhancementUrl':_0x3f23fe,'callbackBypass':_0x1537e2['callbackBypass'],'overlayPath':_0x1537e2[_0x26a9c5(0x177)],'overlayEnableViteHmr':_0x1537e2[_0x26a9c5(0x1eb)][_0x26a9c5(0x20d)],'runtimeScriptPath':_0x1537e2['runtimeScriptPath'],'swPath':_0x1537e2[_0x26a9c5(0x1e2)],'securityMode':_0x1537e2[_0x26a9c5(0x1b5)],'backendUrl':_0x1537e2[_0x26a9c5(0x201)]};}var LOG_PREFIX3=_0x447c3c(0x197),initialized=![],options=null,Enhance={'init'(_0x5c03b2){const _0x3b0887=_0x447c3c,_0x27d64e=Date[_0x3b0887(0x17f)]();console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1e3)+_0x27d64e),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x212)+window[_0x3b0887(0x17b)][_0x3b0887(0x1da)]),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1d5)+document[_0x3b0887(0x1ed)]),console['log'](LOG_PREFIX3+_0x3b0887(0x22a),JSON[_0x3b0887(0x1cf)](_0x5c03b2,null,0x2));if(initialized)return console[_0x3b0887(0x1e5)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),createController();initialized=!![],console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1f1)),options=normalizeOptions(_0x5c03b2),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1a4),JSON[_0x3b0887(0x1cf)](options,null,0x2));const _0x4f9aa4=parseUrlParams();console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x3b0887(0x1cf)](_0x4f9aa4,null,0x2));if(_0x4f9aa4[_0x3b0887(0x1ca)])return cleanUrlParam(_0x3b0887(0x19c)),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x191)),createController();if(_0x4f9aa4[_0x3b0887(0x1cd)])return console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x160)),console['log'](LOG_PREFIX3+_0x3b0887(0x157)+_0x4f9aa4[_0x3b0887(0x1ea)]),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x206)+_0x4f9aa4[_0x3b0887(0x210)]),state[_0x3b0887(0x181)]=!![],console['log'](LOG_PREFIX3+_0x3b0887(0x1c6)),void loadOverlay({'overlayPath':options['overlayPath'],'enableViteHmr':options[_0x3b0887(0x1eb)][_0x3b0887(0x20d)],'options':options,'onToggle':handleToggle}),console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(options),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x18e)),createController();return console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x165)),void unregisterServiceWorker(options['swPath']),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x18a)),createController();}};function createController(){return{'enable'(){const _0x283446=_0x2c38;if(!options)return;state['enabled']=!![],void loadOverlay({'overlayPath':options[_0x283446(0x177)],'enableViteHmr':options[_0x283446(0x1eb)][_0x283446(0x20d)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x130160=_0x2c38;if(!options)return;state[_0x130160(0x181)]=![],state[_0x130160(0x1d2)]=![],updateOverlay(),void unregisterServiceWorker(options[_0x130160(0x1e2)]);},'status'(){const _0x490959=_0x2c38;return{'enabled':state[_0x490959(0x181)],'controlled':state[_0x490959(0x1d2)]};}};}function handleToggle(){const _0x17793d=_0x447c3c,_0x399b3f=createController();state[_0x17793d(0x181)]?_0x399b3f[_0x17793d(0x16e)]():_0x399b3f[_0x17793d(0x19f)]();}function parseUrlParams(){const _0x6740d8=_0x447c3c,_0x53172a=new URL(window['location'][_0x6740d8(0x1da)]),_0x3a5bc8=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x19c))?.[_0x6740d8(0x218)](),_0x1613c6=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x1ea)),_0x2d2d51=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x176));return{'hasEnhancement':Boolean(_0x1613c6||_0x2d2d51),'explicitDisable':_0x3a5bc8==='0'||_0x3a5bc8===_0x6740d8(0x214)||_0x3a5bc8===_0x6740d8(0x1a2),'enhancementUrl':_0x1613c6,'enhancementId':_0x2d2d51};}function _0x2c38(_0xc900e2,_0x49d823){const _0x5842ff=_0x5842();return _0x2c38=function(_0x2c38c4,_0x2f0466){_0x2c38c4=_0x2c38c4-0x155;let _0x5ecd43=_0x5842ff[_0x2c38c4];return _0x5ecd43;},_0x2c38(_0xc900e2,_0x49d823);}function cleanUrlParam(_0x1441f0){const _0x5090a1=_0x447c3c,_0x1d61d5=new URL(window[_0x5090a1(0x17b)][_0x5090a1(0x1da)]);_0x1d61d5['searchParams'][_0x5090a1(0x17d)](_0x1441f0)&&(_0x1d61d5[_0x5090a1(0x20f)][_0x5090a1(0x1e6)](_0x1441f0),window[_0x5090a1(0x1bc)][_0x5090a1(0x1ee)](null,document[_0x5090a1(0x21f)],_0x1d61d5[_0x5090a1(0x174)]()));}var package_default={'name':_0x447c3c(0x1b4),'version':_0x447c3c(0x1f7),'type':_0x447c3c(0x1bd),'description':_0x447c3c(0x166),'license':_0x447c3c(0x1e4),'main':_0x447c3c(0x161),'module':_0x447c3c(0x180),'types':_0x447c3c(0x172),'exports':{'.':{'types':_0x447c3c(0x172),'import':'./dist/index.js','require':'./dist/index.cjs'},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x447c3c(0x15c)}},'files':[_0x447c3c(0x227),_0x447c3c(0x1a1),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x447c3c(0x1c7)},'scripts':{'typecheck':_0x447c3c(0x1de),'dev':_0x447c3c(0x1dd),'dev:staging':_0x447c3c(0x1be),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x447c3c(0x1e1),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x447c3c(0x1c4)},'devDependencies':{'@types/node':_0x447c3c(0x18b),'javascript-obfuscator':_0x447c3c(0x213),'tsup':_0x447c3c(0x17a),'vite':_0x447c3c(0x15d)},'publishConfig':{'access':_0x447c3c(0x1d4)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x447c3c(0x219),PACKAGE_VERSION=typeof package_default[_0x447c3c(0x1ac)]===_0x447c3c(0x1dc)?package_default[_0x447c3c(0x1ac)]:_0x447c3c(0x211);function _0x5842(){const _0x177510=['[data-enhance-runtime-bootstrap]','replace','function','\x20enhancementId:\x20','\x20Message\x20listener\x20detached','enhance:request-config','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Sending\x20initial\x20configuration...','unregister','\x20ownsServiceWorker?\x20scriptURL=','enableViteHmr','\x20state.enabled:\x20','searchParams','enhancementId','0.0.0','\x20Current\x20URL:\x20','^4.1.1','false','__viteHMRLoaded',',\x20expected=','register','toLowerCase','/assets/enhance-runtime.js','245512hkOjXF','controller','ready','add','\x20with\x20scope\x20\x27/\x27...','title','reload','\x20Module\x20imported\x20in\x20','position','\x20resolveWorker:','onToggle','serviceWorker','\x20unregisterServiceWorker()\x20called','dist','\x20Updating\x20overlay\x20with\x20state:','data','\x20Raw\x20options:','\x20Module\x20exports:','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Setting\x20up\x20remote\x20HMR...','\x20enhancementUrl:\x20','/sw-enhance.js','injectIntoGlobalHook','\x20loadOverlay()\x20complete','keys','./dist/vite/index.js','^7.2.4','$RefreshSig$','\x20Updating\x20overlay...','\x20Enhancement\x20mode\x20ENABLED','./dist/index.cjs','/@vite/client','\x20No\x20current\x20controller','\x20sendConfiguration()\x20called','\x20Unregistering\x20any\x20existing\x20SW...','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','enableOverlayHmr','8005cxAnmh','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','[Enhance\x20Overlay]','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','\x20composeOverlayState\x20-\x20state.controlled:\x20','/@react-refresh','disable','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20updateOverlay()\x20called','createOverlay','./dist/index.d.ts','scriptURL','toString','954kHprwT','enhancement','overlayPath','\x20Message\x20listener\x20attached','\x20Vite\x20client\x20already\x20loaded\x20for\x20','^8.5.1','location','\x20Overlay\x20origin:\x20','has','permissive','now','./dist/index.js','enabled','\x20Calling\x20createOverlay()...','\x20Checking\x20for\x20blocking\x20service\x20worker...','removeEventListener','\x20loadOverlay()\x20failed:','get','6424hutHZP','undefined','\x20detectBlocking\x20-\x20existing\x20registration:','\x20init()\x20complete\x20-\x20normal\x20mode','^24.10.1','type','addEventListener','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Current\x20controller:','\x20Service\x20workers\x20supported','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','N/A','origin','update','\x20Received\x20message\x20from\x20SW:','[Enhance\x20Runtime]','\x20BLOCKING\x20SW\x20detected:\x20','2762OEbcMG','488588UIrhHF','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','enhance','__enhanceReactRefreshInstalledOrigins','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','enable','\x20Sending\x20config\x20to\x20SW:','bin','off','default','\x20Normalized\x20options:','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20Attaching\x20message\x20listener...','sw-enhance','\x20No\x20blocking\x20SW\x20found','__development','\x20swPath:\x20','message','version','...','options','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20currentOptions\x20exists:\x20','log','enhance:configure','@enhance-eng/sandbox','security','waiting','1500ZCLaup','91150MhoLUh','\x20registerServiceWorker()\x20complete','\x20Invalid\x20React\x20Refresh\x20runtime','__enhanceOverlay','history','module','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20SW\x20unregistered\x20successfully','\x20No\x20window\x20object\x20-\x20skipping','\x20Registration\x20returned:','\x20overlayController\x20exists:\x20','\x20HMR\x20setup\x20complete','^3.22.4','\x20SW\x20requested\x20config\x20-\x20sending...','\x20Starting\x20overlay\x20load\x20(async)...','bin/enhance-sandbox.js','includes','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','explicitDisable','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Current\x20controller\x20after\x20ready:','hasEnhancement','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','stringify','\x20Config\x20sent\x20to\x20SW','getRegistration','controlled','\x20Failed\x20to\x20unregister\x20service\x20worker:','public','\x20Document\x20readyState:\x20','active','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','trim',',\x20page\x20origin:\x20','href','\x20Registering\x20SW\x20at\x20','string','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','tsc\x20--noEmit','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','4232250WcVubU','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','swPath','\x20init()\x20called\x20at\x20','MIT','warn','delete','\x20Unregistering\x20SW...','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','2037PzJWof','enhancementUrl','overlay','\x20enableViteHmr:\x20','readyState','replaceState','https://','installing','\x20First\x20initialization','object','583CqWaoJ','scope','init','error','0.3.16','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','callbackBypass','startsWith','postMessage','none','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Failed\x20to\x20import/create\x20overlay:','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','backendUrl','[Enhance\x20SW-Client]'];_0x5842=function(){return _0x177510;};return _0x5842();}function normalizeAssetPath(_0x2eb819){const _0x5e2ba7=_0x447c3c;if(!_0x2eb819)return _0x2eb819;if(_0x2eb819[_0x5e2ba7(0x1fa)]('http://')||_0x2eb819[_0x5e2ba7(0x1fa)](_0x5e2ba7(0x1ef)))return _0x2eb819;const _0xbd5e67=_0x2eb819[_0x5e2ba7(0x204)](/^\.\//,'');return _0xbd5e67[_0x5e2ba7(0x1fa)]('/')?_0xbd5e67:'/'+_0xbd5e67;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x1f8f53){const _0x486f3b=_0x447c3c;return Enhance[_0x486f3b(0x1f5)](_0x1f8f53);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x20e1a3=_0x61c7;(function(_0x3223bd,_0x274bba){const _0xe37d46=_0x61c7,_0x5ba716=_0x3223bd();while(!![]){try{const _0x1a73a2=-parseInt(_0xe37d46(0x1fc))/0x1*(-parseInt(_0xe37d46(0x279))/0x2)+parseInt(_0xe37d46(0x25e))/0x3*(-parseInt(_0xe37d46(0x1f3))/0x4)+-parseInt(_0xe37d46(0x219))/0x5*(-parseInt(_0xe37d46(0x251))/0x6)+parseInt(_0xe37d46(0x20e))/0x7*(-parseInt(_0xe37d46(0x1e1))/0x8)+-parseInt(_0xe37d46(0x273))/0x9+-parseInt(_0xe37d46(0x22e))/0xa+parseInt(_0xe37d46(0x1f8))/0xb;if(_0x1a73a2===_0x274bba)break;else _0x5ba716['push'](_0x5ba716['shift']());}catch(_0x536a9e){_0x5ba716['push'](_0x5ba716['shift']());}}}(_0x8f25,0xcb888));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x20e1a3(0x272)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x20e1a3(0x23c),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x20e1a3(0x272)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x20e1a3(0x204)](_0x20e1a3(0x22c),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x22ec80){const _0x11dc13=_0x20e1a3,_0x1e9557=_0x22ec80[_0x11dc13(0x201)]??{};return{'callbackBypass':_0x22ec80[_0x11dc13(0x216)]??[],'overlay':{'enabled':!![],'position':_0x11dc13(0x29d),'enableViteHmr':_0x1e9557[_0x11dc13(0x256)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x11dc13(0x28a),'overlayPath':_0x1e9557[_0x11dc13(0x240)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x11dc13(0x20b),'security':_0x1e9557['security']??_0x11dc13(0x221),'backendUrl':_0x1e9557[_0x11dc13(0x209)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x51351f=_0x20e1a3;try{const _0x3bcbf3=new URLSearchParams(window[_0x51351f(0x27e)][_0x51351f(0x2a0)]);return _0x3bcbf3[_0x51351f(0x206)](_0x51351f(0x1e7))?.[_0x51351f(0x24f)]()||'';}catch{return'';}}var LOG_PREFIX=_0x20e1a3(0x25d),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x4c3c0f){const _0x470239=_0x20e1a3;console['log'](LOG_PREFIX+_0x470239(0x1e4)),console[_0x470239(0x204)](LOG_PREFIX+_0x470239(0x28b)+_0x4c3c0f[_0x470239(0x240)]),console[_0x470239(0x204)](LOG_PREFIX+_0x470239(0x24c)+_0x4c3c0f['enableViteHmr']),currentOptions=_0x4c3c0f[_0x470239(0x202)],toggleHandler=_0x4c3c0f[_0x470239(0x20d)];if(overlayController){console['log'](LOG_PREFIX+_0x470239(0x299)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x470239(0x204)](LOG_PREFIX+_0x470239(0x29e)),overlayLoadPromise;console[_0x470239(0x204)](LOG_PREFIX+_0x470239(0x260)),overlayLoadPromise=doLoadOverlay(_0x4c3c0f);try{await overlayLoadPromise,console[_0x470239(0x204)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x450579){console[_0x470239(0x205)](LOG_PREFIX+_0x470239(0x224),_0x450579);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x33fdc3){const _0x4d8f48=_0x20e1a3;console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x245));if(typeof window==='undefined'){console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x25a));return;}if(window[_0x4d8f48(0x243)]){console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x27f)),overlayController=window[_0x4d8f48(0x243)];return;}console['log'](LOG_PREFIX+_0x4d8f48(0x22a));try{_0x33fdc3[_0x4d8f48(0x218)]&&(console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x23f)),await setupRemoteHMR(_0x33fdc3[_0x4d8f48(0x240)]));console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x26c)+_0x33fdc3[_0x4d8f48(0x240)]);const _0x4f135b=Date['now'](),_0x17261d=await import(_0x33fdc3[_0x4d8f48(0x240)]);console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x1cd)+(Date[_0x4d8f48(0x1d1)]()-_0x4f135b)+'ms'),console['log'](LOG_PREFIX+_0x4d8f48(0x1e6),Object[_0x4d8f48(0x1f6)](_0x17261d));if(typeof _0x17261d?.['createOverlay']!==_0x4d8f48(0x25b)){console['error'](LOG_PREFIX+_0x4d8f48(0x288)),console['error'](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x4d8f48(0x1f6)](_0x17261d));return;}console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x1ed));const _0x24360d=_0x17261d[_0x4d8f48(0x1f1)]();console['log'](LOG_PREFIX+_0x4d8f48(0x1fa),_0x24360d),overlayController=_0x24360d,window[_0x4d8f48(0x243)]=_0x24360d,_0x24360d[_0x4d8f48(0x20d)](_0x33fdc3[_0x4d8f48(0x20d)]),console[_0x4d8f48(0x204)](LOG_PREFIX+_0x4d8f48(0x1eb)),console[_0x4d8f48(0x204)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x5e19cf){console[_0x4d8f48(0x205)](LOG_PREFIX+_0x4d8f48(0x22d),_0x5e19cf);}}function updateOverlay(){const _0x1dc418=_0x20e1a3;console[_0x1dc418(0x204)](LOG_PREFIX+_0x1dc418(0x290)),console[_0x1dc418(0x204)](LOG_PREFIX+_0x1dc418(0x1fb)+!!overlayController),console[_0x1dc418(0x204)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x1dc418(0x204)](LOG_PREFIX+_0x1dc418(0x262));return;}const _0x1aee85=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x1dc418(0x26e)](_0x1aee85,null,0x2)),overlayController[_0x1dc418(0x1d4)](_0x1aee85),console['log'](LOG_PREFIX+_0x1dc418(0x226));}function composeOverlayState(_0x30312b){const _0x3987e6=_0x20e1a3,_0x4d98b7=getEnhancementUrl();return console[_0x3987e6(0x204)](LOG_PREFIX+_0x3987e6(0x294)+_0x4d98b7),console[_0x3987e6(0x204)](LOG_PREFIX+_0x3987e6(0x1d0)+state[_0x3987e6(0x225)]),console[_0x3987e6(0x204)](LOG_PREFIX+_0x3987e6(0x274)+state[_0x3987e6(0x249)]),{'enhancementUrl':_0x4d98b7,'enabled':state[_0x3987e6(0x225)],'controlled':state[_0x3987e6(0x249)],'overlayPosition':_0x30312b['overlay'][_0x3987e6(0x23d)],'securityMode':_0x30312b['security'],'backendBaseUrl':_0x30312b[_0x3987e6(0x209)],'appError':state['appError']};}async function setupRemoteHMR(_0x4919c1){const _0xe72a23=_0x20e1a3;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x4919c1);if(typeof window===_0xe72a23(0x272))return;try{const _0x119a78=new URL(_0x4919c1,window[_0xe72a23(0x27e)]['origin']),_0x584bbb=_0x119a78['origin'];console[_0xe72a23(0x204)](LOG_PREFIX+_0xe72a23(0x213)+_0x584bbb+',\x20page\x20origin:\x20'+window[_0xe72a23(0x27e)]['origin']);if(_0x584bbb===window[_0xe72a23(0x27e)][_0xe72a23(0x230)]){console[_0xe72a23(0x204)](LOG_PREFIX+_0xe72a23(0x1e0));return;}console['log'](LOG_PREFIX+_0xe72a23(0x258)),await ensureReactRefreshPreamble(_0x584bbb),await ensureViteClient(_0x584bbb),console['log'](LOG_PREFIX+_0xe72a23(0x1ce));}catch(_0x1ac407){console['warn'](LOG_PREFIX+_0xe72a23(0x281),_0x1ac407);}}async function ensureReactRefreshPreamble(_0x33d5e5){const _0x4b324e=_0x20e1a3;window[_0x4b324e(0x254)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x4b324e(0x269)](_0x33d5e5)){console[_0x4b324e(0x204)](LOG_PREFIX+_0x4b324e(0x285)+_0x33d5e5);return;}console[_0x4b324e(0x204)](LOG_PREFIX+_0x4b324e(0x287)+_0x33d5e5+_0x4b324e(0x208));const _0x5ecc25=await import(_0x33d5e5+_0x4b324e(0x20a)),_0x13f7ec=_0x5ecc25&&typeof _0x5ecc25===_0x4b324e(0x21f)&&_0x4b324e(0x27c)in _0x5ecc25?_0x5ecc25['default']:_0x5ecc25;if(!isRefreshRuntime(_0x13f7ec)){console[_0x4b324e(0x21a)](LOG_PREFIX+_0x4b324e(0x1d2));return;}_0x13f7ec['injectIntoGlobalHook'](window),window[_0x4b324e(0x1e3)]=()=>{},window[_0x4b324e(0x239)]=()=>_0x352246=>_0x352246,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x4b324e(0x254)][_0x4b324e(0x233)](_0x33d5e5),console[_0x4b324e(0x204)](LOG_PREFIX+_0x4b324e(0x1d9)+_0x33d5e5);}async function ensureViteClient(_0x4a4138){const _0x38d6a1=_0x20e1a3;window[_0x38d6a1(0x28e)]??=new Set();if(window[_0x38d6a1(0x28e)][_0x38d6a1(0x269)](_0x4a4138)){console[_0x38d6a1(0x204)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x4a4138);return;}console[_0x38d6a1(0x204)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x4a4138+'...'),await import(_0x4a4138+_0x38d6a1(0x1de)),window['__viteHMRLoaded'][_0x38d6a1(0x233)](_0x4a4138),console[_0x38d6a1(0x204)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x4a4138);}function isRefreshRuntime(_0x243c1e){const _0x2698a3=_0x20e1a3;return typeof _0x243c1e==='object'&&_0x243c1e!==null&&'injectIntoGlobalHook'in _0x243c1e&&typeof _0x243c1e[_0x2698a3(0x1f9)]===_0x2698a3(0x25b);}var WORKER_MESSAGE_CONFIG=_0x20e1a3(0x259),WORKER_MESSAGE_DISABLE=_0x20e1a3(0x242),LOG_PREFIX2=_0x20e1a3(0x252),registration=null,currentOptions2=null;async function registerServiceWorker(_0x6b38fa){const _0x3c5966=_0x20e1a3;console[_0x3c5966(0x204)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x253)+_0x6b38fa['swPath']);if(!(_0x3c5966(0x20f)in navigator)){console[_0x3c5966(0x21a)](LOG_PREFIX2+_0x3c5966(0x26d));return;}console['log'](LOG_PREFIX2+_0x3c5966(0x266));const _0x59972c=navigator['serviceWorker']['controller'];console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x28d),_0x59972c?.[_0x3c5966(0x214)]??_0x3c5966(0x235)),console['log'](LOG_PREFIX2+'\x20Controller\x20state:',_0x59972c?.['state']??_0x3c5966(0x2a4));const _0x2ec84d=!!_0x59972c;currentOptions2=_0x6b38fa,console['log'](LOG_PREFIX2+_0x3c5966(0x248));const _0x4ca50b=await detectBlockingServiceWorker(_0x6b38fa['swPath']);if(_0x4ca50b){console[_0x3c5966(0x205)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x4ca50b),console[_0x3c5966(0x205)](LOG_PREFIX2+_0x3c5966(0x210));return;}console[_0x3c5966(0x204)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x1d8)+_0x6b38fa[_0x3c5966(0x29c)]+_0x3c5966(0x2a3)),registration=await navigator[_0x3c5966(0x20f)]['register'](_0x6b38fa[_0x3c5966(0x29c)],{'scope':'/'}),console[_0x3c5966(0x204)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x3c5966(0x228)],'active':registration[_0x3c5966(0x237)]?.['scriptURL'],'waiting':registration['waiting']?.[_0x3c5966(0x214)],'installing':registration[_0x3c5966(0x24d)]?.[_0x3c5966(0x214)]}),console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x1dc));const _0x15694a=await navigator[_0x3c5966(0x20f)][_0x3c5966(0x238)];console['log'](LOG_PREFIX2+_0x3c5966(0x20c),_0x15694a[_0x3c5966(0x237)]?.[_0x3c5966(0x214)]);const _0x5bfaba=ownsCurrentController(_0x6b38fa['swPath']);state[_0x3c5966(0x249)]=_0x5bfaba,console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x1d5)+_0x5bfaba),console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x1e8),navigator[_0x3c5966(0x20f)][_0x3c5966(0x244)]?.[_0x3c5966(0x214)]??_0x3c5966(0x235));if(!_0x2ec84d&&!navigator[_0x3c5966(0x20f)]['controller']){console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x1ec)),window['location']['reload']();return;}console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x291)),await sendConfiguration();if(state[_0x3c5966(0x225)]){const _0x7135f9=document[_0x3c5966(0x1f5)](_0x3c5966(0x1f4))!==null;console['log'](LOG_PREFIX2+_0x3c5966(0x282)+_0x7135f9);if(!_0x7135f9){console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x1ee)),window[_0x3c5966(0x27e)]['reload']();return;}}console[_0x3c5966(0x204)](LOG_PREFIX2+_0x3c5966(0x1d6)),updateOverlay(),console[_0x3c5966(0x204)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x521683){console[_0x3c5966(0x205)](LOG_PREFIX2+_0x3c5966(0x1fd),_0x521683);}}async function sendConfiguration(){const _0x20d83a=_0x20e1a3;console[_0x20d83a(0x204)](LOG_PREFIX2+_0x20d83a(0x280)),console['log'](LOG_PREFIX2+_0x20d83a(0x2a2)+state[_0x20d83a(0x225)]+_0x20d83a(0x28c)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console['log'](LOG_PREFIX2+_0x20d83a(0x261));return;}const _0x24b558=await resolveWorker();if(!_0x24b558){console['warn'](LOG_PREFIX2+_0x20d83a(0x222));return;}const _0x597c96={'callbackBypass':currentOptions2[_0x20d83a(0x216)],'securityMode':currentOptions2[_0x20d83a(0x297)]};console[_0x20d83a(0x204)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON['stringify'](_0x597c96,null,0x2)),_0x24b558[_0x20d83a(0x211)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x597c96}),console[_0x20d83a(0x204)](LOG_PREFIX2+_0x20d83a(0x268));}async function unregisterServiceWorker(_0x2dd61f){const _0x3fc178=_0x20e1a3;console[_0x3fc178(0x204)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x3fc178(0x20f)in navigator)){console[_0x3fc178(0x204)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x59bf59=registration??await navigator[_0x3fc178(0x20f)][_0x3fc178(0x21b)]('/');if(!_0x59bf59){console[_0x3fc178(0x204)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x3fc178(0x204)](LOG_PREFIX2+_0x3fc178(0x270),{'scope':_0x59bf59[_0x3fc178(0x228)],'active':_0x59bf59['active']?.[_0x3fc178(0x214)],'waiting':_0x59bf59[_0x3fc178(0x1db)]?.['scriptURL'],'installing':_0x59bf59[_0x3fc178(0x24d)]?.[_0x3fc178(0x214)]});const _0x4e4b18=[_0x59bf59[_0x3fc178(0x237)]?.[_0x3fc178(0x214)],_0x59bf59[_0x3fc178(0x1db)]?.[_0x3fc178(0x214)],_0x59bf59[_0x3fc178(0x24d)]?.[_0x3fc178(0x214)]],_0x53c3db=_0x4e4b18[_0x3fc178(0x27d)](_0x2560f5=>_0x2560f5&&ownsServiceWorker(_0x2560f5,_0x2dd61f));if(!_0x53c3db){console[_0x3fc178(0x204)](LOG_PREFIX2+_0x3fc178(0x1ef));return;}_0x59bf59[_0x3fc178(0x237)]&&(console['log'](LOG_PREFIX2+_0x3fc178(0x292)),_0x59bf59[_0x3fc178(0x237)][_0x3fc178(0x211)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x3fc178(0x1fe)),await _0x59bf59[_0x3fc178(0x231)](),registration=null,currentOptions2=null,console[_0x3fc178(0x204)](LOG_PREFIX2+_0x3fc178(0x29a));}catch(_0x583e89){console[_0x3fc178(0x205)](LOG_PREFIX2+_0x3fc178(0x247),_0x583e89);}}function ownsServiceWorker(_0x4d1be0,_0x163573){const _0x4eb7cd=_0x20e1a3,_0x6dfcb=typeof window!==_0x4eb7cd(0x272)?window['location'][_0x4eb7cd(0x230)]:'',_0x56c786=new URL(_0x163573,_0x6dfcb||void 0x0)[_0x4eb7cd(0x215)],_0x3f2edd=_0x4d1be0===_0x56c786||_0x4d1be0['includes'](_0x4eb7cd(0x25f));return console[_0x4eb7cd(0x204)](LOG_PREFIX2+_0x4eb7cd(0x212)+_0x4d1be0+',\x20expected='+_0x56c786+_0x4eb7cd(0x27b)+_0x3f2edd),_0x3f2edd;}function ownsCurrentController(_0x4e817c){const _0x3cae20=_0x20e1a3;if(typeof navigator===_0x3cae20(0x272))return![];const _0x23f14b=navigator[_0x3cae20(0x20f)]?.[_0x3cae20(0x244)];if(!_0x23f14b)return console[_0x3cae20(0x204)](LOG_PREFIX2+_0x3cae20(0x207)),![];return ownsServiceWorker(_0x23f14b[_0x3cae20(0x214)],_0x4e817c);}async function detectBlockingServiceWorker(_0xed3ecc){const _0x5cdca7=_0x20e1a3;if(!navigator[_0x5cdca7(0x20f)])return null;try{const _0x2bfd04=await navigator[_0x5cdca7(0x20f)][_0x5cdca7(0x21b)]('/');console[_0x5cdca7(0x204)](LOG_PREFIX2+_0x5cdca7(0x255),_0x2bfd04?.[_0x5cdca7(0x237)]?.['scriptURL']??_0x5cdca7(0x235));const _0x1793b4=_0x2bfd04?.[_0x5cdca7(0x237)]?.[_0x5cdca7(0x214)];if(!_0x1793b4)return null;if(ownsServiceWorker(_0x1793b4,_0xed3ecc))return null;return _0x1793b4;}catch(_0xbdc01d){return console['error'](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0xbdc01d),null;}}async function resolveWorker(){const _0x14210e=_0x20e1a3,_0xfdc8ff=registration??await navigator[_0x14210e(0x20f)]?.[_0x14210e(0x21b)]('/'),_0x13a98a=_0xfdc8ff?.['active']??_0xfdc8ff?.[_0x14210e(0x1db)]??_0xfdc8ff?.['installing']??null;return console[_0x14210e(0x204)](LOG_PREFIX2+'\x20resolveWorker:',_0x13a98a?.['scriptURL']??_0x14210e(0x235),'state:\x20'+(_0x13a98a?.[_0x14210e(0x28f)]??_0x14210e(0x2a4))),_0x13a98a;}var LOG_PREFIX3=_0x20e1a3(0x283);function isInitialized(){const _0x268a89=_0x20e1a3;return typeof window!=='undefined'&&window[_0x268a89(0x1e5)]===!![];}function setInitialized(_0x5a77bd){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x5a77bd);}function getOptions(){const _0x167159=_0x20e1a3;return typeof window!==_0x167159(0x272)?window[_0x167159(0x263)]??null:null;}function setOptions(_0x2028b0){const _0x41a441=_0x20e1a3;typeof window!==_0x41a441(0x272)&&(window[_0x41a441(0x263)]=_0x2028b0);}var Enhance={'init'(_0x145c00={}){const _0xc0a352=_0x20e1a3,_0x5250af=Date[_0xc0a352(0x1d1)]();console[_0xc0a352(0x204)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x5250af),console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x246)+window[_0xc0a352(0x27e)]['href']),console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x1df)+document[_0xc0a352(0x275)]),console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x21e),JSON['stringify'](_0x145c00,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0xc0a352(0x234)),window[_0xc0a352(0x29f)]??createController();setInitialized(!![]),console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x298));const _0x4abe48=normalizeOptions(_0x145c00);setOptions(_0x4abe48),console['log'](LOG_PREFIX3+_0xc0a352(0x1e9),JSON[_0xc0a352(0x26e)](_0x4abe48,null,0x2));const _0x3de76c=parseUrlParams();console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x22b),JSON[_0xc0a352(0x26e)](_0x3de76c,null,0x2));if(_0x3de76c['explicitDisable'])return cleanUrlParam(_0xc0a352(0x24e)),console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x1cf)),createController();if(_0x3de76c[_0xc0a352(0x284)])return console['log'](LOG_PREFIX3+_0xc0a352(0x24b)),console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x257)+_0x3de76c[_0xc0a352(0x1e7)]),console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x296)+_0x3de76c[_0xc0a352(0x203)]),state[_0xc0a352(0x225)]=!![],console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x21d)),void loadOverlay({'overlayPath':_0x4abe48[_0xc0a352(0x240)],'enableViteHmr':_0x4abe48[_0xc0a352(0x264)][_0xc0a352(0x218)],'options':_0x4abe48,'onToggle':handleToggle}),console[_0xc0a352(0x204)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x4abe48),console['log'](LOG_PREFIX3+_0xc0a352(0x241)),createController();return console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x1ea)),console[_0xc0a352(0x204)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x4abe48[_0xc0a352(0x29c)]),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0xc0a352(0x204)](LOG_PREFIX3+_0xc0a352(0x217)),import.meta.hot['on']('vite:error',_0x154815=>{const _0x2f3898=_0xc0a352;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x154815),state['appError']={'message':_0x154815[_0x2f3898(0x22f)][_0x2f3898(0x220)]},updateOverlay();}),import.meta.hot['on'](_0xc0a352(0x223),()=>{const _0x243019=_0xc0a352;state[_0x243019(0x293)]&&(console['log'](LOG_PREFIX3+_0x243019(0x265)),state[_0x243019(0x293)]=null,updateOverlay());})),createController();}};function createController(){const _0x5e9ec1=_0x20e1a3,_0x2a4faa={'enable'(){const _0x1ea742=_0x61c7,_0x4d3ba0=getOptions();if(!_0x4d3ba0)return;state[_0x1ea742(0x225)]=!![],void loadOverlay({'overlayPath':_0x4d3ba0[_0x1ea742(0x240)],'enableViteHmr':_0x4d3ba0[_0x1ea742(0x264)][_0x1ea742(0x218)],'options':_0x4d3ba0,'onToggle':handleToggle}),void registerServiceWorker(_0x4d3ba0),void sendConfiguration(),updateOverlay();},'disable'(){const _0x45b82c=_0x61c7,_0x3f3f48=getOptions();if(!_0x3f3f48)return;state[_0x45b82c(0x225)]=![],state[_0x45b82c(0x249)]=![],updateOverlay(),void unregisterServiceWorker(_0x3f3f48['swPath']);},'status'(){const _0x5cf986=_0x61c7;return{'enabled':state[_0x5cf986(0x225)],'controlled':state[_0x5cf986(0x249)]};}};return typeof window!=='undefined'&&(window[_0x5e9ec1(0x29f)]=_0x2a4faa),_0x2a4faa;}function handleToggle(){const _0x6a8150=_0x20e1a3,_0x7be3d1=createController();state['enabled']?_0x7be3d1[_0x6a8150(0x26a)]():_0x7be3d1['enable']();}function parseUrlParams(){const _0x1ff29e=_0x20e1a3,_0x29fe5e=new URL(window[_0x1ff29e(0x27e)][_0x1ff29e(0x215)]),_0x2790ec=_0x29fe5e[_0x1ff29e(0x25c)][_0x1ff29e(0x206)](_0x1ff29e(0x24e))?.[_0x1ff29e(0x26f)](),_0x2aa053=_0x29fe5e['searchParams']['get'](_0x1ff29e(0x1e7)),_0x5d0300=_0x29fe5e[_0x1ff29e(0x25c)][_0x1ff29e(0x206)](_0x1ff29e(0x23e));return{'hasEnhancement':Boolean(_0x2aa053||_0x5d0300),'explicitDisable':_0x2790ec==='0'||_0x2790ec===_0x1ff29e(0x286)||_0x2790ec===_0x1ff29e(0x26b),'enhancementUrl':_0x2aa053,'enhancementId':_0x5d0300};}function cleanUrlParam(_0x572be0){const _0x50ec54=_0x20e1a3,_0x4ac7f2=new URL(window[_0x50ec54(0x27e)][_0x50ec54(0x215)]);_0x4ac7f2[_0x50ec54(0x25c)][_0x50ec54(0x269)](_0x572be0)&&(_0x4ac7f2[_0x50ec54(0x25c)]['delete'](_0x572be0),window[_0x50ec54(0x24a)][_0x50ec54(0x2a1)](null,document['title'],_0x4ac7f2[_0x50ec54(0x1d3)]()));}var package_default={'name':_0x20e1a3(0x1dd),'version':_0x20e1a3(0x23a),'type':'module','description':_0x20e1a3(0x1f7),'license':_0x20e1a3(0x2a6),'main':_0x20e1a3(0x236),'module':_0x20e1a3(0x236),'types':_0x20e1a3(0x200),'exports':{'.':{'types':_0x20e1a3(0x200),'import':_0x20e1a3(0x236)},'./vite':{'types':_0x20e1a3(0x29b),'import':'./dev/vite/index.js'}},'files':[_0x20e1a3(0x250)],'bin':{'enhance-sandbox':_0x20e1a3(0x1e2)},'scripts':{'typecheck':_0x20e1a3(0x23b),'dev':_0x20e1a3(0x27a),'dev:build':_0x20e1a3(0x1da),'dev:staging':_0x20e1a3(0x278),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x20e1a3(0x267),'build:release':_0x20e1a3(0x1f0),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x20e1a3(0x295),'zod':_0x20e1a3(0x1f2)},'devDependencies':{'@types/node':_0x20e1a3(0x289),'javascript-obfuscator':_0x20e1a3(0x277),'tsup':_0x20e1a3(0x1ff),'vite':_0x20e1a3(0x229)},'publishConfig':{'access':_0x20e1a3(0x227)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x20e1a3(0x20b),PACKAGE_VERSION=typeof package_default['version']==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0xe1d01){const _0x2c6dc1=_0x20e1a3;if(!_0xe1d01)return _0xe1d01;if(_0xe1d01['startsWith'](_0x2c6dc1(0x276))||_0xe1d01['startsWith']('https://'))return _0xe1d01;const _0x4a7b8f=_0xe1d01[_0x2c6dc1(0x232)](/^\.\//,'');return _0x4a7b8f[_0x2c6dc1(0x271)]('/')?_0x4a7b8f:'/'+_0x4a7b8f;}function _0x61c7(_0x1de5ab,_0x751faf){_0x1de5ab=_0x1de5ab-0x1cd;const _0x8f25b1=_0x8f25();let _0x61c74c=_0x8f25b1[_0x1de5ab];return _0x61c74c;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2cba5d){const _0xf571d5=_0x20e1a3;return Enhance[_0xf571d5(0x1d7)](_0x2cba5d);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0x58cdc2=_0x20e1a3;return Enhance2[_0x58cdc2(0x21c)]();}function runtimeURL(){const _0x263106=_0x20e1a3;return Enhance2[_0x263106(0x2a5)]();}function _0x8f25(){const _0x65d27b=['stringify','toLowerCase','\x20Found\x20registration:','startsWith','undefined','10257975DReprf','\x20composeOverlayState\x20-\x20state.controlled:\x20','readyState','http://','^4.1.1','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','2nmlcFA','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch',',\x20owns=','default','some','location','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20sendConfiguration()\x20called','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20Enhancement\x20detection:\x20wasEnhanced=','[Enhance\x20Runtime]','hasEnhancement','\x20React\x20Refresh\x20already\x20installed\x20for\x20','false','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Module\x20missing\x20createOverlay\x20export!','^24.10.1','/sw-enhance.js','\x20overlayPath:\x20',',\x20currentOptions:\x20','\x20Current\x20controller:','__viteHMRLoaded','state','\x20updateOverlay()\x20called','\x20Sending\x20customer\x20configuration...','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','appError','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','^11.1.0','\x20enhancementId:\x20','security','\x20First\x20initialization','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20SW\x20unregistered\x20successfully','./dev/vite/index.d.ts','swPath','bottom-right','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','__enhanceController','search','replaceState','\x20state.enabled:\x20','\x20with\x20scope\x20\x27/\x27...','N/A','runtimeURL','MIT','\x20Module\x20imported\x20in\x20','\x20HMR\x20setup\x20complete','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20composeOverlayState\x20-\x20state.enabled:\x20','now','\x20Invalid\x20React\x20Refresh\x20runtime','toString','update','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20Updating\x20overlay...','init','\x20Registering\x20SW\x20at\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','waiting','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','@enhance-eng/sandbox','/@vite/client','\x20Document\x20readyState:\x20','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','4273624kQFtEt','./dev/cli.js','$RefreshReg$','\x20loadOverlay()\x20called','__enhanceInitialized','\x20Module\x20exports:','enhancementUrl','\x20Current\x20controller\x20after\x20ready:','\x20Normalized\x20options:','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Calling\x20createOverlay()...','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','createOverlay','^3.22.4','130436VblRfg','[data-enhance-runtime-bootstrap]','querySelector','keys','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','42461276jAiCvv','injectIntoGlobalHook','\x20Controller\x20created:','\x20overlayController\x20exists:\x20','221173csciuQ','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Unregistering\x20SW...','^8.5.1','./dev/index.d.ts','__development','options','enhancementId','log','error','get','\x20No\x20current\x20controller','...','backendUrl','/@react-refresh','/assets/enhance-runtime.js','\x20SW\x20ready!\x20Active:','onToggle','7zHbBYg','serviceWorker','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','postMessage','\x20ownsServiceWorker?\x20scriptURL=','\x20Overlay\x20origin:\x20','scriptURL','href','callbackBypass','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','enableViteHmr','15VThcsI','warn','getRegistration','serviceWorkerURL','\x20Starting\x20overlay\x20load\x20(async)...','\x20Raw\x20options:','object','message','permissive','\x20No\x20service\x20worker\x20active\x20to\x20configure','vite:beforeUpdate','\x20loadOverlay()\x20failed:','enabled','\x20Overlay\x20update\x20complete','public','scope','^7.2.4','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20URL\x20params\x20parsed:','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Failed\x20to\x20import/create\x20overlay:','16279750ErwtNJ','err','origin','unregister','replace','add','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','none','./dev/index.js','active','ready','$RefreshSig$','0.3.17','tsc\x20--noEmit','https://assets.enhancelabs.ai/overlay.js','position','enhancement','\x20Setting\x20up\x20remote\x20HMR...','overlayPath','\x20init()\x20complete\x20-\x20enhancement\x20mode','enhance:disable','__enhanceOverlay','controller','\x20doLoadOverlay()\x20starting...','\x20Current\x20URL:\x20','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Checking\x20for\x20blocking\x20service\x20worker...','controlled','history','\x20Enhancement\x20mode\x20ENABLED','\x20enableViteHmr:\x20','installing','enhance','trim','dev/','499980gURgCN','[Enhance\x20SW-Client]','\x20swPath:\x20','__enhanceReactRefreshInstalledOrigins','\x20detectBlocking\x20-\x20existing\x20registration:','enableOverlayHmr','\x20enhancementUrl:\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','enhance:configure','\x20No\x20window\x20object\x20-\x20skipping','function','searchParams','[Enhance\x20Overlay]','18kbRDWn','sw-enhance','\x20Starting\x20fresh\x20overlay\x20load...','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','__enhanceOptions','overlay','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20Service\x20workers\x20supported','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Config\x20sent\x20to\x20SW','has','disable','off','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser'];_0x8f25=function(){return _0x65d27b;};return _0x8f25();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3fccef=_0x31ea;(function(_0x3c8a2b,_0x37a1ef){const _0x2ba27b=_0x31ea,_0x1bad27=_0x3c8a2b();while(!![]){try{const _0x43b9d7=-parseInt(_0x2ba27b(0x1e3))/0x1*(parseInt(_0x2ba27b(0x11c))/0x2)+-parseInt(_0x2ba27b(0x190))/0x3*(-parseInt(_0x2ba27b(0x13c))/0x4)+parseInt(_0x2ba27b(0xb7))/0x5+parseInt(_0x2ba27b(0x1d2))/0x6+parseInt(_0x2ba27b(0x1bf))/0x7*(parseInt(_0x2ba27b(0x1c8))/0x8)+-parseInt(_0x2ba27b(0x178))/0x9+parseInt(_0x2ba27b(0x163))/0xa;if(_0x43b9d7===_0x37a1ef)break;else _0x1bad27['push'](_0x1bad27['shift']());}catch(_0x341485){_0x1bad27['push'](_0x1bad27['shift']());}}}(_0x35fb,0x6fc2c));var WORKER_MESSAGE_CONFIG=_0x3fccef(0xe0),WORKER_MESSAGE_DISABLE='enhance:disable',WORKER_MESSAGE_REQUEST_CONFIG=_0x3fccef(0x15f);function ensureLeadingSlash(_0x21a5ca){if(!_0x21a5ca['startsWith']('/'))return'/'+_0x21a5ca;return _0x21a5ca;}function appendRequestToEnhancementBase(_0x2bc306,_0x110ea1){const _0x3ebd34=_0x3fccef,_0x1a712d=new URL(_0x2bc306[_0x3ebd34(0x1d9)]()),_0x284a11=_0x1a712d[_0x3ebd34(0x1df)][_0x3ebd34(0xb6)]('/')?_0x1a712d['pathname'][_0x3ebd34(0xf8)](0x0,-0x1):_0x1a712d[_0x3ebd34(0x1df)],_0x289a3c=_0x110ea1['pathname']['startsWith']('/')?_0x110ea1[_0x3ebd34(0x1df)]:'/'+_0x110ea1[_0x3ebd34(0x1df)];return _0x1a712d[_0x3ebd34(0x1df)]=(''+_0x284a11+_0x289a3c)[_0x3ebd34(0x19e)](/\/+/g,'/'),_0x1a712d[_0x3ebd34(0xf7)]=_0x110ea1[_0x3ebd34(0xf7)],_0x1a712d['hash']='',_0x1a712d;}var LOG_PREFIX=_0x3fccef(0x18a),CONFIG_REQUEST_INTERVAL_MS=0x1f4,activeConfig=null,lastConfigRequest=0x0;function getActiveConfig(){return activeConfig;}function setActiveConfig(_0x55886a){const _0x3bb867=_0x3fccef;console[_0x3bb867(0x18c)](LOG_PREFIX+_0x3bb867(0x1de)),console['log'](LOG_PREFIX+_0x3bb867(0xd2),JSON[_0x3bb867(0x121)](_0x55886a,null,0x2));const _0x528c50=normalizeConfig(_0x55886a);return activeConfig=_0x528c50,lastConfigRequest=Date['now'](),console[_0x3bb867(0x18c)](LOG_PREFIX+'\x20Normalized\x20config\x20set'),console['log'](LOG_PREFIX+_0x3bb867(0x13f)+(_0x528c50['enhancementBase']?.[_0x3bb867(0x1d9)]()??_0x3bb867(0x107))),console['log'](LOG_PREFIX+'\x20callbackBypassNormalized:',_0x528c50[_0x3bb867(0x195)]),_0x528c50;}function clearActiveConfig(){const _0x3f2942=_0x3fccef;console[_0x3f2942(0x18c)](LOG_PREFIX+_0x3f2942(0x1b1)),activeConfig=null;}async function requestConfiguration(_0xfcddee=![]){const _0x2be6dc=_0x3fccef,_0x40d9cb=Date[_0x2be6dc(0x1d1)](),_0x59c045=_0x40d9cb-lastConfigRequest;console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x1cc)+_0xfcddee+')'),console[_0x2be6dc(0x18c)](LOG_PREFIX+'\x20Time\x20since\x20last\x20request:\x20'+_0x59c045+'ms');if(!_0xfcddee&&_0x59c045<CONFIG_REQUEST_INTERVAL_MS){console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x194));return;}lastConfigRequest=_0x40d9cb,console['log'](LOG_PREFIX+_0x2be6dc(0x120));const _0xc26a=await self['clients']['matchAll']({'type':'window','includeUncontrolled':!![]});console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0xc1)+_0xc26a[_0x2be6dc(0xc8)]+_0x2be6dc(0x134));for(let _0x2d01c4=0x0;_0x2d01c4<_0xc26a[_0x2be6dc(0xc8)];_0x2d01c4++){const _0x3fc625=_0xc26a[_0x2d01c4];console['log'](LOG_PREFIX+'\x20\x20\x20Client\x20'+_0x2d01c4+':\x20'+_0x3fc625['url']),_0x3fc625[_0x2be6dc(0x146)]({'type':WORKER_MESSAGE_REQUEST_CONFIG});}console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x1a1));}function log(_0x28759a,_0x2c6ead,..._0x2820ac){const _0x351be2=_0x3fccef,_0x3eae7a='[Enhance\x20SW]';_0x28759a==='info'?console[_0x351be2(0x161)](_0x3eae7a,_0x2c6ead,..._0x2820ac):console[_0x351be2(0x133)](_0x3eae7a,_0x2c6ead,..._0x2820ac);}function _0x35fb(){const _0x181e5c=['/sockjs-node','/snowpack/hmr','replace','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','body','\x20Config\x20request\x20sent\x20to\x20all\x20clients','\x20\x20\x20Rewriting\x20document...','none','includes','set','get','runtimeScriptPath','waitUntil','destination','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','https://','startsWith','\x20MESSAGE\x20received:','object','redirect','\x20tryRestoreConfigFromUrl:\x20failed\x20to\x20parse\x20enhancementUrl','\x20clearActiveConfig()\x20called','x-enhance-routing','clients','location','/_next/webpack-hmr','addEventListener','x-enhance-document','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','overlay','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20Configuration\x20request\x20sent','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','</script>','\x20\x20\x20\x20\x20-\x20has\x20enhancement\x20param:\x20','14GQDjDa','set-cookie','\x20\x20\x20securityMode:\x20','stylesheet','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','/webpackhotmiddleware','content-security-policy','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','1809448xHUKXm','font','follow','type','\x20requestConfiguration(force=','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','method','enhancement-document','\x20ACTIVATE\x20event','now','1496130XqxLMM','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20\x20\x20Fetching\x20from\x20enhancement...','claim','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20Document\x20source:\x20','test','toString','\x20skipWaiting()\x20complete','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20try\x20{','\x20setActiveConfig()\x20called','pathname','\x20\x20\x20\x20\x20-\x20has\x20overlay\x20param:\x20','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','288872WajpEW','overlayEnableViteHmr','set-cookie2','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','endsWith','2123530lLueAt','access-control-allow-credentials','/sw-enhance.js','include','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x5c1[^>]*>\x5cs*</script>','[Enhance\x20SW\x20Document]','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','status','\x20Found\x20','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','navigate','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','overlayPath','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','(async\x20()\x20=>\x20{','length','\x20\x20\x20mode:\x20','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','href','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20fetchEnhancementDocument:\x20','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20chars','url','\x20Input\x20config:','\x20\x20\x20\x20\x20-\x20has\x20enhancementUrl\x20param:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20\x20\x20\x20','clone','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','rewritten','\x20\x20\x20Not\x20OK\x20(','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','statusText','match','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','})();','enhance:configure','value','push','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','/assets/enhance-runtime.js','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null',',\x20destination:\x20','Enhancement\x20document\x20CORS\x20blocked','/__vite_ping','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20\x20\x20Document\x20rewritten\x20successfully','\x20\x20\x20Document\x20fetch\x20error:','\x20No\x20enhancementUrl\x20in\x20config','cross-origin-resource-policy','\x20Calling\x20clients.claim()...','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','cache-control','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','font-src\x20*\x20data:','search','slice','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','?import','\x20Config\x20cleared','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','securityMode','\x20\x20\x20\x20}','http://','\x20chars)','text/html','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','x-enhance-document-source','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','null','no-store','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20tryRestoreConfigFromUrl:\x20found\x20enhancementUrl=','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20Requesting\x20configuration\x20from\x20clients...','error','\x20for\x20','Enhancement\x20fetch\x20failed','delete','host','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20HTML\x20response\x20-\x20processing...','sharedworker','$&\x0a','image','\x20\x20\x20Response:\x20','x-enhance-enhancement','modulepreload',')\x20-\x20returning\x20null','4qrtMgO','fetch','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20BYPASS:\x20','\x20Fetching\x20all\x20window\x20clients...','stringify','install','\x20\x20\x20\x20\x20-\x20source\x20===\x20enhancement:\x20','hit','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','/parcel-hmr','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20Fetching\x20production\x20response...','text','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','src','headers','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20matches\x20callbackBypass','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x5c$&','debug','\x20client(s)','permissive','/__vite/client','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','GET','/__snowpack__','172BcUONY','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20enhancementBase:\x20','\x20Calling\x20skipWaiting()...','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x0a</body>','\x20Unknown\x20message\x20type:\x20','toISOString','postMessage','img-src\x20*\x20data:\x20blob:','\x20\x20\x20shouldInjectOverlay:\x20','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20-\x20falling\x20back\x20to\x20production','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','full','join','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20return\x20proxied;','/vite/client','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','message','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20fetchFromEnhancement:\x20','vite-hmr','\x20\x20\x20\x20\x20\x20\x20\x20}','has','<script\x20data-enhance-hmr-bridge>','config','\x20Bootstrap\x20options:','enhance:request-config','\x20handleNavigationRequest:\x20','info','content-type','954720bGiQuu','backendUrl','\x0a</head>','enhancementUrl','\x20\x20\x20NO\x20CONFIG\x20-\x20requesting\x20config\x20and\x20passing\x20through','[Enhance\x20SW\x20Bootstrap]','https://assets.enhancelabs.ai/overlay.js','HEAD','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','trim','style',',\x20type:\x20','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20Config\x20data:','cors','callbackBypass','\x20clients.claim()\x20complete','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','enhancement','some','\x20\x20\x20Production\x20response:\x20','5519547nJnnPl','enhancementBase','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','origin','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','\x20FETCH:\x20','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','access-control-expose-headers','\x20INSTALL\x20event',',\x20null,\x202));','Enhancement\x20document\x20miss\x20','\x20\x20\x20Fetching\x20enhancement\x20document...','toLowerCase','opaque','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20Invalid\x20message\x20data\x20-\x20ignoring','map','[Enhance\x20SW\x20Config]','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','log','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','searchParams','\x20\x20\x20\x20\x20\x20}','29784gdwFgc','\x20\x20\x20Enhancement\x20URL:\x20','Enhancement\x20CORS\x20blocked','\x20\x20\x20overlayPath:\x20','\x20Throttled\x20-\x20not\x20requesting','callbackBypassNormalized','\x20\x20\x20Content-Type:\x20','[Enhance\x20SW\x20Routing]','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','add','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','connect-src\x20*'];_0x35fb=function(){return _0x181e5c;};return _0x35fb();}function normalizeConfig(_0x2ef8a7){const _0xee6dea=_0x3fccef;console['log'](LOG_PREFIX+'\x20normalizeConfig()\x20called');let _0x35a4e9=null;if(_0x2ef8a7[_0xee6dea(0x166)]&&_0x2ef8a7['enhancementUrl'][_0xee6dea(0xc8)]>0x0)try{_0x35a4e9=new URL(_0x2ef8a7[_0xee6dea(0x166)]),console[_0xee6dea(0x18c)](LOG_PREFIX+'\x20Parsed\x20enhancementUrl:\x20'+_0x35a4e9['toString']());}catch(_0x4e28fc){console[_0xee6dea(0x10e)](LOG_PREFIX+'\x20Failed\x20to\x20parse\x20enhancementUrl\x20\x22'+_0x2ef8a7[_0xee6dea(0x166)]+'\x22:',_0x4e28fc);}else console[_0xee6dea(0x18c)](LOG_PREFIX+_0xee6dea(0xec));const _0x45af83=(_0x2ef8a7[_0xee6dea(0x172)]??[])[_0xee6dea(0x189)](_0x278f2b=>ensureLeadingSlash(_0x278f2b));return{..._0x2ef8a7,'enhancementBase':_0x35a4e9,'callbackBypassNormalized':_0x45af83};}var LOG_PREFIX2=_0x3fccef(0x197),ROUTABLE_DESTINATIONS=new Set(['script',_0x3fccef(0x16d),_0x3fccef(0x1c9),_0x3fccef(0x117),'worker',_0x3fccef(0x115),_0x3fccef(0x11a)]);function shouldHandleRequest(_0x3e886f){const _0x529204=_0x3fccef,_0x19bca1=_0x3e886f[_0x529204(0x1ce)]===_0x529204(0x13a)||_0x3e886f[_0x529204(0x1ce)]===_0x529204(0x16a);return _0x19bca1;}function shouldBypass(_0x3c8e29,_0x642617){const _0x3d2897=_0x3fccef,_0x3f6a36=ensureLeadingSlash(_0x642617),_0x3e4004=_0x3c8e29[_0x3d2897(0x195)][_0x3d2897(0x176)](_0x300f7d=>_0x3f6a36[_0x3d2897(0x1ac)](_0x300f7d));return _0x3e4004;}function shouldRouteAsset(_0x5d315d,_0x5c40ad,_0x502c95){const _0xd7a7eb=_0x3fccef,_0xce4814=_0x5c40ad[_0xd7a7eb(0x1a9)];if(!_0xce4814||!ROUTABLE_DESTINATIONS[_0xd7a7eb(0x15b)](_0xce4814))return![];if(isOverlayAsset(_0x5d315d,_0x502c95))return console['log'](LOG_PREFIX2+_0xd7a7eb(0x1db)+_0x502c95[_0xd7a7eb(0x1df)]+'\x20is\x20overlay\x20asset\x20-\x20not\x20routing'),![];if(isRuntimeAsset(_0x5d315d,_0x502c95))return console['log'](LOG_PREFIX2+_0xd7a7eb(0x1db)+_0x502c95[_0xd7a7eb(0x1df)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x502c95[_0xd7a7eb(0x17b)]!==self[_0xd7a7eb(0x1b4)][_0xd7a7eb(0x17b)])return![];return!![];}async function fetchFromEnhancement(_0x42b6b7,_0xbe4197,_0x4d077e){const _0xcfe292=_0x3fccef;console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x158)+_0x4d077e[_0xcfe292(0x1df)]);if(!_0x42b6b7[_0xcfe292(0x179)])return console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0xfb)),null;const _0x448038=buildEnhancementUrl(_0x42b6b7,_0x4d077e);console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x191)+_0x448038[_0xcfe292(0x1d9)]());const _0xc0e9bf=new Headers(_0xbe4197[_0xcfe292(0x12d)]);_0xc0e9bf[_0xcfe292(0x1a5)](_0xcfe292(0x1b2),_0xcfe292(0x175)),_0xc0e9bf[_0xcfe292(0x111)](_0xcfe292(0x112));const _0x5a7f39=new Request(_0x448038[_0xcfe292(0x1d9)](),{'method':_0xbe4197['method'],'headers':_0xc0e9bf,'credentials':_0xcfe292(0xba),'redirect':_0xbe4197[_0xcfe292(0x1af)],'cache':_0xcfe292(0x108),'mode':_0xcfe292(0x171)});try{console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x1d4));const _0x1f8990=await fetch(_0x5a7f39);console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x118)+_0x1f8990[_0xcfe292(0xc0)]+'\x20'+_0x1f8990[_0xcfe292(0xdc)]+',\x20type:\x20'+_0x1f8990[_0xcfe292(0x1cb)]);if(_0x1f8990[_0xcfe292(0x1cb)]==='opaque')return console['log'](LOG_PREFIX2+_0xcfe292(0xf5)),log(_0xcfe292(0x161),_0xcfe292(0x192),_0x448038[_0xcfe292(0x1d9)]()),null;if(!_0x1f8990['ok'])return console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0xd9)+_0x1f8990[_0xcfe292(0xc0)]+_0xcfe292(0x11b)),log('debug','Enhancement\x20miss\x20'+_0x1f8990['status']+_0xcfe292(0x10f)+_0x448038[_0xcfe292(0x1df)]),null;return console[_0xcfe292(0x18c)](LOG_PREFIX2+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),toSameOriginResponse(_0x1f8990,_0xbe4197[_0xcfe292(0x1ce)]);}catch(_0x1958d8){return console[_0xcfe292(0x10e)](LOG_PREFIX2+'\x20\x20\x20Fetch\x20error:',_0x1958d8),log('info',_0xcfe292(0x110),_0x1958d8),null;}}async function fetchEnhancementDocument(_0x627647,_0x5d1d4d){const _0x2fefc5=_0x3fccef,_0x5f468e=new URL(_0x5d1d4d[_0x2fefc5(0xd1)]);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0xce)+_0x5f468e['pathname']+_0x5f468e[_0x2fefc5(0xf7)]);if(!_0x627647[_0x2fefc5(0x179)])return console['log'](LOG_PREFIX2+_0x2fefc5(0xe5)),null;const _0x35159e=buildEnhancementUrl(_0x627647,_0x5f468e);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x1d3)+_0x35159e[_0x2fefc5(0x1d9)]());const _0x8bd122=new Headers(_0x5d1d4d['headers']);_0x8bd122[_0x2fefc5(0x1a5)](_0x2fefc5(0x1b2),_0x2fefc5(0x1cf)),_0x8bd122[_0x2fefc5(0x111)](_0x2fefc5(0x112)),_0x8bd122[_0x2fefc5(0x111)]('content-length');const _0x7d5c5d=new Request(_0x35159e[_0x2fefc5(0x1d9)](),{'method':'GET','headers':_0x8bd122,'credentials':_0x2fefc5(0xba),'redirect':_0x2fefc5(0x1ca),'cache':_0x2fefc5(0x108),'mode':'cors'});try{console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x183));const _0x5e370e=await fetch(_0x7d5c5d);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x118)+_0x5e370e[_0x2fefc5(0xc0)]+'\x20'+_0x5e370e[_0x2fefc5(0xdc)]+_0x2fefc5(0x16e)+_0x5e370e[_0x2fefc5(0x1cb)]),console['log'](LOG_PREFIX2+_0x2fefc5(0x196)+_0x5e370e[_0x2fefc5(0x12d)][_0x2fefc5(0x1a6)]('content-type'));if(_0x5e370e[_0x2fefc5(0x1cb)]===_0x2fefc5(0x185))return console['log'](LOG_PREFIX2+_0x2fefc5(0xf5)),log('info',_0x2fefc5(0xe7),_0x35159e[_0x2fefc5(0x1d9)]()),null;if(!_0x5e370e['ok'])return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0xd9)+_0x5e370e[_0x2fefc5(0xc0)]+_0x2fefc5(0x11b)),log(_0x2fefc5(0x133),_0x2fefc5(0x182)+_0x5e370e['status']+_0x2fefc5(0x10f)+_0x35159e[_0x2fefc5(0x1df)]),null;if(!isHtmlResponse(_0x5e370e))return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x154)),null;return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x104)),toSameOriginResponse(_0x5e370e,_0x2fefc5(0x13a));}catch(_0x54cac9){return console[_0x2fefc5(0x10e)](LOG_PREFIX2+_0x2fefc5(0xeb),_0x54cac9),log(_0x2fefc5(0x161),'Enhancement\x20document\x20fetch\x20failed',_0x54cac9),null;}}function buildEnhancementUrl(_0x582cb4,_0x31f248){const _0x441a65=_0x3fccef;if(!_0x582cb4[_0x441a65(0x179)])throw new Error(_0x441a65(0x1e1));return appendRequestToEnhancementBase(_0x582cb4[_0x441a65(0x179)],_0x31f248);}function toSameOriginResponse(_0x15742c,_0x2c8e00){const _0x5e0371=_0x3fccef,_0x3fcda0=_0x15742c[_0x5e0371(0xd6)](),_0x6d6654=new Headers(_0x3fcda0[_0x5e0371(0x12d)]);_0x6d6654['delete']('access-control-allow-origin'),_0x6d6654['delete'](_0x5e0371(0xb8)),_0x6d6654[_0x5e0371(0x111)](_0x5e0371(0x17f)),_0x6d6654[_0x5e0371(0x1a5)](_0x5e0371(0xf0),_0x5e0371(0x108)),_0x6d6654[_0x5e0371(0x1a5)](_0x5e0371(0x119),_0x5e0371(0x124)),stripCookies(_0x6d6654);const _0x22e1da=_0x2c8e00==='HEAD'?null:_0x3fcda0[_0x5e0371(0x1a0)];return new Response(_0x22e1da,{'status':_0x3fcda0[_0x5e0371(0xc0)],'statusText':_0x3fcda0['statusText'],'headers':_0x6d6654});}function isHtmlResponse(_0x228a8f){const _0x4fb26b=_0x3fccef,_0x5eabd7=_0x228a8f[_0x4fb26b(0x12d)][_0x4fb26b(0x1a6)](_0x4fb26b(0x162));return _0x5eabd7!=null&&_0x5eabd7[_0x4fb26b(0x1a4)](_0x4fb26b(0x103));}function isOverlayAsset(_0x430a03,_0x47ee57){return matchesOverlayAsset(_0x47ee57,_0x430a03['overlayPath']);}function isRuntimeAsset(_0x1764f7,_0x268d9d){const _0x50d5c2=_0x3fccef;return matchesRuntimeAsset(_0x268d9d,_0x1764f7[_0x50d5c2(0x1a7)]);}function matchesOverlayAsset(_0x2a6d2d,_0x30da64){const _0x61bea3=_0x3fccef;if(!_0x30da64)return![];if(_0x30da64[_0x61bea3(0x1ac)](_0x61bea3(0x101))||_0x30da64[_0x61bea3(0x1ac)](_0x61bea3(0x1ab)))return _0x2a6d2d['href']===_0x30da64;const _0x2c93a4=normalizeAssetPathForDocument(_0x30da64);if(!_0x2c93a4)return![];const _0x2d4299=''+_0x2a6d2d['pathname']+_0x2a6d2d[_0x61bea3(0xf7)];if(_0x2d4299===_0x2c93a4)return!![];if(_0x2a6d2d[_0x61bea3(0xf7)]===_0x61bea3(0xfc))return _0x2a6d2d['pathname']===_0x2c93a4;return![];}function matchesRuntimeAsset(_0x567a1b,_0x4e046d){const _0x3802f5=_0x3fccef;if(!_0x4e046d)return![];if(_0x4e046d[_0x3802f5(0x1ac)]('http://')||_0x4e046d[_0x3802f5(0x1ac)](_0x3802f5(0x1ab)))return _0x567a1b[_0x3802f5(0xcb)]===_0x4e046d;const _0x1071b5=normalizeAssetPathForDocument(_0x4e046d);if(!_0x1071b5)return![];const _0x10c9f8=''+_0x567a1b[_0x3802f5(0x1df)]+_0x567a1b['search'];return _0x10c9f8===_0x1071b5;}function normalizeAssetPathForDocument(_0x123fa4){const _0x41bb58=_0x3fccef;if(!_0x123fa4)return _0x123fa4;if(_0x123fa4['startsWith'](_0x41bb58(0x101))||_0x123fa4['startsWith']('https://'))return _0x123fa4;const _0x12a52a=_0x123fa4[_0x41bb58(0x19e)](/^\.\//,'');if(_0x12a52a[_0x41bb58(0x1ac)]('/'))return _0x12a52a;return'/'+_0x12a52a;}function stripCookies(_0x128cec){const _0xf796a6=_0x3fccef;_0x128cec[_0xf796a6(0x111)](_0xf796a6(0x1c0)),_0x128cec[_0xf796a6(0x111)](_0xf796a6(0x1e5));}function buildPreviewCsp(_0x59df7a){const _0x3412f1=_0x3fccef,_0xbbde29=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x3412f1(0x16f),_0x3412f1(0xe3),_0x3412f1(0x147),_0x3412f1(0xf6),_0x3412f1(0x19b),'media-src\x20*\x20data:\x20blob:','worker-src\x20\x27self\x27\x20blob:','object-src\x20\x27none\x27'],_0x129f97=extractFrameAncestors(_0x59df7a);return _0x129f97&&_0xbbde29[_0x3412f1(0xe2)](_0x129f97),_0xbbde29[_0x3412f1(0x14f)](';\x20');}function stripCookies2(_0x5b3a20){const _0x281325=_0x3fccef;_0x5b3a20[_0x281325(0x111)](_0x281325(0x1c0)),_0x5b3a20['delete']('set-cookie2');}function extractFrameAncestors(_0x165834){const _0x68396b=_0x3fccef;if(!_0x165834)return null;const _0x2a92e5=_0x165834[_0x68396b(0xdd)](/frame-ancestors\s+([^;]+)/i);if(!_0x2a92e5)return null;return'frame-ancestors\x20'+_0x2a92e5[0x1][_0x68396b(0x16c)]();}function insertScript(_0x2b271c,_0x3a5263){const _0x12d142=_0x3fccef;if(/<head[^>]*>/i[_0x12d142(0x1d8)](_0x2b271c)){const _0x30b041=_0x2b271c[_0x12d142(0xdd)](/<head[^>]*>/i);if(_0x30b041){const _0x578cb5=_0x30b041[0x0];return _0x2b271c[_0x12d142(0x19e)](_0x578cb5,_0x578cb5+'\x0a'+_0x3a5263);}}if(/<\/head>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<\/head>/i,_0x3a5263+_0x12d142(0x165));if(/<body\b[^>]*>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<body\b[^>]*>/i,_0x12d142(0x116)+_0x3a5263);if(/<\/body>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<\/body>/i,_0x3a5263+_0x12d142(0x143));return _0x3a5263+'\x0a'+_0x2b271c;}var DEFAULT_HMR_PROTOCOLS=[_0x3fccef(0x159)],DEFAULT_HMR_PATH_HINTS=['/@vite/client',_0x3fccef(0x136),_0x3fccef(0x153),_0x3fccef(0xe8),_0x3fccef(0x19c),'/webpack-dev-server','/webpack-hmr',_0x3fccef(0x1c5),'/webpack-hot-middleware','/__webpack_hmr',_0x3fccef(0x1b5),_0x3fccef(0x126),'/__parcel_hmr',_0x3fccef(0x13b),_0x3fccef(0x19d)];function injectHmrBridge(_0x5168b1,_0x3840c3){const _0x54e098=buildHmrBridgeScript(_0x5168b1);if(!_0x54e098)return _0x3840c3;return insertScript(_0x3840c3,_0x54e098);}function _0x31ea(_0x3447da,_0x3cfa4a){const _0x35fb0b=_0x35fb();return _0x31ea=function(_0x31eadf,_0x31960c){_0x31eadf=_0x31eadf-0xb5;let _0x5630c1=_0x35fb0b[_0x31eadf];return _0x5630c1;},_0x31ea(_0x3447da,_0x3cfa4a);}function buildHmrBridgeScript(_0x322ba7){const _0x15613a=_0x3fccef;if(!_0x322ba7[_0x15613a(0x179)])return null;const _0x23a709=_0x322ba7[_0x15613a(0x179)][_0x15613a(0x1d9)](),_0x2d4433=toLowerCaseUnique(DEFAULT_HMR_PROTOCOLS),_0x8c81d0=toLowerCaseUnique(DEFAULT_HMR_PATH_HINTS),_0x8cffa4=[_0x15613a(0x15c),'(function(){','\x20\x20try\x20{',_0x15613a(0xd7)+JSON['stringify'](_0x23a709)+');',_0x15613a(0xd4),_0x15613a(0x16b),_0x15613a(0xbe),_0x15613a(0x100),_0x15613a(0xdb)+JSON[_0x15613a(0x121)](_0x2d4433)+');',_0x15613a(0x139)+JSON[_0x15613a(0x121)](_0x8c81d0)+';',_0x15613a(0x106),_0x15613a(0x127),_0x15613a(0xb5),_0x15613a(0x14a),_0x15613a(0x138),_0x15613a(0x1bc),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts',_0x15613a(0x1c3),_0x15613a(0x14d),_0x15613a(0xc2),_0x15613a(0xd5),_0x15613a(0xf3),_0x15613a(0xd5),_0x15613a(0x174),_0x15613a(0x1dc),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x15613a(0x18f),_0x15613a(0x17e),_0x15613a(0x141),'\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x15613a(0x19a),_0x15613a(0x125),_0x15613a(0x15a),'\x20\x20\x20\x20\x20\x20}',_0x15613a(0xbf),_0x15613a(0xca),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x15613a(0x15a),_0x15613a(0x18f),_0x15613a(0xfa),_0x15613a(0x138),_0x15613a(0x1cd),_0x15613a(0x11e),_0x15613a(0xde),_0x15613a(0x12a),'\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x15613a(0x152),_0x15613a(0x138),_0x15613a(0x12e),'\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);',_0x15613a(0xf4),_0x15613a(0x130),_0x15613a(0x198),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x15613a(0x18d),'\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);',_0x15613a(0x138),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;',_0x15613a(0x149),'\x20\x20\x20\x20try\x20{',_0x15613a(0x13e),_0x15613a(0xcd),_0x15613a(0x1c4),_0x15613a(0x100),_0x15613a(0xef),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;',_0x15613a(0x113),'\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20}',_0x15613a(0xdf),_0x15613a(0x1bd)];return _0x8cffa4[_0x15613a(0x14f)]('\x0a');}function toLowerCaseUnique(_0x545b26){const _0x4e9597=_0x3fccef,_0x13f9a0=new Set(),_0x1af3ae=[];for(const _0x2c8e8b of _0x545b26){const _0x1a6cc8=_0x2c8e8b[_0x4e9597(0x184)]();if(_0x13f9a0['has'](_0x1a6cc8))continue;_0x13f9a0[_0x4e9597(0x199)](_0x1a6cc8),_0x1af3ae[_0x4e9597(0xe2)](_0x1a6cc8);}return _0x1af3ae;}var LOG_PREFIX3=_0x3fccef(0x168);function injectRuntimeBootstrap(_0xcd035b,_0x36cbcb){const _0x16c992=_0x3fccef;console['log'](LOG_PREFIX3+'\x20injectRuntimeBootstrap()\x20called'),console[_0x16c992(0x18c)](LOG_PREFIX3+'\x20\x20\x20runtimeScriptPath:\x20'+_0xcd035b[_0x16c992(0x1a7)]),console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x193)+_0xcd035b[_0x16c992(0xc5)]);const _0x1d6521=buildRuntimeBootstrapScript(_0xcd035b);if(!_0x1d6521)return console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x1d6)),_0x36cbcb;console['log'](LOG_PREFIX3+_0x16c992(0x1aa)+_0x1d6521[_0x16c992(0xc8)]+_0x16c992(0x102));const _0x4db5f1=stripExistingRuntimeBootstraps(_0x36cbcb,_0xcd035b[_0x16c992(0x1a7)]);console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0xc4));const _0x1c25b1=insertScript(_0x4db5f1,_0x1d6521);return console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x156)),_0x1c25b1;}function buildRuntimeBootstrapScript(_0x28ea4f){const _0x3cfda4=_0x3fccef,_0x35d006=_0x28ea4f[_0x3cfda4(0x1a7)];if(!_0x35d006)return console[_0x3cfda4(0x18c)](LOG_PREFIX3+_0x3cfda4(0xe9)),null;const _0x51fe8a=buildRuntimeBootstrapOptions(_0x28ea4f);console[_0x3cfda4(0x18c)](LOG_PREFIX3+_0x3cfda4(0x15e),JSON[_0x3cfda4(0x121)](_0x51fe8a,null,0x2));const _0x5b23fd=serializeForScript(_0x51fe8a),_0x495767=JSON['stringify'](_0x35d006),_0x5c97bf=[_0x3cfda4(0xc6),_0x3cfda4(0xc7),_0x3cfda4(0x1dd),'\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x495767+';',_0x3cfda4(0x142),_0x3cfda4(0x151),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);',_0x3cfda4(0x131),_0x3cfda4(0xcf),_0x3cfda4(0xbb),_0x3cfda4(0x150),_0x3cfda4(0xbe),'\x20\x20\x20\x20}',_0x3cfda4(0x187)+_0x5b23fd+_0x3cfda4(0x181),_0x3cfda4(0xfe)+_0x5b23fd+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{',_0x3cfda4(0x109),_0x3cfda4(0x1e2),_0x3cfda4(0x100),_0x3cfda4(0x14c),_0x3cfda4(0x113),_0x3cfda4(0x19f),'\x20\x20}',_0x3cfda4(0xdf),'</script>'];return _0x5c97bf['join']('\x0a');}function buildRuntimeBootstrapOptions(_0x55454c){const _0x502f3b=_0x3fccef,_0x447434={'callbackBypass':_0x55454c[_0x502f3b(0x172)],'__development':{'enableOverlayHmr':_0x55454c[_0x502f3b(0x1e4)],'overlayPath':_0x55454c[_0x502f3b(0xc5)],'security':_0x55454c[_0x502f3b(0xff)],'backendUrl':_0x55454c[_0x502f3b(0x164)]}};return _0x447434;}function serializeForScript(_0x4a3237){const _0x363c84=_0x3fccef;return JSON[_0x363c84(0x121)](_0x4a3237)[_0x363c84(0x19e)](/</g,'\x5cu003c')[_0x363c84(0x19e)](/>/g,'\x5cu003e');}function stripExistingRuntimeBootstraps(_0x2f042c,_0x1099d7){const _0x66bdd7=_0x3fccef,_0x4fbeeb=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x4361a5=_0x2f042c[_0x66bdd7(0x19e)](_0x4fbeeb,'');if(_0x1099d7){const _0x4fb23b=escapeRegExp(_0x1099d7),_0x593a5b=new RegExp(_0x66bdd7(0xda)+_0x4fb23b+_0x66bdd7(0xbc),'gi');_0x4361a5=_0x4361a5['replace'](_0x593a5b,'');}return _0x4361a5;}function escapeRegExp(_0xf85174){const _0x1178f6=_0x3fccef;return _0xf85174[_0x1178f6(0x19e)](/[-/\\^$*+?.()|[\]{}]/g,_0x1178f6(0x132));}function rewriteEntryReferences(_0xd26740,_0x33993e){const _0x527de6=_0x3fccef,_0x23bd45=_0x3077de=>rewriteScriptTag(_0xd26740,_0x3077de),_0x22de48=_0x567d03=>rewriteLinkTag(_0xd26740,_0x567d03);return _0x33993e[_0x527de6(0x19e)](/<script\b[^>]*>/gi,_0x23bd45)[_0x527de6(0x19e)](/<link\b[^>]*>/gi,_0x22de48);}function stripSri(_0x57e0ba){const _0x568f9f=_0x3fccef;return _0x57e0ba[_0x568f9f(0x19e)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function rewriteScriptTag(_0x2cdb71,_0x4395f9){const _0x34cb39=_0x3fccef,_0x157d93=extractAttribute(_0x4395f9,_0x34cb39(0x12c));if(!_0x157d93)return _0x4395f9;const _0x28512e=normalizeAssetReference(_0x2cdb71,_0x157d93[_0x34cb39(0xe1)]);if(!_0x28512e||_0x28512e===_0x157d93['value'])return _0x4395f9;const _0x5783e4=_0x157d93[_0x34cb39(0x14e)][_0x34cb39(0x19e)](_0x157d93[_0x34cb39(0xe1)],_0x28512e);return _0x4395f9[_0x34cb39(0x19e)](_0x157d93['full'],_0x5783e4);}function rewriteLinkTag(_0x28e8e1,_0x42f20e){const _0x3fd4cf=_0x3fccef,_0x2340f8=_0x42f20e[_0x3fd4cf(0xdd)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x2340f8)return _0x42f20e;const _0xa79843=_0x2340f8[0x2][_0x3fd4cf(0x184)]();if(_0xa79843!==_0x3fd4cf(0x1c2)&&_0xa79843!==_0x3fd4cf(0x11a))return _0x42f20e;const _0x671b1a=extractAttribute(_0x42f20e,'href');if(!_0x671b1a)return _0x42f20e;const _0x4f5dab=normalizeAssetReference(_0x28e8e1,_0x671b1a[_0x3fd4cf(0xe1)]);if(!_0x4f5dab||_0x4f5dab===_0x671b1a[_0x3fd4cf(0xe1)])return _0x42f20e;const _0x5f1268=_0x671b1a[_0x3fd4cf(0x14e)][_0x3fd4cf(0x19e)](_0x671b1a['value'],_0x4f5dab);return _0x42f20e[_0x3fd4cf(0x19e)](_0x671b1a['full'],_0x5f1268);}function extractAttribute(_0x35cedd,_0x3a0d9b){const _0x4d6638=_0x3fccef,_0x49f981=new RegExp(_0x3a0d9b+_0x4d6638(0x1c7),'i'),_0x3a46a5=_0x35cedd['match'](_0x49f981);if(!_0x3a46a5)return null;return{'full':_0x3a46a5[0x0],'value':_0x3a46a5[0x2]};}function normalizeAssetReference(_0x1253ad,_0x3b7e0f){const _0x46edbc=_0x3fccef,_0xd0e94d=parseDocumentUrl(_0x3b7e0f);if(!_0xd0e94d)return null;if(_0xd0e94d[_0x46edbc(0x17b)]===self[_0x46edbc(0x1b4)]['origin'])return''+_0xd0e94d['pathname']+_0xd0e94d[_0x46edbc(0xf7)];return null;}function parseDocumentUrl(_0xe7b268){const _0x2830f3=_0x3fccef;try{return new URL(_0xe7b268,self['location'][_0x2830f3(0x17b)]);}catch{return null;}}var LOG_PREFIX4=_0x3fccef(0xbd);async function rewriteDocument(_0x29ace5,_0x1b77c4,_0x1c674,_0x8143a8=!![]){const _0x386165=_0x3fccef;console['log'](LOG_PREFIX4+'\x20rewriteDocument()\x20called'),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20source:\x20'+_0x1c674),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x8143a8),console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x1c1)+_0x29ace5[_0x386165(0xff)]);const _0x2feddb=_0x1b77c4['clone'](),_0x4ba32e=await _0x2feddb[_0x386165(0x129)]();console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0xf1)+_0x4ba32e[_0x386165(0xc8)]+_0x386165(0xd0)),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Stripping\x20SRI\x20attributes...');const _0x102f6f=stripSri(_0x4ba32e);console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Rewriting\x20entry\x20references...');let _0x54fbab=rewriteEntryReferences(_0x29ace5,_0x102f6f);_0x1c674===_0x386165(0x175)?(console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x17a)),_0x54fbab=injectHmrBridge(_0x29ace5,_0x54fbab)):console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x1b8));_0x8143a8?(console['log'](LOG_PREFIX4+_0x386165(0x157)),_0x54fbab=injectRuntimeBootstrap(_0x29ace5,_0x54fbab)):console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x10c));console['log'](LOG_PREFIX4+_0x386165(0xf9)+_0x54fbab[_0x386165(0xc8)]+_0x386165(0xd0));const _0x533e88=new Headers(_0x2feddb[_0x386165(0x12d)]);_0x533e88[_0x386165(0x1a5)]('cache-control',_0x386165(0x108)),_0x533e88[_0x386165(0x1a5)](_0x386165(0x1b7),_0x386165(0xd8)),_0x533e88[_0x386165(0x1a5)](_0x386165(0x105),_0x1c674),stripCookies2(_0x533e88);if(_0x29ace5[_0x386165(0xff)]!=='custom'){console['log'](LOG_PREFIX4+_0x386165(0xcc));const _0x5b968c=_0x533e88['get'](_0x386165(0x1c6));_0x533e88[_0x386165(0x1a5)](_0x386165(0x1c6),buildPreviewCsp(_0x5b968c)),_0x533e88['delete']('cross-origin-opener-policy'),_0x533e88[_0x386165(0x111)]('cross-origin-embedder-policy'),_0x533e88[_0x386165(0x111)](_0x386165(0xed));}else console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x54fbab,{'status':_0x2feddb[_0x386165(0xc0)],'statusText':_0x2feddb[_0x386165(0xdc)],'headers':_0x533e88});}var LOG_PREFIX5='[Enhance\x20SW]';console['log'](LOG_PREFIX5+_0x3fccef(0x18b)+new Date()[_0x3fccef(0x145)]());function tryRestoreConfigFromUrl(_0x3aeb29){const _0x2b57e7=_0x3fccef,_0x16f05e=_0x3aeb29[_0x2b57e7(0x18e)]['get']('enhancementUrl');if(!_0x16f05e)return console[_0x2b57e7(0x18c)](LOG_PREFIX5+'\x20tryRestoreConfigFromUrl:\x20no\x20enhancementUrl\x20in\x20URL'),null;console['log'](LOG_PREFIX5+_0x2b57e7(0x10b)+_0x16f05e);let _0x2781e7=null;try{_0x2781e7=new URL(_0x16f05e);}catch(_0x32e9dd){return console[_0x2b57e7(0x10e)](LOG_PREFIX5+_0x2b57e7(0x1b0),_0x32e9dd),null;}const _0x494df8={'enhancementUrl':_0x16f05e,'callbackBypass':[],'overlayPath':_0x2b57e7(0x169),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x2b57e7(0xe4),'swPath':_0x2b57e7(0xb9),'securityMode':_0x2b57e7(0x135),'backendUrl':'https://api.enhancelabs.ai'},_0xceab08=setActiveConfig(_0x494df8);return _0xceab08;}self['addEventListener'](_0x3fccef(0x122),_0x5406b6=>{const _0x2f9f88=_0x3fccef;console[_0x2f9f88(0x18c)](LOG_PREFIX5+_0x2f9f88(0x180)),_0x5406b6[_0x2f9f88(0x1a8)](((async()=>{const _0x36c807=_0x2f9f88;console[_0x36c807(0x18c)](LOG_PREFIX5+_0x36c807(0x140)),await self['skipWaiting'](),console[_0x36c807(0x18c)](LOG_PREFIX5+_0x36c807(0x1da));})()));}),self['addEventListener']('activate',_0x3b5e3d=>{const _0x3cd9a4=_0x3fccef;console[_0x3cd9a4(0x18c)](LOG_PREFIX5+_0x3cd9a4(0x1d0)),_0x3b5e3d['waitUntil'](((async()=>{const _0x17eef3=_0x3cd9a4;console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0xee)),await self[_0x17eef3(0x1b3)][_0x17eef3(0x1d5)](),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x173)),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x10d)),await requestConfiguration(),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x1bb));})()));}),self[_0x3fccef(0x1b6)](_0x3fccef(0x155),_0x2568f0=>{const _0x3319a5=_0x3fccef,_0x4840fd=_0x2568f0['data'];console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x1ad),_0x4840fd);if(!_0x4840fd||typeof _0x4840fd!==_0x3319a5(0x1ae)){console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x188));return;}switch(_0x4840fd['type']){case WORKER_MESSAGE_CONFIG:console['log'](LOG_PREFIX5+'\x20CONFIG\x20message\x20-\x20setting\x20active\x20config'),console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x170),JSON[_0x3319a5(0x121)](_0x4840fd[_0x3319a5(0x15d)],null,0x2)),setActiveConfig(_0x4840fd[_0x3319a5(0x15d)]),console[_0x3319a5(0x18c)](LOG_PREFIX5+'\x20Active\x20config\x20set');break;case WORKER_MESSAGE_DISABLE:console[_0x3319a5(0x18c)](LOG_PREFIX5+'\x20DISABLE\x20message\x20-\x20clearing\x20config'),clearActiveConfig(),console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0xfd));break;default:console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x144)+_0x4840fd[_0x3319a5(0x1cb)]);break;}}),self[_0x3fccef(0x1b6)](_0x3fccef(0x11d),_0x3c7ac7=>{_0x3c7ac7['respondWith'](handleFetch(_0x3c7ac7));});async function handleFetch(_0x4b84d9){const _0x45cb8d=_0x3fccef,{request:_0x188138}=_0x4b84d9,_0x37cb9e=new URL(_0x188138[_0x45cb8d(0xd1)]),_0x2add00=_0x188138['mode']===_0x45cb8d(0xc3),_0x25bb69=_0x2add00||_0x37cb9e[_0x45cb8d(0x17b)]===self[_0x45cb8d(0x1b4)][_0x45cb8d(0x17b)];_0x25bb69&&(console['log'](LOG_PREFIX5+_0x45cb8d(0x17d)+_0x188138['method']+'\x20'+_0x37cb9e[_0x45cb8d(0x1df)]+_0x37cb9e[_0x45cb8d(0xf7)]),console['log'](LOG_PREFIX5+_0x45cb8d(0xc9)+_0x188138['mode']+_0x45cb8d(0xe6)+_0x188138['destination']));let _0x5ccccc=getActiveConfig();if(!_0x5ccccc&&_0x2add00){const _0x3e97fd=tryRestoreConfigFromUrl(_0x37cb9e);_0x3e97fd&&(console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Restored\x20config\x20from\x20URL\x20params'),_0x5ccccc=_0x3e97fd);}if(!_0x5ccccc)return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x167)),void requestConfiguration(),fetch(_0x188138);_0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Config\x20exists,\x20enhancementUrl:\x20'+(_0x5ccccc['enhancementUrl']||_0x45cb8d(0x1a3)));if(!shouldHandleRequest(_0x188138))return _0x25bb69&&console['log'](LOG_PREFIX5+_0x45cb8d(0x17c)),fetch(_0x188138);if(shouldBypass(_0x5ccccc,_0x37cb9e[_0x45cb8d(0x1df)]))return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x11f)+_0x37cb9e[_0x45cb8d(0x1df)]+_0x45cb8d(0x12f)),fetch(_0x188138);if(_0x2add00)return console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x10a)),handleNavigationRequest(_0x188138,_0x5ccccc);if(!shouldRouteAsset(_0x5ccccc,_0x188138,_0x37cb9e))return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x137)),fetch(_0x188138);console['log'](LOG_PREFIX5+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x37cb9e['pathname']);const _0x5edcb7=await fetchFromEnhancement(_0x5ccccc,_0x188138,_0x37cb9e);if(_0x5edcb7)return console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x13d)+_0x37cb9e['pathname']),_0x5edcb7;return console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Enhancement\x20MISS\x20for\x20'+_0x37cb9e[_0x45cb8d(0x1df)]+_0x45cb8d(0x14b)),fetch(_0x188138);}async function handleNavigationRequest(_0x5bb3e9,_0x53d031){const _0x26e803=_0x3fccef,_0x78baff=new URL(_0x5bb3e9[_0x26e803(0xd1)]);console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x160)+_0x78baff[_0x26e803(0x1df)]+_0x78baff[_0x26e803(0xf7)]),console['log'](LOG_PREFIX5+_0x26e803(0x186)+(_0x53d031['enhancementUrl']||_0x26e803(0x1a3))),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x128));const _0xeb7771=await fetch(_0x5bb3e9);console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x177)+_0xeb7771[_0x26e803(0xc0)]+'\x20'+_0xeb7771[_0x26e803(0xdc)]),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x196)+_0xeb7771[_0x26e803(0x12d)][_0x26e803(0x1a6)]('content-type'));if(!isHtmlResponse(_0xeb7771))return console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1ba)),_0xeb7771;console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x114));const _0x3db369=toSameOriginResponse(_0xeb7771,'GET');console['log'](LOG_PREFIX5+_0x26e803(0x12b));const _0x41bc13=await fetchEnhancementDocument(_0x53d031,_0x5bb3e9),_0xfa1af8=_0x41bc13?'enhancement':'production';console['log'](LOG_PREFIX5+_0x26e803(0x1d7)+_0xfa1af8);const _0x233136=_0x41bc13??_0x3db369,_0x21d48e=_0xfa1af8===_0x26e803(0x175)||_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)](_0x26e803(0x1b9))||_0x78baff['searchParams']['has']('enhancement')||_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)](_0x26e803(0x166));console['log'](LOG_PREFIX5+_0x26e803(0x148)+_0x21d48e),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x123)+(_0xfa1af8===_0x26e803(0x175))),console['log'](LOG_PREFIX5+_0x26e803(0x1e0)+_0x78baff['searchParams'][_0x26e803(0x15b)](_0x26e803(0x1b9))),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1be)+_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)]('enhancement')),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0xd3)+_0x78baff[_0x26e803(0x18e)]['has']('enhancementUrl'));try{console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1a2));const _0x1662ec=await rewriteDocument(_0x53d031,_0x233136,_0xfa1af8,_0x21d48e);return console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0xea)),_0x1662ec;}catch(_0x588f4c){return console[_0x26e803(0x10e)](LOG_PREFIX5+_0x26e803(0xf2),_0x588f4c),log(_0x26e803(0x161),'Failed\x20to\x20rewrite\x20document',_0x588f4c),_0x233136;}}
|
|
1
|
+
'use strict';function _0x14c3(_0x1c9ac6,_0x3e3719){_0x1c9ac6=_0x1c9ac6-0xac;const _0x3cf1a5=_0x3cf1();let _0x14c3cb=_0x3cf1a5[_0x1c9ac6];return _0x14c3cb;}(function(_0x5ec139,_0x11755a){const _0x4626db=_0x14c3,_0x3c5f79=_0x5ec139();while(!![]){try{const _0x4f9f27=-parseInt(_0x4626db(0x171))/0x1*(-parseInt(_0x4626db(0x1d6))/0x2)+-parseInt(_0x4626db(0x13d))/0x3*(parseInt(_0x4626db(0x1c5))/0x4)+-parseInt(_0x4626db(0x117))/0x5*(-parseInt(_0x4626db(0xf5))/0x6)+-parseInt(_0x4626db(0x1b3))/0x7*(parseInt(_0x4626db(0x186))/0x8)+parseInt(_0x4626db(0x106))/0x9+parseInt(_0x4626db(0x104))/0xa*(parseInt(_0x4626db(0xd2))/0xb)+parseInt(_0x4626db(0x172))/0xc*(parseInt(_0x4626db(0xd8))/0xd);if(_0x4f9f27===_0x11755a)break;else _0x3c5f79['push'](_0x3c5f79['shift']());}catch(_0x5b5a14){_0x3c5f79['push'](_0x3c5f79['shift']());}}}(_0x3cf1,0x6a6d8));var EnhanceSW=((()=>{const _0x1e1ec5=_0x14c3;var _0x1e5e7b=Object['defineProperty'],_0x9e69c6=Object[_0x1e1ec5(0x182)],_0x3e0d36=Object[_0x1e1ec5(0x19b)],_0x41ac85=Object[_0x1e1ec5(0xb8)][_0x1e1ec5(0x11f)],_0x486e97=(_0x48cc71,_0x573ae8)=>{for(var _0x39e476 in _0x573ae8)_0x1e5e7b(_0x48cc71,_0x39e476,{'get':_0x573ae8[_0x39e476],'enumerable':!![]});},_0x45daa0=(_0x3ef6d6,_0x5c4160,_0x2e51eb,_0x24b9f2)=>{const _0x2090b0=_0x1e1ec5;if(_0x5c4160&&typeof _0x5c4160==='object'||typeof _0x5c4160===_0x2090b0(0xe6)){for(let _0x574c76 of _0x3e0d36(_0x5c4160))if(!_0x41ac85['call'](_0x3ef6d6,_0x574c76)&&_0x574c76!==_0x2e51eb)_0x1e5e7b(_0x3ef6d6,_0x574c76,{'get':()=>_0x5c4160[_0x574c76],'enumerable':!(_0x24b9f2=_0x9e69c6(_0x5c4160,_0x574c76))||_0x24b9f2[_0x2090b0(0x1b8)]});}return _0x3ef6d6;},_0x3579f6=_0x4c226e=>_0x45daa0(_0x1e5e7b({},_0x1e1ec5(0x1a0),{'value':!![]}),_0x4c226e),_0xf1fcc8={};_0x486e97(_0xf1fcc8,{'log':()=>_0x1fd6cc});var _0x44859f=_0x1e1ec5(0x130),_0x558d50=_0x1e1ec5(0xc6);function _0x2aac1a(_0x101810){const _0x5e2702=_0x1e1ec5;if(!_0x101810[_0x5e2702(0x1de)]('/'))return'/'+_0x101810;return _0x101810;}function _0x567b41(_0x466ece,_0x1e831d){const _0x3d8753=_0x1e1ec5,_0x29721e=new URL(_0x466ece[_0x3d8753(0xe9)]()),_0x98ce14=_0x29721e[_0x3d8753(0x174)][_0x3d8753(0x11d)]('/')?_0x29721e[_0x3d8753(0x174)][_0x3d8753(0x1c0)](0x0,-0x1):_0x29721e[_0x3d8753(0x174)],_0x4e8781=_0x1e831d[_0x3d8753(0x174)][_0x3d8753(0x1de)]('/')?_0x1e831d[_0x3d8753(0x174)]:'/'+_0x1e831d[_0x3d8753(0x174)];return _0x29721e[_0x3d8753(0x174)]=(''+_0x98ce14+_0x4e8781)[_0x3d8753(0x1ad)](/\/+/g,'/'),_0x29721e[_0x3d8753(0x170)]=_0x1e831d[_0x3d8753(0x170)],_0x29721e['hash']='',_0x29721e;}var _0x5713b3='[Enhance\x20SW\x20Routing]',_0x4cf220=new Set([_0x1e1ec5(0xc1),_0x1e1ec5(0x1b4),_0x1e1ec5(0x14b),'image',_0x1e1ec5(0x199),_0x1e1ec5(0x190),_0x1e1ec5(0xcf)]);function _0x2453c9(_0x380749){const _0x86bfc6=_0x1e1ec5,_0x5c4e7f=_0x380749['method']==='GET'||_0x380749['method']===_0x86bfc6(0x10b);return _0x5c4e7f;}function _0x52e17f(_0x3258f3,_0x5317bd){const _0x3ddfde=_0x1e1ec5,_0x5e2032=_0x2aac1a(_0x5317bd),_0x5cd50f=_0x3258f3[_0x3ddfde(0x138)]['some'](_0x3c62c8=>_0x5e2032[_0x3ddfde(0x1de)](_0x3c62c8));return _0x5cd50f;}function _0x1ff2b4(_0x5e9a64,_0xf769d4,_0x540594){const _0x12869b=_0x1e1ec5,_0x2d73a3=_0xf769d4[_0x12869b(0xec)];if(!_0x2d73a3||!_0x4cf220[_0x12869b(0x1b1)](_0x2d73a3))return![];if(_0x13e879(_0x5e9a64,_0x540594))return console[_0x12869b(0x1c4)](_0x5713b3+_0x12869b(0xe5)+_0x540594[_0x12869b(0x174)]+_0x12869b(0x1c2)),![];if(_0x35a1a8(_0x5e9a64,_0x540594))return console[_0x12869b(0x1c4)](_0x5713b3+_0x12869b(0xe5)+_0x540594['pathname']+_0x12869b(0x1b0)),![];if(_0x540594[_0x12869b(0xef)]!==self[_0x12869b(0x14d)][_0x12869b(0xef)])return![];return!![];}async function _0x3a5875(_0x33fda6,_0x4dff4e,_0x43e748){const _0xa1e3ca=_0x1e1ec5;console[_0xa1e3ca(0x1c4)](_0x5713b3+'\x20fetchFromEnhancement:\x20'+_0x43e748[_0xa1e3ca(0x174)]);if(!_0x33fda6['enhancementBase'])return console[_0xa1e3ca(0x1c4)](_0x5713b3+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping'),null;const _0xeaf756=_0x59211c(_0x33fda6,_0x43e748);console[_0xa1e3ca(0x1c4)](_0x5713b3+_0xa1e3ca(0xfb)+_0xeaf756['toString']());const _0x2c4a4c=new Headers(_0x4dff4e[_0xa1e3ca(0xb1)]);_0x2c4a4c[_0xa1e3ca(0x127)]('x-enhance-routing','enhancement'),_0x2c4a4c[_0xa1e3ca(0xbf)](_0xa1e3ca(0xac));const _0x6dd683=new Request(_0xeaf756['toString'](),{'method':_0x4dff4e[_0xa1e3ca(0x112)],'headers':_0x2c4a4c,'credentials':_0xa1e3ca(0xb2),'redirect':_0x4dff4e['redirect'],'cache':'default','mode':_0xa1e3ca(0xad)});try{console[_0xa1e3ca(0x1c4)](_0x5713b3+_0xa1e3ca(0x162));const _0x50c0ae=await fetch(_0x6dd683);console[_0xa1e3ca(0x1c4)](_0x5713b3+_0xa1e3ca(0xba)+_0x50c0ae['status']+'\x20'+_0x50c0ae[_0xa1e3ca(0x1a1)]+_0xa1e3ca(0x121)+_0x50c0ae[_0xa1e3ca(0x17d)]);if(_0x50c0ae[_0xa1e3ca(0x17d)]==='opaque')return console[_0xa1e3ca(0x1c4)](_0x5713b3+_0xa1e3ca(0x105)),_0x1fd6cc(_0xa1e3ca(0x123),_0xa1e3ca(0x10c),_0xeaf756[_0xa1e3ca(0xe9)]()),null;if(!_0x50c0ae['ok'])return console['log'](_0x5713b3+'\x20\x20\x20Not\x20OK\x20('+_0x50c0ae[_0xa1e3ca(0xe0)]+_0xa1e3ca(0xca)),_0x1fd6cc(_0xa1e3ca(0x189),_0xa1e3ca(0x119)+_0x50c0ae[_0xa1e3ca(0xe0)]+_0xa1e3ca(0x1d5)+_0xeaf756[_0xa1e3ca(0x174)]),null;return console[_0xa1e3ca(0x1c4)](_0x5713b3+_0xa1e3ca(0x1db)),_0x2b4b5d(_0x50c0ae,_0x4dff4e[_0xa1e3ca(0x112)]);}catch(_0x43c0a5){return console[_0xa1e3ca(0x14e)](_0x5713b3+'\x20\x20\x20Fetch\x20error:',_0x43c0a5),_0x1fd6cc(_0xa1e3ca(0x123),_0xa1e3ca(0x115),_0x43c0a5),null;}}async function _0x21d5fb(_0x1170ab,_0x24b299){const _0x23aad8=_0x1e1ec5,_0xf1b226=new URL(_0x24b299[_0x23aad8(0x10e)]);console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0x150)+_0xf1b226['pathname']+_0xf1b226['search']);if(!_0x1170ab[_0x23aad8(0x13e)])return console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0xda)),null;const _0x332c79=_0x59211c(_0x1170ab,_0xf1b226);console['log'](_0x5713b3+_0x23aad8(0xfe)+_0x332c79['toString']());const _0x26d115=new Headers(_0x24b299[_0x23aad8(0xb1)]);_0x26d115[_0x23aad8(0x127)](_0x23aad8(0x169),_0x23aad8(0x11e)),_0x26d115['delete']('host'),_0x26d115[_0x23aad8(0xbf)](_0x23aad8(0x1cc));const _0x3c91ae=new Request(_0x332c79[_0x23aad8(0xe9)](),{'method':_0x23aad8(0x161),'headers':_0x26d115,'credentials':_0x23aad8(0xb2),'redirect':_0x23aad8(0x14f),'cache':_0x23aad8(0x166),'mode':_0x23aad8(0xad)});try{console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0xfd));const _0x36c9d3=await fetch(_0x3c91ae);console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0xba)+_0x36c9d3[_0x23aad8(0xe0)]+'\x20'+_0x36c9d3[_0x23aad8(0x1a1)]+',\x20type:\x20'+_0x36c9d3[_0x23aad8(0x17d)]),console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0x122)+_0x36c9d3[_0x23aad8(0xb1)][_0x23aad8(0x16c)]('content-type'));if(_0x36c9d3[_0x23aad8(0x17d)]===_0x23aad8(0x124))return console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0x105)),_0x1fd6cc(_0x23aad8(0x123),_0x23aad8(0x16e),_0x332c79[_0x23aad8(0xe9)]()),null;if(!_0x36c9d3['ok'])return console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0x102)+_0x36c9d3[_0x23aad8(0xe0)]+_0x23aad8(0xca)),_0x1fd6cc(_0x23aad8(0x189),_0x23aad8(0x15e)+_0x36c9d3[_0x23aad8(0xe0)]+_0x23aad8(0x1d5)+_0x332c79[_0x23aad8(0x174)]),null;if(!_0x3e423c(_0x36c9d3))return console['log'](_0x5713b3+_0x23aad8(0x195)),null;return console[_0x23aad8(0x1c4)](_0x5713b3+_0x23aad8(0x1dc)),_0x2b4b5d(_0x36c9d3,'GET');}catch(_0x5bdc43){return console['error'](_0x5713b3+_0x23aad8(0x1aa),_0x5bdc43),_0x1fd6cc(_0x23aad8(0x123),_0x23aad8(0x13f),_0x5bdc43),null;}}function _0x59211c(_0x377153,_0x3a8db0){const _0x540eb8=_0x1e1ec5;if(!_0x377153['enhancementBase'])throw new Error(_0x540eb8(0xe7));return _0x567b41(_0x377153[_0x540eb8(0x13e)],_0x3a8db0);}function _0x2b4b5d(_0x53aea8,_0xd1dd1c){const _0x5e6b9d=_0x1e1ec5,_0x44951f=_0x53aea8[_0x5e6b9d(0x11c)](),_0x42b550=new Headers(_0x44951f[_0x5e6b9d(0xb1)]);_0x42b550[_0x5e6b9d(0xbf)]('access-control-allow-origin'),_0x42b550[_0x5e6b9d(0xbf)]('access-control-allow-credentials'),_0x42b550[_0x5e6b9d(0xbf)](_0x5e6b9d(0x1cf)),_0x42b550[_0x5e6b9d(0x127)](_0x5e6b9d(0x110),_0x5e6b9d(0x187)),_0x3277b8(_0x42b550);const _0x1c931b=_0xd1dd1c===_0x5e6b9d(0x10b)?null:_0x44951f['body'];return new Response(_0x1c931b,{'status':_0x44951f[_0x5e6b9d(0xe0)],'statusText':_0x44951f[_0x5e6b9d(0x1a1)],'headers':_0x42b550});}function _0x3e423c(_0x2c4bfd){const _0x575a4c=_0x1e1ec5,_0x23c621=_0x2c4bfd['headers'][_0x575a4c(0x16c)](_0x575a4c(0x13b));return _0x23c621!=null&&_0x23c621[_0x575a4c(0x16a)]('text/html');}function _0x13e879(_0x2a1e46,_0x127db1){const _0x3c670d=_0x1e1ec5;return _0x47d21b(_0x127db1,_0x2a1e46[_0x3c670d(0xeb)]);}function _0x35a1a8(_0x22e5f6,_0x40e130){return _0x5bb91f(_0x40e130,_0x22e5f6['runtimeScriptPath']);}function _0x47d21b(_0x52b3a5,_0x21ff76){const _0x193e81=_0x1e1ec5;if(!_0x21ff76)return![];if(_0x21ff76[_0x193e81(0x1de)](_0x193e81(0xe8))||_0x21ff76[_0x193e81(0x1de)](_0x193e81(0x1cb)))return _0x52b3a5[_0x193e81(0xc3)]===_0x21ff76;const _0x3ef861=_0x42195c(_0x21ff76);if(!_0x3ef861)return![];const _0x2600fb=''+_0x52b3a5['pathname']+_0x52b3a5[_0x193e81(0x170)];if(_0x2600fb===_0x3ef861)return!![];if(_0x52b3a5[_0x193e81(0x170)]===_0x193e81(0x129))return _0x52b3a5[_0x193e81(0x174)]===_0x3ef861;return![];}function _0x5bb91f(_0x33dbb4,_0x5cd64e){const _0x2a8823=_0x1e1ec5;if(!_0x5cd64e)return![];if(_0x5cd64e['startsWith'](_0x2a8823(0xe8))||_0x5cd64e['startsWith'](_0x2a8823(0x1cb)))return _0x33dbb4[_0x2a8823(0xc3)]===_0x5cd64e;const _0x173829=_0x42195c(_0x5cd64e);if(!_0x173829)return![];const _0x52ae08=''+_0x33dbb4[_0x2a8823(0x174)]+_0x33dbb4[_0x2a8823(0x170)];return _0x52ae08===_0x173829;}function _0x42195c(_0x5edbc6){const _0x339746=_0x1e1ec5;if(!_0x5edbc6)return _0x5edbc6;if(_0x5edbc6[_0x339746(0x1de)]('http://')||_0x5edbc6['startsWith'](_0x339746(0x1cb)))return _0x5edbc6;const _0x3fe60e=_0x5edbc6[_0x339746(0x1ad)](/^\.\//,'');if(_0x3fe60e['startsWith']('/'))return _0x3fe60e;return'/'+_0x3fe60e;}function _0x3277b8(_0x1ee863){const _0x42b022=_0x1e1ec5;_0x1ee863[_0x42b022(0xbf)]('set-cookie'),_0x1ee863[_0x42b022(0xbf)](_0x42b022(0x1c8));}function _0x4f1987(_0x17369c){const _0x535203=_0x1e1ec5,_0x39e0ac=[_0x535203(0x1c6),_0x535203(0xde),_0x535203(0xc9),'img-src\x20*\x20data:\x20blob:',_0x535203(0x125),_0x535203(0x16d),_0x535203(0x19e),_0x535203(0xf0),_0x535203(0xcd)],_0x48a1c8=_0xb43736(_0x17369c);return _0x48a1c8&&_0x39e0ac[_0x535203(0x12d)](_0x48a1c8),_0x39e0ac[_0x535203(0x175)](';\x20');}function _0x242138(_0x2ff0af){const _0x5ad802=_0x1e1ec5;_0x2ff0af[_0x5ad802(0xbf)](_0x5ad802(0xcc)),_0x2ff0af[_0x5ad802(0xbf)](_0x5ad802(0x1c8));}function _0xb43736(_0x5611fd){const _0x230f4e=_0x1e1ec5;if(!_0x5611fd)return null;const _0x10f7be=_0x5611fd['match'](/frame-ancestors\s+([^;]+)/i);if(!_0x10f7be)return null;return'frame-ancestors\x20'+_0x10f7be[0x1][_0x230f4e(0x17a)]();}function _0x4dc569(_0x55f019,_0x3c1de5){const _0xeffd1b=_0x1e1ec5;if(/<head[^>]*>/i[_0xeffd1b(0xb4)](_0x55f019)){const _0x4717cd=_0x55f019[_0xeffd1b(0x163)](/<head[^>]*>/i);if(_0x4717cd){const _0x52101d=_0x4717cd[0x0];return _0x55f019[_0xeffd1b(0x1ad)](_0x52101d,_0x52101d+'\x0a'+_0x3c1de5);}}if(/<\/head>/i[_0xeffd1b(0xb4)](_0x55f019))return _0x55f019['replace'](/<\/head>/i,_0x3c1de5+_0xeffd1b(0xcb));if(/<body\b[^>]*>/i[_0xeffd1b(0xb4)](_0x55f019))return _0x55f019['replace'](/<body\b[^>]*>/i,_0xeffd1b(0x1d4)+_0x3c1de5);if(/<\/body>/i[_0xeffd1b(0xb4)](_0x55f019))return _0x55f019[_0xeffd1b(0x1ad)](/<\/body>/i,_0x3c1de5+'\x0a</body>');return _0x3c1de5+'\x0a'+_0x55f019;}var _0x778045=[_0x1e1ec5(0xf1)],_0x1bc684=[_0x1e1ec5(0x192),'/__vite/client',_0x1e1ec5(0x1cd),_0x1e1ec5(0x128),_0x1e1ec5(0x1d7),'/webpack-dev-server',_0x1e1ec5(0x10f),_0x1e1ec5(0x10a),_0x1e1ec5(0xb9),'/__webpack_hmr','/_next/webpack-hmr',_0x1e1ec5(0xc2),'/__parcel_hmr',_0x1e1ec5(0x1af),_0x1e1ec5(0x1da)];function _0x116eee(_0x2df4d3,_0x1fc4c3){const _0x279cd0=_0x403d90(_0x2df4d3);if(!_0x279cd0)return _0x1fc4c3;return _0x4dc569(_0x1fc4c3,_0x279cd0);}function _0x403d90(_0x21b7e3){const _0x1da026=_0x1e1ec5;if(!_0x21b7e3[_0x1da026(0x13e)])return null;const _0x2bc666=_0x21b7e3['enhancementBase'][_0x1da026(0xe9)](),_0xe1629e=_0xbe3252(_0x778045),_0x512176=_0xbe3252(_0x1bc684),_0x517315=['<script\x20data-enhance-hmr-bridge>',_0x1da026(0x1bf),_0x1da026(0x1d3),_0x1da026(0xfa)+JSON[_0x1da026(0x168)](_0x2bc666)+');',_0x1da026(0x1c7),_0x1da026(0x16b),_0x1da026(0x188),_0x1da026(0x1a2),_0x1da026(0x1ae)+JSON[_0x1da026(0x168)](_0xe1629e)+');',_0x1da026(0x1bb)+JSON[_0x1da026(0x168)](_0x512176)+';','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];',_0x1da026(0x12b),'\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x1da026(0x148),_0x1da026(0x197),_0x1da026(0x17c),_0x1da026(0x160),'\x20\x20\x20\x20\x20\x20',_0x1da026(0xc8),'\x20\x20\x20\x20\x20\x20',_0x1da026(0xf9),_0x1da026(0x1bd),_0x1da026(0xc7),_0x1da026(0x1c3),_0x1da026(0x1d8),_0x1da026(0x1b9),_0x1da026(0x141),_0x1da026(0x1ca),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x1da026(0x12e),_0x1da026(0x1c3),_0x1da026(0x194),_0x1da026(0xf4),_0x1da026(0x15c),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x1da026(0x12e),_0x1da026(0x1c3),_0x1da026(0xd4),'\x20\x20\x20\x20};',_0x1da026(0xf2),_0x1da026(0x157),'\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',_0x1da026(0x179),'\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20\x20};',_0x1da026(0x139),'\x20\x20\x20\x20\x20\x20try\x20{',_0x1da026(0x107),_0x1da026(0x108),_0x1da026(0xb7),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);',_0x1da026(0x12e),'\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x1da026(0x178),'\x20\x20\x20\x20\x20\x20}',_0x1da026(0x100),_0x1da026(0x1b7),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);',_0x1da026(0xe3),_0x1da026(0xc0),_0x1da026(0x12c),_0x1da026(0xf7),_0x1da026(0xbe),_0x1da026(0xf3),_0x1da026(0x1a2),_0x1da026(0x167),_0x1da026(0x1ac),_0x1da026(0x113),_0x1da026(0x177),_0x1da026(0xaf),'})();',_0x1da026(0x1a6)];return _0x517315[_0x1da026(0x175)]('\x0a');}function _0xbe3252(_0x39e445){const _0x4ac12c=_0x1e1ec5,_0x4f455d=new Set(),_0x35bbc5=[];for(const _0x2fbea5 of _0x39e445){const _0x550004=_0x2fbea5['toLowerCase']();if(_0x4f455d['has'](_0x550004))continue;_0x4f455d[_0x4ac12c(0xe4)](_0x550004),_0x35bbc5[_0x4ac12c(0x12d)](_0x550004);}return _0x35bbc5;}var _0x2e3ca0=_0x1e1ec5(0xb3);function _0xfb0353(_0x2adad6,_0x1b1f51){const _0x4352d7=_0x1e1ec5;console[_0x4352d7(0x1c4)](_0x2e3ca0+_0x4352d7(0x164)),console[_0x4352d7(0x1c4)](_0x2e3ca0+'\x20\x20\x20runtimeScriptPath:\x20'+_0x2adad6[_0x4352d7(0x183)]),console[_0x4352d7(0x1c4)](_0x2e3ca0+_0x4352d7(0x114)+_0x2adad6['overlayPath']);const _0x541bd9=_0xabb8f8(_0x2adad6);if(!_0x541bd9)return console[_0x4352d7(0x1c4)](_0x2e3ca0+_0x4352d7(0x15a)),_0x1b1f51;console[_0x4352d7(0x1c4)](_0x2e3ca0+_0x4352d7(0x1b6)+_0x541bd9[_0x4352d7(0xd1)]+_0x4352d7(0x13c));const _0x309acc=_0x1b5976(_0x1b1f51,_0x2adad6[_0x4352d7(0x183)]);console[_0x4352d7(0x1c4)](_0x2e3ca0+_0x4352d7(0x11a));const _0x5f1eed=_0x4dc569(_0x309acc,_0x541bd9);return console['log'](_0x2e3ca0+_0x4352d7(0x19a)),_0x5f1eed;}function _0xabb8f8(_0x14a9a5){const _0x1d126f=_0x1e1ec5,_0x57b7a2=_0x14a9a5[_0x1d126f(0x183)];if(!_0x57b7a2)return console['log'](_0x2e3ca0+_0x1d126f(0x176)),null;const _0x521c88=_0x4d9a84(_0x14a9a5);console[_0x1d126f(0x1c4)](_0x2e3ca0+_0x1d126f(0x1ab),JSON[_0x1d126f(0x168)](_0x521c88,null,0x2));const _0x90d438=_0xfb2c4e(_0x521c88),_0x46bac2=JSON[_0x1d126f(0x168)](_0x57b7a2),_0x3d2c6f=['<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>',_0x1d126f(0xd7),'\x20\x20try\x20{',_0x1d126f(0x18e)+_0x46bac2+';','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);',_0x1d126f(0x156),_0x1d126f(0xd5),_0x1d126f(0x154),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{',_0x1d126f(0x103),'\x20\x20\x20\x20\x20\x20return;',_0x1d126f(0x1a2),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify('+_0x90d438+_0x1d126f(0x151),_0x1d126f(0x1a8)+_0x90d438+');',_0x1d126f(0x135),_0x1d126f(0x193),'\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;',_0x1d126f(0xd0),_0x1d126f(0x1bc),'\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;',_0x1d126f(0x147),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x1d126f(0x1a2),_0x1d126f(0x18b),_0x1d126f(0x113),_0x1d126f(0xae),_0x1d126f(0xaf),_0x1d126f(0xd3),_0x1d126f(0x1a6)];return _0x3d2c6f[_0x1d126f(0x175)]('\x0a');}function _0x4d9a84(_0x26fa1f){const _0x372664=_0x1e1ec5,_0x9bcf3e={'callbackBypass':_0x26fa1f[_0x372664(0x18f)],'__development':{'enableOverlayHmr':_0x26fa1f[_0x372664(0x109)],'overlayPath':_0x26fa1f[_0x372664(0xeb)],'security':_0x26fa1f[_0x372664(0x18a)],'backendUrl':_0x26fa1f[_0x372664(0x1ba)]}};return _0x9bcf3e;}function _0xfb2c4e(_0x29e4dd){const _0x29e5f6=_0x1e1ec5;return JSON[_0x29e5f6(0x168)](_0x29e4dd)['replace'](/</g,_0x29e5f6(0x19f))[_0x29e5f6(0x1ad)](/>/g,_0x29e5f6(0x155));}function _0x1b5976(_0x339d61,_0x58ba7a){const _0x333718=_0x1e1ec5,_0x14648c=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x3bfa64=_0x339d61[_0x333718(0x1ad)](_0x14648c,'');if(_0x58ba7a){const _0x2925b5=_0x24483a(_0x58ba7a),_0x258307=new RegExp(_0x333718(0x181)+_0x2925b5+_0x333718(0x1a4),'gi');_0x3bfa64=_0x3bfa64[_0x333718(0x1ad)](_0x258307,'');}return _0x3bfa64;}function _0x24483a(_0x5edbc7){const _0x3c0599=_0x1e1ec5;return _0x5edbc7[_0x3c0599(0x1ad)](/[-/\\^$*+?.()|[\]{}]/g,_0x3c0599(0x1a7));}function _0x4a1b33(_0x391dfd,_0x40c2d3){const _0x23c119=_0x1e1ec5,_0x1f8ec7=_0x32bead=>_0x25fece(_0x391dfd,_0x32bead),_0x48e4b5=_0x202665=>_0x4c88a5(_0x391dfd,_0x202665);return _0x40c2d3['replace'](/<script\b[^>]*>/gi,_0x1f8ec7)[_0x23c119(0x1ad)](/<link\b[^>]*>/gi,_0x48e4b5);}function _0x5441c3(_0xf53fe5){const _0x11ecf2=_0x1e1ec5;return _0xf53fe5[_0x11ecf2(0x1ad)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x25fece(_0x2bdcd9,_0x481212){const _0x2c49cf=_0x1e1ec5,_0x13316e=_0x3205a1(_0x481212,_0x2c49cf(0x1d1));if(!_0x13316e)return _0x481212;const _0x35809d=_0x55f0b4(_0x2bdcd9,_0x13316e['value']);if(!_0x35809d||_0x35809d===_0x13316e['value'])return _0x481212;const _0x832e2d=_0x13316e[_0x2c49cf(0xb6)][_0x2c49cf(0x1ad)](_0x13316e[_0x2c49cf(0x17e)],_0x35809d);return _0x481212[_0x2c49cf(0x1ad)](_0x13316e['full'],_0x832e2d);}function _0x4c88a5(_0x3179bc,_0x6a5722){const _0x23a893=_0x1e1ec5,_0x536848=_0x6a5722[_0x23a893(0x163)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x536848)return _0x6a5722;const _0x4435d0=_0x536848[0x2][_0x23a893(0x137)]();if(_0x4435d0!==_0x23a893(0x1b2)&&_0x4435d0!=='modulepreload')return _0x6a5722;const _0x30e54e=_0x3205a1(_0x6a5722,_0x23a893(0xc3));if(!_0x30e54e)return _0x6a5722;const _0x5754bd=_0x55f0b4(_0x3179bc,_0x30e54e[_0x23a893(0x17e)]);if(!_0x5754bd||_0x5754bd===_0x30e54e[_0x23a893(0x17e)])return _0x6a5722;const _0x6a6ddf=_0x30e54e[_0x23a893(0xb6)]['replace'](_0x30e54e[_0x23a893(0x17e)],_0x5754bd);return _0x6a5722[_0x23a893(0x1ad)](_0x30e54e['full'],_0x6a6ddf);}function _0x3205a1(_0x486ada,_0x41f841){const _0x14ca74=_0x1e1ec5,_0x58bf9e=new RegExp(_0x41f841+_0x14ca74(0x140),'i'),_0x2588bc=_0x486ada['match'](_0x58bf9e);if(!_0x2588bc)return null;return{'full':_0x2588bc[0x0],'value':_0x2588bc[0x2]};}function _0x55f0b4(_0x402476,_0x2e1661){const _0x2d5bb4=_0x1e1ec5,_0x249e91=_0x581b8d(_0x2e1661);if(!_0x249e91)return null;if(_0x249e91[_0x2d5bb4(0xef)]===self[_0x2d5bb4(0x14d)][_0x2d5bb4(0xef)])return''+_0x249e91[_0x2d5bb4(0x174)]+_0x249e91['search'];return null;}function _0x581b8d(_0x7c54cf){const _0x1df6c1=_0x1e1ec5;try{return new URL(_0x7c54cf,self['location'][_0x1df6c1(0xef)]);}catch{return null;}}var _0x5ce02f='[Enhance\x20SW\x20Document]';async function _0x3f9b0f(_0x481d99,_0x175e27,_0x4d7d06,_0x53f9b5=!![]){const _0x121793=_0x1e1ec5;console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x111)),console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x10d)+_0x4d7d06),console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x1be)+_0x53f9b5),console['log'](_0x5ce02f+_0x121793(0xb0)+_0x481d99[_0x121793(0x18a)]);const _0x363a08=_0x175e27[_0x121793(0x11c)](),_0x1e7f6f=await _0x363a08['text']();console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x142)+_0x1e7f6f['length']+_0x121793(0x196)),console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x185));const _0x3e119f=_0x5441c3(_0x1e7f6f);console[_0x121793(0x1c4)](_0x5ce02f+'\x20\x20\x20Rewriting\x20entry\x20references...');let _0x287122=_0x4a1b33(_0x481d99,_0x3e119f);_0x4d7d06===_0x121793(0x145)?(console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x18d)),_0x287122=_0x116eee(_0x481d99,_0x287122)):console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0xb5));_0x53f9b5?(console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x1df)),_0x287122=_0xfb0353(_0x481d99,_0x287122)):console[_0x121793(0x1c4)](_0x5ce02f+'\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection');console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x134)+_0x287122[_0x121793(0xd1)]+_0x121793(0x196));const _0x56d67b=new Headers(_0x363a08[_0x121793(0xb1)]);_0x56d67b['set'](_0x121793(0x143),_0x121793(0x126)),_0x56d67b[_0x121793(0x127)](_0x121793(0xbb),_0x121793(0x133)),_0x56d67b['set']('x-enhance-document-source',_0x4d7d06),_0x242138(_0x56d67b);if(_0x481d99[_0x121793(0x18a)]!==_0x121793(0xc4)){console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0x1d9));const _0x64a687=_0x56d67b['get'](_0x121793(0x1a5));_0x56d67b[_0x121793(0x127)](_0x121793(0x1a5),_0x4f1987(_0x64a687)),_0x56d67b[_0x121793(0xbf)]('cross-origin-opener-policy'),_0x56d67b[_0x121793(0xbf)](_0x121793(0x1c1)),_0x56d67b[_0x121793(0xbf)]('cross-origin-resource-policy');}else console['log'](_0x5ce02f+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console[_0x121793(0x1c4)](_0x5ce02f+_0x121793(0xe2)),new Response(_0x287122,{'status':_0x363a08['status'],'statusText':_0x363a08[_0x121793(0x1a1)],'headers':_0x56d67b});}var _0x3e4826=_0x1e1ec5(0x1dd);console[_0x1e1ec5(0x1c4)](_0x3e4826+_0x1e1ec5(0x191)+new Date()[_0x1e1ec5(0x144)]());var _0x189421={'overlayPath':_0x1e1ec5(0x158),'backendUrl':'https://api.enhancelabs.ai','overlayEnableViteHmr':![],'runtimeScriptPath':_0x1e1ec5(0x131),'swPath':_0x1e1ec5(0x14a)};console[_0x1e1ec5(0x1c4)](_0x3e4826+_0x1e1ec5(0xc5),JSON['stringify'](_0x189421,null,0x2));var _0x199c5e={'callbackBypass':[_0x1e1ec5(0x120)],'securityMode':_0x1e1ec5(0xea)},_0x7c91c=null,_0xfc832b=null;function _0x5dfdb6(_0x4c67db,_0x2bcd46){const _0x5e9abc=_0x1e1ec5,_0x1565d3=_0x4c67db[_0x5e9abc(0xff)][_0x5e9abc(0x16c)](_0x5e9abc(0xbd));if(_0x2bcd46&&_0x1565d3){console['log'](_0x3e4826+_0x5e9abc(0x17f)+_0x1565d3),_0x7c91c=_0x1565d3;try{_0xfc832b=new URL(_0x1565d3);}catch{console[_0x5e9abc(0x14e)](_0x3e4826+_0x5e9abc(0xd6)+_0x1565d3),_0xfc832b=null;}}_0x2bcd46&&!_0x1565d3&&(_0x7c91c&&console[_0x5e9abc(0x1c4)](_0x3e4826+'\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)'),_0x7c91c=null,_0xfc832b=null);const _0x546528=_0x1565d3||_0x7c91c||'',_0x1a20e3=_0x1565d3?((()=>{if(_0x1565d3===_0x7c91c)return _0xfc832b;try{return new URL(_0x1565d3);}catch{return null;}})()):_0xfc832b;return{..._0x189421,..._0x199c5e,'enhancementUrl':_0x546528,'enhancementBase':_0x1a20e3,'callbackBypassNormalized':_0x199c5e[_0x5e9abc(0x18f)][_0x5e9abc(0x1a3)](_0x2624dc=>_0x2624dc[_0x5e9abc(0x1de)]('/')?_0x2624dc:'/'+_0x2624dc)};}function _0x1fd6cc(_0xe020a3,_0x1012c9,..._0x45fcac){const _0x319c3c=_0x1e1ec5;_0xe020a3===_0x319c3c(0x123)?console[_0x319c3c(0x123)](_0x3e4826,_0x1012c9,..._0x45fcac):console[_0x319c3c(0x189)](_0x3e4826,_0x1012c9,..._0x45fcac);}self[_0x1e1ec5(0x165)](_0x1e1ec5(0xee),_0x156319=>{const _0x4438a3=_0x1e1ec5;console[_0x4438a3(0x1c4)](_0x3e4826+'\x20INSTALL\x20event'),_0x156319[_0x4438a3(0x149)](((async()=>{const _0x4a409c=_0x4438a3;console[_0x4a409c(0x1c4)](_0x3e4826+_0x4a409c(0xdc)),await self['skipWaiting'](),console[_0x4a409c(0x1c4)](_0x3e4826+_0x4a409c(0x153));})()));}),self['addEventListener'](_0x1e1ec5(0x12f),_0x68836=>{const _0x184391=_0x1e1ec5;console[_0x184391(0x1c4)](_0x3e4826+_0x184391(0x184)),_0x68836[_0x184391(0x149)](((async()=>{const _0xfd224b=_0x184391;console[_0xfd224b(0x1c4)](_0x3e4826+_0xfd224b(0x15d)),await self[_0xfd224b(0x14c)]['claim'](),console[_0xfd224b(0x1c4)](_0x3e4826+_0xfd224b(0xdd));})()));}),self[_0x1e1ec5(0x165)](_0x1e1ec5(0x198),_0x570f15=>{const _0x3da99b=_0x1e1ec5,_0x364040=_0x570f15['data'];console[_0x3da99b(0x1c4)](_0x3e4826+_0x3da99b(0x180),_0x364040);if(!_0x364040||typeof _0x364040!==_0x3da99b(0x1ce)){console[_0x3da99b(0x1c4)](_0x3e4826+_0x3da99b(0xfc));return;}switch(_0x364040[_0x3da99b(0x17d)]){case _0x44859f:{console[_0x3da99b(0x1c4)](_0x3e4826+_0x3da99b(0xdf));const _0x233a9f=_0x364040[_0x3da99b(0x17b)];_0x199c5e={'callbackBypass':_0x233a9f[_0x3da99b(0x18f)]??['/auth/callback'],'securityMode':_0x233a9f[_0x3da99b(0x18a)]??'permissive'},console[_0x3da99b(0x1c4)](_0x3e4826+_0x3da99b(0x15f),JSON[_0x3da99b(0x168)](_0x199c5e,null,0x2));break;}case _0x558d50:console['log'](_0x3e4826+_0x3da99b(0x18c)),_0x199c5e={'callbackBypass':['/auth/callback'],'securityMode':_0x3da99b(0xea)},_0x7c91c=null,_0xfc832b=null,console['log'](_0x3e4826+_0x3da99b(0x1b5));break;default:console[_0x3da99b(0x1c4)](_0x3e4826+'\x20Unknown\x20message\x20type:\x20'+_0x364040[_0x3da99b(0x17d)]);break;}}),self['addEventListener'](_0x1e1ec5(0x152),_0x1ae543=>{const _0xd7abd8=_0x1e1ec5;_0x1ae543[_0xd7abd8(0x1c9)](_0x188610(_0x1ae543));});async function _0x188610(_0x3bb352){const _0x34a388=_0x1e1ec5,{request:_0x4332f0}=_0x3bb352,_0x50067a=new URL(_0x4332f0[_0x34a388(0x10e)]),_0x271940=_0x4332f0['mode']==='navigate',_0x56faa8=_0x271940||_0x50067a['origin']===self[_0x34a388(0x14d)]['origin'];_0x56faa8&&(console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0x19d)+_0x4332f0['method']+'\x20'+_0x50067a[_0x34a388(0x174)]+_0x50067a[_0x34a388(0x170)]),console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0xed)+_0x4332f0[_0x34a388(0xd9)]+_0x34a388(0x159)+_0x4332f0[_0x34a388(0xec)]));const _0x43dbf6=_0x5dfdb6(_0x50067a,_0x271940);_0x56faa8&&console[_0x34a388(0x1c4)](_0x3e4826+'\x20\x20\x20enhancementUrl:\x20'+(_0x43dbf6[_0x34a388(0xbd)]||'none'));if(!_0x2453c9(_0x4332f0))return _0x56faa8&&console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0x146)),fetch(_0x4332f0);if(_0x52e17f(_0x43dbf6,_0x50067a[_0x34a388(0x174)]))return _0x56faa8&&console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0xbc)+_0x50067a[_0x34a388(0x174)]+_0x34a388(0x15b)),fetch(_0x4332f0);if(_0x271940)return console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0x12a)),_0x209634(_0x4332f0,_0x43dbf6);if(!_0x1ff2b4(_0x43dbf6,_0x4332f0,_0x50067a))return _0x56faa8&&console['log'](_0x3e4826+_0x34a388(0xce)),fetch(_0x4332f0);console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0x19c)+_0x50067a[_0x34a388(0x174)]);const _0x15f312=await _0x3a5875(_0x43dbf6,_0x4332f0,_0x50067a);if(_0x15f312)return console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0x16f)+_0x50067a['pathname']),_0x15f312;return console[_0x34a388(0x1c4)](_0x3e4826+_0x34a388(0x11b)+_0x50067a[_0x34a388(0x174)]+_0x34a388(0x13a)),fetch(_0x4332f0);}async function _0x209634(_0x3f3d51,_0x35434a){const _0x534f5e=_0x1e1ec5,_0x46d797=new URL(_0x3f3d51[_0x534f5e(0x10e)]);console[_0x534f5e(0x1c4)](_0x3e4826+_0x534f5e(0x116)+_0x46d797['pathname']+_0x46d797[_0x534f5e(0x170)]),console[_0x534f5e(0x1c4)](_0x3e4826+_0x534f5e(0xe1)+(_0x35434a['enhancementUrl']||_0x534f5e(0x101))),console['log'](_0x3e4826+_0x534f5e(0x1d0));const _0x3462aa=await fetch(_0x3f3d51);console[_0x534f5e(0x1c4)](_0x3e4826+'\x20\x20\x20Production\x20response:\x20'+_0x3462aa[_0x534f5e(0xe0)]+'\x20'+_0x3462aa[_0x534f5e(0x1a1)]),console[_0x534f5e(0x1c4)](_0x3e4826+'\x20\x20\x20Content-Type:\x20'+_0x3462aa[_0x534f5e(0xb1)]['get'](_0x534f5e(0x13b)));if(!_0x3e423c(_0x3462aa))return console['log'](_0x3e4826+_0x534f5e(0x132)),_0x3462aa;console[_0x534f5e(0x1c4)](_0x3e4826+_0x534f5e(0x136));const _0xbbe0dd=_0x2b4b5d(_0x3462aa,_0x534f5e(0x161));console['log'](_0x3e4826+_0x534f5e(0xdb));const _0x4adae3=await _0x21d5fb(_0x35434a,_0x3f3d51),_0x1ae01f=_0x4adae3?'enhancement':_0x534f5e(0x118);console[_0x534f5e(0x1c4)](_0x3e4826+_0x534f5e(0x1a9)+_0x1ae01f);const _0x4a73b6=_0x4adae3??_0xbbe0dd,_0x3aae59=_0x1ae01f===_0x534f5e(0x145)||_0x46d797[_0x534f5e(0xff)][_0x534f5e(0x1b1)]('overlay')||_0x46d797['searchParams'][_0x534f5e(0x1b1)]('enhancement')||_0x46d797[_0x534f5e(0xff)][_0x534f5e(0x1b1)](_0x534f5e(0xbd));console['log'](_0x3e4826+_0x534f5e(0x1be)+_0x3aae59);try{console[_0x534f5e(0x1c4)](_0x3e4826+_0x534f5e(0xf6));const _0x2754c4=await _0x3f9b0f(_0x35434a,_0x4a73b6,_0x1ae01f,_0x3aae59);return console[_0x534f5e(0x1c4)](_0x3e4826+_0x534f5e(0x1d2)),_0x2754c4;}catch(_0x443463){return console[_0x534f5e(0x14e)](_0x3e4826+_0x534f5e(0x173),_0x443463),_0x1fd6cc(_0x534f5e(0x123),_0x534f5e(0xf8),_0x443463),_0x4a73b6;}}return _0x3579f6(_0xf1fcc8);})());function _0x3cf1(){const _0x2c2ba5=['\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','[Enhance\x20SW]','startsWith','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','host','cors','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','\x20\x20}','\x20\x20\x20securityMode:\x20','headers','include','[Enhance\x20SW\x20Bootstrap]','test','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','full','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','prototype','/webpack-hot-middleware','\x20\x20\x20Response:\x20','x-enhance-document','\x20\x20\x20BYPASS:\x20','enhancementUrl','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','delete','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','script','/parcel-hmr','href','custom','\x20Build\x20config:','enhance:disable','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:',')\x20-\x20returning\x20null','\x0a</head>','set-cookie','object-src\x20\x27none\x27','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','modulepreload','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','length','44396FgYjDL','})();','\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20Failed\x20to\x20parse\x20enhancementUrl:\x20','(async\x20()\x20=>\x20{','247Vhxclt','mode','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','\x20Calling\x20skipWaiting()...','\x20clients.claim()\x20complete','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','status','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20Document\x20rewrite\x20complete','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','add','\x20shouldRouteAsset:\x20','function','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','http://','toString','permissive','overlayPath','destination','\x20\x20\x20mode:\x20','install','origin','worker-src\x20\x27self\x27\x20blob:','vite-hmr','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','5099406asWwsJ','\x20\x20\x20Rewriting\x20document...','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','Failed\x20to\x20rewrite\x20document','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20\x20\x20Enhancement\x20URL:\x20','\x20Invalid\x20message\x20data\x20-\x20ignoring','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20\x20\x20Enhancement\x20document\x20URL:\x20','searchParams','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','none','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','110BenNTk','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','760383hmOtvq','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','overlayEnableViteHmr','/webpackhotmiddleware','HEAD','Enhancement\x20CORS\x20blocked','\x20\x20\x20source:\x20','url','/webpack-hmr','x-enhance-enhancement','\x20rewriteDocument()\x20called','method','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20overlayPath:\x20','Enhancement\x20fetch\x20failed','\x20handleNavigationRequest:\x20','5BIKaMj','production','Enhancement\x20miss\x20','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','\x20\x20\x20Enhancement\x20MISS\x20for\x20','clone','endsWith','enhancement-document','hasOwnProperty','/auth/callback',',\x20type:\x20','\x20\x20\x20Content-Type:\x20','info','opaque','font-src\x20*\x20data:','no-store','set','/__vite_ping','?import','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20try\x20{','push','\x20\x20\x20\x20\x20\x20\x20\x20}','activate','enhance:configure','/assets/enhance-runtime.js','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','rewritten','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','\x20\x20\x20HTML\x20response\x20-\x20processing...','toLowerCase','callbackBypassNormalized','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20-\x20falling\x20back\x20to\x20production','content-type','\x20chars)','20973ZsGKPN','enhancementBase','Enhancement\x20document\x20fetch\x20failed','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20Original\x20HTML\x20length:\x20','cache-control','toISOString','enhancement','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','waitUntil','/sw-enhance.js','font','clients','location','error','follow','\x20fetchEnhancementDocument:\x20',',\x20null,\x202));','fetch','\x20skipWaiting()\x20complete','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','\x5cu003e','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','https://assets.enhancelabs.ai/overlay.js',',\x20destination:\x20','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20matches\x20callbackBypass','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20Calling\x20clients.claim()...','Enhancement\x20document\x20miss\x20','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','GET','\x20\x20\x20Fetching\x20from\x20enhancement...','match','\x20injectRuntimeBootstrap()\x20called','addEventListener','default','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','stringify','x-enhance-routing','includes','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','get','connect-src\x20*','Enhancement\x20document\x20CORS\x20blocked','\x20\x20\x20Enhancement\x20HIT\x20for\x20','search','61339fvNMFO','17652hscExE','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','pathname','join','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','trim','config','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','type','value','\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20','\x20MESSAGE\x20received:','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','getOwnPropertyDescriptor','runtimeScriptPath','\x20ACTIVATE\x20event','\x20\x20\x20Stripping\x20SRI\x20attributes...','399232HvCWvU','hit','\x20\x20\x20\x20\x20\x20return;','debug','securityMode','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','callbackBypass','sharedworker','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','/@vite/client','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20chars','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','message','worker','\x20\x20\x20Script\x20inserted\x20into\x20document','getOwnPropertyNames','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20FETCH:\x20','media-src\x20*\x20data:\x20blob:','\x5cu003c','__esModule','statusText','\x20\x20\x20\x20}','map','\x5c1[^>]*>\x5cs*</script>','content-security-policy','</script>','\x5c$&','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20Document\x20fetch\x20error:','\x20Bootstrap\x20options:','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','replace','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','/__snowpack__','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','has','stylesheet','98zNsSCV','style','\x20Config\x20reset','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','\x20\x20\x20\x20};','enumerable','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','backendUrl','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20\x20\x20\x20//\x20Mark\x20as\x20initialized\x20globally\x20so\x20other\x20module\x20instances\x20(e.g.\x20enhanced\x20app\x27s\x20bundled\x20copy)\x20skip\x20re-init','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20shouldInjectOverlay:\x20','(function(){','slice','cross-origin-embedder-policy','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20\x20\x20\x20\x20\x20}','log','348kWpxsU','default-src\x20\x27self\x27\x20blob:\x20data:','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','set-cookie2','respondWith','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','https://','content-length','/vite/client','object','access-control-expose-headers','\x20\x20\x20Fetching\x20production\x20response...','src','\x20\x20\x20Document\x20rewritten\x20successfully','\x20\x20try\x20{','$&\x0a','\x20for\x20','24jYiJJq','/sockjs-node','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20Applying\x20permissive\x20CSP...','/snowpack/hmr'];_0x3cf1=function(){return _0x2c2ba5;};return _0x3cf1();}
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type EnhancePluginOptions = {
|
|
4
|
+
callbackBypass?: string[];
|
|
5
|
+
__development?: {
|
|
6
|
+
enableOverlayHmr?: boolean;
|
|
7
|
+
overlayPath?: string;
|
|
8
|
+
security?: "permissive" | "custom";
|
|
9
|
+
backendUrl?: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
declare const enhance: (options?: EnhancePluginOptions) => Plugin;
|
|
4
13
|
|
|
5
|
-
export {
|
|
14
|
+
export { type EnhancePluginOptions, enhance };
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x19b942=_0x194f;(function(_0x1f9772,_0x235e10){var _0x5d2f3a=_0x194f,_0x55b431=_0x1f9772();while(!![]){try{var _0x3a100f=parseInt(_0x5d2f3a(0x179))/0x1*(-parseInt(_0x5d2f3a(0x16a))/0x2)+parseInt(_0x5d2f3a(0x17a))/0x3+parseInt(_0x5d2f3a(0x16e))/0x4*(parseInt(_0x5d2f3a(0x169))/0x5)+parseInt(_0x5d2f3a(0x17c))/0x6+parseInt(_0x5d2f3a(0x174))/0x7+parseInt(_0x5d2f3a(0x177))/0x8+-parseInt(_0x5d2f3a(0x173))/0x9;if(_0x3a100f===_0x235e10)break;else _0x55b431['push'](_0x55b431['shift']());}catch(_0x710471){_0x55b431['push'](_0x55b431['shift']());}}}(_0x2869,0xdf07d));import{fileURLToPath}from'url';import{readFile}from'fs/promises';function _0x2869(){var _0x5852da=['utf-8','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','end','setHeader','stringify','/sw-enhance.js','10lgNeAR','273898ryFHok','application/javascript','../assets/enhance-runtime.js','emitFile','1786248Oxxzst','enhance-sandbox','sw-enhance.js','<head$1>','\x22;\x0aEnhance.init(','31673124WOASYT','2895536UPlwik','replace',');\x0a</script>','12177768Zokymp','middlewares','4djjmDN','2673030ySpAnU','url','7563372MpJNcn','../sw-enhance.js'];_0x2869=function(){return _0x5852da;};return _0x2869();}var runtimePath=fileURLToPath(new URL(_0x19b942(0x16c),import.meta.url)),swPath=fileURLToPath(new URL(_0x19b942(0x17d),import.meta.url)),RUNTIME_URL='/assets/enhance-runtime.js',SW_URL=_0x19b942(0x168);function _0x194f(_0x1c243d,_0x5caa70){_0x1c243d=_0x1c243d-0x164;var _0x2869af=_0x2869();var _0x194fac=_0x2869af[_0x1c243d];return _0x194fac;}function buildInitScript(_0x4e76ec){var _0x4b247b=_0x19b942;const _0x597c72={'callbackBypass':_0x4e76ec['callbackBypass'],'__development':_0x4e76ec['__development']},_0x371963=JSON[_0x4b247b(0x167)](_0x597c72);return _0x4b247b(0x164)+RUNTIME_URL+_0x4b247b(0x172)+_0x371963+_0x4b247b(0x176);}var enhance=(_0x1b42f7={})=>{var _0x30b97f=_0x19b942;let _0x129872=null,_0x2bcc2c=null;async function _0x2f3f00(){var _0x32489c=_0x194f;!_0x129872&&(_0x129872=await readFile(runtimePath,_0x32489c(0x17e))),!_0x2bcc2c&&(_0x2bcc2c=await readFile(swPath,_0x32489c(0x17e)));}return{'name':_0x30b97f(0x16f),'configureServer'(_0x4984cf){var _0x358435=_0x30b97f;_0x4984cf[_0x358435(0x178)]['use'](async(_0x4c1025,_0x7a87ee,_0x2c4134)=>{var _0x552005=_0x358435;if(_0x4c1025[_0x552005(0x17b)]===RUNTIME_URL||_0x4c1025['url']===SW_URL){await _0x2f3f00(),_0x7a87ee[_0x552005(0x166)]('Content-Type',_0x552005(0x16b)),_0x7a87ee[_0x552005(0x165)](_0x4c1025['url']===RUNTIME_URL?_0x129872:_0x2bcc2c);return;}_0x2c4134();});},'configurePreviewServer'(_0x3fbf7b){var _0x26bc4d=_0x30b97f;_0x3fbf7b[_0x26bc4d(0x178)]['use'](async(_0x2fc390,_0x1d6fe0,_0xe65518)=>{var _0x112e3c=_0x26bc4d;if(_0x2fc390[_0x112e3c(0x17b)]===RUNTIME_URL||_0x2fc390[_0x112e3c(0x17b)]===SW_URL){await _0x2f3f00(),_0x1d6fe0['setHeader']('Content-Type',_0x112e3c(0x16b)),_0x1d6fe0['end'](_0x2fc390[_0x112e3c(0x17b)]===RUNTIME_URL?_0x129872:_0x2bcc2c);return;}_0xe65518();});},async 'generateBundle'(){var _0x180a5b=_0x30b97f;await _0x2f3f00(),this[_0x180a5b(0x16d)]({'type':'asset','fileName':'assets/enhance-runtime.js','source':_0x129872}),this[_0x180a5b(0x16d)]({'type':'asset','fileName':_0x180a5b(0x170),'source':_0x2bcc2c});},'transformIndexHtml'(_0x1b92cb){var _0x372c86=_0x30b97f;const _0x1c1c05=buildInitScript(_0x1b42f7);return _0x1b92cb[_0x372c86(0x175)](/<head([^>]*)>/,_0x372c86(0x171)+_0x1c1c05);}};};export{enhance};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enhance-eng/sandbox",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17-dev.test789",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Enhance preview bootstrap and tooling package.",
|
|
5
6
|
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
|
-
"dist",
|
|
22
|
-
"
|
|
23
|
-
"enhance.config.sample.json"
|
|
21
|
+
"dist/",
|
|
22
|
+
"README.md"
|
|
24
23
|
],
|
|
25
24
|
"bin": {
|
|
26
25
|
"enhance-sandbox": "./dist/cli.js"
|
package/dist/postinstall.d.ts
DELETED
package/dist/postinstall.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _0x27a53e=_0x29f3;(function(_0xa7cb77,_0xe71b8){const _0x1fdec4=_0x29f3,_0x20f184=_0xa7cb77();while(!![]){try{const _0x119db2=parseInt(_0x1fdec4(0x14e))/0x1+parseInt(_0x1fdec4(0x141))/0x2*(-parseInt(_0x1fdec4(0x13a))/0x3)+parseInt(_0x1fdec4(0x150))/0x4*(parseInt(_0x1fdec4(0x131))/0x5)+parseInt(_0x1fdec4(0x169))/0x6+-parseInt(_0x1fdec4(0x16d))/0x7*(parseInt(_0x1fdec4(0x172))/0x8)+-parseInt(_0x1fdec4(0x140))/0x9+-parseInt(_0x1fdec4(0x179))/0xa*(-parseInt(_0x1fdec4(0x145))/0xb);if(_0x119db2===_0xe71b8)break;else _0x20f184['push'](_0x20f184['shift']());}catch(_0x2aad90){_0x20f184['push'](_0x20f184['shift']());}}}(_0x364c,0x6c6e1));import{relative,resolve}from'path';import{promises as _0x5802da}from'fs';import{join}from'path';function _0x364c(){const _0x20d386=['3321mGAWmd','startsWith','\x20(already\x20current)\x20[','code','\x20is\x20missing\x20a\x20non-empty\x20\x22publicDir\x22\x20string','string','6536664rNYSwB','968YnAnzq','error','0.0.0','enhance.config.json','1649615VRRqzC','digest','public','bin/enhance-sandbox.js','object','catch','Failed\x20to\x20read\x20','all','https://','373947xuOKuA','update','544AUYAOh','[enhance-sandbox]\x20','dist','^7.2.4','assets/enhance-runtime.js','skipped','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','http://','@enhance-eng/sandbox','destinationPath','parse','^4.1.1','base64','publicDir','version','utf8','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','trim','tsc\x20--noEmit','exit','enhance.config.sample.json','status','\x20not\x20found;\x20skipping\x20asset\x20sync','sourcePath','./dist/index.cjs','1369866Rpikhk','message','pnpm\x20version\x20patch\x20--no-git-tag-version','^11.1.0','1743987BjYVpn','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20has\x20an\x20invalid\x20\x22swFilename\x22;\x20expected\x20a\x20non-empty\x20string','info','^3.22.4','16QXBuRA','\x20must\x20contain\x20an\x20object','ENOENT','sha256','../dist/index.js','[enhance-sandbox]\x20Copied\x20','Invalid\x20JSON\x20in\x20','90fjFJbM','./dist/index.js','readFile','swFilename','override','copyFile','^8.5.1','MIT','copied','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','url','push','^24.10.1','[enhance-sandbox]\x20Failed\x20to\x20sync\x20assets\x20during\x20postinstall','9285QqzWGs','/assets/enhance-runtime.js','[enhance-sandbox]\x20Skipped\x20','cwd','/sw-enhance.js','./dist/vite/index.js','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','mkdir','relativeDestination'];_0x364c=function(){return _0x20d386;};return _0x364c();}var CONFIG_FILENAME=_0x27a53e(0x144);async function loadEnhanceConfig(_0x4fb751=process['cwd']()){const _0x1dbc4b=_0x27a53e,_0x2de07e=join(_0x4fb751,CONFIG_FILENAME);let _0x469064;try{_0x469064=await _0x5802da[_0x1dbc4b(0x17b)](_0x2de07e,_0x1dbc4b(0x15f));}catch(_0x5db385){if(_0x5db385[_0x1dbc4b(0x13d)]===_0x1dbc4b(0x174))return null;throw new Error(_0x1dbc4b(0x14b)+CONFIG_FILENAME+':\x20'+_0x5db385['message']);}let _0x41551a;try{_0x41551a=JSON[_0x1dbc4b(0x15a)](_0x469064);}catch(_0xf5320c){throw new Error(_0x1dbc4b(0x178)+CONFIG_FILENAME+':\x20'+_0xf5320c[_0x1dbc4b(0x16a)]);}if(!_0x41551a||typeof _0x41551a!==_0x1dbc4b(0x149))throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x173));const {publicDir:_0x17c0c5,swFilename:_0x49db56}=_0x41551a;if(typeof _0x17c0c5!=='string'||_0x17c0c5[_0x1dbc4b(0x161)]()['length']===0x0)throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x13e));if(_0x49db56!=null&&(typeof _0x49db56!==_0x1dbc4b(0x13f)||_0x49db56[_0x1dbc4b(0x161)]()['length']===0x0))throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x16f));return{'publicDir':_0x17c0c5[_0x1dbc4b(0x161)](),'swFilename':typeof _0x49db56===_0x1dbc4b(0x13f)?_0x49db56[_0x1dbc4b(0x161)]():void 0x0};}import{promises as _0x4086b1}from'fs';import{createHash}from'crypto';import{dirname,join as _0x4bb59d}from'path';import{fileURLToPath}from'url';var package_default={'name':_0x27a53e(0x158),'version':'0.3.16','type':'module','description':_0x27a53e(0x156),'license':_0x27a53e(0x180),'main':'./dist/index.cjs','module':_0x27a53e(0x17a),'types':'./dist/index.d.ts','exports':{'.':{'types':'./dist/index.d.ts','import':'./dist/index.js','require':_0x27a53e(0x168)},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x27a53e(0x136)}},'files':[_0x27a53e(0x152),'bin',_0x27a53e(0x164)],'bin':{'enhance-sandbox':_0x27a53e(0x148)},'scripts':{'typecheck':_0x27a53e(0x162),'dev':_0x27a53e(0x160),'dev:staging':_0x27a53e(0x182),'build':_0x27a53e(0x16e),'build:release':_0x27a53e(0x137),'version':_0x27a53e(0x16b)},'dependencies':{'commander':_0x27a53e(0x16c),'zod':_0x27a53e(0x171)},'devDependencies':{'@types/node':_0x27a53e(0x12f),'javascript-obfuscator':_0x27a53e(0x15b),'tsup':_0x27a53e(0x17f),'vite':_0x27a53e(0x153)},'publishConfig':{'access':_0x27a53e(0x147)}},DEFAULT_SERVICE_WORKER_PATH=_0x27a53e(0x135),DEFAULT_RUNTIME_PATH=_0x27a53e(0x132),DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH=_0x27a53e(0x154),PACKAGE_VERSION=typeof package_default[_0x27a53e(0x15e)]===_0x27a53e(0x13f)?package_default[_0x27a53e(0x15e)]:_0x27a53e(0x143);function normalizeAssetPath(_0x1ee25d){const _0x51f1eb=_0x27a53e;if(!_0x1ee25d)return _0x1ee25d;if(_0x1ee25d[_0x51f1eb(0x13b)](_0x51f1eb(0x157))||_0x1ee25d[_0x51f1eb(0x13b)](_0x51f1eb(0x14d)))return _0x1ee25d;const _0x32fe05=_0x1ee25d['replace'](/^\.\//,'');return _0x32fe05['startsWith']('/')?_0x32fe05:'/'+_0x32fe05;}var distDir=dirname(fileURLToPath(new URL(_0x27a53e(0x176),import.meta[_0x27a53e(0x12d)])));async function syncAssets(_0x4f1122){const _0x143e07=_0x27a53e,_0x1da9dc=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x4f1122[_0x143e07(0x17c)]?'./'+_0x4f1122[_0x143e07(0x17c)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x5856a2=[];for(const _0x545b2e of _0x1da9dc){const _0x4cc6ce=cleanRelativePath(_0x545b2e[_0x143e07(0x17d)]??_0x545b2e['manifestPath']),_0x2d9a95=_0x4bb59d(distDir,cleanRelativePath(_0x545b2e[_0x143e07(0x167)])),_0xdcc863=_0x4bb59d(_0x4f1122[_0x143e07(0x15d)],_0x4cc6ce),[_0x5b786e,_0x124f69]=await Promise[_0x143e07(0x14c)]([readDigest(_0x2d9a95),readDigest(_0xdcc863)]);if(_0x5b786e&&_0x124f69&&_0x5b786e===_0x124f69){_0x5856a2[_0x143e07(0x12e)]({'sourcePath':_0x2d9a95,'destinationPath':_0xdcc863,'relativeDestination':_0x4cc6ce,'status':_0x143e07(0x155)});continue;}await _0x4086b1[_0x143e07(0x138)](dirname(_0xdcc863),{'recursive':!![]}),await _0x4086b1[_0x143e07(0x17e)](_0x2d9a95,_0xdcc863),_0x5856a2[_0x143e07(0x12e)]({'sourcePath':_0x2d9a95,'destinationPath':_0xdcc863,'relativeDestination':_0x4cc6ce,'status':_0x143e07(0x181)});}return _0x5856a2;}function cleanRelativePath(_0x5db03f){return _0x5db03f['replace'](/^[./]+/,'');}function _0x29f3(_0x29465e,_0x29c63a){const _0x364c87=_0x364c();return _0x29f3=function(_0x29f35d,_0x17e4d6){_0x29f35d=_0x29f35d-0x12d;let _0x330387=_0x364c87[_0x29f35d];return _0x330387;},_0x29f3(_0x29465e,_0x29c63a);}async function readDigest(_0x264044){const _0x51ea11=_0x27a53e;try{const _0x3d035c=await _0x4086b1[_0x51ea11(0x17b)](_0x264044);return createHash(_0x51ea11(0x175))[_0x51ea11(0x14f)](_0x3d035c)[_0x51ea11(0x146)](_0x51ea11(0x15c));}catch(_0x4ddc3c){if(_0x4ddc3c[_0x51ea11(0x13d)]===_0x51ea11(0x174))return null;throw _0x4ddc3c;}}async function main(){const _0x1e7d1d=_0x27a53e,_0x5e8113=await loadEnhanceConfig();if(!_0x5e8113){console[_0x1e7d1d(0x170)](_0x1e7d1d(0x151)+CONFIG_FILENAME+_0x1e7d1d(0x166));return;}const _0x2f39ec=resolve(process[_0x1e7d1d(0x134)](),_0x5e8113[_0x1e7d1d(0x15d)]),_0x1e0539=await syncAssets({'publicDir':_0x2f39ec,'swFilename':_0x5e8113[_0x1e7d1d(0x17c)]});for(const _0x52db00 of _0x1e0539){const _0x30b6d8=relative(process[_0x1e7d1d(0x134)](),_0x52db00[_0x1e7d1d(0x159)]);_0x52db00[_0x1e7d1d(0x165)]===_0x1e7d1d(0x155)?console[_0x1e7d1d(0x170)](_0x1e7d1d(0x133)+_0x52db00['relativeDestination']+_0x1e7d1d(0x13c)+_0x30b6d8+']'):console['info'](_0x1e7d1d(0x177)+_0x52db00[_0x1e7d1d(0x139)]+'\x20→\x20'+_0x30b6d8);}}main()[_0x27a53e(0x14a)](_0x1b46de=>{const _0x51f812=_0x27a53e;console[_0x51f812(0x142)](_0x51f812(0x130)),console['error'](_0x1b46de),process[_0x51f812(0x163)](0x1);});
|