uptime/client/legacy/index.c1e9ecf6.js

2 lines
32 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

import{_ as t,a as n,b as e,c as a,i as c,s as r,d as i,S as o,e as u,t as s,f as l,g as f,h,j as d,k as v,l as m,m as p,n as g,o as $,p as E,q as w,r as y,u as _,v as D,w as R,x as I,y as T,z as b,A as k,B as S,C as L,D as M,E as x,F as N,G as B,H,I as A,J as O,K as V,L as U,M as P,N as C}from"./client.cba96f84.js";import{c as F,_ as j,h as W,a as Y,L as z}from"./createOctokit.a795e80b.js";function G(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function q(t,n,e){var a=t.slice();return a[5]=n[e],a}function J(t){var n,e,a,c=b.i18n.allSystemsOperational+"";return{c:function(){n=u("article"),e=s("✅   "),a=s(c),this.h()},l:function(t){n=l(t,"ARTICLE",{class:!0});var r=f(n);e=h(r,"✅   "),a=h(r,c),r.forEach(d),this.h()},h:function(){v(n,"class","up")},m:function(t,c){m(t,n,c),p(n,e),p(n,a)},p:g,d:function(t){t&&d(n)}}}function K(t){for(var n,e,a,c,r=b.i18n.activeIncidents+"",i=t[1],o=[],v=0;v<i.length;v+=1)o[v]=X(q(t,i,v));return{c:function(){n=u("h2"),e=s(r),a=$();for(var t=0;t<o.length;t+=1)o[t].c();c=S()},l:function(t){n=l(t,"H2",{});var i=f(n);e=h(i,r),i.forEach(d),a=E(t);for(var u=0;u<o.length;u+=1)o[u].l(t);c=S()},m:function(t,r){m(t,n,r),p(n,e),m(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);m(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=q(t,i,e);o[e]?o[e].p(a,n):(o[e]=X(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:g,o:g,d:function(t){t&&d(n),t&&d(a),L(o,t),t&&d(c)}}}function Q(t){var n,e;return n=new z({}),{c:function(){M(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){N(n,t,a),e=!0},p:g,i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){_(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function X(t){var n,e,a,c,r,i,o,g,w,y,_,D,R,I,T,S=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",L=b.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(t[5].created_at).toLocaleString()).replace(/\$POSTS/g,t[5].comments)+"",M=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"";return{c:function(){n=u("article"),e=u("div"),a=u("div"),c=u("h4"),r=s(S),i=$(),o=u("div"),g=s(L),w=$(),y=u("div"),_=u("a"),D=s(M),I=$(),this.h()},l:function(t){n=l(t,"ARTICLE",{class:!0});var u=f(n);e=l(u,"DIV",{class:!0});var s=f(e);a=l(s,"DIV",{});var v=f(a);c=l(v,"H4",{});var m=f(c);r=h(m,S),m.forEach(d),i=E(v),o=l(v,"DIV",{});var p=f(o);g=h(p,L),p.forEach(d),v.forEach(d),w=E(s),y=l(s,"DIV",{class:!0});var $=f(y);_=l($,"A",{href:!0});var R=f(_);D=h(R,M),R.forEach(d),$.forEach(d),s.forEach(d),I=E(u),u.forEach(d),this.h()},h:function(){v(_,"href",R="".concat(b.path,"/incident/").concat(t[5].number)),v(y,"class","f r"),v(e,"class","f"),v(n,"class",T="down down-active link "+(t[5].title.includes("degraded")?"degraded":""))},m:function(t,u){m(t,n,u),p(n,e),p(e,a),p(a,c),p(c,r),p(a,i),p(a,o),p(o,g),p(e,w),p(e,y),p(y,_),p(_,D),p(n,I)},p:function(t,e){2&e&&S!==(S=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&k(r,S),2&e&&L!==(L=b.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(t[5].created_at).toLocaleString()).replace(/\$POSTS/g,t[5].comments)+"")&&k(g,L),2&e&&M!==(M=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&k(D,M),2&e&&R!==(R="".concat(b.path,"/incident/").concat(t[5].number))&&v(_,"href",R),2&e&&T!==(T="down down-active link "+(t[5].title.includes("degraded")?"degraded":""))&&v(n,"class",T)},d:function(t){t&&d(n)}}}function Z(t){var n,e,a,c,r,i=!t[1].length&&!t[0]&&J(),o=[Q,K],s=[];function h(t,n){return t[0]?0:t[1].length?1:-1}return~(a=h(t))&&(c=s[a]=o[a](t)),{c:function(){i&&i.c(),n=$(),e=u("section"),c&&c.c(),this.h()},l:function(t){i&&i.l(t),n=E(t),e=l(t,"SECTION",{class:!0});var a=f(e);c&&c.l(a),a.forEach(d),this.h()},h:function(){v(e,"class","svelte-8lnl4f")},m:function(t,c){i&&i.m(t,c),m(t,n,c),m(t,e,c),~a&&s[a].m(e,null),r=!0},p:function(t,r){var u=w(r,1)[0];t[1].length||t[0]?i&&(i.d(1),i=null):i?i.p(t,u):((i=J()).c(),i.m(n.parentNode,n));var l=a;(a=h(t))===l?~a&&s[a].p(t,u):(c&&(y(),_(s[l],1,1,(function(){s[l]=null})),D()),~a?((c=s[a])?c.p(t,u):(c=s[a]=o[a](t)).c(),R(c,1),c.m(e,null)):c=null)},i:function(t){r||(R(c),r=!0)},o:function(t){_(c),r=!1},d:function(t){i&&i.d(t),t&&d(n),t&&d(e),~a&&s[a].d()}}}function tt(t,n,e){var a=!0,c=F(),r=b.owner,i=b.repo,o=[];return I(j(T.mark((function t(){return T.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,Y("issues-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"open",filter:"all",sort:"created",direction:"desc",labels:"status"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),e(1,o=o.map((function(t,n){return t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t}))),t.next=12;break;case 9:t.prev=9,t.t2=t.catch(0),W(t.t2);case 12:e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))),[a,o]}var nt=function(n){t(u,o);var e=G(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,tt,Z,r,{}),n}return u}();function et(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function at(t,n,e){var a=t.slice();return a[5]=n[e],a}function ct(t){for(var n,e,a,c,r=b.i18n.scheduledMaintenance+"",i=t[1],o=[],v=0;v<i.length;v+=1)o[v]=ot(at(t,i,v));return{c:function(){n=u("h2"),e=s(r),a=$();for(var t=0;t<o.length;t+=1)o[t].c();c=S()},l:function(t){n=l(t,"H2",{});var i=f(n);e=h(i,r),i.forEach(d),a=E(t);for(var u=0;u<o.length;u+=1)o[u].l(t);c=S()},m:function(t,r){m(t,n,r),p(n,e),m(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);m(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=at(t,i,e);o[e]?o[e].p(a,n):(o[e]=ot(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:g,o:g,d:function(t){t&&d(n),t&&d(a),L(o,t),t&&d(c)}}}function rt(t){var n,e;return n=new z({}),{c:function(){M(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){N(n,t,a),e=!0},p:g,i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){_(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function it(t){var n,e,a=(new Date(t[5].metadata.start).getTime()<(new Date).getTime()?b.i18n.scheduledMaintenanceSummaryStarted:b.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(t[5].metadata.start).toLocaleString()).replace(/\$DURATION/g,Math.floor((new Date(t[5].metadata.end).getTime()-new Date(t[5].metadata.start).getTime())/6e4))+"";return{c:function(){n=u("div"),e=s(a)},l:function(t){n=l(t,"DIV",{});var c=f(n);e=h(c,a),c.forEach(d)},m:function(t,a){m(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=(new Date(t[5].metadata.start).getTime()<(new Date).getTime()?b.i18n.scheduledMaintenanceSummaryStarted:b.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(t[5].metadata.start).toLocaleString()).replace(/\$DURATION/g,Math.floor((new Date(t[5].metadata.end).getTime()-new Date(t[5].metadata.start).getTime())/6e4))+"")&&k(e,a)},d:function(t){t&&d(n)}}}function ot(t){var n,e,a,c,r,i,o,g,w,y,_,D,R=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",I=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"",T=t[5].metadata.start&&t[5].metadata.end&&it(t);return{c:function(){n=u("article"),e=u("div"),a=u("div"),c=u("h4"),r=s(R),i=$(),T&&T.c(),o=$(),g=u("div"),w=u("a"),y=s(I),D=$(),this.h()},l:function(t){n=l(t,"ARTICLE",{class:!0});var u=f(n);e=l(u,"DIV",{class:!0});var s=f(e);a=l(s,"DIV",{});var v=f(a);c=l(v,"H4",{});var m=f(c);r=h(m,R),m.forEach(d),i=E(v),T&&T.l(v),v.forEach(d),o=E(s),g=l(s,"DIV",{class:!0});var p=f(g);w=l(p,"A",{href:!0});var $=f(w);y=h($,I),$.forEach(d),p.forEach(d),s.forEach(d),D=E(u),u.forEach(d),this.h()},h:function(){v(w,"href",_="".concat(b.path,"/incident/").concat(t[5].number)),v(g,"class","f r"),v(e,"class","f"),v(n,"class","degraded degraded-active link")},m:function(t,u){m(t,n,u),p(n,e),p(e,a),p(a,c),p(c,r),p(a,i),T&&T.m(a,null),p(e,o),p(e,g),p(g,w),p(w,y),p(n,D)},p:function(t,n){2&n&&R!==(R=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&k(r,R),t[5].metadata.start&&t[5].metadata.end?T?T.p(t,n):((T=it(t)).c(),T.m(a,null)):T&&(T.d(1),T=null),2&n&&I!==(I=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&k(y,I),2&n&&_!==(_="".concat(b.path,"/incident/").concat(t[5].number))&&v(w,"href",_)},d:function(t){t&&d(n),T&&T.d()}}}function ut(t){var n,e,a,c,r=[rt,ct],i=[];function o(t,n){return t[0]?0:t[1].length?1:-1}return~(e=o(t))&&(a=i[e]=r[e](t)),{c:function(){n=u("section"),a&&a.c(),this.h()},l:function(t){n=l(t,"SECTION",{class:!0});var e=f(n);a&&a.l(e),e.forEach(d),this.h()},h:function(){v(n,"class","svelte-8lnl4f")},m:function(t,a){m(t,n,a),~e&&i[e].m(n,null),c=!0},p:function(t,c){var u=w(c,1)[0],s=e;(e=o(t))===s?~e&&i[e].p(t,u):(a&&(y(),_(i[s],1,1,(function(){i[s]=null})),D()),~e?((a=i[e])?a.p(t,u):(a=i[e]=r[e](t)).c(),R(a,1),a.m(n,null)):a=null)},i:function(t){c||(R(a),c=!0)},o:function(t){_(a),c=!1},d:function(t){t&&d(n),~e&&i[e].d()}}}function st(t,n,e){var a=!0,c=F(),r=b.owner,i=b.repo,o=[];return I(j(T.mark((function t(){return T.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,Y("scheduled-current-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"open",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),e(1,o=o.map((function(t,n){(t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t.metadata={},t.body.includes("\x3c!--"))&&t.body.split("\x3c!--")[1].split("--\x3e")[0].split("\n").filter((function(t){return t.trim()})).filter((function(t){return t.includes(":")})).forEach((function(n){t.metadata[n.split(/:(.+)/)[0].trim()]=n.split(/:(.+)/)[1].trim()}));return t}))),t.next=12;break;case 9:t.prev=9,t.t2=t.catch(0),W(t.t2);case 12:e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))),[a,o]}var lt=function(n){t(u,o);var e=et(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,st,ut,r,{}),n}return u}();function ft(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function ht(t,n,e){var a=t.slice();return a[5]=n[e],a}function dt(t){for(var n,e,a,c,r=b.i18n.pastIncidents+"",i=t[1],o=[],w=0;w<i.length;w+=1)o[w]=pt(ht(t,i,w));return{c:function(){n=u("h2"),e=s(r),a=$();for(var t=0;t<o.length;t+=1)o[t].c();c=S(),this.h()},l:function(t){n=l(t,"H2",{class:!0});var i=f(n);e=h(i,r),i.forEach(d),a=E(t);for(var u=0;u<o.length;u+=1)o[u].l(t);c=S(),this.h()},h:function(){v(n,"class","svelte-18y4uo2")},m:function(t,r){m(t,n,r),p(n,e),m(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);m(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=ht(t,i,e);o[e]?o[e].p(a,n):(o[e]=pt(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:g,o:g,d:function(t){t&&d(n),t&&d(a),L(o,t),t&&d(c)}}}function vt(t){var n,e;return n=new z({}),{c:function(){M(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){N(n,t,a),e=!0},p:g,i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){_(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function mt(t){var n,e,a=new Date(t[5].created_at).toLocaleDateString()+"";return{c:function(){n=u("h3"),e=s(a)},l:function(t){n=l(t,"H3",{});var c=f(n);e=h(c,a),c.forEach(d)},m:function(t,a){m(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=new Date(t[5].created_at).toLocaleDateString()+"")&&k(e,a)},d:function(t){t&&d(n)}}}function pt(t){var n,e,a,c,r,i,o,g,w,y,_,D,R,I,T,S=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",L=b.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(t[5].closed_at).getTime()-new Date(t[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,t[5].comments)+"",M=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"",x=t[5].showHeading&&mt(t);return{c:function(){x&&x.c(),n=$(),e=u("article"),a=u("div"),c=u("div"),r=u("h4"),i=s(S),o=$(),g=u("div"),w=$(),y=u("div"),_=u("a"),D=s(M),I=$(),this.h()},l:function(t){x&&x.l(t),n=E(t),e=l(t,"ARTICLE",{class:!0});var u=f(e);a=l(u,"DIV",{class:!0});var s=f(a);c=l(s,"DIV",{});var v=f(c);r=l(v,"H4",{});var m=f(r);i=h(m,S),m.forEach(d),o=E(v),g=l(v,"DIV",{}),f(g).forEach(d),v.forEach(d),w=E(s),y=l(s,"DIV",{class:!0});var p=f(y);_=l(p,"A",{href:!0});var $=f(_);D=h($,M),$.forEach(d),p.forEach(d),s.forEach(d),I=E(u),u.forEach(d),this.h()},h:function(){v(_,"href",R="".concat(b.path,"/incident/").concat(t[5].number)),v(y,"class","f r"),v(a,"class","f"),v(e,"class",T="down link "+(t[5].title.includes("degraded")?"degraded":""))},m:function(t,u){x&&x.m(t,u),m(t,n,u),m(t,e,u),p(e,a),p(a,c),p(c,r),p(r,i),p(c,o),p(c,g),g.innerHTML=L,p(a,w),p(a,y),p(y,_),p(_,D),p(e,I)},p:function(t,a){t[5].showHeading?x?x.p(t,a):((x=mt(t)).c(),x.m(n.parentNode,n)):x&&(x.d(1),x=null),2&a&&S!==(S=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&k(i,S),2&a&&L!==(L=b.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(t[5].closed_at).getTime()-new Date(t[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,t[5].comments)+"")&&(g.innerHTML=L),2&a&&M!==(M=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&k(D,M),2&a&&R!==(R="".concat(b.path,"/incident/").concat(t[5].number))&&v(_,"href",R),2&a&&T!==(T="down link "+(t[5].title.includes("degraded")?"degraded":""))&&v(e,"class",T)},d:function(t){x&&x.d(t),t&&d(n),t&&d(e)}}}function gt(t){var n,e,a,c,r=[vt,dt],i=[];function o(t,n){return t[0]?0:t[1].length?1:-1}return~(e=o(t))&&(a=i[e]=r[e](t)),{c:function(){n=u("section"),a&&a.c()},l:function(t){n=l(t,"SECTION",{});var e=f(n);a&&a.l(e),e.forEach(d)},m:function(t,a){m(t,n,a),~e&&i[e].m(n,null),c=!0},p:function(t,c){var u=w(c,1)[0],s=e;(e=o(t))===s?~e&&i[e].p(t,u):(a&&(y(),_(i[s],1,1,(function(){i[s]=null})),D()),~e?((a=i[e])?a.p(t,u):(a=i[e]=r[e](t)).c(),R(a,1),a.m(n,null)):a=null)},i:function(t){c||(R(a),c=!0)},o:function(t){_(a),c=!1},d:function(t){t&&d(n),~e&&i[e].d()}}}function $t(t,n,e){var a=!0,c=F(),r=b.owner,i=b.repo,o=[];return I(j(T.mark((function t(){return T.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,Y("closed-issues-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"status"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),t.next=11;break;case 8:t.prev=8,t.t2=t.catch(0),W(t.t2);case 11:e(1,o=o.map((function(t,n){return t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t}))),e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,8]])})))),[a,o]}var Et=function(n){t(u,o);var e=ft(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,$t,gt,r,{}),n}return u}();function wt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function yt(t,n,e){var a=t.slice();return a[18]=n[e],a}function _t(t){for(var n,e=t[1],a=[],c=0;c<e.length;c+=1)a[c]=Rt(yt(t,e,c));return{c:function(){for(var t=0;t<a.length;t+=1)a[t].c();n=S()},l:function(t){for(var e=0;e<a.length;e+=1)a[e].l(t);n=S()},m:function(t,e){for(var c=0;c<a.length;c+=1)a[c].m(t,e);m(t,n,e)},p:function(t,c){if(26&c){var r;for(e=t[1],r=0;r<e.length;r+=1){var i=yt(t,e,r);a[r]?a[r].p(i,c):(a[r]=Rt(i),a[r].c(),a[r].m(n.parentNode,n))}for(;r<a.length;r+=1)a[r].d(1);a.length=e.length}},i:g,o:g,d:function(t){L(a,t),t&&d(n)}}}function Dt(t){var n,e;return n=new z({}),{c:function(){M(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){N(n,t,a),e=!0},p:g,i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){_(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function Rt(t){var n,e,a,c,r,i,o,g,w,y,_,D,R,I,T,S,L,M,x,N,B,H,A,O,P,C,F,j,W,Y=t[18].name+"",z=b.i18n.overallUptime.split("$UPTIME")[0]+"",G=("day"===t[3]?t[18].uptimeDay:"week"===t[3]?t[18].uptimeWeek:"month"===t[3]?t[18].uptimeMonth:"year"===t[3]?t[18].uptimeYear:t[18].uptime)+"",q=b.i18n.overallUptime.split("$UPTIME")[1]+"",J=b.i18n.averageResponseTime.split("$TIME")[0]+"",K=("day"===t[3]?t[18].timeDay:"week"===t[3]?t[18].timeWeek:"month"===t[3]?t[18].timeMonth:"year"===t[3]?t[18].timeYear:t[18].time)+"",Q=b.i18n.averageResponseTime.split("$TIME")[1]+"";return{c:function(){n=u("article"),e=u("h4"),a=u("img"),r=$(),i=u("a"),o=s(Y),w=$(),y=u("img"),D=$(),R=u("div"),T=$(),S=u("span"),L=s(G),M=$(),N=$(),B=u("div"),A=$(),O=u("span"),P=s(K),C=$(),j=$(),this.h()},l:function(t){n=l(t,"ARTICLE",{class:!0});var c=f(n);e=l(c,"H4",{class:!0});var u=f(e);a=l(u,"IMG",{class:!0,alt:!0,src:!0}),r=E(u),i=l(u,"A",{href:!0,class:!0});var s=f(i);o=h(s,Y),s.forEach(d),u.forEach(d),w=E(c),y=l(c,"IMG",{alt:!0,class:!0,src:!0}),D=E(c),R=l(c,"DIV",{class:!0});var v=f(R);T=E(v),S=l(v,"SPAN",{class:!0});var m=f(S);L=h(m,G),M=E(m),m.forEach(d),v.forEach(d),N=E(c),B=l(c,"DIV",{class:!0});var p=f(B);A=E(p),O=l(p,"SPAN",{class:!0});var g=f(O);P=h(g,K),C=E(g),g.forEach(d),p.forEach(d),j=E(c),c.forEach(d),this.h()},h:function(){v(a,"class","icon svelte-14gfn20"),v(a,"alt",""),a.src!==(c=t[18].icon)&&v(a,"src",c),v(i,"href",g="".concat(b.path,"/history/").concat(t[18].slug)),v(i,"class","svelte-14gfn20"),v(e,"class","svelte-14gfn20"),v(y,"alt",""),v(y,"class","graph svelte-14gfn20"),y.src!==(_="".concat(t[4],"/").concat(t[18].slug,"/response-time").concat("day"===t[3]?"-day":"week"===t[3]?"-week":"month"===t[3]?"-month":"year"===t[3]?"-year":"",".png"))&&v(y,"src",_),I=new V(T),x=new V(null),v(S,"class","data svelte-14gfn20"),v(R,"class","svelte-14gfn20"),H=new V(A),F=new V(null),v(O,"class","data svelte-14gfn20"),v(B,"class","svelte-14gfn20"),v(n,"class",W=U("".concat(t[18].status," link"))+" svelte-14gfn20")},m:function(t,c){m(t,n,c),p(n,e),p(e,a),p(e,r),p(e,i),p(i,o),p(n,w),p(n,y),p(n,D),p(n,R),I.m(z,R),p(R,T),p(R,S),p(S,L),p(S,M),x.m(q,S),p(n,N),p(n,B),H.m(J,B),p(B,A),p(B,O),p(O,P),p(O,C),F.m(Q,O),p(n,j)},p:function(t,e){2&e&&a.src!==(c=t[18].icon)&&v(a,"src",c),2&e&&Y!==(Y=t[18].name+"")&&k(o,Y),2&e&&g!==(g="".concat(b.path,"/history/").concat(t[18].slug))&&v(i,"href",g),10&e&&y.src!==(_="".concat(t[4],"/").concat(t[18].slug,"/response-time").concat("day"===t[3]?"-day":"week"===t[3]?"-week":"month"===t[3]?"-month":"year"===t[3]?"-year":"",".png"))&&v(y,"src",_),10&e&&G!==(G=("day"===t[3]?t[18].uptimeDay:"week"===t[3]?t[18].uptimeWeek:"month"===t[3]?t[18].uptimeMonth:"year"===t[3]?t[18].uptimeYear:t[18].uptime)+"")&&k(L,G),10&e&&K!==(K=("day"===t[3]?t[18].timeDay:"week"===t[3]?t[18].timeWeek:"month"===t[3]?t[18].timeMonth:"year"===t[3]?t[18].timeYear:t[18].time)+"")&&k(P,K),2&e&&W!==(W=U("".concat(t[18].status," link"))+" svelte-14gfn20")&&v(n,"class",W)},d:function(t){t&&d(n)}}}function It(t){var n,e,a,c,r,i,o,g,I,T,k,S,L,M,x,N,B,O,V,U,P,C,F,j,W,Y,z,G,q,J,K,Q,X,Z,tt,nt,et=b.i18n.liveStatus+"",at=[Dt,_t],ct=[];function rt(t,n){return t[0]?0:t[1].length?1:-1}return~(Q=rt(t))&&(X=ct[Q]=at[Q](t)),{c:function(){n=u("div"),e=u("h2"),a=s(et),c=$(),r=u("form"),i=u("div"),o=u("input"),g=u("label"),I=s("24h"),T=$(),k=u("div"),S=u("input"),L=u("label"),M=s("7d"),x=$(),N=u("div"),B=u("input"),O=u("label"),V=s("30d"),U=$(),P=u("div"),C=u("input"),F=u("label"),j=s("1y"),W=$(),Y=u("div"),z=u("input"),G=u("label"),q=s("all"),J=$(),K=u("section"),X&&X.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"H2",{});var s=f(e);a=h(s,et),s.forEach(d),c=E(u),r=l(u,"FORM",{class:!0});var v=f(r);i=l(v,"DIV",{});var m=f(i);o=l(m,"INPUT",{value:!0,name:!0,type:!0,id:!0,class:!0}),g=l(m,"LABEL",{for:!0,class:!0});var p=f(g);I=h(p,"24h"),p.forEach(d),m.forEach(d),T=E(v),k=l(v,"DIV",{});var $=f(k);S=l($,"INPUT",{value:!0,name:!0,type:!0,id:!0,class:!0}),L=l($,"LABEL",{for:!0,class:!0});var w=f(L);M=h(w,"7d"),w.forEach(d),$.forEach(d),x=E(v),N=l(v,"DIV",{});var y=f(N);B=l(y,"INPUT",{value:!0,name:!0,type:!0,id:!0,class:!0}),O=l(y,"LABEL",{for:!0,class:!0});var _=f(O);V=h(_,"30d"),_.forEach(d),y.forEach(d),U=E(v),P=l(v,"DIV",{});var D=f(P);C=l(D,"INPUT",{value:!0,name:!0,type:!0,id:!0,class:!0}),F=l(D,"LABEL",{for:!0,class:!0});var R=f(F);j=h(R,"1y"),R.forEach(d),D.forEach(d),W=E(v),Y=l(v,"DIV",{});var b=f(Y);z=l(b,"INPUT",{value:!0,name:!0,type:!0,id:!0,class:!0}),G=l(b,"LABEL",{for:!0,class:!0});var H=f(G);q=h(H,"all"),H.forEach(d),b.forEach(d),v.forEach(d),u.forEach(d),J=E(t),K=l(t,"SECTION",{class:!0});var A=f(K);X&&X.l(A),A.forEach(d),this.h()},h:function(){o.__value="day",o.value=o.__value,v(o,"name","d"),v(o,"type","radio"),v(o,"id","data_day"),v(o,"class","svelte-14gfn20"),t[7][0].push(o),v(g,"for","data_day"),v(g,"class","svelte-14gfn20"),S.__value="week",S.value=S.__value,v(S,"name","d"),v(S,"type","radio"),v(S,"id","data_week"),v(S,"class","svelte-14gfn20"),t[7][0].push(S),v(L,"for","data_week"),v(L,"class","svelte-14gfn20"),B.__value="month",B.value=B.__value,v(B,"name","d"),v(B,"type","radio"),v(B,"id","data_month"),v(B,"class","svelte-14gfn20"),t[7][0].push(B),v(O,"for","data_month"),v(O,"class","svelte-14gfn20"),C.__value="year",C.value=C.__value,v(C,"name","d"),v(C,"type","radio"),v(C,"id","data_year"),v(C,"class","svelte-14gfn20"),t[7][0].push(C),v(F,"for","data_year"),v(F,"class","svelte-14gfn20"),z.__value="all",z.value=z.__value,v(z,"name","d"),v(z,"type","radio"),v(z,"id","data_all"),v(z,"class","svelte-14gfn20"),t[7][0].push(z),v(G,"for","data_all"),v(G,"class","svelte-14gfn20"),v(r,"class","f r svelte-14gfn20"),v(n,"class","f changed svelte-14gfn20"),v(K,"class","live-status svelte-14gfn20")},m:function(u,s){m(u,n,s),p(n,e),p(e,a),p(n,c),p(n,r),p(r,i),p(i,o),o.checked=o.__value===t[3],p(i,g),p(g,I),p(r,T),p(r,k),p(k,S),S.checked=S.__value===t[3],p(k,L),p(L,M),p(r,x),p(r,N),p(N,B),B.checked=B.__value===t[3],p(N,O),p(O,V),p(r,U),p(r,P),p(P,C),C.checked=C.__value===t[3],p(P,F),p(F,j),p(r,W),p(r,Y),p(Y,z),z.checked=z.__value===t[3],p(Y,G),p(G,q),t[12](n),m(u,J,s),m(u,K,s),~Q&&ct[Q].m(K,null),Z=!0,tt||(nt=[H(o,"change",t[6]),H(o,"change",t[5]),H(S,"change",t[8]),H(S,"change",t[5]),H(B,"change",t[9]),H(B,"change",t[5]),H(C,"change",t[10]),H(C,"change",t[5]),H(z,"change",t[11]),H(z,"change",t[5])],tt=!0)},p:function(t,n){var e=w(n,1)[0];8&e&&(o.checked=o.__value===t[3]),8&e&&(S.checked=S.__value===t[3]),8&e&&(B.checked=B.__value===t[3]),8&e&&(C.checked=C.__value===t[3]),8&e&&(z.checked=z.__value===t[3]);var a=Q;(Q=rt(t))===a?~Q&&ct[Q].p(t,e):(X&&(y(),_(ct[a],1,1,(function(){ct[a]=null})),D()),~Q?((X=ct[Q])?X.p(t,e):(X=ct[Q]=at[Q](t)).c(),R(X,1),X.m(K,null)):X=null)},i:function(t){Z||(R(X),Z=!0)},o:function(t){_(X),Z=!1},d:function(e){e&&d(n),t[7][0].splice(t[7][0].indexOf(o),1),t[7][0].splice(t[7][0].indexOf(S),1),t[7][0].splice(t[7][0].indexOf(B),1),t[7][0].splice(t[7][0].indexOf(C),1),t[7][0].splice(t[7][0].indexOf(z),1),t[12](null),e&&d(J),e&&d(K),~Q&&ct[Q].d(),tt=!1,A(nt)}}}function Tt(t,n,e){var a=!0;F();var c=b.owner,r=b.repo,i=(b["status-website"]||{}).apiBaseUrl,o=[];i||(i="https://api.github.com");var u=i.includes("api.github.com")?"https://raw.githubusercontent.com":i,s="".concat(u,"/").concat(c,"/").concat(r,"/master/graphs"),l=null,f="week";I(j(T.mark((function t(){var n;return T.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(u,"/").concat(c,"/").concat(r,"/master/history/summary.json"));case 3:return n=t.sent,t.t0=e,t.next=7,n.json();case 7:t.t1=o=t.sent,(0,t.t0)(1,t.t1),t.next=14;break;case 11:t.prev=11,t.t2=t.catch(0),W(t.t2);case 14:e(0,a=!1),l&&l.classList.remove("changed");case 16:case"end":return t.stop()}}),t,null,[[0,11]])}))));return[a,o,l,f,s,function(){l&&(l.classList.add("changed"),setTimeout((function(){return l.classList.remove("changed")}),500))},function(){f=this.__value,e(3,f)},[[]],function(){f=this.__value,e(3,f)},function(){f=this.__value,e(3,f)},function(){f=this.__value,e(3,f)},function(){f=this.__value,e(3,f)},function(t){O[t?"unshift":"push"]((function(){e(2,l=t)}))}]}var bt=function(n){t(u,o);var e=wt(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,Tt,It,r,{}),n}return u}();function kt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function St(t,n,e){var a=t.slice();return a[5]=n[e],a}function Lt(t){for(var n,e,a,c,r=b.i18n.pastScheduledMaintenance+"",i=t[1],o=[],w=0;w<i.length;w+=1)o[w]=Nt(St(t,i,w));return{c:function(){n=u("h2"),e=s(r),a=$();for(var t=0;t<o.length;t+=1)o[t].c();c=S(),this.h()},l:function(t){n=l(t,"H2",{class:!0});var i=f(n);e=h(i,r),i.forEach(d),a=E(t);for(var u=0;u<o.length;u+=1)o[u].l(t);c=S(),this.h()},h:function(){v(n,"class","svelte-18y4uo2")},m:function(t,r){m(t,n,r),p(n,e),m(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);m(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=St(t,i,e);o[e]?o[e].p(a,n):(o[e]=Nt(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:g,o:g,d:function(t){t&&d(n),t&&d(a),L(o,t),t&&d(c)}}}function Mt(t){var n,e;return n=new z({}),{c:function(){M(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){N(n,t,a),e=!0},p:g,i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){_(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function xt(t){var n,e,a=new Date(t[5].created_at).toLocaleDateString()+"";return{c:function(){n=u("h3"),e=s(a)},l:function(t){n=l(t,"H3",{});var c=f(n);e=h(c,a),c.forEach(d)},m:function(t,a){m(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=new Date(t[5].created_at).toLocaleDateString()+"")&&k(e,a)},d:function(t){t&&d(n)}}}function Nt(t){var n,e,a,c,r,i,o,g,w,y,_,D,R,I,T,S=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",L=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"",M=t[5].showHeading&&xt(t);return{c:function(){M&&M.c(),n=$(),e=u("article"),a=u("div"),c=u("div"),r=u("h4"),i=s(S),o=$(),g=u("div"),w=s("Completed"),y=$(),_=u("div"),D=u("a"),R=s(L),T=$(),this.h()},l:function(t){M&&M.l(t),n=E(t),e=l(t,"ARTICLE",{class:!0});var u=f(e);a=l(u,"DIV",{class:!0});var s=f(a);c=l(s,"DIV",{});var v=f(c);r=l(v,"H4",{});var m=f(r);i=h(m,S),m.forEach(d),o=E(v),g=l(v,"DIV",{});var p=f(g);w=h(p,"Completed"),p.forEach(d),v.forEach(d),y=E(s),_=l(s,"DIV",{class:!0});var $=f(_);D=l($,"A",{href:!0});var I=f(D);R=h(I,L),I.forEach(d),$.forEach(d),s.forEach(d),T=E(u),u.forEach(d),this.h()},h:function(){v(D,"href",I="".concat(b.path,"/incident/").concat(t[5].number)),v(_,"class","f r"),v(a,"class","f"),v(e,"class","link degraded")},m:function(t,u){M&&M.m(t,u),m(t,n,u),m(t,e,u),p(e,a),p(a,c),p(c,r),p(r,i),p(c,o),p(c,g),p(g,w),p(a,y),p(a,_),p(_,D),p(D,R),p(e,T)},p:function(t,e){t[5].showHeading?M?M.p(t,e):((M=xt(t)).c(),M.m(n.parentNode,n)):M&&(M.d(1),M=null),2&e&&S!==(S=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&k(i,S),2&e&&L!==(L=b.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&k(R,L),2&e&&I!==(I="".concat(b.path,"/incident/").concat(t[5].number))&&v(D,"href",I)},d:function(t){M&&M.d(t),t&&d(n),t&&d(e)}}}function Bt(t){var n,e,a,c,r=[Mt,Lt],i=[];function o(t,n){return t[0]?0:t[1].length?1:-1}return~(e=o(t))&&(a=i[e]=r[e](t)),{c:function(){n=u("section"),a&&a.c()},l:function(t){n=l(t,"SECTION",{});var e=f(n);a&&a.l(e),e.forEach(d)},m:function(t,a){m(t,n,a),~e&&i[e].m(n,null),c=!0},p:function(t,c){var u=w(c,1)[0],s=e;(e=o(t))===s?~e&&i[e].p(t,u):(a&&(y(),_(i[s],1,1,(function(){i[s]=null})),D()),~e?((a=i[e])?a.p(t,u):(a=i[e]=r[e](t)).c(),R(a,1),a.m(n,null)):a=null)},i:function(t){c||(R(a),c=!0)},o:function(t){_(a),c=!1},d:function(t){t&&d(n),~e&&i[e].d()}}}function Ht(t,n,e){var a=!0,c=F(),r=b.owner,i=b.repo,o=[];return I(j(T.mark((function t(){return T.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,Y("maintenance-issues-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),t.next=11;break;case 8:t.prev=8,t.t2=t.catch(0),W(t.t2);case 11:e(1,o=o.map((function(t,n){return t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t}))),e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,8]])})))),[a,o]}var At=function(n){t(u,o);var e=kt(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,Ht,Bt,r,{}),n}return u}();function Ot(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function Vt(t){var n,e=C(b["status-website"].introTitle)+"";return{c:function(){n=u("h1")},l:function(t){n=l(t,"H1",{}),f(n).forEach(d)},m:function(t,a){m(t,n,a),n.innerHTML=e},p:g,d:function(t){t&&d(n)}}}function Ut(t){var n,e=C(b["status-website"].introMessage)+"";return{c:function(){n=u("p"),this.h()},l:function(t){n=l(t,"P",{class:!0}),f(n).forEach(d),this.h()},h:function(){v(n,"class","lead svelte-ngkazm")},m:function(t,a){m(t,n,a),n.innerHTML=e},p:g,d:function(t){t&&d(n)}}}function Pt(t){var n,e,a,c,r,i,o,s,h,p,g,y,D,I;document.title=n=t[0];var T=b["status-website"]&&function(t){var n,e,a=b["status-website"].introTitle&&Vt(),c=b["status-website"].introMessage&&Ut();return{c:function(){a&&a.c(),n=$(),c&&c.c(),e=S()},l:function(t){a&&a.l(t),n=E(t),c&&c.l(t),e=S()},m:function(t,r){a&&a.m(t,r),m(t,n,r),c&&c.m(t,r),m(t,e,r)},p:function(t,n){b["status-website"].introTitle&&a.p(t,n),b["status-website"].introMessage&&c.p(t,n)},d:function(t){a&&a.d(t),t&&d(n),c&&c.d(t),t&&d(e)}}}();return r=new nt({}),o=new lt({}),h=new bt({}),g=new At({}),D=new Et({}),{c:function(){e=$(),a=u("header"),T&&T.c(),c=$(),M(r.$$.fragment),i=$(),M(o.$$.fragment),s=$(),M(h.$$.fragment),p=$(),M(g.$$.fragment),y=$(),M(D.$$.fragment),this.h()},l:function(t){P('[data-svelte="svelte-1258swp"]',document.head).forEach(d),e=E(t),a=l(t,"HEADER",{class:!0});var n=f(a);T&&T.l(n),n.forEach(d),c=E(t),x(r.$$.fragment,t),i=E(t),x(o.$$.fragment,t),s=E(t),x(h.$$.fragment,t),p=E(t),x(g.$$.fragment,t),y=E(t),x(D.$$.fragment,t),this.h()},h:function(){v(a,"class","svelte-ngkazm")},m:function(t,n){m(t,e,n),m(t,a,n),T&&T.m(a,null),m(t,c,n),N(r,t,n),m(t,i,n),N(o,t,n),m(t,s,n),N(h,t,n),m(t,p,n),N(g,t,n),m(t,y,n),N(D,t,n),I=!0},p:function(t,e){var a=w(e,1)[0];(!I||1&a)&&n!==(n=t[0])&&(document.title=n),b["status-website"]&&T.p(t,a)},i:function(t){I||(R(r.$$.fragment,t),R(o.$$.fragment,t),R(h.$$.fragment,t),R(g.$$.fragment,t),R(D.$$.fragment,t),I=!0)},o:function(t){_(r.$$.fragment,t),_(o.$$.fragment,t),_(h.$$.fragment,t),_(g.$$.fragment,t),_(D.$$.fragment,t),I=!1},d:function(t){t&&d(e),t&&d(a),T&&T.d(),t&&d(c),B(r,t),t&&d(i),B(o,t),t&&d(s),B(h,t),t&&d(p),B(g,t),t&&d(y),B(D,t)}}}function Ct(t,n,e){var a="Status";try{a=b["status-website"].name}catch(t){}return[a]}var Ft=function(n){t(u,o);var e=Ot(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,Ct,Pt,r,{}),n}return u}();export default Ft;