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