@stytch/vanilla-js 6.0.8 → 6.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/{StytchSSRProxy-CYec4c7H.js → StytchSSRProxy-DjO95TII.js} +2 -2
- package/dist/cjs/{StytchSSRProxy-CYec4c7H.js.map → StytchSSRProxy-DjO95TII.js.map} +1 -1
- package/dist/cjs/b2b/index.cjs +2 -2
- package/dist/cjs/b2b/index.headless.cjs +1 -1
- package/dist/cjs/index.cjs +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.headless.cjs +1 -1
- package/dist/cjs/{shadcn-DyU73sgU.js → shadcn-DnwRqCY0.js} +2 -2
- package/dist/cjs/{shadcn-DyU73sgU.js.map → shadcn-DnwRqCY0.js.map} +1 -1
- package/dist/cjs-dev/{StytchSSRProxy-DzmpC9_x.js → StytchSSRProxy-t6BtsVJa.js} +2 -2
- package/dist/cjs-dev/{StytchSSRProxy-DzmpC9_x.js.map → StytchSSRProxy-t6BtsVJa.js.map} +1 -1
- package/dist/cjs-dev/b2b/index.cjs +2 -2
- package/dist/cjs-dev/b2b/index.headless.cjs +1 -1
- package/dist/cjs-dev/index.cjs +3 -3
- package/dist/cjs-dev/index.cjs.map +1 -1
- package/dist/cjs-dev/index.headless.cjs +1 -1
- package/dist/cjs-dev/{shadcn-B1WlFgq_.js → shadcn-C7p3HE31.js} +2 -2
- package/dist/cjs-dev/{shadcn-B1WlFgq_.js.map → shadcn-C7p3HE31.js.map} +1 -1
- package/dist/esm/packages/web/src/NetworkClient.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs +1 -1
- package/dist/esm/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs.map +1 -1
- package/dist/esm-dev/packages/web/src/NetworkClient.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs +1 -1
- package/dist/esm-dev/packages/web/src/ui/b2c/screens/Secondary/usePasswordlessAuthenticate.mjs.map +1 -1
- package/dist/iife/b2b/index.headless.js +1 -1
- package/dist/iife/b2b/index.js +1 -1
- package/dist/iife/index.headless.js +1 -1
- package/dist/iife/index.js +2 -2
- package/dist/iife/index.js.map +1 -1
- package/package.json +1 -1
package/dist/iife/b2b/index.js
CHANGED
|
@@ -60,5 +60,5 @@ const myComponent = () => {
|
|
|
60
60
|
\`\`\`
|
|
61
61
|
|
|
62
62
|
If you want to make API calls from server environments, please use the Stytch Node Library
|
|
63
|
-
https://www.npmjs.com/package/stytch.`)}}),lW="bootstrap",lG=()=>({displayWatermark:!1,projectName:null,cnameDomain:null,emailDomains:["stytch.com"],captchaSettings:{enabled:!1},pkceRequiredForEmailMagicLinks:!1,pkceRequiredForPasswordResets:!1,pkceRequiredForOAuth:!1,pkceRequiredForSso:!1,slugPattern:null,createOrganizationEnabled:!1,passwordConfig:null,runDFPProtectedAuth:!1,rbacPolicy:null,siweRequiredForCryptoWallets:!1,vertical:null});class lY{_publicToken;_networkClient;_dataLayer;_bootstrapDataPromise;constructor(e,t,r){this._publicToken=e,this._networkClient=t,this._dataLayer=r,this._bootstrapDataPromise=this._networkClient.fetchSDK({url:`/projects/bootstrap/${this._publicToken}`,method:"GET"}).then(lY.mapBootstrapData).then(e=>(this._dataLayer.setItem(lW,JSON.stringify(e)),e)).catch(e=>(eP(e),lG()))}static mapBootstrapData(e){let t=null!==e.password_config?{ludsComplexity:e.password_config.luds_complexity,ludsMinimumCount:e.password_config.luds_minimum_count}:null;return{projectName:e.project_name,displayWatermark:!e.disable_sdk_watermark,captchaSettings:e.captcha_settings,cnameDomain:e.cname_domain,emailDomains:e.email_domains,pkceRequiredForEmailMagicLinks:e.pkce_required_for_email_magic_links,pkceRequiredForPasswordResets:e.pkce_required_for_password_resets,pkceRequiredForOAuth:e.pkce_required_for_oauth,pkceRequiredForSso:e.pkce_required_for_sso,slugPattern:e.slug_pattern,createOrganizationEnabled:e.create_organization_enabled,passwordConfig:t,runDFPProtectedAuth:e.dfp_protected_auth_enabled??!1,dfpProtectedAuthMode:e.dfp_protected_auth_mode,rbacPolicy:e.rbac_policy??null,siweRequiredForCryptoWallets:e.siwe_required_for_crypto_wallets,vertical:e.vertical}}getSync(){let e=this._dataLayer.getItem(lW);if(null===e)return lG();try{return JSON.parse(e)}catch{return lG()}}getAsync(){return this._bootstrapDataPromise}}class lZ{bootstrapPromise;state;constructor(e){this.bootstrapPromise=e,this.state=e.then(async e=>{let t;return e.captchaSettings.enabled?{configured:!0,captchaClient:await (t=e.captchaSettings.siteKey,eD(`https://www.google.com/recaptcha/enterprise.js?render=${t}`,()=>window.grecaptcha.enterprise)),siteKey:e.captchaSettings.siteKey}:{configured:!1}})}executeRecaptcha=async()=>{let{captchaClient:e,configured:t,siteKey:r}=await this.state;if(t)return await new Promise(t=>e.ready(t)),e.execute(r,{action:"LOGIN"})}}class lJ{iframeURL;_frameClient;constructor(e){this.iframeURL=e}get frameClient(){return this._frameClient=this._frameClient??new e0(this.iframeURL),this._frameClient}call(e,t){return this.frameClient.call(e,[t])}oneTapStart=e=>this.call("oneTapStart",e);oneTapSubmit=e=>this.call("oneTapSubmit",e);parsedPhoneNumber=e=>this.call("parsedPhoneNumber",e);getExamplePhoneNumber=e=>this.call("getExamplePhoneNumber",e)}class lQ{_publicToken;_subscriptionDataLayer;additionalTelemetryDataFn;eventLogger;baseURL;constructor(e,t,r,n,a){this._publicToken=e,this._subscriptionDataLayer=t,this.additionalTelemetryDataFn=a,this.baseURL=r,(e=>e.includes("public-token-test"))(e)&&(this.baseURL=n),this.eventLogger=new eR({maxBatchSize:15,intervalDurationMs:800,logEventURL:this.buildSDKUrl("/events")})}updateSessionToken=()=>null;logEvent({name:e,details:t,error:r={}}){this.eventLogger.logEvent(this.createTelemetryBlob(),{public_token:this._publicToken,event_name:e,details:t,error_code:r.error_code,error_description:r.error_description,http_status_code:r.http_status_code})}createTelemetryBlob(){return{event_id:`event-id-${ek()}`,app_session_id:`app-session-id-${ek()}`,persistent_id:`persistent-id-${ek()}`,client_sent_at:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,...this.additionalTelemetryDataFn(),app:{identifier:window.location.hostname},sdk:{identifier:"Stytch.js Javascript SDK",version:"@stytch/vanilla-js@6.0.8"}}}async fetchSDK({url:e,body:t,method:r}){let n=this._subscriptionDataLayer.readSessionCookie().session_token,a="Basic "+window.btoa(this._publicToken+":"+(n||this._publicToken)),o=window.btoa(JSON.stringify(this.createTelemetryBlob())),i=window.location.origin;return eg({basicAuthHeader:a,body:t,finalURL:this.buildSDKUrl(e),method:r,xSDKClientHeader:o,xSDKParentHostHeader:i})}async submitFormSDK({url:e,body:t,method:r}){let n=this._subscriptionDataLayer.readSessionCookie().session_token,a="Basic "+window.btoa(this._publicToken+":"+(n||this._publicToken)),o=window.btoa(JSON.stringify(this.createTelemetryBlob())),i=window.location.origin;return ef({basicAuthHeader:a,body:t,finalURL:this.buildSDKUrl(e),method:r,xSDKClientHeader:o,xSDKParentHostHeader:i})}async retriableFetchSDK({url:e,body:t,method:r,retryCallback:n}){let a=this._subscriptionDataLayer.readSessionCookie().session_token,o="Basic "+window.btoa(this._publicToken+":"+(a||this._publicToken)),i=window.btoa(JSON.stringify(this.createTelemetryBlob())),s=window.location.origin;return e_({basicAuthHeader:o,body:t,finalURL:this.buildSDKUrl(e),method:r,xSDKClientHeader:i,xSDKParentHostHeader:s,retryCallback:n})}buildSDKUrl(e){return`${this.baseURL}/sdk/v1${e}`}}function lX(e){let t=e.toString(16);return 1===t.length&&(t="0"+t),t}class l1{_dataLayer;namespace;constructor(e,t){this._dataLayer=e,this.namespace=t}key(){return`PKCE_VERIFIER:${this.namespace}`}async startPKCETransaction(){let e=await l1.createProofkeyPair();return this._dataLayer.setItem(this.key(),JSON.stringify(e)),e}getPKPair(){let e=this._dataLayer.getItem(this.key());if(null!==e)try{return JSON.parse(e)}catch{eC("Found malformed Proof Key pair in localstorage.");return}}clearPKPair(){return this._dataLayer.removeItem(this.key())}static async createProofkeyPair(){var e;let t=new Uint32Array(16);window.crypto.getRandomValues(t);let r=Array.from(t).map(lX).join("");return{code_challenge:(e=await window.crypto.subtle.digest("SHA-256",new TextEncoder().encode(r)),btoa(String.fromCharCode.call(null,...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")),code_verifier:r}}}function l0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var l2=function e(t,r){function n(e,n,a){if("u">typeof document){"number"==typeof(a=l0({},r,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in a)a[i]&&(o+="; "+i,!0!==a[i]&&(o+="="+a[i].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+o}}return Object.create({set:n,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},a=0;a<r.length;a++){var o=r[a].split("="),i=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=t.read(i,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",l0({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,l0({},this.attributes,t))},withConverter:function(t){return e(l0({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let l3="seen_domains";class l4{publicToken;state;_opaqueTokenCookieName=null;_jwtCookieName=null;_cookiePath=null;_domain=null;_cookieAvailableToSubdomains=!1;_istCookieName=null;subscriptions;_localStorage;browserSessionStorage;constructor(e,t){let r;this.publicToken=e,this.state=null,this.subscriptions={},this._localStorage=oj(oH,e),this.browserSessionStorage=oj(oK,e),t?.cookieOptions&&(this._opaqueTokenCookieName=t.cookieOptions.opaqueTokenCookieName||null,this._jwtCookieName=t.cookieOptions.jwtCookieName||null,this._cookiePath=t.cookieOptions.path||null,this._domain=t.cookieOptions.domain||null,this._cookieAvailableToSubdomains=t.cookieOptions.availableToSubdomains||!1,this._istCookieName=t.cookieOptions.istCookieName||null);const n=this._localStorage.getItem("");if(!n)return;try{r=JSON.parse(n)}catch{this.syncToLocalStorage();return}this.state=r}get opaqueTokenCookieName(){return this._opaqueTokenCookieName??"stytch_session"}get jwtCookieName(){return this._jwtCookieName??"stytch_session_jwt"}get istCookieName(){return this._istCookieName??"stytch_intermediate_session_token"}readSessionCookie(){return{session_token:l2.get(this.opaqueTokenCookieName),session_jwt:l2.get(this.jwtCookieName)}}readIntermediateSessionTokenCookie(){return l2.get(this.istCookieName)}writeSessionCookie(e){let{state:t,session_token:r,session_jwt:n}=e,a=l4.generateCookieOpts({expiresAt:t?.session?.expires_at??"",availableToSubdomains:this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});a.domain&&this.addSeenDomain(a.domain),l2.set(this.opaqueTokenCookieName,r,a),l2.set(this.jwtCookieName,n,a);let o=l4.generateCookieOpts({expiresAt:t?.session?.expires_at??"",availableToSubdomains:!this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});o.domain&&this.addSeenDomain(o.domain),n8(this.jwtCookieName)&&l2.remove(this.jwtCookieName,o),n8(this.opaqueTokenCookieName)&&l2.remove(this.opaqueTokenCookieName,o),n8(this.jwtCookieName)&&eC("Could not remove extraneous JWT cookie. This might happen if the cookie has been set using multiple `path` settings, and may produce unwanted behavior."),n8(this.opaqueTokenCookieName)&&eC("Could not remove extraneous opaque token cookie.")}writeIntermediateSessionTokenCookie(e){let t=new Date(Date.now()+6e5),r=l4.generateCookieOpts({expiresAt:t.toString(),availableToSubdomains:this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});l2.set(this.istCookieName,e,r)}removeSessionCookie(){this.removeCookies([this.opaqueTokenCookieName,this.jwtCookieName])}removeISTCookie(){this.removeCookies([this.istCookieName])}removeCookies(e){let t=this.getSeenDomains(),r=[...new Set([this._domain,null,...t])];[!0,!1].forEach(t=>{[this._cookiePath,null].forEach(n=>{r.forEach(r=>{let a=l4.generateCookieOpts({expiresAt:new Date(0).toString(),availableToSubdomains:t,path:n,domain:r});e.forEach(e=>{l2.remove(e,a)})})})})}syncToLocalStorage(){this._localStorage.setItem("",JSON.stringify(this.state))}getItem(e){return this._localStorage.getItem(e)}setItem(e,t){this._localStorage.setItem(e,t)}removeItem(e){this._localStorage.removeItem(e)}getSeenDomains(){let e=this.getItem(l3);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}addSeenDomain(e){if(!e)return;let t=this.getSeenDomains();t.includes(e)||(t.push(e),this.setItem(l3,JSON.stringify(t)))}static generateCookieOpts({path:e,domain:t,availableToSubdomains:r,expiresAt:n}){let a={expires:new Date(n),sameSite:"lax"};return e&&(a.path=e),"localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)?a.secure=!1:(r&&(a.domain=t||window.location.host),a.secure=!0),a}}class l5 extends l4{}let l8=Symbol.for("__stytch_b2b_DataLayer"),l6=(e,t)=>{Object.values(e).forEach(e=>e(t))},l7=(({KEYS_TO_EXCLUDE:e=[]}={})=>{let t=(r,n)=>typeof r==typeof n&&(null===r||null===n?r===n:"object"==typeof r?!(Object.keys(r).length!==Object.keys(n).length||Object.keys(r).some(e=>!(e in n)))&&Object.entries(r).filter(([t])=>!e.includes(t)).every(([e,r])=>t(r,n[e])):r===n);return t})({KEYS_TO_EXCLUDE:["last_accessed_at"]});class l9{_publicToken;_datalayer;fromCache=!0;constructor(e,t,{usingCustomApiEndpoint:r}){if(this._publicToken=e,this._datalayer=t,window.addEventListener("storage",this._listen),!r){const{session_token:e}=this._datalayer.readSessionCookie();if(!e)return void this.destroySession()}}_listen=e=>{if(e.key!==oF(this._publicToken,""))return;let t=null===e.newValue||"null"===e.newValue?null:JSON.parse(e.newValue);this.updateState(t,!0)};getTokens(){let{session_token:e,session_jwt:t}=this._datalayer.readSessionCookie();return"string"!=typeof e||"string"!=typeof t?null:{session_token:e,session_jwt:t}}getIntermediateSessionToken(){return this._datalayer.readIntermediateSessionTokenCookie()||null}destroyState(){this.updateStateAndTokens({state:null,session_token:null,session_jwt:null,intermediate_session_token:null})}destroySession(){this._datalayer.removeSessionCookie(),this.updateState(null)}_updateStateAndTokensInternal(e,t){let r=this._datalayer.state,n=null===e.state?null:{...this._datalayer.state,...e.state};this._datalayer.state=n;let a=this.getFromCache();if(this.setCacheRefreshed(),a||!l7(r,n)){let e;e=null==n||t.fromCache?n:{...n,sessionDurationMinutes:t.sessionDurationMinutes},l6(this._datalayer.subscriptions,e)}}updateStateAndTokens(e,t={fromCache:!1}){e.state?("string"==typeof e.session_token?this._datalayer.writeSessionCookie(e):this._datalayer.removeSessionCookie(),this._datalayer.removeISTCookie()):e.intermediate_session_token?("string"==typeof e.intermediate_session_token?this._datalayer.writeIntermediateSessionTokenCookie(e.intermediate_session_token):this._datalayer.removeISTCookie(),this._datalayer.removeSessionCookie()):(this._datalayer.removeSessionCookie(),this._datalayer.removeISTCookie()),this._updateStateAndTokensInternal(e,t),this._datalayer.syncToLocalStorage()}updateState(e,t=!1){let r=this._datalayer.state,n=null===e?null:{...this._datalayer.state,...e};this._datalayer.state=n;let a=this.getFromCache();this.setCacheRefreshed();let o=!l7(r,n);(a||o)&&(l6(this._datalayer.subscriptions,n),o&&!t&&this._datalayer.syncToLocalStorage())}updateTokens(e){let{session_token:t,session_jwt:r}=e,n={...this._datalayer.readSessionCookie(),session_token:t,session_jwt:r};"string"==typeof t||"string"==typeof r?(this._datalayer.writeSessionCookie(n),this._datalayer.removeISTCookie()):this._datalayer.removeSessionCookie()}subscribeToState(e){var t;let r;return t=this._datalayer.subscriptions,t[r=Math.random().toString(36).slice(-10)]=e,()=>delete t[r]}getState(){return this._datalayer.state}destroy(){window.removeEventListener("storage",this._listen)}syncFromDeviceStorage(){return null}getFromCache(){return this.fromCache}setCacheRefreshed(){this.fromCache=!1}}class ce extends l9{updateMember=e=>this.updateState({member:e});getMember=()=>this.getState()?.member??null;updateOrganization=e=>this.updateState({organization:e});getOrganization=()=>this.getState()?.organization??null;getSession=()=>this.getState()?.session??null;updateSession=(e,t)=>{if("member_session"in e&&e.member_session){let r=e.session_token&&e.session_jwt?{session_token:e.session_token,session_jwt:e.session_jwt}:{session_token:!0,session_jwt:!0};this.updateStateAndTokens({state:{session:e.member_session,member:e.member,organization:e.organization},...r,intermediate_session_token:null},{fromCache:!1,sessionDurationMinutes:t?.sessionDurationMinutes})}else this.updateStateAndTokens({state:null,session_token:null,session_jwt:null,intermediate_session_token:e.intermediate_session_token||!0},{fromCache:!1,sessionDurationMinutes:t?.sessionDurationMinutes})};withUpdateSession=e=>async t=>{let r=await e(t);return this.updateSession(r,{sessionDurationMinutes:t?.session_duration_minutes}),r}}class ct extends eH{_oneTap;constructor(e,t,r,n,a,o=eM(),i){super(e,t,r,n,a,o),this._oneTap=i}startOneTapDiscovery=async e=>{let t=await this._oneTap.createOneTapClient();if(!t.success)throw Error(`One Tap could not load: ${t.reason}`);let{client:r}=t,n=this._oneTap.createOnDiscoverySuccessHandler({discoveryRedirectUrl:e.discovery_redirect_url,onSuccess:this._oneTap.redirectOnSuccess});return r.render({style:{position:er.floating},callback:n,cancelOnTapOutside:e.cancel_on_tap_outside})};startOneTap=async e=>{if(!e.organization_id)throw new h("stytch.oauth.googleOneTap.start","organization_id is a required argument");let t=await this._oneTap.createOneTapClient();if(!t.success)throw Error(`One Tap could not load: ${t.reason}`);let{client:r}=t,n=this._oneTap.createOnSuccessHandler({organizationId:e.organization_id,signupRedirectUrl:e.signup_redirect_url,loginRedirectUrl:e.login_redirect_url,onSuccess:this._oneTap.redirectOnSuccess});return r.render({style:{position:er.floating},callback:n,cancelOnTapOutside:e.cancel_on_tap_outside})};googleOneTap={discovery:{start:this.startOneTapDiscovery},start:this.startOneTap}}let cr="u">typeof window&&"IdentityCredential"in window,cn=e=>e===er.forceLegacyEmbedded?"force":e===er.embeddedOnly||e===er.embedded||e===er.floatingOrEmbedded;class ca{_googleClient;_clientId;constructor(e,t){this._googleClient=e,this._clientId=t}cancel(){this._googleClient.cancel()}async render({callback:e,onOneTapCancelled:t,style:r,cancelOnTapOutside:n=!0}){let a,o=cn(r.position),i="force"===(a=cn(r.position))||a&&!cr,s={client_id:this._clientId,callback:e,auto_select:!1,context:"use",itp_support:!0,use_fedcm_for_prompt:"force"!==o,cancel_on_tap_outside:n};return i&&(s.prompt_parent_id="google-parent-prompt",s.cancel_on_tap_outside=!1),this._googleClient.initialize(s),new Promise(e=>{this._googleClient.prompt(r=>{if(r.isSkippedMoment()){let n=r.getSkippedReason?.()??"unknown_reason";return"user_cancel"===n&&t?.(),e({success:!1,reason:n})}return!r.isNotDisplayed&&i||r.isNotDisplayed?.()?e({success:!1,reason:r.getNotDisplayedReason?.()??"unknown_reason"}):r.isDismissedMoment()?void 0:(this.styleFrame(i),e({success:!0}))})})}styleFrame(e){e&&Array.from(document.getElementsByTagName("iframe")).forEach(e=>{e.src.includes(a)&&(e.style.width="100%")})}}let co=Promise.resolve({pkceRequiredForOAuth:!1});class ci{_networkClient;_pkceManager;_config;googleClientID;constructor(e,t,r=co){this._networkClient=e,this._pkceManager=t,this._config=r}async fetchGoogleStart(){if(this.googleClientID)return this.googleClientID;let e=await this._networkClient.fetchSDK({url:"/b2b/oauth/google/onetap/start",method:"GET"});return this.googleClientID=e.google_client_id,this.googleClientID}async submitGoogleOneTapTokenDiscovery({credential:e,discoveryRedirectUrl:t}){let r,{pkceRequiredForOAuth:n}=await this._config;return n?r=(await this._pkceManager.startPKCETransaction()).code_challenge:this._pkceManager.clearPKPair(),await this._networkClient.fetchSDK({url:"/b2b/oauth/google/onetap/discovery/submit",method:"POST",body:{id_token:e,discovery_redirect_url:t,pkce_code_challenge:r}})}async submitGoogleOneTapToken({credential:e,organizationId:t,signupRedirectUrl:r,loginRedirectUrl:n}){let a,{pkceRequiredForOAuth:o}=await this._config;return o?a=(await this._pkceManager.startPKCETransaction()).code_challenge:this._pkceManager.clearPKPair(),await this._networkClient.fetchSDK({url:"/b2b/oauth/google/onetap/submit",method:"POST",body:{id_token:e,organization_id:t,signup_redirect_url:r,login_redirect_url:n,pkce_code_challenge:a}})}async createOneTapClient(){let e;try{e=await this.fetchGoogleStart()}catch(e){return{success:!1,reason:v.from(e).error_type}}return""===e?{success:!1,reason:"oauth_config_not_found"}:{success:!0,client:new ca(await eD(o,()=>window.google.accounts.id),e)}}createOnDiscoverySuccessHandler=({discoveryRedirectUrl:e,onSuccess:t,onError:r})=>async n=>{let{credential:a}=n,o=this.submitGoogleOneTapTokenDiscovery({credential:a,discoveryRedirectUrl:e}).then(e=>t(e.redirect_url));r&&(o=o.catch(e=>r(e))),await o};createOnSuccessHandler=({organizationId:e,signupRedirectUrl:t,loginRedirectUrl:r,onSuccess:n,onError:a})=>async o=>{let{credential:i}=o,s=this.submitGoogleOneTapToken({credential:i,organizationId:e,signupRedirectUrl:t,loginRedirectUrl:r}).then(e=>n(e.redirect_url));a&&(s=s.catch(e=>a(e))),await s};redirectOnSuccess=e=>{window.location.href=e}}class cs{_subscriptionService;_sessionManager;_networkClient;_dataLayer;_stateChangeClient;magicLinks;session;member;self;organization;oauth;sso;discovery;passwords;otps;totp;recoveryCodes;rbac;scim;impersonation;idp;onStateChange;parseAuthenticateUrl;authenticateByUrl;constructor(e,t){if("u"<typeof window)throw Error("`new StytchB2BClient()` is not supported in server environments. If using @stytch/react or @stytch/nextjs, use `createStytchB2BClient()` instead.");(e=>{"string"!=typeof e?eC(`Public token is malformed. Expected a string, got ${typeof e}.${eO}`):""===e?eC(`Public token is malformed. Expected "public-token-...", got an empty string.${eO}`):e.startsWith("public-token-")||eC(`Public token is malformed. Expected "public-token-...", got ${e}.${eO}`)})(e);const r=e??"",n=((e,t={})=>{let{cookieOptions:r,keepSessionAlive:n}=t;return eL(e,t,{keepSessionAlive:"optionalBoolean"}),r&&eL(`${e}.cookieOptions`,r,{opaqueTokenCookieName:"optionalString",jwtCookieName:"optionalString",istCookieName:"optionalString",path:"optionalString",domain:"optionalString"}),{cookieOptions:r,keepSessionAlive:n,endpoints:{testAPIURL:(e=>{let t=e?.customBaseUrl??e?.endpointOptions?.testApiDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.customBaseUrl?"customBaseUrl":"testApiDomain";eC(`Unable to use custom API domain \`${t}\`. ${r} should be a valid domain.`)}}return e?.endpoints?.testAPIURL??"https://test.stytch.com"})(t),liveAPIURL:(e=>{let t=e?.customBaseUrl??e?.endpointOptions?.apiDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.customBaseUrl?"customBaseUrl":"apiDomain";eC(`Unable to use custom API domain \`${t}\`. ${r} should be a valid domain.`)}}return e?.endpoints?.liveAPIURL??"https://api.stytch.com"})(t),dfpBackendURL:(e=>{let t=e?.dfppaUrl??e?.endpointOptions?.dfppaDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.dfppaUrl?"dfppaUrl":"dfppaDomain";eC(`Unable to use custom DFPPA domain \`${t}\`. ${r} should be a valid domain.`)}}return e?.endpoints?.dfpBackendURL??"https://telemetry.stytch.com"})(t),dfpCdnURL:(e=>{let t=e?.dfpCdnUrl??e?.endpointOptions?.dfpCdnDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.dfpCdnUrl?"dfpCdnUrl":"dfpCdnDomain";eC(`Unable to use custom DFP CDN domain \`${t}\`. ${r} should be a valid domain.`)}}return"https://elements.stytch.com"})(t),clientsideServicesIframeURL:t?.endpoints?.clientsideServicesIframeURL??"https://js.stytch.com/clientside-services/index.html"}}})(this.constructor.name,t),a=((e,t={})=>{let{customBaseUrl:r,endpointOptions:n}=t;return e.includes("public-token-test")?!!(r||n?.testApiDomain):!!(r||n?.apiDomain)})(r,t);this._dataLayer=((e,t)=>{let r,n=((r=window)[l8]||(r[l8]={}),r[l8]);return n[e]||(n[e]=new l5(e,t)),n[e]})(r,n),this._subscriptionService=new ce(r,this._dataLayer,{usingCustomApiEndpoint:a}),this._stateChangeClient=new e5(this._subscriptionService,{}),this.onStateChange=(...e)=>this._stateChangeClient.onStateChange(...e);const o=()=>({stytch_member_id:this._dataLayer.state?.member?.member_id,stytch_member_session_id:this._dataLayer.state?.session?.member_session_id}),i=new l1(this._dataLayer,"passwords"),s=new lQ(r,this._dataLayer,n.endpoints.liveAPIURL,n.endpoints.testAPIURL,o);this._networkClient=s;const l=new lY(r,s,this._dataLayer),c=new lZ(l.getAsync()),d=new ez(r,n.endpoints.dfpBackendURL,n.endpoints.dfpCdnURL,l.getAsync(),c.executeRecaptcha),u=new lJ(n.endpoints.clientsideServicesIframeURL),h=new l1(this._dataLayer,"oauth"),m=new ci(s,h,l.getAsync());this.organization=new eK(s,s,this._subscriptionService),this.member=new eJ(s,s,this._subscriptionService),this.self=new eJ(s,s,this._subscriptionService),this.session=new eQ(s,this._subscriptionService),this.magicLinks=new eq(s,this._subscriptionService,new l1(this._dataLayer,"magic_links"),i,l.getAsync(),d),this.oauth=new ct(s,this._subscriptionService,h,l.getAsync(),{publicToken:r,testAPIURL:n.endpoints.testAPIURL,liveAPIURL:n.endpoints.liveAPIURL},d,m),this.sso=new eX(s,this._subscriptionService,new l1(this._dataLayer,"sso"),l.getAsync(),{publicToken:r,testAPIURL:n.endpoints.testAPIURL,liveAPIURL:n.endpoints.liveAPIURL},d),this.discovery=new eB(s,this._subscriptionService),this.passwords=new eV(s,this._subscriptionService,i,l.getAsync(),d),this.otps=new ej(s,this._subscriptionService,d),this.totp=new e1(s,this._subscriptionService,d),this.recoveryCodes=new eY(s,this._subscriptionService,d),this.rbac=new eG(l.getSync(),l.getAsync(),this._subscriptionService),this.scim=new eZ(this._networkClient,this._subscriptionService),this.impersonation=new eU(this._networkClient,this._subscriptionService,d),this.idp=new eN(s),this._sessionManager=new e4(this._subscriptionService,this.session,r,{keepSessionAlive:n.keepSessionAlive});const p=new e2(s,d);(a||this._dataLayer.readSessionCookie().session_token)&&this._sessionManager.performBackgroundRefresh();const{authenticateByUrl:_,parseAuthenticateUrl:g}=(e=>{let t=Object.keys(e),r=(e=window.location.href)=>{let r=new URL(e),n=r.searchParams.get("stytch_token_type"),a=r.searchParams.get("token");return a&&n?t.includes(n)?{handled:!0,token:a,tokenType:n}:{handled:!1,token:a,tokenType:n}:null};return{authenticateByUrl:async({clearParams:t,...n},a=window.location.href)=>{let o=t??a===window.location.href,i=r(a);if(null==i)return null;if(!i.handled)return i;let{token:s,tokenType:l}=i,c=e[l];return o&&sy(),{handled:!0,tokenType:l,data:await c(s,n)}},parseAuthenticateUrl:r}})({discovery:e=>this.magicLinks.discovery.authenticate({discovery_magic_links_token:e}),discovery_oauth:e=>this.oauth.discovery.authenticate({discovery_oauth_token:e}),oauth:(e,t)=>this.oauth.authenticate({oauth_token:e,...t}),sso:(e,t)=>this.sso.authenticate({sso_token:e,...t}),multi_tenant_magic_links:(e,t)=>this.magicLinks.authenticate({magic_links_token:e,...t}),multi_tenant_impersonation:e=>this.impersonation.authenticate({impersonation_token:e})});this.authenticateByUrl=_,this.parseAuthenticateUrl=g,s.logEvent({name:"b2b_sdk_instance_instantiated",details:{event_callback_registered:!1,error_callback_registered:!1,success_callback_registered:!1}}),l.getAsync().then(e=>{"CONSUMER"===e.vertical&&eP("This application is using a Stytch client for B2B projects, but the public token is for a Stytch Consumer project. Use a Consumer Stytch client instead, or verify that the public token is correct.")}),((e,t)=>{Object.assign(e,{[rX]:t})})(this,{bootstrap:l,clientsideServices:u,publicToken:r,searchManager:p,dataLayer:this._dataLayer,networkClient:s,oneTap:m})}}let cl=(...e)=>"u"<typeof window?lV("stytch"):new cs(...e),cc={"color-scheme":"shadcn","font-family":`var(--font-sans, ${nL["font-family"]})`,"font-family-mono":`var(--font-mono, ${nL["font-family-mono"]})`,"text-base":"var(--text-base)","transition-duration":nL["transition-duration"],spacing:"var(--spacing)","mobile-breakpoint":"var(--breakpoint-sm)","rounded-base":"calc(var(--radius) / 2.5)","container-width":nL["container-width"],"container-radius":"var(--radius-xl)",shadow:"var(--shadow)",background:"var(--background)",foreground:"var(--foreground)",primary:"var(--primary)","primary-foreground":"var(--primary-foreground)",secondary:"var(--secondary)","secondary-foreground":"var(--secondary-foreground)",muted:"var(--muted)","muted-foreground":"var(--muted-foreground)",accent:"var(--accent)","accent-foreground":"var(--accent-foreground)",border:"var(--border)",input:"var(--input)",ring:"var(--ring)",destructive:"var(--destructive)","destructive-foreground":nL["destructive-foreground"],success:nB.success,warning:nB.warning};return e.AuthFlowType=s,e.B2BMFAProducts=d,e.B2BOAuthProviders=c,e.B2BProducts=sL,e.BiometricRegistrationIdIsNullOrBlank=X,e.BiometricsAlreadyEnrolledError=class extends b{constructor(){super("BiometricsAlreadyEnrolledError","There is already a biometric factor enrolled on this device. Fully authenticate with all factors and remove the existing registration before attempting to register again.")}},e.BiometricsFailedError=F,e.BiometricsUnavailableError=E,e.ChallengeSigningFailedError=R,e.DFPNotConfigured=ee,e.DeviceCredentialsNotAllowedError=x,e.FailedCodeChallengeError=B,e.FailedToDecryptDataError=U,e.IDPOAuthFlowMissingParamError=et,e.InternalError=k,e.InvalidAuthorizationCredentialError=z,e.InvalidCredentialTypeError=j,e.InvalidPrivateKeyLength=Q,e.InvalidRedirectSchemeError=H,e.InvalidStartUrlError=q,e.JSONDataNotConvertibleToStringError=V,e.KeyInvalidatedError=C,e.KeystoreUnavailableError=P,e.MissingAttestationObjectError=$,e.MissingAuthorizationCredentialIDTokenError=D,e.MissingCipherIv=J,e.MissingGoogleClientIDError=class extends b{constructor(){super("MissingGoogleClientIDError","No Google client ID was found in the project.")}},e.MissingPKCEError=class extends b{constructor(){super("MissingPKCEError","Make sure this flow is completed on the same device on which it was started.")}},e.MissingPublicKeyError=I,e.MissingUrlError=K,e.NoBiometricsEnrolledError=T,e.NoBiometricsRegistrationError=S,e.NoCredentialsPresentError=M,e.NoCurrentSessionError=w,e.OAuthProviders={Google:"google",Microsoft:"microsoft",Apple:"apple",Github:"github",GitLab:"gitlab",Facebook:"facebook",Discord:"discord",Salesforce:"salesforce",Slack:"slack",Amazon:"amazon",Bitbucket:"bitbucket",LinkedIn:"linkedin",Coinbase:"coinbase",Twitch:"twitch",Twitter:"twitter",TikTok:"tiktok",Snapchat:"snapchat",Figma:"figma",Yahoo:"yahoo"},e.OTPMethods={SMS:"sms",WhatsApp:"whatsapp",Email:"email"},e.OneTapPositions=er,e.PasskeysInvalidEncoding=G,e.PasskeysMisconfigured=Y,e.PasskeysUnsupportedError=N,e.RNUIProducts=eh,e.RandomNumberGenerationFailed=W,e.RedirectURLType=l,e.SDKAPIUnreachableError=u,e.SDKNotConfiguredError=L,e.SignInWithAppleMisconfigured=Z,e.StytchAPIError=v,e.StytchAPISchemaError=y,e.StytchAPIUnreachableError=f,e.StytchB2B=lK,e.StytchB2BClient=cs,e.StytchB2BHeadlessClient=cs,e.StytchB2BIdentityProvider=lq,e.StytchB2BUIClient=class extends cs{constructor(e,t){super(e,t),eC("StytchB2BUIClient is deprecated. Use the Stytch web components directly instead.")}mount=lj;mountIdentityProvider=lH},e.StytchError=g,e.StytchEventType=eu,e.StytchSDKAPIError=p,e.StytchSDKError=b,e.StytchSDKSchemaError=m,e.StytchSDKUsageError=h,e.UNRECOVERABLE_ERROR_TYPES=_,e.UserCancellationError=O,e.UserLockedOutError=A,e.Wallets={Phantom:"Phantom",Metamask:"Metamask",Coinbase:"Coinbase",Binance:"Binance",GenericEthereumWallet:"GenericEthereumWallet",GenericSolanaWallet:"GenericSolanaWallet"},e.createStytchB2BClient=cl,e.createStytchB2BHeadlessClient=cl,e.defaultDarkTheme=nN,e.defaultTheme=nB,e.errorToStytchError=function(e){if(e instanceof b)return e;switch(e.message){case"no_current_session":return new w;case"no_biometrics_registration":return new S;case"biometrics_unavailable":case"device_hardware_error":case"biometrics_not_available":return new E;case"key_invalidated":case"no_biometric_key":return new C;case"no_biometrics_enrolled":return new T;case"keystore_unavailable":return new P;case"device_credentials_not_allowed":return new x;case"user_cancellation":return new O;case"user_locked_out":return new A;case"google_onetap_missing_id_token":case"oauth_apple_missing_id_token":case"missing_authorization_credential_id_token":return new D;case"google_onetap_missing_member":case"oauth_apple_credential_invalid":case"invalid_authorization_credential":return new z;case"missing_public_key":return new I;case"challenge_signing_failed":return new R;case"no_credentials_present":return new M;case"sdk_not_configured":return new L;case"failed_code_challenge":return new B;case"passkeys_unsupported":return new N;case"failed_to_decrypt_data":return new U;case"biometrics_failed":return new F;case"invalid_start_url":return new q;case"invalid_redirect_scheme":return new H;case"missing_url":return new K;case"invalid_credential_type":return new j;case"missing_attestation_object":return new $;case"json_data_not_convertible_to_string":return new V;case"random_number_generation_failed":return new W;case"passkeys_invalid_encoding":return new G;case"passkeys_misconfigured":return new Y;case"signinwithapple_misconfigured":return new Z;case"missing_cipher_iv":return new J;case"invalid_private_key_length":return new Q;case"biometric_registration_id_is_null_or_blank":return new X;case"dfp_not_configured":return new ee;default:return new k(e)}},e.iconsBlack={amazon:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M16.5 15.53C9.2 19 4.69 16.1 1.8 14.33c-.19-.1-.5.03-.23.34.97 1.17 4.13 3.98 8.25 3.98s6.59-2.25 6.9-2.64c.3-.4.08-.6-.22-.48m2.04-1.13c-.2-.25-1.19-.3-1.81-.22s-1.57.45-1.49.68c.04.09.13.05.56.01s1.64-.2 1.9.14c.25.33-.4 1.9-.51 2.16s.04.32.25.15.6-.6.85-1.23c.25-.62.4-1.5.25-1.69"}),tm("path",{fill:"#000",fillRule:"evenodd",d:"M11.6 8.46c0 .9.02 1.67-.44 2.47-.37.66-.96 1.06-1.62 1.06-.9 0-1.42-.68-1.42-1.69 0-1.99 1.79-2.35 3.48-2.35zm2.35 5.69a.5.5 0 0 1-.55.05c-.78-.64-.91-.94-1.34-1.55-1.28 1.3-2.19 1.7-3.85 1.7-1.96 0-3.5-1.22-3.5-3.64 0-1.9 1.03-3.19 2.5-3.82 1.26-.56 3.03-.66 4.39-.81v-.3c0-.56.04-1.22-.29-1.7-.28-.43-.83-.6-1.3-.6-.9 0-1.7.45-1.89 1.4-.04.21-.19.42-.4.43l-2.27-.25c-.19-.04-.4-.2-.34-.49C5.63 1.83 8.1 1 10.33 1c1.13 0 2.62.3 3.52 1.16 1.13 1.06 1.02 2.48 1.02 4.02v3.64c0 1.1.46 1.57.88 2.16.16.21.19.47 0 .63-.48.4-1.33 1.13-1.8 1.55z",clipRule:"evenodd"})),apple:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M16.55 7.14c-.1.08-1.86 1.12-1.86 3.43A4 4 0 0 0 17 14.2c0 .06-.35 1.3-1.18 2.56-.74 1.1-1.5 2.21-2.67 2.21s-1.47-.7-2.82-.7c-1.32 0-1.79.73-2.86.73S5.66 17.97 4.8 16.7c-1-1.48-1.8-3.78-1.8-5.96C3 7.25 5.17 5.4 7.31 5.4c1.14 0 2.09.78 2.8.78.68 0 1.74-.83 3.03-.83.5 0 2.26.05 3.41 1.79m-4.02-3.27c.53-.66.91-1.59.91-2.5q0-.22-.03-.37c-.87.03-1.9.6-2.53 1.36-.49.59-.95 1.5-.95 2.44 0 .14.03.28.04.33l.23.02c.78 0 1.76-.54 2.33-1.28"})),bitbucket:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"m17.96 9.14-1.34 8.08a.9.9 0 0 1-.93.78H4.3a.9.9 0 0 1-.93-.78L1.02 2.81c-.1-.5.17-.81.64-.81h16.68c.47 0 .73.32.64.8l-.64 3.8c-.09.55-.4.78-.93.78H7.37q-.23 0-.2.26l.79 4.78q.05.18.23.2h3.62q.17-.02.23-.2l.56-3.46c.05-.43.35-.6.75-.6h3.94c.58 0 .76.29.67.78"})),coinbase:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M10.02 14.5a4.5 4.5 0 1 1 4.44-5.25H19a9 9 0 1 0 0 1.5h-4.54a4.5 4.5 0 0 1-4.44 3.75"})),discord:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M12.53 3q-.26.44-.47.92a15 15 0 0 0-4.12 0q-.21-.47-.48-.92-1.93.3-3.72 1.1a13.8 13.8 0 0 0-2.66 9.72Q3.15 15.28 5.63 16q.56-.72.98-1.5a10 10 0 0 1-1.54-.7l.38-.27c2.88 1.3 6.22 1.3 9.1 0q.19.15.38.27a10 10 0 0 1-1.54.7q.41.8.98 1.5 2.48-.7 4.55-2.18c.38-3.69-.64-6.89-2.67-9.73a15 15 0 0 0-3.71-1.08zm-5.52 8.86c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.9 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72m5.98 0c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.91 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72"})),facebook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M19 10a9 9 0 1 0-11.17 8.73v-5.98H5.97V10h1.86V8.81c0-3.06 1.38-4.48 4.39-4.48.57 0 1.55.11 1.96.23v2.49q-.35-.03-1.04-.03c-1.48 0-2.05.55-2.05 2V10h2.94l-.5 2.75h-2.44v6.18A9 9 0 0 0 19 10"})),figma:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M5.47 7.18A3.4 3.4 0 0 1 4 4.36 3.3 3.3 0 0 1 7.23 1h5.54A3.3 3.3 0 0 1 16 4.36a3.4 3.4 0 0 1-1.47 2.82A3.4 3.4 0 0 1 16 10a3.3 3.3 0 0 1-3.23 3.36h-.06c-.84 0-1.61-.33-2.19-.89v3.14c0 1.87-1.48 3.39-3.27 3.39A3.3 3.3 0 0 1 4 15.64a3.4 3.4 0 0 1 1.47-2.82A3.4 3.4 0 0 1 4 10a3.4 3.4 0 0 1 1.47-2.82M10.52 10c0 1.26.98 2.28 2.19 2.28h.06c1.2 0 2.19-1.02 2.19-2.28s-.98-2.28-2.2-2.28h-.05A2.23 2.23 0 0 0 10.52 10M9.48 7.72H7.23A2.23 2.23 0 0 0 5.04 10c0 1.25.98 2.27 2.18 2.28h2.26zm-2.25 5.64a2.23 2.23 0 0 0-2.19 2.28c0 1.25 1 2.27 2.2 2.27a2.3 2.3 0 0 0 2.24-2.3v-2.25zm2.25-6.72H7.23a2.23 2.23 0 0 1-2.19-2.28c0-1.25.98-2.27 2.2-2.27h2.24zm3.29 0h-2.25V2.09h2.25c1.2 0 2.19 1.02 2.19 2.27 0 1.26-.98 2.28-2.2 2.28",clipRule:"evenodd"})),github:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M9.97 1A9.1 9.1 0 0 0 1 10.23a9.2 9.2 0 0 0 6.14 8.75c.44.1.6-.2.6-.44l-.01-1.71c-2.5.55-3.02-1.1-3.02-1.1-.4-1.07-1-1.35-1-1.35-.8-.56.07-.56.07-.56.9.06 1.38.95 1.38.95.8 1.4 2.1 1 2.61.76.08-.6.32-1 .57-1.24-2-.21-4.09-1-4.09-4.55 0-1 .36-1.83.92-2.48-.08-.22-.4-1.17.1-2.44 0 0 .75-.24 2.46.95a8.5 8.5 0 0 1 4.49 0c1.7-1.2 2.46-.95 2.46-.95.5 1.27.18 2.22.1 2.44.57.65.91 1.47.91 2.48 0 3.54-2.1 4.32-4.1 4.55.33.3.61.84.61 1.71l-.01 2.54c0 .24.16.53.6.44a9.2 9.2 0 0 0 6.14-8.75A9.1 9.1 0 0 0 9.97 1",clipRule:"evenodd"})),gitlab:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"m18.7 8.2-.02-.07-2.45-6.4a.64.64 0 0 0-.64-.4.7.7 0 0 0-.37.14q-.16.13-.21.33l-1.66 5.06h-6.7L5 1.8a.64.64 0 0 0-1.22-.07l-2.46 6.4-.02.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8 1.85 1.4 1.12.85a.8.8 0 0 0 .92 0l1.12-.85 1.85-1.4 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.51-5.26"})),google:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M18.82 10.2q0-.95-.16-1.84h-8.48v3.49h4.84a4.2 4.2 0 0 1-1.8 2.7v2.27h2.92a8.8 8.8 0 0 0 2.68-6.62"}),tm("path",{fill:"#000",d:"M10.18 19c2.43 0 4.47-.8 5.96-2.18l-2.92-2.26c-.8.54-1.83.86-3.04.86a5.4 5.4 0 0 1-5.04-3.7h-3v2.32A9 9 0 0 0 10.19 19"}),tm("path",{fill:"#000",d:"M5.14 11.71a5.4 5.4 0 0 1 0-3.42V5.97h-3a8.9 8.9 0 0 0 0 8.06l2.34-1.81z"}),tm("path",{fill:"#000",d:"M10.18 4.58q2.01 0 3.44 1.35l2.58-2.58A8.98 8.98 0 0 0 2.14 5.97l3 2.32a5.4 5.4 0 0 1 5.04-3.7"})),linkedin:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M17 1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2zM3.76 16.5h2.68V7.83H3.76zm9.59-8.93C11.5 7.57 10.73 9 10.73 9V7.83H8.16v8.67h2.57v-4.55c0-1.22.56-1.94 1.64-1.94.99 0 1.46.7 1.46 1.94v4.55h2.67v-5.49c0-2.32-1.32-3.44-3.15-3.44M5.09 3.5A1.6 1.6 0 0 0 3.5 5.1c0 .88.71 1.6 1.59 1.6a1.6 1.6 0 0 0 1.58-1.6c0-.88-.7-1.6-1.58-1.6",clipRule:"evenodd"})),microsoft:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M1 1h8.57v8.57H1zM10.43 1H19v8.57h-8.57zM1 10.43h8.57V19H1zM10.43 10.43H19V19h-8.57z"})),salesforce:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M8.49 4.92a3.1 3.1 0 0 1 2.28-1.01c1.2 0 2.22.68 2.78 1.7q.75-.35 1.57-.35c2.14 0 3.88 1.8 3.88 4.04a3.96 3.96 0 0 1-4.65 3.96c-.49.9-1.42 1.5-2.47 1.5q-.65 0-1.25-.3a3.2 3.2 0 0 1-2.97 2.04c-1.4 0-2.58-.9-3.04-2.18q-.3.06-.62.06c-1.66 0-3-1.4-3-3.13 0-1.16.6-2.17 1.5-2.71a4 4 0 0 1-.29-1.44c0-1.99 1.57-3.6 3.5-3.6 1.13 0 2.15.56 2.78 1.42",clipRule:"evenodd"})),slack:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M4.8 12.38a1.89 1.89 0 1 1-1.9-1.9h1.9zm.94 0a1.89 1.89 0 1 1 3.78 0v4.73a1.89 1.89 0 1 1-3.78 0zM7.63 4.78A1.89 1.89 0 1 1 9.52 2.9v1.9zm0 .96a1.89 1.89 0 1 1 0 3.79H2.89a1.89 1.89 0 1 1 0-3.79zM15.2 7.64a1.89 1.89 0 1 1 1.9 1.89h-1.9zm-.94 0a1.89 1.89 0 1 1-3.78 0V2.89a1.89 1.89 0 1 1 3.78 0zM12.37 15.22a1.89 1.89 0 1 1-1.89 1.89v-1.9zm0-.95a1.89 1.89 0 1 1 0-3.78h4.74a1.89 1.89 0 1 1 0 3.78z"})),snapchat:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M18.94 14.1a1.3 1.3 0 0 0-.64-.67l-.14-.07-.24-.13a5.4 5.4 0 0 1-1.97-1.68 4 4 0 0 1-.33-.6q-.06-.16-.01-.23l.1-.12.82-.53q.52-.36.74-.8a1.6 1.6 0 0 0 .08-1.3c-.23-.6-.8-.98-1.5-.98a2 2 0 0 0-.54.08q.01-.64-.04-1.29a4.83 4.83 0 0 0-2.44-3.93A5.6 5.6 0 0 0 10 1.15a5.6 5.6 0 0 0-2.82.72 4.8 4.8 0 0 0-2.44 3.93q-.06.66-.04 1.28a3 3 0 0 0-.55-.08 1.54 1.54 0 0 0-1.6 1.65q.01.33.18.64.23.43.74.8l.42.27.38.25q.08.04.12.12.05.07-.01.24-.14.3-.33.59a5.4 5.4 0 0 1-1.91 1.65c-.43.23-.89.39-1.08.9-.14.4-.05.84.32 1.21q.2.21.46.35.53.3 1.12.45.13.03.23.1c.13.12.12.3.3.55q.13.2.33.34c.37.26.78.27 1.23.3.4 0 .85.02 1.37.2q.3.11.7.36c.61.38 1.46.9 2.88.9s2.27-.52 2.9-.9q.37-.25.68-.36c.52-.17.97-.2 1.37-.2.44-.02.86-.04 1.23-.3q.24-.16.38-.41c.13-.22.13-.37.25-.47l.21-.1a5 5 0 0 0 1.14-.46q.28-.15.48-.37v-.01c.35-.37.44-.8.3-1.18m-1.27.68c-.77.42-1.28.38-1.67.64-.34.21-.14.68-.39.85-.3.21-1.2-.01-2.34.37-.95.31-1.56 1.21-3.27 1.21-1.7 0-2.3-.9-3.27-1.22-1.15-.38-2.04-.15-2.34-.36-.25-.17-.05-.64-.38-.86-.4-.25-.91-.2-1.68-.63-.5-.27-.21-.44-.05-.52 2.79-1.35 3.23-3.43 3.25-3.58.02-.2.05-.34-.16-.53-.2-.18-1.08-.73-1.32-.9-.4-.28-.59-.57-.46-.91.1-.25.32-.34.56-.34l.22.03c.44.1.87.32 1.12.38l.1.01q.19 0 .17-.22c-.03-.49-.1-1.43-.02-2.32.1-1.22.5-1.83.96-2.36A4.3 4.3 0 0 1 10 2.15a4.3 4.3 0 0 1 3.3 1.36c.46.54.86 1.14.96 2.36.08.89.01 1.84-.02 2.33q-.01.23.17.22l.1-.02c.24-.06.68-.28 1.12-.38l.22-.02c.24 0 .46.1.56.33q.17.5-.46.91c-.24.17-1.13.72-1.32.9-.21.2-.18.34-.16.53.02.16.46 2.24 3.25 3.59.17.08.44.25-.05.52"})),tiktok:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M11.38 1.79h2.3A4.42 4.42 0 0 0 18 5.3v.68l.01 2.41a7.6 7.6 0 0 1-4.39-1.38v6.28c0 3.14-2.6 5.7-5.8 5.7a6 6 0 0 1-3.33-1.03A5.7 5.7 0 0 1 2 13.3a5.76 5.76 0 0 1 6.59-5.64v3.16q-.37-.11-.78-.12a2.63 2.63 0 0 0-2.66 2.6c0 1 .58 1.87 1.43 2.3q.55.3 1.23.3c1.42 0 2.59-1.1 2.64-2.5V1h3.16q0 .4.08.79z",clipRule:"evenodd"})),twitch:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M5.63 1 2.5 4.21V15.8h3.75V19l3.13-3.21h2.5L17.5 10V1zm10.62 8.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"}),tm("path",{fill:"#000",d:"M14.38 4.54h-1.26v3.85h1.26zM10.94 4.54H9.69v3.85h1.25z"})),xTwitter:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M11.67 8.62 18.23 1h-1.55l-5.7 6.61L6.44 1H1.2l6.87 10-6.87 8h1.55l6.01-7 4.8 7h5.24zm-2.12 2.47-.7-1-5.54-7.92H5.7l4.47 6.4.7 1 5.8 8.3H14.3z"})),yahoo:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M1 5.74 4.92 15l-1.4 3.33h3.44l5.23-12.6H8.76l-2.13 5.4-2.1-5.4zm9.47 7.24c0 1.16.9 2.1 2.1 2.1 1.25 0 2.19-.98 2.19-2.17 0-1.18-.9-2.11-2.11-2.11-1.25 0-2.18 1-2.18 2.18m4.68-11.31L11.7 9.99h3.85L19 1.67z",clipRule:"evenodd"})),phantom:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M3.13 17.5c2.3 0 4.02-2 5.05-3.58q-.19.53-.2 1.04c0 .92.54 1.58 1.58 1.58 1.44 0 2.97-1.26 3.76-2.62a2 2 0 0 0-.08.55c0 .64.36 1.04 1.1 1.04 2.32 0 4.66-4.12 4.66-7.73 0-2.8-1.42-5.28-4.98-5.28C7.75 2.5 1 10.16 1 15.11c0 1.94 1.04 2.39 2.13 2.39m8.73-10.02c0-.7.39-1.2.96-1.2s.95.5.95 1.2-.4 1.2-.95 1.2c-.57 0-.96-.5-.96-1.2m2.98 0c0-.7.39-1.2.96-1.2.55 0 .94.5.94 1.2s-.38 1.2-.94 1.2c-.57 0-.96-.5-.96-1.2"})),metamask:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("g",{fill:"#000",clipPath:"url(#a)"},tm("path",{d:"m18.66 14.11-1.06 3.5-3.58-1.03-.28-.09-.41-.12-1.76-.5-.15.01-.06.22 2.17.62-2.57 1.5H9.04l-2.56-1.5 2.16-.62-.06-.22-.15-.02-2.17.63-.28.09-3.57 1.04-1.07-3.5-.34-.14 1.21 3.98 3.9-1.13 2.85 1.67h2.08l2.86-1.67 3.89 1.13L19 13.98z"}),tm("path",{d:"M5.98 14.11v2.47l.28-.09v-2.23l2.17 1.6.15.02.14-.15-2.55-1.9H1.34l1.08-3.95-.26-.14L1 13.98l.34.13zm8.92-2.22-.92.22v.3l1.35-.33.01-2.2h-.19l-.1-.07v1.83l-1.11-1.03h-2.3l-.05.29h2.23z"}),tm("path",{d:"M6.02 12.4v-.29l-.92-.22 1.08-1H8.4l-.05-.28H6.12l-.1.04-1.07.99V9.81l-.1.07h-.2l.02 2.2zm11.56-2.52 1.08 3.95h-4.83l-2.55 1.9.14.15.15-.02 2.17-1.6v2.23l.28.09V14.1h4.64l.34-.13-1.16-4.24z"}),tm("path",{d:"M4.66 9.88h.19l.1-.07 2.97-2 .45 2.8.04.29.7 4.41.25-.1h.02l-1.2-7.64.22-2.24h3.2l.23 2.24-1.21 7.64h.02l.25.1.7-4.41.05-.28.44-2.8 2.97 2 .1.06h2.43l.26-.14L19 6.16 17.78 1.5 11.7 5.05H8.3L2.22 1.5 1 6.16l1.16 3.58.26.14zM18.7 6.15 17.6 9.6h-2.35L12.2 7.55 17.62 2zm-1.84-3.78-4.77 4.88-.2-1.98zm-8.75 2.9-.2 1.98-4.77-4.88zm-6.81.88L2.38 2l5.43 5.55L4.76 9.6H2.4z"}),tm("path",{d:"M10.8 15.21H9.2l-.62.67.3 1.1h2.23l.31-1.1zm.1 1.49H9.1l-.2-.74.41-.46h1.36l.42.46zM8.4 12.82l-.03-.07-.47-1.21H6.62l-.6.57v.3l2.12.5zm-1.67-1h.97l.3.77-1.66-.4zm5.12 1.1 2.12-.52v-.29l-.6-.57h-1.29l-.47 1.2-.03.08zm1.79-.73-1.67.4.3-.77h.98z"})),tm("defs",null,tm("clipPath",{id:"a"},tm("path",{fill:"#fff",d:"M1 1.5h18v17H1z"})))),binance:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"m6.43 8.56 3.5-3.5 3.49 3.5 2.03-2.03L9.92 1 4.4 6.53zM4.99 10 2.96 7.97.92 10l2.04 2.03zM6.43 11.44l3.5 3.5 3.49-3.5 2.03 2.03L9.92 19 4.4 13.47zM16.89 12.03 18.92 10 16.9 7.97 14.85 10z"}),tm("path",{fill:"#000",d:"M11.99 10 9.92 7.93 8.4 9.46l-.18.18-.36.36 2.06 2.07z"})),gmail:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M1 5.1v1.63l1.88 1.82L5.09 9.8l.41-2.76-.4-2.56-1.15-.86A1.84 1.84 0 0 0 1 5.09M14.9 4.48l-.4 2.6.4 2.72 2.02-1L19 6.73V5.09a1.84 1.84 0 0 0-2.95-1.47z"}),tm("path",{fill:"#000",d:"M2.23 16.75h2.86V9.8L1 6.73v8.8c0 .67.55 1.22 1.23 1.22M14.9 16.75h2.87c.68 0 1.23-.55 1.23-1.23v-8.8L14.9 9.8zM10 8.16 5.1 4.48V9.8l4.9 3.68 4.9-3.68V4.48z"})),outlook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M12.24 4.82v3.52l1.23.77q.06.01.14 0l5.3-3.57c0-.42-.4-.72-.63-.72z"}),tm("path",{fill:"#000",d:"m12.24 9.65 1.12.77c.16.12.35 0 .35 0l5.2-3.46v6.48c0 .7-.46 1-.97 1h-5.7zM6.43 8.03q-.59 0-.92.54t-.34 1.42q0 .9.34 1.43t.89.52q.56 0 .9-.51.32-.51.33-1.41 0-.95-.33-1.47-.32-.52-.87-.52"}),tm("path",{fill:"#000",d:"M1.1 3.03V16.8L11.58 19V1zm7.01 9.21q-.66.88-1.73.88-1.04 0-1.7-.85a3.5 3.5 0 0 1-.65-2.2q0-1.44.66-2.33a2.1 2.1 0 0 1 1.77-.89 2 2 0 0 1 1.67.85q.64.85.64 2.24a3.7 3.7 0 0 1-.66 2.3"}))},e.iconsWhite={amazon:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M16.5 15.53C9.2 19 4.69 16.1 1.8 14.33c-.19-.1-.5.03-.23.34.97 1.17 4.13 3.98 8.25 3.98s6.59-2.25 6.9-2.64c.3-.4.08-.6-.22-.48m2.04-1.13c-.2-.25-1.19-.3-1.81-.22s-1.57.45-1.49.68c.04.09.13.05.56.01s1.64-.2 1.9.14c.25.33-.4 1.9-.51 2.16s.04.32.25.15.6-.6.85-1.23c.25-.62.4-1.5.25-1.69"}),tm("path",{fill:"#fff",fillRule:"evenodd",d:"M11.6 8.46c0 .9.02 1.67-.44 2.47-.37.66-.96 1.06-1.62 1.06-.9 0-1.42-.68-1.42-1.69 0-1.99 1.79-2.35 3.48-2.35zm2.35 5.69a.5.5 0 0 1-.55.05c-.78-.64-.91-.94-1.34-1.55-1.28 1.3-2.19 1.7-3.85 1.7-1.96 0-3.5-1.22-3.5-3.64 0-1.9 1.03-3.19 2.5-3.82 1.26-.56 3.03-.66 4.39-.81v-.3c0-.56.04-1.22-.29-1.7-.28-.43-.83-.6-1.3-.6-.9 0-1.7.45-1.89 1.4-.04.21-.19.42-.4.43l-2.27-.25c-.19-.04-.4-.2-.34-.49C5.63 1.83 8.1 1 10.33 1c1.13 0 2.62.3 3.52 1.16 1.13 1.06 1.02 2.48 1.02 4.02v3.64c0 1.1.46 1.57.88 2.16.16.21.19.47 0 .63-.48.4-1.33 1.13-1.8 1.55z",clipRule:"evenodd"})),apple:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M16.55 7.14c-.1.08-1.86 1.12-1.86 3.43A4 4 0 0 0 17 14.2c0 .06-.35 1.3-1.18 2.56-.74 1.1-1.5 2.21-2.67 2.21s-1.47-.7-2.82-.7c-1.32 0-1.79.73-2.86.73S5.66 17.97 4.8 16.7c-1-1.48-1.8-3.78-1.8-5.96C3 7.25 5.17 5.4 7.31 5.4c1.14 0 2.09.78 2.8.78.68 0 1.74-.83 3.03-.83.5 0 2.26.05 3.41 1.79m-4.02-3.27c.53-.66.91-1.59.91-2.5q0-.22-.03-.37c-.87.03-1.9.6-2.53 1.36-.49.59-.95 1.5-.95 2.44 0 .14.03.28.04.33l.23.02c.78 0 1.76-.54 2.33-1.28"})),bitbucket:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"m17.96 9.14-1.34 8.08a.9.9 0 0 1-.93.78H4.3a.9.9 0 0 1-.93-.78L1.02 2.81c-.1-.5.17-.81.64-.81h16.68c.47 0 .73.32.64.8l-.64 3.8c-.09.55-.4.78-.93.78H7.37q-.23 0-.2.26l.79 4.78q.05.18.23.2h3.62q.17-.02.23-.2l.56-3.46c.05-.43.35-.6.75-.6h3.94c.58 0 .76.29.67.78"})),coinbase:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M10.02 14.5a4.5 4.5 0 1 1 4.44-5.25H19a9 9 0 1 0 0 1.5h-4.54a4.5 4.5 0 0 1-4.44 3.75"})),discord:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M12.53 3q-.26.44-.47.92a15 15 0 0 0-4.12 0q-.21-.47-.48-.92-1.93.3-3.72 1.1a13.8 13.8 0 0 0-2.66 9.72Q3.15 15.28 5.63 16q.56-.72.98-1.5a10 10 0 0 1-1.54-.7l.38-.27c2.88 1.3 6.22 1.3 9.1 0q.19.15.38.27a10 10 0 0 1-1.54.7q.41.8.98 1.5 2.48-.7 4.55-2.18c.38-3.69-.64-6.89-2.67-9.73a15 15 0 0 0-3.71-1.08zm-5.52 8.86c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.9 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72m5.98 0c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.91 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72"})),facebook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M19 10a9 9 0 1 0-11.17 8.73v-5.98H5.97V10h1.86V8.81c0-3.06 1.38-4.48 4.39-4.48.57 0 1.55.11 1.96.23v2.49Q13.83 7 13.14 7c-1.48 0-2.05.56-2.05 2.02V10h2.94l-.5 2.75h-2.44v6.18A9 9 0 0 0 19 10"})),figma:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M5.47 7.18A3.4 3.4 0 0 1 4 4.36 3.3 3.3 0 0 1 7.23 1h5.54A3.3 3.3 0 0 1 16 4.36a3.4 3.4 0 0 1-1.47 2.82A3.4 3.4 0 0 1 16 10a3.3 3.3 0 0 1-3.23 3.36h-.06c-.84 0-1.61-.33-2.19-.89v3.14c0 1.87-1.48 3.39-3.27 3.39A3.3 3.3 0 0 1 4 15.64a3.4 3.4 0 0 1 1.47-2.82A3.4 3.4 0 0 1 4 10a3.4 3.4 0 0 1 1.47-2.82M10.52 10c0 1.26.98 2.28 2.19 2.28h.06c1.2 0 2.19-1.02 2.19-2.28s-.98-2.28-2.2-2.28h-.05A2.23 2.23 0 0 0 10.52 10M9.48 7.72H7.23A2.23 2.23 0 0 0 5.04 10c0 1.25.98 2.27 2.18 2.28h2.26zm-2.25 5.64a2.23 2.23 0 0 0-2.19 2.28c0 1.25 1 2.27 2.2 2.27a2.3 2.3 0 0 0 2.24-2.3v-2.25zm2.25-6.72H7.23a2.23 2.23 0 0 1-2.19-2.28c0-1.25.98-2.27 2.2-2.27h2.24zm3.29 0h-2.25V2.09h2.25c1.2 0 2.19 1.02 2.19 2.27 0 1.26-.98 2.28-2.2 2.28",clipRule:"evenodd"})),github:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M9.97 1A9.1 9.1 0 0 0 1 10.23a9.2 9.2 0 0 0 6.14 8.75c.44.1.6-.2.6-.44l-.01-1.71c-2.5.55-3.02-1.1-3.02-1.1-.4-1.07-1-1.35-1-1.35-.8-.56.07-.56.07-.56.9.06 1.38.95 1.38.95.8 1.4 2.1 1 2.61.76.08-.6.32-1 .57-1.24-2-.21-4.09-1-4.09-4.55 0-1 .36-1.83.92-2.48-.08-.22-.4-1.17.1-2.44 0 0 .75-.24 2.46.95a8.5 8.5 0 0 1 4.49 0c1.7-1.2 2.46-.95 2.46-.95.5 1.27.18 2.22.1 2.44.57.65.91 1.47.91 2.48 0 3.54-2.1 4.32-4.1 4.55.33.3.61.84.61 1.71l-.01 2.54c0 .24.16.53.6.44a9.2 9.2 0 0 0 6.14-8.75A9.1 9.1 0 0 0 9.97 1",clipRule:"evenodd"})),gitlab:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"m18.7 8.2-.02-.07-2.45-6.4a.64.64 0 0 0-.64-.4.7.7 0 0 0-.37.14q-.16.13-.21.33l-1.66 5.06h-6.7L5 1.8a.64.64 0 0 0-1.22-.07l-2.46 6.4-.02.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8 1.85 1.4 1.12.85a.8.8 0 0 0 .92 0l1.12-.85 1.85-1.4 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.51-5.26"})),google:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M18.82 10.2q0-.95-.16-1.84h-8.48v3.49h4.84a4.2 4.2 0 0 1-1.8 2.7v2.27h2.92a8.8 8.8 0 0 0 2.68-6.62"}),tm("path",{fill:"#fff",d:"M10.18 19c2.43 0 4.47-.8 5.96-2.18l-2.92-2.26c-.8.54-1.83.86-3.04.86a5.4 5.4 0 0 1-5.04-3.7h-3v2.32A9 9 0 0 0 10.19 19"}),tm("path",{fill:"#fff",d:"M5.14 11.71a5.4 5.4 0 0 1 0-3.42V5.97h-3a8.9 8.9 0 0 0 0 8.06l2.34-1.81z"}),tm("path",{fill:"#fff",d:"M10.18 4.58q2.01 0 3.44 1.35l2.58-2.58A8.98 8.98 0 0 0 2.14 5.97l3 2.32a5.4 5.4 0 0 1 5.04-3.7"})),linkedin:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M17 1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2zM3.76 16.5h2.68V7.83H3.76zm9.59-8.93C11.5 7.57 10.73 9 10.73 9V7.83H8.16v8.67h2.57v-4.55c0-1.22.56-1.94 1.64-1.94.99 0 1.46.7 1.46 1.94v4.55h2.67v-5.49c0-2.32-1.32-3.44-3.15-3.44M5.09 3.5A1.6 1.6 0 0 0 3.5 5.1c0 .88.71 1.6 1.59 1.6a1.6 1.6 0 0 0 1.58-1.6c0-.88-.7-1.6-1.58-1.6",clipRule:"evenodd"})),microsoft:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M1 1h8.57v8.57H1zM10.43 1H19v8.57h-8.57zM1 10.43h8.57V19H1zM10.43 10.43H19V19h-8.57z"})),salesforce:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M8.49 4.92a3.1 3.1 0 0 1 2.28-1.01c1.2 0 2.22.68 2.78 1.7q.75-.35 1.57-.35c2.14 0 3.88 1.8 3.88 4.04a3.96 3.96 0 0 1-4.65 3.96c-.49.9-1.42 1.5-2.47 1.5q-.65 0-1.25-.3a3.2 3.2 0 0 1-2.97 2.04c-1.4 0-2.58-.9-3.04-2.18q-.3.06-.62.06c-1.66 0-3-1.4-3-3.13 0-1.16.6-2.17 1.5-2.71a4 4 0 0 1-.29-1.44c0-1.99 1.57-3.6 3.5-3.6 1.13 0 2.15.56 2.78 1.42",clipRule:"evenodd"})),slack:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M4.8 12.38a1.89 1.89 0 1 1-1.9-1.9h1.9zm.94 0a1.89 1.89 0 1 1 3.78 0v4.73a1.89 1.89 0 1 1-3.78 0zM7.63 4.78A1.89 1.89 0 1 1 9.52 2.9v1.9zm0 .96a1.89 1.89 0 1 1 0 3.79H2.89a1.89 1.89 0 1 1 0-3.79zM15.2 7.64a1.89 1.89 0 1 1 1.9 1.89h-1.9zm-.94 0a1.89 1.89 0 1 1-3.78 0V2.89a1.89 1.89 0 1 1 3.78 0zM12.37 15.22a1.89 1.89 0 1 1-1.89 1.89v-1.9zm0-.95a1.89 1.89 0 1 1 0-3.78h4.74a1.89 1.89 0 1 1 0 3.78z"})),snapchat:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M18.94 14.1a1.3 1.3 0 0 0-.64-.67l-.14-.07-.24-.13a5.4 5.4 0 0 1-1.97-1.68 4 4 0 0 1-.33-.6q-.06-.16-.01-.23l.1-.12.82-.53q.52-.36.74-.8a1.6 1.6 0 0 0 .08-1.3c-.23-.6-.8-.98-1.5-.98a2 2 0 0 0-.54.08q.01-.64-.04-1.29a4.83 4.83 0 0 0-2.44-3.93A5.6 5.6 0 0 0 10 1.15a5.6 5.6 0 0 0-2.82.72 4.8 4.8 0 0 0-2.44 3.93q-.06.66-.04 1.28a3 3 0 0 0-.55-.08 1.54 1.54 0 0 0-1.6 1.65q.01.33.18.64.23.43.74.8l.42.27.38.25q.08.04.12.12.05.07-.01.24-.14.3-.33.59a5.4 5.4 0 0 1-1.91 1.65c-.43.23-.89.39-1.08.9-.14.4-.05.84.32 1.21q.2.21.46.35.53.3 1.12.45.13.03.23.1c.13.12.12.3.3.55q.13.2.33.34c.37.26.78.27 1.23.3.4 0 .85.02 1.37.2q.3.11.7.36c.61.38 1.46.9 2.88.9s2.27-.52 2.9-.9q.37-.25.68-.36c.52-.17.97-.2 1.37-.2.44-.02.86-.04 1.23-.3q.24-.16.38-.41c.13-.22.13-.37.25-.47l.21-.1a5 5 0 0 0 1.14-.46q.28-.15.48-.37v-.01c.35-.37.44-.8.3-1.18m-1.27.68c-.77.42-1.28.38-1.67.64-.34.21-.14.68-.39.85-.3.21-1.2-.01-2.34.37-.95.31-1.56 1.21-3.27 1.21-1.7 0-2.3-.9-3.27-1.22-1.15-.38-2.04-.15-2.34-.36-.25-.17-.05-.64-.38-.86-.4-.25-.91-.2-1.68-.63-.5-.27-.21-.44-.05-.52 2.79-1.35 3.23-3.43 3.25-3.58.02-.2.05-.34-.16-.53-.2-.18-1.08-.73-1.32-.9-.4-.28-.59-.57-.46-.91.1-.25.32-.34.56-.34l.22.03c.44.1.87.32 1.12.38l.1.01q.19 0 .17-.22c-.03-.49-.1-1.43-.02-2.32.1-1.22.5-1.83.96-2.36A4.3 4.3 0 0 1 10 2.15a4.3 4.3 0 0 1 3.3 1.36c.46.54.86 1.14.96 2.36.08.89.01 1.84-.02 2.33q-.01.23.17.22l.1-.02c.24-.06.68-.28 1.12-.38l.22-.02c.24 0 .46.1.56.33q.17.5-.46.91c-.24.17-1.13.72-1.32.9-.21.2-.18.34-.16.53.02.16.46 2.24 3.25 3.59.17.08.44.25-.05.52"})),tiktok:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M11.38 1.79h2.3A4.42 4.42 0 0 0 18 5.3v.68l.01 2.41a7.6 7.6 0 0 1-4.39-1.38v6.28c0 3.14-2.6 5.7-5.8 5.7a6 6 0 0 1-3.33-1.03A5.7 5.7 0 0 1 2 13.3a5.76 5.76 0 0 1 6.59-5.64v3.16q-.37-.11-.78-.12a2.63 2.63 0 0 0-2.66 2.6c0 1 .58 1.87 1.43 2.3q.55.3 1.23.3c1.42 0 2.59-1.1 2.64-2.5V1h3.16q0 .4.08.79z",clipRule:"evenodd"})),twitch:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M5.63 1 2.5 4.21V15.8h3.75V19l3.13-3.21h2.5L17.5 10V1zm10.62 8.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"}),tm("path",{fill:"#fff",d:"M14.38 4.54h-1.26v3.85h1.26zM10.94 4.54H9.69v3.85h1.25z"})),xTwitter:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M11.67 8.62 18.23 1h-1.55l-5.7 6.61L6.44 1H1.2l6.87 10-6.87 8h1.55l6.01-7 4.8 7h5.24zm-2.12 2.47-.7-1-5.54-7.92H5.7l4.47 6.4.7 1 5.8 8.3H14.3z"})),yahoo:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M1 5.74 4.92 15l-1.4 3.33h3.44l5.23-12.6H8.76l-2.13 5.4-2.1-5.4zm9.47 7.24c0 1.16.9 2.1 2.1 2.1 1.25 0 2.19-.98 2.19-2.17 0-1.18-.9-2.11-2.11-2.11-1.25 0-2.18 1-2.18 2.18m4.68-11.31L11.7 9.99h3.85L19 1.67z",clipRule:"evenodd"})),phantom:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M3.13 17.5c2.3 0 4.02-2 5.05-3.58q-.19.53-.2 1.04c0 .92.54 1.58 1.58 1.58 1.44 0 2.97-1.26 3.76-2.62a2 2 0 0 0-.08.55c0 .64.36 1.04 1.1 1.04 2.32 0 4.66-4.12 4.66-7.73 0-2.8-1.42-5.28-4.98-5.28C7.75 2.5 1 10.16 1 15.11c0 1.94 1.04 2.39 2.13 2.39m8.73-10.02c0-.7.39-1.2.96-1.2s.95.5.95 1.2-.4 1.2-.95 1.2c-.57 0-.96-.5-.96-1.2m2.98 0c0-.7.39-1.2.96-1.2.55 0 .94.5.94 1.2s-.38 1.2-.94 1.2c-.57 0-.96-.5-.96-1.2"})),metamask:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("g",{fill:"#fff",clipPath:"url(#a)"},tm("path",{d:"m18.66 14.11-1.06 3.5-3.58-1.03-.28-.09-.41-.12-1.76-.5-.15.01-.06.22 2.17.62-2.57 1.5H9.04l-2.56-1.5 2.16-.62-.06-.22-.15-.02-2.17.63-.28.09-3.57 1.04-1.07-3.5-.34-.14 1.21 3.98 3.9-1.13 2.85 1.67h2.08l2.86-1.67 3.89 1.13L19 13.98z"}),tm("path",{d:"M5.98 14.11v2.47l.28-.09v-2.23l2.17 1.6.15.02.14-.15-2.55-1.9H1.34l1.08-3.95-.26-.14L1 13.98l.34.13zm8.92-2.22-.92.22v.3l1.35-.33.01-2.2h-.19l-.1-.07v1.83l-1.11-1.03h-2.3l-.05.29h2.23z"}),tm("path",{d:"M6.02 12.4v-.29l-.92-.22 1.08-1H8.4l-.05-.28H6.12l-.1.04-1.07.99V9.81l-.1.07h-.2l.02 2.2zm11.56-2.52 1.08 3.95h-4.83l-2.55 1.9.14.15.15-.02 2.17-1.6v2.23l.28.09V14.1h4.64l.34-.13-1.16-4.24z"}),tm("path",{d:"M4.66 9.88h.19l.1-.07 2.97-2 .45 2.8.04.29.7 4.41.25-.1h.02l-1.2-7.64.22-2.24h3.2l.23 2.24-1.21 7.64h.02l.25.1.7-4.41.05-.28.44-2.8 2.97 2 .1.06h2.43l.26-.14L19 6.16 17.78 1.5 11.7 5.05H8.3L2.22 1.5 1 6.16l1.16 3.58.26.14zM18.7 6.15 17.6 9.6h-2.35L12.2 7.55 17.62 2zm-1.84-3.78-4.77 4.88-.2-1.98zm-8.75 2.9-.2 1.98-4.77-4.88zm-6.81.88L2.38 2l5.43 5.55L4.76 9.6H2.4z"}),tm("path",{d:"M10.8 15.21H9.2l-.62.67.3 1.1h2.23l.31-1.1zm.1 1.49H9.1l-.2-.74.41-.46h1.36l.42.46zM8.4 12.82l-.03-.07-.47-1.21H6.62l-.6.57v.3l2.12.5zm-1.67-1h.97l.3.77-1.66-.4zm5.12 1.1 2.12-.52v-.29l-.6-.57h-1.29l-.47 1.2-.03.08zm1.79-.73-1.67.4.3-.77h.98z"})),tm("defs",null,tm("clipPath",{id:"a"},tm("path",{fill:"#fff",d:"M1 1.5h18v17H1z"})))),binance:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"m6.43 8.56 3.5-3.5 3.49 3.5 2.03-2.03L9.92 1 4.4 6.53zM4.99 10 2.96 7.97.92 10l2.04 2.03zM6.43 11.44l3.5 3.5 3.49-3.5 2.03 2.03L9.92 19 4.4 13.47zM16.89 12.03 18.92 10 16.9 7.97 14.85 10z"}),tm("path",{fill:"#fff",d:"M11.99 10 9.92 7.93 8.4 9.46l-.18.18-.36.36 2.06 2.07z"})),gmail:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M1 5.1v1.63l1.88 1.82L5.09 9.8l.41-2.76-.4-2.56-1.15-.86A1.84 1.84 0 0 0 1 5.09M14.9 4.48l-.4 2.6.4 2.72 2.02-1L19 6.73V5.09a1.84 1.84 0 0 0-2.95-1.47z"}),tm("path",{fill:"#fff",d:"M2.23 16.75h2.86V9.8L1 6.73v8.8c0 .67.55 1.22 1.23 1.22M14.9 16.75h2.87c.68 0 1.23-.55 1.23-1.23v-8.8L14.9 9.8zM10 8.16 5.1 4.48V9.8l4.9 3.68 4.9-3.68V4.48z"})),outlook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M12.24 4.82v3.52l1.23.77q.06.01.14 0l5.3-3.57c0-.42-.4-.72-.63-.72z"}),tm("path",{fill:"#fff",d:"m12.24 9.65 1.12.77c.16.12.35 0 .35 0l5.2-3.46v6.48c0 .7-.46 1-.97 1h-5.7zM6.43 8.03q-.59 0-.92.54t-.34 1.42q0 .9.34 1.43t.89.52q.56 0 .9-.51.32-.51.33-1.41 0-.95-.33-1.47-.32-.52-.87-.52"}),tm("path",{fill:"#fff",d:"M1.1 3.03V16.8L11.58 19V1zm7.01 9.21q-.66.88-1.73.88-1.04 0-1.7-.85a3.5 3.5 0 0 1-.65-2.2q0-1.44.66-2.33a2.1 2.1 0 0 1 1.77-.89 2 2 0 0 1 1.67.85q.64.85.64 2.24a3.7 3.7 0 0 1-.66 2.3"}))},e.mount=lj,e.mountIdentityProvider=lH,e.parseOAuthAuthorizeParams=ly,e.parseOAuthLogoutParams=lv,e.shadcnTheme=cc,e}({});
|
|
63
|
+
https://www.npmjs.com/package/stytch.`)}}),lW="bootstrap",lG=()=>({displayWatermark:!1,projectName:null,cnameDomain:null,emailDomains:["stytch.com"],captchaSettings:{enabled:!1},pkceRequiredForEmailMagicLinks:!1,pkceRequiredForPasswordResets:!1,pkceRequiredForOAuth:!1,pkceRequiredForSso:!1,slugPattern:null,createOrganizationEnabled:!1,passwordConfig:null,runDFPProtectedAuth:!1,rbacPolicy:null,siweRequiredForCryptoWallets:!1,vertical:null});class lY{_publicToken;_networkClient;_dataLayer;_bootstrapDataPromise;constructor(e,t,r){this._publicToken=e,this._networkClient=t,this._dataLayer=r,this._bootstrapDataPromise=this._networkClient.fetchSDK({url:`/projects/bootstrap/${this._publicToken}`,method:"GET"}).then(lY.mapBootstrapData).then(e=>(this._dataLayer.setItem(lW,JSON.stringify(e)),e)).catch(e=>(eP(e),lG()))}static mapBootstrapData(e){let t=null!==e.password_config?{ludsComplexity:e.password_config.luds_complexity,ludsMinimumCount:e.password_config.luds_minimum_count}:null;return{projectName:e.project_name,displayWatermark:!e.disable_sdk_watermark,captchaSettings:e.captcha_settings,cnameDomain:e.cname_domain,emailDomains:e.email_domains,pkceRequiredForEmailMagicLinks:e.pkce_required_for_email_magic_links,pkceRequiredForPasswordResets:e.pkce_required_for_password_resets,pkceRequiredForOAuth:e.pkce_required_for_oauth,pkceRequiredForSso:e.pkce_required_for_sso,slugPattern:e.slug_pattern,createOrganizationEnabled:e.create_organization_enabled,passwordConfig:t,runDFPProtectedAuth:e.dfp_protected_auth_enabled??!1,dfpProtectedAuthMode:e.dfp_protected_auth_mode,rbacPolicy:e.rbac_policy??null,siweRequiredForCryptoWallets:e.siwe_required_for_crypto_wallets,vertical:e.vertical}}getSync(){let e=this._dataLayer.getItem(lW);if(null===e)return lG();try{return JSON.parse(e)}catch{return lG()}}getAsync(){return this._bootstrapDataPromise}}class lZ{bootstrapPromise;state;constructor(e){this.bootstrapPromise=e,this.state=e.then(async e=>{let t;return e.captchaSettings.enabled?{configured:!0,captchaClient:await (t=e.captchaSettings.siteKey,eD(`https://www.google.com/recaptcha/enterprise.js?render=${t}`,()=>window.grecaptcha.enterprise)),siteKey:e.captchaSettings.siteKey}:{configured:!1}})}executeRecaptcha=async()=>{let{captchaClient:e,configured:t,siteKey:r}=await this.state;if(t)return await new Promise(t=>e.ready(t)),e.execute(r,{action:"LOGIN"})}}class lJ{iframeURL;_frameClient;constructor(e){this.iframeURL=e}get frameClient(){return this._frameClient=this._frameClient??new e0(this.iframeURL),this._frameClient}call(e,t){return this.frameClient.call(e,[t])}oneTapStart=e=>this.call("oneTapStart",e);oneTapSubmit=e=>this.call("oneTapSubmit",e);parsedPhoneNumber=e=>this.call("parsedPhoneNumber",e);getExamplePhoneNumber=e=>this.call("getExamplePhoneNumber",e)}class lQ{_publicToken;_subscriptionDataLayer;additionalTelemetryDataFn;eventLogger;baseURL;constructor(e,t,r,n,a){this._publicToken=e,this._subscriptionDataLayer=t,this.additionalTelemetryDataFn=a,this.baseURL=r,(e=>e.includes("public-token-test"))(e)&&(this.baseURL=n),this.eventLogger=new eR({maxBatchSize:15,intervalDurationMs:800,logEventURL:this.buildSDKUrl("/events")})}updateSessionToken=()=>null;logEvent({name:e,details:t,error:r={}}){this.eventLogger.logEvent(this.createTelemetryBlob(),{public_token:this._publicToken,event_name:e,details:t,error_code:r.error_code,error_description:r.error_description,http_status_code:r.http_status_code})}createTelemetryBlob(){return{event_id:`event-id-${ek()}`,app_session_id:`app-session-id-${ek()}`,persistent_id:`persistent-id-${ek()}`,client_sent_at:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,...this.additionalTelemetryDataFn(),app:{identifier:window.location.hostname},sdk:{identifier:"Stytch.js Javascript SDK",version:"@stytch/vanilla-js@6.0.9"}}}async fetchSDK({url:e,body:t,method:r}){let n=this._subscriptionDataLayer.readSessionCookie().session_token,a="Basic "+window.btoa(this._publicToken+":"+(n||this._publicToken)),o=window.btoa(JSON.stringify(this.createTelemetryBlob())),i=window.location.origin;return eg({basicAuthHeader:a,body:t,finalURL:this.buildSDKUrl(e),method:r,xSDKClientHeader:o,xSDKParentHostHeader:i})}async submitFormSDK({url:e,body:t,method:r}){let n=this._subscriptionDataLayer.readSessionCookie().session_token,a="Basic "+window.btoa(this._publicToken+":"+(n||this._publicToken)),o=window.btoa(JSON.stringify(this.createTelemetryBlob())),i=window.location.origin;return ef({basicAuthHeader:a,body:t,finalURL:this.buildSDKUrl(e),method:r,xSDKClientHeader:o,xSDKParentHostHeader:i})}async retriableFetchSDK({url:e,body:t,method:r,retryCallback:n}){let a=this._subscriptionDataLayer.readSessionCookie().session_token,o="Basic "+window.btoa(this._publicToken+":"+(a||this._publicToken)),i=window.btoa(JSON.stringify(this.createTelemetryBlob())),s=window.location.origin;return e_({basicAuthHeader:o,body:t,finalURL:this.buildSDKUrl(e),method:r,xSDKClientHeader:i,xSDKParentHostHeader:s,retryCallback:n})}buildSDKUrl(e){return`${this.baseURL}/sdk/v1${e}`}}function lX(e){let t=e.toString(16);return 1===t.length&&(t="0"+t),t}class l1{_dataLayer;namespace;constructor(e,t){this._dataLayer=e,this.namespace=t}key(){return`PKCE_VERIFIER:${this.namespace}`}async startPKCETransaction(){let e=await l1.createProofkeyPair();return this._dataLayer.setItem(this.key(),JSON.stringify(e)),e}getPKPair(){let e=this._dataLayer.getItem(this.key());if(null!==e)try{return JSON.parse(e)}catch{eC("Found malformed Proof Key pair in localstorage.");return}}clearPKPair(){return this._dataLayer.removeItem(this.key())}static async createProofkeyPair(){var e;let t=new Uint32Array(16);window.crypto.getRandomValues(t);let r=Array.from(t).map(lX).join("");return{code_challenge:(e=await window.crypto.subtle.digest("SHA-256",new TextEncoder().encode(r)),btoa(String.fromCharCode.call(null,...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")),code_verifier:r}}}function l0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var l2=function e(t,r){function n(e,n,a){if("u">typeof document){"number"==typeof(a=l0({},r,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in a)a[i]&&(o+="; "+i,!0!==a[i]&&(o+="="+a[i].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+o}}return Object.create({set:n,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},a=0;a<r.length;a++){var o=r[a].split("="),i=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=t.read(i,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",l0({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,l0({},this.attributes,t))},withConverter:function(t){return e(l0({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let l3="seen_domains";class l4{publicToken;state;_opaqueTokenCookieName=null;_jwtCookieName=null;_cookiePath=null;_domain=null;_cookieAvailableToSubdomains=!1;_istCookieName=null;subscriptions;_localStorage;browserSessionStorage;constructor(e,t){let r;this.publicToken=e,this.state=null,this.subscriptions={},this._localStorage=oj(oH,e),this.browserSessionStorage=oj(oK,e),t?.cookieOptions&&(this._opaqueTokenCookieName=t.cookieOptions.opaqueTokenCookieName||null,this._jwtCookieName=t.cookieOptions.jwtCookieName||null,this._cookiePath=t.cookieOptions.path||null,this._domain=t.cookieOptions.domain||null,this._cookieAvailableToSubdomains=t.cookieOptions.availableToSubdomains||!1,this._istCookieName=t.cookieOptions.istCookieName||null);const n=this._localStorage.getItem("");if(!n)return;try{r=JSON.parse(n)}catch{this.syncToLocalStorage();return}this.state=r}get opaqueTokenCookieName(){return this._opaqueTokenCookieName??"stytch_session"}get jwtCookieName(){return this._jwtCookieName??"stytch_session_jwt"}get istCookieName(){return this._istCookieName??"stytch_intermediate_session_token"}readSessionCookie(){return{session_token:l2.get(this.opaqueTokenCookieName),session_jwt:l2.get(this.jwtCookieName)}}readIntermediateSessionTokenCookie(){return l2.get(this.istCookieName)}writeSessionCookie(e){let{state:t,session_token:r,session_jwt:n}=e,a=l4.generateCookieOpts({expiresAt:t?.session?.expires_at??"",availableToSubdomains:this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});a.domain&&this.addSeenDomain(a.domain),l2.set(this.opaqueTokenCookieName,r,a),l2.set(this.jwtCookieName,n,a);let o=l4.generateCookieOpts({expiresAt:t?.session?.expires_at??"",availableToSubdomains:!this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});o.domain&&this.addSeenDomain(o.domain),n8(this.jwtCookieName)&&l2.remove(this.jwtCookieName,o),n8(this.opaqueTokenCookieName)&&l2.remove(this.opaqueTokenCookieName,o),n8(this.jwtCookieName)&&eC("Could not remove extraneous JWT cookie. This might happen if the cookie has been set using multiple `path` settings, and may produce unwanted behavior."),n8(this.opaqueTokenCookieName)&&eC("Could not remove extraneous opaque token cookie.")}writeIntermediateSessionTokenCookie(e){let t=new Date(Date.now()+6e5),r=l4.generateCookieOpts({expiresAt:t.toString(),availableToSubdomains:this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});l2.set(this.istCookieName,e,r)}removeSessionCookie(){this.removeCookies([this.opaqueTokenCookieName,this.jwtCookieName])}removeISTCookie(){this.removeCookies([this.istCookieName])}removeCookies(e){let t=this.getSeenDomains(),r=[...new Set([this._domain,null,...t])];[!0,!1].forEach(t=>{[this._cookiePath,null].forEach(n=>{r.forEach(r=>{let a=l4.generateCookieOpts({expiresAt:new Date(0).toString(),availableToSubdomains:t,path:n,domain:r});e.forEach(e=>{l2.remove(e,a)})})})})}syncToLocalStorage(){this._localStorage.setItem("",JSON.stringify(this.state))}getItem(e){return this._localStorage.getItem(e)}setItem(e,t){this._localStorage.setItem(e,t)}removeItem(e){this._localStorage.removeItem(e)}getSeenDomains(){let e=this.getItem(l3);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}addSeenDomain(e){if(!e)return;let t=this.getSeenDomains();t.includes(e)||(t.push(e),this.setItem(l3,JSON.stringify(t)))}static generateCookieOpts({path:e,domain:t,availableToSubdomains:r,expiresAt:n}){let a={expires:new Date(n),sameSite:"lax"};return e&&(a.path=e),"localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)?a.secure=!1:(r&&(a.domain=t||window.location.host),a.secure=!0),a}}class l5 extends l4{}let l8=Symbol.for("__stytch_b2b_DataLayer"),l6=(e,t)=>{Object.values(e).forEach(e=>e(t))},l7=(({KEYS_TO_EXCLUDE:e=[]}={})=>{let t=(r,n)=>typeof r==typeof n&&(null===r||null===n?r===n:"object"==typeof r?!(Object.keys(r).length!==Object.keys(n).length||Object.keys(r).some(e=>!(e in n)))&&Object.entries(r).filter(([t])=>!e.includes(t)).every(([e,r])=>t(r,n[e])):r===n);return t})({KEYS_TO_EXCLUDE:["last_accessed_at"]});class l9{_publicToken;_datalayer;fromCache=!0;constructor(e,t,{usingCustomApiEndpoint:r}){if(this._publicToken=e,this._datalayer=t,window.addEventListener("storage",this._listen),!r){const{session_token:e}=this._datalayer.readSessionCookie();if(!e)return void this.destroySession()}}_listen=e=>{if(e.key!==oF(this._publicToken,""))return;let t=null===e.newValue||"null"===e.newValue?null:JSON.parse(e.newValue);this.updateState(t,!0)};getTokens(){let{session_token:e,session_jwt:t}=this._datalayer.readSessionCookie();return"string"!=typeof e||"string"!=typeof t?null:{session_token:e,session_jwt:t}}getIntermediateSessionToken(){return this._datalayer.readIntermediateSessionTokenCookie()||null}destroyState(){this.updateStateAndTokens({state:null,session_token:null,session_jwt:null,intermediate_session_token:null})}destroySession(){this._datalayer.removeSessionCookie(),this.updateState(null)}_updateStateAndTokensInternal(e,t){let r=this._datalayer.state,n=null===e.state?null:{...this._datalayer.state,...e.state};this._datalayer.state=n;let a=this.getFromCache();if(this.setCacheRefreshed(),a||!l7(r,n)){let e;e=null==n||t.fromCache?n:{...n,sessionDurationMinutes:t.sessionDurationMinutes},l6(this._datalayer.subscriptions,e)}}updateStateAndTokens(e,t={fromCache:!1}){e.state?("string"==typeof e.session_token?this._datalayer.writeSessionCookie(e):this._datalayer.removeSessionCookie(),this._datalayer.removeISTCookie()):e.intermediate_session_token?("string"==typeof e.intermediate_session_token?this._datalayer.writeIntermediateSessionTokenCookie(e.intermediate_session_token):this._datalayer.removeISTCookie(),this._datalayer.removeSessionCookie()):(this._datalayer.removeSessionCookie(),this._datalayer.removeISTCookie()),this._updateStateAndTokensInternal(e,t),this._datalayer.syncToLocalStorage()}updateState(e,t=!1){let r=this._datalayer.state,n=null===e?null:{...this._datalayer.state,...e};this._datalayer.state=n;let a=this.getFromCache();this.setCacheRefreshed();let o=!l7(r,n);(a||o)&&(l6(this._datalayer.subscriptions,n),o&&!t&&this._datalayer.syncToLocalStorage())}updateTokens(e){let{session_token:t,session_jwt:r}=e,n={...this._datalayer.readSessionCookie(),session_token:t,session_jwt:r};"string"==typeof t||"string"==typeof r?(this._datalayer.writeSessionCookie(n),this._datalayer.removeISTCookie()):this._datalayer.removeSessionCookie()}subscribeToState(e){var t;let r;return t=this._datalayer.subscriptions,t[r=Math.random().toString(36).slice(-10)]=e,()=>delete t[r]}getState(){return this._datalayer.state}destroy(){window.removeEventListener("storage",this._listen)}syncFromDeviceStorage(){return null}getFromCache(){return this.fromCache}setCacheRefreshed(){this.fromCache=!1}}class ce extends l9{updateMember=e=>this.updateState({member:e});getMember=()=>this.getState()?.member??null;updateOrganization=e=>this.updateState({organization:e});getOrganization=()=>this.getState()?.organization??null;getSession=()=>this.getState()?.session??null;updateSession=(e,t)=>{if("member_session"in e&&e.member_session){let r=e.session_token&&e.session_jwt?{session_token:e.session_token,session_jwt:e.session_jwt}:{session_token:!0,session_jwt:!0};this.updateStateAndTokens({state:{session:e.member_session,member:e.member,organization:e.organization},...r,intermediate_session_token:null},{fromCache:!1,sessionDurationMinutes:t?.sessionDurationMinutes})}else this.updateStateAndTokens({state:null,session_token:null,session_jwt:null,intermediate_session_token:e.intermediate_session_token||!0},{fromCache:!1,sessionDurationMinutes:t?.sessionDurationMinutes})};withUpdateSession=e=>async t=>{let r=await e(t);return this.updateSession(r,{sessionDurationMinutes:t?.session_duration_minutes}),r}}class ct extends eH{_oneTap;constructor(e,t,r,n,a,o=eM(),i){super(e,t,r,n,a,o),this._oneTap=i}startOneTapDiscovery=async e=>{let t=await this._oneTap.createOneTapClient();if(!t.success)throw Error(`One Tap could not load: ${t.reason}`);let{client:r}=t,n=this._oneTap.createOnDiscoverySuccessHandler({discoveryRedirectUrl:e.discovery_redirect_url,onSuccess:this._oneTap.redirectOnSuccess});return r.render({style:{position:er.floating},callback:n,cancelOnTapOutside:e.cancel_on_tap_outside})};startOneTap=async e=>{if(!e.organization_id)throw new h("stytch.oauth.googleOneTap.start","organization_id is a required argument");let t=await this._oneTap.createOneTapClient();if(!t.success)throw Error(`One Tap could not load: ${t.reason}`);let{client:r}=t,n=this._oneTap.createOnSuccessHandler({organizationId:e.organization_id,signupRedirectUrl:e.signup_redirect_url,loginRedirectUrl:e.login_redirect_url,onSuccess:this._oneTap.redirectOnSuccess});return r.render({style:{position:er.floating},callback:n,cancelOnTapOutside:e.cancel_on_tap_outside})};googleOneTap={discovery:{start:this.startOneTapDiscovery},start:this.startOneTap}}let cr="u">typeof window&&"IdentityCredential"in window,cn=e=>e===er.forceLegacyEmbedded?"force":e===er.embeddedOnly||e===er.embedded||e===er.floatingOrEmbedded;class ca{_googleClient;_clientId;constructor(e,t){this._googleClient=e,this._clientId=t}cancel(){this._googleClient.cancel()}async render({callback:e,onOneTapCancelled:t,style:r,cancelOnTapOutside:n=!0}){let a,o=cn(r.position),i="force"===(a=cn(r.position))||a&&!cr,s={client_id:this._clientId,callback:e,auto_select:!1,context:"use",itp_support:!0,use_fedcm_for_prompt:"force"!==o,cancel_on_tap_outside:n};return i&&(s.prompt_parent_id="google-parent-prompt",s.cancel_on_tap_outside=!1),this._googleClient.initialize(s),new Promise(e=>{this._googleClient.prompt(r=>{if(r.isSkippedMoment()){let n=r.getSkippedReason?.()??"unknown_reason";return"user_cancel"===n&&t?.(),e({success:!1,reason:n})}return!r.isNotDisplayed&&i||r.isNotDisplayed?.()?e({success:!1,reason:r.getNotDisplayedReason?.()??"unknown_reason"}):r.isDismissedMoment()?void 0:(this.styleFrame(i),e({success:!0}))})})}styleFrame(e){e&&Array.from(document.getElementsByTagName("iframe")).forEach(e=>{e.src.includes(a)&&(e.style.width="100%")})}}let co=Promise.resolve({pkceRequiredForOAuth:!1});class ci{_networkClient;_pkceManager;_config;googleClientID;constructor(e,t,r=co){this._networkClient=e,this._pkceManager=t,this._config=r}async fetchGoogleStart(){if(this.googleClientID)return this.googleClientID;let e=await this._networkClient.fetchSDK({url:"/b2b/oauth/google/onetap/start",method:"GET"});return this.googleClientID=e.google_client_id,this.googleClientID}async submitGoogleOneTapTokenDiscovery({credential:e,discoveryRedirectUrl:t}){let r,{pkceRequiredForOAuth:n}=await this._config;return n?r=(await this._pkceManager.startPKCETransaction()).code_challenge:this._pkceManager.clearPKPair(),await this._networkClient.fetchSDK({url:"/b2b/oauth/google/onetap/discovery/submit",method:"POST",body:{id_token:e,discovery_redirect_url:t,pkce_code_challenge:r}})}async submitGoogleOneTapToken({credential:e,organizationId:t,signupRedirectUrl:r,loginRedirectUrl:n}){let a,{pkceRequiredForOAuth:o}=await this._config;return o?a=(await this._pkceManager.startPKCETransaction()).code_challenge:this._pkceManager.clearPKPair(),await this._networkClient.fetchSDK({url:"/b2b/oauth/google/onetap/submit",method:"POST",body:{id_token:e,organization_id:t,signup_redirect_url:r,login_redirect_url:n,pkce_code_challenge:a}})}async createOneTapClient(){let e;try{e=await this.fetchGoogleStart()}catch(e){return{success:!1,reason:v.from(e).error_type}}return""===e?{success:!1,reason:"oauth_config_not_found"}:{success:!0,client:new ca(await eD(o,()=>window.google.accounts.id),e)}}createOnDiscoverySuccessHandler=({discoveryRedirectUrl:e,onSuccess:t,onError:r})=>async n=>{let{credential:a}=n,o=this.submitGoogleOneTapTokenDiscovery({credential:a,discoveryRedirectUrl:e}).then(e=>t(e.redirect_url));r&&(o=o.catch(e=>r(e))),await o};createOnSuccessHandler=({organizationId:e,signupRedirectUrl:t,loginRedirectUrl:r,onSuccess:n,onError:a})=>async o=>{let{credential:i}=o,s=this.submitGoogleOneTapToken({credential:i,organizationId:e,signupRedirectUrl:t,loginRedirectUrl:r}).then(e=>n(e.redirect_url));a&&(s=s.catch(e=>a(e))),await s};redirectOnSuccess=e=>{window.location.href=e}}class cs{_subscriptionService;_sessionManager;_networkClient;_dataLayer;_stateChangeClient;magicLinks;session;member;self;organization;oauth;sso;discovery;passwords;otps;totp;recoveryCodes;rbac;scim;impersonation;idp;onStateChange;parseAuthenticateUrl;authenticateByUrl;constructor(e,t){if("u"<typeof window)throw Error("`new StytchB2BClient()` is not supported in server environments. If using @stytch/react or @stytch/nextjs, use `createStytchB2BClient()` instead.");(e=>{"string"!=typeof e?eC(`Public token is malformed. Expected a string, got ${typeof e}.${eO}`):""===e?eC(`Public token is malformed. Expected "public-token-...", got an empty string.${eO}`):e.startsWith("public-token-")||eC(`Public token is malformed. Expected "public-token-...", got ${e}.${eO}`)})(e);const r=e??"",n=((e,t={})=>{let{cookieOptions:r,keepSessionAlive:n}=t;return eL(e,t,{keepSessionAlive:"optionalBoolean"}),r&&eL(`${e}.cookieOptions`,r,{opaqueTokenCookieName:"optionalString",jwtCookieName:"optionalString",istCookieName:"optionalString",path:"optionalString",domain:"optionalString"}),{cookieOptions:r,keepSessionAlive:n,endpoints:{testAPIURL:(e=>{let t=e?.customBaseUrl??e?.endpointOptions?.testApiDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.customBaseUrl?"customBaseUrl":"testApiDomain";eC(`Unable to use custom API domain \`${t}\`. ${r} should be a valid domain.`)}}return e?.endpoints?.testAPIURL??"https://test.stytch.com"})(t),liveAPIURL:(e=>{let t=e?.customBaseUrl??e?.endpointOptions?.apiDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.customBaseUrl?"customBaseUrl":"apiDomain";eC(`Unable to use custom API domain \`${t}\`. ${r} should be a valid domain.`)}}return e?.endpoints?.liveAPIURL??"https://api.stytch.com"})(t),dfpBackendURL:(e=>{let t=e?.dfppaUrl??e?.endpointOptions?.dfppaDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.dfppaUrl?"dfppaUrl":"dfppaDomain";eC(`Unable to use custom DFPPA domain \`${t}\`. ${r} should be a valid domain.`)}}return e?.endpoints?.dfpBackendURL??"https://telemetry.stytch.com"})(t),dfpCdnURL:(e=>{let t=e?.dfpCdnUrl??e?.endpointOptions?.dfpCdnDomain;if(t){let r=eS(t);if(r)return r;{let r=e?.dfpCdnUrl?"dfpCdnUrl":"dfpCdnDomain";eC(`Unable to use custom DFP CDN domain \`${t}\`. ${r} should be a valid domain.`)}}return"https://elements.stytch.com"})(t),clientsideServicesIframeURL:t?.endpoints?.clientsideServicesIframeURL??"https://js.stytch.com/clientside-services/index.html"}}})(this.constructor.name,t),a=((e,t={})=>{let{customBaseUrl:r,endpointOptions:n}=t;return e.includes("public-token-test")?!!(r||n?.testApiDomain):!!(r||n?.apiDomain)})(r,t);this._dataLayer=((e,t)=>{let r,n=((r=window)[l8]||(r[l8]={}),r[l8]);return n[e]||(n[e]=new l5(e,t)),n[e]})(r,n),this._subscriptionService=new ce(r,this._dataLayer,{usingCustomApiEndpoint:a}),this._stateChangeClient=new e5(this._subscriptionService,{}),this.onStateChange=(...e)=>this._stateChangeClient.onStateChange(...e);const o=()=>({stytch_member_id:this._dataLayer.state?.member?.member_id,stytch_member_session_id:this._dataLayer.state?.session?.member_session_id}),i=new l1(this._dataLayer,"passwords"),s=new lQ(r,this._dataLayer,n.endpoints.liveAPIURL,n.endpoints.testAPIURL,o);this._networkClient=s;const l=new lY(r,s,this._dataLayer),c=new lZ(l.getAsync()),d=new ez(r,n.endpoints.dfpBackendURL,n.endpoints.dfpCdnURL,l.getAsync(),c.executeRecaptcha),u=new lJ(n.endpoints.clientsideServicesIframeURL),h=new l1(this._dataLayer,"oauth"),m=new ci(s,h,l.getAsync());this.organization=new eK(s,s,this._subscriptionService),this.member=new eJ(s,s,this._subscriptionService),this.self=new eJ(s,s,this._subscriptionService),this.session=new eQ(s,this._subscriptionService),this.magicLinks=new eq(s,this._subscriptionService,new l1(this._dataLayer,"magic_links"),i,l.getAsync(),d),this.oauth=new ct(s,this._subscriptionService,h,l.getAsync(),{publicToken:r,testAPIURL:n.endpoints.testAPIURL,liveAPIURL:n.endpoints.liveAPIURL},d,m),this.sso=new eX(s,this._subscriptionService,new l1(this._dataLayer,"sso"),l.getAsync(),{publicToken:r,testAPIURL:n.endpoints.testAPIURL,liveAPIURL:n.endpoints.liveAPIURL},d),this.discovery=new eB(s,this._subscriptionService),this.passwords=new eV(s,this._subscriptionService,i,l.getAsync(),d),this.otps=new ej(s,this._subscriptionService,d),this.totp=new e1(s,this._subscriptionService,d),this.recoveryCodes=new eY(s,this._subscriptionService,d),this.rbac=new eG(l.getSync(),l.getAsync(),this._subscriptionService),this.scim=new eZ(this._networkClient,this._subscriptionService),this.impersonation=new eU(this._networkClient,this._subscriptionService,d),this.idp=new eN(s),this._sessionManager=new e4(this._subscriptionService,this.session,r,{keepSessionAlive:n.keepSessionAlive});const p=new e2(s,d);(a||this._dataLayer.readSessionCookie().session_token)&&this._sessionManager.performBackgroundRefresh();const{authenticateByUrl:_,parseAuthenticateUrl:g}=(e=>{let t=Object.keys(e),r=(e=window.location.href)=>{let r=new URL(e),n=r.searchParams.get("stytch_token_type"),a=r.searchParams.get("token");return a&&n?t.includes(n)?{handled:!0,token:a,tokenType:n}:{handled:!1,token:a,tokenType:n}:null};return{authenticateByUrl:async({clearParams:t,...n},a=window.location.href)=>{let o=t??a===window.location.href,i=r(a);if(null==i)return null;if(!i.handled)return i;let{token:s,tokenType:l}=i,c=e[l];return o&&sy(),{handled:!0,tokenType:l,data:await c(s,n)}},parseAuthenticateUrl:r}})({discovery:e=>this.magicLinks.discovery.authenticate({discovery_magic_links_token:e}),discovery_oauth:e=>this.oauth.discovery.authenticate({discovery_oauth_token:e}),oauth:(e,t)=>this.oauth.authenticate({oauth_token:e,...t}),sso:(e,t)=>this.sso.authenticate({sso_token:e,...t}),multi_tenant_magic_links:(e,t)=>this.magicLinks.authenticate({magic_links_token:e,...t}),multi_tenant_impersonation:e=>this.impersonation.authenticate({impersonation_token:e})});this.authenticateByUrl=_,this.parseAuthenticateUrl=g,s.logEvent({name:"b2b_sdk_instance_instantiated",details:{event_callback_registered:!1,error_callback_registered:!1,success_callback_registered:!1}}),l.getAsync().then(e=>{"CONSUMER"===e.vertical&&eP("This application is using a Stytch client for B2B projects, but the public token is for a Stytch Consumer project. Use a Consumer Stytch client instead, or verify that the public token is correct.")}),((e,t)=>{Object.assign(e,{[rX]:t})})(this,{bootstrap:l,clientsideServices:u,publicToken:r,searchManager:p,dataLayer:this._dataLayer,networkClient:s,oneTap:m})}}let cl=(...e)=>"u"<typeof window?lV("stytch"):new cs(...e),cc={"color-scheme":"shadcn","font-family":`var(--font-sans, ${nL["font-family"]})`,"font-family-mono":`var(--font-mono, ${nL["font-family-mono"]})`,"text-base":"var(--text-base)","transition-duration":nL["transition-duration"],spacing:"var(--spacing)","mobile-breakpoint":"var(--breakpoint-sm)","rounded-base":"calc(var(--radius) / 2.5)","container-width":nL["container-width"],"container-radius":"var(--radius-xl)",shadow:"var(--shadow)",background:"var(--background)",foreground:"var(--foreground)",primary:"var(--primary)","primary-foreground":"var(--primary-foreground)",secondary:"var(--secondary)","secondary-foreground":"var(--secondary-foreground)",muted:"var(--muted)","muted-foreground":"var(--muted-foreground)",accent:"var(--accent)","accent-foreground":"var(--accent-foreground)",border:"var(--border)",input:"var(--input)",ring:"var(--ring)",destructive:"var(--destructive)","destructive-foreground":nL["destructive-foreground"],success:nB.success,warning:nB.warning};return e.AuthFlowType=s,e.B2BMFAProducts=d,e.B2BOAuthProviders=c,e.B2BProducts=sL,e.BiometricRegistrationIdIsNullOrBlank=X,e.BiometricsAlreadyEnrolledError=class extends b{constructor(){super("BiometricsAlreadyEnrolledError","There is already a biometric factor enrolled on this device. Fully authenticate with all factors and remove the existing registration before attempting to register again.")}},e.BiometricsFailedError=F,e.BiometricsUnavailableError=E,e.ChallengeSigningFailedError=R,e.DFPNotConfigured=ee,e.DeviceCredentialsNotAllowedError=x,e.FailedCodeChallengeError=B,e.FailedToDecryptDataError=U,e.IDPOAuthFlowMissingParamError=et,e.InternalError=k,e.InvalidAuthorizationCredentialError=z,e.InvalidCredentialTypeError=j,e.InvalidPrivateKeyLength=Q,e.InvalidRedirectSchemeError=H,e.InvalidStartUrlError=q,e.JSONDataNotConvertibleToStringError=V,e.KeyInvalidatedError=C,e.KeystoreUnavailableError=P,e.MissingAttestationObjectError=$,e.MissingAuthorizationCredentialIDTokenError=D,e.MissingCipherIv=J,e.MissingGoogleClientIDError=class extends b{constructor(){super("MissingGoogleClientIDError","No Google client ID was found in the project.")}},e.MissingPKCEError=class extends b{constructor(){super("MissingPKCEError","Make sure this flow is completed on the same device on which it was started.")}},e.MissingPublicKeyError=I,e.MissingUrlError=K,e.NoBiometricsEnrolledError=T,e.NoBiometricsRegistrationError=S,e.NoCredentialsPresentError=M,e.NoCurrentSessionError=w,e.OAuthProviders={Google:"google",Microsoft:"microsoft",Apple:"apple",Github:"github",GitLab:"gitlab",Facebook:"facebook",Discord:"discord",Salesforce:"salesforce",Slack:"slack",Amazon:"amazon",Bitbucket:"bitbucket",LinkedIn:"linkedin",Coinbase:"coinbase",Twitch:"twitch",Twitter:"twitter",TikTok:"tiktok",Snapchat:"snapchat",Figma:"figma",Yahoo:"yahoo"},e.OTPMethods={SMS:"sms",WhatsApp:"whatsapp",Email:"email"},e.OneTapPositions=er,e.PasskeysInvalidEncoding=G,e.PasskeysMisconfigured=Y,e.PasskeysUnsupportedError=N,e.RNUIProducts=eh,e.RandomNumberGenerationFailed=W,e.RedirectURLType=l,e.SDKAPIUnreachableError=u,e.SDKNotConfiguredError=L,e.SignInWithAppleMisconfigured=Z,e.StytchAPIError=v,e.StytchAPISchemaError=y,e.StytchAPIUnreachableError=f,e.StytchB2B=lK,e.StytchB2BClient=cs,e.StytchB2BHeadlessClient=cs,e.StytchB2BIdentityProvider=lq,e.StytchB2BUIClient=class extends cs{constructor(e,t){super(e,t),eC("StytchB2BUIClient is deprecated. Use the Stytch web components directly instead.")}mount=lj;mountIdentityProvider=lH},e.StytchError=g,e.StytchEventType=eu,e.StytchSDKAPIError=p,e.StytchSDKError=b,e.StytchSDKSchemaError=m,e.StytchSDKUsageError=h,e.UNRECOVERABLE_ERROR_TYPES=_,e.UserCancellationError=O,e.UserLockedOutError=A,e.Wallets={Phantom:"Phantom",Metamask:"Metamask",Coinbase:"Coinbase",Binance:"Binance",GenericEthereumWallet:"GenericEthereumWallet",GenericSolanaWallet:"GenericSolanaWallet"},e.createStytchB2BClient=cl,e.createStytchB2BHeadlessClient=cl,e.defaultDarkTheme=nN,e.defaultTheme=nB,e.errorToStytchError=function(e){if(e instanceof b)return e;switch(e.message){case"no_current_session":return new w;case"no_biometrics_registration":return new S;case"biometrics_unavailable":case"device_hardware_error":case"biometrics_not_available":return new E;case"key_invalidated":case"no_biometric_key":return new C;case"no_biometrics_enrolled":return new T;case"keystore_unavailable":return new P;case"device_credentials_not_allowed":return new x;case"user_cancellation":return new O;case"user_locked_out":return new A;case"google_onetap_missing_id_token":case"oauth_apple_missing_id_token":case"missing_authorization_credential_id_token":return new D;case"google_onetap_missing_member":case"oauth_apple_credential_invalid":case"invalid_authorization_credential":return new z;case"missing_public_key":return new I;case"challenge_signing_failed":return new R;case"no_credentials_present":return new M;case"sdk_not_configured":return new L;case"failed_code_challenge":return new B;case"passkeys_unsupported":return new N;case"failed_to_decrypt_data":return new U;case"biometrics_failed":return new F;case"invalid_start_url":return new q;case"invalid_redirect_scheme":return new H;case"missing_url":return new K;case"invalid_credential_type":return new j;case"missing_attestation_object":return new $;case"json_data_not_convertible_to_string":return new V;case"random_number_generation_failed":return new W;case"passkeys_invalid_encoding":return new G;case"passkeys_misconfigured":return new Y;case"signinwithapple_misconfigured":return new Z;case"missing_cipher_iv":return new J;case"invalid_private_key_length":return new Q;case"biometric_registration_id_is_null_or_blank":return new X;case"dfp_not_configured":return new ee;default:return new k(e)}},e.iconsBlack={amazon:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M16.5 15.53C9.2 19 4.69 16.1 1.8 14.33c-.19-.1-.5.03-.23.34.97 1.17 4.13 3.98 8.25 3.98s6.59-2.25 6.9-2.64c.3-.4.08-.6-.22-.48m2.04-1.13c-.2-.25-1.19-.3-1.81-.22s-1.57.45-1.49.68c.04.09.13.05.56.01s1.64-.2 1.9.14c.25.33-.4 1.9-.51 2.16s.04.32.25.15.6-.6.85-1.23c.25-.62.4-1.5.25-1.69"}),tm("path",{fill:"#000",fillRule:"evenodd",d:"M11.6 8.46c0 .9.02 1.67-.44 2.47-.37.66-.96 1.06-1.62 1.06-.9 0-1.42-.68-1.42-1.69 0-1.99 1.79-2.35 3.48-2.35zm2.35 5.69a.5.5 0 0 1-.55.05c-.78-.64-.91-.94-1.34-1.55-1.28 1.3-2.19 1.7-3.85 1.7-1.96 0-3.5-1.22-3.5-3.64 0-1.9 1.03-3.19 2.5-3.82 1.26-.56 3.03-.66 4.39-.81v-.3c0-.56.04-1.22-.29-1.7-.28-.43-.83-.6-1.3-.6-.9 0-1.7.45-1.89 1.4-.04.21-.19.42-.4.43l-2.27-.25c-.19-.04-.4-.2-.34-.49C5.63 1.83 8.1 1 10.33 1c1.13 0 2.62.3 3.52 1.16 1.13 1.06 1.02 2.48 1.02 4.02v3.64c0 1.1.46 1.57.88 2.16.16.21.19.47 0 .63-.48.4-1.33 1.13-1.8 1.55z",clipRule:"evenodd"})),apple:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M16.55 7.14c-.1.08-1.86 1.12-1.86 3.43A4 4 0 0 0 17 14.2c0 .06-.35 1.3-1.18 2.56-.74 1.1-1.5 2.21-2.67 2.21s-1.47-.7-2.82-.7c-1.32 0-1.79.73-2.86.73S5.66 17.97 4.8 16.7c-1-1.48-1.8-3.78-1.8-5.96C3 7.25 5.17 5.4 7.31 5.4c1.14 0 2.09.78 2.8.78.68 0 1.74-.83 3.03-.83.5 0 2.26.05 3.41 1.79m-4.02-3.27c.53-.66.91-1.59.91-2.5q0-.22-.03-.37c-.87.03-1.9.6-2.53 1.36-.49.59-.95 1.5-.95 2.44 0 .14.03.28.04.33l.23.02c.78 0 1.76-.54 2.33-1.28"})),bitbucket:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"m17.96 9.14-1.34 8.08a.9.9 0 0 1-.93.78H4.3a.9.9 0 0 1-.93-.78L1.02 2.81c-.1-.5.17-.81.64-.81h16.68c.47 0 .73.32.64.8l-.64 3.8c-.09.55-.4.78-.93.78H7.37q-.23 0-.2.26l.79 4.78q.05.18.23.2h3.62q.17-.02.23-.2l.56-3.46c.05-.43.35-.6.75-.6h3.94c.58 0 .76.29.67.78"})),coinbase:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M10.02 14.5a4.5 4.5 0 1 1 4.44-5.25H19a9 9 0 1 0 0 1.5h-4.54a4.5 4.5 0 0 1-4.44 3.75"})),discord:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M12.53 3q-.26.44-.47.92a15 15 0 0 0-4.12 0q-.21-.47-.48-.92-1.93.3-3.72 1.1a13.8 13.8 0 0 0-2.66 9.72Q3.15 15.28 5.63 16q.56-.72.98-1.5a10 10 0 0 1-1.54-.7l.38-.27c2.88 1.3 6.22 1.3 9.1 0q.19.15.38.27a10 10 0 0 1-1.54.7q.41.8.98 1.5 2.48-.7 4.55-2.18c.38-3.69-.64-6.89-2.67-9.73a15 15 0 0 0-3.71-1.08zm-5.52 8.86c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.9 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72m5.98 0c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.91 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72"})),facebook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M19 10a9 9 0 1 0-11.17 8.73v-5.98H5.97V10h1.86V8.81c0-3.06 1.38-4.48 4.39-4.48.57 0 1.55.11 1.96.23v2.49q-.35-.03-1.04-.03c-1.48 0-2.05.55-2.05 2V10h2.94l-.5 2.75h-2.44v6.18A9 9 0 0 0 19 10"})),figma:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M5.47 7.18A3.4 3.4 0 0 1 4 4.36 3.3 3.3 0 0 1 7.23 1h5.54A3.3 3.3 0 0 1 16 4.36a3.4 3.4 0 0 1-1.47 2.82A3.4 3.4 0 0 1 16 10a3.3 3.3 0 0 1-3.23 3.36h-.06c-.84 0-1.61-.33-2.19-.89v3.14c0 1.87-1.48 3.39-3.27 3.39A3.3 3.3 0 0 1 4 15.64a3.4 3.4 0 0 1 1.47-2.82A3.4 3.4 0 0 1 4 10a3.4 3.4 0 0 1 1.47-2.82M10.52 10c0 1.26.98 2.28 2.19 2.28h.06c1.2 0 2.19-1.02 2.19-2.28s-.98-2.28-2.2-2.28h-.05A2.23 2.23 0 0 0 10.52 10M9.48 7.72H7.23A2.23 2.23 0 0 0 5.04 10c0 1.25.98 2.27 2.18 2.28h2.26zm-2.25 5.64a2.23 2.23 0 0 0-2.19 2.28c0 1.25 1 2.27 2.2 2.27a2.3 2.3 0 0 0 2.24-2.3v-2.25zm2.25-6.72H7.23a2.23 2.23 0 0 1-2.19-2.28c0-1.25.98-2.27 2.2-2.27h2.24zm3.29 0h-2.25V2.09h2.25c1.2 0 2.19 1.02 2.19 2.27 0 1.26-.98 2.28-2.2 2.28",clipRule:"evenodd"})),github:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M9.97 1A9.1 9.1 0 0 0 1 10.23a9.2 9.2 0 0 0 6.14 8.75c.44.1.6-.2.6-.44l-.01-1.71c-2.5.55-3.02-1.1-3.02-1.1-.4-1.07-1-1.35-1-1.35-.8-.56.07-.56.07-.56.9.06 1.38.95 1.38.95.8 1.4 2.1 1 2.61.76.08-.6.32-1 .57-1.24-2-.21-4.09-1-4.09-4.55 0-1 .36-1.83.92-2.48-.08-.22-.4-1.17.1-2.44 0 0 .75-.24 2.46.95a8.5 8.5 0 0 1 4.49 0c1.7-1.2 2.46-.95 2.46-.95.5 1.27.18 2.22.1 2.44.57.65.91 1.47.91 2.48 0 3.54-2.1 4.32-4.1 4.55.33.3.61.84.61 1.71l-.01 2.54c0 .24.16.53.6.44a9.2 9.2 0 0 0 6.14-8.75A9.1 9.1 0 0 0 9.97 1",clipRule:"evenodd"})),gitlab:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"m18.7 8.2-.02-.07-2.45-6.4a.64.64 0 0 0-.64-.4.7.7 0 0 0-.37.14q-.16.13-.21.33l-1.66 5.06h-6.7L5 1.8a.64.64 0 0 0-1.22-.07l-2.46 6.4-.02.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8 1.85 1.4 1.12.85a.8.8 0 0 0 .92 0l1.12-.85 1.85-1.4 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.51-5.26"})),google:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M18.82 10.2q0-.95-.16-1.84h-8.48v3.49h4.84a4.2 4.2 0 0 1-1.8 2.7v2.27h2.92a8.8 8.8 0 0 0 2.68-6.62"}),tm("path",{fill:"#000",d:"M10.18 19c2.43 0 4.47-.8 5.96-2.18l-2.92-2.26c-.8.54-1.83.86-3.04.86a5.4 5.4 0 0 1-5.04-3.7h-3v2.32A9 9 0 0 0 10.19 19"}),tm("path",{fill:"#000",d:"M5.14 11.71a5.4 5.4 0 0 1 0-3.42V5.97h-3a8.9 8.9 0 0 0 0 8.06l2.34-1.81z"}),tm("path",{fill:"#000",d:"M10.18 4.58q2.01 0 3.44 1.35l2.58-2.58A8.98 8.98 0 0 0 2.14 5.97l3 2.32a5.4 5.4 0 0 1 5.04-3.7"})),linkedin:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M17 1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2zM3.76 16.5h2.68V7.83H3.76zm9.59-8.93C11.5 7.57 10.73 9 10.73 9V7.83H8.16v8.67h2.57v-4.55c0-1.22.56-1.94 1.64-1.94.99 0 1.46.7 1.46 1.94v4.55h2.67v-5.49c0-2.32-1.32-3.44-3.15-3.44M5.09 3.5A1.6 1.6 0 0 0 3.5 5.1c0 .88.71 1.6 1.59 1.6a1.6 1.6 0 0 0 1.58-1.6c0-.88-.7-1.6-1.58-1.6",clipRule:"evenodd"})),microsoft:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M1 1h8.57v8.57H1zM10.43 1H19v8.57h-8.57zM1 10.43h8.57V19H1zM10.43 10.43H19V19h-8.57z"})),salesforce:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M8.49 4.92a3.1 3.1 0 0 1 2.28-1.01c1.2 0 2.22.68 2.78 1.7q.75-.35 1.57-.35c2.14 0 3.88 1.8 3.88 4.04a3.96 3.96 0 0 1-4.65 3.96c-.49.9-1.42 1.5-2.47 1.5q-.65 0-1.25-.3a3.2 3.2 0 0 1-2.97 2.04c-1.4 0-2.58-.9-3.04-2.18q-.3.06-.62.06c-1.66 0-3-1.4-3-3.13 0-1.16.6-2.17 1.5-2.71a4 4 0 0 1-.29-1.44c0-1.99 1.57-3.6 3.5-3.6 1.13 0 2.15.56 2.78 1.42",clipRule:"evenodd"})),slack:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M4.8 12.38a1.89 1.89 0 1 1-1.9-1.9h1.9zm.94 0a1.89 1.89 0 1 1 3.78 0v4.73a1.89 1.89 0 1 1-3.78 0zM7.63 4.78A1.89 1.89 0 1 1 9.52 2.9v1.9zm0 .96a1.89 1.89 0 1 1 0 3.79H2.89a1.89 1.89 0 1 1 0-3.79zM15.2 7.64a1.89 1.89 0 1 1 1.9 1.89h-1.9zm-.94 0a1.89 1.89 0 1 1-3.78 0V2.89a1.89 1.89 0 1 1 3.78 0zM12.37 15.22a1.89 1.89 0 1 1-1.89 1.89v-1.9zm0-.95a1.89 1.89 0 1 1 0-3.78h4.74a1.89 1.89 0 1 1 0 3.78z"})),snapchat:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M18.94 14.1a1.3 1.3 0 0 0-.64-.67l-.14-.07-.24-.13a5.4 5.4 0 0 1-1.97-1.68 4 4 0 0 1-.33-.6q-.06-.16-.01-.23l.1-.12.82-.53q.52-.36.74-.8a1.6 1.6 0 0 0 .08-1.3c-.23-.6-.8-.98-1.5-.98a2 2 0 0 0-.54.08q.01-.64-.04-1.29a4.83 4.83 0 0 0-2.44-3.93A5.6 5.6 0 0 0 10 1.15a5.6 5.6 0 0 0-2.82.72 4.8 4.8 0 0 0-2.44 3.93q-.06.66-.04 1.28a3 3 0 0 0-.55-.08 1.54 1.54 0 0 0-1.6 1.65q.01.33.18.64.23.43.74.8l.42.27.38.25q.08.04.12.12.05.07-.01.24-.14.3-.33.59a5.4 5.4 0 0 1-1.91 1.65c-.43.23-.89.39-1.08.9-.14.4-.05.84.32 1.21q.2.21.46.35.53.3 1.12.45.13.03.23.1c.13.12.12.3.3.55q.13.2.33.34c.37.26.78.27 1.23.3.4 0 .85.02 1.37.2q.3.11.7.36c.61.38 1.46.9 2.88.9s2.27-.52 2.9-.9q.37-.25.68-.36c.52-.17.97-.2 1.37-.2.44-.02.86-.04 1.23-.3q.24-.16.38-.41c.13-.22.13-.37.25-.47l.21-.1a5 5 0 0 0 1.14-.46q.28-.15.48-.37v-.01c.35-.37.44-.8.3-1.18m-1.27.68c-.77.42-1.28.38-1.67.64-.34.21-.14.68-.39.85-.3.21-1.2-.01-2.34.37-.95.31-1.56 1.21-3.27 1.21-1.7 0-2.3-.9-3.27-1.22-1.15-.38-2.04-.15-2.34-.36-.25-.17-.05-.64-.38-.86-.4-.25-.91-.2-1.68-.63-.5-.27-.21-.44-.05-.52 2.79-1.35 3.23-3.43 3.25-3.58.02-.2.05-.34-.16-.53-.2-.18-1.08-.73-1.32-.9-.4-.28-.59-.57-.46-.91.1-.25.32-.34.56-.34l.22.03c.44.1.87.32 1.12.38l.1.01q.19 0 .17-.22c-.03-.49-.1-1.43-.02-2.32.1-1.22.5-1.83.96-2.36A4.3 4.3 0 0 1 10 2.15a4.3 4.3 0 0 1 3.3 1.36c.46.54.86 1.14.96 2.36.08.89.01 1.84-.02 2.33q-.01.23.17.22l.1-.02c.24-.06.68-.28 1.12-.38l.22-.02c.24 0 .46.1.56.33q.17.5-.46.91c-.24.17-1.13.72-1.32.9-.21.2-.18.34-.16.53.02.16.46 2.24 3.25 3.59.17.08.44.25-.05.52"})),tiktok:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M11.38 1.79h2.3A4.42 4.42 0 0 0 18 5.3v.68l.01 2.41a7.6 7.6 0 0 1-4.39-1.38v6.28c0 3.14-2.6 5.7-5.8 5.7a6 6 0 0 1-3.33-1.03A5.7 5.7 0 0 1 2 13.3a5.76 5.76 0 0 1 6.59-5.64v3.16q-.37-.11-.78-.12a2.63 2.63 0 0 0-2.66 2.6c0 1 .58 1.87 1.43 2.3q.55.3 1.23.3c1.42 0 2.59-1.1 2.64-2.5V1h3.16q0 .4.08.79z",clipRule:"evenodd"})),twitch:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M5.63 1 2.5 4.21V15.8h3.75V19l3.13-3.21h2.5L17.5 10V1zm10.62 8.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"}),tm("path",{fill:"#000",d:"M14.38 4.54h-1.26v3.85h1.26zM10.94 4.54H9.69v3.85h1.25z"})),xTwitter:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M11.67 8.62 18.23 1h-1.55l-5.7 6.61L6.44 1H1.2l6.87 10-6.87 8h1.55l6.01-7 4.8 7h5.24zm-2.12 2.47-.7-1-5.54-7.92H5.7l4.47 6.4.7 1 5.8 8.3H14.3z"})),yahoo:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",fillRule:"evenodd",d:"M1 5.74 4.92 15l-1.4 3.33h3.44l5.23-12.6H8.76l-2.13 5.4-2.1-5.4zm9.47 7.24c0 1.16.9 2.1 2.1 2.1 1.25 0 2.19-.98 2.19-2.17 0-1.18-.9-2.11-2.11-2.11-1.25 0-2.18 1-2.18 2.18m4.68-11.31L11.7 9.99h3.85L19 1.67z",clipRule:"evenodd"})),phantom:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M3.13 17.5c2.3 0 4.02-2 5.05-3.58q-.19.53-.2 1.04c0 .92.54 1.58 1.58 1.58 1.44 0 2.97-1.26 3.76-2.62a2 2 0 0 0-.08.55c0 .64.36 1.04 1.1 1.04 2.32 0 4.66-4.12 4.66-7.73 0-2.8-1.42-5.28-4.98-5.28C7.75 2.5 1 10.16 1 15.11c0 1.94 1.04 2.39 2.13 2.39m8.73-10.02c0-.7.39-1.2.96-1.2s.95.5.95 1.2-.4 1.2-.95 1.2c-.57 0-.96-.5-.96-1.2m2.98 0c0-.7.39-1.2.96-1.2.55 0 .94.5.94 1.2s-.38 1.2-.94 1.2c-.57 0-.96-.5-.96-1.2"})),metamask:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("g",{fill:"#000",clipPath:"url(#a)"},tm("path",{d:"m18.66 14.11-1.06 3.5-3.58-1.03-.28-.09-.41-.12-1.76-.5-.15.01-.06.22 2.17.62-2.57 1.5H9.04l-2.56-1.5 2.16-.62-.06-.22-.15-.02-2.17.63-.28.09-3.57 1.04-1.07-3.5-.34-.14 1.21 3.98 3.9-1.13 2.85 1.67h2.08l2.86-1.67 3.89 1.13L19 13.98z"}),tm("path",{d:"M5.98 14.11v2.47l.28-.09v-2.23l2.17 1.6.15.02.14-.15-2.55-1.9H1.34l1.08-3.95-.26-.14L1 13.98l.34.13zm8.92-2.22-.92.22v.3l1.35-.33.01-2.2h-.19l-.1-.07v1.83l-1.11-1.03h-2.3l-.05.29h2.23z"}),tm("path",{d:"M6.02 12.4v-.29l-.92-.22 1.08-1H8.4l-.05-.28H6.12l-.1.04-1.07.99V9.81l-.1.07h-.2l.02 2.2zm11.56-2.52 1.08 3.95h-4.83l-2.55 1.9.14.15.15-.02 2.17-1.6v2.23l.28.09V14.1h4.64l.34-.13-1.16-4.24z"}),tm("path",{d:"M4.66 9.88h.19l.1-.07 2.97-2 .45 2.8.04.29.7 4.41.25-.1h.02l-1.2-7.64.22-2.24h3.2l.23 2.24-1.21 7.64h.02l.25.1.7-4.41.05-.28.44-2.8 2.97 2 .1.06h2.43l.26-.14L19 6.16 17.78 1.5 11.7 5.05H8.3L2.22 1.5 1 6.16l1.16 3.58.26.14zM18.7 6.15 17.6 9.6h-2.35L12.2 7.55 17.62 2zm-1.84-3.78-4.77 4.88-.2-1.98zm-8.75 2.9-.2 1.98-4.77-4.88zm-6.81.88L2.38 2l5.43 5.55L4.76 9.6H2.4z"}),tm("path",{d:"M10.8 15.21H9.2l-.62.67.3 1.1h2.23l.31-1.1zm.1 1.49H9.1l-.2-.74.41-.46h1.36l.42.46zM8.4 12.82l-.03-.07-.47-1.21H6.62l-.6.57v.3l2.12.5zm-1.67-1h.97l.3.77-1.66-.4zm5.12 1.1 2.12-.52v-.29l-.6-.57h-1.29l-.47 1.2-.03.08zm1.79-.73-1.67.4.3-.77h.98z"})),tm("defs",null,tm("clipPath",{id:"a"},tm("path",{fill:"#fff",d:"M1 1.5h18v17H1z"})))),binance:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"m6.43 8.56 3.5-3.5 3.49 3.5 2.03-2.03L9.92 1 4.4 6.53zM4.99 10 2.96 7.97.92 10l2.04 2.03zM6.43 11.44l3.5 3.5 3.49-3.5 2.03 2.03L9.92 19 4.4 13.47zM16.89 12.03 18.92 10 16.9 7.97 14.85 10z"}),tm("path",{fill:"#000",d:"M11.99 10 9.92 7.93 8.4 9.46l-.18.18-.36.36 2.06 2.07z"})),gmail:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M1 5.1v1.63l1.88 1.82L5.09 9.8l.41-2.76-.4-2.56-1.15-.86A1.84 1.84 0 0 0 1 5.09M14.9 4.48l-.4 2.6.4 2.72 2.02-1L19 6.73V5.09a1.84 1.84 0 0 0-2.95-1.47z"}),tm("path",{fill:"#000",d:"M2.23 16.75h2.86V9.8L1 6.73v8.8c0 .67.55 1.22 1.23 1.22M14.9 16.75h2.87c.68 0 1.23-.55 1.23-1.23v-8.8L14.9 9.8zM10 8.16 5.1 4.48V9.8l4.9 3.68 4.9-3.68V4.48z"})),outlook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#000",d:"M12.24 4.82v3.52l1.23.77q.06.01.14 0l5.3-3.57c0-.42-.4-.72-.63-.72z"}),tm("path",{fill:"#000",d:"m12.24 9.65 1.12.77c.16.12.35 0 .35 0l5.2-3.46v6.48c0 .7-.46 1-.97 1h-5.7zM6.43 8.03q-.59 0-.92.54t-.34 1.42q0 .9.34 1.43t.89.52q.56 0 .9-.51.32-.51.33-1.41 0-.95-.33-1.47-.32-.52-.87-.52"}),tm("path",{fill:"#000",d:"M1.1 3.03V16.8L11.58 19V1zm7.01 9.21q-.66.88-1.73.88-1.04 0-1.7-.85a3.5 3.5 0 0 1-.65-2.2q0-1.44.66-2.33a2.1 2.1 0 0 1 1.77-.89 2 2 0 0 1 1.67.85q.64.85.64 2.24a3.7 3.7 0 0 1-.66 2.3"}))},e.iconsWhite={amazon:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M16.5 15.53C9.2 19 4.69 16.1 1.8 14.33c-.19-.1-.5.03-.23.34.97 1.17 4.13 3.98 8.25 3.98s6.59-2.25 6.9-2.64c.3-.4.08-.6-.22-.48m2.04-1.13c-.2-.25-1.19-.3-1.81-.22s-1.57.45-1.49.68c.04.09.13.05.56.01s1.64-.2 1.9.14c.25.33-.4 1.9-.51 2.16s.04.32.25.15.6-.6.85-1.23c.25-.62.4-1.5.25-1.69"}),tm("path",{fill:"#fff",fillRule:"evenodd",d:"M11.6 8.46c0 .9.02 1.67-.44 2.47-.37.66-.96 1.06-1.62 1.06-.9 0-1.42-.68-1.42-1.69 0-1.99 1.79-2.35 3.48-2.35zm2.35 5.69a.5.5 0 0 1-.55.05c-.78-.64-.91-.94-1.34-1.55-1.28 1.3-2.19 1.7-3.85 1.7-1.96 0-3.5-1.22-3.5-3.64 0-1.9 1.03-3.19 2.5-3.82 1.26-.56 3.03-.66 4.39-.81v-.3c0-.56.04-1.22-.29-1.7-.28-.43-.83-.6-1.3-.6-.9 0-1.7.45-1.89 1.4-.04.21-.19.42-.4.43l-2.27-.25c-.19-.04-.4-.2-.34-.49C5.63 1.83 8.1 1 10.33 1c1.13 0 2.62.3 3.52 1.16 1.13 1.06 1.02 2.48 1.02 4.02v3.64c0 1.1.46 1.57.88 2.16.16.21.19.47 0 .63-.48.4-1.33 1.13-1.8 1.55z",clipRule:"evenodd"})),apple:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M16.55 7.14c-.1.08-1.86 1.12-1.86 3.43A4 4 0 0 0 17 14.2c0 .06-.35 1.3-1.18 2.56-.74 1.1-1.5 2.21-2.67 2.21s-1.47-.7-2.82-.7c-1.32 0-1.79.73-2.86.73S5.66 17.97 4.8 16.7c-1-1.48-1.8-3.78-1.8-5.96C3 7.25 5.17 5.4 7.31 5.4c1.14 0 2.09.78 2.8.78.68 0 1.74-.83 3.03-.83.5 0 2.26.05 3.41 1.79m-4.02-3.27c.53-.66.91-1.59.91-2.5q0-.22-.03-.37c-.87.03-1.9.6-2.53 1.36-.49.59-.95 1.5-.95 2.44 0 .14.03.28.04.33l.23.02c.78 0 1.76-.54 2.33-1.28"})),bitbucket:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"m17.96 9.14-1.34 8.08a.9.9 0 0 1-.93.78H4.3a.9.9 0 0 1-.93-.78L1.02 2.81c-.1-.5.17-.81.64-.81h16.68c.47 0 .73.32.64.8l-.64 3.8c-.09.55-.4.78-.93.78H7.37q-.23 0-.2.26l.79 4.78q.05.18.23.2h3.62q.17-.02.23-.2l.56-3.46c.05-.43.35-.6.75-.6h3.94c.58 0 .76.29.67.78"})),coinbase:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M10.02 14.5a4.5 4.5 0 1 1 4.44-5.25H19a9 9 0 1 0 0 1.5h-4.54a4.5 4.5 0 0 1-4.44 3.75"})),discord:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M12.53 3q-.26.44-.47.92a15 15 0 0 0-4.12 0q-.21-.47-.48-.92-1.93.3-3.72 1.1a13.8 13.8 0 0 0-2.66 9.72Q3.15 15.28 5.63 16q.56-.72.98-1.5a10 10 0 0 1-1.54-.7l.38-.27c2.88 1.3 6.22 1.3 9.1 0q.19.15.38.27a10 10 0 0 1-1.54.7q.41.8.98 1.5 2.48-.7 4.55-2.18c.38-3.69-.64-6.89-2.67-9.73a15 15 0 0 0-3.71-1.08zm-5.52 8.86c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.9 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72m5.98 0c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.91 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72"})),facebook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M19 10a9 9 0 1 0-11.17 8.73v-5.98H5.97V10h1.86V8.81c0-3.06 1.38-4.48 4.39-4.48.57 0 1.55.11 1.96.23v2.49Q13.83 7 13.14 7c-1.48 0-2.05.56-2.05 2.02V10h2.94l-.5 2.75h-2.44v6.18A9 9 0 0 0 19 10"})),figma:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M5.47 7.18A3.4 3.4 0 0 1 4 4.36 3.3 3.3 0 0 1 7.23 1h5.54A3.3 3.3 0 0 1 16 4.36a3.4 3.4 0 0 1-1.47 2.82A3.4 3.4 0 0 1 16 10a3.3 3.3 0 0 1-3.23 3.36h-.06c-.84 0-1.61-.33-2.19-.89v3.14c0 1.87-1.48 3.39-3.27 3.39A3.3 3.3 0 0 1 4 15.64a3.4 3.4 0 0 1 1.47-2.82A3.4 3.4 0 0 1 4 10a3.4 3.4 0 0 1 1.47-2.82M10.52 10c0 1.26.98 2.28 2.19 2.28h.06c1.2 0 2.19-1.02 2.19-2.28s-.98-2.28-2.2-2.28h-.05A2.23 2.23 0 0 0 10.52 10M9.48 7.72H7.23A2.23 2.23 0 0 0 5.04 10c0 1.25.98 2.27 2.18 2.28h2.26zm-2.25 5.64a2.23 2.23 0 0 0-2.19 2.28c0 1.25 1 2.27 2.2 2.27a2.3 2.3 0 0 0 2.24-2.3v-2.25zm2.25-6.72H7.23a2.23 2.23 0 0 1-2.19-2.28c0-1.25.98-2.27 2.2-2.27h2.24zm3.29 0h-2.25V2.09h2.25c1.2 0 2.19 1.02 2.19 2.27 0 1.26-.98 2.28-2.2 2.28",clipRule:"evenodd"})),github:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M9.97 1A9.1 9.1 0 0 0 1 10.23a9.2 9.2 0 0 0 6.14 8.75c.44.1.6-.2.6-.44l-.01-1.71c-2.5.55-3.02-1.1-3.02-1.1-.4-1.07-1-1.35-1-1.35-.8-.56.07-.56.07-.56.9.06 1.38.95 1.38.95.8 1.4 2.1 1 2.61.76.08-.6.32-1 .57-1.24-2-.21-4.09-1-4.09-4.55 0-1 .36-1.83.92-2.48-.08-.22-.4-1.17.1-2.44 0 0 .75-.24 2.46.95a8.5 8.5 0 0 1 4.49 0c1.7-1.2 2.46-.95 2.46-.95.5 1.27.18 2.22.1 2.44.57.65.91 1.47.91 2.48 0 3.54-2.1 4.32-4.1 4.55.33.3.61.84.61 1.71l-.01 2.54c0 .24.16.53.6.44a9.2 9.2 0 0 0 6.14-8.75A9.1 9.1 0 0 0 9.97 1",clipRule:"evenodd"})),gitlab:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"m18.7 8.2-.02-.07-2.45-6.4a.64.64 0 0 0-.64-.4.7.7 0 0 0-.37.14q-.16.13-.21.33l-1.66 5.06h-6.7L5 1.8a.64.64 0 0 0-1.22-.07l-2.46 6.4-.02.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8 1.85 1.4 1.12.85a.8.8 0 0 0 .92 0l1.12-.85 1.85-1.4 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.51-5.26"})),google:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M18.82 10.2q0-.95-.16-1.84h-8.48v3.49h4.84a4.2 4.2 0 0 1-1.8 2.7v2.27h2.92a8.8 8.8 0 0 0 2.68-6.62"}),tm("path",{fill:"#fff",d:"M10.18 19c2.43 0 4.47-.8 5.96-2.18l-2.92-2.26c-.8.54-1.83.86-3.04.86a5.4 5.4 0 0 1-5.04-3.7h-3v2.32A9 9 0 0 0 10.19 19"}),tm("path",{fill:"#fff",d:"M5.14 11.71a5.4 5.4 0 0 1 0-3.42V5.97h-3a8.9 8.9 0 0 0 0 8.06l2.34-1.81z"}),tm("path",{fill:"#fff",d:"M10.18 4.58q2.01 0 3.44 1.35l2.58-2.58A8.98 8.98 0 0 0 2.14 5.97l3 2.32a5.4 5.4 0 0 1 5.04-3.7"})),linkedin:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M17 1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2zM3.76 16.5h2.68V7.83H3.76zm9.59-8.93C11.5 7.57 10.73 9 10.73 9V7.83H8.16v8.67h2.57v-4.55c0-1.22.56-1.94 1.64-1.94.99 0 1.46.7 1.46 1.94v4.55h2.67v-5.49c0-2.32-1.32-3.44-3.15-3.44M5.09 3.5A1.6 1.6 0 0 0 3.5 5.1c0 .88.71 1.6 1.59 1.6a1.6 1.6 0 0 0 1.58-1.6c0-.88-.7-1.6-1.58-1.6",clipRule:"evenodd"})),microsoft:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M1 1h8.57v8.57H1zM10.43 1H19v8.57h-8.57zM1 10.43h8.57V19H1zM10.43 10.43H19V19h-8.57z"})),salesforce:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M8.49 4.92a3.1 3.1 0 0 1 2.28-1.01c1.2 0 2.22.68 2.78 1.7q.75-.35 1.57-.35c2.14 0 3.88 1.8 3.88 4.04a3.96 3.96 0 0 1-4.65 3.96c-.49.9-1.42 1.5-2.47 1.5q-.65 0-1.25-.3a3.2 3.2 0 0 1-2.97 2.04c-1.4 0-2.58-.9-3.04-2.18q-.3.06-.62.06c-1.66 0-3-1.4-3-3.13 0-1.16.6-2.17 1.5-2.71a4 4 0 0 1-.29-1.44c0-1.99 1.57-3.6 3.5-3.6 1.13 0 2.15.56 2.78 1.42",clipRule:"evenodd"})),slack:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M4.8 12.38a1.89 1.89 0 1 1-1.9-1.9h1.9zm.94 0a1.89 1.89 0 1 1 3.78 0v4.73a1.89 1.89 0 1 1-3.78 0zM7.63 4.78A1.89 1.89 0 1 1 9.52 2.9v1.9zm0 .96a1.89 1.89 0 1 1 0 3.79H2.89a1.89 1.89 0 1 1 0-3.79zM15.2 7.64a1.89 1.89 0 1 1 1.9 1.89h-1.9zm-.94 0a1.89 1.89 0 1 1-3.78 0V2.89a1.89 1.89 0 1 1 3.78 0zM12.37 15.22a1.89 1.89 0 1 1-1.89 1.89v-1.9zm0-.95a1.89 1.89 0 1 1 0-3.78h4.74a1.89 1.89 0 1 1 0 3.78z"})),snapchat:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M18.94 14.1a1.3 1.3 0 0 0-.64-.67l-.14-.07-.24-.13a5.4 5.4 0 0 1-1.97-1.68 4 4 0 0 1-.33-.6q-.06-.16-.01-.23l.1-.12.82-.53q.52-.36.74-.8a1.6 1.6 0 0 0 .08-1.3c-.23-.6-.8-.98-1.5-.98a2 2 0 0 0-.54.08q.01-.64-.04-1.29a4.83 4.83 0 0 0-2.44-3.93A5.6 5.6 0 0 0 10 1.15a5.6 5.6 0 0 0-2.82.72 4.8 4.8 0 0 0-2.44 3.93q-.06.66-.04 1.28a3 3 0 0 0-.55-.08 1.54 1.54 0 0 0-1.6 1.65q.01.33.18.64.23.43.74.8l.42.27.38.25q.08.04.12.12.05.07-.01.24-.14.3-.33.59a5.4 5.4 0 0 1-1.91 1.65c-.43.23-.89.39-1.08.9-.14.4-.05.84.32 1.21q.2.21.46.35.53.3 1.12.45.13.03.23.1c.13.12.12.3.3.55q.13.2.33.34c.37.26.78.27 1.23.3.4 0 .85.02 1.37.2q.3.11.7.36c.61.38 1.46.9 2.88.9s2.27-.52 2.9-.9q.37-.25.68-.36c.52-.17.97-.2 1.37-.2.44-.02.86-.04 1.23-.3q.24-.16.38-.41c.13-.22.13-.37.25-.47l.21-.1a5 5 0 0 0 1.14-.46q.28-.15.48-.37v-.01c.35-.37.44-.8.3-1.18m-1.27.68c-.77.42-1.28.38-1.67.64-.34.21-.14.68-.39.85-.3.21-1.2-.01-2.34.37-.95.31-1.56 1.21-3.27 1.21-1.7 0-2.3-.9-3.27-1.22-1.15-.38-2.04-.15-2.34-.36-.25-.17-.05-.64-.38-.86-.4-.25-.91-.2-1.68-.63-.5-.27-.21-.44-.05-.52 2.79-1.35 3.23-3.43 3.25-3.58.02-.2.05-.34-.16-.53-.2-.18-1.08-.73-1.32-.9-.4-.28-.59-.57-.46-.91.1-.25.32-.34.56-.34l.22.03c.44.1.87.32 1.12.38l.1.01q.19 0 .17-.22c-.03-.49-.1-1.43-.02-2.32.1-1.22.5-1.83.96-2.36A4.3 4.3 0 0 1 10 2.15a4.3 4.3 0 0 1 3.3 1.36c.46.54.86 1.14.96 2.36.08.89.01 1.84-.02 2.33q-.01.23.17.22l.1-.02c.24-.06.68-.28 1.12-.38l.22-.02c.24 0 .46.1.56.33q.17.5-.46.91c-.24.17-1.13.72-1.32.9-.21.2-.18.34-.16.53.02.16.46 2.24 3.25 3.59.17.08.44.25-.05.52"})),tiktok:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M11.38 1.79h2.3A4.42 4.42 0 0 0 18 5.3v.68l.01 2.41a7.6 7.6 0 0 1-4.39-1.38v6.28c0 3.14-2.6 5.7-5.8 5.7a6 6 0 0 1-3.33-1.03A5.7 5.7 0 0 1 2 13.3a5.76 5.76 0 0 1 6.59-5.64v3.16q-.37-.11-.78-.12a2.63 2.63 0 0 0-2.66 2.6c0 1 .58 1.87 1.43 2.3q.55.3 1.23.3c1.42 0 2.59-1.1 2.64-2.5V1h3.16q0 .4.08.79z",clipRule:"evenodd"})),twitch:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M5.63 1 2.5 4.21V15.8h3.75V19l3.13-3.21h2.5L17.5 10V1zm10.62 8.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"}),tm("path",{fill:"#fff",d:"M14.38 4.54h-1.26v3.85h1.26zM10.94 4.54H9.69v3.85h1.25z"})),xTwitter:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M11.67 8.62 18.23 1h-1.55l-5.7 6.61L6.44 1H1.2l6.87 10-6.87 8h1.55l6.01-7 4.8 7h5.24zm-2.12 2.47-.7-1-5.54-7.92H5.7l4.47 6.4.7 1 5.8 8.3H14.3z"})),yahoo:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",fillRule:"evenodd",d:"M1 5.74 4.92 15l-1.4 3.33h3.44l5.23-12.6H8.76l-2.13 5.4-2.1-5.4zm9.47 7.24c0 1.16.9 2.1 2.1 2.1 1.25 0 2.19-.98 2.19-2.17 0-1.18-.9-2.11-2.11-2.11-1.25 0-2.18 1-2.18 2.18m4.68-11.31L11.7 9.99h3.85L19 1.67z",clipRule:"evenodd"})),phantom:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M3.13 17.5c2.3 0 4.02-2 5.05-3.58q-.19.53-.2 1.04c0 .92.54 1.58 1.58 1.58 1.44 0 2.97-1.26 3.76-2.62a2 2 0 0 0-.08.55c0 .64.36 1.04 1.1 1.04 2.32 0 4.66-4.12 4.66-7.73 0-2.8-1.42-5.28-4.98-5.28C7.75 2.5 1 10.16 1 15.11c0 1.94 1.04 2.39 2.13 2.39m8.73-10.02c0-.7.39-1.2.96-1.2s.95.5.95 1.2-.4 1.2-.95 1.2c-.57 0-.96-.5-.96-1.2m2.98 0c0-.7.39-1.2.96-1.2.55 0 .94.5.94 1.2s-.38 1.2-.94 1.2c-.57 0-.96-.5-.96-1.2"})),metamask:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("g",{fill:"#fff",clipPath:"url(#a)"},tm("path",{d:"m18.66 14.11-1.06 3.5-3.58-1.03-.28-.09-.41-.12-1.76-.5-.15.01-.06.22 2.17.62-2.57 1.5H9.04l-2.56-1.5 2.16-.62-.06-.22-.15-.02-2.17.63-.28.09-3.57 1.04-1.07-3.5-.34-.14 1.21 3.98 3.9-1.13 2.85 1.67h2.08l2.86-1.67 3.89 1.13L19 13.98z"}),tm("path",{d:"M5.98 14.11v2.47l.28-.09v-2.23l2.17 1.6.15.02.14-.15-2.55-1.9H1.34l1.08-3.95-.26-.14L1 13.98l.34.13zm8.92-2.22-.92.22v.3l1.35-.33.01-2.2h-.19l-.1-.07v1.83l-1.11-1.03h-2.3l-.05.29h2.23z"}),tm("path",{d:"M6.02 12.4v-.29l-.92-.22 1.08-1H8.4l-.05-.28H6.12l-.1.04-1.07.99V9.81l-.1.07h-.2l.02 2.2zm11.56-2.52 1.08 3.95h-4.83l-2.55 1.9.14.15.15-.02 2.17-1.6v2.23l.28.09V14.1h4.64l.34-.13-1.16-4.24z"}),tm("path",{d:"M4.66 9.88h.19l.1-.07 2.97-2 .45 2.8.04.29.7 4.41.25-.1h.02l-1.2-7.64.22-2.24h3.2l.23 2.24-1.21 7.64h.02l.25.1.7-4.41.05-.28.44-2.8 2.97 2 .1.06h2.43l.26-.14L19 6.16 17.78 1.5 11.7 5.05H8.3L2.22 1.5 1 6.16l1.16 3.58.26.14zM18.7 6.15 17.6 9.6h-2.35L12.2 7.55 17.62 2zm-1.84-3.78-4.77 4.88-.2-1.98zm-8.75 2.9-.2 1.98-4.77-4.88zm-6.81.88L2.38 2l5.43 5.55L4.76 9.6H2.4z"}),tm("path",{d:"M10.8 15.21H9.2l-.62.67.3 1.1h2.23l.31-1.1zm.1 1.49H9.1l-.2-.74.41-.46h1.36l.42.46zM8.4 12.82l-.03-.07-.47-1.21H6.62l-.6.57v.3l2.12.5zm-1.67-1h.97l.3.77-1.66-.4zm5.12 1.1 2.12-.52v-.29l-.6-.57h-1.29l-.47 1.2-.03.08zm1.79-.73-1.67.4.3-.77h.98z"})),tm("defs",null,tm("clipPath",{id:"a"},tm("path",{fill:"#fff",d:"M1 1.5h18v17H1z"})))),binance:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"m6.43 8.56 3.5-3.5 3.49 3.5 2.03-2.03L9.92 1 4.4 6.53zM4.99 10 2.96 7.97.92 10l2.04 2.03zM6.43 11.44l3.5 3.5 3.49-3.5 2.03 2.03L9.92 19 4.4 13.47zM16.89 12.03 18.92 10 16.9 7.97 14.85 10z"}),tm("path",{fill:"#fff",d:"M11.99 10 9.92 7.93 8.4 9.46l-.18.18-.36.36 2.06 2.07z"})),gmail:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M1 5.1v1.63l1.88 1.82L5.09 9.8l.41-2.76-.4-2.56-1.15-.86A1.84 1.84 0 0 0 1 5.09M14.9 4.48l-.4 2.6.4 2.72 2.02-1L19 6.73V5.09a1.84 1.84 0 0 0-2.95-1.47z"}),tm("path",{fill:"#fff",d:"M2.23 16.75h2.86V9.8L1 6.73v8.8c0 .67.55 1.22 1.23 1.22M14.9 16.75h2.87c.68 0 1.23-.55 1.23-1.23v-8.8L14.9 9.8zM10 8.16 5.1 4.48V9.8l4.9 3.68 4.9-3.68V4.48z"})),outlook:e=>tm("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},tm("path",{fill:"#fff",d:"M12.24 4.82v3.52l1.23.77q.06.01.14 0l5.3-3.57c0-.42-.4-.72-.63-.72z"}),tm("path",{fill:"#fff",d:"m12.24 9.65 1.12.77c.16.12.35 0 .35 0l5.2-3.46v6.48c0 .7-.46 1-.97 1h-5.7zM6.43 8.03q-.59 0-.92.54t-.34 1.42q0 .9.34 1.43t.89.52q.56 0 .9-.51.32-.51.33-1.41 0-.95-.33-1.47-.32-.52-.87-.52"}),tm("path",{fill:"#fff",d:"M1.1 3.03V16.8L11.58 19V1zm7.01 9.21q-.66.88-1.73.88-1.04 0-1.7-.85a3.5 3.5 0 0 1-.65-2.2q0-1.44.66-2.33a2.1 2.1 0 0 1 1.77-.89 2 2 0 0 1 1.67.85q.64.85.64 2.24a3.7 3.7 0 0 1-.66 2.3"}))},e.mount=lj,e.mountIdentityProvider=lH,e.parseOAuthAuthorizeParams=ly,e.parseOAuthLogoutParams=lv,e.shadcnTheme=cc,e}({});
|
|
64
64
|
//# sourceMappingURL=index.js.map
|