@enhance-eng/sandbox 0.3.21-beta.a1057ef → 0.3.21-beta.fdfcd31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const _0x2d96e4=_0x16ac;(function(_0x3b6916,_0x5b86a5){const _0x3cd9dd=_0x16ac,_0x3e7e71=_0x3b6916();while(!![]){try{const _0x208feb=-parseInt(_0x3cd9dd(0x9d))/0x1+parseInt(_0x3cd9dd(0xbc))/0x2+-parseInt(_0x3cd9dd(0xff))/0x3+parseInt(_0x3cd9dd(0xfe))/0x4+-parseInt(_0x3cd9dd(0xa6))/0x5*(-parseInt(_0x3cd9dd(0xe1))/0x6)+parseInt(_0x3cd9dd(0x10f))/0x7*(-parseInt(_0x3cd9dd(0xee))/0x8)+-parseInt(_0x3cd9dd(0x91))/0x9*(-parseInt(_0x3cd9dd(0x128))/0xa);if(_0x208feb===_0x5b86a5)break;else _0x3e7e71['push'](_0x3e7e71['shift']());}catch(_0x128da9){_0x3e7e71['push'](_0x3e7e71['shift']());}}}(_0x5845,0x58dbd));var DEFAULT_OVERLAY_PATH=!![]?_0x2d96e4(0x99):_0x2d96e4(0x99),DEFAULT_BACKEND_URL=!![]?_0x2d96e4(0xd3):_0x2d96e4(0xd3),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x2d96e4(0x10c)](_0x2d96e4(0x79),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x8900b6){const _0x2cc32e=_0x2d96e4;if(!_0x8900b6['publishableKey'])throw new Error(_0x2cc32e(0xe7));const _0x2aa07e=_0x8900b6[_0x2cc32e(0x118)]??{};return{'publishableKey':_0x8900b6[_0x2cc32e(0x86)],'callbackBypass':_0x8900b6[_0x2cc32e(0xab)]??[],'overlay':{'enabled':!![],'position':_0x2cc32e(0xa0),'enableViteHmr':_0x2aa07e[_0x2cc32e(0xfc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x2cc32e(0xe2),'swPath':'/sw-enhance.js','overlayPath':_0x2aa07e[_0x2cc32e(0xcd)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2cc32e(0xb3),'security':_0x2aa07e['security']??_0x2cc32e(0x119),'backendUrl':_0x2aa07e['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x1be307=_0x2d96e4;try{const _0x44b034=new URLSearchParams(window['location'][_0x1be307(0xe6)]);return _0x44b034[_0x1be307(0x116)](_0x1be307(0x10b))?.[_0x1be307(0xea)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x586863){const _0x3397d3=_0x2d96e4;console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0xbb)),console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0xce)+_0x586863[_0x3397d3(0xcd)]),console['log'](LOG_PREFIX+_0x3397d3(0xa7)+_0x586863[_0x3397d3(0xd9)]),currentOptions=_0x586863[_0x3397d3(0xfd)],toggleHandler=_0x586863[_0x3397d3(0xc4)];if(overlayController){console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0xde)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0x7a)),overlayLoadPromise;console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0x101)),overlayLoadPromise=doLoadOverlay(_0x586863);try{await overlayLoadPromise,console[_0x3397d3(0x10c)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x503918){console[_0x3397d3(0xa4)](LOG_PREFIX+_0x3397d3(0x9e),_0x503918);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x55af9b){const _0x1d68b8=_0x2d96e4;console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x77));if(typeof window===_0x1d68b8(0x94)){console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x125));return;}if(window['__enhanceOverlay']){console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xdc)),overlayController=window['__enhanceOverlay'];return;}console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x113));try{_0x55af9b[_0x1d68b8(0xd9)]&&(console['log'](LOG_PREFIX+_0x1d68b8(0x7f)),await setupRemoteHMR(_0x55af9b['overlayPath']));console['log'](LOG_PREFIX+_0x1d68b8(0xc7)+_0x55af9b[_0x1d68b8(0xcd)]);const _0x4d3b7b=Date[_0x1d68b8(0xf5)](),_0x354179=await import(_0x55af9b['overlayPath']);console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x111)+(Date[_0x1d68b8(0xf5)]()-_0x4d3b7b)+'ms'),console['log'](LOG_PREFIX+_0x1d68b8(0x107),Object['keys'](_0x354179));if(typeof _0x354179?.['createOverlay']!==_0x1d68b8(0x83)){console[_0x1d68b8(0xa4)](LOG_PREFIX+_0x1d68b8(0x104)),console[_0x1d68b8(0xa4)](LOG_PREFIX+_0x1d68b8(0x127),Object[_0x1d68b8(0xb2)](_0x354179));return;}console[_0x1d68b8(0x10c)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x5b099a=_0x354179['createOverlay']();console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xeb),_0x5b099a),overlayController=_0x5b099a,window[_0x1d68b8(0x11c)]=_0x5b099a,_0x5b099a[_0x1d68b8(0xc4)](_0x55af9b[_0x1d68b8(0xc4)]),console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xb5)),console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xec)),updateOverlay();}catch(_0x1578c0){console[_0x1d68b8(0xa4)](LOG_PREFIX+_0x1d68b8(0x76),_0x1578c0);}}function updateOverlay(){const _0x20ebbb=_0x2d96e4;console[_0x20ebbb(0x10c)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0x132)+!!overlayController),console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0x12e)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0xd1));return;}const _0x56b048=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x20ebbb(0xc0)](_0x56b048,null,0x2)),overlayController['update'](_0x56b048),console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0x117));}function composeOverlayState(_0x587028){const _0x26bd49=_0x2d96e4,_0x9a52bd=getEnhancementId();return console[_0x26bd49(0x10c)](LOG_PREFIX+_0x26bd49(0x84)+_0x9a52bd),console[_0x26bd49(0x10c)](LOG_PREFIX+_0x26bd49(0x10d)+state[_0x26bd49(0xc5)]),console[_0x26bd49(0x10c)](LOG_PREFIX+_0x26bd49(0x12c)+state['controlled']),{'enhancementId':_0x9a52bd,'enabled':state[_0x26bd49(0xc5)],'controlled':state[_0x26bd49(0x8b)],'overlayPosition':_0x587028[_0x26bd49(0x72)][_0x26bd49(0xf9)],'securityMode':_0x587028[_0x26bd49(0x8a)],'backendBaseUrl':_0x587028[_0x26bd49(0x123)],'appError':state[_0x26bd49(0x105)]};}async function setupRemoteHMR(_0x307b87){const _0x46680c=_0x2d96e4;console[_0x46680c(0x10c)](LOG_PREFIX+_0x46680c(0xef)+_0x307b87);if(typeof window===_0x46680c(0x94))return;try{const _0x4a8382=new URL(_0x307b87,window[_0x46680c(0x9a)][_0x46680c(0xc6)]),_0x20f2d4=_0x4a8382['origin'];console[_0x46680c(0x10c)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x20f2d4+',\x20page\x20origin:\x20'+window[_0x46680c(0x9a)][_0x46680c(0xc6)]);if(_0x20f2d4===window[_0x46680c(0x9a)][_0x46680c(0xc6)]){console[_0x46680c(0x10c)](LOG_PREFIX+_0x46680c(0xd5));return;}console[_0x46680c(0x10c)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x20f2d4),await ensureViteClient(_0x20f2d4),console['log'](LOG_PREFIX+_0x46680c(0xb6));}catch(_0x4e7a99){console[_0x46680c(0xba)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x4e7a99);}}async function ensureReactRefreshPreamble(_0x5bbb17){const _0x516918=_0x2d96e4;window[_0x516918(0xe9)]??(window[_0x516918(0xe9)]=new Set());if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x5bbb17)){console[_0x516918(0x10c)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x5bbb17);return;}console[_0x516918(0x10c)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x5bbb17+_0x516918(0xe0));const _0xdfd3f8=await import(_0x5bbb17+'/@react-refresh'),_0x3a21f2=_0xdfd3f8&&typeof _0xdfd3f8===_0x516918(0xbf)&&_0x516918(0x120)in _0xdfd3f8?_0xdfd3f8[_0x516918(0x120)]:_0xdfd3f8;if(!isRefreshRuntime(_0x3a21f2)){console[_0x516918(0xba)](LOG_PREFIX+_0x516918(0xa2));return;}_0x3a21f2[_0x516918(0x93)](window),window[_0x516918(0xbd)]=()=>{},window[_0x516918(0xf2)]=()=>_0x46170b=>_0x46170b,window[_0x516918(0x11f)]=!![],window[_0x516918(0xe9)][_0x516918(0x114)](_0x5bbb17),console[_0x516918(0x10c)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x5bbb17);}async function ensureViteClient(_0x3761d3){const _0x5369c1=_0x2d96e4;window[_0x5369c1(0xf4)]??(window[_0x5369c1(0xf4)]=new Set());if(window['__viteHMRLoaded'][_0x5369c1(0xb0)](_0x3761d3)){console['log'](LOG_PREFIX+_0x5369c1(0xaa)+_0x3761d3);return;}console[_0x5369c1(0x10c)](LOG_PREFIX+_0x5369c1(0x122)+_0x3761d3+_0x5369c1(0xe0)),await import(_0x3761d3+'/@vite/client'),window['__viteHMRLoaded']['add'](_0x3761d3),console['log'](LOG_PREFIX+_0x5369c1(0xe5)+_0x3761d3);}function isRefreshRuntime(_0x43dfe9){const _0x5ab6b7=_0x2d96e4;return typeof _0x43dfe9===_0x5ab6b7(0xbf)&&_0x43dfe9!==null&&_0x5ab6b7(0x93)in _0x43dfe9&&typeof _0x43dfe9[_0x5ab6b7(0x93)]===_0x5ab6b7(0x83);}var WORKER_MESSAGE_CONFIG=_0x2d96e4(0x103),WORKER_MESSAGE_DISABLE=_0x2d96e4(0xb4),LOG_PREFIX2=_0x2d96e4(0xa5),registration=null,currentOptions2=null;async function registerServiceWorker(_0x3acae9){const _0x431fa0=_0x2d96e4;console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xdb));if(!(_0x431fa0(0xa8)in navigator)){console[_0x431fa0(0xba)](LOG_PREFIX2+_0x431fa0(0xd2));return;}const _0x9652e0=!!navigator[_0x431fa0(0xa8)][_0x431fa0(0x102)];currentOptions2=_0x3acae9;const _0xdf4d7d=await detectBlockingServiceWorker(_0x3acae9['swPath']);if(_0xdf4d7d){console[_0x431fa0(0xa4)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0xdf4d7d);return;}try{console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xc2)+_0x3acae9[_0x431fa0(0x112)]+'...'),registration=await navigator[_0x431fa0(0xa8)][_0x431fa0(0x82)](_0x3acae9[_0x431fa0(0x112)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x431fa0(0xf0)),await navigator[_0x431fa0(0xa8)][_0x431fa0(0x135)],console['log'](LOG_PREFIX2+'\x20SW\x20ready'),state[_0x431fa0(0x8b)]=ownsCurrentController(_0x3acae9[_0x431fa0(0x112)]);if(!_0x9652e0&&!navigator[_0x431fa0(0xa8)][_0x431fa0(0x102)]){console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xc9)),window[_0x431fa0(0x9a)][_0x431fa0(0x106)]();return;}console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xcf)),await sendConfiguration();if(state[_0x431fa0(0xc5)]){const _0x1ba187=document[_0x431fa0(0x97)](_0x431fa0(0xac))!==null;if(!_0x1ba187){console[_0x431fa0(0x10c)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20-\x20reloading'),window[_0x431fa0(0x9a)][_0x431fa0(0x106)]();return;}}updateOverlay(),console[_0x431fa0(0x10c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x343aa5){console['error'](LOG_PREFIX2+_0x431fa0(0x98),_0x343aa5);}}async function sendConfiguration(){const _0x435417=_0x2d96e4;if(!state['enabled']||!currentOptions2)return;const _0x3f3086=await resolveWorker();if(!_0x3f3086){console['warn'](LOG_PREFIX2+_0x435417(0x81));return;}const _0x4ba507=window['__enhanceResolvedUrl']??null,_0x128d6e={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x435417(0xab)],'securityMode':currentOptions2[_0x435417(0x8a)],'enhancementUrl':_0x4ba507??void 0x0};console[_0x435417(0x10c)](LOG_PREFIX2+_0x435417(0x136),JSON[_0x435417(0xc0)](_0x128d6e,null,0x2)),_0x3f3086[_0x435417(0xf1)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x128d6e});}async function unregisterServiceWorker(_0x2379ae){const _0x34c847=_0x2d96e4;console['log'](LOG_PREFIX2+_0x34c847(0x95));if(!(_0x34c847(0xa8)in navigator))return;try{const _0x2594a2=registration??await navigator['serviceWorker']['getRegistration']('/');if(!_0x2594a2)return;const _0x20346f=[_0x2594a2[_0x34c847(0xb8)]?.[_0x34c847(0xc3)],_0x2594a2[_0x34c847(0xe4)]?.['scriptURL'],_0x2594a2[_0x34c847(0x126)]?.['scriptURL']],_0x1b347b=_0x20346f[_0x34c847(0x12d)](_0x774ddc=>_0x774ddc&&ownsServiceWorker(_0x774ddc,_0x2379ae));if(!_0x1b347b)return;_0x2594a2[_0x34c847(0xb8)]&&_0x2594a2[_0x34c847(0xb8)][_0x34c847(0xf1)]({'type':WORKER_MESSAGE_DISABLE}),await _0x2594a2['unregister'](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x34c847(0x8d));}catch(_0x526762){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x526762);}}function ownsServiceWorker(_0x2de9d9,_0x29f3c7){const _0x523e49=_0x2d96e4,_0x3565ed=typeof window!==_0x523e49(0x94)?window[_0x523e49(0x9a)][_0x523e49(0xc6)]:'',_0x549563=new URL(_0x29f3c7,_0x3565ed||void 0x0)[_0x523e49(0x115)];return _0x2de9d9===_0x549563||_0x2de9d9['includes'](_0x523e49(0xca));}function ownsCurrentController(_0x295659){const _0x2c3b11=_0x2d96e4,_0x486ab9=navigator[_0x2c3b11(0xa8)]?.['controller'];if(!_0x486ab9)return![];return ownsServiceWorker(_0x486ab9[_0x2c3b11(0xc3)],_0x295659);}async function detectBlockingServiceWorker(_0x2d6bc2){const _0xaf3efa=_0x2d96e4;if(!navigator['serviceWorker'])return null;try{const _0x1a568d=await navigator[_0xaf3efa(0xa8)][_0xaf3efa(0xaf)]('/'),_0x5e39b3=_0x1a568d?.[_0xaf3efa(0xb8)]?.['scriptURL'];if(!_0x5e39b3)return null;if(ownsServiceWorker(_0x5e39b3,_0x2d6bc2))return null;return _0x5e39b3;}catch{return null;}}async function resolveWorker(){const _0x46d12c=_0x2d96e4,_0x531c15=registration??await navigator[_0x46d12c(0xa8)]?.['getRegistration']('/');return _0x531c15?.[_0x46d12c(0xb8)]??_0x531c15?.['waiting']??_0x531c15?.[_0x46d12c(0x126)]??null;}var LOG_PREFIX3=_0x2d96e4(0xc8),STORAGE_KEY_ENHANCEMENT_ID='enhance.enhancementId',STORAGE_KEY_ENHANCEMENT_URL=_0x2d96e4(0xed);function isInitialized(){const _0x3b8eb8=_0x2d96e4;return typeof window!==_0x3b8eb8(0x94)&&window[_0x3b8eb8(0x75)]===!![];}function setInitialized(_0x4114cd){const _0x94ed50=_0x2d96e4;typeof window!=='undefined'&&(window[_0x94ed50(0x75)]=_0x4114cd);}function getOptions(){const _0x59a7cd=_0x2d96e4;return typeof window!==_0x59a7cd(0x94)?window[_0x59a7cd(0xda)]??null:null;}function setOptions(_0x2fd1b3){const _0x10e7e7=_0x2d96e4;typeof window!==_0x10e7e7(0x94)&&(window[_0x10e7e7(0xda)]=_0x2fd1b3);}var Enhance={'init'(_0x1aa5e3){const _0xb5e559=_0x2d96e4,_0x2888a8=Date['now']();console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x121)+_0x2888a8),console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x9f)+window[_0xb5e559(0x9a)]['href']),console['log'](LOG_PREFIX3+_0xb5e559(0x78)+document[_0xb5e559(0xd7)]);if(isInitialized())return console[_0xb5e559(0xba)](LOG_PREFIX3+_0xb5e559(0x100)),window[_0xb5e559(0x12f)]??createController();setInitialized(!![]);const _0x17ed52=normalizeOptions(_0x1aa5e3);setOptions(_0x17ed52);const _0x19b26c=parseEnhancementParams();console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x7d),JSON[_0xb5e559(0xc0)](_0x19b26c,null,0x2));if(_0x19b26c[_0xb5e559(0x88)])return cleanUrlParam(_0xb5e559(0x9b)),clearPersistedEnhancement(),console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x92)),createController();if(!_0x19b26c[_0xb5e559(0xdf)])return console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x7b)),void unregisterServiceWorker(_0x17ed52['swPath']),setupViteErrorListeners(),createController();return console['log'](LOG_PREFIX3+_0xb5e559(0xae)+_0x19b26c[_0xb5e559(0xdf)]),state[_0xb5e559(0xc5)]=!![],void initializeEnhancement(_0x17ed52,_0x19b26c['enhancementId'],_0x19b26c['cachedUrl']),createController();}};async function initializeEnhancement(_0x332886,_0x5654a1,_0x4c81f9){const _0x50dd12=_0x2d96e4;let _0x3f4575=_0x4c81f9;if(!_0x3f4575){console['log'](LOG_PREFIX3+_0x50dd12(0xcb)+_0x5654a1),_0x3f4575=await resolveEnhancementUrl(_0x332886,_0x5654a1);if(!_0x3f4575){console[_0x50dd12(0xa4)](LOG_PREFIX3+'\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting'),state[_0x50dd12(0xc5)]=![];return;}}else console[_0x50dd12(0x10c)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x3f4575);persistEnhancement(_0x5654a1,_0x3f4575),window['__enhanceResolvedUrl']=_0x3f4575,console[_0x50dd12(0x10c)](LOG_PREFIX3+_0x50dd12(0x85)),await registerServiceWorker(_0x332886),console[_0x50dd12(0x10c)](LOG_PREFIX3+_0x50dd12(0x10e)),await loadOverlay({'overlayPath':_0x332886['overlayPath'],'enableViteHmr':_0x332886[_0x50dd12(0x72)]['enableViteHmr'],'options':_0x332886,'onToggle':handleToggle}),console[_0x50dd12(0x10c)](LOG_PREFIX3+_0x50dd12(0xd6));}async function resolveEnhancementUrl(_0x360df6,_0x2d1127){const _0x43fc7d=_0x2d96e4,_0x283c76=_0x360df6[_0x43fc7d(0x123)]+'/public/enhancements/'+_0x2d1127+_0x43fc7d(0xfa);console[_0x43fc7d(0x10c)](LOG_PREFIX3+_0x43fc7d(0x80)+_0x283c76);try{const _0x417f54=await fetch(_0x283c76,{'headers':{'X-Enhance-Publishable-Key':_0x360df6[_0x43fc7d(0x86)]}});if(!_0x417f54['ok']){const _0x4efff0=await _0x417f54['text']();return console[_0x43fc7d(0xa4)](LOG_PREFIX3+_0x43fc7d(0xb9)+_0x417f54[_0x43fc7d(0x89)]+'\x20'+_0x4efff0),null;}const _0x39c9a1=await _0x417f54['json'](),_0x1b397e=''+_0x360df6[_0x43fc7d(0x123)]+_0x39c9a1['operatingPath'];return console[_0x43fc7d(0x10c)](LOG_PREFIX3+'\x20Resolved\x20to:\x20'+_0x1b397e),_0x1b397e;}catch(_0x162f34){return console[_0x43fc7d(0xa4)](LOG_PREFIX3+'\x20Resolution\x20error:',_0x162f34),null;}}function parseEnhancementParams(){const _0x148d29=_0x2d96e4,_0x3da37a=new URL(window[_0x148d29(0x9a)][_0x148d29(0x115)]),_0x2bd889=_0x3da37a['searchParams']['get']('enhance')?.[_0x148d29(0x9c)](),_0x1fce0a=_0x2bd889==='0'||_0x2bd889===_0x148d29(0xcc)||_0x2bd889===_0x148d29(0xe3);let _0x54d6cc=_0x3da37a[_0x148d29(0xf6)][_0x148d29(0x116)]('enhancement'),_0x88aca7=null;if(_0x54d6cc)try{const _0x4a17ba=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_ID),_0x51536d=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_URL);_0x4a17ba===_0x54d6cc&&_0x51536d&&(_0x88aca7=_0x51536d,console[_0x148d29(0x10c)](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x9d2ecc=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_ID),_0x947a09=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_URL);_0x9d2ecc&&_0x947a09&&(_0x54d6cc=_0x9d2ecc,_0x88aca7=_0x947a09,console[_0x148d29(0x10c)](LOG_PREFIX3+_0x148d29(0xdd)),_0x3da37a['searchParams'][_0x148d29(0x8f)]('enhancement',_0x54d6cc),window[_0x148d29(0xa1)]['replaceState'](null,document[_0x148d29(0x11e)],_0x3da37a[_0x148d29(0x130)]()));}catch{}return{'enhancementId':_0x54d6cc,'cachedUrl':_0x88aca7,'explicitDisable':_0x1fce0a};}function persistEnhancement(_0x2a832b,_0x469c2e){const _0x253226=_0x2d96e4;try{sessionStorage[_0x253226(0xc1)](STORAGE_KEY_ENHANCEMENT_ID,_0x2a832b),sessionStorage[_0x253226(0xc1)](STORAGE_KEY_ENHANCEMENT_URL,_0x469c2e),console['log'](LOG_PREFIX3+'\x20Persisted\x20enhancement\x20to\x20sessionStorage');}catch{}}function _0x16ac(_0x4861ef,_0x5aa3d3){_0x4861ef=_0x4861ef-0x72;const _0x58457=_0x5845();let _0x16ac2d=_0x58457[_0x4861ef];return _0x16ac2d;}function clearPersistedEnhancement(){const _0x2f3289=_0x2d96e4;try{sessionStorage[_0x2f3289(0x8c)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x2f3289(0x8c)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x2f3289(0x10c)](LOG_PREFIX3+_0x2f3289(0xf7));}catch{}}function createController(){const _0x11c825=_0x2d96e4,_0x4f882e={'enable'(){const _0x7ed24b=getOptions();if(!_0x7ed24b)return;state['enabled']=!![],void registerServiceWorker(_0x7ed24b),void sendConfiguration(),updateOverlay();},'disable'(){const _0x1c641f=_0x16ac,_0x25d76d=getOptions();if(!_0x25d76d)return;state['enabled']=![],state[_0x1c641f(0x8b)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x25d76d[_0x1c641f(0x112)]);},'status'(){const _0x3dd844=_0x16ac;return{'enabled':state[_0x3dd844(0xc5)],'controlled':state[_0x3dd844(0x8b)]};}};return typeof window!==_0x11c825(0x94)&&(window[_0x11c825(0x12f)]=_0x4f882e),_0x4f882e;}function handleToggle(){const _0xc97fbc=_0x2d96e4,_0x1a1bc2=createController();state[_0xc97fbc(0xc5)]?_0x1a1bc2[_0xc97fbc(0xf8)]():_0x1a1bc2[_0xc97fbc(0x7c)]();}function cleanUrlParam(_0x140010){const _0x2d3115=_0x2d96e4,_0x4798f1=new URL(window[_0x2d3115(0x9a)]['href']);_0x4798f1['searchParams'][_0x2d3115(0xb0)](_0x140010)&&(_0x4798f1['searchParams'][_0x2d3115(0x131)](_0x140010),window[_0x2d3115(0xa1)][_0x2d3115(0xd4)](null,document[_0x2d3115(0x11e)],_0x4798f1[_0x2d3115(0x130)]()));}function setupViteErrorListeners(){const _0x3cffc6=_0x2d96e4;import.meta.hot&&(import.meta.hot['on'](_0x3cffc6(0xfb),_0x3ed5c2=>{const _0xd17e62=_0x3cffc6;state[_0xd17e62(0x105)]={'message':_0x3ed5c2[_0xd17e62(0xad)]['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{state['appError']&&(state['appError']=null,updateOverlay());}));}var package_default={'name':'@enhance-eng/sandbox','version':_0x2d96e4(0xa9),'type':_0x2d96e4(0x109),'description':_0x2d96e4(0x134),'license':_0x2d96e4(0x12b),'main':_0x2d96e4(0x8e),'module':'./dev/index.js','types':_0x2d96e4(0x11d),'exports':{'.':{'types':_0x2d96e4(0x11d),'import':'./dev/index.js'},'./vite':{'types':_0x2d96e4(0x7e),'import':_0x2d96e4(0x96)}},'files':[_0x2d96e4(0x11b)],'bin':{'enhance-sandbox':_0x2d96e4(0xf3)},'scripts':{'typecheck':_0x2d96e4(0x129),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x2d96e4(0x87),'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':_0x2d96e4(0x11a),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x2d96e4(0xb7),'build:release:dev':_0x2d96e4(0x110),'version':_0x2d96e4(0xbe)},'dependencies':{'commander':_0x2d96e4(0xd0),'zod':_0x2d96e4(0x133)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x2d96e4(0x74),'tsup':'^8.5.1','vite':_0x2d96e4(0xa3)},'publishConfig':{'access':_0x2d96e4(0x124)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x2d96e4(0xb3),PACKAGE_VERSION=typeof package_default[_0x2d96e4(0x12a)]===_0x2d96e4(0x90)?package_default['version']:'0.0.0';function normalizeAssetPath(_0x3d407c){const _0x137833=_0x2d96e4;if(!_0x3d407c)return _0x3d407c;if(_0x3d407c['startsWith'](_0x137833(0xd8))||_0x3d407c['startsWith']('https://'))return _0x3d407c;const _0x41800a=_0x3d407c[_0x137833(0x10a)](/^\.\//,'');return _0x41800a[_0x137833(0x73)]('/')?_0x41800a:'/'+_0x41800a;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5174c4){const _0x2abd78=_0x2d96e4;return Enhance[_0x2abd78(0xb1)](_0x5174c4);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function _0x5845(){const _0x40017d=['\x20enableViteHmr:\x20','serviceWorker','0.3.21','\x20Vite\x20client\x20already\x20loaded\x20for\x20','callbackBypass','[data-enhance-runtime-bootstrap]','err','\x20Enhancement\x20mode\x20-\x20ID:\x20','getRegistration','has','init','keys','/assets/enhance-runtime.js','enhance:disable','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20HMR\x20setup\x20complete','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','active','\x20Resolution\x20failed:\x20','warn','\x20loadOverlay()\x20called','432292zWslZa','$RefreshReg$','bun\x20version\x20patch\x20--no-git-tag-version','object','stringify','setItem','\x20Registering\x20SW\x20at\x20','scriptURL','onToggle','enabled','origin','\x20Importing\x20overlay\x20module\x20from:\x20','[Enhance\x20Runtime]','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','sw-enhance','\x20Resolving\x20enhancement\x20ID:\x20','false','overlayPath','\x20overlayPath:\x20','\x20Sending\x20configuration\x20to\x20SW...','^11.1.0','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Service\x20workers\x20NOT\x20supported','https://api.enhancelabs.ai','replaceState','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Enhancement\x20initialization\x20complete','readyState','http://','enableViteHmr','__enhanceOptions','\x20registerServiceWorker()\x20called','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Restored\x20enhancement\x20from\x20sessionStorage','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','enhancementId','...','186cNdOum','info','off','waiting','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','search','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','serviceWorkerURL','__enhanceReactRefreshInstalledOrigins','trim','\x20Controller\x20created:','\x20Calling\x20updateOverlay()...','enhance.enhancementUrl','152ywFysJ','\x20setupRemoteHMR()\x20for\x20','\x20Waiting\x20for\x20SW\x20ready...','postMessage','$RefreshSig$','./dev/cli.js','__viteHMRLoaded','now','searchParams','\x20Cleared\x20persisted\x20enhancement','disable','position','/resolve','vite:error','enableOverlayHmr','options','2121060JpcUWF','459162uysblu','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20Starting\x20fresh\x20overlay\x20load...','controller','enhance:configure','\x20Module\x20missing\x20createOverlay\x20export!','appError','reload','\x20Module\x20exports:','getItem','module','replace','enhancement','log','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Loading\x20overlay...','240989rFXHNb','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','\x20Module\x20imported\x20in\x20','swPath','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','add','href','get','\x20Overlay\x20update\x20complete','__development','permissive','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','dev/','__enhanceOverlay','./dev/index.d.ts','title','__vite_plugin_react_preamble_installed__','default','\x20init()\x20called\x20at\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','backendUrl','public','\x20No\x20window\x20object\x20-\x20skipping','installing','\x20Available\x20exports:','1810YxWLTW','tsc\x20--noEmit','version','MIT','\x20composeOverlayState\x20-\x20state.controlled:\x20','some','\x20currentOptions\x20exists:\x20','__enhanceController','toString','delete','\x20overlayController\x20exists:\x20','^3.22.4','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','ready','\x20Sending\x20config\x20to\x20SW:','overlay','startsWith','^4.1.1','__enhanceInitialized','\x20Failed\x20to\x20import/create\x20overlay:','\x20doLoadOverlay()\x20starting...','\x20Document\x20readyState:\x20','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Normal\x20mode\x20-\x20no\x20enhancement','enable','\x20Enhancement\x20params:','./dev/vite/index.d.ts','\x20Setting\x20up\x20remote\x20HMR...','\x20Calling:\x20','\x20No\x20service\x20worker\x20active\x20to\x20configure','register','function','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','publishableKey','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','explicitDisable','status','security','controlled','removeItem','\x20SW\x20unregistered','./dev/index.js','set','string','19737ObXQwL','\x20Explicit\x20disable\x20-\x20exiting','injectIntoGlobalHook','undefined','\x20unregisterServiceWorker()\x20called','./dev/vite/index.js','querySelector','\x20Failed\x20to\x20register\x20service\x20worker:','https://assets.enhancelabs.ai/overlay.js','location','enhance','toLowerCase','111681WMmEzf','\x20loadOverlay()\x20failed:','\x20Current\x20URL:\x20','bottom-right','history','\x20Invalid\x20React\x20Refresh\x20runtime','^7.2.4','error','[Enhance\x20SW-Client]','22495LpoQPU'];_0x5845=function(){return _0x40017d;};return _0x5845();}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0xa081c1=_0x2d96e4;return Enhance2[_0xa081c1(0xe8)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ function _0x302f(){const _0x5bf996=['disable','@enhance-eng/sandbox','\x20resolveWorker:','\x20First\x20initialization','enabled','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Available\x20exports:',',\x20expected=','object','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','bottom-right','\x20setupRemoteHMR()\x20for\x20','sw-enhance','enableOverlayHmr','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20SW\x20ready!\x20Active:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','querySelector','\x20React\x20Refresh\x20already\x20installed\x20for\x20','controlled','stringify','^8.5.1','off','register','none','swPath','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Unregistering\x20any\x20existing\x20SW...','search','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Calling\x20createOverlay()...','\x20Starting\x20SW\x20registration\x20(async)...','overlay','backendUrl','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','./dev/vite/index.d.ts',',\x20currentOptions:\x20','./dev/index.js','\x20Service\x20workers\x20supported','waiting','1044064bLQsSq','__enhanceOptions','reload','\x20init()\x20called\x20at\x20','scope','string',',\x20owns=','3690428YqbSfi','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20No\x20window\x20object\x20-\x20skipping','injectIntoGlobalHook','dev/','__vite_plugin_react_preamble_installed__','\x20Config\x20sent\x20to\x20SW','\x20Unregistering\x20SW...','has','unregister','[data-enhance-runtime-bootstrap]','serviceWorker','\x20Updating\x20overlay\x20with\x20state:','\x20Enhancement\x20detection:\x20wasEnhanced=','39IqElrr','toLowerCase','includes','\x20Module\x20imported\x20in\x20','callbackBypass','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20HMR\x20setup\x20complete','\x20updateOverlay()\x20called','https://assets.enhancelabs.ai/overlay.js','runtimeURL','enhancementUrl','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','overlayPath','^11.1.0','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','https://api.enhancelabs.ai','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','href','2331280PNbTOc','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','tsc\x20--noEmit','startsWith','controller','\x20ownsServiceWorker?\x20scriptURL=','undefined','\x20Setting\x20up\x20remote\x20HMR...','scriptURL','security','\x20Module\x20exports:','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','createOverlay','state:\x20','643212xXVDrv','\x20Registering\x20SW\x20at\x20','__enhanceController','$RefreshReg$','0.0.0','\x20No\x20blocking\x20SW\x20found','appError','__enhanceReactRefreshInstalledOrigins','warn','some','^24.10.1','\x20Current\x20controller\x20after\x20ready:','102425PoNRDk','__viteHMRLoaded','0.3.21','\x20Invalid\x20React\x20Refresh\x20runtime','/assets/enhance-runtime.js',',\x20page\x20origin:\x20','permissive','138374htgTHM','public','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','/@vite/client','./dev/index.d.ts','\x20detectBlocking\x20error:','...','position','\x20Starting\x20fresh\x20overlay\x20load...','hasEnhancement','^3.22.4','keys','\x20Calling\x20updateOverlay()...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20Updating\x20overlay...','vite:error','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20currentOptions\x20exists:\x20','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','add','module','installing','enableViteHmr','__development','1843134lYnoEE','replace','postMessage','\x20Enhancement\x20mode\x20ENABLED','options','log','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Overlay\x20update\x20complete','/sw-enhance.js','\x20loadOverlay()\x20failed:','origin','\x20Vite\x20error\x20detected:','publishableKey','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','getRegistration','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20state.enabled:\x20','trim','now','enhancement','enhancementId','\x20composeOverlayState\x20-\x20state.enabled:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','^7.2.4','serviceWorkerURL','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','^4.1.1','\x20Checking\x20for\x20blocking\x20service\x20worker...','false','__enhanceInitialized','delete','version','/@react-refresh','\x20Controller\x20created:','\x20Controller\x20state:','\x20registerServiceWorker()\x20called','active','enable','\x20Vite\x20client\x20already\x20loaded\x20for\x20','__enhanceOverlay','\x20init()\x20complete\x20-\x20normal\x20mode','onToggle','init','title','location','state','searchParams','\x20enableViteHmr:\x20','\x20swPath:\x20','default','[Enhance\x20Overlay]','get','enhance','error','vite:beforeUpdate','\x20overlayController\x20exists:\x20','function','\x20Registration\x20returned:','update','\x20Starting\x20overlay\x20load\x20(async)...','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20URL\x20params\x20parsed:','\x20Current\x20controller:','N/A'];_0x302f=function(){return _0x5bf996;};return _0x302f();}const _0x4057b5=_0x5399;(function(_0x18e0ae,_0x3840dd){const _0x49b043=_0x5399,_0x5e333f=_0x18e0ae();while(!![]){try{const _0x33d3e2=-parseInt(_0x49b043(0x1c5))/0x1+-parseInt(_0x49b043(0x20f))/0x2*(-parseInt(_0x49b043(0x1da))/0x3)+parseInt(_0x49b043(0x1fc))/0x4+parseInt(_0x49b043(0x208))/0x5+parseInt(_0x49b043(0x22b))/0x6+parseInt(_0x49b043(0x1cc))/0x7+-parseInt(_0x49b043(0x1ee))/0x8;if(_0x33d3e2===_0x3840dd)break;else _0x5e333f['push'](_0x5e333f['shift']());}catch(_0x1ff3dc){_0x5e333f['push'](_0x5e333f['shift']());}}}(_0x302f,0x8d836));var DEFAULT_OVERLAY_PATH=!![]?'https://assets.enhancelabs.ai/overlay.js':_0x4057b5(0x1e2),DEFAULT_BACKEND_URL=!![]?'https://api.enhancelabs.ai':_0x4057b5(0x1e9),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x4057b5(0x230)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2a3883){const _0x1779bf=_0x4057b5;if(!_0x2a3883[_0x1779bf(0x237)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x40905c=_0x2a3883[_0x1779bf(0x22a)]??{};return{'publishableKey':_0x2a3883['publishableKey'],'callbackBypass':_0x2a3883[_0x1779bf(0x1de)]??[],'overlay':{'enabled':!![],'position':_0x1779bf(0x1a7),'enableViteHmr':_0x40905c[_0x1779bf(0x1aa)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x1779bf(0x233),'overlayPath':_0x40905c['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x1779bf(0x20c),'security':_0x40905c['security']??_0x1779bf(0x20e),'backendUrl':_0x40905c[_0x1779bf(0x1be)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x367e0e=_0x4057b5;try{const _0x205063=new URLSearchParams(window[_0x367e0e(0x259)][_0x367e0e(0x1b9)]);return _0x205063[_0x367e0e(0x18f)](_0x367e0e(0x240))?.[_0x367e0e(0x23e)]()||'';}catch{return'';}}var LOG_PREFIX=_0x4057b5(0x25f),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x4f42ea){const _0xb5f371=_0x4057b5;console[_0xb5f371(0x230)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0xb5f371(0x230)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x4f42ea[_0xb5f371(0x1e6)]),console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x25c)+_0x4f42ea[_0xb5f371(0x229)]),currentOptions=_0x4f42ea[_0xb5f371(0x22f)],toggleHandler=_0x4f42ea[_0xb5f371(0x256)];if(overlayController){console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x1a1)),updateOverlay();return;}if(overlayLoadPromise)return console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x1bf)),overlayLoadPromise;console[_0xb5f371(0x230)](LOG_PREFIX+_0xb5f371(0x217)),overlayLoadPromise=doLoadOverlay(_0x4f42ea);try{await overlayLoadPromise,console[_0xb5f371(0x230)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x5327f8){console[_0xb5f371(0x191)](LOG_PREFIX+_0xb5f371(0x234),_0x5327f8);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x121a92){const _0x412385=_0x4057b5;console[_0x412385(0x230)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x412385(0x1f4)){console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1ce));return;}if(window[_0x412385(0x254)]){console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1ba)),overlayController=window['__enhanceOverlay'];return;}console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1b7));try{_0x121a92[_0x412385(0x229)]&&(console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1f5)),await setupRemoteHMR(_0x121a92[_0x412385(0x1e6)]));console[_0x412385(0x230)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x121a92[_0x412385(0x1e6)]);const _0x1607c6=Date[_0x412385(0x23f)](),_0x1f5954=await import(_0x121a92[_0x412385(0x1e6)]);console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1dd)+(Date[_0x412385(0x23f)]()-_0x1607c6)+'ms'),console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x1f8),Object[_0x412385(0x21a)](_0x1f5954));if(typeof _0x1f5954?.[_0x412385(0x1fa)]!=='function'){console[_0x412385(0x191)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x412385(0x191)](LOG_PREFIX+_0x412385(0x1a2),Object[_0x412385(0x21a)](_0x1f5954));return;}console['log'](LOG_PREFIX+_0x412385(0x1bb));const _0x1c20bc=_0x1f5954['createOverlay']();console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x24e),_0x1c20bc),overlayController=_0x1c20bc,window[_0x412385(0x254)]=_0x1c20bc,_0x1c20bc[_0x412385(0x256)](_0x121a92[_0x412385(0x256)]),console['log'](LOG_PREFIX+_0x412385(0x1df)),console[_0x412385(0x230)](LOG_PREFIX+_0x412385(0x21b)),updateOverlay();}catch(_0x1bcd12){console[_0x412385(0x191)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x1bcd12);}}function updateOverlay(){const _0x1ac72a=_0x4057b5;console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x1e1)),console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x193)+!!overlayController),console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x224)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x1ac72a(0x223));return;}const _0xb3efe6=composeOverlayState(currentOptions);console[_0x1ac72a(0x230)](LOG_PREFIX+_0x1ac72a(0x1d8),JSON[_0x1ac72a(0x1b1)](_0xb3efe6,null,0x2)),overlayController[_0x1ac72a(0x196)](_0xb3efe6),console['log'](LOG_PREFIX+_0x1ac72a(0x232));}function composeOverlayState(_0x41d627){const _0x51af48=_0x4057b5,_0x3bf3ef=getEnhancementId();return console[_0x51af48(0x230)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x3bf3ef),console[_0x51af48(0x230)](LOG_PREFIX+_0x51af48(0x242)+state[_0x51af48(0x1a0)]),console[_0x51af48(0x230)](LOG_PREFIX+_0x51af48(0x231)+state[_0x51af48(0x1b0)]),{'enhancementId':_0x3bf3ef,'enabled':state['enabled'],'controlled':state[_0x51af48(0x1b0)],'overlayPosition':_0x41d627[_0x51af48(0x1bd)][_0x51af48(0x216)],'securityMode':_0x41d627[_0x51af48(0x1f7)],'backendBaseUrl':_0x41d627[_0x51af48(0x1be)],'appError':state['appError']};}async function setupRemoteHMR(_0x1f95d5){const _0x45dee3=_0x4057b5;console['log'](LOG_PREFIX+_0x45dee3(0x1a8)+_0x1f95d5);if(typeof window==='undefined')return;try{const _0x569bcb=new URL(_0x1f95d5,window['location']['origin']),_0x301c69=_0x569bcb[_0x45dee3(0x235)];console[_0x45dee3(0x230)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x301c69+_0x45dee3(0x20d)+window[_0x45dee3(0x259)]['origin']);if(_0x301c69===window[_0x45dee3(0x259)][_0x45dee3(0x235)]){console[_0x45dee3(0x230)](LOG_PREFIX+_0x45dee3(0x1cd));return;}console[_0x45dee3(0x230)](LOG_PREFIX+_0x45dee3(0x1eb)),await ensureReactRefreshPreamble(_0x301c69),await ensureViteClient(_0x301c69),console[_0x45dee3(0x230)](LOG_PREFIX+_0x45dee3(0x1e0));}catch(_0x541ede){console[_0x45dee3(0x204)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x541ede);}}async function ensureReactRefreshPreamble(_0x535598){const _0x46c33b=_0x4057b5;window['__enhanceReactRefreshInstalledOrigins']??(window[_0x46c33b(0x203)]=new Set());if(window[_0x46c33b(0x203)][_0x46c33b(0x1d4)](_0x535598)){console[_0x46c33b(0x230)](LOG_PREFIX+_0x46c33b(0x1af)+_0x535598);return;}console[_0x46c33b(0x230)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x535598+_0x46c33b(0x215));const _0x3fa1af=await import(_0x535598+_0x46c33b(0x24d)),_0x3fa5c0=_0x3fa1af&&typeof _0x3fa1af===_0x46c33b(0x1a4)&&_0x46c33b(0x25e)in _0x3fa1af?_0x3fa1af[_0x46c33b(0x25e)]:_0x3fa1af;if(!isRefreshRuntime(_0x3fa5c0)){console[_0x46c33b(0x204)](LOG_PREFIX+_0x46c33b(0x20b));return;}_0x3fa5c0[_0x46c33b(0x1cf)](window),window[_0x46c33b(0x1ff)]=()=>{},window['$RefreshSig$']=()=>_0x3ab11c=>_0x3ab11c,window[_0x46c33b(0x1d1)]=!![],window[_0x46c33b(0x203)][_0x46c33b(0x226)](_0x535598),console[_0x46c33b(0x230)](LOG_PREFIX+_0x46c33b(0x1e8)+_0x535598);}async function ensureViteClient(_0x1325e6){const _0x2e501f=_0x4057b5;window['__viteHMRLoaded']??(window[_0x2e501f(0x209)]=new Set());if(window[_0x2e501f(0x209)][_0x2e501f(0x1d4)](_0x1325e6)){console[_0x2e501f(0x230)](LOG_PREFIX+_0x2e501f(0x253)+_0x1325e6);return;}console[_0x2e501f(0x230)](LOG_PREFIX+_0x2e501f(0x1a6)+_0x1325e6+_0x2e501f(0x215)),await import(_0x1325e6+_0x2e501f(0x212)),window[_0x2e501f(0x209)][_0x2e501f(0x226)](_0x1325e6),console['log'](LOG_PREFIX+_0x2e501f(0x211)+_0x1325e6);}function isRefreshRuntime(_0x243010){const _0x1dbae1=_0x4057b5;return typeof _0x243010==='object'&&_0x243010!==null&&_0x1dbae1(0x1cf)in _0x243010&&typeof _0x243010[_0x1dbae1(0x1cf)]===_0x1dbae1(0x194);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x4672ab){const _0x414168=_0x4057b5;console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x250)),console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x25d)+_0x4672ab[_0x414168(0x1b6)]);if(!(_0x414168(0x1d7)in navigator)){console[_0x414168(0x204)](LOG_PREFIX2+_0x414168(0x21c));return;}console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1c3));const _0x231d9d=navigator[_0x414168(0x1d7)][_0x414168(0x1f2)];console['log'](LOG_PREFIX2+_0x414168(0x19a),_0x231d9d?.[_0x414168(0x1f6)]??_0x414168(0x1b5)),console['log'](LOG_PREFIX2+_0x414168(0x24f),_0x231d9d?.['state']??_0x414168(0x19b));const _0x425576=!!_0x231d9d;currentOptions2=_0x4672ab,console['log'](LOG_PREFIX2+_0x414168(0x248));const _0x2c994e=await detectBlockingServiceWorker(_0x4672ab['swPath']);if(_0x2c994e){console[_0x414168(0x191)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x2c994e),console['error'](LOG_PREFIX2+_0x414168(0x1f9));return;}console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x201));try{console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1fd)+_0x4672ab[_0x414168(0x1b6)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x414168(0x1d7)][_0x414168(0x1b4)](_0x4672ab[_0x414168(0x1b6)],{'scope':'/'}),console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x195),{'scope':registration[_0x414168(0x1c9)],'active':registration[_0x414168(0x251)]?.[_0x414168(0x1f6)],'waiting':registration[_0x414168(0x1c4)]?.[_0x414168(0x1f6)],'installing':registration[_0x414168(0x228)]?.['scriptURL']}),console['log'](LOG_PREFIX2+_0x414168(0x1ea));const _0xf9c924=await navigator['serviceWorker']['ready'];console['log'](LOG_PREFIX2+_0x414168(0x1ac),_0xf9c924[_0x414168(0x251)]?.[_0x414168(0x1f6)]);const _0x5bd92d=ownsCurrentController(_0x4672ab['swPath']);state[_0x414168(0x1b0)]=_0x5bd92d,console['log'](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x5bd92d),console['log'](LOG_PREFIX2+_0x414168(0x207),navigator['serviceWorker']['controller']?.[_0x414168(0x1f6)]??_0x414168(0x1b5));if(!_0x425576&&!navigator[_0x414168(0x1d7)][_0x414168(0x1f2)]){console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1ef)),window[_0x414168(0x259)]['reload']();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x414168(0x1a0)]){const _0x25ae65=document[_0x414168(0x1ae)](_0x414168(0x1d6))!==null;console[_0x414168(0x230)](LOG_PREFIX2+_0x414168(0x1d9)+_0x25ae65);if(!_0x25ae65){console['log'](LOG_PREFIX2+_0x414168(0x1a5)),window['location'][_0x414168(0x1c7)]();return;}}console['log'](LOG_PREFIX2+_0x414168(0x21d)),updateOverlay(),console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x4cd436){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x4cd436);}}async function sendConfiguration(){const _0x37b558=_0x4057b5;console[_0x37b558(0x230)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x37b558(0x230)](LOG_PREFIX2+_0x37b558(0x23d)+state[_0x37b558(0x1a0)]+_0x37b558(0x1c1)+!!currentOptions2);if(!state[_0x37b558(0x1a0)]||!currentOptions2){console[_0x37b558(0x230)](LOG_PREFIX2+_0x37b558(0x23b));return;}const _0x4fcc5c=await resolveWorker();if(!_0x4fcc5c){console['warn'](LOG_PREFIX2+_0x37b558(0x221));return;}const _0x43fa58={'publishableKey':currentOptions2[_0x37b558(0x237)],'callbackBypass':currentOptions2[_0x37b558(0x1de)],'securityMode':currentOptions2[_0x37b558(0x1f7)]};console['log'](LOG_PREFIX2+_0x37b558(0x220),JSON[_0x37b558(0x1b1)](_0x43fa58,null,0x2)),_0x4fcc5c['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x43fa58}),console['log'](LOG_PREFIX2+_0x37b558(0x1d2));}async function unregisterServiceWorker(_0x5d740f){const _0x55ae8a=_0x4057b5;console[_0x55ae8a(0x230)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x222));return;}try{const _0x1e4a99=registration??await navigator[_0x55ae8a(0x1d7)][_0x55ae8a(0x23a)]('/');if(!_0x1e4a99){console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x238));return;}console['log'](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x1e4a99['scope'],'active':_0x1e4a99['active']?.[_0x55ae8a(0x1f6)],'waiting':_0x1e4a99['waiting']?.['scriptURL'],'installing':_0x1e4a99[_0x55ae8a(0x228)]?.['scriptURL']});const _0x59fa31=[_0x1e4a99[_0x55ae8a(0x251)]?.[_0x55ae8a(0x1f6)],_0x1e4a99[_0x55ae8a(0x1c4)]?.['scriptURL'],_0x1e4a99['installing']?.[_0x55ae8a(0x1f6)]],_0x1f35ea=_0x59fa31[_0x55ae8a(0x205)](_0x35f7b8=>_0x35f7b8&&ownsServiceWorker(_0x35f7b8,_0x5d740f));if(!_0x1f35ea){console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x1ec));return;}_0x1e4a99[_0x55ae8a(0x251)]&&(console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x23c)),_0x1e4a99[_0x55ae8a(0x251)][_0x55ae8a(0x22d)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x55ae8a(0x230)](LOG_PREFIX2+_0x55ae8a(0x1d3)),await _0x1e4a99[_0x55ae8a(0x1d5)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0xc43bb9){console[_0x55ae8a(0x191)](LOG_PREFIX2+_0x55ae8a(0x21f),_0xc43bb9);}}function ownsServiceWorker(_0x25a87f,_0x4bb3fe){const _0x56dcb1=_0x4057b5,_0x13663c=typeof window!=='undefined'?window['location'][_0x56dcb1(0x235)]:'',_0x34a67e=new URL(_0x4bb3fe,_0x13663c||void 0x0)[_0x56dcb1(0x1ed)],_0x101bb5=_0x25a87f===_0x34a67e||_0x25a87f[_0x56dcb1(0x1dc)](_0x56dcb1(0x1a9));return console['log'](LOG_PREFIX2+_0x56dcb1(0x1f3)+_0x25a87f+_0x56dcb1(0x1a3)+_0x34a67e+_0x56dcb1(0x1cb)+_0x101bb5),_0x101bb5;}function ownsCurrentController(_0x2c4551){const _0x519e6a=_0x4057b5;if(typeof navigator===_0x519e6a(0x1f4))return![];const _0x5d690f=navigator[_0x519e6a(0x1d7)]?.['controller'];if(!_0x5d690f)return console[_0x519e6a(0x230)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x5d690f[_0x519e6a(0x1f6)],_0x2c4551);}async function detectBlockingServiceWorker(_0x1bbc9d){const _0x4cba5e=_0x4057b5;if(!navigator[_0x4cba5e(0x1d7)])return null;try{const _0x308db7=await navigator[_0x4cba5e(0x1d7)][_0x4cba5e(0x23a)]('/');console[_0x4cba5e(0x230)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x308db7?.[_0x4cba5e(0x251)]?.[_0x4cba5e(0x1f6)]??'none');const _0x9dbd19=_0x308db7?.[_0x4cba5e(0x251)]?.['scriptURL'];if(!_0x9dbd19)return null;if(ownsServiceWorker(_0x9dbd19,_0x1bbc9d))return null;return _0x9dbd19;}catch(_0x4aaa06){return console[_0x4cba5e(0x191)](LOG_PREFIX2+_0x4cba5e(0x214),_0x4aaa06),null;}}async function resolveWorker(){const _0xdd0b=_0x4057b5,_0x4d91d9=registration??await navigator['serviceWorker']?.['getRegistration']('/'),_0x296f94=_0x4d91d9?.[_0xdd0b(0x251)]??_0x4d91d9?.['waiting']??_0x4d91d9?.[_0xdd0b(0x228)]??null;return console['log'](LOG_PREFIX2+_0xdd0b(0x19e),_0x296f94?.[_0xdd0b(0x1f6)]??'none',_0xdd0b(0x1fb)+(_0x296f94?.[_0xdd0b(0x25a)]??'N/A')),_0x296f94;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x368536=_0x4057b5;return typeof window!==_0x368536(0x1f4)&&window[_0x368536(0x24a)]===!![];}function setInitialized(_0xc115b2){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0xc115b2);}function getOptions(){const _0x2cfdd3=_0x4057b5;return typeof window!==_0x2cfdd3(0x1f4)?window[_0x2cfdd3(0x1c6)]??null:null;}function setOptions(_0x975f27){const _0x4f3fa6=_0x4057b5;typeof window!=='undefined'&&(window[_0x4f3fa6(0x1c6)]=_0x975f27);}var Enhance={'init'(_0x41e898){const _0x34c4dc=_0x4057b5,_0x3a47b2=Date[_0x34c4dc(0x23f)]();console['log'](LOG_PREFIX3+_0x34c4dc(0x1c8)+_0x3a47b2),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location'][_0x34c4dc(0x1ed)]),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document['readyState']),console['log'](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x34c4dc(0x1b1)](_0x41e898,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x34c4dc(0x239)),window[_0x34c4dc(0x1fe)]??createController();setInitialized(!![]),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x19f));const _0x349763=normalizeOptions(_0x41e898);setOptions(_0x349763),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x34c4dc(0x1b1)](_0x349763,null,0x2));const _0x110c6f=parseUrlParams();console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x199),JSON[_0x34c4dc(0x1b1)](_0x110c6f,null,0x2));if(_0x110c6f['explicitDisable'])return cleanUrlParam(_0x34c4dc(0x190)),console['log'](LOG_PREFIX3+_0x34c4dc(0x246)),createController();if(_0x110c6f[_0x34c4dc(0x218)])return console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x22e)),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x110c6f['enhancementUrl']),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x110c6f[_0x34c4dc(0x241)]),state[_0x34c4dc(0x1a0)]=!![],console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x197)),void loadOverlay({'overlayPath':_0x349763[_0x34c4dc(0x1e6)],'enableViteHmr':_0x349763[_0x34c4dc(0x1bd)]['enableViteHmr'],'options':_0x349763,'onToggle':handleToggle}),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x1bc)),void registerServiceWorker(_0x349763),console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+_0x34c4dc(0x1ab)),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x1b8)),void unregisterServiceWorker(_0x349763['swPath']),console[_0x34c4dc(0x230)](LOG_PREFIX3+_0x34c4dc(0x255)),import.meta.hot&&(console[_0x34c4dc(0x230)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0x34c4dc(0x21e),_0x360775=>{const _0xe40db4=_0x34c4dc;console[_0xe40db4(0x230)](LOG_PREFIX3+_0xe40db4(0x236),_0x360775),state[_0xe40db4(0x202)]={'message':_0x360775['err']['message']},updateOverlay();}),import.meta.hot['on'](_0x34c4dc(0x192),()=>{const _0xdda400=_0x34c4dc;state[_0xdda400(0x202)]&&(console[_0xdda400(0x230)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0xdda400(0x202)]=null,updateOverlay());})),createController();}};function createController(){const _0x467032=_0x4057b5,_0x4054ab={'enable'(){const _0x3467b2=_0x5399,_0x14d00f=getOptions();if(!_0x14d00f)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x14d00f['overlayPath'],'enableViteHmr':_0x14d00f[_0x3467b2(0x1bd)][_0x3467b2(0x229)],'options':_0x14d00f,'onToggle':handleToggle}),void registerServiceWorker(_0x14d00f),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2378f5=_0x5399,_0x1baa92=getOptions();if(!_0x1baa92)return;state[_0x2378f5(0x1a0)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x1baa92[_0x2378f5(0x1b6)]);},'status'(){const _0x17a515=_0x5399;return{'enabled':state[_0x17a515(0x1a0)],'controlled':state[_0x17a515(0x1b0)]};}};return typeof window!==_0x467032(0x1f4)&&(window[_0x467032(0x1fe)]=_0x4054ab),_0x4054ab;}function handleToggle(){const _0x343365=_0x4057b5,_0x267754=createController();state[_0x343365(0x1a0)]?_0x267754[_0x343365(0x19c)]():_0x267754[_0x343365(0x252)]();}function parseUrlParams(){const _0x3a7150=_0x4057b5,_0x3056f0=new URL(window[_0x3a7150(0x259)]['href']),_0x235052=_0x3056f0[_0x3a7150(0x25b)][_0x3a7150(0x18f)](_0x3a7150(0x190))?.[_0x3a7150(0x1db)](),_0x30ab76=_0x3056f0[_0x3a7150(0x25b)][_0x3a7150(0x18f)](_0x3a7150(0x1e4)),_0x46bf96=_0x3056f0['searchParams'][_0x3a7150(0x18f)](_0x3a7150(0x240));return{'hasEnhancement':Boolean(_0x30ab76||_0x46bf96),'explicitDisable':_0x235052==='0'||_0x235052===_0x3a7150(0x249)||_0x235052===_0x3a7150(0x1b3),'enhancementUrl':_0x30ab76,'enhancementId':_0x46bf96};}function cleanUrlParam(_0xed72aa){const _0x2365eb=_0x4057b5,_0x1ce55b=new URL(window[_0x2365eb(0x259)][_0x2365eb(0x1ed)]);_0x1ce55b[_0x2365eb(0x25b)][_0x2365eb(0x1d4)](_0xed72aa)&&(_0x1ce55b['searchParams'][_0x2365eb(0x24b)](_0xed72aa),window['history']['replaceState'](null,document[_0x2365eb(0x258)],_0x1ce55b['toString']()));}var package_default={'name':_0x4057b5(0x19d),'version':_0x4057b5(0x20a),'type':_0x4057b5(0x227),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':'MIT','main':'./dev/index.js','module':_0x4057b5(0x1c2),'types':_0x4057b5(0x213),'exports':{'.':{'types':_0x4057b5(0x213),'import':_0x4057b5(0x1c2)},'./vite':{'types':_0x4057b5(0x1c0),'import':'./dev/vite/index.js'}},'files':[_0x4057b5(0x1d0)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x4057b5(0x1f0),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x4057b5(0x243),'dev:staging:build':_0x4057b5(0x1ad),'build':_0x4057b5(0x198),'build:release':_0x4057b5(0x1e5),'build:release:dev':_0x4057b5(0x225),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x4057b5(0x1e7),'zod':_0x4057b5(0x219)},'devDependencies':{'@types/node':_0x4057b5(0x206),'javascript-obfuscator':_0x4057b5(0x247),'tsup':_0x4057b5(0x1b2),'vite':_0x4057b5(0x244)},'publishConfig':{'access':_0x4057b5(0x210)}},DEFAULT_SERVICE_WORKER_PATH=_0x4057b5(0x233),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default['version']===_0x4057b5(0x1ca)?package_default[_0x4057b5(0x24c)]:_0x4057b5(0x200);function normalizeAssetPath(_0x511750){const _0x496b3a=_0x4057b5;if(!_0x511750)return _0x511750;if(_0x511750[_0x496b3a(0x1f1)]('http://')||_0x511750[_0x496b3a(0x1f1)]('https://'))return _0x511750;const _0x4cadb1=_0x511750[_0x496b3a(0x22c)](/^\.\//,'');return _0x4cadb1[_0x496b3a(0x1f1)]('/')?_0x4cadb1:'/'+_0x4cadb1;}function _0x5399(_0x5db9ca,_0x27c789){_0x5db9ca=_0x5db9ca-0x18f;const _0x302fca=_0x302f();let _0x5399b4=_0x302fca[_0x5db9ca];return _0x5399b4;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x597eee){const _0x18cc13=_0x4057b5;return Enhance[_0x18cc13(0x257)](_0x597eee);},'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 _0x41a86f=_0x4057b5;return Enhance2[_0x41a86f(0x245)]();}function runtimeURL(){const _0x376ba3=_0x4057b5;return Enhance2[_0x376ba3(0x1e3)]();}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 _0x48fec9=_0xf62a;(function(_0x3d6c72,_0x4be075){const _0x18f3d4=_0xf62a,_0x31b068=_0x3d6c72();while(!![]){try{const _0xc9cbda=parseInt(_0x18f3d4(0x9f))/0x1*(-parseInt(_0x18f3d4(0xe0))/0x2)+parseInt(_0x18f3d4(0xf2))/0x3+-parseInt(_0x18f3d4(0x8f))/0x4+-parseInt(_0x18f3d4(0x119))/0x5+-parseInt(_0x18f3d4(0x83))/0x6*(parseInt(_0x18f3d4(0x11f))/0x7)+parseInt(_0x18f3d4(0x122))/0x8+-parseInt(_0x18f3d4(0xd1))/0x9*(-parseInt(_0x18f3d4(0x128))/0xa);if(_0xc9cbda===_0x4be075)break;else _0x31b068['push'](_0x31b068['shift']());}catch(_0x20f2d8){_0x31b068['push'](_0x31b068['shift']());}}}(_0x10c0,0xc3072));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x48fec9(0xf6)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x48fec9(0x109),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x48fec9(0xf6)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x48fec9(0xff),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x48fec9(0x10c)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x56ab3f){const _0x3d28bf=_0x48fec9;if(!_0x56ab3f['publishableKey'])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x38175f=_0x56ab3f['__development']??{};return{'publishableKey':_0x56ab3f[_0x3d28bf(0xd4)],'callbackBypass':_0x56ab3f[_0x3d28bf(0xd8)]??[],'overlay':{'enabled':!![],'position':_0x3d28bf(0x9d),'enableViteHmr':_0x38175f['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x3d28bf(0x158),'swPath':_0x3d28bf(0x107),'overlayPath':_0x38175f[_0x3d28bf(0xcb)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x3d28bf(0x160),'security':_0x38175f[_0x3d28bf(0xe1)]??_0x3d28bf(0xce),'backendUrl':_0x38175f[_0x3d28bf(0xba)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x487e03=_0x48fec9;try{const _0x259cbc=new URLSearchParams(window[_0x487e03(0xd7)][_0x487e03(0xa5)]);return _0x259cbc[_0x487e03(0x14b)](_0x487e03(0xd2))?.[_0x487e03(0xae)]()||'';}catch{return'';}}function _0xf62a(_0x353e8a,_0x5eadad){_0x353e8a=_0x353e8a-0x7b;const _0x10c066=_0x10c0();let _0xf62a31=_0x10c066[_0x353e8a];return _0xf62a31;}var LOG_PREFIX=_0x48fec9(0x134),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x36d06e){const _0x4d5fbd=_0x48fec9;console['log'](LOG_PREFIX+_0x4d5fbd(0x90)),console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0xc3)+_0x36d06e[_0x4d5fbd(0xcb)]),console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0x11e)+_0x36d06e[_0x4d5fbd(0x124)]),currentOptions=_0x36d06e[_0x4d5fbd(0x14d)],toggleHandler=_0x36d06e[_0x4d5fbd(0xf0)];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0x120)),overlayLoadPromise;console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0xd6)),overlayLoadPromise=doLoadOverlay(_0x36d06e);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x4d5fbd(0x101));}catch(_0x4dd7a9){console[_0x4d5fbd(0xb0)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x4dd7a9);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x6a7a7a){const _0x181127=_0x48fec9;console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x133));if(typeof window===_0x181127(0xf6)){console['log'](LOG_PREFIX+_0x181127(0x135));return;}if(window[_0x181127(0xc2)]){console[_0x181127(0x10c)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window['__enhanceOverlay'];return;}console['log'](LOG_PREFIX+_0x181127(0x159));try{_0x6a7a7a[_0x181127(0x124)]&&(console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0xe4)),await setupRemoteHMR(_0x6a7a7a['overlayPath']));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x6a7a7a[_0x181127(0xcb)]);const _0x2ca66b=Date[_0x181127(0x102)](),_0x19e485=await import(_0x6a7a7a[_0x181127(0xcb)]);console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0xb9)+(Date[_0x181127(0x102)]()-_0x2ca66b)+'ms'),console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x8b),Object[_0x181127(0xa6)](_0x19e485));if(typeof _0x19e485?.[_0x181127(0x106)]!==_0x181127(0xbc)){console[_0x181127(0xb0)](LOG_PREFIX+_0x181127(0x157)),console[_0x181127(0xb0)](LOG_PREFIX+_0x181127(0x144),Object['keys'](_0x19e485));return;}console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x11b));const _0x2080d4=_0x19e485[_0x181127(0x106)]();console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0xea),_0x2080d4),overlayController=_0x2080d4,window[_0x181127(0xc2)]=_0x2080d4,_0x2080d4['onToggle'](_0x6a7a7a[_0x181127(0xf0)]),console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x11c)),console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x13d)),updateOverlay();}catch(_0xc27856){console['error'](LOG_PREFIX+_0x181127(0xef),_0xc27856);}}function updateOverlay(){const _0x305078=_0x48fec9;console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x86)),console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x88)+!!overlayController),console['log'](LOG_PREFIX+_0x305078(0x12b)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x12f));return;}const _0x1ebfbc=composeOverlayState(currentOptions);console[_0x305078(0x10c)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON['stringify'](_0x1ebfbc,null,0x2)),overlayController['update'](_0x1ebfbc),console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x148));}function composeOverlayState(_0x7406c5){const _0x349171=_0x48fec9,_0x106e61=getEnhancementId();return console[_0x349171(0x10c)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x106e61),console[_0x349171(0x10c)](LOG_PREFIX+_0x349171(0xb5)+state[_0x349171(0x14c)]),console[_0x349171(0x10c)](LOG_PREFIX+_0x349171(0xc5)+state['controlled']),{'enhancementId':_0x106e61,'enabled':state[_0x349171(0x14c)],'controlled':state[_0x349171(0x162)],'overlayPosition':_0x7406c5['overlay'][_0x349171(0xb8)],'securityMode':_0x7406c5[_0x349171(0xe1)],'backendBaseUrl':_0x7406c5[_0x349171(0xba)],'appError':state[_0x349171(0xdc)]};}async function setupRemoteHMR(_0xda3e8f){const _0x47a228=_0x48fec9;console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0xa0)+_0xda3e8f);if(typeof window===_0x47a228(0xf6))return;try{const _0x3cfbf8=new URL(_0xda3e8f,window[_0x47a228(0xd7)]['origin']),_0x3ecda1=_0x3cfbf8[_0x47a228(0x92)];console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0x94)+_0x3ecda1+_0x47a228(0xcf)+window[_0x47a228(0xd7)][_0x47a228(0x92)]);if(_0x3ecda1===window[_0x47a228(0xd7)][_0x47a228(0x92)]){console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0xb4));return;}console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0x130)),await ensureReactRefreshPreamble(_0x3ecda1),await ensureViteClient(_0x3ecda1),console['log'](LOG_PREFIX+_0x47a228(0x125));}catch(_0x57b9d5){console[_0x47a228(0x8e)](LOG_PREFIX+_0x47a228(0x126),_0x57b9d5);}}async function ensureReactRefreshPreamble(_0x5a2ef4){const _0x2e40b1=_0x48fec9;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x5a2ef4)){console[_0x2e40b1(0x10c)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x5a2ef4);return;}console[_0x2e40b1(0x10c)](LOG_PREFIX+_0x2e40b1(0x117)+_0x5a2ef4+'...');const _0x28c4d6=await import(_0x5a2ef4+_0x2e40b1(0xd5)),_0x242fcb=_0x28c4d6&&typeof _0x28c4d6===_0x2e40b1(0xaa)&&_0x2e40b1(0x93)in _0x28c4d6?_0x28c4d6[_0x2e40b1(0x93)]:_0x28c4d6;if(!isRefreshRuntime(_0x242fcb)){console['warn'](LOG_PREFIX+_0x2e40b1(0x97));return;}_0x242fcb[_0x2e40b1(0xf7)](window),window[_0x2e40b1(0x113)]=()=>{},window['$RefreshSig$']=()=>_0x28fb68=>_0x28fb68,window[_0x2e40b1(0x104)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x2e40b1(0x136)](_0x5a2ef4),console[_0x2e40b1(0x10c)](LOG_PREFIX+_0x2e40b1(0x10e)+_0x5a2ef4);}async function ensureViteClient(_0x2c4dc4){const _0x6f95cb=_0x48fec9;window[_0x6f95cb(0xbe)]??=new Set();if(window[_0x6f95cb(0xbe)]['has'](_0x2c4dc4)){console[_0x6f95cb(0x10c)](LOG_PREFIX+_0x6f95cb(0x118)+_0x2c4dc4);return;}console[_0x6f95cb(0x10c)](LOG_PREFIX+_0x6f95cb(0x95)+_0x2c4dc4+_0x6f95cb(0xe5)),await import(_0x2c4dc4+_0x6f95cb(0x121)),window[_0x6f95cb(0xbe)][_0x6f95cb(0x136)](_0x2c4dc4),console[_0x6f95cb(0x10c)](LOG_PREFIX+_0x6f95cb(0xbd)+_0x2c4dc4);}function isRefreshRuntime(_0x53609e){const _0x433724=_0x48fec9;return typeof _0x53609e==='object'&&_0x53609e!==null&&_0x433724(0xf7)in _0x53609e&&typeof _0x53609e[_0x433724(0xf7)]===_0x433724(0xbc);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x48fec9(0x167),LOG_PREFIX2=_0x48fec9(0x114),registration=null,currentOptions2=null;async function registerServiceWorker(_0x2cf96a){const _0x5844a7=_0x48fec9;console[_0x5844a7(0x10c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called');if(!(_0x5844a7(0x80)in navigator)){console['warn'](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported');return;}const _0x1bf166=!!navigator[_0x5844a7(0x80)][_0x5844a7(0x7b)];currentOptions2=_0x2cf96a;const _0x26faa8=await detectBlockingServiceWorker(_0x2cf96a[_0x5844a7(0xe7)]);if(_0x26faa8){console[_0x5844a7(0xb0)](LOG_PREFIX2+_0x5844a7(0xde)+_0x26faa8);return;}try{console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0x9e)+_0x2cf96a[_0x5844a7(0xe7)]+_0x5844a7(0xe5)),registration=await navigator[_0x5844a7(0x80)][_0x5844a7(0xe3)](_0x2cf96a[_0x5844a7(0xe7)],{'scope':'/'}),console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0xec)),await navigator['serviceWorker'][_0x5844a7(0x12c)],console['log'](LOG_PREFIX2+_0x5844a7(0xa2)),state[_0x5844a7(0x162)]=ownsCurrentController(_0x2cf96a['swPath']);if(!_0x1bf166&&!navigator['serviceWorker']['controller']){console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0x116)),window[_0x5844a7(0xd7)][_0x5844a7(0x89)]();return;}console['log'](LOG_PREFIX2+_0x5844a7(0xab)),await sendConfiguration();if(state['enabled']){const _0x306d85=document['querySelector'](_0x5844a7(0x7d))!==null;if(!_0x306d85){console['log'](LOG_PREFIX2+_0x5844a7(0x15e)),window[_0x5844a7(0xd7)][_0x5844a7(0x89)]();return;}}updateOverlay(),console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0xda));}catch(_0x766656){console[_0x5844a7(0xb0)](LOG_PREFIX2+_0x5844a7(0x10b),_0x766656);}}async function sendConfiguration(){const _0xb2a0=_0x48fec9;if(!state[_0xb2a0(0x14c)]||!currentOptions2)return;const _0x4b01b6=await resolveWorker();if(!_0x4b01b6){console[_0xb2a0(0x8e)](LOG_PREFIX2+_0xb2a0(0xb7));return;}const _0x3066f9=window[_0xb2a0(0x13e)]??null,_0x2658a1={'publishableKey':currentOptions2[_0xb2a0(0xd4)],'callbackBypass':currentOptions2[_0xb2a0(0xd8)],'securityMode':currentOptions2[_0xb2a0(0xe1)],'enhancementUrl':_0x3066f9??void 0x0};console[_0xb2a0(0x10c)](LOG_PREFIX2+_0xb2a0(0x161),JSON[_0xb2a0(0xe2)](_0x2658a1,null,0x2)),_0x4b01b6['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x2658a1});}async function unregisterServiceWorker(_0x2d2104){const _0xae26ff=_0x48fec9;console[_0xae26ff(0x10c)](LOG_PREFIX2+_0xae26ff(0x138));if(!(_0xae26ff(0x80)in navigator))return;try{const _0x29ceee=registration??await navigator['serviceWorker'][_0xae26ff(0xbf)]('/');if(!_0x29ceee)return;const _0x485100=[_0x29ceee[_0xae26ff(0xd3)]?.[_0xae26ff(0xf4)],_0x29ceee[_0xae26ff(0xc0)]?.[_0xae26ff(0xf4)],_0x29ceee[_0xae26ff(0xfa)]?.['scriptURL']],_0xd8a29a=_0x485100[_0xae26ff(0xcd)](_0x29a1c5=>_0x29a1c5&&ownsServiceWorker(_0x29a1c5,_0x2d2104));if(!_0xd8a29a)return;_0x29ceee[_0xae26ff(0xd3)]&&_0x29ceee['active'][_0xae26ff(0x127)]({'type':WORKER_MESSAGE_DISABLE}),await _0x29ceee[_0xae26ff(0x123)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0xae26ff(0xc1));}catch(_0x2fc6d2){console[_0xae26ff(0xb0)](LOG_PREFIX2+_0xae26ff(0x13f),_0x2fc6d2);}}function ownsServiceWorker(_0x320f98,_0x1e7156){const _0x4a016e=_0x48fec9,_0x484a9f=typeof window!==_0x4a016e(0xf6)?window[_0x4a016e(0xd7)]['origin']:'',_0x313a80=new URL(_0x1e7156,_0x484a9f||void 0x0)[_0x4a016e(0x112)];return _0x320f98===_0x313a80||_0x320f98['includes']('sw-enhance');}function ownsCurrentController(_0x28d57e){const _0x7517a9=_0x48fec9,_0x3f3345=navigator['serviceWorker']?.[_0x7517a9(0x7b)];if(!_0x3f3345)return![];return ownsServiceWorker(_0x3f3345[_0x7517a9(0xf4)],_0x28d57e);}async function detectBlockingServiceWorker(_0x3f2e97){const _0x3c6d13=_0x48fec9;if(!navigator[_0x3c6d13(0x80)])return null;try{const _0x2d3a21=await navigator[_0x3c6d13(0x80)]['getRegistration']('/'),_0x467709=_0x2d3a21?.[_0x3c6d13(0xd3)]?.['scriptURL'];if(!_0x467709)return null;if(ownsServiceWorker(_0x467709,_0x3f2e97))return null;return _0x467709;}catch{return null;}}async function resolveWorker(){const _0x1110ec=_0x48fec9,_0x4fd506=registration??await navigator['serviceWorker']?.['getRegistration']('/');return _0x4fd506?.[_0x1110ec(0xd3)]??_0x4fd506?.[_0x1110ec(0xc0)]??_0x4fd506?.['installing']??null;}var LOG_PREFIX3='[Enhance\x20Runtime]',STORAGE_KEY_ENHANCEMENT_ID=_0x48fec9(0xa8),STORAGE_KEY_ENHANCEMENT_URL=_0x48fec9(0x16a);function isInitialized(){const _0x3f2fb1=_0x48fec9;return typeof window!==_0x3f2fb1(0xf6)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x118577){const _0x460b67=_0x48fec9;typeof window!==_0x460b67(0xf6)&&(window[_0x460b67(0x137)]=_0x118577);}function getOptions(){const _0x3262b3=_0x48fec9;return typeof window!==_0x3262b3(0xf6)?window[_0x3262b3(0x14a)]??null:null;}function setOptions(_0x2bdef6){const _0xe826e2=_0x48fec9;typeof window!==_0xe826e2(0xf6)&&(window[_0xe826e2(0x14a)]=_0x2bdef6);}var Enhance={'init'(_0x52210d){const _0xe829cc=_0x48fec9,_0xc9bcab=Date[_0xe829cc(0x102)]();console[_0xe829cc(0x10c)](LOG_PREFIX3+_0xe829cc(0x169)+_0xc9bcab),console['log'](LOG_PREFIX3+_0xe829cc(0x99)+window['location'][_0xe829cc(0x112)]),console[_0xe829cc(0x10c)](LOG_PREFIX3+_0xe829cc(0x91)+document['readyState']);if(isInitialized())return console[_0xe829cc(0x8e)](LOG_PREFIX3+_0xe829cc(0xf5)),window[_0xe829cc(0x87)]??createController();setInitialized(!![]);const _0x5d946e=normalizeOptions(_0x52210d);setOptions(_0x5d946e);const _0x8591e3=parseEnhancementParams();console['log'](LOG_PREFIX3+_0xe829cc(0xb1),JSON['stringify'](_0x8591e3,null,0x2));if(_0x8591e3['explicitDisable'])return cleanUrlParam(_0xe829cc(0xfb)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+_0xe829cc(0x110)),createController();if(!_0x8591e3[_0xe829cc(0xee)])return console[_0xe829cc(0x10c)](LOG_PREFIX3+_0xe829cc(0x103)),void unregisterServiceWorker(_0x5d946e[_0xe829cc(0xe7)]),setupViteErrorListeners(),createController();return console[_0xe829cc(0x10c)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20-\x20ID:\x20'+_0x8591e3['enhancementId']),state['enabled']=!![],void initializeEnhancement(_0x5d946e,_0x8591e3[_0xe829cc(0xee)],_0x8591e3[_0xe829cc(0xc7)]),createController();}};async function initializeEnhancement(_0x3b1a29,_0x134346,_0x49a3a0){const _0x47def0=_0x48fec9;let _0x553305=_0x49a3a0;if(!_0x553305){console[_0x47def0(0x10c)](LOG_PREFIX3+'\x20Resolving\x20enhancement\x20ID:\x20'+_0x134346),_0x553305=await resolveEnhancementUrl(_0x3b1a29,_0x134346);if(!_0x553305){console[_0x47def0(0xb0)](LOG_PREFIX3+_0x47def0(0xe8)),state[_0x47def0(0x14c)]=![];return;}}else console[_0x47def0(0x10c)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x553305);persistEnhancement(_0x134346,_0x553305),window[_0x47def0(0x13e)]=_0x553305,console[_0x47def0(0x10c)](LOG_PREFIX3+_0x47def0(0xed)),await registerServiceWorker(_0x3b1a29),console[_0x47def0(0x10c)](LOG_PREFIX3+_0x47def0(0x15a)),await loadOverlay({'overlayPath':_0x3b1a29['overlayPath'],'enableViteHmr':_0x3b1a29['overlay'][_0x47def0(0x124)],'options':_0x3b1a29,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x395fb9,_0x2bd551){const _0x222b6d=_0x48fec9,_0x4cd64b=_0x395fb9['backendUrl']+_0x222b6d(0x153)+_0x2bd551+_0x222b6d(0x13b);console[_0x222b6d(0x10c)](LOG_PREFIX3+_0x222b6d(0x15b)+_0x4cd64b);try{const _0x59cea7=await fetch(_0x4cd64b,{'headers':{'X-Enhance-Publishable-Key':_0x395fb9[_0x222b6d(0xd4)]}});if(!_0x59cea7['ok']){const _0x239d16=await _0x59cea7[_0x222b6d(0x13c)]();return console[_0x222b6d(0xb0)](LOG_PREFIX3+_0x222b6d(0x150)+_0x59cea7['status']+'\x20'+_0x239d16),null;}const _0x176ee3=await _0x59cea7[_0x222b6d(0x9c)](),_0x538b59=''+_0x395fb9[_0x222b6d(0xba)]+_0x176ee3[_0x222b6d(0x115)];return console[_0x222b6d(0x10c)](LOG_PREFIX3+_0x222b6d(0x11d)+_0x538b59),_0x538b59;}catch(_0x1dee80){return console[_0x222b6d(0xb0)](LOG_PREFIX3+_0x222b6d(0xc9),_0x1dee80),null;}}function parseEnhancementParams(){const _0x397dc5=_0x48fec9,_0x5c46cd=new URL(window[_0x397dc5(0xd7)]['href']),_0x16beab=_0x5c46cd[_0x397dc5(0x15f)][_0x397dc5(0x14b)]('enhance')?.[_0x397dc5(0xa3)](),_0x5525ef=_0x16beab==='0'||_0x16beab==='false'||_0x16beab===_0x397dc5(0xc8);let _0x3e978b=_0x5c46cd[_0x397dc5(0x15f)][_0x397dc5(0x14b)](_0x397dc5(0xd2)),_0x5e4e02=null;if(_0x3e978b)try{const _0x54b1a6=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_ID),_0x1f161a=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_URL);_0x54b1a6===_0x3e978b&&_0x1f161a&&(_0x5e4e02=_0x1f161a,console[_0x397dc5(0x10c)](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x540fb7=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_ID),_0x5f4a5b=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_URL);_0x540fb7&&_0x5f4a5b&&(_0x3e978b=_0x540fb7,_0x5e4e02=_0x5f4a5b,console[_0x397dc5(0x10c)](LOG_PREFIX3+'\x20Restored\x20enhancement\x20from\x20sessionStorage'),_0x5c46cd[_0x397dc5(0x15f)][_0x397dc5(0x12a)](_0x397dc5(0xd2),_0x3e978b),window[_0x397dc5(0x143)][_0x397dc5(0x139)](null,document['title'],_0x5c46cd[_0x397dc5(0xfe)]()));}catch{}return{'enhancementId':_0x3e978b,'cachedUrl':_0x5e4e02,'explicitDisable':_0x5525ef};}function persistEnhancement(_0x56bdc6,_0x211178){const _0x41737c=_0x48fec9;try{sessionStorage[_0x41737c(0xc6)](STORAGE_KEY_ENHANCEMENT_ID,_0x56bdc6),sessionStorage[_0x41737c(0xc6)](STORAGE_KEY_ENHANCEMENT_URL,_0x211178),console[_0x41737c(0x10c)](LOG_PREFIX3+'\x20Persisted\x20enhancement\x20to\x20sessionStorage');}catch{}}function clearPersistedEnhancement(){const _0x2ec11b=_0x48fec9;try{sessionStorage[_0x2ec11b(0x11a)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x2ec11b(0x11a)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x2ec11b(0x10c)](LOG_PREFIX3+_0x2ec11b(0xdb));}catch{}}function createController(){const _0x8b4b3e=_0x48fec9,_0x2e725b={'enable'(){const _0x49c3d4=_0xf62a,_0x34dc78=getOptions();if(!_0x34dc78)return;state[_0x49c3d4(0x14c)]=!![],void registerServiceWorker(_0x34dc78),void sendConfiguration(),updateOverlay();},'disable'(){const _0xbaca6e=_0xf62a,_0x18da1e=getOptions();if(!_0x18da1e)return;state[_0xbaca6e(0x14c)]=![],state['controlled']=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x18da1e[_0xbaca6e(0xe7)]);},'status'(){const _0x1e1722=_0xf62a;return{'enabled':state['enabled'],'controlled':state[_0x1e1722(0x162)]};}};return typeof window!==_0x8b4b3e(0xf6)&&(window['__enhanceController']=_0x2e725b),_0x2e725b;}function handleToggle(){const _0x2fd619=_0x48fec9,_0x39094b=createController();state[_0x2fd619(0x14c)]?_0x39094b[_0x2fd619(0x96)]():_0x39094b['enable']();}function _0x10c0(){const _0x5c20bb=['override','\x20BLOCKING\x20SW\x20detected:\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','11282WNTiET','security','stringify','register','\x20Setting\x20up\x20remote\x20HMR...','...','push','swPath','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','./dev/vite/index.d.ts','\x20Controller\x20created:','public','\x20Waiting\x20for\x20SW\x20ready...','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','enhancementId','\x20Failed\x20to\x20import/create\x20overlay:','onToggle','--filename\x20<name>','2208189MpkWwh','destinationPath','scriptURL','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','undefined','injectIntoGlobalHook','requiredOption','all','installing','enhance','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20(already\x20current)\x20[','toString','https://api.enhancelabs.ai','sw-enhance.js','\x20loadOverlay()\x20complete','now','\x20Normal\x20mode\x20-\x20no\x20enhancement','__vite_plugin_react_preamble_installed__','relativeDestination','createOverlay','/sw-enhance.js','https://','https://assets.enhancelabs.ai/overlay.js','action','\x20Failed\x20to\x20register\x20service\x20worker:','log','title','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','option','\x20Explicit\x20disable\x20-\x20exiting','sourcePath','href','$RefreshReg$','[Enhance\x20SW-Client]','operatingPath','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Vite\x20client\x20already\x20loaded\x20for\x20','4466335gKqyVB','removeItem','\x20Calling\x20createOverlay()...','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Resolved\x20to:\x20','\x20enableViteHmr:\x20','21CBAnMx','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','/@vite/client','10250936dRFBmC','unregister','enableViteHmr','\x20HMR\x20setup\x20complete','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','postMessage','4377700lrmhRT','update','set','\x20currentOptions\x20exists:\x20','ready','Enhance\x20sandbox\x20utility\x20CLI','cwd','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','write','\x20→\x20','\x20doLoadOverlay()\x20starting...','[Enhance\x20Overlay]','\x20No\x20window\x20object\x20-\x20skipping','add','__enhanceInitialized','\x20unregisterServiceWorker()\x20called','replaceState','runtimeURL','/resolve','text','\x20Calling\x20updateOverlay()...','__enhanceResolvedUrl','\x20Failed\x20to\x20unregister\x20service\x20worker:','sha256','getItem','0.0.0','history','\x20Available\x20exports:','./dev/vite/index.js','Copied\x20','mkdir','\x20Overlay\x20update\x20complete','skipped','__enhanceOptions','get','enabled','options','filename','./dev/index.d.ts','\x20Resolution\x20failed:\x20','http://','module','/public/enhancements/','assets/enhance-runtime.js','dev/','name','\x20Module\x20missing\x20createOverlay\x20export!','info','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Loading\x20overlay...','\x20Calling:\x20','replace','description','\x20Page\x20not\x20enhanced\x20-\x20reloading','searchParams','/assets/enhance-runtime.js','\x20Sending\x20config\x20to\x20SW:','controlled','code','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','Print\x20the\x20current\x20asset\x20manifest','delete','enhance:disable','err','\x20init()\x20called\x20at\x20','enhance.enhancementUrl','controller','readFile','[data-enhance-runtime-bootstrap]','bun\x20version\x20patch\x20--no-git-tag-version','./dev/cli.js','serviceWorker','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','@enhance-eng/sandbox','3142446eAUSAz','--public-dir\x20<path>','../dist/index.js','\x20updateOverlay()\x20called','__enhanceController','\x20overlayController\x20exists:\x20','reload','^8.5.1','\x20Module\x20exports:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','Skipped\x20','warn','6046616fYENxK','\x20loadOverlay()\x20called','\x20Document\x20readyState:\x20','origin','default','\x20Overlay\x20origin:\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','disable','\x20Invalid\x20React\x20Refresh\x20runtime','swFilename','\x20Current\x20URL:\x20','prepare-sw','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','json','bottom-right','\x20Registering\x20SW\x20at\x20','132jiorfU','\x20setupRemoteHMR()\x20for\x20','0.3.21','\x20SW\x20ready','toLowerCase','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','search','keys','manifest','enhance.enhancementId','enhance-sandbox','object','\x20Sending\x20configuration\x20to\x20SW...','stdout','publicDir','trim','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','error','\x20Enhancement\x20params:','./dev/index.js','digest','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20composeOverlayState\x20-\x20state.enabled:\x20','MIT','\x20No\x20service\x20worker\x20active\x20to\x20configure','position','\x20Module\x20imported\x20in\x20','backendUrl','^7.2.4','function','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','__viteHMRLoaded','getRegistration','waiting','\x20SW\x20unregistered','__enhanceOverlay','\x20overlayPath:\x20','version','\x20composeOverlayState\x20-\x20state.controlled:\x20','setItem','cachedUrl','off','\x20Resolution\x20error:','message','overlayPath','serviceWorkerURL','some','permissive',',\x20page\x20origin:\x20','ENOENT','72CTcfYv','enhancement','active','publishableKey','/@react-refresh','\x20Starting\x20fresh\x20overlay\x20load...','location','callbackBypass','startsWith','\x20registerServiceWorker()\x20complete','\x20Cleared\x20persisted\x20enhancement','appError'];_0x10c0=function(){return _0x5c20bb;};return _0x10c0();}function cleanUrlParam(_0x34b9e2){const _0x59eabc=_0x48fec9,_0xa2a1b2=new URL(window['location'][_0x59eabc(0x112)]);_0xa2a1b2[_0x59eabc(0x15f)]['has'](_0x34b9e2)&&(_0xa2a1b2[_0x59eabc(0x15f)][_0x59eabc(0x166)](_0x34b9e2),window['history'][_0x59eabc(0x139)](null,document[_0x59eabc(0x10d)],_0xa2a1b2['toString']()));}function setupViteErrorListeners(){import.meta.hot&&(import.meta.hot['on']('vite:error',_0x405700=>{const _0x269b13=_0xf62a;state[_0x269b13(0xdc)]={'message':_0x405700[_0x269b13(0x168)][_0x269b13(0xca)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x4e05bf=_0xf62a;state[_0x4e05bf(0xdc)]&&(state['appError']=null,updateOverlay());}));}var package_default={'name':_0x48fec9(0x82),'version':_0x48fec9(0xa1),'type':_0x48fec9(0x152),'description':_0x48fec9(0xa4),'license':_0x48fec9(0xb6),'main':_0x48fec9(0xb2),'module':_0x48fec9(0xb2),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x48fec9(0x14f),'import':_0x48fec9(0xb2)},'./vite':{'types':_0x48fec9(0xe9),'import':_0x48fec9(0x145)}},'files':[_0x48fec9(0x155)],'bin':{'enhance-sandbox':_0x48fec9(0x7f)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x48fec9(0x164),'dev:build':_0x48fec9(0xaf),'dev:staging':_0x48fec9(0x8c),'dev:staging:build':_0x48fec9(0xfc),'build':_0x48fec9(0xdf),'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':'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':_0x48fec9(0x7e)},'dependencies':{'commander':'^11.1.0','zod':'^3.22.4'},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':'^4.1.1','tsup':_0x48fec9(0x8a),'vite':_0x48fec9(0xbb)},'publishConfig':{'access':_0x48fec9(0xeb)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x48fec9(0x100),DIST_RUNTIME_PATH=_0x48fec9(0x154),PACKAGE_VERSION=typeof package_default[_0x48fec9(0xc4)]==='string'?package_default[_0x48fec9(0xc4)]:_0x48fec9(0x142);function normalizeAssetPath(_0x131ae7){const _0x11d800=_0x48fec9;if(!_0x131ae7)return _0x131ae7;if(_0x131ae7[_0x11d800(0xd9)](_0x11d800(0x151))||_0x131ae7['startsWith'](_0x11d800(0x108)))return _0x131ae7;const _0x35912a=_0x131ae7[_0x11d800(0x15c)](/^\.\//,'');return _0x35912a['startsWith']('/')?_0x35912a:'/'+_0x35912a;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x23ac8e){return Enhance['init'](_0x23ac8e);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x5ae88c=_0x48fec9;return Enhance2[_0x5ae88c(0xcc)]();}function runtimeURL(){const _0x41374f=_0x48fec9;return Enhance2[_0x41374f(0x13a)]();}import{promises as _0x1e0e1f}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x48fec9(0x85),import.meta.url)));async function syncAssets(_0x5dab46){const _0xc51b6c=_0x48fec9,_0x1f9191=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x5dab46[_0xc51b6c(0x98)]?'./'+_0x5dab46[_0xc51b6c(0x98)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x5712af=[];for(const _0x2d99c0 of _0x1f9191){const _0x2134f0=cleanRelativePath(_0x2d99c0[_0xc51b6c(0xdd)]??_0x2d99c0['manifestPath']),_0x37052a=join(distDir,cleanRelativePath(_0x2d99c0[_0xc51b6c(0x111)])),_0x481130=join(_0x5dab46['publicDir'],_0x2134f0),[_0x5649ff,_0x21afbf]=await Promise[_0xc51b6c(0xf9)]([readDigest(_0x37052a),readDigest(_0x481130)]);if(_0x5649ff&&_0x21afbf&&_0x5649ff===_0x21afbf){_0x5712af['push']({'sourcePath':_0x37052a,'destinationPath':_0x481130,'relativeDestination':_0x2134f0,'status':_0xc51b6c(0x149)});continue;}await _0x1e0e1f[_0xc51b6c(0x147)](dirname(_0x481130),{'recursive':!![]}),await _0x1e0e1f['copyFile'](_0x37052a,_0x481130),_0x5712af[_0xc51b6c(0xe6)]({'sourcePath':_0x37052a,'destinationPath':_0x481130,'relativeDestination':_0x2134f0,'status':'copied'});}return _0x5712af;}function cleanRelativePath(_0x3b1051){const _0x16ea82=_0x48fec9;return _0x3b1051[_0x16ea82(0x15c)](/^[./]+/,'');}async function readDigest(_0x342ba2){const _0x4cf3fe=_0x48fec9;try{const _0x410ea5=await _0x1e0e1f[_0x4cf3fe(0x7c)](_0x342ba2);return createHash(_0x4cf3fe(0x140))[_0x4cf3fe(0x129)](_0x410ea5)[_0x4cf3fe(0xb3)]('base64');}catch(_0x4a551d){if(_0x4a551d[_0x4cf3fe(0x163)]===_0x4cf3fe(0xd0))return null;throw _0x4a551d;}}var program=new Command();program[_0x48fec9(0x156)](_0x48fec9(0xa9))[_0x48fec9(0x15d)](_0x48fec9(0x12d))[_0x48fec9(0xc4)]('0.0.0'),program['command'](_0x48fec9(0xa7))[_0x48fec9(0x15d)](_0x48fec9(0x165))['action'](()=>{const _0x335969=_0x48fec9,_0x14c4a9=getAssetManifest();process[_0x335969(0xac)][_0x335969(0x131)](JSON[_0x335969(0xe2)](_0x14c4a9,null,0x2)+'\x0a');}),program['command'](_0x48fec9(0x9a))[_0x48fec9(0x15d)]('Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory')[_0x48fec9(0xf8)](_0x48fec9(0x84),_0x48fec9(0x81))[_0x48fec9(0x10f)](_0x48fec9(0xf1),_0x48fec9(0x9b))[_0x48fec9(0x10a)](async _0xbb8701=>{const _0x42a50b=_0x48fec9,_0x2a8bb1=resolve(process[_0x42a50b(0x12e)](),_0xbb8701[_0x42a50b(0xad)]),_0xf3fc9e=await syncAssets({'publicDir':_0x2a8bb1,'swFilename':_0xbb8701[_0x42a50b(0x14e)]});for(const _0x394d71 of _0xf3fc9e){const _0x8d242d=relative(process['cwd'](),_0x394d71[_0x42a50b(0xf3)]);_0x394d71['status']===_0x42a50b(0x149)?process['stdout']['write'](_0x42a50b(0x8d)+_0x394d71[_0x42a50b(0x105)]+_0x42a50b(0xfd)+_0x8d242d+']\x0a'):process[_0x42a50b(0xac)][_0x42a50b(0x131)](_0x42a50b(0x146)+_0x394d71['relativeDestination']+_0x42a50b(0x132)+_0x8d242d+'\x0a');}}),program['parseAsync']();
3
+ const _0x3ae1ef=_0x325a;(function(_0x5c76ae,_0x20a8c0){const _0x5565f8=_0x325a,_0xeaa6cd=_0x5c76ae();while(!![]){try{const _0x2ffa39=-parseInt(_0x5565f8(0x1ae))/0x1*(-parseInt(_0x5565f8(0x192))/0x2)+-parseInt(_0x5565f8(0x1ba))/0x3+parseInt(_0x5565f8(0x137))/0x4*(-parseInt(_0x5565f8(0x156))/0x5)+parseInt(_0x5565f8(0x203))/0x6+parseInt(_0x5565f8(0x1f4))/0x7*(parseInt(_0x5565f8(0x1de))/0x8)+-parseInt(_0x5565f8(0x16f))/0x9+-parseInt(_0x5565f8(0x15a))/0xa*(parseInt(_0x5565f8(0x165))/0xb);if(_0x2ffa39===_0x20a8c0)break;else _0xeaa6cd['push'](_0xeaa6cd['shift']());}catch(_0x362393){_0xeaa6cd['push'](_0xeaa6cd['shift']());}}}(_0x15f2,0xd6284));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x3ae1ef(0x1c6)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x3ae1ef(0x1b8),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0x3ae1ef(0x1be),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x3ae1ef(0x1c6)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x3ae1ef(0x153)](_0x3ae1ef(0x20f),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x11d8e1){const _0x3b5915=_0x3ae1ef;if(!_0x11d8e1[_0x3b5915(0x139)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x505b17=_0x11d8e1[_0x3b5915(0x14e)]??{};return{'publishableKey':_0x11d8e1[_0x3b5915(0x139)],'callbackBypass':_0x11d8e1['callbackBypass']??[],'overlay':{'enabled':!![],'position':_0x3b5915(0x146),'enableViteHmr':_0x505b17[_0x3b5915(0x1a6)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3b5915(0x200),'swPath':_0x3b5915(0x18b),'overlayPath':_0x505b17[_0x3b5915(0x15c)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x3b5915(0x17d),'security':_0x505b17[_0x3b5915(0x1a8)]??_0x3b5915(0x1fd),'backendUrl':_0x505b17['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x2477fa=_0x3ae1ef;try{const _0x81ccfe=new URLSearchParams(window[_0x2477fa(0x18d)][_0x2477fa(0x1b0)]);return _0x81ccfe[_0x2477fa(0x1ed)](_0x2477fa(0x155))?.[_0x2477fa(0x13c)]()||'';}catch{return'';}}function _0x325a(_0x3b3230,_0x1d4758){_0x3b3230=_0x3b3230-0x11f;const _0x15f26c=_0x15f2();let _0x325a17=_0x15f26c[_0x3b3230];return _0x325a17;}var LOG_PREFIX=_0x3ae1ef(0x16e),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0xb68a64){const _0x3c9f1c=_0x3ae1ef;console[_0x3c9f1c(0x153)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x3c9f1c(0x153)](LOG_PREFIX+_0x3c9f1c(0x1ee)+_0xb68a64[_0x3c9f1c(0x15c)]),console[_0x3c9f1c(0x153)](LOG_PREFIX+_0x3c9f1c(0x12b)+_0xb68a64[_0x3c9f1c(0x1d6)]),currentOptions=_0xb68a64[_0x3c9f1c(0x1f3)],toggleHandler=_0xb68a64[_0x3c9f1c(0x1fe)];if(overlayController){console[_0x3c9f1c(0x153)](LOG_PREFIX+_0x3c9f1c(0x1a4)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3c9f1c(0x153)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0xb68a64);try{await overlayLoadPromise,console['log'](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x4d97d7){console[_0x3c9f1c(0x141)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x4d97d7);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x111b74){const _0x829ae0=_0x3ae1ef;console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x1db));if(typeof window===_0x829ae0(0x1c6)){console[_0x829ae0(0x153)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x829ae0(0x1c1)]){console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x1cd)),overlayController=window[_0x829ae0(0x1c1)];return;}console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x14a));try{_0x111b74[_0x829ae0(0x1d6)]&&(console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x1f1)),await setupRemoteHMR(_0x111b74['overlayPath']));console[_0x829ae0(0x153)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x111b74['overlayPath']);const _0x19fbf2=Date[_0x829ae0(0x1dd)](),_0x16d233=await import(_0x111b74['overlayPath']);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x829ae0(0x1dd)]()-_0x19fbf2)+'ms'),console['log'](LOG_PREFIX+_0x829ae0(0x13f),Object[_0x829ae0(0x11f)](_0x16d233));if(typeof _0x16d233?.[_0x829ae0(0x1dc)]!==_0x829ae0(0x1aa)){console['error'](LOG_PREFIX+_0x829ae0(0x120)),console[_0x829ae0(0x141)](LOG_PREFIX+_0x829ae0(0x18a),Object[_0x829ae0(0x11f)](_0x16d233));return;}console['log'](LOG_PREFIX+_0x829ae0(0x167));const _0x1b03d2=_0x16d233[_0x829ae0(0x1dc)]();console[_0x829ae0(0x153)](LOG_PREFIX+'\x20Controller\x20created:',_0x1b03d2),overlayController=_0x1b03d2,window[_0x829ae0(0x1c1)]=_0x1b03d2,_0x1b03d2['onToggle'](_0x111b74[_0x829ae0(0x1fe)]),console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x170)),console[_0x829ae0(0x153)](LOG_PREFIX+_0x829ae0(0x13a)),updateOverlay();}catch(_0x561394){console[_0x829ae0(0x141)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x561394);}}function updateOverlay(){const _0xc0da7b=_0x3ae1ef;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x1e2)+!!overlayController),console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x144)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x1ee61a=composeOverlayState(currentOptions);console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x205),JSON[_0xc0da7b(0x12e)](_0x1ee61a,null,0x2)),overlayController['update'](_0x1ee61a),console[_0xc0da7b(0x153)](LOG_PREFIX+_0xc0da7b(0x19b));}function composeOverlayState(_0x490749){const _0x23e82e=_0x3ae1ef,_0x23f102=getEnhancementId();return console[_0x23e82e(0x153)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x23f102),console[_0x23e82e(0x153)](LOG_PREFIX+_0x23e82e(0x1d5)+state[_0x23e82e(0x1a1)]),console[_0x23e82e(0x153)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x23e82e(0x148)]),{'enhancementId':_0x23f102,'enabled':state[_0x23e82e(0x1a1)],'controlled':state[_0x23e82e(0x148)],'overlayPosition':_0x490749[_0x23e82e(0x14f)][_0x23e82e(0x1d1)],'securityMode':_0x490749[_0x23e82e(0x1a8)],'backendBaseUrl':_0x490749['backendUrl'],'appError':state[_0x23e82e(0x17e)]};}async function setupRemoteHMR(_0x3fa712){const _0x5428f2=_0x3ae1ef;console[_0x5428f2(0x153)](LOG_PREFIX+_0x5428f2(0x198)+_0x3fa712);if(typeof window==='undefined')return;try{const _0x22da35=new URL(_0x3fa712,window[_0x5428f2(0x18d)][_0x5428f2(0x20d)]),_0x300072=_0x22da35[_0x5428f2(0x20d)];console[_0x5428f2(0x153)](LOG_PREFIX+_0x5428f2(0x1e7)+_0x300072+',\x20page\x20origin:\x20'+window['location'][_0x5428f2(0x20d)]);if(_0x300072===window[_0x5428f2(0x18d)][_0x5428f2(0x20d)]){console[_0x5428f2(0x153)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x5428f2(0x1e4)),await ensureReactRefreshPreamble(_0x300072),await ensureViteClient(_0x300072),console[_0x5428f2(0x153)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x5a0588){console['warn'](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x5a0588);}}async function ensureReactRefreshPreamble(_0x76c2ab){const _0x9317ae=_0x3ae1ef;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x9317ae(0x145)]['has'](_0x76c2ab)){console[_0x9317ae(0x153)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x76c2ab);return;}console[_0x9317ae(0x153)](LOG_PREFIX+_0x9317ae(0x1f8)+_0x76c2ab+_0x9317ae(0x136));const _0x1c282c=await import(_0x76c2ab+_0x9317ae(0x209)),_0x288463=_0x1c282c&&typeof _0x1c282c===_0x9317ae(0x1a7)&&'default'in _0x1c282c?_0x1c282c[_0x9317ae(0x1c4)]:_0x1c282c;if(!isRefreshRuntime(_0x288463)){console[_0x9317ae(0x1e3)](LOG_PREFIX+_0x9317ae(0x183));return;}_0x288463[_0x9317ae(0x1ac)](window),window[_0x9317ae(0x19f)]=()=>{},window[_0x9317ae(0x134)]=()=>_0x1ced70=>_0x1ced70,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x9317ae(0x145)][_0x9317ae(0x1c5)](_0x76c2ab),console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x76c2ab);}async function ensureViteClient(_0x2d0062){const _0x3c6d35=_0x3ae1ef;window['__viteHMRLoaded']??=new Set();if(window[_0x3c6d35(0x1f2)][_0x3c6d35(0x1a5)](_0x2d0062)){console[_0x3c6d35(0x153)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x2d0062);return;}console[_0x3c6d35(0x153)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x2d0062+_0x3c6d35(0x136)),await import(_0x2d0062+_0x3c6d35(0x15e)),window[_0x3c6d35(0x1f2)][_0x3c6d35(0x1c5)](_0x2d0062),console['log'](LOG_PREFIX+_0x3c6d35(0x140)+_0x2d0062);}function isRefreshRuntime(_0x470586){const _0x4a1ecd=_0x3ae1ef;return typeof _0x470586===_0x4a1ecd(0x1a7)&&_0x470586!==null&&_0x4a1ecd(0x1ac)in _0x470586&&typeof _0x470586[_0x4a1ecd(0x1ac)]===_0x4a1ecd(0x1aa);}var WORKER_MESSAGE_CONFIG=_0x3ae1ef(0x142),WORKER_MESSAGE_DISABLE=_0x3ae1ef(0x1ad),LOG_PREFIX2=_0x3ae1ef(0x176),registration=null,currentOptions2=null;async function registerServiceWorker(_0x44de38){const _0xcd843f=_0x3ae1ef;console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+_0xcd843f(0x178)+_0x44de38[_0xcd843f(0x1a0)]);if(!('serviceWorker'in navigator)){console[_0xcd843f(0x1e3)](LOG_PREFIX2+_0xcd843f(0x196));return;}console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x1bb));const _0x1123d5=navigator[_0xcd843f(0x12d)][_0xcd843f(0x1c8)];console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x132),_0x1123d5?.['scriptURL']??_0xcd843f(0x1a2)),console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20Controller\x20state:',_0x1123d5?.[_0xcd843f(0x188)]??_0xcd843f(0x12a));const _0x222c45=!!_0x1123d5;currentOptions2=_0x44de38,console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x2e1fc9=await detectBlockingServiceWorker(_0x44de38[_0xcd843f(0x1a0)]);if(_0x2e1fc9){console['error'](LOG_PREFIX2+_0xcd843f(0x13e)+_0x2e1fc9),console[_0xcd843f(0x141)](LOG_PREFIX2+_0xcd843f(0x202));return;}console['log'](LOG_PREFIX2+_0xcd843f(0x1ab));try{console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x44de38[_0xcd843f(0x1a0)]+_0xcd843f(0x12c)),registration=await navigator['serviceWorker'][_0xcd843f(0x1e5)](_0x44de38[_0xcd843f(0x1a0)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0xcd843f(0x1c7),{'scope':registration[_0xcd843f(0x1f5)],'active':registration[_0xcd843f(0x182)]?.[_0xcd843f(0x1fc)],'waiting':registration['waiting']?.[_0xcd843f(0x1fc)],'installing':registration[_0xcd843f(0x1c3)]?.['scriptURL']}),console['log'](LOG_PREFIX2+_0xcd843f(0x15b));const _0x407911=await navigator['serviceWorker'][_0xcd843f(0x147)];console[_0xcd843f(0x153)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x407911[_0xcd843f(0x182)]?.[_0xcd843f(0x1fc)]);const _0x160a3d=ownsCurrentController(_0x44de38[_0xcd843f(0x1a0)]);state['controlled']=_0x160a3d,console['log'](LOG_PREFIX2+_0xcd843f(0x13b)+_0x160a3d),console['log'](LOG_PREFIX2+_0xcd843f(0x1da),navigator[_0xcd843f(0x12d)][_0xcd843f(0x1c8)]?.[_0xcd843f(0x1fc)]??_0xcd843f(0x1a2));if(!_0x222c45&&!navigator[_0xcd843f(0x12d)][_0xcd843f(0x1c8)]){console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x14c)),window['location'][_0xcd843f(0x128)]();return;}console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x207)),await sendConfiguration();if(state[_0xcd843f(0x1a1)]){const _0xb9a9ea=document[_0xcd843f(0x208)](_0xcd843f(0x1b5))!==null;console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x171)+_0xb9a9ea);if(!_0xb9a9ea){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0xcd843f(0x18d)][_0xcd843f(0x128)]();return;}}console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x20b)),updateOverlay(),console[_0xcd843f(0x153)](LOG_PREFIX2+_0xcd843f(0x122));}catch(_0xaee285){console[_0xcd843f(0x141)](LOG_PREFIX2+_0xcd843f(0x1b9),_0xaee285);}}async function sendConfiguration(){const _0x4764ad=_0x3ae1ef;console['log'](LOG_PREFIX2+_0x4764ad(0x1df)),console[_0x4764ad(0x153)](LOG_PREFIX2+_0x4764ad(0x1f9)+state[_0x4764ad(0x1a1)]+_0x4764ad(0x194)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x4764ad(0x153)](LOG_PREFIX2+_0x4764ad(0x1c9));return;}const _0x14ccf5=await resolveWorker();if(!_0x14ccf5){console[_0x4764ad(0x1e3)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x101d28={'publishableKey':currentOptions2[_0x4764ad(0x139)],'callbackBypass':currentOptions2[_0x4764ad(0x166)],'securityMode':currentOptions2[_0x4764ad(0x1a8)]};console[_0x4764ad(0x153)](LOG_PREFIX2+_0x4764ad(0x193),JSON['stringify'](_0x101d28,null,0x2)),_0x14ccf5[_0x4764ad(0x1cf)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x101d28}),console[_0x4764ad(0x153)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x3ed5b0){const _0x5e27be=_0x3ae1ef;console['log'](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x5e27be(0x12d)in navigator)){console['log'](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x521e1b=registration??await navigator[_0x5e27be(0x12d)][_0x5e27be(0x20c)]('/');if(!_0x521e1b){console[_0x5e27be(0x153)](LOG_PREFIX2+_0x5e27be(0x1b4));return;}console[_0x5e27be(0x153)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x521e1b[_0x5e27be(0x1f5)],'active':_0x521e1b['active']?.[_0x5e27be(0x1fc)],'waiting':_0x521e1b[_0x5e27be(0x1d9)]?.[_0x5e27be(0x1fc)],'installing':_0x521e1b[_0x5e27be(0x1c3)]?.[_0x5e27be(0x1fc)]});const _0x5a6ba3=[_0x521e1b[_0x5e27be(0x182)]?.[_0x5e27be(0x1fc)],_0x521e1b[_0x5e27be(0x1d9)]?.[_0x5e27be(0x1fc)],_0x521e1b[_0x5e27be(0x1c3)]?.['scriptURL']],_0x1dbd3d=_0x5a6ba3[_0x5e27be(0x1f0)](_0x11a85b=>_0x11a85b&&ownsServiceWorker(_0x11a85b,_0x3ed5b0));if(!_0x1dbd3d){console['log'](LOG_PREFIX2+_0x5e27be(0x151));return;}_0x521e1b[_0x5e27be(0x182)]&&(console[_0x5e27be(0x153)](LOG_PREFIX2+_0x5e27be(0x13d)),_0x521e1b[_0x5e27be(0x182)][_0x5e27be(0x1cf)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x5e27be(0x163)),await _0x521e1b['unregister'](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x39cacf){console[_0x5e27be(0x141)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x39cacf);}}function ownsServiceWorker(_0x2192eb,_0x2ffd6a){const _0x43265b=_0x3ae1ef,_0x55f1f4=typeof window!=='undefined'?window[_0x43265b(0x18d)][_0x43265b(0x20d)]:'',_0x2db389=new URL(_0x2ffd6a,_0x55f1f4||void 0x0)[_0x43265b(0x186)],_0x2a7a3c=_0x2192eb===_0x2db389||_0x2192eb['includes'](_0x43265b(0x162));return console[_0x43265b(0x153)](LOG_PREFIX2+_0x43265b(0x1e0)+_0x2192eb+',\x20expected='+_0x2db389+_0x43265b(0x16b)+_0x2a7a3c),_0x2a7a3c;}function ownsCurrentController(_0x3116a8){const _0x1f86fc=_0x3ae1ef;if(typeof navigator===_0x1f86fc(0x1c6))return![];const _0x2cba13=navigator[_0x1f86fc(0x12d)]?.[_0x1f86fc(0x1c8)];if(!_0x2cba13)return console[_0x1f86fc(0x153)](LOG_PREFIX2+_0x1f86fc(0x16a)),![];return ownsServiceWorker(_0x2cba13[_0x1f86fc(0x1fc)],_0x3116a8);}async function detectBlockingServiceWorker(_0x55fa7d){const _0x1344e3=_0x3ae1ef;if(!navigator[_0x1344e3(0x12d)])return null;try{const _0x425f49=await navigator[_0x1344e3(0x12d)][_0x1344e3(0x20c)]('/');console['log'](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x425f49?.['active']?.[_0x1344e3(0x1fc)]??_0x1344e3(0x1a2));const _0x101259=_0x425f49?.[_0x1344e3(0x182)]?.[_0x1344e3(0x1fc)];if(!_0x101259)return null;if(ownsServiceWorker(_0x101259,_0x55fa7d))return null;return _0x101259;}catch(_0xad1155){return console[_0x1344e3(0x141)](LOG_PREFIX2+_0x1344e3(0x161),_0xad1155),null;}}async function resolveWorker(){const _0x5a6982=_0x3ae1ef,_0x181555=registration??await navigator[_0x5a6982(0x12d)]?.[_0x5a6982(0x20c)]('/'),_0xab45b6=_0x181555?.[_0x5a6982(0x182)]??_0x181555?.[_0x5a6982(0x1d9)]??_0x181555?.[_0x5a6982(0x1c3)]??null;return console['log'](LOG_PREFIX2+_0x5a6982(0x184),_0xab45b6?.['scriptURL']??'none',_0x5a6982(0x17b)+(_0xab45b6?.[_0x5a6982(0x188)]??_0x5a6982(0x12a))),_0xab45b6;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){return typeof window!=='undefined'&&window['__enhanceInitialized']===!![];}function setInitialized(_0x34d653){const _0x218381=_0x3ae1ef;typeof window!==_0x218381(0x1c6)&&(window[_0x218381(0x1b6)]=_0x34d653);}function getOptions(){const _0x557a28=_0x3ae1ef;return typeof window!==_0x557a28(0x1c6)?window[_0x557a28(0x185)]??null:null;}function setOptions(_0x911783){const _0x28d28f=_0x3ae1ef;typeof window!==_0x28d28f(0x1c6)&&(window[_0x28d28f(0x185)]=_0x911783);}var Enhance={'init'(_0x294e19){const _0x195711=_0x3ae1ef,_0x13a0be=Date[_0x195711(0x1dd)]();console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x1cb)+_0x13a0be),console['log'](LOG_PREFIX3+_0x195711(0x1d8)+window[_0x195711(0x18d)][_0x195711(0x186)]),console[_0x195711(0x153)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x195711(0x197)]),console['log'](LOG_PREFIX3+'\x20Raw\x20options:',JSON['stringify'](_0x294e19,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x195711(0x19a)),window[_0x195711(0x1fb)]??createController();setInitialized(!![]),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x19c));const _0x19d831=normalizeOptions(_0x294e19);setOptions(_0x19d831),console[_0x195711(0x153)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](_0x19d831,null,0x2));const _0x2162c5=parseUrlParams();console['log'](LOG_PREFIX3+_0x195711(0x1ea),JSON['stringify'](_0x2162c5,null,0x2));if(_0x2162c5['explicitDisable'])return cleanUrlParam(_0x195711(0x1ef)),console[_0x195711(0x153)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x2162c5[_0x195711(0x143)])return console[_0x195711(0x153)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x1c0)+_0x2162c5[_0x195711(0x1a9)]),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x181)+_0x2162c5[_0x195711(0x17f)]),state['enabled']=!![],console['log'](LOG_PREFIX3+_0x195711(0x16c)),void loadOverlay({'overlayPath':_0x19d831[_0x195711(0x15c)],'enableViteHmr':_0x19d831[_0x195711(0x14f)]['enableViteHmr'],'options':_0x19d831,'onToggle':handleToggle}),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x1af)),void registerServiceWorker(_0x19d831),console[_0x195711(0x153)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x201)),void unregisterServiceWorker(_0x19d831['swPath']),console['log'](LOG_PREFIX3+_0x195711(0x1e8)),import.meta.hot&&(console[_0x195711(0x153)](LOG_PREFIX3+_0x195711(0x160)),import.meta.hot['on']('vite:error',_0x57426d=>{const _0x3d8efb=_0x195711;console[_0x3d8efb(0x153)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x57426d),state['appError']={'message':_0x57426d[_0x3d8efb(0x1bc)]['message']},updateOverlay();}),import.meta.hot['on'](_0x195711(0x1d0),()=>{const _0x4d796c=_0x195711;state[_0x4d796c(0x17e)]&&(console[_0x4d796c(0x153)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x4d796c(0x17e)]=null,updateOverlay());})),createController();}};function createController(){const _0x5a0c2b=_0x3ae1ef,_0x291775={'enable'(){const _0x5e1895=_0x325a,_0x1ddcaf=getOptions();if(!_0x1ddcaf)return;state[_0x5e1895(0x1a1)]=!![],void loadOverlay({'overlayPath':_0x1ddcaf['overlayPath'],'enableViteHmr':_0x1ddcaf[_0x5e1895(0x14f)][_0x5e1895(0x1d6)],'options':_0x1ddcaf,'onToggle':handleToggle}),void registerServiceWorker(_0x1ddcaf),void sendConfiguration(),updateOverlay();},'disable'(){const _0x22a18d=_0x325a,_0x3db5bf=getOptions();if(!_0x3db5bf)return;state['enabled']=![],state[_0x22a18d(0x148)]=![],updateOverlay(),void unregisterServiceWorker(_0x3db5bf['swPath']);},'status'(){const _0xabf079=_0x325a;return{'enabled':state[_0xabf079(0x1a1)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window[_0x5a0c2b(0x1fb)]=_0x291775),_0x291775;}function handleToggle(){const _0x13d325=_0x3ae1ef,_0x55aa28=createController();state[_0x13d325(0x1a1)]?_0x55aa28[_0x13d325(0x18c)]():_0x55aa28[_0x13d325(0x157)]();}function parseUrlParams(){const _0x5efd9a=_0x3ae1ef,_0x1f8507=new URL(window['location'][_0x5efd9a(0x186)]),_0x2c623d=_0x1f8507[_0x5efd9a(0x1d3)][_0x5efd9a(0x1ed)](_0x5efd9a(0x1ef))?.[_0x5efd9a(0x20a)](),_0x5c9dcc=_0x1f8507[_0x5efd9a(0x1d3)][_0x5efd9a(0x1ed)]('enhancementUrl'),_0x2446e1=_0x1f8507[_0x5efd9a(0x1d3)][_0x5efd9a(0x1ed)](_0x5efd9a(0x155));return{'hasEnhancement':Boolean(_0x5c9dcc||_0x2446e1),'explicitDisable':_0x2c623d==='0'||_0x2c623d===_0x5efd9a(0x180)||_0x2c623d===_0x5efd9a(0x1ff),'enhancementUrl':_0x5c9dcc,'enhancementId':_0x2446e1};}function _0x15f2(){const _0x450322=['\x20Updating\x20overlay...','getRegistration','origin','^7.2.4','[Enhance\x20Config]\x20Build-time\x20defaults:','delete','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','keys','\x20Module\x20missing\x20createOverlay\x20export!','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20registerServiceWorker()\x20complete','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','module','assets/enhance-runtime.js','cwd','status','reload','description','N/A','\x20enableViteHmr:\x20','\x20with\x20scope\x20\x27/\x27...','serviceWorker','stringify','@enhance-eng/sandbox','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','prepare-sw','\x20Current\x20controller:','publicDir','$RefreshSig$','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','...','1587984IQsovR','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','publishableKey','\x20Calling\x20updateOverlay()...','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','trim','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20BLOCKING\x20SW\x20detected:\x20','\x20Module\x20exports:','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','error','enhance:configure','hasEnhancement','\x20currentOptions\x20exists:\x20','__enhanceReactRefreshInstalledOrigins','bottom-right','ready','controlled','title','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','replace','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','write','__development','overlay','action','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','./dev/vite/index.d.ts','log','Enhance\x20sandbox\x20utility\x20CLI','enhancement','10sfGHuM','enable','./dev/cli.js','command','30WvdpUH','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','overlayPath','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','/@vite/client','readFile','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20detectBlocking\x20error:','sw-enhance','\x20Unregistering\x20SW...','mkdir','7588493kXlKPU','callbackBypass','\x20Calling\x20createOverlay()...','option','manifestPath','\x20No\x20current\x20controller',',\x20owns=','\x20Starting\x20overlay\x20load\x20(async)...','all','[Enhance\x20Overlay]','4335768vBJUbY','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Enhancement\x20detection:\x20wasEnhanced=','^3.22.4','runtimeURL','ENOENT','base64','[Enhance\x20SW-Client]','Copied\x20','\x20swPath:\x20','0.0.0','manifest','state:\x20','sha256','/assets/enhance-runtime.js','appError','enhancementId','false','\x20enhancementId:\x20','active','\x20Invalid\x20React\x20Refresh\x20runtime','\x20resolveWorker:','__enhanceOptions','href','swFilename','state','^24.10.1','\x20Available\x20exports:','/sw-enhance.js','disable','location','toString','--public-dir\x20<path>','\x20→\x20','stdout','3471788aXhlQt','\x20Sending\x20customer\x20config\x20to\x20SW:',',\x20currentOptions:\x20','digest','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','readyState','\x20setupRemoteHMR()\x20for\x20','code','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Overlay\x20update\x20complete','\x20First\x20initialization','./dev/index.d.ts','destinationPath','$RefreshReg$','swPath','enabled','none','MIT','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','has','enableOverlayHmr','object','security','enhancementUrl','function','\x20No\x20blocking\x20SW\x20found','injectIntoGlobalHook','enhance:disable','1cEVunt','\x20Starting\x20SW\x20registration\x20(async)...','search','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','bun\x20version\x20patch\x20--no-git-tag-version','tsc\x20--noEmit','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','[data-enhance-runtime-bootstrap]','__enhanceInitialized','\x20(already\x20current)\x20[','https://assets.enhancelabs.ai/overlay.js','\x20Failed\x20to\x20register\x20service\x20worker:','751119iEffVC','\x20Service\x20workers\x20supported','err','skipped','https://api.enhancelabs.ai','public','\x20enhancementUrl:\x20','__enhanceOverlay','name','installing','default','add','undefined','\x20Registration\x20returned:','controller','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','init','\x20init()\x20called\x20at\x20','update','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','^11.1.0','postMessage','vite:beforeUpdate','position','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','searchParams','startsWith','\x20composeOverlayState\x20-\x20state.enabled:\x20','enableViteHmr','copied','\x20Current\x20URL:\x20','waiting','\x20Current\x20controller\x20after\x20ready:','\x20doLoadOverlay()\x20starting...','createOverlay','now','199840QumcyG','\x20sendConfiguration()\x20called','\x20ownsServiceWorker?\x20scriptURL=','sw-enhance.js','\x20overlayController\x20exists:\x20','warn','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','register','./dev/index.js','\x20Overlay\x20origin:\x20','\x20init()\x20complete\x20-\x20normal\x20mode','https://','\x20URL\x20params\x20parsed:','^4.1.1','version','get','\x20overlayPath:\x20','enhance','some','\x20Setting\x20up\x20remote\x20HMR...','__viteHMRLoaded','options','413EqZIbs','scope','relativeDestination','http://','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20state.enabled:\x20','push','__enhanceController','scriptURL','permissive','onToggle','off','info','\x20Unregistering\x20any\x20existing\x20SW...','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','7579080pGwrMr','Print\x20the\x20current\x20asset\x20manifest','\x20Updating\x20overlay\x20with\x20state:','replaceState','\x20Sending\x20customer\x20configuration...','querySelector','/@react-refresh','toLowerCase'];_0x15f2=function(){return _0x450322;};return _0x15f2();}function cleanUrlParam(_0x20573a){const _0x53f3a7=_0x3ae1ef,_0x3fbada=new URL(window[_0x53f3a7(0x18d)][_0x53f3a7(0x186)]);_0x3fbada[_0x53f3a7(0x1d3)][_0x53f3a7(0x1a5)](_0x20573a)&&(_0x3fbada[_0x53f3a7(0x1d3)][_0x53f3a7(0x210)](_0x20573a),window['history'][_0x53f3a7(0x206)](null,document[_0x53f3a7(0x149)],_0x3fbada[_0x53f3a7(0x18e)]()));}var package_default={'name':_0x3ae1ef(0x12f),'version':'0.3.21','type':_0x3ae1ef(0x124),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x3ae1ef(0x1a3),'main':_0x3ae1ef(0x1e6),'module':'./dev/index.js','types':_0x3ae1ef(0x19d),'exports':{'.':{'types':'./dev/index.d.ts','import':_0x3ae1ef(0x1e6)},'./vite':{'types':_0x3ae1ef(0x152),'import':'./dev/vite/index.js'}},'files':['dev/'],'bin':{'enhance-sandbox':_0x3ae1ef(0x158)},'scripts':{'typecheck':_0x3ae1ef(0x1b3),'dev':_0x3ae1ef(0x121),'dev:build':_0x3ae1ef(0x130),'dev:staging':_0x3ae1ef(0x123),'dev:staging:build':_0x3ae1ef(0x1d2),'build':_0x3ae1ef(0x135),'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':_0x3ae1ef(0x1b1),'version':_0x3ae1ef(0x1b2)},'dependencies':{'commander':_0x3ae1ef(0x1ce),'zod':_0x3ae1ef(0x172)},'devDependencies':{'@types/node':_0x3ae1ef(0x189),'javascript-obfuscator':_0x3ae1ef(0x1eb),'tsup':'^8.5.1','vite':_0x3ae1ef(0x20e)},'publishConfig':{'access':_0x3ae1ef(0x1bf)}},DEFAULT_SERVICE_WORKER_PATH=_0x3ae1ef(0x18b),DEFAULT_RUNTIME_PATH=_0x3ae1ef(0x17d),DIST_SERVICE_WORKER_PATH=_0x3ae1ef(0x1e1),DIST_RUNTIME_PATH=_0x3ae1ef(0x125),PACKAGE_VERSION=typeof package_default[_0x3ae1ef(0x1ec)]==='string'?package_default[_0x3ae1ef(0x1ec)]:'0.0.0';function normalizeAssetPath(_0x41eb93){const _0x5cfd8e=_0x3ae1ef;if(!_0x41eb93)return _0x41eb93;if(_0x41eb93[_0x5cfd8e(0x1d4)](_0x5cfd8e(0x1f7))||_0x41eb93['startsWith'](_0x5cfd8e(0x1e9)))return _0x41eb93;const _0x10b1f9=_0x41eb93[_0x5cfd8e(0x14b)](/^\.\//,'');return _0x10b1f9[_0x5cfd8e(0x1d4)]('/')?_0x10b1f9:'/'+_0x10b1f9;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x4b88d8){const _0x19486b=_0x3ae1ef;return Enhance[_0x19486b(0x1ca)](_0x4b88d8);},'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 _0x44b36a=_0x3ae1ef;return Enhance2[_0x44b36a(0x173)]();}import{promises as _0x11bf88}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL('../dist/index.js',import.meta.url)));async function syncAssets(_0x2bde35){const _0x1c4211=_0x3ae1ef,_0x4c7792=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x2bde35[_0x1c4211(0x187)]?'./'+_0x2bde35[_0x1c4211(0x187)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x10b588=[];for(const _0x59e44b of _0x4c7792){const _0x228ec8=cleanRelativePath(_0x59e44b['override']??_0x59e44b[_0x1c4211(0x169)]),_0x47dbb5=join(distDir,cleanRelativePath(_0x59e44b['sourcePath'])),_0x468312=join(_0x2bde35[_0x1c4211(0x133)],_0x228ec8),[_0x57f5db,_0xf54a0b]=await Promise[_0x1c4211(0x16d)]([readDigest(_0x47dbb5),readDigest(_0x468312)]);if(_0x57f5db&&_0xf54a0b&&_0x57f5db===_0xf54a0b){_0x10b588[_0x1c4211(0x1fa)]({'sourcePath':_0x47dbb5,'destinationPath':_0x468312,'relativeDestination':_0x228ec8,'status':_0x1c4211(0x1bd)});continue;}await _0x11bf88[_0x1c4211(0x164)](dirname(_0x468312),{'recursive':!![]}),await _0x11bf88['copyFile'](_0x47dbb5,_0x468312),_0x10b588[_0x1c4211(0x1fa)]({'sourcePath':_0x47dbb5,'destinationPath':_0x468312,'relativeDestination':_0x228ec8,'status':_0x1c4211(0x1d7)});}return _0x10b588;}function cleanRelativePath(_0x4fe826){const _0x1010c1=_0x3ae1ef;return _0x4fe826[_0x1010c1(0x14b)](/^[./]+/,'');}async function readDigest(_0x3d3108){const _0x5de905=_0x3ae1ef;try{const _0x18e74d=await _0x11bf88[_0x5de905(0x15f)](_0x3d3108);return createHash(_0x5de905(0x17c))[_0x5de905(0x1cc)](_0x18e74d)[_0x5de905(0x195)](_0x5de905(0x175));}catch(_0x54c317){if(_0x54c317[_0x5de905(0x199)]===_0x5de905(0x174))return null;throw _0x54c317;}}var program=new Command();program[_0x3ae1ef(0x1c2)]('enhance-sandbox')[_0x3ae1ef(0x129)](_0x3ae1ef(0x154))[_0x3ae1ef(0x1ec)](_0x3ae1ef(0x179)),program[_0x3ae1ef(0x159)](_0x3ae1ef(0x17a))[_0x3ae1ef(0x129)](_0x3ae1ef(0x204))['action'](()=>{const _0x32a93e=_0x3ae1ef,_0x2a5121=getAssetManifest();process['stdout'][_0x32a93e(0x14d)](JSON[_0x32a93e(0x12e)](_0x2a5121,null,0x2)+'\x0a');}),program['command'](_0x3ae1ef(0x131))['description'](_0x3ae1ef(0x138))['requiredOption'](_0x3ae1ef(0x18f),_0x3ae1ef(0x211))[_0x3ae1ef(0x168)]('--filename\x20<name>',_0x3ae1ef(0x15d))[_0x3ae1ef(0x150)](async _0x4b7b56=>{const _0x3aa83d=_0x3ae1ef,_0x9b1def=resolve(process[_0x3aa83d(0x126)](),_0x4b7b56[_0x3aa83d(0x133)]),_0x2f4fcc=await syncAssets({'publicDir':_0x9b1def,'swFilename':_0x4b7b56['filename']});for(const _0x2bafa5 of _0x2f4fcc){const _0x246688=relative(process['cwd'](),_0x2bafa5[_0x3aa83d(0x19e)]);_0x2bafa5[_0x3aa83d(0x127)]===_0x3aa83d(0x1bd)?process['stdout']['write']('Skipped\x20'+_0x2bafa5[_0x3aa83d(0x1f6)]+_0x3aa83d(0x1b7)+_0x246688+']\x0a'):process[_0x3aa83d(0x191)][_0x3aa83d(0x14d)](_0x3aa83d(0x177)+_0x2bafa5[_0x3aa83d(0x1f6)]+_0x3aa83d(0x190)+_0x246688+'\x0a');}}),program['parseAsync']();
package/dist/index.d.ts CHANGED
@@ -75,9 +75,11 @@ declare global {
75
75
  __enhanceInitialized?: boolean;
76
76
  __enhanceOptions?: NormalizedOptions;
77
77
  __enhanceController?: EnhanceController;
78
- __enhanceResolvedUrl?: string;
79
78
  }
80
79
  }
80
+ /**
81
+ * Main entry point - the only public API.
82
+ */
81
83
  declare const Enhance$1: {
82
84
  init(rawOptions: RawOptions): EnhanceController;
83
85
  };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4645d4=_0xabe9;(function(_0x50df86,_0x213411){const _0x49f9c2=_0xabe9,_0x37de9f=_0x50df86();while(!![]){try{const _0x35b608=-parseInt(_0x49f9c2(0x117))/0x1+-parseInt(_0x49f9c2(0x94))/0x2*(parseInt(_0x49f9c2(0xc9))/0x3)+parseInt(_0x49f9c2(0x122))/0x4+-parseInt(_0x49f9c2(0x6b))/0x5*(-parseInt(_0x49f9c2(0x10e))/0x6)+-parseInt(_0x49f9c2(0x6d))/0x7+-parseInt(_0x49f9c2(0xa3))/0x8*(-parseInt(_0x49f9c2(0x93))/0x9)+parseInt(_0x49f9c2(0xb9))/0xa*(parseInt(_0x49f9c2(0x124))/0xb);if(_0x35b608===_0x213411)break;else _0x37de9f['push'](_0x37de9f['shift']());}catch(_0x5cb276){_0x37de9f['push'](_0x37de9f['shift']());}}}(_0x13de,0x407e4));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x4645d4(0xa8)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x4645d4(0x6e),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0x4645d4(0xe0),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x4645d4(0xa8)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x4645d4(0xb0)](_0x4645d4(0x8a),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0xc90472){const _0x434f3a=_0x4645d4;if(!_0xc90472[_0x434f3a(0x126)])throw new Error(_0x434f3a(0x103));const _0x39e737=_0xc90472['__development']??{};return{'publishableKey':_0xc90472[_0x434f3a(0x126)],'callbackBypass':_0xc90472[_0x434f3a(0xfa)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x39e737[_0x434f3a(0xfc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x434f3a(0x102),'swPath':_0x434f3a(0x108),'overlayPath':_0x39e737[_0x434f3a(0x116)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x434f3a(0xe3),'security':_0x39e737[_0x434f3a(0x106)]??_0x434f3a(0xb3),'backendUrl':_0x39e737[_0x434f3a(0x91)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x13d876=_0x4645d4;try{const _0x56eb3b=new URLSearchParams(window[_0x13d876(0x11d)][_0x13d876(0xca)]);return _0x56eb3b[_0x13d876(0xe2)]('enhancement')?.[_0x13d876(0xab)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x538f60){const _0x144822=_0x4645d4;console[_0x144822(0xb0)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0xef)+_0x538f60[_0x144822(0x116)]),console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0xfe)+_0x538f60['enableViteHmr']),currentOptions=_0x538f60[_0x144822(0x110)],toggleHandler=_0x538f60[_0x144822(0x101)];if(overlayController){console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0x95)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x144822(0xba)),overlayLoadPromise;console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0xb1)),overlayLoadPromise=doLoadOverlay(_0x538f60);try{await overlayLoadPromise,console[_0x144822(0xb0)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x1349b4){console['error'](LOG_PREFIX+_0x144822(0x123),_0x1349b4);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4dd126){const _0x251993=_0x4645d4;console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0x80));if(typeof window===_0x251993(0xa8)){console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xa1));return;}if(window[_0x251993(0xa9)]){console['log'](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x251993(0xa9)];return;}console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0x6f));try{_0x4dd126[_0x251993(0xe4)]&&(console['log'](LOG_PREFIX+_0x251993(0x10b)),await setupRemoteHMR(_0x4dd126[_0x251993(0x116)]));console[_0x251993(0xb0)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x4dd126[_0x251993(0x116)]);const _0x1ec30b=Date[_0x251993(0x8b)](),_0x4e1cc8=await import(_0x4dd126[_0x251993(0x116)]);console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xae)+(Date[_0x251993(0x8b)]()-_0x1ec30b)+'ms'),console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xb7),Object[_0x251993(0x119)](_0x4e1cc8));if(typeof _0x4e1cc8?.[_0x251993(0x69)]!==_0x251993(0xda)){console['error'](LOG_PREFIX+_0x251993(0x9e)),console[_0x251993(0x87)](LOG_PREFIX+_0x251993(0x73),Object['keys'](_0x4e1cc8));return;}console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xe1));const _0x4823c6=_0x4e1cc8[_0x251993(0x69)]();console['log'](LOG_PREFIX+_0x251993(0x9c),_0x4823c6),overlayController=_0x4823c6,window['__enhanceOverlay']=_0x4823c6,_0x4823c6[_0x251993(0x101)](_0x4dd126[_0x251993(0x101)]),console['log'](LOG_PREFIX+_0x251993(0xc4)),console['log'](LOG_PREFIX+_0x251993(0xfd)),updateOverlay();}catch(_0x3a69a2){console[_0x251993(0x87)](LOG_PREFIX+_0x251993(0x114),_0x3a69a2);}}function updateOverlay(){const _0x20b71c=_0x4645d4;console[_0x20b71c(0xb0)](LOG_PREFIX+_0x20b71c(0x10d)),console[_0x20b71c(0xb0)](LOG_PREFIX+_0x20b71c(0x99)+!!overlayController),console[_0x20b71c(0xb0)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x20b71c(0x7c));return;}const _0x810136=composeOverlayState(currentOptions);console[_0x20b71c(0xb0)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x20b71c(0x90)](_0x810136,null,0x2)),overlayController[_0x20b71c(0x88)](_0x810136),console[_0x20b71c(0xb0)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x5b4517){const _0x302fb4=_0x4645d4,_0x2054b0=getEnhancementId();return console[_0x302fb4(0xb0)](LOG_PREFIX+_0x302fb4(0xaa)+_0x2054b0),console[_0x302fb4(0xb0)](LOG_PREFIX+_0x302fb4(0x86)+state[_0x302fb4(0x78)]),console[_0x302fb4(0xb0)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x302fb4(0xaf)]),{'enhancementId':_0x2054b0,'enabled':state[_0x302fb4(0x78)],'controlled':state[_0x302fb4(0xaf)],'overlayPosition':_0x5b4517[_0x302fb4(0x10a)][_0x302fb4(0xdd)],'securityMode':_0x5b4517['security'],'backendBaseUrl':_0x5b4517['backendUrl'],'appError':state[_0x302fb4(0xbe)]};}async function setupRemoteHMR(_0x2e7684){const _0x113489=_0x4645d4;console[_0x113489(0xb0)](LOG_PREFIX+_0x113489(0xd3)+_0x2e7684);if(typeof window==='undefined')return;try{const _0x293de3=new URL(_0x2e7684,window[_0x113489(0x11d)][_0x113489(0xe6)]),_0x3adc96=_0x293de3[_0x113489(0xe6)];console[_0x113489(0xb0)](LOG_PREFIX+_0x113489(0xd4)+_0x3adc96+',\x20page\x20origin:\x20'+window[_0x113489(0x11d)]['origin']);if(_0x3adc96===window[_0x113489(0x11d)]['origin']){console[_0x113489(0xb0)](LOG_PREFIX+_0x113489(0x8e));return;}console['log'](LOG_PREFIX+_0x113489(0xa7)),await ensureReactRefreshPreamble(_0x3adc96),await ensureViteClient(_0x3adc96),console[_0x113489(0xb0)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x317144){console[_0x113489(0x10c)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x317144);}}async function ensureReactRefreshPreamble(_0x3a3dda){const _0xb8b515=_0x4645d4;window[_0xb8b515(0x9f)]??=new Set();if(window[_0xb8b515(0x9f)][_0xb8b515(0xa6)](_0x3a3dda)){console[_0xb8b515(0xb0)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3a3dda);return;}console['log'](LOG_PREFIX+_0xb8b515(0xe8)+_0x3a3dda+_0xb8b515(0x70));const _0x1af89a=await import(_0x3a3dda+_0xb8b515(0xac)),_0x96f67f=_0x1af89a&&typeof _0x1af89a===_0xb8b515(0x11a)&&_0xb8b515(0xb6)in _0x1af89a?_0x1af89a[_0xb8b515(0xb6)]:_0x1af89a;if(!isRefreshRuntime(_0x96f67f)){console[_0xb8b515(0x10c)](LOG_PREFIX+_0xb8b515(0xb8));return;}_0x96f67f[_0xb8b515(0xfb)](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x33a9ee=>_0x33a9ee,window['__vite_plugin_react_preamble_installed__']=!![],window[_0xb8b515(0x9f)][_0xb8b515(0xa0)](_0x3a3dda),console[_0xb8b515(0xb0)](LOG_PREFIX+_0xb8b515(0xdf)+_0x3a3dda);}async function ensureViteClient(_0x35b487){const _0x502f58=_0x4645d4;window['__viteHMRLoaded']??=new Set();if(window[_0x502f58(0xf1)][_0x502f58(0xa6)](_0x35b487)){console[_0x502f58(0xb0)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x35b487);return;}console[_0x502f58(0xb0)](LOG_PREFIX+_0x502f58(0x113)+_0x35b487+_0x502f58(0x70)),await import(_0x35b487+_0x502f58(0x11c)),window[_0x502f58(0xf1)][_0x502f58(0xa0)](_0x35b487),console[_0x502f58(0xb0)](LOG_PREFIX+_0x502f58(0x11b)+_0x35b487);}function isRefreshRuntime(_0x1013b7){const _0x272489=_0x4645d4;return typeof _0x1013b7==='object'&&_0x1013b7!==null&&_0x272489(0xfb)in _0x1013b7&&typeof _0x1013b7[_0x272489(0xfb)]===_0x272489(0xda);}var WORKER_MESSAGE_CONFIG=_0x4645d4(0xec),WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x4645d4(0x82),registration=null,currentOptions2=null;async function registerServiceWorker(_0x5e4312){const _0x4e684d=_0x4645d4;console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0xa2));if(!(_0x4e684d(0xd9)in navigator)){console[_0x4e684d(0x10c)](LOG_PREFIX2+_0x4e684d(0xc6));return;}const _0x222f8c=!!navigator[_0x4e684d(0xd9)][_0x4e684d(0xbd)];currentOptions2=_0x5e4312;const _0x5c5d2e=await detectBlockingServiceWorker(_0x5e4312[_0x4e684d(0xe7)]);if(_0x5c5d2e){console[_0x4e684d(0x87)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x5c5d2e);return;}try{console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0x12b)+_0x5e4312[_0x4e684d(0xe7)]+_0x4e684d(0x70)),registration=await navigator[_0x4e684d(0xd9)][_0x4e684d(0xb2)](_0x5e4312[_0x4e684d(0xe7)],{'scope':'/'}),console[_0x4e684d(0xb0)](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator[_0x4e684d(0xd9)][_0x4e684d(0x9d)],console[_0x4e684d(0xb0)](LOG_PREFIX2+'\x20SW\x20ready'),state[_0x4e684d(0xaf)]=ownsCurrentController(_0x5e4312[_0x4e684d(0xe7)]);if(!_0x222f8c&&!navigator['serviceWorker'][_0x4e684d(0xbd)]){console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0xad)),window[_0x4e684d(0x11d)][_0x4e684d(0xe9)]();return;}console['log'](LOG_PREFIX2+_0x4e684d(0xd6)),await sendConfiguration();if(state['enabled']){const _0x13d2af=document[_0x4e684d(0xed)](_0x4e684d(0x77))!==null;if(!_0x13d2af){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20-\x20reloading'),window[_0x4e684d(0x11d)][_0x4e684d(0xe9)]();return;}}updateOverlay(),console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0x83));}catch(_0x341a43){console['error'](LOG_PREFIX2+_0x4e684d(0x7a),_0x341a43);}}async function sendConfiguration(){const _0x250b10=_0x4645d4;if(!state[_0x250b10(0x78)]||!currentOptions2)return;const _0x459220=await resolveWorker();if(!_0x459220){console['warn'](LOG_PREFIX2+_0x250b10(0xf8));return;}const _0x464994=window[_0x250b10(0x128)]??null,_0x295d45={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x250b10(0xfa)],'securityMode':currentOptions2[_0x250b10(0x106)],'enhancementUrl':_0x464994??void 0x0};console[_0x250b10(0xb0)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON['stringify'](_0x295d45,null,0x2)),_0x459220[_0x250b10(0xcb)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x295d45});}async function unregisterServiceWorker(_0x41ff1c){const _0x10ec3f=_0x4645d4;console[_0x10ec3f(0xb0)](LOG_PREFIX2+_0x10ec3f(0x115));if(!(_0x10ec3f(0xd9)in navigator))return;try{const _0x4b2cb3=registration??await navigator[_0x10ec3f(0xd9)][_0x10ec3f(0xcd)]('/');if(!_0x4b2cb3)return;const _0x1187b8=[_0x4b2cb3[_0x10ec3f(0x100)]?.[_0x10ec3f(0x125)],_0x4b2cb3[_0x10ec3f(0xf7)]?.[_0x10ec3f(0x125)],_0x4b2cb3[_0x10ec3f(0x7f)]?.[_0x10ec3f(0x125)]],_0x165253=_0x1187b8['some'](_0x1accf1=>_0x1accf1&&ownsServiceWorker(_0x1accf1,_0x41ff1c));if(!_0x165253)return;_0x4b2cb3['active']&&_0x4b2cb3[_0x10ec3f(0x100)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x4b2cb3[_0x10ec3f(0x107)](),registration=null,currentOptions2=null,console[_0x10ec3f(0xb0)](LOG_PREFIX2+'\x20SW\x20unregistered');}catch(_0x3ce114){console['error'](LOG_PREFIX2+_0x10ec3f(0x12a),_0x3ce114);}}function ownsServiceWorker(_0x555eba,_0x21323f){const _0x4830b2=_0x4645d4,_0x5561fc=typeof window!==_0x4830b2(0xa8)?window[_0x4830b2(0x11d)][_0x4830b2(0xe6)]:'',_0x3d8663=new URL(_0x21323f,_0x5561fc||void 0x0)[_0x4830b2(0x12c)];return _0x555eba===_0x3d8663||_0x555eba['includes'](_0x4830b2(0xff));}function ownsCurrentController(_0x2bd86e){const _0x3be1d3=_0x4645d4,_0x22060f=navigator[_0x3be1d3(0xd9)]?.['controller'];if(!_0x22060f)return![];return ownsServiceWorker(_0x22060f['scriptURL'],_0x2bd86e);}async function detectBlockingServiceWorker(_0x671b8c){const _0x2f298f=_0x4645d4;if(!navigator[_0x2f298f(0xd9)])return null;try{const _0x1088f9=await navigator['serviceWorker'][_0x2f298f(0xcd)]('/'),_0x355d4c=_0x1088f9?.[_0x2f298f(0x100)]?.[_0x2f298f(0x125)];if(!_0x355d4c)return null;if(ownsServiceWorker(_0x355d4c,_0x671b8c))return null;return _0x355d4c;}catch{return null;}}async function resolveWorker(){const _0x2dc144=_0x4645d4,_0x579945=registration??await navigator['serviceWorker']?.['getRegistration']('/');return _0x579945?.['active']??_0x579945?.['waiting']??_0x579945?.[_0x2dc144(0x7f)]??null;}var LOG_PREFIX3=_0x4645d4(0x81),STORAGE_KEY_ENHANCEMENT_ID=_0x4645d4(0x92),STORAGE_KEY_ENHANCEMENT_URL='enhance.enhancementUrl';function isInitialized(){const _0x1c3035=_0x4645d4;return typeof window!=='undefined'&&window[_0x1c3035(0xf2)]===!![];}function setInitialized(_0x4c250c){const _0x417de0=_0x4645d4;typeof window!==_0x417de0(0xa8)&&(window[_0x417de0(0xf2)]=_0x4c250c);}function getOptions(){const _0x142eda=_0x4645d4;return typeof window!==_0x142eda(0xa8)?window[_0x142eda(0x89)]??null:null;}function _0x13de(){const _0x47f41e=['overlay','\x20Setting\x20up\x20remote\x20HMR...','warn','\x20updateOverlay()\x20called','19884NCsxfQ','message','options','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Failed\x20to\x20import/create\x20overlay:','\x20unregisterServiceWorker()\x20called','overlayPath','508042ajJebZ','\x20Current\x20URL:\x20','keys','object','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','/@vite/client','location','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','init','^3.22.4','toLowerCase','895568jIntpe','\x20loadOverlay()\x20failed:','362945pxEkgA','scriptURL','publishableKey','\x20Explicit\x20disable\x20-\x20exiting','__enhanceResolvedUrl','serviceWorkerURL','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Registering\x20SW\x20at\x20','href','enhancementId','createOverlay','\x20Using\x20cached\x20enhancement\x20URL:\x20','15mcPAim','@enhance-eng/sandbox','2588411sWUWsz','https://assets.enhancelabs.ai/overlay.js','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','...','/resolve','replace','\x20Available\x20exports:','\x20Normal\x20mode\x20-\x20no\x20enhancement','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','replaceState','[data-enhance-runtime-bootstrap]','enabled','./dev/cli.js','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Restored\x20enhancement\x20from\x20sessionStorage','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Resolution\x20error:','explicitDisable','installing','\x20doLoadOverlay()\x20starting...','[Enhance\x20Runtime]','[Enhance\x20SW-Client]','\x20registerServiceWorker()\x20complete','enhancement','dev/','\x20composeOverlayState\x20-\x20state.enabled:\x20','error','update','__enhanceOptions','[Enhance\x20Config]\x20Build-time\x20defaults:','now','\x20Enhancement\x20params:','history','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','runtimeURL','stringify','backendUrl','enhance.enhancementId','1658142rvxdbj','570412bSzxKQ','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Resolution\x20failed:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','cachedUrl','\x20overlayController\x20exists:\x20','./dev/index.d.ts','\x20Resolved\x20to:\x20','\x20Controller\x20created:','ready','\x20Module\x20missing\x20createOverlay\x20export!','__enhanceReactRefreshInstalledOrigins','add','\x20No\x20window\x20object\x20-\x20skipping','\x20registerServiceWorker()\x20called','16GmeJZE','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','0.0.0','has','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','undefined','__enhanceOverlay','\x20composeOverlayState\x20-\x20enhancementId:\x20','trim','/@react-refresh','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20Module\x20imported\x20in\x20','controlled','log','\x20Starting\x20fresh\x20overlay\x20load...','register','permissive','\x20Document\x20readyState:\x20','enhance','default','\x20Module\x20exports:','\x20Invalid\x20React\x20Refresh\x20runtime','250dBIguC','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','searchParams','disable','controller','appError','tsc\x20--noEmit','json','removeItem','toString','startsWith','\x20Overlay\x20controller\x20initialized\x20and\x20cached','./dev/index.js','\x20Service\x20workers\x20NOT\x20supported','enable','\x20Cleared\x20persisted\x20enhancement','3OpFdIE','search','postMessage','^4.1.1','getRegistration','set','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','^24.10.1','module','^8.5.1','\x20setupRemoteHMR()\x20for\x20','\x20Overlay\x20origin:\x20','\x20Loading\x20overlay...','\x20Sending\x20configuration\x20to\x20SW...','^11.1.0','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','serviceWorker','function','setItem','getItem','position','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','https://api.enhancelabs.ai','\x20Calling\x20createOverlay()...','get','/assets/enhance-runtime.js','enableViteHmr','title','origin','swPath','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','reload','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Resolving\x20enhancement\x20ID:\x20','enhance:configure','querySelector','false','\x20overlayPath:\x20','err','__viteHMRLoaded','__enhanceInitialized','version','text','vite:error','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','waiting','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Persisted\x20enhancement\x20to\x20sessionStorage','callbackBypass','injectIntoGlobalHook','enableOverlayHmr','\x20Calling\x20updateOverlay()...','\x20enableViteHmr:\x20','sw-enhance','active','onToggle','info','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','0.3.21','MIT','security','unregister','/sw-enhance.js','public'];_0x13de=function(){return _0x47f41e;};return _0x13de();}function setOptions(_0x1c20ee){const _0x240aa9=_0x4645d4;typeof window!==_0x240aa9(0xa8)&&(window[_0x240aa9(0x89)]=_0x1c20ee);}var Enhance={'init'(_0x5723e3){const _0x1aa192=_0x4645d4,_0x53548a=Date[_0x1aa192(0x8b)]();console[_0x1aa192(0xb0)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x53548a),console[_0x1aa192(0xb0)](LOG_PREFIX3+_0x1aa192(0x118)+window[_0x1aa192(0x11d)][_0x1aa192(0x12c)]),console['log'](LOG_PREFIX3+_0x1aa192(0xb4)+document['readyState']);if(isInitialized())return console[_0x1aa192(0x10c)](LOG_PREFIX3+_0x1aa192(0xde)),window['__enhanceController']??createController();setInitialized(!![]);const _0x3ea172=normalizeOptions(_0x5723e3);setOptions(_0x3ea172);const _0x146244=parseEnhancementParams();console[_0x1aa192(0xb0)](LOG_PREFIX3+_0x1aa192(0x8c),JSON[_0x1aa192(0x90)](_0x146244,null,0x2));if(_0x146244[_0x1aa192(0x7e)])return cleanUrlParam(_0x1aa192(0xb5)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+_0x1aa192(0x127)),createController();if(!_0x146244['enhancementId'])return console['log'](LOG_PREFIX3+_0x1aa192(0x74)),void unregisterServiceWorker(_0x3ea172[_0x1aa192(0xe7)]),setupViteErrorListeners(),createController();return console[_0x1aa192(0xb0)](LOG_PREFIX3+_0x1aa192(0x112)+_0x146244[_0x1aa192(0x12d)]),state[_0x1aa192(0x78)]=!![],void initializeEnhancement(_0x3ea172,_0x146244[_0x1aa192(0x12d)],_0x146244[_0x1aa192(0x98)]),createController();}};async function initializeEnhancement(_0x40f06a,_0x23bfb8,_0x59ecba){const _0x663ca=_0x4645d4;let _0x310028=_0x59ecba;if(!_0x310028){console[_0x663ca(0xb0)](LOG_PREFIX3+_0x663ca(0xeb)+_0x23bfb8),_0x310028=await resolveEnhancementUrl(_0x40f06a,_0x23bfb8);if(!_0x310028){console[_0x663ca(0x87)](LOG_PREFIX3+'\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting'),state[_0x663ca(0x78)]=![];return;}}else console['log'](LOG_PREFIX3+_0x663ca(0x6a)+_0x310028);persistEnhancement(_0x23bfb8,_0x310028),window['__enhanceResolvedUrl']=_0x310028,console[_0x663ca(0xb0)](LOG_PREFIX3+_0x663ca(0xd8)),await registerServiceWorker(_0x40f06a),console['log'](LOG_PREFIX3+_0x663ca(0xd5)),await loadOverlay({'overlayPath':_0x40f06a[_0x663ca(0x116)],'enableViteHmr':_0x40f06a[_0x663ca(0x10a)][_0x663ca(0xe4)],'options':_0x40f06a,'onToggle':handleToggle}),console[_0x663ca(0xb0)](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x28f2b1,_0x4fe363){const _0x492fbf=_0x4645d4,_0x1c0c48=_0x28f2b1[_0x492fbf(0x91)]+'/public/enhancements/'+_0x4fe363+_0x492fbf(0x71);console[_0x492fbf(0xb0)](LOG_PREFIX3+'\x20Calling:\x20'+_0x1c0c48);try{const _0x414b02=await fetch(_0x1c0c48,{'headers':{'X-Enhance-Publishable-Key':_0x28f2b1[_0x492fbf(0x126)]}});if(!_0x414b02['ok']){const _0x4115b8=await _0x414b02[_0x492fbf(0xf4)]();return console['error'](LOG_PREFIX3+_0x492fbf(0x96)+_0x414b02['status']+'\x20'+_0x4115b8),null;}const _0x36865e=await _0x414b02[_0x492fbf(0xc0)](),_0x2618f6=''+_0x28f2b1[_0x492fbf(0x91)]+_0x36865e['operatingPath'];return console[_0x492fbf(0xb0)](LOG_PREFIX3+_0x492fbf(0x9b)+_0x2618f6),_0x2618f6;}catch(_0xb7ac86){return console[_0x492fbf(0x87)](LOG_PREFIX3+_0x492fbf(0x7d),_0xb7ac86),null;}}function parseEnhancementParams(){const _0x5e28cf=_0x4645d4,_0x2b5f67=new URL(window[_0x5e28cf(0x11d)][_0x5e28cf(0x12c)]),_0x29d80d=_0x2b5f67[_0x5e28cf(0xbb)][_0x5e28cf(0xe2)](_0x5e28cf(0xb5))?.[_0x5e28cf(0x121)](),_0x348e6e=_0x29d80d==='0'||_0x29d80d===_0x5e28cf(0xee)||_0x29d80d==='off';let _0x1219b7=_0x2b5f67['searchParams']['get'](_0x5e28cf(0x84)),_0x1d553c=null;if(_0x1219b7)try{const _0x2e6441=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x942118=sessionStorage[_0x5e28cf(0xdc)](STORAGE_KEY_ENHANCEMENT_URL);_0x2e6441===_0x1219b7&&_0x942118&&(_0x1d553c=_0x942118,console[_0x5e28cf(0xb0)](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x271852=sessionStorage[_0x5e28cf(0xdc)](STORAGE_KEY_ENHANCEMENT_ID),_0x2b7d41=sessionStorage[_0x5e28cf(0xdc)](STORAGE_KEY_ENHANCEMENT_URL);_0x271852&&_0x2b7d41&&(_0x1219b7=_0x271852,_0x1d553c=_0x2b7d41,console[_0x5e28cf(0xb0)](LOG_PREFIX3+_0x5e28cf(0x7b)),_0x2b5f67[_0x5e28cf(0xbb)][_0x5e28cf(0xce)]('enhancement',_0x1219b7),window['history'][_0x5e28cf(0x76)](null,document['title'],_0x2b5f67[_0x5e28cf(0xc2)]()));}catch{}return{'enhancementId':_0x1219b7,'cachedUrl':_0x1d553c,'explicitDisable':_0x348e6e};}function persistEnhancement(_0x48cb02,_0xbace7c){const _0xe7d08f=_0x4645d4;try{sessionStorage[_0xe7d08f(0xdb)](STORAGE_KEY_ENHANCEMENT_ID,_0x48cb02),sessionStorage[_0xe7d08f(0xdb)](STORAGE_KEY_ENHANCEMENT_URL,_0xbace7c),console[_0xe7d08f(0xb0)](LOG_PREFIX3+_0xe7d08f(0xf9));}catch{}}function clearPersistedEnhancement(){const _0x2fb65b=_0x4645d4;try{sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x2fb65b(0xc1)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x2fb65b(0xb0)](LOG_PREFIX3+_0x2fb65b(0xc8));}catch{}}function createController(){const _0x487f51=_0x4645d4,_0x5f374d={'enable'(){const _0x3043f1=getOptions();if(!_0x3043f1)return;state['enabled']=!![],void registerServiceWorker(_0x3043f1),void sendConfiguration(),updateOverlay();},'disable'(){const _0x570d11=_0xabe9,_0x3492af=getOptions();if(!_0x3492af)return;state[_0x570d11(0x78)]=![],state[_0x570d11(0xaf)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x3492af[_0x570d11(0xe7)]);},'status'(){const _0x5ccb28=_0xabe9;return{'enabled':state[_0x5ccb28(0x78)],'controlled':state[_0x5ccb28(0xaf)]};}};return typeof window!==_0x487f51(0xa8)&&(window['__enhanceController']=_0x5f374d),_0x5f374d;}function handleToggle(){const _0xa59bf7=_0x4645d4,_0x470839=createController();state['enabled']?_0x470839[_0xa59bf7(0xbc)]():_0x470839[_0xa59bf7(0xc7)]();}function cleanUrlParam(_0x1c8cc5){const _0x1931da=_0x4645d4,_0xd3fb01=new URL(window[_0x1931da(0x11d)]['href']);_0xd3fb01['searchParams'][_0x1931da(0xa6)](_0x1c8cc5)&&(_0xd3fb01[_0x1931da(0xbb)]['delete'](_0x1c8cc5),window[_0x1931da(0x8d)]['replaceState'](null,document[_0x1931da(0xe5)],_0xd3fb01[_0x1931da(0xc2)]()));}function setupViteErrorListeners(){const _0x4a0e7b=_0x4645d4;import.meta.hot&&(import.meta.hot['on'](_0x4a0e7b(0xf5),_0x595094=>{const _0x17095f=_0x4a0e7b;state[_0x17095f(0xbe)]={'message':_0x595094[_0x17095f(0xf0)][_0x17095f(0x10f)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{state['appError']&&(state['appError']=null,updateOverlay());}));}function _0xabe9(_0x2acb36,_0x323be7){_0x2acb36=_0x2acb36-0x69;const _0x13de36=_0x13de();let _0xabe991=_0x13de36[_0x2acb36];return _0xabe991;}var package_default={'name':_0x4645d4(0x6c),'version':_0x4645d4(0x104),'type':_0x4645d4(0xd1),'description':_0x4645d4(0x11e),'license':_0x4645d4(0x105),'main':_0x4645d4(0xc5),'module':_0x4645d4(0xc5),'types':_0x4645d4(0x9a),'exports':{'.':{'types':_0x4645d4(0x9a),'import':_0x4645d4(0xc5)},'./vite':{'types':'./dev/vite/index.d.ts','import':'./dev/vite/index.js'}},'files':[_0x4645d4(0x85)],'bin':{'enhance-sandbox':_0x4645d4(0x79)},'scripts':{'typecheck':_0x4645d4(0xbf),'dev':_0x4645d4(0x97),'dev:build':_0x4645d4(0x75),'dev:staging':_0x4645d4(0xa4),'dev:staging:build':_0x4645d4(0xea),'build':_0x4645d4(0x111),'build:release':_0x4645d4(0xf6),'build:release:dev':_0x4645d4(0xcf),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x4645d4(0xd7),'zod':_0x4645d4(0x120)},'devDependencies':{'@types/node':_0x4645d4(0xd0),'javascript-obfuscator':_0x4645d4(0xcc),'tsup':_0x4645d4(0xd2),'vite':'^7.2.4'},'publishConfig':{'access':_0x4645d4(0x109)}},DEFAULT_SERVICE_WORKER_PATH=_0x4645d4(0x108),DEFAULT_RUNTIME_PATH=_0x4645d4(0xe3),PACKAGE_VERSION=typeof package_default[_0x4645d4(0xf3)]==='string'?package_default[_0x4645d4(0xf3)]:_0x4645d4(0xa5);function normalizeAssetPath(_0x54cb1f){const _0x28a5cb=_0x4645d4;if(!_0x54cb1f)return _0x54cb1f;if(_0x54cb1f[_0x28a5cb(0xc3)]('http://')||_0x54cb1f[_0x28a5cb(0xc3)]('https://'))return _0x54cb1f;const _0x4adb25=_0x54cb1f[_0x28a5cb(0x72)](/^\.\//,'');return _0x4adb25[_0x28a5cb(0xc3)]('/')?_0x4adb25:'/'+_0x4adb25;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0xaa83f0){const _0x3ff72b=_0x4645d4;return Enhance[_0x3ff72b(0x11f)](_0xaa83f0);},'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 _0x328352=_0x4645d4;return Enhance2[_0x328352(0x129)]();}function runtimeURL(){const _0x4d269c=_0x4645d4;return Enhance2[_0x4d269c(0x8f)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x56724d=_0x5080;(function(_0xff5399,_0x1aafb2){const _0x32088b=_0x5080,_0x2d93e3=_0xff5399();while(!![]){try{const _0x56ee7d=-parseInt(_0x32088b(0x1a1))/0x1+-parseInt(_0x32088b(0x130))/0x2+parseInt(_0x32088b(0x142))/0x3*(-parseInt(_0x32088b(0x18f))/0x4)+parseInt(_0x32088b(0x169))/0x5*(parseInt(_0x32088b(0x138))/0x6)+parseInt(_0x32088b(0x1a0))/0x7+parseInt(_0x32088b(0x196))/0x8+parseInt(_0x32088b(0x137))/0x9;if(_0x56ee7d===_0x1aafb2)break;else _0x2d93e3['push'](_0x2d93e3['shift']());}catch(_0x982aa1){_0x2d93e3['push'](_0x2d93e3['shift']());}}}(_0x3cdb,0xc6c77));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x56724d(0x203)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x56724d(0x1ed),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x56724d(0x203)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x56724d(0x164),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x56724d(0x203)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x56724d(0x204)](_0x56724d(0x1d5),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x1bb356){const _0x32ef53=_0x56724d;if(!_0x1bb356[_0x32ef53(0x17a)])throw new Error(_0x32ef53(0x13e));const _0x4b17f3=_0x1bb356[_0x32ef53(0x1ca)]??{};return{'publishableKey':_0x1bb356[_0x32ef53(0x17a)],'callbackBypass':_0x1bb356[_0x32ef53(0x1b8)]??[],'overlay':{'enabled':!![],'position':_0x32ef53(0x1b9),'enableViteHmr':_0x4b17f3[_0x32ef53(0x173)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x32ef53(0x1f4),'swPath':_0x32ef53(0x1d2),'overlayPath':_0x4b17f3[_0x32ef53(0x187)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x32ef53(0x1dc),'security':_0x4b17f3[_0x32ef53(0x1ce)]??_0x32ef53(0x133),'backendUrl':_0x4b17f3['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function _0x5080(_0x30e4c3,_0xa1cbee){_0x30e4c3=_0x30e4c3-0x130;const _0x3cdb5c=_0x3cdb();let _0x5080ec=_0x3cdb5c[_0x30e4c3];return _0x5080ec;}function getEnhancementId(){const _0x116a54=_0x56724d;try{const _0x492f70=new URLSearchParams(window[_0x116a54(0x154)][_0x116a54(0x183)]);return _0x492f70['get'](_0x116a54(0x18a))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x56724d(0x191),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x225151){const _0x581bc4=_0x56724d;console[_0x581bc4(0x204)](LOG_PREFIX+_0x581bc4(0x170)),console[_0x581bc4(0x204)](LOG_PREFIX+_0x581bc4(0x175)+_0x225151[_0x581bc4(0x187)]),console[_0x581bc4(0x204)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x225151['enableViteHmr']),currentOptions=_0x225151[_0x581bc4(0x18b)],toggleHandler=_0x225151[_0x581bc4(0x1b0)];if(overlayController){console['log'](LOG_PREFIX+_0x581bc4(0x180)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x581bc4(0x204)](LOG_PREFIX+_0x581bc4(0x182)),overlayLoadPromise;console[_0x581bc4(0x204)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x225151);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x581bc4(0x186));}catch(_0x162603){console[_0x581bc4(0x1fb)](LOG_PREFIX+_0x581bc4(0x1d9),_0x162603);}finally{overlayLoadPromise=null;}}function _0x3cdb(){const _0x1abef5=['location','\x20resolveWorker:','toString','MIT','some','enhancementId','swPath','./dev/vite/index.d.ts','\x20Unregistering\x20SW...','\x20No\x20window\x20object\x20-\x20skipping','replaceState','overlay','object','\x20Vite\x20error\x20detected:','scope','has','https://api.enhancelabs.ai','\x20detectBlocking\x20error:','register','\x20init()\x20complete\x20-\x20enhancement\x20mode','/@vite/client','5bLRFuh','\x20Setting\x20up\x20remote\x20HMR...','/@react-refresh','waiting','\x20composeOverlayState\x20-\x20enhancementId:\x20','default','\x20Registering\x20SW\x20at\x20','\x20loadOverlay()\x20called','\x20composeOverlayState\x20-\x20state.enabled:\x20','searchParams','enableOverlayHmr','add','\x20overlayPath:\x20','\x20Vite\x20client\x20already\x20loaded\x20for\x20','http://','err','\x20Registration\x20returned:','publishableKey','sw-enhance','\x20Unregistering\x20any\x20existing\x20SW...','\x20Controller\x20state:','includes','[Enhance\x20Runtime]','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','search','\x20Found\x20registration:','\x20state.enabled:\x20','\x20loadOverlay()\x20complete','overlayPath','history','./dev/vite/index.js','enhancement','options','^24.10.1','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20doLoadOverlay()\x20starting...','2862056LDDVLe','\x20init()\x20called\x20at\x20','[Enhance\x20Overlay]','replace','\x20enhancementUrl:\x20','@enhance-eng/sandbox','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','606048qDXWrp','\x20Current\x20URL:\x20','\x20currentOptions\x20exists:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','get','\x20ownsServiceWorker?\x20scriptURL=','getRegistration','\x20Calling\x20createOverlay()...','\x20Starting\x20SW\x20registration\x20(async)...','serviceWorker','3332700WTWphI','1199515EKtoWu','^4.1.1','querySelector','\x20Config\x20sent\x20to\x20SW','^7.2.4','__viteHMRLoaded',',\x20expected=','\x20Raw\x20options:','scriptURL','position','createOverlay','enable','dev/','active','\x20Overlay\x20origin:\x20','onToggle','\x20Module\x20exports:','title','stringify','update','unregister','\x20registerServiceWorker()\x20complete','readyState','callbackBypass','bottom-right','\x20enhancementId:\x20','toLowerCase','keys','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','N/A','runtimeURL','./dev/index.js','off','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','enhance','none','\x20with\x20scope\x20\x27/\x27...','\x20No\x20blocking\x20SW\x20found','\x20Updating\x20overlay...','__development','0.0.0','module','version','security','__vite_plugin_react_preamble_installed__','0.3.21','controlled','/sw-enhance.js','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','tsc\x20--noEmit','[Enhance\x20Config]\x20Build-time\x20defaults:','public','__enhanceReactRefreshInstalledOrigins','\x20SW\x20ready!\x20Active:','\x20loadOverlay()\x20failed:','\x20Failed\x20to\x20unregister\x20service\x20worker:','injectIntoGlobalHook','/assets/enhance-runtime.js','^3.22.4','appError','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\x20preview\x20bootstrap\x20and\x20tooling\x20package.','href','controller','hasEnhancement','\x20Module\x20imported\x20in\x20','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20swPath:\x20','init','\x20overlayController\x20exists:\x20','origin','\x20Document\x20readyState:\x20','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','state','https://assets.enhancelabs.ai/overlay.js','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','__enhanceInitialized','enhance:disable','\x20Calling\x20updateOverlay()...','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20detectBlocking\x20-\x20existing\x20registration:','info','disable','$RefreshSig$','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20HMR\x20setup\x20complete','\x20Service\x20workers\x20supported',',\x20page\x20origin:\x20','error','enabled','\x20Failed\x20to\x20register\x20service\x20worker:','https://','\x20Current\x20controller:','false','__enhanceOptions','...','undefined','log','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','state:\x20','1330016qoDmtS','\x20unregisterServiceWorker()\x20called','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','permissive','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','reload','startsWith','20456640ATkFIk','7709604eZSOlu','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20BLOCKING\x20SW\x20detected:\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20Current\x20controller\x20after\x20ready:','installing','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','warn','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','6ZuIYKT','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','function','\x20init()\x20complete\x20-\x20normal\x20mode','enableViteHmr','\x20First\x20initialization','\x20Controller\x20created:','\x20SW\x20unregistered\x20successfully','\x20setupRemoteHMR()\x20for\x20','\x20Sending\x20customer\x20configuration...','__enhanceOverlay','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','^11.1.0','now','bun\x20version\x20patch\x20--no-git-tag-version','\x20No\x20current\x20controller','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch'];_0x3cdb=function(){return _0x1abef5;};return _0x3cdb();}async function doLoadOverlay(_0x28e7c3){const _0x32a1ee=_0x56724d;console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x18e));if(typeof window===_0x32a1ee(0x203)){console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x15d));return;}if(window[_0x32a1ee(0x14d)]){console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x144)),overlayController=window['__enhanceOverlay'];return;}console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x1ee));try{_0x28e7c3[_0x32a1ee(0x147)]&&(console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x16a)),await setupRemoteHMR(_0x28e7c3['overlayPath']));console[_0x32a1ee(0x204)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x28e7c3[_0x32a1ee(0x187)]);const _0x4b6f5c=Date[_0x32a1ee(0x150)](),_0xdf210b=await import(_0x28e7c3[_0x32a1ee(0x187)]);console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x1e4)+(Date[_0x32a1ee(0x150)]()-_0x4b6f5c)+'ms'),console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x1b1),Object['keys'](_0xdf210b));if(typeof _0xdf210b?.[_0x32a1ee(0x1ab)]!==_0x32a1ee(0x145)){console[_0x32a1ee(0x1fb)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x32a1ee(0x1fb)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x32a1ee(0x1bc)](_0xdf210b));return;}console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x19d));const _0x21443c=_0xdf210b[_0x32a1ee(0x1ab)]();console[_0x32a1ee(0x204)](LOG_PREFIX+_0x32a1ee(0x149),_0x21443c),overlayController=_0x21443c,window[_0x32a1ee(0x14d)]=_0x21443c,_0x21443c['onToggle'](_0x28e7c3[_0x32a1ee(0x1b0)]),console[_0x32a1ee(0x204)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0x32a1ee(0x1f1)),updateOverlay();}catch(_0x492469){console[_0x32a1ee(0x1fb)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x492469);}}function updateOverlay(){const _0x21d299=_0x56724d;console[_0x21d299(0x204)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x21d299(0x204)](LOG_PREFIX+_0x21d299(0x1e8)+!!overlayController),console[_0x21d299(0x204)](LOG_PREFIX+_0x21d299(0x198)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x21d299(0x204)](LOG_PREFIX+_0x21d299(0x134));return;}const _0x51c2cf=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x21d299(0x1b3)](_0x51c2cf,null,0x2)),overlayController[_0x21d299(0x1b4)](_0x51c2cf),console[_0x21d299(0x204)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x178dd1){const _0x438409=_0x56724d,_0x441586=getEnhancementId();return console['log'](LOG_PREFIX+_0x438409(0x16d)+_0x441586),console[_0x438409(0x204)](LOG_PREFIX+_0x438409(0x171)+state[_0x438409(0x1fc)]),console[_0x438409(0x204)](LOG_PREFIX+_0x438409(0x199)+state[_0x438409(0x1d1)]),{'enhancementId':_0x441586,'enabled':state[_0x438409(0x1fc)],'controlled':state[_0x438409(0x1d1)],'overlayPosition':_0x178dd1[_0x438409(0x15f)][_0x438409(0x1aa)],'securityMode':_0x178dd1[_0x438409(0x1ce)],'backendBaseUrl':_0x178dd1['backendUrl'],'appError':state[_0x438409(0x1de)]};}async function setupRemoteHMR(_0x1fce53){const _0x396233=_0x56724d;console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x14b)+_0x1fce53);if(typeof window==='undefined')return;try{const _0x31ddd5=new URL(_0x1fce53,window[_0x396233(0x154)]['origin']),_0x51c433=_0x31ddd5[_0x396233(0x1e9)];console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x1af)+_0x51c433+_0x396233(0x1fa)+window[_0x396233(0x154)][_0x396233(0x1e9)]);if(_0x51c433===window[_0x396233(0x154)][_0x396233(0x1e9)]){console[_0x396233(0x204)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x1c4)),await ensureReactRefreshPreamble(_0x51c433),await ensureViteClient(_0x51c433),console[_0x396233(0x204)](LOG_PREFIX+_0x396233(0x1f8));}catch(_0x341c9f){console[_0x396233(0x140)](LOG_PREFIX+_0x396233(0x13b),_0x341c9f);}}async function ensureReactRefreshPreamble(_0x3c8714){const _0x41350e=_0x56724d;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x41350e(0x1d7)]['has'](_0x3c8714)){console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3c8714);return;}console['log'](LOG_PREFIX+_0x41350e(0x1f7)+_0x3c8714+_0x41350e(0x202));const _0x5a3191=await import(_0x3c8714+_0x41350e(0x16b)),_0x57e1d8=_0x5a3191&&typeof _0x5a3191===_0x41350e(0x160)&&_0x41350e(0x16e)in _0x5a3191?_0x5a3191[_0x41350e(0x16e)]:_0x5a3191;if(!isRefreshRuntime(_0x57e1d8)){console[_0x41350e(0x140)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x57e1d8[_0x41350e(0x1db)](window),window['$RefreshReg$']=()=>{},window[_0x41350e(0x1f6)]=()=>_0x11da6c=>_0x11da6c,window[_0x41350e(0x1cf)]=!![],window[_0x41350e(0x1d7)][_0x41350e(0x174)](_0x3c8714),console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x3c8714);}async function ensureViteClient(_0x41671b){const _0x244c8d=_0x56724d;window[_0x244c8d(0x1a6)]??=new Set();if(window['__viteHMRLoaded']['has'](_0x41671b)){console['log'](LOG_PREFIX+_0x244c8d(0x176)+_0x41671b);return;}console[_0x244c8d(0x204)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x41671b+_0x244c8d(0x202)),await import(_0x41671b+_0x244c8d(0x168)),window[_0x244c8d(0x1a6)][_0x244c8d(0x174)](_0x41671b),console[_0x244c8d(0x204)](LOG_PREFIX+_0x244c8d(0x1bd)+_0x41671b);}function isRefreshRuntime(_0xf3c991){const _0x3e3542=_0x56724d;return typeof _0xf3c991==='object'&&_0xf3c991!==null&&_0x3e3542(0x1db)in _0xf3c991&&typeof _0xf3c991[_0x3e3542(0x1db)]==='function';}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x56724d(0x1f0),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x18ffae){const _0x1233d9=_0x56724d;console['log'](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1e6)+_0x18ffae['swPath']);if(!(_0x1233d9(0x19f)in navigator)){console[_0x1233d9(0x140)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console['log'](LOG_PREFIX2+_0x1233d9(0x1f9));const _0x1e6907=navigator[_0x1233d9(0x19f)]['controller'];console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1ff),_0x1e6907?.[_0x1233d9(0x1a9)]??'none'),console['log'](LOG_PREFIX2+_0x1233d9(0x17d),_0x1e6907?.[_0x1233d9(0x1ec)]??_0x1233d9(0x1c0));const _0x4cf9bd=!!_0x1e6907;currentOptions2=_0x18ffae,console['log'](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x242c35=await detectBlockingServiceWorker(_0x18ffae['swPath']);if(_0x242c35){console[_0x1233d9(0x1fb)](LOG_PREFIX2+_0x1233d9(0x13a)+_0x242c35),console['error'](LOG_PREFIX2+_0x1233d9(0x143));return;}console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1c8));try{console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x16f)+_0x18ffae[_0x1233d9(0x15a)]+_0x1233d9(0x1c7)),registration=await navigator[_0x1233d9(0x19f)][_0x1233d9(0x166)](_0x18ffae[_0x1233d9(0x15a)],{'scope':'/'}),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x179),{'scope':registration[_0x1233d9(0x162)],'active':registration[_0x1233d9(0x1ae)]?.[_0x1233d9(0x1a9)],'waiting':registration['waiting']?.[_0x1233d9(0x1a9)],'installing':registration['installing']?.['scriptURL']}),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x1eb));const _0x312075=await navigator['serviceWorker']['ready'];console['log'](LOG_PREFIX2+_0x1233d9(0x1d8),_0x312075['active']?.['scriptURL']);const _0x5ba9d9=ownsCurrentController(_0x18ffae[_0x1233d9(0x15a)]);state['controlled']=_0x5ba9d9,console[_0x1233d9(0x204)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x5ba9d9),console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x13c),navigator[_0x1233d9(0x19f)][_0x1233d9(0x1e2)]?.[_0x1233d9(0x1a9)]??_0x1233d9(0x1c6));if(!_0x4cf9bd&&!navigator[_0x1233d9(0x19f)][_0x1233d9(0x1e2)]){console['log'](LOG_PREFIX2+_0x1233d9(0x1be)),window[_0x1233d9(0x154)][_0x1233d9(0x135)]();return;}console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x14c)),await sendConfiguration();if(state['enabled']){const _0x490dc6=document[_0x1233d9(0x1a3)]('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x490dc6);if(!_0x490dc6){console[_0x1233d9(0x204)](LOG_PREFIX2+_0x1233d9(0x195)),window[_0x1233d9(0x154)][_0x1233d9(0x135)]();return;}}console['log'](LOG_PREFIX2+_0x1233d9(0x1c9)),updateOverlay(),console['log'](LOG_PREFIX2+_0x1233d9(0x1b6));}catch(_0x88a426){console[_0x1233d9(0x1fb)](LOG_PREFIX2+_0x1233d9(0x1fd),_0x88a426);}}async function sendConfiguration(){const _0x207e3a=_0x56724d;console[_0x207e3a(0x204)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x207e3a(0x204)](LOG_PREFIX2+_0x207e3a(0x185)+state[_0x207e3a(0x1fc)]+',\x20currentOptions:\x20'+!!currentOptions2);if(!state[_0x207e3a(0x1fc)]||!currentOptions2){console['log'](LOG_PREFIX2+_0x207e3a(0x1f2));return;}const _0x595223=await resolveWorker();if(!_0x595223){console[_0x207e3a(0x140)](LOG_PREFIX2+_0x207e3a(0x1e5));return;}const _0x3a6afa={'publishableKey':currentOptions2[_0x207e3a(0x17a)],'callbackBypass':currentOptions2[_0x207e3a(0x1b8)],'securityMode':currentOptions2[_0x207e3a(0x1ce)]};console[_0x207e3a(0x204)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x207e3a(0x1b3)](_0x3a6afa,null,0x2)),_0x595223['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x3a6afa}),console[_0x207e3a(0x204)](LOG_PREFIX2+_0x207e3a(0x1a4));}async function unregisterServiceWorker(_0x43d135){const _0x4ca94d=_0x56724d;console[_0x4ca94d(0x204)](LOG_PREFIX2+_0x4ca94d(0x131));if(!(_0x4ca94d(0x19f)in navigator)){console['log'](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x4159d7=registration??await navigator[_0x4ca94d(0x19f)][_0x4ca94d(0x19c)]('/');if(!_0x4159d7){console[_0x4ca94d(0x204)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console['log'](LOG_PREFIX2+_0x4ca94d(0x184),{'scope':_0x4159d7[_0x4ca94d(0x162)],'active':_0x4159d7[_0x4ca94d(0x1ae)]?.[_0x4ca94d(0x1a9)],'waiting':_0x4159d7[_0x4ca94d(0x16c)]?.[_0x4ca94d(0x1a9)],'installing':_0x4159d7[_0x4ca94d(0x13d)]?.[_0x4ca94d(0x1a9)]});const _0x3ec4d5=[_0x4159d7[_0x4ca94d(0x1ae)]?.[_0x4ca94d(0x1a9)],_0x4159d7[_0x4ca94d(0x16c)]?.[_0x4ca94d(0x1a9)],_0x4159d7[_0x4ca94d(0x13d)]?.[_0x4ca94d(0x1a9)]],_0x5c9d60=_0x3ec4d5[_0x4ca94d(0x158)](_0x510d1d=>_0x510d1d&&ownsServiceWorker(_0x510d1d,_0x43d135));if(!_0x5c9d60){console[_0x4ca94d(0x204)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x4159d7['active']&&(console['log'](LOG_PREFIX2+_0x4ca94d(0x14e)),_0x4159d7[_0x4ca94d(0x1ae)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0x4ca94d(0x204)](LOG_PREFIX2+_0x4ca94d(0x15c)),await _0x4159d7[_0x4ca94d(0x1b5)](),registration=null,currentOptions2=null,console[_0x4ca94d(0x204)](LOG_PREFIX2+_0x4ca94d(0x14a));}catch(_0x1294c8){console[_0x4ca94d(0x1fb)](LOG_PREFIX2+_0x4ca94d(0x1da),_0x1294c8);}}function ownsServiceWorker(_0x4df3ae,_0x1ee5fb){const _0x5c576f=_0x56724d,_0x2cebea=typeof window!==_0x5c576f(0x203)?window['location']['origin']:'',_0x29a730=new URL(_0x1ee5fb,_0x2cebea||void 0x0)['href'],_0x20f8ee=_0x4df3ae===_0x29a730||_0x4df3ae[_0x5c576f(0x17e)](_0x5c576f(0x17b));return console[_0x5c576f(0x204)](LOG_PREFIX2+_0x5c576f(0x19b)+_0x4df3ae+_0x5c576f(0x1a7)+_0x29a730+',\x20owns='+_0x20f8ee),_0x20f8ee;}function ownsCurrentController(_0x3b5df4){const _0x5c53be=_0x56724d;if(typeof navigator===_0x5c53be(0x203))return![];const _0x9fc8f4=navigator[_0x5c53be(0x19f)]?.[_0x5c53be(0x1e2)];if(!_0x9fc8f4)return console[_0x5c53be(0x204)](LOG_PREFIX2+_0x5c53be(0x152)),![];return ownsServiceWorker(_0x9fc8f4['scriptURL'],_0x3b5df4);}async function detectBlockingServiceWorker(_0x1a2f5f){const _0x308a05=_0x56724d;if(!navigator['serviceWorker'])return null;try{const _0x4ee9b1=await navigator[_0x308a05(0x19f)][_0x308a05(0x19c)]('/');console[_0x308a05(0x204)](LOG_PREFIX2+_0x308a05(0x1f3),_0x4ee9b1?.['active']?.[_0x308a05(0x1a9)]??_0x308a05(0x1c6));const _0x4cfbca=_0x4ee9b1?.[_0x308a05(0x1ae)]?.[_0x308a05(0x1a9)];if(!_0x4cfbca)return null;if(ownsServiceWorker(_0x4cfbca,_0x1a2f5f))return null;return _0x4cfbca;}catch(_0x4f7cb5){return console[_0x308a05(0x1fb)](LOG_PREFIX2+_0x308a05(0x165),_0x4f7cb5),null;}}async function resolveWorker(){const _0x17517b=_0x56724d,_0x45ff04=registration??await navigator[_0x17517b(0x19f)]?.[_0x17517b(0x19c)]('/'),_0x2f9513=_0x45ff04?.['active']??_0x45ff04?.[_0x17517b(0x16c)]??_0x45ff04?.[_0x17517b(0x13d)]??null;return console[_0x17517b(0x204)](LOG_PREFIX2+_0x17517b(0x155),_0x2f9513?.[_0x17517b(0x1a9)]??_0x17517b(0x1c6),_0x17517b(0x206)+(_0x2f9513?.[_0x17517b(0x1ec)]??'N/A')),_0x2f9513;}var LOG_PREFIX3=_0x56724d(0x17f);function isInitialized(){const _0x583589=_0x56724d;return typeof window!==_0x583589(0x203)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x5ec6fa){const _0x53767f=_0x56724d;typeof window!=='undefined'&&(window[_0x53767f(0x1ef)]=_0x5ec6fa);}function getOptions(){const _0x6437fd=_0x56724d;return typeof window!=='undefined'?window[_0x6437fd(0x201)]??null:null;}function setOptions(_0x5c9e19){const _0x2a601c=_0x56724d;typeof window!==_0x2a601c(0x203)&&(window[_0x2a601c(0x201)]=_0x5c9e19);}var Enhance={'init'(_0x14a733){const _0x5c607=_0x56724d,_0x3dc0d2=Date[_0x5c607(0x150)]();console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x190)+_0x3dc0d2),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x197)+window[_0x5c607(0x154)][_0x5c607(0x1e1)]),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x1ea)+document[_0x5c607(0x1b7)]),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x1a8),JSON[_0x5c607(0x1b3)](_0x14a733,null,0x2));if(isInitialized())return console[_0x5c607(0x140)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window['__enhanceController']??createController();setInitialized(!![]),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x148));const _0x9867cf=normalizeOptions(_0x14a733);setOptions(_0x9867cf),console['log'](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x5c607(0x1b3)](_0x9867cf,null,0x2));const _0x3538bd=parseUrlParams();console['log'](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x5c607(0x1b3)](_0x3538bd,null,0x2));if(_0x3538bd['explicitDisable'])return cleanUrlParam(_0x5c607(0x1c5)),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x18d)),createController();if(_0x3538bd[_0x5c607(0x1e3)])return console[_0x5c607(0x204)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x193)+_0x3538bd['enhancementUrl']),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x1ba)+_0x3538bd[_0x5c607(0x159)]),state[_0x5c607(0x1fc)]=!![],console['log'](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x9867cf[_0x5c607(0x187)],'enableViteHmr':_0x9867cf[_0x5c607(0x15f)][_0x5c607(0x147)],'options':_0x9867cf,'onToggle':handleToggle}),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x19e)),void registerServiceWorker(_0x9867cf),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x167)),createController();return console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x181)),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x17c)),void unregisterServiceWorker(_0x9867cf['swPath']),console[_0x5c607(0x204)](LOG_PREFIX3+_0x5c607(0x146)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x5c607(0x205)),import.meta.hot['on']('vite:error',_0x58b790=>{const _0x270dc9=_0x5c607;console['log'](LOG_PREFIX3+_0x270dc9(0x161),_0x58b790),state[_0x270dc9(0x1de)]={'message':_0x58b790[_0x270dc9(0x178)]['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x472f60=_0x5c607;state[_0x472f60(0x1de)]&&(console[_0x472f60(0x204)](LOG_PREFIX3+_0x472f60(0x1d3)),state[_0x472f60(0x1de)]=null,updateOverlay());})),createController();}};function createController(){const _0x56ec0e={'enable'(){const _0x4e03c1=_0x5080,_0x3018e8=getOptions();if(!_0x3018e8)return;state[_0x4e03c1(0x1fc)]=!![],void loadOverlay({'overlayPath':_0x3018e8[_0x4e03c1(0x187)],'enableViteHmr':_0x3018e8['overlay'][_0x4e03c1(0x147)],'options':_0x3018e8,'onToggle':handleToggle}),void registerServiceWorker(_0x3018e8),void sendConfiguration(),updateOverlay();},'disable'(){const _0x507aca=_0x5080,_0x37aefa=getOptions();if(!_0x37aefa)return;state[_0x507aca(0x1fc)]=![],state[_0x507aca(0x1d1)]=![],updateOverlay(),void unregisterServiceWorker(_0x37aefa[_0x507aca(0x15a)]);},'status'(){const _0x250a1c=_0x5080;return{'enabled':state['enabled'],'controlled':state[_0x250a1c(0x1d1)]};}};return typeof window!=='undefined'&&(window['__enhanceController']=_0x56ec0e),_0x56ec0e;}function handleToggle(){const _0x5a25ce=_0x56724d,_0x411f14=createController();state[_0x5a25ce(0x1fc)]?_0x411f14[_0x5a25ce(0x1f5)]():_0x411f14[_0x5a25ce(0x1ac)]();}function parseUrlParams(){const _0x38e707=_0x56724d,_0x3f5d32=new URL(window[_0x38e707(0x154)][_0x38e707(0x1e1)]),_0x1aceaf=_0x3f5d32[_0x38e707(0x172)]['get'](_0x38e707(0x1c5))?.[_0x38e707(0x1bb)](),_0xffbdbc=_0x3f5d32[_0x38e707(0x172)][_0x38e707(0x19a)]('enhancementUrl'),_0x4e6595=_0x3f5d32[_0x38e707(0x172)][_0x38e707(0x19a)](_0x38e707(0x18a));return{'hasEnhancement':Boolean(_0xffbdbc||_0x4e6595),'explicitDisable':_0x1aceaf==='0'||_0x1aceaf===_0x38e707(0x200)||_0x1aceaf===_0x38e707(0x1c3),'enhancementUrl':_0xffbdbc,'enhancementId':_0x4e6595};}function cleanUrlParam(_0x547aea){const _0x4dfe9f=_0x56724d,_0x700376=new URL(window['location'][_0x4dfe9f(0x1e1)]);_0x700376[_0x4dfe9f(0x172)][_0x4dfe9f(0x163)](_0x547aea)&&(_0x700376['searchParams']['delete'](_0x547aea),window[_0x4dfe9f(0x188)][_0x4dfe9f(0x15e)](null,document[_0x4dfe9f(0x1b2)],_0x700376[_0x4dfe9f(0x156)]()));}var package_default={'name':_0x56724d(0x194),'version':_0x56724d(0x1d0),'type':_0x56724d(0x1cc),'description':_0x56724d(0x1e0),'license':_0x56724d(0x157),'main':'./dev/index.js','module':_0x56724d(0x1c2),'types':'./dev/index.d.ts','exports':{'.':{'types':'./dev/index.d.ts','import':_0x56724d(0x1c2)},'./vite':{'types':_0x56724d(0x15b),'import':_0x56724d(0x189)}},'files':[_0x56724d(0x1ad)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x56724d(0x1d4),'dev':_0x56724d(0x153),'dev:build':_0x56724d(0x1bf),'dev:staging':_0x56724d(0x132),'dev:staging:build':_0x56724d(0x139),'build':_0x56724d(0x13f),'build:release':_0x56724d(0x141),'build:release:dev':_0x56724d(0x1df),'version':_0x56724d(0x151)},'dependencies':{'commander':_0x56724d(0x14f),'zod':_0x56724d(0x1dd)},'devDependencies':{'@types/node':_0x56724d(0x18c),'javascript-obfuscator':_0x56724d(0x1a2),'tsup':'^8.5.1','vite':_0x56724d(0x1a5)},'publishConfig':{'access':_0x56724d(0x1d6)}},DEFAULT_SERVICE_WORKER_PATH=_0x56724d(0x1d2),DEFAULT_RUNTIME_PATH=_0x56724d(0x1dc),PACKAGE_VERSION=typeof package_default[_0x56724d(0x1cd)]==='string'?package_default[_0x56724d(0x1cd)]:_0x56724d(0x1cb);function normalizeAssetPath(_0x3d97d7){const _0x19b8d6=_0x56724d;if(!_0x3d97d7)return _0x3d97d7;if(_0x3d97d7['startsWith'](_0x19b8d6(0x177))||_0x3d97d7[_0x19b8d6(0x136)](_0x19b8d6(0x1fe)))return _0x3d97d7;const _0x50d354=_0x3d97d7[_0x19b8d6(0x192)](/^\.\//,'');return _0x50d354[_0x19b8d6(0x136)]('/')?_0x50d354:'/'+_0x50d354;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x25a971){const _0x56545e=_0x56724d;return Enhance[_0x56545e(0x1e7)](_0x25a971);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x55326d=_0x56724d;return Enhance2[_0x55326d(0x1c1)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
@@ -1 +1 @@
1
- 'use strict';(function(_0x3c531f,_0x3c4d14){const _0xba315d=_0x7848,_0x4451c3=_0x3c531f();while(!![]){try{const _0x2f54f5=-parseInt(_0xba315d(0x87))/0x1+-parseInt(_0xba315d(0x8a))/0x2+-parseInt(_0xba315d(0x154))/0x3*(-parseInt(_0xba315d(0xbd))/0x4)+-parseInt(_0xba315d(0x15a))/0x5*(parseInt(_0xba315d(0x6f))/0x6)+parseInt(_0xba315d(0xd7))/0x7*(-parseInt(_0xba315d(0x171))/0x8)+-parseInt(_0xba315d(0xe5))/0x9*(parseInt(_0xba315d(0xe8))/0xa)+parseInt(_0xba315d(0xca))/0xb;if(_0x2f54f5===_0x3c4d14)break;else _0x4451c3['push'](_0x4451c3['shift']());}catch(_0x17c421){_0x4451c3['push'](_0x4451c3['shift']());}}}(_0x1737,0x8f83c));function _0x1737(){const _0x5d0b2e=['[Enhance\x20SW]','\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','data','enhancementUrl','url','hit','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','Enhancement\x20miss\x20','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','enhance:disable','font','34252gzTDfg','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20return\x20false;','text','full','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','cache-control','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','content-length','navigate','\x0a</body>','GET','38706217IdRUzP','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','\x20\x20\x20Content-Type:\x20','\x20Config\x20updated:','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','[set]','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','set-cookie','Enhancement\x20fetch\x20failed','623NlDyrM','info','/sw-enhance.js','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','worker-src\x20\x27self\x27\x20blob:','\x20\x20try\x20{','trim','img-src\x20*\x20data:\x20blob:','access-control-allow-origin','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','overlayPath','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','get','47403jzkDsB','media-src\x20*\x20data:\x20blob:','__esModule','970MTGjUA','/webpack-hot-middleware','src','log','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','status','/webpack-hmr','search','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','mode','\x20\x20\x20overlayPath:\x20','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','object','waitUntil','x-enhance-document','follow','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','/@vite/client','permissive','\x20\x20\x20enhancementUrl:\x20','enumerable','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20Stripping\x20SRI\x20attributes...','stylesheet','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\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','\x20shouldRouteAsset:\x20','(async\x20()\x20=>\x20{','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','redirect','publishableKey','\x20\x20\x20Enhancement\x20MISS:\x20','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','has','custom','\x20chars','connect-src\x20*','\x20\x20\x20Rewriting\x20entry\x20references...','production','hash','[not\x20set]','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','type','activate','access-control-allow-credentials','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','securityMode','x-enhance-document-source','/auth/callback','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','message','href','getOwnPropertyDescriptor','pathname','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20}','\x20chars)','set-cookie2',',\x20null,\x202));','/snowpack/hmr','\x20Service\x20Worker\x20loaded','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20Invalid\x20enhancement\x20URL:\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{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','enhancement-document','callbackBypassNormalized','sharedworker','rewritten','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','defineProperty','x-enhance-enhancement','startsWith','none',')\x20-\x20returning\x20null','includes','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','\x20\x20\x20\x20}','\x20\x20\x20securityMode:\x20','\x20Bootstrap\x20options:','Enhancement\x20document\x20fetch\x20failed','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','delete','\x20\x20\x20source:\x20','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','body','claim','\x20\x20\x20\x20\x20\x20}',',\x20type:\x20','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','http://','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','some','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','debug','9VoKysE','location','destination','\x20for\x20','font-src\x20*\x20data:','/webpackhotmiddleware','5eoWaAX','error','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','data-enhance-runtime-bootstrap','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','Enhancement\x20document\x20CORS\x20blocked','\x20\x20\x20\x20\x20\x20\x20\x20}','modulepreload','/parcel-hmr','stringify','\x20FETCH:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','statusText','\x20\x20\x20Not\x20OK\x20(','include','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20Enhancement\x20URL:\x20','/__vite/client','/vite/client','\x20\x20\x20Original\x20HTML\x20length:\x20','/assets/enhance-runtime.js','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','default-src\x20\x27self\x27\x20blob:\x20data:','94976BNMAva','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','fetch','vite-hmr','hasOwnProperty','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','x-enhance-routing','overlay','text/html','\x20\x20\x20shouldInjectOverlay:\x20','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','frame-ancestors\x20','/__vite_ping','test','runtimeScriptPath','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','style','skipWaiting','addEventListener','match','\x0a</head>','object-src\x20\x27none\x27','endsWith','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','cross-origin-embedder-policy','1386114OsdGBu','opaque','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20Enhancement\x20HIT:\x20','replace','headers','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','[Enhance\x20SW\x20Document]','length','\x20rewriteDocument()\x20called','cross-origin-resource-policy','content-type','\x20\x20\x20Document\x20fetch\x20error:','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','/__snowpack__','/__webpack_hmr','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20\x20\x20\x20try\x20{','/__parcel_hmr','\x20\x20\x20\x20\x20\x20','Enhancement\x20document\x20miss\x20','</script>','737473vwHszQ','toString','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','841202VYzWVs','respondWith','X-Enhance-Publishable-Key','https://assets.enhancelabs.ai/overlay.js','overlayEnableViteHmr','clients','callbackBypass','https://','?import','origin','enhance:configure','access-control-expose-headers','(function(){','slice','method','enhancementBase','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','<script\x20data-enhance-hmr-bridge>','join','[Enhance\x20SW\x20Routing]','https://api.enhancelabs.ai','\x20fetchEnhancementDocument:\x20','host','})();','content-security-policy','value','\x20\x20\x20Enhancement\x20document\x20URL:\x20','enhancement','$&\x0a','set','push','toLowerCase','\x20\x20\x20Response:\x20','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','install','\x20\x20\x20BYPASS:\x20','\x20\x20\x20\x20};'];_0x1737=function(){return _0x5d0b2e;};return _0x1737();}function _0x7848(_0x4f0701,_0x2acbaf){_0x4f0701=_0x4f0701-0x65;const _0x17376f=_0x1737();let _0x7848de=_0x17376f[_0x4f0701];return _0x7848de;}var EnhanceSW=((()=>{const _0x411cce=_0x7848;var _0x1f1385=Object[_0x411cce(0x134)],_0x4403d0=Object[_0x411cce(0x11f)],_0x5c5698=Object['getOwnPropertyNames'],_0x423d27=Object['prototype'][_0x411cce(0x175)],_0x2d602c=(_0x5f549c,_0x1ac7ce)=>{for(var _0x39bbea in _0x1ac7ce)_0x1f1385(_0x5f549c,_0x39bbea,{'get':_0x1ac7ce[_0x39bbea],'enumerable':!![]});},_0x3664ac=(_0x20c603,_0x142eb7,_0x43be55,_0x2f742b)=>{const _0x56435e=_0x411cce;if(_0x142eb7&&typeof _0x142eb7===_0x56435e(0xf5)||typeof _0x142eb7==='function'){for(let _0x4ba2b4 of _0x5c5698(_0x142eb7))if(!_0x423d27['call'](_0x20c603,_0x4ba2b4)&&_0x4ba2b4!==_0x43be55)_0x1f1385(_0x20c603,_0x4ba2b4,{'get':()=>_0x142eb7[_0x4ba2b4],'enumerable':!(_0x2f742b=_0x4403d0(_0x142eb7,_0x4ba2b4))||_0x2f742b[_0x56435e(0xfe)]});}return _0x20c603;},_0x3086df=_0x4a01d7=>_0x3664ac(_0x1f1385({},_0x411cce(0xe7),{'value':!![]}),_0x4a01d7),_0x2110d6={};_0x2d602c(_0x2110d6,{'log':()=>_0x1c8fdd});var _0x476fa2=_0x411cce(0x94),_0x583d18=_0x411cce(0xbb);function _0x3184d5(_0x206387){if(!_0x206387['startsWith']('/'))return'/'+_0x206387;return _0x206387;}function _0x202b6c(_0x176a6b,_0x3698e9){const _0x2fd17e=_0x411cce,_0x35fbdc=new URL(_0x176a6b['toString']()),_0x83c710=_0x35fbdc['pathname'][_0x2fd17e(0x6c)]('/')?_0x35fbdc['pathname'][_0x2fd17e(0x97)](0x0,-0x1):_0x35fbdc[_0x2fd17e(0x120)],_0x46460b=_0x3698e9[_0x2fd17e(0x120)][_0x2fd17e(0x136)]('/')?_0x3698e9[_0x2fd17e(0x120)]:'/'+_0x3698e9[_0x2fd17e(0x120)];return _0x35fbdc[_0x2fd17e(0x120)]=(''+_0x83c710+_0x46460b)[_0x2fd17e(0x73)](/\/+/g,'/'),_0x35fbdc[_0x2fd17e(0xef)]=_0x3698e9[_0x2fd17e(0xef)],_0x35fbdc[_0x2fd17e(0x112)]='',_0x35fbdc;}var _0x49284f=_0x411cce(0x9d),_0x47f744=_0x411cce(0x8c),_0x170eb5=new Set(['script',_0x411cce(0x66),_0x411cce(0xbc),'image','worker',_0x411cce(0x12f),_0x411cce(0x161)]);function _0x249bf5(_0x57764c){const _0x2d5758=_0x411cce,_0x389c3c=_0x57764c[_0x2d5758(0x98)]===_0x2d5758(0xc9)||_0x57764c['method']==='HEAD';return _0x389c3c;}function _0x53dd86(_0x335732,_0x2d5965){const _0x2ae746=_0x411cce,_0x3e146e=_0x3184d5(_0x2d5965),_0x2bc5c3=_0x335732[_0x2ae746(0x12e)][_0x2ae746(0x151)](_0x25a78b=>_0x3e146e[_0x2ae746(0x136)](_0x25a78b));return _0x2bc5c3;}function _0x4c0212(_0x4012e1,_0xc2daf,_0x5a10bc){const _0x5c488b=_0x411cce,_0x50aa2e=_0xc2daf[_0x5c488b(0x156)];if(!_0x50aa2e||!_0x170eb5[_0x5c488b(0x10c)](_0x50aa2e))return![];if(_0x2fe15b(_0x4012e1,_0x5a10bc))return console[_0x5c488b(0xeb)](_0x49284f+_0x5c488b(0x105)+_0x5a10bc['pathname']+_0x5c488b(0x103)),![];if(_0x5a9e28(_0x4012e1,_0x5a10bc))return console[_0x5c488b(0xeb)](_0x49284f+_0x5c488b(0x105)+_0x5a10bc[_0x5c488b(0x120)]+_0x5c488b(0x16f)),![];if(_0x5a10bc['origin']!==self[_0x5c488b(0x155)][_0x5c488b(0x93)])return![];return!![];}async function _0x562a05(_0x220a62,_0x5ca763,_0x32e33d){const _0x1e7a5=_0x411cce;console[_0x1e7a5(0xeb)](_0x49284f+'\x20fetchFromEnhancement:\x20'+_0x32e33d[_0x1e7a5(0x120)]);if(!_0x220a62[_0x1e7a5(0x99)])return console[_0x1e7a5(0xeb)](_0x49284f+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping'),null;const _0x349f5b=_0x2286dd(_0x220a62,_0x32e33d);console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0x16a)+_0x349f5b[_0x1e7a5(0x88)]());const _0x543bb4=new Headers(_0x5ca763[_0x1e7a5(0x74)]);_0x543bb4[_0x1e7a5(0xa7)](_0x1e7a5(0x177),_0x1e7a5(0xa5)),_0x543bb4['delete'](_0x1e7a5(0xa0));_0x220a62[_0x1e7a5(0x109)]&&_0x543bb4[_0x1e7a5(0xa7)](_0x47f744,_0x220a62['publishableKey']);const _0x588424=new Request(_0x349f5b[_0x1e7a5(0x88)](),{'method':_0x5ca763[_0x1e7a5(0x98)],'headers':_0x543bb4,'credentials':'include','redirect':_0x5ca763[_0x1e7a5(0x108)],'cache':'default','mode':'cors'});try{console['log'](_0x49284f+'\x20\x20\x20Fetching\x20from\x20enhancement...');const _0x510027=await fetch(_0x588424);console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0xaa)+_0x510027['status']+'\x20'+_0x510027[_0x1e7a5(0x166)]+_0x1e7a5(0x14d)+_0x510027[_0x1e7a5(0x115)]);if(_0x510027[_0x1e7a5(0x115)]===_0x1e7a5(0x70))return console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0xb8)),_0x1c8fdd(_0x1e7a5(0xd8),'Enhancement\x20CORS\x20blocked',_0x349f5b[_0x1e7a5(0x88)]()),null;if(!_0x510027['ok'])return console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0x167)+_0x510027['status']+_0x1e7a5(0x138)),_0x1c8fdd(_0x1e7a5(0x153),_0x1e7a5(0xb9)+_0x510027['status']+'\x20for\x20'+_0x349f5b[_0x1e7a5(0x120)]),null;return console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0x13c)),_0x112377(_0x510027,_0x5ca763[_0x1e7a5(0x98)]);}catch(_0x173f06){return console[_0x1e7a5(0x15b)](_0x49284f+'\x20\x20\x20Fetch\x20error:',_0x173f06),_0x1c8fdd(_0x1e7a5(0xd8),_0x1e7a5(0xd6),_0x173f06),null;}}async function _0x685c7(_0x5173b8,_0x4a12f0){const _0x5e0524=_0x411cce,_0x280fe7=new URL(_0x4a12f0[_0x5e0524(0xb5)]);console['log'](_0x49284f+_0x5e0524(0x9f)+_0x280fe7['pathname']+_0x280fe7['search']);if(!_0x5173b8[_0x5e0524(0x99)])return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0x181)),null;const _0x5e3322=_0x2286dd(_0x5173b8,_0x280fe7);console['log'](_0x49284f+_0x5e0524(0xa4)+_0x5e3322[_0x5e0524(0x88)]());const _0x4a79f2=new Headers(_0x4a12f0[_0x5e0524(0x74)]);_0x4a79f2[_0x5e0524(0xa7)](_0x5e0524(0x177),_0x5e0524(0x12d)),_0x4a79f2['delete']('host'),_0x4a79f2[_0x5e0524(0x142)](_0x5e0524(0xc6));_0x5173b8[_0x5e0524(0x109)]&&_0x4a79f2[_0x5e0524(0xa7)](_0x47f744,_0x5173b8[_0x5e0524(0x109)]);const _0x58ba5f=new Request(_0x5e3322['toString'](),{'method':'GET','headers':_0x4a79f2,'credentials':_0x5e0524(0x168),'redirect':_0x5e0524(0xf8),'cache':'default','mode':'cors'});try{console[_0x5e0524(0xeb)](_0x49284f+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x409ea8=await fetch(_0x58ba5f);console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0xaa)+_0x409ea8[_0x5e0524(0xed)]+'\x20'+_0x409ea8['statusText']+',\x20type:\x20'+_0x409ea8[_0x5e0524(0x115)]),console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0xcf)+_0x409ea8[_0x5e0524(0x74)][_0x5e0524(0xe4)](_0x5e0524(0x7b)));if(_0x409ea8[_0x5e0524(0x115)]===_0x5e0524(0x70))return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0xb8)),_0x1c8fdd('info',_0x5e0524(0x15f),_0x5e3322[_0x5e0524(0x88)]()),null;if(!_0x409ea8['ok'])return console['log'](_0x49284f+_0x5e0524(0x167)+_0x409ea8[_0x5e0524(0xed)]+')\x20-\x20returning\x20null'),_0x1c8fdd(_0x5e0524(0x153),_0x5e0524(0x85)+_0x409ea8[_0x5e0524(0xed)]+_0x5e0524(0x157)+_0x5e3322[_0x5e0524(0x120)]),null;if(!_0x3902ad(_0x409ea8))return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0x172)),null;return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0x10b)),_0x112377(_0x409ea8,'GET');}catch(_0x25be57){return console[_0x5e0524(0x15b)](_0x49284f+_0x5e0524(0x7c),_0x25be57),_0x1c8fdd(_0x5e0524(0xd8),_0x5e0524(0x140),_0x25be57),null;}}function _0x2286dd(_0x309603,_0x4cb00f){const _0x550c0e=_0x411cce;if(!_0x309603[_0x550c0e(0x99)])throw new Error(_0x550c0e(0x75));return _0x202b6c(_0x309603[_0x550c0e(0x99)],_0x4cb00f);}function _0x112377(_0x1331e5,_0xedd9c9){const _0x5ebe19=_0x411cce,_0x2873f4=_0x1331e5['clone'](),_0x429983=new Headers(_0x2873f4[_0x5ebe19(0x74)]);_0x429983[_0x5ebe19(0x142)](_0x5ebe19(0xdf)),_0x429983[_0x5ebe19(0x142)](_0x5ebe19(0x117)),_0x429983[_0x5ebe19(0x142)](_0x5ebe19(0x95)),_0x429983[_0x5ebe19(0xa7)](_0x5ebe19(0x135),_0x5ebe19(0xb6)),_0x2d3726(_0x429983);const _0x4a6e7f=_0xedd9c9==='HEAD'?null:_0x2873f4[_0x5ebe19(0x14a)];return new Response(_0x4a6e7f,{'status':_0x2873f4[_0x5ebe19(0xed)],'statusText':_0x2873f4['statusText'],'headers':_0x429983});}function _0x3902ad(_0x2afa55){const _0x39cdd9=_0x411cce,_0x2c3905=_0x2afa55[_0x39cdd9(0x74)][_0x39cdd9(0xe4)]('content-type');return _0x2c3905!=null&&_0x2c3905[_0x39cdd9(0x139)](_0x39cdd9(0x179));}function _0x2fe15b(_0x32ca95,_0xa3dc33){return _0x2ae685(_0xa3dc33,_0x32ca95['overlayPath']);}function _0x5a9e28(_0x4a1f2a,_0x2621a5){const _0x255d88=_0x411cce;return _0x103a8c(_0x2621a5,_0x4a1f2a[_0x255d88(0x180)]);}function _0x2ae685(_0x5cf0f9,_0x5b4167){const _0x40b295=_0x411cce;if(!_0x5b4167)return![];if(_0x5b4167[_0x40b295(0x136)]('http://')||_0x5b4167['startsWith'](_0x40b295(0x91)))return _0x5cf0f9[_0x40b295(0x11e)]===_0x5b4167;const _0x32d4c1=_0x13399a(_0x5b4167);if(!_0x32d4c1)return![];const _0x55a857=''+_0x5cf0f9['pathname']+_0x5cf0f9[_0x40b295(0xef)];if(_0x55a857===_0x32d4c1)return!![];if(_0x5cf0f9[_0x40b295(0xef)]===_0x40b295(0x92))return _0x5cf0f9[_0x40b295(0x120)]===_0x32d4c1;return![];}function _0x103a8c(_0x48166f,_0x4ed233){const _0x50c8f6=_0x411cce;if(!_0x4ed233)return![];if(_0x4ed233[_0x50c8f6(0x136)](_0x50c8f6(0x14f))||_0x4ed233[_0x50c8f6(0x136)](_0x50c8f6(0x91)))return _0x48166f[_0x50c8f6(0x11e)]===_0x4ed233;const _0x427303=_0x13399a(_0x4ed233);if(!_0x427303)return![];const _0x3265d9=''+_0x48166f['pathname']+_0x48166f[_0x50c8f6(0xef)];return _0x3265d9===_0x427303;}function _0x13399a(_0x2f20eb){const _0x73e9f8=_0x411cce;if(!_0x2f20eb)return _0x2f20eb;if(_0x2f20eb[_0x73e9f8(0x136)](_0x73e9f8(0x14f))||_0x2f20eb[_0x73e9f8(0x136)]('https://'))return _0x2f20eb;const _0x14ae00=_0x2f20eb[_0x73e9f8(0x73)](/^\.\//,'');if(_0x14ae00[_0x73e9f8(0x136)]('/'))return _0x14ae00;return'/'+_0x14ae00;}function _0x2d3726(_0x5c1076){const _0x58d31a=_0x411cce;_0x5c1076['delete'](_0x58d31a(0xd5)),_0x5c1076['delete'](_0x58d31a(0x124));}function _0x5b3321(_0x13c3e6){const _0x20b7dc=_0x411cce,_0xb3d853=[_0x20b7dc(0x170),_0x20b7dc(0xe3),'style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:',_0x20b7dc(0xde),_0x20b7dc(0x158),_0x20b7dc(0x10f),_0x20b7dc(0xe6),_0x20b7dc(0xdb),_0x20b7dc(0x6b)],_0x300749=_0x1578d4(_0x13c3e6);return _0x300749&&_0xb3d853[_0x20b7dc(0xa8)](_0x300749),_0xb3d853[_0x20b7dc(0x9c)](';\x20');}function _0x4bbb6a(_0xfd2f2d){const _0x389cbd=_0x411cce;_0xfd2f2d[_0x389cbd(0x142)](_0x389cbd(0xd5)),_0xfd2f2d['delete'](_0x389cbd(0x124));}function _0x1578d4(_0x3be21d){const _0x393dee=_0x411cce;if(!_0x3be21d)return null;const _0x54da07=_0x3be21d[_0x393dee(0x69)](/frame-ancestors\s+([^;]+)/i);if(!_0x54da07)return null;return _0x393dee(0x17d)+_0x54da07[0x1][_0x393dee(0xdd)]();}function _0x586591(_0xa91027,_0x36e718){const _0x5e8db6=_0x411cce;if(/<head[^>]*>/i['test'](_0xa91027)){const _0x53d74b=_0xa91027[_0x5e8db6(0x69)](/<head[^>]*>/i);if(_0x53d74b){const _0x16d5bf=_0x53d74b[0x0];return _0xa91027[_0x5e8db6(0x73)](_0x16d5bf,_0x16d5bf+'\x0a'+_0x36e718);}}if(/<\/head>/i[_0x5e8db6(0x17f)](_0xa91027))return _0xa91027[_0x5e8db6(0x73)](/<\/head>/i,_0x36e718+_0x5e8db6(0x6a));if(/<body\b[^>]*>/i['test'](_0xa91027))return _0xa91027[_0x5e8db6(0x73)](/<body\b[^>]*>/i,_0x5e8db6(0xa6)+_0x36e718);if(/<\/body>/i['test'](_0xa91027))return _0xa91027[_0x5e8db6(0x73)](/<\/body>/i,_0x36e718+_0x5e8db6(0xc8));return _0x36e718+'\x0a'+_0xa91027;}var _0x14dd6e=[_0x411cce(0x174)],_0x2109a5=[_0x411cce(0xfb),_0x411cce(0x16b),_0x411cce(0x16c),_0x411cce(0x17e),'/sockjs-node','/webpack-dev-server',_0x411cce(0xee),_0x411cce(0x159),_0x411cce(0xe9),_0x411cce(0x7f),'/_next/webpack-hmr',_0x411cce(0x162),_0x411cce(0x83),_0x411cce(0x7e),_0x411cce(0x126)];function _0x45f788(_0x212e99,_0x31329f){const _0xfc4ef3=_0xa65508(_0x212e99);if(!_0xfc4ef3)return _0x31329f;return _0x586591(_0x31329f,_0xfc4ef3);}function _0xa65508(_0x5136d3){const _0x564a3c=_0x411cce;if(!_0x5136d3['enhancementBase'])return null;const _0x3d54b3=_0x5136d3[_0x564a3c(0x99)][_0x564a3c(0x88)](),_0x21a79c=_0x443112(_0x14dd6e),_0x7a1924=_0x443112(_0x2109a5),_0x3318b5=[_0x564a3c(0x9b),_0x564a3c(0x96),_0x564a3c(0xdc),_0x564a3c(0x7d)+JSON[_0x564a3c(0x163)](_0x3d54b3)+');',_0x564a3c(0x80),_0x564a3c(0xec),_0x564a3c(0xbe),_0x564a3c(0x13d),_0x564a3c(0x141)+JSON[_0x564a3c(0x163)](_0x21a79c)+');',_0x564a3c(0x118)+JSON[_0x564a3c(0x163)](_0x7a1924)+';','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0x564a3c(0xba),_0x564a3c(0xf4),'\x20\x20\x20\x20};',_0x564a3c(0x114),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);',_0x564a3c(0xac),_0x564a3c(0x84),_0x564a3c(0x11c),_0x564a3c(0x84),_0x564a3c(0x12a),_0x564a3c(0x12b),_0x564a3c(0xf1),_0x564a3c(0x14c),'\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\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];',_0x564a3c(0xf9),_0x564a3c(0x146),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x564a3c(0x14c),_0x564a3c(0xb2),_0x564a3c(0x169),_0x564a3c(0xd2),_0x564a3c(0x146),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}',_0x564a3c(0xbf),_0x564a3c(0xaf),'\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{',_0x564a3c(0xc4),_0x564a3c(0x15e),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',_0x564a3c(0x133),_0x564a3c(0x128),'\x20\x20\x20\x20};',_0x564a3c(0x76),_0x564a3c(0x82),_0x564a3c(0x14e),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{',_0x564a3c(0x150),_0x564a3c(0xcc),_0x564a3c(0x160),_0x564a3c(0x144),_0x564a3c(0xce),_0x564a3c(0x14c),'\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);',_0x564a3c(0xaf),_0x564a3c(0xff),_0x564a3c(0x13a),'\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);',_0x564a3c(0xb1),_0x564a3c(0xe0),'\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x564a3c(0xf0),_0x564a3c(0x13d),_0x564a3c(0x100),_0x564a3c(0x121),_0x564a3c(0xcd),_0x564a3c(0x17c),_0x564a3c(0x122),_0x564a3c(0xa1),_0x564a3c(0x86)];return _0x3318b5[_0x564a3c(0x9c)]('\x0a');}function _0x443112(_0x1b46f1){const _0x3ab909=new Set(),_0x37066a=[];for(const _0x1ad289 of _0x1b46f1){const _0x8de40f=_0x1ad289['toLowerCase']();if(_0x3ab909['has'](_0x8de40f))continue;_0x3ab909['add'](_0x8de40f),_0x37066a['push'](_0x8de40f);}return _0x37066a;}var _0xe82fd6=_0x411cce(0x147);function _0x1c01c4(_0xb5c6e9,_0x50fc78){const _0x510198=_0x411cce;console[_0x510198(0xeb)](_0xe82fd6+'\x20injectRuntimeBootstrap()\x20called'),console[_0x510198(0xeb)](_0xe82fd6+'\x20\x20\x20runtimeScriptPath:\x20'+_0xb5c6e9[_0x510198(0x180)]),console[_0x510198(0xeb)](_0xe82fd6+_0x510198(0xf3)+_0xb5c6e9[_0x510198(0xe1)]);if(_0x50fc78[_0x510198(0x139)](_0x510198(0x15d)))return console['log'](_0xe82fd6+'\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it'),_0x50fc78;const _0x18dda5=_0x4fbd59(_0xb5c6e9);if(!_0x18dda5)return console[_0x510198(0xeb)](_0xe82fd6+_0x510198(0xda)),_0x50fc78;console[_0x510198(0xeb)](_0xe82fd6+'\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20('+_0x18dda5[_0x510198(0x78)]+_0x510198(0x123));const _0x1e7e37=_0x586591(_0x50fc78,_0x18dda5);return console['log'](_0xe82fd6+_0x510198(0x132)),_0x1e7e37;}function _0x4fbd59(_0x48aa4e){const _0x6e122c=_0x411cce,_0x38837b=_0x48aa4e['runtimeScriptPath'];if(!_0x38837b)return console[_0x6e122c(0xeb)](_0xe82fd6+_0x6e122c(0x107)),null;const _0x2afd84=_0x2690a0(_0x48aa4e);console[_0x6e122c(0xeb)](_0xe82fd6+_0x6e122c(0x13f),JSON[_0x6e122c(0x163)](_0x2afd84,null,0x2));const _0x1ce4e0=_0x3a9dab(_0x2afd84),_0x43134d=JSON[_0x6e122c(0x163)](_0x38837b),_0x327436=[_0x6e122c(0x9a),_0x6e122c(0x106),_0x6e122c(0xdc),_0x6e122c(0x89)+_0x43134d+';',_0x6e122c(0x165),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);',_0x6e122c(0x71),_0x6e122c(0xc5),_0x6e122c(0x81),_0x6e122c(0x152),_0x6e122c(0x176),_0x6e122c(0xd4),_0x6e122c(0xbe),_0x6e122c(0x13d),_0x6e122c(0x12c)+_0x1ce4e0+_0x6e122c(0x125),'\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init('+_0x1ce4e0+');',_0x6e122c(0x6d),_0x6e122c(0xd1),_0x6e122c(0xab),_0x6e122c(0xb7),_0x6e122c(0x104),_0x6e122c(0x17b),'\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;',_0x6e122c(0xcb),_0x6e122c(0x13d),_0x6e122c(0x148),'\x20\x20}\x20catch\x20(error)\x20{',_0x6e122c(0x65),'\x20\x20}',_0x6e122c(0xa1),'</script>'];return _0x327436[_0x6e122c(0x9c)]('\x0a');}function _0x2690a0(_0x41e5cd){const _0x26ce8e=_0x411cce,_0x46a684={'publishableKey':_0x41e5cd[_0x26ce8e(0x109)],'callbackBypass':_0x41e5cd[_0x26ce8e(0x90)],'__development':{'enableOverlayHmr':_0x41e5cd[_0x26ce8e(0x8e)],'overlayPath':_0x41e5cd[_0x26ce8e(0xe1)],'security':_0x41e5cd['securityMode'],'backendUrl':_0x41e5cd['backendUrl']}};return _0x46a684;}function _0x3a9dab(_0x5dc1f5){const _0x495c2d=_0x411cce;return JSON[_0x495c2d(0x163)](_0x5dc1f5)[_0x495c2d(0x73)](/</g,'\x5cu003c')[_0x495c2d(0x73)](/>/g,'\x5cu003e');}function _0xf6c8a7(_0x1c2971,_0x946788){const _0x125e67=_0x411cce,_0x425edd=_0x26cd62=>_0x133210(_0x1c2971,_0x26cd62),_0x4b7d68=_0x573720=>_0x237612(_0x1c2971,_0x573720);return _0x946788['replace'](/<script\b[^>]*>/gi,_0x425edd)[_0x125e67(0x73)](/<link\b[^>]*>/gi,_0x4b7d68);}function _0x23c4cf(_0x1b1646){const _0x2b9f1e=_0x411cce;return _0x1b1646[_0x2b9f1e(0x73)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x133210(_0x413d3a,_0x275a10){const _0x315baf=_0x411cce,_0x145b2f=_0x119511(_0x275a10,_0x315baf(0xea));if(!_0x145b2f)return _0x275a10;const _0xde4ca9=_0x376e01(_0x413d3a,_0x145b2f[_0x315baf(0xa3)]);if(!_0xde4ca9||_0xde4ca9===_0x145b2f[_0x315baf(0xa3)])return _0x275a10;const _0x4ebf23=_0x145b2f[_0x315baf(0xc1)]['replace'](_0x145b2f[_0x315baf(0xa3)],_0xde4ca9);return _0x275a10[_0x315baf(0x73)](_0x145b2f[_0x315baf(0xc1)],_0x4ebf23);}function _0x237612(_0x22182d,_0x5c919c){const _0x570ab9=_0x411cce,_0xe5bbc3=_0x5c919c[_0x570ab9(0x69)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0xe5bbc3)return _0x5c919c;const _0x216fce=_0xe5bbc3[0x2][_0x570ab9(0xa9)]();if(_0x216fce!==_0x570ab9(0x102)&&_0x216fce!==_0x570ab9(0x161))return _0x5c919c;const _0x396aa9=_0x119511(_0x5c919c,'href');if(!_0x396aa9)return _0x5c919c;const _0x339916=_0x376e01(_0x22182d,_0x396aa9[_0x570ab9(0xa3)]);if(!_0x339916||_0x339916===_0x396aa9['value'])return _0x5c919c;const _0x510811=_0x396aa9[_0x570ab9(0xc1)][_0x570ab9(0x73)](_0x396aa9['value'],_0x339916);return _0x5c919c[_0x570ab9(0x73)](_0x396aa9[_0x570ab9(0xc1)],_0x510811);}function _0x119511(_0x5efae9,_0x530c3f){const _0x42d23c=_0x411cce,_0x31e549=new RegExp(_0x530c3f+_0x42d23c(0xc2),'i'),_0x37b269=_0x5efae9['match'](_0x31e549);if(!_0x37b269)return null;return{'full':_0x37b269[0x0],'value':_0x37b269[0x2]};}function _0x376e01(_0x58361b,_0x21e7ad){const _0x56fee3=_0x411cce,_0x149c27=_0x525fa4(_0x21e7ad);if(!_0x149c27)return null;if(_0x149c27[_0x56fee3(0x93)]===self['location'][_0x56fee3(0x93)])return''+_0x149c27['pathname']+_0x149c27[_0x56fee3(0xef)];return null;}function _0x525fa4(_0x4a1c6e){const _0x1e2f1c=_0x411cce;try{return new URL(_0x4a1c6e,self[_0x1e2f1c(0x155)][_0x1e2f1c(0x93)]);}catch{return null;}}var _0x121bf6=_0x411cce(0x77);async function _0x1fb3c8(_0x1cb48c,_0x27c436,_0x547a0a,_0x5cd1b5=!![]){const _0x24d173=_0x411cce;console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x79)),console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x143)+_0x547a0a),console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x17a)+_0x5cd1b5),console['log'](_0x121bf6+_0x24d173(0x13e)+_0x1cb48c[_0x24d173(0x119)]);const _0x44840d=_0x27c436['clone'](),_0x29f675=await _0x44840d[_0x24d173(0xc0)]();console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x16d)+_0x29f675[_0x24d173(0x78)]+_0x24d173(0x10e)),console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x101));const _0x57b748=_0x23c4cf(_0x29f675);console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x110));let _0x2091b0=_0xf6c8a7(_0x1cb48c,_0x57b748);_0x547a0a===_0x24d173(0xa5)?(console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x13b)),_0x2091b0=_0x45f788(_0x1cb48c,_0x2091b0)):console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x15c));_0x5cd1b5?(console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0xfa)),_0x2091b0=_0x1c01c4(_0x1cb48c,_0x2091b0)):console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x145));console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x149)+_0x2091b0['length']+_0x24d173(0x10e));const _0x4b44a7=new Headers(_0x44840d[_0x24d173(0x74)]);_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0xc3),'no-store'),_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0xf7),_0x24d173(0x130)),_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0x11a),_0x547a0a),_0x4bbb6a(_0x4b44a7);if(_0x1cb48c[_0x24d173(0x119)]!==_0x24d173(0x10d)){console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x131));const _0x3bafad=_0x4b44a7['get'](_0x24d173(0xa2));_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0xa2),_0x5b3321(_0x3bafad)),_0x4b44a7[_0x24d173(0x142)]('cross-origin-opener-policy'),_0x4b44a7[_0x24d173(0x142)](_0x24d173(0x6e)),_0x4b44a7['delete'](_0x24d173(0x7a));}else console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0xe2));return console['log'](_0x121bf6+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x2091b0,{'status':_0x44840d[_0x24d173(0xed)],'statusText':_0x44840d[_0x24d173(0x166)],'headers':_0x4b44a7});}var _0x3df82e=_0x411cce(0xb0);console[_0x411cce(0xeb)](_0x3df82e+_0x411cce(0x127));var _0x7c0eb5={'overlayPath':_0x411cce(0x8d),'backendUrl':_0x411cce(0x9e),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x411cce(0x16e),'swPath':_0x411cce(0xd9)},_0x6d3fc1={'publishableKey':'','callbackBypass':[_0x411cce(0x11b)],'securityMode':_0x411cce(0xfc),'enhancementUrl':null,'enhancementBase':null};function _0x13448e(){const _0x43516c=_0x411cce;return{..._0x7c0eb5,'publishableKey':_0x6d3fc1['publishableKey'],'enhancementUrl':_0x6d3fc1['enhancementUrl']??'','enhancementBase':_0x6d3fc1[_0x43516c(0x99)],'callbackBypass':_0x6d3fc1[_0x43516c(0x90)],'callbackBypassNormalized':_0x6d3fc1['callbackBypass']['map'](_0x34a29e=>_0x34a29e[_0x43516c(0x136)]('/')?_0x34a29e:'/'+_0x34a29e),'securityMode':_0x6d3fc1[_0x43516c(0x119)]};}function _0x1c8fdd(_0x4e7f0a,_0x4b831b,..._0x3f8291){const _0x10624e=_0x411cce;_0x4e7f0a===_0x10624e(0xd8)?console[_0x10624e(0xd8)](_0x3df82e,_0x4b831b,..._0x3f8291):console['debug'](_0x3df82e,_0x4b831b,..._0x3f8291);}self['addEventListener'](_0x411cce(0xad),_0x582b9=>{const _0x407dfc=_0x411cce;console[_0x407dfc(0xeb)](_0x3df82e+'\x20INSTALL'),_0x582b9[_0x407dfc(0xf6)](self[_0x407dfc(0x67)]());}),self[_0x411cce(0x68)](_0x411cce(0x116),_0x7cb325=>{const _0x40da5b=_0x411cce;console[_0x40da5b(0xeb)](_0x3df82e+'\x20ACTIVATE'),_0x7cb325['waitUntil'](self[_0x40da5b(0x8f)][_0x40da5b(0x14b)]());}),self[_0x411cce(0x68)](_0x411cce(0x11d),_0x2ad262=>{const _0x30a34b=_0x411cce,_0xe9f57=_0x2ad262[_0x30a34b(0xb3)];if(!_0xe9f57||typeof _0xe9f57!==_0x30a34b(0xf5))return;switch(_0xe9f57['type']){case _0x476fa2:{console[_0x30a34b(0xeb)](_0x3df82e+'\x20CONFIG\x20received');const _0x36bb7f=_0xe9f57['config'];_0x6d3fc1[_0x30a34b(0x109)]=_0x36bb7f[_0x30a34b(0x109)]??'',_0x6d3fc1[_0x30a34b(0x90)]=_0x36bb7f[_0x30a34b(0x90)]??['/auth/callback'],_0x6d3fc1[_0x30a34b(0x119)]=_0x36bb7f['securityMode']??_0x30a34b(0xfc);if(_0x36bb7f[_0x30a34b(0xb4)]){_0x6d3fc1[_0x30a34b(0xb4)]=_0x36bb7f['enhancementUrl'];try{_0x6d3fc1[_0x30a34b(0x99)]=new URL(_0x36bb7f[_0x30a34b(0xb4)]);}catch{console[_0x30a34b(0x15b)](_0x3df82e+_0x30a34b(0x129)+_0x36bb7f[_0x30a34b(0xb4)]),_0x6d3fc1[_0x30a34b(0x99)]=null;}}else _0x6d3fc1[_0x30a34b(0xb4)]=null,_0x6d3fc1['enhancementBase']=null;console[_0x30a34b(0xeb)](_0x3df82e+_0x30a34b(0xd0),{'publishableKey':_0x6d3fc1[_0x30a34b(0x109)]?_0x30a34b(0xd3):_0x30a34b(0x113),'enhancementUrl':_0x6d3fc1[_0x30a34b(0xb4)]??_0x30a34b(0x137)});break;}case _0x583d18:console['log'](_0x3df82e+'\x20DISABLE\x20received\x20-\x20resetting\x20config'),_0x6d3fc1={'publishableKey':'','callbackBypass':[_0x30a34b(0x11b)],'securityMode':'permissive','enhancementUrl':null,'enhancementBase':null};break;}}),self['addEventListener'](_0x411cce(0x173),_0x4eece1=>{const _0x1bf366=_0x411cce,_0x57abec=new URL(_0x4eece1['request'][_0x1bf366(0xb5)]);if(_0x57abec['origin']!==self[_0x1bf366(0x155)][_0x1bf366(0x93)])return;_0x4eece1[_0x1bf366(0x8b)](_0x3662f5(_0x4eece1));});async function _0x3662f5(_0x58e7c3){const _0x216bef=_0x411cce,{request:_0x255a85}=_0x58e7c3,_0x3d76e4=new URL(_0x255a85[_0x216bef(0xb5)]),_0x5299f3=_0x255a85[_0x216bef(0xf2)]===_0x216bef(0xc7);console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0x164)+_0x255a85[_0x216bef(0x98)]+'\x20'+_0x3d76e4['pathname']+_0x3d76e4['search']+'\x20('+_0x255a85[_0x216bef(0xf2)]+')');if(!_0x249bf5(_0x255a85))return fetch(_0x255a85);const _0x566921=_0x13448e();console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0xfd)+(_0x566921['enhancementUrl']||'none'));if(_0x53dd86(_0x566921,_0x3d76e4[_0x216bef(0x120)]))return console['log'](_0x3df82e+_0x216bef(0xae)+_0x3d76e4[_0x216bef(0x120)]),fetch(_0x255a85);if(_0x5299f3)return _0x5aee2a(_0x255a85,_0x566921);if(!_0x4c0212(_0x566921,_0x255a85,_0x3d76e4))return fetch(_0x255a85);const _0x5c7993=await _0x562a05(_0x566921,_0x255a85,_0x3d76e4);if(_0x5c7993)return console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0x72)+_0x3d76e4[_0x216bef(0x120)]),_0x5c7993;return console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0x10a)+_0x3d76e4[_0x216bef(0x120)]),fetch(_0x255a85);}async function _0x5aee2a(_0xc3523f,_0x3ccd76){const _0x2951a9=_0x411cce,_0x543a9c=new URL(_0xc3523f[_0x2951a9(0xb5)]);console[_0x2951a9(0xeb)](_0x3df82e+'\x20Navigation:\x20'+_0x543a9c[_0x2951a9(0x120)]+_0x543a9c[_0x2951a9(0xef)]);const _0x1bcb16=await fetch(_0xc3523f);if(!_0x3902ad(_0x1bcb16))return _0x1bcb16;const _0x2d48d5=_0x112377(_0x1bcb16,_0x2951a9(0xc9)),_0x185a3e=await _0x685c7(_0x3ccd76,_0xc3523f),_0x445fd5=_0x185a3e?_0x2951a9(0xa5):_0x2951a9(0x111),_0x53a899=_0x185a3e??_0x2d48d5,_0x34b8a4=_0x445fd5==='enhancement'||_0x543a9c['searchParams'][_0x2951a9(0x10c)](_0x2951a9(0x178))||_0x543a9c['searchParams'][_0x2951a9(0x10c)]('enhancement');try{return await _0x1fb3c8(_0x3ccd76,_0x53a899,_0x445fd5,_0x34b8a4);}catch(_0x4f335a){return console[_0x2951a9(0x15b)](_0x3df82e+'\x20Document\x20rewrite\x20failed:',_0x4f335a),_0x53a899;}}return _0x3086df(_0x2110d6);})());
1
+ 'use strict';(function(_0x5a73c6,_0x498f78){const _0x56c60e=_0x5a1a,_0x8f0374=_0x5a73c6();while(!![]){try{const _0x25c80a=-parseInt(_0x56c60e(0x1f9))/0x1*(-parseInt(_0x56c60e(0x1f1))/0x2)+parseInt(_0x56c60e(0x16f))/0x3*(parseInt(_0x56c60e(0x159))/0x4)+-parseInt(_0x56c60e(0x10e))/0x5+-parseInt(_0x56c60e(0x107))/0x6+parseInt(_0x56c60e(0x173))/0x7*(-parseInt(_0x56c60e(0xd7))/0x8)+-parseInt(_0x56c60e(0x155))/0x9*(-parseInt(_0x56c60e(0x147))/0xa)+parseInt(_0x56c60e(0x102))/0xb*(-parseInt(_0x56c60e(0x1f5))/0xc);if(_0x25c80a===_0x498f78)break;else _0x8f0374['push'](_0x8f0374['shift']());}catch(_0x31ab5f){_0x8f0374['push'](_0x8f0374['shift']());}}}(_0x5ec7,0x3d8b7));function _0x5a1a(_0x6b9c87,_0x16c607){_0x6b9c87=_0x6b9c87-0xce;const _0x5ec7aa=_0x5ec7();let _0x5a1a03=_0x5ec7aa[_0x6b9c87];return _0x5a1a03;}function _0x5ec7(){const _0x2ae4b5=['statusText','origin','host','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','join','(async\x20()\x20=>\x20{','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','x-enhance-document-source','overlay','\x20\x20\x20\x20\x20\x20}','GET','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','config','connect-src\x20*','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','toISOString','custom','})();','get','\x20injectRuntimeBootstrap()\x20called','map','body','rewritten','request','\x20\x20\x20\x20\x20\x20','enumerable','has','publishableKey','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','style','\x20Resolving\x20enhancement\x20','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','text','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','length','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20}','toLowerCase','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','hash','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','info','enhance:configure','default','object-src\x20\x27none\x27','\x20\x20}\x20catch\x20(error)\x20{','log','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','text/html','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','[Enhance\x20SW]','/webpackhotmiddleware','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20\x20\x20Content-Type:\x20','clone','href','\x20Unknown\x20message\x20type:\x20','https://api.enhancelabs.ai','\x20via\x20','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20FETCH:\x20','value','\x20\x20\x20runtimeScriptPath:\x20','method','\x20MESSAGE\x20received:','[Enhance\x20SW\x20Routing]','getOwnPropertyNames','search','searchParams','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','/snowpack/hmr','frame-ancestors\x20','\x20fetchFromEnhancement:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','<script\x20data-enhance-hmr-bridge>','url','345518TDEpNX','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','headers','180MIqAuV','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','2AnEkBF','Enhancement\x20document\x20fetch\x20failed','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20\x20\x20\x20\x20\x20\x20\x20}','cors','\x20\x20\x20Fetching\x20production\x20response...','\x20fetchEnhancementDocument:\x20','call','image','\x20Enhancement\x20','access-control-allow-credentials','8pSIslF','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','object','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','securityMode','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20\x20};','\x20INSTALL\x20event','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','media-src\x20*\x20data:\x20blob:','claim','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','/auth/callback','\x20\x20\x20Response:\x20','set','/__vite/client','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','includes','production','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','addEventListener','cross-origin-opener-policy','debug','callbackBypass','\x5cu003e','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','runtimeScriptPath','stringify','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','hit','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20ACTIVATE\x20event','</script>','full','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','enhancement','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','clients','110132gmynkV','set-cookie2','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','json','location','861708biyKpn','/vite/client','\x20Bootstrap\x20options:','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','\x20\x20\x20BYPASS:\x20','getOwnPropertyDescriptor','1303875YlHweC','\x20\x20\x20overlayPath:\x20','x-enhance-routing','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20Failed\x20to\x20rewrite\x20document:',',\x20null,\x202));','no-store','waitUntil','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','mode','match','\x20\x20try\x20{','sharedworker','x-enhance-enhancement','vite-hmr','respondWith','\x20Calling\x20clients.claim()...','test','worker-src\x20\x27self\x27\x20blob:','\x20for\x20','x-enhance-document','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20Rewriting\x20entry\x20references...','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','enhancementUrl','\x20\x20\x20shouldInjectOverlay:\x20','Failed\x20to\x20rewrite\x20document','permissive','opaque','replace','activate','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','/@vite/client','overlayPath','\x20\x20\x20Fetching\x20from\x20enhancement...','https://','push','type','delete',',\x20destination:\x20','\x20\x20\x20Rewriting\x20document...','parse','none','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','/assets/enhance-runtime.js','enhancementBase','\x20matches\x20callbackBypass','http://','\x20\x20\x20securityMode:\x20','message','\x20Config\x20reset','content-security-policy','257670ORHMMB','\x0a</head>','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20mode:\x20','/sockjs-node','/resolve','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','https://assets.enhancelabs.ai/overlay.js','HEAD','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20Clearing\x20cached\x20enhancement\x20(navigation\x20without\x20param)','\x20\x20\x20\x20\x20\x20return\x20proxied;','63xzkWvN','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','set-cookie','56IvveFF','X-Enhance-Publishable-Key','\x20handleNavigationRequest:\x20','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','Enhancement\x20document\x20miss\x20','cross-origin-embedder-policy','\x20\x20\x20Enhancement\x20URL:\x20','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20\x20\x20Fetch\x20error:','Enhancement\x20fetch\x20failed','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','error','\x20-\x20falling\x20back\x20to\x20production','/_next/webpack-hmr','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','access-control-expose-headers','modulepreload','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','toString','\x20chars','access-control-allow-origin','78543UgpsaS','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','pathname','600327dHvBkh','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','fetch','font','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20\x20\x20\x20//\x20Mark\x20as\x20initialized\x20globally\x20so\x20other\x20module\x20instances\x20(e.g.\x20enhanced\x20app\x27s\x20bundled\x20copy)\x20skip\x20re-init','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','endsWith','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','startsWith','\x20\x20}','follow','\x20\x20\x20Document\x20rewritten\x20successfully','status','slice','defineProperty','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','navigate','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','content-length','\x20Failed\x20to\x20resolve\x20enhancement\x20','destination','backendUrl','\x20skipWaiting()\x20complete','\x20\x20\x20Script\x20inserted\x20into\x20document','/__parcel_hmr','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x0a</body>','\x5cu003c','/public/enhancements/','content-type',')\x20-\x20returning\x20null','font-src\x20*\x20data:','/parcel-hmr',',\x20type:\x20','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);'];_0x5ec7=function(){return _0x2ae4b5;};return _0x5ec7();}var EnhanceSW=((()=>{const _0x4dd480=_0x5a1a;var _0x2ef47c=Object[_0x4dd480(0x183)],_0x3a025f=Object[_0x4dd480(0x10d)],_0x421026=Object[_0x4dd480(0x1e7)],_0x54f0b3=Object['prototype']['hasOwnProperty'],_0x5bc5dd=(_0xbd9358,_0x59cab5)=>{for(var _0x155961 in _0x59cab5)_0x2ef47c(_0xbd9358,_0x155961,{'get':_0x59cab5[_0x155961],'enumerable':!![]});},_0x13f092=(_0x46e0da,_0x48e1d5,_0x27ed5e,_0x54815c)=>{const _0x426e8c=_0x4dd480;if(_0x48e1d5&&typeof _0x48e1d5===_0x426e8c(0xd9)||typeof _0x48e1d5==='function'){for(let _0x2d7b54 of _0x421026(_0x48e1d5))if(!_0x54f0b3[_0x426e8c(0xd3)](_0x46e0da,_0x2d7b54)&&_0x2d7b54!==_0x27ed5e)_0x2ef47c(_0x46e0da,_0x2d7b54,{'get':()=>_0x48e1d5[_0x2d7b54],'enumerable':!(_0x54815c=_0x3a025f(_0x48e1d5,_0x2d7b54))||_0x54815c[_0x426e8c(0x1b4)]});}return _0x46e0da;},_0x54c450=_0x1ae875=>_0x13f092(_0x2ef47c({},'__esModule',{'value':!![]}),_0x1ae875),_0x232242={};_0x5bc5dd(_0x232242,{'log':()=>_0x1524f4});var _0x435216=_0x4dd480(0x1ce),_0x474205='enhance:disable';function _0x9d76(_0x50283f){const _0x2b1a93=_0x4dd480;if(!_0x50283f[_0x2b1a93(0x17d)]('/'))return'/'+_0x50283f;return _0x50283f;}function _0x337488(_0x341bc0,_0x5de3fa){const _0x4dc7d1=_0x4dd480,_0x379a36=new URL(_0x341bc0['toString']()),_0xedbae7=_0x379a36[_0x4dc7d1(0x172)][_0x4dc7d1(0x17b)]('/')?_0x379a36[_0x4dc7d1(0x172)][_0x4dc7d1(0x182)](0x0,-0x1):_0x379a36[_0x4dc7d1(0x172)],_0xc45a05=_0x5de3fa[_0x4dc7d1(0x172)]['startsWith']('/')?_0x5de3fa[_0x4dc7d1(0x172)]:'/'+_0x5de3fa[_0x4dc7d1(0x172)];return _0x379a36['pathname']=(''+_0xedbae7+_0xc45a05)[_0x4dc7d1(0x12c)](/\/+/g,'/'),_0x379a36[_0x4dc7d1(0x1e8)]=_0x5de3fa[_0x4dc7d1(0x1e8)],_0x379a36[_0x4dc7d1(0x1cb)]='',_0x379a36;}var _0x3b0cd1=_0x4dd480(0x1e6),_0x238d32=_0x4dd480(0x15a),_0xd37e23=new Set(['script',_0x4dd480(0x1bb),_0x4dd480(0x177),_0x4dd480(0xd4),'worker',_0x4dd480(0x11a),_0x4dd480(0x16a)]);function _0x309a43(_0x568323){const _0x12ec66=_0x4dd480,_0x4c83fe=_0x568323[_0x12ec66(0x1e4)]===_0x12ec66(0x1a5)||_0x568323[_0x12ec66(0x1e4)]===_0x12ec66(0x150);return _0x4c83fe;}function _0x388007(_0xa1e89a,_0x69f477){const _0x5b2109=_0x4dd480,_0x477ebf=_0x9d76(_0x69f477),_0x32b4d5=_0xa1e89a['callbackBypassNormalized']['some'](_0x525503=>_0x477ebf[_0x5b2109(0x17d)](_0x525503));return _0x32b4d5;}function _0x187e96(_0x4ae87f,_0x95371a,_0x2e1a6a){const _0x2247dd=_0x4dd480,_0x33a46=_0x95371a[_0x2247dd(0x18a)];if(!_0x33a46||!_0xd37e23[_0x2247dd(0x1b5)](_0x33a46))return![];if(_0xacddd2(_0x4ae87f,_0x2e1a6a))return console['log'](_0x3b0cd1+_0x2247dd(0x1c4)+_0x2e1a6a['pathname']+_0x2247dd(0x1d8)),![];if(_0x5c24e1(_0x4ae87f,_0x2e1a6a))return console[_0x2247dd(0x1d2)](_0x3b0cd1+_0x2247dd(0x1c4)+_0x2e1a6a[_0x2247dd(0x172)]+_0x2247dd(0x14d)),![];if(_0x2e1a6a[_0x2247dd(0x19b)]!==self[_0x2247dd(0x106)]['origin'])return![];return!![];}async function _0x328d49(_0x542f3d,_0x505fcf,_0x58fdb3){const _0x38a171=_0x4dd480;console['log'](_0x3b0cd1+_0x38a171(0x1ed)+_0x58fdb3[_0x38a171(0x172)]);if(!_0x542f3d[_0x38a171(0x140)])return console[_0x38a171(0x1d2)](_0x3b0cd1+_0x38a171(0x170)),null;const _0x14b53b=_0x19a613(_0x542f3d,_0x58fdb3);console['log'](_0x3b0cd1+_0x38a171(0x15f)+_0x14b53b['toString']());const _0x29158e=new Headers(_0x505fcf['headers']);_0x29158e[_0x38a171(0xe7)](_0x38a171(0x110),'enhancement'),_0x29158e[_0x38a171(0x138)]('host');_0x542f3d[_0x38a171(0x1b6)]&&_0x29158e['set'](_0x238d32,_0x542f3d[_0x38a171(0x1b6)]);const _0xbfaa58=new Request(_0x14b53b['toString'](),{'method':_0x505fcf[_0x38a171(0x1e4)],'headers':_0x29158e,'credentials':'include','redirect':_0x505fcf['redirect'],'cache':_0x38a171(0x1cf),'mode':_0x38a171(0xd0)});try{console['log'](_0x3b0cd1+_0x38a171(0x134));const _0x44ed52=await fetch(_0xbfaa58);console[_0x38a171(0x1d2)](_0x3b0cd1+_0x38a171(0xe6)+_0x44ed52[_0x38a171(0x181)]+'\x20'+_0x44ed52['statusText']+_0x38a171(0x197)+_0x44ed52[_0x38a171(0x137)]);if(_0x44ed52[_0x38a171(0x137)]==='opaque')return console[_0x38a171(0x1d2)](_0x3b0cd1+'\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)'),_0x1524f4(_0x38a171(0x1cd),'Enhancement\x20CORS\x20blocked',_0x14b53b[_0x38a171(0x16c)]()),null;if(!_0x44ed52['ok'])return console[_0x38a171(0x1d2)](_0x3b0cd1+'\x20\x20\x20Not\x20OK\x20('+_0x44ed52[_0x38a171(0x181)]+')\x20-\x20returning\x20null'),_0x1524f4(_0x38a171(0xf0),'Enhancement\x20miss\x20'+_0x44ed52[_0x38a171(0x181)]+_0x38a171(0x121)+_0x14b53b[_0x38a171(0x172)]),null;return console['log'](_0x3b0cd1+_0x38a171(0x174)),_0x44f13b(_0x44ed52,_0x505fcf[_0x38a171(0x1e4)]);}catch(_0x7a7690){return console['error'](_0x3b0cd1+_0x38a171(0x162),_0x7a7690),_0x1524f4(_0x38a171(0x1cd),_0x38a171(0x163),_0x7a7690),null;}}async function _0x3eed2b(_0x5aa732,_0xc5eb2a){const _0x160dec=_0x4dd480,_0x103de8=new URL(_0xc5eb2a['url']);console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0xd2)+_0x103de8[_0x160dec(0x172)]+_0x103de8[_0x160dec(0x1e8)]);if(!_0x5aa732[_0x160dec(0x140)])return console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0x104)),null;const _0x2eb932=_0x19a613(_0x5aa732,_0x103de8);console['log'](_0x3b0cd1+'\x20\x20\x20Enhancement\x20document\x20URL:\x20'+_0x2eb932[_0x160dec(0x16c)]());const _0x3bf744=new Headers(_0xc5eb2a[_0x160dec(0x1f4)]);_0x3bf744[_0x160dec(0xe7)](_0x160dec(0x110),'enhancement-document'),_0x3bf744['delete'](_0x160dec(0x19c)),_0x3bf744[_0x160dec(0x138)](_0x160dec(0x188));_0x5aa732[_0x160dec(0x1b6)]&&_0x3bf744[_0x160dec(0xe7)](_0x238d32,_0x5aa732['publishableKey']);const _0xc10520=new Request(_0x2eb932[_0x160dec(0x16c)](),{'method':_0x160dec(0x1a5),'headers':_0x3bf744,'credentials':'include','redirect':_0x160dec(0x17f),'cache':'default','mode':_0x160dec(0xd0)});try{console[_0x160dec(0x1d2)](_0x3b0cd1+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x37e0ff=await fetch(_0xc10520);console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0xe6)+_0x37e0ff[_0x160dec(0x181)]+'\x20'+_0x37e0ff[_0x160dec(0x19a)]+_0x160dec(0x197)+_0x37e0ff[_0x160dec(0x137)]),console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0x1d9)+_0x37e0ff[_0x160dec(0x1f4)]['get']('content-type'));if(_0x37e0ff['type']===_0x160dec(0x12b))return console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0x161)),_0x1524f4(_0x160dec(0x1cd),'Enhancement\x20document\x20CORS\x20blocked',_0x2eb932[_0x160dec(0x16c)]()),null;if(!_0x37e0ff['ok'])return console[_0x160dec(0x1d2)](_0x3b0cd1+'\x20\x20\x20Not\x20OK\x20('+_0x37e0ff[_0x160dec(0x181)]+_0x160dec(0x194)),_0x1524f4(_0x160dec(0xf0),_0x160dec(0x15d)+_0x37e0ff[_0x160dec(0x181)]+_0x160dec(0x121)+_0x2eb932[_0x160dec(0x172)]),null;if(!_0x4a9fb6(_0x37e0ff))return console[_0x160dec(0x1d2)](_0x3b0cd1+_0x160dec(0xfe)),null;return console[_0x160dec(0x1d2)](_0x3b0cd1+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document'),_0x44f13b(_0x37e0ff,_0x160dec(0x1a5));}catch(_0xb058f3){return console['error'](_0x3b0cd1+'\x20\x20\x20Document\x20fetch\x20error:',_0xb058f3),_0x1524f4(_0x160dec(0x1cd),_0x160dec(0x1fa),_0xb058f3),null;}}function _0x19a613(_0x37b7a7,_0x57fd3a){const _0x520fa7=_0x4dd480;if(!_0x37b7a7[_0x520fa7(0x140)])throw new Error('Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured');return _0x337488(_0x37b7a7[_0x520fa7(0x140)],_0x57fd3a);}function _0x44f13b(_0x1f7265,_0x5cc14c){const _0x396211=_0x4dd480,_0x24203e=_0x1f7265[_0x396211(0x1da)](),_0x851d95=new Headers(_0x24203e['headers']);_0x851d95[_0x396211(0x138)](_0x396211(0x16e)),_0x851d95['delete'](_0x396211(0xd6)),_0x851d95[_0x396211(0x138)](_0x396211(0x169)),_0x851d95[_0x396211(0xe7)](_0x396211(0x11b),_0x396211(0xf8)),_0x2a23b6(_0x851d95);const _0x2d9071=_0x5cc14c===_0x396211(0x150)?null:_0x24203e[_0x396211(0x1b0)];return new Response(_0x2d9071,{'status':_0x24203e[_0x396211(0x181)],'statusText':_0x24203e['statusText'],'headers':_0x851d95});}function _0x4a9fb6(_0x5f229f){const _0x48003d=_0x4dd480,_0x5153a6=_0x5f229f['headers'][_0x48003d(0x1ad)]('content-type');return _0x5153a6!=null&&_0x5153a6[_0x48003d(0xea)](_0x48003d(0x1d4));}function _0xacddd2(_0x535659,_0x18f066){return _0x3a668b(_0x18f066,_0x535659['overlayPath']);}function _0x5c24e1(_0x3871be,_0xe9f12f){const _0x5d8fbb=_0x4dd480;return _0x3f1c92(_0xe9f12f,_0x3871be[_0x5d8fbb(0xf4)]);}function _0x3a668b(_0x446cb1,_0x206bec){const _0x5e2510=_0x4dd480;if(!_0x206bec)return![];if(_0x206bec['startsWith'](_0x5e2510(0x142))||_0x206bec[_0x5e2510(0x17d)](_0x5e2510(0x135)))return _0x446cb1[_0x5e2510(0x1db)]===_0x206bec;const _0x12c532=_0x4c9036(_0x206bec);if(!_0x12c532)return![];const _0x59916d=''+_0x446cb1['pathname']+_0x446cb1[_0x5e2510(0x1e8)];if(_0x59916d===_0x12c532)return!![];if(_0x446cb1[_0x5e2510(0x1e8)]==='?import')return _0x446cb1[_0x5e2510(0x172)]===_0x12c532;return![];}function _0x3f1c92(_0x4431b,_0x5c12f9){const _0x149dcc=_0x4dd480;if(!_0x5c12f9)return![];if(_0x5c12f9[_0x149dcc(0x17d)]('http://')||_0x5c12f9['startsWith']('https://'))return _0x4431b[_0x149dcc(0x1db)]===_0x5c12f9;const _0x389f43=_0x4c9036(_0x5c12f9);if(!_0x389f43)return![];const _0x53d773=''+_0x4431b[_0x149dcc(0x172)]+_0x4431b[_0x149dcc(0x1e8)];return _0x53d773===_0x389f43;}function _0x4c9036(_0x3860b8){const _0x20f695=_0x4dd480;if(!_0x3860b8)return _0x3860b8;if(_0x3860b8[_0x20f695(0x17d)](_0x20f695(0x142))||_0x3860b8[_0x20f695(0x17d)](_0x20f695(0x135)))return _0x3860b8;const _0x52d55=_0x3860b8[_0x20f695(0x12c)](/^\.\//,'');if(_0x52d55[_0x20f695(0x17d)]('/'))return _0x52d55;return'/'+_0x52d55;}function _0x2a23b6(_0x23e94f){const _0x4c81ec=_0x4dd480;_0x23e94f[_0x4c81ec(0x138)](_0x4c81ec(0x158)),_0x23e94f[_0x4c81ec(0x138)](_0x4c81ec(0x103));}function _0x2c4179(_0x197c70){const _0x10642d=_0x4dd480,_0x586551=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x10642d(0x1be),_0x10642d(0x18f),'img-src\x20*\x20data:\x20blob:',_0x10642d(0x195),_0x10642d(0x1a8),_0x10642d(0xe0),_0x10642d(0x120),_0x10642d(0x1d0)],_0x2ad77c=_0x3873aa(_0x197c70);return _0x2ad77c&&_0x586551[_0x10642d(0x136)](_0x2ad77c),_0x586551[_0x10642d(0x19e)](';\x20');}function _0x3bed7f(_0x3f5738){const _0x584b8f=_0x4dd480;_0x3f5738[_0x584b8f(0x138)](_0x584b8f(0x158)),_0x3f5738[_0x584b8f(0x138)](_0x584b8f(0x103));}function _0x3873aa(_0x1d58ad){const _0x5df2c3=_0x4dd480;if(!_0x1d58ad)return null;const _0x2d21f4=_0x1d58ad[_0x5df2c3(0x118)](/frame-ancestors\s+([^;]+)/i);if(!_0x2d21f4)return null;return _0x5df2c3(0x1ec)+_0x2d21f4[0x1]['trim']();}function _0x16166c(_0x389bbd,_0x1a66a7){const _0x86381b=_0x4dd480;if(/<head[^>]*>/i[_0x86381b(0x11f)](_0x389bbd)){const _0x3c7e7b=_0x389bbd[_0x86381b(0x118)](/<head[^>]*>/i);if(_0x3c7e7b){const _0xe02a0d=_0x3c7e7b[0x0];return _0x389bbd[_0x86381b(0x12c)](_0xe02a0d,_0xe02a0d+'\x0a'+_0x1a66a7);}}if(/<\/head>/i[_0x86381b(0x11f)](_0x389bbd))return _0x389bbd[_0x86381b(0x12c)](/<\/head>/i,_0x1a66a7+_0x86381b(0x148));if(/<body\b[^>]*>/i[_0x86381b(0x11f)](_0x389bbd))return _0x389bbd[_0x86381b(0x12c)](/<body\b[^>]*>/i,'$&\x0a'+_0x1a66a7);if(/<\/body>/i[_0x86381b(0x11f)](_0x389bbd))return _0x389bbd[_0x86381b(0x12c)](/<\/body>/i,_0x1a66a7+_0x86381b(0x190));return _0x1a66a7+'\x0a'+_0x389bbd;}var _0x432e3c=[_0x4dd480(0x11c)],_0x3e8660=[_0x4dd480(0x132),_0x4dd480(0xe8),_0x4dd480(0x108),'/__vite_ping',_0x4dd480(0x14b),'/webpack-dev-server','/webpack-hmr',_0x4dd480(0x1d7),'/webpack-hot-middleware','/__webpack_hmr',_0x4dd480(0x167),_0x4dd480(0x196),_0x4dd480(0x18e),'/__snowpack__',_0x4dd480(0x1eb)];function _0x37e5f4(_0x1d1b20,_0x34b9ef){const _0x63645d=_0x45fef8(_0x1d1b20);if(!_0x63645d)return _0x34b9ef;return _0x16166c(_0x34b9ef,_0x63645d);}function _0x45fef8(_0x416bf1){const _0x472220=_0x4dd480;if(!_0x416bf1[_0x472220(0x140)])return null;const _0x5f5b86=_0x416bf1['enhancementBase']['toString'](),_0x399d93=_0x12a84a(_0x432e3c),_0x13d16c=_0x12a84a(_0x3e8660),_0x33bab8=[_0x472220(0x1ef),'(function(){','\x20\x20try\x20{',_0x472220(0xce)+JSON['stringify'](_0x5f5b86)+');',_0x472220(0x1ee),_0x472220(0x1df),'\x20\x20\x20\x20\x20\x20return;',_0x472220(0x1c5),_0x472220(0x1b7)+JSON[_0x472220(0xf5)](_0x399d93)+');',_0x472220(0x1ba)+JSON['stringify'](_0x13d16c)+';','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;',_0x472220(0xfa),_0x472220(0xdf),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];',_0x472220(0xdd),_0x472220(0x152),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts',_0x472220(0x1c2),_0x472220(0x1d3),'\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x472220(0x1b3),'\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{',_0x472220(0x16b),_0x472220(0x1a4),'\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{',_0x472220(0x12e),_0x472220(0x1d5),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20\x20\x20\x20\x20\x20}',_0x472220(0x1a4),'\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();',_0x472220(0x175),_0x472220(0x19d),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x472220(0xcf),_0x472220(0x1a4),_0x472220(0x1c1),_0x472220(0xdd),_0x472220(0x17a),_0x472220(0x1c9),_0x472220(0xed),_0x472220(0x1f7),_0x472220(0x15c),_0x472220(0x154),_0x472220(0xdd),_0x472220(0x13e),_0x472220(0x111),_0x472220(0x199),_0x472220(0x184),_0x472220(0x149),_0x472220(0xe4),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x472220(0x1bd),'\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);',_0x472220(0x1a4),_0x472220(0xda),_0x472220(0xdd),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);',_0x472220(0x1a6),_0x472220(0x131),'\x20\x20\x20\x20try\x20{',_0x472220(0xf9),_0x472220(0x1b9),_0x472220(0xf3),_0x472220(0x1c5),_0x472220(0xd8),_0x472220(0x168),_0x472220(0x1d1),_0x472220(0x1f3),_0x472220(0x17e),_0x472220(0x1ac),_0x472220(0xfc)];return _0x33bab8['join']('\x0a');}function _0x12a84a(_0x3a6f28){const _0x85887b=_0x4dd480,_0x454d3e=new Set(),_0x407d3f=[];for(const _0x4adf1e of _0x3a6f28){const _0x32b6cb=_0x4adf1e[_0x85887b(0x1c6)]();if(_0x454d3e[_0x85887b(0x1b5)](_0x32b6cb))continue;_0x454d3e['add'](_0x32b6cb),_0x407d3f[_0x85887b(0x136)](_0x32b6cb);}return _0x407d3f;}var _0x48ef23='[Enhance\x20SW\x20Bootstrap]';function _0x4005a6(_0x522665,_0x2924f1){const _0x4ceb35=_0x4dd480;console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x1ae)),console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x1e3)+_0x522665[_0x4ceb35(0xf4)]),console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x10f)+_0x522665['overlayPath']);if(_0x2924f1[_0x4ceb35(0xea)]('data-enhance-runtime-bootstrap'))return console['log'](_0x48ef23+_0x4ceb35(0x1c8)),_0x2924f1;const _0x3220f2=_0x190e50(_0x522665);if(!_0x3220f2)return console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x1ea)),_0x2924f1;console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x130)+_0x3220f2[_0x4ceb35(0x1c3)]+'\x20chars)');const _0x54f0ec=_0x16166c(_0x2924f1,_0x3220f2);return console[_0x4ceb35(0x1d2)](_0x48ef23+_0x4ceb35(0x18d)),_0x54f0ec;}function _0x190e50(_0x24c496){const _0x3c591a=_0x4dd480,_0x261a17=_0x24c496[_0x3c591a(0xf4)];if(!_0x261a17)return console[_0x3c591a(0x1d2)](_0x48ef23+_0x3c591a(0xe9)),null;const _0x2b0e30=_0x51909c(_0x24c496);console['log'](_0x48ef23+_0x3c591a(0x109),JSON[_0x3c591a(0xf5)](_0x2b0e30,null,0x2));const _0x426931=_0x3d2aae(_0x2b0e30),_0x5a5d1b=JSON['stringify'](_0x261a17),_0x14ee05=['<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>',_0x3c591a(0x19f),_0x3c591a(0x119),_0x3c591a(0x160)+_0x5a5d1b+';',_0x3c591a(0x1b8),_0x3c591a(0xf6),_0x3c591a(0x1f8),_0x3c591a(0x1cc),_0x3c591a(0x123),_0x3c591a(0x1c7),_0x3c591a(0x116),_0x3c591a(0x1c0),_0x3c591a(0x156),_0x3c591a(0x1c5),_0x3c591a(0x1e0)+_0x426931+_0x3c591a(0x113),_0x3c591a(0x1a9)+_0x426931+');',_0x3c591a(0x1ca),_0x3c591a(0x198),_0x3c591a(0x157),_0x3c591a(0x125),_0x3c591a(0x179),_0x3c591a(0xec),_0x3c591a(0xe2),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x3c591a(0x1c5),_0x3c591a(0x151),_0x3c591a(0x1d1),_0x3c591a(0x14e),_0x3c591a(0x17e),'})();','</script>'];return _0x14ee05['join']('\x0a');}function _0x51909c(_0x3ef93d){const _0x3b2a46=_0x4dd480,_0x14effb={'publishableKey':_0x3ef93d[_0x3b2a46(0x1b6)],'callbackBypass':_0x3ef93d[_0x3b2a46(0xf1)],'__development':{'enableOverlayHmr':_0x3ef93d['overlayEnableViteHmr'],'overlayPath':_0x3ef93d[_0x3b2a46(0x133)],'security':_0x3ef93d['securityMode'],'backendUrl':_0x3ef93d['backendUrl']}};return _0x14effb;}function _0x3d2aae(_0x2739e2){const _0xfcf8bc=_0x4dd480;return JSON[_0xfcf8bc(0xf5)](_0x2739e2)[_0xfcf8bc(0x12c)](/</g,_0xfcf8bc(0x191))['replace'](/>/g,_0xfcf8bc(0xf2));}function _0x24da2b(_0x306707,_0x3e981a){const _0x583b42=_0x4dd480,_0x17a9db=_0x46d211=>_0xf974a8(_0x306707,_0x46d211),_0x473fbc=_0x41db74=>_0x135a63(_0x306707,_0x41db74);return _0x3e981a[_0x583b42(0x12c)](/<script\b[^>]*>/gi,_0x17a9db)[_0x583b42(0x12c)](/<link\b[^>]*>/gi,_0x473fbc);}function _0x25d896(_0x2fbd8f){const _0x3cd5fd=_0x4dd480;return _0x2fbd8f[_0x3cd5fd(0x12c)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0xf974a8(_0x3cfe1f,_0x41f914){const _0x2a4a8d=_0x4dd480,_0x29783b=_0x43ce61(_0x41f914,'src');if(!_0x29783b)return _0x41f914;const _0x5ee0ba=_0x2d2587(_0x3cfe1f,_0x29783b[_0x2a4a8d(0x1e2)]);if(!_0x5ee0ba||_0x5ee0ba===_0x29783b['value'])return _0x41f914;const _0x227684=_0x29783b[_0x2a4a8d(0xfd)][_0x2a4a8d(0x12c)](_0x29783b['value'],_0x5ee0ba);return _0x41f914[_0x2a4a8d(0x12c)](_0x29783b[_0x2a4a8d(0xfd)],_0x227684);}function _0x135a63(_0x44caff,_0x1c65d8){const _0x22fa1a=_0x4dd480,_0xbf65b3=_0x1c65d8[_0x22fa1a(0x118)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0xbf65b3)return _0x1c65d8;const _0x39b0af=_0xbf65b3[0x2]['toLowerCase']();if(_0x39b0af!=='stylesheet'&&_0x39b0af!==_0x22fa1a(0x16a))return _0x1c65d8;const _0x48bcd9=_0x43ce61(_0x1c65d8,_0x22fa1a(0x1db));if(!_0x48bcd9)return _0x1c65d8;const _0x20d4d7=_0x2d2587(_0x44caff,_0x48bcd9[_0x22fa1a(0x1e2)]);if(!_0x20d4d7||_0x20d4d7===_0x48bcd9['value'])return _0x1c65d8;const _0x1e09b6=_0x48bcd9[_0x22fa1a(0xfd)][_0x22fa1a(0x12c)](_0x48bcd9[_0x22fa1a(0x1e2)],_0x20d4d7);return _0x1c65d8['replace'](_0x48bcd9[_0x22fa1a(0xfd)],_0x1e09b6);}function _0x43ce61(_0x55e72c,_0x4c071b){const _0x3bb797=_0x4dd480,_0x1f21f3=new RegExp(_0x4c071b+_0x3bb797(0x164),'i'),_0x24d5fa=_0x55e72c[_0x3bb797(0x118)](_0x1f21f3);if(!_0x24d5fa)return null;return{'full':_0x24d5fa[0x0],'value':_0x24d5fa[0x2]};}function _0x2d2587(_0x45bfe2,_0x55ae63){const _0x3663e0=_0x4dd480,_0x150ca7=_0x5622cd(_0x55ae63);if(!_0x150ca7)return null;if(_0x150ca7[_0x3663e0(0x19b)]===self[_0x3663e0(0x106)]['origin'])return''+_0x150ca7[_0x3663e0(0x172)]+_0x150ca7['search'];return null;}function _0x5622cd(_0x9cac4e){const _0x331eb1=_0x4dd480;try{return new URL(_0x9cac4e,self[_0x331eb1(0x106)][_0x331eb1(0x19b)]);}catch{return null;}}var _0xd544e9='[Enhance\x20SW\x20Document]';async function _0x1cff46(_0x1545a8,_0x1ccc19,_0x4419a4,_0x384999=!![]){const _0x18590e=_0x4dd480;console[_0x18590e(0x1d2)](_0xd544e9+'\x20rewriteDocument()\x20called'),console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20source:\x20'+_0x4419a4),console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x128)+_0x384999),console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x143)+_0x1545a8[_0x18590e(0xdb)]);const _0x5d9d8e=_0x1ccc19[_0x18590e(0x1da)](),_0x5ab090=await _0x5d9d8e[_0x18590e(0x1bf)]();console['log'](_0xd544e9+_0x18590e(0xdc)+_0x5ab090[_0x18590e(0x1c3)]+'\x20chars'),console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Stripping\x20SRI\x20attributes...');const _0x1653d7=_0x25d896(_0x5ab090);console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x124));let _0x30eb1e=_0x24da2b(_0x1545a8,_0x1653d7);_0x4419a4===_0x18590e(0xff)?(console['log'](_0xd544e9+_0x18590e(0x171)),_0x30eb1e=_0x37e5f4(_0x1545a8,_0x30eb1e)):console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)');_0x384999?(console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x1f6)),_0x30eb1e=_0x4005a6(_0x1545a8,_0x30eb1e)):console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x1a0));console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x187)+_0x30eb1e[_0x18590e(0x1c3)]+_0x18590e(0x16d));const _0x5e7d2f=new Headers(_0x5d9d8e[_0x18590e(0x1f4)]);_0x5e7d2f[_0x18590e(0xe7)]('cache-control',_0x18590e(0x114)),_0x5e7d2f[_0x18590e(0xe7)](_0x18590e(0x122),_0x18590e(0x1b1)),_0x5e7d2f['set'](_0x18590e(0x1a2),_0x4419a4),_0x3bed7f(_0x5e7d2f);if(_0x1545a8[_0x18590e(0xdb)]!==_0x18590e(0x1ab)){console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x17d8d2=_0x5e7d2f[_0x18590e(0x1ad)](_0x18590e(0x146));_0x5e7d2f['set']('content-security-policy',_0x2c4179(_0x17d8d2)),_0x5e7d2f[_0x18590e(0x138)](_0x18590e(0xef)),_0x5e7d2f[_0x18590e(0x138)](_0x18590e(0x15e)),_0x5e7d2f[_0x18590e(0x138)]('cross-origin-resource-policy');}else console[_0x18590e(0x1d2)](_0xd544e9+_0x18590e(0x10a));return console[_0x18590e(0x1d2)](_0xd544e9+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x30eb1e,{'status':_0x5d9d8e['status'],'statusText':_0x5d9d8e[_0x18590e(0x19a)],'headers':_0x5e7d2f});}var _0x19e456=_0x4dd480(0x1d6);console['log'](_0x19e456+_0x4dd480(0x10b)+new Date()[_0x4dd480(0x1aa)]());var _0x27fd6d={'overlayPath':_0x4dd480(0x14f),'backendUrl':_0x4dd480(0x1dd),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x4dd480(0x13f),'swPath':'/sw-enhance.js'};console[_0x4dd480(0x1d2)](_0x19e456+'\x20Build\x20config:',JSON[_0x4dd480(0xf5)](_0x27fd6d,null,0x2));var _0xdc301c={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x4dd480(0x12a)},_0x1493a4=_0x4dd480(0x15a),_0x4ccb4d=new Map(),_0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null;function _0x439f11(){const _0x530a6e=_0x4dd480,_0x55a46c=_0x5a4a87||'',_0x3708cb=_0x3dbaf7;return{..._0x27fd6d,..._0xdc301c,'enhancementUrl':_0x55a46c,'enhancementBase':_0x3708cb,'callbackBypassNormalized':_0xdc301c[_0x530a6e(0xf1)][_0x530a6e(0x1af)](_0x2e7185=>_0x2e7185['startsWith']('/')?_0x2e7185:'/'+_0x2e7185)};}async function _0x32e77f(_0x546832,_0x749aa4){const _0x44bd1b=_0x4dd480,_0x430d12=_0x546832['searchParams'][_0x44bd1b(0x1ad)](_0x44bd1b(0xff));if(_0x749aa4&&_0x430d12){console['log'](_0x19e456+'\x20Enhancement\x20ID\x20from\x20navigation:\x20'+_0x430d12);const _0x1f46c9=await _0x330be7(_0x430d12);if(_0x1f46c9){_0x49c5a9=_0x430d12,_0x5a4a87=_0x1f46c9;try{_0x3dbaf7=new URL(_0x1f46c9);}catch{console[_0x44bd1b(0x165)](_0x19e456+'\x20Failed\x20to\x20parse\x20operatingUrl:\x20'+_0x1f46c9),_0x3dbaf7=null;}}else _0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null;}return _0x749aa4&&!_0x430d12&&(_0x49c5a9&&console[_0x44bd1b(0x1d2)](_0x19e456+_0x44bd1b(0x153)),_0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null),_0x439f11();}function _0x1524f4(_0x5cba77,_0x37e1dd,..._0x5235dc){const _0x126a28=_0x4dd480;_0x5cba77===_0x126a28(0x1cd)?console[_0x126a28(0x1cd)](_0x19e456,_0x37e1dd,..._0x5235dc):console[_0x126a28(0xf0)](_0x19e456,_0x37e1dd,..._0x5235dc);}async function _0x330be7(_0x4e5d75){const _0x4b9baf=_0x4dd480,_0xc84099=_0x4ccb4d[_0x4b9baf(0x1ad)](_0x4e5d75);if(_0xc84099)return console[_0x4b9baf(0x1d2)](_0x19e456+_0x4b9baf(0xd5)+_0x4e5d75+'\x20resolved\x20from\x20cache:\x20'+_0xc84099),_0xc84099;if(!_0xdc301c[_0x4b9baf(0x1b6)])return console['error'](_0x19e456+'\x20Cannot\x20resolve\x20enhancement\x20-\x20no\x20publishable\x20key\x20configured'),null;const _0x362397=_0x27fd6d[_0x4b9baf(0x18b)]+_0x4b9baf(0x192)+_0x4e5d75+_0x4b9baf(0x14c);console[_0x4b9baf(0x1d2)](_0x19e456+_0x4b9baf(0x1bc)+_0x4e5d75+_0x4b9baf(0x1de)+_0x362397);try{const _0x3a9eb2=await fetch(_0x362397,{'headers':{[_0x1493a4]:_0xdc301c[_0x4b9baf(0x1b6)]}});if(!_0x3a9eb2['ok']){let _0x52d27c=await _0x3a9eb2[_0x4b9baf(0x1bf)]();try{const _0x518053=JSON[_0x4b9baf(0x13b)](_0x52d27c);_0x518053[_0x4b9baf(0x165)]&&(_0x52d27c=_0x518053[_0x4b9baf(0x165)]);}catch{}return _0x3a9eb2[_0x4b9baf(0x181)]===0x193?console[_0x4b9baf(0x165)](_0x19e456+'\x20❌\x20Publishable\x20key\x20validation\x20failed:\x20'+_0x52d27c):console[_0x4b9baf(0x165)](_0x19e456+_0x4b9baf(0x189)+_0x4e5d75+':\x20'+_0x3a9eb2[_0x4b9baf(0x181)]+'\x20'+_0x52d27c),null;}const _0x335c3b=await _0x3a9eb2[_0x4b9baf(0x105)](),_0x135d4a=''+_0x27fd6d[_0x4b9baf(0x18b)]+_0x335c3b['operatingPath'];return console[_0x4b9baf(0x1d2)](_0x19e456+_0x4b9baf(0xd5)+_0x4e5d75+'\x20resolved\x20to:\x20'+_0x135d4a),_0x4ccb4d[_0x4b9baf(0xe7)](_0x4e5d75,_0x135d4a),_0x135d4a;}catch(_0x3e4b3b){return console[_0x4b9baf(0x165)](_0x19e456+'\x20Error\x20resolving\x20enhancement\x20'+_0x4e5d75+':',_0x3e4b3b),null;}}self[_0x4dd480(0xee)]('install',_0x485d23=>{const _0x51025a=_0x4dd480;console[_0x51025a(0x1d2)](_0x19e456+_0x51025a(0xde)),_0x485d23[_0x51025a(0x115)](((async()=>{const _0x47fd06=_0x51025a;console['log'](_0x19e456+'\x20Calling\x20skipWaiting()...'),await self['skipWaiting'](),console[_0x47fd06(0x1d2)](_0x19e456+_0x47fd06(0x18c));})()));}),self[_0x4dd480(0xee)](_0x4dd480(0x12d),_0x10551e=>{const _0x57fbde=_0x4dd480;console[_0x57fbde(0x1d2)](_0x19e456+_0x57fbde(0xfb)),_0x10551e['waitUntil'](((async()=>{const _0x83a0b5=_0x57fbde;console[_0x83a0b5(0x1d2)](_0x19e456+_0x83a0b5(0x11e)),await self[_0x83a0b5(0x101)][_0x83a0b5(0xe1)](),console[_0x83a0b5(0x1d2)](_0x19e456+'\x20clients.claim()\x20complete');})()));}),self[_0x4dd480(0xee)](_0x4dd480(0x144),_0x573bb9=>{const _0x214844=_0x4dd480,_0x4f8a4f=_0x573bb9['data'];console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x1e5),_0x4f8a4f);if(!_0x4f8a4f||typeof _0x4f8a4f!==_0x214844(0xd9)){console[_0x214844(0x1d2)](_0x19e456+'\x20Invalid\x20message\x20data\x20-\x20ignoring');return;}switch(_0x4f8a4f[_0x214844(0x137)]){case _0x435216:{console[_0x214844(0x1d2)](_0x19e456+_0x214844(0xe3));const _0x1c5fb8=_0x4f8a4f[_0x214844(0x1a7)];_0xdc301c={'publishableKey':_0x1c5fb8[_0x214844(0x1b6)]??'','callbackBypass':_0x1c5fb8[_0x214844(0xf1)]??[_0x214844(0xe5)],'securityMode':_0x1c5fb8[_0x214844(0xdb)]??_0x214844(0x12a)},console['log'](_0x19e456+_0x214844(0x1f2),JSON[_0x214844(0xf5)](_0xdc301c,null,0x2));break;}case _0x474205:console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x17c)),_0xdc301c={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x214844(0x12a)},_0x49c5a9=null,_0x5a4a87=null,_0x3dbaf7=null,_0x4ccb4d['clear'](),console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x145));break;default:console[_0x214844(0x1d2)](_0x19e456+_0x214844(0x1dc)+_0x4f8a4f[_0x214844(0x137)]);break;}}),self[_0x4dd480(0xee)](_0x4dd480(0x176),_0xc40769=>{const _0x9e8212=_0x4dd480,_0xc65b72=new URL(_0xc40769[_0x9e8212(0x1b2)][_0x9e8212(0x1f0)]);if(_0xc65b72[_0x9e8212(0x19b)]!==self['location'][_0x9e8212(0x19b)])return;_0xc40769[_0x9e8212(0x11d)](_0x381252(_0xc40769));});async function _0x381252(_0xd04799){const _0x229be8=_0x4dd480,{request:_0x39c73b}=_0xd04799,_0x4e19fe=new URL(_0x39c73b[_0x229be8(0x1f0)]),_0x1f2c18=_0x39c73b[_0x229be8(0x117)]===_0x229be8(0x186),_0x55121e=_0x1f2c18||_0x4e19fe[_0x229be8(0x19b)]===self[_0x229be8(0x106)][_0x229be8(0x19b)];_0x55121e&&(console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x1e1)+_0x39c73b[_0x229be8(0x1e4)]+'\x20'+_0x4e19fe[_0x229be8(0x172)]+_0x4e19fe[_0x229be8(0x1e8)]),console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x14a)+_0x39c73b[_0x229be8(0x117)]+_0x229be8(0x139)+_0x39c73b['destination']));if(!_0x309a43(_0x39c73b))return _0x55121e&&console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x1a1)),fetch(_0x39c73b);const _0x2be49a=_0x1f2c18?await _0x32e77f(_0x4e19fe,_0x1f2c18):_0x439f11();_0x55121e&&console[_0x229be8(0x1d2)](_0x19e456+'\x20\x20\x20enhancementUrl:\x20'+(_0x2be49a[_0x229be8(0x127)]||_0x229be8(0x13c)));if(_0x388007(_0x2be49a,_0x4e19fe[_0x229be8(0x172)]))return _0x55121e&&console['log'](_0x19e456+_0x229be8(0x10c)+_0x4e19fe['pathname']+_0x229be8(0x141)),fetch(_0x39c73b);if(_0x1f2c18)return console[_0x229be8(0x1d2)](_0x19e456+'\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation'),_0x371c53(_0x39c73b,_0x2be49a);if(!_0x187e96(_0x2be49a,_0x39c73b,_0x4e19fe))return _0x55121e&&console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x185)),fetch(_0x39c73b);console[_0x229be8(0x1d2)](_0x19e456+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x4e19fe[_0x229be8(0x172)]);const _0x933e6f=await _0x328d49(_0x2be49a,_0x39c73b,_0x4e19fe);if(_0x933e6f)return console['log'](_0x19e456+_0x229be8(0x178)+_0x4e19fe[_0x229be8(0x172)]),_0x933e6f;return console[_0x229be8(0x1d2)](_0x19e456+_0x229be8(0x13d)+_0x4e19fe[_0x229be8(0x172)]+_0x229be8(0x166)),fetch(_0x39c73b);}async function _0x371c53(_0x365403,_0x50d7dd){const _0x1fec4f=_0x4dd480,_0x356469=new URL(_0x365403[_0x1fec4f(0x1f0)]);console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x15b)+_0x356469[_0x1fec4f(0x172)]+_0x356469['search']),console['log'](_0x19e456+_0x1fec4f(0x100)+(_0x50d7dd[_0x1fec4f(0x127)]||_0x1fec4f(0x13c))),console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0xd1));const _0x15fe2d=await fetch(_0x365403);console[_0x1fec4f(0x1d2)](_0x19e456+'\x20\x20\x20Production\x20response:\x20'+_0x15fe2d[_0x1fec4f(0x181)]+'\x20'+_0x15fe2d['statusText']),console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x1d9)+_0x15fe2d[_0x1fec4f(0x1f4)][_0x1fec4f(0x1ad)](_0x1fec4f(0x193)));if(!_0x4a9fb6(_0x15fe2d))return console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x126)),_0x15fe2d;console[_0x1fec4f(0x1d2)](_0x19e456+'\x20\x20\x20HTML\x20response\x20-\x20processing...');const _0x562792=_0x44f13b(_0x15fe2d,'GET');console['log'](_0x19e456+_0x1fec4f(0xf7));const _0x567d6e=await _0x3eed2b(_0x50d7dd,_0x365403),_0x37e18c=_0x567d6e?'enhancement':_0x1fec4f(0xeb);console[_0x1fec4f(0x1d2)](_0x19e456+_0x1fec4f(0x12f)+_0x37e18c);const _0x2a01a1=_0x567d6e??_0x562792,_0x22daaa=_0x37e18c==='enhancement'||_0x356469[_0x1fec4f(0x1e9)][_0x1fec4f(0x1b5)](_0x1fec4f(0x1a3))||_0x356469[_0x1fec4f(0x1e9)][_0x1fec4f(0x1b5)](_0x1fec4f(0xff));console['log'](_0x19e456+_0x1fec4f(0x128)+_0x22daaa);try{console['log'](_0x19e456+_0x1fec4f(0x13a));const _0x4f69e6=await _0x1cff46(_0x50d7dd,_0x2a01a1,_0x37e18c,_0x22daaa);return console['log'](_0x19e456+_0x1fec4f(0x180)),_0x4f69e6;}catch(_0x291399){return console[_0x1fec4f(0x165)](_0x19e456+_0x1fec4f(0x112),_0x291399),_0x1524f4('info',_0x1fec4f(0x129),_0x291399),_0x2a01a1;}}return _0x54c450(_0x232242);})());
@@ -1 +1 @@
1
- var _0x2b8228=_0x47c2;(function(_0x260337,_0x54d256){var _0x33c68c=_0x47c2,_0x5b6b26=_0x260337();while(!![]){try{var _0x267486=parseInt(_0x33c68c(0x14d))/0x1*(parseInt(_0x33c68c(0x143))/0x2)+-parseInt(_0x33c68c(0x148))/0x3*(-parseInt(_0x33c68c(0x14c))/0x4)+parseInt(_0x33c68c(0x136))/0x5*(-parseInt(_0x33c68c(0x13d))/0x6)+-parseInt(_0x33c68c(0x152))/0x7*(-parseInt(_0x33c68c(0x137))/0x8)+-parseInt(_0x33c68c(0x155))/0x9+parseInt(_0x33c68c(0x150))/0xa*(parseInt(_0x33c68c(0x146))/0xb)+-parseInt(_0x33c68c(0x147))/0xc;if(_0x267486===_0x54d256)break;else _0x5b6b26['push'](_0x5b6b26['shift']());}catch(_0x2cf63d){_0x5b6b26['push'](_0x5b6b26['shift']());}}}(_0xac94,0xb97f8));import{fileURLToPath}from'url';function _0xac94(){var _0x122cd1=['4cBMiSw','application/javascript','use','11DYOmhJ','18233040tHweWZ','3EsGLoJ','utf-8','Content-Type','stringify','1265180vtyEuM','435439qDdlzR','<head$1>','emitFile','9622430StTATQ','callbackBypass','427uqXCOD','end','../assets/enhance-runtime.js','3491820ErYJQk','setHeader','115RAjWfk','180680LTOgrj','middlewares','/sw-enhance.js','assets/enhance-runtime.js','publishableKey','url','224322AZBXIk','enhance-sandbox','replace','asset','/assets/enhance-runtime.js','sw-enhance.js'];_0xac94=function(){return _0x122cd1;};return _0xac94();}import{readFile}from'fs/promises';function _0x47c2(_0x2b18d5,_0x158203){_0x2b18d5=_0x2b18d5-0x136;var _0xac9483=_0xac94();var _0x47c253=_0xac9483[_0x2b18d5];return _0x47c253;}var runtimePath=fileURLToPath(new URL(_0x2b8228(0x154),import.meta.url)),swPath=fileURLToPath(new URL('../sw-enhance.js',import.meta.url)),RUNTIME_URL=_0x2b8228(0x141),SW_URL=_0x2b8228(0x139);function buildInitScript(_0x181c7e){var _0x5771c5=_0x2b8228;const _0x473e82={'publishableKey':_0x181c7e[_0x5771c5(0x13b)],'callbackBypass':_0x181c7e[_0x5771c5(0x151)],'__development':_0x181c7e['__development']},_0x8200de=JSON[_0x5771c5(0x14b)](_0x473e82);return'<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22'+RUNTIME_URL+'\x22;\x0aEnhance.init('+_0x8200de+');\x0a</script>';}var enhance=_0x39bd97=>{var _0x58dc1c=_0x2b8228;let _0x4fa4a8=null,_0xb29a8f=null;async function _0x12e6cb(){var _0x84d460=_0x47c2;!_0x4fa4a8&&(_0x4fa4a8=await readFile(runtimePath,_0x84d460(0x149))),!_0xb29a8f&&(_0xb29a8f=await readFile(swPath,_0x84d460(0x149)));}return{'name':_0x58dc1c(0x13e),'configureServer'(_0x231777){var _0x5d6f81=_0x58dc1c;_0x231777[_0x5d6f81(0x138)]['use'](async(_0x2ceef9,_0x316ab3,_0x16dae0)=>{var _0x349698=_0x5d6f81;if(_0x2ceef9['url']===RUNTIME_URL||_0x2ceef9[_0x349698(0x13c)]===SW_URL){await _0x12e6cb(),_0x316ab3[_0x349698(0x156)](_0x349698(0x14a),_0x349698(0x144)),_0x316ab3[_0x349698(0x153)](_0x2ceef9[_0x349698(0x13c)]===RUNTIME_URL?_0x4fa4a8:_0xb29a8f);return;}_0x16dae0();});},'configurePreviewServer'(_0xe85632){var _0x506c21=_0x58dc1c;_0xe85632[_0x506c21(0x138)][_0x506c21(0x145)](async(_0x59925d,_0x3e7001,_0x23b279)=>{var _0x2d49ea=_0x506c21;if(_0x59925d[_0x2d49ea(0x13c)]===RUNTIME_URL||_0x59925d[_0x2d49ea(0x13c)]===SW_URL){await _0x12e6cb(),_0x3e7001[_0x2d49ea(0x156)]('Content-Type',_0x2d49ea(0x144)),_0x3e7001[_0x2d49ea(0x153)](_0x59925d['url']===RUNTIME_URL?_0x4fa4a8:_0xb29a8f);return;}_0x23b279();});},async 'generateBundle'(){var _0x46df81=_0x58dc1c;await _0x12e6cb(),this['emitFile']({'type':_0x46df81(0x140),'fileName':_0x46df81(0x13a),'source':_0x4fa4a8}),this[_0x46df81(0x14f)]({'type':_0x46df81(0x140),'fileName':_0x46df81(0x142),'source':_0xb29a8f});},'transformIndexHtml'(_0x4b8e8c){var _0x4fd8f1=_0x58dc1c;const _0x5625db=buildInitScript(_0x39bd97);return _0x4b8e8c[_0x4fd8f1(0x13f)](/<head([^>]*)>/,_0x4fd8f1(0x14e)+_0x5625db);}};};export{enhance};
1
+ function _0x36d1(){var _0x372b37=['enhance-sandbox','18wrAznv','../sw-enhance.js','publishableKey','assets/enhance-runtime.js','middlewares','<head$1>','2164VLgvIh','Content-Type','application/javascript','__development','../assets/enhance-runtime.js','asset','replace','3498AvrTSZ','651UCftHB','3455yBOmiv','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','url','342782IAoRTR','641652vISSKn','emitFile',');\x0a</script>','12536ifqnwO','\x22;\x0aEnhance.init(','setHeader','end','3297800KGvHjL','use','1244RTsejK','utf-8','stringify','705oifAie'];_0x36d1=function(){return _0x372b37;};return _0x36d1();}var _0x383af9=_0x53b4;function _0x53b4(_0xa27656,_0xe0fc67){_0xa27656=_0xa27656-0x1c3;var _0x36d196=_0x36d1();var _0x53b4b1=_0x36d196[_0xa27656];return _0x53b4b1;}(function(_0x169506,_0x468490){var _0x204cfe=_0x53b4,_0x5d6fc7=_0x169506();while(!![]){try{var _0x51aab1=parseInt(_0x204cfe(0x1d6))/0x1*(parseInt(_0x204cfe(0x1d3))/0x2)+-parseInt(_0x204cfe(0x1ca))/0x3+parseInt(_0x204cfe(0x1de))/0x4*(-parseInt(_0x204cfe(0x1c6))/0x5)+-parseInt(_0x204cfe(0x1c4))/0x6*(-parseInt(_0x204cfe(0x1c5))/0x7)+-parseInt(_0x204cfe(0x1cd))/0x8*(parseInt(_0x204cfe(0x1d8))/0x9)+parseInt(_0x204cfe(0x1d1))/0xa+parseInt(_0x204cfe(0x1c9))/0xb;if(_0x51aab1===_0x468490)break;else _0x5d6fc7['push'](_0x5d6fc7['shift']());}catch(_0x10ef8d){_0x5d6fc7['push'](_0x5d6fc7['shift']());}}}(_0x36d1,0x402a6));import{fileURLToPath}from'url';import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x383af9(0x1e2),import.meta.url)),swPath=fileURLToPath(new URL(_0x383af9(0x1d9),import.meta.url)),RUNTIME_URL='/assets/enhance-runtime.js',SW_URL='/sw-enhance.js';function buildInitScript(_0x497ad4){var _0x19262f=_0x383af9;const _0x569e42={'publishableKey':_0x497ad4[_0x19262f(0x1da)],'callbackBypass':_0x497ad4['callbackBypass'],'__development':_0x497ad4[_0x19262f(0x1e1)]},_0x3733cb=JSON[_0x19262f(0x1d5)](_0x569e42);return _0x19262f(0x1c7)+RUNTIME_URL+_0x19262f(0x1ce)+_0x3733cb+_0x19262f(0x1cc);}var enhance=_0x415a2d=>{var _0x25f2d0=_0x383af9;let _0x199f98=null,_0x367c4e=null;async function _0x27460f(){var _0x87e592=_0x53b4;!_0x199f98&&(_0x199f98=await readFile(runtimePath,_0x87e592(0x1d4))),!_0x367c4e&&(_0x367c4e=await readFile(swPath,_0x87e592(0x1d4)));}return{'name':_0x25f2d0(0x1d7),'configureServer'(_0x12e45d){var _0x391dba=_0x25f2d0;_0x12e45d[_0x391dba(0x1dc)][_0x391dba(0x1d2)](async(_0x3c4768,_0x30dc7a,_0x3e04bc)=>{var _0x2998b0=_0x391dba;if(_0x3c4768[_0x2998b0(0x1c8)]===RUNTIME_URL||_0x3c4768[_0x2998b0(0x1c8)]===SW_URL){await _0x27460f(),_0x30dc7a[_0x2998b0(0x1cf)](_0x2998b0(0x1df),_0x2998b0(0x1e0)),_0x30dc7a['end'](_0x3c4768[_0x2998b0(0x1c8)]===RUNTIME_URL?_0x199f98:_0x367c4e);return;}_0x3e04bc();});},'configurePreviewServer'(_0x2c7272){var _0x3c682e=_0x25f2d0;_0x2c7272[_0x3c682e(0x1dc)]['use'](async(_0x247be2,_0x2acdac,_0x12af36)=>{var _0x4784a5=_0x3c682e;if(_0x247be2['url']===RUNTIME_URL||_0x247be2['url']===SW_URL){await _0x27460f(),_0x2acdac[_0x4784a5(0x1cf)](_0x4784a5(0x1df),_0x4784a5(0x1e0)),_0x2acdac[_0x4784a5(0x1d0)](_0x247be2[_0x4784a5(0x1c8)]===RUNTIME_URL?_0x199f98:_0x367c4e);return;}_0x12af36();});},async 'generateBundle'(){var _0x466c70=_0x25f2d0;await _0x27460f(),this[_0x466c70(0x1cb)]({'type':_0x466c70(0x1e3),'fileName':_0x466c70(0x1db),'source':_0x199f98}),this[_0x466c70(0x1cb)]({'type':_0x466c70(0x1e3),'fileName':'sw-enhance.js','source':_0x367c4e});},'transformIndexHtml'(_0x5c77cd){var _0x2f2524=_0x25f2d0;const _0x448d31=buildInitScript(_0x415a2d);return _0x5c77cd[_0x2f2524(0x1c3)](/<head([^>]*)>/,_0x2f2524(0x1dd)+_0x448d31);}};};export{enhance};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhance-eng/sandbox",
3
- "version": "0.3.21-beta.a1057ef",
3
+ "version": "0.3.21-beta.fdfcd31",
4
4
  "type": "module",
5
5
  "description": "Enhance preview bootstrap and tooling package.",
6
6
  "license": "MIT",