(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5187],{72003:function(e,t,a){"use strict";a.d(t,{ClientOnly:function(){return r}});var n=a(57437),s=a(2265);let r=e=>{let{children:t,isMounted:a=!1}=e,[r,o]=(0,s.useState)(a);return(0,s.useEffect)(()=>{let e=setTimeout(()=>{o(!0)},500);return()=>{clearTimeout(e)}},[]),r?(0,n.jsx)(n.Fragment,{children:t}):null}},7253:function(e,t,a){"use strict";var n=a(57437),s=a(2265),r=a(24328),o=a(79459),l=a(35927),i=a(15622);t.Z=e=>{let{value:t,children:a}=e,{language:d,site:c}=(0,s.useContext)(r.D),m=o.O9.find(e=>e.value===t),u=(0,l.Z)(d);return(0,n.jsx)("span",{children:(0,n.jsx)(i.Z,{placement:"left",content:(0,n.jsx)("p",{className:"p-2 text-base font-medium",children:u(null==m?void 0:m.label)}),children:(0,n.jsx)("span",{children:a||(null==m?void 0:m.Icon)&&(0,n.jsx)(m.Icon,{"aria-label":u(m.label),className:"w-6 h-6 fill-current text-".concat(null==m?void 0:m.color)})})})})}},84155:function(e,t,a){"use strict";var n=a(57437),s=a(2265),r=a(86855),o=a.n(r),l=a(7253),i=a(68449),d=a(82066),c=a(38014),m=a(90343),u=a(24328),h=a(33663),p=a(95570),x=a(99376);t.Z=e=>{var t;let{item:a,isActive:r=!1}=e,{id:v,updates:g,impact:y}=a,{language:f}=(0,s.useContext)(u.D),w=(0,p.Z)(a.nameTranslation,f,a.name),j=(0,x.useRouter)(),b=null==g?void 0:g.some(e=>{var t;return null===(t=e.messageHtml)||void 0===t?void 0:t.includes("</a>")}),D=b?"div":c.Z;return(0,n.jsxs)("div",{className:"incident-details incident-item",children:[(0,n.jsxs)(D,{className:o()("incident-details__title group",r?"active":"inactive",b&&"cursor-pointer"),...b?{role:"link",tabIndex:0,onClick:()=>j.push("/".concat(v))}:{href:"/".concat(v)},children:[(0,n.jsxs)("div",{className:"flex items-start justify-between",children:[(0,n.jsxs)("div",{className:"incident-details__header",children:[(0,n.jsx)(l.Z,{value:y}),(0,n.jsx)("span",{className:"incident-name",children:w})]}),(0,n.jsx)("div",{className:"flex items-center gap-2",children:!r&&(0,n.jsx)(m.Z,{className:"incident-details-arrow"})})]}),(0,n.jsx)("ul",{className:"incident-details__updates",children:null==g?void 0:null===(t=g.sort(h.Z))||void 0===t?void 0:t.map((e,t)=>(0,n.jsx)(i.Z,{isLast:t===a.updates.length-1,isFirst:0===t,item:e,isRepeatedStatus:t!==a.updates.length-1&&e.status===a.updates[t+1].status},e.id))})]}),(0,n.jsx)("div",{}),r&&(0,n.jsx)(d.Z,{itemId:a.id,name:w,isActive:r})]})}},82066:function(e,t,a){"use strict";var n=a(57437),s=a(2265),r=a(49584),o=a(86855),l=a.n(o),i=a(38014),d=a(25492),c=a(4772),m=a(95382),u=a(24328),h=a(35927);t.Z=e=>{let{itemId:t,isActive:a,name:o}=e,{language:p,site:x}=(0,s.useContext)(u.D),v=(0,h.Z)(p),g=(0,s.useRef)(null),[y,f]=(0,s.useState)(!1),w=(0,s.useRef)();(0,r.Z)(w,()=>f(!1));let j=e=>{e.stopPropagation(),"Tab"!==e.key&&"Enter"!==e.key&&f(e=>!e)};return a&&(x.subscribeByEmail||x.subscribeBySms||x.subscribeByWebhook)?(0,n.jsxs)("div",{ref:g,className:"absolute right-0 text-sm font-normal",onMouseLeave:()=>f(!1),onBlur:e=>{var t;(null===(t=g.current)||void 0===t?void 0:t.contains(e.relatedTarget))||f(!1)},children:[(0,n.jsx)("button",{ref:w,onMouseEnter:()=>f(!0),onFocus:()=>f(!0),onClick:j,onKeyDown:j,className:"relative flex items-center justify-center px-3 py-2 overflow-hidden text-black rounded-lg bg-black-transparent dark:text-white dark:bg-white-transparent","aria-haspopup":"true","aria-expanded":y,"aria-label":"".concat(v("subscribe")," ").concat(v("to")," ").concat(o),children:v("subscribe")}),(0,n.jsx)("div",{className:"absolute z-10 right-0 w-40 py-3 origin-top-right ".concat(l()({"duration-100":!y,"ease-out duration-75 opacity-100 scale-100":y,"opacity-0 scale-95 ease-in pointer-events-none":!y})),children:(0,n.jsxs)("div",{className:"py-2 bg-white border border-gray-300 shadow-xl opacity-100 rounded-xl dark:bg-gray-950 dark:border-gray-900",role:"menu","aria-orientation":"vertical","aria-labelledby":"subscribe-menu",children:[x.subscribeByEmail&&(0,n.jsx)(i.Z,{href:"/".concat(t,"/subscribe/email"),className:"block px-5 py-3 text-sm leading-5 text-gray-900 transition duration-150 ease-in-out dark:text-gray-100 hover:bg-gray-100 focus:bg-gray-100 dark:hover:bg-gray-900 dark:focus:bg-gray-800",role:"menuitem",tabIndex:y?0:-1,"aria-label":"".concat(v("email")," ").concat(v("subscribe")),children:(0,n.jsxs)("span",{className:"flex items-center text-base font-medium text-gray-900 dark:text-gray-100",children:[(0,n.jsx)(d.Z,{className:"w-4 h-4 mr-2 fill-current rtl:ml-2 group-hover:text-black dark:group-hover:text-white"}),v("email")]})}),x.subscribeBySms&&(0,n.jsx)(i.Z,{href:"/".concat(t,"/subscribe/sms"),className:"block px-5 py-3 text-sm leading-5 text-gray-900 transition duration-150 ease-in-out dark:text-gray-100 hover:bg-gray-100 focus:bg-gray-100 dark:hover:bg-gray-900 dark:focus:bg-gray-800",role:"menuitem",tabIndex:y?0:-1,children:(0,n.jsxs)("span",{className:"flex items-center text-base font-medium text-gray-900 dark:text-gray-100",children:[(0,n.jsx)(c.Z,{className:"w-4 h-4 mr-2 fill-current rtl:ml-2 group-hover:text-black dark:group-hover:text-white"}),v("sms")]})}),x.subscribeByWebhook&&(0,n.jsx)(i.Z,{href:"/".concat(t,"/subscribe/webhook"),className:"block px-5 py-3 text-sm leading-5 text-gray-900 transition duration-150 ease-in-out dark:text-gray-100 hover:bg-gray-100 focus:bg-gray-100 dark:hover:bg-gray-900 dark:focus:bg-gray-800",role:"menuitem",tabIndex:y?0:-1,children:(0,n.jsxs)("span",{className:"flex items-center text-base font-medium text-gray-900 dark:text-gray-100",children:[(0,n.jsx)(m.Z,{className:"w-5 h-5 mr-1.5 -ml-0.5 fill-current rtl:ml-1.5 rtl:-mr-0.5 group-hover:text-black dark:group-hover:text-white"}),v("webhook")]})})]})})]}):(0,n.jsx)(n.Fragment,{})}},20197:function(e,t,a){"use strict";var n=a(57437),s=a(2265),r=a(86855),o=a.n(r),l=a(7253),i=a(82066),d=a(38014),c=a(97660),m=a(6071),u=a(71911),h=a(74688),p=a(38687),x=a(90343),v=a(24328),g=a(33663),y=a(95570),f=a(61603),w=a(35927),j=a(99376);t.Z=e=>{var t;let{item:a,isActive:r=!1}=e,{site:b,language:D}=(0,s.useContext)(v.D),{id:N,updates:Z}=a,k=(0,w.Z)(D),M=p[k("dateLocale")],E=(0,j.useRouter)(),C=(0,y.Z)(a.nameTranslation,D,a.name),S=(0,f.z)(null==a?void 0:a.start),A=(0,y.Z)(null==b?void 0:b.dateFormatTranslation,D,null==b?void 0:b.dateFormat),_=(0,y.Z)(null==b?void 0:b.timeFormatTranslation,D,null==b?void 0:b.timeFormat),H=(0,u.Z)(S,A,{locale:M}),L=(0,u.Z)(S,_,{locale:M}),O=(0,m.Z)(S,a.duration||0),T=(0,u.Z)(O,A,{locale:M}),B=(0,u.Z)(O,_,{locale:M}),R=H===T?"".concat(H," ").concat(k("at")," ").concat(L," –\xa0").concat(B):"".concat(H," ").concat(k("at")," ").concat(L," –\xa0").concat(T," ").concat(k("at")," ").concat(B),F=a.resolved?(0,h.Z)(new Date(a.resolved),new Date(a.start),{locale:M}):(0,h.Z)((0,m.Z)(new Date(a.start),a.duration||0),new Date(a.start),{locale:M}),P=null==Z?void 0:Z.some(e=>{var t;return null===(t=e.messageHtml)||void 0===t?void 0:t.includes("</a>")}),I=P?"div":d.Z;return(0,n.jsxs)("div",{className:"maintenance-details maintenance-item",children:[(0,n.jsxs)(I,{href:"/".concat(a.id),className:o()("maintenance-details__title group",r?"active":"inactive",P&&"cursor-pointer"),...P?{role:"link",tabIndex:0,onClick:()=>E.push("/".concat(N))}:{href:"/".concat(N)},children:[(0,n.jsxs)("div",{className:"flex items-start justify-between",children:[(0,n.jsxs)("div",{className:"maintenance-details-heading",children:[(0,n.jsx)(l.Z,{value:"UNDERMAINTENANCE"}),(0,n.jsx)("span",{children:C})]}),(0,n.jsx)("div",{className:"flex items-center gap-2",children:!r&&(0,n.jsx)(x.Z,{className:"maintenance-details-arrow"})})]}),!a.resolved&&(0,n.jsxs)("div",{className:"maintenance-scheduled-date",children:[k("scheduledFor"),"\xa0",R,"\xa0",(0,n.jsx)("span",{children:F})]}),(0,n.jsx)("ul",{className:"maintenance-details__updates",children:null==Z?void 0:null===(t=Z.sort(g.Z))||void 0===t?void 0:t.map((e,t)=>(0,n.jsx)(c.Z,{isLast:t===a.updates.length-1,isFirst:0===t,item:e,isRepeatedStatus:t!==a.updates.length-1&&e.status===a.updates[t+1].status},e.id))})]}),r&&(0,n.jsx)(i.Z,{itemId:a.id,name:C,isActive:r})]})}},2172:function(e,t,a){"use strict";a.d(t,{a:function(){return o},z:function(){return l}});var n=a(57437),s=a(6507),r=a(13577);let o=e=>{let{name:t}=e;return(0,n.jsx)(s.ZP,{speed:2,className:"w-full h-32 rounded-lg",backgroundColor:"transparent",foregroundColor:"transparent",title:"Loading ".concat(t,"..."),children:(0,n.jsx)("rect",{x:"0",y:"0",rx:"0",ry:"0",className:"w-full h-full"})})},l=e=>{let{name:t}=e,{theme:a}=(0,r.h)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.ZP,{speed:2,width:100,height:30,className:"rounded-lg",viewBox:"0 0 100 22",backgroundColor:"dark"===a?"#212121":"#f3f3f3",foregroundColor:"dark"===a?"#363636":"#ecebeb",title:"Loading ".concat(t,"..."),children:(0,n.jsx)("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100",height:"30"})})})}},87719:function(e,t,a){"use strict";a.r(t),a.d(t,{IntervalSelector:function(){return j},default:function(){return b}});var n=a(57437),s=a(78819),r=a.n(s),o=a(2265),l=a(86855),i=a.n(l),d=a(84430),c=a(2172),m=e=>{let t,{name:a,data:s,suffix:r,loading:o}=e,l=s&&s.length>1?s.map(e=>e.value).reduce((e,t)=>e+t)/s.length:0,i=Math.abs(l);return t=i>50?l.toFixed(0):i>10?l.toFixed(1):i>1?l.toFixed(2):l.toFixed(4),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h6",{className:"font-medium",children:a}),(0,n.jsx)("div",{className:"h-6 overflow-hidden",children:o?(0,n.jsx)(c.z,{name:"badge loader"}):(0,n.jsxs)("h6",{className:"font-medium",children:["~ ",t," ",r]})})]})})},u=a(71911),h=a(38687),p=a(10297),x=a(24328),v=a(95570),g=a(35927),y=a(51439),f=a.n(y),w=e=>{let{item:t,days:a}=e,{language:s,site:r,headers:l}=(0,o.useContext)(x.D),y=(0,g.Z)(s),w=h[y("dateLocale")],[j,b]=(0,o.useState)([]),{metricsData:D,metricsDataLoading:N}=(0,p.aX)(r.subdomain,t.id,a,l),Z=(0,v.Z)(null==r?void 0:r.dateFormatTranslation,s,null==r?void 0:r.dateFormat),k=(0,v.Z)(null==r?void 0:r.timeFormatTranslation,s,null==r?void 0:r.timeFormat);return(0,o.useEffect)(()=>{D&&b(D.map(e=>(f()(e.timestamp)&&(e.timestamp=1===a?(0,u.Z)(new Date(e.timestamp),k,{locale:w}):(0,u.Z)(new Date(e.timestamp),Z,{locale:w})),e)))},[D,a,r,w]),(0,n.jsxs)("div",{className:"flex flex-col h-full",children:[(0,n.jsx)(m,{name:t.name,data:j,suffix:t.suffix,loading:N}),(0,n.jsx)("div",{className:"w-full h-32 my-2",children:N?(0,n.jsx)("div",{className:"w-full h-32 mb-[-9px] overflow-hidden",children:(0,n.jsx)(c.a,{name:"loader"})}):(0,n.jsx)(n.Fragment,{children:0===j.length?(0,n.jsx)("div",{className:"flex flex-col items-center justify-center h-32 ",children:(0,n.jsx)("p",{className:"text-gray-700",children:y("systemMetricsNoData")})}):(0,n.jsx)("div",{className:"".concat(i()({"-mx-12":"stormtrooper"===r.skin,"-mx-4":"stormtrooper"!==r.skin})),children:(0,n.jsx)(d.T,{className:"w-full h-32 p-0",data:j,curveType:"natural",index:"timestamp",categories:["value"],colors:["gray"],showGridLines:!1,showLegend:!1,showXAxis:!1,showYAxis:!1,valueFormatter:e=>{let a;let n=Math.abs(e);return a=n>50?e.toFixed(0):n>10?e.toFixed(1):n>1?e.toFixed(2):e.toFixed(4),"".concat(a," ").concat(t.suffix)}})})})})]})};let j=e=>{let{value:t,setValue:a,componentMetric:s=!1}=e,{language:r}=(0,o.useContext)(x.D),l=(0,g.Z)(r),d=[{label:l("month"),value:30},{label:l("week"),value:7},{label:l("day"),value:1}];return(0,n.jsx)("div",{className:"border border-[#E1E1E1] dark:border-[#393939] dark:bg-[#161616] rounded-[31px] p-[3px] flex gap-[3px] text-center font-medium text-[12px] leading-[15px] ".concat(i()({"border-gray-300 dark:border-gray-950 bg-white dark:bg-black":s})),children:d.map(e=>(0,n.jsx)("div",{role:"radio","aria-checked":e.value===t,onClick:t=>{null==t||t.stopPropagation(),a(e.value)},className:i()("w-16 h-[1.875rem] rounded-[1.75rem] flex items-center justify-center text-[0.75rem] font-medium cursor-pointer dark:text-white",{"text-white bg-[#343434] dark:bg-[#393939]":e.value===t}),children:e.label},e.value))})};var b=e=>{let{metrics:t}=e,{language:a}=(0,o.useContext)(x.D),s=(0,g.Z)(a),[l,i]=(0,o.useState)(1);return(0,n.jsxs)("div",{hidden:!(null==t?void 0:t.length),className:"jsx-2a7ea64ad7b1a7b2 mt-10 md:mt-16",children:[(0,n.jsxs)("div",{className:"jsx-2a7ea64ad7b1a7b2 flex items-center justify-between pb-10",children:[(0,n.jsx)("h2",{className:"jsx-2a7ea64ad7b1a7b2 text-base tracking-wider text-gray-600 uppercase metrics__title dark:text-gray-300",children:s("systemMetrics")}),(0,n.jsx)(j,{value:l,setValue:i})]}),(0,n.jsx)("div",{className:"jsx-2a7ea64ad7b1a7b2 mt-4 overflow-hidden md:overflow-visible",children:t&&t.sort((e,t)=>e.order-t.order).map(e=>e&&(0,n.jsx)("div",{className:"jsx-2a7ea64ad7b1a7b2 mb-5",children:(0,n.jsx)(w,{item:e,days:l},e.id)})||(0,n.jsx)("span",{className:"jsx-2a7ea64ad7b1a7b2 tracking-wider text-center text-gray-600 dark:text-gray-300",children:s("noMetricData")}))}),(0,n.jsx)(r(),{id:"2a7ea64ad7b1a7b2",children:".recharts-tooltip-wrapper .text-right{padding-left:5px}.recharts-tooltip-wrapper .text-right.whitespace-nowrap.text-gray-500.font-normal{display:none}.recharts-tooltip-wrapper .shrink-0.bg-gray-500.border-white.h-3.w-3.rounded-full.border-2.shadow{display:none}.recharts-tooltip-wrapper .font-medium.tabular-nums.text-right.whitespace-nowrap.text-gray-700{margin-left:-5px}"})]})}},11096:function(e,t,a){"use strict";a.d(t,{Z:function(){return tf}});var n,s,r,o,l,i,d,c,m,u,h=a(57437),p=a(78819),x=a.n(p),v=a(2265),g=a(86855),y=a.n(g),f=a(24328),w=a(79459),j=a(35927),b=a(15622),D=e=>{let{status:t,isLast:a,selectedComponent:n,setSelectedComponent:s,component:r}=e,{language:o}=(0,v.useContext)(f.D),l=(0,j.Z)(o),i=w.O9.find(e=>e.value===t),d=()=>{n&&(null==n?void 0:n.id)===(null==r?void 0:r.id)?s(null):s(r)};return(0,h.jsx)("div",{className:"flex items-center justify-center dark:border-gray-900 border-b border-r ".concat(y()({"rounded-br-lg":a})),children:(0,h.jsx)("div",{className:"flex items-center justify-center font-medium",children:(0,h.jsx)("div",{className:"flex items-center",children:i?(0,h.jsx)(b.Z,{placement:"bottom",content:(0,h.jsx)("p",{className:"p-2 text-base text-".concat(i.color),children:l(i.label)}),children:(0,h.jsx)("div",{role:"button",tabIndex:-1,onClick:()=>d(),className:"flex items-center justify-center transition duration-100 ease-in-out transform hover:scale-110",children:(0,h.jsx)(i.Icon,{className:"w-6 h-6 fill-current ".concat((null==n?void 0:n.id)!==(null==r?void 0:r.id)?"text-".concat(i.color):""," ").concat(y()({"text-black dark:text-white":(null==n?void 0:n.id)===(null==r?void 0:r.id)}))})})}):(0,h.jsx)("div",{className:"py-3"})})})})},N=a(7253),Z=a(38014),k=a(84430),M=a(87719),E=a(2172),C=a(71911),S=a(38687),A=a(12092);function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}var H=function(e){return A.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",className:"arrow-down_svg__ionicon",viewBox:"0 0 512 512"},e),n||(n=A.createElement("path",{d:"M464 256c0-114.87-93.13-208-208-208S48 141.13 48 256s93.13 208 208 208 208-93.13 208-208zm-100.69-28.69-96 96a16 16 0 0 1-22.62 0l-96-96a16 16 0 0 1 22.62-22.62L256 289.37l84.69-84.68a16 16 0 0 1 22.62 22.62z"})))},L=a(10297),O=a(95570),T=a(51439),B=a.n(T),R=e=>{let t,{metric:a,setMetricName:n}=e,{language:s,site:r,headers:o}=(0,v.useContext)(f.D),[l,i]=(0,v.useState)(!1),d=(0,j.Z)(s),c=S[d("dateLocale")],[m,u]=(0,v.useState)(1),[p,x]=(0,v.useState)([]),{metricsData:g,metricsDataLoading:w}=(0,L.aX)(r.subdomain,a.id,m,o),b=(0,O.Z)(null==r?void 0:r.dateFormatTranslation,s,null==r?void 0:r.dateFormat),D=(0,O.Z)(null==r?void 0:r.timeFormatTranslation,s,null==r?void 0:r.timeFormat);(0,v.useEffect)(()=>{g&&x(g.map(e=>(B()(e.timestamp)&&(e.timestamp=1===m?(0,C.Z)(new Date(e.timestamp),D,{locale:c}):(0,C.Z)(new Date(e.timestamp),b,{locale:c})),e)))},[g,m,r,c]);let N=p&&p.length>1?p.map(e=>e.value).reduce((e,t)=>e+t)/p.length:0,Z=Math.abs(N);t=Z>50?N.toFixed(0):Z>10?N.toFixed(1):Z>1?N.toFixed(2):N.toFixed(4);let A=e=>{e?(i(!0),n(a.name)):(i(!1),n(""))};return(0,h.jsxs)("div",{onMouseEnter:e=>A(!0),onMouseLeave:e=>A(!1),onClick:e=>{e.stopPropagation(),A(!l)},className:"items-center flex border mr-2 cursor-pointer rounded-t-lg pt-1 -mt-1 pb-1 -mb-1 px-2 ".concat(y()({"bg-white dark:bg-black border-gray-100 dark:border-transparent":l,"border-transparent":!l})),children:[(0,h.jsxs)("span",{className:"hidden mr-1 md:inline-block",children:["~",0==t?"0.0":t," ",a.suffix]}),(0,h.jsx)(H,{className:"w-5 h-5 dark:fill-white transition ease-out duration-200 ".concat(y()({"rotate-180":l,"rotate-0":!l}))}),l&&(0,h.jsxs)("div",{className:"absolute left-0 animate-fadeIn z-30 w-[105%] -ml-[2.5%] bg-white shadow-lg border border-gray-100 dark:border-transparent dark:bg-black rounded-xl top-6 md:top-7 h-44",onMouseEnter:()=>A(!0),children:[(0,h.jsx)("div",{className:"w-full h-32 my-2",children:w?(0,h.jsx)("div",{className:"w-full h-32 mb-[-9px] overflow-hidden",children:(0,h.jsx)(E.a,{name:"loader"})}):(0,h.jsx)(h.Fragment,{children:0===p.length?(0,h.jsx)("div",{className:"flex flex-col items-center justify-center h-32 ",children:(0,h.jsx)("p",{className:"text-gray-700",children:d("systemMetricsNoData")})}):(0,h.jsx)("div",{className:"-mx-3.5 overflow-hidden",children:(0,h.jsx)(k.T,{className:"w-full h-32 p-0",data:p,curveType:"natural",index:"timestamp",categories:["value"],colors:["gray"],showGridLines:!1,showLegend:!1,showXAxis:!1,showYAxis:!1,valueFormatter:e=>{let t;let n=Math.abs(e);return t=n>50?e.toFixed(0):n>10?e.toFixed(1):n>1?e.toFixed(2):e.toFixed(4),"".concat(t," ").concat(a.suffix)}})})})}),(0,h.jsx)("div",{className:"absolute bottom-0 flex items-center justify-center w-full -mb-4 pointer-events-auto",children:(0,h.jsx)(M.IntervalSelector,{value:m,setValue:u,componentMetric:!0})})]})]})},F=a(90343);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}var I=function(e){return A.createElement("svg",P({viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=A.createElement("path",{d:"M6.875 10a.625.625 0 0 1-.442-1.067l6.17-6.17a2.176 2.176 0 0 0-1.04-.263H2.187A2.19 2.19 0 0 0 0 4.688v9.375a2.19 2.19 0 0 0 2.188 2.187h9.374a2.19 2.19 0 0 0 2.188-2.188V4.688c0-.364-.09-.721-.264-1.04l-6.17 6.169a.622.622 0 0 1-.441.183Z"})),r||(r=A.createElement("path",{d:"M15.625 0H11.25a.625.625 0 1 0 0 1.25h2.866l-1.513 1.514c.373.203.68.51.883.883L15 2.134V5a.625.625 0 1 0 1.25 0V.625A.625.625 0 0 0 15.625 0Z"})))},U=a(23719),z=e=>!e||/^\s*$/.test(e),G=a(55617);let X=Math.round;function W(e){let t=e.length,a={};return"rgb"===e.slice(0,3).toLowerCase()?(e=e.replace(" ","").split(","),a[0]=parseInt(e[0].slice("a"===e[3].toLowerCase()?5:4),10),a[1]=parseInt(e[1],10),a[2]=parseInt(e[2],10),a[3]=e[3]?parseFloat(e[3]):-1):(e=t<6?parseInt(String(e[1])+e[1]+e[2]+e[2]+e[3]+e[3]+(t>4?String(e[4])+e[4]:""),16):parseInt(e.slice(1),16),a[0]=e>>16&255,a[1]=e>>8&255,a[2]=255&e,a[3]=9===t||5===t?X((e>>24&255)/255*1e4)/1e4:-1),a}var V=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;e=e.trim(),t=t.trim(),a=a<0?-1*a:a;let n=W(e),s=W(t);return"r"===t[0]?"rgb"+("a"===t[3]?"a(":"(")+X((s[0]-n[0])*a+n[0])+","+X((s[1]-n[1])*a+n[1])+","+X((s[2]-n[2])*a+n[2])+(n[3]<0&&s[3]<0?"":","+(n[3]>-1&&s[3]>-1?X(((s[3]-n[3])*a+n[3])*1e4)/1e4:s[3]<0?n[3]:s[3]))+")":"#"+(4294967296+(n[3]>-1&&s[3]>-1?X(((s[3]-n[3])*a+n[3])*255):s[3]>-1?X(255*s[3]):n[3]>-1?X(255*n[3]):255)*16777216+65536*X((s[0]-n[0])*a+n[0])+256*X((s[1]-n[1])*a+n[1])+X((s[2]-n[2])*a+n[2])).toString(16).slice(n[3]>-1||s[3]>-1?1:3)};function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}function q(){return(q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}var K=function(e){return A.createElement("svg",q({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=A.createElement("path",{fill:"currentColor",d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"})))};function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}var Q=function(e){return A.createElement("svg",$({width:24,height:24,viewBox:"-2.5 -2.1 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),d||(d=A.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75 19.5c5.385 0 9.75-4.365 9.75-9.75S15.135 0 9.75 0 0 4.365 0 9.75s4.365 9.75 9.75 9.75Zm1.374-14.395-.28 5.957a.781.781 0 1 1-1.563 0l-.28-5.954A1.061 1.061 0 0 1 10.051 4h.01a1.061 1.061 0 0 1 1.061 1.108l.002-.003Zm-1.06 9.822a.976.976 0 1 1 0-1.953.976.976 0 0 1 0 1.953Z",fill:"currentColor"})))};function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let et=[{value:"NONE",label:"None",color:"notice",level:0,Icon:K},{value:"OPERATIONAL",label:"operational",color:"ok",level:1,Icon:K},{value:"UNDERMAINTENANCE",label:"underMaintenance",color:"notice",level:2,Icon:function(e){return A.createElement("svg",Y({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=A.createElement("path",{fill:"currentColor",d:"M12 21.75c5.385 0 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25 2.25 6.615 2.25 12s4.365 9.75 9.75 9.75Zm4.387-12.465c.04.029.073.067.096.111.373.726.256 2.012-.515 2.77-.415.41-.992.623-1.649.623a3.528 3.528 0 0 1-.91-.125.314.314 0 0 0-.31.09l-3.023 3.28a1.262 1.262 0 1 1-1.782-1.782l3.275-2.99a.312.312 0 0 0 .088-.315c-.292-1.04-.11-1.983.497-2.586.716-.71 1.85-.922 2.76-.516a.314.314 0 0 1 .093.51l-1.203 1.203a.315.315 0 0 0 0 .445l.522.524a.318.318 0 0 0 .445 0l1.21-1.21a.315.315 0 0 1 .406-.032Z"})))}},{value:"DEGRADEDPERFORMANCE",label:"degradedPerformance",color:"degraded",level:3,Icon:Q},{value:"PARTIALOUTAGE",label:"partialOutage",color:"disrupted",level:4,Icon:Q},{value:"MINOROUTAGE",label:"minorOutage",color:"disrupted",level:5,Icon:function(e){return A.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),c||(c=A.createElement("path",{d:"M449.07 399.08 278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17zm-198.6-1.83a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7z"})))}},{value:"MAJOROUTAGE",label:"majorOutage",color:"down",level:6,Icon:function(e){return A.createElement("svg",J({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=A.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM8.796 7.42A.973.973 0 1 0 7.42 8.796L10.624 12 7.42 15.204a.973.973 0 0 0 1.376 1.376L12 13.376l3.204 3.204a.973.973 0 1 0 1.376-1.376L13.376 12l3.204-3.204a.973.973 0 1 0-1.376-1.376L12 10.624 8.796 7.42Z",fill:"currentColor"})))}}],ea=e=>{let t=et.filter(t=>t.value===e);return t.length>0?t[0].level:0},en=e=>{let t=0,a=et.filter(t=>t.value===e);return a&&a.length>0&&a[0].level>t&&(t=a[0].level),t>=2};var es=e=>{let{outages:t,okColor:a,disruptedColor:n,downColor:s,degradedColor:r,noticeColor:o}=e,{color:l}=et[1],i=2,d=t.filter(e=>en(e.status)).map(e=>{let t=e.end?new Date(e.end):new Date,a=new Date(e.from),n=(0,G.Z)(t,new Date(a));if(e.status){let t=et.filter(t=>t.value===e.status);t[0].level>i&&(i=t[0].level),t&&t.length>0&&t[0].level<6&&t[0].level>=2&&(n*=.3)}return n}),c=d.length>0?d.reduce((e,t)=>e+t):0;return t.every(e=>"UNDERMAINTENANCE"===t.status)?V(a,o,Math.min(Math.max(.005*c,.2),.4)):i>=6?V(n,s,Math.min(Math.max(.005*c,.2),1)):i>=4?V(r,n,Math.min(Math.max(.005*c,.2),1)):c>-1?V(a,r,Math.min(Math.max(.005*c,.2),.4)):a},er=a(2267),eo=a(20343),el=a(25247),ei=a(12038),ed=a(27648),ec=e=>{let{isLeft:t,disabled:a,size:n="large"}=e;return(0,h.jsx)("div",{className:"transform ".concat(y()({"rotate-180":t,"scale-150":"large"===n})),children:(0,h.jsxs)("svg",{viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"arrow-icon overflow-visible w-[8px] opacity-75 ".concat(y()({"group-hover:opacity-100":!a})),children:[(0,h.jsx)("g",{className:"transition ease-in-out transform translate-x-0 arrow-head ".concat(y()({"duration-100":"large"===n,"duration-75":"small"===n,"group-hover:translate-x-[2px]":!a})),children:(0,h.jsx)("path",{d:"M1 1C4.5 4 5 4.38484 5 4.5C5 4.61516 4.5 5 1 8",stroke:"currentColor",strokeWidth:"1"})}),(0,h.jsx)("g",{className:"arrow-body opacity-0 tranform transition ease-in-out duration-150 ".concat(y()({"scale-x-100 group-hover:translate-x-[-1px] group-hover:scale-x-[2] group-hover:opacity-100":!a})),children:(0,h.jsx)("path",{d:"M3.5 4.5H0",stroke:"currentColor",strokeWidth:"1"})})]})})},em=a(48437),eu=a(22681),eh=a(45712),ep=(e,t,a)=>{var n;let s=null==t?void 0:null===(n=t.languageCode)||void 0===n?void 0:n.replace("-","_");return s&&e&&e["text_".concat(s)]?e["text_".concat(s)]:a},ex=e=>{var t,a;let{startDate:n,componentStartDate:s,i:r,days:o,bgColor:l,width:i,spacing:d,height:c,id:m,setTooltipData:u,setShowTooltip:p,hoveredIndex:x,setHoveredIndex:g,context:{site:f,t:w,notices:j,language:b},readUptimeBars:D}=e,N=(0,eh.Z)((0,em.Z)(new Date(n),r)).toString(),Z=(0,C.Z)(new Date(N),"MMM yyyy"),k=(0,v.useRef)(null),M=S[w("dateLocale")],E=ep(null==f?void 0:f.dateFormatTranslation,b,null==f?void 0:f.dateFormat),A=(0,C.Z)(new Date(N),E,{locale:M}),_=f.launchDate&&new Date(N).setHours(0,0,0,0)<new Date(f.launchDate).setHours(0,0,0,0)||s&&new Date(N).setHours(0,0,0,0)<new Date(s).setHours(0,0,0,0)||new Date().setHours(0,0,0,0)<new Date(N).setHours(0,0,0,0),H=_&&(0,eu.Z)(new Date(N)),L=()=>{var e,t,a,n;u({formattedDate:A,didntStart:_,notices:(null===(t=o[Z])||void 0===t?void 0:null===(e=t.days[N])||void 0===e?void 0:e.notices.map(e=>j[e]))||[],outages:(null===(n=o[Z])||void 0===n?void 0:null===(a=n.days[N])||void 0===a?void 0:a.outages)||[],tooltipDate:new Date(N),dateInFuture:H}),g(r),p(!0)},O=null===(a=o[Z])||void 0===a?void 0:null===(t=a.days[N])||void 0===t?void 0:t.outages,T=(0,C.Z)(new Date(N),"EEEE, do MMMM yyyy"),B=(null==O?void 0:O.length)>0?"".concat(O.length," ").concat(w(O.length>1?"issues":"issue")):w("noDowntime");return(0,h.jsx)("rect",{ref:k,tabIndex:D?-1:void 0,"aria-label":"".concat(B," - ").concat(T),className:"cursor-pointer ".concat(y()({"opacity-30 dark:opacity-100 dark:fill-black":r===x,"dark:opacity-[0.6]":r!==x})),height:c,width:i,x:r*(i+d),y:"0",fill:l(N),id:"".concat(m,"-").concat(r),onMouseMove:L,onFocus:L,onBlur:()=>{u(null),p(!1),g(-1)}},"".concat(m,"-").concat(r))},ev=e=>{var t;let{days:a,componentStartDate:n,bgColor:s,startDate:r,endDate:o,id:l,componentUptime:i,customLinkComponent:d,setTooltipProps:c,customTooltipComponent:m,context:u,readUptimeBars:p,componentName:x}=e,{site:g,t:y,page:f,app:w,language:j}=u,b=S[y("dateLocale")],D=(g.uptimeDaysDisplay,1),N=0;g.maxHistoryDays&&0!==g.maxHistoryDays&&(N=g.maxHistoryDays/30/3);let Z=0===N?50:N,k=f+1>Z?Z:f+1,M=0,E=Math.floor((0,eo.Z)(new Date(o),new Date(r))/24),A=[r,(0,er.Z)(new Date(r),1).toString(),o],_=[(0,el.Z)(new Date(r)),(0,el.Z)((0,er.Z)(new Date(r),1)),(0,el.Z)(new Date(o))],[H,L]=(0,v.useState)(!1),[O,T]=(0,v.useState)(-1),B=d||ed.default,R=ep(null==g?void 0:g.dateFormatShortTranslation,j,null==g?void 0:g.dateFormatShort);return(0,h.jsx)("div",{onClick:e=>e.stopPropagation(),className:"bars-colors-history-desktop",children:(0,h.jsxs)("div",{className:"hidden lg:block",children:[(0,h.jsxs)("div",{className:"uptime",onMouseLeave:()=>{c(null),L(!1),T(-1)},children:[(0,h.jsxs)("div",{className:"overflow-hidden w-full rounded",children:[(0,h.jsx)("svg",{"aria-hidden":p?"false":"true",preserveAspectRatio:"none",className:"w-full h-[38px]",viewBox:"0 0 ".concat((E+1)*(10+D)-1," 40"),children:[...Array(E+1)].map((e,t)=>(0,h.jsx)(ex,{startDate:r,componentStartDate:n,i:t,days:a,bgColor:s,width:10,readUptimeBars:p,spacing:D,height:40,id:l,setTooltipData:e=>c({data:e,page:f,nextPage:k,show90daysAgo:g.maxHistoryDays>-1}),setShowTooltip:L,hoveredIndex:O,setHoveredIndex:T,context:u},"".concat(l,"-").concat(t)))}),p&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(t=y("reachedTheEndOfUptimeGraph"))||void 0===t?void 0:t.replace("{{component}}",x)})})]}),H&&m]}),(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)("svg",{preserveAspectRatio:"none",viewBox:"0 0 ".concat(7*E-1," 20"),style:{width:"100%"},children:A.map((e,t,a)=>(M+=0===t?0:_[t-1],(0,h.jsxs)("text",{x:0===t?12+7*t:7*M,y:13,height:20,width:60,className:"text-xs",children:[0===t||0===(0,ei.Z)(new Date(e))?(0,C.Z)(new Date(e),R,{locale:b})+" ":(0,C.Z)(new Date(e),R.replaceAll("Y","").replaceAll("y",""),{locale:b}),"\xb7"," "+(i[(0,ei.Z)((0,er.Z)(new Date(r),t))]||"100"),"%"]},"".concat(e))))}),(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uptime-days uptime-months left",children:(0,h.jsx)(B,{href:"/history/".concat(k),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{className:"group incidents-montly__prev",rel:k>3?"nofollow":"",style:{pointerEvents:"DASHBOARD"===w?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -ml-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:k===f,isLeft:!0}),(0,h.jsx)("p",{className:"sr-only",children:"Previous page"})]})})})}),(0,h.jsx)("span",{className:"uptime-days uptime-months right",children:(0,h.jsx)(B,{href:1===f?"/":"/history/".concat(f-1),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{className:"group incidents-monthly__next",style:{pointerEvents:"DASHBOARD"===w?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -mr-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!1}),(0,h.jsx)("p",{className:"sr-only",children:"Next page"})]})})})})]})]})]})})},eg=a(29112),ey=e=>{let{bgColor:t,startDate:a,endDate:n,componentUptime:s,context:{site:r,t:o,language:l},readUptimeBars:i,componentName:d}=e,c=S[o("dateLocale")],m=(r.uptimeDaysDisplay,1),u=ep(null==r?void 0:r.dateFormatShortTranslation,l,null==r?void 0:r.dateFormatShort);r.maxHistoryDays&&0!==r.maxHistoryDays&&r.maxHistoryDays;let p=[a,(0,er.Z)(new Date(a),1).toString(),n],x=[(0,el.Z)(new Date(a)),(0,el.Z)((0,er.Z)(new Date(a),1)),(0,el.Z)(new Date(n))],v=0;return(0,h.jsx)("div",{className:"bars-colors-history-mobile",children:p.map((e,n,r)=>{var l;return v+=0===n?0:x[n-1],(0,h.jsxs)("div",{className:"mb-2 month-uptime",children:[(0,h.jsxs)("div",{className:"month-uptime-bars",children:[(0,h.jsx)("svg",{"aria-hidden":i?"false":"true",preserveAspectRatio:"none",viewBox:"0 0 ".concat(x[n]*(10+m)-2," ").concat(12),children:[...Array(x[n])].map((e,n)=>{let s=(0,eh.Z)((0,em.Z)(new Date(a),v+n)).toString();return(0,h.jsx)("rect",{tabIndex:i?-1:void 0,"aria-label":"".concat((0,C.Z)(new Date(s),"EEEE, do MMMM yyyy",{locale:c})),className:"cursor-pointer rect h-[12px]",width:10,y:0,x:((0,eg.Z)(new Date(s))-1)*(10+m),fill:t(s)},s)})}),i&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(l=o("reachedTheEndOfUptimeGraph"))||void 0===l?void 0:l.replace("{{component}}",d)})})]}),(0,h.jsx)("div",{className:"month-uptime-details",children:(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uppercase",children:(0,C.Z)(new Date(e),u,{locale:c})}),(0,h.jsxs)("span",{className:"font-medium","aria-hidden":"true",children:[s[(0,ei.Z)((0,er.Z)(new Date(a),n))]||100,"% ",o("uptime")]})]})})]},e)})})},ef=a(88039),ew=function(){let e=(0,v.useRef)(!0),[t,a]=(0,v.useState)(window.innerWidth),n=(0,v.useCallback)(()=>{e.current&&a(window.innerWidth)},[a]);return(0,v.useEffect)(()=>{let t=new ef.Z(n),a=window.document.querySelector("html");if(a)return t.observe(a),()=>{e.current=!1,a&&t.unobserve(a)}},[n]),t},ej=e=>{var t,a;let{days:n,componentStartDate:s,bgColor:r,id:o,customLinkComponent:l,setTooltipProps:i,customTooltipComponent:d,context:c,startDate:m,endDate:u,readUptimeBars:p,componentName:x}=e,{site:g,t:f,app:w}=c,j=Math.floor((0,eo.Z)(new Date(u),new Date(m))/24),[b,D]=(0,v.useState)(j),N=j<b?j:b,Z=(g.uptimeDaysDisplay,1),k=ew(),[M,E]=(0,v.useState)(!1),[C,S]=(0,v.useState)(-1);(0,v.useEffect)(()=>{k<580?D(30):k<820?D(60):D(90)},[k]);let A=l||ed.default;return(0,h.jsxs)("div",{className:"bars-colors-home",children:[(0,h.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"uptime",onMouseLeave:()=>{i(null),E(!1),S(-1)},children:[(0,h.jsxs)("div",{className:"w-full overflow-hidden rounded",children:[(0,h.jsx)("svg",{"aria-hidden":p?"false":"true",preserveAspectRatio:"none",viewBox:"".concat((Math.max(j,b)-b)*(10+Z)," 0 ").concat((N+1)*(10+Z)-2," 24"),className:"w-full overflow-hidden h-[38px] ".concat(y()({"h-[38px]":30!==j,"h-[24px]":30===j})),children:[...Array(j+1)].map((e,t)=>(0,h.jsx)(ex,{startDate:m,componentStartDate:s,i:t,days:n,bgColor:r,width:10,readUptimeBars:p,spacing:Z,height:"24",id:o,setTooltipData:e=>i({data:e,uptimeBarNumDays:N,show90daysAgo:g.maxHistoryDays>-1}),setShowTooltip:E,hoveredIndex:C,setHoveredIndex:S,context:c},"".concat(o,"-").concat(t)))}),p&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(t=f("reachedTheEndOfUptimeGraph"))||void 0===t?void 0:t.replace("{{component}}",x)})})]}),M&&d]}),g.maxHistoryDays>-1&&(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)(A,{href:"/history/1","aria-label":"".concat(f("noticeHistory")," ").concat(null===(a=f("numDaysAgo"))||void 0===a?void 0:a.replace("{{num}}",N)),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsxs)("a",{className:"group incidents-monthly__prev--history",style:{pointerEvents:"DASHBOARD"===w?"none":"auto"},children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!0}),(0,h.jsx)("span",{className:"sr-only",children:"Full History"}),(0,h.jsx)("span",{className:"ml-2","aria-hidden":"true",children:f("numDaysAgo").replace("{{num}}",N)})]})}),(0,h.jsx)("div",{"aria-hidden":"true",children:f("today")})]}),-1===g.maxHistoryDays&&(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)("div",{className:"group incidents-monthly__prev--no-history",children:(0,h.jsx)("span",{children:f("numDaysAgo").replace("{{num}}",N)})}),(0,h.jsx)("div",{"aria-hidden":"true",children:f("today")})]})]})},eb=e=>t=>e[t];a(93113);var eD=e=>{let{componentStartDate:t,isHistory:a,days:n,startDate:s,endDate:r,id:o,componentUptime:l,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,componentName:u}=e,{site:p,language:x}=m,{okColor:g,disruptedColor:y,degradedColor:f,downColor:w,unknownColor:j,noticeColor:b,launchDate:D}=p,N=eb(x),[Z,k]=(0,v.useState)(!1),M=(0,v.useCallback)(e=>{var a,s,r,o,l;let i=(0,C.Z)(new Date(e),"MMM yyyy"),d=(null===(a=n[i])||void 0===a?void 0:a.days[e])&&(null===(s=n[i])||void 0===s?void 0:s.days[e].outages.length)!==0;return D&&new Date(e).setHours(0,0,0,0)<new Date(D).setHours(0,0,0,0)||t&&new Date(e).setHours(0,0,0,0)<new Date(t).setHours(0,0,0,0)||new Date().setHours(0,0,0,0)<new Date(e).setHours(0,0,0,0)?j:(null===(r=n[i])||void 0===r?void 0:r.days[e])&&(null===(o=n[i])||void 0===o?void 0:o.days[e].outages.length)!==0&&d?es({outages:null===(l=n[i])||void 0===l?void 0:l.days[e].outages,okColor:g,disruptedColor:y,downColor:w,degradedColor:f,noticeColor:b}):g},[n,f,y,w,D,b,g,j,t]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{className:"sr-only",onClick:e=>{e.stopPropagation(),k(e=>!e)},children:"".concat(N(Z?"skipUptimeGraph":"readUptimeGraph")," ").concat(N("for")," ").concat(u)}),a?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ev,{id:o,days:n,bgColor:M,startDate:s,endDate:r,componentUptime:l,componentStartDate:t,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,readUptimeBars:Z,componentName:u}),(0,h.jsx)(ey,{bgColor:M,startDate:s,endDate:r,componentUptime:l,context:m,readUptimeBars:Z,componentName:u})]}):(0,h.jsx)(ej,{id:o,days:n,bgColor:M,componentStartDate:t,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,startDate:s,endDate:r,readUptimeBars:Z})]})},eN=a(76712),eZ=a(83073);let ek=(e,t,a)=>Math.min(Math.max(e,t),a),eM=e=>{switch(e.status){case"OPERATIONAL":case"UNDERMAINTENANCE":return"rgba(0, 0, 0, 0.3)";case"DEGRADEDPERFORMANCE":return"var(--degraded-color)";case"PARTIALOUTAGE":return"var(--disrupted-color)";case"MAJOROUTAGE":return"var(--down-color)"}return"#FF8C03"},eE=function(e,t,a){let n,s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=new Date((0,eZ.Z)(new Date(e.from),new Date(t))?e.from:t),s=e.to?(0,eZ.Z)(new Date(e.to),new Date(t))?new Date(e.to):(0,eN.Z)(new Date(t)):(0,eZ.Z)(Date.now(),new Date(t))?new Date:(0,eN.Z)(new Date(t));let o=Math.log((0,G.Z)(s,n)/60+1)/Math.log(7);return 40===a?o*=40:o*=24,ek(o,r?20:7,a-.7)};var eC=e=>{let{day:t,outages:a,x:n,maxHeight:s,handleHover:r,hoveredIndex:o,i:l,current:i=!1,context:{site:d}}=e,c=i&&30===d.maxUptimeDays,m=a.map(e=>({...e,height:eE(e,t,s,c),color:eM(e)}));return m.sort((e,t)=>t.height==e.height?ea(e.status)-ea(t.status):t.height-e.height),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("rect",{"aria-hidden":"true",x:n+.125,y:0,width:"10",height:"40",className:"z-0 subpixel-antialiased opacity-[0.18] cursor-pointer fill-white dark:fill-black dark:opacity-[0.1]",onMouseOver:r}),m.map((e,t)=>{let a;return a=Math.ceil(e.height)==s?0:c?2:4,(0,h.jsx)("rect",{x:n+.125,y:s-e.height-.7,rx:a,width:"10",height:e.height+3,fill:e.color,onMouseOver:r,className:"component__notice-bar__upper cursor-pointer subpixel-antialiased  ".concat(y()({"dark:opacity-[0.6]":"OPERATIONAL"===e.status,"dark:opacity-[0.8]":"OPERATIONAL"!==e.status,"-translate-y-[1px]":o==t&&e.status>=s-4,"-translate-y-[4px]":o==t&&e.status<s-4}))},"".concat(e.id||"").concat(t))})]})},eS=e=>{var t,a,n,s,r,o;let{startDate:l,componentStartDate:i,i:d,days:c,width:m,spacing:u,height:p,id:x,setTooltipData:g,setShowTooltip:f,hoveredIndex:w,setHoveredIndex:j,current:b=!1,context:D,readUptimeBars:N}=e,{site:Z,t:k,notices:M,language:E}=D,A=(0,eh.Z)((0,em.Z)(new Date(l),d)).toString(),_=(0,C.Z)(new Date(A),"MMM yyyy"),H=(0,v.useRef)(null),L=S[k("dateLocale")],O=ep(null==Z?void 0:Z.dateFormatTranslation,E,null==Z?void 0:Z.dateFormat),T=(0,C.Z)(new Date(A),O,{locale:L}),B=Z.launchDate&&new Date(A).setHours(0,0,0,0)<new Date(Z.launchDate).setHours(0,0,0,0)||i&&new Date(A).setHours(0,0,0,0)<new Date(i).setHours(0,0,0,0)||new Date().setHours(0,0,0,0)<new Date(A).setHours(0,0,0,0),R=B&&(0,eu.Z)(new Date(A)),F=(null===(a=c[_])||void 0===a?void 0:null===(t=a.days[A])||void 0===t?void 0:t.outages.length)>0,P=()=>{var e,t,a,n;g({formattedDate:T,didntStart:B,dateInFuture:R,outages:(null===(t=c[_])||void 0===t?void 0:null===(e=t.days[A])||void 0===e?void 0:e.outages)||[],tooltipDate:new Date(A),notices:(null===(n=c[_])||void 0===n?void 0:null===(a=n.days[A])||void 0===a?void 0:a.notices.map(e=>M[e]))||[]}),j(d),f(!0)},I=null===(s=c[_])||void 0===s?void 0:null===(n=s.days[A])||void 0===n?void 0:n.outages,U=(0,C.Z)(new Date(A),"EEEE, do MMMM yyyy"),z=F?"".concat(I.length," ").concat(k(I.length>1?"issues":"issue")):k("noDowntime");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("rect",{tabIndex:N?-1:void 0,"aria-label":"".concat(z," - ").concat(U),ref:H,className:"cursor-pointer ".concat(y()({"opacity-30 dark:opacity-[0.4]":d===w,"dark:opacity-[0.6] ":d!==w})),height:p,width:m,x:d*(m+u),y:"0",fill:B?Z.unknownColor:Z.okColor,id:"".concat(x,"-").concat(d),onMouseMove:P,onFocus:P,onBlur:()=>{g(null),f(!1),j(-1)}},"".concat(x,"-").concat(d)),F&&!B&&(0,h.jsx)(eC,{i:d,hoveredIndex:w,day:A,outages:(null===(o=c[_])||void 0===o?void 0:null===(r=o.days[A])||void 0===r?void 0:r.outages)||[],x:d*(m+u),maxHeight:p,handleHover:P,current:b,context:D})]})},eA=e=>{var t;let{days:a,componentStartDate:n,startDate:s,endDate:r,id:o,componentUptime:l,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,readUptimeBars:u,componentName:p}=e,{site:x,t:g,page:y,app:f,language:w}=m,j=S[g("dateLocale")],b=(x.uptimeDaysDisplay,1),D=0;x.maxHistoryDays&&0!==x.maxHistoryDays&&(D=x.maxHistoryDays/30/3);let N=0===D?50:D,Z=y+1>N?N:y+1,k=0,M=Math.floor((0,eo.Z)(new Date(r),new Date(s))/24),E=[s,(0,er.Z)(new Date(s),1).toString(),r],A=[(0,el.Z)(new Date(s)),(0,el.Z)((0,er.Z)(new Date(s),1)),(0,el.Z)(new Date(r))],[_,H]=(0,v.useState)(!1),[L,O]=(0,v.useState)(-1),T=i||ed.default,B=ep(null==x?void 0:x.dateFormatShortTranslation,w,null==x?void 0:x.dateFormatShort);return(0,h.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"bars-length-history-desktop",children:[(0,h.jsxs)("div",{className:"uptime",onMouseLeave:()=>{d(null),H(!1),O(-1)},children:[(0,h.jsxs)("div",{className:"uptime-bars",children:[(0,h.jsx)("svg",{"aria-hidden":u?"false":"true",preserveAspectRatio:"none",viewBox:"0 0 ".concat((M+1)*(10+b)-1," 40"),children:[...Array(M+1)].map((e,t)=>(0,h.jsx)(eS,{startDate:s,componentStartDate:n,i:t,days:a,width:10,spacing:b,readUptimeBars:u,height:40,id:o,setTooltipData:e=>d({data:e,page:y,nextPage:Z,show90daysAgo:x.maxHistoryDays>-1}),setShowTooltip:H,hoveredIndex:L,setHoveredIndex:O,context:m},"".concat(o,"-").concat(t)))}),u&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(t=g("reachedTheEndOfUptimeGraph"))||void 0===t?void 0:t.replace("{{component}}",p)})})]}),_&&c]}),(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)("svg",{preserveAspectRatio:"none",viewBox:"0 0 ".concat(7*M-1," 20"),style:{width:"100%"},children:E.map((e,t,a)=>(k+=0===t?0:A[t-1],(0,h.jsxs)("text",{x:0===t?12+7*t:7*k,y:13,height:20,width:60,className:"text-xs",children:[0===t||0===(0,ei.Z)(new Date(e))?(0,C.Z)(new Date(e),B,{locale:j})+" ":(0,C.Z)(new Date(e),B.replaceAll("Y","").replaceAll("y",""),{locale:j}),"\xb7"," "+(l[(0,ei.Z)((0,er.Z)(new Date(s),t))]||"100"),"%"]},e)))}),(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uptime-days uptime-months left",children:(0,h.jsx)(T,{href:"/history/".concat(Z),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{rel:Z>3?"nofollow":"",className:"group incidents-montly__prev",style:{pointerEvents:"DASHBOARD"===f?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -ml-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:Z===y,isLeft:!0}),(0,h.jsx)("p",{className:"sr-only",children:"Previous page"})]})})})}),(0,h.jsx)("span",{className:"uptime-days uptime-months right",children:(0,h.jsx)(T,{href:1===y?"/":"/history/".concat(y-1),onClick:e=>{e.stopPropagation()},legacyBehavior:!0,children:(0,h.jsx)("a",{className:"group incidents-monthly__next",style:{pointerEvents:"DASHBOARD"===f?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -mr-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!1}),(0,h.jsx)("p",{className:"sr-only",children:"Next page"})]})})})})]})]})]})},e_=e=>{let{bgColor:t,startDate:a,endDate:n,componentUptime:s,context:{site:r,t:o,language:l},readUptimeBars:i,componentName:d}=e,c=S[o("dateLocale")],m=(r.uptimeDaysDisplay,1),u=[a,(0,er.Z)(new Date(a),1).toString(),n],p=[(0,el.Z)(new Date(a)),(0,el.Z)((0,er.Z)(new Date(a),1)),(0,el.Z)(new Date(n))],x=0,v=ep(null==r?void 0:r.dateFormatShortTranslation,l,null==r?void 0:r.dateFormatShort);return(0,h.jsx)("div",{className:"bars-length-history-mobile",children:u.map((e,n,r)=>(x+=0===n?0:p[n-1],(0,h.jsxs)("div",{className:"mb-2 month-uptime",children:[(0,h.jsx)("div",{className:"month-uptime-bars",children:(0,h.jsx)("svg",{"aria-hidden":i?"false":"true",preserveAspectRatio:"none",viewBox:"0 0 ".concat(p[n]*(10+m)-2," ").concat(12),children:[...Array(p[n])].map((e,n)=>{let s=(0,eh.Z)((0,em.Z)(new Date(a),x+n)).toString();return(0,h.jsx)("rect",{tabIndex:i?-1:void 0,"aria-label":"".concat((0,C.Z)(new Date(s),"EEEE, do MMMM yyyy",{locale:c})),className:"cursor-pointer rect h-[12px] dark:opacity-[0.6]",width:10,y:0,x:((0,eg.Z)(new Date(s))-1)*(10+m),fill:t(s)},s)})})}),(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uppercase",children:(0,C.Z)(new Date(e),v,{locale:c})}),(0,h.jsxs)("span",{className:"font-medium","aria-hidden":"true",children:[s[(0,ei.Z)((0,er.Z)(new Date(a),n))]||100,"% ",o("uptime")]})]})]},e)))})},eH=a(47175),eL=e=>{var t;let{days:a,componentStartDate:n,id:s,customLinkComponent:r,setTooltipProps:o,customTooltipComponent:l,context:i,startDate:d,endDate:c,readUptimeBars:m,componentName:u}=e,{site:p,t:x,app:g}=i,f=(0,eH.Z)(new Date(c),new Date(d)),[w,j]=(0,v.useState)(f),b=f<w?f:w,D=(p.uptimeDaysDisplay,1),N=ew(),[Z,k]=(0,v.useState)(!1),[M,E]=(0,v.useState)(-1);(0,v.useEffect)(()=>{N<580?j(30):N<820?j(60):j(90)},[N]);let C=r||ed.default;return(0,h.jsxs)("div",{className:"bars-length-home",children:[(0,h.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"uptime",onMouseLeave:()=>{o(null),k(!1),E(-1)},children:[(0,h.jsxs)("div",{className:"uptime-bars",children:[(0,h.jsx)("svg",{"aria-hidden":m?"false":"true",preserveAspectRatio:"none",viewBox:"".concat((Math.max(f,w)-w)*(10+D)," 0 ").concat((b+1)*(10+D)-2," ").concat(30===p.maxUptimeDays?"24":"38"),height:30===p.maxUptimeDays?"24":"38",className:y()({"h-[38px]":30!==f,"h-[24px]":30===f}),children:[...Array(f+1)].map((e,t)=>(0,h.jsx)(eS,{startDate:d,componentStartDate:n,i:t,days:a,width:10,spacing:D,height:"40",id:s,setShowTooltip:k,readUptimeBars:m,hoveredIndex:M,setHoveredIndex:E,current:!0,context:i,setTooltipData:e=>o({data:e,show90daysAgo:p.maxHistoryDays>-1,uptimeBarNumDays:b})},"".concat(s,"-").concat(t)))}),m&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(t=x("reachedTheEndOfUptimeGraph"))||void 0===t?void 0:t.replace("{{component}}",u)})})]}),Z&&l]}),p.maxHistoryDays>-1&&(0,h.jsxs)("div",{className:"annotations-container has-history",children:[(0,h.jsx)(C,{href:"/history/1","aria-label":"".concat(x("noticeHistory")," ").concat(x("numDaysAgo").replace("{{num}}",b)),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsxs)("a",{className:"group incidents-monthly__prev",style:{pointerEvents:"DASHBOARD"===g?"none":"auto"},children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!0}),(0,h.jsx)("span",{className:"sr-only",children:"Full History"}),(0,h.jsx)("span",{className:"ml-2","aria-hidden":"true",children:x("numDaysAgo").replace("{{num}}",b)})]})}),(0,h.jsx)("div",{"aria-hidden":"true",children:x("today")})]}),-1===p.maxHistoryDays&&(0,h.jsxs)("div",{className:"annotations-container no-history",children:[(0,h.jsx)("div",{className:"group incidents-monthly__prev",children:(0,h.jsx)("span",{children:x("numDaysAgo").replace("{{num}}",b)})}),(0,h.jsx)("div",{"aria-hidden":"true",children:x("today")})]})]})};a(67474);var eO=e=>{let{componentStartDate:t,isHistory:a,days:n,startDate:s,endDate:r,id:o,componentUptime:l,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,componentName:u}=e,{site:p,language:x}=m,{okColor:g,disruptedColor:y,degradedColor:f,downColor:w,unknownColor:j,noticeColor:b,launchDate:D}=p,N=eb(x),[Z,k]=(0,v.useState)(!1),M=(0,v.useCallback)(e=>{var a,s,r,o,l;let i=(0,C.Z)(new Date(e),"MMM yyyy"),d=(null===(a=n[i])||void 0===a?void 0:a.days[e])&&(null===(s=n[i])||void 0===s?void 0:s.days[e].outages.length)!==0;return D&&new Date(e).setHours(0,0,0,0)<new Date(D).setHours(0,0,0,0)||t&&new Date(e).setHours(0,0,0,0)<new Date(t).setHours(0,0,0,0)||new Date().setHours(0,0,0,0)<new Date(e).setHours(0,0,0,0)?j:(null===(r=n[i])||void 0===r?void 0:r.days[e])&&(null===(o=n[i])||void 0===o?void 0:o.days[e].outages.length)!==0&&d?es({outages:null===(l=n[i])||void 0===l?void 0:l.days[e].outages,okColor:g,disruptedColor:y,downColor:w,degradedColor:f,noticeColor:b}):g},[n,f,y,w,D,b,g,j,t]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{className:"sr-only",onClick:e=>{e.stopPropagation(),k(e=>!e)},children:"".concat(N(Z?"skipUptimeGraph":"readUptimeGraph")," ").concat(N("for")," ").concat(u)}),a?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eA,{days:n,componentStartDate:t,startDate:s,endDate:r,id:o,componentUptime:l,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,readUptimeBars:Z,componentName:u}),(0,h.jsx)(e_,{bgColor:M,startDate:s,endDate:r,componentUptime:l,context:m,readUptimeBars:Z,componentName:u})]}):(0,h.jsx)(eL,{days:n,componentStartDate:t,id:o,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,startDate:s,endDate:r,readUptimeBars:Z,componentName:u})]})},eT=e=>{let{day:t,outages:a,isHovered:n,right:s,bgColor:r,readUptimeBars:o}=e;return a.length?(0,h.jsx)("div",{tabIndex:o?-1:void 0,"aria-label":"".concat(a.length," ").concat(a.length>1?"issues":"issue"),style:{"--r":s,background:r(t)},className:y()("component__notice-bar__upper simple-colors",n&&"hovered",s&&"right")}):null},eB=e=>{var t,a;let{startDate:n,i:s,days:r,isHovered:o=!1,right:l,bgColor:i,readUptimeBars:d}=e,c=(0,eh.Z)((0,em.Z)(new Date(n),s)).toString(),m=null===(a=r[(0,C.Z)(new Date(c),"MMM yyyy")])||void 0===a?void 0:null===(t=a.days[c])||void 0===t?void 0:t.outages,u=m&&0!==m.length;return(0,h.jsx)(h.Fragment,{children:u&&(0,h.jsx)(eT,{day:c,isHovered:o,outages:m||[],right:l,bgColor:i,readUptimeBars:d})})},eR=e=>{var t,a,n,s;let{days:r,startDate:o,endDate:l,id:i,componentUptime:d,componentStartDate:c,bgColor:m,customLinkComponent:u,setTooltipProps:p,customTooltipComponent:x,context:g,readUptimeBars:y,componentName:f}=e,{site:w,t:j,page:b,notices:D,app:N,language:Z}=g,k=S[j("dateLocale")],M=ep(null==w?void 0:w.dateFormatTranslation,Z,null==w?void 0:w.dateFormat),E=ep(null==w?void 0:w.dateFormatShortTranslation,Z,null==w?void 0:w.dateFormatShort),A=0;w.maxHistoryDays&&0!==w.maxHistoryDays&&(A=w.maxHistoryDays/30/3);let _=0===A?50:A,H=b+1>_?_:b+1,L=0,O=Math.floor((0,eo.Z)(new Date(l),new Date(o))/24),T=[o,(0,er.Z)(new Date(o),1).toString(),l],B=[(0,el.Z)(new Date(o)),(0,el.Z)((0,er.Z)(new Date(o),1)),(0,el.Z)(new Date(l))],[R,F]=(0,v.useState)(!1),P=(0,v.useRef)(null),[I,U]=(0,v.useState)(!1),[z,G]=(0,v.useState)({x:-100,y:-100}),[X,W]=(0,v.useState)(new Date().toString()),[V,Y]=(0,v.useState)(!1),J=(0,v.useRef)(null),q=c?Math.max((0,eo.Z)(new Date(c),new Date(o))/24,0):0,K=Math.max((0,eo.Z)(new Date(l),new Date)/24,0);(0,v.useEffect)(()=>{R||p(null)},[R]),(0,v.useEffect)(()=>{var e,t;if(!R)return;let a=null==P?void 0:null===(t=P.current)||void 0===t?void 0:null===(e=t.getBoundingClientRect())||void 0===e?void 0:e.width;a&&(null==J?void 0:J.current)&&(J.current.style.width=a/O+"px")},[R,O]),(0,v.useEffect)(()=>{let e=e=>{var t,a,n,s,l,i;if(!P.current||!R||!I)return;let d=P.current.getBoundingClientRect().width,m=d/O,u=P.current.getBoundingClientRect().left,h=u+d-m+1,x=P.current.getBoundingClientRect().top,v=Math.floor((e.clientX-(null==P?void 0:null===(a=P.current)||void 0===a?void 0:null===(t=a.getBoundingClientRect())||void 0===t?void 0:t.left)+m)/m),g=(0,eh.Z)((0,em.Z)(new Date(o),v)),y=g.toString();W(y);let f=(0,C.Z)(new Date(y),"MMM yyyy"),N=(null===(s=r[f])||void 0===s?void 0:null===(n=s.days[y])||void 0===n?void 0:n.notices)||[];p({data:{notices:N.map(e=>D[e]),outages:(null===(i=r[f])||void 0===i?void 0:null===(l=i.days[y])||void 0===l?void 0:l.outages)||[],didntStart:g>=new Date||g<new Date(c),formattedDate:(0,C.Z)(g,M,{locale:S[j("dateLocale")]}),dateInFuture:(0,eu.Z)(new Date(g)),tooltipDate:new Date(g)},show90daysAgo:w.maxHistoryDays>-1,nextPage:H,page:b}),N.length?(Y(!0),G({x:h-(m*(O-v)+1),y:x})):(Y(!1),G({x:Math.min(Math.max(e.clientX-5,u),h),y:x}))};return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}},[P,R,I]);let $=u||ed.default;return(0,h.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"simple-colors-history-desktop",children:[(0,h.jsxs)("div",{className:"uptime",onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[(0,h.jsxs)("div",{ref:P,className:"uptime-bar-wrapper",onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1),children:[(0,h.jsxs)("div",{className:"uptime-bar","aria-hidden":y?"false":"true",style:{"--days-length-responsive":O,"--days-length":O,"--day-didnt-start-days":K,"--component-didnt-start-days":q},children:[[...Array(O+1)].map((e,t)=>(0,h.jsx)(eB,{startDate:o,i:t,days:r,right:t,readUptimeBars:y,bgColor:m,isHovered:R&&X===(0,eh.Z)((0,em.Z)(new Date(o),t)).toString()},"".concat(i,"-").concat(t))),K>0&&(0,h.jsx)("div",{className:"day-idle-days"}),q>0&&(0,h.jsx)("div",{className:"component-idle-days"}),(0,h.jsx)("div",{className:"bar-overlay"}),R&&(0,h.jsx)("div",{ref:J,className:"h-[36px] bg-white dark:bg-black cursor-crosshair z-10 fixed bg-opacity-50 dark:bg-opacity-25",style:{left:V?(null==z?void 0:null===(a=z.x)||void 0===a?void 0:a.toString())+"px":(null==z?void 0:null===(t=z.x)||void 0===t?void 0:t.toString())+"px",top:(null==z?void 0:null===(n=z.y)||void 0===n?void 0:n.toString())+"px"}})]}),y&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(s=j("reachedTheEndOfUptimeGraph"))||void 0===s?void 0:s.replace("{{component}}",f)})})]}),R&&x]}),(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)("svg",{preserveAspectRatio:"none",viewBox:"0 0 ".concat(7*O-1," 20"),style:{width:"100%"},children:T.map((e,t,a)=>(L+=0===t?0:B[t-1],(0,h.jsxs)("text",{x:0===t?12+7*t:7*L,y:13,height:20,width:60,className:"text-xs",children:[0===t||0===(0,ei.Z)(new Date(e))?(0,C.Z)(new Date(e),E,{locale:k})+" ":(0,C.Z)(new Date(e),E.replaceAll("Y","").replaceAll("y",""),{locale:k}),"\xb7"," "+(d[(0,ei.Z)((0,er.Z)(new Date(o),t))]||"100"),"%"]},e)))}),(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uptime-days uptime-months left",children:(0,h.jsx)($,{href:"/history/".concat(H),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{rel:H>3?"nofollow":"",className:"group incidents-montly__prev",style:{pointerEvents:"DASHBOARD"===N?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -ml-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:H===b,isLeft:!0}),(0,h.jsx)("p",{className:"sr-only",children:"Previous page"})]})})})}),(0,h.jsx)("span",{className:"uptime-days uptime-months right",children:(0,h.jsx)($,{href:1===b?"/":"/history/".concat(b-1),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{className:"group incidents-monthly__next",style:{pointerEvents:"DASHBOARD"===N?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -mr-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!1}),(0,h.jsx)("p",{className:"sr-only",children:"Next page"})]})})})})]})]})]})},eF=e=>{let{bgColor:t,startDate:a,endDate:n,componentUptime:s,id:r,componentStartDate:o,days:l,context:i,readUptimeBars:d,componentName:c}=e,{site:m,t:u,language:p}=i,x=S[u("dateLocale")],v=ep(null==m?void 0:m.dateFormatShortTranslation,p,null==m?void 0:m.dateFormatShort);m.maxHistoryDays&&0!==m.maxHistoryDays&&m.maxHistoryDays;let g=[a,(0,er.Z)(new Date(a),1).toString(),n],y=[(0,el.Z)(new Date(a)),(0,el.Z)((0,er.Z)(new Date(a),1)),(0,el.Z)(new Date(n))],f=0,w=Math.floor((0,eo.Z)(new Date(n),new Date(a))/24),j=o?Math.max((0,eo.Z)(new Date(o),new Date(a))/24,0):0,b=Math.max((0,eo.Z)(new Date(n),new Date)/24,0);return(0,h.jsx)("div",{className:"simple-colors-history-mobile",children:g.map((e,n,o)=>{var i;return f+=0===n?0:y[n-1],(0,h.jsxs)("div",{className:"mb-2 month-uptime",children:[(0,h.jsxs)("div",{className:"uptime-bar-wrapper",children:[(0,h.jsxs)("div",{className:"uptime-bar","aria-hidden":d?"false":"true",style:{"--days-length-responsive":w,"--days-length":w,"--day-didnt-start-days":b,"--component-didnt-start-days":j},children:[[...Array(w+1)].map((e,n)=>(0,h.jsx)(eB,{startDate:a,i:n,days:l,right:n,readUptimeBars:d,bgColor:t},"".concat(r,"-").concat(n))),b>0&&(0,h.jsx)("div",{className:"day-idle-days"}),j>0&&(0,h.jsx)("div",{className:"component-idle-days"}),(0,h.jsx)("div",{className:"bar-overlay"})]}),d&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(i=u("reachedTheEndOfUptimeGraph"))||void 0===i?void 0:i.replace("{{component}}",c)})})]}),(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uppercase",children:(0,C.Z)(new Date(e),v,{locale:x})}),(0,h.jsx)("span",{className:"font-medium",children:"".concat(s[(0,ei.Z)((0,er.Z)(new Date(a),n))]||100,"% ").concat(u("uptime"))})]})]},e)})})},eP=e=>{var t,a,n,s,r;let{days:o,id:l,componentStartDate:i,bgColor:d,customLinkComponent:c,setTooltipProps:m,customTooltipComponent:u,context:p,startDate:x,endDate:g,readUptimeBars:f,componentName:w}=e,{site:j,t:b,notices:D,app:N,language:Z}=p,k=Math.ceil((0,eo.Z)(new Date(g),new Date(x))/24),M=ep(null==j?void 0:j.dateFormatTranslation,Z,null==j?void 0:j.dateFormat),[E,A]=(0,v.useState)(k),_=k<E?k:E,H=ew(),[L,O]=(0,v.useState)(!1),T=(0,v.useRef)(null),[B,R]=(0,v.useState)(!1),[F,P]=(0,v.useState)({x:-100,y:-100}),[I,U]=(0,v.useState)(new Date().toString()),[z,G]=(0,v.useState)(!1),X=(0,v.useRef)(null),W=i?Math.max((0,eo.Z)(new Date(i),new Date(x))/24,0):0;(0,v.useEffect)(()=>{H<580?A(30):H<820?A(60):A(90)},[H]),(0,v.useEffect)(()=>{L||m(null)},[L]),(0,v.useEffect)(()=>{var e,t;if(!L)return;let a=null==T?void 0:null===(t=T.current)||void 0===t?void 0:null===(e=t.getBoundingClientRect())||void 0===e?void 0:e.width;a&&(null==X?void 0:X.current)&&(X.current.style.width=a/_+"px")},[L,_]),(0,v.useEffect)(()=>{let e=e=>{var t,a,n,s,r,l;if(!T.current||!L||!B)return;let d=T.current.getBoundingClientRect().width,c=d/_,u=T.current.getBoundingClientRect().left,h=u+d-c+1,p=T.current.getBoundingClientRect().top,v=Math.floor((e.clientX-(null==T?void 0:null===(a=T.current)||void 0===a?void 0:null===(t=a.getBoundingClientRect())||void 0===t?void 0:t.left)+c)/c)+(k-_),g=(0,eh.Z)((0,em.Z)(new Date(x),v)),y=g.toString();U(y);let f=(0,C.Z)(new Date(y),"MMM yyyy"),w=(null===(s=o[f])||void 0===s?void 0:null===(n=s.days[y])||void 0===n?void 0:n.notices)||[];m({data:{notices:w.map(e=>D[e]),didntStart:g<new Date(i),formattedDate:(0,C.Z)(g,M,{locale:S[b("dateLocale")]}),outages:(null===(l=o[f])||void 0===l?void 0:null===(r=l.days[y])||void 0===r?void 0:r.outages)||[],tooltipDate:g},show90daysAgo:j.maxHistoryDays>-1,uptimeBarNumDays:_}),w.length?(G(!0),P({x:h-(c*(k-v)+1),y:p})):(G(!1),P({x:Math.min(Math.max(e.clientX-5,u),h),y:p}))};return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}},[T,L,B]);let V=c||ed.default;return(0,h.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"simple-colors-home",children:[(0,h.jsxs)("div",{className:"uptime",onClick:e=>e.stopPropagation(),onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:[(0,h.jsxs)("div",{ref:T,className:"uptime-bar-wrapper",onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:[(0,h.jsxs)("div",{"aria-hidden":f?"false":"true",className:"uptime-bar ".concat(y()({"h-[36px]":30!==k,"h-[24px]":30===k})),style:{"--days-length-responsive":_,"--days-length":k,"--component-didnt-start-days":W},children:[[...Array(k+1)].map((e,t)=>(0,h.jsx)(eB,{startDate:x,i:t,days:o,right:t,readUptimeBars:f,isHovered:L&&I===(0,eh.Z)((0,em.Z)(new Date(x),t)).toString(),bgColor:d},"".concat(l,"-").concat(t))),W>0&&(0,h.jsx)("div",{className:"idle-days"}),(0,h.jsx)("div",{className:"bar-overlay"}),L&&(0,h.jsx)("div",{ref:X,className:"h-[36px] bg-white dark:bg-black cursor-crosshair z-10 fixed bg-opacity-50 dark:bg-opacity-25",style:{left:z?(null==F?void 0:null===(a=F.x)||void 0===a?void 0:a.toString())+"px":(null==F?void 0:null===(t=F.x)||void 0===t?void 0:t.toString())+"px",top:(null==F?void 0:null===(n=F.y)||void 0===n?void 0:n.toString())+"px"}})]}),f&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(s=b("reachedTheEndOfUptimeGraph"))||void 0===s?void 0:s.replace("{{component}}",w)})})]}),L&&u]}),j.maxHistoryDays>-1&&(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)(V,{href:"/history/1","aria-label":"".concat(b("noticeHistory")," ").concat(null===(r=b("numDaysAgo"))||void 0===r?void 0:r.replace("{{num}}",_)),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsxs)("a",{className:"group incidents-monthly__prev ",style:{pointerEvents:"DASHBOARD"===N?"none":"auto"},children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!0}),(0,h.jsx)("span",{className:"sr-only",children:"Full History"}),(0,h.jsx)("span",{className:"ml-2","aria-hidden":"true",children:b("numDaysAgo").replace("{{num}}",_)})]})}),(0,h.jsx)("div",{"aria-hidden":"true",children:b("today")})]}),-1===j.maxHistoryDays&&(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)("div",{className:"group incidents-monthly__prev",children:(0,h.jsx)("span",{children:b("numDaysAgo").replace("{{num}}",_)})}),(0,h.jsx)("div",{"aria-hidden":"true",children:b("today")})]})]})};a(34365);var eI=e=>{let{componentStartDate:t,isHistory:a,days:n,startDate:s,endDate:r,id:o,componentUptime:l,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,componentName:u}=e,{site:p}=m,{okColor:x,disruptedColor:g,degradedColor:y,downColor:f,unknownColor:w,noticeColor:j,launchDate:b,language:D}=p,N=eb(D),[Z,k]=(0,v.useState)(!1),M=(0,v.useCallback)(e=>{var a,s,r,o,l;let i=(0,C.Z)(new Date(e),"MMM yyyy"),d=(null===(a=n[i])||void 0===a?void 0:a.days[e])&&(null===(s=n[i])||void 0===s?void 0:s.days[e].outages.length)!==0;return b&&new Date(e).setHours(0,0,0,0)<new Date(b).setHours(0,0,0,0)||t&&new Date(e).setHours(0,0,0,0)<new Date(t).setHours(0,0,0,0)||new Date().setHours(0,0,0,0)<new Date(e).setHours(0,0,0,0)?w:(null===(r=n[i])||void 0===r?void 0:r.days[e])&&(null===(o=n[i])||void 0===o?void 0:o.days[e].outages.length)!==0&&d?es({outages:null===(l=n[i])||void 0===l?void 0:l.days[e].outages,okColor:x,disruptedColor:g,downColor:f,degradedColor:y,noticeColor:j}):x},[n,y,g,f,b,j,x,w,t]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{className:"sr-only",onClick:e=>{e.stopPropagation(),k(e=>!e)},children:"".concat(N(Z?"skipUptimeGraph":"readUptimeGraph")," ").concat(N("for")," ").concat(u)}),a?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eR,{days:n,startDate:s,endDate:r,id:o,componentUptime:l,componentStartDate:t,bgColor:M,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,readUptimeBars:Z,componentName:u}),(0,h.jsx)(eF,{bgColor:M,startDate:s,endDate:r,componentUptime:l,componentStartDate:t,id:o,days:n,context:m,readUptimeBars:Z,componentName:u})]}):(0,h.jsx)(eP,{days:n,id:o,componentStartDate:t,bgColor:M,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,startDate:s,endDate:r,readUptimeBars:Z,componentName:u})]})};let eU=(e,t,a)=>Math.min(Math.max(e,t),a),ez=(e,t,a,n,s,r,o)=>{if("UNDERMAINTENANCE"===e.status)return V(t||"#33B17E","#000000",.4);switch(e.status){case"OPERATIONAL":return V(t||"#33B17E","#000000",.4);case"DEGRADEDPERFORMANCE":return n||"#ECC94B";case"PARTIALOUTAGE":return a||"#FF8C03";case"MAJOROUTAGE":return s||"#DC123D"}return o||"#FF8C03"},eG=function(e,t,a){let n,s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=new Date((0,eZ.Z)(new Date(e.from),new Date(t))?e.from:t),s=e.to?(0,eZ.Z)(new Date(e.to),new Date(t))?new Date(e.to):(0,eN.Z)(new Date(t)):(0,eZ.Z)(Date.now(),new Date(t))?new Date:(0,eN.Z)(new Date(t));let o=Math.log((0,G.Z)(s,n)/60+1)/Math.log(7);return 40===a?o*=40:o*=24,eU(o,r?20:7,a-.7)};var eX=e=>{let{day:t,outages:a,maxHeight:n,isHovered:s,current:r=!1,right:o,site:l,readUptimeBars:i}=e,d=r&&30===l.maxUptimeDays,c=a.map(e=>({...e,height:eG(e,t,n,d),color:ez(e,l.okColor,l.disruptedColor,l.degradedColor,l.downColor,l.noticeColor,l.unknownColor)}));return c.sort((e,t)=>t.height==e.height?ea(e.status)-ea(t.status):t.height-e.height),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{tabIndex:i?-1:void 0,"aria-label":"".concat(a.length," ").concat(a.length>1?"issues":"issue"),className:y()("simple-length-main-bar",o&&"right"),style:{"--r":o}}),c.map(e=>{let t;return t=Math.ceil(e.height)==n?0:d?2:4,(0,h.jsx)("div",{style:{"--r":o,"--y":+(n-e.height-.7).toFixed(3)+"px","--rad":t+"px","--h":+(e.height+4).toFixed(3)+"px","--bg":e.color},className:"component__notice-bar__upper simple-length ".concat(y()(o&&"right",s&&"hovered",{"-translate-y-[1px]":s&&e.height>=n-4,"-translate-y-[4px]":s&&e.height<n-4}))},e.id)})]})},eW=e=>{var t,a;let{startDate:n,i:s,days:r,height:o,current:l=!1,isHovered:i=!1,right:d,site:c,readUptimeBars:m}=e,u=(0,eh.Z)((0,em.Z)(new Date(n),s)).toString(),p=null===(a=r[(0,C.Z)(new Date(u),"MMM yyyy")])||void 0===a?void 0:null===(t=a.days[u])||void 0===t?void 0:t.outages,x=p&&0!==p.length;return(0,h.jsx)(h.Fragment,{children:x&&(0,h.jsx)(eX,{day:u,isHovered:i,outages:p||[],maxHeight:o,current:l,right:d,site:c,readUptimeBars:m})})},eV=e=>{var t,a,n,s;let{days:r,startDate:o,endDate:l,id:i,componentUptime:d,componentStartDate:c,customLinkComponent:m,setTooltipProps:u,customTooltipComponent:p,context:x,readUptimeBars:g,componentName:y}=e,{site:f,t:w,page:j,notices:b,app:D,language:N}=x,Z=S[w("dateLocale")],k=0;f.maxHistoryDays&&0!==f.maxHistoryDays&&(k=f.maxHistoryDays/30/3);let M=0===k?50:k,E=j+1>M?M:j+1,A=0,_=ep(null==f?void 0:f.dateFormatShortTranslation,N,null==f?void 0:f.dateFormatShort),H=Math.floor((0,eo.Z)(new Date(l),new Date(o))/24),L=[o,(0,er.Z)(new Date(o),1).toString(),l],O=[(0,el.Z)(new Date(o)),(0,el.Z)((0,er.Z)(new Date(o),1)),(0,el.Z)(new Date(l))],[T,B]=(0,v.useState)(!1),R=(0,v.useRef)(null),[F,P]=(0,v.useState)(!1),[I,U]=(0,v.useState)({x:-100,y:-100}),[z,G]=(0,v.useState)(new Date().toString()),[X,W]=(0,v.useState)(!1),V=(0,v.useRef)(null),Y=c?Math.max((0,eo.Z)(new Date(c),new Date(o))/24,0):0,J=Math.max((0,eo.Z)(new Date(l),new Date)/24,0),q=ep(null==f?void 0:f.dateFormatTranslation,N,null==f?void 0:f.dateFormat);(0,v.useEffect)(()=>{T||u(null)},[T]),(0,v.useEffect)(()=>{var e,t;if(!T)return;let a=null==R?void 0:null===(t=R.current)||void 0===t?void 0:null===(e=t.getBoundingClientRect())||void 0===e?void 0:e.width;a&&(null==V?void 0:V.current)&&(V.current.style.width=a/H+"px")},[T,H]),(0,v.useEffect)(()=>{let e=e=>{var t,a,n,s,l,i;if(!R.current||!T||!F)return;let d=R.current.getBoundingClientRect().width,m=d/H,h=R.current.getBoundingClientRect().left,p=h+d-m+1,x=R.current.getBoundingClientRect().top,v=Math.floor((e.clientX-(null==R?void 0:null===(a=R.current)||void 0===a?void 0:null===(t=a.getBoundingClientRect())||void 0===t?void 0:t.left)+m)/m),g=(0,eh.Z)((0,em.Z)(new Date(o),v)),y=g.toString();G(y);let D=(0,C.Z)(new Date(y),"MMM yyyy"),N=(null===(s=r[D])||void 0===s?void 0:null===(n=s.days[y])||void 0===n?void 0:n.notices)||[];u({data:{notices:N.map(e=>b[e]),didntStart:g>=new Date||g<new Date(c),formattedDate:(0,C.Z)(g,q,{locale:S[w("dateLocale")]}),dateInFuture:(0,eu.Z)(new Date(g)),tooltipDate:new Date(g),outages:(null===(i=r[D])||void 0===i?void 0:null===(l=i.days[y])||void 0===l?void 0:l.outages)||[]},show90daysAgo:f.maxHistoryDays>-1,nextPage:E,page:j}),N.length?(W(!0),U({x:p-(m*(H-v)+1),y:x})):(W(!1),U({x:Math.min(Math.max(e.clientX-5,h),p),y:x}))};return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}},[R,T,F]);let K=m||ed.default;return(0,h.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"simple-length-history-desktop",children:[(0,h.jsxs)("div",{className:"uptime",onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),children:[(0,h.jsxs)("div",{ref:R,className:"uptime-bar-wrapper",onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:[(0,h.jsxs)("div",{className:"uptime-bar","aria-hidden":g?"false":"true",style:{"--days-length-responsive":H,"--days-length":H,"--day-didnt-start-days":J,"--component-didnt-start-days":Y},children:[[...Array(H+1)].map((e,t)=>(0,h.jsx)(eW,{startDate:o,i:t,days:r,height:40,right:t,readUptimeBars:g,isHovered:T&&z===(0,eh.Z)((0,em.Z)(new Date(o),t)).toString(),site:f},"".concat(i,"-").concat(t))),J>0&&(0,h.jsx)("div",{className:"day-idle-days"}),Y>0&&(0,h.jsx)("div",{className:"component-idle-days"}),(0,h.jsx)("div",{className:"bar-overlay"}),T&&(0,h.jsx)("div",{ref:V,className:"h-[38px] bg-white dark:bg-black cursor-crosshair z-10 fixed bg-opacity-50 dark:bg-opacity-25",style:{left:X?(null==I?void 0:null===(a=I.x)||void 0===a?void 0:a.toString())+"px":(null==I?void 0:null===(t=I.x)||void 0===t?void 0:t.toString())+"px",top:(null==I?void 0:null===(n=I.y)||void 0===n?void 0:n.toString())+"px"}})]}),g&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(s=w("reachedTheEndOfUptimeGraph"))||void 0===s?void 0:s.replace("{{component}}",y)})})]}),T&&p]}),(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)("svg",{preserveAspectRatio:"none",viewBox:"0 0 ".concat(7*H-1," 20"),style:{width:"100%"},children:L.map((e,t,a)=>(A+=0===t?0:O[t-1],(0,h.jsxs)("text",{x:0===t?12+7*t:7*A,y:13,height:20,width:60,className:"text-xs",children:[0===t||0===(0,ei.Z)(new Date(e))?(0,C.Z)(new Date(e),_,{locale:Z})+" ":(0,C.Z)(new Date(e),_.replaceAll("Y","").replaceAll("y",""),{locale:Z}),"\xb7"," "+(d[(0,ei.Z)((0,er.Z)(new Date(o),t))]||"100"),"%"]},e)))}),(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uptime-days uptime-months left",children:(0,h.jsx)(K,{href:"/history/".concat(E),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{rel:E>3?"nofollow":"",className:"group incidents-monthly__prev",style:{pointerEvents:"DASHBOARD"===D?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -ml-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:E===j,isLeft:!0}),(0,h.jsx)("p",{className:"sr-only",children:"Previous page"})]})})})}),(0,h.jsx)("span",{className:"uptime-days uptime-months right",children:(0,h.jsx)(K,{href:1===j?"/":"/history/".concat(j-1),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{className:"group incidents-monthly__next",style:{pointerEvents:"DASHBOARD"===D?"none":"auto"},children:(0,h.jsxs)("div",{className:"p-2 -my-[4px] -mr-[2px]",children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!1}),(0,h.jsx)("p",{className:"sr-only",children:"Next page"})]})})})})]})]})]})},eY=e=>{let{bgColor:t,startDate:a,endDate:n,componentUptime:s,componentStartDate:r,days:o,id:l,context:i,readUptimeBars:d,componentName:c}=e,{site:m,t:u,language:p}=i,x=S[u("dateLocale")],v=ep(null==m?void 0:m.dateFormatShortTranslation,p,null==m?void 0:m.dateFormatShort);m.maxHistoryDays&&0!==m.maxHistoryDays&&m.maxHistoryDays;let g=[a,(0,er.Z)(new Date(a),1).toString(),n],y=[(0,el.Z)(new Date(a)),(0,el.Z)((0,er.Z)(new Date(a),1)),(0,el.Z)(new Date(n))],f=0,w=Math.floor((0,eo.Z)(new Date(n),new Date(a))/24),j=r?Math.max((0,eo.Z)(new Date(r),new Date(a))/24,0):0,b=Math.max((0,eo.Z)(new Date(n),new Date)/24,0);return(0,h.jsx)("div",{className:"simple-length-history-mobile",children:g.map((e,t,n)=>{var r;return f+=0===t?0:y[t-1],(0,h.jsxs)("div",{className:"mb-2 month-uptime",children:[(0,h.jsxs)("div",{className:"uptime-bar-wrapper",children:[(0,h.jsxs)("div",{className:"uptime-bar","aria-hidden":d?"false":"true",style:{"--days-length-responsive":w,"--days-length":w,"--day-didnt-start-days":b,"--component-didnt-start-days":j},children:[[...Array(w+1)].map((e,t)=>(0,h.jsx)(eW,{startDate:a,i:t,days:o,height:12,right:t,site:m,readUptimeBars:d},"".concat(l,"-").concat(t))),b>0&&(0,h.jsx)("div",{className:"day-idle-days"}),j>0&&(0,h.jsx)("div",{className:"component-idle-days"}),(0,h.jsx)("div",{className:"bar-overlay"})]}),d&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(r=u("reachedTheEndOfUptimeGraph"))||void 0===r?void 0:r.replace("{{component}}",c)})})]}),(0,h.jsxs)("div",{className:"months-ago",children:[(0,h.jsx)("span",{className:"uppercase",children:(0,C.Z)(new Date(e),v,{locale:x})}),(0,h.jsx)("span",{className:"font-medium",children:"".concat(s[(0,ei.Z)((0,er.Z)(new Date(a),t))]||100,"% ").concat(u("uptime"))})]})]},e)})})},eJ=e=>{var t,a,n,s,r;let{days:o,id:l,componentStartDate:i,customLinkComponent:d,setTooltipProps:c,customTooltipComponent:m,context:u,startDate:p,endDate:x,readUptimeBars:g,componentName:f}=e,{site:w,t:j,notices:b,language:D,app:N}=u,Z=Math.ceil((0,eo.Z)(new Date(x),new Date(p))/24),k=ep(null==w?void 0:w.dateFormatTranslation,D,null==w?void 0:w.dateFormat),[M,E]=(0,v.useState)(Z),A=Z<M?Z:M,_=ew(),[H,L]=(0,v.useState)(!1),O=(0,v.useRef)(null),[T,B]=(0,v.useState)(!1),[R,F]=(0,v.useState)({x:-100,y:-100}),[P,I]=(0,v.useState)(new Date().toString()),[U,z]=(0,v.useState)(!1),G=(0,v.useRef)(null),X=i?Math.max((0,eo.Z)(new Date(i),new Date(p))/24,0):0;(0,v.useEffect)(()=>{_<580?E(30):_<820?E(60):E(90)},[_]),(0,v.useEffect)(()=>{H||c(null)},[H]),(0,v.useEffect)(()=>{var e,t;if(!H)return;let a=null==O?void 0:null===(t=O.current)||void 0===t?void 0:null===(e=t.getBoundingClientRect())||void 0===e?void 0:e.width;a&&(null==G?void 0:G.current)&&(G.current.style.width=a/A+"px")},[H,A]),(0,v.useEffect)(()=>{let e=e=>{var t,a,n,s,r,l;if(!O.current||!H||!T)return;let d=O.current.getBoundingClientRect().width,m=d/A,u=O.current.getBoundingClientRect().left,h=u+d-m+1,x=O.current.getBoundingClientRect().top,v=Math.floor((e.clientX-(null==O?void 0:null===(a=O.current)||void 0===a?void 0:null===(t=a.getBoundingClientRect())||void 0===t?void 0:t.left)+m)/m)+(Z-A),g=(0,eh.Z)((0,em.Z)(new Date(p),v)),y=g.toString();I(y);let f=(0,C.Z)(new Date(y),"MMM yyyy"),D=(null===(s=o[f])||void 0===s?void 0:null===(n=s.days[y])||void 0===n?void 0:n.notices)||[];c({data:{notices:D.map(e=>b[e]),didntStart:g<new Date(i),formattedDate:(0,C.Z)(g,k,{locale:S[j("dateLocale")]}),outages:(null===(l=o[f])||void 0===l?void 0:null===(r=l.days[y])||void 0===r?void 0:r.outages)||[],tooltipDate:g},show90daysAgo:w.maxHistoryDays>-1,uptimeBarNumDays:A}),D.length?(z(!0),F({x:h-(m*(Z-v)+1),y:x})):(z(!1),F({x:Math.min(Math.max(e.clientX-5,u),h),y:x}))};return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}},[O,H,T]);let W=d||ed.default;return(0,h.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"simple-length-home",children:[(0,h.jsxs)("div",{className:"uptime",onClick:e=>e.stopPropagation(),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[(0,h.jsxs)("div",{ref:O,className:"uptime-bar-wrapper",onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),children:[(0,h.jsxs)("div",{"aria-hidden":g?"false":"true",className:"uptime-bar ".concat(y()({"h-[38px]":30!==Z,"h-[24px]":30===Z})),style:{"--days-length-responsive":A,"--days-length":Z,"--component-didnt-start-days":X},children:[[...Array(Z+1)].map((e,t)=>(0,h.jsx)(eW,{startDate:p,i:t,days:o,height:"40",readUptimeBars:g,current:!0,right:t,isHovered:H&&P===(0,eh.Z)((0,em.Z)(new Date(p),t)).toString(),site:w},"".concat(l,"-").concat(t))),X>0&&(0,h.jsx)("div",{className:"idle-days"}),(0,h.jsx)("div",{className:"bar-overlay"}),H&&(0,h.jsx)("div",{ref:G,className:"h-[38px] bg-white dark:bg-black cursor-crosshair z-10 fixed bg-opacity-50 dark:bg-opacity-25",style:{left:U?(null==R?void 0:null===(a=R.x)||void 0===a?void 0:a.toString())+"px":(null==R?void 0:null===(t=R.x)||void 0===t?void 0:t.toString())+"px",top:(null==R?void 0:null===(n=R.y)||void 0===n?void 0:n.toString())+"px"}})]}),g&&(0,h.jsx)("div",{className:"right-0 sr-only",children:(0,h.jsx)("p",{className:"absolute right-0",children:null===(s=j("reachedTheEndOfUptimeGraph"))||void 0===s?void 0:s.replace("{{component}}",f)})})]}),H&&m]}),w.maxHistoryDays>-1&&(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)(W,{href:"/history/1","aria-label":"".concat(j("noticeHistory")," ").concat(null===(r=j("numDaysAgo"))||void 0===r?void 0:r.replace("{{num}}",A)),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsxs)("a",{className:"group incidents-monthly__prev",style:{pointerEvents:"DASHBOARD"===N?"none":"auto"},children:[(0,h.jsx)(ec,{size:"small",disabled:!1,isLeft:!0}),(0,h.jsx)("span",{className:"sr-only",children:"Full History"}),(0,h.jsx)("span",{className:"ml-2","aria-hidden":"true",children:j("numDaysAgo").replace("{{num}}",A)})]})}),(0,h.jsx)("div",{"aria-hidden":"true",children:j("today")})]}),-1===w.maxHistoryDays&&(0,h.jsxs)("div",{className:"annotations-container",children:[(0,h.jsx)("div",{className:"group incidents-monthly__prev",children:(0,h.jsx)("span",{children:j("numDaysAgo").replace("{{num}}",A)})}),(0,h.jsx)("div",{"aria-hidden":"true",children:j("today")})]})]})};a(45261);var eq=e=>{let{componentStartDate:t,isHistory:a,days:n,startDate:s,endDate:r,id:o,componentUptime:l,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,componentName:u}=e,{site:p}=m,{okColor:x,disruptedColor:g,degradedColor:y,downColor:f,unknownColor:w,noticeColor:j,launchDate:b,language:D}=p,N=eb(D),[Z,k]=(0,v.useState)(!1),M=(0,v.useCallback)(e=>{var a,s,r,o,l;let i=(0,C.Z)(new Date(e),"MMM yyyy"),d=(null===(a=n[i])||void 0===a?void 0:a.days[e])&&(null===(s=n[i])||void 0===s?void 0:s.days[e].outages.length)!==0;return b&&new Date(e).setHours(0,0,0,0)<new Date(b).setHours(0,0,0,0)||t&&new Date(e).setHours(0,0,0,0)<new Date(t).setHours(0,0,0,0)||new Date().setHours(0,0,0,0)<new Date(e).setHours(0,0,0,0)?w:(null===(r=n[i])||void 0===r?void 0:r.days[e])&&(null===(o=n[i])||void 0===o?void 0:o.days[e].outages.length)!==0&&d?es({outages:null===(l=n[i])||void 0===l?void 0:l.days[e].outages,okColor:x,disruptedColor:g,downColor:f,degradedColor:y,noticeColor:j}):x},[n,y,g,f,b,j,x,w,t]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{className:"sr-only",onClick:e=>{e.stopPropagation(),k(e=>!e)},children:"".concat(N(Z?"skipUptimeGraph":"readUptimeGraph")," ").concat(N("for")," ").concat(u)}),a?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eV,{days:n,startDate:s,endDate:r,id:o,componentUptime:l,componentStartDate:t,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,readUptimeBars:Z,componentName:u}),(0,h.jsx)(eY,{days:n,bgColor:M,startDate:s,endDate:r,componentUptime:l,componentStartDate:t,id:o,context:m,readUptimeBars:Z,componentName:u})]}):(0,h.jsx)(eJ,{days:n,id:o,componentStartDate:t,customLinkComponent:i,setTooltipProps:d,customTooltipComponent:c,context:m,startDate:s,endDate:r,readUptimeBars:Z,componentName:u})]})},eK=e=>{let{site:t}=e.context;return"BARS"===t.uptimeDaysDisplay&&"COLORS"===t.uptimeOutageDisplay?(0,h.jsx)(eD,{...e}):"BARS"===t.uptimeDaysDisplay&&"LENGTH"===t.uptimeOutageDisplay?(0,h.jsx)(eO,{...e}):"SIMPLE"===t.uptimeDaysDisplay&&"LENGTH"===t.uptimeOutageDisplay?(0,h.jsx)(eq,{...e}):"SIMPLE"===t.uptimeDaysDisplay&&"COLORS"===t.uptimeOutageDisplay?(0,h.jsx)(eI,{...e}):(0,h.jsx)("div",{})},e$=a(59866),eQ=a(60668),e0=a(67317);function e1(){return(e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}var e2=function(e){return A.createElement("svg",e1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),m||(m=A.createElement("circle",{cx:256,cy:272,r:16})),u||(u=A.createElement("path",{d:"M280 81.5V72a24 24 0 0 0-48 0v9.5a191 191 0 0 0-84.43 32.13L137 103a24 24 0 0 0-34 34l8.6 8.6A191.17 191.17 0 0 0 64 272c0 105.87 86.13 192 192 192s192-86.13 192-192c0-97.74-73.42-178.66-168-190.5zM256 320a48 48 0 0 1-16-93.25V152a16 16 0 0 1 32 0v74.75A48 48 0 0 1 256 320z"})))},e3=a(74688),e5=e=>{let{incident:t,language:a,t:n}=e,s=S[n("dateLocale")],r=t.resolved?(0,e3.Z)(new Date(t.resolved),new Date(t.started),{locale:s}):null;return(0,h.jsx)("span",{className:"dark:text-gray-300",children:r?"".concat(n("resolvedAfter")," ").concat(r):""})},e4=a(41387);let e6=e=>{var t;let{item:a,highlight:n}=e,{site:s,language:r}=(0,v.useContext)(f.D),o=(0,j.Z)(r),{skin:l}=s,i=(0,O.Z)(a.nameTranslation,r,a.name);return(0,h.jsx)("div",{className:"w-full incident-details ".concat(y()({"opacity-100":n,"opacity-50":!n})),children:(0,h.jsx)(Z.Z,{href:"/".concat(a.id),legacyBehavior:!0,children:(0,h.jsx)("a",{className:"inline-block w-full py-2 leading-none group incident-details__title ",children:(0,h.jsxs)("div",{className:"flex items-center justify-between w-full mx-auto text-sm text-left text-gray-800 group-hover:text-black dark:text-gray-200 dark:group-hover:text-white",children:[(0,h.jsxs)("div",{className:"flex z-30 bg-white pr-3 max-w-[50%] mr-2 md:max-w-[60%] items-center\n            ".concat(y()({"dark:bg-gray-950":"stormtrooper"!==l,"dark:bg-black":"stormtrooper"===l})),children:[(0,h.jsx)(N.Z,{value:a.impact}),(0,h.jsx)("span",{className:"inline-block w-full ml-2 font-semibold mb-0.5 rtl:mr-1",children:i})]}),(0,h.jsx)("hr",{className:"absolute z-10 hidden w-11/12 border-t border-gray-200 sm:block dark:border-gray-900 left-8"}),(0,h.jsxs)("div",{className:"relative z-30 flex justify-end pl-3 bg-white -mr-1\n            ".concat(y()({"dark:bg-gray-950":"stormtrooper"!==l,"dark:bg-black":"stormtrooper"===l})),children:["RESOLVED"===a.status?(0,h.jsx)("div",{className:"z-30 flex justify-end mr-1 font-semibold text-right md:text-left sm:mr-2 min-w-fit",children:(0,h.jsx)(e5,{incident:a,language:r,t:o})}):(0,h.jsx)("div",{className:"z-30 mr-2 font-semibold text-right min-w-fit md:text-left",children:o(null===(t=e4.Z.filter(e=>e.value===a.status)[0])||void 0===t?void 0:t.value.toLowerCase())}),(0,h.jsx)("div",{children:(0,h.jsx)(F.Z,{className:"w-5 h-5 text-gray-400 fill-current dark:text-gray-600 group-hover:text-black dark:group-hover:text-white"})})]})]})})})})};var e7=a(6071),e8=a(49984),e9=a(74421);let te=e=>{let{item:t,highlight:a}=e,{site:n,language:s}=(0,v.useContext)(f.D),r=(0,j.Z)(s),{skin:o}=n,l=(0,O.Z)(t.nameTranslation,s,t.name),i=S[r("dateLocale")],d=t.resolved?(0,e3.Z)(new Date(t.resolved),new Date(t.start),{locale:i}):(0,e8.Z)((0,e7.Z)(new Date(t.start),t.duration||0),new Date(t.start),{locale:i});return(0,h.jsx)("div",{className:"w-full ".concat(y()({"opacity-100":a,"opacity-50":!a})),children:(0,h.jsx)(Z.Z,{href:"/".concat(t.id),legacyBehavior:!0,children:(0,h.jsx)("a",{className:"inline-block w-full py-2 leading-none group maintenance-details__title",children:(0,h.jsxs)("div",{className:"flex items-center justify-between w-full mx-auto text-sm text-left text-gray-800 group-hover:text-black dark:text-gray-200 dark:group-hover:text-white",children:[(0,h.jsxs)("div",{className:"z-30 flex items-center max-w-[50%] md:max-w-[60%] bg-white pr-3 ".concat(y()({"dark:bg-gray-950":"stormtrooper"!==o,"dark:bg-black":"stormtrooper"===o})),children:[(0,h.jsx)(N.Z,{value:"UNDERMAINTENANCE"}),(0,h.jsx)("span",{className:"ml-2 w-full inline-block font-semibold mb-0.5 rtl:mr-1",children:l})]}),(0,h.jsx)("hr",{className:"absolute z-10 hidden w-11/12 border-t border-gray-200 md:block dark:border-gray-900 left-8"}),(0,h.jsxs)("div",{className:"flex justify-end z-30 bg-white pl-3 -mr-1 dark:bg-black ".concat(y()({"dark:bg-gray-950":"stormtrooper"!==o,"dark:bg-black":"stormtrooper"===o})),children:[t.resolved?(0,h.jsx)("span",{className:"mr-2 font-semibold text-right md:text-left dark:text-gray-300",children:"".concat(r("resolvedAfter")," ").concat(d)}):(0,h.jsx)("div",{className:"mr-2 font-semibold text-right md:text-left rtl:ml-2 dark:text-gray-300",children:r(e9.Z.filter(e=>e.value===t.status)[0].value.toLowerCase())}),(0,h.jsx)("div",{children:(0,h.jsx)(F.Z,{className:"w-5 h-5 text-gray-400 fill-current dark:text-gray-600 group-hover:text-black dark:group-hover:text-white"})})]})]})})})})},tt=e=>{let{notices:t,activeNotices:a}=e;return(0,h.jsx)("div",{className:"flex flex-col items-start justify-center w-full h-full py-8 copmonent-uptime__incident-list",children:t.map((e,t)=>t<7&&(0,h.jsx)("div",{className:"w-full",children:e.start?(0,h.jsx)(te,{item:e,highlight:0===a.length||a.includes(e.id)}):(0,h.jsx)(e6,{item:e,highlight:0===a.length||a.includes(e.id)})},t))})};var ta=e=>{let{data:t,show90daysAgo:a,uptimeBarNumDays:n,nextPage:s,page:r}=e,{site:o,language:l}=(0,v.useContext)(f.D),i=(0,j.Z)(l),{formattedDate:d,didntStart:c,notices:m,outages:u,dateInFuture:p=!1,tooltipDate:x}=t,g=(0,eh.Z)(new Date(x)),b=(0,eN.Z)(new Date(x)),[D,k]=(0,v.useState)(void 0),M=null==u?void 0:u.reduce((e,t)=>{let a=w.O9.find(e=>e.value===t.status)||w.O9[1],n=w.O9.find(t=>t.value===e.status)||w.O9[1];return a.level>n.level?t:e},{status:"OPERATIONAL"}),E=D?D.outages.map(e=>e.noticeId):[];return(0,h.jsx)("div",{style:{perspective:"2000px"},className:y()("absolute z-30 flex justify-center w-[102.3%] px-2 ml-[-1.2%] animate-fadeIn border border-gray-100 bg-white shadow-lg min-h-[8.8rem] rounded-xl dark:border-transparent",30!==n?"top-9":"top-[22px]",{"dark:bg-gray-950":"stormtrooper"!==o.skin,"dark:bg-black":"stormtrooper"===o.skin}),children:(0,h.jsxs)("div",{id:"tooltip",className:"flex flex-col justify-between items-center w-full component-uptime",children:[a&&n&&(0,h.jsx)("div",{className:"relative mt-2 w-full text-sm text-gray-600 uppercase dark:text-gray-600",children:(0,h.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,h.jsx)(Z.Z,{href:"/history/1",onClick:e=>{e.stopPropagation()},legacyBehavior:!0,children:(0,h.jsxs)("a",{className:"hidden md:flex -mt-0.5 items-center w-1/3 text-gray-600 transition duration-150 ease-in-out group incidents-montly__prev hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-400",children:[(0,h.jsx)(e$.Z,{size:"small",disabled:!1,isLeft:!0}),(0,h.jsx)("span",{className:"ml-[0.487rem]",children:i("numDaysAgo").replace("{{num}}",n)})]})}),(0,h.jsx)("p",{className:"overflow-visible w-full font-medium tabular-nums text-center text-black uppercase md:w-1/3 dark:font-normal dark:text-gray-400",children:d}),(0,h.jsx)("div",{className:"hidden md:flex justify-end w-1/3 -mt-0.5",children:i("today")})]})}),a&&!n&&r&&(0,h.jsx)("div",{className:"relative mt-2 mb-3 w-full text-sm uppercase fill-gray-600 dark:fill-gray-600",children:(0,h.jsxs)("div",{className:"flex absolute top-0 justify-between items-center w-full months-ago",children:[(0,h.jsx)("span",{className:"inline-flex w-1/3 items-center uptime-days uptime-months relative -left-1.5",children:(0,h.jsx)(Z.Z,{href:"/history/".concat(s),onClick:e=>e.stopPropagation(),rel:s&&s>3?"nofollow":"",legacyBehavior:!0,children:(0,h.jsx)("a",{className:"text-blue-200 group incidents-montly__prev",children:(0,h.jsx)("div",{className:"p-2 -my-[8px] -ml-[0.130rem] -mt-[0.6rem]",children:(0,h.jsx)(e$.Z,{size:"small",disabled:s===r,isLeft:!0})})})})}),(0,h.jsx)("p",{className:"overflow-visible w-full font-medium tabular-nums text-center text-black uppercase md:w-1/3 dark:font-normal dark:text-gray-400",children:d}),(0,h.jsx)("span",{className:"inline-flex relative justify-end items-center w-1/3 uptime-days uptime-months",children:(0,h.jsx)(Z.Z,{href:1===r?"/":"/history/".concat(r-1),onClick:e=>e.stopPropagation(),legacyBehavior:!0,children:(0,h.jsx)("a",{className:"group incidents-monthly__next",children:(0,h.jsx)("div",{className:"p-2 -my-[8px] -mr-[0.55rem] -mt-[0.6rem]",children:(0,h.jsx)(e$.Z,{size:"small",disabled:!1,isLeft:!1})})})})})]})}),!a&&(0,h.jsx)("p",{className:"overflow-visible mt-2 w-40 text-sm font-semibold text-center text-black uppercase dark:text-gray-400",children:d}),c&&!p&&(0,h.jsxs)("div",{className:"flex flex-grow justify-center items-center w-full text-base text-gray-900 rtl:flex-row-reverse dark:text-gray-100",children:[(0,h.jsx)(e2,{className:"mr-1 w-6 h-6 text-gray-900 fill-current rtl:ml-1 dark:text-gray-100"}),(0,h.jsx)("strong",{className:"font-medium",children:i("didntStart")})]}),p&&(0,h.jsxs)("div",{className:"flex flex-grow justify-center items-center w-full text-base text-gray-900 rtl:flex-row-reverse dark:text-gray-100",children:[(0,h.jsx)(e2,{className:"mr-1 w-6 h-6 text-gray-900 fill-current rtl:ml-1 dark:text-gray-100"}),(0,h.jsx)("strong",{className:"font-medium",children:i("dayDidntStart")})]}),!c&&(null==u?void 0:u.length)===0&&(0,h.jsxs)("div",{className:y()("flex flex-grow justify-center items-center w-full h-full text-base text-gray-900 rtl:flex-row-reverse dark:text-gray-100",{"py-11 -mt-2":!r}),children:[(0,h.jsx)(e0.Z,{className:"mr-1 w-6 h-6 fill-current rtl:ml-1 text-ok"}),(0,h.jsx)("strong",{className:"font-medium",children:i("noDowntime")})]}),!c&&!!(null==m?void 0:m.length)&&(0,h.jsx)(tt,{notices:null==m?void 0:m.filter(Boolean),activeNotices:E}),!c&&!!(null==u?void 0:u.length)&&(null==m?void 0:m.length)===0&&(0,h.jsxs)("div",{className:y()("flex flex-grow justify-center items-center py-8 w-full h-full text-base text-gray-900 rtl:flex-row-reverse dark:text-gray-100",{"py-11 -mt-2":!r}),children:[(0,h.jsx)(N.Z,{value:M.status}),(0,h.jsx)("strong",{className:"ml-1 font-medium",children:i("noRelatedNotices")})]}),(0,h.jsxs)("div",{className:"flex relative items-center pb-4 w-full hover:cursor-pointer group",children:[D&&(0,h.jsxs)("div",{className:"flex overflow-visible absolute flex-row items-center -mt-4 pointer-events-none",style:{left:"".concat(D.x,"px")},children:[(0,h.jsx)("div",{className:"z-50 rounded-sm border border-[#CCCCCC] bg-[#CCCCCC] dark:border-[#808080] dark:bg-[#808080] h-12"}),(0,h.jsxs)("div",{className:"flex pb-7 pl-1 m-1 font-sans text-sm tabular-nums text-black whitespace-nowrap bg-white rounded-md dark:text-white dark:bg-black",children:[(0,C.Z)(D.outages[0]?new Date(D.outages[0].from):D.time,"h:mm a")," ",D.outages[0]&&" → ".concat((0,C.Z)(new Date(D.outages[0].to||new Date),"h:mm a"))]})]}),(0,h.jsx)("div",{className:"w-full",children:(0,h.jsx)(eQ.U,{outages:u||[],start:g,end:b,onOutageHover:k,className:"opacity-75 duration-150 ease-out hover:opacity-100"})})]})]})})},tn=e=>{var t,a,n,s,r,o,l,i;let d,{item:c,showGroupName:m=!1,isHistory:u,days:p,startDate:x,endDate:g}=e,y=(0,v.useContext)(f.D),{site:D,language:k}=y,[M,E]=(0,v.useState)(""),[C,S]=(0,v.useState)(null),A=(0,j.Z)(k),_=w.O9.find(e=>e.value===c.status)||w.O9[1],H=null===(t=p[c.id])||void 0===t?void 0:t.uptime,L=(0,O.Z)(c.nameTranslation,k,c.name),T=M||(0,O.Z)(c.nameHtmlTranslation,k,c.nameHtml)||L,B=(0,O.Z)(null==c?void 0:null===(a=c.group)||void 0===a?void 0:a.nameTranslation,k,null==c?void 0:null===(n=c.group)||void 0===n?void 0:n.name),P=(0,O.Z)(null==c?void 0:null===(s=c.group)||void 0===s?void 0:s.nameHtmlTranslation,k,null==c?void 0:null===(r=c.group)||void 0===r?void 0:r.nameHtml)||B,G=(0,O.Z)(null==c?void 0:c.descriptionTranslation,k,null==c?void 0:c.description),X=(0,O.Z)(null==c?void 0:c.descriptionHtmlTranslation,k,null==c?void 0:c.descriptionHtml)||G,W=c.startDate&&new Date(c.startDate)>new Date,V=!!D.launchDate,Y=!!c.startDate;return d=Y&&V?Math.max(c.startDate,D.launchDate):Y?c.startDate:V?new Date(D.launchDate):void 0,(0,h.jsxs)("div",{className:"component-item",children:[(0,h.jsxs)("div",{className:"component-item-wrapper",children:[(0,h.jsxs)("div",{className:"component-item-name-wrapper",children:[(0,h.jsx)(N.Z,{value:c.status,children:(0,h.jsxs)("div",{className:"relative flex items-center mb-px",children:[(0,h.jsx)("p",{className:"absolute inset-0 sr-only",children:"".concat(m&&B?B:L," - ").concat(A(_.label))}),(0,h.jsx)("div",{className:"relative",children:(0,h.jsx)(_.Icon,{className:"w-[22px] h-[22px] mr-1 rtl:ml-1",style:{color:"var(--".concat(_.color,"-color)"),fill:"var(--".concat(_.color,"-color)")}})}),(0,h.jsxs)("div",{className:"component-item__name",children:[m&&P&&(0,h.jsxs)("span",{className:"flex items-center",children:[(0,h.jsx)("span",{className:"truncate","aria-hidden":"true",dangerouslySetInnerHTML:{__html:P}}),"\xa0",(0,h.jsx)(F.Z,{className:"w-3 h-3 mx-1 fill-current"})]}),(0,h.jsx)("span",{"aria-hidden":"true",className:"truncate",dangerouslySetInnerHTML:{__html:T}}),c.isThirdParty&&(0,h.jsx)("a",{href:null==c?void 0:null===(o=c.thirdPartyComponentService)||void 0===o?void 0:o.statusPageUrl,target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation(),children:(0,h.jsx)(I,{className:"external-link-icon"})})]})]})}),W&&(0,h.jsx)(b.Z,{theme:"dark",placement:"right",content:(0,h.jsx)("p",{className:"p-2 text-base ",children:A("didntStart")}),children:(0,h.jsx)("div",{className:"component-item__info",children:(0,h.jsx)(U.Z,{})})}),!z(c.description)&&(0,h.jsx)(b.Z,{theme:"dark",placement:"right",content:(0,h.jsx)("p",{className:"p-2 text-base ",dangerouslySetInnerHTML:{__html:X}}),children:(0,h.jsx)("div",{className:"component-item__info",children:(0,h.jsx)(U.Z,{})})})]}),(0,h.jsxs)("div",{className:"flex",children:[(null==c?void 0:null===(l=c.metrics)||void 0===l?void 0:l.length)>0&&(0,h.jsx)(R,{metric:c.metrics[0],setMetricName:E}),_&&c.showUptime&&0!==D.maxUptimeDays&&(0,h.jsxs)("div",{className:"component-item__status flex items-center ".concat("OPERATIONAL"===c.status?"text-".concat(_.color):"text-gray-900 dark:text-gray-300"),children:[(0,h.jsx)("span",{className:"top-0 sr-only",children:"".concat(parseFloat(H).toFixed(0),"% - ").concat(A("uptime"))}),(0,h.jsx)("span",{"aria-hidden":"true",children:"".concat(H,"% ").concat(A("uptime"))})]}),_&&(!c.showUptime||0===D.maxUptimeDays)&&(0,h.jsx)("div",{"aria-hidden":"true",className:"component-item__status text-".concat(_.color," truncate"),children:A(_.label)})]})]}),c.showUptime&&D.maxUptimeDays>0&&(0,h.jsx)(eK,{id:c.id,days:(null===(i=p[c.id])||void 0===i?void 0:i.daysDictionary)||{},startDate:x,endDate:g,isHistory:u,componentStartDate:d,componentUptime:p[c.id],customLinkComponent:Z.Z,componentName:B||L||"",setTooltipProps:S,customTooltipComponent:C?(0,h.jsx)(ta,{...C}):null,context:{...y,app:"PAGE",t:A}})]},c.id)};let ts=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(e=>{(null==e?void 0:e.children)&&ts(e.children,t),t.push(e)}),t};var tr=e=>{console.log("collection",e);let t={},a=new Map,n=new Map;for(let s of ts(e))if(0!==s.children.length||n.has(null==s?void 0:s.name)||n.set(null==s?void 0:s.name,{id:null==s?void 0:s.id,name:null==s?void 0:s.name,order:null==s?void 0:s.order}),s.isParent&&(null==s?void 0:s.children)&&s.children.length>0){let e=s;a.has(null==e?void 0:e.name)||a.set(e.name,{id:null==e?void 0:e.id,name:null==e?void 0:e.name,order:null==e?void 0:e.order}),t[null==e?void 0:e.name]||(t[null==e?void 0:e.name]={}),e.children.forEach(a=>{t[null==e?void 0:e.name][a.name]={id:a.id,name:a.name,status:a.status,order:a.order,showUptime:a.showUptime,group:a.group,description:a.description,incidents:a.incidents}})}for(let n of e)a.forEach((e,a)=>{t[a][n.name]||(t[a][n.name]={})});return{data:t,groups:a,components:n}},to=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let[e,t]=(0,v.useState)({width:void 0,height:void 0});return(0,v.useEffect)(()=>{function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e};let tl=(e,t)=>e[1].order>t[1].order?1:t[1].order>e[1].order?-1:0;var ti=e=>{let{isHistory:t,days:a,components:n,startDate:s,endDate:r}=e,{site:o}=(0,v.useContext)(f.D),{groups:l,components:i,data:d}=tr(n),[c,m]=(0,v.useState)(980),[u,p]=(0,v.useState)(null),x=(0,v.useRef)(null),g=to();return(0,v.useEffect)(()=>{m(x.current?x.current.offsetWidth:980)},[g.width]),(0,h.jsxs)("div",{ref:x,className:"w-full text-sm ".concat(y()({"overflow-x-scroll":c<(i.size+2)*108})),children:[(0,h.jsxs)("div",{style:{minWidth:(i.size+2)*108},className:"relative mt-6 md:mt-8 component-group grid grid-cols-".concat(i.size+2),children:[(0,h.jsx)("div",{className:"col-span-2 py-4 bg-gray-900 rounded-tl-lg",children:"\xa0"}),Array.from(i).sort(tl).map((e,t)=>{let[a,n]=e;return(0,h.jsx)("div",{children:(0,h.jsx)("div",{className:"flex items-end justify-center py-4 text-center truncate bg-gray-900 text-white ".concat(y()({"rounded-tr-lg":t===i.size-1})),children:n.name})},t)}),Array.from(l).sort(tl).map((e,t)=>{let[a,n]=e;return(0,h.jsx)(h.Fragment,{children:Array.from(i).sort(tl).map((e,n)=>{let[s,r]=e;return(0,h.jsxs)(h.Fragment,{children:[0===n&&(0,h.jsx)("div",{className:"flex items-center truncate justify-start col-span-2 px-4 py-5 text-left bg-gray-50 border-b border-l border-r dark:border-gray-950 border-gray-200 dark:bg-gray-950 ".concat(y()({"rounded-bl-lg":t===l.size-1})),children:a}),d&&d[a]&&d[a][s]?(0,h.jsx)(D,{status:d[a][s].status,isLast:t===l.size-1&&n===i.size-1,selectedComponent:u,setSelectedComponent:p,component:d[a][s]}):(0,h.jsx)(D,{status:"",isLast:t===l.size-1&&n===i.size-1,selectedComponent:u,setSelectedComponent:p,component:""})]})})})})]}),(null==u?void 0:u.showUptime)&&(0,h.jsx)("div",{className:"w-full",children:(0,h.jsx)(tn,{showGroupName:!0,item:u,isHistory:t,days:a,startDate:s,endDate:r})}),(0,h.jsx)("div",{className:"hidden grid-cols-1 grid-cols-2 grid-cols-3 grid-cols-4 grid-cols-5 grid-cols-6 grid-cols-7 grid-cols-8 grid-cols-9 grid-cols-10 grid-cols-11 grid-cols-12"})]})},td=a(17337),tc=a(13246),tm=e=>{let t=w.O9.filter(e=>"OPERATIONAL"===e.value)[0];if(!e.length)return t;let a=ts(e),n=1;null==a||a.forEach(e=>{var t;if(e.isParent||(null===(t=e.children)||void 0===t?void 0:t.length)>0)return;let a=w.O9.filter(t=>t.value===e.status)[0];(null==a?void 0:a.level)>n&&(n=a.level)});let s=w.O9.filter(e=>e.level===n);return s&&0!==s.length?s[0]:t},tu=a(84143),th=e=>{let{group:t,activeIncidents:a,isHistory:n,days:s,startDate:r,endDate:o}=e,{language:l,site:i}=(0,v.useContext)(f.D),[d,c]=(0,v.useState)(t.isCollapsed),m=(0,tu.Z)(),u=t.children.sort(tc.Z),p=(0,j.Z)(l),x=tm(t.children),[g,w]=(0,v.useState)(!1),D=(0,O.Z)(t.nameTranslation,l,t.name),N=(0,O.Z)(t.nameHtmlTranslation,l,t.nameHtml)||D,Z=(0,O.Z)(t.descriptionTranslation,l,t.description),k=(0,O.Z)(t.descriptionHtmlTranslation,l,t.descriptionHtml)||Z;return(0,v.useEffect)(()=>{!g&&(w(!0),x&&"OPERATIONAL"!==x.value&&c(!1))},[g]),(0,h.jsxs)("div",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),c(!d)},className:y()("component-group group-simple",d&&"collapsed",{"dark:bg-white/[1%] shadow-component-parent":!d&&t.groupId,"mb-5":!t.groupId&&!d,"mb-3":t.groupId}),children:[(0,h.jsxs)("div",{className:"component-group ".concat(y()({"transition duration-100 ease-in-out":m,"mb-4 component-group__is-expanded":!d})),children:[(0,h.jsxs)("div",{role:"button",tabIndex:-1,className:"name-container",children:[(0,h.jsx)(td.Z,{className:"arrow ".concat(y()(d&&"collapsed",{"transition duration-150 ease-in-out transform":m}))}),(0,h.jsx)("div",{className:"font-medium leading-tight group-item__name",dangerouslySetInnerHTML:{__html:N}}),!z(k)&&(0,h.jsx)(b.Z,{theme:"dark",placement:"right",content:(0,h.jsx)("p",{className:"p-2 text-base ",dangerouslySetInnerHTML:{__html:k}}),children:(0,h.jsx)("div",{className:"-mt-px cursor-pointer component-item__info",children:(0,h.jsx)(U.Z,{className:"w-5 h-5 ml-1 text-gray-800 fill-current dark:text-gray-400"})})})]}),x&&(0,h.jsx)("div",{className:y()("component-item__status","OPERATIONAL"===x.value&&"ok"),children:p(x.label)})]}),(0,h.jsx)("div",{className:"component-group__list",children:!d&&u.map((e,t)=>e.children&&e.children.length>0?(0,h.jsx)(tx,{group:e,activeIncidents:a,isHistory:n,site:i,days:s,startDate:r,endDate:o}):(0,h.jsx)(tn,{item:e,isHistory:n,days:s,startDate:r,endDate:o},t))})]})},tp=e=>{var t,a,n;let{group:s,activeIncidents:r,isHistory:o,days:l,startDate:i,endDate:d}=e,c=(0,v.useContext)(f.D),{site:m,language:u}=c,p=(0,j.Z)(u),[x,g]=(0,v.useState)(s.isCollapsed),[w,D]=(0,v.useState)(null),N=(0,tu.Z)(),k=null===(t=s.children)||void 0===t?void 0:t.sort(tc.Z),M=tm(s.children),E=(0,O.Z)(s.nameTranslation,u,s.name),C=(0,O.Z)(s.nameHtmlTranslation,u,s.nameHtml)||E,S=(0,O.Z)(s.descriptionTranslation,u,s.description),A=(0,O.Z)(s.descriptionHtmlTranslation,u,s.descriptionHtml)||S,[_,H]=(0,v.useState)(!1),L=null===(a=s.children)||void 0===a?void 0:a.map(e=>e.startDate).filter(e=>null!=e),T=(null==L?void 0:L.length)>0?L.reduce((e,t)=>new Date(t)<new Date(e)?t:e):void 0;return(0,v.useEffect)(()=>{!_&&(H(!0),M&&"OPERATIONAL"!==M.value&&g(!1))},[_]),(0,h.jsxs)("div",{onClick:e=>{e.stopPropagation(),g(!x)},className:y()("component-group group-uptime",x&&"collapsed",{"dark:bg-white/[1%] shadow-component-parent":!x&&s.groupId,"mb-4":!s.groupId&&!x,"-mb-[1px]":!x&&s.groupId}),children:[(0,h.jsxs)("div",{className:"group-container",children:[(0,h.jsxs)("div",{className:y()("component-group",{"component-group__is-expanded mb-3":!x}),children:[(0,h.jsxs)("button",{className:"name-container",children:[(0,h.jsx)("p",{className:"sr-only",children:x?"Expand group":"Collapse group"}),(0,h.jsx)(td.Z,{className:"arrow ".concat(y()({"transition duration-150 ease-in-out transform":N,"rotate-90":!x,"rotate-0":x}))}),(0,h.jsx)("div",{className:"group-item__name",dangerouslySetInnerHTML:{__html:C}}),!z(A)&&(0,h.jsx)(b.Z,{theme:"dark",placement:"right",content:(0,h.jsx)("p",{className:"p-2 text-base ",dangerouslySetInnerHTML:{__html:A}}),children:(0,h.jsx)("div",{className:"ml-1 cursor-pointer component-item__info",children:(0,h.jsx)(U.Z,{className:"w-5 h-5 text-gray-800 fill-current dark:text-gray-400"})})})]}),M&&(0,h.jsxs)("div",{className:y()("relative component-item__status","OPERATIONAL"===M.value&&"ok"),children:[(0,h.jsx)("span",{className:"top-0 sr-only",children:"".concat(parseFloat(l[s.id].uptime).toFixed(0),"% - ").concat(p("uptime"))}),(0,h.jsx)("span",{"aria-hidden":"true",children:"".concat(l[s.id].uptime,"% ").concat(p("uptime"))})]})]}),s.showUptime&&x&&(0,h.jsx)(eK,{componentStartDate:T>m.launchDate?T:m.launchDate,isHistory:o,days:(null===(n=l[s.id])||void 0===n?void 0:n.daysDictionary)||{},startDate:i,endDate:d,id:s.id,componentUptime:l[s.id],customLinkComponent:Z.Z,setTooltipProps:D,customTooltipComponent:w?(0,h.jsx)(ta,{...w}):null,context:{...c,app:"PAGE",t:p}})]}),(0,h.jsx)("div",{className:"component-group__list",children:!x&&(null==k?void 0:k.map((e,t)=>(0,h.jsx)("div",{className:y()({"-mt-1":0===t}),children:e.children&&e.children.length>0?(0,h.jsx)(tx,{group:e,activeIncidents:r,isHistory:o,site:m,days:l,startDate:i,endDate:d}):(0,h.jsx)(tn,{item:e,isHistory:o,days:l,startDate:i,endDate:d},t)},e.id)))})]})},tx=e=>{let{group:t,activeIncidents:a,isHistory:n,site:s,days:r,startDate:o,endDate:l}=e;return s.maxUptimeDays>0&&(null==t?void 0:t.showUptime)?(0,h.jsx)(tp,{group:t,activeIncidents:a,isHistory:n,days:r,startDate:o,endDate:l}):(0,h.jsx)(th,{group:t,activeIncidents:a,isHistory:n,days:r,startDate:o,endDate:l})},tv=a(29051);let tg=(e,t,a,n)=>{let s=(0,tv.Z)({start:e,end:t}),r=Array.from(new Set(s.map(e=>(0,C.Z)(new Date(e),"MMM yyyy")))),o={};for(let e of(r.forEach(e=>{o[e]={days:{},daysCount:0}}),s.forEach(e=>{void 0!=o&&(o[(0,C.Z)(new Date(e),"MMM yyyy")].days[e.toString()]={notices:[],noticeCount:0,outages:[],outageCount:0},o[(0,C.Z)(new Date(e),"MMM yyyy")].daysCount+=1)}),null==a||a.forEach(e=>{let t=new Date(e.from),a=new Date>t?new Date:t;e.to&&new Date(e.to)>t?a=new Date(e.to):e.to&&new Date(e.to)<=t&&(a=t),(0,tv.Z)({start:t,end:a}).forEach(t=>{let a=(0,eh.Z)(t),s=o[(0,C.Z)(new Date(t),"MMM yyyy")],r=null==s?void 0:s.days[a.toString()];r&&(r.outageCount++,r.outages.push(e),e.noticeId&&!r.notices.some(t=>t===e.noticeId)&&(r.noticeCount++,r.notices.push(e.noticeId),r.notices.sort((e,t)=>{let a=n[e],s=n[t];return(null==a?void 0:a.started)?(null==s?void 0:s.started)?a.started===s.started?s.resolved?a.resolved&&a.resolved<s.resolved?-1:1:-1:a.started<s.started?-1:1:-1:1})))})}),r))for(let t of Object.keys(o[e].days))0===o[e].days[t].noticeCount&&0===o[e].days[t].outageCount&&delete o[e].days[t];return o};var ty=(e,t,a,n)=>(Object.keys(e).forEach(s=>{e[s].daysDictionary=tg(t,a,e[s].outages,n)}),e),tf=e=>{let{startDate:t,endDate:a,activeIncidents:n,isHistory:s,components:r,componentsUptime:o}=e,{site:l,notices:i}=(0,v.useContext)(f.D),d=ty(o,new Date(t),new Date(a),i);return console.log(r),(0,h.jsxs)("div",{className:"jsx-148fccfab3e7b9ee "+"mx-auto components ".concat(y()({"my-8 md:my-12":"simple"===l.skin||"panda"===l.skin,"my-0":"stormtrooper"===l.skin})),children:[(0,h.jsx)("div",{className:"jsx-148fccfab3e7b9ee",children:"grid"===l.systemsDisplay?(0,h.jsx)(ti,{components:r,days:d,isHistory:s,startDate:t,endDate:a}):(0,h.jsx)(h.Fragment,{children:r.sort((e,t)=>e.order-t.order).map((e,r)=>e.children&&e.isParent?(0,h.jsx)("div",{className:"jsx-148fccfab3e7b9ee",children:(0,h.jsx)(tx,{group:e,activeIncidents:n,isHistory:s,site:l,days:d,startDate:t,endDate:a})},r):(0,h.jsx)("div",{className:"jsx-148fccfab3e7b9ee "+(y()({"-mt-2":0===r})||""),children:(0,h.jsx)(tn,{item:e,isHistory:s,days:d,startDate:t,endDate:a})},r))})}),(0,h.jsx)(x(),{id:"148fccfab3e7b9ee",children:".component-group__list{z-index:1}.component-group__list .component-group__list{z-index:2}.component-group__list .component-group__list .component-group__list{z-index:3}.component-group__list .component-group__list .component-group__list .component-group__list{z-index:4}.component-group__list .component-group__list .component-group__list .component-group__list .component-group__list{z-index:5}"})]})}},66361:function(e,t,a){"use strict";var n=a(57437),s=a(78819),r=a.n(s);t.Z=()=>(0,n.jsxs)("div",{className:"jsx-15cebedc8d407f67 spinner",children:[(0,n.jsx)("div",{className:"jsx-15cebedc8d407f67 bounce1 bg-[#424242] dark:bg-[#e0e0e0]"}),(0,n.jsx)("div",{className:"jsx-15cebedc8d407f67 bounce2 bg-[#424242] dark:bg-[#e0e0e0]"}),(0,n.jsx)("div",{className:"jsx-15cebedc8d407f67 bounce3 bg-[#424242] dark:bg-[#e0e0e0]"}),(0,n.jsx)(r(),{id:"15cebedc8d407f67",children:".spinner.jsx-15cebedc8d407f67{margin:auto;width:70px;text-align:center}.spinner.jsx-15cebedc8d407f67>div.jsx-15cebedc8d407f67{width:11px;height:11px;margin:0 2px;-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;-moz-animation:sk-bouncedelay 1.4s infinite ease-in-out both;-o-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.spinner.jsx-15cebedc8d407f67 .bounce1.jsx-15cebedc8d407f67{-webkit-animation-delay:-.32s;-moz-animation-delay:-.32s;-o-animation-delay:-.32s;animation-delay:-.32s}.spinner.jsx-15cebedc8d407f67 .bounce2.jsx-15cebedc8d407f67{-webkit-animation-delay:-.16s;-moz-animation-delay:-.16s;-o-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@-webkit-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);-moz-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);-o-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}"})]})},10297:function(e,t,a){"use strict";a.d(t,{Ot:function(){return o},aX:function(){return l},b3:function(){return r}}),a(2265);var n=a(54492);a(26635);let s=async(e,t,a)=>{let n=new URL("https://api.instatus.com"+e);return new URLSearchParams(t).forEach((e,t)=>{n.searchParams.append(t,e)}),fetch(n,{headers:a}).then(e=>e.json())},r=(e,t,a,r)=>{var o;let l=(0,n.ZP)("/public/".concat(e,"/notices/daily/").concat(t),e=>s(e,{page_no:a},r));return{day:null===(o=l.data)||void 0===o?void 0:o.day,dayError:l.error,dayLoading:!l.error&&!l.data,dayRefetch:l.mutate}},o=(e,t,a,r)=>{var o;let l=(0,n.ZP)("/public/".concat(e,"/notices/monthly/").concat(t),e=>s(e,{page_no:a},r));return{month:null===(o=l.data)||void 0===o?void 0:o.month,monthError:l.error,monthLoading:!l.error&&!l.data,monthRefetch:l.mutate}},l=(e,t,a,r)=>{var o;let l=(0,n.ZP)(["/public/".concat(e,"/metrics/").concat(t,"/data"),a],e=>s(e,{day:a},r));return{metricsData:null===(o=l.data)||void 0===o?void 0:o.data,error:l.error,metricsDataLoading:!l.error&&!l.data,metricsDataRefetch:l.mutate}}},13246:function(e,t){"use strict";t.Z=(e,t)=>e.order>t.order?1:t.order>e.order?-1:0},84430:function(e,t,a){"use strict";a.d(t,{T:function(){return n.Z}});var n=a(3910)},93113:function(){},67474:function(){},34365:function(){},45261:function(){},17337:function(e,t,a){"use strict";var n,s=a(12092);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",r({viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{d:"M48 256c0 114.87 93.13 208 208 208s208-93.13 208-208S370.87 48 256 48 48 141.13 48 256Zm251.37 0-84.68-84.69a16.001 16.001 0 0 1 11.395-27.019 16.001 16.001 0 0 1 11.225 4.399l96 96a16 16 0 0 1 0 22.62l-96 96a16.001 16.001 0 0 1-27.019-11.395 16.001 16.001 0 0 1 4.399-11.225L299.37 256Z"})))}},90343:function(e,t,a){"use strict";var n,s=a(12092);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),n||(n=s.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"m184 112 144 144-144 144"})))}},67317:function(e,t,a){"use strict";var n,s=a(12092);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),n||(n=s.createElement("path",{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"})))}},23719:function(e,t,a){"use strict";var n,s=a(12092);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),n||(n=s.createElement("path",{d:"M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 1 1-26 26 26 26 0 0 1 26-26zm48 226h-88a16 16 0 0 1 0-32h28v-88h-16a16 16 0 0 1 0-32h32a16 16 0 0 1 16 16v104h28a16 16 0 0 1 0 32z"})))}}}]);