define("metaserver/static/js/modules/clean/react/async/loadable",["require","exports","tslib","react","metaserver/static/js/modules/core/cancelable_promise","metaserver/static/js/modules/core/exception"],(function(e,t,a,o,r,n){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.Loadable=t.LoadState=void 0,o=a.__importDefault(o),(function(e){e[e.Default=0]="Default",e[e.Loaded=1]="Loaded",e[e.Error=2]="Error"})(s=t.LoadState||(t.LoadState={})),t.Loadable=function(e){const{loader:t,loading:l,loadError:i,displayName:d}=e;class c extends o.default.Component{constructor(){super(...arguments),this.state={loadState:s.Default}}componentDidMount(){return a.__awaiter(this,void 0,void 0,(function*(){try{this.loader=r.makeCancelable(t());const e=yield this.loader;this.loadedComponent=e,this.setState({loadState:s.Loaded})}catch(e){e.isCanceled||(this.setState({loadState:s.Error}),n.reportStack(`${c.displayName}: componentDidMount error`,{severity:"non-critical",tags:[c.displayName]}))}}))}componentDidCatch(){this.setState({loadState:s.Error}),n.reportStack(`${c.displayName}: componentDidCatch`,{severity:"non-critical",tags:[c.displayName]})}componentWillUnmount(){this.loader.cancel()}render(){return this.state.loadState===s.Loaded&&null!=this.loadedComponent?o.default.createElement(this.loadedComponent,this.props):this.state.loadState===s.Error&&i?"function"==typeof i?i(this.props):i:l?"function"==typeof l?l(this.props):l:null}}return c.displayName=d?`LoadableComponent(${d})`:"LoadableComponent",c}})),define("metaserver/static/js/modules/core/cancelable_promise",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCancelable=void 0,t.makeCancelable=function(e){let t=!1;const a=new Promise((a,o)=>{e.then(e=>t?o({isCanceled:!0}):a(e),e=>o(t?{isCanceled:!0}:e))});return a.cancel=()=>{t=!0},a}})); //# sourceMappingURL=pkg-loadable.min.js-vfl13G_2b.map