@payai/x402-solana-react 1.0.2 → 1.0.3

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/index.mjs CHANGED
@@ -1,80 +1,80 @@
1
- var We = Object.defineProperty;
2
- var _e = (r, n, t) => n in r ? We(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t;
3
- var ke = (r, n, t) => _e(r, typeof n != "symbol" ? n + "" : n, t);
4
- import { jsx as a, jsxs as b, Fragment as ie } from "react/jsx-runtime";
5
- import * as A from "react";
6
- import { useState as X, useCallback as ve, useMemo as de, useRef as Oe, useEffect as re } from "react";
7
- import { ConnectionProvider as He, WalletProvider as Xe, useWallet as Je } from "@solana/wallet-adapter-react";
8
- import { WalletModalProvider as Ye, WalletMultiButton as Ze } from "@solana/wallet-adapter-react-ui";
9
- import { WalletAdapterNetwork as ye } from "@solana/wallet-adapter-base";
10
- import { PhantomWalletAdapter as qe, SolflareWalletAdapter as Se } from "@solana/wallet-adapter-wallets";
11
- import { Connection as je, PublicKey as W, ComputeBudgetProgram as Ne, TransactionInstruction as Qe, SystemProgram as er, TransactionMessage as rr, VersionedTransaction as tr, clusterApiUrl as nr } from "@solana/web3.js";
12
- import { getAssociatedTokenAddress as ce, getAccount as ar, TOKEN_2022_PROGRAM_ID as Ce, TOKEN_PROGRAM_ID as or, getMint as sr, createTransferCheckedInstruction as ir } from "@solana/spl-token";
13
- function lr(r) {
1
+ var _e = Object.defineProperty;
2
+ var Oe = (r, n, t) => n in r ? _e(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t;
3
+ var ve = (r, n, t) => Oe(r, typeof n != "symbol" ? n + "" : n, t);
4
+ import { jsx as a, jsxs as b, Fragment as le } from "react/jsx-runtime";
5
+ import * as F from "react";
6
+ import { useState as X, useCallback as ye, useMemo as ce, useRef as He, useEffect as ne } from "react";
7
+ import { ConnectionProvider as Xe, WalletProvider as Je, useWallet as Ye } from "@solana/wallet-adapter-react";
8
+ import { WalletModalProvider as Ze, WalletMultiButton as qe } from "@solana/wallet-adapter-react-ui";
9
+ import { WalletAdapterNetwork as Ne } from "@solana/wallet-adapter-base";
10
+ import { PhantomWalletAdapter as Qe, SolflareWalletAdapter as Se } from "@solana/wallet-adapter-wallets";
11
+ import { Connection as De, PublicKey as W, ComputeBudgetProgram as Ce, TransactionInstruction as er, SystemProgram as rr, TransactionMessage as tr, VersionedTransaction as nr, clusterApiUrl as ar } from "@solana/web3.js";
12
+ import { getAssociatedTokenAddress as ue, getAccount as or, TOKEN_2022_PROGRAM_ID as Fe, TOKEN_PROGRAM_ID as sr, getMint as ir, createTransferCheckedInstruction as lr } from "@solana/spl-token";
13
+ function dr(r) {
14
14
  return r === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
15
15
  }
16
- function dr(r) {
16
+ function cr(r) {
17
17
  return r === "solana" ? `https://mainnet.helius-rpc.com/?api-key=${process.env.VITE_HELIUS_API_KEY}` : "https://api.devnet.solana.com";
18
18
  }
19
- async function cr(r, n, t) {
19
+ async function ur(r, n, t) {
20
20
  try {
21
- const o = t || dr(n), i = new je(o, "confirmed"), l = new W(r), u = new W(lr(n)), c = await ce(
21
+ const o = t || cr(n), i = new De(o, "confirmed"), l = new W(r), u = new W(dr(n)), c = await ue(
22
22
  u,
23
23
  l
24
- ), e = await ar(i, c);
24
+ ), e = await or(i, c);
25
25
  return (Number(e.amount) / 1e6).toFixed(2);
26
26
  } catch (o) {
27
27
  return console.error("Error fetching USDC balance:", o), "0.00";
28
28
  }
29
29
  }
30
- function De(r) {
30
+ function ze(r) {
31
31
  var n, t, o = "";
32
32
  if (typeof r == "string" || typeof r == "number") o += r;
33
33
  else if (typeof r == "object") if (Array.isArray(r)) {
34
34
  var i = r.length;
35
- for (n = 0; n < i; n++) r[n] && (t = De(r[n])) && (o && (o += " "), o += t);
35
+ for (n = 0; n < i; n++) r[n] && (t = ze(r[n])) && (o && (o += " "), o += t);
36
36
  } else for (t in r) r[t] && (o && (o += " "), o += t);
37
37
  return o;
38
38
  }
39
- function ze() {
40
- for (var r, n, t = 0, o = "", i = arguments.length; t < i; t++) (r = arguments[t]) && (n = De(r)) && (o && (o += " "), o += n);
39
+ function Ie() {
40
+ for (var r, n, t = 0, o = "", i = arguments.length; t < i; t++) (r = arguments[t]) && (n = ze(r)) && (o && (o += " "), o += n);
41
41
  return o;
42
42
  }
43
- const fe = "-", ur = (r) => {
44
- const n = gr(r), {
43
+ const xe = "-", br = (r) => {
44
+ const n = pr(r), {
45
45
  conflictingClassGroups: t,
46
46
  conflictingClassGroupModifiers: o
47
47
  } = r;
48
48
  return {
49
49
  getClassGroupId: (u) => {
50
- const c = u.split(fe);
51
- return c[0] === "" && c.length !== 1 && c.shift(), Ie(c, n) || br(u);
50
+ const c = u.split(xe);
51
+ return c[0] === "" && c.length !== 1 && c.shift(), Le(c, n) || gr(u);
52
52
  },
53
53
  getConflictingClassGroupIds: (u, c) => {
54
54
  const e = t[u] || [];
55
55
  return c && o[u] ? [...e, ...o[u]] : e;
56
56
  }
57
57
  };
58
- }, Ie = (r, n) => {
58
+ }, Le = (r, n) => {
59
59
  var u;
60
60
  if (r.length === 0)
61
61
  return n.classGroupId;
62
- const t = r[0], o = n.nextPart.get(t), i = o ? Ie(r.slice(1), o) : void 0;
62
+ const t = r[0], o = n.nextPart.get(t), i = o ? Le(r.slice(1), o) : void 0;
63
63
  if (i)
64
64
  return i;
65
65
  if (n.validators.length === 0)
66
66
  return;
67
- const l = r.join(fe);
67
+ const l = r.join(xe);
68
68
  return (u = n.validators.find(({
69
69
  validator: c
70
70
  }) => c(l))) == null ? void 0 : u.classGroupId;
71
- }, Fe = /^\[(.+)\]$/, br = (r) => {
72
- if (Fe.test(r)) {
73
- const n = Fe.exec(r)[1], t = n == null ? void 0 : n.substring(0, n.indexOf(":"));
71
+ }, Ae = /^\[(.+)\]$/, gr = (r) => {
72
+ if (Ae.test(r)) {
73
+ const n = Ae.exec(r)[1], t = n == null ? void 0 : n.substring(0, n.indexOf(":"));
74
74
  if (t)
75
75
  return "arbitrary.." + t;
76
76
  }
77
- }, gr = (r) => {
77
+ }, pr = (r) => {
78
78
  const {
79
79
  theme: n,
80
80
  prefix: t
@@ -82,19 +82,19 @@ const fe = "-", ur = (r) => {
82
82
  nextPart: /* @__PURE__ */ new Map(),
83
83
  validators: []
84
84
  };
85
- return fr(Object.entries(r.classGroups), t).forEach(([l, u]) => {
86
- ue(u, o, l, n);
85
+ return xr(Object.entries(r.classGroups), t).forEach(([l, u]) => {
86
+ be(u, o, l, n);
87
87
  }), o;
88
- }, ue = (r, n, t, o) => {
88
+ }, be = (r, n, t, o) => {
89
89
  r.forEach((i) => {
90
90
  if (typeof i == "string") {
91
- const l = i === "" ? n : Ae(n, i);
91
+ const l = i === "" ? n : Me(n, i);
92
92
  l.classGroupId = t;
93
93
  return;
94
94
  }
95
95
  if (typeof i == "function") {
96
- if (pr(i)) {
97
- ue(i(o), n, t, o);
96
+ if (fr(i)) {
97
+ be(i(o), n, t, o);
98
98
  return;
99
99
  }
100
100
  n.validators.push({
@@ -104,21 +104,21 @@ const fe = "-", ur = (r) => {
104
104
  return;
105
105
  }
106
106
  Object.entries(i).forEach(([l, u]) => {
107
- ue(u, Ae(n, l), t, o);
107
+ be(u, Me(n, l), t, o);
108
108
  });
109
109
  });
110
- }, Ae = (r, n) => {
110
+ }, Me = (r, n) => {
111
111
  let t = r;
112
- return n.split(fe).forEach((o) => {
112
+ return n.split(xe).forEach((o) => {
113
113
  t.nextPart.has(o) || t.nextPart.set(o, {
114
114
  nextPart: /* @__PURE__ */ new Map(),
115
115
  validators: []
116
116
  }), t = t.nextPart.get(o);
117
117
  }), t;
118
- }, pr = (r) => r.isThemeGetter, fr = (r, n) => n ? r.map(([t, o]) => {
118
+ }, fr = (r) => r.isThemeGetter, xr = (r, n) => n ? r.map(([t, o]) => {
119
119
  const i = o.map((l) => typeof l == "string" ? n + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([u, c]) => [n + u, c])) : l);
120
120
  return [t, i];
121
- }) : r, xr = (r) => {
121
+ }) : r, hr = (r) => {
122
122
  if (r < 1)
123
123
  return {
124
124
  get: () => {
@@ -142,40 +142,40 @@ const fe = "-", ur = (r) => {
142
142
  t.has(l) ? t.set(l, u) : i(l, u);
143
143
  }
144
144
  };
145
- }, Le = "!", hr = (r) => {
145
+ }, Re = "!", wr = (r) => {
146
146
  const {
147
147
  separator: n,
148
148
  experimentalParseClassName: t
149
149
  } = r, o = n.length === 1, i = n[0], l = n.length, u = (c) => {
150
150
  const e = [];
151
- let f = 0, x = 0, g;
152
- for (let w = 0; w < c.length; w++) {
153
- let N = c[w];
154
- if (f === 0) {
155
- if (N === i && (o || c.slice(w, w + l) === n)) {
156
- e.push(c.slice(x, w)), x = w + l;
151
+ let p = 0, h = 0, x;
152
+ for (let m = 0; m < c.length; m++) {
153
+ let N = c[m];
154
+ if (p === 0) {
155
+ if (N === i && (o || c.slice(m, m + l) === n)) {
156
+ e.push(c.slice(h, m)), h = m + l;
157
157
  continue;
158
158
  }
159
159
  if (N === "/") {
160
- g = w;
160
+ x = m;
161
161
  continue;
162
162
  }
163
163
  }
164
- N === "[" ? f++ : N === "]" && f--;
164
+ N === "[" ? p++ : N === "]" && p--;
165
165
  }
166
- const s = e.length === 0 ? c : c.substring(x), y = s.startsWith(Le), F = y ? s.substring(1) : s, m = g && g > x ? g - x : void 0;
166
+ const g = e.length === 0 ? c : c.substring(h), s = g.startsWith(Re), A = s ? g.substring(1) : g, k = x && x > h ? x - h : void 0;
167
167
  return {
168
168
  modifiers: e,
169
- hasImportantModifier: y,
170
- baseClassName: F,
171
- maybePostfixModifierPosition: m
169
+ hasImportantModifier: s,
170
+ baseClassName: A,
171
+ maybePostfixModifierPosition: k
172
172
  };
173
173
  };
174
174
  return t ? (c) => t({
175
175
  className: c,
176
176
  parseClassName: u
177
177
  }) : u;
178
- }, wr = (r) => {
178
+ }, mr = (r) => {
179
179
  if (r.length <= 1)
180
180
  return r;
181
181
  const n = [];
@@ -183,120 +183,120 @@ const fe = "-", ur = (r) => {
183
183
  return r.forEach((o) => {
184
184
  o[0] === "[" ? (n.push(...t.sort(), o), t = []) : t.push(o);
185
185
  }), n.push(...t.sort()), n;
186
- }, mr = (r) => ({
187
- cache: xr(r.cacheSize),
188
- parseClassName: hr(r),
189
- ...ur(r)
190
- }), kr = /\s+/, vr = (r, n) => {
186
+ }, kr = (r) => ({
187
+ cache: hr(r.cacheSize),
188
+ parseClassName: wr(r),
189
+ ...br(r)
190
+ }), vr = /\s+/, yr = (r, n) => {
191
191
  const {
192
192
  parseClassName: t,
193
193
  getClassGroupId: o,
194
194
  getConflictingClassGroupIds: i
195
- } = n, l = [], u = r.trim().split(kr);
195
+ } = n, l = [], u = r.trim().split(vr);
196
196
  let c = "";
197
197
  for (let e = u.length - 1; e >= 0; e -= 1) {
198
- const f = u[e], {
199
- modifiers: x,
200
- hasImportantModifier: g,
201
- baseClassName: s,
202
- maybePostfixModifierPosition: y
203
- } = t(f);
204
- let F = !!y, m = o(F ? s.substring(0, y) : s);
205
- if (!m) {
206
- if (!F) {
207
- c = f + (c.length > 0 ? " " + c : c);
198
+ const p = u[e], {
199
+ modifiers: h,
200
+ hasImportantModifier: x,
201
+ baseClassName: g,
202
+ maybePostfixModifierPosition: s
203
+ } = t(p);
204
+ let A = !!s, k = o(A ? g.substring(0, s) : g);
205
+ if (!k) {
206
+ if (!A) {
207
+ c = p + (c.length > 0 ? " " + c : c);
208
208
  continue;
209
209
  }
210
- if (m = o(s), !m) {
211
- c = f + (c.length > 0 ? " " + c : c);
210
+ if (k = o(g), !k) {
211
+ c = p + (c.length > 0 ? " " + c : c);
212
212
  continue;
213
213
  }
214
- F = !1;
214
+ A = !1;
215
215
  }
216
- const w = wr(x).join(":"), N = g ? w + Le : w, T = N + m;
217
- if (l.includes(T))
216
+ const m = mr(h).join(":"), N = x ? m + Re : m, M = N + k;
217
+ if (l.includes(M))
218
218
  continue;
219
- l.push(T);
220
- const k = i(m, F);
221
- for (let p = 0; p < k.length; ++p) {
222
- const D = k[p];
223
- l.push(N + D);
219
+ l.push(M);
220
+ const T = i(k, A);
221
+ for (let y = 0; y < T.length; ++y) {
222
+ const f = T[y];
223
+ l.push(N + f);
224
224
  }
225
- c = f + (c.length > 0 ? " " + c : c);
225
+ c = p + (c.length > 0 ? " " + c : c);
226
226
  }
227
227
  return c;
228
228
  };
229
- function yr() {
229
+ function Nr() {
230
230
  let r = 0, n, t, o = "";
231
231
  for (; r < arguments.length; )
232
- (n = arguments[r++]) && (t = Re(n)) && (o && (o += " "), o += t);
232
+ (n = arguments[r++]) && (t = Be(n)) && (o && (o += " "), o += t);
233
233
  return o;
234
234
  }
235
- const Re = (r) => {
235
+ const Be = (r) => {
236
236
  if (typeof r == "string")
237
237
  return r;
238
238
  let n, t = "";
239
239
  for (let o = 0; o < r.length; o++)
240
- r[o] && (n = Re(r[o])) && (t && (t += " "), t += n);
240
+ r[o] && (n = Be(r[o])) && (t && (t += " "), t += n);
241
241
  return t;
242
242
  };
243
- function Nr(r, ...n) {
243
+ function Cr(r, ...n) {
244
244
  let t, o, i, l = u;
245
245
  function u(e) {
246
- const f = n.reduce((x, g) => g(x), r());
247
- return t = mr(f), o = t.cache.get, i = t.cache.set, l = c, c(e);
246
+ const p = n.reduce((h, x) => x(h), r());
247
+ return t = kr(p), o = t.cache.get, i = t.cache.set, l = c, c(e);
248
248
  }
249
249
  function c(e) {
250
- const f = o(e);
251
- if (f)
252
- return f;
253
- const x = vr(e, t);
254
- return i(e, x), x;
250
+ const p = o(e);
251
+ if (p)
252
+ return p;
253
+ const h = yr(e, t);
254
+ return i(e, h), h;
255
255
  }
256
256
  return function() {
257
- return l(yr.apply(null, arguments));
257
+ return l(Nr.apply(null, arguments));
258
258
  };
259
259
  }
260
260
  const C = (r) => {
261
261
  const n = (t) => t[r] || [];
262
262
  return n.isThemeGetter = !0, n;
263
- }, Be = /^\[(?:([a-z-]+):)?(.+)\]$/i, Cr = /^\d+\/\d+$/, Fr = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ar = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Er = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, B = (r) => J(r) || Fr.has(r) || Cr.test(r), V = (r) => Y(r, "length", $r), J = (r) => !!r && !Number.isNaN(Number(r)), le = (r) => Y(r, "number", J), q = (r) => !!r && Number.isInteger(Number(r)), jr = (r) => r.endsWith("%") && J(r.slice(0, -1)), h = (r) => Be.test(r), K = (r) => Ar.test(r), Dr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), zr = (r) => Y(r, Dr, $e), Ir = (r) => Y(r, "position", $e), Lr = /* @__PURE__ */ new Set(["image", "url"]), Rr = (r) => Y(r, Lr, Gr), Br = (r) => Y(r, "", Ur), S = () => !0, Y = (r, n, t) => {
264
- const o = Be.exec(r);
263
+ }, $e = /^\[(?:([a-z-]+):)?(.+)\]$/i, Fr = /^\d+\/\d+$/, Ar = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Er = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Pr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, $ = (r) => J(r) || Ar.has(r) || Fr.test(r), U = (r) => Y(r, "length", Gr), J = (r) => !!r && !Number.isNaN(Number(r)), de = (r) => Y(r, "number", J), ee = (r) => !!r && Number.isInteger(Number(r)), Dr = (r) => r.endsWith("%") && J(r.slice(0, -1)), w = (r) => $e.test(r), V = (r) => Mr.test(r), zr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ir = (r) => Y(r, zr, Ge), Lr = (r) => Y(r, "position", Ge), Rr = /* @__PURE__ */ new Set(["image", "url"]), Br = (r) => Y(r, Rr, Vr), $r = (r) => Y(r, "", Ur), re = () => !0, Y = (r, n, t) => {
264
+ const o = $e.exec(r);
265
265
  return o ? o[1] ? typeof n == "string" ? o[1] === n : n.has(o[1]) : t(o[2]) : !1;
266
- }, $r = (r) => (
266
+ }, Gr = (r) => (
267
267
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
268
268
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
269
269
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
270
- Mr.test(r) && !Tr.test(r)
271
- ), $e = () => !1, Ur = (r) => Er.test(r), Gr = (r) => Pr.test(r), Vr = () => {
272
- const r = C("colors"), n = C("spacing"), t = C("blur"), o = C("brightness"), i = C("borderColor"), l = C("borderRadius"), u = C("borderSpacing"), c = C("borderWidth"), e = C("contrast"), f = C("grayscale"), x = C("hueRotate"), g = C("invert"), s = C("gap"), y = C("gradientColorStops"), F = C("gradientColorStopPositions"), m = C("inset"), w = C("margin"), N = C("opacity"), T = C("padding"), k = C("saturate"), p = C("scale"), D = C("sepia"), I = C("skew"), P = C("space"), E = C("translate"), L = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", h, n], v = () => [h, n], j = () => ["", B, V], U = () => ["auto", J, h], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], _ = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", h], se = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [J, h];
270
+ Tr.test(r) && !Er.test(r)
271
+ ), Ge = () => !1, Ur = (r) => Pr.test(r), Vr = (r) => jr.test(r), Kr = () => {
272
+ const r = C("colors"), n = C("spacing"), t = C("blur"), o = C("brightness"), i = C("borderColor"), l = C("borderRadius"), u = C("borderSpacing"), c = C("borderWidth"), e = C("contrast"), p = C("grayscale"), h = C("hueRotate"), x = C("invert"), g = C("gap"), s = C("gradientColorStops"), A = C("gradientColorStopPositions"), k = C("inset"), m = C("margin"), N = C("opacity"), M = C("padding"), T = C("saturate"), y = C("scale"), f = C("sepia"), z = C("skew"), j = C("space"), E = C("translate"), I = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", w, n], v = () => [w, n], Z = () => ["", $, U], P = () => ["auto", J, w], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", w], Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [J, w];
273
273
  return {
274
274
  cacheSize: 500,
275
275
  separator: ":",
276
276
  theme: {
277
- colors: [S],
278
- spacing: [B, V],
279
- blur: ["none", "", K, h],
280
- brightness: M(),
277
+ colors: [re],
278
+ spacing: [$, U],
279
+ blur: ["none", "", V, w],
280
+ brightness: D(),
281
281
  borderColor: [r],
282
- borderRadius: ["none", "", "full", K, h],
282
+ borderRadius: ["none", "", "full", V, w],
283
283
  borderSpacing: v(),
284
- borderWidth: j(),
285
- contrast: M(),
284
+ borderWidth: Z(),
285
+ contrast: D(),
286
286
  grayscale: G(),
287
- hueRotate: M(),
287
+ hueRotate: D(),
288
288
  invert: G(),
289
289
  gap: v(),
290
290
  gradientColorStops: [r],
291
- gradientColorStopPositions: [jr, V],
292
- inset: z(),
293
- margin: z(),
294
- opacity: M(),
291
+ gradientColorStopPositions: [Dr, U],
292
+ inset: K(),
293
+ margin: K(),
294
+ opacity: D(),
295
295
  padding: v(),
296
- saturate: M(),
297
- scale: M(),
296
+ saturate: D(),
297
+ scale: D(),
298
298
  sepia: G(),
299
- skew: M(),
299
+ skew: D(),
300
300
  space: v(),
301
301
  translate: v()
302
302
  },
@@ -307,7 +307,7 @@ const C = (r) => {
307
307
  * @see https://tailwindcss.com/docs/aspect-ratio
308
308
  */
309
309
  aspect: [{
310
- aspect: ["auto", "square", "video", h]
310
+ aspect: ["auto", "square", "video", w]
311
311
  }],
312
312
  /**
313
313
  * Container
@@ -319,21 +319,21 @@ const C = (r) => {
319
319
  * @see https://tailwindcss.com/docs/columns
320
320
  */
321
321
  columns: [{
322
- columns: [K]
322
+ columns: [V]
323
323
  }],
324
324
  /**
325
325
  * Break After
326
326
  * @see https://tailwindcss.com/docs/break-after
327
327
  */
328
328
  "break-after": [{
329
- "break-after": se()
329
+ "break-after": Q()
330
330
  }],
331
331
  /**
332
332
  * Break Before
333
333
  * @see https://tailwindcss.com/docs/break-before
334
334
  */
335
335
  "break-before": [{
336
- "break-before": se()
336
+ "break-before": Q()
337
337
  }],
338
338
  /**
339
339
  * Break Inside
@@ -392,49 +392,49 @@ const C = (r) => {
392
392
  * @see https://tailwindcss.com/docs/object-position
393
393
  */
394
394
  "object-position": [{
395
- object: [...Q(), h]
395
+ object: [..._(), w]
396
396
  }],
397
397
  /**
398
398
  * Overflow
399
399
  * @see https://tailwindcss.com/docs/overflow
400
400
  */
401
401
  overflow: [{
402
- overflow: $()
402
+ overflow: L()
403
403
  }],
404
404
  /**
405
405
  * Overflow X
406
406
  * @see https://tailwindcss.com/docs/overflow
407
407
  */
408
408
  "overflow-x": [{
409
- "overflow-x": $()
409
+ "overflow-x": L()
410
410
  }],
411
411
  /**
412
412
  * Overflow Y
413
413
  * @see https://tailwindcss.com/docs/overflow
414
414
  */
415
415
  "overflow-y": [{
416
- "overflow-y": $()
416
+ "overflow-y": L()
417
417
  }],
418
418
  /**
419
419
  * Overscroll Behavior
420
420
  * @see https://tailwindcss.com/docs/overscroll-behavior
421
421
  */
422
422
  overscroll: [{
423
- overscroll: L()
423
+ overscroll: I()
424
424
  }],
425
425
  /**
426
426
  * Overscroll Behavior X
427
427
  * @see https://tailwindcss.com/docs/overscroll-behavior
428
428
  */
429
429
  "overscroll-x": [{
430
- "overscroll-x": L()
430
+ "overscroll-x": I()
431
431
  }],
432
432
  /**
433
433
  * Overscroll Behavior Y
434
434
  * @see https://tailwindcss.com/docs/overscroll-behavior
435
435
  */
436
436
  "overscroll-y": [{
437
- "overscroll-y": L()
437
+ "overscroll-y": I()
438
438
  }],
439
439
  /**
440
440
  * Position
@@ -446,63 +446,63 @@ const C = (r) => {
446
446
  * @see https://tailwindcss.com/docs/top-right-bottom-left
447
447
  */
448
448
  inset: [{
449
- inset: [m]
449
+ inset: [k]
450
450
  }],
451
451
  /**
452
452
  * Right / Left
453
453
  * @see https://tailwindcss.com/docs/top-right-bottom-left
454
454
  */
455
455
  "inset-x": [{
456
- "inset-x": [m]
456
+ "inset-x": [k]
457
457
  }],
458
458
  /**
459
459
  * Top / Bottom
460
460
  * @see https://tailwindcss.com/docs/top-right-bottom-left
461
461
  */
462
462
  "inset-y": [{
463
- "inset-y": [m]
463
+ "inset-y": [k]
464
464
  }],
465
465
  /**
466
466
  * Start
467
467
  * @see https://tailwindcss.com/docs/top-right-bottom-left
468
468
  */
469
469
  start: [{
470
- start: [m]
470
+ start: [k]
471
471
  }],
472
472
  /**
473
473
  * End
474
474
  * @see https://tailwindcss.com/docs/top-right-bottom-left
475
475
  */
476
476
  end: [{
477
- end: [m]
477
+ end: [k]
478
478
  }],
479
479
  /**
480
480
  * Top
481
481
  * @see https://tailwindcss.com/docs/top-right-bottom-left
482
482
  */
483
483
  top: [{
484
- top: [m]
484
+ top: [k]
485
485
  }],
486
486
  /**
487
487
  * Right
488
488
  * @see https://tailwindcss.com/docs/top-right-bottom-left
489
489
  */
490
490
  right: [{
491
- right: [m]
491
+ right: [k]
492
492
  }],
493
493
  /**
494
494
  * Bottom
495
495
  * @see https://tailwindcss.com/docs/top-right-bottom-left
496
496
  */
497
497
  bottom: [{
498
- bottom: [m]
498
+ bottom: [k]
499
499
  }],
500
500
  /**
501
501
  * Left
502
502
  * @see https://tailwindcss.com/docs/top-right-bottom-left
503
503
  */
504
504
  left: [{
505
- left: [m]
505
+ left: [k]
506
506
  }],
507
507
  /**
508
508
  * Visibility
@@ -514,7 +514,7 @@ const C = (r) => {
514
514
  * @see https://tailwindcss.com/docs/z-index
515
515
  */
516
516
  z: [{
517
- z: ["auto", q, h]
517
+ z: ["auto", ee, w]
518
518
  }],
519
519
  // Flexbox and Grid
520
520
  /**
@@ -522,7 +522,7 @@ const C = (r) => {
522
522
  * @see https://tailwindcss.com/docs/flex-basis
523
523
  */
524
524
  basis: [{
525
- basis: z()
525
+ basis: K()
526
526
  }],
527
527
  /**
528
528
  * Flex Direction
@@ -543,7 +543,7 @@ const C = (r) => {
543
543
  * @see https://tailwindcss.com/docs/flex
544
544
  */
545
545
  flex: [{
546
- flex: ["1", "auto", "initial", "none", h]
546
+ flex: ["1", "auto", "initial", "none", w]
547
547
  }],
548
548
  /**
549
549
  * Flex Grow
@@ -564,14 +564,14 @@ const C = (r) => {
564
564
  * @see https://tailwindcss.com/docs/order
565
565
  */
566
566
  order: [{
567
- order: ["first", "last", "none", q, h]
567
+ order: ["first", "last", "none", ee, w]
568
568
  }],
569
569
  /**
570
570
  * Grid Template Columns
571
571
  * @see https://tailwindcss.com/docs/grid-template-columns
572
572
  */
573
573
  "grid-cols": [{
574
- "grid-cols": [S]
574
+ "grid-cols": [re]
575
575
  }],
576
576
  /**
577
577
  * Grid Column Start / End
@@ -579,29 +579,29 @@ const C = (r) => {
579
579
  */
580
580
  "col-start-end": [{
581
581
  col: ["auto", {
582
- span: ["full", q, h]
583
- }, h]
582
+ span: ["full", ee, w]
583
+ }, w]
584
584
  }],
585
585
  /**
586
586
  * Grid Column Start
587
587
  * @see https://tailwindcss.com/docs/grid-column
588
588
  */
589
589
  "col-start": [{
590
- "col-start": U()
590
+ "col-start": P()
591
591
  }],
592
592
  /**
593
593
  * Grid Column End
594
594
  * @see https://tailwindcss.com/docs/grid-column
595
595
  */
596
596
  "col-end": [{
597
- "col-end": U()
597
+ "col-end": P()
598
598
  }],
599
599
  /**
600
600
  * Grid Template Rows
601
601
  * @see https://tailwindcss.com/docs/grid-template-rows
602
602
  */
603
603
  "grid-rows": [{
604
- "grid-rows": [S]
604
+ "grid-rows": [re]
605
605
  }],
606
606
  /**
607
607
  * Grid Row Start / End
@@ -609,22 +609,22 @@ const C = (r) => {
609
609
  */
610
610
  "row-start-end": [{
611
611
  row: ["auto", {
612
- span: [q, h]
613
- }, h]
612
+ span: [ee, w]
613
+ }, w]
614
614
  }],
615
615
  /**
616
616
  * Grid Row Start
617
617
  * @see https://tailwindcss.com/docs/grid-row
618
618
  */
619
619
  "row-start": [{
620
- "row-start": U()
620
+ "row-start": P()
621
621
  }],
622
622
  /**
623
623
  * Grid Row End
624
624
  * @see https://tailwindcss.com/docs/grid-row
625
625
  */
626
626
  "row-end": [{
627
- "row-end": U()
627
+ "row-end": P()
628
628
  }],
629
629
  /**
630
630
  * Grid Auto Flow
@@ -638,42 +638,42 @@ const C = (r) => {
638
638
  * @see https://tailwindcss.com/docs/grid-auto-columns
639
639
  */
640
640
  "auto-cols": [{
641
- "auto-cols": ["auto", "min", "max", "fr", h]
641
+ "auto-cols": ["auto", "min", "max", "fr", w]
642
642
  }],
643
643
  /**
644
644
  * Grid Auto Rows
645
645
  * @see https://tailwindcss.com/docs/grid-auto-rows
646
646
  */
647
647
  "auto-rows": [{
648
- "auto-rows": ["auto", "min", "max", "fr", h]
648
+ "auto-rows": ["auto", "min", "max", "fr", w]
649
649
  }],
650
650
  /**
651
651
  * Gap
652
652
  * @see https://tailwindcss.com/docs/gap
653
653
  */
654
654
  gap: [{
655
- gap: [s]
655
+ gap: [g]
656
656
  }],
657
657
  /**
658
658
  * Gap X
659
659
  * @see https://tailwindcss.com/docs/gap
660
660
  */
661
661
  "gap-x": [{
662
- "gap-x": [s]
662
+ "gap-x": [g]
663
663
  }],
664
664
  /**
665
665
  * Gap Y
666
666
  * @see https://tailwindcss.com/docs/gap
667
667
  */
668
668
  "gap-y": [{
669
- "gap-y": [s]
669
+ "gap-y": [g]
670
670
  }],
671
671
  /**
672
672
  * Justify Content
673
673
  * @see https://tailwindcss.com/docs/justify-content
674
674
  */
675
675
  "justify-content": [{
676
- justify: ["normal", ...O()]
676
+ justify: ["normal", ...q()]
677
677
  }],
678
678
  /**
679
679
  * Justify Items
@@ -694,7 +694,7 @@ const C = (r) => {
694
694
  * @see https://tailwindcss.com/docs/align-content
695
695
  */
696
696
  "align-content": [{
697
- content: ["normal", ...O(), "baseline"]
697
+ content: ["normal", ...q(), "baseline"]
698
698
  }],
699
699
  /**
700
700
  * Align Items
@@ -715,7 +715,7 @@ const C = (r) => {
715
715
  * @see https://tailwindcss.com/docs/place-content
716
716
  */
717
717
  "place-content": [{
718
- "place-content": [...O(), "baseline"]
718
+ "place-content": [...q(), "baseline"]
719
719
  }],
720
720
  /**
721
721
  * Place Items
@@ -737,133 +737,133 @@ const C = (r) => {
737
737
  * @see https://tailwindcss.com/docs/padding
738
738
  */
739
739
  p: [{
740
- p: [T]
740
+ p: [M]
741
741
  }],
742
742
  /**
743
743
  * Padding X
744
744
  * @see https://tailwindcss.com/docs/padding
745
745
  */
746
746
  px: [{
747
- px: [T]
747
+ px: [M]
748
748
  }],
749
749
  /**
750
750
  * Padding Y
751
751
  * @see https://tailwindcss.com/docs/padding
752
752
  */
753
753
  py: [{
754
- py: [T]
754
+ py: [M]
755
755
  }],
756
756
  /**
757
757
  * Padding Start
758
758
  * @see https://tailwindcss.com/docs/padding
759
759
  */
760
760
  ps: [{
761
- ps: [T]
761
+ ps: [M]
762
762
  }],
763
763
  /**
764
764
  * Padding End
765
765
  * @see https://tailwindcss.com/docs/padding
766
766
  */
767
767
  pe: [{
768
- pe: [T]
768
+ pe: [M]
769
769
  }],
770
770
  /**
771
771
  * Padding Top
772
772
  * @see https://tailwindcss.com/docs/padding
773
773
  */
774
774
  pt: [{
775
- pt: [T]
775
+ pt: [M]
776
776
  }],
777
777
  /**
778
778
  * Padding Right
779
779
  * @see https://tailwindcss.com/docs/padding
780
780
  */
781
781
  pr: [{
782
- pr: [T]
782
+ pr: [M]
783
783
  }],
784
784
  /**
785
785
  * Padding Bottom
786
786
  * @see https://tailwindcss.com/docs/padding
787
787
  */
788
788
  pb: [{
789
- pb: [T]
789
+ pb: [M]
790
790
  }],
791
791
  /**
792
792
  * Padding Left
793
793
  * @see https://tailwindcss.com/docs/padding
794
794
  */
795
795
  pl: [{
796
- pl: [T]
796
+ pl: [M]
797
797
  }],
798
798
  /**
799
799
  * Margin
800
800
  * @see https://tailwindcss.com/docs/margin
801
801
  */
802
802
  m: [{
803
- m: [w]
803
+ m: [m]
804
804
  }],
805
805
  /**
806
806
  * Margin X
807
807
  * @see https://tailwindcss.com/docs/margin
808
808
  */
809
809
  mx: [{
810
- mx: [w]
810
+ mx: [m]
811
811
  }],
812
812
  /**
813
813
  * Margin Y
814
814
  * @see https://tailwindcss.com/docs/margin
815
815
  */
816
816
  my: [{
817
- my: [w]
817
+ my: [m]
818
818
  }],
819
819
  /**
820
820
  * Margin Start
821
821
  * @see https://tailwindcss.com/docs/margin
822
822
  */
823
823
  ms: [{
824
- ms: [w]
824
+ ms: [m]
825
825
  }],
826
826
  /**
827
827
  * Margin End
828
828
  * @see https://tailwindcss.com/docs/margin
829
829
  */
830
830
  me: [{
831
- me: [w]
831
+ me: [m]
832
832
  }],
833
833
  /**
834
834
  * Margin Top
835
835
  * @see https://tailwindcss.com/docs/margin
836
836
  */
837
837
  mt: [{
838
- mt: [w]
838
+ mt: [m]
839
839
  }],
840
840
  /**
841
841
  * Margin Right
842
842
  * @see https://tailwindcss.com/docs/margin
843
843
  */
844
844
  mr: [{
845
- mr: [w]
845
+ mr: [m]
846
846
  }],
847
847
  /**
848
848
  * Margin Bottom
849
849
  * @see https://tailwindcss.com/docs/margin
850
850
  */
851
851
  mb: [{
852
- mb: [w]
852
+ mb: [m]
853
853
  }],
854
854
  /**
855
855
  * Margin Left
856
856
  * @see https://tailwindcss.com/docs/margin
857
857
  */
858
858
  ml: [{
859
- ml: [w]
859
+ ml: [m]
860
860
  }],
861
861
  /**
862
862
  * Space Between X
863
863
  * @see https://tailwindcss.com/docs/space
864
864
  */
865
865
  "space-x": [{
866
- "space-x": [P]
866
+ "space-x": [j]
867
867
  }],
868
868
  /**
869
869
  * Space Between X Reverse
@@ -875,7 +875,7 @@ const C = (r) => {
875
875
  * @see https://tailwindcss.com/docs/space
876
876
  */
877
877
  "space-y": [{
878
- "space-y": [P]
878
+ "space-y": [j]
879
879
  }],
880
880
  /**
881
881
  * Space Between Y Reverse
@@ -888,51 +888,51 @@ const C = (r) => {
888
888
  * @see https://tailwindcss.com/docs/width
889
889
  */
890
890
  w: [{
891
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", h, n]
891
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", w, n]
892
892
  }],
893
893
  /**
894
894
  * Min-Width
895
895
  * @see https://tailwindcss.com/docs/min-width
896
896
  */
897
897
  "min-w": [{
898
- "min-w": [h, n, "min", "max", "fit"]
898
+ "min-w": [w, n, "min", "max", "fit"]
899
899
  }],
900
900
  /**
901
901
  * Max-Width
902
902
  * @see https://tailwindcss.com/docs/max-width
903
903
  */
904
904
  "max-w": [{
905
- "max-w": [h, n, "none", "full", "min", "max", "fit", "prose", {
906
- screen: [K]
907
- }, K]
905
+ "max-w": [w, n, "none", "full", "min", "max", "fit", "prose", {
906
+ screen: [V]
907
+ }, V]
908
908
  }],
909
909
  /**
910
910
  * Height
911
911
  * @see https://tailwindcss.com/docs/height
912
912
  */
913
913
  h: [{
914
- h: [h, n, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
914
+ h: [w, n, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
915
915
  }],
916
916
  /**
917
917
  * Min-Height
918
918
  * @see https://tailwindcss.com/docs/min-height
919
919
  */
920
920
  "min-h": [{
921
- "min-h": [h, n, "min", "max", "fit", "svh", "lvh", "dvh"]
921
+ "min-h": [w, n, "min", "max", "fit", "svh", "lvh", "dvh"]
922
922
  }],
923
923
  /**
924
924
  * Max-Height
925
925
  * @see https://tailwindcss.com/docs/max-height
926
926
  */
927
927
  "max-h": [{
928
- "max-h": [h, n, "min", "max", "fit", "svh", "lvh", "dvh"]
928
+ "max-h": [w, n, "min", "max", "fit", "svh", "lvh", "dvh"]
929
929
  }],
930
930
  /**
931
931
  * Size
932
932
  * @see https://tailwindcss.com/docs/size
933
933
  */
934
934
  size: [{
935
- size: [h, n, "auto", "min", "max", "fit"]
935
+ size: [w, n, "auto", "min", "max", "fit"]
936
936
  }],
937
937
  // Typography
938
938
  /**
@@ -940,7 +940,7 @@ const C = (r) => {
940
940
  * @see https://tailwindcss.com/docs/font-size
941
941
  */
942
942
  "font-size": [{
943
- text: ["base", K, V]
943
+ text: ["base", V, U]
944
944
  }],
945
945
  /**
946
946
  * Font Smoothing
@@ -957,14 +957,14 @@ const C = (r) => {
957
957
  * @see https://tailwindcss.com/docs/font-weight
958
958
  */
959
959
  "font-weight": [{
960
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", le]
960
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", de]
961
961
  }],
962
962
  /**
963
963
  * Font Family
964
964
  * @see https://tailwindcss.com/docs/font-family
965
965
  */
966
966
  "font-family": [{
967
- font: [S]
967
+ font: [re]
968
968
  }],
969
969
  /**
970
970
  * Font Variant Numeric
@@ -1001,35 +1001,35 @@ const C = (r) => {
1001
1001
  * @see https://tailwindcss.com/docs/letter-spacing
1002
1002
  */
1003
1003
  tracking: [{
1004
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", h]
1004
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", w]
1005
1005
  }],
1006
1006
  /**
1007
1007
  * Line Clamp
1008
1008
  * @see https://tailwindcss.com/docs/line-clamp
1009
1009
  */
1010
1010
  "line-clamp": [{
1011
- "line-clamp": ["none", J, le]
1011
+ "line-clamp": ["none", J, de]
1012
1012
  }],
1013
1013
  /**
1014
1014
  * Line Height
1015
1015
  * @see https://tailwindcss.com/docs/line-height
1016
1016
  */
1017
1017
  leading: [{
1018
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", B, h]
1018
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", $, w]
1019
1019
  }],
1020
1020
  /**
1021
1021
  * List Style Image
1022
1022
  * @see https://tailwindcss.com/docs/list-style-image
1023
1023
  */
1024
1024
  "list-image": [{
1025
- "list-image": ["none", h]
1025
+ "list-image": ["none", w]
1026
1026
  }],
1027
1027
  /**
1028
1028
  * List Style Type
1029
1029
  * @see https://tailwindcss.com/docs/list-style-type
1030
1030
  */
1031
1031
  "list-style-type": [{
1032
- list: ["none", "disc", "decimal", h]
1032
+ list: ["none", "disc", "decimal", w]
1033
1033
  }],
1034
1034
  /**
1035
1035
  * List Style Position
@@ -1084,21 +1084,21 @@ const C = (r) => {
1084
1084
  * @see https://tailwindcss.com/docs/text-decoration-style
1085
1085
  */
1086
1086
  "text-decoration-style": [{
1087
- decoration: [..._(), "wavy"]
1087
+ decoration: [...O(), "wavy"]
1088
1088
  }],
1089
1089
  /**
1090
1090
  * Text Decoration Thickness
1091
1091
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1092
1092
  */
1093
1093
  "text-decoration-thickness": [{
1094
- decoration: ["auto", "from-font", B, V]
1094
+ decoration: ["auto", "from-font", $, U]
1095
1095
  }],
1096
1096
  /**
1097
1097
  * Text Underline Offset
1098
1098
  * @see https://tailwindcss.com/docs/text-underline-offset
1099
1099
  */
1100
1100
  "underline-offset": [{
1101
- "underline-offset": ["auto", B, h]
1101
+ "underline-offset": ["auto", $, w]
1102
1102
  }],
1103
1103
  /**
1104
1104
  * Text Decoration Color
@@ -1136,7 +1136,7 @@ const C = (r) => {
1136
1136
  * @see https://tailwindcss.com/docs/vertical-align
1137
1137
  */
1138
1138
  "vertical-align": [{
1139
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", h]
1139
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w]
1140
1140
  }],
1141
1141
  /**
1142
1142
  * Whitespace
@@ -1164,7 +1164,7 @@ const C = (r) => {
1164
1164
  * @see https://tailwindcss.com/docs/content
1165
1165
  */
1166
1166
  content: [{
1167
- content: ["none", h]
1167
+ content: ["none", w]
1168
1168
  }],
1169
1169
  // Backgrounds
1170
1170
  /**
@@ -1201,7 +1201,7 @@ const C = (r) => {
1201
1201
  * @see https://tailwindcss.com/docs/background-position
1202
1202
  */
1203
1203
  "bg-position": [{
1204
- bg: [...Q(), Ir]
1204
+ bg: [..._(), Lr]
1205
1205
  }],
1206
1206
  /**
1207
1207
  * Background Repeat
@@ -1217,7 +1217,7 @@ const C = (r) => {
1217
1217
  * @see https://tailwindcss.com/docs/background-size
1218
1218
  */
1219
1219
  "bg-size": [{
1220
- bg: ["auto", "cover", "contain", zr]
1220
+ bg: ["auto", "cover", "contain", Ir]
1221
1221
  }],
1222
1222
  /**
1223
1223
  * Background Image
@@ -1226,7 +1226,7 @@ const C = (r) => {
1226
1226
  "bg-image": [{
1227
1227
  bg: ["none", {
1228
1228
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1229
- }, Rr]
1229
+ }, Br]
1230
1230
  }],
1231
1231
  /**
1232
1232
  * Background Color
@@ -1240,42 +1240,42 @@ const C = (r) => {
1240
1240
  * @see https://tailwindcss.com/docs/gradient-color-stops
1241
1241
  */
1242
1242
  "gradient-from-pos": [{
1243
- from: [F]
1243
+ from: [A]
1244
1244
  }],
1245
1245
  /**
1246
1246
  * Gradient Color Stops Via Position
1247
1247
  * @see https://tailwindcss.com/docs/gradient-color-stops
1248
1248
  */
1249
1249
  "gradient-via-pos": [{
1250
- via: [F]
1250
+ via: [A]
1251
1251
  }],
1252
1252
  /**
1253
1253
  * Gradient Color Stops To Position
1254
1254
  * @see https://tailwindcss.com/docs/gradient-color-stops
1255
1255
  */
1256
1256
  "gradient-to-pos": [{
1257
- to: [F]
1257
+ to: [A]
1258
1258
  }],
1259
1259
  /**
1260
1260
  * Gradient Color Stops From
1261
1261
  * @see https://tailwindcss.com/docs/gradient-color-stops
1262
1262
  */
1263
1263
  "gradient-from": [{
1264
- from: [y]
1264
+ from: [s]
1265
1265
  }],
1266
1266
  /**
1267
1267
  * Gradient Color Stops Via
1268
1268
  * @see https://tailwindcss.com/docs/gradient-color-stops
1269
1269
  */
1270
1270
  "gradient-via": [{
1271
- via: [y]
1271
+ via: [s]
1272
1272
  }],
1273
1273
  /**
1274
1274
  * Gradient Color Stops To
1275
1275
  * @see https://tailwindcss.com/docs/gradient-color-stops
1276
1276
  */
1277
1277
  "gradient-to": [{
1278
- to: [y]
1278
+ to: [s]
1279
1279
  }],
1280
1280
  // Borders
1281
1281
  /**
@@ -1458,7 +1458,7 @@ const C = (r) => {
1458
1458
  * @see https://tailwindcss.com/docs/border-style
1459
1459
  */
1460
1460
  "border-style": [{
1461
- border: [..._(), "hidden"]
1461
+ border: [...O(), "hidden"]
1462
1462
  }],
1463
1463
  /**
1464
1464
  * Divide Width X
@@ -1496,7 +1496,7 @@ const C = (r) => {
1496
1496
  * @see https://tailwindcss.com/docs/divide-style
1497
1497
  */
1498
1498
  "divide-style": [{
1499
- divide: _()
1499
+ divide: O()
1500
1500
  }],
1501
1501
  /**
1502
1502
  * Border Color
@@ -1573,21 +1573,21 @@ const C = (r) => {
1573
1573
  * @see https://tailwindcss.com/docs/outline-style
1574
1574
  */
1575
1575
  "outline-style": [{
1576
- outline: ["", ..._()]
1576
+ outline: ["", ...O()]
1577
1577
  }],
1578
1578
  /**
1579
1579
  * Outline Offset
1580
1580
  * @see https://tailwindcss.com/docs/outline-offset
1581
1581
  */
1582
1582
  "outline-offset": [{
1583
- "outline-offset": [B, h]
1583
+ "outline-offset": [$, w]
1584
1584
  }],
1585
1585
  /**
1586
1586
  * Outline Width
1587
1587
  * @see https://tailwindcss.com/docs/outline-width
1588
1588
  */
1589
1589
  "outline-w": [{
1590
- outline: [B, V]
1590
+ outline: [$, U]
1591
1591
  }],
1592
1592
  /**
1593
1593
  * Outline Color
@@ -1601,7 +1601,7 @@ const C = (r) => {
1601
1601
  * @see https://tailwindcss.com/docs/ring-width
1602
1602
  */
1603
1603
  "ring-w": [{
1604
- ring: j()
1604
+ ring: Z()
1605
1605
  }],
1606
1606
  /**
1607
1607
  * Ring Width Inset
@@ -1627,7 +1627,7 @@ const C = (r) => {
1627
1627
  * @see https://tailwindcss.com/docs/ring-offset-width
1628
1628
  */
1629
1629
  "ring-offset-w": [{
1630
- "ring-offset": [B, V]
1630
+ "ring-offset": [$, U]
1631
1631
  }],
1632
1632
  /**
1633
1633
  * Ring Offset Color
@@ -1642,14 +1642,14 @@ const C = (r) => {
1642
1642
  * @see https://tailwindcss.com/docs/box-shadow
1643
1643
  */
1644
1644
  shadow: [{
1645
- shadow: ["", "inner", "none", K, Br]
1645
+ shadow: ["", "inner", "none", V, $r]
1646
1646
  }],
1647
1647
  /**
1648
1648
  * Box Shadow Color
1649
1649
  * @see https://tailwindcss.com/docs/box-shadow-color
1650
1650
  */
1651
1651
  "shadow-color": [{
1652
- shadow: [S]
1652
+ shadow: [re]
1653
1653
  }],
1654
1654
  /**
1655
1655
  * Opacity
@@ -1663,14 +1663,14 @@ const C = (r) => {
1663
1663
  * @see https://tailwindcss.com/docs/mix-blend-mode
1664
1664
  */
1665
1665
  "mix-blend": [{
1666
- "mix-blend": [...ee(), "plus-lighter", "plus-darker"]
1666
+ "mix-blend": [...te(), "plus-lighter", "plus-darker"]
1667
1667
  }],
1668
1668
  /**
1669
1669
  * Background Blend Mode
1670
1670
  * @see https://tailwindcss.com/docs/background-blend-mode
1671
1671
  */
1672
1672
  "bg-blend": [{
1673
- "bg-blend": ee()
1673
+ "bg-blend": te()
1674
1674
  }],
1675
1675
  // Filters
1676
1676
  /**
@@ -1707,42 +1707,42 @@ const C = (r) => {
1707
1707
  * @see https://tailwindcss.com/docs/drop-shadow
1708
1708
  */
1709
1709
  "drop-shadow": [{
1710
- "drop-shadow": ["", "none", K, h]
1710
+ "drop-shadow": ["", "none", V, w]
1711
1711
  }],
1712
1712
  /**
1713
1713
  * Grayscale
1714
1714
  * @see https://tailwindcss.com/docs/grayscale
1715
1715
  */
1716
1716
  grayscale: [{
1717
- grayscale: [f]
1717
+ grayscale: [p]
1718
1718
  }],
1719
1719
  /**
1720
1720
  * Hue Rotate
1721
1721
  * @see https://tailwindcss.com/docs/hue-rotate
1722
1722
  */
1723
1723
  "hue-rotate": [{
1724
- "hue-rotate": [x]
1724
+ "hue-rotate": [h]
1725
1725
  }],
1726
1726
  /**
1727
1727
  * Invert
1728
1728
  * @see https://tailwindcss.com/docs/invert
1729
1729
  */
1730
1730
  invert: [{
1731
- invert: [g]
1731
+ invert: [x]
1732
1732
  }],
1733
1733
  /**
1734
1734
  * Saturate
1735
1735
  * @see https://tailwindcss.com/docs/saturate
1736
1736
  */
1737
1737
  saturate: [{
1738
- saturate: [k]
1738
+ saturate: [T]
1739
1739
  }],
1740
1740
  /**
1741
1741
  * Sepia
1742
1742
  * @see https://tailwindcss.com/docs/sepia
1743
1743
  */
1744
1744
  sepia: [{
1745
- sepia: [D]
1745
+ sepia: [f]
1746
1746
  }],
1747
1747
  /**
1748
1748
  * Backdrop Filter
@@ -1778,21 +1778,21 @@ const C = (r) => {
1778
1778
  * @see https://tailwindcss.com/docs/backdrop-grayscale
1779
1779
  */
1780
1780
  "backdrop-grayscale": [{
1781
- "backdrop-grayscale": [f]
1781
+ "backdrop-grayscale": [p]
1782
1782
  }],
1783
1783
  /**
1784
1784
  * Backdrop Hue Rotate
1785
1785
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1786
1786
  */
1787
1787
  "backdrop-hue-rotate": [{
1788
- "backdrop-hue-rotate": [x]
1788
+ "backdrop-hue-rotate": [h]
1789
1789
  }],
1790
1790
  /**
1791
1791
  * Backdrop Invert
1792
1792
  * @see https://tailwindcss.com/docs/backdrop-invert
1793
1793
  */
1794
1794
  "backdrop-invert": [{
1795
- "backdrop-invert": [g]
1795
+ "backdrop-invert": [x]
1796
1796
  }],
1797
1797
  /**
1798
1798
  * Backdrop Opacity
@@ -1806,14 +1806,14 @@ const C = (r) => {
1806
1806
  * @see https://tailwindcss.com/docs/backdrop-saturate
1807
1807
  */
1808
1808
  "backdrop-saturate": [{
1809
- "backdrop-saturate": [k]
1809
+ "backdrop-saturate": [T]
1810
1810
  }],
1811
1811
  /**
1812
1812
  * Backdrop Sepia
1813
1813
  * @see https://tailwindcss.com/docs/backdrop-sepia
1814
1814
  */
1815
1815
  "backdrop-sepia": [{
1816
- "backdrop-sepia": [D]
1816
+ "backdrop-sepia": [f]
1817
1817
  }],
1818
1818
  // Tables
1819
1819
  /**
@@ -1864,35 +1864,35 @@ const C = (r) => {
1864
1864
  * @see https://tailwindcss.com/docs/transition-property
1865
1865
  */
1866
1866
  transition: [{
1867
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", h]
1867
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", w]
1868
1868
  }],
1869
1869
  /**
1870
1870
  * Transition Duration
1871
1871
  * @see https://tailwindcss.com/docs/transition-duration
1872
1872
  */
1873
1873
  duration: [{
1874
- duration: M()
1874
+ duration: D()
1875
1875
  }],
1876
1876
  /**
1877
1877
  * Transition Timing Function
1878
1878
  * @see https://tailwindcss.com/docs/transition-timing-function
1879
1879
  */
1880
1880
  ease: [{
1881
- ease: ["linear", "in", "out", "in-out", h]
1881
+ ease: ["linear", "in", "out", "in-out", w]
1882
1882
  }],
1883
1883
  /**
1884
1884
  * Transition Delay
1885
1885
  * @see https://tailwindcss.com/docs/transition-delay
1886
1886
  */
1887
1887
  delay: [{
1888
- delay: M()
1888
+ delay: D()
1889
1889
  }],
1890
1890
  /**
1891
1891
  * Animation
1892
1892
  * @see https://tailwindcss.com/docs/animation
1893
1893
  */
1894
1894
  animate: [{
1895
- animate: ["none", "spin", "ping", "pulse", "bounce", h]
1895
+ animate: ["none", "spin", "ping", "pulse", "bounce", w]
1896
1896
  }],
1897
1897
  // Transforms
1898
1898
  /**
@@ -1907,28 +1907,28 @@ const C = (r) => {
1907
1907
  * @see https://tailwindcss.com/docs/scale
1908
1908
  */
1909
1909
  scale: [{
1910
- scale: [p]
1910
+ scale: [y]
1911
1911
  }],
1912
1912
  /**
1913
1913
  * Scale X
1914
1914
  * @see https://tailwindcss.com/docs/scale
1915
1915
  */
1916
1916
  "scale-x": [{
1917
- "scale-x": [p]
1917
+ "scale-x": [y]
1918
1918
  }],
1919
1919
  /**
1920
1920
  * Scale Y
1921
1921
  * @see https://tailwindcss.com/docs/scale
1922
1922
  */
1923
1923
  "scale-y": [{
1924
- "scale-y": [p]
1924
+ "scale-y": [y]
1925
1925
  }],
1926
1926
  /**
1927
1927
  * Rotate
1928
1928
  * @see https://tailwindcss.com/docs/rotate
1929
1929
  */
1930
1930
  rotate: [{
1931
- rotate: [q, h]
1931
+ rotate: [ee, w]
1932
1932
  }],
1933
1933
  /**
1934
1934
  * Translate X
@@ -1949,21 +1949,21 @@ const C = (r) => {
1949
1949
  * @see https://tailwindcss.com/docs/skew
1950
1950
  */
1951
1951
  "skew-x": [{
1952
- "skew-x": [I]
1952
+ "skew-x": [z]
1953
1953
  }],
1954
1954
  /**
1955
1955
  * Skew Y
1956
1956
  * @see https://tailwindcss.com/docs/skew
1957
1957
  */
1958
1958
  "skew-y": [{
1959
- "skew-y": [I]
1959
+ "skew-y": [z]
1960
1960
  }],
1961
1961
  /**
1962
1962
  * Transform Origin
1963
1963
  * @see https://tailwindcss.com/docs/transform-origin
1964
1964
  */
1965
1965
  "transform-origin": [{
1966
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", h]
1966
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", w]
1967
1967
  }],
1968
1968
  // Interactivity
1969
1969
  /**
@@ -1985,7 +1985,7 @@ const C = (r) => {
1985
1985
  * @see https://tailwindcss.com/docs/cursor
1986
1986
  */
1987
1987
  cursor: [{
1988
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", h]
1988
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", w]
1989
1989
  }],
1990
1990
  /**
1991
1991
  * Caret Color
@@ -2207,7 +2207,7 @@ const C = (r) => {
2207
2207
  * @see https://tailwindcss.com/docs/will-change
2208
2208
  */
2209
2209
  "will-change": [{
2210
- "will-change": ["auto", "scroll", "contents", "transform", h]
2210
+ "will-change": ["auto", "scroll", "contents", "transform", w]
2211
2211
  }],
2212
2212
  // SVG
2213
2213
  /**
@@ -2222,7 +2222,7 @@ const C = (r) => {
2222
2222
  * @see https://tailwindcss.com/docs/stroke-width
2223
2223
  */
2224
2224
  "stroke-w": [{
2225
- stroke: [B, V, le]
2225
+ stroke: [$, U, de]
2226
2226
  }],
2227
2227
  /**
2228
2228
  * Stroke
@@ -2297,11 +2297,11 @@ const C = (r) => {
2297
2297
  "font-size": ["leading"]
2298
2298
  }
2299
2299
  };
2300
- }, Kr = /* @__PURE__ */ Nr(Vr);
2300
+ }, Wr = /* @__PURE__ */ Cr(Kr);
2301
2301
  function d(...r) {
2302
- return Kr(ze(r));
2302
+ return Wr(Ie(r));
2303
2303
  }
2304
- const ne = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2304
+ const oe = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2305
2305
  "div",
2306
2306
  {
2307
2307
  ref: t,
@@ -2312,8 +2312,8 @@ const ne = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2312
2312
  ...n
2313
2313
  }
2314
2314
  ));
2315
- ne.displayName = "Card";
2316
- const be = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2315
+ oe.displayName = "Card";
2316
+ const ge = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2317
2317
  "div",
2318
2318
  {
2319
2319
  ref: t,
@@ -2321,8 +2321,8 @@ const be = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2321
2321
  ...n
2322
2322
  }
2323
2323
  ));
2324
- be.displayName = "CardHeader";
2325
- const ge = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2324
+ ge.displayName = "CardHeader";
2325
+ const pe = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2326
2326
  "div",
2327
2327
  {
2328
2328
  ref: t,
@@ -2330,8 +2330,8 @@ const ge = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2330
2330
  ...n
2331
2331
  }
2332
2332
  ));
2333
- ge.displayName = "CardTitle";
2334
- const pe = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2333
+ pe.displayName = "CardTitle";
2334
+ const fe = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2335
2335
  "div",
2336
2336
  {
2337
2337
  ref: t,
@@ -2339,10 +2339,10 @@ const pe = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2339
2339
  ...n
2340
2340
  }
2341
2341
  ));
2342
- pe.displayName = "CardDescription";
2343
- const ae = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a("div", { ref: t, className: d("p-6 pt-0", r), ...n }));
2344
- ae.displayName = "CardContent";
2345
- const Wr = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2342
+ fe.displayName = "CardDescription";
2343
+ const se = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a("div", { ref: t, className: d("p-6 pt-0", r), ...n }));
2344
+ se.displayName = "CardContent";
2345
+ const _r = F.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2346
2346
  "div",
2347
2347
  {
2348
2348
  ref: t,
@@ -2350,58 +2350,58 @@ const Wr = A.forwardRef(({ className: r, ...n }, t) => /* @__PURE__ */ a(
2350
2350
  ...n
2351
2351
  }
2352
2352
  ));
2353
- Wr.displayName = "CardFooter";
2354
- function Me(r, n) {
2353
+ _r.displayName = "CardFooter";
2354
+ function Te(r, n) {
2355
2355
  if (typeof r == "function")
2356
2356
  return r(n);
2357
2357
  r != null && (r.current = n);
2358
2358
  }
2359
- function _r(...r) {
2359
+ function Or(...r) {
2360
2360
  return (n) => {
2361
2361
  let t = !1;
2362
2362
  const o = r.map((i) => {
2363
- const l = Me(i, n);
2363
+ const l = Te(i, n);
2364
2364
  return !t && typeof l == "function" && (t = !0), l;
2365
2365
  });
2366
2366
  if (t)
2367
2367
  return () => {
2368
2368
  for (let i = 0; i < o.length; i++) {
2369
2369
  const l = o[i];
2370
- typeof l == "function" ? l() : Me(r[i], null);
2370
+ typeof l == "function" ? l() : Te(r[i], null);
2371
2371
  }
2372
2372
  };
2373
2373
  };
2374
2374
  }
2375
2375
  // @__NO_SIDE_EFFECTS__
2376
- function Or(r) {
2377
- const n = /* @__PURE__ */ Xr(r), t = A.forwardRef((o, i) => {
2378
- const { children: l, ...u } = o, c = A.Children.toArray(l), e = c.find(Yr);
2376
+ function Hr(r) {
2377
+ const n = /* @__PURE__ */ Jr(r), t = F.forwardRef((o, i) => {
2378
+ const { children: l, ...u } = o, c = F.Children.toArray(l), e = c.find(Zr);
2379
2379
  if (e) {
2380
- const f = e.props.children, x = c.map((g) => g === e ? A.Children.count(f) > 1 ? A.Children.only(null) : A.isValidElement(f) ? f.props.children : null : g);
2381
- return /* @__PURE__ */ a(n, { ...u, ref: i, children: A.isValidElement(f) ? A.cloneElement(f, void 0, x) : null });
2380
+ const p = e.props.children, h = c.map((x) => x === e ? F.Children.count(p) > 1 ? F.Children.only(null) : F.isValidElement(p) ? p.props.children : null : x);
2381
+ return /* @__PURE__ */ a(n, { ...u, ref: i, children: F.isValidElement(p) ? F.cloneElement(p, void 0, h) : null });
2382
2382
  }
2383
2383
  return /* @__PURE__ */ a(n, { ...u, ref: i, children: l });
2384
2384
  });
2385
2385
  return t.displayName = `${r}.Slot`, t;
2386
2386
  }
2387
- var Hr = /* @__PURE__ */ Or("Slot");
2387
+ var Xr = /* @__PURE__ */ Hr("Slot");
2388
2388
  // @__NO_SIDE_EFFECTS__
2389
- function Xr(r) {
2390
- const n = A.forwardRef((t, o) => {
2389
+ function Jr(r) {
2390
+ const n = F.forwardRef((t, o) => {
2391
2391
  const { children: i, ...l } = t;
2392
- if (A.isValidElement(i)) {
2393
- const u = qr(i), c = Zr(l, i.props);
2394
- return i.type !== A.Fragment && (c.ref = o ? _r(o, u) : u), A.cloneElement(i, c);
2392
+ if (F.isValidElement(i)) {
2393
+ const u = Qr(i), c = qr(l, i.props);
2394
+ return i.type !== F.Fragment && (c.ref = o ? Or(o, u) : u), F.cloneElement(i, c);
2395
2395
  }
2396
- return A.Children.count(i) > 1 ? A.Children.only(null) : null;
2396
+ return F.Children.count(i) > 1 ? F.Children.only(null) : null;
2397
2397
  });
2398
2398
  return n.displayName = `${r}.SlotClone`, n;
2399
2399
  }
2400
- var Jr = Symbol("radix.slottable");
2401
- function Yr(r) {
2402
- return A.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Jr;
2400
+ var Yr = Symbol("radix.slottable");
2401
+ function Zr(r) {
2402
+ return F.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Yr;
2403
2403
  }
2404
- function Zr(r, n) {
2404
+ function qr(r, n) {
2405
2405
  const t = { ...n };
2406
2406
  for (const o in n) {
2407
2407
  const i = r[o], l = n[o];
@@ -2412,40 +2412,40 @@ function Zr(r, n) {
2412
2412
  }
2413
2413
  return { ...r, ...t };
2414
2414
  }
2415
- function qr(r) {
2415
+ function Qr(r) {
2416
2416
  var o, i;
2417
2417
  let n = (o = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning;
2418
2418
  return t ? r.ref : (n = (i = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : i.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? r.props.ref : r.props.ref || r.ref);
2419
2419
  }
2420
- const Te = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Ee = ze, Ue = (r, n) => (t) => {
2420
+ const Ee = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Pe = Ie, Ue = (r, n) => (t) => {
2421
2421
  var o;
2422
- if ((n == null ? void 0 : n.variants) == null) return Ee(r, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2423
- const { variants: i, defaultVariants: l } = n, u = Object.keys(i).map((f) => {
2424
- const x = t == null ? void 0 : t[f], g = l == null ? void 0 : l[f];
2425
- if (x === null) return null;
2426
- const s = Te(x) || Te(g);
2427
- return i[f][s];
2428
- }), c = t && Object.entries(t).reduce((f, x) => {
2429
- let [g, s] = x;
2430
- return s === void 0 || (f[g] = s), f;
2431
- }, {}), e = n == null || (o = n.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((f, x) => {
2432
- let { class: g, className: s, ...y } = x;
2433
- return Object.entries(y).every((F) => {
2434
- let [m, w] = F;
2435
- return Array.isArray(w) ? w.includes({
2422
+ if ((n == null ? void 0 : n.variants) == null) return Pe(r, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2423
+ const { variants: i, defaultVariants: l } = n, u = Object.keys(i).map((p) => {
2424
+ const h = t == null ? void 0 : t[p], x = l == null ? void 0 : l[p];
2425
+ if (h === null) return null;
2426
+ const g = Ee(h) || Ee(x);
2427
+ return i[p][g];
2428
+ }), c = t && Object.entries(t).reduce((p, h) => {
2429
+ let [x, g] = h;
2430
+ return g === void 0 || (p[x] = g), p;
2431
+ }, {}), e = n == null || (o = n.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((p, h) => {
2432
+ let { class: x, className: g, ...s } = h;
2433
+ return Object.entries(s).every((A) => {
2434
+ let [k, m] = A;
2435
+ return Array.isArray(m) ? m.includes({
2436
2436
  ...l,
2437
2437
  ...c
2438
- }[m]) : {
2438
+ }[k]) : {
2439
2439
  ...l,
2440
2440
  ...c
2441
- }[m] === w;
2441
+ }[k] === m;
2442
2442
  }) ? [
2443
- ...f,
2444
- g,
2445
- s
2446
- ] : f;
2443
+ ...p,
2444
+ x,
2445
+ g
2446
+ ] : p;
2447
2447
  }, []);
2448
- return Ee(r, u, e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2448
+ return Pe(r, u, e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2449
2449
  }, Sr = Ue(
2450
2450
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
2451
2451
  {
@@ -2470,9 +2470,9 @@ const Te = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Ee = ze, U
2470
2470
  size: "default"
2471
2471
  }
2472
2472
  }
2473
- ), Ge = A.forwardRef(
2473
+ ), Ve = F.forwardRef(
2474
2474
  ({ className: r, variant: n, size: t, asChild: o = !1, ...i }, l) => /* @__PURE__ */ a(
2475
- o ? Hr : "button",
2475
+ o ? Xr : "button",
2476
2476
  {
2477
2477
  className: d(Sr({ variant: n, size: t, className: r })),
2478
2478
  ref: l,
@@ -2480,8 +2480,8 @@ const Te = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Ee = ze, U
2480
2480
  }
2481
2481
  )
2482
2482
  );
2483
- Ge.displayName = "Button";
2484
- const oe = A.forwardRef(
2483
+ Ve.displayName = "Button";
2484
+ const ie = F.forwardRef(
2485
2485
  ({ className: r, size: n = "md", variant: t = "default", ...o }, i) => {
2486
2486
  const l = {
2487
2487
  sm: "h-4 w-4",
@@ -2509,8 +2509,8 @@ const oe = A.forwardRef(
2509
2509
  );
2510
2510
  }
2511
2511
  );
2512
- oe.displayName = "Spinner";
2513
- const te = A.forwardRef(
2512
+ ie.displayName = "Spinner";
2513
+ const ae = F.forwardRef(
2514
2514
  ({
2515
2515
  amount: r,
2516
2516
  description: n,
@@ -2521,16 +2521,16 @@ const te = A.forwardRef(
2521
2521
  style: u,
2522
2522
  customText: c,
2523
2523
  ...e
2524
- }, f) => {
2525
- const x = (g) => new Intl.NumberFormat("en-US", {
2524
+ }, p) => {
2525
+ const h = (x) => new Intl.NumberFormat("en-US", {
2526
2526
  style: "currency",
2527
2527
  currency: "USD",
2528
2528
  minimumFractionDigits: 2
2529
- }).format(g);
2529
+ }).format(x);
2530
2530
  return /* @__PURE__ */ a(
2531
- Ge,
2531
+ Ve,
2532
2532
  {
2533
- ref: f,
2533
+ ref: p,
2534
2534
  onClick: t,
2535
2535
  disabled: o || i,
2536
2536
  className: d(
@@ -2544,7 +2544,7 @@ const te = A.forwardRef(
2544
2544
  ...e,
2545
2545
  children: i ? /* @__PURE__ */ b("div", { className: "flex items-center gap-3", children: [
2546
2546
  /* @__PURE__ */ a(
2547
- oe,
2547
+ ie,
2548
2548
  {
2549
2549
  size: "sm",
2550
2550
  variant: "default",
@@ -2552,13 +2552,13 @@ const te = A.forwardRef(
2552
2552
  }
2553
2553
  ),
2554
2554
  /* @__PURE__ */ a("span", { children: "Processing Payment..." })
2555
- ] }) : /* @__PURE__ */ a("span", { children: c || `Pay ${x(r)} USDC` })
2555
+ ] }) : /* @__PURE__ */ a("span", { children: c || `Pay ${h(r)} USDC` })
2556
2556
  }
2557
2557
  );
2558
2558
  }
2559
2559
  );
2560
- te.displayName = "PaymentButton";
2561
- const Qr = Ue(
2560
+ ae.displayName = "PaymentButton";
2561
+ const et = Ue(
2562
2562
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
2563
2563
  {
2564
2564
  variants: {
@@ -2574,10 +2574,10 @@ const Qr = Ue(
2574
2574
  }
2575
2575
  }
2576
2576
  );
2577
- function Ve({ className: r, variant: n, ...t }) {
2578
- return /* @__PURE__ */ a("div", { className: d(Qr({ variant: n }), r), ...t });
2577
+ function Ke({ className: r, variant: n, ...t }) {
2578
+ return /* @__PURE__ */ a("div", { className: d(et({ variant: n }), r), ...t });
2579
2579
  }
2580
- const Ke = ({
2580
+ const We = ({
2581
2581
  wallet: r,
2582
2582
  balance: n,
2583
2583
  network: t,
@@ -2587,9 +2587,9 @@ const Ke = ({
2587
2587
  className: u,
2588
2588
  style: c
2589
2589
  }) => {
2590
- var g;
2591
- const e = ((g = r == null ? void 0 : r.publicKey) == null ? void 0 : g.toString()) || (r == null ? void 0 : r.address), f = (s) => `${s.slice(0, 4)}...${s.slice(-4)}`, x = () => t === "solana" ? "Mainnet" : "Devnet";
2592
- return !r || !e ? /* @__PURE__ */ a(ne, { className: d("border-dashed", u), style: c, children: /* @__PURE__ */ a(ae, { className: "p-4 text-center text-muted-foreground", children: /* @__PURE__ */ a("p", { className: "text-sm", children: "No wallet connected" }) }) }) : /* @__PURE__ */ a(
2590
+ var x;
2591
+ const e = ((x = r == null ? void 0 : r.publicKey) == null ? void 0 : x.toString()) || (r == null ? void 0 : r.address), p = (g) => `${g.slice(0, 4)}...${g.slice(-4)}`, h = () => t === "solana" ? "Mainnet" : "Devnet";
2592
+ return !r || !e ? /* @__PURE__ */ a(oe, { className: d("border-dashed", u), style: c, children: /* @__PURE__ */ a(se, { className: "p-4 text-center text-muted-foreground", children: /* @__PURE__ */ a("p", { className: "text-sm", children: "No wallet connected" }) }) }) : /* @__PURE__ */ a(
2593
2593
  "div",
2594
2594
  {
2595
2595
  className: d(
@@ -2620,7 +2620,7 @@ const Ke = ({
2620
2620
  "text-sm font-mono",
2621
2621
  l === "light" || l === "solana-light" ? "text-black" : "text-white"
2622
2622
  ),
2623
- children: f(e)
2623
+ children: p(e)
2624
2624
  }
2625
2625
  )
2626
2626
  ] })
@@ -2647,11 +2647,11 @@ const Ke = ({
2647
2647
  t && /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
2648
2648
  /* @__PURE__ */ a("span", { className: "text-sm font-medium text-slate-600", children: "Network" }),
2649
2649
  /* @__PURE__ */ a(
2650
- Ve,
2650
+ Ke,
2651
2651
  {
2652
2652
  variant: "outline",
2653
2653
  className: "text-xs border-slate-300 text-slate-700",
2654
- children: x()
2654
+ children: h()
2655
2655
  }
2656
2656
  )
2657
2657
  ] })
@@ -2659,8 +2659,8 @@ const Ke = ({
2659
2659
  }
2660
2660
  );
2661
2661
  };
2662
- Ke.displayName = "WalletSection";
2663
- function et(r, n, t) {
2662
+ We.displayName = "WalletSection";
2663
+ function rt(r, n, t) {
2664
2664
  const o = Buffer.from(r.serialize()).toString("base64"), i = {
2665
2665
  x402Version: t,
2666
2666
  scheme: n.scheme,
@@ -2671,133 +2671,133 @@ function et(r, n, t) {
2671
2671
  };
2672
2672
  return Buffer.from(JSON.stringify(i)).toString("base64");
2673
2673
  }
2674
- function rt(r) {
2674
+ function tt(r) {
2675
2675
  if (r === "solana")
2676
2676
  return "https://api.mainnet-beta.solana.com";
2677
2677
  if (r === "solana-devnet")
2678
2678
  return "https://api.devnet.solana.com";
2679
2679
  throw new Error(`Unexpected network: ${r}`);
2680
2680
  }
2681
- async function tt(r, n, t, o) {
2682
- var E, L, $;
2683
- const i = new je(o, "confirmed"), l = (E = t == null ? void 0 : t.extra) == null ? void 0 : E.feePayer;
2681
+ async function nt(r, n, t, o) {
2682
+ var E, I, L;
2683
+ const i = new De(o, "confirmed"), l = (E = t == null ? void 0 : t.extra) == null ? void 0 : E.feePayer;
2684
2684
  if (typeof l != "string" || !l)
2685
2685
  throw new Error("Missing facilitator feePayer in payment requirements (extra.feePayer).");
2686
- const u = new W(l), c = ((L = r == null ? void 0 : r.publicKey) == null ? void 0 : L.toString()) || (r == null ? void 0 : r.address);
2686
+ const u = new W(l), c = ((I = r == null ? void 0 : r.publicKey) == null ? void 0 : I.toString()) || (r == null ? void 0 : r.address);
2687
2687
  if (!c)
2688
2688
  throw new Error("Missing connected Solana wallet address or publicKey");
2689
2689
  const e = new W(c);
2690
2690
  if (!(t != null && t.payTo))
2691
2691
  throw new Error("Missing payTo in payment requirements");
2692
- const f = new W(t.payTo), x = [];
2693
- if (x.push(
2694
- Ne.setComputeUnitLimit({
2692
+ const p = new W(t.payTo), h = [];
2693
+ if (h.push(
2694
+ Ce.setComputeUnitLimit({
2695
2695
  units: 4e4
2696
2696
  // Sufficient for SPL token transfer + ATA creation
2697
2697
  })
2698
- ), x.push(
2699
- Ne.setComputeUnitPrice({
2698
+ ), h.push(
2699
+ Ce.setComputeUnitPrice({
2700
2700
  microLamports: 1
2701
2701
  // Minimal price
2702
2702
  })
2703
2703
  ), !t.asset)
2704
2704
  throw new Error("Missing token mint for SPL transfer");
2705
- const g = new W(t.asset), s = await i.getAccountInfo(g, "confirmed"), y = (($ = s == null ? void 0 : s.owner) == null ? void 0 : $.toBase58()) === Ce.toBase58() ? Ce : or, F = await sr(i, g, void 0, y), m = await ce(
2706
- g,
2705
+ const x = new W(t.asset), g = await i.getAccountInfo(x, "confirmed"), s = ((L = g == null ? void 0 : g.owner) == null ? void 0 : L.toBase58()) === Fe.toBase58() ? Fe : sr, A = await ir(i, x, void 0, s), k = await ue(
2706
+ x,
2707
2707
  e,
2708
2708
  !1,
2709
- y
2710
- ), w = await ce(
2711
- g,
2712
- f,
2709
+ s
2710
+ ), m = await ue(
2711
+ x,
2712
+ p,
2713
2713
  !1,
2714
- y
2714
+ s
2715
2715
  );
2716
- if (!await i.getAccountInfo(m, "confirmed"))
2716
+ if (!await i.getAccountInfo(k, "confirmed"))
2717
2717
  throw new Error(
2718
2718
  `User does not have an Associated Token Account for ${t.asset}. Please create one first or ensure you have the required token.`
2719
2719
  );
2720
- if (!await i.getAccountInfo(w, "confirmed")) {
2721
- const z = new W(
2720
+ if (!await i.getAccountInfo(m, "confirmed")) {
2721
+ const K = new W(
2722
2722
  "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
2723
- ), v = new Qe({
2723
+ ), v = new er({
2724
2724
  keys: [
2725
2725
  { pubkey: u, isSigner: !0, isWritable: !0 },
2726
- { pubkey: w, isSigner: !1, isWritable: !0 },
2727
- { pubkey: f, isSigner: !1, isWritable: !1 },
2728
- { pubkey: g, isSigner: !1, isWritable: !1 },
2729
- { pubkey: er.programId, isSigner: !1, isWritable: !1 },
2730
- { pubkey: y, isSigner: !1, isWritable: !1 }
2726
+ { pubkey: m, isSigner: !1, isWritable: !0 },
2727
+ { pubkey: p, isSigner: !1, isWritable: !1 },
2728
+ { pubkey: x, isSigner: !1, isWritable: !1 },
2729
+ { pubkey: rr.programId, isSigner: !1, isWritable: !1 },
2730
+ { pubkey: s, isSigner: !1, isWritable: !1 }
2731
2731
  ],
2732
- programId: z,
2732
+ programId: K,
2733
2733
  data: Buffer.from([0])
2734
2734
  // CreateATA discriminator
2735
2735
  });
2736
- x.push(v);
2736
+ h.push(v);
2737
2737
  }
2738
- const k = BigInt(t.maxAmountRequired);
2739
- x.push(
2740
- ir(
2738
+ const T = BigInt(t.maxAmountRequired);
2739
+ h.push(
2740
+ lr(
2741
+ k,
2742
+ x,
2741
2743
  m,
2742
- g,
2743
- w,
2744
2744
  e,
2745
- k,
2746
- F.decimals,
2745
+ T,
2746
+ A.decimals,
2747
2747
  [],
2748
- y
2748
+ s
2749
2749
  )
2750
2750
  );
2751
- const { blockhash: p } = await i.getLatestBlockhash("confirmed"), D = new rr({
2751
+ const { blockhash: y } = await i.getLatestBlockhash("confirmed"), f = new tr({
2752
2752
  payerKey: u,
2753
- recentBlockhash: p,
2754
- instructions: x
2755
- }).compileToV0Message(), I = new tr(D);
2753
+ recentBlockhash: y,
2754
+ instructions: h
2755
+ }).compileToV0Message(), z = new nr(f);
2756
2756
  if (typeof (r == null ? void 0 : r.signTransaction) != "function")
2757
2757
  throw new Error("Connected wallet does not support signTransaction");
2758
- const P = await r.signTransaction(I);
2759
- return et(
2760
- P,
2758
+ const j = await r.signTransaction(z);
2759
+ return rt(
2760
+ j,
2761
2761
  t,
2762
2762
  n
2763
2763
  );
2764
2764
  }
2765
- function nt(r, n, t, o = BigInt(0)) {
2765
+ function at(r, n, t, o = BigInt(0)) {
2766
2766
  return async (i, l) => {
2767
2767
  const u = await r(i, l);
2768
2768
  if (u.status !== 402)
2769
2769
  return u;
2770
- const c = await u.json(), e = c.x402Version, f = c.accepts || [], x = f.find(
2771
- (y) => y.scheme === "exact" && (y.network === "solana-devnet" || y.network === "solana")
2770
+ const c = await u.json(), e = c.x402Version, p = c.accepts || [], h = p.find(
2771
+ (s) => s.scheme === "exact" && (s.network === "solana-devnet" || s.network === "solana")
2772
2772
  );
2773
- if (!x)
2773
+ if (!h)
2774
2774
  throw console.error(
2775
2775
  "❌ No suitable Solana payment requirements found. Available networks:",
2776
- f.map((y) => y.network)
2776
+ p.map((s) => s.network)
2777
2777
  ), new Error("No suitable Solana payment requirements found");
2778
- if (o > BigInt(0) && BigInt(x.maxAmountRequired) > o)
2778
+ if (o > BigInt(0) && BigInt(h.maxAmountRequired) > o)
2779
2779
  throw new Error("Payment amount exceeds maximum allowed");
2780
- const g = await tt(
2780
+ const x = await nt(
2781
2781
  n,
2782
2782
  e,
2783
- x,
2783
+ h,
2784
2784
  t
2785
- ), s = {
2785
+ ), g = {
2786
2786
  ...l,
2787
2787
  headers: {
2788
2788
  ...(l == null ? void 0 : l.headers) || {},
2789
- "X-PAYMENT": g,
2789
+ "X-PAYMENT": x,
2790
2790
  "Access-Control-Expose-Headers": "X-PAYMENT-RESPONSE"
2791
2791
  }
2792
2792
  };
2793
- return await r(i, s);
2793
+ return await r(i, g);
2794
2794
  };
2795
2795
  }
2796
- var at = class {
2796
+ var ot = class {
2797
2797
  constructor(r) {
2798
- ke(this, "paymentFetch");
2799
- const n = r.rpcUrl || rt(r.network);
2800
- this.paymentFetch = nt(
2798
+ ve(this, "paymentFetch");
2799
+ const n = r.rpcUrl || tt(r.network);
2800
+ this.paymentFetch = at(
2801
2801
  fetch.bind(window),
2802
2802
  r.wallet,
2803
2803
  n,
@@ -2811,67 +2811,67 @@ var at = class {
2811
2811
  return this.paymentFetch(r, n);
2812
2812
  }
2813
2813
  };
2814
- function ot(r) {
2815
- return new at(r);
2816
- }
2817
2814
  function st(r) {
2818
- const [n, t] = X("idle"), [o, i] = X(null), [l, u] = X(null), [c, e] = X(!1), f = ve(() => {
2815
+ return new ot(r);
2816
+ }
2817
+ function it(r) {
2818
+ const [n, t] = X("idle"), [o, i] = X(null), [l, u] = X(null), [c, e] = X(!1), p = ye(() => {
2819
2819
  t("idle"), i(null), u(null), e(!1);
2820
2820
  }, []);
2821
2821
  return {
2822
- pay: ve(
2823
- async (g, s) => {
2824
- var y;
2822
+ pay: ye(
2823
+ async (x, g) => {
2824
+ var s;
2825
2825
  try {
2826
- if (e(!0), t("pending"), i(null), r.maxPaymentAmount && g > r.maxPaymentAmount)
2826
+ if (e(!0), t("pending"), i(null), r.maxPaymentAmount && x > r.maxPaymentAmount)
2827
2827
  throw new Error(
2828
- `Payment amount ${g} exceeds maximum allowed ${r.maxPaymentAmount}`
2828
+ `Payment amount ${x} exceeds maximum allowed ${r.maxPaymentAmount}`
2829
2829
  );
2830
- const F = ((y = r.wallet.publicKey) == null ? void 0 : y.toString()) || r.wallet.address;
2831
- if (!F)
2830
+ const A = ((s = r.wallet.publicKey) == null ? void 0 : s.toString()) || r.wallet.address;
2831
+ if (!A)
2832
2832
  throw new Error("Wallet not connected");
2833
- const m = ot({
2833
+ const k = st({
2834
2834
  wallet: r.wallet,
2835
2835
  network: r.network,
2836
2836
  rpcUrl: r.rpcUrl,
2837
2837
  maxPaymentAmount: r.maxPaymentAmount ? BigInt(Math.floor(r.maxPaymentAmount * 1e6)) : void 0
2838
- }), w = "https://x402.payai.network/api/solana/paid-content", N = r.apiEndpoint || w;
2838
+ }), m = "https://x402.payai.network/api/solana/paid-content", N = r.apiEndpoint || m;
2839
2839
  console.log("Initiating x402 payment:", {
2840
2840
  endpoint: N,
2841
- isDemo: N === w,
2842
- amount: g,
2843
- description: s,
2844
- wallet: F,
2841
+ isDemo: N === m,
2842
+ amount: x,
2843
+ description: g,
2844
+ wallet: A,
2845
2845
  network: r.network
2846
2846
  });
2847
- const k = await m.fetch(N, {
2847
+ const T = await k.fetch(N, {
2848
2848
  method: "POST",
2849
2849
  headers: {
2850
2850
  "Content-Type": "application/json"
2851
2851
  },
2852
2852
  body: JSON.stringify({
2853
- message: s,
2854
- amount: g
2853
+ message: g,
2854
+ amount: x
2855
2855
  })
2856
2856
  });
2857
- if (!k.ok)
2858
- throw new Error(`Payment request failed: ${k.statusText}`);
2859
- let p;
2860
- const D = k.headers.get("content-type");
2861
- D && D.includes("application/json") ? p = await k.json() : p = { content: await k.text() }, console.log("Payment successful:", p);
2862
- const I = k.headers.get("X-PAYMENT-RESPONSE");
2863
- let P = `tx_${Date.now()}`;
2864
- if (I)
2857
+ if (!T.ok)
2858
+ throw new Error(`Payment request failed: ${T.statusText}`);
2859
+ let y;
2860
+ const f = T.headers.get("content-type");
2861
+ f && f.includes("application/json") ? y = await T.json() : y = { content: await T.text() }, console.log("Payment successful:", y);
2862
+ const z = T.headers.get("X-PAYMENT-RESPONSE");
2863
+ let j = `tx_${Date.now()}`;
2864
+ if (z)
2865
2865
  try {
2866
- const E = JSON.parse(atob(I));
2867
- P = E.transactionId || E.signature || P, console.log("Payment details:", E);
2866
+ const E = JSON.parse(atob(z));
2867
+ j = E.transactionId || E.signature || j, console.log("Payment details:", E);
2868
2868
  } catch (E) {
2869
2869
  console.warn("Could not decode payment response:", E);
2870
2870
  }
2871
- return u(P), t("success"), e(!1), P;
2872
- } catch (F) {
2873
- const m = F instanceof Error ? F : new Error("Payment failed");
2874
- return i(m), t("error"), e(!1), null;
2871
+ return u(j), t("success"), e(!1), j;
2872
+ } catch (A) {
2873
+ const k = A instanceof Error ? A : new Error("Payment failed");
2874
+ return i(k), t("error"), e(!1), null;
2875
2875
  }
2876
2876
  },
2877
2877
  [r]
@@ -2880,10 +2880,10 @@ function st(r) {
2880
2880
  status: n,
2881
2881
  error: o,
2882
2882
  transactionId: l,
2883
- reset: f
2883
+ reset: p
2884
2884
  };
2885
2885
  }
2886
- const Pe = ({
2886
+ const je = ({
2887
2887
  amount: r,
2888
2888
  description: n,
2889
2889
  wallet: t,
@@ -2893,51 +2893,52 @@ const Pe = ({
2893
2893
  treasuryAddress: u,
2894
2894
  facilitatorUrl: c,
2895
2895
  theme: e = "solana-light",
2896
- showPaymentDetails: f = !0,
2896
+ logoUrl: p = "https://raw.githubusercontent.com/PayAINetwork/x402-solana-react/main/src/components/ui/SolanaLogo.svg",
2897
+ showPaymentDetails: h = !0,
2897
2898
  onDisconnect: x,
2898
2899
  classNames: g,
2899
2900
  customStyles: s,
2900
- maxPaymentAmount: y,
2901
+ maxPaymentAmount: A,
2901
2902
  // enablePaymentCaching = false, // TODO: Implement in future
2902
2903
  // autoRetry = false, // TODO: Implement in future
2903
- onPaymentStart: F,
2904
+ onPaymentStart: k,
2904
2905
  onPaymentSuccess: m,
2905
- onPaymentError: w,
2906
- onWalletConnect: N,
2906
+ onPaymentError: N,
2907
+ onWalletConnect: M,
2907
2908
  children: T
2908
2909
  }) => {
2909
- var xe, he, we;
2910
- const k = Je(), p = de(() => t || {
2911
- publicKey: k.publicKey ? { toString: () => k.publicKey.toString() } : void 0,
2912
- signTransaction: k.signTransaction
2913
- }, [t, k.publicKey, k.signTransaction]), [D, I] = X(!1), [P, E] = X("0.00"), L = Oe(null), { pay: $, isLoading: z, status: v, error: j, transactionId: U, reset: Q } = st({
2914
- wallet: p,
2910
+ var he, we, me;
2911
+ const y = Ye(), f = ce(() => t || {
2912
+ publicKey: y.publicKey ? { toString: () => y.publicKey.toString() } : void 0,
2913
+ signTransaction: y.signTransaction
2914
+ }, [t, y.publicKey, y.signTransaction]), [z, j] = X(!1), [E, I] = X("0.00"), L = He(null), { pay: K, isLoading: v, status: Z, error: P, transactionId: _, reset: O } = it({
2915
+ wallet: f,
2915
2916
  network: o,
2916
2917
  rpcUrl: i,
2917
2918
  apiEndpoint: l,
2918
2919
  treasuryAddress: u,
2919
2920
  facilitatorUrl: c,
2920
- maxPaymentAmount: y
2921
- }), _ = () => {
2922
- x ? x() : !t && k.disconnect && k.disconnect();
2923
- }, ee = t ? t.publicKey || t.address : k.connected && k.publicKey;
2924
- re(() => (document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim(), e && (document.body.className += ` wallet-modal-theme-${e}`), () => {
2921
+ maxPaymentAmount: A
2922
+ }), te = () => {
2923
+ x ? x() : !t && y.disconnect && y.disconnect();
2924
+ }, q = t ? t.publicKey || t.address : y.connected && y.publicKey;
2925
+ ne(() => (document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim(), e && (document.body.className += ` wallet-modal-theme-${e}`), () => {
2925
2926
  document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim();
2926
- }), [e]), re(() => {
2927
- var R, H;
2928
- const Z = ((R = k.publicKey) == null ? void 0 : R.toString()) || ((H = t == null ? void 0 : t.publicKey) == null ? void 0 : H.toString()) || (t == null ? void 0 : t.address);
2929
- Z && k.connected && (console.log("Wallet connected:", Z), N == null || N(Z), cr(Z, o, i).then(E)), !k.connected && !t && E("0.00");
2930
- }, [k.publicKey, k.connected, k.connecting, t, o, i, N]), re(() => {
2931
- v === "success" && U && (I(!0), m == null || m(U));
2932
- }, [v, U, m]), re(() => {
2933
- j && (w == null || w(j));
2934
- }, [j, w]);
2935
- const O = async () => {
2936
- F == null || F(), await $(r, n);
2927
+ }), [e]), ne(() => {
2928
+ var B, H;
2929
+ const S = ((B = y.publicKey) == null ? void 0 : B.toString()) || ((H = t == null ? void 0 : t.publicKey) == null ? void 0 : H.toString()) || (t == null ? void 0 : t.address);
2930
+ S && y.connected && (console.log("Wallet connected:", S), M == null || M(S), ur(S, o, i).then(I)), !y.connected && !t && I("0.00");
2931
+ }, [y.publicKey, y.connected, y.connecting, t, o, i, M]), ne(() => {
2932
+ Z === "success" && _ && (j(!0), m == null || m(_));
2933
+ }, [Z, _, m]), ne(() => {
2934
+ P && (N == null || N(P));
2935
+ }, [P, N]);
2936
+ const G = async () => {
2937
+ k == null || k(), await K(r, n);
2937
2938
  };
2938
- if (D)
2939
- return /* @__PURE__ */ a(ie, { children: T });
2940
- const G = j && (e === "dark" || e === "solana-dark" || e === "light" || e === "solana-light" || e === "seeker" || e === "seeker-2"), M = (() => {
2939
+ if (z)
2940
+ return /* @__PURE__ */ a(le, { children: T });
2941
+ const Q = P && (e === "dark" || e === "solana-dark" || e === "light" || e === "solana-light" || e === "seeker" || e === "seeker-2"), R = (() => {
2941
2942
  switch (e) {
2942
2943
  case "solana-dark":
2943
2944
  return {
@@ -3041,8 +3042,8 @@ const Pe = ({
3041
3042
  };
3042
3043
  }
3043
3044
  })();
3044
- if (!ee) {
3045
- const R = (() => {
3045
+ if (!q) {
3046
+ const B = (() => {
3046
3047
  switch (e) {
3047
3048
  case "solana-dark":
3048
3049
  return {
@@ -3123,7 +3124,7 @@ const Pe = ({
3123
3124
  {
3124
3125
  className: d(
3125
3126
  "flex items-center justify-center min-h-screen p-4",
3126
- R.container,
3127
+ B.container,
3127
3128
  g == null ? void 0 : g.container
3128
3129
  ),
3129
3130
  style: e === "dark" ? {
@@ -3140,11 +3141,11 @@ const Pe = ({
3140
3141
  ...s == null ? void 0 : s.container
3141
3142
  } : s == null ? void 0 : s.container,
3142
3143
  children: /* @__PURE__ */ b(
3143
- ne,
3144
+ oe,
3144
3145
  {
3145
3146
  className: d(
3146
3147
  "w-full max-w-lg shadow-2xl border-0",
3147
- R.card,
3148
+ B.card,
3148
3149
  g == null ? void 0 : g.card
3149
3150
  ),
3150
3151
  style: e === "seeker" ? { backgroundColor: "#171719", ...s == null ? void 0 : s.card } : e === "seeker-2" ? {
@@ -3153,19 +3154,19 @@ const Pe = ({
3153
3154
  ...s == null ? void 0 : s.card
3154
3155
  } : s == null ? void 0 : s.card,
3155
3156
  children: [
3156
- /* @__PURE__ */ b(be, { className: "pb-6", children: [
3157
+ /* @__PURE__ */ b(ge, { className: "pb-6", children: [
3157
3158
  /* @__PURE__ */ b("div", { className: "flex items-center space-x-4 mb-6", children: [
3158
3159
  /* @__PURE__ */ a("div", { className: "w-auto h-auto rounded-full p-[2px] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ a("div", { className: "w-full h-full rounded-full flex items-center justify-center", children: /* @__PURE__ */ a(
3159
3160
  "img",
3160
3161
  {
3161
- src: "/src/components/ui/SolanaLogo.svg",
3162
- alt: "Solana",
3162
+ src: p,
3163
+ alt: "Logo",
3163
3164
  className: "w-12 h-auto"
3164
3165
  }
3165
3166
  ) }) }),
3166
3167
  /* @__PURE__ */ b("div", { children: [
3167
3168
  /* @__PURE__ */ a(
3168
- ge,
3169
+ pe,
3169
3170
  {
3170
3171
  className: d(
3171
3172
  "text-l fw-bold pb-1",
@@ -3176,7 +3177,7 @@ const Pe = ({
3176
3177
  }
3177
3178
  ),
3178
3179
  /* @__PURE__ */ a(
3179
- pe,
3180
+ fe,
3180
3181
  {
3181
3182
  className: d(
3182
3183
  "text-sm font-light",
@@ -3225,11 +3226,11 @@ const Pe = ({
3225
3226
  )
3226
3227
  ] })
3227
3228
  ] }),
3228
- /* @__PURE__ */ b(ae, { className: "space-y-6", children: [
3229
+ /* @__PURE__ */ b(se, { className: "space-y-6", children: [
3229
3230
  /* @__PURE__ */ b(
3230
3231
  "div",
3231
3232
  {
3232
- className: d("p-6", R.paymentDetails),
3233
+ className: d("p-6", B.paymentDetails),
3233
3234
  style: e === "seeker" || e === "seeker-2" ? { backgroundColor: "rgba(0, 0, 0, 0.12)" } : e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0,
3234
3235
  children: [
3235
3236
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
@@ -3342,22 +3343,22 @@ const Pe = ({
3342
3343
  ]
3343
3344
  }
3344
3345
  ),
3345
- /* @__PURE__ */ a("span", { className: d("text-sm", R.securityMessage), children: "Secure payment powered by Solana" })
3346
+ /* @__PURE__ */ a("span", { className: d("text-sm", B.securityMessage), children: "Secure payment powered by Solana" })
3346
3347
  ] }),
3347
3348
  /* @__PURE__ */ b("div", { className: "relative", children: [
3348
- /* @__PURE__ */ a("div", { ref: L, className: "absolute opacity-0 pointer-events-none -z-10", children: /* @__PURE__ */ a(Ze, {}) }),
3349
+ /* @__PURE__ */ a("div", { ref: L, className: "absolute opacity-0 pointer-events-none -z-10", children: /* @__PURE__ */ a(qe, {}) }),
3349
3350
  /* @__PURE__ */ a(
3350
- te,
3351
+ ae,
3351
3352
  {
3352
3353
  amount: r,
3353
3354
  description: n,
3354
3355
  customText: "Connect Wallet",
3355
3356
  onClick: () => {
3356
- var me;
3357
- const H = (me = L.current) == null ? void 0 : me.querySelector("button");
3357
+ var ke;
3358
+ const H = (ke = L.current) == null ? void 0 : ke.querySelector("button");
3358
3359
  H == null || H.click();
3359
3360
  },
3360
- className: d("w-full h-12", R.button),
3361
+ className: d("w-full h-12", B.button),
3361
3362
  style: e === "dark" ? {
3362
3363
  backgroundColor: "#FFFFFF1F",
3363
3364
  boxShadow: "0 1px 0 0 rgba(255, 255, 255, 0.3) inset"
@@ -3368,7 +3369,7 @@ const Pe = ({
3368
3369
  }
3369
3370
  )
3370
3371
  ] }),
3371
- /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", R.helperText), children: [
3372
+ /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", B.helperText), children: [
3372
3373
  "Don't have USDC?",
3373
3374
  " ",
3374
3375
  /* @__PURE__ */ b("a", { href: "#", className: "font-medium text-[#4ADE80] underline", children: [
@@ -3403,7 +3404,7 @@ const Pe = ({
3403
3404
  {
3404
3405
  className: d(
3405
3406
  "flex items-center justify-center min-h-screen p-4",
3406
- M.container,
3407
+ R.container,
3407
3408
  g == null ? void 0 : g.container
3408
3409
  ),
3409
3410
  style: e === "dark" ? {
@@ -3420,11 +3421,11 @@ const Pe = ({
3420
3421
  ...s == null ? void 0 : s.container
3421
3422
  } : s == null ? void 0 : s.container,
3422
3423
  children: /* @__PURE__ */ b(
3423
- ne,
3424
+ oe,
3424
3425
  {
3425
3426
  className: d(
3426
3427
  "w-full max-w-lg shadow-2xl border-0",
3427
- M.card,
3428
+ R.card,
3428
3429
  g == null ? void 0 : g.card
3429
3430
  ),
3430
3431
  style: e === "seeker" ? {
@@ -3436,23 +3437,23 @@ const Pe = ({
3436
3437
  ...s == null ? void 0 : s.card
3437
3438
  } : s == null ? void 0 : s.card,
3438
3439
  children: [
3439
- /* @__PURE__ */ b(be, { className: "pb-6", children: [
3440
+ /* @__PURE__ */ b(ge, { className: "pb-6", children: [
3440
3441
  /* @__PURE__ */ b("div", { className: "flex items-center space-x-4 mb-6", children: [
3441
3442
  /* @__PURE__ */ a("div", { className: "w-auto h-auto rounded-full p-[2px] flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ a("div", { className: "w-full h-full rounded-full flex items-center justify-center", children: /* @__PURE__ */ a(
3442
3443
  "img",
3443
3444
  {
3444
- src: "/src/components/ui/SolanaLogo.svg",
3445
- alt: "Solana",
3445
+ src: p,
3446
+ alt: "Logo",
3446
3447
  className: "w-12 h-auto"
3447
3448
  }
3448
3449
  ) }) }),
3449
3450
  /* @__PURE__ */ b("div", { children: [
3450
3451
  /* @__PURE__ */ a(
3451
- ge,
3452
+ pe,
3452
3453
  {
3453
3454
  className: d(
3454
3455
  "text-l fw-bold pb-1",
3455
- M.title,
3456
+ R.title,
3456
3457
  g == null ? void 0 : g.text
3457
3458
  ),
3458
3459
  style: s == null ? void 0 : s.text,
@@ -3460,7 +3461,7 @@ const Pe = ({
3460
3461
  }
3461
3462
  ),
3462
3463
  /* @__PURE__ */ a(
3463
- pe,
3464
+ fe,
3464
3465
  {
3465
3466
  className: d(
3466
3467
  "text-sm font-light",
@@ -3481,7 +3482,7 @@ const Pe = ({
3481
3482
  style: e === "seeker" ? { borderBottom: "1px solid #FFFFFF1F" } : e === "seeker-2" ? { borderBottom: "1px solid #FFFFFF1F" } : void 0
3482
3483
  }
3483
3484
  ),
3484
- !G && /* @__PURE__ */ b("div", { className: "text-center", children: [
3485
+ !Q && /* @__PURE__ */ b("div", { className: "text-center", children: [
3485
3486
  /* @__PURE__ */ a(
3486
3487
  "h2",
3487
3488
  {
@@ -3504,7 +3505,7 @@ const Pe = ({
3504
3505
  )
3505
3506
  ] })
3506
3507
  ] }),
3507
- /* @__PURE__ */ a(ae, { className: "space-y-6", children: G ? /* @__PURE__ */ b(ie, { children: [
3508
+ /* @__PURE__ */ a(se, { className: "space-y-6", children: Q ? /* @__PURE__ */ b(le, { children: [
3508
3509
  /* @__PURE__ */ a("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ a("div", { className: "w-16 h-16 rounded-full bg-red-500 flex items-center justify-center", children: /* @__PURE__ */ a(
3509
3510
  "svg",
3510
3511
  {
@@ -3530,7 +3531,7 @@ const Pe = ({
3530
3531
  /* @__PURE__ */ a("p", { className: d(
3531
3532
  "text-center text-sm mb-6",
3532
3533
  e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
3533
- ), children: (j == null ? void 0 : j.message) || "It looks like your wallet doesn't have enough funds or the transaction was declined. Please review the details and try again." }),
3534
+ ), children: (P == null ? void 0 : P.message) || "It looks like your wallet doesn't have enough funds or the transaction was declined. Please review the details and try again." }),
3534
3535
  /* @__PURE__ */ a("div", { className: d(
3535
3536
  "rounded-lg p-6",
3536
3537
  e === "dark" || e === "solana-dark" ? "bg-[#0000001F] border border-slate-600" : e === "seeker" || e === "seeker-2" ? "bg-[rgba(0,0,0,0.12)] border border-white/10" : "bg-slate-50 border border-slate-200"
@@ -3556,7 +3557,7 @@ const Pe = ({
3556
3557
  /* @__PURE__ */ a("span", { className: d(
3557
3558
  "text-sm",
3558
3559
  e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3559
- ), children: (xe = p == null ? void 0 : p.publicKey) != null && xe.toString() ? `${p.publicKey.toString().slice(0, 6)}...${p.publicKey.toString().slice(-4)}` : p != null && p.address ? `${p.address.slice(0, 6)}...${p.address.slice(-4)}` : "Not connected" })
3560
+ ), children: (he = f == null ? void 0 : f.publicKey) != null && he.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(0, 6)}...${f.address.slice(-4)}` : "Not connected" })
3560
3561
  ] }),
3561
3562
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3562
3563
  /* @__PURE__ */ a("span", { className: d(
@@ -3568,7 +3569,7 @@ const Pe = ({
3568
3569
  e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-white" : "text-slate-900"
3569
3570
  ), children: [
3570
3571
  "$",
3571
- P
3572
+ E
3572
3573
  ] })
3573
3574
  ] }),
3574
3575
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
@@ -3623,15 +3624,15 @@ const Pe = ({
3623
3624
  ), children: "Make sure your Solana wallet has enough USDC to cover the amount before retrying the transaction." })
3624
3625
  ] }),
3625
3626
  /* @__PURE__ */ a(
3626
- te,
3627
+ ae,
3627
3628
  {
3628
3629
  amount: r,
3629
3630
  description: n,
3630
3631
  onClick: () => {
3631
- Q(), O();
3632
+ O(), G();
3632
3633
  },
3633
- loading: z,
3634
- disabled: z || !(p != null && p.publicKey),
3634
+ loading: v,
3635
+ disabled: v || !(f != null && f.publicKey),
3635
3636
  className: d(
3636
3637
  "w-full h-12",
3637
3638
  e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : e === "light" ? "bg-black hover:bg-gray-800 text-white font-light rounded-full" : e === "solana-light" ? "bg-solana-gradient hover:opacity-90 text-white font-light rounded-full" : e === "seeker" || e === "seeker-2" ? "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-full" : "bg-solana-gradient rounded-full",
@@ -3695,12 +3696,12 @@ const Pe = ({
3695
3696
  }
3696
3697
  )
3697
3698
  ] }) })
3698
- ] }) : /* @__PURE__ */ b(ie, { children: [
3699
+ ] }) : /* @__PURE__ */ b(le, { children: [
3699
3700
  /* @__PURE__ */ a(
3700
- Ke,
3701
+ We,
3701
3702
  {
3702
- wallet: p,
3703
- onDisconnect: _,
3703
+ wallet: f,
3704
+ onDisconnect: te,
3704
3705
  theme: e,
3705
3706
  className: d(
3706
3707
  "mb-4",
@@ -3709,10 +3710,10 @@ const Pe = ({
3709
3710
  style: e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0
3710
3711
  }
3711
3712
  ),
3712
- f && (e === "seeker" || e === "seeker-2" ? /* @__PURE__ */ b(
3713
+ h && (e === "seeker" || e === "seeker-2" ? /* @__PURE__ */ b(
3713
3714
  "div",
3714
3715
  {
3715
- className: d("p-6", M.paymentDetails),
3716
+ className: d("p-6", R.paymentDetails),
3716
3717
  style: {
3717
3718
  backgroundColor: "rgba(0, 0, 0, 0.12)"
3718
3719
  },
@@ -3738,13 +3739,13 @@ const Pe = ({
3738
3739
  /* @__PURE__ */ b("div", { className: "space-y-3", children: [
3739
3740
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3740
3741
  /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Wallet" }),
3741
- /* @__PURE__ */ a("div", { className: "text-sm text-white", children: (he = p == null ? void 0 : p.publicKey) != null && he.toString() ? `${p.publicKey.toString().slice(0, 6)}...${p.publicKey.toString().slice(-4)}` : p != null && p.address ? `${p.address.slice(0, 6)}...${p.address.slice(-4)}` : "Not connected" })
3742
+ /* @__PURE__ */ a("div", { className: "text-sm text-white", children: (we = f == null ? void 0 : f.publicKey) != null && we.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(0, 6)}...${f.address.slice(-4)}` : "Not connected" })
3742
3743
  ] }),
3743
3744
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
3744
3745
  /* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Available Balance" }),
3745
3746
  /* @__PURE__ */ b("div", { className: "text-sm text-white", children: [
3746
3747
  "$",
3747
- P
3748
+ E
3748
3749
  ] })
3749
3750
  ] }),
3750
3751
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
@@ -3770,7 +3771,7 @@ const Pe = ({
3770
3771
  ) : /* @__PURE__ */ b(
3771
3772
  "div",
3772
3773
  {
3773
- className: d("p-6", M.paymentDetails),
3774
+ className: d("p-6", R.paymentDetails),
3774
3775
  style: e === "dark" || e === "solana-dark" ? { boxShadow: "0px 0px 16px 4px #000000 inset" } : void 0,
3775
3776
  children: [
3776
3777
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-4", children: [
@@ -3826,7 +3827,7 @@ const Pe = ({
3826
3827
  "text-sm",
3827
3828
  e === "dark" || e === "solana-dark" ? "text-white" : "text-slate-900"
3828
3829
  ),
3829
- children: (we = p == null ? void 0 : p.publicKey) != null && we.toString() ? `${p.publicKey.toString().slice(0, 6)}...${p.publicKey.toString().slice(-4)}` : p != null && p.address ? `${p.address.slice(0, 6)}...${p.address.slice(-4)}` : "Not connected"
3830
+ children: (me = f == null ? void 0 : f.publicKey) != null && me.toString() ? `${f.publicKey.toString().slice(0, 6)}...${f.publicKey.toString().slice(-4)}` : f != null && f.address ? `${f.address.slice(0, 6)}...${f.address.slice(-4)}` : "Not connected"
3830
3831
  }
3831
3832
  )
3832
3833
  ] }),
@@ -3850,7 +3851,7 @@ const Pe = ({
3850
3851
  ),
3851
3852
  children: [
3852
3853
  "$",
3853
- P
3854
+ E
3854
3855
  ]
3855
3856
  }
3856
3857
  )
@@ -3936,23 +3937,23 @@ const Pe = ({
3936
3937
  /* @__PURE__ */ a(
3937
3938
  "span",
3938
3939
  {
3939
- className: d("text-sm", M.securityMessage),
3940
+ className: d("text-sm", R.securityMessage),
3940
3941
  style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0,
3941
3942
  children: "Secure payment powered by Solana"
3942
3943
  }
3943
3944
  )
3944
3945
  ] }),
3945
3946
  /* @__PURE__ */ a(
3946
- te,
3947
+ ae,
3947
3948
  {
3948
3949
  amount: r,
3949
3950
  description: n,
3950
- onClick: O,
3951
- loading: z,
3952
- disabled: z || !(p != null && p.publicKey),
3951
+ onClick: G,
3952
+ loading: v,
3953
+ disabled: v || !(f != null && f.publicKey),
3953
3954
  className: d(
3954
3955
  "w-full h-12",
3955
- e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : M.button,
3956
+ e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : R.button,
3956
3957
  g == null ? void 0 : g.button
3957
3958
  ),
3958
3959
  style: e === "dark" ? {
@@ -3970,12 +3971,12 @@ const Pe = ({
3970
3971
  } : s == null ? void 0 : s.button
3971
3972
  }
3972
3973
  ),
3973
- j && /* @__PURE__ */ a("div", { className: "bg-red-50 border border-red-200 rounded-lg p-4", children: /* @__PURE__ */ b("p", { className: "text-sm text-red-800 text-center", children: [
3974
+ P && /* @__PURE__ */ a("div", { className: "bg-red-50 border border-red-200 rounded-lg p-4", children: /* @__PURE__ */ b("p", { className: "text-sm text-red-800 text-center", children: [
3974
3975
  /* @__PURE__ */ a("span", { className: "font-semibold", children: "Payment Error:" }),
3975
3976
  " ",
3976
- j.message
3977
+ P.message
3977
3978
  ] }) }),
3978
- /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", M.helperText), children: [
3979
+ /* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ b("p", { className: d("text-sm", R.helperText), children: [
3979
3980
  /* @__PURE__ */ b("span", { style: e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : void 0, children: [
3980
3981
  "Don't have USDC?",
3981
3982
  " "
@@ -3986,7 +3987,7 @@ const Pe = ({
3986
3987
  href: "#",
3987
3988
  className: d(
3988
3989
  "font-medium",
3989
- e === "seeker" || e === "seeker-2" ? "text-[#4ADE80]" : M.helperLink || "text-[#4ADE80]"
3990
+ e === "seeker" || e === "seeker-2" ? "text-[#4ADE80]" : R.helperLink || "text-[#4ADE80]"
3990
3991
  ),
3991
3992
  style: e === "seeker" ? { color: "#4ADE80" } : e === "seeker-2" ? { color: "#4ADE80" } : void 0,
3992
3993
  children: [
@@ -4020,30 +4021,30 @@ const Pe = ({
4020
4021
  )
4021
4022
  }
4022
4023
  );
4023
- }, it = ({
4024
+ }, lt = ({
4024
4025
  autoSetupProviders: r = !0,
4025
4026
  providerNetwork: n,
4026
4027
  providerEndpoint: t,
4027
4028
  ...o
4028
4029
  }) => {
4029
- const i = n ?? (o.network === "solana" ? ye.Mainnet : ye.Devnet);
4030
+ const i = n ?? (o.network === "solana" ? Ne.Mainnet : Ne.Devnet);
4030
4031
  if (r) {
4031
- const l = de(
4032
- () => t || o.rpcUrl || nr(i),
4032
+ const l = ce(
4033
+ () => t || o.rpcUrl || ar(i),
4033
4034
  [t, o.rpcUrl, i]
4034
- ), u = de(
4035
+ ), u = ce(
4035
4036
  () => [
4036
- new qe(),
4037
+ new Qe(),
4037
4038
  new Se()
4038
4039
  ],
4039
4040
  []
4040
4041
  );
4041
- return /* @__PURE__ */ a(He, { endpoint: l, children: /* @__PURE__ */ a(Xe, { wallets: u, autoConnect: !1, children: /* @__PURE__ */ a(Ye, { children: /* @__PURE__ */ a(Pe, { ...o }) }) }) });
4042
+ return /* @__PURE__ */ a(Xe, { endpoint: l, children: /* @__PURE__ */ a(Je, { wallets: u, autoConnect: !1, children: /* @__PURE__ */ a(Ze, { children: /* @__PURE__ */ a(je, { ...o }) }) }) });
4042
4043
  }
4043
- return /* @__PURE__ */ a(Pe, { ...o });
4044
+ return /* @__PURE__ */ a(je, { ...o });
4044
4045
  };
4045
- it.displayName = "X402Paywall";
4046
- const lt = ({
4046
+ lt.displayName = "X402Paywall";
4047
+ const dt = ({
4047
4048
  status: r,
4048
4049
  message: n,
4049
4050
  progress: t,
@@ -4062,13 +4063,13 @@ const lt = ({
4062
4063
  return {
4063
4064
  label: "Connecting",
4064
4065
  color: "bg-blue-100 text-blue-800",
4065
- icon: /* @__PURE__ */ a(oe, { size: "sm", variant: "default" })
4066
+ icon: /* @__PURE__ */ a(ie, { size: "sm", variant: "default" })
4066
4067
  };
4067
4068
  case "pending":
4068
4069
  return {
4069
4070
  label: "Processing",
4070
4071
  color: "bg-yellow-100 text-yellow-800",
4071
- icon: /* @__PURE__ */ a(oe, { size: "sm", variant: "solana" })
4072
+ icon: /* @__PURE__ */ a(ie, { size: "sm", variant: "solana" })
4072
4073
  };
4073
4074
  case "success":
4074
4075
  return {
@@ -4126,7 +4127,7 @@ const lt = ({
4126
4127
  })();
4127
4128
  return /* @__PURE__ */ b("div", { className: d("flex flex-col gap-2", o), style: i, children: [
4128
4129
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
4129
- /* @__PURE__ */ b(Ve, { className: d("flex items-center gap-1.5", u.color), children: [
4130
+ /* @__PURE__ */ b(Ke, { className: d("flex items-center gap-1.5", u.color), children: [
4130
4131
  u.icon,
4131
4132
  /* @__PURE__ */ a("span", { children: u.label })
4132
4133
  ] }),
@@ -4141,21 +4142,21 @@ const lt = ({
4141
4142
  ) })
4142
4143
  ] });
4143
4144
  };
4144
- lt.displayName = "PaymentStatus";
4145
+ dt.displayName = "PaymentStatus";
4145
4146
  export {
4146
- Ve as Badge,
4147
- Ge as Button,
4148
- ne as Card,
4149
- ae as CardContent,
4150
- pe as CardDescription,
4151
- be as CardHeader,
4152
- ge as CardTitle,
4153
- te as PaymentButton,
4154
- lt as PaymentStatus,
4155
- oe as Spinner,
4156
- Ke as WalletSection,
4157
- it as X402Paywall,
4147
+ Ke as Badge,
4148
+ Ve as Button,
4149
+ oe as Card,
4150
+ se as CardContent,
4151
+ fe as CardDescription,
4152
+ ge as CardHeader,
4153
+ pe as CardTitle,
4154
+ ae as PaymentButton,
4155
+ dt as PaymentStatus,
4156
+ ie as Spinner,
4157
+ We as WalletSection,
4158
+ lt as X402Paywall,
4158
4159
  d as cn,
4159
- st as useX402Payment
4160
+ it as useX402Payment
4160
4161
  };
4161
4162
  //# sourceMappingURL=index.mjs.map