"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5840],{79928:(t,e,r)=>{r.r(e),r.d(e,{default:()=>c});var a=r(79765),n=r(68285),o=r(2211),i=r(2774),l=r.n(i),d=r(74758),s=r(81890),u=function(){return u=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},u.apply(this,arguments)},f=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],a=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&a>=t.length&&(t=void 0),{value:t&&t[a++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){var t,e,r,i,c=(0,n.Z6)();if(void 0===(null===(r=c.data)||void 0===r?void 0:r.SCO))return(0,a.jsx)(s.fz,{busy:!0,darkMode:!0},void 0);var y={SCO:c.data.SCO};try{for(var v=f(Object.keys(y)),h=v.next();!h.done;h=v.next()){var b=h.value,D=null===(i=y)||void 0===i?void 0:i[b];(0,d.assert)(!!D,"no country found for "+b),D.data=D.data.map((function(t){return u(u({},t),{y:t.deltaDeaths<=0?0:t.deltaDeaths})}))}}catch(e){t={error:e}}finally{try{h&&!h.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}return(0,a.jsx)(o.Z,{heading:"Daily Increase in Scottish deaths",xAxisLabel:"Days since first reported death",yAxisLabel:"Increase in deaths from previous day",result:{data:y},labels:function(t){var e=t.datum;return l()(null==e?void 0:e.x).format("DD/M  M/YY")+"\n total deaths = "+e.deaths+"\n daily increase = "+e.deltaDeaths}},void 0)}}}]);
//# sourceMappingURL=src-components-DailyIncreaseUk-5dd7888cfb9827657a82.js.map