import{_ as e,a as t,b as n,c as a,i,d as o,S as r,s as c,z as s,o as u,e as l,t as f,B as d,O as h,j as v,p,f as m,g as E,h as x,k as w,l as g,m as L,q as y,n as b,x as T,W as P,X as S,H as k,Y as H,I as R}from"./client.23b64548.js";function A(e){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,o=t(e);if(a){var r=t(this).constructor;i=Reflect.construct(o,arguments,r)}else i=o.apply(this,arguments);return n(this,i)}}function B(e){var t,n,a,i,o,r,c,d,h,y,b,T=s.i18n.rateLimitExceededGitHubPAT+"",P=s.i18n.rateLimitExceededSaveToken+"";return{c:function(){t=l("form"),n=l("label"),a=l("span"),i=f(T),o=u(),r=l("input"),c=u(),d=l("button"),h=f(P),this.h()},l:function(e){t=m(e,"FORM",{});var s=E(t);n=m(s,"LABEL",{class:!0});var u=E(n);a=m(u,"SPAN",{class:!0});var l=E(a);i=x(l,T),l.forEach(v),o=p(u),r=m(u,"INPUT",{type:!0,placeholder:!0,class:!0}),u.forEach(v),c=p(s),d=m(s,"BUTTON",{class:!0,type:!0});var f=E(d);h=x(f,P),f.forEach(v),s.forEach(v),this.h()},h:function(){w(a,"class","svelte-1x7uoin"),w(r,"type","text"),w(r,"placeholder",s.i18n.rateLimitExceededCopyPastePAT),w(r,"class","svelte-1x7uoin"),w(n,"class","svelte-1x7uoin"),w(d,"class","submit-button svelte-1x7uoin"),w(d,"type","submit")},m:function(s,u){g(s,t,u),L(t,n),L(n,a),L(a,i),L(n,o),L(n,r),S(r,e[0]),L(t,c),L(t,d),L(d,h),y||(b=[k(r,"input",e[4]),k(t,"submit",H(e[2]))],y=!0)},p:function(e,t){1&t&&r.value!==e[0]&&S(r,e[0])},d:function(e){e&&v(t),y=!1,R(b)}}}function I(e){var t,n,a,i,o,r,c,d=s.i18n.rateLimitExceededHasSet+"",h=s.i18n.rateLimitExceededRemoveToken+"";return{c:function(){t=l("p"),n=f(d),a=u(),i=l("button"),o=f(h),this.h()},l:function(e){t=m(e,"P",{});var r=E(t);n=x(r,d),r.forEach(v),a=p(e),i=m(e,"BUTTON",{class:!0});var c=E(i);o=x(c,h),c.forEach(v),this.h()},h:function(){w(i,"class","svelte-1x7uoin")},m:function(s,u){g(s,t,u),L(t,n),g(s,a,u),g(s,i,u),L(i,o),r||(c=k(i,"click",e[3]),r=!0)},p:b,d:function(e){e&&v(t),e&&v(a),e&&v(i),r=!1,c()}}}function N(e){var t,n,a,i,o,r,c,T,P,S,k,H,R,A,N,O,F,M,U,j,C,G,W,_,q=s.i18n.rateLimitExceededTitle+"",z=s.i18n.rateLimitExceededIntro+"",D=s.i18n.rateLimitExceededWhatDoesErrorMean+"",X=s.i18n.rateLimitExceededErrorMeaning+"",Y=s.i18n.rateLimitExceededErrorHowCanFix+"",J=s.i18n.rateLimitExceededErrorFix+"",K=s.i18n.rateLimitExceededGeneratePAT+"";function Q(e,t){return e[1]?I:B}document.title=t=s.i18n.rateLimitExceededTitle;var V=Q(e),Z=V(e);return{c:function(){n=u(),a=l("h1"),i=f(q),o=u(),r=l("p"),c=f(z),T=u(),P=l("h2"),S=f(D),k=u(),H=l("p"),R=f(X),A=u(),N=l("h2"),O=f(Y),F=u(),M=l("p"),U=f(J),j=u(),C=l("a"),G=f(K),W=u(),Z.c(),_=d(),this.h()},l:function(e){h('[data-svelte="svelte-1xny0el"]',document.head).forEach(v),n=p(e),a=m(e,"H1",{});var t=E(a);i=x(t,q),t.forEach(v),o=p(e),r=m(e,"P",{class:!0});var s=E(r);c=x(s,z),s.forEach(v),T=p(e),P=m(e,"H2",{});var u=E(P);S=x(u,D),u.forEach(v),k=p(e),H=m(e,"P",{});var l=E(H);R=x(l,X),l.forEach(v),A=p(e),N=m(e,"H2",{});var f=E(N);O=x(f,Y),f.forEach(v),F=p(e),M=m(e,"P",{});var w=E(M);U=x(w,J),j=p(w),C=m(w,"A",{href:!0,target:!0});var g=E(C);G=x(g,K),g.forEach(v),w.forEach(v),W=p(e),Z.l(e),_=d(),this.h()},h:function(){w(r,"class","lead svelte-1x7uoin"),w(C,"href","https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token"),w(C,"target","_blank")},m:function(e,t){g(e,n,t),g(e,a,t),L(a,i),g(e,o,t),g(e,r,t),L(r,c),g(e,T,t),g(e,P,t),L(P,S),g(e,k,t),g(e,H,t),L(H,R),g(e,A,t),g(e,N,t),L(N,O),g(e,F,t),g(e,M,t),L(M,U),L(M,j),L(M,C),L(C,G),g(e,W,t),Z.m(e,t),g(e,_,t)},p:function(e,n){var a=y(n,1)[0];0&a&&t!==(t=s.i18n.rateLimitExceededTitle)&&(document.title=t),V===(V=Q(e))&&Z?Z.p(e,a):(Z.d(1),(Z=V(e))&&(Z.c(),Z.m(_.parentNode,_)))},i:b,o:b,d:function(e){e&&v(n),e&&v(a),e&&v(o),e&&v(r),e&&v(T),e&&v(P),e&&v(k),e&&v(H),e&&v(A),e&&v(N),e&&v(F),e&&v(M),e&&v(W),Z.d(e),e&&v(_)}}}function O(e,t,n){var a="",i=!1;return T((function(){"undefined"!=typeof window&&"localStorage"in window&&localStorage.getItem("personal-access-token")&&n(1,i=!0)})),[a,i,function(){"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.setItem("personal-access-token",a),P(s.path)},function(){n(0,a=""),n(1,i=!1),"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.removeItem("personal-access-token")},function(){a=this.value,n(0,a)}]}var F=function(t){e(s,r);var n=A(s);function s(e){var t;return a(this,s),t=n.call(this),i(o(t),e,O,N,c,{}),t}return s}();export default F;