ordify-chat-widget 1.0.21 → 1.0.23
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.cjs.js +56 -115
- package/dist/index.esm.js +1051 -2133
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
var Er = Object.defineProperty;
|
|
2
|
+
var jr = (t, n, i) => n in t ? Er(t, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[n] = i;
|
|
3
|
+
var yt = (t, n, i) => jr(t, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
+
import * as Ft from "react";
|
|
5
|
+
import q, { useState as de, useRef as bt, useCallback as vt, useEffect as Cr, useMemo as Rr, forwardRef as Lt, createElement as Be } from "react";
|
|
6
|
+
import Y from "styled-components";
|
|
7
|
+
var Ye = { exports: {} }, ye = {};
|
|
7
8
|
/**
|
|
8
9
|
* @license React
|
|
9
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,21 +14,21 @@ var Bt = { exports: {} }, Ge = {};
|
|
|
13
14
|
* This source code is licensed under the MIT license found in the
|
|
14
15
|
* LICENSE file in the root directory of this source tree.
|
|
15
16
|
*/
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
var v, m = {},
|
|
23
|
-
|
|
24
|
-
for (v in p)
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof:
|
|
27
|
-
}
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
var
|
|
17
|
+
var kt;
|
|
18
|
+
function _r() {
|
|
19
|
+
if (kt) return ye;
|
|
20
|
+
kt = 1;
|
|
21
|
+
var t = q, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, h = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function g(l, p, w) {
|
|
23
|
+
var v, m = {}, $ = null, k = null;
|
|
24
|
+
w !== void 0 && ($ = "" + w), p.key !== void 0 && ($ = "" + p.key), p.ref !== void 0 && (k = p.ref);
|
|
25
|
+
for (v in p) c.call(p, v) && !y.hasOwnProperty(v) && (m[v] = p[v]);
|
|
26
|
+
if (l && l.defaultProps) for (v in p = l.defaultProps, p) m[v] === void 0 && (m[v] = p[v]);
|
|
27
|
+
return { $$typeof: n, type: l, key: $, ref: k, props: m, _owner: h.current };
|
|
28
|
+
}
|
|
29
|
+
return ye.Fragment = i, ye.jsx = g, ye.jsxs = g, ye;
|
|
30
|
+
}
|
|
31
|
+
var be = {};
|
|
31
32
|
/**
|
|
32
33
|
* @license React
|
|
33
34
|
* react-jsx-runtime.development.js
|
|
@@ -37,91 +38,91 @@ var qe = {};
|
|
|
37
38
|
* This source code is licensed under the MIT license found in the
|
|
38
39
|
* LICENSE file in the root directory of this source tree.
|
|
39
40
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
41
|
+
var wt;
|
|
42
|
+
function Sr() {
|
|
43
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var t = q, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), l = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), L = Symbol.iterator, T = "@@iterator";
|
|
45
|
+
function W(e) {
|
|
46
|
+
if (e === null || typeof e != "object")
|
|
46
47
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
48
|
+
var s = L && e[L] || e[T];
|
|
49
|
+
return typeof s == "function" ? s : null;
|
|
49
50
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
51
|
+
var r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function o(e) {
|
|
52
53
|
{
|
|
53
|
-
for (var
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), b = 1; b < s; b++)
|
|
55
|
+
d[b - 1] = arguments[b];
|
|
56
|
+
a("error", e, d);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function a(e, s, d) {
|
|
59
60
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
61
|
+
var b = r.ReactDebugCurrentFrame, _ = b.getStackAddendum();
|
|
62
|
+
_ !== "" && (s += "%s", d = d.concat([_]));
|
|
63
|
+
var O = d.map(function(C) {
|
|
64
|
+
return String(C);
|
|
64
65
|
});
|
|
65
|
-
|
|
66
|
+
O.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, O);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
|
-
var
|
|
69
|
+
var x = !1, f = !1, j = !1, S = !1, I = !1, M;
|
|
69
70
|
M = Symbol.for("react.module.reference");
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof
|
|
71
|
+
function N(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || I || e === h || e === w || e === v || S || e === k || x || f || j || typeof e == "object" && e !== null && (e.$$typeof === $ || e.$$typeof === m || e.$$typeof === g || e.$$typeof === l || e.$$typeof === p || // This needs to include all possible module reference object
|
|
72
73
|
// types supported by any Flight configuration anywhere since
|
|
73
74
|
// we don't know which Flight build this will end up being used
|
|
74
75
|
// with.
|
|
75
|
-
|
|
76
|
+
e.$$typeof === M || e.getModuleId !== void 0));
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
function P(e, s, d) {
|
|
79
|
+
var b = e.displayName;
|
|
80
|
+
if (b)
|
|
81
|
+
return b;
|
|
82
|
+
var _ = s.displayName || s.name || "";
|
|
83
|
+
return _ !== "" ? d + "(" + _ + ")" : d;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
85
|
+
function U(e) {
|
|
86
|
+
return e.displayName || "Context";
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
if (
|
|
88
|
+
function R(e) {
|
|
89
|
+
if (e == null)
|
|
89
90
|
return null;
|
|
90
|
-
if (typeof
|
|
91
|
-
return
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
switch (
|
|
95
|
-
case
|
|
91
|
+
if (typeof e.tag == "number" && o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
|
+
return e.displayName || e.name || null;
|
|
93
|
+
if (typeof e == "string")
|
|
94
|
+
return e;
|
|
95
|
+
switch (e) {
|
|
96
|
+
case c:
|
|
96
97
|
return "Fragment";
|
|
97
|
-
case
|
|
98
|
+
case i:
|
|
98
99
|
return "Portal";
|
|
99
|
-
case
|
|
100
|
+
case y:
|
|
100
101
|
return "Profiler";
|
|
101
|
-
case
|
|
102
|
+
case h:
|
|
102
103
|
return "StrictMode";
|
|
103
|
-
case
|
|
104
|
+
case w:
|
|
104
105
|
return "Suspense";
|
|
105
106
|
case v:
|
|
106
107
|
return "SuspenseList";
|
|
107
108
|
}
|
|
108
|
-
if (typeof
|
|
109
|
-
switch (
|
|
110
|
-
case
|
|
111
|
-
var
|
|
112
|
-
return
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
109
|
+
if (typeof e == "object")
|
|
110
|
+
switch (e.$$typeof) {
|
|
111
|
+
case l:
|
|
112
|
+
var s = e;
|
|
113
|
+
return U(s) + ".Consumer";
|
|
114
|
+
case g:
|
|
115
|
+
var d = e;
|
|
116
|
+
return U(d._context) + ".Provider";
|
|
116
117
|
case p:
|
|
117
|
-
return
|
|
118
|
+
return P(e, e.render, "ForwardRef");
|
|
118
119
|
case m:
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
120
|
+
var b = e.displayName || null;
|
|
121
|
+
return b !== null ? b : R(e.type) || "Memo";
|
|
122
|
+
case $: {
|
|
123
|
+
var _ = e, O = _._payload, C = _._init;
|
|
123
124
|
try {
|
|
124
|
-
return
|
|
125
|
+
return R(C(O));
|
|
125
126
|
} catch {
|
|
126
127
|
return null;
|
|
127
128
|
}
|
|
@@ -129,556 +130,556 @@ function _o() {
|
|
|
129
130
|
}
|
|
130
131
|
return null;
|
|
131
132
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
133
|
+
var V = Object.assign, F = 0, J, G, Z, ae, le, oe, X;
|
|
134
|
+
function K() {
|
|
134
135
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
136
|
+
K.__reactDisabledLog = !0;
|
|
137
|
+
function te() {
|
|
137
138
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
var
|
|
139
|
+
if (F === 0) {
|
|
140
|
+
J = console.log, G = console.info, Z = console.warn, ae = console.error, le = console.group, oe = console.groupCollapsed, X = console.groupEnd;
|
|
141
|
+
var e = {
|
|
141
142
|
configurable: !0,
|
|
142
143
|
enumerable: !0,
|
|
143
|
-
value:
|
|
144
|
+
value: K,
|
|
144
145
|
writable: !0
|
|
145
146
|
};
|
|
146
147
|
Object.defineProperties(console, {
|
|
147
|
-
info:
|
|
148
|
-
log:
|
|
149
|
-
warn:
|
|
150
|
-
error:
|
|
151
|
-
group:
|
|
152
|
-
groupCollapsed:
|
|
153
|
-
groupEnd:
|
|
148
|
+
info: e,
|
|
149
|
+
log: e,
|
|
150
|
+
warn: e,
|
|
151
|
+
error: e,
|
|
152
|
+
group: e,
|
|
153
|
+
groupCollapsed: e,
|
|
154
|
+
groupEnd: e
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
|
-
|
|
157
|
+
F++;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
+
function he() {
|
|
160
161
|
{
|
|
161
|
-
if (
|
|
162
|
-
var
|
|
162
|
+
if (F--, F === 0) {
|
|
163
|
+
var e = {
|
|
163
164
|
configurable: !0,
|
|
164
165
|
enumerable: !0,
|
|
165
166
|
writable: !0
|
|
166
167
|
};
|
|
167
168
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
169
|
-
value:
|
|
169
|
+
log: V({}, e, {
|
|
170
|
+
value: J
|
|
170
171
|
}),
|
|
171
|
-
info:
|
|
172
|
-
value:
|
|
172
|
+
info: V({}, e, {
|
|
173
|
+
value: G
|
|
173
174
|
}),
|
|
174
|
-
warn:
|
|
175
|
-
value:
|
|
175
|
+
warn: V({}, e, {
|
|
176
|
+
value: Z
|
|
176
177
|
}),
|
|
177
|
-
error:
|
|
178
|
-
value:
|
|
178
|
+
error: V({}, e, {
|
|
179
|
+
value: ae
|
|
179
180
|
}),
|
|
180
|
-
group:
|
|
181
|
-
value:
|
|
181
|
+
group: V({}, e, {
|
|
182
|
+
value: le
|
|
182
183
|
}),
|
|
183
|
-
groupCollapsed:
|
|
184
|
+
groupCollapsed: V({}, e, {
|
|
184
185
|
value: oe
|
|
185
186
|
}),
|
|
186
|
-
groupEnd:
|
|
187
|
-
value:
|
|
187
|
+
groupEnd: V({}, e, {
|
|
188
|
+
value: X
|
|
188
189
|
})
|
|
189
190
|
});
|
|
190
191
|
}
|
|
191
|
-
|
|
192
|
+
F < 0 && o("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
195
|
+
var me = r.ReactCurrentDispatcher, ge;
|
|
196
|
+
function we(e, s, d) {
|
|
196
197
|
{
|
|
197
198
|
if (ge === void 0)
|
|
198
199
|
try {
|
|
199
200
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
ge =
|
|
201
|
+
} catch (_) {
|
|
202
|
+
var b = _.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ge = b && b[1] || "";
|
|
203
204
|
}
|
|
204
205
|
return `
|
|
205
|
-
` + ge +
|
|
206
|
+
` + ge + e;
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
|
-
var
|
|
209
|
+
var $e = !1, Ee;
|
|
209
210
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
211
|
+
var Xt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
Ee = new Xt();
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!
|
|
214
|
+
function nt(e, s) {
|
|
215
|
+
if (!e || $e)
|
|
215
216
|
return "";
|
|
216
217
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
218
|
+
var d = Ee.get(e);
|
|
219
|
+
if (d !== void 0)
|
|
220
|
+
return d;
|
|
220
221
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
var
|
|
222
|
+
var b;
|
|
223
|
+
$e = !0;
|
|
224
|
+
var _ = Error.prepareStackTrace;
|
|
224
225
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
226
|
+
var O;
|
|
227
|
+
O = me.current, me.current = null, te();
|
|
227
228
|
try {
|
|
228
|
-
if (
|
|
229
|
-
var
|
|
229
|
+
if (s) {
|
|
230
|
+
var C = function() {
|
|
230
231
|
throw Error();
|
|
231
232
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
233
234
|
set: function() {
|
|
234
235
|
throw Error();
|
|
235
236
|
}
|
|
236
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
238
|
try {
|
|
238
|
-
Reflect.construct(
|
|
239
|
-
} catch (
|
|
240
|
-
|
|
239
|
+
Reflect.construct(C, []);
|
|
240
|
+
} catch (B) {
|
|
241
|
+
b = B;
|
|
241
242
|
}
|
|
242
|
-
Reflect.construct(
|
|
243
|
+
Reflect.construct(e, [], C);
|
|
243
244
|
} else {
|
|
244
245
|
try {
|
|
245
|
-
|
|
246
|
-
} catch (
|
|
247
|
-
|
|
246
|
+
C.call();
|
|
247
|
+
} catch (B) {
|
|
248
|
+
b = B;
|
|
248
249
|
}
|
|
249
|
-
|
|
250
|
+
e.call(C.prototype);
|
|
250
251
|
}
|
|
251
252
|
} else {
|
|
252
253
|
try {
|
|
253
254
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
|
|
255
|
+
} catch (B) {
|
|
256
|
+
b = B;
|
|
256
257
|
}
|
|
257
|
-
|
|
258
|
+
e();
|
|
258
259
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var
|
|
262
|
-
`),
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
260
|
+
} catch (B) {
|
|
261
|
+
if (B && b && typeof B.stack == "string") {
|
|
262
|
+
for (var E = B.stack.split(`
|
|
263
|
+
`), z = b.stack.split(`
|
|
264
|
+
`), A = E.length - 1, D = z.length - 1; A >= 1 && D >= 0 && E[A] !== z[D]; )
|
|
265
|
+
D--;
|
|
266
|
+
for (; A >= 1 && D >= 0; A--, D--)
|
|
267
|
+
if (E[A] !== z[D]) {
|
|
268
|
+
if (A !== 1 || D !== 1)
|
|
268
269
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` +
|
|
272
|
-
return
|
|
270
|
+
if (A--, D--, D < 0 || E[A] !== z[D]) {
|
|
271
|
+
var H = `
|
|
272
|
+
` + E[A].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, H), H;
|
|
273
274
|
}
|
|
274
|
-
while (
|
|
275
|
+
while (A >= 1 && D >= 0);
|
|
275
276
|
break;
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
279
|
} finally {
|
|
279
|
-
|
|
280
|
+
$e = !1, me.current = O, he(), Error.prepareStackTrace = _;
|
|
280
281
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof
|
|
282
|
+
var ue = e ? e.displayName || e.name : "", ie = ue ? we(ue) : "";
|
|
283
|
+
return typeof e == "function" && Ee.set(e, ie), ie;
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
285
|
+
function Qt(e, s, d) {
|
|
286
|
+
return nt(e, !1);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
288
|
+
function er(e) {
|
|
289
|
+
var s = e.prototype;
|
|
290
|
+
return !!(s && s.isReactComponent);
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
-
if (
|
|
292
|
+
function je(e, s, d) {
|
|
293
|
+
if (e == null)
|
|
293
294
|
return "";
|
|
294
|
-
if (typeof
|
|
295
|
-
return
|
|
296
|
-
if (typeof
|
|
297
|
-
return
|
|
298
|
-
switch (
|
|
299
|
-
case
|
|
300
|
-
return
|
|
295
|
+
if (typeof e == "function")
|
|
296
|
+
return nt(e, er(e));
|
|
297
|
+
if (typeof e == "string")
|
|
298
|
+
return we(e);
|
|
299
|
+
switch (e) {
|
|
300
|
+
case w:
|
|
301
|
+
return we("Suspense");
|
|
301
302
|
case v:
|
|
302
|
-
return
|
|
303
|
+
return we("SuspenseList");
|
|
303
304
|
}
|
|
304
|
-
if (typeof
|
|
305
|
-
switch (
|
|
305
|
+
if (typeof e == "object")
|
|
306
|
+
switch (e.$$typeof) {
|
|
306
307
|
case p:
|
|
307
|
-
return
|
|
308
|
+
return Qt(e.render);
|
|
308
309
|
case m:
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var
|
|
310
|
+
return je(e.type, s, d);
|
|
311
|
+
case $: {
|
|
312
|
+
var b = e, _ = b._payload, O = b._init;
|
|
312
313
|
try {
|
|
313
|
-
return
|
|
314
|
+
return je(O(_), s, d);
|
|
314
315
|
} catch {
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
return "";
|
|
319
320
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
322
|
-
if (
|
|
323
|
-
var
|
|
324
|
-
|
|
321
|
+
var xe = Object.prototype.hasOwnProperty, at = {}, ot = r.ReactDebugCurrentFrame;
|
|
322
|
+
function Ce(e) {
|
|
323
|
+
if (e) {
|
|
324
|
+
var s = e._owner, d = je(e.type, e._source, s ? s.type : null);
|
|
325
|
+
ot.setExtraStackFrame(d);
|
|
325
326
|
} else
|
|
326
|
-
|
|
327
|
+
ot.setExtraStackFrame(null);
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function tr(e, s, d, b, _) {
|
|
329
330
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
331
|
+
var O = Function.call.bind(xe);
|
|
332
|
+
for (var C in e)
|
|
333
|
+
if (O(e, C)) {
|
|
334
|
+
var E = void 0;
|
|
334
335
|
try {
|
|
335
|
-
if (typeof
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
if (typeof e[C] != "function") {
|
|
337
|
+
var z = Error((b || "React class") + ": " + d + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw z.name = "Invariant Violation", z;
|
|
338
339
|
}
|
|
339
|
-
|
|
340
|
-
} catch (
|
|
341
|
-
|
|
340
|
+
E = e[C](s, C, b, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (A) {
|
|
342
|
+
E = A;
|
|
342
343
|
}
|
|
343
|
-
|
|
344
|
+
E && !(E instanceof Error) && (Ce(_), o("%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).", b || "React class", d, C, typeof E), Ce(null)), E instanceof Error && !(E.message in at) && (at[E.message] = !0, Ce(_), o("Failed %s type: %s", d, E.message), Ce(null));
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
348
|
+
var rr = Array.isArray;
|
|
349
|
+
function Pe(e) {
|
|
350
|
+
return rr(e);
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function nr(e) {
|
|
352
353
|
{
|
|
353
|
-
var
|
|
354
|
-
return
|
|
354
|
+
var s = typeof Symbol == "function" && Symbol.toStringTag, d = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
|
+
return d;
|
|
355
356
|
}
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function ar(e) {
|
|
358
359
|
try {
|
|
359
|
-
return
|
|
360
|
+
return it(e), !1;
|
|
360
361
|
} catch {
|
|
361
362
|
return !0;
|
|
362
363
|
}
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
-
return "" +
|
|
365
|
+
function it(e) {
|
|
366
|
+
return "" + e;
|
|
366
367
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
368
|
+
function st(e) {
|
|
369
|
+
if (ar(e))
|
|
370
|
+
return o("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), it(e);
|
|
370
371
|
}
|
|
371
|
-
var
|
|
372
|
+
var lt = r.ReactCurrentOwner, or = {
|
|
372
373
|
key: !0,
|
|
373
374
|
ref: !0,
|
|
374
375
|
__self: !0,
|
|
375
376
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
function
|
|
378
|
-
if (
|
|
379
|
-
var
|
|
380
|
-
if (
|
|
377
|
+
}, ct, ut;
|
|
378
|
+
function ir(e) {
|
|
379
|
+
if (xe.call(e, "ref")) {
|
|
380
|
+
var s = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
+
if (s && s.isReactWarning)
|
|
381
382
|
return !1;
|
|
382
383
|
}
|
|
383
|
-
return
|
|
384
|
+
return e.ref !== void 0;
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
386
|
+
function sr(e) {
|
|
387
|
+
if (xe.call(e, "key")) {
|
|
388
|
+
var s = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
+
if (s && s.isReactWarning)
|
|
389
390
|
return !1;
|
|
390
391
|
}
|
|
391
|
-
return
|
|
392
|
+
return e.key !== void 0;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
typeof
|
|
394
|
+
function lr(e, s) {
|
|
395
|
+
typeof e.ref == "string" && lt.current;
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function cr(e, s) {
|
|
397
398
|
{
|
|
398
|
-
var
|
|
399
|
-
|
|
399
|
+
var d = function() {
|
|
400
|
+
ct || (ct = !0, o("%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)", s));
|
|
400
401
|
};
|
|
401
|
-
|
|
402
|
-
get:
|
|
402
|
+
d.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
|
+
get: d,
|
|
403
404
|
configurable: !0
|
|
404
405
|
});
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function ur(e, s) {
|
|
408
409
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
410
|
+
var d = function() {
|
|
411
|
+
ut || (ut = !0, o("%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)", s));
|
|
411
412
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
413
|
+
d.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
|
+
get: d,
|
|
414
415
|
configurable: !0
|
|
415
416
|
});
|
|
416
417
|
}
|
|
417
418
|
}
|
|
418
|
-
var
|
|
419
|
-
var
|
|
419
|
+
var dr = function(e, s, d, b, _, O, C) {
|
|
420
|
+
var E = {
|
|
420
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
-
$$typeof:
|
|
422
|
+
$$typeof: n,
|
|
422
423
|
// Built-in properties that belong on the element
|
|
423
|
-
type:
|
|
424
|
-
key:
|
|
425
|
-
ref:
|
|
426
|
-
props:
|
|
424
|
+
type: e,
|
|
425
|
+
key: s,
|
|
426
|
+
ref: d,
|
|
427
|
+
props: C,
|
|
427
428
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
429
|
+
_owner: O
|
|
429
430
|
};
|
|
430
|
-
return
|
|
431
|
+
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
431
432
|
configurable: !1,
|
|
432
433
|
enumerable: !1,
|
|
433
434
|
writable: !0,
|
|
434
435
|
value: !1
|
|
435
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(E, "_self", {
|
|
436
437
|
configurable: !1,
|
|
437
438
|
enumerable: !1,
|
|
438
439
|
writable: !1,
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
440
|
+
value: b
|
|
441
|
+
}), Object.defineProperty(E, "_source", {
|
|
441
442
|
configurable: !1,
|
|
442
443
|
enumerable: !1,
|
|
443
444
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
value: _
|
|
446
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
446
447
|
};
|
|
447
|
-
function
|
|
448
|
+
function fr(e, s, d, b, _) {
|
|
448
449
|
{
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
for (
|
|
452
|
-
|
|
453
|
-
if (
|
|
454
|
-
var
|
|
455
|
-
for (
|
|
456
|
-
O
|
|
450
|
+
var O, C = {}, E = null, z = null;
|
|
451
|
+
d !== void 0 && (st(d), E = "" + d), sr(s) && (st(s.key), E = "" + s.key), ir(s) && (z = s.ref, lr(s, _));
|
|
452
|
+
for (O in s)
|
|
453
|
+
xe.call(s, O) && !or.hasOwnProperty(O) && (C[O] = s[O]);
|
|
454
|
+
if (e && e.defaultProps) {
|
|
455
|
+
var A = e.defaultProps;
|
|
456
|
+
for (O in A)
|
|
457
|
+
C[O] === void 0 && (C[O] = A[O]);
|
|
457
458
|
}
|
|
458
|
-
if (
|
|
459
|
-
var
|
|
460
|
-
|
|
459
|
+
if (E || z) {
|
|
460
|
+
var D = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
E && cr(C, D), z && ur(C, D);
|
|
461
462
|
}
|
|
462
|
-
return
|
|
463
|
+
return dr(e, E, z, _, b, lt.current, C);
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
469
|
-
|
|
466
|
+
var Ie = r.ReactCurrentOwner, dt = r.ReactDebugCurrentFrame;
|
|
467
|
+
function ce(e) {
|
|
468
|
+
if (e) {
|
|
469
|
+
var s = e._owner, d = je(e.type, e._source, s ? s.type : null);
|
|
470
|
+
dt.setExtraStackFrame(d);
|
|
470
471
|
} else
|
|
471
|
-
|
|
472
|
+
dt.setExtraStackFrame(null);
|
|
472
473
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
476
|
-
return typeof
|
|
474
|
+
var Ae;
|
|
475
|
+
Ae = !1;
|
|
476
|
+
function Me(e) {
|
|
477
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
477
478
|
}
|
|
478
|
-
function
|
|
479
|
+
function ft() {
|
|
479
480
|
{
|
|
480
|
-
if (
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
481
|
+
if (Ie.current) {
|
|
482
|
+
var e = R(Ie.current.type);
|
|
483
|
+
if (e)
|
|
483
484
|
return `
|
|
484
485
|
|
|
485
|
-
Check the render method of \`` +
|
|
486
|
+
Check the render method of \`` + e + "`.";
|
|
486
487
|
}
|
|
487
488
|
return "";
|
|
488
489
|
}
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
+
function pr(e) {
|
|
491
492
|
return "";
|
|
492
493
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
494
|
+
var pt = {};
|
|
495
|
+
function hr(e) {
|
|
495
496
|
{
|
|
496
|
-
var
|
|
497
|
-
if (!
|
|
498
|
-
var
|
|
499
|
-
|
|
497
|
+
var s = ft();
|
|
498
|
+
if (!s) {
|
|
499
|
+
var d = typeof e == "string" ? e : e.displayName || e.name;
|
|
500
|
+
d && (s = `
|
|
500
501
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
502
|
+
Check the top-level render call using <` + d + ">.");
|
|
502
503
|
}
|
|
503
|
-
return
|
|
504
|
+
return s;
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
+
function ht(e, s) {
|
|
507
508
|
{
|
|
508
|
-
if (!
|
|
509
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
509
510
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
511
|
+
e._store.validated = !0;
|
|
512
|
+
var d = hr(s);
|
|
513
|
+
if (pt[d])
|
|
513
514
|
return;
|
|
514
|
-
|
|
515
|
-
var
|
|
516
|
-
|
|
515
|
+
pt[d] = !0;
|
|
516
|
+
var b = "";
|
|
517
|
+
e && e._owner && e._owner !== Ie.current && (b = " It was passed a child from " + R(e._owner.type) + "."), ce(e), o('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, b), ce(null);
|
|
517
518
|
}
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
+
function mt(e, s) {
|
|
520
521
|
{
|
|
521
|
-
if (typeof
|
|
522
|
+
if (typeof e != "object")
|
|
522
523
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var
|
|
525
|
-
var
|
|
526
|
-
|
|
524
|
+
if (Pe(e))
|
|
525
|
+
for (var d = 0; d < e.length; d++) {
|
|
526
|
+
var b = e[d];
|
|
527
|
+
Me(b) && ht(b, s);
|
|
527
528
|
}
|
|
528
|
-
else if (
|
|
529
|
-
|
|
530
|
-
else if (
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var
|
|
534
|
-
|
|
529
|
+
else if (Me(e))
|
|
530
|
+
e._store && (e._store.validated = !0);
|
|
531
|
+
else if (e) {
|
|
532
|
+
var _ = W(e);
|
|
533
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
534
|
+
for (var O = _.call(e), C; !(C = O.next()).done; )
|
|
535
|
+
Me(C.value) && ht(C.value, s);
|
|
535
536
|
}
|
|
536
537
|
}
|
|
537
538
|
}
|
|
538
|
-
function
|
|
539
|
+
function mr(e) {
|
|
539
540
|
{
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
541
|
+
var s = e.type;
|
|
542
|
+
if (s == null || typeof s == "string")
|
|
542
543
|
return;
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
|
|
546
|
-
else if (typeof
|
|
544
|
+
var d;
|
|
545
|
+
if (typeof s == "function")
|
|
546
|
+
d = s.propTypes;
|
|
547
|
+
else if (typeof s == "object" && (s.$$typeof === p || // Note: Memo only checks outer props here.
|
|
547
548
|
// Inner props are checked in the reconciler.
|
|
548
|
-
|
|
549
|
-
|
|
549
|
+
s.$$typeof === m))
|
|
550
|
+
d = s.propTypes;
|
|
550
551
|
else
|
|
551
552
|
return;
|
|
552
|
-
if (
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
} else if (
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
|
|
553
|
+
if (d) {
|
|
554
|
+
var b = R(s);
|
|
555
|
+
tr(d, e.props, "prop", b, e);
|
|
556
|
+
} else if (s.PropTypes !== void 0 && !Ae) {
|
|
557
|
+
Ae = !0;
|
|
558
|
+
var _ = R(s);
|
|
559
|
+
o("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
559
560
|
}
|
|
560
|
-
typeof
|
|
561
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && o("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
562
|
}
|
|
562
563
|
}
|
|
563
|
-
function
|
|
564
|
+
function gr(e) {
|
|
564
565
|
{
|
|
565
|
-
for (var
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
|
|
566
|
+
for (var s = Object.keys(e.props), d = 0; d < s.length; d++) {
|
|
567
|
+
var b = s[d];
|
|
568
|
+
if (b !== "children" && b !== "key") {
|
|
569
|
+
ce(e), o("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ce(null);
|
|
569
570
|
break;
|
|
570
571
|
}
|
|
571
572
|
}
|
|
572
|
-
|
|
573
|
+
e.ref !== null && (ce(e), o("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
576
|
+
var gt = {};
|
|
577
|
+
function xt(e, s, d, b, _, O) {
|
|
577
578
|
{
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
580
|
-
var
|
|
581
|
-
(
|
|
582
|
-
var
|
|
583
|
-
|
|
584
|
-
var
|
|
585
|
-
|
|
579
|
+
var C = N(e);
|
|
580
|
+
if (!C) {
|
|
581
|
+
var E = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var z = pr();
|
|
584
|
+
z ? E += z : E += ft();
|
|
585
|
+
var A;
|
|
586
|
+
e === null ? A = "null" : Pe(e) ? A = "array" : e !== void 0 && e.$$typeof === n ? (A = "<" + (R(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : A = typeof e, o("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, E);
|
|
586
587
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
590
|
-
if (
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
for (var
|
|
596
|
-
|
|
597
|
-
Object.freeze && Object.freeze(
|
|
588
|
+
var D = fr(e, s, d, _, O);
|
|
589
|
+
if (D == null)
|
|
590
|
+
return D;
|
|
591
|
+
if (C) {
|
|
592
|
+
var H = s.children;
|
|
593
|
+
if (H !== void 0)
|
|
594
|
+
if (b)
|
|
595
|
+
if (Pe(H)) {
|
|
596
|
+
for (var ue = 0; ue < H.length; ue++)
|
|
597
|
+
mt(H[ue], e);
|
|
598
|
+
Object.freeze && Object.freeze(H);
|
|
598
599
|
} else
|
|
599
|
-
|
|
600
|
+
o("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
601
|
else
|
|
601
|
-
|
|
602
|
+
mt(H, e);
|
|
602
603
|
}
|
|
603
|
-
if (
|
|
604
|
-
var
|
|
605
|
-
return
|
|
606
|
-
}),
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
609
|
-
|
|
604
|
+
if (xe.call(s, "key")) {
|
|
605
|
+
var ie = R(e), B = Object.keys(s).filter(function(wr) {
|
|
606
|
+
return wr !== "key";
|
|
607
|
+
}), De = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!gt[ie + De]) {
|
|
609
|
+
var kr = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
o(`A props object containing a "key" prop is being spread into JSX:
|
|
610
611
|
let props = %s;
|
|
611
612
|
<%s {...props} />
|
|
612
613
|
React keys must be passed directly to JSX without using spread:
|
|
613
614
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, De, ie, kr, ie), gt[ie + De] = !0;
|
|
615
616
|
}
|
|
616
617
|
}
|
|
617
|
-
return
|
|
618
|
+
return e === c ? gr(D) : mr(D), D;
|
|
618
619
|
}
|
|
619
620
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
621
|
+
function xr(e, s, d) {
|
|
622
|
+
return xt(e, s, d, !0);
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
624
|
+
function yr(e, s, d) {
|
|
625
|
+
return xt(e, s, d, !1);
|
|
625
626
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
627
|
+
var br = yr, vr = xr;
|
|
628
|
+
be.Fragment = c, be.jsx = br, be.jsxs = vr;
|
|
629
|
+
}()), be;
|
|
629
630
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
632
|
-
function
|
|
631
|
+
process.env.NODE_ENV === "production" ? Ye.exports = _r() : Ye.exports = Sr();
|
|
632
|
+
var u = Ye.exports;
|
|
633
|
+
function Et() {
|
|
633
634
|
return Math.random().toString(36).substr(2, 9);
|
|
634
635
|
}
|
|
635
|
-
function
|
|
636
|
+
function Ke(t) {
|
|
636
637
|
return new Intl.DateTimeFormat("en-US", {
|
|
637
638
|
hour: "2-digit",
|
|
638
639
|
minute: "2-digit",
|
|
639
640
|
hour12: !0
|
|
640
|
-
}).format(
|
|
641
|
+
}).format(t);
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
-
let
|
|
644
|
-
return (...
|
|
645
|
-
clearTimeout(
|
|
643
|
+
function oa(t, n) {
|
|
644
|
+
let i;
|
|
645
|
+
return (...c) => {
|
|
646
|
+
clearTimeout(i), i = setTimeout(() => t(...c), n);
|
|
646
647
|
};
|
|
647
648
|
}
|
|
648
|
-
function
|
|
649
|
-
let
|
|
650
|
-
return (...
|
|
651
|
-
|
|
649
|
+
function ia(t, n) {
|
|
650
|
+
let i;
|
|
651
|
+
return (...c) => {
|
|
652
|
+
i || (t(...c), i = !0, setTimeout(() => i = !1, n));
|
|
652
653
|
};
|
|
653
654
|
}
|
|
654
|
-
class
|
|
655
|
-
constructor(
|
|
656
|
-
|
|
657
|
-
this.config =
|
|
655
|
+
class Tr {
|
|
656
|
+
constructor(n) {
|
|
657
|
+
yt(this, "config");
|
|
658
|
+
this.config = n;
|
|
658
659
|
}
|
|
659
|
-
async sendMessage(
|
|
660
|
-
const
|
|
661
|
-
message:
|
|
662
|
-
sessionId:
|
|
663
|
-
},
|
|
660
|
+
async sendMessage(n, i) {
|
|
661
|
+
const c = `${this.config.apiBaseUrl}/chat/agents/${this.config.agentId}`, h = {
|
|
662
|
+
message: n,
|
|
663
|
+
sessionId: i
|
|
664
|
+
}, y = await fetch(c, {
|
|
664
665
|
method: "POST",
|
|
665
666
|
headers: {
|
|
666
667
|
"Content-Type": "application/json",
|
|
667
668
|
"api-key": this.config.apiKey,
|
|
668
669
|
accept: "application/json"
|
|
669
670
|
},
|
|
670
|
-
body: JSON.stringify(
|
|
671
|
+
body: JSON.stringify(h)
|
|
671
672
|
});
|
|
672
|
-
if (!
|
|
673
|
-
const
|
|
674
|
-
throw new Error(`API Error: ${
|
|
673
|
+
if (!y.ok) {
|
|
674
|
+
const g = await y.json();
|
|
675
|
+
throw new Error(`API Error: ${g.detail}`);
|
|
675
676
|
}
|
|
676
|
-
if (!
|
|
677
|
+
if (!y.body)
|
|
677
678
|
throw new Error("No response body");
|
|
678
|
-
return
|
|
679
|
+
return y.body;
|
|
679
680
|
}
|
|
680
681
|
async createSession() {
|
|
681
|
-
const
|
|
682
|
+
const n = `${this.config.apiBaseUrl}/sessions`, i = await fetch(n, {
|
|
682
683
|
method: "POST",
|
|
683
684
|
headers: {
|
|
684
685
|
"Content-Type": "application/json",
|
|
@@ -693,527 +694,527 @@ class jo {
|
|
|
693
694
|
}
|
|
694
695
|
})
|
|
695
696
|
});
|
|
696
|
-
if (!
|
|
697
|
-
const
|
|
698
|
-
throw new Error(`API Error: ${
|
|
697
|
+
if (!i.ok) {
|
|
698
|
+
const c = await i.json();
|
|
699
|
+
throw new Error(`API Error: ${c.detail}`);
|
|
699
700
|
}
|
|
700
|
-
return
|
|
701
|
+
return i.json();
|
|
701
702
|
}
|
|
702
703
|
async getAgents() {
|
|
703
|
-
const
|
|
704
|
+
const n = `${this.config.apiBaseUrl}/chat/agents`, i = await fetch(n, {
|
|
704
705
|
method: "GET",
|
|
705
706
|
headers: {
|
|
706
707
|
"api-key": this.config.apiKey,
|
|
707
708
|
accept: "application/json"
|
|
708
709
|
}
|
|
709
710
|
});
|
|
710
|
-
if (!
|
|
711
|
-
const
|
|
712
|
-
throw new Error(`API Error: ${
|
|
711
|
+
if (!i.ok) {
|
|
712
|
+
const h = await i.json();
|
|
713
|
+
throw new Error(`API Error: ${h.detail}`);
|
|
713
714
|
}
|
|
714
|
-
return (await
|
|
715
|
+
return (await i.json()).agents || [];
|
|
715
716
|
}
|
|
716
717
|
async getSessions() {
|
|
717
|
-
const
|
|
718
|
+
const n = `${this.config.apiBaseUrl}/sessions`, i = await fetch(n, {
|
|
718
719
|
method: "GET",
|
|
719
720
|
headers: {
|
|
720
721
|
"api-key": this.config.apiKey,
|
|
721
722
|
accept: "application/json"
|
|
722
723
|
}
|
|
723
724
|
});
|
|
724
|
-
if (!
|
|
725
|
-
const
|
|
726
|
-
throw new Error(`API Error: ${
|
|
725
|
+
if (!i.ok) {
|
|
726
|
+
const c = await i.json();
|
|
727
|
+
throw new Error(`API Error: ${c.detail}`);
|
|
727
728
|
}
|
|
728
|
-
return
|
|
729
|
+
return i.json();
|
|
729
730
|
}
|
|
730
731
|
}
|
|
731
|
-
function
|
|
732
|
+
function Or(t) {
|
|
732
733
|
try {
|
|
733
|
-
if (
|
|
734
|
-
const
|
|
735
|
-
return
|
|
734
|
+
if (t.startsWith("data: ")) {
|
|
735
|
+
const n = t.slice(6);
|
|
736
|
+
return n === "[DONE]" ? { text: "", sessionId: "", type: "done" } : JSON.parse(n);
|
|
736
737
|
}
|
|
737
|
-
} catch (
|
|
738
|
-
console.warn("Failed to parse streaming response:",
|
|
738
|
+
} catch (n) {
|
|
739
|
+
console.warn("Failed to parse streaming response:", n);
|
|
739
740
|
}
|
|
740
741
|
return null;
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
-
const [
|
|
744
|
-
|
|
745
|
-
apiKey:
|
|
746
|
-
apiBaseUrl:
|
|
747
|
-
agentId:
|
|
743
|
+
function $r(t) {
|
|
744
|
+
const [n, i] = de([]), [c, h] = de(!1), [y, g] = de(null), [l, p] = de(null), [w, v] = de(!1), [m, $] = de(!1), k = bt(null), L = bt(!1);
|
|
745
|
+
k.current || (k.current = new Tr({
|
|
746
|
+
apiKey: t.apiKey,
|
|
747
|
+
apiBaseUrl: t.apiBaseUrl || "https://api.ordify.ai",
|
|
748
|
+
agentId: t.agentId
|
|
748
749
|
}));
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
}, []),
|
|
752
|
-
if (!(!
|
|
753
|
-
|
|
750
|
+
const T = vt(() => {
|
|
751
|
+
g(null);
|
|
752
|
+
}, []), W = vt(async (r) => {
|
|
753
|
+
if (!(!r.trim() || c)) {
|
|
754
|
+
h(!0), g(null);
|
|
754
755
|
try {
|
|
755
|
-
const
|
|
756
|
-
id:
|
|
757
|
-
content:
|
|
756
|
+
const o = {
|
|
757
|
+
id: Et(),
|
|
758
|
+
content: r.trim(),
|
|
758
759
|
role: "user",
|
|
759
760
|
timestamp: /* @__PURE__ */ new Date(),
|
|
760
|
-
sessionId:
|
|
761
|
+
sessionId: l || void 0
|
|
761
762
|
};
|
|
762
|
-
|
|
763
|
-
let
|
|
764
|
-
|
|
765
|
-
const
|
|
766
|
-
let
|
|
767
|
-
id:
|
|
763
|
+
i((I) => [...I, o]);
|
|
764
|
+
let a = l;
|
|
765
|
+
a || (a = (await k.current.createSession()).id, p(a), t.onSessionCreated && t.onSessionCreated(a));
|
|
766
|
+
const f = (await k.current.sendMessage(r.trim(), a)).getReader(), j = new TextDecoder();
|
|
767
|
+
let S = {
|
|
768
|
+
id: Et(),
|
|
768
769
|
content: "",
|
|
769
770
|
role: "assistant",
|
|
770
771
|
timestamp: /* @__PURE__ */ new Date(),
|
|
771
|
-
sessionId:
|
|
772
|
+
sessionId: a
|
|
772
773
|
};
|
|
773
|
-
for (
|
|
774
|
-
const { done:
|
|
775
|
-
if (
|
|
776
|
-
const
|
|
774
|
+
for (i((I) => [...I, S]); ; ) {
|
|
775
|
+
const { done: I, value: M } = await f.read();
|
|
776
|
+
if (I) break;
|
|
777
|
+
const P = j.decode(M, { stream: !0 }).split(`
|
|
777
778
|
`);
|
|
778
|
-
for (const
|
|
779
|
-
const
|
|
780
|
-
if (
|
|
781
|
-
if (
|
|
782
|
-
|
|
783
|
-
(
|
|
784
|
-
(
|
|
779
|
+
for (const U of P) {
|
|
780
|
+
const R = Or(U);
|
|
781
|
+
if (R) {
|
|
782
|
+
if (R.type === "stream" && R.text)
|
|
783
|
+
i(
|
|
784
|
+
(V) => V.map(
|
|
785
|
+
(F) => F.id === S.id ? { ...F, content: F.content + R.text } : F
|
|
785
786
|
)
|
|
786
787
|
);
|
|
787
|
-
else if (
|
|
788
|
+
else if (R.type === "done")
|
|
788
789
|
break;
|
|
789
790
|
}
|
|
790
791
|
}
|
|
791
792
|
}
|
|
792
|
-
|
|
793
|
-
} catch (
|
|
794
|
-
const
|
|
795
|
-
|
|
793
|
+
t.onMessage && t.onMessage(S);
|
|
794
|
+
} catch (o) {
|
|
795
|
+
const a = o instanceof Error ? o.message : "Failed to send message";
|
|
796
|
+
g(a), t.onError && t.onError(o instanceof Error ? o : new Error(a));
|
|
796
797
|
} finally {
|
|
797
|
-
|
|
798
|
+
h(!1);
|
|
798
799
|
}
|
|
799
800
|
}
|
|
800
|
-
}, [
|
|
801
|
-
return
|
|
802
|
-
|
|
803
|
-
|
|
801
|
+
}, [t.onSessionCreated, t.onMessage, t.onError, c, l]);
|
|
802
|
+
return Cr(() => {
|
|
803
|
+
t.initialMessage && !m && !c && !L.current && ($(!0), L.current = !0, setTimeout(() => {
|
|
804
|
+
W(t.initialMessage);
|
|
804
805
|
}, 0));
|
|
805
|
-
}, [
|
|
806
|
-
messages:
|
|
807
|
-
sendMessage:
|
|
808
|
-
isLoading:
|
|
809
|
-
error:
|
|
810
|
-
clearError:
|
|
811
|
-
sessionId:
|
|
812
|
-
isOpen:
|
|
806
|
+
}, [t.initialMessage, m, c, W]), {
|
|
807
|
+
messages: n,
|
|
808
|
+
sendMessage: W,
|
|
809
|
+
isLoading: c,
|
|
810
|
+
error: y,
|
|
811
|
+
clearError: T,
|
|
812
|
+
sessionId: l,
|
|
813
|
+
isOpen: w,
|
|
813
814
|
setIsOpen: v
|
|
814
815
|
};
|
|
815
816
|
}
|
|
816
|
-
function
|
|
817
|
-
return
|
|
818
|
-
const
|
|
819
|
-
if (!
|
|
817
|
+
function Pr(t) {
|
|
818
|
+
return Rr(() => {
|
|
819
|
+
const n = t.agentId || process.env.ORDIFY_AGENT_ID, i = t.apiKey || process.env.ORDIFY_API_KEY, c = t.apiBaseUrl || process.env.ORDIFY_API_BASE_URL || "https://r.ordify.ai";
|
|
820
|
+
if (!n)
|
|
820
821
|
throw new Error("Ordify agent ID is required. Provide agentId prop or set ORDIFY_AGENT_ID environment variable.");
|
|
821
|
-
if (!
|
|
822
|
+
if (!i)
|
|
822
823
|
throw new Error("Ordify API key is required. Provide apiKey prop or set ORDIFY_API_KEY environment variable.");
|
|
823
824
|
return {
|
|
824
|
-
agentId:
|
|
825
|
-
apiKey:
|
|
826
|
-
apiBaseUrl:
|
|
827
|
-
mode:
|
|
828
|
-
position:
|
|
829
|
-
theme:
|
|
830
|
-
placeholder:
|
|
831
|
-
height:
|
|
832
|
-
className:
|
|
833
|
-
buttonStyle:
|
|
834
|
-
chatWindowStyle:
|
|
835
|
-
showHeader:
|
|
836
|
-
onMessage:
|
|
837
|
-
onError:
|
|
838
|
-
onClose:
|
|
839
|
-
onSessionCreated:
|
|
840
|
-
initialMessage:
|
|
825
|
+
agentId: n,
|
|
826
|
+
apiKey: i,
|
|
827
|
+
apiBaseUrl: c,
|
|
828
|
+
mode: t.mode || "floating",
|
|
829
|
+
position: t.position || "bottom-right",
|
|
830
|
+
theme: t.theme || "light",
|
|
831
|
+
placeholder: t.placeholder || "Type a message...",
|
|
832
|
+
height: t.height || "500px",
|
|
833
|
+
className: t.className || "",
|
|
834
|
+
buttonStyle: t.buttonStyle || {},
|
|
835
|
+
chatWindowStyle: t.chatWindowStyle || {},
|
|
836
|
+
showHeader: t.showHeader !== !1,
|
|
837
|
+
onMessage: t.onMessage,
|
|
838
|
+
onError: t.onError,
|
|
839
|
+
onClose: t.onClose,
|
|
840
|
+
onSessionCreated: t.onSessionCreated,
|
|
841
|
+
initialMessage: t.initialMessage
|
|
841
842
|
};
|
|
842
|
-
}, [
|
|
843
|
-
}
|
|
844
|
-
function $e() {
|
|
845
|
-
return $e = Object.assign ? Object.assign.bind() : function(e) {
|
|
846
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
847
|
-
var r = arguments[t];
|
|
848
|
-
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
849
|
-
}
|
|
850
|
-
return e;
|
|
851
|
-
}, $e.apply(this, arguments);
|
|
852
|
-
}
|
|
853
|
-
const Ao = ["children", "options"], Ir = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), Nr = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Io = ["style", "script", "pre"], No = ["src", "href", "data", "formAction", "srcDoc", "action"], Do = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Mo = /mailto:/i, Lo = /\n{2,}$/, Dr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, zo = /^ *> ?/gm, Fo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Uo = /^ {2,}\n/, Bo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Mr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Lr = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Wo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Vo = /^(?:\n *)*\n/, Yo = /\r\n?/g, Ho = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Ko = /^\[\^([^\]]+)]/, Go = /\f/g, qo = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Jo = /^\s*?\[(x|\s)\]/, zr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Fr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ur = /^([^\n]+)\n *(=|-){3,} *\n/, Tt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Xo = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Br = /^<!--[\s\S]*?(?:-->)/, Zo = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Pt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Qo = /^\{.*\}$/, ea = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ta = /^<([^ >]+@[^ >]+)>/, ra = /^<([^ >]+:\/[^ >]+)>/, na = /-([a-z])?/gi, Wr = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, oa = /^[^\n]+(?: \n|\n{2,})/, aa = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, ia = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, sa = /^\[([^\]]*)\] ?\[([^\]]*)\]/, ca = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, la = /\t/g, ua = /(^ *\||\| *$)/g, da = /^ *:-+: *$/, pa = /^ *:-+ *$/, fa = /^ *-+: *$/, vt = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, xt = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", ha = RegExp(`^([*_])\\1${vt(1)}${xt}\\1\\1(?!\\1)`), ma = RegExp(`^([*_])${vt(0)}${xt}\\1(?!\\1)`), ga = RegExp(`^(==)${vt(0)}${xt}\\1`), ya = RegExp(`^(~~)${vt(0)}${xt}\\1`), va = /^(:[a-zA-Z0-9-_]+:)/, xa = /^\\([^0-9A-Za-z\s])/, ba = /\\([^0-9A-Za-z\s])/g, wa = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, ka = /^\n+/, Sa = /^([ \t]*)/, Ea = /(?:^|\n)( *)$/, Zt = "(?:\\d+\\.)", Qt = "(?:[*+-])";
|
|
854
|
-
function gn(e) {
|
|
855
|
-
return "( *)(" + (e === 1 ? Zt : Qt) + ") +";
|
|
856
|
-
}
|
|
857
|
-
const yn = gn(1), vn = gn(2);
|
|
858
|
-
function xn(e) {
|
|
859
|
-
return RegExp("^" + (e === 1 ? yn : vn));
|
|
860
|
-
}
|
|
861
|
-
const Ca = xn(1), $a = xn(2);
|
|
862
|
-
function bn(e) {
|
|
863
|
-
return RegExp("^" + (e === 1 ? yn : vn) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? Zt : Qt) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
864
|
-
}
|
|
865
|
-
const Ra = bn(1), _a = bn(2);
|
|
866
|
-
function wn(e) {
|
|
867
|
-
const t = e === 1 ? Zt : Qt;
|
|
868
|
-
return RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
|
|
843
|
+
}, [t]);
|
|
869
844
|
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
845
|
+
function se() {
|
|
846
|
+
return se = Object.assign ? Object.assign.bind() : function(t) {
|
|
847
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
848
|
+
var i = arguments[n];
|
|
849
|
+
for (var c in i) Object.prototype.hasOwnProperty.call(i, c) && (t[c] = i[c]);
|
|
850
|
+
}
|
|
851
|
+
return t;
|
|
852
|
+
}, se.apply(this, arguments);
|
|
853
|
+
}
|
|
854
|
+
const Ir = ["children", "options"], jt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((t, n) => (t[n.toLowerCase()] = n, t), { class: "className", for: "htmlFor" }), Ct = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Ar = ["style", "script", "pre"], Mr = ["src", "href", "data", "formAction", "srcDoc", "action"], Dr = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Nr = /mailto:/i, Ur = /\n{2,}$/, Rt = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Fr = /^ *> ?/gm, Lr = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, zr = /^ {2,}\n/, Wr = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, _t = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, St = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Br = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Yr = /^(?:\n *)*\n/, Kr = /\r\n?/g, Vr = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Hr = /^\[\^([^\]]+)]/, qr = /\f/g, Jr = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Gr = /^\s*?\[(x|\s)\]/, Tt = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ot = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, $t = /^([^\n]+)\n *(=|-){3,} *\n/, Ne = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Zr = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Pt = /^<!--[\s\S]*?(?:-->)/, Xr = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Ue = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Qr = /^\{.*\}$/, en = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, tn = /^<([^ >]+@[^ >]+)>/, rn = /^<([^ >]+:\/[^ >]+)>/, nn = /-([a-z])?/gi, It = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, an = /^[^\n]+(?: \n|\n{2,})/, on = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, sn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, ln = /^\[([^\]]*)\] ?\[([^\]]*)\]/, cn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, un = /\t/g, dn = /(^ *\||\| *$)/g, fn = /^ *:-+: *$/, pn = /^ *:-+ *$/, hn = /^ *-+: *$/, Te = (t) => `(?=[\\s\\S]+?\\1${t ? "\\1" : ""})`, Oe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", mn = RegExp(`^([*_])\\1${Te(1)}${Oe}\\1\\1(?!\\1)`), gn = RegExp(`^([*_])${Te(0)}${Oe}\\1(?!\\1)`), xn = RegExp(`^(==)${Te(0)}${Oe}\\1`), yn = RegExp(`^(~~)${Te(0)}${Oe}\\1`), bn = /^(:[a-zA-Z0-9-_]+:)/, vn = /^\\([^0-9A-Za-z\s])/, kn = /\\([^0-9A-Za-z\s])/g, wn = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, En = /^\n+/, jn = /^([ \t]*)/, Cn = /(?:^|\n)( *)$/, Ve = "(?:\\d+\\.)", He = "(?:[*+-])";
|
|
855
|
+
function zt(t) {
|
|
856
|
+
return "( *)(" + (t === 1 ? Ve : He) + ") +";
|
|
857
|
+
}
|
|
858
|
+
const Wt = zt(1), Bt = zt(2);
|
|
859
|
+
function Yt(t) {
|
|
860
|
+
return RegExp("^" + (t === 1 ? Wt : Bt));
|
|
861
|
+
}
|
|
862
|
+
const Rn = Yt(1), _n = Yt(2);
|
|
863
|
+
function Kt(t) {
|
|
864
|
+
return RegExp("^" + (t === 1 ? Wt : Bt) + "[^\\n]*(?:\\n(?!\\1" + (t === 1 ? Ve : He) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
865
|
+
}
|
|
866
|
+
const Sn = Kt(1), Tn = Kt(2);
|
|
867
|
+
function Vt(t) {
|
|
868
|
+
const n = t === 1 ? Ve : He;
|
|
869
|
+
return RegExp("^( *)(" + n + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + n + " (?!" + n + " ))\\n*|\\s*\\n*$)");
|
|
870
|
+
}
|
|
871
|
+
const Ht = Vt(1), qt = Vt(2);
|
|
872
|
+
function At(t, n) {
|
|
873
|
+
const i = n === 1, c = i ? Ht : qt, h = i ? Sn : Tn, y = i ? Rn : _n;
|
|
874
|
+
return { t: (g) => y.test(g), o: fe(function(g, l) {
|
|
875
|
+
const p = Cn.exec(l.prevCapture);
|
|
876
|
+
return p && (l.list || !l.inline && !l.simple) ? c.exec(g = p[1] + g) : null;
|
|
877
|
+
}), i: 1, u(g, l, p) {
|
|
878
|
+
const w = i ? +g[2] : void 0, v = g[0].replace(Ur, `
|
|
879
|
+
`).match(h);
|
|
879
880
|
let m = !1;
|
|
880
|
-
return { items: v.map(function(
|
|
881
|
-
const
|
|
881
|
+
return { items: v.map(function($, k) {
|
|
882
|
+
const L = y.exec($)[0].length, T = RegExp("^ {1," + L + "}", "gm"), W = $.replace(T, "").replace(y, ""), r = k === v.length - 1, o = W.indexOf(`
|
|
882
883
|
|
|
883
|
-
`) !== -1 ||
|
|
884
|
-
m =
|
|
885
|
-
const
|
|
886
|
-
let
|
|
887
|
-
p.list = !0,
|
|
884
|
+
`) !== -1 || r && m;
|
|
885
|
+
m = o;
|
|
886
|
+
const a = p.inline, x = p.list;
|
|
887
|
+
let f;
|
|
888
|
+
p.list = !0, o ? (p.inline = !1, f = ke(W) + `
|
|
888
889
|
|
|
889
|
-
`) : (p.inline = !0,
|
|
890
|
-
const
|
|
891
|
-
return p.inline =
|
|
892
|
-
}), ordered:
|
|
893
|
-
}, l: (
|
|
894
|
-
return
|
|
890
|
+
`) : (p.inline = !0, f = ke(W));
|
|
891
|
+
const j = l(f, p);
|
|
892
|
+
return p.inline = a, p.list = x, j;
|
|
893
|
+
}), ordered: i, start: w };
|
|
894
|
+
}, l: (g, l, p) => t(g.ordered ? "ol" : "ul", { key: p.key, start: g.type === "20" ? g.start : void 0 }, g.items.map(function(w, v) {
|
|
895
|
+
return t("li", { key: v }, l(w, p));
|
|
895
896
|
})) };
|
|
896
897
|
}
|
|
897
|
-
const
|
|
898
|
-
function
|
|
899
|
-
let
|
|
900
|
-
for (;
|
|
901
|
-
return
|
|
898
|
+
const On = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), $n = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
|
|
899
|
+
function ke(t) {
|
|
900
|
+
let n = t.length;
|
|
901
|
+
for (; n > 0 && t[n - 1] <= " "; ) n--;
|
|
902
|
+
return t.slice(0, n);
|
|
902
903
|
}
|
|
903
|
-
function
|
|
904
|
-
return
|
|
904
|
+
function _e(t, n) {
|
|
905
|
+
return t.startsWith(n);
|
|
905
906
|
}
|
|
906
|
-
function
|
|
907
|
-
if (Array.isArray(
|
|
908
|
-
for (let
|
|
907
|
+
function Pn(t, n, i) {
|
|
908
|
+
if (Array.isArray(i)) {
|
|
909
|
+
for (let c = 0; c < i.length; c++) if (_e(t, i[c])) return !0;
|
|
909
910
|
return !1;
|
|
910
911
|
}
|
|
911
|
-
return
|
|
912
|
-
}
|
|
913
|
-
function
|
|
914
|
-
return
|
|
915
|
-
}
|
|
916
|
-
function
|
|
917
|
-
return
|
|
918
|
-
}
|
|
919
|
-
function
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
let
|
|
923
|
-
function
|
|
924
|
-
if (!
|
|
925
|
-
const p =
|
|
926
|
-
p.push.apply(p,
|
|
927
|
-
}
|
|
928
|
-
return
|
|
929
|
-
p.trim() === "|" && (
|
|
930
|
-
}),
|
|
931
|
-
}
|
|
932
|
-
function
|
|
933
|
-
|
|
934
|
-
const
|
|
935
|
-
return
|
|
936
|
-
`).map(function(
|
|
937
|
-
return
|
|
912
|
+
return i(t, n);
|
|
913
|
+
}
|
|
914
|
+
function ve(t) {
|
|
915
|
+
return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
|
|
916
|
+
}
|
|
917
|
+
function In(t) {
|
|
918
|
+
return hn.test(t) ? "right" : fn.test(t) ? "center" : pn.test(t) ? "left" : null;
|
|
919
|
+
}
|
|
920
|
+
function Mt(t, n, i, c) {
|
|
921
|
+
const h = i.inTable;
|
|
922
|
+
i.inTable = !0;
|
|
923
|
+
let y = [[]], g = "";
|
|
924
|
+
function l() {
|
|
925
|
+
if (!g) return;
|
|
926
|
+
const p = y[y.length - 1];
|
|
927
|
+
p.push.apply(p, n(g, i)), g = "";
|
|
928
|
+
}
|
|
929
|
+
return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p, w, v) => {
|
|
930
|
+
p.trim() === "|" && (l(), c) ? w !== 0 && w !== v.length - 1 && y.push([]) : g += p;
|
|
931
|
+
}), l(), i.inTable = h, y;
|
|
932
|
+
}
|
|
933
|
+
function An(t, n, i) {
|
|
934
|
+
i.inline = !0;
|
|
935
|
+
const c = t[2] ? t[2].replace(dn, "").split("|").map(In) : [], h = t[3] ? function(g, l, p) {
|
|
936
|
+
return g.trim().split(`
|
|
937
|
+
`).map(function(w) {
|
|
938
|
+
return Mt(w, l, p, !0);
|
|
938
939
|
});
|
|
939
|
-
}(
|
|
940
|
-
return
|
|
940
|
+
}(t[3], n, i) : [], y = Mt(t[1], n, i, !!h.length);
|
|
941
|
+
return i.inline = !1, h.length ? { align: c, cells: h, header: y, type: "25" } : { children: y, type: "21" };
|
|
941
942
|
}
|
|
942
|
-
function
|
|
943
|
-
return
|
|
943
|
+
function Dt(t, n) {
|
|
944
|
+
return t.align[n] == null ? {} : { textAlign: t.align[n] };
|
|
944
945
|
}
|
|
945
|
-
function
|
|
946
|
-
return
|
|
946
|
+
function fe(t) {
|
|
947
|
+
return t.inline = 1, t;
|
|
947
948
|
}
|
|
948
|
-
function
|
|
949
|
-
return
|
|
950
|
-
return
|
|
949
|
+
function re(t) {
|
|
950
|
+
return fe(function(n, i) {
|
|
951
|
+
return i.inline ? t.exec(n) : null;
|
|
951
952
|
});
|
|
952
953
|
}
|
|
953
|
-
function
|
|
954
|
-
return
|
|
955
|
-
return
|
|
954
|
+
function ne(t) {
|
|
955
|
+
return fe(function(n, i) {
|
|
956
|
+
return i.inline || i.simple ? t.exec(n) : null;
|
|
956
957
|
});
|
|
957
958
|
}
|
|
958
|
-
function
|
|
959
|
-
return function(
|
|
960
|
-
return
|
|
959
|
+
function ee(t) {
|
|
960
|
+
return function(n, i) {
|
|
961
|
+
return i.inline || i.simple ? null : t.exec(n);
|
|
961
962
|
};
|
|
962
963
|
}
|
|
963
|
-
function
|
|
964
|
-
return
|
|
965
|
-
return
|
|
964
|
+
function Re(t) {
|
|
965
|
+
return fe(function(n) {
|
|
966
|
+
return t.exec(n);
|
|
966
967
|
});
|
|
967
968
|
}
|
|
968
|
-
const
|
|
969
|
-
function
|
|
969
|
+
const Mn = /(javascript|vbscript|data(?!:image)):/i;
|
|
970
|
+
function Dn(t) {
|
|
970
971
|
try {
|
|
971
|
-
const
|
|
972
|
-
if (
|
|
972
|
+
const n = decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g, "");
|
|
973
|
+
if (Mn.test(n)) return null;
|
|
973
974
|
} catch {
|
|
974
975
|
return null;
|
|
975
976
|
}
|
|
976
|
-
return
|
|
977
|
+
return t;
|
|
977
978
|
}
|
|
978
|
-
function
|
|
979
|
-
return
|
|
979
|
+
function Q(t) {
|
|
980
|
+
return t && t.replace(kn, "$1");
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
-
const
|
|
983
|
-
|
|
984
|
-
const
|
|
985
|
-
return
|
|
982
|
+
function Se(t, n, i) {
|
|
983
|
+
const c = i.inline || !1, h = i.simple || !1;
|
|
984
|
+
i.inline = !0, i.simple = !0;
|
|
985
|
+
const y = t(n, i);
|
|
986
|
+
return i.inline = c, i.simple = h, y;
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
-
const
|
|
989
|
-
|
|
990
|
-
const
|
|
991
|
-
return
|
|
988
|
+
function Nn(t, n, i) {
|
|
989
|
+
const c = i.inline || !1, h = i.simple || !1;
|
|
990
|
+
i.inline = !1, i.simple = !0;
|
|
991
|
+
const y = t(n, i);
|
|
992
|
+
return i.inline = c, i.simple = h, y;
|
|
992
993
|
}
|
|
993
|
-
function
|
|
994
|
-
const
|
|
995
|
-
|
|
996
|
-
const
|
|
997
|
-
return
|
|
994
|
+
function Un(t, n, i) {
|
|
995
|
+
const c = i.inline || !1;
|
|
996
|
+
i.inline = !1;
|
|
997
|
+
const h = t(n, i);
|
|
998
|
+
return i.inline = c, h;
|
|
998
999
|
}
|
|
999
|
-
const
|
|
1000
|
-
function
|
|
1000
|
+
const Fe = (t, n, i) => ({ children: Se(n, t[2], i) });
|
|
1001
|
+
function Le() {
|
|
1001
1002
|
return {};
|
|
1002
1003
|
}
|
|
1003
|
-
function
|
|
1004
|
+
function ze() {
|
|
1004
1005
|
return null;
|
|
1005
1006
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1008
|
-
}
|
|
1009
|
-
function
|
|
1010
|
-
let
|
|
1011
|
-
const
|
|
1012
|
-
for (;
|
|
1013
|
-
return
|
|
1014
|
-
}
|
|
1015
|
-
function
|
|
1016
|
-
|
|
1017
|
-
const
|
|
1018
|
-
function
|
|
1019
|
-
const
|
|
1020
|
-
return
|
|
1021
|
-
const
|
|
1022
|
-
return
|
|
1023
|
-
}(
|
|
1024
|
-
}
|
|
1025
|
-
function p(
|
|
1026
|
-
|
|
1027
|
-
let
|
|
1028
|
-
|
|
1029
|
-
const
|
|
1007
|
+
function Fn(...t) {
|
|
1008
|
+
return t.filter(Boolean).join(" ");
|
|
1009
|
+
}
|
|
1010
|
+
function We(t, n, i) {
|
|
1011
|
+
let c = t;
|
|
1012
|
+
const h = n.split(".");
|
|
1013
|
+
for (; h.length && (c = c[h[0]], c !== void 0); ) h.shift();
|
|
1014
|
+
return c || i;
|
|
1015
|
+
}
|
|
1016
|
+
function Ln(t = "", n = {}) {
|
|
1017
|
+
n.overrides = n.overrides || {}, n.namedCodesToUnicode = n.namedCodesToUnicode ? se({}, Ct, n.namedCodesToUnicode) : Ct;
|
|
1018
|
+
const i = n.slugify || ve, c = n.sanitizer || Dn, h = n.createElement || Ft.createElement, y = [Rt, _t, St, n.enforceAtxHeadings ? Ot : Tt, $t, It, Ht, qt], g = [...y, an, Ne, Pt, Ue];
|
|
1019
|
+
function l(r, o, ...a) {
|
|
1020
|
+
const x = We(n.overrides, r + ".props", {});
|
|
1021
|
+
return h(function(f, j) {
|
|
1022
|
+
const S = We(j, f);
|
|
1023
|
+
return S ? typeof S == "function" || typeof S == "object" && "render" in S ? S : We(j, f + ".component", f) : f;
|
|
1024
|
+
}(r, n.overrides), se({}, o, x, { className: Fn(o == null ? void 0 : o.className, x.className) || void 0 }), ...a);
|
|
1025
|
+
}
|
|
1026
|
+
function p(r) {
|
|
1027
|
+
r = r.replace(Jr, "");
|
|
1028
|
+
let o = !1;
|
|
1029
|
+
n.forceInline ? o = !0 : n.forceBlock || (o = cn.test(r) === !1);
|
|
1030
|
+
const a = L(k(o ? r : ke(r).replace(En, "") + `
|
|
1030
1031
|
|
|
1031
|
-
`, { inline:
|
|
1032
|
-
for (; typeof
|
|
1033
|
-
if (
|
|
1034
|
-
const
|
|
1035
|
-
let
|
|
1036
|
-
if (
|
|
1032
|
+
`, { inline: o }));
|
|
1033
|
+
for (; typeof a[a.length - 1] == "string" && !a[a.length - 1].trim(); ) a.pop();
|
|
1034
|
+
if (n.wrapper === null) return a;
|
|
1035
|
+
const x = n.wrapper || (o ? "span" : "div");
|
|
1036
|
+
let f;
|
|
1037
|
+
if (a.length > 1 || n.forceWrapper) f = a;
|
|
1037
1038
|
else {
|
|
1038
|
-
if (
|
|
1039
|
-
|
|
1040
|
-
}
|
|
1041
|
-
return
|
|
1042
|
-
}
|
|
1043
|
-
function
|
|
1044
|
-
if (!
|
|
1045
|
-
const
|
|
1046
|
-
return
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
const
|
|
1050
|
-
return
|
|
1051
|
-
return
|
|
1052
|
-
})),
|
|
1053
|
-
}(
|
|
1054
|
-
const
|
|
1055
|
-
return (
|
|
1056
|
-
}(
|
|
1057
|
-
if (M === "ref") return
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1060
|
-
const
|
|
1061
|
-
let
|
|
1062
|
-
if (!
|
|
1063
|
-
for (let
|
|
1064
|
-
const
|
|
1065
|
-
if (
|
|
1039
|
+
if (a.length === 1) return f = a[0], typeof f == "string" ? l("span", { key: "outer" }, f) : f;
|
|
1040
|
+
f = null;
|
|
1041
|
+
}
|
|
1042
|
+
return h(x, { key: "outer" }, f);
|
|
1043
|
+
}
|
|
1044
|
+
function w(r, o) {
|
|
1045
|
+
if (!o || !o.trim()) return null;
|
|
1046
|
+
const a = o.match(Dr);
|
|
1047
|
+
return a ? a.reduce(function(x, f) {
|
|
1048
|
+
const j = f.indexOf("=");
|
|
1049
|
+
if (j !== -1) {
|
|
1050
|
+
const S = function(P) {
|
|
1051
|
+
return P.indexOf("-") !== -1 && P.match(Xr) === null && (P = P.replace(nn, function(U, R) {
|
|
1052
|
+
return R.toUpperCase();
|
|
1053
|
+
})), P;
|
|
1054
|
+
}(f.slice(0, j)).trim(), I = function(P) {
|
|
1055
|
+
const U = P[0];
|
|
1056
|
+
return (U === '"' || U === "'") && P.length >= 2 && P[P.length - 1] === U ? P.slice(1, -1) : P;
|
|
1057
|
+
}(f.slice(j + 1).trim()), M = jt[S] || S;
|
|
1058
|
+
if (M === "ref") return x;
|
|
1059
|
+
const N = x[M] = function(P, U, R, V) {
|
|
1060
|
+
return U === "style" ? function(F) {
|
|
1061
|
+
const J = [];
|
|
1062
|
+
let G = "", Z = !1, ae = !1, le = "";
|
|
1063
|
+
if (!F) return J;
|
|
1064
|
+
for (let X = 0; X < F.length; X++) {
|
|
1065
|
+
const K = F[X];
|
|
1066
|
+
if (K !== '"' && K !== "'" || Z || (ae ? K === le && (ae = !1, le = "") : (ae = !0, le = K)), K === "(" && G.endsWith("url") ? Z = !0 : K === ")" && Z && (Z = !1), K !== ";" || ae || Z) G += K;
|
|
1066
1067
|
else {
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
const
|
|
1070
|
-
if (
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1068
|
+
const te = G.trim();
|
|
1069
|
+
if (te) {
|
|
1070
|
+
const he = te.indexOf(":");
|
|
1071
|
+
if (he > 0) {
|
|
1072
|
+
const me = te.slice(0, he).trim(), ge = te.slice(he + 1).trim();
|
|
1073
|
+
J.push([me, ge]);
|
|
1073
1074
|
}
|
|
1074
1075
|
}
|
|
1075
|
-
|
|
1076
|
+
G = "";
|
|
1076
1077
|
}
|
|
1077
1078
|
}
|
|
1078
|
-
const oe =
|
|
1079
|
+
const oe = G.trim();
|
|
1079
1080
|
if (oe) {
|
|
1080
|
-
const
|
|
1081
|
-
if (
|
|
1082
|
-
const
|
|
1083
|
-
|
|
1081
|
+
const X = oe.indexOf(":");
|
|
1082
|
+
if (X > 0) {
|
|
1083
|
+
const K = oe.slice(0, X).trim(), te = oe.slice(X + 1).trim();
|
|
1084
|
+
J.push([K, te]);
|
|
1084
1085
|
}
|
|
1085
1086
|
}
|
|
1086
|
-
return
|
|
1087
|
-
}(
|
|
1088
|
-
return
|
|
1089
|
-
}, {}) :
|
|
1090
|
-
}(
|
|
1091
|
-
typeof
|
|
1092
|
-
} else
|
|
1093
|
-
return
|
|
1087
|
+
return J;
|
|
1088
|
+
}(R).reduce(function(F, [J, G]) {
|
|
1089
|
+
return F[J.replace(/(-[a-z])/g, (Z) => Z[1].toUpperCase())] = V(G, P, J), F;
|
|
1090
|
+
}, {}) : Mr.indexOf(U) !== -1 ? V(Q(R), P, U) : (R.match(Qr) && (R = Q(R.slice(1, R.length - 1))), R === "true" || R !== "false" && R);
|
|
1091
|
+
}(r, S, I, c);
|
|
1092
|
+
typeof N == "string" && (Ne.test(N) || Ue.test(N)) && (x[M] = p(N.trim()));
|
|
1093
|
+
} else f !== "style" && (x[jt[f] || f] = !0);
|
|
1094
|
+
return x;
|
|
1094
1095
|
}, {}) : null;
|
|
1095
1096
|
}
|
|
1096
|
-
const v = [], m = {},
|
|
1097
|
-
const [,
|
|
1098
|
-
return { alert:
|
|
1099
|
-
}, l(
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1102
|
-
} }, 1: { o:
|
|
1103
|
-
const
|
|
1104
|
-
return
|
|
1105
|
-
}, o:
|
|
1106
|
-
const [,
|
|
1107
|
-
var
|
|
1108
|
-
const M =
|
|
1109
|
-
if (
|
|
1097
|
+
const v = [], m = {}, $ = { 0: { t: [">"], o: ee(Rt), i: 1, u(r, o, a) {
|
|
1098
|
+
const [, x, f] = r[0].replace(Fr, "").match(Lr);
|
|
1099
|
+
return { alert: x, children: o(f, a) };
|
|
1100
|
+
}, l(r, o, a) {
|
|
1101
|
+
const x = { key: a.key };
|
|
1102
|
+
return r.alert && (x.className = "markdown-alert-" + i(r.alert.toLowerCase(), ve), r.children.unshift({ attrs: {}, children: [{ type: "27", text: r.alert }], noInnerParse: !0, type: "11", tag: "header" })), l("blockquote", x, o(r.children, a));
|
|
1103
|
+
} }, 1: { o: Re(zr), i: 1, u: Le, l: (r, o, a) => l("br", { key: a.key }) }, 2: { t: (r) => {
|
|
1104
|
+
const o = r[0];
|
|
1105
|
+
return o === "-" || o === "*" || o === "_";
|
|
1106
|
+
}, o: ee(Wr), i: 1, u: Le, l: (r, o, a) => l("hr", { key: a.key }) }, 3: { t: [" "], o: ee(St), i: 0, u: (r) => ({ lang: void 0, text: Q(ke(r[0].replace(/^ {4}/gm, ""))) }), l: (r, o, a) => l("pre", { key: a.key }, l("code", se({}, r.attrs, { className: r.lang ? "lang-" + r.lang : "" }), r.text)) }, 4: { t: ["```", "~~~"], o: ee(_t), i: 0, u: (r) => ({ attrs: w("code", r[3] || ""), lang: r[2] || void 0, text: r[4], type: "3" }) }, 5: { t: ["`"], o: ne(Br), i: 3, u: (r) => ({ text: Q(r[2]) }), l: (r, o, a) => l("code", { key: a.key }, r.text) }, 6: { t: ["[^"], o: ee(Vr), i: 0, u: (r) => (v.push({ footnote: r[2], identifier: r[1] }), {}), l: ze }, 7: { t: ["[^"], o: re(Hr), i: 1, u: (r) => ({ target: "#" + i(r[1], ve), text: r[1] }), l: (r, o, a) => l("a", { key: a.key, href: c(r.target, "a", "href") }, l("sup", { key: a.key }, r.text)) }, 8: { t: ["[ ]", "[x]"], o: re(Gr), i: 1, u: (r) => ({ completed: r[1].toLowerCase() === "x" }), l: (r, o, a) => l("input", { checked: r.completed, key: a.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: ee(n.enforceAtxHeadings ? Ot : Tt), i: 1, u: (r, o, a) => ({ children: Se(o, r[2], a), id: i(r[2], ve), level: r[1].length }), l: (r, o, a) => l("h" + r.level, { id: r.id, key: a.key }, o(r.children, a)) }, 10: { o: ee($t), i: 0, u: (r, o, a) => ({ children: Se(o, r[1], a), level: r[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: Re(Ne), i: 1, u(r, o, a) {
|
|
1107
|
+
const [, x] = r[3].match(jn), f = RegExp("^" + x, "gm"), j = r[3].replace(f, ""), S = (I = j, g.some((R) => R.test(I)) ? Un : Se);
|
|
1108
|
+
var I;
|
|
1109
|
+
const M = r[1].toLowerCase(), N = Ar.indexOf(M) !== -1, P = (N ? M : r[1]).trim(), U = { attrs: w(P, r[2]), noInnerParse: N, tag: P };
|
|
1110
|
+
if (a.inAnchor = a.inAnchor || M === "a", N) U.text = r[3];
|
|
1110
1111
|
else {
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1114
|
-
return
|
|
1115
|
-
}, l: (
|
|
1116
|
-
const
|
|
1117
|
-
return { attrs:
|
|
1118
|
-
}, l: (
|
|
1119
|
-
let
|
|
1120
|
-
return
|
|
1121
|
-
} }, 20:
|
|
1122
|
-
` }, 21: { o:
|
|
1123
|
-
if (
|
|
1112
|
+
const R = a.inHTML;
|
|
1113
|
+
a.inHTML = !0, U.children = S(o, j, a), a.inHTML = R;
|
|
1114
|
+
}
|
|
1115
|
+
return a.inAnchor = !1, U;
|
|
1116
|
+
}, l: (r, o, a) => l(r.tag, se({ key: a.key }, r.attrs), r.text || (r.children ? o(r.children, a) : "")) }, 13: { t: ["<"], o: Re(Ue), i: 1, u(r) {
|
|
1117
|
+
const o = r[1].trim();
|
|
1118
|
+
return { attrs: w(o, r[2] || ""), tag: o };
|
|
1119
|
+
}, l: (r, o, a) => l(r.tag, se({}, r.attrs, { key: a.key })) }, 12: { t: ["<!--"], o: Re(Pt), i: 1, u: () => ({}), l: ze }, 14: { t: ["!["], o: ne($n), i: 1, u: (r) => ({ alt: Q(r[1]), target: Q(r[2]), title: Q(r[3]) }), l: (r, o, a) => l("img", { key: a.key, alt: r.alt || void 0, title: r.title || void 0, src: c(r.target, "img", "src") }) }, 15: { t: ["["], o: re(On), i: 3, u: (r, o, a) => ({ children: Nn(o, r[1], a), target: Q(r[2]), title: Q(r[3]) }), l: (r, o, a) => l("a", { key: a.key, href: c(r.target, "a", "href"), title: r.title }, o(r.children, a)) }, 16: { t: ["<"], o: re(rn), i: 0, u: (r) => ({ children: [{ text: r[1], type: "27" }], target: r[1], type: "15" }) }, 17: { t: (r, o) => !o.inAnchor && !n.disableAutoLink && (_e(r, "http://") || _e(r, "https://")), o: re(en), i: 0, u: (r) => ({ children: [{ text: r[1], type: "27" }], target: r[1], title: void 0, type: "15" }) }, 18: { t: ["<"], o: re(tn), i: 0, u(r) {
|
|
1120
|
+
let o = r[1], a = r[1];
|
|
1121
|
+
return Nr.test(a) || (a = "mailto:" + a), { children: [{ text: o.replace("mailto:", ""), type: "27" }], target: a, type: "15" };
|
|
1122
|
+
} }, 20: At(l, 1), 33: At(l, 2), 19: { o: ee(Yr), i: 3, u: Le, l: () => `
|
|
1123
|
+
` }, 21: { o: fe(function(r, o) {
|
|
1124
|
+
if (o.inline || o.simple || o.inHTML && r.indexOf(`
|
|
1124
1125
|
|
|
1125
|
-
`) === -1 &&
|
|
1126
|
+
`) === -1 && o.prevCapture.indexOf(`
|
|
1126
1127
|
|
|
1127
1128
|
`) === -1) return null;
|
|
1128
|
-
let
|
|
1129
|
-
|
|
1130
|
-
`).every((
|
|
1131
|
-
`, !
|
|
1132
|
-
const
|
|
1133
|
-
return
|
|
1134
|
-
}), i: 3, u:
|
|
1135
|
-
const
|
|
1136
|
-
return
|
|
1137
|
-
return
|
|
1138
|
-
}))),
|
|
1139
|
-
return
|
|
1140
|
-
return
|
|
1129
|
+
let a = "";
|
|
1130
|
+
r.split(`
|
|
1131
|
+
`).every((f) => (f += `
|
|
1132
|
+
`, !y.some((j) => j.test(f)) && (a += f, !!f.trim())));
|
|
1133
|
+
const x = ke(a);
|
|
1134
|
+
return x === "" ? null : [a, , x];
|
|
1135
|
+
}), i: 3, u: Fe, l: (r, o, a) => l("p", { key: a.key }, o(r.children, a)) }, 22: { t: ["["], o: re(on), i: 0, u: (r) => (m[r[1]] = { target: r[2], title: r[4] }, {}), l: ze }, 23: { t: ["!["], o: ne(sn), i: 0, u: (r) => ({ alt: r[1] ? Q(r[1]) : void 0, ref: r[2] }), l: (r, o, a) => m[r.ref] ? l("img", { key: a.key, alt: r.alt, src: c(m[r.ref].target, "img", "src"), title: m[r.ref].title }) : null }, 24: { t: (r) => r[0] === "[" && r.indexOf("](") === -1, o: re(ln), i: 0, u: (r, o, a) => ({ children: o(r[1], a), fallbackChildren: r[0], ref: r[2] }), l: (r, o, a) => m[r.ref] ? l("a", { key: a.key, href: c(m[r.ref].target, "a", "href"), title: m[r.ref].title }, o(r.children, a)) : l("span", { key: a.key }, r.fallbackChildren) }, 25: { t: ["|"], o: ee(It), i: 1, u: An, l(r, o, a) {
|
|
1136
|
+
const x = r;
|
|
1137
|
+
return l("table", { key: a.key }, l("thead", null, l("tr", null, x.header.map(function(f, j) {
|
|
1138
|
+
return l("th", { key: j, style: Dt(x, j) }, o(f, a));
|
|
1139
|
+
}))), l("tbody", null, x.cells.map(function(f, j) {
|
|
1140
|
+
return l("tr", { key: j }, f.map(function(S, I) {
|
|
1141
|
+
return l("td", { key: I, style: Dt(x, I) }, o(S, a));
|
|
1141
1142
|
}));
|
|
1142
1143
|
})));
|
|
1143
|
-
} }, 27: { o:
|
|
1144
|
-
let
|
|
1145
|
-
return
|
|
1146
|
-
}), i: 4, u(
|
|
1147
|
-
const
|
|
1148
|
-
return { text:
|
|
1149
|
-
}, l: (
|
|
1150
|
-
const
|
|
1151
|
-
return (
|
|
1152
|
-
}, o:
|
|
1153
|
-
|
|
1154
|
-
const
|
|
1155
|
-
var
|
|
1156
|
-
function
|
|
1157
|
-
var
|
|
1158
|
-
if (
|
|
1159
|
-
var
|
|
1160
|
-
if (!M.t ||
|
|
1161
|
-
var
|
|
1162
|
-
if (
|
|
1163
|
-
|
|
1164
|
-
var
|
|
1165
|
-
|
|
1144
|
+
} }, 27: { o: fe(function(r, o) {
|
|
1145
|
+
let a;
|
|
1146
|
+
return _e(r, ":") && (a = bn.exec(r)), a || wn.exec(r);
|
|
1147
|
+
}), i: 4, u(r) {
|
|
1148
|
+
const o = r[0];
|
|
1149
|
+
return { text: o.indexOf("&") === -1 ? o : o.replace(Zr, (a, x) => n.namedCodesToUnicode[x] || a) };
|
|
1150
|
+
}, l: (r) => r.text }, 28: { t: ["**", "__"], o: ne(mn), i: 2, u: (r, o, a) => ({ children: o(r[2], a) }), l: (r, o, a) => l("strong", { key: a.key }, o(r.children, a)) }, 29: { t: (r) => {
|
|
1151
|
+
const o = r[0];
|
|
1152
|
+
return (o === "*" || o === "_") && r[1] !== o;
|
|
1153
|
+
}, o: ne(gn), i: 3, u: (r, o, a) => ({ children: o(r[2], a) }), l: (r, o, a) => l("em", { key: a.key }, o(r.children, a)) }, 30: { t: ["\\"], o: ne(vn), i: 1, u: (r) => ({ text: r[1], type: "27" }) }, 31: { t: ["=="], o: ne(xn), i: 3, u: Fe, l: (r, o, a) => l("mark", { key: a.key }, o(r.children, a)) }, 32: { t: ["~~"], o: ne(yn), i: 3, u: Fe, l: (r, o, a) => l("del", { key: a.key }, o(r.children, a)) } };
|
|
1154
|
+
n.disableParsingRawHTML === !0 && (delete $[11], delete $[13]);
|
|
1155
|
+
const k = function(r) {
|
|
1156
|
+
var o = Object.keys(r);
|
|
1157
|
+
function a(x, f) {
|
|
1158
|
+
var j = [];
|
|
1159
|
+
if (f.prevCapture = f.prevCapture || "", x.trim()) for (; x; ) for (var S = 0; S < o.length; ) {
|
|
1160
|
+
var I = o[S], M = r[I];
|
|
1161
|
+
if (!M.t || Pn(x, f, M.t)) {
|
|
1162
|
+
var N = M.o(x, f);
|
|
1163
|
+
if (N && N[0]) {
|
|
1164
|
+
x = x.substring(N[0].length);
|
|
1165
|
+
var P = M.u(N, a, f);
|
|
1166
|
+
f.prevCapture += N[0], P.type || (P.type = I), j.push(P);
|
|
1166
1167
|
break;
|
|
1167
1168
|
}
|
|
1168
|
-
|
|
1169
|
-
} else
|
|
1169
|
+
S++;
|
|
1170
|
+
} else S++;
|
|
1170
1171
|
}
|
|
1171
|
-
return
|
|
1172
|
-
}
|
|
1173
|
-
return
|
|
1174
|
-
return
|
|
1175
|
-
}), function(
|
|
1176
|
-
return
|
|
1177
|
-
return
|
|
1178
|
-
`).replace(
|
|
1179
|
-
}(
|
|
1172
|
+
return f.prevCapture = "", j;
|
|
1173
|
+
}
|
|
1174
|
+
return o.sort(function(x, f) {
|
|
1175
|
+
return r[x].i - r[f].i || (x < f ? -1 : 1);
|
|
1176
|
+
}), function(x, f) {
|
|
1177
|
+
return a(function(j) {
|
|
1178
|
+
return j.replace(Kr, `
|
|
1179
|
+
`).replace(qr, "").replace(un, " ");
|
|
1180
|
+
}(x), f);
|
|
1180
1181
|
};
|
|
1181
|
-
}(
|
|
1182
|
-
return function(
|
|
1183
|
-
const
|
|
1184
|
-
return
|
|
1182
|
+
}($), L = (T = /* @__PURE__ */ function(r, o) {
|
|
1183
|
+
return function(a, x, f) {
|
|
1184
|
+
const j = r[a.type].l;
|
|
1185
|
+
return o ? o(() => j(a, x, f), a, x, f) : j(a, x, f);
|
|
1185
1186
|
};
|
|
1186
|
-
}(
|
|
1187
|
-
if (Array.isArray(
|
|
1188
|
-
const
|
|
1189
|
-
let
|
|
1190
|
-
for (let
|
|
1191
|
-
|
|
1192
|
-
const
|
|
1193
|
-
M &&
|
|
1187
|
+
}($, n.renderRule), function r(o, a = {}) {
|
|
1188
|
+
if (Array.isArray(o)) {
|
|
1189
|
+
const x = a.key, f = [];
|
|
1190
|
+
let j = !1;
|
|
1191
|
+
for (let S = 0; S < o.length; S++) {
|
|
1192
|
+
a.key = S;
|
|
1193
|
+
const I = r(o[S], a), M = typeof I == "string";
|
|
1194
|
+
M && j ? f[f.length - 1] += I : I !== null && f.push(I), j = M;
|
|
1194
1195
|
}
|
|
1195
|
-
return
|
|
1196
|
+
return a.key = x, f;
|
|
1196
1197
|
}
|
|
1197
|
-
return
|
|
1198
|
+
return T(o, r, a);
|
|
1198
1199
|
});
|
|
1199
|
-
var
|
|
1200
|
-
const
|
|
1201
|
-
return v.length ?
|
|
1202
|
-
return
|
|
1203
|
-
}))) :
|
|
1204
|
-
}
|
|
1205
|
-
const
|
|
1206
|
-
let { children:
|
|
1207
|
-
if (
|
|
1208
|
-
var
|
|
1209
|
-
for (
|
|
1200
|
+
var T;
|
|
1201
|
+
const W = p(t);
|
|
1202
|
+
return v.length ? l("div", null, W, l("footer", { key: "footer" }, v.map(function(r) {
|
|
1203
|
+
return l("div", { id: i(r.identifier, ve), key: r.identifier }, r.identifier, L(k(r.footnote, { inline: !0 })));
|
|
1204
|
+
}))) : W;
|
|
1205
|
+
}
|
|
1206
|
+
const zn = (t) => {
|
|
1207
|
+
let { children: n = "", options: i } = t, c = function(h, y) {
|
|
1208
|
+
if (h == null) return {};
|
|
1209
|
+
var g, l, p = {}, w = Object.keys(h);
|
|
1210
|
+
for (l = 0; l < w.length; l++) y.indexOf(g = w[l]) >= 0 || (p[g] = h[g]);
|
|
1210
1211
|
return p;
|
|
1211
|
-
}(
|
|
1212
|
-
return
|
|
1212
|
+
}(t, Ir);
|
|
1213
|
+
return Ft.cloneElement(Ln(n, i), c);
|
|
1213
1214
|
};
|
|
1214
|
-
function
|
|
1215
|
-
return /* @__PURE__ */
|
|
1216
|
-
|
|
1215
|
+
function qe({ content: t, className: n }) {
|
|
1216
|
+
return /* @__PURE__ */ u.jsx("div", { className: n, children: /* @__PURE__ */ u.jsx(
|
|
1217
|
+
zn,
|
|
1217
1218
|
{
|
|
1218
1219
|
options: {
|
|
1219
1220
|
overrides: {
|
|
@@ -1307,1094 +1308,11 @@ function er({ content: e, className: t }) {
|
|
|
1307
1308
|
}
|
|
1308
1309
|
}
|
|
1309
1310
|
},
|
|
1310
|
-
children:
|
|
1311
|
+
children: t
|
|
1311
1312
|
}
|
|
1312
1313
|
) });
|
|
1313
1314
|
}
|
|
1314
|
-
|
|
1315
|
-
return re = Object.assign || function(t) {
|
|
1316
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1317
|
-
r = arguments[n];
|
|
1318
|
-
for (var l in r) Object.prototype.hasOwnProperty.call(r, l) && (t[l] = r[l]);
|
|
1319
|
-
}
|
|
1320
|
-
return t;
|
|
1321
|
-
}, re.apply(this, arguments);
|
|
1322
|
-
};
|
|
1323
|
-
function Le(e, t, r) {
|
|
1324
|
-
if (r || arguments.length === 2) for (var n = 0, i = t.length, l; n < i; n++)
|
|
1325
|
-
(l || !(n in t)) && (l || (l = Array.prototype.slice.call(t, 0, n)), l[n] = t[n]);
|
|
1326
|
-
return e.concat(l || Array.prototype.slice.call(t));
|
|
1327
|
-
}
|
|
1328
|
-
function Ua(e) {
|
|
1329
|
-
var t = /* @__PURE__ */ Object.create(null);
|
|
1330
|
-
return function(r) {
|
|
1331
|
-
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
1332
|
-
};
|
|
1333
|
-
}
|
|
1334
|
-
var Ba = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Wa = /* @__PURE__ */ Ua(
|
|
1335
|
-
function(e) {
|
|
1336
|
-
return Ba.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1337
|
-
}
|
|
1338
|
-
/* Z+1 */
|
|
1339
|
-
), z = "-ms-", Qe = "-moz-", I = "-webkit-", En = "comm", bt = "rule", tr = "decl", Va = "@import", Cn = "@keyframes", Ya = "@layer", $n = Math.abs, rr = String.fromCharCode, Wt = Object.assign;
|
|
1340
|
-
function Ha(e, t) {
|
|
1341
|
-
return K(e, 0) ^ 45 ? (((t << 2 ^ K(e, 0)) << 2 ^ K(e, 1)) << 2 ^ K(e, 2)) << 2 ^ K(e, 3) : 0;
|
|
1342
|
-
}
|
|
1343
|
-
function Rn(e) {
|
|
1344
|
-
return e.trim();
|
|
1345
|
-
}
|
|
1346
|
-
function be(e, t) {
|
|
1347
|
-
return (e = t.exec(e)) ? e[0] : e;
|
|
1348
|
-
}
|
|
1349
|
-
function R(e, t, r) {
|
|
1350
|
-
return e.replace(t, r);
|
|
1351
|
-
}
|
|
1352
|
-
function lt(e, t, r) {
|
|
1353
|
-
return e.indexOf(t, r);
|
|
1354
|
-
}
|
|
1355
|
-
function K(e, t) {
|
|
1356
|
-
return e.charCodeAt(t) | 0;
|
|
1357
|
-
}
|
|
1358
|
-
function ze(e, t, r) {
|
|
1359
|
-
return e.slice(t, r);
|
|
1360
|
-
}
|
|
1361
|
-
function ve(e) {
|
|
1362
|
-
return e.length;
|
|
1363
|
-
}
|
|
1364
|
-
function _n(e) {
|
|
1365
|
-
return e.length;
|
|
1366
|
-
}
|
|
1367
|
-
function Xe(e, t) {
|
|
1368
|
-
return t.push(e), e;
|
|
1369
|
-
}
|
|
1370
|
-
function Ka(e, t) {
|
|
1371
|
-
return e.map(t).join("");
|
|
1372
|
-
}
|
|
1373
|
-
function Kr(e, t) {
|
|
1374
|
-
return e.filter(function(r) {
|
|
1375
|
-
return !be(r, t);
|
|
1376
|
-
});
|
|
1377
|
-
}
|
|
1378
|
-
var wt = 1, Fe = 1, jn = 0, le = 0, W = 0, Ye = "";
|
|
1379
|
-
function kt(e, t, r, n, i, l, d, u) {
|
|
1380
|
-
return { value: e, root: t, parent: r, type: n, props: i, children: l, line: wt, column: Fe, length: d, return: "", siblings: u };
|
|
1381
|
-
}
|
|
1382
|
-
function Ee(e, t) {
|
|
1383
|
-
return Wt(kt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
1384
|
-
}
|
|
1385
|
-
function De(e) {
|
|
1386
|
-
for (; e.root; )
|
|
1387
|
-
e = Ee(e.root, { children: [e] });
|
|
1388
|
-
Xe(e, e.siblings);
|
|
1389
|
-
}
|
|
1390
|
-
function Ga() {
|
|
1391
|
-
return W;
|
|
1392
|
-
}
|
|
1393
|
-
function qa() {
|
|
1394
|
-
return W = le > 0 ? K(Ye, --le) : 0, Fe--, W === 10 && (Fe = 1, wt--), W;
|
|
1395
|
-
}
|
|
1396
|
-
function he() {
|
|
1397
|
-
return W = le < jn ? K(Ye, le++) : 0, Fe++, W === 10 && (Fe = 1, wt++), W;
|
|
1398
|
-
}
|
|
1399
|
-
function je() {
|
|
1400
|
-
return K(Ye, le);
|
|
1401
|
-
}
|
|
1402
|
-
function ut() {
|
|
1403
|
-
return le;
|
|
1404
|
-
}
|
|
1405
|
-
function St(e, t) {
|
|
1406
|
-
return ze(Ye, e, t);
|
|
1407
|
-
}
|
|
1408
|
-
function Vt(e) {
|
|
1409
|
-
switch (e) {
|
|
1410
|
-
case 0:
|
|
1411
|
-
case 9:
|
|
1412
|
-
case 10:
|
|
1413
|
-
case 13:
|
|
1414
|
-
case 32:
|
|
1415
|
-
return 5;
|
|
1416
|
-
case 33:
|
|
1417
|
-
case 43:
|
|
1418
|
-
case 44:
|
|
1419
|
-
case 47:
|
|
1420
|
-
case 62:
|
|
1421
|
-
case 64:
|
|
1422
|
-
case 126:
|
|
1423
|
-
case 59:
|
|
1424
|
-
case 123:
|
|
1425
|
-
case 125:
|
|
1426
|
-
return 4;
|
|
1427
|
-
case 58:
|
|
1428
|
-
return 3;
|
|
1429
|
-
case 34:
|
|
1430
|
-
case 39:
|
|
1431
|
-
case 40:
|
|
1432
|
-
case 91:
|
|
1433
|
-
return 2;
|
|
1434
|
-
case 41:
|
|
1435
|
-
case 93:
|
|
1436
|
-
return 1;
|
|
1437
|
-
}
|
|
1438
|
-
return 0;
|
|
1439
|
-
}
|
|
1440
|
-
function Ja(e) {
|
|
1441
|
-
return wt = Fe = 1, jn = ve(Ye = e), le = 0, [];
|
|
1442
|
-
}
|
|
1443
|
-
function Xa(e) {
|
|
1444
|
-
return Ye = "", e;
|
|
1445
|
-
}
|
|
1446
|
-
function Mt(e) {
|
|
1447
|
-
return Rn(St(le - 1, Yt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1448
|
-
}
|
|
1449
|
-
function Za(e) {
|
|
1450
|
-
for (; (W = je()) && W < 33; )
|
|
1451
|
-
he();
|
|
1452
|
-
return Vt(e) > 2 || Vt(W) > 3 ? "" : " ";
|
|
1453
|
-
}
|
|
1454
|
-
function Qa(e, t) {
|
|
1455
|
-
for (; --t && he() && !(W < 48 || W > 102 || W > 57 && W < 65 || W > 70 && W < 97); )
|
|
1456
|
-
;
|
|
1457
|
-
return St(e, ut() + (t < 6 && je() == 32 && he() == 32));
|
|
1458
|
-
}
|
|
1459
|
-
function Yt(e) {
|
|
1460
|
-
for (; he(); )
|
|
1461
|
-
switch (W) {
|
|
1462
|
-
case e:
|
|
1463
|
-
return le;
|
|
1464
|
-
case 34:
|
|
1465
|
-
case 39:
|
|
1466
|
-
e !== 34 && e !== 39 && Yt(W);
|
|
1467
|
-
break;
|
|
1468
|
-
case 40:
|
|
1469
|
-
e === 41 && Yt(e);
|
|
1470
|
-
break;
|
|
1471
|
-
case 92:
|
|
1472
|
-
he();
|
|
1473
|
-
break;
|
|
1474
|
-
}
|
|
1475
|
-
return le;
|
|
1476
|
-
}
|
|
1477
|
-
function ei(e, t) {
|
|
1478
|
-
for (; he() && e + W !== 57; )
|
|
1479
|
-
if (e + W === 84 && je() === 47)
|
|
1480
|
-
break;
|
|
1481
|
-
return "/*" + St(t, le - 1) + "*" + rr(e === 47 ? e : he());
|
|
1482
|
-
}
|
|
1483
|
-
function ti(e) {
|
|
1484
|
-
for (; !Vt(je()); )
|
|
1485
|
-
he();
|
|
1486
|
-
return St(e, le);
|
|
1487
|
-
}
|
|
1488
|
-
function ri(e) {
|
|
1489
|
-
return Xa(dt("", null, null, null, [""], e = Ja(e), 0, [0], e));
|
|
1490
|
-
}
|
|
1491
|
-
function dt(e, t, r, n, i, l, d, u, p) {
|
|
1492
|
-
for (var S = 0, v = 0, m = d, E = 0, w = 0, _ = 0, C = 1, N = 1, o = 1, c = 0, s = "", g = i, h = l, x = n, b = s; N; )
|
|
1493
|
-
switch (_ = c, c = he()) {
|
|
1494
|
-
case 40:
|
|
1495
|
-
if (_ != 108 && K(b, m - 1) == 58) {
|
|
1496
|
-
lt(b += R(Mt(c), "&", "&\f"), "&\f", $n(S ? u[S - 1] : 0)) != -1 && (o = -1);
|
|
1497
|
-
break;
|
|
1498
|
-
}
|
|
1499
|
-
case 34:
|
|
1500
|
-
case 39:
|
|
1501
|
-
case 91:
|
|
1502
|
-
b += Mt(c);
|
|
1503
|
-
break;
|
|
1504
|
-
case 9:
|
|
1505
|
-
case 10:
|
|
1506
|
-
case 13:
|
|
1507
|
-
case 32:
|
|
1508
|
-
b += Za(_);
|
|
1509
|
-
break;
|
|
1510
|
-
case 92:
|
|
1511
|
-
b += Qa(ut() - 1, 7);
|
|
1512
|
-
continue;
|
|
1513
|
-
case 47:
|
|
1514
|
-
switch (je()) {
|
|
1515
|
-
case 42:
|
|
1516
|
-
case 47:
|
|
1517
|
-
Xe(ni(ei(he(), ut()), t, r, p), p);
|
|
1518
|
-
break;
|
|
1519
|
-
default:
|
|
1520
|
-
b += "/";
|
|
1521
|
-
}
|
|
1522
|
-
break;
|
|
1523
|
-
case 123 * C:
|
|
1524
|
-
u[S++] = ve(b) * o;
|
|
1525
|
-
case 125 * C:
|
|
1526
|
-
case 59:
|
|
1527
|
-
case 0:
|
|
1528
|
-
switch (c) {
|
|
1529
|
-
case 0:
|
|
1530
|
-
case 125:
|
|
1531
|
-
N = 0;
|
|
1532
|
-
case 59 + v:
|
|
1533
|
-
o == -1 && (b = R(b, /\f/g, "")), w > 0 && ve(b) - m && Xe(w > 32 ? qr(b + ";", n, r, m - 1, p) : qr(R(b, " ", "") + ";", n, r, m - 2, p), p);
|
|
1534
|
-
break;
|
|
1535
|
-
case 59:
|
|
1536
|
-
b += ";";
|
|
1537
|
-
default:
|
|
1538
|
-
if (Xe(x = Gr(b, t, r, S, v, i, u, s, g = [], h = [], m, l), l), c === 123)
|
|
1539
|
-
if (v === 0)
|
|
1540
|
-
dt(b, t, x, x, g, l, m, u, h);
|
|
1541
|
-
else
|
|
1542
|
-
switch (E === 99 && K(b, 3) === 110 ? 100 : E) {
|
|
1543
|
-
case 100:
|
|
1544
|
-
case 108:
|
|
1545
|
-
case 109:
|
|
1546
|
-
case 115:
|
|
1547
|
-
dt(e, x, x, n && Xe(Gr(e, x, x, 0, 0, i, u, s, i, g = [], m, h), h), i, h, m, u, n ? g : h);
|
|
1548
|
-
break;
|
|
1549
|
-
default:
|
|
1550
|
-
dt(b, x, x, x, [""], h, 0, u, h);
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
S = v = w = 0, C = o = 1, s = b = "", m = d;
|
|
1554
|
-
break;
|
|
1555
|
-
case 58:
|
|
1556
|
-
m = 1 + ve(b), w = _;
|
|
1557
|
-
default:
|
|
1558
|
-
if (C < 1) {
|
|
1559
|
-
if (c == 123)
|
|
1560
|
-
--C;
|
|
1561
|
-
else if (c == 125 && C++ == 0 && qa() == 125)
|
|
1562
|
-
continue;
|
|
1563
|
-
}
|
|
1564
|
-
switch (b += rr(c), c * C) {
|
|
1565
|
-
case 38:
|
|
1566
|
-
o = v > 0 ? 1 : (b += "\f", -1);
|
|
1567
|
-
break;
|
|
1568
|
-
case 44:
|
|
1569
|
-
u[S++] = (ve(b) - 1) * o, o = 1;
|
|
1570
|
-
break;
|
|
1571
|
-
case 64:
|
|
1572
|
-
je() === 45 && (b += Mt(he())), E = je(), v = m = ve(s = b += ti(ut())), c++;
|
|
1573
|
-
break;
|
|
1574
|
-
case 45:
|
|
1575
|
-
_ === 45 && ve(b) == 2 && (C = 0);
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
return l;
|
|
1579
|
-
}
|
|
1580
|
-
function Gr(e, t, r, n, i, l, d, u, p, S, v, m) {
|
|
1581
|
-
for (var E = i - 1, w = i === 0 ? l : [""], _ = _n(w), C = 0, N = 0, o = 0; C < n; ++C)
|
|
1582
|
-
for (var c = 0, s = ze(e, E + 1, E = $n(N = d[C])), g = e; c < _; ++c)
|
|
1583
|
-
(g = Rn(N > 0 ? w[c] + " " + s : R(s, /&\f/g, w[c]))) && (p[o++] = g);
|
|
1584
|
-
return kt(e, t, r, i === 0 ? bt : u, p, S, v, m);
|
|
1585
|
-
}
|
|
1586
|
-
function ni(e, t, r, n) {
|
|
1587
|
-
return kt(e, t, r, En, rr(Ga()), ze(e, 2, -2), 0, n);
|
|
1588
|
-
}
|
|
1589
|
-
function qr(e, t, r, n, i) {
|
|
1590
|
-
return kt(e, t, r, tr, ze(e, 0, n), ze(e, n + 1, -1), n, i);
|
|
1591
|
-
}
|
|
1592
|
-
function On(e, t, r) {
|
|
1593
|
-
switch (Ha(e, t)) {
|
|
1594
|
-
case 5103:
|
|
1595
|
-
return I + "print-" + e + e;
|
|
1596
|
-
case 5737:
|
|
1597
|
-
case 4201:
|
|
1598
|
-
case 3177:
|
|
1599
|
-
case 3433:
|
|
1600
|
-
case 1641:
|
|
1601
|
-
case 4457:
|
|
1602
|
-
case 2921:
|
|
1603
|
-
case 5572:
|
|
1604
|
-
case 6356:
|
|
1605
|
-
case 5844:
|
|
1606
|
-
case 3191:
|
|
1607
|
-
case 6645:
|
|
1608
|
-
case 3005:
|
|
1609
|
-
case 6391:
|
|
1610
|
-
case 5879:
|
|
1611
|
-
case 5623:
|
|
1612
|
-
case 6135:
|
|
1613
|
-
case 4599:
|
|
1614
|
-
case 4855:
|
|
1615
|
-
case 4215:
|
|
1616
|
-
case 6389:
|
|
1617
|
-
case 5109:
|
|
1618
|
-
case 5365:
|
|
1619
|
-
case 5621:
|
|
1620
|
-
case 3829:
|
|
1621
|
-
return I + e + e;
|
|
1622
|
-
case 4789:
|
|
1623
|
-
return Qe + e + e;
|
|
1624
|
-
case 5349:
|
|
1625
|
-
case 4246:
|
|
1626
|
-
case 4810:
|
|
1627
|
-
case 6968:
|
|
1628
|
-
case 2756:
|
|
1629
|
-
return I + e + Qe + e + z + e + e;
|
|
1630
|
-
case 5936:
|
|
1631
|
-
switch (K(e, t + 11)) {
|
|
1632
|
-
case 114:
|
|
1633
|
-
return I + e + z + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1634
|
-
case 108:
|
|
1635
|
-
return I + e + z + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1636
|
-
case 45:
|
|
1637
|
-
return I + e + z + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1638
|
-
}
|
|
1639
|
-
case 6828:
|
|
1640
|
-
case 4268:
|
|
1641
|
-
case 2903:
|
|
1642
|
-
return I + e + z + e + e;
|
|
1643
|
-
case 6165:
|
|
1644
|
-
return I + e + z + "flex-" + e + e;
|
|
1645
|
-
case 5187:
|
|
1646
|
-
return I + e + R(e, /(\w+).+(:[^]+)/, I + "box-$1$2" + z + "flex-$1$2") + e;
|
|
1647
|
-
case 5443:
|
|
1648
|
-
return I + e + z + "flex-item-" + R(e, /flex-|-self/g, "") + (be(e, /flex-|baseline/) ? "" : z + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
1649
|
-
case 4675:
|
|
1650
|
-
return I + e + z + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
1651
|
-
case 5548:
|
|
1652
|
-
return I + e + z + R(e, "shrink", "negative") + e;
|
|
1653
|
-
case 5292:
|
|
1654
|
-
return I + e + z + R(e, "basis", "preferred-size") + e;
|
|
1655
|
-
case 6060:
|
|
1656
|
-
return I + "box-" + R(e, "-grow", "") + I + e + z + R(e, "grow", "positive") + e;
|
|
1657
|
-
case 4554:
|
|
1658
|
-
return I + R(e, /([^-])(transform)/g, "$1" + I + "$2") + e;
|
|
1659
|
-
case 6187:
|
|
1660
|
-
return R(R(R(e, /(zoom-|grab)/, I + "$1"), /(image-set)/, I + "$1"), e, "") + e;
|
|
1661
|
-
case 5495:
|
|
1662
|
-
case 3959:
|
|
1663
|
-
return R(e, /(image-set\([^]*)/, I + "$1$`$1");
|
|
1664
|
-
case 4968:
|
|
1665
|
-
return R(R(e, /(.+:)(flex-)?(.*)/, I + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + I + e + e;
|
|
1666
|
-
case 4200:
|
|
1667
|
-
if (!be(e, /flex-|baseline/)) return z + "grid-column-align" + ze(e, t) + e;
|
|
1668
|
-
break;
|
|
1669
|
-
case 2592:
|
|
1670
|
-
case 3360:
|
|
1671
|
-
return z + R(e, "template-", "") + e;
|
|
1672
|
-
case 4384:
|
|
1673
|
-
case 3616:
|
|
1674
|
-
return r && r.some(function(n, i) {
|
|
1675
|
-
return t = i, be(n.props, /grid-\w+-end/);
|
|
1676
|
-
}) ? ~lt(e + (r = r[t].value), "span", 0) ? e : z + R(e, "-start", "") + e + z + "grid-row-span:" + (~lt(r, "span", 0) ? be(r, /\d+/) : +be(r, /\d+/) - +be(e, /\d+/)) + ";" : z + R(e, "-start", "") + e;
|
|
1677
|
-
case 4896:
|
|
1678
|
-
case 4128:
|
|
1679
|
-
return r && r.some(function(n) {
|
|
1680
|
-
return be(n.props, /grid-\w+-start/);
|
|
1681
|
-
}) ? e : z + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
1682
|
-
case 4095:
|
|
1683
|
-
case 3583:
|
|
1684
|
-
case 4068:
|
|
1685
|
-
case 2532:
|
|
1686
|
-
return R(e, /(.+)-inline(.+)/, I + "$1$2") + e;
|
|
1687
|
-
case 8116:
|
|
1688
|
-
case 7059:
|
|
1689
|
-
case 5753:
|
|
1690
|
-
case 5535:
|
|
1691
|
-
case 5445:
|
|
1692
|
-
case 5701:
|
|
1693
|
-
case 4933:
|
|
1694
|
-
case 4677:
|
|
1695
|
-
case 5533:
|
|
1696
|
-
case 5789:
|
|
1697
|
-
case 5021:
|
|
1698
|
-
case 4765:
|
|
1699
|
-
if (ve(e) - 1 - t > 6)
|
|
1700
|
-
switch (K(e, t + 1)) {
|
|
1701
|
-
case 109:
|
|
1702
|
-
if (K(e, t + 4) !== 45)
|
|
1703
|
-
break;
|
|
1704
|
-
case 102:
|
|
1705
|
-
return R(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + Qe + (K(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1706
|
-
case 115:
|
|
1707
|
-
return ~lt(e, "stretch", 0) ? On(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1708
|
-
}
|
|
1709
|
-
break;
|
|
1710
|
-
case 5152:
|
|
1711
|
-
case 5920:
|
|
1712
|
-
return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, i, l, d, u, p, S) {
|
|
1713
|
-
return z + i + ":" + l + S + (d ? z + i + "-span:" + (u ? p : +p - +l) + S : "") + e;
|
|
1714
|
-
});
|
|
1715
|
-
case 4949:
|
|
1716
|
-
if (K(e, t + 6) === 121)
|
|
1717
|
-
return R(e, ":", ":" + I) + e;
|
|
1718
|
-
break;
|
|
1719
|
-
case 6444:
|
|
1720
|
-
switch (K(e, K(e, 14) === 45 ? 18 : 11)) {
|
|
1721
|
-
case 120:
|
|
1722
|
-
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + I + (K(e, 14) === 45 ? "inline-" : "") + "box$3$1" + I + "$2$3$1" + z + "$2box$3") + e;
|
|
1723
|
-
case 100:
|
|
1724
|
-
return R(e, ":", ":" + z) + e;
|
|
1725
|
-
}
|
|
1726
|
-
break;
|
|
1727
|
-
case 5719:
|
|
1728
|
-
case 2647:
|
|
1729
|
-
case 2135:
|
|
1730
|
-
case 3927:
|
|
1731
|
-
case 2391:
|
|
1732
|
-
return R(e, "scroll-", "scroll-snap-") + e;
|
|
1733
|
-
}
|
|
1734
|
-
return e;
|
|
1735
|
-
}
|
|
1736
|
-
function mt(e, t) {
|
|
1737
|
-
for (var r = "", n = 0; n < e.length; n++)
|
|
1738
|
-
r += t(e[n], n, e, t) || "";
|
|
1739
|
-
return r;
|
|
1740
|
-
}
|
|
1741
|
-
function oi(e, t, r, n) {
|
|
1742
|
-
switch (e.type) {
|
|
1743
|
-
case Ya:
|
|
1744
|
-
if (e.children.length) break;
|
|
1745
|
-
case Va:
|
|
1746
|
-
case tr:
|
|
1747
|
-
return e.return = e.return || e.value;
|
|
1748
|
-
case En:
|
|
1749
|
-
return "";
|
|
1750
|
-
case Cn:
|
|
1751
|
-
return e.return = e.value + "{" + mt(e.children, n) + "}";
|
|
1752
|
-
case bt:
|
|
1753
|
-
if (!ve(e.value = e.props.join(","))) return "";
|
|
1754
|
-
}
|
|
1755
|
-
return ve(r = mt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1756
|
-
}
|
|
1757
|
-
function ai(e) {
|
|
1758
|
-
var t = _n(e);
|
|
1759
|
-
return function(r, n, i, l) {
|
|
1760
|
-
for (var d = "", u = 0; u < t; u++)
|
|
1761
|
-
d += e[u](r, n, i, l) || "";
|
|
1762
|
-
return d;
|
|
1763
|
-
};
|
|
1764
|
-
}
|
|
1765
|
-
function ii(e) {
|
|
1766
|
-
return function(t) {
|
|
1767
|
-
t.root || (t = t.return) && e(t);
|
|
1768
|
-
};
|
|
1769
|
-
}
|
|
1770
|
-
function si(e, t, r, n) {
|
|
1771
|
-
if (e.length > -1 && !e.return)
|
|
1772
|
-
switch (e.type) {
|
|
1773
|
-
case tr:
|
|
1774
|
-
e.return = On(e.value, e.length, r);
|
|
1775
|
-
return;
|
|
1776
|
-
case Cn:
|
|
1777
|
-
return mt([Ee(e, { value: R(e.value, "@", "@" + I) })], n);
|
|
1778
|
-
case bt:
|
|
1779
|
-
if (e.length)
|
|
1780
|
-
return Ka(r = e.props, function(i) {
|
|
1781
|
-
switch (be(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
1782
|
-
case ":read-only":
|
|
1783
|
-
case ":read-write":
|
|
1784
|
-
De(Ee(e, { props: [R(i, /:(read-\w+)/, ":" + Qe + "$1")] })), De(Ee(e, { props: [i] })), Wt(e, { props: Kr(r, n) });
|
|
1785
|
-
break;
|
|
1786
|
-
case "::placeholder":
|
|
1787
|
-
De(Ee(e, { props: [R(i, /:(plac\w+)/, ":" + I + "input-$1")] })), De(Ee(e, { props: [R(i, /:(plac\w+)/, ":" + Qe + "$1")] })), De(Ee(e, { props: [R(i, /:(plac\w+)/, z + "input-$1")] })), De(Ee(e, { props: [i] })), Wt(e, { props: Kr(r, n) });
|
|
1788
|
-
break;
|
|
1789
|
-
}
|
|
1790
|
-
return "";
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
var ci = {
|
|
1795
|
-
animationIterationCount: 1,
|
|
1796
|
-
aspectRatio: 1,
|
|
1797
|
-
borderImageOutset: 1,
|
|
1798
|
-
borderImageSlice: 1,
|
|
1799
|
-
borderImageWidth: 1,
|
|
1800
|
-
boxFlex: 1,
|
|
1801
|
-
boxFlexGroup: 1,
|
|
1802
|
-
boxOrdinalGroup: 1,
|
|
1803
|
-
columnCount: 1,
|
|
1804
|
-
columns: 1,
|
|
1805
|
-
flex: 1,
|
|
1806
|
-
flexGrow: 1,
|
|
1807
|
-
flexPositive: 1,
|
|
1808
|
-
flexShrink: 1,
|
|
1809
|
-
flexNegative: 1,
|
|
1810
|
-
flexOrder: 1,
|
|
1811
|
-
gridRow: 1,
|
|
1812
|
-
gridRowEnd: 1,
|
|
1813
|
-
gridRowSpan: 1,
|
|
1814
|
-
gridRowStart: 1,
|
|
1815
|
-
gridColumn: 1,
|
|
1816
|
-
gridColumnEnd: 1,
|
|
1817
|
-
gridColumnSpan: 1,
|
|
1818
|
-
gridColumnStart: 1,
|
|
1819
|
-
msGridRow: 1,
|
|
1820
|
-
msGridRowSpan: 1,
|
|
1821
|
-
msGridColumn: 1,
|
|
1822
|
-
msGridColumnSpan: 1,
|
|
1823
|
-
fontWeight: 1,
|
|
1824
|
-
lineHeight: 1,
|
|
1825
|
-
opacity: 1,
|
|
1826
|
-
order: 1,
|
|
1827
|
-
orphans: 1,
|
|
1828
|
-
tabSize: 1,
|
|
1829
|
-
widows: 1,
|
|
1830
|
-
zIndex: 1,
|
|
1831
|
-
zoom: 1,
|
|
1832
|
-
WebkitLineClamp: 1,
|
|
1833
|
-
// SVG-related properties
|
|
1834
|
-
fillOpacity: 1,
|
|
1835
|
-
floodOpacity: 1,
|
|
1836
|
-
stopOpacity: 1,
|
|
1837
|
-
strokeDasharray: 1,
|
|
1838
|
-
strokeDashoffset: 1,
|
|
1839
|
-
strokeMiterlimit: 1,
|
|
1840
|
-
strokeOpacity: 1,
|
|
1841
|
-
strokeWidth: 1
|
|
1842
|
-
}, Te = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Tn = "active", Pn = "data-styled-version", Et = "6.1.19", nr = `/*!sc*/
|
|
1843
|
-
`, gt = typeof window < "u" && typeof document < "u", li = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Jr = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), ui = function(e, t) {
|
|
1844
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1845
|
-
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1846
|
-
`) + `You may see this warning because you've called styled inside another component.
|
|
1847
|
-
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
1848
|
-
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
1849
|
-
`, i = console.error;
|
|
1850
|
-
try {
|
|
1851
|
-
var l = !0;
|
|
1852
|
-
console.error = function(d) {
|
|
1853
|
-
for (var u = [], p = 1; p < arguments.length; p++) u[p - 1] = arguments[p];
|
|
1854
|
-
Jr.test(d) ? (l = !1, nt.delete(n)) : i.apply(void 0, Le([d], u, !1));
|
|
1855
|
-
}, Ut(), l && !nt.has(n) && (console.warn(n), nt.add(n));
|
|
1856
|
-
} catch (d) {
|
|
1857
|
-
Jr.test(d.message) && nt.delete(n);
|
|
1858
|
-
} finally {
|
|
1859
|
-
console.error = i;
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
}, Ct = Object.freeze([]), Ue = Object.freeze({});
|
|
1863
|
-
function di(e, t, r) {
|
|
1864
|
-
return r === void 0 && (r = Ue), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1865
|
-
}
|
|
1866
|
-
var Ht = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), pi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, fi = /(^-|-$)/g;
|
|
1867
|
-
function Xr(e) {
|
|
1868
|
-
return e.replace(pi, "-").replace(fi, "");
|
|
1869
|
-
}
|
|
1870
|
-
var hi = /(a)(d)/gi, ot = 52, Zr = function(e) {
|
|
1871
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1872
|
-
};
|
|
1873
|
-
function Kt(e) {
|
|
1874
|
-
var t, r = "";
|
|
1875
|
-
for (t = Math.abs(e); t > ot; t = t / ot | 0) r = Zr(t % ot) + r;
|
|
1876
|
-
return (Zr(t % ot) + r).replace(hi, "$1-$2");
|
|
1877
|
-
}
|
|
1878
|
-
var Lt, An = 5381, Re = function(e, t) {
|
|
1879
|
-
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
1880
|
-
return e;
|
|
1881
|
-
}, In = function(e) {
|
|
1882
|
-
return Re(An, e);
|
|
1883
|
-
};
|
|
1884
|
-
function mi(e) {
|
|
1885
|
-
return Kt(In(e) >>> 0);
|
|
1886
|
-
}
|
|
1887
|
-
function Nn(e) {
|
|
1888
|
-
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1889
|
-
}
|
|
1890
|
-
function zt(e) {
|
|
1891
|
-
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1892
|
-
}
|
|
1893
|
-
var Dn = typeof Symbol == "function" && Symbol.for, Mn = Dn ? Symbol.for("react.memo") : 60115, gi = Dn ? Symbol.for("react.forward_ref") : 60112, yi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, vi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Ln = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, xi = ((Lt = {})[gi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Lt[Mn] = Ln, Lt);
|
|
1894
|
-
function Qr(e) {
|
|
1895
|
-
return ("type" in (t = e) && t.type.$$typeof) === Mn ? Ln : "$$typeof" in e ? xi[e.$$typeof] : yi;
|
|
1896
|
-
var t;
|
|
1897
|
-
}
|
|
1898
|
-
var bi = Object.defineProperty, wi = Object.getOwnPropertyNames, en = Object.getOwnPropertySymbols, ki = Object.getOwnPropertyDescriptor, Si = Object.getPrototypeOf, tn = Object.prototype;
|
|
1899
|
-
function zn(e, t, r) {
|
|
1900
|
-
if (typeof t != "string") {
|
|
1901
|
-
if (tn) {
|
|
1902
|
-
var n = Si(t);
|
|
1903
|
-
n && n !== tn && zn(e, n, r);
|
|
1904
|
-
}
|
|
1905
|
-
var i = wi(t);
|
|
1906
|
-
en && (i = i.concat(en(t)));
|
|
1907
|
-
for (var l = Qr(e), d = Qr(t), u = 0; u < i.length; ++u) {
|
|
1908
|
-
var p = i[u];
|
|
1909
|
-
if (!(p in vi || r && r[p] || d && p in d || l && p in l)) {
|
|
1910
|
-
var S = ki(t, p);
|
|
1911
|
-
try {
|
|
1912
|
-
bi(e, p, S);
|
|
1913
|
-
} catch {
|
|
1914
|
-
}
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
return e;
|
|
1919
|
-
}
|
|
1920
|
-
function Be(e) {
|
|
1921
|
-
return typeof e == "function";
|
|
1922
|
-
}
|
|
1923
|
-
function or(e) {
|
|
1924
|
-
return typeof e == "object" && "styledComponentId" in e;
|
|
1925
|
-
}
|
|
1926
|
-
function _e(e, t) {
|
|
1927
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1928
|
-
}
|
|
1929
|
-
function rn(e, t) {
|
|
1930
|
-
if (e.length === 0) return "";
|
|
1931
|
-
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
1932
|
-
return r;
|
|
1933
|
-
}
|
|
1934
|
-
function We(e) {
|
|
1935
|
-
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1936
|
-
}
|
|
1937
|
-
function Gt(e, t, r) {
|
|
1938
|
-
if (r === void 0 && (r = !1), !r && !We(e) && !Array.isArray(e)) return t;
|
|
1939
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Gt(e[n], t[n]);
|
|
1940
|
-
else if (We(t)) for (var n in t) e[n] = Gt(e[n], t[n]);
|
|
1941
|
-
return e;
|
|
1942
|
-
}
|
|
1943
|
-
function ar(e, t) {
|
|
1944
|
-
Object.defineProperty(e, "toString", { value: t });
|
|
1945
|
-
}
|
|
1946
|
-
var Ei = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1947
|
-
|
|
1948
|
-
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1949
|
-
|
|
1950
|
-
- Are you trying to reuse it across renders?
|
|
1951
|
-
- Are you accidentally calling collectStyles twice?
|
|
1952
|
-
|
|
1953
|
-
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1954
|
-
|
|
1955
|
-
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1956
|
-
|
|
1957
|
-
- Does this error occur on the client and is your target falsy?
|
|
1958
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
1959
|
-
|
|
1960
|
-
`, 5: `The clone method cannot be used on the client!
|
|
1961
|
-
|
|
1962
|
-
- Are you running in a client-like environment on the server?
|
|
1963
|
-
- Are you trying to run SSR on the client?
|
|
1964
|
-
|
|
1965
|
-
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1966
|
-
|
|
1967
|
-
- Are you using a custom target that isn't mounted?
|
|
1968
|
-
- Does your document not have a valid head element?
|
|
1969
|
-
- Have you accidentally removed a style tag manually?
|
|
1970
|
-
|
|
1971
|
-
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1972
|
-
|
|
1973
|
-
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1974
|
-
|
|
1975
|
-
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1976
|
-
|
|
1977
|
-
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
1978
|
-
|
|
1979
|
-
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1980
|
-
|
|
1981
|
-
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1982
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1983
|
-
as for instance in your render method then you may be running into this limitation.
|
|
1984
|
-
|
|
1985
|
-
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1986
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
1987
|
-
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1988
|
-
function Ci() {
|
|
1989
|
-
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1990
|
-
for (var r = e[0], n = [], i = 1, l = e.length; i < l; i += 1) n.push(e[i]);
|
|
1991
|
-
return n.forEach(function(d) {
|
|
1992
|
-
r = r.replace(/%[a-z]/, d);
|
|
1993
|
-
}), r;
|
|
1994
|
-
}
|
|
1995
|
-
function He(e) {
|
|
1996
|
-
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1997
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Ci.apply(void 0, Le([Ei[e]], t, !1)).trim());
|
|
1998
|
-
}
|
|
1999
|
-
var $i = function() {
|
|
2000
|
-
function e(t) {
|
|
2001
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
2002
|
-
}
|
|
2003
|
-
return e.prototype.indexOfGroup = function(t) {
|
|
2004
|
-
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
2005
|
-
return r;
|
|
2006
|
-
}, e.prototype.insertRules = function(t, r) {
|
|
2007
|
-
if (t >= this.groupSizes.length) {
|
|
2008
|
-
for (var n = this.groupSizes, i = n.length, l = i; t >= l; ) if ((l <<= 1) < 0) throw He(16, "".concat(t));
|
|
2009
|
-
this.groupSizes = new Uint32Array(l), this.groupSizes.set(n), this.length = l;
|
|
2010
|
-
for (var d = i; d < l; d++) this.groupSizes[d] = 0;
|
|
2011
|
-
}
|
|
2012
|
-
for (var u = this.indexOfGroup(t + 1), p = (d = 0, r.length); d < p; d++) this.tag.insertRule(u, r[d]) && (this.groupSizes[t]++, u++);
|
|
2013
|
-
}, e.prototype.clearGroup = function(t) {
|
|
2014
|
-
if (t < this.length) {
|
|
2015
|
-
var r = this.groupSizes[t], n = this.indexOfGroup(t), i = n + r;
|
|
2016
|
-
this.groupSizes[t] = 0;
|
|
2017
|
-
for (var l = n; l < i; l++) this.tag.deleteRule(n);
|
|
2018
|
-
}
|
|
2019
|
-
}, e.prototype.getGroup = function(t) {
|
|
2020
|
-
var r = "";
|
|
2021
|
-
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
2022
|
-
for (var n = this.groupSizes[t], i = this.indexOfGroup(t), l = i + n, d = i; d < l; d++) r += "".concat(this.tag.getRule(d)).concat(nr);
|
|
2023
|
-
return r;
|
|
2024
|
-
}, e;
|
|
2025
|
-
}(), Ri = 1 << 30, pt = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */ new Map(), ft = 1, at = function(e) {
|
|
2026
|
-
if (pt.has(e)) return pt.get(e);
|
|
2027
|
-
for (; yt.has(ft); ) ft++;
|
|
2028
|
-
var t = ft++;
|
|
2029
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Ri)) throw He(16, "".concat(t));
|
|
2030
|
-
return pt.set(e, t), yt.set(t, e), t;
|
|
2031
|
-
}, _i = function(e, t) {
|
|
2032
|
-
ft = t + 1, pt.set(e, t), yt.set(t, e);
|
|
2033
|
-
}, ji = "style[".concat(Te, "][").concat(Pn, '="').concat(Et, '"]'), Oi = new RegExp("^".concat(Te, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Ti = function(e, t, r) {
|
|
2034
|
-
for (var n, i = r.split(","), l = 0, d = i.length; l < d; l++) (n = i[l]) && e.registerName(t, n);
|
|
2035
|
-
}, Pi = function(e, t) {
|
|
2036
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(nr), i = [], l = 0, d = n.length; l < d; l++) {
|
|
2037
|
-
var u = n[l].trim();
|
|
2038
|
-
if (u) {
|
|
2039
|
-
var p = u.match(Oi);
|
|
2040
|
-
if (p) {
|
|
2041
|
-
var S = 0 | parseInt(p[1], 10), v = p[2];
|
|
2042
|
-
S !== 0 && (_i(v, S), Ti(e, v, p[3]), e.getTag().insertRules(S, i)), i.length = 0;
|
|
2043
|
-
} else i.push(u);
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
}, nn = function(e) {
|
|
2047
|
-
for (var t = document.querySelectorAll(ji), r = 0, n = t.length; r < n; r++) {
|
|
2048
|
-
var i = t[r];
|
|
2049
|
-
i && i.getAttribute(Te) !== Tn && (Pi(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
2050
|
-
}
|
|
2051
|
-
};
|
|
2052
|
-
function Ai() {
|
|
2053
|
-
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
2054
|
-
}
|
|
2055
|
-
var Fn = function(e) {
|
|
2056
|
-
var t = document.head, r = e || t, n = document.createElement("style"), i = function(u) {
|
|
2057
|
-
var p = Array.from(u.querySelectorAll("style[".concat(Te, "]")));
|
|
2058
|
-
return p[p.length - 1];
|
|
2059
|
-
}(r), l = i !== void 0 ? i.nextSibling : null;
|
|
2060
|
-
n.setAttribute(Te, Tn), n.setAttribute(Pn, Et);
|
|
2061
|
-
var d = Ai();
|
|
2062
|
-
return d && n.setAttribute("nonce", d), r.insertBefore(n, l), n;
|
|
2063
|
-
}, Ii = function() {
|
|
2064
|
-
function e(t) {
|
|
2065
|
-
this.element = Fn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
2066
|
-
if (r.sheet) return r.sheet;
|
|
2067
|
-
for (var n = document.styleSheets, i = 0, l = n.length; i < l; i++) {
|
|
2068
|
-
var d = n[i];
|
|
2069
|
-
if (d.ownerNode === r) return d;
|
|
2070
|
-
}
|
|
2071
|
-
throw He(17);
|
|
2072
|
-
}(this.element), this.length = 0;
|
|
2073
|
-
}
|
|
2074
|
-
return e.prototype.insertRule = function(t, r) {
|
|
2075
|
-
try {
|
|
2076
|
-
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
2077
|
-
} catch {
|
|
2078
|
-
return !1;
|
|
2079
|
-
}
|
|
2080
|
-
}, e.prototype.deleteRule = function(t) {
|
|
2081
|
-
this.sheet.deleteRule(t), this.length--;
|
|
2082
|
-
}, e.prototype.getRule = function(t) {
|
|
2083
|
-
var r = this.sheet.cssRules[t];
|
|
2084
|
-
return r && r.cssText ? r.cssText : "";
|
|
2085
|
-
}, e;
|
|
2086
|
-
}(), Ni = function() {
|
|
2087
|
-
function e(t) {
|
|
2088
|
-
this.element = Fn(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
2089
|
-
}
|
|
2090
|
-
return e.prototype.insertRule = function(t, r) {
|
|
2091
|
-
if (t <= this.length && t >= 0) {
|
|
2092
|
-
var n = document.createTextNode(r);
|
|
2093
|
-
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
2094
|
-
}
|
|
2095
|
-
return !1;
|
|
2096
|
-
}, e.prototype.deleteRule = function(t) {
|
|
2097
|
-
this.element.removeChild(this.nodes[t]), this.length--;
|
|
2098
|
-
}, e.prototype.getRule = function(t) {
|
|
2099
|
-
return t < this.length ? this.nodes[t].textContent : "";
|
|
2100
|
-
}, e;
|
|
2101
|
-
}(), Di = function() {
|
|
2102
|
-
function e(t) {
|
|
2103
|
-
this.rules = [], this.length = 0;
|
|
2104
|
-
}
|
|
2105
|
-
return e.prototype.insertRule = function(t, r) {
|
|
2106
|
-
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
2107
|
-
}, e.prototype.deleteRule = function(t) {
|
|
2108
|
-
this.rules.splice(t, 1), this.length--;
|
|
2109
|
-
}, e.prototype.getRule = function(t) {
|
|
2110
|
-
return t < this.length ? this.rules[t] : "";
|
|
2111
|
-
}, e;
|
|
2112
|
-
}(), on = gt, Mi = { isServer: !gt, useCSSOMInjection: !li }, Un = function() {
|
|
2113
|
-
function e(t, r, n) {
|
|
2114
|
-
t === void 0 && (t = Ue), r === void 0 && (r = {});
|
|
2115
|
-
var i = this;
|
|
2116
|
-
this.options = re(re({}, Mi), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && gt && on && (on = !1, nn(this)), ar(this, function() {
|
|
2117
|
-
return function(l) {
|
|
2118
|
-
for (var d = l.getTag(), u = d.length, p = "", S = function(m) {
|
|
2119
|
-
var E = function(o) {
|
|
2120
|
-
return yt.get(o);
|
|
2121
|
-
}(m);
|
|
2122
|
-
if (E === void 0) return "continue";
|
|
2123
|
-
var w = l.names.get(E), _ = d.getGroup(m);
|
|
2124
|
-
if (w === void 0 || !w.size || _.length === 0) return "continue";
|
|
2125
|
-
var C = "".concat(Te, ".g").concat(m, '[id="').concat(E, '"]'), N = "";
|
|
2126
|
-
w !== void 0 && w.forEach(function(o) {
|
|
2127
|
-
o.length > 0 && (N += "".concat(o, ","));
|
|
2128
|
-
}), p += "".concat(_).concat(C, '{content:"').concat(N, '"}').concat(nr);
|
|
2129
|
-
}, v = 0; v < u; v++) S(v);
|
|
2130
|
-
return p;
|
|
2131
|
-
}(i);
|
|
2132
|
-
});
|
|
2133
|
-
}
|
|
2134
|
-
return e.registerId = function(t) {
|
|
2135
|
-
return at(t);
|
|
2136
|
-
}, e.prototype.rehydrate = function() {
|
|
2137
|
-
!this.server && gt && nn(this);
|
|
2138
|
-
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
2139
|
-
return r === void 0 && (r = !0), new e(re(re({}, this.options), t), this.gs, r && this.names || void 0);
|
|
2140
|
-
}, e.prototype.allocateGSInstance = function(t) {
|
|
2141
|
-
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
2142
|
-
}, e.prototype.getTag = function() {
|
|
2143
|
-
return this.tag || (this.tag = (t = function(r) {
|
|
2144
|
-
var n = r.useCSSOMInjection, i = r.target;
|
|
2145
|
-
return r.isServer ? new Di(i) : n ? new Ii(i) : new Ni(i);
|
|
2146
|
-
}(this.options), new $i(t)));
|
|
2147
|
-
var t;
|
|
2148
|
-
}, e.prototype.hasNameForId = function(t, r) {
|
|
2149
|
-
return this.names.has(t) && this.names.get(t).has(r);
|
|
2150
|
-
}, e.prototype.registerName = function(t, r) {
|
|
2151
|
-
if (at(t), this.names.has(t)) this.names.get(t).add(r);
|
|
2152
|
-
else {
|
|
2153
|
-
var n = /* @__PURE__ */ new Set();
|
|
2154
|
-
n.add(r), this.names.set(t, n);
|
|
2155
|
-
}
|
|
2156
|
-
}, e.prototype.insertRules = function(t, r, n) {
|
|
2157
|
-
this.registerName(t, r), this.getTag().insertRules(at(t), n);
|
|
2158
|
-
}, e.prototype.clearNames = function(t) {
|
|
2159
|
-
this.names.has(t) && this.names.get(t).clear();
|
|
2160
|
-
}, e.prototype.clearRules = function(t) {
|
|
2161
|
-
this.getTag().clearGroup(at(t)), this.clearNames(t);
|
|
2162
|
-
}, e.prototype.clearTag = function() {
|
|
2163
|
-
this.tag = void 0;
|
|
2164
|
-
}, e;
|
|
2165
|
-
}(), Li = /&/g, zi = /^\s*\/\/.*$/gm;
|
|
2166
|
-
function Bn(e, t) {
|
|
2167
|
-
return e.map(function(r) {
|
|
2168
|
-
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
2169
|
-
return "".concat(t, " ").concat(n);
|
|
2170
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Bn(r.children, t)), r;
|
|
2171
|
-
});
|
|
2172
|
-
}
|
|
2173
|
-
function Fi(e) {
|
|
2174
|
-
var t, r, n, i = Ue, l = i.options, d = l === void 0 ? Ue : l, u = i.plugins, p = u === void 0 ? Ct : u, S = function(E, w, _) {
|
|
2175
|
-
return _.startsWith(r) && _.endsWith(r) && _.replaceAll(r, "").length > 0 ? ".".concat(t) : E;
|
|
2176
|
-
}, v = p.slice();
|
|
2177
|
-
v.push(function(E) {
|
|
2178
|
-
E.type === bt && E.value.includes("&") && (E.props[0] = E.props[0].replace(Li, r).replace(n, S));
|
|
2179
|
-
}), d.prefix && v.push(si), v.push(oi);
|
|
2180
|
-
var m = function(E, w, _, C) {
|
|
2181
|
-
w === void 0 && (w = ""), _ === void 0 && (_ = ""), C === void 0 && (C = "&"), t = C, r = w, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
2182
|
-
var N = E.replace(zi, ""), o = ri(_ || w ? "".concat(_, " ").concat(w, " { ").concat(N, " }") : N);
|
|
2183
|
-
d.namespace && (o = Bn(o, d.namespace));
|
|
2184
|
-
var c = [];
|
|
2185
|
-
return mt(o, ai(v.concat(ii(function(s) {
|
|
2186
|
-
return c.push(s);
|
|
2187
|
-
})))), c;
|
|
2188
|
-
};
|
|
2189
|
-
return m.hash = p.length ? p.reduce(function(E, w) {
|
|
2190
|
-
return w.name || He(15), Re(E, w.name);
|
|
2191
|
-
}, An).toString() : "", m;
|
|
2192
|
-
}
|
|
2193
|
-
var Ui = new Un(), qt = Fi(), Wn = J.createContext({ shouldForwardProp: void 0, styleSheet: Ui, stylis: qt });
|
|
2194
|
-
Wn.Consumer;
|
|
2195
|
-
J.createContext(void 0);
|
|
2196
|
-
function an() {
|
|
2197
|
-
return $o(Wn);
|
|
2198
|
-
}
|
|
2199
|
-
var sn = function() {
|
|
2200
|
-
function e(t, r) {
|
|
2201
|
-
var n = this;
|
|
2202
|
-
this.inject = function(i, l) {
|
|
2203
|
-
l === void 0 && (l = qt);
|
|
2204
|
-
var d = n.name + l.hash;
|
|
2205
|
-
i.hasNameForId(n.id, d) || i.insertRules(n.id, d, l(n.rules, d, "@keyframes"));
|
|
2206
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, ar(this, function() {
|
|
2207
|
-
throw He(12, String(n.name));
|
|
2208
|
-
});
|
|
2209
|
-
}
|
|
2210
|
-
return e.prototype.getName = function(t) {
|
|
2211
|
-
return t === void 0 && (t = qt), this.name + t.hash;
|
|
2212
|
-
}, e;
|
|
2213
|
-
}(), Bi = function(e) {
|
|
2214
|
-
return e >= "A" && e <= "Z";
|
|
2215
|
-
};
|
|
2216
|
-
function cn(e) {
|
|
2217
|
-
for (var t = "", r = 0; r < e.length; r++) {
|
|
2218
|
-
var n = e[r];
|
|
2219
|
-
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
2220
|
-
Bi(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
2221
|
-
}
|
|
2222
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
2223
|
-
}
|
|
2224
|
-
var Vn = function(e) {
|
|
2225
|
-
return e == null || e === !1 || e === "";
|
|
2226
|
-
}, Yn = function(e) {
|
|
2227
|
-
var t, r, n = [];
|
|
2228
|
-
for (var i in e) {
|
|
2229
|
-
var l = e[i];
|
|
2230
|
-
e.hasOwnProperty(i) && !Vn(l) && (Array.isArray(l) && l.isCss || Be(l) ? n.push("".concat(cn(i), ":"), l, ";") : We(l) ? n.push.apply(n, Le(Le(["".concat(i, " {")], Yn(l), !1), ["}"], !1)) : n.push("".concat(cn(i), ": ").concat((t = i, (r = l) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in ci || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
2231
|
-
}
|
|
2232
|
-
return n;
|
|
2233
|
-
};
|
|
2234
|
-
function Oe(e, t, r, n) {
|
|
2235
|
-
if (Vn(e)) return [];
|
|
2236
|
-
if (or(e)) return [".".concat(e.styledComponentId)];
|
|
2237
|
-
if (Be(e)) {
|
|
2238
|
-
if (!Be(l = e) || l.prototype && l.prototype.isReactComponent || !t) return [e];
|
|
2239
|
-
var i = e(t);
|
|
2240
|
-
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof sn || We(i) || i === null || console.error("".concat(Nn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Oe(i, t, r, n);
|
|
2241
|
-
}
|
|
2242
|
-
var l;
|
|
2243
|
-
return e instanceof sn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : We(e) ? Yn(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ct, e.map(function(d) {
|
|
2244
|
-
return Oe(d, t, r, n);
|
|
2245
|
-
})) : [e.toString()];
|
|
2246
|
-
}
|
|
2247
|
-
function Wi(e) {
|
|
2248
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
2249
|
-
var r = e[t];
|
|
2250
|
-
if (Be(r) && !or(r)) return !1;
|
|
2251
|
-
}
|
|
2252
|
-
return !0;
|
|
2253
|
-
}
|
|
2254
|
-
var Vi = In(Et), Yi = function() {
|
|
2255
|
-
function e(t, r, n) {
|
|
2256
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Wi(t), this.componentId = r, this.baseHash = Re(Vi, r), this.baseStyle = n, Un.registerId(r);
|
|
2257
|
-
}
|
|
2258
|
-
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
2259
|
-
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
2260
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = _e(i, this.staticRulesId);
|
|
2261
|
-
else {
|
|
2262
|
-
var l = rn(Oe(this.rules, t, r, n)), d = Kt(Re(this.baseHash, l) >>> 0);
|
|
2263
|
-
if (!r.hasNameForId(this.componentId, d)) {
|
|
2264
|
-
var u = n(l, ".".concat(d), void 0, this.componentId);
|
|
2265
|
-
r.insertRules(this.componentId, d, u);
|
|
2266
|
-
}
|
|
2267
|
-
i = _e(i, d), this.staticRulesId = d;
|
|
2268
|
-
}
|
|
2269
|
-
else {
|
|
2270
|
-
for (var p = Re(this.baseHash, n.hash), S = "", v = 0; v < this.rules.length; v++) {
|
|
2271
|
-
var m = this.rules[v];
|
|
2272
|
-
if (typeof m == "string") S += m, process.env.NODE_ENV !== "production" && (p = Re(p, m));
|
|
2273
|
-
else if (m) {
|
|
2274
|
-
var E = rn(Oe(m, t, r, n));
|
|
2275
|
-
p = Re(p, E + v), S += E;
|
|
2276
|
-
}
|
|
2277
|
-
}
|
|
2278
|
-
if (S) {
|
|
2279
|
-
var w = Kt(p >>> 0);
|
|
2280
|
-
r.hasNameForId(this.componentId, w) || r.insertRules(this.componentId, w, n(S, ".".concat(w), void 0, this.componentId)), i = _e(i, w);
|
|
2281
|
-
}
|
|
2282
|
-
}
|
|
2283
|
-
return i;
|
|
2284
|
-
}, e;
|
|
2285
|
-
}(), Hn = J.createContext(void 0);
|
|
2286
|
-
Hn.Consumer;
|
|
2287
|
-
var Ft = {}, ln = /* @__PURE__ */ new Set();
|
|
2288
|
-
function Hi(e, t, r) {
|
|
2289
|
-
var n = or(e), i = e, l = !zt(e), d = t.attrs, u = d === void 0 ? Ct : d, p = t.componentId, S = p === void 0 ? function(g, h) {
|
|
2290
|
-
var x = typeof g != "string" ? "sc" : Xr(g);
|
|
2291
|
-
Ft[x] = (Ft[x] || 0) + 1;
|
|
2292
|
-
var b = "".concat(x, "-").concat(mi(Et + x + Ft[x]));
|
|
2293
|
-
return h ? "".concat(h, "-").concat(b) : b;
|
|
2294
|
-
}(t.displayName, t.parentComponentId) : p, v = t.displayName, m = v === void 0 ? function(g) {
|
|
2295
|
-
return zt(g) ? "styled.".concat(g) : "Styled(".concat(Nn(g), ")");
|
|
2296
|
-
}(e) : v, E = t.displayName && t.componentId ? "".concat(Xr(t.displayName), "-").concat(t.componentId) : t.componentId || S, w = n && i.attrs ? i.attrs.concat(u).filter(Boolean) : u, _ = t.shouldForwardProp;
|
|
2297
|
-
if (n && i.shouldForwardProp) {
|
|
2298
|
-
var C = i.shouldForwardProp;
|
|
2299
|
-
if (t.shouldForwardProp) {
|
|
2300
|
-
var N = t.shouldForwardProp;
|
|
2301
|
-
_ = function(g, h) {
|
|
2302
|
-
return C(g, h) && N(g, h);
|
|
2303
|
-
};
|
|
2304
|
-
} else _ = C;
|
|
2305
|
-
}
|
|
2306
|
-
var o = new Yi(r, E, n ? i.componentStyle : void 0);
|
|
2307
|
-
function c(g, h) {
|
|
2308
|
-
return function(x, b, T) {
|
|
2309
|
-
var M = x.attrs, V = x.componentStyle, D = x.defaultProps, Y = x.foldedComponentIds, P = x.styledComponentId, Q = x.target, H = J.useContext(Hn), ae = an(), ee = x.shouldForwardProp || ae.shouldForwardProp;
|
|
2310
|
-
process.env.NODE_ENV !== "production" && Or(P);
|
|
2311
|
-
var ne = di(b, H, D) || Ue, G = function(me, ue, ge) {
|
|
2312
|
-
for (var de, pe = re(re({}, ue), { className: void 0, theme: ge }), we = 0; we < me.length; we += 1) {
|
|
2313
|
-
var Pe = Be(de = me[we]) ? de(pe) : de;
|
|
2314
|
-
for (var fe in Pe) pe[fe] = fe === "className" ? _e(pe[fe], Pe[fe]) : fe === "style" ? re(re({}, pe[fe]), Pe[fe]) : Pe[fe];
|
|
2315
|
-
}
|
|
2316
|
-
return ue.className && (pe.className = _e(pe.className, ue.className)), pe;
|
|
2317
|
-
}(M, b, ne), ie = G.as || Q, oe = {};
|
|
2318
|
-
for (var F in G) G[F] === void 0 || F[0] === "$" || F === "as" || F === "theme" && G.theme === ne || (F === "forwardedAs" ? oe.as = G.forwardedAs : ee && !ee(F, ie) || (oe[F] = G[F], ee || process.env.NODE_ENV !== "development" || Wa(F) || ln.has(F) || !Ht.has(ie) || (ln.add(F), console.warn('styled-components: it looks like an unknown prop "'.concat(F, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
2319
|
-
var q = function(me, ue) {
|
|
2320
|
-
var ge = an(), de = me.generateAndInjectStyles(ue, ge.styleSheet, ge.stylis);
|
|
2321
|
-
return process.env.NODE_ENV !== "production" && Or(de), de;
|
|
2322
|
-
}(V, G);
|
|
2323
|
-
process.env.NODE_ENV !== "production" && x.warnTooManyClasses && x.warnTooManyClasses(q);
|
|
2324
|
-
var se = _e(Y, P);
|
|
2325
|
-
return q && (se += " " + q), G.className && (se += " " + G.className), oe[zt(ie) && !Ht.has(ie) ? "class" : "className"] = se, T && (oe.ref = T), ht(ie, oe);
|
|
2326
|
-
}(s, g, h);
|
|
2327
|
-
}
|
|
2328
|
-
c.displayName = m;
|
|
2329
|
-
var s = J.forwardRef(c);
|
|
2330
|
-
return s.attrs = w, s.componentStyle = o, s.displayName = m, s.shouldForwardProp = _, s.foldedComponentIds = n ? _e(i.foldedComponentIds, i.styledComponentId) : "", s.styledComponentId = E, s.target = n ? i.target : e, Object.defineProperty(s, "defaultProps", { get: function() {
|
|
2331
|
-
return this._foldedDefaultProps;
|
|
2332
|
-
}, set: function(g) {
|
|
2333
|
-
this._foldedDefaultProps = n ? function(h) {
|
|
2334
|
-
for (var x = [], b = 1; b < arguments.length; b++) x[b - 1] = arguments[b];
|
|
2335
|
-
for (var T = 0, M = x; T < M.length; T++) Gt(h, M[T], !0);
|
|
2336
|
-
return h;
|
|
2337
|
-
}({}, i.defaultProps, g) : g;
|
|
2338
|
-
} }), process.env.NODE_ENV !== "production" && (ui(m, E), s.warnTooManyClasses = /* @__PURE__ */ function(g, h) {
|
|
2339
|
-
var x = {}, b = !1;
|
|
2340
|
-
return function(T) {
|
|
2341
|
-
if (!b && (x[T] = !0, Object.keys(x).length >= 200)) {
|
|
2342
|
-
var M = h ? ' with the id of "'.concat(h, '"') : "";
|
|
2343
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(g).concat(M, `.
|
|
2344
|
-
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2345
|
-
Example:
|
|
2346
|
-
const Component = styled.div.attrs(props => ({
|
|
2347
|
-
style: {
|
|
2348
|
-
background: props.background,
|
|
2349
|
-
},
|
|
2350
|
-
}))\`width: 100%;\`
|
|
2351
|
-
|
|
2352
|
-
<Component />`), b = !0, x = {};
|
|
2353
|
-
}
|
|
2354
|
-
};
|
|
2355
|
-
}(m, E)), ar(s, function() {
|
|
2356
|
-
return ".".concat(s.styledComponentId);
|
|
2357
|
-
}), l && zn(s, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), s;
|
|
2358
|
-
}
|
|
2359
|
-
function un(e, t) {
|
|
2360
|
-
for (var r = [e[0]], n = 0, i = t.length; n < i; n += 1) r.push(t[n], e[n + 1]);
|
|
2361
|
-
return r;
|
|
2362
|
-
}
|
|
2363
|
-
var dn = function(e) {
|
|
2364
|
-
return Object.assign(e, { isCss: !0 });
|
|
2365
|
-
};
|
|
2366
|
-
function Ki(e) {
|
|
2367
|
-
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
2368
|
-
if (Be(e) || We(e)) return dn(Oe(un(Ct, Le([e], t, !0))));
|
|
2369
|
-
var n = e;
|
|
2370
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Oe(n) : dn(Oe(un(n, t)));
|
|
2371
|
-
}
|
|
2372
|
-
function Jt(e, t, r) {
|
|
2373
|
-
if (r === void 0 && (r = Ue), !t) throw He(1, t);
|
|
2374
|
-
var n = function(i) {
|
|
2375
|
-
for (var l = [], d = 1; d < arguments.length; d++) l[d - 1] = arguments[d];
|
|
2376
|
-
return e(t, r, Ki.apply(void 0, Le([i], l, !1)));
|
|
2377
|
-
};
|
|
2378
|
-
return n.attrs = function(i) {
|
|
2379
|
-
return Jt(e, t, re(re({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
|
|
2380
|
-
}, n.withConfig = function(i) {
|
|
2381
|
-
return Jt(e, t, re(re({}, r), i));
|
|
2382
|
-
}, n;
|
|
2383
|
-
}
|
|
2384
|
-
var Kn = function(e) {
|
|
2385
|
-
return Jt(Hi, e);
|
|
2386
|
-
}, Z = Kn;
|
|
2387
|
-
Ht.forEach(function(e) {
|
|
2388
|
-
Z[e] = Kn(e);
|
|
2389
|
-
});
|
|
2390
|
-
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
2391
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
2392
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
2393
|
-
var it = "__sc-".concat(Te, "__");
|
|
2394
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
2395
|
-
|
|
2396
|
-
See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
|
|
2397
|
-
const Gn = Z.div`
|
|
1315
|
+
const Jt = Y.div`
|
|
2398
1316
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
2399
1317
|
background-color: white;
|
|
2400
1318
|
border: 1px solid #e5e7eb;
|
|
@@ -2410,19 +1328,19 @@ const Gn = Z.div`
|
|
|
2410
1328
|
background-color: #1f2937;
|
|
2411
1329
|
border-color: #374151;
|
|
2412
1330
|
}
|
|
2413
|
-
`,
|
|
1331
|
+
`, pe = Y.div`
|
|
2414
1332
|
max-width: 80%;
|
|
2415
1333
|
padding: 12px;
|
|
2416
1334
|
border-radius: 8px;
|
|
2417
1335
|
font-size: 14px;
|
|
2418
1336
|
word-break: break-word;
|
|
2419
|
-
margin-left: ${(
|
|
2420
|
-
margin-right: ${(
|
|
1337
|
+
margin-left: ${(t) => t.$isUser ? "auto" : "0"};
|
|
1338
|
+
margin-right: ${(t) => t.$isUser ? "0" : "auto"};
|
|
2421
1339
|
line-height: 1.5;
|
|
2422
1340
|
|
|
2423
1341
|
/* User message styles */
|
|
2424
|
-
background-color: ${(
|
|
2425
|
-
color: ${(
|
|
1342
|
+
background-color: ${(t) => t.$isUser ? "#e5e7eb" : "transparent"};
|
|
1343
|
+
color: ${(t) => (t.$isUser, "#111827")};
|
|
2426
1344
|
|
|
2427
1345
|
/* Ensure bold text has proper contrast */
|
|
2428
1346
|
strong, b {
|
|
@@ -2432,15 +1350,15 @@ const Gn = Z.div`
|
|
|
2432
1350
|
|
|
2433
1351
|
/* Dark mode support */
|
|
2434
1352
|
@media (prefers-color-scheme: dark) {
|
|
2435
|
-
background-color: ${(
|
|
2436
|
-
color: ${(
|
|
1353
|
+
background-color: ${(t) => t.$isUser ? "#374151" : "transparent"};
|
|
1354
|
+
color: ${(t) => (t.$isUser, "#f9fafb")};
|
|
2437
1355
|
|
|
2438
1356
|
strong, b {
|
|
2439
1357
|
color: #ffffff;
|
|
2440
1358
|
font-weight: 700;
|
|
2441
1359
|
}
|
|
2442
1360
|
}
|
|
2443
|
-
`,
|
|
1361
|
+
`, Je = Y.div`
|
|
2444
1362
|
display: flex;
|
|
2445
1363
|
align-items: center;
|
|
2446
1364
|
gap: 8px;
|
|
@@ -2452,7 +1370,7 @@ const Gn = Z.div`
|
|
|
2452
1370
|
background-color: #1f2937;
|
|
2453
1371
|
border-top-color: #374151;
|
|
2454
1372
|
}
|
|
2455
|
-
`,
|
|
1373
|
+
`, Wn = Y.textarea`
|
|
2456
1374
|
flex: 1;
|
|
2457
1375
|
width: 100%;
|
|
2458
1376
|
min-height: 40px;
|
|
@@ -2496,7 +1414,7 @@ const Gn = Z.div`
|
|
|
2496
1414
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
|
|
2497
1415
|
}
|
|
2498
1416
|
}
|
|
2499
|
-
`,
|
|
1417
|
+
`, Ge = Y.button`
|
|
2500
1418
|
width: 32px;
|
|
2501
1419
|
height: 32px;
|
|
2502
1420
|
min-width: 32px;
|
|
@@ -2528,7 +1446,7 @@ const Gn = Z.div`
|
|
|
2528
1446
|
width: 16px;
|
|
2529
1447
|
height: 16px;
|
|
2530
1448
|
}
|
|
2531
|
-
`,
|
|
1449
|
+
`, Bn = Y.button`
|
|
2532
1450
|
position: fixed;
|
|
2533
1451
|
z-index: 50;
|
|
2534
1452
|
height: 48px;
|
|
@@ -2547,8 +1465,8 @@ const Gn = Z.div`
|
|
|
2547
1465
|
transition: all 0.2s ease;
|
|
2548
1466
|
|
|
2549
1467
|
/* Responsive positioning */
|
|
2550
|
-
${(
|
|
2551
|
-
switch (
|
|
1468
|
+
${(t) => {
|
|
1469
|
+
switch (t.$position) {
|
|
2552
1470
|
case "bottom-left":
|
|
2553
1471
|
return `
|
|
2554
1472
|
bottom: max(12px, 1vw);
|
|
@@ -2612,7 +1530,7 @@ const Gn = Z.div`
|
|
|
2612
1530
|
align-items: center;
|
|
2613
1531
|
justify-content: center;
|
|
2614
1532
|
}
|
|
2615
|
-
`,
|
|
1533
|
+
`, Yn = Y.div`
|
|
2616
1534
|
position: fixed;
|
|
2617
1535
|
z-index: 50;
|
|
2618
1536
|
width: 320px;
|
|
@@ -2624,8 +1542,8 @@ const Gn = Z.div`
|
|
|
2624
1542
|
flex-direction: column;
|
|
2625
1543
|
|
|
2626
1544
|
/* Responsive positioning */
|
|
2627
|
-
${(
|
|
2628
|
-
switch (
|
|
1545
|
+
${(t) => {
|
|
1546
|
+
switch (t.$position) {
|
|
2629
1547
|
case "bottom-left":
|
|
2630
1548
|
return `
|
|
2631
1549
|
bottom: max(12px, 1vw);
|
|
@@ -2668,9 +1586,9 @@ const Gn = Z.div`
|
|
|
2668
1586
|
@media (min-width: 640px) {
|
|
2669
1587
|
width: 384px;
|
|
2670
1588
|
}
|
|
2671
|
-
`,
|
|
1589
|
+
`, Kn = Y.div`
|
|
2672
1590
|
padding: 12px 16px;
|
|
2673
|
-
background: ${(
|
|
1591
|
+
background: ${(t) => t.primaryColor || "#3b82f6"};
|
|
2674
1592
|
color: white;
|
|
2675
1593
|
border-radius: 8px 8px 0 0;
|
|
2676
1594
|
display: flex;
|
|
@@ -2690,7 +1608,7 @@ const Gn = Z.div`
|
|
|
2690
1608
|
gap: 4px;
|
|
2691
1609
|
}
|
|
2692
1610
|
`;
|
|
2693
|
-
|
|
1611
|
+
Y.button`
|
|
2694
1612
|
width: 24px;
|
|
2695
1613
|
height: 24px;
|
|
2696
1614
|
background: transparent;
|
|
@@ -2712,7 +1630,7 @@ Z.button`
|
|
|
2712
1630
|
height: 16px;
|
|
2713
1631
|
}
|
|
2714
1632
|
`;
|
|
2715
|
-
const
|
|
1633
|
+
const Ze = Y.div`
|
|
2716
1634
|
flex: 1;
|
|
2717
1635
|
overflow-y: auto;
|
|
2718
1636
|
padding: 16px;
|
|
@@ -2751,7 +1669,7 @@ const cr = Z.div`
|
|
|
2751
1669
|
background: #9ca3af;
|
|
2752
1670
|
}
|
|
2753
1671
|
}
|
|
2754
|
-
`,
|
|
1672
|
+
`, Xe = Y.div`
|
|
2755
1673
|
display: flex;
|
|
2756
1674
|
gap: 4px;
|
|
2757
1675
|
align-items: center;
|
|
@@ -2782,15 +1700,15 @@ const cr = Z.div`
|
|
|
2782
1700
|
background: #9ca3af;
|
|
2783
1701
|
}
|
|
2784
1702
|
}
|
|
2785
|
-
`,
|
|
1703
|
+
`, Qe = Y.div`
|
|
2786
1704
|
font-size: 12px;
|
|
2787
1705
|
margin-top: 4px;
|
|
2788
|
-
color: ${(
|
|
1706
|
+
color: ${(t) => (t.$isUser, "#6b7280")};
|
|
2789
1707
|
|
|
2790
1708
|
@media (prefers-color-scheme: dark) {
|
|
2791
|
-
color: ${(
|
|
1709
|
+
color: ${(t) => (t.$isUser, "#9ca3af")};
|
|
2792
1710
|
}
|
|
2793
|
-
`,
|
|
1711
|
+
`, et = Y.div`
|
|
2794
1712
|
font-size: 14px;
|
|
2795
1713
|
color: #dc2626;
|
|
2796
1714
|
text-align: center;
|
|
@@ -2800,15 +1718,15 @@ const cr = Z.div`
|
|
|
2800
1718
|
@media (prefers-color-scheme: dark) {
|
|
2801
1719
|
color: #f87171;
|
|
2802
1720
|
}
|
|
2803
|
-
`,
|
|
1721
|
+
`, Vn = Y.div`
|
|
2804
1722
|
position: absolute;
|
|
2805
|
-
${(
|
|
1723
|
+
${(t) => t.$position === "top" ? "top: 0;" : "bottom: 0;"}
|
|
2806
1724
|
left: 0;
|
|
2807
1725
|
right: 0;
|
|
2808
1726
|
height: 6px;
|
|
2809
1727
|
background: linear-gradient(90deg, #e5e7eb 0%, #3b82f6 50%, #e5e7eb 100%);
|
|
2810
|
-
cursor: ${(
|
|
2811
|
-
border-radius: ${(
|
|
1728
|
+
cursor: ${(t) => (t.$position === "top", "ns-resize")};
|
|
1729
|
+
border-radius: ${(t) => t.$position === "top" ? "8px 8px 0 0" : "0 0 8px 8px"};
|
|
2812
1730
|
opacity: 0.7;
|
|
2813
1731
|
transition: opacity 0.2s ease;
|
|
2814
1732
|
|
|
@@ -2824,34 +1742,34 @@ const cr = Z.div`
|
|
|
2824
1742
|
background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
|
|
2825
1743
|
}
|
|
2826
1744
|
}
|
|
2827
|
-
`,
|
|
2828
|
-
value:
|
|
2829
|
-
onChange:
|
|
2830
|
-
onKeyDown:
|
|
2831
|
-
placeholder:
|
|
2832
|
-
disabled:
|
|
2833
|
-
className:
|
|
2834
|
-
maxLength:
|
|
1745
|
+
`, tt = q.forwardRef(function({
|
|
1746
|
+
value: n,
|
|
1747
|
+
onChange: i,
|
|
1748
|
+
onKeyDown: c,
|
|
1749
|
+
placeholder: h = "Type a message...",
|
|
1750
|
+
disabled: y = !1,
|
|
1751
|
+
className: g,
|
|
1752
|
+
maxLength: l = 2e3
|
|
2835
1753
|
}, p) {
|
|
2836
|
-
const
|
|
2837
|
-
|
|
1754
|
+
const w = (m) => {
|
|
1755
|
+
i(m.target.value);
|
|
2838
1756
|
}, v = (m) => {
|
|
2839
|
-
m.key === "Enter" && !m.shiftKey && m.preventDefault(),
|
|
1757
|
+
m.key === "Enter" && !m.shiftKey && m.preventDefault(), c(m);
|
|
2840
1758
|
};
|
|
2841
|
-
return /* @__PURE__ */
|
|
2842
|
-
|
|
1759
|
+
return /* @__PURE__ */ u.jsx(
|
|
1760
|
+
Wn,
|
|
2843
1761
|
{
|
|
2844
1762
|
ref: p,
|
|
2845
|
-
value:
|
|
2846
|
-
onChange:
|
|
1763
|
+
value: n,
|
|
1764
|
+
onChange: w,
|
|
2847
1765
|
onKeyDown: v,
|
|
2848
|
-
placeholder:
|
|
2849
|
-
disabled:
|
|
2850
|
-
maxLength:
|
|
2851
|
-
className:
|
|
1766
|
+
placeholder: h,
|
|
1767
|
+
disabled: y,
|
|
1768
|
+
maxLength: l,
|
|
1769
|
+
className: g,
|
|
2852
1770
|
onInput: (m) => {
|
|
2853
|
-
const
|
|
2854
|
-
|
|
1771
|
+
const $ = m.target;
|
|
1772
|
+
$.style.height = "auto", $.style.height = `${Math.min($.scrollHeight, 120)}px`;
|
|
2855
1773
|
}
|
|
2856
1774
|
}
|
|
2857
1775
|
);
|
|
@@ -2862,15 +1780,15 @@ const cr = Z.div`
|
|
|
2862
1780
|
* This source code is licensed under the ISC license.
|
|
2863
1781
|
* See the LICENSE file in the root directory of this source tree.
|
|
2864
1782
|
*/
|
|
2865
|
-
const
|
|
1783
|
+
const Hn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qn = (t) => t.replace(
|
|
2866
1784
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
2867
|
-
(
|
|
2868
|
-
),
|
|
2869
|
-
const
|
|
2870
|
-
return
|
|
2871
|
-
},
|
|
2872
|
-
for (const
|
|
2873
|
-
if (
|
|
1785
|
+
(n, i, c) => c ? c.toUpperCase() : i.toLowerCase()
|
|
1786
|
+
), Nt = (t) => {
|
|
1787
|
+
const n = qn(t);
|
|
1788
|
+
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
1789
|
+
}, Gt = (...t) => t.filter((n, i, c) => !!n && n.trim() !== "" && c.indexOf(n) === i).join(" ").trim(), Jn = (t) => {
|
|
1790
|
+
for (const n in t)
|
|
1791
|
+
if (n.startsWith("aria-") || n === "role" || n === "title")
|
|
2874
1792
|
return !0;
|
|
2875
1793
|
};
|
|
2876
1794
|
/**
|
|
@@ -2879,7 +1797,7 @@ const Qi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), es = (
|
|
|
2879
1797
|
* This source code is licensed under the ISC license.
|
|
2880
1798
|
* See the LICENSE file in the root directory of this source tree.
|
|
2881
1799
|
*/
|
|
2882
|
-
var
|
|
1800
|
+
var Gn = {
|
|
2883
1801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2884
1802
|
width: 24,
|
|
2885
1803
|
height: 24,
|
|
@@ -2896,32 +1814,32 @@ var rs = {
|
|
|
2896
1814
|
* This source code is licensed under the ISC license.
|
|
2897
1815
|
* See the LICENSE file in the root directory of this source tree.
|
|
2898
1816
|
*/
|
|
2899
|
-
const
|
|
1817
|
+
const Zn = Lt(
|
|
2900
1818
|
({
|
|
2901
|
-
color:
|
|
2902
|
-
size:
|
|
2903
|
-
strokeWidth:
|
|
2904
|
-
absoluteStrokeWidth:
|
|
2905
|
-
className:
|
|
2906
|
-
children:
|
|
2907
|
-
iconNode:
|
|
2908
|
-
...
|
|
2909
|
-
}, p) =>
|
|
1819
|
+
color: t = "currentColor",
|
|
1820
|
+
size: n = 24,
|
|
1821
|
+
strokeWidth: i = 2,
|
|
1822
|
+
absoluteStrokeWidth: c,
|
|
1823
|
+
className: h = "",
|
|
1824
|
+
children: y,
|
|
1825
|
+
iconNode: g,
|
|
1826
|
+
...l
|
|
1827
|
+
}, p) => Be(
|
|
2910
1828
|
"svg",
|
|
2911
1829
|
{
|
|
2912
1830
|
ref: p,
|
|
2913
|
-
...
|
|
2914
|
-
width:
|
|
2915
|
-
height:
|
|
2916
|
-
stroke:
|
|
2917
|
-
strokeWidth:
|
|
2918
|
-
className:
|
|
2919
|
-
...!
|
|
2920
|
-
...
|
|
1831
|
+
...Gn,
|
|
1832
|
+
width: n,
|
|
1833
|
+
height: n,
|
|
1834
|
+
stroke: t,
|
|
1835
|
+
strokeWidth: c ? Number(i) * 24 / Number(n) : i,
|
|
1836
|
+
className: Gt("lucide", h),
|
|
1837
|
+
...!y && !Jn(l) && { "aria-hidden": "true" },
|
|
1838
|
+
...l
|
|
2921
1839
|
},
|
|
2922
1840
|
[
|
|
2923
|
-
...
|
|
2924
|
-
...Array.isArray(
|
|
1841
|
+
...g.map(([w, v]) => Be(w, v)),
|
|
1842
|
+
...Array.isArray(y) ? y : [y]
|
|
2925
1843
|
]
|
|
2926
1844
|
)
|
|
2927
1845
|
);
|
|
@@ -2931,20 +1849,20 @@ const ns = mn(
|
|
|
2931
1849
|
* This source code is licensed under the ISC license.
|
|
2932
1850
|
* See the LICENSE file in the root directory of this source tree.
|
|
2933
1851
|
*/
|
|
2934
|
-
const
|
|
2935
|
-
const
|
|
2936
|
-
({ className:
|
|
2937
|
-
ref:
|
|
2938
|
-
iconNode:
|
|
2939
|
-
className:
|
|
2940
|
-
`lucide-${
|
|
2941
|
-
`lucide-${
|
|
2942
|
-
|
|
1852
|
+
const Zt = (t, n) => {
|
|
1853
|
+
const i = Lt(
|
|
1854
|
+
({ className: c, ...h }, y) => Be(Zn, {
|
|
1855
|
+
ref: y,
|
|
1856
|
+
iconNode: n,
|
|
1857
|
+
className: Gt(
|
|
1858
|
+
`lucide-${Hn(Nt(t))}`,
|
|
1859
|
+
`lucide-${t}`,
|
|
1860
|
+
c
|
|
2943
1861
|
),
|
|
2944
|
-
...
|
|
1862
|
+
...h
|
|
2945
1863
|
})
|
|
2946
1864
|
);
|
|
2947
|
-
return
|
|
1865
|
+
return i.displayName = Nt(t), i;
|
|
2948
1866
|
};
|
|
2949
1867
|
/**
|
|
2950
1868
|
* @license lucide-react v0.544.0 - ISC
|
|
@@ -2952,7 +1870,7 @@ const Jn = (e, t) => {
|
|
|
2952
1870
|
* This source code is licensed under the ISC license.
|
|
2953
1871
|
* See the LICENSE file in the root directory of this source tree.
|
|
2954
1872
|
*/
|
|
2955
|
-
const
|
|
1873
|
+
const Xn = [
|
|
2956
1874
|
[
|
|
2957
1875
|
"path",
|
|
2958
1876
|
{
|
|
@@ -2960,14 +1878,14 @@ const os = [
|
|
|
2960
1878
|
key: "18887p"
|
|
2961
1879
|
}
|
|
2962
1880
|
]
|
|
2963
|
-
],
|
|
1881
|
+
], Qn = Zt("message-square", Xn);
|
|
2964
1882
|
/**
|
|
2965
1883
|
* @license lucide-react v0.544.0 - ISC
|
|
2966
1884
|
*
|
|
2967
1885
|
* This source code is licensed under the ISC license.
|
|
2968
1886
|
* See the LICENSE file in the root directory of this source tree.
|
|
2969
1887
|
*/
|
|
2970
|
-
const
|
|
1888
|
+
const ea = [
|
|
2971
1889
|
[
|
|
2972
1890
|
"path",
|
|
2973
1891
|
{
|
|
@@ -2976,77 +1894,77 @@ const is = [
|
|
|
2976
1894
|
}
|
|
2977
1895
|
],
|
|
2978
1896
|
["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
|
|
2979
|
-
],
|
|
2980
|
-
function
|
|
2981
|
-
const { messages:
|
|
2982
|
-
|
|
2983
|
-
const
|
|
2984
|
-
|
|
1897
|
+
], rt = Zt("send", ea);
|
|
1898
|
+
function ta({ config: t, chat: n }) {
|
|
1899
|
+
const { messages: i, sendMessage: c, isLoading: h, error: y } = n, [g, l] = q.useState(""), [p, w] = q.useState(!1), v = q.useRef(null);
|
|
1900
|
+
q.useEffect(() => {
|
|
1901
|
+
const k = () => {
|
|
1902
|
+
w(window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
2985
1903
|
};
|
|
2986
|
-
|
|
2987
|
-
const
|
|
2988
|
-
return
|
|
1904
|
+
k();
|
|
1905
|
+
const L = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1906
|
+
return L.addEventListener("change", k), () => L.removeEventListener("change", k);
|
|
2989
1907
|
}, []);
|
|
2990
1908
|
const m = async () => {
|
|
2991
|
-
!
|
|
2992
|
-
var
|
|
2993
|
-
(
|
|
1909
|
+
!g.trim() || h || (await c(g.trim()), l(""), setTimeout(() => {
|
|
1910
|
+
var k;
|
|
1911
|
+
(k = v.current) == null || k.focus();
|
|
2994
1912
|
}, 100));
|
|
2995
|
-
},
|
|
2996
|
-
|
|
1913
|
+
}, $ = (k) => {
|
|
1914
|
+
k.key === "Enter" && !k.shiftKey && (k.preventDefault(), m());
|
|
2997
1915
|
};
|
|
2998
|
-
return /* @__PURE__ */
|
|
2999
|
-
|
|
1916
|
+
return /* @__PURE__ */ u.jsxs(
|
|
1917
|
+
Jt,
|
|
3000
1918
|
{
|
|
3001
1919
|
"data-theme": p ? "dark" : "light",
|
|
3002
1920
|
style: {
|
|
3003
|
-
height:
|
|
1921
|
+
height: t.height,
|
|
3004
1922
|
display: "flex",
|
|
3005
1923
|
flexDirection: "column",
|
|
3006
1924
|
borderRadius: "8px"
|
|
3007
1925
|
},
|
|
3008
1926
|
children: [
|
|
3009
|
-
/* @__PURE__ */
|
|
3010
|
-
|
|
1927
|
+
/* @__PURE__ */ u.jsxs(Ze, { style: { flex: 1, padding: "16px" }, children: [
|
|
1928
|
+
i.map((k) => /* @__PURE__ */ u.jsx(
|
|
3011
1929
|
"div",
|
|
3012
1930
|
{
|
|
3013
1931
|
style: {
|
|
3014
1932
|
display: "flex",
|
|
3015
1933
|
marginBottom: "16px",
|
|
3016
|
-
justifyContent:
|
|
1934
|
+
justifyContent: k.role === "user" ? "flex-end" : "flex-start"
|
|
3017
1935
|
},
|
|
3018
|
-
children: /* @__PURE__ */
|
|
3019
|
-
|
|
3020
|
-
/* @__PURE__ */
|
|
1936
|
+
children: /* @__PURE__ */ u.jsxs(pe, { $isUser: k.role === "user", children: [
|
|
1937
|
+
k.role === "assistant" ? /* @__PURE__ */ u.jsx(qe, { content: k.content }) : k.content,
|
|
1938
|
+
/* @__PURE__ */ u.jsx(Qe, { $isUser: k.role === "user", children: Ke(k.timestamp) })
|
|
3021
1939
|
] })
|
|
3022
1940
|
},
|
|
3023
|
-
|
|
1941
|
+
k.id
|
|
3024
1942
|
)),
|
|
3025
|
-
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
/* @__PURE__ */
|
|
3028
|
-
/* @__PURE__ */
|
|
1943
|
+
h && /* @__PURE__ */ u.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "16px" }, children: /* @__PURE__ */ u.jsx(pe, { $isUser: !1, children: /* @__PURE__ */ u.jsxs(Xe, { children: [
|
|
1944
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" }),
|
|
1945
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" }),
|
|
1946
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" })
|
|
3029
1947
|
] }) }) }),
|
|
3030
|
-
|
|
1948
|
+
y && /* @__PURE__ */ u.jsx(et, { children: y })
|
|
3031
1949
|
] }),
|
|
3032
|
-
/* @__PURE__ */
|
|
3033
|
-
/* @__PURE__ */
|
|
3034
|
-
|
|
1950
|
+
/* @__PURE__ */ u.jsxs(Je, { children: [
|
|
1951
|
+
/* @__PURE__ */ u.jsx(
|
|
1952
|
+
tt,
|
|
3035
1953
|
{
|
|
3036
1954
|
ref: v,
|
|
3037
|
-
value:
|
|
3038
|
-
onChange:
|
|
3039
|
-
onKeyDown:
|
|
3040
|
-
placeholder:
|
|
3041
|
-
disabled:
|
|
1955
|
+
value: g,
|
|
1956
|
+
onChange: l,
|
|
1957
|
+
onKeyDown: $,
|
|
1958
|
+
placeholder: t.placeholder,
|
|
1959
|
+
disabled: h
|
|
3042
1960
|
}
|
|
3043
1961
|
),
|
|
3044
|
-
/* @__PURE__ */
|
|
3045
|
-
|
|
1962
|
+
/* @__PURE__ */ u.jsx(
|
|
1963
|
+
Ge,
|
|
3046
1964
|
{
|
|
3047
1965
|
onClick: m,
|
|
3048
|
-
disabled:
|
|
3049
|
-
children: /* @__PURE__ */
|
|
1966
|
+
disabled: h || !g.trim(),
|
|
1967
|
+
children: /* @__PURE__ */ u.jsx(rt, { size: 16 })
|
|
3050
1968
|
}
|
|
3051
1969
|
)
|
|
3052
1970
|
] })
|
|
@@ -3054,139 +1972,139 @@ function ss({ config: e, chat: t }) {
|
|
|
3054
1972
|
}
|
|
3055
1973
|
);
|
|
3056
1974
|
}
|
|
3057
|
-
function
|
|
3058
|
-
const { messages:
|
|
3059
|
-
!p.trim() ||
|
|
3060
|
-
var
|
|
3061
|
-
(
|
|
1975
|
+
function Ut({ config: t, chat: n }) {
|
|
1976
|
+
const { messages: i, sendMessage: c, isLoading: h, error: y, isOpen: g, setIsOpen: l } = n, [p, w] = q.useState(""), [v, m] = q.useState(t.height || 400), $ = q.useRef(null), k = async () => {
|
|
1977
|
+
!p.trim() || h || (await c(p.trim()), w(""), setTimeout(() => {
|
|
1978
|
+
var T;
|
|
1979
|
+
(T = $.current) == null || T.focus();
|
|
3062
1980
|
}, 100));
|
|
3063
|
-
},
|
|
3064
|
-
|
|
1981
|
+
}, L = (T) => {
|
|
1982
|
+
T.key === "Enter" && !T.shiftKey && (T.preventDefault(), k());
|
|
3065
1983
|
};
|
|
3066
|
-
return
|
|
3067
|
-
|
|
1984
|
+
return g ? /* @__PURE__ */ u.jsxs(
|
|
1985
|
+
Yn,
|
|
3068
1986
|
{
|
|
3069
|
-
$position:
|
|
1987
|
+
$position: t.position || "bottom-right",
|
|
3070
1988
|
style: {
|
|
3071
1989
|
height: v,
|
|
3072
|
-
...
|
|
1990
|
+
...t.chatWindowStyle
|
|
3073
1991
|
},
|
|
3074
1992
|
children: [
|
|
3075
|
-
|
|
3076
|
-
|
|
1993
|
+
t.resizable !== !1 && /* @__PURE__ */ u.jsx(
|
|
1994
|
+
Vn,
|
|
3077
1995
|
{
|
|
3078
1996
|
$position: "top",
|
|
3079
|
-
onMouseDown: (
|
|
3080
|
-
|
|
3081
|
-
const
|
|
3082
|
-
const
|
|
3083
|
-
m(Math.max(200, Math.min(600,
|
|
3084
|
-
},
|
|
3085
|
-
document.removeEventListener("mousemove",
|
|
1997
|
+
onMouseDown: (T) => {
|
|
1998
|
+
T.preventDefault();
|
|
1999
|
+
const W = T.clientY, r = typeof v == "number" ? v : 400, o = (x) => {
|
|
2000
|
+
const f = x.clientY - W, j = r - f;
|
|
2001
|
+
m(Math.max(200, Math.min(600, j)));
|
|
2002
|
+
}, a = () => {
|
|
2003
|
+
document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", a);
|
|
3086
2004
|
};
|
|
3087
|
-
document.addEventListener("mousemove",
|
|
2005
|
+
document.addEventListener("mousemove", o), document.addEventListener("mouseup", a);
|
|
3088
2006
|
}
|
|
3089
2007
|
}
|
|
3090
2008
|
),
|
|
3091
|
-
|
|
3092
|
-
/* @__PURE__ */
|
|
3093
|
-
/* @__PURE__ */
|
|
2009
|
+
t.showHeader !== !1 && /* @__PURE__ */ u.jsxs(Kn, { primaryColor: t.primaryColor, children: [
|
|
2010
|
+
/* @__PURE__ */ u.jsx("div", { className: "header-content", children: /* @__PURE__ */ u.jsx("div", { className: "font-medium", children: t.chatName || "Customer Service" }) }),
|
|
2011
|
+
/* @__PURE__ */ u.jsx("div", { className: "header-actions", children: /* @__PURE__ */ u.jsx(
|
|
3094
2012
|
"button",
|
|
3095
2013
|
{
|
|
3096
|
-
onClick: () =>
|
|
2014
|
+
onClick: () => l(!1),
|
|
3097
2015
|
className: "hover:bg-white/10 p-1 rounded",
|
|
3098
|
-
children: /* @__PURE__ */
|
|
3099
|
-
/* @__PURE__ */
|
|
3100
|
-
/* @__PURE__ */
|
|
2016
|
+
children: /* @__PURE__ */ u.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
2017
|
+
/* @__PURE__ */ u.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
2018
|
+
/* @__PURE__ */ u.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
3101
2019
|
] })
|
|
3102
2020
|
}
|
|
3103
2021
|
) })
|
|
3104
2022
|
] }),
|
|
3105
|
-
/* @__PURE__ */
|
|
3106
|
-
|
|
2023
|
+
/* @__PURE__ */ u.jsxs(Ze, { children: [
|
|
2024
|
+
i.map((T) => /* @__PURE__ */ u.jsx(
|
|
3107
2025
|
"div",
|
|
3108
2026
|
{
|
|
3109
2027
|
style: {
|
|
3110
2028
|
display: "flex",
|
|
3111
2029
|
marginBottom: "16px",
|
|
3112
|
-
justifyContent:
|
|
2030
|
+
justifyContent: T.role === "user" ? "flex-end" : "flex-start"
|
|
3113
2031
|
},
|
|
3114
|
-
children: /* @__PURE__ */
|
|
3115
|
-
|
|
3116
|
-
/* @__PURE__ */
|
|
2032
|
+
children: /* @__PURE__ */ u.jsxs(pe, { $isUser: T.role === "user", children: [
|
|
2033
|
+
T.role === "assistant" ? /* @__PURE__ */ u.jsx(qe, { content: T.content }) : T.content,
|
|
2034
|
+
/* @__PURE__ */ u.jsx(Qe, { $isUser: T.role === "user", children: Ke(T.timestamp) })
|
|
3117
2035
|
] })
|
|
3118
2036
|
},
|
|
3119
|
-
|
|
2037
|
+
T.id
|
|
3120
2038
|
)),
|
|
3121
|
-
|
|
3122
|
-
/* @__PURE__ */
|
|
3123
|
-
/* @__PURE__ */
|
|
3124
|
-
/* @__PURE__ */
|
|
2039
|
+
h && /* @__PURE__ */ u.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "16px" }, children: /* @__PURE__ */ u.jsx(pe, { $isUser: !1, children: /* @__PURE__ */ u.jsxs(Xe, { children: [
|
|
2040
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" }),
|
|
2041
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" }),
|
|
2042
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" })
|
|
3125
2043
|
] }) }) }),
|
|
3126
|
-
|
|
2044
|
+
y && /* @__PURE__ */ u.jsx(et, { children: y })
|
|
3127
2045
|
] }),
|
|
3128
|
-
/* @__PURE__ */
|
|
3129
|
-
/* @__PURE__ */
|
|
3130
|
-
|
|
2046
|
+
/* @__PURE__ */ u.jsxs(Je, { children: [
|
|
2047
|
+
/* @__PURE__ */ u.jsx(
|
|
2048
|
+
tt,
|
|
3131
2049
|
{
|
|
3132
|
-
ref:
|
|
2050
|
+
ref: $,
|
|
3133
2051
|
value: p,
|
|
3134
|
-
onChange:
|
|
3135
|
-
onKeyDown:
|
|
3136
|
-
placeholder:
|
|
3137
|
-
disabled:
|
|
2052
|
+
onChange: w,
|
|
2053
|
+
onKeyDown: L,
|
|
2054
|
+
placeholder: t.placeholder,
|
|
2055
|
+
disabled: h
|
|
3138
2056
|
}
|
|
3139
2057
|
),
|
|
3140
|
-
/* @__PURE__ */
|
|
3141
|
-
|
|
2058
|
+
/* @__PURE__ */ u.jsx(
|
|
2059
|
+
Ge,
|
|
3142
2060
|
{
|
|
3143
|
-
onClick:
|
|
3144
|
-
disabled:
|
|
3145
|
-
children: /* @__PURE__ */
|
|
2061
|
+
onClick: k,
|
|
2062
|
+
disabled: h || !p.trim(),
|
|
2063
|
+
children: /* @__PURE__ */ u.jsx(rt, { size: 16 })
|
|
3146
2064
|
}
|
|
3147
2065
|
)
|
|
3148
2066
|
] })
|
|
3149
2067
|
]
|
|
3150
2068
|
}
|
|
3151
|
-
) : /* @__PURE__ */
|
|
3152
|
-
|
|
2069
|
+
) : /* @__PURE__ */ u.jsxs(
|
|
2070
|
+
Bn,
|
|
3153
2071
|
{
|
|
3154
|
-
$position:
|
|
3155
|
-
onClick: () =>
|
|
3156
|
-
style:
|
|
2072
|
+
$position: t.position || "bottom-right",
|
|
2073
|
+
onClick: () => l(!0),
|
|
2074
|
+
style: t.buttonStyle,
|
|
3157
2075
|
"aria-label": "Open chat",
|
|
3158
2076
|
children: [
|
|
3159
|
-
/* @__PURE__ */
|
|
3160
|
-
/* @__PURE__ */
|
|
2077
|
+
/* @__PURE__ */ u.jsx("div", { className: "icon-container", children: /* @__PURE__ */ u.jsx(Qn, { size: 16 }) }),
|
|
2078
|
+
/* @__PURE__ */ u.jsx("span", { children: t.buttonText || t.chatName || "Need help?" })
|
|
3161
2079
|
]
|
|
3162
2080
|
}
|
|
3163
2081
|
);
|
|
3164
2082
|
}
|
|
3165
|
-
function
|
|
3166
|
-
const
|
|
3167
|
-
switch (
|
|
2083
|
+
function sa(t) {
|
|
2084
|
+
const n = Pr(t), i = $r(n);
|
|
2085
|
+
switch (n.mode) {
|
|
3168
2086
|
case "floating":
|
|
3169
|
-
return /* @__PURE__ */
|
|
2087
|
+
return /* @__PURE__ */ u.jsx(Ut, { config: n, chat: i });
|
|
3170
2088
|
case "embedded":
|
|
3171
|
-
return /* @__PURE__ */
|
|
2089
|
+
return /* @__PURE__ */ u.jsx(ta, { config: n, chat: i });
|
|
3172
2090
|
default:
|
|
3173
|
-
return /* @__PURE__ */
|
|
2091
|
+
return /* @__PURE__ */ u.jsx(Ut, { config: n, chat: i });
|
|
3174
2092
|
}
|
|
3175
2093
|
}
|
|
3176
|
-
function
|
|
3177
|
-
const { messages:
|
|
3178
|
-
!
|
|
2094
|
+
function la({ config: t, chat: n }) {
|
|
2095
|
+
const { messages: i, sendMessage: c, isLoading: h, error: y } = n, [g, l] = q.useState(""), p = q.useRef(null), w = async () => {
|
|
2096
|
+
!g.trim() || h || (await c(g.trim()), l(""), setTimeout(() => {
|
|
3179
2097
|
var m;
|
|
3180
2098
|
(m = p.current) == null || m.focus();
|
|
3181
2099
|
}, 100));
|
|
3182
2100
|
}, v = (m) => {
|
|
3183
|
-
m.key === "Enter" && !m.shiftKey && (m.preventDefault(),
|
|
2101
|
+
m.key === "Enter" && !m.shiftKey && (m.preventDefault(), w());
|
|
3184
2102
|
};
|
|
3185
|
-
return /* @__PURE__ */
|
|
3186
|
-
|
|
2103
|
+
return /* @__PURE__ */ u.jsxs(
|
|
2104
|
+
Jt,
|
|
3187
2105
|
{
|
|
3188
2106
|
style: {
|
|
3189
|
-
height:
|
|
2107
|
+
height: t.height,
|
|
3190
2108
|
display: "flex",
|
|
3191
2109
|
flexDirection: "column",
|
|
3192
2110
|
backgroundColor: "white",
|
|
@@ -3194,8 +2112,8 @@ function fs({ config: e, chat: t }) {
|
|
|
3194
2112
|
borderRadius: "8px"
|
|
3195
2113
|
},
|
|
3196
2114
|
children: [
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
|
|
2115
|
+
/* @__PURE__ */ u.jsxs(Ze, { style: { flex: 1, padding: "12px" }, children: [
|
|
2116
|
+
i.map((m) => /* @__PURE__ */ u.jsx(
|
|
3199
2117
|
"div",
|
|
3200
2118
|
{
|
|
3201
2119
|
style: {
|
|
@@ -3203,38 +2121,38 @@ function fs({ config: e, chat: t }) {
|
|
|
3203
2121
|
marginBottom: "12px",
|
|
3204
2122
|
justifyContent: m.role === "user" ? "flex-end" : "flex-start"
|
|
3205
2123
|
},
|
|
3206
|
-
children: /* @__PURE__ */
|
|
3207
|
-
m.role === "assistant" ? /* @__PURE__ */
|
|
3208
|
-
/* @__PURE__ */
|
|
2124
|
+
children: /* @__PURE__ */ u.jsxs(pe, { $isUser: m.role === "user", children: [
|
|
2125
|
+
m.role === "assistant" ? /* @__PURE__ */ u.jsx(qe, { content: m.content }) : m.content,
|
|
2126
|
+
/* @__PURE__ */ u.jsx(Qe, { $isUser: m.role === "user", children: Ke(m.timestamp) })
|
|
3209
2127
|
] })
|
|
3210
2128
|
},
|
|
3211
2129
|
m.id
|
|
3212
2130
|
)),
|
|
3213
|
-
|
|
3214
|
-
/* @__PURE__ */
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
/* @__PURE__ */
|
|
2131
|
+
h && /* @__PURE__ */ u.jsx("div", { style: { display: "flex", justifyContent: "flex-start", marginBottom: "12px" }, children: /* @__PURE__ */ u.jsx(pe, { $isUser: !1, children: /* @__PURE__ */ u.jsxs(Xe, { children: [
|
|
2132
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" }),
|
|
2133
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" }),
|
|
2134
|
+
/* @__PURE__ */ u.jsx("div", { className: "dot" })
|
|
3217
2135
|
] }) }) }),
|
|
3218
|
-
|
|
2136
|
+
y && /* @__PURE__ */ u.jsx(et, { children: y })
|
|
3219
2137
|
] }),
|
|
3220
|
-
/* @__PURE__ */
|
|
3221
|
-
/* @__PURE__ */
|
|
3222
|
-
|
|
2138
|
+
/* @__PURE__ */ u.jsxs(Je, { children: [
|
|
2139
|
+
/* @__PURE__ */ u.jsx(
|
|
2140
|
+
tt,
|
|
3223
2141
|
{
|
|
3224
2142
|
ref: p,
|
|
3225
|
-
value:
|
|
3226
|
-
onChange:
|
|
2143
|
+
value: g,
|
|
2144
|
+
onChange: l,
|
|
3227
2145
|
onKeyDown: v,
|
|
3228
|
-
placeholder:
|
|
3229
|
-
disabled:
|
|
2146
|
+
placeholder: t.placeholder,
|
|
2147
|
+
disabled: h
|
|
3230
2148
|
}
|
|
3231
2149
|
),
|
|
3232
|
-
/* @__PURE__ */
|
|
3233
|
-
|
|
2150
|
+
/* @__PURE__ */ u.jsx(
|
|
2151
|
+
Ge,
|
|
3234
2152
|
{
|
|
3235
|
-
onClick:
|
|
3236
|
-
disabled:
|
|
3237
|
-
children: /* @__PURE__ */
|
|
2153
|
+
onClick: w,
|
|
2154
|
+
disabled: h || !g.trim(),
|
|
2155
|
+
children: /* @__PURE__ */ u.jsx(rt, { size: 16 })
|
|
3238
2156
|
}
|
|
3239
2157
|
)
|
|
3240
2158
|
] })
|
|
@@ -3243,17 +2161,17 @@ function fs({ config: e, chat: t }) {
|
|
|
3243
2161
|
);
|
|
3244
2162
|
}
|
|
3245
2163
|
export {
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
2164
|
+
ta as EmbeddedChat,
|
|
2165
|
+
Ut as FloatingChat,
|
|
2166
|
+
la as InlineChat,
|
|
2167
|
+
qe as MarkdownRenderer,
|
|
2168
|
+
Tr as OrdifyApiClient,
|
|
2169
|
+
sa as OrdifyChat,
|
|
2170
|
+
oa as debounce,
|
|
2171
|
+
Ke as formatTime,
|
|
2172
|
+
Et as generateId,
|
|
2173
|
+
Or as parseStreamingResponse,
|
|
2174
|
+
ia as throttle,
|
|
2175
|
+
$r as useOrdifyChat,
|
|
2176
|
+
Pr as useOrdifyConfig
|
|
3259
2177
|
};
|