| 1 |
const m=new Map,h=new Map,d=new Set,a=new Set;let _=new WeakMap;function b(o){let n=o.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n===void 0){let t=0;o.__REACT_DEVTOOLS_GLOBAL_HOOK__=n={renderers:new Map,supportsFiber:!0,inject:e=>t++,onScheduleFiberRoot:(e,i,s)=>{},onCommitFiberRoot:(e,i,s,c)=>{},onCommitFiberUnmount(){}}}if(n.isDisabled){console.warn("Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled.");return}const R=n.inject;n.inject=function(t){const e=R.apply(this,arguments);return typeof t.scheduleRefresh=="function"&&typeof t.setRefreshHandler=="function"&&m.set(e,t),e},n.renderers.forEach((t,e)=>{typeof t.scheduleRefresh=="function"&&typeof t.setRefreshHandler=="function"&&m.set(e,t)});const p=n.onCommitFiberRoot,w=n.onScheduleFiberRoot||(()=>{});n.onScheduleFiberRoot=function(t,e,i){return a.delete(e),_!==null&&_.set(e,i),w.apply(this,arguments)},n.onCommitFiberRoot=function(t,e,i,s){const c=m.get(t);if(c!==void 0){h.set(e,c);const f=e.current,u=f.alternate;if(u!==null){const l=u.memoizedState!=null&&u.memoizedState.element!=null&&d.has(e),r=f.memoizedState!=null&&f.memoizedState.element!=null;!l&&r?(d.add(e),a.delete(e)):l&&r||(l&&!r?(d.delete(e),s?a.add(e):h.delete(e)):!l&&!r&&s&&a.add(e))}else d.add(e)}return p.apply(this,arguments)}}window.__registerBeforePerformReactRefresh=o=>{};const O={injectIntoGlobalHook:b};O.injectIntoGlobalHook(window);window.$RefreshReg$=()=>{};window.$RefreshSig$=()=>o=>o;window.__vite_plugin_react_preamble_installed__=!0; |