ysyt-react-agent-lib 1.0.14 → 1.0.16

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.
@@ -1,6 +1,6 @@
1
1
  import * as r from "react";
2
- import $, { useContext as re, useRef as Z, useMemo as Ft, useEffect as De } from "react";
3
- import { s as Dt, K as Ne, R as Pe, p as je, g as se, t as kt, m as fe, f as N, r as nt, C as q, c as O, v as Ie, x as At, y as ge, k as Ce, z as _t, A as Vt, B as Wt, W as qt, G as Gt, H as Te, J as ot, L as Xt, e as R, N as ke, d as Y, a as Me, O as at, P as Ae, n as Ut, Q as _e, U as Ve, V as Kt, X as Qt, Z as K, $ as Zt, a0 as Yt, a1 as Re, a2 as Jt, a3 as lt, a4 as en, a5 as tn, l as rt, a6 as nn, a7 as on, a8 as an, a9 as ue, aa as ln, ab as st, ac as rn, ad as sn, ae as cn, af as dn, ag as un, ah as mn, ai as fn, aj as gn, ak as Cn, al as it, am as pn, an as vn } from "./index-CgpAwGZh.mjs";
2
+ import $, { useContext as re, useRef as Z, useMemo as Lt, useEffect as De } from "react";
3
+ import { i as Dt, K as Ne, b as Pe, p as je, g as se, F as kt, m as fe, u as N, r as nt, C as q, c as O, d as Ie, e as At, o as ge, f as Ce, h as _t, k as Vt, l as Wt, W as qt, n as Gt, B as Te, q as ot, s as Xt, _ as R, t as ke, v as Y, w as Me, x as at, y as Ae, z as Ut, A as _e, D as Ve, P as Kt, G as Qt, H as K, J as Zt, L as Yt, N as Re, O as Jt, Q as lt, T as en, U as tn, V as rt, X as nn, Z as on, $ as an, a0 as ue, a1 as ln, a2 as st, a3 as rn, a4 as sn, a5 as cn, a6 as dn, a7 as un, a8 as mn, a9 as fn, aa as gn, ab as Cn, ac as it, ad as pn, ae as vn } from "./index-nbd4NOcg.mjs";
4
4
  const bn = new Ne("antFadeIn", {
5
5
  "0%": {
6
6
  opacity: 0
@@ -301,25 +301,25 @@ const In = /* @__PURE__ */ r.forwardRef((e, t) => {
301
301
  }, [u]);
302
302
  const x = _t(i), E = Vt(i), w = x || E, S = Object.assign(Object.assign({
303
303
  backgroundColor: i && !w ? i : void 0
304
- }, g == null ? void 0 : g.style), l), h = p("tag", o), [I, j, F] = dt(h), H = O(h, g == null ? void 0 : g.className, {
304
+ }, g == null ? void 0 : g.style), l), h = p("tag", o), [I, j, L] = dt(h), H = O(h, g == null ? void 0 : g.className, {
305
305
  [`${h}-${i}`]: w,
306
306
  [`${h}-has-color`]: i && !w,
307
307
  [`${h}-hidden`]: !C,
308
308
  [`${h}-rtl`]: y === "rtl",
309
309
  [`${h}-borderless`]: !c
310
- }, n, a, j, F), L = (T) => {
310
+ }, n, a, j, L), F = (T) => {
311
311
  T.stopPropagation(), f == null || f(T), !T.defaultPrevented && b(!1);
312
312
  }, [, X] = ct(me(e), me(g), {
313
313
  closable: !1,
314
314
  closeIconRender: (T) => {
315
315
  const J = /* @__PURE__ */ r.createElement("span", {
316
316
  className: `${h}-close-icon`,
317
- onClick: L
317
+ onClick: F
318
318
  }, T);
319
319
  return Wt(T, J, (B) => ({
320
320
  onClick: (U) => {
321
321
  var z;
322
- (z = B == null ? void 0 : B.onClick) === null || z === void 0 || z.call(B, U), L(U);
322
+ (z = B == null ? void 0 : B.onClick) === null || z === void 0 || z.call(B, U), F(U);
323
323
  },
324
324
  className: O(B == null ? void 0 : B.className, `${h}-close-icon`)
325
325
  }));
@@ -488,7 +488,7 @@ var Rn = {
488
488
  }, Bn = {
489
489
  outline: "none"
490
490
  }, He = /* @__PURE__ */ $.forwardRef(function(e, t) {
491
- var o = e.prefixCls, n = e.className, a = e.style, l = e.title, s = e.ariaId, d = e.footer, i = e.closable, f = e.closeIcon, c = e.onClose, u = e.children, m = e.bodyStyle, p = e.bodyProps, y = e.modalRender, g = e.onMouseDown, C = e.onMouseUp, b = e.holderRef, v = e.visible, x = e.forceRender, E = e.width, w = e.height, S = e.classNames, h = e.styles, I = $.useContext(gt), j = I.panel, F = Xt(b, j), H = Z(), L = Z();
491
+ var o = e.prefixCls, n = e.className, a = e.style, l = e.title, s = e.ariaId, d = e.footer, i = e.closable, f = e.closeIcon, c = e.onClose, u = e.children, m = e.bodyStyle, p = e.bodyProps, y = e.modalRender, g = e.onMouseDown, C = e.onMouseUp, b = e.holderRef, v = e.visible, x = e.forceRender, E = e.width, w = e.height, S = e.classNames, h = e.styles, I = $.useContext(gt), j = I.panel, L = Xt(b, j), H = Z(), F = Z();
492
492
  $.useImperativeHandle(t, function() {
493
493
  return {
494
494
  focus: function() {
@@ -499,9 +499,9 @@ var Rn = {
499
499
  },
500
500
  changeActive: function(z) {
501
501
  var ae = document, Q = ae.activeElement;
502
- z && Q === L.current ? H.current.focus({
502
+ z && Q === F.current ? H.current.focus({
503
503
  preventScroll: !0
504
- }) : !z && Q === H.current && L.current.focus({
504
+ }) : !z && Q === H.current && F.current.focus({
505
505
  preventScroll: !0
506
506
  });
507
507
  }
@@ -518,7 +518,7 @@ var Rn = {
518
518
  }, /* @__PURE__ */ $.createElement("div", {
519
519
  className: "".concat(o, "-title"),
520
520
  id: s
521
- }, l)) : null, W = Ft(function() {
521
+ }, l)) : null, W = Lt(function() {
522
522
  return ke(i) === "object" && i !== null ? i : i ? {
523
523
  closeIcon: f ?? /* @__PURE__ */ $.createElement("span", {
524
524
  className: "".concat(o, "-close-x")
@@ -543,7 +543,7 @@ var Rn = {
543
543
  role: "dialog",
544
544
  "aria-labelledby": l ? s : null,
545
545
  "aria-modal": "true",
546
- ref: F,
546
+ ref: L,
547
547
  style: R(R({}, a), X),
548
548
  className: O(o, n),
549
549
  onMouseDown: g,
@@ -556,7 +556,7 @@ var Rn = {
556
556
  shouldUpdate: v || x
557
557
  }, y ? y(B) : B)), /* @__PURE__ */ $.createElement("div", {
558
558
  tabIndex: 0,
559
- ref: L,
559
+ ref: F,
560
560
  style: Rn
561
561
  }));
562
562
  });
@@ -607,7 +607,7 @@ var zn = function(t) {
607
607
  }, l));
608
608
  });
609
609
  }, Hn = function(t) {
610
- var o = t.prefixCls, n = o === void 0 ? "rc-dialog" : o, a = t.zIndex, l = t.visible, s = l === void 0 ? !1 : l, d = t.keyboard, i = d === void 0 ? !0 : d, f = t.focusTriggerAfterClose, c = f === void 0 ? !0 : f, u = t.wrapStyle, m = t.wrapClassName, p = t.wrapProps, y = t.onClose, g = t.afterOpenChange, C = t.afterClose, b = t.transitionName, v = t.animation, x = t.closable, E = x === void 0 ? !0 : x, w = t.mask, S = w === void 0 ? !0 : w, h = t.maskTransitionName, I = t.maskAnimation, j = t.maskClosable, F = j === void 0 ? !0 : j, H = t.maskStyle, L = t.maskProps, X = t.rootClassName, k = t.classNames, D = t.styles;
610
+ var o = t.prefixCls, n = o === void 0 ? "rc-dialog" : o, a = t.zIndex, l = t.visible, s = l === void 0 ? !1 : l, d = t.keyboard, i = d === void 0 ? !0 : d, f = t.focusTriggerAfterClose, c = f === void 0 ? !0 : f, u = t.wrapStyle, m = t.wrapClassName, p = t.wrapProps, y = t.onClose, g = t.afterOpenChange, C = t.afterClose, b = t.transitionName, v = t.animation, x = t.closable, E = x === void 0 ? !0 : x, w = t.mask, S = w === void 0 ? !0 : w, h = t.maskTransitionName, I = t.maskAnimation, j = t.maskClosable, L = j === void 0 ? !0 : j, H = t.maskStyle, F = t.maskProps, X = t.rootClassName, k = t.classNames, D = t.styles;
611
611
  process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(P) {
612
612
  Ae(!(P in t), "".concat(P, " is deprecated, please use styles instead."));
613
613
  }), "wrapClassName" in t && Ae(!1, "wrapClassName is deprecated, please use classNames instead."));
@@ -647,8 +647,8 @@ var zn = function(t) {
647
647
  le.current = setTimeout(function() {
648
648
  V.current = !1;
649
649
  });
650
- }, Fe = null;
651
- F && (Fe = function(he) {
650
+ }, Le = null;
651
+ L && (Le = function(he) {
652
652
  V.current ? V.current = !1 : A.current === he.target && M(he);
653
653
  });
654
654
  function Ht(P) {
@@ -665,7 +665,7 @@ var zn = function(t) {
665
665
  clearTimeout(le.current);
666
666
  };
667
667
  }, []);
668
- var Lt = R(R(R({
668
+ var Ft = R(R(R({
669
669
  zIndex: a
670
670
  }, u), D == null ? void 0 : D.wrapper), {}, {
671
671
  display: U ? null : "none"
@@ -681,15 +681,15 @@ var zn = function(t) {
681
681
  style: R(R({
682
682
  zIndex: a
683
683
  }, H), D == null ? void 0 : D.mask),
684
- maskProps: L,
684
+ maskProps: F,
685
685
  className: k == null ? void 0 : k.mask
686
686
  }), /* @__PURE__ */ r.createElement("div", Y({
687
687
  tabIndex: -1,
688
688
  onKeyDown: Ht,
689
689
  className: O("".concat(n, "-wrap"), m, k == null ? void 0 : k.wrapper),
690
690
  ref: A,
691
- onClick: Fe,
692
- style: Lt
691
+ onClick: Le,
692
+ style: Ft
693
693
  }, p), /* @__PURE__ */ r.createElement(Ct, Y({}, t, {
694
694
  onMouseDown: Bt,
695
695
  onMouseUp: zt,
@@ -725,7 +725,7 @@ var zn = function(t) {
725
725
  }))));
726
726
  };
727
727
  pt.displayName = "Dialog";
728
- const Ln = () => Qt() && window.document.documentElement, pe = (e) => {
728
+ const Fn = () => Qt() && window.document.documentElement, pe = (e) => {
729
729
  const {
730
730
  prefixCls: t,
731
731
  className: o,
@@ -748,7 +748,7 @@ const Ln = () => Qt() && window.document.documentElement, pe = (e) => {
748
748
  className: O(t, s, d, o),
749
749
  style: Object.assign(Object.assign({}, i), n)
750
750
  });
751
- }, Fn = new Ne("ant-skeleton-loading", {
751
+ }, Ln = new Ne("ant-skeleton-loading", {
752
752
  "0%": {
753
753
  backgroundPosition: "100% 50%"
754
754
  },
@@ -763,7 +763,7 @@ const Ln = () => Qt() && window.document.documentElement, pe = (e) => {
763
763
  }, ve(e)), Dn = (e) => ({
764
764
  background: e.skeletonLoadingBackground,
765
765
  backgroundSize: "400% 100%",
766
- animationName: Fn,
766
+ animationName: Ln,
767
767
  animationDuration: e.skeletonLoadingMotionDuration,
768
768
  animationTimingFunction: "ease",
769
769
  animationIterationCount: "infinite"
@@ -1231,32 +1231,32 @@ const te = (e) => {
1231
1231
  const E = !!d, w = !!i, S = !!f;
1232
1232
  let h;
1233
1233
  if (E) {
1234
- const F = Object.assign(Object.assign({
1234
+ const L = Object.assign(Object.assign({
1235
1235
  prefixCls: `${C}-avatar`
1236
1236
  }, to(w, S)), Oe(d));
1237
1237
  h = /* @__PURE__ */ r.createElement("div", {
1238
1238
  className: `${C}-header`
1239
- }, /* @__PURE__ */ r.createElement(pe, Object.assign({}, F)));
1239
+ }, /* @__PURE__ */ r.createElement(pe, Object.assign({}, L)));
1240
1240
  }
1241
1241
  let I;
1242
1242
  if (w || S) {
1243
- let F;
1243
+ let L;
1244
1244
  if (w) {
1245
- const L = Object.assign(Object.assign({
1245
+ const F = Object.assign(Object.assign({
1246
1246
  prefixCls: `${C}-title`
1247
1247
  }, no(E, S)), Oe(i));
1248
- F = /* @__PURE__ */ r.createElement(eo, Object.assign({}, L));
1248
+ L = /* @__PURE__ */ r.createElement(eo, Object.assign({}, F));
1249
1249
  }
1250
1250
  let H;
1251
1251
  if (S) {
1252
- const L = Object.assign(Object.assign({
1252
+ const F = Object.assign(Object.assign({
1253
1253
  prefixCls: `${C}-paragraph`
1254
1254
  }, oo(E, w)), Oe(f));
1255
- H = /* @__PURE__ */ r.createElement(Jn, Object.assign({}, L));
1255
+ H = /* @__PURE__ */ r.createElement(Jn, Object.assign({}, F));
1256
1256
  }
1257
1257
  I = /* @__PURE__ */ r.createElement("div", {
1258
1258
  className: `${C}-content`
1259
- }, F, H);
1259
+ }, L, H);
1260
1260
  }
1261
1261
  const j = O(C, {
1262
1262
  [`${C}-with-avatar`]: E,
@@ -1780,7 +1780,7 @@ const bo = (e) => {
1780
1780
  we = null;
1781
1781
  }, 100);
1782
1782
  };
1783
- Ln() && document.documentElement.addEventListener("click", bo, !0);
1783
+ Fn() && document.documentElement.addEventListener("click", bo, !0);
1784
1784
  const St = (e) => {
1785
1785
  var t;
1786
1786
  const {
@@ -1824,7 +1824,7 @@ const St = (e) => {
1824
1824
  styles: w,
1825
1825
  children: S,
1826
1826
  loading: h
1827
- } = e, I = vo(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), j = n("modal", i), F = n(), H = rt(j), [L, X, k] = xt(j, H), D = O(m, {
1827
+ } = e, I = vo(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), j = n("modal", i), L = n(), H = rt(j), [F, X, k] = xt(j, H), D = O(m, {
1828
1828
  [`${j}-centered`]: p ?? (l == null ? void 0 : l.centered),
1829
1829
  [`${j}-wrap-rtl`]: a === "rtl"
1830
1830
  }), W = x !== null && !h ? /* @__PURE__ */ r.createElement(bt, Object.assign({}, e, {
@@ -1843,7 +1843,7 @@ const St = (e) => {
1843
1843
  V !== void 0 && (_[`--${j}-${M}-width`] = typeof V == "number" ? `${V}px` : V);
1844
1844
  }), _;
1845
1845
  }, [Q]);
1846
- return L(/* @__PURE__ */ r.createElement(on, {
1846
+ return F(/* @__PURE__ */ r.createElement(on, {
1847
1847
  form: !0,
1848
1848
  space: !0
1849
1849
  }, /* @__PURE__ */ r.createElement(an.Provider, {
@@ -1865,8 +1865,8 @@ const St = (e) => {
1865
1865
  },
1866
1866
  closeIcon: T,
1867
1867
  focusTriggerAfterClose: g,
1868
- transitionName: ue(F, "zoom", e.transitionName),
1869
- maskTransitionName: ue(F, "fade", e.maskTransitionName),
1868
+ transitionName: ue(L, "zoom", e.transitionName),
1869
+ maskTransitionName: ue(L, "fade", e.maskTransitionName),
1870
1870
  className: O(X, f, l == null ? void 0 : l.className),
1871
1871
  style: Object.assign(Object.assign(Object.assign({}, l == null ? void 0 : l.style), C), be),
1872
1872
  classNames: Object.assign(Object.assign(Object.assign({}, l == null ? void 0 : l.classNames), E), {
@@ -2094,7 +2094,7 @@ const Et = (e) => {
2094
2094
  }), /* @__PURE__ */ r.createElement(Ot, Object.assign({}, e, {
2095
2095
  confirmPrefixCls: m
2096
2096
  })));
2097
- }, Le = (e) => {
2097
+ }, Fe = (e) => {
2098
2098
  const {
2099
2099
  rootPrefixCls: t,
2100
2100
  iconPrefixCls: o,
@@ -2108,7 +2108,7 @@ const Et = (e) => {
2108
2108
  theme: a
2109
2109
  }, /* @__PURE__ */ r.createElement(Et, Object.assign({}, e)));
2110
2110
  };
2111
- process.env.NODE_ENV !== "production" && (Et.displayName = "ConfirmDialog", Le.displayName = "ConfirmDialogWrapper");
2111
+ process.env.NODE_ENV !== "production" && (Et.displayName = "ConfirmDialog", Fe.displayName = "ConfirmDialogWrapper");
2112
2112
  const ee = [];
2113
2113
  let wt = "";
2114
2114
  function Nt() {
@@ -2122,7 +2122,7 @@ const xo = (e) => {
2122
2122
  direction: l
2123
2123
  } = e, s = lt(), d = re(q), i = Nt() || d.getPrefixCls(), f = n || `${i}-modal`;
2124
2124
  let c = a;
2125
- return c === !1 && (c = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && it(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ $.createElement(Le, Object.assign({}, e, {
2125
+ return c === !1 && (c = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && it(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ $.createElement(Fe, Object.assign({}, e, {
2126
2126
  rootPrefixCls: i,
2127
2127
  prefixCls: f,
2128
2128
  iconPrefixCls: d.iconPrefixCls,
@@ -2300,7 +2300,7 @@ const jo = (e, t) => {
2300
2300
  }
2301
2301
  }));
2302
2302
  const C = (o = i.okCancel) !== null && o !== void 0 ? o : i.type === "confirm", [b] = Re("Modal", vn.Modal);
2303
- return /* @__PURE__ */ r.createElement(Le, Object.assign({
2303
+ return /* @__PURE__ */ r.createElement(Fe, Object.assign({
2304
2304
  prefixCls: m,
2305
2305
  rootPrefixCls: p
2306
2306
  }, i, {
@@ -1,4 +1,4 @@
1
- "use strict";const b=require("react"),a=require("./index-Buw29L62.js");function st(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=st(b),it=new a.Keyframe("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ct=new a.Keyframe("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),dt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:o}=e,n=`${o}-fade`,r=t?"&":"";return[a.initMotion(n,it,ct,e.motionDurationMid,t),{[`
1
+ "use strict";const b=require("react"),a=require("./index-B7SvH9mb.js");function st(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=st(b),it=new a.Keyframe("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ct=new a.Keyframe("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),dt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:o}=e,n=`${o}-fade`,r=t?"&":"";return[a.initMotion(n,it,ct,e.motionDurationMid,t),{[`
2
2
  ${r}${n}-enter,
3
3
  ${r}${n}-appear
4
4
  `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${n}-leave`]:{animationTimingFunction:"linear"}}]};function oe(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function $e(e){const{closable:t,closeIcon:o}=e||{};return b.useMemo(()=>{if(!t&&(t===!1||o===!1||o===null))return!1;if(t===void 0&&o===void 0)return null;let n={closeIcon:typeof o!="boolean"&&o!==null?o:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,o])}function xe(){const e={};for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return o.forEach(r=>{r&&Object.keys(r).forEach(l=>{r[l]!==void 0&&(e[l]=r[l])})}),e}const ut={};function Re(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ut;const n=$e(e),r=$e(t),l=typeof n!="boolean"?!!(n!=null&&n.disabled):!1,i=b.useMemo(()=>Object.assign({closeIcon:b.createElement(a.RefIcon,null)},o),[o]),u=b.useMemo(()=>n===!1?!1:n?xe(i,r,n):r===!1?!1:r?xe(i,r):i.closable?i:!1,[n,r,i]);return b.useMemo(()=>{if(u===!1)return[!1,null,l];const{closeIconRender:c}=i,{closeIcon:g}=u;let d=g;if(d!=null){c&&(d=c(g));const m=a.pickAttrs(u,!0);Object.keys(m).length&&(d=b.isValidElement(d)?b.cloneElement(d,m):b.createElement("span",Object.assign({},m),d))}return[!0,d,l]},[u,i])}const mt=e=>{const{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:n,componentCls:r,calc:l}=e,i=l(n).sub(o).equal(),u=l(t).sub(o).equal();return{[r]:Object.assign(Object.assign({},a.resetComponent(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${a.unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Ce=e=>{const{lineWidth:t,fontSizeIcon:o,calc:n}=e,r=e.fontSizeSM;return a.merge(e,{tagFontSize:r,tagLineHeight:a.unit(n(e.lineHeightSM).mul(r).equal()),tagIconSize:n(o).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pe=e=>({defaultBg:new a.FastColor(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Be=a.genStyleHooks("Tag",e=>{const t=Ce(e);return mt(t)},pe);var ft=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const gt=s.forwardRef((e,t)=>{const{prefixCls:o,style:n,className:r,checked:l,onChange:i,onClick:u}=e,c=ft(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:g,tag:d}=s.useContext(a.ConfigContext),m=y=>{i==null||i(!l),u==null||u(y)},f=g("tag",o),[v,x,C]=Be(f),p=a.classNames(f,`${f}-checkable`,{[`${f}-checkable-checked`]:l},d==null?void 0:d.className,r,x,C);return v(s.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},n),d==null?void 0:d.style),className:p,onClick:m})))}),Ct=e=>a.genPresetColor(e,(t,o)=>{let{textColor:n,lightBorderColor:r,lightColor:l,darkColor:i}=o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:l,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),pt=a.genSubStyleComponent(["Tag","preset"],e=>{const t=Ce(e);return Ct(t)},pe);function bt(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const ne=(e,t,o)=>{const n=bt(o);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},vt=a.genSubStyleComponent(["Tag","status"],e=>{const t=Ce(e);return[ne(t,"success","Success"),ne(t,"processing","Info"),ne(t,"error","Error"),ne(t,"warning","Warning")]},pe);var ht=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};const yt=s.forwardRef((e,t)=>{const{prefixCls:o,className:n,rootClassName:r,style:l,children:i,icon:u,color:c,onClose:g,bordered:d=!0,visible:m}=e,f=ht(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:x,tag:C}=s.useContext(a.ConfigContext),[p,y]=s.useState(!0),h=a.omit(f,["closeIcon","closable"]);process.env.NODE_ENV!=="production"&&a.devUseWarning("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),s.useEffect(()=>{m!==void 0&&y(m)},[m]);const S=a.isPresetColor(c),N=a.isPresetStatusColor(c),E=S||N,O=Object.assign(Object.assign({backgroundColor:c&&!E?c:void 0},C==null?void 0:C.style),l),$=v("tag",o),[P,j,H]=Be($),B=a.classNames($,C==null?void 0:C.className,{[`${$}-${c}`]:E,[`${$}-has-color`]:c&&!E,[`${$}-hidden`]:!p,[`${$}-rtl`]:x==="rtl",[`${$}-borderless`]:!d},n,r,j,H),_=I=>{I.stopPropagation(),g==null||g(I),!I.defaultPrevented&&y(!1)},[,V]=Re(oe(e),oe(C),{closable:!1,closeIconRender:I=>{const X=s.createElement("span",{className:`${$}-close-icon`,onClick:_},I);return a.replaceElement(I,X,M=>({onClick:q=>{var R;(R=M==null?void 0:M.onClick)===null||R===void 0||R.call(M,q),_(q)},className:a.classNames(M==null?void 0:M.className,`${$}-close-icon`)}))}}),A=typeof f.onClick=="function"||i&&i.type==="a",z=u||null,W=z?s.createElement(s.Fragment,null,z,i&&s.createElement("span",null,i)):i,L=s.createElement("span",Object.assign({},h,{ref:t,className:B,style:O}),W,V,S&&s.createElement(pt,{key:"preset",prefixCls:$}),N&&s.createElement(vt,{key:"status",prefixCls:$}));return P(A?s.createElement(a.Wave,{component:"Tag"},L):L)}),be=yt;process.env.NODE_ENV!=="production"&&(be.displayName="Tag");be.CheckableTag=gt;function ie(e){return!!(e!=null&&e.then)}const _e=e=>{const{type:t,children:o,prefixCls:n,buttonProps:r,close:l,autoFocus:i,emitEvent:u,isSilent:c,quitOnNullishReturnValue:g,actionFn:d}=e,m=s.useRef(!1),f=s.useRef(null),[v,x]=a.useSafeState(!1),C=function(){l==null||l.apply(void 0,arguments)};s.useEffect(()=>{let h=null;return i&&(h=setTimeout(()=>{var S;(S=f.current)===null||S===void 0||S.focus({preventScroll:!0})})),()=>{h&&clearTimeout(h)}},[]);const p=h=>{ie(h)&&(x(!0),h.then(function(){x(!1,!0),C.apply(void 0,arguments),m.current=!1},S=>{if(x(!1,!0),m.current=!1,!(c!=null&&c()))return Promise.reject(S)}))},y=h=>{if(m.current)return;if(m.current=!0,!d){C();return}let S;if(u){if(S=d(h),g&&!ie(S)){m.current=!1,C(h);return}}else if(d.length)S=d(l),m.current=!1;else if(S=d(),!ie(S)){C();return}p(S)};return s.createElement(a.Button,Object.assign({},a.convertLegacyProps(t),{onClick:y,loading:v,prefixCls:n},r,{ref:f}),o)},ee=b.createContext({}),{Provider:He}=ee,Se=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:n,mergedOkCancel:r,rootPrefixCls:l,close:i,onCancel:u,onConfirm:c}=b.useContext(ee);return r?b.createElement(_e,{isSilent:n,actionFn:u,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},o):null},Oe=()=>{const{autoFocusButton:e,close:t,isSilent:o,okButtonProps:n,rootPrefixCls:r,okTextLocale:l,okType:i,onConfirm:u,onOk:c}=b.useContext(ee);return b.createElement(_e,{isSilent:o,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),u==null||u(!0)},autoFocus:e==="ok",buttonProps:n,prefixCls:`${r}-btn`},l)};var ze=s.createContext({});function Ne(e,t,o){var n=t;return!n&&o&&(n="".concat(e,"-").concat(o)),n}function Ee(e,t){var o=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof o!="number"){var r=e.document;o=r.documentElement[n],typeof o!="number"&&(o=r.body[n])}return o}function $t(e){var t=e.getBoundingClientRect(),o={left:t.left,top:t.top},n=e.ownerDocument,r=n.defaultView||n.parentWindow;return o.left+=Ee(r),o.top+=Ee(r,!0),o}const xt=s.memo(function(e){var t=e.children;return t},function(e,t){var o=t.shouldUpdate;return!o});var St={width:0,height:0,overflow:"hidden",outline:"none"},Ot={outline:"none"},ve=b.forwardRef(function(e,t){var o=e.prefixCls,n=e.className,r=e.style,l=e.title,i=e.ariaId,u=e.footer,c=e.closable,g=e.closeIcon,d=e.onClose,m=e.children,f=e.bodyStyle,v=e.bodyProps,x=e.modalRender,C=e.onMouseDown,p=e.onMouseUp,y=e.holderRef,h=e.visible,S=e.forceRender,N=e.width,E=e.height,O=e.classNames,$=e.styles,P=b.useContext(ze),j=P.panel,H=a.useComposeRef(y,j),B=b.useRef(),_=b.useRef();b.useImperativeHandle(t,function(){return{focus:function(){var R;(R=B.current)===null||R===void 0||R.focus({preventScroll:!0})},changeActive:function(R){var Y=document,G=Y.activeElement;R&&G===_.current?B.current.focus({preventScroll:!0}):!R&&G===B.current&&_.current.focus({preventScroll:!0})}}});var V={};N!==void 0&&(V.width=N),E!==void 0&&(V.height=E);var A=u?b.createElement("div",{className:a.classNames("".concat(o,"-footer"),O==null?void 0:O.footer),style:a._objectSpread2({},$==null?void 0:$.footer)},u):null,z=l?b.createElement("div",{className:a.classNames("".concat(o,"-header"),O==null?void 0:O.header),style:a._objectSpread2({},$==null?void 0:$.header)},b.createElement("div",{className:"".concat(o,"-title"),id:i},l)):null,W=b.useMemo(function(){return a._typeof(c)==="object"&&c!==null?c:c?{closeIcon:g??b.createElement("span",{className:"".concat(o,"-close-x")})}:{}},[c,g,o]),L=a.pickAttrs(W,!0),I=a._typeof(c)==="object"&&c.disabled,X=c?b.createElement("button",a._extends({type:"button",onClick:d,"aria-label":"Close"},L,{className:"".concat(o,"-close"),disabled:I}),W.closeIcon):null,M=b.createElement("div",{className:a.classNames("".concat(o,"-content"),O==null?void 0:O.content),style:$==null?void 0:$.content},X,z,b.createElement("div",a._extends({className:a.classNames("".concat(o,"-body"),O==null?void 0:O.body),style:a._objectSpread2(a._objectSpread2({},f),$==null?void 0:$.body)},v),m),A);return b.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?i:null,"aria-modal":"true",ref:H,style:a._objectSpread2(a._objectSpread2({},r),V),className:a.classNames(o,n),onMouseDown:C,onMouseUp:p},b.createElement("div",{ref:B,tabIndex:0,style:Ot},b.createElement(xt,{shouldUpdate:h||S},x?x(M):M)),b.createElement("div",{tabIndex:0,ref:_,style:St}))});process.env.NODE_ENV!=="production"&&(ve.displayName="Panel");var Ae=s.forwardRef(function(e,t){var o=e.prefixCls,n=e.title,r=e.style,l=e.className,i=e.visible,u=e.forceRender,c=e.destroyOnClose,g=e.motionName,d=e.ariaId,m=e.onVisibleChanged,f=e.mousePosition,v=b.useRef(),x=s.useState(),C=a._slicedToArray(x,2),p=C[0],y=C[1],h={};p&&(h.transformOrigin=p);function S(){var N=$t(v.current);y(f&&(f.x||f.y)?"".concat(f.x-N.left,"px ").concat(f.y-N.top,"px"):"")}return s.createElement(a.CSSMotion,{visible:i,onVisibleChanged:m,onAppearPrepare:S,onEnterPrepare:S,forceRender:u,motionName:g,removeOnLeave:c,ref:v},function(N,E){var O=N.className,$=N.style;return s.createElement(ve,a._extends({},e,{ref:t,title:n,ariaId:d,prefixCls:o,holderRef:E,style:a._objectSpread2(a._objectSpread2(a._objectSpread2({},$),r),h),className:a.classNames(l,O)}))})});Ae.displayName="Content";var Nt=function(t){var o=t.prefixCls,n=t.style,r=t.visible,l=t.maskProps,i=t.motionName,u=t.className;return s.createElement(a.CSSMotion,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(o,"-mask-hidden")},function(c,g){var d=c.className,m=c.style;return s.createElement("div",a._extends({ref:g,style:a._objectSpread2(a._objectSpread2({},m),n),className:a.classNames("".concat(o,"-mask"),d,u)},l))})},Et=function(t){var o=t.prefixCls,n=o===void 0?"rc-dialog":o,r=t.zIndex,l=t.visible,i=l===void 0?!1:l,u=t.keyboard,c=u===void 0?!0:u,g=t.focusTriggerAfterClose,d=g===void 0?!0:g,m=t.wrapStyle,f=t.wrapClassName,v=t.wrapProps,x=t.onClose,C=t.afterOpenChange,p=t.afterClose,y=t.transitionName,h=t.animation,S=t.closable,N=S===void 0?!0:S,E=t.mask,O=E===void 0?!0:E,$=t.maskTransitionName,P=t.maskAnimation,j=t.maskClosable,H=j===void 0?!0:j,B=t.maskStyle,_=t.maskProps,V=t.rootClassName,A=t.classNames,z=t.styles;process.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(w){a.warning(!(w in t),"".concat(w," is deprecated, please use styles instead."))}),"wrapClassName"in t&&a.warning(!1,"wrapClassName is deprecated, please use classNames instead."));var W=b.useRef(),L=b.useRef(),I=b.useRef(),X=s.useState(i),M=a._slicedToArray(X,2),q=M[0],R=M[1],Y=a.useId();function G(){a.contains(L.current,document.activeElement)||(W.current=document.activeElement)}function le(){if(!a.contains(L.current,document.activeElement)){var w;(w=I.current)===null||w===void 0||w.focus()}}function k(w){if(w)le();else{if(R(!1),O&&W.current&&d){try{W.current.focus({preventScroll:!0})}catch{}W.current=null}q&&(p==null||p())}C==null||C(w)}function T(w){x==null||x(w)}var D=b.useRef(!1),J=b.useRef(),ot=function(){clearTimeout(J.current),D.current=!0},at=function(){J.current=setTimeout(function(){D.current=!1})},ye=null;H&&(ye=function(se){D.current?D.current=!1:L.current===se.target&&T(se)});function rt(w){if(c&&w.keyCode===a.KeyCode.ESC){w.stopPropagation(),T(w);return}i&&w.keyCode===a.KeyCode.TAB&&I.current.changeActive(!w.shiftKey)}b.useEffect(function(){i&&(R(!0),G())},[i]),b.useEffect(function(){return function(){clearTimeout(J.current)}},[]);var lt=a._objectSpread2(a._objectSpread2(a._objectSpread2({zIndex:r},m),z==null?void 0:z.wrapper),{},{display:q?null:"none"});return s.createElement("div",a._extends({className:a.classNames("".concat(n,"-root"),V)},a.pickAttrs(t,{data:!0})),s.createElement(Nt,{prefixCls:n,visible:O&&i,motionName:Ne(n,$,P),style:a._objectSpread2(a._objectSpread2({zIndex:r},B),z==null?void 0:z.mask),maskProps:_,className:A==null?void 0:A.mask}),s.createElement("div",a._extends({tabIndex:-1,onKeyDown:rt,className:a.classNames("".concat(n,"-wrap"),f,A==null?void 0:A.wrapper),ref:L,onClick:ye,style:lt},v),s.createElement(Ae,a._extends({},t,{onMouseDown:ot,onMouseUp:at,ref:I,closable:N,ariaId:Y,prefixCls:n,visible:i&&q,onClose:T,onVisibleChanged:k,motionName:Ne(n,y,h)}))))},Le=function(t){var o=t.visible,n=t.getContainer,r=t.forceRender,l=t.destroyOnClose,i=l===void 0?!1:l,u=t.afterClose,c=t.panelRef,g=s.useState(o),d=a._slicedToArray(g,2),m=d[0],f=d[1],v=s.useMemo(function(){return{panel:c}},[c]);return s.useEffect(function(){o&&f(!0)},[o]),!r&&i&&!m?null:s.createElement(ze.Provider,{value:v},s.createElement(a.Portal,{open:o||r||m,autoDestroy:!1,getContainer:n,autoLock:o||m},s.createElement(Et,a._extends({},t,{destroyOnClose:i,afterClose:function(){u==null||u(),f(!1)}}))))};Le.displayName="Dialog";const wt=()=>a.canUseDom()&&window.document.documentElement,ae=e=>{const{prefixCls:t,className:o,style:n,size:r,shape:l}=e,i=a.classNames({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),u=a.classNames({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),c=s.useMemo(()=>typeof r=="number"?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return s.createElement("span",{className:a.classNames(t,i,u,o),style:Object.assign(Object.assign({},c),n)})},jt=new a.Keyframe("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),re=e=>({height:e,lineHeight:a.unit(e)}),Q=e=>Object.assign({width:e},re(e)),Pt=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:jt,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ce=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},re(e)),It=e=>{const{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:n,controlHeightLG:r,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:o},Q(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Q(r)),[`${t}${t}-sm`]:Object.assign({},Q(l))}},Tt=e=>{const{controlHeight:t,borderRadiusSM:o,skeletonInputCls:n,controlHeightLG:r,controlHeightSM:l,gradientFromColor:i,calc:u}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:o},ce(t,u)),[`${n}-lg`]:Object.assign({},ce(r,u)),[`${n}-sm`]:Object.assign({},ce(l,u))}},we=e=>Object.assign({width:e},re(e)),Mt=e=>{const{skeletonImageCls:t,imageSizeBase:o,gradientFromColor:n,borderRadiusSM:r,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:r},we(l(o).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},we(o)),{maxWidth:l(o).mul(4).equal(),maxHeight:l(o).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},de=(e,t,o)=>{const{skeletonButtonCls:n}=e;return{[`${o}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${n}-round`]:{borderRadius:t}}},ue=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},re(e)),Rt=e=>{const{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:n,controlHeightLG:r,controlHeightSM:l,gradientFromColor:i,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:u(n).mul(2).equal(),minWidth:u(n).mul(2).equal()},ue(n,u))},de(e,n,o)),{[`${o}-lg`]:Object.assign({},ue(r,u))}),de(e,r,`${o}-lg`)),{[`${o}-sm`]:Object.assign({},ue(l,u))}),de(e,l,`${o}-sm`))},Bt=e=>{const{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:n,skeletonParagraphCls:r,skeletonButtonCls:l,skeletonInputCls:i,skeletonImageCls:u,controlHeight:c,controlHeightLG:g,controlHeightSM:d,gradientFromColor:m,padding:f,marginSM:v,borderRadius:x,titleHeight:C,blockRadius:p,paragraphLiHeight:y,controlHeightXS:h,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},Q(c)),[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:Object.assign({},Q(g)),[`${o}-sm`]:Object.assign({},Q(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:C,background:m,borderRadius:p,[`+ ${r}`]:{marginBlockStart:d}},[r]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:m,borderRadius:p,"+ li":{marginBlockStart:h}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${r} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:v,[`+ ${r}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Rt(e)),It(e)),Tt(e)),Mt(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`