@enhance-eng/sandbox 0.3.22-beta.0fc7a53 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/enhance-runtime.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sw-enhance.js +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f0c31=_0x41ff;(function(_0x501ca9,_0x516be4){const _0x50c792=_0x41ff,_0x2c7b08=_0x501ca9();while(!![]){try{const _0x5956eb=-parseInt(_0x50c792(0x24f))/0x1+-parseInt(_0x50c792(0x1f8))/0x2+-parseInt(_0x50c792(0x210))/0x3+parseInt(_0x50c792(0x26c))/0x4+-parseInt(_0x50c792(0x218))/0x5+-parseInt(_0x50c792(0x213))/0x6+parseInt(_0x50c792(0x239))/0x7;if(_0x5956eb===_0x516be4)break;else _0x2c7b08['push'](_0x2c7b08['shift']());}catch(_0x32061f){_0x2c7b08['push'](_0x2c7b08['shift']());}}}(_0x49be,0xc9640));var DEFAULT_OVERLAY_PATH=!![]?_0x1f0c31(0x27d):_0x1f0c31(0x27d),DEFAULT_BACKEND_URL=!![]?_0x1f0c31(0x1ff):'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x1f0c31(0x28d)](_0x1f0c31(0x24e),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function _0x49be(){const _0x54dce0=['location','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','waiting','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Restored\x20enhancement\x20from\x20sessionStorage','\x20Failed\x20to\x20import/create\x20overlay:','public','2458166pceYzv','enabled','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','^24.10.1','__enhanceResolvedUrl','/sw-enhance.js','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','https://api.enhancelabs.ai','enhancement','createOverlay','^8.5.1','serviceWorker','\x20Enhancement\x20mode\x20-\x20ID:\x20','backendUrl','\x20overlayController\x20exists:\x20','undefined','init','/assets/enhance-runtime.js','\x20loadOverlay()\x20failed:','href','onToggle','origin','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','enableViteHmr','4816587pJmYet','default','publishableKey','2787972VOfRFZ','add','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','/public/enhancements/','serviceWorkerURL','7017240JlCvMq','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Failed\x20to\x20unregister\x20service\x20worker:','__enhanceInitialized','[data-enhance-runtime-bootstrap]','vite:error','operatingPath','^11.1.0','\x20loadOverlay()\x20called','./dev/vite/index.d.ts','bun\x20version\x20patch\x20--no-git-tag-version','\x20Module\x20exports:','options','toLowerCase','\x20unregisterServiceWorker()\x20called','\x20Calling:\x20','searchParams','enhance.enhancementId','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','bottom-right','\x20HMR\x20setup\x20complete','\x20Resolution\x20failed:\x20','^3.22.4','injectIntoGlobalHook','message','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Enhancement\x20initialization\x20complete','position','postMessage','\x20Calling\x20updateOverlay()...','__enhanceReactRefreshInstalledOrigins','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','44287775RbWfBJ','\x20Invalid\x20React\x20Refresh\x20runtime','explicitDisable','\x20SW\x20unregistered','$RefreshSig$','setItem','appError','module','warn','\x20Starting\x20fresh\x20overlay\x20load...','\x20Controller\x20created:','\x20init()\x20called\x20at\x20','\x20setupRemoteHMR()\x20for\x20','active','\x20loadOverlay()\x20complete','stringify','\x20Resolving\x20enhancement\x20ID:\x20','error','__enhanceOverlay','scriptURL','some','[Enhance\x20Config]\x20Build-time\x20defaults:','871455KvVXSo','\x20Setting\x20up\x20remote\x20HMR...','has','\x20Current\x20URL:\x20','overlayPath','\x20Registering\x20SW\x20at\x20','\x20currentOptions\x20exists:\x20','permissive','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','history','getRegistration','update','err','false','^7.2.4','\x20overlayPath:\x20','__viteHMRLoaded','get','now','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','replace','\x20BLOCKING\x20SW\x20detected:\x20','\x20Overlay\x20update\x20complete','./dev/vite/index.js','\x20Module\x20imported\x20in\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','reload','installing','0.0.0','288992Miwllt','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','\x20Normal\x20mode\x20-\x20no\x20enhancement','enhance','/@vite/client','keys','ready','\x20composeOverlayState\x20-\x20state.controlled:\x20','sw-enhance','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20No\x20window\x20object\x20-\x20skipping','delete','__enhanceController','unregister','https://','[Enhance\x20Overlay]','@enhance-eng/sandbox','https://assets.enhancelabs.ai/overlay.js','\x20Cleared\x20persisted\x20enhancement','\x20Page\x20not\x20enhanced\x20-\x20reloading','startsWith',',\x20page\x20origin:\x20','http://','function','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','/resolve','\x20Explicit\x20disable\x20-\x20exiting','./dev/index.d.ts','vite:beforeUpdate','info','__enhanceOptions','\x20Document\x20readyState:\x20','/@react-refresh','log','./dev/cli.js','security','\x20Overlay\x20origin:\x20','title','off','runtimeURL','removeItem','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','replaceState','\x20doLoadOverlay()\x20starting...','swPath','includes','overlay','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20composeOverlayState\x20-\x20enhancementId:\x20','object','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','enhance:disable','\x20Calling\x20createOverlay()...','controller','callbackBypass','version','cachedUrl','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','./dev/index.js','enhancementId','\x20Enhancement\x20params:','__vite_plugin_react_preamble_installed__','getItem','0.3.22','controlled','readyState'];_0x49be=function(){return _0x54dce0;};return _0x49be();}function normalizeOptions(_0x5a55c3){const _0x41093e=_0x1f0c31;if(!_0x5a55c3[_0x41093e(0x212)])throw new Error(_0x41093e(0x262));const _0x5efc19=_0x5a55c3['__development']??{};return{'publishableKey':_0x5a55c3['publishableKey'],'callbackBypass':_0x5a55c3[_0x41093e(0x1e5)]??[],'overlay':{'enabled':!![],'position':_0x41093e(0x22b),'enableViteHmr':_0x5efc19['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x41093e(0x289),'swPath':'/sw-enhance.js','overlayPath':_0x5efc19[_0x41093e(0x253)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x41093e(0x209),'security':_0x5efc19['security']??_0x41093e(0x256),'backendUrl':_0x5efc19[_0x41093e(0x205)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x303220=_0x1f0c31;try{const _0x5c268b=new URLSearchParams(window['location']['search']);return _0x5c268b[_0x303220(0x260)](_0x303220(0x200))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x1f0c31(0x27b),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x51daf5){const _0x3f29dd=_0x1f0c31;console[_0x3f29dd(0x28d)](LOG_PREFIX+_0x3f29dd(0x220)),console['log'](LOG_PREFIX+_0x3f29dd(0x25e)+_0x51daf5[_0x3f29dd(0x253)]),console[_0x3f29dd(0x28d)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x51daf5[_0x3f29dd(0x20f)]),currentOptions=_0x51daf5[_0x3f29dd(0x224)],toggleHandler=_0x51daf5[_0x3f29dd(0x20c)];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3f29dd(0x28d)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x3f29dd(0x28d)](LOG_PREFIX+_0x3f29dd(0x242)),overlayLoadPromise=doLoadOverlay(_0x51daf5);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x3f29dd(0x247));}catch(_0x2a691d){console[_0x3f29dd(0x24a)](LOG_PREFIX+_0x3f29dd(0x20a),_0x2a691d);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0xfefb00){const _0x4fe12f=_0x1f0c31;console['log'](LOG_PREFIX+_0x4fe12f(0x297));if(typeof window===_0x4fe12f(0x207)){console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x276));return;}if(window[_0x4fe12f(0x24b)]){console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x237)),overlayController=window['__enhanceOverlay'];return;}console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x295));try{_0xfefb00[_0x4fe12f(0x20f)]&&(console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x250)),await setupRemoteHMR(_0xfefb00[_0x4fe12f(0x253)]));console[_0x4fe12f(0x28d)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0xfefb00[_0x4fe12f(0x253)]);const _0x20b17e=Date['now'](),_0x297063=await import(_0xfefb00[_0x4fe12f(0x253)]);console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x267)+(Date[_0x4fe12f(0x261)]()-_0x20b17e)+'ms'),console['log'](LOG_PREFIX+_0x4fe12f(0x223),Object[_0x4fe12f(0x271)](_0x297063));if(typeof _0x297063?.['createOverlay']!==_0x4fe12f(0x283)){console['error'](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console['error'](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x4fe12f(0x271)](_0x297063));return;}console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x1e3));const _0x58fbca=_0x297063[_0x4fe12f(0x201)]();console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x243),_0x58fbca),overlayController=_0x58fbca,window[_0x4fe12f(0x24b)]=_0x58fbca,_0x58fbca[_0x4fe12f(0x20c)](_0xfefb00['onToggle']),console[_0x4fe12f(0x28d)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x4fe12f(0x28d)](LOG_PREFIX+_0x4fe12f(0x235)),updateOverlay();}catch(_0xc30399){console[_0x4fe12f(0x24a)](LOG_PREFIX+_0x4fe12f(0x1f6),_0xc30399);}}function updateOverlay(){const _0x32dd7d=_0x1f0c31;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x32dd7d(0x28d)](LOG_PREFIX+_0x32dd7d(0x206)+!!overlayController),console[_0x32dd7d(0x28d)](LOG_PREFIX+_0x32dd7d(0x255)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x32dd7d(0x28d)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x48ac71=composeOverlayState(currentOptions);console[_0x32dd7d(0x28d)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON['stringify'](_0x48ac71,null,0x2)),overlayController[_0x32dd7d(0x25a)](_0x48ac71),console[_0x32dd7d(0x28d)](LOG_PREFIX+_0x32dd7d(0x265));}function composeOverlayState(_0x56821e){const _0x7e0508=_0x1f0c31,_0x2d2ac8=getEnhancementId();return console['log'](LOG_PREFIX+_0x7e0508(0x29c)+_0x2d2ac8),console[_0x7e0508(0x28d)](LOG_PREFIX+_0x7e0508(0x1f4)+state[_0x7e0508(0x1f9)]),console[_0x7e0508(0x28d)](LOG_PREFIX+_0x7e0508(0x273)+state[_0x7e0508(0x1ef)]),{'enhancementId':_0x2d2ac8,'enabled':state[_0x7e0508(0x1f9)],'controlled':state[_0x7e0508(0x1ef)],'overlayPosition':_0x56821e['overlay'][_0x7e0508(0x233)],'securityMode':_0x56821e[_0x7e0508(0x28f)],'backendBaseUrl':_0x56821e[_0x7e0508(0x205)],'appError':state[_0x7e0508(0x23f)]};}async function setupRemoteHMR(_0x24ec01){const _0x30128a=_0x1f0c31;console[_0x30128a(0x28d)](LOG_PREFIX+_0x30128a(0x245)+_0x24ec01);if(typeof window==='undefined')return;try{const _0xa33ca9=new URL(_0x24ec01,window[_0x30128a(0x1f1)]['origin']),_0x4de1ed=_0xa33ca9[_0x30128a(0x20d)];console[_0x30128a(0x28d)](LOG_PREFIX+_0x30128a(0x290)+_0x4de1ed+_0x30128a(0x281)+window['location'][_0x30128a(0x20d)]);if(_0x4de1ed===window['location'][_0x30128a(0x20d)]){console['log'](LOG_PREFIX+_0x30128a(0x215));return;}console[_0x30128a(0x28d)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x4de1ed),await ensureViteClient(_0x4de1ed),console[_0x30128a(0x28d)](LOG_PREFIX+_0x30128a(0x22c));}catch(_0x2ae89c){console[_0x30128a(0x241)](LOG_PREFIX+_0x30128a(0x1fa),_0x2ae89c);}}async function ensureReactRefreshPreamble(_0x2309ca){const _0x167d33=_0x1f0c31;window['__enhanceReactRefreshInstalledOrigins']??(window[_0x167d33(0x236)]=new Set());if(window['__enhanceReactRefreshInstalledOrigins'][_0x167d33(0x251)](_0x2309ca)){console[_0x167d33(0x28d)](LOG_PREFIX+_0x167d33(0x275)+_0x2309ca);return;}console[_0x167d33(0x28d)](LOG_PREFIX+_0x167d33(0x238)+_0x2309ca+'...');const _0x1e68f5=await import(_0x2309ca+_0x167d33(0x28c)),_0x1823d1=_0x1e68f5&&typeof _0x1e68f5===_0x167d33(0x1e0)&&_0x167d33(0x211)in _0x1e68f5?_0x1e68f5[_0x167d33(0x211)]:_0x1e68f5;if(!isRefreshRuntime(_0x1823d1)){console[_0x167d33(0x241)](LOG_PREFIX+_0x167d33(0x23a));return;}_0x1823d1['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x167d33(0x23d)]=()=>_0x3fe90a=>_0x3fe90a,window[_0x167d33(0x1ec)]=!![],window[_0x167d33(0x236)][_0x167d33(0x214)](_0x2309ca),console[_0x167d33(0x28d)](LOG_PREFIX+_0x167d33(0x257)+_0x2309ca);}async function ensureViteClient(_0x3f780c){const _0x1149b1=_0x1f0c31;window[_0x1149b1(0x25f)]??(window[_0x1149b1(0x25f)]=new Set());if(window[_0x1149b1(0x25f)][_0x1149b1(0x251)](_0x3f780c)){console[_0x1149b1(0x28d)](LOG_PREFIX+_0x1149b1(0x231)+_0x3f780c);return;}console[_0x1149b1(0x28d)](LOG_PREFIX+_0x1149b1(0x284)+_0x3f780c+'...'),await import(_0x3f780c+_0x1149b1(0x270)),window['__viteHMRLoaded']['add'](_0x3f780c),console[_0x1149b1(0x28d)](LOG_PREFIX+_0x1149b1(0x20e)+_0x3f780c);}function isRefreshRuntime(_0x500bc9){const _0x39101a=_0x1f0c31;return typeof _0x500bc9===_0x39101a(0x1e0)&&_0x500bc9!==null&&_0x39101a(0x22f)in _0x500bc9&&typeof _0x500bc9[_0x39101a(0x22f)]===_0x39101a(0x283);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x1f0c31(0x1e2),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x12204f){const _0x302872=_0x1f0c31;console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console[_0x302872(0x241)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported');return;}const _0x3335be=!!navigator[_0x302872(0x203)][_0x302872(0x1e4)];currentOptions2=_0x12204f;const _0x4104dc=await detectBlockingServiceWorker(_0x12204f['swPath']);if(_0x4104dc){console[_0x302872(0x24a)](LOG_PREFIX2+_0x302872(0x264)+_0x4104dc);return;}try{console[_0x302872(0x28d)](LOG_PREFIX2+_0x302872(0x254)+_0x12204f['swPath']+'...'),registration=await navigator['serviceWorker']['register'](_0x12204f[_0x302872(0x298)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator['serviceWorker'][_0x302872(0x272)],console[_0x302872(0x28d)](LOG_PREFIX2+'\x20SW\x20ready'),state['controlled']=ownsCurrentController(_0x12204f[_0x302872(0x298)]);if(!_0x3335be&&!navigator[_0x302872(0x203)]['controller']){console['log'](LOG_PREFIX2+'\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement'),window[_0x302872(0x1f1)][_0x302872(0x269)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20configuration\x20to\x20SW...'),await sendConfiguration();if(state[_0x302872(0x1f9)]){const _0x57c91c=document['querySelector'](_0x302872(0x21c))!==null;if(!_0x57c91c){console[_0x302872(0x28d)](LOG_PREFIX2+_0x302872(0x27f)),window['location']['reload']();return;}}updateOverlay(),console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x585d92){console[_0x302872(0x24a)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x585d92);}}async function sendConfiguration(){const _0x1c7768=_0x1f0c31;if(!state['enabled']||!currentOptions2)return;const _0x509085=await resolveWorker();if(!_0x509085){console[_0x1c7768(0x241)](LOG_PREFIX2+_0x1c7768(0x219));return;}const _0x4faf2b=window['__enhanceResolvedUrl']??null,_0x5baee1={'publishableKey':currentOptions2[_0x1c7768(0x212)],'callbackBypass':currentOptions2[_0x1c7768(0x1e5)],'securityMode':currentOptions2[_0x1c7768(0x28f)],'enhancementUrl':_0x4faf2b??void 0x0};console[_0x1c7768(0x28d)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON[_0x1c7768(0x248)](_0x5baee1,null,0x2)),_0x509085[_0x1c7768(0x234)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5baee1});}async function unregisterServiceWorker(_0x2f537f){const _0x2c32d4=_0x1f0c31;console[_0x2c32d4(0x28d)](LOG_PREFIX2+_0x2c32d4(0x226));if(!('serviceWorker'in navigator))return;try{const _0x33d844=registration??await navigator[_0x2c32d4(0x203)][_0x2c32d4(0x259)]('/');if(!_0x33d844)return;const _0x3ba757=[_0x33d844[_0x2c32d4(0x246)]?.[_0x2c32d4(0x24c)],_0x33d844['waiting']?.[_0x2c32d4(0x24c)],_0x33d844['installing']?.[_0x2c32d4(0x24c)]],_0x357c44=_0x3ba757[_0x2c32d4(0x24d)](_0x60c830=>_0x60c830&&ownsServiceWorker(_0x60c830,_0x2f537f));if(!_0x357c44)return;_0x33d844['active']&&_0x33d844[_0x2c32d4(0x246)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x33d844[_0x2c32d4(0x279)](),registration=null,currentOptions2=null,console[_0x2c32d4(0x28d)](LOG_PREFIX2+_0x2c32d4(0x23c));}catch(_0x5f29ab){console[_0x2c32d4(0x24a)](LOG_PREFIX2+_0x2c32d4(0x21a),_0x5f29ab);}}function ownsServiceWorker(_0x518c04,_0x17828d){const _0x3bbb41=_0x1f0c31,_0x1035cf=typeof window!==_0x3bbb41(0x207)?window[_0x3bbb41(0x1f1)][_0x3bbb41(0x20d)]:'',_0x459991=new URL(_0x17828d,_0x1035cf||void 0x0)[_0x3bbb41(0x20b)];return _0x518c04===_0x459991||_0x518c04[_0x3bbb41(0x299)](_0x3bbb41(0x274));}function ownsCurrentController(_0x2d62af){const _0x5391e2=_0x1f0c31,_0x1d2f50=navigator[_0x5391e2(0x203)]?.[_0x5391e2(0x1e4)];if(!_0x1d2f50)return![];return ownsServiceWorker(_0x1d2f50[_0x5391e2(0x24c)],_0x2d62af);}async function detectBlockingServiceWorker(_0x370c1a){const _0x3d00fd=_0x1f0c31;if(!navigator[_0x3d00fd(0x203)])return null;try{const _0x3b2cd7=await navigator[_0x3d00fd(0x203)]['getRegistration']('/'),_0x4a1258=_0x3b2cd7?.['active']?.[_0x3d00fd(0x24c)];if(!_0x4a1258)return null;if(ownsServiceWorker(_0x4a1258,_0x370c1a))return null;return _0x4a1258;}catch{return null;}}async function resolveWorker(){const _0x33426d=_0x1f0c31,_0x371065=registration??await navigator[_0x33426d(0x203)]?.[_0x33426d(0x259)]('/');return _0x371065?.[_0x33426d(0x246)]??_0x371065?.[_0x33426d(0x1f3)]??_0x371065?.[_0x33426d(0x26a)]??null;}var LOG_PREFIX3='[Enhance\x20Runtime]',STORAGE_KEY_ENHANCEMENT_ID=_0x1f0c31(0x229),STORAGE_KEY_ENHANCEMENT_URL='enhance.enhancementUrl';function isInitialized(){const _0x56709e=_0x1f0c31;return typeof window!==_0x56709e(0x207)&&window[_0x56709e(0x21b)]===!![];}function setInitialized(_0xcb2ddf){const _0x359a18=_0x1f0c31;typeof window!==_0x359a18(0x207)&&(window['__enhanceInitialized']=_0xcb2ddf);}function getOptions(){const _0x56b310=_0x1f0c31;return typeof window!==_0x56b310(0x207)?window['__enhanceOptions']??null:null;}function setOptions(_0x41248){const _0x82ad4e=_0x1f0c31;typeof window!=='undefined'&&(window[_0x82ad4e(0x28a)]=_0x41248);}var Enhance={'init'(_0x197768){const _0x1f51a6=_0x1f0c31,_0x3cacff=Date[_0x1f51a6(0x261)]();console[_0x1f51a6(0x28d)](LOG_PREFIX3+_0x1f51a6(0x244)+_0x3cacff),console['log'](LOG_PREFIX3+_0x1f51a6(0x252)+window['location'][_0x1f51a6(0x20b)]),console['log'](LOG_PREFIX3+_0x1f51a6(0x28b)+document[_0x1f51a6(0x1f0)]);if(isInitialized())return console[_0x1f51a6(0x241)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),window[_0x1f51a6(0x278)]??createController();setInitialized(!![]);const _0x3103d5=normalizeOptions(_0x197768);setOptions(_0x3103d5);const _0x2e2677=parseEnhancementParams();console[_0x1f51a6(0x28d)](LOG_PREFIX3+_0x1f51a6(0x1eb),JSON[_0x1f51a6(0x248)](_0x2e2677,null,0x2));if(_0x2e2677[_0x1f51a6(0x23b)])return cleanUrlParam('enhance'),clearPersistedEnhancement(),console[_0x1f51a6(0x28d)](LOG_PREFIX3+_0x1f51a6(0x286)),createController();if(!_0x2e2677[_0x1f51a6(0x1ea)])return console[_0x1f51a6(0x28d)](LOG_PREFIX3+_0x1f51a6(0x26e)),void unregisterServiceWorker(_0x3103d5[_0x1f51a6(0x298)]),setupViteErrorListeners(),createController();return console[_0x1f51a6(0x28d)](LOG_PREFIX3+_0x1f51a6(0x204)+_0x2e2677['enhancementId']),state[_0x1f51a6(0x1f9)]=!![],void initializeEnhancement(_0x3103d5,_0x2e2677[_0x1f51a6(0x1ea)],_0x2e2677[_0x1f51a6(0x1e7)]),createController();}};async function initializeEnhancement(_0xc2f3a0,_0x5d2440,_0x5963d0){const _0x284597=_0x1f0c31;let _0x2efa9d=_0x5963d0;if(!_0x2efa9d){console[_0x284597(0x28d)](LOG_PREFIX3+_0x284597(0x249)+_0x5d2440),_0x2efa9d=await resolveEnhancementUrl(_0xc2f3a0,_0x5d2440);if(!_0x2efa9d){console[_0x284597(0x24a)](LOG_PREFIX3+_0x284597(0x26d)),state[_0x284597(0x1f9)]=![];return;}}else console[_0x284597(0x28d)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x2efa9d);persistEnhancement(_0x5d2440,_0x2efa9d),window[_0x284597(0x1fc)]=_0x2efa9d,console[_0x284597(0x28d)](LOG_PREFIX3+'\x20Registering\x20SW\x20with\x20enhancement\x20URL...'),await registerServiceWorker(_0xc2f3a0),console[_0x284597(0x28d)](LOG_PREFIX3+'\x20Loading\x20overlay...'),await loadOverlay({'overlayPath':_0xc2f3a0['overlayPath'],'enableViteHmr':_0xc2f3a0[_0x284597(0x29a)]['enableViteHmr'],'options':_0xc2f3a0,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x284597(0x232));}async function resolveEnhancementUrl(_0x569ee3,_0x1762f9){const _0x54d8a4=_0x1f0c31,_0x77ed12=_0x569ee3[_0x54d8a4(0x205)]+_0x54d8a4(0x216)+_0x1762f9+_0x54d8a4(0x285);console[_0x54d8a4(0x28d)](LOG_PREFIX3+_0x54d8a4(0x227)+_0x77ed12);try{const _0x2b2be9=await fetch(_0x77ed12,{'headers':{'X-Enhance-Publishable-Key':_0x569ee3[_0x54d8a4(0x212)]}});if(!_0x2b2be9['ok']){const _0x42b9e3=await _0x2b2be9['text']();return console[_0x54d8a4(0x24a)](LOG_PREFIX3+_0x54d8a4(0x22d)+_0x2b2be9['status']+'\x20'+_0x42b9e3),null;}const _0x1b9747=await _0x2b2be9['json'](),_0xf866c1=''+_0x569ee3[_0x54d8a4(0x205)]+_0x1b9747[_0x54d8a4(0x21e)];return console[_0x54d8a4(0x28d)](LOG_PREFIX3+'\x20Resolved\x20to:\x20'+_0xf866c1),_0xf866c1;}catch(_0x50b729){return console[_0x54d8a4(0x24a)](LOG_PREFIX3+'\x20Resolution\x20error:',_0x50b729),null;}}function parseEnhancementParams(){const _0x47d5b3=_0x1f0c31,_0x539985=new URL(window[_0x47d5b3(0x1f1)][_0x47d5b3(0x20b)]),_0x37737e=_0x539985[_0x47d5b3(0x228)][_0x47d5b3(0x260)](_0x47d5b3(0x26f))?.[_0x47d5b3(0x225)](),_0x37e6e6=_0x37737e==='0'||_0x37737e===_0x47d5b3(0x25c)||_0x37737e===_0x47d5b3(0x292);let _0x159d4c=_0x539985[_0x47d5b3(0x228)][_0x47d5b3(0x260)](_0x47d5b3(0x200)),_0x2b4698=null;if(_0x159d4c)try{const _0x512343=sessionStorage[_0x47d5b3(0x1ed)](STORAGE_KEY_ENHANCEMENT_ID),_0x2f3d5f=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_URL);_0x512343===_0x159d4c&&_0x2f3d5f&&(_0x2b4698=_0x2f3d5f,console[_0x47d5b3(0x28d)](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x502a68=sessionStorage[_0x47d5b3(0x1ed)](STORAGE_KEY_ENHANCEMENT_ID),_0x28dfa5=sessionStorage[_0x47d5b3(0x1ed)](STORAGE_KEY_ENHANCEMENT_URL);_0x502a68&&_0x28dfa5&&(_0x159d4c=_0x502a68,_0x2b4698=_0x28dfa5,console[_0x47d5b3(0x28d)](LOG_PREFIX3+_0x47d5b3(0x1f5)),_0x539985['searchParams']['set'](_0x47d5b3(0x200),_0x159d4c),window[_0x47d5b3(0x258)][_0x47d5b3(0x296)](null,document['title'],_0x539985['toString']()));}catch{}return{'enhancementId':_0x159d4c,'cachedUrl':_0x2b4698,'explicitDisable':_0x37e6e6};}function persistEnhancement(_0x46602e,_0x126337){const _0x55fa79=_0x1f0c31;try{sessionStorage[_0x55fa79(0x23e)](STORAGE_KEY_ENHANCEMENT_ID,_0x46602e),sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_URL,_0x126337),console[_0x55fa79(0x28d)](LOG_PREFIX3+'\x20Persisted\x20enhancement\x20to\x20sessionStorage');}catch{}}function clearPersistedEnhancement(){const _0x2766e4=_0x1f0c31;try{sessionStorage[_0x2766e4(0x294)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x2766e4(0x294)](STORAGE_KEY_ENHANCEMENT_URL),console['log'](LOG_PREFIX3+_0x2766e4(0x27e));}catch{}}function createController(){const _0x183145=_0x1f0c31,_0x302052={'enable'(){const _0x508c4f=getOptions();if(!_0x508c4f)return;state['enabled']=!![],void registerServiceWorker(_0x508c4f),void sendConfiguration(),updateOverlay();},'disable'(){const _0x3e3046=_0x41ff,_0x143972=getOptions();if(!_0x143972)return;state[_0x3e3046(0x1f9)]=![],state[_0x3e3046(0x1ef)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x143972[_0x3e3046(0x298)]);},'status'(){const _0x226bb1=_0x41ff;return{'enabled':state[_0x226bb1(0x1f9)],'controlled':state[_0x226bb1(0x1ef)]};}};return typeof window!==_0x183145(0x207)&&(window[_0x183145(0x278)]=_0x302052),_0x302052;}function handleToggle(){const _0xa1585a=_0x1f0c31,_0x166470=createController();state[_0xa1585a(0x1f9)]?_0x166470['disable']():_0x166470['enable']();}function cleanUrlParam(_0x4d7649){const _0x133487=_0x1f0c31,_0x1ff8c0=new URL(window[_0x133487(0x1f1)][_0x133487(0x20b)]);_0x1ff8c0[_0x133487(0x228)][_0x133487(0x251)](_0x4d7649)&&(_0x1ff8c0[_0x133487(0x228)][_0x133487(0x277)](_0x4d7649),window[_0x133487(0x258)]['replaceState'](null,document[_0x133487(0x291)],_0x1ff8c0['toString']()));}function setupViteErrorListeners(){const _0x30eb16=_0x1f0c31;import.meta.hot&&(import.meta.hot['on'](_0x30eb16(0x21d),_0x35f288=>{const _0x5a1126=_0x30eb16;state['appError']={'message':_0x35f288[_0x5a1126(0x25b)][_0x5a1126(0x230)]},updateOverlay();}),import.meta.hot['on'](_0x30eb16(0x288),()=>{const _0x888506=_0x30eb16;state[_0x888506(0x23f)]&&(state['appError']=null,updateOverlay());}));}function _0x41ff(_0x440e5b,_0x294ef8){_0x440e5b=_0x440e5b-0x1e0;const _0x49be10=_0x49be();let _0x41ff49=_0x49be10[_0x440e5b];return _0x41ff49;}var package_default={'name':_0x1f0c31(0x27c),'version':_0x1f0c31(0x1ee),'type':_0x1f0c31(0x240),'description':_0x1f0c31(0x1fe),'license':'MIT','main':'./dev/index.js','module':_0x1f0c31(0x1e9),'types':_0x1f0c31(0x287),'exports':{'.':{'types':_0x1f0c31(0x287),'import':_0x1f0c31(0x1e9)},'./vite':{'types':_0x1f0c31(0x221),'import':_0x1f0c31(0x266)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x1f0c31(0x28e)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x1f0c31(0x268),'dev:build':_0x1f0c31(0x1e8),'dev:staging':_0x1f0c31(0x29b),'dev:staging:build':_0x1f0c31(0x22a),'build':_0x1f0c31(0x1e1),'build:release':_0x1f0c31(0x1f2),'build:release:dev':'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','version':_0x1f0c31(0x222)},'dependencies':{'commander':_0x1f0c31(0x21f),'zod':_0x1f0c31(0x22e)},'devDependencies':{'@types/node':_0x1f0c31(0x1fb),'javascript-obfuscator':'^4.1.1','tsup':_0x1f0c31(0x202),'vite':_0x1f0c31(0x25d)},'publishConfig':{'access':_0x1f0c31(0x1f7)}},DEFAULT_SERVICE_WORKER_PATH=_0x1f0c31(0x1fd),DEFAULT_RUNTIME_PATH=_0x1f0c31(0x209),PACKAGE_VERSION=typeof package_default[_0x1f0c31(0x1e6)]==='string'?package_default[_0x1f0c31(0x1e6)]:_0x1f0c31(0x26b);function normalizeAssetPath(_0xed4e45){const _0x18b007=_0x1f0c31;if(!_0xed4e45)return _0xed4e45;if(_0xed4e45[_0x18b007(0x280)](_0x18b007(0x282))||_0xed4e45[_0x18b007(0x280)](_0x18b007(0x27a)))return _0xed4e45;const _0x23a98c=_0xed4e45[_0x18b007(0x263)](/^\.\//,'');return _0x23a98c[_0x18b007(0x280)]('/')?_0x23a98c:'/'+_0x23a98c;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x469d4c){const _0x1bf3ae=_0x1f0c31;return Enhance[_0x1bf3ae(0x208)](_0x469d4c);},'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 _0x217803=_0x1f0c31;return Enhance2[_0x217803(0x217)]();}function runtimeURL(){const _0x283d68=_0x1f0c31;return Enhance2[_0x283d68(0x293)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x1ad906=_0x215a;(function(_0x4b515c,_0x608d1b){const _0x57f255=_0x215a,_0x32ba51=_0x4b515c();while(!![]){try{const _0xa8eb64=-parseInt(_0x57f255(0xfd))/0x1+-parseInt(_0x57f255(0x170))/0x2*(parseInt(_0x57f255(0x141))/0x3)+-parseInt(_0x57f255(0x174))/0x4+parseInt(_0x57f255(0x113))/0x5+parseInt(_0x57f255(0x10c))/0x6+parseInt(_0x57f255(0x151))/0x7*(-parseInt(_0x57f255(0x173))/0x8)+parseInt(_0x57f255(0x18c))/0x9;if(_0xa8eb64===_0x608d1b)break;else _0x32ba51['push'](_0x32ba51['shift']());}catch(_0x3e07a7){_0x32ba51['push'](_0x32ba51['shift']());}}}(_0xeccd,0x3bbf2));var DEFAULT_OVERLAY_PATH=!![]?_0x1ad906(0x19c):_0x1ad906(0x19c),DEFAULT_BACKEND_URL=!![]?_0x1ad906(0x16d):_0x1ad906(0x16d),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x1ad906(0x13c)](_0x1ad906(0x1b4),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x14595b){const _0x369696=_0x1ad906;if(!_0x14595b[_0x369696(0x1b6)])throw new Error(_0x369696(0x12b));const _0x188c2e=_0x14595b[_0x369696(0x189)]??{};return{'publishableKey':_0x14595b[_0x369696(0x1b6)],'callbackBypass':_0x14595b[_0x369696(0x199)]??[],'overlay':{'enabled':!![],'position':_0x369696(0x183),'enableViteHmr':_0x188c2e[_0x369696(0x101)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x369696(0x14b),'overlayPath':_0x188c2e['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x369696(0x178),'security':_0x188c2e[_0x369696(0x18f)]??_0x369696(0x13e),'backendUrl':_0x188c2e[_0x369696(0x100)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x2ba5d7=_0x1ad906;try{const _0x142611=new URLSearchParams(window[_0x2ba5d7(0x196)][_0x2ba5d7(0x1a5)]);return _0x142611[_0x2ba5d7(0x137)](_0x2ba5d7(0x19b))?.[_0x2ba5d7(0x11f)]()||'';}catch{return'';}}var LOG_PREFIX=_0x1ad906(0x13f),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x33e13a){const _0x2102e7=_0x1ad906;console[_0x2102e7(0x13c)](LOG_PREFIX+_0x2102e7(0x117)),console['log'](LOG_PREFIX+_0x2102e7(0x168)+_0x33e13a[_0x2102e7(0x163)]),console[_0x2102e7(0x13c)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x33e13a['enableViteHmr']),currentOptions=_0x33e13a[_0x2102e7(0xf2)],toggleHandler=_0x33e13a['onToggle'];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x33e13a);try{await overlayLoadPromise,console[_0x2102e7(0x13c)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x4f15db){console[_0x2102e7(0x112)](LOG_PREFIX+_0x2102e7(0x14c),_0x4f15db);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x583389){const _0x2e099f=_0x1ad906;console['log'](LOG_PREFIX+_0x2e099f(0x197));if(typeof window===_0x2e099f(0x15f)){console[_0x2e099f(0x13c)](LOG_PREFIX+_0x2e099f(0x12f));return;}if(window[_0x2e099f(0x19a)]){console[_0x2e099f(0x13c)](LOG_PREFIX+_0x2e099f(0x15e)),overlayController=window[_0x2e099f(0x19a)];return;}console[_0x2e099f(0x13c)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x583389['enableViteHmr']&&(console[_0x2e099f(0x13c)](LOG_PREFIX+_0x2e099f(0x156)),await setupRemoteHMR(_0x583389[_0x2e099f(0x163)]));console['log'](LOG_PREFIX+_0x2e099f(0x1a8)+_0x583389[_0x2e099f(0x163)]);const _0x3a63db=Date['now'](),_0x1316de=await import(_0x583389['overlayPath']);console[_0x2e099f(0x13c)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x2e099f(0x19d)]()-_0x3a63db)+'ms'),console[_0x2e099f(0x13c)](LOG_PREFIX+_0x2e099f(0x164),Object['keys'](_0x1316de));if(typeof _0x1316de?.['createOverlay']!==_0x2e099f(0x1a9)){console[_0x2e099f(0x112)](LOG_PREFIX+_0x2e099f(0xf4)),console['error'](LOG_PREFIX+_0x2e099f(0x14e),Object[_0x2e099f(0x143)](_0x1316de));return;}console[_0x2e099f(0x13c)](LOG_PREFIX+_0x2e099f(0x135));const _0x1a4a05=_0x1316de[_0x2e099f(0x125)]();console['log'](LOG_PREFIX+_0x2e099f(0x16b),_0x1a4a05),overlayController=_0x1a4a05,window[_0x2e099f(0x19a)]=_0x1a4a05,_0x1a4a05[_0x2e099f(0x1b5)](_0x583389[_0x2e099f(0x1b5)]),console['log'](LOG_PREFIX+_0x2e099f(0x130)),console[_0x2e099f(0x13c)](LOG_PREFIX+_0x2e099f(0x14f)),updateOverlay();}catch(_0x32876d){console['error'](LOG_PREFIX+_0x2e099f(0x172),_0x32876d);}}function updateOverlay(){const _0x461560=_0x1ad906;console[_0x461560(0x13c)](LOG_PREFIX+_0x461560(0xee)),console[_0x461560(0x13c)](LOG_PREFIX+_0x461560(0x11b)+!!overlayController),console[_0x461560(0x13c)](LOG_PREFIX+_0x461560(0x194)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x461560(0x13c)](LOG_PREFIX+_0x461560(0x122));return;}const _0xd70339=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x461560(0x1b7),JSON['stringify'](_0xd70339,null,0x2)),overlayController[_0x461560(0x1b9)](_0xd70339),console[_0x461560(0x13c)](LOG_PREFIX+_0x461560(0x142));}function composeOverlayState(_0x44d65a){const _0x287d9c=_0x1ad906,_0xea7c33=getEnhancementId();return console[_0x287d9c(0x13c)](LOG_PREFIX+_0x287d9c(0x186)+_0xea7c33),console[_0x287d9c(0x13c)](LOG_PREFIX+_0x287d9c(0x12c)+state[_0x287d9c(0xf8)]),console[_0x287d9c(0x13c)](LOG_PREFIX+_0x287d9c(0x1a2)+state[_0x287d9c(0x110)]),{'enhancementId':_0xea7c33,'enabled':state[_0x287d9c(0xf8)],'controlled':state[_0x287d9c(0x110)],'overlayPosition':_0x44d65a[_0x287d9c(0x159)][_0x287d9c(0x134)],'securityMode':_0x44d65a[_0x287d9c(0x18f)],'backendBaseUrl':_0x44d65a[_0x287d9c(0x100)],'appError':state[_0x287d9c(0x1a6)]};}async function setupRemoteHMR(_0x3cb711){const _0x22fb90=_0x1ad906;console[_0x22fb90(0x13c)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x3cb711);if(typeof window==='undefined')return;try{const _0x53222f=new URL(_0x3cb711,window['location'][_0x22fb90(0x114)]),_0x3361f2=_0x53222f['origin'];console[_0x22fb90(0x13c)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x3361f2+',\x20page\x20origin:\x20'+window[_0x22fb90(0x196)][_0x22fb90(0x114)]);if(_0x3361f2===window[_0x22fb90(0x196)]['origin']){console[_0x22fb90(0x13c)](LOG_PREFIX+_0x22fb90(0x11c));return;}console[_0x22fb90(0x13c)](LOG_PREFIX+_0x22fb90(0x11d)),await ensureReactRefreshPreamble(_0x3361f2),await ensureViteClient(_0x3361f2),console[_0x22fb90(0x13c)](LOG_PREFIX+_0x22fb90(0x133));}catch(_0x28d536){console[_0x22fb90(0x106)](LOG_PREFIX+_0x22fb90(0x1a0),_0x28d536);}}async function ensureReactRefreshPreamble(_0x4c8c55){const _0x5d6b0c=_0x1ad906;window[_0x5d6b0c(0x109)]??(window[_0x5d6b0c(0x109)]=new Set());if(window[_0x5d6b0c(0x109)][_0x5d6b0c(0x1a3)](_0x4c8c55)){console[_0x5d6b0c(0x13c)](LOG_PREFIX+_0x5d6b0c(0x153)+_0x4c8c55);return;}console[_0x5d6b0c(0x13c)](LOG_PREFIX+_0x5d6b0c(0x167)+_0x4c8c55+_0x5d6b0c(0xf7));const _0x25fe3e=await import(_0x4c8c55+_0x5d6b0c(0x127)),_0x4b605c=_0x25fe3e&&typeof _0x25fe3e===_0x5d6b0c(0x119)&&'default'in _0x25fe3e?_0x25fe3e[_0x5d6b0c(0xf3)]:_0x25fe3e;if(!isRefreshRuntime(_0x4b605c)){console[_0x5d6b0c(0x106)](LOG_PREFIX+_0x5d6b0c(0x193));return;}_0x4b605c[_0x5d6b0c(0x176)](window),window[_0x5d6b0c(0x120)]=()=>{},window[_0x5d6b0c(0x160)]=()=>_0x55a769=>_0x55a769,window[_0x5d6b0c(0x13a)]=!![],window[_0x5d6b0c(0x109)]['add'](_0x4c8c55),console[_0x5d6b0c(0x13c)](LOG_PREFIX+_0x5d6b0c(0x147)+_0x4c8c55);}async function ensureViteClient(_0xd79b75){const _0xf406ce=_0x1ad906;window['__viteHMRLoaded']??(window[_0xf406ce(0x104)]=new Set());if(window[_0xf406ce(0x104)]['has'](_0xd79b75)){console['log'](LOG_PREFIX+_0xf406ce(0x190)+_0xd79b75);return;}console[_0xf406ce(0x13c)](LOG_PREFIX+_0xf406ce(0x157)+_0xd79b75+'...'),await import(_0xd79b75+_0xf406ce(0x10f)),window['__viteHMRLoaded'][_0xf406ce(0x1b1)](_0xd79b75),console[_0xf406ce(0x13c)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0xd79b75);}function isRefreshRuntime(_0x4802dd){const _0x158241=_0x1ad906;return typeof _0x4802dd===_0x158241(0x119)&&_0x4802dd!==null&&_0x158241(0x176)in _0x4802dd&&typeof _0x4802dd[_0x158241(0x176)]===_0x158241(0x1a9);}var WORKER_MESSAGE_CONFIG=_0x1ad906(0x187),WORKER_MESSAGE_DISABLE=_0x1ad906(0x128),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x1a70ed){const _0x38c804=_0x1ad906;console[_0x38c804(0x13c)](LOG_PREFIX2+_0x38c804(0x116));if(!('serviceWorker'in navigator)){console[_0x38c804(0x106)](LOG_PREFIX2+_0x38c804(0x15b));return;}const _0x5653c8=!!navigator[_0x38c804(0x150)][_0x38c804(0x139)];currentOptions2=_0x1a70ed;const _0x22daa=await detectBlockingServiceWorker(_0x1a70ed[_0x38c804(0x158)]);if(_0x22daa){console[_0x38c804(0x112)](LOG_PREFIX2+_0x38c804(0x126)+_0x22daa);return;}try{console[_0x38c804(0x13c)](LOG_PREFIX2+_0x38c804(0x179)+_0x1a70ed[_0x38c804(0x158)]+'...'),registration=await navigator[_0x38c804(0x150)][_0x38c804(0x118)](_0x1a70ed[_0x38c804(0x158)],{'scope':'/'}),console[_0x38c804(0x13c)](LOG_PREFIX2+_0x38c804(0x138)),await navigator[_0x38c804(0x150)]['ready'],console[_0x38c804(0x13c)](LOG_PREFIX2+_0x38c804(0x13d)),state['controlled']=ownsCurrentController(_0x1a70ed[_0x38c804(0x158)]);if(!_0x5653c8&&!navigator[_0x38c804(0x150)][_0x38c804(0x139)]){console[_0x38c804(0x13c)](LOG_PREFIX2+'\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement'),window[_0x38c804(0x196)]['reload']();return;}console['log'](LOG_PREFIX2+_0x38c804(0x17c)),await sendConfiguration();if(state['enabled']){const _0x53a336=document[_0x38c804(0xfc)](_0x38c804(0x152))!==null;if(!_0x53a336){console['log'](LOG_PREFIX2+_0x38c804(0x12e)),window['location'][_0x38c804(0x13b)]();return;}}updateOverlay(),console[_0x38c804(0x13c)](LOG_PREFIX2+_0x38c804(0x108));}catch(_0x459403){console[_0x38c804(0x112)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x459403);}}async function sendConfiguration(){const _0x6f79a7=_0x1ad906;if(!state[_0x6f79a7(0xf8)]||!currentOptions2)return;const _0x119da1=await resolveWorker();if(!_0x119da1){console[_0x6f79a7(0x106)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x57b9e0=window[_0x6f79a7(0x188)]??null,_0x30ef55={'publishableKey':currentOptions2[_0x6f79a7(0x1b6)],'callbackBypass':currentOptions2[_0x6f79a7(0x199)],'securityMode':currentOptions2[_0x6f79a7(0x18f)],'enhancementUrl':_0x57b9e0??void 0x0};console[_0x6f79a7(0x13c)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON[_0x6f79a7(0xf1)](_0x30ef55,null,0x2)),_0x119da1[_0x6f79a7(0xf9)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x30ef55});}async function unregisterServiceWorker(_0x3be83c){const _0x233ecc=_0x1ad906;console[_0x233ecc(0x13c)](LOG_PREFIX2+_0x233ecc(0x165));if(!(_0x233ecc(0x150)in navigator))return;try{const _0x434cab=registration??await navigator['serviceWorker'][_0x233ecc(0xef)]('/');if(!_0x434cab)return;const _0x5a28a5=[_0x434cab[_0x233ecc(0x102)]?.[_0x233ecc(0x1ac)],_0x434cab[_0x233ecc(0x1aa)]?.[_0x233ecc(0x1ac)],_0x434cab['installing']?.[_0x233ecc(0x1ac)]],_0x48a6de=_0x5a28a5[_0x233ecc(0x105)](_0x59baad=>_0x59baad&&ownsServiceWorker(_0x59baad,_0x3be83c));if(!_0x48a6de)return;_0x434cab[_0x233ecc(0x102)]&&_0x434cab['active'][_0x233ecc(0xf9)]({'type':WORKER_MESSAGE_DISABLE}),await _0x434cab[_0x233ecc(0x161)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered');}catch(_0xa30dd){console[_0x233ecc(0x112)](LOG_PREFIX2+_0x233ecc(0x121),_0xa30dd);}}function ownsServiceWorker(_0x33310a,_0x157b70){const _0x53ea5f=_0x1ad906,_0x2ee485=typeof window!=='undefined'?window[_0x53ea5f(0x196)][_0x53ea5f(0x114)]:'',_0x53f5d1=new URL(_0x157b70,_0x2ee485||void 0x0)[_0x53ea5f(0x115)];return _0x33310a===_0x53f5d1||_0x33310a[_0x53ea5f(0x10d)](_0x53ea5f(0xff));}function ownsCurrentController(_0x38e343){const _0x26adbb=_0x1ad906,_0x3830fb=navigator[_0x26adbb(0x150)]?.['controller'];if(!_0x3830fb)return![];return ownsServiceWorker(_0x3830fb[_0x26adbb(0x1ac)],_0x38e343);}async function detectBlockingServiceWorker(_0xa679d1){const _0x374f25=_0x1ad906;if(!navigator[_0x374f25(0x150)])return null;try{const _0x8ab814=await navigator[_0x374f25(0x150)][_0x374f25(0xef)]('/'),_0x5dd571=_0x8ab814?.['active']?.[_0x374f25(0x1ac)];if(!_0x5dd571)return null;if(ownsServiceWorker(_0x5dd571,_0xa679d1))return null;return _0x5dd571;}catch{return null;}}async function resolveWorker(){const _0x27eb10=_0x1ad906,_0x4fdf41=registration??await navigator[_0x27eb10(0x150)]?.[_0x27eb10(0xef)]('/');return _0x4fdf41?.[_0x27eb10(0x102)]??_0x4fdf41?.[_0x27eb10(0x1aa)]??_0x4fdf41?.[_0x27eb10(0x162)]??null;}var LOG_PREFIX3=_0x1ad906(0x191),STORAGE_KEY_ENHANCEMENT_ID='enhance.enhancementId',STORAGE_KEY_ENHANCEMENT_URL=_0x1ad906(0x1a1);function isInitialized(){return typeof window!=='undefined'&&window['__enhanceInitialized']===!![];}function _0xeccd(){const _0x130618=['\x20Calling\x20updateOverlay()...','serviceWorker','35uNPzDr','[data-enhance-runtime-bootstrap]','\x20React\x20Refresh\x20already\x20installed\x20for\x20','toString','status','\x20Setting\x20up\x20remote\x20HMR...','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','swPath','overlay','getItem','\x20Service\x20workers\x20NOT\x20supported','^11.1.0','./dev/vite/index.js','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','undefined','$RefreshSig$','unregister','installing','overlayPath','\x20Module\x20exports:','\x20unregisterServiceWorker()\x20called','version','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20overlayPath:\x20','history','./dev/index.js','\x20Controller\x20created:','setItem','https://api.enhancelabs.ai','\x20init()\x20called\x20at\x20','\x20Current\x20URL:\x20','157730mBaAIo','removeItem','\x20Failed\x20to\x20import/create\x20overlay:','725776XUXRwI','1074156OZQcLy','\x20Enhancement\x20params:','injectIntoGlobalHook','^24.10.1','/assets/enhance-runtime.js','\x20Registering\x20SW\x20at\x20','\x20Explicit\x20disable\x20-\x20exiting','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Sending\x20configuration\x20to\x20SW...','enhancementId','searchParams','./dev/vite/index.d.ts','err','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','startsWith','bottom-right','tsc\x20--noEmit','replace','\x20composeOverlayState\x20-\x20enhancementId:\x20','enhance:configure','__enhanceResolvedUrl','__development','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','/public/enhancements/','4906512qNydwu','runtimeURL','title','security','\x20Vite\x20client\x20already\x20loaded\x20for\x20','[Enhance\x20Runtime]','enhance','\x20Invalid\x20React\x20Refresh\x20runtime','\x20currentOptions\x20exists:\x20','delete','location','\x20doLoadOverlay()\x20starting...','replaceState','callbackBypass','__enhanceOverlay','enhancement','https://assets.enhancelabs.ai/overlay.js','now','\x20Loading\x20overlay...','enable','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','enhance.enhancementUrl','\x20composeOverlayState\x20-\x20state.controlled:\x20','has','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','search','appError','\x20Restored\x20enhancement\x20from\x20sessionStorage','\x20Importing\x20overlay\x20module\x20from:\x20','function','waiting','^7.2.4','scriptURL','explicitDisable','https://','__enhanceOptions','^3.22.4','add','\x20Resolution\x20error:','json','[Enhance\x20Config]\x20Build-time\x20defaults:','onToggle','publishableKey','\x20Updating\x20overlay\x20with\x20state:','./dev/cli.js','update','\x20updateOverlay()\x20called','getRegistration','public','stringify','options','default','\x20Module\x20missing\x20createOverlay\x20export!','serviceWorkerURL','module','...','enabled','postMessage','\x20Calling:\x20','\x20Normal\x20mode\x20-\x20no\x20enhancement','querySelector','68152JiAmDZ','__enhanceInitialized','sw-enhance','backendUrl','enableOverlayHmr','active','\x20Cleared\x20persisted\x20enhancement','__viteHMRLoaded','some','warn','http://','\x20registerServiceWorker()\x20complete','__enhanceReactRefreshInstalledOrigins','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','readyState','2322432Ungqbf','includes','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','/@vite/client','controlled','vite:error','error','1302565nsSalN','origin','href','\x20registerServiceWorker()\x20called','\x20loadOverlay()\x20called','register','object','false','\x20overlayController\x20exists:\x20','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','set','trim','$RefreshReg$','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','off','0.0.0','createOverlay','\x20BLOCKING\x20SW\x20detected:\x20','/@react-refresh','enhance:disable','\x20Enhancement\x20initialization\x20complete','./dev/index.d.ts','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20composeOverlayState\x20-\x20state.enabled:\x20','disable','\x20Page\x20not\x20enhanced\x20-\x20reloading','\x20No\x20window\x20object\x20-\x20skipping','\x20Overlay\x20controller\x20initialized\x20and\x20cached','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','toLowerCase','\x20HMR\x20setup\x20complete','position','\x20Calling\x20createOverlay()...','\x20Resolving\x20enhancement\x20ID:\x20','get','\x20Waiting\x20for\x20SW\x20ready...','controller','__vite_plugin_react_preamble_installed__','reload','log','\x20SW\x20ready','permissive','[Enhance\x20Overlay]','^8.5.1','6BBcmYn','\x20Overlay\x20update\x20complete','keys','bun\x20version\x20patch\x20--no-git-tag-version','__enhanceController','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','dev/','text','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','/sw-enhance.js','\x20loadOverlay()\x20failed:','@enhance-eng/sandbox','\x20Available\x20exports:'];_0xeccd=function(){return _0x130618;};return _0xeccd();}function setInitialized(_0x436b63){const _0xf170ff=_0x1ad906;typeof window!==_0xf170ff(0x15f)&&(window[_0xf170ff(0xfe)]=_0x436b63);}function getOptions(){const _0x352818=_0x1ad906;return typeof window!==_0x352818(0x15f)?window[_0x352818(0x1af)]??null:null;}function setOptions(_0x591f77){const _0x4a74f0=_0x1ad906;typeof window!==_0x4a74f0(0x15f)&&(window[_0x4a74f0(0x1af)]=_0x591f77);}var Enhance={'init'(_0x374610){const _0x4bcbdd=_0x1ad906,_0x951154=Date[_0x4bcbdd(0x19d)]();console[_0x4bcbdd(0x13c)](LOG_PREFIX3+_0x4bcbdd(0x16e)+_0x951154),console[_0x4bcbdd(0x13c)](LOG_PREFIX3+_0x4bcbdd(0x16f)+window[_0x4bcbdd(0x196)][_0x4bcbdd(0x115)]),console[_0x4bcbdd(0x13c)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x4bcbdd(0x10b)]);if(isInitialized())return console[_0x4bcbdd(0x106)](LOG_PREFIX3+_0x4bcbdd(0x18a)),window['__enhanceController']??createController();setInitialized(!![]);const _0x695029=normalizeOptions(_0x374610);setOptions(_0x695029);const _0x2b638f=parseEnhancementParams();console[_0x4bcbdd(0x13c)](LOG_PREFIX3+_0x4bcbdd(0x175),JSON[_0x4bcbdd(0xf1)](_0x2b638f,null,0x2));if(_0x2b638f[_0x4bcbdd(0x1ad)])return cleanUrlParam('enhance'),clearPersistedEnhancement(),console[_0x4bcbdd(0x13c)](LOG_PREFIX3+_0x4bcbdd(0x17a)),createController();if(!_0x2b638f[_0x4bcbdd(0x17d)])return console[_0x4bcbdd(0x13c)](LOG_PREFIX3+_0x4bcbdd(0xfb)),void unregisterServiceWorker(_0x695029['swPath']),setupViteErrorListeners(),createController();return console[_0x4bcbdd(0x13c)](LOG_PREFIX3+_0x4bcbdd(0x146)+_0x2b638f[_0x4bcbdd(0x17d)]),state[_0x4bcbdd(0xf8)]=!![],void initializeEnhancement(_0x695029,_0x2b638f[_0x4bcbdd(0x17d)],_0x2b638f['cachedUrl']),createController();}};async function initializeEnhancement(_0x3ba694,_0xf64dfc,_0x518e6a){const _0x5e940b=_0x1ad906;let _0x201917=_0x518e6a;if(!_0x201917){console[_0x5e940b(0x13c)](LOG_PREFIX3+_0x5e940b(0x136)+_0xf64dfc),_0x201917=await resolveEnhancementUrl(_0x3ba694,_0xf64dfc);if(!_0x201917){console[_0x5e940b(0x112)](LOG_PREFIX3+_0x5e940b(0x14a)),state['enabled']=![];return;}}else console[_0x5e940b(0x13c)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x201917);persistEnhancement(_0xf64dfc,_0x201917),window[_0x5e940b(0x188)]=_0x201917,console[_0x5e940b(0x13c)](LOG_PREFIX3+'\x20Registering\x20SW\x20with\x20enhancement\x20URL...'),await registerServiceWorker(_0x3ba694),console[_0x5e940b(0x13c)](LOG_PREFIX3+_0x5e940b(0x19e)),await loadOverlay({'overlayPath':_0x3ba694[_0x5e940b(0x163)],'enableViteHmr':_0x3ba694[_0x5e940b(0x159)]['enableViteHmr'],'options':_0x3ba694,'onToggle':handleToggle}),console[_0x5e940b(0x13c)](LOG_PREFIX3+_0x5e940b(0x129));}async function resolveEnhancementUrl(_0x3bb6a6,_0x2f7afe){const _0x118ba9=_0x1ad906,_0x8a412f=_0x3bb6a6[_0x118ba9(0x100)]+_0x118ba9(0x18b)+_0x2f7afe+'/resolve';console['log'](LOG_PREFIX3+_0x118ba9(0xfa)+_0x8a412f);try{const _0x3c59c1=await fetch(_0x8a412f,{'headers':{'X-Enhance-Publishable-Key':_0x3bb6a6['publishableKey']}});if(!_0x3c59c1['ok']){const _0x357e34=await _0x3c59c1[_0x118ba9(0x149)]();return console['error'](LOG_PREFIX3+'\x20Resolution\x20failed:\x20'+_0x3c59c1[_0x118ba9(0x155)]+'\x20'+_0x357e34),null;}const _0xae6881=await _0x3c59c1[_0x118ba9(0x1b3)](),_0x405a9c=''+_0x3bb6a6[_0x118ba9(0x100)]+_0xae6881['operatingPath'];return console[_0x118ba9(0x13c)](LOG_PREFIX3+'\x20Resolved\x20to:\x20'+_0x405a9c),_0x405a9c;}catch(_0x2b19b2){return console[_0x118ba9(0x112)](LOG_PREFIX3+_0x118ba9(0x1b2),_0x2b19b2),null;}}function parseEnhancementParams(){const _0x3c806f=_0x1ad906,_0x3bb4ed=new URL(window['location'][_0x3c806f(0x115)]),_0x166811=_0x3bb4ed['searchParams'][_0x3c806f(0x137)](_0x3c806f(0x192))?.[_0x3c806f(0x132)](),_0x435812=_0x166811==='0'||_0x166811===_0x3c806f(0x11a)||_0x166811===_0x3c806f(0x123);let _0x4681ed=_0x3bb4ed[_0x3c806f(0x17e)][_0x3c806f(0x137)](_0x3c806f(0x19b)),_0xc07a05=null;if(_0x4681ed)try{const _0x5c2516=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x5d3eec=sessionStorage[_0x3c806f(0x15a)](STORAGE_KEY_ENHANCEMENT_URL);_0x5c2516===_0x4681ed&&_0x5d3eec&&(_0xc07a05=_0x5d3eec,console['log'](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x28be2c=sessionStorage[_0x3c806f(0x15a)](STORAGE_KEY_ENHANCEMENT_ID),_0x226c67=sessionStorage[_0x3c806f(0x15a)](STORAGE_KEY_ENHANCEMENT_URL);_0x28be2c&&_0x226c67&&(_0x4681ed=_0x28be2c,_0xc07a05=_0x226c67,console[_0x3c806f(0x13c)](LOG_PREFIX3+_0x3c806f(0x1a7)),_0x3bb4ed[_0x3c806f(0x17e)][_0x3c806f(0x11e)](_0x3c806f(0x19b),_0x4681ed),window['history']['replaceState'](null,document[_0x3c806f(0x18e)],_0x3bb4ed[_0x3c806f(0x154)]()));}catch{}return{'enhancementId':_0x4681ed,'cachedUrl':_0xc07a05,'explicitDisable':_0x435812};}function persistEnhancement(_0x1e93a2,_0x2c2042){const _0x191176=_0x1ad906;try{sessionStorage[_0x191176(0x16c)](STORAGE_KEY_ENHANCEMENT_ID,_0x1e93a2),sessionStorage[_0x191176(0x16c)](STORAGE_KEY_ENHANCEMENT_URL,_0x2c2042),console['log'](LOG_PREFIX3+'\x20Persisted\x20enhancement\x20to\x20sessionStorage');}catch{}}function clearPersistedEnhancement(){const _0x31ee7c=_0x1ad906;try{sessionStorage[_0x31ee7c(0x171)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_URL),console['log'](LOG_PREFIX3+_0x31ee7c(0x103));}catch{}}function createController(){const _0x2cd505=_0x1ad906,_0x149f7e={'enable'(){const _0x17622=_0x215a,_0x5af633=getOptions();if(!_0x5af633)return;state[_0x17622(0xf8)]=!![],void registerServiceWorker(_0x5af633),void sendConfiguration(),updateOverlay();},'disable'(){const _0xb9b14e=_0x215a,_0x264e09=getOptions();if(!_0x264e09)return;state[_0xb9b14e(0xf8)]=![],state['controlled']=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x264e09[_0xb9b14e(0x158)]);},'status'(){const _0x58726f=_0x215a;return{'enabled':state['enabled'],'controlled':state[_0x58726f(0x110)]};}};return typeof window!=='undefined'&&(window[_0x2cd505(0x145)]=_0x149f7e),_0x149f7e;}function handleToggle(){const _0x421146=_0x1ad906,_0xb4faf6=createController();state['enabled']?_0xb4faf6[_0x421146(0x12d)]():_0xb4faf6[_0x421146(0x19f)]();}function cleanUrlParam(_0x11f9ea){const _0x2ffc1e=_0x1ad906,_0x4bc17a=new URL(window[_0x2ffc1e(0x196)]['href']);_0x4bc17a[_0x2ffc1e(0x17e)][_0x2ffc1e(0x1a3)](_0x11f9ea)&&(_0x4bc17a['searchParams'][_0x2ffc1e(0x195)](_0x11f9ea),window[_0x2ffc1e(0x169)][_0x2ffc1e(0x198)](null,document[_0x2ffc1e(0x18e)],_0x4bc17a['toString']()));}function setupViteErrorListeners(){const _0x39f70b=_0x1ad906;import.meta.hot&&(import.meta.hot['on'](_0x39f70b(0x111),_0x49c0a4=>{const _0x59d59c=_0x39f70b;state[_0x59d59c(0x1a6)]={'message':_0x49c0a4[_0x59d59c(0x180)]['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x121336=_0x39f70b;state['appError']&&(state[_0x121336(0x1a6)]=null,updateOverlay());}));}var package_default={'name':_0x1ad906(0x14d),'version':'0.3.22','type':_0x1ad906(0xf6),'description':_0x1ad906(0x1a4),'license':'MIT','main':_0x1ad906(0x16a),'module':_0x1ad906(0x16a),'types':_0x1ad906(0x12a),'exports':{'.':{'types':_0x1ad906(0x12a),'import':_0x1ad906(0x16a)},'./vite':{'types':_0x1ad906(0x17f),'import':_0x1ad906(0x15d)}},'files':[_0x1ad906(0x148)],'bin':{'enhance-sandbox':_0x1ad906(0x1b8)},'scripts':{'typecheck':_0x1ad906(0x184),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x1ad906(0x131),'dev:staging':_0x1ad906(0x10a),'dev:staging:build':_0x1ad906(0x10e),'build':_0x1ad906(0x181),'build:release':_0x1ad906(0x17b),'build:release:dev':'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','version':_0x1ad906(0x144)},'dependencies':{'commander':_0x1ad906(0x15c),'zod':_0x1ad906(0x1b0)},'devDependencies':{'@types/node':_0x1ad906(0x177),'javascript-obfuscator':'^4.1.1','tsup':_0x1ad906(0x140),'vite':_0x1ad906(0x1ab)},'publishConfig':{'access':_0x1ad906(0xf0)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x1ad906(0x178),PACKAGE_VERSION=typeof package_default[_0x1ad906(0x166)]==='string'?package_default['version']:_0x1ad906(0x124);function normalizeAssetPath(_0x3b426c){const _0x5baa79=_0x1ad906;if(!_0x3b426c)return _0x3b426c;if(_0x3b426c['startsWith'](_0x5baa79(0x107))||_0x3b426c[_0x5baa79(0x182)](_0x5baa79(0x1ae)))return _0x3b426c;const _0x26ee04=_0x3b426c[_0x5baa79(0x185)](/^\.\//,'');return _0x26ee04['startsWith']('/')?_0x26ee04:'/'+_0x26ee04;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4f01be){return Enhance['init'](_0x4f01be);},'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 _0x215a(_0x710c1f,_0x1555cc){_0x710c1f=_0x710c1f-0xee;const _0xeccdd8=_0xeccd();let _0x215a46=_0xeccdd8[_0x710c1f];return _0x215a46;}function serviceWorkerURL(){const _0x490f3c=_0x1ad906;return Enhance2[_0x490f3c(0xf5)]();}function runtimeURL(){const _0x45bf62=_0x1ad906;return Enhance2[_0x45bf62(0x18d)]();}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 _0x242565=_0x54bb;function _0x54bb(_0x1b786b,_0x5e6bf4){_0x1b786b=_0x1b786b-0x192;const _0x5d01c9=_0x5d01();let _0x54bb79=_0x5d01c9[_0x1b786b];return _0x54bb79;}(function(_0x3d7d80,_0x473133){const _0x190d7c=_0x54bb,_0x2a92e6=_0x3d7d80();while(!![]){try{const _0xf1bbd=-parseInt(_0x190d7c(0x231))/0x1+parseInt(_0x190d7c(0x24e))/0x2+parseInt(_0x190d7c(0x251))/0x3+-parseInt(_0x190d7c(0x1e0))/0x4+parseInt(_0x190d7c(0x19d))/0x5*(-parseInt(_0x190d7c(0x279))/0x6)+-parseInt(_0x190d7c(0x1ee))/0x7*(parseInt(_0x190d7c(0x19c))/0x8)+parseInt(_0x190d7c(0x24d))/0x9;if(_0xf1bbd===_0x473133)break;else _0x2a92e6['push'](_0x2a92e6['shift']());}catch(_0x37f50a){_0x2a92e6['push'](_0x2a92e6['shift']());}}}(_0x5d01,0xdb684));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x242565(0x246)?__ENHANCE_DEFAULT_OVERLAY_PATH__:'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x242565(0x246)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x242565(0x1be),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x242565(0x1a8)](_0x242565(0x197),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0xe8b2c9){const _0x3fe8a2=_0x242565;if(!_0xe8b2c9[_0x3fe8a2(0x1c2)])throw new Error(_0x3fe8a2(0x1ba));const _0x3c2feb=_0xe8b2c9[_0x3fe8a2(0x27c)]??{};return{'publishableKey':_0xe8b2c9['publishableKey'],'callbackBypass':_0xe8b2c9[_0x3fe8a2(0x1f8)]??[],'overlay':{'enabled':!![],'position':_0x3fe8a2(0x207),'enableViteHmr':_0x3c2feb[_0x3fe8a2(0x1a9)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3fe8a2(0x1c3),'swPath':'/sw-enhance.js','overlayPath':_0x3c2feb[_0x3fe8a2(0x195)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x3fe8a2(0x1df),'security':_0x3c2feb[_0x3fe8a2(0x270)]??_0x3fe8a2(0x256),'backendUrl':_0x3c2feb['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x3d0e24=_0x242565;try{const _0x2430d6=new URLSearchParams(window[_0x3d0e24(0x248)][_0x3d0e24(0x23f)]);return _0x2430d6[_0x3d0e24(0x27d)](_0x3d0e24(0x20c))?.[_0x3d0e24(0x193)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0xb3241f){const _0x2298c7=_0x242565;console['log'](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x2298c7(0x1a8)](LOG_PREFIX+'\x20overlayPath:\x20'+_0xb3241f['overlayPath']),console[_0x2298c7(0x1a8)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0xb3241f[_0x2298c7(0x21e)]),currentOptions=_0xb3241f[_0x2298c7(0x20f)],toggleHandler=_0xb3241f['onToggle'];if(overlayController){console[_0x2298c7(0x1a8)](LOG_PREFIX+_0x2298c7(0x1af)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x2298c7(0x1a8)](LOG_PREFIX+_0x2298c7(0x1d1)),overlayLoadPromise;console[_0x2298c7(0x1a8)](LOG_PREFIX+_0x2298c7(0x213)),overlayLoadPromise=doLoadOverlay(_0xb3241f);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x2298c7(0x209));}catch(_0x541c42){console['error'](LOG_PREFIX+_0x2298c7(0x1e8),_0x541c42);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4aaf2f){const _0x1ddc31=_0x242565;console[_0x1ddc31(0x1a8)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x1ddc31(0x246)){console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x1fb));return;}if(window[_0x1ddc31(0x278)]){console[_0x1ddc31(0x1a8)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x1ddc31(0x278)];return;}console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x242));try{_0x4aaf2f['enableViteHmr']&&(console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x1d2)),await setupRemoteHMR(_0x4aaf2f[_0x1ddc31(0x195)]));console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x1c1)+_0x4aaf2f[_0x1ddc31(0x195)]);const _0x56ea3f=Date[_0x1ddc31(0x235)](),_0x180426=await import(_0x4aaf2f[_0x1ddc31(0x195)]);console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x1cc)+(Date[_0x1ddc31(0x235)]()-_0x56ea3f)+'ms'),console['log'](LOG_PREFIX+_0x1ddc31(0x1c4),Object['keys'](_0x180426));if(typeof _0x180426?.[_0x1ddc31(0x1d0)]!==_0x1ddc31(0x1c8)){console[_0x1ddc31(0x232)](LOG_PREFIX+_0x1ddc31(0x264)),console['error'](LOG_PREFIX+'\x20Available\x20exports:',Object['keys'](_0x180426));return;}console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x1ae));const _0x34e342=_0x180426['createOverlay']();console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x1c0),_0x34e342),overlayController=_0x34e342,window[_0x1ddc31(0x278)]=_0x34e342,_0x34e342[_0x1ddc31(0x247)](_0x4aaf2f[_0x1ddc31(0x247)]),console[_0x1ddc31(0x1a8)](LOG_PREFIX+_0x1ddc31(0x1bd)),console['log'](LOG_PREFIX+_0x1ddc31(0x1e5)),updateOverlay();}catch(_0x1f894f){console[_0x1ddc31(0x232)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x1f894f);}}function updateOverlay(){const _0x4fae5b=_0x242565;console['log'](LOG_PREFIX+_0x4fae5b(0x23e)),console[_0x4fae5b(0x1a8)](LOG_PREFIX+_0x4fae5b(0x1b3)+!!overlayController),console['log'](LOG_PREFIX+_0x4fae5b(0x23d)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x4fae5b(0x1a8)](LOG_PREFIX+_0x4fae5b(0x1fa));return;}const _0x28b7eb=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x4fae5b(0x25b)](_0x28b7eb,null,0x2)),overlayController[_0x4fae5b(0x1a3)](_0x28b7eb),console[_0x4fae5b(0x1a8)](LOG_PREFIX+_0x4fae5b(0x1d4));}function composeOverlayState(_0x110630){const _0x5bacf8=_0x242565,_0xfdfd3c=getEnhancementId();return console[_0x5bacf8(0x1a8)](LOG_PREFIX+_0x5bacf8(0x280)+_0xfdfd3c),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state['enabled']),console[_0x5bacf8(0x1a8)](LOG_PREFIX+_0x5bacf8(0x24c)+state['controlled']),{'enhancementId':_0xfdfd3c,'enabled':state[_0x5bacf8(0x1a6)],'controlled':state['controlled'],'overlayPosition':_0x110630[_0x5bacf8(0x233)][_0x5bacf8(0x1dd)],'securityMode':_0x110630['security'],'backendBaseUrl':_0x110630[_0x5bacf8(0x1e2)],'appError':state[_0x5bacf8(0x1fc)]};}async function setupRemoteHMR(_0x26a52f){const _0x20a071=_0x242565;console[_0x20a071(0x1a8)](LOG_PREFIX+_0x20a071(0x230)+_0x26a52f);if(typeof window===_0x20a071(0x246))return;try{const _0x484824=new URL(_0x26a52f,window[_0x20a071(0x248)]['origin']),_0x51892c=_0x484824['origin'];console['log'](LOG_PREFIX+_0x20a071(0x1ca)+_0x51892c+_0x20a071(0x253)+window['location'][_0x20a071(0x21f)]);if(_0x51892c===window[_0x20a071(0x248)][_0x20a071(0x21f)]){console[_0x20a071(0x1a8)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x20a071(0x1a8)](LOG_PREFIX+_0x20a071(0x26b)),await ensureReactRefreshPreamble(_0x51892c),await ensureViteClient(_0x51892c),console[_0x20a071(0x1a8)](LOG_PREFIX+_0x20a071(0x23b));}catch(_0x408029){console[_0x20a071(0x26d)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x408029);}}async function ensureReactRefreshPreamble(_0x5b3a65){const _0x52be2f=_0x242565;window[_0x52be2f(0x25a)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x52be2f(0x216)](_0x5b3a65)){console[_0x52be2f(0x1a8)](LOG_PREFIX+_0x52be2f(0x1f9)+_0x5b3a65);return;}console[_0x52be2f(0x1a8)](LOG_PREFIX+_0x52be2f(0x1b1)+_0x5b3a65+_0x52be2f(0x192));const _0x264a03=await import(_0x5b3a65+_0x52be2f(0x19e)),_0x49a42b=_0x264a03&&typeof _0x264a03===_0x52be2f(0x1f5)&&_0x52be2f(0x194)in _0x264a03?_0x264a03[_0x52be2f(0x194)]:_0x264a03;if(!isRefreshRuntime(_0x49a42b)){console[_0x52be2f(0x26d)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x49a42b[_0x52be2f(0x1ed)](window),window[_0x52be2f(0x1bb)]=()=>{},window[_0x52be2f(0x1dc)]=()=>_0x5d6301=>_0x5d6301,window[_0x52be2f(0x1cf)]=!![],window[_0x52be2f(0x25a)][_0x52be2f(0x24b)](_0x5b3a65),console[_0x52be2f(0x1a8)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x5b3a65);}async function ensureViteClient(_0x61a193){const _0x1bfc44=_0x242565;window['__viteHMRLoaded']??=new Set();if(window[_0x1bfc44(0x219)][_0x1bfc44(0x216)](_0x61a193)){console['log'](LOG_PREFIX+_0x1bfc44(0x22f)+_0x61a193);return;}console[_0x1bfc44(0x1a8)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x61a193+_0x1bfc44(0x192)),await import(_0x61a193+_0x1bfc44(0x1e7)),window['__viteHMRLoaded'][_0x1bfc44(0x24b)](_0x61a193),console[_0x1bfc44(0x1a8)](LOG_PREFIX+_0x1bfc44(0x198)+_0x61a193);}function isRefreshRuntime(_0x35940f){const _0x582c01=_0x242565;return typeof _0x35940f===_0x582c01(0x1f5)&&_0x35940f!==null&&_0x582c01(0x1ed)in _0x35940f&&typeof _0x35940f['injectIntoGlobalHook']==='function';}var WORKER_MESSAGE_CONFIG=_0x242565(0x218),WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x242565(0x25d),registration=null,currentOptions2=null;async function registerServiceWorker(_0x2644ff){const _0x4094ce=_0x242565;console[_0x4094ce(0x1a8)](LOG_PREFIX2+_0x4094ce(0x23c));if(!('serviceWorker'in navigator)){console['warn'](LOG_PREFIX2+_0x4094ce(0x1f7));return;}const _0x499cc9=!!navigator[_0x4094ce(0x22a)][_0x4094ce(0x1a2)];currentOptions2=_0x2644ff;const _0x4ccb03=await detectBlockingServiceWorker(_0x2644ff[_0x4094ce(0x227)]);if(_0x4ccb03){console[_0x4094ce(0x232)](LOG_PREFIX2+_0x4094ce(0x236)+_0x4ccb03);return;}try{console[_0x4094ce(0x1a8)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x2644ff['swPath']+_0x4094ce(0x192)),registration=await navigator['serviceWorker'][_0x4094ce(0x1ce)](_0x2644ff[_0x4094ce(0x227)],{'scope':'/'}),console[_0x4094ce(0x1a8)](LOG_PREFIX2+_0x4094ce(0x276)),await navigator['serviceWorker'][_0x4094ce(0x206)],console['log'](LOG_PREFIX2+_0x4094ce(0x1e9)),state[_0x4094ce(0x21c)]=ownsCurrentController(_0x2644ff['swPath']);if(!_0x499cc9&&!navigator[_0x4094ce(0x22a)][_0x4094ce(0x1a2)]){console['log'](LOG_PREFIX2+'\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement'),window[_0x4094ce(0x248)]['reload']();return;}console[_0x4094ce(0x1a8)](LOG_PREFIX2+_0x4094ce(0x222)),await sendConfiguration();if(state[_0x4094ce(0x1a6)]){const _0x28289f=document[_0x4094ce(0x1cb)](_0x4094ce(0x229))!==null;if(!_0x28289f){console[_0x4094ce(0x1a8)](LOG_PREFIX2+_0x4094ce(0x259)),window[_0x4094ce(0x248)][_0x4094ce(0x238)]();return;}}updateOverlay(),console[_0x4094ce(0x1a8)](LOG_PREFIX2+_0x4094ce(0x25c));}catch(_0x3d4d7e){console[_0x4094ce(0x232)](LOG_PREFIX2+_0x4094ce(0x23a),_0x3d4d7e);}}async function sendConfiguration(){const _0x515389=_0x242565;if(!state[_0x515389(0x1a6)]||!currentOptions2)return;const _0x4e35f7=await resolveWorker();if(!_0x4e35f7){console[_0x515389(0x26d)](LOG_PREFIX2+_0x515389(0x241));return;}const _0x5adf28=window['__enhanceResolvedUrl']??null,_0x301072={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x515389(0x1f8)],'securityMode':currentOptions2[_0x515389(0x270)],'enhancementUrl':_0x5adf28??void 0x0};console['log'](LOG_PREFIX2+_0x515389(0x240),JSON[_0x515389(0x25b)](_0x301072,null,0x2)),_0x4e35f7[_0x515389(0x25f)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x301072});}async function unregisterServiceWorker(_0x172b18){const _0x42905e=_0x242565;console[_0x42905e(0x1a8)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x42905e(0x22a)in navigator))return;try{const _0x56d004=registration??await navigator[_0x42905e(0x22a)][_0x42905e(0x22d)]('/');if(!_0x56d004)return;const _0x20d685=[_0x56d004['active']?.[_0x42905e(0x245)],_0x56d004['waiting']?.[_0x42905e(0x245)],_0x56d004['installing']?.[_0x42905e(0x245)]],_0x384632=_0x20d685[_0x42905e(0x265)](_0x2a10e8=>_0x2a10e8&&ownsServiceWorker(_0x2a10e8,_0x172b18));if(!_0x384632)return;_0x56d004['active']&&_0x56d004['active'][_0x42905e(0x25f)]({'type':WORKER_MESSAGE_DISABLE}),await _0x56d004[_0x42905e(0x1ac)](),registration=null,currentOptions2=null,console[_0x42905e(0x1a8)](LOG_PREFIX2+'\x20SW\x20unregistered');}catch(_0x47ae28){console[_0x42905e(0x232)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x47ae28);}}function ownsServiceWorker(_0xb69d,_0x523d78){const _0xbb4267=_0x242565,_0x576d1d=typeof window!==_0xbb4267(0x246)?window['location'][_0xbb4267(0x21f)]:'',_0x2600d4=new URL(_0x523d78,_0x576d1d||void 0x0)[_0xbb4267(0x20b)];return _0xb69d===_0x2600d4||_0xb69d[_0xbb4267(0x1b9)]('sw-enhance');}function ownsCurrentController(_0x1474b8){const _0x524c9e=_0x242565,_0x1248e4=navigator[_0x524c9e(0x22a)]?.[_0x524c9e(0x1a2)];if(!_0x1248e4)return![];return ownsServiceWorker(_0x1248e4['scriptURL'],_0x1474b8);}async function detectBlockingServiceWorker(_0x512b0a){const _0x1fc438=_0x242565;if(!navigator[_0x1fc438(0x22a)])return null;try{const _0x1d64f7=await navigator[_0x1fc438(0x22a)][_0x1fc438(0x22d)]('/'),_0x23de2a=_0x1d64f7?.[_0x1fc438(0x1bc)]?.['scriptURL'];if(!_0x23de2a)return null;if(ownsServiceWorker(_0x23de2a,_0x512b0a))return null;return _0x23de2a;}catch{return null;}}async function resolveWorker(){const _0x395037=_0x242565,_0x123897=registration??await navigator[_0x395037(0x22a)]?.[_0x395037(0x22d)]('/');return _0x123897?.[_0x395037(0x1bc)]??_0x123897?.[_0x395037(0x1c7)]??_0x123897?.[_0x395037(0x1c9)]??null;}var LOG_PREFIX3='[Enhance\x20Runtime]',STORAGE_KEY_ENHANCEMENT_ID=_0x242565(0x1ff),STORAGE_KEY_ENHANCEMENT_URL=_0x242565(0x27b);function isInitialized(){const _0x147be5=_0x242565;return typeof window!==_0x147be5(0x246)&&window[_0x147be5(0x1da)]===!![];}function setInitialized(_0x63c8c1){const _0x3233c5=_0x242565;typeof window!==_0x3233c5(0x246)&&(window[_0x3233c5(0x1da)]=_0x63c8c1);}function getOptions(){const _0x11b78a=_0x242565;return typeof window!==_0x11b78a(0x246)?window[_0x11b78a(0x1de)]??null:null;}function setOptions(_0x2f91b0){const _0x3bed84=_0x242565;typeof window!==_0x3bed84(0x246)&&(window[_0x3bed84(0x1de)]=_0x2f91b0);}var Enhance={'init'(_0x563189){const _0x376ca4=_0x242565,_0x5c8ffa=Date[_0x376ca4(0x235)]();console[_0x376ca4(0x1a8)](LOG_PREFIX3+_0x376ca4(0x200)+_0x5c8ffa),console['log'](LOG_PREFIX3+_0x376ca4(0x266)+window[_0x376ca4(0x248)][_0x376ca4(0x20b)]),console['log'](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x376ca4(0x1f1)]);if(isInitialized())return console[_0x376ca4(0x26d)](LOG_PREFIX3+_0x376ca4(0x1ab)),window['__enhanceController']??createController();setInitialized(!![]);const _0x38cc5f=normalizeOptions(_0x563189);setOptions(_0x38cc5f);const _0x20e1bb=parseEnhancementParams();console[_0x376ca4(0x1a8)](LOG_PREFIX3+'\x20Enhancement\x20params:',JSON['stringify'](_0x20e1bb,null,0x2));if(_0x20e1bb[_0x376ca4(0x22c)])return cleanUrlParam(_0x376ca4(0x261)),clearPersistedEnhancement(),console[_0x376ca4(0x1a8)](LOG_PREFIX3+_0x376ca4(0x203)),createController();if(!_0x20e1bb['enhancementId'])return console['log'](LOG_PREFIX3+_0x376ca4(0x234)),void unregisterServiceWorker(_0x38cc5f[_0x376ca4(0x227)]),setupViteErrorListeners(),createController();return console['log'](LOG_PREFIX3+_0x376ca4(0x260)+_0x20e1bb[_0x376ca4(0x1d7)]),state[_0x376ca4(0x1a6)]=!![],void initializeEnhancement(_0x38cc5f,_0x20e1bb['enhancementId'],_0x20e1bb[_0x376ca4(0x224)]),createController();}};async function initializeEnhancement(_0x41981f,_0x48082b,_0x2920e1){const _0x4edb7e=_0x242565;let _0x20b4ef=_0x2920e1;if(!_0x20b4ef){console[_0x4edb7e(0x1a8)](LOG_PREFIX3+_0x4edb7e(0x212)+_0x48082b),_0x20b4ef=await resolveEnhancementUrl(_0x41981f,_0x48082b);if(!_0x20b4ef){console[_0x4edb7e(0x232)](LOG_PREFIX3+_0x4edb7e(0x1b6)),state['enabled']=![];return;}}else console[_0x4edb7e(0x1a8)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x20b4ef);persistEnhancement(_0x48082b,_0x20b4ef),window[_0x4edb7e(0x211)]=_0x20b4ef,console['log'](LOG_PREFIX3+'\x20Registering\x20SW\x20with\x20enhancement\x20URL...'),await registerServiceWorker(_0x41981f),console[_0x4edb7e(0x1a8)](LOG_PREFIX3+_0x4edb7e(0x21a)),await loadOverlay({'overlayPath':_0x41981f['overlayPath'],'enableViteHmr':_0x41981f[_0x4edb7e(0x233)][_0x4edb7e(0x21e)],'options':_0x41981f,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x248229,_0x3f21a9){const _0x503369=_0x242565,_0xaa6772=_0x248229[_0x503369(0x1e2)]+_0x503369(0x228)+_0x3f21a9+_0x503369(0x24f);console[_0x503369(0x1a8)](LOG_PREFIX3+_0x503369(0x252)+_0xaa6772);try{const _0x3c2404=await fetch(_0xaa6772,{'headers':{'X-Enhance-Publishable-Key':_0x248229[_0x503369(0x1c2)]}});if(!_0x3c2404['ok']){const _0x144158=await _0x3c2404[_0x503369(0x26f)]();return console['error'](LOG_PREFIX3+_0x503369(0x19a)+_0x3c2404[_0x503369(0x1f6)]+'\x20'+_0x144158),null;}const _0x33f04f=await _0x3c2404['json'](),_0x1aabfe=''+_0x248229['backendUrl']+_0x33f04f[_0x503369(0x225)];return console[_0x503369(0x1a8)](LOG_PREFIX3+_0x503369(0x1b0)+_0x1aabfe),_0x1aabfe;}catch(_0x22ec7f){return console[_0x503369(0x232)](LOG_PREFIX3+'\x20Resolution\x20error:',_0x22ec7f),null;}}function parseEnhancementParams(){const _0x2c8437=_0x242565,_0xf4e08f=new URL(window[_0x2c8437(0x248)][_0x2c8437(0x20b)]),_0x5c5e4d=_0xf4e08f[_0x2c8437(0x27e)][_0x2c8437(0x27d)](_0x2c8437(0x261))?.[_0x2c8437(0x196)](),_0x20ba2d=_0x5c5e4d==='0'||_0x5c5e4d===_0x2c8437(0x269)||_0x5c5e4d===_0x2c8437(0x267);let _0x1bd62c=_0xf4e08f[_0x2c8437(0x27e)][_0x2c8437(0x27d)]('enhancement'),_0x18158d=null;if(_0x1bd62c)try{const _0x3176d1=sessionStorage[_0x2c8437(0x1f3)](STORAGE_KEY_ENHANCEMENT_ID),_0x25f89e=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_URL);_0x3176d1===_0x1bd62c&&_0x25f89e&&(_0x18158d=_0x25f89e,console[_0x2c8437(0x1a8)](LOG_PREFIX3+_0x2c8437(0x257)));}catch{}else try{const _0x47e441=sessionStorage[_0x2c8437(0x1f3)](STORAGE_KEY_ENHANCEMENT_ID),_0x3d47ea=sessionStorage[_0x2c8437(0x1f3)](STORAGE_KEY_ENHANCEMENT_URL);_0x47e441&&_0x3d47ea&&(_0x1bd62c=_0x47e441,_0x18158d=_0x3d47ea,console['log'](LOG_PREFIX3+'\x20Restored\x20enhancement\x20from\x20sessionStorage'),_0xf4e08f['searchParams'][_0x2c8437(0x202)]('enhancement',_0x1bd62c),window[_0x2c8437(0x239)]['replaceState'](null,document[_0x2c8437(0x1d9)],_0xf4e08f['toString']()));}catch{}return{'enhancementId':_0x1bd62c,'cachedUrl':_0x18158d,'explicitDisable':_0x20ba2d};}function persistEnhancement(_0x25b818,_0x1368e2){const _0x5eebe1=_0x242565;try{sessionStorage[_0x5eebe1(0x26a)](STORAGE_KEY_ENHANCEMENT_ID,_0x25b818),sessionStorage[_0x5eebe1(0x26a)](STORAGE_KEY_ENHANCEMENT_URL,_0x1368e2),console[_0x5eebe1(0x1a8)](LOG_PREFIX3+_0x5eebe1(0x20d));}catch{}}function clearPersistedEnhancement(){const _0x129f99=_0x242565;try{sessionStorage[_0x129f99(0x27f)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x129f99(0x27f)](STORAGE_KEY_ENHANCEMENT_URL),console['log'](LOG_PREFIX3+_0x129f99(0x214));}catch{}}function createController(){const _0x3e9e9b=_0x242565,_0xecd055={'enable'(){const _0x4d33c6=_0x54bb,_0x42fcdf=getOptions();if(!_0x42fcdf)return;state[_0x4d33c6(0x1a6)]=!![],void registerServiceWorker(_0x42fcdf),void sendConfiguration(),updateOverlay();},'disable'(){const _0x210a3d=_0x54bb,_0x1bed2e=getOptions();if(!_0x1bed2e)return;state[_0x210a3d(0x1a6)]=![],state[_0x210a3d(0x21c)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x1bed2e['swPath']);},'status'(){const _0x1edf16=_0x54bb;return{'enabled':state[_0x1edf16(0x1a6)],'controlled':state['controlled']};}};return typeof window!==_0x3e9e9b(0x246)&&(window['__enhanceController']=_0xecd055),_0xecd055;}function handleToggle(){const _0x49f3d1=_0x242565,_0xf6cd61=createController();state[_0x49f3d1(0x1a6)]?_0xf6cd61[_0x49f3d1(0x1ec)]():_0xf6cd61[_0x49f3d1(0x272)]();}function _0x5d01(){const _0x569309=['err','--filename\x20<name>','ready','bottom-right','push','\x20loadOverlay()\x20complete','requiredOption','href','enhancement','\x20Persisted\x20enhancement\x20to\x20sessionStorage','init','options','tsc\x20--noEmit','__enhanceResolvedUrl','\x20Resolving\x20enhancement\x20ID:\x20','\x20Starting\x20fresh\x20overlay\x20load...','\x20Cleared\x20persisted\x20enhancement','./dev/cli.js','has','--public-dir\x20<path>','enhance:configure','__viteHMRLoaded','\x20Loading\x20overlay...','base64','controlled','./dev/index.d.ts','enableViteHmr','origin','./dev/index.js','manifestPath','\x20Sending\x20configuration\x20to\x20SW...','skipped','cachedUrl','operatingPath','./dev/vite/index.js','swPath','/public/enhancements/','[data-enhance-runtime-bootstrap]','serviceWorker','bun\x20version\x20patch\x20--no-git-tag-version','explicitDisable','getRegistration','command','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20setupRemoteHMR()\x20for\x20','1782432zjPzkU','error','overlay','\x20Normal\x20mode\x20-\x20no\x20enhancement','now','\x20BLOCKING\x20SW\x20detected:\x20','copyFile','reload','history','\x20Failed\x20to\x20register\x20service\x20worker:','\x20HMR\x20setup\x20complete','\x20registerServiceWorker()\x20called','\x20currentOptions\x20exists:\x20','\x20updateOverlay()\x20called','search','\x20Sending\x20config\x20to\x20SW:','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','publicDir','^7.2.4','scriptURL','undefined','onToggle','location','Enhance\x20sandbox\x20utility\x20CLI','relativeDestination','add','\x20composeOverlayState\x20-\x20state.controlled:\x20','37190610HNmzvW','1708150wWJzwz','/resolve','code','4471113sDDJyV','\x20Calling:\x20',',\x20page\x20origin:\x20','all','\x20→\x20','permissive','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','\x20Page\x20not\x20enhanced\x20-\x20reloading','__enhanceReactRefreshInstalledOrigins','stringify','\x20registerServiceWorker()\x20complete','[Enhance\x20SW-Client]','manifest','postMessage','\x20Enhancement\x20mode\x20-\x20ID:\x20','enhance','0.0.0','https://','\x20Module\x20missing\x20createOverlay\x20export!','some','\x20Current\x20URL:\x20','off','version','false','setItem','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','action','warn','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','text','security','@enhance-eng/sandbox','enable','readFile','http://','enhance-sandbox','\x20Waiting\x20for\x20SW\x20ready...','sha256','__enhanceOverlay','1365438IzBEBh','ENOENT','enhance.enhancementUrl','__development','get','searchParams','removeItem','\x20composeOverlayState\x20-\x20enhancementId:\x20','MIT','...','trim','default','overlayPath','toLowerCase','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','string','\x20Resolution\x20failed:\x20','mkdir','4327168wQxjxp','35nvcqTc','/@react-refresh','startsWith','description','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','controller','update','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','^8.5.1','enabled','\x20(already\x20current)\x20[','log','enableOverlayHmr','assets/enhance-runtime.js','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','unregister','name','\x20Calling\x20createOverlay()...','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Resolved\x20to:\x20','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20overlayController\x20exists:\x20','vite:beforeUpdate','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','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','replaceState','../dist/index.js','includes','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','$RefreshReg$','active','\x20Overlay\x20controller\x20initialized\x20and\x20cached','https://api.enhancelabs.ai','runtimeURL','\x20Controller\x20created:','\x20Importing\x20overlay\x20module\x20from:\x20','publishableKey','info','\x20Module\x20exports:','swFilename','message','waiting','function','installing','\x20Overlay\x20origin:\x20','querySelector','\x20Module\x20imported\x20in\x20','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','register','__vite_plugin_react_preamble_installed__','createOverlay','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Setting\x20up\x20remote\x20HMR...','^11.1.0','\x20Overlay\x20update\x20complete','filename','replace','enhancementId','cwd','title','__enhanceInitialized','Print\x20the\x20current\x20asset\x20manifest','$RefreshSig$','position','__enhanceOptions','/assets/enhance-runtime.js','6646820tTgHGB','vite:error','backendUrl','^24.10.1','public','\x20Calling\x20updateOverlay()...','0.3.22','/@vite/client','\x20loadOverlay()\x20failed:','\x20SW\x20ready','digest','toString','disable','injectIntoGlobalHook','7lVcvco','^3.22.4','./dev/vite/index.d.ts','readyState','stdout','getItem','sourcePath','object','status','\x20Service\x20workers\x20NOT\x20supported','callbackBypass','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20No\x20window\x20object\x20-\x20skipping','appError','option','delete','enhance.enhancementId','\x20init()\x20called\x20at\x20','write','set','\x20Explicit\x20disable\x20-\x20exiting'];_0x5d01=function(){return _0x569309;};return _0x5d01();}function cleanUrlParam(_0x29c065){const _0x11a2be=_0x242565,_0x451b21=new URL(window['location'][_0x11a2be(0x20b)]);_0x451b21['searchParams'][_0x11a2be(0x216)](_0x29c065)&&(_0x451b21[_0x11a2be(0x27e)][_0x11a2be(0x1fe)](_0x29c065),window['history'][_0x11a2be(0x1b7)](null,document[_0x11a2be(0x1d9)],_0x451b21[_0x11a2be(0x1eb)]()));}function setupViteErrorListeners(){const _0x44bfa5=_0x242565;import.meta.hot&&(import.meta.hot['on'](_0x44bfa5(0x1e1),_0x2191e8=>{const _0x18cb10=_0x44bfa5;state[_0x18cb10(0x1fc)]={'message':_0x2191e8[_0x18cb10(0x204)][_0x18cb10(0x1c6)]},updateOverlay();}),import.meta.hot['on'](_0x44bfa5(0x1b4),()=>{const _0x41170e=_0x44bfa5;state['appError']&&(state[_0x41170e(0x1fc)]=null,updateOverlay());}));}var package_default={'name':_0x242565(0x271),'version':_0x242565(0x1e6),'type':'module','description':_0x242565(0x1cd),'license':_0x242565(0x281),'main':'./dev/index.js','module':_0x242565(0x220),'types':_0x242565(0x21d),'exports':{'.':{'types':_0x242565(0x21d),'import':'./dev/index.js'},'./vite':{'types':_0x242565(0x1f0),'import':_0x242565(0x226)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x242565(0x215)},'scripts':{'typecheck':_0x242565(0x210),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x242565(0x26e),'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':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x242565(0x1b2),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','build:release:dev':_0x242565(0x1b5),'version':_0x242565(0x22b)},'dependencies':{'commander':_0x242565(0x1d3),'zod':_0x242565(0x1ef)},'devDependencies':{'@types/node':_0x242565(0x1e3),'javascript-obfuscator':'^4.1.1','tsup':_0x242565(0x1a5),'vite':_0x242565(0x244)},'publishConfig':{'access':_0x242565(0x1e4)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x242565(0x1df),DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH=_0x242565(0x1aa),PACKAGE_VERSION=typeof package_default[_0x242565(0x268)]===_0x242565(0x199)?package_default['version']:_0x242565(0x262);function normalizeAssetPath(_0xff64ad){const _0x4ffcc0=_0x242565;if(!_0xff64ad)return _0xff64ad;if(_0xff64ad['startsWith'](_0x4ffcc0(0x274))||_0xff64ad[_0x4ffcc0(0x19f)](_0x4ffcc0(0x263)))return _0xff64ad;const _0x27b790=_0xff64ad[_0x4ffcc0(0x1d6)](/^\.\//,'');return _0x27b790[_0x4ffcc0(0x19f)]('/')?_0x27b790:'/'+_0x27b790;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x22d940){const _0x4f6e99=_0x242565;return Enhance[_0x4f6e99(0x20e)](_0x22d940);},'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 _0x56e179=_0x242565;return Enhance2[_0x56e179(0x1bf)]();}import{promises as _0x1384dd}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x242565(0x1b8),import.meta.url)));async function syncAssets(_0x52d7db){const _0x5a6627=_0x242565,_0x2a9efe=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x52d7db['swFilename']?'./'+_0x52d7db[_0x5a6627(0x1c5)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x418d8b=[];for(const _0x144e52 of _0x2a9efe){const _0x2c2bdb=cleanRelativePath(_0x144e52['override']??_0x144e52[_0x5a6627(0x221)]),_0xab7ecb=join(distDir,cleanRelativePath(_0x144e52[_0x5a6627(0x1f4)])),_0x507aa6=join(_0x52d7db['publicDir'],_0x2c2bdb),[_0x239e1c,_0x44509b]=await Promise[_0x5a6627(0x254)]([readDigest(_0xab7ecb),readDigest(_0x507aa6)]);if(_0x239e1c&&_0x44509b&&_0x239e1c===_0x44509b){_0x418d8b[_0x5a6627(0x208)]({'sourcePath':_0xab7ecb,'destinationPath':_0x507aa6,'relativeDestination':_0x2c2bdb,'status':'skipped'});continue;}await _0x1384dd[_0x5a6627(0x19b)](dirname(_0x507aa6),{'recursive':!![]}),await _0x1384dd[_0x5a6627(0x237)](_0xab7ecb,_0x507aa6),_0x418d8b['push']({'sourcePath':_0xab7ecb,'destinationPath':_0x507aa6,'relativeDestination':_0x2c2bdb,'status':'copied'});}return _0x418d8b;}function cleanRelativePath(_0x44c310){const _0x32fc2e=_0x242565;return _0x44c310[_0x32fc2e(0x1d6)](/^[./]+/,'');}async function readDigest(_0x2fd276){const _0x3c6ab7=_0x242565;try{const _0x32b78f=await _0x1384dd[_0x3c6ab7(0x273)](_0x2fd276);return createHash(_0x3c6ab7(0x277))[_0x3c6ab7(0x1a3)](_0x32b78f)[_0x3c6ab7(0x1ea)](_0x3c6ab7(0x21b));}catch(_0x5216e9){if(_0x5216e9[_0x3c6ab7(0x250)]===_0x3c6ab7(0x27a))return null;throw _0x5216e9;}}var program=new Command();program[_0x242565(0x1ad)](_0x242565(0x275))[_0x242565(0x1a0)](_0x242565(0x249))[_0x242565(0x268)](_0x242565(0x262)),program[_0x242565(0x22e)](_0x242565(0x25e))[_0x242565(0x1a0)](_0x242565(0x1db))[_0x242565(0x26c)](()=>{const _0x4556f9=_0x242565,_0x20f33b=getAssetManifest();process[_0x4556f9(0x1f2)][_0x4556f9(0x201)](JSON[_0x4556f9(0x25b)](_0x20f33b,null,0x2)+'\x0a');}),program[_0x242565(0x22e)]('prepare-sw')['description'](_0x242565(0x1a1))[_0x242565(0x20a)](_0x242565(0x217),_0x242565(0x1a4))[_0x242565(0x1fd)](_0x242565(0x205),_0x242565(0x258))[_0x242565(0x26c)](async _0x6acb8e=>{const _0x25f22a=_0x242565,_0x3b32ae=resolve(process[_0x25f22a(0x1d8)](),_0x6acb8e[_0x25f22a(0x243)]),_0x25e460=await syncAssets({'publicDir':_0x3b32ae,'swFilename':_0x6acb8e[_0x25f22a(0x1d5)]});for(const _0x358cb0 of _0x25e460){const _0x59e926=relative(process[_0x25f22a(0x1d8)](),_0x358cb0['destinationPath']);_0x358cb0[_0x25f22a(0x1f6)]===_0x25f22a(0x223)?process['stdout'][_0x25f22a(0x201)]('Skipped\x20'+_0x358cb0[_0x25f22a(0x24a)]+_0x25f22a(0x1a7)+_0x59e926+']\x0a'):process['stdout']['write']('Copied\x20'+_0x358cb0['relativeDestination']+_0x25f22a(0x255)+_0x59e926+'\x0a');}}),program['parseAsync']();
|
|
3
|
+
const _0x5538ec=_0xe276;(function(_0x149f8e,_0x48bd13){const _0x390129=_0xe276,_0x1a6a5a=_0x149f8e();while(!![]){try{const _0x6590b3=-parseInt(_0x390129(0xd0))/0x1*(parseInt(_0x390129(0xa9))/0x2)+parseInt(_0x390129(0x11c))/0x3+-parseInt(_0x390129(0x124))/0x4*(parseInt(_0x390129(0x11e))/0x5)+parseInt(_0x390129(0xa0))/0x6+-parseInt(_0x390129(0xed))/0x7*(-parseInt(_0x390129(0xa5))/0x8)+-parseInt(_0x390129(0x10a))/0x9*(parseInt(_0x390129(0x15d))/0xa)+parseInt(_0x390129(0x138))/0xb;if(_0x6590b3===_0x48bd13)break;else _0x1a6a5a['push'](_0x1a6a5a['shift']());}catch(_0x19cf41){_0x1a6a5a['push'](_0x1a6a5a['shift']());}}}(_0x5a2f,0x4556f));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x5538ec(0x94),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x5538ec(0xc1)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x5538ec(0x104),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x5538ec(0xc1)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x5538ec(0x11d)](_0x5538ec(0x9b),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x4ecae4){const _0xcd8076=_0x5538ec;if(!_0x4ecae4['publishableKey'])throw new Error(_0xcd8076(0x117));const _0x477769=_0x4ecae4[_0xcd8076(0x9f)]??{};return{'publishableKey':_0x4ecae4[_0xcd8076(0x82)],'callbackBypass':_0x4ecae4['callbackBypass']??[],'overlay':{'enabled':!![],'position':_0xcd8076(0x168),'enableViteHmr':_0x477769[_0xcd8076(0x158)]??DEFAULT_OVERLAY_HMR},'logLevel':_0xcd8076(0x15f),'swPath':_0xcd8076(0x130),'overlayPath':_0x477769[_0xcd8076(0xd5)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0xcd8076(0xa4),'security':_0x477769['security']??_0xcd8076(0xa7),'backendUrl':_0x477769[_0xcd8076(0x115)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x608948=_0x5538ec;try{const _0x5ea344=new URLSearchParams(window[_0x608948(0xcd)]['search']);return _0x5ea344[_0x608948(0xcc)](_0x608948(0xfe))?.[_0x608948(0xd1)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0xf76d3f){const _0x345b8f=_0x5538ec;console[_0x345b8f(0x11d)](LOG_PREFIX+_0x345b8f(0x123)),console['log'](LOG_PREFIX+'\x20overlayPath:\x20'+_0xf76d3f[_0x345b8f(0xd5)]),console[_0x345b8f(0x11d)](LOG_PREFIX+_0x345b8f(0x155)+_0xf76d3f[_0x345b8f(0x14e)]),currentOptions=_0xf76d3f['options'],toggleHandler=_0xf76d3f[_0x345b8f(0x84)];if(overlayController){console[_0x345b8f(0x11d)](LOG_PREFIX+_0x345b8f(0x11a)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x345b8f(0x99)),overlayLoadPromise;console[_0x345b8f(0x11d)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0xf76d3f);try{await overlayLoadPromise,console[_0x345b8f(0x11d)](LOG_PREFIX+_0x345b8f(0x119));}catch(_0x27e07f){console['error'](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x27e07f);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x19675e){const _0x1c7ccc=_0x5538ec;console[_0x1c7ccc(0x11d)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window==='undefined'){console[_0x1c7ccc(0x11d)](LOG_PREFIX+_0x1c7ccc(0xde));return;}if(window[_0x1c7ccc(0x129)]){console[_0x1c7ccc(0x11d)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x1c7ccc(0x129)];return;}console[_0x1c7ccc(0x11d)](LOG_PREFIX+_0x1c7ccc(0x14a));try{_0x19675e[_0x1c7ccc(0x14e)]&&(console[_0x1c7ccc(0x11d)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x19675e['overlayPath']));console[_0x1c7ccc(0x11d)](LOG_PREFIX+_0x1c7ccc(0x85)+_0x19675e[_0x1c7ccc(0xd5)]);const _0x5c8eb6=Date[_0x1c7ccc(0x8e)](),_0x40b52e=await import(_0x19675e[_0x1c7ccc(0xd5)]);console[_0x1c7ccc(0x11d)](LOG_PREFIX+_0x1c7ccc(0xef)+(Date[_0x1c7ccc(0x8e)]()-_0x5c8eb6)+'ms'),console[_0x1c7ccc(0x11d)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x1c7ccc(0x12f)](_0x40b52e));if(typeof _0x40b52e?.[_0x1c7ccc(0x154)]!=='function'){console[_0x1c7ccc(0x164)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x1c7ccc(0x164)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x1c7ccc(0x12f)](_0x40b52e));return;}console['log'](LOG_PREFIX+_0x1c7ccc(0xb6));const _0x353df1=_0x40b52e[_0x1c7ccc(0x154)]();console[_0x1c7ccc(0x11d)](LOG_PREFIX+_0x1c7ccc(0xab),_0x353df1),overlayController=_0x353df1,window['__enhanceOverlay']=_0x353df1,_0x353df1[_0x1c7ccc(0x84)](_0x19675e['onToggle']),console[_0x1c7ccc(0x11d)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x1c7ccc(0x11d)](LOG_PREFIX+_0x1c7ccc(0x98)),updateOverlay();}catch(_0x49b94d){console[_0x1c7ccc(0x164)](LOG_PREFIX+_0x1c7ccc(0x92),_0x49b94d);}}function updateOverlay(){const _0x4e02e4=_0x5538ec;console[_0x4e02e4(0x11d)](LOG_PREFIX+_0x4e02e4(0xff)),console['log'](LOG_PREFIX+_0x4e02e4(0x12a)+!!overlayController),console[_0x4e02e4(0x11d)](LOG_PREFIX+_0x4e02e4(0xb0)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x4e02e4(0x11d)](LOG_PREFIX+_0x4e02e4(0x14c));return;}const _0x3de5f5=composeOverlayState(currentOptions);console[_0x4e02e4(0x11d)](LOG_PREFIX+_0x4e02e4(0x14d),JSON[_0x4e02e4(0xa3)](_0x3de5f5,null,0x2)),overlayController['update'](_0x3de5f5),console['log'](LOG_PREFIX+_0x4e02e4(0xd2));}function composeOverlayState(_0x14c40e){const _0x11a01e=_0x5538ec,_0x322800=getEnhancementId();return console[_0x11a01e(0x11d)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x322800),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state['enabled']),console[_0x11a01e(0x11d)](LOG_PREFIX+_0x11a01e(0x9d)+state[_0x11a01e(0x125)]),{'enhancementId':_0x322800,'enabled':state[_0x11a01e(0x7a)],'controlled':state[_0x11a01e(0x125)],'overlayPosition':_0x14c40e['overlay'][_0x11a01e(0xec)],'securityMode':_0x14c40e[_0x11a01e(0x148)],'backendBaseUrl':_0x14c40e[_0x11a01e(0x115)],'appError':state[_0x11a01e(0x89)]};}async function setupRemoteHMR(_0x5efd9a){const _0x59d4f1=_0x5538ec;console['log'](LOG_PREFIX+_0x59d4f1(0x169)+_0x5efd9a);if(typeof window===_0x59d4f1(0xc1))return;try{const _0x4bb4fc=new URL(_0x5efd9a,window[_0x59d4f1(0xcd)][_0x59d4f1(0x9c)]),_0xff4d16=_0x4bb4fc['origin'];console['log'](LOG_PREFIX+_0x59d4f1(0x8f)+_0xff4d16+_0x59d4f1(0x11f)+window[_0x59d4f1(0xcd)]['origin']);if(_0xff4d16===window['location'][_0x59d4f1(0x9c)]){console[_0x59d4f1(0x11d)](LOG_PREFIX+_0x59d4f1(0xc0));return;}console['log'](LOG_PREFIX+_0x59d4f1(0x128)),await ensureReactRefreshPreamble(_0xff4d16),await ensureViteClient(_0xff4d16),console[_0x59d4f1(0x11d)](LOG_PREFIX+_0x59d4f1(0xf4));}catch(_0x4be0a1){console[_0x59d4f1(0xda)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x4be0a1);}}async function ensureReactRefreshPreamble(_0x428e62){const _0x2daf0a=_0x5538ec;window[_0x2daf0a(0x88)]??=new Set();if(window[_0x2daf0a(0x88)][_0x2daf0a(0x15b)](_0x428e62)){console['log'](LOG_PREFIX+_0x2daf0a(0xdb)+_0x428e62);return;}console['log'](LOG_PREFIX+_0x2daf0a(0x8c)+_0x428e62+'...');const _0x4c38a5=await import(_0x428e62+'/@react-refresh'),_0x1a3e1f=_0x4c38a5&&typeof _0x4c38a5===_0x2daf0a(0x162)&&_0x2daf0a(0xaa)in _0x4c38a5?_0x4c38a5[_0x2daf0a(0xaa)]:_0x4c38a5;if(!isRefreshRuntime(_0x1a3e1f)){console['warn'](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x1a3e1f['injectIntoGlobalHook'](window),window[_0x2daf0a(0xcb)]=()=>{},window[_0x2daf0a(0x160)]=()=>_0x1d1e5e=>_0x1d1e5e,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x2daf0a(0x88)][_0x2daf0a(0xc3)](_0x428e62),console[_0x2daf0a(0x11d)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x428e62);}async function ensureViteClient(_0x449591){const _0x8a39d6=_0x5538ec;window[_0x8a39d6(0x144)]??=new Set();if(window['__viteHMRLoaded'][_0x8a39d6(0x15b)](_0x449591)){console[_0x8a39d6(0x11d)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x449591);return;}console[_0x8a39d6(0x11d)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x449591+_0x8a39d6(0x97)),await import(_0x449591+_0x8a39d6(0x93)),window[_0x8a39d6(0x144)][_0x8a39d6(0xc3)](_0x449591),console[_0x8a39d6(0x11d)](LOG_PREFIX+_0x8a39d6(0x107)+_0x449591);}function isRefreshRuntime(_0x3b2e23){const _0x506a4b=_0x5538ec;return typeof _0x3b2e23===_0x506a4b(0x162)&&_0x3b2e23!==null&&_0x506a4b(0xd8)in _0x3b2e23&&typeof _0x3b2e23[_0x506a4b(0xd8)]===_0x506a4b(0x108);}var WORKER_MESSAGE_CONFIG=_0x5538ec(0x7c),WORKER_MESSAGE_DISABLE=_0x5538ec(0xf5),LOG_PREFIX2=_0x5538ec(0xc2),registration=null,currentOptions2=null;function _0xe276(_0x39b699,_0x4f96b5){_0x39b699=_0x39b699-0x78;const _0x5a2f54=_0x5a2f();let _0xe27621=_0x5a2f54[_0x39b699];return _0xe27621;}async function registerServiceWorker(_0x7324e5){const _0xc59aa6=_0x5538ec;console[_0xc59aa6(0x11d)](LOG_PREFIX2+_0xc59aa6(0xe6));if(!(_0xc59aa6(0x103)in navigator)){console['warn'](LOG_PREFIX2+_0xc59aa6(0x95));return;}const _0x43e069=!!navigator[_0xc59aa6(0x103)][_0xc59aa6(0xac)];currentOptions2=_0x7324e5;const _0x27a0b9=await detectBlockingServiceWorker(_0x7324e5[_0xc59aa6(0xfc)]);if(_0x27a0b9){console[_0xc59aa6(0x164)](LOG_PREFIX2+_0xc59aa6(0x126)+_0x27a0b9);return;}try{console[_0xc59aa6(0x11d)](LOG_PREFIX2+_0xc59aa6(0x147)+_0x7324e5[_0xc59aa6(0xfc)]+_0xc59aa6(0x97)),registration=await navigator[_0xc59aa6(0x103)][_0xc59aa6(0x86)](_0x7324e5[_0xc59aa6(0xfc)],{'scope':'/'}),console[_0xc59aa6(0x11d)](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator[_0xc59aa6(0x103)][_0xc59aa6(0x13b)],console[_0xc59aa6(0x11d)](LOG_PREFIX2+_0xc59aa6(0x135)),state[_0xc59aa6(0x125)]=ownsCurrentController(_0x7324e5[_0xc59aa6(0xfc)]);if(!_0x43e069&&!navigator['serviceWorker'][_0xc59aa6(0xac)]){console[_0xc59aa6(0x11d)](LOG_PREFIX2+_0xc59aa6(0x143)),window[_0xc59aa6(0xcd)][_0xc59aa6(0x8b)]();return;}console[_0xc59aa6(0x11d)](LOG_PREFIX2+_0xc59aa6(0xad)),await sendConfiguration();if(state[_0xc59aa6(0x7a)]){const _0x428576=document[_0xc59aa6(0xd3)](_0xc59aa6(0xbb))!==null;if(!_0x428576){console[_0xc59aa6(0x11d)](LOG_PREFIX2+_0xc59aa6(0x12d)),window[_0xc59aa6(0xcd)][_0xc59aa6(0x8b)]();return;}}updateOverlay(),console[_0xc59aa6(0x11d)](LOG_PREFIX2+_0xc59aa6(0xb1));}catch(_0x3e3f03){console['error'](LOG_PREFIX2+_0xc59aa6(0xee),_0x3e3f03);}}async function sendConfiguration(){const _0x293176=_0x5538ec;if(!state['enabled']||!currentOptions2)return;const _0x3a759c=await resolveWorker();if(!_0x3a759c){console[_0x293176(0xda)](LOG_PREFIX2+_0x293176(0x134));return;}const _0x4d5caa=window['__enhanceResolvedUrl']??null,_0xef3174={'publishableKey':currentOptions2[_0x293176(0x82)],'callbackBypass':currentOptions2[_0x293176(0x87)],'securityMode':currentOptions2[_0x293176(0x148)],'enhancementUrl':_0x4d5caa??void 0x0};console[_0x293176(0x11d)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON[_0x293176(0xa3)](_0xef3174,null,0x2)),_0x3a759c[_0x293176(0xf9)]({'type':WORKER_MESSAGE_CONFIG,'config':_0xef3174});}async function unregisterServiceWorker(_0x36f00b){const _0x419505=_0x5538ec;console[_0x419505(0x11d)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x419505(0x103)in navigator))return;try{const _0x21f181=registration??await navigator['serviceWorker'][_0x419505(0x12c)]('/');if(!_0x21f181)return;const _0x111510=[_0x21f181['active']?.[_0x419505(0x10c)],_0x21f181['waiting']?.[_0x419505(0x10c)],_0x21f181[_0x419505(0x105)]?.['scriptURL']],_0x35ce0a=_0x111510[_0x419505(0x79)](_0x149fe6=>_0x149fe6&&ownsServiceWorker(_0x149fe6,_0x36f00b));if(!_0x35ce0a)return;_0x21f181[_0x419505(0xe8)]&&_0x21f181[_0x419505(0xe8)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x21f181[_0x419505(0xf2)](),registration=null,currentOptions2=null,console[_0x419505(0x11d)](LOG_PREFIX2+_0x419505(0x13d));}catch(_0x4d5230){console[_0x419505(0x164)](LOG_PREFIX2+_0x419505(0x101),_0x4d5230);}}function ownsServiceWorker(_0x169b4b,_0x2d85c0){const _0x135568=_0x5538ec,_0x5c0070=typeof window!=='undefined'?window[_0x135568(0xcd)][_0x135568(0x9c)]:'',_0x33cf4c=new URL(_0x2d85c0,_0x5c0070||void 0x0)[_0x135568(0x142)];return _0x169b4b===_0x33cf4c||_0x169b4b[_0x135568(0x83)]('sw-enhance');}function ownsCurrentController(_0x1919fb){const _0x460d64=_0x5538ec,_0x5ac41c=navigator[_0x460d64(0x103)]?.[_0x460d64(0xac)];if(!_0x5ac41c)return![];return ownsServiceWorker(_0x5ac41c[_0x460d64(0x10c)],_0x1919fb);}async function detectBlockingServiceWorker(_0x530a1a){const _0x4a29cd=_0x5538ec;if(!navigator['serviceWorker'])return null;try{const _0xcf77c6=await navigator[_0x4a29cd(0x103)]['getRegistration']('/'),_0x48173d=_0xcf77c6?.[_0x4a29cd(0xe8)]?.[_0x4a29cd(0x10c)];if(!_0x48173d)return null;if(ownsServiceWorker(_0x48173d,_0x530a1a))return null;return _0x48173d;}catch{return null;}}async function resolveWorker(){const _0x2aa804=_0x5538ec,_0x4a5bc6=registration??await navigator[_0x2aa804(0x103)]?.[_0x2aa804(0x12c)]('/');return _0x4a5bc6?.[_0x2aa804(0xe8)]??_0x4a5bc6?.[_0x2aa804(0x78)]??_0x4a5bc6?.[_0x2aa804(0x105)]??null;}var LOG_PREFIX3='[Enhance\x20Runtime]',STORAGE_KEY_ENHANCEMENT_ID=_0x5538ec(0x8d),STORAGE_KEY_ENHANCEMENT_URL=_0x5538ec(0xfb);function isInitialized(){const _0x545db1=_0x5538ec;return typeof window!==_0x545db1(0xc1)&&window[_0x545db1(0x13c)]===!![];}function setInitialized(_0x1407d1){const _0x19d21f=_0x5538ec;typeof window!==_0x19d21f(0xc1)&&(window[_0x19d21f(0x13c)]=_0x1407d1);}function getOptions(){const _0x2e4b9c=_0x5538ec;return typeof window!==_0x2e4b9c(0xc1)?window[_0x2e4b9c(0xb8)]??null:null;}function setOptions(_0x1835b7){const _0x59fe6a=_0x5538ec;typeof window!==_0x59fe6a(0xc1)&&(window[_0x59fe6a(0xb8)]=_0x1835b7);}var Enhance={'init'(_0x24c9e5){const _0xeddcc5=_0x5538ec,_0x262999=Date['now']();console[_0xeddcc5(0x11d)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x262999),console[_0xeddcc5(0x11d)](LOG_PREFIX3+_0xeddcc5(0xf1)+window[_0xeddcc5(0xcd)]['href']),console['log'](LOG_PREFIX3+_0xeddcc5(0x106)+document['readyState']);if(isInitialized())return console['warn'](LOG_PREFIX3+_0xeddcc5(0x111)),window[_0xeddcc5(0x9e)]??createController();setInitialized(!![]);const _0xe22fa3=normalizeOptions(_0x24c9e5);setOptions(_0xe22fa3);const _0xba167c=parseEnhancementParams();console['log'](LOG_PREFIX3+_0xeddcc5(0xe7),JSON[_0xeddcc5(0xa3)](_0xba167c,null,0x2));if(_0xba167c[_0xeddcc5(0x8a)])return cleanUrlParam(_0xeddcc5(0x152)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+'\x20Explicit\x20disable\x20-\x20exiting'),createController();if(!_0xba167c[_0xeddcc5(0xc7)])return console[_0xeddcc5(0x11d)](LOG_PREFIX3+_0xeddcc5(0x161)),void unregisterServiceWorker(_0xe22fa3[_0xeddcc5(0xfc)]),setupViteErrorListeners(),createController();return console[_0xeddcc5(0x11d)](LOG_PREFIX3+_0xeddcc5(0xd4)+_0xba167c[_0xeddcc5(0xc7)]),state[_0xeddcc5(0x7a)]=!![],void initializeEnhancement(_0xe22fa3,_0xba167c[_0xeddcc5(0xc7)],_0xba167c[_0xeddcc5(0xb9)]),createController();}};async function initializeEnhancement(_0x3a612f,_0x45d815,_0x250be5){const _0x8211ef=_0x5538ec;let _0x5b5429=_0x250be5;if(!_0x5b5429){console[_0x8211ef(0x11d)](LOG_PREFIX3+_0x8211ef(0x96)+_0x45d815),_0x5b5429=await resolveEnhancementUrl(_0x3a612f,_0x45d815);if(!_0x5b5429){console[_0x8211ef(0x164)](LOG_PREFIX3+_0x8211ef(0xd6)),state[_0x8211ef(0x7a)]=![];return;}}else console[_0x8211ef(0x11d)](LOG_PREFIX3+_0x8211ef(0xf7)+_0x5b5429);persistEnhancement(_0x45d815,_0x5b5429),window[_0x8211ef(0x127)]=_0x5b5429,console['log'](LOG_PREFIX3+_0x8211ef(0xce)),await registerServiceWorker(_0x3a612f),console['log'](LOG_PREFIX3+_0x8211ef(0x114)),await loadOverlay({'overlayPath':_0x3a612f[_0x8211ef(0xd5)],'enableViteHmr':_0x3a612f[_0x8211ef(0x120)]['enableViteHmr'],'options':_0x3a612f,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x1ef471,_0x42cd02){const _0x5df3ad=_0x5538ec,_0x437b75=_0x1ef471[_0x5df3ad(0x115)]+_0x5df3ad(0x9a)+_0x42cd02+_0x5df3ad(0x132);console['log'](LOG_PREFIX3+_0x5df3ad(0x16a)+_0x437b75);try{const _0x58ff17=await fetch(_0x437b75,{'headers':{'X-Enhance-Publishable-Key':_0x1ef471[_0x5df3ad(0x82)]}});if(!_0x58ff17['ok']){const _0x191381=await _0x58ff17[_0x5df3ad(0x12e)]();return console['error'](LOG_PREFIX3+_0x5df3ad(0xa6)+_0x58ff17[_0x5df3ad(0x153)]+'\x20'+_0x191381),null;}const _0xc4ed57=await _0x58ff17['json'](),_0x445125=''+_0x1ef471['backendUrl']+_0xc4ed57[_0x5df3ad(0xdd)];return console['log'](LOG_PREFIX3+_0x5df3ad(0xe9)+_0x445125),_0x445125;}catch(_0x3159d6){return console['error'](LOG_PREFIX3+_0x5df3ad(0x10d),_0x3159d6),null;}}function parseEnhancementParams(){const _0x1f4bce=_0x5538ec,_0xdede23=new URL(window[_0x1f4bce(0xcd)][_0x1f4bce(0x142)]),_0x3e65be=_0xdede23['searchParams'][_0x1f4bce(0xcc)](_0x1f4bce(0x152))?.['toLowerCase'](),_0x379a76=_0x3e65be==='0'||_0x3e65be==='false'||_0x3e65be===_0x1f4bce(0x109);let _0x3f3165=_0xdede23[_0x1f4bce(0x163)][_0x1f4bce(0xcc)](_0x1f4bce(0xfe)),_0x183511=null;if(_0x3f3165)try{const _0x44ef56=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x18163d=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_URL);_0x44ef56===_0x3f3165&&_0x18163d&&(_0x183511=_0x18163d,console['log'](LOG_PREFIX3+_0x1f4bce(0xe0)));}catch{}else try{const _0x4102c6=sessionStorage[_0x1f4bce(0x13f)](STORAGE_KEY_ENHANCEMENT_ID),_0x38b041=sessionStorage[_0x1f4bce(0x13f)](STORAGE_KEY_ENHANCEMENT_URL);_0x4102c6&&_0x38b041&&(_0x3f3165=_0x4102c6,_0x183511=_0x38b041,console[_0x1f4bce(0x11d)](LOG_PREFIX3+_0x1f4bce(0x166)),_0xdede23[_0x1f4bce(0x163)][_0x1f4bce(0xcf)](_0x1f4bce(0xfe),_0x3f3165),window[_0x1f4bce(0xb5)][_0x1f4bce(0xf6)](null,document[_0x1f4bce(0xd7)],_0xdede23[_0x1f4bce(0xe2)]()));}catch{}return{'enhancementId':_0x3f3165,'cachedUrl':_0x183511,'explicitDisable':_0x379a76};}function persistEnhancement(_0x468efd,_0x477d11){const _0x4eb2f2=_0x5538ec;try{sessionStorage[_0x4eb2f2(0x121)](STORAGE_KEY_ENHANCEMENT_ID,_0x468efd),sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_URL,_0x477d11),console['log'](LOG_PREFIX3+'\x20Persisted\x20enhancement\x20to\x20sessionStorage');}catch{}}function clearPersistedEnhancement(){const _0x51975a=_0x5538ec;try{sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x51975a(0xeb)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x51975a(0x11d)](LOG_PREFIX3+'\x20Cleared\x20persisted\x20enhancement');}catch{}}function createController(){const _0x53106a=_0x5538ec,_0xb53794={'enable'(){const _0x47580f=_0xe276,_0xce3552=getOptions();if(!_0xce3552)return;state[_0x47580f(0x7a)]=!![],void registerServiceWorker(_0xce3552),void sendConfiguration(),updateOverlay();},'disable'(){const _0x3a0cf8=_0xe276,_0x33cea9=getOptions();if(!_0x33cea9)return;state[_0x3a0cf8(0x7a)]=![],state[_0x3a0cf8(0x125)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x33cea9[_0x3a0cf8(0xfc)]);},'status'(){const _0x4d9bde=_0xe276;return{'enabled':state[_0x4d9bde(0x7a)],'controlled':state['controlled']};}};return typeof window!==_0x53106a(0xc1)&&(window[_0x53106a(0x9e)]=_0xb53794),_0xb53794;}function handleToggle(){const _0x5d691d=_0x5538ec,_0x271d2d=createController();state[_0x5d691d(0x7a)]?_0x271d2d[_0x5d691d(0xf0)]():_0x271d2d[_0x5d691d(0x10e)]();}function cleanUrlParam(_0x49e8e2){const _0xa8338f=_0x5538ec,_0x54a213=new URL(window[_0xa8338f(0xcd)]['href']);_0x54a213[_0xa8338f(0x163)]['has'](_0x49e8e2)&&(_0x54a213[_0xa8338f(0x163)]['delete'](_0x49e8e2),window[_0xa8338f(0xb5)][_0xa8338f(0xf6)](null,document[_0xa8338f(0xd7)],_0x54a213[_0xa8338f(0xe2)]()));}function setupViteErrorListeners(){const _0x5cbb3e=_0x5538ec;import.meta.hot&&(import.meta.hot['on'](_0x5cbb3e(0x15c),_0x40f5ed=>{const _0x4c396e=_0x5cbb3e;state[_0x4c396e(0x89)]={'message':_0x40f5ed[_0x4c396e(0x80)][_0x4c396e(0x13e)]},updateOverlay();}),import.meta.hot['on'](_0x5cbb3e(0xfd),()=>{const _0x1857a0=_0x5cbb3e;state[_0x1857a0(0x89)]&&(state[_0x1857a0(0x89)]=null,updateOverlay());}));}var package_default={'name':_0x5538ec(0xe4),'version':'0.3.22','type':_0x5538ec(0x113),'description':_0x5538ec(0x7f),'license':_0x5538ec(0xb4),'main':_0x5538ec(0x156),'module':_0x5538ec(0x156),'types':_0x5538ec(0xdf),'exports':{'.':{'types':'./dev/index.d.ts','import':_0x5538ec(0x156)},'./vite':{'types':'./dev/vite/index.d.ts','import':_0x5538ec(0xbe)}},'files':[_0x5538ec(0xae)],'bin':{'enhance-sandbox':_0x5538ec(0x150)},'scripts':{'typecheck':_0x5538ec(0x116),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x5538ec(0xa2),'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':_0x5538ec(0x7d),'build':_0x5538ec(0xe3),'build:release':_0x5538ec(0x157),'build:release:dev':_0x5538ec(0x100),'version':_0x5538ec(0x81)},'dependencies':{'commander':'^11.1.0','zod':'^3.22.4'},'devDependencies':{'@types/node':_0x5538ec(0x136),'javascript-obfuscator':_0x5538ec(0xb2),'tsup':_0x5538ec(0x133),'vite':_0x5538ec(0xc5)},'publishConfig':{'access':_0x5538ec(0xa8)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x5538ec(0x14f),DIST_RUNTIME_PATH='assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x5538ec(0x102)]==='string'?package_default[_0x5538ec(0x102)]:_0x5538ec(0xe1);function normalizeAssetPath(_0x201997){const _0x1edde7=_0x5538ec;if(!_0x201997)return _0x201997;if(_0x201997['startsWith'](_0x1edde7(0xc9))||_0x201997[_0x1edde7(0x137)](_0x1edde7(0x7e)))return _0x201997;const _0x5de504=_0x201997[_0x1edde7(0x110)](/^\.\//,'');return _0x5de504[_0x1edde7(0x137)]('/')?_0x5de504:'/'+_0x5de504;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x188cb3){const _0x18372=_0x5538ec;return Enhance[_0x18372(0xca)](_0x188cb3);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function _0x5a2f(){const _0x360c5d=['\x20Service\x20workers\x20NOT\x20supported','\x20Resolving\x20enhancement\x20ID:\x20','...','\x20Calling\x20updateOverlay()...','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','/public/enhancements/','[Enhance\x20Config]\x20Build-time\x20defaults:','origin','\x20composeOverlayState\x20-\x20state.controlled:\x20','__enhanceController','__development','2472852iSEpVR','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','stringify','/assets/enhance-runtime.js','8tbnBeV','\x20Resolution\x20failed:\x20','permissive','public','12158CtQLzq','default','\x20Controller\x20created:','controller','\x20Sending\x20configuration\x20to\x20SW...','dev/','stdout','\x20currentOptions\x20exists:\x20','\x20registerServiceWorker()\x20complete','^4.1.1','digest','MIT','history','\x20Calling\x20createOverlay()...','Print\x20the\x20current\x20asset\x20manifest','__enhanceOptions','cachedUrl','\x20(already\x20current)\x20[','[data-enhance-runtime-bootstrap]','cwd','copied','./dev/vite/index.js','enhance-sandbox','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','undefined','[Enhance\x20SW-Client]','add','update','^7.2.4','relativeDestination','enhancementId','code','http://','init','$RefreshReg$','get','location','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','set','47TQSdVb','trim','\x20Overlay\x20update\x20complete','querySelector','\x20Enhancement\x20mode\x20-\x20ID:\x20','overlayPath','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','title','injectIntoGlobalHook','name','warn','\x20React\x20Refresh\x20already\x20installed\x20for\x20','serviceWorkerURL','operatingPath','\x20No\x20window\x20object\x20-\x20skipping','./dev/index.d.ts','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','0.0.0','toString','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','@enhance-eng/sandbox','base64','\x20registerServiceWorker()\x20called','\x20Enhancement\x20params:','active','\x20Resolved\x20to:\x20','Copied\x20','removeItem','position','1728209RCuJlv','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Module\x20imported\x20in\x20','disable','\x20Current\x20URL:\x20','unregister','prepare-sw','\x20HMR\x20setup\x20complete','enhance:disable','replaceState','\x20Using\x20cached\x20enhancement\x20URL:\x20','manifest','postMessage','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','enhance.enhancementUrl','swPath','vite:beforeUpdate','enhancement','\x20updateOverlay()\x20called','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','\x20Failed\x20to\x20unregister\x20service\x20worker:','version','serviceWorker','https://api.enhancelabs.ai','installing','\x20Document\x20readyState:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','function','off','487926wBMGNq','push','scriptURL','\x20Resolution\x20error:','enable','filename','replace','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','parseAsync','module','\x20Loading\x20overlay...','backendUrl','tsc\x20--noEmit','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','command','\x20loadOverlay()\x20complete','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','requiredOption','872979DwcvAw','log','20GYZHpJ',',\x20page\x20origin:\x20','overlay','setItem','all','\x20loadOverlay()\x20called','343336TkwIMt','controlled','\x20BLOCKING\x20SW\x20detected:\x20','__enhanceResolvedUrl','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','__enhanceOverlay','\x20overlayController\x20exists:\x20','--filename\x20<name>','getRegistration','\x20Page\x20not\x20enhanced\x20-\x20reloading','text','keys','/sw-enhance.js','skipped','/resolve','^8.5.1','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20SW\x20ready','^24.10.1','startsWith','1382524FgxfXv','copyFile','manifestPath','ready','__enhanceInitialized','\x20SW\x20unregistered','message','getItem','action','--public-dir\x20<path>','href','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','__viteHMRLoaded','description','Enhance\x20sandbox\x20utility\x20CLI','\x20Registering\x20SW\x20at\x20','security','../dist/index.js','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','option','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Updating\x20overlay\x20with\x20state:','enableViteHmr','sw-enhance.js','./dev/cli.js','destinationPath','enhance','status','createOverlay','\x20enableViteHmr:\x20','./dev/index.js','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','enableOverlayHmr','publicDir','override','has','vite:error','30vXHnon','readFile','info','$RefreshSig$','\x20Normal\x20mode\x20-\x20no\x20enhancement','object','searchParams','error','swFilename','\x20Restored\x20enhancement\x20from\x20sessionStorage','write','bottom-right','\x20setupRemoteHMR()\x20for\x20','\x20Calling:\x20','waiting','some','enabled','Skipped\x20','enhance:configure','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','https://','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','err','bun\x20version\x20patch\x20--no-git-tag-version','publishableKey','includes','onToggle','\x20Importing\x20overlay\x20module\x20from:\x20','register','callbackBypass','__enhanceReactRefreshInstalledOrigins','appError','explicitDisable','reload','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','enhance.enhancementId','now','\x20Overlay\x20origin:\x20','mkdir','sourcePath','\x20Failed\x20to\x20import/create\x20overlay:','/@vite/client','https://assets.enhancelabs.ai/overlay.js'];_0x5a2f=function(){return _0x360c5d;};return _0x5a2f();}function serviceWorkerURL(){const _0x309931=_0x5538ec;return Enhance2[_0x309931(0xdc)]();}function runtimeURL(){return Enhance2['runtimeURL']();}import{promises as _0x349840}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x5538ec(0x149),import.meta.url)));async function syncAssets(_0x1d7f71){const _0xfba1b2=_0x5538ec,_0x5e832c=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x1d7f71[_0xfba1b2(0x165)]?'./'+_0x1d7f71['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x2e8631=[];for(const _0x28539f of _0x5e832c){const _0x44830b=cleanRelativePath(_0x28539f[_0xfba1b2(0x15a)]??_0x28539f[_0xfba1b2(0x13a)]),_0x105067=join(distDir,cleanRelativePath(_0x28539f[_0xfba1b2(0x91)])),_0x3c5c99=join(_0x1d7f71[_0xfba1b2(0x159)],_0x44830b),[_0x5e39f4,_0x4bb2b2]=await Promise[_0xfba1b2(0x122)]([readDigest(_0x105067),readDigest(_0x3c5c99)]);if(_0x5e39f4&&_0x4bb2b2&&_0x5e39f4===_0x4bb2b2){_0x2e8631[_0xfba1b2(0x10b)]({'sourcePath':_0x105067,'destinationPath':_0x3c5c99,'relativeDestination':_0x44830b,'status':_0xfba1b2(0x131)});continue;}await _0x349840[_0xfba1b2(0x90)](dirname(_0x3c5c99),{'recursive':!![]}),await _0x349840[_0xfba1b2(0x139)](_0x105067,_0x3c5c99),_0x2e8631[_0xfba1b2(0x10b)]({'sourcePath':_0x105067,'destinationPath':_0x3c5c99,'relativeDestination':_0x44830b,'status':_0xfba1b2(0xbd)});}return _0x2e8631;}function cleanRelativePath(_0x1b8903){const _0x38ce34=_0x5538ec;return _0x1b8903[_0x38ce34(0x110)](/^[./]+/,'');}async function readDigest(_0x298b6e){const _0xcd7475=_0x5538ec;try{const _0x985e38=await _0x349840[_0xcd7475(0x15e)](_0x298b6e);return createHash('sha256')[_0xcd7475(0xc4)](_0x985e38)[_0xcd7475(0xb3)](_0xcd7475(0xe5));}catch(_0x2dd10c){if(_0x2dd10c[_0xcd7475(0xc8)]==='ENOENT')return null;throw _0x2dd10c;}}var program=new Command();program[_0x5538ec(0xd9)](_0x5538ec(0xbf))['description'](_0x5538ec(0x146))['version']('0.0.0'),program[_0x5538ec(0x118)](_0x5538ec(0xf8))[_0x5538ec(0x145)](_0x5538ec(0xb7))[_0x5538ec(0x140)](()=>{const _0x129892=_0x5538ec,_0x351129=getAssetManifest();process['stdout'][_0x129892(0x167)](JSON[_0x129892(0xa3)](_0x351129,null,0x2)+'\x0a');}),program['command'](_0x5538ec(0xf3))['description'](_0x5538ec(0xa1))[_0x5538ec(0x11b)](_0x5538ec(0x141),'Directory\x20to\x20copy\x20the\x20service\x20worker\x20into')[_0x5538ec(0x14b)](_0x5538ec(0x12b),_0x5538ec(0xfa))[_0x5538ec(0x140)](async _0x23fad2=>{const _0x313bda=_0x5538ec,_0x14d507=resolve(process[_0x313bda(0xbc)](),_0x23fad2[_0x313bda(0x159)]),_0x2c183d=await syncAssets({'publicDir':_0x14d507,'swFilename':_0x23fad2[_0x313bda(0x10f)]});for(const _0x3b44e6 of _0x2c183d){const _0x1513ce=relative(process['cwd'](),_0x3b44e6[_0x313bda(0x151)]);_0x3b44e6['status']===_0x313bda(0x131)?process[_0x313bda(0xaf)][_0x313bda(0x167)](_0x313bda(0x7b)+_0x3b44e6[_0x313bda(0xc6)]+_0x313bda(0xba)+_0x1513ce+']\x0a'):process[_0x313bda(0xaf)][_0x313bda(0x167)](_0x313bda(0xea)+_0x3b44e6[_0x313bda(0xc6)]+'\x20→\x20'+_0x1513ce+'\x0a');}}),program[_0x5538ec(0x112)]();
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x20086b=_0x367a;function _0x2f68(){const _0x5d7e0b=['security','/assets/enhance-runtime.js','publishableKey','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','__enhanceController','\x20Importing\x20overlay\x20module\x20from:\x20','1966248rHMSoB','removeItem','\x20Calling:\x20','$RefreshSig$','./dev/vite/index.d.ts','https://','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','installing','enableOverlayHmr','replaceState','\x20Module\x20missing\x20createOverlay\x20export!','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Available\x20exports:','\x20composeOverlayState\x20-\x20state.controlled:\x20','text','createOverlay','false','0.0.0','setItem','sw-enhance','startsWith','enhancementId','warn','[Enhance\x20Overlay]','__enhanceOptions','__enhanceResolvedUrl','searchParams','some','[data-enhance-runtime-bootstrap]','__enhanceInitialized','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Sending\x20configuration\x20to\x20SW...','MIT','\x20Registering\x20SW\x20at\x20','__vite_plugin_react_preamble_installed__','keys','enhance:disable','/public/enhancements/','controlled','/sw-enhance.js','error','\x20HMR\x20setup\x20complete','status','\x20Resolved\x20to:\x20','\x20Service\x20workers\x20NOT\x20supported','\x20composeOverlayState\x20-\x20state.enabled:\x20','callbackBypass','__viteHMRLoaded','\x20Loading\x20overlay...','history','init','register','^3.22.4','origin','default','set','getItem','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','swPath','39431uFvsCI','postMessage','./dev/cli.js','info','off','update','enhancement','\x20Failed\x20to\x20register\x20service\x20worker:','undefined','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','stringify','trim','\x20doLoadOverlay()\x20starting...','\x20No\x20window\x20object\x20-\x20skipping','141262xziVRm','./dev/index.js','\x20setupRemoteHMR()\x20for\x20','overlay','66VXcxVB',',\x20page\x20origin:\x20','...','./dev/index.d.ts','vite:beforeUpdate','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','search','get','overlayPath','replace','__development','^8.5.1','\x20currentOptions\x20exists:\x20','has','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','options','^11.1.0','includes','\x20Using\x20cached\x20enhancement\x20URL:\x20','runtimeURL','\x20BLOCKING\x20SW\x20detected:\x20','version','\x20enableViteHmr:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','json','282711ANskRH','__enhanceReactRefreshInstalledOrigins','4DQLzVP','object','\x20Overlay\x20origin:\x20','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Calling\x20createOverlay()...','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','toString','enabled','__enhanceOverlay','^7.2.4','\x20Enhancement\x20params:','160CCrXZG','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Module\x20exports:','location','[Enhance\x20Runtime]','getRegistration','\x20init()\x20called\x20at\x20','\x20Explicit\x20disable\x20-\x20exiting','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Failed\x20to\x20import/create\x20overlay:','\x20Calling\x20updateOverlay()...','\x20Page\x20not\x20enhanced\x20-\x20reloading','./dev/vite/index.js','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','disable','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','/@react-refresh','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20overlayController\x20exists:\x20','readyState','string','onToggle','vite:error','^4.1.1','\x20Sending\x20config\x20to\x20SW:','25NgJOIG','title','\x20Document\x20readyState:\x20','now','appError','\x20Overlay\x20update\x20complete','\x20composeOverlayState\x20-\x20enhancementId:\x20','0.3.22','\x20Resolution\x20failed:\x20','add','active','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','enhance','213397aNfWio','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20loadOverlay()\x20called','@enhance-eng/sandbox','[Enhance\x20SW-Client]','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20registerServiceWorker()\x20called','backendUrl','\x20SW\x20unregistered','scriptURL','\x20Persisted\x20enhancement\x20to\x20sessionStorage','enable','487956IoAIms','\x20loadOverlay()\x20failed:','querySelector','https://api.enhancelabs.ai','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','enableViteHmr','log','bun\x20version\x20patch\x20--no-git-tag-version','function','unregister','href','module','\x20overlayPath:\x20','\x20Module\x20imported\x20in\x20','serviceWorker','\x20updateOverlay()\x20called','^24.10.1','\x20Invalid\x20React\x20Refresh\x20runtime','reload','\x20SW\x20ready','controller','3858136NVnPHf','position','explicitDisable','https://assets.enhancelabs.ai/overlay.js'];_0x2f68=function(){return _0x5d7e0b;};return _0x2f68();}(function(_0x443482,_0x2c5755){const _0x40c497=_0x367a,_0xb305eb=_0x443482();while(!![]){try{const _0x50aa11=parseInt(_0x40c497(0x14a))/0x1*(parseInt(_0x40c497(0x117))/0x2)+-parseInt(_0x40c497(0x115))/0x3+parseInt(_0x40c497(0x156))/0x4*(parseInt(_0x40c497(0x13d))/0x5)+-parseInt(_0x40c497(0xfc))/0x6*(parseInt(_0x40c497(0x1b2))/0x7)+-parseInt(_0x40c497(0x16b))/0x8+-parseInt(_0x40c497(0x176))/0x9+parseInt(_0x40c497(0x122))/0xa*(parseInt(_0x40c497(0xf8))/0xb);if(_0x50aa11===_0x2c5755)break;else _0xb305eb['push'](_0xb305eb['shift']());}catch(_0x30c820){_0xb305eb['push'](_0xb305eb['shift']());}}}(_0x2f68,0x5e0f8));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x20086b(0xf2)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x20086b(0x16e),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x20086b(0xf2)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x20086b(0x159),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x20086b(0xf2)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x20086b(0x15c)](_0x20086b(0x14f),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x4054f5){const _0x3d5e3a=_0x20086b;if(!_0x4054f5['publishableKey'])throw new Error(_0x3d5e3a(0x130));const _0x38c467=_0x4054f5[_0x3d5e3a(0x106)]??{};return{'publishableKey':_0x4054f5[_0x3d5e3a(0x171)],'callbackBypass':_0x4054f5[_0x3d5e3a(0x1a4)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x38c467[_0x3d5e3a(0x17e)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3d5e3a(0x1b5),'swPath':_0x3d5e3a(0x19d),'overlayPath':_0x38c467[_0x3d5e3a(0x104)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x3d5e3a(0x170),'security':_0x38c467[_0x3d5e3a(0x16f)]??'permissive','backendUrl':_0x38c467[_0x3d5e3a(0x151)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x41897b=_0x20086b;try{const _0x33c3af=new URLSearchParams(window['location'][_0x41897b(0x102)]);return _0x33c3af['get']('enhancement')?.[_0x41897b(0xf5)]()||'';}catch{return'';}}var LOG_PREFIX=_0x20086b(0x18d),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x1823a9){const _0x4496d9=_0x20086b;console[_0x4496d9(0x15c)](LOG_PREFIX+_0x4496d9(0x14c)),console['log'](LOG_PREFIX+_0x4496d9(0x162)+_0x1823a9[_0x4496d9(0x104)]),console['log'](LOG_PREFIX+_0x4496d9(0x112)+_0x1823a9[_0x4496d9(0x15b)]),currentOptions=_0x1823a9[_0x4496d9(0x10b)],toggleHandler=_0x1823a9[_0x4496d9(0x139)];if(overlayController){console[_0x4496d9(0x15c)](LOG_PREFIX+_0x4496d9(0x11a)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4496d9(0x15c)](LOG_PREFIX+_0x4496d9(0x194)),overlayLoadPromise;console[_0x4496d9(0x15c)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x1823a9);try{await overlayLoadPromise,console['log'](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0xc70b5a){console['error'](LOG_PREFIX+_0x4496d9(0x157),_0xc70b5a);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x585d73){const _0x169037=_0x20086b;console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0xf6));if(typeof window===_0x169037(0xf2)){console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0xf7));return;}if(window[_0x169037(0x11f)]){console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0x11c)),overlayController=window[_0x169037(0x11f)];return;}console[_0x169037(0x15c)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x585d73[_0x169037(0x15b)]&&(console[_0x169037(0x15c)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x585d73[_0x169037(0x104)]));console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0x175)+_0x585d73[_0x169037(0x104)]);const _0x4a5f8d=Date[_0x169037(0x140)](),_0x1836a6=await import(_0x585d73[_0x169037(0x104)]);console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0x163)+(Date[_0x169037(0x140)]()-_0x4a5f8d)+'ms'),console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0x124),Object[_0x169037(0x199)](_0x1836a6));if(typeof _0x1836a6?.[_0x169037(0x185)]!==_0x169037(0x15e)){console[_0x169037(0x19e)](LOG_PREFIX+_0x169037(0x180)),console['error'](LOG_PREFIX+_0x169037(0x182),Object[_0x169037(0x199)](_0x1836a6));return;}console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0x11b));const _0x4092f3=_0x1836a6[_0x169037(0x185)]();console['log'](LOG_PREFIX+'\x20Controller\x20created:',_0x4092f3),overlayController=_0x4092f3,window[_0x169037(0x11f)]=_0x4092f3,_0x4092f3['onToggle'](_0x585d73[_0x169037(0x139)]),console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0x12b)),console[_0x169037(0x15c)](LOG_PREFIX+_0x169037(0x12d)),updateOverlay();}catch(_0x40d718){console['error'](LOG_PREFIX+_0x169037(0x12c),_0x40d718);}}function updateOverlay(){const _0x21bccf=_0x20086b;console[_0x21bccf(0x15c)](LOG_PREFIX+_0x21bccf(0x165)),console[_0x21bccf(0x15c)](LOG_PREFIX+_0x21bccf(0x136)+!!overlayController),console[_0x21bccf(0x15c)](LOG_PREFIX+_0x21bccf(0x108)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x21bccf(0x172));return;}const _0x3388d8=composeOverlayState(currentOptions);console[_0x21bccf(0x15c)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x21bccf(0xf4)](_0x3388d8,null,0x2)),overlayController[_0x21bccf(0xef)](_0x3388d8),console[_0x21bccf(0x15c)](LOG_PREFIX+_0x21bccf(0x142));}function composeOverlayState(_0x44b917){const _0x8e7456=_0x20086b,_0x3a943e=getEnhancementId();return console[_0x8e7456(0x15c)](LOG_PREFIX+_0x8e7456(0x143)+_0x3a943e),console[_0x8e7456(0x15c)](LOG_PREFIX+_0x8e7456(0x1a3)+state[_0x8e7456(0x11e)]),console[_0x8e7456(0x15c)](LOG_PREFIX+_0x8e7456(0x183)+state[_0x8e7456(0x19c)]),{'enhancementId':_0x3a943e,'enabled':state['enabled'],'controlled':state['controlled'],'overlayPosition':_0x44b917[_0x8e7456(0xfb)][_0x8e7456(0x16c)],'securityMode':_0x44b917[_0x8e7456(0x16f)],'backendBaseUrl':_0x44b917[_0x8e7456(0x151)],'appError':state[_0x8e7456(0x141)]};}async function setupRemoteHMR(_0x2e3e13){const _0x5affc2=_0x20086b;console['log'](LOG_PREFIX+_0x5affc2(0xfa)+_0x2e3e13);if(typeof window==='undefined')return;try{const _0x54a848=new URL(_0x2e3e13,window[_0x5affc2(0x125)][_0x5affc2(0x1ab)]),_0x2d5c7a=_0x54a848[_0x5affc2(0x1ab)];console[_0x5affc2(0x15c)](LOG_PREFIX+_0x5affc2(0x119)+_0x2d5c7a+_0x5affc2(0xfd)+window[_0x5affc2(0x125)][_0x5affc2(0x1ab)]);if(_0x2d5c7a===window[_0x5affc2(0x125)][_0x5affc2(0x1ab)]){console[_0x5affc2(0x15c)](LOG_PREFIX+_0x5affc2(0x133));return;}console[_0x5affc2(0x15c)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x2d5c7a),await ensureViteClient(_0x2d5c7a),console['log'](LOG_PREFIX+_0x5affc2(0x19f));}catch(_0x1589ad){console[_0x5affc2(0x18c)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x1589ad);}}async function ensureReactRefreshPreamble(_0x3def4a){const _0x14a05d=_0x20086b;window[_0x14a05d(0x116)]??=new Set();if(window[_0x14a05d(0x116)][_0x14a05d(0x109)](_0x3def4a)){console[_0x14a05d(0x15c)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3def4a);return;}console[_0x14a05d(0x15c)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x3def4a+'...');const _0x2d1277=await import(_0x3def4a+_0x14a05d(0x134)),_0x541f3b=_0x2d1277&&typeof _0x2d1277===_0x14a05d(0x118)&&'default'in _0x2d1277?_0x2d1277[_0x14a05d(0x1ac)]:_0x2d1277;if(!isRefreshRuntime(_0x541f3b)){console[_0x14a05d(0x18c)](LOG_PREFIX+_0x14a05d(0x167));return;}_0x541f3b['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x14a05d(0x179)]=()=>_0x4f89f9=>_0x4f89f9,window[_0x14a05d(0x198)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x14a05d(0x146)](_0x3def4a),console[_0x14a05d(0x15c)](LOG_PREFIX+_0x14a05d(0x131)+_0x3def4a);}async function ensureViteClient(_0x1da706){const _0x16593d=_0x20086b;window[_0x16593d(0x1a5)]??=new Set();if(window[_0x16593d(0x1a5)]['has'](_0x1da706)){console['log'](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x1da706);return;}console['log'](LOG_PREFIX+_0x16593d(0x10a)+_0x1da706+_0x16593d(0xfe)),await import(_0x1da706+'/@vite/client'),window[_0x16593d(0x1a5)][_0x16593d(0x146)](_0x1da706),console[_0x16593d(0x15c)](LOG_PREFIX+_0x16593d(0x123)+_0x1da706);}function isRefreshRuntime(_0x5938bd){const _0x3b2622=_0x20086b;return typeof _0x5938bd===_0x3b2622(0x118)&&_0x5938bd!==null&&'injectIntoGlobalHook'in _0x5938bd&&typeof _0x5938bd['injectIntoGlobalHook']===_0x3b2622(0x15e);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x20086b(0x19a),LOG_PREFIX2=_0x20086b(0x14e),registration=null,currentOptions2=null;async function registerServiceWorker(_0x3cbd22){const _0x3893ed=_0x20086b;console[_0x3893ed(0x15c)](LOG_PREFIX2+_0x3893ed(0x150));if(!(_0x3893ed(0x164)in navigator)){console[_0x3893ed(0x18c)](LOG_PREFIX2+_0x3893ed(0x1a2));return;}const _0xefdafe=!!navigator[_0x3893ed(0x164)][_0x3893ed(0x16a)];currentOptions2=_0x3cbd22;const _0x31a8dd=await detectBlockingServiceWorker(_0x3cbd22[_0x3893ed(0x1b1)]);if(_0x31a8dd){console['error'](LOG_PREFIX2+_0x3893ed(0x110)+_0x31a8dd);return;}try{console[_0x3893ed(0x15c)](LOG_PREFIX2+_0x3893ed(0x197)+_0x3cbd22[_0x3893ed(0x1b1)]+_0x3893ed(0xfe)),registration=await navigator[_0x3893ed(0x164)][_0x3893ed(0x1a9)](_0x3cbd22[_0x3893ed(0x1b1)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator[_0x3893ed(0x164)]['ready'],console[_0x3893ed(0x15c)](LOG_PREFIX2+_0x3893ed(0x169)),state['controlled']=ownsCurrentController(_0x3cbd22[_0x3893ed(0x1b1)]);if(!_0xefdafe&&!navigator[_0x3893ed(0x164)]['controller']){console[_0x3893ed(0x15c)](LOG_PREFIX2+_0x3893ed(0x101)),window['location'][_0x3893ed(0x168)]();return;}console['log'](LOG_PREFIX2+_0x3893ed(0x195)),await sendConfiguration();if(state[_0x3893ed(0x11e)]){const _0x37d76f=document[_0x3893ed(0x158)](_0x3893ed(0x192))!==null;if(!_0x37d76f){console['log'](LOG_PREFIX2+_0x3893ed(0x12e)),window['location'][_0x3893ed(0x168)]();return;}}updateOverlay(),console[_0x3893ed(0x15c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x5c61e2){console[_0x3893ed(0x19e)](LOG_PREFIX2+_0x3893ed(0xf1),_0x5c61e2);}}async function sendConfiguration(){const _0x247616=_0x20086b;if(!state[_0x247616(0x11e)]||!currentOptions2)return;const _0x358d96=await resolveWorker();if(!_0x358d96){console[_0x247616(0x18c)](LOG_PREFIX2+_0x247616(0x12a));return;}const _0x4bed1b=window[_0x247616(0x18f)]??null,_0x27096c={'publishableKey':currentOptions2[_0x247616(0x171)],'callbackBypass':currentOptions2[_0x247616(0x1a4)],'securityMode':currentOptions2['security'],'enhancementUrl':_0x4bed1b??void 0x0};console[_0x247616(0x15c)](LOG_PREFIX2+_0x247616(0x13c),JSON[_0x247616(0xf4)](_0x27096c,null,0x2)),_0x358d96[_0x247616(0x1b3)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x27096c});}async function unregisterServiceWorker(_0x2027f7){const _0x18c086=_0x20086b;console[_0x18c086(0x15c)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x18c086(0x164)in navigator))return;try{const _0x4323b7=registration??await navigator[_0x18c086(0x164)][_0x18c086(0x127)]('/');if(!_0x4323b7)return;const _0x18f638=[_0x4323b7[_0x18c086(0x147)]?.[_0x18c086(0x153)],_0x4323b7['waiting']?.['scriptURL'],_0x4323b7[_0x18c086(0x17d)]?.[_0x18c086(0x153)]],_0x580eae=_0x18f638[_0x18c086(0x191)](_0x26afe9=>_0x26afe9&&ownsServiceWorker(_0x26afe9,_0x2027f7));if(!_0x580eae)return;_0x4323b7[_0x18c086(0x147)]&&_0x4323b7['active'][_0x18c086(0x1b3)]({'type':WORKER_MESSAGE_DISABLE}),await _0x4323b7[_0x18c086(0x15f)](),registration=null,currentOptions2=null,console[_0x18c086(0x15c)](LOG_PREFIX2+_0x18c086(0x152));}catch(_0x450610){console[_0x18c086(0x19e)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x450610);}}function ownsServiceWorker(_0x3b0d98,_0x5f102e){const _0x35d45e=_0x20086b,_0x8502e4=typeof window!=='undefined'?window['location'][_0x35d45e(0x1ab)]:'',_0x2db244=new URL(_0x5f102e,_0x8502e4||void 0x0)['href'];return _0x3b0d98===_0x2db244||_0x3b0d98[_0x35d45e(0x10d)](_0x35d45e(0x189));}function ownsCurrentController(_0x4604cf){const _0x405311=_0x20086b,_0x576624=navigator[_0x405311(0x164)]?.[_0x405311(0x16a)];if(!_0x576624)return![];return ownsServiceWorker(_0x576624[_0x405311(0x153)],_0x4604cf);}async function detectBlockingServiceWorker(_0xe070d6){const _0x290101=_0x20086b;if(!navigator[_0x290101(0x164)])return null;try{const _0x134bd6=await navigator['serviceWorker'][_0x290101(0x127)]('/'),_0x51db26=_0x134bd6?.['active']?.[_0x290101(0x153)];if(!_0x51db26)return null;if(ownsServiceWorker(_0x51db26,_0xe070d6))return null;return _0x51db26;}catch{return null;}}async function resolveWorker(){const _0x1bdfd7=_0x20086b,_0x554873=registration??await navigator[_0x1bdfd7(0x164)]?.[_0x1bdfd7(0x127)]('/');return _0x554873?.[_0x1bdfd7(0x147)]??_0x554873?.['waiting']??_0x554873?.[_0x1bdfd7(0x17d)]??null;}var LOG_PREFIX3=_0x20086b(0x126),STORAGE_KEY_ENHANCEMENT_ID='enhance.enhancementId',STORAGE_KEY_ENHANCEMENT_URL='enhance.enhancementUrl';function isInitialized(){const _0x5a2ebc=_0x20086b;return typeof window!=='undefined'&&window[_0x5a2ebc(0x193)]===!![];}function setInitialized(_0x4ff043){const _0x5154ba=_0x20086b;typeof window!==_0x5154ba(0xf2)&&(window[_0x5154ba(0x193)]=_0x4ff043);}function getOptions(){const _0x4d86ec=_0x20086b;return typeof window!==_0x4d86ec(0xf2)?window[_0x4d86ec(0x18e)]??null:null;}function setOptions(_0xe7b471){const _0x3a22d2=_0x20086b;typeof window!=='undefined'&&(window[_0x3a22d2(0x18e)]=_0xe7b471);}var Enhance={'init'(_0x5e0967){const _0x61d77e=_0x20086b,_0x202a8e=Date[_0x61d77e(0x140)]();console['log'](LOG_PREFIX3+_0x61d77e(0x128)+_0x202a8e),console[_0x61d77e(0x15c)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window[_0x61d77e(0x125)]['href']),console[_0x61d77e(0x15c)](LOG_PREFIX3+_0x61d77e(0x13f)+document[_0x61d77e(0x137)]);if(isInitialized())return console['warn'](LOG_PREFIX3+_0x61d77e(0x1b0)),window[_0x61d77e(0x174)]??createController();setInitialized(!![]);const _0xbd81f4=normalizeOptions(_0x5e0967);setOptions(_0xbd81f4);const _0x58edfd=parseEnhancementParams();console['log'](LOG_PREFIX3+_0x61d77e(0x121),JSON[_0x61d77e(0xf4)](_0x58edfd,null,0x2));if(_0x58edfd[_0x61d77e(0x16d)])return cleanUrlParam(_0x61d77e(0x149)),clearPersistedEnhancement(),console[_0x61d77e(0x15c)](LOG_PREFIX3+_0x61d77e(0x129)),createController();if(!_0x58edfd[_0x61d77e(0x18b)])return console['log'](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement'),void unregisterServiceWorker(_0xbd81f4[_0x61d77e(0x1b1)]),setupViteErrorListeners(),createController();return console[_0x61d77e(0x15c)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20-\x20ID:\x20'+_0x58edfd[_0x61d77e(0x18b)]),state[_0x61d77e(0x11e)]=!![],void initializeEnhancement(_0xbd81f4,_0x58edfd['enhancementId'],_0x58edfd['cachedUrl']),createController();}};async function initializeEnhancement(_0x2f2df4,_0x503528,_0x3622cb){const _0x253d62=_0x20086b;let _0x5856ee=_0x3622cb;if(!_0x5856ee){console['log'](LOG_PREFIX3+'\x20Resolving\x20enhancement\x20ID:\x20'+_0x503528),_0x5856ee=await resolveEnhancementUrl(_0x2f2df4,_0x503528);if(!_0x5856ee){console['error'](LOG_PREFIX3+_0x253d62(0x17c)),state['enabled']=![];return;}}else console['log'](LOG_PREFIX3+_0x253d62(0x10e)+_0x5856ee);persistEnhancement(_0x503528,_0x5856ee),window[_0x253d62(0x18f)]=_0x5856ee,console[_0x253d62(0x15c)](LOG_PREFIX3+_0x253d62(0x173)),await registerServiceWorker(_0x2f2df4),console[_0x253d62(0x15c)](LOG_PREFIX3+_0x253d62(0x1a6)),await loadOverlay({'overlayPath':_0x2f2df4[_0x253d62(0x104)],'enableViteHmr':_0x2f2df4[_0x253d62(0xfb)][_0x253d62(0x15b)],'options':_0x2f2df4,'onToggle':handleToggle}),console[_0x253d62(0x15c)](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x380f7e,_0x40aa52){const _0x20888e=_0x20086b,_0x39d29e=_0x380f7e['backendUrl']+_0x20888e(0x19b)+_0x40aa52+'/resolve';console['log'](LOG_PREFIX3+_0x20888e(0x178)+_0x39d29e);try{const _0x4ee0ea=await fetch(_0x39d29e,{'headers':{'X-Enhance-Publishable-Key':_0x380f7e[_0x20888e(0x171)]}});if(!_0x4ee0ea['ok']){const _0x576802=await _0x4ee0ea[_0x20888e(0x184)]();return console[_0x20888e(0x19e)](LOG_PREFIX3+_0x20888e(0x145)+_0x4ee0ea[_0x20888e(0x1a0)]+'\x20'+_0x576802),null;}const _0x38d316=await _0x4ee0ea[_0x20888e(0x114)](),_0x2769ef=''+_0x380f7e[_0x20888e(0x151)]+_0x38d316['operatingPath'];return console[_0x20888e(0x15c)](LOG_PREFIX3+_0x20888e(0x1a1)+_0x2769ef),_0x2769ef;}catch(_0x3125ec){return console['error'](LOG_PREFIX3+'\x20Resolution\x20error:',_0x3125ec),null;}}function parseEnhancementParams(){const _0x22f125=_0x20086b,_0x12d1b4=new URL(window[_0x22f125(0x125)][_0x22f125(0x160)]),_0x206f58=_0x12d1b4[_0x22f125(0x190)]['get'](_0x22f125(0x149))?.['toLowerCase'](),_0x2d2b48=_0x206f58==='0'||_0x206f58===_0x22f125(0x186)||_0x206f58===_0x22f125(0x1b6);let _0x450181=_0x12d1b4['searchParams'][_0x22f125(0x103)](_0x22f125(0xf0)),_0x1cb07c=null;if(_0x450181)try{const _0xe9feb=sessionStorage[_0x22f125(0x1ae)](STORAGE_KEY_ENHANCEMENT_ID),_0x506ccc=sessionStorage[_0x22f125(0x1ae)](STORAGE_KEY_ENHANCEMENT_URL);_0xe9feb===_0x450181&&_0x506ccc&&(_0x1cb07c=_0x506ccc,console[_0x22f125(0x15c)](LOG_PREFIX3+_0x22f125(0x15a)));}catch{}else try{const _0x40c3ed=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x3ff4f8=sessionStorage[_0x22f125(0x1ae)](STORAGE_KEY_ENHANCEMENT_URL);_0x40c3ed&&_0x3ff4f8&&(_0x450181=_0x40c3ed,_0x1cb07c=_0x3ff4f8,console[_0x22f125(0x15c)](LOG_PREFIX3+'\x20Restored\x20enhancement\x20from\x20sessionStorage'),_0x12d1b4['searchParams'][_0x22f125(0x1ad)]('enhancement',_0x450181),window[_0x22f125(0x1a7)]['replaceState'](null,document[_0x22f125(0x13e)],_0x12d1b4[_0x22f125(0x11d)]()));}catch{}return{'enhancementId':_0x450181,'cachedUrl':_0x1cb07c,'explicitDisable':_0x2d2b48};}function persistEnhancement(_0x543699,_0x2b76a7){const _0x560afa=_0x20086b;try{sessionStorage[_0x560afa(0x188)](STORAGE_KEY_ENHANCEMENT_ID,_0x543699),sessionStorage[_0x560afa(0x188)](STORAGE_KEY_ENHANCEMENT_URL,_0x2b76a7),console['log'](LOG_PREFIX3+_0x560afa(0x154));}catch{}}function clearPersistedEnhancement(){const _0x52499f=_0x20086b;try{sessionStorage[_0x52499f(0x177)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x52499f(0x177)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x52499f(0x15c)](LOG_PREFIX3+'\x20Cleared\x20persisted\x20enhancement');}catch{}}function createController(){const _0x418fc0=_0x20086b,_0x2d5c81={'enable'(){const _0x3f9af8=_0x367a,_0xa2e107=getOptions();if(!_0xa2e107)return;state[_0x3f9af8(0x11e)]=!![],void registerServiceWorker(_0xa2e107),void sendConfiguration(),updateOverlay();},'disable'(){const _0x23e205=_0x367a,_0x2ca173=getOptions();if(!_0x2ca173)return;state[_0x23e205(0x11e)]=![],state['controlled']=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x2ca173[_0x23e205(0x1b1)]);},'status'(){const _0x53e441=_0x367a;return{'enabled':state[_0x53e441(0x11e)],'controlled':state[_0x53e441(0x19c)]};}};return typeof window!=='undefined'&&(window[_0x418fc0(0x174)]=_0x2d5c81),_0x2d5c81;}function handleToggle(){const _0xb374a6=_0x20086b,_0x23fa1b=createController();state['enabled']?_0x23fa1b[_0xb374a6(0x132)]():_0x23fa1b[_0xb374a6(0x155)]();}function cleanUrlParam(_0x3dd4c5){const _0xee9787=_0x20086b,_0x141561=new URL(window[_0xee9787(0x125)][_0xee9787(0x160)]);_0x141561['searchParams'][_0xee9787(0x109)](_0x3dd4c5)&&(_0x141561[_0xee9787(0x190)]['delete'](_0x3dd4c5),window[_0xee9787(0x1a7)][_0xee9787(0x17f)](null,document[_0xee9787(0x13e)],_0x141561[_0xee9787(0x11d)]()));}function setupViteErrorListeners(){const _0x274803=_0x20086b;import.meta.hot&&(import.meta.hot['on'](_0x274803(0x13a),_0x4034f3=>{const _0x10082b=_0x274803;state[_0x10082b(0x141)]={'message':_0x4034f3['err']['message']},updateOverlay();}),import.meta.hot['on'](_0x274803(0x100),()=>{const _0x1f76ad=_0x274803;state['appError']&&(state[_0x1f76ad(0x141)]=null,updateOverlay());}));}var package_default={'name':_0x20086b(0x14d),'version':_0x20086b(0x144),'type':_0x20086b(0x161),'description':_0x20086b(0x14b),'license':_0x20086b(0x196),'main':_0x20086b(0xf9),'module':'./dev/index.js','types':_0x20086b(0xff),'exports':{'.':{'types':'./dev/index.d.ts','import':_0x20086b(0xf9)},'./vite':{'types':_0x20086b(0x17a),'import':_0x20086b(0x12f)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x20086b(0x1b4)},'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':_0x20086b(0x113),'dev:staging':_0x20086b(0x1af),'dev:staging:build':_0x20086b(0x135),'build':_0x20086b(0x181),'build:release':_0x20086b(0xf3),'build:release:dev':_0x20086b(0x148),'version':_0x20086b(0x15d)},'dependencies':{'commander':_0x20086b(0x10c),'zod':_0x20086b(0x1aa)},'devDependencies':{'@types/node':_0x20086b(0x166),'javascript-obfuscator':_0x20086b(0x13b),'tsup':_0x20086b(0x107),'vite':_0x20086b(0x120)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x20086b(0x19d),DEFAULT_RUNTIME_PATH=_0x20086b(0x170),PACKAGE_VERSION=typeof package_default[_0x20086b(0x111)]===_0x20086b(0x138)?package_default[_0x20086b(0x111)]:_0x20086b(0x187);function normalizeAssetPath(_0xc55921){const _0x3e4813=_0x20086b;if(!_0xc55921)return _0xc55921;if(_0xc55921[_0x3e4813(0x18a)]('http://')||_0xc55921[_0x3e4813(0x18a)](_0x3e4813(0x17b)))return _0xc55921;const _0x57fe16=_0xc55921[_0x3e4813(0x105)](/^\.\//,'');return _0x57fe16[_0x3e4813(0x18a)]('/')?_0x57fe16:'/'+_0x57fe16;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x297bca){const _0x3556f9=_0x20086b;return Enhance[_0x3556f9(0x1a8)](_0x297bca);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function _0x367a(_0x45db99,_0x1c3709){_0x45db99=_0x45db99-0xef;const _0x2f681a=_0x2f68();let _0x367a34=_0x2f681a[_0x45db99];return _0x367a34;}function runtimeURL(){const _0x4aff31=_0x20086b;return Enhance2[_0x4aff31(0x10f)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x4836a0=_0x4f5b;(function(_0x7581ec,_0x2ef227){const _0x19a4a5=_0x4f5b,_0x53201e=_0x7581ec();while(!![]){try{const _0x4040c5=parseInt(_0x19a4a5(0x1fc))/0x1*(-parseInt(_0x19a4a5(0x268))/0x2)+parseInt(_0x19a4a5(0x247))/0x3*(-parseInt(_0x19a4a5(0x289))/0x4)+-parseInt(_0x19a4a5(0x1e7))/0x5+parseInt(_0x19a4a5(0x1eb))/0x6*(-parseInt(_0x19a4a5(0x265))/0x7)+-parseInt(_0x19a4a5(0x250))/0x8+parseInt(_0x19a4a5(0x259))/0x9*(parseInt(_0x19a4a5(0x283))/0xa)+parseInt(_0x19a4a5(0x28b))/0xb*(parseInt(_0x19a4a5(0x1ca))/0xc);if(_0x4040c5===_0x2ef227)break;else _0x53201e['push'](_0x53201e['shift']());}catch(_0x123fb3){_0x53201e['push'](_0x53201e['shift']());}}}(_0x2a11,0xf3d1a));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x4836a0(0x22a),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0x4836a0(0x240),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console['log']('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x143e8b){const _0x4c8bea=_0x4836a0;if(!_0x143e8b['publishableKey'])throw new Error(_0x4c8bea(0x281));const _0x47ab26=_0x143e8b[_0x4c8bea(0x25f)]??{};return{'publishableKey':_0x143e8b[_0x4c8bea(0x20b)],'callbackBypass':_0x143e8b[_0x4c8bea(0x244)]??[],'overlay':{'enabled':!![],'position':_0x4c8bea(0x20f),'enableViteHmr':_0x47ab26['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x4c8bea(0x23c),'swPath':_0x4c8bea(0x28a),'overlayPath':_0x47ab26[_0x4c8bea(0x1d6)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x4c8bea(0x21b),'security':_0x47ab26['security']??'permissive','backendUrl':_0x47ab26[_0x4c8bea(0x1d9)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x3a01e9=_0x4836a0;try{const _0x9e0f8f=new URLSearchParams(window[_0x3a01e9(0x1dd)][_0x3a01e9(0x25b)]);return _0x9e0f8f[_0x3a01e9(0x243)](_0x3a01e9(0x257))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x4836a0(0x23b),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x27d28a){const _0x29a90b=_0x4836a0;console[_0x29a90b(0x285)](LOG_PREFIX+_0x29a90b(0x20d)),console[_0x29a90b(0x285)](LOG_PREFIX+_0x29a90b(0x1f9)+_0x27d28a[_0x29a90b(0x1d6)]),console[_0x29a90b(0x285)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x27d28a['enableViteHmr']),currentOptions=_0x27d28a[_0x29a90b(0x1c9)],toggleHandler=_0x27d28a['onToggle'];if(overlayController){console[_0x29a90b(0x285)](LOG_PREFIX+_0x29a90b(0x27b)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+_0x29a90b(0x267)),overlayLoadPromise=doLoadOverlay(_0x27d28a);try{await overlayLoadPromise,console[_0x29a90b(0x285)](LOG_PREFIX+_0x29a90b(0x1fa));}catch(_0x566c79){console['error'](LOG_PREFIX+_0x29a90b(0x246),_0x566c79);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x10e25a){const _0x175fc9=_0x4836a0;console[_0x175fc9(0x285)](LOG_PREFIX+_0x175fc9(0x221));if(typeof window===_0x175fc9(0x22b)){console['log'](LOG_PREFIX+_0x175fc9(0x26e));return;}if(window['__enhanceOverlay']){console[_0x175fc9(0x285)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x175fc9(0x271)];return;}console[_0x175fc9(0x285)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x10e25a[_0x175fc9(0x23a)]&&(console[_0x175fc9(0x285)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x10e25a[_0x175fc9(0x1d6)]));console['log'](LOG_PREFIX+_0x175fc9(0x210)+_0x10e25a[_0x175fc9(0x1d6)]);const _0x346b13=Date[_0x175fc9(0x282)](),_0x3482ea=await import(_0x10e25a[_0x175fc9(0x1d6)]);console[_0x175fc9(0x285)](LOG_PREFIX+_0x175fc9(0x237)+(Date[_0x175fc9(0x282)]()-_0x346b13)+'ms'),console['log'](LOG_PREFIX+_0x175fc9(0x1d0),Object[_0x175fc9(0x287)](_0x3482ea));if(typeof _0x3482ea?.['createOverlay']!==_0x175fc9(0x280)){console[_0x175fc9(0x1cd)](LOG_PREFIX+_0x175fc9(0x1db)),console['error'](LOG_PREFIX+_0x175fc9(0x26f),Object[_0x175fc9(0x287)](_0x3482ea));return;}console[_0x175fc9(0x285)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x470550=_0x3482ea[_0x175fc9(0x1e6)]();console[_0x175fc9(0x285)](LOG_PREFIX+'\x20Controller\x20created:',_0x470550),overlayController=_0x470550,window['__enhanceOverlay']=_0x470550,_0x470550[_0x175fc9(0x24c)](_0x10e25a[_0x175fc9(0x24c)]),console[_0x175fc9(0x285)](LOG_PREFIX+_0x175fc9(0x269)),console['log'](LOG_PREFIX+_0x175fc9(0x25a)),updateOverlay();}catch(_0x16d540){console[_0x175fc9(0x1cd)](LOG_PREFIX+_0x175fc9(0x1e1),_0x16d540);}}function updateOverlay(){const _0x4d812c=_0x4836a0;console[_0x4d812c(0x285)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x4d812c(0x285)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x4d812c(0x285)](LOG_PREFIX+_0x4d812c(0x231)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x4d812c(0x285)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x58ed0e=composeOverlayState(currentOptions);console[_0x4d812c(0x285)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x4d812c(0x27a)](_0x58ed0e,null,0x2)),overlayController[_0x4d812c(0x229)](_0x58ed0e),console[_0x4d812c(0x285)](LOG_PREFIX+_0x4d812c(0x1ce));}function composeOverlayState(_0x307854){const _0x4bbc2e=_0x4836a0,_0x64b7e3=getEnhancementId();return console[_0x4bbc2e(0x285)](LOG_PREFIX+_0x4bbc2e(0x1e0)+_0x64b7e3),console[_0x4bbc2e(0x285)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x4bbc2e(0x27f)]),console[_0x4bbc2e(0x285)](LOG_PREFIX+_0x4bbc2e(0x22e)+state[_0x4bbc2e(0x241)]),{'enhancementId':_0x64b7e3,'enabled':state[_0x4bbc2e(0x27f)],'controlled':state[_0x4bbc2e(0x241)],'overlayPosition':_0x307854['overlay'][_0x4bbc2e(0x24a)],'securityMode':_0x307854['security'],'backendBaseUrl':_0x307854[_0x4bbc2e(0x1d9)],'appError':state[_0x4bbc2e(0x203)]};}async function setupRemoteHMR(_0x991b72){const _0x3e77d1=_0x4836a0;console[_0x3e77d1(0x285)](LOG_PREFIX+_0x3e77d1(0x249)+_0x991b72);if(typeof window===_0x3e77d1(0x22b))return;try{const _0x53d7a2=new URL(_0x991b72,window['location'][_0x3e77d1(0x1ed)]),_0x10a4d6=_0x53d7a2['origin'];console[_0x3e77d1(0x285)](LOG_PREFIX+_0x3e77d1(0x20c)+_0x10a4d6+_0x3e77d1(0x20a)+window[_0x3e77d1(0x1dd)][_0x3e77d1(0x1ed)]);if(_0x10a4d6===window['location'][_0x3e77d1(0x1ed)]){console[_0x3e77d1(0x285)](LOG_PREFIX+_0x3e77d1(0x248));return;}console[_0x3e77d1(0x285)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x10a4d6),await ensureViteClient(_0x10a4d6),console[_0x3e77d1(0x285)](LOG_PREFIX+_0x3e77d1(0x1fd));}catch(_0x19cbde){console['warn'](LOG_PREFIX+_0x3e77d1(0x24f),_0x19cbde);}}async function ensureReactRefreshPreamble(_0x53bd73){const _0x1c9d5e=_0x4836a0;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x1c9d5e(0x1de)](_0x53bd73)){console[_0x1c9d5e(0x285)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x53bd73);return;}console[_0x1c9d5e(0x285)](LOG_PREFIX+_0x1c9d5e(0x220)+_0x53bd73+_0x1c9d5e(0x23f));const _0x4659b8=await import(_0x53bd73+_0x1c9d5e(0x200)),_0x254aa6=_0x4659b8&&typeof _0x4659b8==='object'&&_0x1c9d5e(0x272)in _0x4659b8?_0x4659b8[_0x1c9d5e(0x272)]:_0x4659b8;if(!isRefreshRuntime(_0x254aa6)){console[_0x1c9d5e(0x1d4)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x254aa6[_0x1c9d5e(0x1ef)](window),window[_0x1c9d5e(0x1f2)]=()=>{},window[_0x1c9d5e(0x1e8)]=()=>_0x5b7c8d=>_0x5b7c8d,window[_0x1c9d5e(0x279)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x1c9d5e(0x255)](_0x53bd73),console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x53bd73);}async function ensureViteClient(_0x1f03e5){const _0x2660b8=_0x4836a0;window[_0x2660b8(0x202)]??=new Set();if(window[_0x2660b8(0x202)][_0x2660b8(0x1de)](_0x1f03e5)){console[_0x2660b8(0x285)](LOG_PREFIX+_0x2660b8(0x206)+_0x1f03e5);return;}console[_0x2660b8(0x285)](LOG_PREFIX+_0x2660b8(0x284)+_0x1f03e5+_0x2660b8(0x23f)),await import(_0x1f03e5+_0x2660b8(0x1df)),window[_0x2660b8(0x202)][_0x2660b8(0x255)](_0x1f03e5),console[_0x2660b8(0x285)](LOG_PREFIX+_0x2660b8(0x1e9)+_0x1f03e5);}function isRefreshRuntime(_0x4be455){const _0x271d7e=_0x4836a0;return typeof _0x4be455===_0x271d7e(0x215)&&_0x4be455!==null&&_0x271d7e(0x1ef)in _0x4be455&&typeof _0x4be455[_0x271d7e(0x1ef)]===_0x271d7e(0x280);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x4836a0(0x1ec),LOG_PREFIX2=_0x4836a0(0x252),registration=null,currentOptions2=null;async function registerServiceWorker(_0x5bd349){const _0xea4d2e=_0x4836a0;console[_0xea4d2e(0x285)](LOG_PREFIX2+_0xea4d2e(0x251));if(!(_0xea4d2e(0x209)in navigator)){console[_0xea4d2e(0x1d4)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported');return;}const _0x262377=!!navigator[_0xea4d2e(0x209)]['controller'];currentOptions2=_0x5bd349;const _0x3ce85f=await detectBlockingServiceWorker(_0x5bd349[_0xea4d2e(0x228)]);if(_0x3ce85f){console[_0xea4d2e(0x1cd)](LOG_PREFIX2+_0xea4d2e(0x22c)+_0x3ce85f);return;}try{console[_0xea4d2e(0x285)](LOG_PREFIX2+_0xea4d2e(0x276)+_0x5bd349[_0xea4d2e(0x228)]+_0xea4d2e(0x23f)),registration=await navigator[_0xea4d2e(0x209)][_0xea4d2e(0x217)](_0x5bd349['swPath'],{'scope':'/'}),console[_0xea4d2e(0x285)](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator[_0xea4d2e(0x209)][_0xea4d2e(0x22f)],console[_0xea4d2e(0x285)](LOG_PREFIX2+_0xea4d2e(0x1f8)),state['controlled']=ownsCurrentController(_0x5bd349[_0xea4d2e(0x228)]);if(!_0x262377&&!navigator['serviceWorker'][_0xea4d2e(0x1c7)]){console['log'](LOG_PREFIX2+'\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement'),window[_0xea4d2e(0x1dd)][_0xea4d2e(0x256)]();return;}console[_0xea4d2e(0x285)](LOG_PREFIX2+_0xea4d2e(0x230)),await sendConfiguration();if(state['enabled']){const _0x49dced=document['querySelector'](_0xea4d2e(0x24d))!==null;if(!_0x49dced){console[_0xea4d2e(0x285)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20-\x20reloading'),window[_0xea4d2e(0x1dd)][_0xea4d2e(0x256)]();return;}}updateOverlay(),console['log'](LOG_PREFIX2+_0xea4d2e(0x1f6));}catch(_0x3949d2){console['error'](LOG_PREFIX2+_0xea4d2e(0x1cb),_0x3949d2);}}async function sendConfiguration(){const _0x5daaa3=_0x4836a0;if(!state[_0x5daaa3(0x27f)]||!currentOptions2)return;const _0x54cddc=await resolveWorker();if(!_0x54cddc){console[_0x5daaa3(0x1d4)](LOG_PREFIX2+_0x5daaa3(0x1f0));return;}const _0x74e93a=window[_0x5daaa3(0x264)]??null,_0xf57f6d={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x5daaa3(0x244)],'securityMode':currentOptions2[_0x5daaa3(0x1dc)],'enhancementUrl':_0x74e93a??void 0x0};console[_0x5daaa3(0x285)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON[_0x5daaa3(0x27a)](_0xf57f6d,null,0x2)),_0x54cddc[_0x5daaa3(0x214)]({'type':WORKER_MESSAGE_CONFIG,'config':_0xf57f6d});}async function unregisterServiceWorker(_0x57a1a8){const _0x5b3605=_0x4836a0;console[_0x5b3605(0x285)](LOG_PREFIX2+_0x5b3605(0x223));if(!(_0x5b3605(0x209)in navigator))return;try{const _0x551a89=registration??await navigator[_0x5b3605(0x209)][_0x5b3605(0x1f7)]('/');if(!_0x551a89)return;const _0x587a56=[_0x551a89[_0x5b3605(0x225)]?.['scriptURL'],_0x551a89[_0x5b3605(0x1ee)]?.[_0x5b3605(0x204)],_0x551a89[_0x5b3605(0x1f5)]?.[_0x5b3605(0x204)]],_0x51e495=_0x587a56[_0x5b3605(0x1e2)](_0x16acc0=>_0x16acc0&&ownsServiceWorker(_0x16acc0,_0x57a1a8));if(!_0x51e495)return;_0x551a89[_0x5b3605(0x225)]&&_0x551a89['active']['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x551a89[_0x5b3605(0x26d)](),registration=null,currentOptions2=null,console[_0x5b3605(0x285)](LOG_PREFIX2+_0x5b3605(0x21f));}catch(_0x172336){console[_0x5b3605(0x1cd)](LOG_PREFIX2+_0x5b3605(0x26a),_0x172336);}}function ownsServiceWorker(_0x3a634c,_0x13945f){const _0x5a97ca=_0x4836a0,_0x3f9159=typeof window!=='undefined'?window['location'][_0x5a97ca(0x1ed)]:'',_0x302977=new URL(_0x13945f,_0x3f9159||void 0x0)[_0x5a97ca(0x207)];return _0x3a634c===_0x302977||_0x3a634c[_0x5a97ca(0x288)](_0x5a97ca(0x286));}function ownsCurrentController(_0x5ae0c2){const _0x1af23e=_0x4836a0,_0x14f3bc=navigator[_0x1af23e(0x209)]?.[_0x1af23e(0x1c7)];if(!_0x14f3bc)return![];return ownsServiceWorker(_0x14f3bc[_0x1af23e(0x204)],_0x5ae0c2);}async function detectBlockingServiceWorker(_0x1fde05){const _0x559bf9=_0x4836a0;if(!navigator[_0x559bf9(0x209)])return null;try{const _0x219a85=await navigator['serviceWorker'][_0x559bf9(0x1f7)]('/'),_0x74f371=_0x219a85?.['active']?.[_0x559bf9(0x204)];if(!_0x74f371)return null;if(ownsServiceWorker(_0x74f371,_0x1fde05))return null;return _0x74f371;}catch{return null;}}async function resolveWorker(){const _0x2e57c5=_0x4836a0,_0x54f6e7=registration??await navigator[_0x2e57c5(0x209)]?.[_0x2e57c5(0x1f7)]('/');return _0x54f6e7?.[_0x2e57c5(0x225)]??_0x54f6e7?.[_0x2e57c5(0x1ee)]??_0x54f6e7?.[_0x2e57c5(0x1f5)]??null;}var LOG_PREFIX3='[Enhance\x20Runtime]',STORAGE_KEY_ENHANCEMENT_ID=_0x4836a0(0x245),STORAGE_KEY_ENHANCEMENT_URL=_0x4836a0(0x278);function _0x2a11(){const _0x1ef8dc=['getItem','\x20Module\x20imported\x20in\x20','title','public','enableViteHmr','[Enhance\x20Overlay]','info','false','searchParams','...','https://api.enhancelabs.ai','controlled','enhancementId','get','callbackBypass','enhance.enhancementId','\x20loadOverlay()\x20failed:','375504WkQfem','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20setupRemoteHMR()\x20for\x20','position','module','onToggle','[data-enhance-runtime-bootstrap]','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','316752GXAUTc','\x20registerServiceWorker()\x20called','[Enhance\x20SW-Client]','message','toLowerCase','add','reload','enhancement','startsWith','349686iIoSoy','\x20Calling\x20updateOverlay()...','search','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','\x20Cleared\x20persisted\x20enhancement','explicitDisable','__development','0.0.0','\x20Persisted\x20enhancement\x20to\x20sessionStorage','vite:error','overlay','__enhanceResolvedUrl','182ynHZZu','cachedUrl','\x20Starting\x20fresh\x20overlay\x20load...','2XkHygF','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Failed\x20to\x20unregister\x20service\x20worker:','delete','\x20Normal\x20mode\x20-\x20no\x20enhancement','unregister','\x20No\x20window\x20object\x20-\x20skipping','\x20Available\x20exports:','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','__enhanceOverlay','default','\x20Using\x20cached\x20enhancement\x20URL:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','enhance','\x20Registering\x20SW\x20at\x20','version','enhance.enhancementUrl','__vite_plugin_react_preamble_installed__','stringify','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','MIT','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','enabled','function','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','now','190NcdNdo','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','log','sw-enhance','keys','includes','52EezSxL','/sw-enhance.js','11iIavpY','controller','^24.10.1','options','65022504VUrotF','\x20Failed\x20to\x20register\x20service\x20worker:','set','error','\x20Overlay\x20update\x20complete','removeItem','\x20Module\x20exports:','\x20Resolving\x20enhancement\x20ID:\x20','/public/enhancements/','setItem','warn','\x20Loading\x20overlay...','overlayPath','\x20Calling:\x20','string','backendUrl','\x20Resolution\x20error:','\x20Module\x20missing\x20createOverlay\x20export!','security','location','has','/@vite/client','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20Failed\x20to\x20import/create\x20overlay:','some','off','json','^3.22.4','createOverlay','7994895TRGNUz','$RefreshSig$','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','serviceWorkerURL','231390mpQrCi','enhance:disable','origin','waiting','injectIntoGlobalHook','\x20No\x20service\x20worker\x20active\x20to\x20configure','./dev/cli.js','$RefreshReg$','init','__enhanceInitialized','installing','\x20registerServiceWorker()\x20complete','getRegistration','\x20SW\x20ready','\x20overlayPath:\x20','\x20loadOverlay()\x20complete','\x20Resolved\x20to:\x20','889639IkJhHN','\x20HMR\x20setup\x20complete','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','./dev/index.js','/@react-refresh','replaceState','__viteHMRLoaded','appError','scriptURL','__enhanceController','\x20Vite\x20client\x20already\x20loaded\x20for\x20','href','@enhance-eng/sandbox','serviceWorker',',\x20page\x20origin:\x20','publishableKey','\x20Overlay\x20origin:\x20','\x20loadOverlay()\x20called','__enhanceOptions','bottom-right','\x20Importing\x20overlay\x20module\x20from:\x20','^7.2.4','disable','text','postMessage','object','0.3.22','register','toString','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','/resolve','/assets/enhance-runtime.js','tsc\x20--noEmit','^8.5.1','./dev/index.d.ts','\x20SW\x20unregistered','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20doLoadOverlay()\x20starting...','\x20Explicit\x20disable\x20-\x20exiting','\x20unregisterServiceWorker()\x20called','^4.1.1','active','runtimeURL','^11.1.0','swPath','update','https://assets.enhancelabs.ai/overlay.js','undefined','\x20BLOCKING\x20SW\x20detected:\x20','\x20Resolution\x20failed:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','ready','\x20Sending\x20configuration\x20to\x20SW...','\x20currentOptions\x20exists:\x20','dev/','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','\x20Enhancement\x20mode\x20-\x20ID:\x20','readyState'];_0x2a11=function(){return _0x1ef8dc;};return _0x2a11();}function isInitialized(){const _0x372264=_0x4836a0;return typeof window!==_0x372264(0x22b)&&window[_0x372264(0x1f4)]===!![];}function setInitialized(_0x53dc83){const _0x2d6e4a=_0x4836a0;typeof window!==_0x2d6e4a(0x22b)&&(window[_0x2d6e4a(0x1f4)]=_0x53dc83);}function getOptions(){const _0x5aeffc=_0x4836a0;return typeof window!=='undefined'?window[_0x5aeffc(0x20e)]??null:null;}function setOptions(_0x2f4e1d){const _0x5a8b55=_0x4836a0;typeof window!==_0x5a8b55(0x22b)&&(window[_0x5a8b55(0x20e)]=_0x2f4e1d);}var Enhance={'init'(_0x1f262e){const _0x4ce5e3=_0x4836a0,_0x1f7d1c=Date[_0x4ce5e3(0x282)]();console[_0x4ce5e3(0x285)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x1f7d1c),console['log'](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location']['href']),console[_0x4ce5e3(0x285)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x4ce5e3(0x235)]);if(isInitialized())return console[_0x4ce5e3(0x1d4)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),window[_0x4ce5e3(0x205)]??createController();setInitialized(!![]);const _0x20195e=normalizeOptions(_0x1f262e);setOptions(_0x20195e);const _0x3f28f7=parseEnhancementParams();console[_0x4ce5e3(0x285)](LOG_PREFIX3+'\x20Enhancement\x20params:',JSON['stringify'](_0x3f28f7,null,0x2));if(_0x3f28f7[_0x4ce5e3(0x25e)])return cleanUrlParam(_0x4ce5e3(0x275)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+_0x4ce5e3(0x222)),createController();if(!_0x3f28f7[_0x4ce5e3(0x242)])return console[_0x4ce5e3(0x285)](LOG_PREFIX3+_0x4ce5e3(0x26c)),void unregisterServiceWorker(_0x20195e['swPath']),setupViteErrorListeners(),createController();return console[_0x4ce5e3(0x285)](LOG_PREFIX3+_0x4ce5e3(0x234)+_0x3f28f7[_0x4ce5e3(0x242)]),state[_0x4ce5e3(0x27f)]=!![],void initializeEnhancement(_0x20195e,_0x3f28f7[_0x4ce5e3(0x242)],_0x3f28f7[_0x4ce5e3(0x266)]),createController();}};async function initializeEnhancement(_0x3507f7,_0x2ef2c8,_0x371bd2){const _0x119d1b=_0x4836a0;let _0x546d89=_0x371bd2;if(!_0x546d89){console['log'](LOG_PREFIX3+_0x119d1b(0x1d1)+_0x2ef2c8),_0x546d89=await resolveEnhancementUrl(_0x3507f7,_0x2ef2c8);if(!_0x546d89){console['error'](LOG_PREFIX3+_0x119d1b(0x25c)),state['enabled']=![];return;}}else console[_0x119d1b(0x285)](LOG_PREFIX3+_0x119d1b(0x273)+_0x546d89);persistEnhancement(_0x2ef2c8,_0x546d89),window[_0x119d1b(0x264)]=_0x546d89,console[_0x119d1b(0x285)](LOG_PREFIX3+_0x119d1b(0x24e)),await registerServiceWorker(_0x3507f7),console['log'](LOG_PREFIX3+_0x119d1b(0x1d5)),await loadOverlay({'overlayPath':_0x3507f7[_0x119d1b(0x1d6)],'enableViteHmr':_0x3507f7[_0x119d1b(0x263)][_0x119d1b(0x23a)],'options':_0x3507f7,'onToggle':handleToggle}),console[_0x119d1b(0x285)](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x45d130,_0x15589e){const _0xac267b=_0x4836a0,_0x44f778=_0x45d130[_0xac267b(0x1d9)]+_0xac267b(0x1d2)+_0x15589e+_0xac267b(0x21a);console[_0xac267b(0x285)](LOG_PREFIX3+_0xac267b(0x1d7)+_0x44f778);try{const _0x16284b=await fetch(_0x44f778,{'headers':{'X-Enhance-Publishable-Key':_0x45d130['publishableKey']}});if(!_0x16284b['ok']){const _0x42b8bd=await _0x16284b[_0xac267b(0x213)]();return console[_0xac267b(0x1cd)](LOG_PREFIX3+_0xac267b(0x22d)+_0x16284b['status']+'\x20'+_0x42b8bd),null;}const _0x44b251=await _0x16284b[_0xac267b(0x1e4)](),_0x36c606=''+_0x45d130[_0xac267b(0x1d9)]+_0x44b251['operatingPath'];return console[_0xac267b(0x285)](LOG_PREFIX3+_0xac267b(0x1fb)+_0x36c606),_0x36c606;}catch(_0x25609d){return console[_0xac267b(0x1cd)](LOG_PREFIX3+_0xac267b(0x1da),_0x25609d),null;}}function parseEnhancementParams(){const _0xb47f69=_0x4836a0,_0x2f52a9=new URL(window['location'][_0xb47f69(0x207)]),_0x5f2588=_0x2f52a9[_0xb47f69(0x23e)]['get'](_0xb47f69(0x275))?.[_0xb47f69(0x254)](),_0x3753dd=_0x5f2588==='0'||_0x5f2588===_0xb47f69(0x23d)||_0x5f2588===_0xb47f69(0x1e3);let _0x19def1=_0x2f52a9[_0xb47f69(0x23e)][_0xb47f69(0x243)](_0xb47f69(0x257)),_0x449b78=null;if(_0x19def1)try{const _0x579149=sessionStorage[_0xb47f69(0x236)](STORAGE_KEY_ENHANCEMENT_ID),_0x32c826=sessionStorage[_0xb47f69(0x236)](STORAGE_KEY_ENHANCEMENT_URL);_0x579149===_0x19def1&&_0x32c826&&(_0x449b78=_0x32c826,console['log'](LOG_PREFIX3+_0xb47f69(0x27e)));}catch{}else try{const _0x46439e=sessionStorage[_0xb47f69(0x236)](STORAGE_KEY_ENHANCEMENT_ID),_0x15aa50=sessionStorage[_0xb47f69(0x236)](STORAGE_KEY_ENHANCEMENT_URL);_0x46439e&&_0x15aa50&&(_0x19def1=_0x46439e,_0x449b78=_0x15aa50,console[_0xb47f69(0x285)](LOG_PREFIX3+'\x20Restored\x20enhancement\x20from\x20sessionStorage'),_0x2f52a9[_0xb47f69(0x23e)][_0xb47f69(0x1cc)]('enhancement',_0x19def1),window['history'][_0xb47f69(0x201)](null,document[_0xb47f69(0x238)],_0x2f52a9[_0xb47f69(0x218)]()));}catch{}return{'enhancementId':_0x19def1,'cachedUrl':_0x449b78,'explicitDisable':_0x3753dd};}function persistEnhancement(_0x2c61c3,_0x4eef1b){const _0xf9a53a=_0x4836a0;try{sessionStorage[_0xf9a53a(0x1d3)](STORAGE_KEY_ENHANCEMENT_ID,_0x2c61c3),sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_URL,_0x4eef1b),console[_0xf9a53a(0x285)](LOG_PREFIX3+_0xf9a53a(0x261));}catch{}}function clearPersistedEnhancement(){const _0xb9b9d6=_0x4836a0;try{sessionStorage[_0xb9b9d6(0x1cf)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0xb9b9d6(0x1cf)](STORAGE_KEY_ENHANCEMENT_URL),console[_0xb9b9d6(0x285)](LOG_PREFIX3+_0xb9b9d6(0x25d));}catch{}}function createController(){const _0x38e1b1=_0x4836a0,_0x44f2f6={'enable'(){const _0x1e6b5a=_0x4f5b,_0x53ad50=getOptions();if(!_0x53ad50)return;state[_0x1e6b5a(0x27f)]=!![],void registerServiceWorker(_0x53ad50),void sendConfiguration(),updateOverlay();},'disable'(){const _0x5ba652=_0x4f5b,_0x21939b=getOptions();if(!_0x21939b)return;state[_0x5ba652(0x27f)]=![],state[_0x5ba652(0x241)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x21939b[_0x5ba652(0x228)]);},'status'(){const _0x2101da=_0x4f5b;return{'enabled':state['enabled'],'controlled':state[_0x2101da(0x241)]};}};return typeof window!==_0x38e1b1(0x22b)&&(window[_0x38e1b1(0x205)]=_0x44f2f6),_0x44f2f6;}function handleToggle(){const _0xe450d3=_0x4836a0,_0x190f47=createController();state[_0xe450d3(0x27f)]?_0x190f47[_0xe450d3(0x212)]():_0x190f47['enable']();}function cleanUrlParam(_0x530654){const _0x504e2c=_0x4836a0,_0x1dd619=new URL(window['location']['href']);_0x1dd619[_0x504e2c(0x23e)][_0x504e2c(0x1de)](_0x530654)&&(_0x1dd619[_0x504e2c(0x23e)][_0x504e2c(0x26b)](_0x530654),window['history'][_0x504e2c(0x201)](null,document[_0x504e2c(0x238)],_0x1dd619[_0x504e2c(0x218)]()));}function _0x4f5b(_0x1c17f4,_0x1120c6){_0x1c17f4=_0x1c17f4-0x1c7;const _0x2a1189=_0x2a11();let _0x4f5b60=_0x2a1189[_0x1c17f4];return _0x4f5b60;}function setupViteErrorListeners(){const _0x4e3618=_0x4836a0;import.meta.hot&&(import.meta.hot['on'](_0x4e3618(0x262),_0x559fe2=>{const _0x221f6d=_0x4e3618;state[_0x221f6d(0x203)]={'message':_0x559fe2['err'][_0x221f6d(0x253)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x5dbe38=_0x4e3618;state[_0x5dbe38(0x203)]&&(state['appError']=null,updateOverlay());}));}var package_default={'name':_0x4836a0(0x208),'version':_0x4836a0(0x216),'type':_0x4836a0(0x24b),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x4836a0(0x27d),'main':'./dev/index.js','module':_0x4836a0(0x1ff),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x4836a0(0x21e),'import':_0x4836a0(0x1ff)},'./vite':{'types':'./dev/vite/index.d.ts','import':'./dev/vite/index.js'}},'files':[_0x4836a0(0x232)],'bin':{'enhance-sandbox':_0x4836a0(0x1f1)},'scripts':{'typecheck':_0x4836a0(0x21c),'dev':_0x4836a0(0x27c),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x4836a0(0x219),'dev:staging:build':_0x4836a0(0x274),'build':_0x4836a0(0x270),'build:release':_0x4836a0(0x1fe),'build:release:dev':_0x4836a0(0x233),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x4836a0(0x227),'zod':_0x4836a0(0x1e5)},'devDependencies':{'@types/node':_0x4836a0(0x1c8),'javascript-obfuscator':_0x4836a0(0x224),'tsup':_0x4836a0(0x21d),'vite':_0x4836a0(0x211)},'publishConfig':{'access':_0x4836a0(0x239)}},DEFAULT_SERVICE_WORKER_PATH=_0x4836a0(0x28a),DEFAULT_RUNTIME_PATH=_0x4836a0(0x21b),PACKAGE_VERSION=typeof package_default[_0x4836a0(0x277)]===_0x4836a0(0x1d8)?package_default[_0x4836a0(0x277)]:_0x4836a0(0x260);function normalizeAssetPath(_0x496d23){const _0x5e2961=_0x4836a0;if(!_0x496d23)return _0x496d23;if(_0x496d23[_0x5e2961(0x258)]('http://')||_0x496d23[_0x5e2961(0x258)]('https://'))return _0x496d23;const _0x2c957d=_0x496d23['replace'](/^\.\//,'');return _0x2c957d['startsWith']('/')?_0x2c957d:'/'+_0x2c957d;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x224b3e){const _0x579f2b=_0x4836a0;return Enhance[_0x579f2b(0x1f3)](_0x224b3e);},'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 _0x4c0127=_0x4836a0;return Enhance2[_0x4c0127(0x1ea)]();}function runtimeURL(){const _0x172ae5=_0x4836a0;return Enhance2[_0x172ae5(0x226)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x3856e5,_0x224e23){const _0xb3a5f4=_0xb8f7,_0x130aef=_0x3856e5();while(!![]){try{const _0x2d21f7=parseInt(_0xb3a5f4(0x27b))/0x1*(parseInt(_0xb3a5f4(0x1ec))/0x2)+parseInt(_0xb3a5f4(0x249))/0x3*(-parseInt(_0xb3a5f4(0x22d))/0x4)+-parseInt(_0xb3a5f4(0x25a))/0x5*(parseInt(_0xb3a5f4(0x287))/0x6)+-parseInt(_0xb3a5f4(0x240))/0x7*(-parseInt(_0xb3a5f4(0x295))/0x8)+parseInt(_0xb3a5f4(0x20a))/0x9+-parseInt(_0xb3a5f4(0x1f5))/0xa*(parseInt(_0xb3a5f4(0x234))/0xb)+parseInt(_0xb3a5f4(0x241))/0xc*(parseInt(_0xb3a5f4(0x1a4))/0xd);if(_0x2d21f7===_0x224e23)break;else _0x130aef['push'](_0x130aef['shift']());}catch(_0xb637ae){_0x130aef['push'](_0x130aef['shift']());}}}(_0x4322,0x9dae8));function _0x4322(){const _0x5d21b3=['/__vite/client','cors','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20for\x20','get','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','defineProperty','default','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\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','permissive','test','search','default-src\x20\x27self\x27\x20blob:\x20data:','full','\x20\x20\x20\x20\x20\x20try\x20{','debug','text/html','skipWaiting','frame-ancestors\x20','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','push','/vite/client','\x20\x20\x20\x20\x20\x20}','\x5cu003c','searchParams','cross-origin-resource-policy','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','stylesheet','function','\x20\x20\x20Not\x20OK\x20(','3554RSzSww','\x20Bootstrap\x20options:','/__snowpack__','backendUrl','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','x-enhance-document-source','/webpack-dev-server','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','10IMUdwv','/__parcel_hmr','stringify','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','length','has','\x20\x20\x20Applying\x20permissive\x20CSP...','info','\x20\x20\x20Rewriting\x20entry\x20references...','\x20\x20try\x20{','\x20\x20\x20enhancementUrl:\x20','enumerable','object','mode','\x20\x20\x20\x20\x20\x20return\x20false;','vite-hmr','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','Enhancement\x20CORS\x20blocked','hash','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','set-cookie2','6936624ubEylD','no-store','match','config','/auth/callback','\x20\x20\x20securityMode:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','\x20\x20}\x20catch\x20(error)\x20{','\x20FETCH:\x20','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','font','?import','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20\x20BYPASS:\x20','map','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','addEventListener','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20\x20\x20\x20return;','opaque','replace','http://','enhance:disable','url','x-enhance-routing','toString','x-enhance-enhancement','worker-src\x20\x27self\x27\x20blob:','type','4912972byzDCM','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x5cu003e','text','overlay','[set]','include','6391759xhsvbK','[Enhance\x20SW]','data-enhance-runtime-bootstrap','\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','Enhancement\x20document\x20CORS\x20blocked','some','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20shouldRouteAsset:\x20','$&\x0a',',\x20type:\x20','publishableKey','3486jJEpDH','2762808VKZbOt','clients','set-cookie','\x20\x20\x20shouldInjectOverlay:\x20','src','image','add','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','3LqEGTc','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','__esModule','securityMode','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20Invalid\x20enhancement\x20URL:\x20','/_next/webpack-hmr','HEAD','x-enhance-document','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','install','/assets/enhance-runtime.js','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','170vtbgab','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','hasOwnProperty','media-src\x20*\x20data:\x20blob:','host','data','enhancement','/webpackhotmiddleware','production','headers','cross-origin-opener-policy','\x20\x20\x20\x20\x20\x20','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','none','\x20injectRuntimeBootstrap()\x20called','/sw-enhance.js','delete','claim','status','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','endsWith','style','\x20\x20\x20\x20}','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','modulepreload','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20\x20}','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','https://assets.enhancelabs.ai/overlay.js','\x20Document\x20rewrite\x20failed:','14bgPXMX','GET','Enhancement\x20miss\x20','\x20\x20\x20overlayPath:\x20','enhancement-document','clone','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','origin','/__vite_ping','pathname','custom','96858cbawqV','runtimeScriptPath','slice','sharedworker','content-security-policy','toLowerCase','</script>','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','img-src\x20*\x20data:\x20blob:','/sockjs-node','\x20\x20\x20Fetching\x20from\x20enhancement...','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20\x20\x20\x20\x20}','follow','16984QYMxit','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','join','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','redirect','https://','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','enhancementUrl','\x20\x20\x20Enhancement\x20URL:\x20','method','error','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','Enhancement\x20fetch\x20failed','href','location','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','log','connect-src\x20*','/__webpack_hmr','\x20\x20\x20Document\x20fetch\x20error:','X-Enhance-Publishable-Key','statusText','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x0a</head>','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','overlayEnableViteHmr','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','access-control-expose-headers','trim','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20source:\x20','enhancementBase','content-length','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','\x20\x20\x20Enhancement\x20HIT:\x20','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','startsWith','/snowpack/hmr','\x20\x20\x20Response:\x20','})();','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20CONFIG\x20received','content-type','\x20\x20\x20Content-Type:\x20','65GTsCmK','[Enhance\x20SW\x20Document]','set','includes','(function(){','callbackBypass',')\x20-\x20returning\x20null','waitUntil','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','[not\x20set]','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20chars','[Enhance\x20SW\x20Bootstrap]','\x20Navigation:\x20','overlayPath','hit','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20INSTALL','call','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','navigate','[Enhance\x20SW\x20Routing]','\x20Service\x20Worker\x20loaded','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','access-control-allow-origin','\x20fetchEnhancementDocument:\x20','value','callbackBypassNormalized','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','getOwnPropertyNames','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection'];_0x4322=function(){return _0x5d21b3;};return _0x4322();}function _0xb8f7(_0x5f5df1,_0x4036ee){_0x5f5df1=_0x5f5df1-0x182;const _0x4322ac=_0x4322();let _0xb8f746=_0x4322ac[_0x5f5df1];return _0xb8f746;}var EnhanceSW=((()=>{const _0x4f311b=_0xb8f7;var _0x42dd9d=Object[_0x4f311b(0x1d1)],_0x2c0169=Object['getOwnPropertyDescriptor'],_0x3abb8a=Object[_0x4f311b(0x1c3)],_0x56723b=Object['prototype'][_0x4f311b(0x25d)],_0x1bb505=(_0x2b0944,_0x464bc6)=>{for(var _0x6b0ef4 in _0x464bc6)_0x42dd9d(_0x2b0944,_0x6b0ef4,{'get':_0x464bc6[_0x6b0ef4],'enumerable':!![]});},_0x4fd390=(_0x2e3069,_0x38a31e,_0x3238a8,_0x38be34)=>{const _0x3840bf=_0x4f311b;if(_0x38a31e&&typeof _0x38a31e===_0x3840bf(0x201)||typeof _0x38a31e===_0x3840bf(0x1ea)){for(let _0x105bc2 of _0x3abb8a(_0x38a31e))if(!_0x56723b[_0x3840bf(0x1b8)](_0x2e3069,_0x105bc2)&&_0x105bc2!==_0x3238a8)_0x42dd9d(_0x2e3069,_0x105bc2,{'get':()=>_0x38a31e[_0x105bc2],'enumerable':!(_0x38be34=_0x2c0169(_0x38a31e,_0x105bc2))||_0x38be34[_0x3840bf(0x200)]});}return _0x2e3069;},_0x1d1ce2=_0x582e3a=>_0x4fd390(_0x42dd9d({},_0x4f311b(0x24c),{'value':!![]}),_0x582e3a),_0x3002bc={};_0x1bb505(_0x3002bc,{'log':()=>_0x140656});var _0x30ff9b='enhance:configure',_0x5b4f3d=_0x4f311b(0x226);function _0x24e8f6(_0x36a8c6){if(!_0x36a8c6['startsWith']('/'))return'/'+_0x36a8c6;return _0x36a8c6;}function _0x2d45c9(_0x238e81,_0x337d71){const _0x112932=_0x4f311b,_0x4a526b=new URL(_0x238e81[_0x112932(0x229)]()),_0x124552=_0x4a526b[_0x112932(0x285)][_0x112932(0x270)]('/')?_0x4a526b[_0x112932(0x285)][_0x112932(0x289)](0x0,-0x1):_0x4a526b[_0x112932(0x285)],_0x150cc6=_0x337d71[_0x112932(0x285)][_0x112932(0x19b)]('/')?_0x337d71[_0x112932(0x285)]:'/'+_0x337d71[_0x112932(0x285)];return _0x4a526b[_0x112932(0x285)]=(''+_0x124552+_0x150cc6)['replace'](/\/+/g,'/'),_0x4a526b['search']=_0x337d71[_0x112932(0x1d7)],_0x4a526b[_0x112932(0x207)]='',_0x4a526b;}var _0x1f9c69=_0x4f311b(0x1bb),_0x3bad13=_0x4f311b(0x18a),_0x43273a=new Set(['script',_0x4f311b(0x271),_0x4f311b(0x218),_0x4f311b(0x246),'worker',_0x4f311b(0x28a),_0x4f311b(0x274)]);function _0x41f589(_0x4cf626){const _0x51567c=_0x4f311b,_0x1f8c79=_0x4cf626[_0x51567c(0x2a0)]===_0x51567c(0x27c)||_0x4cf626['method']===_0x51567c(0x251);return _0x1f8c79;}function _0x10d951(_0x19a430,_0xa820d){const _0x1bb1cf=_0x4f311b,_0x523d8f=_0x24e8f6(_0xa820d),_0x50b456=_0x19a430[_0x1bb1cf(0x1c1)][_0x1bb1cf(0x23a)](_0x88eae0=>_0x523d8f[_0x1bb1cf(0x19b)](_0x88eae0));return _0x50b456;}function _0xc77632(_0x3205f1,_0x3711cb,_0x3e83aa){const _0xc0148c=_0x4f311b,_0x4bef37=_0x3711cb['destination'];if(!_0x4bef37||!_0x43273a[_0xc0148c(0x1fa)](_0x4bef37))return![];if(_0x5ed12f(_0x3205f1,_0x3e83aa))return console[_0xc0148c(0x186)](_0x1f9c69+_0xc0148c(0x23c)+_0x3e83aa[_0xc0148c(0x285)]+_0xc0148c(0x275)),![];if(_0x121f31(_0x3205f1,_0x3e83aa))return console[_0xc0148c(0x186)](_0x1f9c69+_0xc0148c(0x23c)+_0x3e83aa[_0xc0148c(0x285)]+_0xc0148c(0x2a2)),![];if(_0x3e83aa[_0xc0148c(0x283)]!==self['location'][_0xc0148c(0x283)])return![];return!![];}async function _0x3926b3(_0x10b1c9,_0x5d06d8,_0x224853){const _0x3df206=_0x4f311b;console[_0x3df206(0x186)](_0x1f9c69+'\x20fetchFromEnhancement:\x20'+_0x224853[_0x3df206(0x285)]);if(!_0x10b1c9[_0x3df206(0x195)])return console['log'](_0x1f9c69+_0x3df206(0x24b)),null;const _0x38493f=_0x6a3797(_0x10b1c9,_0x224853);console['log'](_0x1f9c69+_0x3df206(0x29f)+_0x38493f[_0x3df206(0x229)]());const _0x38658d=new Headers(_0x5d06d8[_0x3df206(0x264)]);_0x38658d[_0x3df206(0x1a6)](_0x3df206(0x228),_0x3df206(0x261)),_0x38658d['delete'](_0x3df206(0x25f));_0x10b1c9[_0x3df206(0x23f)]&&_0x38658d[_0x3df206(0x1a6)](_0x3bad13,_0x10b1c9[_0x3df206(0x23f)]);const _0x5d22aa=new Request(_0x38493f[_0x3df206(0x229)](),{'method':_0x5d06d8[_0x3df206(0x2a0)],'headers':_0x38658d,'credentials':_0x3df206(0x233),'redirect':_0x5d06d8[_0x3df206(0x29b)],'cache':_0x3df206(0x1d2),'mode':_0x3df206(0x1c7)});try{console[_0x3df206(0x186)](_0x1f9c69+_0x3df206(0x291));const _0x405b82=await fetch(_0x5d22aa);console[_0x3df206(0x186)](_0x1f9c69+_0x3df206(0x19d)+_0x405b82[_0x3df206(0x26e)]+'\x20'+_0x405b82[_0x3df206(0x18b)]+_0x3df206(0x23e)+_0x405b82['type']);if(_0x405b82[_0x3df206(0x22c)]==='opaque')return console[_0x3df206(0x186)](_0x1f9c69+_0x3df206(0x1a0)),_0x140656('info',_0x3df206(0x206),_0x38493f['toString']()),null;if(!_0x405b82['ok'])return console[_0x3df206(0x186)](_0x1f9c69+'\x20\x20\x20Not\x20OK\x20('+_0x405b82['status']+_0x3df206(0x1aa)),_0x140656(_0x3df206(0x1db),_0x3df206(0x27d)+_0x405b82[_0x3df206(0x26e)]+'\x20for\x20'+_0x38493f[_0x3df206(0x285)]),null;return console[_0x3df206(0x186)](_0x1f9c69+_0x3df206(0x1f8)),_0x133e84(_0x405b82,_0x5d06d8[_0x3df206(0x2a0)]);}catch(_0x3df791){return console[_0x3df206(0x2a1)](_0x1f9c69+'\x20\x20\x20Fetch\x20error:',_0x3df791),_0x140656(_0x3df206(0x1fc),_0x3df206(0x2a3),_0x3df791),null;}}async function _0x5b7a2e(_0x1b40bf,_0x5ba895){const _0x438c09=_0x4f311b,_0x28ebd6=new URL(_0x5ba895[_0x438c09(0x227)]);console[_0x438c09(0x186)](_0x1f9c69+_0x438c09(0x1bf)+_0x28ebd6[_0x438c09(0x285)]+_0x28ebd6['search']);if(!_0x1b40bf[_0x438c09(0x195)])return console[_0x438c09(0x186)](_0x1f9c69+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null'),null;const _0x110aab=_0x6a3797(_0x1b40bf,_0x28ebd6);console[_0x438c09(0x186)](_0x1f9c69+_0x438c09(0x1cf)+_0x110aab[_0x438c09(0x229)]());const _0x211bf3=new Headers(_0x5ba895['headers']);_0x211bf3['set'](_0x438c09(0x228),_0x438c09(0x27f)),_0x211bf3[_0x438c09(0x26c)](_0x438c09(0x25f)),_0x211bf3['delete'](_0x438c09(0x196));_0x1b40bf[_0x438c09(0x23f)]&&_0x211bf3[_0x438c09(0x1a6)](_0x3bad13,_0x1b40bf[_0x438c09(0x23f)]);const _0x52e867=new Request(_0x110aab[_0x438c09(0x229)](),{'method':_0x438c09(0x27c),'headers':_0x211bf3,'credentials':_0x438c09(0x233),'redirect':_0x438c09(0x294),'cache':_0x438c09(0x1d2),'mode':_0x438c09(0x1c7)});try{console[_0x438c09(0x186)](_0x1f9c69+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x389989=await fetch(_0x52e867);console['log'](_0x1f9c69+'\x20\x20\x20Response:\x20'+_0x389989[_0x438c09(0x26e)]+'\x20'+_0x389989[_0x438c09(0x18b)]+_0x438c09(0x23e)+_0x389989['type']),console[_0x438c09(0x186)](_0x1f9c69+_0x438c09(0x1a3)+_0x389989[_0x438c09(0x264)][_0x438c09(0x1ce)](_0x438c09(0x1a2)));if(_0x389989[_0x438c09(0x22c)]===_0x438c09(0x223))return console[_0x438c09(0x186)](_0x1f9c69+_0x438c09(0x1a0)),_0x140656(_0x438c09(0x1fc),_0x438c09(0x239),_0x110aab[_0x438c09(0x229)]()),null;if(!_0x389989['ok'])return console[_0x438c09(0x186)](_0x1f9c69+_0x438c09(0x1eb)+_0x389989[_0x438c09(0x26e)]+_0x438c09(0x1aa)),_0x140656(_0x438c09(0x1db),'Enhancement\x20document\x20miss\x20'+_0x389989[_0x438c09(0x26e)]+_0x438c09(0x1cd)+_0x110aab[_0x438c09(0x285)]),null;if(!_0xd3d728(_0x389989))return console['log'](_0x1f9c69+_0x438c09(0x208)),null;return console['log'](_0x1f9c69+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document'),_0x133e84(_0x389989,_0x438c09(0x27c));}catch(_0x4f9cea){return console['error'](_0x1f9c69+_0x438c09(0x189),_0x4f9cea),_0x140656(_0x438c09(0x1fc),'Enhancement\x20document\x20fetch\x20failed',_0x4f9cea),null;}}function _0x6a3797(_0x300204,_0x487efa){const _0xec0cff=_0x4f311b;if(!_0x300204[_0xec0cff(0x195)])throw new Error(_0xec0cff(0x18e));return _0x2d45c9(_0x300204['enhancementBase'],_0x487efa);}function _0x133e84(_0x292619,_0x16893d){const _0x233c82=_0x4f311b,_0x599071=_0x292619[_0x233c82(0x280)](),_0x33f0ed=new Headers(_0x599071['headers']);_0x33f0ed['delete'](_0x233c82(0x1be)),_0x33f0ed['delete']('access-control-allow-credentials'),_0x33f0ed[_0x233c82(0x26c)](_0x233c82(0x191)),_0x33f0ed[_0x233c82(0x1a6)](_0x233c82(0x22a),_0x233c82(0x1b5)),_0x3d3310(_0x33f0ed);const _0x514ce2=_0x16893d===_0x233c82(0x251)?null:_0x599071['body'];return new Response(_0x514ce2,{'status':_0x599071[_0x233c82(0x26e)],'statusText':_0x599071[_0x233c82(0x18b)],'headers':_0x33f0ed});}function _0xd3d728(_0x294e70){const _0x20c595=_0x4f311b,_0x58b6f7=_0x294e70[_0x20c595(0x264)]['get']('content-type');return _0x58b6f7!=null&&_0x58b6f7['includes'](_0x20c595(0x1dc));}function _0x5ed12f(_0x58827c,_0x3c6124){return _0x58ed1a(_0x3c6124,_0x58827c['overlayPath']);}function _0x121f31(_0x10192c,_0x537fcd){const _0x58b943=_0x4f311b;return _0x5c4c47(_0x537fcd,_0x10192c[_0x58b943(0x288)]);}function _0x58ed1a(_0x47ec23,_0x146c7a){const _0x31414b=_0x4f311b;if(!_0x146c7a)return![];if(_0x146c7a['startsWith'](_0x31414b(0x225))||_0x146c7a[_0x31414b(0x19b)](_0x31414b(0x29c)))return _0x47ec23[_0x31414b(0x2a4)]===_0x146c7a;const _0x145785=_0x4558d8(_0x146c7a);if(!_0x145785)return![];const _0x34ca61=''+_0x47ec23[_0x31414b(0x285)]+_0x47ec23[_0x31414b(0x1d7)];if(_0x34ca61===_0x145785)return!![];if(_0x47ec23['search']===_0x31414b(0x219))return _0x47ec23[_0x31414b(0x285)]===_0x145785;return![];}function _0x5c4c47(_0xd116f9,_0x800646){const _0x3dd975=_0x4f311b;if(!_0x800646)return![];if(_0x800646['startsWith'](_0x3dd975(0x225))||_0x800646[_0x3dd975(0x19b)]('https://'))return _0xd116f9[_0x3dd975(0x2a4)]===_0x800646;const _0x848594=_0x4558d8(_0x800646);if(!_0x848594)return![];const _0x1152b6=''+_0xd116f9[_0x3dd975(0x285)]+_0xd116f9[_0x3dd975(0x1d7)];return _0x1152b6===_0x848594;}function _0x4558d8(_0x457dc9){const _0x1551b1=_0x4f311b;if(!_0x457dc9)return _0x457dc9;if(_0x457dc9['startsWith'](_0x1551b1(0x225))||_0x457dc9[_0x1551b1(0x19b)](_0x1551b1(0x29c)))return _0x457dc9;const _0x379b9b=_0x457dc9[_0x1551b1(0x224)](/^\.\//,'');if(_0x379b9b[_0x1551b1(0x19b)]('/'))return _0x379b9b;return'/'+_0x379b9b;}function _0x3d3310(_0x264e39){const _0x5a78fb=_0x4f311b;_0x264e39['delete'](_0x5a78fb(0x243)),_0x264e39['delete']('set-cookie2');}function _0x4ee634(_0x15609e){const _0xd0abb4=_0x4f311b,_0x29082f=[_0xd0abb4(0x1d8),_0xd0abb4(0x292),_0xd0abb4(0x22e),_0xd0abb4(0x28f),'font-src\x20*\x20data:',_0xd0abb4(0x187),_0xd0abb4(0x25e),_0xd0abb4(0x22b),'object-src\x20\x27none\x27'],_0x35c69f=_0x490a3a(_0x15609e);return _0x35c69f&&_0x29082f[_0xd0abb4(0x1e2)](_0x35c69f),_0x29082f['join'](';\x20');}function _0x3a1f1c(_0x90bd6c){const _0x3c1704=_0x4f311b;_0x90bd6c[_0x3c1704(0x26c)](_0x3c1704(0x243)),_0x90bd6c[_0x3c1704(0x26c)](_0x3c1704(0x209));}function _0x490a3a(_0x59bf63){const _0x44bd0e=_0x4f311b;if(!_0x59bf63)return null;const _0x158d30=_0x59bf63[_0x44bd0e(0x20c)](/frame-ancestors\s+([^;]+)/i);if(!_0x158d30)return null;return _0x44bd0e(0x1de)+_0x158d30[0x1][_0x44bd0e(0x192)]();}function _0x13ebe5(_0x1e6ad4,_0x21e9a1){const _0x24f761=_0x4f311b;if(/<head[^>]*>/i['test'](_0x1e6ad4)){const _0x3dbcca=_0x1e6ad4['match'](/<head[^>]*>/i);if(_0x3dbcca){const _0x493aee=_0x3dbcca[0x0];return _0x1e6ad4[_0x24f761(0x224)](_0x493aee,_0x493aee+'\x0a'+_0x21e9a1);}}if(/<\/head>/i[_0x24f761(0x1d6)](_0x1e6ad4))return _0x1e6ad4[_0x24f761(0x224)](/<\/head>/i,_0x21e9a1+_0x24f761(0x18d));if(/<body\b[^>]*>/i[_0x24f761(0x1d6)](_0x1e6ad4))return _0x1e6ad4[_0x24f761(0x224)](/<body\b[^>]*>/i,_0x24f761(0x23d)+_0x21e9a1);if(/<\/body>/i[_0x24f761(0x1d6)](_0x1e6ad4))return _0x1e6ad4[_0x24f761(0x224)](/<\/body>/i,_0x21e9a1+'\x0a</body>');return _0x21e9a1+'\x0a'+_0x1e6ad4;}var _0x3724c5=[_0x4f311b(0x204)],_0x14f79a=['/@vite/client',_0x4f311b(0x1c6),_0x4f311b(0x1e3),_0x4f311b(0x284),_0x4f311b(0x290),_0x4f311b(0x1f3),'/webpack-hmr',_0x4f311b(0x262),'/webpack-hot-middleware',_0x4f311b(0x188),_0x4f311b(0x250),'/parcel-hmr',_0x4f311b(0x1f6),_0x4f311b(0x1ee),_0x4f311b(0x19c)];function _0x17e075(_0x581125,_0x16cbb9){const _0x13a0f4=_0x4e29c5(_0x581125);if(!_0x13a0f4)return _0x16cbb9;return _0x13ebe5(_0x16cbb9,_0x13a0f4);}function _0x4e29c5(_0x477a31){const _0x25982d=_0x4f311b;if(!_0x477a31[_0x25982d(0x195)])return null;const _0xa33a7b=_0x477a31[_0x25982d(0x195)]['toString'](),_0x2e5873=_0x1b26f3(_0x3724c5),_0x57ed17=_0x1b26f3(_0x14f79a),_0xa1e7c4=[_0x25982d(0x1af),_0x25982d(0x1a8),_0x25982d(0x1fe),_0x25982d(0x238)+JSON[_0x25982d(0x1f7)](_0xa33a7b)+');',_0x25982d(0x278),_0x25982d(0x24e),_0x25982d(0x222),'\x20\x20\x20\x20}',_0x25982d(0x1f0)+JSON['stringify'](_0x2e5873)+');',_0x25982d(0x183)+JSON['stringify'](_0x57ed17)+';',_0x25982d(0x19f),_0x25982d(0x296),_0x25982d(0x24a),_0x25982d(0x1bd),_0x25982d(0x237),_0x25982d(0x1df),_0x25982d(0x23b),_0x25982d(0x1c2),_0x25982d(0x1b9),_0x25982d(0x1b6),_0x25982d(0x266),_0x25982d(0x1f1),'\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{',_0x25982d(0x25c),'\x20\x20\x20\x20\x20\x20}',_0x25982d(0x298),_0x25982d(0x18c),_0x25982d(0x215),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{',_0x25982d(0x29a),_0x25982d(0x293),_0x25982d(0x1e4),_0x25982d(0x1ae),_0x25982d(0x281),_0x25982d(0x217),_0x25982d(0x29a),_0x25982d(0x293),'\x20\x20\x20\x20\x20\x20}',_0x25982d(0x203),'\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying',_0x25982d(0x277),_0x25982d(0x282),_0x25982d(0x211),'\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20\x20};',_0x25982d(0x273),_0x25982d(0x1da),_0x25982d(0x21e),_0x25982d(0x21f),_0x25982d(0x1cc),_0x25982d(0x1ca),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x25982d(0x1e0),'\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','\x20\x20\x20\x20\x20\x20}',_0x25982d(0x185),_0x25982d(0x237),_0x25982d(0x184),_0x25982d(0x1e1),_0x25982d(0x1d3),'\x20\x20\x20\x20try\x20{',_0x25982d(0x19a),_0x25982d(0x25b),_0x25982d(0x197),_0x25982d(0x272),_0x25982d(0x248),_0x25982d(0x21a),_0x25982d(0x212),_0x25982d(0x205),'\x20\x20}','})();',_0x25982d(0x28d)];return _0xa1e7c4[_0x25982d(0x297)]('\x0a');}function _0x1b26f3(_0xf7362d){const _0x517824=_0x4f311b,_0x4489f5=new Set(),_0x1f826c=[];for(const _0x1315dd of _0xf7362d){const _0x13a392=_0x1315dd[_0x517824(0x28c)]();if(_0x4489f5[_0x517824(0x1fa)](_0x13a392))continue;_0x4489f5[_0x517824(0x247)](_0x13a392),_0x1f826c[_0x517824(0x1e2)](_0x13a392);}return _0x1f826c;}var _0x1a9b41=_0x4f311b(0x1b2);function _0x50d6f9(_0x18b087,_0x3e78be){const _0x5a0a70=_0x4f311b;console[_0x5a0a70(0x186)](_0x1a9b41+_0x5a0a70(0x26a)),console[_0x5a0a70(0x186)](_0x1a9b41+'\x20\x20\x20runtimeScriptPath:\x20'+_0x18b087[_0x5a0a70(0x288)]),console[_0x5a0a70(0x186)](_0x1a9b41+_0x5a0a70(0x27e)+_0x18b087[_0x5a0a70(0x1b4)]);if(_0x3e78be[_0x5a0a70(0x1a7)](_0x5a0a70(0x236)))return console['log'](_0x1a9b41+_0x5a0a70(0x1c9)),_0x3e78be;const _0x45709a=_0x451b44(_0x18b087);if(!_0x45709a)return console['log'](_0x1a9b41+_0x5a0a70(0x258)),_0x3e78be;console[_0x5a0a70(0x186)](_0x1a9b41+_0x5a0a70(0x1ac)+_0x45709a[_0x5a0a70(0x1f9)]+'\x20chars)');const _0x300fde=_0x13ebe5(_0x3e78be,_0x45709a);return console[_0x5a0a70(0x186)](_0x1a9b41+_0x5a0a70(0x257)),_0x300fde;}function _0x451b44(_0x1bd845){const _0x1426c1=_0x4f311b,_0xb97b28=_0x1bd845[_0x1426c1(0x288)];if(!_0xb97b28)return console[_0x1426c1(0x186)](_0x1a9b41+_0x1426c1(0x1e8)),null;const _0x198647=_0x43f302(_0x1bd845);console[_0x1426c1(0x186)](_0x1a9b41+_0x1426c1(0x1ed),JSON[_0x1426c1(0x1f7)](_0x198647,null,0x2));const _0x262057=_0x225cd7(_0x198647),_0x31a544=JSON[_0x1426c1(0x1f7)](_0xb97b28),_0x1fd274=['<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','(async\x20()\x20=>\x20{',_0x1426c1(0x1fe),_0x1426c1(0x1c4)+_0x31a544+';',_0x1426c1(0x1b0),_0x1426c1(0x1cb),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);',_0x1426c1(0x210),_0x1426c1(0x221),_0x1426c1(0x253),_0x1426c1(0x216),_0x1426c1(0x222),_0x1426c1(0x272),_0x1426c1(0x21d)+_0x262057+',\x20null,\x202));','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init('+_0x262057+');',_0x1426c1(0x198),_0x1426c1(0x214),_0x1426c1(0x26f),_0x1426c1(0x1c8),_0x1426c1(0x1d4),_0x1426c1(0x268),_0x1426c1(0x29d),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x1426c1(0x272),_0x1426c1(0x1d0),_0x1426c1(0x212),_0x1426c1(0x259),_0x1426c1(0x276),_0x1426c1(0x19e),_0x1426c1(0x28d)];return _0x1fd274[_0x1426c1(0x297)]('\x0a');}function _0x43f302(_0x546c19){const _0x4c9d9b=_0x4f311b,_0x8cf039={'publishableKey':_0x546c19[_0x4c9d9b(0x23f)],'callbackBypass':_0x546c19[_0x4c9d9b(0x1a9)],'__development':{'enableOverlayHmr':_0x546c19[_0x4c9d9b(0x18f)],'overlayPath':_0x546c19[_0x4c9d9b(0x1b4)],'security':_0x546c19[_0x4c9d9b(0x24d)],'backendUrl':_0x546c19[_0x4c9d9b(0x1ef)]}};return _0x8cf039;}function _0x225cd7(_0x131bcb){const _0x5327fa=_0x4f311b;return JSON['stringify'](_0x131bcb)[_0x5327fa(0x224)](/</g,_0x5327fa(0x1e5))[_0x5327fa(0x224)](/>/g,_0x5327fa(0x22f));}function _0x576b2d(_0x1aac1e,_0x5e07f1){const _0x324492=_0x4f311b,_0x47f7e0=_0x246d67=>_0x166a78(_0x1aac1e,_0x246d67),_0x1b1bea=_0x1dc6c4=>_0x37df96(_0x1aac1e,_0x1dc6c4);return _0x5e07f1['replace'](/<script\b[^>]*>/gi,_0x47f7e0)[_0x324492(0x224)](/<link\b[^>]*>/gi,_0x1b1bea);}function _0x5cf0af(_0x2e074b){return _0x2e074b['replace'](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x166a78(_0x1155bc,_0x4cab6c){const _0x3aeef8=_0x4f311b,_0x8c72de=_0xf7d320(_0x4cab6c,_0x3aeef8(0x245));if(!_0x8c72de)return _0x4cab6c;const _0x3e26cc=_0x2b699f(_0x1155bc,_0x8c72de['value']);if(!_0x3e26cc||_0x3e26cc===_0x8c72de[_0x3aeef8(0x1c0)])return _0x4cab6c;const _0x562e7e=_0x8c72de['full'][_0x3aeef8(0x224)](_0x8c72de[_0x3aeef8(0x1c0)],_0x3e26cc);return _0x4cab6c[_0x3aeef8(0x224)](_0x8c72de[_0x3aeef8(0x1d9)],_0x562e7e);}function _0x37df96(_0x575a3e,_0x5ddee2){const _0x2ab78d=_0x4f311b,_0x32b242=_0x5ddee2[_0x2ab78d(0x20c)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x32b242)return _0x5ddee2;const _0x40fbb9=_0x32b242[0x2][_0x2ab78d(0x28c)]();if(_0x40fbb9!==_0x2ab78d(0x1e9)&&_0x40fbb9!==_0x2ab78d(0x274))return _0x5ddee2;const _0x1ea9e5=_0xf7d320(_0x5ddee2,_0x2ab78d(0x2a4));if(!_0x1ea9e5)return _0x5ddee2;const _0x4ff893=_0x2b699f(_0x575a3e,_0x1ea9e5['value']);if(!_0x4ff893||_0x4ff893===_0x1ea9e5['value'])return _0x5ddee2;const _0x3dba20=_0x1ea9e5['full'][_0x2ab78d(0x224)](_0x1ea9e5['value'],_0x4ff893);return _0x5ddee2[_0x2ab78d(0x224)](_0x1ea9e5[_0x2ab78d(0x1d9)],_0x3dba20);}function _0xf7d320(_0x1ee192,_0xe4f387){const _0x744d5=_0x4f311b,_0x5c293a=new RegExp(_0xe4f387+_0x744d5(0x1f4),'i'),_0x539d46=_0x1ee192[_0x744d5(0x20c)](_0x5c293a);if(!_0x539d46)return null;return{'full':_0x539d46[0x0],'value':_0x539d46[0x2]};}function _0x2b699f(_0x6aabd,_0x3b7f3c){const _0x556519=_0x4f311b,_0x3f0671=_0x147da3(_0x3b7f3c);if(!_0x3f0671)return null;if(_0x3f0671['origin']===self[_0x556519(0x182)][_0x556519(0x283)])return''+_0x3f0671[_0x556519(0x285)]+_0x3f0671[_0x556519(0x1d7)];return null;}function _0x147da3(_0x184ae6){try{return new URL(_0x184ae6,self['location']['origin']);}catch{return null;}}var _0x3c5473=_0x4f311b(0x1a5);async function _0x163718(_0x1a1ce0,_0x4733d1,_0x3f8872,_0x55aaad=!![]){const _0x203ce9=_0x4f311b;console[_0x203ce9(0x186)](_0x3c5473+'\x20rewriteDocument()\x20called'),console[_0x203ce9(0x186)](_0x3c5473+_0x203ce9(0x194)+_0x3f8872),console[_0x203ce9(0x186)](_0x3c5473+_0x203ce9(0x244)+_0x55aaad),console['log'](_0x3c5473+_0x203ce9(0x20f)+_0x1a1ce0[_0x203ce9(0x24d)]);const _0x24b4ce=_0x4733d1[_0x203ce9(0x280)](),_0x5b93b6=await _0x24b4ce[_0x203ce9(0x230)]();console[_0x203ce9(0x186)](_0x3c5473+'\x20\x20\x20Original\x20HTML\x20length:\x20'+_0x5b93b6[_0x203ce9(0x1f9)]+_0x203ce9(0x1b1)),console[_0x203ce9(0x186)](_0x3c5473+_0x203ce9(0x193));const _0x119f63=_0x5cf0af(_0x5b93b6);console[_0x203ce9(0x186)](_0x3c5473+_0x203ce9(0x1fd));let _0x44001e=_0x576b2d(_0x1a1ce0,_0x119f63);_0x3f8872===_0x203ce9(0x261)?(console[_0x203ce9(0x186)](_0x3c5473+_0x203ce9(0x254)),_0x44001e=_0x17e075(_0x1a1ce0,_0x44001e)):console['log'](_0x3c5473+_0x203ce9(0x28e));_0x55aaad?(console['log'](_0x3c5473+_0x203ce9(0x267)),_0x44001e=_0x50d6f9(_0x1a1ce0,_0x44001e)):console[_0x203ce9(0x186)](_0x3c5473+_0x203ce9(0x1c5));console[_0x203ce9(0x186)](_0x3c5473+_0x203ce9(0x190)+_0x44001e[_0x203ce9(0x1f9)]+_0x203ce9(0x1b1));const _0x14461b=new Headers(_0x24b4ce[_0x203ce9(0x264)]);_0x14461b['set']('cache-control',_0x203ce9(0x20b)),_0x14461b['set'](_0x203ce9(0x252),'rewritten'),_0x14461b[_0x203ce9(0x1a6)](_0x203ce9(0x1f2),_0x3f8872),_0x3a1f1c(_0x14461b);if(_0x1a1ce0[_0x203ce9(0x24d)]!==_0x203ce9(0x286)){console['log'](_0x3c5473+_0x203ce9(0x1fb));const _0x5ba453=_0x14461b[_0x203ce9(0x1ce)](_0x203ce9(0x28b));_0x14461b['set']('content-security-policy',_0x4ee634(_0x5ba453)),_0x14461b[_0x203ce9(0x26c)](_0x203ce9(0x265)),_0x14461b[_0x203ce9(0x26c)]('cross-origin-embedder-policy'),_0x14461b[_0x203ce9(0x26c)](_0x203ce9(0x1e7));}else console['log'](_0x3c5473+_0x203ce9(0x299));return console['log'](_0x3c5473+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x44001e,{'status':_0x24b4ce[_0x203ce9(0x26e)],'statusText':_0x24b4ce[_0x203ce9(0x18b)],'headers':_0x14461b});}var _0x2c1422=_0x4f311b(0x235);console[_0x4f311b(0x186)](_0x2c1422+_0x4f311b(0x1bc));var _0x5ef1e0={'overlayPath':_0x4f311b(0x279),'backendUrl':'https://api.enhancelabs.ai','overlayEnableViteHmr':![],'runtimeScriptPath':_0x4f311b(0x256),'swPath':_0x4f311b(0x26b)},_0x4615f9={'publishableKey':'','callbackBypass':[_0x4f311b(0x20e)],'securityMode':_0x4f311b(0x1d5),'enhancementUrl':null,'enhancementBase':null};function _0x412865(){const _0xd5fadb=_0x4f311b;return{..._0x5ef1e0,'publishableKey':_0x4615f9[_0xd5fadb(0x23f)],'enhancementUrl':_0x4615f9[_0xd5fadb(0x29e)]??'','enhancementBase':_0x4615f9['enhancementBase'],'callbackBypass':_0x4615f9[_0xd5fadb(0x1a9)],'callbackBypassNormalized':_0x4615f9[_0xd5fadb(0x1a9)][_0xd5fadb(0x21c)](_0x2a7ef5=>_0x2a7ef5[_0xd5fadb(0x19b)]('/')?_0x2a7ef5:'/'+_0x2a7ef5),'securityMode':_0x4615f9[_0xd5fadb(0x24d)]};}function _0x140656(_0x4426c3,_0x260d2a,..._0x5515d2){const _0x348438=_0x4f311b;_0x4426c3===_0x348438(0x1fc)?console[_0x348438(0x1fc)](_0x2c1422,_0x260d2a,..._0x5515d2):console['debug'](_0x2c1422,_0x260d2a,..._0x5515d2);}self[_0x4f311b(0x220)](_0x4f311b(0x255),_0x40e376=>{const _0x40a5cb=_0x4f311b;console[_0x40a5cb(0x186)](_0x2c1422+_0x40a5cb(0x1b7)),_0x40e376[_0x40a5cb(0x1ab)](self[_0x40a5cb(0x1dd)]());}),self[_0x4f311b(0x220)]('activate',_0x56de54=>{const _0x475c5d=_0x4f311b;console[_0x475c5d(0x186)](_0x2c1422+'\x20ACTIVATE'),_0x56de54[_0x475c5d(0x1ab)](self[_0x475c5d(0x242)][_0x475c5d(0x26d)]());}),self[_0x4f311b(0x220)]('message',_0x111cf0=>{const _0x5a99c6=_0x4f311b,_0x4dc47d=_0x111cf0[_0x5a99c6(0x260)];if(!_0x4dc47d||typeof _0x4dc47d!==_0x5a99c6(0x201))return;switch(_0x4dc47d['type']){case _0x30ff9b:{console[_0x5a99c6(0x186)](_0x2c1422+_0x5a99c6(0x1a1));const _0x31b7ca=_0x4dc47d[_0x5a99c6(0x20d)];_0x4615f9[_0x5a99c6(0x23f)]=_0x31b7ca['publishableKey']??'',_0x4615f9[_0x5a99c6(0x1a9)]=_0x31b7ca[_0x5a99c6(0x1a9)]??[_0x5a99c6(0x20e)],_0x4615f9[_0x5a99c6(0x24d)]=_0x31b7ca[_0x5a99c6(0x24d)]??_0x5a99c6(0x1d5);if(_0x31b7ca[_0x5a99c6(0x29e)]){_0x4615f9[_0x5a99c6(0x29e)]=_0x31b7ca[_0x5a99c6(0x29e)];try{_0x4615f9[_0x5a99c6(0x195)]=new URL(_0x31b7ca['enhancementUrl']);}catch{console['error'](_0x2c1422+_0x5a99c6(0x24f)+_0x31b7ca[_0x5a99c6(0x29e)]),_0x4615f9[_0x5a99c6(0x195)]=null;}}else _0x4615f9[_0x5a99c6(0x29e)]=null,_0x4615f9[_0x5a99c6(0x195)]=null;console['log'](_0x2c1422+'\x20Config\x20updated:',{'publishableKey':_0x4615f9[_0x5a99c6(0x23f)]?_0x5a99c6(0x232):_0x5a99c6(0x1ad),'enhancementUrl':_0x4615f9[_0x5a99c6(0x29e)]??_0x5a99c6(0x269)});break;}case _0x5b4f3d:console['log'](_0x2c1422+'\x20DISABLE\x20received\x20-\x20resetting\x20config'),_0x4615f9={'publishableKey':'','callbackBypass':[_0x5a99c6(0x20e)],'securityMode':_0x5a99c6(0x1d5),'enhancementUrl':null,'enhancementBase':null};break;}}),self[_0x4f311b(0x220)]('fetch',_0x295b21=>{const _0x30c6da=_0x4f311b,_0x59d602=new URL(_0x295b21['request'][_0x30c6da(0x227)]);if(_0x59d602[_0x30c6da(0x283)]!==self['location'][_0x30c6da(0x283)])return;_0x295b21['respondWith'](_0x4e0880(_0x295b21));});async function _0x4e0880(_0x5665c2){const _0x49978c=_0x4f311b,{request:_0x125fe8}=_0x5665c2,_0x4513c8=new URL(_0x125fe8['url']),_0x429aeb=_0x125fe8[_0x49978c(0x202)]===_0x49978c(0x1ba);console[_0x49978c(0x186)](_0x2c1422+_0x49978c(0x213)+_0x125fe8['method']+'\x20'+_0x4513c8['pathname']+_0x4513c8['search']+'\x20('+_0x125fe8[_0x49978c(0x202)]+')');if(!_0x41f589(_0x125fe8))return fetch(_0x125fe8);const _0x1cdcd1=_0x412865();console[_0x49978c(0x186)](_0x2c1422+_0x49978c(0x1ff)+(_0x1cdcd1['enhancementUrl']||'none'));if(_0x10d951(_0x1cdcd1,_0x4513c8[_0x49978c(0x285)]))return console[_0x49978c(0x186)](_0x2c1422+_0x49978c(0x21b)+_0x4513c8['pathname']),fetch(_0x125fe8);if(_0x429aeb)return _0x5cd7ad(_0x125fe8,_0x1cdcd1);if(!_0xc77632(_0x1cdcd1,_0x125fe8,_0x4513c8))return fetch(_0x125fe8);const _0x146e1c=await _0x3926b3(_0x1cdcd1,_0x125fe8,_0x4513c8);if(_0x146e1c)return console[_0x49978c(0x186)](_0x2c1422+_0x49978c(0x199)+_0x4513c8[_0x49978c(0x285)]),_0x146e1c;return console[_0x49978c(0x186)](_0x2c1422+'\x20\x20\x20Enhancement\x20MISS:\x20'+_0x4513c8[_0x49978c(0x285)]),fetch(_0x125fe8);}async function _0x5cd7ad(_0x327d4b,_0x1fe642){const _0x3eb593=_0x4f311b,_0x3617cc=new URL(_0x327d4b[_0x3eb593(0x227)]);console[_0x3eb593(0x186)](_0x2c1422+_0x3eb593(0x1b3)+_0x3617cc[_0x3eb593(0x285)]+_0x3617cc['search']);const _0x4acce5=await fetch(_0x327d4b);if(!_0xd3d728(_0x4acce5))return _0x4acce5;const _0x5296d3=_0x133e84(_0x4acce5,_0x3eb593(0x27c)),_0xc59e05=await _0x5b7a2e(_0x1fe642,_0x327d4b),_0x1297cd=_0xc59e05?_0x3eb593(0x261):_0x3eb593(0x263),_0x514b84=_0xc59e05??_0x5296d3,_0x259b42=_0x1297cd===_0x3eb593(0x261)||_0x3617cc['searchParams'][_0x3eb593(0x1fa)](_0x3eb593(0x231))||_0x3617cc[_0x3eb593(0x1e6)][_0x3eb593(0x1fa)](_0x3eb593(0x261));try{return await _0x163718(_0x1fe642,_0x514b84,_0x1297cd,_0x259b42);}catch(_0x26a3fa){return console[_0x3eb593(0x2a1)](_0x2c1422+_0x3eb593(0x27a),_0x26a3fa),_0x514b84;}}return _0x1d1ce2(_0x3002bc);})());
|
|
1
|
+
'use strict';(function(_0x10947f,_0x4aa41e){const _0x283b69=_0xad2c,_0x4a0652=_0x10947f();while(!![]){try{const _0x1a6814=parseInt(_0x283b69(0x143))/0x1+parseInt(_0x283b69(0x148))/0x2*(parseInt(_0x283b69(0x180))/0x3)+parseInt(_0x283b69(0x174))/0x4*(parseInt(_0x283b69(0x120))/0x5)+-parseInt(_0x283b69(0x191))/0x6*(parseInt(_0x283b69(0x195))/0x7)+parseInt(_0x283b69(0x189))/0x8+-parseInt(_0x283b69(0xd6))/0x9*(parseInt(_0x283b69(0x178))/0xa)+-parseInt(_0x283b69(0x152))/0xb;if(_0x1a6814===_0x4aa41e)break;else _0x4a0652['push'](_0x4a0652['shift']());}catch(_0x5db136){_0x4a0652['push'](_0x4a0652['shift']());}}}(_0x48cf,0xc616a));function _0xad2c(_0x13ea0c,_0x3f589c){_0x13ea0c=_0x13ea0c-0xca;const _0x48cf8f=_0x48cf();let _0xad2cbc=_0x48cf8f[_0x13ea0c];return _0xad2cbc;}function _0x48cf(){const _0x54abf4=['activate','__esModule','map','\x20\x20\x20Stripping\x20SRI\x20attributes...','stylesheet','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20enhancementUrl:\x20','value','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','replace','[Enhance\x20SW]','worker-src\x20\x27self\x27\x20blob:','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','HEAD','\x20\x20\x20shouldInjectOverlay:\x20','cache-control','redirect','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','function','getOwnPropertyDescriptor','1906596OhnKSg','prototype','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','/vite/client','23390TtouSl','type','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20\x20\x20\x20try\x20{','[not\x20set]','\x20\x20\x20source:\x20','x-enhance-routing','navigate','6573sSIpaV','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20Response:\x20','content-length','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','slice','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','some','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','12147880MgRULd','enhancement-document','default','clients','default-src\x20\x27self\x27\x20blob:\x20data:','endsWith','\x5cu003c','\x20CONFIG\x20received','24918BUteIO','has','\x20\x20\x20Not\x20OK\x20(','defineProperty','1253TDUYKG','/sockjs-node','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','cross-origin-opener-policy','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20\x20\x20\x20\x20\x20','/__vite_ping','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20FETCH:\x20','\x20ACTIVATE','[set]','getOwnPropertyNames','frame-ancestors\x20','})();','get','\x20\x20\x20Rewriting\x20entry\x20references...','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','destination','cross-origin-resource-policy','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','location','src','x-enhance-document',',\x20type:\x20','callbackBypassNormalized','\x20\x20\x20Document\x20fetch\x20error:','debug','match','delete','enhance:disable','\x20Config\x20updated:','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','/webpack-hmr','media-src\x20*\x20data:\x20blob:','worker','method','/__webpack_hmr','securityMode','img-src\x20*\x20data:\x20blob:','overlayPath','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','\x20\x20\x20Fetch\x20error:','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','/@vite/client','full','follow','publishableKey','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','image','toString','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','origin','/_next/webpack-hmr','/__vite/client','info','no-store','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','cors','runtimeScriptPath','\x0a</head>','GET','access-control-allow-credentials','\x20\x20\x20\x20\x20\x20}','$&\x0a','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','request','href','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','log','headers','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','includes',')\x20-\x20returning\x20null','set-cookie2','enhancementBase','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','X-Enhance-Publishable-Key','permissive','\x20\x20\x20\x20\x20\x20\x20\x20}','[Enhance\x20SW\x20Routing]','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','enhancementUrl','https://api.enhancelabs.ai','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','font-src\x20*\x20data:','4374ZgUNsk','enumerable','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','http://','Enhancement\x20document\x20fetch\x20failed','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','Enhancement\x20document\x20CORS\x20blocked','\x20\x20}\x20catch\x20(error)\x20{','Enhancement\x20CORS\x20blocked','\x20\x20\x20Fetching\x20from\x20enhancement...','callbackBypass','/parcel-hmr','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20chars)','waitUntil','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','modulepreload','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','data','sharedworker','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','url','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','hit','text/html','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','add','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20}','\x20\x20\x20\x20\x20\x20//\x20Mark\x20as\x20initialized\x20globally\x20so\x20other\x20module\x20instances\x20(e.g.\x20enhanced\x20app\x27s\x20bundled\x20copy)\x20skip\x20re-init','access-control-allow-origin','\x20\x20\x20BYPASS:\x20','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','error','\x20DISABLE\x20received\x20-\x20resetting\x20config','</script>','\x20shouldRouteAsset:\x20','/snowpack/hmr','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','opaque','\x20for\x20','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','set-cookie','test','clone','enhancement','pathname','object','\x20\x20\x20Enhancement\x20MISS:\x20','respondWith','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','length','searchParams','\x20\x20\x20\x20\x20\x20return\x20false;','stringify','include','https://','data-enhance-runtime-bootstrap','search','style','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','startsWith','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20Invalid\x20enhancement\x20URL:\x20','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','10ALOter','/webpack-hot-middleware','addEventListener','Enhancement\x20miss\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','message','statusText','host','(function(){','?import','\x20\x20try\x20{','\x20\x20\x20overlayPath:\x20','set','content-security-policy','claim','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20Content-Type:\x20','\x20injectRuntimeBootstrap()\x20called','\x20\x20\x20\x20}','\x20chars','script','/sw-enhance.js','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','join','status','call','content-type','body','/auth/callback','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','push','overlay','\x20\x20\x20Fetching\x20enhancement\x20document...','1268246fsSEHR','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20Navigation:\x20','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','[Enhance\x20SW\x20Document]','1050kdaFdE','hash','toLowerCase','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','x-enhance-document-source','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20\x20\x20try\x20{','config','\x20\x20\x20runtimeScriptPath:\x20','\x20Service\x20Worker\x20loaded','24186723WAIwEb','connect-src\x20*','\x20rewriteDocument()\x20called','none','Enhancement\x20fetch\x20failed','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20\x20\x20securityMode:\x20','\x20Document\x20rewrite\x20failed:','\x20\x20\x20Document\x20rewrite\x20complete','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','mode','\x20\x20\x20\x20};'];_0x48cf=function(){return _0x54abf4;};return _0x48cf();}var EnhanceSW=((()=>{const _0x21abfc=_0xad2c;var _0x3104c4=Object[_0x21abfc(0x194)],_0x28c093=Object[_0x21abfc(0x173)],_0x1be4e8=Object[_0x21abfc(0x1a1)],_0x11d0da=Object[_0x21abfc(0x175)]['hasOwnProperty'],_0x578461=(_0x3df885,_0x4b2107)=>{for(var _0x5ee09c in _0x4b2107)_0x3104c4(_0x3df885,_0x5ee09c,{'get':_0x4b2107[_0x5ee09c],'enumerable':!![]});},_0x39e94e=(_0x3937d3,_0x59bcaf,_0x5cc319,_0xab2f2d)=>{const _0x2e7fbd=_0x21abfc;if(_0x59bcaf&&typeof _0x59bcaf==='object'||typeof _0x59bcaf===_0x2e7fbd(0x172)){for(let _0x74c8f6 of _0x1be4e8(_0x59bcaf))if(!_0x11d0da[_0x2e7fbd(0x13b)](_0x3937d3,_0x74c8f6)&&_0x74c8f6!==_0x5cc319)_0x3104c4(_0x3937d3,_0x74c8f6,{'get':()=>_0x59bcaf[_0x74c8f6],'enumerable':!(_0xab2f2d=_0x28c093(_0x59bcaf,_0x74c8f6))||_0xab2f2d[_0x2e7fbd(0xd7)]});}return _0x3937d3;},_0x4bb004=_0x38f981=>_0x39e94e(_0x3104c4({},_0x21abfc(0x15f),{'value':!![]}),_0x38f981),_0x1a352f={};_0x578461(_0x1a352f,{'log':()=>_0x3c0930});var _0x456b9f='enhance:configure',_0x4cfe3a=_0x21abfc(0x1b7);function _0x15c4a0(_0x5c6154){const _0x23ba33=_0x21abfc;if(!_0x5c6154[_0x23ba33(0x11b)]('/'))return'/'+_0x5c6154;return _0x5c6154;}function _0x27c98a(_0x172234,_0x2d5439){const _0x58bd85=_0x21abfc,_0x4c5b9f=new URL(_0x172234['toString']()),_0x2db6f3=_0x4c5b9f[_0x58bd85(0x109)][_0x58bd85(0x18e)]('/')?_0x4c5b9f['pathname'][_0x58bd85(0x185)](0x0,-0x1):_0x4c5b9f[_0x58bd85(0x109)],_0x5472da=_0x2d5439['pathname']['startsWith']('/')?_0x2d5439[_0x58bd85(0x109)]:'/'+_0x2d5439[_0x58bd85(0x109)];return _0x4c5b9f[_0x58bd85(0x109)]=(''+_0x2db6f3+_0x5472da)[_0x58bd85(0x168)](/\/+/g,'/'),_0x4c5b9f['search']=_0x2d5439[_0x58bd85(0x116)],_0x4c5b9f[_0x58bd85(0x149)]='',_0x4c5b9f;}var _0x5558b0=_0x21abfc(0xce),_0x42445b=_0x21abfc(0xcb),_0x2aced9=new Set([_0x21abfc(0x135),_0x21abfc(0x117),'font',_0x21abfc(0x1cd),_0x21abfc(0x1bd),_0x21abfc(0xeb),_0x21abfc(0xe7)]);function _0x5af25c(_0x1919d4){const _0x2489b1=_0x21abfc,_0x2ee4e1=_0x1919d4[_0x2489b1(0x1be)]==='GET'||_0x1919d4[_0x2489b1(0x1be)]===_0x2489b1(0x16c);return _0x2ee4e1;}function _0x2de0ca(_0x12347b,_0x357ac3){const _0x16e204=_0x21abfc,_0x71074d=_0x15c4a0(_0x357ac3),_0x2660ea=_0x12347b[_0x16e204(0x1b2)][_0x16e204(0x187)](_0x3813e2=>_0x71074d[_0x16e204(0x11b)](_0x3813e2));return _0x2660ea;}function _0x1bf5ce(_0x3210fa,_0x9dfdbc,_0x111d9c){const _0x55bf1a=_0x21abfc,_0x77cd61=_0x9dfdbc[_0x55bf1a(0x1a8)];if(!_0x77cd61||!_0x2aced9[_0x55bf1a(0x192)](_0x77cd61))return![];if(_0x11b71a(_0x3210fa,_0x111d9c))return console['log'](_0x5558b0+_0x55bf1a(0xfd)+_0x111d9c[_0x55bf1a(0x109)]+'\x20is\x20overlay\x20asset\x20-\x20not\x20routing'),![];if(_0x4779ed(_0x3210fa,_0x111d9c))return console[_0x55bf1a(0x1e4)](_0x5558b0+_0x55bf1a(0xfd)+_0x111d9c[_0x55bf1a(0x109)]+_0x55bf1a(0xee)),![];if(_0x111d9c[_0x55bf1a(0x1d0)]!==self['location']['origin'])return![];return!![];}async function _0xe927a1(_0x46a8c5,_0x264aa5,_0x29af3d){const _0x26df10=_0x21abfc;console['log'](_0x5558b0+'\x20fetchFromEnhancement:\x20'+_0x29af3d[_0x26df10(0x109)]);if(!_0x46a8c5[_0x26df10(0x1ea)])return console[_0x26df10(0x1e4)](_0x5558b0+_0x26df10(0x1d5)),null;const _0x373e7d=_0x492b22(_0x46a8c5,_0x29af3d);console[_0x26df10(0x1e4)](_0x5558b0+'\x20\x20\x20Enhancement\x20URL:\x20'+_0x373e7d[_0x26df10(0x1ce)]());const _0x41722=new Headers(_0x264aa5[_0x26df10(0x1e5)]);_0x41722['set'](_0x26df10(0x17e),'enhancement'),_0x41722[_0x26df10(0x1b6)](_0x26df10(0x128));_0x46a8c5['publishableKey']&&_0x41722[_0x26df10(0x12d)](_0x42445b,_0x46a8c5[_0x26df10(0x1cb)]);const _0xfb45ac=new Request(_0x373e7d[_0x26df10(0x1ce)](),{'method':_0x264aa5[_0x26df10(0x1be)],'headers':_0x41722,'credentials':_0x26df10(0x113),'redirect':_0x264aa5[_0x26df10(0x16f)],'cache':_0x26df10(0x18b),'mode':_0x26df10(0x1d6)});try{console[_0x26df10(0x1e4)](_0x5558b0+_0x26df10(0xe0));const _0x3ce05b=await fetch(_0xfb45ac);console[_0x26df10(0x1e4)](_0x5558b0+_0x26df10(0x182)+_0x3ce05b[_0x26df10(0x13a)]+'\x20'+_0x3ce05b[_0x26df10(0x127)]+_0x26df10(0x1b1)+_0x3ce05b[_0x26df10(0x179)]);if(_0x3ce05b[_0x26df10(0x179)]===_0x26df10(0x100))return console[_0x26df10(0x1e4)](_0x5558b0+_0x26df10(0x16b)),_0x3c0930(_0x26df10(0x1d3),_0x26df10(0xdf),_0x373e7d[_0x26df10(0x1ce)]()),null;if(!_0x3ce05b['ok'])return console[_0x26df10(0x1e4)](_0x5558b0+_0x26df10(0x193)+_0x3ce05b[_0x26df10(0x13a)]+_0x26df10(0x1e8)),_0x3c0930(_0x26df10(0x1b4),_0x26df10(0x123)+_0x3ce05b[_0x26df10(0x13a)]+_0x26df10(0x101)+_0x373e7d[_0x26df10(0x109)]),null;return console[_0x26df10(0x1e4)](_0x5558b0+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0xf6340a(_0x3ce05b,_0x264aa5[_0x26df10(0x1be)]);}catch(_0x311d3d){return console[_0x26df10(0xfa)](_0x5558b0+_0x26df10(0x1c4),_0x311d3d),_0x3c0930('info',_0x26df10(0x156),_0x311d3d),null;}}async function _0x312d33(_0x3dcf9e,_0x26027a){const _0x559367=_0x21abfc,_0x8f9410=new URL(_0x26027a[_0x559367(0xed)]);console[_0x559367(0x1e4)](_0x5558b0+'\x20fetchEnhancementDocument:\x20'+_0x8f9410[_0x559367(0x109)]+_0x8f9410[_0x559367(0x116)]);if(!_0x3dcf9e[_0x559367(0x1ea)])return console['log'](_0x5558b0+_0x559367(0x1ad)),null;const _0x5c7897=_0x492b22(_0x3dcf9e,_0x8f9410);console[_0x559367(0x1e4)](_0x5558b0+_0x559367(0xcf)+_0x5c7897[_0x559367(0x1ce)]());const _0x2c63db=new Headers(_0x26027a[_0x559367(0x1e5)]);_0x2c63db['set'](_0x559367(0x17e),_0x559367(0x18a)),_0x2c63db[_0x559367(0x1b6)](_0x559367(0x128)),_0x2c63db[_0x559367(0x1b6)](_0x559367(0x183));_0x3dcf9e['publishableKey']&&_0x2c63db[_0x559367(0x12d)](_0x42445b,_0x3dcf9e['publishableKey']);const _0xe36108=new Request(_0x5c7897[_0x559367(0x1ce)](),{'method':_0x559367(0x1d9),'headers':_0x2c63db,'credentials':'include','redirect':_0x559367(0x1ca),'cache':_0x559367(0x18b),'mode':_0x559367(0x1d6)});try{console[_0x559367(0x1e4)](_0x5558b0+_0x559367(0x142));const _0x353ea1=await fetch(_0xe36108);console[_0x559367(0x1e4)](_0x5558b0+'\x20\x20\x20Response:\x20'+_0x353ea1['status']+'\x20'+_0x353ea1[_0x559367(0x127)]+_0x559367(0x1b1)+_0x353ea1[_0x559367(0x179)]),console['log'](_0x5558b0+_0x559367(0x131)+_0x353ea1[_0x559367(0x1e5)][_0x559367(0x1a4)](_0x559367(0x13c)));if(_0x353ea1[_0x559367(0x179)]===_0x559367(0x100))return console[_0x559367(0x1e4)](_0x5558b0+'\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)'),_0x3c0930(_0x559367(0x1d3),_0x559367(0xdd),_0x5c7897[_0x559367(0x1ce)]()),null;if(!_0x353ea1['ok'])return console['log'](_0x5558b0+_0x559367(0x193)+_0x353ea1[_0x559367(0x13a)]+_0x559367(0x1e8)),_0x3c0930(_0x559367(0x1b4),'Enhancement\x20document\x20miss\x20'+_0x353ea1['status']+_0x559367(0x101)+_0x5c7897['pathname']),null;if(!_0x1077fe(_0x353ea1))return console[_0x559367(0x1e4)](_0x5558b0+_0x559367(0x1ab)),null;return console[_0x559367(0x1e4)](_0x5558b0+_0x559367(0x119)),_0xf6340a(_0x353ea1,_0x559367(0x1d9));}catch(_0x1f1535){return console['error'](_0x5558b0+_0x559367(0x1b3),_0x1f1535),_0x3c0930(_0x559367(0x1d3),_0x559367(0xda),_0x1f1535),null;}}function _0x492b22(_0x2127ae,_0x1114d7){const _0x365c93=_0x21abfc;if(!_0x2127ae[_0x365c93(0x1ea)])throw new Error(_0x365c93(0x10d));return _0x27c98a(_0x2127ae[_0x365c93(0x1ea)],_0x1114d7);}function _0xf6340a(_0x2af972,_0xec7eca){const _0x2d159e=_0x21abfc,_0x1e5180=_0x2af972[_0x2d159e(0x107)](),_0x339598=new Headers(_0x1e5180[_0x2d159e(0x1e5)]);_0x339598[_0x2d159e(0x1b6)](_0x2d159e(0xf6)),_0x339598[_0x2d159e(0x1b6)](_0x2d159e(0x1da)),_0x339598['delete']('access-control-expose-headers'),_0x339598[_0x2d159e(0x12d)]('x-enhance-enhancement',_0x2d159e(0xef)),_0x35050e(_0x339598);const _0x38efac=_0xec7eca==='HEAD'?null:_0x1e5180[_0x2d159e(0x13d)];return new Response(_0x38efac,{'status':_0x1e5180[_0x2d159e(0x13a)],'statusText':_0x1e5180[_0x2d159e(0x127)],'headers':_0x339598});}function _0x1077fe(_0xe24d7e){const _0x4a1824=_0x21abfc,_0x1fd1d4=_0xe24d7e[_0x4a1824(0x1e5)]['get'](_0x4a1824(0x13c));return _0x1fd1d4!=null&&_0x1fd1d4[_0x4a1824(0x1e7)](_0x4a1824(0xf0));}function _0x11b71a(_0x4eed44,_0x28ea2e){return _0x5d8afc(_0x28ea2e,_0x4eed44['overlayPath']);}function _0x4779ed(_0x24c778,_0x5cdd9d){const _0x536d4b=_0x21abfc;return _0x433ec3(_0x5cdd9d,_0x24c778[_0x536d4b(0x1d7)]);}function _0x5d8afc(_0x1321ab,_0x3d3f41){const _0xa3c4ee=_0x21abfc;if(!_0x3d3f41)return![];if(_0x3d3f41['startsWith'](_0xa3c4ee(0xd9))||_0x3d3f41['startsWith'](_0xa3c4ee(0x114)))return _0x1321ab[_0xa3c4ee(0x1e1)]===_0x3d3f41;const _0x2b3923=_0x567f29(_0x3d3f41);if(!_0x2b3923)return![];const _0x117872=''+_0x1321ab[_0xa3c4ee(0x109)]+_0x1321ab['search'];if(_0x117872===_0x2b3923)return!![];if(_0x1321ab[_0xa3c4ee(0x116)]===_0xa3c4ee(0x12a))return _0x1321ab[_0xa3c4ee(0x109)]===_0x2b3923;return![];}function _0x433ec3(_0x485036,_0x7ee43){const _0x32cd26=_0x21abfc;if(!_0x7ee43)return![];if(_0x7ee43[_0x32cd26(0x11b)](_0x32cd26(0xd9))||_0x7ee43[_0x32cd26(0x11b)](_0x32cd26(0x114)))return _0x485036[_0x32cd26(0x1e1)]===_0x7ee43;const _0xf0254a=_0x567f29(_0x7ee43);if(!_0xf0254a)return![];const _0x11d1ac=''+_0x485036[_0x32cd26(0x109)]+_0x485036[_0x32cd26(0x116)];return _0x11d1ac===_0xf0254a;}function _0x567f29(_0x1c0752){const _0x9ead55=_0x21abfc;if(!_0x1c0752)return _0x1c0752;if(_0x1c0752[_0x9ead55(0x11b)]('http://')||_0x1c0752['startsWith']('https://'))return _0x1c0752;const _0xc3494=_0x1c0752[_0x9ead55(0x168)](/^\.\//,'');if(_0xc3494['startsWith']('/'))return _0xc3494;return'/'+_0xc3494;}function _0x35050e(_0x5e4ec7){const _0x2e4be6=_0x21abfc;_0x5e4ec7[_0x2e4be6(0x1b6)](_0x2e4be6(0x105)),_0x5e4ec7['delete'](_0x2e4be6(0x1e9));}function _0x163507(_0x485029){const _0x147788=_0x21abfc,_0x2a4c46=[_0x147788(0x18d),_0x147788(0x10e),_0x147788(0x1e2),_0x147788(0x1c1),_0x147788(0xd5),_0x147788(0x153),_0x147788(0x1bc),_0x147788(0x16a),'object-src\x20\x27none\x27'],_0xc354f0=_0x2249b8(_0x485029);return _0xc354f0&&_0x2a4c46[_0x147788(0x140)](_0xc354f0),_0x2a4c46[_0x147788(0x139)](';\x20');}function _0x36f724(_0x17fa05){const _0x5d648a=_0x21abfc;_0x17fa05[_0x5d648a(0x1b6)]('set-cookie'),_0x17fa05[_0x5d648a(0x1b6)]('set-cookie2');}function _0x2249b8(_0x3bccb7){const _0x3ae25c=_0x21abfc;if(!_0x3bccb7)return null;const _0x34ab05=_0x3bccb7['match'](/frame-ancestors\s+([^;]+)/i);if(!_0x34ab05)return null;return _0x3ae25c(0x1a2)+_0x34ab05[0x1]['trim']();}function _0x4627b4(_0x59f3bb,_0x509323){const _0x2a70cb=_0x21abfc;if(/<head[^>]*>/i[_0x2a70cb(0x106)](_0x59f3bb)){const _0x4c1d36=_0x59f3bb[_0x2a70cb(0x1b5)](/<head[^>]*>/i);if(_0x4c1d36){const _0x5ac78e=_0x4c1d36[0x0];return _0x59f3bb[_0x2a70cb(0x168)](_0x5ac78e,_0x5ac78e+'\x0a'+_0x509323);}}if(/<\/head>/i['test'](_0x59f3bb))return _0x59f3bb[_0x2a70cb(0x168)](/<\/head>/i,_0x509323+_0x2a70cb(0x1d8));if(/<body\b[^>]*>/i[_0x2a70cb(0x106)](_0x59f3bb))return _0x59f3bb[_0x2a70cb(0x168)](/<body\b[^>]*>/i,_0x2a70cb(0x1dc)+_0x509323);if(/<\/body>/i['test'](_0x59f3bb))return _0x59f3bb[_0x2a70cb(0x168)](/<\/body>/i,_0x509323+'\x0a</body>');return _0x509323+'\x0a'+_0x59f3bb;}var _0x303830=['vite-hmr'],_0x3817c7=[_0x21abfc(0x1c8),_0x21abfc(0x1d2),_0x21abfc(0x177),_0x21abfc(0x19b),_0x21abfc(0x196),'/webpack-dev-server',_0x21abfc(0x1bb),'/webpackhotmiddleware',_0x21abfc(0x121),_0x21abfc(0x1bf),_0x21abfc(0x1d1),_0x21abfc(0xe2),'/__parcel_hmr','/__snowpack__',_0x21abfc(0xfe)];function _0x42b626(_0x31e6a5,_0x45206f){const _0x4e239a=_0x40e7b5(_0x31e6a5);if(!_0x4e239a)return _0x45206f;return _0x4627b4(_0x45206f,_0x4e239a);}function _0x40e7b5(_0x3ea7b5){const _0x3b86b3=_0x21abfc;if(!_0x3ea7b5[_0x3b86b3(0x1ea)])return null;const _0x1aa253=_0x3ea7b5[_0x3b86b3(0x1ea)]['toString'](),_0x1b4038=_0x161a85(_0x303830),_0x299fa8=_0x161a85(_0x3817c7),_0x5d5ca1=[_0x3b86b3(0xd3),_0x3b86b3(0x129),_0x3b86b3(0x12b),_0x3b86b3(0x11a)+JSON['stringify'](_0x1aa253)+');',_0x3b86b3(0x170),_0x3b86b3(0x11d),_0x3b86b3(0x1c6),_0x3b86b3(0x133),'\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set('+JSON['stringify'](_0x1b4038)+');','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20'+JSON[_0x3b86b3(0x112)](_0x299fa8)+';',_0x3b86b3(0xd8),_0x3b86b3(0x11f),_0x3b86b3(0xf9),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];',_0x3b86b3(0x15d),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x3b86b3(0xff),_0x3b86b3(0xf1),_0x3b86b3(0xe3),_0x3b86b3(0x1cc),_0x3b86b3(0x19a),_0x3b86b3(0x1df),_0x3b86b3(0x19a),_0x3b86b3(0x144),_0x3b86b3(0xf8),_0x3b86b3(0xdb),_0x3b86b3(0x1db),_0x3b86b3(0x176),'\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x3b86b3(0x1c3),_0x3b86b3(0x19d),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}',_0x3b86b3(0x1aa),_0x3b86b3(0x17a),_0x3b86b3(0x166),_0x3b86b3(0x19d),_0x3b86b3(0xcd),_0x3b86b3(0x1db),_0x3b86b3(0x111),_0x3b86b3(0x15d),_0x3b86b3(0x184),_0x3b86b3(0xca),_0x3b86b3(0x118),_0x3b86b3(0x1de),_0x3b86b3(0x14b),_0x3b86b3(0x130),_0x3b86b3(0x15d),'\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{',_0x3b86b3(0x17b),_0x3b86b3(0x19c),_0x3b86b3(0xec),_0x3b86b3(0x125),_0x3b86b3(0xf3),_0x3b86b3(0xcd),'\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x3b86b3(0xe9),_0x3b86b3(0x1db),_0x3b86b3(0x1a6),_0x3b86b3(0x15d),_0x3b86b3(0x188),_0x3b86b3(0x1e3),_0x3b86b3(0xe8),_0x3b86b3(0x14e),_0x3b86b3(0x13f),'\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x3b86b3(0x146),_0x3b86b3(0x133),_0x3b86b3(0x181),_0x3b86b3(0xe6),_0x3b86b3(0xde),_0x3b86b3(0x104),_0x3b86b3(0xf4),_0x3b86b3(0x1a3),_0x3b86b3(0xfc)];return _0x5d5ca1[_0x3b86b3(0x139)]('\x0a');}function _0x161a85(_0x1ecdba){const _0x1eb9f2=_0x21abfc,_0x3aea81=new Set(),_0x177ecb=[];for(const _0x47be73 of _0x1ecdba){const _0x50a9ee=_0x47be73[_0x1eb9f2(0x14a)]();if(_0x3aea81[_0x1eb9f2(0x192)](_0x50a9ee))continue;_0x3aea81[_0x1eb9f2(0xf2)](_0x50a9ee),_0x177ecb[_0x1eb9f2(0x140)](_0x50a9ee);}return _0x177ecb;}var _0xe2bcba='[Enhance\x20SW\x20Bootstrap]';function _0x3fcf4b(_0x59c4c2,_0x4db168){const _0x349a5b=_0x21abfc;console[_0x349a5b(0x1e4)](_0xe2bcba+_0x349a5b(0x132)),console[_0x349a5b(0x1e4)](_0xe2bcba+_0x349a5b(0x150)+_0x59c4c2[_0x349a5b(0x1d7)]),console[_0x349a5b(0x1e4)](_0xe2bcba+_0x349a5b(0x12c)+_0x59c4c2['overlayPath']);if(_0x4db168['includes'](_0x349a5b(0x115)))return console[_0x349a5b(0x1e4)](_0xe2bcba+_0x349a5b(0xd0)),_0x4db168;const _0x39ff33=_0x18d7a4(_0x59c4c2);if(!_0x39ff33)return console['log'](_0xe2bcba+_0x349a5b(0x197)),_0x4db168;console['log'](_0xe2bcba+_0x349a5b(0x15b)+_0x39ff33[_0x349a5b(0x10f)]+_0x349a5b(0xe4));const _0x105322=_0x4627b4(_0x4db168,_0x39ff33);return console['log'](_0xe2bcba+_0x349a5b(0x103)),_0x105322;}function _0x18d7a4(_0x533b6d){const _0x28d622=_0x21abfc,_0x576b9e=_0x533b6d[_0x28d622(0x1d7)];if(!_0x576b9e)return console[_0x28d622(0x1e4)](_0xe2bcba+'\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null'),null;const _0x473654=_0x2d9f94(_0x533b6d);console[_0x28d622(0x1e4)](_0xe2bcba+'\x20Bootstrap\x20options:',JSON[_0x28d622(0x112)](_0x473654,null,0x2));const _0x182790=_0x270b3a(_0x473654),_0x37777c=JSON['stringify'](_0x576b9e),_0x1b818a=[_0x28d622(0x1b9),'(async\x20()\x20=>\x20{','\x20\x20try\x20{',_0x28d622(0x102)+_0x37777c+';',_0x28d622(0x124),'\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);',_0x28d622(0xdc),_0x28d622(0x1e6),_0x28d622(0x137),_0x28d622(0x1cf),_0x28d622(0x1c7),'\x20\x20\x20\x20\x20\x20return;',_0x28d622(0x133),_0x28d622(0x199)+_0x182790+',\x20null,\x202));','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init('+_0x182790+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);',_0x28d622(0x1c5),_0x28d622(0x1ac),_0x28d622(0x163),_0x28d622(0xf5),_0x28d622(0x1dd),_0x28d622(0x186),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x28d622(0x133),_0x28d622(0x1a7),_0x28d622(0xde),_0x28d622(0x1ba),_0x28d622(0xf4),'})();',_0x28d622(0xfc)];return _0x1b818a['join']('\x0a');}function _0x2d9f94(_0x2c0736){const _0x33d824=_0x21abfc,_0xc0b0f0={'publishableKey':_0x2c0736[_0x33d824(0x1cb)],'callbackBypass':_0x2c0736[_0x33d824(0xe1)],'__development':{'enableOverlayHmr':_0x2c0736['overlayEnableViteHmr'],'overlayPath':_0x2c0736[_0x33d824(0x1c2)],'security':_0x2c0736[_0x33d824(0x1c0)],'backendUrl':_0x2c0736['backendUrl']}};return _0xc0b0f0;}function _0x270b3a(_0x232a81){const _0x17abca=_0x21abfc;return JSON['stringify'](_0x232a81)['replace'](/</g,_0x17abca(0x18f))[_0x17abca(0x168)](/>/g,'\x5cu003e');}function _0x67d181(_0x2a2964,_0x309847){const _0x24ce70=_0x21abfc,_0x23d013=_0x29af7c=>_0x447ada(_0x2a2964,_0x29af7c),_0x5d243a=_0x158425=>_0x1ef24c(_0x2a2964,_0x158425);return _0x309847[_0x24ce70(0x168)](/<script\b[^>]*>/gi,_0x23d013)[_0x24ce70(0x168)](/<link\b[^>]*>/gi,_0x5d243a);}function _0x8b9d9a(_0x371f56){const _0xc5893d=_0x21abfc;return _0x371f56[_0xc5893d(0x168)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x447ada(_0x1309a7,_0x553497){const _0x25d22a=_0x21abfc,_0x5231ab=_0x1e8798(_0x553497,_0x25d22a(0x1af));if(!_0x5231ab)return _0x553497;const _0x3a618=_0xfe4e5e(_0x1309a7,_0x5231ab[_0x25d22a(0x165)]);if(!_0x3a618||_0x3a618===_0x5231ab[_0x25d22a(0x165)])return _0x553497;const _0x2eb5d9=_0x5231ab[_0x25d22a(0x1c9)][_0x25d22a(0x168)](_0x5231ab[_0x25d22a(0x165)],_0x3a618);return _0x553497[_0x25d22a(0x168)](_0x5231ab[_0x25d22a(0x1c9)],_0x2eb5d9);}function _0x1ef24c(_0x50afe0,_0x41df1c){const _0x13f841=_0x21abfc,_0x372aec=_0x41df1c[_0x13f841(0x1b5)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x372aec)return _0x41df1c;const _0x435dd6=_0x372aec[0x2][_0x13f841(0x14a)]();if(_0x435dd6!==_0x13f841(0x162)&&_0x435dd6!==_0x13f841(0xe7))return _0x41df1c;const _0x5a227c=_0x1e8798(_0x41df1c,'href');if(!_0x5a227c)return _0x41df1c;const _0x20e6e4=_0xfe4e5e(_0x50afe0,_0x5a227c[_0x13f841(0x165)]);if(!_0x20e6e4||_0x20e6e4===_0x5a227c[_0x13f841(0x165)])return _0x41df1c;const _0x5811c9=_0x5a227c['full'][_0x13f841(0x168)](_0x5a227c['value'],_0x20e6e4);return _0x41df1c[_0x13f841(0x168)](_0x5a227c[_0x13f841(0x1c9)],_0x5811c9);}function _0x1e8798(_0x34d61a,_0x6e0c25){const _0x4167dd=_0x21abfc,_0x36f67d=new RegExp(_0x6e0c25+_0x4167dd(0x14d),'i'),_0x36e692=_0x34d61a[_0x4167dd(0x1b5)](_0x36f67d);if(!_0x36e692)return null;return{'full':_0x36e692[0x0],'value':_0x36e692[0x2]};}function _0xfe4e5e(_0x312852,_0x10e7d4){const _0x4060dc=_0x21abfc,_0x2f2c46=_0x213312(_0x10e7d4);if(!_0x2f2c46)return null;if(_0x2f2c46[_0x4060dc(0x1d0)]===self[_0x4060dc(0x1ae)][_0x4060dc(0x1d0)])return''+_0x2f2c46['pathname']+_0x2f2c46['search'];return null;}function _0x213312(_0x25ab6a){try{return new URL(_0x25ab6a,self['location']['origin']);}catch{return null;}}var _0x5f4ef1=_0x21abfc(0x147);async function _0x1c17d4(_0x203db2,_0x58da35,_0x3d0c3a,_0x53c334=!![]){const _0x4215bd=_0x21abfc;console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x154)),console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x17d)+_0x3d0c3a),console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x16d)+_0x53c334),console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x158)+_0x203db2[_0x4215bd(0x1c0)]);const _0x466296=_0x58da35[_0x4215bd(0x107)](),_0x1eaf2b=await _0x466296['text']();console[_0x4215bd(0x1e4)](_0x5f4ef1+'\x20\x20\x20Original\x20HTML\x20length:\x20'+_0x1eaf2b[_0x4215bd(0x10f)]+_0x4215bd(0x134)),console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x161));const _0x13984a=_0x8b9d9a(_0x1eaf2b);console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x1a5));let _0x2dcc1f=_0x67d181(_0x203db2,_0x13984a);_0x3d0c3a===_0x4215bd(0x108)?(console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x171)),_0x2dcc1f=_0x42b626(_0x203db2,_0x2dcc1f)):console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0xd4));_0x53c334?(console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x138)),_0x2dcc1f=_0x3fcf4b(_0x203db2,_0x2dcc1f)):console['log'](_0x5f4ef1+_0x4215bd(0x167));console[_0x4215bd(0x1e4)](_0x5f4ef1+'\x20\x20\x20Rewritten\x20HTML\x20length:\x20'+_0x2dcc1f[_0x4215bd(0x10f)]+_0x4215bd(0x134));const _0x33e58b=new Headers(_0x466296[_0x4215bd(0x1e5)]);_0x33e58b[_0x4215bd(0x12d)](_0x4215bd(0x16e),_0x4215bd(0x1d4)),_0x33e58b[_0x4215bd(0x12d)](_0x4215bd(0x1b0),'rewritten'),_0x33e58b[_0x4215bd(0x12d)](_0x4215bd(0x14c),_0x3d0c3a),_0x36f724(_0x33e58b);if(_0x203db2['securityMode']!=='custom'){console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x11c));const _0x102d0a=_0x33e58b[_0x4215bd(0x1a4)]('content-security-policy');_0x33e58b['set'](_0x4215bd(0x12e),_0x163507(_0x102d0a)),_0x33e58b[_0x4215bd(0x1b6)](_0x4215bd(0x198)),_0x33e58b['delete']('cross-origin-embedder-policy'),_0x33e58b[_0x4215bd(0x1b6)](_0x4215bd(0x1a9));}else console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x157));return console[_0x4215bd(0x1e4)](_0x5f4ef1+_0x4215bd(0x15a)),new Response(_0x2dcc1f,{'status':_0x466296[_0x4215bd(0x13a)],'statusText':_0x466296[_0x4215bd(0x127)],'headers':_0x33e58b});}var _0x3c9feb=_0x21abfc(0x169);console[_0x21abfc(0x1e4)](_0x3c9feb+_0x21abfc(0x151));var _0x1af98e={'overlayPath':'https://assets.enhancelabs.ai/overlay.js','backendUrl':_0x21abfc(0xd2),'overlayEnableViteHmr':![],'runtimeScriptPath':'/assets/enhance-runtime.js','swPath':_0x21abfc(0x136)},_0x1c5df1={'publishableKey':'','callbackBypass':[_0x21abfc(0x13e)],'securityMode':_0x21abfc(0xcc),'enhancementUrl':null,'enhancementBase':null};function _0x2c4e4e(){const _0x19a7c9=_0x21abfc;return{..._0x1af98e,'publishableKey':_0x1c5df1['publishableKey'],'enhancementUrl':_0x1c5df1[_0x19a7c9(0xd1)]??'','enhancementBase':_0x1c5df1[_0x19a7c9(0x1ea)],'callbackBypass':_0x1c5df1[_0x19a7c9(0xe1)],'callbackBypassNormalized':_0x1c5df1[_0x19a7c9(0xe1)][_0x19a7c9(0x160)](_0xb5dbc0=>_0xb5dbc0[_0x19a7c9(0x11b)]('/')?_0xb5dbc0:'/'+_0xb5dbc0),'securityMode':_0x1c5df1[_0x19a7c9(0x1c0)]};}function _0x3c0930(_0x364261,_0x31ce0a,..._0x4f4ec3){const _0x355ff7=_0x21abfc;_0x364261===_0x355ff7(0x1d3)?console['info'](_0x3c9feb,_0x31ce0a,..._0x4f4ec3):console[_0x355ff7(0x1b4)](_0x3c9feb,_0x31ce0a,..._0x4f4ec3);}self[_0x21abfc(0x122)]('install',_0x43f9fd=>{const _0x1b72f0=_0x21abfc;console[_0x1b72f0(0x1e4)](_0x3c9feb+'\x20INSTALL'),_0x43f9fd[_0x1b72f0(0xe5)](self['skipWaiting']());}),self[_0x21abfc(0x122)](_0x21abfc(0x15e),_0x51d751=>{const _0x13ea97=_0x21abfc;console['log'](_0x3c9feb+_0x13ea97(0x19f)),_0x51d751[_0x13ea97(0xe5)](self[_0x13ea97(0x18c)][_0x13ea97(0x12f)]());}),self['addEventListener'](_0x21abfc(0x126),_0x267307=>{const _0x560a62=_0x21abfc,_0xfa3cc4=_0x267307[_0x560a62(0xea)];if(!_0xfa3cc4||typeof _0xfa3cc4!==_0x560a62(0x10a))return;switch(_0xfa3cc4[_0x560a62(0x179)]){case _0x456b9f:{console['log'](_0x3c9feb+_0x560a62(0x190));const _0x389b5a=_0xfa3cc4[_0x560a62(0x14f)];_0x1c5df1[_0x560a62(0x1cb)]=_0x389b5a[_0x560a62(0x1cb)]??'',_0x1c5df1[_0x560a62(0xe1)]=_0x389b5a[_0x560a62(0xe1)]??[_0x560a62(0x13e)],_0x1c5df1[_0x560a62(0x1c0)]=_0x389b5a['securityMode']??_0x560a62(0xcc);if(_0x389b5a[_0x560a62(0xd1)]){_0x1c5df1[_0x560a62(0xd1)]=_0x389b5a[_0x560a62(0xd1)];try{_0x1c5df1[_0x560a62(0x1ea)]=new URL(_0x389b5a[_0x560a62(0xd1)]);}catch{console[_0x560a62(0xfa)](_0x3c9feb+_0x560a62(0x11e)+_0x389b5a[_0x560a62(0xd1)]),_0x1c5df1[_0x560a62(0x1ea)]=null;}}else _0x1c5df1[_0x560a62(0xd1)]=null,_0x1c5df1['enhancementBase']=null;console['log'](_0x3c9feb+_0x560a62(0x1b8),{'publishableKey':_0x1c5df1['publishableKey']?_0x560a62(0x1a0):_0x560a62(0x17c),'enhancementUrl':_0x1c5df1[_0x560a62(0xd1)]??_0x560a62(0x155)});break;}case _0x4cfe3a:console[_0x560a62(0x1e4)](_0x3c9feb+_0x560a62(0xfb)),_0x1c5df1={'publishableKey':'','callbackBypass':[_0x560a62(0x13e)],'securityMode':_0x560a62(0xcc),'enhancementUrl':null,'enhancementBase':null};break;}}),self['addEventListener']('fetch',_0x2d8fe0=>{const _0x31dd48=_0x21abfc,_0x1ecf9d=new URL(_0x2d8fe0[_0x31dd48(0x1e0)][_0x31dd48(0xed)]);if(_0x1ecf9d['origin']!==self[_0x31dd48(0x1ae)][_0x31dd48(0x1d0)])return;_0x2d8fe0[_0x31dd48(0x10c)](_0x330173(_0x2d8fe0));});async function _0x330173(_0xe50be7){const _0x821e3d=_0x21abfc,{request:_0x4bcb17}=_0xe50be7,_0x431107=new URL(_0x4bcb17['url']),_0xa54499=_0x4bcb17[_0x821e3d(0x15c)]===_0x821e3d(0x17f);console['log'](_0x3c9feb+_0x821e3d(0x19e)+_0x4bcb17[_0x821e3d(0x1be)]+'\x20'+_0x431107[_0x821e3d(0x109)]+_0x431107[_0x821e3d(0x116)]+'\x20('+_0x4bcb17[_0x821e3d(0x15c)]+')');if(!_0x5af25c(_0x4bcb17))return fetch(_0x4bcb17);const _0x209ad0=_0x2c4e4e();console[_0x821e3d(0x1e4)](_0x3c9feb+_0x821e3d(0x164)+(_0x209ad0['enhancementUrl']||_0x821e3d(0x155)));if(_0x2de0ca(_0x209ad0,_0x431107[_0x821e3d(0x109)]))return console[_0x821e3d(0x1e4)](_0x3c9feb+_0x821e3d(0xf7)+_0x431107[_0x821e3d(0x109)]),fetch(_0x4bcb17);if(_0xa54499)return _0x5eca24(_0x4bcb17,_0x209ad0);if(!_0x1bf5ce(_0x209ad0,_0x4bcb17,_0x431107))return fetch(_0x4bcb17);const _0x312812=await _0xe927a1(_0x209ad0,_0x4bcb17,_0x431107);if(_0x312812)return console[_0x821e3d(0x1e4)](_0x3c9feb+'\x20\x20\x20Enhancement\x20HIT:\x20'+_0x431107[_0x821e3d(0x109)]),_0x312812;return console[_0x821e3d(0x1e4)](_0x3c9feb+_0x821e3d(0x10b)+_0x431107[_0x821e3d(0x109)]),fetch(_0x4bcb17);}async function _0x5eca24(_0x3d0382,_0x1a4091){const _0x19f7f4=_0x21abfc,_0x2ced82=new URL(_0x3d0382[_0x19f7f4(0xed)]);console[_0x19f7f4(0x1e4)](_0x3c9feb+_0x19f7f4(0x145)+_0x2ced82[_0x19f7f4(0x109)]+_0x2ced82[_0x19f7f4(0x116)]);const _0x1079a0=await fetch(_0x3d0382);if(!_0x1077fe(_0x1079a0))return _0x1079a0;const _0x17737f=_0xf6340a(_0x1079a0,_0x19f7f4(0x1d9)),_0x4f1fc7=await _0x312d33(_0x1a4091,_0x3d0382),_0x1f09bd=_0x4f1fc7?_0x19f7f4(0x108):'production',_0x18c2d1=_0x4f1fc7??_0x17737f,_0x2396ee=_0x1f09bd==='enhancement'||_0x2ced82[_0x19f7f4(0x110)][_0x19f7f4(0x192)](_0x19f7f4(0x141))||_0x2ced82[_0x19f7f4(0x110)][_0x19f7f4(0x192)](_0x19f7f4(0x108));try{return await _0x1c17d4(_0x1a4091,_0x18c2d1,_0x1f09bd,_0x2396ee);}catch(_0x41510b){return console['error'](_0x3c9feb+_0x19f7f4(0x159),_0x41510b),_0x18c2d1;}}return _0x4bb004(_0x1a352f);})());
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x26013b=_0x43f5;(function(_0x264abf,_0x3b8846){var _0x498597=_0x43f5,_0x279195=_0x264abf();while(!![]){try{var _0x366f5f=-parseInt(_0x498597(0xe4))/0x1*(parseInt(_0x498597(0xdc))/0x2)+parseInt(_0x498597(0xf6))/0x3*(-parseInt(_0x498597(0xe7))/0x4)+parseInt(_0x498597(0xef))/0x5*(-parseInt(_0x498597(0xf4))/0x6)+parseInt(_0x498597(0xdb))/0x7+parseInt(_0x498597(0xdf))/0x8+parseInt(_0x498597(0xf0))/0x9*(-parseInt(_0x498597(0xf1))/0xa)+parseInt(_0x498597(0xf5))/0xb;if(_0x366f5f===_0x3b8846)break;else _0x279195['push'](_0x279195['shift']());}catch(_0x100baf){_0x279195['push'](_0x279195['shift']());}}}(_0x64e2,0x79af7));import{fileURLToPath}from'url';import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x26013b(0xe1),import.meta.url)),swPath=fileURLToPath(new URL(_0x26013b(0xf7),import.meta.url)),RUNTIME_URL=_0x26013b(0xec),SW_URL=_0x26013b(0xe3);function buildInitScript(_0x8c43d){var _0x1e257a=_0x26013b;const _0xb38b4={'publishableKey':_0x8c43d[_0x1e257a(0xe0)],'callbackBypass':_0x8c43d[_0x1e257a(0xda)],'__development':_0x8c43d[_0x1e257a(0xea)]},_0x3a1d1e=JSON[_0x1e257a(0xf2)](_0xb38b4);return'<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22'+RUNTIME_URL+'\x22;\x0aEnhance.init('+_0x3a1d1e+_0x1e257a(0xee);}function _0x64e2(){var _0x49ab8d=['../assets/enhance-runtime.js','assets/enhance-runtime.js','/sw-enhance.js','345NWFNpK','application/javascript','setHeader','3833528yMsLpE','use','asset','__development','sw-enhance.js','/assets/enhance-runtime.js','Content-Type',');\x0a</script>','10JZsZsk','45mLmzIh','561490uNjxFn','stringify','replace','2116266wJYlPI','17790960knsGLK','3vgsiuK','../sw-enhance.js','emitFile','url','callbackBypass','5321295dxlGIY','4410terBDo','middlewares','utf-8','6609216hnHEtb','publishableKey'];_0x64e2=function(){return _0x49ab8d;};return _0x64e2();}var enhance=_0x21ca08=>{let _0x3a214a=null,_0x2de3fe=null;async function _0x180a4c(){var _0x39976e=_0x43f5;!_0x3a214a&&(_0x3a214a=await readFile(runtimePath,_0x39976e(0xde))),!_0x2de3fe&&(_0x2de3fe=await readFile(swPath,'utf-8'));}return{'name':'enhance-sandbox','configureServer'(_0x26f6b0){var _0x117402=_0x43f5;_0x26f6b0['middlewares'][_0x117402(0xe8)](async(_0xaee164,_0x23508a,_0x3acde0)=>{var _0x3efb78=_0x117402;if(_0xaee164[_0x3efb78(0xd9)]===RUNTIME_URL||_0xaee164[_0x3efb78(0xd9)]===SW_URL){await _0x180a4c(),_0x23508a['setHeader']('Content-Type',_0x3efb78(0xe5)),_0x23508a['end'](_0xaee164[_0x3efb78(0xd9)]===RUNTIME_URL?_0x3a214a:_0x2de3fe);return;}_0x3acde0();});},'configurePreviewServer'(_0x11eb4b){var _0x3afaec=_0x43f5;_0x11eb4b[_0x3afaec(0xdd)]['use'](async(_0x1e26f6,_0x584141,_0x52f0a8)=>{var _0x41b78a=_0x3afaec;if(_0x1e26f6[_0x41b78a(0xd9)]===RUNTIME_URL||_0x1e26f6[_0x41b78a(0xd9)]===SW_URL){await _0x180a4c(),_0x584141[_0x41b78a(0xe6)](_0x41b78a(0xed),_0x41b78a(0xe5)),_0x584141['end'](_0x1e26f6['url']===RUNTIME_URL?_0x3a214a:_0x2de3fe);return;}_0x52f0a8();});},async 'generateBundle'(){var _0x1a5982=_0x43f5;await _0x180a4c(),this[_0x1a5982(0xf8)]({'type':_0x1a5982(0xe9),'fileName':_0x1a5982(0xe2),'source':_0x3a214a}),this[_0x1a5982(0xf8)]({'type':_0x1a5982(0xe9),'fileName':_0x1a5982(0xeb),'source':_0x2de3fe});},'transformIndexHtml'(_0x50c432){var _0x32aba4=_0x43f5;const _0x2de371=buildInitScript(_0x21ca08);return _0x50c432[_0x32aba4(0xf3)](/<head([^>]*)>/,'<head$1>'+_0x2de371);}};};function _0x43f5(_0x42466d,_0x2819b0){_0x42466d=_0x42466d-0xd9;var _0x64e2d3=_0x64e2();var _0x43f516=_0x64e2d3[_0x42466d];return _0x43f516;}export{enhance};
|