zywlagent 0.1.9 → 0.1.10
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.
|
@@ -4,19 +4,19 @@ function L0() {
|
|
|
4
4
|
if (Cd) return Hl;
|
|
5
5
|
Cd = 1;
|
|
6
6
|
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), s = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
7
|
-
function m(f, j,
|
|
7
|
+
function m(f, j, N) {
|
|
8
8
|
var Y = null;
|
|
9
|
-
if (
|
|
10
|
-
|
|
9
|
+
if (N !== void 0 && (Y = "" + N), j.key !== void 0 && (Y = "" + j.key), "key" in j) {
|
|
10
|
+
N = {};
|
|
11
11
|
for (var B in j)
|
|
12
|
-
B !== "key" && (
|
|
13
|
-
} else
|
|
14
|
-
return j =
|
|
12
|
+
B !== "key" && (N[B] = j[B]);
|
|
13
|
+
} else N = j;
|
|
14
|
+
return j = N.ref, {
|
|
15
15
|
$$typeof: u,
|
|
16
16
|
type: f,
|
|
17
17
|
key: Y,
|
|
18
18
|
ref: j !== void 0 ? j : null,
|
|
19
|
-
props:
|
|
19
|
+
props: N
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
return Hl.Fragment = s, Hl.jsx = m, Hl.jsxs = m, Hl;
|
|
@@ -63,9 +63,9 @@ function Q0() {
|
|
|
63
63
|
return L !== 0 ? L : M.id - G.id;
|
|
64
64
|
}
|
|
65
65
|
if (u.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
|
|
66
|
-
var
|
|
66
|
+
var N = performance;
|
|
67
67
|
u.unstable_now = function() {
|
|
68
|
-
return
|
|
68
|
+
return N.now();
|
|
69
69
|
};
|
|
70
70
|
} else {
|
|
71
71
|
var Y = Date, B = Y.now();
|
|
@@ -255,7 +255,7 @@ var kd;
|
|
|
255
255
|
function R0() {
|
|
256
256
|
if (kd) return nt;
|
|
257
257
|
kd = 1;
|
|
258
|
-
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), f = /* @__PURE__ */ Symbol.for("react.strict_mode"), j = /* @__PURE__ */ Symbol.for("react.profiler"),
|
|
258
|
+
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), f = /* @__PURE__ */ Symbol.for("react.strict_mode"), j = /* @__PURE__ */ Symbol.for("react.profiler"), N = /* @__PURE__ */ Symbol.for("react.consumer"), Y = /* @__PURE__ */ Symbol.for("react.context"), B = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), y = /* @__PURE__ */ Symbol.for("react.memo"), k = /* @__PURE__ */ Symbol.for("react.lazy"), E = /* @__PURE__ */ Symbol.for("react.activity"), q = Symbol.iterator;
|
|
259
259
|
function I(p) {
|
|
260
260
|
return p === null || typeof p != "object" ? null : (p = q && p[q] || p["@@iterator"], typeof p == "function" ? p : null);
|
|
261
261
|
}
|
|
@@ -519,7 +519,7 @@ function R0() {
|
|
|
519
519
|
Provider: null,
|
|
520
520
|
Consumer: null
|
|
521
521
|
}, p.Provider = p, p.Consumer = {
|
|
522
|
-
$$typeof:
|
|
522
|
+
$$typeof: N,
|
|
523
523
|
_context: p
|
|
524
524
|
}, p;
|
|
525
525
|
}, nt.createElement = function(p, A, Z) {
|
|
@@ -648,7 +648,7 @@ function F0() {
|
|
|
648
648
|
p: 0,
|
|
649
649
|
findDOMNode: null
|
|
650
650
|
}, j = /* @__PURE__ */ Symbol.for("react.portal");
|
|
651
|
-
function
|
|
651
|
+
function N(T, y, k) {
|
|
652
652
|
var E = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
653
653
|
return {
|
|
654
654
|
$$typeof: j,
|
|
@@ -668,7 +668,7 @@ function F0() {
|
|
|
668
668
|
var k = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
669
669
|
if (!y || y.nodeType !== 1 && y.nodeType !== 9 && y.nodeType !== 11)
|
|
670
670
|
throw Error(s(299));
|
|
671
|
-
return
|
|
671
|
+
return N(T, y, null, k);
|
|
672
672
|
}, se.flushSync = function(T) {
|
|
673
673
|
var y = Y.T, k = f.p;
|
|
674
674
|
try {
|
|
@@ -779,7 +779,7 @@ function J0() {
|
|
|
779
779
|
function j(t) {
|
|
780
780
|
return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function N(t) {
|
|
783
783
|
var e = t, a = t;
|
|
784
784
|
if (t.alternate) for (; e.return; ) e = e.return;
|
|
785
785
|
else {
|
|
@@ -805,13 +805,13 @@ function J0() {
|
|
|
805
805
|
return null;
|
|
806
806
|
}
|
|
807
807
|
function T(t) {
|
|
808
|
-
if (
|
|
808
|
+
if (N(t) !== t)
|
|
809
809
|
throw Error(f(188));
|
|
810
810
|
}
|
|
811
811
|
function y(t) {
|
|
812
812
|
var e = t.alternate;
|
|
813
813
|
if (!e) {
|
|
814
|
-
if (e =
|
|
814
|
+
if (e = N(t), e === null) throw Error(f(188));
|
|
815
815
|
return e !== t ? null : t;
|
|
816
816
|
}
|
|
817
817
|
for (var a = t, n = e; ; ) {
|
|
@@ -1062,9 +1062,9 @@ function J0() {
|
|
|
1062
1062
|
if (n !== 1 || l !== 1)
|
|
1063
1063
|
do
|
|
1064
1064
|
if (n--, l--, 0 > l || d[n] !== v[l]) {
|
|
1065
|
-
var
|
|
1065
|
+
var z = `
|
|
1066
1066
|
` + d[n].replace(" at new ", " at ");
|
|
1067
|
-
return t.displayName &&
|
|
1067
|
+
return t.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", t.displayName)), z;
|
|
1068
1068
|
}
|
|
1069
1069
|
while (1 <= n && 0 <= l);
|
|
1070
1070
|
break;
|
|
@@ -1249,12 +1249,12 @@ Error generating stack: ` + n.message + `
|
|
|
1249
1249
|
t.pendingLanes = a, t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0, t.expiredLanes &= a, t.entangledLanes &= a, t.errorRecoveryDisabledLanes &= a, t.shellSuspendCounter = 0;
|
|
1250
1250
|
var r = t.entanglements, d = t.expirationTimes, v = t.hiddenUpdates;
|
|
1251
1251
|
for (a = c & ~a; 0 < a; ) {
|
|
1252
|
-
var
|
|
1253
|
-
r[
|
|
1254
|
-
var x = v[
|
|
1252
|
+
var z = 31 - Me(a), D = 1 << z;
|
|
1253
|
+
r[z] = 0, d[z] = -1;
|
|
1254
|
+
var x = v[z];
|
|
1255
1255
|
if (x !== null)
|
|
1256
|
-
for (v[
|
|
1257
|
-
var w = x[
|
|
1256
|
+
for (v[z] = null, z = 0; z < x.length; z++) {
|
|
1257
|
+
var w = x[z];
|
|
1258
1258
|
w !== null && (w.lane &= -536870913);
|
|
1259
1259
|
}
|
|
1260
1260
|
a &= ~D;
|
|
@@ -2866,7 +2866,7 @@ Error generating stack: ` + n.message + `
|
|
|
2866
2866
|
}
|
|
2867
2867
|
function d(b, g, h, O) {
|
|
2868
2868
|
var V = h.type;
|
|
2869
|
-
return V === ut ?
|
|
2869
|
+
return V === ut ? z(
|
|
2870
2870
|
b,
|
|
2871
2871
|
g,
|
|
2872
2872
|
h.props.children,
|
|
@@ -2884,7 +2884,7 @@ Error generating stack: ` + n.message + `
|
|
|
2884
2884
|
function v(b, g, h, O) {
|
|
2885
2885
|
return g === null || g.tag !== 4 || g.stateNode.containerInfo !== h.containerInfo || g.stateNode.implementation !== h.implementation ? (g = Hc(h, b.mode, O), g.return = b, g) : (g = l(g, h.children || []), g.return = b, g);
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2887
|
+
function z(b, g, h, O, V) {
|
|
2888
2888
|
return g === null || g.tag !== 7 ? (g = Ra(
|
|
2889
2889
|
h,
|
|
2890
2890
|
b.mode,
|
|
@@ -2952,7 +2952,7 @@ Error generating stack: ` + n.message + `
|
|
|
2952
2952
|
return h = Va(h), x(b, g, h, O);
|
|
2953
2953
|
}
|
|
2954
2954
|
if (kt(h) || C(h))
|
|
2955
|
-
return V !== null ? null :
|
|
2955
|
+
return V !== null ? null : z(b, g, h, O, null);
|
|
2956
2956
|
if (typeof h.then == "function")
|
|
2957
2957
|
return x(
|
|
2958
2958
|
b,
|
|
@@ -2994,7 +2994,7 @@ Error generating stack: ` + n.message + `
|
|
|
2994
2994
|
);
|
|
2995
2995
|
}
|
|
2996
2996
|
if (kt(O) || C(O))
|
|
2997
|
-
return b = b.get(h) || null,
|
|
2997
|
+
return b = b.get(h) || null, z(g, b, O, V, null);
|
|
2998
2998
|
if (typeof O.then == "function")
|
|
2999
2999
|
return w(
|
|
3000
3000
|
b,
|
|
@@ -3288,16 +3288,16 @@ Error generating stack: ` + n.message + `
|
|
|
3288
3288
|
l.shared.pending = null;
|
|
3289
3289
|
var d = r, v = d.next;
|
|
3290
3290
|
d.next = null, c === null ? i = v : c.next = v, c = d;
|
|
3291
|
-
var
|
|
3292
|
-
|
|
3291
|
+
var z = t.alternate;
|
|
3292
|
+
z !== null && (z = z.updateQueue, r = z.lastBaseUpdate, r !== c && (r === null ? z.firstBaseUpdate = v : r.next = v, z.lastBaseUpdate = d));
|
|
3293
3293
|
}
|
|
3294
3294
|
if (i !== null) {
|
|
3295
3295
|
var D = l.baseState;
|
|
3296
|
-
c = 0,
|
|
3296
|
+
c = 0, z = v = d = null, r = i;
|
|
3297
3297
|
do {
|
|
3298
3298
|
var x = r.lane & -536870913, w = x !== r.lane;
|
|
3299
3299
|
if (w ? (vt & x) === x : (n & x) === x) {
|
|
3300
|
-
x !== 0 && x === wn && (_c = !0),
|
|
3300
|
+
x !== 0 && x === wn && (_c = !0), z !== null && (z = z.next = {
|
|
3301
3301
|
lane: 0,
|
|
3302
3302
|
tag: r.tag,
|
|
3303
3303
|
payload: r.payload,
|
|
@@ -3334,14 +3334,14 @@ Error generating stack: ` + n.message + `
|
|
|
3334
3334
|
payload: r.payload,
|
|
3335
3335
|
callback: r.callback,
|
|
3336
3336
|
next: null
|
|
3337
|
-
},
|
|
3337
|
+
}, z === null ? (v = z = w, d = D) : z = z.next = w, c |= x;
|
|
3338
3338
|
if (r = r.next, r === null) {
|
|
3339
3339
|
if (r = l.shared.pending, r === null)
|
|
3340
3340
|
break;
|
|
3341
3341
|
w = r, r = w.next, w.next = null, l.lastBaseUpdate = w, l.shared.pending = null;
|
|
3342
3342
|
}
|
|
3343
3343
|
} while (!0);
|
|
3344
|
-
|
|
3344
|
+
z === null && (d = D), l.baseState = d, l.firstBaseUpdate = v, l.lastBaseUpdate = z, i === null && (l.shared.lanes = 0), Oa |= c, t.lanes = c, t.memoizedState = D;
|
|
3345
3345
|
}
|
|
3346
3346
|
}
|
|
3347
3347
|
function Vs(t, e) {
|
|
@@ -3545,7 +3545,7 @@ Error generating stack: ` + n.message + `
|
|
|
3545
3545
|
if (i = t.baseState, l === null) t.memoizedState = i;
|
|
3546
3546
|
else {
|
|
3547
3547
|
e = l.next;
|
|
3548
|
-
var r = c = null, d = null, v = e,
|
|
3548
|
+
var r = c = null, d = null, v = e, z = !1;
|
|
3549
3549
|
do {
|
|
3550
3550
|
var D = v.lane & -536870913;
|
|
3551
3551
|
if (D !== v.lane ? (vt & D) === D : (ta & D) === D) {
|
|
@@ -3559,9 +3559,9 @@ Error generating stack: ` + n.message + `
|
|
|
3559
3559
|
hasEagerState: v.hasEagerState,
|
|
3560
3560
|
eagerState: v.eagerState,
|
|
3561
3561
|
next: null
|
|
3562
|
-
}), D === wn && (
|
|
3562
|
+
}), D === wn && (z = !0);
|
|
3563
3563
|
else if ((ta & x) === x) {
|
|
3564
|
-
v = v.next, x === wn && (
|
|
3564
|
+
v = v.next, x === wn && (z = !0);
|
|
3565
3565
|
continue;
|
|
3566
3566
|
} else
|
|
3567
3567
|
D = {
|
|
@@ -3586,7 +3586,7 @@ Error generating stack: ` + n.message + `
|
|
|
3586
3586
|
}, d === null ? (r = d = x, c = i) : d = d.next = x, ct.lanes |= D, Oa |= D;
|
|
3587
3587
|
v = v.next;
|
|
3588
3588
|
} while (v !== null && v !== e);
|
|
3589
|
-
if (d === null ? c = i : d.next = r, !Ne(i, t.memoizedState) && (Vt = !0,
|
|
3589
|
+
if (d === null ? c = i : d.next = r, !Ne(i, t.memoizedState) && (Vt = !0, z && (a = Mn, a !== null)))
|
|
3590
3590
|
throw a;
|
|
3591
3591
|
t.memoizedState = i, t.baseState = c, t.baseQueue = d, n.lastRenderedState = i;
|
|
3592
3592
|
}
|
|
@@ -3968,14 +3968,14 @@ Error generating stack: ` + n.message + `
|
|
|
3968
3968
|
try {
|
|
3969
3969
|
var d = l(), v = M.S;
|
|
3970
3970
|
if (v !== null && v(r, d), d !== null && typeof d == "object" && typeof d.then == "function") {
|
|
3971
|
-
var
|
|
3971
|
+
var z = Ag(
|
|
3972
3972
|
d,
|
|
3973
3973
|
n
|
|
3974
3974
|
);
|
|
3975
3975
|
bl(
|
|
3976
3976
|
t,
|
|
3977
3977
|
e,
|
|
3978
|
-
|
|
3978
|
+
z,
|
|
3979
3979
|
Se(t)
|
|
3980
3980
|
);
|
|
3981
3981
|
} else
|
|
@@ -4799,10 +4799,10 @@ Error generating stack: ` + n.message + `
|
|
|
4799
4799
|
i = e.stateNode;
|
|
4800
4800
|
var r = e.memoizedProps, d = $a(a, r);
|
|
4801
4801
|
i.props = d;
|
|
4802
|
-
var v = i.context,
|
|
4803
|
-
c = bn, typeof
|
|
4802
|
+
var v = i.context, z = a.contextType;
|
|
4803
|
+
c = bn, typeof z == "object" && z !== null && (c = ie(z));
|
|
4804
4804
|
var D = a.getDerivedStateFromProps;
|
|
4805
|
-
|
|
4805
|
+
z = typeof D == "function" || typeof i.getSnapshotBeforeUpdate == "function", r = e.pendingProps !== r, z || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (r || v !== c) && ko(
|
|
4806
4806
|
e,
|
|
4807
4807
|
i,
|
|
4808
4808
|
n,
|
|
@@ -4822,9 +4822,9 @@ Error generating stack: ` + n.message + `
|
|
|
4822
4822
|
x,
|
|
4823
4823
|
v,
|
|
4824
4824
|
c
|
|
4825
|
-
)) ? (
|
|
4825
|
+
)) ? (z || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount()), typeof i.componentDidMount == "function" && (e.flags |= 4194308)) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), e.memoizedProps = n, e.memoizedState = v), i.props = n, i.state = v, i.context = c, n = d) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), n = !1);
|
|
4826
4826
|
} else {
|
|
4827
|
-
i = e.stateNode, Ic(t, e), c = e.memoizedProps,
|
|
4827
|
+
i = e.stateNode, Ic(t, e), c = e.memoizedProps, z = $a(a, c), i.props = z, D = e.pendingProps, x = i.context, v = a.contextType, d = bn, typeof v == "object" && v !== null && (d = ie(v)), r = a.getDerivedStateFromProps, (v = typeof r == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (c !== D || x !== d) && ko(
|
|
4828
4828
|
e,
|
|
4829
4829
|
i,
|
|
4830
4830
|
n,
|
|
@@ -4836,10 +4836,10 @@ Error generating stack: ` + n.message + `
|
|
|
4836
4836
|
a,
|
|
4837
4837
|
r,
|
|
4838
4838
|
n
|
|
4839
|
-
), w = e.memoizedState), (
|
|
4839
|
+
), w = e.memoizedState), (z = ya || Xo(
|
|
4840
4840
|
e,
|
|
4841
4841
|
a,
|
|
4842
|
-
|
|
4842
|
+
z,
|
|
4843
4843
|
n,
|
|
4844
4844
|
x,
|
|
4845
4845
|
w,
|
|
@@ -4848,7 +4848,7 @@ Error generating stack: ` + n.message + `
|
|
|
4848
4848
|
n,
|
|
4849
4849
|
w,
|
|
4850
4850
|
d
|
|
4851
|
-
)), typeof i.componentDidUpdate == "function" && (e.flags |= 4), typeof i.getSnapshotBeforeUpdate == "function" && (e.flags |= 1024)) : (typeof i.componentDidUpdate != "function" || c === t.memoizedProps && x === t.memoizedState || (e.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || c === t.memoizedProps && x === t.memoizedState || (e.flags |= 1024), e.memoizedProps = n, e.memoizedState = w), i.props = n, i.state = w, i.context = d, n =
|
|
4851
|
+
)), typeof i.componentDidUpdate == "function" && (e.flags |= 4), typeof i.getSnapshotBeforeUpdate == "function" && (e.flags |= 1024)) : (typeof i.componentDidUpdate != "function" || c === t.memoizedProps && x === t.memoizedState || (e.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || c === t.memoizedProps && x === t.memoizedState || (e.flags |= 1024), e.memoizedProps = n, e.memoizedState = w), i.props = n, i.state = w, i.context = d, n = z) : (typeof i.componentDidUpdate != "function" || c === t.memoizedProps && x === t.memoizedState || (e.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || c === t.memoizedProps && x === t.memoizedState || (e.flags |= 1024), n = !1);
|
|
4852
4852
|
}
|
|
4853
4853
|
return i = n, Di(t, e), n = (e.flags & 128) !== 0, i || n ? (i = e.stateNode, a = n && typeof a.getDerivedStateFromError != "function" ? null : i.render(), e.flags |= 1, t !== null && n ? (e.child = Pa(
|
|
4854
4854
|
e,
|
|
@@ -5841,11 +5841,11 @@ Error generating stack: ` + n.message + `
|
|
|
5841
5841
|
var d = a, v = r;
|
|
5842
5842
|
try {
|
|
5843
5843
|
v();
|
|
5844
|
-
} catch (
|
|
5844
|
+
} catch (z) {
|
|
5845
5845
|
St(
|
|
5846
5846
|
l,
|
|
5847
5847
|
d,
|
|
5848
|
-
|
|
5848
|
+
z
|
|
5849
5849
|
);
|
|
5850
5850
|
}
|
|
5851
5851
|
}
|
|
@@ -5853,8 +5853,8 @@ Error generating stack: ` + n.message + `
|
|
|
5853
5853
|
n = n.next;
|
|
5854
5854
|
} while (n !== i);
|
|
5855
5855
|
}
|
|
5856
|
-
} catch (
|
|
5857
|
-
St(e, e.return,
|
|
5856
|
+
} catch (z) {
|
|
5857
|
+
St(e, e.return, z);
|
|
5858
5858
|
}
|
|
5859
5859
|
}
|
|
5860
5860
|
function rf(t) {
|
|
@@ -6009,13 +6009,13 @@ Error generating stack: ` + n.message + `
|
|
|
6009
6009
|
a = null;
|
|
6010
6010
|
break t;
|
|
6011
6011
|
}
|
|
6012
|
-
var c = 0, r = -1, d = -1, v = 0,
|
|
6012
|
+
var c = 0, r = -1, d = -1, v = 0, z = 0, D = t, x = null;
|
|
6013
6013
|
e: for (; ; ) {
|
|
6014
6014
|
for (var w; D !== a || l !== 0 && D.nodeType !== 3 || (r = c + l), D !== i || n !== 0 && D.nodeType !== 3 || (d = c + n), D.nodeType === 3 && (c += D.nodeValue.length), (w = D.firstChild) !== null; )
|
|
6015
6015
|
x = D, D = w;
|
|
6016
6016
|
for (; ; ) {
|
|
6017
6017
|
if (D === t) break e;
|
|
6018
|
-
if (x === a && ++v === l && (r = c), x === i && ++
|
|
6018
|
+
if (x === a && ++v === l && (r = c), x === i && ++z === n && (d = c), (w = D.nextSibling) !== null) break;
|
|
6019
6019
|
D = x, x = D.parentNode;
|
|
6020
6020
|
}
|
|
6021
6021
|
D = w;
|
|
@@ -6523,8 +6523,8 @@ Error generating stack: ` + n.message + `
|
|
|
6523
6523
|
break;
|
|
6524
6524
|
case 22:
|
|
6525
6525
|
l = t.memoizedState !== null;
|
|
6526
|
-
var d = a !== null && a.memoizedState !== null, v = la,
|
|
6527
|
-
if (la = v || l, It =
|
|
6526
|
+
var d = a !== null && a.memoizedState !== null, v = la, z = It;
|
|
6527
|
+
if (la = v || l, It = z || d, be(e, t), It = z, la = v, he(t), n & 8192)
|
|
6528
6528
|
t: for (e = t.stateNode, e._visibility = l ? e._visibility & -2 : e._visibility | 1, l && (a === null || d || la || It || tn(t)), a = null, e = t; ; ) {
|
|
6529
6529
|
if (e.tag === 5 || e.tag === 26) {
|
|
6530
6530
|
if (a === null) {
|
|
@@ -6619,8 +6619,8 @@ Error generating stack: ` + n.message + `
|
|
|
6619
6619
|
default:
|
|
6620
6620
|
throw Error(f(161));
|
|
6621
6621
|
}
|
|
6622
|
-
} catch (
|
|
6623
|
-
St(t, t.return,
|
|
6622
|
+
} catch (z) {
|
|
6623
|
+
St(t, t.return, z);
|
|
6624
6624
|
}
|
|
6625
6625
|
t.flags &= -3;
|
|
6626
6626
|
}
|
|
@@ -6907,8 +6907,8 @@ Error generating stack: ` + n.message + `
|
|
|
6907
6907
|
case 23:
|
|
6908
6908
|
break;
|
|
6909
6909
|
case 22:
|
|
6910
|
-
var
|
|
6911
|
-
c.memoizedState !== null ?
|
|
6910
|
+
var z = c.stateNode;
|
|
6911
|
+
c.memoizedState !== null ? z._visibility & 2 ? Sn(
|
|
6912
6912
|
i,
|
|
6913
6913
|
c,
|
|
6914
6914
|
r,
|
|
@@ -6917,7 +6917,7 @@ Error generating stack: ` + n.message + `
|
|
|
6917
6917
|
) : Ml(
|
|
6918
6918
|
i,
|
|
6919
6919
|
c
|
|
6920
|
-
) : (
|
|
6920
|
+
) : (z._visibility |= 2, Sn(
|
|
6921
6921
|
i,
|
|
6922
6922
|
c,
|
|
6923
6923
|
r,
|
|
@@ -7294,7 +7294,7 @@ Error generating stack: ` + n.message + `
|
|
|
7294
7294
|
} while (!0);
|
|
7295
7295
|
Je(t);
|
|
7296
7296
|
}
|
|
7297
|
-
function jf(t, e, a, n, l, i, c, r, d, v,
|
|
7297
|
+
function jf(t, e, a, n, l, i, c, r, d, v, z, D, x, w) {
|
|
7298
7298
|
if (t.timeoutHandle = -1, D = e.subtreeFlags, D & 8192 || (D & 16785408) === 16785408) {
|
|
7299
7299
|
D = {
|
|
7300
7300
|
stylesheets: null,
|
|
@@ -7327,7 +7327,7 @@ Error generating stack: ` + n.message + `
|
|
|
7327
7327
|
c,
|
|
7328
7328
|
r,
|
|
7329
7329
|
d,
|
|
7330
|
-
|
|
7330
|
+
z,
|
|
7331
7331
|
D,
|
|
7332
7332
|
null,
|
|
7333
7333
|
x,
|
|
@@ -7465,8 +7465,8 @@ Error generating stack: ` + n.message + `
|
|
|
7465
7465
|
}
|
|
7466
7466
|
qg(), c = Kt;
|
|
7467
7467
|
break;
|
|
7468
|
-
} catch (
|
|
7469
|
-
Yf(t,
|
|
7468
|
+
} catch (z) {
|
|
7469
|
+
Yf(t, z);
|
|
7470
7470
|
}
|
|
7471
7471
|
while (!0);
|
|
7472
7472
|
return e && t.shellSuspendCounter++, _e = Ja = null, Dt = n, M.H = l, M.A = i, gt === null && (Et = null, vt = 0, ni()), c;
|
|
@@ -7543,8 +7543,8 @@ Error generating stack: ` + n.message + `
|
|
|
7543
7543
|
}
|
|
7544
7544
|
Vg();
|
|
7545
7545
|
break;
|
|
7546
|
-
} catch (
|
|
7547
|
-
Yf(t,
|
|
7546
|
+
} catch (z) {
|
|
7547
|
+
Yf(t, z);
|
|
7548
7548
|
}
|
|
7549
7549
|
while (!0);
|
|
7550
7550
|
return _e = Ja = null, M.H = n, M.A = l, Dt = a, gt !== null ? 0 : (Et = null, vt = 0, ni(), Kt);
|
|
@@ -7704,10 +7704,10 @@ Error generating stack: ` + n.message + `
|
|
|
7704
7704
|
r
|
|
7705
7705
|
)) {
|
|
7706
7706
|
if (d !== null && Ac(r)) {
|
|
7707
|
-
var v = d.start,
|
|
7708
|
-
if (
|
|
7707
|
+
var v = d.start, z = d.end;
|
|
7708
|
+
if (z === void 0 && (z = v), "selectionStart" in r)
|
|
7709
7709
|
r.selectionStart = v, r.selectionEnd = Math.min(
|
|
7710
|
-
|
|
7710
|
+
z,
|
|
7711
7711
|
r.value.length
|
|
7712
7712
|
);
|
|
7713
7713
|
else {
|
|
@@ -8118,8 +8118,8 @@ Error generating stack: ` + n.message + `
|
|
|
8118
8118
|
i = r, l.currentTarget = v;
|
|
8119
8119
|
try {
|
|
8120
8120
|
i(l);
|
|
8121
|
-
} catch (
|
|
8122
|
-
ai(
|
|
8121
|
+
} catch (z) {
|
|
8122
|
+
ai(z);
|
|
8123
8123
|
}
|
|
8124
8124
|
l.currentTarget = null, i = d;
|
|
8125
8125
|
}
|
|
@@ -8130,8 +8130,8 @@ Error generating stack: ` + n.message + `
|
|
|
8130
8130
|
i = r, l.currentTarget = v;
|
|
8131
8131
|
try {
|
|
8132
8132
|
i(l);
|
|
8133
|
-
} catch (
|
|
8134
|
-
ai(
|
|
8133
|
+
} catch (z) {
|
|
8134
|
+
ai(z);
|
|
8135
8135
|
}
|
|
8136
8136
|
l.currentTarget = null, i = d;
|
|
8137
8137
|
}
|
|
@@ -8214,7 +8214,7 @@ Error generating stack: ` + n.message + `
|
|
|
8214
8214
|
n = n.return;
|
|
8215
8215
|
}
|
|
8216
8216
|
as(function() {
|
|
8217
|
-
var v = i,
|
|
8217
|
+
var v = i, z = hc(a), D = [];
|
|
8218
8218
|
t: {
|
|
8219
8219
|
var x = js.get(t);
|
|
8220
8220
|
if (x !== void 0) {
|
|
@@ -8312,7 +8312,7 @@ Error generating stack: ` + n.message + `
|
|
|
8312
8312
|
Q,
|
|
8313
8313
|
null,
|
|
8314
8314
|
a,
|
|
8315
|
-
|
|
8315
|
+
z
|
|
8316
8316
|
), D.push({ event: x, listeners: _ }));
|
|
8317
8317
|
}
|
|
8318
8318
|
}
|
|
@@ -8320,19 +8320,19 @@ Error generating stack: ` + n.message + `
|
|
|
8320
8320
|
t: {
|
|
8321
8321
|
if (x = t === "mouseover" || t === "pointerover", w = t === "mouseout" || t === "pointerout", x && a !== bc && (Q = a.relatedTarget || a.fromElement) && (nn(Q) || Q[an]))
|
|
8322
8322
|
break t;
|
|
8323
|
-
if ((w || x) && (x =
|
|
8323
|
+
if ((w || x) && (x = z.window === z ? z : (x = z.ownerDocument) ? x.defaultView || x.parentWindow : window, w ? (Q = a.relatedTarget || a.toElement, w = v, Q = Q ? nn(Q) : null, Q !== null && (Bt = N(Q), _ = Q.tag, Q !== Bt || _ !== 5 && _ !== 27 && _ !== 6) && (Q = null)) : (w = null, Q = v), w !== Q)) {
|
|
8324
8324
|
if (_ = is, O = "onMouseLeave", b = "onMouseEnter", g = "mouse", (t === "pointerout" || t === "pointerover") && (_ = us, O = "onPointerLeave", b = "onPointerEnter", g = "pointer"), Bt = w == null ? x : Vn(w), h = Q == null ? x : Vn(Q), x = new _(
|
|
8325
8325
|
O,
|
|
8326
8326
|
g + "leave",
|
|
8327
8327
|
w,
|
|
8328
8328
|
a,
|
|
8329
|
-
|
|
8330
|
-
), x.target = Bt, x.relatedTarget = h, O = null, nn(
|
|
8329
|
+
z
|
|
8330
|
+
), x.target = Bt, x.relatedTarget = h, O = null, nn(z) === v && (_ = new _(
|
|
8331
8331
|
b,
|
|
8332
8332
|
g + "enter",
|
|
8333
8333
|
Q,
|
|
8334
8334
|
a,
|
|
8335
|
-
|
|
8335
|
+
z
|
|
8336
8336
|
), _.target = h, _.relatedTarget = Bt, O = _), Bt = O, w && Q)
|
|
8337
8337
|
e: {
|
|
8338
8338
|
for (_ = c0, b = w, g = Q, h = 0, O = b; O; O = _(O))
|
|
@@ -8386,7 +8386,7 @@ Error generating stack: ` + n.message + `
|
|
|
8386
8386
|
D,
|
|
8387
8387
|
Nt,
|
|
8388
8388
|
a,
|
|
8389
|
-
|
|
8389
|
+
z
|
|
8390
8390
|
);
|
|
8391
8391
|
break t;
|
|
8392
8392
|
}
|
|
@@ -8405,13 +8405,13 @@ Error generating stack: ` + n.message + `
|
|
|
8405
8405
|
case "contextmenu":
|
|
8406
8406
|
case "mouseup":
|
|
8407
8407
|
case "dragend":
|
|
8408
|
-
jc = !1, zs(D, a,
|
|
8408
|
+
jc = !1, zs(D, a, z);
|
|
8409
8409
|
break;
|
|
8410
8410
|
case "selectionchange":
|
|
8411
8411
|
if (yg) break;
|
|
8412
8412
|
case "keydown":
|
|
8413
8413
|
case "keyup":
|
|
8414
|
-
zs(D, a,
|
|
8414
|
+
zs(D, a, z);
|
|
8415
8415
|
}
|
|
8416
8416
|
var rt;
|
|
8417
8417
|
if (Tc)
|
|
@@ -8431,18 +8431,18 @@ Error generating stack: ` + n.message + `
|
|
|
8431
8431
|
}
|
|
8432
8432
|
else
|
|
8433
8433
|
dn ? fs(t, a) && (yt = "onCompositionEnd") : t === "keydown" && a.keyCode === 229 && (yt = "onCompositionStart");
|
|
8434
|
-
yt && (rs && a.locale !== "ko" && (dn || yt !== "onCompositionStart" ? yt === "onCompositionEnd" && dn && (rt = ns()) : (ga =
|
|
8434
|
+
yt && (rs && a.locale !== "ko" && (dn || yt !== "onCompositionStart" ? yt === "onCompositionEnd" && dn && (rt = ns()) : (ga = z, xc = "value" in ga ? ga.value : ga.textContent, dn = !0)), R = Ki(v, yt), 0 < R.length && (yt = new cs(
|
|
8435
8435
|
yt,
|
|
8436
8436
|
t,
|
|
8437
8437
|
null,
|
|
8438
8438
|
a,
|
|
8439
|
-
|
|
8439
|
+
z
|
|
8440
8440
|
), D.push({ event: yt, listeners: R }), rt ? yt.data = rt : (rt = ds(a), rt !== null && (yt.data = rt)))), (rt = sg ? og(t, a) : fg(t, a)) && (yt = Ki(v, "onBeforeInput"), 0 < yt.length && (R = new cs(
|
|
8441
8441
|
"onBeforeInput",
|
|
8442
8442
|
"beforeinput",
|
|
8443
8443
|
null,
|
|
8444
8444
|
a,
|
|
8445
|
-
|
|
8445
|
+
z
|
|
8446
8446
|
), D.push({
|
|
8447
8447
|
event: R,
|
|
8448
8448
|
listeners: yt
|
|
@@ -8451,7 +8451,7 @@ Error generating stack: ` + n.message + `
|
|
|
8451
8451
|
t,
|
|
8452
8452
|
v,
|
|
8453
8453
|
a,
|
|
8454
|
-
|
|
8454
|
+
z
|
|
8455
8455
|
);
|
|
8456
8456
|
}
|
|
8457
8457
|
_f(D, e);
|
|
@@ -8842,34 +8842,34 @@ Error generating stack: ` + n.message + `
|
|
|
8842
8842
|
var r = i = c = l = null, d = null, v = null;
|
|
8843
8843
|
for (n in a)
|
|
8844
8844
|
if (a.hasOwnProperty(n)) {
|
|
8845
|
-
var
|
|
8846
|
-
if (
|
|
8845
|
+
var z = a[n];
|
|
8846
|
+
if (z != null)
|
|
8847
8847
|
switch (n) {
|
|
8848
8848
|
case "name":
|
|
8849
|
-
l =
|
|
8849
|
+
l = z;
|
|
8850
8850
|
break;
|
|
8851
8851
|
case "type":
|
|
8852
|
-
c =
|
|
8852
|
+
c = z;
|
|
8853
8853
|
break;
|
|
8854
8854
|
case "checked":
|
|
8855
|
-
d =
|
|
8855
|
+
d = z;
|
|
8856
8856
|
break;
|
|
8857
8857
|
case "defaultChecked":
|
|
8858
|
-
v =
|
|
8858
|
+
v = z;
|
|
8859
8859
|
break;
|
|
8860
8860
|
case "value":
|
|
8861
|
-
i =
|
|
8861
|
+
i = z;
|
|
8862
8862
|
break;
|
|
8863
8863
|
case "defaultValue":
|
|
8864
|
-
r =
|
|
8864
|
+
r = z;
|
|
8865
8865
|
break;
|
|
8866
8866
|
case "children":
|
|
8867
8867
|
case "dangerouslySetInnerHTML":
|
|
8868
|
-
if (
|
|
8868
|
+
if (z != null)
|
|
8869
8869
|
throw Error(f(137, e));
|
|
8870
8870
|
break;
|
|
8871
8871
|
default:
|
|
8872
|
-
Yt(t, e, n,
|
|
8872
|
+
Yt(t, e, n, z, a, null);
|
|
8873
8873
|
}
|
|
8874
8874
|
}
|
|
8875
8875
|
Ir(
|
|
@@ -8972,11 +8972,11 @@ Error generating stack: ` + n.message + `
|
|
|
8972
8972
|
return;
|
|
8973
8973
|
default:
|
|
8974
8974
|
if (pc(e)) {
|
|
8975
|
-
for (
|
|
8976
|
-
a.hasOwnProperty(
|
|
8975
|
+
for (z in a)
|
|
8976
|
+
a.hasOwnProperty(z) && (n = a[z], n !== void 0 && er(
|
|
8977
8977
|
t,
|
|
8978
8978
|
e,
|
|
8979
|
-
|
|
8979
|
+
z,
|
|
8980
8980
|
n,
|
|
8981
8981
|
a,
|
|
8982
8982
|
void 0
|
|
@@ -8999,7 +8999,7 @@ Error generating stack: ` + n.message + `
|
|
|
8999
8999
|
case "li":
|
|
9000
9000
|
break;
|
|
9001
9001
|
case "input":
|
|
9002
|
-
var l = null, i = null, c = null, r = null, d = null, v = null,
|
|
9002
|
+
var l = null, i = null, c = null, r = null, d = null, v = null, z = null;
|
|
9003
9003
|
for (w in a) {
|
|
9004
9004
|
var D = a[w];
|
|
9005
9005
|
if (a.hasOwnProperty(w) && D != null)
|
|
@@ -9028,7 +9028,7 @@ Error generating stack: ` + n.message + `
|
|
|
9028
9028
|
v = w;
|
|
9029
9029
|
break;
|
|
9030
9030
|
case "defaultChecked":
|
|
9031
|
-
|
|
9031
|
+
z = w;
|
|
9032
9032
|
break;
|
|
9033
9033
|
case "value":
|
|
9034
9034
|
c = w;
|
|
@@ -9058,7 +9058,7 @@ Error generating stack: ` + n.message + `
|
|
|
9058
9058
|
r,
|
|
9059
9059
|
d,
|
|
9060
9060
|
v,
|
|
9061
|
-
|
|
9061
|
+
z,
|
|
9062
9062
|
i,
|
|
9063
9063
|
l
|
|
9064
9064
|
);
|
|
@@ -9203,11 +9203,11 @@ Error generating stack: ` + n.message + `
|
|
|
9203
9203
|
n,
|
|
9204
9204
|
x
|
|
9205
9205
|
);
|
|
9206
|
-
for (
|
|
9207
|
-
x = n[
|
|
9206
|
+
for (z in n)
|
|
9207
|
+
x = n[z], w = a[z], !n.hasOwnProperty(z) || x === w || x === void 0 && w === void 0 || er(
|
|
9208
9208
|
t,
|
|
9209
9209
|
e,
|
|
9210
|
-
|
|
9210
|
+
z,
|
|
9211
9211
|
x,
|
|
9212
9212
|
n,
|
|
9213
9213
|
w
|
|
@@ -9242,8 +9242,8 @@ Error generating stack: ` + n.message + `
|
|
|
9242
9242
|
for (c = 0, r = l.responseEnd, n += 1; n < a.length; n++) {
|
|
9243
9243
|
var d = a[n], v = d.startTime;
|
|
9244
9244
|
if (v > r) break;
|
|
9245
|
-
var
|
|
9246
|
-
|
|
9245
|
+
var z = d.transferSize, D = d.initiatorType;
|
|
9246
|
+
z && nd(D) && (d = d.responseEnd, c += z * (d < r ? 1 : (r - v) / (d - v)));
|
|
9247
9247
|
}
|
|
9248
9248
|
if (--n, e += 8 * (i + c) / (l.duration / 1e3), t++, 10 < t) break;
|
|
9249
9249
|
}
|
|
@@ -9600,8 +9600,8 @@ Error generating stack: ` + n.message + `
|
|
|
9600
9600
|
a
|
|
9601
9601
|
), (a = ke.get(i)) && or(t, a);
|
|
9602
9602
|
var d = c = n.createElement("link");
|
|
9603
|
-
te(d), ue(d, "link", t), d._p = new Promise(function(v,
|
|
9604
|
-
d.onload = v, d.onerror =
|
|
9603
|
+
te(d), ue(d, "link", t), d._p = new Promise(function(v, z) {
|
|
9604
|
+
d.onload = v, d.onerror = z;
|
|
9605
9605
|
}), d.addEventListener("load", function() {
|
|
9606
9606
|
r.loading |= 1;
|
|
9607
9607
|
}), d.addEventListener("error", function() {
|
|
@@ -9922,7 +9922,7 @@ Error generating stack: ` + n.message + `
|
|
|
9922
9922
|
function B0(t, e, a, n, l, i, c, r, d) {
|
|
9923
9923
|
this.tag = 1, this.containerInfo = t, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = uc(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = uc(0), this.hiddenUpdates = uc(null), this.identifierPrefix = n, this.onUncaughtError = l, this.onCaughtError = i, this.onRecoverableError = c, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = d, this.incompleteTransitions = /* @__PURE__ */ new Map();
|
|
9924
9924
|
}
|
|
9925
|
-
function Md(t, e, a, n, l, i, c, r, d, v,
|
|
9925
|
+
function Md(t, e, a, n, l, i, c, r, d, v, z, D) {
|
|
9926
9926
|
return t = new B0(
|
|
9927
9927
|
t,
|
|
9928
9928
|
e,
|
|
@@ -9930,7 +9930,7 @@ Error generating stack: ` + n.message + `
|
|
|
9930
9930
|
c,
|
|
9931
9931
|
d,
|
|
9932
9932
|
v,
|
|
9933
|
-
|
|
9933
|
+
z,
|
|
9934
9934
|
D,
|
|
9935
9935
|
r
|
|
9936
9936
|
), e = 1, i === !0 && (e |= 24), i = ze(3, null, null, e), t.current = i, i.stateNode = t, e = Fc(), e.refCount++, t.pooledCache = e, e.refCount++, i.memoizedState = {
|
|
@@ -10056,7 +10056,7 @@ Error generating stack: ` + n.message + `
|
|
|
10056
10056
|
var _i = null;
|
|
10057
10057
|
function br(t) {
|
|
10058
10058
|
if (_i = null, t = nn(t), t !== null) {
|
|
10059
|
-
var e =
|
|
10059
|
+
var e = N(t);
|
|
10060
10060
|
if (e === null) t = null;
|
|
10061
10061
|
else {
|
|
10062
10062
|
var a = e.tag;
|
|
@@ -10263,7 +10263,7 @@ Error generating stack: ` + n.message + `
|
|
|
10263
10263
|
function jd(t) {
|
|
10264
10264
|
var e = nn(t.target);
|
|
10265
10265
|
if (e !== null) {
|
|
10266
|
-
var a =
|
|
10266
|
+
var a = N(e);
|
|
10267
10267
|
if (a !== null) {
|
|
10268
10268
|
if (e = a.tag, e === 13) {
|
|
10269
10269
|
if (e = Y(a), e !== null) {
|
|
@@ -10548,7 +10548,7 @@ const $0 = X.forwardRef(
|
|
|
10548
10548
|
strokeWidth: m = 2,
|
|
10549
10549
|
absoluteStrokeWidth: f,
|
|
10550
10550
|
className: j = "",
|
|
10551
|
-
children:
|
|
10551
|
+
children: N,
|
|
10552
10552
|
iconNode: Y,
|
|
10553
10553
|
...B
|
|
10554
10554
|
}, T) => X.createElement(
|
|
@@ -10561,19 +10561,19 @@ const $0 = X.forwardRef(
|
|
|
10561
10561
|
stroke: u,
|
|
10562
10562
|
strokeWidth: f ? Number(m) * 24 / Number(s) : m,
|
|
10563
10563
|
className: dm("lucide", j),
|
|
10564
|
-
...!
|
|
10564
|
+
...!N && !_0(B) && { "aria-hidden": "true" },
|
|
10565
10565
|
...B
|
|
10566
10566
|
},
|
|
10567
10567
|
[
|
|
10568
10568
|
...Y.map(([y, k]) => X.createElement(y, k)),
|
|
10569
|
-
...Array.isArray(
|
|
10569
|
+
...Array.isArray(N) ? N : [N]
|
|
10570
10570
|
]
|
|
10571
10571
|
)
|
|
10572
10572
|
);
|
|
10573
10573
|
const _t = (u, s) => {
|
|
10574
10574
|
const m = X.forwardRef(
|
|
10575
|
-
({ className: f, ...j },
|
|
10576
|
-
ref:
|
|
10575
|
+
({ className: f, ...j }, N) => X.createElement($0, {
|
|
10576
|
+
ref: N,
|
|
10577
10577
|
iconNode: s,
|
|
10578
10578
|
className: dm(
|
|
10579
10579
|
`lucide-${V0(Fd(u))}`,
|
|
@@ -10677,7 +10677,7 @@ const Gp = [
|
|
|
10677
10677
|
"number",
|
|
10678
10678
|
"text",
|
|
10679
10679
|
"boolean"
|
|
10680
|
-
]), Hp = /* @__PURE__ */ new Set(["aggregate", "detail"]);
|
|
10680
|
+
]), Hp = /* @__PURE__ */ new Set(["aggregate", "detail", "both"]);
|
|
10681
10681
|
function Br(u) {
|
|
10682
10682
|
return !!u && typeof u == "object" && !Array.isArray(u);
|
|
10683
10683
|
}
|
|
@@ -10691,8 +10691,8 @@ function Xp(u, s) {
|
|
|
10691
10691
|
}
|
|
10692
10692
|
function kp(u) {
|
|
10693
10693
|
if (!Br(u)) return !1;
|
|
10694
|
-
const s = u.key, m = u.label, f = u.format, j = u.precision,
|
|
10695
|
-
return !!(typeof s == "string" && s.trim() && typeof m == "string" && m.trim() && typeof f == "string" && Zp.has(f) && (j === void 0 || typeof j == "number" && Number.isInteger(j) && j >= 0 && j <= 8) && (
|
|
10694
|
+
const s = u.key, m = u.label, f = u.format, j = u.precision, N = u.unit;
|
|
10695
|
+
return !!(typeof s == "string" && s.trim() && typeof m == "string" && m.trim() && typeof f == "string" && Zp.has(f) && (j === void 0 || typeof j == "number" && Number.isInteger(j) && j >= 0 && j <= 8) && (N === void 0 || typeof N == "string") && Xp(u.value, f));
|
|
10696
10696
|
}
|
|
10697
10697
|
function Lp(u) {
|
|
10698
10698
|
if (!Br(u) || u.source !== "full_result" || !Array.isArray(u.items)) return;
|
|
@@ -10707,10 +10707,10 @@ function Up(u) {
|
|
|
10707
10707
|
queryKind: m,
|
|
10708
10708
|
fieldProfileRef: f,
|
|
10709
10709
|
summary: j,
|
|
10710
|
-
...
|
|
10711
|
-
} = u, Y = Jd(s), B = Jd(m), T = B && Y && B !== Y ? void 0 : B, y = typeof f == "string" && f.trim() ? f : void 0, k = Y === "aggregate" ? Lp(j) : void 0;
|
|
10710
|
+
...N
|
|
10711
|
+
} = u, Y = Jd(s), B = Jd(m), T = B && Y && B !== Y ? void 0 : B, y = typeof f == "string" && f.trim() ? f : void 0, k = Y === "aggregate" || Y === "both" ? Lp(j) : void 0;
|
|
10712
10712
|
return {
|
|
10713
|
-
...
|
|
10713
|
+
...N,
|
|
10714
10714
|
...Y ? { resultKind: Y } : {},
|
|
10715
10715
|
...T ? { queryKind: T } : {},
|
|
10716
10716
|
...y ? { fieldProfileRef: y } : {},
|
|
@@ -10762,11 +10762,11 @@ function Er(u = {}) {
|
|
|
10762
10762
|
} catch {
|
|
10763
10763
|
throw new TypeError("accountId 包含无法编码的字符。");
|
|
10764
10764
|
}
|
|
10765
|
-
const j = f === void 0 && /^https?:\/\//.test(s) && (typeof location > "u" || new URL(s).origin !== location.origin),
|
|
10765
|
+
const j = f === void 0 && /^https?:\/\//.test(s) && (typeof location > "u" || new URL(s).origin !== location.origin), N = `zywlagent:platform-session:${s}`;
|
|
10766
10766
|
let Y = "";
|
|
10767
10767
|
if (j)
|
|
10768
10768
|
try {
|
|
10769
|
-
Y = sessionStorage.getItem(
|
|
10769
|
+
Y = sessionStorage.getItem(N) ?? "";
|
|
10770
10770
|
} catch {
|
|
10771
10771
|
}
|
|
10772
10772
|
async function B(F, lt) {
|
|
@@ -10788,7 +10788,7 @@ function Er(u = {}) {
|
|
|
10788
10788
|
if (J) {
|
|
10789
10789
|
Y = J;
|
|
10790
10790
|
try {
|
|
10791
|
-
sessionStorage.setItem(
|
|
10791
|
+
sessionStorage.setItem(N, J);
|
|
10792
10792
|
} catch {
|
|
10793
10793
|
}
|
|
10794
10794
|
} else if (ft.ok)
|
|
@@ -10855,21 +10855,21 @@ function Fp(u, s, m) {
|
|
|
10855
10855
|
"--platform-top": `${u.top}px`
|
|
10856
10856
|
};
|
|
10857
10857
|
if (m || !s) return f;
|
|
10858
|
-
const j = s.width != null && s.width !== "",
|
|
10858
|
+
const j = s.width != null && s.width !== "", N = s.height != null && s.height !== "", Y = (y) => y != null && y !== "" && y !== "auto", B = !j && Y(s.left) && Y(s.right), T = !N && Y(s.top) && Y(s.bottom);
|
|
10859
10859
|
return {
|
|
10860
10860
|
...f,
|
|
10861
10861
|
// 右侧/底部定位不能同时受默认左侧/顶部定位约束。
|
|
10862
10862
|
...!j && s.right != null && s.left == null ? { left: "auto" } : {},
|
|
10863
|
-
...!
|
|
10863
|
+
...!N && s.bottom != null && s.top == null ? { top: "auto" } : {},
|
|
10864
10864
|
...s.inset != null ? { left: "auto", top: "auto" } : {},
|
|
10865
10865
|
// 显式高度由调用方控制,可另传 maxHeight 设置上限。
|
|
10866
|
-
...
|
|
10866
|
+
...N || T ? { maxHeight: "none" } : {},
|
|
10867
10867
|
...s,
|
|
10868
10868
|
// 双侧定位时解除默认尺寸;显式尺寸分别优先于右侧和底部定位。
|
|
10869
10869
|
...B ? { width: "auto" } : {},
|
|
10870
10870
|
...T ? { height: "auto" } : {},
|
|
10871
10871
|
...j ? { right: "auto" } : {},
|
|
10872
|
-
...
|
|
10872
|
+
...N ? { bottom: "auto" } : {}
|
|
10873
10873
|
};
|
|
10874
10874
|
}
|
|
10875
10875
|
var Jp = fm();
|
|
@@ -10881,7 +10881,7 @@ function fa({
|
|
|
10881
10881
|
text: u,
|
|
10882
10882
|
className: s
|
|
10883
10883
|
}) {
|
|
10884
|
-
const m = X.useRef(null), [f, j] = X.useState(null),
|
|
10884
|
+
const m = X.useRef(null), [f, j] = X.useState(null), N = X.useCallback(() => {
|
|
10885
10885
|
const T = m.current;
|
|
10886
10886
|
if (!T || !u || T.scrollWidth <= T.clientWidth) return;
|
|
10887
10887
|
const y = T.getBoundingClientRect(), k = Math.min(
|
|
@@ -10942,7 +10942,7 @@ function fa({
|
|
|
10942
10942
|
ref: m,
|
|
10943
10943
|
className: s,
|
|
10944
10944
|
title: u,
|
|
10945
|
-
onMouseEnter:
|
|
10945
|
+
onMouseEnter: N,
|
|
10946
10946
|
onMouseLeave: Y,
|
|
10947
10947
|
children: u
|
|
10948
10948
|
}
|
|
@@ -11000,22 +11000,22 @@ function $p({
|
|
|
11000
11000
|
onCancel: m,
|
|
11001
11001
|
confirmationLabel: f,
|
|
11002
11002
|
cardId: j,
|
|
11003
|
-
locked:
|
|
11003
|
+
locked: N = !1,
|
|
11004
11004
|
lockedSelectedDockSns: Y,
|
|
11005
11005
|
lockedState: B = "confirmed",
|
|
11006
11006
|
paginationEnabled: T = !1,
|
|
11007
11007
|
selectAllEnabled: y = !1
|
|
11008
11008
|
}) {
|
|
11009
|
-
const [k, E] = X.useState([]), [q, I] = X.useState(!1), [P, ut] = X.useState(1), tt = u.candidates ?? Wp, $ = u.selectedDockSns ?? Vp, U =
|
|
11009
|
+
const [k, E] = X.useState([]), [q, I] = X.useState(!1), [P, ut] = X.useState(1), tt = u.candidates ?? Wp, $ = u.selectedDockSns ?? Vp, U = N ? Y ?? $ : k, F = tt.length > 0 && tt.every((L) => U.includes(L.dock_sn)), lt = U.length > 0 && !q && !N, ot = u.action === "terminate" || u.action === "resume", ft = u.action === "takeoff", J = u.action === "power-on" || u.action === "power-off", Zt = ["set-altitude", "set-distance", "disable-distance", "upper-avoidance", "lower-avoidance", "horizontal-avoidance"].includes(u.action), Ht = ["ground-wind", "aerial-wind", "rainfall"].includes(u.action), re = bm[u.action] ?? "执行操作", Xt = N && B === "cancelled", C = _p(u.parameters), at = Math.max(1, Math.ceil(tt.length / lc)), Tt = Math.min(P, at), kt = T ? tt.slice((Tt - 1) * lc, Tt * lc) : tt;
|
|
11010
11010
|
X.useEffect(() => {
|
|
11011
11011
|
E($), I(!1), ut(1);
|
|
11012
11012
|
}, [u.id, $]);
|
|
11013
11013
|
const M = (L) => {
|
|
11014
|
-
|
|
11014
|
+
N || E(
|
|
11015
11015
|
(it) => it.includes(L.dock_sn) ? it.filter((bt) => bt !== L.dock_sn) : [...it, L.dock_sn]
|
|
11016
11016
|
);
|
|
11017
11017
|
}, G = () => {
|
|
11018
|
-
|
|
11018
|
+
N || q || E(F ? [] : Array.from(new Set(tt.map((L) => L.dock_sn))));
|
|
11019
11019
|
};
|
|
11020
11020
|
return /* @__PURE__ */ o.jsxs("section", { "data-card-id": j, className: "mt-4 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm", children: [
|
|
11021
11021
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 bg-gradient-to-r from-slate-900 to-slate-700 px-5 py-4 text-white", children: [
|
|
@@ -11028,7 +11028,7 @@ function $p({
|
|
|
11028
11028
|
] })
|
|
11029
11029
|
] }),
|
|
11030
11030
|
/* @__PURE__ */ o.jsxs("span", { className: "rounded-full bg-white/15 px-2.5 py-1 text-xs text-slate-100", children: [
|
|
11031
|
-
|
|
11031
|
+
N ? Xt ? "已取消" : "已确认" : "已选",
|
|
11032
11032
|
" ",
|
|
11033
11033
|
U.length,
|
|
11034
11034
|
"/",
|
|
@@ -11037,13 +11037,13 @@ function $p({
|
|
|
11037
11037
|
] }),
|
|
11038
11038
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3 border-b border-slate-100 px-5 py-4 text-sm text-slate-600", children: [
|
|
11039
11039
|
/* @__PURE__ */ o.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
11040
|
-
|
|
11040
|
+
N ? Xt ? "本次操作已取消,候选目标未执行,确认内容已锁定。" : "确认已完成,所选目标与确认内容已锁定,不可再次编辑。" : ot ? "请选择要执行的飞行任务;默认均不选中。确认后将按任务并行下发,不占用机场锁。" : "请选择要执行的机场;默认均不选中。机场与无人机序列号仅展示前后四位,供人工核对。",
|
|
11041
11041
|
C ? /* @__PURE__ */ o.jsxs("p", { className: "mt-2 font-medium text-slate-700", children: [
|
|
11042
11042
|
"本次参数:",
|
|
11043
11043
|
C
|
|
11044
11044
|
] }) : null
|
|
11045
11045
|
] }),
|
|
11046
|
-
y && !
|
|
11046
|
+
y && !N && tt.length > 0 ? /* @__PURE__ */ o.jsxs(
|
|
11047
11047
|
"button",
|
|
11048
11048
|
{
|
|
11049
11049
|
type: "button",
|
|
@@ -11064,16 +11064,16 @@ function $p({
|
|
|
11064
11064
|
return /* @__PURE__ */ o.jsxs(
|
|
11065
11065
|
"div",
|
|
11066
11066
|
{
|
|
11067
|
-
role:
|
|
11068
|
-
"aria-checked":
|
|
11069
|
-
tabIndex:
|
|
11070
|
-
onClick:
|
|
11071
|
-
onKeyDown:
|
|
11067
|
+
role: N ? void 0 : "checkbox",
|
|
11068
|
+
"aria-checked": N ? void 0 : it,
|
|
11069
|
+
tabIndex: N ? void 0 : 0,
|
|
11070
|
+
onClick: N ? void 0 : () => M(L),
|
|
11071
|
+
onKeyDown: N ? void 0 : (bt) => {
|
|
11072
11072
|
(bt.key === " " || bt.key === "Enter") && (bt.preventDefault(), M(L));
|
|
11073
11073
|
},
|
|
11074
|
-
className: `flex items-center gap-3 px-5 py-4 transition-colors ${
|
|
11074
|
+
className: `flex items-center gap-3 px-5 py-4 transition-colors ${N ? "cursor-default" : "cursor-pointer hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sky-500"}`,
|
|
11075
11075
|
children: [
|
|
11076
|
-
|
|
11076
|
+
N ? null : it ? /* @__PURE__ */ o.jsx(mm, { className: "h-5 w-5 shrink-0 text-emerald-600" }) : /* @__PURE__ */ o.jsx(fp, { className: "h-5 w-5 shrink-0 text-slate-300" }),
|
|
11077
11077
|
/* @__PURE__ */ o.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
11078
11078
|
/* @__PURE__ */ o.jsx(fa, { text: L.airport_name, className: "block truncate text-sm font-semibold text-slate-800" }),
|
|
11079
11079
|
/* @__PURE__ */ o.jsx("span", { className: "mt-0.5 block break-words font-mono text-xs leading-5 text-slate-500", children: ot ? `任务编号:${L.dock_sn} · ${L.device_model}` : Ip(L) })
|
|
@@ -11096,8 +11096,8 @@ function $p({
|
|
|
11096
11096
|
/* @__PURE__ */ o.jsx("button", { type: "button", disabled: Tt === at, onClick: () => ut((L) => Math.min(at, L + 1)), className: "gis-platform-agent-card-button gis-platform-agent-card-button-secondary gis-platform-agent-page-button", "aria-label": "下一页", children: "下一页" })
|
|
11097
11097
|
] }) : null,
|
|
11098
11098
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 border-t border-slate-100 bg-slate-50 px-5 py-4", children: [
|
|
11099
|
-
/* @__PURE__ */ o.jsx("p", { className: "text-xs text-slate-600", children:
|
|
11100
|
-
|
|
11099
|
+
/* @__PURE__ */ o.jsx("p", { className: "text-xs text-slate-600", children: N ? Xt ? "本次操作已取消,未下发指令。" : "指令已完成确认,执行结果在下方统一展示。" : ot ? "确认后将按任务并行下发,不占用机场锁。" : ft ? "确认后将并行下发起飞指令,执行期间占用对应机场资源组锁。" : "确认后将并行下发指令,执行结果会在下方统一展示。" }),
|
|
11100
|
+
N ? /* @__PURE__ */ o.jsx("span", { className: `rounded-xl px-4 py-2 text-sm font-semibold ${Xt ? "bg-slate-200 text-slate-600" : "bg-emerald-50 text-emerald-700"}`, children: Xt ? "已取消" : "已确认" }) : /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2", children: [
|
|
11101
11101
|
/* @__PURE__ */ o.jsx(
|
|
11102
11102
|
"button",
|
|
11103
11103
|
{
|
|
@@ -11146,11 +11146,11 @@ function eb({
|
|
|
11146
11146
|
onConfirm: s,
|
|
11147
11147
|
onCancel: m
|
|
11148
11148
|
}) {
|
|
11149
|
-
const f = u.status !== "pending", j = u.status === "cancelled", [
|
|
11149
|
+
const f = u.status !== "pending", j = u.status === "cancelled", [N, Y] = X.useState(u.selectedCandidateId ?? null), [B, T] = X.useState(!1), [y, k] = X.useState(1);
|
|
11150
11150
|
X.useEffect(() => {
|
|
11151
11151
|
Y(u.selectedCandidateId ?? null), k(1);
|
|
11152
11152
|
}, [u.id, u.selectedCandidateId, u.status]);
|
|
11153
|
-
const E = u.candidates.find((U) => U.id ===
|
|
11153
|
+
const E = u.candidates.find((U) => U.id === N), q = u.parameters?.keyword?.trim() || "当前地点", I = !!(u.parameters?.drawing && typeof u.parameters.drawing == "object"), P = Math.max(1, Math.ceil(u.candidates.length / ic)), ut = Math.min(y, P), tt = (ut - 1) * ic, $ = u.candidates.slice(tt, tt + ic);
|
|
11154
11154
|
return /* @__PURE__ */ o.jsxs(
|
|
11155
11155
|
"section",
|
|
11156
11156
|
{
|
|
@@ -11176,7 +11176,7 @@ function eb({
|
|
|
11176
11176
|
/* @__PURE__ */ o.jsxs("fieldset", { disabled: f, className: "space-y-2 px-5 py-4", children: [
|
|
11177
11177
|
/* @__PURE__ */ o.jsx("legend", { className: "sr-only", children: "地理位置候选项,单选" }),
|
|
11178
11178
|
$.map((U, F) => {
|
|
11179
|
-
const lt =
|
|
11179
|
+
const lt = N === U.id;
|
|
11180
11180
|
return /* @__PURE__ */ o.jsxs(
|
|
11181
11181
|
"label",
|
|
11182
11182
|
{
|
|
@@ -11269,12 +11269,12 @@ function eb({
|
|
|
11269
11269
|
"button",
|
|
11270
11270
|
{
|
|
11271
11271
|
type: "button",
|
|
11272
|
-
disabled: !
|
|
11272
|
+
disabled: !N || B,
|
|
11273
11273
|
onClick: async () => {
|
|
11274
|
-
if (
|
|
11274
|
+
if (N) {
|
|
11275
11275
|
T(!0);
|
|
11276
11276
|
try {
|
|
11277
|
-
await s(
|
|
11277
|
+
await s(N);
|
|
11278
11278
|
} finally {
|
|
11279
11279
|
T(!1);
|
|
11280
11280
|
}
|
|
@@ -11306,15 +11306,15 @@ function $d(u) {
|
|
|
11306
11306
|
return ab[u.id] ?? u.name ?? u.id;
|
|
11307
11307
|
}
|
|
11308
11308
|
function lb(u) {
|
|
11309
|
-
const s = u?.drawing, m = u?.location, f = typeof s?.shape == "string" ? nb[s.shape] ?? s.shape : "图形",
|
|
11310
|
-
return typeof s?.radiusMeters == "number" &&
|
|
11309
|
+
const s = u?.drawing, m = u?.location, f = typeof s?.shape == "string" ? nb[s.shape] ?? s.shape : "图形", N = [String(m?.name ?? m?.address ?? u?.keyword ?? "已选地点"), f];
|
|
11310
|
+
return typeof s?.radiusMeters == "number" && N.push(`半径 ${s.radiusMeters} 米`), typeof s?.sideMeters == "number" && N.push(`边长 ${s.sideMeters} 米`), typeof s?.lengthMeters == "number" && N.push(`长 ${s.lengthMeters} 米`), typeof s?.widthMeters == "number" && N.push(`宽 ${s.widthMeters} 米`), typeof s?.roadName == "string" && N.push(s.roadName), N;
|
|
11311
11311
|
}
|
|
11312
11312
|
function ib({
|
|
11313
11313
|
confirmation: u,
|
|
11314
11314
|
onConfirm: s,
|
|
11315
11315
|
onCancel: m
|
|
11316
11316
|
}) {
|
|
11317
|
-
const f = u.status !== "pending", j = u.status === "cancelled", [
|
|
11317
|
+
const f = u.status !== "pending", j = u.status === "cancelled", [N, Y] = X.useState(u.selectedPurposeId ?? null), [B, T] = X.useState(!1);
|
|
11318
11318
|
X.useEffect(() => {
|
|
11319
11319
|
Y(u.selectedPurposeId ?? null);
|
|
11320
11320
|
}, [u.id, u.selectedPurposeId, u.status]);
|
|
@@ -11341,7 +11341,7 @@ function ib({
|
|
|
11341
11341
|
/* @__PURE__ */ o.jsxs("fieldset", { disabled: f, className: "space-y-2 px-5 py-4", children: [
|
|
11342
11342
|
/* @__PURE__ */ o.jsx("legend", { className: "sr-only", children: "绘制用途,单选" }),
|
|
11343
11343
|
u.candidates.map((k) => {
|
|
11344
|
-
const E =
|
|
11344
|
+
const E = N === k.id;
|
|
11345
11345
|
return /* @__PURE__ */ o.jsxs(
|
|
11346
11346
|
"label",
|
|
11347
11347
|
{
|
|
@@ -11393,12 +11393,12 @@ function ib({
|
|
|
11393
11393
|
"button",
|
|
11394
11394
|
{
|
|
11395
11395
|
type: "button",
|
|
11396
|
-
disabled: !
|
|
11396
|
+
disabled: !N || B,
|
|
11397
11397
|
onClick: async () => {
|
|
11398
|
-
if (
|
|
11398
|
+
if (N) {
|
|
11399
11399
|
T(!0);
|
|
11400
11400
|
try {
|
|
11401
|
-
await s(
|
|
11401
|
+
await s(N);
|
|
11402
11402
|
} finally {
|
|
11403
11403
|
T(!1);
|
|
11404
11404
|
}
|
|
@@ -11471,11 +11471,11 @@ function Ll(u) {
|
|
|
11471
11471
|
return Gr(u);
|
|
11472
11472
|
}
|
|
11473
11473
|
function ub(u, s, m, f, j) {
|
|
11474
|
-
const
|
|
11474
|
+
const N = m.map((Y) => {
|
|
11475
11475
|
const B = s[Y]?.find((T) => T.key === u)?.status;
|
|
11476
11476
|
return B ? Ll(B) : j ? "待执行" : "未执行";
|
|
11477
11477
|
});
|
|
11478
|
-
return
|
|
11478
|
+
return N.length ? N.every((Y) => Y === "成功") ? "成功" : N.every((Y) => Y === "失败") ? "失败" : N.every((Y) => Y === "未执行") ? "未执行" : N.some((Y) => Y === "执行中") ? "执行中" : !N.some((Y) => Y === "成功") && N.some((Y) => Y === "失败") ? "失败" : N.some((Y) => Y === "成功") ? "部分成功" : N.every((Y) => Y === "待执行") ? "待执行" : Ll(f) : Ll(f);
|
|
11479
11479
|
}
|
|
11480
11480
|
const hm = {
|
|
11481
11481
|
enable: "开启机场运维模式",
|
|
@@ -11513,8 +11513,8 @@ function ob(u, s, m, f) {
|
|
|
11513
11513
|
if (u !== "power-on") return;
|
|
11514
11514
|
const j = Math.max(
|
|
11515
11515
|
0,
|
|
11516
|
-
...m.map((
|
|
11517
|
-
const Y = s[
|
|
11516
|
+
...m.map((N) => {
|
|
11517
|
+
const Y = s[N]?.find((B) => B.key === u)?.waitUntil;
|
|
11518
11518
|
return Y ? sb(Y, f) : 0;
|
|
11519
11519
|
})
|
|
11520
11520
|
);
|
|
@@ -11526,7 +11526,7 @@ function fb({
|
|
|
11526
11526
|
steps: m,
|
|
11527
11527
|
targetSteps: f = {},
|
|
11528
11528
|
title: j,
|
|
11529
|
-
cardId:
|
|
11529
|
+
cardId: N,
|
|
11530
11530
|
operationInProgress: Y = !1
|
|
11531
11531
|
}) {
|
|
11532
11532
|
const B = u.action === "terminate" || u.action === "resume", T = u.action === "takeoff", y = u.action === "power-on" || u.action === "power-off", k = ["set-altitude", "set-distance", "disable-distance", "upper-avoidance", "lower-avoidance", "horizontal-avoidance"].includes(u.action), [E, q] = X.useState(() => Object.entries(s).find(([, at]) => at.status !== "成功")?.[0] ?? null), [I, P] = X.useState(() => Date.now()), ut = j ?? hm[u.action] ?? "执行操作", tt = X.useMemo(
|
|
@@ -11597,7 +11597,7 @@ function fb({
|
|
|
11597
11597
|
)];
|
|
11598
11598
|
})
|
|
11599
11599
|
), [F, f, tt]), re = J.findIndex((C) => C.status === "执行中"), Xt = re >= 0 ? (re + 0.5) / J.length * 100 : J.every((C) => !["待执行", "执行中"].includes(C.status)) ? 100 : J.filter((C) => C.status === "成功").length / J.length * 100;
|
|
11600
|
-
return /* @__PURE__ */ o.jsxs("section", { "data-card-id":
|
|
11600
|
+
return /* @__PURE__ */ o.jsxs("section", { "data-card-id": N, className: "mt-4 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm", children: [
|
|
11601
11601
|
/* @__PURE__ */ o.jsxs("div", { className: "bg-gradient-to-r from-slate-900 to-slate-700 px-5 py-4 text-white", children: [
|
|
11602
11602
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
11603
11603
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
@@ -11739,12 +11739,12 @@ function hb({
|
|
|
11739
11739
|
columns: m,
|
|
11740
11740
|
rows: f,
|
|
11741
11741
|
cardId: j,
|
|
11742
|
-
resultKind:
|
|
11742
|
+
resultKind: N,
|
|
11743
11743
|
queryKind: Y,
|
|
11744
11744
|
fieldProfileRef: B,
|
|
11745
11745
|
summary: T
|
|
11746
11746
|
}) {
|
|
11747
|
-
const [y, k] = X.useState(1), E = Math.max(1, Math.ceil(f.length / kl)), q = Math.min(y, E), I = (q - 1) * kl, P = f.slice(I, I + kl), ut = f.length > kl, tt =
|
|
11747
|
+
const [y, k] = X.useState(1), E = Math.max(1, Math.ceil(f.length / kl)), q = Math.min(y, E), I = (q - 1) * kl, P = f.slice(I, I + kl), ut = f.length > kl, tt = (N === "aggregate" || N === "both") && T?.source === "full_result" && Array.isArray(T.items) ? T.items.filter(gb) : [], $ = tt.some(pb);
|
|
11748
11748
|
return /* @__PURE__ */ o.jsxs("section", { "data-card-id": j, "data-field-profile-ref": B, "data-query-kind": Y, className: "gis-platform-agent-query-card overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm", children: [
|
|
11749
11749
|
/* @__PURE__ */ o.jsxs("div", { className: "gis-platform-agent-query-card-header flex flex-wrap items-center justify-between gap-3 bg-gradient-to-r from-slate-900 to-slate-700 px-5 py-4 text-white", children: [
|
|
11750
11750
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
@@ -11832,12 +11832,12 @@ function xb(u, s, m = [], f = []) {
|
|
|
11832
11832
|
return { label: "已完成", className: "bg-emerald-50 text-emerald-700" };
|
|
11833
11833
|
if (j?.status === "cancelled")
|
|
11834
11834
|
return { label: "已取消", className: "bg-slate-100 text-slate-600" };
|
|
11835
|
-
const
|
|
11836
|
-
if (
|
|
11835
|
+
const N = m.at(-1);
|
|
11836
|
+
if (N?.status === "pending")
|
|
11837
11837
|
return { label: "待确认", className: "bg-amber-50 text-amber-700" };
|
|
11838
|
-
if (
|
|
11838
|
+
if (N?.status === "confirmed")
|
|
11839
11839
|
return { label: "已完成", className: "bg-emerald-50 text-emerald-700" };
|
|
11840
|
-
if (
|
|
11840
|
+
if (N?.status === "cancelled")
|
|
11841
11841
|
return { label: "已取消", className: "bg-slate-100 text-slate-600" };
|
|
11842
11842
|
const Y = s.at(-1);
|
|
11843
11843
|
return Y?.status === "pending" ? { label: "待确认", className: "bg-amber-50 text-amber-700" } : Y?.status === "confirmed" && ["pending", "running", "in_progress"].includes(Y.operationStatus ?? "") ? { label: "执行中", className: "bg-blue-50 text-blue-700" } : Y?.status === "confirmed" && Y.operationStatus === "failed" ? { label: "失败", className: "bg-red-50 text-red-700" } : Y?.status === "confirmed" && Y.operationStatus === "partial_success" ? { label: "部分成功", className: "bg-amber-50 text-amber-700" } : Y?.status === "confirmed" ? { label: "已完成", className: "bg-emerald-50 text-emerald-700" } : Y?.status === "cancelled" ? { label: "已取消", className: "bg-slate-100 text-slate-600" } : u === "failed" ? { label: "失败", className: "bg-red-50 text-red-700" } : { label: "可继续", className: "bg-slate-100 text-slate-600" };
|
|
@@ -11929,8 +11929,8 @@ function um(u) {
|
|
|
11929
11929
|
if (!s.length || !m.length) return !1;
|
|
11930
11930
|
const f = u.targetSteps ?? {};
|
|
11931
11931
|
return m.some(
|
|
11932
|
-
(j) => s.some((
|
|
11933
|
-
const Y = f[j]?.find((B) => B.key ===
|
|
11932
|
+
(j) => s.some((N) => {
|
|
11933
|
+
const Y = f[j]?.find((B) => B.key === N.key);
|
|
11934
11934
|
return !Y || !yb.has(Y.status);
|
|
11935
11935
|
})
|
|
11936
11936
|
);
|
|
@@ -12059,8 +12059,8 @@ function Db(u, s, m = []) {
|
|
|
12059
12059
|
id: "编号",
|
|
12060
12060
|
oid: "对象编号",
|
|
12061
12061
|
name: "名称"
|
|
12062
|
-
},
|
|
12063
|
-
return (Y.length ? Y : [...
|
|
12062
|
+
}, N = new Set(u.flatMap((T) => Object.keys(T))), Y = m.filter((T) => N.has(T));
|
|
12063
|
+
return (Y.length ? Y : [...N].slice(0, 8)).map((T) => ({ key: T, label: j[T] ?? "其他数据" }));
|
|
12064
12064
|
}
|
|
12065
12065
|
function rm({ content: u }) {
|
|
12066
12066
|
const s = zb(u), m = Tb(u);
|
|
@@ -12131,7 +12131,7 @@ function Sb({
|
|
|
12131
12131
|
title: f = "智能助手",
|
|
12132
12132
|
onMapEvent: j
|
|
12133
12133
|
}) {
|
|
12134
|
-
const { cancelConfirmation:
|
|
12134
|
+
const { cancelConfirmation: N, confirmDrawingType: Y, confirmLocation: B, confirmOperation: T, getConversationSnapshot: y, sendPlatformMessage: k } = pm(), [E, q] = X.useState(""), [I, P] = X.useState([nm]), [ut, tt] = X.useState([]), [$, U] = X.useState([]), [F, lt] = X.useState([]), [ot, ft] = X.useState(""), [J, Zt] = X.useState(!1), Ht = X.useRef(null), re = X.useRef(null), Xt = X.useRef(!0), C = xb(m, ut, $, F), at = ut.map((S) => `${S.id}:${Object.keys(S.results ?? {}).length}:${Object.keys(S.targetSteps ?? {}).length}`).join("|"), Tt = $.map((S) => `${S.id}:${S.status}:${S.selectedCandidateId ?? ""}`).join("|"), kt = F.map((S) => `${S.id}:${S.status}:${S.selectedPurposeId ?? ""}`).join("|"), M = () => {
|
|
12135
12135
|
const S = re.current;
|
|
12136
12136
|
if (!S) return;
|
|
12137
12137
|
const H = S.scrollHeight - S.scrollTop - S.clientHeight;
|
|
@@ -12398,7 +12398,7 @@ function Sb({
|
|
|
12398
12398
|
},
|
|
12399
12399
|
onCancel: async () => {
|
|
12400
12400
|
try {
|
|
12401
|
-
await
|
|
12401
|
+
await N(S.id), bt(S.id, (oe) => ({
|
|
12402
12402
|
...oe,
|
|
12403
12403
|
canConfirm: !1,
|
|
12404
12404
|
selectedDockSns: [],
|
|
@@ -12461,7 +12461,7 @@ function Sb({
|
|
|
12461
12461
|
},
|
|
12462
12462
|
onCancel: async () => {
|
|
12463
12463
|
try {
|
|
12464
|
-
await
|
|
12464
|
+
await N(S.id), p(S.id, (H) => ({
|
|
12465
12465
|
...H,
|
|
12466
12466
|
canConfirm: !1,
|
|
12467
12467
|
status: "cancelled"
|
|
@@ -12504,7 +12504,7 @@ function Sb({
|
|
|
12504
12504
|
},
|
|
12505
12505
|
onCancel: async () => {
|
|
12506
12506
|
try {
|
|
12507
|
-
await
|
|
12507
|
+
await N(S.id), A(S.id, (H) => ({
|
|
12508
12508
|
...H,
|
|
12509
12509
|
canConfirm: !1,
|
|
12510
12510
|
status: "cancelled"
|
|
@@ -12588,7 +12588,7 @@ function Yb({
|
|
|
12588
12588
|
onCreate: m,
|
|
12589
12589
|
onSelect: f,
|
|
12590
12590
|
onDelete: j,
|
|
12591
|
-
onClear:
|
|
12591
|
+
onClear: N,
|
|
12592
12592
|
className: Y = ""
|
|
12593
12593
|
}) {
|
|
12594
12594
|
return /* @__PURE__ */ o.jsxs("aside", { className: `hidden w-[260px] shrink-0 flex-col border-r border-slate-200 bg-slate-50 p-4 lg:flex ${Y}`, children: [
|
|
@@ -12620,7 +12620,7 @@ function Yb({
|
|
|
12620
12620
|
type: "button",
|
|
12621
12621
|
disabled: !u.length,
|
|
12622
12622
|
onClick: () => {
|
|
12623
|
-
window.confirm("确定清空全部历史会话吗?") &&
|
|
12623
|
+
window.confirm("确定清空全部历史会话吗?") && N();
|
|
12624
12624
|
},
|
|
12625
12625
|
className: "text-xs font-medium text-slate-500 transition-colors hover:text-red-600 disabled:cursor-not-allowed disabled:text-slate-300",
|
|
12626
12626
|
children: "清空全部"
|
|
@@ -12667,10 +12667,10 @@ function Yb({
|
|
|
12667
12667
|
] });
|
|
12668
12668
|
}
|
|
12669
12669
|
function Bb() {
|
|
12670
|
-
const { clearConversations: u, createConversation: s, deleteConversation: m, listConversations: f } = pm(), [j,
|
|
12670
|
+
const { clearConversations: u, createConversation: s, deleteConversation: m, listConversations: f } = pm(), [j, N] = X.useState([]), [Y, B] = X.useState(""), [T, y] = X.useState(""), [k, E] = X.useState(!1), q = X.useRef(!1), I = X.useCallback(async () => {
|
|
12671
12671
|
try {
|
|
12672
12672
|
const $ = await f();
|
|
12673
|
-
return
|
|
12673
|
+
return N($.conversations), B((U) => U || $.conversations[0]?.id || ""), y(""), $.conversations;
|
|
12674
12674
|
} catch ($) {
|
|
12675
12675
|
return y($ instanceof Error ? $.message : "会话加载失败"), null;
|
|
12676
12676
|
} finally {
|
|
@@ -13908,19 +13908,19 @@ class Cb {
|
|
|
13908
13908
|
}
|
|
13909
13909
|
const Zb = 420;
|
|
13910
13910
|
function sm(u) {
|
|
13911
|
-
const s = window.visualViewport, m = s?.width ?? window.innerWidth, f = s?.height ?? window.innerHeight, j = s?.offsetTop ?? 0,
|
|
13911
|
+
const s = window.visualViewport, m = s?.width ?? window.innerWidth, f = s?.height ?? window.innerHeight, j = s?.offsetTop ?? 0, N = Math.min(680, Math.max(0, f - 104)), Y = u.anchorElement?.getBoundingClientRect(), B = Y ? Y.right + 12 : 340, T = Y ? Y.top : 80, y = u.position?.left ?? B, k = u.position?.top ?? T;
|
|
13912
13912
|
return {
|
|
13913
13913
|
left: om(y, 12, Math.max(12, m - Zb - 12)),
|
|
13914
|
-
top: om(k, Math.max(12, j + 12), Math.max(j + 12, j + f -
|
|
13914
|
+
top: om(k, Math.max(12, j + 12), Math.max(j + 12, j + f - N - 12))
|
|
13915
13915
|
};
|
|
13916
13916
|
}
|
|
13917
13917
|
function om(u, s, m) {
|
|
13918
13918
|
return Math.min(Math.max(u, s), m);
|
|
13919
13919
|
}
|
|
13920
13920
|
function Hb({ options: u, runtime: s }) {
|
|
13921
|
-
const m = (P) => s.subscribe(P), f = () => s.isOpen(), j = X.useSyncExternalStore(m, f, f), [
|
|
13922
|
-
|
|
13923
|
-
}, [
|
|
13921
|
+
const m = (P) => s.subscribe(P), f = () => s.isOpen(), j = X.useSyncExternalStore(m, f, f), [N, Y] = X.useState(!1), [B, T] = X.useState(!1), [y, k] = X.useState(() => sm(u)), E = Bb(), q = E.sessions.find((P) => P.id === E.activeId), I = X.useCallback(() => {
|
|
13922
|
+
N || k(sm(u));
|
|
13923
|
+
}, [N, u]);
|
|
13924
13924
|
return X.useEffect(() => (I(), window.addEventListener("resize", I), window.visualViewport?.addEventListener("resize", I), window.visualViewport?.addEventListener("scroll", I), () => {
|
|
13925
13925
|
window.removeEventListener("resize", I), window.visualViewport?.removeEventListener("resize", I), window.visualViewport?.removeEventListener("scroll", I);
|
|
13926
13926
|
}), [I]), X.useEffect(() => {
|
|
@@ -13928,10 +13928,10 @@ function Hb({ options: u, runtime: s }) {
|
|
|
13928
13928
|
}, [u, E.error]), /* @__PURE__ */ o.jsx("div", { className: "gis-platform-agent-host", style: { display: j ? void 0 : "none" }, children: /* @__PURE__ */ o.jsxs(
|
|
13929
13929
|
"section",
|
|
13930
13930
|
{
|
|
13931
|
-
className: `gis-platform-agent-panel${
|
|
13931
|
+
className: `gis-platform-agent-panel${N ? " is-expanded" : ""}`,
|
|
13932
13932
|
role: "dialog",
|
|
13933
13933
|
"aria-label": u.title ?? "智能助手",
|
|
13934
|
-
style: Fp(y, u.style,
|
|
13934
|
+
style: Fp(y, u.style, N),
|
|
13935
13935
|
children: [
|
|
13936
13936
|
/* @__PURE__ */ o.jsx(
|
|
13937
13937
|
Yb,
|
|
@@ -13977,13 +13977,13 @@ function Hb({ options: u, runtime: s }) {
|
|
|
13977
13977
|
{
|
|
13978
13978
|
type: "button",
|
|
13979
13979
|
className: "gis-platform-agent-expand",
|
|
13980
|
-
"aria-label":
|
|
13981
|
-
title:
|
|
13982
|
-
"aria-pressed":
|
|
13980
|
+
"aria-label": N ? "退出全屏" : "全屏",
|
|
13981
|
+
title: N ? "退出全屏" : "全屏",
|
|
13982
|
+
"aria-pressed": N,
|
|
13983
13983
|
onClick: () => {
|
|
13984
|
-
Y((P) => !P),
|
|
13984
|
+
Y((P) => !P), N && I();
|
|
13985
13985
|
},
|
|
13986
|
-
children:
|
|
13986
|
+
children: N ? /* @__PURE__ */ o.jsx(Np, { className: "h-4 w-4" }) : /* @__PURE__ */ o.jsx(yp, { className: "h-4 w-4" })
|
|
13987
13987
|
}
|
|
13988
13988
|
),
|
|
13989
13989
|
/* @__PURE__ */ o.jsx(
|
|
@@ -14004,11 +14004,11 @@ function Vb(u, s) {
|
|
|
14004
14004
|
if (!(u instanceof Element)) throw new TypeError("mountAgentChat 需要有效的 DOM 容器。");
|
|
14005
14005
|
const m = Er(s.platform), f = new Cb(s), j = u.ownerDocument.createElement("div");
|
|
14006
14006
|
j.dataset.agentChatInstance = "platform";
|
|
14007
|
-
const
|
|
14007
|
+
const N = j.attachShadow({ mode: "open" }), Y = u.ownerDocument.createElement("style");
|
|
14008
14008
|
Y.textContent = `${Eb}
|
|
14009
14009
|
${Gb}`;
|
|
14010
14010
|
const B = u.ownerDocument.createElement("div");
|
|
14011
|
-
|
|
14011
|
+
N.append(Y, B), u.appendChild(j);
|
|
14012
14012
|
const T = W0.createRoot(B);
|
|
14013
14013
|
T.render(/* @__PURE__ */ o.jsx(gm.Provider, { value: m, children: /* @__PURE__ */ o.jsx(Hb, { options: s, runtime: f }) }));
|
|
14014
14014
|
let y = !1;
|
package/dist/gis-agent.js
CHANGED
|
@@ -54,7 +54,7 @@ function A({
|
|
|
54
54
|
n.handle.toggle();
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
n.loading || (n.loading = import("./chunks/index-
|
|
57
|
+
n.loading || (n.loading = import("./chunks/index-pRJXomBf.js").then(({ mountAgentChat: d }) => {
|
|
58
58
|
if (!n.destroyed)
|
|
59
59
|
return n.handle = d(document.body, {
|
|
60
60
|
anchorElement: e,
|