@payai/x402-solana-react 0.1.0-beta.1 → 0.1.0-beta.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.js +1 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +761 -1389
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,745 +1,120 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/
|
|
18
|
-
var ar;
|
|
19
|
-
function pt() {
|
|
20
|
-
if (ar) return pe;
|
|
21
|
-
ar = 1;
|
|
22
|
-
var e = fr, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function d(l, f, p) {
|
|
24
|
-
var b, h = {}, g = null, m = null;
|
|
25
|
-
p !== void 0 && (g = "" + p), f.key !== void 0 && (g = "" + f.key), f.ref !== void 0 && (m = f.ref);
|
|
26
|
-
for (b in f) o.call(f, b) && !s.hasOwnProperty(b) && (h[b] = f[b]);
|
|
27
|
-
if (l && l.defaultProps) for (b in f = l.defaultProps, f) h[b] === void 0 && (h[b] = f[b]);
|
|
28
|
-
return { $$typeof: n, type: l, key: g, ref: m, props: h, _owner: a.current };
|
|
29
|
-
}
|
|
30
|
-
return pe.Fragment = t, pe.jsx = d, pe.jsxs = d, pe;
|
|
31
|
-
}
|
|
32
|
-
var be = {};
|
|
33
|
-
/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-jsx-runtime.development.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/
|
|
42
|
-
var sr;
|
|
43
|
-
function bt() {
|
|
44
|
-
return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = fr, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), _ = Symbol.iterator, E = "@@iterator";
|
|
46
|
-
function y(r) {
|
|
47
|
-
if (r === null || typeof r != "object")
|
|
48
|
-
return null;
|
|
49
|
-
var i = _ && r[_] || r[E];
|
|
50
|
-
return typeof i == "function" ? i : null;
|
|
51
|
-
}
|
|
52
|
-
var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function C(r) {
|
|
54
|
-
{
|
|
55
|
-
for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), v = 1; v < i; v++)
|
|
56
|
-
u[v - 1] = arguments[v];
|
|
57
|
-
M("error", r, u);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function M(r, i, u) {
|
|
61
|
-
{
|
|
62
|
-
var v = k.ReactDebugCurrentFrame, P = v.getStackAddendum();
|
|
63
|
-
P !== "" && (i += "%s", u = u.concat([P]));
|
|
64
|
-
var S = u.map(function(j) {
|
|
65
|
-
return String(j);
|
|
66
|
-
});
|
|
67
|
-
S.unshift("Warning: " + i), Function.prototype.apply.call(console[r], console, S);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
var F = !1, V = !1, $ = !1, L = !1, q = !1, Y;
|
|
71
|
-
Y = Symbol.for("react.module.reference");
|
|
72
|
-
function B(r) {
|
|
73
|
-
return !!(typeof r == "string" || typeof r == "function" || r === o || r === s || q || r === a || r === p || r === b || L || r === m || F || V || $ || typeof r == "object" && r !== null && (r.$$typeof === g || r.$$typeof === h || r.$$typeof === d || r.$$typeof === l || r.$$typeof === f || // This needs to include all possible module reference object
|
|
74
|
-
// types supported by any Flight configuration anywhere since
|
|
75
|
-
// we don't know which Flight build this will end up being used
|
|
76
|
-
// with.
|
|
77
|
-
r.$$typeof === Y || r.getModuleId !== void 0));
|
|
78
|
-
}
|
|
79
|
-
function z(r, i, u) {
|
|
80
|
-
var v = r.displayName;
|
|
81
|
-
if (v)
|
|
82
|
-
return v;
|
|
83
|
-
var P = i.displayName || i.name || "";
|
|
84
|
-
return P !== "" ? u + "(" + P + ")" : u;
|
|
85
|
-
}
|
|
86
|
-
function R(r) {
|
|
87
|
-
return r.displayName || "Context";
|
|
88
|
-
}
|
|
89
|
-
function G(r) {
|
|
90
|
-
if (r == null)
|
|
91
|
-
return null;
|
|
92
|
-
if (typeof r.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
93
|
-
return r.displayName || r.name || null;
|
|
94
|
-
if (typeof r == "string")
|
|
95
|
-
return r;
|
|
96
|
-
switch (r) {
|
|
97
|
-
case o:
|
|
98
|
-
return "Fragment";
|
|
99
|
-
case t:
|
|
100
|
-
return "Portal";
|
|
101
|
-
case s:
|
|
102
|
-
return "Profiler";
|
|
103
|
-
case a:
|
|
104
|
-
return "StrictMode";
|
|
105
|
-
case p:
|
|
106
|
-
return "Suspense";
|
|
107
|
-
case b:
|
|
108
|
-
return "SuspenseList";
|
|
109
|
-
}
|
|
110
|
-
if (typeof r == "object")
|
|
111
|
-
switch (r.$$typeof) {
|
|
112
|
-
case l:
|
|
113
|
-
var i = r;
|
|
114
|
-
return R(i) + ".Consumer";
|
|
115
|
-
case d:
|
|
116
|
-
var u = r;
|
|
117
|
-
return R(u._context) + ".Provider";
|
|
118
|
-
case f:
|
|
119
|
-
return z(r, r.render, "ForwardRef");
|
|
120
|
-
case h:
|
|
121
|
-
var v = r.displayName || null;
|
|
122
|
-
return v !== null ? v : G(r.type) || "Memo";
|
|
123
|
-
case g: {
|
|
124
|
-
var P = r, S = P._payload, j = P._init;
|
|
125
|
-
try {
|
|
126
|
-
return G(j(S));
|
|
127
|
-
} catch {
|
|
128
|
-
return null;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return null;
|
|
133
|
-
}
|
|
134
|
-
var W = Object.assign, K = 0, H, de, oe, Q, ue, J, De;
|
|
135
|
-
function Le() {
|
|
136
|
-
}
|
|
137
|
-
Le.__reactDisabledLog = !0;
|
|
138
|
-
function Tr() {
|
|
139
|
-
{
|
|
140
|
-
if (K === 0) {
|
|
141
|
-
H = console.log, de = console.info, oe = console.warn, Q = console.error, ue = console.group, J = console.groupCollapsed, De = console.groupEnd;
|
|
142
|
-
var r = {
|
|
143
|
-
configurable: !0,
|
|
144
|
-
enumerable: !0,
|
|
145
|
-
value: Le,
|
|
146
|
-
writable: !0
|
|
147
|
-
};
|
|
148
|
-
Object.defineProperties(console, {
|
|
149
|
-
info: r,
|
|
150
|
-
log: r,
|
|
151
|
-
warn: r,
|
|
152
|
-
error: r,
|
|
153
|
-
group: r,
|
|
154
|
-
groupCollapsed: r,
|
|
155
|
-
groupEnd: r
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
K++;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function Ar() {
|
|
162
|
-
{
|
|
163
|
-
if (K--, K === 0) {
|
|
164
|
-
var r = {
|
|
165
|
-
configurable: !0,
|
|
166
|
-
enumerable: !0,
|
|
167
|
-
writable: !0
|
|
168
|
-
};
|
|
169
|
-
Object.defineProperties(console, {
|
|
170
|
-
log: W({}, r, {
|
|
171
|
-
value: H
|
|
172
|
-
}),
|
|
173
|
-
info: W({}, r, {
|
|
174
|
-
value: de
|
|
175
|
-
}),
|
|
176
|
-
warn: W({}, r, {
|
|
177
|
-
value: oe
|
|
178
|
-
}),
|
|
179
|
-
error: W({}, r, {
|
|
180
|
-
value: Q
|
|
181
|
-
}),
|
|
182
|
-
group: W({}, r, {
|
|
183
|
-
value: ue
|
|
184
|
-
}),
|
|
185
|
-
groupCollapsed: W({}, r, {
|
|
186
|
-
value: J
|
|
187
|
-
}),
|
|
188
|
-
groupEnd: W({}, r, {
|
|
189
|
-
value: De
|
|
190
|
-
})
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
K < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
var Ce = k.ReactCurrentDispatcher, je;
|
|
197
|
-
function he(r, i, u) {
|
|
198
|
-
{
|
|
199
|
-
if (je === void 0)
|
|
200
|
-
try {
|
|
201
|
-
throw Error();
|
|
202
|
-
} catch (P) {
|
|
203
|
-
var v = P.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
-
je = v && v[1] || "";
|
|
205
|
-
}
|
|
206
|
-
return `
|
|
207
|
-
` + je + r;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
var Ee = !1, ve;
|
|
211
|
-
{
|
|
212
|
-
var Nr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
-
ve = new Nr();
|
|
214
|
-
}
|
|
215
|
-
function We(r, i) {
|
|
216
|
-
if (!r || Ee)
|
|
217
|
-
return "";
|
|
218
|
-
{
|
|
219
|
-
var u = ve.get(r);
|
|
220
|
-
if (u !== void 0)
|
|
221
|
-
return u;
|
|
222
|
-
}
|
|
223
|
-
var v;
|
|
224
|
-
Ee = !0;
|
|
225
|
-
var P = Error.prepareStackTrace;
|
|
226
|
-
Error.prepareStackTrace = void 0;
|
|
227
|
-
var S;
|
|
228
|
-
S = Ce.current, Ce.current = null, Tr();
|
|
229
|
-
try {
|
|
230
|
-
if (i) {
|
|
231
|
-
var j = function() {
|
|
232
|
-
throw Error();
|
|
233
|
-
};
|
|
234
|
-
if (Object.defineProperty(j.prototype, "props", {
|
|
235
|
-
set: function() {
|
|
236
|
-
throw Error();
|
|
237
|
-
}
|
|
238
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
|
-
try {
|
|
240
|
-
Reflect.construct(j, []);
|
|
241
|
-
} catch (U) {
|
|
242
|
-
v = U;
|
|
243
|
-
}
|
|
244
|
-
Reflect.construct(r, [], j);
|
|
245
|
-
} else {
|
|
246
|
-
try {
|
|
247
|
-
j.call();
|
|
248
|
-
} catch (U) {
|
|
249
|
-
v = U;
|
|
250
|
-
}
|
|
251
|
-
r.call(j.prototype);
|
|
252
|
-
}
|
|
253
|
-
} else {
|
|
254
|
-
try {
|
|
255
|
-
throw Error();
|
|
256
|
-
} catch (U) {
|
|
257
|
-
v = U;
|
|
258
|
-
}
|
|
259
|
-
r();
|
|
260
|
-
}
|
|
261
|
-
} catch (U) {
|
|
262
|
-
if (U && v && typeof U.stack == "string") {
|
|
263
|
-
for (var w = U.stack.split(`
|
|
264
|
-
`), D = v.stack.split(`
|
|
265
|
-
`), N = w.length - 1, O = D.length - 1; N >= 1 && O >= 0 && w[N] !== D[O]; )
|
|
266
|
-
O--;
|
|
267
|
-
for (; N >= 1 && O >= 0; N--, O--)
|
|
268
|
-
if (w[N] !== D[O]) {
|
|
269
|
-
if (N !== 1 || O !== 1)
|
|
270
|
-
do
|
|
271
|
-
if (N--, O--, O < 0 || w[N] !== D[O]) {
|
|
272
|
-
var X = `
|
|
273
|
-
` + w[N].replace(" at new ", " at ");
|
|
274
|
-
return r.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", r.displayName)), typeof r == "function" && ve.set(r, X), X;
|
|
275
|
-
}
|
|
276
|
-
while (N >= 1 && O >= 0);
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
} finally {
|
|
281
|
-
Ee = !1, Ce.current = S, Ar(), Error.prepareStackTrace = P;
|
|
282
|
-
}
|
|
283
|
-
var se = r ? r.displayName || r.name : "", te = se ? he(se) : "";
|
|
284
|
-
return typeof r == "function" && ve.set(r, te), te;
|
|
285
|
-
}
|
|
286
|
-
function Or(r, i, u) {
|
|
287
|
-
return We(r, !1);
|
|
288
|
-
}
|
|
289
|
-
function Ir(r) {
|
|
290
|
-
var i = r.prototype;
|
|
291
|
-
return !!(i && i.isReactComponent);
|
|
292
|
-
}
|
|
293
|
-
function xe(r, i, u) {
|
|
294
|
-
if (r == null)
|
|
295
|
-
return "";
|
|
296
|
-
if (typeof r == "function")
|
|
297
|
-
return We(r, Ir(r));
|
|
298
|
-
if (typeof r == "string")
|
|
299
|
-
return he(r);
|
|
300
|
-
switch (r) {
|
|
301
|
-
case p:
|
|
302
|
-
return he("Suspense");
|
|
303
|
-
case b:
|
|
304
|
-
return he("SuspenseList");
|
|
305
|
-
}
|
|
306
|
-
if (typeof r == "object")
|
|
307
|
-
switch (r.$$typeof) {
|
|
308
|
-
case f:
|
|
309
|
-
return Or(r.render);
|
|
310
|
-
case h:
|
|
311
|
-
return xe(r.type, i, u);
|
|
312
|
-
case g: {
|
|
313
|
-
var v = r, P = v._payload, S = v._init;
|
|
314
|
-
try {
|
|
315
|
-
return xe(S(P), i, u);
|
|
316
|
-
} catch {
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
return "";
|
|
321
|
-
}
|
|
322
|
-
var fe = Object.prototype.hasOwnProperty, Ue = {}, Ve = k.ReactDebugCurrentFrame;
|
|
323
|
-
function ye(r) {
|
|
324
|
-
if (r) {
|
|
325
|
-
var i = r._owner, u = xe(r.type, r._source, i ? i.type : null);
|
|
326
|
-
Ve.setExtraStackFrame(u);
|
|
327
|
-
} else
|
|
328
|
-
Ve.setExtraStackFrame(null);
|
|
329
|
-
}
|
|
330
|
-
function Mr(r, i, u, v, P) {
|
|
331
|
-
{
|
|
332
|
-
var S = Function.call.bind(fe);
|
|
333
|
-
for (var j in r)
|
|
334
|
-
if (S(r, j)) {
|
|
335
|
-
var w = void 0;
|
|
336
|
-
try {
|
|
337
|
-
if (typeof r[j] != "function") {
|
|
338
|
-
var D = Error((v || "React class") + ": " + u + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
|
-
throw D.name = "Invariant Violation", D;
|
|
340
|
-
}
|
|
341
|
-
w = r[j](i, j, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
-
} catch (N) {
|
|
343
|
-
w = N;
|
|
344
|
-
}
|
|
345
|
-
w && !(w instanceof Error) && (ye(P), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, j, typeof w), ye(null)), w instanceof Error && !(w.message in Ue) && (Ue[w.message] = !0, ye(P), C("Failed %s type: %s", u, w.message), ye(null));
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
var zr = Array.isArray;
|
|
350
|
-
function ke(r) {
|
|
351
|
-
return zr(r);
|
|
352
|
-
}
|
|
353
|
-
function Fr(r) {
|
|
354
|
-
{
|
|
355
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag, u = i && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
356
|
-
return u;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
function Dr(r) {
|
|
360
|
-
try {
|
|
361
|
-
return $e(r), !1;
|
|
362
|
-
} catch {
|
|
363
|
-
return !0;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
function $e(r) {
|
|
367
|
-
return "" + r;
|
|
368
|
-
}
|
|
369
|
-
function Be(r) {
|
|
370
|
-
if (Dr(r))
|
|
371
|
-
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fr(r)), $e(r);
|
|
372
|
-
}
|
|
373
|
-
var Ge = k.ReactCurrentOwner, Lr = {
|
|
374
|
-
key: !0,
|
|
375
|
-
ref: !0,
|
|
376
|
-
__self: !0,
|
|
377
|
-
__source: !0
|
|
378
|
-
}, Ye, Ke;
|
|
379
|
-
function Wr(r) {
|
|
380
|
-
if (fe.call(r, "ref")) {
|
|
381
|
-
var i = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
382
|
-
if (i && i.isReactWarning)
|
|
383
|
-
return !1;
|
|
384
|
-
}
|
|
385
|
-
return r.ref !== void 0;
|
|
386
|
-
}
|
|
387
|
-
function Ur(r) {
|
|
388
|
-
if (fe.call(r, "key")) {
|
|
389
|
-
var i = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
390
|
-
if (i && i.isReactWarning)
|
|
391
|
-
return !1;
|
|
392
|
-
}
|
|
393
|
-
return r.key !== void 0;
|
|
394
|
-
}
|
|
395
|
-
function Vr(r, i) {
|
|
396
|
-
typeof r.ref == "string" && Ge.current;
|
|
397
|
-
}
|
|
398
|
-
function $r(r, i) {
|
|
399
|
-
{
|
|
400
|
-
var u = function() {
|
|
401
|
-
Ye || (Ye = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
402
|
-
};
|
|
403
|
-
u.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
404
|
-
get: u,
|
|
405
|
-
configurable: !0
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
function Br(r, i) {
|
|
410
|
-
{
|
|
411
|
-
var u = function() {
|
|
412
|
-
Ke || (Ke = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
413
|
-
};
|
|
414
|
-
u.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
415
|
-
get: u,
|
|
416
|
-
configurable: !0
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
var Gr = function(r, i, u, v, P, S, j) {
|
|
421
|
-
var w = {
|
|
422
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
423
|
-
$$typeof: n,
|
|
424
|
-
// Built-in properties that belong on the element
|
|
425
|
-
type: r,
|
|
426
|
-
key: i,
|
|
427
|
-
ref: u,
|
|
428
|
-
props: j,
|
|
429
|
-
// Record the component responsible for creating this element.
|
|
430
|
-
_owner: S
|
|
431
|
-
};
|
|
432
|
-
return w._store = {}, Object.defineProperty(w._store, "validated", {
|
|
433
|
-
configurable: !1,
|
|
434
|
-
enumerable: !1,
|
|
435
|
-
writable: !0,
|
|
436
|
-
value: !1
|
|
437
|
-
}), Object.defineProperty(w, "_self", {
|
|
438
|
-
configurable: !1,
|
|
439
|
-
enumerable: !1,
|
|
440
|
-
writable: !1,
|
|
441
|
-
value: v
|
|
442
|
-
}), Object.defineProperty(w, "_source", {
|
|
443
|
-
configurable: !1,
|
|
444
|
-
enumerable: !1,
|
|
445
|
-
writable: !1,
|
|
446
|
-
value: P
|
|
447
|
-
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
448
|
-
};
|
|
449
|
-
function Yr(r, i, u, v, P) {
|
|
450
|
-
{
|
|
451
|
-
var S, j = {}, w = null, D = null;
|
|
452
|
-
u !== void 0 && (Be(u), w = "" + u), Ur(i) && (Be(i.key), w = "" + i.key), Wr(i) && (D = i.ref, Vr(i, P));
|
|
453
|
-
for (S in i)
|
|
454
|
-
fe.call(i, S) && !Lr.hasOwnProperty(S) && (j[S] = i[S]);
|
|
455
|
-
if (r && r.defaultProps) {
|
|
456
|
-
var N = r.defaultProps;
|
|
457
|
-
for (S in N)
|
|
458
|
-
j[S] === void 0 && (j[S] = N[S]);
|
|
459
|
-
}
|
|
460
|
-
if (w || D) {
|
|
461
|
-
var O = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
462
|
-
w && $r(j, O), D && Br(j, O);
|
|
463
|
-
}
|
|
464
|
-
return Gr(r, w, D, P, v, Ge.current, j);
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
var Re = k.ReactCurrentOwner, Je = k.ReactDebugCurrentFrame;
|
|
468
|
-
function ae(r) {
|
|
469
|
-
if (r) {
|
|
470
|
-
var i = r._owner, u = xe(r.type, r._source, i ? i.type : null);
|
|
471
|
-
Je.setExtraStackFrame(u);
|
|
472
|
-
} else
|
|
473
|
-
Je.setExtraStackFrame(null);
|
|
474
|
-
}
|
|
475
|
-
var Pe;
|
|
476
|
-
Pe = !1;
|
|
477
|
-
function _e(r) {
|
|
478
|
-
return typeof r == "object" && r !== null && r.$$typeof === n;
|
|
479
|
-
}
|
|
480
|
-
function Xe() {
|
|
481
|
-
{
|
|
482
|
-
if (Re.current) {
|
|
483
|
-
var r = G(Re.current.type);
|
|
484
|
-
if (r)
|
|
485
|
-
return `
|
|
486
|
-
|
|
487
|
-
Check the render method of \`` + r + "`.";
|
|
488
|
-
}
|
|
489
|
-
return "";
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
function Kr(r) {
|
|
493
|
-
return "";
|
|
494
|
-
}
|
|
495
|
-
var He = {};
|
|
496
|
-
function Jr(r) {
|
|
497
|
-
{
|
|
498
|
-
var i = Xe();
|
|
499
|
-
if (!i) {
|
|
500
|
-
var u = typeof r == "string" ? r : r.displayName || r.name;
|
|
501
|
-
u && (i = `
|
|
502
|
-
|
|
503
|
-
Check the top-level render call using <` + u + ">.");
|
|
504
|
-
}
|
|
505
|
-
return i;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
function qe(r, i) {
|
|
509
|
-
{
|
|
510
|
-
if (!r._store || r._store.validated || r.key != null)
|
|
511
|
-
return;
|
|
512
|
-
r._store.validated = !0;
|
|
513
|
-
var u = Jr(i);
|
|
514
|
-
if (He[u])
|
|
515
|
-
return;
|
|
516
|
-
He[u] = !0;
|
|
517
|
-
var v = "";
|
|
518
|
-
r && r._owner && r._owner !== Re.current && (v = " It was passed a child from " + G(r._owner.type) + "."), ae(r), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), ae(null);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
function Ze(r, i) {
|
|
522
|
-
{
|
|
523
|
-
if (typeof r != "object")
|
|
524
|
-
return;
|
|
525
|
-
if (ke(r))
|
|
526
|
-
for (var u = 0; u < r.length; u++) {
|
|
527
|
-
var v = r[u];
|
|
528
|
-
_e(v) && qe(v, i);
|
|
529
|
-
}
|
|
530
|
-
else if (_e(r))
|
|
531
|
-
r._store && (r._store.validated = !0);
|
|
532
|
-
else if (r) {
|
|
533
|
-
var P = y(r);
|
|
534
|
-
if (typeof P == "function" && P !== r.entries)
|
|
535
|
-
for (var S = P.call(r), j; !(j = S.next()).done; )
|
|
536
|
-
_e(j.value) && qe(j.value, i);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
function Xr(r) {
|
|
541
|
-
{
|
|
542
|
-
var i = r.type;
|
|
543
|
-
if (i == null || typeof i == "string")
|
|
544
|
-
return;
|
|
545
|
-
var u;
|
|
546
|
-
if (typeof i == "function")
|
|
547
|
-
u = i.propTypes;
|
|
548
|
-
else if (typeof i == "object" && (i.$$typeof === f || // Note: Memo only checks outer props here.
|
|
549
|
-
// Inner props are checked in the reconciler.
|
|
550
|
-
i.$$typeof === h))
|
|
551
|
-
u = i.propTypes;
|
|
552
|
-
else
|
|
553
|
-
return;
|
|
554
|
-
if (u) {
|
|
555
|
-
var v = G(i);
|
|
556
|
-
Mr(u, r.props, "prop", v, r);
|
|
557
|
-
} else if (i.PropTypes !== void 0 && !Pe) {
|
|
558
|
-
Pe = !0;
|
|
559
|
-
var P = G(i);
|
|
560
|
-
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
561
|
-
}
|
|
562
|
-
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
function Hr(r) {
|
|
566
|
-
{
|
|
567
|
-
for (var i = Object.keys(r.props), u = 0; u < i.length; u++) {
|
|
568
|
-
var v = i[u];
|
|
569
|
-
if (v !== "children" && v !== "key") {
|
|
570
|
-
ae(r), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), ae(null);
|
|
571
|
-
break;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
r.ref !== null && (ae(r), C("Invalid attribute `ref` supplied to `React.Fragment`."), ae(null));
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
var Qe = {};
|
|
578
|
-
function er(r, i, u, v, P, S) {
|
|
579
|
-
{
|
|
580
|
-
var j = B(r);
|
|
581
|
-
if (!j) {
|
|
582
|
-
var w = "";
|
|
583
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
-
var D = Kr();
|
|
585
|
-
D ? w += D : w += Xe();
|
|
586
|
-
var N;
|
|
587
|
-
r === null ? N = "null" : ke(r) ? N = "array" : r !== void 0 && r.$$typeof === n ? (N = "<" + (G(r.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : N = typeof r, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, w);
|
|
588
|
-
}
|
|
589
|
-
var O = Yr(r, i, u, P, S);
|
|
590
|
-
if (O == null)
|
|
591
|
-
return O;
|
|
592
|
-
if (j) {
|
|
593
|
-
var X = i.children;
|
|
594
|
-
if (X !== void 0)
|
|
595
|
-
if (v)
|
|
596
|
-
if (ke(X)) {
|
|
597
|
-
for (var se = 0; se < X.length; se++)
|
|
598
|
-
Ze(X[se], r);
|
|
599
|
-
Object.freeze && Object.freeze(X);
|
|
600
|
-
} else
|
|
601
|
-
C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
|
-
else
|
|
603
|
-
Ze(X, r);
|
|
604
|
-
}
|
|
605
|
-
if (fe.call(i, "key")) {
|
|
606
|
-
var te = G(r), U = Object.keys(i).filter(function(tt) {
|
|
607
|
-
return tt !== "key";
|
|
608
|
-
}), Se = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
-
if (!Qe[te + Se]) {
|
|
610
|
-
var rt = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
-
C(`A props object containing a "key" prop is being spread into JSX:
|
|
612
|
-
let props = %s;
|
|
613
|
-
<%s {...props} />
|
|
614
|
-
React keys must be passed directly to JSX without using spread:
|
|
615
|
-
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`, Se, te, rt, te), Qe[te + Se] = !0;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
return r === o ? Hr(O) : Xr(O), O;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
function qr(r, i, u) {
|
|
623
|
-
return er(r, i, u, !0);
|
|
624
|
-
}
|
|
625
|
-
function Zr(r, i, u) {
|
|
626
|
-
return er(r, i, u, !1);
|
|
627
|
-
}
|
|
628
|
-
var Qr = Zr, et = qr;
|
|
629
|
-
be.Fragment = o, be.jsx = Qr, be.jsxs = et;
|
|
630
|
-
}()), be;
|
|
631
|
-
}
|
|
632
|
-
process.env.NODE_ENV === "production" ? Oe.exports = pt() : Oe.exports = bt();
|
|
633
|
-
var c = Oe.exports;
|
|
634
|
-
function gt(e) {
|
|
1
|
+
var Re = Object.defineProperty;
|
|
2
|
+
var je = (e, r, t) => r in e ? Re(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
|
+
var ie = (e, r, t) => je(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { jsx as l, jsxs as C, Fragment as Le } from "react/jsx-runtime";
|
|
5
|
+
import * as k from "react";
|
|
6
|
+
import { useState as $, useCallback as le, useEffect as Q } from "react";
|
|
7
|
+
import { Connection as ge, PublicKey as V, ComputeBudgetProgram as ce, TransactionInstruction as Ge, SystemProgram as Be, TransactionMessage as Ue, VersionedTransaction as Oe } from "@solana/web3.js";
|
|
8
|
+
import { getAssociatedTokenAddress as ee, getAccount as Ve, TOKEN_2022_PROGRAM_ID as de, TOKEN_PROGRAM_ID as We, getMint as _e, createTransferCheckedInstruction as $e } from "@solana/spl-token";
|
|
9
|
+
function Fe(e) {
|
|
635
10
|
return e === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
|
|
636
11
|
}
|
|
637
|
-
function
|
|
12
|
+
function De(e) {
|
|
638
13
|
return e === "solana" ? "https://api.mainnet-beta.solana.com" : "https://api.devnet.solana.com";
|
|
639
14
|
}
|
|
640
|
-
async function
|
|
15
|
+
async function He(e, r, t) {
|
|
641
16
|
try {
|
|
642
|
-
const o = t ||
|
|
643
|
-
|
|
17
|
+
const o = t || De(r), n = new ge(o, "confirmed"), s = new V(e), i = new V(Fe(r)), a = await ee(
|
|
18
|
+
i,
|
|
644
19
|
s
|
|
645
|
-
),
|
|
646
|
-
return (Number(
|
|
20
|
+
), d = await Ve(n, a);
|
|
21
|
+
return (Number(d.amount) / 1e6).toFixed(2);
|
|
647
22
|
} catch (o) {
|
|
648
23
|
return console.error("Error fetching USDC balance:", o), "0.00";
|
|
649
24
|
}
|
|
650
25
|
}
|
|
651
|
-
function
|
|
652
|
-
var
|
|
26
|
+
function he(e) {
|
|
27
|
+
var r, t, o = "";
|
|
653
28
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
654
29
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
655
|
-
var
|
|
656
|
-
for (
|
|
30
|
+
var n = e.length;
|
|
31
|
+
for (r = 0; r < n; r++) e[r] && (t = he(e[r])) && (o && (o += " "), o += t);
|
|
657
32
|
} else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
658
33
|
return o;
|
|
659
34
|
}
|
|
660
|
-
function
|
|
661
|
-
for (var e,
|
|
35
|
+
function xe() {
|
|
36
|
+
for (var e, r, t = 0, o = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (r = he(e)) && (o && (o += " "), o += r);
|
|
662
37
|
return o;
|
|
663
38
|
}
|
|
664
|
-
const
|
|
665
|
-
const
|
|
39
|
+
const re = "-", Ke = (e) => {
|
|
40
|
+
const r = Je(e), {
|
|
666
41
|
conflictingClassGroups: t,
|
|
667
42
|
conflictingClassGroupModifiers: o
|
|
668
43
|
} = e;
|
|
669
44
|
return {
|
|
670
|
-
getClassGroupId: (
|
|
671
|
-
const
|
|
672
|
-
return
|
|
45
|
+
getClassGroupId: (i) => {
|
|
46
|
+
const a = i.split(re);
|
|
47
|
+
return a[0] === "" && a.length !== 1 && a.shift(), ye(a, r) || Xe(i);
|
|
673
48
|
},
|
|
674
|
-
getConflictingClassGroupIds: (
|
|
675
|
-
const
|
|
676
|
-
return
|
|
49
|
+
getConflictingClassGroupIds: (i, a) => {
|
|
50
|
+
const d = t[i] || [];
|
|
51
|
+
return a && o[i] ? [...d, ...o[i]] : d;
|
|
677
52
|
}
|
|
678
53
|
};
|
|
679
|
-
},
|
|
680
|
-
var
|
|
54
|
+
}, ye = (e, r) => {
|
|
55
|
+
var i;
|
|
681
56
|
if (e.length === 0)
|
|
682
|
-
return
|
|
683
|
-
const t = e[0], o =
|
|
684
|
-
if (
|
|
685
|
-
return
|
|
686
|
-
if (
|
|
57
|
+
return r.classGroupId;
|
|
58
|
+
const t = e[0], o = r.nextPart.get(t), n = o ? ye(e.slice(1), o) : void 0;
|
|
59
|
+
if (n)
|
|
60
|
+
return n;
|
|
61
|
+
if (r.validators.length === 0)
|
|
687
62
|
return;
|
|
688
|
-
const s = e.join(
|
|
689
|
-
return (
|
|
690
|
-
validator:
|
|
691
|
-
}) =>
|
|
692
|
-
},
|
|
693
|
-
if (
|
|
694
|
-
const
|
|
63
|
+
const s = e.join(re);
|
|
64
|
+
return (i = r.validators.find(({
|
|
65
|
+
validator: a
|
|
66
|
+
}) => a(s))) == null ? void 0 : i.classGroupId;
|
|
67
|
+
}, ue = /^\[(.+)\]$/, Xe = (e) => {
|
|
68
|
+
if (ue.test(e)) {
|
|
69
|
+
const r = ue.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
|
|
695
70
|
if (t)
|
|
696
71
|
return "arbitrary.." + t;
|
|
697
72
|
}
|
|
698
|
-
},
|
|
73
|
+
}, Je = (e) => {
|
|
699
74
|
const {
|
|
700
|
-
theme:
|
|
75
|
+
theme: r,
|
|
701
76
|
prefix: t
|
|
702
77
|
} = e, o = {
|
|
703
78
|
nextPart: /* @__PURE__ */ new Map(),
|
|
704
79
|
validators: []
|
|
705
80
|
};
|
|
706
|
-
return
|
|
707
|
-
|
|
81
|
+
return Ye(Object.entries(e.classGroups), t).forEach(([s, i]) => {
|
|
82
|
+
te(i, o, s, r);
|
|
708
83
|
}), o;
|
|
709
|
-
},
|
|
710
|
-
e.forEach((
|
|
711
|
-
if (typeof
|
|
712
|
-
const s =
|
|
84
|
+
}, te = (e, r, t, o) => {
|
|
85
|
+
e.forEach((n) => {
|
|
86
|
+
if (typeof n == "string") {
|
|
87
|
+
const s = n === "" ? r : pe(r, n);
|
|
713
88
|
s.classGroupId = t;
|
|
714
89
|
return;
|
|
715
90
|
}
|
|
716
|
-
if (typeof
|
|
717
|
-
if (
|
|
718
|
-
|
|
91
|
+
if (typeof n == "function") {
|
|
92
|
+
if (Ze(n)) {
|
|
93
|
+
te(n(o), r, t, o);
|
|
719
94
|
return;
|
|
720
95
|
}
|
|
721
|
-
|
|
722
|
-
validator:
|
|
96
|
+
r.validators.push({
|
|
97
|
+
validator: n,
|
|
723
98
|
classGroupId: t
|
|
724
99
|
});
|
|
725
100
|
return;
|
|
726
101
|
}
|
|
727
|
-
Object.entries(
|
|
728
|
-
|
|
102
|
+
Object.entries(n).forEach(([s, i]) => {
|
|
103
|
+
te(i, pe(r, s), t, o);
|
|
729
104
|
});
|
|
730
105
|
});
|
|
731
|
-
},
|
|
106
|
+
}, pe = (e, r) => {
|
|
732
107
|
let t = e;
|
|
733
|
-
return
|
|
108
|
+
return r.split(re).forEach((o) => {
|
|
734
109
|
t.nextPart.has(o) || t.nextPart.set(o, {
|
|
735
110
|
nextPart: /* @__PURE__ */ new Map(),
|
|
736
111
|
validators: []
|
|
737
112
|
}), t = t.nextPart.get(o);
|
|
738
113
|
}), t;
|
|
739
|
-
},
|
|
740
|
-
const
|
|
741
|
-
return [t,
|
|
742
|
-
}) : e,
|
|
114
|
+
}, Ze = (e) => e.isThemeGetter, Ye = (e, r) => r ? e.map(([t, o]) => {
|
|
115
|
+
const n = o.map((s) => typeof s == "string" ? r + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([i, a]) => [r + i, a])) : s);
|
|
116
|
+
return [t, n];
|
|
117
|
+
}) : e, Qe = (e) => {
|
|
743
118
|
if (e < 1)
|
|
744
119
|
return {
|
|
745
120
|
get: () => {
|
|
@@ -747,179 +122,179 @@ const Me = "-", vt = (e) => {
|
|
|
747
122
|
set: () => {
|
|
748
123
|
}
|
|
749
124
|
};
|
|
750
|
-
let
|
|
751
|
-
const
|
|
752
|
-
t.set(s,
|
|
125
|
+
let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
126
|
+
const n = (s, i) => {
|
|
127
|
+
t.set(s, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
|
|
753
128
|
};
|
|
754
129
|
return {
|
|
755
130
|
get(s) {
|
|
756
|
-
let
|
|
757
|
-
if (
|
|
758
|
-
return
|
|
759
|
-
if ((
|
|
760
|
-
return
|
|
131
|
+
let i = t.get(s);
|
|
132
|
+
if (i !== void 0)
|
|
133
|
+
return i;
|
|
134
|
+
if ((i = o.get(s)) !== void 0)
|
|
135
|
+
return n(s, i), i;
|
|
761
136
|
},
|
|
762
|
-
set(s,
|
|
763
|
-
t.has(s) ? t.set(s,
|
|
137
|
+
set(s, i) {
|
|
138
|
+
t.has(s) ? t.set(s, i) : n(s, i);
|
|
764
139
|
}
|
|
765
140
|
};
|
|
766
|
-
},
|
|
141
|
+
}, we = "!", qe = (e) => {
|
|
767
142
|
const {
|
|
768
|
-
separator:
|
|
143
|
+
separator: r,
|
|
769
144
|
experimentalParseClassName: t
|
|
770
|
-
} = e, o =
|
|
771
|
-
const
|
|
772
|
-
let
|
|
773
|
-
for (let
|
|
774
|
-
let
|
|
775
|
-
if (
|
|
776
|
-
if (
|
|
777
|
-
|
|
145
|
+
} = e, o = r.length === 1, n = r[0], s = r.length, i = (a) => {
|
|
146
|
+
const d = [];
|
|
147
|
+
let c = 0, p = 0, g;
|
|
148
|
+
for (let m = 0; m < a.length; m++) {
|
|
149
|
+
let y = a[m];
|
|
150
|
+
if (c === 0) {
|
|
151
|
+
if (y === n && (o || a.slice(m, m + s) === r)) {
|
|
152
|
+
d.push(a.slice(p, m)), p = m + s;
|
|
778
153
|
continue;
|
|
779
154
|
}
|
|
780
|
-
if (
|
|
781
|
-
|
|
155
|
+
if (y === "/") {
|
|
156
|
+
g = m;
|
|
782
157
|
continue;
|
|
783
158
|
}
|
|
784
159
|
}
|
|
785
|
-
|
|
160
|
+
y === "[" ? c++ : y === "]" && c--;
|
|
786
161
|
}
|
|
787
|
-
const
|
|
162
|
+
const u = d.length === 0 ? a : a.substring(p), f = u.startsWith(we), v = f ? u.substring(1) : u, h = g && g > p ? g - p : void 0;
|
|
788
163
|
return {
|
|
789
|
-
modifiers:
|
|
790
|
-
hasImportantModifier:
|
|
791
|
-
baseClassName:
|
|
792
|
-
maybePostfixModifierPosition:
|
|
164
|
+
modifiers: d,
|
|
165
|
+
hasImportantModifier: f,
|
|
166
|
+
baseClassName: v,
|
|
167
|
+
maybePostfixModifierPosition: h
|
|
793
168
|
};
|
|
794
169
|
};
|
|
795
|
-
return t ? (
|
|
796
|
-
className:
|
|
797
|
-
parseClassName:
|
|
798
|
-
}) :
|
|
799
|
-
},
|
|
170
|
+
return t ? (a) => t({
|
|
171
|
+
className: a,
|
|
172
|
+
parseClassName: i
|
|
173
|
+
}) : i;
|
|
174
|
+
}, et = (e) => {
|
|
800
175
|
if (e.length <= 1)
|
|
801
176
|
return e;
|
|
802
|
-
const
|
|
177
|
+
const r = [];
|
|
803
178
|
let t = [];
|
|
804
179
|
return e.forEach((o) => {
|
|
805
|
-
o[0] === "[" ? (
|
|
806
|
-
}),
|
|
807
|
-
},
|
|
808
|
-
cache:
|
|
809
|
-
parseClassName:
|
|
810
|
-
...
|
|
811
|
-
}),
|
|
180
|
+
o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
|
|
181
|
+
}), r.push(...t.sort()), r;
|
|
182
|
+
}, tt = (e) => ({
|
|
183
|
+
cache: Qe(e.cacheSize),
|
|
184
|
+
parseClassName: qe(e),
|
|
185
|
+
...Ke(e)
|
|
186
|
+
}), rt = /\s+/, ot = (e, r) => {
|
|
812
187
|
const {
|
|
813
188
|
parseClassName: t,
|
|
814
189
|
getClassGroupId: o,
|
|
815
|
-
getConflictingClassGroupIds:
|
|
816
|
-
} =
|
|
817
|
-
let
|
|
818
|
-
for (let
|
|
819
|
-
const
|
|
820
|
-
modifiers:
|
|
821
|
-
hasImportantModifier:
|
|
822
|
-
baseClassName:
|
|
823
|
-
maybePostfixModifierPosition:
|
|
824
|
-
} = t(
|
|
825
|
-
let
|
|
826
|
-
if (!
|
|
827
|
-
if (!
|
|
828
|
-
|
|
190
|
+
getConflictingClassGroupIds: n
|
|
191
|
+
} = r, s = [], i = e.trim().split(rt);
|
|
192
|
+
let a = "";
|
|
193
|
+
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
194
|
+
const c = i[d], {
|
|
195
|
+
modifiers: p,
|
|
196
|
+
hasImportantModifier: g,
|
|
197
|
+
baseClassName: u,
|
|
198
|
+
maybePostfixModifierPosition: f
|
|
199
|
+
} = t(c);
|
|
200
|
+
let v = !!f, h = o(v ? u.substring(0, f) : u);
|
|
201
|
+
if (!h) {
|
|
202
|
+
if (!v) {
|
|
203
|
+
a = c + (a.length > 0 ? " " + a : a);
|
|
829
204
|
continue;
|
|
830
205
|
}
|
|
831
|
-
if (
|
|
832
|
-
|
|
206
|
+
if (h = o(u), !h) {
|
|
207
|
+
a = c + (a.length > 0 ? " " + a : a);
|
|
833
208
|
continue;
|
|
834
209
|
}
|
|
835
|
-
|
|
210
|
+
v = !1;
|
|
836
211
|
}
|
|
837
|
-
const
|
|
838
|
-
if (s.includes(
|
|
212
|
+
const m = et(p).join(":"), y = g ? m + we : m, N = y + h;
|
|
213
|
+
if (s.includes(N))
|
|
839
214
|
continue;
|
|
840
|
-
s.push(
|
|
841
|
-
const
|
|
842
|
-
for (let
|
|
843
|
-
const
|
|
844
|
-
s.push(
|
|
215
|
+
s.push(N);
|
|
216
|
+
const P = n(h, v);
|
|
217
|
+
for (let E = 0; E < P.length; ++E) {
|
|
218
|
+
const I = P[E];
|
|
219
|
+
s.push(y + I);
|
|
845
220
|
}
|
|
846
|
-
|
|
221
|
+
a = c + (a.length > 0 ? " " + a : a);
|
|
847
222
|
}
|
|
848
|
-
return
|
|
223
|
+
return a;
|
|
849
224
|
};
|
|
850
|
-
function
|
|
851
|
-
let e = 0,
|
|
225
|
+
function nt() {
|
|
226
|
+
let e = 0, r, t, o = "";
|
|
852
227
|
for (; e < arguments.length; )
|
|
853
|
-
(
|
|
228
|
+
(r = arguments[e++]) && (t = ve(r)) && (o && (o += " "), o += t);
|
|
854
229
|
return o;
|
|
855
230
|
}
|
|
856
|
-
const
|
|
231
|
+
const ve = (e) => {
|
|
857
232
|
if (typeof e == "string")
|
|
858
233
|
return e;
|
|
859
|
-
let
|
|
234
|
+
let r, t = "";
|
|
860
235
|
for (let o = 0; o < e.length; o++)
|
|
861
|
-
e[o] && (
|
|
236
|
+
e[o] && (r = ve(e[o])) && (t && (t += " "), t += r);
|
|
862
237
|
return t;
|
|
863
238
|
};
|
|
864
|
-
function
|
|
865
|
-
let t, o,
|
|
866
|
-
function d
|
|
867
|
-
const
|
|
868
|
-
return t =
|
|
239
|
+
function st(e, ...r) {
|
|
240
|
+
let t, o, n, s = i;
|
|
241
|
+
function i(d) {
|
|
242
|
+
const c = r.reduce((p, g) => g(p), e());
|
|
243
|
+
return t = tt(c), o = t.cache.get, n = t.cache.set, s = a, a(d);
|
|
869
244
|
}
|
|
870
|
-
function
|
|
871
|
-
const
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
874
|
-
const
|
|
875
|
-
return
|
|
245
|
+
function a(d) {
|
|
246
|
+
const c = o(d);
|
|
247
|
+
if (c)
|
|
248
|
+
return c;
|
|
249
|
+
const p = ot(d, t);
|
|
250
|
+
return n(d, p), p;
|
|
876
251
|
}
|
|
877
252
|
return function() {
|
|
878
|
-
return s(
|
|
253
|
+
return s(nt.apply(null, arguments));
|
|
879
254
|
};
|
|
880
255
|
}
|
|
881
|
-
const
|
|
882
|
-
const
|
|
883
|
-
return
|
|
884
|
-
},
|
|
885
|
-
const o =
|
|
886
|
-
return o ? o[1] ? typeof
|
|
887
|
-
},
|
|
256
|
+
const w = (e) => {
|
|
257
|
+
const r = (t) => t[e] || [];
|
|
258
|
+
return r.isThemeGetter = !0, r;
|
|
259
|
+
}, Ce = /^\[(?:([a-z-]+):)?(.+)\]$/i, at = /^\d+\/\d+$/, it = /* @__PURE__ */ new Set(["px", "full", "screen"]), lt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ct = /\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$/, dt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ut = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => F(e) || it.has(e) || at.test(e), G = (e) => D(e, "length", wt), F = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => D(e, "number", F), K = (e) => !!e && Number.isInteger(Number(e)), ft = (e) => e.endsWith("%") && F(e.slice(0, -1)), b = (e) => Ce.test(e), B = (e) => lt.test(e), bt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), mt = (e) => D(e, bt, ke), gt = (e) => D(e, "position", ke), ht = /* @__PURE__ */ new Set(["image", "url"]), xt = (e) => D(e, ht, Ct), yt = (e) => D(e, "", vt), X = () => !0, D = (e, r, t) => {
|
|
260
|
+
const o = Ce.exec(e);
|
|
261
|
+
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
262
|
+
}, wt = (e) => (
|
|
888
263
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
889
264
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
890
265
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
891
|
-
|
|
892
|
-
),
|
|
893
|
-
const e =
|
|
266
|
+
ct.test(e) && !dt.test(e)
|
|
267
|
+
), ke = () => !1, vt = (e) => ut.test(e), Ct = (e) => pt.test(e), kt = () => {
|
|
268
|
+
const e = w("colors"), r = w("spacing"), t = w("blur"), o = w("brightness"), n = w("borderColor"), s = w("borderRadius"), i = w("borderSpacing"), a = w("borderWidth"), d = w("contrast"), c = w("grayscale"), p = w("hueRotate"), g = w("invert"), u = w("gap"), f = w("gradientColorStops"), v = w("gradientColorStopPositions"), h = w("inset"), m = w("margin"), y = w("opacity"), N = w("padding"), P = w("saturate"), E = w("scale"), I = w("sepia"), M = w("skew"), z = w("space"), U = w("translate"), R = () => ["auto", "contain", "none"], T = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", b, r], x = () => [b, r], J = () => ["", L, G], W = () => ["auto", F, b], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", b], ae = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [F, b];
|
|
894
269
|
return {
|
|
895
270
|
cacheSize: 500,
|
|
896
271
|
separator: ":",
|
|
897
272
|
theme: {
|
|
898
|
-
colors: [
|
|
899
|
-
spacing: [
|
|
900
|
-
blur: ["none", "",
|
|
901
|
-
brightness:
|
|
273
|
+
colors: [X],
|
|
274
|
+
spacing: [L, G],
|
|
275
|
+
blur: ["none", "", B, b],
|
|
276
|
+
brightness: j(),
|
|
902
277
|
borderColor: [e],
|
|
903
|
-
borderRadius: ["none", "", "full",
|
|
904
|
-
borderSpacing:
|
|
905
|
-
borderWidth:
|
|
906
|
-
contrast:
|
|
907
|
-
grayscale:
|
|
908
|
-
hueRotate:
|
|
909
|
-
invert:
|
|
910
|
-
gap:
|
|
278
|
+
borderRadius: ["none", "", "full", B, b],
|
|
279
|
+
borderSpacing: x(),
|
|
280
|
+
borderWidth: J(),
|
|
281
|
+
contrast: j(),
|
|
282
|
+
grayscale: H(),
|
|
283
|
+
hueRotate: j(),
|
|
284
|
+
invert: H(),
|
|
285
|
+
gap: x(),
|
|
911
286
|
gradientColorStops: [e],
|
|
912
|
-
gradientColorStopPositions: [
|
|
913
|
-
inset:
|
|
914
|
-
margin:
|
|
915
|
-
opacity:
|
|
916
|
-
padding:
|
|
917
|
-
saturate:
|
|
918
|
-
scale:
|
|
919
|
-
sepia:
|
|
920
|
-
skew:
|
|
921
|
-
space:
|
|
922
|
-
translate:
|
|
287
|
+
gradientColorStopPositions: [ft, G],
|
|
288
|
+
inset: S(),
|
|
289
|
+
margin: S(),
|
|
290
|
+
opacity: j(),
|
|
291
|
+
padding: x(),
|
|
292
|
+
saturate: j(),
|
|
293
|
+
scale: j(),
|
|
294
|
+
sepia: H(),
|
|
295
|
+
skew: j(),
|
|
296
|
+
space: x(),
|
|
297
|
+
translate: x()
|
|
923
298
|
},
|
|
924
299
|
classGroups: {
|
|
925
300
|
// Layout
|
|
@@ -928,7 +303,7 @@ const T = (e) => {
|
|
|
928
303
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
929
304
|
*/
|
|
930
305
|
aspect: [{
|
|
931
|
-
aspect: ["auto", "square", "video",
|
|
306
|
+
aspect: ["auto", "square", "video", b]
|
|
932
307
|
}],
|
|
933
308
|
/**
|
|
934
309
|
* Container
|
|
@@ -940,21 +315,21 @@ const T = (e) => {
|
|
|
940
315
|
* @see https://tailwindcss.com/docs/columns
|
|
941
316
|
*/
|
|
942
317
|
columns: [{
|
|
943
|
-
columns: [
|
|
318
|
+
columns: [B]
|
|
944
319
|
}],
|
|
945
320
|
/**
|
|
946
321
|
* Break After
|
|
947
322
|
* @see https://tailwindcss.com/docs/break-after
|
|
948
323
|
*/
|
|
949
324
|
"break-after": [{
|
|
950
|
-
"break-after":
|
|
325
|
+
"break-after": ae()
|
|
951
326
|
}],
|
|
952
327
|
/**
|
|
953
328
|
* Break Before
|
|
954
329
|
* @see https://tailwindcss.com/docs/break-before
|
|
955
330
|
*/
|
|
956
331
|
"break-before": [{
|
|
957
|
-
"break-before":
|
|
332
|
+
"break-before": ae()
|
|
958
333
|
}],
|
|
959
334
|
/**
|
|
960
335
|
* Break Inside
|
|
@@ -1013,49 +388,49 @@ const T = (e) => {
|
|
|
1013
388
|
* @see https://tailwindcss.com/docs/object-position
|
|
1014
389
|
*/
|
|
1015
390
|
"object-position": [{
|
|
1016
|
-
object: [...
|
|
391
|
+
object: [..._(), b]
|
|
1017
392
|
}],
|
|
1018
393
|
/**
|
|
1019
394
|
* Overflow
|
|
1020
395
|
* @see https://tailwindcss.com/docs/overflow
|
|
1021
396
|
*/
|
|
1022
397
|
overflow: [{
|
|
1023
|
-
overflow:
|
|
398
|
+
overflow: T()
|
|
1024
399
|
}],
|
|
1025
400
|
/**
|
|
1026
401
|
* Overflow X
|
|
1027
402
|
* @see https://tailwindcss.com/docs/overflow
|
|
1028
403
|
*/
|
|
1029
404
|
"overflow-x": [{
|
|
1030
|
-
"overflow-x":
|
|
405
|
+
"overflow-x": T()
|
|
1031
406
|
}],
|
|
1032
407
|
/**
|
|
1033
408
|
* Overflow Y
|
|
1034
409
|
* @see https://tailwindcss.com/docs/overflow
|
|
1035
410
|
*/
|
|
1036
411
|
"overflow-y": [{
|
|
1037
|
-
"overflow-y":
|
|
412
|
+
"overflow-y": T()
|
|
1038
413
|
}],
|
|
1039
414
|
/**
|
|
1040
415
|
* Overscroll Behavior
|
|
1041
416
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1042
417
|
*/
|
|
1043
418
|
overscroll: [{
|
|
1044
|
-
overscroll:
|
|
419
|
+
overscroll: R()
|
|
1045
420
|
}],
|
|
1046
421
|
/**
|
|
1047
422
|
* Overscroll Behavior X
|
|
1048
423
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1049
424
|
*/
|
|
1050
425
|
"overscroll-x": [{
|
|
1051
|
-
"overscroll-x":
|
|
426
|
+
"overscroll-x": R()
|
|
1052
427
|
}],
|
|
1053
428
|
/**
|
|
1054
429
|
* Overscroll Behavior Y
|
|
1055
430
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1056
431
|
*/
|
|
1057
432
|
"overscroll-y": [{
|
|
1058
|
-
"overscroll-y":
|
|
433
|
+
"overscroll-y": R()
|
|
1059
434
|
}],
|
|
1060
435
|
/**
|
|
1061
436
|
* Position
|
|
@@ -1067,63 +442,63 @@ const T = (e) => {
|
|
|
1067
442
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1068
443
|
*/
|
|
1069
444
|
inset: [{
|
|
1070
|
-
inset: [
|
|
445
|
+
inset: [h]
|
|
1071
446
|
}],
|
|
1072
447
|
/**
|
|
1073
448
|
* Right / Left
|
|
1074
449
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1075
450
|
*/
|
|
1076
451
|
"inset-x": [{
|
|
1077
|
-
"inset-x": [
|
|
452
|
+
"inset-x": [h]
|
|
1078
453
|
}],
|
|
1079
454
|
/**
|
|
1080
455
|
* Top / Bottom
|
|
1081
456
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1082
457
|
*/
|
|
1083
458
|
"inset-y": [{
|
|
1084
|
-
"inset-y": [
|
|
459
|
+
"inset-y": [h]
|
|
1085
460
|
}],
|
|
1086
461
|
/**
|
|
1087
462
|
* Start
|
|
1088
463
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1089
464
|
*/
|
|
1090
465
|
start: [{
|
|
1091
|
-
start: [
|
|
466
|
+
start: [h]
|
|
1092
467
|
}],
|
|
1093
468
|
/**
|
|
1094
469
|
* End
|
|
1095
470
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1096
471
|
*/
|
|
1097
472
|
end: [{
|
|
1098
|
-
end: [
|
|
473
|
+
end: [h]
|
|
1099
474
|
}],
|
|
1100
475
|
/**
|
|
1101
476
|
* Top
|
|
1102
477
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1103
478
|
*/
|
|
1104
479
|
top: [{
|
|
1105
|
-
top: [
|
|
480
|
+
top: [h]
|
|
1106
481
|
}],
|
|
1107
482
|
/**
|
|
1108
483
|
* Right
|
|
1109
484
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1110
485
|
*/
|
|
1111
486
|
right: [{
|
|
1112
|
-
right: [
|
|
487
|
+
right: [h]
|
|
1113
488
|
}],
|
|
1114
489
|
/**
|
|
1115
490
|
* Bottom
|
|
1116
491
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1117
492
|
*/
|
|
1118
493
|
bottom: [{
|
|
1119
|
-
bottom: [
|
|
494
|
+
bottom: [h]
|
|
1120
495
|
}],
|
|
1121
496
|
/**
|
|
1122
497
|
* Left
|
|
1123
498
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1124
499
|
*/
|
|
1125
500
|
left: [{
|
|
1126
|
-
left: [
|
|
501
|
+
left: [h]
|
|
1127
502
|
}],
|
|
1128
503
|
/**
|
|
1129
504
|
* Visibility
|
|
@@ -1135,7 +510,7 @@ const T = (e) => {
|
|
|
1135
510
|
* @see https://tailwindcss.com/docs/z-index
|
|
1136
511
|
*/
|
|
1137
512
|
z: [{
|
|
1138
|
-
z: ["auto",
|
|
513
|
+
z: ["auto", K, b]
|
|
1139
514
|
}],
|
|
1140
515
|
// Flexbox and Grid
|
|
1141
516
|
/**
|
|
@@ -1143,7 +518,7 @@ const T = (e) => {
|
|
|
1143
518
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1144
519
|
*/
|
|
1145
520
|
basis: [{
|
|
1146
|
-
basis:
|
|
521
|
+
basis: S()
|
|
1147
522
|
}],
|
|
1148
523
|
/**
|
|
1149
524
|
* Flex Direction
|
|
@@ -1164,35 +539,35 @@ const T = (e) => {
|
|
|
1164
539
|
* @see https://tailwindcss.com/docs/flex
|
|
1165
540
|
*/
|
|
1166
541
|
flex: [{
|
|
1167
|
-
flex: ["1", "auto", "initial", "none",
|
|
542
|
+
flex: ["1", "auto", "initial", "none", b]
|
|
1168
543
|
}],
|
|
1169
544
|
/**
|
|
1170
545
|
* Flex Grow
|
|
1171
546
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1172
547
|
*/
|
|
1173
548
|
grow: [{
|
|
1174
|
-
grow:
|
|
549
|
+
grow: H()
|
|
1175
550
|
}],
|
|
1176
551
|
/**
|
|
1177
552
|
* Flex Shrink
|
|
1178
553
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1179
554
|
*/
|
|
1180
555
|
shrink: [{
|
|
1181
|
-
shrink:
|
|
556
|
+
shrink: H()
|
|
1182
557
|
}],
|
|
1183
558
|
/**
|
|
1184
559
|
* Order
|
|
1185
560
|
* @see https://tailwindcss.com/docs/order
|
|
1186
561
|
*/
|
|
1187
562
|
order: [{
|
|
1188
|
-
order: ["first", "last", "none",
|
|
563
|
+
order: ["first", "last", "none", K, b]
|
|
1189
564
|
}],
|
|
1190
565
|
/**
|
|
1191
566
|
* Grid Template Columns
|
|
1192
567
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1193
568
|
*/
|
|
1194
569
|
"grid-cols": [{
|
|
1195
|
-
"grid-cols": [
|
|
570
|
+
"grid-cols": [X]
|
|
1196
571
|
}],
|
|
1197
572
|
/**
|
|
1198
573
|
* Grid Column Start / End
|
|
@@ -1200,8 +575,8 @@ const T = (e) => {
|
|
|
1200
575
|
*/
|
|
1201
576
|
"col-start-end": [{
|
|
1202
577
|
col: ["auto", {
|
|
1203
|
-
span: ["full",
|
|
1204
|
-
},
|
|
578
|
+
span: ["full", K, b]
|
|
579
|
+
}, b]
|
|
1205
580
|
}],
|
|
1206
581
|
/**
|
|
1207
582
|
* Grid Column Start
|
|
@@ -1222,7 +597,7 @@ const T = (e) => {
|
|
|
1222
597
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1223
598
|
*/
|
|
1224
599
|
"grid-rows": [{
|
|
1225
|
-
"grid-rows": [
|
|
600
|
+
"grid-rows": [X]
|
|
1226
601
|
}],
|
|
1227
602
|
/**
|
|
1228
603
|
* Grid Row Start / End
|
|
@@ -1230,8 +605,8 @@ const T = (e) => {
|
|
|
1230
605
|
*/
|
|
1231
606
|
"row-start-end": [{
|
|
1232
607
|
row: ["auto", {
|
|
1233
|
-
span: [
|
|
1234
|
-
},
|
|
608
|
+
span: [K, b]
|
|
609
|
+
}, b]
|
|
1235
610
|
}],
|
|
1236
611
|
/**
|
|
1237
612
|
* Grid Row Start
|
|
@@ -1259,42 +634,42 @@ const T = (e) => {
|
|
|
1259
634
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1260
635
|
*/
|
|
1261
636
|
"auto-cols": [{
|
|
1262
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
637
|
+
"auto-cols": ["auto", "min", "max", "fr", b]
|
|
1263
638
|
}],
|
|
1264
639
|
/**
|
|
1265
640
|
* Grid Auto Rows
|
|
1266
641
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1267
642
|
*/
|
|
1268
643
|
"auto-rows": [{
|
|
1269
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
644
|
+
"auto-rows": ["auto", "min", "max", "fr", b]
|
|
1270
645
|
}],
|
|
1271
646
|
/**
|
|
1272
647
|
* Gap
|
|
1273
648
|
* @see https://tailwindcss.com/docs/gap
|
|
1274
649
|
*/
|
|
1275
650
|
gap: [{
|
|
1276
|
-
gap: [
|
|
651
|
+
gap: [u]
|
|
1277
652
|
}],
|
|
1278
653
|
/**
|
|
1279
654
|
* Gap X
|
|
1280
655
|
* @see https://tailwindcss.com/docs/gap
|
|
1281
656
|
*/
|
|
1282
657
|
"gap-x": [{
|
|
1283
|
-
"gap-x": [
|
|
658
|
+
"gap-x": [u]
|
|
1284
659
|
}],
|
|
1285
660
|
/**
|
|
1286
661
|
* Gap Y
|
|
1287
662
|
* @see https://tailwindcss.com/docs/gap
|
|
1288
663
|
*/
|
|
1289
664
|
"gap-y": [{
|
|
1290
|
-
"gap-y": [
|
|
665
|
+
"gap-y": [u]
|
|
1291
666
|
}],
|
|
1292
667
|
/**
|
|
1293
668
|
* Justify Content
|
|
1294
669
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1295
670
|
*/
|
|
1296
671
|
"justify-content": [{
|
|
1297
|
-
justify: ["normal", ...
|
|
672
|
+
justify: ["normal", ...Y()]
|
|
1298
673
|
}],
|
|
1299
674
|
/**
|
|
1300
675
|
* Justify Items
|
|
@@ -1315,7 +690,7 @@ const T = (e) => {
|
|
|
1315
690
|
* @see https://tailwindcss.com/docs/align-content
|
|
1316
691
|
*/
|
|
1317
692
|
"align-content": [{
|
|
1318
|
-
content: ["normal", ...
|
|
693
|
+
content: ["normal", ...Y(), "baseline"]
|
|
1319
694
|
}],
|
|
1320
695
|
/**
|
|
1321
696
|
* Align Items
|
|
@@ -1336,7 +711,7 @@ const T = (e) => {
|
|
|
1336
711
|
* @see https://tailwindcss.com/docs/place-content
|
|
1337
712
|
*/
|
|
1338
713
|
"place-content": [{
|
|
1339
|
-
"place-content": [...
|
|
714
|
+
"place-content": [...Y(), "baseline"]
|
|
1340
715
|
}],
|
|
1341
716
|
/**
|
|
1342
717
|
* Place Items
|
|
@@ -1358,133 +733,133 @@ const T = (e) => {
|
|
|
1358
733
|
* @see https://tailwindcss.com/docs/padding
|
|
1359
734
|
*/
|
|
1360
735
|
p: [{
|
|
1361
|
-
p: [
|
|
736
|
+
p: [N]
|
|
1362
737
|
}],
|
|
1363
738
|
/**
|
|
1364
739
|
* Padding X
|
|
1365
740
|
* @see https://tailwindcss.com/docs/padding
|
|
1366
741
|
*/
|
|
1367
742
|
px: [{
|
|
1368
|
-
px: [
|
|
743
|
+
px: [N]
|
|
1369
744
|
}],
|
|
1370
745
|
/**
|
|
1371
746
|
* Padding Y
|
|
1372
747
|
* @see https://tailwindcss.com/docs/padding
|
|
1373
748
|
*/
|
|
1374
749
|
py: [{
|
|
1375
|
-
py: [
|
|
750
|
+
py: [N]
|
|
1376
751
|
}],
|
|
1377
752
|
/**
|
|
1378
753
|
* Padding Start
|
|
1379
754
|
* @see https://tailwindcss.com/docs/padding
|
|
1380
755
|
*/
|
|
1381
756
|
ps: [{
|
|
1382
|
-
ps: [
|
|
757
|
+
ps: [N]
|
|
1383
758
|
}],
|
|
1384
759
|
/**
|
|
1385
760
|
* Padding End
|
|
1386
761
|
* @see https://tailwindcss.com/docs/padding
|
|
1387
762
|
*/
|
|
1388
763
|
pe: [{
|
|
1389
|
-
pe: [
|
|
764
|
+
pe: [N]
|
|
1390
765
|
}],
|
|
1391
766
|
/**
|
|
1392
767
|
* Padding Top
|
|
1393
768
|
* @see https://tailwindcss.com/docs/padding
|
|
1394
769
|
*/
|
|
1395
770
|
pt: [{
|
|
1396
|
-
pt: [
|
|
771
|
+
pt: [N]
|
|
1397
772
|
}],
|
|
1398
773
|
/**
|
|
1399
774
|
* Padding Right
|
|
1400
775
|
* @see https://tailwindcss.com/docs/padding
|
|
1401
776
|
*/
|
|
1402
777
|
pr: [{
|
|
1403
|
-
pr: [
|
|
778
|
+
pr: [N]
|
|
1404
779
|
}],
|
|
1405
780
|
/**
|
|
1406
781
|
* Padding Bottom
|
|
1407
782
|
* @see https://tailwindcss.com/docs/padding
|
|
1408
783
|
*/
|
|
1409
784
|
pb: [{
|
|
1410
|
-
pb: [
|
|
785
|
+
pb: [N]
|
|
1411
786
|
}],
|
|
1412
787
|
/**
|
|
1413
788
|
* Padding Left
|
|
1414
789
|
* @see https://tailwindcss.com/docs/padding
|
|
1415
790
|
*/
|
|
1416
791
|
pl: [{
|
|
1417
|
-
pl: [
|
|
792
|
+
pl: [N]
|
|
1418
793
|
}],
|
|
1419
794
|
/**
|
|
1420
795
|
* Margin
|
|
1421
796
|
* @see https://tailwindcss.com/docs/margin
|
|
1422
797
|
*/
|
|
1423
798
|
m: [{
|
|
1424
|
-
m: [
|
|
799
|
+
m: [m]
|
|
1425
800
|
}],
|
|
1426
801
|
/**
|
|
1427
802
|
* Margin X
|
|
1428
803
|
* @see https://tailwindcss.com/docs/margin
|
|
1429
804
|
*/
|
|
1430
805
|
mx: [{
|
|
1431
|
-
mx: [
|
|
806
|
+
mx: [m]
|
|
1432
807
|
}],
|
|
1433
808
|
/**
|
|
1434
809
|
* Margin Y
|
|
1435
810
|
* @see https://tailwindcss.com/docs/margin
|
|
1436
811
|
*/
|
|
1437
812
|
my: [{
|
|
1438
|
-
my: [
|
|
813
|
+
my: [m]
|
|
1439
814
|
}],
|
|
1440
815
|
/**
|
|
1441
816
|
* Margin Start
|
|
1442
817
|
* @see https://tailwindcss.com/docs/margin
|
|
1443
818
|
*/
|
|
1444
819
|
ms: [{
|
|
1445
|
-
ms: [
|
|
820
|
+
ms: [m]
|
|
1446
821
|
}],
|
|
1447
822
|
/**
|
|
1448
823
|
* Margin End
|
|
1449
824
|
* @see https://tailwindcss.com/docs/margin
|
|
1450
825
|
*/
|
|
1451
826
|
me: [{
|
|
1452
|
-
me: [
|
|
827
|
+
me: [m]
|
|
1453
828
|
}],
|
|
1454
829
|
/**
|
|
1455
830
|
* Margin Top
|
|
1456
831
|
* @see https://tailwindcss.com/docs/margin
|
|
1457
832
|
*/
|
|
1458
833
|
mt: [{
|
|
1459
|
-
mt: [
|
|
834
|
+
mt: [m]
|
|
1460
835
|
}],
|
|
1461
836
|
/**
|
|
1462
837
|
* Margin Right
|
|
1463
838
|
* @see https://tailwindcss.com/docs/margin
|
|
1464
839
|
*/
|
|
1465
840
|
mr: [{
|
|
1466
|
-
mr: [
|
|
841
|
+
mr: [m]
|
|
1467
842
|
}],
|
|
1468
843
|
/**
|
|
1469
844
|
* Margin Bottom
|
|
1470
845
|
* @see https://tailwindcss.com/docs/margin
|
|
1471
846
|
*/
|
|
1472
847
|
mb: [{
|
|
1473
|
-
mb: [
|
|
848
|
+
mb: [m]
|
|
1474
849
|
}],
|
|
1475
850
|
/**
|
|
1476
851
|
* Margin Left
|
|
1477
852
|
* @see https://tailwindcss.com/docs/margin
|
|
1478
853
|
*/
|
|
1479
854
|
ml: [{
|
|
1480
|
-
ml: [
|
|
855
|
+
ml: [m]
|
|
1481
856
|
}],
|
|
1482
857
|
/**
|
|
1483
858
|
* Space Between X
|
|
1484
859
|
* @see https://tailwindcss.com/docs/space
|
|
1485
860
|
*/
|
|
1486
861
|
"space-x": [{
|
|
1487
|
-
"space-x": [
|
|
862
|
+
"space-x": [z]
|
|
1488
863
|
}],
|
|
1489
864
|
/**
|
|
1490
865
|
* Space Between X Reverse
|
|
@@ -1496,7 +871,7 @@ const T = (e) => {
|
|
|
1496
871
|
* @see https://tailwindcss.com/docs/space
|
|
1497
872
|
*/
|
|
1498
873
|
"space-y": [{
|
|
1499
|
-
"space-y": [
|
|
874
|
+
"space-y": [z]
|
|
1500
875
|
}],
|
|
1501
876
|
/**
|
|
1502
877
|
* Space Between Y Reverse
|
|
@@ -1509,51 +884,51 @@ const T = (e) => {
|
|
|
1509
884
|
* @see https://tailwindcss.com/docs/width
|
|
1510
885
|
*/
|
|
1511
886
|
w: [{
|
|
1512
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
887
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", b, r]
|
|
1513
888
|
}],
|
|
1514
889
|
/**
|
|
1515
890
|
* Min-Width
|
|
1516
891
|
* @see https://tailwindcss.com/docs/min-width
|
|
1517
892
|
*/
|
|
1518
893
|
"min-w": [{
|
|
1519
|
-
"min-w": [
|
|
894
|
+
"min-w": [b, r, "min", "max", "fit"]
|
|
1520
895
|
}],
|
|
1521
896
|
/**
|
|
1522
897
|
* Max-Width
|
|
1523
898
|
* @see https://tailwindcss.com/docs/max-width
|
|
1524
899
|
*/
|
|
1525
900
|
"max-w": [{
|
|
1526
|
-
"max-w": [
|
|
1527
|
-
screen: [
|
|
1528
|
-
},
|
|
901
|
+
"max-w": [b, r, "none", "full", "min", "max", "fit", "prose", {
|
|
902
|
+
screen: [B]
|
|
903
|
+
}, B]
|
|
1529
904
|
}],
|
|
1530
905
|
/**
|
|
1531
906
|
* Height
|
|
1532
907
|
* @see https://tailwindcss.com/docs/height
|
|
1533
908
|
*/
|
|
1534
909
|
h: [{
|
|
1535
|
-
h: [
|
|
910
|
+
h: [b, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1536
911
|
}],
|
|
1537
912
|
/**
|
|
1538
913
|
* Min-Height
|
|
1539
914
|
* @see https://tailwindcss.com/docs/min-height
|
|
1540
915
|
*/
|
|
1541
916
|
"min-h": [{
|
|
1542
|
-
"min-h": [
|
|
917
|
+
"min-h": [b, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1543
918
|
}],
|
|
1544
919
|
/**
|
|
1545
920
|
* Max-Height
|
|
1546
921
|
* @see https://tailwindcss.com/docs/max-height
|
|
1547
922
|
*/
|
|
1548
923
|
"max-h": [{
|
|
1549
|
-
"max-h": [
|
|
924
|
+
"max-h": [b, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1550
925
|
}],
|
|
1551
926
|
/**
|
|
1552
927
|
* Size
|
|
1553
928
|
* @see https://tailwindcss.com/docs/size
|
|
1554
929
|
*/
|
|
1555
930
|
size: [{
|
|
1556
|
-
size: [
|
|
931
|
+
size: [b, r, "auto", "min", "max", "fit"]
|
|
1557
932
|
}],
|
|
1558
933
|
// Typography
|
|
1559
934
|
/**
|
|
@@ -1561,7 +936,7 @@ const T = (e) => {
|
|
|
1561
936
|
* @see https://tailwindcss.com/docs/font-size
|
|
1562
937
|
*/
|
|
1563
938
|
"font-size": [{
|
|
1564
|
-
text: ["base",
|
|
939
|
+
text: ["base", B, G]
|
|
1565
940
|
}],
|
|
1566
941
|
/**
|
|
1567
942
|
* Font Smoothing
|
|
@@ -1578,14 +953,14 @@ const T = (e) => {
|
|
|
1578
953
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1579
954
|
*/
|
|
1580
955
|
"font-weight": [{
|
|
1581
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
956
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", q]
|
|
1582
957
|
}],
|
|
1583
958
|
/**
|
|
1584
959
|
* Font Family
|
|
1585
960
|
* @see https://tailwindcss.com/docs/font-family
|
|
1586
961
|
*/
|
|
1587
962
|
"font-family": [{
|
|
1588
|
-
font: [
|
|
963
|
+
font: [X]
|
|
1589
964
|
}],
|
|
1590
965
|
/**
|
|
1591
966
|
* Font Variant Numeric
|
|
@@ -1622,35 +997,35 @@ const T = (e) => {
|
|
|
1622
997
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1623
998
|
*/
|
|
1624
999
|
tracking: [{
|
|
1625
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
1000
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", b]
|
|
1626
1001
|
}],
|
|
1627
1002
|
/**
|
|
1628
1003
|
* Line Clamp
|
|
1629
1004
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1630
1005
|
*/
|
|
1631
1006
|
"line-clamp": [{
|
|
1632
|
-
"line-clamp": ["none",
|
|
1007
|
+
"line-clamp": ["none", F, q]
|
|
1633
1008
|
}],
|
|
1634
1009
|
/**
|
|
1635
1010
|
* Line Height
|
|
1636
1011
|
* @see https://tailwindcss.com/docs/line-height
|
|
1637
1012
|
*/
|
|
1638
1013
|
leading: [{
|
|
1639
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
1014
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", L, b]
|
|
1640
1015
|
}],
|
|
1641
1016
|
/**
|
|
1642
1017
|
* List Style Image
|
|
1643
1018
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1644
1019
|
*/
|
|
1645
1020
|
"list-image": [{
|
|
1646
|
-
"list-image": ["none",
|
|
1021
|
+
"list-image": ["none", b]
|
|
1647
1022
|
}],
|
|
1648
1023
|
/**
|
|
1649
1024
|
* List Style Type
|
|
1650
1025
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1651
1026
|
*/
|
|
1652
1027
|
"list-style-type": [{
|
|
1653
|
-
list: ["none", "disc", "decimal",
|
|
1028
|
+
list: ["none", "disc", "decimal", b]
|
|
1654
1029
|
}],
|
|
1655
1030
|
/**
|
|
1656
1031
|
* List Style Position
|
|
@@ -1672,7 +1047,7 @@ const T = (e) => {
|
|
|
1672
1047
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1673
1048
|
*/
|
|
1674
1049
|
"placeholder-opacity": [{
|
|
1675
|
-
"placeholder-opacity": [
|
|
1050
|
+
"placeholder-opacity": [y]
|
|
1676
1051
|
}],
|
|
1677
1052
|
/**
|
|
1678
1053
|
* Text Alignment
|
|
@@ -1693,7 +1068,7 @@ const T = (e) => {
|
|
|
1693
1068
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1694
1069
|
*/
|
|
1695
1070
|
"text-opacity": [{
|
|
1696
|
-
"text-opacity": [
|
|
1071
|
+
"text-opacity": [y]
|
|
1697
1072
|
}],
|
|
1698
1073
|
/**
|
|
1699
1074
|
* Text Decoration
|
|
@@ -1705,21 +1080,21 @@ const T = (e) => {
|
|
|
1705
1080
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1706
1081
|
*/
|
|
1707
1082
|
"text-decoration-style": [{
|
|
1708
|
-
decoration: [...
|
|
1083
|
+
decoration: [...O(), "wavy"]
|
|
1709
1084
|
}],
|
|
1710
1085
|
/**
|
|
1711
1086
|
* Text Decoration Thickness
|
|
1712
1087
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1713
1088
|
*/
|
|
1714
1089
|
"text-decoration-thickness": [{
|
|
1715
|
-
decoration: ["auto", "from-font",
|
|
1090
|
+
decoration: ["auto", "from-font", L, G]
|
|
1716
1091
|
}],
|
|
1717
1092
|
/**
|
|
1718
1093
|
* Text Underline Offset
|
|
1719
1094
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1720
1095
|
*/
|
|
1721
1096
|
"underline-offset": [{
|
|
1722
|
-
"underline-offset": ["auto",
|
|
1097
|
+
"underline-offset": ["auto", L, b]
|
|
1723
1098
|
}],
|
|
1724
1099
|
/**
|
|
1725
1100
|
* Text Decoration Color
|
|
@@ -1750,14 +1125,14 @@ const T = (e) => {
|
|
|
1750
1125
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1751
1126
|
*/
|
|
1752
1127
|
indent: [{
|
|
1753
|
-
indent:
|
|
1128
|
+
indent: x()
|
|
1754
1129
|
}],
|
|
1755
1130
|
/**
|
|
1756
1131
|
* Vertical Alignment
|
|
1757
1132
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1758
1133
|
*/
|
|
1759
1134
|
"vertical-align": [{
|
|
1760
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1135
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", b]
|
|
1761
1136
|
}],
|
|
1762
1137
|
/**
|
|
1763
1138
|
* Whitespace
|
|
@@ -1785,7 +1160,7 @@ const T = (e) => {
|
|
|
1785
1160
|
* @see https://tailwindcss.com/docs/content
|
|
1786
1161
|
*/
|
|
1787
1162
|
content: [{
|
|
1788
|
-
content: ["none",
|
|
1163
|
+
content: ["none", b]
|
|
1789
1164
|
}],
|
|
1790
1165
|
// Backgrounds
|
|
1791
1166
|
/**
|
|
@@ -1808,7 +1183,7 @@ const T = (e) => {
|
|
|
1808
1183
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1809
1184
|
*/
|
|
1810
1185
|
"bg-opacity": [{
|
|
1811
|
-
"bg-opacity": [
|
|
1186
|
+
"bg-opacity": [y]
|
|
1812
1187
|
}],
|
|
1813
1188
|
/**
|
|
1814
1189
|
* Background Origin
|
|
@@ -1822,7 +1197,7 @@ const T = (e) => {
|
|
|
1822
1197
|
* @see https://tailwindcss.com/docs/background-position
|
|
1823
1198
|
*/
|
|
1824
1199
|
"bg-position": [{
|
|
1825
|
-
bg: [...
|
|
1200
|
+
bg: [..._(), gt]
|
|
1826
1201
|
}],
|
|
1827
1202
|
/**
|
|
1828
1203
|
* Background Repeat
|
|
@@ -1838,7 +1213,7 @@ const T = (e) => {
|
|
|
1838
1213
|
* @see https://tailwindcss.com/docs/background-size
|
|
1839
1214
|
*/
|
|
1840
1215
|
"bg-size": [{
|
|
1841
|
-
bg: ["auto", "cover", "contain",
|
|
1216
|
+
bg: ["auto", "cover", "contain", mt]
|
|
1842
1217
|
}],
|
|
1843
1218
|
/**
|
|
1844
1219
|
* Background Image
|
|
@@ -1847,7 +1222,7 @@ const T = (e) => {
|
|
|
1847
1222
|
"bg-image": [{
|
|
1848
1223
|
bg: ["none", {
|
|
1849
1224
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1850
|
-
},
|
|
1225
|
+
}, xt]
|
|
1851
1226
|
}],
|
|
1852
1227
|
/**
|
|
1853
1228
|
* Background Color
|
|
@@ -1861,42 +1236,42 @@ const T = (e) => {
|
|
|
1861
1236
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1862
1237
|
*/
|
|
1863
1238
|
"gradient-from-pos": [{
|
|
1864
|
-
from: [
|
|
1239
|
+
from: [v]
|
|
1865
1240
|
}],
|
|
1866
1241
|
/**
|
|
1867
1242
|
* Gradient Color Stops Via Position
|
|
1868
1243
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1869
1244
|
*/
|
|
1870
1245
|
"gradient-via-pos": [{
|
|
1871
|
-
via: [
|
|
1246
|
+
via: [v]
|
|
1872
1247
|
}],
|
|
1873
1248
|
/**
|
|
1874
1249
|
* Gradient Color Stops To Position
|
|
1875
1250
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1876
1251
|
*/
|
|
1877
1252
|
"gradient-to-pos": [{
|
|
1878
|
-
to: [
|
|
1253
|
+
to: [v]
|
|
1879
1254
|
}],
|
|
1880
1255
|
/**
|
|
1881
1256
|
* Gradient Color Stops From
|
|
1882
1257
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1883
1258
|
*/
|
|
1884
1259
|
"gradient-from": [{
|
|
1885
|
-
from: [
|
|
1260
|
+
from: [f]
|
|
1886
1261
|
}],
|
|
1887
1262
|
/**
|
|
1888
1263
|
* Gradient Color Stops Via
|
|
1889
1264
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1890
1265
|
*/
|
|
1891
1266
|
"gradient-via": [{
|
|
1892
|
-
via: [
|
|
1267
|
+
via: [f]
|
|
1893
1268
|
}],
|
|
1894
1269
|
/**
|
|
1895
1270
|
* Gradient Color Stops To
|
|
1896
1271
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1897
1272
|
*/
|
|
1898
1273
|
"gradient-to": [{
|
|
1899
|
-
to: [
|
|
1274
|
+
to: [f]
|
|
1900
1275
|
}],
|
|
1901
1276
|
// Borders
|
|
1902
1277
|
/**
|
|
@@ -2009,84 +1384,84 @@ const T = (e) => {
|
|
|
2009
1384
|
* @see https://tailwindcss.com/docs/border-width
|
|
2010
1385
|
*/
|
|
2011
1386
|
"border-w": [{
|
|
2012
|
-
border: [
|
|
1387
|
+
border: [a]
|
|
2013
1388
|
}],
|
|
2014
1389
|
/**
|
|
2015
1390
|
* Border Width X
|
|
2016
1391
|
* @see https://tailwindcss.com/docs/border-width
|
|
2017
1392
|
*/
|
|
2018
1393
|
"border-w-x": [{
|
|
2019
|
-
"border-x": [
|
|
1394
|
+
"border-x": [a]
|
|
2020
1395
|
}],
|
|
2021
1396
|
/**
|
|
2022
1397
|
* Border Width Y
|
|
2023
1398
|
* @see https://tailwindcss.com/docs/border-width
|
|
2024
1399
|
*/
|
|
2025
1400
|
"border-w-y": [{
|
|
2026
|
-
"border-y": [
|
|
1401
|
+
"border-y": [a]
|
|
2027
1402
|
}],
|
|
2028
1403
|
/**
|
|
2029
1404
|
* Border Width Start
|
|
2030
1405
|
* @see https://tailwindcss.com/docs/border-width
|
|
2031
1406
|
*/
|
|
2032
1407
|
"border-w-s": [{
|
|
2033
|
-
"border-s": [
|
|
1408
|
+
"border-s": [a]
|
|
2034
1409
|
}],
|
|
2035
1410
|
/**
|
|
2036
1411
|
* Border Width End
|
|
2037
1412
|
* @see https://tailwindcss.com/docs/border-width
|
|
2038
1413
|
*/
|
|
2039
1414
|
"border-w-e": [{
|
|
2040
|
-
"border-e": [
|
|
1415
|
+
"border-e": [a]
|
|
2041
1416
|
}],
|
|
2042
1417
|
/**
|
|
2043
1418
|
* Border Width Top
|
|
2044
1419
|
* @see https://tailwindcss.com/docs/border-width
|
|
2045
1420
|
*/
|
|
2046
1421
|
"border-w-t": [{
|
|
2047
|
-
"border-t": [
|
|
1422
|
+
"border-t": [a]
|
|
2048
1423
|
}],
|
|
2049
1424
|
/**
|
|
2050
1425
|
* Border Width Right
|
|
2051
1426
|
* @see https://tailwindcss.com/docs/border-width
|
|
2052
1427
|
*/
|
|
2053
1428
|
"border-w-r": [{
|
|
2054
|
-
"border-r": [
|
|
1429
|
+
"border-r": [a]
|
|
2055
1430
|
}],
|
|
2056
1431
|
/**
|
|
2057
1432
|
* Border Width Bottom
|
|
2058
1433
|
* @see https://tailwindcss.com/docs/border-width
|
|
2059
1434
|
*/
|
|
2060
1435
|
"border-w-b": [{
|
|
2061
|
-
"border-b": [
|
|
1436
|
+
"border-b": [a]
|
|
2062
1437
|
}],
|
|
2063
1438
|
/**
|
|
2064
1439
|
* Border Width Left
|
|
2065
1440
|
* @see https://tailwindcss.com/docs/border-width
|
|
2066
1441
|
*/
|
|
2067
1442
|
"border-w-l": [{
|
|
2068
|
-
"border-l": [
|
|
1443
|
+
"border-l": [a]
|
|
2069
1444
|
}],
|
|
2070
1445
|
/**
|
|
2071
1446
|
* Border Opacity
|
|
2072
1447
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
2073
1448
|
*/
|
|
2074
1449
|
"border-opacity": [{
|
|
2075
|
-
"border-opacity": [
|
|
1450
|
+
"border-opacity": [y]
|
|
2076
1451
|
}],
|
|
2077
1452
|
/**
|
|
2078
1453
|
* Border Style
|
|
2079
1454
|
* @see https://tailwindcss.com/docs/border-style
|
|
2080
1455
|
*/
|
|
2081
1456
|
"border-style": [{
|
|
2082
|
-
border: [...
|
|
1457
|
+
border: [...O(), "hidden"]
|
|
2083
1458
|
}],
|
|
2084
1459
|
/**
|
|
2085
1460
|
* Divide Width X
|
|
2086
1461
|
* @see https://tailwindcss.com/docs/divide-width
|
|
2087
1462
|
*/
|
|
2088
1463
|
"divide-x": [{
|
|
2089
|
-
"divide-x": [
|
|
1464
|
+
"divide-x": [a]
|
|
2090
1465
|
}],
|
|
2091
1466
|
/**
|
|
2092
1467
|
* Divide Width X Reverse
|
|
@@ -2098,7 +1473,7 @@ const T = (e) => {
|
|
|
2098
1473
|
* @see https://tailwindcss.com/docs/divide-width
|
|
2099
1474
|
*/
|
|
2100
1475
|
"divide-y": [{
|
|
2101
|
-
"divide-y": [
|
|
1476
|
+
"divide-y": [a]
|
|
2102
1477
|
}],
|
|
2103
1478
|
/**
|
|
2104
1479
|
* Divide Width Y Reverse
|
|
@@ -2110,105 +1485,105 @@ const T = (e) => {
|
|
|
2110
1485
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
2111
1486
|
*/
|
|
2112
1487
|
"divide-opacity": [{
|
|
2113
|
-
"divide-opacity": [
|
|
1488
|
+
"divide-opacity": [y]
|
|
2114
1489
|
}],
|
|
2115
1490
|
/**
|
|
2116
1491
|
* Divide Style
|
|
2117
1492
|
* @see https://tailwindcss.com/docs/divide-style
|
|
2118
1493
|
*/
|
|
2119
1494
|
"divide-style": [{
|
|
2120
|
-
divide:
|
|
1495
|
+
divide: O()
|
|
2121
1496
|
}],
|
|
2122
1497
|
/**
|
|
2123
1498
|
* Border Color
|
|
2124
1499
|
* @see https://tailwindcss.com/docs/border-color
|
|
2125
1500
|
*/
|
|
2126
1501
|
"border-color": [{
|
|
2127
|
-
border: [
|
|
1502
|
+
border: [n]
|
|
2128
1503
|
}],
|
|
2129
1504
|
/**
|
|
2130
1505
|
* Border Color X
|
|
2131
1506
|
* @see https://tailwindcss.com/docs/border-color
|
|
2132
1507
|
*/
|
|
2133
1508
|
"border-color-x": [{
|
|
2134
|
-
"border-x": [
|
|
1509
|
+
"border-x": [n]
|
|
2135
1510
|
}],
|
|
2136
1511
|
/**
|
|
2137
1512
|
* Border Color Y
|
|
2138
1513
|
* @see https://tailwindcss.com/docs/border-color
|
|
2139
1514
|
*/
|
|
2140
1515
|
"border-color-y": [{
|
|
2141
|
-
"border-y": [
|
|
1516
|
+
"border-y": [n]
|
|
2142
1517
|
}],
|
|
2143
1518
|
/**
|
|
2144
1519
|
* Border Color S
|
|
2145
1520
|
* @see https://tailwindcss.com/docs/border-color
|
|
2146
1521
|
*/
|
|
2147
1522
|
"border-color-s": [{
|
|
2148
|
-
"border-s": [
|
|
1523
|
+
"border-s": [n]
|
|
2149
1524
|
}],
|
|
2150
1525
|
/**
|
|
2151
1526
|
* Border Color E
|
|
2152
1527
|
* @see https://tailwindcss.com/docs/border-color
|
|
2153
1528
|
*/
|
|
2154
1529
|
"border-color-e": [{
|
|
2155
|
-
"border-e": [
|
|
1530
|
+
"border-e": [n]
|
|
2156
1531
|
}],
|
|
2157
1532
|
/**
|
|
2158
1533
|
* Border Color Top
|
|
2159
1534
|
* @see https://tailwindcss.com/docs/border-color
|
|
2160
1535
|
*/
|
|
2161
1536
|
"border-color-t": [{
|
|
2162
|
-
"border-t": [
|
|
1537
|
+
"border-t": [n]
|
|
2163
1538
|
}],
|
|
2164
1539
|
/**
|
|
2165
1540
|
* Border Color Right
|
|
2166
1541
|
* @see https://tailwindcss.com/docs/border-color
|
|
2167
1542
|
*/
|
|
2168
1543
|
"border-color-r": [{
|
|
2169
|
-
"border-r": [
|
|
1544
|
+
"border-r": [n]
|
|
2170
1545
|
}],
|
|
2171
1546
|
/**
|
|
2172
1547
|
* Border Color Bottom
|
|
2173
1548
|
* @see https://tailwindcss.com/docs/border-color
|
|
2174
1549
|
*/
|
|
2175
1550
|
"border-color-b": [{
|
|
2176
|
-
"border-b": [
|
|
1551
|
+
"border-b": [n]
|
|
2177
1552
|
}],
|
|
2178
1553
|
/**
|
|
2179
1554
|
* Border Color Left
|
|
2180
1555
|
* @see https://tailwindcss.com/docs/border-color
|
|
2181
1556
|
*/
|
|
2182
1557
|
"border-color-l": [{
|
|
2183
|
-
"border-l": [
|
|
1558
|
+
"border-l": [n]
|
|
2184
1559
|
}],
|
|
2185
1560
|
/**
|
|
2186
1561
|
* Divide Color
|
|
2187
1562
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2188
1563
|
*/
|
|
2189
1564
|
"divide-color": [{
|
|
2190
|
-
divide: [
|
|
1565
|
+
divide: [n]
|
|
2191
1566
|
}],
|
|
2192
1567
|
/**
|
|
2193
1568
|
* Outline Style
|
|
2194
1569
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2195
1570
|
*/
|
|
2196
1571
|
"outline-style": [{
|
|
2197
|
-
outline: ["", ...
|
|
1572
|
+
outline: ["", ...O()]
|
|
2198
1573
|
}],
|
|
2199
1574
|
/**
|
|
2200
1575
|
* Outline Offset
|
|
2201
1576
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2202
1577
|
*/
|
|
2203
1578
|
"outline-offset": [{
|
|
2204
|
-
"outline-offset": [
|
|
1579
|
+
"outline-offset": [L, b]
|
|
2205
1580
|
}],
|
|
2206
1581
|
/**
|
|
2207
1582
|
* Outline Width
|
|
2208
1583
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2209
1584
|
*/
|
|
2210
1585
|
"outline-w": [{
|
|
2211
|
-
outline: [
|
|
1586
|
+
outline: [L, G]
|
|
2212
1587
|
}],
|
|
2213
1588
|
/**
|
|
2214
1589
|
* Outline Color
|
|
@@ -2222,7 +1597,7 @@ const T = (e) => {
|
|
|
2222
1597
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2223
1598
|
*/
|
|
2224
1599
|
"ring-w": [{
|
|
2225
|
-
ring:
|
|
1600
|
+
ring: J()
|
|
2226
1601
|
}],
|
|
2227
1602
|
/**
|
|
2228
1603
|
* Ring Width Inset
|
|
@@ -2241,14 +1616,14 @@ const T = (e) => {
|
|
|
2241
1616
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2242
1617
|
*/
|
|
2243
1618
|
"ring-opacity": [{
|
|
2244
|
-
"ring-opacity": [
|
|
1619
|
+
"ring-opacity": [y]
|
|
2245
1620
|
}],
|
|
2246
1621
|
/**
|
|
2247
1622
|
* Ring Offset Width
|
|
2248
1623
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2249
1624
|
*/
|
|
2250
1625
|
"ring-offset-w": [{
|
|
2251
|
-
"ring-offset": [
|
|
1626
|
+
"ring-offset": [L, G]
|
|
2252
1627
|
}],
|
|
2253
1628
|
/**
|
|
2254
1629
|
* Ring Offset Color
|
|
@@ -2263,35 +1638,35 @@ const T = (e) => {
|
|
|
2263
1638
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
2264
1639
|
*/
|
|
2265
1640
|
shadow: [{
|
|
2266
|
-
shadow: ["", "inner", "none",
|
|
1641
|
+
shadow: ["", "inner", "none", B, yt]
|
|
2267
1642
|
}],
|
|
2268
1643
|
/**
|
|
2269
1644
|
* Box Shadow Color
|
|
2270
1645
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
2271
1646
|
*/
|
|
2272
1647
|
"shadow-color": [{
|
|
2273
|
-
shadow: [
|
|
1648
|
+
shadow: [X]
|
|
2274
1649
|
}],
|
|
2275
1650
|
/**
|
|
2276
1651
|
* Opacity
|
|
2277
1652
|
* @see https://tailwindcss.com/docs/opacity
|
|
2278
1653
|
*/
|
|
2279
1654
|
opacity: [{
|
|
2280
|
-
opacity: [
|
|
1655
|
+
opacity: [y]
|
|
2281
1656
|
}],
|
|
2282
1657
|
/**
|
|
2283
1658
|
* Mix Blend Mode
|
|
2284
1659
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2285
1660
|
*/
|
|
2286
1661
|
"mix-blend": [{
|
|
2287
|
-
"mix-blend": [...
|
|
1662
|
+
"mix-blend": [...se(), "plus-lighter", "plus-darker"]
|
|
2288
1663
|
}],
|
|
2289
1664
|
/**
|
|
2290
1665
|
* Background Blend Mode
|
|
2291
1666
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2292
1667
|
*/
|
|
2293
1668
|
"bg-blend": [{
|
|
2294
|
-
"bg-blend":
|
|
1669
|
+
"bg-blend": se()
|
|
2295
1670
|
}],
|
|
2296
1671
|
// Filters
|
|
2297
1672
|
/**
|
|
@@ -2321,49 +1696,49 @@ const T = (e) => {
|
|
|
2321
1696
|
* @see https://tailwindcss.com/docs/contrast
|
|
2322
1697
|
*/
|
|
2323
1698
|
contrast: [{
|
|
2324
|
-
contrast: [
|
|
1699
|
+
contrast: [d]
|
|
2325
1700
|
}],
|
|
2326
1701
|
/**
|
|
2327
1702
|
* Drop Shadow
|
|
2328
1703
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2329
1704
|
*/
|
|
2330
1705
|
"drop-shadow": [{
|
|
2331
|
-
"drop-shadow": ["", "none",
|
|
1706
|
+
"drop-shadow": ["", "none", B, b]
|
|
2332
1707
|
}],
|
|
2333
1708
|
/**
|
|
2334
1709
|
* Grayscale
|
|
2335
1710
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2336
1711
|
*/
|
|
2337
1712
|
grayscale: [{
|
|
2338
|
-
grayscale: [
|
|
1713
|
+
grayscale: [c]
|
|
2339
1714
|
}],
|
|
2340
1715
|
/**
|
|
2341
1716
|
* Hue Rotate
|
|
2342
1717
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2343
1718
|
*/
|
|
2344
1719
|
"hue-rotate": [{
|
|
2345
|
-
"hue-rotate": [
|
|
1720
|
+
"hue-rotate": [p]
|
|
2346
1721
|
}],
|
|
2347
1722
|
/**
|
|
2348
1723
|
* Invert
|
|
2349
1724
|
* @see https://tailwindcss.com/docs/invert
|
|
2350
1725
|
*/
|
|
2351
1726
|
invert: [{
|
|
2352
|
-
invert: [
|
|
1727
|
+
invert: [g]
|
|
2353
1728
|
}],
|
|
2354
1729
|
/**
|
|
2355
1730
|
* Saturate
|
|
2356
1731
|
* @see https://tailwindcss.com/docs/saturate
|
|
2357
1732
|
*/
|
|
2358
1733
|
saturate: [{
|
|
2359
|
-
saturate: [
|
|
1734
|
+
saturate: [P]
|
|
2360
1735
|
}],
|
|
2361
1736
|
/**
|
|
2362
1737
|
* Sepia
|
|
2363
1738
|
* @see https://tailwindcss.com/docs/sepia
|
|
2364
1739
|
*/
|
|
2365
1740
|
sepia: [{
|
|
2366
|
-
sepia: [
|
|
1741
|
+
sepia: [I]
|
|
2367
1742
|
}],
|
|
2368
1743
|
/**
|
|
2369
1744
|
* Backdrop Filter
|
|
@@ -2392,49 +1767,49 @@ const T = (e) => {
|
|
|
2392
1767
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2393
1768
|
*/
|
|
2394
1769
|
"backdrop-contrast": [{
|
|
2395
|
-
"backdrop-contrast": [
|
|
1770
|
+
"backdrop-contrast": [d]
|
|
2396
1771
|
}],
|
|
2397
1772
|
/**
|
|
2398
1773
|
* Backdrop Grayscale
|
|
2399
1774
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2400
1775
|
*/
|
|
2401
1776
|
"backdrop-grayscale": [{
|
|
2402
|
-
"backdrop-grayscale": [
|
|
1777
|
+
"backdrop-grayscale": [c]
|
|
2403
1778
|
}],
|
|
2404
1779
|
/**
|
|
2405
1780
|
* Backdrop Hue Rotate
|
|
2406
1781
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2407
1782
|
*/
|
|
2408
1783
|
"backdrop-hue-rotate": [{
|
|
2409
|
-
"backdrop-hue-rotate": [
|
|
1784
|
+
"backdrop-hue-rotate": [p]
|
|
2410
1785
|
}],
|
|
2411
1786
|
/**
|
|
2412
1787
|
* Backdrop Invert
|
|
2413
1788
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2414
1789
|
*/
|
|
2415
1790
|
"backdrop-invert": [{
|
|
2416
|
-
"backdrop-invert": [
|
|
1791
|
+
"backdrop-invert": [g]
|
|
2417
1792
|
}],
|
|
2418
1793
|
/**
|
|
2419
1794
|
* Backdrop Opacity
|
|
2420
1795
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2421
1796
|
*/
|
|
2422
1797
|
"backdrop-opacity": [{
|
|
2423
|
-
"backdrop-opacity": [
|
|
1798
|
+
"backdrop-opacity": [y]
|
|
2424
1799
|
}],
|
|
2425
1800
|
/**
|
|
2426
1801
|
* Backdrop Saturate
|
|
2427
1802
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2428
1803
|
*/
|
|
2429
1804
|
"backdrop-saturate": [{
|
|
2430
|
-
"backdrop-saturate": [
|
|
1805
|
+
"backdrop-saturate": [P]
|
|
2431
1806
|
}],
|
|
2432
1807
|
/**
|
|
2433
1808
|
* Backdrop Sepia
|
|
2434
1809
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2435
1810
|
*/
|
|
2436
1811
|
"backdrop-sepia": [{
|
|
2437
|
-
"backdrop-sepia": [
|
|
1812
|
+
"backdrop-sepia": [I]
|
|
2438
1813
|
}],
|
|
2439
1814
|
// Tables
|
|
2440
1815
|
/**
|
|
@@ -2449,21 +1824,21 @@ const T = (e) => {
|
|
|
2449
1824
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2450
1825
|
*/
|
|
2451
1826
|
"border-spacing": [{
|
|
2452
|
-
"border-spacing": [
|
|
1827
|
+
"border-spacing": [i]
|
|
2453
1828
|
}],
|
|
2454
1829
|
/**
|
|
2455
1830
|
* Border Spacing X
|
|
2456
1831
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2457
1832
|
*/
|
|
2458
1833
|
"border-spacing-x": [{
|
|
2459
|
-
"border-spacing-x": [
|
|
1834
|
+
"border-spacing-x": [i]
|
|
2460
1835
|
}],
|
|
2461
1836
|
/**
|
|
2462
1837
|
* Border Spacing Y
|
|
2463
1838
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2464
1839
|
*/
|
|
2465
1840
|
"border-spacing-y": [{
|
|
2466
|
-
"border-spacing-y": [
|
|
1841
|
+
"border-spacing-y": [i]
|
|
2467
1842
|
}],
|
|
2468
1843
|
/**
|
|
2469
1844
|
* Table Layout
|
|
@@ -2485,35 +1860,35 @@ const T = (e) => {
|
|
|
2485
1860
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2486
1861
|
*/
|
|
2487
1862
|
transition: [{
|
|
2488
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1863
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", b]
|
|
2489
1864
|
}],
|
|
2490
1865
|
/**
|
|
2491
1866
|
* Transition Duration
|
|
2492
1867
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2493
1868
|
*/
|
|
2494
1869
|
duration: [{
|
|
2495
|
-
duration:
|
|
1870
|
+
duration: j()
|
|
2496
1871
|
}],
|
|
2497
1872
|
/**
|
|
2498
1873
|
* Transition Timing Function
|
|
2499
1874
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2500
1875
|
*/
|
|
2501
1876
|
ease: [{
|
|
2502
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1877
|
+
ease: ["linear", "in", "out", "in-out", b]
|
|
2503
1878
|
}],
|
|
2504
1879
|
/**
|
|
2505
1880
|
* Transition Delay
|
|
2506
1881
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2507
1882
|
*/
|
|
2508
1883
|
delay: [{
|
|
2509
|
-
delay:
|
|
1884
|
+
delay: j()
|
|
2510
1885
|
}],
|
|
2511
1886
|
/**
|
|
2512
1887
|
* Animation
|
|
2513
1888
|
* @see https://tailwindcss.com/docs/animation
|
|
2514
1889
|
*/
|
|
2515
1890
|
animate: [{
|
|
2516
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1891
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", b]
|
|
2517
1892
|
}],
|
|
2518
1893
|
// Transforms
|
|
2519
1894
|
/**
|
|
@@ -2528,63 +1903,63 @@ const T = (e) => {
|
|
|
2528
1903
|
* @see https://tailwindcss.com/docs/scale
|
|
2529
1904
|
*/
|
|
2530
1905
|
scale: [{
|
|
2531
|
-
scale: [
|
|
1906
|
+
scale: [E]
|
|
2532
1907
|
}],
|
|
2533
1908
|
/**
|
|
2534
1909
|
* Scale X
|
|
2535
1910
|
* @see https://tailwindcss.com/docs/scale
|
|
2536
1911
|
*/
|
|
2537
1912
|
"scale-x": [{
|
|
2538
|
-
"scale-x": [
|
|
1913
|
+
"scale-x": [E]
|
|
2539
1914
|
}],
|
|
2540
1915
|
/**
|
|
2541
1916
|
* Scale Y
|
|
2542
1917
|
* @see https://tailwindcss.com/docs/scale
|
|
2543
1918
|
*/
|
|
2544
1919
|
"scale-y": [{
|
|
2545
|
-
"scale-y": [
|
|
1920
|
+
"scale-y": [E]
|
|
2546
1921
|
}],
|
|
2547
1922
|
/**
|
|
2548
1923
|
* Rotate
|
|
2549
1924
|
* @see https://tailwindcss.com/docs/rotate
|
|
2550
1925
|
*/
|
|
2551
1926
|
rotate: [{
|
|
2552
|
-
rotate: [
|
|
1927
|
+
rotate: [K, b]
|
|
2553
1928
|
}],
|
|
2554
1929
|
/**
|
|
2555
1930
|
* Translate X
|
|
2556
1931
|
* @see https://tailwindcss.com/docs/translate
|
|
2557
1932
|
*/
|
|
2558
1933
|
"translate-x": [{
|
|
2559
|
-
"translate-x": [
|
|
1934
|
+
"translate-x": [U]
|
|
2560
1935
|
}],
|
|
2561
1936
|
/**
|
|
2562
1937
|
* Translate Y
|
|
2563
1938
|
* @see https://tailwindcss.com/docs/translate
|
|
2564
1939
|
*/
|
|
2565
1940
|
"translate-y": [{
|
|
2566
|
-
"translate-y": [
|
|
1941
|
+
"translate-y": [U]
|
|
2567
1942
|
}],
|
|
2568
1943
|
/**
|
|
2569
1944
|
* Skew X
|
|
2570
1945
|
* @see https://tailwindcss.com/docs/skew
|
|
2571
1946
|
*/
|
|
2572
1947
|
"skew-x": [{
|
|
2573
|
-
"skew-x": [
|
|
1948
|
+
"skew-x": [M]
|
|
2574
1949
|
}],
|
|
2575
1950
|
/**
|
|
2576
1951
|
* Skew Y
|
|
2577
1952
|
* @see https://tailwindcss.com/docs/skew
|
|
2578
1953
|
*/
|
|
2579
1954
|
"skew-y": [{
|
|
2580
|
-
"skew-y": [
|
|
1955
|
+
"skew-y": [M]
|
|
2581
1956
|
}],
|
|
2582
1957
|
/**
|
|
2583
1958
|
* Transform Origin
|
|
2584
1959
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2585
1960
|
*/
|
|
2586
1961
|
"transform-origin": [{
|
|
2587
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1962
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", b]
|
|
2588
1963
|
}],
|
|
2589
1964
|
// Interactivity
|
|
2590
1965
|
/**
|
|
@@ -2606,7 +1981,7 @@ const T = (e) => {
|
|
|
2606
1981
|
* @see https://tailwindcss.com/docs/cursor
|
|
2607
1982
|
*/
|
|
2608
1983
|
cursor: [{
|
|
2609
|
-
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",
|
|
1984
|
+
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", b]
|
|
2610
1985
|
}],
|
|
2611
1986
|
/**
|
|
2612
1987
|
* Caret Color
|
|
@@ -2641,126 +2016,126 @@ const T = (e) => {
|
|
|
2641
2016
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2642
2017
|
*/
|
|
2643
2018
|
"scroll-m": [{
|
|
2644
|
-
"scroll-m":
|
|
2019
|
+
"scroll-m": x()
|
|
2645
2020
|
}],
|
|
2646
2021
|
/**
|
|
2647
2022
|
* Scroll Margin X
|
|
2648
2023
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2649
2024
|
*/
|
|
2650
2025
|
"scroll-mx": [{
|
|
2651
|
-
"scroll-mx":
|
|
2026
|
+
"scroll-mx": x()
|
|
2652
2027
|
}],
|
|
2653
2028
|
/**
|
|
2654
2029
|
* Scroll Margin Y
|
|
2655
2030
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2656
2031
|
*/
|
|
2657
2032
|
"scroll-my": [{
|
|
2658
|
-
"scroll-my":
|
|
2033
|
+
"scroll-my": x()
|
|
2659
2034
|
}],
|
|
2660
2035
|
/**
|
|
2661
2036
|
* Scroll Margin Start
|
|
2662
2037
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2663
2038
|
*/
|
|
2664
2039
|
"scroll-ms": [{
|
|
2665
|
-
"scroll-ms":
|
|
2040
|
+
"scroll-ms": x()
|
|
2666
2041
|
}],
|
|
2667
2042
|
/**
|
|
2668
2043
|
* Scroll Margin End
|
|
2669
2044
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2670
2045
|
*/
|
|
2671
2046
|
"scroll-me": [{
|
|
2672
|
-
"scroll-me":
|
|
2047
|
+
"scroll-me": x()
|
|
2673
2048
|
}],
|
|
2674
2049
|
/**
|
|
2675
2050
|
* Scroll Margin Top
|
|
2676
2051
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2677
2052
|
*/
|
|
2678
2053
|
"scroll-mt": [{
|
|
2679
|
-
"scroll-mt":
|
|
2054
|
+
"scroll-mt": x()
|
|
2680
2055
|
}],
|
|
2681
2056
|
/**
|
|
2682
2057
|
* Scroll Margin Right
|
|
2683
2058
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2684
2059
|
*/
|
|
2685
2060
|
"scroll-mr": [{
|
|
2686
|
-
"scroll-mr":
|
|
2061
|
+
"scroll-mr": x()
|
|
2687
2062
|
}],
|
|
2688
2063
|
/**
|
|
2689
2064
|
* Scroll Margin Bottom
|
|
2690
2065
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2691
2066
|
*/
|
|
2692
2067
|
"scroll-mb": [{
|
|
2693
|
-
"scroll-mb":
|
|
2068
|
+
"scroll-mb": x()
|
|
2694
2069
|
}],
|
|
2695
2070
|
/**
|
|
2696
2071
|
* Scroll Margin Left
|
|
2697
2072
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2698
2073
|
*/
|
|
2699
2074
|
"scroll-ml": [{
|
|
2700
|
-
"scroll-ml":
|
|
2075
|
+
"scroll-ml": x()
|
|
2701
2076
|
}],
|
|
2702
2077
|
/**
|
|
2703
2078
|
* Scroll Padding
|
|
2704
2079
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2705
2080
|
*/
|
|
2706
2081
|
"scroll-p": [{
|
|
2707
|
-
"scroll-p":
|
|
2082
|
+
"scroll-p": x()
|
|
2708
2083
|
}],
|
|
2709
2084
|
/**
|
|
2710
2085
|
* Scroll Padding X
|
|
2711
2086
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2712
2087
|
*/
|
|
2713
2088
|
"scroll-px": [{
|
|
2714
|
-
"scroll-px":
|
|
2089
|
+
"scroll-px": x()
|
|
2715
2090
|
}],
|
|
2716
2091
|
/**
|
|
2717
2092
|
* Scroll Padding Y
|
|
2718
2093
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2719
2094
|
*/
|
|
2720
2095
|
"scroll-py": [{
|
|
2721
|
-
"scroll-py":
|
|
2096
|
+
"scroll-py": x()
|
|
2722
2097
|
}],
|
|
2723
2098
|
/**
|
|
2724
2099
|
* Scroll Padding Start
|
|
2725
2100
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2726
2101
|
*/
|
|
2727
2102
|
"scroll-ps": [{
|
|
2728
|
-
"scroll-ps":
|
|
2103
|
+
"scroll-ps": x()
|
|
2729
2104
|
}],
|
|
2730
2105
|
/**
|
|
2731
2106
|
* Scroll Padding End
|
|
2732
2107
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2733
2108
|
*/
|
|
2734
2109
|
"scroll-pe": [{
|
|
2735
|
-
"scroll-pe":
|
|
2110
|
+
"scroll-pe": x()
|
|
2736
2111
|
}],
|
|
2737
2112
|
/**
|
|
2738
2113
|
* Scroll Padding Top
|
|
2739
2114
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2740
2115
|
*/
|
|
2741
2116
|
"scroll-pt": [{
|
|
2742
|
-
"scroll-pt":
|
|
2117
|
+
"scroll-pt": x()
|
|
2743
2118
|
}],
|
|
2744
2119
|
/**
|
|
2745
2120
|
* Scroll Padding Right
|
|
2746
2121
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2747
2122
|
*/
|
|
2748
2123
|
"scroll-pr": [{
|
|
2749
|
-
"scroll-pr":
|
|
2124
|
+
"scroll-pr": x()
|
|
2750
2125
|
}],
|
|
2751
2126
|
/**
|
|
2752
2127
|
* Scroll Padding Bottom
|
|
2753
2128
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2754
2129
|
*/
|
|
2755
2130
|
"scroll-pb": [{
|
|
2756
|
-
"scroll-pb":
|
|
2131
|
+
"scroll-pb": x()
|
|
2757
2132
|
}],
|
|
2758
2133
|
/**
|
|
2759
2134
|
* Scroll Padding Left
|
|
2760
2135
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2761
2136
|
*/
|
|
2762
2137
|
"scroll-pl": [{
|
|
2763
|
-
"scroll-pl":
|
|
2138
|
+
"scroll-pl": x()
|
|
2764
2139
|
}],
|
|
2765
2140
|
/**
|
|
2766
2141
|
* Scroll Snap Align
|
|
@@ -2828,7 +2203,7 @@ const T = (e) => {
|
|
|
2828
2203
|
* @see https://tailwindcss.com/docs/will-change
|
|
2829
2204
|
*/
|
|
2830
2205
|
"will-change": [{
|
|
2831
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2206
|
+
"will-change": ["auto", "scroll", "contents", "transform", b]
|
|
2832
2207
|
}],
|
|
2833
2208
|
// SVG
|
|
2834
2209
|
/**
|
|
@@ -2843,7 +2218,7 @@ const T = (e) => {
|
|
|
2843
2218
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2844
2219
|
*/
|
|
2845
2220
|
"stroke-w": [{
|
|
2846
|
-
stroke: [
|
|
2221
|
+
stroke: [L, G, q]
|
|
2847
2222
|
}],
|
|
2848
2223
|
/**
|
|
2849
2224
|
* Stroke
|
|
@@ -2918,156 +2293,156 @@ const T = (e) => {
|
|
|
2918
2293
|
"font-size": ["leading"]
|
|
2919
2294
|
}
|
|
2920
2295
|
};
|
|
2921
|
-
},
|
|
2922
|
-
function
|
|
2923
|
-
return
|
|
2296
|
+
}, Nt = /* @__PURE__ */ st(kt);
|
|
2297
|
+
function A(...e) {
|
|
2298
|
+
return Nt(xe(e));
|
|
2924
2299
|
}
|
|
2925
|
-
const
|
|
2300
|
+
const oe = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
2926
2301
|
"div",
|
|
2927
2302
|
{
|
|
2928
2303
|
ref: t,
|
|
2929
|
-
className:
|
|
2304
|
+
className: A(
|
|
2930
2305
|
"rounded-xl border bg-card text-card-foreground shadow",
|
|
2931
2306
|
e
|
|
2932
2307
|
),
|
|
2933
|
-
...
|
|
2308
|
+
...r
|
|
2934
2309
|
}
|
|
2935
2310
|
));
|
|
2936
|
-
|
|
2937
|
-
const
|
|
2311
|
+
oe.displayName = "Card";
|
|
2312
|
+
const Ne = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
2938
2313
|
"div",
|
|
2939
2314
|
{
|
|
2940
2315
|
ref: t,
|
|
2941
|
-
className:
|
|
2942
|
-
...
|
|
2316
|
+
className: A("flex flex-col space-y-1.5 p-6", e),
|
|
2317
|
+
...r
|
|
2943
2318
|
}
|
|
2944
2319
|
));
|
|
2945
|
-
|
|
2946
|
-
const
|
|
2320
|
+
Ne.displayName = "CardHeader";
|
|
2321
|
+
const Ae = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
2947
2322
|
"div",
|
|
2948
2323
|
{
|
|
2949
2324
|
ref: t,
|
|
2950
|
-
className:
|
|
2951
|
-
...
|
|
2325
|
+
className: A("font-semibold leading-none tracking-tight", e),
|
|
2326
|
+
...r
|
|
2952
2327
|
}
|
|
2953
2328
|
));
|
|
2954
|
-
|
|
2955
|
-
const
|
|
2329
|
+
Ae.displayName = "CardTitle";
|
|
2330
|
+
const Pe = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
2956
2331
|
"div",
|
|
2957
2332
|
{
|
|
2958
2333
|
ref: t,
|
|
2959
|
-
className:
|
|
2960
|
-
...
|
|
2334
|
+
className: A("text-sm text-muted-foreground", e),
|
|
2335
|
+
...r
|
|
2961
2336
|
}
|
|
2962
2337
|
));
|
|
2963
|
-
|
|
2964
|
-
const
|
|
2965
|
-
|
|
2966
|
-
const
|
|
2338
|
+
Pe.displayName = "CardDescription";
|
|
2339
|
+
const ne = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l("div", { ref: t, className: A("p-6 pt-0", e), ...r }));
|
|
2340
|
+
ne.displayName = "CardContent";
|
|
2341
|
+
const At = k.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
2967
2342
|
"div",
|
|
2968
2343
|
{
|
|
2969
2344
|
ref: t,
|
|
2970
|
-
className:
|
|
2971
|
-
...
|
|
2345
|
+
className: A("flex items-center p-6 pt-0", e),
|
|
2346
|
+
...r
|
|
2972
2347
|
}
|
|
2973
2348
|
));
|
|
2974
|
-
|
|
2975
|
-
function
|
|
2349
|
+
At.displayName = "CardFooter";
|
|
2350
|
+
function fe(e, r) {
|
|
2976
2351
|
if (typeof e == "function")
|
|
2977
|
-
return e(
|
|
2978
|
-
e != null && (e.current =
|
|
2352
|
+
return e(r);
|
|
2353
|
+
e != null && (e.current = r);
|
|
2979
2354
|
}
|
|
2980
|
-
function
|
|
2981
|
-
return (
|
|
2355
|
+
function Pt(...e) {
|
|
2356
|
+
return (r) => {
|
|
2982
2357
|
let t = !1;
|
|
2983
|
-
const o = e.map((
|
|
2984
|
-
const s =
|
|
2358
|
+
const o = e.map((n) => {
|
|
2359
|
+
const s = fe(n, r);
|
|
2985
2360
|
return !t && typeof s == "function" && (t = !0), s;
|
|
2986
2361
|
});
|
|
2987
2362
|
if (t)
|
|
2988
2363
|
return () => {
|
|
2989
|
-
for (let
|
|
2990
|
-
const s = o[
|
|
2991
|
-
typeof s == "function" ? s() :
|
|
2364
|
+
for (let n = 0; n < o.length; n++) {
|
|
2365
|
+
const s = o[n];
|
|
2366
|
+
typeof s == "function" ? s() : fe(e[n], null);
|
|
2992
2367
|
}
|
|
2993
2368
|
};
|
|
2994
2369
|
};
|
|
2995
2370
|
}
|
|
2996
2371
|
// @__NO_SIDE_EFFECTS__
|
|
2997
|
-
function
|
|
2998
|
-
const
|
|
2999
|
-
const { children: s, ...
|
|
3000
|
-
if (
|
|
3001
|
-
const
|
|
3002
|
-
return /* @__PURE__ */
|
|
2372
|
+
function St(e) {
|
|
2373
|
+
const r = /* @__PURE__ */ zt(e), t = k.forwardRef((o, n) => {
|
|
2374
|
+
const { children: s, ...i } = o, a = k.Children.toArray(s), d = a.find(Mt);
|
|
2375
|
+
if (d) {
|
|
2376
|
+
const c = d.props.children, p = a.map((g) => g === d ? k.Children.count(c) > 1 ? k.Children.only(null) : k.isValidElement(c) ? c.props.children : null : g);
|
|
2377
|
+
return /* @__PURE__ */ l(r, { ...i, ref: n, children: k.isValidElement(c) ? k.cloneElement(c, void 0, p) : null });
|
|
3003
2378
|
}
|
|
3004
|
-
return /* @__PURE__ */
|
|
2379
|
+
return /* @__PURE__ */ l(r, { ...i, ref: n, children: s });
|
|
3005
2380
|
});
|
|
3006
2381
|
return t.displayName = `${e}.Slot`, t;
|
|
3007
2382
|
}
|
|
3008
|
-
var
|
|
2383
|
+
var Et = /* @__PURE__ */ St("Slot");
|
|
3009
2384
|
// @__NO_SIDE_EFFECTS__
|
|
3010
|
-
function
|
|
3011
|
-
const
|
|
3012
|
-
const { children:
|
|
3013
|
-
if (
|
|
3014
|
-
const
|
|
3015
|
-
return
|
|
2385
|
+
function zt(e) {
|
|
2386
|
+
const r = k.forwardRef((t, o) => {
|
|
2387
|
+
const { children: n, ...s } = t;
|
|
2388
|
+
if (k.isValidElement(n)) {
|
|
2389
|
+
const i = Rt(n), a = Tt(s, n.props);
|
|
2390
|
+
return n.type !== k.Fragment && (a.ref = o ? Pt(o, i) : i), k.cloneElement(n, a);
|
|
3016
2391
|
}
|
|
3017
|
-
return
|
|
2392
|
+
return k.Children.count(n) > 1 ? k.Children.only(null) : null;
|
|
3018
2393
|
});
|
|
3019
|
-
return
|
|
2394
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
3020
2395
|
}
|
|
3021
|
-
var
|
|
3022
|
-
function
|
|
3023
|
-
return
|
|
2396
|
+
var It = Symbol("radix.slottable");
|
|
2397
|
+
function Mt(e) {
|
|
2398
|
+
return k.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === It;
|
|
3024
2399
|
}
|
|
3025
|
-
function
|
|
3026
|
-
const t = { ...
|
|
3027
|
-
for (const o in
|
|
3028
|
-
const
|
|
3029
|
-
/^on[A-Z]/.test(o) ?
|
|
3030
|
-
const
|
|
3031
|
-
return
|
|
3032
|
-
} :
|
|
2400
|
+
function Tt(e, r) {
|
|
2401
|
+
const t = { ...r };
|
|
2402
|
+
for (const o in r) {
|
|
2403
|
+
const n = e[o], s = r[o];
|
|
2404
|
+
/^on[A-Z]/.test(o) ? n && s ? t[o] = (...a) => {
|
|
2405
|
+
const d = s(...a);
|
|
2406
|
+
return n(...a), d;
|
|
2407
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...s } : o === "className" && (t[o] = [n, s].filter(Boolean).join(" "));
|
|
3033
2408
|
}
|
|
3034
2409
|
return { ...e, ...t };
|
|
3035
2410
|
}
|
|
3036
|
-
function
|
|
3037
|
-
var o,
|
|
3038
|
-
let
|
|
3039
|
-
return t ? e.ref : (
|
|
2411
|
+
function Rt(e) {
|
|
2412
|
+
var o, n;
|
|
2413
|
+
let r = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
2414
|
+
return t ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
3040
2415
|
}
|
|
3041
|
-
const
|
|
2416
|
+
const be = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, me = xe, Se = (e, r) => (t) => {
|
|
3042
2417
|
var o;
|
|
3043
|
-
if ((
|
|
3044
|
-
const { variants:
|
|
3045
|
-
const
|
|
3046
|
-
if (
|
|
3047
|
-
const
|
|
3048
|
-
return
|
|
3049
|
-
}),
|
|
3050
|
-
let [
|
|
3051
|
-
return
|
|
3052
|
-
}, {}),
|
|
3053
|
-
let { class:
|
|
3054
|
-
return Object.entries(
|
|
3055
|
-
let [
|
|
3056
|
-
return Array.isArray(
|
|
2418
|
+
if ((r == null ? void 0 : r.variants) == null) return me(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
2419
|
+
const { variants: n, defaultVariants: s } = r, i = Object.keys(n).map((c) => {
|
|
2420
|
+
const p = t == null ? void 0 : t[c], g = s == null ? void 0 : s[c];
|
|
2421
|
+
if (p === null) return null;
|
|
2422
|
+
const u = be(p) || be(g);
|
|
2423
|
+
return n[c][u];
|
|
2424
|
+
}), a = t && Object.entries(t).reduce((c, p) => {
|
|
2425
|
+
let [g, u] = p;
|
|
2426
|
+
return u === void 0 || (c[g] = u), c;
|
|
2427
|
+
}, {}), d = r == null || (o = r.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((c, p) => {
|
|
2428
|
+
let { class: g, className: u, ...f } = p;
|
|
2429
|
+
return Object.entries(f).every((v) => {
|
|
2430
|
+
let [h, m] = v;
|
|
2431
|
+
return Array.isArray(m) ? m.includes({
|
|
3057
2432
|
...s,
|
|
3058
|
-
...
|
|
3059
|
-
}[
|
|
2433
|
+
...a
|
|
2434
|
+
}[h]) : {
|
|
3060
2435
|
...s,
|
|
3061
|
-
...
|
|
3062
|
-
}[
|
|
2436
|
+
...a
|
|
2437
|
+
}[h] === m;
|
|
3063
2438
|
}) ? [
|
|
3064
|
-
...
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
] :
|
|
2439
|
+
...c,
|
|
2440
|
+
g,
|
|
2441
|
+
u
|
|
2442
|
+
] : c;
|
|
3068
2443
|
}, []);
|
|
3069
|
-
return
|
|
3070
|
-
},
|
|
2444
|
+
return me(e, i, d, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
2445
|
+
}, jt = Se(
|
|
3071
2446
|
"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",
|
|
3072
2447
|
{
|
|
3073
2448
|
variants: {
|
|
@@ -3091,86 +2466,83 @@ const dr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ur = gr, E
|
|
|
3091
2466
|
size: "default"
|
|
3092
2467
|
}
|
|
3093
2468
|
}
|
|
3094
|
-
),
|
|
3095
|
-
({ className: e, variant:
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
}
|
|
3104
|
-
);
|
|
3105
|
-
}
|
|
2469
|
+
), Ee = k.forwardRef(
|
|
2470
|
+
({ className: e, variant: r, size: t, asChild: o = !1, ...n }, s) => /* @__PURE__ */ l(
|
|
2471
|
+
o ? Et : "button",
|
|
2472
|
+
{
|
|
2473
|
+
className: A(jt({ variant: r, size: t, className: e })),
|
|
2474
|
+
ref: s,
|
|
2475
|
+
...n
|
|
2476
|
+
}
|
|
2477
|
+
)
|
|
3106
2478
|
);
|
|
3107
|
-
|
|
3108
|
-
const
|
|
3109
|
-
({ className: e, size:
|
|
2479
|
+
Ee.displayName = "Button";
|
|
2480
|
+
const Z = k.forwardRef(
|
|
2481
|
+
({ className: e, size: r = "md", variant: t = "default", ...o }, n) => {
|
|
3110
2482
|
const s = {
|
|
3111
2483
|
sm: "h-4 w-4",
|
|
3112
2484
|
md: "h-6 w-6",
|
|
3113
2485
|
lg: "h-8 w-8"
|
|
3114
|
-
},
|
|
2486
|
+
}, i = {
|
|
3115
2487
|
default: "border-gray-200 border-t-gray-900",
|
|
3116
2488
|
solana: "border-gray-200 border-t-solana-primary"
|
|
3117
2489
|
};
|
|
3118
|
-
return /* @__PURE__ */
|
|
2490
|
+
return /* @__PURE__ */ l(
|
|
3119
2491
|
"div",
|
|
3120
2492
|
{
|
|
3121
|
-
ref:
|
|
3122
|
-
className:
|
|
2493
|
+
ref: n,
|
|
2494
|
+
className: A(
|
|
3123
2495
|
"inline-block animate-spin rounded-full border-2",
|
|
3124
|
-
s[
|
|
3125
|
-
|
|
2496
|
+
s[r],
|
|
2497
|
+
i[t],
|
|
3126
2498
|
e
|
|
3127
2499
|
),
|
|
3128
2500
|
role: "status",
|
|
3129
2501
|
"aria-label": "Loading",
|
|
3130
2502
|
...o,
|
|
3131
|
-
children: /* @__PURE__ */
|
|
2503
|
+
children: /* @__PURE__ */ l("span", { className: "sr-only", children: "Loading..." })
|
|
3132
2504
|
}
|
|
3133
2505
|
);
|
|
3134
2506
|
}
|
|
3135
2507
|
);
|
|
3136
|
-
|
|
3137
|
-
const
|
|
2508
|
+
Z.displayName = "Spinner";
|
|
2509
|
+
const ze = k.forwardRef(
|
|
3138
2510
|
({
|
|
3139
2511
|
amount: e,
|
|
3140
|
-
description:
|
|
2512
|
+
description: r,
|
|
3141
2513
|
onClick: t,
|
|
3142
2514
|
disabled: o = !1,
|
|
3143
|
-
loading:
|
|
2515
|
+
loading: n = !1,
|
|
3144
2516
|
className: s,
|
|
3145
|
-
style:
|
|
3146
|
-
...
|
|
3147
|
-
},
|
|
3148
|
-
const
|
|
2517
|
+
style: i,
|
|
2518
|
+
...a
|
|
2519
|
+
}, d) => {
|
|
2520
|
+
const c = (p) => new Intl.NumberFormat("en-US", {
|
|
3149
2521
|
style: "currency",
|
|
3150
2522
|
currency: "USD",
|
|
3151
2523
|
minimumFractionDigits: 2
|
|
3152
|
-
}).format(
|
|
3153
|
-
return /* @__PURE__ */
|
|
3154
|
-
|
|
2524
|
+
}).format(p);
|
|
2525
|
+
return /* @__PURE__ */ l(
|
|
2526
|
+
Ee,
|
|
3155
2527
|
{
|
|
3156
|
-
ref:
|
|
2528
|
+
ref: d,
|
|
3157
2529
|
onClick: t,
|
|
3158
|
-
disabled: o ||
|
|
3159
|
-
className:
|
|
2530
|
+
disabled: o || n,
|
|
2531
|
+
className: A(
|
|
3160
2532
|
"w-full bg-solana-gradient hover:opacity-90 text-white font-semibold shadow-lg hover:shadow-xl transition-all duration-200 transform hover:scale-[1.02] rounded-xl",
|
|
3161
|
-
o ||
|
|
2533
|
+
o || n ? "opacity-50 cursor-not-allowed" : "",
|
|
3162
2534
|
s
|
|
3163
2535
|
),
|
|
3164
|
-
style:
|
|
3165
|
-
...
|
|
3166
|
-
children:
|
|
3167
|
-
/* @__PURE__ */
|
|
3168
|
-
/* @__PURE__ */
|
|
3169
|
-
] }) : /* @__PURE__ */
|
|
3170
|
-
/* @__PURE__ */
|
|
3171
|
-
/* @__PURE__ */
|
|
2536
|
+
style: i,
|
|
2537
|
+
...a,
|
|
2538
|
+
children: n ? /* @__PURE__ */ C("div", { className: "flex items-center gap-3", children: [
|
|
2539
|
+
/* @__PURE__ */ l(Z, { size: "sm", variant: "default", className: "border-white/30 border-t-white" }),
|
|
2540
|
+
/* @__PURE__ */ l("span", { children: "Processing Payment..." })
|
|
2541
|
+
] }) : /* @__PURE__ */ C("div", { className: "flex items-center justify-center gap-3", children: [
|
|
2542
|
+
/* @__PURE__ */ l("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm3.5 6L12 10.5 8.5 8 12 5.5 15.5 8zM8.5 16L12 13.5 15.5 16 12 18.5 8.5 16z" }) }),
|
|
2543
|
+
/* @__PURE__ */ C("span", { children: [
|
|
3172
2544
|
"Pay ",
|
|
3173
|
-
|
|
2545
|
+
c(e),
|
|
3174
2546
|
" USDC"
|
|
3175
2547
|
] })
|
|
3176
2548
|
] })
|
|
@@ -3178,8 +2550,8 @@ const Rr = A.forwardRef(
|
|
|
3178
2550
|
);
|
|
3179
2551
|
}
|
|
3180
2552
|
);
|
|
3181
|
-
|
|
3182
|
-
const
|
|
2553
|
+
ze.displayName = "PaymentButton";
|
|
2554
|
+
const Lt = Se(
|
|
3183
2555
|
"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",
|
|
3184
2556
|
{
|
|
3185
2557
|
variants: {
|
|
@@ -3195,17 +2567,17 @@ const sn = Er(
|
|
|
3195
2567
|
}
|
|
3196
2568
|
}
|
|
3197
2569
|
);
|
|
3198
|
-
function
|
|
3199
|
-
return /* @__PURE__ */
|
|
2570
|
+
function Ie({ className: e, variant: r, ...t }) {
|
|
2571
|
+
return /* @__PURE__ */ l("div", { className: A(Lt({ variant: r }), e), ...t });
|
|
3200
2572
|
}
|
|
3201
|
-
const
|
|
2573
|
+
const Me = ({
|
|
3202
2574
|
status: e,
|
|
3203
|
-
message:
|
|
2575
|
+
message: r,
|
|
3204
2576
|
progress: t,
|
|
3205
2577
|
className: o,
|
|
3206
|
-
style:
|
|
2578
|
+
style: n
|
|
3207
2579
|
}) => {
|
|
3208
|
-
const
|
|
2580
|
+
const i = (() => {
|
|
3209
2581
|
switch (e) {
|
|
3210
2582
|
case "idle":
|
|
3211
2583
|
return {
|
|
@@ -3217,26 +2589,26 @@ const _r = ({
|
|
|
3217
2589
|
return {
|
|
3218
2590
|
label: "Connecting",
|
|
3219
2591
|
color: "bg-blue-100 text-blue-800",
|
|
3220
|
-
icon: /* @__PURE__ */
|
|
2592
|
+
icon: /* @__PURE__ */ l(Z, { size: "sm", variant: "default" })
|
|
3221
2593
|
};
|
|
3222
2594
|
case "pending":
|
|
3223
2595
|
return {
|
|
3224
2596
|
label: "Processing",
|
|
3225
2597
|
color: "bg-yellow-100 text-yellow-800",
|
|
3226
|
-
icon: /* @__PURE__ */
|
|
2598
|
+
icon: /* @__PURE__ */ l(Z, { size: "sm", variant: "solana" })
|
|
3227
2599
|
};
|
|
3228
2600
|
case "success":
|
|
3229
2601
|
return {
|
|
3230
2602
|
label: "Paid",
|
|
3231
2603
|
color: "bg-green-100 text-green-800",
|
|
3232
|
-
icon: /* @__PURE__ */
|
|
2604
|
+
icon: /* @__PURE__ */ l(
|
|
3233
2605
|
"svg",
|
|
3234
2606
|
{
|
|
3235
2607
|
className: "w-4 h-4",
|
|
3236
2608
|
fill: "none",
|
|
3237
2609
|
stroke: "currentColor",
|
|
3238
2610
|
viewBox: "0 0 24 24",
|
|
3239
|
-
children: /* @__PURE__ */
|
|
2611
|
+
children: /* @__PURE__ */ l(
|
|
3240
2612
|
"path",
|
|
3241
2613
|
{
|
|
3242
2614
|
strokeLinecap: "round",
|
|
@@ -3252,14 +2624,14 @@ const _r = ({
|
|
|
3252
2624
|
return {
|
|
3253
2625
|
label: "Failed",
|
|
3254
2626
|
color: "bg-red-100 text-red-800",
|
|
3255
|
-
icon: /* @__PURE__ */
|
|
2627
|
+
icon: /* @__PURE__ */ l(
|
|
3256
2628
|
"svg",
|
|
3257
2629
|
{
|
|
3258
2630
|
className: "w-4 h-4",
|
|
3259
2631
|
fill: "none",
|
|
3260
2632
|
stroke: "currentColor",
|
|
3261
2633
|
viewBox: "0 0 24 24",
|
|
3262
|
-
children: /* @__PURE__ */
|
|
2634
|
+
children: /* @__PURE__ */ l(
|
|
3263
2635
|
"path",
|
|
3264
2636
|
{
|
|
3265
2637
|
strokeLinecap: "round",
|
|
@@ -3279,15 +2651,15 @@ const _r = ({
|
|
|
3279
2651
|
};
|
|
3280
2652
|
}
|
|
3281
2653
|
})();
|
|
3282
|
-
return /* @__PURE__ */
|
|
3283
|
-
/* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */
|
|
3285
|
-
|
|
3286
|
-
/* @__PURE__ */
|
|
2654
|
+
return /* @__PURE__ */ C("div", { className: A("flex flex-col gap-2", o), style: n, children: [
|
|
2655
|
+
/* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
2656
|
+
/* @__PURE__ */ C(Ie, { className: A("flex items-center gap-1.5", i.color), children: [
|
|
2657
|
+
i.icon,
|
|
2658
|
+
/* @__PURE__ */ l("span", { children: i.label })
|
|
3287
2659
|
] }),
|
|
3288
|
-
|
|
2660
|
+
r && /* @__PURE__ */ l("span", { className: "text-sm text-muted-foreground", children: r })
|
|
3289
2661
|
] }),
|
|
3290
|
-
t !== void 0 && t > 0 && /* @__PURE__ */
|
|
2662
|
+
t !== void 0 && t > 0 && /* @__PURE__ */ l("div", { className: "w-full bg-gray-200 rounded-full h-2 overflow-hidden", children: /* @__PURE__ */ l(
|
|
3291
2663
|
"div",
|
|
3292
2664
|
{
|
|
3293
2665
|
className: "bg-solana-gradient h-full transition-all duration-300",
|
|
@@ -3296,310 +2668,310 @@ const _r = ({
|
|
|
3296
2668
|
) })
|
|
3297
2669
|
] });
|
|
3298
2670
|
};
|
|
3299
|
-
|
|
3300
|
-
const
|
|
2671
|
+
Me.displayName = "PaymentStatus";
|
|
2672
|
+
const Te = ({
|
|
3301
2673
|
wallet: e,
|
|
3302
|
-
balance:
|
|
2674
|
+
balance: r,
|
|
3303
2675
|
network: t,
|
|
3304
2676
|
showBalance: o = !0,
|
|
3305
|
-
className:
|
|
2677
|
+
className: n,
|
|
3306
2678
|
style: s
|
|
3307
2679
|
}) => {
|
|
3308
|
-
var
|
|
3309
|
-
const
|
|
3310
|
-
return !e || !
|
|
3311
|
-
/* @__PURE__ */
|
|
3312
|
-
/* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3314
|
-
/* @__PURE__ */
|
|
2680
|
+
var c;
|
|
2681
|
+
const i = ((c = e == null ? void 0 : e.publicKey) == null ? void 0 : c.toString()) || (e == null ? void 0 : e.address), a = (p) => `${p.slice(0, 4)}...${p.slice(-4)}`, d = () => t === "solana" ? "Mainnet" : "Devnet";
|
|
2682
|
+
return !e || !i ? /* @__PURE__ */ l(oe, { className: A("border-dashed", n), style: s, children: /* @__PURE__ */ l(ne, { className: "p-4 text-center text-muted-foreground", children: /* @__PURE__ */ l("p", { className: "text-sm", children: "No wallet connected" }) }) }) : /* @__PURE__ */ l("div", { className: A("bg-slate-50 rounded-lg p-4 border border-slate-200", n), style: s, children: /* @__PURE__ */ C("div", { className: "space-y-3", children: [
|
|
2683
|
+
/* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
|
|
2684
|
+
/* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
2685
|
+
/* @__PURE__ */ l("div", { className: "w-2 h-2 bg-green-500 rounded-full" }),
|
|
2686
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "Connected Wallet" })
|
|
3315
2687
|
] }),
|
|
3316
|
-
/* @__PURE__ */
|
|
2688
|
+
/* @__PURE__ */ l("code", { className: "text-sm font-mono bg-white px-3 py-1.5 rounded-md border border-slate-300 text-slate-800", children: a(i) })
|
|
3317
2689
|
] }),
|
|
3318
|
-
o &&
|
|
3319
|
-
/* @__PURE__ */
|
|
3320
|
-
/* @__PURE__ */
|
|
3321
|
-
/* @__PURE__ */
|
|
3322
|
-
/* @__PURE__ */
|
|
2690
|
+
o && r && /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
|
|
2691
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "USDC Balance" }),
|
|
2692
|
+
/* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
|
|
2693
|
+
/* @__PURE__ */ l("span", { className: "text-lg font-bold text-slate-900", children: r }),
|
|
2694
|
+
/* @__PURE__ */ l("span", { className: "text-xs font-semibold text-slate-500 bg-slate-200 px-2 py-1 rounded-md", children: "USDC" })
|
|
3323
2695
|
] })
|
|
3324
2696
|
] }),
|
|
3325
|
-
t && /* @__PURE__ */
|
|
3326
|
-
/* @__PURE__ */
|
|
3327
|
-
/* @__PURE__ */
|
|
2697
|
+
t && /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
|
|
2698
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "Network" }),
|
|
2699
|
+
/* @__PURE__ */ l(Ie, { variant: "outline", className: "text-xs border-slate-300 text-slate-700", children: d() })
|
|
3328
2700
|
] })
|
|
3329
2701
|
] }) });
|
|
3330
2702
|
};
|
|
3331
|
-
|
|
3332
|
-
function
|
|
3333
|
-
const o = Buffer.from(e.serialize()).toString("base64"),
|
|
2703
|
+
Te.displayName = "WalletSection";
|
|
2704
|
+
function Gt(e, r, t) {
|
|
2705
|
+
const o = Buffer.from(e.serialize()).toString("base64"), n = {
|
|
3334
2706
|
x402Version: t,
|
|
3335
|
-
scheme:
|
|
3336
|
-
network:
|
|
2707
|
+
scheme: r.scheme,
|
|
2708
|
+
network: r.network,
|
|
3337
2709
|
payload: {
|
|
3338
2710
|
transaction: o
|
|
3339
2711
|
}
|
|
3340
2712
|
};
|
|
3341
|
-
return Buffer.from(JSON.stringify(
|
|
2713
|
+
return Buffer.from(JSON.stringify(n)).toString("base64");
|
|
3342
2714
|
}
|
|
3343
|
-
function
|
|
2715
|
+
function Bt(e) {
|
|
3344
2716
|
if (e === "solana")
|
|
3345
2717
|
return "https://api.mainnet-beta.solana.com";
|
|
3346
2718
|
if (e === "solana-devnet")
|
|
3347
2719
|
return "https://api.devnet.solana.com";
|
|
3348
2720
|
throw new Error(`Unexpected network: ${e}`);
|
|
3349
2721
|
}
|
|
3350
|
-
async function
|
|
3351
|
-
var
|
|
3352
|
-
const
|
|
2722
|
+
async function Ut(e, r, t, o) {
|
|
2723
|
+
var U, R, T;
|
|
2724
|
+
const n = new ge(o, "confirmed"), s = (U = t == null ? void 0 : t.extra) == null ? void 0 : U.feePayer;
|
|
3353
2725
|
if (typeof s != "string" || !s)
|
|
3354
2726
|
throw new Error("Missing facilitator feePayer in payment requirements (extra.feePayer).");
|
|
3355
|
-
const
|
|
3356
|
-
if (!
|
|
2727
|
+
const i = new V(s), a = ((R = e == null ? void 0 : e.publicKey) == null ? void 0 : R.toString()) || (e == null ? void 0 : e.address);
|
|
2728
|
+
if (!a)
|
|
3357
2729
|
throw new Error("Missing connected Solana wallet address or publicKey");
|
|
3358
|
-
const
|
|
2730
|
+
const d = new V(a);
|
|
3359
2731
|
if (!(t != null && t.payTo))
|
|
3360
2732
|
throw new Error("Missing payTo in payment requirements");
|
|
3361
|
-
const
|
|
3362
|
-
if (
|
|
3363
|
-
|
|
2733
|
+
const c = new V(t.payTo), p = [];
|
|
2734
|
+
if (p.push(
|
|
2735
|
+
ce.setComputeUnitLimit({
|
|
3364
2736
|
units: 4e4
|
|
3365
2737
|
// Sufficient for SPL token transfer + ATA creation
|
|
3366
2738
|
})
|
|
3367
|
-
),
|
|
3368
|
-
|
|
2739
|
+
), p.push(
|
|
2740
|
+
ce.setComputeUnitPrice({
|
|
3369
2741
|
microLamports: 1
|
|
3370
2742
|
// Minimal price
|
|
3371
2743
|
})
|
|
3372
2744
|
), !t.asset)
|
|
3373
2745
|
throw new Error("Missing token mint for SPL transfer");
|
|
3374
|
-
const
|
|
3375
|
-
|
|
3376
|
-
|
|
2746
|
+
const g = new V(t.asset), u = await n.getAccountInfo(g, "confirmed"), f = ((T = u == null ? void 0 : u.owner) == null ? void 0 : T.toBase58()) === de.toBase58() ? de : We, v = await _e(n, g, void 0, f), h = await ee(
|
|
2747
|
+
g,
|
|
2748
|
+
d,
|
|
3377
2749
|
!1,
|
|
3378
|
-
|
|
3379
|
-
),
|
|
3380
|
-
|
|
3381
|
-
|
|
2750
|
+
f
|
|
2751
|
+
), m = await ee(
|
|
2752
|
+
g,
|
|
2753
|
+
c,
|
|
3382
2754
|
!1,
|
|
3383
|
-
|
|
2755
|
+
f
|
|
3384
2756
|
);
|
|
3385
|
-
if (!await
|
|
2757
|
+
if (!await n.getAccountInfo(h, "confirmed"))
|
|
3386
2758
|
throw new Error(
|
|
3387
2759
|
`User does not have an Associated Token Account for ${t.asset}. Please create one first or ensure you have the required token.`
|
|
3388
2760
|
);
|
|
3389
|
-
if (!await
|
|
3390
|
-
const
|
|
2761
|
+
if (!await n.getAccountInfo(m, "confirmed")) {
|
|
2762
|
+
const S = new V(
|
|
3391
2763
|
"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
3392
|
-
),
|
|
2764
|
+
), x = new Ge({
|
|
3393
2765
|
keys: [
|
|
3394
|
-
{ pubkey:
|
|
3395
|
-
{ pubkey:
|
|
3396
|
-
{ pubkey:
|
|
3397
|
-
{ pubkey:
|
|
3398
|
-
{ pubkey:
|
|
3399
|
-
{ pubkey:
|
|
2766
|
+
{ pubkey: i, isSigner: !0, isWritable: !0 },
|
|
2767
|
+
{ pubkey: m, isSigner: !1, isWritable: !0 },
|
|
2768
|
+
{ pubkey: c, isSigner: !1, isWritable: !1 },
|
|
2769
|
+
{ pubkey: g, isSigner: !1, isWritable: !1 },
|
|
2770
|
+
{ pubkey: Be.programId, isSigner: !1, isWritable: !1 },
|
|
2771
|
+
{ pubkey: f, isSigner: !1, isWritable: !1 }
|
|
3400
2772
|
],
|
|
3401
|
-
programId:
|
|
2773
|
+
programId: S,
|
|
3402
2774
|
data: Buffer.from([0])
|
|
3403
2775
|
// CreateATA discriminator
|
|
3404
2776
|
});
|
|
3405
|
-
|
|
2777
|
+
p.push(x);
|
|
3406
2778
|
}
|
|
3407
|
-
const
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
E,
|
|
2779
|
+
const P = BigInt(t.maxAmountRequired);
|
|
2780
|
+
p.push(
|
|
2781
|
+
$e(
|
|
3411
2782
|
h,
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
2783
|
+
g,
|
|
2784
|
+
m,
|
|
2785
|
+
d,
|
|
2786
|
+
P,
|
|
2787
|
+
v.decimals,
|
|
3416
2788
|
[],
|
|
3417
|
-
|
|
2789
|
+
f
|
|
3418
2790
|
)
|
|
3419
2791
|
);
|
|
3420
|
-
const { blockhash:
|
|
3421
|
-
payerKey:
|
|
3422
|
-
recentBlockhash:
|
|
3423
|
-
instructions:
|
|
3424
|
-
}).compileToV0Message(),
|
|
2792
|
+
const { blockhash: E } = await n.getLatestBlockhash("confirmed"), I = new Ue({
|
|
2793
|
+
payerKey: i,
|
|
2794
|
+
recentBlockhash: E,
|
|
2795
|
+
instructions: p
|
|
2796
|
+
}).compileToV0Message(), M = new Oe(I);
|
|
3425
2797
|
if (typeof (e == null ? void 0 : e.signTransaction) != "function")
|
|
3426
2798
|
throw new Error("Connected wallet does not support signTransaction");
|
|
3427
|
-
const
|
|
3428
|
-
return
|
|
3429
|
-
|
|
2799
|
+
const z = await e.signTransaction(M);
|
|
2800
|
+
return Gt(
|
|
2801
|
+
z,
|
|
3430
2802
|
t,
|
|
3431
|
-
|
|
2803
|
+
r
|
|
3432
2804
|
);
|
|
3433
2805
|
}
|
|
3434
|
-
function
|
|
3435
|
-
return async (
|
|
3436
|
-
const
|
|
3437
|
-
if (
|
|
3438
|
-
return
|
|
3439
|
-
const
|
|
3440
|
-
(
|
|
2806
|
+
function Ot(e, r, t, o = BigInt(0)) {
|
|
2807
|
+
return async (n, s) => {
|
|
2808
|
+
const i = await e(n, s);
|
|
2809
|
+
if (i.status !== 402)
|
|
2810
|
+
return i;
|
|
2811
|
+
const a = await i.json(), d = a.x402Version, c = a.accepts || [], p = c.find(
|
|
2812
|
+
(f) => f.scheme === "exact" && (f.network === "solana-devnet" || f.network === "solana")
|
|
3441
2813
|
);
|
|
3442
|
-
if (!
|
|
2814
|
+
if (!p)
|
|
3443
2815
|
throw console.error(
|
|
3444
2816
|
"❌ No suitable Solana payment requirements found. Available networks:",
|
|
3445
|
-
|
|
2817
|
+
c.map((f) => f.network)
|
|
3446
2818
|
), new Error("No suitable Solana payment requirements found");
|
|
3447
|
-
if (o > BigInt(0) && BigInt(
|
|
2819
|
+
if (o > BigInt(0) && BigInt(p.maxAmountRequired) > o)
|
|
3448
2820
|
throw new Error("Payment amount exceeds maximum allowed");
|
|
3449
|
-
const
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
2821
|
+
const g = await Ut(
|
|
2822
|
+
r,
|
|
2823
|
+
d,
|
|
2824
|
+
p,
|
|
3453
2825
|
t
|
|
3454
|
-
),
|
|
2826
|
+
), u = {
|
|
3455
2827
|
...s,
|
|
3456
2828
|
headers: {
|
|
3457
2829
|
...(s == null ? void 0 : s.headers) || {},
|
|
3458
|
-
"X-PAYMENT":
|
|
2830
|
+
"X-PAYMENT": g,
|
|
3459
2831
|
"Access-Control-Expose-Headers": "X-PAYMENT-RESPONSE"
|
|
3460
2832
|
}
|
|
3461
2833
|
};
|
|
3462
|
-
return await e(
|
|
2834
|
+
return await e(n, u);
|
|
3463
2835
|
};
|
|
3464
2836
|
}
|
|
3465
|
-
var
|
|
2837
|
+
var Vt = class {
|
|
3466
2838
|
constructor(e) {
|
|
3467
|
-
|
|
3468
|
-
const
|
|
3469
|
-
this.paymentFetch =
|
|
2839
|
+
ie(this, "paymentFetch");
|
|
2840
|
+
const r = e.rpcUrl || Bt(e.network);
|
|
2841
|
+
this.paymentFetch = Ot(
|
|
3470
2842
|
fetch.bind(window),
|
|
3471
2843
|
e.wallet,
|
|
3472
|
-
|
|
2844
|
+
r,
|
|
3473
2845
|
e.maxPaymentAmount || BigInt(0)
|
|
3474
2846
|
);
|
|
3475
2847
|
}
|
|
3476
2848
|
/**
|
|
3477
2849
|
* Make a fetch request with automatic x402 payment handling
|
|
3478
2850
|
*/
|
|
3479
|
-
async fetch(e,
|
|
3480
|
-
return this.paymentFetch(e,
|
|
2851
|
+
async fetch(e, r) {
|
|
2852
|
+
return this.paymentFetch(e, r);
|
|
3481
2853
|
}
|
|
3482
2854
|
};
|
|
3483
|
-
function
|
|
3484
|
-
return new
|
|
2855
|
+
function Wt(e) {
|
|
2856
|
+
return new Vt(e);
|
|
3485
2857
|
}
|
|
3486
|
-
function
|
|
3487
|
-
const [
|
|
3488
|
-
t("idle"),
|
|
2858
|
+
function _t(e) {
|
|
2859
|
+
const [r, t] = $("idle"), [o, n] = $(null), [s, i] = $(null), [a, d] = $(!1), c = le(() => {
|
|
2860
|
+
t("idle"), n(null), i(null), d(!1);
|
|
3489
2861
|
}, []);
|
|
3490
2862
|
return {
|
|
3491
|
-
pay:
|
|
3492
|
-
async (
|
|
3493
|
-
var
|
|
2863
|
+
pay: le(
|
|
2864
|
+
async (g, u) => {
|
|
2865
|
+
var f;
|
|
3494
2866
|
try {
|
|
3495
|
-
if (
|
|
2867
|
+
if (d(!0), t("pending"), n(null), e.maxPaymentAmount && g > e.maxPaymentAmount)
|
|
3496
2868
|
throw new Error(
|
|
3497
|
-
`Payment amount ${
|
|
2869
|
+
`Payment amount ${g} exceeds maximum allowed ${e.maxPaymentAmount}`
|
|
3498
2870
|
);
|
|
3499
|
-
const
|
|
3500
|
-
if (!
|
|
2871
|
+
const v = ((f = e.wallet.publicKey) == null ? void 0 : f.toString()) || e.wallet.address;
|
|
2872
|
+
if (!v)
|
|
3501
2873
|
throw new Error("Wallet not connected");
|
|
3502
|
-
const
|
|
2874
|
+
const h = Wt({
|
|
3503
2875
|
wallet: e.wallet,
|
|
3504
2876
|
network: e.network,
|
|
3505
2877
|
rpcUrl: e.rpcUrl,
|
|
3506
2878
|
maxPaymentAmount: e.maxPaymentAmount ? BigInt(Math.floor(e.maxPaymentAmount * 1e6)) : void 0
|
|
3507
|
-
}),
|
|
2879
|
+
}), m = "https://x402.payai.network/api/solana/paid-content", y = e.apiEndpoint || m;
|
|
3508
2880
|
console.log("Initiating x402 payment:", {
|
|
3509
|
-
endpoint:
|
|
3510
|
-
isDemo:
|
|
3511
|
-
amount:
|
|
3512
|
-
description:
|
|
3513
|
-
wallet:
|
|
2881
|
+
endpoint: y,
|
|
2882
|
+
isDemo: y === m,
|
|
2883
|
+
amount: g,
|
|
2884
|
+
description: u,
|
|
2885
|
+
wallet: v,
|
|
3514
2886
|
network: e.network
|
|
3515
2887
|
});
|
|
3516
|
-
const
|
|
2888
|
+
const P = await h.fetch(y, {
|
|
3517
2889
|
method: "POST",
|
|
3518
2890
|
headers: {
|
|
3519
2891
|
"Content-Type": "application/json"
|
|
3520
2892
|
},
|
|
3521
2893
|
body: JSON.stringify({
|
|
3522
|
-
message:
|
|
3523
|
-
amount:
|
|
2894
|
+
message: u,
|
|
2895
|
+
amount: g
|
|
3524
2896
|
})
|
|
3525
2897
|
});
|
|
3526
|
-
if (!
|
|
3527
|
-
throw new Error(`Payment request failed: ${
|
|
3528
|
-
const
|
|
3529
|
-
console.log("Payment successful:",
|
|
3530
|
-
const
|
|
3531
|
-
let
|
|
3532
|
-
if (
|
|
2898
|
+
if (!P.ok)
|
|
2899
|
+
throw new Error(`Payment request failed: ${P.statusText}`);
|
|
2900
|
+
const E = await P.json();
|
|
2901
|
+
console.log("Payment successful:", E);
|
|
2902
|
+
const I = P.headers.get("X-PAYMENT-RESPONSE");
|
|
2903
|
+
let M = `tx_${Date.now()}`;
|
|
2904
|
+
if (I)
|
|
3533
2905
|
try {
|
|
3534
|
-
const
|
|
3535
|
-
|
|
3536
|
-
} catch (
|
|
3537
|
-
console.warn("Could not decode payment response:",
|
|
2906
|
+
const z = JSON.parse(atob(I));
|
|
2907
|
+
M = z.transactionId || z.signature || M, console.log("Payment details:", z);
|
|
2908
|
+
} catch (z) {
|
|
2909
|
+
console.warn("Could not decode payment response:", z);
|
|
3538
2910
|
}
|
|
3539
|
-
return
|
|
3540
|
-
} catch (
|
|
3541
|
-
const
|
|
3542
|
-
return
|
|
2911
|
+
return i(M), t("success"), d(!1), M;
|
|
2912
|
+
} catch (v) {
|
|
2913
|
+
const h = v instanceof Error ? v : new Error("Payment failed");
|
|
2914
|
+
return n(h), t("error"), d(!1), null;
|
|
3543
2915
|
}
|
|
3544
2916
|
},
|
|
3545
2917
|
[e]
|
|
3546
2918
|
),
|
|
3547
|
-
isLoading:
|
|
3548
|
-
status:
|
|
2919
|
+
isLoading: a,
|
|
2920
|
+
status: r,
|
|
3549
2921
|
error: o,
|
|
3550
2922
|
transactionId: s,
|
|
3551
|
-
reset:
|
|
2923
|
+
reset: c
|
|
3552
2924
|
};
|
|
3553
2925
|
}
|
|
3554
|
-
const
|
|
2926
|
+
const $t = ({
|
|
3555
2927
|
amount: e,
|
|
3556
|
-
description:
|
|
2928
|
+
description: r,
|
|
3557
2929
|
wallet: t,
|
|
3558
2930
|
network: o = "solana-devnet",
|
|
3559
|
-
rpcUrl:
|
|
2931
|
+
rpcUrl: n,
|
|
3560
2932
|
apiEndpoint: s,
|
|
3561
|
-
treasuryAddress:
|
|
3562
|
-
facilitatorUrl:
|
|
3563
|
-
theme:
|
|
3564
|
-
showBalance:
|
|
3565
|
-
showNetworkInfo:
|
|
3566
|
-
showPaymentDetails:
|
|
3567
|
-
classNames:
|
|
3568
|
-
customStyles:
|
|
3569
|
-
maxPaymentAmount:
|
|
2933
|
+
treasuryAddress: i,
|
|
2934
|
+
facilitatorUrl: a,
|
|
2935
|
+
theme: d = "solana",
|
|
2936
|
+
showBalance: c = !0,
|
|
2937
|
+
showNetworkInfo: p = !0,
|
|
2938
|
+
showPaymentDetails: g = !0,
|
|
2939
|
+
classNames: u,
|
|
2940
|
+
customStyles: f,
|
|
2941
|
+
maxPaymentAmount: v,
|
|
3570
2942
|
// enablePaymentCaching = false, // TODO: Implement in future
|
|
3571
2943
|
// autoRetry = false, // TODO: Implement in future
|
|
3572
|
-
onPaymentStart:
|
|
3573
|
-
onPaymentSuccess:
|
|
3574
|
-
onPaymentError:
|
|
3575
|
-
onWalletConnect:
|
|
3576
|
-
children:
|
|
2944
|
+
onPaymentStart: h,
|
|
2945
|
+
onPaymentSuccess: m,
|
|
2946
|
+
onPaymentError: y,
|
|
2947
|
+
onWalletConnect: N,
|
|
2948
|
+
children: P
|
|
3577
2949
|
}) => {
|
|
3578
|
-
const [
|
|
2950
|
+
const [E, I] = $(!1), [M, z] = $("0.00"), { pay: U, isLoading: R, status: T, error: S, transactionId: x } = _t({
|
|
3579
2951
|
wallet: t,
|
|
3580
2952
|
network: o,
|
|
3581
|
-
rpcUrl:
|
|
2953
|
+
rpcUrl: n,
|
|
3582
2954
|
apiEndpoint: s,
|
|
3583
|
-
treasuryAddress:
|
|
3584
|
-
facilitatorUrl:
|
|
3585
|
-
maxPaymentAmount:
|
|
2955
|
+
treasuryAddress: i,
|
|
2956
|
+
facilitatorUrl: a,
|
|
2957
|
+
maxPaymentAmount: v
|
|
3586
2958
|
});
|
|
3587
|
-
|
|
3588
|
-
var
|
|
3589
|
-
const
|
|
3590
|
-
|
|
3591
|
-
}, [t, o,
|
|
3592
|
-
|
|
3593
|
-
}, [
|
|
3594
|
-
|
|
3595
|
-
}, [
|
|
3596
|
-
const
|
|
3597
|
-
|
|
2959
|
+
Q(() => {
|
|
2960
|
+
var O;
|
|
2961
|
+
const _ = ((O = t.publicKey) == null ? void 0 : O.toString()) || t.address;
|
|
2962
|
+
_ && (N == null || N(_), He(_, o, n).then(z));
|
|
2963
|
+
}, [t, o, N]), Q(() => {
|
|
2964
|
+
T === "success" && x && (I(!0), m == null || m(x));
|
|
2965
|
+
}, [T, x, m]), Q(() => {
|
|
2966
|
+
S && (y == null || y(S));
|
|
2967
|
+
}, [S, y]);
|
|
2968
|
+
const J = async () => {
|
|
2969
|
+
h == null || h(), await U(e, r);
|
|
3598
2970
|
};
|
|
3599
|
-
if (
|
|
3600
|
-
return /* @__PURE__ */
|
|
2971
|
+
if (E)
|
|
2972
|
+
return /* @__PURE__ */ l(Le, { children: P });
|
|
3601
2973
|
const W = () => {
|
|
3602
|
-
switch (
|
|
2974
|
+
switch (d) {
|
|
3603
2975
|
case "solana":
|
|
3604
2976
|
return "border-solana-primary/20";
|
|
3605
2977
|
case "dark":
|
|
@@ -3610,90 +2982,90 @@ const gn = ({
|
|
|
3610
2982
|
return "";
|
|
3611
2983
|
}
|
|
3612
2984
|
};
|
|
3613
|
-
return /* @__PURE__ */
|
|
2985
|
+
return /* @__PURE__ */ l(
|
|
3614
2986
|
"div",
|
|
3615
2987
|
{
|
|
3616
|
-
className:
|
|
2988
|
+
className: A(
|
|
3617
2989
|
"flex items-center justify-center min-h-screen p-4",
|
|
3618
2990
|
"bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",
|
|
3619
|
-
|
|
2991
|
+
u == null ? void 0 : u.container
|
|
3620
2992
|
),
|
|
3621
|
-
style:
|
|
3622
|
-
children: /* @__PURE__ */
|
|
3623
|
-
|
|
2993
|
+
style: f == null ? void 0 : f.container,
|
|
2994
|
+
children: /* @__PURE__ */ C(
|
|
2995
|
+
oe,
|
|
3624
2996
|
{
|
|
3625
|
-
className:
|
|
2997
|
+
className: A(
|
|
3626
2998
|
"w-full max-w-lg shadow-2xl border-0 bg-white/95 backdrop-blur-sm",
|
|
3627
2999
|
W(),
|
|
3628
|
-
|
|
3000
|
+
u == null ? void 0 : u.card
|
|
3629
3001
|
),
|
|
3630
|
-
style:
|
|
3002
|
+
style: f == null ? void 0 : f.card,
|
|
3631
3003
|
children: [
|
|
3632
|
-
/* @__PURE__ */
|
|
3633
|
-
/* @__PURE__ */
|
|
3634
|
-
/* @__PURE__ */
|
|
3635
|
-
/* @__PURE__ */
|
|
3004
|
+
/* @__PURE__ */ C(Ne, { className: "text-center pb-6", children: [
|
|
3005
|
+
/* @__PURE__ */ l("div", { className: "mx-auto w-16 h-16 bg-solana-gradient rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ l("svg", { className: "w-8 h-8 text-white", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) }) }),
|
|
3006
|
+
/* @__PURE__ */ l(Ae, { className: A("text-3xl font-bold bg-solana-gradient bg-clip-text text-transparent", u == null ? void 0 : u.text), style: f == null ? void 0 : f.text, children: "Unlock Premium Access" }),
|
|
3007
|
+
/* @__PURE__ */ l(Pe, { className: "text-lg text-slate-600 mt-2", children: r })
|
|
3636
3008
|
] }),
|
|
3637
|
-
/* @__PURE__ */
|
|
3638
|
-
/* @__PURE__ */
|
|
3639
|
-
|
|
3009
|
+
/* @__PURE__ */ C(ne, { className: "space-y-6", children: [
|
|
3010
|
+
/* @__PURE__ */ l(
|
|
3011
|
+
Te,
|
|
3640
3012
|
{
|
|
3641
3013
|
wallet: t,
|
|
3642
|
-
balance:
|
|
3643
|
-
network:
|
|
3644
|
-
showBalance:
|
|
3014
|
+
balance: c ? M : void 0,
|
|
3015
|
+
network: p ? o : void 0,
|
|
3016
|
+
showBalance: c
|
|
3645
3017
|
}
|
|
3646
3018
|
),
|
|
3647
|
-
|
|
3648
|
-
/* @__PURE__ */
|
|
3649
|
-
/* @__PURE__ */
|
|
3650
|
-
/* @__PURE__ */
|
|
3019
|
+
g && /* @__PURE__ */ C("div", { className: "bg-gradient-to-r from-slate-50 to-slate-100 rounded-xl p-6 border border-slate-200", children: [
|
|
3020
|
+
/* @__PURE__ */ C("div", { className: "flex justify-between items-center mb-2", children: [
|
|
3021
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-slate-600", children: "Payment Amount" }),
|
|
3022
|
+
/* @__PURE__ */ C("span", { className: "text-2xl font-bold text-slate-900", children: [
|
|
3651
3023
|
"$",
|
|
3652
3024
|
e.toFixed(2)
|
|
3653
3025
|
] })
|
|
3654
3026
|
] }),
|
|
3655
|
-
/* @__PURE__ */
|
|
3656
|
-
/* @__PURE__ */
|
|
3657
|
-
/* @__PURE__ */
|
|
3027
|
+
/* @__PURE__ */ C("div", { className: "flex justify-between items-center", children: [
|
|
3028
|
+
/* @__PURE__ */ l("span", { className: "text-xs text-slate-500", children: "Currency" }),
|
|
3029
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-semibold text-slate-700 bg-slate-200 px-2 py-1 rounded-md", children: "USDC" })
|
|
3658
3030
|
] }),
|
|
3659
|
-
|
|
3660
|
-
/* @__PURE__ */
|
|
3661
|
-
/* @__PURE__ */
|
|
3031
|
+
v && /* @__PURE__ */ C("div", { className: "flex justify-between items-center mt-2", children: [
|
|
3032
|
+
/* @__PURE__ */ l("span", { className: "text-xs text-slate-500", children: "Maximum Amount" }),
|
|
3033
|
+
/* @__PURE__ */ C("span", { className: "text-xs text-slate-600", children: [
|
|
3662
3034
|
"$",
|
|
3663
|
-
|
|
3035
|
+
v.toFixed(2)
|
|
3664
3036
|
] })
|
|
3665
3037
|
] })
|
|
3666
3038
|
] }),
|
|
3667
|
-
|
|
3668
|
-
|
|
3039
|
+
T !== "idle" && /* @__PURE__ */ l(
|
|
3040
|
+
Me,
|
|
3669
3041
|
{
|
|
3670
|
-
status:
|
|
3671
|
-
message:
|
|
3672
|
-
className:
|
|
3673
|
-
style:
|
|
3042
|
+
status: T,
|
|
3043
|
+
message: S == null ? void 0 : S.message,
|
|
3044
|
+
className: u == null ? void 0 : u.status,
|
|
3045
|
+
style: f == null ? void 0 : f.status
|
|
3674
3046
|
}
|
|
3675
3047
|
),
|
|
3676
|
-
/* @__PURE__ */
|
|
3677
|
-
|
|
3048
|
+
/* @__PURE__ */ l(
|
|
3049
|
+
ze,
|
|
3678
3050
|
{
|
|
3679
3051
|
amount: e,
|
|
3680
|
-
description:
|
|
3681
|
-
onClick:
|
|
3682
|
-
loading:
|
|
3683
|
-
disabled:
|
|
3684
|
-
className:
|
|
3685
|
-
style:
|
|
3052
|
+
description: r,
|
|
3053
|
+
onClick: J,
|
|
3054
|
+
loading: R,
|
|
3055
|
+
disabled: R,
|
|
3056
|
+
className: A("w-full h-12 text-lg font-semibold", u == null ? void 0 : u.button),
|
|
3057
|
+
style: f == null ? void 0 : f.button
|
|
3686
3058
|
}
|
|
3687
3059
|
),
|
|
3688
|
-
|
|
3689
|
-
/* @__PURE__ */
|
|
3060
|
+
S && /* @__PURE__ */ l("div", { className: "bg-red-50 border border-red-200 rounded-lg p-4", children: /* @__PURE__ */ C("p", { className: "text-sm text-red-800 text-center", children: [
|
|
3061
|
+
/* @__PURE__ */ l("span", { className: "font-semibold", children: "Payment Error:" }),
|
|
3690
3062
|
" ",
|
|
3691
|
-
|
|
3063
|
+
S.message
|
|
3692
3064
|
] }) }),
|
|
3693
|
-
/* @__PURE__ */
|
|
3694
|
-
/* @__PURE__ */
|
|
3065
|
+
/* @__PURE__ */ l("div", { className: "bg-amber-50 border border-amber-200 rounded-lg p-4", children: /* @__PURE__ */ C("p", { className: "text-xs text-amber-800 text-center", children: [
|
|
3066
|
+
/* @__PURE__ */ l("span", { className: "font-semibold", children: "Live Payments:" }),
|
|
3695
3067
|
" Uses PayAI facilitator on Solana Mainnet.",
|
|
3696
|
-
/* @__PURE__ */
|
|
3068
|
+
/* @__PURE__ */ l("br", {}),
|
|
3697
3069
|
"Requires real USDC balance. Test payments are refunded automatically."
|
|
3698
3070
|
] }) })
|
|
3699
3071
|
] })
|
|
@@ -3703,21 +3075,21 @@ const gn = ({
|
|
|
3703
3075
|
}
|
|
3704
3076
|
);
|
|
3705
3077
|
};
|
|
3706
|
-
|
|
3078
|
+
$t.displayName = "X402Paywall";
|
|
3707
3079
|
export {
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3080
|
+
Ie as Badge,
|
|
3081
|
+
Ee as Button,
|
|
3082
|
+
oe as Card,
|
|
3083
|
+
ne as CardContent,
|
|
3084
|
+
Pe as CardDescription,
|
|
3085
|
+
Ne as CardHeader,
|
|
3086
|
+
Ae as CardTitle,
|
|
3087
|
+
ze as PaymentButton,
|
|
3088
|
+
Me as PaymentStatus,
|
|
3089
|
+
Z as Spinner,
|
|
3090
|
+
Te as WalletSection,
|
|
3091
|
+
$t as X402Paywall,
|
|
3092
|
+
A as cn,
|
|
3093
|
+
_t as useX402Payment
|
|
3722
3094
|
};
|
|
3723
3095
|
//# sourceMappingURL=index.mjs.map
|