1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{t as n}from"./jsx-runtime-BdxMnOeJ.js";import{t as r}from"./defineProperty-BbfpZ9Tg.js";var i=e(t()),a=n(),o=()=>null,s=class e extends i.PureComponent{constructor(...t){super(...t),r(this,`state`,{mod:void 0,forceRender:!1}),r(this,`load`,t=>{let{fetchComponent:n,renderDelay:r}=t||this.props,i=e.cache.get(n);return n===void 0?(this.setState({mod:null}),Promise.resolve()):i?(this.setState({mod:i.default}),Promise.resolve()):(this.setState({mod:void 0}),r!==0&&(this.timestamp=new Date,this.timeout=setTimeout(()=>this.setState({forceRender:!0}),r)),n().then(t=>{e.cache.set(n,t),this.setState({mod:t.default})}).catch(e=>{console.error(`Bundle fetching error:`,e),this.setState({mod:null})}))})}componentDidMount(){this.load(this.props)}componentDidUpdate(e){e.fetchComponent!==this.props.fetchComponent&&this.load(this.props)}componentWillUnmount(){this.timeout&&clearTimeout(this.timeout)}render(){let{loading:e,error:t,children:n,renderDelay:r}=this.props,{mod:i,forceRender:o}=this.state,s=this.timestamp?new Date-this.timestamp:r;return i===void 0?s>=r||o?(0,a.jsx)(e,{}):null:i===null?(0,a.jsx)(t,{onRetry:this.load}):n(i)}};r(s,`defaultProps`,{loading:o,error:o,renderDelay:0}),r(s,`cache`,new Map);export{s as t}; 2//# sourceMappingURL=bundle-D48MvYTM.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.