@ibiz-template-plugin/ai-chat 0.0.4 → 0.0.6
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.es.js +453 -400
- package/dist/index.legacy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/chat-container/chat-container.d.ts +13 -0
- package/dist/types/components/chat-message-item/error-message/error-message.d.ts +9 -0
- package/dist/types/interface/i-chat-options/i-chat-options.d.ts +16 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var H = (t, e, n) => (
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
var
|
|
7
|
-
function
|
|
1
|
+
var Vt = Object.defineProperty;
|
|
2
|
+
var Ot = (t, e, n) => e in t ? Vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var H = (t, e, n) => (Ot(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import ke from "interactjs";
|
|
5
|
+
import Bt from "cherry-markdown";
|
|
6
|
+
var me, f, ft, ht, B, De, dt, Ee, I = {}, vt = [], Wt = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ge = Array.isArray;
|
|
7
|
+
function F(t, e) {
|
|
8
8
|
for (var n in e)
|
|
9
9
|
t[n] = e[n];
|
|
10
10
|
return t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function pt(t) {
|
|
13
13
|
var e = t.parentNode;
|
|
14
14
|
e && e.removeChild(t);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function K(t, e, n) {
|
|
17
17
|
var i, s, r, o = {};
|
|
18
18
|
for (r in e)
|
|
19
19
|
r == "key" ? i = e[r] : r == "ref" ? s = e[r] : o[r] = e[r];
|
|
20
|
-
if (arguments.length > 2 && (o.children = arguments.length > 3 ?
|
|
20
|
+
if (arguments.length > 2 && (o.children = arguments.length > 3 ? me.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null)
|
|
21
21
|
for (r in t.defaultProps)
|
|
22
22
|
o[r] === void 0 && (o[r] = t.defaultProps[r]);
|
|
23
|
-
return
|
|
23
|
+
return re(t, o, i, s, null);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
var r = { type: t, props: e, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: s == null ? ++
|
|
25
|
+
function re(t, e, n, i, s) {
|
|
26
|
+
var r = { type: t, props: e, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: s == null ? ++ft : s };
|
|
27
27
|
return s == null && f.vnode != null && f.vnode(r), r;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ve() {
|
|
30
30
|
return { current: null };
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Y(t) {
|
|
33
33
|
return t.children;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function M(t, e) {
|
|
36
36
|
this.props = t, this.context = e;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Q(t, e) {
|
|
39
39
|
if (e == null)
|
|
40
|
-
return t.__ ?
|
|
40
|
+
return t.__ ? Q(t.__, t.__.__k.indexOf(t) + 1) : null;
|
|
41
41
|
for (var n; e < t.__k.length; e++)
|
|
42
42
|
if ((n = t.__k[e]) != null && n.__e != null)
|
|
43
43
|
return n.__d || n.__e;
|
|
44
|
-
return typeof t.type == "function" ?
|
|
44
|
+
return typeof t.type == "function" ? Q(t) : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function mt(t) {
|
|
47
47
|
var e, n;
|
|
48
48
|
if ((t = t.__) != null && t.__c != null) {
|
|
49
49
|
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
|
|
@@ -51,39 +51,39 @@ function pt(t) {
|
|
|
51
51
|
t.__e = t.__c.base = n.__e;
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
|
-
return
|
|
54
|
+
return mt(t);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
(!t.__d && (t.__d = !0) &&
|
|
57
|
+
function Oe(t) {
|
|
58
|
+
(!t.__d && (t.__d = !0) && B.push(t) && !ae.__r++ || De !== f.debounceRendering) && ((De = f.debounceRendering) || dt)(ae);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ae() {
|
|
61
61
|
var t, e, n, i, s, r, o, l, c;
|
|
62
|
-
for (
|
|
63
|
-
t.__d && (e =
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
function
|
|
67
|
-
var a, m, d, _, v,
|
|
68
|
-
for (n.__k = [], a = 0; a <
|
|
69
|
-
(_ = n.__k[a] = (_ = e[a]) == null || typeof _ == "boolean" || typeof _ == "function" ? null : typeof _ == "string" || typeof _ == "number" || typeof _ == "bigint" ?
|
|
70
|
-
for (n.__e =
|
|
71
|
-
$[a] != null && (typeof n.type == "function" && $[a].__e != null && $[a].__e == n.__d && (n.__d = $[a].__e.nextSibling),
|
|
72
|
-
}
|
|
73
|
-
function
|
|
62
|
+
for (B.sort(Ee); t = B.shift(); )
|
|
63
|
+
t.__d && (e = B.length, i = void 0, s = void 0, r = void 0, l = (o = (n = t).__v).__e, (c = n.__P) && (i = [], s = [], (r = F({}, o)).__v = o.__v + 1, Pe(c, o, r, n.__n, c.ownerSVGElement !== void 0, o.__h != null ? [l] : null, i, l == null ? Q(o) : l, o.__h, s), wt(i, o, s), o.__e != l && mt(o)), B.length > e && B.sort(Ee));
|
|
64
|
+
ae.__r = 0;
|
|
65
|
+
}
|
|
66
|
+
function gt(t, e, n, i, s, r, o, l, c, p, h) {
|
|
67
|
+
var a, m, d, _, v, P, g, b, C, w = 0, $ = i && i.__k || vt, R = $.length, E = R, T = e.length;
|
|
68
|
+
for (n.__k = [], a = 0; a < T; a++)
|
|
69
|
+
(_ = n.__k[a] = (_ = e[a]) == null || typeof _ == "boolean" || typeof _ == "function" ? null : typeof _ == "string" || typeof _ == "number" || typeof _ == "bigint" ? re(null, _, null, null, _) : ge(_) ? re(Y, { children: _ }, null, null, null) : _.__b > 0 ? re(_.type, _.props, _.key, _.ref ? _.ref : null, _.__v) : _) != null ? (_.__ = n, _.__b = n.__b + 1, (b = It(_, $, g = a + w, E)) === -1 ? d = I : (d = $[b] || I, $[b] = void 0, E--), Pe(t, _, d, s, r, o, l, c, p, h), v = _.__e, (m = _.ref) && d.ref != m && (d.ref && Re(d.ref, null, _), h.push(m, _.__c || v, _)), v != null && (P == null && (P = v), (C = d === I || d.__v === null) ? b == -1 && w-- : b !== g && (b === g + 1 ? w++ : b > g ? E > T - g ? w += b - g : w-- : w = b < g && b == g - 1 ? b - g : 0), g = a + w, typeof _.type != "function" || b === g && d.__k !== _.__k ? typeof _.type == "function" || b === g && !C ? _.__d !== void 0 ? (c = _.__d, _.__d = void 0) : c = v.nextSibling : c = bt(t, v, c) : c = yt(_, c, t), typeof n.type == "function" && (n.__d = c))) : (d = $[a]) && d.key == null && d.__e && (d.__e == c && (d.__ = i, c = Q(d)), Ae(d, d, !1), $[a] = null);
|
|
70
|
+
for (n.__e = P, a = R; a--; )
|
|
71
|
+
$[a] != null && (typeof n.type == "function" && $[a].__e != null && $[a].__e == n.__d && (n.__d = $[a].__e.nextSibling), Ae($[a], $[a]));
|
|
72
|
+
}
|
|
73
|
+
function yt(t, e, n) {
|
|
74
74
|
for (var i, s = t.__k, r = 0; s && r < s.length; r++)
|
|
75
|
-
(i = s[r]) && (i.__ = t, e = typeof i.type == "function" ?
|
|
75
|
+
(i = s[r]) && (i.__ = t, e = typeof i.type == "function" ? yt(i, e, n) : bt(n, i.__e, e));
|
|
76
76
|
return e;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return e = e || [], t == null || typeof t == "boolean" || (
|
|
80
|
-
|
|
78
|
+
function le(t, e) {
|
|
79
|
+
return e = e || [], t == null || typeof t == "boolean" || (ge(t) ? t.some(function(n) {
|
|
80
|
+
le(n, e);
|
|
81
81
|
}) : e.push(t)), e;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function bt(t, e, n) {
|
|
84
84
|
return n == null || n.parentNode !== t ? t.insertBefore(e, null) : e == n && e.parentNode != null || t.insertBefore(e, n), e.nextSibling;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function It(t, e, n, i) {
|
|
87
87
|
var s = t.key, r = t.type, o = n - 1, l = n + 1, c = e[n];
|
|
88
88
|
if (c === null || c && s == c.key && r === c.type)
|
|
89
89
|
return n;
|
|
@@ -102,17 +102,17 @@ function Ot(t, e, n, i) {
|
|
|
102
102
|
}
|
|
103
103
|
return -1;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function qt(t, e, n, i, s) {
|
|
106
106
|
var r;
|
|
107
107
|
for (r in n)
|
|
108
|
-
r === "children" || r === "key" || r in e ||
|
|
108
|
+
r === "children" || r === "key" || r in e || ce(t, r, null, n[r], i);
|
|
109
109
|
for (r in e)
|
|
110
|
-
s && typeof e[r] != "function" || r === "children" || r === "key" || r === "value" || r === "checked" || n[r] === e[r] ||
|
|
110
|
+
s && typeof e[r] != "function" || r === "children" || r === "key" || r === "value" || r === "checked" || n[r] === e[r] || ce(t, r, e[r], n[r], i);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
e[0] === "-" ? t.setProperty(e, n == null ? "" : n) : t[e] = n == null ? "" : typeof n != "number" ||
|
|
112
|
+
function Be(t, e, n) {
|
|
113
|
+
e[0] === "-" ? t.setProperty(e, n == null ? "" : n) : t[e] = n == null ? "" : typeof n != "number" || Wt.test(e) ? n : n + "px";
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ce(t, e, n, i, s) {
|
|
116
116
|
var r;
|
|
117
117
|
e:
|
|
118
118
|
if (e === "style")
|
|
@@ -121,13 +121,13 @@ function le(t, e, n, i, s) {
|
|
|
121
121
|
else {
|
|
122
122
|
if (typeof i == "string" && (t.style.cssText = i = ""), i)
|
|
123
123
|
for (e in i)
|
|
124
|
-
n && e in n ||
|
|
124
|
+
n && e in n || Be(t.style, e, "");
|
|
125
125
|
if (n)
|
|
126
126
|
for (e in n)
|
|
127
|
-
i && n[e] === i[e] ||
|
|
127
|
+
i && n[e] === i[e] || Be(t.style, e, n[e]);
|
|
128
128
|
}
|
|
129
129
|
else if (e[0] === "o" && e[1] === "n")
|
|
130
|
-
r = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + r] = n, n ? i ? n.u = i.u : (n.u = Date.now(), t.addEventListener(e, r ?
|
|
130
|
+
r = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + r] = n, n ? i ? n.u = i.u : (n.u = Date.now(), t.addEventListener(e, r ? Ie : We, r)) : t.removeEventListener(e, r ? Ie : We, r);
|
|
131
131
|
else if (e !== "dangerouslySetInnerHTML") {
|
|
132
132
|
if (s)
|
|
133
133
|
e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
@@ -140,7 +140,7 @@ function le(t, e, n, i, s) {
|
|
|
140
140
|
typeof n == "function" || (n == null || n === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, n));
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function We(t) {
|
|
144
144
|
var e = this.l[t.type + !1];
|
|
145
145
|
if (t.t) {
|
|
146
146
|
if (t.t <= e.u)
|
|
@@ -149,23 +149,23 @@ function Oe(t) {
|
|
|
149
149
|
t.t = Date.now();
|
|
150
150
|
return e(f.event ? f.event(t) : t);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ie(t) {
|
|
153
153
|
return this.l[t.type + !0](f.event ? f.event(t) : t);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
var h, a, m, d, _, v,
|
|
155
|
+
function Pe(t, e, n, i, s, r, o, l, c, p) {
|
|
156
|
+
var h, a, m, d, _, v, P, g, b, C, w, $, R, E, T, A = e.type;
|
|
157
157
|
if (e.constructor !== void 0)
|
|
158
158
|
return null;
|
|
159
159
|
n.__h != null && (c = n.__h, l = e.__e = n.__e, e.__h = null, r = [l]), (h = f.__b) && h(e);
|
|
160
160
|
e:
|
|
161
|
-
if (typeof
|
|
161
|
+
if (typeof A == "function")
|
|
162
162
|
try {
|
|
163
|
-
if (g = e.props, b = (h =
|
|
164
|
-
|
|
163
|
+
if (g = e.props, b = (h = A.contextType) && i[h.__c], C = h ? b ? b.props.value : h.__ : i, n.__c ? P = (a = e.__c = n.__c).__ = a.__E : ("prototype" in A && A.prototype.render ? e.__c = a = new A(g, C) : (e.__c = a = new M(g, C), a.constructor = A, a.render = jt), b && b.sub(a), a.props = g, a.state || (a.state = {}), a.context = C, a.__n = i, m = a.__d = !0, a.__h = [], a._sb = []), a.__s == null && (a.__s = a.state), A.getDerivedStateFromProps != null && (a.__s == a.state && (a.__s = F({}, a.__s)), F(a.__s, A.getDerivedStateFromProps(g, a.__s))), d = a.props, _ = a.state, a.__v = e, m)
|
|
164
|
+
A.getDerivedStateFromProps == null && a.componentWillMount != null && a.componentWillMount(), a.componentDidMount != null && a.__h.push(a.componentDidMount);
|
|
165
165
|
else {
|
|
166
|
-
if (
|
|
167
|
-
for (e.__v !== n.__v && (a.props = g, a.state = a.__s, a.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(
|
|
168
|
-
|
|
166
|
+
if (A.getDerivedStateFromProps == null && g !== d && a.componentWillReceiveProps != null && a.componentWillReceiveProps(g, C), !a.__e && (a.shouldComponentUpdate != null && a.shouldComponentUpdate(g, a.__s, C) === !1 || e.__v === n.__v)) {
|
|
167
|
+
for (e.__v !== n.__v && (a.props = g, a.state = a.__s, a.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(ne) {
|
|
168
|
+
ne && (ne.__ = e);
|
|
169
169
|
}), w = 0; w < a._sb.length; w++)
|
|
170
170
|
a.__h.push(a._sb[w]);
|
|
171
171
|
a._sb = [], a.__h.length && o.push(a);
|
|
@@ -175,25 +175,25 @@ function ze(t, e, n, i, s, r, o, l, c, p) {
|
|
|
175
175
|
a.componentDidUpdate(d, _, v);
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
if (a.context = C, a.props = g, a.__P = t, a.__e = !1, $ = f.__r,
|
|
179
|
-
for (a.state = a.__s, a.__d = !1, $ && $(e), h = a.render(a.props, a.state, a.context),
|
|
180
|
-
a.__h.push(a._sb[
|
|
178
|
+
if (a.context = C, a.props = g, a.__P = t, a.__e = !1, $ = f.__r, R = 0, "prototype" in A && A.prototype.render) {
|
|
179
|
+
for (a.state = a.__s, a.__d = !1, $ && $(e), h = a.render(a.props, a.state, a.context), E = 0; E < a._sb.length; E++)
|
|
180
|
+
a.__h.push(a._sb[E]);
|
|
181
181
|
a._sb = [];
|
|
182
182
|
} else
|
|
183
183
|
do
|
|
184
184
|
a.__d = !1, $ && $(e), h = a.render(a.props, a.state, a.context), a.state = a.__s;
|
|
185
|
-
while (a.__d && ++
|
|
186
|
-
a.state = a.__s, a.getChildContext != null && (i =
|
|
187
|
-
} catch (
|
|
188
|
-
e.__v = null, (c || r != null) && (e.__e = l, e.__h = !!c, r[r.indexOf(l)] = null), f.__e(
|
|
185
|
+
while (a.__d && ++R < 25);
|
|
186
|
+
a.state = a.__s, a.getChildContext != null && (i = F(F({}, i), a.getChildContext())), m || a.getSnapshotBeforeUpdate == null || (v = a.getSnapshotBeforeUpdate(d, _)), gt(t, ge(T = h != null && h.type === Y && h.key == null ? h.props.children : h) ? T : [T], e, n, i, s, r, o, l, c, p), a.base = e.__e, e.__h = null, a.__h.length && o.push(a), P && (a.__E = a.__ = null);
|
|
187
|
+
} catch (ne) {
|
|
188
|
+
e.__v = null, (c || r != null) && (e.__e = l, e.__h = !!c, r[r.indexOf(l)] = null), f.__e(ne, e, n);
|
|
189
189
|
}
|
|
190
190
|
else
|
|
191
|
-
r == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e =
|
|
191
|
+
r == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = Yt(n.__e, e, n, i, s, r, o, c, p);
|
|
192
192
|
(h = f.diffed) && h(e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function wt(t, e, n) {
|
|
195
195
|
for (var i = 0; i < n.length; i++)
|
|
196
|
-
|
|
196
|
+
Re(n[i], n[++i], n[++i]);
|
|
197
197
|
f.__c && f.__c(e, t), t.some(function(s) {
|
|
198
198
|
try {
|
|
199
199
|
t = s.__h, s.__h = [], t.some(function(r) {
|
|
@@ -204,7 +204,7 @@ function bt(t, e, n) {
|
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Yt(t, e, n, i, s, r, o, l, c) {
|
|
208
208
|
var p, h, a, m = n.props, d = e.props, _ = e.type, v = 0;
|
|
209
209
|
if (_ === "svg" && (s = !0), r != null) {
|
|
210
210
|
for (; v < r.length; v++)
|
|
@@ -221,31 +221,31 @@ function Bt(t, e, n, i, s, r, o, l, c) {
|
|
|
221
221
|
if (_ === null)
|
|
222
222
|
m === d || l && t.data === d || (t.data = d);
|
|
223
223
|
else {
|
|
224
|
-
if (r = r &&
|
|
224
|
+
if (r = r && me.call(t.childNodes), h = (m = n.props || I).dangerouslySetInnerHTML, a = d.dangerouslySetInnerHTML, !l) {
|
|
225
225
|
if (r != null)
|
|
226
226
|
for (m = {}, v = 0; v < t.attributes.length; v++)
|
|
227
227
|
m[t.attributes[v].name] = t.attributes[v].value;
|
|
228
228
|
(a || h) && (a && (h && a.__html == h.__html || a.__html === t.innerHTML) || (t.innerHTML = a && a.__html || ""));
|
|
229
229
|
}
|
|
230
|
-
if (
|
|
230
|
+
if (qt(t, d, m, s, l), a)
|
|
231
231
|
e.__k = [];
|
|
232
|
-
else if (
|
|
232
|
+
else if (gt(t, ge(v = e.props.children) ? v : [v], e, n, i, s && _ !== "foreignObject", r, o, r ? r[0] : n.__k && Q(n, 0), l, c), r != null)
|
|
233
233
|
for (v = r.length; v--; )
|
|
234
|
-
r[v] != null &&
|
|
235
|
-
l || ("value" in d && (v = d.value) !== void 0 && (v !== t.value || _ === "progress" && !v || _ === "option" && v !== m.value) &&
|
|
234
|
+
r[v] != null && pt(r[v]);
|
|
235
|
+
l || ("value" in d && (v = d.value) !== void 0 && (v !== t.value || _ === "progress" && !v || _ === "option" && v !== m.value) && ce(t, "value", v, m.value, !1), "checked" in d && (v = d.checked) !== void 0 && v !== t.checked && ce(t, "checked", v, m.checked, !1));
|
|
236
236
|
}
|
|
237
237
|
return t;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Re(t, e, n) {
|
|
240
240
|
try {
|
|
241
241
|
typeof t == "function" ? t(e) : t.current = e;
|
|
242
242
|
} catch (i) {
|
|
243
243
|
f.__e(i, n);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Ae(t, e, n) {
|
|
247
247
|
var i, s;
|
|
248
|
-
if (f.unmount && f.unmount(t), (i = t.ref) && (i.current && i.current !== t.__e ||
|
|
248
|
+
if (f.unmount && f.unmount(t), (i = t.ref) && (i.current && i.current !== t.__e || Re(i, null, e)), (i = t.__c) != null) {
|
|
249
249
|
if (i.componentWillUnmount)
|
|
250
250
|
try {
|
|
251
251
|
i.componentWillUnmount();
|
|
@@ -256,17 +256,17 @@ function Ee(t, e, n) {
|
|
|
256
256
|
}
|
|
257
257
|
if (i = t.__k)
|
|
258
258
|
for (s = 0; s < i.length; s++)
|
|
259
|
-
i[s] &&
|
|
260
|
-
n || t.__e == null ||
|
|
259
|
+
i[s] && Ae(i[s], e, n || typeof t.type != "function");
|
|
260
|
+
n || t.__e == null || pt(t.__e), t.__ = t.__e = t.__d = void 0;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function jt(t, e, n) {
|
|
263
263
|
return this.constructor(t, n);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function qe(t, e, n) {
|
|
266
266
|
var i, s, r, o;
|
|
267
|
-
f.__ && f.__(t, e), s = (i = typeof n == "function") ? null : n && n.__k || e.__k, r = [], o = [],
|
|
267
|
+
f.__ && f.__(t, e), s = (i = typeof n == "function") ? null : n && n.__k || e.__k, r = [], o = [], Pe(e, t = (!i && n || e).__k = K(Y, null, [t]), s || I, I, e.ownerSVGElement !== void 0, !i && n ? [n] : s ? null : e.firstChild ? me.call(e.childNodes) : null, r, !i && n ? n : s ? s.__e : e.firstChild, i, o), wt(r, t, o);
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
me = vt.slice, f = { __e: function(t, e, n, i) {
|
|
270
270
|
for (var s, r, o; e = e.__; )
|
|
271
271
|
if ((s = e.__c) && !s.__)
|
|
272
272
|
try {
|
|
@@ -276,22 +276,22 @@ pe = dt.slice, f = { __e: function(t, e, n, i) {
|
|
|
276
276
|
t = l;
|
|
277
277
|
}
|
|
278
278
|
throw t;
|
|
279
|
-
} },
|
|
279
|
+
} }, ft = 0, ht = function(t) {
|
|
280
280
|
return t != null && t.constructor === void 0;
|
|
281
|
-
},
|
|
281
|
+
}, M.prototype.setState = function(t, e) {
|
|
282
282
|
var n;
|
|
283
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
284
|
-
},
|
|
285
|
-
this.__v && (this.__e = !0, t && this.__h.push(t),
|
|
286
|
-
},
|
|
283
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = F({}, this.state), typeof t == "function" && (t = t(F({}, n), this.props)), t && F(n, t), t != null && this.__v && (e && this._sb.push(e), Oe(this));
|
|
284
|
+
}, M.prototype.forceUpdate = function(t) {
|
|
285
|
+
this.__v && (this.__e = !0, t && this.__h.push(t), Oe(this));
|
|
286
|
+
}, M.prototype.render = Y, B = [], dt = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ee = function(t, e) {
|
|
287
287
|
return t.__v.__b - e.__v.__b;
|
|
288
|
-
},
|
|
289
|
-
const
|
|
290
|
-
function
|
|
288
|
+
}, ae.__r = 0;
|
|
289
|
+
const Xt = "ibiz", Jt = "is-";
|
|
290
|
+
function V(t, e, n, i, s) {
|
|
291
291
|
let r = "".concat(t, "-").concat(e);
|
|
292
292
|
return n && (r += "-".concat(n)), i && (r += "__".concat(i)), s && (r += "--".concat(s)), r;
|
|
293
293
|
}
|
|
294
|
-
class
|
|
294
|
+
class U {
|
|
295
295
|
/**
|
|
296
296
|
* Creates an instance of Namespace.
|
|
297
297
|
*
|
|
@@ -309,7 +309,7 @@ class F {
|
|
|
309
309
|
* @type {string}
|
|
310
310
|
*/
|
|
311
311
|
H(this, "namespace");
|
|
312
|
-
this.block = e, this.namespace = n ||
|
|
312
|
+
this.block = e, this.namespace = n || Xt;
|
|
313
313
|
}
|
|
314
314
|
/**
|
|
315
315
|
* namespace-block
|
|
@@ -321,7 +321,7 @@ class F {
|
|
|
321
321
|
* @return {*} {string}
|
|
322
322
|
*/
|
|
323
323
|
b(e = "") {
|
|
324
|
-
return
|
|
324
|
+
return V(this.namespace, this.block, e, "", "");
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
327
|
* namespace-block__element
|
|
@@ -332,7 +332,7 @@ class F {
|
|
|
332
332
|
* @return {*} {string}
|
|
333
333
|
*/
|
|
334
334
|
e(e) {
|
|
335
|
-
return e ?
|
|
335
|
+
return e ? V(this.namespace, this.block, "", e, "") : "";
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
338
|
* namespace-block--modifier
|
|
@@ -343,7 +343,7 @@ class F {
|
|
|
343
343
|
* @return {*} {string}
|
|
344
344
|
*/
|
|
345
345
|
m(e) {
|
|
346
|
-
return e ?
|
|
346
|
+
return e ? V(this.namespace, this.block, "", "", e) : "";
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
349
|
* namespace-block-blockSuffix__element
|
|
@@ -355,7 +355,7 @@ class F {
|
|
|
355
355
|
* @return {*} {string}
|
|
356
356
|
*/
|
|
357
357
|
be(e, n) {
|
|
358
|
-
return e && n ?
|
|
358
|
+
return e && n ? V(this.namespace, this.block, e, n, "") : "";
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
361
|
* namespace-block__element--modifier
|
|
@@ -367,7 +367,7 @@ class F {
|
|
|
367
367
|
* @return {*} {string}
|
|
368
368
|
*/
|
|
369
369
|
em(e, n) {
|
|
370
|
-
return e && n ?
|
|
370
|
+
return e && n ? V(this.namespace, this.block, "", e, n) : "";
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
373
|
* namespace-block-blockSuffix--modifier
|
|
@@ -379,7 +379,7 @@ class F {
|
|
|
379
379
|
* @return {*} {string}
|
|
380
380
|
*/
|
|
381
381
|
bm(e, n) {
|
|
382
|
-
return e && n ?
|
|
382
|
+
return e && n ? V(this.namespace, this.block, e, "", n) : "";
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* namespace-block-blockSuffix__element--modifier
|
|
@@ -392,7 +392,7 @@ class F {
|
|
|
392
392
|
* @return {*} {string}
|
|
393
393
|
*/
|
|
394
394
|
bem(e, n, i) {
|
|
395
|
-
return e && n && i ?
|
|
395
|
+
return e && n && i ? V(this.namespace, this.block, e, n, i) : "";
|
|
396
396
|
}
|
|
397
397
|
/**
|
|
398
398
|
* 返回状态 class
|
|
@@ -407,7 +407,7 @@ class F {
|
|
|
407
407
|
* @return {*} {string}
|
|
408
408
|
*/
|
|
409
409
|
is(e, n) {
|
|
410
|
-
return e && n ? "".concat(
|
|
410
|
+
return e && n ? "".concat(Jt).concat(e) : "";
|
|
411
411
|
}
|
|
412
412
|
/**
|
|
413
413
|
* 生成使用到的 css 变量 style 对象
|
|
@@ -460,11 +460,11 @@ class F {
|
|
|
460
460
|
return "--".concat(this.namespace, "-").concat(this.block, "-").concat(e);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function z(t) {
|
|
464
464
|
if (typeof t != "string")
|
|
465
465
|
throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Ye(t, e) {
|
|
468
468
|
for (var n = "", i = 0, s = -1, r = 0, o, l = 0; l <= t.length; ++l) {
|
|
469
469
|
if (l < t.length)
|
|
470
470
|
o = t.charCodeAt(l);
|
|
@@ -497,39 +497,39 @@ function Ie(t, e) {
|
|
|
497
497
|
}
|
|
498
498
|
return n;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Zt(t, e) {
|
|
501
501
|
var n = e.dir || e.root, i = e.base || (e.name || "") + (e.ext || "");
|
|
502
502
|
return n ? n === e.root ? n + i : n + t + i : i;
|
|
503
503
|
}
|
|
504
|
-
var
|
|
504
|
+
var J = {
|
|
505
505
|
// path.resolve([from ...], to)
|
|
506
506
|
resolve: function() {
|
|
507
507
|
for (var e = "", n = !1, i, s = arguments.length - 1; s >= -1 && !n; s--) {
|
|
508
508
|
var r;
|
|
509
|
-
s >= 0 ? r = arguments[s] : (i === void 0 && (i = process.cwd()), r = i),
|
|
509
|
+
s >= 0 ? r = arguments[s] : (i === void 0 && (i = process.cwd()), r = i), z(r), r.length !== 0 && (e = r + "/" + e, n = r.charCodeAt(0) === 47);
|
|
510
510
|
}
|
|
511
|
-
return e =
|
|
511
|
+
return e = Ye(e, !n), n ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
|
|
512
512
|
},
|
|
513
513
|
normalize: function(e) {
|
|
514
|
-
if (
|
|
514
|
+
if (z(e), e.length === 0)
|
|
515
515
|
return ".";
|
|
516
516
|
var n = e.charCodeAt(0) === 47, i = e.charCodeAt(e.length - 1) === 47;
|
|
517
|
-
return e =
|
|
517
|
+
return e = Ye(e, !n), e.length === 0 && !n && (e = "."), e.length > 0 && i && (e += "/"), n ? "/" + e : e;
|
|
518
518
|
},
|
|
519
519
|
isAbsolute: function(e) {
|
|
520
|
-
return
|
|
520
|
+
return z(e), e.length > 0 && e.charCodeAt(0) === 47;
|
|
521
521
|
},
|
|
522
522
|
join: function() {
|
|
523
523
|
if (arguments.length === 0)
|
|
524
524
|
return ".";
|
|
525
525
|
for (var e, n = 0; n < arguments.length; ++n) {
|
|
526
526
|
var i = arguments[n];
|
|
527
|
-
|
|
527
|
+
z(i), i.length > 0 && (e === void 0 ? e = i : e += "/" + i);
|
|
528
528
|
}
|
|
529
|
-
return e === void 0 ? "." :
|
|
529
|
+
return e === void 0 ? "." : J.normalize(e);
|
|
530
530
|
},
|
|
531
531
|
relative: function(e, n) {
|
|
532
|
-
if (
|
|
532
|
+
if (z(e), z(n), e === n || (e = J.resolve(e), n = J.resolve(n), e === n))
|
|
533
533
|
return "";
|
|
534
534
|
for (var i = 1; i < e.length && e.charCodeAt(i) === 47; ++i)
|
|
535
535
|
;
|
|
@@ -560,7 +560,7 @@ var X = {
|
|
|
560
560
|
return e;
|
|
561
561
|
},
|
|
562
562
|
dirname: function(e) {
|
|
563
|
-
if (
|
|
563
|
+
if (z(e), e.length === 0)
|
|
564
564
|
return ".";
|
|
565
565
|
for (var n = e.charCodeAt(0), i = n === 47, s = -1, r = !0, o = e.length - 1; o >= 1; --o)
|
|
566
566
|
if (n = e.charCodeAt(o), n === 47) {
|
|
@@ -575,7 +575,7 @@ var X = {
|
|
|
575
575
|
basename: function(e, n) {
|
|
576
576
|
if (n !== void 0 && typeof n != "string")
|
|
577
577
|
throw new TypeError('"ext" argument must be a string');
|
|
578
|
-
|
|
578
|
+
z(e);
|
|
579
579
|
var i = 0, s = -1, r = !0, o;
|
|
580
580
|
if (n !== void 0 && n.length > 0 && n.length <= e.length) {
|
|
581
581
|
if (n.length === e.length && n === e)
|
|
@@ -605,7 +605,7 @@ var X = {
|
|
|
605
605
|
}
|
|
606
606
|
},
|
|
607
607
|
extname: function(e) {
|
|
608
|
-
|
|
608
|
+
z(e);
|
|
609
609
|
for (var n = -1, i = 0, s = -1, r = !0, o = 0, l = e.length - 1; l >= 0; --l) {
|
|
610
610
|
var c = e.charCodeAt(l);
|
|
611
611
|
if (c === 47) {
|
|
@@ -624,10 +624,10 @@ var X = {
|
|
|
624
624
|
format: function(e) {
|
|
625
625
|
if (e === null || typeof e != "object")
|
|
626
626
|
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e);
|
|
627
|
-
return
|
|
627
|
+
return Zt("/", e);
|
|
628
628
|
},
|
|
629
629
|
parse: function(e) {
|
|
630
|
-
|
|
630
|
+
z(e);
|
|
631
631
|
var n = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
632
632
|
if (e.length === 0)
|
|
633
633
|
return n;
|
|
@@ -652,14 +652,14 @@ var X = {
|
|
|
652
652
|
win32: null,
|
|
653
653
|
posix: null
|
|
654
654
|
};
|
|
655
|
-
|
|
656
|
-
function
|
|
655
|
+
J.posix = J;
|
|
656
|
+
function L() {
|
|
657
657
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
return "".concat(
|
|
659
|
+
function $t() {
|
|
660
|
+
return "".concat(L() + L(), "-").concat(L(), "-").concat(L(), "-").concat(L(), "-").concat(L()).concat(L()).concat(L());
|
|
661
661
|
}
|
|
662
|
-
class
|
|
662
|
+
class kt {
|
|
663
663
|
/**
|
|
664
664
|
* 拷贝文本
|
|
665
665
|
*
|
|
@@ -680,110 +680,110 @@ class $t {
|
|
|
680
680
|
* @private
|
|
681
681
|
* @type {(HTMLInputElement | null)}
|
|
682
682
|
*/
|
|
683
|
-
H(
|
|
684
|
-
var
|
|
685
|
-
function
|
|
686
|
-
f.__h && f.__h(
|
|
687
|
-
var n =
|
|
688
|
-
return t >= n.__.length && n.__.push({ __V:
|
|
689
|
-
}
|
|
690
|
-
function
|
|
691
|
-
var n =
|
|
692
|
-
!f.__s &&
|
|
693
|
-
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
683
|
+
H(kt, "inputElement", null);
|
|
684
|
+
var ue, N, Se, je, _e = 0, St = [], se = [], Xe = f.__b, Je = f.__r, Ze = f.diffed, Ge = f.__c, Ke = f.unmount;
|
|
685
|
+
function Ct(t, e) {
|
|
686
|
+
f.__h && f.__h(N, t, _e || e), _e = 0;
|
|
687
|
+
var n = N.__H || (N.__H = { __: [], __h: [] });
|
|
688
|
+
return t >= n.__.length && n.__.push({ __V: se }), n.__[t];
|
|
689
|
+
}
|
|
690
|
+
function fe(t, e) {
|
|
691
|
+
var n = Ct(ue++, 3);
|
|
692
|
+
!f.__s && Nt(n.__H, e) && (n.__ = t, n.i = e, N.__H.__h.push(n));
|
|
693
|
+
}
|
|
694
|
+
function ye(t) {
|
|
695
|
+
return _e = 5, ee(function() {
|
|
696
696
|
return { current: t };
|
|
697
697
|
}, []);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
var n =
|
|
701
|
-
return
|
|
699
|
+
function ee(t, e) {
|
|
700
|
+
var n = Ct(ue++, 7);
|
|
701
|
+
return Nt(n.__H, e) ? (n.__V = t(), n.i = e, n.__h = t, n.__V) : n.__;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
return
|
|
703
|
+
function Qe(t, e) {
|
|
704
|
+
return _e = 8, ee(function() {
|
|
705
705
|
return t;
|
|
706
706
|
}, e);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
for (var t; t =
|
|
708
|
+
function Gt() {
|
|
709
|
+
for (var t; t = St.shift(); )
|
|
710
710
|
if (t.__P && t.__H)
|
|
711
711
|
try {
|
|
712
|
-
t.__H.__h.forEach(
|
|
712
|
+
t.__H.__h.forEach(oe), t.__H.__h.forEach(Me), t.__H.__h = [];
|
|
713
713
|
} catch (e) {
|
|
714
714
|
t.__H.__h = [], f.__e(e, t.__v);
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
f.__b = function(t) {
|
|
718
|
-
|
|
718
|
+
N = null, Xe && Xe(t);
|
|
719
719
|
}, f.__r = function(t) {
|
|
720
|
-
|
|
721
|
-
var e = (
|
|
722
|
-
e && (
|
|
723
|
-
n.__N && (n.__ = n.__N), n.__V =
|
|
724
|
-
})) : (e.__h.forEach(
|
|
720
|
+
Je && Je(t), ue = 0;
|
|
721
|
+
var e = (N = t.__c).__H;
|
|
722
|
+
e && (Se === N ? (e.__h = [], N.__h = [], e.__.forEach(function(n) {
|
|
723
|
+
n.__N && (n.__ = n.__N), n.__V = se, n.__N = n.i = void 0;
|
|
724
|
+
})) : (e.__h.forEach(oe), e.__h.forEach(Me), e.__h = [], ue = 0)), Se = N;
|
|
725
725
|
}, f.diffed = function(t) {
|
|
726
|
-
|
|
726
|
+
Ze && Ze(t);
|
|
727
727
|
var e = t.__c;
|
|
728
|
-
e && e.__H && (e.__H.__h.length && (
|
|
729
|
-
n.i && (n.__H = n.i), n.__V !==
|
|
730
|
-
})),
|
|
728
|
+
e && e.__H && (e.__H.__h.length && (St.push(e) !== 1 && je === f.requestAnimationFrame || ((je = f.requestAnimationFrame) || Kt)(Gt)), e.__H.__.forEach(function(n) {
|
|
729
|
+
n.i && (n.__H = n.i), n.__V !== se && (n.__ = n.__V), n.i = void 0, n.__V = se;
|
|
730
|
+
})), Se = N = null;
|
|
731
731
|
}, f.__c = function(t, e) {
|
|
732
732
|
e.some(function(n) {
|
|
733
733
|
try {
|
|
734
|
-
n.__h.forEach(
|
|
735
|
-
return !i.__ ||
|
|
734
|
+
n.__h.forEach(oe), n.__h = n.__h.filter(function(i) {
|
|
735
|
+
return !i.__ || Me(i);
|
|
736
736
|
});
|
|
737
737
|
} catch (i) {
|
|
738
738
|
e.some(function(s) {
|
|
739
739
|
s.__h && (s.__h = []);
|
|
740
740
|
}), e = [], f.__e(i, n.__v);
|
|
741
741
|
}
|
|
742
|
-
}),
|
|
742
|
+
}), Ge && Ge(t, e);
|
|
743
743
|
}, f.unmount = function(t) {
|
|
744
|
-
|
|
744
|
+
Ke && Ke(t);
|
|
745
745
|
var e, n = t.__c;
|
|
746
746
|
n && n.__H && (n.__H.__.forEach(function(i) {
|
|
747
747
|
try {
|
|
748
|
-
|
|
748
|
+
oe(i);
|
|
749
749
|
} catch (s) {
|
|
750
750
|
e = s;
|
|
751
751
|
}
|
|
752
752
|
}), n.__H = void 0, e && f.__e(e, n.__v));
|
|
753
753
|
};
|
|
754
|
-
var
|
|
755
|
-
function
|
|
754
|
+
var et = typeof requestAnimationFrame == "function";
|
|
755
|
+
function Kt(t) {
|
|
756
756
|
var e, n = function() {
|
|
757
|
-
clearTimeout(i),
|
|
757
|
+
clearTimeout(i), et && cancelAnimationFrame(e), setTimeout(t);
|
|
758
758
|
}, i = setTimeout(n, 100);
|
|
759
|
-
|
|
759
|
+
et && (e = requestAnimationFrame(n));
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
var e =
|
|
763
|
-
typeof n == "function" && (t.__c = void 0, n()),
|
|
761
|
+
function oe(t) {
|
|
762
|
+
var e = N, n = t.__c;
|
|
763
|
+
typeof n == "function" && (t.__c = void 0, n()), N = e;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
var e =
|
|
767
|
-
t.__c = t.__(),
|
|
765
|
+
function Me(t) {
|
|
766
|
+
var e = N;
|
|
767
|
+
t.__c = t.__(), N = e;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Nt(t, e) {
|
|
770
770
|
return !t || t.length !== e.length || e.some(function(n, i) {
|
|
771
771
|
return n !== t[i];
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function be() {
|
|
775
775
|
throw new Error("Cycle detected");
|
|
776
776
|
}
|
|
777
|
-
var
|
|
778
|
-
function
|
|
779
|
-
if (
|
|
780
|
-
|
|
777
|
+
var Qt = Symbol.for("preact-signals");
|
|
778
|
+
function Te() {
|
|
779
|
+
if (q > 1)
|
|
780
|
+
q--;
|
|
781
781
|
else {
|
|
782
|
-
for (var t, e = !1;
|
|
783
|
-
var n =
|
|
784
|
-
for (
|
|
782
|
+
for (var t, e = !1; Z !== void 0; ) {
|
|
783
|
+
var n = Z;
|
|
784
|
+
for (Z = void 0, He++; n !== void 0; ) {
|
|
785
785
|
var i = n.o;
|
|
786
|
-
if (n.o = void 0, n.f &= -3, !(8 & n.f) &&
|
|
786
|
+
if (n.o = void 0, n.f &= -3, !(8 & n.f) && Et(n))
|
|
787
787
|
try {
|
|
788
788
|
n.c();
|
|
789
789
|
} catch (s) {
|
|
@@ -792,11 +792,11 @@ function Re() {
|
|
|
792
792
|
n = i;
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
if (He = 0,
|
|
795
|
+
if (He = 0, q--, e)
|
|
796
796
|
throw t;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
var y = void 0,
|
|
799
|
+
var y = void 0, Z = void 0, q = 0, He = 0, he = 0;
|
|
800
800
|
function xt(t) {
|
|
801
801
|
if (y !== void 0) {
|
|
802
802
|
var e = t.n;
|
|
@@ -809,7 +809,7 @@ function xt(t) {
|
|
|
809
809
|
function k(t) {
|
|
810
810
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
811
811
|
}
|
|
812
|
-
k.prototype.brand =
|
|
812
|
+
k.prototype.brand = Qt;
|
|
813
813
|
k.prototype.h = function() {
|
|
814
814
|
return !0;
|
|
815
815
|
};
|
|
@@ -824,7 +824,7 @@ k.prototype.U = function(t) {
|
|
|
824
824
|
};
|
|
825
825
|
k.prototype.subscribe = function(t) {
|
|
826
826
|
var e = this;
|
|
827
|
-
return
|
|
827
|
+
return we(function() {
|
|
828
828
|
var n = e.value, i = 32 & this.f;
|
|
829
829
|
this.f &= -33;
|
|
830
830
|
try {
|
|
@@ -850,28 +850,28 @@ Object.defineProperty(k.prototype, "value", { get: function() {
|
|
|
850
850
|
var t = xt(this);
|
|
851
851
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
852
852
|
}, set: function(t) {
|
|
853
|
-
if (y instanceof
|
|
853
|
+
if (y instanceof D && function() {
|
|
854
854
|
throw new Error("Computed cannot have side-effects");
|
|
855
855
|
}(), t !== this.v) {
|
|
856
|
-
He > 100 &&
|
|
856
|
+
He > 100 && be(), this.v = t, this.i++, he++, q++;
|
|
857
857
|
try {
|
|
858
858
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
859
859
|
e.t.N();
|
|
860
860
|
} finally {
|
|
861
|
-
|
|
861
|
+
Te();
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
} });
|
|
865
|
-
function
|
|
865
|
+
function de(t) {
|
|
866
866
|
return new k(t);
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Et(t) {
|
|
869
869
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
870
870
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
871
871
|
return !0;
|
|
872
872
|
return !1;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function At(t) {
|
|
875
875
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
876
876
|
var n = e.S.n;
|
|
877
877
|
if (n !== void 0 && (e.r = n), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -880,34 +880,34 @@ function Et(t) {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function Mt(t) {
|
|
884
884
|
for (var e = t.s, n = void 0; e !== void 0; ) {
|
|
885
885
|
var i = e.p;
|
|
886
886
|
e.i === -1 ? (e.S.U(e), i !== void 0 && (i.n = e.n), e.n !== void 0 && (e.n.p = i)) : n = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = i;
|
|
887
887
|
}
|
|
888
888
|
t.s = n;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
k.call(this, void 0), this.x = t, this.s = void 0, this.g =
|
|
890
|
+
function D(t) {
|
|
891
|
+
k.call(this, void 0), this.x = t, this.s = void 0, this.g = he - 1, this.f = 4;
|
|
892
892
|
}
|
|
893
|
-
(
|
|
893
|
+
(D.prototype = new k()).h = function() {
|
|
894
894
|
if (this.f &= -3, 1 & this.f)
|
|
895
895
|
return !1;
|
|
896
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
896
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === he))
|
|
897
897
|
return !0;
|
|
898
|
-
if (this.g =
|
|
898
|
+
if (this.g = he, this.f |= 1, this.i > 0 && !Et(this))
|
|
899
899
|
return this.f &= -2, !0;
|
|
900
900
|
var t = y;
|
|
901
901
|
try {
|
|
902
|
-
|
|
902
|
+
At(this), y = this;
|
|
903
903
|
var e = this.x();
|
|
904
904
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
905
905
|
} catch (n) {
|
|
906
906
|
this.v = n, this.f |= 16, this.i++;
|
|
907
907
|
}
|
|
908
|
-
return y = t,
|
|
908
|
+
return y = t, Mt(this), this.f &= -2, !0;
|
|
909
909
|
};
|
|
910
|
-
|
|
910
|
+
D.prototype.S = function(t) {
|
|
911
911
|
if (this.t === void 0) {
|
|
912
912
|
this.f |= 36;
|
|
913
913
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
@@ -915,64 +915,64 @@ U.prototype.S = function(t) {
|
|
|
915
915
|
}
|
|
916
916
|
k.prototype.S.call(this, t);
|
|
917
917
|
};
|
|
918
|
-
|
|
918
|
+
D.prototype.U = function(t) {
|
|
919
919
|
if (this.t !== void 0 && (k.prototype.U.call(this, t), this.t === void 0)) {
|
|
920
920
|
this.f &= -33;
|
|
921
921
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
922
922
|
e.S.U(e);
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
|
-
|
|
925
|
+
D.prototype.N = function() {
|
|
926
926
|
if (!(2 & this.f)) {
|
|
927
927
|
this.f |= 6;
|
|
928
928
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
929
929
|
t.t.N();
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
|
|
933
|
-
if (this.h() ||
|
|
932
|
+
D.prototype.peek = function() {
|
|
933
|
+
if (this.h() || be(), 16 & this.f)
|
|
934
934
|
throw this.v;
|
|
935
935
|
return this.v;
|
|
936
936
|
};
|
|
937
|
-
Object.defineProperty(
|
|
938
|
-
1 & this.f &&
|
|
937
|
+
Object.defineProperty(D.prototype, "value", { get: function() {
|
|
938
|
+
1 & this.f && be();
|
|
939
939
|
var t = xt(this);
|
|
940
940
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
941
941
|
throw this.v;
|
|
942
942
|
return this.v;
|
|
943
943
|
} });
|
|
944
944
|
function Ht(t) {
|
|
945
|
-
return new
|
|
945
|
+
return new D(t);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function zt(t) {
|
|
948
948
|
var e = t.u;
|
|
949
949
|
if (t.u = void 0, typeof e == "function") {
|
|
950
|
-
|
|
950
|
+
q++;
|
|
951
951
|
var n = y;
|
|
952
952
|
y = void 0;
|
|
953
953
|
try {
|
|
954
954
|
e();
|
|
955
955
|
} catch (i) {
|
|
956
|
-
throw t.f &= -2, t.f |= 8,
|
|
956
|
+
throw t.f &= -2, t.f |= 8, Le(t), i;
|
|
957
957
|
} finally {
|
|
958
|
-
y = n,
|
|
958
|
+
y = n, Te();
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Le(t) {
|
|
963
963
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
964
964
|
e.S.U(e);
|
|
965
|
-
t.x = void 0, t.s = void 0,
|
|
965
|
+
t.x = void 0, t.s = void 0, zt(t);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function en(t) {
|
|
968
968
|
if (y !== this)
|
|
969
969
|
throw new Error("Out-of-order effect");
|
|
970
|
-
|
|
970
|
+
Mt(this), y = t, this.f &= -2, 8 & this.f && Le(this), Te();
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function te(t) {
|
|
973
973
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
974
974
|
}
|
|
975
|
-
|
|
975
|
+
te.prototype.c = function() {
|
|
976
976
|
var t = this.S();
|
|
977
977
|
try {
|
|
978
978
|
if (8 & this.f || this.x === void 0)
|
|
@@ -983,19 +983,19 @@ ee.prototype.c = function() {
|
|
|
983
983
|
t();
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
|
-
|
|
987
|
-
1 & this.f &&
|
|
986
|
+
te.prototype.S = function() {
|
|
987
|
+
1 & this.f && be(), this.f |= 1, this.f &= -9, zt(this), At(this), q++;
|
|
988
988
|
var t = y;
|
|
989
|
-
return y = this,
|
|
989
|
+
return y = this, en.bind(this, t);
|
|
990
990
|
};
|
|
991
|
-
|
|
992
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
991
|
+
te.prototype.N = function() {
|
|
992
|
+
2 & this.f || (this.f |= 2, this.o = Z, Z = this);
|
|
993
993
|
};
|
|
994
|
-
|
|
995
|
-
this.f |= 8, 1 & this.f ||
|
|
994
|
+
te.prototype.d = function() {
|
|
995
|
+
this.f |= 8, 1 & this.f || Le(this);
|
|
996
996
|
};
|
|
997
|
-
function
|
|
998
|
-
var e = new
|
|
997
|
+
function we(t) {
|
|
998
|
+
var e = new te(t);
|
|
999
999
|
try {
|
|
1000
1000
|
e.c();
|
|
1001
1001
|
} catch (n) {
|
|
@@ -1003,18 +1003,18 @@ function be(t) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
return e.d.bind(e);
|
|
1005
1005
|
}
|
|
1006
|
-
var
|
|
1007
|
-
function
|
|
1006
|
+
var $e, Ce;
|
|
1007
|
+
function j(t, e) {
|
|
1008
1008
|
f[t] = e.bind(null, f[t] || function() {
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
|
|
1011
|
+
function ve(t) {
|
|
1012
|
+
Ce && Ce(), Ce = t && t.S();
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
var e = this, n = t.data, i =
|
|
1014
|
+
function Pt(t) {
|
|
1015
|
+
var e = this, n = t.data, i = pe(n);
|
|
1016
1016
|
i.value = n;
|
|
1017
|
-
var s =
|
|
1017
|
+
var s = ee(function() {
|
|
1018
1018
|
for (var r = e.__v; r = r.__; )
|
|
1019
1019
|
if (r.__c) {
|
|
1020
1020
|
r.__c.__$f |= 4;
|
|
@@ -1022,7 +1022,7 @@ function zt(t) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
return e.__$u.c = function() {
|
|
1024
1024
|
var o;
|
|
1025
|
-
!
|
|
1025
|
+
!ht(s.peek()) && ((o = e.base) == null ? void 0 : o.nodeType) === 3 ? e.base.data = s.peek() : (e.__$f |= 1, e.setState({}));
|
|
1026
1026
|
}, Ht(function() {
|
|
1027
1027
|
var o = i.value.value;
|
|
1028
1028
|
return o === 0 ? 0 : o === !0 ? "" : o || "";
|
|
@@ -1030,11 +1030,11 @@ function zt(t) {
|
|
|
1030
1030
|
}, []);
|
|
1031
1031
|
return s.value;
|
|
1032
1032
|
}
|
|
1033
|
-
|
|
1034
|
-
Object.defineProperties(k.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value:
|
|
1033
|
+
Pt.displayName = "_st";
|
|
1034
|
+
Object.defineProperties(k.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Pt }, props: { configurable: !0, get: function() {
|
|
1035
1035
|
return { data: this };
|
|
1036
1036
|
} }, __b: { configurable: !0, value: 1 } });
|
|
1037
|
-
|
|
1037
|
+
j("__b", function(t, e) {
|
|
1038
1038
|
if (typeof e.type == "string") {
|
|
1039
1039
|
var n, i = e.props;
|
|
1040
1040
|
for (var s in i)
|
|
@@ -1045,23 +1045,23 @@ Y("__b", function(t, e) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
t(e);
|
|
1047
1047
|
});
|
|
1048
|
-
|
|
1049
|
-
|
|
1048
|
+
j("__r", function(t, e) {
|
|
1049
|
+
ve();
|
|
1050
1050
|
var n, i = e.__c;
|
|
1051
1051
|
i && (i.__$f &= -2, (n = i.__$u) === void 0 && (i.__$u = n = function(s) {
|
|
1052
1052
|
var r;
|
|
1053
|
-
return
|
|
1053
|
+
return we(function() {
|
|
1054
1054
|
r = this;
|
|
1055
1055
|
}), r.c = function() {
|
|
1056
1056
|
i.__$f |= 1, i.setState({});
|
|
1057
1057
|
}, r;
|
|
1058
|
-
}())),
|
|
1058
|
+
}())), $e = i, ve(n), t(e);
|
|
1059
1059
|
});
|
|
1060
|
-
|
|
1061
|
-
|
|
1060
|
+
j("__e", function(t, e, n, i) {
|
|
1061
|
+
ve(), $e = void 0, t(e, n, i);
|
|
1062
1062
|
});
|
|
1063
|
-
|
|
1064
|
-
|
|
1063
|
+
j("diffed", function(t, e) {
|
|
1064
|
+
ve(), $e = void 0;
|
|
1065
1065
|
var n;
|
|
1066
1066
|
if (typeof e.type == "string" && (n = e.__e)) {
|
|
1067
1067
|
var i = e.__np, s = e.props;
|
|
@@ -1076,22 +1076,22 @@ Y("diffed", function(t, e) {
|
|
|
1076
1076
|
n.U = r = {};
|
|
1077
1077
|
for (var c in i) {
|
|
1078
1078
|
var p = r[c], h = i[c];
|
|
1079
|
-
p === void 0 ? (p =
|
|
1079
|
+
p === void 0 ? (p = tn(n, c, h, s), r[c] = p) : p.o(h, s);
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
t(e);
|
|
1084
1084
|
});
|
|
1085
|
-
function
|
|
1086
|
-
var s = e in t && t.ownerSVGElement === void 0, r =
|
|
1085
|
+
function tn(t, e, n, i) {
|
|
1086
|
+
var s = e in t && t.ownerSVGElement === void 0, r = de(n);
|
|
1087
1087
|
return { o: function(o, l) {
|
|
1088
1088
|
r.value = o, i = l;
|
|
1089
|
-
}, d:
|
|
1089
|
+
}, d: we(function() {
|
|
1090
1090
|
var o = r.value.value;
|
|
1091
1091
|
i[e] !== o && (i[e] = o, s ? t[e] = o : o ? t.setAttribute(e, o) : t.removeAttribute(e));
|
|
1092
1092
|
}) };
|
|
1093
1093
|
}
|
|
1094
|
-
|
|
1094
|
+
j("unmount", function(t, e) {
|
|
1095
1095
|
if (typeof e.type == "string") {
|
|
1096
1096
|
var n = e.__e;
|
|
1097
1097
|
if (n) {
|
|
@@ -1113,10 +1113,10 @@ Y("unmount", function(t, e) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
t(e);
|
|
1115
1115
|
});
|
|
1116
|
-
|
|
1116
|
+
j("__h", function(t, e, n, i) {
|
|
1117
1117
|
(i < 3 || i === 9) && (e.__$f |= 2), t(e, n, i);
|
|
1118
1118
|
});
|
|
1119
|
-
|
|
1119
|
+
M.prototype.shouldComponentUpdate = function(t, e) {
|
|
1120
1120
|
var n = this.__$u;
|
|
1121
1121
|
if (!(n && n.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
|
|
1122
1122
|
return !0;
|
|
@@ -1130,46 +1130,46 @@ A.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
1130
1130
|
return !0;
|
|
1131
1131
|
return !1;
|
|
1132
1132
|
};
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1135
|
-
return
|
|
1133
|
+
function pe(t) {
|
|
1134
|
+
return ee(function() {
|
|
1135
|
+
return de(t);
|
|
1136
1136
|
}, []);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
var e =
|
|
1140
|
-
return e.current = t,
|
|
1138
|
+
function Fe(t) {
|
|
1139
|
+
var e = ye(t);
|
|
1140
|
+
return e.current = t, $e.__$f |= 4, ee(function() {
|
|
1141
1141
|
return Ht(function() {
|
|
1142
1142
|
return e.current();
|
|
1143
1143
|
});
|
|
1144
1144
|
}, []);
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var e =
|
|
1148
|
-
e.current = t,
|
|
1149
|
-
return
|
|
1146
|
+
function nn(t) {
|
|
1147
|
+
var e = ye(t);
|
|
1148
|
+
e.current = t, fe(function() {
|
|
1149
|
+
return we(function() {
|
|
1150
1150
|
return e.current();
|
|
1151
1151
|
});
|
|
1152
1152
|
}, []);
|
|
1153
1153
|
}
|
|
1154
|
-
var
|
|
1154
|
+
var rn = 0;
|
|
1155
1155
|
function u(t, e, n, i, s, r) {
|
|
1156
1156
|
var o, l, c = {};
|
|
1157
1157
|
for (l in e)
|
|
1158
1158
|
l == "ref" ? o = e[l] : c[l] = e[l];
|
|
1159
|
-
var p = { type: t, props: c, key: n, ref: o, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --
|
|
1159
|
+
var p = { type: t, props: c, key: n, ref: o, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --rn, __source: s, __self: r };
|
|
1160
1160
|
if (typeof t == "function" && (o = t.defaultProps))
|
|
1161
1161
|
for (l in o)
|
|
1162
1162
|
c[l] === void 0 && (c[l] = o[l]);
|
|
1163
1163
|
return f.vnode && f.vnode(p), p;
|
|
1164
1164
|
}
|
|
1165
|
-
const
|
|
1165
|
+
const sn = () => u("svg", {
|
|
1166
1166
|
viewBox: "0 0 1024 1024",
|
|
1167
1167
|
version: "1.1",
|
|
1168
1168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1169
1169
|
children: u("path", {
|
|
1170
1170
|
d: "M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"
|
|
1171
1171
|
})
|
|
1172
|
-
}),
|
|
1172
|
+
}), Rt = () => u("svg", {
|
|
1173
1173
|
className: "icon",
|
|
1174
1174
|
viewBox: "0 0 1024 1024",
|
|
1175
1175
|
version: "1.1",
|
|
@@ -1177,28 +1177,28 @@ const tn = () => u("svg", {
|
|
|
1177
1177
|
children: u("path", {
|
|
1178
1178
|
d: "M900.64 379.808l-263.072-256.032c-36.448-35.328-105.76-35.392-142.304 0.096l-327.04 319.904c-56.416 54.72-70.72 76.704-70.72 150.976l0 143.936c0 132.768 26.976 192 186.912 192l131.872 0c81.12 0 128.448-46.656 193.952-111.264l290.016-297.696c18.592-17.984 29.248-43.968 29.248-71.264C929.504 423.36 918.976 397.6 900.64 379.808zM323.008 786.752c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96S375.936 786.752 323.008 786.752z"
|
|
1179
1179
|
})
|
|
1180
|
-
}),
|
|
1180
|
+
}), on = () => u("svg", {
|
|
1181
1181
|
viewBox: "0 0 1024 1024",
|
|
1182
1182
|
version: "1.1",
|
|
1183
1183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1184
1184
|
children: u("path", {
|
|
1185
1185
|
d: "M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"
|
|
1186
1186
|
})
|
|
1187
|
-
}),
|
|
1187
|
+
}), Tt = () => u("svg", {
|
|
1188
1188
|
viewBox: "0 0 1024 1024",
|
|
1189
1189
|
version: "1.1",
|
|
1190
1190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1191
1191
|
children: u("path", {
|
|
1192
1192
|
d: "M962 197.61H747v-60c0-55.14-44.86-100-100-100H377c-55.14 0-100 44.86-100 100v60H62c-11.05 0-20 8.95-20 20s8.95 20 20 20h60v630.57c0 66.17 53.83 120 120 120h540c66.17 0 120-53.83 120-120V237.61h60c11.05 0 20-8.95 20-20s-8.95-20-20-20zM637.34 457.66v260c0 12.01-10.72 21.63-23.06 19.77-9.84-1.48-16.94-10.25-16.94-20.2V458.09c0-9.95 7.1-18.72 16.94-20.2 12.34-1.86 23.06 7.76 23.06 19.77z m-210.68 0v260c0 11-9 20-20 20s-20-9-20-20v-260c0-11 9-20 20-20s20 9 20 20zM317 137.61c0-33.08 26.92-60 60-60h270c33.08 0 60 26.92 60 60v60H317v-60z"
|
|
1193
1193
|
})
|
|
1194
|
-
}),
|
|
1194
|
+
}), Ue = () => u("svg", {
|
|
1195
1195
|
viewBox: "0 0 1024 1024",
|
|
1196
1196
|
version: "1.1",
|
|
1197
1197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1198
1198
|
children: u("path", {
|
|
1199
1199
|
d: "M511.582491 63.413262C265.134543 63.413262 64.62588 263.921925 64.62588 510.369873s200.508663 446.957635 446.957635 446.957635 446.957635-200.508663 446.957635-446.957635S758.031463 63.413262 511.582491 63.413262zM509.001713 751.859903c-98.517781 0-182.467775-62.623269-214.771505-150.056598l0.327458-0.134053c-2.007727-4.036943-3.38305-8.422833-3.38305-13.237489 0-16.647145 13.494339-30.142507 30.142507-30.142507 13.389962 0 24.358781 8.877181 28.2893 20.955264l0.422625-0.172939c23.269983 65.442478 85.645612 112.503307 158.972665 112.503307 93.106538 0 168.845523-75.738985 168.845523-168.845523s-75.738985-168.845523-168.845523-168.845523c-20.432355 0-39.874149 3.980661-58.013275 10.66899l21.248953 40.742936c2.486634 2.677992 4.0175 6.2831 4.0175 10.243295 0 8.417717-8.404414 14.921851-15.365966 15.07023-0.102331 0-0.206708 0-0.309038 0-0.220011 0-0.427742 0-0.647753-0.013303l-150.579507-6.463202c-5.372358-0.234337-10.229992-3.310396-12.716626-8.093329-2.486634-4.76963-2.236947-10.509355 0.647753-15.055904l80.890308-127.179564c2.8847-4.533246 8.006348-7.151887 13.365402-6.960529 5.372358 0.234337 10.227945 3.312442 12.71458 8.095375l18.580171 35.625382c26.629497-10.855232 55.683207-16.963347 86.168522-16.963347 126.338407 0 229.130537 102.791108 229.130537 229.130537S635.340119 751.859903 509.001713 751.859903z"
|
|
1200
1200
|
})
|
|
1201
|
-
}),
|
|
1201
|
+
}), Lt = () => u("svg", {
|
|
1202
1202
|
viewBox: "0 0 1024 1024",
|
|
1203
1203
|
version: "1.1",
|
|
1204
1204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1220,15 +1220,15 @@ const tn = () => u("svg", {
|
|
|
1220
1220
|
d: "M544 480V282.944h52.224l0.064 107.968L763.072 224l36.928 36.928-166.976 166.976 108.032-0.128V480H544zM260.928 800l-36.928-36.928 166.912-166.784-107.968-0.064V544H480v197.056h-52.224l0.064-107.968L260.928 800z"
|
|
1221
1221
|
})
|
|
1222
1222
|
});
|
|
1223
|
-
const S = new
|
|
1223
|
+
const S = new U("markdown-message"), cn = (t) => {
|
|
1224
1224
|
const {
|
|
1225
1225
|
message: e,
|
|
1226
1226
|
size: n
|
|
1227
|
-
} = t, i =
|
|
1228
|
-
|
|
1227
|
+
} = t, i = pe($t()), s = pe(null);
|
|
1228
|
+
fe(() => {
|
|
1229
1229
|
n >= 0 && s.value && s.value.setMarkdown(e.content);
|
|
1230
|
-
}, [e, n]),
|
|
1231
|
-
s.value = new
|
|
1230
|
+
}, [e, n]), fe(() => {
|
|
1231
|
+
s.value = new Bt({
|
|
1232
1232
|
id: i,
|
|
1233
1233
|
value: e.content,
|
|
1234
1234
|
editor: {
|
|
@@ -1257,35 +1257,35 @@ const S = new F("markdown-message"), cn = (t) => {
|
|
|
1257
1257
|
children: [u("div", {
|
|
1258
1258
|
className: S.be("header", "action-item"),
|
|
1259
1259
|
onClick: r,
|
|
1260
|
-
children: [u(
|
|
1260
|
+
children: [u(Rt, {}), u("span", {
|
|
1261
1261
|
className: S.bem("header", "action-item", "title"),
|
|
1262
1262
|
children: "回填"
|
|
1263
1263
|
})]
|
|
1264
1264
|
}), u("div", {
|
|
1265
1265
|
className: S.be("header", "action-item"),
|
|
1266
1266
|
onClick: l,
|
|
1267
|
-
children: [u(
|
|
1267
|
+
children: [u(Ue, {}), u("span", {
|
|
1268
1268
|
className: S.bem("header", "action-item", "title"),
|
|
1269
1269
|
children: "刷新"
|
|
1270
1270
|
})]
|
|
1271
1271
|
}), u("div", {
|
|
1272
1272
|
className: S.be("header", "action-item"),
|
|
1273
1273
|
onClick: o,
|
|
1274
|
-
children: [u(
|
|
1274
|
+
children: [u(Tt, {}), u("span", {
|
|
1275
1275
|
className: S.bem("header", "action-item", "title"),
|
|
1276
1276
|
children: "删除"
|
|
1277
1277
|
})]
|
|
1278
1278
|
}), u("div", {
|
|
1279
1279
|
className: S.be("header", "action-item"),
|
|
1280
1280
|
onClick: c,
|
|
1281
|
-
children: [u(
|
|
1281
|
+
children: [u(Lt, {}), u("span", {
|
|
1282
1282
|
className: S.bem("header", "action-item", "title"),
|
|
1283
1283
|
children: "复制"
|
|
1284
1284
|
})]
|
|
1285
1285
|
})]
|
|
1286
1286
|
})]
|
|
1287
1287
|
}), u("div", {
|
|
1288
|
-
className: S.b("content"),
|
|
1288
|
+
className: "".concat(S.b("content"), " pre-wrap-container"),
|
|
1289
1289
|
children: u("div", {
|
|
1290
1290
|
id: i
|
|
1291
1291
|
})
|
|
@@ -1294,55 +1294,103 @@ const S = new F("markdown-message"), cn = (t) => {
|
|
|
1294
1294
|
})]
|
|
1295
1295
|
});
|
|
1296
1296
|
};
|
|
1297
|
-
const
|
|
1298
|
-
const e =
|
|
1297
|
+
const O = new U("user-message-question"), un = (t) => {
|
|
1298
|
+
const e = Fe(() => t.message.content), n = () => {
|
|
1299
1299
|
t.controller.refreshMessage(t.message, !0);
|
|
1300
1300
|
};
|
|
1301
1301
|
return u("div", {
|
|
1302
|
-
className:
|
|
1302
|
+
className: O.b(),
|
|
1303
1303
|
children: [u("div", {
|
|
1304
|
-
className:
|
|
1304
|
+
className: O.e("user-header"),
|
|
1305
1305
|
children: [u("div", {
|
|
1306
|
-
className:
|
|
1306
|
+
className: O.e("user-action"),
|
|
1307
1307
|
onClick: n,
|
|
1308
|
-
children: [u(
|
|
1309
|
-
className:
|
|
1308
|
+
children: [u(Ue, {}), u("span", {
|
|
1309
|
+
className: O.em("user-action", "title"),
|
|
1310
1310
|
children: "刷新"
|
|
1311
1311
|
})]
|
|
1312
1312
|
}), u("div", {
|
|
1313
|
-
className:
|
|
1313
|
+
className: O.e("user"),
|
|
1314
1314
|
children: "我"
|
|
1315
1315
|
})]
|
|
1316
1316
|
}), u("div", {
|
|
1317
|
-
className:
|
|
1317
|
+
className: O.e("content"),
|
|
1318
1318
|
children: u("div", {
|
|
1319
1319
|
dir: "auto",
|
|
1320
|
-
className:
|
|
1320
|
+
className: O.em("content", "body"),
|
|
1321
1321
|
children: u("p", {
|
|
1322
1322
|
dir: "auto",
|
|
1323
|
+
className: "pre-wrap-container",
|
|
1323
1324
|
children: e
|
|
1324
1325
|
})
|
|
1325
1326
|
})
|
|
1326
1327
|
})]
|
|
1327
1328
|
});
|
|
1328
1329
|
};
|
|
1329
|
-
const
|
|
1330
|
-
const e =
|
|
1330
|
+
const x = new U("error-message"), _n = (t) => {
|
|
1331
|
+
const e = Fe(() => t.message.content), n = () => {
|
|
1332
|
+
t.controller.backfill(t.message);
|
|
1333
|
+
}, i = () => {
|
|
1334
|
+
t.controller.deleteMessage(t.message);
|
|
1335
|
+
}, s = () => {
|
|
1336
|
+
t.controller.refreshMessage(t.message);
|
|
1337
|
+
}, r = () => {
|
|
1338
|
+
t.controller.copyMessage(t.message);
|
|
1339
|
+
};
|
|
1331
1340
|
return u("div", {
|
|
1332
|
-
className:
|
|
1333
|
-
children: u("
|
|
1334
|
-
className:
|
|
1335
|
-
children:
|
|
1336
|
-
|
|
1341
|
+
className: x.b(),
|
|
1342
|
+
children: [u("div", {
|
|
1343
|
+
className: x.b("header"),
|
|
1344
|
+
children: [u("div", {
|
|
1345
|
+
className: x.be("header", "caption"),
|
|
1346
|
+
children: "AI "
|
|
1347
|
+
}), u("div", {
|
|
1348
|
+
className: x.b("header-action-wrapper"),
|
|
1349
|
+
children: [u("div", {
|
|
1350
|
+
className: x.be("header", "action-item"),
|
|
1351
|
+
onClick: n,
|
|
1352
|
+
children: [u(Rt, {}), u("span", {
|
|
1353
|
+
className: x.bem("header", "action-item", "title"),
|
|
1354
|
+
children: "回填"
|
|
1355
|
+
})]
|
|
1356
|
+
}), u("div", {
|
|
1357
|
+
className: x.be("header", "action-item"),
|
|
1358
|
+
onClick: s,
|
|
1359
|
+
children: [u(Ue, {}), u("span", {
|
|
1360
|
+
className: x.bem("header", "action-item", "title"),
|
|
1361
|
+
children: "刷新"
|
|
1362
|
+
})]
|
|
1363
|
+
}), u("div", {
|
|
1364
|
+
className: x.be("header", "action-item"),
|
|
1365
|
+
onClick: i,
|
|
1366
|
+
children: [u(Tt, {}), u("span", {
|
|
1367
|
+
className: x.bem("header", "action-item", "title"),
|
|
1368
|
+
children: "删除"
|
|
1369
|
+
})]
|
|
1370
|
+
}), u("div", {
|
|
1371
|
+
className: x.be("header", "action-item"),
|
|
1372
|
+
onClick: r,
|
|
1373
|
+
children: [u(Lt, {}), u("span", {
|
|
1374
|
+
className: x.bem("header", "action-item", "title"),
|
|
1375
|
+
children: "复制"
|
|
1376
|
+
})]
|
|
1377
|
+
})]
|
|
1378
|
+
})]
|
|
1379
|
+
}), u("div", {
|
|
1380
|
+
className: "".concat(x.e("content"), " pre-wrap-container"),
|
|
1381
|
+
children: u("span", {
|
|
1382
|
+
children: e
|
|
1383
|
+
})
|
|
1384
|
+
})]
|
|
1337
1385
|
});
|
|
1338
1386
|
};
|
|
1339
|
-
const
|
|
1340
|
-
className:
|
|
1387
|
+
const tt = new U("unknown-message"), fn = (t) => u("div", {
|
|
1388
|
+
className: tt.b(),
|
|
1341
1389
|
children: u("span", {
|
|
1342
|
-
className:
|
|
1390
|
+
className: "".concat(tt.e("content"), " pre-wrap-container"),
|
|
1343
1391
|
children: ["暂未支持的消息类型: ", t.message.type]
|
|
1344
1392
|
})
|
|
1345
|
-
}), hn = new
|
|
1393
|
+
}), hn = new U("chat-message-item"), dn = (t) => {
|
|
1346
1394
|
const {
|
|
1347
1395
|
message: e,
|
|
1348
1396
|
size: n
|
|
@@ -1360,16 +1408,16 @@ const et = new F("unknown-message"), fn = (t) => u("div", {
|
|
|
1360
1408
|
}
|
|
1361
1409
|
return u("div", {
|
|
1362
1410
|
className: hn.b(),
|
|
1363
|
-
children:
|
|
1411
|
+
children: K(i, {
|
|
1364
1412
|
size: n,
|
|
1365
1413
|
message: e,
|
|
1366
1414
|
controller: t.controller
|
|
1367
1415
|
})
|
|
1368
1416
|
});
|
|
1369
1417
|
};
|
|
1370
|
-
const vn = new
|
|
1371
|
-
const e =
|
|
1372
|
-
return
|
|
1418
|
+
const vn = new U("chat-messages"), pn = (t) => {
|
|
1419
|
+
const e = ye(null), n = t.controller.messages;
|
|
1420
|
+
return nn(() => {
|
|
1373
1421
|
e.current && n.value.length > 0 && (e.current.scrollTop = e.current.scrollHeight);
|
|
1374
1422
|
}), u("div", {
|
|
1375
1423
|
ref: e,
|
|
@@ -1390,7 +1438,7 @@ function mn(t, e) {
|
|
|
1390
1438
|
t[n] = e[n];
|
|
1391
1439
|
return t;
|
|
1392
1440
|
}
|
|
1393
|
-
function
|
|
1441
|
+
function nt(t, e) {
|
|
1394
1442
|
for (var n in t)
|
|
1395
1443
|
if (n !== "__source" && !(n in e))
|
|
1396
1444
|
return !0;
|
|
@@ -1399,15 +1447,15 @@ function tt(t, e) {
|
|
|
1399
1447
|
return !0;
|
|
1400
1448
|
return !1;
|
|
1401
1449
|
}
|
|
1402
|
-
function
|
|
1450
|
+
function it(t) {
|
|
1403
1451
|
this.props = t;
|
|
1404
1452
|
}
|
|
1405
|
-
(
|
|
1406
|
-
return
|
|
1453
|
+
(it.prototype = new M()).isPureReactComponent = !0, it.prototype.shouldComponentUpdate = function(t, e) {
|
|
1454
|
+
return nt(this.props, t) || nt(this.state, e);
|
|
1407
1455
|
};
|
|
1408
|
-
var
|
|
1456
|
+
var rt = f.__b;
|
|
1409
1457
|
f.__b = function(t) {
|
|
1410
|
-
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null),
|
|
1458
|
+
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), rt && rt(t);
|
|
1411
1459
|
};
|
|
1412
1460
|
var gn = f.__e;
|
|
1413
1461
|
f.__e = function(t, e, n, i) {
|
|
@@ -1418,36 +1466,36 @@ f.__e = function(t, e, n, i) {
|
|
|
1418
1466
|
}
|
|
1419
1467
|
gn(t, e, n, i);
|
|
1420
1468
|
};
|
|
1421
|
-
var
|
|
1422
|
-
function
|
|
1469
|
+
var st = f.unmount;
|
|
1470
|
+
function Ft(t, e, n) {
|
|
1423
1471
|
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(i) {
|
|
1424
1472
|
typeof i.__c == "function" && i.__c();
|
|
1425
1473
|
}), t.__c.__H = null), (t = mn({}, t)).__c != null && (t.__c.__P === n && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(i) {
|
|
1426
|
-
return
|
|
1474
|
+
return Ft(i, e, n);
|
|
1427
1475
|
})), t;
|
|
1428
1476
|
}
|
|
1429
|
-
function
|
|
1477
|
+
function Ut(t, e, n) {
|
|
1430
1478
|
return t && n && (t.__v = null, t.__k = t.__k && t.__k.map(function(i) {
|
|
1431
|
-
return
|
|
1479
|
+
return Ut(i, e, n);
|
|
1432
1480
|
}), t.__c && t.__c.__P === e && (t.__e && n.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = n)), t;
|
|
1433
1481
|
}
|
|
1434
|
-
function
|
|
1482
|
+
function Ne() {
|
|
1435
1483
|
this.__u = 0, this.t = null, this.__b = null;
|
|
1436
1484
|
}
|
|
1437
|
-
function
|
|
1485
|
+
function Dt(t) {
|
|
1438
1486
|
var e = t.__.__c;
|
|
1439
1487
|
return e && e.__a && e.__a(t);
|
|
1440
1488
|
}
|
|
1441
|
-
function
|
|
1489
|
+
function ie() {
|
|
1442
1490
|
this.u = null, this.o = null;
|
|
1443
1491
|
}
|
|
1444
1492
|
f.unmount = function(t) {
|
|
1445
1493
|
var e = t.__c;
|
|
1446
|
-
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null),
|
|
1447
|
-
}, (
|
|
1494
|
+
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), st && st(t);
|
|
1495
|
+
}, (Ne.prototype = new M()).__c = function(t, e) {
|
|
1448
1496
|
var n = e.__c, i = this;
|
|
1449
1497
|
i.t == null && (i.t = []), i.t.push(n);
|
|
1450
|
-
var s =
|
|
1498
|
+
var s = Dt(i.__v), r = !1, o = function() {
|
|
1451
1499
|
r || (r = !0, n.__R = null, s ? s(l) : l());
|
|
1452
1500
|
};
|
|
1453
1501
|
n.__R = o;
|
|
@@ -1455,7 +1503,7 @@ f.unmount = function(t) {
|
|
|
1455
1503
|
if (!--i.__u) {
|
|
1456
1504
|
if (i.state.__a) {
|
|
1457
1505
|
var p = i.state.__a;
|
|
1458
|
-
i.__v.__k[0] =
|
|
1506
|
+
i.__v.__k[0] = Ut(p, p.__c.__P, p.__c.__O);
|
|
1459
1507
|
}
|
|
1460
1508
|
var h;
|
|
1461
1509
|
for (i.setState({ __a: i.__b = null }); h = i.t.pop(); )
|
|
@@ -1463,20 +1511,20 @@ f.unmount = function(t) {
|
|
|
1463
1511
|
}
|
|
1464
1512
|
}, c = e.__h === !0;
|
|
1465
1513
|
i.__u++ || c || i.setState({ __a: i.__b = i.__v.__k[0] }), t.then(o, o);
|
|
1466
|
-
},
|
|
1514
|
+
}, Ne.prototype.componentWillUnmount = function() {
|
|
1467
1515
|
this.t = [];
|
|
1468
|
-
},
|
|
1516
|
+
}, Ne.prototype.render = function(t, e) {
|
|
1469
1517
|
if (this.__b) {
|
|
1470
1518
|
if (this.__v.__k) {
|
|
1471
1519
|
var n = document.createElement("div"), i = this.__v.__k[0].__c;
|
|
1472
|
-
this.__v.__k[0] =
|
|
1520
|
+
this.__v.__k[0] = Ft(this.__b, n, i.__O = i.__P);
|
|
1473
1521
|
}
|
|
1474
1522
|
this.__b = null;
|
|
1475
1523
|
}
|
|
1476
|
-
var s = e.__a &&
|
|
1477
|
-
return s && (s.__h = null), [
|
|
1524
|
+
var s = e.__a && K(Y, null, t.fallback);
|
|
1525
|
+
return s && (s.__h = null), [K(Y, null, e.__a ? null : t.children), s];
|
|
1478
1526
|
};
|
|
1479
|
-
var
|
|
1527
|
+
var ot = function(t, e, n) {
|
|
1480
1528
|
if (++n[1] === n[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size))
|
|
1481
1529
|
for (n = t.u; n; ) {
|
|
1482
1530
|
for (; n.length > 3; )
|
|
@@ -1486,52 +1534,52 @@ var st = function(t, e, n) {
|
|
|
1486
1534
|
t.u = n = n[2];
|
|
1487
1535
|
}
|
|
1488
1536
|
};
|
|
1489
|
-
(
|
|
1490
|
-
var e = this, n =
|
|
1537
|
+
(ie.prototype = new M()).__a = function(t) {
|
|
1538
|
+
var e = this, n = Dt(e.__v), i = e.o.get(t);
|
|
1491
1539
|
return i[0]++, function(s) {
|
|
1492
1540
|
var r = function() {
|
|
1493
|
-
e.props.revealOrder ? (i.push(s),
|
|
1541
|
+
e.props.revealOrder ? (i.push(s), ot(e, t, i)) : s();
|
|
1494
1542
|
};
|
|
1495
1543
|
n ? n(r) : r();
|
|
1496
1544
|
};
|
|
1497
|
-
},
|
|
1545
|
+
}, ie.prototype.render = function(t) {
|
|
1498
1546
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
1499
|
-
var e =
|
|
1547
|
+
var e = le(t.children);
|
|
1500
1548
|
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
|
|
1501
1549
|
for (var n = e.length; n--; )
|
|
1502
1550
|
this.o.set(e[n], this.u = [1, 0, this.u]);
|
|
1503
1551
|
return t.children;
|
|
1504
|
-
},
|
|
1552
|
+
}, ie.prototype.componentDidUpdate = ie.prototype.componentDidMount = function() {
|
|
1505
1553
|
var t = this;
|
|
1506
1554
|
this.o.forEach(function(e, n) {
|
|
1507
|
-
|
|
1555
|
+
ot(t, n, e);
|
|
1508
1556
|
});
|
|
1509
1557
|
};
|
|
1510
1558
|
var yn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, bn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, wn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, $n = /[A-Z0-9]/g, kn = typeof document < "u", Sn = function(t) {
|
|
1511
1559
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
1512
1560
|
};
|
|
1513
|
-
|
|
1514
|
-
Object.defineProperty(
|
|
1561
|
+
M.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
1562
|
+
Object.defineProperty(M.prototype, t, { configurable: !0, get: function() {
|
|
1515
1563
|
return this["UNSAFE_" + t];
|
|
1516
1564
|
}, set: function(e) {
|
|
1517
1565
|
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
1518
1566
|
} });
|
|
1519
1567
|
});
|
|
1520
|
-
var
|
|
1568
|
+
var at = f.event;
|
|
1521
1569
|
function Cn() {
|
|
1522
1570
|
}
|
|
1523
|
-
function
|
|
1571
|
+
function Nn() {
|
|
1524
1572
|
return this.cancelBubble;
|
|
1525
1573
|
}
|
|
1526
|
-
function
|
|
1574
|
+
function xn() {
|
|
1527
1575
|
return this.defaultPrevented;
|
|
1528
1576
|
}
|
|
1529
1577
|
f.event = function(t) {
|
|
1530
|
-
return
|
|
1578
|
+
return at && (t = at(t)), t.persist = Cn, t.isPropagationStopped = Nn, t.isDefaultPrevented = xn, t.nativeEvent = t;
|
|
1531
1579
|
};
|
|
1532
1580
|
var En = { enumerable: !1, configurable: !0, get: function() {
|
|
1533
1581
|
return this.class;
|
|
1534
|
-
} },
|
|
1582
|
+
} }, lt = f.vnode;
|
|
1535
1583
|
f.vnode = function(t) {
|
|
1536
1584
|
typeof t.type == "string" && function(e) {
|
|
1537
1585
|
var n = e.props, i = e.type, s = {};
|
|
@@ -1542,61 +1590,61 @@ f.vnode = function(t) {
|
|
|
1542
1590
|
r === "defaultValue" && "value" in n && n.value == null ? r = "value" : r === "download" && o === !0 ? o = "" : l === "ondoubleclick" ? r = "ondblclick" : l !== "onchange" || i !== "input" && i !== "textarea" || Sn(n.type) ? l === "onfocus" ? r = "onfocusin" : l === "onblur" ? r = "onfocusout" : wn.test(r) ? r = l : i.indexOf("-") === -1 && bn.test(r) ? r = r.replace($n, "-$&").toLowerCase() : o === null && (o = void 0) : l = r = "oninput", l === "oninput" && s[r = l] && (r = "oninputCapture"), s[r] = o;
|
|
1543
1591
|
}
|
|
1544
1592
|
}
|
|
1545
|
-
i == "select" && s.multiple && Array.isArray(s.value) && (s.value =
|
|
1593
|
+
i == "select" && s.multiple && Array.isArray(s.value) && (s.value = le(n.children).forEach(function(c) {
|
|
1546
1594
|
c.props.selected = s.value.indexOf(c.props.value) != -1;
|
|
1547
|
-
})), i == "select" && s.defaultValue != null && (s.value =
|
|
1595
|
+
})), i == "select" && s.defaultValue != null && (s.value = le(n.children).forEach(function(c) {
|
|
1548
1596
|
c.props.selected = s.multiple ? s.defaultValue.indexOf(c.props.value) != -1 : s.defaultValue == c.props.value;
|
|
1549
1597
|
})), n.class && !n.className ? (s.class = n.class, Object.defineProperty(s, "className", En)) : (n.className && !n.class || n.class && n.className) && (s.class = s.className = n.className), e.props = s;
|
|
1550
|
-
}(t), t.$$typeof = yn,
|
|
1598
|
+
}(t), t.$$typeof = yn, lt && lt(t);
|
|
1551
1599
|
};
|
|
1552
|
-
var
|
|
1600
|
+
var ct = f.__r;
|
|
1553
1601
|
f.__r = function(t) {
|
|
1554
|
-
|
|
1602
|
+
ct && ct(t), t.__c;
|
|
1555
1603
|
};
|
|
1556
|
-
var
|
|
1604
|
+
var ut = f.diffed;
|
|
1557
1605
|
f.diffed = function(t) {
|
|
1558
|
-
|
|
1606
|
+
ut && ut(t);
|
|
1559
1607
|
var e = t.props, n = t.__e;
|
|
1560
1608
|
n != null && t.type === "textarea" && "value" in e && e.value !== n.value && (n.value = e.value == null ? "" : e.value);
|
|
1561
1609
|
};
|
|
1562
|
-
var
|
|
1610
|
+
var G = /* @__PURE__ */ new Map();
|
|
1563
1611
|
function An(t) {
|
|
1564
|
-
var e =
|
|
1612
|
+
var e = G.get(t);
|
|
1565
1613
|
e && e.destroy();
|
|
1566
1614
|
}
|
|
1567
|
-
function
|
|
1568
|
-
var e =
|
|
1615
|
+
function Mn(t) {
|
|
1616
|
+
var e = G.get(t);
|
|
1569
1617
|
e && e.update();
|
|
1570
1618
|
}
|
|
1571
|
-
var
|
|
1572
|
-
typeof window > "u" ? ((
|
|
1619
|
+
var X = null;
|
|
1620
|
+
typeof window > "u" ? ((X = function(t) {
|
|
1573
1621
|
return t;
|
|
1574
1622
|
}).destroy = function(t) {
|
|
1575
1623
|
return t;
|
|
1576
|
-
},
|
|
1624
|
+
}, X.update = function(t) {
|
|
1577
1625
|
return t;
|
|
1578
|
-
}) : ((
|
|
1626
|
+
}) : ((X = function(t, e) {
|
|
1579
1627
|
return t && Array.prototype.forEach.call(t.length ? t : [t], function(n) {
|
|
1580
1628
|
return function(i) {
|
|
1581
|
-
if (i && i.nodeName && i.nodeName === "TEXTAREA" && !
|
|
1629
|
+
if (i && i.nodeName && i.nodeName === "TEXTAREA" && !G.has(i)) {
|
|
1582
1630
|
var s, r = null, o = window.getComputedStyle(i), l = (s = i.value, function() {
|
|
1583
1631
|
p({ testForHeightReduction: s === "" || !i.value.startsWith(s), restoreTextAlign: null }), s = i.value;
|
|
1584
1632
|
}), c = (function(a) {
|
|
1585
1633
|
i.removeEventListener("autosize:destroy", c), i.removeEventListener("autosize:update", h), i.removeEventListener("input", l), window.removeEventListener("resize", h), Object.keys(a).forEach(function(m) {
|
|
1586
1634
|
return i.style[m] = a[m];
|
|
1587
|
-
}),
|
|
1635
|
+
}), G.delete(i);
|
|
1588
1636
|
}).bind(i, { height: i.style.height, resize: i.style.resize, textAlign: i.style.textAlign, overflowY: i.style.overflowY, overflowX: i.style.overflowX, wordWrap: i.style.wordWrap });
|
|
1589
|
-
i.addEventListener("autosize:destroy", c), i.addEventListener("autosize:update", h), i.addEventListener("input", l), window.addEventListener("resize", h), i.style.overflowX = "hidden", i.style.wordWrap = "break-word",
|
|
1637
|
+
i.addEventListener("autosize:destroy", c), i.addEventListener("autosize:update", h), i.addEventListener("input", l), window.addEventListener("resize", h), i.style.overflowX = "hidden", i.style.wordWrap = "break-word", G.set(i, { destroy: c, update: h }), h();
|
|
1590
1638
|
}
|
|
1591
1639
|
function p(a) {
|
|
1592
|
-
var m, d, _ = a.restoreTextAlign, v = _ === void 0 ? null : _,
|
|
1640
|
+
var m, d, _ = a.restoreTextAlign, v = _ === void 0 ? null : _, P = a.testForHeightReduction, g = P === void 0 || P, b = o.overflowY;
|
|
1593
1641
|
if (i.scrollHeight !== 0 && (o.resize === "vertical" ? i.style.resize = "none" : o.resize === "both" && (i.style.resize = "horizontal"), g && (m = function(w) {
|
|
1594
1642
|
for (var $ = []; w && w.parentNode && w.parentNode instanceof Element; )
|
|
1595
1643
|
w.parentNode.scrollTop && $.push([w.parentNode, w.parentNode.scrollTop]), w = w.parentNode;
|
|
1596
1644
|
return function() {
|
|
1597
|
-
return $.forEach(function(
|
|
1598
|
-
var
|
|
1599
|
-
|
|
1645
|
+
return $.forEach(function(R) {
|
|
1646
|
+
var E = R[0], T = R[1];
|
|
1647
|
+
E.style.scrollBehavior = "auto", E.scrollTop = T, E.style.scrollBehavior = null;
|
|
1600
1648
|
});
|
|
1601
1649
|
};
|
|
1602
1650
|
}(i), i.style.height = ""), d = o.boxSizing === "content-box" ? i.scrollHeight - (parseFloat(o.paddingTop) + parseFloat(o.paddingBottom)) : i.scrollHeight + parseFloat(o.borderTopWidth) + parseFloat(o.borderBottomWidth), o.maxHeight !== "none" && d > parseFloat(o.maxHeight) ? (o.overflowY === "hidden" && (i.style.overflow = "scroll"), d = parseFloat(o.maxHeight)) : o.overflowY !== "hidden" && (i.style.overflow = "hidden"), i.style.height = d + "px", v && (i.style.textAlign = v), m && m(), r !== d && (i.dispatchEvent(new Event("autosize:resized", { bubbles: !0 })), r = d), b !== o.overflow && !v)) {
|
|
@@ -1611,18 +1659,18 @@ typeof window > "u" ? ((j = function(t) {
|
|
|
1611
1659
|
}), t;
|
|
1612
1660
|
}).destroy = function(t) {
|
|
1613
1661
|
return t && Array.prototype.forEach.call(t.length ? t : [t], An), t;
|
|
1614
|
-
},
|
|
1615
|
-
return t && Array.prototype.forEach.call(t.length ? t : [t],
|
|
1662
|
+
}, X.update = function(t) {
|
|
1663
|
+
return t && Array.prototype.forEach.call(t.length ? t : [t], Mn), t;
|
|
1616
1664
|
});
|
|
1617
|
-
var
|
|
1618
|
-
const W = new
|
|
1619
|
-
const e =
|
|
1665
|
+
var _t = X;
|
|
1666
|
+
const W = new U("chat-input"), Hn = (t) => {
|
|
1667
|
+
const e = ye(null), n = t.controller.input, i = pe(!1), s = Qe((c) => {
|
|
1620
1668
|
n.value = c.target.value;
|
|
1621
|
-
}, [n]), r =
|
|
1622
|
-
|
|
1623
|
-
e.current &&
|
|
1669
|
+
}, [n]), r = Fe(() => n.value.length <= 0 || i.value === !0);
|
|
1670
|
+
fe(() => (e.current && _t(e.current), () => {
|
|
1671
|
+
e.current && _t.destroy(e.current);
|
|
1624
1672
|
}), [e]);
|
|
1625
|
-
const o =
|
|
1673
|
+
const o = Qe(async () => {
|
|
1626
1674
|
i.value = !0;
|
|
1627
1675
|
try {
|
|
1628
1676
|
await t.controller.question(n.value), n.value = "";
|
|
@@ -1655,18 +1703,18 @@ const W = new F("chat-input"), Mn = (t) => {
|
|
|
1655
1703
|
className: "".concat(W.be("action-wrapper", "action-item"), " ").concat(W.is("disabled", r.value), " ").concat(W.is("loading", i.value)),
|
|
1656
1704
|
onClick: o,
|
|
1657
1705
|
disabled: r,
|
|
1658
|
-
children: u(
|
|
1706
|
+
children: u(on, {})
|
|
1659
1707
|
})
|
|
1660
1708
|
})]
|
|
1661
1709
|
});
|
|
1662
1710
|
};
|
|
1663
|
-
var
|
|
1664
|
-
class zn extends
|
|
1711
|
+
var ze = /* @__PURE__ */ ((t) => (t.STYLE_CACHE = "ai-chat-style-cache", t))(ze || {});
|
|
1712
|
+
class zn extends M {
|
|
1665
1713
|
constructor(n) {
|
|
1666
1714
|
super(n);
|
|
1667
|
-
H(this, "ns", new
|
|
1668
|
-
H(this, "containerRef",
|
|
1669
|
-
H(this, "dragHandle",
|
|
1715
|
+
H(this, "ns", new U("chat-container"));
|
|
1716
|
+
H(this, "containerRef", Ve());
|
|
1717
|
+
H(this, "dragHandle", Ve());
|
|
1670
1718
|
H(this, "data", {
|
|
1671
1719
|
x: window.innerWidth - 600 - 100,
|
|
1672
1720
|
y: 100,
|
|
@@ -1692,10 +1740,10 @@ class zn extends A {
|
|
|
1692
1740
|
Object.assign(this.containerRef.current.style, this.calcStyle());
|
|
1693
1741
|
}
|
|
1694
1742
|
componentDidMount() {
|
|
1695
|
-
const n = localStorage.getItem(
|
|
1743
|
+
const n = localStorage.getItem(ze.STYLE_CACHE);
|
|
1696
1744
|
n && (this.data = JSON.parse(n), this.data.x > window.innerWidth && (this.data.x = window.innerWidth - 100), this.data.y > window.innerHeight && (this.data.y = window.innerHeight - 100)), this.setStyle();
|
|
1697
1745
|
const i = this.data;
|
|
1698
|
-
|
|
1746
|
+
ke(this.containerRef.current).resizable({
|
|
1699
1747
|
// 可拖拽的边缘
|
|
1700
1748
|
edges: {
|
|
1701
1749
|
top: !1,
|
|
@@ -1706,11 +1754,11 @@ class zn extends A {
|
|
|
1706
1754
|
margin: 6,
|
|
1707
1755
|
modifiers: [
|
|
1708
1756
|
// 保持在父对象内部
|
|
1709
|
-
|
|
1757
|
+
ke.modifiers.restrictEdges({
|
|
1710
1758
|
outer: document.body
|
|
1711
1759
|
}),
|
|
1712
1760
|
// 缩放最小宽度
|
|
1713
|
-
|
|
1761
|
+
ke.modifiers.restrictSize({
|
|
1714
1762
|
min: {
|
|
1715
1763
|
width: i.minWidth,
|
|
1716
1764
|
height: i.minHeight
|
|
@@ -1726,7 +1774,7 @@ class zn extends A {
|
|
|
1726
1774
|
});
|
|
1727
1775
|
}
|
|
1728
1776
|
componentWillUnmount() {
|
|
1729
|
-
localStorage.setItem(
|
|
1777
|
+
localStorage.setItem(ze.STYLE_CACHE, JSON.stringify(this.data));
|
|
1730
1778
|
}
|
|
1731
1779
|
/**
|
|
1732
1780
|
* 关闭聊天窗口
|
|
@@ -1747,7 +1795,7 @@ class zn extends A {
|
|
|
1747
1795
|
const n = this.containerRef.current;
|
|
1748
1796
|
n && (n.requestFullscreen(), this.setState({
|
|
1749
1797
|
isFullScreen: !0
|
|
1750
|
-
}));
|
|
1798
|
+
}), this.props.fullscreen(!0));
|
|
1751
1799
|
}
|
|
1752
1800
|
/**
|
|
1753
1801
|
* 关闭全屏
|
|
@@ -1758,7 +1806,7 @@ class zn extends A {
|
|
|
1758
1806
|
closeFullScreen() {
|
|
1759
1807
|
this.state.isFullScreen && (document == null || document.exitFullscreen(), this.setState({
|
|
1760
1808
|
isFullScreen: !1
|
|
1761
|
-
}));
|
|
1809
|
+
}), this.props.fullscreen(!1));
|
|
1762
1810
|
}
|
|
1763
1811
|
render() {
|
|
1764
1812
|
return u("div", {
|
|
@@ -1769,7 +1817,7 @@ class zn extends A {
|
|
|
1769
1817
|
className: this.ns.b("header"),
|
|
1770
1818
|
children: [u("div", {
|
|
1771
1819
|
className: this.ns.b("header-caption"),
|
|
1772
|
-
children: "
|
|
1820
|
+
children: this.props.caption || "AIChart"
|
|
1773
1821
|
}), u("div", {
|
|
1774
1822
|
className: this.ns.b("header-action-wrapper"),
|
|
1775
1823
|
children: [this.state.isFullScreen ? u("div", {
|
|
@@ -1783,7 +1831,7 @@ class zn extends A {
|
|
|
1783
1831
|
}), u("div", {
|
|
1784
1832
|
className: "".concat(this.ns.be("header-action-wrapper", "action-item"), " ").concat(this.ns.be("header-action-wrapper", "action-close")),
|
|
1785
1833
|
onClick: this.close.bind(this),
|
|
1786
|
-
children: u(
|
|
1834
|
+
children: u(sn, {})
|
|
1787
1835
|
})]
|
|
1788
1836
|
})]
|
|
1789
1837
|
}), u("div", {
|
|
@@ -1793,7 +1841,7 @@ class zn extends A {
|
|
|
1793
1841
|
})
|
|
1794
1842
|
}), u("div", {
|
|
1795
1843
|
className: this.ns.b("footer"),
|
|
1796
|
-
children: u(
|
|
1844
|
+
children: u(Hn, {
|
|
1797
1845
|
controller: this.props.controller
|
|
1798
1846
|
})
|
|
1799
1847
|
})]
|
|
@@ -1849,7 +1897,7 @@ class Pn {
|
|
|
1849
1897
|
* @date 2023-10-16 16:10:29
|
|
1850
1898
|
* @type {Signal<ChatMessage[]>}
|
|
1851
1899
|
*/
|
|
1852
|
-
H(this, "messages",
|
|
1900
|
+
H(this, "messages", de([]));
|
|
1853
1901
|
/**
|
|
1854
1902
|
* 聊天框输入值
|
|
1855
1903
|
*
|
|
@@ -1857,7 +1905,7 @@ class Pn {
|
|
|
1857
1905
|
* @date 2023-10-16 15:10:43
|
|
1858
1906
|
* @type {Signal<string>}
|
|
1859
1907
|
*/
|
|
1860
|
-
H(this, "input",
|
|
1908
|
+
H(this, "input", de(""));
|
|
1861
1909
|
this.opts = e;
|
|
1862
1910
|
}
|
|
1863
1911
|
/**
|
|
@@ -1902,11 +1950,11 @@ class Pn {
|
|
|
1902
1950
|
async question(e) {
|
|
1903
1951
|
this.addMessage({
|
|
1904
1952
|
state: 30,
|
|
1905
|
-
messageid:
|
|
1953
|
+
messageid: $t(),
|
|
1906
1954
|
role: "USER",
|
|
1907
1955
|
type: "DEFAULT",
|
|
1908
1956
|
content: e
|
|
1909
|
-
}), await this.opts.question(this.messages.value.filter((n) => n.type !== "ERROR").map((n) => n._origin));
|
|
1957
|
+
}), await this.opts.question(this.messages.value.filter((n) => n.type !== "ERROR").map((n) => n._origin)), this.opts.action && this.opts.action("question", e);
|
|
1910
1958
|
}
|
|
1911
1959
|
/**
|
|
1912
1960
|
* 回填选中的消息
|
|
@@ -1927,7 +1975,7 @@ class Pn {
|
|
|
1927
1975
|
*/
|
|
1928
1976
|
deleteMessage(e) {
|
|
1929
1977
|
const n = this.messages.value.findIndex((i) => i.messageid === e.messageid);
|
|
1930
|
-
n !== -1 && (this.messages.value.splice(n, 1), this.messages.value = [...this.messages.value]);
|
|
1978
|
+
n !== -1 && (this.messages.value.splice(n, 1), this.messages.value = [...this.messages.value]), this.opts.action && this.opts.action("deletemsg", e);
|
|
1931
1979
|
}
|
|
1932
1980
|
/**
|
|
1933
1981
|
* 刷新当前消息
|
|
@@ -1944,6 +1992,7 @@ class Pn {
|
|
|
1944
1992
|
const s = this.messages.value[i - 1].content;
|
|
1945
1993
|
this.messages.value.splice(i - 1, 2), this.question(s);
|
|
1946
1994
|
}
|
|
1995
|
+
this.opts.action && this.opts.action("refreshmsg", e);
|
|
1947
1996
|
}
|
|
1948
1997
|
/**
|
|
1949
1998
|
* 复制消息
|
|
@@ -1953,7 +2002,7 @@ class Pn {
|
|
|
1953
2002
|
*/
|
|
1954
2003
|
copyMessage(e) {
|
|
1955
2004
|
const n = e.content;
|
|
1956
|
-
|
|
2005
|
+
kt.copy(n), this.opts.action && this.opts.action("copymsg", e);
|
|
1957
2006
|
}
|
|
1958
2007
|
}
|
|
1959
2008
|
class Rn {
|
|
@@ -1977,10 +2026,14 @@ class Rn {
|
|
|
1977
2026
|
create(e) {
|
|
1978
2027
|
this.close(), this.container = document.createElement("div"), this.container.classList.add("ibiz-ai-chat"), document.body.appendChild(this.container);
|
|
1979
2028
|
const n = new Pn(e);
|
|
1980
|
-
return
|
|
2029
|
+
return qe(K(zn, {
|
|
1981
2030
|
controller: n,
|
|
2031
|
+
caption: e.caption,
|
|
1982
2032
|
close: () => {
|
|
1983
2033
|
this.close(), e.closed && e.closed();
|
|
2034
|
+
},
|
|
2035
|
+
fullscreen: (i) => {
|
|
2036
|
+
e.fullscreen && e.fullscreen(i);
|
|
1984
2037
|
}
|
|
1985
2038
|
}), this.container), n;
|
|
1986
2039
|
}
|
|
@@ -2009,7 +2062,7 @@ class Rn {
|
|
|
2009
2062
|
* @date 2023-10-13 17:10:10
|
|
2010
2063
|
*/
|
|
2011
2064
|
close() {
|
|
2012
|
-
this.container && (
|
|
2065
|
+
this.container && (qe(null, this.container), this.container.remove(), this.container = void 0);
|
|
2013
2066
|
}
|
|
2014
2067
|
}
|
|
2015
2068
|
const Un = new Rn();
|