status/client/legacy/index.3854135d.js
2024-08-30 01:29:18 +00:00

2 lines
26 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{S as e,i as t,s as a,a as n,e as r,c as l,b as s,d as c,f as i,g as o,h as d,j as h,t as u,k as m,l as f,o as p,m as g,n as v,p as $,q as E,r as w,u as D,v as _,w as y,x as T,y as I,z as S,A as b,B as L,C as k,D as q,E as R,H as M,F as N,G as A,I as H,J as V,K as U,L as B}from"./client.bc511d41.js";import{c as C,a as O,h as P,L as x}from"./createOctokit.5521b7cb.js";function F(e,t,a){const n=e.slice();return n[5]=t[a],n}function j(e){let t,a,n,l=w.i18n.allSystemsOperational+"";return{c(){t=r("article"),a=g("✅   "),n=g(l),this.h()},l(e){t=s(e,"ARTICLE",{class:!0});var r=c(t);a=v(r,"✅   "),n=v(r,l),r.forEach(i),this.h()},h(){o(t,"class","up")},m(e,r){d(e,t,r),$(t,a),$(t,n)},p:E,d(e){e&&i(t)}}}function Y(e){let t,a,o,h,u=w.i18n.activeIncidents+"",m=e[1],f=[];for(let t=0;t<m.length;t+=1)f[t]=z(F(e,m,t));return{c(){t=r("h2"),a=g(u),o=n();for(let e=0;e<f.length;e+=1)f[e].c();h=D()},l(e){t=s(e,"H2",{});var n=c(t);a=v(n,u),n.forEach(i),o=l(e);for(let t=0;t<f.length;t+=1)f[t].l(e);h=D()},m(e,n){d(e,t,n),$(t,a),d(e,o,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(e,n);d(e,h,n)},p(e,t){if(2&t){let a;for(m=e[1],a=0;a<m.length;a+=1){const n=F(e,m,a);f[a]?f[a].p(n,t):(f[a]=z(n),f[a].c(),f[a].m(h.parentNode,h))}for(;a<f.length;a+=1)f[a].d(1);f.length=m.length}},i:E,o:E,d(e){e&&i(t),e&&i(o),_(f,e),e&&i(h)}}}function W(e){let t,a;return t=new x({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(f(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function z(e){let t,a,h,u,m,f,p,E,D,_,y,T,I,S,L,k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",q=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString(w.i18n.locale)).replace(/\$POSTS/g,e[5].comments)+"",R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"";return{c(){t=r("article"),a=r("div"),h=r("div"),u=r("h4"),m=g(k),f=n(),p=r("div"),E=g(q),D=n(),_=r("div"),y=r("a"),T=g(R),S=n(),this.h()},l(e){t=s(e,"ARTICLE",{class:!0});var n=c(t);a=s(n,"DIV",{class:!0});var r=c(a);h=s(r,"DIV",{});var o=c(h);u=s(o,"H4",{});var d=c(u);m=v(d,k),d.forEach(i),f=l(o),p=s(o,"DIV",{});var g=c(p);E=v(g,q),g.forEach(i),o.forEach(i),D=l(r),_=s(r,"DIV",{class:!0});var $=c(_);y=s($,"A",{href:!0});var w=c(y);T=v(w,R),w.forEach(i),$.forEach(i),r.forEach(i),S=l(n),n.forEach(i),this.h()},h(){o(y,"href",I=`${w.path}/incident/${e[5].number}`),o(_,"class","f r"),o(a,"class","f"),o(t,"class",L="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))},m(e,n){d(e,t,n),$(t,a),$(a,h),$(h,u),$(u,m),$(h,f),$(h,p),$(p,E),$(a,D),$(a,_),$(_,y),$(y,T),$(t,S)},p(e,a){2&a&&k!==(k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(m,k),2&a&&q!==(q=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString(w.i18n.locale)).replace(/\$POSTS/g,e[5].comments)+"")&&b(E,q),2&a&&R!==(R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(T,R),2&a&&I!==(I=`${w.path}/incident/${e[5].number}`)&&o(y,"href",I),2&a&&L!==(L="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))&&o(t,"class",L)},d(e){e&&i(t)}}}function G(e){let t,a,p,g,v,$=!e[1].length&&!e[0]&&j();const E=[W,Y],w=[];function D(e,t){return e[0]?0:e[1].length?1:-1}return~(p=D(e))&&(g=w[p]=E[p](e)),{c(){$&&$.c(),t=n(),a=r("section"),g&&g.c(),this.h()},l(e){$&&$.l(e),t=l(e),a=s(e,"SECTION",{class:!0});var n=c(a);g&&g.l(n),n.forEach(i),this.h()},h(){o(a,"class","svelte-8lnl4f")},m(e,n){$&&$.m(e,n),d(e,t,n),d(e,a,n),~p&&w[p].m(a,null),v=!0},p(e,n){let[r]=n;e[1].length||e[0]?$&&($.d(1),$=null):$?$.p(e,r):($=j(),$.c(),$.m(t.parentNode,t));let l=p;p=D(e),p===l?~p&&w[p].p(e,r):(g&&(h(),u(w[l],1,1,(()=>{w[l]=null})),m()),~p?(g=w[p],g?g.p(e,r):(g=w[p]=E[p](e),g.c()),f(g,1),g.m(a,null)):g=null)},i(e){v||(f(g),v=!0)},o(e){u(g),v=!1},d(e){$&&$.d(e),e&&i(t),e&&i(a),~p&&w[p].d()}}}function J(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`issues-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"open",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data),a(1,c=c.map(((e,t)=>(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e))))}catch(e){P(e)}a(0,n=!1)})),[n,c]}class K extends e{constructor(e){super(),t(this,e,J,G,a,{})}}function Q(e,t,a){const n=e.slice();return n[5]=t[a],n}function X(e){let t,a,o,h,u=w.i18n.scheduledMaintenance+"",m=e[1],f=[];for(let t=0;t<m.length;t+=1)f[t]=te(Q(e,m,t));return{c(){t=r("h2"),a=g(u),o=n();for(let e=0;e<f.length;e+=1)f[e].c();h=D()},l(e){t=s(e,"H2",{});var n=c(t);a=v(n,u),n.forEach(i),o=l(e);for(let t=0;t<f.length;t+=1)f[t].l(e);h=D()},m(e,n){d(e,t,n),$(t,a),d(e,o,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(e,n);d(e,h,n)},p(e,t){if(2&t){let a;for(m=e[1],a=0;a<m.length;a+=1){const n=Q(e,m,a);f[a]?f[a].p(n,t):(f[a]=te(n),f[a].c(),f[a].m(h.parentNode,h))}for(;a<f.length;a+=1)f[a].d(1);f.length=m.length}},i:E,o:E,d(e){e&&i(t),e&&i(o),_(f,e),e&&i(h)}}}function Z(e){let t,a;return t=new x({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(f(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function ee(e){let t,a,n=(new Date(e[5].metadata.start).getTime()<(new Date).getTime()?w.i18n.scheduledMaintenanceSummaryStarted:w.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(e[5].metadata.start).toLocaleString(w.i18n.locale)).replace(/\$DURATION/g,Math.floor((new Date(e[5].metadata.end).getTime()-new Date(e[5].metadata.start).getTime())/6e4))+"";return{c(){t=r("div"),a=g(n)},l(e){t=s(e,"DIV",{});var r=c(t);a=v(r,n),r.forEach(i)},m(e,n){d(e,t,n),$(t,a)},p(e,t){2&t&&n!==(n=(new Date(e[5].metadata.start).getTime()<(new Date).getTime()?w.i18n.scheduledMaintenanceSummaryStarted:w.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(e[5].metadata.start).toLocaleString(w.i18n.locale)).replace(/\$DURATION/g,Math.floor((new Date(e[5].metadata.end).getTime()-new Date(e[5].metadata.start).getTime())/6e4))+"")&&b(a,n)},d(e){e&&i(t)}}}function te(e){let t,a,h,u,m,f,p,E,D,_,y,T,I=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",S=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"",L=e[5].metadata.start&&e[5].metadata.end&&ee(e);return{c(){t=r("article"),a=r("div"),h=r("div"),u=r("h4"),m=g(I),f=n(),L&&L.c(),p=n(),E=r("div"),D=r("a"),_=g(S),T=n(),this.h()},l(e){t=s(e,"ARTICLE",{class:!0});var n=c(t);a=s(n,"DIV",{class:!0});var r=c(a);h=s(r,"DIV",{});var o=c(h);u=s(o,"H4",{});var d=c(u);m=v(d,I),d.forEach(i),f=l(o),L&&L.l(o),o.forEach(i),p=l(r),E=s(r,"DIV",{class:!0});var g=c(E);D=s(g,"A",{href:!0});var $=c(D);_=v($,S),$.forEach(i),g.forEach(i),r.forEach(i),T=l(n),n.forEach(i),this.h()},h(){o(D,"href",y=`${w.path}/incident/${e[5].number}`),o(E,"class","f r"),o(a,"class","f"),o(t,"class","degraded degraded-active link")},m(e,n){d(e,t,n),$(t,a),$(a,h),$(h,u),$(u,m),$(h,f),L&&L.m(h,null),$(a,p),$(a,E),$(E,D),$(D,_),$(t,T)},p(e,t){2&t&&I!==(I=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(m,I),e[5].metadata.start&&e[5].metadata.end?L?L.p(e,t):(L=ee(e),L.c(),L.m(h,null)):L&&(L.d(1),L=null),2&t&&S!==(S=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(_,S),2&t&&y!==(y=`${w.path}/incident/${e[5].number}`)&&o(D,"href",y)},d(e){e&&i(t),L&&L.d()}}}function ae(e){let t,a,n,l;const p=[Z,X],g=[];function v(e,t){return e[0]?0:e[1].length?1:-1}return~(a=v(e))&&(n=g[a]=p[a](e)),{c(){t=r("section"),n&&n.c(),this.h()},l(e){t=s(e,"SECTION",{class:!0});var a=c(t);n&&n.l(a),a.forEach(i),this.h()},h(){o(t,"class","svelte-8lnl4f")},m(e,n){d(e,t,n),~a&&g[a].m(t,null),l=!0},p(e,r){let[l]=r,s=a;a=v(e),a===s?~a&&g[a].p(e,l):(n&&(h(),u(g[s],1,1,(()=>{g[s]=null})),m()),~a?(n=g[a],n?n.p(e,l):(n=g[a]=p[a](e),n.c()),f(n,1),n.m(t,null)):n=null)},i(e){l||(f(n),l=!0)},o(e){u(n),l=!1},d(e){e&&i(t),~a&&g[a].d()}}}function ne(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`scheduled-current-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"open",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})))).data),a(1,c=c.map(((e,t)=>{if(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e.metadata={},e.body.includes("\x3c!--")){e.body.split("\x3c!--")[1].split("--\x3e")[0].split("\n").filter((e=>e.trim())).filter((e=>e.includes(":"))).forEach((t=>{e.metadata[t.split(/:(.+)/)[0].trim()]=t.split(/:(.+)/)[1].trim()}))}return e})))}catch(e){P(e)}a(0,n=!1)})),[n,c]}class re extends e{constructor(e){super(),t(this,e,ne,ae,a,{})}}function le(e,t,a){const n=e.slice();return n[5]=t[a],n}function se(e){let t,a,h,u,m=w.i18n.pastIncidents+"",f=e[1],p=[];for(let t=0;t<f.length;t+=1)p[t]=oe(le(e,f,t));return{c(){t=r("h2"),a=g(m),h=n();for(let e=0;e<p.length;e+=1)p[e].c();u=D(),this.h()},l(e){t=s(e,"H2",{class:!0});var n=c(t);a=v(n,m),n.forEach(i),h=l(e);for(let t=0;t<p.length;t+=1)p[t].l(e);u=D(),this.h()},h(){o(t,"class","svelte-18y4uo2")},m(e,n){d(e,t,n),$(t,a),d(e,h,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(e,n);d(e,u,n)},p(e,t){if(2&t){let a;for(f=e[1],a=0;a<f.length;a+=1){const n=le(e,f,a);p[a]?p[a].p(n,t):(p[a]=oe(n),p[a].c(),p[a].m(u.parentNode,u))}for(;a<p.length;a+=1)p[a].d(1);p.length=f.length}},i:E,o:E,d(e){e&&i(t),e&&i(h),_(p,e),e&&i(u)}}}function ce(e){let t,a;return t=new x({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(f(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function ie(e){let t,a,n=new Date(e[5].created_at).toLocaleDateString(w.i18n.locale)+"";return{c(){t=r("h3"),a=g(n)},l(e){t=s(e,"H3",{});var r=c(t);a=v(r,n),r.forEach(i)},m(e,n){d(e,t,n),$(t,a)},p(e,t){2&t&&n!==(n=new Date(e[5].created_at).toLocaleDateString(w.i18n.locale)+"")&&b(a,n)},d(e){e&&i(t)}}}function oe(e){let t,a,h,u,m,f,p,E,D,_,y,T,I,S,L,k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",q=w.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(e[5].closed_at).getTime()-new Date(e[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,e[5].comments)+"",R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"",M=e[5].showHeading&&ie(e);return{c(){M&&M.c(),t=n(),a=r("article"),h=r("div"),u=r("div"),m=r("h4"),f=g(k),p=n(),E=r("div"),D=n(),_=r("div"),y=r("a"),T=g(R),S=n(),this.h()},l(e){M&&M.l(e),t=l(e),a=s(e,"ARTICLE",{class:!0});var n=c(a);h=s(n,"DIV",{class:!0});var r=c(h);u=s(r,"DIV",{});var o=c(u);m=s(o,"H4",{});var d=c(m);f=v(d,k),d.forEach(i),p=l(o),E=s(o,"DIV",{}),c(E).forEach(i),o.forEach(i),D=l(r),_=s(r,"DIV",{class:!0});var g=c(_);y=s(g,"A",{href:!0});var $=c(y);T=v($,R),$.forEach(i),g.forEach(i),r.forEach(i),S=l(n),n.forEach(i),this.h()},h(){o(y,"href",I=`${w.path}/incident/${e[5].number}`),o(_,"class","f r"),o(h,"class","f"),o(a,"class",L="down link "+(e[5].title.includes("degraded")?"degraded":""))},m(e,n){M&&M.m(e,n),d(e,t,n),d(e,a,n),$(a,h),$(h,u),$(u,m),$(m,f),$(u,p),$(u,E),E.innerHTML=q,$(h,D),$(h,_),$(_,y),$(y,T),$(a,S)},p(e,n){e[5].showHeading?M?M.p(e,n):(M=ie(e),M.c(),M.m(t.parentNode,t)):M&&(M.d(1),M=null),2&n&&k!==(k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(f,k),2&n&&q!==(q=w.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(e[5].closed_at).getTime()-new Date(e[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,e[5].comments)+"")&&(E.innerHTML=q),2&n&&R!==(R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(T,R),2&n&&I!==(I=`${w.path}/incident/${e[5].number}`)&&o(y,"href",I),2&n&&L!==(L="down link "+(e[5].title.includes("degraded")?"degraded":""))&&o(a,"class",L)},d(e){M&&M.d(e),e&&i(t),e&&i(a)}}}function de(e){let t,a,n,l;const o=[ce,se],p=[];function g(e,t){return e[0]?0:e[1].length?1:-1}return~(a=g(e))&&(n=p[a]=o[a](e)),{c(){t=r("section"),n&&n.c()},l(e){t=s(e,"SECTION",{});var a=c(t);n&&n.l(a),a.forEach(i)},m(e,n){d(e,t,n),~a&&p[a].m(t,null),l=!0},p(e,r){let[l]=r,s=a;a=g(e),a===s?~a&&p[a].p(e,l):(n&&(h(),u(p[s],1,1,(()=>{p[s]=null})),m()),~a?(n=p[a],n?n.p(e,l):(n=p[a]=o[a](e),n.c()),f(n,1),n.m(t,null)):n=null)},i(e){l||(f(n),l=!0)},o(e){u(n),l=!1},d(e){e&&i(t),~a&&p[a].d()}}}function he(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`closed-issues-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data)}catch(e){P(e)}a(1,c=c.map(((e,t)=>(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e)))),a(0,n=!1)})),[n,c]}class ue extends e{constructor(e){super(),t(this,e,he,de,a,{})}}function me(e,t,a){const n=e.slice();return n[18]=t[a],n}function fe(e){let t,a=e[1],n=[];for(let t=0;t<a.length;t+=1)n[t]=ve(me(e,a,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=D()},l(e){for(let t=0;t<n.length;t+=1)n[t].l(e);t=D()},m(e,a){for(let t=0;t<n.length;t+=1)n[t]&&n[t].m(e,a);d(e,t,a)},p(e,r){if(26&r){let l;for(a=e[1],l=0;l<a.length;l+=1){const s=me(e,a,l);n[l]?n[l].p(s,r):(n[l]=ve(s),n[l].c(),n[l].m(t.parentNode,t))}for(;l<n.length;l+=1)n[l].d(1);n.length=a.length}},i:E,o:E,d(e){_(n,e),e&&i(t)}}}function pe(e){let t,a;return t=new x({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(f(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function ge(e){let t,a,h,u,m,f,p,E=w.i18n.averageResponseTime.split("$TIME")[0]+"",D=("day"===e[3]?e[18].timeDay:"week"===e[3]?e[18].timeWeek:"month"===e[3]?e[18].timeMonth:"year"===e[3]?e[18].timeYear:e[18].time)+"",_=w.i18n.averageResponseTime.split("$TIME")[1]+"";return{c(){t=r("div"),a=new M(!1),h=n(),u=r("span"),m=g(D),f=n(),p=new M(!1),this.h()},l(e){t=s(e,"DIV",{});var n=c(t);a=N(n,!1),h=l(n),u=s(n,"SPAN",{class:!0});var r=c(u);m=v(r,D),f=l(r),p=N(r,!1),r.forEach(i),n.forEach(i),this.h()},h(){a.a=h,p.a=null,o(u,"class","data svelte-fqsq6s")},m(e,n){d(e,t,n),a.m(E,t),$(t,h),$(t,u),$(u,m),$(u,f),p.m(_,u)},p(e,t){10&t&&D!==(D=("day"===e[3]?e[18].timeDay:"week"===e[3]?e[18].timeWeek:"month"===e[3]?e[18].timeMonth:"year"===e[3]?e[18].timeYear:e[18].time)+"")&&b(m,D)},d(e){e&&i(t)}}}function ve(e){let t,a,h,u,m,f,p,E,D,_,y,T,I,S,L,k,q,R,U,B=e[18].name+"",C=w.i18n.overallUptime.split("$UPTIME")[0]+"",O=("day"===e[3]?e[18].uptimeDay:"week"===e[3]?e[18].uptimeWeek:"month"===e[3]?e[18].uptimeMonth:"year"===e[3]?e[18].uptimeYear:e[18].uptime)+"",P=w.i18n.overallUptime.split("$UPTIME")[1]+"",x=(void 0===e[18].showAverageResponseTime||e[18].showAverageResponseTime)&&ge(e);return{c(){t=r("article"),a=r("h4"),h=r("img"),m=n(),f=r("a"),p=g(B),D=n(),_=r("div"),y=new M(!1),T=n(),I=r("span"),S=g(O),L=n(),k=new M(!1),q=n(),x&&x.c(),R=n(),this.h()},l(e){t=s(e,"ARTICLE",{class:!0,style:!0});var n=c(t);a=s(n,"H4",{});var r=c(a);h=s(r,"IMG",{class:!0,alt:!0,src:!0}),m=l(r),f=s(r,"A",{href:!0,class:!0});var o=c(f);p=v(o,B),o.forEach(i),r.forEach(i),D=l(n),_=s(n,"DIV",{});var d=c(_);y=N(d,!1),T=l(d),I=s(d,"SPAN",{class:!0});var u=c(I);S=v(u,O),L=l(u),k=N(u,!1),u.forEach(i),d.forEach(i),q=l(n),x&&x.l(n),R=l(n),n.forEach(i),this.h()},h(){o(h,"class","icon svelte-fqsq6s"),o(h,"alt",""),A(h.src,u=e[18].icon)||o(h,"src",u),o(f,"href",E=`${w.path}/history/${e[18].slug}`),o(f,"class","svelte-fqsq6s"),y.a=T,k.a=null,o(I,"class","data svelte-fqsq6s"),o(t,"class",U=H(`${e[18].status} link graph`)+" svelte-fqsq6s"),V(t,"--background",`url('${e[4]}/${e[18].slug}/response-time${"day"===e[3]?"-day":"week"===e[3]?"-week":"month"===e[3]?"-month":"year"===e[3]?"-year":""}.png')`)},m(e,n){d(e,t,n),$(t,a),$(a,h),$(a,m),$(a,f),$(f,p),$(t,D),$(t,_),y.m(C,_),$(_,T),$(_,I),$(I,S),$(I,L),k.m(P,I),$(t,q),x&&x.m(t,null),$(t,R)},p(e,a){2&a&&!A(h.src,u=e[18].icon)&&o(h,"src",u),2&a&&B!==(B=e[18].name+"")&&b(p,B),2&a&&E!==(E=`${w.path}/history/${e[18].slug}`)&&o(f,"href",E),10&a&&O!==(O=("day"===e[3]?e[18].uptimeDay:"week"===e[3]?e[18].uptimeWeek:"month"===e[3]?e[18].uptimeMonth:"year"===e[3]?e[18].uptimeYear:e[18].uptime)+"")&&b(S,O),void 0===e[18].showAverageResponseTime||e[18].showAverageResponseTime?x?x.p(e,a):(x=ge(e),x.c(),x.m(t,R)):x&&(x.d(1),x=null),2&a&&U!==(U=H(`${e[18].status} link graph`)+" svelte-fqsq6s")&&o(t,"class",U),10&a&&V(t,"--background",`url('${e[4]}/${e[18].slug}/response-time${"day"===e[3]?"-day":"week"===e[3]?"-week":"month"===e[3]?"-month":"year"===e[3]?"-year":""}.png')`)},d(e){e&&i(t),x&&x.d()}}}function $e(e){let t,a,p,E,D,_,y,T,I,S,b,R,M,N,A,H,V,U,B,C,O,P,x,F,j,Y,W,z,G,J,K,Q,X,Z,ee,te,ae,ne=w.i18n.liveStatus+"",re=w.i18n.duration24H+"",le=w.i18n.duration7D+"",se=w.i18n.duration30D+"",ce=w.i18n.duration1Y+"",ie=w.i18n.durationAll+"";const oe=[pe,fe],de=[];function he(e,t){return e[0]?0:e[1].length?1:-1}return~(Q=he(e))&&(X=de[Q]=oe[Q](e)),ee=L(e[7][0]),{c(){t=r("div"),a=r("h2"),p=g(ne),E=n(),D=r("form"),_=r("div"),y=r("input"),T=r("label"),I=g(re),S=n(),b=r("div"),R=r("input"),M=r("label"),N=g(le),A=n(),H=r("div"),V=r("input"),U=r("label"),B=g(se),C=n(),O=r("div"),P=r("input"),x=r("label"),F=g(ce),j=n(),Y=r("div"),W=r("input"),z=r("label"),G=g(ie),J=n(),K=r("section"),X&&X.c(),this.h()},l(e){t=s(e,"DIV",{class:!0});var n=c(t);a=s(n,"H2",{});var r=c(a);p=v(r,ne),r.forEach(i),E=l(n),D=s(n,"FORM",{class:!0});var o=c(D);_=s(o,"DIV",{});var d=c(_);y=s(d,"INPUT",{name:!0,type:!0,id:!0,class:!0}),T=s(d,"LABEL",{for:!0,class:!0});var h=c(T);I=v(h,re),h.forEach(i),d.forEach(i),S=l(o),b=s(o,"DIV",{});var u=c(b);R=s(u,"INPUT",{name:!0,type:!0,id:!0,class:!0}),M=s(u,"LABEL",{for:!0,class:!0});var m=c(M);N=v(m,le),m.forEach(i),u.forEach(i),A=l(o),H=s(o,"DIV",{});var f=c(H);V=s(f,"INPUT",{name:!0,type:!0,id:!0,class:!0}),U=s(f,"LABEL",{for:!0,class:!0});var g=c(U);B=v(g,se),g.forEach(i),f.forEach(i),C=l(o),O=s(o,"DIV",{});var $=c(O);P=s($,"INPUT",{name:!0,type:!0,id:!0,class:!0}),x=s($,"LABEL",{for:!0,class:!0});var w=c(x);F=v(w,ce),w.forEach(i),$.forEach(i),j=l(o),Y=s(o,"DIV",{});var L=c(Y);W=s(L,"INPUT",{name:!0,type:!0,id:!0,class:!0}),z=s(L,"LABEL",{for:!0,class:!0});var k=c(z);G=v(k,ie),k.forEach(i),L.forEach(i),o.forEach(i),n.forEach(i),J=l(e),K=s(e,"SECTION",{class:!0});var q=c(K);X&&X.l(q),q.forEach(i),this.h()},h(){y.__value="day",y.value=y.__value,o(y,"name","d"),o(y,"type","radio"),o(y,"id","data_day"),o(y,"class","svelte-fqsq6s"),o(T,"for","data_day"),o(T,"class","svelte-fqsq6s"),R.__value="week",R.value=R.__value,o(R,"name","d"),o(R,"type","radio"),o(R,"id","data_week"),o(R,"class","svelte-fqsq6s"),o(M,"for","data_week"),o(M,"class","svelte-fqsq6s"),V.__value="month",V.value=V.__value,o(V,"name","d"),o(V,"type","radio"),o(V,"id","data_month"),o(V,"class","svelte-fqsq6s"),o(U,"for","data_month"),o(U,"class","svelte-fqsq6s"),P.__value="year",P.value=P.__value,o(P,"name","d"),o(P,"type","radio"),o(P,"id","data_year"),o(P,"class","svelte-fqsq6s"),o(x,"for","data_year"),o(x,"class","svelte-fqsq6s"),W.__value="all",W.value=W.__value,o(W,"name","d"),o(W,"type","radio"),o(W,"id","data_all"),o(W,"class","svelte-fqsq6s"),o(z,"for","data_all"),o(z,"class","svelte-fqsq6s"),o(D,"class","f r svelte-fqsq6s"),o(t,"class","f changed svelte-fqsq6s"),o(K,"class","live-status svelte-fqsq6s"),ee.p(y,R,V,P,W)},m(n,r){d(n,t,r),$(t,a),$(a,p),$(t,E),$(t,D),$(D,_),$(_,y),y.checked=y.__value===e[3],$(_,T),$(T,I),$(D,S),$(D,b),$(b,R),R.checked=R.__value===e[3],$(b,M),$(M,N),$(D,A),$(D,H),$(H,V),V.checked=V.__value===e[3],$(H,U),$(U,B),$(D,C),$(D,O),$(O,P),P.checked=P.__value===e[3],$(O,x),$(x,F),$(D,j),$(D,Y),$(Y,W),W.checked=W.__value===e[3],$(Y,z),$(z,G),e[12](t),d(n,J,r),d(n,K,r),~Q&&de[Q].m(K,null),Z=!0,te||(ae=[k(y,"change",e[6]),k(y,"change",e[5]),k(R,"change",e[8]),k(R,"change",e[5]),k(V,"change",e[9]),k(V,"change",e[5]),k(P,"change",e[10]),k(P,"change",e[5]),k(W,"change",e[11]),k(W,"change",e[5])],te=!0)},p(e,t){let[a]=t;8&a&&(y.checked=y.__value===e[3]),8&a&&(R.checked=R.__value===e[3]),8&a&&(V.checked=V.__value===e[3]),8&a&&(P.checked=P.__value===e[3]),8&a&&(W.checked=W.__value===e[3]);let n=Q;Q=he(e),Q===n?~Q&&de[Q].p(e,a):(X&&(h(),u(de[n],1,1,(()=>{de[n]=null})),m()),~Q?(X=de[Q],X?X.p(e,a):(X=de[Q]=oe[Q](e),X.c()),f(X,1),X.m(K,null)):X=null)},i(e){Z||(f(X),Z=!0)},o(e){u(X),Z=!1},d(a){a&&i(t),e[12](null),a&&i(J),a&&i(K),~Q&&de[Q].d(),ee.r(),te=!1,q(ae)}}}function Ee(e,t,a){let n=!0;C();const r=w.owner,l=w.repo;let s=[],{apiBaseUrl:c,userContentBaseUrl:i}=w["status-website"]||{};c||(c="https://api.github.com"),i||(i="https://raw.githubusercontent.com");const o=`${i}/${r}/${l}/master/graphs`;let d=null,h="week";p((async()=>{try{const e=await fetch(`${i}/${r}/${l}/master/history/summary.json`);a(1,s=await e.json())}catch(e){P(e)}a(0,n=!1),d&&d.classList.remove("changed")}));return[n,s,d,h,o,()=>{d&&(d.classList.add("changed"),setTimeout((()=>d.classList.remove("changed")),500))},function(){h=this.__value,a(3,h)},[[]],function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(e){R[e?"unshift":"push"]((()=>{d=e,a(2,d)}))}]}class we extends e{constructor(e){super(),t(this,e,Ee,$e,a,{})}}function De(e,t,a){const n=e.slice();return n[5]=t[a],n}function _e(e){let t,a,h,u,m=w.i18n.pastScheduledMaintenance+"",f=e[1],p=[];for(let t=0;t<f.length;t+=1)p[t]=Ie(De(e,f,t));return{c(){t=r("h2"),a=g(m),h=n();for(let e=0;e<p.length;e+=1)p[e].c();u=D(),this.h()},l(e){t=s(e,"H2",{class:!0});var n=c(t);a=v(n,m),n.forEach(i),h=l(e);for(let t=0;t<p.length;t+=1)p[t].l(e);u=D(),this.h()},h(){o(t,"class","svelte-18y4uo2")},m(e,n){d(e,t,n),$(t,a),d(e,h,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(e,n);d(e,u,n)},p(e,t){if(2&t){let a;for(f=e[1],a=0;a<f.length;a+=1){const n=De(e,f,a);p[a]?p[a].p(n,t):(p[a]=Ie(n),p[a].c(),p[a].m(u.parentNode,u))}for(;a<p.length;a+=1)p[a].d(1);p.length=f.length}},i:E,o:E,d(e){e&&i(t),e&&i(h),_(p,e),e&&i(u)}}}function ye(e){let t,a;return t=new x({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(f(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function Te(e){let t,a,n=new Date(e[5].created_at).toLocaleDateString(w.i18n.locale)+"";return{c(){t=r("h3"),a=g(n)},l(e){t=s(e,"H3",{});var r=c(t);a=v(r,n),r.forEach(i)},m(e,n){d(e,t,n),$(t,a)},p(e,t){2&t&&n!==(n=new Date(e[5].created_at).toLocaleDateString(w.i18n.locale)+"")&&b(a,n)},d(e){e&&i(t)}}}function Ie(e){let t,a,h,u,m,f,p,E,D,_,y,T,I,S,L,k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",q=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"",R=e[5].showHeading&&Te(e);return{c(){R&&R.c(),t=n(),a=r("article"),h=r("div"),u=r("div"),m=r("h4"),f=g(k),p=n(),E=r("div"),D=g("Completed"),_=n(),y=r("div"),T=r("a"),I=g(q),L=n(),this.h()},l(e){R&&R.l(e),t=l(e),a=s(e,"ARTICLE",{class:!0});var n=c(a);h=s(n,"DIV",{class:!0});var r=c(h);u=s(r,"DIV",{});var o=c(u);m=s(o,"H4",{});var d=c(m);f=v(d,k),d.forEach(i),p=l(o),E=s(o,"DIV",{});var g=c(E);D=v(g,"Completed"),g.forEach(i),o.forEach(i),_=l(r),y=s(r,"DIV",{class:!0});var $=c(y);T=s($,"A",{href:!0});var w=c(T);I=v(w,q),w.forEach(i),$.forEach(i),r.forEach(i),L=l(n),n.forEach(i),this.h()},h(){o(T,"href",S=`${w.path}/incident/${e[5].number}`),o(y,"class","f r"),o(h,"class","f"),o(a,"class","link degraded")},m(e,n){R&&R.m(e,n),d(e,t,n),d(e,a,n),$(a,h),$(h,u),$(u,m),$(m,f),$(u,p),$(u,E),$(E,D),$(h,_),$(h,y),$(y,T),$(T,I),$(a,L)},p(e,a){e[5].showHeading?R?R.p(e,a):(R=Te(e),R.c(),R.m(t.parentNode,t)):R&&(R.d(1),R=null),2&a&&k!==(k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(f,k),2&a&&q!==(q=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(I,q),2&a&&S!==(S=`${w.path}/incident/${e[5].number}`)&&o(T,"href",S)},d(e){R&&R.d(e),e&&i(t),e&&i(a)}}}function Se(e){let t,a,n,l;const o=[ye,_e],p=[];function g(e,t){return e[0]?0:e[1].length?1:-1}return~(a=g(e))&&(n=p[a]=o[a](e)),{c(){t=r("section"),n&&n.c()},l(e){t=s(e,"SECTION",{});var a=c(t);n&&n.l(a),a.forEach(i)},m(e,n){d(e,t,n),~a&&p[a].m(t,null),l=!0},p(e,r){let[l]=r,s=a;a=g(e),a===s?~a&&p[a].p(e,l):(n&&(h(),u(p[s],1,1,(()=>{p[s]=null})),m()),~a?(n=p[a],n?n.p(e,l):(n=p[a]=o[a](e),n.c()),f(n,1),n.m(t,null)):n=null)},i(e){l||(f(n),l=!0)},o(e){u(n),l=!1},d(e){e&&i(t),~a&&p[a].d()}}}function be(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`maintenance-issues-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})))).data)}catch(e){P(e)}a(1,c=c.map(((e,t)=>(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e)))),a(0,n=!1)})),[n,c]}class Le extends e{constructor(e){super(),t(this,e,be,Se,a,{})}}function ke(e){let t,a=B(w["status-website"].introTitle)+"";return{c(){t=r("h1")},l(e){t=s(e,"H1",{}),c(t).forEach(i)},m(e,n){d(e,t,n),t.innerHTML=a},p:E,d(e){e&&i(t)}}}function qe(e){let t,a=B(w["status-website"].introMessage)+"";return{c(){t=r("p"),this.h()},l(e){t=s(e,"P",{class:!0}),c(t).forEach(i),this.h()},h(){o(t,"class","lead svelte-ngkazm")},m(e,n){d(e,t,n),t.innerHTML=a},p:E,d(e){e&&i(t)}}}function Re(e){let t,a,h,m,p,g,v,$,E,_,b,L,k,q;document.title=t=e[0];let R=w["status-website"]&&function(){let e,t,a=w["status-website"].introTitle&&ke(),r=w["status-website"].introMessage&&qe();return{c(){a&&a.c(),e=n(),r&&r.c(),t=D()},l(n){a&&a.l(n),e=l(n),r&&r.l(n),t=D()},m(n,l){a&&a.m(n,l),d(n,e,l),r&&r.m(n,l),d(n,t,l)},p(e,t){w["status-website"].introTitle&&a.p(e,t),w["status-website"].introMessage&&r.p(e,t)},d(n){a&&a.d(n),n&&i(e),r&&r.d(n),n&&i(t)}}}();return p=new K({}),v=new re({}),E=new we({}),b=new Le({}),k=new ue({}),{c(){a=n(),h=r("header"),R&&R.c(),m=n(),y(p.$$.fragment),g=n(),y(v.$$.fragment),$=n(),y(E.$$.fragment),_=n(),y(b.$$.fragment),L=n(),y(k.$$.fragment),this.h()},l(e){U("svelte-1258swp",document.head).forEach(i),a=l(e),h=s(e,"HEADER",{class:!0});var t=c(h);R&&R.l(t),t.forEach(i),m=l(e),T(p.$$.fragment,e),g=l(e),T(v.$$.fragment,e),$=l(e),T(E.$$.fragment,e),_=l(e),T(b.$$.fragment,e),L=l(e),T(k.$$.fragment,e),this.h()},h(){o(h,"class","svelte-ngkazm")},m(e,t){d(e,a,t),d(e,h,t),R&&R.m(h,null),d(e,m,t),I(p,e,t),d(e,g,t),I(v,e,t),d(e,$,t),I(E,e,t),d(e,_,t),I(b,e,t),d(e,L,t),I(k,e,t),q=!0},p(e,a){let[n]=a;(!q||1&n)&&t!==(t=e[0])&&(document.title=t),w["status-website"]&&R.p(e,n)},i(e){q||(f(p.$$.fragment,e),f(v.$$.fragment,e),f(E.$$.fragment,e),f(b.$$.fragment,e),f(k.$$.fragment,e),q=!0)},o(e){u(p.$$.fragment,e),u(v.$$.fragment,e),u(E.$$.fragment,e),u(b.$$.fragment,e),u(k.$$.fragment,e),q=!1},d(e){e&&i(a),e&&i(h),R&&R.d(),e&&i(m),S(p,e),e&&i(g),S(v,e),e&&i($),S(E,e),e&&i(_),S(b,e),e&&i(L),S(k,e)}}}function Me(e,t,a){let n="Status";try{n=w["status-website"].name}catch(e){}return[n]}class Ne extends e{constructor(e){super(),t(this,e,Me,Re,a,{})}}export{Ne as default};