@coinbase/cdp-api-client 0.0.121 → 0.0.123

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/esm/index.js CHANGED
@@ -1,114 +1,140 @@
1
1
  import { Analytics as e } from "./index2.js";
2
2
  import "./index3.js";
3
3
  import { VERSION as t } from "./index4.js";
4
- import { CapabilityName as s, CreateEndUserBtcAccountBodyAddressType as c, CreateEndUserBtcAccountBodyNetwork as E, DeveloperJWTAuthenticationType as d, EmailAuthenticationType as A, EndUserBtcAccountAddressType as u, EndUserBtcAccountNetwork as p, EndUserOnrampFeeType as m, EndUserOnrampOrderStatus as h, ErrorType as l, EvmEip7702DelegationNetwork as U, EvmEip7702DelegationOperationStatus as g, EvmSwapsNetwork as S, EvmUserOperationNetwork as y, EvmUserOperationStatus as v, InitiateEmailAuthenticationNextStepType as T, InitiateEmailAuthenticationRequestType as f, InitiateSiweAuthenticationRequestType as W, InitiateSmsAuthenticationNextStepType as k, InitiateSmsAuthenticationRequestType as O, InitiateSmsMfaEnrollmentType as w, InitiateTotpMfaEnrollmentType as B, IosAttestationRegistrationResponsePlatform as M, MfaMethod as N, Network as P, OAuth2ProviderType as C, OtpEmailLogoModerationStatus as I, RefreshAccessTokenBodyGrantType as D, SendEvmAssetWithEndUserAccountBodyNetwork as R, SendEvmTransactionWithEndUserAccountBodyNetwork as b, SendSolanaAssetWithEndUserAccountBodyNetwork as x, SendSolanaTransactionWithEndUserAccountBodyNetwork as F, SignBtcHashWithEndUserAccountBodyChange as H, SiweAuthenticationType as V, SmsAuthenticationType as q, SpendPermissionNetwork as j } from "./index5.js";
5
- import { configureCdpApiClient as J, setAuthManager as L } from "./index6.js";
6
- import { APIError as z, HttpErrorType as K, RefreshTokenUnavailableError as Q, UnknownApiError as X, UnknownError as Y, isOpenAPIError as Z, isRefreshTokenUnavailableError as $, isTransientTokenReadError as ee } from "./index7.js";
7
- import { authenticateUserWithCustomAuth as ne, createDelegationForEndUser as re, createDelegationForEndUserAccount as ie, createEndUserApplePayOnrampOrder as oe, createEndUserBtcAccount as ae, createEndUserEvmAccount as se, createEndUserEvmSmartAccount as ce, createEndUserEvmSwap as Ee, createEndUserSolanaAccount as de, createEvmEip7702DelegationWithEndUserAccount as Ae, createSpendPermissionWithEndUserAccount as ue, enableSpendPermissionWithEndUserAccount as pe, exportEndUserEvmAccount as me, exportEndUserSolanaAccount as he, generateAttestationChallenge as le, getAuthenticatedEndUser as Ue, getDelegationForEndUser as ge, getDelegationForEndUserAccount as Se, getEndUserEvmSwapPrice as ye, getEvmEip7702DelegationOperationByIdWithEndUserAccount as ve, getMfaConfig as Te, getProjectConfig as fe, getUserOperationWithEndUserAccount as We, initiateAuthentication as ke, initiateMfaEnrollment as Oe, initiateMfaEnrollment2 as we, initiateMfaVerification as Be, listSpendPermissionsWithEndUserAccount as Me, logOutEndUser as Ne, receiveOAuthCallback as Pe, receiveOAuthCallbackPost as Ce, recordMfaEnrollmentPrompted as Ie, refreshAccessToken as De, registerAttestation as Re, registerTemporaryWalletSecret as be, revokeDelegationForEndUser as xe, revokeDelegationForEndUserAccount as Fe, revokeSpendPermissionWithEndUserAccount as He, sendEvmAssetWithEndUserAccount as Ve, sendEvmTransactionWithEndUserAccount as qe, sendSolanaAssetWithEndUserAccount as je, sendSolanaTransactionWithEndUserAccount as Ge, sendUserOperationWithEndUserAccount as Je, signBtcHashWithEndUserAccount as Le, signEvmHashWithEndUserAccount as _e, signEvmMessageWithEndUserAccount as ze, signEvmTransactionWithEndUserAccount as Ke, signEvmTypedDataWithEndUserAccount as Qe, signSolanaHashWithEndUserAccount as Xe, signSolanaMessageWithEndUserAccount as Ye, signSolanaTransactionWithEndUserAccount as Ze, submitMfaEnrollment as $e, submitMfaVerification as et, verifyEmailAuthentication as tt, verifyOAuthCode as nt, verifyOAuthEndUserIdentity as rt, verifySiweAuthentication as it, verifySmsAuthentication as ot } from "./index8.js";
4
+ import { CapabilityName as s, CreateEndUserBtcAccountBodyAddressType as c, CreateEndUserBtcAccountBodyNetwork as d, DeveloperJWTAuthenticationType as E, EmailAuthenticationType as m, EndUserBtcAccountAddressType as p, EndUserBtcAccountNetwork as l, EndUserOnrampFeeType as u, EndUserOnrampOrderStatus as A, ErrorType as h, EvmEip7702DelegationNetwork as y, EvmEip7702DelegationOperationStatus as U, EvmSwapsNetwork as S, EvmUserOperationNetwork as g, EvmUserOperationStatus as T, InitiateEmailAuthenticationNextStepType as f, InitiateEmailAuthenticationRequestType as k, InitiatePasskeyMfaEnrollmentType as v, InitiateSiweAuthenticationRequestType as P, InitiateSmsAuthenticationNextStepType as W, InitiateSmsAuthenticationRequestType as O, InitiateSmsMfaEnrollmentType as w, InitiateTotpMfaEnrollmentType as B, IosAttestationRegistrationResponsePlatform as I, MfaMethod as M, Network as C, OAuth2ProviderType as N, OnrampQuotePaymentMethodTypeId as D, OtpEmailLogoStatus as R, PasskeySummaryTransportsItem as V, PasskeyUserVerification as b, RefreshAccessTokenBodyGrantType as X, SendEvmAssetWithEndUserAccountBodyNetwork as x, SendEvmTransactionWithEndUserAccountBodyNetwork as F, SendSolanaAssetWithEndUserAccountBodyNetwork as q, SendSolanaTransactionWithEndUserAccountBodyNetwork as H, SignBtcHashWithEndUserAccountBodyChange as j, SiweAuthenticationType as G, SmsAuthenticationType as J, SpendPermissionNetwork as L, SubmitPasskeyRegistrationType as Q, SubmitPasskeyVerificationType as _, X402BatchSettlementClaimPayloadType as z, X402BatchSettlementDepositPayloadType as K, X402BatchSettlementRefundPayloadType as Y, X402BatchSettlementSettlePayloadType as Z, X402BatchSettlementVoucherPayloadType as $, X402V1Network as ee, X402V1PaymentPayloadScheme as te, X402V1PaymentRequirementsScheme as ne, X402V2Network as re, X402V2PaymentRequirementsScheme as oe, X402Version as ie } from "./index5.js";
5
+ import { configureCdpApiClient as se, setAuthManager as ce, setCookieDomain as de } from "./index6.js";
6
+ import { APIError as me, HttpErrorType as pe, RefreshTokenUnavailableError as le, UnknownApiError as ue, UnknownError as Ae, isOpenAPIError as he, isRefreshTokenUnavailableError as ye, isTransientTokenReadError as Ue } from "./index7.js";
7
+ import { authenticateUserWithCustomAuth as ge, createDelegationForEndUser as Te, createDelegationForEndUserAccount as fe, createEndUserApplePayOnrampOrder as ke, createEndUserBtcAccount as ve, createEndUserEvmAccount as Pe, createEndUserEvmSmartAccount as We, createEndUserEvmSwap as Oe, createEndUserSolanaAccount as we, createEvmEip7702DelegationWithEndUserAccount as Be, createSpendPermissionWithEndUserAccount as Ie, deletePasskey as Me, enableSpendPermissionWithEndUserAccount as Ce, exportEndUserEvmAccount as Ne, exportEndUserSolanaAccount as De, generateAttestationChallenge as Re, getAuthenticatedEndUser as Ve, getDelegationForEndUser as be, getDelegationForEndUserAccount as Xe, getEndUserEvmSwapPrice as xe, getEvmEip7702DelegationOperationByIdWithEndUserAccount as Fe, getMfaConfig as qe, getProjectConfig as He, getUserOperationWithEndUserAccount as je, initiateAuthentication as Ge, initiateMfaEnrollment as Je, initiateMfaEnrollment2 as Le, initiateMfaVerification as Qe, listPasskeys as _e, listSpendPermissionsWithEndUserAccount as ze, logOutEndUser as Ke, receiveOAuthCallback as Ye, receiveOAuthCallbackPost as Ze, recordMfaEnrollmentPrompted as $e, refreshAccessToken as et, registerAttestation as tt, registerTemporaryWalletSecret as nt, revokeDelegationForEndUser as rt, revokeDelegationForEndUserAccount as ot, revokeSpendPermissionWithEndUserAccount as it, sendEvmAssetWithEndUserAccount as at, sendEvmTransactionWithEndUserAccount as st, sendSolanaAssetWithEndUserAccount as ct, sendSolanaTransactionWithEndUserAccount as dt, sendUserOperationWithEndUserAccount as Et, signBtcHashWithEndUserAccount as mt, signEvmHashWithEndUserAccount as pt, signEvmMessageWithEndUserAccount as lt, signEvmTransactionWithEndUserAccount as ut, signEvmTypedDataWithEndUserAccount as At, signSolanaHashWithEndUserAccount as ht, signSolanaMessageWithEndUserAccount as yt, signSolanaTransactionWithEndUserAccount as Ut, signSolanaX402PaymentWithEndUserAccount as St, submitMfaEnrollment as gt, submitMfaVerification as Tt, verifyEmailAuthentication as ft, verifyOAuthCode as kt, verifyOAuthEndUserIdentity as vt, verifySiweAuthentication as Pt, verifySmsAuthentication as Wt } from "./index8.js";
8
+ import { createOnrampIosAttestationChallenge as wt, createOnrampMobileChallenge as Bt, createOnrampMobileSession as It, registerOnrampIosAttestation as Mt } from "./index9.js";
8
9
  e.registerPackageVersion("api_client", t);
9
10
  export {
10
- z as APIError,
11
+ me as APIError,
11
12
  s as CapabilityName,
12
13
  c as CreateEndUserBtcAccountBodyAddressType,
13
- E as CreateEndUserBtcAccountBodyNetwork,
14
- d as DeveloperJWTAuthenticationType,
15
- A as EmailAuthenticationType,
16
- u as EndUserBtcAccountAddressType,
17
- p as EndUserBtcAccountNetwork,
18
- m as EndUserOnrampFeeType,
19
- h as EndUserOnrampOrderStatus,
20
- l as ErrorType,
21
- U as EvmEip7702DelegationNetwork,
22
- g as EvmEip7702DelegationOperationStatus,
14
+ d as CreateEndUserBtcAccountBodyNetwork,
15
+ E as DeveloperJWTAuthenticationType,
16
+ m as EmailAuthenticationType,
17
+ p as EndUserBtcAccountAddressType,
18
+ l as EndUserBtcAccountNetwork,
19
+ u as EndUserOnrampFeeType,
20
+ A as EndUserOnrampOrderStatus,
21
+ h as ErrorType,
22
+ y as EvmEip7702DelegationNetwork,
23
+ U as EvmEip7702DelegationOperationStatus,
23
24
  S as EvmSwapsNetwork,
24
- y as EvmUserOperationNetwork,
25
- v as EvmUserOperationStatus,
26
- K as HttpErrorType,
27
- T as InitiateEmailAuthenticationNextStepType,
28
- f as InitiateEmailAuthenticationRequestType,
29
- W as InitiateSiweAuthenticationRequestType,
30
- k as InitiateSmsAuthenticationNextStepType,
25
+ g as EvmUserOperationNetwork,
26
+ T as EvmUserOperationStatus,
27
+ pe as HttpErrorType,
28
+ f as InitiateEmailAuthenticationNextStepType,
29
+ k as InitiateEmailAuthenticationRequestType,
30
+ v as InitiatePasskeyMfaEnrollmentType,
31
+ P as InitiateSiweAuthenticationRequestType,
32
+ W as InitiateSmsAuthenticationNextStepType,
31
33
  O as InitiateSmsAuthenticationRequestType,
32
34
  w as InitiateSmsMfaEnrollmentType,
33
35
  B as InitiateTotpMfaEnrollmentType,
34
- M as IosAttestationRegistrationResponsePlatform,
35
- N as MfaMethod,
36
- P as Network,
37
- C as OAuth2ProviderType,
38
- I as OtpEmailLogoModerationStatus,
39
- D as RefreshAccessTokenBodyGrantType,
40
- Q as RefreshTokenUnavailableError,
41
- R as SendEvmAssetWithEndUserAccountBodyNetwork,
42
- b as SendEvmTransactionWithEndUserAccountBodyNetwork,
43
- x as SendSolanaAssetWithEndUserAccountBodyNetwork,
44
- F as SendSolanaTransactionWithEndUserAccountBodyNetwork,
45
- H as SignBtcHashWithEndUserAccountBodyChange,
46
- V as SiweAuthenticationType,
47
- q as SmsAuthenticationType,
48
- j as SpendPermissionNetwork,
49
- X as UnknownApiError,
50
- Y as UnknownError,
51
- ne as authenticateUserWithCustomAuth,
52
- J as configureCdpApiClient,
53
- re as createDelegationForEndUser,
54
- ie as createDelegationForEndUserAccount,
55
- oe as createEndUserApplePayOnrampOrder,
56
- ae as createEndUserBtcAccount,
57
- se as createEndUserEvmAccount,
58
- ce as createEndUserEvmSmartAccount,
59
- Ee as createEndUserEvmSwap,
60
- de as createEndUserSolanaAccount,
61
- Ae as createEvmEip7702DelegationWithEndUserAccount,
62
- ue as createSpendPermissionWithEndUserAccount,
63
- pe as enableSpendPermissionWithEndUserAccount,
64
- me as exportEndUserEvmAccount,
65
- he as exportEndUserSolanaAccount,
66
- le as generateAttestationChallenge,
67
- Ue as getAuthenticatedEndUser,
68
- ge as getDelegationForEndUser,
69
- Se as getDelegationForEndUserAccount,
70
- ye as getEndUserEvmSwapPrice,
71
- ve as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
72
- Te as getMfaConfig,
73
- fe as getProjectConfig,
74
- We as getUserOperationWithEndUserAccount,
75
- ke as initiateAuthentication,
76
- Oe as initiateMfaEnrollment,
77
- we as initiateMfaEnrollment2,
78
- Be as initiateMfaVerification,
79
- Z as isOpenAPIError,
80
- $ as isRefreshTokenUnavailableError,
81
- ee as isTransientTokenReadError,
82
- Me as listSpendPermissionsWithEndUserAccount,
83
- Ne as logOutEndUser,
84
- Pe as receiveOAuthCallback,
85
- Ce as receiveOAuthCallbackPost,
86
- Ie as recordMfaEnrollmentPrompted,
87
- De as refreshAccessToken,
88
- Re as registerAttestation,
89
- be as registerTemporaryWalletSecret,
90
- xe as revokeDelegationForEndUser,
91
- Fe as revokeDelegationForEndUserAccount,
92
- He as revokeSpendPermissionWithEndUserAccount,
93
- Ve as sendEvmAssetWithEndUserAccount,
94
- qe as sendEvmTransactionWithEndUserAccount,
95
- je as sendSolanaAssetWithEndUserAccount,
96
- Ge as sendSolanaTransactionWithEndUserAccount,
97
- Je as sendUserOperationWithEndUserAccount,
98
- L as setAuthManager,
99
- Le as signBtcHashWithEndUserAccount,
100
- _e as signEvmHashWithEndUserAccount,
101
- ze as signEvmMessageWithEndUserAccount,
102
- Ke as signEvmTransactionWithEndUserAccount,
103
- Qe as signEvmTypedDataWithEndUserAccount,
104
- Xe as signSolanaHashWithEndUserAccount,
105
- Ye as signSolanaMessageWithEndUserAccount,
106
- Ze as signSolanaTransactionWithEndUserAccount,
107
- $e as submitMfaEnrollment,
108
- et as submitMfaVerification,
109
- tt as verifyEmailAuthentication,
110
- nt as verifyOAuthCode,
111
- rt as verifyOAuthEndUserIdentity,
112
- it as verifySiweAuthentication,
113
- ot as verifySmsAuthentication
36
+ I as IosAttestationRegistrationResponsePlatform,
37
+ M as MfaMethod,
38
+ C as Network,
39
+ N as OAuth2ProviderType,
40
+ D as OnrampQuotePaymentMethodTypeId,
41
+ R as OtpEmailLogoStatus,
42
+ V as PasskeySummaryTransportsItem,
43
+ b as PasskeyUserVerification,
44
+ X as RefreshAccessTokenBodyGrantType,
45
+ le as RefreshTokenUnavailableError,
46
+ x as SendEvmAssetWithEndUserAccountBodyNetwork,
47
+ F as SendEvmTransactionWithEndUserAccountBodyNetwork,
48
+ q as SendSolanaAssetWithEndUserAccountBodyNetwork,
49
+ H as SendSolanaTransactionWithEndUserAccountBodyNetwork,
50
+ j as SignBtcHashWithEndUserAccountBodyChange,
51
+ G as SiweAuthenticationType,
52
+ J as SmsAuthenticationType,
53
+ L as SpendPermissionNetwork,
54
+ Q as SubmitPasskeyRegistrationType,
55
+ _ as SubmitPasskeyVerificationType,
56
+ ue as UnknownApiError,
57
+ Ae as UnknownError,
58
+ z as X402BatchSettlementClaimPayloadType,
59
+ K as X402BatchSettlementDepositPayloadType,
60
+ Y as X402BatchSettlementRefundPayloadType,
61
+ Z as X402BatchSettlementSettlePayloadType,
62
+ $ as X402BatchSettlementVoucherPayloadType,
63
+ ee as X402V1Network,
64
+ te as X402V1PaymentPayloadScheme,
65
+ ne as X402V1PaymentRequirementsScheme,
66
+ re as X402V2Network,
67
+ oe as X402V2PaymentRequirementsScheme,
68
+ ie as X402Version,
69
+ ge as authenticateUserWithCustomAuth,
70
+ se as configureCdpApiClient,
71
+ Te as createDelegationForEndUser,
72
+ fe as createDelegationForEndUserAccount,
73
+ ke as createEndUserApplePayOnrampOrder,
74
+ ve as createEndUserBtcAccount,
75
+ Pe as createEndUserEvmAccount,
76
+ We as createEndUserEvmSmartAccount,
77
+ Oe as createEndUserEvmSwap,
78
+ we as createEndUserSolanaAccount,
79
+ Be as createEvmEip7702DelegationWithEndUserAccount,
80
+ wt as createOnrampIosAttestationChallenge,
81
+ Bt as createOnrampMobileChallenge,
82
+ It as createOnrampMobileSession,
83
+ Ie as createSpendPermissionWithEndUserAccount,
84
+ Me as deletePasskey,
85
+ Ce as enableSpendPermissionWithEndUserAccount,
86
+ Ne as exportEndUserEvmAccount,
87
+ De as exportEndUserSolanaAccount,
88
+ Re as generateAttestationChallenge,
89
+ Ve as getAuthenticatedEndUser,
90
+ be as getDelegationForEndUser,
91
+ Xe as getDelegationForEndUserAccount,
92
+ xe as getEndUserEvmSwapPrice,
93
+ Fe as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
94
+ qe as getMfaConfig,
95
+ He as getProjectConfig,
96
+ je as getUserOperationWithEndUserAccount,
97
+ Ge as initiateAuthentication,
98
+ Je as initiateMfaEnrollment,
99
+ Le as initiateMfaEnrollment2,
100
+ Qe as initiateMfaVerification,
101
+ he as isOpenAPIError,
102
+ ye as isRefreshTokenUnavailableError,
103
+ Ue as isTransientTokenReadError,
104
+ _e as listPasskeys,
105
+ ze as listSpendPermissionsWithEndUserAccount,
106
+ Ke as logOutEndUser,
107
+ Ye as receiveOAuthCallback,
108
+ Ze as receiveOAuthCallbackPost,
109
+ $e as recordMfaEnrollmentPrompted,
110
+ et as refreshAccessToken,
111
+ tt as registerAttestation,
112
+ Mt as registerOnrampIosAttestation,
113
+ nt as registerTemporaryWalletSecret,
114
+ rt as revokeDelegationForEndUser,
115
+ ot as revokeDelegationForEndUserAccount,
116
+ it as revokeSpendPermissionWithEndUserAccount,
117
+ at as sendEvmAssetWithEndUserAccount,
118
+ st as sendEvmTransactionWithEndUserAccount,
119
+ ct as sendSolanaAssetWithEndUserAccount,
120
+ dt as sendSolanaTransactionWithEndUserAccount,
121
+ Et as sendUserOperationWithEndUserAccount,
122
+ ce as setAuthManager,
123
+ de as setCookieDomain,
124
+ mt as signBtcHashWithEndUserAccount,
125
+ pt as signEvmHashWithEndUserAccount,
126
+ lt as signEvmMessageWithEndUserAccount,
127
+ ut as signEvmTransactionWithEndUserAccount,
128
+ At as signEvmTypedDataWithEndUserAccount,
129
+ ht as signSolanaHashWithEndUserAccount,
130
+ yt as signSolanaMessageWithEndUserAccount,
131
+ Ut as signSolanaTransactionWithEndUserAccount,
132
+ St as signSolanaX402PaymentWithEndUserAccount,
133
+ gt as submitMfaEnrollment,
134
+ Tt as submitMfaVerification,
135
+ ft as verifyEmailAuthentication,
136
+ kt as verifyOAuthCode,
137
+ vt as verifyOAuthEndUserIdentity,
138
+ Pt as verifySiweAuthentication,
139
+ Wt as verifySmsAuthentication
114
140
  };
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index24.js";
2
- import { __require as o } from "./index16.js";
3
- var t = o();
4
- const a = /* @__PURE__ */ r(t);
1
+ const o = "https://docs.cdp.coinbase.com/api-v2/docs/errors";
5
2
  export {
6
- a as default
3
+ o as ERROR_DOCS_PAGE_URL
7
4
  };
@@ -1,50 +1,7 @@
1
- function n() {
2
- try {
3
- return typeof navigator < "u" && navigator.product === "ReactNative";
4
- } catch {
5
- return !1;
6
- }
7
- }
8
- function r() {
9
- try {
10
- if (typeof window > "u")
11
- return typeof process < "u" && process.env && "__NEXT_PROCESSED_ENV" in process.env;
12
- const e = window;
13
- return !!(e.__NEXT_DATA__ || e.next || document.getElementById("__next"));
14
- } catch {
15
- return !1;
16
- }
17
- }
18
- function o() {
19
- try {
20
- if (typeof window > "u")
21
- return !1;
22
- const e = window;
23
- return !!(e.__VUE__ || e.__VUE_DEVTOOLS_GLOBAL_HOOK__ || document.querySelector("[data-v-]"));
24
- } catch {
25
- return !1;
26
- }
27
- }
28
- function u() {
29
- try {
30
- if (typeof window > "u")
31
- return !1;
32
- const e = window;
33
- return e.__REACT_DEVTOOLS_GLOBAL_HOOK__ || e.React ? !0 : !!document.querySelector(
34
- "[data-reactroot], [data-reactid], ._reactRoot, ._reactRootContainer"
35
- );
36
- } catch {
37
- return !1;
38
- }
39
- }
40
- function a() {
41
- return u() ? "react" : n() ? "react-native" : r() ? "nextjs" : o() ? "vue" : "unknown";
42
- }
43
- let t = null;
44
- function i() {
45
- return t === null && (t = a()), t;
46
- }
1
+ import { getDefaultExportFromCjs as r } from "./index25.js";
2
+ import { __require as o } from "./index13.js";
3
+ var t = o();
4
+ const a = /* @__PURE__ */ r(t);
47
5
  export {
48
- a as detectFramework,
49
- i as getFramework
6
+ a as default
50
7
  };
@@ -1,10 +1,50 @@
1
- import { __module as e } from "./index13.js";
2
- import { __require as o } from "./index14.js";
3
- import { __require as t } from "./index15.js";
4
- var r;
5
- function s() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
1
+ function n() {
2
+ try {
3
+ return typeof navigator < "u" && navigator.product === "ReactNative";
4
+ } catch {
5
+ return !1;
6
+ }
7
+ }
8
+ function r() {
9
+ try {
10
+ if (typeof window > "u")
11
+ return typeof process < "u" && process.env && "__NEXT_PROCESSED_ENV" in process.env;
12
+ const e = window;
13
+ return !!(e.__NEXT_DATA__ || e.next || document.getElementById("__next"));
14
+ } catch {
15
+ return !1;
16
+ }
17
+ }
18
+ function o() {
19
+ try {
20
+ if (typeof window > "u")
21
+ return !1;
22
+ const e = window;
23
+ return !!(e.__VUE__ || e.__VUE_DEVTOOLS_GLOBAL_HOOK__ || document.querySelector("[data-v-]"));
24
+ } catch {
25
+ return !1;
26
+ }
27
+ }
28
+ function u() {
29
+ try {
30
+ if (typeof window > "u")
31
+ return !1;
32
+ const e = window;
33
+ return e.__REACT_DEVTOOLS_GLOBAL_HOOK__ || e.React ? !0 : !!document.querySelector(
34
+ "[data-reactroot], [data-reactid], ._reactRoot, ._reactRootContainer"
35
+ );
36
+ } catch {
37
+ return !1;
38
+ }
39
+ }
40
+ function a() {
41
+ return u() ? "react" : n() ? "react-native" : r() ? "nextjs" : o() ? "vue" : "unknown";
42
+ }
43
+ let t = null;
44
+ function i() {
45
+ return t === null && (t = a()), t;
7
46
  }
8
47
  export {
9
- s as __require
48
+ a as detectFramework,
49
+ i as getFramework
10
50
  };
@@ -1,4 +1,41 @@
1
- var e = { exports: {} };
1
+ import { __module as h } from "./index14.js";
2
+ import { __require as S } from "./index15.js";
3
+ import { __require as q } from "./index16.js";
4
+ import { __require as w } from "./index17.js";
5
+ var x;
6
+ function G() {
7
+ return x ? h.exports : (x = 1, (function() {
8
+ var v = S(), p = q().utf8, B = w(), F = q().bin, d = function(o, f) {
9
+ o.constructor == String ? f && f.encoding === "binary" ? o = F.stringToBytes(o) : o = p.stringToBytes(o) : B(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
10
+ for (var u = v.bytesToWords(o), a = o.length * 8, n = 1732584193, r = -271733879, i = -1732584194, t = 271733878, e = 0; e < u.length; e++)
11
+ u[e] = (u[e] << 8 | u[e] >>> 24) & 16711935 | (u[e] << 24 | u[e] >>> 8) & 4278255360;
12
+ u[a >>> 5] |= 128 << a % 32, u[(a + 64 >>> 9 << 4) + 14] = a;
13
+ for (var _ = d._ff, c = d._gg, l = d._hh, y = d._ii, e = 0; e < u.length; e += 16) {
14
+ var T = n, b = r, A = i, I = t;
15
+ n = _(n, r, i, t, u[e + 0], 7, -680876936), t = _(t, n, r, i, u[e + 1], 12, -389564586), i = _(i, t, n, r, u[e + 2], 17, 606105819), r = _(r, i, t, n, u[e + 3], 22, -1044525330), n = _(n, r, i, t, u[e + 4], 7, -176418897), t = _(t, n, r, i, u[e + 5], 12, 1200080426), i = _(i, t, n, r, u[e + 6], 17, -1473231341), r = _(r, i, t, n, u[e + 7], 22, -45705983), n = _(n, r, i, t, u[e + 8], 7, 1770035416), t = _(t, n, r, i, u[e + 9], 12, -1958414417), i = _(i, t, n, r, u[e + 10], 17, -42063), r = _(r, i, t, n, u[e + 11], 22, -1990404162), n = _(n, r, i, t, u[e + 12], 7, 1804603682), t = _(t, n, r, i, u[e + 13], 12, -40341101), i = _(i, t, n, r, u[e + 14], 17, -1502002290), r = _(r, i, t, n, u[e + 15], 22, 1236535329), n = c(n, r, i, t, u[e + 1], 5, -165796510), t = c(t, n, r, i, u[e + 6], 9, -1069501632), i = c(i, t, n, r, u[e + 11], 14, 643717713), r = c(r, i, t, n, u[e + 0], 20, -373897302), n = c(n, r, i, t, u[e + 5], 5, -701558691), t = c(t, n, r, i, u[e + 10], 9, 38016083), i = c(i, t, n, r, u[e + 15], 14, -660478335), r = c(r, i, t, n, u[e + 4], 20, -405537848), n = c(n, r, i, t, u[e + 9], 5, 568446438), t = c(t, n, r, i, u[e + 14], 9, -1019803690), i = c(i, t, n, r, u[e + 3], 14, -187363961), r = c(r, i, t, n, u[e + 8], 20, 1163531501), n = c(n, r, i, t, u[e + 13], 5, -1444681467), t = c(t, n, r, i, u[e + 2], 9, -51403784), i = c(i, t, n, r, u[e + 7], 14, 1735328473), r = c(r, i, t, n, u[e + 12], 20, -1926607734), n = l(n, r, i, t, u[e + 5], 4, -378558), t = l(t, n, r, i, u[e + 8], 11, -2022574463), i = l(i, t, n, r, u[e + 11], 16, 1839030562), r = l(r, i, t, n, u[e + 14], 23, -35309556), n = l(n, r, i, t, u[e + 1], 4, -1530992060), t = l(t, n, r, i, u[e + 4], 11, 1272893353), i = l(i, t, n, r, u[e + 7], 16, -155497632), r = l(r, i, t, n, u[e + 10], 23, -1094730640), n = l(n, r, i, t, u[e + 13], 4, 681279174), t = l(t, n, r, i, u[e + 0], 11, -358537222), i = l(i, t, n, r, u[e + 3], 16, -722521979), r = l(r, i, t, n, u[e + 6], 23, 76029189), n = l(n, r, i, t, u[e + 9], 4, -640364487), t = l(t, n, r, i, u[e + 12], 11, -421815835), i = l(i, t, n, r, u[e + 15], 16, 530742520), r = l(r, i, t, n, u[e + 2], 23, -995338651), n = y(n, r, i, t, u[e + 0], 6, -198630844), t = y(t, n, r, i, u[e + 7], 10, 1126891415), i = y(i, t, n, r, u[e + 14], 15, -1416354905), r = y(r, i, t, n, u[e + 5], 21, -57434055), n = y(n, r, i, t, u[e + 12], 6, 1700485571), t = y(t, n, r, i, u[e + 3], 10, -1894986606), i = y(i, t, n, r, u[e + 10], 15, -1051523), r = y(r, i, t, n, u[e + 1], 21, -2054922799), n = y(n, r, i, t, u[e + 8], 6, 1873313359), t = y(t, n, r, i, u[e + 15], 10, -30611744), i = y(i, t, n, r, u[e + 6], 15, -1560198380), r = y(r, i, t, n, u[e + 13], 21, 1309151649), n = y(n, r, i, t, u[e + 4], 6, -145523070), t = y(t, n, r, i, u[e + 11], 10, -1120210379), i = y(i, t, n, r, u[e + 2], 15, 718787259), r = y(r, i, t, n, u[e + 9], 21, -343485551), n = n + T >>> 0, r = r + b >>> 0, i = i + A >>> 0, t = t + I >>> 0;
16
+ }
17
+ return v.endian([n, r, i, t]);
18
+ };
19
+ d._ff = function(o, f, u, a, n, r, i) {
20
+ var t = o + (f & u | ~f & a) + (n >>> 0) + i;
21
+ return (t << r | t >>> 32 - r) + f;
22
+ }, d._gg = function(o, f, u, a, n, r, i) {
23
+ var t = o + (f & a | u & ~a) + (n >>> 0) + i;
24
+ return (t << r | t >>> 32 - r) + f;
25
+ }, d._hh = function(o, f, u, a, n, r, i) {
26
+ var t = o + (f ^ u ^ a) + (n >>> 0) + i;
27
+ return (t << r | t >>> 32 - r) + f;
28
+ }, d._ii = function(o, f, u, a, n, r, i) {
29
+ var t = o + (u ^ (f | ~a)) + (n >>> 0) + i;
30
+ return (t << r | t >>> 32 - r) + f;
31
+ }, d._blocksize = 16, d._digestsize = 16, h.exports = function(o, f) {
32
+ if (o == null)
33
+ throw new Error("Illegal argument " + o);
34
+ var u = v.wordsToBytes(d(o, f));
35
+ return f && f.asBytes ? u : f && f.asString ? F.bytesToString(u) : v.bytesToHex(u);
36
+ };
37
+ })(), h.exports);
38
+ }
2
39
  export {
3
- e as __module
40
+ G as __require
4
41
  };