text: (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1390:function(e,t){},1392:function(e,t){},1603:function(e,t,n){},1605:function(e,t,n){"use strict";n.r(t);var a=n(54),r=n(55),i=n(58),o=n(56),s=n(57),c=n(0),l=n.n(c),u=n(63),g=n.n(u),p=n(1624),d=n(1629),m=n(1631),f=n(551),h=n(225),b=n(1613),E=n(29),v=n(523),y=n.n(v),w=n(524),O=n.n(w),j=Object(E.j)({});function I(e,t){j[t]={jsx:function(){return null}},fetch(e).then(function(e){return e.text().then(function(e){var n=y()(e);j[t]=Object(h.a)({jsx:function(){return l.a.createElement(O.a,{escapeHtml:!1,source:n.body,renderers:x})}},n.attributes)})})}I("/custom-content/content-fragments/GettingStarted.md","GettingStarted"),I("/custom-content/content-fragments/Home.md","Home"),I("/custom-content/content-fragments/APIs.md","APIs");var S,x={link:function(e){var t=e.href,n=Object(f.a)(e,["href"]);return/^(?:[a-z]+:)?\/\//i.test(t)?l.a.createElement("a",Object.assign({href:t,target:"_blank",rel:"noopener noreferrer"},n)):l.a.createElement(b.a,Object.assign({to:t},n))}},C=(n(716),n(44)),k=n(1632),P=n(1606),A=n(1626),L=n(1623),U=n(1615),D=Object(C.a)(function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement(k.a,{vertical:!0,textAlign:"center",style:{color:"whitesmoke",backgroundColor:"slategray",padding:"40px 0px",margin:"0px !important"}},l.a.createElement(P.a,{centered:!0,size:"small",src:"/custom-content/home-image.png"}),l.a.createElement(A.a,{as:"h1",style:{color:"whitesmoke"}},j.Home.header),l.a.createElement("p",null,j.Home.tagline),l.a.createElement(b.a,{to:"/getting-started"},l.a.createElement(L.a,{positive:!0},j.Home.gettingStartedButton)),l.a.createElement(b.a,{to:"/apis",style:{padding:"0.78571429em 1.5em 0.78571429em",color:"white"}},j.Home.apiListButton)),l.a.createElement(k.a,{vertical:!0,style:{padding:"40px 0px",margin:"0 !important"}},l.a.createElement(U.a,{fluid:!0,text:!0,textAlign:"justified"},l.a.createElement(j.Home.jsx,null))))}),M=Object(C.a)(function(){return l.a.createElement(U.a,{style:{padding:"40px"}},l.a.createElement(j.GettingStarted.jsx,null))}),R=n(174),G=n(1627),K=n(1616),H=n(1621),T=n(1617),z=n(1620),N=n(1625),F=n(528),B=n.n(F),J=n(72),q=n.n(J),V=n(64),W=n.n(V),Y=window.config.region,_=window.config.region,Z=window.config.userPoolId,Q=window.config.identityPoolId,X=window.config.userPoolClientId;function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accessKeyId,n=e.secretAccessKey,a=e.sessionToken;S=window.apigClientFactory.newClient({accessKey:t,secretKey:n,sessionToken:a,region:Y})}function ee(){return S?Promise.resolve(S):new Promise(function(e){var t=setInterval(function(){S&&(clearInterval(t),e(S))},100)})}W.a.config.region=_;var te=Object(E.j)(Object(h.a)({},{api:void 0,apiKey:void 0,apiList:{loaded:!1,apiGateway:[],generic:[]},cognitoUser:void 0,usagePlans:[],subscriptions:[]},{initialize:function(){return Object.assign(this,{api:void 0,apiKey:void 0,apiList:{loaded:!1,apiGateway:[],generic:[]},cognitoUser:void 0,usagePlans:[],subscriptions:[]}),this},clear:function(){return this.initialize()},reset:function(){for(var e=this,t={api:void 0,apiKey:void 0,apiList:{loaded:!1,apiGateway:[],generic:[]},cognitoUser:void 0,usagePlans:[],subscriptions:[]},n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return a.forEach(function(n){return q.a.set(e,n,q.a.get(t,n))}),this},resetUserData:function(){this.reset("apiKey","cognitoUser","subscriptions")}}));function ne(e,t){Object(E.k)(e,function(e,n){t(e,n)})}ne(function(){return{subscriptions:te.subscriptions,usagePlans:te.usagePlans}},function(e){!function(e){e&&e.forEach(function(e){var t,n=(t=e.id,!!te.subscriptions.find(function(e){return e.id===t}));e.subscribed=n,e.apis.forEach(function(e){return e.subscribed=n})})}(e.usagePlans)}),ne(function(){return[].concat(te.apiList.apiGateway,te.apiList.generic)},function(e){!function(e){e.forEach(function(e){if(!e.logo){var t="/custom-content/api-logos/".concat(e.id,"_").concat(e.stage,".png");fetch(t,{headers:{Accept:"image/png"},redirect:"manual"}).then(function(n){n.ok?e.logo=t:e.logo="/custom-content/api-logos/default.png"})}})}(e)});var ae,re,ie;te.initialize();function oe(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Promise.all([se(e),ce(e),function(e){var t=te.apiKey?te.apiKey:ie;return!e&&t?Promise.resolve(t):ee().then(function(e){return e.get("/apikey",{},{},{})}).then(function(e){var t=e.data;return te.apiKey=t.value})}(e)])}function se(){return!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&ae?ae:ae=ee().then(function(e){return e.get("/catalog",{},{},{})}).then(function(e){var t,n=e.data,a=void 0===n?[]:n;te.usagePlans=a.apiGateway,te.apiList={loaded:!0,apiGateway:(t=te.usagePlans,t.reduce(function(e,t){return t.apis.forEach(function(e){e.usagePlan=q.a.cloneDeep(t),delete e.usagePlan.apis}),e.concat(t.apis)},[])),generic:a.generic}}).catch(function(){te.usagePlans=null,te.apiList={loaded:!0,apiGateway:[],generic:[]}})}function ce(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=te.subscriptions.length?te.subscriptions:re;return!e&&t?Promise.resolve(t):re=ee().then(function(e){return e.get("/subscriptions",{},{},{})}).then(function(e){var t=e.data;return te.subscriptions=t})}function le(e,t){var n={};return Object.keys(e.items).forEach(function(t){(function(e,t){var n=new Date(t);e&&!Array.isArray(e[0])&&(e=[e]);return e.map(function(e){var t=n.setDate(n.getDate()),a=[t].concat(Object(R.a)(e));return n.setDate(n.getDate()+1),a})})(e.items[t],e.startDate).forEach(function(e){var t=e[0],a=e[1],r=e[2];n[t]||(n[t]={used:0,remaining:0}),n[t].used+=a,n[t].remaining+=r})}),Object.keys(n).sort().map(function(e){return[parseInt(e,10),n[e].used,n[e].remaining]})}function ue(e,t){if(e)return ee().then(function(n){return n.put("/marketplace-subscriptions/"+e,{},{token:t})})}n(550);function ge(e){var t=e[0],n=e.slice(1);return t.toUpperCase()+n.toLowerCase()}function pe(e,t){var n,a,r,i;(n=e.id,a=new Date,r=new Date(a.getFullYear(),a.getMonth(),1).toJSON().split("T")[0],i=a.toJSON().split("T")[0],ee().then(function(e){return e.get("/subscriptions/"+n+"/usage",{start:r,end:i},{})})).then(function(n){var a=le(n.data),r=document.getElementById(t);JSON.stringify(q.a.get(e,"usage.data",{}))!==JSON.stringify(a)&&(e.usage={data:a});var i=a.map(function(e){return new Date(e[0]).toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"})}),o=a.map(function(e){return e[1]}),s=a.map(function(e){return e[2]}),c=Math.max.apply(Math,Object(R.a)(o).concat(Object(R.a)(s))),l={type:"line",data:{labels:i,datasets:[{label:"Requests used"+(e.quota?" (per ".concat(ge(e.quota.period),")"):""),data:o,lineTension:0,backgroundColor:"#00bfff",borderColor:"#00bfff",pointBackgroundColor:"transparent",pointBorderColor:"transparent",borderWidth:2,pointRadius:10,pointHoverRadius:10},{label:"Remaining requests"+(e.quota?" (per ".concat(ge(e.quota.period),")"):""),data:s,lineTension:0,backgroundColor:"transparent",borderColor:"red",pointBackgroundColor:"transparent",pointBorderColor:"transparent",borderWidth:2,pointRadius:10,pointHoverRadius:10}]},options:{scales:{yAxes:[{ticks:{beginAtZero:!0,suggestedMax:c+.02*c}}]}}};new B.a(r,l)}).catch(function(t){console.error(t),e.usage||(e.usage={}),e.usage.error=t})}var de,me=Object(C.a)(function(){return l.a.createElement(G.a,{container:!0},l.a.createElement(G.a.Row,null,l.a.createElement(G.a.Column,{style:{paddingTop:"40px"}},l.a.createElement(A.a,{size:"medium"},"API Key"),l.a.createElement("code",{style:{background:"black",border:"1px solid gray",padding:"7px 8px",color:"lightgray",borderRadius:"5px"}},te.apiKey))),l.a.createElement(K.a,null),l.a.createElement(G.a.Row,null,te.usagePlans.filter(function(e){return e.subscribed&&e.apis.length}).map(function(e,t){var n="api-usage-chart-container-".concat(e.id)+t;return pe(e,n),l.a.createElement(G.a.Column,{width:16,widescreen:8,key:e.id,style:{marginBottom:"40px"}},l.a.createElement(fe,{apis:e.apis}),e.throttle&&l.a.createElement(H.a,{info:!0},l.a.createElement("p",null,"Requests limited to ",e.throttle.rateLimit," per second, and ",e.throttle.burstLimit," in a burst.")),e.usage?e.error?l.a.createElement(H.a,{error:!0,content:e.error.toString()}):null:l.a.createElement(T.a,{active:!0}),l.a.createElement("canvas",{id:n}))})))}),fe=function(e){var t=e.apis,n=t[0].swagger.info.title,a=l.a.createElement(z.a,null,t.reduce(function(e,t){return e.concat(l.a.createElement(z.a.Item,{key:t.id},t.swagger.info.title))},[])),r=t.length-1;return l.a.createElement(A.a,{size:"medium"},"Usage for ",r?l.a.createElement(N.a,{trigger:l.a.createElement("a",{style:{cursor:"pointer"}},n," and ",r," more..."),content:a,on:["hover","click"],position:"right center"}):n)},he=n(530),be=n.n(he),Ee=(n(1547),n(321)),ve=n(94),ye=n(175),we={UserPoolId:Z,ClientId:X};function Oe(){return te.cognitoUser}function je(){return"cognito-idp.".concat(_,".amazonaws.com/").concat(Z)}function Ie(e,t){var n=new ye.a({Username:e,Password:t}),a=new ye.b({Username:e,Pool:new ye.c(we)});return new Promise(function(e,t){a.authenticateUser(n,{onSuccess:function(n){te.cognitoUser=a,W.a.config.credentials=new W.a.CognitoIdentityCredentials({IdentityPoolId:Q,Logins:Object(ve.a)({},je(),n.getIdToken().getJwtToken())}),W.a.config.credentials.refresh(function(n){n?console.error(n):($(W.a.config.credentials),oe(),ee().then(function(n){return n.post("/signin",{},{},{}).then(e).catch(t)}))})},onFailure:t})})}function Se(){te.cognitoUser&&(te.cognitoUser.signOut(),te.resetUserData(),localStorage.clear())}var xe=n(1622);var Ce=Object(C.a)(function(){var e=!te.apiList.loaded,t=!!q.a.get(te,"apiList.apiGateway.length"),n=!!q.a.get(te,"apiList.generic.length"),a=this.props.path.params.apiId||t&&te.apiList.apiGateway[0].id||n&&te.apiList.generic[0].id;return l.a.createElement(xe.a,Object.assign({inverted:!0,vertical:!0,attached:!0,style:{margin:0,borderRadius:0}},this.props),e?l.a.createElement(T.a,{active:!0}):t||n?l.a.createElement(l.a.Fragment,null,t&&l.a.createElement(ke,{title:"Subscribable",listOfApis:te.apiList.apiGateway,selectedApiId:a}),n&&l.a.createElement(ke,{title:"Not Subscribable",listOfApis:te.apiList.generic,selectedApiId:a})):l.a.createElement("p",{style:{padding:"13px 16px",color:"whitesmoke"}},"No APIs Published"))});function ke(e){var t=e.title,n=e.listOfApis,a=e.selectedApiId;return l.a.createElement(l.a.Fragment,null,l.a.createElement(xe.a.Header,{style:{padding:"13px 5px 13px 16px",color:"lightsteelblue"}},t),n.map(function(e){return l.a.createElement(xe.a.Item,{key:e.id,as:b.a,to:"/apis/".concat(e.id),active:function(e,t){return!!t&&e===t}(e.id.toString(),a.toString())},e.swagger.info.title)}))}var Pe=Object(C.a)(function(e){var t=e.specSelectors,n=t.basePath(),a=t.host(),r=t.externalDocs();return l.a.createElement(U.a,{fluid:!0,textAlign:"left",className:"fixfloat",style:{padding:"40px 0px"}},l.a.createElement("div",{style:{display:"flex"}},l.a.createElement("div",{style:{flex:"0 0 auto",marginRight:"20px"}},l.a.createElement(P.a,{size:"small",src:te.api.logo})),l.a.createElement("div",null,l.a.createElement(A.a,{as:"h1"},te.api.swagger.info.title),l.a.createElement("div",{style:{display:"flex"}},l.a.createElement("div",{style:{marginRight:"20px"}},te.api.generic&&l.a.createElement("p",{style:{fontWeight:"bold"}},"Version"),l.a.createElement("p",{style:{fontWeight:"bold"}},"Endpoint")),l.a.createElement("div",null,te.api.generic&&l.a.createElement("p",null,te.api.swagger.info.version),l.a.createElement("p",null,"https://",a,n))),l.a.createElement("p",null,r),l.a.createElement(Ae,null))))}),Ae=Object(C.a)(function(e){function t(){var e,n;Object(a.a)(this,t);for(var r=arguments.length,s=new Array(r),c=0;c<r;c++)s[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).state={},n}return Object(s.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=te.api;return e&&Oe()?e.generic?l.a.createElement(A.a,{as:"h4",color:"darkgrey"},"This API is not configured for subscription from the portal."):e.subscribed?l.a.createElement(L.a,{onClick:function(){return t=e.usagePlan.id,ee().then(function(e){return e.delete("/subscriptions/".concat(t),{},{})}).then(function(){return ce(!0)});var t}},"Unsubscribe"):l.a.createElement(L.a,{onClick:function(){return t=e.usagePlan.id,ee().then(function(e){return e.put("/subscriptions/"+t,{},{})}).then(function(){return ce(!0)});var t}},"Subscribe"):null}}]),t}(l.a.Component)),Le=function(){return{components:{InfoContainer:Pe}}},Ue=Object(C.a)(function(e){function t(){var e,n;Object(a.a)(this,t);for(var r=arguments.length,s=new Array(r),c=0;c<r;c++)s[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).updateApi=function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return se().then(function(){var n,a=[].concat(te.apiList.apiGateway,te.apiList.generic);return a.length&&(n="ANY"===e||"FIRST"===e?a[0]:a.find(function(t){return t.id.toString()===e})),t&&(te.api=n),n})})(n.props.match.params.apiId||"ANY",!0).then(function(e){if(e){var t={dom_id:"#swagger-ui-container",plugins:[Le],supportedSubmitMethods:[],spec:e.swagger,onComplete:function(){te.apiKey&&n.preauthorizeApiKey("api_key",te.apiKey)}};Oe()&&delete t.supportedSubmitMethods;var n=be()(t)}})},n}return Object(s.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.updateApi()}},{key:"componentDidUpdate",value:function(){this.updateApi()}},{key:"render",value:function(){var e,t;return te.apiList.apiGateway.length||te.apiList.generic.length?te.api||(e="No Such API",t="The selected API doesn't exist."):(e="No APIs Published",t="Your administrator hasn't added any APIs to your account. Please contact them to publish an API."),l.a.createElement("div",{style:{display:"flex",flex:"1 1 auto",overflow:"hidden"}},l.a.createElement(Ce,{path:this.props.match,style:{flex:"0 0 auto"}}),l.a.createElement("div",{className:"swagger-section",style:{flex:"1 1 auto",overflow:"auto"}},l.a.createElement("div",{className:"swagger-ui-wrap",id:"swagger-ui-container",style:{padding:"0 20px"}},e&&t&&l.a.createElement(l.a.Fragment,null,l.a.createElement(A.a,{as:"h2",icon:!0,textAlign:"center",style:{padding:"40px 0px"}},l.a.createElement(Ee.a,{name:"warning sign",circular:!0}),l.a.createElement(A.a.Content,null,e)),l.a.createElement(U.a,{text:!0,textAlign:"justified"},l.a.createElement("p",null,t))))))}}]),t}(l.a.Component)),De=function(e){function t(){var e,n;Object(a.a)(this,t);for(var r=arguments.length,s=new Array(r),c=0;c<r;c++)s[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).state={isVisible:!1,message:""},n.handleDismiss=function(){n.setState({isVisible:!1})},n}return Object(s.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(H.a,{hidden:!this.state.isVisible,negative:!0,floating:!0,icon:"warning sign",onDismiss:this.handleDismiss,header:"Error",content:this.state.message})}}]),t}(l.a.Component),Me=n(1619),Re=n(1618),Ge=n(1628),Ke=function(e){function t(){var e,n;Object(a.a)(this,t);for(var r=arguments.length,s=new Array(r),c=0;c<r;c++)s[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).state={isSubmitting:!1,signedIn:!1,errorMessage:"",isOpen:!1},n.open=function(){return n.setState({isSubmitting:!1,errorMessage:"",isOpen:!0})},n.close=function(){return n.setState({isOpen:!1})},n.handleChange=function(e,t){var a=t.name,r=t.value;return n.setState(Object(ve.a)({},a,r))},n.handleLogin=function(e){e.preventDefault(),n.setState({isSubmitting:!0}),Ie(n.state.email,n.state.password).then(function(){n.setState({signedIn:!0,isSubmitting:!1,errorMessage:""});var e=n.props,t=e.usagePlanId,a=e.token;if(t&&a)return ue(t,a)}).catch(function(e){return n.setState({errorMessage:e.message,isSubmitting:!1})})},n}return Object(s.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.state.isOpen;return this.state.signedIn?l.a.createElement(Ge.a,{to:"/apis"}):l.a.createElement(Me.a,{size:"small",open:e,onOpen:this.open,onClose:this.close,trigger:this.props.trigger},l.a.createElement(Me.a.Header,null,"Sign in"),l.a.createElement(Me.a.Content,null,l.a.createElement(Re.a,{onSubmit:this.handleLogin,error:!!this.state.errorMessage,loading:this.state.isSubmitting},l.a.createElement(Re.a.Input,{label:"Email",name:"email",onChange:this.handleChange}),l.a.createElement(Re.a.Input,{type:"password",label:"Password",name:"password",autoComplete:"false",onChange:this.handleChange}),l.a.createElement(H.a,{error:!0,content:this.state.errorMessage}),l.a.createElement(Me.a.Actions,{style:{textAlign:"right"}},l.a.createElement(L.a,{type:"button",onClick:this.close},"Close"),l.a.createElement(L.a,{primary:!0,type:"submit"},"Sign In")))))}}]),t}(l.a.Component),He=function(e){function t(){var e,n;Object(a.a)(this,t);for(var r=arguments.length,s=new Array(r),c=0;c<r;c++)s[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).state={isSubmitting:!1,signedIn:!1,errorMessage:"",isOpen:!1},n.open=function(){return n.setState({isSubmitting:!1,errorMessage:"",isOpen:!0})},n.close=function(){return n.setState({isOpen:!1})},n.handleChange=function(e,t){var a=t.name,r=t.value;return n.setState(Object(ve.a)({},a,r))},n.handleRegister=function(e){e.preventDefault(),n.setState({isSubmitting:!0}),function(e,t){localStorage.clear();var n=[];return new Promise(function(a,r){de.signUp(e,t,n,null,function(n,i){n?r(n):a(Ie(e,t))})})}(n.state.email,n.state.password).then(function(){n.setState({signedIn:!0,isSubmitting:!1,errorMessage:""});var e=n.props,t=e.usagePlanId,a=e.token;if(t&&a)return ue(t,a)}).catch(function(e){return n.setState({errorMessage:e.message,isSubmitting:!1})})},n}return Object(s.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.state.isOpen;return this.state.signedIn?l.a.createElement(Ge.a,{to:"/apis"}):l.a.createElement(Me.a,{size:"small",open:e,onOpen:this.open,onClose:this.close,trigger:this.props.trigger},l.a.createElement(Me.a.Header,null,"Register"),l.a.createElement(Me.a.Content,null,l.a.createElement(Re.a,{onSubmit:this.handleRegister,error:!!this.state.errorMessage,loading:this.state.isSubmitting},l.a.createElement(Re.a.Input,{label:"Email",name:"email",onChange:this.handleChange}),l.a.createElement(Re.a.Input,{type:"password",label:"Password",name:"password",autoComplete:"false",onChange:this.handleChange}),l.a.createElement(H.a,{error:!0,content:this.state.errorMessage}),l.a.createElement(Me.a.Actions,{style:{textAlign:"right"}},l.a.createElement(L.a,{type:"button",onClick:this.close},"Close"),l.a.createElement(L.a,{primary:!0,type:"submit"},"Register")))))}}]),t}(l.a.Component),Te=Object(C.a)(function(){return l.a.createElement(xe.a,{inverted:!0,borderless:!0,attached:!0,style:{flex:"0 0 auto"}},l.a.createElement(xe.a.Item,{as:b.a,to:"/"},l.a.createElement(P.a,{size:"mini",src:"/custom-content/nav-logo.png",style:{paddingRight:"10px"}}),j.Home.title),l.a.createElement(xe.a.Item,{as:b.a,to:"/getting-started"},j.GettingStarted.title),l.a.createElement(xe.a.Item,{as:b.a,to:"/apis"},j.APIs.title),l.a.createElement(xe.a.Menu,{position:"right"},Oe()?l.a.createElement(l.a.Fragment,null,l.a.createElement(xe.a.Item,{as:"a",onClick:Se},"Sign Out"),l.a.createElement(xe.a.Item,{as:b.a,to:"/dashboard"},"My Dashboard")):l.a.createElement(l.a.Fragment,null,l.a.createElement(Ke,{trigger:l.a.createElement(xe.a.Item,{as:"a"},"Sign In")}),l.a.createElement(He,{trigger:l.a.createElement(xe.a.Item,{as:"a"},"Register")}))))}),ze=(n(1603),function(e){function t(){var e;Object(a.a)(this,t),e=Object(i.a)(this,Object(o.a)(t).call(this)),de=new ye.c(we),te.cognitoUser=de.getCurrentUser(),null!==te.cognitoUser?te.cognitoUser.getSession(function(e,t){if(e)return Se(),void console.error(e);var n={};n[je()]=t.getIdToken().getJwtToken(),W.a.config.credentials=new W.a.CognitoIdentityCredentials({IdentityPoolId:Q,Logins:n}),W.a.config.credentials.refresh(function(e){e?(Se(),console.error(e)):($(W.a.config.credentials),oe())})}):$();var n=window.location.hash.substring(2);return window.history.pushState({},"home page",n),e}return Object(s.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(p.a,null,l.a.createElement(l.a.Fragment,null,l.a.createElement(Te,null),l.a.createElement(De,null),l.a.createElement(d.a,null,l.a.createElement(m.a,{exact:!0,path:"/",component:D}),l.a.createElement(m.a,{path:"/getting-started",component:M}),l.a.createElement(m.a,{path:"/dashboard",component:me}),l.a.createElement(m.a,{exact:!0,path:"/apis",component:Ue}),l.a.createElement(m.a,{path:"/apis/:apiId",component:Ue}),l.a.createElement(m.a,{component:function(){return l.a.createElement("h2",null,"Page not found")}}))))}}]),t}(l.a.Component));g.a.render(l.a.createElement(ze,null),document.getElementById("root"))},261:function(e,t){},560:function(e,t,n){e.exports=n(1605)}},[[560,2,1]]]);
  //# sourceMappingURL=main.d70b11fe.chunk.js.map