uptime/client/legacy/rate-limit-exceeded.44baef5...

2 lines
4.6 KiB
JavaScript

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