(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[354],{11730:function(e,t,n){Promise.resolve().then(n.bind(n,48824))},48824:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var l=n(57437),r=n(2265),u=n(55775),s=n.n(u),o=n(94108);let i=s()(()=>Promise.all([n.e(896),n.e(275)]).then(n.bind(n,86275)),{loadableGenerated:{webpack:()=>[86275]},ssr:!1});function a(){let[e,t]=(0,r.useState)(null),[n,u]=(0,r.useState)(!0),{t:s}=(0,o.Z)();return((0,r.useEffect)(()=>{fetch("/api/stats").then(e=>e?.json?.()).then(e=>t(e??{})).catch(()=>{}).finally(()=>u(!1))},[]),n)?(0,l.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,l.jsx)("div",{className:"animate-spin w-8 h-8 border-4 border-red-600 border-t-transparent rounded-full"})}):(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"font-display text-2xl font-bold tracking-tight mb-6",children:s.admin.reports.title}),e&&(0,l.jsx)(i,{stats:e})]})}},55775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let l=n(47043);n(57437),n(2265);let r=l._(n(15602));function u(e,t){var n;let l={loading:e=>{let{error:t,isLoading:n,pastDelay:l}=e;return null}};"function"==typeof e&&(l.loader=e);let u={...l,...t};return(0,r.default)({...u,modules:null==(n=u.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let l=n(18993);function r(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new l.BailoutToCSRError(t);return n}},15602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let l=n(57437),r=n(2265),u=n(81523),s=n(70049);function o(e){return{default:e&&"default"in e?e.default:e}}let i={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},a=function(e){let t={...i,...e},n=(0,r.lazy)(()=>t.loader().then(o)),a=t.loading;function d(e){let o=a?(0,l.jsx)(a,{isLoading:!0,pastDelay:!0,error:null}):null,i=t.ssr?(0,l.jsxs)(l.Fragment,{children:["undefined"==typeof window?(0,l.jsx)(s.PreloadCss,{moduleIds:t.modules}):null,(0,l.jsx)(n,{...e})]}):(0,l.jsx)(u.BailoutToCSR,{reason:"next/dynamic",children:(0,l.jsx)(n,{...e})});return(0,l.jsx)(r.Suspense,{fallback:o,children:i})}return d.displayName="LoadableComponent",d}},70049:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return u}});let l=n(57437),r=n(20544);function u(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,r.getExpectedRequestStore)("next/dynamic css"),u=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));u.push(...t)}}return 0===u.length?null:(0,l.jsx)(l.Fragment,{children:u.map(e=>(0,l.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}}},function(e){e.O(0,[108,971,117,744],function(){return e(e.s=11730)}),_N_E=e.O()}]);