text: (this["webpackJsonpcovid-19-info-webapp-hk"]=this["webpackJsonpcovid-19-info-webapp-hk"]||[]).push([[0],{102:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT8AAACDCAYAAAD72RwRAAAVaUlEQVR4Xu2d728cx3nHn5mjZME2IBqJaQEtopVTKw4aJRcgeWME4NFKXlsF6kLoC4tKrCYvElSWkxdOgJJ8bSs8W2oNFGhE5R8IBdiS2rTVMX2RJk5BJigQQSSgC9A4LFwgDGxIqqSbCWZ/zv683ePecm73K8Awjre3O/OZme8+88wzzzDCPxAAARBoIAHWwDqjyiAAAiBAED90AhAAgUYSgPg1stlRaRAAAYgf+gAIgEAjCUD8GtnsqDQIgADED30ABECgkQQgfo1sdlQaBEAA4oc+AAIg0EgCEL9GNjsqDQIgAPFDHwABEGgkAYhfI5sdlQYBEID4oQ+AAAg0kgDEr5HNjkqDAAhA/NAHQAAEGkkA4tfIZkelQQAEIH7oAyAAAo0kAPFrZLOj0iAAAhA/9AEQAIFGEoD4NbLZUWkQAAGIH/oACIBAIwlA/BrZ7Kg0CIAAxA99AARAoJEEIH6NbHZUGgRAAOKHPgACINBIAhC/RjY7Kg0CIADxQx8AARBoJAGIXyObHZUGARCA+KEPgAAINJIAxK+RzY5KgwAIQPzQB0AABBpJAOLXyGZHpUEABCB+6AMgAAKNJADxa2Szo9IgAAIQP/QBEACBRhKA+DWy2VFpEAABiB/6AAiAQCMJQPwa2eyoNAiAAMQPfQAEQKCRBCB+jWx2VBoEQADihz4AAiDQSAIQv0Y2OyoNAiAA8UMfAAEQaCSB+orfF/+xTUIst1SzCkmMEzEhiRMRI0GMJN1d/9Zc3lY/1H69QwN5qkVkEQn7PiQlcUbEpCQFktv3dT5zkurBznXkPlc436vv/Ovs3zt/Jyk2WoztqN8xkr2f3nx9LW/5il530vqGRfTwFGPU4Xb5hV1Om5dfPqf8ipVdbp9juF4BB71+kpgk4kyo27k83PtHOHg8SAr7+XLAXvneB1c3suq0PN2Znt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sy1een9zElgETUY275ows06Qs28Pl5HHFurzGqVVJBSvL5qdLMfO6NDU7yc/40TvPxJa9yOquavni4q8G6mAxfMAiJ6pUWo26ZoqdTPmnNW1OMrzApZ0cXj2p9fnr5l6c704/so252thvHuh3Hub3w+ZU0Ziu+DXx+OYBPt5enD4iH9uDSQyMyz6YY0efHiP7ASGwwoj4JWn3k/v3eqH69HFULXTJvzVuC2FluxxfK2UCszfP5JdXt7UMdiz8cqHReJzjJ2WAPq7ZK7y9MwOfnW37w+RUdKrgeBEAABCaXQH0tv8ltE5QcBECgAgIQvwog4xEgAALmEYD4mdcmKBEIgEAFBCB+FUDGI0AABMwjAPEzr01QIhAAgQoIQPwqgIxHgAAImEcA4mdem6BEIAACFRCA+FUAGY8AARAwjwDEz7w2QYlAAAQqIADxqwAyHgECIGAeAYifeW2CEoEACFRAAOJXAWQ8AgRAwDwCED/z2gQlAgEQqIAAxK8CyHgECICAeQQgfua1CUoEAiBQAQGIXwWQ8QgQAAHzCED8zGsTlAgEQKACAhC/CiDjESAAAuYRgPiZ1yYoEQiAQAUEIH4VQMYjQAAEzCMA8TOvTVAiEACBCghA/CqAjEeAAAiYRwDiZ16boEQgAAIVEID4VQAZjwABEDCPAMTPvDZBiUAABCogAPGrADIeAQIgYB4BiJ95bYISgQAIVEAA4lcBZDwCBEDAPAIQP/PaBCUCARCogADErwLIeAQIgIB5BCB+5rUJSgQCIFABAYhfBZDxCBAAAfMIQPzMaxOUCARAoAICEL8KIOMRIAAC5hGA+JnXJigRCIBABQQgfhVAxiNAAATMIwDxM69NUCIQAIEKCED8KoCMR4AACJhHAOJnXpugRCAAAhUQgPhVABmPAAEQMI8AxM+8NkGJQAAEKiAA8asAMh4BAiBgHoE/AlLOQN1eZHjkAAAAAElFTkSuQmCC"},152:function(e,t,a){},538:function(e,t,a){e.exports=a(778)},543:function(e,t,a){},567:function(e,t,a){},778:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),o=a(22),l=a.n(o),c=(a(543),a(152),a(10)),i=a(385),s=a(819),u=a(387),d=a(324),f=a(474),m=a.n(f),h=a(475),g=a.n(h),b=a(116),p=a(84),v=a(818),E=a(779),y=a(781),C=a(817),k=a(386),A=a(468),O=a.n(A),j=a(472),w=a.n(j),_=a(469),S=a.n(_),N=a(473),z=a.n(N),x=a(248),F=a.n(x),W=a(471),D=a.n(W),B=a(470),T=a.n(B),P=Object(i.a)({list:{width:250},fullList:{width:"auto"}}),H=function(e){var t=P();return r.a.createElement("div",{className:t.list,id:"list",role:"presentation",onClick:e.onClick,onKeyDown:e.onKeyDown},r.a.createElement(E.a,null,r.a.createElement(y.a,{button:!0,key:"\u4e3b\u9801",component:"a",href:"/"},r.a.createElement(C.a,null,r.a.createElement(O.a,{color:"error"})),r.a.createElement(k.a,{primary:"\u4e3b\u9801"})),r.a.createElement(y.a,{button:!0,key:"\u9999\u6e2f\u5730\u5340\u6df1\u5165\u6578\u64da\u5206\u6790",component:"a",href:"/hkindepth"},r.a.createElement(C.a,null,r.a.createElement(S.a,{color:"error"})),r.a.createElement(k.a,{primary:"\u9999\u6e2f\u5730\u5340\u6df1\u5165\u6578\u64da\u5206\u6790"})),r.a.createElement(y.a,{button:!0,key:"\u5165\u5883\u6578\u5b57",component:"a",href:"/immigration"},r.a.createElement(C.a,null,r.a.createElement(T.a,{color:"error"})),r.a.createElement(k.a,{primary:"\u51fa\u5165\u5883\u6578\u64da"})),r.a.createElement(y.a,{button:!0,key:"\u5168\u7403\u75ab\u60c5",component:"a",href:"/global"},r.a.createElement(C.a,null,r.a.createElement(D.a,{color:"error"})),r.a.createElement(k.a,{primary:"\u5168\u7403\u75ab\u60c5"}))),r.a.createElement(v.a,null),r.a.createElement(E.a,null,r.a.createElement(y.a,{button:!0,key:"\u4f60\u7684\u610f\u898b",component:"a",href:"https://www.facebook.com/\u9999\u6e2fCovid-19\u6301\u7e8c\u66f4\u65b0\u6578\u64da\u5206\u6790-110625023923336/"},r.a.createElement(C.a,null,r.a.createElement(w.a,{color:"primary"})),r.a.createElement(k.a,{primary:"\u4f60\u7684\u610f\u898b"})),r.a.createElement(y.a,{button:!0,key:"Facebook\u5c08\u9801",component:"a",href:"https://www.facebook.com/\u9999\u6e2fCovid-19\u6301\u7e8c\u66f4\u65b0\u6578\u64da\u5206\u6790-110625023923336/"},r.a.createElement(C.a,null,r.a.createElement(F.a,{color:"primary"})),r.a.createElement(k.a,{primary:"Facebook\u5c08\u9801"})),r.a.createElement(y.a,{button:!0,key:"\u8cc7\u6599\u4f86\u6e90",component:"a",href:"/source"},r.a.createElement(C.a,null,r.a.createElement(z.a,{color:"primary"})),r.a.createElement(k.a,{primary:"\u8cc7\u6599\u4f86\u6e90"}))))},K=a(325),L=a(240),I=a(388),Z=a(820),Q=a(821),R=a(822),M=a(823),U=a(476),X=a.n(U),Y=a(477),J=a.n(Y),q=Object(i.a)((function(e){return{root:{width:"101%",flexGrow:1},menuButton:{marginRight:e.spacing(2)},title:{flexGrow:1,display:"flex",justifyContent:"center"}}})),G=function(e){var t=q(),a=r.a.useState({drawer:!1}),n=Object(c.a)(a,2),o=n[0],l=n[1],i=function(e){return function(t){("keydown"!==t.type||"Tab"!==t.key&&"Shift"!==t.key)&&l({drawer:e})}},f=r.a.useState(null),h=Object(c.a)(f,2),v=h[0],E=h[1],y=function(){E(null)};return r.a.createElement("div",{className:t.root},r.a.createElement(s.a,{position:"fixed"},r.a.createElement(u.a,null,r.a.createElement(d.a,{edge:"start",className:t.menuButton,color:"inherit","aria-label":"menu",onClick:i(!0)},r.a.createElement(m.a,null)),r.a.createElement(b.a,{variant:"h6",className:t.title},r.a.createElement(Z.a,{href:"/",color:"inherit"},"COVID-19\u8cc7\u6599\u6578\u64da\u6574\u5408")),r.a.createElement(K.a,{color:"inherit","aria-controls":"simple-menu","aria-haspopup":"true",onClick:function(e){E(e.currentTarget)}},r.a.createElement(g.a,null)))),r.a.createElement("div",{style:{paddingTop:30}}),r.a.createElement(p.a,{open:o.drawer,onClose:i(!1)},r.a.createElement(H,{onClick:i(!1),onKeyDown:i(!1)})),r.a.createElement(L.a,{id:"simple-menu",anchorEl:v,keepMounted:!0,open:Boolean(v),onClose:y},r.a.createElement(I.a,{onClick:y},r.a.createElement(Q.a,{url:"https://coronahk.info"},r.a.createElement(X.a,null)," WhatsApp")),r.a.createElement(I.a,{onClick:y},r.a.createElement(R.a,{url:"https://coronahk.info"},r.a.createElement(F.a,null),"Facebook")),r.a.createElement(I.a,{onClick:y},r.a.createElement(M.a,{url:"https://coronahk.info"},r.a.createElement(J.a,null),"Telegram"))))},V=a(83),$=a(75),ee=a(76),te=a(80),ae=a(77),ne=a(81),re=a(100),oe=a.n(re),le=a(20),ce=a.n(le),ie=a(147),se=a(824),ue=function(e){function t(e){var a;return Object($.a)(this,t),(a=Object(te.a)(this,Object(ae.a)(t).call(this,e))).globalonClick=function(){a.setState({options:Object(V.a)({},a.state.options,{xaxis:{categories:a.globallabels},colors:["#ff0000","#33cc33","#000000","#FF8C00"]}),series:[{name:"\u7d2f\u7a4d\u78ba\u8a3a",data:a.globalconfirmCase},{name:"\u51fa\u9662\u4eba\u6578",data:a.globalrecover},{name:"\u6b7b\u4ea1\u4eba\u6578",data:a.globaldeath},{name:"\u73fe\u6709\u78ba\u8a3a",data:a.globalactivecasesfin}]})},a.hkonClick=function(){a.setState({options:Object(V.a)({},a.state.options,{xaxis:{categories:a.hklabels},colors:["#ff0000","#33cc33","#000000","#FF8C00"]}),series:[{name:"\u7d2f\u7a4d\u4eba\u6578",data:a.hkcomfirmCase},{name:"\u51fa\u9662\u4eba\u6578",data:a.hkrecover},{name:"\u6b7b\u4ea1\u4eba\u6578",data:a.hkdeath},{name:"\u73fe\u6709\u78ba\u8a3a",data:a.hkactivecasesfin}]})},a.cnonClick=function(){a.setState({options:Object(V.a)({},a.state.options,{xaxis:{categories:a.globallabels},colors:["#ff0000","#33cc33","#000000","#FF8C00"]}),series:[{name:"\u7d2f\u7a4d\u78ba\u8a3a",data:a.cnconfirmCase},{name:"\u51fa\u9662\u4eba\u6578",data:a.cnrecover},{name:"\u6b7b\u4ea1\u4eba\u6578",data:a.cndeath},{name:"\u73fe\u6709\u78ba\u8a3a",data:a.cnactivecasesfin}]})},a.state={options:{chart:{id:"line",animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:600}},dropShadow:{enabled:!0,top:0,left:0,blur:3,opacity:.1}},xaxis:{categories:[]}},series:[{name:"",data:[]}]},a}return Object(ne.a)(t,e),Object(ee.a)(t,[{key:"componentDidMount",value:function(){var e=this;ce.a.all([ce.a.get("https://api.data.gov.hk/v2/filter?q=%7B%22resource%22%3A%22http%3A%2F%2Fwww.chp.gov.hk%2Ffiles%2Fmisc%2Flatest_situation_of_reported_cases_covid_19_eng.csv%22%2C%22section%22%3A1%2C%22format%22%3A%22json%22%7D"),ce.a.get("https://covid.ourworldindata.org/data/owid-covid-data.json/")]).then(ce.a.spread((function(t,a,n,r){var o=t.data,l=a.data.OWID_WRL.data;e.hklabels=[],e.hkcomfirmCase=[],e.hkfulfillReportingCriteria=[],e.hkinvestigation=[],e.hkrecover=[],e.hkdeath=[],e.globalconfirmCase=[],e.globaldeath=[],e.globalrecover=[],e.globallabels=[],e.cnconfirmCase=[],e.cnrecover=[],e.cndeath=[],e.hkactivecases1=[],e.hkactivecasesfin=[],e.cnactivecases1=[],e.cnactivecasesfin=[],e.globalactivecases1=[],e.globalactivecasesfin=[];console.log(e.hkcomfirmCase),o.map((function(t){return e.hklabels.push(t["As of date"]),e.hkcomfirmCase.push(t["Number of confirmed cases"]),e.hkrecover.push(t["Number of discharge cases"]),e.hkdeath.push(t["Number of death cases"]),!0}));for(var c=0;c<=e.hkrecover.length-1;c++)e.hkactivecasesfin.push(e.hkcomfirmCase[c]-e.hkrecover[c]-e.hkdeath[c]);l.map((function(t){return e.globallabels.push(t.date),e.globalconfirmCase.push(t.total_cases),e.globaldeath.push(t.new_cases),!0})),console.log(e.globallabels),e.setState({options:Object(V.a)({},e.state.options,{xaxis:{categories:e.hklabels},colors:["#ff0000","#33cc33","#000000","#FF8C00"]}),series:[{name:"\u7d2f\u7a4d\u78ba\u8a3a",data:e.hkcomfirmCase},{name:"\u51fa\u9662\u4eba\u6578",data:e.hkrecover},{name:"\u6b7b\u4ea1\u4eba\u6578",data:e.hkdeath},{name:"\u73fe\u6709\u78ba\u8a3a",data:e.hkactivecasesfin}]})})))}},{key:"render",value:function(){return r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{padding:10}},"\u7d2f\u7a4d\u500b\u6848"),r.a.createElement("div",{style:{paddingLeft:10}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group"},r.a.createElement(K.a,{onClick:this.hkonClick},"\u9999\u6e2f"),r.a.createElement(K.a,{onClick:this.cnonClick},"\u4e2d\u570b"),r.a.createElement(K.a,{onClick:this.globalonClick},"\u5168\u7403"))),r.a.createElement(oe.a,{options:this.state.options,series:this.state.series,type:"line",height:"350"}))}}]),t}(n.Component),de=function(e){function t(e){var a;return Object($.a)(this,t),(a=Object(te.a)(this,Object(ae.a)(t).call(this,e))).globalonClick=function(){a.setState({options:Object(V.a)({},a.state.options,{xaxis:{categories:a.globallabels},colors:["#ff0000","#33cc33","#000000"]}),series:[{name:"\u65b0\u589e\u78ba\u8a3a",data:a.globalnewconfirmCase},{name:"\u65b0\u589e\u51fa\u9662",data:a.globalnewrecover},{name:"\u65b0\u589e\u6b7b\u4ea1",data:a.globalnewdeath}]})},a.hkonClick=function(){a.setState({options:Object(V.a)({},a.state.options,{xaxis:{categories:a.hklabels},colors:["#ff0000","#33cc33","#000000"]}),series:[{name:"\u65b0\u589e\u78ba\u8a3a",data:a.hknewcomfirmCase},{name:"\u65b0\u589e\u51fa\u9662",data:a.hknewrecover},{name:"\u65b0\u589e\u6b7b\u4ea1",data:a.hknewdeath}]})},a.cnonClick=function(){a.setState({options:Object(V.a)({},a.state.options,{xaxis:{categories:a.globallabels},colors:["#ff0000","#33cc33","#000000"]}),series:[{name:"\u65b0\u589e\u78ba\u8a3a",data:a.cnnewconfirmCase},{name:"\u65b0\u589e\u51fa\u9662",data:a.cnnewrecover},{name:"\u65b0\u589e\u6b7b\u4ea1",data:a.cnnewdeath}]})},a.state={options:{chart:{id:"line",animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:600}},dropShadow:{enabled:!0,top:0,left:0,blur:3,opacity:.1}},xaxis:{categories:[]}},series:[{name:"",data:[]}]},a}return Object(ne.a)(t,e),Object(ee.a)(t,[{key:"componentDidMount",value:function(){var e=this;ce.a.all([ce.a.get("https://r3psfad7i6.execute-api.ap-southeast-1.amazonaws.com/Prod/figure"),ce.a.get("https://api.n-cov.info/worldcomfirm"),ce.a.get("https://api.n-cov.info/worlddeath"),ce.a.get("https://api.n-cov.info/worldRecover")]).then(ce.a.spread((function(t,a,n,r){var o=t.data.data,l=a.data.data,c=n.data.data,i=r.data.data;e.hklabels=[],e.hkcomfirmCase=[],e.hkfulfillReportingCriteria=[],e.hkinvestigation=[],e.hkrecover=[],e.hkdeath=[],e.globalconfirmCase=[],e.globaldeath=[],e.globalrecover=[],e.globallabels=[],e.cnconfirmCase=[],e.cnrecover=[],e.cndeath=[],e.hknewcomfirmCase=[],e.hknewdeath=[],e.hknewrecover=[],e.cnnewconfirmCase=[],e.cnnewdeath=[],e.cnnewrecover=[],e.globalnewconfirmCase=[],e.globalnewdeath=[],e.globalnewrecover=[],e.hkyestcomfirmCase=[],e.hkyestdeath=[],e.hkyestrecover=[],e.cnyestconfirmCase=[],e.cnyestwdeath=[],e.cnyestrecover=[],e.globalyestconfirmCase=[],e.globalyestdeath=[],e.globalyestrecover=[];var s=function(e){return Object.values(e).reduce((function(e,t){return e+t}))};o.map((function(t){return e.hklabels.push(t.updateDate),e.hkcomfirmCase.push(t.comfirmCase),e.hkrecover.push(t.recover),e.hkdeath.push(t.death),!0})),Object.values(l).map((function(t){return e.globalconfirmCase.push(s(t)),e.cnconfirmCase.push(t.China),!0})),Object.keys(l).map((function(t){return e.globallabels.push(t),!0})),Object.values(c).map((function(t){return e.globaldeath.push(s(t)),e.cndeath.push(t.China),!0})),Object.values(i).map((function(t){return e.globalrecover.push(s(t)),e.cnrecover.push(t.China),!0})),e.hkyestcomfirmCase=e.hkcomfirmCase.slice(),e.hkyestcomfirmCase.unshift(0),e.hkyestcomfirmCase.pop();for(var u=0;u<=e.hkyestcomfirmCase.length-1;u++)e.hknewcomfirmCase.push(e.hkcomfirmCase[u]-e.hkyestcomfirmCase[u]);e.hkyestrecover=e.hkrecover.slice(),e.hkyestrecover.unshift(0),e.hkyestrecover.pop();for(var d=0;d<=e.hkyestrecover.length-1;d++)e.hknewrecover.push(e.hkrecover[d]-e.hkyestrecover[d]);e.hkyestdeath=e.hkdeath.slice(),e.hkyestdeath.unshift(0),e.hkyestdeath.pop();for(var f=0;f<=e.hkyestdeath.length-1;f++)e.hknewdeath.push(e.hkdeath[f]-e.hkyestdeath[f]);e.cnyestconfirmCase=e.cnconfirmCase.slice(),e.cnyestconfirmCase.unshift(0),e.cnyestconfirmCase.pop();for(var m=0;m<=e.cnyestconfirmCase.length-1;m++)e.cnnewconfirmCase.push(e.cnconfirmCase[m]-e.cnyestconfirmCase[m]);e.cnyestrecover=e.cnrecover.slice(),e.cnyestrecover.unshift(0),e.cnyestrecover.pop();for(var h=0;h<=e.cnyestrecover.length-1;h++)e.cnnewrecover.push(e.cnrecover[h]-e.cnyestrecover[h]);e.cnyestdeath=e.cndeath.slice(),e.cnyestdeath.unshift(0),e.cnyestdeath.pop();for(var g=0;g<=e.cnyestdeath.length-1;g++)e.cnnewdeath.push(e.cndeath[g]-e.cnyestdeath[g]);e.globalyestconfirmCase=e.globalconfirmCase.slice(),e.globalyestconfirmCase.unshift(0),e.globalyestconfirmCase.pop();for(var b=0;b<=e.globalyestconfirmCase.length-1;b++)e.globalnewconfirmCase.push(e.globalconfirmCase[b]-e.globalyestconfirmCase[b]);e.globalyestrecover=e.globalrecover.slice(),e.globalyestrecover.unshift(0),e.globalyestrecover.pop();for(var p=0;p<=e.globalyestrecover.length-1;p++)e.globalnewrecover.push(e.globalrecover[p]-e.globalyestrecover[p]);e.globalyestdeath=e.globaldeath.slice(),e.globalyestdeath.unshift(0),e.globalyestdeath.pop();for(var v=0;v<=e.globalyestdeath.length-1;v++)e.globalnewdeath.push(e.globaldeath[v]-e.globalyestdeath[v]);e.setState({options:Object(V.a)({},e.state.options,{xaxis:{categories:e.hklabels},colors:["#ff0000","#33cc33","#000000"]}),series:[{name:"\u65b0\u589e\u78ba\u8a3a",data:e.hknewcomfirmCase},{name:"\u65b0\u589e\u51fa\u9662",data:e.hknewrecover},{name:"\u65b0\u589e\u6b7b\u4ea1",data:e.hknewdeath}]})})))}},{key:"render",value:function(){return r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{padding:10}},"\u6bcf\u65e5\u65b0\u589e\u500b\u6848"),r.a.createElement("div",{style:{paddingLeft:10}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group"},r.a.createElement(K.a,{onClick:this.hkonClick},"\u9999\u6e2f"),r.a.createElement(K.a,{onClick:this.cnonClick},"\u4e2d\u570b"),r.a.createElement(K.a,{onClick:this.globalonClick},"\u5168\u7403"))),r.a.createElement(oe.a,{options:this.state.options,series:this.state.series,type:"line",height:"350"}))}}]),t}(n.Component),fe=a(5),me=a(399),he=a(401),ge=a(397),be=a(825),pe=a(400),ve=a(398),Ee=a(67),ye=a.n(Ee),Ce=a(68),ke=a.n(Ce),Ae=Object(fe.a)((function(e){return{head:{backgroundColor:e.palette.common.black,color:e.palette.common.white},body:{fontSize:21}}}))(ge.a),Oe=Object(fe.a)((function(e){return{root:{"&:nth-of-type(odd)":{backgroundColor:e.palette.background.default}}}}))(ve.a),je=Object(i.a)({table:{minWidth:350}}),we=function(e){var t=je(),a=Object(n.useState)({}),o=Object(c.a)(a,2),l=o[0],i=o[1],s=Object(n.useState)({}),u=Object(c.a)(s,2),d=u[0],f=u[1];return Object(n.useEffect)((function(){ce.a.get("https://api.data.gov.hk/v2/filter?q=%7B%22resource%22%3A%22http%3A%2F%2Fwww.chp.gov.hk%2Ffiles%2Fmisc%2Flatest_situation_of_reported_cases_covid_19_eng.csv%22%2C%22section%22%3A1%2C%22format%22%3A%22json%22%7D").then((function(e){var t=e.data.pop(),a=e.data.pop(-2);i(t),f(a)}))}),[]),r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{paddingTop:10,paddingLeft:10}},"\u9999\u6e2f\u6700\u65b0\u6578\u5b57"),r.a.createElement(be.a,{component:ie.a},r.a.createElement(me.a,{className:t.table,"aria-label":"customized table"},r.a.createElement(pe.a,null,r.a.createElement(ve.a,null,r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#CC1E1E",color:"white",fontSize:11}},"\u7d2f\u7a4d\u78ba\u8a3a"),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#F23A3B",color:"white",fontSize:11}},"\u73fe\u6709\u78ba\u8a3a"),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#801749",color:"white"}},"\u5371\u6b86\u75c5\u4f8b"),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#148B50",color:"white",fontSize:13}},"\u51fa\u9662"),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#4E5A65",color:"white",fontSize:13}},"\u6b7b\u4ea1"),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#000000",color:"white",fontSize:12}},"\u6b7b\u4ea1\u7387"))),r.a.createElement(he.a,null,r.a.createElement(Oe,null,r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#FDF1F1",color:"#CC1E1E",fontSize:16}},l["Number of confirmed cases"]),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#FDF1F1",color:"#F23A3B",fontSize:16}},l["Number of confirmed cases"]-l["Number of discharge cases"]-l["Number of death cases"]),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#FAF2F6",color:"#801749",fontSize:16}},l["Number of hospitalised cases in critical condition"]),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#F1F8F4",color:"#148B50",fontSize:16}},l["Number of discharge cases"]),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#F3F6F8",color:"#4E5A65",fontSize:16}},l["Number of death cases"]),r.a.createElement(Ae,{align:"center",style:{backgroundColor:"#F3F6F8",color:"#4E5A65",fontSize:16}},(l["Number of death cases"]/(l["Number of death cases"]+l["Number of discharge cases"])*100).toFixed(1),"%")),r.a.createElement(Oe,null,r.a.createElement(Ae,{align:"center",style:{color:"#CC1E1E",fontSize:12}},l["Number of confirmed cases"]-d["Number of confirmed cases"]>0?r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ye.a,null),l["Number of confirmed cases"]-d["Number of confirmed cases"]):l["Number of confirmed cases"]-d["Number of confirmed cases"]===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ke.a,null)," ",l["Number of confirmed cases"]-d["Number of confirmed cases"])),r.a.createElement(Ae,{align:"center",style:{color:"#F23A3B",fontSize:12}},l["Number of confirmed cases"]-l["Number of discharge cases"]-l["Number of death cases"]-(d["Number of confirmed cases"]-d["Number of discharge cases"]-d["Number of death cases"])>0?r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ye.a,null),l["Number of confirmed cases"]-l["Number of discharge cases"]-l["Number of death cases"]-(d["Number of confirmed cases"]-d["Number of discharge cases"]-d["Number of death cases"])):l["Number of confirmed cases"]-l["Number of discharge cases"]-l["Number of death cases"]-(d["Number of confirmed cases"]-d["Number of discharge cases"]-d["Number of death cases"])===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ke.a,null)," ",l["Number of confirmed cases"]-l["Number of discharge cases"]-l["Number of death cases"]-(d["Number of confirmed cases"]-d["Number of discharge cases"]-d["Number of death cases"]))),r.a.createElement(Ae,{align:"center",style:{color:"#801749",fontSize:12}},l["Number of hospitalised cases in critical condition"]-d["Number of hospitalised cases in critical condition"]>0?r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ye.a,null),l["Number of hospitalised cases in critical condition"]-d["Number of hospitalised cases in critical condition"]):l["Number of hospitalised cases in critical condition"]-d["Number of hospitalised cases in critical condition"]===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ke.a,null)," ",l["Number of hospitalised cases in critical condition"]-d["Number of hospitalised cases in critical condition"])),r.a.createElement(Ae,{align:"center",style:{color:"#148B50",fontSize:12}},l["Number of discharge cases"]-d["Number of discharge cases"]>0?r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ye.a,null),l["Number of discharge cases"]-d["Number of discharge cases"]):l["Number of discharge cases"]-d["Number of discharge cases"]===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ke.a,null)," ",l["Number of discharge cases"]-d["Number of discharge cases"])),r.a.createElement(Ae,{align:"center",style:{color:"#4E5A65",fontSize:12}},l["Number of death cases"]-d["Number of death cases"]>0?r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ye.a,null),l["Number of death cases"]-d["Number of death cases"]):l["Number of death cases"]-d["Number of death cases"]===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ke.a,null)," ",l["Number of death cases"]-d["Number of death cases"])),r.a.createElement(Ae,{align:"center",style:{color:"#4E5A65",fontSize:16}},l["Number of death cases"]/(l["Number of death cases"]+l["Number of discharge cases"])-d["Number of death cases"]/(d["Number of death cases"]+d["Number of discharge cases"])>0?r.a.createElement(b.a,{style:{fontSize:12}},r.a.createElement(ye.a,null),(100*(l["Number of death cases"]/(l["Number of death cases"]+l["Number of discharge cases"])-d["Number of death cases"]/(d["Number of death cases"]+d["Number of discharge cases"]))).toFixed(1),"%"):l["Number of death cases"]/(l["Number of death cases"]+l["Number of discharge cases"])-d["Number of death cases"]/(d["Number of death cases"]+d["Number of discharge cases"])===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,{style:{fontSize:9}},r.a.createElement(ke.a,null)," ",(100*(l["Number of death cases"]/(l["Number of death cases"]+l["Number of discharge cases"])-d["Number of death cases"]/(d["Number of death cases"]+d["Number of discharge cases"]))).toFixed(1),"%")))))))},_e=function(){var e=Object(n.useState)([]),t=Object(c.a)(e,2),a=(t[0],t[1],Object(n.useState)()),o=Object(c.a)(a,2),l=o[0],i=o[1],s=Object(n.useState)(),u=Object(c.a)(s,2),d=u[0],f=u[1],m=Object(n.useState)(),h=Object(c.a)(m,2),g=(h[0],h[1]),b=Object(n.useState)(),p=Object(c.a)(b,2),v=p[0],E=p[1],y=Object(n.useState)(),C=Object(c.a)(y,2),k=(C[0],C[1]);Object(n.useEffect)((function(){ce.a.get("https://api.data.gov.hk/v2/filter?q=%7B%22resource%22%3A%22http%3A%2F%2Fwww.chp.gov.hk%2Ffiles%2Fmisc%2Fenhanced_sur_covid_19_eng.csv%22%2C%22section%22%3A1%2C%22format%22%3A%22json%22%7D").then((function(e){var t=e.data,a=t.filter((function(e){return"Hospitalised"==e["Hospitalised/Discharged/Deceased"]})),n=t.filter((function(e){return"To be provided"==e["Hospitalised/Discharged/Deceased"]})),r=[Object.keys(a).length],o=[Object.keys(n).length];console.log(r),console.log(o),i(r),f(o),k("bar"),g(!0),E("100%")}))}),[]);return r.a.createElement(ie.a,null,r.a.createElement(oe.a,{options:{dataLabels:{enabled:!0,textAnchor:"middle",style:{colors:["#fff"]},formatter:function(e){return Math.round(e)+"%"},offsetX:0,dropShadow:{enabled:!0}},chart:{type:"bar",height:10,stacked:!0,stackType:v},plotOptions:{bar:{horizontal:!0}},responsive:[{breakpoint:480,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],xaxis:{categories:["\u73fe\u6709"]},colors:["#0000FF","#ff0000"],fill:{opacity:1},legend:{position:"right",offsetX:0,offsetY:50}},series:[{name:"\u4f4f\u9662\u4e2d",data:l},{name:"\u5f85\u78ba\u8a8d",data:d}],type:"bar",height:"150"}))},Se={padding:10,backgroundColor:"#F5F5F6"},Ne={paddingTop:0,backgroundColor:"#F5F5F6"};var ze=function(){var e=Object(n.useState)(),t=Object(c.a)(e,2),a=t[0],o=t[1],l=Object(n.useState)(),i=Object(c.a)(l,2),s=i[0],u=i[1];return Object(n.useEffect)((function(){var e=new Date,t=new Date(2020,0,22),a=e.getHours();o(Math.floor(Math.abs((e-t)/864e5))),a<12&&u("\u65e9\u6668"),a>=12&&a<18&&u("\u5348\u5b89"),a>=18&&u("\u665a\u5b89")}),[]),r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:Se},r.a.createElement("div",{style:Ne},r.a.createElement("hr",null)),r.a.createElement("p",{style:{fontSize:12,fontStyle:"italic",color:"grey"}}," ","\u7531\u65bc\u6578\u64da\u4e0d\u6e96\u78ba\uff0c\u970d\u666e\u91d1\u65af\u5927\u5b78\u5df2\u65bc3/24\u8d77\u505c\u6b62\u63d0\u4f9b\u7d55\u5927\u90e8\u5206\u570b\u5bb6\uff08\u5305\u62ec\u7f8e\u570b\uff09\u7684\u6cbb\u6108\u6578\u5b57\u3002\u6211\u5011\u53ea\u6703\u7e7c\u7e8c\u986f\u793a\u6b77\u53f2\u6cbb\u6108\u6578\u5b57\u53ca\u6b77\u53f2\u73fe\u6709\u78ba\u8a3a\u6578\u5b57\uff0c\u656c\u8acb\u898b\u8ad2\u3002"," "),r.a.createElement(ie.a,{style:{padding:5}},r.a.createElement("p",null,s,"\uff0c\u4eca\u5929\u662f\u9999\u6e2f\u4eba\u4e00\u8d77\u6297\u75ab\u7684\u7b2c",a,"\u5929\u3002\u8acb\u7e7c\u7e8c\u4fdd\u6301\u8b66\u89ba\uff0c\u4e0d\u8981\u9b06\u61c8\uff0c\u540c\u5fc3\u5c0d\u6297\u75ab\u60c5\u3002")),r.a.createElement(ie.a,null,r.a.createElement(we,null),r.a.createElement(K.a,{href:"/hkindepth",color:"primary"},"\u67e5\u770b\u9999\u6e2f\u5730\u5340\u6df1\u5165\u6578\u64da\u5206\u6790>")),r.a.createElement(ue,null),r.a.createElement(de,null)))};function xe(){var e=Object(n.useState)([]),t=Object(c.a)(e,2),a=t[0],o=t[1];return Object(n.useEffect)((function(){ce.a.all([ce.a.get("https://api.n-cov.info/figure"),ce.a.get("https://api.n-cov.info/worldcomfirm")]).then(ce.a.spread((function(e,t){var a=e.data.data,n=t.data.data,r=a.pop().updateDate,l=a.pop().updateTime,c=Object.keys(n).pop();o({HKUpdateDate:r,HKUpdateTime:l,HKUpdateFull:"".concat(r," ").concat(l),GlobalUpdateDate:c})})))}),[]),r.a.createElement(ie.a,{style:{paddingLeft:10}},r.a.createElement("p",{style:{color:"grey"}},"\u6578\u64da\u6bcf\u7d0424\u5c0f\u6642\u66f4\u65b0\u4e00\u6b21"),r.a.createElement("p",{style:{color:"grey"}},"\u9999\u6e2f\u6578\u64da\u7d71\u8a08\u622a\u81f3 ",a.HKUpdateFull),r.a.createElement("p",{style:{color:"grey"}},"\u4e2d\u570b\u53ca\u570b\u969b\u6578\u64da\u7d71\u8a08\u622a\u81f3 ",a.GlobalUpdateDate))}var Fe=a(128),We=a.n(Fe),De=Object(fe.a)((function(e){return{head:{backgroundColor:e.palette.common.black,color:e.palette.common.white},body:{fontSize:21}}}))(ge.a),Be=Object(fe.a)((function(e){return{root:{"&:nth-of-type(odd)":{backgroundColor:e.palette.background.default}}}}))(ve.a),Te=Object(i.a)({table:{minWidth:350}}),Pe=function(e){var t=Te(),a=Object(n.useState)({}),o=Object(c.a)(a,2),l=o[0],i=o[1],s=Object(n.useState)({}),u=Object(c.a)(s,2),d=u[0],f=u[1];return Object(n.useEffect)((function(){ce.a.all([ce.a.get("https://api.n-cov.info/worldcomfirm"),ce.a.get("https://api.n-cov.info/worlddeath")]).then(ce.a.spread((function(e,t){Object.pop=function(){for(var e in this)if(Object.hasOwnProperty.call(this,e)){var t=this[e];if(!delete this[e])throw new Error;return t}};var a=function(e){return Object.values(e).reduce((function(e,t){return e+t}))},n={comfirmCase:a(Object.values(e.data.data).pop()),death:a(Object.values(t.data.data).pop())},r={comfirmCase:a(Object.values(e.data.data)[Object.values(e.data.data).length-2]),death:a(Object.values(t.data.data)[Object.values(t.data.data).length-2])};console.log(n),console.log(r),i(n),f(r)})))}),[]),r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{paddingTop:10,paddingLeft:10}},"\u5168\u7403\u6700\u65b0\u6578\u5b57"),r.a.createElement(be.a,{component:ie.a},r.a.createElement(me.a,{className:t.table,"aria-label":"customized table"},r.a.createElement(pe.a,null,r.a.createElement(ve.a,null,r.a.createElement(De,{align:"center",style:{backgroundColor:"#CC1E1E",color:"white",fontSize:17}},"\u7d2f\u7a4d\u78ba\u8a3a"),r.a.createElement(De,{align:"center",style:{backgroundColor:"#4E5A65",color:"white",fontSize:15}},"\u7d2f\u7a4d\u6b7b\u4ea1"))),r.a.createElement(he.a,null,r.a.createElement(Be,null,r.a.createElement(De,{align:"center",style:{backgroundColor:"#FDF1F1",color:"#CC1E1E",fontSize:14}},l.comfirmCase),r.a.createElement(De,{align:"center",style:{backgroundColor:"#F3F6F8",color:"#4E5A65",fontSize:14}},l.death)),r.a.createElement(Be,null,r.a.createElement(De,{align:"center",style:{color:"#CC1E1E",fontSize:14}},l.comfirmCase-d.comfirmCase>0?r.a.createElement(b.a,null,r.a.createElement(ye.a,null),l.comfirmCase-d.comfirmCase):l.comfirmCase-d.comfirmCase===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,null,r.a.createElement(ke.a,null)," ",l.comfirmCase-d.comfirmCase)),r.a.createElement(De,{align:"center",style:{color:"#4E5A65",fontSize:14}},l.death-d.death>0?r.a.createElement(b.a,null,r.a.createElement(ye.a,null),l.death-d.death):l.death-d.death===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,null,r.a.createElement(ke.a,null)," ",l.death-d.death)))))))},He=a(167),Ke=a(478),Le=function(e){var t,a,o=Object(n.useState)(),l=Object(c.a)(o,2),i=l[0],s=l[1],u=Object(n.useState)(),d=Object(c.a)(u,2),f=d[0],m=d[1],h=Object(n.useState)(),g=Object(c.a)(h,2),b=g[0],p=g[1],v=Object(n.useState)(),E=Object(c.a)(v,2),y=E[0],C=E[1],k=Object(n.useState)(),A=Object(c.a)(k,2),O=A[0],j=A[1];Object(n.useEffect)((function(){ce.a.all([ce.a.get("https://api.n-cov.info/worldcomfirm"),ce.a.get("https://api.n-cov.info/worlddeath")]).then(ce.a.spread((function(e,n){var r=function(e,t){return Object.keys(t).reduce((function(a,n){return Object(V.a)({},a,{},Object(He.a)({},e[n]||n,t[n]))}),{})},o={"Congo (Brazzaville)":"CG","Congo (Kinshasa)":"CD","Cote d'Ivoire":"CI",Czechia:"CZ","Diamond Princess":"",Eswatini:"SZ","Taiwan*":"Taiwan","Cabo Verde":"CV","Holy See":"VA","Korea, South":"South Korea","North Macedonia":"MK","Timor-Leste":"TL",Kosovo:"XK"},l=e.data.data,c=r(o,l[Object.keys(l)[Object.keys(l).length-1]]),i=n.data.data,u=r(o,i[Object.keys(i)[Object.keys(i).length-1]]);delete c["Diamond Princess"],delete c["West Bank and Gaza"],delete u["Diamond Princess"],delete u["West Bank and Gaza"],delete c["MS Zaandam"],delete u["MS Zaandam"],t=Object.entries(c),a=Object.entries(u),t.unshift(["Country","Confirmed Cases"]),a.unshift(["Country","Deaths"]),s(t),m(t),p(a),j("world"),C(["#ffe6e6","#ff6666","#ff4d4d","#ff3333","#ff1a1a","#ff0000","#e60000","#cc0000","#b30000","#990000","#800000","#660000","#4d0000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000"])})))}),[]);return r.a.createElement(ie.a,null,r.a.createElement("div",{style:{paddingTop:10,paddingLeft:10}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group"},r.a.createElement(K.a,{onClick:function(){s(f),C(["#ffe6e6","#ff6666","#ff4d4d","#ff3333","#ff1a1a","#ff0000","#e60000","#cc0000","#b30000","#990000","#800000","#660000","#4d0000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000","#330000"])}},"\u78ba\u8a3a"),r.a.createElement(K.a,{onClick:function(){s(b),C(["#ffe6ff","#1a001a"])}},"\u6b7b\u4ea1"))),r.a.createElement(Ke.a,{chartType:"GeoChart",data:i,options:{region:O,colorAxis:{colors:y}}}),r.a.createElement("div",{style:{padding:10}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group"},r.a.createElement(K.a,{onClick:function(){j("world")}},"\u5168\u7403"),r.a.createElement(K.a,{onClick:function(){j("150")}},"\u6b50\u6d32"),r.a.createElement(K.a,{onClick:function(){j("142")}},"\u4e9e\u6d32"))))},Ie=Object(fe.a)((function(e){return{head:{backgroundColor:e.palette.common.black,color:e.palette.common.white},body:{fontSize:21}}}))(ge.a),Ze=Object(fe.a)((function(e){return{root:{"&:nth-of-type(odd)":{backgroundColor:e.palette.background.default}}}}))(ve.a),Qe=Object(i.a)({table:{minWidth:370}}),Re=function(e){var t=Qe(),a=Object(n.useState)(),o=Object(c.a)(a,2),l=o[0],i=o[1],s=Object(n.useState)(),u=Object(c.a)(s,2),d=u[0],f=u[1],m=Object(n.useState)(),h=Object(c.a)(m,2),g=h[0],p=h[1],v=Object(n.useState)(),E=Object(c.a)(v,2),y=E[0],C=E[1];return Object(n.useEffect)((function(){ce.a.get("https://r3psfad7i6.execute-api.ap-southeast-1.amazonaws.com/Prod/immigration").then((function(e){var t=e.data.data.reverse(),a=t.pop().data,n=t.pop(-2).data;i(a.\u7e3d\u8a08.totalArrival),f(a.\u7e3d\u8a08.totalDepartue),p(n.\u7e3d\u8a08.totalArrival),C(n.\u7e3d\u8a08.totalDepartue)}))}),[]),r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{paddingTop:10,paddingLeft:10}},"\u6628\u65e5\u51fa\u5165\u5883\u6578\u64da"),r.a.createElement(be.a,{component:ie.a},r.a.createElement(me.a,{className:t.table,"aria-label":"customized table"},r.a.createElement(pe.a,null,r.a.createElement(ve.a,null,r.a.createElement(Ie,{align:"center",style:{backgroundColor:"#CC1E1E",color:"white"}},"\u5165\u5883\u4eba\u6578"),r.a.createElement(Ie,{align:"center",style:{backgroundColor:"#F23A3B",color:"white"}},"\u51fa\u5883\u4eba\u6578"))),r.a.createElement(he.a,null,r.a.createElement(Ze,null,r.a.createElement(Ie,{align:"center",style:{backgroundColor:"#FDF1F1",color:"#CC1E1E"}},l),r.a.createElement(Ie,{align:"center",style:{backgroundColor:"#FDF1F1",color:"#F23A3B"}},d)),r.a.createElement(Ze,null,r.a.createElement(Ie,{align:"center",style:{color:"#CC1E1E"}},l-g>0?r.a.createElement(b.a,null,r.a.createElement(ye.a,null),l-g):l-g===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,null,r.a.createElement(ke.a,null)," ",l-g)),r.a.createElement(Ie,{align:"center",style:{color:"#CC1E1E"}},d-y>0?r.a.createElement(b.a,null,r.a.createElement(ye.a,null),d-y):d-y===0?r.a.createElement(b.a,null,"-"):r.a.createElement(b.a,null,r.a.createElement(ke.a,null)," ",d-y)))))))},Me=a(102),Ue=a.n(Me),Xe={padding:10};var Ye=function(){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:Xe},r.a.createElement(ie.a,null,r.a.createElement(Pe,null),r.a.createElement(Le,null),r.a.createElement(K.a,{href:"/global",color:"primary"},"\u67e5\u770b\u5168\u7403\u75ab\u60c5>")),r.a.createElement(ie.a,null,r.a.createElement(Re,null),r.a.createElement(K.a,{href:"/immigration",color:"primary"},"\u67e5\u770b\u51fa\u5165\u5883\u6578\u64da>")),r.a.createElement(xe,null),r.a.createElement("img",{style:{width:"35%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:Ue.a,alt:"IDEEA"}),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"2020"),r.a.createElement("img",{style:{width:"12%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:"https://upload.wikimedia.org/wikipedia/en/thumb/0/00/Badge_of_Wah_Yan_College%2C_Hong_Kong.svg/1200px-Badge_of_Wah_Yan_College%2C_Hong_Kong.svg.png",alt:"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"})))},Je=Object(i.a)((function(e){return{root:{width:"100%",backgroundColor:"#F5F5F6"},homeWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-around",flexWrap:"wrap"},leftWrapper:{flex:1,padding:6},rightWrapper:{flex:1,padding:6},cardBottom:{display:"flex",justifyContent:"flex-end"},card:{marginTop:15},cardTitle:{backgroudColor:"#333333"}}})),qe=function(e){var t=Je();return r.a.createElement("div",{className:t.root},r.a.createElement("div",{className:t.homeWrapper},r.a.createElement("div",{className:t.leftWrapper},r.a.createElement(ze,null)),r.a.createElement("div",{className:t.rightWrapper},r.a.createElement(Ye,null))))},Ge=a(500),Ve=function(){var e=Object(n.useState)([]),t=Object(c.a)(e,2),a=t[0],o=t[1],l=Object(n.useState)([]),i=Object(c.a)(l,2),s=i[0],u=i[1],d=Object(n.useState)([]),f=Object(c.a)(d,2),m=f[0],h=f[1],g=Object(n.useState)(),b=Object(c.a)(g,2),p=b[0],v=b[1],E=Object(n.useState)(),y=Object(c.a)(E,2),C=y[0],k=y[1],A=Object(n.useState)(),O=Object(c.a)(A,2),j=O[0],w=O[1],_=Object(n.useState)([]),S=Object(c.a)(_,2),N=S[0],z=S[1];Object(n.useEffect)((function(){ce.a.get("https://api.n-cov.info/case").then((function(e){var t=e.data.data,a=Object(Ge.a)(new Set(t.map((function(e){return e.caseType})))),n=t.reduce((function(e,t){var n=t.caseType,r=t.comfirmDate;return e[r]||(e[r]=a.reduce((function(e,t){return e[t]=0,e}),{})),e[r][n]++,e}),{}),r=Object.entries(n).reduce((function(e,t,a){var n=Object(c.a)(t,2),r=n[0],o=n[1];return e.comfirmDate=(e.comfirmDate||[]).concat(r),Object.entries(o).forEach((function(t){var n=Object(c.a)(t,2),r=n[0],o=n[1];e[r]||(e[r]=[]),e[r][a]=o})),e}),{});console.log(r);var l=[],i=[],s=[],d=[],f=[],m=[];r.\u53ef\u80fd\u672c\u5730\u500b\u6848.reduce((function(e,t,a){return l[a]=e+t}),0),r.\u53ef\u80fd\u672c\u5730\u500b\u6848\u7684\u5bc6\u5207\u63a5\u89f8\u8005.reduce((function(e,t,a){return i[a]=e+t}),0),r.\u672c\u5730\u500b\u6848\u7684\u5bc6\u5207\u63a5\u89f8\u8005.reduce((function(e,t,a){return s[a]=e+t}),0),r.\u672c\u5730\u500b\u6848.reduce((function(e,t,a){return d[a]=e+t}),0),r.\u8f38\u5165\u500b\u6848.reduce((function(e,t,a){return f[a]=e+t}),0),r.\u8f38\u5165\u500b\u6848\u7684\u5bc6\u5207\u63a5\u89f8\u8005.reduce((function(e,t,a){return m[a]=e+t}),0);var g=[l,i,d,s].reduce((function(e,t){return t.map((function(t,a){return(e[a]||0)+t}))}),[]);u(f),o(r.comfirmDate),z(m),h(g),console.log(f),console.log(r.comfirmDate),console.log(m),console.log(g),w("histogram"),v(!0),k("100%")}))}),[]);return r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{paddingTop:10,paddingLeft:10}},"\u672c\u5730\uff0d\u8f38\u5165"),r.a.createElement("div",{style:{paddingTop:10,paddingLeft:10}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group"},r.a.createElement(K.a,{onClick:function(){w("histogram"),v(!0),k("100%")}},"\u767e\u4efd\u6bd4%"),r.a.createElement(K.a,{onClick:function(){w("histogram"),v(!0),k("normal")}},"\u500b\u6848"),r.a.createElement(K.a,{onClick:function(){w("line"),v(!1),k("normal")}},"\u6298\u7dda\u5716"))),r.a.createElement(oe.a,{options:{chart:{type:"bar",height:350,stacked:p,stackType:C},dataLabels:{enabled:!1},responsive:[{breakpoint:480,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],xaxis:{categories:a},fill:{opacity:1},legend:{position:"right",offsetX:0,offsetY:50}},series:[{name:"\u8f38\u5165\u500b\u6848",data:s},{name:"\u8f38\u5165\u500b\u6848\u7684\u7dca\u5bc6\u63a5\u89f8\u8005",data:N},{name:"\u672c\u5730\u500b\u6848 \u53ca \u5176\u4ed6",data:m}],height:"500",type:j}))},$e={padding:10},et=function(e){function t(){return Object($.a)(this,t),Object(te.a)(this,Object(ae.a)(t).apply(this,arguments))}return Object(ne.a)(t,e),Object(ee.a)(t,[{key:"render",value:function(){return r.a.createElement("div",{style:$e},r.a.createElement("h1",null,"\u9999\u6e2f\u5730\u5340\u6df1\u5165\u6578\u64da\u5206\u6790"),r.a.createElement("hr",null),r.a.createElement(we,null),r.a.createElement(_e,null),r.a.createElement(Ve,null))}}]),t}(n.Component),tt=(Object(fe.a)((function(e){return{head:{backgroundColor:e.palette.common.black,color:e.palette.common.white},body:{fontSize:21}}}))(ge.a),Object(fe.a)((function(e){return{root:{"&:nth-of-type(odd)":{backgroundColor:e.palette.background.default}}}}))(ve.a),Object(i.a)({table:{minWidth:100}}),a(480),a(481),a(567),Object(i.a)((function(e){return{root:{width:"100%"},safe:{fill:"blue"},dangerous:{fill:"lightblue"},heat2:{fill:"orange"},heat3:{fill:"red"}}})),a(482)),at=function(e){function t(e){var a;return Object($.a)(this,t),(a=Object(te.a)(this,Object(ae.a)(t).call(this,e))).latestonClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a.latestrecover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a.latestdeath,color:"#000000\t"}],total:a.latestdeath+a.latestrecover>=1?a.latestdeath+a.latestrecover:7e6,death:a.latestdeath,recover:a.latestrecover})},a._0110onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._0110recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._0110death,color:"#000000\t"}],total:a._0110death+a._0110recover>=1?a._0110death+a._0110recover:7e6,death:a._0110death,recover:a._0110recover})},a._1120onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._1120recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._1120death,color:"#000000\t"}],total:a._1120death+a._1120recover>=1?a._1120death+a._1120recover:7e6,death:a._1120death,recover:a._1120recover})},a._2130onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._2130recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._2130death,color:"#000000\t"}],total:a._2130death+a._2130recover>=1?a._2130death+a._2130recover:7e6,death:a._2130death,recover:a._2130recover})},a._3140onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._3140recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._3140death,color:"#000000\t"}],total:a._3140death+a._3140recover>=1?a._3140death+a._3140recover:7e6,death:a._3140death,recover:a._3140recover})},a._4150onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._4150recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._4150death,color:"#000000\t"}],total:a._4150death+a._4150recover>=1?a._4150death+a._4150recover:7e6,death:a._4150death,recover:a._4150recover})},a._5160onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._5160recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._5160death,color:"#000000\t"}],total:a._5160death+a._5160recover>=1?a._5160death+a._5160recover:7e6,death:a._5160death,recover:a._5160recover})},a._6170onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._6170recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._6170death,color:"#000000\t"}],total:a._6170death+a._6170recover>=1?a._6170death+a._6170recover:7e6,death:a._6170death,recover:a._6170recover})},a._7180onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._7180recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._7180death,color:"#000000\t"}],total:a._7180death+a._7180recover>=1?a._7180death+a._7180recover:7e6,death:a._7180death,recover:a._7180recover})},a._8190onClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._8190recover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._8190death,color:"#000000\t"}],total:a._8190death+a._8190recover>=1?a._8190death+a._8190recover:7e6,death:a._8190death,recover:a._8190recover})},a._91plusonClick=function(){a.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:a._91plusrecover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:a._91plusdeath,color:"#000000\t"}],total:a._91plusdeath+a._91plusrecover>=1?a._91plusdeath+a._91plusrecover:7e6,death:a._91plusdeath,recover:a._91plusrecover})},a.state={data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:100,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:0,color:"#000000\t"}],total:1,death:0,recover:100},a}return Object(ne.a)(t,e),Object(ee.a)(t,[{key:"componentDidMount",value:function(){var e=this;ce.a.get("https://r3psfad7i6.execute-api.ap-southeast-1.amazonaws.com/Prod/case").then((function(t){var a=t.data.data;e._0110=a.filter((function(e){return e.age<=10&&e.age>=1})),e._1120=a.filter((function(e){return e.age<=20&&e.age>=11})),e._2130=a.filter((function(e){return e.age<=30&&e.age>=21})),e._3140=a.filter((function(e){return e.age<=40&&e.age>=31})),e._4150=a.filter((function(e){return e.age<=50&&e.age>=41})),e._5160=a.filter((function(e){return e.age<=60&&e.age>=51})),e._6170=a.filter((function(e){return e.age<=70&&e.age>=61})),e._7180=a.filter((function(e){return e.age<=80&&e.age>=71})),e._8190=a.filter((function(e){return e.age<=90&&e.age>=81})),e._91plus=a.filter((function(e){return e.age>=90})),e._0110death=e._0110.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._0110death),e._0110recover=e._0110.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._0110recover),e._1120death=e._1120.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._1120death),e._1120recover=e._1120.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._1120recover),e._2130death=e._2130.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._2130death),e._2130recover=e._2130.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._2130recover),e._3140death=e._3140.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._3140death),e._3140recover=e._3140.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._3140recover),e._4150death=e._4150.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._4150death),e._4150recover=e._4150.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._4150recover),e._5160death=e._5160.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._5160death),e._5160recover=e._5160.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._5160recover),e._6170death=e._6170.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._6170death),e._6170recover=e._6170.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._6170recover),e._7180death=e._7180.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._7180death),e._7180recover=e._7180.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._7180recover),e._8190death=e._8190.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._8190death),e._8190recover=e._8190.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._8190recover),e._91plusdeath=e._91plus.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e._91plusdeath),e._91plusrecover=e._91plus.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e._91plusrecover),e.latestdeath=a.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length,console.log(e.latestdeath),e.latestrecover=a.filter((function(e){return"\u51fa\u9662"===e.status})).length,console.log(e.latestrecover),e.setState({data:[{id:"\u51fa\u9662",label:"\u51fa\u9662",value:e.latestrecover,color:"#4E5A65"},{id:"\u6b7b\u4ea1",label:"\u6b7b\u4ea1",value:e.latestdeath,color:"#000000\t"}],total:e.latestdeath+e.latestrecover>=1?e.latestdeath+e.latestrecover:100,death:e.latestdeath,recover:e.latestrecover})}))}},{key:"render",value:function(){return r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{paddingTop:10,paddingLeft:10}},"\u78ba\u8a3a\u500b\u6848\u6b7b\u4ea1\u7387*"),r.a.createElement("div",{style:{paddingLeft:4}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group",size:"small"},r.a.createElement(K.a,{onClick:this.latestonClick},"\u6240\u6709\u5e74\u9f61"),r.a.createElement(K.a,{onClick:this._0110onClick},"1-10"),r.a.createElement(K.a,{onClick:this._1120onClick},"11-20"),r.a.createElement(K.a,{onClick:this._2130onClick},"21-30")," ",r.a.createElement(K.a,{onClick:this._3140onClick},"31-40")," ",r.a.createElement(K.a,{onClick:this._4150onClick},"41-50")," "),r.a.createElement("div",{style:{paddingTop:10}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group",size:"small"},r.a.createElement(K.a,{onClick:this._5160onClick},"51-60")," ",r.a.createElement(K.a,{onClick:this._6170onClick},"61-70")," ",r.a.createElement(K.a,{onClick:this._7180onClick},"71-80")," ",r.a.createElement(K.a,{onClick:this._8190onClick},"81-90")," ",r.a.createElement(K.a,{onClick:this._91plusonClick},"91+")))),r.a.createElement("div",{style:{height:"82px"}},r.a.createElement(tt.a,{data:this.state.data,total:this.state.total,rows:4,columns:25,margin:{top:10,right:0,bottom:10,left:0},colors:{scheme:"dark2"},borderColor:{from:"color",modifiers:[["darker",.3]]},animate:!0,motionStiffness:50,motionDamping:20,legends:[{anchor:"top-left",direction:"column",justify:!1,translateX:-100,translateY:0,itemsSpacing:4,itemWidth:100,itemHeight:20,itemDirection:"left-to-right",itemOpacity:1,itemTextColor:"#777",symbolSize:20,effects:[{on:"hover",style:{itemTextColor:"#000",itemBackground:"#f7fafb"}}]}]})),r.a.createElement(be.a,{component:ie.a},r.a.createElement(me.a,null,r.a.createElement(pe.a,null,r.a.createElement(ve.a,null,r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#009EDE",color:"white"}},"\u5df2\u5b8c\u7d50\u500b\u6848"),r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#4E5A65",color:"white"}},"\u6b7b\u4ea1\u4eba\u6578"),r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#178B50",color:"white"}},"\u51fa\u9662\u4eba\u6578"),r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#0C0D0E",color:"white"}},"\u6b7b\u4ea1\u7387"))),r.a.createElement(he.a,null,r.a.createElement(ve.a,null,r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#E1ECF4",color:"#009EDE",fontSize:21}},7e6==this.state.total?0:this.state.total),r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#F3F6F8",color:"#4E5A65",fontSize:21}},this.state.death),r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#F1F8F4",color:"#178B50",fontSize:21}},this.state.recover),r.a.createElement(ge.a,{align:"center",style:{backgroundColor:"#F3F6F8",color:"#0C0D0E",fontSize:21}},Math.round(this.state.death/(this.state.death+this.state.recover)*100)>=0?Math.round(this.state.death/(this.state.death+this.state.recover)*100)+"%":"-"))))))}}]),t}(n.Component),nt=function(){var e=Object(n.useState)([]),t=Object(c.a)(e,2),a=t[0],o=t[1],l=Object(n.useState)([]),i=Object(c.a)(l,2),s=i[0],u=i[1],d=Object(n.useState)([]),f=Object(c.a)(d,2),m=f[0],h=f[1],g=Object(n.useState)([]),b=Object(c.a)(g,2),p=b[0],v=b[1],E=Object(n.useState)([]),y=Object(c.a)(E,2),C=(y[0],y[1],Object(n.useState)([])),k=Object(c.a)(C,2),A=(k[0],k[1],Object(n.useState)()),O=Object(c.a)(A,2),j=(O[0],O[1]),w=Object(n.useState)(),_=Object(c.a)(w,2),S=_[0],N=_[1],z=Object(n.useState)(),x=Object(c.a)(z,2),F=(x[0],x[1]),W=Object(n.useState)([]),D=Object(c.a)(W,2),B=D[0],T=D[1];Object(n.useEffect)((function(){ce.a.get("https://r3psfad7i6.execute-api.ap-southeast-1.amazonaws.com/Prod/case").then((function(e){var t=e.data.data,a=t.filter((function(e){return e.age<=10&&e.age>=1})),n=t.filter((function(e){return e.age<=20&&e.age>=11})),r=t.filter((function(e){return e.age<=30&&e.age>=21})),l=t.filter((function(e){return e.age<=40&&e.age>=31})),c=t.filter((function(e){return e.age<=50&&e.age>=41})),i=t.filter((function(e){return e.age<=60&&e.age>=51})),s=t.filter((function(e){return e.age<=70&&e.age>=61})),d=t.filter((function(e){return e.age<=80&&e.age>=71})),f=t.filter((function(e){return e.age<=90&&e.age>=81})),m=t.filter((function(e){return e.age>=90})),g=a.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(g);var b=a.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(b);var p=n.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(p);var E=n.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(E);var y=r.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(y);var C=r.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(C);var k=l.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(k);var A=l.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(A);var O=c.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(O);var w=c.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(w);var _=i.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(_);var S=i.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(S);var z=s.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(z);var x=s.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(x);var W=d.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(W);var D=d.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(D);var B=f.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(B);var P=f.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(P);var H=m.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(H);var K=m.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(K);var L=t.filter((function(e){return"\u6b7b\u4ea1"===e.status})).length;console.log(L);var I=t.filter((function(e){return"\u51fa\u9662"===e.status})).length;console.log(I);var Z=a.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(Z);var Q=n.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(Q);var R=r.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(R);var M=l.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(M);var U=c.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(U);var X=i.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(X);var Y=s.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(Y);var J=d.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(J);var q=f.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(q);var G=m.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(G);var V=t.filter((function(e){return"\u4f4f\u9662"===e.status})).length;console.log(V);var $=a.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log($);var ee=n.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(ee);var te=r.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(te);var ae=l.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(ae);var ne=c.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(ne);var re=i.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(re);var oe=s.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(oe);var le=d.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(le);var ce=f.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(ce);var ie=m.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(ie);var se=t.filter((function(e){return"\u5f85\u5165\u9662"===e.status})).length;console.log(se),u([g,p,y,k,O,_,z,W,B,H]),o(["0-10","11-20","21-30","31-40","41-50","51-60","61-70","71-80","81-90","91+"]),v([b,E,C,A,w,S,x,D,P,K]),h([Z,Q,R,M,U,X,Y,J,q,G]),T([$,ee,te,ae,ne,re,oe,le,ce,ie]),F("bar"),j(!0),N("100%")}))}),[]);return r.a.createElement(ie.a,null,r.a.createElement("h2",{style:{padding:10}},"\u6309\u60a3\u8005\u5e74\u9f61\uff0d\u72c0\u614b"),r.a.createElement("div",{style:{paddingLeft:10}},r.a.createElement(se.a,{variant:"contained",color:"primary","aria-label":"outlined primary button group"},r.a.createElement(K.a,{onClick:function(){F("bar"),j(!0),N("100%")}},"\u767e\u4efd\u6bd4%"),r.a.createElement(K.a,{onClick:function(){F("bar"),j(!0),N("normal")}},"\u500b\u6848"))),r.a.createElement(oe.a,{options:{dataLabels:{enabled:!1},chart:{type:"bar",height:350,stacked:!0,stackType:S},responsive:[{breakpoint:480,options:{legend:{position:"bottom",offsetX:-10,offsetY:0}}}],xaxis:{categories:a},colors:["#000000","#ff0000","#800080","#33cc33"],fill:{opacity:1},legend:{position:"right",offsetX:0,offsetY:50}},series:[{name:"\u6b7b\u4ea1",data:s},{name:"\u4f4f\u9662",data:m},{name:"\u5f85\u5165\u9662",data:B},{name:"\u51fa\u9662",data:p}],type:"bar",height:"350"}))},rt={padding:10},ot=function(e){function t(){return Object($.a)(this,t),Object(te.a)(this,Object(ae.a)(t).apply(this,arguments))}return Object(ne.a)(t,e),Object(ee.a)(t,[{key:"render",value:function(){return r.a.createElement("div",{style:rt},r.a.createElement(at,null),r.a.createElement(nt,null),r.a.createElement(xe,null),r.a.createElement("img",{style:{width:"35%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:Ue.a,alt:"IDEEA"}),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"2020"),r.a.createElement("img",{style:{width:"12%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:"https://upload.wikimedia.org/wikipedia/en/thumb/0/00/Badge_of_Wah_Yan_College%2C_Hong_Kong.svg/1200px-Badge_of_Wah_Yan_College%2C_Hong_Kong.svg.png",alt:"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"}))}}]),t}(n.Component),lt=Object(i.a)((function(e){return{root:{width:"100%",backgroundColor:"#F5F5F6"},homeWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-around",flexWrap:"wrap"},leftWrapper:{flex:1,padding:6},rightWrapper:{flex:1,padding:6},cardBottom:{display:"flex",justifyContent:"flex-end"},card:{marginTop:15},cardTitle:{backgroudColor:"#333333"}}})),ct=function(e){var t=lt();return r.a.createElement("div",{className:t.root},r.a.createElement("div",{className:t.homeWrapper},r.a.createElement("div",{className:t.leftWrapper},r.a.createElement(et,null)),r.a.createElement("div",{className:t.rightWrapper},r.a.createElement(ot,null))))},it=a(498),st=a(130),ut={padding:10},dt=function(e){function t(){return Object($.a)(this,t),Object(te.a)(this,Object(ae.a)(t).apply(this,arguments))}return Object(ne.a)(t,e),Object(ee.a)(t,[{key:"render",value:function(){return r.a.createElement("div",{style:ut},r.a.createElement("h1",null,"\u51fa\u5165\u5883\u6578\u64da"),r.a.createElement("hr",null),r.a.createElement(Re,null))}}]),t}(n.Component),ft={padding:10};var mt=function(){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:ft},r.a.createElement("img",{style:{width:"35%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:Ue.a,alt:"IDEEA"}),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"2020"),r.a.createElement("img",{style:{width:"12%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:"https://upload.wikimedia.org/wikipedia/en/thumb/0/00/Badge_of_Wah_Yan_College%2C_Hong_Kong.svg/1200px-Badge_of_Wah_Yan_College%2C_Hong_Kong.svg.png",alt:"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"})))},ht=Object(i.a)((function(e){return{root:{width:"100%",backgroundColor:"#F5F5F6"},homeWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-around",flexWrap:"wrap"},leftWrapper:{flex:1,padding:6},rightWrapper:{flex:1,padding:6},cardBottom:{display:"flex",justifyContent:"flex-end"},card:{marginTop:15},cardTitle:{backgroudColor:"#333333"}}})),gt=function(e){var t=ht();return r.a.createElement("div",{className:t.root},r.a.createElement("div",{className:t.homeWrapper},r.a.createElement("div",{className:t.leftWrapper},r.a.createElement(dt,null)),r.a.createElement("div",{className:t.rightWrapper},r.a.createElement(mt,null))))},bt={padding:5},pt={paddingTop:0};var vt=function(){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:bt},r.a.createElement("div",{style:pt},r.a.createElement("h1",null,"\u5168\u7403\u75ab\u60c5"),r.a.createElement("hr",null),r.a.createElement("p",{style:{fontSize:12,fontStyle:"italic",color:"grey"}}," ","\u7531\u65bc\u6578\u64da\u4e0d\u6e96\u78ba\uff0c\u970d\u666e\u91d1\u65af\u5927\u5b78\u5df2\u65bc3/24\u8d77\u505c\u6b62\u63d0\u4f9b\u7d55\u5927\u90e8\u5206\u570b\u5bb6\uff08\u5305\u62ec\u7f8e\u570b\uff09\u7684\u6cbb\u6108\u6578\u5b57\u3002\u6211\u5011\u53ea\u6703\u7e7c\u7e8c\u986f\u793a\u6b77\u53f2\u6cbb\u6108\u6578\u5b57\u53ca\u6b77\u53f2\u73fe\u6709\u78ba\u8a3a\u6578\u5b57\uff0c\u656c\u8acb\u898b\u8ad2\u3002"," ")),r.a.createElement(Pe,null),r.a.createElement(Le,null)))},Et=a(491),yt=a.n(Et),Ct=a(838),kt=a(829),At=Object(i.a)((function(e){return{root:{width:"100%"},title:{margin:0,display:"flex",justifyContent:"center"},table:{minWidth:"100%"}}}));function Ot(e){var t=e.title,a=e.columns,n=e.data,o=e.isLoading,l=e.index,c=e.value;return r.a.createElement("div",{hidden:c!==l},r.a.createElement(yt.a,{title:t,columns:a,data:n,isLoading:o,options:{pageSize:10,actionsColumnIndex:-1,exportButton:!0,grouping:!1}}))}var jt=function(e){At();var t=Object(n.useState)(!1),a=Object(c.a)(t,2),o=a[0],l=a[1],i=Object(n.useState)([]),s=Object(c.a)(i,2),u=(s[0],s[1]),d=Object(n.useState)([]),f=Object(c.a)(d,2),m=(f[0],f[1]),h=r.a.useState(0),g=Object(c.a)(h,2),b=g[0],p=g[1],v=r.a.useState([]),E=Object(c.a)(v,2),y=E[0],C=E[1];function k(e){return{id:"table-tab-".concat(e),"aria-controls":"table-tabpanel-".concat(e)}}return Object(n.useEffect)((function(){ce.a.all([ce.a.get("https://api.n-cov.info/worldcomfirm"),ce.a.get("https://api.n-cov.info/worlddeath"),ce.a.get("https://api.n-cov.info/worldRecover")]).then(ce.a.spread((function(e,t,a){var n=Object.values(e.data.data).pop(),r=Object.values(t.data.data).pop(),o=Object.values(a.data.data).pop(),i=Object.entries(n).map((function(e){var t=Object(c.a)(e,2);return{countryconf:t[0],conf:t[1]}})),s=Object.entries(r).map((function(e){var t=Object(c.a)(e,2);return{countrydeath:t[0],death:t[1]}})),d=Object.entries(o).map((function(e){var t=Object(c.a)(e,2);return{countryrecover:t[0],recover:t[1]}}));We.a.merge(i,s,d),console.log(i);var f=Object.values(e.data.data).pop(),h=Object.values(e.data.data)[Object.values(e.data.data).length-2],g=Object.keys(f).reduce((function(e,t){return e[t]=f[t]-h[t],e}),{}),b=Object.values(t.data.data).pop(),p=Object.values(t.data.data)[Object.values(t.data.data).length-2],v=Object.keys(b).reduce((function(e,t){return e[t]=b[t]-p[t],e}),{}),E=Object.values(a.data.data).pop(),y=Object.values(a.data.data)[Object.values(a.data.data).length-2],k=Object.keys(E).reduce((function(e,t){return e[t]=E[t]-y[t],e}),{}),A=Object.entries(g).map((function(e){var t=Object(c.a)(e,2);return{countrynewconf:t[0],newconf:t[1]}})),O=Object.entries(h).map((function(e){var t=Object(c.a)(e,2);return{countryyestconf:t[0],yestconf:t[1]}})),j=Object.entries(v).map((function(e){var t=Object(c.a)(e,2);return{countrynewdeath:t[0],newdeath:t[1]}})),w=Object.entries(p).map((function(e){var t=Object(c.a)(e,2);return{countryyestdeath:t[0],yestdeath:t[1]}}));Object.entries(k).map((function(e){var t=Object(c.a)(e,2);return{countrynewrecover:t[0],newrecover:t[1]}})),Object.entries(y).map((function(e){var t=Object(c.a)(e,2);return{countryyestrecover:t[0],yestrecover:t[1]}}));We.a.merge(A,j),We.a.merge(O,w),We.a.merge(O,i,A),console.log(A);var _=O.map((function(e){var t=Object.assign({},e);return t.growth=(t.conf,t.yestconf,t.yestconf,parseFloat((t.growth=(t.conf-t.yestconf)/t.yestconf*100).toFixed(2))+"%"),t}));console.log(_),C(_),m(i),u(A),l(!1)})))}),[]),r.a.createElement(r.a.Fragment,null,r.a.createElement(ie.a,{square:!0},r.a.createElement(Ct.a,{value:b,indicatorColor:"primary",textColor:"primary",onChange:function(e,t){p(t)},"aria-label":"disabled tabs example"},r.a.createElement(kt.a,Object.assign({label:"\u7d2f\u7a4d"},k(0))),r.a.createElement(kt.a,Object.assign({label:"\u65b0\u589e"},k(1))))),r.a.createElement(Ot,{title:"",columns:[{title:"\u570b\u5bb6",field:"countryconf"},{title:"\u7d2f\u7a4d\u78ba\u8a3a",field:"conf",defaultSort:"desc"},{title:"\u7d2f\u7a4d\u6b7b\u4ea1",field:"death"}],data:y,isLoading:o,value:b,index:0}),r.a.createElement(Ot,{title:"",columns:[{title:"\u570b\u5bb6",field:"countrynewconf"},{title:"\u65b0\u589e\u78ba\u8a3a",field:"newconf",defaultSort:"desc"},{title:"\u65b0\u589e\u6b7b\u4ea1",field:"newdeath"},{title:"\u78ba\u8a3a\u6539\u8b8a",field:"growth",sorting:!1}],data:y,isLoading:o,value:b,index:1}))},wt={paddingLeft:0,paddingRight:0,paddingTop:35};var _t=function(){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:wt},r.a.createElement(jt,null),r.a.createElement(xe,null),r.a.createElement("img",{style:{width:"35%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:Ue.a,alt:"IDEEA"}),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"2020"),r.a.createElement("img",{style:{width:"12%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:"https://upload.wikimedia.org/wikipedia/en/thumb/0/00/Badge_of_Wah_Yan_College%2C_Hong_Kong.svg/1200px-Badge_of_Wah_Yan_College%2C_Hong_Kong.svg.png",alt:"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"})))},St=Object(i.a)((function(e){return{root:{width:"100%",backgroundColor:"#F5F5F6"},homeWrapper:{display:"flex",flexDirection:"row",justifyContent:"space-around",flexWrap:"wrap"},leftWrapper:{flex:1,padding:6},rightWrapper:{flex:1,padding:6},cardBottom:{display:"flex",justifyContent:"flex-end"},card:{marginTop:15},cardTitle:{backgroudColor:"#333333"}}})),Nt=function(e){var t=St();return r.a.createElement("div",{className:t.root},r.a.createElement("div",{className:t.homeWrapper},r.a.createElement("div",{className:t.leftWrapper},r.a.createElement(vt,null)),r.a.createElement("div",{className:t.rightWrapper},r.a.createElement(_t,null))))},zt=a(833),xt=a(834),Ft=a(835),Wt=a(836),Dt=a(837),Bt=Object(i.a)({all:{backgroundColor:"#F5F5F6",padding:40},root:{maxWidth:345,margin:10},media:{height:140}});function Tt(){var e=Bt();return r.a.createElement("div",{class:e.all},r.a.createElement(zt.a,{className:e.root},r.a.createElement(xt.a,null,r.a.createElement(Dt.a,{className:e.media,image:"https://kubrick.htvapps.com/htv-prod-media.s3.amazonaws.com/images/johns-hopkins-university-1580683593.jpg?crop=1.00xw:1.00xh;0,0&resize=900:*",title:"\u7d04\u7ff0\xb7\u970d\u666e\u91d1\u65af\u5927\u5b78"}),r.a.createElement(Wt.a,null,r.a.createElement(b.a,{gutterBottom:!0,variant:"h5",component:"h2"},"\u7d04\u7ff0\xb7\u970d\u666e\u91d1\u65af\u5927\u5b78",r.a.createElement("br",null),"John Hopkins University"),r.a.createElement(b.a,{variant:"body2",color:"textSecondary",component:"p"},"\u7d04\u7ff0\xb7\u970d\u666e\u91d1\u65af\u5927\u5b78\u63d0\u4f9b\u6b64\u7db2\u7ad9\u7684\u4e2d\u570b\u53ca\u570b\u969b\u6578\u64da\u3002"))),r.a.createElement(Ft.a,null,r.a.createElement(K.a,{size:"small",color:"primary",href:"https://www.jhu.edu/",target:"_blank"},"\u5927\u5b78\u7db2\u7ad9"),r.a.createElement(K.a,{size:"small",color:"primary",href:"https://github.com/CSSEGISandData/COVID-19",target:"_blank"},"GitHub")))," ",r.a.createElement(zt.a,{className:e.root},r.a.createElement(xt.a,null,r.a.createElement(Dt.a,{className:e.media,image:"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSZB3RoBqDIlKlmFPoHwI_TVFvOTjZ_KMgbbFvdnG5DpR_0fmvE",title:"\u8cc7\u6599\u4e00\u7dda\u901a"}),r.a.createElement(Wt.a,null,r.a.createElement(b.a,{gutterBottom:!0,variant:"h5",component:"h2"},"\u8cc7\u6599\u4e00\u7dda\u901a",r.a.createElement("br",null),"DATA.GOV.HK"),r.a.createElement(b.a,{variant:"body2",color:"textSecondary",component:"p"},"\u8cc7\u6599\u4e00\u7dda\u901a\u63d0\u4f9b\u6b64\u7db2\u7ad9\u7684\u9999\u6e2f\u6578\u64da\u3002\u9999\u6e2f\u653f\u5e9c\u70ba\u8a72\u7b49\u8cc7\u6599\u7684\u77e5\u8b58\u7522\u6b0a\u64c1\u6709\u4eba\uff0c\u6709\u95dc\u8cc7\u6599\u539f\u5c6c\u653f\u5e9c\u548c\u8a72\u7db2\u7ad9\u6240\u6709\uff0c"))),r.a.createElement(Ft.a,null,r.a.createElement(K.a,{size:"small",color:"primary",href:"https://www.data.gov.hk ",target:"_blank"},"\u7db2\u7ad9"))),r.a.createElement("div",null,"Icons made by"," ",r.a.createElement("a",{href:"https://www.flaticon.com/authors/freepik",title:"Freepik"},"Freepik")," ","from"," ",r.a.createElement("a",{href:"https://www.flaticon.com/",title:"Flaticon"},"www.flaticon.com")),r.a.createElement("img",{style:{width:"35%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:Ue.a,alt:"IDEEA"}),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"),r.a.createElement("p",{style:{fontSize:12,fontStyle:"bold",color:"grey",textAlign:"center"}},"2020"),r.a.createElement("img",{style:{width:"12%",height:"auto",display:"block",marginLeft:"auto",marginRight:"auto"},src:"https://upload.wikimedia.org/wikipedia/en/thumb/0/00/Badge_of_Wah_Yan_College%2C_Hong_Kong.svg/1200px-Badge_of_Wah_Yan_College%2C_Hong_Kong.svg.png",alt:"Wah Yan College Hong Kong \u9999\u6e2f\u83ef\u4ec1\u66f8\u9662"}))}var Pt=function(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(G,null),r.a.createElement(it.a,null,r.a.createElement(st.c,null,r.a.createElement(st.a,{exact:!0,path:"/"},r.a.createElement(qe,null)),r.a.createElement(st.a,{exact:!0,path:"/hkindepth"},r.a.createElement(ct,null)),r.a.createElement(st.a,{exact:!0,path:"/immigration"},r.a.createElement(gt,null)),r.a.createElement(st.a,{exact:!0,path:"/global"},r.a.createElement(Nt,null)),r.a.createElement(st.a,{exact:!0,path:"/source"},r.a.createElement(Tt,null)))))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));l.a.render(r.a.createElement(Pt,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[538,1,2]]]);
  //# sourceMappingURL=main.e9fd115e.chunk.js.map