Files
Uptime/client/client.2c8e6123.js
T
2023-01-30 15:40:44 +00:00

18 lines
39 KiB
JavaScript

function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function s(e){e.forEach(n)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a;function c(e,t){return a||(a=document.createElement("a")),a.href=t,e===a.href}function l(e,n,r,s){return e[1]&&s?t(r.ctx.slice(),e[1](s(n))):r.ctx}function u(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function d(e){return null==e?"":e}let h,f,p=!1;function m(e,t,n,r){for(;e<t;){const s=e+(t-e>>1);n(s)<=r?e=s+1:t=s}return e}function g(e,t){if(p){for(!function(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if("HEAD"===e.nodeName){const e=[];for(let n=0;n<t.length;n++){const r=t[n];void 0!==r.claim_order&&e.push(r)}t=e}const n=new Int32Array(t.length+1),r=new Int32Array(t.length);n[0]=-1;let s=0;for(let e=0;e<t.length;e++){const o=t[e].claim_order,i=(s>0&&t[n[s]].claim_order<=o?s+1:m(1,s,(e=>t[n[e]].claim_order),o))-1;r[e]=n[i]+1;const a=i+1;n[a]=e,s=Math.max(a,s)}const o=[],i=[];let a=t.length-1;for(let e=n[s]+1;0!=e;e=r[e-1]){for(o.push(t[e-1]);a>=e;a--)i.push(t[a]);a--}for(;a>=0;a--)i.push(t[a]);o.reverse(),i.sort(((e,t)=>e.claim_order-t.claim_order));for(let t=0,n=0;t<i.length;t++){for(;n<o.length&&i[t].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;e.insertBefore(i[t],r)}}(e),(void 0===e.actual_end_child||null!==e.actual_end_child&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);null!==e.actual_end_child&&void 0===e.actual_end_child.claim_order;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?void 0===t.claim_order&&t.parentNode===e||e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else t.parentNode===e&&null===t.nextSibling||e.appendChild(t)}function v(e,t,n){e.insertBefore(t,n||null)}function b(e,t,n){p&&!n?g(e,t):t.parentNode===e&&t.nextSibling==n||e.insertBefore(t,n||null)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function $(e){return document.createElement(e)}function w(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function E(e){return document.createTextNode(e)}function S(){return E(" ")}function x(){return E("")}function T(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function A(e){return function(t){return t.preventDefault(),e.call(this,t)}}function N(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function P(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set?e[r]=t[r]:N(e,r,t[r])}function L(e){return Array.from(e.childNodes)}function R(e){void 0===e.claim_info&&(e.claim_info={last_index:0,total_claimed:0})}function I(e,t,n,r,s=!1){R(e);const o=(()=>{for(let r=e.claim_info.last_index;r<e.length;r++){const o=e[r];if(t(o)){const t=n(o);return void 0===t?e.splice(r,1):e[r]=t,s||(e.claim_info.last_index=r),o}}for(let r=e.claim_info.last_index-1;r>=0;r--){const o=e[r];if(t(o)){const t=n(o);return void 0===t?e.splice(r,1):e[r]=t,s?void 0===t&&e.claim_info.last_index--:e.claim_info.last_index=r,o}}return r()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function H(e,t,n,r){return I(e,(e=>e.nodeName===t),(e=>{const t=[];for(let r=0;r<e.attributes.length;r++){const s=e.attributes[r];n[s.name]||t.push(s.name)}t.forEach((t=>e.removeAttribute(t)))}),(()=>r(t)))}function k(e,t,n){return H(e,t,n,$)}function C(e,t,n){return H(e,t,n,w)}function O(e,t){return I(e,(e=>3===e.nodeType),(e=>{const n=""+t;if(e.data.startsWith(n)){if(e.data.length!==n.length)return e.splitText(n.length)}else e.data=n}),(()=>E(t)),!0)}function D(e){return O(e," ")}function U(e,t,n){for(let r=n;r<e.length;r+=1){const n=e[r];if(8===n.nodeType&&n.textContent.trim()===t)return r}return e.length}function M(e,t){const n=U(e,"HTML_TAG_START",0),r=U(e,"HTML_TAG_END",n);if(n===r)return new J(void 0,t);R(e);const s=e.splice(n,r-n+1);y(s[0]),y(s[s.length-1]);const o=s.slice(1,s.length-1);for(const t of o)t.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new J(o,t)}function G(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function j(e,t){e.value=null==t?"":t}function B(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function V(){if(void 0===h){h=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){h=!0}}return h}function q(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=$("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=V();let s;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=T(window,"message",(e=>{e.source===n.contentWindow&&t()}))):(n.src="about:blank",n.onload=()=>{s=T(n.contentWindow,"resize",t)}),function(e,t){e.appendChild(t)}(e,n),()=>{(r||s&&n.contentWindow)&&s(),y(n)}}function z(e,t){const n=[];let r=0;for(const s of t.childNodes)if(8===s.nodeType){const t=s.textContent.trim();t===`HEAD_${e}_END`?(r-=1,n.push(s)):t===`HEAD_${e}_START`&&(r+=1,n.push(s))}else r>0&&n.push(s);return n}class K{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=w(t.nodeName):this.e=$(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)v(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(y)}}class J extends K{constructor(e,t=!1){super(t),this.e=this.n=null,this.l=e}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let t=0;t<this.n.length;t+=1)b(this.t,this.n[t],e)}}function W(e,t){return new e(t)}function F(e){f=e}function Y(){if(!f)throw new Error("Function called outside component initialization");return f}function X(e){Y().$$.on_mount.push(e)}function Q(e){Y().$$.after_update.push(e)}function Z(e){Y().$$.on_destroy.push(e)}const ee=[],te=[],ne=[],re=[],se=Promise.resolve();let oe=!1;function ie(e){ne.push(e)}const ae=new Set;let ce=0;function le(){if(0!==ce)return;const e=f;do{try{for(;ce<ee.length;){const e=ee[ce];ce++,F(e),ue(e.$$)}}catch(e){throw ee.length=0,ce=0,e}for(F(null),ee.length=0,ce=0;te.length;)te.pop()();for(let e=0;e<ne.length;e+=1){const t=ne[e];ae.has(t)||(ae.add(t),t())}ne.length=0}while(ee.length);for(;re.length;)re.pop()();oe=!1,ae.clear(),F(e)}function ue(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ie)}}const de=new Set;let he;function fe(){he={r:0,c:[],p:he}}function pe(){he.r||s(he.c),he=he.p}function me(e,t){e&&e.i&&(de.delete(e),e.i(t))}function ge(e,t,n,r){if(e&&e.o){if(de.has(e))return;de.add(e),he.c.push((()=>{de.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function ve(e,t){const n={},r={},s={$$scope:1};let o=e.length;for(;o--;){const i=e[o],a=t[o];if(a){for(const e in i)e in a||(r[e]=1);for(const e in a)s[e]||(n[e]=a[e],s[e]=1);e[o]=a}else for(const e in i)s[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function be(e){return"object"==typeof e&&null!==e?e:{}}function ye(e){e&&e.c()}function _e(e,t){e&&e.l(t)}function $e(e,t,r,i){const{fragment:a,after_update:c}=e.$$;a&&a.m(t,r),i||ie((()=>{const t=e.$$.on_mount.map(n).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...t):s(t),e.$$.on_mount=[]})),c.forEach(ie)}function we(e,t){const n=e.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ee(e,t){-1===e.$$.dirty[0]&&(ee.push(e),oe||(oe=!0,se.then(le)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Se(t,n,o,i,a,c,l,u=[-1]){const d=f;F(t);const h=t.$$={fragment:null,ctx:[],props:c,update:e,not_equal:a,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};l&&l(h.root);let m=!1;if(h.ctx=o?o(t,n.props||{},((e,n,...r)=>{const s=r.length?r[0]:n;return h.ctx&&a(h.ctx[e],h.ctx[e]=s)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](s),m&&Ee(t,e)),n})):[],h.update(),m=!0,s(h.before_update),h.fragment=!!i&&i(h.ctx),n.target){if(n.hydrate){p=!0;const e=L(n.target);h.fragment&&h.fragment.l(e),e.forEach(y)}else h.fragment&&h.fragment.c();n.intro&&me(t.$$.fragment),$e(t,n.target,n.anchor,n.customElement),p=!1,le()}F(d)}class xe{$destroy(){we(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Te=[];function Ae(t,n=e){let r;const s=new Set;function o(e){if(i(t,e)&&(t=e,r)){const e=!Te.length;for(const e of s)e[1](),Te.push(e,t);if(e){for(let e=0;e<Te.length;e+=2)Te[e][0](Te[e+1]);Te.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=e){const c=[i,a];return s.add(c),1===s.size&&(r=n(o)||e),i(t),()=>{s.delete(c),0===s.size&&(r(),r=null)}}}}const Ne={};var Pe={owner:"upptime",repo:"upptime",sites:[{name:"HyDEV - Pastebin",url:"https://bin.hydev.org"},{name:"HyDEV - Lisho",url:"https://sh.hydev.org"},{name:"Daisy - Minecraft",url:"https://mc.hydev.org/dynmap"},{name:"Daisy - Overleaf Self-Hosted",url:"https://tex.hydev.org"},{name:"Daisy - Voice Tools Bot Backend",url:"https://voice-backend.hydev.org"},{name:"Server - 🇨🇦 OVH Montreal",check:"tcp-ping",url:"ovh.hydev.org",port:22},{name:"Server - 🇨🇦 Bell Toronto 'Daisy'",check:"tcp-ping",url:"daisy-ddns.hydev.org",port:22},{name:"Server - 🇱🇺 GCore Luxembourg",check:"tcp-ping",url:"lux.hydev.org",port:22},{name:"Server - 🇯🇵 Vultr Tokyo",check:"tcp-ping",url:"nix.hydev.org",port:22},{name:"Server - 🇨🇳 Aliyun 杭州",check:"tcp-ping",url:"cn.hydev.org",port:22},{name:"MCPRS - Bell",url:"https://mcprs-bell.hydev.org"},{name:"MCPRS - Luxembourg",url:"http://mcprs-lux.hydev.org"},{name:"GH - Veracross Analyzer Demo",url:"https://demo.vera.hydev.org"},{name:"GH - Arcaea Steps Calculator",url:"https://arcaea.hydev.org"},{name:"GH - Base 3000",url:"https://b3k.hydev.org"},{name:"GH - Cellular Automata",url:"https://cellular.hydev.org"},{name:"GH - CSC110 Research Report",url:"https://csc110.hydev.org/"},{name:"GH - Clash Proxy Config",url:"https://clash.hydev.org/clash.yml"},{name:"GH - NyaaMemo Demo",url:"https://nyaa.hydev.org/"}],"status-website":{cname:"uptime.hydev.org",logoUrl:"https://raw.githubusercontent.com/upptime/upptime.js.org/master/static/img/icon.svg",name:"HyDEV Status",introTitle:"HyDEV Service Status",introMessage:"This is a status page monitoring all HyDEV services, powered by [Upptime](https://github.com/upptime/upptime)",navbar:[{title:"Status",href:"/"},{title:"GitHub",href:"https://github.com/hykilpikonna"}]},path:"https://uptime.hydev.org",i18n:{activeIncidents:"Active Incidents",allSystemsOperational:"All systems are operational",incidentReport:"Incident #$NUMBER report →",activeIncidentSummary:"Opened at $DATE with $POSTS posts",incidentTitle:"Incident $NUMBER Details",incidentDetails:"Incident Details",incidentFixed:"Fixed",incidentOngoing:"Ongoing",incidentOpenedAt:"Opened at",incidentClosedAt:"Closed at",incidentViewOnGitHub:"View and Subscribe on GitHub",incidentCommentSummary:"Posted at $DATE by $AUTHOR",incidentBack:"← Back to all incidents",pastIncidents:"Past Incidents",pastIncidentsResolved:"Resolved in $MINUTES minutes with $POSTS posts",liveStatus:"Live Status",overallUptime:"Overall uptime: $UPTIME",overallUptimeTitle:"Overall uptime",averageResponseTime:"Average response time: $TIMEms",averageResponseTimeTitle:"Average response",sevelDayResponseTime:"7-day response time",responseTimeMs:"Response time (ms)",up:"Up",down:"Down",degraded:"Degraded",ms:"ms",loading:"Loading",navGitHub:"GitHub",footer:"This page is [open source]($REPO), powered by [Upptime](https://upptime.js.org)",rateLimitExceededTitle:"Rate limit exceeded",rateLimitExceededIntro:"You have exceeded the number of requests you can do in an hour, so you'll have to wait before accessing this website again. Alternately, you can add a GitHub Personal Access Token to continue to use this website.",rateLimitExceededWhatDoesErrorMean:"What does this error mean?",rateLimitExceededErrorMeaning:"This website uses the GitHub API to access real-time data about our websites' status. By default, GitHub allows each IP address 60 requests per hour, which you have consumed.",rateLimitExceededErrorHowCanFix:"How can I fix it?",rateLimitExceededErrorFix:"You can wait for another hour and your IP address' limit will be restored. Alternately, you can add your GitHub Personal Access Token, which gives you an additional 5,000 requests per hour.",rateLimitExceededGeneratePAT:"Learn how to generate a Personal Access Token",rateLimitExceededHasSet:"You have a personal access token set.",rateLimitExceededRemoveToken:"Remove token",rateLimitExceededGitHubPAT:"GitHub Personal Access Token",rateLimitExceededCopyPastePAT:"Copy and paste your token",rateLimitExceededSaveToken:"Save token",errorTitle:"An error occurred",errorIntro:"An error occurred in trying to get the latest status details.",errorText:"You can try again in a few moments.",errorHome:"Go to the homepage",pastScheduledMaintenance:"Past Scheduled Maintenance",scheduledMaintenance:"Scheduled Maintenance",scheduledMaintenanceSummaryStarted:"Started at $DATE for $DURATION minutes",scheduledMaintenanceSummaryStarts:"Starts at $DATE for $DURATION minutes",startedAt:"Started at",startsAt:"Starts at",duration:"Duration",durationMin:"$DURATION minutes",incidentCompleted:"Completed",incidentScheduled:"Scheduled"}};function Le(e,t,n){const r=e.slice();return r[1]=t[n],r}function Re(t){let n,r,s,o=Pe["status-website"]&&!Pe["status-website"].hideNavLogo&&function(t){let n,r;return{c(){n=$("img"),this.h()},l(e){n=k(e,"IMG",{alt:!0,src:!0,class:!0}),this.h()},h(){N(n,"alt",""),c(n.src,r=Pe["status-website"].logoUrl)||N(n,"src",r),N(n,"class","svelte-a08hsz")},m(e,t){b(e,n,t)},p:e,d(e){e&&y(n)}}}(),i=Pe["status-website"]&&!Pe["status-website"].hideNavTitle&&function(t){let n,r,s=Pe["status-website"].name+"";return{c(){n=$("div"),r=E(s)},l(e){n=k(e,"DIV",{});var t=L(n);r=O(t,s),t.forEach(y)},m(e,t){b(e,n,t),g(n,r)},p:e,d(e){e&&y(n)}}}();return{c(){n=$("div"),r=$("a"),o&&o.c(),s=S(),i&&i.c(),this.h()},l(e){n=k(e,"DIV",{});var t=L(n);r=k(t,"A",{href:!0,class:!0});var a=L(r);o&&o.l(a),s=D(a),i&&i.l(a),a.forEach(y),t.forEach(y),this.h()},h(){N(r,"href",Pe["status-website"].logoHref||Pe.path),N(r,"class","logo svelte-a08hsz")},m(e,t){b(e,n,t),g(n,r),o&&o.m(r,null),g(r,s),i&&i.m(r,null)},p(e,t){Pe["status-website"]&&!Pe["status-website"].hideNavLogo&&o.p(e,t),Pe["status-website"]&&!Pe["status-website"].hideNavTitle&&i.p(e,t)},d(e){e&&y(n),o&&o.d(),i&&i.d()}}}function Ie(e){let t,n,r,s,o,i=e[1].title+"";return{c(){t=$("li"),n=$("a"),r=E(i),o=S(),this.h()},l(e){t=k(e,"LI",{});var s=L(t);n=k(s,"A",{"aria-current":!0,href:!0,target:!0,class:!0});var a=L(n);r=O(a,i),a.forEach(y),o=D(s),s.forEach(y),this.h()},h(){N(n,"aria-current",s=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0),N(n,"href",e[1].href.replace("$OWNER",Pe.owner).replace("$REPO",Pe.repo)),N(n,"target",e[1].target||"_self"),N(n,"class","svelte-a08hsz")},m(e,s){b(e,t,s),g(t,n),g(n,r),g(t,o)},p(e,t){1&t&&s!==(s=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0)&&N(n,"aria-current",s)},d(e){e&&y(t)}}}function He(t){let n,r,s,o,i,a=Pe["status-website"]&&Pe["status-website"].logoUrl&&Re(),c=Pe["status-website"]&&Pe["status-website"].navbar&&function(e){let t,n=Pe["status-website"].navbar,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ie(Le(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);b(e,t,n)},p(e,s){if(1&s){let o;for(n=Pe["status-website"].navbar,o=0;o<n.length;o+=1){const i=Le(e,n,o);r[o]?r[o].p(i,s):(r[o]=Ie(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){_(r,e),e&&y(t)}}}(t),l=Pe["status-website"]&&Pe["status-website"].navbarGitHub&&!Pe["status-website"].navbar&&function(t){let n,r,s,o=Pe.i18n.navGitHub+"";return{c(){n=$("li"),r=$("a"),s=E(o),this.h()},l(e){n=k(e,"LI",{});var t=L(n);r=k(t,"A",{href:!0,class:!0});var i=L(r);s=O(i,o),i.forEach(y),t.forEach(y),this.h()},h(){N(r,"href",`https://github.com/${Pe.owner}/${Pe.repo}`),N(r,"class","svelte-a08hsz")},m(e,t){b(e,n,t),g(n,r),g(r,s)},p:e,d(e){e&&y(n)}}}();return{c(){n=$("nav"),r=$("div"),a&&a.c(),s=S(),o=$("ul"),c&&c.c(),i=S(),l&&l.c(),this.h()},l(e){n=k(e,"NAV",{class:!0});var t=L(n);r=k(t,"DIV",{class:!0});var u=L(r);a&&a.l(u),s=D(u),o=k(u,"UL",{class:!0});var d=L(o);c&&c.l(d),i=D(d),l&&l.l(d),d.forEach(y),u.forEach(y),t.forEach(y),this.h()},h(){N(o,"class","svelte-a08hsz"),N(r,"class","container svelte-a08hsz"),N(n,"class","svelte-a08hsz")},m(e,t){b(e,n,t),g(n,r),a&&a.m(r,null),g(r,s),g(r,o),c&&c.m(o,null),g(o,i),l&&l.m(o,null)},p(e,[t]){Pe["status-website"]&&Pe["status-website"].logoUrl&&a.p(e,t),Pe["status-website"]&&Pe["status-website"].navbar&&c.p(e,t),Pe["status-website"]&&Pe["status-website"].navbarGitHub&&!Pe["status-website"].navbar&&l.p(e,t)},i:e,o:e,d(e){e&&y(n),a&&a.d(),c&&c.d(),l&&l.d()}}}function ke(e,t,n){let{segment:r}=t;return e.$$set=e=>{"segment"in e&&n(0,r=e.segment)},[r]}class Ce extends xe{constructor(e){super(),Se(this,e,ke,He,i,{segment:0})}}var Oe={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function De(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function Ue(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Me(e,t){var n,r,s,o,i,a=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,c=[],l="",u=t||{},d=0;function h(e){var t=Oe[e[1]||""],n=c[c.length-1]==e;return t?t[1]?(n?c.pop():c.push(e),t[0|n]):t[0]:e}function f(){for(var e="";c.length;)e+=h(c[c.length-1]);return e}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(e,t,n){return u[t.toLowerCase()]=n,""})).replace(/^\n+|\n+$/g,"");s=a.exec(e);)r=e.substring(d,s.index),d=a.lastIndex,n=s[0],r.match(/[^\\](\\\\)*\\$/)||((i=s[3]||s[4])?n='<pre class="code '+(s[4]?"poetry":s[2].toLowerCase())+'"><code'+(s[2]?' class="language-'+s[2].toLowerCase()+'"':"")+">"+De(Ue(i).replace(/^\n+|\n+$/g,""))+"</code></pre>":(i=s[6])?(i.match(/\./)&&(s[5]=s[5].replace(/^\d+/gm,"")),o=Me(De(s[5].replace(/^\s*[>*+.-]/gm,""))),">"==i?i="blockquote":(i=i.match(/\./)?"ol":"ul",o=o.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+i+">"+o+"</"+i+">"):s[8]?n='<img src="'+Ue(s[8])+'" alt="'+Ue(s[7])+'">':s[10]?(l=l.replace("<a>",'<a href="'+Ue(s[11]||u[r.toLowerCase()])+'">'),n=f()+"</a>"):s[9]?n="<a>":s[12]||s[14]?n="<"+(i="h"+(s[14]?s[14].length:s[13]>"="?1:2))+">"+Me(s[12]||s[15],u)+"</"+i+">":s[16]?n="<code>"+Ue(s[16])+"</code>":(s[17]||s[1])&&(n=h(s[17]||"--"))),l+=r,l+=n;return(l+e.substring(d)+f()).replace(/^\n+|\n+$/g,"")}function Ge(e,t,n){const r=e.slice();return r[3]=t[n],r}function je(e,t,n){const r=e.slice();return r[3]=t[n],r}function Be(e,t,n){const r=e.slice();return r[8]=t[n],r}function Ve(t){let n;return{c(){n=$("link"),this.h()},l(e){n=k(e,"LINK",{rel:!0,href:!0}),this.h()},h(){N(n,"rel","stylesheet"),N(n,"href",`${Pe.path}/themes/${(Pe["status-website"]||{}).theme||"light"}.css`)},m(e,t){b(e,n,t)},p:e,d(e){e&&y(n)}}}function qe(t){let n;return{c(){n=$("link"),this.h()},l(e){n=k(e,"LINK",{rel:!0,href:!0}),this.h()},h(){N(n,"rel","stylesheet"),N(n,"href",(Pe["status-website"]||{}).themeUrl)},m(e,t){b(e,n,t)},p:e,d(e){e&&y(n)}}}function ze(t){let n,r;return{c(){n=$("script"),this.h()},l(e){n=k(e,"SCRIPT",{src:!0}),L(n).forEach(y),this.h()},h(){c(n.src,r=t[8].src)||N(n,"src",r),n.async=!!t[8].async,n.defer=!!t[8].async},m(e,t){b(e,n,t)},p:e,d(e){e&&y(n)}}}function Ke(t){let n;return{c(){n=$("link"),this.h()},l(e){n=k(e,"LINK",{rel:!0,href:!0,media:!0}),this.h()},h(){N(n,"rel",t[3].rel),N(n,"href",t[3].href),N(n,"media",t[3].media)},m(e,t){b(e,n,t)},p:e,d(e){e&&y(n)}}}function Je(t){let n;return{c(){n=$("meta"),this.h()},l(e){n=k(e,"META",{name:!0,content:!0}),this.h()},h(){N(n,"name",t[3].name),N(n,"content",t[3].content)},m(e,t){b(e,n,t)},p:e,d(e){e&&y(n)}}}function We(t){let n,r,s,o,i,a,c,u,d,h,f,p,m,v,w,E,T,A,P=Me(Pe.i18n.footer.replace(/\$REPO/,`https://github.com/${Pe.owner}/${Pe.repo}`))+"",R=(Pe["status-website"]||{}).customHeadHtml&&function(t){let n,r,s=(Pe["status-website"]||{}).customHeadHtml+"";return{c(){n=new J(!1),r=x(),this.h()},l(e){n=M(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),b(e,r,t)},p:e,d(e){e&&y(r),e&&n.d()}}}();let I=((Pe["status-website"]||{}).themeUrl?qe:Ve)(t),H=(Pe["status-website"]||{}).scripts&&function(e){let t,n=(Pe["status-website"]||{}).scripts,r=[];for(let t=0;t<n.length;t+=1)r[t]=ze(Be(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);b(e,t,n)},p(e,s){if(0&s){let o;for(n=(Pe["status-website"]||{}).scripts,o=0;o<n.length;o+=1){const i=Be(e,n,o);r[o]?r[o].p(i,s):(r[o]=ze(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){_(r,e),e&&y(t)}}}(t),C=(Pe["status-website"]||{}).links&&function(e){let t,n=(Pe["status-website"]||{}).links,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ke(je(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);b(e,t,n)},p(e,s){if(0&s){let o;for(n=(Pe["status-website"]||{}).links,o=0;o<n.length;o+=1){const i=je(e,n,o);r[o]?r[o].p(i,s):(r[o]=Ke(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){_(r,e),e&&y(t)}}}(t),O=(Pe["status-website"]||{}).metaTags&&function(e){let t,n=(Pe["status-website"]||{}).metaTags,r=[];for(let t=0;t<n.length;t+=1)r[t]=Je(Ge(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);b(e,t,n)},p(e,s){if(0&s){let o;for(n=(Pe["status-website"]||{}).metaTags,o=0;o<n.length;o+=1){const i=Ge(e,n,o);r[o]?r[o].p(i,s):(r[o]=Je(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){_(r,e),e&&y(t)}}}(t),U=Pe["status-website"].css&&function(t){let n,r,s=`<style>${Pe["status-website"].css}</style>`;return{c(){n=new J(!1),r=x(),this.h()},l(e){n=M(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),b(e,r,t)},p:e,d(e){e&&y(r),e&&n.d()}}}(),G=Pe["status-website"].js&&function(t){let n,r,s=`<script>${Pe["status-website"].js}<\/script>`;return{c(){n=new J(!1),r=x(),this.h()},l(e){n=M(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),b(e,r,t)},p:e,d(e){e&&y(r),e&&n.d()}}}(),j=(Pe["status-website"]||{}).customBodyHtml&&function(t){let n,r,s=(Pe["status-website"]||{}).customBodyHtml+"";return{c(){n=new J(!1),r=x(),this.h()},l(e){n=M(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),b(e,r,t)},p:e,d(e){e&&y(r),e&&n.d()}}}();p=new Ce({props:{segment:t[0]}});const B=t[2].default,V=function(e,t,n,r){if(e){const s=l(e,t,n,r);return e[0](s)}}(B,t,t[1],null);return{c(){R&&R.c(),n=x(),I.c(),r=$("link"),s=$("link"),o=$("link"),H&&H.c(),i=x(),C&&C.c(),a=x(),O&&O.c(),c=x(),U&&U.c(),u=x(),G&&G.c(),d=x(),h=S(),j&&j.c(),f=S(),ye(p.$$.fragment),m=S(),v=$("main"),V&&V.c(),w=S(),E=$("footer"),T=$("p"),this.h()},l(e){const t=z("svelte-fmspuk",document.head);R&&R.l(t),n=x(),I.l(t),r=k(t,"LINK",{rel:!0,href:!0}),s=k(t,"LINK",{rel:!0,type:!0,href:!0}),o=k(t,"LINK",{rel:!0,type:!0,href:!0}),H&&H.l(t),i=x(),C&&C.l(t),a=x(),O&&O.l(t),c=x(),U&&U.l(t),u=x(),G&&G.l(t),d=x(),t.forEach(y),h=D(e),j&&j.l(e),f=D(e),_e(p.$$.fragment,e),m=D(e),v=k(e,"MAIN",{class:!0});var l=L(v);V&&V.l(l),l.forEach(y),w=D(e),E=k(e,"FOOTER",{class:!0});var g=L(E);T=k(g,"P",{}),L(T).forEach(y),g.forEach(y),this.h()},h(){N(r,"rel","stylesheet"),N(r,"href",`${Pe.path}/global.css`),N(s,"rel","icon"),N(s,"type","image/svg"),N(s,"href",(Pe["status-website"]||{}).faviconSvg||(Pe["status-website"]||{}).favicon||"https://raw.githubusercontent.com/upptime/upptime/master/assets/upptime-icon.svg"),N(o,"rel","icon"),N(o,"type","image/png"),N(o,"href",(Pe["status-website"]||{}).favicon||"/logo-192.png"),N(v,"class","container"),N(E,"class","svelte-jbr799")},m(e,t){R&&R.m(document.head,null),g(document.head,n),I.m(document.head,null),g(document.head,r),g(document.head,s),g(document.head,o),H&&H.m(document.head,null),g(document.head,i),C&&C.m(document.head,null),g(document.head,a),O&&O.m(document.head,null),g(document.head,c),U&&U.m(document.head,null),g(document.head,u),G&&G.m(document.head,null),g(document.head,d),b(e,h,t),j&&j.m(e,t),b(e,f,t),$e(p,e,t),b(e,m,t),b(e,v,t),V&&V.m(v,null),b(e,w,t),b(e,E,t),g(E,T),T.innerHTML=P,A=!0},p(e,[t]){(Pe["status-website"]||{}).customHeadHtml&&R.p(e,t),I.p(e,t),(Pe["status-website"]||{}).scripts&&H.p(e,t),(Pe["status-website"]||{}).links&&C.p(e,t),(Pe["status-website"]||{}).metaTags&&O.p(e,t),Pe["status-website"].css&&U.p(e,t),Pe["status-website"].js&&G.p(e,t),(Pe["status-website"]||{}).customBodyHtml&&j.p(e,t);const n={};1&t&&(n.segment=e[0]),p.$set(n),V&&V.p&&(!A||2&t)&&function(e,t,n,r,s,o){if(s){const i=l(t,n,r,o);e.p(i,s)}}(V,B,e,e[1],A?function(e,t,n,r){if(e[2]&&r){const s=e[2](r(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|s[r];return e}return t.dirty|s}return t.dirty}(B,e[1],t,null):function(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}(e[1]),null)},i(e){A||(me(p.$$.fragment,e),me(V,e),A=!0)},o(e){ge(p.$$.fragment,e),ge(V,e),A=!1},d(e){R&&R.d(e),y(n),I.d(e),y(r),y(s),y(o),H&&H.d(e),y(i),C&&C.d(e),y(a),O&&O.d(e),y(c),U&&U.d(e),y(u),G&&G.d(e),y(d),e&&y(h),j&&j.d(e),e&&y(f),we(p,e),e&&y(m),e&&y(v),V&&V.d(e),e&&y(w),e&&y(E)}}}function Fe(e,t,n){let{$$slots:r={},$$scope:s}=t,{segment:o}=t;return e.$$set=e=>{"segment"in e&&n(0,o=e.segment),"$$scope"in e&&n(1,s=e.$$scope)},[o,s,r]}class Ye extends xe{constructor(e){super(),Se(this,e,Fe,We,i,{segment:0})}}function Xe(e){let t,n,r=e[1].stack+"";return{c(){t=$("pre"),n=E(r)},l(e){t=k(e,"PRE",{});var s=L(t);n=O(s,r),s.forEach(y)},m(e,r){b(e,t,r),g(t,n)},p(e,t){2&t&&r!==(r=e[1].stack+"")&&G(n,r)},d(e){e&&y(t)}}}function Qe(t){let n,r,s,o,i,a,c,l,u,d=t[1].message+"";document.title=n=t[0];let h=t[2]&&t[1].stack&&Xe(t);return{c(){r=S(),s=$("h1"),o=E(t[0]),i=S(),a=$("p"),c=E(d),l=S(),h&&h.c(),u=x(),this.h()},l(e){z("svelte-1moakz",document.head).forEach(y),r=D(e),s=k(e,"H1",{class:!0});var n=L(s);o=O(n,t[0]),n.forEach(y),i=D(e),a=k(e,"P",{class:!0});var f=L(a);c=O(f,d),f.forEach(y),l=D(e),h&&h.l(e),u=x(),this.h()},h(){N(s,"class","svelte-17w3omn"),N(a,"class","svelte-17w3omn")},m(e,t){b(e,r,t),b(e,s,t),g(s,o),b(e,i,t),b(e,a,t),g(a,c),b(e,l,t),h&&h.m(e,t),b(e,u,t)},p(e,[t]){1&t&&n!==(n=e[0])&&(document.title=n),1&t&&G(o,e[0]),2&t&&d!==(d=e[1].message+"")&&G(c,d),e[2]&&e[1].stack?h?h.p(e,t):(h=Xe(e),h.c(),h.m(u.parentNode,u)):h&&(h.d(1),h=null)},i:e,o:e,d(e){e&&y(r),e&&y(s),e&&y(i),e&&y(a),e&&y(l),h&&h.d(e),e&&y(u)}}}function Ze(e,t,n){let{status:r}=t,{error:s}=t;return e.$$set=e=>{"status"in e&&n(0,r=e.status),"error"in e&&n(1,s=e.error)},[r,s,false]}class et extends xe{constructor(e){super(),Se(this,e,Ze,Qe,i,{status:0,error:1})}}function tt(e){let n,r,s;const o=[e[4].props];var i=e[4].component;function a(e){let n={};for(let e=0;e<o.length;e+=1)n=t(n,o[e]);return{props:n}}return i&&(n=W(i,a())),{c(){n&&ye(n.$$.fragment),r=x()},l(e){n&&_e(n.$$.fragment,e),r=x()},m(e,t){n&&$e(n,e,t),b(e,r,t),s=!0},p(e,t){const s=16&t?ve(o,[be(e[4].props)]):{};if(i!==(i=e[4].component)){if(n){fe();const e=n;ge(e.$$.fragment,1,0,(()=>{we(e,1)})),pe()}i?(n=W(i,a()),ye(n.$$.fragment),me(n.$$.fragment,1),$e(n,r.parentNode,r)):n=null}else i&&n.$set(s)},i(e){s||(n&&me(n.$$.fragment,e),s=!0)},o(e){n&&ge(n.$$.fragment,e),s=!1},d(e){e&&y(r),n&&we(n,e)}}}function nt(e){let t,n;return t=new et({props:{error:e[0],status:e[1]}}),{c(){ye(t.$$.fragment)},l(e){_e(t.$$.fragment,e)},m(e,r){$e(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.error=e[0]),2&n&&(r.status=e[1]),t.$set(r)},i(e){n||(me(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){we(t,e)}}}function rt(e){let t,n,r,s;const o=[nt,tt],i=[];function a(e,t){return e[0]?0:1}return t=a(e),n=i[t]=o[t](e),{c(){n.c(),r=x()},l(e){n.l(e),r=x()},m(e,n){i[t].m(e,n),b(e,r,n),s=!0},p(e,s){let c=t;t=a(e),t===c?i[t].p(e,s):(fe(),ge(i[c],1,1,(()=>{i[c]=null})),pe(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),me(n,1),n.m(r.parentNode,r))},i(e){s||(me(n),s=!0)},o(e){ge(n),s=!1},d(e){i[t].d(e),e&&y(r)}}}function st(e){let n,r;const s=[{segment:e[2][0]},e[3].props];let o={$$slots:{default:[rt]},$$scope:{ctx:e}};for(let e=0;e<s.length;e+=1)o=t(o,s[e]);return n=new Ye({props:o}),{c(){ye(n.$$.fragment)},l(e){_e(n.$$.fragment,e)},m(e,t){$e(n,e,t),r=!0},p(e,[t]){const r=12&t?ve(s,[4&t&&{segment:e[2][0]},8&t&&be(e[3].props)]):{};147&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(me(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){we(n,e)}}}function ot(e,t,n){let{stores:r}=t,{error:s}=t,{status:o}=t,{segments:i}=t,{level0:a}=t,{level1:c=null}=t,{notify:l}=t;var u,d;return Q(l),u=Ne,d=r,Y().$$.context.set(u,d),e.$$set=e=>{"stores"in e&&n(5,r=e.stores),"error"in e&&n(0,s=e.error),"status"in e&&n(1,o=e.status),"segments"in e&&n(2,i=e.segments),"level0"in e&&n(3,a=e.level0),"level1"in e&&n(4,c=e.level1),"notify"in e&&n(6,l=e.notify)},[s,o,i,a,c,r,l]}class it extends xe{constructor(e){super(),Se(this,e,ot,st,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const at=[],ct=[{js:()=>Promise.all([import("./index.648fb283.js"),__inject_styles(["client-0275e36e.css","createOctokit-865318f3.css","index-e08df70b.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./rate-limit-exceeded.442ece6b.js"),__inject_styles(["client-0275e36e.css","rate-limit-exceeded-ec20dc01.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./_number_.2ad6cbce.js"),__inject_styles(["client-0275e36e.css","createOctokit-865318f3.css","_number_-a58f5d99.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./_number_.03775188.js"),__inject_styles(["client-0275e36e.css","createOctokit-865318f3.css","_number_-9a5d58bf.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./error.49cb7f6c.js"),__inject_styles(["client-0275e36e.css","error-64ad0d96.css"])]).then((function(e){return e[0]}))}],lt=(ut=decodeURIComponent,[{pattern:/^\/$/,parts:[{i:0}]},{pattern:/^\/rate-limit-exceeded\/?$/,parts:[{i:1}]},{pattern:/^\/incident\/([^/]+?)\/?$/,parts:[null,{i:2,params:e=>({number:ut(e[1])})}]},{pattern:/^\/history\/([^/]+?)\/?$/,parts:[null,{i:3,params:e=>({number:ut(e[1])})}]},{pattern:/^\/error\/?$/,parts:[{i:4}]}]);var ut;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function dt(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))}function ht(e){for(;e&&"A"!==e.nodeName.toUpperCase();)e=e.parentNode;return e}let ft,pt=1;const mt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},gt={};let vt,bt;function yt(e){const t=Object.create(null);return e.length?(e=>"undefined"!=typeof URLSearchParams?[...new URLSearchParams(e).entries()]:e.slice(1).split("&").map((e=>{const[,t,n=""]=/([^=]*)(?:=([\S\s]*))?/.exec(decodeURIComponent(e.replace(/\+/g," ")));return[t,n]})))(e).reduce(((e,[t,n])=>("string"==typeof e[t]&&(e[t]=[e[t]]),"object"==typeof e[t]?e[t].push(n):e[t]=n,e)),t):t}function _t(e){if(e.origin!==location.origin)return null;if(!e.pathname.startsWith(vt))return null;let t=e.pathname.slice(vt.length);if(""===t&&(t="/"),!at.some((e=>e.test(t))))for(let n=0;n<lt.length;n+=1){const r=lt[n],s=r.pattern.exec(t);if(s){const n=yt(e.search),o=r.parts[r.parts.length-1],i=o.params?o.params(s):{},a={host:location.host,path:t,query:n,params:i};return{href:e.href,route:r,match:s,page:a}}}}function $t(e){if(1!==function(e){return null===e.which?e.button:e.which}(e))return;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;if(e.defaultPrevented)return;const t=ht(e.target);if(!t)return;if(!t.href)return;const n="object"==typeof t.href&&"SVGAnimatedString"===t.href.constructor.name,r=String(n?t.href.baseVal:t.href);if(r===location.href)return void(location.hash||e.preventDefault());if(t.hasAttribute("download")||"external"===t.getAttribute("rel"))return;if(n?t.target.baseVal:t.target)return;const s=new URL(r);if(s.pathname===location.pathname&&s.search===location.search)return;const o=_t(s);if(o){St(o,null,t.hasAttribute("sapper:noscroll"),s.hash),e.preventDefault(),mt.pushState({id:ft},"",s.href)}}function wt(){return{x:pageXOffset,y:pageYOffset}}function Et(e){if(gt[ft]=wt(),e.state){const t=_t(new URL(location.href));t?St(t,e.state.id):location.href=location.href}else!function(e){pt=e}(pt+1),function(e){ft=e}(pt),mt.replaceState({id:ft},"",location.href)}function St(e,t,n,r){return dt(this,void 0,void 0,(function*(){const s=!!t;if(s)ft=t;else{const e=wt();gt[ft]=e,ft=t=++pt,gt[ft]=n?e:{x:0,y:0}}if(yield bt(e),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let e,n=gt[t];r&&(e=document.getElementById(r.slice(1)),e&&(n={x:0,y:e.getBoundingClientRect().top+scrollY})),gt[ft]=n,n&&(s||e)?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function xt(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}let Tt,At=null;function Nt(e){const t=ht(e.target);t&&t.hasAttribute("sapper:prefetch")&&function(e){const t=_t(new URL(e,xt(document)));if(t)At&&e===At.href||(At={href:e,promise:zt(t)}),At.promise}(t.href)}function Pt(e){clearTimeout(Tt),Tt=setTimeout((()=>{Nt(e)}),20)}function Lt(e,t={noscroll:!1,replaceState:!1}){const n=_t(new URL(e,xt(document)));if(n){const r=St(n,null,t.noscroll);return mt[t.replaceState?"replaceState":"pushState"]({id:ft},"",e),r}return location.href=e,new Promise((()=>{}))}const Rt="undefined"!=typeof __SAPPER__&&__SAPPER__;let It,Ht,kt,Ct=!1,Ot=[],Dt="{}";const Ut={page:function(e){const t=Ae(e);let n=!0;return{notify:function(){n=!0,t.update((e=>e))},set:function(e){n=!1,t.set(e)},subscribe:function(e){let r;return t.subscribe((t=>{(void 0===r||n&&t!==r)&&e(r=t)}))}}}({}),preloading:Ae(null),session:Ae(Rt&&Rt.session)};let Mt,Gt,jt;function Bt(e,t){const{error:n}=e;return Object.assign({error:n},t)}function Vt(e){return dt(this,void 0,void 0,(function*(){It&&Ut.preloading.set(!0);const t=function(e){return At&&At.href===e.href?At.promise:zt(e)}(e),n=Ht={},r=yield t,{redirect:s}=r;if(n===Ht)if(s)yield Lt(s.location,{replaceState:!0});else{const{props:t,branch:n}=r;yield qt(n,t,Bt(t,e.page))}}))}function qt(e,t,n){return dt(this,void 0,void 0,(function*(){Ut.page.set(n),Ut.preloading.set(!1),It?It.$set(t):(t.stores={page:{subscribe:Ut.page.subscribe},preloading:{subscribe:Ut.preloading.subscribe},session:Ut.session},t.level0={props:yield kt},t.notify=Ut.page.notify,It=new it({target:jt,props:t,hydrate:!0})),Ot=e,Dt=JSON.stringify(n.query),Ct=!0,Gt=!1}))}function zt(e){return dt(this,void 0,void 0,(function*(){const{route:t,page:n}=e,r=n.path.split("/").filter(Boolean);let s=null;const o={error:null,status:200,segments:[r[0]]},i={fetch:(e,t)=>fetch(e,t),redirect:(e,t)=>{if(s&&(s.statusCode!==e||s.location!==t))throw new Error("Conflicting redirects");s={statusCode:e,location:t}},error:(e,t)=>{o.error="string"==typeof t?new Error(t):t,o.status=e}};if(!kt){const e=()=>({});kt=Rt.preloaded[0]||e.call(i,{host:n.host,path:n.path,query:n.query,params:{}},Mt)}let a,c=1;try{const s=JSON.stringify(n.query),l=t.pattern.exec(n.path);let u=!1;a=yield Promise.all(t.parts.map(((t,a)=>dt(this,void 0,void 0,(function*(){const d=r[a];if(function(e,t,n,r){if(r!==Dt)return!0;const s=Ot[e];return!!s&&(t!==s.segment||!(!s.match||JSON.stringify(s.match.slice(1,e+2))===JSON.stringify(n.slice(1,e+2)))||void 0)}(a,d,l,s)&&(u=!0),o.segments[c]=r[a+1],!t)return{segment:d};const h=c++;let f;if(Gt||u||!Ot[a]||Ot[a].part!==t.i){u=!1;const{default:r,preload:s}=yield ct[t.i].js();let o;o=Ct||!Rt.preloaded[a+1]?s?yield s.call(i,{host:n.host,path:n.path,query:n.query,params:t.params?t.params(e.match):{}},Mt):{}:Rt.preloaded[a+1],f={component:r,props:o,segment:d,match:l,part:t.i}}else f=Ot[a];return o[`level${h}`]=f})))))}catch(e){o.error=e,o.status=500,a=[]}return{redirect:s,props:o,branch:a}}))}var Kt,Jt,Wt;Ut.session.subscribe((e=>dt(void 0,void 0,void 0,(function*(){if(Mt=e,!Ct)return;Gt=!0;const t=_t(new URL(location.href)),n=Ht={},{redirect:r,props:s,branch:o}=yield zt(t);n===Ht&&(r?yield Lt(r.location,{replaceState:!0}):yield qt(o,s,Bt(s,t.page)))})))),Kt={target:document.querySelector("#sapper")},Jt=Kt.target,jt=Jt,Wt=Rt.baseUrl,vt=Wt,bt=Vt,"scrollRestoration"in mt&&(mt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{mt.scrollRestoration="auto"})),addEventListener("load",(()=>{mt.scrollRestoration="manual"})),addEventListener("click",$t),addEventListener("popstate",Et),addEventListener("touchstart",Nt),addEventListener("mousemove",Pt),Rt.error?Promise.resolve().then((()=>function(){const{host:e,pathname:t,search:n}=location,{session:r,preloaded:s,status:o,error:i}=Rt;kt||(kt=s&&s[0]);const a={error:i,status:o,session:r,level0:{props:kt},level1:{props:{status:o,error:i},component:et},segments:s},c=yt(n);qt([],a,{host:e,path:t,query:c,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:e,href:t}=location;mt.replaceState({id:pt},"",t);const n=_t(new URL(location.href));if(n)return St(n,pt,!0,e)}));export{G as A,T as B,s as C,te as D,M as E,c as F,d as G,J as H,B as I,z as J,Me as K,w as L,C as M,Lt as N,j as O,A as P,t as Q,P as R,xe as S,ve as T,Q as U,Z as V,u as W,be as X,ie as Y,q as Z,S as a,k as b,D as c,L as d,$ as e,y as f,N as g,b as h,Se as i,fe as j,pe as k,me as l,E as m,O as n,X as o,g as p,e as q,Pe as r,i as s,ge as t,x as u,_ as v,ye as w,_e as x,$e as y,we as z};
import __inject_styles from './inject_styles.803b7e80.js';