PageSourceSearch

https://www.glitch.fun/static/js/commerce-restore.545c0a1f.chunk.js

js glitch.fun collected 2026-09-24 10:41:39 UTC 20,550 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4433,65321,70491,82600,93333],{93333:function(e,r,n){n.r(r),r.default={}},65321:function(e,r,n){n.r(r);var t=n(23029),a=n(92901),i=n(39874),c=n(85501),o=n(88094),s=n(55713),l=n(19393),u=n(15678),d=function(e){function r(){return(0,t.A)(this,r),(0,i.A)(this,r,arguments)}return(0,c.A)(r,e),(0,a.A)(r,[{key:"render",value:function(){var e,r,n,t=this.props.redirect,a=t?"?redirect=".concat(encodeURIComponent(t)):"",i={facebook:"".concat(null!==(e="https://api.glitch.fun/auth/facebook/redirect")?e:"https://api.glitch.fun/auth/facebook/redirect").concat(a),google:"".concat(null!==(r="https://api.glitch.fun/auth/google/redirect")?r:"https://api.glitch.fun/auth/google/redirect").concat(a),twitter:"".concat(null!==(n="https://api.glitch.fun/auth/twitter/redirect")?n:"https://api.glitch.fun/auth/twitter/redirect").concat(a)};return(0,u.jsx)(o.Fragment,{children:(0,u.jsx)("div",{className:"social-media-container",children:(0,u.jsxs)("ul",{className:"social-media-list",children:[(0,u.jsx)("li",{className:"social-media-item",children:(0,u.jsx)("a",{href:i.facebook,className:"social-media-link facebook","aria-label":"Continue with Facebook",title:"Continue with Facebook",children:(0,u.jsx)(s.gc,{icon:l.aUl})})}),(0,u.jsx)("li",{className:"social-media-item",children:(0,u.jsx)("a",{href:i.google,className:"social-media-link google","aria-label":"Continue with Google",title:"Continue with Google",children:(0,u.jsx)(s.gc,{icon:l.FjH})})}),(0,u.jsx)("li",{className:"social-media-item",children:(0,u.jsx)("a",{href:i.twitter,className:"social-media-link twitter","aria-label":"Continue with X / Twitter",title:"Continue with X / Twitter",children:(0,u.jsx)(s.gc,{icon:l.HQ1})})})]})})})}}])}(o.Component);r.default=d},82600:function(e,r,n){n.r(r);var t=n(91212),a=n(10467),i=n(64467),c=n(89379),o=n(5544),s=n(88094),l=n(61656),u=n(33841),d=n(70518),m=n(45256),h=n(65321),f=n(77103),p=n(98427),v=n(15678);r.default=function(e){var r=e.onAuthenticated,n=e.returnUrl,g=e.disabled,x=void 0!==g&&g,w=e.initialMode,A=void 0===w?"register":w,y=e.intent,b=void 0===y?"purchase":y,j=e.persistAuthentication,k=void 0===j||j,C="undefined"!==typeof window&&window.parent!==window,N="restore"===b,S=(0,s.useState)(N||"login"===A?"login":"register"),_=(0,o.A)(S,2),R=_[0],E=_[1],L=(0,s.useState)({first_name:"",last_name:"",username:"",email:"",password:""}),G=(0,o.A)(L,2),I=G[0],P=G[1],T=(0,s.useState)(!1),U=(0,o.A)(T,2),D=U[0],F=U[1],M=(0,s.useState)(!1),Y=(0,o.A)(M,2),q=Y[0],O=Y[1],z=(0,s.useState)(""),H=(0,o.A)(z,2),V=H[0],W=H[1],B=(0,s.useRef)(null);(0,s.useEffect)((function(){var e;V&&(null===(e=B.current)||void 0===e||e.focus())}),[V]);var Q=function(e){return P((function(r){return(0,c.A)((0,c.A)({},r),{},(0,i.A)({},e.target.name,e.target.value))}))},X=function(){var e=(0,a.A)((0,t.A)().m((function e(n){var a,i,o,s,l,u;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n.preventDefault(),!q&&!x){e.n=1;break}return e.a(2);case 1:if(W(""),"register"!==R||D){e.n=2;break}return W("Please accept the terms before creating your account."),e.a(2);case 2:if(O(!0),e.p=3,"register"!==R){e.n=5;break}return e.n=4,m.Ay.api.Auth.register({first_name:I.first_name.trim(),last_name:I.last_name.trim(),username:I.username.trim(),email:I.email.trim(),password:I.password});case 4:l=e.v,e.n=7;break;case 5:return e.n=6,m.Ay.api.Auth.loginWithEmail(I.email.trim(),I.password);case 6:l=e.v;case 7:if(i=l,o=(0,p.commerceData)(i),s=null===o||void 0===o||null===(a=o.token)||void 0===a?void 0:a.access_token,null!==o&&void 0!==o&&o.id&&"string"===typeof s&&s&&"null"!==s&&!(s.length>
116384)&&!/\s/.test(s)){e.n=8;break}throw new Error("Authentication did not finish.");case 8:return k&&(m.Ay.util.Storage.setAuthToken(s),m.Ay.util.Storage.set("user_id",o.id),m.Ay.util.Session.processAuthentication(o)),P((function(e){return(0,c.A)((0,c.A)({},e),{},{password:""})})),e.n=9,r(o);case 9:e.n=11;break;case 10:e.p=10,u=e.v,W((0,p.commerceError)(u,"Unable to sign in. Check your details and try again. If you already have an account, choose Sign in."));case 11:return e.p=11,O(!1),e.f(11);case 12:return e.a(2)}}),e,null,[[3,10,11,12]])})));return function(r){return e.apply(this,arguments)}}();return(0,v.jsxs)("section",{className:"commerce-account","aria-labelledby":"commerce-account-title",children:[(0,v.jsx)("h2",{id:"commerce-account-title",children:N?"Sign in to restore":"register"===R?"Create your free account":"Welcome back"}),(0,v.jsx)("p",{className:"text-muted",children:N?"Use the Glitch account you purchased with. Restoring won\u2019t charge you.":"Keep your items across devices. No payment is taken at this step."}),!C&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(h.default,{redirect:n}),(0,v.jsx)("div",{className:"commerce-divider",children:(0,v.jsx)("span",{children:"or use email"})})]}),!N&&(0,v.jsxs)("div",{className:"commerce-account-options d-flex gap-2 mb-3",role:"group","aria-label":"Account options",children:[(0,v.jsx)(u.A,{variant:"register"===R?"dark":"outline-secondary","aria-pressed":"register"===R,onClick:function(){E("register"),W("")},disabled:q||x,children:"Create account"}),(0,v.jsx)(u.A,{variant:"login"===R?"dark":"outline-secondary","aria-pressed":"login"===R,onClick:function(){E("login"),W("")},disabled:q||x,children:"Sign in"})]}),(0,v.jsx)(d.A,{onSubmit:X,"aria-busy":q,children:(0,v.jsxs)("fieldset",{disabled:q||x,children:["register"===R&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:"commerce-account-names",children:[(0,v.jsxs)(d.A.Group,{controlId:"commerce-first-name",children:[(0,v.jsx)(d.A.Label,{children:"First name"}),(0,v.jsx)(d.A.Control,{name:"first_name",autoComplete:"given-name",value:I.first_name,onChange:Q,required:!0,maxLength:100})]}),(0,v.jsxs)(d.A.Group,{controlId:"commerce-last-name",children:[(0,v.jsx)(d.A.Label,{children:"Last name"}),(0,v.jsx)(d.A.Control,{name:"last_name",autoComplete:"family-name",value:I.last_name,onChange:Q,required:!0,maxLength:100})]})]}),(0,v.jsxs)(d.A.Group,{controlId:"commerce-username",className:"mt-3",children:[(0,v.jsx)(d.A.Label,{children:"Player name"}),(0,v.jsx)(d.A.Control,{name:"username",autoComplete:"username",value:I.username,onChange:Q,required:!0,maxLength:50})]})]}),(0,v.jsxs)(d.A.Group,{controlId:"commerce-email",className:"mt-3",children:[(0,v.jsx)(d.A.Label,{children:"Email"}),(0,v.jsx)(d.A.Control,{name:"email",type:"email",autoComplete:"email",value:I.email,onChange:Q,required:!0,maxLength:254})]}),(0,v.jsxs)(d.A.Group,{controlId:"commerce-password",className:"mt-3",children:[(0,v.jsx)(d.A.Label,{children:"Password"}),(0,v.jsx)(d.A.Control,{name:"password",type:"password",autoComplete:"register"===R?"new-password":"current-password",value:I.password,onChange:Q,required:!0,minLength:"register"===R?8:void 0})]}),"register"===R?(0,v.jsx)(d.A.Check,{id:"commerce-terms",className:"mt-3",checked:D,onChange:function(e){return F(e.target.checked)},required:!0,label:(0,v.jsxs)(v.Fragment,{children:["I agree to the ",(0,v.jsx)("a",{href:f.default.termsPage(),target:"_blank",rel:"noreferrer",children:"Glitch terms of service"}),". This creates a free account, not a subscription."]})}):(0,v.jsx)("p",{className:"small mt-3",children:(0,v.jsx)("a",{href:"".concat(f.default.authForgotPassword(),"?redirect=").concat(encodeURIComponent(n)),target:"_blank",rel:"noreferrer",children:"Forgot your password? Open account recovery"})}),V&&(0,v.jsx)(l.A,{ref:B,tabIndex:-1,variant:"danger",className:"mt-3",role:"alert",children:V}),(0,v.jsx)(u.A,{type:"submit",className:"commerce-primary w-100 mt-3",disabled:q||x,children:q?"Securing your account\u2026":N?"Sign in & restore purchases":"register"===R?"Create account & continue":"Sign in & continue"})]})}),C&&(0,v.jsxs)("details",{className:"commerce-help commerce-account-help",children:[(0,v.jsx)("summary",{children:"Account help"}),(0,v.jsx)("p",{className:"small text-muted",children:"Your game stays open. Use email to sign in here; social sign-in is unavailable inside this secure game overlay. Your Glitch login stays here, not in the game."})]})]})}},44777:function(e,r,n){n.r(r),n.d(r,{RESTORE_REQUEST_TIMEOUT_MS:function(){return w}});var t=n(91212),a=n(10467),i=n(5544),c=n(88094),o=n(23373),s=n(77432),l=n(61656),u=n(33841),d=n(70518),m=n(30292),h=n(45256),f=n(82600),p=n(84377),v=n(17109),g=n(98427),x=(n(93333),n(15678)),w=2e4,A=function(e){return new Promise((function(r,n){var t=setTimeout((function(){var e=new Error("Account recovery request timed out. Please retry; no payment was created.");e.code="commerce_request_timeout",n(e)}),w);Promise.resolve(e).then((function(e){clearTimeout(t),r(e)}),(function(e){clearTimeout(t),n(e)}))}))};
1r.default=function(){var e=(0,o.g)().id,r=new URLSearchParams("undefined"===typeof window?"":window.location.search),n=(0,c.useState)(r.get("order_id")||""),w=(0,i.A)(n,2),y=w[0],b=w[1],j=(0,c.useState)("sandbox"===r.get("environment")?"sandbox":"live"),k=(0,i.A)(j,2),C=k[0],N=k[1],S=(0,c.useState)(!1),_=(0,i.A)(S,2),R=_[0],E=_[1],L=(0,c.useState)(!0),G=(0,i.A)(L,2),I=G[0],P=G[1],T=(0,c.useState)(!1),U=(0,i.A)(T,2),D=U[0],F=U[1],M=(0,c.useState)(null),Y=(0,i.A)(M,2),q=Y[0],O=Y[1],z=(0,c.useState)(!1),H=(0,i.A)(z,2),V=H[0],W=H[1],B=(0,c.useState)(""),Q=(0,i.A)(B,2),X=Q[0],K=Q[1],Z=(0,c.useState)(""),$=(0,i.A)(Z,2),J=$[0],ee=$[1],re=(0,c.useRef)(!1),ne=(0,c.useRef)(null),te=(0,c.useRef)(0),ae=(0,c.useRef)("undefined"!==typeof window?window.opener||(window.parent!==window?window.parent:null):null),ie=(0,c.useMemo)((function(){var r,n;return(0,p.createCommerceAccountScope)({Glitch:h.Ay,titleId:e,target:"undefined"===typeof window?null:window,rootDomain:(null===(r=(n=h.Ay.config.Config).getRootDomain)||void 0===r?void 0:r.call(n))||(0,v.getSiteDomain)(),onChange:function(){ne.current=null,te.current+=1,re.current&&(E(!1),O(null),W(!1),P(!1),F(!1),K(""),ee(""))},onRejected:function(){te.current+=1,re.current&&(E(!1),O(null),W(!1),P(!1))}})}),[e]),ce=r.get("nonce")||"",oe=r.get("return_origin")||"",se="undefined"===typeof window?"":window.location.origin+window.location.pathname+window.location.search,le=/^[A-Za-z0-9_-]{22,128}$/.test(ce)&&Boolean((0,g.safeCommerceUrl)(oe,{local:!1}))&&function(){try{return new URL(oe).origin===oe}catch(e){return!1}}(),ue=ie.base(),de=(0,c.useCallback)((0,a.A)((0,t.A)().m((function e(){var r;return(0,t.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,ie.verify((0,a.A)((0,t.A)().m((function e(){var r,n;return(0,t.A)().w((function(e){for(;;)switch(e.n){case 0:return n=g.commerceData,e.n=1,A(h.Ay.api.Users.me());case 1:if("string"===typeof(null===(r=n(e.v))||void 0===r?void 0:r.id)&&r.id){e.n=2;break}throw new Error("Your account could not be verified. Please retry.");case 2:return e.a(2,r)}}),e)}))));case 1:r=e.v,ie.assertCurrent(r.ticket),re.current&&(E(!0),F(!1));case 2:return e.a(2)}}),e)}))),[ie]),me=(0,c.useCallback)((0,a.A)((0,t.A)().m((function e(){var r,n,a,i,c,o=arguments;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:if(r=o.length>0&&void 0!==o[0]&&o[0],"candidate"===(n=ie.checkpoint()).account.status&&!ie.isRejected()){e.n=1;break}return re.current&&P(!1),e.a(2);case 1:if(!ie.isVerified()&&(r||ne.current!==n.generation)){e.n=2;break}return e.a(2);case 2:return ne.current=n.generation,P(!0),K(""),e.p=3,e.n=4,de();case 4:e.n=7;break;case 5:if(e.p=5,"commerce_auth_changed"!==(c=e.v).code&&ie.isCurrent(n)){e.n=6;break}return e.a(2);case 6:401===(null===(a=c.response)||void 0===a?void 0:a.status)?K(""):(K((0,g.commerceError)(c,"Your account could not be verified. Retry verification; no payment is involved.")),F(![403,409].includes(null===(i=c.response)||void 0===i?void 0:i.status)));case 7:return e.p=7,re.current&&ie.isCurrent(n)&&P(!1),e.f(7);case 8:return e.a(2)}}),e,null,[[3,5,7,8]])}))),[ie,de]);(0,c.useEffect)((function(){if(re.current=!0,ie.activate(),ne.current=null,E(!1),O(null),P(!0),!window.__GLITCH_COMMERCE_BOOTSTRAP__)return window.location.replace(window.location.href),function(){re.current=!1,ie.dispose()};var e=function(){me().catch((function(){}))};e(),window.addEventListener("focus",e),window.addEventListener("storage",e),document.addEventListener("visibilitychange",e);var r=setInterval(e,1e3);return function(){re.current=!1,ie.dispose(),te.current+=1,window.removeEventListener("focus",e),window.removeEventListener("storage",e),document.removeEventListener("visibilitychange",e),clearInterval(r)}}),[ie,me]);var he=function(e,r){return re.current&&te.current===r&&ie.isCurrent(e)},fe=function(){var r=(0,a.A)((0,t.A)().m((function r(){var n,a,i,c,o;return(0,t.A)().w((function(r){for(;;)switch(r.p=r.n){case 0:if(!V){r.n=1;break}return r.a(2);case 1:return n=ie.checkpoint(),a=++te.current,W(!0),K(""),ee(""),r.p=2,r.n=3,de();case 3:return ie.assertCurrent(n),c=g.commerceData,r.n=4,ie.call((function(){return A(h.Ay.api.Microtransactions.listEntitlements(e,{environment:C}))}));case 4:if(i=c(r.v),he(n,a)){r.n=5;break}return r.a(2);case 5:O(i.entitlements||[]),ee("Your inventory was restored from Glitch. No payment was created."),r.n=7;break;case 6:r.p=6,o=r.v,re.current&&ie.isCurrent(n)&&K((0,g.commerceError)(o,"Your inventory could not be loaded. Please retry; no payment was created."));case 7:return r.p=7,he(n,a)&&W(!1),r.f(7);case 8:return r.a(2)}}),r,null,[[2,6,7,8]])}
1)));return function(){return r.apply(this,arguments)}}(),pe=function(){var r=(0,a.A)((0,t.A)().m((function r(n){var a,i,c,o,s,l,u,d,m,f;return(0,t.A)().w((function(r){for(;;)switch(r.p=r.n){case 0:if(n.preventDefault(),!V&&le&&y.trim()){r.n=1;break}return r.a(2);case 1:return a=ie.checkpoint(),i=++te.current,W(!0),K(""),r.p=2,r.n=3,de();case 3:return ie.assertCurrent(a),d=g.commerceData,r.n=4,ie.call((function(){return A(h.Ay.api.Microtransactions.getOrder(e,y.trim()))}));case 4:if(o=d(r.v),he(a,i)){r.n=5;break}return r.a(2);case 5:if(o.title_id===e){r.n=6;break}throw new Error("Wrong title.");case 6:return m=g.commerceData,r.n=7,ie.call((function(){return A(h.Ay.api.Microtransactions.restoreHandoff(e,{order_id:o.id,return_origin:oe,nonce:ce}))}));case 7:if(s=m(r.v),he(a,i)&&ie.isVerified()){r.n=8;break}return r.a(2);case 8:if(l={id:null===(c=s.event)||void 0===c?void 0:c.checkout_session_id,title:{id:e},environment:o.environment,return_origin:oe,nonce:ce},(0,g.sendCommerceHandoff)({session:l,order:o,handoff:s,targetWindow:ae.current})){r.n=9;break}return ee("Your inventory is saved. Reopen Restore purchases from your game so it can receive the secure return message."),r.a(2);case 9:ee("Your game received a one-time account handoff and will verify the current inventory. No new charge was made.");try{null===(u=ae.current)||void 0===u||u.focus()}catch(t){}r.n=11;break;case 10:r.p=10,f=r.v,re.current&&ie.isCurrent(a)&&K((0,g.commerceError)(f,"We could not restore this receipt to the game. Use the same account and open Restore purchases from the original game."));case 11:return r.p=11,he(a,i)&&W(!1),r.f(11);case 12:return r.a(2)}}),r,null,[[2,10,11,12]])})));return function(e){return r.apply(this,arguments)}}(),ve=function(){var e=(0,a.A)((0,t.A)().m((function e(r){var n;return(0,t.A)().w((function(e){for(;;)switch(e.p=e.n){case 0:return ie.manual(r,ue),n=ie.checkpoint(),P(!0),K(""),e.p=1,e.n=2,de();case 2:return e.p=2,re.current&&ie.isCurrent(n)&&P(!1),e.f(2);case 3:return e.a(2)}}),e,null,[[1,,2,3]])})));return function(r){return e.apply(this,arguments)}}();return(0,x.jsxs)("main",{className:"commerce-checkout","data-clarity-mask":"true","data-private":"true",children:[(0,x.jsxs)(s.mg,{children:[(0,x.jsx)("title",{children:"Restore game purchases \xb7 Glitch"}),(0,x.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,x.jsx)("meta",{name:"referrer",content:"no-referrer"})]}),(0,x.jsxs)("header",{className:"commerce-checkout-bar",children:[(0,x.jsx)("strong",{children:"Restore your purchases"}),(0,x.jsx)("span",{className:"small text-muted",children:"Secure account recovery by Glitch"})]}),(0,x.jsxs)("div",{className:"commerce-checkout-grid",children:[(0,x.jsxs)("section",{className:"commerce-purchase-summary",children:[(0,x.jsx)("span",{className:"commerce-eyebrow",children:"Same account. Same items."}),(0,x.jsx)("h1",{children:"Pick up where you left off."}),(0,x.jsx)("p",{className:"text-muted",children:"Recover your game items after a new device, expired checkout, or interrupted connection. Sign in to the Glitch account used for your purchase. Restoring never creates a payment."}),(0,x.jsx)("p",{className:"small text-muted",children:"The game only receives a short-lived, one-time claim for its own inventory. Your Glitch account login token stays here."})]}),(0,x.jsxs)("section",{className:"commerce-checkout-panel","aria-live":"polite",children:[X&&(0,x.jsx)(l.A,{variant:"danger",children:X}),J&&(0,x.jsx)(l.A,{variant:"info",children:J}),I&&!R?(0,x.jsxs)("div",{role:"status",children:[(0,x.jsx)(m.A,{animation:"border",size:"sm"})," Verifying your Glitch account\u2026"]}):R?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("h2",{children:"Account connected"}),(0,x.jsxs)(d.A.Group,{controlId:"restore-environment",children:[(0,x.jsx)(d.A.Label,{children:"Inventory environment"}),(0,x.jsxs)(d.A.Select,{disabled:V,value:C,onChange:function(e){te.current+=1,N(e.target.value),O(null)},children:[(0,x.jsx)("option",{value:"live",children:"Live purchases"}),(0,x.jsx)("option",{value:"sandbox",children:"Sandbox test purchases"})]})]}),(0,x.jsx)(u.A,{className:"commerce-primary w-100 mt-3",disabled:V,onClick:fe,children:V?"Checking\u2026":"Restore my inventory"}),q&&(0,x.jsxs)("div",{className:"border rounded-3 p-3 mt-3",children:[(0,x.jsx)("h3",{className:"h6",children:"Verified inventory"}),q.length?(0,x.jsx)("ul",{className:"small mb-0",children:q.map((function(e){return(0,x.jsxs)("li",{children:[e.key,": ",e.balance,e.expires_at?" \xb7 expires "+new Date(e.expires_at).toLocaleStr
1ing():""]},e.key)}))}):(0,x.jsx)("p",{className:"small mb-0",children:"No current inventory for this game and environment."})]}),(0,x.jsx)("hr",{className:"my-4"}),(0,x.jsx)("h3",{className:"h6",children:"Return your account to the game"}),le?(0,x.jsxs)(d.A,{onSubmit:pe,children:[(0,x.jsxs)(d.A.Group,{controlId:"restore-order-id",children:[(0,x.jsx)(d.A.Label,{children:"Receipt / order ID"}),(0,x.jsx)(d.A.Control,{disabled:V,value:y,onChange:function(e){te.current+=1,b(e.target.value)},required:!0,maxLength:36,placeholder:"Order ID from your purchase receipt"})]}),(0,x.jsx)(u.A,{type:"submit",variant:"outline-secondary",className:"mt-3",disabled:V||!y.trim(),children:"Verify receipt & return to game"})]}):(0,x.jsx)("p",{className:"small text-muted",children:"To reconnect the game securely, open its Restore purchases button. This supplies the game's verified origin and a fresh one-time return nonce. You can still inspect your inventory here."})]}):(0,x.jsx)(x.Fragment,{children:D?(0,x.jsx)(u.A,{disabled:I,onClick:function(){me(!0)},children:"Retry account verification"}):(0,x.jsx)(f.default,{initialMode:"login",intent:"restore",returnUrl:se,persistAuthentication:!1,onAuthenticated:ve})})]})]}),(0,x.jsx)("footer",{className:"commerce-checkout-footer",children:"No new payment is created during inventory recovery. Existing grants, refunds and expiry remain authoritative."})]})}},33841:function(e,r,n){var t=n(89379),a=n(5544),i=n(80045),c=n(63856),o=n.n(c),s=n(88094),l=n(34367),u=n(17369),d=n(15678),m=["as","bsPrefix","variant","size","active","disabled","className"],h=s.forwardRef((function(e,r){var n=e.as,c=e.bsPrefix,s=e.variant,h=void 0===s?"primary":s,f=e.size,p=e.active,v=void 0!==p&&p,g=e.disabled,x=void 0!==g&&g,w=e.className,A=(0,i.A)(e,m),y=(0,u.oU)(c,"btn"),b=(0,l.Am)((0,t.A)({tagName:n,disabled:x},A)),j=(0,a.A)(b,2),k=j[0],C=j[1].tagName;return(0,d.jsx)(C,(0,t.A)((0,t.A)((0,t.A)({},k),A),{},{ref:r,disabled:x,className:o()(w,y,v&&"active",h&&"".concat(y,"-").concat(h),f&&"".concat(y,"-").concat(f),A.href&&x&&"disabled")}))}));h.displayName="Button",r.A=h},30292:function(e,r,n){var t=n(89379),a=n(80045),i=n(63856),c=n.n(i),o=n(88094),s=n(17369),l=n(15678),u=["bsPrefix","variant","animation","size","as","className"],d=o.forwardRef((function(e,r){var n=e.bsPrefix,i=e.variant,o=e.animation,d=void 0===o?"border":o,m=e.size,h=e.as,f=void 0===h?"div":h,p=e.className,v=(0,a.A)(e,u);n=(0,s.oU)(n,"spinner");var g="".concat(n,"-").concat(d);return(0,l.jsx)(f,(0,t.A)((0,t.A)({ref:r},v),{},{className:c()(p,g,m&&"".concat(g,"-").concat(m),i&&"text-".concat(i))}))}));d.displayName="Spinner",r.A=d}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.