123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- const Refresh = require('react-refresh/runtime');
- function getModuleExports(moduleId) {
- return __webpack_require__.c[moduleId].exports;
- }
- function getReactRefreshBoundarySignature(moduleExports) {
- const signature = [];
- signature.push(Refresh.getFamilyByType(moduleExports));
- if (moduleExports == null || typeof moduleExports !== 'object') {
-
- return signature;
- }
- for (let key in moduleExports) {
- if (key === '__esModule') {
- continue;
- }
- signature.push(key);
- signature.push(Refresh.getFamilyByType(moduleExports[key]));
- }
- return signature;
- }
- function createDebounceUpdate() {
-
- let refreshTimeout;
-
- function enqueueUpdate(callback) {
- if (typeof refreshTimeout === 'undefined') {
- refreshTimeout = setTimeout(function () {
- refreshTimeout = undefined;
- Refresh.performReactRefresh();
- callback();
- }, 30);
- }
- }
- return enqueueUpdate;
- }
- function isReactRefreshBoundary(moduleExports) {
- if (Refresh.isLikelyComponentType(moduleExports)) {
- return true;
- }
- if (moduleExports === undefined || moduleExports === null || typeof moduleExports !== 'object') {
-
- return false;
- }
- let hasExports = false;
- let areAllExportsComponents = true;
- for (let key in moduleExports) {
- hasExports = true;
-
- if (key === '__esModule') {
- continue;
- }
-
-
-
-
- const exportValue = moduleExports[key];
- if (!Refresh.isLikelyComponentType(exportValue)) {
- areAllExportsComponents = false;
- }
- }
- return hasExports && areAllExportsComponents;
- }
- function registerExportsForReactRefresh(moduleExports, moduleId) {
- if (Refresh.isLikelyComponentType(moduleExports)) {
-
- Refresh.register(moduleExports, moduleId + ' %exports%');
- }
- if (moduleExports === undefined || moduleExports === null || typeof moduleExports !== 'object') {
-
- return;
- }
- for (let key in moduleExports) {
-
- if (key === '__esModule') {
- continue;
- }
- const exportValue = moduleExports[key];
- if (Refresh.isLikelyComponentType(exportValue)) {
- const typeID = moduleId + ' %exports% ' + key;
- Refresh.register(exportValue, typeID);
- }
- }
- }
- function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
- const prevSignature = getReactRefreshBoundarySignature(prevExports);
- const nextSignature = getReactRefreshBoundarySignature(nextExports);
- if (prevSignature.length !== nextSignature.length) {
- return true;
- }
- for (let i = 0; i < nextSignature.length; i += 1) {
- if (prevSignature[i] !== nextSignature[i]) {
- return true;
- }
- }
- return false;
- }
- module.exports = Object.freeze({
- enqueueUpdate: createDebounceUpdate(),
- getModuleExports: getModuleExports,
- isReactRefreshBoundary: isReactRefreshBoundary,
- shouldInvalidateReactRefreshBoundary: shouldInvalidateReactRefreshBoundary,
- registerExportsForReactRefresh: registerExportsForReactRefresh,
- });
|