From 1c63746cdeaa88feb6967ae1cf861359bb321134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=82=E5=BA=86?= Date: Tue, 24 Dec 2024 18:52:35 +0800 Subject: [PATCH] update github page --- ...{AsyncComponent-CAmbQ5Ri.js => AsyncComponent-CLqXezwe.js} | 2 +- docs/assets/{index-DMiq6jr4.js => index-Cmp7tG_c.js} | 4 ++-- docs/index.html | 2 +- src/router/index.tsx | 2 +- vite.config.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename docs/assets/{AsyncComponent-CAmbQ5Ri.js => AsyncComponent-CLqXezwe.js} (73%) rename docs/assets/{index-DMiq6jr4.js => index-Cmp7tG_c.js} (94%) diff --git a/docs/assets/AsyncComponent-CAmbQ5Ri.js b/docs/assets/AsyncComponent-CLqXezwe.js similarity index 73% rename from docs/assets/AsyncComponent-CAmbQ5Ri.js rename to docs/assets/AsyncComponent-CLqXezwe.js index b72bc04..36974da 100644 --- a/docs/assets/AsyncComponent-CAmbQ5Ri.js +++ b/docs/assets/AsyncComponent-CLqXezwe.js @@ -1 +1 @@ -import{r as s,j as e}from"./index-DMiq6jr4.js";class n extends s.Component{constructor(t){super(t),this.state={}}render(){return e.jsx("div",{children:e.jsxs("h2",{children:["HomeComponentThree ",this.props.title]})})}}export{n as default}; +import{r as s,j as e}from"./index-Cmp7tG_c.js";class n extends s.Component{constructor(t){super(t),this.state={}}render(){return e.jsx("div",{children:e.jsxs("h2",{children:["HomeComponentThree ",this.props.title]})})}}export{n as default}; diff --git a/docs/assets/index-DMiq6jr4.js b/docs/assets/index-Cmp7tG_c.js similarity index 94% rename from docs/assets/index-DMiq6jr4.js rename to docs/assets/index-Cmp7tG_c.js index 4456ac5..6719204 100644 --- a/docs/assets/index-DMiq6jr4.js +++ b/docs/assets/index-Cmp7tG_c.js @@ -65,7 +65,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Qy(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=L.useState(n.state),[i,a]=L.useState(),[u,s]=L.useState({isTransitioning:!1}),[f,c]=L.useState(),[p,S]=L.useState(),[x,k]=L.useState(),N=L.useRef(new Map),{v7_startTransition:v}=r||{},d=L.useCallback(M=>{v?Vy(M):M()},[v]),m=L.useCallback((M,Y)=>{let{deletedFetchers:V,flushSync:de,viewTransitionOpts:ge}=Y;V.forEach(Ce=>N.current.delete(Ce)),M.fetchers.forEach((Ce,St)=>{Ce.data!==void 0&&N.current.set(St,Ce.data)});let Te=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ge||Te){de?qr(()=>o(M)):d(()=>o(M));return}if(de){qr(()=>{p&&(f&&f.resolve(),p.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation})});let Ce=n.window.document.startViewTransition(()=>{qr(()=>o(M))});Ce.finished.finally(()=>{qr(()=>{c(void 0),S(void 0),a(void 0),s({isTransitioning:!1})})}),qr(()=>S(Ce));return}p?(f&&f.resolve(),p.skipTransition(),k({state:M,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation})):(a(M),s({isTransitioning:!0,flushSync:!1,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation}))},[n.window,p,f,N,d]);L.useLayoutEffect(()=>n.subscribe(m),[n,m]),L.useEffect(()=>{u.isTransitioning&&!u.flushSync&&c(new Wy)},[u]),L.useEffect(()=>{if(f&&i&&n.window){let M=i,Y=f.promise,V=n.window.document.startViewTransition(async()=>{d(()=>o(M)),await Y});V.finished.finally(()=>{c(void 0),S(void 0),a(void 0),s({isTransitioning:!1})}),S(V)}},[d,i,f,n.window]),L.useEffect(()=>{f&&i&&l.location.key===i.location.key&&f.resolve()},[f,p,l.location,i]),L.useEffect(()=>{!u.isTransitioning&&x&&(a(x.state),s({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),k(void 0))},[u.isTransitioning,x]),L.useEffect(()=>{},[]);let P=L.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:M=>n.navigate(M),push:(M,Y,V)=>n.navigate(M,{state:Y,preventScrollReset:V==null?void 0:V.preventScrollReset}),replace:(M,Y,V)=>n.navigate(M,{replace:!0,state:Y,preventScrollReset:V==null?void 0:V.preventScrollReset})}),[n]),O=n.basename||"/",y=L.useMemo(()=>({router:n,navigator:P,static:!1,basename:O}),[n,P,O]),j=L.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return L.createElement(L.Fragment,null,L.createElement(_i.Provider,{value:y},L.createElement(Np.Provider,{value:l},L.createElement(By.Provider,{value:N.current},L.createElement(Ay.Provider,{value:u},L.createElement(Ny,{basename:O,location:l.location,navigationType:l.historyAction,navigator:P,future:j},l.initialized||n.future.v7_partialHydration?L.createElement(Gy,{routes:n.routes,future:n.future,state:l}):t))))),null)}const Gy=L.memo(Yy);function Yy(e){let{routes:t,future:n,state:r}=e;return Ey(t,void 0,r,n)}var $c;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($c||($c={}));var Hc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hc||(Hc={}));/*! ***************************************************************************** + */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Qy(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=L.useState(n.state),[i,a]=L.useState(),[u,s]=L.useState({isTransitioning:!1}),[f,c]=L.useState(),[p,S]=L.useState(),[x,k]=L.useState(),N=L.useRef(new Map),{v7_startTransition:v}=r||{},d=L.useCallback(M=>{v?Vy(M):M()},[v]),m=L.useCallback((M,Y)=>{let{deletedFetchers:V,flushSync:de,viewTransitionOpts:ge}=Y;V.forEach(Ce=>N.current.delete(Ce)),M.fetchers.forEach((Ce,St)=>{Ce.data!==void 0&&N.current.set(St,Ce.data)});let Te=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ge||Te){de?qr(()=>o(M)):d(()=>o(M));return}if(de){qr(()=>{p&&(f&&f.resolve(),p.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation})});let Ce=n.window.document.startViewTransition(()=>{qr(()=>o(M))});Ce.finished.finally(()=>{qr(()=>{c(void 0),S(void 0),a(void 0),s({isTransitioning:!1})})}),qr(()=>S(Ce));return}p?(f&&f.resolve(),p.skipTransition(),k({state:M,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation})):(a(M),s({isTransitioning:!0,flushSync:!1,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation}))},[n.window,p,f,N,d]);L.useLayoutEffect(()=>n.subscribe(m),[n,m]),L.useEffect(()=>{u.isTransitioning&&!u.flushSync&&c(new Wy)},[u]),L.useEffect(()=>{if(f&&i&&n.window){let M=i,Y=f.promise,V=n.window.document.startViewTransition(async()=>{d(()=>o(M)),await Y});V.finished.finally(()=>{c(void 0),S(void 0),a(void 0),s({isTransitioning:!1})}),S(V)}},[d,i,f,n.window]),L.useEffect(()=>{f&&i&&l.location.key===i.location.key&&f.resolve()},[f,p,l.location,i]),L.useEffect(()=>{!u.isTransitioning&&x&&(a(x.state),s({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),k(void 0))},[u.isTransitioning,x]),L.useEffect(()=>{},[]);let P=L.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:M=>n.navigate(M),push:(M,Y,V)=>n.navigate(M,{state:Y,preventScrollReset:V==null?void 0:V.preventScrollReset}),replace:(M,Y,V)=>n.navigate(M,{replace:!0,state:Y,preventScrollReset:V==null?void 0:V.preventScrollReset})}),[n]),O=n.basename||"/",y=L.useMemo(()=>({router:n,navigator:P,static:!1,basename:O}),[n,P,O]),j=L.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return L.createElement(L.Fragment,null,L.createElement(_i.Provider,{value:y},L.createElement(Np.Provider,{value:l},L.createElement(By.Provider,{value:N.current},L.createElement(Ay.Provider,{value:u},L.createElement(Ny,{basename:O,location:l.location,navigationType:l.historyAction,navigator:P,future:j},l.initialized||n.future.v7_partialHydration?L.createElement(Gy,{routes:n.routes,future:n.future,state:l}):t))))),null)}const Gy=L.memo(Yy);function Yy(e){let{routes:t,future:n,state:r}=e;return Ey(t,void 0,r,n)}var $c;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($c||($c={}));var Hc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hc||(Hc={}));/*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -78,4 +78,4 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var Vc;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof ds=="object"?ds:typeof self=="object"?self:typeof this=="object"?this:a(),r=l(e);typeof n.Reflect<"u"&&(r=l(n.Reflect,r)),t(r,n),typeof n.Reflect>"u"&&(n.Reflect=e);function l(u,s){return function(f,c){Object.defineProperty(u,f,{configurable:!0,writable:!0,value:c}),s&&s(f,c)}}function o(){try{return Function("return this;")()}catch{}}function i(){try{return(0,eval)("(function() { return this; })()")}catch{}}function a(){return o()||i()}})(function(t,n){var r=Object.prototype.hasOwnProperty,l=typeof Symbol=="function",o=l&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=l&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",u={__proto__:[]}instanceof Array,s=!a&&!u,f={create:a?function(){return un(Object.create(null))}:u?function(){return un({__proto__:null})}:function(){return un({})},has:s?function(w,E){return r.call(w,E)}:function(w,E){return E in w},get:s?function(w,E){return r.call(w,E)?w[E]:void 0}:function(w,E){return w[E]}},c=Object.getPrototypeOf(Function),p=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:$t(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Dt(),x=typeof WeakMap=="function"?WeakMap:Xl(),k=l?Symbol.for("@reflect-metadata:registry"):void 0,N=Kt(),v=Nn(N);function d(w,E,C,D){if(I(C)){if(!He(w))throw new TypeError;if(!Fr(E))throw new TypeError;return ge(w,E)}else{if(!He(w))throw new TypeError;if(!ce(E))throw new TypeError;if(!ce(D)&&!I(D)&&!Qe(D))throw new TypeError;return Qe(D)&&(D=void 0),C=Et(C),Te(w,E,C,D)}}t("decorate",d);function m(w,E){function C(D,Z){if(!ce(D))throw new TypeError;if(!I(Z)&&!Ci(Z))throw new TypeError;F(w,E,D,Z)}return C}t("metadata",m);function P(w,E,C,D){if(!ce(C))throw new TypeError;return I(D)||(D=Et(D)),F(w,E,C,D)}t("defineMetadata",P);function O(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),Ce(w,E,C)}t("hasMetadata",O);function y(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),St(w,E,C)}t("hasOwnMetadata",y);function j(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),Mt(w,E,C)}t("getMetadata",j);function M(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),Ee(w,E,C)}t("getOwnMetadata",M);function Y(w,E){if(!ce(w))throw new TypeError;return I(E)||(E=Et(E)),q(w,E)}t("getMetadataKeys",Y);function V(w,E){if(!ce(w))throw new TypeError;return I(E)||(E=Et(E)),b(w,E)}t("getOwnMetadataKeys",V);function de(w,E,C){if(!ce(E))throw new TypeError;if(I(C)||(C=Et(C)),!ce(E))throw new TypeError;I(C)||(C=Et(C));var D=Xt(E,C,!1);return I(D)?!1:D.OrdinaryDeleteMetadata(w,E,C)}t("deleteMetadata",de);function ge(w,E){for(var C=w.length-1;C>=0;--C){var D=w[C],Z=D(E);if(!I(Z)&&!Qe(Z)){if(!Fr(Z))throw new TypeError;E=Z}}return E}function Te(w,E,C,D){for(var Z=w.length-1;Z>=0;--Z){var ze=w[Z],Le=ze(E,C,D);if(!I(Le)&&!Qe(Le)){if(!ce(Le))throw new TypeError;D=Le}}return D}function Ce(w,E,C){var D=St(w,E,C);if(D)return!0;var Z=Ur(E);return Qe(Z)?!1:Ce(w,Z,C)}function St(w,E,C){var D=Xt(E,C,!1);return I(D)?!1:Vl(D.OrdinaryHasOwnMetadata(w,E,C))}function Mt(w,E,C){var D=St(w,E,C);if(D)return Ee(w,E,C);var Z=Ur(E);if(!Qe(Z))return Mt(w,Z,C)}function Ee(w,E,C){var D=Xt(E,C,!1);if(!I(D))return D.OrdinaryGetOwnMetadata(w,E,C)}function F(w,E,C,D){var Z=Xt(C,D,!0);Z.OrdinaryDefineOwnMetadata(w,E,C,D)}function q(w,E){var C=b(w,E),D=Ur(w);if(D===null)return C;var Z=q(D,E);if(Z.length<=0)return C;if(C.length<=0)return Z;for(var ze=new S,Le=[],te=0,z=C;te=0&&z=this._keys.length?(this._index=-1,this._keys=E,this._values=E):this._index++,{value:U,done:!1}}return{value:void 0,done:!0}},te.prototype.throw=function(z){throw this._index>=0&&(this._index=-1,this._keys=E,this._values=E),z},te.prototype.return=function(z){return this._index>=0&&(this._index=-1,this._keys=E,this._values=E),{value:z,done:!0}},te}(),D=function(){function te(){this._keys=[],this._values=[],this._cacheKey=w,this._cacheIndex=-2}return Object.defineProperty(te.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),te.prototype.has=function(z){return this._find(z,!1)>=0},te.prototype.get=function(z){var U=this._find(z,!1);return U>=0?this._values[U]:void 0},te.prototype.set=function(z,U){var A=this._find(z,!0);return this._values[A]=U,this},te.prototype.delete=function(z){var U=this._find(z,!1);if(U>=0){for(var A=this._keys.length,Q=U+1;Q=((r=ru[t])===null||r===void 0?void 0:r.level)},Xy=function(){function e(t){this.description=t.description,this.name=t.name||"",this.reactBoot=t.reactBoot,this.modulesLoader=t.modulesLoader,this.logLevel=t.logLevel||"log",this.components=t.components||new Map}return e.prototype.logger=function(t,n){n===void 0&&(n="log"),Ky(n,this.logLevel)&&ki("[".concat(String(this.name),"] ").concat(t),n)},e}(),Zy=function(){function e(t){this.isAsync=!1,this.name=t.name,this.version=t.version,this.description=t.description,this.isAsync=t.isAsync,this.component=t.component}return e}(),Jy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(r[o]=l[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dt=function(e){Jy(t,e);function t(n){var r=e.call(this,n)||this;return r.name=r.constructor.name,Error.captureStackTrace(r,r.constructor),console.error("ReactBootError: ".concat(r.name," ").concat(n)),r}return t}(Error),qy=function(e,t,n,r){function l(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(f){try{s(r.next(f))}catch(c){i(c)}}function u(f){try{s(r.throw(f))}catch(c){i(c)}}function s(f){f.done?o(f.value):l(f.value).then(a,u)}s((r=r.apply(e,t||[])).next())})},Up=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,l,o,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(s){return function(f){return u([s,f])}}function u(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(n=0)),n;)try{if(r=1,l&&(o=s[0]&2?l.return:s[0]?l.throw||((o=l.return)&&o.call(l),0):l.next)&&!(o=o.call(l,s[1])).done)return o;switch(l=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,l=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]{}}),mg="modulepreload",yg=function(e){return"/"+e},Wc={},Wp=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=yg(u),u in Wc)return;Wc[u]=!0;const s=u.endsWith(".css"),f=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":mg,s||(c.as="script"),c.crossOrigin="",c.href=u,a&&c.setAttribute("nonce",a),document.head.appendChild(c),s)return new Promise((p,S)=>{c.addEventListener("load",p),c.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return l.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},Qp="/vite.svg",Gp="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='-50%20-50%20100%20100'%20fill='none'%20id='react-boot-icon'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='scale(2)'%3e%3ccircle%20r='25'%20fill='%23667EDE'%3e%3c/circle%3e%3c/g%3e%3cg%20transform='scale(0.055)%20translate(-230,%20-200)'%3e%3cpath%20fill='%23fff'%20d='M365.7,296.4c-49.5,66.1-155.9,43.7-223.7,47c0,0-12.1,0.8-24.1,2.5c0,0,4.6-2.1,10.4-4.2%20c47.8-16.6,70.3-20,99.4-34.9c54.5-27.9,108.9-89,119.8-152.2c-20.8,60.7-84,113.1-141.4,134.3c-39.5,14.6-110.6,28.7-110.6,28.7%20l-2.9-1.7c-48.2-23.7-49.9-128.5,38.3-162.2c38.7-15,75.3-6.7,117.3-16.6c44.5-10.4,96.1-43.7,116.8-87.3%20C388.1,120.1,416.4,229,365.7,296.4z'%3e%3c/path%3e%3c/g%3e%3cg%20stroke='%23fff'%20stroke-width='2'%20fill='none'%20transform='scale(2)'%3e%3cellipse%20rx='20'%20ry='9'%3e%3c/ellipse%3e%3cellipse%20rx='20'%20ry='9'%20transform='rotate(60)'%3e%3c/ellipse%3e%3cellipse%20rx='20'%20ry='9'%20transform='rotate(120)'%3e%3c/ellipse%3e%3c/g%3e%3c/svg%3e";var Qc,Gc,Yc,Kc,Xc,Fn,Zc,Jc,qc,bc,ef;function el(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function tl(e,t,n,r,l){var o={};return Object.keys(r).forEach(function(i){o[i]=r[i]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(i,a){return a(e,t,i)||i},o),o.initializer===void 0?(Object.defineProperty(e,t,o),null):o}let gg=(Qc=br({name:"HomeComponent"}),Gc=br({name:"HomeComponentTwo"}),Yc=br({name:"AsyncComponent"}),Kc=br({name:"Utils",version:"1.0.0"}),Xc=br({name:"Utils",version:"2.0.0"}),Fn=class extends Qn.Component{constructor(t){super(t),el(this,"HomeComponent",Zc,this),el(this,"HomeComponentTwo",Jc,this),el(this,"AsyncComponent",qc,this),el(this,"Utils",bc,this),el(this,"UtilsTwo",ef,this),this.state={visible:!1}}componentDidMount(){setTimeout(()=>{this.setState({visible:!0})},5e3)}render(){const{HomeComponent:t,HomeComponentTwo:n,Utils:r,UtilsTwo:l}=this,o=Qn.lazy(this.AsyncComponent);return J.jsxs(Qn.Fragment,{children:[J.jsxs("div",{children:[J.jsx("a",{href:"https://vitejs.dev",target:"_blank",children:J.jsx("img",{src:Qp,className:"logo",alt:"Vite logo"})}),J.jsx("a",{href:"https://react.dev",target:"_blank",children:J.jsx("img",{src:Gp,className:"logo react",alt:"React logo"})})]}),J.jsx("h1",{children:"React Boot"}),J.jsx("div",{className:"card",children:J.jsxs("p",{children:["Edit ",J.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})}),J.jsx("p",{className:"read-the-docs",children:"Click on the Vite and React logos to learn more"}),J.jsx("p",{children:r.getDate()}),J.jsx("p",{children:l.getDate()}),J.jsx(t,{title:"组件一"}),J.jsx(n,{title:"组件二"}),this.state.visible&&J.jsx(L.Suspense,{fallback:J.jsx("div",{children:"loading..."}),children:J.jsx(o,{title:"异步组件"})})]})}},Zc=tl(Fn.prototype,"HomeComponent",[Qc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jc=tl(Fn.prototype,"HomeComponentTwo",[Gc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qc=tl(Fn.prototype,"AsyncComponent",[Yc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bc=tl(Fn.prototype,"Utils",[Kc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ef=tl(Fn.prototype,"UtilsTwo",[Xc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fn);function Yp(){return J.jsxs(J.Fragment,{children:[J.jsxs("div",{children:[J.jsx("a",{href:"https://vitejs.dev",target:"_blank",children:J.jsx("img",{src:Qp,className:"logo",alt:"Vite logo"})}),J.jsx("a",{href:"https://react.dev",target:"_blank",children:J.jsx("img",{src:Gp,className:"logo react",alt:"React logo"})})]}),J.jsx("h1",{children:"About"}),J.jsx("div",{className:"card",children:J.jsxs("p",{children:["Edit ",J.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})}),J.jsx("p",{className:"read-the-docs",children:"Click on the Vite and React logos to learn more"})]})}const wg=Object.freeze(Object.defineProperty({__proto__:null,default:Yp},Symbol.toStringTag,{value:"Module"}));class Sg extends Qn.Component{render(){return J.jsxs(J.Fragment,{children:[J.jsx("h1",{children:"404 NOT FOUND"}),J.jsx("div",{className:"card",children:J.jsxs("p",{children:["Edit ",J.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})}),J.jsx("p",{className:"read-the-docs",children:"Click on the Vite and React logos to learn more"})]})}}const Eg=L.lazy(()=>Wp(()=>Promise.resolve().then(()=>wg),void 0)),_g=Fy([{path:"/home",element:J.jsx(gg,{})},{path:"/about",element:J.jsx(Yp,{})},{path:"/about-lazy",element:J.jsx(L.Suspense,{children:J.jsx(Eg,{})})},{path:"/",element:J.jsx(Dy,{to:"/home"})},{path:"*",element:J.jsx(Sg,{})}]);var tf,nf;let kg=(tf=cs({name:"HomeComponent"}),tf(nf=class extends L.Component{constructor(t){super(t),this.state={}}render(){return J.jsx("div",{children:J.jsxs("h2",{children:["HomeComponent ",this.props.title]})})}})||nf);const xg=Object.freeze(Object.defineProperty({__proto__:null,default:kg},Symbol.toStringTag,{value:"Module"})),Cg=e=>{const[t]=vg({name:"HomeComponent"});return J.jsxs("div",{children:[J.jsxs("h2",{children:["HomeComponentTwo ",e.title]}),J.jsx("div",{style:{fontSize:"14px",color:"#999999"},children:J.jsx(t,{title:"组件二中使用"})})]})},Pg=Vp({name:"HomeComponentTwo"})(Cg),Rg=Object.freeze(Object.defineProperty({__proto__:null,default:Pg},Symbol.toStringTag,{value:"Module"}));var rf,lf;let Mg=(rf=cs({name:"Utils",version:"1.0.0"}),rf(lf=class{static getDate(){return new Date().toLocaleString()}})||lf);const Tg=Object.freeze(Object.defineProperty({__proto__:null,default:Mg},Symbol.toStringTag,{value:"Module"}));var of,af;let Lg=(of=cs({name:"Utils",version:"2.0.0"}),of(af=class{static getDate(){return`${new Date().toLocaleString()} v2.0.0`}})||af);const Og=Object.freeze(Object.defineProperty({__proto__:null,default:Lg},Symbol.toStringTag,{value:"Module"})),Dg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ng=()=>Wp(()=>import("./AsyncComponent-CAmbQ5Ri.js"),[]),jg={...Object.assign({"./pages/Home/components/HomeComponent.tsx":xg,"./pages/Home/components/HomeComponentTwo.tsx":Rg}),...Object.assign({"./utils/Utils.ts":Tg,"./utils/UtilsTwo.ts":Og,"./utils/interface.ts":Dg}),AsyncComponent:Vp({name:"AsyncComponent",isAsync:!0})(Ng)};var uf,sf;uf=hg({modules:jg}),uf(sf=class{run(){aa.createRoot(document.getElementById("root")).render(J.jsx(Qn.StrictMode,{children:J.jsx(Qy,{router:_g})}))}});export{J as j,L as r}; +***************************************************************************** */var Vc;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof ds=="object"?ds:typeof self=="object"?self:typeof this=="object"?this:a(),r=l(e);typeof n.Reflect<"u"&&(r=l(n.Reflect,r)),t(r,n),typeof n.Reflect>"u"&&(n.Reflect=e);function l(u,s){return function(f,c){Object.defineProperty(u,f,{configurable:!0,writable:!0,value:c}),s&&s(f,c)}}function o(){try{return Function("return this;")()}catch{}}function i(){try{return(0,eval)("(function() { return this; })()")}catch{}}function a(){return o()||i()}})(function(t,n){var r=Object.prototype.hasOwnProperty,l=typeof Symbol=="function",o=l&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=l&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",u={__proto__:[]}instanceof Array,s=!a&&!u,f={create:a?function(){return un(Object.create(null))}:u?function(){return un({__proto__:null})}:function(){return un({})},has:s?function(w,E){return r.call(w,E)}:function(w,E){return E in w},get:s?function(w,E){return r.call(w,E)?w[E]:void 0}:function(w,E){return w[E]}},c=Object.getPrototypeOf(Function),p=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:$t(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Dt(),x=typeof WeakMap=="function"?WeakMap:Xl(),k=l?Symbol.for("@reflect-metadata:registry"):void 0,N=Kt(),v=Nn(N);function d(w,E,C,D){if(I(C)){if(!He(w))throw new TypeError;if(!Fr(E))throw new TypeError;return ge(w,E)}else{if(!He(w))throw new TypeError;if(!ce(E))throw new TypeError;if(!ce(D)&&!I(D)&&!Qe(D))throw new TypeError;return Qe(D)&&(D=void 0),C=Et(C),Te(w,E,C,D)}}t("decorate",d);function m(w,E){function C(D,Z){if(!ce(D))throw new TypeError;if(!I(Z)&&!Ci(Z))throw new TypeError;F(w,E,D,Z)}return C}t("metadata",m);function P(w,E,C,D){if(!ce(C))throw new TypeError;return I(D)||(D=Et(D)),F(w,E,C,D)}t("defineMetadata",P);function O(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),Ce(w,E,C)}t("hasMetadata",O);function y(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),St(w,E,C)}t("hasOwnMetadata",y);function j(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),Mt(w,E,C)}t("getMetadata",j);function M(w,E,C){if(!ce(E))throw new TypeError;return I(C)||(C=Et(C)),Ee(w,E,C)}t("getOwnMetadata",M);function Y(w,E){if(!ce(w))throw new TypeError;return I(E)||(E=Et(E)),q(w,E)}t("getMetadataKeys",Y);function V(w,E){if(!ce(w))throw new TypeError;return I(E)||(E=Et(E)),b(w,E)}t("getOwnMetadataKeys",V);function de(w,E,C){if(!ce(E))throw new TypeError;if(I(C)||(C=Et(C)),!ce(E))throw new TypeError;I(C)||(C=Et(C));var D=Xt(E,C,!1);return I(D)?!1:D.OrdinaryDeleteMetadata(w,E,C)}t("deleteMetadata",de);function ge(w,E){for(var C=w.length-1;C>=0;--C){var D=w[C],Z=D(E);if(!I(Z)&&!Qe(Z)){if(!Fr(Z))throw new TypeError;E=Z}}return E}function Te(w,E,C,D){for(var Z=w.length-1;Z>=0;--Z){var ze=w[Z],Le=ze(E,C,D);if(!I(Le)&&!Qe(Le)){if(!ce(Le))throw new TypeError;D=Le}}return D}function Ce(w,E,C){var D=St(w,E,C);if(D)return!0;var Z=Ur(E);return Qe(Z)?!1:Ce(w,Z,C)}function St(w,E,C){var D=Xt(E,C,!1);return I(D)?!1:Vl(D.OrdinaryHasOwnMetadata(w,E,C))}function Mt(w,E,C){var D=St(w,E,C);if(D)return Ee(w,E,C);var Z=Ur(E);if(!Qe(Z))return Mt(w,Z,C)}function Ee(w,E,C){var D=Xt(E,C,!1);if(!I(D))return D.OrdinaryGetOwnMetadata(w,E,C)}function F(w,E,C,D){var Z=Xt(C,D,!0);Z.OrdinaryDefineOwnMetadata(w,E,C,D)}function q(w,E){var C=b(w,E),D=Ur(w);if(D===null)return C;var Z=q(D,E);if(Z.length<=0)return C;if(C.length<=0)return Z;for(var ze=new S,Le=[],te=0,z=C;te=0&&z=this._keys.length?(this._index=-1,this._keys=E,this._values=E):this._index++,{value:U,done:!1}}return{value:void 0,done:!0}},te.prototype.throw=function(z){throw this._index>=0&&(this._index=-1,this._keys=E,this._values=E),z},te.prototype.return=function(z){return this._index>=0&&(this._index=-1,this._keys=E,this._values=E),{value:z,done:!0}},te}(),D=function(){function te(){this._keys=[],this._values=[],this._cacheKey=w,this._cacheIndex=-2}return Object.defineProperty(te.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),te.prototype.has=function(z){return this._find(z,!1)>=0},te.prototype.get=function(z){var U=this._find(z,!1);return U>=0?this._values[U]:void 0},te.prototype.set=function(z,U){var A=this._find(z,!0);return this._values[A]=U,this},te.prototype.delete=function(z){var U=this._find(z,!1);if(U>=0){for(var A=this._keys.length,Q=U+1;Q=((r=ru[t])===null||r===void 0?void 0:r.level)},Xy=function(){function e(t){this.description=t.description,this.name=t.name||"",this.reactBoot=t.reactBoot,this.modulesLoader=t.modulesLoader,this.logLevel=t.logLevel||"log",this.components=t.components||new Map}return e.prototype.logger=function(t,n){n===void 0&&(n="log"),Ky(n,this.logLevel)&&ki("[".concat(String(this.name),"] ").concat(t),n)},e}(),Zy=function(){function e(t){this.isAsync=!1,this.name=t.name,this.version=t.version,this.description=t.description,this.isAsync=t.isAsync,this.component=t.component}return e}(),Jy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(r[o]=l[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dt=function(e){Jy(t,e);function t(n){var r=e.call(this,n)||this;return r.name=r.constructor.name,Error.captureStackTrace(r,r.constructor),console.error("ReactBootError: ".concat(r.name," ").concat(n)),r}return t}(Error),qy=function(e,t,n,r){function l(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(f){try{s(r.next(f))}catch(c){i(c)}}function u(f){try{s(r.throw(f))}catch(c){i(c)}}function s(f){f.done?o(f.value):l(f.value).then(a,u)}s((r=r.apply(e,t||[])).next())})},Up=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,l,o,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(s){return function(f){return u([s,f])}}function u(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(n=0)),n;)try{if(r=1,l&&(o=s[0]&2?l.return:s[0]?l.throw||((o=l.return)&&o.call(l),0):l.next)&&!(o=o.call(l,s[1])).done)return o;switch(l=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,l=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]{}}),mg="modulepreload",yg=function(e){return"/react-boot-demo/"+e},Wc={},Wp=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=yg(u),u in Wc)return;Wc[u]=!0;const s=u.endsWith(".css"),f=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":mg,s||(c.as="script"),c.crossOrigin="",c.href=u,a&&c.setAttribute("nonce",a),document.head.appendChild(c),s)return new Promise((p,S)=>{c.addEventListener("load",p),c.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return l.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},Qp="/react-boot-demo/vite.svg",Gp="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='-50%20-50%20100%20100'%20fill='none'%20id='react-boot-icon'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='scale(2)'%3e%3ccircle%20r='25'%20fill='%23667EDE'%3e%3c/circle%3e%3c/g%3e%3cg%20transform='scale(0.055)%20translate(-230,%20-200)'%3e%3cpath%20fill='%23fff'%20d='M365.7,296.4c-49.5,66.1-155.9,43.7-223.7,47c0,0-12.1,0.8-24.1,2.5c0,0,4.6-2.1,10.4-4.2%20c47.8-16.6,70.3-20,99.4-34.9c54.5-27.9,108.9-89,119.8-152.2c-20.8,60.7-84,113.1-141.4,134.3c-39.5,14.6-110.6,28.7-110.6,28.7%20l-2.9-1.7c-48.2-23.7-49.9-128.5,38.3-162.2c38.7-15,75.3-6.7,117.3-16.6c44.5-10.4,96.1-43.7,116.8-87.3%20C388.1,120.1,416.4,229,365.7,296.4z'%3e%3c/path%3e%3c/g%3e%3cg%20stroke='%23fff'%20stroke-width='2'%20fill='none'%20transform='scale(2)'%3e%3cellipse%20rx='20'%20ry='9'%3e%3c/ellipse%3e%3cellipse%20rx='20'%20ry='9'%20transform='rotate(60)'%3e%3c/ellipse%3e%3cellipse%20rx='20'%20ry='9'%20transform='rotate(120)'%3e%3c/ellipse%3e%3c/g%3e%3c/svg%3e";var Qc,Gc,Yc,Kc,Xc,Fn,Zc,Jc,qc,bc,ef;function el(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function tl(e,t,n,r,l){var o={};return Object.keys(r).forEach(function(i){o[i]=r[i]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(i,a){return a(e,t,i)||i},o),o.initializer===void 0?(Object.defineProperty(e,t,o),null):o}let gg=(Qc=br({name:"HomeComponent"}),Gc=br({name:"HomeComponentTwo"}),Yc=br({name:"AsyncComponent"}),Kc=br({name:"Utils",version:"1.0.0"}),Xc=br({name:"Utils",version:"2.0.0"}),Fn=class extends Qn.Component{constructor(t){super(t),el(this,"HomeComponent",Zc,this),el(this,"HomeComponentTwo",Jc,this),el(this,"AsyncComponent",qc,this),el(this,"Utils",bc,this),el(this,"UtilsTwo",ef,this),this.state={visible:!1}}componentDidMount(){setTimeout(()=>{this.setState({visible:!0})},5e3)}render(){const{HomeComponent:t,HomeComponentTwo:n,Utils:r,UtilsTwo:l}=this,o=Qn.lazy(this.AsyncComponent);return J.jsxs(Qn.Fragment,{children:[J.jsxs("div",{children:[J.jsx("a",{href:"https://vitejs.dev",target:"_blank",children:J.jsx("img",{src:Qp,className:"logo",alt:"Vite logo"})}),J.jsx("a",{href:"https://react.dev",target:"_blank",children:J.jsx("img",{src:Gp,className:"logo react",alt:"React logo"})})]}),J.jsx("h1",{children:"React Boot"}),J.jsx("div",{className:"card",children:J.jsxs("p",{children:["Edit ",J.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})}),J.jsx("p",{className:"read-the-docs",children:"Click on the Vite and React logos to learn more"}),J.jsx("p",{children:r.getDate()}),J.jsx("p",{children:l.getDate()}),J.jsx(t,{title:"组件一"}),J.jsx(n,{title:"组件二"}),this.state.visible&&J.jsx(L.Suspense,{fallback:J.jsx("div",{children:"loading..."}),children:J.jsx(o,{title:"异步组件"})})]})}},Zc=tl(Fn.prototype,"HomeComponent",[Qc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jc=tl(Fn.prototype,"HomeComponentTwo",[Gc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qc=tl(Fn.prototype,"AsyncComponent",[Yc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bc=tl(Fn.prototype,"Utils",[Kc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ef=tl(Fn.prototype,"UtilsTwo",[Xc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fn);function Yp(){return J.jsxs(J.Fragment,{children:[J.jsxs("div",{children:[J.jsx("a",{href:"https://vitejs.dev",target:"_blank",children:J.jsx("img",{src:Qp,className:"logo",alt:"Vite logo"})}),J.jsx("a",{href:"https://react.dev",target:"_blank",children:J.jsx("img",{src:Gp,className:"logo react",alt:"React logo"})})]}),J.jsx("h1",{children:"About"}),J.jsx("div",{className:"card",children:J.jsxs("p",{children:["Edit ",J.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})}),J.jsx("p",{className:"read-the-docs",children:"Click on the Vite and React logos to learn more"})]})}const wg=Object.freeze(Object.defineProperty({__proto__:null,default:Yp},Symbol.toStringTag,{value:"Module"}));class Sg extends Qn.Component{render(){return J.jsxs(J.Fragment,{children:[J.jsx("h1",{children:"404 NOT FOUND"}),J.jsx("div",{className:"card",children:J.jsxs("p",{children:["Edit ",J.jsx("code",{children:"src/App.tsx"})," and save to test HMR"]})}),J.jsx("p",{className:"read-the-docs",children:"Click on the Vite and React logos to learn more"})]})}}const Eg=L.lazy(()=>Wp(()=>Promise.resolve().then(()=>wg),void 0)),_g=Fy([{path:"/home",element:J.jsx(gg,{})},{path:"/about",element:J.jsx(Yp,{})},{path:"/about-lazy",element:J.jsx(L.Suspense,{children:J.jsx(Eg,{})})},{path:"/",element:J.jsx(Dy,{to:"/home"})},{path:"*",element:J.jsx(Sg,{})}],{basename:"/react-boot-demo"});var tf,nf;let kg=(tf=cs({name:"HomeComponent"}),tf(nf=class extends L.Component{constructor(t){super(t),this.state={}}render(){return J.jsx("div",{children:J.jsxs("h2",{children:["HomeComponent ",this.props.title]})})}})||nf);const xg=Object.freeze(Object.defineProperty({__proto__:null,default:kg},Symbol.toStringTag,{value:"Module"})),Cg=e=>{const[t]=vg({name:"HomeComponent"});return J.jsxs("div",{children:[J.jsxs("h2",{children:["HomeComponentTwo ",e.title]}),J.jsx("div",{style:{fontSize:"14px",color:"#999999"},children:J.jsx(t,{title:"组件二中使用"})})]})},Pg=Vp({name:"HomeComponentTwo"})(Cg),Rg=Object.freeze(Object.defineProperty({__proto__:null,default:Pg},Symbol.toStringTag,{value:"Module"}));var rf,lf;let Mg=(rf=cs({name:"Utils",version:"1.0.0"}),rf(lf=class{static getDate(){return new Date().toLocaleString()}})||lf);const Tg=Object.freeze(Object.defineProperty({__proto__:null,default:Mg},Symbol.toStringTag,{value:"Module"}));var of,af;let Lg=(of=cs({name:"Utils",version:"2.0.0"}),of(af=class{static getDate(){return`${new Date().toLocaleString()} v2.0.0`}})||af);const Og=Object.freeze(Object.defineProperty({__proto__:null,default:Lg},Symbol.toStringTag,{value:"Module"})),Dg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ng=()=>Wp(()=>import("./AsyncComponent-CLqXezwe.js"),[]),jg={...Object.assign({"./pages/Home/components/HomeComponent.tsx":xg,"./pages/Home/components/HomeComponentTwo.tsx":Rg}),...Object.assign({"./utils/Utils.ts":Tg,"./utils/UtilsTwo.ts":Og,"./utils/interface.ts":Dg}),AsyncComponent:Vp({name:"AsyncComponent",isAsync:!0})(Ng)};var uf,sf;uf=hg({modules:jg}),uf(sf=class{run(){aa.createRoot(document.getElementById("root")).render(J.jsx(Qn.StrictMode,{children:J.jsx(Qy,{router:_g})}))}});export{J as j,L as r}; diff --git a/docs/index.html b/docs/index.html index 67a701e..ee00770 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ React Boot Demo - + diff --git a/src/router/index.tsx b/src/router/index.tsx index d33cf76..0d17275 100644 --- a/src/router/index.tsx +++ b/src/router/index.tsx @@ -28,6 +28,6 @@ const Router = createBrowserRouter([ path: '*', element: , } -]) +], { basename: '/react-boot-demo' }) export default Router diff --git a/vite.config.ts b/vite.config.ts index 0a5f014..a87ebb0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,7 @@ import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ - base: '/', // /react-boot-demo + base: '/react-boot-demo', plugins: [ react({ babel:{