@slashid/remix 0.2.3 → 0.2.5
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/main.js +208 -189
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { json as Tu } from "@remix-run/server-runtime";
|
|
2
2
|
import * as fe from "react";
|
|
3
|
-
import he, { createContext as
|
|
3
|
+
import he, { createContext as $r, forwardRef as Oe, useMemo as tt, Children as Jt, isValidElement as yo, createElement as Q, cloneElement as Ka, useEffect as ve, useRef as Pe, useCallback as pe, useState as ie, Fragment as Ga, useContext as Io, useLayoutEffect as Cn, useReducer as Lu } from "react";
|
|
4
4
|
import * as Ou from "react-dom";
|
|
5
5
|
import { createPortal as Ja, flushSync as $l } from "react-dom";
|
|
6
6
|
import { useLoaderData as Nu, useRevalidator as El } from "@remix-run/react";
|
|
@@ -3985,7 +3985,7 @@ class Bp extends mr {
|
|
|
3985
3985
|
return await (await this.putAttributesBucketNameRaw(t, r)).value();
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
class
|
|
3988
|
+
class Er extends mr {
|
|
3989
3989
|
/**
|
|
3990
3990
|
*/
|
|
3991
3991
|
async getChallengeChallengeIdRaw(t, r) {
|
|
@@ -4606,7 +4606,7 @@ function n1(e, t, r) {
|
|
|
4606
4606
|
return r1(n);
|
|
4607
4607
|
}
|
|
4608
4608
|
var en = n1;
|
|
4609
|
-
function
|
|
4609
|
+
function Lr(e) {
|
|
4610
4610
|
const t = e.replace(/_/g, "/").replace(/-/g, "+"), r = atob(t);
|
|
4611
4611
|
return Uint8Array.from(r, (n) => n.charCodeAt(0));
|
|
4612
4612
|
}
|
|
@@ -4999,7 +4999,7 @@ class q1 {
|
|
|
4999
4999
|
}
|
|
5000
5000
|
var He = {};
|
|
5001
5001
|
Ze(He, "InvalidAuthenticationMethodError", function() {
|
|
5002
|
-
return
|
|
5002
|
+
return Tr;
|
|
5003
5003
|
});
|
|
5004
5004
|
Ze(He, "isResponseError", function() {
|
|
5005
5005
|
return cr;
|
|
@@ -5070,7 +5070,7 @@ Ze(He, "createEventFromError", function() {
|
|
|
5070
5070
|
Ze(He, "ERROR_NAMES", function() {
|
|
5071
5071
|
return ac;
|
|
5072
5072
|
});
|
|
5073
|
-
class
|
|
5073
|
+
class Tr extends Error {
|
|
5074
5074
|
constructor(t, r) {
|
|
5075
5075
|
super(`Authentication method '${t}': ${r}`);
|
|
5076
5076
|
}
|
|
@@ -5243,7 +5243,7 @@ async function oc(e, { authenticationFactor: t, handle: r, previousToken: n, cha
|
|
|
5243
5243
|
const ac = {
|
|
5244
5244
|
noPasswordSet: "noPasswordSet"
|
|
5245
5245
|
};
|
|
5246
|
-
function
|
|
5246
|
+
function Nr(e) {
|
|
5247
5247
|
return new Promise((t) => setTimeout(t, e));
|
|
5248
5248
|
}
|
|
5249
5249
|
const ic = "SlashID-SdkRetryCount";
|
|
@@ -5258,7 +5258,7 @@ function dr({ baseDelayMs: e, maxRetries: t }) {
|
|
|
5258
5258
|
onError: async ({ error: r, response: n, url: o, init: a, fetch: i }) => {
|
|
5259
5259
|
if (tc(r, n)) {
|
|
5260
5260
|
const s = E1(a);
|
|
5261
|
-
return s >= t ? n : (await
|
|
5261
|
+
return s >= t ? n : (await Nr(Math.pow(2, s) * e), await i(o, {
|
|
5262
5262
|
...a,
|
|
5263
5263
|
headers: {
|
|
5264
5264
|
...a.headers,
|
|
@@ -5391,7 +5391,7 @@ class jr {
|
|
|
5391
5391
|
},
|
|
5392
5392
|
accessToken: this._token
|
|
5393
5393
|
});
|
|
5394
|
-
this._apiClient = new
|
|
5394
|
+
this._apiClient = new Er(r), this._attrsClient = new Bp(r), this._tokenClient = new Kp(r), this._personConsentsApi = new Wp(r);
|
|
5395
5395
|
}
|
|
5396
5396
|
/**
|
|
5397
5397
|
* This user's ID. Use this property in your backend services when interacting with the [SlashID User Management API](https://developer.slashid.dev/docs/category/api/persons).
|
|
@@ -5682,7 +5682,7 @@ class jr {
|
|
|
5682
5682
|
async function ns() {
|
|
5683
5683
|
const e = document.hasFocus();
|
|
5684
5684
|
for (; !e && !document.hasFocus(); )
|
|
5685
|
-
await
|
|
5685
|
+
await Nr(50);
|
|
5686
5686
|
return e;
|
|
5687
5687
|
}
|
|
5688
5688
|
const os = {
|
|
@@ -5760,7 +5760,7 @@ async function Ea(e) {
|
|
|
5760
5760
|
l.id === o.id && (window.removeEventListener("message", i), l.error ? n(l.error) : (a = !0, r(e)));
|
|
5761
5761
|
};
|
|
5762
5762
|
for (window.addEventListener("message", i); !a; )
|
|
5763
|
-
e.postMessage(o, "*"), await
|
|
5763
|
+
e.postMessage(o, "*"), await Nr(50);
|
|
5764
5764
|
});
|
|
5765
5765
|
}
|
|
5766
5766
|
class O1 {
|
|
@@ -6351,7 +6351,7 @@ class xn {
|
|
|
6351
6351
|
});
|
|
6352
6352
|
}
|
|
6353
6353
|
updateClient(t) {
|
|
6354
|
-
this.authnClient = new
|
|
6354
|
+
this.authnClient = new Er(new Ot({
|
|
6355
6355
|
...Nt,
|
|
6356
6356
|
basePath: this.slashID.baseURL,
|
|
6357
6357
|
middleware: [
|
|
@@ -6483,7 +6483,7 @@ class xn {
|
|
|
6483
6483
|
name: "FlowCancelledError",
|
|
6484
6484
|
message: "The flow has been cancelled!"
|
|
6485
6485
|
});
|
|
6486
|
-
await
|
|
6486
|
+
await Nr(1e3);
|
|
6487
6487
|
const n = await this.authnClient.getChallengeChallengeIdV2({
|
|
6488
6488
|
challengeId: t.options.challenge_id,
|
|
6489
6489
|
slashIDSdkVersion: lt.raw
|
|
@@ -6587,7 +6587,7 @@ class xn {
|
|
|
6587
6587
|
const r = await ns(), n = t.options;
|
|
6588
6588
|
if (this.slashID.isLocalScope(n.rpId)) {
|
|
6589
6589
|
const o = {
|
|
6590
|
-
challenge:
|
|
6590
|
+
challenge: Lr(n.challenge),
|
|
6591
6591
|
extensions: n.extensions,
|
|
6592
6592
|
rpId: n.rpId,
|
|
6593
6593
|
timeout: n.timeout,
|
|
@@ -6598,7 +6598,7 @@ class xn {
|
|
|
6598
6598
|
for (let y = 0; y < a.length; y++) {
|
|
6599
6599
|
const m = a[y];
|
|
6600
6600
|
o.allowCredentials[y] = {
|
|
6601
|
-
id:
|
|
6601
|
+
id: Lr(m.id),
|
|
6602
6602
|
type: m.type,
|
|
6603
6603
|
transports: m.transports
|
|
6604
6604
|
};
|
|
@@ -6634,7 +6634,7 @@ class xn {
|
|
|
6634
6634
|
if (await ko.canGetPublicKeyCredentialsInIFrame()) {
|
|
6635
6635
|
if (a = this.slashID.iframe.contentWindow, !a)
|
|
6636
6636
|
throw new Error("cannot get global id iframe");
|
|
6637
|
-
} else if (r || await
|
|
6637
|
+
} else if (r || await Nr(200), a = window.open(o.toString()), !a)
|
|
6638
6638
|
throw new Error("cannot open global id window");
|
|
6639
6639
|
return new Promise((s, l) => {
|
|
6640
6640
|
const f = new i1({
|
|
@@ -6654,10 +6654,10 @@ class xn {
|
|
|
6654
6654
|
const r = await ns(), n = t.options;
|
|
6655
6655
|
if (this.slashID.isLocalScope(n.rp.id)) {
|
|
6656
6656
|
const o = {
|
|
6657
|
-
challenge:
|
|
6657
|
+
challenge: Lr(n.challenge),
|
|
6658
6658
|
rp: n.rp,
|
|
6659
6659
|
user: {
|
|
6660
|
-
id:
|
|
6660
|
+
id: Lr(n.user.id),
|
|
6661
6661
|
name: n.user.name,
|
|
6662
6662
|
displayName: n.user.displayName
|
|
6663
6663
|
},
|
|
@@ -6672,7 +6672,7 @@ class xn {
|
|
|
6672
6672
|
for (let y = 0; y < a.length; y++) {
|
|
6673
6673
|
const m = a[y];
|
|
6674
6674
|
o.excludeCredentials[y] = {
|
|
6675
|
-
id:
|
|
6675
|
+
id: Lr(m.id),
|
|
6676
6676
|
type: m.type,
|
|
6677
6677
|
transports: m.transports
|
|
6678
6678
|
};
|
|
@@ -6701,7 +6701,7 @@ class xn {
|
|
|
6701
6701
|
credentialId: l
|
|
6702
6702
|
}), u;
|
|
6703
6703
|
} else
|
|
6704
|
-
return r || await
|
|
6704
|
+
return r || await Nr(200), new Promise((a, i) => {
|
|
6705
6705
|
const s = this.slashID.getSDKUrl(), l = window.open(s.toString());
|
|
6706
6706
|
if (!l) {
|
|
6707
6707
|
i(new Error("cannot open global id window"));
|
|
@@ -6848,7 +6848,7 @@ class xn {
|
|
|
6848
6848
|
...this.flowMeta
|
|
6849
6849
|
}
|
|
6850
6850
|
});
|
|
6851
|
-
}, this.slashID = t, this.authnClient = new
|
|
6851
|
+
}, this.slashID = t, this.authnClient = new Er(new Ot({
|
|
6852
6852
|
...Nt,
|
|
6853
6853
|
basePath: this.slashID.baseURL,
|
|
6854
6854
|
middleware: [
|
|
@@ -6877,30 +6877,30 @@ class cs {
|
|
|
6877
6877
|
case bt.Webauthn.toString():
|
|
6878
6878
|
{
|
|
6879
6879
|
if (!(navigator && window.PublicKeyCredential))
|
|
6880
|
-
throw new
|
|
6880
|
+
throw new Tr(bt.Webauthn, "The WebAuthn API is not available in the current environment");
|
|
6881
6881
|
let y = n.options;
|
|
6882
6882
|
y || (y = {}), y.scope || (y.scope = window.location.hostname);
|
|
6883
6883
|
const m = await this.slashID.credentialStorage.get(y.scope);
|
|
6884
6884
|
if (m && (y.available_credential_ids = m), y.attachment || (y.attachment = Wi.Any), y.user_verification || (y.user_verification = Hh.Preferred), y.resident_key || (y.resident_key = Bh.Preferred), y.attestation || (y.attestation = Vh.None), y.attachment === Wi.Platform && !await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable())
|
|
6885
|
-
throw new
|
|
6885
|
+
throw new Tr(bt.Webauthn, `This device has no authenticator available with attachment '${y.attachment}'`);
|
|
6886
6886
|
n.options = y;
|
|
6887
6887
|
}
|
|
6888
6888
|
break;
|
|
6889
6889
|
case bt.EmailLink.toString():
|
|
6890
6890
|
case bt.OtpViaEmail.toString():
|
|
6891
6891
|
if (r && r.type !== wr.EmailAddress)
|
|
6892
|
-
throw new
|
|
6892
|
+
throw new Tr(n.method, `A handle of type '${wr.EmailAddress}' is required, got '${r.type}' instead`);
|
|
6893
6893
|
break;
|
|
6894
6894
|
case bt.SmsLink.toString():
|
|
6895
6895
|
case bt.OtpViaSms.toString():
|
|
6896
6896
|
if (r && r.type !== wr.PhoneNumber)
|
|
6897
|
-
throw new
|
|
6897
|
+
throw new Tr(n.method, `A handle of type '${wr.PhoneNumber}' is required, got '${r.type}' instead`);
|
|
6898
6898
|
n.options = new jl(n.options);
|
|
6899
6899
|
break;
|
|
6900
6900
|
case bt.Oidc.toString():
|
|
6901
6901
|
{
|
|
6902
6902
|
if (r)
|
|
6903
|
-
throw new
|
|
6903
|
+
throw new Tr(n.method, "OIDC should not be used with handles");
|
|
6904
6904
|
n = await Bl(n);
|
|
6905
6905
|
const y = (m) => {
|
|
6906
6906
|
var g, h;
|
|
@@ -6915,7 +6915,7 @@ class cs {
|
|
|
6915
6915
|
case bt.Saml.toString():
|
|
6916
6916
|
{
|
|
6917
6917
|
if (r)
|
|
6918
|
-
throw new
|
|
6918
|
+
throw new Tr(n.method, "SAML should not be used with handles");
|
|
6919
6919
|
n = await v1(n);
|
|
6920
6920
|
const y = (m) => {
|
|
6921
6921
|
var g, h;
|
|
@@ -6945,7 +6945,7 @@ class cs {
|
|
|
6945
6945
|
access: "public"
|
|
6946
6946
|
}
|
|
6947
6947
|
});
|
|
6948
|
-
const s = await new
|
|
6948
|
+
const s = await new Er(new Ot({
|
|
6949
6949
|
...Nt,
|
|
6950
6950
|
basePath: this.slashID.baseURL,
|
|
6951
6951
|
middleware: [
|
|
@@ -7004,7 +7004,7 @@ class cs {
|
|
|
7004
7004
|
* After this method resolves, the user will be able to authenticate using the same handle and factor.
|
|
7005
7005
|
*/
|
|
7006
7006
|
async recover({ handle: t, factor: r }) {
|
|
7007
|
-
const n = new
|
|
7007
|
+
const n = new Er(new Ot({
|
|
7008
7008
|
...Nt,
|
|
7009
7009
|
basePath: this.slashID.baseURL,
|
|
7010
7010
|
middleware: [
|
|
@@ -7217,7 +7217,7 @@ class ko {
|
|
|
7217
7217
|
throw i;
|
|
7218
7218
|
n = i.result;
|
|
7219
7219
|
} else if (a) {
|
|
7220
|
-
const i =
|
|
7220
|
+
const i = Lr(a), s = new TextDecoder("utf-8").decode(i);
|
|
7221
7221
|
n = JSON.parse(s);
|
|
7222
7222
|
}
|
|
7223
7223
|
return n;
|
|
@@ -7777,7 +7777,7 @@ class ko {
|
|
|
7777
7777
|
constructor(t) {
|
|
7778
7778
|
t && Qa(t), this.config = Ur(t ?? {});
|
|
7779
7779
|
const { baseURL: r, sdkURL: n, oid: o, analyticsEnabled: a = !0 } = this.config;
|
|
7780
|
-
this.baseURL = r, this.sdkURL = n, this.oid = o, this.authFlow = null, this.recoveryFlow = null, this.authnClient = new
|
|
7780
|
+
this.baseURL = r, this.sdkURL = n, this.oid = o, this.authFlow = null, this.recoveryFlow = null, this.authnClient = new Er(new Ot({
|
|
7781
7781
|
...Nt,
|
|
7782
7782
|
basePath: this.baseURL,
|
|
7783
7783
|
middleware: [
|
|
@@ -7920,7 +7920,7 @@ function tm(e) {
|
|
|
7920
7920
|
}
|
|
7921
7921
|
class rm {
|
|
7922
7922
|
updateClient(t) {
|
|
7923
|
-
this.authnClient = new
|
|
7923
|
+
this.authnClient = new Er(new Ot({
|
|
7924
7924
|
...Nt,
|
|
7925
7925
|
basePath: this.config.baseURL,
|
|
7926
7926
|
middleware: [
|
|
@@ -7963,7 +7963,7 @@ class rm {
|
|
|
7963
7963
|
throw i;
|
|
7964
7964
|
n = i.result;
|
|
7965
7965
|
} else if (a) {
|
|
7966
|
-
const i =
|
|
7966
|
+
const i = Lr(a), s = new TextDecoder("utf-8").decode(i);
|
|
7967
7967
|
n = JSON.parse(s);
|
|
7968
7968
|
}
|
|
7969
7969
|
return !n || n.length === 0 ? null : n.filter((i) => em(i) || tm(i));
|
|
@@ -8031,7 +8031,7 @@ class rm {
|
|
|
8031
8031
|
challenge: t
|
|
8032
8032
|
}
|
|
8033
8033
|
});
|
|
8034
|
-
await
|
|
8034
|
+
await Nr(1e3);
|
|
8035
8035
|
const a = await this.authnClient.getChallengeChallengeIdV2({
|
|
8036
8036
|
challengeId: t.options.challenge_id,
|
|
8037
8037
|
slashIDSdkVersion: lt.raw
|
|
@@ -8065,7 +8065,7 @@ class rm {
|
|
|
8065
8065
|
origin: t
|
|
8066
8066
|
}
|
|
8067
8067
|
});
|
|
8068
|
-
this.requestOrigin = new URL(t), this.authnClient = new
|
|
8068
|
+
this.requestOrigin = new URL(t), this.authnClient = new Er(new Ot({
|
|
8069
8069
|
...Nt,
|
|
8070
8070
|
basePath: this.config.baseURL,
|
|
8071
8071
|
middleware: [
|
|
@@ -8087,7 +8087,7 @@ const oi = {
|
|
|
8087
8087
|
({
|
|
8088
8088
|
...He
|
|
8089
8089
|
});
|
|
8090
|
-
const
|
|
8090
|
+
const Sr = {
|
|
8091
8091
|
...He
|
|
8092
8092
|
}, nm = {
|
|
8093
8093
|
runtimeSupportsBestPasskeyUX: Q1,
|
|
@@ -8354,18 +8354,18 @@ function lm() {
|
|
|
8354
8354
|
if (Ue && O && typeof Ue.stack == "string") {
|
|
8355
8355
|
for (var V = Ue.stack.split(`
|
|
8356
8356
|
`), De = O.stack.split(`
|
|
8357
|
-
`), we = V.length - 1,
|
|
8358
|
-
|
|
8359
|
-
for (; we >= 1 &&
|
|
8360
|
-
if (V[we] !== De[
|
|
8361
|
-
if (we !== 1 ||
|
|
8357
|
+
`), we = V.length - 1, ye = De.length - 1; we >= 1 && ye >= 0 && V[we] !== De[ye]; )
|
|
8358
|
+
ye--;
|
|
8359
|
+
for (; we >= 1 && ye >= 0; we--, ye--)
|
|
8360
|
+
if (V[we] !== De[ye]) {
|
|
8361
|
+
if (we !== 1 || ye !== 1)
|
|
8362
8362
|
do
|
|
8363
|
-
if (we--,
|
|
8363
|
+
if (we--, ye--, ye < 0 || V[we] !== De[ye]) {
|
|
8364
8364
|
var Me = `
|
|
8365
8365
|
` + V[we].replace(" at new ", " at ");
|
|
8366
8366
|
return c.displayName && Me.includes("<anonymous>") && (Me = Me.replace("<anonymous>", c.displayName)), typeof c == "function" && se.set(c, Me), Me;
|
|
8367
8367
|
}
|
|
8368
|
-
while (we >= 1 &&
|
|
8368
|
+
while (we >= 1 && ye >= 0);
|
|
8369
8369
|
break;
|
|
8370
8370
|
}
|
|
8371
8371
|
}
|
|
@@ -8513,7 +8513,7 @@ function lm() {
|
|
|
8513
8513
|
});
|
|
8514
8514
|
}
|
|
8515
8515
|
}
|
|
8516
|
-
var
|
|
8516
|
+
var Pr = function(c, x, R, O, X, te, j) {
|
|
8517
8517
|
var V = {
|
|
8518
8518
|
// This tag allows us to uniquely identify this as a React Element
|
|
8519
8519
|
$$typeof: t,
|
|
@@ -8554,19 +8554,19 @@ function lm() {
|
|
|
8554
8554
|
j[te] === void 0 && (j[te] = we[te]);
|
|
8555
8555
|
}
|
|
8556
8556
|
if (V || De) {
|
|
8557
|
-
var
|
|
8558
|
-
V && Ft(j,
|
|
8557
|
+
var ye = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
8558
|
+
V && Ft(j, ye), De && Hr(j, ye);
|
|
8559
8559
|
}
|
|
8560
|
-
return
|
|
8560
|
+
return Pr(c, V, De, X, O, oe.current, j);
|
|
8561
8561
|
}
|
|
8562
8562
|
}
|
|
8563
|
-
var Ht = b.ReactCurrentOwner,
|
|
8563
|
+
var Ht = b.ReactCurrentOwner, Ar = b.ReactDebugCurrentFrame;
|
|
8564
8564
|
function yt(c) {
|
|
8565
8565
|
if (c) {
|
|
8566
8566
|
var x = c._owner, R = We(c.type, c._source, x ? x.type : null);
|
|
8567
|
-
|
|
8567
|
+
Ar.setExtraStackFrame(R);
|
|
8568
8568
|
} else
|
|
8569
|
-
|
|
8569
|
+
Ar.setExtraStackFrame(null);
|
|
8570
8570
|
}
|
|
8571
8571
|
var rr;
|
|
8572
8572
|
rr = !1;
|
|
@@ -8681,9 +8681,9 @@ Check the top-level render call using <` + R + ">.");
|
|
|
8681
8681
|
var we;
|
|
8682
8682
|
c === null ? we = "null" : Ge(c) ? we = "array" : c !== void 0 && c.$$typeof === t ? (we = "<" + (B(c.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : we = typeof c, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", we, V);
|
|
8683
8683
|
}
|
|
8684
|
-
var
|
|
8685
|
-
if (
|
|
8686
|
-
return
|
|
8684
|
+
var ye = gn(c, x, R, X, te);
|
|
8685
|
+
if (ye == null)
|
|
8686
|
+
return ye;
|
|
8687
8687
|
if (j) {
|
|
8688
8688
|
var Me = x.children;
|
|
8689
8689
|
if (Me !== void 0)
|
|
@@ -8697,7 +8697,7 @@ Check the top-level render call using <` + R + ">.");
|
|
|
8697
8697
|
else
|
|
8698
8698
|
de(Me, c);
|
|
8699
8699
|
}
|
|
8700
|
-
return c === n ? ae(
|
|
8700
|
+
return c === n ? ae(ye) : ue(ye), ye;
|
|
8701
8701
|
}
|
|
8702
8702
|
}
|
|
8703
8703
|
function rt(c, x, R) {
|
|
@@ -8740,7 +8740,7 @@ const cm = {
|
|
|
8740
8740
|
values: {},
|
|
8741
8741
|
errors: {},
|
|
8742
8742
|
status: "valid"
|
|
8743
|
-
}, gc =
|
|
8743
|
+
}, gc = $r(cm), vs = ({ children: e }) => {
|
|
8744
8744
|
const [t, r] = ie("valid"), [n, o] = ie({}), [a, i] = ie({}), s = Pe({}), l = pe(
|
|
8745
8745
|
(p, { validator: v, defaultValue: b } = {}) => (Object.keys(s.current).includes(p) || (s.current[p] = {
|
|
8746
8746
|
defaultValue: b,
|
|
@@ -8750,7 +8750,7 @@ const cm = {
|
|
|
8750
8750
|
}),
|
|
8751
8751
|
[t]
|
|
8752
8752
|
);
|
|
8753
|
-
|
|
8753
|
+
ve(() => {
|
|
8754
8754
|
Object.entries(s.current).forEach(
|
|
8755
8755
|
([p, { defaultValue: v }]) => {
|
|
8756
8756
|
v && n[p] === void 0 && o((b) => ({ ...b, [p]: v }));
|
|
@@ -9653,7 +9653,7 @@ const xc = ({
|
|
|
9653
9653
|
inputType: o = "text"
|
|
9654
9654
|
}) => {
|
|
9655
9655
|
const [a, i] = ie(0), s = Pe([]), l = () => t ? t.toString().split("") : [], f = o === "number";
|
|
9656
|
-
|
|
9656
|
+
ve(() => {
|
|
9657
9657
|
s.current = s.current.slice(0, r);
|
|
9658
9658
|
}, [r]);
|
|
9659
9659
|
const u = (w) => f ? !isNaN(Number(w)) : typeof w == "string", y = (w) => u(w) && w.trim().length === 1, m = (w) => {
|
|
@@ -10115,7 +10115,7 @@ function Ee() {
|
|
|
10115
10115
|
function gr(e, t = []) {
|
|
10116
10116
|
let r = [];
|
|
10117
10117
|
function n(a, i) {
|
|
10118
|
-
const s = /* @__PURE__ */
|
|
10118
|
+
const s = /* @__PURE__ */ $r(i), l = r.length;
|
|
10119
10119
|
r = [
|
|
10120
10120
|
...r,
|
|
10121
10121
|
i
|
|
@@ -10143,7 +10143,7 @@ function gr(e, t = []) {
|
|
|
10143
10143
|
];
|
|
10144
10144
|
}
|
|
10145
10145
|
const o = () => {
|
|
10146
|
-
const a = r.map((i) => /* @__PURE__ */
|
|
10146
|
+
const a = r.map((i) => /* @__PURE__ */ $r(i));
|
|
10147
10147
|
return function(i) {
|
|
10148
10148
|
const s = (i == null ? void 0 : i[e]) || a;
|
|
10149
10149
|
return tt(
|
|
@@ -10314,7 +10314,7 @@ function je(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
10314
10314
|
}
|
|
10315
10315
|
function Zt(e) {
|
|
10316
10316
|
const t = Pe(e);
|
|
10317
|
-
return
|
|
10317
|
+
return ve(() => {
|
|
10318
10318
|
t.current = e;
|
|
10319
10319
|
}), tt(
|
|
10320
10320
|
() => (...r) => {
|
|
@@ -10348,7 +10348,7 @@ function sn({ prop: e, defaultProp: t, onChange: r = () => {
|
|
|
10348
10348
|
}
|
|
10349
10349
|
function fg({ defaultProp: e, onChange: t }) {
|
|
10350
10350
|
const r = ie(e), [n] = r, o = Pe(n), a = Zt(t);
|
|
10351
|
-
return
|
|
10351
|
+
return ve(() => {
|
|
10352
10352
|
o.current !== n && (a(n), o.current = n);
|
|
10353
10353
|
}, [
|
|
10354
10354
|
n,
|
|
@@ -10376,7 +10376,7 @@ const hg = [
|
|
|
10376
10376
|
], st = hg.reduce((e, t) => {
|
|
10377
10377
|
const r = /* @__PURE__ */ Oe((n, o) => {
|
|
10378
10378
|
const { asChild: a, ...i } = n, s = a ? En : t;
|
|
10379
|
-
return
|
|
10379
|
+
return ve(() => {
|
|
10380
10380
|
window[Symbol.for("radix-ui")] = !0;
|
|
10381
10381
|
}, []), /* @__PURE__ */ Q(s, Ee({}, i, {
|
|
10382
10382
|
ref: o
|
|
@@ -10420,7 +10420,7 @@ function gg(e) {
|
|
|
10420
10420
|
MOUNT: "mounted"
|
|
10421
10421
|
}
|
|
10422
10422
|
});
|
|
10423
|
-
return
|
|
10423
|
+
return ve(() => {
|
|
10424
10424
|
const f = Gn(n.current);
|
|
10425
10425
|
a.current = s === "mounted" ? f : "none";
|
|
10426
10426
|
}, [
|
|
@@ -10480,7 +10480,7 @@ function Nn(e) {
|
|
|
10480
10480
|
}
|
|
10481
10481
|
const Ec = "Collapsible", [bg, Rc] = gr(Ec);
|
|
10482
10482
|
bg(Ec);
|
|
10483
|
-
const wg = /* @__PURE__ */
|
|
10483
|
+
const wg = /* @__PURE__ */ $r(void 0);
|
|
10484
10484
|
function To(e) {
|
|
10485
10485
|
const t = Io(wg);
|
|
10486
10486
|
return e || t || "ltr";
|
|
@@ -10640,7 +10640,7 @@ const [zc, F6] = Lo(Mn), [Dc, U6] = Lo(Mn, {
|
|
|
10640
10640
|
Lo(Eg);
|
|
10641
10641
|
function Rg(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
10642
10642
|
const r = Zt(e);
|
|
10643
|
-
|
|
10643
|
+
ve(() => {
|
|
10644
10644
|
const n = (o) => {
|
|
10645
10645
|
o.key === "Escape" && r(o);
|
|
10646
10646
|
};
|
|
@@ -10652,7 +10652,7 @@ function Rg(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
10652
10652
|
}
|
|
10653
10653
|
let la = 0;
|
|
10654
10654
|
function Ig() {
|
|
10655
|
-
|
|
10655
|
+
ve(() => {
|
|
10656
10656
|
var e, t;
|
|
10657
10657
|
const r = document.querySelectorAll("[data-radix-focus-guard]");
|
|
10658
10658
|
return document.body.insertAdjacentElement("afterbegin", (e = r[0]) !== null && e !== void 0 ? e : ks()), document.body.insertAdjacentElement("beforeend", (t = r[1]) !== null && t !== void 0 ? t : ks()), la++, () => {
|
|
@@ -11424,7 +11424,7 @@ var P0 = (e) => function() {
|
|
|
11424
11424
|
}, dt = T0({ conditions: { defaultCondition: "lightMode", conditionNames: ["lightMode", "darkMode"], responsiveArray: void 0 }, styles: { color: { values: { background: { conditions: { lightMode: "kqvzqt0", darkMode: "kqvzqt1" }, defaultClass: "kqvzqt0" }, mute: { conditions: { lightMode: "kqvzqt2", darkMode: "kqvzqt3" }, defaultClass: "kqvzqt2" }, panel: { conditions: { lightMode: "kqvzqt4", darkMode: "kqvzqt5" }, defaultClass: "kqvzqt4" }, foreground: { conditions: { lightMode: "kqvzqt6", darkMode: "kqvzqt7" }, defaultClass: "kqvzqt6" }, contrast: { conditions: { lightMode: "kqvzqt8", darkMode: "kqvzqt9" }, defaultClass: "kqvzqt8" }, secondary: { conditions: { lightMode: "kqvzqta", darkMode: "kqvzqtb" }, defaultClass: "kqvzqta" }, tertiary: { conditions: { lightMode: "kqvzqtc", darkMode: "kqvzqtd" }, defaultClass: "kqvzqtc" }, placeholder: { conditions: { lightMode: "kqvzqte", darkMode: "kqvzqtf" }, defaultClass: "kqvzqte" }, smooth: { conditions: { lightMode: "kqvzqtg", darkMode: "kqvzqth" }, defaultClass: "kqvzqtg" }, subtle: { conditions: { lightMode: "kqvzqti", darkMode: "kqvzqtj" }, defaultClass: "kqvzqti" }, soft: { conditions: { lightMode: "kqvzqtk", darkMode: "kqvzqtl" }, defaultClass: "kqvzqtk" }, offset: { conditions: { lightMode: "kqvzqtm", darkMode: "kqvzqtn" }, defaultClass: "kqvzqtm" }, primary: { conditions: { lightMode: "kqvzqto", darkMode: "kqvzqtp" }, defaultClass: "kqvzqto" }, primaryHover: { conditions: { lightMode: "kqvzqtq", darkMode: "kqvzqtr" }, defaultClass: "kqvzqtq" }, transparent: { conditions: { lightMode: "kqvzqts", darkMode: "kqvzqtt" }, defaultClass: "kqvzqts" }, error: { conditions: { lightMode: "kqvzqtu", darkMode: "kqvzqtv" }, defaultClass: "kqvzqtu" }, auxiliary: { conditions: { lightMode: "kqvzqtw", darkMode: "kqvzqtx" }, defaultClass: "kqvzqtw" }, success: { conditions: { lightMode: "kqvzqty", darkMode: "kqvzqtz" }, defaultClass: "kqvzqty" }, foregroundSuccess: { conditions: { lightMode: "kqvzqt10", darkMode: "kqvzqt11" }, defaultClass: "kqvzqt10" }, backgroundSuccess: { conditions: { lightMode: "kqvzqt12", darkMode: "kqvzqt13" }, defaultClass: "kqvzqt12" }, failure: { conditions: { lightMode: "kqvzqt14", darkMode: "kqvzqt15" }, defaultClass: "kqvzqt14" }, foregroundFailure: { conditions: { lightMode: "kqvzqt16", darkMode: "kqvzqt17" }, defaultClass: "kqvzqt16" }, backgroundFailure: { conditions: { lightMode: "kqvzqt18", darkMode: "kqvzqt19" }, defaultClass: "kqvzqt18" } } }, backgroundColor: { values: { background: { conditions: { lightMode: "kqvzqt1a", darkMode: "kqvzqt1b" }, defaultClass: "kqvzqt1a" }, mute: { conditions: { lightMode: "kqvzqt1c", darkMode: "kqvzqt1d" }, defaultClass: "kqvzqt1c" }, panel: { conditions: { lightMode: "kqvzqt1e", darkMode: "kqvzqt1f" }, defaultClass: "kqvzqt1e" }, foreground: { conditions: { lightMode: "kqvzqt1g", darkMode: "kqvzqt1h" }, defaultClass: "kqvzqt1g" }, contrast: { conditions: { lightMode: "kqvzqt1i", darkMode: "kqvzqt1j" }, defaultClass: "kqvzqt1i" }, secondary: { conditions: { lightMode: "kqvzqt1k", darkMode: "kqvzqt1l" }, defaultClass: "kqvzqt1k" }, tertiary: { conditions: { lightMode: "kqvzqt1m", darkMode: "kqvzqt1n" }, defaultClass: "kqvzqt1m" }, placeholder: { conditions: { lightMode: "kqvzqt1o", darkMode: "kqvzqt1p" }, defaultClass: "kqvzqt1o" }, smooth: { conditions: { lightMode: "kqvzqt1q", darkMode: "kqvzqt1r" }, defaultClass: "kqvzqt1q" }, subtle: { conditions: { lightMode: "kqvzqt1s", darkMode: "kqvzqt1t" }, defaultClass: "kqvzqt1s" }, soft: { conditions: { lightMode: "kqvzqt1u", darkMode: "kqvzqt1v" }, defaultClass: "kqvzqt1u" }, offset: { conditions: { lightMode: "kqvzqt1w", darkMode: "kqvzqt1x" }, defaultClass: "kqvzqt1w" }, primary: { conditions: { lightMode: "kqvzqt1y", darkMode: "kqvzqt1z" }, defaultClass: "kqvzqt1y" }, primaryHover: { conditions: { lightMode: "kqvzqt20", darkMode: "kqvzqt21" }, defaultClass: "kqvzqt20" }, transparent: { conditions: { lightMode: "kqvzqt22", darkMode: "kqvzqt23" }, defaultClass: "kqvzqt22" }, error: { conditions: { lightMode: "kqvzqt24", darkMode: "kqvzqt25" }, defaultClass: "kqvzqt24" }, auxiliary: { conditions: { lightMode: "kqvzqt26", darkMode: "kqvzqt27" }, defaultClass: "kqvzqt26" }, success: { conditions: { lightMode: "kqvzqt28", darkMode: "kqvzqt29" }, defaultClass: "kqvzqt28" }, foregroundSuccess: { conditions: { lightMode: "kqvzqt2a", darkMode: "kqvzqt2b" }, defaultClass: "kqvzqt2a" }, backgroundSuccess: { conditions: { lightMode: "kqvzqt2c", darkMode: "kqvzqt2d" }, defaultClass: "kqvzqt2c" }, failure: { conditions: { lightMode: "kqvzqt2e", darkMode: "kqvzqt2f" }, defaultClass: "kqvzqt2e" }, foregroundFailure: { conditions: { lightMode: "kqvzqt2g", darkMode: "kqvzqt2h" }, defaultClass: "kqvzqt2g" }, backgroundFailure: { conditions: { lightMode: "kqvzqt2i", darkMode: "kqvzqt2j" }, defaultClass: "kqvzqt2i" } } } } }, { conditions: void 0, styles: { marginY: { mappings: ["marginTop", "marginBottom"] }, marginX: { mappings: ["marginLeft", "marginRight"] }, gap: { values: { 0: { defaultClass: "kqvzqt2k" }, 1: { defaultClass: "kqvzqt2l" }, 2: { defaultClass: "kqvzqt2m" }, 3: { defaultClass: "kqvzqt2n" }, 4: { defaultClass: "kqvzqt2o" }, 5: { defaultClass: "kqvzqt2p" }, 6: { defaultClass: "kqvzqt2q" }, 7: { defaultClass: "kqvzqt2r" }, 8: { defaultClass: "kqvzqt2s" }, 9: { defaultClass: "kqvzqt2t" }, 10: { defaultClass: "kqvzqt2u" }, 11: { defaultClass: "kqvzqt2v" }, 12: { defaultClass: "kqvzqt2w" }, 13: { defaultClass: "kqvzqt2x" }, 14: { defaultClass: "kqvzqt2y" }, 15: { defaultClass: "kqvzqt2z" }, 16: { defaultClass: "kqvzqt30" }, 20: { defaultClass: "kqvzqt31" }, 24: { defaultClass: "kqvzqt32" }, 28: { defaultClass: "kqvzqt33" }, 32: { defaultClass: "kqvzqt34" }, 36: { defaultClass: "kqvzqt35" }, 40: { defaultClass: "kqvzqt36" }, 44: { defaultClass: "kqvzqt37" }, 48: { defaultClass: "kqvzqt38" }, 52: { defaultClass: "kqvzqt39" }, 56: { defaultClass: "kqvzqt3a" }, 60: { defaultClass: "kqvzqt3b" }, 64: { defaultClass: "kqvzqt3c" }, 68: { defaultClass: "kqvzqt3d" }, 72: { defaultClass: "kqvzqt3e" }, 76: { defaultClass: "kqvzqt3f" }, 80: { defaultClass: "kqvzqt3g" }, 96: { defaultClass: "kqvzqt3h" }, px: { defaultClass: "kqvzqt3i" }, "0.25": { defaultClass: "kqvzqt3j" }, "0.5": { defaultClass: "kqvzqt3k" }, "0.75": { defaultClass: "kqvzqt3l" }, "1.5": { defaultClass: "kqvzqt3m" }, "2.5": { defaultClass: "kqvzqt3n" }, "3.5": { defaultClass: "kqvzqt3o" } } }, marginTop: { values: { 0: { defaultClass: "kqvzqt3p" }, 1: { defaultClass: "kqvzqt3q" }, 2: { defaultClass: "kqvzqt3r" }, 3: { defaultClass: "kqvzqt3s" }, 4: { defaultClass: "kqvzqt3t" }, 5: { defaultClass: "kqvzqt3u" }, 6: { defaultClass: "kqvzqt3v" }, 7: { defaultClass: "kqvzqt3w" }, 8: { defaultClass: "kqvzqt3x" }, 9: { defaultClass: "kqvzqt3y" }, 10: { defaultClass: "kqvzqt3z" }, 11: { defaultClass: "kqvzqt40" }, 12: { defaultClass: "kqvzqt41" }, 13: { defaultClass: "kqvzqt42" }, 14: { defaultClass: "kqvzqt43" }, 15: { defaultClass: "kqvzqt44" }, 16: { defaultClass: "kqvzqt45" }, 20: { defaultClass: "kqvzqt46" }, 24: { defaultClass: "kqvzqt47" }, 28: { defaultClass: "kqvzqt48" }, 32: { defaultClass: "kqvzqt49" }, 36: { defaultClass: "kqvzqt4a" }, 40: { defaultClass: "kqvzqt4b" }, 44: { defaultClass: "kqvzqt4c" }, 48: { defaultClass: "kqvzqt4d" }, 52: { defaultClass: "kqvzqt4e" }, 56: { defaultClass: "kqvzqt4f" }, 60: { defaultClass: "kqvzqt4g" }, 64: { defaultClass: "kqvzqt4h" }, 68: { defaultClass: "kqvzqt4i" }, 72: { defaultClass: "kqvzqt4j" }, 76: { defaultClass: "kqvzqt4k" }, 80: { defaultClass: "kqvzqt4l" }, 96: { defaultClass: "kqvzqt4m" }, px: { defaultClass: "kqvzqt4n" }, "0.25": { defaultClass: "kqvzqt4o" }, "0.5": { defaultClass: "kqvzqt4p" }, "0.75": { defaultClass: "kqvzqt4q" }, "1.5": { defaultClass: "kqvzqt4r" }, "2.5": { defaultClass: "kqvzqt4s" }, "3.5": { defaultClass: "kqvzqt4t" } } }, marginBottom: { values: { 0: { defaultClass: "kqvzqt4u" }, 1: { defaultClass: "kqvzqt4v" }, 2: { defaultClass: "kqvzqt4w" }, 3: { defaultClass: "kqvzqt4x" }, 4: { defaultClass: "kqvzqt4y" }, 5: { defaultClass: "kqvzqt4z" }, 6: { defaultClass: "kqvzqt50" }, 7: { defaultClass: "kqvzqt51" }, 8: { defaultClass: "kqvzqt52" }, 9: { defaultClass: "kqvzqt53" }, 10: { defaultClass: "kqvzqt54" }, 11: { defaultClass: "kqvzqt55" }, 12: { defaultClass: "kqvzqt56" }, 13: { defaultClass: "kqvzqt57" }, 14: { defaultClass: "kqvzqt58" }, 15: { defaultClass: "kqvzqt59" }, 16: { defaultClass: "kqvzqt5a" }, 20: { defaultClass: "kqvzqt5b" }, 24: { defaultClass: "kqvzqt5c" }, 28: { defaultClass: "kqvzqt5d" }, 32: { defaultClass: "kqvzqt5e" }, 36: { defaultClass: "kqvzqt5f" }, 40: { defaultClass: "kqvzqt5g" }, 44: { defaultClass: "kqvzqt5h" }, 48: { defaultClass: "kqvzqt5i" }, 52: { defaultClass: "kqvzqt5j" }, 56: { defaultClass: "kqvzqt5k" }, 60: { defaultClass: "kqvzqt5l" }, 64: { defaultClass: "kqvzqt5m" }, 68: { defaultClass: "kqvzqt5n" }, 72: { defaultClass: "kqvzqt5o" }, 76: { defaultClass: "kqvzqt5p" }, 80: { defaultClass: "kqvzqt5q" }, 96: { defaultClass: "kqvzqt5r" }, px: { defaultClass: "kqvzqt5s" }, "0.25": { defaultClass: "kqvzqt5t" }, "0.5": { defaultClass: "kqvzqt5u" }, "0.75": { defaultClass: "kqvzqt5v" }, "1.5": { defaultClass: "kqvzqt5w" }, "2.5": { defaultClass: "kqvzqt5x" }, "3.5": { defaultClass: "kqvzqt5y" } } }, marginLeft: { values: { 0: { defaultClass: "kqvzqt5z" }, 1: { defaultClass: "kqvzqt60" }, 2: { defaultClass: "kqvzqt61" }, 3: { defaultClass: "kqvzqt62" }, 4: { defaultClass: "kqvzqt63" }, 5: { defaultClass: "kqvzqt64" }, 6: { defaultClass: "kqvzqt65" }, 7: { defaultClass: "kqvzqt66" }, 8: { defaultClass: "kqvzqt67" }, 9: { defaultClass: "kqvzqt68" }, 10: { defaultClass: "kqvzqt69" }, 11: { defaultClass: "kqvzqt6a" }, 12: { defaultClass: "kqvzqt6b" }, 13: { defaultClass: "kqvzqt6c" }, 14: { defaultClass: "kqvzqt6d" }, 15: { defaultClass: "kqvzqt6e" }, 16: { defaultClass: "kqvzqt6f" }, 20: { defaultClass: "kqvzqt6g" }, 24: { defaultClass: "kqvzqt6h" }, 28: { defaultClass: "kqvzqt6i" }, 32: { defaultClass: "kqvzqt6j" }, 36: { defaultClass: "kqvzqt6k" }, 40: { defaultClass: "kqvzqt6l" }, 44: { defaultClass: "kqvzqt6m" }, 48: { defaultClass: "kqvzqt6n" }, 52: { defaultClass: "kqvzqt6o" }, 56: { defaultClass: "kqvzqt6p" }, 60: { defaultClass: "kqvzqt6q" }, 64: { defaultClass: "kqvzqt6r" }, 68: { defaultClass: "kqvzqt6s" }, 72: { defaultClass: "kqvzqt6t" }, 76: { defaultClass: "kqvzqt6u" }, 80: { defaultClass: "kqvzqt6v" }, 96: { defaultClass: "kqvzqt6w" }, px: { defaultClass: "kqvzqt6x" }, "0.25": { defaultClass: "kqvzqt6y" }, "0.5": { defaultClass: "kqvzqt6z" }, "0.75": { defaultClass: "kqvzqt70" }, "1.5": { defaultClass: "kqvzqt71" }, "2.5": { defaultClass: "kqvzqt72" }, "3.5": { defaultClass: "kqvzqt73" } } }, marginRight: { values: { 0: { defaultClass: "kqvzqt74" }, 1: { defaultClass: "kqvzqt75" }, 2: { defaultClass: "kqvzqt76" }, 3: { defaultClass: "kqvzqt77" }, 4: { defaultClass: "kqvzqt78" }, 5: { defaultClass: "kqvzqt79" }, 6: { defaultClass: "kqvzqt7a" }, 7: { defaultClass: "kqvzqt7b" }, 8: { defaultClass: "kqvzqt7c" }, 9: { defaultClass: "kqvzqt7d" }, 10: { defaultClass: "kqvzqt7e" }, 11: { defaultClass: "kqvzqt7f" }, 12: { defaultClass: "kqvzqt7g" }, 13: { defaultClass: "kqvzqt7h" }, 14: { defaultClass: "kqvzqt7i" }, 15: { defaultClass: "kqvzqt7j" }, 16: { defaultClass: "kqvzqt7k" }, 20: { defaultClass: "kqvzqt7l" }, 24: { defaultClass: "kqvzqt7m" }, 28: { defaultClass: "kqvzqt7n" }, 32: { defaultClass: "kqvzqt7o" }, 36: { defaultClass: "kqvzqt7p" }, 40: { defaultClass: "kqvzqt7q" }, 44: { defaultClass: "kqvzqt7r" }, 48: { defaultClass: "kqvzqt7s" }, 52: { defaultClass: "kqvzqt7t" }, 56: { defaultClass: "kqvzqt7u" }, 60: { defaultClass: "kqvzqt7v" }, 64: { defaultClass: "kqvzqt7w" }, 68: { defaultClass: "kqvzqt7x" }, 72: { defaultClass: "kqvzqt7y" }, 76: { defaultClass: "kqvzqt7z" }, 80: { defaultClass: "kqvzqt80" }, 96: { defaultClass: "kqvzqt81" }, px: { defaultClass: "kqvzqt82" }, "0.25": { defaultClass: "kqvzqt83" }, "0.5": { defaultClass: "kqvzqt84" }, "0.75": { defaultClass: "kqvzqt85" }, "1.5": { defaultClass: "kqvzqt86" }, "2.5": { defaultClass: "kqvzqt87" }, "3.5": { defaultClass: "kqvzqt88" } } } } }), L0 = R0({ defaultClassName: "_1qam6z30", variantClassNames: { size: { xs: "_1qam6z31", sm: "_1qam6z32", base: "_1qam6z33", xl: "_1qam6z34", "2xl-title": "_1qam6z35" }, weight: { medium: "_1qam6z36", semibold: "_1qam6z37", bold: "_1qam6z38" }, color: { contrast: "_1qam6z39", tertiary: "_1qam6z3a", placeholder: "_1qam6z3b", white: "_1qam6z3c", success: "_1qam6z3d", failure: "_1qam6z3e" } }, defaultVariants: { size: "base", weight: "medium" }, compoundVariants: [] });
|
|
11425
11425
|
const O0 = {
|
|
11426
11426
|
text: {}
|
|
11427
|
-
}, hi =
|
|
11427
|
+
}, hi = $r(O0);
|
|
11428
11428
|
hi.displayName = "SlashIDTextContext";
|
|
11429
11429
|
const N0 = ({ text: e, children: t }) => {
|
|
11430
11430
|
const r = tt(() => ({
|
|
@@ -11479,7 +11479,7 @@ function Rs(e, [t, r]) {
|
|
|
11479
11479
|
}
|
|
11480
11480
|
const Ta = "dismissableLayer.update", F0 = "dismissableLayer.pointerDownOutside", U0 = "dismissableLayer.focusOutside";
|
|
11481
11481
|
let Is;
|
|
11482
|
-
const j0 = /* @__PURE__ */
|
|
11482
|
+
const j0 = /* @__PURE__ */ $r({
|
|
11483
11483
|
layers: /* @__PURE__ */ new Set(),
|
|
11484
11484
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
11485
11485
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -11507,7 +11507,7 @@ const j0 = /* @__PURE__ */ Sr({
|
|
|
11507
11507
|
}, g);
|
|
11508
11508
|
return Rg((z) => {
|
|
11509
11509
|
k === u.layers.size - 1 && (o == null || o(z), !z.defaultPrevented && l && (z.preventDefault(), l()));
|
|
11510
|
-
}, g),
|
|
11510
|
+
}, g), ve(() => {
|
|
11511
11511
|
if (y)
|
|
11512
11512
|
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Is = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(y)), u.layers.add(y), zs(), () => {
|
|
11513
11513
|
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Is);
|
|
@@ -11517,12 +11517,12 @@ const j0 = /* @__PURE__ */ Sr({
|
|
|
11517
11517
|
g,
|
|
11518
11518
|
n,
|
|
11519
11519
|
u
|
|
11520
|
-
]),
|
|
11520
|
+
]), ve(() => () => {
|
|
11521
11521
|
y && (u.layers.delete(y), u.layersWithOutsidePointerEventsDisabled.delete(y), zs());
|
|
11522
11522
|
}, [
|
|
11523
11523
|
y,
|
|
11524
11524
|
u
|
|
11525
|
-
]),
|
|
11525
|
+
]), ve(() => {
|
|
11526
11526
|
const z = () => h({});
|
|
11527
11527
|
return document.addEventListener(Ta, z), () => document.removeEventListener(Ta, z);
|
|
11528
11528
|
}, []), /* @__PURE__ */ Q(st.div, Ee({}, f, {
|
|
@@ -11539,7 +11539,7 @@ const j0 = /* @__PURE__ */ Sr({
|
|
|
11539
11539
|
function B0(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
11540
11540
|
const r = Zt(e), n = Pe(!1), o = Pe(() => {
|
|
11541
11541
|
});
|
|
11542
|
-
return
|
|
11542
|
+
return ve(() => {
|
|
11543
11543
|
const a = (s) => {
|
|
11544
11544
|
if (s.target && !n.current) {
|
|
11545
11545
|
let l = function() {
|
|
@@ -11571,7 +11571,7 @@ function B0(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
11571
11571
|
}
|
|
11572
11572
|
function H0(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
11573
11573
|
const r = Zt(e), n = Pe(!1);
|
|
11574
|
-
return
|
|
11574
|
+
return ve(() => {
|
|
11575
11575
|
const o = (a) => {
|
|
11576
11576
|
a.target && !n.current && Kc(U0, r, {
|
|
11577
11577
|
originalEvent: a
|
|
@@ -11618,7 +11618,7 @@ const pa = "focusScope.autoFocusOnMount", ma = "focusScope.autoFocusOnUnmount",
|
|
|
11618
11618
|
this.paused = !1;
|
|
11619
11619
|
}
|
|
11620
11620
|
}).current;
|
|
11621
|
-
|
|
11621
|
+
ve(() => {
|
|
11622
11622
|
if (n) {
|
|
11623
11623
|
let p = function(k) {
|
|
11624
11624
|
if (g.paused || !s)
|
|
@@ -11652,7 +11652,7 @@ const pa = "focusScope.autoFocusOnMount", ma = "focusScope.autoFocusOnUnmount",
|
|
|
11652
11652
|
n,
|
|
11653
11653
|
s,
|
|
11654
11654
|
g.paused
|
|
11655
|
-
]),
|
|
11655
|
+
]), ve(() => {
|
|
11656
11656
|
if (s) {
|
|
11657
11657
|
As.add(g);
|
|
11658
11658
|
const p = document.activeElement;
|
|
@@ -11782,7 +11782,7 @@ function X0(e) {
|
|
|
11782
11782
|
(t) => t.tagName !== "A"
|
|
11783
11783
|
);
|
|
11784
11784
|
}
|
|
11785
|
-
const Q0 = ["top", "right", "bottom", "left"],
|
|
11785
|
+
const Q0 = ["top", "right", "bottom", "left"], Rr = Math.min, Et = Math.max, Co = Math.round, Qn = Math.floor, Ir = (e) => ({
|
|
11786
11786
|
x: e,
|
|
11787
11787
|
y: e
|
|
11788
11788
|
}), ev = {
|
|
@@ -11795,7 +11795,7 @@ const Q0 = ["top", "right", "bottom", "left"], Er = Math.min, Et = Math.max, Co
|
|
|
11795
11795
|
end: "start"
|
|
11796
11796
|
};
|
|
11797
11797
|
function La(e, t, r) {
|
|
11798
|
-
return Et(e,
|
|
11798
|
+
return Et(e, Rr(t, r));
|
|
11799
11799
|
}
|
|
11800
11800
|
function ur(e, t) {
|
|
11801
11801
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -12057,7 +12057,7 @@ const Os = (e) => ({
|
|
|
12057
12057
|
}, g = gi(o), h = mi(g), p = await i.getDimensions(f), v = g === "y", b = v ? "top" : "left", _ = v ? "bottom" : "right", k = v ? "clientHeight" : "clientWidth", q = a.reference[h] + a.reference[g] - m[g] - a.floating[h], C = m[g] - a.reference[g], w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(f));
|
|
12058
12058
|
let $ = w ? w[k] : 0;
|
|
12059
12059
|
(!$ || !await (i.isElement == null ? void 0 : i.isElement(w))) && ($ = s.floating[k] || a.floating[h]);
|
|
12060
|
-
const z = q / 2 - C / 2, L = $ / 2 - p[h] / 2 - 1, K =
|
|
12060
|
+
const z = q / 2 - C / 2, L = $ / 2 - p[h] / 2 - 1, K = Rr(y[b], L), U = Rr(y[_], L), G = K, B = $ - p[h] - U, M = $ / 2 - p[h] / 2 + z, re = La(G, M, B), ee = !l.arrow && dn(o) != null && M != re && a.reference[h] / 2 - (M < G ? K : U) - p[h] / 2 < 0, T = ee ? M < G ? M - G : M - B : 0;
|
|
12061
12061
|
return {
|
|
12062
12062
|
[g]: m[g] + T,
|
|
12063
12063
|
data: {
|
|
@@ -12357,10 +12357,10 @@ const uv = function(e) {
|
|
|
12357
12357
|
let k = v, q = b;
|
|
12358
12358
|
if (y) {
|
|
12359
12359
|
const w = m - l.left - l.right;
|
|
12360
|
-
q = u || _ ?
|
|
12360
|
+
q = u || _ ? Rr(b, w) : w;
|
|
12361
12361
|
} else {
|
|
12362
12362
|
const w = g - l.top - l.bottom;
|
|
12363
|
-
k = u || _ ?
|
|
12363
|
+
k = u || _ ? Rr(v, w) : w;
|
|
12364
12364
|
}
|
|
12365
12365
|
if (_ && !u) {
|
|
12366
12366
|
const w = Et(l.left, 0), $ = Et(l.right, 0), z = Et(l.top, 0), L = Et(l.bottom, 0);
|
|
@@ -12380,7 +12380,7 @@ const uv = function(e) {
|
|
|
12380
12380
|
}
|
|
12381
12381
|
};
|
|
12382
12382
|
};
|
|
12383
|
-
function
|
|
12383
|
+
function zr(e) {
|
|
12384
12384
|
return Zc(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
12385
12385
|
}
|
|
12386
12386
|
function Rt(e) {
|
|
@@ -12413,7 +12413,7 @@ function Un(e) {
|
|
|
12413
12413
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(o);
|
|
12414
12414
|
}
|
|
12415
12415
|
function mv(e) {
|
|
12416
|
-
return ["table", "td", "th"].includes(
|
|
12416
|
+
return ["table", "td", "th"].includes(zr(e));
|
|
12417
12417
|
}
|
|
12418
12418
|
function vi(e) {
|
|
12419
12419
|
const t = yi(), r = Mt(e);
|
|
@@ -12432,7 +12432,7 @@ function yi() {
|
|
|
12432
12432
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
12433
12433
|
}
|
|
12434
12434
|
function No(e) {
|
|
12435
|
-
return ["html", "body", "#document"].includes(
|
|
12435
|
+
return ["html", "body", "#document"].includes(zr(e));
|
|
12436
12436
|
}
|
|
12437
12437
|
function Mt(e) {
|
|
12438
12438
|
return Rt(e).getComputedStyle(e);
|
|
@@ -12447,7 +12447,7 @@ function Mo(e) {
|
|
|
12447
12447
|
};
|
|
12448
12448
|
}
|
|
12449
12449
|
function ln(e) {
|
|
12450
|
-
if (
|
|
12450
|
+
if (zr(e) === "html")
|
|
12451
12451
|
return e;
|
|
12452
12452
|
const t = (
|
|
12453
12453
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -12484,7 +12484,7 @@ function bi(e) {
|
|
|
12484
12484
|
function tn(e) {
|
|
12485
12485
|
const t = bi(e);
|
|
12486
12486
|
if (!Yt(t))
|
|
12487
|
-
return
|
|
12487
|
+
return Ir(1);
|
|
12488
12488
|
const r = t.getBoundingClientRect(), {
|
|
12489
12489
|
width: n,
|
|
12490
12490
|
height: o,
|
|
@@ -12496,7 +12496,7 @@ function tn(e) {
|
|
|
12496
12496
|
y: s
|
|
12497
12497
|
};
|
|
12498
12498
|
}
|
|
12499
|
-
const vv = /* @__PURE__ */
|
|
12499
|
+
const vv = /* @__PURE__ */ Ir(0);
|
|
12500
12500
|
function Qc(e) {
|
|
12501
12501
|
const t = Rt(e);
|
|
12502
12502
|
return !yi() || !t.visualViewport ? vv : {
|
|
@@ -12510,9 +12510,9 @@ function yv(e, t, r) {
|
|
|
12510
12510
|
function Mr(e, t, r, n) {
|
|
12511
12511
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
12512
12512
|
const o = e.getBoundingClientRect(), a = bi(e);
|
|
12513
|
-
let i =
|
|
12513
|
+
let i = Ir(1);
|
|
12514
12514
|
t && (n ? hr(n) && (i = tn(n)) : i = tn(e));
|
|
12515
|
-
const s = yv(a, r, n) ? Qc(a) :
|
|
12515
|
+
const s = yv(a, r, n) ? Qc(a) : Ir(0);
|
|
12516
12516
|
let l = (o.left + s.x) / i.x, f = (o.top + s.y) / i.y, u = o.width / i.x, y = o.height / i.y;
|
|
12517
12517
|
if (a) {
|
|
12518
12518
|
const m = Rt(a), g = n && hr(n) ? Rt(n) : n;
|
|
@@ -12541,9 +12541,9 @@ function bv(e) {
|
|
|
12541
12541
|
let i = {
|
|
12542
12542
|
scrollLeft: 0,
|
|
12543
12543
|
scrollTop: 0
|
|
12544
|
-
}, s =
|
|
12545
|
-
const l =
|
|
12546
|
-
if ((o || !o && n !== "fixed") && ((
|
|
12544
|
+
}, s = Ir(1);
|
|
12545
|
+
const l = Ir(0);
|
|
12546
|
+
if ((o || !o && n !== "fixed") && ((zr(r) !== "body" || Un(a)) && (i = Mo(r)), Yt(r))) {
|
|
12547
12547
|
const f = Mr(r);
|
|
12548
12548
|
s = tn(r), l.x = f.x + r.clientLeft, l.y = f.y + r.clientTop;
|
|
12549
12549
|
}
|
|
@@ -12587,7 +12587,7 @@ function kv(e, t) {
|
|
|
12587
12587
|
};
|
|
12588
12588
|
}
|
|
12589
12589
|
function xv(e, t) {
|
|
12590
|
-
const r = Mr(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = Yt(e) ? tn(e) :
|
|
12590
|
+
const r = Mr(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = Yt(e) ? tn(e) : Ir(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, f = n * a.y;
|
|
12591
12591
|
return {
|
|
12592
12592
|
width: i,
|
|
12593
12593
|
height: s,
|
|
@@ -12621,7 +12621,7 @@ function Cv(e, t) {
|
|
|
12621
12621
|
const r = t.get(e);
|
|
12622
12622
|
if (r)
|
|
12623
12623
|
return r;
|
|
12624
|
-
let n = In(e, [], !1).filter((s) => hr(s) &&
|
|
12624
|
+
let n = In(e, [], !1).filter((s) => hr(s) && zr(s) !== "body"), o = null;
|
|
12625
12625
|
const a = Mt(e).position === "fixed";
|
|
12626
12626
|
let i = a ? ln(e) : e;
|
|
12627
12627
|
for (; hr(i) && !No(i); ) {
|
|
@@ -12639,7 +12639,7 @@ function qv(e) {
|
|
|
12639
12639
|
} = e;
|
|
12640
12640
|
const a = [...r === "clippingAncestors" ? Cv(t, this._c) : [].concat(r), n], i = a[0], s = a.reduce((l, f) => {
|
|
12641
12641
|
const u = Us(t, f, o);
|
|
12642
|
-
return l.top = Et(u.top, l.top), l.right =
|
|
12642
|
+
return l.top = Et(u.top, l.top), l.right = Rr(u.right, l.right), l.bottom = Rr(u.bottom, l.bottom), l.left = Et(u.left, l.left), l;
|
|
12643
12643
|
}, Us(t, i, o));
|
|
12644
12644
|
return {
|
|
12645
12645
|
width: s.right - s.left,
|
|
@@ -12657,9 +12657,9 @@ function $v(e, t, r) {
|
|
|
12657
12657
|
scrollLeft: 0,
|
|
12658
12658
|
scrollTop: 0
|
|
12659
12659
|
};
|
|
12660
|
-
const l =
|
|
12660
|
+
const l = Ir(0);
|
|
12661
12661
|
if (n || !n && !a)
|
|
12662
|
-
if ((
|
|
12662
|
+
if ((zr(t) !== "body" || Un(o)) && (s = Mo(t)), n) {
|
|
12663
12663
|
const f = Mr(t, !0, a, t);
|
|
12664
12664
|
l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
|
|
12665
12665
|
} else
|
|
@@ -12681,7 +12681,7 @@ function rd(e, t) {
|
|
|
12681
12681
|
let n = js(e, t);
|
|
12682
12682
|
for (; n && mv(n) && Mt(n).position === "static"; )
|
|
12683
12683
|
n = js(n, t);
|
|
12684
|
-
return n && (
|
|
12684
|
+
return n && (zr(n) === "html" || zr(n) === "body" && Mt(n).position === "static" && !vi(n)) ? r : n || gv(e) || r;
|
|
12685
12685
|
}
|
|
12686
12686
|
const Ev = async function(e) {
|
|
12687
12687
|
let {
|
|
@@ -12732,7 +12732,7 @@ function zv(e, t) {
|
|
|
12732
12732
|
return;
|
|
12733
12733
|
const g = Qn(u), h = Qn(o.clientWidth - (f + y)), p = Qn(o.clientHeight - (u + m)), v = Qn(f), b = {
|
|
12734
12734
|
rootMargin: -g + "px " + -h + "px " + -p + "px " + -v + "px",
|
|
12735
|
-
threshold: Et(0,
|
|
12735
|
+
threshold: Et(0, Rr(1, l)) || 1
|
|
12736
12736
|
};
|
|
12737
12737
|
let _ = !0;
|
|
12738
12738
|
function k(q) {
|
|
@@ -12827,7 +12827,7 @@ const Pv = (e, t, r) => {
|
|
|
12827
12827
|
}
|
|
12828
12828
|
};
|
|
12829
12829
|
};
|
|
12830
|
-
var ho = typeof document < "u" ? Cn :
|
|
12830
|
+
var ho = typeof document < "u" ? Cn : ve;
|
|
12831
12831
|
function $o(e, t) {
|
|
12832
12832
|
if (e === t)
|
|
12833
12833
|
return !0;
|
|
@@ -12979,7 +12979,7 @@ const od = "Popper", [ad, id] = gr(od), [Lv, sd] = ad(od), Ov = (e) => {
|
|
|
12979
12979
|
}, r);
|
|
12980
12980
|
}, Nv = "PopperAnchor", Mv = /* @__PURE__ */ Oe((e, t) => {
|
|
12981
12981
|
const { __scopePopper: r, virtualRef: n, ...o } = e, a = sd(Nv, r), i = Pe(null), s = ut(t, i);
|
|
12982
|
-
return
|
|
12982
|
+
return ve(() => {
|
|
12983
12983
|
a.onAnchorChange((n == null ? void 0 : n.current) || i.current);
|
|
12984
12984
|
}), n ? null : /* @__PURE__ */ Q(st.div, Ee({}, o, {
|
|
12985
12985
|
ref: s
|
|
@@ -13298,7 +13298,7 @@ const Bv = Ov, Hv = Mv, Wv = Uv, Kv = /* @__PURE__ */ Oe((e, t) => /* @__PURE__
|
|
|
13298
13298
|
t,
|
|
13299
13299
|
(W) => q(W)
|
|
13300
13300
|
), [z, L] = ie(null), [K, U] = ie(null), G = jo(r), [B, M] = ie(!1), re = Pe(!1);
|
|
13301
|
-
|
|
13301
|
+
ve(() => {
|
|
13302
13302
|
if (k)
|
|
13303
13303
|
return p0(k);
|
|
13304
13304
|
}, [
|
|
@@ -13327,14 +13327,14 @@ const Bv = Ov, Hv = Mv, Wv = Uv, Kv = /* @__PURE__ */ Oe((e, t) => /* @__PURE__
|
|
|
13327
13327
|
k
|
|
13328
13328
|
]
|
|
13329
13329
|
);
|
|
13330
|
-
|
|
13330
|
+
ve(() => {
|
|
13331
13331
|
B && T();
|
|
13332
13332
|
}, [
|
|
13333
13333
|
B,
|
|
13334
13334
|
T
|
|
13335
13335
|
]);
|
|
13336
13336
|
const { onOpenChange: Z, triggerPointerDownPosRef: I } = _;
|
|
13337
|
-
|
|
13337
|
+
ve(() => {
|
|
13338
13338
|
if (k) {
|
|
13339
13339
|
let W = {
|
|
13340
13340
|
x: 0,
|
|
@@ -13362,7 +13362,7 @@ const Bv = Ov, Hv = Mv, Wv = Uv, Kv = /* @__PURE__ */ Oe((e, t) => /* @__PURE__
|
|
|
13362
13362
|
k,
|
|
13363
13363
|
Z,
|
|
13364
13364
|
I
|
|
13365
|
-
]),
|
|
13365
|
+
]), ve(() => {
|
|
13366
13366
|
const W = () => Z(!1);
|
|
13367
13367
|
return window.addEventListener("blur", W), window.addEventListener("resize", W), () => {
|
|
13368
13368
|
window.removeEventListener("blur", W), window.removeEventListener("resize", W);
|
|
@@ -13769,7 +13769,7 @@ const Bv = Ov, Hv = Mv, Wv = Uv, Kv = /* @__PURE__ */ Oe((e, t) => /* @__PURE__
|
|
|
13769
13769
|
const { __scopeSelect: r, onAutoScroll: n, ...o } = e, a = hn("SelectScrollButton", r), i = Pe(null), s = jo(r), l = pe(() => {
|
|
13770
13770
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
13771
13771
|
}, []);
|
|
13772
|
-
return
|
|
13772
|
+
return ve(() => () => l(), [
|
|
13773
13773
|
l
|
|
13774
13774
|
]), It(() => {
|
|
13775
13775
|
var f;
|
|
@@ -13802,7 +13802,7 @@ const Bv = Ov, Hv = Mv, Wv = Uv, Kv = /* @__PURE__ */ Oe((e, t) => /* @__PURE__
|
|
|
13802
13802
|
}));
|
|
13803
13803
|
}), hd = /* @__PURE__ */ Oe((e, t) => {
|
|
13804
13804
|
const { value: r, ...n } = e, o = Pe(null), a = ut(t, o), i = g0(r);
|
|
13805
|
-
return
|
|
13805
|
+
return ve(() => {
|
|
13806
13806
|
const s = o.current, l = window.HTMLSelectElement.prototype, f = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
13807
13807
|
if (i !== r && f) {
|
|
13808
13808
|
const u = new Event("change", {
|
|
@@ -13835,7 +13835,7 @@ function pd(e) {
|
|
|
13835
13835
|
]), a = pe(() => {
|
|
13836
13836
|
r.current = "", window.clearTimeout(n.current);
|
|
13837
13837
|
}, []);
|
|
13838
|
-
return
|
|
13838
|
+
return ve(() => () => window.clearTimeout(n.current), []), [
|
|
13839
13839
|
r,
|
|
13840
13840
|
o,
|
|
13841
13841
|
a
|
|
@@ -13956,7 +13956,7 @@ const My = ({
|
|
|
13956
13956
|
defaultProp: s,
|
|
13957
13957
|
onChange: l
|
|
13958
13958
|
}), [v, b] = ie(!1), _ = Zt(f), k = gd(r), q = Pe(!1), [C, w] = ie(0);
|
|
13959
|
-
return
|
|
13959
|
+
return ve(() => {
|
|
13960
13960
|
const $ = y.current;
|
|
13961
13961
|
if ($)
|
|
13962
13962
|
return $.addEventListener(ga, _), () => $.removeEventListener(ga, _);
|
|
@@ -14032,7 +14032,7 @@ const My = ({
|
|
|
14032
14032
|
})));
|
|
14033
14033
|
}), Ky = "RovingFocusGroupItem", Gy = /* @__PURE__ */ Oe((e, t) => {
|
|
14034
14034
|
const { __scopeRovingFocusGroup: r, focusable: n = !0, active: o = !1, tabStopId: a, ...i } = e, s = Nn(), l = a || s, f = By(Ky, r), u = f.currentTabStopId === l, y = gd(r), { onFocusableItemAdd: m, onFocusableItemRemove: g } = f;
|
|
14035
|
-
return
|
|
14035
|
+
return ve(() => {
|
|
14036
14036
|
if (n)
|
|
14037
14037
|
return m(), () => g();
|
|
14038
14038
|
}, [
|
|
@@ -14189,7 +14189,7 @@ const Qy = Hy, eb = Gy, bd = "Tabs", [tb, G6] = gr(bd, [
|
|
|
14189
14189
|
})));
|
|
14190
14190
|
}), lb = "TabsContent", cb = /* @__PURE__ */ Oe((e, t) => {
|
|
14191
14191
|
const { __scopeTabs: r, value: n, forceMount: o, children: a, ...i } = e, s = ki(lb, r), l = _d(s.baseId, n), f = kd(s.baseId, n), u = n === s.value, y = Pe(u);
|
|
14192
|
-
return
|
|
14192
|
+
return ve(() => {
|
|
14193
14193
|
const m = requestAnimationFrame(
|
|
14194
14194
|
() => y.current = !1
|
|
14195
14195
|
);
|
|
@@ -14373,7 +14373,7 @@ class Cb {
|
|
|
14373
14373
|
}
|
|
14374
14374
|
function Cd({ delayMs: e, children: t, fallback: r, className: n }) {
|
|
14375
14375
|
const [o, a] = ie(!1);
|
|
14376
|
-
return
|
|
14376
|
+
return ve(() => {
|
|
14377
14377
|
const i = setTimeout(() => {
|
|
14378
14378
|
a(!0);
|
|
14379
14379
|
}, e);
|
|
@@ -14394,7 +14394,7 @@ function qd({
|
|
|
14394
14394
|
const l = n, f = Pe(null), [u, y] = ie(!1), m = () => {
|
|
14395
14395
|
typeof window < "u" && (navigator.clipboard.writeText(t), y(!0));
|
|
14396
14396
|
};
|
|
14397
|
-
return
|
|
14397
|
+
return ve(() => {
|
|
14398
14398
|
var g;
|
|
14399
14399
|
(g = f.current) == null || g.addEventListener(
|
|
14400
14400
|
"wheel",
|
|
@@ -14403,7 +14403,7 @@ function qd({
|
|
|
14403
14403
|
},
|
|
14404
14404
|
{ passive: !1 }
|
|
14405
14405
|
);
|
|
14406
|
-
}, []),
|
|
14406
|
+
}, []), ve(() => {
|
|
14407
14407
|
u && setTimeout(() => {
|
|
14408
14408
|
y(!1);
|
|
14409
14409
|
}, 2e3);
|
|
@@ -14868,7 +14868,7 @@ const Db = async (e, {
|
|
|
14868
14868
|
validateToken: async () => !1,
|
|
14869
14869
|
__switchOrganizationInContext: async () => {
|
|
14870
14870
|
}
|
|
14871
|
-
}, Vo =
|
|
14871
|
+
}, Vo = $r(Sd);
|
|
14872
14872
|
Vo.displayName = "SlashIDContext";
|
|
14873
14873
|
const Jr = "@slashid/USER_TOKEN", Pb = (e) => {
|
|
14874
14874
|
switch (e) {
|
|
@@ -14997,7 +14997,7 @@ const Jr = "@slashid/USER_TOKEN", Pb = (e) => {
|
|
|
14997
14997
|
},
|
|
14998
14998
|
[s]
|
|
14999
14999
|
);
|
|
15000
|
-
|
|
15000
|
+
ve(() => {
|
|
15001
15001
|
if (h === "initial") {
|
|
15002
15002
|
const T = new ko({
|
|
15003
15003
|
oid: u,
|
|
@@ -15030,7 +15030,7 @@ const Jr = "@slashid/USER_TOKEN", Pb = (e) => {
|
|
|
15030
15030
|
},
|
|
15031
15031
|
[s, z, $]
|
|
15032
15032
|
);
|
|
15033
|
-
|
|
15033
|
+
ve(() => {
|
|
15034
15034
|
if (h !== "loaded")
|
|
15035
15035
|
return;
|
|
15036
15036
|
const T = C.current, Z = q.current, I = async () => m && await M(m) ? re(m) : null, D = async () => {
|
|
@@ -15150,13 +15150,13 @@ const Ed = {
|
|
|
15150
15150
|
recoverNonReachableHandleType: "recoverNonReachableHandleType"
|
|
15151
15151
|
};
|
|
15152
15152
|
function Tb(e) {
|
|
15153
|
-
return
|
|
15153
|
+
return Sr.isSlashIDError(e) && e.name === Ed.recoverNonReachableHandleType;
|
|
15154
15154
|
}
|
|
15155
15155
|
function Lb(e) {
|
|
15156
|
-
return
|
|
15156
|
+
return Sr.isSlashIDError(e) && e.name === Sr.ERROR_NAMES.noPasswordSet;
|
|
15157
15157
|
}
|
|
15158
15158
|
function Ob(e) {
|
|
15159
|
-
return
|
|
15159
|
+
return Sr.isSlashIDError(e) && e.name == "FlowCancelledError";
|
|
15160
15160
|
}
|
|
15161
15161
|
const Rd = [
|
|
15162
15162
|
"email_address",
|
|
@@ -15280,7 +15280,7 @@ const ba = (e) => ({
|
|
|
15280
15280
|
if (!((s = t.config.handle) != null && s.type) || !nm.isReachablePersonHandleType(t.config.handle.type)) {
|
|
15281
15281
|
e({
|
|
15282
15282
|
type: "sid_login.error",
|
|
15283
|
-
error: new
|
|
15283
|
+
error: new Sr.SlashIDError({
|
|
15284
15284
|
name: Ed.recoverNonReachableHandleType,
|
|
15285
15285
|
message: "Recovery requires a reachable handle type.",
|
|
15286
15286
|
context: t
|
|
@@ -15442,14 +15442,14 @@ function rw(e = {}) {
|
|
|
15442
15442
|
}
|
|
15443
15443
|
function nw(e = {}) {
|
|
15444
15444
|
const { logIn: t, mfa: r, recover: n, user: o, sdkState: a, sid: i } = er(), s = Pe(rw(e)), [l, f] = ie(s.current.state);
|
|
15445
|
-
return
|
|
15445
|
+
return ve(() => {
|
|
15446
15446
|
const u = s.current;
|
|
15447
15447
|
return u.subscribe(f), () => u.unsubscribe(f);
|
|
15448
|
-
}, []),
|
|
15448
|
+
}, []), ve(() => {
|
|
15449
15449
|
a === "ready" && (s.current.setRecover(n), s.current.setCancel(() => {
|
|
15450
15450
|
i == null || i.publish("flowCancelled", void 0);
|
|
15451
15451
|
}));
|
|
15452
|
-
}, [n, a, i]),
|
|
15452
|
+
}, [n, a, i]), ve(() => {
|
|
15453
15453
|
o && !o.anonymous ? s.current.setLogIn(r) : s.current.setLogIn(t);
|
|
15454
15454
|
}, [t, r, o]), l;
|
|
15455
15455
|
}
|
|
@@ -15591,9 +15591,9 @@ const Ld = {
|
|
|
15591
15591
|
"authenticating.downloadCodes": "Download codes",
|
|
15592
15592
|
"authenticating.message.webauthn": "If you are registering for the first time, you will receive an email at {{EMAIL_ADDRESS}} to verify your email address.",
|
|
15593
15593
|
"authenticating.title.webauthn": "You'll be prompted to validate your login via your device",
|
|
15594
|
-
"authenticating.message.emailLink": "We have sent you a link via email to {{EMAIL_ADDRESS}}. Follow the link provided to complete your
|
|
15594
|
+
"authenticating.message.emailLink": "We have sent you a link via email to {{EMAIL_ADDRESS}}. Follow the link provided to complete your authentication.",
|
|
15595
15595
|
"authenticating.title.emailLink": "Check your email",
|
|
15596
|
-
"authenticating.message.smsLink": "We have sent you a link via text to {{PHONE_NUMBER}}. Follow the link provided to complete your
|
|
15596
|
+
"authenticating.message.smsLink": "We have sent you a link via text to {{PHONE_NUMBER}}. Follow the link provided to complete your authentication.",
|
|
15597
15597
|
"authenticating.title.smsLink": "Check your phone",
|
|
15598
15598
|
"authenticating.message.emailOtp": "We have sent you a code via email to {{EMAIL_ADDRESS}}. Please insert it here.",
|
|
15599
15599
|
"authenticating.title.emailOtp": "Check your email",
|
|
@@ -15622,10 +15622,13 @@ const Ld = {
|
|
|
15622
15622
|
"error.subtitle.recoverNonReachableHandleType": "Please use an email address or a phone number to reset your password.",
|
|
15623
15623
|
"error.title.noPasswordSet": "No password set",
|
|
15624
15624
|
"error.subtitle.noPasswordSet": "Contact support to set a password or log in with your email or phone number.",
|
|
15625
|
+
"error.title.authenticationExpired": "Log in expired",
|
|
15626
|
+
"error.subtitle.authenticationExpired": "Your attempt to login took too long, try again to continue.",
|
|
15625
15627
|
"error.retry": "Try again",
|
|
15626
15628
|
"error.retry.rateLimit": "Try again",
|
|
15627
15629
|
"error.retry.noPasswordSet": "Go back to login",
|
|
15628
15630
|
"error.retry.recoverNonReachableHandleType": "Go back to login",
|
|
15631
|
+
"error.retry.authenticationExpired": "Try again",
|
|
15629
15632
|
"error.contactSupport.prompt": "Need help?",
|
|
15630
15633
|
"error.contactSupport.cta": "Contact support",
|
|
15631
15634
|
"factor.webauthn": "Passkeys",
|
|
@@ -15758,7 +15761,7 @@ const Ld = {
|
|
|
15758
15761
|
showBanner: !0,
|
|
15759
15762
|
defaultCountryCode: "US",
|
|
15760
15763
|
supportURL: void 0
|
|
15761
|
-
}, $i =
|
|
15764
|
+
}, $i = $r(po);
|
|
15762
15765
|
$i.displayName = "SlashIDConfigurationContext";
|
|
15763
15766
|
const dw = ({
|
|
15764
15767
|
text: e,
|
|
@@ -15857,7 +15860,7 @@ const Fr = () => /* @__PURE__ */ d.jsx(
|
|
|
15857
15860
|
isSubmitting: f === "submitting",
|
|
15858
15861
|
hasRetried: h
|
|
15859
15862
|
});
|
|
15860
|
-
|
|
15863
|
+
ve(() => {
|
|
15861
15864
|
const C = () => u("input"), w = () => {
|
|
15862
15865
|
s("otp", {
|
|
15863
15866
|
message: r["authenticating.otpInput.submit.error"]
|
|
@@ -15893,7 +15896,7 @@ const Fr = () => /* @__PURE__ */ d.jsx(
|
|
|
15893
15896
|
), q = () => {
|
|
15894
15897
|
e.retry(), l("otp"), u("submitting");
|
|
15895
15898
|
};
|
|
15896
|
-
return
|
|
15899
|
+
return ve(() => {
|
|
15897
15900
|
var C;
|
|
15898
15901
|
Eo(o.otp) && ((C = y.current) == null || C.click());
|
|
15899
15902
|
}, [o]), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
@@ -16071,7 +16074,7 @@ const Rw = ({ flowState: e, performLogin: t }) => {
|
|
|
16071
16074
|
}
|
|
16072
16075
|
}
|
|
16073
16076
|
}, [e, h]);
|
|
16074
|
-
return
|
|
16077
|
+
return ve(() => {
|
|
16075
16078
|
const $ = () => p("setPassword"), z = () => p("verifyPassword"), L = () => u("password", {
|
|
16076
16079
|
message: s["authenticating.setPassword.validation.incorrect"]
|
|
16077
16080
|
}), K = (U) => u("password", {
|
|
@@ -16183,7 +16186,7 @@ function Iw(e) {
|
|
|
16183
16186
|
}
|
|
16184
16187
|
function zw({ flowState: e, performLogin: t }) {
|
|
16185
16188
|
const { sid: r } = er(), { text: n } = Ke(), { values: o, registerField: a, registerSubmit: i, setError: s, clearError: l } = Br(), [f, u] = ie("initial"), { title: y, message: m, submit: g } = Iw(f), [h, p] = ie(!1), [v, b] = ie(!1), [_, k] = ie(!1), q = Pe(null), [C, w] = ie(""), [$, z] = ie("");
|
|
16186
|
-
|
|
16189
|
+
ve(() => {
|
|
16187
16190
|
const U = () => {
|
|
16188
16191
|
s("totp", {
|
|
16189
16192
|
message: n["authenticating.otpInput.submit.error"]
|
|
@@ -16233,7 +16236,7 @@ function zw({ flowState: e, performLogin: t }) {
|
|
|
16233
16236
|
},
|
|
16234
16237
|
[r, o]
|
|
16235
16238
|
);
|
|
16236
|
-
return
|
|
16239
|
+
return ve(() => {
|
|
16237
16240
|
var U;
|
|
16238
16241
|
Eo(o.totp) && ((U = q.current) == null || U.click());
|
|
16239
16242
|
}, [o]), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
@@ -16357,9 +16360,9 @@ function rl({ textKey: e, disabled: t }) {
|
|
|
16357
16360
|
const Dw = ({ flowState: e, performLogin: t }) => {
|
|
16358
16361
|
var r;
|
|
16359
16362
|
const { factor: n, handle: o } = e.context.config, { title: a, message: i, tokens: s } = Td(n, o), [l, f] = ie(!0);
|
|
16360
|
-
return
|
|
16363
|
+
return ve(() => {
|
|
16361
16364
|
l || f(!0);
|
|
16362
|
-
}, [l]),
|
|
16365
|
+
}, [l]), ve(() => {
|
|
16363
16366
|
t();
|
|
16364
16367
|
}, [t]), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
16365
16368
|
/* @__PURE__ */ d.jsx(Wo, { onCancel: () => e.cancel() }),
|
|
@@ -16448,11 +16451,17 @@ const Pw = ({ flowState: e }) => {
|
|
|
16448
16451
|
), pn = () => he.useContext(Kd);
|
|
16449
16452
|
var Lw = "_4i40i60", Ow = "_4i40i61";
|
|
16450
16453
|
const Nw = () => /* @__PURE__ */ d.jsx(Fn, { variant: "red", shouldAnimate: !1, className: "sid-form-error-icon", children: /* @__PURE__ */ d.jsx(jm, {}) });
|
|
16451
|
-
function Mw(e) {
|
|
16452
|
-
return
|
|
16454
|
+
async function Mw(e) {
|
|
16455
|
+
return await Sr.isTimeoutError(e) ? "timeout" : Sr.isResponseError(e) ? "response" : Sr.isRateLimitError(e) ? "rateLimit" : Tb(e) ? "recoverNonReachableHandleType" : Lb(e) ? "noPasswordSet" : "unknown";
|
|
16453
16456
|
}
|
|
16454
16457
|
function Fw(e) {
|
|
16455
16458
|
switch (e) {
|
|
16459
|
+
case "timeout":
|
|
16460
|
+
return {
|
|
16461
|
+
title: "error.title.authenticationExpired",
|
|
16462
|
+
description: "error.subtitle.authenticationExpired",
|
|
16463
|
+
retry: "error.retry.authenticationExpired"
|
|
16464
|
+
};
|
|
16456
16465
|
case "rateLimit":
|
|
16457
16466
|
return {
|
|
16458
16467
|
title: "error.title.rateLimit",
|
|
@@ -16481,6 +16490,8 @@ function Fw(e) {
|
|
|
16481
16490
|
}
|
|
16482
16491
|
function Uw(e) {
|
|
16483
16492
|
switch (e) {
|
|
16493
|
+
case "timeout":
|
|
16494
|
+
return "retry";
|
|
16484
16495
|
case "rateLimit":
|
|
16485
16496
|
return "retry";
|
|
16486
16497
|
case "recoverNonReachableHandleType":
|
|
@@ -16524,7 +16535,15 @@ const Di = ({ children: e }) => {
|
|
|
16524
16535
|
};
|
|
16525
16536
|
Di.displayName = "Form.Error";
|
|
16526
16537
|
const Vw = ({ flowState: e }) => {
|
|
16527
|
-
const { text: t } = Ke(), r
|
|
16538
|
+
const { text: t } = Ke(), [r, n] = ie(null);
|
|
16539
|
+
if (ve(() => {
|
|
16540
|
+
n(null), (async () => {
|
|
16541
|
+
const s = await Mw(e.context.error);
|
|
16542
|
+
n(s);
|
|
16543
|
+
})();
|
|
16544
|
+
}, [e.context.error]), !r)
|
|
16545
|
+
return /* @__PURE__ */ d.jsx(d.Fragment, {});
|
|
16546
|
+
const { title: o, description: a } = Fw(r), i = Uw(r);
|
|
16528
16547
|
return /* @__PURE__ */ d.jsxs("article", { "data-testid": "sid-form-error-state", children: [
|
|
16529
16548
|
/* @__PURE__ */ d.jsx(
|
|
16530
16549
|
On,
|
|
@@ -16536,12 +16555,12 @@ const Vw = ({ flowState: e }) => {
|
|
|
16536
16555
|
children: t["authenticating.back"]
|
|
16537
16556
|
}
|
|
16538
16557
|
),
|
|
16539
|
-
/* @__PURE__ */ d.jsx(gt, { as: "h1", t:
|
|
16558
|
+
/* @__PURE__ */ d.jsx(gt, { as: "h1", t: o, variant: { size: "2xl-title", weight: "bold" } }),
|
|
16540
16559
|
/* @__PURE__ */ d.jsx(
|
|
16541
16560
|
gt,
|
|
16542
16561
|
{
|
|
16543
16562
|
as: "h2",
|
|
16544
|
-
t:
|
|
16563
|
+
t: a,
|
|
16545
16564
|
variant: { color: "contrast", weight: "semibold" }
|
|
16546
16565
|
}
|
|
16547
16566
|
),
|
|
@@ -16552,7 +16571,7 @@ const Vw = ({ flowState: e }) => {
|
|
|
16552
16571
|
type: "submit",
|
|
16553
16572
|
variant: "primary",
|
|
16554
16573
|
testId: "sid-form-error-retry-button",
|
|
16555
|
-
onClick: () => e.retry(
|
|
16574
|
+
onClick: () => e.retry(i),
|
|
16556
16575
|
children: t["error.retry"]
|
|
16557
16576
|
}
|
|
16558
16577
|
),
|
|
@@ -16727,11 +16746,11 @@ const ao = ({
|
|
|
16727
16746
|
), { text: i, defaultCountryCode: s } = Ke(), { registerField: l, values: f, resetForm: u } = Br(), y = a.length > 1, m = Xb(r ?? ""), [g, h] = ie(
|
|
16728
16747
|
di((m == null ? void 0 : m.countryCode) ?? s)
|
|
16729
16748
|
);
|
|
16730
|
-
|
|
16749
|
+
ve(() => {
|
|
16731
16750
|
n(a[0]);
|
|
16732
|
-
}, [a, n]),
|
|
16751
|
+
}, [a, n]), ve(() => u, [u]), ve(() => {
|
|
16733
16752
|
o.current.flag = g;
|
|
16734
|
-
}, [g, o]),
|
|
16753
|
+
}, [g, o]), ve(() => {
|
|
16735
16754
|
const v = f[e];
|
|
16736
16755
|
o.current = {
|
|
16737
16756
|
...o.current,
|
|
@@ -16981,19 +17000,19 @@ const Oi = ({
|
|
|
16981
17000
|
return typeof e == "function" ? /* @__PURE__ */ d.jsx(d.Fragment, { children: e({ factors: n, handleClick: r }) }) : he.Children.count(e) > 0 ? /* @__PURE__ */ d.jsx(d.Fragment, { children: e }) : o;
|
|
16982
17001
|
};
|
|
16983
17002
|
Oi.displayName = "SSO";
|
|
16984
|
-
const
|
|
17003
|
+
const Dr = () => /* @__PURE__ */ d.jsxs("article", { "data-testid": "sid-form-initial-state", children: [
|
|
16985
17004
|
/* @__PURE__ */ d.jsx(Pi, {}),
|
|
16986
17005
|
/* @__PURE__ */ d.jsx(Li, {}),
|
|
16987
17006
|
/* @__PURE__ */ d.jsx(jn, {}),
|
|
16988
17007
|
/* @__PURE__ */ d.jsx(Jd, {}),
|
|
16989
17008
|
/* @__PURE__ */ d.jsx(Oi, {})
|
|
16990
17009
|
] });
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
17010
|
+
Dr.Logo = Pi;
|
|
17011
|
+
Dr.Header = Li;
|
|
17012
|
+
Dr.Controls = jn;
|
|
17013
|
+
Dr.Divider = Jd;
|
|
17014
|
+
Dr.OIDC = Zd;
|
|
17015
|
+
Dr.SSO = Oi;
|
|
16997
17016
|
var n2 = "gwp8o20", o2 = "_1iedw350";
|
|
16998
17017
|
const a2 = () => /* @__PURE__ */ d.jsx(
|
|
16999
17018
|
gt,
|
|
@@ -17021,7 +17040,7 @@ const a2 = () => /* @__PURE__ */ d.jsx(
|
|
|
17021
17040
|
} catch {
|
|
17022
17041
|
}
|
|
17023
17042
|
}, []);
|
|
17024
|
-
return
|
|
17043
|
+
return ve(() => (e && t && t.subscribe("idFlowSucceeded", n), () => {
|
|
17025
17044
|
e && t && t.unsubscribe("idFlowSucceeded", n);
|
|
17026
17045
|
}), [e, t, n]), { lastHandle: r };
|
|
17027
17046
|
};
|
|
@@ -17161,7 +17180,7 @@ const Ni = ({
|
|
|
17161
17180
|
flag: void 0
|
|
17162
17181
|
}), [y, m] = he.useState(), { status: g } = s, h = he.useMemo(() => ({
|
|
17163
17182
|
footer: l ? /* @__PURE__ */ d.jsx(a2, {}) : null,
|
|
17164
|
-
initial: g === "initial" ? /* @__PURE__ */ d.jsx(
|
|
17183
|
+
initial: g === "initial" ? /* @__PURE__ */ d.jsx(Dr, {}) : void 0,
|
|
17165
17184
|
authenticating: g === "authenticating" ? /* @__PURE__ */ d.jsx(Pw, { flowState: s }) : void 0,
|
|
17166
17185
|
success: g === "success" ? /* @__PURE__ */ d.jsx(Tw, { flowState: s }) : void 0,
|
|
17167
17186
|
error: g === "error" ? /* @__PURE__ */ d.jsx(Di, {}) : void 0
|
|
@@ -17199,7 +17218,7 @@ const Ni = ({
|
|
|
17199
17218
|
}
|
|
17200
17219
|
);
|
|
17201
17220
|
};
|
|
17202
|
-
Ni.Initial =
|
|
17221
|
+
Ni.Initial = Dr;
|
|
17203
17222
|
Ni.Error = Di;
|
|
17204
17223
|
var m2 = "sluhu72";
|
|
17205
17224
|
const g2 = Oe(
|
|
@@ -17559,18 +17578,18 @@ function q2() {
|
|
|
17559
17578
|
if (Ue && O && typeof Ue.stack == "string") {
|
|
17560
17579
|
for (var V = Ue.stack.split(`
|
|
17561
17580
|
`), De = O.stack.split(`
|
|
17562
|
-
`), we = V.length - 1,
|
|
17563
|
-
|
|
17564
|
-
for (; we >= 1 &&
|
|
17565
|
-
if (V[we] !== De[
|
|
17566
|
-
if (we !== 1 ||
|
|
17581
|
+
`), we = V.length - 1, ye = De.length - 1; we >= 1 && ye >= 0 && V[we] !== De[ye]; )
|
|
17582
|
+
ye--;
|
|
17583
|
+
for (; we >= 1 && ye >= 0; we--, ye--)
|
|
17584
|
+
if (V[we] !== De[ye]) {
|
|
17585
|
+
if (we !== 1 || ye !== 1)
|
|
17567
17586
|
do
|
|
17568
|
-
if (we--,
|
|
17587
|
+
if (we--, ye--, ye < 0 || V[we] !== De[ye]) {
|
|
17569
17588
|
var Me = `
|
|
17570
17589
|
` + V[we].replace(" at new ", " at ");
|
|
17571
17590
|
return c.displayName && Me.includes("<anonymous>") && (Me = Me.replace("<anonymous>", c.displayName)), typeof c == "function" && se.set(c, Me), Me;
|
|
17572
17591
|
}
|
|
17573
|
-
while (we >= 1 &&
|
|
17592
|
+
while (we >= 1 && ye >= 0);
|
|
17574
17593
|
break;
|
|
17575
17594
|
}
|
|
17576
17595
|
}
|
|
@@ -17718,7 +17737,7 @@ function q2() {
|
|
|
17718
17737
|
});
|
|
17719
17738
|
}
|
|
17720
17739
|
}
|
|
17721
|
-
var
|
|
17740
|
+
var Pr = function(c, x, R, O, X, te, j) {
|
|
17722
17741
|
var V = {
|
|
17723
17742
|
// This tag allows us to uniquely identify this as a React Element
|
|
17724
17743
|
$$typeof: t,
|
|
@@ -17759,19 +17778,19 @@ function q2() {
|
|
|
17759
17778
|
j[te] === void 0 && (j[te] = we[te]);
|
|
17760
17779
|
}
|
|
17761
17780
|
if (V || De) {
|
|
17762
|
-
var
|
|
17763
|
-
V && Ft(j,
|
|
17781
|
+
var ye = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
17782
|
+
V && Ft(j, ye), De && Hr(j, ye);
|
|
17764
17783
|
}
|
|
17765
|
-
return
|
|
17784
|
+
return Pr(c, V, De, X, O, oe.current, j);
|
|
17766
17785
|
}
|
|
17767
17786
|
}
|
|
17768
|
-
var Ht = b.ReactCurrentOwner,
|
|
17787
|
+
var Ht = b.ReactCurrentOwner, Ar = b.ReactDebugCurrentFrame;
|
|
17769
17788
|
function yt(c) {
|
|
17770
17789
|
if (c) {
|
|
17771
17790
|
var x = c._owner, R = We(c.type, c._source, x ? x.type : null);
|
|
17772
|
-
|
|
17791
|
+
Ar.setExtraStackFrame(R);
|
|
17773
17792
|
} else
|
|
17774
|
-
|
|
17793
|
+
Ar.setExtraStackFrame(null);
|
|
17775
17794
|
}
|
|
17776
17795
|
var rr;
|
|
17777
17796
|
rr = !1;
|
|
@@ -17886,9 +17905,9 @@ Check the top-level render call using <` + R + ">.");
|
|
|
17886
17905
|
var we;
|
|
17887
17906
|
c === null ? we = "null" : Ge(c) ? we = "array" : c !== void 0 && c.$$typeof === t ? (we = "<" + (B(c.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : we = typeof c, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", we, V);
|
|
17888
17907
|
}
|
|
17889
|
-
var
|
|
17890
|
-
if (
|
|
17891
|
-
return
|
|
17908
|
+
var ye = gn(c, x, R, X, te);
|
|
17909
|
+
if (ye == null)
|
|
17910
|
+
return ye;
|
|
17892
17911
|
if (j) {
|
|
17893
17912
|
var Me = x.children;
|
|
17894
17913
|
if (Me !== void 0)
|
|
@@ -17902,7 +17921,7 @@ Check the top-level render call using <` + R + ">.");
|
|
|
17902
17921
|
else
|
|
17903
17922
|
de(Me, c);
|
|
17904
17923
|
}
|
|
17905
|
-
return c === n ? ae(
|
|
17924
|
+
return c === n ? ae(ye) : ue(ye), ye;
|
|
17906
17925
|
}
|
|
17907
17926
|
}
|
|
17908
17927
|
function rt(c, x, R) {
|
|
@@ -17964,7 +17983,7 @@ const $2 = ({
|
|
|
17964
17983
|
...t
|
|
17965
17984
|
}) => {
|
|
17966
17985
|
const [r, n] = ie(!1);
|
|
17967
|
-
return
|
|
17986
|
+
return ve(() => {
|
|
17968
17987
|
n(!0);
|
|
17969
17988
|
}, [r]), r ? /* @__PURE__ */ kt.jsx(Ab, { ...t, tokenStorage: "cookie", children: /* @__PURE__ */ kt.jsx(S2, { ...t, children: e }) }) : /* @__PURE__ */ kt.jsx(Xd, { ...t, children: e });
|
|
17970
17989
|
};
|
|
@@ -18933,7 +18952,7 @@ function l5(e) {
|
|
|
18933
18952
|
}
|
|
18934
18953
|
}
|
|
18935
18954
|
async function We(S, E, P) {
|
|
18936
|
-
L && L.abort(), L = null, $ = S, B = (P && P.startUninterruptedRevalidation) === !0,
|
|
18955
|
+
L && L.abort(), L = null, $ = S, B = (P && P.startUninterruptedRevalidation) === !0, Ar(w.location, w.matches), z = (P && P.preventScrollReset) === !0, K = (P && P.enableViewTransition) === !0;
|
|
18937
18956
|
let F = s || i, ne = P && P.overrideNavigation, ke = _r(F, E, l), de = (P && P.flushSync) === !0;
|
|
18938
18957
|
if (!ke) {
|
|
18939
18958
|
let at = it(404, {
|
|
@@ -18942,7 +18961,7 @@ function l5(e) {
|
|
|
18942
18961
|
matches: c,
|
|
18943
18962
|
route: x
|
|
18944
18963
|
} = Ro(F);
|
|
18945
|
-
|
|
18964
|
+
Pr(), Ie(E, {
|
|
18946
18965
|
matches: c,
|
|
18947
18966
|
loaderData: {},
|
|
18948
18967
|
errors: {
|
|
@@ -19010,7 +19029,7 @@ function l5(e) {
|
|
|
19010
19029
|
routeId: ue.route.id
|
|
19011
19030
|
})
|
|
19012
19031
|
};
|
|
19013
|
-
else if (de = await
|
|
19032
|
+
else if (de = await Or("action", S, ue, F, a, o, l, f.v7_relativeSplatPath), S.signal.aborted)
|
|
19014
19033
|
return {
|
|
19015
19034
|
shortCircuited: !0
|
|
19016
19035
|
};
|
|
@@ -19045,7 +19064,7 @@ function l5(e) {
|
|
|
19045
19064
|
}
|
|
19046
19065
|
async function wt(S, E, P, F, ne, ke, de, ue, ae, qe, rt) {
|
|
19047
19066
|
let xe = F || ka(E, ne), Ne = ne || ke || bl(xe), at = s || i, [c, x] = ul(e.history, w, P, Ne, E, f.v7_partialHydration && ue === !0, M, re, ee, Y, J, A, at, l, qe, rt);
|
|
19048
|
-
if (
|
|
19067
|
+
if (Pr((Se) => !(P && P.some((Fe) => Fe.route.id === Se)) || c && c.some((Fe) => Fe.route.id === Se)), I = ++Z, c.length === 0 && x.length === 0) {
|
|
19049
19068
|
let Se = Ce();
|
|
19050
19069
|
return Ie(E, Ae({
|
|
19051
19070
|
matches: P,
|
|
@@ -19116,7 +19135,7 @@ function l5(e) {
|
|
|
19116
19135
|
(Ue || Se.done) && ge.delete(Fe);
|
|
19117
19136
|
});
|
|
19118
19137
|
});
|
|
19119
|
-
let we = Ce(),
|
|
19138
|
+
let we = Ce(), ye = ce(I), Me = we || ye || x.length > 0;
|
|
19120
19139
|
return Ae({
|
|
19121
19140
|
loaderData: V,
|
|
19122
19141
|
errors: De
|
|
@@ -19176,7 +19195,7 @@ function l5(e) {
|
|
|
19176
19195
|
});
|
|
19177
19196
|
let ae = new AbortController(), qe = wn(e.history, P, ae.signal, de);
|
|
19178
19197
|
T.set(S, ae);
|
|
19179
|
-
let rt = Z, xe = await
|
|
19198
|
+
let rt = Z, xe = await Or("action", qe, F, ne, a, o, l, f.v7_relativeSplatPath);
|
|
19180
19199
|
if (qe.signal.aborted) {
|
|
19181
19200
|
T.get(S) === ae && T.delete(S);
|
|
19182
19201
|
return;
|
|
@@ -19247,13 +19266,13 @@ function l5(e) {
|
|
|
19247
19266
|
if (ae.signal.aborted)
|
|
19248
19267
|
return;
|
|
19249
19268
|
ae.signal.removeEventListener("abort", j), D.delete(S), T.delete(S), te.forEach((Fe) => T.delete(Fe.key));
|
|
19250
|
-
let
|
|
19251
|
-
if (
|
|
19252
|
-
if (
|
|
19253
|
-
let Fe = te[
|
|
19269
|
+
let ye = vl(V);
|
|
19270
|
+
if (ye) {
|
|
19271
|
+
if (ye.idx >= X.length) {
|
|
19272
|
+
let Fe = te[ye.idx - X.length].key;
|
|
19254
19273
|
A.add(Fe);
|
|
19255
19274
|
}
|
|
19256
|
-
return Tt(w,
|
|
19275
|
+
return Tt(w, ye.result);
|
|
19257
19276
|
}
|
|
19258
19277
|
let {
|
|
19259
19278
|
loaderData: Me,
|
|
@@ -19281,7 +19300,7 @@ function l5(e) {
|
|
|
19281
19300
|
});
|
|
19282
19301
|
let ae = new AbortController(), qe = wn(e.history, P, ae.signal);
|
|
19283
19302
|
T.set(S, ae);
|
|
19284
|
-
let rt = Z, xe = await
|
|
19303
|
+
let rt = Z, xe = await Or("loader", qe, F, ne, a, o, l, f.v7_relativeSplatPath);
|
|
19285
19304
|
if (kr(xe) && (xe = await ku(xe, qe.signal, !0) || xe), T.get(S) === ae && T.delete(S), !qe.signal.aborted) {
|
|
19286
19305
|
if (Y.has(S)) {
|
|
19287
19306
|
ft(S, br(void 0));
|
|
@@ -19355,7 +19374,7 @@ function l5(e) {
|
|
|
19355
19374
|
}
|
|
19356
19375
|
}
|
|
19357
19376
|
async function Ge(S, E, P, F, ne) {
|
|
19358
|
-
let ke = await Promise.all([...P.map((ae) =>
|
|
19377
|
+
let ke = await Promise.all([...P.map((ae) => Or("loader", ne, ae, E, a, o, l, f.v7_relativeSplatPath)), ...F.map((ae) => ae.matches && ae.match && ae.controller ? Or("loader", wn(e.history, ae.path, ae.controller.signal), ae.match, ae.matches, a, o, l, f.v7_relativeSplatPath) : {
|
|
19359
19378
|
type: Ve.error,
|
|
19360
19379
|
error: it(404, {
|
|
19361
19380
|
pathname: ae.path
|
|
@@ -19368,7 +19387,7 @@ function l5(e) {
|
|
|
19368
19387
|
};
|
|
19369
19388
|
}
|
|
19370
19389
|
function xt() {
|
|
19371
|
-
M = !0, re.push(...
|
|
19390
|
+
M = !0, re.push(...Pr()), J.forEach((S, E) => {
|
|
19372
19391
|
T.has(E) && (ee.push(E), Qe(E));
|
|
19373
19392
|
});
|
|
19374
19393
|
}
|
|
@@ -19467,7 +19486,7 @@ function l5(e) {
|
|
|
19467
19486
|
}))
|
|
19468
19487
|
return ke;
|
|
19469
19488
|
}
|
|
19470
|
-
function
|
|
19489
|
+
function Pr(S) {
|
|
19471
19490
|
let E = [];
|
|
19472
19491
|
return ge.forEach((P, F) => {
|
|
19473
19492
|
(!S || S(F)) && (P.cancel(), E.push(F), ge.delete(F));
|
|
@@ -19488,7 +19507,7 @@ function l5(e) {
|
|
|
19488
19507
|
function Ht(S, E) {
|
|
19489
19508
|
return g && g(S, E.map((F) => eu(F, w.loaderData))) || S.key;
|
|
19490
19509
|
}
|
|
19491
|
-
function
|
|
19510
|
+
function Ar(S, E) {
|
|
19492
19511
|
if (m && h) {
|
|
19493
19512
|
let P = Ht(S, E);
|
|
19494
19513
|
m[P] = h();
|
|
@@ -19684,7 +19703,7 @@ function c5(e, t) {
|
|
|
19684
19703
|
type: Ve.error,
|
|
19685
19704
|
error: q
|
|
19686
19705
|
};
|
|
19687
|
-
} else if (b = await
|
|
19706
|
+
} else if (b = await Or("action", m, h, g, r, o, n, a.v7_relativeSplatPath, {
|
|
19688
19707
|
isStaticRequest: !0,
|
|
19689
19708
|
isRouteRequest: v,
|
|
19690
19709
|
requestContext: p
|
|
@@ -19777,7 +19796,7 @@ function c5(e, t) {
|
|
|
19777
19796
|
loaderHeaders: {},
|
|
19778
19797
|
activeDeferreds: null
|
|
19779
19798
|
};
|
|
19780
|
-
let q = await Promise.all([...k.map((z) =>
|
|
19799
|
+
let q = await Promise.all([...k.map((z) => Or("loader", m, z, g, r, o, n, a.v7_relativeSplatPath, {
|
|
19781
19800
|
isStaticRequest: !0,
|
|
19782
19801
|
isRouteRequest: b,
|
|
19783
19802
|
requestContext: h
|
|
@@ -20038,7 +20057,7 @@ async function hl(e, t, r) {
|
|
|
20038
20057
|
lazy: void 0
|
|
20039
20058
|
}));
|
|
20040
20059
|
}
|
|
20041
|
-
async function
|
|
20060
|
+
async function Or(e, t, r, n, o, a, i, s, l) {
|
|
20042
20061
|
l === void 0 && (l = {});
|
|
20043
20062
|
let f, u, y, m = (p) => {
|
|
20044
20063
|
let v, b = new Promise((_, k) => v = k);
|