@stytch/vanilla-js 4.11.0 → 4.11.2

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/dist/b2b/index.js CHANGED
@@ -337,13 +337,13 @@ var p = function (e) {
337
337
  }
338
338
  return a(t, b), n(t);
339
339
  }(),
340
- F = function (e) {
340
+ z = function (e) {
341
341
  function t() {
342
342
  return o(this, t), i(this, t, ["ChallengeSigningFailedError", "Failed to sign the challenge with the key."]);
343
343
  }
344
344
  return a(t, b), n(t);
345
345
  }(),
346
- z = function (e) {
346
+ F = function (e) {
347
347
  function t() {
348
348
  return o(this, t), i(this, t, ["SDKNotConfiguredError", "Stytch client is not confiured. You must call the configure method before using the SDK"]);
349
349
  }
@@ -1238,7 +1238,7 @@ var Be,
1238
1238
  je = function je(e) {
1239
1239
  return e.includes("public-token-test");
1240
1240
  },
1241
- Fe = function Fe(e) {
1241
+ ze = function ze(e) {
1242
1242
  var t = {
1243
1243
  isObject: function isObject(n, r) {
1244
1244
  var o = "object" === ne(r) && !Array.isArray(r) && null !== r;
@@ -1290,7 +1290,7 @@ var Be,
1290
1290
  };
1291
1291
  return t;
1292
1292
  },
1293
- ze = ie(function e(t, n, r) {
1293
+ Fe = ie(function e(t, n, r) {
1294
1294
  var o = this,
1295
1295
  i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : function () {
1296
1296
  return Promise.resolve(void 0);
@@ -1624,7 +1624,7 @@ var $e = Promise.resolve({
1624
1624
  return re().wrap(function (t) {
1625
1625
  for (;;) switch (t.prev = t.next) {
1626
1626
  case 0:
1627
- return Fe("stytch.magicLinks.email.loginOrSignup").isString("email_address", e.email_address).isOptionalString("invite_redirect_url", e.invite_redirect_url).isOptionalString("invite_template_id", e.invite_template_id).isOptionalString("name", e.name).isOptionalString("locale", e.locale).isOptionalStringArray("roles", e.roles), t.abrupt("return", this._networkClient.fetchSDK({
1627
+ return ze("stytch.magicLinks.email.loginOrSignup").isString("email_address", e.email_address).isOptionalString("invite_redirect_url", e.invite_redirect_url).isOptionalString("invite_template_id", e.invite_template_id).isOptionalString("name", e.name).isOptionalString("locale", e.locale).isOptionalStringArray("roles", e.roles), t.abrupt("return", this._networkClient.fetchSDK({
1628
1628
  url: "/b2b/magic_links/email/invite",
1629
1629
  body: e,
1630
1630
  errorMessage: "Failed to send invite.",
@@ -1643,7 +1643,7 @@ var $e = Promise.resolve({
1643
1643
  return re().wrap(function (t) {
1644
1644
  for (;;) switch (t.prev = t.next) {
1645
1645
  case 0:
1646
- return Fe("stytch.magicLinks.email.loginOrSignup").isString("email_address", e.email_address).isString("organization_id", e.organization_id).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("signup_redirect_url", e.signup_redirect_url).isOptionalString("signup_template_id", e.signup_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
1646
+ return ze("stytch.magicLinks.email.loginOrSignup").isString("email_address", e.email_address).isString("organization_id", e.organization_id).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("signup_redirect_url", e.signup_redirect_url).isOptionalString("signup_template_id", e.signup_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
1647
1647
  case 3:
1648
1648
  return n = t.sent, r = Object.assign(Object.assign({}, e), {
1649
1649
  pkce_code_challenge: n
@@ -1667,7 +1667,7 @@ var $e = Promise.resolve({
1667
1667
  return re().wrap(function (t) {
1668
1668
  for (;;) switch (t.prev = t.next) {
1669
1669
  case 0:
1670
- return Fe("stytch.magicLinks.email.discovery.send").isString("email_address", e.email_address).isOptionalString("discovery_redirect_url", e.discovery_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
1670
+ return ze("stytch.magicLinks.email.discovery.send").isString("email_address", e.email_address).isOptionalString("discovery_redirect_url", e.discovery_redirect_url).isOptionalString("login_template_id", e.login_template_id).isOptionalString("locale", e.locale), t.next = 3, this.getCodeChallenge();
1671
1671
  case 3:
1672
1672
  return n = t.sent, r = Object.assign(Object.assign({}, e), {
1673
1673
  pkce_code_challenge: n
@@ -1691,7 +1691,7 @@ var $e = Promise.resolve({
1691
1691
  return re().wrap(function (t) {
1692
1692
  for (;;) switch (t.prev = t.next) {
1693
1693
  case 0:
1694
- return Fe("stytch.magicLinks.authenticate").isString("magic_links_token", e.magic_links_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._passwordResetPKCEManager.getPKPair();
1694
+ return ze("stytch.magicLinks.authenticate").isString("magic_links_token", e.magic_links_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._passwordResetPKCEManager.getPKPair();
1695
1695
  case 3:
1696
1696
  if (n = t.sent, r = null, !(null == n ? void 0 : n.code_verifier)) {
1697
1697
  t.next = 19;
@@ -1747,7 +1747,7 @@ var $e = Promise.resolve({
1747
1747
  return re().wrap(function (t) {
1748
1748
  for (;;) switch (t.prev = t.next) {
1749
1749
  case 0:
1750
- return Fe("stytch.magicLinks.discovery.authenticate").isString("discovery_magic_links_token", e.discovery_magic_links_token), t.next = 3, this._pkceManager.getPKPair();
1750
+ return ze("stytch.magicLinks.discovery.authenticate").isString("discovery_magic_links_token", e.discovery_magic_links_token), t.next = 3, this._pkceManager.getPKPair();
1751
1751
  case 3:
1752
1752
  return n = t.sent, t.next = 6, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
1753
1753
  case 6:
@@ -1894,7 +1894,7 @@ var $e = Promise.resolve({
1894
1894
  return re().wrap(function (t) {
1895
1895
  for (;;) switch (t.prev = t.next) {
1896
1896
  case 0:
1897
- return Fe("stytch.self.update").isOptionalString("name", e.name).isOptionalObject("untrusted_metadata", e.untrusted_metadata).isOptionalBoolean("mfa_enrolled", e.mfa_enrolled).isOptionalString("mfa_phone_number", e.mfa_phone_number).isOptionalString("default_mfa_method", e.default_mfa_method), t.next = 3, this._networkClient.fetchSDK({
1897
+ return ze("stytch.self.update").isOptionalString("name", e.name).isOptionalObject("untrusted_metadata", e.untrusted_metadata).isOptionalBoolean("mfa_enrolled", e.mfa_enrolled).isOptionalString("mfa_phone_number", e.mfa_phone_number).isOptionalString("default_mfa_method", e.default_mfa_method), t.next = 3, this._networkClient.fetchSDK({
1898
1898
  url: "/b2b/organizations/members/update",
1899
1899
  body: e,
1900
1900
  errorMessage: "Failed to update member.",
@@ -2102,7 +2102,7 @@ var $e = Promise.resolve({
2102
2102
  return re().wrap(function (t) {
2103
2103
  for (;;) switch (t.prev = t.next) {
2104
2104
  case 0:
2105
- return Fe("stytch.sso.authenticate").isString("sso_token", e.sso_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
2105
+ return ze("stytch.sso.authenticate").isString("sso_token", e.sso_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
2106
2106
  case 3:
2107
2107
  return (n = t.sent) || Me("No code verifier found in local storage for SSO flow.\nConsider using stytch.sso.start() to add PKCE to your SSO flows for added security.\nSee https://stytch.com/docs/oauth#guides_pkce for more information."), t.next = 7, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
2108
2108
  case 7:
@@ -2324,7 +2324,7 @@ var $e = Promise.resolve({
2324
2324
  return re().wrap(function (t) {
2325
2325
  for (;;) switch (t.prev = t.next) {
2326
2326
  case 0:
2327
- return Fe("stytch.organization.getBySlug").isString("organization_slug", e.organization_slug), t.abrupt("return", this._networkClient.fetchSDK({
2327
+ return ze("stytch.organization.getBySlug").isString("organization_slug", e.organization_slug), t.abrupt("return", this._networkClient.fetchSDK({
2328
2328
  url: "/b2b/organizations/search",
2329
2329
  errorMessage: "Failed to get organization by slug.",
2330
2330
  method: "POST",
@@ -2489,7 +2489,7 @@ var $e = Promise.resolve({
2489
2489
  return re().wrap(function (t) {
2490
2490
  for (;;) switch (t.prev = t.next) {
2491
2491
  case 0:
2492
- return Fe("stytch.oauth.discovery.authenticate").isString("discovery_oauth_token", e.discovery_oauth_token), t.next = 3, this._pkceManager.getPKPair();
2492
+ return ze("stytch.oauth.discovery.authenticate").isString("discovery_oauth_token", e.discovery_oauth_token), t.next = 3, this._pkceManager.getPKPair();
2493
2493
  case 3:
2494
2494
  return n = t.sent, t.next = 6, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
2495
2495
  case 6:
@@ -2538,7 +2538,7 @@ var $e = Promise.resolve({
2538
2538
  return re().wrap(function (t) {
2539
2539
  for (;;) switch (t.prev = t.next) {
2540
2540
  case 0:
2541
- return Fe("stytch.oauth.authenticate").isString("oauth_token", e.oauth_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
2541
+ return ze("stytch.oauth.authenticate").isString("oauth_token", e.oauth_token).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
2542
2542
  case 3:
2543
2543
  return (n = t.sent) || Me("No code verifier found in local storage for OAuth flow.\nConsider using stytch.oauth.$provider.start() to add PKCE to your OAuth flows for added security.\nSee https://stytch.com/docs/oauth#guides_pkce for more information."), t.next = 7, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
2544
2544
  case 7:
@@ -2635,7 +2635,7 @@ var $e = Promise.resolve({
2635
2635
  case 2:
2636
2636
  return n = t.sent, l = n.pkceRequiredForOAuth, t.next = 6, this.getBaseApiUrl();
2637
2637
  case 6:
2638
- if (u = t.sent, (d = new URL("".concat(u, "/v1/b2b/public/oauth/").concat(e, "/start"))).searchParams.set("public_token", this._config.publicToken), r && "" != r && d.searchParams.set("organization_id", r), o && "" != o && d.searchParams.set("slug", o), a && (Fe("startOAuthFlow").isStringArray("custom_scopes", a), d.searchParams.set("custom_scopes", a.join(" "))), c) for (p in Fe("startOAuthFlow").isOptionalObject("provider_params", c), c) d.searchParams.set("provider_" + p, c[p]);
2638
+ if (u = t.sent, (d = new URL("".concat(u, "/v1/b2b/public/oauth/").concat(e, "/start"))).searchParams.set("public_token", this._config.publicToken), r && "" != r && d.searchParams.set("organization_id", r), o && "" != o && d.searchParams.set("slug", o), a && (ze("startOAuthFlow").isStringArray("custom_scopes", a), d.searchParams.set("custom_scopes", a.join(" "))), c) for (p in ze("startOAuthFlow").isOptionalObject("provider_params", c), c) d.searchParams.set("provider_" + p, c[p]);
2639
2639
  if (!l) {
2640
2640
  t.next = 20;
2641
2641
  break;
@@ -2673,7 +2673,7 @@ var $e = Promise.resolve({
2673
2673
  case 2:
2674
2674
  return n = t.sent, s = n.pkceRequiredForOAuth, t.next = 6, this.getBaseApiUrl();
2675
2675
  case 6:
2676
- if (a = t.sent, (c = new URL("".concat(a, "/v1/b2b/public/oauth/").concat(e, "/discovery/start"))).searchParams.set("public_token", this._config.publicToken), o && (Fe("startOAuthFlow").isStringArray("custom_scopes", o), c.searchParams.set("custom_scopes", o.join(" "))), i) for (l in Fe("startOAuthFlow").isOptionalObject("provider_params", i), i) c.searchParams.set("provider_" + l, i[l]);
2676
+ if (a = t.sent, (c = new URL("".concat(a, "/v1/b2b/public/oauth/").concat(e, "/discovery/start"))).searchParams.set("public_token", this._config.publicToken), o && (ze("startOAuthFlow").isStringArray("custom_scopes", o), c.searchParams.set("custom_scopes", o.join(" "))), i) for (l in ze("startOAuthFlow").isOptionalObject("provider_params", i), i) c.searchParams.set("provider_" + l, i[l]);
2677
2677
  if (!s) {
2678
2678
  t.next = 18;
2679
2679
  break;
@@ -2790,7 +2790,7 @@ var $e = Promise.resolve({
2790
2790
  return re().wrap(function (t) {
2791
2791
  for (;;) switch (t.prev = t.next) {
2792
2792
  case 0:
2793
- return Fe("stytch.sessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.prev = 1, t.next = 4, this._networkClient.fetchSDK({
2793
+ return ze("stytch.sessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.prev = 1, t.next = 4, this._networkClient.fetchSDK({
2794
2794
  url: "/b2b/sessions/exchange",
2795
2795
  body: e,
2796
2796
  errorMessage: "Failed to exchange session",
@@ -2871,7 +2871,7 @@ var $e = Promise.resolve({
2871
2871
  return re().wrap(function (t) {
2872
2872
  for (;;) switch (t.prev = t.next) {
2873
2873
  case 0:
2874
- return Fe("stytch.discovery.organizations.create").isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("organization_name", e.organization_name).isOptionalString("organization_slug", e.organization_slug).isOptionalString("organization_logo_url", e.organization_logo_url).isOptionalString("sso_jit_provisioning", e.sso_jit_provisioning).isOptionalStringArray("email_allowed_domains", e.email_allowed_domains).isOptionalString("email_invites", e.email_invites).isOptionalString("auth_methods", e.auth_methods).isOptionalStringArray("allowed_auth_methods", e.allowed_auth_methods).isOptionalString("mfa_policy", e.mfa_policy), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
2874
+ return ze("stytch.discovery.organizations.create").isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("organization_name", e.organization_name).isOptionalString("organization_slug", e.organization_slug).isOptionalString("organization_logo_url", e.organization_logo_url).isOptionalString("sso_jit_provisioning", e.sso_jit_provisioning).isOptionalStringArray("email_allowed_domains", e.email_allowed_domains).isOptionalString("email_invites", e.email_invites).isOptionalString("auth_methods", e.auth_methods).isOptionalStringArray("allowed_auth_methods", e.allowed_auth_methods).isOptionalString("mfa_policy", e.mfa_policy), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
2875
2875
  case 5:
2876
2876
  if (t.t2 = t.sent, t.t2) {
2877
2877
  t.next = 8;
@@ -2917,7 +2917,7 @@ var $e = Promise.resolve({
2917
2917
  return re().wrap(function (t) {
2918
2918
  for (;;) switch (t.prev = t.next) {
2919
2919
  case 0:
2920
- return Fe("stytch.discovery.intermediateSessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
2920
+ return ze("stytch.discovery.intermediateSessions.exchange").isString("organization_id", e.organization_id).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.t0 = Object, t.t1 = Object.assign({}, e), t.next = 5, this._subscriptionService.getIntermediateSessionToken();
2921
2921
  case 5:
2922
2922
  if (t.t2 = t.sent, t.t2) {
2923
2923
  t.next = 8;
@@ -3009,7 +3009,7 @@ var $e = Promise.resolve({
3009
3009
  return re().wrap(function (t) {
3010
3010
  for (;;) switch (t.prev = t.next) {
3011
3011
  case 0:
3012
- return Fe("stytch.passwords.authenticate").isString("org_id", e.organization_id).isString("password", e.password).isString("email_address", e.email_address).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
3012
+ return ze("stytch.passwords.authenticate").isString("org_id", e.organization_id).isString("password", e.password).isString("email_address", e.email_address).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this._pkceManager.getPKPair();
3013
3013
  case 3:
3014
3014
  return n = t.sent, r = null == n ? void 0 : n.code_verifier, t.next = 7, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3015
3015
  case 7:
@@ -3069,7 +3069,7 @@ var $e = Promise.resolve({
3069
3069
  return re().wrap(function (t) {
3070
3070
  for (;;) switch (t.prev = t.next) {
3071
3071
  case 0:
3072
- return Fe("stytch.passwords.resetByEmailStart").isString("email", e.email_address).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("reset_password_redirect_url", e.reset_password_redirect_url).isOptionalString("reset_password_template_id", e.reset_password_template_id).isOptionalNumber("reset_password_expiration_minutes", e.reset_password_expiration_minutes), t.next = 3, this.getCodeChallenge();
3072
+ return ze("stytch.passwords.resetByEmailStart").isString("email", e.email_address).isOptionalString("login_redirect_url", e.login_redirect_url).isOptionalString("reset_password_redirect_url", e.reset_password_redirect_url).isOptionalString("reset_password_template_id", e.reset_password_template_id).isOptionalNumber("reset_password_expiration_minutes", e.reset_password_expiration_minutes), t.next = 3, this.getCodeChallenge();
3073
3073
  case 3:
3074
3074
  return n = t.sent, t.next = 6, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3075
3075
  case 6:
@@ -3105,7 +3105,7 @@ var $e = Promise.resolve({
3105
3105
  return re().wrap(function (t) {
3106
3106
  for (;;) switch (t.prev = t.next) {
3107
3107
  case 0:
3108
- return Fe("stytch.passwords.resetByEmail").isString("password_reset_token", e.password_reset_token).isString("password", e.password).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3108
+ return ze("stytch.passwords.resetByEmail").isString("password_reset_token", e.password_reset_token).isString("password", e.password).isNumber("session_duration_minutes", e.session_duration_minutes).isOptionalString("locale", e.locale), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3109
3109
  case 3:
3110
3110
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.next = 8, this._pkceManager.getPKPair();
3111
3111
  case 8:
@@ -3164,7 +3164,7 @@ var $e = Promise.resolve({
3164
3164
  return re().wrap(function (t) {
3165
3165
  for (;;) switch (t.prev = t.next) {
3166
3166
  case 0:
3167
- return Fe("stytch.passwords.resetByExistingPassword").isString("email", e.email_address).isString("existing_password", e.existing_password).isString("new_password", e.new_password).isOptionalString("locale", e.locale), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3167
+ return ze("stytch.passwords.resetByExistingPassword").isString("email", e.email_address).isString("existing_password", e.existing_password).isString("new_password", e.new_password).isOptionalString("locale", e.locale), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3168
3168
  case 3:
3169
3169
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.next = 8, this._networkClient.retriableFetchSDK({
3170
3170
  url: "/b2b/passwords/existing_password/reset",
@@ -3213,7 +3213,7 @@ var $e = Promise.resolve({
3213
3213
  return re().wrap(function (t) {
3214
3214
  for (;;) switch (t.prev = t.next) {
3215
3215
  case 0:
3216
- return Fe("stytch.passwords.resetBySession").isString("password", e.password), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3216
+ return ze("stytch.passwords.resetBySession").isString("password", e.password), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3217
3217
  case 3:
3218
3218
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.next = 8, this._networkClient.retriableFetchSDK({
3219
3219
  url: "/b2b/passwords/session/reset",
@@ -3251,7 +3251,7 @@ var $e = Promise.resolve({
3251
3251
  return re().wrap(function (t) {
3252
3252
  for (;;) switch (t.prev = t.next) {
3253
3253
  case 0:
3254
- return Fe("stytch.passwords.strengthCheck").isOptionalString("email", e.email_address).isString("password", e.password), t.abrupt("return", this._networkClient.fetchSDK({
3254
+ return ze("stytch.passwords.strengthCheck").isOptionalString("email", e.email_address).isString("password", e.password), t.abrupt("return", this._networkClient.fetchSDK({
3255
3255
  url: "/b2b/passwords/strength_check",
3256
3256
  method: "POST",
3257
3257
  errorMessage: "Failed to check password strength.",
@@ -3279,7 +3279,7 @@ var $e = Promise.resolve({
3279
3279
  return re().wrap(function (t) {
3280
3280
  for (;;) switch (t.prev = t.next) {
3281
3281
  case 0:
3282
- return Fe("stytch.otps.sms.send").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isOptionalString("mfa_phone_number", e.mfa_phone_number).isOptionalString("locale", e.locale), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3282
+ return ze("stytch.otps.sms.send").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isOptionalString("mfa_phone_number", e.mfa_phone_number).isOptionalString("locale", e.locale), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3283
3283
  case 3:
3284
3284
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.t0 = this._networkClient, t.t1 = Object, t.t2 = Object.assign({}, e), t.t3 = r, t.t4 = o, t.next = 13, this._subscriptionService.getIntermediateSessionToken();
3285
3285
  case 13:
@@ -3313,7 +3313,7 @@ var $e = Promise.resolve({
3313
3313
  return re().wrap(function (t) {
3314
3314
  for (;;) switch (t.prev = t.next) {
3315
3315
  case 0:
3316
- return Fe("stytch.otps.sms.authenticate").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("code", e.code).isOptionalString("set_mfa_enrollment", e.set_mfa_enrollment), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3316
+ return ze("stytch.otps.sms.authenticate").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("code", e.code).isOptionalString("set_mfa_enrollment", e.set_mfa_enrollment), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3317
3317
  case 3:
3318
3318
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.t0 = Object, t.t1 = Object.assign({}, e), t.t2 = r, t.t3 = o, t.next = 12, this._subscriptionService.getIntermediateSessionToken();
3319
3319
  case 12:
@@ -3367,7 +3367,7 @@ var $e = Promise.resolve({
3367
3367
  return re().wrap(function (t) {
3368
3368
  for (;;) switch (t.prev = t.next) {
3369
3369
  case 0:
3370
- return Fe("stytch.totp.create").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isOptionalNumber("expiration_minutes", e.expiration_minutes), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3370
+ return ze("stytch.totp.create").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isOptionalNumber("expiration_minutes", e.expiration_minutes), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3371
3371
  case 3:
3372
3372
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.t0 = this._networkClient, t.t1 = Object, t.t2 = Object.assign({}, e), t.t3 = r, t.t4 = o, t.next = 13, this._subscriptionService.getIntermediateSessionToken();
3373
3373
  case 13:
@@ -3403,7 +3403,7 @@ var $e = Promise.resolve({
3403
3403
  return re().wrap(function (t) {
3404
3404
  for (;;) switch (t.prev = t.next) {
3405
3405
  case 0:
3406
- return Fe("stytch.totp.authenticate").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("code", e.code).isOptionalString("set_mfa_enrollment", e.set_mfa_enrollment).isOptionalBoolean("set_default_mfa", e.set_default_mfa), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3406
+ return ze("stytch.totp.authenticate").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("code", e.code).isOptionalString("set_mfa_enrollment", e.set_mfa_enrollment).isOptionalBoolean("set_default_mfa", e.set_default_mfa), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3407
3407
  case 3:
3408
3408
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.t0 = Object, t.t1 = Object.assign({}, e), t.t2 = r, t.t3 = o, t.next = 12, this._subscriptionService.getIntermediateSessionToken();
3409
3409
  case 12:
@@ -3457,7 +3457,7 @@ var $e = Promise.resolve({
3457
3457
  return re().wrap(function (t) {
3458
3458
  for (;;) switch (t.prev = t.next) {
3459
3459
  case 0:
3460
- return Fe("stytch.recoveryCodes.recover").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("recovery_code", e.recovery_code), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3460
+ return ze("stytch.recoveryCodes.recover").isString("organization_id", e.organization_id).isString("member_id", e.member_id).isString("recovery_code", e.recovery_code), t.next = 3, this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();
3461
3461
  case 3:
3462
3462
  return n = t.sent, r = n.dfp_telemetry_id, o = n.captcha_token, t.t0 = Object, t.t1 = Object.assign({}, e), t.t2 = r, t.t3 = o, t.next = 12, this._subscriptionService.getIntermediateSessionToken();
3463
3463
  case 12:
@@ -4280,7 +4280,7 @@ var Ot = /*#__PURE__*/function () {
4280
4280
  },
4281
4281
  sdk: {
4282
4282
  identifier: "Stytch.js Javascript SDK",
4283
- version: "4.11.0"
4283
+ version: "4.11.2"
4284
4284
  }
4285
4285
  });
4286
4286
  }
@@ -4551,17 +4551,17 @@ var Dt = function Dt(e) {
4551
4551
  jt = function jt(e) {
4552
4552
  clearTimeout(Lt.get(e));
4553
4553
  },
4554
- Ft = function Ft(e, t, n) {
4554
+ zt = function zt(e, t, n) {
4555
4555
  jt(e);
4556
4556
  var r = setTimeout(function () {
4557
4557
  void 0 === Rt.get(e) && Rt.set(e, t, n);
4558
4558
  }, 10);
4559
4559
  return Lt.set(e, r), Rt.set(e, t, n);
4560
4560
  };
4561
- var zt = /*#__PURE__*/function () {
4562
- function zt(e, t) {
4561
+ var Ft = /*#__PURE__*/function () {
4562
+ function Ft(e, t) {
4563
4563
  var _this5 = this;
4564
- _classCallCheck(this, zt);
4564
+ _classCallCheck(this, Ft);
4565
4565
  this.browserSessionStorage = {
4566
4566
  getItem: function getItem(e) {
4567
4567
  return sessionStorage.getItem(Dt(_this5.publicToken, e));
@@ -4572,7 +4572,7 @@ var zt = /*#__PURE__*/function () {
4572
4572
  removeItem: function removeItem(e) {
4573
4573
  return sessionStorage.removeItem(Dt(_this5.publicToken, e));
4574
4574
  }
4575
- }, this.publicToken = e, this.state = null, this.stateKeysUpdated = new Set(), this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (Fe("SubscriptionDataLayer").isOptionalString("cookieOptions.opaqueTokenCookieName", t.cookieOptions.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName", t.cookieOptions.jwtCookieName).isOptionalString("cookieOptions.istCookieName", t.cookieOptions.istCookieName).isOptionalString("cookieOptions.path", t.cookieOptions.path).isOptionalString("cookieOptions.domain", t.cookieOptions.domain), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || 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) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._domain = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
4575
+ }, this.publicToken = e, this.state = null, this.stateKeysUpdated = new Set(), this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (ze("SubscriptionDataLayer").isOptionalString("cookieOptions.opaqueTokenCookieName", t.cookieOptions.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName", t.cookieOptions.jwtCookieName).isOptionalString("cookieOptions.istCookieName", t.cookieOptions.istCookieName).isOptionalString("cookieOptions.path", t.cookieOptions.path).isOptionalString("cookieOptions.domain", t.cookieOptions.domain), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || 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) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._domain = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
4576
4576
  var n = localStorage.getItem(Dt(this.publicToken));
4577
4577
  if (!n) return;
4578
4578
  var r;
@@ -4583,7 +4583,7 @@ var zt = /*#__PURE__*/function () {
4583
4583
  }
4584
4584
  this.state = r;
4585
4585
  }
4586
- _createClass(zt, [{
4586
+ _createClass(Ft, [{
4587
4587
  key: "opaqueTokenCookieName",
4588
4588
  get: function get() {
4589
4589
  var e;
@@ -4621,14 +4621,14 @@ var zt = /*#__PURE__*/function () {
4621
4621
  var i = e.state,
4622
4622
  s = e.session_token,
4623
4623
  a = e.session_jwt,
4624
- c = zt.generateCookieOpts({
4624
+ c = Ft.generateCookieOpts({
4625
4625
  expiresAt: null !== (n = null === (t = null == i ? void 0 : i.session) || void 0 === t ? void 0 : t.expires_at) && void 0 !== n ? n : "",
4626
4626
  availableToSubdomains: this._cookieAvailableToSubdomains,
4627
4627
  path: this._cookiePath,
4628
4628
  domain: this._domain
4629
4629
  });
4630
- Ft(this.opaqueTokenCookieName, s, c), Ft(this.jwtCookieName, a, c);
4631
- var l = zt.generateCookieOpts({
4630
+ zt(this.opaqueTokenCookieName, s, c), zt(this.jwtCookieName, a, c);
4631
+ var l = Ft.generateCookieOpts({
4632
4632
  expiresAt: null !== (o = null === (r = null == i ? void 0 : i.session) || void 0 === r ? void 0 : r.expires_at) && void 0 !== o ? o : "",
4633
4633
  availableToSubdomains: !this._cookieAvailableToSubdomains,
4634
4634
  path: this._cookiePath,
@@ -4640,13 +4640,13 @@ var zt = /*#__PURE__*/function () {
4640
4640
  key: "writeIntermediateSessionTokenCookie",
4641
4641
  value: function writeIntermediateSessionTokenCookie(e) {
4642
4642
  var t = new Date(Date.now() + 6e5),
4643
- n = zt.generateCookieOpts({
4643
+ n = Ft.generateCookieOpts({
4644
4644
  expiresAt: t.toString(),
4645
4645
  availableToSubdomains: this._cookieAvailableToSubdomains,
4646
4646
  path: this._cookiePath,
4647
4647
  domain: this._domain
4648
4648
  });
4649
- Ft(this.istCookieName, e, n);
4649
+ zt(this.istCookieName, e, n);
4650
4650
  }
4651
4651
  }, {
4652
4652
  key: "removeSessionCookie",
@@ -4665,7 +4665,7 @@ var zt = /*#__PURE__*/function () {
4665
4665
  [!0, !1].forEach(function (t) {
4666
4666
  [_this6._cookiePath, null].forEach(function (n) {
4667
4667
  [_this6._domain, null].forEach(function (r) {
4668
- var o = zt.generateCookieOpts({
4668
+ var o = Ft.generateCookieOpts({
4669
4669
  expiresAt: new Date(0).toString(),
4670
4670
  availableToSubdomains: t,
4671
4671
  path: n,
@@ -4712,16 +4712,16 @@ var zt = /*#__PURE__*/function () {
4712
4712
  return e && (o.path = e), Boolean("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}$/)) ? o.secure = !1 : (n && (o.domain = t || window.location.host), o.secure = !0), o;
4713
4713
  }
4714
4714
  }]);
4715
- return zt;
4715
+ return Ft;
4716
4716
  }();
4717
- var Nt = /*#__PURE__*/function (_zt) {
4718
- _inherits(Nt, _zt);
4717
+ var Nt = /*#__PURE__*/function (_Ft) {
4718
+ _inherits(Nt, _Ft);
4719
4719
  function Nt() {
4720
4720
  _classCallCheck(this, Nt);
4721
4721
  return _callSuper(this, Nt, arguments);
4722
4722
  }
4723
4723
  return _createClass(Nt);
4724
- }(zt);
4724
+ }(Ft);
4725
4725
  var Ut = Symbol["for"]("__stytch_b2b_DataLayer"),
4726
4726
  Qt = function Qt(e, t) {
4727
4727
  var n = function () {
@@ -5289,7 +5289,7 @@ var tn = /*#__PURE__*/_createClass(function tn(e, t) {
5289
5289
  this._networkClient = new Ot(e, this._dataLayer, o.endpoints.sdkBackendURL, i), this._apiNetworkClient = new en(e, this._dataLayer, o.endpoints.liveAPIURL, o.endpoints.testAPIURL, i);
5290
5290
  var a = new St(e, this._networkClient, this._dataLayer),
5291
5291
  c = new Ct(a.getAsync()),
5292
- l = new ze(e, o.endpoints.dfpBackendURL, a.getAsync(), c.executeRecaptcha),
5292
+ l = new Fe(e, o.endpoints.dfpBackendURL, a.getAsync(), c.executeRecaptcha),
5293
5293
  u = new xt(o.endpoints.clientsideServicesIframeURL),
5294
5294
  d = new Pt(this._dataLayer, "oauth"),
5295
5295
  p = new Xt(this._apiNetworkClient, d, a.getAsync());
@@ -5510,7 +5510,7 @@ function Rn(e, t, n, r, o, i, s, a, c, l) {
5510
5510
  if (void 0 !== t.constructor) return null;
5511
5511
  128 & n.__u && (c = !!(32 & n.__u), i = [a = t.__e = n.__e]), (u = rn.__b) && u(t);
5512
5512
  e: if ("function" == typeof S) try {
5513
- if (_ = t.props, A = (u = S.contextType) && r[u.__c], v = u ? A ? A.props.value : u.__ : r, n.__c ? g = (d = t.__c = n.__c).__ = d.__E : ("prototype" in S && S.prototype.render ? t.__c = d = new S(_, v) : (t.__c = d = new bn(_, v), d.constructor = S, d.render = Fn), A && A.sub(d), d.props = _, d.state || (d.state = {}), d.context = v, d.__n = r, p = d.__d = !0, d.__h = [], d._sb = []), null == d.__s && (d.__s = d.state), null != S.getDerivedStateFromProps && (d.__s == d.state && (d.__s = fn({}, d.__s)), fn(d.__s, S.getDerivedStateFromProps(_, d.__s))), h = d.props, m = d.state, d.__v = t, p) null == S.getDerivedStateFromProps && null != d.componentWillMount && d.componentWillMount(), null != d.componentDidMount && d.__h.push(d.componentDidMount);else {
5513
+ if (_ = t.props, A = (u = S.contextType) && r[u.__c], v = u ? A ? A.props.value : u.__ : r, n.__c ? g = (d = t.__c = n.__c).__ = d.__E : ("prototype" in S && S.prototype.render ? t.__c = d = new S(_, v) : (t.__c = d = new bn(_, v), d.constructor = S, d.render = zn), A && A.sub(d), d.props = _, d.state || (d.state = {}), d.context = v, d.__n = r, p = d.__d = !0, d.__h = [], d._sb = []), null == d.__s && (d.__s = d.state), null != S.getDerivedStateFromProps && (d.__s == d.state && (d.__s = fn({}, d.__s)), fn(d.__s, S.getDerivedStateFromProps(_, d.__s))), h = d.props, m = d.state, d.__v = t, p) null == S.getDerivedStateFromProps && null != d.componentWillMount && d.componentWillMount(), null != d.componentDidMount && d.__h.push(d.componentDidMount);else {
5514
5514
  if (null == S.getDerivedStateFromProps && _ !== h && null != d.componentWillReceiveProps && d.componentWillReceiveProps(_, v), !d.__e && (null != d.shouldComponentUpdate && !1 === d.shouldComponentUpdate(_, d.__s, v) || t.__v === n.__v)) {
5515
5515
  for (t.__v !== n.__v && (d.props = _, d.state = d.__s, d.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function (e) {
5516
5516
  e && (e.__ = t);
@@ -5594,15 +5594,15 @@ function jn(e, t, n) {
5594
5594
  if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && jn(r[o], t, n || "function" != typeof e.type);
5595
5595
  n || null == e.__e || gn(e.__e), e.__ = e.__e = e.__d = void 0;
5596
5596
  }
5597
- function Fn(e, t, n) {
5597
+ function zn(e, t, n) {
5598
5598
  return this.constructor(e, n);
5599
5599
  }
5600
- function zn(e, t, n) {
5600
+ function Fn(e, t, n) {
5601
5601
  var r, o, i, s;
5602
5602
  rn.__ && rn.__(e, t), o = (r = "function" == typeof n) ? null : n && n.__k || t.__k, i = [], s = [], Rn(t, e = (!r && n || t).__k = _n(yn, null, [e]), o || dn, dn, void 0 !== t.ownerSVGElement, !r && n ? [n] : o ? null : t.firstChild ? nn.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Dn(i, e, s);
5603
5603
  }
5604
5604
  function Nn(e, t) {
5605
- zn(e, t, Nn);
5605
+ Fn(e, t, Nn);
5606
5606
  }
5607
5607
  function Un(e, t, n) {
5608
5608
  var r,
@@ -5982,16 +5982,16 @@ var jr = function jr(e, t, n) {
5982
5982
  e.u = n = n[2];
5983
5983
  }
5984
5984
  };
5985
- function Fr(e) {
5985
+ function zr(e) {
5986
5986
  return this.getChildContext = function () {
5987
5987
  return e.context;
5988
5988
  }, e.children;
5989
5989
  }
5990
- function zr(e) {
5990
+ function Fr(e) {
5991
5991
  var t = this,
5992
5992
  n = e.i;
5993
5993
  t.componentWillUnmount = function () {
5994
- zn(null, t.l), t.l = null, t.i = null;
5994
+ Fn(null, t.l), t.l = null, t.i = null;
5995
5995
  }, t.i && t.i !== n && t.componentWillUnmount(), t.l || (t.i = n, t.l = {
5996
5996
  nodeType: 1,
5997
5997
  parentNode: n,
@@ -6005,12 +6005,12 @@ function zr(e) {
6005
6005
  removeChild: function removeChild(e) {
6006
6006
  this.childNodes.splice(this.childNodes.indexOf(e) >>> 1, 1), t.i.removeChild(e);
6007
6007
  }
6008
- }), zn(_n(Fr, {
6008
+ }), Fn(_n(zr, {
6009
6009
  context: t.context
6010
6010
  }, e.__v), t.l);
6011
6011
  }
6012
6012
  function Nr(e, t) {
6013
- var n = _n(zr, {
6013
+ var n = _n(Fr, {
6014
6014
  __v: e,
6015
6015
  i: t
6016
6016
  });
@@ -6047,7 +6047,7 @@ var Ur = "undefined" != typeof Symbol && Symbol["for"] && Symbol["for"]("react.e
6047
6047
  return ("undefined" != typeof Symbol && "symbol" == _typeof(Symbol()) ? /fil|che|rad/ : /fil|che|ra/).test(e);
6048
6048
  };
6049
6049
  function qr(e, t, n) {
6050
- return null == t.__k && (t.textContent = ""), zn(e, t), "function" == typeof n && n(), e ? e.__c : null;
6050
+ return null == t.__k && (t.textContent = ""), Fn(e, t), "function" == typeof n && n(), e ? e.__c : null;
6051
6051
  }
6052
6052
  function Gr(e, t, n) {
6053
6053
  return Nn(e, t), "function" == typeof n && n(), e ? e.__c : null;
@@ -6139,7 +6139,7 @@ function co(e) {
6139
6139
  return so(e) ? Un.apply(null, arguments) : e;
6140
6140
  }
6141
6141
  function lo(e) {
6142
- return !!e.__k && (zn(null, e), !0);
6142
+ return !!e.__k && (Fn(null, e), !0);
6143
6143
  }
6144
6144
  function uo(e) {
6145
6145
  return e && (e.base || 1 === e.nodeType && e) || null;
@@ -6329,8 +6329,8 @@ var Co,
6329
6329
  Do = Symbol["for"]("react.context"),
6330
6330
  Lo = Symbol["for"]("react.server_context"),
6331
6331
  jo = Symbol["for"]("react.forward_ref"),
6332
- Fo = Symbol["for"]("react.suspense"),
6333
- zo = Symbol["for"]("react.suspense_list"),
6332
+ zo = Symbol["for"]("react.suspense"),
6333
+ Fo = Symbol["for"]("react.suspense_list"),
6334
6334
  No = Symbol["for"]("react.memo"),
6335
6335
  Uo = Symbol["for"]("react.lazy"),
6336
6336
  Qo = Symbol["for"]("react.offscreen");
@@ -6343,8 +6343,8 @@ function $o(e) {
6343
6343
  case Bo:
6344
6344
  case Mo:
6345
6345
  case Io:
6346
- case Fo:
6347
6346
  case zo:
6347
+ case Fo:
6348
6348
  return e;
6349
6349
  default:
6350
6350
  switch (e = e && e.$$typeof) {
@@ -6364,7 +6364,7 @@ function $o(e) {
6364
6364
  }
6365
6365
  }
6366
6366
  }
6367
- Co = Symbol["for"]("react.module.reference"), Oo.ContextConsumer = Do, Oo.ContextProvider = Ro, Oo.Element = To, Oo.ForwardRef = jo, Oo.Fragment = Bo, Oo.Lazy = Uo, Oo.Memo = No, Oo.Portal = Po, Oo.Profiler = Mo, Oo.StrictMode = Io, Oo.Suspense = Fo, Oo.SuspenseList = zo, Oo.isAsyncMode = function () {
6367
+ Co = Symbol["for"]("react.module.reference"), Oo.ContextConsumer = Do, Oo.ContextProvider = Ro, Oo.Element = To, Oo.ForwardRef = jo, Oo.Fragment = Bo, Oo.Lazy = Uo, Oo.Memo = No, Oo.Portal = Po, Oo.Profiler = Mo, Oo.StrictMode = Io, Oo.Suspense = zo, Oo.SuspenseList = Fo, Oo.isAsyncMode = function () {
6368
6368
  return !1;
6369
6369
  }, Oo.isConcurrentMode = function () {
6370
6370
  return !1;
@@ -6389,11 +6389,11 @@ Co = Symbol["for"]("react.module.reference"), Oo.ContextConsumer = Do, Oo.Contex
6389
6389
  }, Oo.isStrictMode = function (e) {
6390
6390
  return $o(e) === Io;
6391
6391
  }, Oo.isSuspense = function (e) {
6392
- return $o(e) === Fo;
6393
- }, Oo.isSuspenseList = function (e) {
6394
6392
  return $o(e) === zo;
6393
+ }, Oo.isSuspenseList = function (e) {
6394
+ return $o(e) === Fo;
6395
6395
  }, Oo.isValidElementType = function (e) {
6396
- return "string" == typeof e || "function" == typeof e || e === Bo || e === Mo || e === Io || e === Fo || e === zo || e === Qo || "object" == _typeof(e) && null !== e && (e.$$typeof === Uo || e.$$typeof === No || e.$$typeof === Ro || e.$$typeof === Do || e.$$typeof === jo || e.$$typeof === Co || void 0 !== e.getModuleId);
6396
+ return "string" == typeof e || "function" == typeof e || e === Bo || e === Mo || e === Io || e === zo || e === Fo || e === Qo || "object" == _typeof(e) && null !== e && (e.$$typeof === Uo || e.$$typeof === No || e.$$typeof === Ro || e.$$typeof === Do || e.$$typeof === jo || e.$$typeof === Co || void 0 !== e.getModuleId);
6397
6397
  }, Oo.typeOf = $o, xo.exports = Oo;
6398
6398
  var Ho = function Ho(e, t, n, r) {
6399
6399
  var o = n ? n.call(r, e, t) : void 0;
@@ -6414,7 +6414,7 @@ var Ho = function Ho(e, t, n, r) {
6414
6414
  };
6415
6415
  function Ko(e) {
6416
6416
  function t(e, r, c, l, p) {
6417
- for (var h, m, f, g, y, w = 0, k = 0, E = 0, S = 0, C = 0, I = 0, R = f = h = 0, L = 0, j = 0, F = 0, z = 0, N = c.length, U = N - 1, Q = "", $ = "", H = "", K = ""; L < N;) {
6417
+ for (var h, m, f, g, y, w = 0, k = 0, E = 0, S = 0, C = 0, I = 0, R = f = h = 0, L = 0, j = 0, z = 0, F = 0, N = c.length, U = N - 1, Q = "", $ = "", H = "", K = ""; L < N;) {
6418
6418
  if (m = c.charCodeAt(L), L === U && 0 !== k + S + E + w && (0 !== k && (m = 47 === k ? 10 : 47), S = E = w = 0, N++, U++), 0 === k + S + E + w) {
6419
6419
  if (L === U && (0 < j && (Q = Q.replace(d, "")), 0 < Q.trim().length)) {
6420
6420
  switch (m) {
@@ -6431,7 +6431,7 @@ function Ko(e) {
6431
6431
  }
6432
6432
  switch (m) {
6433
6433
  case 123:
6434
- for (h = (Q = Q.trim()).charCodeAt(0), f = 1, z = ++L; L < N;) {
6434
+ for (h = (Q = Q.trim()).charCodeAt(0), f = 1, F = ++L; L < N;) {
6435
6435
  switch (m = c.charCodeAt(L)) {
6436
6436
  case 123:
6437
6437
  f++;
@@ -6472,7 +6472,7 @@ function Ko(e) {
6472
6472
  if (0 === f) break;
6473
6473
  L++;
6474
6474
  }
6475
- if (f = c.substring(z, L), 0 === h && (h = (Q = Q.replace(u, "").trim()).charCodeAt(0)), 64 === h) {
6475
+ if (f = c.substring(F, L), 0 === h && (h = (Q = Q.replace(u, "").trim()).charCodeAt(0)), 64 === h) {
6476
6476
  switch (0 < j && (Q = Q.replace(d, "")), m = Q.charCodeAt(1)) {
6477
6477
  case 100:
6478
6478
  case 109:
@@ -6483,7 +6483,7 @@ function Ko(e) {
6483
6483
  default:
6484
6484
  j = B;
6485
6485
  }
6486
- if (z = (f = t(r, j, f, m, p + 1)).length, 0 < M && (y = a(3, f, j = n(B, Q, F), r, O, x, z, m, p, l), Q = j.join(""), void 0 !== y && 0 === (z = (f = y.trim()).length) && (m = 0, f = "")), 0 < z) switch (m) {
6486
+ if (F = (f = t(r, j, f, m, p + 1)).length, 0 < M && (y = a(3, f, j = n(B, Q, z), r, O, x, F, m, p, l), Q = j.join(""), void 0 !== y && 0 === (F = (f = y.trim()).length) && (m = 0, f = "")), 0 < F) switch (m) {
6487
6487
  case 115:
6488
6488
  Q = Q.replace(b, s);
6489
6489
  case 100:
@@ -6497,12 +6497,12 @@ function Ko(e) {
6497
6497
  default:
6498
6498
  f = Q + f, 112 === l && ($ += f, f = "");
6499
6499
  } else f = "";
6500
- } else f = t(r, n(r, Q, F), f, l, p + 1);
6501
- H += f, f = F = j = R = h = 0, Q = "", m = c.charCodeAt(++L);
6500
+ } else f = t(r, n(r, Q, z), f, l, p + 1);
6501
+ H += f, f = z = j = R = h = 0, Q = "", m = c.charCodeAt(++L);
6502
6502
  break;
6503
6503
  case 125:
6504
6504
  case 59:
6505
- if (1 < (z = (Q = (0 < j ? Q.replace(d, "") : Q).trim()).length)) switch (0 === R && (h = Q.charCodeAt(0), 45 === h || 96 < h && 123 > h) && (z = (Q = Q.replace(" ", ":")).length), 0 < M && void 0 !== (y = a(1, Q, r, e, O, x, $.length, l, p, l)) && 0 === (z = (Q = y.trim()).length) && (Q = "\0\0"), h = Q.charCodeAt(0), m = Q.charCodeAt(1), h) {
6505
+ if (1 < (F = (Q = (0 < j ? Q.replace(d, "") : Q).trim()).length)) switch (0 === R && (h = Q.charCodeAt(0), 45 === h || 96 < h && 123 > h) && (F = (Q = Q.replace(" ", ":")).length), 0 < M && void 0 !== (y = a(1, Q, r, e, O, x, $.length, l, p, l)) && 0 === (F = (Q = y.trim()).length) && (Q = "\0\0"), h = Q.charCodeAt(0), m = Q.charCodeAt(1), h) {
6506
6506
  case 0:
6507
6507
  break;
6508
6508
  case 64:
@@ -6511,9 +6511,9 @@ function Ko(e) {
6511
6511
  break;
6512
6512
  }
6513
6513
  default:
6514
- 58 !== Q.charCodeAt(z - 1) && ($ += o(Q, h, m, Q.charCodeAt(2)));
6514
+ 58 !== Q.charCodeAt(F - 1) && ($ += o(Q, h, m, Q.charCodeAt(2)));
6515
6515
  }
6516
- F = j = R = h = 0, Q = "", m = c.charCodeAt(++L);
6516
+ z = j = R = h = 0, Q = "", m = c.charCodeAt(++L);
6517
6517
  }
6518
6518
  }
6519
6519
  switch (m) {
@@ -6552,7 +6552,7 @@ function Ko(e) {
6552
6552
  g = "\\v";
6553
6553
  break;
6554
6554
  case 38:
6555
- 0 === S + k + w && (j = F = 1, g = "\f" + g);
6555
+ 0 === S + k + w && (j = z = 1, g = "\f" + g);
6556
6556
  break;
6557
6557
  case 108:
6558
6558
  if (0 === S + k + w + T && 0 < R) switch (L - R) {
@@ -6599,19 +6599,19 @@ function Ko(e) {
6599
6599
  k = 47;
6600
6600
  break;
6601
6601
  case 220:
6602
- z = L, k = 42;
6602
+ F = L, k = 42;
6603
6603
  }
6604
6604
  break;
6605
6605
  case 42:
6606
- 47 === m && 42 === C && z + 2 !== L && (33 === c.charCodeAt(z + 2) && ($ += c.substring(z, L + 1)), g = "", k = 0);
6606
+ 47 === m && 42 === C && F + 2 !== L && (33 === c.charCodeAt(F + 2) && ($ += c.substring(F, L + 1)), g = "", k = 0);
6607
6607
  }
6608
6608
  }
6609
6609
  0 === k && (Q += g);
6610
6610
  }
6611
6611
  I = C, C = m, L++;
6612
6612
  }
6613
- if (0 < (z = $.length)) {
6614
- if (j = r, 0 < M && void 0 !== (y = a(2, $, j, e, O, x, z, l, p, l)) && 0 === ($ = y).length) return K + $ + H;
6613
+ if (0 < (F = $.length)) {
6614
+ if (j = r, 0 < M && void 0 !== (y = a(2, $, j, e, O, x, F, l, p, l)) && 0 === ($ = y).length) return K + $ + H;
6615
6615
  if ($ = j.join(",") + "{" + $ + "}", 0 != P * T) {
6616
6616
  switch (2 !== P || i($, 2) || (T = 0), T) {
6617
6617
  case 111:
@@ -7052,10 +7052,10 @@ var Mi = function Mi(e, t) {
7052
7052
  function ji(e) {
7053
7053
  return "function" == typeof e;
7054
7054
  }
7055
- function Fi(e) {
7055
+ function zi(e) {
7056
7056
  return e.displayName || e.name || "Component";
7057
7057
  }
7058
- function zi(e) {
7058
+ function Fi(e) {
7059
7059
  return e && "string" == typeof e.styledComponentId;
7060
7060
  }
7061
7061
  var Ni = "undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
@@ -7284,7 +7284,7 @@ var hs = ps("5.3.5"),
7284
7284
  this.rules = e, this.staticRulesId = "", this.isStatic = (void 0 === n || n.isStatic) && function (e) {
7285
7285
  for (var t = 0; t < e.length; t += 1) {
7286
7286
  var n = e[t];
7287
- if (ji(n) && !zi(n)) return !1;
7287
+ if (ji(n) && !Fi(n)) return !1;
7288
7288
  }
7289
7289
  return !0;
7290
7290
  }(e), this.componentId = t, this.baseHash = ds(hs, t), this.baseStyle = n, as.registerId(t);
@@ -7455,7 +7455,7 @@ function Bs(e, t, n, r) {
7455
7455
  for (var o, i = [], s = 0, a = e.length; s < a; s += 1) "" !== (o = Bs(e[s], t, n, r)) && (Array.isArray(o) ? i.push.apply(i, o) : i.push(o));
7456
7456
  return i;
7457
7457
  }
7458
- return Ps(e) ? "" : zi(e) ? "." + e.styledComponentId : ji(e) ? "function" != typeof (c = e) || c.prototype && c.prototype.isReactComponent || !t ? e : Bs(e(t), t, n, r) : e instanceof Es ? n ? (e.inject(n, r), e.getName(r)) : e : Ri(e) ? function e(t, n) {
7458
+ return Ps(e) ? "" : Fi(e) ? "." + e.styledComponentId : ji(e) ? "function" != typeof (c = e) || c.prototype && c.prototype.isReactComponent || !t ? e : Bs(e(t), t, n, r) : e instanceof Es ? n ? (e.inject(n, r), e.getName(r)) : e : Ri(e) ? function e(t, n) {
7459
7459
  var r,
7460
7460
  o,
7461
7461
  i = [];
@@ -7479,10 +7479,10 @@ function Ls(e) {
7479
7479
  var js = function js(e) {
7480
7480
  return us(ps(e) >>> 0);
7481
7481
  };
7482
- function Fs(e) {
7482
+ function zs(e) {
7483
7483
  return "string" == typeof e && !0;
7484
7484
  }
7485
- var zs = function zs(e) {
7485
+ var Fs = function Fs(e) {
7486
7486
  return "function" == typeof e || "object" == _typeof(e) && null !== e && !Array.isArray(e);
7487
7487
  },
7488
7488
  Ns = function Ns(e) {
@@ -7490,13 +7490,13 @@ var zs = function zs(e) {
7490
7490
  };
7491
7491
  function Us(e, t, n) {
7492
7492
  var r = e[n];
7493
- zs(t) && zs(r) ? Qs(r, t) : e[n] = t;
7493
+ Fs(t) && Fs(r) ? Qs(r, t) : e[n] = t;
7494
7494
  }
7495
7495
  function Qs(e) {
7496
7496
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
7497
7497
  for (var o = 0, i = n; o < i.length; o++) {
7498
7498
  var s = i[o];
7499
- if (zs(s)) for (var a in s) Ns(a) && Us(e, s[a], a);
7499
+ if (Fs(s)) for (var a in s) Ns(a) && Us(e, s[a], a);
7500
7500
  }
7501
7501
  return e;
7502
7502
  }
@@ -7515,8 +7515,8 @@ function Hs(e) {
7515
7515
  $s.Consumer;
7516
7516
  var Ks = {};
7517
7517
  function Vs(e, t, n) {
7518
- var r = zi(e),
7519
- o = !Fs(e),
7518
+ var r = Fi(e),
7519
+ o = !zs(e),
7520
7520
  i = t.attrs,
7521
7521
  s = void 0 === i ? Di : i,
7522
7522
  a = t.componentId,
@@ -7528,7 +7528,7 @@ function Vs(e, t, n) {
7528
7528
  }(t.displayName, t.parentComponentId) : a,
7529
7529
  l = t.displayName,
7530
7530
  u = void 0 === l ? function (e) {
7531
- return Fs(e) ? "styled." + e : "Styled(" + Fi(e) + ")";
7531
+ return zs(e) ? "styled." + e : "Styled(" + zi(e) + ")";
7532
7532
  }(e) : l,
7533
7533
  d = t.displayName && t.componentId ? Ls(t.displayName) + "-" + t.componentId : t.componentId || c,
7534
7534
  p = r && e.attrs ? Array.prototype.concat(e.attrs, s).filter(Boolean) : s,
@@ -7573,7 +7573,7 @@ function Vs(e, t, n) {
7573
7573
  }(i, r, p),
7574
7574
  f = n,
7575
7575
  g = h.$as || t.$as || h.as || t.as || u,
7576
- _ = Fs(g),
7576
+ _ = zs(g),
7577
7577
  A = h !== t ? Ii({}, t, {}, h) : t,
7578
7578
  v = {};
7579
7579
  for (var y in A) "$" !== y[0] && "as" !== y && ("forwardedAs" === y ? v.as = A[y] : (c ? c(y, Wo, g) : !_ || Wo(y)) && (v[y] = A[y]));
@@ -7591,7 +7591,7 @@ function Vs(e, t, n) {
7591
7591
  for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
7592
7592
  return o;
7593
7593
  }(t, ["componentId"]),
7594
- i = r && r + "-" + (Fs(e) ? e : Ls(Fi(e)));
7594
+ i = r && r + "-" + (zs(e) ? e : Ls(zi(e)));
7595
7595
  return Vs(e, Ii({}, o, {
7596
7596
  attrs: p,
7597
7597
  componentId: i
@@ -8053,8 +8053,8 @@ var ga = {
8053
8053
  D = B.call(Object),
8054
8054
  L = RegExp("^" + B.call(I).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"),
8055
8055
  j = y ? _.Buffer : void 0,
8056
- F = _.Symbol,
8057
- z = _.Uint8Array,
8056
+ z = _.Symbol,
8057
+ F = _.Uint8Array,
8058
8058
  N = j ? j.allocUnsafe : void 0,
8059
8059
  U = (S = Object.getPrototypeOf, C = Object, function (e) {
8060
8060
  return S(C(e));
@@ -8062,7 +8062,7 @@ var ga = {
8062
8062
  Q = Object.create,
8063
8063
  $ = T.propertyIsEnumerable,
8064
8064
  H = x.splice,
8065
- K = F ? F.toStringTag : void 0,
8065
+ K = z ? z.toStringTag : void 0,
8066
8066
  V = function () {
8067
8067
  try {
8068
8068
  var e = Ae(Object, "defineProperty");
@@ -8291,7 +8291,7 @@ var ga = {
8291
8291
  var n = e.length,
8292
8292
  r = N ? N(n) : new e.constructor(n);
8293
8293
  return e.copy(r), r;
8294
- }(c, !0)) : f ? (p = !1, g = c, _ = !0 ? (A = g.buffer, v = new A.constructor(A.byteLength), new z(v).set(new z(A)), v) : g.buffer, d = new g.constructor(_, g.byteOffset, g.length)) : d = [] : function (e) {
8294
+ }(c, !0)) : f ? (p = !1, g = c, _ = !0 ? (A = g.buffer, v = new A.constructor(A.byteLength), new F(v).set(new F(A)), v) : g.buffer, d = new g.constructor(_, g.byteOffset, g.length)) : d = [] : function (e) {
8295
8295
  if (!Be(e) || ue(e) != l) return !1;
8296
8296
  var t = U(e);
8297
8297
  if (null === t) return !0;
@@ -8697,10 +8697,10 @@ function ja(e) {
8697
8697
  ja.bind({
8698
8698
  g: 1
8699
8699
  });
8700
- var Fa = ja.bind({
8700
+ var za = ja.bind({
8701
8701
  k: 1
8702
8702
  });
8703
- function za(e, t) {
8703
+ function Fa(e, t) {
8704
8704
  var n = this || {};
8705
8705
  return function () {
8706
8706
  var r = arguments;
@@ -9013,10 +9013,10 @@ function ic() {
9013
9013
  return e;
9014
9014
  }, e;
9015
9015
  }
9016
- var sc = Fa(ic()),
9017
- ac = Fa(oc()),
9018
- cc = Fa(rc()),
9019
- lc = za("div")(nc(), function (e) {
9016
+ var sc = za(ic()),
9017
+ ac = za(oc()),
9018
+ cc = za(rc()),
9019
+ lc = Fa("div")(nc(), function (e) {
9020
9020
  return e.primary || "#ff4b4b";
9021
9021
  }, sc, ac, function (e) {
9022
9022
  return e.secondary || "#fff";
@@ -9033,8 +9033,8 @@ function dc() {
9033
9033
  return e;
9034
9034
  }, e;
9035
9035
  }
9036
- var pc = Fa(dc()),
9037
- hc = za("div")(uc(), function (e) {
9036
+ var pc = za(dc()),
9037
+ hc = Fa("div")(uc(), function (e) {
9038
9038
  return e.secondary || "#e0e0e0";
9039
9039
  }, function (e) {
9040
9040
  return e.primary || "#616161";
@@ -9057,9 +9057,9 @@ function gc() {
9057
9057
  return e;
9058
9058
  }, e;
9059
9059
  }
9060
- var _c = Fa(gc()),
9061
- Ac = Fa(fc()),
9062
- vc = za("div")(mc(), function (e) {
9060
+ var _c = za(gc()),
9061
+ Ac = za(fc()),
9062
+ vc = Fa("div")(mc(), function (e) {
9063
9063
  return e.primary || "#61d345";
9064
9064
  }, _c, Ac, function (e) {
9065
9065
  return e.secondary || "#fff";
@@ -9088,10 +9088,10 @@ function kc() {
9088
9088
  return e;
9089
9089
  }, e;
9090
9090
  }
9091
- var Ec = za("div")(kc()),
9092
- Sc = za("div")(wc()),
9093
- Cc = Fa(bc()),
9094
- xc = za("div")(yc(), Cc),
9091
+ var Ec = Fa("div")(kc()),
9092
+ Sc = Fa("div")(wc()),
9093
+ Cc = za(bc()),
9094
+ xc = Fa("div")(yc(), Cc),
9095
9095
  Oc = function Oc(e) {
9096
9096
  var t = e.toast,
9097
9097
  n = t.icon,
@@ -9117,8 +9117,8 @@ var Bc = function Bc(e) {
9117
9117
  Ic = function Ic(e) {
9118
9118
  return "\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0," + -150 * e + "%,-1px) scale(.6); opacity:0;}\n";
9119
9119
  },
9120
- Mc = za("div", Cr)(Pc()),
9121
- Rc = za("div")(Tc()),
9120
+ Mc = Fa("div", Cr)(Pc()),
9121
+ Rc = Fa("div")(Tc()),
9122
9122
  Dc = kr(function (e) {
9123
9123
  var t = e.toast,
9124
9124
  n = e.position,
@@ -9129,7 +9129,7 @@ var Bc = function Bc(e) {
9129
9129
  r = Ka() ? ["0%{opacity:0;} 100%{opacity:1;}", "0%{opacity:1;} 100%{opacity:0;}"] : [Bc(n), Ic(n)],
9130
9130
  o = r[1];
9131
9131
  return {
9132
- animation: t ? Fa(r[0]) + " 0.35s cubic-bezier(.21,1.02,.73,1) forwards" : Fa(o) + " 0.4s forwards cubic-bezier(.06,.71,.55,1)"
9132
+ animation: t ? za(r[0]) + " 0.35s cubic-bezier(.21,1.02,.73,1) forwards" : za(o) + " 0.4s forwards cubic-bezier(.06,.71,.55,1)"
9133
9133
  };
9134
9134
  }(t.position || n || "top-center", t.visible) : {
9135
9135
  opacity: 0
@@ -9156,7 +9156,7 @@ function Lc() {
9156
9156
  Ia.p = t, Ea = e, Sa = n, Ca = r;
9157
9157
  }(_n);
9158
9158
  var jc = ja(Lc()),
9159
- Fc = function Fc(e) {
9159
+ zc = function zc(e) {
9160
9160
  var t = e.reverseOrder,
9161
9161
  n = e.position,
9162
9162
  r = void 0 === n ? "top-center" : n,
@@ -9227,7 +9227,7 @@ var jc = ja(Lc()),
9227
9227
  }));
9228
9228
  }));
9229
9229
  },
9230
- zc = ec;
9230
+ Fc = ec;
9231
9231
  var Nc = function Nc() {
9232
9232
  return _n("svg", {
9233
9233
  width: "20",
@@ -9270,7 +9270,7 @@ var Nc = function Nc() {
9270
9270
  color: "#590607"
9271
9271
  }),
9272
9272
  Kc = function Kc() {
9273
- return wo.createElement(Fc, {
9273
+ return wo.createElement(zc, {
9274
9274
  containerStyle: {
9275
9275
  position: "sticky",
9276
9276
  marginTop: "4px",
@@ -9623,10 +9623,10 @@ var _ref47 = vl && window.addEventListener ? [window.addEventListener.bind(windo
9623
9623
  return [e = "string" == typeof e ? e : (Array.isArray(e) ? e.length : e) ? El(e) : "", t];
9624
9624
  };
9625
9625
  var jl = 0;
9626
- var Fl = function Fl() {
9626
+ var zl = function zl() {
9627
9627
  return ++jl;
9628
9628
  };
9629
- var zl = 0,
9629
+ var Fl = 0,
9630
9630
  Nl = 1,
9631
9631
  Ul = 2,
9632
9632
  Ql = 3;
@@ -9664,7 +9664,7 @@ function $l() {
9664
9664
  return _context20.abrupt("return", g());
9665
9665
  case 6:
9666
9666
  A = r;
9667
- v = Fl();
9667
+ v = zl();
9668
9668
  h[o] = [v, 0];
9669
9669
  y = !fl(c), b = i(), w = b.data, k = b._c, E = fl(k) ? w : k;
9670
9670
  if (y && (c = gl(c) ? c(E) : c, d({
@@ -9707,7 +9707,7 @@ function $l() {
9707
9707
  s && (_ || (gl(s) && (A = s(A, E)), d({
9708
9708
  data: A,
9709
9709
  _c: hl
9710
- }))), h[o][1] = Fl();
9710
+ }))), h[o][1] = zl();
9711
9711
  _context20.next = 23;
9712
9712
  return g();
9713
9713
  case 23:
@@ -9943,10 +9943,10 @@ var tu,
9943
9943
  D = h[g] && h[g].length > 0,
9944
9944
  L = M.data,
9945
9945
  j = fl(L) ? P : L,
9946
- F = M.error,
9947
- z = sr(j),
9948
- N = p ? fl(L) ? z.current : L : j,
9949
- U = !(D && !fl(F)) && (R && !fl(a) ? a : !k().isPaused() && (i ? !fl(j) && c : fl(j) || c)),
9946
+ z = M.error,
9947
+ F = sr(j),
9948
+ N = p ? fl(L) ? F.current : L : j,
9949
+ U = !(D && !fl(z)) && (R && !fl(a) ? a : !k().isPaused() && (i ? !fl(j) && c : fl(j) || c)),
9950
9950
  Q = !!(g && t && R && U),
9951
9951
  $ = fl(M.isValidating) ? Q : M.isValidating,
9952
9952
  H = fl(M.isLoading) ? Q : M.isLoading,
@@ -9981,7 +9981,7 @@ var tu,
9981
9981
  _context22.prev = 6;
9982
9982
  c && (C(w), n.loadingTimeout && fl(S().data) && setTimeout(function () {
9983
9983
  s && l() && k().onLoadingSlow(g, n);
9984
- }, n.loadingTimeout), f[g] = [t(_), Fl()]);
9984
+ }, n.loadingTimeout), f[g] = [t(_), zl()]);
9985
9985
  _f$g = _slicedToArray(f[g], 2), r = _f$g[0], i = _f$g[1];
9986
9986
  _context22.next = 11;
9987
9987
  return r;
@@ -10034,7 +10034,7 @@ var tu,
10034
10034
  return $l.apply(void 0, [r, y.current].concat(e));
10035
10035
  }, []);
10036
10036
  if (Ml(function () {
10037
- b.current = t, w.current = n, fl(L) || (z.current = L);
10037
+ b.current = t, w.current = n, fl(L) || (F.current = L);
10038
10038
  }), Ml(function () {
10039
10039
  if (!g) return;
10040
10040
  var e = K.bind(hl, eu);
@@ -10047,7 +10047,7 @@ var tu,
10047
10047
  };
10048
10048
  }(g, h, function (n) {
10049
10049
  var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10050
- if (n == zl) {
10050
+ if (n == Fl) {
10051
10051
  var _n9 = Date.now();
10052
10052
  k().revalidateOnFocus && _n9 > t && E() && (t = _n9 + k().focusThrottleInterval, e());
10053
10053
  } else if (n == Nl) k().revalidateOnReconnect && E() && e();else {
@@ -10074,7 +10074,7 @@ var tu,
10074
10074
  };
10075
10075
  }, [l, u, d, g]), dr(N), i && fl(j) && g) {
10076
10076
  if (!Pl && Bl) throw new Error("Fallback data is required when using suspense in SSR.");
10077
- throw b.current = t, w.current = n, v.current = !1, fl(F) ? K(eu) : F;
10077
+ throw b.current = t, w.current = n, v.current = !1, fl(z) ? K(eu) : z;
10078
10078
  }
10079
10079
  return {
10080
10080
  mutate: V,
@@ -10082,7 +10082,7 @@ var tu,
10082
10082
  return T.data = !0, N;
10083
10083
  },
10084
10084
  get error() {
10085
- return T.error = !0, F;
10085
+ return T.error = !0, z;
10086
10086
  },
10087
10087
  get isValidating() {
10088
10088
  return T.isValidating = !0, $;
@@ -10199,7 +10199,7 @@ var ru = function (e, t) {
10199
10199
  l = _l(_l({
10200
10200
  populateCache: !1,
10201
10201
  throwOnError: !0
10202
- }, s.current), t), d = Fl();
10202
+ }, s.current), t), d = zl();
10203
10203
  a.current = d, u({
10204
10204
  isMutating: !0
10205
10205
  });
@@ -10236,7 +10236,7 @@ var ru = function (e, t) {
10236
10236
  }));
10237
10237
  }, []),
10238
10238
  h = lr(function () {
10239
- a.current = Fl(), u({
10239
+ a.current = zl(), u({
10240
10240
  data: hl,
10241
10241
  error: hl,
10242
10242
  isMutating: !1
@@ -10796,7 +10796,7 @@ var du = Gs(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
10796
10796
  enabled: t
10797
10797
  }));
10798
10798
  },
10799
- Fu = function Fu(_ref60) {
10799
+ zu = function zu(_ref60) {
10800
10800
  var e = _ref60.password,
10801
10801
  t = _ref60.setPassword,
10802
10802
  n = _ref60.type;
@@ -10828,7 +10828,7 @@ var du = Gs(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
10828
10828
  visible: r
10829
10829
  }));
10830
10830
  },
10831
- zu = Ys.button(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n"]))),
10831
+ Fu = Ys.button(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n"]))),
10832
10832
  Nu = function Nu(_ref61) {
10833
10833
  var e = _ref61.color;
10834
10834
  return wo.createElement("svg", {
@@ -10845,7 +10845,7 @@ var du = Gs(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
10845
10845
  Uu = function Uu(_ref62) {
10846
10846
  var e = _ref62.onClick;
10847
10847
  var t = Ws();
10848
- return wo.createElement(zu, {
10848
+ return wo.createElement(Fu, {
10849
10849
  type: "button",
10850
10850
  onClick: e,
10851
10851
  "aria-label": "Back"
@@ -10915,7 +10915,7 @@ var du = Gs(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
10915
10915
  }, wo.createElement(Wc, {
10916
10916
  size: "helper",
10917
10917
  color: "secondary"
10918
- }, "Password"), wo.createElement(Fu, {
10918
+ }, "Password"), wo.createElement(zu, {
10919
10919
  password: o,
10920
10920
  setPassword: i,
10921
10921
  type: "current"
@@ -11014,7 +11014,7 @@ var du = Gs(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
11014
11014
  }, wo.createElement(Wc, {
11015
11015
  size: "helper",
11016
11016
  color: "secondary"
11017
- }, "Password"), wo.createElement(Fu, {
11017
+ }, "Password"), wo.createElement(zu, {
11018
11018
  password: i,
11019
11019
  setPassword: s,
11020
11020
  type: "current"
@@ -12118,7 +12118,7 @@ var Md = Ys.button(_templateObject29 || (_templateObject29 = _taggedTemplateLite
12118
12118
  }), exports.B2BMFAProducts.smsOtp, {
12119
12119
  label: "Text me a code"
12120
12120
  }),
12121
- Fd = function Fd() {
12121
+ zd = function zd() {
12122
12122
  var _ha = ha(),
12123
12123
  e = _ha.mfaProductInclude,
12124
12124
  t = _ha.mfaProductOrder,
@@ -12167,7 +12167,7 @@ var Md = Ys.button(_templateObject29 || (_templateObject29 = _taggedTemplateLite
12167
12167
  }, t);
12168
12168
  })));
12169
12169
  },
12170
- zd = Ys.a(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n text-decoration-color: ", ";\n }\n"])), function (e) {
12170
+ Fd = Ys.a(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n text-decoration-color: ", ";\n }\n"])), function (e) {
12171
12171
  return e.theme.colors.primary;
12172
12172
  }),
12173
12173
  Nd = function Nd(_ref86) {
@@ -12176,7 +12176,7 @@ var Md = Ys.button(_templateObject29 || (_templateObject29 = _taggedTemplateLite
12176
12176
  n = _ref86.Icon;
12177
12177
  return wo.createElement(Gc, {
12178
12178
  gap: 4
12179
- }, n, wo.createElement(zd, {
12179
+ }, n, wo.createElement(Fd, {
12180
12180
  href: t,
12181
12181
  target: "_blank",
12182
12182
  rel: "noopener noreferrer"
@@ -12531,7 +12531,7 @@ var Md = Ys.button(_templateObject29 || (_templateObject29 = _taggedTemplateLite
12531
12531
  }, wo.createElement(Wc, {
12532
12532
  size: "helper",
12533
12533
  color: "secondary"
12534
- }, "Password"), wo.createElement(Fu, {
12534
+ }, "Password"), wo.createElement(zu, {
12535
12535
  password: u,
12536
12536
  setPassword: function setPassword(e) {
12537
12537
  d(e), B(e);
@@ -12587,7 +12587,7 @@ var Md = Ys.button(_templateObject29 || (_templateObject29 = _taggedTemplateLite
12587
12587
  reset_password_expiration_minutes: null === (l = n.passwordOptions) || void 0 === l ? void 0 : l.resetPasswordExpirationMinutes,
12588
12588
  reset_password_template_id: null === (u = n.passwordOptions) || void 0 === u ? void 0 : u.resetPasswordTemplateId
12589
12589
  }).then(function (e) {
12590
- zc.success("Email resent"), a(!1), t({
12590
+ Fc.success("Email resent"), a(!1), t({
12591
12591
  type: exports.StytchEventType.B2BPasswordResetByEmailStart,
12592
12592
  data: e
12593
12593
  });
@@ -12820,13 +12820,13 @@ var Md = Ys.button(_templateObject29 || (_templateObject29 = _taggedTemplateLite
12820
12820
  _context31.next = 3;
12821
12821
  return navigator.clipboard.writeText(n.join("\n"));
12822
12822
  case 3:
12823
- zc.success("Copied");
12823
+ Fc.success("Copied");
12824
12824
  _context31.next = 9;
12825
12825
  break;
12826
12826
  case 6:
12827
12827
  _context31.prev = 6;
12828
12828
  _context31.t0 = _context31["catch"](0);
12829
- zc.error("Couldn't copy codes to clipboard");
12829
+ Fc.error("Couldn't copy codes to clipboard");
12830
12830
  case 9:
12831
12831
  case "end":
12832
12832
  return _context31.stop();
@@ -13326,7 +13326,7 @@ var cp = function cp() {
13326
13326
  });
13327
13327
  },
13328
13328
  onError: function onError(e) {
13329
- e instanceof _ && zc.error(lp(e)), o({
13329
+ e instanceof _ && Fc.error(lp(e)), o({
13330
13330
  type: "sms_otp/send_error",
13331
13331
  error: e
13332
13332
  });
@@ -13477,13 +13477,13 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13477
13477
  _context36.next = 4;
13478
13478
  return navigator.clipboard.writeText(r);
13479
13479
  case 4:
13480
- zc.success("Code copied");
13480
+ Fc.success("Code copied");
13481
13481
  _context36.next = 10;
13482
13482
  break;
13483
13483
  case 7:
13484
13484
  _context36.prev = 7;
13485
13485
  _context36.t0 = _context36["catch"](1);
13486
- zc.error("Couldn't copy code to clipboard");
13486
+ Fc.error("Couldn't copy code to clipboard");
13487
13487
  case 10:
13488
13488
  case "end":
13489
13489
  return _context36.stop();
@@ -13519,8 +13519,8 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13519
13519
  onClick: i
13520
13520
  }, "Try to scan the QR code again"));
13521
13521
  },
13522
- Fp = Ys.img(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["\n margin: 0 auto;\n"]))),
13523
- zp = function zp() {
13522
+ zp = Ys.img(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["\n margin: 0 auto;\n"]))),
13523
+ Fp = function Fp() {
13524
13524
  var e = da(),
13525
13525
  _pa51 = pa(),
13526
13526
  _pa52 = _slicedToArray(_pa51, 2),
@@ -13553,7 +13553,7 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13553
13553
  });
13554
13554
  },
13555
13555
  onError: function onError(e) {
13556
- e instanceof _ && zc.error(lp(e)), n({
13556
+ e instanceof _ && Fc.error(lp(e)), n({
13557
13557
  type: "totp/create_error",
13558
13558
  error: e
13559
13559
  });
@@ -13572,7 +13572,7 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13572
13572
  gap: 24
13573
13573
  }, wo.createElement(Wc, {
13574
13574
  size: "header"
13575
- }, "Scan the QR code to link your authenticator app"), wo.createElement(Wc, null, "Your organization requires an additional form of verification to make your account more secure. If you don’t have an authenticator app, you’ll need to install one first."), o ? wo.createElement(wo.Fragment, null, wo.createElement(Fp, {
13575
+ }, "Scan the QR code to link your authenticator app"), wo.createElement(Wc, null, "Your organization requires an additional form of verification to make your account more secure. If you don’t have an authenticator app, you’ll need to install one first."), o ? wo.createElement(wo.Fragment, null, wo.createElement(zp, {
13576
13576
  alt: "QR code for TOTP enrollment",
13577
13577
  src: o.qrCode
13578
13578
  }), wo.createElement(uu, {
@@ -13710,6 +13710,17 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13710
13710
  }),
13711
13711
  $p = Ys.img(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["\n width: 150px;\n"]))),
13712
13712
  Hp = function Hp() {
13713
+ var e = new URL(window.location.href);
13714
+ return {
13715
+ tokenType: e.searchParams.get("stytch_token_type"),
13716
+ token: e.searchParams.get("token")
13717
+ };
13718
+ },
13719
+ Kp = new Set(["discovery", "discovery_oauth", "oauth", "sso", "multi_tenant_magic_links"]),
13720
+ Vp = function Vp(e) {
13721
+ return !(!e || !Kp.has(e));
13722
+ },
13723
+ qp = function qp() {
13713
13724
  var _a5;
13714
13725
  var _pa55 = pa(),
13715
13726
  _pa56 = _slicedToArray(_pa55, 2),
@@ -13725,7 +13736,7 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13725
13736
  errorMessage: "The organization you are looking for could not be found. If you think this is a mistake, contact your admin."
13726
13737
  })), ia.Error, wo.createElement(Zc, {
13727
13738
  errorMessage: "Something went wrong. Try again later or contact your admin for help."
13728
- })), ia.PasswordEmailForm, wo.createElement(Hu, null)), ia.PasswordAuthenticate, wo.createElement($u, null)), ia.PasswordResetForm, wo.createElement(Yd, null)), ia.PasswordResetVerifyConfirmation, wo.createElement(Qd, null)), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_a5, ia.PasswordForgotForm, wo.createElement(Zd, null)), ia.PasswordSetNewConfirmation, wo.createElement(Jd, null)), ia.MFAEnrollmentSelection, wo.createElement(Fd, null)), ia.SMSOTPEnrollment, wo.createElement(cp, null)), ia.SMSOTPEntry, wo.createElement(Bp, null)), ia.RecoveryCodeEntry, wo.createElement(Xd, null)), ia.RecoveryCodeSave, wo.createElement(np, null)), ia.TOTPEnrollmentQRCode, wo.createElement(zp, null)), ia.TOTPEnrollmentManual, wo.createElement(jp, null)), ia.TOTPEntry, wo.createElement(Up, null))),
13739
+ })), ia.PasswordEmailForm, wo.createElement(Hu, null)), ia.PasswordAuthenticate, wo.createElement($u, null)), ia.PasswordResetForm, wo.createElement(Yd, null)), ia.PasswordResetVerifyConfirmation, wo.createElement(Qd, null)), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_a5, ia.PasswordForgotForm, wo.createElement(Zd, null)), ia.PasswordSetNewConfirmation, wo.createElement(Jd, null)), ia.MFAEnrollmentSelection, wo.createElement(zd, null)), ia.SMSOTPEnrollment, wo.createElement(cp, null)), ia.SMSOTPEntry, wo.createElement(Bp, null)), ia.RecoveryCodeEntry, wo.createElement(Xd, null)), ia.RecoveryCodeSave, wo.createElement(np, null)), ia.TOTPEnrollmentQRCode, wo.createElement(Fp, null)), ia.TOTPEnrollmentManual, wo.createElement(jp, null)), ia.TOTPEntry, wo.createElement(Up, null))),
13729
13740
  c = function c(e) {
13730
13741
  Gd(), au(e, t, r);
13731
13742
  },
@@ -13804,17 +13815,18 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13804
13815
  }),
13805
13816
  v = _iu16.trigger,
13806
13817
  y = _iu16.isMutating,
13818
+ b = p || A || y || g || m,
13807
13819
  _ref124 = function () {
13808
13820
  var _pa57 = pa(),
13809
13821
  _pa58 = _slicedToArray(_pa57, 2),
13810
13822
  e = _pa58[0],
13811
13823
  t = _pa58[1],
13812
- _nr57 = nr(null),
13824
+ _nr57 = nr(),
13813
13825
  _nr58 = _slicedToArray(_nr57, 2),
13814
13826
  n = _nr58[0],
13815
13827
  r = _nr58[1],
13816
13828
  o = da(),
13817
- i = lu(n),
13829
+ i = lu(n || null),
13818
13830
  _iu17 = iu("stytchClient.organization.getBySlug", function (e, _ref130) {
13819
13831
  var t = _ref130.arg.slug;
13820
13832
  return o.organization.getBySlug({
@@ -13844,27 +13856,64 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13844
13856
  slug: i
13845
13857
  });
13846
13858
  }, [i, e.flowState, e.screen]), {
13847
- isSearching: a
13859
+ isSearching: a,
13860
+ slug: i,
13861
+ pattern: n
13848
13862
  };
13849
13863
  }(),
13850
- b = _ref124.isSearching;
13864
+ w = _ref124.isSearching,
13865
+ k = _ref124.slug,
13866
+ E = _ref124.pattern;
13867
+ or(function () {
13868
+ if (i) return;
13869
+ if (e.flowState.type == exports.AuthFlowType.PasswordReset) return;
13870
+ var _Hp = Hp(),
13871
+ t = _Hp.tokenType,
13872
+ n = _Hp.token;
13873
+ if (n && Vp(t) && !b) switch (t) {
13874
+ case "discovery":
13875
+ v({
13876
+ token: n
13877
+ });
13878
+ break;
13879
+ case "discovery_oauth":
13880
+ f({
13881
+ token: n
13882
+ });
13883
+ break;
13884
+ case "oauth":
13885
+ h({
13886
+ token: n
13887
+ });
13888
+ break;
13889
+ case "sso":
13890
+ _({
13891
+ token: n
13892
+ });
13893
+ break;
13894
+ case "multi_tenant_magic_links":
13895
+ d({
13896
+ token: n
13897
+ });
13898
+ break;
13899
+ default:
13900
+ return function () {
13901
+ throw new Error("Assertion failure");
13902
+ }();
13903
+ }
13904
+ }, []);
13905
+ var S = ma();
13851
13906
  return or(function () {
13852
13907
  if (i) return;
13853
- var t = new URL(window.location.href),
13854
- n = t.searchParams.get("stytch_token_type"),
13855
- r = t.searchParams.get("token");
13856
- e.flowState.type != exports.AuthFlowType.PasswordReset && r && n && ("discovery" === n ? v({
13857
- token: r
13858
- }) : "discovery_oauth" === n ? f({
13859
- token: r
13860
- }) : "oauth" === n ? h({
13861
- token: r
13862
- }) : "sso" === n ? _({
13863
- token: r
13864
- }) : "multi_tenant_magic_links" === n && d({
13865
- token: r
13866
- }));
13867
- }, []), i ? wo.createElement(td, null) : p || A || y || g || m ? wo.createElement(Qp, null, wo.createElement(vd, null)) : b ? wo.createElement(Qp, null, wo.createElement(yd, null)) : wo.createElement(Qp, null, a[s], wo.createElement(Kc, null), o && wo.createElement(Gc, {
13908
+ if (b) return;
13909
+ var _Hp2 = Hp(),
13910
+ n = _Hp2.tokenType,
13911
+ r = _Hp2.token;
13912
+ r && Vp(n) || k || void 0 === E || w || null !== e.flowState.organization || e.screen !== ia.Main || e.flowState.type != exports.AuthFlowType.Organization || t({
13913
+ type: "transition",
13914
+ screen: ia.ErrorOrganization
13915
+ });
13916
+ }, [t, i, w, b, E, k, e.flowState.organization, e.flowState.type, e.screen, S]), i ? wo.createElement(td, null) : b ? wo.createElement(Qp, null, wo.createElement(vd, null)) : w ? wo.createElement(Qp, null, wo.createElement(yd, null)) : wo.createElement(Qp, null, a[s], wo.createElement(Kc, null), o && wo.createElement(Gc, {
13868
13917
  justifyContent: "center",
13869
13918
  marginTop: 24
13870
13919
  }, wo.createElement("a", {
@@ -13876,8 +13925,8 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13876
13925
  src: "https://public-assets.stytch.com/et_powered_by_stytch_logo.png"
13877
13926
  }))));
13878
13927
  },
13879
- Kp = "stytch-b2b-ui",
13880
- Vp = (qp = function qp(_ref133) {
13928
+ Gp = "stytch-b2b-ui",
13929
+ Wp = (Yp = function Yp(_ref133) {
13881
13930
  var e = _ref133.client,
13882
13931
  t = _ref133.styles,
13883
13932
  n = _ref133.callbacks,
@@ -13918,8 +13967,8 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13918
13967
  initialState: s
13919
13968
  }, wo.createElement(Hs, {
13920
13969
  theme: a
13921
- }, wo.createElement(Hp, null)));
13922
- }, Gp = Kp, "undefined" == typeof window ? function () {
13970
+ }, wo.createElement(qp, null)));
13971
+ }, Jp = Gp, "undefined" == typeof window ? function () {
13923
13972
  return null;
13924
13973
  } : function (e) {
13925
13974
  if (e.config.enableShadowDOM) {
@@ -13969,7 +14018,7 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
13969
14018
  return r;
13970
14019
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
13971
14020
  return customElements.define(t, r), r;
13972
- }(qp, Gp);
14021
+ }(Yp, Jp);
13973
14022
  return new _t11(e);
13974
14023
  }
13975
14024
  {
@@ -14007,12 +14056,12 @@ var Mp = Ys.button(_templateObject45 || (_templateObject45 = _taggedTemplateLite
14007
14056
  return r;
14008
14057
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
14009
14058
  return customElements.define(t, r), r;
14010
- }(qp, Gp);
14059
+ }(Yp, Jp);
14011
14060
  return new _t12(e);
14012
14061
  }
14013
14062
  });
14014
- var qp, Gp;
14015
- exports.BiometricsFailedError = $, exports.BiometricsUnavailableError = S, exports.ChallengeSigningFailedError = F, exports.DeviceCredentialsNotAllowedError = B, exports.FailedCodeChallengeError = N, exports.FailedToDecryptDataError = Q, exports.InternalError = k, exports.InvalidAuthorizationCredentialError = D, exports.InvalidCredentialTypeError = q, exports.InvalidRedirectSchemeError = K, exports.InvalidStartUrlError = H, exports.JSONDataNotConvertibleToStringError = W, exports.KeyInvalidatedError = C, exports.KeystoreUnavailableError = x, exports.MissingAttestationObjectError = G, exports.MissingAuthorizationCredentialIDTokenError = R, exports.MissingGoogleClientIDError = I, exports.MissingPKCEError = M, exports.MissingPublicKeyError = j, exports.MissingUrlError = V, exports.NoBiometricsEnrolledError = O, exports.NoBiometricsRegistrationError = E, exports.NoCredentialsPresentError = L, exports.NoCurrentSessionError = w, exports.PasskeysInvalidEncoding = J, exports.PasskeysMisconfigured = Z, exports.PasskeysUnsupportedError = U, exports.RandomNumberGenerationFailed = Y, exports.SDKAPIUnreachableError = p, exports.SDKNotConfiguredError = z, exports.SignInWithAppleMisconfigured = X, exports.StytchAPIError = y, exports.StytchAPISchemaError = v, exports.StytchAPIUnreachableError = A, exports.StytchB2BUIClient = /*#__PURE__*/function (_tn) {
14063
+ var Yp, Jp;
14064
+ exports.BiometricsFailedError = $, exports.BiometricsUnavailableError = S, exports.ChallengeSigningFailedError = z, exports.DeviceCredentialsNotAllowedError = B, exports.FailedCodeChallengeError = N, exports.FailedToDecryptDataError = Q, exports.InternalError = k, exports.InvalidAuthorizationCredentialError = D, exports.InvalidCredentialTypeError = q, exports.InvalidRedirectSchemeError = K, exports.InvalidStartUrlError = H, exports.JSONDataNotConvertibleToStringError = W, exports.KeyInvalidatedError = C, exports.KeystoreUnavailableError = x, exports.MissingAttestationObjectError = G, exports.MissingAuthorizationCredentialIDTokenError = R, exports.MissingGoogleClientIDError = I, exports.MissingPKCEError = M, exports.MissingPublicKeyError = j, exports.MissingUrlError = V, exports.NoBiometricsEnrolledError = O, exports.NoBiometricsRegistrationError = E, exports.NoCredentialsPresentError = L, exports.NoCurrentSessionError = w, exports.PasskeysInvalidEncoding = J, exports.PasskeysMisconfigured = Z, exports.PasskeysUnsupportedError = U, exports.RandomNumberGenerationFailed = Y, exports.SDKAPIUnreachableError = p, exports.SDKNotConfiguredError = F, exports.SignInWithAppleMisconfigured = X, exports.StytchAPIError = y, exports.StytchAPISchemaError = v, exports.StytchAPIUnreachableError = A, exports.StytchB2BUIClient = /*#__PURE__*/function (_tn) {
14016
14065
  _inherits(_class, _tn);
14017
14066
  function _class() {
14018
14067
  var _this15;
@@ -14038,7 +14087,7 @@ exports.BiometricsFailedError = $, exports.BiometricsUnavailableError = S, expor
14038
14087
  if (!i) {
14039
14088
  throw new Error("The selector you specified (".concat(e, ") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountLogin()."));
14040
14089
  }
14041
- if ((null === (o = i.firstChild) || void 0 === o ? void 0 : o.nodeName.toLowerCase()) === Kp.toLowerCase()) {
14090
+ if ((null === (o = i.firstChild) || void 0 === o ? void 0 : o.nodeName.toLowerCase()) === Gp.toLowerCase()) {
14042
14091
  return void i.firstChild.render({
14043
14092
  client: this,
14044
14093
  config: r,
@@ -14046,7 +14095,7 @@ exports.BiometricsFailedError = $, exports.BiometricsUnavailableError = S, expor
14046
14095
  styles: t
14047
14096
  });
14048
14097
  }
14049
- var s = Vp({
14098
+ var s = Wp({
14050
14099
  client: this,
14051
14100
  config: r,
14052
14101
  callbacks: n,
@@ -14092,11 +14141,11 @@ exports.BiometricsFailedError = $, exports.BiometricsUnavailableError = S, expor
14092
14141
  case "missing_public_key":
14093
14142
  return new j();
14094
14143
  case "challenge_signing_failed":
14095
- return new F();
14144
+ return new z();
14096
14145
  case "no_credentials_present":
14097
14146
  return new L();
14098
14147
  case "sdk_not_configured":
14099
- return new z();
14148
+ return new F();
14100
14149
  case "failed_code_challenge":
14101
14150
  return new N();
14102
14151
  case "passkeys_unsupported":