import{S as e,i as r,s,e as o,M as t,b as n,d as i,N as a,f as c,g as p,r as l,h as u,p as d,q as g}from"./client.77cce378.js";function m(e){let r,s,m,E,T,h,b;return{c(){r=o("div"),s=t("svg"),m=t("g"),E=t("g"),T=t("circle"),h=t("path"),b=t("animateTransform"),this.h()},l(e){r=n(e,"DIV",{class:!0});var o=i(r);s=a(o,"svg",{width:!0,height:!0,xmlns:!0,stroke:!0,title:!0,class:!0});var t=i(s);m=a(t,"g",{fill:!0,"fill-rule":!0});var p=i(m);E=a(p,"g",{transform:!0,"stroke-width":!0});var l=i(E);T=a(l,"circle",{"stroke-opacity":!0,cx:!0,cy:!0,r:!0}),i(T).forEach(c),h=a(l,"path",{d:!0});var u=i(h);b=a(u,"animateTransform",{attributeName:!0,type:!0,from:!0,to:!0,dur:!0,repeatCount:!0}),i(b).forEach(c),u.forEach(c),l.forEach(c),p.forEach(c),t.forEach(c),o.forEach(c),this.h()},h(){p(T,"stroke-opacity",".5"),p(T,"cx","18"),p(T,"cy","18"),p(T,"r","18"),p(b,"attributeName","transform"),p(b,"type","rotate"),p(b,"from","0 18 18"),p(b,"to","360 18 18"),p(b,"dur","1s"),p(b,"repeatCount","indefinite"),p(h,"d","M36 18c0-9.94-8.06-18-18-18"),p(E,"transform","translate(1 1)"),p(E,"stroke-width","2"),p(m,"fill","none"),p(m,"fill-rule","evenodd"),p(s,"width","38"),p(s,"height","38"),p(s,"xmlns","http://www.w3.org/2000/svg"),p(s,"stroke","#aaa"),p(s,"title",l.loading),p(s,"class","svelte-68jxue"),p(r,"class","loading svelte-68jxue")},m(e,o){u(e,r,o),d(r,s),d(s,m),d(m,E),d(E,T),d(E,h),d(h,b)},p:g,i:g,o:g,d(e){e&&c(r)}}}class E extends e{constructor(e){super(),r(this,e,null,m,s,{})}}function T(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?"Node.js/".concat(process.version.substr(1)," (").concat(process.platform,"; ").concat(process.arch,")"):""}var h=function e(r,s,o,t){if("function"!=typeof o)throw new Error("method for before hook must be a function");t||(t={});if(Array.isArray(s))return s.reverse().reduce((function(s,o){return e.bind(null,r,o,s,t)}),o)();return Promise.resolve().then((function(){return r.registry[s]?r.registry[s].reduce((function(e,r){return r.hook.bind(null,e,t)}),o)():o(t)}))};var b=function(e,r,s,o){var t=o;e.registry[s]||(e.registry[s]=[]);"before"===r&&(o=function(e,r){return Promise.resolve().then(t.bind(null,r)).then(e.bind(null,r))});"after"===r&&(o=function(e,r){var s;return Promise.resolve().then(e.bind(null,r)).then((function(e){return t(s=e,r)})).then((function(){return s}))});"error"===r&&(o=function(e,r){return Promise.resolve().then(e.bind(null,r)).catch((function(e){return t(e,r)}))});e.registry[s].push({hook:o,orig:t})};var w=function(e,r,s){if(!e.registry[r])return;var o=e.registry[r].map((function(e){return e.orig})).indexOf(s);if(-1===o)return;e.registry[r].splice(o,1)};var _=Function.bind,f=_.bind(_);function k(e,r,s){var o=f(w,null).apply(null,s?[r,s]:[r]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach((function(o){var t=s?[r,o,s]:[r,o];e[o]=e.api[o]=f(b,null).apply(null,t)}))}function G(){var e={registry:{}},r=h.bind(null,e);return k(r,e),r}var P=!1;function y(){return P||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),P=!0),G()}y.Singular=function(){var e={registry:{}},r=h.bind(null,e,"h");return k(r,e,"h"),r}.bind(),y.Collection=G.bind();var v=y,A=y,O=y.Singular,F=y.Collection; /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function U(e){var r,s;return!1!==S(e)&&(void 0===(r=e.constructor)||!1!==S(s=r.prototype)&&!1!==s.hasOwnProperty("isPrototypeOf"))}function R(e,r){const s=Object.assign({},e);return Object.keys(r).forEach((o=>{U(r[o])?o in e?s[o]=R(e[o],r[o]):Object.assign(s,{[o]:r[o]}):Object.assign(s,{[o]:r[o]})})),s}function D(e){for(const r in e)void 0===e[r]&&delete e[r];return e}function C(e,r,s){if("string"==typeof r){let[e,o]=r.split(" ");s=Object.assign(o?{method:e,url:o}:{url:e},s)}else s=Object.assign({},r);var o;s.headers=(o=s.headers)?Object.keys(o).reduce(((e,r)=>(e[r.toLowerCase()]=o[r],e)),{}):{},D(s),D(s.headers);const t=R(e||{},s);return e&&e.mediaType.previews.length&&(t.mediaType.previews=e.mediaType.previews.filter((e=>!t.mediaType.previews.includes(e))).concat(t.mediaType.previews)),t.mediaType.previews=t.mediaType.previews.map((e=>e.replace(/-preview/,""))),t}v.Hook=A,v.Singular=O,v.Collection=F;const L=/\{[^}]+\}/g;function j(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function I(e,r){return Object.keys(e).filter((e=>!r.includes(e))).reduce(((r,s)=>(r[s]=e[s],r)),{})}function q(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function H(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function W(e,r,s){return r="+"===e||"#"===e?q(r):H(r),s?H(s)+"="+r:r}function B(e){return null!=e}function x(e){return";"===e||"&"===e||"?"===e}function z(e,r){var s=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,o,t){if(o){let e="";const t=[];if(-1!==s.indexOf(o.charAt(0))&&(e=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach((function(s){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);t.push(function(e,r,s,o){var t=e[s],n=[];if(B(t)&&""!==t)if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)t=t.toString(),o&&"*"!==o&&(t=t.substring(0,parseInt(o,10))),n.push(W(r,t,x(r)?s:""));else if("*"===o)Array.isArray(t)?t.filter(B).forEach((function(e){n.push(W(r,e,x(r)?s:""))})):Object.keys(t).forEach((function(e){B(t[e])&&n.push(W(r,t[e],e))}));else{const e=[];Array.isArray(t)?t.filter(B).forEach((function(s){e.push(W(r,s))})):Object.keys(t).forEach((function(s){B(t[s])&&(e.push(H(s)),e.push(W(r,t[s].toString())))})),x(r)?n.push(H(s)+"="+e.join(",")):0!==e.length&&n.push(e.join(","))}else";"===r?B(t)&&n.push(H(s)):""!==t||"&"!==r&&"?"!==r?""===t&&n.push(""):n.push(H(s)+"=");return n}(r,e,o[1],o[2]||o[3]))})),e&&"+"!==e){var n=",";return"?"===e?n="&":"#"!==e&&(n=e),(0!==t.length?e:"")+t.join(n)}return t.join(",")}return q(t)}))}function K(e){let r,s=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),t=Object.assign({},e.headers),n=I(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const r=e.match(L);return r?r.map(j).reduce(((e,r)=>e.concat(r)),[]):[]}(o);var a;o=(a=o,{expand:z.bind(null,a)}).expand(n),/^http/.test(o)||(o=e.baseUrl+o);const c=I(n,Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(t.accept)&&(e.mediaType.format&&(t.accept=t.accept.split(/,/).map((r=>r.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2.".concat(e.mediaType.format)))).join(",")),e.mediaType.previews.length)){const r=t.accept.match(/[\w-]+(?=-preview)/g)||[];t.accept=r.concat(e.mediaType.previews).map((r=>{const s=e.mediaType.format?".".concat(e.mediaType.format):"+json";return"application/vnd.github.".concat(r,"-preview").concat(s)})).join(",")}return["GET","HEAD"].includes(s)?o=function(e,r){const s=/\?/.test(e)?"&":"?",o=Object.keys(r);return 0===o.length?e:e+s+o.map((e=>"q"===e?"q="+r.q.split("+").map(encodeURIComponent).join("+"):"".concat(e,"=").concat(encodeURIComponent(r[e])))).join("&")}(o,c):"data"in c?r=c.data:Object.keys(c).length?r=c:t["content-length"]=0,t["content-type"]||void 0===r||(t["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(s)&&void 0===r&&(r=""),Object.assign({method:s,url:o,headers:t},void 0!==r?{body:r}:null,e.request?{request:e.request}:null)}function M(e,r,s){return K(C(e,r,s))}const V=function e(r,s){const o=C(r,s),t=M.bind(null,o);return Object.assign(t,{DEFAULTS:o,defaults:e.bind(null,o),merge:C.bind(null,o),parse:K})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/".concat("6.0.12"," ").concat(T())},mediaType:{format:"",previews:[]}});var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var J,$,Z=(J=function(e,r){var s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==N)return N;throw new Error("unable to locate global object")}();e.exports=r=s.fetch,s.fetch&&(r.default=s.fetch.bind(s)),r.Headers=s.Headers,r.Request=s.Request,r.Response=s.Response},J($={exports:{}},$.exports),$.exports);class Y extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Q=function e(r,s){if(r&&s)return e(r)(s);if("function"!=typeof r)throw new TypeError("need wrapper function");return Object.keys(r).forEach((function(e){o[e]=r[e]})),o;function o(){for(var e=new Array(arguments.length),s=0;sconsole.warn(e))),te=X((e=>console.warn(e)));class ne extends Error{constructor(e,r,s){let o;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=r,"headers"in s&&void 0!==s.headers&&(o=s.headers),"response"in s&&(this.response=s.response,o=s.response.headers);const t=Object.assign({},s.request);s.request.headers.authorization&&(t.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),t.url=t.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=t,Object.defineProperty(this,"code",{get:()=>(oe(new Y("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),r)}),Object.defineProperty(this,"headers",{get:()=>(te(new Y("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),o||{})})}}function ie(e){const r=e.request&&e.request.log?e.request.log:console;(U(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let s,o,t={};return(e.request&&e.request.fetch||Z)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async n=>{o=n.url,s=n.status;for(const e of n.headers)t[e[0]]=e[1];if("deprecation"in t){const s=t.link&&t.link.match(/<([^>]+)>; rel="deprecation"/),o=s&&s.pop();r.warn('[@octokit/request] "'.concat(e.method," ").concat(e.url,'" is deprecated. It is scheduled to be removed on ').concat(t.sunset).concat(o?". See ".concat(o):""))}if(204!==s&&205!==s){if("HEAD"===e.method){if(s<400)return;throw new ne(n.statusText,s,{response:{url:o,status:s,headers:t,data:void 0},request:e})}if(304===s)throw new ne("Not modified",s,{response:{url:o,status:s,headers:t,data:await ae(n)},request:e});if(s>=400){const r=await ae(n),i=new ne(function(e){if("string"==typeof e)return e;if("message"in e)return Array.isArray(e.errors)?"".concat(e.message,": ").concat(e.errors.map(JSON.stringify).join(", ")):e.message;return"Unknown error: ".concat(JSON.stringify(e))}(r),s,{response:{url:o,status:s,headers:t,data:r},request:e});throw i}return ae(n)}})).then((e=>({status:s,url:o,headers:t,data:e}))).catch((r=>{if(r instanceof ne)throw r;throw new ne(r.message,500,{request:e})}))}async function ae(e){const r=e.headers.get("content-type");return/application\/json/.test(r)?e.json():!r||/^text\/|charset=utf-8$/.test(r)?e.text():function(e){return e.arrayBuffer()}(e)}const ce=function e(r,s){const o=r.defaults(s);return Object.assign((function(r,s){const t=o.merge(r,s);if(!t.request||!t.request.hook)return ie(o.parse(t));const n=(e,r)=>ie(o.parse(o.merge(e,r)));return Object.assign(n,{endpoint:o,defaults:e.bind(null,o)}),t.request.hook(n,t)}),{endpoint:o,defaults:e.bind(null,o)})}(V,{headers:{"user-agent":"octokit-request.js/".concat("5.6.3"," ").concat(T())}});class pe extends Error{constructor(e,r,s){super("Request failed due to following response errors:\n"+s.errors.map((e=>" - ".concat(e.message))).join("\n")),this.request=e,this.headers=r,this.response=s,this.name="GraphqlResponseError",this.errors=s.errors,this.data=s.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const le=["method","baseUrl","url","headers","request","query","mediaType"],ue=["query","method","url"],de=/\/api\/v3\/?$/;function ge(e,r){const s=e.defaults(r);return Object.assign(((e,r)=>function(e,r,s){if(s){if("string"==typeof r&&"query"in s)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in s)if(ue.includes(e))return Promise.reject(new Error('[@octokit/graphql] "'.concat(e,'" cannot be used as variable name')))}const o="string"==typeof r?Object.assign({query:r},s):r,t=Object.keys(o).reduce(((e,r)=>le.includes(r)?(e[r]=o[r],e):(e.variables||(e.variables={}),e.variables[r]=o[r],e)),{}),n=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return de.test(n)&&(t.url=n.replace(de,"/api/graphql")),e(t).then((e=>{if(e.data.errors){const r={};for(const s of Object.keys(e.headers))r[s]=e.headers[s];throw new pe(t,r,e.data)}return e.data.data}))}(s,e,r)),{defaults:ge.bind(null,s),endpoint:ce.endpoint})}ge(ce,{headers:{"user-agent":"octokit-graphql.js/".concat("4.8.0"," ").concat(T())},method:"POST",url:"/graphql"});const me=/^v1\./,Ee=/^ghs_/,Te=/^ghu_/;async function he(e){const r=3===e.split(/\./).length,s=me.test(e)||Ee.test(e),o=Te.test(e);return{type:"token",token:e,tokenType:r?"app":s?"installation":o?"user-to-server":"oauth"}}async function be(e,r,s,o){const t=r.endpoint.merge(s,o);return t.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer ".concat(e):"token ".concat(e)}(e),r(t)}const we=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(he.bind(null,e),{hook:be.bind(null,e)})},_e=["authStrategy"],fe="3.6.0";class ke{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=new F,s={baseUrl:ce.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};var o;if(s.headers["user-agent"]=[e.userAgent,"octokit-core.js/".concat(fe," ").concat(T())].filter(Boolean).join(" "),e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=ce.defaults(s),this.graphql=(o=this.request,ge(o,{method:"POST",url:"/graphql"})).defaults(s),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=r,e.authStrategy){const{authStrategy:s}=e,o=function(e,r){if(null==e)return{};var s,o,t=function(e,r){if(null==e)return{};var s={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(r.includes(o))continue;s[o]=e[o]}return s}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o({type:"unauthenticated"});this.constructor.plugins.forEach((r=>{Object.assign(this,r(this,e))}))}static defaults(e){return class extends(this){constructor(){const r=(arguments.length<=0?void 0:arguments[0])||{};super("function"!=typeof e?Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:"".concat(r.userAgent," ").concat(e.userAgent)}:null):e(r))}}}static plugin(){var e;const r=this.plugins;for(var s=arguments.length,o=new Array(s),t=0;t!r.includes(e)))),e}}ke.VERSION=fe,ke.plugins=[];function Ge(e){e.hook.wrap("request",((r,s)=>{e.log.debug("request",s);const o=Date.now(),t=e.request.endpoint.parse(s),n=t.url.replace(s.baseUrl,"");return r(s).then((r=>(e.log.info("".concat(t.method," ").concat(n," - ").concat(r.status," in ").concat(Date.now()-o,"ms")),r))).catch((r=>{throw e.log.info("".concat(t.method," ").concat(n," - ").concat(r.status," in ").concat(Date.now()-o,"ms")),r}))}))}function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function ye(e){var r=function(e,r){if("object"!=Pe(e)||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var o=s.call(e,r||"default");if("object"!=Pe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==Pe(r)?r:r+""}function ve(e,r,s){return(r=ye(r))in e?Object.defineProperty(e,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[r]=s,e}function Ae(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,o)}return s}function Oe(e){for(var r=1;r({async next(){if(!a)return{done:!0};try{const e=function(e){if(!e.data)return Oe(Oe({},e),{},{data:[]});if(!("total_count"in e.data)||"url"in e.data)return e;const r=e.data.incomplete_results,s=e.data.repository_selection,o=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const t=Object.keys(e.data)[0],n=e.data[t];return e.data=n,void 0!==r&&(e.data.incomplete_results=r),void 0!==s&&(e.data.repository_selection=s),e.data.total_count=o,e}(await t({method:n,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return a="",{value:{status:200,headers:{},data:[]}}}}})}}function Se(e,r,s,o){return"function"==typeof s&&(o=s,s=void 0),Ue(e,[],Fe(e,r,s)[Symbol.asyncIterator](),o)}function Ue(e,r,s,o){return s.next().then((t=>{if(t.done)return r;let n=!1;return r=r.concat(o?o(t.value,(function(){n=!0})):t.value.data),n?r:Ue(e,r,s,o)}))}function Re(e){return{paginate:Object.assign(Se.bind(null,e),{iterator:Fe.bind(null,e)})}}function De(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,o)}return s}function Ce(e){for(var r=1;r{let e="";"undefined"!=typeof window&&"localStorage"in window&&localStorage.getItem("personal-access-token")&&(e=localStorage.getItem("personal-access-token"));return new qe({baseUrl:He,userAgent:Be,auth:e||void 0})},ze=e=>{"Bad credentials"===e.message?window.location.href=l.path+"/error":(e.message||"").indexOf("rate limit exceeded")>-1?window.location.href=l.path+"/rate-limit-exceeded":(window.location.href=l.path+"/error",console.log(e.message))},Ke=async(e,r)=>{try{if("undefined"!=typeof window&&"localStorage"in window&&"undefined"!=typeof document&&"domain"in document){const r=localStorage.getItem(e);if(r){const s=JSON.parse(r);if(!((new Date).getTime()-new Date(s.createdAt||"").getTime()>("localhost"===document.domain?l["status-website"].localhostCacheTime||36e5:l["status-website"].productionCacheTime||12e4)))return s.data;localStorage.removeItem(e)}}}catch(e){}const s=await r();return localStorage.setItem(e,JSON.stringify({data:s,createdAt:new Date})),s};export{E as L,ve as _,Ke as a,xe as c,ze as h};