@enhance-eng/sandbox 0.3.20-dev.1818d18 → 0.3.20-dev.97b80d8

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.
@@ -1 +1 @@
1
- const _0x5a90d8=_0x42a9;(function(_0x4af4cd,_0x18ca10){const _0x3b821a=_0x42a9,_0x33b15f=_0x4af4cd();while(!![]){try{const _0x8b34d4=parseInt(_0x3b821a(0x1e3))/0x1*(parseInt(_0x3b821a(0x23c))/0x2)+-parseInt(_0x3b821a(0x205))/0x3*(-parseInt(_0x3b821a(0x1c2))/0x4)+-parseInt(_0x3b821a(0x230))/0x5*(parseInt(_0x3b821a(0x223))/0x6)+-parseInt(_0x3b821a(0x229))/0x7+-parseInt(_0x3b821a(0x16f))/0x8+parseInt(_0x3b821a(0x1b5))/0x9*(-parseInt(_0x3b821a(0x1db))/0xa)+parseInt(_0x3b821a(0x1e5))/0xb;if(_0x8b34d4===_0x18ca10)break;else _0x33b15f['push'](_0x33b15f['shift']());}catch(_0x22fcba){_0x33b15f['push'](_0x33b15f['shift']());}}}(_0x2ef9,0x44024));var DEFAULT_OVERLAY_PATH=!![]?_0x5a90d8(0x1d4):'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=!![]?_0x5a90d8(0x1fe):_0x5a90d8(0x1fe),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x5a90d8(0x212)](_0x5a90d8(0x1f5),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function _0x42a9(_0xedca53,_0x5f2cd5){_0xedca53=_0xedca53-0x16a;const _0x2ef9d3=_0x2ef9();let _0x42a960=_0x2ef9d3[_0xedca53];return _0x42a960;}function normalizeOptions(_0x5e9306){const _0x4b9236=_0x5a90d8,_0x218e6b=_0x5e9306['__development']??{};return{'callbackBypass':_0x5e9306['callbackBypass']??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x218e6b[_0x4b9236(0x1e8)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x4b9236(0x18f),'swPath':_0x4b9236(0x1f3),'overlayPath':_0x218e6b['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x4b9236(0x234),'security':_0x218e6b['security']??_0x4b9236(0x226),'backendUrl':_0x218e6b['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x35ddf4=_0x5a90d8;try{const _0x303037=new URLSearchParams(window[_0x35ddf4(0x1e1)]['search']);return _0x303037[_0x35ddf4(0x23f)](_0x35ddf4(0x1a1))?.[_0x35ddf4(0x1fb)]()||'';}catch{return'';}}var LOG_PREFIX=_0x5a90d8(0x203),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x466ed2){const _0x3a1896=_0x5a90d8;console[_0x3a1896(0x212)](LOG_PREFIX+_0x3a1896(0x1dc)),console[_0x3a1896(0x212)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x466ed2[_0x3a1896(0x22c)]),console[_0x3a1896(0x212)](LOG_PREFIX+_0x3a1896(0x16e)+_0x466ed2[_0x3a1896(0x1a8)]),currentOptions=_0x466ed2[_0x3a1896(0x20f)],toggleHandler=_0x466ed2[_0x3a1896(0x1b4)];if(overlayController){console[_0x3a1896(0x212)](LOG_PREFIX+_0x3a1896(0x243)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x3a1896(0x212)](LOG_PREFIX+_0x3a1896(0x20e)),overlayLoadPromise=doLoadOverlay(_0x466ed2);try{await overlayLoadPromise,console[_0x3a1896(0x212)](LOG_PREFIX+_0x3a1896(0x1df));}catch(_0xd963bc){console[_0x3a1896(0x178)](LOG_PREFIX+_0x3a1896(0x1ca),_0xd963bc);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x25bace){const _0x4d3a93=_0x5a90d8;console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x1c9));if(typeof window===_0x4d3a93(0x17d)){console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x1c5));return;}if(window[_0x4d3a93(0x1d6)]){console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x1ee)),overlayController=window[_0x4d3a93(0x1d6)];return;}console['log'](LOG_PREFIX+_0x4d3a93(0x217));try{_0x25bace['enableViteHmr']&&(console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x195)),await setupRemoteHMR(_0x25bace[_0x4d3a93(0x22c)]));console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x184)+_0x25bace[_0x4d3a93(0x22c)]);const _0x442e58=Date[_0x4d3a93(0x215)](),_0x5b1a51=await import(_0x25bace[_0x4d3a93(0x22c)]);console['log'](LOG_PREFIX+_0x4d3a93(0x1c0)+(Date[_0x4d3a93(0x215)]()-_0x442e58)+'ms'),console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x214),Object[_0x4d3a93(0x188)](_0x5b1a51));if(typeof _0x5b1a51?.[_0x4d3a93(0x22b)]!==_0x4d3a93(0x1b6)){console[_0x4d3a93(0x178)](LOG_PREFIX+_0x4d3a93(0x219)),console['error'](LOG_PREFIX+_0x4d3a93(0x1f1),Object[_0x4d3a93(0x188)](_0x5b1a51));return;}console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x1c1));const _0x1bb360=_0x5b1a51[_0x4d3a93(0x22b)]();console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x187),_0x1bb360),overlayController=_0x1bb360,window['__enhanceOverlay']=_0x1bb360,_0x1bb360[_0x4d3a93(0x1b4)](_0x25bace['onToggle']),console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x16b)),console[_0x4d3a93(0x212)](LOG_PREFIX+_0x4d3a93(0x194)),updateOverlay();}catch(_0x3d1fe3){console[_0x4d3a93(0x178)](LOG_PREFIX+_0x4d3a93(0x1ae),_0x3d1fe3);}}function updateOverlay(){const _0x387089=_0x5a90d8;console[_0x387089(0x212)](LOG_PREFIX+_0x387089(0x22f)),console[_0x387089(0x212)](LOG_PREFIX+_0x387089(0x233)+!!overlayController),console[_0x387089(0x212)](LOG_PREFIX+_0x387089(0x204)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x387089(0x212)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x9b8aad=composeOverlayState(currentOptions);console[_0x387089(0x212)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x387089(0x1b3)](_0x9b8aad,null,0x2)),overlayController[_0x387089(0x1ad)](_0x9b8aad),console[_0x387089(0x212)](LOG_PREFIX+_0x387089(0x19e));}function composeOverlayState(_0xdace80){const _0x329e57=_0x5a90d8,_0x4e5efc=getEnhancementUrl();return console[_0x329e57(0x212)](LOG_PREFIX+_0x329e57(0x1dd)+_0x4e5efc),console['log'](LOG_PREFIX+_0x329e57(0x1ba)+state[_0x329e57(0x228)]),console[_0x329e57(0x212)](LOG_PREFIX+_0x329e57(0x206)+state[_0x329e57(0x1cb)]),{'enhancementUrl':_0x4e5efc,'enabled':state[_0x329e57(0x228)],'controlled':state[_0x329e57(0x1cb)],'overlayPosition':_0xdace80[_0x329e57(0x1ab)][_0x329e57(0x19c)],'securityMode':_0xdace80[_0x329e57(0x1fd)],'backendBaseUrl':_0xdace80[_0x329e57(0x244)],'appError':state['appError']};}async function setupRemoteHMR(_0x28d47b){const _0x2d9fd8=_0x5a90d8;console['log'](LOG_PREFIX+_0x2d9fd8(0x1e0)+_0x28d47b);if(typeof window===_0x2d9fd8(0x17d))return;try{const _0x17da33=new URL(_0x28d47b,window['location'][_0x2d9fd8(0x1ef)]),_0xd2ad9=_0x17da33[_0x2d9fd8(0x1ef)];console[_0x2d9fd8(0x212)](LOG_PREFIX+_0x2d9fd8(0x17e)+_0xd2ad9+_0x2d9fd8(0x1f2)+window['location'][_0x2d9fd8(0x1ef)]);if(_0xd2ad9===window[_0x2d9fd8(0x1e1)]['origin']){console[_0x2d9fd8(0x212)](LOG_PREFIX+_0x2d9fd8(0x19d));return;}console['log'](LOG_PREFIX+_0x2d9fd8(0x22e)),await ensureReactRefreshPreamble(_0xd2ad9),await ensureViteClient(_0xd2ad9),console[_0x2d9fd8(0x212)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x34f16b){console[_0x2d9fd8(0x191)](LOG_PREFIX+_0x2d9fd8(0x240),_0x34f16b);}}function _0x2ef9(){const _0x5b8021=['\x20Overlay\x20update\x20complete','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','startsWith','enhancementUrl','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','enable','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Registering\x20SW\x20at\x20','explicitDisable','false','enableViteHmr','querySelector','sw-enhance','overlay','enhance:disable','update','\x20Failed\x20to\x20import/create\x20overlay:','replaceState','searchParams','0.0.0','\x20with\x20scope\x20\x27/\x27...','stringify','onToggle','10071pZiHJR','function','\x20registerServiceWorker()\x20complete','\x20Failed\x20to\x20register\x20service\x20worker:','./dev/cli.js','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Sending\x20customer\x20configuration...','dev/','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','runtimeURL',',\x20owns=','\x20Module\x20imported\x20in\x20','\x20Calling\x20createOverlay()...','6412cvYPAu','\x20Controller\x20state:','object','\x20No\x20window\x20object\x20-\x20skipping','\x20Starting\x20overlay\x20load\x20(async)...','bun\x20version\x20patch\x20--no-git-tag-version','/@react-refresh','\x20doLoadOverlay()\x20starting...','\x20loadOverlay()\x20failed:','controlled','...','\x20resolveWorker:','\x20First\x20initialization','scope','./dev/index.js','state:\x20','^3.22.4','add','https://assets.enhancelabs.ai/overlay.js','appError','__enhanceOverlay','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Raw\x20options:','__enhanceController','3830qWLnUk','\x20loadOverlay()\x20called','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20enhancementId:\x20','\x20loadOverlay()\x20complete','\x20setupRemoteHMR()\x20for\x20','location','\x20React\x20Refresh\x20already\x20installed\x20for\x20','2473gFSnWC','version','11526163TvNVwt','default','vite:error','enableOverlayHmr','state','enhance:configure','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','register','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','origin','\x20sendConfiguration()\x20called','\x20Available\x20exports:',',\x20page\x20origin:\x20','/sw-enhance.js','\x20Failed\x20to\x20unregister\x20service\x20worker:','[Enhance\x20Config]\x20Build-time\x20defaults:','[Enhance\x20Runtime]','\x20Enhancement\x20mode\x20ENABLED','\x20detectBlocking\x20error:','tsc\x20--noEmit','\x20enhancementUrl:\x20','trim','\x20Vite\x20error\x20detected:','security','https://api.enhancelabs.ai','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','waiting','replace',',\x20expected=','[Enhance\x20Overlay]','\x20currentOptions\x20exists:\x20','327pssMzs','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Invalid\x20React\x20Refresh\x20runtime','serviceWorker','./dev/vite/index.d.ts','enhancementId','./dev/index.d.ts','__enhanceOptions','\x20URL\x20params\x20parsed:','\x20Starting\x20fresh\x20overlay\x20load...','options','__enhanceReactRefreshInstalledOrigins','^8.5.1','log','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Module\x20exports:','now','\x20No\x20current\x20controller','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Module\x20missing\x20createOverlay\x20export!','^4.1.1',',\x20currentOptions:\x20','^11.1.0','\x20Unregistering\x20any\x20existing\x20SW...','__enhanceInitialized','\x20Unregistering\x20SW...','toString','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','7482xrqjmK','\x20Updating\x20overlay...','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','permissive','^7.2.4','enabled','3216423gtrPPt','\x20BLOCKING\x20SW\x20detected:\x20','createOverlay','overlayPath','swPath','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20updateOverlay()\x20called','415jxCQlw','https://','$RefreshReg$','\x20overlayController\x20exists:\x20','/assets/enhance-runtime.js','vite:beforeUpdate','off','history','none','\x20SW\x20ready!\x20Active:','message','\x20No\x20blocking\x20SW\x20found','182RxXRMU','getRegistration','\x20Current\x20URL:\x20','get','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','/@vite/client','\x20Starting\x20SW\x20registration\x20(async)...','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','backendUrl','serviceWorkerURL','@enhance-eng/sandbox','postMessage','\x20Overlay\x20controller\x20initialized\x20and\x20cached','init','title','\x20enableViteHmr:\x20','1419776gyxLpo','MIT','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20init()\x20called\x20at\x20','\x20init()\x20complete\x20-\x20enhancement\x20mode','enhance','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','active','controller','error','__vite_plugin_react_preamble_installed__','\x20registerServiceWorker()\x20called','string','scriptURL','undefined','\x20Overlay\x20origin:\x20','injectIntoGlobalHook','\x20Found\x20registration:','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','installing','\x20Importing\x20overlay\x20module\x20from:\x20','\x20state.enabled:\x20','unregister','\x20Controller\x20created:','keys','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','reload','has','disable','\x20Normalized\x20options:','public','info','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','warn','module','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Calling\x20updateOverlay()...','\x20Setting\x20up\x20remote\x20HMR...','\x20Current\x20controller\x20after\x20ready:','toLowerCase','href','__viteHMRLoaded','includes','[data-enhance-runtime-bootstrap]','position','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup'];_0x2ef9=function(){return _0x5b8021;};return _0x2ef9();}async function ensureReactRefreshPreamble(_0x53e6a3){const _0x8a3e9d=_0x5a90d8;window[_0x8a3e9d(0x210)]??(window[_0x8a3e9d(0x210)]=new Set());if(window[_0x8a3e9d(0x210)][_0x8a3e9d(0x18b)](_0x53e6a3)){console[_0x8a3e9d(0x212)](LOG_PREFIX+_0x8a3e9d(0x1e2)+_0x53e6a3);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x53e6a3+_0x8a3e9d(0x1cc));const _0x20c2de=await import(_0x53e6a3+_0x8a3e9d(0x1c8)),_0x352dcb=_0x20c2de&&typeof _0x20c2de===_0x8a3e9d(0x1c4)&&_0x8a3e9d(0x1e6)in _0x20c2de?_0x20c2de[_0x8a3e9d(0x1e6)]:_0x20c2de;if(!isRefreshRuntime(_0x352dcb)){console['warn'](LOG_PREFIX+_0x8a3e9d(0x207));return;}_0x352dcb[_0x8a3e9d(0x17f)](window),window[_0x8a3e9d(0x232)]=()=>{},window['$RefreshSig$']=()=>_0x1bedcd=>_0x1bedcd,window[_0x8a3e9d(0x179)]=!![],window[_0x8a3e9d(0x210)][_0x8a3e9d(0x1d3)](_0x53e6a3),console[_0x8a3e9d(0x212)](LOG_PREFIX+_0x8a3e9d(0x1a2)+_0x53e6a3);}async function ensureViteClient(_0x170348){const _0x40b467=_0x5a90d8;window[_0x40b467(0x199)]??(window['__viteHMRLoaded']=new Set());if(window[_0x40b467(0x199)][_0x40b467(0x18b)](_0x170348)){console['log'](LOG_PREFIX+_0x40b467(0x213)+_0x170348);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x170348+_0x40b467(0x1cc)),await import(_0x170348+_0x40b467(0x241)),window[_0x40b467(0x199)]['add'](_0x170348),console[_0x40b467(0x212)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x170348);}function isRefreshRuntime(_0x231478){const _0x533a5b=_0x5a90d8;return typeof _0x231478===_0x533a5b(0x1c4)&&_0x231478!==null&&_0x533a5b(0x17f)in _0x231478&&typeof _0x231478['injectIntoGlobalHook']===_0x533a5b(0x1b6);}var WORKER_MESSAGE_CONFIG=_0x5a90d8(0x1ea),WORKER_MESSAGE_DISABLE=_0x5a90d8(0x1ac),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x1e6005){const _0x426cdf=_0x5a90d8;console['log'](LOG_PREFIX2+_0x426cdf(0x17a)),console[_0x426cdf(0x212)](LOG_PREFIX2+'\x20swPath:\x20'+_0x1e6005[_0x426cdf(0x22d)]);if(!(_0x426cdf(0x208)in navigator)){console[_0x426cdf(0x191)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x426cdf(0x212)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x5d2f22=navigator[_0x426cdf(0x208)][_0x426cdf(0x177)];console[_0x426cdf(0x212)](LOG_PREFIX2+'\x20Current\x20controller:',_0x5d2f22?.[_0x426cdf(0x17c)]??_0x426cdf(0x238)),console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x1c3),_0x5d2f22?.[_0x426cdf(0x1e9)]??'N/A');const _0x42b306=!!_0x5d2f22;currentOptions2=_0x1e6005,console[_0x426cdf(0x212)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x597a1d=await detectBlockingServiceWorker(_0x1e6005[_0x426cdf(0x22d)]);if(_0x597a1d){console[_0x426cdf(0x178)](LOG_PREFIX2+_0x426cdf(0x22a)+_0x597a1d),console[_0x426cdf(0x178)](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x23b));try{console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x1a5)+_0x1e6005[_0x426cdf(0x22d)]+_0x426cdf(0x1b2)),registration=await navigator['serviceWorker'][_0x426cdf(0x1ec)](_0x1e6005[_0x426cdf(0x22d)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x426cdf(0x1cf)],'active':registration[_0x426cdf(0x176)]?.[_0x426cdf(0x17c)],'waiting':registration[_0x426cdf(0x200)]?.[_0x426cdf(0x17c)],'installing':registration['installing']?.[_0x426cdf(0x17c)]}),console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x221));const _0x367077=await navigator['serviceWorker']['ready'];console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x239),_0x367077['active']?.[_0x426cdf(0x17c)]);const _0x355182=ownsCurrentController(_0x1e6005[_0x426cdf(0x22d)]);state['controlled']=_0x355182,console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x181)+_0x355182),console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x196),navigator[_0x426cdf(0x208)][_0x426cdf(0x177)]?.[_0x426cdf(0x17c)]??'none');if(!_0x42b306&&!navigator['serviceWorker']['controller']){console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x175)),window['location'][_0x426cdf(0x18a)]();return;}console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x1bb)),await sendConfiguration();if(state[_0x426cdf(0x228)]){const _0x23cbcf=document[_0x426cdf(0x1a9)](_0x426cdf(0x19b))!==null;console['log'](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x23cbcf);if(!_0x23cbcf){console[_0x426cdf(0x212)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x426cdf(0x1e1)][_0x426cdf(0x18a)]();return;}}console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x224)),updateOverlay(),console[_0x426cdf(0x212)](LOG_PREFIX2+_0x426cdf(0x1b7));}catch(_0x3193eb){console[_0x426cdf(0x178)](LOG_PREFIX2+_0x426cdf(0x1b8),_0x3193eb);}}async function sendConfiguration(){const _0x5db4f1=_0x5a90d8;console[_0x5db4f1(0x212)](LOG_PREFIX2+_0x5db4f1(0x1f0)),console[_0x5db4f1(0x212)](LOG_PREFIX2+_0x5db4f1(0x185)+state[_0x5db4f1(0x228)]+_0x5db4f1(0x21b)+!!currentOptions2);if(!state[_0x5db4f1(0x228)]||!currentOptions2){console[_0x5db4f1(0x212)](LOG_PREFIX2+_0x5db4f1(0x1a4));return;}const _0x225044=await resolveWorker();if(!_0x225044){console[_0x5db4f1(0x191)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4c29cf={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x5db4f1(0x1fd)]};console[_0x5db4f1(0x212)](LOG_PREFIX2+_0x5db4f1(0x193),JSON[_0x5db4f1(0x1b3)](_0x4c29cf,null,0x2)),_0x225044['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x4c29cf}),console['log'](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x362afb){const _0x2b83d9=_0x5a90d8;console['log'](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x2b83d9(0x208)in navigator)){console[_0x2b83d9(0x212)](LOG_PREFIX2+_0x2b83d9(0x171));return;}try{const _0x2683e1=registration??await navigator[_0x2b83d9(0x208)]['getRegistration']('/');if(!_0x2683e1){console[_0x2b83d9(0x212)](LOG_PREFIX2+_0x2b83d9(0x1d8));return;}console[_0x2b83d9(0x212)](LOG_PREFIX2+_0x2b83d9(0x180),{'scope':_0x2683e1[_0x2b83d9(0x1cf)],'active':_0x2683e1[_0x2b83d9(0x176)]?.[_0x2b83d9(0x17c)],'waiting':_0x2683e1['waiting']?.[_0x2b83d9(0x17c)],'installing':_0x2683e1[_0x2b83d9(0x183)]?.['scriptURL']});const _0x42e046=[_0x2683e1[_0x2b83d9(0x176)]?.[_0x2b83d9(0x17c)],_0x2683e1[_0x2b83d9(0x200)]?.[_0x2b83d9(0x17c)],_0x2683e1['installing']?.['scriptURL']],_0x3d8bec=_0x42e046['some'](_0x2183ef=>_0x2183ef&&ownsServiceWorker(_0x2183ef,_0x362afb));if(!_0x3d8bec){console['log'](LOG_PREFIX2+_0x2b83d9(0x222));return;}_0x2683e1[_0x2b83d9(0x176)]&&(console[_0x2b83d9(0x212)](LOG_PREFIX2+_0x2b83d9(0x189)),_0x2683e1['active'][_0x2b83d9(0x16a)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x2b83d9(0x212)](LOG_PREFIX2+_0x2b83d9(0x21f)),await _0x2683e1[_0x2b83d9(0x186)](),registration=null,currentOptions2=null,console[_0x2b83d9(0x212)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0xba90ea){console[_0x2b83d9(0x178)](LOG_PREFIX2+_0x2b83d9(0x1f4),_0xba90ea);}}function ownsServiceWorker(_0x23f1e8,_0x58b882){const _0x51369c=_0x5a90d8,_0x3ac37b=typeof window!==_0x51369c(0x17d)?window[_0x51369c(0x1e1)]['origin']:'',_0x293dfe=new URL(_0x58b882,_0x3ac37b||void 0x0)[_0x51369c(0x198)],_0x368056=_0x23f1e8===_0x293dfe||_0x23f1e8[_0x51369c(0x19a)](_0x51369c(0x1aa));return console[_0x51369c(0x212)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x23f1e8+_0x51369c(0x202)+_0x293dfe+_0x51369c(0x1bf)+_0x368056),_0x368056;}function ownsCurrentController(_0x5c8438){const _0x473dc8=_0x5a90d8;if(typeof navigator===_0x473dc8(0x17d))return![];const _0x254c02=navigator[_0x473dc8(0x208)]?.[_0x473dc8(0x177)];if(!_0x254c02)return console[_0x473dc8(0x212)](LOG_PREFIX2+_0x473dc8(0x216)),![];return ownsServiceWorker(_0x254c02[_0x473dc8(0x17c)],_0x5c8438);}async function detectBlockingServiceWorker(_0x4198c3){const _0x2ed264=_0x5a90d8;if(!navigator['serviceWorker'])return null;try{const _0x3d1563=await navigator[_0x2ed264(0x208)][_0x2ed264(0x23d)]('/');console[_0x2ed264(0x212)](LOG_PREFIX2+_0x2ed264(0x218),_0x3d1563?.['active']?.[_0x2ed264(0x17c)]??'none');const _0x31c4d8=_0x3d1563?.['active']?.[_0x2ed264(0x17c)];if(!_0x31c4d8)return null;if(ownsServiceWorker(_0x31c4d8,_0x4198c3))return null;return _0x31c4d8;}catch(_0x361ba5){return console[_0x2ed264(0x178)](LOG_PREFIX2+_0x2ed264(0x1f8),_0x361ba5),null;}}async function resolveWorker(){const _0xe72a0=_0x5a90d8,_0x491127=registration??await navigator[_0xe72a0(0x208)]?.['getRegistration']('/'),_0x56da92=_0x491127?.[_0xe72a0(0x176)]??_0x491127?.[_0xe72a0(0x200)]??_0x491127?.['installing']??null;return console[_0xe72a0(0x212)](LOG_PREFIX2+_0xe72a0(0x1cd),_0x56da92?.[_0xe72a0(0x17c)]??'none',_0xe72a0(0x1d1)+(_0x56da92?.['state']??'N/A')),_0x56da92;}var LOG_PREFIX3=_0x5a90d8(0x1f6);function isInitialized(){const _0x1857b4=_0x5a90d8;return typeof window!==_0x1857b4(0x17d)&&window[_0x1857b4(0x21e)]===!![];}function setInitialized(_0x4d7371){const _0x2b4014=_0x5a90d8;typeof window!==_0x2b4014(0x17d)&&(window[_0x2b4014(0x21e)]=_0x4d7371);}function getOptions(){const _0x2d978e=_0x5a90d8;return typeof window!=='undefined'?window[_0x2d978e(0x20c)]??null:null;}function setOptions(_0x2d8342){const _0x2355b0=_0x5a90d8;typeof window!==_0x2355b0(0x17d)&&(window[_0x2355b0(0x20c)]=_0x2d8342);}var Enhance={'init'(_0x3b4107={}){const _0x30f91e=_0x5a90d8,_0x434f35=Date[_0x30f91e(0x215)]();console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x172)+_0x434f35),console['log'](LOG_PREFIX3+_0x30f91e(0x23e)+window['location']['href']),console[_0x30f91e(0x212)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document['readyState']),console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x1d9),JSON[_0x30f91e(0x1b3)](_0x3b4107,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x30f91e(0x225)),window['__enhanceController']??createController();setInitialized(!![]),console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x1ce));const _0x5caa5b=normalizeOptions(_0x3b4107);setOptions(_0x5caa5b),console['log'](LOG_PREFIX3+_0x30f91e(0x18d),JSON[_0x30f91e(0x1b3)](_0x5caa5b,null,0x2));const _0x4a1620=parseUrlParams();console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x20d),JSON['stringify'](_0x4a1620,null,0x2));if(_0x4a1620[_0x30f91e(0x1a6)])return cleanUrlParam(_0x30f91e(0x174)),console[_0x30f91e(0x212)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x4a1620['hasEnhancement'])return console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x1f7)),console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x1fa)+_0x4a1620[_0x30f91e(0x1a1)]),console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x1de)+_0x4a1620[_0x30f91e(0x20a)]),state[_0x30f91e(0x228)]=!![],console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x1c6)),void loadOverlay({'overlayPath':_0x5caa5b[_0x30f91e(0x22c)],'enableViteHmr':_0x5caa5b[_0x30f91e(0x1ab)][_0x30f91e(0x1a8)],'options':_0x5caa5b,'onToggle':handleToggle}),console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x242)),void registerServiceWorker(_0x5caa5b),console['log'](LOG_PREFIX3+_0x30f91e(0x173)),createController();return console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x1eb)),console[_0x30f91e(0x212)](LOG_PREFIX3+_0x30f91e(0x21d)),void unregisterServiceWorker(_0x5caa5b[_0x30f91e(0x22d)]),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x30f91e(0x212)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0x30f91e(0x1e7),_0x357e76=>{const _0x5a38d6=_0x30f91e;console['log'](LOG_PREFIX3+_0x5a38d6(0x1fc),_0x357e76),state[_0x5a38d6(0x1d5)]={'message':_0x357e76['err'][_0x5a38d6(0x23a)]},updateOverlay();}),import.meta.hot['on'](_0x30f91e(0x235),()=>{const _0x5c6b0f=_0x30f91e;state[_0x5c6b0f(0x1d5)]&&(console[_0x5c6b0f(0x212)](LOG_PREFIX3+_0x5c6b0f(0x1ff)),state[_0x5c6b0f(0x1d5)]=null,updateOverlay());})),createController();}};function createController(){const _0x471cdf=_0x5a90d8,_0x18289c={'enable'(){const _0x3f0e30=_0x42a9,_0xd7be1b=getOptions();if(!_0xd7be1b)return;state[_0x3f0e30(0x228)]=!![],void loadOverlay({'overlayPath':_0xd7be1b[_0x3f0e30(0x22c)],'enableViteHmr':_0xd7be1b['overlay'][_0x3f0e30(0x1a8)],'options':_0xd7be1b,'onToggle':handleToggle}),void registerServiceWorker(_0xd7be1b),void sendConfiguration(),updateOverlay();},'disable'(){const _0x33655d=_0x42a9,_0x13e8ec=getOptions();if(!_0x13e8ec)return;state[_0x33655d(0x228)]=![],state[_0x33655d(0x1cb)]=![],updateOverlay(),void unregisterServiceWorker(_0x13e8ec['swPath']);},'status'(){const _0x458645=_0x42a9;return{'enabled':state['enabled'],'controlled':state[_0x458645(0x1cb)]};}};return typeof window!=='undefined'&&(window[_0x471cdf(0x1da)]=_0x18289c),_0x18289c;}function handleToggle(){const _0x1f6576=_0x5a90d8,_0x256b06=createController();state['enabled']?_0x256b06[_0x1f6576(0x18c)]():_0x256b06[_0x1f6576(0x1a3)]();}function parseUrlParams(){const _0x4a693b=_0x5a90d8,_0x260925=new URL(window[_0x4a693b(0x1e1)][_0x4a693b(0x198)]),_0xaec275=_0x260925[_0x4a693b(0x1b0)][_0x4a693b(0x23f)]('enhance')?.[_0x4a693b(0x197)](),_0x5cba72=_0x260925['searchParams'][_0x4a693b(0x23f)]('enhancementUrl'),_0x4aa349=_0x260925[_0x4a693b(0x1b0)]['get']('enhancement');return{'hasEnhancement':Boolean(_0x5cba72||_0x4aa349),'explicitDisable':_0xaec275==='0'||_0xaec275===_0x4a693b(0x1a7)||_0xaec275===_0x4a693b(0x236),'enhancementUrl':_0x5cba72,'enhancementId':_0x4aa349};}function cleanUrlParam(_0x15193b){const _0x427935=_0x5a90d8,_0x39db4b=new URL(window[_0x427935(0x1e1)][_0x427935(0x198)]);_0x39db4b[_0x427935(0x1b0)][_0x427935(0x18b)](_0x15193b)&&(_0x39db4b[_0x427935(0x1b0)]['delete'](_0x15193b),window[_0x427935(0x237)][_0x427935(0x1af)](null,document[_0x427935(0x16d)],_0x39db4b[_0x427935(0x220)]()));}var package_default={'name':_0x5a90d8(0x246),'version':'0.3.20','type':_0x5a90d8(0x192),'description':_0x5a90d8(0x182),'license':_0x5a90d8(0x170),'main':'./dev/index.js','module':'./dev/index.js','types':_0x5a90d8(0x20b),'exports':{'.':{'types':_0x5a90d8(0x20b),'import':_0x5a90d8(0x1d0)},'./vite':{'types':_0x5a90d8(0x209),'import':'./dev/vite/index.js'}},'files':[_0x5a90d8(0x1bc)],'bin':{'enhance-sandbox':_0x5a90d8(0x1b9)},'scripts':{'typecheck':_0x5a90d8(0x1f9),'dev':_0x5a90d8(0x1d7),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x5a90d8(0x1bd),'dev:staging:build':_0x5a90d8(0x1ed),'build':_0x5a90d8(0x19f),'build:release':_0x5a90d8(0x190),'version':_0x5a90d8(0x1c7)},'dependencies':{'commander':_0x5a90d8(0x21c),'zod':_0x5a90d8(0x1d2)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x5a90d8(0x21a),'tsup':_0x5a90d8(0x211),'vite':_0x5a90d8(0x227)},'publishConfig':{'access':_0x5a90d8(0x18e)}},DEFAULT_SERVICE_WORKER_PATH=_0x5a90d8(0x1f3),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x5a90d8(0x1e4)]===_0x5a90d8(0x17b)?package_default[_0x5a90d8(0x1e4)]:_0x5a90d8(0x1b1);function normalizeAssetPath(_0x79e9c1){const _0x2d214c=_0x5a90d8;if(!_0x79e9c1)return _0x79e9c1;if(_0x79e9c1[_0x2d214c(0x1a0)]('http://')||_0x79e9c1['startsWith'](_0x2d214c(0x231)))return _0x79e9c1;const _0x45c60d=_0x79e9c1[_0x2d214c(0x201)](/^\.\//,'');return _0x45c60d['startsWith']('/')?_0x45c60d:'/'+_0x45c60d;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x6724ab){const _0x1447b8=_0x5a90d8;return Enhance[_0x1447b8(0x16c)](_0x6724ab);},'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 _0x5e79fd=_0x5a90d8;return Enhance2[_0x5e79fd(0x245)]();}function runtimeURL(){const _0x2276b0=_0x5a90d8;return Enhance2[_0x2276b0(0x1be)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x53bd1b=_0x17bf;(function(_0x3615,_0x5be152){const _0x36d800=_0x17bf,_0x371fe0=_0x3615();while(!![]){try{const _0x3acd04=parseInt(_0x36d800(0x111))/0x1*(parseInt(_0x36d800(0xa9))/0x2)+-parseInt(_0x36d800(0xb3))/0x3*(parseInt(_0x36d800(0xa4))/0x4)+-parseInt(_0x36d800(0x8d))/0x5+parseInt(_0x36d800(0x6f))/0x6*(-parseInt(_0x36d800(0xb2))/0x7)+parseInt(_0x36d800(0xfd))/0x8+-parseInt(_0x36d800(0xea))/0x9*(parseInt(_0x36d800(0x11f))/0xa)+parseInt(_0x36d800(0x76))/0xb;if(_0x3acd04===_0x5be152)break;else _0x371fe0['push'](_0x371fe0['shift']());}catch(_0x571b6f){_0x371fe0['push'](_0x371fe0['shift']());}}}(_0x426c,0x21a1e));var DEFAULT_OVERLAY_PATH=!![]?'https://assets-dev.enhancelabs.ai/overlay.js':_0x53bd1b(0x102),DEFAULT_BACKEND_URL=!![]?'https://enhance-api-dev.enhancelabs.workers.dev':'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x53bd1b(0xc9)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x469306){const _0x4e7d30=_0x53bd1b,_0x774262=_0x469306[_0x4e7d30(0xad)]??{};return{'callbackBypass':_0x469306[_0x4e7d30(0x83)]??[],'overlay':{'enabled':!![],'position':_0x4e7d30(0xce),'enableViteHmr':_0x774262[_0x4e7d30(0xcc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x4e7d30(0xbe),'swPath':_0x4e7d30(0x66),'overlayPath':_0x774262['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x4e7d30(0x6a),'security':_0x774262[_0x4e7d30(0x97)]??'permissive','backendUrl':_0x774262[_0x4e7d30(0xf9)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x57e7af=_0x53bd1b;try{const _0x4313d7=new URLSearchParams(window[_0x57e7af(0xa3)][_0x57e7af(0xae)]);return _0x4313d7[_0x57e7af(0xb0)](_0x57e7af(0x110))?.[_0x57e7af(0x125)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x2c03ff){const _0x4ea805=_0x53bd1b;console[_0x4ea805(0xc9)](LOG_PREFIX+_0x4ea805(0x7e)),console['log'](LOG_PREFIX+_0x4ea805(0x9c)+_0x2c03ff[_0x4ea805(0xee)]),console['log'](LOG_PREFIX+_0x4ea805(0xe4)+_0x2c03ff[_0x4ea805(0x94)]),currentOptions=_0x2c03ff[_0x4ea805(0xdc)],toggleHandler=_0x2c03ff[_0x4ea805(0xfc)];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4ea805(0xc9)](LOG_PREFIX+_0x4ea805(0x13a)),overlayLoadPromise;console[_0x4ea805(0xc9)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x2c03ff);try{await overlayLoadPromise,console[_0x4ea805(0xc9)](LOG_PREFIX+_0x4ea805(0xbf));}catch(_0xfdf814){console['error'](LOG_PREFIX+_0x4ea805(0x117),_0xfdf814);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x3e7315){const _0x2bc1c5=_0x53bd1b;console['log'](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x2bc1c5(0x132)){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x2bc1c5(0xfe)]){console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0x93)),overlayController=window[_0x2bc1c5(0xfe)];return;}console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0x119));try{_0x3e7315['enableViteHmr']&&(console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0xc2)),await setupRemoteHMR(_0x3e7315[_0x2bc1c5(0xee)]));console[_0x2bc1c5(0xc9)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x3e7315['overlayPath']);const _0x25b1d9=Date[_0x2bc1c5(0xab)](),_0x4042ad=await import(_0x3e7315[_0x2bc1c5(0xee)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date['now']()-_0x25b1d9)+'ms'),console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0xaa),Object[_0x2bc1c5(0x12d)](_0x4042ad));if(typeof _0x4042ad?.[_0x2bc1c5(0x80)]!==_0x2bc1c5(0x10c)){console[_0x2bc1c5(0x70)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x2bc1c5(0x70)](LOG_PREFIX+_0x2bc1c5(0x86),Object[_0x2bc1c5(0x12d)](_0x4042ad));return;}console[_0x2bc1c5(0xc9)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x2532c2=_0x4042ad[_0x2bc1c5(0x80)]();console['log'](LOG_PREFIX+_0x2bc1c5(0xf3),_0x2532c2),overlayController=_0x2532c2,window[_0x2bc1c5(0xfe)]=_0x2532c2,_0x2532c2[_0x2bc1c5(0xfc)](_0x3e7315[_0x2bc1c5(0xfc)]),console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0xbc)),console[_0x2bc1c5(0xc9)](LOG_PREFIX+_0x2bc1c5(0x131)),updateOverlay();}catch(_0x220719){console['error'](LOG_PREFIX+_0x2bc1c5(0xa2),_0x220719);}}function updateOverlay(){const _0x155f99=_0x53bd1b;console[_0x155f99(0xc9)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x155f99(0xc9)](LOG_PREFIX+_0x155f99(0xac)+!!overlayController),console['log'](LOG_PREFIX+_0x155f99(0x98)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x155f99(0x75));return;}const _0x4a9a73=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x155f99(0xcb),JSON[_0x155f99(0x136)](_0x4a9a73,null,0x2)),overlayController[_0x155f99(0xca)](_0x4a9a73),console['log'](LOG_PREFIX+_0x155f99(0x11b));}function composeOverlayState(_0x13ec9f){const _0x4338b0=_0x53bd1b,_0x5ef2aa=getEnhancementUrl();return console[_0x4338b0(0xc9)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementUrl:\x20'+_0x5ef2aa),console['log'](LOG_PREFIX+_0x4338b0(0xe8)+state['enabled']),console[_0x4338b0(0xc9)](LOG_PREFIX+_0x4338b0(0x81)+state['controlled']),{'enhancementUrl':_0x5ef2aa,'enabled':state['enabled'],'controlled':state['controlled'],'overlayPosition':_0x13ec9f['overlay'][_0x4338b0(0x77)],'securityMode':_0x13ec9f[_0x4338b0(0x97)],'backendBaseUrl':_0x13ec9f[_0x4338b0(0xf9)],'appError':state['appError']};}async function setupRemoteHMR(_0x5df988){const _0x335055=_0x53bd1b;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x5df988);if(typeof window===_0x335055(0x132))return;try{const _0x32f1f0=new URL(_0x5df988,window[_0x335055(0xa3)]['origin']),_0x2053cf=_0x32f1f0[_0x335055(0x12b)];console['log'](LOG_PREFIX+_0x335055(0x88)+_0x2053cf+_0x335055(0x8e)+window[_0x335055(0xa3)][_0x335055(0x12b)]);if(_0x2053cf===window[_0x335055(0xa3)][_0x335055(0x12b)]){console[_0x335055(0xc9)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x335055(0xc9)](LOG_PREFIX+_0x335055(0x10a)),await ensureReactRefreshPreamble(_0x2053cf),await ensureViteClient(_0x2053cf),console[_0x335055(0xc9)](LOG_PREFIX+_0x335055(0xe9));}catch(_0x1b56cf){console[_0x335055(0x8a)](LOG_PREFIX+_0x335055(0xbd),_0x1b56cf);}}async function ensureReactRefreshPreamble(_0x5b0e55){const _0x155185=_0x53bd1b;window['__enhanceReactRefreshInstalledOrigins']??(window[_0x155185(0xd3)]=new Set());if(window[_0x155185(0xd3)][_0x155185(0xd0)](_0x5b0e55)){console[_0x155185(0xc9)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x5b0e55);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x5b0e55+_0x155185(0xda));const _0x128292=await import(_0x5b0e55+_0x155185(0x120)),_0x2fa1c0=_0x128292&&typeof _0x128292==='object'&&_0x155185(0x126)in _0x128292?_0x128292['default']:_0x128292;if(!isRefreshRuntime(_0x2fa1c0)){console[_0x155185(0x8a)](LOG_PREFIX+_0x155185(0x87));return;}_0x2fa1c0['injectIntoGlobalHook'](window),window[_0x155185(0x103)]=()=>{},window[_0x155185(0x104)]=()=>_0x487677=>_0x487677,window[_0x155185(0xf5)]=!![],window[_0x155185(0xd3)][_0x155185(0xdb)](_0x5b0e55),console[_0x155185(0xc9)](LOG_PREFIX+_0x155185(0x9a)+_0x5b0e55);}async function ensureViteClient(_0x42d66a){const _0x132351=_0x53bd1b;window[_0x132351(0x10b)]??(window[_0x132351(0x10b)]=new Set());if(window[_0x132351(0x10b)][_0x132351(0xd0)](_0x42d66a)){console[_0x132351(0xc9)](LOG_PREFIX+_0x132351(0xba)+_0x42d66a);return;}console['log'](LOG_PREFIX+_0x132351(0x133)+_0x42d66a+_0x132351(0xda)),await import(_0x42d66a+_0x132351(0x129)),window[_0x132351(0x10b)][_0x132351(0xdb)](_0x42d66a),console[_0x132351(0xc9)](LOG_PREFIX+_0x132351(0xb8)+_0x42d66a);}function isRefreshRuntime(_0x1b52a8){const _0x38d91a=_0x53bd1b;return typeof _0x1b52a8===_0x38d91a(0xd6)&&_0x1b52a8!==null&&_0x38d91a(0x6d)in _0x1b52a8&&typeof _0x1b52a8[_0x38d91a(0x6d)]===_0x38d91a(0x10c);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x53bd1b(0xf0),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x40fd82){const _0x57368f=_0x53bd1b;console[_0x57368f(0xc9)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+'\x20swPath:\x20'+_0x40fd82[_0x57368f(0x7f)]);if(!(_0x57368f(0x128)in navigator)){console[_0x57368f(0x8a)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console['log'](LOG_PREFIX2+_0x57368f(0xed));const _0x1649d9=navigator[_0x57368f(0x128)][_0x57368f(0x95)];console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xbb),_0x1649d9?.[_0x57368f(0xb1)]??_0x57368f(0x84)),console[_0x57368f(0xc9)](LOG_PREFIX2+'\x20Controller\x20state:',_0x1649d9?.[_0x57368f(0x118)]??_0x57368f(0x112));const _0x35df7d=!!_0x1649d9;currentOptions2=_0x40fd82,console[_0x57368f(0xc9)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x106f70=await detectBlockingServiceWorker(_0x40fd82[_0x57368f(0x7f)]);if(_0x106f70){console['error'](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x106f70),console[_0x57368f(0x70)](LOG_PREFIX2+_0x57368f(0xc4));return;}console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xf8));try{console['log'](LOG_PREFIX2+_0x57368f(0x115)+_0x40fd82['swPath']+_0x57368f(0xc8)),registration=await navigator[_0x57368f(0x128)][_0x57368f(0x12a)](_0x40fd82[_0x57368f(0x7f)],{'scope':'/'}),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0x139),{'scope':registration[_0x57368f(0x137)],'active':registration[_0x57368f(0xff)]?.['scriptURL'],'waiting':registration[_0x57368f(0xe3)]?.[_0x57368f(0xb1)],'installing':registration[_0x57368f(0xb6)]?.['scriptURL']}),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xf7));const _0x890f21=await navigator['serviceWorker'][_0x57368f(0x127)];console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0x8b),_0x890f21['active']?.['scriptURL']);const _0x3bc36a=ownsCurrentController(_0x40fd82[_0x57368f(0x7f)]);state[_0x57368f(0x96)]=_0x3bc36a,console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xb4)+_0x3bc36a),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0x11d),navigator[_0x57368f(0x128)][_0x57368f(0x95)]?.['scriptURL']??_0x57368f(0x84));if(!_0x35df7d&&!navigator[_0x57368f(0x128)]['controller']){console['log'](LOG_PREFIX2+_0x57368f(0x101)),window['location'][_0x57368f(0x106)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x57368f(0x7d)]){const _0xc16d3c=document[_0x57368f(0xf2)](_0x57368f(0x82))!==null;console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xb7)+_0xc16d3c);if(!_0xc16d3c){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x57368f(0xa3)][_0x57368f(0x106)]();return;}}console['log'](LOG_PREFIX2+_0x57368f(0xe1)),updateOverlay(),console[_0x57368f(0xc9)](LOG_PREFIX2+_0x57368f(0xd7));}catch(_0x53a4e8){console[_0x57368f(0x70)](LOG_PREFIX2+_0x57368f(0xc7),_0x53a4e8);}}async function sendConfiguration(){const _0x15e74d=_0x53bd1b;console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0xdd)),console[_0x15e74d(0xc9)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x15e74d(0x7d)]+_0x15e74d(0x72)+!!currentOptions2);if(!state[_0x15e74d(0x7d)]||!currentOptions2){console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0xfa));return;}const _0x1304bd=await resolveWorker();if(!_0x1304bd){console['warn'](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4c5bc3={'callbackBypass':currentOptions2[_0x15e74d(0x83)],'securityMode':currentOptions2[_0x15e74d(0x97)]};console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0xef),JSON[_0x15e74d(0x136)](_0x4c5bc3,null,0x2)),_0x1304bd[_0x15e74d(0xc0)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4c5bc3}),console[_0x15e74d(0xc9)](LOG_PREFIX2+_0x15e74d(0x68));}async function unregisterServiceWorker(_0x8f28e6){const _0x19e690=_0x53bd1b;console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x19e690(0x128)in navigator)){console[_0x19e690(0xc9)](LOG_PREFIX2+_0x19e690(0x7b));return;}try{const _0x38a14f=registration??await navigator['serviceWorker']['getRegistration']('/');if(!_0x38a14f){console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x19e690(0xc9)](LOG_PREFIX2+_0x19e690(0x10f),{'scope':_0x38a14f['scope'],'active':_0x38a14f[_0x19e690(0xff)]?.[_0x19e690(0xb1)],'waiting':_0x38a14f[_0x19e690(0xe3)]?.['scriptURL'],'installing':_0x38a14f[_0x19e690(0xb6)]?.[_0x19e690(0xb1)]});const _0x5d591a=[_0x38a14f['active']?.[_0x19e690(0xb1)],_0x38a14f['waiting']?.[_0x19e690(0xb1)],_0x38a14f[_0x19e690(0xb6)]?.[_0x19e690(0xb1)]],_0x58d9a3=_0x5d591a[_0x19e690(0x6e)](_0x439180=>_0x439180&&ownsServiceWorker(_0x439180,_0x8f28e6));if(!_0x58d9a3){console[_0x19e690(0xc9)](LOG_PREFIX2+_0x19e690(0xde));return;}_0x38a14f[_0x19e690(0xff)]&&(console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x38a14f[_0x19e690(0xff)][_0x19e690(0xc0)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x19e690(0x11e)),await _0x38a14f[_0x19e690(0xe6)](),registration=null,currentOptions2=null,console[_0x19e690(0xc9)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x1407ac){console['error'](LOG_PREFIX2+_0x19e690(0x114),_0x1407ac);}}function ownsServiceWorker(_0x5676a4,_0x3fe998){const _0x44b6fc=_0x53bd1b,_0x56631e=typeof window!=='undefined'?window[_0x44b6fc(0xa3)][_0x44b6fc(0x12b)]:'',_0xd53524=new URL(_0x3fe998,_0x56631e||void 0x0)['href'],_0xde1c72=_0x5676a4===_0xd53524||_0x5676a4[_0x44b6fc(0x130)]('sw-enhance');return console[_0x44b6fc(0xc9)](LOG_PREFIX2+_0x44b6fc(0xcf)+_0x5676a4+_0x44b6fc(0xe2)+_0xd53524+_0x44b6fc(0x121)+_0xde1c72),_0xde1c72;}function ownsCurrentController(_0x4ba773){const _0x187f1e=_0x53bd1b;if(typeof navigator===_0x187f1e(0x132))return![];const _0x1f4925=navigator[_0x187f1e(0x128)]?.[_0x187f1e(0x95)];if(!_0x1f4925)return console[_0x187f1e(0xc9)](LOG_PREFIX2+_0x187f1e(0x100)),![];return ownsServiceWorker(_0x1f4925[_0x187f1e(0xb1)],_0x4ba773);}async function detectBlockingServiceWorker(_0x304748){const _0x9580da=_0x53bd1b;if(!navigator[_0x9580da(0x128)])return null;try{const _0x1eec05=await navigator[_0x9580da(0x128)]['getRegistration']('/');console[_0x9580da(0xc9)](LOG_PREFIX2+_0x9580da(0xd1),_0x1eec05?.['active']?.[_0x9580da(0xb1)]??'none');const _0x301ede=_0x1eec05?.[_0x9580da(0xff)]?.[_0x9580da(0xb1)];if(!_0x301ede)return null;if(ownsServiceWorker(_0x301ede,_0x304748))return null;return _0x301ede;}catch(_0x353cc6){return console[_0x9580da(0x70)](LOG_PREFIX2+_0x9580da(0xe5),_0x353cc6),null;}}async function resolveWorker(){const _0x450af6=_0x53bd1b,_0x4a1f9f=registration??await navigator[_0x450af6(0x128)]?.[_0x450af6(0x122)]('/'),_0x38ed79=_0x4a1f9f?.[_0x450af6(0xff)]??_0x4a1f9f?.['waiting']??_0x4a1f9f?.[_0x450af6(0xb6)]??null;return console[_0x450af6(0xc9)](LOG_PREFIX2+_0x450af6(0x134),_0x38ed79?.[_0x450af6(0xb1)]??_0x450af6(0x84),_0x450af6(0x116)+(_0x38ed79?.[_0x450af6(0x118)]??_0x450af6(0x112))),_0x38ed79;}var LOG_PREFIX3=_0x53bd1b(0xa6);function _0x17bf(_0x34661d,_0x11bec8){_0x34661d=_0x34661d-0x66;const _0x426c0d=_0x426c();let _0x17bf39=_0x426c0d[_0x34661d];return _0x17bf39;}function isInitialized(){const _0xbad604=_0x53bd1b;return typeof window!==_0xbad604(0x132)&&window[_0xbad604(0xa0)]===!![];}function setInitialized(_0x16b8cd){const _0x3a5dd2=_0x53bd1b;typeof window!=='undefined'&&(window[_0x3a5dd2(0xa0)]=_0x16b8cd);}function getOptions(){const _0x2c5a9f=_0x53bd1b;return typeof window!==_0x2c5a9f(0x132)?window['__enhanceOptions']??null:null;}function setOptions(_0x23a499){const _0xb853a2=_0x53bd1b;typeof window!==_0xb853a2(0x132)&&(window[_0xb853a2(0x9d)]=_0x23a499);}var Enhance={'init'(_0x3bf89b={}){const _0x1308e8=_0x53bd1b,_0x36705a=Date['now']();console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x12e)+_0x36705a),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xc6)+window[_0x1308e8(0xa3)][_0x1308e8(0xb5)]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x8c)+document[_0x1308e8(0xa1)]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xdf),JSON[_0x1308e8(0x136)](_0x3bf89b,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x1308e8(0x11a)),window[_0x1308e8(0x11c)]??createController();setInitialized(!![]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xf6));const _0x3da11a=normalizeOptions(_0x3bf89b);setOptions(_0x3da11a),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xd8),JSON[_0x1308e8(0x136)](_0x3da11a,null,0x2));const _0x52298c=parseUrlParams();console[_0x1308e8(0xc9)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x1308e8(0x136)](_0x52298c,null,0x2));if(_0x52298c['explicitDisable'])return cleanUrlParam(_0x1308e8(0x12f)),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x67)),createController();if(_0x52298c[_0x1308e8(0x135)])return console['log'](LOG_PREFIX3+_0x1308e8(0xe7)),console['log'](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x52298c['enhancementUrl']),console[_0x1308e8(0xc9)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x52298c[_0x1308e8(0xeb)]),state[_0x1308e8(0x7d)]=!![],console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x105)),void loadOverlay({'overlayPath':_0x3da11a[_0x1308e8(0xee)],'enableViteHmr':_0x3da11a['overlay'][_0x1308e8(0x94)],'options':_0x3da11a,'onToggle':handleToggle}),console[_0x1308e8(0xc9)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x3da11a),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x10e)),createController();return console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x6b)),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x124)),void unregisterServiceWorker(_0x3da11a[_0x1308e8(0x7f)]),console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0xd2)),import.meta.hot&&(console[_0x1308e8(0xc9)](LOG_PREFIX3+_0x1308e8(0x108)),import.meta.hot['on'](_0x1308e8(0xcd),_0x20f5e3=>{const _0x5e1040=_0x1308e8;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x20f5e3),state[_0x5e1040(0x91)]={'message':_0x20f5e3[_0x5e1040(0xc3)][_0x5e1040(0xd4)]},updateOverlay();}),import.meta.hot['on'](_0x1308e8(0x99),()=>{const _0x1f6f9e=_0x1308e8;state[_0x1f6f9e(0x91)]&&(console[_0x1f6f9e(0xc9)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x1f6f9e(0x91)]=null,updateOverlay());})),createController();}};function createController(){const _0x397c12={'enable'(){const _0x24f744=_0x17bf,_0x5c8b96=getOptions();if(!_0x5c8b96)return;state[_0x24f744(0x7d)]=!![],void loadOverlay({'overlayPath':_0x5c8b96[_0x24f744(0xee)],'enableViteHmr':_0x5c8b96[_0x24f744(0x123)]['enableViteHmr'],'options':_0x5c8b96,'onToggle':handleToggle}),void registerServiceWorker(_0x5c8b96),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2996a6=_0x17bf,_0xec0bf=getOptions();if(!_0xec0bf)return;state[_0x2996a6(0x7d)]=![],state[_0x2996a6(0x96)]=![],updateOverlay(),void unregisterServiceWorker(_0xec0bf['swPath']);},'status'(){const _0x166a69=_0x17bf;return{'enabled':state[_0x166a69(0x7d)],'controlled':state[_0x166a69(0x96)]};}};return typeof window!=='undefined'&&(window['__enhanceController']=_0x397c12),_0x397c12;}function handleToggle(){const _0x23800d=_0x53bd1b,_0xd8f3b2=createController();state[_0x23800d(0x7d)]?_0xd8f3b2['disable']():_0xd8f3b2['enable']();}function parseUrlParams(){const _0x1cd01f=_0x53bd1b,_0x4967ec=new URL(window['location'][_0x1cd01f(0xb5)]),_0x3bd9f0=_0x4967ec[_0x1cd01f(0xd5)]['get'](_0x1cd01f(0x12f))?.[_0x1cd01f(0x9e)](),_0x44c2c8=_0x4967ec[_0x1cd01f(0xd5)][_0x1cd01f(0xb0)]('enhancementUrl'),_0x2882b1=_0x4967ec[_0x1cd01f(0xd5)][_0x1cd01f(0xb0)](_0x1cd01f(0x71));return{'hasEnhancement':Boolean(_0x44c2c8||_0x2882b1),'explicitDisable':_0x3bd9f0==='0'||_0x3bd9f0===_0x1cd01f(0xf4)||_0x3bd9f0===_0x1cd01f(0x85),'enhancementUrl':_0x44c2c8,'enhancementId':_0x2882b1};}function _0x426c(){const _0x314ac5=['$RefreshSig$','\x20Starting\x20overlay\x20load\x20(async)...','reload','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','__viteHMRLoaded','function','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Found\x20registration:','enhancementUrl','1GHlyup','N/A','runtimeURL','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Registering\x20SW\x20at\x20','state:\x20','\x20loadOverlay()\x20failed:','state','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Overlay\x20update\x20complete','__enhanceController','\x20Current\x20controller\x20after\x20ready:','\x20Unregistering\x20SW...','10WSicaf','/@react-refresh',',\x20owns=','getRegistration','overlay','\x20Unregistering\x20any\x20existing\x20SW...','trim','default','ready','serviceWorker','/@vite/client','register','origin','./dev/vite/index.d.ts','keys','\x20init()\x20called\x20at\x20','enhance','includes','\x20Calling\x20updateOverlay()...','undefined','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20resolveWorker:','hasEnhancement','stringify','scope','^11.1.0','\x20Registration\x20returned:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','/sw-enhance.js','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Config\x20sent\x20to\x20SW','version','/assets/enhance-runtime.js','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','^7.2.4','injectIntoGlobalHook','some','1110JfCKMJ','error','enhancement',',\x20currentOptions:\x20','module','tsc\x20--noEmit','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','6512880NxbHXV','position','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev/','0.0.0','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','0.3.20','enabled','\x20loadOverlay()\x20called','swPath','createOverlay','\x20composeOverlayState\x20-\x20state.controlled:\x20','[data-enhance-runtime-bootstrap]','callbackBypass','none','off','\x20Available\x20exports:','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Overlay\x20origin:\x20','toString','warn','\x20SW\x20ready!\x20Active:','\x20Document\x20readyState:\x20','899365gupKmS',',\x20page\x20origin:\x20','startsWith','MIT','appError','./dev/index.js','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','enableViteHmr','controller','controlled','security','\x20currentOptions\x20exists:\x20','vite:beforeUpdate','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','./dev/vite/index.js','\x20overlayPath:\x20','__enhanceOptions','toLowerCase','bun\x20version\x20patch\x20--no-git-tag-version','__enhanceInitialized','readyState','\x20Failed\x20to\x20import/create\x20overlay:','location','22884mvZikp','title','[Enhance\x20Runtime]','^3.22.4','^24.10.1','12962VfUAAR','\x20Module\x20exports:','now','\x20overlayController\x20exists:\x20','__development','search','history','get','scriptURL','8841tyBZIi','3KpMNNL','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','href','installing','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Current\x20controller:','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','info','\x20loadOverlay()\x20complete','postMessage','./dev/index.d.ts','\x20Setting\x20up\x20remote\x20HMR...','err','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','serviceWorkerURL','\x20Current\x20URL:\x20','\x20Failed\x20to\x20register\x20service\x20worker:','\x20with\x20scope\x20\x27/\x27...','log','update','\x20Updating\x20overlay\x20with\x20state:','enableOverlayHmr','vite:error','bottom-right','\x20ownsServiceWorker?\x20scriptURL=','has','\x20detectBlocking\x20-\x20existing\x20registration:','\x20init()\x20complete\x20-\x20normal\x20mode','__enhanceReactRefreshInstalledOrigins','message','searchParams','object','\x20registerServiceWorker()\x20complete','\x20Normalized\x20options:','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','...','add','options','\x20sendConfiguration()\x20called','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Raw\x20options:','replaceState','\x20Updating\x20overlay...',',\x20expected=','waiting','\x20enableViteHmr:\x20','\x20detectBlocking\x20error:','unregister','\x20Enhancement\x20mode\x20ENABLED','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20HMR\x20setup\x20complete','2422638WYVPvI','enhancementId','./dev/cli.js','\x20Service\x20workers\x20supported','overlayPath','\x20Sending\x20customer\x20config\x20to\x20SW:','enhance:disable','string','querySelector','\x20Controller\x20created:','false','__vite_plugin_react_preamble_installed__','\x20First\x20initialization','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20No\x20blocking\x20SW\x20found','backendUrl','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','init','onToggle','1821024ghjiVr','__enhanceOverlay','active','\x20No\x20current\x20controller','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','https://assets.enhancelabs.ai/overlay.js','$RefreshReg$'];_0x426c=function(){return _0x314ac5;};return _0x426c();}function cleanUrlParam(_0x8c39e){const _0x1dbacf=_0x53bd1b,_0x2ad2d8=new URL(window[_0x1dbacf(0xa3)][_0x1dbacf(0xb5)]);_0x2ad2d8['searchParams']['has'](_0x8c39e)&&(_0x2ad2d8[_0x1dbacf(0xd5)]['delete'](_0x8c39e),window[_0x1dbacf(0xaf)][_0x1dbacf(0xe0)](null,document[_0x1dbacf(0xa5)],_0x2ad2d8[_0x1dbacf(0x89)]()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x53bd1b(0x7c),'type':_0x53bd1b(0x73),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x53bd1b(0x90),'main':_0x53bd1b(0x92),'module':_0x53bd1b(0x92),'types':_0x53bd1b(0xc1),'exports':{'.':{'types':_0x53bd1b(0xc1),'import':'./dev/index.js'},'./vite':{'types':_0x53bd1b(0x12c),'import':_0x53bd1b(0x9b)}},'files':[_0x53bd1b(0x79)],'bin':{'enhance-sandbox':_0x53bd1b(0xec)},'scripts':{'typecheck':_0x53bd1b(0x74),'dev':_0x53bd1b(0x107),'dev:build':_0x53bd1b(0x78),'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':_0x53bd1b(0x10d),'build':_0x53bd1b(0x109),'build:release':_0x53bd1b(0xb9),'build:release:dev':_0x53bd1b(0xd9),'version':_0x53bd1b(0x9f)},'dependencies':{'commander':_0x53bd1b(0x138),'zod':_0x53bd1b(0xa7)},'devDependencies':{'@types/node':_0x53bd1b(0xa8),'javascript-obfuscator':'^4.1.1','tsup':'^8.5.1','vite':_0x53bd1b(0x6c)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x53bd1b(0x6a),PACKAGE_VERSION=typeof package_default[_0x53bd1b(0x69)]===_0x53bd1b(0xf1)?package_default[_0x53bd1b(0x69)]:_0x53bd1b(0x7a);function normalizeAssetPath(_0x1a9cb3){const _0x1cb12f=_0x53bd1b;if(!_0x1a9cb3)return _0x1a9cb3;if(_0x1a9cb3[_0x1cb12f(0x8f)]('http://')||_0x1a9cb3[_0x1cb12f(0x8f)]('https://'))return _0x1a9cb3;const _0x283272=_0x1a9cb3['replace'](/^\.\//,'');return _0x283272[_0x1cb12f(0x8f)]('/')?_0x283272:'/'+_0x283272;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4ec605={}){const _0x3c6b27=_0x53bd1b;return Enhance[_0x3c6b27(0xfb)](_0x4ec605);},'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 _0x1cbd28=_0x53bd1b;return Enhance2[_0x1cbd28(0xc5)]();}function runtimeURL(){const _0x71aee3=_0x53bd1b;return Enhance2[_0x71aee3(0x113)]();}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 _0x3fa552=_0x5b05;(function(_0x5e04b2,_0x19ef83){const _0x4ca521=_0x5b05,_0x59d0e5=_0x5e04b2();while(!![]){try{const _0x393235=parseInt(_0x4ca521(0x110))/0x1*(-parseInt(_0x4ca521(0x172))/0x2)+-parseInt(_0x4ca521(0xaf))/0x3+-parseInt(_0x4ca521(0x138))/0x4*(parseInt(_0x4ca521(0x158))/0x5)+parseInt(_0x4ca521(0xc2))/0x6+-parseInt(_0x4ca521(0x153))/0x7+-parseInt(_0x4ca521(0x186))/0x8+parseInt(_0x4ca521(0xd0))/0x9*(parseInt(_0x4ca521(0x114))/0xa);if(_0x393235===_0x19ef83)break;else _0x59d0e5['push'](_0x59d0e5['shift']());}catch(_0x2827da){_0x59d0e5['push'](_0x59d0e5['shift']());}}}(_0x4474,0x34cbd));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x3fa552(0xe5)?__ENHANCE_DEFAULT_OVERLAY_PATH__:'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x3fa552(0xe5)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x3fa552(0xe7),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x3fa552(0xe5)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x3fa552(0x14d)](_0x3fa552(0x116),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x453d83){const _0xa17804=_0x3fa552,_0x5eda14=_0x453d83['__development']??{};return{'callbackBypass':_0x453d83[_0xa17804(0xe1)]??[],'overlay':{'enabled':!![],'position':_0xa17804(0xfd),'enableViteHmr':_0x5eda14[_0xa17804(0x1a2)]??DEFAULT_OVERLAY_HMR},'logLevel':_0xa17804(0x13d),'swPath':'/sw-enhance.js','overlayPath':_0x5eda14[_0xa17804(0x144)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0xa17804(0xf4),'security':_0x5eda14[_0xa17804(0x14f)]??_0xa17804(0xca),'backendUrl':_0x5eda14[_0xa17804(0xcb)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x36fffd=_0x3fa552;try{const _0x3295e3=new URLSearchParams(window[_0x36fffd(0xed)][_0x36fffd(0x19f)]);return _0x3295e3[_0x36fffd(0x14e)](_0x36fffd(0xbf))?.[_0x36fffd(0x146)]()||'';}catch{return'';}}var LOG_PREFIX=_0x3fa552(0xda),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x23776b){const _0x4fd4c0=_0x3fa552;console[_0x4fd4c0(0x14d)](LOG_PREFIX+_0x4fd4c0(0x1a0)),console[_0x4fd4c0(0x14d)](LOG_PREFIX+_0x4fd4c0(0x1a5)+_0x23776b[_0x4fd4c0(0x144)]),console[_0x4fd4c0(0x14d)](LOG_PREFIX+_0x4fd4c0(0xd4)+_0x23776b[_0x4fd4c0(0x132)]),currentOptions=_0x23776b['options'],toggleHandler=_0x23776b[_0x4fd4c0(0x143)];if(overlayController){console[_0x4fd4c0(0x14d)](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4fd4c0(0x14d)](LOG_PREFIX+_0x4fd4c0(0xe4)),overlayLoadPromise;console[_0x4fd4c0(0x14d)](LOG_PREFIX+_0x4fd4c0(0xc3)),overlayLoadPromise=doLoadOverlay(_0x23776b);try{await overlayLoadPromise,console[_0x4fd4c0(0x14d)](LOG_PREFIX+_0x4fd4c0(0xae));}catch(_0x364b1f){console[_0x4fd4c0(0x19c)](LOG_PREFIX+_0x4fd4c0(0xdb),_0x364b1f);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x3c43e0){const _0x72b9df=_0x3fa552;console[_0x72b9df(0x14d)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x72b9df(0xe5)){console['log'](LOG_PREFIX+_0x72b9df(0x12b));return;}if(window[_0x72b9df(0x128)]){console[_0x72b9df(0x14d)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window['__enhanceOverlay'];return;}console['log'](LOG_PREFIX+_0x72b9df(0x134));try{_0x3c43e0['enableViteHmr']&&(console['log'](LOG_PREFIX+_0x72b9df(0x167)),await setupRemoteHMR(_0x3c43e0[_0x72b9df(0x144)]));console[_0x72b9df(0x14d)](LOG_PREFIX+_0x72b9df(0x17a)+_0x3c43e0['overlayPath']);const _0x516e55=Date[_0x72b9df(0x18f)](),_0x2ab99a=await import(_0x3c43e0[_0x72b9df(0x144)]);console['log'](LOG_PREFIX+_0x72b9df(0x130)+(Date[_0x72b9df(0x18f)]()-_0x516e55)+'ms'),console['log'](LOG_PREFIX+_0x72b9df(0x19b),Object[_0x72b9df(0xd7)](_0x2ab99a));if(typeof _0x2ab99a?.[_0x72b9df(0x189)]!==_0x72b9df(0xe6)){console['error'](LOG_PREFIX+_0x72b9df(0x156)),console[_0x72b9df(0x19c)](LOG_PREFIX+_0x72b9df(0xdc),Object[_0x72b9df(0xd7)](_0x2ab99a));return;}console[_0x72b9df(0x14d)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x48eed5=_0x2ab99a[_0x72b9df(0x189)]();console[_0x72b9df(0x14d)](LOG_PREFIX+_0x72b9df(0x14a),_0x48eed5),overlayController=_0x48eed5,window[_0x72b9df(0x128)]=_0x48eed5,_0x48eed5['onToggle'](_0x3c43e0[_0x72b9df(0x143)]),console[_0x72b9df(0x14d)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0x72b9df(0x15c)),updateOverlay();}catch(_0x31a758){console[_0x72b9df(0x19c)](LOG_PREFIX+_0x72b9df(0x11f),_0x31a758);}}function updateOverlay(){const _0xd34d6d=_0x3fa552;console['log'](LOG_PREFIX+_0xd34d6d(0xee)),console['log'](LOG_PREFIX+_0xd34d6d(0xcc)+!!overlayController),console[_0xd34d6d(0x14d)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0xd34d6d(0x192));return;}const _0x43142b=composeOverlayState(currentOptions);console[_0xd34d6d(0x14d)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0xd34d6d(0x171)](_0x43142b,null,0x2)),overlayController[_0xd34d6d(0xab)](_0x43142b),console['log'](LOG_PREFIX+_0xd34d6d(0xba));}function _0x4474(){const _0x5cd91a=['\x20Current\x20controller:','explicitDisable','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Enhancement\x20detection:\x20wasEnhanced=','permissive','backendUrl','\x20overlayController\x20exists:\x20','/@react-refresh','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','Print\x20the\x20current\x20asset\x20manifest','9JaFbbN','\x20enhancementUrl:\x20','\x20Failed\x20to\x20register\x20service\x20worker:','all','\x20enableViteHmr:\x20','publicDir','\x20Registration\x20returned:','keys','origin','\x20Vite\x20client\x20already\x20loaded\x20for\x20','[Enhance\x20Overlay]','\x20loadOverlay()\x20failed:','\x20Available\x20exports:','has','sourcePath','/sw-enhance.js','\x20state.enabled:\x20','callbackBypass','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20setupRemoteHMR()\x20for\x20','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','undefined','function','https://api.enhancelabs.ai','overlay','\x20detectBlocking\x20-\x20existing\x20registration:','option','\x20Current\x20controller\x20after\x20ready:','\x20Vite\x20error\x20detected:','location','\x20updateOverlay()\x20called','parseAsync','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','\x20swPath:\x20','\x20Checking\x20for\x20blocking\x20service\x20worker...','^7.2.4','/assets/enhance-runtime.js','\x20No\x20blocking\x20SW\x20found','\x20composeOverlayState\x20-\x20state.controlled:\x20','module','active','base64','./dev/index.d.ts','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Service\x20workers\x20supported','bottom-right','disable','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','ready','\x20Document\x20readyState:\x20','\x20Raw\x20options:','warn','\x20Updating\x20overlay...','toString','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','enhancement','\x20enhancementId:\x20','state:\x20','filename','push','\x20sendConfiguration()\x20called','href','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','sw-enhance','419258BtGotQ','hasEnhancement','0.0.0','relativeDestination','17631610rldfeq','appError','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','^3.22.4','\x20Overlay\x20origin:\x20','code','add','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','override','\x20Unregistering\x20SW...','\x20Failed\x20to\x20import/create\x20overlay:',',\x20expected=','runtimeURL','enabled','vite:beforeUpdate','unregister','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','readyState','installing','__enhanceOverlay','assets/enhance-runtime.js','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20No\x20window\x20object\x20-\x20skipping','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20No\x20current\x20controller','history','--public-dir\x20<path>','\x20Module\x20imported\x20in\x20','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','enableViteHmr',',\x20owns=','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Failed\x20to\x20unregister\x20service\x20worker:','https://','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','8HwOKwJ','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','command','replace','enhance:disable','info','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','message','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','N/A','destinationPath','onToggle','overlayPath','searchParams','trim','scope','Enhance\x20sandbox\x20utility\x20CLI','enable','\x20Controller\x20created:','action','\x20SW\x20unregistered\x20successfully','log','get','security','sw-enhance.js','\x20composeOverlayState\x20-\x20state.enabled:\x20','serviceWorker','2519293CLgPfv','scriptURL','\x20Controller\x20state:','\x20Module\x20missing\x20createOverlay\x20export!','controller','960065XBSlZK','skipped','default','\x20Normalized\x20options:','\x20Calling\x20updateOverlay()...','\x20URL\x20params\x20parsed:','./dev/index.js','\x20Enhancement\x20mode\x20ENABLED','enhance:configure','enhance','false','Copied\x20','\x20init()\x20called\x20at\x20','__viteHMRLoaded','version','\x20Setting\x20up\x20remote\x20HMR...','sha256','\x20Config\x20sent\x20to\x20SW','\x20Sending\x20customer\x20configuration...','\x20Unregistering\x20any\x20existing\x20SW...','delete','ENOENT','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','stdout','getRegistration','stringify','2MzQqsg','\x20ownsServiceWorker?\x20scriptURL=','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20BLOCKING\x20SW\x20detected:\x20','__enhanceOptions','\x20(already\x20current)\x20[',',\x20currentOptions:\x20',',\x20page\x20origin:\x20','\x20Importing\x20overlay\x20module\x20from:\x20','$RefreshSig$','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','cwd','__enhanceController','./dev/cli.js','__enhanceReactRefreshInstalledOrigins','^8.5.1','mkdir','swPath','/@vite/client','includes','2991408QUyNOa','controlled','Skipped\x20','createOverlay','description','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','MIT','enhancementId','--filename\x20<name>','now','\x20SW\x20ready!\x20Active:','...','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','startsWith','__enhanceInitialized','../dist/index.js','\x20detectBlocking\x20error:','@enhance-eng/sandbox','waiting','$RefreshReg$','\x20Module\x20exports:','error','string','\x20HMR\x20setup\x20complete','search','\x20loadOverlay()\x20called','\x20→\x20','enableOverlayHmr','state','\x20Starting\x20SW\x20registration\x20(async)...','\x20overlayPath:\x20','reload','./dev/vite/index.d.ts','off','injectIntoGlobalHook','\x20unregisterServiceWorker()\x20called','init','update','^4.1.1','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20loadOverlay()\x20complete','335763TFDXno','\x20Starting\x20overlay\x20load\x20(async)...','none','some','manifestPath','tsc\x20--noEmit','postMessage','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','./dev/vite/index.js','\x20First\x20initialization','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Overlay\x20update\x20complete','\x20React\x20Refresh\x20already\x20installed\x20for\x20','digest','object','serviceWorkerURL','enhancementUrl','dev/','swFilename','612732xEoRdR','\x20Starting\x20fresh\x20overlay\x20load...','\x20registerServiceWorker()\x20called','enhance-sandbox'];_0x4474=function(){return _0x5cd91a;};return _0x4474();}function composeOverlayState(_0x2c9088){const _0x1adbf8=_0x3fa552,_0x1d4f24=getEnhancementUrl();return console[_0x1adbf8(0x14d)](LOG_PREFIX+_0x1adbf8(0xc8)+_0x1d4f24),console[_0x1adbf8(0x14d)](LOG_PREFIX+_0x1adbf8(0x151)+state[_0x1adbf8(0x122)]),console[_0x1adbf8(0x14d)](LOG_PREFIX+_0x1adbf8(0xf6)+state['controlled']),{'enhancementUrl':_0x1d4f24,'enabled':state[_0x1adbf8(0x122)],'controlled':state['controlled'],'overlayPosition':_0x2c9088[_0x1adbf8(0xe8)]['position'],'securityMode':_0x2c9088['security'],'backendBaseUrl':_0x2c9088['backendUrl'],'appError':state[_0x1adbf8(0x115)]};}async function setupRemoteHMR(_0x5b126a){const _0x25441e=_0x3fa552;console[_0x25441e(0x14d)](LOG_PREFIX+_0x25441e(0xe3)+_0x5b126a);if(typeof window===_0x25441e(0xe5))return;try{const _0x28dee6=new URL(_0x5b126a,window['location'][_0x25441e(0xd8)]),_0x3c00bf=_0x28dee6[_0x25441e(0xd8)];console[_0x25441e(0x14d)](LOG_PREFIX+_0x25441e(0x119)+_0x3c00bf+_0x25441e(0x179)+window[_0x25441e(0xed)]['origin']);if(_0x3c00bf===window['location'][_0x25441e(0xd8)]){console[_0x25441e(0x14d)](LOG_PREFIX+_0x25441e(0x139));return;}console[_0x25441e(0x14d)](LOG_PREFIX+_0x25441e(0x106)),await ensureReactRefreshPreamble(_0x3c00bf),await ensureViteClient(_0x3c00bf),console['log'](LOG_PREFIX+_0x25441e(0x19e));}catch(_0x444f07){console['warn'](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x444f07);}}async function ensureReactRefreshPreamble(_0x1746cf){const _0x5019e0=_0x3fa552;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x5019e0(0x180)][_0x5019e0(0xdd)](_0x1746cf)){console['log'](LOG_PREFIX+_0x5019e0(0xbb)+_0x1746cf);return;}console['log'](LOG_PREFIX+_0x5019e0(0x125)+_0x1746cf+_0x5019e0(0x191));const _0x24d616=await import(_0x1746cf+_0x5019e0(0xcd)),_0x114992=_0x24d616&&typeof _0x24d616===_0x5019e0(0xbd)&&_0x5019e0(0x15a)in _0x24d616?_0x24d616[_0x5019e0(0x15a)]:_0x24d616;if(!isRefreshRuntime(_0x114992)){console[_0x5019e0(0x103)](LOG_PREFIX+_0x5019e0(0xb9));return;}_0x114992[_0x5019e0(0xa8)](window),window[_0x5019e0(0x19a)]=()=>{},window[_0x5019e0(0x17b)]=()=>_0x1c6e50=>_0x1c6e50,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x5019e0(0x180)]['add'](_0x1746cf),console[_0x5019e0(0x14d)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x1746cf);}async function ensureViteClient(_0x1eb29e){const _0x4f107d=_0x3fa552;window[_0x4f107d(0x165)]??=new Set();if(window[_0x4f107d(0x165)][_0x4f107d(0xdd)](_0x1eb29e)){console[_0x4f107d(0x14d)](LOG_PREFIX+_0x4f107d(0xd9)+_0x1eb29e);return;}console['log'](LOG_PREFIX+_0x4f107d(0xb6)+_0x1eb29e+'...'),await import(_0x1eb29e+_0x4f107d(0x184)),window[_0x4f107d(0x165)][_0x4f107d(0x11b)](_0x1eb29e),console[_0x4f107d(0x14d)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x1eb29e);}function isRefreshRuntime(_0x76ec61){const _0x4486a3=_0x3fa552;return typeof _0x76ec61===_0x4486a3(0xbd)&&_0x76ec61!==null&&_0x4486a3(0xa8)in _0x76ec61&&typeof _0x76ec61[_0x4486a3(0xa8)]===_0x4486a3(0xe6);}var WORKER_MESSAGE_CONFIG=_0x3fa552(0x160),WORKER_MESSAGE_DISABLE=_0x3fa552(0x13c),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x21a7ba){const _0x50906a=_0x3fa552;console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0xc4)),console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0xf1)+_0x21a7ba['swPath']);if(!(_0x50906a(0x152)in navigator)){console[_0x50906a(0x103)](LOG_PREFIX2+_0x50906a(0x174));return;}console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0xfc));const _0xf1d182=navigator[_0x50906a(0x152)][_0x50906a(0x157)];console['log'](LOG_PREFIX2+_0x50906a(0xc6),_0xf1d182?.[_0x50906a(0x154)]??_0x50906a(0xb1)),console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0x155),_0xf1d182?.['state']??_0x50906a(0x141));const _0x1fd3dc=!!_0xf1d182;currentOptions2=_0x21a7ba,console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0xf2));const _0x33694d=await detectBlockingServiceWorker(_0x21a7ba[_0x50906a(0x183)]);if(_0x33694d){console[_0x50906a(0x19c)](LOG_PREFIX2+_0x50906a(0x175)+_0x33694d),console['error'](LOG_PREFIX2+_0x50906a(0xff));return;}console['log'](LOG_PREFIX2+_0x50906a(0xf5));try{console[_0x50906a(0x14d)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x21a7ba[_0x50906a(0x183)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x50906a(0x152)]['register'](_0x21a7ba[_0x50906a(0x183)],{'scope':'/'}),console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0xd6),{'scope':registration['scope'],'active':registration['active']?.[_0x50906a(0x154)],'waiting':registration[_0x50906a(0x199)]?.[_0x50906a(0x154)],'installing':registration[_0x50906a(0x127)]?.[_0x50906a(0x154)]}),console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0x10e));const _0x348ee5=await navigator[_0x50906a(0x152)][_0x50906a(0x100)];console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0x190),_0x348ee5[_0x50906a(0xf8)]?.[_0x50906a(0x154)]);const _0x2fd240=ownsCurrentController(_0x21a7ba[_0x50906a(0x183)]);state[_0x50906a(0x187)]=_0x2fd240,console['log'](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x2fd240),console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0xeb),navigator[_0x50906a(0x152)][_0x50906a(0x157)]?.['scriptURL']??_0x50906a(0xb1));if(!_0x1fd3dc&&!navigator['serviceWorker'][_0x50906a(0x157)]){console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0x11c)),window[_0x50906a(0xed)][_0x50906a(0x1a6)]();return;}console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0x16a)),await sendConfiguration();if(state['enabled']){const _0x3d2600=document['querySelector']('[data-enhance-runtime-bootstrap]')!==null;console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0xc9)+_0x3d2600);if(!_0x3d2600){console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0x12c)),window[_0x50906a(0xed)][_0x50906a(0x1a6)]();return;}}console[_0x50906a(0x14d)](LOG_PREFIX2+_0x50906a(0x104)),updateOverlay(),console[_0x50906a(0x14d)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x1f0c85){console[_0x50906a(0x19c)](LOG_PREFIX2+_0x50906a(0xd2),_0x1f0c85);}}async function sendConfiguration(){const _0x4ef410=_0x3fa552;console['log'](LOG_PREFIX2+_0x4ef410(0x10c)),console[_0x4ef410(0x14d)](LOG_PREFIX2+_0x4ef410(0xe0)+state[_0x4ef410(0x122)]+_0x4ef410(0x178)+!!currentOptions2);if(!state[_0x4ef410(0x122)]||!currentOptions2){console[_0x4ef410(0x14d)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x2cc1c0=await resolveWorker();if(!_0x2cc1c0){console[_0x4ef410(0x103)](LOG_PREFIX2+_0x4ef410(0xfb));return;}const _0x3f397f={'callbackBypass':currentOptions2[_0x4ef410(0xe1)],'securityMode':currentOptions2[_0x4ef410(0x14f)]};console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON['stringify'](_0x3f397f,null,0x2)),_0x2cc1c0[_0x4ef410(0xb5)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x3f397f}),console[_0x4ef410(0x14d)](LOG_PREFIX2+_0x4ef410(0x169));}async function unregisterServiceWorker(_0x1f057f){const _0x3ba9db=_0x3fa552;console[_0x3ba9db(0x14d)](LOG_PREFIX2+_0x3ba9db(0xa9));if(!('serviceWorker'in navigator)){console['log'](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x4e18a6=registration??await navigator[_0x3ba9db(0x152)][_0x3ba9db(0x170)]('/');if(!_0x4e18a6){console[_0x3ba9db(0x14d)](LOG_PREFIX2+_0x3ba9db(0x131));return;}console[_0x3ba9db(0x14d)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x4e18a6[_0x3ba9db(0x147)],'active':_0x4e18a6[_0x3ba9db(0xf8)]?.[_0x3ba9db(0x154)],'waiting':_0x4e18a6[_0x3ba9db(0x199)]?.['scriptURL'],'installing':_0x4e18a6[_0x3ba9db(0x127)]?.[_0x3ba9db(0x154)]});const _0x38085c=[_0x4e18a6[_0x3ba9db(0xf8)]?.[_0x3ba9db(0x154)],_0x4e18a6[_0x3ba9db(0x199)]?.[_0x3ba9db(0x154)],_0x4e18a6[_0x3ba9db(0x127)]?.['scriptURL']],_0x4fd667=_0x38085c[_0x3ba9db(0xb2)](_0xa13db2=>_0xa13db2&&ownsServiceWorker(_0xa13db2,_0x1f057f));if(!_0x4fd667){console['log'](LOG_PREFIX2+_0x3ba9db(0x16e));return;}_0x4e18a6[_0x3ba9db(0xf8)]&&(console['log'](LOG_PREFIX2+_0x3ba9db(0x17c)),_0x4e18a6[_0x3ba9db(0xf8)][_0x3ba9db(0xb5)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x3ba9db(0x11e)),await _0x4e18a6[_0x3ba9db(0x124)](),registration=null,currentOptions2=null,console[_0x3ba9db(0x14d)](LOG_PREFIX2+_0x3ba9db(0x14c));}catch(_0x17c71c){console[_0x3ba9db(0x19c)](LOG_PREFIX2+_0x3ba9db(0x135),_0x17c71c);}}function ownsServiceWorker(_0x3a437b,_0x3e3071){const _0x3548d8=_0x3fa552,_0x1b48fc=typeof window!==_0x3548d8(0xe5)?window[_0x3548d8(0xed)]['origin']:'',_0x34866e=new URL(_0x3e3071,_0x1b48fc||void 0x0)[_0x3548d8(0x10d)],_0x4648e3=_0x3a437b===_0x34866e||_0x3a437b[_0x3548d8(0x185)](_0x3548d8(0x10f));return console[_0x3548d8(0x14d)](LOG_PREFIX2+_0x3548d8(0x173)+_0x3a437b+_0x3548d8(0x120)+_0x34866e+_0x3548d8(0x133)+_0x4648e3),_0x4648e3;}function ownsCurrentController(_0x57be36){const _0x1eb000=_0x3fa552;if(typeof navigator===_0x1eb000(0xe5))return![];const _0x2eebc0=navigator[_0x1eb000(0x152)]?.[_0x1eb000(0x157)];if(!_0x2eebc0)return console[_0x1eb000(0x14d)](LOG_PREFIX2+_0x1eb000(0x12d)),![];return ownsServiceWorker(_0x2eebc0[_0x1eb000(0x154)],_0x57be36);}async function detectBlockingServiceWorker(_0x2d56af){const _0x163da3=_0x3fa552;if(!navigator['serviceWorker'])return null;try{const _0x224f8a=await navigator[_0x163da3(0x152)]['getRegistration']('/');console[_0x163da3(0x14d)](LOG_PREFIX2+_0x163da3(0xe9),_0x224f8a?.['active']?.['scriptURL']??_0x163da3(0xb1));const _0xc5069d=_0x224f8a?.[_0x163da3(0xf8)]?.['scriptURL'];if(!_0xc5069d)return null;if(ownsServiceWorker(_0xc5069d,_0x2d56af))return null;return _0xc5069d;}catch(_0x2e2184){return console[_0x163da3(0x19c)](LOG_PREFIX2+_0x163da3(0x197),_0x2e2184),null;}}async function resolveWorker(){const _0x3b93d2=_0x3fa552,_0x182827=registration??await navigator[_0x3b93d2(0x152)]?.[_0x3b93d2(0x170)]('/'),_0x59f5c6=_0x182827?.[_0x3b93d2(0xf8)]??_0x182827?.[_0x3b93d2(0x199)]??_0x182827?.[_0x3b93d2(0x127)]??null;return console[_0x3b93d2(0x14d)](LOG_PREFIX2+'\x20resolveWorker:',_0x59f5c6?.[_0x3b93d2(0x154)]??_0x3b93d2(0xb1),_0x3b93d2(0x109)+(_0x59f5c6?.[_0x3b93d2(0x1a3)]??'N/A')),_0x59f5c6;}function _0x5b05(_0x5168af,_0x111096){_0x5168af=_0x5168af-0xa6;const _0x44747d=_0x4474();let _0x5b055f=_0x44747d[_0x5168af];return _0x5b055f;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){return typeof window!=='undefined'&&window['__enhanceInitialized']===!![];}function setInitialized(_0x4b9a72){const _0x1e4ee0=_0x3fa552;typeof window!==_0x1e4ee0(0xe5)&&(window[_0x1e4ee0(0x195)]=_0x4b9a72);}function getOptions(){const _0xff5f52=_0x3fa552;return typeof window!=='undefined'?window[_0xff5f52(0x176)]??null:null;}function setOptions(_0x1d16c6){const _0x142bb7=_0x3fa552;typeof window!==_0x142bb7(0xe5)&&(window[_0x142bb7(0x176)]=_0x1d16c6);}var Enhance={'init'(_0x2b1c37={}){const _0xce6f83=_0x3fa552,_0x53453c=Date[_0xce6f83(0x18f)]();console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x164)+_0x53453c),console['log'](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location'][_0xce6f83(0x10d)]),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x101)+document[_0xce6f83(0x126)]),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x102),JSON[_0xce6f83(0x171)](_0x2b1c37,null,0x2));if(isInitialized())return console[_0xce6f83(0x103)](LOG_PREFIX3+_0xce6f83(0x18b)),window[_0xce6f83(0x17e)]??createController();setInitialized(!![]),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0xb8));const _0xf76b19=normalizeOptions(_0x2b1c37);setOptions(_0xf76b19),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x15b),JSON[_0xce6f83(0x171)](_0xf76b19,null,0x2));const _0x5319e6=parseUrlParams();console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x15d),JSON[_0xce6f83(0x171)](_0x5319e6,null,0x2));if(_0x5319e6[_0xce6f83(0xc7)])return cleanUrlParam(_0xce6f83(0x161)),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x193)),createController();if(_0x5319e6[_0xce6f83(0x111)])return console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x15f)),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0xd1)+_0x5319e6['enhancementUrl']),console['log'](LOG_PREFIX3+_0xce6f83(0x108)+_0x5319e6[_0xce6f83(0x18d)]),state[_0xce6f83(0x122)]=!![],console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0xb0)),void loadOverlay({'overlayPath':_0xf76b19['overlayPath'],'enableViteHmr':_0xf76b19[_0xce6f83(0xe8)][_0xce6f83(0x132)],'options':_0xf76b19,'onToggle':handleToggle}),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x1a4)),void registerServiceWorker(_0xf76b19),console[_0xce6f83(0x14d)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0xce6f83(0x14d)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x16b)),void unregisterServiceWorker(_0xf76b19[_0xce6f83(0x183)]),console[_0xce6f83(0x14d)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0xce6f83(0x14d)](LOG_PREFIX3+_0xce6f83(0x117)),import.meta.hot['on']('vite:error',_0x49a657=>{const _0x4eee4d=_0xce6f83;console[_0x4eee4d(0x14d)](LOG_PREFIX3+_0x4eee4d(0xec),_0x49a657),state[_0x4eee4d(0x115)]={'message':_0x49a657['err'][_0x4eee4d(0x13f)]},updateOverlay();}),import.meta.hot['on'](_0xce6f83(0x123),()=>{const _0x107fdf=_0xce6f83;state[_0x107fdf(0x115)]&&(console[_0x107fdf(0x14d)](LOG_PREFIX3+_0x107fdf(0xad)),state[_0x107fdf(0x115)]=null,updateOverlay());})),createController();}};function createController(){const _0x1d4da2=_0x3fa552,_0x51e851={'enable'(){const _0xe31d1d=_0x5b05,_0x1b8ef4=getOptions();if(!_0x1b8ef4)return;state[_0xe31d1d(0x122)]=!![],void loadOverlay({'overlayPath':_0x1b8ef4[_0xe31d1d(0x144)],'enableViteHmr':_0x1b8ef4[_0xe31d1d(0xe8)][_0xe31d1d(0x132)],'options':_0x1b8ef4,'onToggle':handleToggle}),void registerServiceWorker(_0x1b8ef4),void sendConfiguration(),updateOverlay();},'disable'(){const _0x7e1cff=_0x5b05,_0x3c1824=getOptions();if(!_0x3c1824)return;state[_0x7e1cff(0x122)]=![],state[_0x7e1cff(0x187)]=![],updateOverlay(),void unregisterServiceWorker(_0x3c1824[_0x7e1cff(0x183)]);},'status'(){const _0x4caf9c=_0x5b05;return{'enabled':state[_0x4caf9c(0x122)],'controlled':state[_0x4caf9c(0x187)]};}};return typeof window!==_0x1d4da2(0xe5)&&(window[_0x1d4da2(0x17e)]=_0x51e851),_0x51e851;}function handleToggle(){const _0x35fa7b=_0x3fa552,_0x45b155=createController();state[_0x35fa7b(0x122)]?_0x45b155[_0x35fa7b(0xfe)]():_0x45b155[_0x35fa7b(0x149)]();}function parseUrlParams(){const _0x4b4453=_0x3fa552,_0x1deb3b=new URL(window[_0x4b4453(0xed)][_0x4b4453(0x10d)]),_0x88f1be=_0x1deb3b[_0x4b4453(0x145)]['get'](_0x4b4453(0x161))?.['toLowerCase'](),_0x6d3ced=_0x1deb3b['searchParams'][_0x4b4453(0x14e)](_0x4b4453(0xbf)),_0x56e46c=_0x1deb3b['searchParams'][_0x4b4453(0x14e)](_0x4b4453(0x107));return{'hasEnhancement':Boolean(_0x6d3ced||_0x56e46c),'explicitDisable':_0x88f1be==='0'||_0x88f1be===_0x4b4453(0x162)||_0x88f1be===_0x4b4453(0xa7),'enhancementUrl':_0x6d3ced,'enhancementId':_0x56e46c};}function cleanUrlParam(_0x4ad64){const _0x16980b=_0x3fa552,_0x8a3b0a=new URL(window[_0x16980b(0xed)]['href']);_0x8a3b0a[_0x16980b(0x145)][_0x16980b(0xdd)](_0x4ad64)&&(_0x8a3b0a[_0x16980b(0x145)][_0x16980b(0x16c)](_0x4ad64),window[_0x16980b(0x12e)]['replaceState'](null,document['title'],_0x8a3b0a[_0x16980b(0x105)]()));}var package_default={'name':_0x3fa552(0x198),'version':'0.3.20','type':_0x3fa552(0xf7),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x3fa552(0x18c),'main':_0x3fa552(0x15e),'module':_0x3fa552(0x15e),'types':_0x3fa552(0xfa),'exports':{'.':{'types':_0x3fa552(0xfa),'import':_0x3fa552(0x15e)},'./vite':{'types':_0x3fa552(0xa6),'import':_0x3fa552(0xb7)}},'files':[_0x3fa552(0xc0)],'bin':{'enhance-sandbox':_0x3fa552(0x17f)},'scripts':{'typecheck':_0x3fa552(0xb4),'dev':_0x3fa552(0xce),'dev:build':_0x3fa552(0x12a),'dev:staging':_0x3fa552(0x137),'dev:staging:build':_0x3fa552(0xe2),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x3fa552(0x13e),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x3fa552(0x118)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x3fa552(0xac),'tsup':_0x3fa552(0x181),'vite':_0x3fa552(0xf3)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x3fa552(0xdf),DEFAULT_RUNTIME_PATH=_0x3fa552(0xf4),DIST_SERVICE_WORKER_PATH=_0x3fa552(0x150),DIST_RUNTIME_PATH=_0x3fa552(0x129),PACKAGE_VERSION=typeof package_default['version']===_0x3fa552(0x19d)?package_default[_0x3fa552(0x166)]:_0x3fa552(0x112);function normalizeAssetPath(_0x51b0fe){const _0x5beec8=_0x3fa552;if(!_0x51b0fe)return _0x51b0fe;if(_0x51b0fe[_0x5beec8(0x194)]('http://')||_0x51b0fe[_0x5beec8(0x194)](_0x5beec8(0x136)))return _0x51b0fe;const _0x45cd9f=_0x51b0fe[_0x5beec8(0x13b)](/^\.\//,'');return _0x45cd9f[_0x5beec8(0x194)]('/')?_0x45cd9f:'/'+_0x45cd9f;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5ed685){const _0x19749c=_0x3fa552;return Enhance[_0x19749c(0xaa)](_0x5ed685);},'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 _0x394e7e=_0x3fa552;return Enhance2[_0x394e7e(0xbe)]();}function runtimeURL(){const _0x3345cc=_0x3fa552;return Enhance2[_0x3345cc(0x121)]();}import{promises as _0x4d93d2}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x3fa552(0x196),import.meta.url)));async function syncAssets(_0xb1b9e7){const _0x3b1387=_0x3fa552,_0x1d59da=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0xb1b9e7[_0x3b1387(0xc1)]?'./'+_0xb1b9e7[_0x3b1387(0xc1)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x2b227f=[];for(const _0x5a8f1b of _0x1d59da){const _0x2efd8f=cleanRelativePath(_0x5a8f1b[_0x3b1387(0x11d)]??_0x5a8f1b[_0x3b1387(0xb3)]),_0x1c0a0c=join(distDir,cleanRelativePath(_0x5a8f1b[_0x3b1387(0xde)])),_0x47cdea=join(_0xb1b9e7[_0x3b1387(0xd5)],_0x2efd8f),[_0x387306,_0x16d37c]=await Promise[_0x3b1387(0xd3)]([readDigest(_0x1c0a0c),readDigest(_0x47cdea)]);if(_0x387306&&_0x16d37c&&_0x387306===_0x16d37c){_0x2b227f[_0x3b1387(0x10b)]({'sourcePath':_0x1c0a0c,'destinationPath':_0x47cdea,'relativeDestination':_0x2efd8f,'status':_0x3b1387(0x159)});continue;}await _0x4d93d2[_0x3b1387(0x182)](dirname(_0x47cdea),{'recursive':!![]}),await _0x4d93d2['copyFile'](_0x1c0a0c,_0x47cdea),_0x2b227f[_0x3b1387(0x10b)]({'sourcePath':_0x1c0a0c,'destinationPath':_0x47cdea,'relativeDestination':_0x2efd8f,'status':'copied'});}return _0x2b227f;}function cleanRelativePath(_0x4c45c9){return _0x4c45c9['replace'](/^[./]+/,'');}async function readDigest(_0x894a72){const _0x49038e=_0x3fa552;try{const _0x19fee2=await _0x4d93d2['readFile'](_0x894a72);return createHash(_0x49038e(0x168))[_0x49038e(0xab)](_0x19fee2)[_0x49038e(0xbc)](_0x49038e(0xf9));}catch(_0x314f71){if(_0x314f71[_0x49038e(0x11a)]===_0x49038e(0x16d))return null;throw _0x314f71;}}var program=new Command();program['name'](_0x3fa552(0xc5))[_0x3fa552(0x18a)](_0x3fa552(0x148))[_0x3fa552(0x166)](_0x3fa552(0x112)),program['command']('manifest')['description'](_0x3fa552(0xcf))[_0x3fa552(0x14b)](()=>{const _0xea714b=_0x3fa552,_0x401ab7=getAssetManifest();process[_0xea714b(0x16f)]['write'](JSON[_0xea714b(0x171)](_0x401ab7,null,0x2)+'\x0a');}),program[_0x3fa552(0x13a)]('prepare-sw')[_0x3fa552(0x18a)](_0x3fa552(0xf0))['requiredOption'](_0x3fa552(0x12f),'Directory\x20to\x20copy\x20the\x20service\x20worker\x20into')[_0x3fa552(0xea)](_0x3fa552(0x18e),_0x3fa552(0x140))['action'](async _0x4b413c=>{const _0x594bb0=_0x3fa552,_0x3e5256=resolve(process[_0x594bb0(0x17d)](),_0x4b413c[_0x594bb0(0xd5)]),_0x19c4fb=await syncAssets({'publicDir':_0x3e5256,'swFilename':_0x4b413c[_0x594bb0(0x10a)]});for(const _0x2d1e34 of _0x19c4fb){const _0x56faab=relative(process['cwd'](),_0x2d1e34[_0x594bb0(0x142)]);_0x2d1e34['status']===_0x594bb0(0x159)?process[_0x594bb0(0x16f)]['write'](_0x594bb0(0x188)+_0x2d1e34[_0x594bb0(0x113)]+_0x594bb0(0x177)+_0x56faab+']\x0a'):process['stdout']['write'](_0x594bb0(0x163)+_0x2d1e34[_0x594bb0(0x113)]+_0x594bb0(0x1a1)+_0x56faab+'\x0a');}}),program[_0x3fa552(0xef)]();
3
+ const _0x30e6ff=_0x1f86;(function(_0x10f4c2,_0x19c790){const _0x167529=_0x1f86,_0x1f930c=_0x10f4c2();while(!![]){try{const _0x3555fe=parseInt(_0x167529(0x1db))/0x1*(parseInt(_0x167529(0x160))/0x2)+parseInt(_0x167529(0x1fe))/0x3+-parseInt(_0x167529(0x176))/0x4*(parseInt(_0x167529(0x141))/0x5)+-parseInt(_0x167529(0x136))/0x6*(-parseInt(_0x167529(0x1c8))/0x7)+-parseInt(_0x167529(0x16f))/0x8*(-parseInt(_0x167529(0x1b3))/0x9)+-parseInt(_0x167529(0x208))/0xa+-parseInt(_0x167529(0x1c4))/0xb*(parseInt(_0x167529(0x17b))/0xc);if(_0x3555fe===_0x19c790)break;else _0x1f930c['push'](_0x1f930c['shift']());}catch(_0x253fc5){_0x1f930c['push'](_0x1f930c['shift']());}}}(_0x2a6a,0xc34c0));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x30e6ff(0x183)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x30e6ff(0x20c),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x30e6ff(0x183)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x30e6ff(0x20d),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x30e6ff(0x183)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x30e6ff(0x168)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2c8938){const _0x44a511=_0x30e6ff,_0x509d80=_0x2c8938[_0x44a511(0x1f9)]??{};return{'callbackBypass':_0x2c8938[_0x44a511(0x1b9)]??[],'overlay':{'enabled':!![],'position':_0x44a511(0x169),'enableViteHmr':_0x509d80[_0x44a511(0x1e1)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x44a511(0x159),'overlayPath':_0x509d80[_0x44a511(0x1fd)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x44a511(0x16c),'security':_0x509d80[_0x44a511(0x1e3)]??_0x44a511(0x218),'backendUrl':_0x509d80[_0x44a511(0x20a)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x5a4adf=_0x30e6ff;try{const _0x56dd74=new URLSearchParams(window[_0x5a4adf(0x19f)]['search']);return _0x56dd74[_0x5a4adf(0x1ab)](_0x5a4adf(0x15e))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x30e6ff(0x194),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x324c79){const _0xa114c5=_0x30e6ff;console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x180)),console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x1de)+_0x324c79['overlayPath']),console['log'](LOG_PREFIX+_0xa114c5(0x1e6)+_0x324c79[_0xa114c5(0x1d2)]),currentOptions=_0x324c79[_0xa114c5(0x148)],toggleHandler=_0x324c79[_0xa114c5(0x1d0)];if(overlayController){console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x1e4)),updateOverlay();return;}if(overlayLoadPromise)return console[_0xa114c5(0x168)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0xa114c5(0x168)](LOG_PREFIX+_0xa114c5(0x12f)),overlayLoadPromise=doLoadOverlay(_0x324c79);try{await overlayLoadPromise,console[_0xa114c5(0x168)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x189beb){console[_0xa114c5(0x1a5)](LOG_PREFIX+_0xa114c5(0x1df),_0x189beb);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x54517e){const _0x2c4909=_0x30e6ff;console['log'](LOG_PREFIX+_0x2c4909(0x1d3));if(typeof window===_0x2c4909(0x183)){console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x149));return;}if(window[_0x2c4909(0x1b7)]){console[_0x2c4909(0x168)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x2c4909(0x1b7)];return;}console[_0x2c4909(0x168)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x54517e[_0x2c4909(0x1d2)]&&(console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x1a4)),await setupRemoteHMR(_0x54517e[_0x2c4909(0x1fd)]));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x54517e[_0x2c4909(0x1fd)]);const _0x1bbfa1=Date['now'](),_0x3dc8b8=await import(_0x54517e['overlayPath']);console['log'](LOG_PREFIX+_0x2c4909(0x182)+(Date[_0x2c4909(0x1ec)]()-_0x1bbfa1)+'ms'),console[_0x2c4909(0x168)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x2c4909(0x1eb)](_0x3dc8b8));if(typeof _0x3dc8b8?.[_0x2c4909(0x20f)]!==_0x2c4909(0x213)){console[_0x2c4909(0x1a5)](LOG_PREFIX+_0x2c4909(0x165)),console[_0x2c4909(0x1a5)](LOG_PREFIX+_0x2c4909(0x1b4),Object[_0x2c4909(0x1eb)](_0x3dc8b8));return;}console[_0x2c4909(0x168)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x25cf4f=_0x3dc8b8['createOverlay']();console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x1ba),_0x25cf4f),overlayController=_0x25cf4f,window['__enhanceOverlay']=_0x25cf4f,_0x25cf4f[_0x2c4909(0x1d0)](_0x54517e['onToggle']),console[_0x2c4909(0x168)](LOG_PREFIX+_0x2c4909(0x212)),console['log'](LOG_PREFIX+_0x2c4909(0x154)),updateOverlay();}catch(_0x15ee63){console[_0x2c4909(0x1a5)](LOG_PREFIX+_0x2c4909(0x1f1),_0x15ee63);}}function updateOverlay(){const _0x2cb73a=_0x30e6ff;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x2cb73a(0x168)](LOG_PREFIX+_0x2cb73a(0x210)+!!overlayController),console[_0x2cb73a(0x168)](LOG_PREFIX+_0x2cb73a(0x184)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2cb73a(0x168)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x5089fb=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x2cb73a(0x219)](_0x5089fb,null,0x2)),overlayController[_0x2cb73a(0x12d)](_0x5089fb),console[_0x2cb73a(0x168)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x27428d){const _0x250459=_0x30e6ff,_0xfb4861=getEnhancementUrl();return console[_0x250459(0x168)](LOG_PREFIX+_0x250459(0x1e8)+_0xfb4861),console[_0x250459(0x168)](LOG_PREFIX+_0x250459(0x14d)+state[_0x250459(0x19d)]),console['log'](LOG_PREFIX+_0x250459(0x1aa)+state[_0x250459(0x13b)]),{'enhancementUrl':_0xfb4861,'enabled':state['enabled'],'controlled':state[_0x250459(0x13b)],'overlayPosition':_0x27428d[_0x250459(0x1fb)][_0x250459(0x13d)],'securityMode':_0x27428d[_0x250459(0x1e3)],'backendBaseUrl':_0x27428d[_0x250459(0x20a)],'appError':state[_0x250459(0x12b)]};}async function setupRemoteHMR(_0x53a243){const _0x43b609=_0x30e6ff;console['log'](LOG_PREFIX+_0x43b609(0x144)+_0x53a243);if(typeof window===_0x43b609(0x183))return;try{const _0x50265e=new URL(_0x53a243,window['location'][_0x43b609(0x1f4)]),_0x400367=_0x50265e[_0x43b609(0x1f4)];console[_0x43b609(0x168)](LOG_PREFIX+_0x43b609(0x1d4)+_0x400367+_0x43b609(0x216)+window[_0x43b609(0x19f)]['origin']);if(_0x400367===window[_0x43b609(0x19f)]['origin']){console['log'](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x43b609(0x185)),await ensureReactRefreshPreamble(_0x400367),await ensureViteClient(_0x400367),console[_0x43b609(0x168)](LOG_PREFIX+_0x43b609(0x1e9));}catch(_0x5503b0){console[_0x43b609(0x20b)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x5503b0);}}async function ensureReactRefreshPreamble(_0x16389b){const _0x2185c5=_0x30e6ff;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x2185c5(0x15a)]['has'](_0x16389b)){console[_0x2185c5(0x168)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x16389b);return;}console['log'](LOG_PREFIX+_0x2185c5(0x19c)+_0x16389b+_0x2185c5(0x1d1));const _0x9f8860=await import(_0x16389b+'/@react-refresh'),_0x5b9dce=_0x9f8860&&typeof _0x9f8860===_0x2185c5(0x13a)&&'default'in _0x9f8860?_0x9f8860[_0x2185c5(0x1bb)]:_0x9f8860;if(!isRefreshRuntime(_0x5b9dce)){console['warn'](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x5b9dce['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x1fb9fc=>_0x1fb9fc,window[_0x2185c5(0x170)]=!![],window[_0x2185c5(0x15a)]['add'](_0x16389b),console[_0x2185c5(0x168)](LOG_PREFIX+_0x2185c5(0x150)+_0x16389b);}async function ensureViteClient(_0x19d2f6){const _0x18e596=_0x30e6ff;window[_0x18e596(0x166)]??=new Set();if(window[_0x18e596(0x166)][_0x18e596(0x1c3)](_0x19d2f6)){console[_0x18e596(0x168)](LOG_PREFIX+_0x18e596(0x15c)+_0x19d2f6);return;}console[_0x18e596(0x168)](LOG_PREFIX+_0x18e596(0x18c)+_0x19d2f6+_0x18e596(0x1d1)),await import(_0x19d2f6+'/@vite/client'),window[_0x18e596(0x166)]['add'](_0x19d2f6),console[_0x18e596(0x168)](LOG_PREFIX+_0x18e596(0x188)+_0x19d2f6);}function isRefreshRuntime(_0x2d2bde){const _0x2a5ca0=_0x30e6ff;return typeof _0x2d2bde===_0x2a5ca0(0x13a)&&_0x2d2bde!==null&&_0x2a5ca0(0x181)in _0x2d2bde&&typeof _0x2d2bde[_0x2a5ca0(0x181)]===_0x2a5ca0(0x213);}var WORKER_MESSAGE_CONFIG=_0x30e6ff(0x1c2),WORKER_MESSAGE_DISABLE=_0x30e6ff(0x139),LOG_PREFIX2=_0x30e6ff(0x130),registration=null,currentOptions2=null;async function registerServiceWorker(_0x368b27){const _0x46e119=_0x30e6ff;console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1a2)),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x217)+_0x368b27[_0x46e119(0x140)]);if(!(_0x46e119(0x1da)in navigator)){console[_0x46e119(0x20b)](LOG_PREFIX2+_0x46e119(0x1af));return;}console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x133));const _0x4f2719=navigator[_0x46e119(0x1da)][_0x46e119(0x1b1)];console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x206),_0x4f2719?.[_0x46e119(0x1dd)]??_0x46e119(0x1dc)),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x204),_0x4f2719?.['state']??_0x46e119(0x138));const _0x928d8a=!!_0x4f2719;currentOptions2=_0x368b27,console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1ad));const _0xf9654e=await detectBlockingServiceWorker(_0x368b27[_0x46e119(0x140)]);if(_0xf9654e){console[_0x46e119(0x1a5)](LOG_PREFIX2+_0x46e119(0x132)+_0xf9654e),console['error'](LOG_PREFIX2+_0x46e119(0x13e));return;}console['log'](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x368b27[_0x46e119(0x140)]+_0x46e119(0x1ae)),registration=await navigator[_0x46e119(0x1da)][_0x46e119(0x17f)](_0x368b27[_0x46e119(0x140)],{'scope':'/'}),console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration['scope'],'active':registration['active']?.[_0x46e119(0x1dd)],'waiting':registration[_0x46e119(0x1f2)]?.[_0x46e119(0x1dd)],'installing':registration['installing']?.['scriptURL']}),console['log'](LOG_PREFIX2+_0x46e119(0x155));const _0x46419a=await navigator['serviceWorker'][_0x46e119(0x203)];console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1bf),_0x46419a['active']?.[_0x46e119(0x1dd)]);const _0x47ee99=ownsCurrentController(_0x368b27[_0x46e119(0x140)]);state[_0x46e119(0x13b)]=_0x47ee99,console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x1e7)+_0x47ee99),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x19e),navigator[_0x46e119(0x1da)]['controller']?.[_0x46e119(0x1dd)]??_0x46e119(0x1dc));if(!_0x928d8a&&!navigator[_0x46e119(0x1da)]['controller']){console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x17e)),window[_0x46e119(0x19f)][_0x46e119(0x1a0)]();return;}console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x137)),await sendConfiguration();if(state['enabled']){const _0x2e3932=document[_0x46e119(0x16a)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x2e3932);if(!_0x2e3932){console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x162)),window[_0x46e119(0x19f)][_0x46e119(0x1a0)]();return;}}console[_0x46e119(0x168)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x46e119(0x168)](LOG_PREFIX2+_0x46e119(0x202));}catch(_0x5852c8){console[_0x46e119(0x1a5)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x5852c8);}}function _0x2a6a(){const _0x43549a=['\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Starting\x20overlay\x20load\x20(async)...','__enhanceOptions','serviceWorker','2roRVbz','none','scriptURL','\x20overlayPath:\x20','\x20loadOverlay()\x20failed:','version','enableOverlayHmr','0.3.20','security','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','state:\x20','\x20enableViteHmr:\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20HMR\x20setup\x20complete','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','keys','now','title','__enhanceController','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','./dev/index.js','\x20Failed\x20to\x20import/create\x20overlay:','waiting','copied','origin','sourcePath','disable','enable','status','__development','requiredOption','overlay','getRegistration','overlayPath','3067212jUxHiQ','parseAsync','\x20Found\x20registration:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20registerServiceWorker()\x20complete','ready','\x20Controller\x20state:','\x20enhancementUrl:\x20','\x20Current\x20controller:','digest','3433020cMjKxk','^3.22.4','backendUrl','warn','https://assets.enhancelabs.ai/overlay.js','https://api.enhancelabs.ai','init','createOverlay','\x20overlayController\x20exists:\x20','relativeDestination','\x20Overlay\x20controller\x20initialized\x20and\x20cached','function','\x20Document\x20readyState:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch',',\x20page\x20origin:\x20','\x20swPath:\x20','permissive','stringify','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','\x20Config\x20sent\x20to\x20SW','\x20Normalized\x20options:','\x20detectBlocking\x20-\x20existing\x20registration:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','appError','toLowerCase','update',',\x20expected=','\x20Starting\x20fresh\x20overlay\x20load...','[Enhance\x20SW-Client]','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20BLOCKING\x20SW\x20detected:\x20','\x20Service\x20workers\x20supported','\x20No\x20service\x20worker\x20active\x20to\x20configure','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','6695202PfIFIz','\x20Sending\x20customer\x20configuration...','N/A','enhance:disable','object','controlled','push','position','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','description','swPath','296045mIKeKn','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','./dev/cli.js','\x20setupRemoteHMR()\x20for\x20','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','ENOENT','delete','options','\x20No\x20window\x20object\x20-\x20skipping','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','0.0.0','history','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Current\x20URL:\x20','manifestPath','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','prepare-sw','--public-dir\x20<path>','copyFile','\x20Calling\x20updateOverlay()...','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','publicDir','@enhance-eng/sandbox','^4.1.1','/sw-enhance.js','__enhanceReactRefreshInstalledOrigins','cwd','\x20Vite\x20client\x20already\x20loaded\x20for\x20','Enhance\x20sandbox\x20utility\x20CLI','enhancementUrl','code','1075754HqlPKD','swFilename','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','message','hasEnhancement','\x20Module\x20missing\x20createOverlay\x20export!','__viteHMRLoaded','./dev/index.d.ts','log','bottom-right','querySelector','destinationPath','/assets/enhance-runtime.js','\x20sendConfiguration()\x20called','unregister','40RcVfcL','__vite_plugin_react_preamble_installed__','action','enhance','enhancementId','module','\x20First\x20initialization','44ynHPsR','manifest','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','skipped','tsc\x20--noEmit','35796pTyXJQ','name','enhance-sandbox','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','register','\x20loadOverlay()\x20called','injectIntoGlobalHook','\x20Module\x20imported\x20in\x20','undefined','\x20currentOptions\x20exists:\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','explicitDisable','stdout','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20SW\x20unregistered\x20successfully','\x20init()\x20complete\x20-\x20enhancement\x20mode','runtimeURL','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','includes','installing','^11.1.0','\x20Raw\x20options:','toString',',\x20owns=','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','[Enhance\x20Overlay]','write','replace','false','\x20→\x20','active','./dev/vite/index.d.ts','replaceState','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','enabled','\x20Current\x20controller\x20after\x20ready:','location','reload','vite:beforeUpdate','\x20registerServiceWorker()\x20called','Print\x20the\x20current\x20asset\x20manifest','\x20Setting\x20up\x20remote\x20HMR...','error','sw-enhance','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20No\x20current\x20controller','option','\x20composeOverlayState\x20-\x20state.controlled:\x20','get','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20with\x20scope\x20\x27/\x27...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','command','controller','some','2873385xKOHJB','\x20Available\x20exports:','off','\x20Failed\x20to\x20unregister\x20service\x20worker:','__enhanceOverlay','\x20detectBlocking\x20error:','callbackBypass','\x20Controller\x20created:','default','\x20resolveWorker:','dev/','\x20Enhancement\x20mode\x20ENABLED','\x20SW\x20ready!\x20Active:','readyState','startsWith','enhance:configure','has','11121ORtihm','__enhanceInitialized','\x20init()\x20called\x20at\x20','^7.2.4','7oljsML','bun\x20version\x20patch\x20--no-git-tag-version','\x20enhancementId:\x20','searchParams','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','vite:error','err','mkdir','onToggle','...','enableViteHmr','\x20doLoadOverlay()\x20starting...','\x20Overlay\x20origin:\x20','--filename\x20<name>','href'];_0x2a6a=function(){return _0x43549a;};return _0x2a6a();}async function sendConfiguration(){const _0x4ab675=_0x30e6ff;console[_0x4ab675(0x168)](LOG_PREFIX2+_0x4ab675(0x16d)),console['log'](LOG_PREFIX2+'\x20state.enabled:\x20'+state['enabled']+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x4ab675(0x19d)]||!currentOptions2){console[_0x4ab675(0x168)](LOG_PREFIX2+_0x4ab675(0x145));return;}const _0x2aad3b=await resolveWorker();if(!_0x2aad3b){console[_0x4ab675(0x20b)](LOG_PREFIX2+_0x4ab675(0x134));return;}const _0x4e8fbe={'callbackBypass':currentOptions2[_0x4ab675(0x1b9)],'securityMode':currentOptions2[_0x4ab675(0x1e3)]};console[_0x4ab675(0x168)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x4ab675(0x219)](_0x4e8fbe,null,0x2)),_0x2aad3b['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x4e8fbe}),console[_0x4ab675(0x168)](LOG_PREFIX2+_0x4ab675(0x126));}async function unregisterServiceWorker(_0x2c178a){const _0x4f0fb6=_0x30e6ff;console[_0x4f0fb6(0x168)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x4f0fb6(0x1da)in navigator)){console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x178));return;}try{const _0x4d0da8=registration??await navigator[_0x4f0fb6(0x1da)][_0x4f0fb6(0x1fc)]('/');if(!_0x4d0da8){console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x131));return;}console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x200),{'scope':_0x4d0da8['scope'],'active':_0x4d0da8[_0x4f0fb6(0x199)]?.[_0x4f0fb6(0x1dd)],'waiting':_0x4d0da8['waiting']?.[_0x4f0fb6(0x1dd)],'installing':_0x4d0da8[_0x4f0fb6(0x18e)]?.[_0x4f0fb6(0x1dd)]});const _0x2fe5c9=[_0x4d0da8[_0x4f0fb6(0x199)]?.['scriptURL'],_0x4d0da8[_0x4f0fb6(0x1f2)]?.[_0x4f0fb6(0x1dd)],_0x4d0da8[_0x4f0fb6(0x18e)]?.[_0x4f0fb6(0x1dd)]],_0x3661ba=_0x2fe5c9[_0x4f0fb6(0x1b2)](_0x32bb9d=>_0x32bb9d&&ownsServiceWorker(_0x32bb9d,_0x2c178a));if(!_0x3661ba){console['log'](LOG_PREFIX2+_0x4f0fb6(0x1cc));return;}_0x4d0da8['active']&&(console['log'](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x4d0da8[_0x4f0fb6(0x199)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x4f0fb6(0x168)](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x4d0da8[_0x4f0fb6(0x16e)](),registration=null,currentOptions2=null,console[_0x4f0fb6(0x168)](LOG_PREFIX2+_0x4f0fb6(0x189));}catch(_0x5a461e){console[_0x4f0fb6(0x1a5)](LOG_PREFIX2+_0x4f0fb6(0x1b6),_0x5a461e);}}function ownsServiceWorker(_0x58c83d,_0x46b7b6){const _0x5c5795=_0x30e6ff,_0x48e6f7=typeof window!==_0x5c5795(0x183)?window[_0x5c5795(0x19f)][_0x5c5795(0x1f4)]:'',_0x4d9e00=new URL(_0x46b7b6,_0x48e6f7||void 0x0)['href'],_0x516ae0=_0x58c83d===_0x4d9e00||_0x58c83d[_0x5c5795(0x18d)](_0x5c5795(0x1a6));return console['log'](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x58c83d+_0x5c5795(0x12e)+_0x4d9e00+_0x5c5795(0x192)+_0x516ae0),_0x516ae0;}function ownsCurrentController(_0x51138e){const _0x2300b2=_0x30e6ff;if(typeof navigator===_0x2300b2(0x183))return![];const _0x5d0ab8=navigator[_0x2300b2(0x1da)]?.['controller'];if(!_0x5d0ab8)return console[_0x2300b2(0x168)](LOG_PREFIX2+_0x2300b2(0x1a8)),![];return ownsServiceWorker(_0x5d0ab8['scriptURL'],_0x51138e);}async function detectBlockingServiceWorker(_0x32c0a6){const _0x2acd87=_0x30e6ff;if(!navigator[_0x2acd87(0x1da)])return null;try{const _0x5322c5=await navigator[_0x2acd87(0x1da)][_0x2acd87(0x1fc)]('/');console[_0x2acd87(0x168)](LOG_PREFIX2+_0x2acd87(0x128),_0x5322c5?.[_0x2acd87(0x199)]?.[_0x2acd87(0x1dd)]??_0x2acd87(0x1dc));const _0x5e28f1=_0x5322c5?.[_0x2acd87(0x199)]?.[_0x2acd87(0x1dd)];if(!_0x5e28f1)return null;if(ownsServiceWorker(_0x5e28f1,_0x32c0a6))return null;return _0x5e28f1;}catch(_0x78dcfe){return console[_0x2acd87(0x1a5)](LOG_PREFIX2+_0x2acd87(0x1b8),_0x78dcfe),null;}}async function resolveWorker(){const _0x4ccf19=_0x30e6ff,_0x5c9120=registration??await navigator[_0x4ccf19(0x1da)]?.[_0x4ccf19(0x1fc)]('/'),_0x583d8f=_0x5c9120?.[_0x4ccf19(0x199)]??_0x5c9120?.[_0x4ccf19(0x1f2)]??_0x5c9120?.[_0x4ccf19(0x18e)]??null;return console[_0x4ccf19(0x168)](LOG_PREFIX2+_0x4ccf19(0x1bc),_0x583d8f?.[_0x4ccf19(0x1dd)]??_0x4ccf19(0x1dc),_0x4ccf19(0x1e5)+(_0x583d8f?.['state']??_0x4ccf19(0x138))),_0x583d8f;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x5a23ae=_0x30e6ff;return typeof window!==_0x5a23ae(0x183)&&window['__enhanceInitialized']===!![];}function _0x1f86(_0x47e0ba,_0x3e724c){_0x47e0ba=_0x47e0ba-0x125;const _0x2a6a0f=_0x2a6a();let _0x1f86cc=_0x2a6a0f[_0x47e0ba];return _0x1f86cc;}function setInitialized(_0x35b903){const _0x30ffe1=_0x30e6ff;typeof window!==_0x30ffe1(0x183)&&(window[_0x30ffe1(0x1c5)]=_0x35b903);}function getOptions(){const _0x1ad9d9=_0x30e6ff;return typeof window!==_0x1ad9d9(0x183)?window[_0x1ad9d9(0x1d9)]??null:null;}function setOptions(_0x128016){const _0x4e99ce=_0x30e6ff;typeof window!==_0x4e99ce(0x183)&&(window[_0x4e99ce(0x1d9)]=_0x128016);}var Enhance={'init'(_0x9d65bd={}){const _0x1a03b3=_0x30e6ff,_0x59a24e=Date[_0x1a03b3(0x1ec)]();console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1c6)+_0x59a24e),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x14e)+window[_0x1a03b3(0x19f)][_0x1a03b3(0x1d6)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x214)+document[_0x1a03b3(0x1c0)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x190),JSON[_0x1a03b3(0x219)](_0x9d65bd,null,0x2));if(isInitialized())return console[_0x1a03b3(0x20b)](LOG_PREFIX3+_0x1a03b3(0x1d7)),window[_0x1a03b3(0x1ee)]??createController();setInitialized(!![]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x175));const _0x1ad3b9=normalizeOptions(_0x9d65bd);setOptions(_0x1ad3b9),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x127),JSON[_0x1a03b3(0x219)](_0x1ad3b9,null,0x2));const _0x58899e=parseUrlParams();console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x1a03b3(0x219)](_0x58899e,null,0x2));if(_0x58899e[_0x1a03b3(0x186)])return cleanUrlParam(_0x1a03b3(0x172)),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x58899e[_0x1a03b3(0x164)])return console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1be)),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x205)+_0x58899e[_0x1a03b3(0x15e)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1ca)+_0x58899e[_0x1a03b3(0x173)]),state['enabled']=!![],console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1d8)),void loadOverlay({'overlayPath':_0x1ad3b9[_0x1a03b3(0x1fd)],'enableViteHmr':_0x1ad3b9[_0x1a03b3(0x1fb)]['enableViteHmr'],'options':_0x1ad3b9,'onToggle':handleToggle}),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x1ad3b9),console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x18a)),createController();return console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x1ef)),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x1ad3b9[_0x1a03b3(0x140)]),console[_0x1a03b3(0x168)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x1a03b3(0x168)](LOG_PREFIX3+_0x1a03b3(0x193)),import.meta.hot['on'](_0x1a03b3(0x1cd),_0x18c50c=>{const _0x2257b9=_0x1a03b3;console['log'](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x18c50c),state[_0x2257b9(0x12b)]={'message':_0x18c50c[_0x2257b9(0x1ce)][_0x2257b9(0x163)]},updateOverlay();}),import.meta.hot['on'](_0x1a03b3(0x1a1),()=>{const _0x3561e5=_0x1a03b3;state[_0x3561e5(0x12b)]&&(console['log'](LOG_PREFIX3+_0x3561e5(0x1ac)),state[_0x3561e5(0x12b)]=null,updateOverlay());})),createController();}};function createController(){const _0x2a3711={'enable'(){const _0x14fb20=_0x1f86,_0x3115b7=getOptions();if(!_0x3115b7)return;state[_0x14fb20(0x19d)]=!![],void loadOverlay({'overlayPath':_0x3115b7[_0x14fb20(0x1fd)],'enableViteHmr':_0x3115b7[_0x14fb20(0x1fb)][_0x14fb20(0x1d2)],'options':_0x3115b7,'onToggle':handleToggle}),void registerServiceWorker(_0x3115b7),void sendConfiguration(),updateOverlay();},'disable'(){const _0x22feea=_0x1f86,_0x33dd6a=getOptions();if(!_0x33dd6a)return;state[_0x22feea(0x19d)]=![],state[_0x22feea(0x13b)]=![],updateOverlay(),void unregisterServiceWorker(_0x33dd6a[_0x22feea(0x140)]);},'status'(){const _0x15f91a=_0x1f86;return{'enabled':state[_0x15f91a(0x19d)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window['__enhanceController']=_0x2a3711),_0x2a3711;}function handleToggle(){const _0x40f730=_0x30e6ff,_0x1f6a51=createController();state[_0x40f730(0x19d)]?_0x1f6a51[_0x40f730(0x1f6)]():_0x1f6a51[_0x40f730(0x1f7)]();}function parseUrlParams(){const _0x1433de=_0x30e6ff,_0x4cdd8e=new URL(window['location'][_0x1433de(0x1d6)]),_0xfd6a61=_0x4cdd8e[_0x1433de(0x1cb)]['get']('enhance')?.[_0x1433de(0x12c)](),_0x2a13c9=_0x4cdd8e['searchParams'][_0x1433de(0x1ab)](_0x1433de(0x15e)),_0x8c5f99=_0x4cdd8e[_0x1433de(0x1cb)][_0x1433de(0x1ab)]('enhancement');return{'hasEnhancement':Boolean(_0x2a13c9||_0x8c5f99),'explicitDisable':_0xfd6a61==='0'||_0xfd6a61===_0x1433de(0x197)||_0xfd6a61===_0x1433de(0x1b5),'enhancementUrl':_0x2a13c9,'enhancementId':_0x8c5f99};}function cleanUrlParam(_0x531bd8){const _0x1e881d=_0x30e6ff,_0x2fea1f=new URL(window[_0x1e881d(0x19f)][_0x1e881d(0x1d6)]);_0x2fea1f[_0x1e881d(0x1cb)]['has'](_0x531bd8)&&(_0x2fea1f[_0x1e881d(0x1cb)][_0x1e881d(0x147)](_0x531bd8),window[_0x1e881d(0x14c)][_0x1e881d(0x19b)](null,document[_0x1e881d(0x1ed)],_0x2fea1f[_0x1e881d(0x191)]()));}var package_default={'name':_0x30e6ff(0x157),'version':_0x30e6ff(0x1e2),'type':_0x30e6ff(0x174),'description':_0x30e6ff(0x142),'license':'MIT','main':'./dev/index.js','module':'./dev/index.js','types':_0x30e6ff(0x167),'exports':{'.':{'types':_0x30e6ff(0x167),'import':_0x30e6ff(0x1f0)},'./vite':{'types':_0x30e6ff(0x19a),'import':'./dev/vite/index.js'}},'files':[_0x30e6ff(0x1bd)],'bin':{'enhance-sandbox':_0x30e6ff(0x143)},'scripts':{'typecheck':_0x30e6ff(0x17a),'dev':_0x30e6ff(0x215),'dev:build':_0x30e6ff(0x129),'dev:staging':_0x30e6ff(0x1a7),'dev:staging:build':_0x30e6ff(0x201),'build':_0x30e6ff(0x14a),'build:release':_0x30e6ff(0x12a),'build:release:dev':_0x30e6ff(0x1ea),'version':_0x30e6ff(0x1c9)},'dependencies':{'commander':_0x30e6ff(0x18f),'zod':_0x30e6ff(0x209)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x30e6ff(0x158),'tsup':'^8.5.1','vite':_0x30e6ff(0x1c7)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x30e6ff(0x159),DEFAULT_RUNTIME_PATH=_0x30e6ff(0x16c),DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH='assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x30e6ff(0x1e0)]==='string'?package_default[_0x30e6ff(0x1e0)]:_0x30e6ff(0x14b);function normalizeAssetPath(_0x1ce0b7){const _0x2f7401=_0x30e6ff;if(!_0x1ce0b7)return _0x1ce0b7;if(_0x1ce0b7['startsWith']('http://')||_0x1ce0b7['startsWith']('https://'))return _0x1ce0b7;const _0x59235a=_0x1ce0b7[_0x2f7401(0x196)](/^\.\//,'');return _0x59235a[_0x2f7401(0x1c1)]('/')?_0x59235a:'/'+_0x59235a;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x444820={}){const _0x280ba5=_0x30e6ff;return Enhance[_0x280ba5(0x20e)](_0x444820);},'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 _0x14d90d=_0x30e6ff;return Enhance2[_0x14d90d(0x18b)]();}import{promises as _0x39e615}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL('../dist/index.js',import.meta.url)));async function syncAssets(_0x50fd56){const _0x97ed4c=_0x30e6ff,_0x263888=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x50fd56[_0x97ed4c(0x161)]?'./'+_0x50fd56[_0x97ed4c(0x161)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x4d77ba=[];for(const _0x5092d4 of _0x263888){const _0x400d7d=cleanRelativePath(_0x5092d4['override']??_0x5092d4[_0x97ed4c(0x14f)]),_0x11eccd=join(distDir,cleanRelativePath(_0x5092d4[_0x97ed4c(0x1f5)])),_0x3e385a=join(_0x50fd56[_0x97ed4c(0x156)],_0x400d7d),[_0x507240,_0xa9c5c8]=await Promise['all']([readDigest(_0x11eccd),readDigest(_0x3e385a)]);if(_0x507240&&_0xa9c5c8&&_0x507240===_0xa9c5c8){_0x4d77ba[_0x97ed4c(0x13c)]({'sourcePath':_0x11eccd,'destinationPath':_0x3e385a,'relativeDestination':_0x400d7d,'status':'skipped'});continue;}await _0x39e615[_0x97ed4c(0x1cf)](dirname(_0x3e385a),{'recursive':!![]}),await _0x39e615[_0x97ed4c(0x153)](_0x11eccd,_0x3e385a),_0x4d77ba[_0x97ed4c(0x13c)]({'sourcePath':_0x11eccd,'destinationPath':_0x3e385a,'relativeDestination':_0x400d7d,'status':_0x97ed4c(0x1f3)});}return _0x4d77ba;}function cleanRelativePath(_0x3ec7fa){const _0x592c89=_0x30e6ff;return _0x3ec7fa[_0x592c89(0x196)](/^[./]+/,'');}async function readDigest(_0x3ccab2){const _0xee7ad=_0x30e6ff;try{const _0x1d4bb5=await _0x39e615['readFile'](_0x3ccab2);return createHash('sha256')[_0xee7ad(0x12d)](_0x1d4bb5)[_0xee7ad(0x207)]('base64');}catch(_0x591414){if(_0x591414[_0xee7ad(0x15f)]===_0xee7ad(0x146))return null;throw _0x591414;}}var program=new Command();program[_0x30e6ff(0x17c)](_0x30e6ff(0x17d))[_0x30e6ff(0x13f)](_0x30e6ff(0x15d))['version'](_0x30e6ff(0x14b)),program[_0x30e6ff(0x1b0)](_0x30e6ff(0x177))[_0x30e6ff(0x13f)](_0x30e6ff(0x1a3))[_0x30e6ff(0x171)](()=>{const _0x550a82=_0x30e6ff,_0x4b8afe=getAssetManifest();process['stdout']['write'](JSON[_0x550a82(0x219)](_0x4b8afe,null,0x2)+'\x0a');}),program[_0x30e6ff(0x1b0)](_0x30e6ff(0x151))['description'](_0x30e6ff(0x125))[_0x30e6ff(0x1fa)](_0x30e6ff(0x152),_0x30e6ff(0x135))[_0x30e6ff(0x1a9)](_0x30e6ff(0x1d5),'Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)')[_0x30e6ff(0x171)](async _0x3c1585=>{const _0x3c5a95=_0x30e6ff,_0x206cda=resolve(process['cwd'](),_0x3c1585[_0x3c5a95(0x156)]),_0x343008=await syncAssets({'publicDir':_0x206cda,'swFilename':_0x3c1585['filename']});for(const _0x430af1 of _0x343008){const _0x3415a6=relative(process[_0x3c5a95(0x15b)](),_0x430af1[_0x3c5a95(0x16b)]);_0x430af1[_0x3c5a95(0x1f8)]===_0x3c5a95(0x179)?process[_0x3c5a95(0x187)][_0x3c5a95(0x195)]('Skipped\x20'+_0x430af1[_0x3c5a95(0x211)]+'\x20(already\x20current)\x20['+_0x3415a6+']\x0a'):process[_0x3c5a95(0x187)]['write']('Copied\x20'+_0x430af1[_0x3c5a95(0x211)]+_0x3c5a95(0x198)+_0x3415a6+'\x0a');}}),program[_0x30e6ff(0x1ff)]();
package/dist/index.d.ts CHANGED
@@ -90,7 +90,7 @@ interface EnhanceAssetManifest {
90
90
  runtimeDigest: string | null;
91
91
  }
92
92
  declare const Enhance: {
93
- init(options: Parameters<typeof Enhance$1.init>[0]): EnhanceController;
93
+ init(options?: Parameters<typeof Enhance$1.init>[0]): EnhanceController;
94
94
  serviceWorkerURL(): string;
95
95
  runtimeURL(): string;
96
96
  assetManifest(): EnhanceAssetManifest;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2e9f25=_0x43ff;(function(_0x17cf35,_0x3a5797){const _0x1c27c5=_0x43ff,_0x5306d8=_0x17cf35();while(!![]){try{const _0x315d89=parseInt(_0x1c27c5(0x91))/0x1*(-parseInt(_0x1c27c5(0x11b))/0x2)+-parseInt(_0x1c27c5(0xbb))/0x3+-parseInt(_0x1c27c5(0x121))/0x4*(parseInt(_0x1c27c5(0xad))/0x5)+-parseInt(_0x1c27c5(0x6e))/0x6+-parseInt(_0x1c27c5(0xd1))/0x7+parseInt(_0x1c27c5(0x11f))/0x8*(parseInt(_0x1c27c5(0x7a))/0x9)+parseInt(_0x1c27c5(0x11e))/0xa;if(_0x315d89===_0x3a5797)break;else _0x5306d8['push'](_0x5306d8['shift']());}catch(_0x42e417){_0x5306d8['push'](_0x5306d8['shift']());}}}(_0x3f76,0xb4d12));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x2e9f25(0xef)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x2e9f25(0xcc),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x2e9f25(0xef)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x2e9f25(0xc4),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x2e9f25(0x114)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x5823ea){const _0x44c820=_0x2e9f25,_0x3b0962=_0x5823ea[_0x44c820(0xb2)]??{};return{'callbackBypass':_0x5823ea[_0x44c820(0xc0)]??[],'overlay':{'enabled':!![],'position':_0x44c820(0xdb),'enableViteHmr':_0x3b0962[_0x44c820(0xb7)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x44c820(0xd3),'swPath':_0x44c820(0xf0),'overlayPath':_0x3b0962['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x44c820(0xd4),'security':_0x3b0962[_0x44c820(0x8d)]??'permissive','backendUrl':_0x3b0962[_0x44c820(0xa5)]??DEFAULT_BACKEND_URL};}function _0x43ff(_0x3e82cf,_0x568d7b){_0x3e82cf=_0x3e82cf-0x64;const _0x3f76fc=_0x3f76();let _0x43ff92=_0x3f76fc[_0x3e82cf];return _0x43ff92;}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x16bcd9=_0x2e9f25;try{const _0x5c19d0=new URLSearchParams(window[_0x16bcd9(0xb8)]['search']);return _0x5c19d0[_0x16bcd9(0xdf)]('enhancementUrl')?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x2e9f25(0x115),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x68883c){const _0x23e30c=_0x2e9f25;console[_0x23e30c(0x114)](LOG_PREFIX+_0x23e30c(0x10b)),console[_0x23e30c(0x114)](LOG_PREFIX+_0x23e30c(0x136)+_0x68883c[_0x23e30c(0x130)]),console[_0x23e30c(0x114)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x68883c[_0x23e30c(0x108)]),currentOptions=_0x68883c['options'],toggleHandler=_0x68883c['onToggle'];if(overlayController){console[_0x23e30c(0x114)](LOG_PREFIX+_0x23e30c(0x11c)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x23e30c(0x114)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x68883c);try{await overlayLoadPromise,console['log'](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x2c9bea){console[_0x23e30c(0x7e)](LOG_PREFIX+_0x23e30c(0x98),_0x2c9bea);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4a7513){const _0x38be39=_0x2e9f25;console[_0x38be39(0x114)](LOG_PREFIX+_0x38be39(0x6c));if(typeof window===_0x38be39(0xef)){console[_0x38be39(0x114)](LOG_PREFIX+_0x38be39(0x135));return;}if(window['__enhanceOverlay']){console[_0x38be39(0x114)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x38be39(0x113)];return;}console[_0x38be39(0x114)](LOG_PREFIX+_0x38be39(0x9e));try{_0x4a7513[_0x38be39(0x108)]&&(console[_0x38be39(0x114)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x4a7513[_0x38be39(0x130)]));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x4a7513[_0x38be39(0x130)]);const _0x91d775=Date[_0x38be39(0x110)](),_0x1da9d2=await import(_0x4a7513[_0x38be39(0x130)]);console['log'](LOG_PREFIX+_0x38be39(0xc5)+(Date[_0x38be39(0x110)]()-_0x91d775)+'ms'),console['log'](LOG_PREFIX+_0x38be39(0xb4),Object[_0x38be39(0x10e)](_0x1da9d2));if(typeof _0x1da9d2?.[_0x38be39(0x112)]!==_0x38be39(0xc2)){console[_0x38be39(0x7e)](LOG_PREFIX+_0x38be39(0xc8)),console[_0x38be39(0x7e)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x38be39(0x10e)](_0x1da9d2));return;}console['log'](LOG_PREFIX+_0x38be39(0xe8));const _0x1bab6a=_0x1da9d2['createOverlay']();console[_0x38be39(0x114)](LOG_PREFIX+'\x20Controller\x20created:',_0x1bab6a),overlayController=_0x1bab6a,window[_0x38be39(0x113)]=_0x1bab6a,_0x1bab6a[_0x38be39(0x105)](_0x4a7513['onToggle']),console[_0x38be39(0x114)](LOG_PREFIX+_0x38be39(0x134)),console[_0x38be39(0x114)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x44d776){console[_0x38be39(0x7e)](LOG_PREFIX+_0x38be39(0x6f),_0x44d776);}}function updateOverlay(){const _0x2083fc=_0x2e9f25;console['log'](LOG_PREFIX+_0x2083fc(0xd8)),console[_0x2083fc(0x114)](LOG_PREFIX+_0x2083fc(0xf5)+!!overlayController),console['log'](LOG_PREFIX+_0x2083fc(0x117)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2083fc(0x114)](LOG_PREFIX+_0x2083fc(0xba));return;}const _0x35308b=composeOverlayState(currentOptions);console[_0x2083fc(0x114)](LOG_PREFIX+_0x2083fc(0x80),JSON[_0x2083fc(0xf7)](_0x35308b,null,0x2)),overlayController[_0x2083fc(0xe5)](_0x35308b),console[_0x2083fc(0x114)](LOG_PREFIX+_0x2083fc(0x79));}function composeOverlayState(_0x284af8){const _0x3bb7df=_0x2e9f25,_0x38a0ed=getEnhancementUrl();return console[_0x3bb7df(0x114)](LOG_PREFIX+_0x3bb7df(0xb0)+_0x38a0ed),console[_0x3bb7df(0x114)](LOG_PREFIX+_0x3bb7df(0x7d)+state['enabled']),console[_0x3bb7df(0x114)](LOG_PREFIX+_0x3bb7df(0xc1)+state[_0x3bb7df(0x89)]),{'enhancementUrl':_0x38a0ed,'enabled':state[_0x3bb7df(0x72)],'controlled':state[_0x3bb7df(0x89)],'overlayPosition':_0x284af8[_0x3bb7df(0xe2)][_0x3bb7df(0x68)],'securityMode':_0x284af8['security'],'backendBaseUrl':_0x284af8[_0x3bb7df(0xa5)],'appError':state[_0x3bb7df(0xec)]};}async function setupRemoteHMR(_0x3598a1){const _0x3356ee=_0x2e9f25;console['log'](LOG_PREFIX+_0x3356ee(0x120)+_0x3598a1);if(typeof window==='undefined')return;try{const _0x4f34aa=new URL(_0x3598a1,window['location'][_0x3356ee(0xb1)]),_0x3e92b5=_0x4f34aa['origin'];console['log'](LOG_PREFIX+_0x3356ee(0xa3)+_0x3e92b5+_0x3356ee(0xb9)+window[_0x3356ee(0xb8)]['origin']);if(_0x3e92b5===window[_0x3356ee(0xb8)][_0x3356ee(0xb1)]){console['log'](LOG_PREFIX+_0x3356ee(0xa7));return;}console[_0x3356ee(0x114)](LOG_PREFIX+_0x3356ee(0x97)),await ensureReactRefreshPreamble(_0x3e92b5),await ensureViteClient(_0x3e92b5),console[_0x3356ee(0x114)](LOG_PREFIX+_0x3356ee(0xea));}catch(_0x4ee93b){console[_0x3356ee(0xf1)](LOG_PREFIX+_0x3356ee(0x9a),_0x4ee93b);}}async function ensureReactRefreshPreamble(_0x4e004d){const _0x38f746=_0x2e9f25;window[_0x38f746(0x90)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x4e004d)){console[_0x38f746(0x114)](LOG_PREFIX+_0x38f746(0x67)+_0x4e004d);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x4e004d+'...');const _0x3d15d2=await import(_0x4e004d+_0x38f746(0x64)),_0x448432=_0x3d15d2&&typeof _0x3d15d2==='object'&&'default'in _0x3d15d2?_0x3d15d2[_0x38f746(0xd2)]:_0x3d15d2;if(!isRefreshRuntime(_0x448432)){console['warn'](LOG_PREFIX+_0x38f746(0x95));return;}_0x448432['injectIntoGlobalHook'](window),window[_0x38f746(0xe4)]=()=>{},window[_0x38f746(0x88)]=()=>_0x37e8be=>_0x37e8be,window[_0x38f746(0xb6)]=!![],window[_0x38f746(0x90)][_0x38f746(0x11d)](_0x4e004d),console[_0x38f746(0x114)](LOG_PREFIX+_0x38f746(0x101)+_0x4e004d);}async function ensureViteClient(_0x27f569){const _0x22fc8b=_0x2e9f25;window[_0x22fc8b(0x100)]??=new Set();if(window['__viteHMRLoaded'][_0x22fc8b(0xdd)](_0x27f569)){console[_0x22fc8b(0x114)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x27f569);return;}console[_0x22fc8b(0x114)](LOG_PREFIX+_0x22fc8b(0x8a)+_0x27f569+'...'),await import(_0x27f569+'/@vite/client'),window[_0x22fc8b(0x100)][_0x22fc8b(0x11d)](_0x27f569),console[_0x22fc8b(0x114)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x27f569);}function isRefreshRuntime(_0xa2e956){const _0x3986cb=_0x2e9f25;return typeof _0xa2e956==='object'&&_0xa2e956!==null&&'injectIntoGlobalHook'in _0xa2e956&&typeof _0xa2e956[_0x3986cb(0x8b)]===_0x3986cb(0xc2);}var WORKER_MESSAGE_CONFIG=_0x2e9f25(0x103),WORKER_MESSAGE_DISABLE=_0x2e9f25(0xa2),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x494810){const _0x26dbda=_0x2e9f25;console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x83)),console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0xb3)+_0x494810[_0x26dbda(0xc9)]);if(!('serviceWorker'in navigator)){console[_0x26dbda(0xf1)](LOG_PREFIX2+_0x26dbda(0x6a));return;}console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0xf6));const _0x592d3d=navigator[_0x26dbda(0xa9)][_0x26dbda(0xeb)];console['log'](LOG_PREFIX2+_0x26dbda(0xd5),_0x592d3d?.['scriptURL']??_0x26dbda(0xce)),console['log'](LOG_PREFIX2+_0x26dbda(0x8e),_0x592d3d?.['state']??_0x26dbda(0xb5));const _0x440cf9=!!_0x592d3d;currentOptions2=_0x494810,console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x65));const _0x12f60c=await detectBlockingServiceWorker(_0x494810['swPath']);if(_0x12f60c){console[_0x26dbda(0x7e)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x12f60c),console['error'](LOG_PREFIX2+_0x26dbda(0x129));return;}console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x122));try{console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x10d)+_0x494810['swPath']+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x26dbda(0xa9)]['register'](_0x494810['swPath'],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x26dbda(0x7c),{'scope':registration['scope'],'active':registration['active']?.['scriptURL'],'waiting':registration[_0x26dbda(0xc7)]?.[_0x26dbda(0xa4)],'installing':registration[_0x26dbda(0x125)]?.[_0x26dbda(0xa4)]}),console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0xac));const _0x98692e=await navigator[_0x26dbda(0xa9)][_0x26dbda(0x6d)];console['log'](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x98692e['active']?.[_0x26dbda(0xa4)]);const _0x3b534a=ownsCurrentController(_0x494810[_0x26dbda(0xc9)]);state['controlled']=_0x3b534a,console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x107)+_0x3b534a),console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x106),navigator[_0x26dbda(0xa9)]['controller']?.[_0x26dbda(0xa4)]??_0x26dbda(0xce));if(!_0x440cf9&&!navigator['serviceWorker'][_0x26dbda(0xeb)]){console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x71)),window[_0x26dbda(0xb8)][_0x26dbda(0x7b)]();return;}console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0xfe)),await sendConfiguration();if(state[_0x26dbda(0x72)]){const _0x36027b=document[_0x26dbda(0xe9)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0x12e)+_0x36027b);if(!_0x36027b){console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0xf2)),window[_0x26dbda(0xb8)][_0x26dbda(0x7b)]();return;}}console['log'](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x26dbda(0x114)](LOG_PREFIX2+_0x26dbda(0xe0));}catch(_0x24e28e){console[_0x26dbda(0x7e)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x24e28e);}}async function sendConfiguration(){const _0x2dc1e0=_0x2e9f25;console[_0x2dc1e0(0x114)](LOG_PREFIX2+_0x2dc1e0(0x102)),console[_0x2dc1e0(0x114)](LOG_PREFIX2+_0x2dc1e0(0x86)+state[_0x2dc1e0(0x72)]+_0x2dc1e0(0x73)+!!currentOptions2);if(!state[_0x2dc1e0(0x72)]||!currentOptions2){console[_0x2dc1e0(0x114)](LOG_PREFIX2+_0x2dc1e0(0xc3));return;}const _0xec2d34=await resolveWorker();if(!_0xec2d34){console[_0x2dc1e0(0xf1)](LOG_PREFIX2+_0x2dc1e0(0x96));return;}const _0x54ca02={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2['security']};console[_0x2dc1e0(0x114)](LOG_PREFIX2+_0x2dc1e0(0xf9),JSON[_0x2dc1e0(0xf7)](_0x54ca02,null,0x2)),_0xec2d34[_0x2dc1e0(0x8c)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x54ca02}),console[_0x2dc1e0(0x114)](LOG_PREFIX2+_0x2dc1e0(0x12c));}async function unregisterServiceWorker(_0x5ad379){const _0x43d60a=_0x2e9f25;console[_0x43d60a(0x114)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console[_0x43d60a(0x114)](LOG_PREFIX2+_0x43d60a(0x85));return;}try{const _0xee0937=registration??await navigator['serviceWorker'][_0x43d60a(0x9d)]('/');if(!_0xee0937){console[_0x43d60a(0x114)](LOG_PREFIX2+_0x43d60a(0x133));return;}console['log'](LOG_PREFIX2+_0x43d60a(0x93),{'scope':_0xee0937['scope'],'active':_0xee0937[_0x43d60a(0xee)]?.['scriptURL'],'waiting':_0xee0937[_0x43d60a(0xc7)]?.['scriptURL'],'installing':_0xee0937[_0x43d60a(0x125)]?.[_0x43d60a(0xa4)]});const _0x2578c2=[_0xee0937['active']?.[_0x43d60a(0xa4)],_0xee0937['waiting']?.[_0x43d60a(0xa4)],_0xee0937[_0x43d60a(0x125)]?.['scriptURL']],_0x3958e9=_0x2578c2[_0x43d60a(0xdc)](_0x4d5b0a=>_0x4d5b0a&&ownsServiceWorker(_0x4d5b0a,_0x5ad379));if(!_0x3958e9){console[_0x43d60a(0x114)](LOG_PREFIX2+_0x43d60a(0xe3));return;}_0xee0937['active']&&(console[_0x43d60a(0x114)](LOG_PREFIX2+_0x43d60a(0xab)),_0xee0937['active'][_0x43d60a(0x8c)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x43d60a(0x114)](LOG_PREFIX2+_0x43d60a(0x74)),await _0xee0937[_0x43d60a(0x69)](),registration=null,currentOptions2=null,console[_0x43d60a(0x114)](LOG_PREFIX2+_0x43d60a(0xa0));}catch(_0x3c377f){console[_0x43d60a(0x7e)](LOG_PREFIX2+_0x43d60a(0xae),_0x3c377f);}}function ownsServiceWorker(_0x28b618,_0x5266cb){const _0x40b6e7=_0x2e9f25,_0x364cfc=typeof window!==_0x40b6e7(0xef)?window[_0x40b6e7(0xb8)]['origin']:'',_0x346a5d=new URL(_0x5266cb,_0x364cfc||void 0x0)['href'],_0x3cea22=_0x28b618===_0x346a5d||_0x28b618['includes'](_0x40b6e7(0x75));return console[_0x40b6e7(0x114)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x28b618+',\x20expected='+_0x346a5d+_0x40b6e7(0x127)+_0x3cea22),_0x3cea22;}function ownsCurrentController(_0x328c4f){const _0x5028a5=_0x2e9f25;if(typeof navigator===_0x5028a5(0xef))return![];const _0x2584f0=navigator[_0x5028a5(0xa9)]?.[_0x5028a5(0xeb)];if(!_0x2584f0)return console['log'](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x2584f0[_0x5028a5(0xa4)],_0x328c4f);}async function detectBlockingServiceWorker(_0x5e4d85){const _0x178009=_0x2e9f25;if(!navigator[_0x178009(0xa9)])return null;try{const _0x9ef595=await navigator['serviceWorker']['getRegistration']('/');console[_0x178009(0x114)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x9ef595?.[_0x178009(0xee)]?.[_0x178009(0xa4)]??'none');const _0x2a5b5b=_0x9ef595?.[_0x178009(0xee)]?.[_0x178009(0xa4)];if(!_0x2a5b5b)return null;if(ownsServiceWorker(_0x2a5b5b,_0x5e4d85))return null;return _0x2a5b5b;}catch(_0x132f62){return console[_0x178009(0x7e)](LOG_PREFIX2+_0x178009(0x132),_0x132f62),null;}}async function resolveWorker(){const _0x2b3a52=_0x2e9f25,_0x2e697f=registration??await navigator[_0x2b3a52(0xa9)]?.[_0x2b3a52(0x9d)]('/'),_0x9e7f31=_0x2e697f?.['active']??_0x2e697f?.[_0x2b3a52(0xc7)]??_0x2e697f?.[_0x2b3a52(0x125)]??null;return console[_0x2b3a52(0x114)](LOG_PREFIX2+_0x2b3a52(0xfd),_0x9e7f31?.[_0x2b3a52(0xa4)]??_0x2b3a52(0xce),_0x2b3a52(0x92)+(_0x9e7f31?.[_0x2b3a52(0xf8)]??_0x2b3a52(0xb5))),_0x9e7f31;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x312bbe=_0x2e9f25;return typeof window!==_0x312bbe(0xef)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x55a512){const _0x51022e=_0x2e9f25;typeof window!=='undefined'&&(window[_0x51022e(0xa1)]=_0x55a512);}function getOptions(){const _0x389efa=_0x2e9f25;return typeof window!=='undefined'?window[_0x389efa(0xfb)]??null:null;}function setOptions(_0x45a5c8){const _0x32df26=_0x2e9f25;typeof window!=='undefined'&&(window[_0x32df26(0xfb)]=_0x45a5c8);}var Enhance={'init'(_0x194fe7={}){const _0x393c50=_0x2e9f25,_0x365cdc=Date['now']();console[_0x393c50(0x114)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x365cdc),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x118)+window[_0x393c50(0xb8)]['href']),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0xcf)+document[_0x393c50(0x82)]),console['log'](LOG_PREFIX3+_0x393c50(0xa8),JSON[_0x393c50(0xf7)](_0x194fe7,null,0x2));if(isInitialized())return console[_0x393c50(0xf1)](LOG_PREFIX3+_0x393c50(0x119)),window[_0x393c50(0x124)]??createController();setInitialized(!![]),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x77));const _0x1b20ac=normalizeOptions(_0x194fe7);setOptions(_0x1b20ac),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x9f),JSON[_0x393c50(0xf7)](_0x1b20ac,null,0x2));const _0x497c54=parseUrlParams();console['log'](LOG_PREFIX3+_0x393c50(0xbf),JSON[_0x393c50(0xf7)](_0x497c54,null,0x2));if(_0x497c54[_0x393c50(0x8f)])return cleanUrlParam(_0x393c50(0x76)),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x104)),createController();if(_0x497c54[_0x393c50(0x131)])return console['log'](LOG_PREFIX3+_0x393c50(0x94)),console['log'](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x497c54[_0x393c50(0xed)]),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x128)+_0x497c54[_0x393c50(0x81)]),state[_0x393c50(0x72)]=!![],console['log'](LOG_PREFIX3+_0x393c50(0xf3)),void loadOverlay({'overlayPath':_0x1b20ac[_0x393c50(0x130)],'enableViteHmr':_0x1b20ac['overlay'][_0x393c50(0x108)],'options':_0x1b20ac,'onToggle':handleToggle}),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x87)),void registerServiceWorker(_0x1b20ac),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x78)),createController();return console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0xbd)),console[_0x393c50(0x114)](LOG_PREFIX3+_0x393c50(0x66)),void unregisterServiceWorker(_0x1b20ac['swPath']),console[_0x393c50(0x114)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x393c50(0xbe)),import.meta.hot['on']('vite:error',_0x4a40d0=>{const _0x104c4b=_0x393c50;console[_0x104c4b(0x114)](LOG_PREFIX3+_0x104c4b(0x10a),_0x4a40d0),state[_0x104c4b(0xec)]={'message':_0x4a40d0[_0x104c4b(0xcb)][_0x104c4b(0x111)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x1c0eae=_0x393c50;state['appError']&&(console[_0x1c0eae(0x114)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x1c0eae(0xec)]=null,updateOverlay());})),createController();}};function createController(){const _0x236e32=_0x2e9f25,_0x321f97={'enable'(){const _0x507181=_0x43ff,_0x2e017f=getOptions();if(!_0x2e017f)return;state[_0x507181(0x72)]=!![],void loadOverlay({'overlayPath':_0x2e017f[_0x507181(0x130)],'enableViteHmr':_0x2e017f[_0x507181(0xe2)][_0x507181(0x108)],'options':_0x2e017f,'onToggle':handleToggle}),void registerServiceWorker(_0x2e017f),void sendConfiguration(),updateOverlay();},'disable'(){const _0x30c150=_0x43ff,_0x35f7ac=getOptions();if(!_0x35f7ac)return;state[_0x30c150(0x72)]=![],state[_0x30c150(0x89)]=![],updateOverlay(),void unregisterServiceWorker(_0x35f7ac[_0x30c150(0xc9)]);},'status'(){const _0xa2a18f=_0x43ff;return{'enabled':state[_0xa2a18f(0x72)],'controlled':state[_0xa2a18f(0x89)]};}};return typeof window!==_0x236e32(0xef)&&(window[_0x236e32(0x124)]=_0x321f97),_0x321f97;}function handleToggle(){const _0x4c1031=_0x2e9f25,_0x33d7cc=createController();state[_0x4c1031(0x72)]?_0x33d7cc['disable']():_0x33d7cc[_0x4c1031(0x123)]();}function parseUrlParams(){const _0x4d42f4=_0x2e9f25,_0x17ed1f=new URL(window['location']['href']),_0x1a749e=_0x17ed1f[_0x4d42f4(0xbc)][_0x4d42f4(0xdf)](_0x4d42f4(0x76))?.[_0x4d42f4(0xff)](),_0x178505=_0x17ed1f[_0x4d42f4(0xbc)][_0x4d42f4(0xdf)]('enhancementUrl'),_0x3c955b=_0x17ed1f[_0x4d42f4(0xbc)][_0x4d42f4(0xdf)](_0x4d42f4(0x12f));return{'hasEnhancement':Boolean(_0x178505||_0x3c955b),'explicitDisable':_0x1a749e==='0'||_0x1a749e===_0x4d42f4(0xcd)||_0x1a749e===_0x4d42f4(0x7f),'enhancementUrl':_0x178505,'enhancementId':_0x3c955b};}function cleanUrlParam(_0x4f0324){const _0x48cd88=_0x2e9f25,_0x1659a8=new URL(window['location'][_0x48cd88(0xc6)]);_0x1659a8[_0x48cd88(0xbc)][_0x48cd88(0xdd)](_0x4f0324)&&(_0x1659a8[_0x48cd88(0xbc)]['delete'](_0x4f0324),window[_0x48cd88(0x9b)][_0x48cd88(0xaa)](null,document['title'],_0x1659a8[_0x48cd88(0x126)]()));}var package_default={'name':_0x2e9f25(0xca),'version':_0x2e9f25(0x70),'type':_0x2e9f25(0x84),'description':_0x2e9f25(0x11a),'license':_0x2e9f25(0xe1),'main':_0x2e9f25(0x6b),'module':_0x2e9f25(0x6b),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x2e9f25(0xd9),'import':_0x2e9f25(0x6b)},'./vite':{'types':'./dev/vite/index.d.ts','import':_0x2e9f25(0xa6)}},'files':[_0x2e9f25(0xde)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x2e9f25(0x9c),'dev':_0x2e9f25(0xfc),'dev:build':_0x2e9f25(0xf4),'dev:staging':_0x2e9f25(0xd0),'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':_0x2e9f25(0x109),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','version':_0x2e9f25(0x10c)},'dependencies':{'commander':_0x2e9f25(0x12b),'zod':_0x2e9f25(0xaf)},'devDependencies':{'@types/node':_0x2e9f25(0xe6),'javascript-obfuscator':_0x2e9f25(0x12d),'tsup':_0x2e9f25(0x10f),'vite':_0x2e9f25(0xe7)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x2e9f25(0xf0),DEFAULT_RUNTIME_PATH=_0x2e9f25(0xd4),PACKAGE_VERSION=typeof package_default['version']===_0x2e9f25(0x99)?package_default['version']:_0x2e9f25(0xd7);function normalizeAssetPath(_0x3247fd){const _0x478444=_0x2e9f25;if(!_0x3247fd)return _0x3247fd;if(_0x3247fd[_0x478444(0xfa)](_0x478444(0x116))||_0x3247fd[_0x478444(0xfa)](_0x478444(0xda)))return _0x3247fd;const _0x5bf307=_0x3247fd['replace'](/^\.\//,'');return _0x5bf307[_0x478444(0xfa)]('/')?_0x5bf307:'/'+_0x5bf307;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x33f96a){return Enhance['init'](_0x33f96a);},'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 _0x14634e=_0x2e9f25;return Enhance2[_0x14634e(0xd6)]();}function runtimeURL(){const _0xa63a91=_0x2e9f25;return Enhance2[_0xa63a91(0x12a)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};function _0x3f76(){const _0x5845e5=['__enhanceOverlay','log','[Enhance\x20Overlay]','http://','\x20currentOptions\x20exists:\x20','\x20Current\x20URL:\x20','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','1299500PkhBNT','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','add','40133710Zjwnnb','297576LlfApf','\x20setupRemoteHMR()\x20for\x20','119256YTWSuq','\x20No\x20blocking\x20SW\x20found','enable','__enhanceController','installing','toString',',\x20owns=','\x20enhancementId:\x20','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','runtimeURL','^11.1.0','\x20Config\x20sent\x20to\x20SW','^4.1.1','\x20Enhancement\x20detection:\x20wasEnhanced=','enhancement','overlayPath','hasEnhancement','\x20detectBlocking\x20error:','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20No\x20window\x20object\x20-\x20skipping','\x20overlayPath:\x20','/@react-refresh','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Unregistering\x20any\x20existing\x20SW...','\x20React\x20Refresh\x20already\x20installed\x20for\x20','position','unregister','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','./dev/index.js','\x20doLoadOverlay()\x20starting...','ready','985506rJMblj','\x20Failed\x20to\x20import/create\x20overlay:','0.3.20','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','enabled',',\x20currentOptions:\x20','\x20Unregistering\x20SW...','sw-enhance','enhance','\x20First\x20initialization','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Overlay\x20update\x20complete','171TkgWJD','reload','\x20Registration\x20returned:','\x20composeOverlayState\x20-\x20state.enabled:\x20','error','off','\x20Updating\x20overlay\x20with\x20state:','enhancementId','readyState','\x20registerServiceWorker()\x20called','module','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20state.enabled:\x20','\x20Starting\x20SW\x20registration\x20(async)...','$RefreshSig$','controlled','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','injectIntoGlobalHook','postMessage','security','\x20Controller\x20state:','explicitDisable','__enhanceReactRefreshInstalledOrigins','2cgWLcw','state:\x20','\x20Found\x20registration:','\x20Enhancement\x20mode\x20ENABLED','\x20Invalid\x20React\x20Refresh\x20runtime','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20loadOverlay()\x20failed:','string','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','history','tsc\x20--noEmit','getRegistration','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Normalized\x20options:','\x20SW\x20unregistered\x20successfully','__enhanceInitialized','enhance:disable','\x20Overlay\x20origin:\x20','scriptURL','backendUrl','./dev/vite/index.js','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Raw\x20options:','serviceWorker','replaceState','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','135reDkYY','\x20Failed\x20to\x20unregister\x20service\x20worker:','^3.22.4','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','origin','__development','\x20swPath:\x20','\x20Module\x20exports:','N/A','__vite_plugin_react_preamble_installed__','enableOverlayHmr','location',',\x20page\x20origin:\x20','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','1043811LZDsMv','searchParams','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20URL\x20params\x20parsed:','callbackBypass','\x20composeOverlayState\x20-\x20state.controlled:\x20','function','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','https://api.enhancelabs.ai','\x20Module\x20imported\x20in\x20','href','waiting','\x20Module\x20missing\x20createOverlay\x20export!','swPath','@enhance-eng/sandbox','err','https://assets.enhancelabs.ai/overlay.js','false','none','\x20Document\x20readyState:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','9539754QvTAdW','default','info','/assets/enhance-runtime.js','\x20Current\x20controller:','serviceWorkerURL','0.0.0','\x20updateOverlay()\x20called','./dev/index.d.ts','https://','bottom-right','some','has','dev/','get','\x20registerServiceWorker()\x20complete','MIT','overlay','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','$RefreshReg$','update','^24.10.1','^7.2.4','\x20Calling\x20createOverlay()...','querySelector','\x20HMR\x20setup\x20complete','controller','appError','enhancementUrl','active','undefined','/sw-enhance.js','warn','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Starting\x20overlay\x20load\x20(async)...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20overlayController\x20exists:\x20','\x20Service\x20workers\x20supported','stringify','state','\x20Sending\x20customer\x20config\x20to\x20SW:','startsWith','__enhanceOptions','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20resolveWorker:','\x20Sending\x20customer\x20configuration...','toLowerCase','__viteHMRLoaded','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20sendConfiguration()\x20called','enhance:configure','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','onToggle','\x20Current\x20controller\x20after\x20ready:','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','enableViteHmr','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Vite\x20error\x20detected:','\x20loadOverlay()\x20called','bun\x20version\x20patch\x20--no-git-tag-version','\x20Registering\x20SW\x20at\x20','keys','^8.5.1','now','message','createOverlay'];_0x3f76=function(){return _0x5845e5;};return _0x3f76();}
1
+ const _0x1179fb=_0x1bdb;(function(_0x5c1a6c,_0x52586b){const _0x29ead6=_0x1bdb,_0x267843=_0x5c1a6c();while(!![]){try{const _0x1a293a=parseInt(_0x29ead6(0x68))/0x1+parseInt(_0x29ead6(0xe4))/0x2+-parseInt(_0x29ead6(0x8d))/0x3+parseInt(_0x29ead6(0x102))/0x4+-parseInt(_0x29ead6(0xf3))/0x5*(-parseInt(_0x29ead6(0x112))/0x6)+parseInt(_0x29ead6(0x8a))/0x7+parseInt(_0x29ead6(0x9a))/0x8*(-parseInt(_0x29ead6(0x130))/0x9);if(_0x1a293a===_0x52586b)break;else _0x267843['push'](_0x267843['shift']());}catch(_0x33e8f7){_0x267843['push'](_0x267843['shift']());}}}(_0x57f9,0xc246d));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x1179fb(0xa8)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x1179fb(0xb1),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x1179fb(0xa8)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x1179fb(0x121),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x1179fb(0xa8)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x1179fb(0x107)](_0x1179fb(0xc7),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x4c9f4d){const _0x58b12b=_0x1179fb,_0x58d1de=_0x4c9f4d['__development']??{};return{'callbackBypass':_0x4c9f4d[_0x58b12b(0x84)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x58d1de['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':'/sw-enhance.js','overlayPath':_0x58d1de['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x58b12b(0xf8),'security':_0x58d1de['security']??'permissive','backendUrl':_0x58d1de[_0x58b12b(0xe2)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x4a9d89=_0x1179fb;try{const _0x305a39=new URLSearchParams(window['location']['search']);return _0x305a39['get'](_0x4a9d89(0x108))?.[_0x4a9d89(0xfa)]()||'';}catch{return'';}}var LOG_PREFIX=_0x1179fb(0x12e),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x184864){const _0xeb7534=_0x1179fb;console[_0xeb7534(0x107)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console['log'](LOG_PREFIX+_0xeb7534(0xe6)+_0x184864[_0xeb7534(0xec)]),console[_0xeb7534(0x107)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x184864['enableViteHmr']),currentOptions=_0x184864['options'],toggleHandler=_0x184864[_0xeb7534(0x118)];if(overlayController){console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0x96)),updateOverlay();return;}if(overlayLoadPromise)return console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0xc8)),overlayLoadPromise;console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0xdf)),overlayLoadPromise=doLoadOverlay(_0x184864);try{await overlayLoadPromise,console[_0xeb7534(0x107)](LOG_PREFIX+_0xeb7534(0xd9));}catch(_0x317fe0){console[_0xeb7534(0xd6)](LOG_PREFIX+_0xeb7534(0x10e),_0x317fe0);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x52a95b){const _0x5dace8=_0x1179fb;console[_0x5dace8(0x107)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x5dace8(0xa8)){console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x12c));return;}if(window['__enhanceOverlay']){console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x80)),overlayController=window[_0x5dace8(0x9c)];return;}console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x8b));try{_0x52a95b[_0x5dace8(0x97)]&&(console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0x103)),await setupRemoteHMR(_0x52a95b[_0x5dace8(0xec)]));console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0xfb)+_0x52a95b[_0x5dace8(0xec)]);const _0x4d388b=Date[_0x5dace8(0x7c)](),_0x168b1f=await import(_0x52a95b[_0x5dace8(0xec)]);console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0xde)+(Date[_0x5dace8(0x7c)]()-_0x4d388b)+'ms'),console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x168b1f));if(typeof _0x168b1f?.['createOverlay']!=='function'){console[_0x5dace8(0xd6)](LOG_PREFIX+_0x5dace8(0x6e)),console[_0x5dace8(0xd6)](LOG_PREFIX+_0x5dace8(0xf2),Object[_0x5dace8(0x82)](_0x168b1f));return;}console[_0x5dace8(0x107)](LOG_PREFIX+_0x5dace8(0xc1));const _0x118e22=_0x168b1f['createOverlay']();console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Controller\x20created:',_0x118e22),overlayController=_0x118e22,window[_0x5dace8(0x9c)]=_0x118e22,_0x118e22[_0x5dace8(0x118)](_0x52a95b[_0x5dace8(0x118)]),console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x5dace8(0x107)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x388a6d){console[_0x5dace8(0xd6)](LOG_PREFIX+_0x5dace8(0xe5),_0x388a6d);}}function updateOverlay(){const _0x23c1f3=_0x1179fb;console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0x133)),console['log'](LOG_PREFIX+_0x23c1f3(0xa5)+!!overlayController),console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0x87)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0xa0));return;}const _0x296015=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x23c1f3(0xe7),JSON['stringify'](_0x296015,null,0x2)),overlayController[_0x23c1f3(0x75)](_0x296015),console[_0x23c1f3(0x107)](LOG_PREFIX+_0x23c1f3(0xe8));}function composeOverlayState(_0x3877c8){const _0x264156=_0x1179fb,_0x425fac=getEnhancementUrl();return console[_0x264156(0x107)](LOG_PREFIX+_0x264156(0xb8)+_0x425fac),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x264156(0x10b)]),console[_0x264156(0x107)](LOG_PREFIX+_0x264156(0x123)+state[_0x264156(0x134)]),{'enhancementUrl':_0x425fac,'enabled':state[_0x264156(0x10b)],'controlled':state[_0x264156(0x134)],'overlayPosition':_0x3877c8[_0x264156(0xee)][_0x264156(0x11e)],'securityMode':_0x3877c8[_0x264156(0x12d)],'backendBaseUrl':_0x3877c8[_0x264156(0xe2)],'appError':state['appError']};}async function setupRemoteHMR(_0x1229fb){const _0x26ef2d=_0x1179fb;console[_0x26ef2d(0x107)](LOG_PREFIX+_0x26ef2d(0x92)+_0x1229fb);if(typeof window===_0x26ef2d(0xa8))return;try{const _0x3ec29a=new URL(_0x1229fb,window['location'][_0x26ef2d(0xc9)]),_0x4bf65e=_0x3ec29a[_0x26ef2d(0xc9)];console[_0x26ef2d(0x107)](LOG_PREFIX+_0x26ef2d(0xdb)+_0x4bf65e+',\x20page\x20origin:\x20'+window['location']['origin']);if(_0x4bf65e===window[_0x26ef2d(0x91)]['origin']){console[_0x26ef2d(0x107)](LOG_PREFIX+_0x26ef2d(0x11b));return;}console[_0x26ef2d(0x107)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x4bf65e),await ensureViteClient(_0x4bf65e),console['log'](LOG_PREFIX+_0x26ef2d(0xfd));}catch(_0x3783ce){console[_0x26ef2d(0xd7)](LOG_PREFIX+_0x26ef2d(0x89),_0x3783ce);}}async function ensureReactRefreshPreamble(_0x3a25f0){const _0xd1ea8e=_0x1179fb;window[_0xd1ea8e(0x101)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x3a25f0)){console[_0xd1ea8e(0x107)](LOG_PREFIX+_0xd1ea8e(0x8c)+_0x3a25f0);return;}console[_0xd1ea8e(0x107)](LOG_PREFIX+_0xd1ea8e(0x9b)+_0x3a25f0+_0xd1ea8e(0xbf));const _0x3f0d41=await import(_0x3a25f0+_0xd1ea8e(0xcd)),_0x45eca3=_0x3f0d41&&typeof _0x3f0d41===_0xd1ea8e(0xc5)&&_0xd1ea8e(0x131)in _0x3f0d41?_0x3f0d41[_0xd1ea8e(0x131)]:_0x3f0d41;if(!isRefreshRuntime(_0x45eca3)){console[_0xd1ea8e(0xd7)](LOG_PREFIX+_0xd1ea8e(0x120));return;}_0x45eca3[_0xd1ea8e(0xcc)](window),window['$RefreshReg$']=()=>{},window[_0xd1ea8e(0x6c)]=()=>_0xdb112a=>_0xdb112a,window['__vite_plugin_react_preamble_installed__']=!![],window['__enhanceReactRefreshInstalledOrigins'][_0xd1ea8e(0xf7)](_0x3a25f0),console[_0xd1ea8e(0x107)](LOG_PREFIX+_0xd1ea8e(0x127)+_0x3a25f0);}async function ensureViteClient(_0x3d9b40){const _0x570b33=_0x1179fb;window['__viteHMRLoaded']??=new Set();if(window[_0x570b33(0xeb)][_0x570b33(0x85)](_0x3d9b40)){console[_0x570b33(0x107)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x3d9b40);return;}console[_0x570b33(0x107)](LOG_PREFIX+_0x570b33(0xed)+_0x3d9b40+_0x570b33(0xbf)),await import(_0x3d9b40+'/@vite/client'),window[_0x570b33(0xeb)][_0x570b33(0xf7)](_0x3d9b40),console[_0x570b33(0x107)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x3d9b40);}function _0x57f9(){const _0x4bdb6b=['Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20SW\x20unregistered\x20successfully','^4.1.1','reload','error','warn','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20loadOverlay()\x20complete','querySelector','\x20Overlay\x20origin:\x20','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Module\x20imported\x20in\x20','\x20Starting\x20fresh\x20overlay\x20load...','0.3.20','\x20unregisterServiceWorker()\x20called','backendUrl','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','867462FqrwZZ','\x20Failed\x20to\x20import/create\x20overlay:','\x20overlayPath:\x20','\x20Updating\x20overlay\x20with\x20state:','\x20Overlay\x20update\x20complete','get','scope','__viteHMRLoaded','overlayPath','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','overlay','\x20enhancementUrl:\x20','^24.10.1','serviceWorker','\x20Available\x20exports:','1215yCbGLu','[Enhance\x20Runtime]','toLowerCase','state','add','/assets/enhance-runtime.js','\x20ownsServiceWorker?\x20scriptURL=','trim','\x20Importing\x20overlay\x20module\x20from:\x20','waiting','\x20HMR\x20setup\x20complete','\x20Enhancement\x20detection:\x20wasEnhanced=','__enhanceOptions','init','__enhanceReactRefreshInstalledOrigins','3730660hRTdiQ','\x20Setting\x20up\x20remote\x20HMR...','serviceWorkerURL','swPath','startsWith','log','enhancementUrl','delete',',\x20owns=','enabled','__enhanceController','\x20sendConfiguration()\x20called','\x20loadOverlay()\x20failed:','\x20init()\x20complete\x20-\x20normal\x20mode','\x20swPath:\x20','\x20Updating\x20overlay...','20154DhwWcW','\x20state.enabled:\x20','none','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','stringify','function','onToggle','\x20Enhancement\x20mode\x20ENABLED','href','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','N/A','runtimeURL','position','\x20Starting\x20overlay\x20load\x20(async)...','\x20Invalid\x20React\x20Refresh\x20runtime','https://api.enhancelabs.ai','\x20Vite\x20error\x20detected:','\x20composeOverlayState\x20-\x20state.controlled:\x20',',\x20expected=','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','enable','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','^8.5.1','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','readyState','\x20No\x20window\x20object\x20-\x20skipping','security','[Enhance\x20Overlay]','^3.22.4','31406571jbUCQb','default','sw-enhance','\x20updateOverlay()\x20called','controlled','\x20URL\x20params\x20parsed:','postMessage','vite:beforeUpdate','\x20enhancementId:\x20','register','http://','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','713532IcSpmw','unregister','\x20Current\x20controller:','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','$RefreshSig$','false','\x20Module\x20missing\x20createOverlay\x20export!','./dev/cli.js','0.0.0','version','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20Unregistering\x20SW...','getRegistration','update','err','MIT','__enhanceInitialized','off','module','explicitDisable','now','\x20resolveWorker:','history','\x20Document\x20readyState:\x20','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','toString','keys','https://','callbackBypass','has','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20currentOptions\x20exists:\x20','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','10245256knRMJb','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20React\x20Refresh\x20already\x20installed\x20for\x20','223191IrCVRn','ready','vite:error','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','location','\x20setupRemoteHMR()\x20for\x20','message','\x20Controller\x20state:','./dev/index.js','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','enableViteHmr','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','replaceState','8fVpCxb','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','__enhanceOverlay','active','title','enhancementId','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','includes','\x20BLOCKING\x20SW\x20detected:\x20','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','enhance:disable','\x20overlayController\x20exists:\x20','\x20Checking\x20for\x20blocking\x20service\x20worker...','^7.2.4','undefined','\x20Failed\x20to\x20unregister\x20service\x20worker:','/sw-enhance.js','\x20detectBlocking\x20error:','disable','\x20Found\x20registration:','state:\x20','[Enhance\x20SW-Client]','^11.1.0','https://assets.enhancelabs.ai/overlay.js','\x20Current\x20URL:\x20','@enhance-eng/sandbox','scriptURL','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','appError','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','bun\x20version\x20patch\x20--no-git-tag-version','searchParams','public','\x20Current\x20controller\x20after\x20ready:','\x20Config\x20sent\x20to\x20SW','controller','...','replace','\x20Calling\x20createOverlay()...','dev/','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','installing','object','\x20SW\x20ready!\x20Active:','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','origin','\x20Raw\x20options:','\x20Registration\x20returned:','injectIntoGlobalHook','/@react-refresh','\x20registerServiceWorker()\x20complete','./dev/vite/index.js','\x20First\x20initialization'];_0x57f9=function(){return _0x4bdb6b;};return _0x57f9();}function isRefreshRuntime(_0xf12236){const _0x4d3e0b=_0x1179fb;return typeof _0xf12236===_0x4d3e0b(0xc5)&&_0xf12236!==null&&_0x4d3e0b(0xcc)in _0xf12236&&typeof _0xf12236[_0x4d3e0b(0xcc)]===_0x4d3e0b(0x117);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x1179fb(0xa4),LOG_PREFIX2=_0x1179fb(0xaf),registration=null,currentOptions2=null;async function registerServiceWorker(_0x1e4ead){const _0x4a5cdb=_0x1179fb;console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x110)+_0x1e4ead[_0x4a5cdb(0x105)]);if(!(_0x4a5cdb(0xf1)in navigator)){console[_0x4a5cdb(0xd7)](LOG_PREFIX2+_0x4a5cdb(0xe3));return;}console['log'](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0xebe29d=navigator[_0x4a5cdb(0xf1)]['controller'];console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x6a),_0xebe29d?.[_0x4a5cdb(0xb4)]??_0x4a5cdb(0x114)),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x94),_0xebe29d?.[_0x4a5cdb(0xf6)]??_0x4a5cdb(0x11c));const _0x27e476=!!_0xebe29d;currentOptions2=_0x1e4ead,console['log'](LOG_PREFIX2+_0x4a5cdb(0xa6));const _0x3f4dd2=await detectBlockingServiceWorker(_0x1e4ead[_0x4a5cdb(0x105)]);if(_0x3f4dd2){console[_0x4a5cdb(0xd6)](LOG_PREFIX2+_0x4a5cdb(0xa2)+_0x3f4dd2),console['error'](LOG_PREFIX2+_0x4a5cdb(0xb6));return;}console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x1e4ead[_0x4a5cdb(0x105)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x4a5cdb(0xf1)][_0x4a5cdb(0x65)](_0x1e4ead[_0x4a5cdb(0x105)],{'scope':'/'}),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xcb),{'scope':registration[_0x4a5cdb(0xea)],'active':registration['active']?.['scriptURL'],'waiting':registration[_0x4a5cdb(0xfc)]?.[_0x4a5cdb(0xb4)],'installing':registration['installing']?.[_0x4a5cdb(0xb4)]}),console['log'](LOG_PREFIX2+_0x4a5cdb(0x125));const _0x1fde43=await navigator[_0x4a5cdb(0xf1)][_0x4a5cdb(0x8e)];console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xc6),_0x1fde43[_0x4a5cdb(0x9d)]?.[_0x4a5cdb(0xb4)]);const _0x15bb0f=ownsCurrentController(_0x1e4ead[_0x4a5cdb(0x105)]);state[_0x4a5cdb(0x134)]=_0x15bb0f,console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x15bb0f),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xbc),navigator[_0x4a5cdb(0xf1)]['controller']?.[_0x4a5cdb(0xb4)]??_0x4a5cdb(0x114));if(!_0x27e476&&!navigator[_0x4a5cdb(0xf1)][_0x4a5cdb(0xbe)]){console['log'](LOG_PREFIX2+_0x4a5cdb(0xdd)),window[_0x4a5cdb(0x91)][_0x4a5cdb(0xd5)]();return;}console[_0x4a5cdb(0x107)](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x4a5cdb(0x10b)]){const _0x5bea9d=document[_0x4a5cdb(0xda)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xfe)+_0x5bea9d);if(!_0x5bea9d){console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xa3)),window['location'][_0x4a5cdb(0xd5)]();return;}}console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0x111)),updateOverlay(),console[_0x4a5cdb(0x107)](LOG_PREFIX2+_0x4a5cdb(0xce));}catch(_0x37acf0){console[_0x4a5cdb(0xd6)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x37acf0);}}async function sendConfiguration(){const _0x412739=_0x1179fb;console['log'](LOG_PREFIX2+_0x412739(0x10d)),console[_0x412739(0x107)](LOG_PREFIX2+_0x412739(0x113)+state[_0x412739(0x10b)]+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x412739(0x10b)]||!currentOptions2){console[_0x412739(0x107)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x38d058=await resolveWorker();if(!_0x38d058){console['warn'](LOG_PREFIX2+_0x412739(0xb5));return;}const _0x5792e5={'callbackBypass':currentOptions2[_0x412739(0x84)],'securityMode':currentOptions2[_0x412739(0x12d)]};console[_0x412739(0x107)](LOG_PREFIX2+_0x412739(0x88),JSON[_0x412739(0x116)](_0x5792e5,null,0x2)),_0x38d058[_0x412739(0x136)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5792e5}),console[_0x412739(0x107)](LOG_PREFIX2+_0x412739(0xbd));}async function unregisterServiceWorker(_0x45839a){const _0x1bf708=_0x1179fb;console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0xe1));if(!(_0x1bf708(0xf1)in navigator)){console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x67));return;}try{const _0x2bf7a0=registration??await navigator[_0x1bf708(0xf1)][_0x1bf708(0x74)]('/');if(!_0x2bf7a0){console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x90));return;}console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0xad),{'scope':_0x2bf7a0['scope'],'active':_0x2bf7a0[_0x1bf708(0x9d)]?.[_0x1bf708(0xb4)],'waiting':_0x2bf7a0[_0x1bf708(0xfc)]?.[_0x1bf708(0xb4)],'installing':_0x2bf7a0[_0x1bf708(0xc4)]?.['scriptURL']});const _0x5abe18=[_0x2bf7a0['active']?.[_0x1bf708(0xb4)],_0x2bf7a0[_0x1bf708(0xfc)]?.[_0x1bf708(0xb4)],_0x2bf7a0['installing']?.['scriptURL']],_0x47a432=_0x5abe18['some'](_0x8f1e4d=>_0x8f1e4d&&ownsServiceWorker(_0x8f1e4d,_0x45839a));if(!_0x47a432){console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x6b));return;}_0x2bf7a0[_0x1bf708(0x9d)]&&(console['log'](LOG_PREFIX2+_0x1bf708(0x12a)),_0x2bf7a0[_0x1bf708(0x9d)][_0x1bf708(0x136)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0x73)),await _0x2bf7a0[_0x1bf708(0x69)](),registration=null,currentOptions2=null,console[_0x1bf708(0x107)](LOG_PREFIX2+_0x1bf708(0xd3));}catch(_0x18eba8){console[_0x1bf708(0xd6)](LOG_PREFIX2+_0x1bf708(0xa9),_0x18eba8);}}function ownsServiceWorker(_0x3c0292,_0x45a820){const _0x40f690=_0x1179fb,_0x36b22b=typeof window!=='undefined'?window['location'][_0x40f690(0xc9)]:'',_0x5dde3d=new URL(_0x45a820,_0x36b22b||void 0x0)[_0x40f690(0x11a)],_0x43431a=_0x3c0292===_0x5dde3d||_0x3c0292[_0x40f690(0xa1)](_0x40f690(0x132));return console['log'](LOG_PREFIX2+_0x40f690(0xf9)+_0x3c0292+_0x40f690(0x124)+_0x5dde3d+_0x40f690(0x10a)+_0x43431a),_0x43431a;}function ownsCurrentController(_0x466b14){const _0x478b8b=_0x1179fb;if(typeof navigator===_0x478b8b(0xa8))return![];const _0x47028b=navigator[_0x478b8b(0xf1)]?.[_0x478b8b(0xbe)];if(!_0x47028b)return console[_0x478b8b(0x107)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x47028b[_0x478b8b(0xb4)],_0x466b14);}async function detectBlockingServiceWorker(_0x5814a0){const _0x37f1fd=_0x1179fb;if(!navigator['serviceWorker'])return null;try{const _0xdf54c2=await navigator[_0x37f1fd(0xf1)]['getRegistration']('/');console[_0x37f1fd(0x107)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0xdf54c2?.[_0x37f1fd(0x9d)]?.['scriptURL']??_0x37f1fd(0x114));const _0x12efc4=_0xdf54c2?.[_0x37f1fd(0x9d)]?.[_0x37f1fd(0xb4)];if(!_0x12efc4)return null;if(ownsServiceWorker(_0x12efc4,_0x5814a0))return null;return _0x12efc4;}catch(_0x360507){return console[_0x37f1fd(0xd6)](LOG_PREFIX2+_0x37f1fd(0xab),_0x360507),null;}}async function resolveWorker(){const _0x2763f6=_0x1179fb,_0x18cb42=registration??await navigator[_0x2763f6(0xf1)]?.['getRegistration']('/'),_0x551b53=_0x18cb42?.[_0x2763f6(0x9d)]??_0x18cb42?.[_0x2763f6(0xfc)]??_0x18cb42?.[_0x2763f6(0xc4)]??null;return console[_0x2763f6(0x107)](LOG_PREFIX2+_0x2763f6(0x7d),_0x551b53?.[_0x2763f6(0xb4)]??_0x2763f6(0x114),_0x2763f6(0xae)+(_0x551b53?.[_0x2763f6(0xf6)]??_0x2763f6(0x11c))),_0x551b53;}var LOG_PREFIX3=_0x1179fb(0xf4);function isInitialized(){const _0x200201=_0x1179fb;return typeof window!==_0x200201(0xa8)&&window[_0x200201(0x78)]===!![];}function setInitialized(_0x1ec4b4){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x1ec4b4);}function getOptions(){const _0x419286=_0x1179fb;return typeof window!==_0x419286(0xa8)?window[_0x419286(0xff)]??null:null;}function _0x1bdb(_0x5958a7,_0x2d5ca7){_0x5958a7=_0x5958a7-0x65;const _0x57f950=_0x57f9();let _0x1bdb33=_0x57f950[_0x5958a7];return _0x1bdb33;}function setOptions(_0x209644){const _0x54c88c=_0x1179fb;typeof window!==_0x54c88c(0xa8)&&(window['__enhanceOptions']=_0x209644);}var Enhance={'init'(_0x102a89={}){const _0x2e45cd=_0x1179fb,_0x1dbb41=Date[_0x2e45cd(0x7c)]();console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x1dbb41),console['log'](LOG_PREFIX3+_0x2e45cd(0xb2)+window[_0x2e45cd(0x91)][_0x2e45cd(0x11a)]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x7f)+document[_0x2e45cd(0x12b)]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0xca),JSON[_0x2e45cd(0x116)](_0x102a89,null,0x2));if(isInitialized())return console[_0x2e45cd(0xd7)](LOG_PREFIX3+_0x2e45cd(0x115)),window[_0x2e45cd(0x10c)]??createController();setInitialized(!![]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0xd0));const _0x348d96=normalizeOptions(_0x102a89);setOptions(_0x348d96),console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x2e45cd(0x116)](_0x348d96,null,0x2));const _0x343305=parseUrlParams();console['log'](LOG_PREFIX3+_0x2e45cd(0x135),JSON[_0x2e45cd(0x116)](_0x343305,null,0x2));if(_0x343305[_0x2e45cd(0x7b)])return cleanUrlParam('enhance'),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x98)),createController();if(_0x343305['hasEnhancement'])return console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x119)),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0xef)+_0x343305['enhancementUrl']),console['log'](LOG_PREFIX3+_0x2e45cd(0x138)+_0x343305[_0x2e45cd(0x9f)]),state[_0x2e45cd(0x10b)]=!![],console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x11f)),void loadOverlay({'overlayPath':_0x348d96['overlayPath'],'enableViteHmr':_0x348d96['overlay'][_0x2e45cd(0x97)],'options':_0x348d96,'onToggle':handleToggle}),console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x348d96),console['log'](LOG_PREFIX3+_0x2e45cd(0xdc)),createController();return console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x2e45cd(0x107)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x348d96[_0x2e45cd(0x105)]),console[_0x2e45cd(0x107)](LOG_PREFIX3+_0x2e45cd(0x10f)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x2e45cd(0x72)),import.meta.hot['on'](_0x2e45cd(0x8f),_0x45ce0c=>{const _0x43c753=_0x2e45cd;console[_0x43c753(0x107)](LOG_PREFIX3+_0x43c753(0x122),_0x45ce0c),state[_0x43c753(0xb7)]={'message':_0x45ce0c[_0x43c753(0x76)][_0x43c753(0x93)]},updateOverlay();}),import.meta.hot['on'](_0x2e45cd(0x137),()=>{const _0x834b5c=_0x2e45cd;state[_0x834b5c(0xb7)]&&(console['log'](LOG_PREFIX3+_0x834b5c(0xc3)),state[_0x834b5c(0xb7)]=null,updateOverlay());})),createController();}};function createController(){const _0x546a09=_0x1179fb,_0x22e481={'enable'(){const _0x53af67=_0x1bdb,_0x2f20ca=getOptions();if(!_0x2f20ca)return;state[_0x53af67(0x10b)]=!![],void loadOverlay({'overlayPath':_0x2f20ca[_0x53af67(0xec)],'enableViteHmr':_0x2f20ca[_0x53af67(0xee)]['enableViteHmr'],'options':_0x2f20ca,'onToggle':handleToggle}),void registerServiceWorker(_0x2f20ca),void sendConfiguration(),updateOverlay();},'disable'(){const _0x418919=getOptions();if(!_0x418919)return;state['enabled']=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x418919['swPath']);},'status'(){const _0x1bd36f=_0x1bdb;return{'enabled':state[_0x1bd36f(0x10b)],'controlled':state[_0x1bd36f(0x134)]};}};return typeof window!==_0x546a09(0xa8)&&(window[_0x546a09(0x10c)]=_0x22e481),_0x22e481;}function handleToggle(){const _0x4b86c8=_0x1179fb,_0x27d0cc=createController();state[_0x4b86c8(0x10b)]?_0x27d0cc[_0x4b86c8(0xac)]():_0x27d0cc[_0x4b86c8(0x126)]();}function parseUrlParams(){const _0x2f0670=_0x1179fb,_0x563823=new URL(window[_0x2f0670(0x91)]['href']),_0x263d66=_0x563823[_0x2f0670(0xba)][_0x2f0670(0xe9)]('enhance')?.[_0x2f0670(0xf5)](),_0x1bfc51=_0x563823[_0x2f0670(0xba)][_0x2f0670(0xe9)]('enhancementUrl'),_0x457ffc=_0x563823[_0x2f0670(0xba)][_0x2f0670(0xe9)]('enhancement');return{'hasEnhancement':Boolean(_0x1bfc51||_0x457ffc),'explicitDisable':_0x263d66==='0'||_0x263d66===_0x2f0670(0x6d)||_0x263d66===_0x2f0670(0x79),'enhancementUrl':_0x1bfc51,'enhancementId':_0x457ffc};}function cleanUrlParam(_0x2d7887){const _0x305f91=_0x1179fb,_0x5ccd6e=new URL(window[_0x305f91(0x91)]['href']);_0x5ccd6e[_0x305f91(0xba)][_0x305f91(0x85)](_0x2d7887)&&(_0x5ccd6e[_0x305f91(0xba)][_0x305f91(0x109)](_0x2d7887),window[_0x305f91(0x7e)][_0x305f91(0x99)](null,document[_0x305f91(0x9e)],_0x5ccd6e[_0x305f91(0x81)]()));}var package_default={'name':_0x1179fb(0xb3),'version':_0x1179fb(0xe0),'type':_0x1179fb(0x7a),'description':_0x1179fb(0xd1),'license':_0x1179fb(0x77),'main':'./dev/index.js','module':_0x1179fb(0x95),'types':'./dev/index.d.ts','exports':{'.':{'types':'./dev/index.d.ts','import':'./dev/index.js'},'./vite':{'types':'./dev/vite/index.d.ts','import':_0x1179fb(0xcf)}},'files':[_0x1179fb(0xc2)],'bin':{'enhance-sandbox':_0x1179fb(0x6f)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','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':_0x1179fb(0xd8),'build':_0x1179fb(0xd2),'build:release':_0x1179fb(0x129),'build:release:dev':_0x1179fb(0x86),'version':_0x1179fb(0xb9)},'dependencies':{'commander':_0x1179fb(0xb0),'zod':_0x1179fb(0x12f)},'devDependencies':{'@types/node':_0x1179fb(0xf0),'javascript-obfuscator':_0x1179fb(0xd4),'tsup':_0x1179fb(0x128),'vite':_0x1179fb(0xa7)},'publishConfig':{'access':_0x1179fb(0xbb)}},DEFAULT_SERVICE_WORKER_PATH=_0x1179fb(0xaa),DEFAULT_RUNTIME_PATH=_0x1179fb(0xf8),PACKAGE_VERSION=typeof package_default[_0x1179fb(0x71)]==='string'?package_default[_0x1179fb(0x71)]:_0x1179fb(0x70);function normalizeAssetPath(_0x440f05){const _0x19b414=_0x1179fb;if(!_0x440f05)return _0x440f05;if(_0x440f05['startsWith'](_0x19b414(0x66))||_0x440f05['startsWith'](_0x19b414(0x83)))return _0x440f05;const _0xa4b98f=_0x440f05[_0x19b414(0xc0)](/^\.\//,'');return _0xa4b98f[_0x19b414(0x106)]('/')?_0xa4b98f:'/'+_0xa4b98f;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x52f500={}){const _0x26da3d=_0x1179fb;return Enhance[_0x26da3d(0x100)](_0x52f500);},'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 _0x217ea5=_0x1179fb;return Enhance2[_0x217ea5(0x104)]();}function runtimeURL(){const _0x56a3ed=_0x1179fb;return Enhance2[_0x56a3ed(0x11d)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
@@ -1 +1 @@
1
- 'use strict';(function(_0x3af7e5,_0x3c37a9){const _0x68d362=_0x5895,_0x456e83=_0x3af7e5();while(!![]){try{const _0x5d702f=parseInt(_0x68d362(0x10b))/0x1+-parseInt(_0x68d362(0x12c))/0x2*(-parseInt(_0x68d362(0x1e8))/0x3)+parseInt(_0x68d362(0x19c))/0x4+-parseInt(_0x68d362(0x1b4))/0x5+-parseInt(_0x68d362(0x1f4))/0x6+-parseInt(_0x68d362(0x111))/0x7+parseInt(_0x68d362(0x140))/0x8;if(_0x5d702f===_0x3c37a9)break;else _0x456e83['push'](_0x456e83['shift']());}catch(_0xec9f00){_0x456e83['push'](_0x456e83['shift']());}}}(_0x376f,0xe2780));function _0x376f(){const _0x83b772=['\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','[Enhance\x20SW\x20Bootstrap]','host','/__snowpack__','\x20\x20\x20securityMode:\x20','rewritten','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','/parcel-hmr','slice','href','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','redirect','\x20INSTALL\x20event','replace','url','\x20\x20\x20BYPASS:\x20','text','\x20chars)','production','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','value','/__vite/client','/__parcel_hmr','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','287948daZPkH','content-type','search','\x20\x20\x20Enhancement\x20document\x20URL:\x20','defineProperty','\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\x20const\x20runtimePath\x20=\x20','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','script','has','cors','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','hasOwnProperty','\x20\x20\x20Content-Type:\x20','join','\x20\x20\x20Rewriting\x20document...','none','image','pathname','fetch','skipWaiting','cache-control','\x20rewriteDocument()\x20called','$&\x0a','6799480uExzDY','includes',',\x20type:\x20','\x20\x20\x20Fetch\x20error:','access-control-allow-origin','\x20skipWaiting()\x20complete','getOwnPropertyNames','__esModule','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','waitUntil','set-cookie','/snowpack/hmr','\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20Original\x20HTML\x20length:\x20','delete','\x20for\x20','\x20MESSAGE\x20received:','overlayEnableViteHmr','match','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x5cu003c','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','worker-src\x20\x27self\x27\x20blob:','\x20\x20\x20overlayPath:\x20','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','test','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','addEventListener','type','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','HEAD','toLowerCase','enhance:disable','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','runtimeScriptPath','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','/sockjs-node','\x20\x20\x20enhancementUrl:\x20','/webpack-dev-server','\x20\x20}\x20catch\x20(error)\x20{','clone','enumerable','\x20\x20\x20\x20try\x20{','sharedworker','map','error','\x20chars','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','3KmqXCN','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20Document\x20rewritten\x20successfully','GET','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','[Enhance\x20SW\x20Document]','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x5c$&','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','1944540EGFSft','activate','endsWith','some','backendUrl','access-control-allow-credentials','\x20-\x20falling\x20back\x20to\x20production','enhance:configure','debug','enhancement','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20HTML\x20response\x20-\x20processing...','/sw-enhance.js','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','connect-src\x20*','\x20\x20\x20\x20}','\x20\x20\x20\x20};','font','\x20\x20\x20Document\x20rewrite\x20complete','/__webpack_hmr','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20Calling\x20skipWaiting()...','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20Unknown\x20message\x20type:\x20','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20fetchEnhancementDocument:\x20','})();','stylesheet','log','status','/auth/callback','message','font-src\x20*\x20data:','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x20clients.claim()\x20complete','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','overlay','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','?import','text/html','/vite/client','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','searchParams','no-store','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20Build\x20config:','Enhancement\x20fetch\x20failed','location','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','hash','length','\x20injectRuntimeBootstrap()\x20called','callbackBypassNormalized','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','clients','include','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','follow','565292NlldJk','\x20\x20\x20Enhancement\x20MISS\x20for\x20','content-length','Enhancement\x20CORS\x20blocked','vite-hmr','\x20\x20\x20mode:\x20','12120101toWGxQ','startsWith','\x20\x20\x20Response:\x20','\x20\x20}','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','securityMode','destination','/_next/webpack-hmr','origin','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20return\x20false;','worker','trim','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20Invalid\x20message\x20data\x20-\x20ignoring','https://','full','x-enhance-enhancement','object-src\x20\x27none\x27','add','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','Enhancement\x20document\x20miss\x20','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','set-cookie2','3112778zfojsa','respondWith','headers','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20\x20\x20Not\x20OK\x20(','\x20Config\x20reset',')\x20-\x20returning\x20null','enhancement-document','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20\x20\x20Fetching\x20enhancement\x20document...','callbackBypass','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','modulepreload','\x20\x20\x20Fetching\x20production\x20response...','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','enhancementUrl','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','17195016MWMLwQ','opaque','</script>','(async\x20()\x20=>\x20{','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','push','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20Rewriting\x20entry\x20references...','set','http://','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','custom','overlayPath','\x20\x20\x20shouldInjectOverlay:\x20','get','enhancementBase','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','toString','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20FETCH:\x20','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20fetchFromEnhancement:\x20','statusText','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','https://assets.enhancelabs.ai/overlay.js','call','object','style','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x5c1[^>]*>\x5cs*</script>','(function(){','\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20','mode','toISOString','/__vite_ping','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','method','\x20shouldRouteAsset:\x20','/assets/enhance-runtime.js','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','x-enhance-routing','\x20\x20try\x20{','\x20ACTIVATE\x20event','info','default','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','permissive','cross-origin-opener-policy','hit','[Enhance\x20SW]','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','cross-origin-resource-policy','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','getOwnPropertyDescriptor','Enhancement\x20miss\x20','stringify','[Enhance\x20SW\x20Routing]','\x20Calling\x20clients.claim()...','media-src\x20*\x20data:\x20blob:','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];'];_0x376f=function(){return _0x83b772;};return _0x376f();}function _0x5895(_0x483588,_0x1c95d3){_0x483588=_0x483588-0xf8;const _0x376fc0=_0x376f();let _0x589590=_0x376fc0[_0x483588];return _0x589590;}var EnhanceSW=((()=>{const _0x4a664d=_0x5895;var _0x260d62=Object[_0x4a664d(0x1a0)],_0x3a5710=Object[_0x4a664d(0x17a)],_0x129269=Object[_0x4a664d(0x1ba)],_0x33e125=Object['prototype'][_0x4a664d(0x1a8)],_0x21b214=(_0x324b24,_0x4f36cc)=>{for(var _0x4b3f6c in _0x4f36cc)_0x260d62(_0x324b24,_0x4b3f6c,{'get':_0x4f36cc[_0x4b3f6c],'enumerable':!![]});},_0x10481d=(_0x27fbd8,_0x58d4eb,_0x1a9887,_0x442a24)=>{const _0x5470be=_0x4a664d;if(_0x58d4eb&&typeof _0x58d4eb==='object'||typeof _0x58d4eb==='function'){for(let _0x1363a6 of _0x129269(_0x58d4eb))if(!_0x33e125[_0x5470be(0x15a)](_0x27fbd8,_0x1363a6)&&_0x1363a6!==_0x1a9887)_0x260d62(_0x27fbd8,_0x1363a6,{'get':()=>_0x58d4eb[_0x1363a6],'enumerable':!(_0x442a24=_0x3a5710(_0x58d4eb,_0x1363a6))||_0x442a24[_0x5470be(0x1e1)]});}return _0x27fbd8;},_0x4fe131=_0x26ab6e=>_0x10481d(_0x260d62({},_0x4a664d(0x1bb),{'value':!![]}),_0x26ab6e),_0x5468dd={};_0x21b214(_0x5468dd,{'log':()=>_0x121722});var _0x3a363f=_0x4a664d(0x1fb),_0x450e5b=_0x4a664d(0x1d7);function _0x5b1cec(_0x211200){const _0xa06c37=_0x4a664d;if(!_0x211200[_0xa06c37(0x112)]('/'))return'/'+_0x211200;return _0x211200;}function _0x43d904(_0x35d8dd,_0x5a9960){const _0x22db04=_0x4a664d,_0x3825e8=new URL(_0x35d8dd[_0x22db04(0x152)]()),_0x121016=_0x3825e8[_0x22db04(0x1ae)][_0x22db04(0x1f6)]('/')?_0x3825e8['pathname'][_0x22db04(0x189)](0x0,-0x1):_0x3825e8[_0x22db04(0x1ae)],_0x346f53=_0x5a9960[_0x22db04(0x1ae)][_0x22db04(0x112)]('/')?_0x5a9960['pathname']:'/'+_0x5a9960[_0x22db04(0x1ae)];return _0x3825e8['pathname']=(''+_0x121016+_0x346f53)[_0x22db04(0x18e)](/\/+/g,'/'),_0x3825e8['search']=_0x5a9960[_0x22db04(0x19e)],_0x3825e8[_0x22db04(0xff)]='',_0x3825e8;}var _0x20f507=_0x4a664d(0x17d),_0x251451=new Set([_0x4a664d(0x1a4),_0x4a664d(0x15c),_0x4a664d(0x206),_0x4a664d(0x1ad),_0x4a664d(0x11e),_0x4a664d(0x1e3),'modulepreload']);function _0x5d3cfe(_0x5617c9){const _0x183e45=_0x4a664d,_0x228fce=_0x5617c9[_0x183e45(0x167)]===_0x183e45(0x1ec)||_0x5617c9[_0x183e45(0x167)]===_0x183e45(0x1d5);return _0x228fce;}function _0x23a9de(_0x446fcd,_0x3f5c2a){const _0x376891=_0x4a664d,_0x552a67=_0x5b1cec(_0x3f5c2a),_0xf64ee5=_0x446fcd[_0x376891(0x102)][_0x376891(0x1f7)](_0x1f6b59=>_0x552a67[_0x376891(0x112)](_0x1f6b59));return _0xf64ee5;}function _0x31287b(_0x4fa992,_0x13fb5b,_0x283201){const _0x266f72=_0x4a664d,_0x38af32=_0x13fb5b[_0x266f72(0x117)];if(!_0x38af32||!_0x251451[_0x266f72(0x1a5)](_0x38af32))return![];if(_0xe2bbd5(_0x4fa992,_0x283201))return console[_0x266f72(0x211)](_0x20f507+_0x266f72(0x168)+_0x283201[_0x266f72(0x1ae)]+'\x20is\x20overlay\x20asset\x20-\x20not\x20routing'),![];if(_0x276c9d(_0x4fa992,_0x283201))return console[_0x266f72(0x211)](_0x20f507+_0x266f72(0x168)+_0x283201[_0x266f72(0x1ae)]+_0x266f72(0x14a)),![];if(_0x283201[_0x266f72(0x119)]!==self['location'][_0x266f72(0x119)])return![];return!![];}async function _0x25b24f(_0x5bedcc,_0x541ca9,_0x1843dc){const _0x104cc2=_0x4a664d;console[_0x104cc2(0x211)](_0x20f507+_0x104cc2(0x156)+_0x1843dc[_0x104cc2(0x1ae)]);if(!_0x5bedcc[_0x104cc2(0x150)])return console[_0x104cc2(0x211)](_0x20f507+_0x104cc2(0x15f)),null;const _0x4f9c94=_0x26966f(_0x5bedcc,_0x1843dc);console[_0x104cc2(0x211)](_0x20f507+'\x20\x20\x20Enhancement\x20URL:\x20'+_0x4f9c94[_0x104cc2(0x152)]());const _0x13b999=new Headers(_0x541ca9['headers']);_0x13b999['set']('x-enhance-routing',_0x104cc2(0x1fd)),_0x13b999['delete'](_0x104cc2(0x183));const _0x57ecaa=new Request(_0x4f9c94[_0x104cc2(0x152)](),{'method':_0x541ca9[_0x104cc2(0x167)],'headers':_0x13b999,'credentials':_0x104cc2(0x107),'redirect':_0x541ca9[_0x104cc2(0x18c)],'cache':_0x104cc2(0x16f),'mode':_0x104cc2(0x1a6)});try{console[_0x104cc2(0x211)](_0x20f507+_0x104cc2(0x11b));const _0x422114=await fetch(_0x57ecaa);console[_0x104cc2(0x211)](_0x20f507+_0x104cc2(0x113)+_0x422114[_0x104cc2(0x212)]+'\x20'+_0x422114[_0x104cc2(0x157)]+_0x104cc2(0x1b6)+_0x422114[_0x104cc2(0x1d2)]);if(_0x422114[_0x104cc2(0x1d2)]===_0x104cc2(0x141))return console[_0x104cc2(0x211)](_0x20f507+_0x104cc2(0x1a3)),_0x121722(_0x104cc2(0x16e),_0x104cc2(0x10e),_0x4f9c94['toString']()),null;if(!_0x422114['ok'])return console[_0x104cc2(0x211)](_0x20f507+_0x104cc2(0x131)+_0x422114[_0x104cc2(0x212)]+_0x104cc2(0x133)),_0x121722(_0x104cc2(0x1fc),_0x104cc2(0x17b)+_0x422114['status']+_0x104cc2(0x1c5)+_0x4f9c94[_0x104cc2(0x1ae)]),null;return console[_0x104cc2(0x211)](_0x20f507+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0x54ee4c(_0x422114,_0x541ca9['method']);}catch(_0x43d355){return console['error'](_0x20f507+_0x104cc2(0x1b7),_0x43d355),_0x121722('info',_0x104cc2(0xfc),_0x43d355),null;}}async function _0x4ef20c(_0x8a8bfd,_0x212629){const _0x162d02=_0x4a664d,_0xedc388=new URL(_0x212629['url']);console['log'](_0x20f507+_0x162d02(0x20e)+_0xedc388['pathname']+_0xedc388[_0x162d02(0x19e)]);if(!_0x8a8bfd['enhancementBase'])return console['log'](_0x20f507+_0x162d02(0x115)),null;const _0x47a29e=_0x26966f(_0x8a8bfd,_0xedc388);console[_0x162d02(0x211)](_0x20f507+_0x162d02(0x19f)+_0x47a29e['toString']());const _0x53b196=new Headers(_0x212629[_0x162d02(0x12e)]);_0x53b196[_0x162d02(0x148)](_0x162d02(0x16b),_0x162d02(0x134)),_0x53b196[_0x162d02(0x1c4)](_0x162d02(0x183)),_0x53b196[_0x162d02(0x1c4)](_0x162d02(0x10d));const _0x3ff015=new Request(_0x47a29e[_0x162d02(0x152)](),{'method':_0x162d02(0x1ec),'headers':_0x53b196,'credentials':_0x162d02(0x107),'redirect':_0x162d02(0x10a),'cache':_0x162d02(0x16f),'mode':_0x162d02(0x1a6)});try{console[_0x162d02(0x211)](_0x20f507+_0x162d02(0x138));const _0x2caad3=await fetch(_0x3ff015);console[_0x162d02(0x211)](_0x20f507+'\x20\x20\x20Response:\x20'+_0x2caad3[_0x162d02(0x212)]+'\x20'+_0x2caad3[_0x162d02(0x157)]+_0x162d02(0x1b6)+_0x2caad3[_0x162d02(0x1d2)]),console[_0x162d02(0x211)](_0x20f507+_0x162d02(0x1a9)+_0x2caad3[_0x162d02(0x12e)][_0x162d02(0x14f)](_0x162d02(0x19d)));if(_0x2caad3[_0x162d02(0x1d2)]===_0x162d02(0x141))return console[_0x162d02(0x211)](_0x20f507+_0x162d02(0x1a3)),_0x121722('info','Enhancement\x20document\x20CORS\x20blocked',_0x47a29e[_0x162d02(0x152)]()),null;if(!_0x2caad3['ok'])return console[_0x162d02(0x211)](_0x20f507+_0x162d02(0x131)+_0x2caad3['status']+_0x162d02(0x133)),_0x121722(_0x162d02(0x1fc),_0x162d02(0x129)+_0x2caad3[_0x162d02(0x212)]+_0x162d02(0x1c5)+_0x47a29e[_0x162d02(0x1ae)]),null;if(!_0x24d2b3(_0x2caad3))return console[_0x162d02(0x211)](_0x20f507+'\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null'),null;return console['log'](_0x20f507+_0x162d02(0x216)),_0x54ee4c(_0x2caad3,_0x162d02(0x1ec));}catch(_0x5a00ca){return console[_0x162d02(0x1e5)](_0x20f507+'\x20\x20\x20Document\x20fetch\x20error:',_0x5a00ca),_0x121722('info','Enhancement\x20document\x20fetch\x20failed',_0x5a00ca),null;}}function _0x26966f(_0x1b5747,_0x9119a4){const _0x47ba85=_0x4a664d;if(!_0x1b5747[_0x47ba85(0x150)])throw new Error(_0x47ba85(0x13d));return _0x43d904(_0x1b5747[_0x47ba85(0x150)],_0x9119a4);}function _0x54ee4c(_0x2029b1,_0x157ff6){const _0x25a6e2=_0x4a664d,_0xb9c47a=_0x2029b1[_0x25a6e2(0x1e0)](),_0x1168b8=new Headers(_0xb9c47a['headers']);_0x1168b8[_0x25a6e2(0x1c4)](_0x25a6e2(0x1b8)),_0x1168b8[_0x25a6e2(0x1c4)](_0x25a6e2(0x1f9)),_0x1168b8['delete']('access-control-expose-headers'),_0x1168b8['set'](_0x25a6e2(0x124),_0x25a6e2(0x174)),_0x5f3406(_0x1168b8);const _0x554410=_0x157ff6===_0x25a6e2(0x1d5)?null:_0xb9c47a['body'];return new Response(_0x554410,{'status':_0xb9c47a['status'],'statusText':_0xb9c47a[_0x25a6e2(0x157)],'headers':_0x1168b8});}function _0x24d2b3(_0x4313ba){const _0x2e52d6=_0x4a664d,_0x3cbaf9=_0x4313ba[_0x2e52d6(0x12e)][_0x2e52d6(0x14f)](_0x2e52d6(0x19d));return _0x3cbaf9!=null&&_0x3cbaf9[_0x2e52d6(0x1b5)](_0x2e52d6(0x21d));}function _0xe2bbd5(_0x551a32,_0x8152e8){const _0x17a84d=_0x4a664d;return _0x5e928f(_0x8152e8,_0x551a32[_0x17a84d(0x14d)]);}function _0x276c9d(_0x50c6de,_0x530022){const _0x13aeec=_0x4a664d;return _0x378150(_0x530022,_0x50c6de[_0x13aeec(0x1da)]);}function _0x5e928f(_0x53533c,_0x1ad6c9){const _0x4b1226=_0x4a664d;if(!_0x1ad6c9)return![];if(_0x1ad6c9['startsWith'](_0x4b1226(0x149))||_0x1ad6c9[_0x4b1226(0x112)](_0x4b1226(0x122)))return _0x53533c[_0x4b1226(0x18a)]===_0x1ad6c9;const _0x3509d8=_0x3f4bf5(_0x1ad6c9);if(!_0x3509d8)return![];const _0xceca39=''+_0x53533c[_0x4b1226(0x1ae)]+_0x53533c['search'];if(_0xceca39===_0x3509d8)return!![];if(_0x53533c[_0x4b1226(0x19e)]===_0x4b1226(0x21c))return _0x53533c[_0x4b1226(0x1ae)]===_0x3509d8;return![];}function _0x378150(_0x568ab1,_0x467536){const _0x27747e=_0x4a664d;if(!_0x467536)return![];if(_0x467536['startsWith'](_0x27747e(0x149))||_0x467536[_0x27747e(0x112)](_0x27747e(0x122)))return _0x568ab1[_0x27747e(0x18a)]===_0x467536;const _0x56987d=_0x3f4bf5(_0x467536);if(!_0x56987d)return![];const _0x24a95f=''+_0x568ab1['pathname']+_0x568ab1[_0x27747e(0x19e)];return _0x24a95f===_0x56987d;}function _0x3f4bf5(_0x5bdd12){const _0xa695e3=_0x4a664d;if(!_0x5bdd12)return _0x5bdd12;if(_0x5bdd12['startsWith'](_0xa695e3(0x149))||_0x5bdd12['startsWith']('https://'))return _0x5bdd12;const _0x5916fe=_0x5bdd12['replace'](/^\.\//,'');if(_0x5916fe['startsWith']('/'))return _0x5916fe;return'/'+_0x5916fe;}function _0x5f3406(_0x4c3d8e){const _0x1b0dd4=_0x4a664d;_0x4c3d8e[_0x1b0dd4(0x1c4)](_0x1b0dd4(0x1bf)),_0x4c3d8e['delete'](_0x1b0dd4(0x12b));}function _0x458c2b(_0x188f9a){const _0x1f15d9=_0x4a664d,_0x207c1a=['default-src\x20\x27self\x27\x20blob:\x20data:','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:',_0x1f15d9(0x136),'img-src\x20*\x20data:\x20blob:',_0x1f15d9(0x215),_0x1f15d9(0x203),_0x1f15d9(0x17f),_0x1f15d9(0x1cc),_0x1f15d9(0x125)],_0x2775f=_0x4724dd(_0x188f9a);return _0x2775f&&_0x207c1a[_0x1f15d9(0x145)](_0x2775f),_0x207c1a['join'](';\x20');}function _0x134500(_0x336b67){const _0x4cc6f7=_0x4a664d;_0x336b67['delete'](_0x4cc6f7(0x1bf)),_0x336b67[_0x4cc6f7(0x1c4)](_0x4cc6f7(0x12b));}function _0x4724dd(_0x4503a2){const _0x5d0e54=_0x4a664d;if(!_0x4503a2)return null;const _0x17a501=_0x4503a2[_0x5d0e54(0x1c8)](/frame-ancestors\s+([^;]+)/i);if(!_0x17a501)return null;return'frame-ancestors\x20'+_0x17a501[0x1][_0x5d0e54(0x11f)]();}function _0x77eb33(_0x251e7f,_0x49d31d){const _0xfbfa37=_0x4a664d;if(/<head[^>]*>/i[_0xfbfa37(0x1cf)](_0x251e7f)){const _0x29cfc2=_0x251e7f[_0xfbfa37(0x1c8)](/<head[^>]*>/i);if(_0x29cfc2){const _0x24c605=_0x29cfc2[0x0];return _0x251e7f[_0xfbfa37(0x18e)](_0x24c605,_0x24c605+'\x0a'+_0x49d31d);}}if(/<\/head>/i[_0xfbfa37(0x1cf)](_0x251e7f))return _0x251e7f[_0xfbfa37(0x18e)](/<\/head>/i,_0x49d31d+'\x0a</head>');if(/<body\b[^>]*>/i['test'](_0x251e7f))return _0x251e7f['replace'](/<body\b[^>]*>/i,_0xfbfa37(0x1b3)+_0x49d31d);if(/<\/body>/i['test'](_0x251e7f))return _0x251e7f[_0xfbfa37(0x18e)](/<\/body>/i,_0x49d31d+'\x0a</body>');return _0x49d31d+'\x0a'+_0x251e7f;}var _0x5efc02=[_0x4a664d(0x10f)],_0x1cd772=['/@vite/client',_0x4a664d(0x196),_0x4a664d(0x21e),_0x4a664d(0x165),_0x4a664d(0x1dc),_0x4a664d(0x1de),'/webpack-hmr','/webpackhotmiddleware','/webpack-hot-middleware',_0x4a664d(0x208),_0x4a664d(0x118),_0x4a664d(0x188),_0x4a664d(0x197),_0x4a664d(0x184),_0x4a664d(0x1c0)];function _0x1fb8f7(_0x221bb9,_0x14be4a){const _0x105719=_0x2b92c0(_0x221bb9);if(!_0x105719)return _0x14be4a;return _0x77eb33(_0x14be4a,_0x105719);}function _0x2b92c0(_0x491f12){const _0x4fb3d7=_0x4a664d;if(!_0x491f12[_0x4fb3d7(0x150)])return null;const _0x527b0f=_0x491f12[_0x4fb3d7(0x150)][_0x4fb3d7(0x152)](),_0x1a24e0=_0x10b4fb(_0x5efc02),_0x568927=_0x10b4fb(_0x1cd772),_0x27bbca=[_0x4fb3d7(0x19a),_0x4fb3d7(0x161),'\x20\x20try\x20{',_0x4fb3d7(0x1bc)+JSON[_0x4fb3d7(0x17c)](_0x527b0f)+');',_0x4fb3d7(0x1e7),_0x4fb3d7(0x1c9),'\x20\x20\x20\x20\x20\x20return;',_0x4fb3d7(0x204),_0x4fb3d7(0x137)+JSON[_0x4fb3d7(0x17c)](_0x1a24e0)+');','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20'+JSON[_0x4fb3d7(0x17c)](_0x568927)+';',_0x4fb3d7(0x109),_0x4fb3d7(0x18b),_0x4fb3d7(0x179),_0x4fb3d7(0x12f),_0x4fb3d7(0x205),_0x4fb3d7(0x1e9),_0x4fb3d7(0x166),_0x4fb3d7(0x1ef),_0x4fb3d7(0x130),_0x4fb3d7(0x144),'\x20\x20\x20\x20\x20\x20',_0x4fb3d7(0x158),_0x4fb3d7(0x1c1),_0x4fb3d7(0x202),_0x4fb3d7(0x20b),_0x4fb3d7(0x1fe),_0x4fb3d7(0x1d3),_0x4fb3d7(0x120),_0x4fb3d7(0x108),_0x4fb3d7(0x180),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x4fb3d7(0x20d),_0x4fb3d7(0x1d3),_0x4fb3d7(0x177),_0x4fb3d7(0x1bd),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{',_0x4fb3d7(0x153),_0x4fb3d7(0x20d),'\x20\x20\x20\x20\x20\x20}',_0x4fb3d7(0x11d),_0x4fb3d7(0x205),_0x4fb3d7(0x1d8),_0x4fb3d7(0x201),_0x4fb3d7(0x21a),_0x4fb3d7(0x221),_0x4fb3d7(0x218),'\x20\x20\x20\x20\x20\x20return\x20proxied;',_0x4fb3d7(0x205),_0x4fb3d7(0x1db),_0x4fb3d7(0x1c2),_0x4fb3d7(0x1f3),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);',_0x4fb3d7(0x198),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x4fb3d7(0x14b),'\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);',_0x4fb3d7(0x1d3),_0x4fb3d7(0x155),'\x20\x20\x20\x20};',_0x4fb3d7(0x171),_0x4fb3d7(0x104),_0x4fb3d7(0xfe),_0x4fb3d7(0x1e2),_0x4fb3d7(0x187),_0x4fb3d7(0x21b),'\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine',_0x4fb3d7(0x204),_0x4fb3d7(0x1d4),_0x4fb3d7(0x16a),_0x4fb3d7(0x1df),'\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);',_0x4fb3d7(0x114),_0x4fb3d7(0x20f),_0x4fb3d7(0x142)];return _0x27bbca[_0x4fb3d7(0x1aa)]('\x0a');}function _0x10b4fb(_0x56b6a5){const _0xcfb185=_0x4a664d,_0x5a42bd=new Set(),_0x4b56fd=[];for(const _0x28e083 of _0x56b6a5){const _0x5aeb7b=_0x28e083[_0xcfb185(0x1d6)]();if(_0x5a42bd[_0xcfb185(0x1a5)](_0x5aeb7b))continue;_0x5a42bd[_0xcfb185(0x126)](_0x5aeb7b),_0x4b56fd['push'](_0x5aeb7b);}return _0x4b56fd;}var _0x43661e=_0x4a664d(0x182);function _0x56ea09(_0x36a858,_0x3d8fad){const _0x3455ee=_0x4a664d;console[_0x3455ee(0x211)](_0x43661e+_0x3455ee(0x101)),console[_0x3455ee(0x211)](_0x43661e+'\x20\x20\x20runtimeScriptPath:\x20'+_0x36a858[_0x3455ee(0x1da)]),console[_0x3455ee(0x211)](_0x43661e+_0x3455ee(0x1cd)+_0x36a858[_0x3455ee(0x14d)]);const _0x20342d=_0x17e008(_0x36a858);if(!_0x20342d)return console[_0x3455ee(0x211)](_0x43661e+'\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged'),_0x3d8fad;console['log'](_0x43661e+_0x3455ee(0x1ce)+_0x20342d[_0x3455ee(0x100)]+_0x3455ee(0x192));const _0x115754=_0x333126(_0x3d8fad,_0x36a858[_0x3455ee(0x1da)]);console[_0x3455ee(0x211)](_0x43661e+_0x3455ee(0x194));const _0x3ef5a0=_0x77eb33(_0x115754,_0x20342d);return console[_0x3455ee(0x211)](_0x43661e+'\x20\x20\x20Script\x20inserted\x20into\x20document'),_0x3ef5a0;}function _0x17e008(_0x526e75){const _0xf4e4f7=_0x4a664d,_0x459fd4=_0x526e75['runtimeScriptPath'];if(!_0x459fd4)return console['log'](_0x43661e+_0xf4e4f7(0x1cb)),null;const _0x5b3423=_0x28650a(_0x526e75);console[_0xf4e4f7(0x211)](_0x43661e+'\x20Bootstrap\x20options:',JSON['stringify'](_0x5b3423,null,0x2));const _0x57b87f=_0x44dc52(_0x5b3423),_0x5b42f1=JSON['stringify'](_0x459fd4),_0x43246a=['<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>',_0xf4e4f7(0x143),_0xf4e4f7(0x16c),_0xf4e4f7(0x1a2)+_0x5b42f1+';',_0xf4e4f7(0x1ed),_0xf4e4f7(0x146),_0xf4e4f7(0xfa),_0xf4e4f7(0x12a),_0xf4e4f7(0x1d0),'\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;',_0xf4e4f7(0x15d),_0xf4e4f7(0x1d9),_0xf4e4f7(0x1ea),_0xf4e4f7(0x204),_0xf4e4f7(0x1f0)+_0x57b87f+',\x20null,\x202));',_0xf4e4f7(0x181)+_0x57b87f+');',_0xf4e4f7(0x199),_0xf4e4f7(0x11c),_0xf4e4f7(0x209),_0xf4e4f7(0x135),_0xf4e4f7(0x1a1),'\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;',_0xf4e4f7(0x1a7),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0xf4e4f7(0x204),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);',_0xf4e4f7(0x1df),'\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);',_0xf4e4f7(0x114),'})();','</script>'];return _0x43246a[_0xf4e4f7(0x1aa)]('\x0a');}function _0x28650a(_0x35e1c9){const _0x5ed677=_0x4a664d,_0xe628e7={'callbackBypass':_0x35e1c9['callbackBypass'],'__development':{'enableOverlayHmr':_0x35e1c9[_0x5ed677(0x1c7)],'overlayPath':_0x35e1c9[_0x5ed677(0x14d)],'security':_0x35e1c9['securityMode'],'backendUrl':_0x35e1c9[_0x5ed677(0x1f8)]}};return _0xe628e7;}function _0x44dc52(_0xd4c49){const _0x16d28b=_0x4a664d;return JSON['stringify'](_0xd4c49)[_0x16d28b(0x18e)](/</g,_0x16d28b(0x1ca))['replace'](/>/g,'\x5cu003e');}function _0x333126(_0x27f191,_0x26f861){const _0x10c2cd=_0x4a664d,_0x14f62d=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x37213b=_0x27f191['replace'](_0x14f62d,'');if(_0x26f861){const _0x531bff=_0x1cda7e(_0x26f861),_0x5b851a=new RegExp(_0x10c2cd(0x13f)+_0x531bff+_0x10c2cd(0x160),'gi');_0x37213b=_0x37213b[_0x10c2cd(0x18e)](_0x5b851a,'');}return _0x37213b;}function _0x1cda7e(_0x3dbddd){const _0x2bb472=_0x4a664d;return _0x3dbddd[_0x2bb472(0x18e)](/[-/\\^$*+?.()|[\]{}]/g,_0x2bb472(0x1f2));}function _0x26fc4d(_0x3f0708,_0x380c7e){const _0x4e63e0=_0x4a664d,_0xe029dc=_0x31140d=>_0x28b2c5(_0x3f0708,_0x31140d),_0x4b18c0=_0x815b6b=>_0x38f415(_0x3f0708,_0x815b6b);return _0x380c7e[_0x4e63e0(0x18e)](/<script\b[^>]*>/gi,_0xe029dc)[_0x4e63e0(0x18e)](/<link\b[^>]*>/gi,_0x4b18c0);}function _0x46e4f0(_0x161c4c){const _0x54a131=_0x4a664d;return _0x161c4c[_0x54a131(0x18e)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x28b2c5(_0x3a78ac,_0x1ae8b1){const _0x33ad9a=_0x4a664d,_0x16a530=_0x24af02(_0x1ae8b1,'src');if(!_0x16a530)return _0x1ae8b1;const _0x465e8e=_0x205704(_0x3a78ac,_0x16a530[_0x33ad9a(0x195)]);if(!_0x465e8e||_0x465e8e===_0x16a530[_0x33ad9a(0x195)])return _0x1ae8b1;const _0x1aae16=_0x16a530[_0x33ad9a(0x123)]['replace'](_0x16a530[_0x33ad9a(0x195)],_0x465e8e);return _0x1ae8b1['replace'](_0x16a530[_0x33ad9a(0x123)],_0x1aae16);}function _0x38f415(_0x33da04,_0xc377a4){const _0x1d5d49=_0x4a664d,_0x255806=_0xc377a4[_0x1d5d49(0x1c8)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x255806)return _0xc377a4;const _0x4efd80=_0x255806[0x2][_0x1d5d49(0x1d6)]();if(_0x4efd80!==_0x1d5d49(0x210)&&_0x4efd80!==_0x1d5d49(0x13b))return _0xc377a4;const _0x5d1d7a=_0x24af02(_0xc377a4,_0x1d5d49(0x18a));if(!_0x5d1d7a)return _0xc377a4;const _0xd5fc10=_0x205704(_0x33da04,_0x5d1d7a['value']);if(!_0xd5fc10||_0xd5fc10===_0x5d1d7a['value'])return _0xc377a4;const _0x2c2162=_0x5d1d7a['full']['replace'](_0x5d1d7a['value'],_0xd5fc10);return _0xc377a4[_0x1d5d49(0x18e)](_0x5d1d7a[_0x1d5d49(0x123)],_0x2c2162);}function _0x24af02(_0x3ee34d,_0x5af4aa){const _0x30cbf5=_0x4a664d,_0x4c607c=new RegExp(_0x5af4aa+_0x30cbf5(0x127),'i'),_0x5bdbcd=_0x3ee34d['match'](_0x4c607c);if(!_0x5bdbcd)return null;return{'full':_0x5bdbcd[0x0],'value':_0x5bdbcd[0x2]};}function _0x205704(_0x1a35f7,_0x27ed94){const _0x261241=_0x4a664d,_0x4f56fe=_0x419519(_0x27ed94);if(!_0x4f56fe)return null;if(_0x4f56fe[_0x261241(0x119)]===self[_0x261241(0xfd)][_0x261241(0x119)])return''+_0x4f56fe['pathname']+_0x4f56fe[_0x261241(0x19e)];return null;}function _0x419519(_0x24ad2b){const _0x24feeb=_0x4a664d;try{return new URL(_0x24ad2b,self['location'][_0x24feeb(0x119)]);}catch{return null;}}var _0x35a935=_0x4a664d(0x1ee);async function _0x32a6c1(_0x52680a,_0x521709,_0x5515ae,_0x2541f4=!![]){const _0x310584=_0x4a664d;console[_0x310584(0x211)](_0x35a935+_0x310584(0x1b2)),console['log'](_0x35a935+'\x20\x20\x20source:\x20'+_0x5515ae),console[_0x310584(0x211)](_0x35a935+_0x310584(0x14e)+_0x2541f4),console[_0x310584(0x211)](_0x35a935+_0x310584(0x185)+_0x52680a[_0x310584(0x116)]);const _0x1f3227=_0x521709[_0x310584(0x1e0)](),_0x4731e8=await _0x1f3227[_0x310584(0x191)]();console[_0x310584(0x211)](_0x35a935+_0x310584(0x1c3)+_0x4731e8[_0x310584(0x100)]+'\x20chars'),console[_0x310584(0x211)](_0x35a935+_0x310584(0x220));const _0x40686e=_0x46e4f0(_0x4731e8);console[_0x310584(0x211)](_0x35a935+_0x310584(0x147));let _0xecdb47=_0x26fc4d(_0x52680a,_0x40686e);_0x5515ae===_0x310584(0x1fd)?(console[_0x310584(0x211)](_0x35a935+'\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...'),_0xecdb47=_0x1fb8f7(_0x52680a,_0xecdb47)):console[_0x310584(0x211)](_0x35a935+_0x310584(0x13a));_0x2541f4?(console[_0x310584(0x211)](_0x35a935+_0x310584(0x19b)),_0xecdb47=_0x56ea09(_0x52680a,_0xecdb47)):console[_0x310584(0x211)](_0x35a935+'\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection');console[_0x310584(0x211)](_0x35a935+_0x310584(0x105)+_0xecdb47[_0x310584(0x100)]+_0x310584(0x1e6));const _0x103ffa=new Headers(_0x1f3227[_0x310584(0x12e)]);_0x103ffa[_0x310584(0x148)](_0x310584(0x1b1),_0x310584(0xf9)),_0x103ffa[_0x310584(0x148)]('x-enhance-document',_0x310584(0x186)),_0x103ffa[_0x310584(0x148)]('x-enhance-document-source',_0x5515ae),_0x134500(_0x103ffa);if(_0x52680a[_0x310584(0x116)]!==_0x310584(0x14c)){console[_0x310584(0x211)](_0x35a935+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x283bd0=_0x103ffa[_0x310584(0x14f)]('content-security-policy');_0x103ffa[_0x310584(0x148)]('content-security-policy',_0x458c2b(_0x283bd0)),_0x103ffa['delete'](_0x310584(0x173)),_0x103ffa[_0x310584(0x1c4)]('cross-origin-embedder-policy'),_0x103ffa[_0x310584(0x1c4)](_0x310584(0x178));}else console['log'](_0x35a935+_0x310584(0x21f));return console['log'](_0x35a935+_0x310584(0x207)),new Response(_0xecdb47,{'status':_0x1f3227[_0x310584(0x212)],'statusText':_0x1f3227[_0x310584(0x157)],'headers':_0x103ffa});}var _0x2bbdee=_0x4a664d(0x175);console[_0x4a664d(0x211)](_0x2bbdee+_0x4a664d(0x15e)+new Date()[_0x4a664d(0x164)]());var _0x6b10b6={'overlayPath':_0x4a664d(0x159),'backendUrl':'https://api.enhancelabs.ai','overlayEnableViteHmr':![],'runtimeScriptPath':_0x4a664d(0x169),'swPath':_0x4a664d(0x200)};console[_0x4a664d(0x211)](_0x2bbdee+_0x4a664d(0xfb),JSON['stringify'](_0x6b10b6,null,0x2));var _0x390b79={'callbackBypass':[_0x4a664d(0x213)],'securityMode':_0x4a664d(0x172)},_0x532445=null,_0x119775=null;function _0x25332f(_0x27bd37,_0x430f6b){const _0x22503c=_0x4a664d,_0x2fced4=_0x27bd37[_0x22503c(0xf8)][_0x22503c(0x14f)]('enhancementUrl');if(_0x430f6b&&_0x2fced4){console['log'](_0x2bbdee+_0x22503c(0x162)+_0x2fced4),_0x532445=_0x2fced4;try{_0x119775=new URL(_0x2fced4);}catch{console['error'](_0x2bbdee+'\x20Failed\x20to\x20parse\x20enhancementUrl:\x20'+_0x2fced4),_0x119775=null;}}_0x430f6b&&!_0x2fced4&&(_0x532445&&console[_0x22503c(0x211)](_0x2bbdee+'\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)'),_0x532445=null,_0x119775=null);const _0xa62b6b=_0x2fced4||_0x532445||'',_0x364f0b=_0x2fced4?((()=>{if(_0x2fced4===_0x532445)return _0x119775;try{return new URL(_0x2fced4);}catch{return null;}})()):_0x119775;return{..._0x6b10b6,..._0x390b79,'enhancementUrl':_0xa62b6b,'enhancementBase':_0x364f0b,'callbackBypassNormalized':_0x390b79[_0x22503c(0x139)][_0x22503c(0x1e4)](_0x3de15f=>_0x3de15f[_0x22503c(0x112)]('/')?_0x3de15f:'/'+_0x3de15f)};}function _0x121722(_0x530094,_0xfce66d,..._0x36eb41){const _0x4f77d2=_0x4a664d;_0x530094===_0x4f77d2(0x16e)?console[_0x4f77d2(0x16e)](_0x2bbdee,_0xfce66d,..._0x36eb41):console[_0x4f77d2(0x1fc)](_0x2bbdee,_0xfce66d,..._0x36eb41);}self[_0x4a664d(0x1d1)]('install',_0x500ca8=>{const _0x4f5da4=_0x4a664d;console[_0x4f5da4(0x211)](_0x2bbdee+_0x4f5da4(0x18d)),_0x500ca8[_0x4f5da4(0x1be)](((async()=>{const _0xa87499=_0x4f5da4;console[_0xa87499(0x211)](_0x2bbdee+_0xa87499(0x20a)),await self[_0xa87499(0x1b0)](),console[_0xa87499(0x211)](_0x2bbdee+_0xa87499(0x1b9));})()));}),self[_0x4a664d(0x1d1)](_0x4a664d(0x1f5),_0x3f5498=>{const _0x25f210=_0x4a664d;console[_0x25f210(0x211)](_0x2bbdee+_0x25f210(0x16d)),_0x3f5498['waitUntil'](((async()=>{const _0x109ca3=_0x25f210;console[_0x109ca3(0x211)](_0x2bbdee+_0x109ca3(0x17e)),await self[_0x109ca3(0x106)]['claim'](),console['log'](_0x2bbdee+_0x109ca3(0x217));})()));}),self['addEventListener'](_0x4a664d(0x214),_0x24d3d8=>{const _0x82b3eb=_0x4a664d,_0x35c95c=_0x24d3d8['data'];console[_0x82b3eb(0x211)](_0x2bbdee+_0x82b3eb(0x1c6),_0x35c95c);if(!_0x35c95c||typeof _0x35c95c!==_0x82b3eb(0x15b)){console['log'](_0x2bbdee+_0x82b3eb(0x121));return;}switch(_0x35c95c[_0x82b3eb(0x1d2)]){case _0x3a363f:{console[_0x82b3eb(0x211)](_0x2bbdee+'\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config');const _0x1d7732=_0x35c95c['config'];_0x390b79={'callbackBypass':_0x1d7732[_0x82b3eb(0x139)]??[_0x82b3eb(0x213)],'securityMode':_0x1d7732[_0x82b3eb(0x116)]??'permissive'},console['log'](_0x2bbdee+_0x82b3eb(0x103),JSON[_0x82b3eb(0x17c)](_0x390b79,null,0x2));break;}case _0x450e5b:console[_0x82b3eb(0x211)](_0x2bbdee+_0x82b3eb(0x176)),_0x390b79={'callbackBypass':[_0x82b3eb(0x213)],'securityMode':'permissive'},_0x532445=null,_0x119775=null,console[_0x82b3eb(0x211)](_0x2bbdee+_0x82b3eb(0x132));break;default:console[_0x82b3eb(0x211)](_0x2bbdee+_0x82b3eb(0x20c)+_0x35c95c[_0x82b3eb(0x1d2)]);break;}}),self[_0x4a664d(0x1d1)](_0x4a664d(0x1af),_0x3cbe59=>{const _0x3b61bc=_0x4a664d;_0x3cbe59[_0x3b61bc(0x12d)](_0x534e69(_0x3cbe59));});async function _0x534e69(_0x583cf5){const _0x50b28f=_0x4a664d,{request:_0xf43bfa}=_0x583cf5,_0x1aa515=new URL(_0xf43bfa[_0x50b28f(0x18f)]),_0x1f3cc8=_0xf43bfa[_0x50b28f(0x163)]==='navigate',_0x4b71e6=_0x1f3cc8||_0x1aa515[_0x50b28f(0x119)]===self['location'][_0x50b28f(0x119)];_0x4b71e6&&(console['log'](_0x2bbdee+_0x50b28f(0x154)+_0xf43bfa['method']+'\x20'+_0x1aa515[_0x50b28f(0x1ae)]+_0x1aa515[_0x50b28f(0x19e)]),console[_0x50b28f(0x211)](_0x2bbdee+_0x50b28f(0x110)+_0xf43bfa[_0x50b28f(0x163)]+',\x20destination:\x20'+_0xf43bfa[_0x50b28f(0x117)]));const _0x4bd24b=_0x25332f(_0x1aa515,_0x1f3cc8);_0x4b71e6&&console[_0x50b28f(0x211)](_0x2bbdee+_0x50b28f(0x1dd)+(_0x4bd24b['enhancementUrl']||_0x50b28f(0x1ac)));if(!_0x5d3cfe(_0xf43bfa))return _0x4b71e6&&console['log'](_0x2bbdee+_0x50b28f(0x128)),fetch(_0xf43bfa);if(_0x23a9de(_0x4bd24b,_0x1aa515[_0x50b28f(0x1ae)]))return _0x4b71e6&&console[_0x50b28f(0x211)](_0x2bbdee+_0x50b28f(0x190)+_0x1aa515['pathname']+'\x20matches\x20callbackBypass'),fetch(_0xf43bfa);if(_0x1f3cc8)return console[_0x50b28f(0x211)](_0x2bbdee+_0x50b28f(0x11a)),_0x5adfa0(_0xf43bfa,_0x4bd24b);if(!_0x31287b(_0x4bd24b,_0xf43bfa,_0x1aa515))return _0x4b71e6&&console[_0x50b28f(0x211)](_0x2bbdee+'\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)'),fetch(_0xf43bfa);console[_0x50b28f(0x211)](_0x2bbdee+_0x50b28f(0x1f1)+_0x1aa515[_0x50b28f(0x1ae)]);const _0x1d1f28=await _0x25b24f(_0x4bd24b,_0xf43bfa,_0x1aa515);if(_0x1d1f28)return console[_0x50b28f(0x211)](_0x2bbdee+'\x20\x20\x20Enhancement\x20HIT\x20for\x20'+_0x1aa515['pathname']),_0x1d1f28;return console[_0x50b28f(0x211)](_0x2bbdee+_0x50b28f(0x10c)+_0x1aa515['pathname']+_0x50b28f(0x1fa)),fetch(_0xf43bfa);}async function _0x5adfa0(_0x4cada3,_0x51635b){const _0x5e19b5=_0x4a664d,_0x3da190=new URL(_0x4cada3[_0x5e19b5(0x18f)]);console[_0x5e19b5(0x211)](_0x2bbdee+'\x20handleNavigationRequest:\x20'+_0x3da190[_0x5e19b5(0x1ae)]+_0x3da190[_0x5e19b5(0x19e)]),console[_0x5e19b5(0x211)](_0x2bbdee+'\x20\x20\x20enhancementUrl\x20in\x20config:\x20'+(_0x51635b[_0x5e19b5(0x13e)]||'none')),console[_0x5e19b5(0x211)](_0x2bbdee+_0x5e19b5(0x13c));const _0x2fd337=await fetch(_0x4cada3);console[_0x5e19b5(0x211)](_0x2bbdee+'\x20\x20\x20Production\x20response:\x20'+_0x2fd337['status']+'\x20'+_0x2fd337[_0x5e19b5(0x157)]),console[_0x5e19b5(0x211)](_0x2bbdee+_0x5e19b5(0x1a9)+_0x2fd337[_0x5e19b5(0x12e)][_0x5e19b5(0x14f)]('content-type'));if(!_0x24d2b3(_0x2fd337))return console[_0x5e19b5(0x211)](_0x2bbdee+_0x5e19b5(0x170)),_0x2fd337;console[_0x5e19b5(0x211)](_0x2bbdee+_0x5e19b5(0x1ff));const _0x3e2e72=_0x54ee4c(_0x2fd337,_0x5e19b5(0x1ec));console[_0x5e19b5(0x211)](_0x2bbdee+'\x20\x20\x20Checking\x20for\x20enhancement\x20document...');const _0x52eca9=await _0x4ef20c(_0x51635b,_0x4cada3),_0x117ba5=_0x52eca9?_0x5e19b5(0x1fd):_0x5e19b5(0x193);console[_0x5e19b5(0x211)](_0x2bbdee+'\x20\x20\x20Document\x20source:\x20'+_0x117ba5);const _0xbb23e0=_0x52eca9??_0x3e2e72,_0x43b113=_0x117ba5===_0x5e19b5(0x1fd)||_0x3da190[_0x5e19b5(0xf8)][_0x5e19b5(0x1a5)](_0x5e19b5(0x219))||_0x3da190[_0x5e19b5(0xf8)][_0x5e19b5(0x1a5)](_0x5e19b5(0x1fd))||_0x3da190[_0x5e19b5(0xf8)][_0x5e19b5(0x1a5)](_0x5e19b5(0x13e));console['log'](_0x2bbdee+_0x5e19b5(0x14e)+_0x43b113);try{console[_0x5e19b5(0x211)](_0x2bbdee+_0x5e19b5(0x1ab));const _0x15793e=await _0x32a6c1(_0x51635b,_0xbb23e0,_0x117ba5,_0x43b113);return console[_0x5e19b5(0x211)](_0x2bbdee+_0x5e19b5(0x1eb)),_0x15793e;}catch(_0x212520){return console[_0x5e19b5(0x1e5)](_0x2bbdee+_0x5e19b5(0x151),_0x212520),_0x121722(_0x5e19b5(0x16e),'Failed\x20to\x20rewrite\x20document',_0x212520),_0xbb23e0;}}return _0x4fe131(_0x5468dd);})());
1
+ 'use strict';(function(_0x529b43,_0x3c1240){const _0x2212d1=_0x5eab,_0x386ba1=_0x529b43();while(!![]){try{const _0x32e656=parseInt(_0x2212d1(0x245))/0x1*(parseInt(_0x2212d1(0x152))/0x2)+-parseInt(_0x2212d1(0x247))/0x3*(-parseInt(_0x2212d1(0x239))/0x4)+-parseInt(_0x2212d1(0x14d))/0x5*(-parseInt(_0x2212d1(0x142))/0x6)+-parseInt(_0x2212d1(0x1e0))/0x7+parseInt(_0x2212d1(0x212))/0x8*(parseInt(_0x2212d1(0x1b1))/0x9)+parseInt(_0x2212d1(0x19c))/0xa+parseInt(_0x2212d1(0x154))/0xb*(-parseInt(_0x2212d1(0x12c))/0xc);if(_0x32e656===_0x3c1240)break;else _0x386ba1['push'](_0x386ba1['shift']());}catch(_0x4ba7bd){_0x386ba1['push'](_0x386ba1['shift']());}}}(_0x1ce6,0xe488b));function _0x1ce6(){const _0x1af62d=['\x20\x20}\x20catch\x20(error)\x20{','$&\x0a','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','x-enhance-routing','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','respondWith','enhancementUrl','join','\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','\x5c$&','\x20\x20\x20\x20\x20\x20return\x20false;','include','add','\x20\x20\x20Enhancement\x20document\x20URL:\x20','8odLyOX','script','\x20shouldRouteAsset:\x20','none','Enhancement\x20document\x20CORS\x20blocked','production','\x20\x20\x20Original\x20HTML\x20length:\x20','hash','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','\x20matches\x20callbackBypass','/__vite/client','\x5cu003e','/@vite/client','url','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','content-length','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','overlayPath','image','/snowpack/hmr','\x20MESSAGE\x20received:','\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20','rewritten','clone','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','HEAD','\x20-\x20falling\x20back\x20to\x20production','stringify','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20rewriteDocument()\x20called','prototype','cors','\x20\x20\x20\x20};','\x20\x20\x20enhancementUrl:\x20','826660OqWAWG','frame-ancestors\x20','Enhancement\x20fetch\x20failed','\x20Bootstrap\x20options:','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\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\x20Document\x20source:\x20','map','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','access-control-allow-origin','error','65kJxHMU','(async\x20()\x20=>\x20{','27PbXnlr','[Enhance\x20SW\x20Bootstrap]','toLowerCase','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','message','\x20\x20\x20Enhancement\x20HIT\x20for\x20',',\x20type:\x20','GET','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','test','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','714972IEenlW','call','claim','font','search','info','\x20\x20\x20BYPASS:\x20','\x5c1[^>]*>\x5cs*</script>','destination','set-cookie','navigate','waitUntil','enhance:configure','permissive','config','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20\x20Response:\x20','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','getOwnPropertyDescriptor','href','content-type','12KrNkMz','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','match','addEventListener','sharedworker','\x20\x20\x20securityMode:\x20','default','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20for\x20','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','overlayEnableViteHmr','551965TxXJks','cross-origin-opener-policy','data','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','text/html','35338cutLjV','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','605qLsTDx','/__parcel_hmr','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','style','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20shouldInjectOverlay:\x20','text','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','status','/__vite_ping','toISOString','type','length','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20Enhancement\x20URL:\x20','\x20Calling\x20skipWaiting()...','font-src\x20*\x20data:','\x20fetchEnhancementDocument:\x20','Enhancement\x20CORS\x20blocked','callbackBypassNormalized','x-enhance-document','skipWaiting','method','custom','\x20\x20\x20runtimeScriptPath:\x20','origin','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','content-security-policy','\x20\x20\x20Document\x20rewrite\x20complete','/assets/enhance-runtime.js','\x20Unknown\x20message\x20type:\x20','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','runtimeScriptPath','media-src\x20*\x20data:\x20blob:','/webpackhotmiddleware','searchParams','\x20Failed\x20to\x20parse\x20enhancementUrl:\x20','get','stylesheet','\x20\x20\x20overlayPath:\x20','modulepreload','/sw-enhance.js','opaque','__esModule','/vite/client','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','http://','set-cookie2','redirect','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','statusText','connect-src\x20*','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20skipWaiting()\x20complete','replace','\x20\x20\x20\x20try\x20{','/webpack-hot-middleware','follow','location','/sockjs-node','object','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20}','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20mode:\x20','\x20\x20\x20Enhancement\x20MISS\x20for\x20','defineProperty','\x20\x20\x20Document\x20rewritten\x20successfully','8633250tLKdpL','https://enhance-api-dev.enhancelabs.workers.dev','full','/parcel-hmr','headers','callbackBypass','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','<script\x20data-enhance-hmr-bridge>','includes','?import','})();','\x20\x20\x20\x20\x20\x20','\x20\x20\x20source:\x20','/__webpack_hmr','activate','\x20\x20\x20\x20\x20\x20return\x20proxied;','enhancement','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','delete','11132874tAVbxF','\x20\x20try\x20{','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','Enhancement\x20document\x20miss\x20','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','Failed\x20to\x20rewrite\x20document','clients','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','object-src\x20\x27none\x27','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','mode','debug','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','cache-control','slice','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)','/auth/callback','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','set','host','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20\x20\x20Not\x20OK\x20(','overlay','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','toString','enhancement-document','startsWith','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20Rewriting\x20entry\x20references...','value','\x20fetchFromEnhancement:\x20','\x20\x20\x20\x20\x20\x20}','no-store','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','access-control-allow-credentials','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','pathname','enhancementBase','src','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',',\x20destination:\x20',',\x20null,\x202));','https://','7815759BeNkyK','worker-src\x20\x27self\x27\x20blob:','\x20\x20\x20Rewriting\x20document...','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20chars)','https://assets-dev.enhancelabs.ai/overlay.js','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20injectRuntimeBootstrap()\x20called','img-src\x20*\x20data:\x20blob:','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','cross-origin-embedder-policy','has','\x20\x20\x20Script\x20inserted\x20into\x20document','\x0a</body>','hasOwnProperty','log','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','push','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20Document\x20fetch\x20error:','\x20ACTIVATE\x20event','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','[Enhance\x20SW\x20Document]','</script>','securityMode','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20INSTALL\x20event',')\x20-\x20returning\x20null','[Enhance\x20SW]'];_0x1ce6=function(){return _0x1af62d;};return _0x1ce6();}function _0x5eab(_0x56239e,_0x4605fd){_0x56239e=_0x56239e-0x11e;const _0x1ce600=_0x1ce6();let _0x5eabf2=_0x1ce600[_0x56239e];return _0x5eabf2;}var EnhanceSW=((()=>{const _0x1a7693=_0x5eab;var _0x2f2594=Object[_0x1a7693(0x19a)],_0x1f1324=Object[_0x1a7693(0x13f)],_0xd7ceba=Object['getOwnPropertyNames'],_0x61b753=Object[_0x1a7693(0x235)][_0x1a7693(0x1f0)],_0x50d86d=(_0x403662,_0x4aa863)=>{for(var _0x19be11 in _0x4aa863)_0x2f2594(_0x403662,_0x19be11,{'get':_0x4aa863[_0x19be11],'enumerable':!![]});},_0x23c616=(_0x376168,_0x1a6581,_0x29e152,_0x5edad6)=>{const _0x3e6470=_0x1a7693;if(_0x1a6581&&typeof _0x1a6581===_0x3e6470(0x194)||typeof _0x1a6581==='function'){for(let _0x133243 of _0xd7ceba(_0x1a6581))if(!_0x61b753[_0x3e6470(0x12d)](_0x376168,_0x133243)&&_0x133243!==_0x29e152)_0x2f2594(_0x376168,_0x133243,{'get':()=>_0x1a6581[_0x133243],'enumerable':!(_0x5edad6=_0x1f1324(_0x1a6581,_0x133243))||_0x5edad6['enumerable']});}return _0x376168;},_0x33d89d=_0xe4d61c=>_0x23c616(_0x2f2594({},_0x1a7693(0x182),{'value':!![]}),_0xe4d61c),_0x50deb5={};_0x50d86d(_0x50deb5,{'log':()=>_0x5b5088});var _0x1a1827=_0x1a7693(0x138),_0x47aecc='enhance:disable';function _0x11aac4(_0x268bc8){if(!_0x268bc8['startsWith']('/'))return'/'+_0x268bc8;return _0x268bc8;}function _0x30fcd0(_0x4d3e1c,_0x4a9baa){const _0x1622fc=_0x1a7693,_0x19cd89=new URL(_0x4d3e1c[_0x1622fc(0x1ca)]()),_0x384218=_0x19cd89[_0x1622fc(0x1d9)]['endsWith']('/')?_0x19cd89[_0x1622fc(0x1d9)][_0x1622fc(0x1bf)](0x0,-0x1):_0x19cd89['pathname'],_0x26942f=_0x4a9baa[_0x1622fc(0x1d9)][_0x1622fc(0x1cc)]('/')?_0x4a9baa[_0x1622fc(0x1d9)]:'/'+_0x4a9baa[_0x1622fc(0x1d9)];return _0x19cd89[_0x1622fc(0x1d9)]=(''+_0x384218+_0x26942f)['replace'](/\/+/g,'/'),_0x19cd89['search']=_0x4a9baa[_0x1622fc(0x130)],_0x19cd89[_0x1622fc(0x219)]='',_0x19cd89;}var _0x126130='[Enhance\x20SW\x20Routing]',_0x3ee469=new Set([_0x1a7693(0x213),_0x1a7693(0x157),_0x1a7693(0x12f),_0x1a7693(0x228),'worker',_0x1a7693(0x146),_0x1a7693(0x17f)]);function _0x378aaa(_0x4d4f82){const _0x1a8bc1=_0x1a7693,_0x26f46d=_0x4d4f82['method']===_0x1a8bc1(0x126)||_0x4d4f82[_0x1a8bc1(0x16b)]===_0x1a8bc1(0x230);return _0x26f46d;}function _0x17181a(_0x3e0b03,_0x241221){const _0x3b2b03=_0x1a7693,_0x4754de=_0x11aac4(_0x241221),_0x4eab4d=_0x3e0b03[_0x3b2b03(0x168)]['some'](_0x50cc86=>_0x4754de['startsWith'](_0x50cc86));return _0x4eab4d;}function _0x55fb66(_0x1e43d6,_0x22a123,_0x5662ae){const _0x5919a1=_0x1a7693,_0x42dcc2=_0x22a123[_0x5919a1(0x134)];if(!_0x42dcc2||!_0x3ee469['has'](_0x42dcc2))return![];if(_0x325721(_0x1e43d6,_0x5662ae))return console[_0x5919a1(0x1f1)](_0x126130+_0x5919a1(0x214)+_0x5662ae[_0x5919a1(0x1d9)]+_0x5919a1(0x18c)),![];if(_0x2588b3(_0x1e43d6,_0x5662ae))return console[_0x5919a1(0x1f1)](_0x126130+_0x5919a1(0x214)+_0x5662ae['pathname']+_0x5919a1(0x1c6)),![];if(_0x5662ae[_0x5919a1(0x16e)]!==self[_0x5919a1(0x192)][_0x5919a1(0x16e)])return![];return!![];}async function _0xfdb5b2(_0x2acbb4,_0x5aaa68,_0x235864){const _0x41a128=_0x1a7693;console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x1d2)+_0x235864['pathname']);if(!_0x2acbb4[_0x41a128(0x1da)])return console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x149)),null;const _0xe645a9=_0x4339ab(_0x2acbb4,_0x235864);console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x163)+_0xe645a9['toString']());const _0x3534a0=new Headers(_0x5aaa68[_0x41a128(0x1a0)]);_0x3534a0[_0x41a128(0x1c4)](_0x41a128(0x207),_0x41a128(0x1ae)),_0x3534a0['delete'](_0x41a128(0x1c5));const _0x45955b=new Request(_0xe645a9[_0x41a128(0x1ca)](),{'method':_0x5aaa68[_0x41a128(0x16b)],'headers':_0x3534a0,'credentials':_0x41a128(0x20f),'redirect':_0x5aaa68[_0x41a128(0x188)],'cache':'default','mode':_0x41a128(0x236)});try{console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x221));const _0x350561=await fetch(_0x45955b);console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x13c)+_0x350561[_0x41a128(0x15d)]+'\x20'+_0x350561[_0x41a128(0x18a)]+',\x20type:\x20'+_0x350561['type']);if(_0x350561['type']==='opaque')return console['log'](_0x126130+_0x41a128(0x206)),_0x5b5088(_0x41a128(0x131),_0x41a128(0x167),_0xe645a9[_0x41a128(0x1ca)]()),null;if(!_0x350561['ok'])return console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x1c7)+_0x350561[_0x41a128(0x15d)]+_0x41a128(0x202)),_0x5b5088(_0x41a128(0x1bc),'Enhancement\x20miss\x20'+_0x350561[_0x41a128(0x15d)]+_0x41a128(0x14a)+_0xe645a9[_0x41a128(0x1d9)]),null;return console[_0x41a128(0x1f1)](_0x126130+_0x41a128(0x1bd)),_0x1d1746(_0x350561,_0x5aaa68[_0x41a128(0x16b)]);}catch(_0x5c81ad){return console[_0x41a128(0x244)](_0x126130+'\x20\x20\x20Fetch\x20error:',_0x5c81ad),_0x5b5088(_0x41a128(0x131),_0x41a128(0x23b),_0x5c81ad),null;}}async function _0x1fbeda(_0x17e06a,_0xa92cc1){const _0x4ca658=_0x1a7693,_0x31614b=new URL(_0xa92cc1[_0x4ca658(0x21f)]);console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x166)+_0x31614b['pathname']+_0x31614b[_0x4ca658(0x130)]);if(!_0x17e06a[_0x4ca658(0x1da)])return console[_0x4ca658(0x1f1)](_0x126130+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null'),null;const _0x48a311=_0x4339ab(_0x17e06a,_0x31614b);console['log'](_0x126130+_0x4ca658(0x211)+_0x48a311['toString']());const _0x4d7c3a=new Headers(_0xa92cc1['headers']);_0x4d7c3a[_0x4ca658(0x1c4)](_0x4ca658(0x207),_0x4ca658(0x1cb)),_0x4d7c3a['delete']('host'),_0x4d7c3a[_0x4ca658(0x1b0)](_0x4ca658(0x225));const _0x38ddc3=new Request(_0x48a311[_0x4ca658(0x1ca)](),{'method':_0x4ca658(0x126),'headers':_0x4d7c3a,'credentials':_0x4ca658(0x20f),'redirect':_0x4ca658(0x191),'cache':_0x4ca658(0x148),'mode':_0x4ca658(0x236)});try{console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x1e7));const _0x2e7d72=await fetch(_0x38ddc3);console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x13c)+_0x2e7d72[_0x4ca658(0x15d)]+'\x20'+_0x2e7d72[_0x4ca658(0x18a)]+_0x4ca658(0x125)+_0x2e7d72['type']),console['log'](_0x126130+'\x20\x20\x20Content-Type:\x20'+_0x2e7d72[_0x4ca658(0x1a0)]['get'](_0x4ca658(0x141)));if(_0x2e7d72[_0x4ca658(0x160)]===_0x4ca658(0x181))return console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x206)),_0x5b5088(_0x4ca658(0x131),_0x4ca658(0x216),_0x48a311[_0x4ca658(0x1ca)]()),null;if(!_0x2e7d72['ok'])return console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x1c7)+_0x2e7d72[_0x4ca658(0x15d)]+_0x4ca658(0x202)),_0x5b5088(_0x4ca658(0x1bc),_0x4ca658(0x1b4)+_0x2e7d72[_0x4ca658(0x15d)]+_0x4ca658(0x14a)+_0x48a311[_0x4ca658(0x1d9)]),null;if(!_0x5abe17(_0x2e7d72))return console['log'](_0x126130+_0x4ca658(0x129)),null;return console[_0x4ca658(0x1f1)](_0x126130+_0x4ca658(0x184)),_0x1d1746(_0x2e7d72,_0x4ca658(0x126));}catch(_0x29b484){return console[_0x4ca658(0x244)](_0x126130+_0x4ca658(0x1f6),_0x29b484),_0x5b5088(_0x4ca658(0x131),'Enhancement\x20document\x20fetch\x20failed',_0x29b484),null;}}function _0x4339ab(_0x256e58,_0x4e4bd7){const _0x342486=_0x1a7693;if(!_0x256e58[_0x342486(0x1da)])throw new Error(_0x342486(0x122));return _0x30fcd0(_0x256e58['enhancementBase'],_0x4e4bd7);}function _0x1d1746(_0x319c54,_0x53928b){const _0x25668f=_0x1a7693,_0x39f5e3=_0x319c54[_0x25668f(0x22d)](),_0xd66390=new Headers(_0x39f5e3[_0x25668f(0x1a0)]);_0xd66390[_0x25668f(0x1b0)](_0x25668f(0x243)),_0xd66390[_0x25668f(0x1b0)](_0x25668f(0x1d7)),_0xd66390[_0x25668f(0x1b0)]('access-control-expose-headers'),_0xd66390[_0x25668f(0x1c4)]('x-enhance-enhancement','hit'),_0x4b12f3(_0xd66390);const _0x2800a1=_0x53928b===_0x25668f(0x230)?null:_0x39f5e3['body'];return new Response(_0x2800a1,{'status':_0x39f5e3[_0x25668f(0x15d)],'statusText':_0x39f5e3[_0x25668f(0x18a)],'headers':_0xd66390});}function _0x5abe17(_0x5aa69c){const _0x1ad4c4=_0x1a7693,_0x19582e=_0x5aa69c['headers'][_0x1ad4c4(0x17c)](_0x1ad4c4(0x141));return _0x19582e!=null&&_0x19582e[_0x1ad4c4(0x1a6)](_0x1ad4c4(0x151));}function _0x325721(_0x131e34,_0x395a57){const _0x5b3a30=_0x1a7693;return _0x278d35(_0x395a57,_0x131e34[_0x5b3a30(0x227)]);}function _0x2588b3(_0x41c697,_0x2936f9){const _0x425967=_0x1a7693;return _0xc1e5d3(_0x2936f9,_0x41c697[_0x425967(0x177)]);}function _0x278d35(_0xcbb1a6,_0xcda13c){const _0x57e7a1=_0x1a7693;if(!_0xcda13c)return![];if(_0xcda13c['startsWith'](_0x57e7a1(0x186))||_0xcda13c[_0x57e7a1(0x1cc)](_0x57e7a1(0x1df)))return _0xcbb1a6[_0x57e7a1(0x140)]===_0xcda13c;const _0x33b4a4=_0x2ee3ba(_0xcda13c);if(!_0x33b4a4)return![];const _0x1ecd1d=''+_0xcbb1a6['pathname']+_0xcbb1a6[_0x57e7a1(0x130)];if(_0x1ecd1d===_0x33b4a4)return!![];if(_0xcbb1a6[_0x57e7a1(0x130)]===_0x57e7a1(0x1a7))return _0xcbb1a6[_0x57e7a1(0x1d9)]===_0x33b4a4;return![];}function _0xc1e5d3(_0x593dc1,_0x395b23){const _0x5cce55=_0x1a7693;if(!_0x395b23)return![];if(_0x395b23['startsWith'](_0x5cce55(0x186))||_0x395b23['startsWith'](_0x5cce55(0x1df)))return _0x593dc1[_0x5cce55(0x140)]===_0x395b23;const _0x578ab3=_0x2ee3ba(_0x395b23);if(!_0x578ab3)return![];const _0x5172aa=''+_0x593dc1[_0x5cce55(0x1d9)]+_0x593dc1[_0x5cce55(0x130)];return _0x5172aa===_0x578ab3;}function _0x2ee3ba(_0x5aed5b){const _0x321372=_0x1a7693;if(!_0x5aed5b)return _0x5aed5b;if(_0x5aed5b[_0x321372(0x1cc)](_0x321372(0x186))||_0x5aed5b[_0x321372(0x1cc)](_0x321372(0x1df)))return _0x5aed5b;const _0x4f3b06=_0x5aed5b[_0x321372(0x18e)](/^\.\//,'');if(_0x4f3b06[_0x321372(0x1cc)]('/'))return _0x4f3b06;return'/'+_0x4f3b06;}function _0x4b12f3(_0x300b64){const _0x19bd36=_0x1a7693;_0x300b64['delete'](_0x19bd36(0x135)),_0x300b64[_0x19bd36(0x1b0)](_0x19bd36(0x187));}function _0x4065e0(_0x2e6eb3){const _0x4723ca=_0x1a7693,_0x2f0ef1=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x4723ca(0x15b),_0x4723ca(0x175),_0x4723ca(0x1ea),_0x4723ca(0x165),_0x4723ca(0x18b),_0x4723ca(0x178),_0x4723ca(0x1e1),_0x4723ca(0x1b9)],_0x41e9bf=_0x105646(_0x2e6eb3);return _0x41e9bf&&_0x2f0ef1['push'](_0x41e9bf),_0x2f0ef1[_0x4723ca(0x20b)](';\x20');}function _0xd1a8cf(_0x4ee010){const _0x76b6cd=_0x1a7693;_0x4ee010[_0x76b6cd(0x1b0)](_0x76b6cd(0x135)),_0x4ee010['delete'](_0x76b6cd(0x187));}function _0x105646(_0x47d835){const _0x2f5ff7=_0x1a7693;if(!_0x47d835)return null;const _0x3bc689=_0x47d835[_0x2f5ff7(0x144)](/frame-ancestors\s+([^;]+)/i);if(!_0x3bc689)return null;return _0x2f5ff7(0x23a)+_0x3bc689[0x1]['trim']();}function _0x295faf(_0x15d715,_0xf8cd78){const _0x465569=_0x1a7693;if(/<head[^>]*>/i[_0x465569(0x12a)](_0x15d715)){const _0x3ebb2d=_0x15d715['match'](/<head[^>]*>/i);if(_0x3ebb2d){const _0x1e7b31=_0x3ebb2d[0x0];return _0x15d715[_0x465569(0x18e)](_0x1e7b31,_0x1e7b31+'\x0a'+_0xf8cd78);}}if(/<\/head>/i['test'](_0x15d715))return _0x15d715[_0x465569(0x18e)](/<\/head>/i,_0xf8cd78+'\x0a</head>');if(/<body\b[^>]*>/i[_0x465569(0x12a)](_0x15d715))return _0x15d715[_0x465569(0x18e)](/<body\b[^>]*>/i,_0x465569(0x205)+_0xf8cd78);if(/<\/body>/i[_0x465569(0x12a)](_0x15d715))return _0x15d715[_0x465569(0x18e)](/<\/body>/i,_0xf8cd78+_0x465569(0x1ef));return _0xf8cd78+'\x0a'+_0x15d715;}var _0x37f5e2=['vite-hmr'],_0x38de48=[_0x1a7693(0x21e),_0x1a7693(0x21c),_0x1a7693(0x183),_0x1a7693(0x15e),_0x1a7693(0x193),'/webpack-dev-server','/webpack-hmr',_0x1a7693(0x179),_0x1a7693(0x190),_0x1a7693(0x1ab),'/_next/webpack-hmr',_0x1a7693(0x19f),_0x1a7693(0x155),'/__snowpack__',_0x1a7693(0x229)];function _0x39efbf(_0x368ab6,_0x31032d){const _0x419cc8=_0x200eab(_0x368ab6);if(!_0x419cc8)return _0x31032d;return _0x295faf(_0x31032d,_0x419cc8);}function _0x200eab(_0x3fa75a){const _0x3c1a46=_0x1a7693;if(!_0x3fa75a[_0x3c1a46(0x1da)])return null;const _0x18bae2=_0x3fa75a[_0x3c1a46(0x1da)][_0x3c1a46(0x1ca)](),_0x57e541=_0x116817(_0x37f5e2),_0x5822fa=_0x116817(_0x38de48),_0x3b5dab=[_0x3c1a46(0x1a5),'(function(){',_0x3c1a46(0x1b2),_0x3c1a46(0x1c0)+JSON[_0x3c1a46(0x232)](_0x18bae2)+');',_0x3c1a46(0x1e6),_0x3c1a46(0x13e),_0x3c1a46(0x197),_0x3c1a46(0x1ff),_0x3c1a46(0x208)+JSON[_0x3c1a46(0x232)](_0x57e541)+');',_0x3c1a46(0x158)+JSON[_0x3c1a46(0x232)](_0x5822fa)+';',_0x3c1a46(0x23e),'\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0x3c1a46(0x1af),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];',_0x3c1a46(0x237),_0x3c1a46(0x1e8),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];',_0x3c1a46(0x176),_0x3c1a46(0x195),_0x3c1a46(0x1a9),'\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x3c1a46(0x1a9),_0x3c1a46(0x1e3),_0x3c1a46(0x1c3),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x3c1a46(0x1d3),_0x3c1a46(0x156),_0x3c1a46(0x1fd),_0x3c1a46(0x185),_0x3c1a46(0x121),_0x3c1a46(0x1f5),_0x3c1a46(0x120),_0x3c1a46(0x1d3),'\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();',_0x3c1a46(0x1eb),_0x3c1a46(0x1cd),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}',_0x3c1a46(0x20e),_0x3c1a46(0x237),_0x3c1a46(0x1ba),_0x3c1a46(0x200),_0x3c1a46(0x233),_0x3c1a46(0x1dc),'\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x3c1a46(0x1ad),_0x3c1a46(0x237),_0x3c1a46(0x22f),_0x3c1a46(0x13d),_0x3c1a46(0x23f),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);',_0x3c1a46(0x242),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x3c1a46(0x1b8),'\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20\x20};',_0x3c1a46(0x1a2),_0x3c1a46(0x1b5),_0x3c1a46(0x1c9),_0x3c1a46(0x18f),_0x3c1a46(0x23d),_0x3c1a46(0x1d8),_0x3c1a46(0x153),_0x3c1a46(0x1ff),_0x3c1a46(0x220),_0x3c1a46(0x13b),_0x3c1a46(0x204),_0x3c1a46(0x224),_0x3c1a46(0x196),'})();',_0x3c1a46(0x1fa)];return _0x3b5dab['join']('\x0a');}function _0x116817(_0x10a6ab){const _0x33ca10=_0x1a7693,_0x5ac777=new Set(),_0x1b5102=[];for(const _0x2f8731 of _0x10a6ab){const _0x4fb77a=_0x2f8731['toLowerCase']();if(_0x5ac777[_0x33ca10(0x1ed)](_0x4fb77a))continue;_0x5ac777[_0x33ca10(0x210)](_0x4fb77a),_0x1b5102[_0x33ca10(0x1f3)](_0x4fb77a);}return _0x1b5102;}var _0x39b7f8=_0x1a7693(0x11e);function _0x207bb5(_0x2e36be,_0x200b82){const _0x280337=_0x1a7693;console['log'](_0x39b7f8+_0x280337(0x1e9)),console['log'](_0x39b7f8+_0x280337(0x16d)+_0x2e36be[_0x280337(0x177)]),console['log'](_0x39b7f8+_0x280337(0x17e)+_0x2e36be['overlayPath']);const _0x16e65a=_0x148eca(_0x2e36be);if(!_0x16e65a)return console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x143)),_0x200b82;console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x21a)+_0x16e65a['length']+_0x280337(0x1e4));const _0x1297f8=_0x2cb910(_0x200b82,_0x2e36be[_0x280337(0x177)]);console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x1f8));const _0xd63df9=_0x295faf(_0x1297f8,_0x16e65a);return console[_0x280337(0x1f1)](_0x39b7f8+_0x280337(0x1ee)),_0xd63df9;}function _0x148eca(_0x5e5c5e){const _0x122449=_0x1a7693,_0x187f53=_0x5e5c5e[_0x122449(0x177)];if(!_0x187f53)return console[_0x122449(0x1f1)](_0x39b7f8+_0x122449(0x12b)),null;const _0x2ba34c=_0x479fd4(_0x5e5c5e);console['log'](_0x39b7f8+_0x122449(0x23c),JSON[_0x122449(0x232)](_0x2ba34c,null,0x2));const _0x5477ec=_0x1d21b8(_0x2ba34c),_0x1815e9=JSON['stringify'](_0x187f53),_0x19b2ab=[_0x122449(0x1f2),_0x122449(0x246),_0x122449(0x1b2),'\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x1815e9+';','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);',_0x122449(0x222),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x122449(0x162),'\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{',_0x122449(0x1fc),_0x122449(0x197),_0x122449(0x1ff),_0x122449(0x16f)+_0x5477ec+_0x122449(0x1de),_0x122449(0x174)+_0x5477ec+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);',_0x122449(0x1b3),'\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;',_0x122449(0x1d5),_0x122449(0x20c),_0x122449(0x1a4),_0x122449(0x150),_0x122449(0x1a3),'\x20\x20\x20\x20}',_0x122449(0x1cf),'\x20\x20}\x20catch\x20(error)\x20{',_0x122449(0x1d6),_0x122449(0x196),_0x122449(0x1a8),_0x122449(0x1fa)];return _0x19b2ab[_0x122449(0x20b)]('\x0a');}function _0x479fd4(_0x3ff53f){const _0x2d6f24=_0x1a7693,_0x4efbaa={'callbackBypass':_0x3ff53f['callbackBypass'],'__development':{'enableOverlayHmr':_0x3ff53f[_0x2d6f24(0x14c)],'overlayPath':_0x3ff53f[_0x2d6f24(0x227)],'security':_0x3ff53f['securityMode'],'backendUrl':_0x3ff53f['backendUrl']}};return _0x4efbaa;}function _0x1d21b8(_0x3c2a7c){const _0x458170=_0x1a7693;return JSON[_0x458170(0x232)](_0x3c2a7c)[_0x458170(0x18e)](/</g,'\x5cu003c')[_0x458170(0x18e)](/>/g,_0x458170(0x21d));}function _0x2cb910(_0x2c9c28,_0x118110){const _0x15e720=_0x1a7693,_0x1755ad=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x5de325=_0x2c9c28['replace'](_0x1755ad,'');if(_0x118110){const _0x5a7e6f=_0x6e88bf(_0x118110),_0x21468b=new RegExp(_0x15e720(0x226)+_0x5a7e6f+_0x15e720(0x133),'gi');_0x5de325=_0x5de325['replace'](_0x21468b,'');}return _0x5de325;}function _0x6e88bf(_0x3c37c7){const _0x51e187=_0x1a7693;return _0x3c37c7[_0x51e187(0x18e)](/[-/\\^$*+?.()|[\]{}]/g,_0x51e187(0x20d));}function _0xc329e3(_0xdde74b,_0xd8fa6c){const _0x5ab594=_0x1a7693,_0x49d533=_0x34f29c=>_0x74c695(_0xdde74b,_0x34f29c),_0x243980=_0x344653=>_0x4c1371(_0xdde74b,_0x344653);return _0xd8fa6c[_0x5ab594(0x18e)](/<script\b[^>]*>/gi,_0x49d533)[_0x5ab594(0x18e)](/<link\b[^>]*>/gi,_0x243980);}function _0x402fdd(_0x4f4404){const _0x408a0c=_0x1a7693;return _0x4f4404[_0x408a0c(0x18e)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x74c695(_0x3aadc3,_0x92c40){const _0x11b149=_0x1a7693,_0x432612=_0x3a06f1(_0x92c40,_0x11b149(0x1db));if(!_0x432612)return _0x92c40;const _0x599ad2=_0xe3184a(_0x3aadc3,_0x432612[_0x11b149(0x1d1)]);if(!_0x599ad2||_0x599ad2===_0x432612[_0x11b149(0x1d1)])return _0x92c40;const _0x4c0cc7=_0x432612[_0x11b149(0x19e)][_0x11b149(0x18e)](_0x432612[_0x11b149(0x1d1)],_0x599ad2);return _0x92c40[_0x11b149(0x18e)](_0x432612[_0x11b149(0x19e)],_0x4c0cc7);}function _0x4c1371(_0x502050,_0x3e9776){const _0x33cf5a=_0x1a7693,_0x6d87b8=_0x3e9776[_0x33cf5a(0x144)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x6d87b8)return _0x3e9776;const _0x130d5b=_0x6d87b8[0x2][_0x33cf5a(0x11f)]();if(_0x130d5b!==_0x33cf5a(0x17d)&&_0x130d5b!=='modulepreload')return _0x3e9776;const _0x105c68=_0x3a06f1(_0x3e9776,_0x33cf5a(0x140));if(!_0x105c68)return _0x3e9776;const _0x21c548=_0xe3184a(_0x502050,_0x105c68[_0x33cf5a(0x1d1)]);if(!_0x21c548||_0x21c548===_0x105c68[_0x33cf5a(0x1d1)])return _0x3e9776;const _0xc32236=_0x105c68[_0x33cf5a(0x19e)]['replace'](_0x105c68[_0x33cf5a(0x1d1)],_0x21c548);return _0x3e9776['replace'](_0x105c68[_0x33cf5a(0x19e)],_0xc32236);}function _0x3a06f1(_0x48dc81,_0x32dbd4){const _0x2ef1f2=_0x1a7693,_0x149c38=new RegExp(_0x32dbd4+'\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','i'),_0x850242=_0x48dc81[_0x2ef1f2(0x144)](_0x149c38);if(!_0x850242)return null;return{'full':_0x850242[0x0],'value':_0x850242[0x2]};}function _0xe3184a(_0x4e6de1,_0x1763af){const _0x211c45=_0x1a7693,_0x553d55=_0x4b39e3(_0x1763af);if(!_0x553d55)return null;if(_0x553d55[_0x211c45(0x16e)]===self[_0x211c45(0x192)][_0x211c45(0x16e)])return''+_0x553d55['pathname']+_0x553d55['search'];return null;}function _0x4b39e3(_0x3ed308){const _0x334828=_0x1a7693;try{return new URL(_0x3ed308,self[_0x334828(0x192)][_0x334828(0x16e)]);}catch{return null;}}var _0x5ca9b9=_0x1a7693(0x1f9);async function _0x181e40(_0x8ffd65,_0x97f1a0,_0x1843e9,_0x389dad=!![]){const _0x492208=_0x1a7693;console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x234)),console['log'](_0x5ca9b9+_0x492208(0x1aa)+_0x1843e9),console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x159)+_0x389dad),console['log'](_0x5ca9b9+_0x492208(0x147)+_0x8ffd65[_0x492208(0x1fb)]);const _0x110213=_0x97f1a0[_0x492208(0x22d)](),_0x17e84=await _0x110213[_0x492208(0x15a)]();console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x218)+_0x17e84[_0x492208(0x161)]+'\x20chars'),console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x1ce));const _0x12d9cf=_0x402fdd(_0x17e84);console['log'](_0x5ca9b9+_0x492208(0x1d0));let _0x618e53=_0xc329e3(_0x8ffd65,_0x12d9cf);_0x1843e9===_0x492208(0x1ae)?(console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...'),_0x618e53=_0x39efbf(_0x8ffd65,_0x618e53)):console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)');_0x389dad?(console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Injecting\x20runtime\x20bootstrap...'),_0x618e53=_0x207bb5(_0x8ffd65,_0x618e53)):console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x127));console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x189)+_0x618e53[_0x492208(0x161)]+'\x20chars');const _0x446f36=new Headers(_0x110213[_0x492208(0x1a0)]);_0x446f36[_0x492208(0x1c4)](_0x492208(0x1be),_0x492208(0x1d4)),_0x446f36[_0x492208(0x1c4)](_0x492208(0x169),_0x492208(0x22c)),_0x446f36['set']('x-enhance-document-source',_0x1843e9),_0xd1a8cf(_0x446f36);if(_0x8ffd65[_0x492208(0x1fb)]!==_0x492208(0x16c)){console[_0x492208(0x1f1)](_0x5ca9b9+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x194e2a=_0x446f36[_0x492208(0x17c)](_0x492208(0x170));_0x446f36[_0x492208(0x1c4)](_0x492208(0x170),_0x4065e0(_0x194e2a)),_0x446f36[_0x492208(0x1b0)](_0x492208(0x14e)),_0x446f36[_0x492208(0x1b0)](_0x492208(0x1ec)),_0x446f36[_0x492208(0x1b0)]('cross-origin-resource-policy');}else console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x22e));return console[_0x492208(0x1f1)](_0x5ca9b9+_0x492208(0x171)),new Response(_0x618e53,{'status':_0x110213[_0x492208(0x15d)],'statusText':_0x110213[_0x492208(0x18a)],'headers':_0x446f36});}var _0x2ffcaa=_0x1a7693(0x203);console[_0x1a7693(0x1f1)](_0x2ffcaa+'\x20Service\x20Worker\x20script\x20loaded\x20at\x20'+new Date()[_0x1a7693(0x15f)]());var _0x18d6b9={'overlayPath':_0x1a7693(0x1e5),'backendUrl':_0x1a7693(0x19d),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x1a7693(0x172),'swPath':_0x1a7693(0x180)};console[_0x1a7693(0x1f1)](_0x2ffcaa+'\x20Build\x20config:',JSON[_0x1a7693(0x232)](_0x18d6b9,null,0x2));var _0x2fcf0f={'callbackBypass':[_0x1a7693(0x1c2)],'securityMode':_0x1a7693(0x139)},_0x3963a7=null,_0x56f838=null;function _0x4447c8(_0xbe2124,_0x4a8d05){const _0x4720af=_0x1a7693,_0x27d85a=_0xbe2124[_0x4720af(0x17a)][_0x4720af(0x17c)](_0x4720af(0x20a));if(_0x4a8d05&&_0x27d85a){console[_0x4720af(0x1f1)](_0x2ffcaa+_0x4720af(0x22b)+_0x27d85a),_0x3963a7=_0x27d85a;try{_0x56f838=new URL(_0x27d85a);}catch{console['error'](_0x2ffcaa+_0x4720af(0x17b)+_0x27d85a),_0x56f838=null;}}_0x4a8d05&&!_0x27d85a&&(_0x3963a7&&console[_0x4720af(0x1f1)](_0x2ffcaa+_0x4720af(0x1c1)),_0x3963a7=null,_0x56f838=null);const _0x44b60c=_0x27d85a||_0x3963a7||'',_0x3c110f=_0x27d85a?((()=>{if(_0x27d85a===_0x3963a7)return _0x56f838;try{return new URL(_0x27d85a);}catch{return null;}})()):_0x56f838;return{..._0x18d6b9,..._0x2fcf0f,'enhancementUrl':_0x44b60c,'enhancementBase':_0x3c110f,'callbackBypassNormalized':_0x2fcf0f[_0x4720af(0x1a1)][_0x4720af(0x241)](_0x1ba14c=>_0x1ba14c['startsWith']('/')?_0x1ba14c:'/'+_0x1ba14c)};}function _0x5b5088(_0x9327c3,_0xe78ca6,..._0x2930c3){const _0x1e52d0=_0x1a7693;_0x9327c3===_0x1e52d0(0x131)?console['info'](_0x2ffcaa,_0xe78ca6,..._0x2930c3):console[_0x1e52d0(0x1bc)](_0x2ffcaa,_0xe78ca6,..._0x2930c3);}self[_0x1a7693(0x145)]('install',_0x440f9d=>{const _0xd519db=_0x1a7693;console[_0xd519db(0x1f1)](_0x2ffcaa+_0xd519db(0x201)),_0x440f9d[_0xd519db(0x137)](((async()=>{const _0x1a5446=_0xd519db;console[_0x1a5446(0x1f1)](_0x2ffcaa+_0x1a5446(0x164)),await self[_0x1a5446(0x16a)](),console['log'](_0x2ffcaa+_0x1a5446(0x18d));})()));}),self[_0x1a7693(0x145)](_0x1a7693(0x1ac),_0x4b3b7b=>{const _0x166ba4=_0x1a7693;console[_0x166ba4(0x1f1)](_0x2ffcaa+_0x166ba4(0x1f7)),_0x4b3b7b[_0x166ba4(0x137)](((async()=>{const _0x190b8e=_0x166ba4;console[_0x190b8e(0x1f1)](_0x2ffcaa+'\x20Calling\x20clients.claim()...'),await self[_0x190b8e(0x1b7)][_0x190b8e(0x12e)](),console[_0x190b8e(0x1f1)](_0x2ffcaa+'\x20clients.claim()\x20complete');})()));}),self[_0x1a7693(0x145)](_0x1a7693(0x123),_0x47f359=>{const _0x127e0b=_0x1a7693,_0x1f8724=_0x47f359[_0x127e0b(0x14f)];console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x22a),_0x1f8724);if(!_0x1f8724||typeof _0x1f8724!==_0x127e0b(0x194)){console[_0x127e0b(0x1f1)](_0x2ffcaa+'\x20Invalid\x20message\x20data\x20-\x20ignoring');return;}switch(_0x1f8724[_0x127e0b(0x160)]){case _0x1a1827:{console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x1f4));const _0x2c9cd1=_0x1f8724[_0x127e0b(0x13a)];_0x2fcf0f={'callbackBypass':_0x2c9cd1[_0x127e0b(0x1a1)]??[_0x127e0b(0x1c2)],'securityMode':_0x2c9cd1[_0x127e0b(0x1fb)]??_0x127e0b(0x139)},console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x1fe),JSON[_0x127e0b(0x232)](_0x2fcf0f,null,0x2));break;}case _0x47aecc:console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x223)),_0x2fcf0f={'callbackBypass':[_0x127e0b(0x1c2)],'securityMode':_0x127e0b(0x139)},_0x3963a7=null,_0x56f838=null,console[_0x127e0b(0x1f1)](_0x2ffcaa+'\x20Config\x20reset');break;default:console[_0x127e0b(0x1f1)](_0x2ffcaa+_0x127e0b(0x173)+_0x1f8724['type']);break;}}),self[_0x1a7693(0x145)]('fetch',_0x1af3a9=>{const _0x52f327=_0x1a7693;_0x1af3a9[_0x52f327(0x209)](_0x52f329(_0x1af3a9));});async function _0x52f329(_0x5d4f05){const _0x28ec65=_0x1a7693,{request:_0x16650c}=_0x5d4f05,_0x1fed04=new URL(_0x16650c[_0x28ec65(0x21f)]),_0x2f7ec8=_0x16650c[_0x28ec65(0x1bb)]===_0x28ec65(0x136),_0x300543=_0x2f7ec8||_0x1fed04[_0x28ec65(0x16e)]===self['location'][_0x28ec65(0x16e)];_0x300543&&(console['log'](_0x2ffcaa+'\x20FETCH:\x20'+_0x16650c[_0x28ec65(0x16b)]+'\x20'+_0x1fed04[_0x28ec65(0x1d9)]+_0x1fed04[_0x28ec65(0x130)]),console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x198)+_0x16650c[_0x28ec65(0x1bb)]+_0x28ec65(0x1dd)+_0x16650c[_0x28ec65(0x134)]));const _0x428e4d=_0x4447c8(_0x1fed04,_0x2f7ec8);_0x300543&&console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x238)+(_0x428e4d[_0x28ec65(0x20a)]||_0x28ec65(0x215)));if(!_0x378aaa(_0x16650c))return _0x300543&&console['log'](_0x2ffcaa+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x16650c);if(_0x17181a(_0x428e4d,_0x1fed04[_0x28ec65(0x1d9)]))return _0x300543&&console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x132)+_0x1fed04[_0x28ec65(0x1d9)]+_0x28ec65(0x21b)),fetch(_0x16650c);if(_0x2f7ec8)return console[_0x28ec65(0x1f1)](_0x2ffcaa+'\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation'),_0x498e57(_0x16650c,_0x428e4d);if(!_0x55fb66(_0x428e4d,_0x16650c,_0x1fed04))return _0x300543&&console['log'](_0x2ffcaa+_0x28ec65(0x15c)),fetch(_0x16650c);console[_0x28ec65(0x1f1)](_0x2ffcaa+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x1fed04[_0x28ec65(0x1d9)]);const _0x526f84=await _0xfdb5b2(_0x428e4d,_0x16650c,_0x1fed04);if(_0x526f84)return console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x124)+_0x1fed04[_0x28ec65(0x1d9)]),_0x526f84;return console[_0x28ec65(0x1f1)](_0x2ffcaa+_0x28ec65(0x199)+_0x1fed04['pathname']+_0x28ec65(0x231)),fetch(_0x16650c);}async function _0x498e57(_0x2d4136,_0x1a16b9){const _0x1314e9=_0x1a7693,_0x588d4e=new URL(_0x2d4136[_0x1314e9(0x21f)]);console[_0x1314e9(0x1f1)](_0x2ffcaa+'\x20handleNavigationRequest:\x20'+_0x588d4e[_0x1314e9(0x1d9)]+_0x588d4e[_0x1314e9(0x130)]),console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x128)+(_0x1a16b9['enhancementUrl']||_0x1314e9(0x215))),console[_0x1314e9(0x1f1)](_0x2ffcaa+'\x20\x20\x20Fetching\x20production\x20response...');const _0xe27ae1=await fetch(_0x2d4136);console['log'](_0x2ffcaa+'\x20\x20\x20Production\x20response:\x20'+_0xe27ae1[_0x1314e9(0x15d)]+'\x20'+_0xe27ae1[_0x1314e9(0x18a)]),console['log'](_0x2ffcaa+'\x20\x20\x20Content-Type:\x20'+_0xe27ae1[_0x1314e9(0x1a0)][_0x1314e9(0x17c)](_0x1314e9(0x141)));if(!_0x5abe17(_0xe27ae1))return console['log'](_0x2ffcaa+'\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is'),_0xe27ae1;console['log'](_0x2ffcaa+'\x20\x20\x20HTML\x20response\x20-\x20processing...');const _0x5d717f=_0x1d1746(_0xe27ae1,'GET');console[_0x1314e9(0x1f1)](_0x2ffcaa+'\x20\x20\x20Checking\x20for\x20enhancement\x20document...');const _0x2aff99=await _0x1fbeda(_0x1a16b9,_0x2d4136),_0x166035=_0x2aff99?_0x1314e9(0x1ae):_0x1314e9(0x217);console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x240)+_0x166035);const _0x2743e5=_0x2aff99??_0x5d717f,_0x57c7ec=_0x166035===_0x1314e9(0x1ae)||_0x588d4e[_0x1314e9(0x17a)][_0x1314e9(0x1ed)](_0x1314e9(0x1c8))||_0x588d4e[_0x1314e9(0x17a)]['has'](_0x1314e9(0x1ae))||_0x588d4e[_0x1314e9(0x17a)][_0x1314e9(0x1ed)](_0x1314e9(0x20a));console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x159)+_0x57c7ec);try{console[_0x1314e9(0x1f1)](_0x2ffcaa+_0x1314e9(0x1e2));const _0x5dd1a7=await _0x181e40(_0x1a16b9,_0x2743e5,_0x166035,_0x57c7ec);return console['log'](_0x2ffcaa+_0x1314e9(0x19b)),_0x5dd1a7;}catch(_0xc7e3bf){return console[_0x1314e9(0x244)](_0x2ffcaa+_0x1314e9(0x14b),_0xc7e3bf),_0x5b5088(_0x1314e9(0x131),_0x1314e9(0x1b6),_0xc7e3bf),_0x2743e5;}}return _0x33d89d(_0x50deb5);})());
@@ -1 +1 @@
1
- var _0x5b4014=_0x34b5;function _0x34b5(_0x540b87,_0x445b7d){_0x540b87=_0x540b87-0x166;var _0x51f069=_0x51f0();var _0x34b523=_0x51f069[_0x540b87];return _0x34b523;}(function(_0x130d58,_0x3501f5){var _0x4b1a13=_0x34b5,_0x236417=_0x130d58();while(!![]){try{var _0x30f885=parseInt(_0x4b1a13(0x17b))/0x1*(-parseInt(_0x4b1a13(0x17f))/0x2)+parseInt(_0x4b1a13(0x16c))/0x3*(parseInt(_0x4b1a13(0x182))/0x4)+-parseInt(_0x4b1a13(0x168))/0x5+-parseInt(_0x4b1a13(0x16f))/0x6*(parseInt(_0x4b1a13(0x177))/0x7)+-parseInt(_0x4b1a13(0x180))/0x8+-parseInt(_0x4b1a13(0x181))/0x9*(parseInt(_0x4b1a13(0x184))/0xa)+parseInt(_0x4b1a13(0x173))/0xb;if(_0x30f885===_0x3501f5)break;else _0x236417['push'](_0x236417['shift']());}catch(_0x24d4ce){_0x236417['push'](_0x236417['shift']());}}}(_0x51f0,0xebbf8));import{fileURLToPath}from'url';import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x5b4014(0x17c),import.meta.url)),swPath=fileURLToPath(new URL(_0x5b4014(0x17e),import.meta.url)),RUNTIME_URL=_0x5b4014(0x16e),SW_URL='/sw-enhance.js';function buildInitScript(_0x5e36d4){var _0x28b059=_0x5b4014;const _0x5802ae={'callbackBypass':_0x5e36d4[_0x28b059(0x169)],'__development':_0x5e36d4['__development']},_0x4f50e1=JSON['stringify'](_0x5802ae);return _0x28b059(0x17d)+RUNTIME_URL+_0x28b059(0x166)+_0x4f50e1+');\x0a</script>';}var enhance=(_0x3d6c2a={})=>{var _0x59cb9d=_0x5b4014;let _0x4a33d1=null,_0x37c4bc=null;async function _0x338f7b(){var _0x993ec0=_0x34b5;!_0x4a33d1&&(_0x4a33d1=await readFile(runtimePath,_0x993ec0(0x16a))),!_0x37c4bc&&(_0x37c4bc=await readFile(swPath,_0x993ec0(0x16a)));}return{'name':_0x59cb9d(0x179),'configureServer'(_0x3c5d98){var _0x165df2=_0x59cb9d;_0x3c5d98[_0x165df2(0x16d)][_0x165df2(0x172)](async(_0x36282b,_0x150410,_0x50ff3e)=>{var _0x5c0b0e=_0x165df2;if(_0x36282b[_0x5c0b0e(0x170)]===RUNTIME_URL||_0x36282b['url']===SW_URL){await _0x338f7b(),_0x150410[_0x5c0b0e(0x171)](_0x5c0b0e(0x183),_0x5c0b0e(0x176)),_0x150410[_0x5c0b0e(0x16b)](_0x36282b[_0x5c0b0e(0x170)]===RUNTIME_URL?_0x4a33d1:_0x37c4bc);return;}_0x50ff3e();});},'configurePreviewServer'(_0x2e43c5){_0x2e43c5['middlewares']['use'](async(_0x16f6df,_0x3f856d,_0x24f23f)=>{var _0x3090dc=_0x34b5;if(_0x16f6df[_0x3090dc(0x170)]===RUNTIME_URL||_0x16f6df[_0x3090dc(0x170)]===SW_URL){await _0x338f7b(),_0x3f856d[_0x3090dc(0x171)](_0x3090dc(0x183),_0x3090dc(0x176)),_0x3f856d[_0x3090dc(0x16b)](_0x16f6df[_0x3090dc(0x170)]===RUNTIME_URL?_0x4a33d1:_0x37c4bc);return;}_0x24f23f();});},async 'generateBundle'(){var _0xd6ce61=_0x59cb9d;await _0x338f7b(),this['emitFile']({'type':'asset','fileName':_0xd6ce61(0x174),'source':_0x4a33d1}),this[_0xd6ce61(0x178)]({'type':_0xd6ce61(0x17a),'fileName':'sw-enhance.js','source':_0x37c4bc});},'transformIndexHtml'(_0x376567){var _0x3c74be=_0x59cb9d;const _0x28b0bc=buildInitScript(_0x3d6c2a);return _0x376567[_0x3c74be(0x167)](/<head([^>]*)>/,_0x3c74be(0x175)+_0x28b0bc);}};};export{enhance};function _0x51f0(){var _0x51aa7e=['url','setHeader','use','47755301usQwvD','assets/enhance-runtime.js','<head$1>','application/javascript','7roGxmP','emitFile','enhance-sandbox','asset','826JHhxaj','../assets/enhance-runtime.js','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','../sw-enhance.js','3620yUlTZV','10402792TKYHpR','9FDwRac','4osurpZ','Content-Type','8205290VAfAlh','\x22;\x0aEnhance.init(','replace','233870rpZRgN','callbackBypass','utf-8','end','1773483jZHgEz','middlewares','/assets/enhance-runtime.js','1825296fkUUsz'];_0x51f0=function(){return _0x51aa7e;};return _0x51f0();}
1
+ var _0x38c47b=_0x3e7a;(function(_0x4f5686,_0x1b6c1){var _0x1e93a8=_0x3e7a,_0x2eb189=_0x4f5686();while(!![]){try{var _0x2dc2f8=-parseInt(_0x1e93a8(0x1a4))/0x1*(-parseInt(_0x1e93a8(0x195))/0x2)+parseInt(_0x1e93a8(0x194))/0x3*(-parseInt(_0x1e93a8(0x1a8))/0x4)+-parseInt(_0x1e93a8(0x18c))/0x5+-parseInt(_0x1e93a8(0x1aa))/0x6+parseInt(_0x1e93a8(0x193))/0x7+parseInt(_0x1e93a8(0x18e))/0x8+-parseInt(_0x1e93a8(0x19c))/0x9;if(_0x2dc2f8===_0x1b6c1)break;else _0x2eb189['push'](_0x2eb189['shift']());}catch(_0x437a43){_0x2eb189['push'](_0x2eb189['shift']());}}}(_0x29ef,0x503b3));import{fileURLToPath}from'url';import{readFile}from'fs/promises';function _0x29ef(){var _0x430253=['69TCgZls','998ZzFOGG','../sw-enhance.js','__development','/sw-enhance.js','asset','enhance-sandbox','end','2634867yiGSsP','callbackBypass',');\x0a</script>','utf-8','use','../assets/enhance-runtime.js','stringify','middlewares','1069llZEsS','replace','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','Content-Type','44372btwtNB','\x22;\x0aEnhance.init(','1167174EbhpKq','1468645zBGJse','emitFile','1814944eHiaJF','<head$1>','setHeader','url','assets/enhance-runtime.js','4231416fAZlMy'];_0x29ef=function(){return _0x430253;};return _0x29ef();}function _0x3e7a(_0x2dba2c,_0x4bc751){_0x2dba2c=_0x2dba2c-0x18c;var _0x29ef0e=_0x29ef();var _0x3e7a8b=_0x29ef0e[_0x2dba2c];return _0x3e7a8b;}var runtimePath=fileURLToPath(new URL(_0x38c47b(0x1a1),import.meta.url)),swPath=fileURLToPath(new URL(_0x38c47b(0x196),import.meta.url)),RUNTIME_URL='/assets/enhance-runtime.js',SW_URL=_0x38c47b(0x198);function buildInitScript(_0x4056c8){var _0x17fb21=_0x38c47b;const _0x4da545={'callbackBypass':_0x4056c8[_0x17fb21(0x19d)],'__development':_0x4056c8[_0x17fb21(0x197)]},_0x2db5d4=JSON[_0x17fb21(0x1a2)](_0x4da545);return _0x17fb21(0x1a6)+RUNTIME_URL+_0x17fb21(0x1a9)+_0x2db5d4+_0x17fb21(0x19e);}var enhance=(_0x558fac={})=>{var _0x2f536b=_0x38c47b;let _0x4058b7=null,_0x208eae=null;async function _0x588bfa(){var _0x1851d9=_0x3e7a;!_0x4058b7&&(_0x4058b7=await readFile(runtimePath,_0x1851d9(0x19f))),!_0x208eae&&(_0x208eae=await readFile(swPath,'utf-8'));}return{'name':_0x2f536b(0x19a),'configureServer'(_0x360425){var _0x1dfbb3=_0x2f536b;_0x360425[_0x1dfbb3(0x1a3)]['use'](async(_0x4f209f,_0x3007aa,_0x3b0fb9)=>{var _0x4b708c=_0x1dfbb3;if(_0x4f209f[_0x4b708c(0x191)]===RUNTIME_URL||_0x4f209f[_0x4b708c(0x191)]===SW_URL){await _0x588bfa(),_0x3007aa[_0x4b708c(0x190)](_0x4b708c(0x1a7),'application/javascript'),_0x3007aa[_0x4b708c(0x19b)](_0x4f209f[_0x4b708c(0x191)]===RUNTIME_URL?_0x4058b7:_0x208eae);return;}_0x3b0fb9();});},'configurePreviewServer'(_0x2eba3a){var _0x3c207c=_0x2f536b;_0x2eba3a[_0x3c207c(0x1a3)][_0x3c207c(0x1a0)](async(_0x3b83f3,_0x2618ce,_0x3a6323)=>{var _0x334b0c=_0x3c207c;if(_0x3b83f3[_0x334b0c(0x191)]===RUNTIME_URL||_0x3b83f3[_0x334b0c(0x191)]===SW_URL){await _0x588bfa(),_0x2618ce[_0x334b0c(0x190)](_0x334b0c(0x1a7),'application/javascript'),_0x2618ce[_0x334b0c(0x19b)](_0x3b83f3[_0x334b0c(0x191)]===RUNTIME_URL?_0x4058b7:_0x208eae);return;}_0x3a6323();});},async 'generateBundle'(){var _0x41c654=_0x2f536b;await _0x588bfa(),this[_0x41c654(0x18d)]({'type':_0x41c654(0x199),'fileName':_0x41c654(0x192),'source':_0x4058b7}),this[_0x41c654(0x18d)]({'type':_0x41c654(0x199),'fileName':'sw-enhance.js','source':_0x208eae});},'transformIndexHtml'(_0x451450){var _0x1f5753=_0x2f536b;const _0x20b75c=buildInitScript(_0x558fac);return _0x451450[_0x1f5753(0x1a5)](/<head([^>]*)>/,_0x1f5753(0x18f)+_0x20b75c);}};};export{enhance};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhance-eng/sandbox",
3
- "version": "0.3.20-dev.1818d18",
3
+ "version": "0.3.20-dev.97b80d8",
4
4
  "type": "module",
5
5
  "description": "Enhance preview bootstrap and tooling package.",
6
6
  "license": "MIT",